| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 "use strict";var wp;(wp||={}).blockLibrary=(()=>{var Die=Object.create;var K2=Object.defineProperty;var Eie=Object.getOwnPropertyDescriptor;var Lie=Object.getOwnPropertyNames;var Mie=Object.getPrototypeOf,Rie=Object.prototype.hasOwnProperty;var zie=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,o)=>(typeof require<"u"?require:t)[o]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var dt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),$=(e,t)=>{for(var o in t)K2(e,o,{get:t[o],enumerable:!0})},oL=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Lie(t))!Rie.call(e,n)&&n!==o&&K2(e,n,{get:()=>t[n],enumerable:!(a=Eie(t,n))||a.enumerable});return e};var r=(e,t,o)=>(o=e!=null?Die(Mie(e)):{},oL(t||!e||!e.__esModule?K2(o,"default",{value:e,enumerable:!0}):o,e)),Aie=e=>oL(K2({},"__esModule",{value:!0}),e);var U=dt((oye,rL)=>{rL.exports=window.wp.blocks});var A=dt((rye,aL)=>{aL.exports=window.wp.data});var S=dt((aye,nL)=>{nL.exports=window.wp.blockEditor});var Vc=dt((nye,iL)=>{iL.exports=window.wp.serverSideRender});var B=dt((iye,lL)=>{lL.exports=window.wp.i18n});var M=dt((lye,sL)=>{sL.exports=window.wp.components});var H=dt((sye,cL)=>{cL.exports=window.wp.element});var No=dt((cye,uL)=>{uL.exports=window.wp.blob});var Y=dt((uye,mL)=>{mL.exports=window.wp.coreData});var we=dt((mye,pL)=>{pL.exports=window.wp.compose});var h=dt((dye,gL)=>{gL.exports=window.ReactJSXRuntime});var E=dt((yye,xL)=>{xL.exports=window.wp.primitives});var ko=dt((M3e,YL)=>{YL.exports=window.wp.url});var jo=dt((A3e,oM)=>{oM.exports=window.wp.htmlEntities});var wo=dt((K3e,hM)=>{hM.exports=window.wp.notices});var bM=dt((J3e,vM)=>{vM.exports=window.wp.privateApis});var Wi=dt((Owe,ZM)=>{ZM.exports=window.wp.keycodes});var Id=dt((qwe,YM)=>{YM.exports=window.wp.deprecated});var Em=dt((hCe,cR)=>{cR.exports=window.wp.richText});var Rx=dt((t7e,oA)=>{oA.exports=window.wp.date});var I0=dt((B7e,fA)=>{fA.exports=window.wp.apiFetch});var Js=dt((eSe,qV)=>{qV.exports=window.wp.hooks});var U0=dt((vBe,D_)=>{var bH={\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"},yH=Object.keys(bH).join("|"),sme=new RegExp(yH,"g"),cme=new RegExp(yH,"");function ume(e){return bH[e]}var xH=function(e){return e.replace(sme,ume)},mme=function(e){return!!e.match(cme)};D_.exports=xH;D_.exports.has=mme;D_.exports.remove=xH});var oc=dt((bBe,_H)=>{_H.exports=window.wp.dom});var t1=dt((LDe,kU)=>{kU.exports=window.wp.a11y});var vW=dt((rRe,hW)=>{hW.exports=window.wp.escapeHtml});var kQ=dt((dje,_Q)=>{_Q.exports=window.wp.wordcount});var IJ=dt((r$e,NJ)=>{NJ.exports=window.wp.patterns});var xee=dt((sWe,yee)=>{yee.exports=window.wp.autop});var Yoe=dt((zKe,Qoe)=>{"use strict";Qoe.exports=function e(t,o){if(t===o)return!0;if(t&&o&&typeof t=="object"&&typeof o=="object"){if(t.constructor!==o.constructor)return!1;var a,n,i;if(Array.isArray(t)){if(a=t.length,a!=o.length)return!1;for(n=a;n--!==0;)if(!e(t[n],o[n]))return!1;return!0}if(t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(n of t.entries())if(!o.has(n[0]))return!1;for(n of t.entries())if(!e(n[1],o.get(n[0])))return!1;return!0}if(t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(n of t.entries())if(!o.has(n[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(o)){if(a=t.length,a!=o.length)return!1;for(n=a;n--!==0;)if(t[n]!==o[n])return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===o.toString();if(i=Object.keys(t),a=i.length,a!==Object.keys(o).length)return!1;for(n=a;n--!==0;)if(!Object.prototype.hasOwnProperty.call(o,i[n]))return!1;for(n=a;n--!==0;){var l=i[n];if(!e(t[l],o[l]))return!1}return!0}return t!==t&&o!==o}});var gie=dt((XJe,fie)=>{fie.exports=window.wp.keyboardShortcuts});var Jbe={};$(Jbe,{__experimentalGetCoreBlocks:()=>kie,__experimentalRegisterExperimentalCoreBlocks:()=>Xbe,privateApis:()=>QE,registerCoreBlocks:()=>Ybe});var ji=r(U()),yie=r(A()),xie=r(S()),_ie=r(Vc()),H2=r(B());var b6={};$(b6,{init:()=>jie,metadata:()=>ev,name:()=>kL,settings:()=>wL});var v6=r(B());var Gr=r(S()),Nn=r(B()),rr=r(M()),fd=r(A()),X2=r(U());var Q2=r(A()),cm=r(H()),Fc=r(No()),g6=r(S()),dL=r(Y()),fL=r(we());function Y2(e,t,o){return(0,Q2.useSelect)(a=>a(dL.store).canUser("update",{kind:e,name:t,id:o}),[e,t,o])}function Hc(e={}){let t=(0,cm.useRef)(e),o=(0,cm.useRef)(!1),{getSettings:a}=(0,Q2.useSelect)(g6.store);(0,cm.useLayoutEffect)(()=>{t.current=e}),(0,cm.useEffect)(()=>{if(o.current||!t.current.url||!(0,Fc.isBlobURL)(t.current.url))return;let n=(0,Fc.getBlobByURL)(t.current.url);if(!n)return;let{url:i,allowedTypes:l,onChange:s,onError:c}=t.current,{mediaUpload:u}=a();u&&(o.current=!0,u({filesList:[n],allowedTypes:l,onFileChange:([m])=>{(0,Fc.isBlobURL)(m?.url)||((0,Fc.revokeBlobURL)(i),s(m),o.current=!1)},onError:m=>{(0,Fc.revokeBlobURL)(i),c(m),o.current=!1}}))},[a])}function mh(){return(0,Q2.useSelect)(t=>{let{getSettings:o}=t(g6.store),{__experimentalDiscussionSettings:a}=o();return a?.avatarURL??""},[])}function G(){return(0,fL.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}}}var no=r(h()),h6="core/accordion-item",Vie="core/accordion-heading",Fie={name:h6};function hL({attributes:{autoclose:e,iconPosition:t,showIcon:o,headingLevel:a,levelOptions:n},clientId:i,setAttributes:l,isSelected:s}){let c=(0,fd.useRegistry)(),{getBlockOrder:u}=(0,fd.useSelect)(Gr.store),m=(0,Gr.useBlockProps)({role:"group"}),p=G(),{updateBlockAttributes:d,insertBlock:f}=(0,fd.useDispatch)(Gr.store),b=(0,Gr.useBlockEditingMode)()==="contentOnly",y=(0,Gr.useInnerBlocksProps)(m,{template:[[h6]],defaultBlock:Fie,directInsert:!0,templateInsertUpdatesSelection:!0});return(0,no.jsxs)(no.Fragment,{children:[s&&!b&&(0,no.jsxs)(no.Fragment,{children:[(0,no.jsx)(Gr.BlockControls,{children:(0,no.jsx)(rr.ToolbarGroup,{children:(0,no.jsx)(Gr.HeadingLevelDropdown,{value:a,options:n,onChange:x=>{let k=u(i),C=[];k.forEach(T=>{let N=u(T);C.push(...N)}),c.batch(()=>{l({headingLevel:x}),d(C,{level:x})})}})})}),(0,no.jsx)(Gr.BlockControls,{group:"other",children:(0,no.jsx)(rr.ToolbarButton,{onClick:()=>{let x=(0,X2.createBlock)(h6,{},[(0,X2.createBlock)(Vie,{level:a}),(0,X2.createBlock)("core/accordion-panel",{})]);f(x,void 0,i)},children:(0,Nn.__)("Add item")})})]}),(0,no.jsx)(Gr.InspectorControls,{children:(0,no.jsxs)(rr.__experimentalToolsPanel,{label:(0,Nn.__)("Settings"),resetAll:()=>{l({autoclose:!1,showIcon:!0,iconPosition:"right"})},dropdownMenuProps:p,children:[(0,no.jsx)(rr.__experimentalToolsPanelItem,{label:(0,Nn.__)("Auto-close"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>l({autoclose:!1}),children:(0,no.jsx)(rr.ToggleControl,{isBlock:!0,label:(0,Nn.__)("Auto-close"),onChange:x=>{l({autoclose:x})},checked:e,help:(0,Nn.__)("Automatically close accordions when a new one is opened.")})}),(0,no.jsx)(rr.__experimentalToolsPanelItem,{label:(0,Nn.__)("Show icon"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>l({showIcon:!0}),children:(0,no.jsx)(rr.ToggleControl,{isBlock:!0,label:(0,Nn.__)("Show icon"),onChange:x=>{l({showIcon:x,iconPosition:x?t:"right"})},checked:o,help:(0,Nn.__)("Display a plus icon next to the accordion header.")})}),o&&(0,no.jsx)(rr.__experimentalToolsPanelItem,{label:(0,Nn.__)("Icon Position"),isShownByDefault:!0,hasValue:()=>t!=="right",onDeselect:()=>l({iconPosition:"right"}),children:(0,no.jsxs)(rr.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,isBlock:!0,label:(0,Nn.__)("Icon Position"),value:t,onChange:x=>{l({iconPosition:x})},children:[(0,no.jsx)(rr.__experimentalToggleGroupControlOption,{label:(0,Nn.__)("Left"),value:"left"}),(0,no.jsx)(rr.__experimentalToggleGroupControlOption,{label:(0,Nn.__)("Right"),value:"right"})]})})]})},"setting"),(0,no.jsx)("div",{...y})]})}var J2=r(S()),vL=r(h());function bL(){let e=J2.useBlockProps.save({role:"group"});return(0,vL.jsx)("div",{...J2.useInnerBlocksProps.save(e)})}var ev={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/accordion",title:"Accordion",category:"design",description:"Displays a foldable layout that groups content in collapsible sections.",example:{},supports:{anchor:!0,html:!1,align:["wide","full"],background:{backgroundImage:!0,backgroundSize:!0,__experimentalDefaultControls:{backgroundImage:!0}},color:{background:!0,gradients:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},spacing:{padding:!0,margin:["top","bottom"],blockGap:!0},shadow:!0,layout:!0,ariaLabel:!0,interactivity:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},contentRole:!0},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 yL=r(U());function D(e){if(!e)return;let{metadata:t,settings:o,name:a}=e;return(0,yL.registerBlockType)({name:a,...t},o)}var um=r(E()),mm=r(h()),_L=(0,mm.jsxs)(um.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,mm.jsx)(um.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 9.25L9.5 9.25L9.5 7.75L19.5 7.75L19.5 9.25Z",fill:"currentColor"}),(0,mm.jsx)(um.Path,{d:"M4.5 6L8.5 8.5L4.5 11L4.5 6Z",fill:"currentColor"}),(0,mm.jsx)(um.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 16.25L9.5 16.25L9.5 14.75L19.5 14.75L19.5 16.25Z",fill:"currentColor"}),(0,mm.jsx)(um.Path,{d:"M4.5 13L8.5 15.5L4.5 18L4.5 13Z",fill:"currentColor"})]});var{name:kL}=ev,wL={icon:_L,example:{innerBlocks:[{name:"core/accordion-item",innerBlocks:[{name:"core/accordion-heading",attributes:{title:(0,v6.__)("Lorem ipsum dolor sit amet, consectetur.")}}]},{name:"core/accordion-item",innerBlocks:[{name:"core/accordion-heading",attributes:{title:(0,v6.__)("Suspendisse commodo lacus, interdum et.")}}]}]},edit:hL,save:bL},jie=()=>D({name:kL,metadata:ev,settings:wL});var y6={};$(y6,{init:()=>Gie,metadata:()=>rv,name:()=>IL,settings:()=>DL});var ph=r(B()),Gs=r(S()),tv=r(A()),SL=r(H()),gd=r(M());function CL(e){var t,o,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=CL(e[t]))&&(a&&(a+=" "),a+=o)}else for(o in e)e[o]&&(a&&(a+=" "),a+=o);return a}function Oie(){for(var e,t,o=0,a="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=CL(e))&&(a&&(a+=" "),a+=t);return a}var w=Oie;var Ol=r(h());function TL({attributes:e,clientId:t,setAttributes:o,context:a}){let{openByDefault:n}=e,i=G(),{isSelected:l,getBlockOrder:s}=(0,tv.useSelect)(g=>{let{isBlockSelected:b,hasSelectedInnerBlock:y,getBlockOrder:v}=g(Gs.store);return{isSelected:b(t)||y(t,!0),getBlockOrder:v}},[t]),c=s(t)[1],{updateBlockAttributes:u,__unstableMarkNextChangeAsNotPersistent:m}=(0,tv.useDispatch)(Gs.store);(0,SL.useEffect)(()=>{c&&(m(),u(c,{isSelected:l}))},[l,c,m,u]);let p=(0,Gs.useBlockProps)({className:w({"is-open":n||l})}),d=a&&a["core/accordion-heading-level"],f=(0,Gs.useInnerBlocksProps)(p,{template:[["core/accordion-heading",d?{level:d}:{}],["core/accordion-panel",{openByDefault:n}]],templateLock:"all",directInsert:!0,templateInsertUpdatesSelection:!0});return(0,Ol.jsxs)(Ol.Fragment,{children:[(0,Ol.jsx)(Gs.InspectorControls,{children:(0,Ol.jsx)(gd.__experimentalToolsPanel,{label:(0,ph.__)("Settings"),resetAll:()=>{o({openByDefault:!1}),c&&u(c,{openByDefault:!1})},dropdownMenuProps:i,children:(0,Ol.jsx)(gd.__experimentalToolsPanelItem,{label:(0,ph.__)("Open by default"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>{o({openByDefault:!1}),c&&u(c,{openByDefault:!1})},children:(0,Ol.jsx)(gd.ToggleControl,{label:(0,ph.__)("Open by default"),onChange:g=>{o({openByDefault:g}),c&&u(c,{openByDefault:g})},checked:n,help:(0,ph.__)("Accordion content will be displayed by default.")})})})},"setting"),(0,Ol.jsx)("div",{...f})]})}var ov=r(S());var BL=r(h());function PL({attributes:e}){let{openByDefault:t}=e,o=ov.useBlockProps.save({className:w({"is-open":t})}),a=ov.useInnerBlocksProps.save(o);return(0,BL.jsx)("div",{...a})}var rv={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/accordion-item",title:"Accordion Item",category:"design",description:"Wraps the heading and panel in one unit.",parent:["core/accordion"],allowedBlocks:["core/accordion-heading","core/accordion-panel"],supports:{html:!1,color:{background:!0,gradients:!0},interactivity:!0,spacing:{margin:["top","bottom"],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}},textdomain:"default",style:"wp-block-accordion-item"};var pm=r(E()),dm=r(h()),NL=(0,dm.jsxs)(pm.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,dm.jsx)(pm.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 9.5L9.5 9.5L9.5 8L19.5 8L19.5 9.5Z",fill:"currentColor"}),(0,dm.jsx)(pm.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 13L9.5 13L9.5 11.5L19.5 11.5L19.5 13Z",fill:"currentColor"}),(0,dm.jsx)(pm.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 16.3999L9.5 16.3999L9.5 14.8999L19.5 14.8999L19.5 16.3999Z",fill:"currentColor"}),(0,dm.jsx)(pm.Path,{d:"M4.5 6.25L8.5 8.75L4.5 11.25L4.5 6.25Z",fill:"currentColor"})]});var{name:IL}=rv,DL={icon:NL,edit:TL,save:PL},Gie=()=>D({name:IL,metadata:rv,settings:DL});var x6={};$(x6,{init:()=>qie,metadata:()=>av,name:()=>VL,settings:()=>FL});var EL=r(B()),LL=r(H()),Ul=r(S()),fm=r(h());function ML({attributes:e,setAttributes:t,context:o}){let{title:a}=e,{"core/accordion-icon-position":n,"core/accordion-show-icon":i,"core/accordion-heading-level":l}=o,s="h"+l;(0,LL.useEffect)(()=>{n!==void 0&&i!==void 0&&t({iconPosition:n,showIcon:i})},[n,i,t]);let[c,u]=(0,Ul.useSettings)("typography.fluid","layout"),m=(0,Ul.getTypographyClassesAndStyles)(e,{typography:{fluid:c},layout:{wideSize:u?.wideSize}}),p=(0,Ul.useBlockProps)(),d=(0,Ul.__experimentalGetSpacingClassesAndStyles)(e);return(0,fm.jsx)(s,{...p,children:(0,fm.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:d.style,tabIndex:"-1",children:[i&&n==="left"&&(0,fm.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,fm.jsx)(Ul.RichText,{withoutInteractiveFormatting:!0,disableLineBreaks:!0,tagName:"span",value:a,onChange:f=>t({title:f}),placeholder:(0,EL.__)("Accordion title"),className:"wp-block-accordion-heading__toggle-title",style:{letterSpacing:m.style.letterSpacing,textDecoration:m.style.textDecoration}}),i&&n==="right"&&(0,fm.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}var jc=r(S()),gm=r(h());function RL({attributes:e}){let{level:t,title:o,iconPosition:a,showIcon:n}=e,i="h"+(t||3),l=(0,jc.getTypographyClassesAndStyles)(e),s=jc.useBlockProps.save(),c=(0,jc.__experimentalGetSpacingClassesAndStyles)(e);return(0,gm.jsx)(i,{...s,children:(0,gm.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:c.style,children:[n&&a==="left"&&(0,gm.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,gm.jsx)(jc.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:o,style:{letterSpacing:l.style.letterSpacing,textDecoration:l.style.textDecoration}}),n&&a==="right"&&(0,gm.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}var av={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/accordion-heading",title:"Accordion Heading",category:"design",description:"Displays a heading that toggles the accordion panel.",parent:["core/accordion-item"],usesContext:["core/accordion-icon-position","core/accordion-show-icon","core/accordion-heading-level"],supports:{anchor:!0,color:{background:!0,gradients:!0},align:!1,interactivity:!0,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0},__experimentalSkipSerialization:!0,__experimentalSelector:".wp-block-accordion-heading__toggle"},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{__experimentalSkipSerialization:["textDecoration","letterSpacing"],fontSize:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontFamily:!0}},shadow:!0,visibility:!1,lock:!1},selectors:{typography:{letterSpacing:".wp-block-accordion-heading .wp-block-accordion-heading__toggle-title",textDecoration:".wp-block-accordion-heading .wp-block-accordion-heading__toggle-title"}},attributes:{openByDefault:{type:"boolean",default:!1},title:{type:"rich-text",source:"rich-text",selector:".wp-block-accordion-heading__toggle-title",role:"content"},level:{type:"number"},iconPosition:{type:"string",enum:["left","right"],default:"right"},showIcon:{type:"boolean",default:!0}},textdomain:"default"};var dh=r(E()),fh=r(h()),zL=(0,fh.jsxs)(dh.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,fh.jsx)(dh.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 12.75L9.5 12.75L9.5 11.25L19.5 11.25L19.5 12.75Z",fill:"currentColor"}),(0,fh.jsx)(dh.Path,{d:"M4.5 9.5L8.5 12L4.5 14.5L4.5 9.5Z",fill:"currentColor"})]});var hd=r(S()),hm=r(h()),Wie={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:o,iconPosition:a,showIcon:n}=e,i="h"+(t||3),l=hd.useBlockProps.save(),s=(0,hd.__experimentalGetSpacingClassesAndStyles)(e);return(0,hm.jsx)(i,{...l,children:(0,hm.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:s.style,children:[n&&a==="left"&&(0,hm.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,hm.jsx)(hd.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:o}),n&&a==="right"&&(0,hm.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}},AL=[Wie];var{name:VL}=av,FL={icon:zL,edit:ML,save:RL,deprecated:AL},qie=()=>D({name:VL,metadata:av,settings:FL});var k6={};$(k6,{init:()=>Kie,metadata:()=>lv,name:()=>$L,settings:()=>WL});var nv=r(S()),HL=r(h());function jL({attributes:e}){let{allowedBlocks:t,templateLock:o,openByDefault:a,isSelected:n}=e,i=(0,nv.useBlockProps)({"aria-hidden":!n&&!a,role:"region"}),l=(0,nv.useInnerBlocksProps)(i,{allowedBlocks:t,template:[["core/paragraph",{}]],templateLock:o});return(0,HL.jsx)("div",{...l})}var iv=r(S()),OL=r(h());function UL(){let e=iv.useBlockProps.save({role:"region"}),t=iv.useInnerBlocksProps.save(e);return(0,OL.jsx)("div",{...t})}var lv={$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"],supports:{html:!1,color:{background:!0,gradients:!0},interactivity:!0,spacing:{padding:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},shadow:!0,layout:{allowEditing:!1},visibility:!1,contentRole:!0,allowedBlocks:!0,lock:!1},attributes:{templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1],default:!1},openByDefault:{type:"boolean",default:!1},isSelected:{type:"boolean",default:!1}},textdomain:"default",style:"wp-block-accordion-panel"};var sv=r(E()),_6=r(h()),GL=(0,_6.jsx)(sv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,_6.jsx)(sv.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M8.10417 6.00024H6.5C5.39543 6.00024 4.5 6.89567 4.5 8.00024V10.3336H6V8.00024C6 7.7241 6.22386 7.50024 6.5 7.50024H8.10417V6.00024ZM4.5 13.6669V16.0002C4.5 17.1048 5.39543 18.0002 6.5 18.0002H8.10417V16.5002H6.5C6.22386 16.5002 6 16.2764 6 16.0002V13.6669H4.5ZM10.3958 6.00024V7.50024H13.6042V6.00024H10.3958ZM15.8958 6.00024V7.50024H17.5C17.7761 7.50024 18 7.7241 18 8.00024V10.3336H19.5V8.00024C19.5 6.89567 18.6046 6.00024 17.5 6.00024H15.8958ZM19.5 13.6669H18V16.0002C18 16.2764 17.7761 16.5002 17.5 16.5002H15.8958V18.0002H17.5C18.6046 18.0002 19.5 17.1048 19.5 16.0002V13.6669ZM13.6042 18.0002V16.5002H10.3958V18.0002H13.6042Z",fill:"currentColor"})});var{name:$L}=lv,WL={icon:GL,edit:jL,save:UL},Kie=()=>D({name:$L,metadata:lv,settings:WL});var SS={};$(SS,{init:()=>Yie,metadata:()=>zy,name:()=>KL,settings:()=>QL});var cv=r(H()),pa=(0,cv.forwardRef)(({icon:e,size:t=24,...o},a)=>(0,cv.cloneElement)(e,{width:t,height:t,...o,ref:a}));var uv=r(E()),w6=r(h()),vm=(0,w6.jsx)(uv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,w6.jsx)(uv.Path,{d:"M2 12c0 3.6 2.4 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.5 0-4.5-1.5-4.5-4s2-4.5 4.5-4.5h3.5V6H8c-3.6 0-6 2.4-6 6zm19.5-1h-8v1.5h8V11zm0 5h-8v1.5h8V16zm0-10h-8v1.5h8V6z"})});var mv=r(E()),C6=r(h()),S6=(0,C6.jsx)(mv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,C6.jsx)(mv.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})});var pv=r(E()),T6=r(h()),B6=(0,T6.jsx)(pv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T6.jsx)(pv.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})});var dv=r(E()),P6=r(h()),N6=(0,P6.jsx)(dv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,P6.jsx)(dv.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"})});var fv=r(E()),I6=r(h()),D6=(0,I6.jsx)(fv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,I6.jsx)(fv.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})});var gv=r(E()),E6=r(h()),L6=(0,E6.jsx)(gv.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,E6.jsx)(gv.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M11.934 7.406a1 1 0 0 0 .914.594H19a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h5.764a.5.5 0 0 1 .447.276l.723 1.63Zm1.064-1.216a.5.5 0 0 0 .462.31H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5.764a2 2 0 0 1 1.789 1.106l.445 1.084ZM8.5 10.5h7V12h-7v-1.5Zm7 3.5h-7v1.5h7V14Z"})});var hv=r(E()),M6=r(h()),gh=(0,M6.jsx)(hv.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,M6.jsx)(hv.Path,{d:"M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z"})});var vv=r(E()),R6=r(h()),z6=(0,R6.jsx)(vv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,R6.jsx)(vv.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"})});var bv=r(E()),A6=r(h()),hh=(0,A6.jsx)(bv.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,A6.jsx)(bv.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z"})});var yv=r(E()),V6=r(h()),F6=(0,V6.jsx)(yv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,V6.jsx)(yv.Path,{d:"M4 13.5h3v-3H4v3Zm6-3.5 2 2-2 2 1 1 3-3-3-3-1 1Zm7 .5v3h3v-3h-3Z"})});var xv=r(E()),H6=r(h()),j6=(0,H6.jsx)(xv.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,H6.jsx)(xv.Path,{d:"M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"})});var _v=r(E()),O6=r(h()),U6=(0,O6.jsx)(_v.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,O6.jsx)(_v.Path,{d:"M14.5 17.5H9.5V16H14.5V17.5Z M14.5 8H9.5V6.5H14.5V8Z M7 3.5H17C18.1046 3.5 19 4.39543 19 5.5V9C19 10.1046 18.1046 11 17 11H7C5.89543 11 5 10.1046 5 9V5.5C5 4.39543 5.89543 3.5 7 3.5ZM17 5H7C6.72386 5 6.5 5.22386 6.5 5.5V9C6.5 9.27614 6.72386 9.5 7 9.5H17C17.2761 9.5 17.5 9.27614 17.5 9V5.5C17.5 5.22386 17.2761 5 17 5Z M7 13H17C18.1046 13 19 13.8954 19 15V18.5C19 19.6046 18.1046 20.5 17 20.5H7C5.89543 20.5 5 19.6046 5 18.5V15C5 13.8954 5.89543 13 7 13ZM17 14.5H7C6.72386 14.5 6.5 14.7239 6.5 15V18.5C6.5 18.7761 6.72386 19 7 19H17C17.2761 19 17.5 18.7761 17.5 18.5V15C17.5 14.7239 17.2761 14.5 17 14.5Z"})});var kv=r(E()),G6=r(h()),vh=(0,G6.jsx)(kv.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,G6.jsx)(kv.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"})});var wv=r(E()),$6=r(h()),W6=(0,$6.jsx)(wv.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,$6.jsx)(wv.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.5h12a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5ZM4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6Zm4 10h2v-1.5H8V16Zm5 0h-2v-1.5h2V16Zm1 0h2v-1.5h-2V16Z"})});var Cv=r(E()),q6=r(h()),Oc=(0,q6.jsx)(Cv.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,q6.jsx)(Cv.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"})});var Sv=r(E()),Z6=r(h()),bh=(0,Z6.jsx)(Sv.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Z6.jsx)(Sv.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})});var Tv=r(E()),K6=r(h()),Q6=(0,K6.jsx)(Tv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,K6.jsx)(Tv.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})});var Bv=r(E()),Y6=r(h()),X6=(0,Y6.jsx)(Bv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Y6.jsx)(Bv.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})});var Pv=r(E()),J6=r(h()),e8=(0,J6.jsx)(Pv.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,J6.jsx)(Pv.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})});var Nv=r(E()),t8=r(h()),o8=(0,t8.jsx)(Nv.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,t8.jsx)(Nv.Path,{d:"M20 6H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h16c.3 0 .5.2.5.5v9zM10 10H8v2h2v-2zm-5 2h2v-2H5v2zm8-2h-2v2h2v-2zm-5 6h8v-2H8v2zm6-4h2v-2h-2v2zm3 0h2v-2h-2v2zm0 4h2v-2h-2v2zM5 16h2v-2H5v2z"})});var Iv=r(E()),r8=r(h()),bm=(0,r8.jsx)(Iv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r8.jsx)(Iv.Path,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})});var Dv=r(E()),a8=r(h()),yh=(0,a8.jsx)(Dv.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,a8.jsx)(Dv.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"})});var Ev=r(E()),n8=r(h()),i8=(0,n8.jsx)(Ev.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n8.jsx)(Ev.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"})});var Lv=r(E()),l8=r(h()),s8=(0,l8.jsx)(Lv.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,l8.jsx)(Lv.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 7.5h-5v10h5v-10Zm1.5 0v10H19a.5.5 0 0 0 .5-.5V8a.5.5 0 0 0-.5-.5h-2.5ZM6 7.5h2.5v10H6a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5ZM6 6h13a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2Z"})});var Mv=r(E()),c8=r(h()),xh=(0,c8.jsx)(Mv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c8.jsx)(Mv.Path,{fillRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})});var ym=r(E()),vd=r(h()),u8=(0,vd.jsxs)(ym.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,vd.jsx)(ym.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z",fillRule:"evenodd",clipRule:"evenodd"}),(0,vd.jsx)(ym.Path,{d:"M15 15V15C15 13.8954 14.1046 13 13 13L11 13C9.89543 13 9 13.8954 9 15V15",fillRule:"evenodd",clipRule:"evenodd"}),(0,vd.jsx)(ym.Circle,{cx:"12",cy:"9",r:"2",fillRule:"evenodd",clipRule:"evenodd"})]});var Rv=r(E()),m8=r(h()),p8=(0,m8.jsx)(Rv.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,m8.jsx)(Rv.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6.68822 16.625L5.5 17.8145L5.5 5.5L18.5 5.5L18.5 16.625L6.68822 16.625ZM7.31 18.125L19 18.125C19.5523 18.125 20 17.6773 20 17.125L20 5C20 4.44772 19.5523 4 19 4H5C4.44772 4 4 4.44772 4 5V19.5247C4 19.8173 4.16123 20.086 4.41935 20.2237C4.72711 20.3878 5.10601 20.3313 5.35252 20.0845L7.31 18.125ZM16 9.99997H8V8.49997H16V9.99997ZM8 14H13V12.5H8V14Z"})});var zv=r(E()),d8=r(h()),f8=(0,d8.jsx)(zv.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d8.jsx)(zv.Path,{d:"m6.249 11.065.44-.44h3.186l-1.5 1.5H7.31l-1.957 1.96A.792.792 0 0 1 4 13.524V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v1.5L12.5 8V5.5h-7v6.315l.749-.75ZM20 19.75H7v-1.5h13v1.5Zm0-12.653-8.967 9.064L8 17l.867-2.935L17.833 5 20 7.097Z"})});var Av=r(E()),g8=r(h()),h8=(0,g8.jsx)(Av.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,g8.jsx)(Av.Path,{d:"M6.68822 10.625L6.24878 11.0649L5.5 11.8145L5.5 5.5L12.5 5.5V8L14 6.5V5C14 4.44772 13.5523 4 13 4H5C4.44772 4 4 4.44771 4 5V13.5247C4 13.8173 4.16123 14.086 4.41935 14.2237C4.72711 14.3878 5.10601 14.3313 5.35252 14.0845L7.31 12.125H8.375L9.875 10.625H7.31H6.68822ZM14.5605 10.4983L11.6701 13.75H16.9975C17.9963 13.75 18.7796 14.1104 19.3553 14.7048C19.9095 15.2771 20.2299 16.0224 20.4224 16.7443C20.7645 18.0276 20.7543 19.4618 20.7487 20.2544C20.7481 20.345 20.7475 20.4272 20.7475 20.4999L19.2475 20.5001C19.2475 20.4191 19.248 20.3319 19.2484 20.2394V20.2394C19.2526 19.4274 19.259 18.2035 18.973 17.1307C18.8156 16.5401 18.586 16.0666 18.2778 15.7483C17.9909 15.4521 17.5991 15.25 16.9975 15.25H11.8106L14.5303 17.9697L13.4696 19.0303L8.96956 14.5303L13.4394 9.50171L14.5605 10.4983Z"})});var Vv=r(E()),v8=r(h()),_h=(0,v8.jsx)(Vv.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,v8.jsx)(Vv.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"})});var Fv=r(E()),b8=r(h()),xm=(0,b8.jsx)(Fv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,b8.jsx)(Fv.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"})});var Hv=r(E()),y8=r(h()),kh=(0,y8.jsx)(Hv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,y8.jsx)(Hv.Path,{d:"M18 20v-2h2v-1.5H7.75a.25.25 0 0 1-.25-.25V4H6v2H4v1.5h2v8.75c0 .966.784 1.75 1.75 1.75h8.75v2H18ZM9.273 7.5h6.977a.25.25 0 0 1 .25.25v6.977H18V7.75A1.75 1.75 0 0 0 16.25 6H9.273v1.5Z"})});var jv=r(E()),x8=r(h()),wh=(0,x8.jsx)(jv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,x8.jsx)(jv.Path,{d:"M12.5 14.5h-1V16h1c2.2 0 4-1.8 4-4s-1.8-4-4-4h-1v1.5h1c1.4 0 2.5 1.1 2.5 2.5s-1.1 2.5-2.5 2.5zm-4 1.5v-1.5h-1C6.1 14.5 5 13.4 5 12s1.1-2.5 2.5-2.5h1V8h-1c-2.2 0-4 1.8-4 4s1.8 4 4 4h1zm-1-3.2h5v-1.5h-5v1.5zM18 4H9c-1.1 0-2 .9-2 2v.5h1.5V6c0-.3.2-.5.5-.5h9c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5v-.5H7v.5c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2z"})});var Ov=r(E()),_8=r(h()),k8=(0,_8.jsx)(Ov.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,_8.jsx)(Ov.Path,{d:"M4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4zm.8-4l.7.7 2-2V12h1V9.2l2 2 .7-.7-2-2H12v-1H9.2l2-2-.7-.7-2 2V4h-1v2.8l-2-2-.7.7 2 2H4v1h2.8l-2 2z"})});var Ch=r(E()),Sh=r(h()),w8=(0,Sh.jsxs)(Ch.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,Sh.jsx)(Ch.Path,{d:"M4 16h10v1.5H4V16Zm0-4.5h16V13H4v-1.5ZM10 7h10v1.5H10V7Z",fillRule:"evenodd",clipRule:"evenodd"}),(0,Sh.jsx)(Ch.Path,{d:"m4 5.25 4 2.5-4 2.5v-5Z"})]});var Uv=r(E()),C8=r(h()),Th=(0,C8.jsx)(Uv.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,C8.jsx)(Uv.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z"})});var Gv=r(E()),S8=r(h()),T8=(0,S8.jsx)(Gv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,S8.jsx)(Gv.Path,{fillRule:"evenodd",d:"M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})});var $v=r(E()),B8=r(h()),P8=(0,B8.jsx)($v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,B8.jsx)($v.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM20.0303 9.03033L17.0607 12L20.0303 14.9697L18.9697 16.0303L15.4697 12.5303L14.9393 12L15.4697 11.4697L18.9697 7.96967L20.0303 9.03033Z"})});var Wv=r(E()),N8=r(h()),I8=(0,N8.jsx)(Wv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,N8.jsx)(Wv.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-8-3.5l3 3-3 3 1 1 4-4-4-4-1 1z"})});var qv=r(E()),D8=r(h()),Bh=(0,D8.jsx)(qv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,D8.jsx)(qv.Path,{d:"M4 8.8h8.9V7.2H4v1.6zm0 7h8.9v-1.5H4v1.5zM18 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"})});var Zv=r(E()),E8=r(h()),Ph=(0,E8.jsx)(Zv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,E8.jsx)(Zv.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})});var Kv=r(E()),L8=r(h()),Nh=(0,L8.jsx)(Kv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,L8.jsx)(Kv.Path,{d:"M3.8 15.8h8.9v-1.5H3.8v1.5zm0-7h8.9V7.2H3.8v1.6zm14.7-2.1V10h1V5.3l-2.2.7.3 1 .9-.3zm1.2 6.1c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5H20v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3 0-.8-.3-1.1z"})});var Qv=r(E()),M8=r(h()),pi=(0,M8.jsx)(Qv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,M8.jsx)(Qv.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM5 6.7V10h1V5.3L3.8 6l.4 1 .8-.3zm-.4 5.7c-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-1c.3-.6.8-1.4.9-2.1.1-.3 0-.8-.2-1.1-.5-.6-1.3-.5-1.7-.4z"})});var Yv=r(E()),R8=r(h()),z8=(0,R8.jsx)(Yv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,R8.jsx)(Yv.Path,{d:"M3 9c0 2.8 2.2 5 5 5v-.2V20h1.5V5.5H12V20h1.5V5.5h3V4H8C5.2 4 3 6.2 3 9Zm15.9-1-1.1 1 2.6 3-2.6 3 1.1 1 3.4-4-3.4-4Z"})});var Xv=r(E()),A8=r(h()),Ih=(0,A8.jsx)(Xv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,A8.jsx)(Xv.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM15.4697 14.9697L18.4393 12L15.4697 9.03033L16.5303 7.96967L20.0303 11.4697L20.5607 12L20.0303 12.5303L16.5303 16.0303L15.4697 14.9697Z"})});var Jv=r(E()),V8=r(h()),Dh=(0,V8.jsx)(Jv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,V8.jsx)(Jv.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-4-4.6l-4 4 4 4 1-1-3-3 3-3-1-1z"})});var eb=r(E()),F8=r(h()),_m=(0,F8.jsx)(eb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,F8.jsx)(eb.Path,{d:"M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"})});var tb=r(E()),H8=r(h()),Eh=(0,H8.jsx)(tb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,H8.jsx)(tb.Path,{d:"M16.375 4.5H4.625a.125.125 0 0 0-.125.125v8.254l2.859-1.54a.75.75 0 0 1 .68-.016l2.384 1.142 2.89-2.074a.75.75 0 0 1 .874 0l2.313 1.66V4.625a.125.125 0 0 0-.125-.125Zm.125 9.398-2.75-1.975-2.813 2.02a.75.75 0 0 1-.76.067l-2.444-1.17L4.5 14.583v1.792c0 .069.056.125.125.125h11.75a.125.125 0 0 0 .125-.125v-2.477ZM4.625 3C3.728 3 3 3.728 3 4.625v11.75C3 17.273 3.728 18 4.625 18h11.75c.898 0 1.625-.727 1.625-1.625V4.625C18 3.728 17.273 3 16.375 3H4.625ZM20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z",fillRule:"evenodd",clipRule:"evenodd"})});var ob=r(E()),j8=r(h()),Ui=(0,j8.jsx)(ob.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,j8.jsx)(ob.Path,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"})});var rb=r(E()),O8=r(h()),km=(0,O8.jsx)(rb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,O8.jsx)(rb.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"})});var ab=r(E()),U8=r(h()),G8=(0,U8.jsx)(ab.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U8.jsx)(ab.Path,{d:"M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})});var nb=r(E()),$8=r(h()),W8=(0,$8.jsx)(nb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,$8.jsx)(nb.Path,{d:"M17.6 7c-.6.9-1.5 1.7-2.6 2v1h2v7h2V7h-1.4zM11 11H7V7H5v10h2v-4h4v4h2V7h-2v4z"})});var ib=r(E()),q8=r(h()),Z8=(0,q8.jsx)(ib.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,q8.jsx)(ib.Path,{d:"M9 11.1H5v-4H3v10h2v-4h4v4h2v-10H9v4zm8 4c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6v1.5h8v-2H17z"})});var lb=r(E()),K8=r(h()),Q8=(0,K8.jsx)(lb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,K8.jsx)(lb.Path,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.3 1.7c-.4-.4-1-.7-1.6-.8v-.1c.6-.2 1.1-.5 1.5-.9.3-.4.5-.8.5-1.3 0-.4-.1-.8-.3-1.1-.2-.3-.5-.6-.8-.8-.4-.2-.8-.4-1.2-.5-.6-.1-1.1-.2-1.6-.2-.6 0-1.3.1-1.8.3s-1.1.5-1.6.9l1.2 1.4c.4-.2.7-.4 1.1-.6.3-.2.7-.3 1.1-.3.4 0 .8.1 1.1.3.3.2.4.5.4.8 0 .4-.2.7-.6.9-.7.3-1.5.5-2.2.4v1.6c.5 0 1 0 1.5.1.3.1.7.2 1 .3.2.1.4.2.5.4s.1.4.1.6c0 .3-.2.7-.5.8-.4.2-.9.3-1.4.3s-1-.1-1.4-.3c-.4-.2-.8-.4-1.2-.7L13 15.6c.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.6 0 1.1-.1 1.6-.2.4-.1.9-.2 1.3-.5.4-.2.7-.5.9-.9.2-.4.3-.8.3-1.2 0-.6-.3-1.1-.7-1.5z"})});var sb=r(E()),Y8=r(h()),X8=(0,Y8.jsx)(sb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Y8.jsx)(sb.Path,{d:"M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z"})});var cb=r(E()),J8=r(h()),e7=(0,J8.jsx)(cb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,J8.jsx)(cb.Path,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.7 1.2c-.2-.3-.5-.7-.8-.9-.3-.3-.7-.5-1.1-.6-.5-.1-.9-.2-1.4-.2-.2 0-.5.1-.7.1-.2.1-.5.1-.7.2l.1-1.9h4.3V7H14l-.3 5 1 .6.5-.2.4-.1c.1-.1.3-.1.4-.1h.5c.5 0 1 .1 1.4.4.4.2.6.7.6 1.1 0 .4-.2.8-.6 1.1-.4.3-.9.4-1.4.4-.4 0-.9-.1-1.3-.3-.4-.2-.7-.4-1.1-.7 0 0-1.1 1.4-1 1.5.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.5 0 1-.1 1.5-.3s.9-.4 1.3-.7c.4-.3.7-.7.9-1.1s.3-.9.3-1.4-.1-1-.3-1.4z"})});var ub=r(E()),t7=r(h()),o7=(0,t7.jsx)(ub.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,t7.jsx)(ub.Path,{d:"M20.7 12.4c-.2-.3-.4-.6-.7-.9s-.6-.5-1-.6c-.4-.2-.8-.2-1.2-.2-.5 0-.9.1-1.3.3s-.8.5-1.2.8c0-.5 0-.9.2-1.4l.6-.9c.2-.2.5-.4.8-.5.6-.2 1.3-.2 1.9 0 .3.1.6.3.8.5 0 0 1.3-1.3 1.3-1.4-.4-.3-.9-.6-1.4-.8-.6-.2-1.3-.3-2-.3-.6 0-1.1.1-1.7.4-.5.2-1 .5-1.4.9-.4.4-.8 1-1 1.6-.3.7-.4 1.5-.4 2.3s.1 1.5.3 2.1c.2.6.6 1.1 1 1.5.4.4.9.7 1.4.9 1 .3 2 .3 3 0 .4-.1.8-.3 1.2-.6.3-.3.6-.6.8-1 .2-.5.3-.9.3-1.4s-.1-.9-.3-1.3zm-2 2.1c-.1.2-.3.4-.4.5-.1.1-.3.2-.5.2-.2.1-.4.1-.6.1-.2.1-.5 0-.7-.1-.2 0-.3-.2-.5-.3-.1-.2-.3-.4-.4-.6-.2-.3-.3-.7-.3-1 .3-.3.6-.5 1-.7.3-.1.7-.2 1-.2.4 0 .8.1 1.1.3.3.3.4.7.4 1.1 0 .2 0 .5-.1.7zM9 11H5V7H3v10h2v-4h4v4h2V7H9v4z"})});var mb=r(E()),r7=r(h()),a7=(0,r7.jsx)(mb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r7.jsx)(mb.Path,{d:"M6 5V18.5911L12 13.8473L18 18.5911V5H6Z"})});var pb=r(E()),n7=r(h()),i7=(0,n7.jsx)(pb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n7.jsx)(pb.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})});var db=r(E()),l7=r(h()),s7=(0,l7.jsx)(db.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,l7.jsx)(db.Path,{d:"M4.8 11.4H2.1V9H1v6h1.1v-2.6h2.7V15h1.1V9H4.8v2.4zm1.9-1.3h1.7V15h1.1v-4.9h1.7V9H6.7v1.1zM16.2 9l-1.5 2.7L13.3 9h-.9l-.8 6h1.1l.5-4 1.5 2.8 1.5-2.8.5 4h1.1L17 9h-.8zm3.8 5V9h-1.1v6h3.6v-1H20z"})});var fb=r(E()),c7=r(h()),Uc=(0,c7.jsx)(fb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,c7.jsx)(fb.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})});var gb=r(E()),u7=r(h()),m7=(0,u7.jsx)(gb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,u7.jsx)(gb.Path,{d:"m6.734 16.106 2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.158 1.093-1.028-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734Z"})});var hb=r(E()),p7=r(h()),wm=(0,p7.jsx)(hb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,p7.jsx)(hb.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})});var vb=r(E()),d7=r(h()),Lh=(0,d7.jsx)(vb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d7.jsx)(vb.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"})});var bb=r(E()),f7=r(h()),In=(0,f7.jsx)(bb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,f7.jsx)(bb.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})});var yb=r(E()),g7=r(h()),h7=(0,g7.jsx)(yb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,g7.jsx)(yb.Path,{d:"M12 11v1.5h8V11h-8zm-6-1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})});var xb=r(E()),v7=r(h()),Gi=(0,v7.jsx)(xb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,v7.jsx)(xb.Path,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"})});var _b=r(E()),b7=r(h()),y7=(0,b7.jsx)(_b.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,b7.jsx)(_b.Path,{d:"M11 14.5l1.1 1.1 3-3 .5-.5-.6-.6-3-3-1 1 1.7 1.7H5v1.5h7.7L11 14.5zM16.8 5h-7c-1.1 0-2 .9-2 2v1.5h1.5V7c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v10c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5v-1.5H7.8V17c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2z"})});var kb=r(E()),x7=r(h()),Cm=(0,x7.jsx)(kb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,x7.jsx)(kb.Path,{d:"M18.1823 11.6392C18.1823 13.0804 17.0139 14.2487 15.5727 14.2487C14.3579 14.2487 13.335 13.4179 13.0453 12.2922L13.0377 12.2625L13.0278 12.2335L12.3985 10.377L12.3942 10.3785C11.8571 8.64997 10.246 7.39405 8.33961 7.39405C5.99509 7.39405 4.09448 9.29465 4.09448 11.6392C4.09448 13.9837 5.99509 15.8843 8.33961 15.8843C8.88499 15.8843 9.40822 15.781 9.88943 15.5923L9.29212 14.0697C8.99812 14.185 8.67729 14.2487 8.33961 14.2487C6.89838 14.2487 5.73003 13.0804 5.73003 11.6392C5.73003 10.1979 6.89838 9.02959 8.33961 9.02959C9.55444 9.02959 10.5773 9.86046 10.867 10.9862L10.8772 10.9836L11.4695 12.7311C11.9515 14.546 13.6048 15.8843 15.5727 15.8843C17.9172 15.8843 19.8178 13.9837 19.8178 11.6392C19.8178 9.29465 17.9172 7.39404 15.5727 7.39404C15.0287 7.39404 14.5066 7.4968 14.0264 7.6847L14.6223 9.20781C14.9158 9.093 15.2358 9.02959 15.5727 9.02959C17.0139 9.02959 18.1823 10.1979 18.1823 11.6392Z"})});var wb=r(E()),_7=r(h()),k7=(0,_7.jsx)(wb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,_7.jsx)(wb.Path,{d:"M12 9c-.8 0-1.5.7-1.5 1.5S11.2 12 12 12s1.5-.7 1.5-1.5S12.8 9 12 9zm0-5c-3.6 0-6.5 2.8-6.5 6.2 0 .8.3 1.8.9 3.1.5 1.1 1.2 2.3 2 3.6.7 1 3 3.8 3.2 3.9l.4.5.4-.5c.2-.2 2.6-2.9 3.2-3.9.8-1.2 1.5-2.5 2-3.6.6-1.3.9-2.3.9-3.1C18.5 6.8 15.6 4 12 4zm4.3 8.7c-.5 1-1.1 2.2-1.9 3.4-.5.7-1.7 2.2-2.4 3-.7-.8-1.9-2.3-2.4-3-.8-1.2-1.4-2.3-1.9-3.3-.6-1.4-.7-2.2-.7-2.5 0-2.6 2.2-4.7 5-4.7s5 2.1 5 4.7c0 .2-.1 1-.7 2.4z"})});var Cb=r(E()),w7=r(h()),C7=(0,w7.jsx)(Cb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,w7.jsx)(Cb.Path,{d:"M11.2 6.8c-.7 0-1.4.5-1.6 1.1l-2.8 7.5-1.2-1.8c-.1-.2-.4-.3-.6-.3H3v1.5h1.6l1.2 1.8c.6.9 1.9.7 2.2-.3l2.9-7.9s.1-.2.2-.2h7.8V6.7h-7.8Zm5.3 3.4-1.9 1.9-1.9-1.9-1.1 1.1 1.9 1.9-1.9 1.9 1.1 1.1 1.9-1.9 1.9 1.9 1.1-1.1-1.9-1.9 1.9-1.9-1.1-1.1Z"})});var Sb=r(E()),S7=r(h()),T7=(0,S7.jsx)(Sb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,S7.jsx)(Sb.Path,{d:"M3 6v11.5h8V6H3Zm11 3h7V7.5h-7V9Zm7 3.5h-7V11h7v1.5ZM14 16h7v-1.5h-7V16Z"})});var Mh=r(E()),Rh=r(h()),zh=(0,Rh.jsxs)(Mh.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,Rh.jsx)(Mh.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,Rh.jsx)(Mh.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"})]});var Tb=r(E()),B7=r(h()),P7=(0,B7.jsx)(Tb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,B7.jsx)(Tb.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"})});var Bb=r(E()),N7=r(h()),Ah=(0,N7.jsx)(Bb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,N7.jsx)(Bb.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})});var Pb=r(E()),I7=r(h()),D7=(0,I7.jsx)(Pb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,I7.jsx)(Pb.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"})});var Nb=r(E()),E7=r(h()),Sm=(0,E7.jsx)(Nb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,E7.jsx)(Nb.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"})});var Ib=r(E()),L7=r(h()),M7=(0,L7.jsx)(Ib.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,L7.jsx)(Ib.Path,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"})});var Db=r(E()),R7=r(h()),z7=(0,R7.jsx)(Db.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,R7.jsx)(Db.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12-9.8c.4 0 .8-.3.9-.7l1.1-3h3.6l.5 1.7h1.9L13 9h-2.2l-3.4 9.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12H20V6c0-1.1-.9-2-2-2zm-6 7l1.4 3.9h-2.7L12 11z"})});var Eb=r(E()),A7=r(h()),V7=(0,A7.jsx)(Eb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,A7.jsx)(Eb.Path,{d:"M17.5 9V6a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v3H8V6a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v3h1.5Zm0 6.5V18a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-2.5H8V18a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-2.5h1.5ZM4 13h16v-1.5H4V13Z"})});var Vh=r(E()),Fh=r(h()),$s=(0,Fh.jsxs)(Vh.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,Fh.jsx)(Vh.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,Fh.jsx)(Vh.Path,{d:"M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"})]});var bd=r(E()),yd=r(h()),F7=(0,yd.jsxs)(bd.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,yd.jsx)(bd.Path,{d:"M14.5 5.5h-7V7h7V5.5ZM7.5 9h7v1.5h-7V9Zm7 3.5h-7V14h7v-1.5Z"}),(0,yd.jsx)(bd.Path,{d:"M16 2H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2ZM6 3.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V4a.5.5 0 0 1 .5-.5Z"}),(0,yd.jsx)(bd.Path,{d:"M20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z"})]});var Lb=r(E()),H7=r(h()),j7=(0,H7.jsx)(Lb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,H7.jsx)(Lb.Path,{d:"m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"})});var Mb=r(E()),O7=r(h()),Tm=(0,O7.jsx)(Mb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,O7.jsx)(Mb.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})});var Rb=r(E()),U7=r(h()),Hh=(0,U7.jsx)(Rb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U7.jsx)(Rb.Path,{d:"m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"})});var zb=r(E()),G7=r(h()),$7=(0,G7.jsx)(zb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,G7.jsx)(zb.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"})});var Ab=r(E()),W7=r(h()),xd=(0,W7.jsx)(Ab.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,W7.jsx)(Ab.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})});var Vb=r(E()),q7=r(h()),Z7=(0,q7.jsx)(Vb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,q7.jsx)(Vb.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z"})});var Fb=r(E()),K7=r(h()),Q7=(0,K7.jsx)(Fb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,K7.jsx)(Fb.Path,{d:"M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z"})});var Hb=r(E()),Y7=r(h()),X7=(0,Y7.jsx)(Hb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Y7.jsx)(Hb.Path,{d:"M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z"})});var jb=r(E()),J7=r(h()),Bm=(0,J7.jsx)(jb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,J7.jsx)(jb.Path,{d:"M10 4.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm2.25 7.5v-1A2.75 2.75 0 0011 8.25H7A2.75 2.75 0 004.25 11v1h1.5v-1c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v1h1.5zM4 20h9v-1.5H4V20zm16-4H4v-1.5h16V16z",fillRule:"evenodd",clipRule:"evenodd"})});var Ob=r(E()),e9=r(h()),_d=(0,e9.jsx)(Ob.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,e9.jsx)(Ob.Path,{d:"M20 4H4v1.5h16V4zm-2 9h-3c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3zM4 9.5h9V8H4v1.5zM9 13H6c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3z",fillRule:"evenodd",clipRule:"evenodd"})});var Ub=r(E()),t9=r(h()),jh=(0,t9.jsx)(Ub.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,t9.jsx)(Ub.Path,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-2.2 6.6H7l1.6-2.2c.3-.4.5-.7.6-.9.1-.2.2-.4.2-.5 0-.2-.1-.3-.1-.4-.1-.1-.2-.1-.4-.1s-.4 0-.6.1c-.3.1-.5.3-.7.4l-.2.2-.2-1.2.1-.1c.3-.2.5-.3.8-.4.3-.1.6-.1.9-.1.3 0 .6.1.9.2.2.1.4.3.6.5.1.2.2.5.2.7 0 .3-.1.6-.2.9-.1.3-.4.7-.7 1.1l-.5.6h1.6v1.2z"})});var Gb=r(E()),o9=r(h()),r9=(0,o9.jsx)(Gb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o9.jsx)(Gb.Path,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-.5 6.6H6.7l-1.2 1.2v-6.3h7v5.1z"})});var $b=r(E()),a9=r(h()),n9=(0,a9.jsx)($b.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a9.jsx)($b.Path,{d:"M14 10.1V4c0-.6-.4-1-1-1H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1zm-1.5-.5H6.7l-1.2 1.2V4.5h7v5.1zM19 12h-8c-.6 0-1 .4-1 1v6.1c0 .6.4 1 1 1h5.7l1.8 1.8c.1.2.4.3.6.3.1 0 .2 0 .3-.1.4-.1.6-.5.6-.8V13c0-.6-.4-1-1-1zm-.5 7.8l-1.2-1.2h-5.8v-5.1h7v6.3z"})});var Wb=r(E()),i9=r(h()),l9=(0,i9.jsx)(Wb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i9.jsx)(Wb.Path,{d:"M4 6h12V4.5H4V6Zm16 4.5H4V9h16v1.5ZM4 15h16v-1.5H4V15Zm0 4.5h16V18H4v1.5Z"})});var Oh=r(E()),Uh=r(h()),Gh=(0,Uh.jsxs)(Oh.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,Uh.jsx)(Oh.Path,{d:"M11.696 13.972c.356-.546.599-.958.728-1.235a1.79 1.79 0 00.203-.783c0-.264-.077-.47-.23-.618-.148-.153-.354-.23-.618-.23-.295 0-.569.07-.82.212a3.413 3.413 0 00-.738.571l-.147-1.188c.289-.234.59-.41.903-.526.313-.117.66-.175 1.041-.175.375 0 .695.08.959.24.264.153.46.362.59.626.135.265.203.556.203.876 0 .362-.08.734-.24 1.115-.154.381-.427.87-.82 1.466l-.756 1.152H14v1.106h-4l1.696-2.609z"}),(0,Uh.jsx)(Oh.Path,{d:"M19.5 7h-15v12a.5.5 0 00.5.5h14a.5.5 0 00.5-.5V7zM3 7V5a2 2 0 012-2h14a2 2 0 012 2v14a2 2 0 01-2 2H5a2 2 0 01-2-2V7z"})]});var qb=r(E()),s9=r(h()),c9=(0,s9.jsx)(qb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s9.jsx)(qb.Path,{d:"M8.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H4v-3h4.001ZM4 20h9v-1.5H4V20Zm16-4H4v-1.5h16V16ZM13.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H9v-3h4.001Z"})});var Zb=r(E()),u9=r(h()),m9=(0,u9.jsx)(Zb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,u9.jsx)(Zb.Path,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"})});var Kb=r(E()),p9=r(h()),$h=(0,p9.jsx)(Kb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,p9.jsx)(Kb.Path,{d:"M18 5.5H6a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5V6a.5.5 0 0 0-.5-.5ZM6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm1 5h1.5v1.5H7V9Zm1.5 4.5H7V15h1.5v-1.5ZM10 9h7v1.5h-7V9Zm7 4.5h-7V15h7v-1.5Z"})});var Qb=r(E()),d9=r(h()),f9=(0,d9.jsx)(Qb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d9.jsx)(Qb.Path,{d:"M8.1 12.3c.1.1.3.3.5.3.2.1.4.1.6.1.2 0 .4 0 .6-.1.2-.1.4-.2.5-.3l3-3c.3-.3.5-.7.5-1.1 0-.4-.2-.8-.5-1.1L9.7 3.5c-.1-.2-.3-.3-.5-.3H5c-.4 0-.8.4-.8.8v4.2c0 .2.1.4.2.5l3.7 3.6zM5.8 4.8h3.1l3.4 3.4v.1l-3 3 .5.5-.7-.5-3.3-3.4V4.8zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"})});var Yb=r(E()),g9=r(h()),h9=(0,g9.jsx)(Yb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,g9.jsx)(Yb.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 16.5h6V15H7v1.5zm4-4h6V11h-6v1.5zM9 11H7v1.5h2V11zm6 5.5h2V15h-2v1.5z"})});var Xb=r(E()),v9=r(h()),b9=(0,v9.jsx)(Xb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,v9.jsx)(Xb.Path,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"})});var Jb=r(E()),y9=r(h()),x9=(0,y9.jsx)(Jb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,y9.jsx)(Jb.Path,{d:"M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"})});var ey=r(E()),_9=r(h()),k9=(0,_9.jsx)(ey.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,_9.jsx)(ey.Path,{d:"M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"})});var ty=r(E()),w9=r(h()),C9=(0,w9.jsx)(ty.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,w9.jsx)(ty.Path,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"})});var oy=r(E()),S9=r(h()),Wh=(0,S9.jsx)(oy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,S9.jsx)(oy.Path,{d:"M5 13.5h3v-3H5v3zm5 0h3v-3h-3v3zM17 9l-1 1 2 2-2 2 1 1 3-3-3-3z"})});var ry=r(E()),T9=r(h()),qh=(0,T9.jsx)(ry.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T9.jsx)(ry.Path,{d:"M4 13.5h6v-3H4v3zm8.2-2.5.8-.3V14h1V9.3l-2.2.7.4 1zm7.1-1.2c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3-.1-.8-.3-1.1z"})});var ay=r(E()),B9=r(h()),Zh=(0,B9.jsx)(ay.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,B9.jsx)(ay.Path,{d:"M16 10.5v3h3v-3h-3zm-5 3h3v-3h-3v3zM7 9l-3 3 3 3 1-1-2-2 2-2-1-1z"})});var ny=r(E()),P9=r(h()),Kh=(0,P9.jsx)(ny.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,P9.jsx)(ny.Path,{d:"M4 13.5h6v-3H4v3zm8 0h3v-3h-3v3zm5-3v3h3v-3h-3z"})});var iy=r(E()),N9=r(h()),I9=(0,N9.jsx)(iy.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,N9.jsx)(iy.Path,{d:"M13 6v6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H13zm-9 6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H4v6z"})});var ly=r(E()),D9=r(h()),E9=(0,D9.jsx)(ly.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,D9.jsx)(ly.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m13.955 20.748 8-17.5-.91-.416L19.597 6H13.5v1.5h5.411l-1.6 3.5H13.5v1.5h3.126l-1.6 3.5H13.5l.028 1.5h.812l-1.295 2.832.91.416ZM17.675 16l-.686 1.5h4.539L21.5 16h-3.825Zm2.286-5-.686 1.5H21.5V11h-1.54ZM2 12c0 3.58 2.42 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.48 0-4.5-1.52-4.5-4S5.52 7.5 8 7.5h3.5V6H8c-3.58 0-6 2.42-6 6Z"})});var sy=r(E()),L9=r(h()),M9=(0,L9.jsx)(sy.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,L9.jsx)(sy.Path,{d:"M7 18h4.5v1.5h-7v-7H6V17L17 6h-4.5V4.5h7v7H18V7L7 18Z"})});var cy=r(E()),R9=r(h()),z9=(0,R9.jsx)(cy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,R9.jsx)(cy.Path,{d:"M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z"})});var uy=r(E()),A9=r(h()),Qh=(0,A9.jsx)(uy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,A9.jsx)(uy.Path,{d:"M5 10.2h-.8v1.5H5c1.9 0 3.8.8 5.1 2.1 1.4 1.4 2.1 3.2 2.1 5.1v.8h1.5V19c0-2.3-.9-4.5-2.6-6.2-1.6-1.6-3.8-2.6-6.1-2.6zm10.4-1.6C12.6 5.8 8.9 4.2 5 4.2h-.8v1.5H5c3.5 0 6.9 1.4 9.4 3.9s3.9 5.8 3.9 9.4v.8h1.5V19c0-3.9-1.6-7.6-4.4-10.4zM4 20h3v-3H4v3z"})});var my=r(E()),V9=r(h()),Yh=(0,V9.jsx)(my.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,V9.jsx)(my.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})});var py=r(E()),F9=r(h()),H9=(0,F9.jsx)(py.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,F9.jsx)(py.Path,{d:"M4.5 12.5v4H3V7h1.5v3.987h15V7H21v9.5h-1.5v-4h-15Z"})});var dy=r(E()),j9=r(h()),Xh=(0,j9.jsx)(dy.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,j9.jsx)(dy.Path,{d:"M9 11.8l6.1-4.5c.1.4.4.7.9.7h2c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-2c-.6 0-1 .4-1 1v.4l-6.4 4.8c-.2-.1-.4-.2-.6-.2H6c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h2c.2 0 .4-.1.6-.2l6.4 4.8v.4c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1h-2c-.5 0-.8.3-.9.7L9 12.2v-.4z"})});var fy=r(E()),O9=r(h()),Jh=(0,O9.jsx)(fy.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,O9.jsx)(fy.Path,{d:"M16 4.2v1.5h2.5v12.5H16v1.5h4V4.2h-4zM4.2 19.8h4v-1.5H5.8V5.8h2.5V4.2h-4l-.1 15.6zm5.1-3.1l1.4.6 4-10-1.4-.6-4 10z"})});var gy=r(E()),U9=r(h()),G9=(0,U9.jsx)(gy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U9.jsx)(gy.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})});var hy=r(E()),$9=r(h()),W9=(0,$9.jsx)(hy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,$9.jsx)(hy.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8Zm0 1.5c3.4 0 6.2 2.7 6.5 6l-1.2-.6-.8-.4c-.1 0-.2 0-.3-.1H16c-.1-.2-.4-.2-.7 0l-2.9 2.1L9 11.3h-.7L5.5 13v-1.1c0-3.6 2.9-6.5 6.5-6.5Zm0 13c-2.7 0-5-1.7-6-4l2.8-1.7 3.5 1.2h.4s.2 0 .4-.2l2.9-2.1.4.2c.6.3 1.4.7 2.1 1.1-.5 3.1-3.2 5.4-6.4 5.4Z"})});var vy=r(E()),q9=r(h()),Z9=(0,q9.jsx)(vy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,q9.jsx)(vy.Path,{fill:"none",d:"M5.75 12.75V18.25H11.25M12.75 5.75H18.25V11.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"square"})});var by=r(E()),K9=r(h()),Q9=(0,K9.jsx)(by.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,K9.jsx)(by.Path,{d:"M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z"})});var yy=r(E()),Y9=r(h()),e0=(0,Y9.jsx)(yy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Y9.jsx)(yy.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})});var xy=r(E()),X9=r(h()),J9=(0,X9.jsx)(xy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,X9.jsx)(xy.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})});var _y=r(E()),eS=r(h()),kd=(0,eS.jsx)(_y.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,eS.jsx)(_y.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14.2c.1.9.9 1.7 1.8 1.8H19.2c1-.1 1.8-1 1.8-2V5c0-1.1-.9-2-2-2ZM8.5 19.5H5c-.3 0-.5-.2-.5-.5v-3.5h4v4Zm0-5.5h-4v-4h4v4Zm0-5.5h-4V5c0-.3.2-.5.5-.5h3.5v4Zm11 10.5c0 .3-.2.5-.5.5h-9v-15h9c.3 0 .5.2.5.5v14Zm-4-10.8H14v3h-3v1.5h3v3h1.5v-3h3v-1.5h-3v-3Z"})});var ky=r(E()),tS=r(h()),oS=(0,tS.jsx)(ky.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,tS.jsx)(ky.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1 .8 1.9 1.8 2H19.2c.9-.1 1.7-.9 1.8-1.8V5c0-1.1-.9-2-2-2Zm-5 16.5H5c-.3 0-.5-.2-.5-.5V5c0-.3.2-.5.5-.5h9v15Zm5.5-.5c0 .3-.2.5-.5.5h-3.5v-4h4V19Zm0-5h-4v-4h4v4Zm0-5.5h-4v-4H19c.3 0 .5.2.5.5v3.5Zm-11 7.3H10v-3h3v-1.5h-3v-3H8.5v3h-3v1.5h3v3Z"})});var wy=r(E()),rS=r(h()),aS=(0,rS.jsx)(wy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,rS.jsx)(wy.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14.2c.1.9.9 1.7 1.8 1.8H19.2c1-.1 1.8-1 1.8-2V5c0-1.1-.9-2-2-2ZM8.5 19.5H5c-.3 0-.5-.2-.5-.5V5c0-.3.2-.5.5-.5h3.5v15Zm11-.5c0 .3-.2.5-.5.5h-9v-15h9c.3 0 .5.2.5.5v14ZM16.9 8.8l-2.1 2.1-2.1-2.1-1.1 1.1 2.1 2.1-2.1 2.1 1.1 1.1 2.1-2.1 2.1 2.1 1.1-1.1-2.1-2.1L18 9.9l-1.1-1.1Z"})});var t0=r(E()),o0=r(h()),r0=(0,o0.jsxs)(t0.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,o0.jsx)(t0.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M20 9.484h-8.889v-1.5H20v1.5Zm0 7h-4.889v-1.5H20v1.5Zm-14 .032a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 1a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),(0,o0.jsx)(t0.Path,{d:"M13 15.516a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM8 8.484a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})]});var Cy=r(E()),nS=r(h()),iS=(0,nS.jsx)(Cy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,nS.jsx)(Cy.Path,{d:"M19 3H4.8c-.9.1-1.7.9-1.8 1.8V19.2c.1 1 1 1.8 2 1.8h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm-9 1.5h4v4h-4v-4ZM4.5 5c0-.3.2-.5.5-.5h3.5v4h-4V5Zm15 14c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-9h15v9Zm0-10.5h-4v-4H19c.3 0 .5.2.5.5v3.5Zm-8.3 10h1.5v-3h3V14h-3v-3h-1.5v3h-3v1.5h3v3Z"})});var Sy=r(E()),lS=r(h()),sS=(0,lS.jsx)(Sy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,lS.jsx)(Sy.Path,{d:"M21 5c0-1.1-.9-2-2-2H5c-1 0-1.9.8-2 1.8V19.2c.1.9.9 1.7 1.8 1.8H19c1.1 0 2-.9 2-2V5ZM4.5 14V5c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v9h-15Zm4 5.5H5c-.3 0-.5-.2-.5-.5v-3.5h4v4Zm5.5 0h-4v-4h4v4Zm5.5-.5c0 .3-.2.5-.5.5h-3.5v-4h4V19ZM11.2 10h-3V8.5h3v-3h1.5v3h3V10h-3v3h-1.5v-3Z"})});var Ty=r(E()),cS=r(h()),uS=(0,cS.jsx)(Ty.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,cS.jsx)(Ty.Path,{d:"M19 3H4.8c-.9.1-1.7.9-1.8 1.8V19.2c.1 1 1 1.8 2 1.8h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-9h15v9Zm0-10.5h-15V5c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v3.5Zm-9.6 9.4 2.1-2.1 2.1 2.1 1.1-1.1-2.1-2.1 2.1-2.1-1.1-1.1-2.1 2.1-2.1-2.1-1.1 1.1 2.1 2.1-2.1 2.1 1.1 1.1Z"})});var By=r(E()),mS=r(h()),pS=(0,mS.jsx)(By.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,mS.jsx)(By.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm.5 2v6.2h-6.8V4.4h6.2c.3 0 .5.2.5.5ZM5 4.5h6.2v6.8H4.4V5.1c0-.3.2-.5.5-.5ZM4.5 19v-6.2h6.8v6.8H5.1c-.3 0-.5-.2-.5-.5Zm14.5.5h-6.2v-6.8h6.8v6.2c0 .3-.2.5-.5.5Z"})});var Py=r(E()),dS=r(h()),a0=(0,dS.jsx)(Py.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,dS.jsx)(Py.Path,{d:"M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})});var n0=r(E()),i0=r(h()),fS=(0,i0.jsxs)(n0.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,i0.jsx)(n0.Path,{d:"M 12.841306,16.677917 12.001264,12.71529 Q 11.835801,11.930402 11.695793,11.417042 11.560029,10.89944 11.398809,10.568514 11.237588,10.237588 11,10 10.635133,9.6351329 10.219354,9.6351329 9.8078183,9.6308902 9.4387086,10 8.9932313,10.445477 8.8574668,11.022476 8.7259449,11.595233 8.7259449,12.155262 L 7.4955791,11.196425 Q 7.5719467,10.509117 7.8307477,9.9109045 8.0937915,9.3084495 8.6410921,8.7611489 9.1799075,8.2223335 9.7569066,8.086569 q 0.5812414,-0.1400071 1.1242994,0.046669 0.543058,0.1866762 0.975808,0.6194255 0.335168,0.3351686 0.581242,0.767918 0.24183,0.4285067 0.436992,1.0564174 0.195161,0.619426 0.381837,1.527351 l 0.364867,1.756453 1.883733,-1.883732 1.018234,1.018233 z"}),(0,i0.jsx)(n0.Path,{d:"M12.574 4a.75.75 0 0 1 .53.22l6.723 6.724a2.315 2.315 0 0 1 0 3.264l-.532-.528.531.53-5.61 5.611a2.31 2.31 0 0 1-3.276.001l-6.72-6.716a.75.75 0 0 1-.22-.53V4.75A.75.75 0 0 1 4.75 4h7.824ZM5.5 5.5v6.764l6.501 6.497a.817.817 0 0 0 .889.178.816.816 0 0 0 .264-.178l5.61-5.61a.816.816 0 0 0-.001-1.149l-6.5-6.502H5.5Z"})]});var Ny=r(E()),gS=r(h()),hS=(0,gS.jsx)(Ny.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,gS.jsx)(Ny.Path,{d:"M6.08 10.103h2.914L9.657 12h1.417L8.23 4H6.846L4 12h1.417l.663-1.897Zm1.463-4.137.994 2.857h-2l1.006-2.857ZM11 16H4v-1.5h7V16Zm1 0h8v-1.5h-8V16Zm-4 4H4v-1.5h4V20Zm7-1.5V20H9v-1.5h6Z"})});var l0=r(E()),s0=r(h()),vS=(0,s0.jsxs)(l0.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,s0.jsx)(l0.Path,{d:"m14.95 13.889-1.061 1.061-5.552-5.553 1.06-1.06 5.552 5.552Z"}),(0,s0.jsx)(l0.Path,{d:"M12.574 4a.75.75 0 0 1 .53.22l6.723 6.724a2.315 2.315 0 0 1 0 3.264l-.532-.528.531.53-5.61 5.611a2.31 2.31 0 0 1-3.276.001l-6.72-6.716a.75.75 0 0 1-.22-.53V4.75A.75.75 0 0 1 4.75 4h7.824ZM5.5 5.5v6.764l6.501 6.497a.817.817 0 0 0 .889.178.816.816 0 0 0 .264-.178l5.61-5.61a.816.816 0 0 0-.001-1.149l-6.5-6.502H5.5Z"})]});var Iy=r(E()),bS=r(h()),c0=(0,bS.jsx)(Iy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,bS.jsx)(Iy.Path,{d:"M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16.5c-4.1 0-7.5-3.4-7.5-7.5S7.9 4.5 12 4.5s7.5 3.4 7.5 7.5-3.4 7.5-7.5 7.5zM12 7l-1 5c0 .3.2.6.4.8l4.2 2.8-2.7-4.1L12 7z"})});var Dy=r(E()),yS=r(h()),$i=(0,yS.jsx)(Dy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,yS.jsx)(Dy.Path,{d:"m4 5.5h2v6.5h1.5v-6.5h2v-1.5h-5.5zm16 10.5h-16v-1.5h16zm-7 4h-9v-1.5h9z"})});var Ey=r(E()),xS=r(h()),Ws=(0,xS.jsx)(Ey.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,xS.jsx)(Ey.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"})});var Ly=r(E()),_S=r(h()),u0=(0,_S.jsx)(Ly.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,_S.jsx)(Ly.Path,{d:"M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z"})});var My=r(E()),kS=r(h()),wd=(0,kS.jsx)(My.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,kS.jsx)(My.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"})});var Ry=r(E()),wS=r(h()),CS=(0,wS.jsx)(Ry.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,wS.jsx)(Ry.Path,{d:"M19 5c1.1 0 2 .9 2 2v10c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2zM5 6.5c-.3 0-.5.2-.5.5v10c0 .3.2.5.5.5h14c.3 0 .5-.2.5-.5V7c0-.3-.2-.5-.5-.5zM14.734 9q.714 0 1.15.253.437.247.639.84.2.591.2 1.61v1.15q0 .402.036.667.04.258.172.39.138.127.437.127h.104l-.162.828h-.08q-.5 0-.776-.097a.9.9 0 0 1-.414-.283 2 2 0 0 1-.259-.448q-.316.367-.748.598-.43.23-.977.23-.524 0-.914-.213a1.56 1.56 0 0 1-.61-.58 1.65 1.65 0 0 1-.213-.84q0-.477.207-.817.213-.345.564-.568.357-.23.794-.363.437-.139.902-.196.471-.062.902-.068 0-.805-.315-1.053-.316-.247-.915-.247-.316 0-.678.098-.356.097-.805.408l-.15-.84a2.8 2.8 0 0 1 .846-.419A3.4 3.4 0 0 1 14.734 9m-5.877 1.669H9.86l.59-1.531h.689l-.585 1.53h.898l-.249.727h-.922l-.337.866h1.019l-.354.773h-.962l-.681 1.804h-.701l.69-1.804h-.999l-.693 1.804h-.69l.685-1.804H6.3l.34-.773h.915l.333-.866h-.994l.244-.726H8.16l.594-1.531h.693zm6.832 1.264q-.823.029-1.335.16-.506.133-.74.397-.236.265-.236.685 0 .454.241.66.248.202.632.202.414 0 .8-.207.39-.207.637-.552zm-7.441.328h1l.34-.866h-1z"})});var zy={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/archives",title:"Archives",category:"widgets",description:"Display a date archive of your posts.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showLabel:{type:"boolean",default:!0},showPostCounts:{type:"boolean",default:!1},type:{type:"string",default:"monthly"}},supports:{align:!0,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-archives-editor"};var da=r(M()),$a=r(B()),Ay=r(S()),qL=r(Vc());var ar=r(h());function ZL({attributes:e,setAttributes:t}){let{showLabel:o,showPostCounts:a,displayAsDropdown:n,type:i}=e,l=G();return(0,ar.jsxs)(ar.Fragment,{children:[(0,ar.jsx)(Ay.InspectorControls,{children:(0,ar.jsxs)(da.__experimentalToolsPanel,{label:(0,$a.__)("Settings"),resetAll:()=>{t({displayAsDropdown:!1,showLabel:!0,showPostCounts:!1,type:"monthly"})},dropdownMenuProps:l,children:[(0,ar.jsx)(da.__experimentalToolsPanelItem,{label:(0,$a.__)("Display as dropdown"),isShownByDefault:!0,hasValue:()=>n,onDeselect:()=>t({displayAsDropdown:!1}),children:(0,ar.jsx)(da.ToggleControl,{label:(0,$a.__)("Display as dropdown"),checked:n,onChange:()=>t({displayAsDropdown:!n})})}),n&&(0,ar.jsx)(da.__experimentalToolsPanelItem,{label:(0,$a.__)("Show label"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>t({showLabel:!0}),children:(0,ar.jsx)(da.ToggleControl,{label:(0,$a.__)("Show label"),checked:o,onChange:()=>t({showLabel:!o})})}),(0,ar.jsx)(da.__experimentalToolsPanelItem,{label:(0,$a.__)("Show post counts"),isShownByDefault:!0,hasValue:()=>a,onDeselect:()=>t({showPostCounts:!1}),children:(0,ar.jsx)(da.ToggleControl,{label:(0,$a.__)("Show post counts"),checked:a,onChange:()=>t({showPostCounts:!a})})}),(0,ar.jsx)(da.__experimentalToolsPanelItem,{label:(0,$a.__)("Group by"),isShownByDefault:!0,hasValue:()=>i!=="monthly",onDeselect:()=>t({type:"monthly"}),children:(0,ar.jsx)(da.SelectControl,{__next40pxDefaultSize:!0,label:(0,$a.__)("Group by"),options:[{label:(0,$a.__)("Year"),value:"yearly"},{label:(0,$a.__)("Month"),value:"monthly"},{label:(0,$a.__)("Week"),value:"weekly"},{label:(0,$a.__)("Day"),value:"daily"}],value:i,onChange:s=>t({type:s})})})]})}),(0,ar.jsx)("div",{...(0,Ay.useBlockProps)(),children:(0,ar.jsx)(da.Disabled,{children:(0,ar.jsx)(qL.default,{block:"core/archives",skipBlockSupportAttributes:!0,attributes:e})})})]})}var{name:KL}=zy,QL={icon:L6,example:{},edit:ZL},Yie=()=>D({name:KL,metadata:zy,settings:QL});var BS={};$(BS,{init:()=>rle,metadata:()=>Vy,name:()=>dM,settings:()=>fM});var Vy={$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:{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 Pm=r(S()),Wa=r(M()),di=r(B()),Hy=r(ko());var m0=r(Y()),Gc=r(B()),XL=r(A());function JL(e){let t=e?e[0]:24,o=e?e[e.length-1]:96,a=Math.floor(o*2.5);return{minSize:t,maxSize:a}}function eM({commentId:e}){let[t]=(0,m0.useEntityProp)("root","comment","author_avatar_urls",e),[o]=(0,m0.useEntityProp)("root","comment","author_name",e),a=t?Object.values(t):null,n=t?Object.keys(t):null,{minSize:i,maxSize:l}=JL(n),s=mh();return{src:a?a[a.length-1]:s,minSize:i,maxSize:l,alt:o?(0,Gc.sprintf)((0,Gc.__)("%s Avatar"),o):(0,Gc.__)("Default Avatar")}}function tM({userId:e,postId:t,postType:o}){let{authorDetails:a}=(0,XL.useSelect)(u=>{let{getEditedEntityRecord:m,getUser:p}=u(m0.store);if(e)return{authorDetails:p(e)};let d=m("postType",o,t)?.author;return{authorDetails:d?p(d):null}},[o,t,e]),n=a?.avatar_urls?Object.values(a.avatar_urls):null,i=a?.avatar_urls?Object.keys(a.avatar_urls):null,{minSize:l,maxSize:s}=JL(i),c=mh();return{src:n?n[n.length-1]:c,minSize:l,maxSize:s,alt:a?(0,Gc.sprintf)((0,Gc.__)("%s Avatar"),a?.name):(0,Gc.__)("Default Avatar")}}var TS=r(B()),rM=r(M()),aM=r(A()),nM=r(Y()),Fy=r(H()),iM=r(we()),lM=r(jo()),sM=r(h()),Jie={who:"authors",per_page:100,_fields:"id,name",context:"view"};function cM({value:e,onChange:t}){let[o,a]=(0,Fy.useState)(""),{authors:n,isLoading:i}=(0,aM.useSelect)(s=>{let{getUsers:c,isResolving:u}=s(nM.store),m={...Jie};return o&&(m.search=o,m.search_columns=["name"]),{authors:c(m),isLoading:u("getUsers",[m])}},[o]),l=(0,Fy.useMemo)(()=>(n??[]).map(s=>({value:s.id,label:(0,lM.decodeEntities)(s.name)})),[n]);return(0,sM.jsx)(rM.ComboboxControl,{__next40pxDefaultSize:!0,label:(0,TS.__)("User"),help:(0,TS.__)("Select the avatar user to display, if it is blank it will use the post/page author."),value:e,onChange:t,options:l,onFilterValueChange:(0,iM.debounce)(a,300),isLoading:i})}var wt=r(h()),uM=({setAttributes:e,avatar:t,attributes:o,selectUser:a})=>{let n=G();return(0,wt.jsx)(Pm.InspectorControls,{children:(0,wt.jsxs)(Wa.__experimentalToolsPanel,{label:(0,di.__)("Settings"),resetAll:()=>{e({size:96,isLink:!1,linkTarget:"_self",userId:void 0})},dropdownMenuProps:n,children:[(0,wt.jsx)(Wa.__experimentalToolsPanelItem,{label:(0,di.__)("Image size"),isShownByDefault:!0,hasValue:()=>o?.size!==96,onDeselect:()=>e({size:96}),children:(0,wt.jsx)(Wa.RangeControl,{__next40pxDefaultSize:!0,label:(0,di.__)("Image size"),onChange:i=>e({size:i}),min:t.minSize,max:t.maxSize,initialPosition:o?.size,value:o?.size})}),(0,wt.jsx)(Wa.__experimentalToolsPanelItem,{label:(0,di.__)("Link to user profile"),isShownByDefault:!0,hasValue:()=>o?.isLink,onDeselect:()=>e({isLink:!1}),children:(0,wt.jsx)(Wa.ToggleControl,{label:(0,di.__)("Link to user profile"),onChange:()=>e({isLink:!o.isLink}),checked:o.isLink})}),o.isLink&&(0,wt.jsx)(Wa.__experimentalToolsPanelItem,{label:(0,di.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>o?.linkTarget!=="_self",onDeselect:()=>e({linkTarget:"_self"}),children:(0,wt.jsx)(Wa.ToggleControl,{label:(0,di.__)("Open in new tab"),onChange:i=>e({linkTarget:i?"_blank":"_self"}),checked:o.linkTarget==="_blank"})}),a&&(0,wt.jsx)(Wa.__experimentalToolsPanelItem,{label:(0,di.__)("User"),isShownByDefault:!0,hasValue:()=>!!o?.userId,onDeselect:()=>e({userId:void 0}),children:(0,wt.jsx)(cM,{value:o?.userId,onChange:i=>{e({userId:i})}})})]})})},ele=({children:e,isLink:t})=>t?(0,wt.jsx)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:o=>o.preventDefault(),children:e}):e,mM=({setAttributes:e,attributes:t,avatar:o,blockProps:a,isSelected:n})=>{let i=(0,Pm.__experimentalUseBorderProps)(t),l=(0,Hy.addQueryArgs)((0,Hy.removeQueryArgs)(o?.src,["s"]),{s:t?.size*2});return(0,wt.jsx)("div",{...a,children:(0,wt.jsx)(ele,{isLink:t.isLink,children:(0,wt.jsx)(Wa.ResizableBox,{size:{width:t.size,height:t.size},showHandle:n,onResizeStop:(s,c,u,m)=>{e({size:parseInt(t.size+(m.height||m.width),10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,di.isRTL)(),bottom:!0,left:(0,di.isRTL)()},minWidth:o.minSize,maxWidth:o.maxSize,children:(0,wt.jsx)("img",{src:l,alt:o.alt,className:w("avatar","avatar-"+t.size,"photo","wp-block-avatar__image",i.className),style:i.style})})})})},tle=({attributes:e,context:t,setAttributes:o,isSelected:a})=>{let{commentId:n}=t,i=(0,Pm.useBlockProps)(),l=eM({commentId:n});return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(uM,{avatar:l,setAttributes:o,attributes:e,selectUser:!1}),(0,wt.jsx)(mM,{attributes:e,avatar:l,blockProps:i,isSelected:a,setAttributes:o})]})},ole=({attributes:e,context:t,setAttributes:o,isSelected:a})=>{let{postId:n,postType:i}=t,l=tM({userId:e?.userId,postId:n,postType:i}),s=(0,Pm.useBlockProps)();return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(uM,{selectUser:!0,attributes:e,avatar:l,setAttributes:o}),(0,wt.jsx)(mM,{attributes:e,avatar:l,blockProps:s,isSelected:a,setAttributes:o})]})};function pM(e){return e?.context?.commentId||e?.context?.commentId===null?(0,wt.jsx)(tle,{...e}):(0,wt.jsx)(ole,{...e})}var{name:dM}=Vy,fM={icon:xh,edit:pM,example:{}},rle=()=>D({name:dM,metadata:Vy,settings:fM});var RS={};$(RS,{init:()=>fle,metadata:()=>Uy,name:()=>FM,settings:()=>Gy});var MS=r(B());var VM=r(U());var PS=r(S()),p0=r(h()),gM=[{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:o,loop:a,preload:n,src:i}=e;return(0,p0.jsxs)("figure",{children:[(0,p0.jsx)("audio",{controls:"controls",src:i,autoPlay:t,loop:a,preload:n}),!PS.RichText.isEmpty(o)&&(0,p0.jsx)(PS.RichText.Content,{tagName:"figcaption",value:o})]})}}];var NM=r(No()),ga=r(M()),Za=r(S()),fa=r(B()),IM=r(A());var DM=r(wo()),EM=r(H());function Cd(e,t){var o=0,a,n;t=t||{};function i(){var l=a,s=arguments.length,c,u;e:for(;l;){if(l.args.length!==arguments.length){l=l.next;continue}for(u=0;u<s;u++)if(l.args[u]!==arguments[u]){l=l.next;continue e}return l!==a&&(l===n&&(n=l.prev),l.prev.next=l.next,l.next&&(l.next.prev=l.prev),l.next=a,l.prev=null,a.prev=l,a=l),l.val}for(c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];return l={args:c,val:e.apply(null,c)},a?(a.prev=l,l.next=a):n=l,o===t.maxSize?(n=n.prev,n.next=null):o++,a=l,l.val}return i.clear=function(){a=null,n=null,o=0},i}var _M=r(M()),IS=r(H()),$l=r(U());var Gl={$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:{align:!0,spacing:{margin:!0},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"};var d0=[{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"}],NS="wp-embed";var yM=r(bM()),{lock:xM,unlock:Q}=(0,yM.__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 jy=r(h()),{name:Sd}=Gl,{kebabCase:nle}=Q(_M.privateApis),kM=e=>(0,$l.getBlockVariations)(Sd)?.find(({name:t})=>t===e),DS=(e,t=[])=>t.some(o=>e.match(o)),ile=e=>(0,$l.getBlockVariations)(Sd)?.find(({patterns:t})=>DS(e,t)),wM=e=>e&&e.includes('class="wp-embedded-content"'),CM=e=>{let t=e.url||e.thumbnail_url,o=(0,jy.jsx)("p",{children:(0,jy.jsx)("img",{src:t,alt:e.title,width:"100%"})});return(0,IS.renderToString)(o)},$c=(e,t={})=>{let{preview:o,attributes:a={}}=e,{url:n,providerNameSlug:i,type:l,...s}=a;if(!n||!(0,$l.getBlockType)(Sd))return;let c=ile(n),u=i==="wordpress"||l===NS;if(!u&&c&&(c.attributes.providerNameSlug!==i||!i))return(0,$l.createBlock)(Sd,{url:n,...s,...c.attributes});let p=(0,$l.getBlockVariations)(Sd)?.find(({name:d})=>d==="wordpress");if(!(!p||!o||!wM(o.html)||u))return(0,$l.createBlock)(Sd,{url:n,...p.attributes,...t})},lle=e=>e?d0.some(({className:t})=>e.includes(t)):!1,Nm=e=>{if(!e)return e;let t=d0.reduce((a,{className:n})=>(a.push(n),a),["wp-has-aspect-ratio"]),o=e;for(let a of t)o=o.replace(a,"");return o.trim()};function ES(e,t,o=!0){if(!o)return Nm(t);let a=document.implementation.createHTMLDocument("");a.body.innerHTML=e;let n=a.body.querySelector("iframe");if(n&&n.height&&n.width){let i=(n.width/n.height).toFixed(2);for(let l=0;l<d0.length;l++){let s=d0[l];if(i>=s.ratio)return i-s.ratio>.1?Nm(t):w(Nm(t),s.className,"wp-has-aspect-ratio")}}return t}function SM(e,t){t((0,$l.createBlock)("core/paragraph",{content:(0,IS.renderToString)((0,jy.jsx)("a",{href:e,children:e}))}))}var sle=Cd((e,t,o,a,n=!0)=>{if(!e)return{};let i={},{type:l="rich"}=e,{html:s,provider_name:c}=e,u=nle((c||t).toLowerCase());return wM(s)&&(l=NS),(s||l==="photo")&&(i.type=l,i.providerNameSlug=u),lle(o)||(i.className=ES(s,o,a&&n)),i}),TM=(e,t,o,a)=>{let{allowResponsive:n,className:i}=e;return{...e,...sle(t,o,i,a,n)}};var Im=r(H()),BM=r(we()),f0=r(B()),Td=r(S()),PM=r(M());var Oy=r(U());var Wc=r(h());function qa({attributeKey:e="caption",attributes:t,setAttributes:o,isSelected:a,insertBlocksAfter:n,placeholder:i=(0,f0.__)("Add caption"),label:l=(0,f0.__)("Caption text"),showToolbarButton:s=!0,excludeElementClassName:c,className:u,readOnly:m,tagName:p="figcaption",addLabel:d=(0,f0.__)("Add caption"),removeLabel:f=(0,f0.__)("Remove caption"),icon:g=W6,...b}){let y=t[e],v=(0,BM.usePrevious)(y),{PrivateRichText:_}=Q(Td.privateApis),x=_.isEmpty(y),k=_.isEmpty(v),[C,T]=(0,Im.useState)(!x);(0,Im.useEffect)(()=>{!x&&k&&T(!0)},[x,k]),(0,Im.useEffect)(()=>{!a&&x&&T(!1)},[a,x]);let N=(0,Im.useCallback)(P=>{P&&x&&P.focus()},[x]);return(0,Wc.jsxs)(Wc.Fragment,{children:[s&&(0,Wc.jsx)(Td.BlockControls,{group:"block",children:(0,Wc.jsx)(PM.ToolbarButton,{onClick:()=>{T(!C),C&&y&&o({[e]:void 0})},icon:g,isPressed:C,label:C?f:d})}),C&&(!_.isEmpty(y)||a)&&(0,Wc.jsx)(_,{identifier:e,tagName:p,className:w(u,c?"":(0,Td.__experimentalGetElementClassName)("caption")),ref:N,"aria-label":l,placeholder:i,value:y,onChange:P=>o({[e]:P}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>n((0,Oy.createBlock)((0,Oy.getDefaultBlockName)())),readOnly:m,...b})]})}var io=r(h()),LS=["audio"];function cle({attributes:e,className:t,setAttributes:o,onReplace:a,isSelected:n,insertBlocksAfter:i}){let{id:l,autoplay:s,loop:c,preload:u,src:m}=e,[p,d]=(0,EM.useState)(e.blob),g=(0,Za.useBlockEditingMode)()==="default";Hc({url:p,allowedTypes:LS,onChange:k,onError:_});function b(P){return L=>{o({[P]:L})}}function y(P){if(P!==m){let L=$c({attributes:{url:P}});if(L!==void 0&&a){a(L);return}o({src:P,id:void 0,blob:void 0}),d()}}let{createErrorNotice:v}=(0,IM.useDispatch)(DM.store);function _(P){v(P,{type:"snackbar"})}function x(P){return P?(0,fa.__)("Autoplay may cause usability issues for some users."):null}function k(P){if(!P||!P.url){o({src:void 0,id:void 0,caption:void 0,blob:void 0}),d();return}if((0,NM.isBlobURL)(P.url)){d(P.url);return}o({blob:void 0,src:P.url,id:P.id,caption:P.caption}),d()}let C=w(t,{"is-transient":!!p}),T=(0,Za.useBlockProps)({className:C}),N=G();return!m&&!p?(0,io.jsx)("div",{...T,children:(0,io.jsx)(Za.MediaPlaceholder,{icon:(0,io.jsx)(Za.BlockIcon,{icon:gh}),onSelect:k,onSelectURL:y,accept:"audio/*",allowedTypes:LS,value:e,onError:_})}):(0,io.jsxs)(io.Fragment,{children:[n&&(0,io.jsx)(Za.BlockControls,{group:"other",children:(0,io.jsx)(Za.MediaReplaceFlow,{mediaId:l,mediaURL:m,allowedTypes:LS,accept:"audio/*",onSelect:k,onSelectURL:y,onError:_,onReset:()=>k(void 0)})}),(0,io.jsx)(Za.InspectorControls,{children:(0,io.jsxs)(ga.__experimentalToolsPanel,{label:(0,fa.__)("Settings"),resetAll:()=>{o({autoplay:!1,loop:!1,preload:void 0})},dropdownMenuProps:N,children:[(0,io.jsx)(ga.__experimentalToolsPanelItem,{label:(0,fa.__)("Autoplay"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>o({autoplay:!1}),children:(0,io.jsx)(ga.ToggleControl,{label:(0,fa.__)("Autoplay"),onChange:b("autoplay"),checked:!!s,help:x})}),(0,io.jsx)(ga.__experimentalToolsPanelItem,{label:(0,fa.__)("Loop"),isShownByDefault:!0,hasValue:()=>!!c,onDeselect:()=>o({loop:!1}),children:(0,io.jsx)(ga.ToggleControl,{label:(0,fa.__)("Loop"),onChange:b("loop"),checked:!!c})}),(0,io.jsx)(ga.__experimentalToolsPanelItem,{label:(0,fa.__)("Preload"),isShownByDefault:!0,hasValue:()=>!!u,onDeselect:()=>o({preload:void 0}),children:(0,io.jsx)(ga.SelectControl,{__next40pxDefaultSize:!0,label:(0,fa._x)("Preload","noun; Audio block parameter"),value:u||"",onChange:P=>o({preload:P||void 0}),options:[{value:"",label:(0,fa.__)("Browser default")},{value:"auto",label:(0,fa.__)("Auto")},{value:"metadata",label:(0,fa.__)("Metadata")},{value:"none",label:(0,fa._x)("None","Preload value")}]})})]})}),(0,io.jsxs)("figure",{...T,children:[(0,io.jsx)(ga.Disabled,{isDisabled:!n,children:(0,io.jsx)("audio",{controls:"controls",src:m??p})}),!!p&&(0,io.jsx)(ga.Spinner,{}),(0,io.jsx)(qa,{attributes:e,setAttributes:o,isSelected:n,insertBlocksAfter:i,label:(0,fa.__)("Audio caption text"),showToolbarButton:n&&g})]})]})}var LM=cle;var Uy={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/audio",title:"Audio",category:"media",description:"Embed a simple audio player.",keywords:["music","sound","podcast","recording"],textdomain:"default",attributes:{blob:{type:"string",role:"local"},src:{type:"string",source:"attribute",selector:"audio",attribute:"src",role:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",role:"content"},id:{type:"number",role:"content"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-audio-editor",style:"wp-block-audio"};var Dm=r(S()),g0=r(h());function MM({attributes:e}){let{autoplay:t,caption:o,loop:a,preload:n,src:i}=e;return i&&(0,g0.jsxs)("figure",{...Dm.useBlockProps.save(),children:[(0,g0.jsx)("audio",{controls:"controls",src:i,autoPlay:t,loop:a,preload:n}),!Dm.RichText.isEmpty(o)&&(0,g0.jsx)(Dm.RichText.Content,{tagName:"figcaption",value:o,className:(0,Dm.__experimentalGetElementClassName)("caption")})]})}var RM=r(No()),zM=r(U()),mle={from:[{type:"files",isMatch(e){return e.length===1&&e[0].type.indexOf("audio/")===0},transform(e){let t=e[0];return(0,zM.createBlock)("core/audio",{blob:(0,RM.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:({named:{src:e,mp3:t,m4a:o,ogg:a,wav:n,wma:i}})=>e||t||o||a||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}}}]},AM=mle;var{fieldsKey:ple,formKey:dle}=Q(VM.privateApis),{name:FM}=Uy,Gy={icon:gh,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"},viewportWidth:350},transforms:AM,deprecated:gM,edit:LM,save:MM};window.__experimentalContentOnlyInspectorFields&&(Gy[ple]=[{id:"audio",label:(0,MS.__)("Audio"),type:"media",mapping:{id:"id",url:"src"},args:{allowedTypes:["audio"],multiple:!1}},{id:"caption",label:(0,MS.__)("Caption"),type:"richtext"}],Gy[dle]={fields:["audio"]});var fle=()=>D({name:FM,metadata:Uy,settings:Gy});var zS={};$(zS,{init:()=>hle,metadata:()=>$y,name:()=>UM,settings:()=>GM});var $y={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/breadcrumbs",title:"Breadcrumbs",__experimental:!0,category:"theme",description:"Display a breadcrumb trail for hierarchical post types or based on taxonomy terms.",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:{html:!1,align:["wide","full"],spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!1,color:!0,width:!0,style:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-breadcrumbs"};var nr=r(B()),h0=r(S()),$r=r(M()),HM=r(A()),qy=r(Y()),Bd=r(H()),jM=r(Vc());var zt=r(h()),Wy="/";function OM({attributes:e,setAttributes:t,context:{postId:o,postType:a,templateSlug:n}}){let{separator:i,showHomeItem:l,showCurrentItem:s,prefersTaxonomy:c,showOnHomePage:u}=e,{post:m,isPostTypeHierarchical:p,postTypeHasTaxonomies:d,hasTermsAssigned:f,isLoading:g}=(0,HM.useSelect)(N=>{if(!a)return{};let P=N(qy.store).getEntityRecord("postType",a,o),L=N(qy.store).getPostType(a),R=L&&L.taxonomies.length,z;return R&&(z=N(qy.store).getTaxonomies({type:a,per_page:-1})),{post:P,isPostTypeHierarchical:L?.hierarchical,postTypeHasTaxonomies:R,hasTermsAssigned:P&&(z||[]).filter(({visibility:O})=>O?.publicly_queryable).some(O=>!!P[O.rest_base]?.length),isLoading:o&&!P||!L||R&&!z}},[a,o]),[b,y]=(0,Bd.useState)(0);(0,Bd.useEffect)(()=>{y(N=>N+1)},[m]);let v=(0,h0.useBlockProps)(),_=G(),{content:x}=(0,jM.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:"core/breadcrumbs",urlQueryArgs:{post_id:o,invalidationKey:b}});if(g)return(0,zt.jsx)("div",{...v,children:(0,zt.jsx)($r.Spinner,{})});let k;!p&&!m?.parent?k=!0:d?k=c:k=!1;let C=null,T=!o||!a||n&&!a||!k&&!p||k&&!f;if(T){let N=[];l&&N.push((0,nr.__)("Home")),n&&!o?N.push((0,nr.__)("Page")):k?N.push((0,nr.__)("Category")):N.push((0,nr.__)("Ancestor"),(0,nr.__)("Parent")),C=(0,zt.jsx)("nav",{style:{"--separator":`'${i}'`},inert:"true",children:(0,zt.jsxs)("ol",{children:[N.map((P,L)=>(0,zt.jsx)("li",{children:(0,zt.jsx)("a",{href:`#breadcrumbs-pseudo-link-${L}`,children:P})},L)),s&&(0,zt.jsx)("li",{children:(0,zt.jsx)("span",{"aria-current":"page",children:(0,nr.__)("Current")})})]})})}return(0,zt.jsxs)(zt.Fragment,{children:[(0,zt.jsx)(h0.InspectorControls,{children:(0,zt.jsxs)($r.__experimentalToolsPanel,{label:(0,nr.__)("Settings"),resetAll:()=>{t({separator:Wy,showHomeItem:!0,showCurrentItem:!0})},dropdownMenuProps:_,children:[(0,zt.jsx)($r.__experimentalToolsPanelItem,{label:(0,nr.__)("Show home breadcrumb"),isShownByDefault:!0,hasValue:()=>!l,onDeselect:()=>t({showHomeItem:!0}),children:(0,zt.jsx)($r.ToggleControl,{label:(0,nr.__)("Show home breadcrumb"),onChange:N=>t({showHomeItem:N}),checked:l})}),(0,zt.jsx)($r.__experimentalToolsPanelItem,{label:(0,nr.__)("Show current breadcrumb"),isShownByDefault:!0,hasValue:()=>!s,onDeselect:()=>t({showCurrentItem:!0}),children:(0,zt.jsx)($r.ToggleControl,{label:(0,nr.__)("Show current breadcrumb"),onChange:N=>t({showCurrentItem:N}),checked:s})}),(0,zt.jsx)($r.__experimentalToolsPanelItem,{label:(0,nr.__)("Separator"),isShownByDefault:!0,hasValue:()=>i!==Wy,onDeselect:()=>t({separator:Wy}),children:(0,zt.jsx)($r.TextControl,{__next40pxDefaultSize:!0,autoComplete:"off",label:(0,nr.__)("Separator"),value:i,onChange:N=>t({separator:N}),onBlur:()=>{i||t({separator:Wy})}})})]})}),(0,zt.jsxs)(h0.InspectorControls,{group:"advanced",children:[(0,zt.jsx)($r.CheckboxControl,{label:(0,nr.__)("Show on homepage"),checked:u,onChange:N=>t({showOnHomePage:N}),help:(0,nr.__)("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,zt.jsx)($r.CheckboxControl,{label:(0,nr.__)("Prefer taxonomy terms"),checked:c,onChange:N=>t({prefersTaxonomy:N}),help:(0,nr.__)("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.")})]}),(0,zt.jsx)("div",{...v,children:T?C:(0,zt.jsx)(Bd.RawHTML,{inert:"true",children:x})})]})}var{name:UM}=$y,GM={icon:F6,edit:OM},hle=()=>D({name:UM,metadata:$y,settings:GM});var HS={};$(HS,{init:()=>Ele,metadata:()=>Yy,name:()=>iR,settings:()=>Jy});var Xy=r(B());var nR=r(U());var ge=r(S()),v0=r(we());var $M=r(S());var{cleanEmptyObject:vle}=Q($M.privateApis);function Nt(e){if(!e?.style?.typography?.fontFamily)return e;let{fontFamily:t,...o}=e.style.typography;return{...e,style:vle({...e.style,typography:o}),fontFamily:t.split("|").pop()}}function WM(e){let{textAlign:t,...o}=e;return t?{...o,style:{...e.style,typography:{...e.style?.typography,textAlign:t}}}:e}var At=r(h()),Pd=e=>{let{borderRadius:t,...o}=e,a=[t,o.style?.border?.radius].find(n=>typeof n=="number"&&n!==0);return a?{...o,style:{...o.style,border:{...o.style?.border,radius:`${a}px`}}}:o};function ble(e){if(!e.align)return e;let{align:t,...o}=e;return{...o,className:w(o.className,`align${e.align}`)}}var VS=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:o,customBackgroundColor:a,customGradient:n,...i}=e;return{...i,style:t}},AS=e=>{let{color:t,textColor:o,...a}={...e,customTextColor:e.textColor&&e.textColor[0]==="#"?e.textColor:void 0,customBackgroundColor:e.color&&e.color[0]==="#"?e.color:void 0};return VS(a)},qs={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"}},yle={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:o,type:a,textAlign:n,fontSize:i,linkTarget:l,rel:s,style:c,text:u,title:m,url:p,width:d}=e,f=o||"a",g=f==="button",b=a||"button",y=(0,ge.__experimentalGetBorderClassesAndStyles)(e),v=(0,ge.__experimentalGetColorClassesAndStyles)(e),_=(0,ge.__experimentalGetSpacingClassesAndStyles)(e),x=(0,ge.__experimentalGetShadowClassesAndStyles)(e),k=(0,ge.getTypographyClassesAndStyles)(e),C=w("wp-block-button__link",v.className,y.className,k.className,{[`has-text-align-${n}`]:n,"no-border-radius":c?.border?.radius===0,"has-custom-font-size":i||c?.typography?.fontSize},(0,ge.__experimentalGetElementClassName)("button")),T={...y.style,...v.style,..._.style,...x.style,...k.style,writingMode:void 0},N=w(t,{[`has-custom-width wp-block-button__width-${d}`]:d});return(0,At.jsx)("div",{...ge.useBlockProps.save({className:N}),children:(0,At.jsx)(ge.RichText.Content,{tagName:f,type:g?b:null,className:C,href:g?null:p,title:m,style:T,value:u,target:g?null:l,rel:g?null:s})})},isEligible(e){return!!e.textAlign},migrate:WM},xle={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:o,type:a,textAlign:n,fontSize:i,linkTarget:l,rel:s,style:c,text:u,title:m,url:p,width:d}=e,f=o||"a",g=f==="button",b=a||"button",y=(0,ge.__experimentalGetBorderClassesAndStyles)(e),v=(0,ge.__experimentalGetColorClassesAndStyles)(e),_=(0,ge.__experimentalGetSpacingClassesAndStyles)(e),x=(0,ge.__experimentalGetShadowClassesAndStyles)(e),k=w("wp-block-button__link",v.className,y.className,{[`has-text-align-${n}`]:n,"no-border-radius":c?.border?.radius===0},(0,ge.__experimentalGetElementClassName)("button")),C={...y.style,...v.style,..._.style,...x.style},T=w(t,{[`has-custom-width wp-block-button__width-${d}`]:d,"has-custom-font-size":i||c?.typography?.fontSize});return(0,At.jsx)("div",{...ge.useBlockProps.save({className:T}),children:(0,At.jsx)(ge.RichText.Content,{tagName:f,type:g?b:null,className:k,href:g?null:p,title:m,style:C,value:u,target:g?null:l,rel:g?null:s})})}},_le={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:o,linkTarget:a,rel:n,style:i,text:l,title:s,url:c,width:u}=e;if(!l)return null;let m=(0,ge.__experimentalGetBorderClassesAndStyles)(e),p=(0,ge.__experimentalGetColorClassesAndStyles)(e),d=(0,ge.__experimentalGetSpacingClassesAndStyles)(e),f=w("wp-block-button__link",p.className,m.className,{"no-border-radius":i?.border?.radius===0}),g={...m.style,...p.style,...d.style},b=w(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":o||i?.typography?.fontSize});return(0,At.jsx)("div",{...ge.useBlockProps.save({className:b}),children:(0,At.jsx)(ge.RichText.Content,{tagName:"a",className:f,href:c,title:s,style:g,value:l,target:a,rel:n})})}},kle={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:o,linkTarget:a,rel:n,style:i,text:l,title:s,url:c,width:u}=e;if(!l)return null;let m=(0,ge.__experimentalGetBorderClassesAndStyles)(e),p=(0,ge.__experimentalGetColorClassesAndStyles)(e),d=(0,ge.__experimentalGetSpacingClassesAndStyles)(e),f=w("wp-block-button__link",p.className,m.className,{"no-border-radius":i?.border?.radius===0}),g={...m.style,...p.style,...d.style},b=w(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":o||i?.typography?.fontSize});return(0,At.jsx)("div",{...ge.useBlockProps.save({className:b}),children:(0,At.jsx)(ge.RichText.Content,{tagName:"a",className:f,href:c,title:s,style:g,value:l,target:a,rel:n})})},migrate:Nt,isEligible({style:e}){return e?.typography?.fontFamily}},wle=[yle,xle,_le,kle,{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:{...qs,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:o,linkTarget:a,rel:n,style:i,text:l,title:s,url:c,width:u}=e;if(!l)return null;let m=i?.border?.radius,p=(0,ge.__experimentalGetColorClassesAndStyles)(e),d=w("wp-block-button__link",p.className,{"no-border-radius":i?.border?.radius===0}),f={borderRadius:m||void 0,...p.style},g=w(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":o||i?.typography?.fontSize});return(0,At.jsx)("div",{...ge.useBlockProps.save({className:g}),children:(0,At.jsx)(ge.RichText.Content,{tagName:"a",className:d,href:c,title:s,style:f,value:l,target:a,rel:n})})},migrate:(0,v0.compose)(Nt,Pd)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...qs,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:o,linkTarget:a,rel:n,text:i,title:l,url:s,width:c}=e,u=(0,ge.__experimentalGetColorClassesAndStyles)(e),m=w("wp-block-button__link",u.className,{"no-border-radius":o===0}),p={borderRadius:o?o+"px":void 0,...u.style},d=w(t,{[`has-custom-width wp-block-button__width-${c}`]:c});return(0,At.jsx)("div",{...ge.useBlockProps.save({className:d}),children:(0,At.jsx)(ge.RichText.Content,{tagName:"a",className:m,href:s,title:l,style:p,value:i,target:a,rel:n})})},migrate:(0,v0.compose)(Nt,Pd)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...qs,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:o,linkTarget:a,rel:n,text:i,title:l,url:s,width:c}=e,u=(0,ge.__experimentalGetColorClassesAndStyles)(e),m=w("wp-block-button__link",u.className,{"no-border-radius":o===0}),p={borderRadius:o?o+"px":void 0,...u.style},d=w(t,{[`has-custom-width wp-block-button__width-${c}`]:c});return(0,At.jsx)("div",{...ge.useBlockProps.save({className:d}),children:(0,At.jsx)(ge.RichText.Content,{tagName:"a",className:m,href:s,title:l,style:p,value:i,target:a,rel:n})})},migrate:(0,v0.compose)(Nt,Pd)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...qs,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:o,rel:a,text:n,title:i,url:l}=e,s=w("wp-block-button__link",{"no-border-radius":t===0}),c={borderRadius:t?t+"px":void 0};return(0,At.jsx)(ge.RichText.Content,{tagName:"a",className:s,href:l,title:i,style:c,value:n,target:o,rel:a})},migrate:Pd},{supports:{align:!0,alignWide:!1},attributes:{...qs,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,v0.compose)(Pd,VS,ble),save({attributes:e}){let{backgroundColor:t,borderRadius:o,customBackgroundColor:a,customTextColor:n,customGradient:i,linkTarget:l,gradient:s,rel:c,text:u,textColor:m,title:p,url:d}=e,f=(0,ge.getColorClassName)("color",m),g=!i&&(0,ge.getColorClassName)("background-color",t),b=(0,ge.__experimentalGetGradientClass)(s),y=w("wp-block-button__link",{"has-text-color":m||n,[f]:f,"has-background":t||a||i||s,[g]:g,"no-border-radius":o===0,[b]:b}),v={background:i||void 0,backgroundColor:g||i||s?void 0:a,color:f?void 0:n,borderRadius:o?o+"px":void 0};return(0,At.jsx)("div",{children:(0,At.jsx)(ge.RichText.Content,{tagName:"a",className:y,href:d,title:p,style:v,value:u,target:l,rel:c})})}},{attributes:{...qs,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()),Pd(VS({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){let{backgroundColor:t,customBackgroundColor:o,customTextColor:a,linkTarget:n,rel:i,text:l,textColor:s,title:c,url:u}=e,m=(0,ge.getColorClassName)("color",s),p=(0,ge.getColorClassName)("background-color",t),d=w("wp-block-button__link",{"has-text-color":s||a,[m]:m,"has-background":t||o,[p]:p}),f={backgroundColor:p?void 0:o,color:m?void 0:a};return(0,At.jsx)("div",{children:(0,At.jsx)(ge.RichText.Content,{tagName:"a",className:d,href:u,title:c,style:f,value:l,target:n,rel:i})})}},{attributes:{...qs,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:AS,save({attributes:e}){let{url:t,text:o,title:a,backgroundColor:n,textColor:i,customBackgroundColor:l,customTextColor:s}=e,c=(0,ge.getColorClassName)("color",i),u=(0,ge.getColorClassName)("background-color",n),m=w("wp-block-button__link",{"has-text-color":i||s,[c]:c,"has-background":n||l,[u]:u}),p={backgroundColor:u?void 0:l,color:c?void 0:s};return(0,At.jsx)("div",{children:(0,At.jsx)(ge.RichText.Content,{tagName:"a",className:m,href:t,title:a,style:p,value:o})})}},{attributes:{...qs,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){let{url:t,text:o,title:a,align:n,color:i,textColor:l}=e,s={backgroundColor:i,color:l};return(0,At.jsx)("div",{className:`align${n}`,children:(0,At.jsx)(ge.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:a,style:s,value:o})})},migrate:AS},{attributes:{...qs,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){let{url:t,text:o,title:a,align:n,color:i,textColor:l}=e;return(0,At.jsx)("div",{className:`align${n}`,style:{backgroundColor:i},children:(0,At.jsx)(ge.RichText.Content,{tagName:"a",href:t,title:a,style:{color:l},value:o})})},migrate:AS}],qM=wle;var xr=r(B()),Ka=r(H()),Wr=r(M()),Je=r(S()),qc=r(Wi());var Zs=r(U()),y0=r(we()),x0=r(A());var Zy="noreferrer noopener",Ky="_blank",Nd="nofollow";var KM=r(ko());function QM({rel:e="",url:t="",opensInNewTab:o,nofollow:a}){let n,i=e;if(o)n=Ky,i=i?.includes(Zy)?i:i+` ${Zy}`;else{let l=new RegExp(`\\b${Zy}\\s*`,"g");i=i?.replace(l,"").trim()}if(a)i=i?.includes(Nd)?i:(i+` ${Nd}`).trim();else{let l=new RegExp(`\\b${Nd}\\s*`,"g");i=i?.replace(l,"").trim()}return{url:(0,KM.prependHTTP)(t),linkTarget:n,rel:i||void 0}}function b0(e){return e.toString().replace(/<\/?a[^>]*>/g,"")}var XM=r(we()),Qy=r(H()),JM=r(Id()),eR=r(A()),tR=r(S());function oR(e){let{name:t,attributes:o,setAttributes:a}=e,{textAlign:n}=o,{__unstableMarkNextChangeAsNotPersistent:i}=(0,eR.useDispatch)(tR.store),l=(0,XM.useEvent)(()=>{(0,JM.default)(`textAlign attribute in ${t}`,{alternative:"style.typography.textAlign",since:"7.0"}),i(),a(c=>({style:{...c.style,typography:{...c.style?.typography,textAlign:n}}}))}),s=(0,Qy.useRef)();(0,Qy.useEffect)(()=>{n!==s.current&&(s.current=n,l())},[n,l])}var po=r(h()),{HTMLElementControl:Cle}=Q(Je.privateApis),Sle=[...Je.LinkControl.DEFAULT_LINK_SETTINGS,{id:"nofollow",title:(0,xr.__)("Mark as nofollow")}];function Tle(e){let{replaceBlocks:t,selectionChange:o}=(0,x0.useDispatch)(Je.store),{getBlock:a,getBlockRootClientId:n,getBlockIndex:i}=(0,x0.useSelect)(Je.store),l=(0,Ka.useRef)(e);return l.current=e,(0,y0.useRefEffect)(s=>{function c(u){if(u.defaultPrevented||u.keyCode!==qc.ENTER)return;let{content:m,clientId:p}=l.current;if(m.length)return;u.preventDefault();let d=a(n(p)),f=i(p),g=(0,Zs.cloneBlock)({...d,innerBlocks:d.innerBlocks.slice(0,f)}),b=(0,Zs.createBlock)((0,Zs.getDefaultBlockName)()),y=d.innerBlocks.slice(f+1),v=y.length?[(0,Zs.cloneBlock)({...d,innerBlocks:y})]:[];t(d.clientId,[g,b,...v],1),o(b.clientId)}return s.addEventListener("keydown",c),()=>{s.removeEventListener("keydown",c)}},[])}function Ble({selectedWidth:e,setAttributes:t}){let o=G();return(0,po.jsx)(Wr.__experimentalToolsPanel,{label:(0,xr.__)("Settings"),resetAll:()=>t({width:void 0}),dropdownMenuProps:o,children:(0,po.jsx)(Wr.__experimentalToolsPanelItem,{label:(0,xr.__)("Width"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>t({width:void 0}),children:(0,po.jsx)(Wr.__experimentalToggleGroupControl,{label:(0,xr.__)("Width"),value:e,onChange:a=>t({width:a}),isBlock:!0,__next40pxDefaultSize:!0,children:[25,50,75,100].map(a=>(0,po.jsx)(Wr.__experimentalToggleGroupControlOption,{value:a,label:(0,xr.sprintf)((0,xr.__)("%d%%"),a)},a))})})})}function Ple(e){let{attributes:t,setAttributes:o,className:a,isSelected:n,onReplace:i,mergeBlocks:l,clientId:s,context:c}=e,{tagName:u,linkTarget:m,placeholder:p,rel:d,style:f,text:g,url:b,width:y,metadata:v}=t;oR(e);let _=u||"a";function x(ke){qc.isKeyboardEvent.primary(ke,"k")?re(ke):qc.isKeyboardEvent.primaryShift(ke,"k")&&(se(),z.current?.focus())}let[k,C]=(0,Ka.useState)(null),T=(0,Je.__experimentalUseBorderProps)(t),N=(0,Je.__experimentalUseColorProps)(t),P=(0,Je.__experimentalGetSpacingClassesAndStyles)(t),L=(0,Je.__experimentalGetShadowClassesAndStyles)(t),R=(0,Ka.useRef)(),z=(0,Ka.useRef)(),O=(0,Je.useBlockProps)({ref:(0,y0.useMergeRefs)([C,R]),onKeyDown:x}),V=(0,Je.useBlockEditingMode)(),[I,F]=(0,Ka.useState)(!1),W=!!b,j=m===Ky,K=!!d?.includes(Nd),Z=_==="a",{createPageEntity:te,userCanCreatePages:X,lockUrlControls:J=!1}=(0,x0.useSelect)(ke=>{if(!n)return{};let fe=ke(Je.store).getSettings(),rt=(0,Zs.getBlockBindingsSource)(v?.bindings?.url?.source);return{createPageEntity:fe.__experimentalCreatePageEntity,userCanCreatePages:fe.__experimentalUserCanCreatePages,lockUrlControls:!!v?.bindings?.url&&!rt?.canUserEditValue?.({select:ke,context:c,args:v?.bindings?.url?.args})}},[c,n,v?.bindings?.url]);async function ee(ke){let fe=await te({title:ke,status:"draft"});return{id:fe.id,type:fe.type,title:fe.title.rendered,url:fe.link,kind:"post-type"}}function ne(ke){return(0,Ka.createInterpolateElement)((0,xr.sprintf)((0,xr.__)("Create page: <mark>%s</mark>"),ke),{mark:(0,po.jsx)("mark",{})})}function re(ke){ke.preventDefault(),F(!0)}function se(){o({url:void 0,linkTarget:void 0,rel:void 0}),F(!1)}(0,Ka.useEffect)(()=>{n||F(!1)},[n]);let ue=(0,Ka.useMemo)(()=>({url:b,opensInNewTab:j,nofollow:K}),[b,j,K]),Ne=Tle({content:g,clientId:s}),Le=(0,y0.useMergeRefs)([Ne,z]),[ie,Ee]=(0,Je.useSettings)("typography.fluid","layout"),de=(0,Je.getTypographyClassesAndStyles)(t,{typography:{fluid:ie},layout:{wideSize:Ee?.wideSize}}),ce=V==="default"||Z&&!J;return(0,po.jsxs)(po.Fragment,{children:[(0,po.jsx)("div",{...O,className:w(O.className,{[`has-custom-width wp-block-button__width-${y}`]:y}),children:(0,po.jsx)(Je.RichText,{ref:Le,"aria-label":(0,xr.__)("Button text"),placeholder:p||(0,xr.__)("Add text\u2026"),value:g,onChange:ke=>o({text:b0(ke)}),withoutInteractiveFormatting:!0,className:w(a,"wp-block-button__link",N.className,T.className,de.className,{"no-border-radius":f?.border?.radius===0,"has-custom-font-size":O.style.fontSize},(0,Je.__experimentalGetElementClassName)("button")),style:{...T.style,...N.style,...P.style,...L.style,...de.style,writingMode:void 0},onReplace:i,onMerge:l,identifier:"text"})}),ce&&(0,po.jsx)(Je.BlockControls,{group:"block",children:Z&&!J&&(0,po.jsx)(Wr.ToolbarButton,{name:"link",icon:W?Lh:In,title:W?(0,xr.__)("Unlink"):(0,xr.__)("Link"),shortcut:W?qc.displayShortcut.primaryShift("k"):qc.displayShortcut.primary("k"),onClick:W?se:re,isActive:W})}),Z&&n&&(I||W)&&!J&&(0,po.jsx)(Wr.Popover,{placement:"bottom",onClose:()=>{F(!1),z.current?.focus()},anchor:k,focusOnMount:I?"firstElement":!1,__unstableSlotName:"__unstable-block-tools-after",shift:!0,children:(0,po.jsx)(Je.LinkControl,{value:ue,onChange:({url:ke,opensInNewTab:fe,nofollow:rt})=>o(QM({rel:d,url:ke,opensInNewTab:fe,nofollow:rt})),onRemove:()=>{se(),z.current?.focus()},forceIsEditingLink:I,settings:Sle,createSuggestion:te&&ee,withCreateSuggestion:X,createSuggestionButtonText:ne})}),(0,po.jsx)(Je.InspectorControls,{children:(0,po.jsx)(Ble,{selectedWidth:y,setAttributes:o})}),(0,po.jsxs)(Je.InspectorControls,{group:"advanced",children:[(0,po.jsx)(Cle,{tagName:u,onChange:ke=>o({tagName:ke}),options:[{label:(0,xr.__)("Default (<a>)"),value:"a"},{label:"<button>",value:"button"}]}),Z&&(0,po.jsx)(Wr.TextControl,{__next40pxDefaultSize:!0,label:(0,xr.__)("Link relation"),help:(0,Ka.createInterpolateElement)((0,xr.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,po.jsx)(Wr.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:d||"",onChange:ke=>o({rel:ke})})]})]})}var rR=Ple;var Yy={$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"},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}},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"}}};var qr=r(S()),FS=r(h());function aR({attributes:e,className:t}){let{tagName:o,type:a,fontSize:n,linkTarget:i,rel:l,style:s,text:c,title:u,url:m,width:p}=e,d=o||"a",f=d==="button",g=a||"button",b=(0,qr.__experimentalGetBorderClassesAndStyles)(e),y=(0,qr.__experimentalGetColorClassesAndStyles)(e),v=(0,qr.__experimentalGetSpacingClassesAndStyles)(e),_=(0,qr.__experimentalGetShadowClassesAndStyles)(e),x=(0,qr.getTypographyClassesAndStyles)(e),k=w("wp-block-button__link",y.className,b.className,x.className,{"no-border-radius":s?.border?.radius===0,"has-custom-font-size":n||s?.typography?.fontSize},(0,qr.__experimentalGetElementClassName)("button")),C={...b.style,...y.style,...v.style,..._.style,...x.style,writingMode:void 0},T=w(t,{[`has-custom-width wp-block-button__width-${p}`]:p});return(0,FS.jsx)("div",{...qr.useBlockProps.save({className:T}),children:(0,FS.jsx)(qr.RichText.Content,{tagName:d,type:f?g:null,className:k,href:f?null:m,title:u,style:C,value:c,target:f?null:i,rel:f?null:l})})}var{fieldsKey:Ile,formKey:Dle}=Q(nR.privateApis),{name:iR}=Yy,Jy={icon:j6,example:{attributes:{className:"is-style-fill",text:(0,Xy.__)("Call to action")}},edit:rR,save:aR,deprecated:qM,merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t})};window.__experimentalContentOnlyInspectorFields&&(Jy[Ile]=[{id:"text",label:(0,Xy.__)("Content"),type:"richtext"},{id:"link",label:(0,Xy.__)("Link"),type:"link",mapping:{url:"url",rel:"rel",linkTarget:"linkTarget"}}],Jy[Dle]={fields:["text"]});var Ele=()=>D({name:iR,metadata:Yy,settings:Jy});var US={};$(US,{init:()=>Vle,metadata:()=>tx,name:()=>vR,settings:()=>bR});var OS=r(B());var k0=r(S()),_0=r(h()),lR=e=>{if(e.layout)return e;let{contentJustification:t,orientation:o,...a}=e;return(t||o)&&Object.assign(a,{layout:{type:"flex",...t&&{justifyContent:t},...o&&{orientation:o}}}),a},Lle=[{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:lR,save({attributes:{contentJustification:e,orientation:t}}){return(0,_0.jsx)("div",{...k0.useBlockProps.save({className:w({[`is-content-justification-${e}`]:e,"is-vertical":t==="vertical"})}),children:(0,_0.jsx)(k0.InnerBlocks.Content,{})})}},{supports:{align:["center","left","right"],anchor:!0},save(){return(0,_0.jsx)("div",{children:(0,_0.jsx)(k0.InnerBlocks.Content,{})})},isEligible({align:e}){return e&&["center","left","right"].includes(e)},migrate(e){return lR({...e,align:void 0,contentJustification:e.align})}}],sR=Lle;var C0=r(U()),jS=r(Em());var w0=r(U());function Ks(e,t,o=null){if(!e)return;let a=(0,w0.getBlockType)(t);if(!a)return;let n={};if((0,w0.hasBlockSupport)(a,"anchor")&&e.anchor&&(n.anchor=e.anchor),(0,w0.hasBlockSupport)(a,"ariaLabel")&&e.ariaLabel&&(n.ariaLabel=e.ariaLabel),e.metadata){let i=[];if(o&&i.push("id","bindings"),i.length>0){let l=Object.entries(e.metadata).reduce((s,[c,u])=>(i.includes(c)&&(s[c]=c==="bindings"?o(u):u),s),{});Object.keys(l).length>0&&(n.metadata=l)}}if(Object.keys(n).length!==0)return n}var Mle={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>(0,C0.createBlock)("core/buttons",{},e.map(t=>(0,C0.createBlock)("core/button",t)))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,C0.createBlock)("core/buttons",{},e.map(t=>{let{content:o}=t,a=(0,jS.__unstableCreateElement)(document,o),n=a.innerText||"",l=a.querySelector("a")?.getAttribute("href");return(0,C0.createBlock)("core/button",{...t,...Ks(t,"core/button",({content:s})=>({text:s})),text:n,url:l})})),isMatch:e=>e.every(t=>{let o=(0,jS.__unstableCreateElement)(document,t.content),a=o.innerText||"",n=o.querySelectorAll("a");return a.length<=30&&n.length<=1})}]},uR=Mle;var ex=r(S()),mR=r(A()),pR=r(U()),dR=r(h()),Rle={name:"core/button",attributesToCopy:["backgroundColor","border","className","fontFamily","fontSize","gradient","style","textColor","width"]};function zle({attributes:e,className:t}){let{fontSize:o,layout:a,style:n}=e,i=(0,ex.useBlockProps)({className:w(t,{"has-custom-font-size":o||n?.typography?.fontSize})}),{hasButtonVariations:l}=(0,mR.useSelect)(c=>({hasButtonVariations:c(pR.store).getBlockVariations("core/button","inserter").length>0}),[]),s=(0,ex.useInnerBlocksProps)(i,{defaultBlock:Rle,directInsert:!l,template:[["core/button"]],templateInsertUpdatesSelection:!0,orientation:a?.orientation??"horizontal"});return(0,dR.jsx)("div",{...s})}var fR=zle;var tx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/buttons",title:"Buttons",category:"design",allowedBlocks:["core/button"],description:"Prompt visitors to take action with a group of button-style links.",keywords:["link"],textdomain:"default",supports:{anchor:!0,align:["wide","full"],html:!1,__experimentalExposeControlsToChildren:!0,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},spacing:{blockGap:["horizontal","vertical"],padding:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},interactivity:{clientNavigation:!0},contentRole:!0},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"};var ox=r(S()),gR=r(h());function hR({attributes:e,className:t}){let{fontSize:o,style:a}=e,n=ox.useBlockProps.save({className:w(t,{"has-custom-font-size":o||a?.typography?.fontSize})}),i=ox.useInnerBlocksProps.save(n);return(0,gR.jsx)("div",{...i})}var{name:vR}=tx,bR={icon:U6,example:{attributes:{layout:{type:"flex",justifyContent:"center"}},innerBlocks:[{name:"core/button",attributes:{text:(0,OS.__)("Find out more")}},{name:"core/button",attributes:{text:(0,OS.__)("Contact us")}}]},deprecated:sR,transforms:uR,edit:fR,save:hR},Vle=()=>D({name:vR,metadata:tx,settings:bR});var WS={};$(WS,{init:()=>Ole,metadata:()=>rx,name:()=>SR,settings:()=>TR});var rx={$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:{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 Dd=r(M()),yR=r(A()),xR=r(Vc()),_R=r(S()),kR=r(Y()),GS=r(B()),Lm=r(h()),Hle=Cd(e=>{if(!e)return{};let t=new Date(e);return{year:t.getFullYear(),month:t.getMonth()+1}});function wR({attributes:e}){let t=(0,_R.useBlockProps)(),{date:o,hasPosts:a,hasPostsResolved:n}=(0,yR.useSelect)(i=>{let{getEntityRecords:l,hasFinishedResolution:s}=i(kR.store),c={status:"publish",per_page:1},u=l("postType","post",c),m=s("getEntityRecords",["postType","post",c]),p,d=i("core/editor");return d&&d.getEditedPostAttribute("type")==="post"&&(p=d.getEditedPostAttribute("date")),{date:p,hasPostsResolved:m,hasPosts:m&&u?.length===1}},[]);return a?(0,Lm.jsx)("div",{...t,children:(0,Lm.jsx)(Dd.Disabled,{children:(0,Lm.jsx)(xR.default,{block:"core/calendar",attributes:{...e,...Hle(o)}})})}):(0,Lm.jsx)("div",{...t,children:(0,Lm.jsx)(Dd.Placeholder,{icon:vh,label:(0,GS.__)("Calendar"),children:n?(0,GS.__)("No published posts found."):(0,Lm.jsx)(Dd.Spinner,{})})})}var $S=r(U()),jle={from:[{type:"block",blocks:["core/archives"],transform:()=>(0,$S.createBlock)("core/calendar")}],to:[{type:"block",blocks:["core/archives"],transform:()=>(0,$S.createBlock)("core/archives")}]},CR=jle;var{name:SR}=rx,TR={icon:vh,example:{},edit:wR,transforms:CR},Ole=()=>D({name:SR,metadata:rx,settings:TR});var KS={};$(KS,{init:()=>$le,metadata:()=>ax,name:()=>ER,settings:()=>LR});var ax={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/categories",title:"Terms List",category:"widgets",description:"Display a list of all terms of a given taxonomy.",keywords:["categories"],textdomain:"default",attributes:{taxonomy:{type:"string",default:"category"},displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1},showOnlyTopLevel:{type:"boolean",default:!1},showEmpty:{type:"boolean",default:!1},label:{type:"string",role:"content"},showLabel:{type:"boolean",default:!0}},usesContext:["enhancedPagination"],supports:{align:!0,html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},editorStyle:"wp-block-categories-editor",style:"wp-block-categories"};var Gt=r(M()),BR=r(we()),Ed=r(S()),PR=r(jo()),lo=r(B());var qS=r(Y()),NR=r(A()),IR=r(wo());var at=r(h());function ZS({attributes:{displayAsDropdown:e,showHierarchy:t,showPostCounts:o,showOnlyTopLevel:a,showEmpty:n,label:i,showLabel:l,taxonomy:s},setAttributes:c,className:u,clientId:m}){let p=(0,BR.useInstanceId)(ZS,"blocks-category-select"),{records:d,isResolvingTaxonomies:f}=(0,qS.useEntityRecords)("root","taxonomy",{per_page:-1}),g=d?.filter(j=>j.visibility.public),b=g?.find(j=>j.slug===s),y=!f&&b?.hierarchical,v={per_page:-1,hide_empty:!n,context:"view"};y&&a&&(v.parent=0);let{records:_,isResolving:x}=(0,qS.useEntityRecords)("taxonomy",s,v),{createWarningNotice:k}=(0,NR.useDispatch)(IR.store),C=j=>{j.preventDefault(),k((0,lo.__)("Links are disabled in the editor."),{id:`block-library/core/categories/redirection-prevented/${m}`,type:"snackbar"})},T=j=>_?.length?j===null?_:_.filter(({parent:K})=>K===j):[],N=j=>K=>c({[j]:K}),P=j=>j?(0,PR.decodeEntities)(j).trim():(0,lo.__)("(Untitled)"),L=()=>T(y&&t?0:null).map(Z=>R(Z)),R=j=>{let K=T(j.id),{id:Z,link:te,count:X,name:J}=j;return(0,at.jsxs)("li",{className:`cat-item cat-item-${Z}`,children:[(0,at.jsx)("a",{href:te,onClick:C,children:P(J)}),o&&` (${X})`,y&&t&&!!K.length&&(0,at.jsx)("ul",{className:"children",children:K.map(ee=>R(ee))})]},Z)},z=()=>{let K=T(y&&t?0:null);return(0,at.jsxs)(at.Fragment,{children:[l?(0,at.jsx)(Ed.RichText,{className:"wp-block-categories__label","aria-label":(0,lo.__)("Label text"),placeholder:b?.name,withoutInteractiveFormatting:!0,value:i,onChange:Z=>c({label:Z})}):(0,at.jsx)(Gt.VisuallyHidden,{as:"label",htmlFor:p,children:i||b?.name}),(0,at.jsxs)("select",{id:p,children:[(0,at.jsx)("option",{children:(0,lo.sprintf)((0,lo.__)("Select %s"),b?.labels?.singular_name)}),K.map(Z=>O(Z,0))]})]})},O=(j,K)=>{let{id:Z,count:te,name:X}=j,J=T(Z);return[(0,at.jsxs)("option",{className:`level-${K}`,children:[Array.from({length:K*3}).map(()=>"\xA0"),P(X),o&&` (${te})`]},Z),y&&t&&!!J.length&&J.map(ee=>O(ee,K+1))]},V=_?.length&&!e&&!x?"ul":"div",I=w(u,`wp-block-categories-taxonomy-${s}`,{"wp-block-categories-list":!!_?.length&&!e&&!x,"wp-block-categories-dropdown":!!_?.length&&e&&!x}),F=(0,Ed.useBlockProps)({className:I}),W=G();return(0,at.jsxs)(V,{...F,children:[(0,at.jsx)(Ed.InspectorControls,{children:(0,at.jsxs)(Gt.__experimentalToolsPanel,{label:(0,lo.__)("Settings"),resetAll:()=>{c({taxonomy:"category",displayAsDropdown:!1,showHierarchy:!1,showPostCounts:!1,showOnlyTopLevel:!1,showEmpty:!1,showLabel:!0})},dropdownMenuProps:W,children:[Array.isArray(g)&&(0,at.jsx)(Gt.__experimentalToolsPanelItem,{hasValue:()=>s!=="category",label:(0,lo.__)("Taxonomy"),onDeselect:()=>{c({taxonomy:"category"})},isShownByDefault:!0,children:(0,at.jsx)(Gt.SelectControl,{__next40pxDefaultSize:!0,label:(0,lo.__)("Taxonomy"),options:g.map(j=>({label:j.name,value:j.slug})),value:s,onChange:j=>c({taxonomy:j})})}),(0,at.jsx)(Gt.__experimentalToolsPanelItem,{hasValue:()=>!!e,label:(0,lo.__)("Display as dropdown"),onDeselect:()=>c({displayAsDropdown:!1}),isShownByDefault:!0,children:(0,at.jsx)(Gt.ToggleControl,{label:(0,lo.__)("Display as dropdown"),checked:e,onChange:N("displayAsDropdown")})}),e&&(0,at.jsx)(Gt.__experimentalToolsPanelItem,{hasValue:()=>!l,label:(0,lo.__)("Show label"),onDeselect:()=>c({showLabel:!0}),isShownByDefault:!0,children:(0,at.jsx)(Gt.ToggleControl,{className:"wp-block-categories__indentation",label:(0,lo.__)("Show label"),checked:l,onChange:N("showLabel")})}),(0,at.jsx)(Gt.__experimentalToolsPanelItem,{hasValue:()=>!!o,label:(0,lo.__)("Show post counts"),onDeselect:()=>c({showPostCounts:!1}),isShownByDefault:!0,children:(0,at.jsx)(Gt.ToggleControl,{label:(0,lo.__)("Show post counts"),checked:o,onChange:N("showPostCounts")})}),y&&(0,at.jsx)(Gt.__experimentalToolsPanelItem,{hasValue:()=>!!a,label:(0,lo.__)("Show only top level terms"),onDeselect:()=>c({showOnlyTopLevel:!1}),isShownByDefault:!0,children:(0,at.jsx)(Gt.ToggleControl,{label:(0,lo.__)("Show only top level terms"),checked:a,onChange:N("showOnlyTopLevel")})}),(0,at.jsx)(Gt.__experimentalToolsPanelItem,{hasValue:()=>!!n,label:(0,lo.__)("Show empty terms"),onDeselect:()=>c({showEmpty:!1}),isShownByDefault:!0,children:(0,at.jsx)(Gt.ToggleControl,{label:(0,lo.__)("Show empty terms"),checked:n,onChange:N("showEmpty")})}),y&&!a&&(0,at.jsx)(Gt.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,lo.__)("Show hierarchy"),onDeselect:()=>c({showHierarchy:!1}),isShownByDefault:!0,children:(0,at.jsx)(Gt.ToggleControl,{label:(0,lo.__)("Show hierarchy"),checked:t,onChange:N("showHierarchy")})})]})}),x&&(0,at.jsx)(Gt.Placeholder,{icon:Hh,label:(0,lo.__)("Terms"),children:(0,at.jsx)(Gt.Spinner,{})}),!x&&_?.length===0&&(0,at.jsx)("p",{children:b.labels.no_terms}),!x&&_?.length>0&&(e?z():L())]})}var nx=r(B());var Gle=[{name:"terms",title:(0,nx.__)("Terms List"),icon:Oc,attributes:{taxonomy:"post_tag"},isActive:e=>e.taxonomy!=="category"},{name:"categories",title:(0,nx.__)("Categories List"),description:(0,nx.__)("Display a list of all categories."),icon:Oc,attributes:{taxonomy:"category"},isActive:["taxonomy"],isDefault:!0}],DR=Gle;var{name:ER}=ax,LR={icon:Oc,example:{},edit:ZS,variations:DR},$le=()=>D({name:ER,metadata:ax,settings:LR});var XS={};$(XS,{init:()=>Xle,metadata:()=>ux,name:()=>S0,settings:()=>ZR});var Am=r(S()),cx=r(we()),YS=r(A()),OR=r(M()),zm=r(H()),UR=r(B()),Zc=r(Wi());var MR=r(B()),RR=r(M()),ix=r(A()),lx=r(U()),QS=r(S()),zR=r(h()),Wle=({clientId:e})=>{let{replaceBlocks:t}=(0,ix.useDispatch)(QS.store),o=(0,ix.useSelect)(a=>a(QS.store).getBlock(e),[e]);return(0,zR.jsx)(RR.ToolbarButton,{onClick:()=>t(o.clientId,(0,lx.rawHandler)({HTML:(0,lx.serialize)(o)})),children:(0,MR.__)("Convert to blocks")})},AR=Wle;var sx=r(S()),ha=r(M()),Rm=r(H()),Mm=r(B()),VR=r(A());var FR=r(we()),Oo=r(h());function qle({onClick:e,isModalFullScreen:t}){return(0,FR.useViewportMatch)("small","<")?null:(0,Oo.jsx)(ha.Button,{size:"compact",onClick:e,icon:_m,isPressed:t,label:t?(0,Mm.__)("Exit fullscreen"):(0,Mm.__)("Enter fullscreen")})}function Zle(e){let t=(0,VR.useSelect)(o=>o(sx.store).getSettings().styles);return(0,Rm.useEffect)(()=>{let{baseURL:o,suffix:a,settings:n}=window.wpEditorL10n.tinymce;return window.tinymce.EditorManager.overrideDefaults({base_url:o,suffix:a}),window.wp.oldEditor.initialize(e.id,{tinymce:{...n,setup(i){i.on("init",()=>{let l=i.getDoc();t.forEach(({css:s})=>{let c=l.createElement("style");c.innerHTML=s,l.head.appendChild(c)})})}}}),()=>{window.wp.oldEditor.remove(e.id)}},[]),(0,Oo.jsx)("textarea",{...e})}function HR(e){let{clientId:t,attributes:{content:o},setAttributes:a,onReplace:n}=e,[i,l]=(0,Rm.useState)(!1),[s,c]=(0,Rm.useState)(!1),u=`editor-${t}`,m=()=>o?l(!1):n([]);return(0,Oo.jsxs)(Oo.Fragment,{children:[(0,Oo.jsx)(sx.BlockControls,{children:(0,Oo.jsx)(ha.ToolbarGroup,{children:(0,Oo.jsx)(ha.ToolbarButton,{onClick:()=>l(!0),children:(0,Mm.__)("Edit")})})}),o&&(0,Oo.jsx)(Rm.RawHTML,{children:o}),(i||!o)&&(0,Oo.jsxs)(ha.Modal,{title:(0,Mm.__)("Classic Editor"),onRequestClose:m,shouldCloseOnClickOutside:!1,overlayClassName:"block-editor-freeform-modal",isFullScreen:s,className:"block-editor-freeform-modal__content",headerActions:(0,Oo.jsx)(qle,{onClick:()=>c(!s),isModalFullScreen:s}),children:[(0,Oo.jsx)(Zle,{id:u,defaultValue:o}),(0,Oo.jsxs)(ha.Flex,{className:"block-editor-freeform-modal__actions",justify:"flex-end",expanded:!1,children:[(0,Oo.jsx)(ha.FlexItem,{children:(0,Oo.jsx)(ha.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:m,children:(0,Mm.__)("Cancel")})}),(0,Oo.jsx)(ha.FlexItem,{children:(0,Oo.jsx)(ha.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{a({content:window.wp.oldEditor.getContent(u)}),l(!1)},children:(0,Mm.__)("Save")})})]})]})]})}var va=r(h()),{wp:jR}=window;function Kle(e){let t=e.getBody();return t.childNodes.length>1?!1:t.childNodes.length===0?!0:t.childNodes[0].childNodes.length>1?!1:/^\n?$/.test(t.innerText||t.textContent)}function GR(e){let{clientId:t}=e,o=(0,YS.useSelect)(l=>l(Am.store).canRemoveBlock(t),[t]),[a,n]=(0,zm.useState)(!1),i=(0,cx.useRefEffect)(l=>{n(l.ownerDocument!==document)},[]);return(0,va.jsxs)(va.Fragment,{children:[o&&(0,va.jsx)(Am.BlockControls,{children:(0,va.jsx)(OR.ToolbarGroup,{children:(0,va.jsx)(AR,{clientId:t})})}),(0,va.jsx)("div",{...(0,Am.useBlockProps)({ref:i}),children:a?(0,va.jsx)(HR,{...e}):(0,va.jsx)(Qle,{...e})})]})}function Qle({clientId:e,attributes:{content:t},setAttributes:o,onReplace:a}){let{getMultiSelectedBlockClientIds:n}=(0,YS.useSelect)(Am.store),i=(0,zm.useRef)(!1);(0,zm.useEffect)(()=>{if(!i.current)return;let c=window.tinymce.get(`editor-${e}`);if(!c)return;c.getContent()!==t&&c.setContent(t||"")},[e,t]),(0,zm.useEffect)(()=>{let{baseURL:c,suffix:u}=window.wpEditorL10n.tinymce;i.current=!0,window.tinymce.EditorManager.overrideDefaults({base_url:c,suffix:u});function m(f){let g;t&&f.on("loadContent",()=>f.setContent(t)),f.on("blur",()=>{g=f.selection.getBookmark(2,!0);let y=document.querySelector(".interface-interface-skeleton__content"),v=y.scrollTop;return n()?.length||o({content:f.getContent()}),f.once("focus",()=>{g&&(f.selection.moveToBookmark(g),y.scrollTop!==v&&(y.scrollTop=v))}),!1}),f.on("mousedown touchstart",()=>{g=null});let b=(0,cx.debounce)(()=>{let y=f.getContent();y!==f._lastChange&&(f._lastChange=y,o({content:y}))},250);f.on("Paste Change input Undo Redo",b),f.on("remove",b.cancel),f.on("keydown",y=>{Zc.isKeyboardEvent.primary(y,"z")&&y.stopPropagation(),(y.keyCode===Zc.BACKSPACE||y.keyCode===Zc.DELETE)&&Kle(f)&&(a([]),y.preventDefault(),y.stopImmediatePropagation());let{altKey:v}=y;v&&y.keyCode===Zc.F10&&y.stopPropagation()}),f.on("paste",y=>{y.stopPropagation()}),f.on("init",()=>{let y=f.getBody();y.ownerDocument.activeElement===y&&(y.blur(),f.focus())})}function p(){let{settings:f}=window.wpEditorL10n.tinymce;jR.oldEditor.initialize(`editor-${e}`,{tinymce:{...f,inline:!0,content_css:!1,fixed_toolbar_container:`#toolbar-${e}`,setup:m}})}function d(){document.readyState==="complete"&&p()}return document.readyState==="complete"?p():document.addEventListener("readystatechange",d),()=>{document.removeEventListener("readystatechange",d),jR.oldEditor.remove(`editor-${e}`),i.current=!1}},[]);function l(){let c=window.tinymce.get(`editor-${e}`);c&&c.focus()}function s(c){c.stopPropagation(),c.nativeEvent.stopImmediatePropagation()}return(0,va.jsxs)(va.Fragment,{children:[(0,va.jsx)("div",{id:`toolbar-${e}`,className:"block-library-classic__toolbar",onClick:l,"data-placeholder":(0,UR.__)("Classic"),onKeyDown:s},"toolbar"),(0,va.jsx)("div",{id:`editor-${e}`,className:"wp-block-freeform block-library-rich-text__tinymce"},"editor")]})}var ux={$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},editorStyle:"wp-block-freeform-editor"};var $R=r(H()),WR=r(h());function qR({attributes:e}){let{content:t}=e;return(0,WR.jsx)($R.RawHTML,{children:t})}var{name:S0}=ux,ZR={icon:o8,edit:GR,save:qR},Xle=()=>D({name:S0,metadata:ux,settings:ZR});var rT={};$(rT,{init:()=>nse,metadata:()=>dx,name:()=>tz,settings:()=>hx});var oT=r(B());var ez=r(U());var JS=r(B()),mx=r(S()),px=r(U()),eT=r(h());function KR({attributes:e,setAttributes:t,onRemove:o,insertBlocksAfter:a,mergeBlocks:n}){let i=(0,mx.useBlockProps)();return(0,eT.jsx)("pre",{...i,children:(0,eT.jsx)(mx.RichText,{tagName:"code",identifier:"content",value:e.content,onChange:l=>t({content:l}),onRemove:o,onMerge:n,placeholder:(0,JS.__)("Write code\u2026"),"aria-label":(0,JS.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>a((0,px.createBlock)((0,px.getDefaultBlockName)()))})})}var dx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/code",title:"Code",category:"text",description:"Display code snippets that respect your spacing and tabs.",textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"code",__unstablePreserveWhiteSpace:!0,role:"content"}},supports:{align:["wide"],anchor:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{width:!0,color:!0}},color:{text:!0,background:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-code"};var fx=r(S());var QR=r(we());function YR(e){return(0,QR.pipe)(ese,tse)(e||"")}function ese(e){return e.replace(/\[/g,"[")}function tse(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}var tT=r(h());function XR({attributes:e}){return(0,tT.jsx)("pre",{...fx.useBlockProps.save(),children:(0,tT.jsx)(fx.RichText.Content,{tagName:"code",value:YR(typeof e.content=="string"?e.content:e.content.toHTMLString({preserveWhiteSpace:!0}))})})}var T0=r(U()),gx=r(Em());var ose={from:[{type:"enter",regExp:/^```$/,transform:()=>(0,T0.createBlock)("core/code")},{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,T0.createBlock)("core/code",{...e,...Ks(e,"core/code"),content:t})}},{type:"block",blocks:["core/html"],transform:e=>{let{content:t}=e;return(0,T0.createBlock)("core/code",{...e,...Ks(e,"core/code"),content:(0,gx.toHTMLString)({value:(0,gx.create)({text:t})})})}},{type:"raw",isMatch:e=>e.nodeName==="PRE"&&e.children.length===1&&e.firstChild.nodeName==="CODE",schema:{pre:{children:{code:{children:{"#text":{}}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,T0.createBlock)("core/paragraph",{...Ks(e,"core/paragraph"),content:t})}}]},JR=ose;var{fieldsKey:rse,formKey:ase}=Q(ez.privateApis),{name:tz}=dx,hx={icon:yh,example:{attributes:{content:(0,oT.__)(`// A \u201Cblock\u201D is the abstract term used 2 // to describe units of markup that 3 // when composed together, form the 4 // content or layout of a page. 5 registerBlockType( name, settings );`)}},merge(e,t){return{content:e.content+` 6 7 `+t.content}},transforms:JR,edit:KR,save:XR};window.__experimentalContentOnlyInspectorFields&&(hx[rse]=[{id:"content",label:(0,oT.__)("Code"),type:"richtext"}],hx[ase]={fields:["content"]});var nse=()=>D({name:tz,metadata:dx,settings:hx});var nT={};$(nT,{init:()=>use,metadata:()=>bx,name:()=>lz,settings:()=>sz});var oz=r(S()),aT=r(h()),ise=[{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:o}=e,a=w({[`is-vertically-aligned-${t}`]:t}),n={flexBasis:o+"%"};return(0,aT.jsx)("div",{className:a,style:n,children:(0,aT.jsx)(oz.InnerBlocks.Content,{})})}}],rz=ise;var _r=r(S()),Kc=r(M()),vx=r(A()),Vm=r(B());var Dn=r(h());function lse({width:e,setAttributes:t}){let[o]=(0,_r.useSettings)("spacing.units"),a=(0,Kc.__experimentalUseCustomUnits)({availableUnits:o||["%","px","em","rem","vw"]}),n=G();return(0,Dn.jsx)(Kc.__experimentalToolsPanel,{label:(0,Vm.__)("Settings"),resetAll:()=>{t({width:void 0})},dropdownMenuProps:n,children:(0,Dn.jsx)(Kc.__experimentalToolsPanelItem,{hasValue:()=>e!==void 0,label:(0,Vm.__)("Width"),onDeselect:()=>t({width:void 0}),isShownByDefault:!0,children:(0,Dn.jsx)(Kc.__experimentalUnitControl,{label:(0,Vm.__)("Width"),__unstableInputWidth:"calc(50% - 8px)",__next40pxDefaultSize:!0,value:e||"",onChange:i=>{i=0>parseFloat(i)?"0":i,t({width:i})},units:a})})})}function sse({attributes:{verticalAlignment:e,width:t,templateLock:o,allowedBlocks:a},setAttributes:n,clientId:i}){let l=w("block-core-columns",{[`is-vertically-aligned-${e}`]:e}),{columnsIds:s,hasChildBlocks:c,rootClientId:u}=(0,vx.useSelect)(_=>{let{getBlockOrder:x,getBlockRootClientId:k}=_(_r.store),C=k(i);return{hasChildBlocks:x(i).length>0,rootClientId:C,columnsIds:x(C)}},[i]),{updateBlockAttributes:m}=(0,vx.useDispatch)(_r.store),p=_=>{n({verticalAlignment:_}),m(u,{verticalAlignment:null})},d=Number.isFinite(t)?t+"%":t,f=(0,_r.useBlockProps)({className:l,style:d?{flexBasis:d}:void 0}),g=s.length,b=s.indexOf(i)+1,y=(0,Vm.sprintf)((0,Vm.__)("%1$s (%2$d of %3$d)"),f["aria-label"],b,g),v=(0,_r.useInnerBlocksProps)({...f,"aria-label":y},{templateLock:o,allowedBlocks:a,renderAppender:c?void 0:_r.InnerBlocks.ButtonBlockAppender});return(0,Dn.jsxs)(Dn.Fragment,{children:[(0,Dn.jsx)(_r.BlockControls,{children:(0,Dn.jsx)(_r.BlockVerticalAlignmentToolbar,{onChange:p,value:e,controls:["top","center","bottom","stretch"]})}),(0,Dn.jsx)(_r.InspectorControls,{children:(0,Dn.jsx)(lse,{width:t,setAttributes:n})}),(0,Dn.jsx)("div",{...v})]})}var az=sse;var bx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/column",title:"Column",category:"design",parent:["core/columns"],description:"A single column within a columns block.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},width:{type:"string"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{__experimentalOnEnter:!0,anchor:!0,reusable:!1,html:!1,color:{gradients:!0,heading:!0,button:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},shadow:!0,spacing:{blockGap:!0,padding:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:!0,interactivity:{clientNavigation:!0},allowedBlocks:!0}};var yx=r(S()),nz=r(h());function iz({attributes:e}){let{verticalAlignment:t,width:o}=e,a=w({[`is-vertically-aligned-${t}`]:t}),n;if(o&&/\d/.test(o)){let s=Number.isFinite(o)?o+"%":o;!Number.isFinite(o)&&o?.endsWith("%")&&(s=Math.round(Number.parseFloat(o)*1e12)/1e12+"%"),n={flexBasis:s}}let i=yx.useBlockProps.save({className:a,style:n}),l=yx.useInnerBlocksProps.save(i);return(0,nz.jsx)("div",{...l})}var{name:lz}=bx,sz={icon:i8,edit:az,save:iz,deprecated:rz},use=()=>D({name:lz,metadata:bx,settings:sz});var sT={};$(sT,{init:()=>wse,metadata:()=>kx,name:()=>bz,settings:()=>yz});var B0=r(B());var cz=r(U()),Hm=r(S()),Fm=r(h());function xx(e){let{doc:t}=xx;t||(t=document.implementation.createHTMLDocument(""),xx.doc=t);let o;t.body.innerHTML=e;for(let a of t.body.firstChild.classList)if(o=a.match(/^layout-column-(\d+)$/))return Number(o[1])-1}var mse=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:o,customBackgroundColor:a,...n}=e;return{...n,style:t,isStackedOnMobile:!0}},uz=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:mse,save({attributes:e}){let{verticalAlignment:t,backgroundColor:o,customBackgroundColor:a,textColor:n,customTextColor:i}=e,l=(0,Hm.getColorClassName)("background-color",o),s=(0,Hm.getColorClassName)("color",n),c=w({"has-background":o||a,"has-text-color":n||i,[l]:l,[s]:s,[`are-vertically-aligned-${t}`]:t});return(0,Fm.jsx)("div",{className:c||void 0,style:{backgroundColor:l?void 0:a,color:s?void 0:i},children:(0,Fm.jsx)(Hm.InnerBlocks.Content,{})})}},{attributes:{columns:{type:"number",default:2}},isEligible(e,t){return t.some(a=>/layout-column-\d+/.test(a.originalContent))?t.some(a=>xx(a.originalContent)!==void 0):!1},migrate(e,t){let a=t.reduce((l,s)=>{let{originalContent:c}=s,u=xx(c);return u===void 0&&(u=0),l[u]||(l[u]=[]),l[u].push(s),l},[]).map(l=>(0,cz.createBlock)("core/column",{},l)),{columns:n,...i}=e;return[{...i,isStackedOnMobile:!0},a]},save({attributes:e}){let{columns:t}=e;return(0,Fm.jsx)("div",{className:`has-${t}-columns`,children:(0,Fm.jsx)(Hm.InnerBlocks.Content,{})})}},{attributes:{columns:{type:"number",default:2}},migrate(e,t){let{columns:o,...a}=e;return e={...a,isStackedOnMobile:!0},[e,t]},save({attributes:e}){let{verticalAlignment:t,columns:o}=e,a=w(`has-${o}-columns`,{[`are-vertically-aligned-${t}`]:t});return(0,Fm.jsx)("div",{className:a,children:(0,Fm.jsx)(Hm.InnerBlocks.Content,{})})}}];var jm=r(B()),gi=r(M()),Co=r(S()),fi=r(A()),Om=r(U());var _x=e=>{let t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function mz(e,t){let{width:o=100/t}=e.attributes;return _x(o)}function pse(e,t=e.length){return e.reduce((o,a)=>o+mz(a,t),0)}function dse(e,t=e.length){return e.reduce((o,a)=>{let n=mz(a,t);return Object.assign(o,{[a.clientId]:n})},{})}function iT(e,t,o=e.length){let a=pse(e,o);return Object.fromEntries(Object.entries(dse(e,o)).map(([n,i])=>{let l=t*i/a;return[n,_x(l)]}))}function pz(e){return e.every(t=>{let o=t.attributes.width;return Number.isFinite(o?.endsWith?.("%")?parseFloat(o):o)})}function lT(e,t){return e.map(o=>({...o,attributes:{...o.attributes,width:`${t[o.clientId]}%`}}))}var Uo=r(h()),fse={name:"core/column"};function gse({clientId:e,setAttributes:t,isStackedOnMobile:o}){let{count:a,canInsertColumnBlock:n,minCount:i}=(0,fi.useSelect)(m=>{let{canInsertBlockType:p,canRemoveBlock:d,getBlockOrder:f}=m(Co.store),g=f(e),b=g.reduce((y,v,_)=>(d(v)||y.push(_),y),[]);return{count:g.length,canInsertColumnBlock:p("core/column",e),minCount:Math.max(...b)+1}},[e]),{getBlocks:l}=(0,fi.useSelect)(Co.store),{replaceInnerBlocks:s}=(0,fi.useDispatch)(Co.store);function c(m,p){let d=l(e),f=pz(d),g=p>m;if(g&&f){let b=_x(100/p),y=p-m,v=iT(d,100-b*y);d=[...lT(d,v),...Array.from({length:y}).map(()=>(0,Om.createBlock)("core/column",{width:`${b}%`}))]}else if(g)d=[...d,...Array.from({length:p-m}).map(()=>(0,Om.createBlock)("core/column"))];else if(p<m&&(d=d.slice(0,-(m-p)),f)){let b=iT(d,100);d=lT(d,b)}s(e,d)}let u=G();return(0,Uo.jsxs)(gi.__experimentalToolsPanel,{label:(0,jm.__)("Settings"),resetAll:()=>{t({isStackedOnMobile:!0})},dropdownMenuProps:u,children:[n&&(0,Uo.jsxs)(gi.__experimentalVStack,{spacing:4,style:{gridColumn:"1 / -1"},children:[(0,Uo.jsx)(gi.RangeControl,{__next40pxDefaultSize:!0,label:(0,jm.__)("Columns"),value:a,onChange:m=>c(a,Math.max(i,m)),min:Math.max(1,i),max:Math.max(6,a)}),a>6&&(0,Uo.jsx)(gi.Notice,{status:"warning",isDismissible:!1,children:(0,jm.__)("This column count exceeds the recommended amount and may cause visual breakage.")})]}),(0,Uo.jsx)(gi.__experimentalToolsPanelItem,{label:(0,jm.__)("Stack on mobile"),isShownByDefault:!0,hasValue:()=>o!==!0,onDeselect:()=>t({isStackedOnMobile:!0}),children:(0,Uo.jsx)(gi.ToggleControl,{label:(0,jm.__)("Stack on mobile"),checked:o,onChange:()=>t({isStackedOnMobile:!o})})})]})}function hse({attributes:e,setAttributes:t,clientId:o}){let{isStackedOnMobile:a,verticalAlignment:n,templateLock:i}=e,l=(0,fi.useRegistry)(),{getBlockOrder:s}=(0,fi.useSelect)(Co.store),{updateBlockAttributes:c}=(0,fi.useDispatch)(Co.store),u=w({[`are-vertically-aligned-${n}`]:n,"is-not-stacked-on-mobile":!a}),m=(0,Co.useBlockProps)({className:u}),p=(0,Co.useInnerBlocksProps)(m,{defaultBlock:fse,directInsert:!0,orientation:"horizontal",renderAppender:!1,templateLock:i});function d(f){let g=s(o);l.batch(()=>{t({verticalAlignment:f}),c(g,{verticalAlignment:f})})}return(0,Uo.jsxs)(Uo.Fragment,{children:[(0,Uo.jsx)(Co.BlockControls,{children:(0,Uo.jsx)(Co.BlockVerticalAlignmentToolbar,{onChange:d,value:n})}),(0,Uo.jsx)(Co.InspectorControls,{children:(0,Uo.jsx)(gse,{clientId:o,setAttributes:t,isStackedOnMobile:a})}),(0,Uo.jsx)("div",{...p})]})}function vse({clientId:e,name:t,setAttributes:o}){let{blockType:a,defaultVariation:n,variations:i}=(0,fi.useSelect)(c=>{let{getBlockVariations:u,getBlockType:m,getDefaultBlockVariation:p}=c(Om.store);return{blockType:m(t),defaultVariation:p(t,"block"),variations:u(t,"block")}},[t]),{replaceInnerBlocks:l}=(0,fi.useDispatch)(Co.store),s=(0,Co.useBlockProps)();return(0,Uo.jsx)("div",{...s,children:(0,Uo.jsx)(Co.__experimentalBlockVariationPicker,{icon:a?.icon?.src,label:a?.title,variations:i,instructions:(0,jm.__)("Divide into columns. Select a layout:"),onSelect:(c=n)=>{c.attributes&&o(c.attributes),c.innerBlocks&&l(e,(0,Om.createBlocksFromInnerBlocksTemplate)(c.innerBlocks),!0)},allowSkip:!0})})}var bse=e=>{let{clientId:t}=e,a=(0,fi.useSelect)(n=>n(Co.store).getBlocks(t).length>0,[t])?hse:vse;return(0,Uo.jsx)(a,{...e})},dz=bse;var kx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/columns",title:"Columns",category:"design",allowedBlocks:["core/column"],description:"Display content in multiple columns, with blocks added to each column.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,heading:!0,button:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{blockGap:{__experimentalDefault:"2em",sides:["horizontal","vertical"]},margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,allowEditing:!1,default:{type:"flex",flexWrap:"nowrap"}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},shadow:!0},editorStyle:"wp-block-columns-editor",style:"wp-block-columns"};var wx=r(S()),fz=r(h());function gz({attributes:e}){let{isStackedOnMobile:t,verticalAlignment:o}=e,a=w({[`are-vertically-aligned-${o}`]:o,"is-not-stacked-on-mobile":!t}),n=wx.useBlockProps.save({className:a}),i=wx.useInnerBlocksProps.save(n);return(0,fz.jsx)("div",{...i})}var Qa=r(M()),En=r(B()),Ln=r(h()),xse=[{name:"one-column-full",title:(0,En.__)("100"),description:(0,En.__)("One column"),icon:(0,Ln.jsx)(Qa.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Ln.jsx)(Qa.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,En.__)("50 / 50"),description:(0,En.__)("Two columns; equal split"),icon:(0,Ln.jsx)(Qa.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Ln.jsx)(Qa.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,En.__)("33 / 66"),description:(0,En.__)("Two columns; one-third, two-thirds split"),icon:(0,Ln.jsx)(Qa.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Ln.jsx)(Qa.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,En.__)("66 / 33"),description:(0,En.__)("Two columns; two-thirds, one-third split"),icon:(0,Ln.jsx)(Qa.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Ln.jsx)(Qa.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,En.__)("33 / 33 / 33"),description:(0,En.__)("Three columns; equal split"),icon:(0,Ln.jsx)(Qa.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Ln.jsx)(Qa.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,En.__)("25 / 50 / 25"),description:(0,En.__)("Three columns; wide center column"),icon:(0,Ln.jsx)(Qa.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Ln.jsx)(Qa.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"]}],hz=xse;var Ld=r(U()),_se=6,kse={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{let t=+(100/e.length).toFixed(2),o=e.map(({name:a,attributes:n,innerBlocks:i})=>["core/column",{width:`${t}%`},[[a,{...n},i]]]);return(0,Ld.createBlock)("core/columns",{},(0,Ld.createBlocksFromInnerBlocksTemplate)(o))},isMatch:({length:e},t)=>t.length===1&&t[0].name==="core/columns"?!1:e&&e<=_se},{type:"block",blocks:["core/media-text"],priority:1,transform:(e,t)=>{let{align:o,backgroundColor:a,textColor:n,style:i,mediaAlt:l,mediaId:s,mediaPosition:c,mediaSizeSlug:u,mediaType:m,mediaUrl:p,mediaWidth:d,verticalAlignment:f}=e,g;if(m==="image"||!m){let y={id:s,alt:l,url:p,sizeSlug:u},v={href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel};g=["core/image",{...y,...v}]}else g=["core/video",{id:s,src:p}];let b=[["core/column",{width:`${d}%`},[g]],["core/column",{width:`${100-d}%`},t]];return c==="right"&&b.reverse(),(0,Ld.createBlock)("core/columns",{align:o,backgroundColor:a,textColor:n,style:i,verticalAlignment:f},(0,Ld.createBlocksFromInnerBlocksTemplate)(b))}}],ungroup:(e,t)=>t.flatMap(o=>o.innerBlocks)},vz=kse;var{name:bz}=kx,yz={icon:s8,variations:hz,example:{viewportWidth:782,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,B0.__)("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,B0.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,B0.__)("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,B0.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:uz,edit:dz,save:gz,transforms:vz},wse=()=>D({name:bz,metadata:kx,settings:yz});var pT={};$(pT,{init:()=>Nse,metadata:()=>Cx,name:()=>Az,settings:()=>Vz});var Cx={$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:{align:["wide","full"],html:!1,color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},editorStyle:"wp-block-comments-editor",usesContext:["postId","postType"]};var Sx=r(S()),cT=r(h()),Sse={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=Sx.useBlockProps.save(),{className:o}=t,n=(o?.split(" ")||[])?.filter(l=>l!=="wp-block-comments"),i={...t,className:n.join(" ")};return(0,cT.jsx)(e,{...i,children:(0,cT.jsx)(Sx.InnerBlocks.Content,{})})}},xz=[Sse];var Nx=r(S());var _z=r(B()),P0=r(S());var Tx=r(h()),{HTMLElementControl:Tse}=Q(P0.privateApis);function kz({attributes:{tagName:e},setAttributes:t}){return(0,Tx.jsx)(P0.InspectorControls,{children:(0,Tx.jsx)(P0.InspectorControls,{group:"advanced",children:(0,Tx.jsx)(Tse,{tagName:e,onChange:o=>t({tagName:o}),options:[{label:(0,_z.__)("Default (<div>)"),value:"div"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]})})})}var Yc=r(S()),mT=r(B()),Dz=r(M());var Tz=r(S()),Go=r(B()),Bz=r(A()),Pz=r(Y()),Nz=r(H());var hi=r(B()),Qc=r(S()),wz=r(M()),Cz=r(we()),Bx=r(Y()),uT=r(A()),ba=r(h()),Sz=()=>{let e=(0,Cz.useInstanceId)(Sz);return(0,ba.jsxs)("div",{className:"comment-respond",children:[(0,ba.jsx)("h3",{className:"comment-reply-title",children:(0,hi.__)("Leave a Reply")}),(0,ba.jsxs)("form",{noValidate:!0,className:"comment-form",onSubmit:t=>t.preventDefault(),children:[(0,ba.jsxs)("p",{children:[(0,ba.jsx)("label",{htmlFor:`comment-${e}`,children:(0,hi.__)("Comment")}),(0,ba.jsx)("textarea",{id:`comment-${e}`,name:"comment",cols:"45",rows:"8",readOnly:!0})]}),(0,ba.jsx)("p",{className:"form-submit wp-block-button",children:(0,ba.jsx)("input",{name:"submit",type:"submit",className:w("wp-block-button__link",(0,Qc.__experimentalGetElementClassName)("button")),label:(0,hi.__)("Post Comment"),value:(0,hi.__)("Post Comment"),"aria-disabled":"true"})})]})]})},Bse=({postId:e,postType:t})=>{let[o,a]=(0,Bx.useEntityProp)("postType",t,"comment_status",e),n=t===void 0||e===void 0,i=(0,uT.useSelect)(s=>s(Qc.store).getSettings().__experimentalDiscussionSettings?.defaultCommentStatus,[]),l=(0,uT.useSelect)(s=>t?!!s(Bx.store).getPostType(t)?.supports.comments:!1);if(!n&&o!=="open")if(o==="closed"){let s=[(0,ba.jsx)(wz.Button,{__next40pxDefaultSize:!0,onClick:()=>a("open"),variant:"primary",children:(0,hi._x)("Enable comments","action that affects the current post")},"enableComments")];return(0,ba.jsx)(Qc.Warning,{actions:s,children:(0,hi.__)("Post Comments Form block: Comments are not enabled for this item.")})}else if(l){if(i!=="open")return(0,ba.jsx)(Qc.Warning,{children:(0,hi.__)("Post Comments Form block: Comments are not enabled.")})}else return(0,ba.jsx)(Qc.Warning,{children:(0,hi.sprintf)((0,hi.__)("Post Comments Form block: Comments are not enabled for this post type (%s)."),t)});return(0,ba.jsx)(Sz,{})},Px=Bse;var Ke=r(h());function Iz({postType:e,postId:t}){let[o]=(0,Pz.useEntityProp)("postType",e,"title",t);o=o||(0,Go.__)("Post Title");let a=(0,Bz.useSelect)(n=>n(Tz.store).getSettings().__experimentalDiscussionSettings?.avatarURL,[]);return(0,Ke.jsxs)("div",{className:"wp-block-comments__legacy-placeholder",inert:"true",children:[(0,Ke.jsx)("h3",{children:(0,Go.sprintf)((0,Go.__)("One response to %s"),o)}),(0,Ke.jsxs)("div",{className:"navigation",children:[(0,Ke.jsx)("div",{className:"alignleft",children:(0,Ke.jsxs)("a",{href:"#top",children:["\xAB ",(0,Go.__)("Older Comments")]})}),(0,Ke.jsx)("div",{className:"alignright",children:(0,Ke.jsxs)("a",{href:"#top",children:[(0,Go.__)("Newer Comments")," \xBB"]})})]}),(0,Ke.jsx)("ol",{className:"commentlist",children:(0,Ke.jsx)("li",{className:"comment even thread-even depth-1",children:(0,Ke.jsxs)("article",{className:"comment-body",children:[(0,Ke.jsxs)("footer",{className:"comment-meta",children:[(0,Ke.jsxs)("div",{className:"comment-author vcard",children:[(0,Ke.jsx)("img",{alt:(0,Go.__)("Commenter Avatar"),src:a,className:"avatar avatar-32 photo",height:"32",width:"32",loading:"lazy"}),(0,Ke.jsx)("b",{className:"fn",children:(0,Ke.jsx)("a",{href:"#top",className:"url",children:(0,Go.__)("A WordPress Commenter")})})," ",(0,Ke.jsxs)("span",{className:"says",children:[(0,Go.__)("says"),":"]})]}),(0,Ke.jsxs)("div",{className:"comment-metadata",children:[(0,Ke.jsx)("a",{href:"#top",children:(0,Ke.jsx)("time",{dateTime:"2000-01-01T00:00:00+00:00",children:(0,Go.__)("January 1, 2000 at 00:00 am")})})," ",(0,Ke.jsx)("span",{className:"edit-link",children:(0,Ke.jsx)("a",{className:"comment-edit-link",href:"#top",children:(0,Go.__)("Edit")})})]})]}),(0,Ke.jsx)("div",{className:"comment-content",children:(0,Ke.jsxs)("p",{children:[(0,Go.__)("Hi, this is a comment."),(0,Ke.jsx)("br",{}),(0,Go.__)("To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard."),(0,Ke.jsx)("br",{}),(0,Nz.createInterpolateElement)((0,Go.__)("Commenter avatars come from <a>Gravatar</a>."),{a:(0,Ke.jsx)("a",{href:"https://gravatar.com/"})})]})}),(0,Ke.jsx)("div",{className:"reply",children:(0,Ke.jsx)("a",{className:"comment-reply-link",href:"#top","aria-label":(0,Go.__)("Reply to A WordPress Commenter"),children:(0,Go.__)("Reply")})})]})})}),(0,Ke.jsxs)("div",{className:"navigation",children:[(0,Ke.jsx)("div",{className:"alignleft",children:(0,Ke.jsxs)("a",{href:"#top",children:["\xAB ",(0,Go.__)("Older Comments")]})}),(0,Ke.jsx)("div",{className:"alignright",children:(0,Ke.jsxs)("a",{href:"#top",children:[(0,Go.__)("Newer Comments")," \xBB"]})})]}),(0,Ke.jsx)(Px,{postId:t,postType:e})]})}var qi=r(h());function Ez({attributes:e,setAttributes:t,context:{postType:o,postId:a}}){let{textAlign:n}=e,i=[(0,qi.jsx)(Dz.Button,{__next40pxDefaultSize:!0,onClick:()=>void t({legacy:!1}),variant:"primary",children:(0,mT.__)("Switch to editable mode")},"convert")],l=(0,Yc.useBlockProps)({className:w({[`has-text-align-${n}`]:n})});return(0,qi.jsxs)(qi.Fragment,{children:[(0,qi.jsx)(Yc.BlockControls,{group:"block",children:(0,qi.jsx)(Yc.AlignmentControl,{value:n,onChange:s=>{t({textAlign:s})}})}),(0,qi.jsxs)("div",{...l,children:[(0,qi.jsx)(Yc.Warning,{actions:i,children:(0,mT.__)("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,qi.jsx)(Iz,{postId:a,postType:o})]})]})}var Pse=[["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"]],Lz=Pse;var Xc=r(h());function Mz(e){let{attributes:t,setAttributes:o,clientId:a}=e,{tagName:n,legacy:i}=t,l=(0,Nx.useBlockProps)(),s=(0,Nx.useInnerBlocksProps)(l,{template:Lz});return i?(0,Xc.jsx)(Ez,{...e}):(0,Xc.jsxs)(Xc.Fragment,{children:[(0,Xc.jsx)(kz,{attributes:t,setAttributes:o,clientId:a}),(0,Xc.jsx)(n,{...s})]})}var Ix=r(S()),Rz=r(h());function zz({attributes:{tagName:e,legacy:t}}){let o=Ix.useBlockProps.save(),a=Ix.useInnerBlocksProps.save(o);return t?null:(0,Rz.jsx)(e,{...a})}var{name:Az}=Cx,Vz={icon:n9,example:{},edit:Mz,save:zz,deprecated:xz},Nse=()=>D({name:Az,metadata:Cx,settings:Vz});var fT={};$(fT,{init:()=>Dse,metadata:()=>Dx,name:()=>jz,settings:()=>Oz});var Dx={$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 Jc=r(S()),Md=r(M()),dT=r(Y()),Fz=r(A()),Um=r(B()),Zi=r(h());function Hz({attributes:e,context:{commentId:t},setAttributes:o,isSelected:a}){let{height:n,width:i}=e,[l]=(0,dT.useEntityProp)("root","comment","author_avatar_urls",t),[s]=(0,dT.useEntityProp)("root","comment","author_name",t),c=l?Object.values(l):null,u=l?Object.keys(l):null,m=u?u[0]:24,p=u?u[u.length-1]:96,d=(0,Jc.useBlockProps)(),f=(0,Jc.__experimentalGetSpacingClassesAndStyles)(e),g=Math.floor(p*2.5),b=(0,Fz.useSelect)(_=>{let{__experimentalDiscussionSettings:x}=_(Jc.store).getSettings();return x?.avatarURL},[]),y=(0,Zi.jsx)(Jc.InspectorControls,{children:(0,Zi.jsx)(Md.PanelBody,{title:(0,Um.__)("Settings"),children:(0,Zi.jsx)(Md.RangeControl,{__next40pxDefaultSize:!0,label:(0,Um.__)("Image size"),onChange:_=>o({width:_,height:_}),min:m,max:g,initialPosition:i,value:i})})}),v=(0,Zi.jsx)(Md.ResizableBox,{size:{width:i,height:n},showHandle:a,onResizeStop:(_,x,k,C)=>{o({height:parseInt(n+C.height,10),width:parseInt(i+C.width,10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,Um.isRTL)(),bottom:!0,left:(0,Um.isRTL)()},minWidth:m,maxWidth:g,children:(0,Zi.jsx)("img",{src:c?c[c.length-1]:b,alt:`${s} ${(0,Um.__)("Avatar")}`,...d})});return(0,Zi.jsxs)(Zi.Fragment,{children:[y,(0,Zi.jsx)("div",{...f,children:v})]})}var{name:jz}=Dx,Oz={icon:xh,edit:Hz},Dse=()=>D({name:jz,metadata:Dx,settings:Oz});var gT={};$(gT,{init:()=>Mse,metadata:()=>Ex,name:()=>qz,settings:()=>Zz});var Ex={$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"},textAlign:{type:"string"}},usesContext:["commentId"],supports:{html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!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}}},style:"wp-block-comment-author-name"};var Qs=r(B()),Uz=r(A()),tu=r(S()),Gz=r(Y()),eu=r(M());var ya=r(h());function $z({attributes:{isLink:e,linkTarget:t,textAlign:o},context:{commentId:a},setAttributes:n}){let i=G(),l=(0,tu.useBlockProps)({className:w({[`has-text-align-${o}`]:o})}),s=(0,Uz.useSelect)(p=>{let{getEntityRecord:d}=p(Gz.store),f=d("root","comment",a),g=f?.author_name;return f&&!g?d("root","user",f.author)?.name??(0,Qs.__)("Anonymous"):g??""},[a]),c=(0,ya.jsx)(tu.BlockControls,{group:"block",children:(0,ya.jsx)(tu.AlignmentControl,{value:o,onChange:p=>n({textAlign:p})})}),u=(0,ya.jsx)(tu.InspectorControls,{children:(0,ya.jsxs)(eu.__experimentalToolsPanel,{label:(0,Qs.__)("Settings"),resetAll:()=>{n({isLink:!0,linkTarget:"_self"})},dropdownMenuProps:i,children:[(0,ya.jsx)(eu.__experimentalToolsPanelItem,{label:(0,Qs.__)("Link to authors URL"),isShownByDefault:!0,hasValue:()=>!e,onDeselect:()=>n({isLink:!0}),children:(0,ya.jsx)(eu.ToggleControl,{label:(0,Qs.__)("Link to authors URL"),onChange:()=>n({isLink:!e}),checked:e})}),e&&(0,ya.jsx)(eu.__experimentalToolsPanelItem,{label:(0,Qs.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>t!=="_self",onDeselect:()=>n({linkTarget:"_self"}),children:(0,ya.jsx)(eu.ToggleControl,{label:(0,Qs.__)("Open in new tab"),onChange:p=>n({linkTarget:p?"_blank":"_self"}),checked:t==="_blank"})})]})});return(!a||!s)&&(s=(0,Qs._x)("Comment Author","block title")),(0,ya.jsxs)(ya.Fragment,{children:[u,c,(0,ya.jsx)("div",{...l,children:e?(0,ya.jsx)("a",{href:"#comment-author-pseudo-link",onClick:p=>p.preventDefault(),children:s}):s})]})}var Lse={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:Nt,isEligible({style:e}){return e?.typography?.fontFamily}},Wz=[Lse];var{name:qz}=Ex,Zz={icon:u8,edit:$z,deprecated:Wz,example:{}},Mse=()=>D({name:qz,metadata:Ex,settings:Zz});var hT={};$(hT,{init:()=>zse,metadata:()=>Lx,name:()=>eA,settings:()=>tA});var Lx={$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"],attributes:{textAlign:{type:"string"}},supports:{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}},__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 Kz=r(B()),Qz=r(H()),Yz=r(M()),Xz=r(Y()),Rd=r(S()),Ya=r(h());function Jz({setAttributes:e,attributes:{textAlign:t},context:{commentId:o}}){let a=(0,Rd.useBlockProps)({className:w({[`has-text-align-${t}`]:t})}),[n]=(0,Xz.useEntityProp)("root","comment","content",o),i=(0,Ya.jsx)(Rd.BlockControls,{group:"block",children:(0,Ya.jsx)(Rd.AlignmentControl,{value:t,onChange:l=>e({textAlign:l})})});return!o||!n?(0,Ya.jsxs)(Ya.Fragment,{children:[i,(0,Ya.jsx)("div",{...a,children:(0,Ya.jsx)("p",{children:(0,Kz._x)("Comment Content","block title")})})]}):(0,Ya.jsxs)(Ya.Fragment,{children:[i,(0,Ya.jsx)("div",{...a,children:(0,Ya.jsx)(Yz.Disabled,{children:(0,Ya.jsx)(Qz.RawHTML,{children:n.rendered},"html")})})]})}var{name:eA}=Lx,tA={icon:p8,edit:Jz,example:{}},zse=()=>D({name:eA,metadata:Lx,settings:tA});var bT={};$(bT,{init:()=>Fse,metadata:()=>Mx,name:()=>nA,settings:()=>iA});var Mx={$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:{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}}},style:"wp-block-comment-date"};var vT=r(Y()),$m=r(Rx()),zd=r(S()),Wm=r(M()),Gm=r(B());var xa=r(h());function rA({attributes:{format:e,isLink:t},context:{commentId:o},setAttributes:a}){let n=(0,zd.useBlockProps)(),i=G(),[l]=(0,vT.useEntityProp)("root","comment","date",o),[s=(0,$m.getSettings)().formats.date]=(0,vT.useEntityProp)("root","site","date_format"),c=(0,xa.jsx)(zd.InspectorControls,{children:(0,xa.jsxs)(Wm.__experimentalToolsPanel,{label:(0,Gm.__)("Settings"),resetAll:()=>{a({format:void 0,isLink:!0})},dropdownMenuProps:i,children:[(0,xa.jsx)(Wm.__experimentalToolsPanelItem,{label:(0,Gm.__)("Date format"),hasValue:()=>e!==void 0,onDeselect:()=>a({format:void 0}),isShownByDefault:!0,children:(0,xa.jsx)(zd.__experimentalDateFormatPicker,{format:e,defaultFormat:s,onChange:m=>a({format:m})})}),(0,xa.jsx)(Wm.__experimentalToolsPanelItem,{label:(0,Gm.__)("Link to comment"),hasValue:()=>!t,onDeselect:()=>a({isLink:!0}),isShownByDefault:!0,children:(0,xa.jsx)(Wm.ToggleControl,{label:(0,Gm.__)("Link to comment"),onChange:()=>a({isLink:!t}),checked:t})})]})});(!o||!l)&&(l=(0,Gm._x)("Comment Date","block title"));let u=l instanceof Date?(0,xa.jsx)("time",{dateTime:(0,$m.dateI18n)("c",l),children:e==="human-diff"?(0,$m.humanTimeDiff)(l):(0,$m.dateI18n)(e||s,l)}):(0,xa.jsx)("time",{children:l});return t&&(u=(0,xa.jsx)("a",{href:"#comment-date-pseudo-link",onClick:m=>m.preventDefault(),children:u})),(0,xa.jsxs)(xa.Fragment,{children:[c,(0,xa.jsx)("div",{...n,children:u})]})}var Vse={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:Nt,isEligible({style:e}){return e?.typography?.fontFamily}},aA=[Vse];var{name:nA}=Mx,iA={icon:Gh,edit:rA,deprecated:aA,example:{}},Fse=()=>D({name:nA,metadata:Mx,settings:iA});var yT={};$(yT,{init:()=>jse,metadata:()=>zx,name:()=>sA,settings:()=>cA});var zx={$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"},textAlign:{type:"string"}},supports:{html:!1,color:{link:!0,gradients:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__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 ou=r(S()),Ad=r(M()),N0=r(B());var Mn=r(h());function lA({attributes:{linkTarget:e,textAlign:t},setAttributes:o}){let a=(0,ou.useBlockProps)({className:w({[`has-text-align-${t}`]:t})}),n=G(),i=(0,Mn.jsx)(ou.BlockControls,{group:"block",children:(0,Mn.jsx)(ou.AlignmentControl,{value:t,onChange:s=>o({textAlign:s})})}),l=(0,Mn.jsx)(ou.InspectorControls,{children:(0,Mn.jsx)(Ad.__experimentalToolsPanel,{label:(0,N0.__)("Settings"),resetAll:()=>{o({linkTarget:"_self"})},dropdownMenuProps:n,children:(0,Mn.jsx)(Ad.__experimentalToolsPanelItem,{label:(0,N0.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>e==="_blank",onDeselect:()=>o({linkTarget:"_self"}),children:(0,Mn.jsx)(Ad.ToggleControl,{label:(0,N0.__)("Open in new tab"),onChange:s=>o({linkTarget:s?"_blank":"_self"}),checked:e==="_blank"})})})});return(0,Mn.jsxs)(Mn.Fragment,{children:[i,l,(0,Mn.jsx)("div",{...a,children:(0,Mn.jsx)("a",{href:"#edit-comment-pseudo-link",onClick:s=>s.preventDefault(),children:(0,N0.__)("Edit")})})]})}var{name:sA}=zx,cA={icon:f8,edit:lA,example:{}},jse=()=>D({name:sA,metadata:zx,settings:cA});var xT={};$(xT,{init:()=>Gse,metadata:()=>Ax,name:()=>pA,settings:()=>dA});var Ax={$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"],attributes:{textAlign:{type:"string"}},supports:{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,__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 uA=r(B()),Vd=r(S()),Ys=r(h());function Use({setAttributes:e,attributes:{textAlign:t}}){let o=(0,Vd.useBlockProps)({className:w({[`has-text-align-${t}`]:t})});return(0,Ys.jsxs)(Ys.Fragment,{children:[(0,Ys.jsx)(Vd.BlockControls,{group:"block",children:(0,Ys.jsx)(Vd.AlignmentControl,{value:t,onChange:n=>e({textAlign:n})})}),(0,Ys.jsx)("div",{...o,children:(0,Ys.jsx)("a",{href:"#comment-reply-pseudo-link",onClick:n=>n.preventDefault(),children:(0,uA.__)("Reply")})})]})}var mA=Use;var{name:pA}=Ax,dA={edit:mA,icon:h8,example:{}},Gse=()=>D({name:pA,metadata:Ax,settings:dA});var kT={};$(kT,{init:()=>Xse,metadata:()=>Vx,name:()=>IA,settings:()=>DA});var Vx={$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:{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 Fx=r(H()),_T=r(A()),kA=r(B()),Ki=r(S()),wA=r(M()),CA=r(Y());var qm=r(H()),hA=r(A()),vA=r(S()),bA=r(ko()),yA=r(I0()),gA=100,xA=({postId:e})=>{let t={status:"approve",order:"asc",context:"embed",parent:0,_embed:"children"},{pageComments:o,commentsPerPage:a,defaultCommentsPage:n}=(0,hA.useSelect)(s=>{let{getSettings:c}=s(vA.store),{__experimentalDiscussionSettings:u}=c();return u??{}},[]),i=o?Math.min(a,gA):gA,l=Wse({defaultPage:n,postId:e,perPage:i,queryArgs:t});return(0,qm.useMemo)(()=>l?{...t,post:e,per_page:i,page:l}:null,[e,i,l])},Wse=({defaultPage:e,postId:t,perPage:o,queryArgs:a})=>{let[n,i]=(0,qm.useState)({}),l=`${t}_${o}`,s=n[l]||0;return(0,qm.useEffect)(()=>{s||e!=="newest"||(0,yA.default)({path:(0,bA.addQueryArgs)("/wp/v2/comments",{...a,post:t,per_page:o,_fields:"id"}),method:"HEAD",parse:!1}).then(c=>{let u=parseInt(c.headers.get("X-WP-TotalPages"));i({...n,[l]:u<=1?1:u})}).catch(()=>{i({...n,[l]:1})})},[e,t,o,i]),e==="newest"?s:1},_A=e=>(0,qm.useMemo)(()=>e?.map(({id:o,_embedded:a})=>{let[n]=a?.children||[[]];return{commentId:o,children:n.map(i=>({commentId:i.id}))}}),[e]);var Rn=r(h()),qse=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]],Zse=({perPage:e,pageComments:t,threadComments:o,threadCommentsDepth:a})=>{let n=o?Math.min(a,3):1,i=s=>{if(s<n){let c=s+1;return[{commentId:-(s+3),children:i(c)}]}return[]},l=[{commentId:-1,children:i(1)}];return(!t||e>=2)&&n<3&&l.push({commentId:-2,children:[]}),(!t||e>=3)&&n<2&&l.push({commentId:-3,children:[]}),l};function Kse({comment:e,activeCommentId:t,setActiveCommentId:o,firstCommentId:a,blocks:n}){let{children:i,...l}=(0,Ki.useInnerBlocksProps)({},{template:qse});return(0,Rn.jsxs)("li",{...l,children:[e.commentId===(t||a)?i:null,(0,Rn.jsx)(Yse,{blocks:n,commentId:e.commentId,setActiveCommentId:o,isHidden:e.commentId===(t||a)}),e?.children?.length>0?(0,Rn.jsx)(SA,{comments:e.children,activeCommentId:t,setActiveCommentId:o,blocks:n,firstCommentId:a}):null]})}var Qse=({blocks:e,commentId:t,setActiveCommentId:o,isHidden:a})=>{let n=(0,Ki.__experimentalUseBlockPreview)({blocks:e}),i=()=>{o(t)};return(0,Rn.jsx)("div",{...n,tabIndex:0,role:"button",style:{display:a?"none":void 0},onClick:i,onKeyPress:i})},Yse=(0,Fx.memo)(Qse),SA=({comments:e,blockProps:t,activeCommentId:o,setActiveCommentId:a,blocks:n,firstCommentId:i})=>(0,Rn.jsx)("ol",{...t,children:e&&e.map(({commentId:l,...s},c)=>(0,Rn.jsx)(Ki.BlockContextProvider,{value:{commentId:l<0?null:l},children:(0,Rn.jsx)(Kse,{comment:{commentId:l,...s},activeCommentId:o,setActiveCommentId:a,blocks:n,firstCommentId:i})},s.commentId||c))});function TA({clientId:e,context:{postId:t}}){let o=(0,Ki.useBlockProps)(),[a,n]=(0,Fx.useState)(),{commentOrder:i,threadCommentsDepth:l,threadComments:s,commentsPerPage:c,pageComments:u}=(0,_T.useSelect)(g=>{let{getSettings:b}=g(Ki.store);return b().__experimentalDiscussionSettings??{}},[]),m=xA({postId:t}),{topLevelComments:p,blocks:d}=(0,_T.useSelect)(g=>{let{getEntityRecords:b}=g(CA.store),{getBlocks:y}=g(Ki.store);return{topLevelComments:m?b("root","comment",m):null,blocks:y(e)}},[e,m]),f=_A(i==="desc"&&p?[...p].reverse():p);return p?(t||(f=Zse({perPage:c,pageComments:u,threadComments:s,threadCommentsDepth:l})),f.length?(0,Rn.jsx)(SA,{comments:f,blockProps:o,blocks:d,activeCommentId:a,setActiveCommentId:n,firstCommentId:f[0]?.commentId}):(0,Rn.jsx)("p",{...o,children:(0,kA.__)("No results found.")})):(0,Rn.jsx)("p",{...o,children:(0,Rn.jsx)(wA.Spinner,{})})}var BA=r(S()),PA=r(h());function NA(){return(0,PA.jsx)(BA.InnerBlocks.Content,{})}var{name:IA}=Vx,DA={icon:wm,edit:TA,save:NA},Xse=()=>D({name:IA,metadata:Vx,settings:DA});var CT={};$(CT,{init:()=>tce,metadata:()=>Hx,name:()=>MA,settings:()=>RA});var LA=r(B());var Hx={$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:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}};var wT=r(B()),jx=r(S()),D0=r(h()),ece={none:"",arrow:"\u2190",chevron:"\xAB"};function EA({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":o}}){let a=ece[o];return(0,D0.jsxs)("a",{href:"#comments-pagination-previous-pseudo-link",onClick:n=>n.preventDefault(),...(0,jx.useBlockProps)(),children:[a&&(0,D0.jsx)("span",{className:`wp-block-comments-pagination-previous-arrow is-arrow-${o}`,children:a}),(0,D0.jsx)(jx.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,wT.__)("Older comments page link"),placeholder:(0,wT.__)("Older Comments"),value:e,onChange:n=>t({label:n})})]})}var{name:MA}=Hx,RA={icon:Zh,edit:EA,example:{attributes:{label:(0,LA.__)("Older Comments")}}},tce=()=>D({name:MA,metadata:Hx,settings:RA});var TT={};$(TT,{init:()=>ace,metadata:()=>Ox,name:()=>jA,settings:()=>OA});var Ox={$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:{align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-comments-pagination-editor",style:"wp-block-comments-pagination"};var Ux=r(B()),Yi=r(S()),ST=r(A()),Gx=r(M());var Zm=r(B()),Fd=r(M()),Hd=r(h());function zA({value:e,onChange:t}){return(0,Hd.jsxs)(Fd.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:(0,Zm.__)("Arrow"),value:e,onChange:t,help:(0,Zm.__)("A decorative arrow appended to the next and previous comments link."),isBlock:!0,children:[(0,Hd.jsx)(Fd.__experimentalToggleGroupControlOption,{value:"none",label:(0,Zm._x)("None","Arrow option for Comments Pagination Next/Previous blocks")}),(0,Hd.jsx)(Fd.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,Zm._x)("Arrow","Arrow option for Comments Pagination Next/Previous blocks")}),(0,Hd.jsx)(Fd.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,Zm._x)("Chevron","Arrow option for Comments Pagination Next/Previous blocks")})]})}var Qi=r(h()),rce=[["core/comments-pagination-previous"],["core/comments-pagination-numbers"],["core/comments-pagination-next"]];function AA({attributes:{paginationArrow:e},setAttributes:t,clientId:o}){let a=(0,ST.useSelect)(c=>{let{getBlocks:u}=c(Yi.store);return u(o)?.find(p=>["core/comments-pagination-previous","core/comments-pagination-next"].includes(p.name))},[]),n=(0,Yi.useBlockProps)(),i=G(),l=(0,Yi.useInnerBlocksProps)(n,{template:rce});return(0,ST.useSelect)(c=>{let{getSettings:u}=c(Yi.store),{__experimentalDiscussionSettings:m}=u();return m?.pageComments},[])?(0,Qi.jsxs)(Qi.Fragment,{children:[a&&(0,Qi.jsx)(Yi.InspectorControls,{children:(0,Qi.jsx)(Gx.__experimentalToolsPanel,{label:(0,Ux.__)("Settings"),dropdownMenuProps:i,resetAll:()=>t({paginationArrow:"none"}),children:(0,Qi.jsx)(Gx.__experimentalToolsPanelItem,{label:(0,Ux.__)("Arrow"),hasValue:()=>e!=="none",onDeselect:()=>t({paginationArrow:"none"}),isShownByDefault:!0,children:(0,Qi.jsx)(zA,{value:e,onChange:c=>{t({paginationArrow:c})}})})})}),(0,Qi.jsx)("div",{...l})]}):(0,Qi.jsx)(Yi.Warning,{children:(0,Ux.__)("Comments Pagination block: paging comments is disabled in the Discussion Settings")})}var VA=r(S()),FA=r(h());function HA(){return(0,FA.jsx)(VA.InnerBlocks.Content,{})}var{name:jA}=Ox,OA={icon:Kh,edit:AA,save:HA},ace=()=>D({name:jA,metadata:Ox,settings:OA});var PT={};$(PT,{init:()=>lce,metadata:()=>$x,name:()=>$A,settings:()=>WA});var GA=r(B());var $x={$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:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}};var BT=r(B()),Wx=r(S()),E0=r(h()),ice={none:"",arrow:"\u2192",chevron:"\xBB"};function UA({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":o}}){let a=ice[o];return(0,E0.jsxs)("a",{href:"#comments-pagination-next-pseudo-link",onClick:n=>n.preventDefault(),...(0,Wx.useBlockProps)(),children:[(0,E0.jsx)(Wx.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,BT.__)("Newer comments page link"),placeholder:(0,BT.__)("Newer Comments"),value:e,onChange:n=>t({label:n})}),a&&(0,E0.jsx)("span",{className:`wp-block-comments-pagination-next-arrow is-arrow-${o}`,children:a})]})}var{name:$A}=$x,WA={icon:Wh,edit:UA,example:{attributes:{label:(0,GA.__)("Newer Comments")}}},lce=()=>D({name:$A,metadata:$x,settings:WA});var NT={};$(NT,{init:()=>cce,metadata:()=>qx,name:()=>KA,settings:()=>QA});var qx={$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:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{padding:!0}}}};var qA=r(S()),vi=r(h()),Km=({content:e,tag:t="a",extraClass:o=""})=>t==="a"?(0,vi.jsx)(t,{className:`page-numbers ${o}`,href:"#comments-pagination-numbers-pseudo-link",onClick:a=>a.preventDefault(),children:e}):(0,vi.jsx)(t,{className:`page-numbers ${o}`,children:e});function ZA(){return(0,vi.jsxs)("div",{...(0,qA.useBlockProps)(),children:[(0,vi.jsx)(Km,{content:"1"}),(0,vi.jsx)(Km,{content:"2"}),(0,vi.jsx)(Km,{content:"3",tag:"span",extraClass:"current"}),(0,vi.jsx)(Km,{content:"4"}),(0,vi.jsx)(Km,{content:"5"}),(0,vi.jsx)(Km,{content:"...",tag:"span",extraClass:"dots"}),(0,vi.jsx)(Km,{content:"8"})]})}var{name:KA}=qx,QA={icon:qh,edit:ZA,example:{}},cce=()=>D({name:KA,metadata:qx,settings:QA});var IT={};$(IT,{init:()=>dce,metadata:()=>jd,name:()=>rV,settings:()=>aV});var jd={$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:{textAlign:{type:"string"},showPostTitle:{type:"boolean",default:!0},showCommentsCount:{type:"boolean",default:!0},level:{type:"number",default:2},levelOptions:{type:"array"}},supports:{anchor:!1,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}}};var bi=r(S()),fo=r(B()),YA=r(Y()),ru=r(M()),Zx=r(H()),XA=r(A()),JA=r(I0()),eV=r(ko());var _a=r(h());function tV({attributes:{textAlign:e,showPostTitle:t,showCommentsCount:o,level:a,levelOptions:n},setAttributes:i,context:{postType:l,postId:s}}){let c="h"+a,[u,m]=(0,Zx.useState)(),[p]=(0,YA.useEntityProp)("postType",l,"title",s),d=typeof s>"u",f=(0,bi.useBlockProps)({className:w({[`has-text-align-${e}`]:e})}),{threadCommentsDepth:g,threadComments:b,commentsPerPage:y,pageComments:v}=(0,XA.useSelect)(N=>{let{getSettings:P}=N(bi.store);return P().__experimentalDiscussionSettings??{}},[]),_=G();(0,Zx.useEffect)(()=>{if(d){let P=b?Math.min(g,3)-1:0,L=v?y:3,R=parseInt(P)+parseInt(L);m(Math.min(R,3));return}let N=s;(0,JA.default)({path:(0,eV.addQueryArgs)("/wp/v2/comments",{post:s,_fields:"id"}),method:"HEAD",parse:!1}).then(P=>{N===s&&m(parseInt(P.headers.get("X-WP-Total")))}).catch(()=>{m(0)})},[s]);let x=(0,_a.jsxs)(bi.BlockControls,{group:"block",children:[(0,_a.jsx)(bi.AlignmentControl,{value:e,onChange:N=>i({textAlign:N})}),(0,_a.jsx)(bi.HeadingLevelDropdown,{value:a,options:n,onChange:N=>i({level:N})})]}),k=(0,_a.jsx)(bi.InspectorControls,{children:(0,_a.jsxs)(ru.__experimentalToolsPanel,{label:(0,fo.__)("Settings"),resetAll:()=>{i({showPostTitle:!0,showCommentsCount:!0})},dropdownMenuProps:_,children:[(0,_a.jsx)(ru.__experimentalToolsPanelItem,{label:(0,fo.__)("Show post title"),isShownByDefault:!0,hasValue:()=>!t,onDeselect:()=>i({showPostTitle:!0}),children:(0,_a.jsx)(ru.ToggleControl,{label:(0,fo.__)("Show post title"),checked:t,onChange:N=>i({showPostTitle:N})})}),(0,_a.jsx)(ru.__experimentalToolsPanelItem,{label:(0,fo.__)("Show comments count"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>i({showCommentsCount:!0}),children:(0,_a.jsx)(ru.ToggleControl,{label:(0,fo.__)("Show comments count"),checked:o,onChange:N=>i({showCommentsCount:N})})})]})}),C=d?(0,fo.__)("\u201CPost Title\u201D"):`"${p}"`,T;return o&&u!==void 0?t?u===1?T=(0,fo.sprintf)((0,fo.__)("One response to %s"),C):T=(0,fo.sprintf)((0,fo._n)("%1$s response to %2$s","%1$s responses to %2$s",u),u,C):u===1?T=(0,fo.__)("One response"):T=(0,fo.sprintf)((0,fo._n)("%s response","%s responses",u),u):t?u===1?T=(0,fo.sprintf)((0,fo.__)("Response to %s"),C):T=(0,fo.sprintf)((0,fo.__)("Responses to %s"),C):u===1?T=(0,fo.__)("Response"):T=(0,fo.__)("Responses"),(0,_a.jsxs)(_a.Fragment,{children:[x,k,(0,_a.jsx)(c,{...f,children:T})]})}var{attributes:mce,supports:pce}=jd,oV=[{attributes:{...mce,singleCommentLabel:{type:"string"},multipleCommentsLabel:{type:"string"}},supports:pce,migrate:e=>{let{singleCommentLabel:t,multipleCommentsLabel:o,...a}=e;return a},isEligible:({multipleCommentsLabel:e,singleCommentLabel:t})=>e||t,save:()=>null}];var{name:rV}=jd,aV={icon:$i,edit:tV,deprecated:oV,example:{}},dce=()=>D({name:rV,metadata:jd,settings:aV});var ZT={};$(ZT,{init:()=>Sue,metadata:()=>u_,name:()=>aF,settings:()=>p_});var qT=r(B());var rF=r(U());var Yx=r(U()),ye=r(S()),Xx=r(B()),L0=r(we());var Kx=r(No()),fce={"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"},Vt="image",so="video",Qm="embed-video",nV=50;var gce={x:.5,y:.5},Qx=["image","video"];function kr({x:e,y:t}=gce){return`${Math.round(e*100)}% ${Math.round(t*100)}%`}function yi(e){return e===50||e===void 0?null:"has-background-dim-"+10*Math.round(e/10)}function iV(e){if(!e||!e.url&&!e.src)return{url:void 0,id:void 0};(0,Kx.isBlobURL)(e.url)&&(e.type=(0,Kx.getBlobTypeByURL)(e.url));let t;if(e.media_type)e.media_type===Vt?t=Vt:t=so;else if(e.type&&(e.type===Vt||e.type===so))t=e.type;else return;return{url:e.url||e.src,id:e.id,alt:e?.alt,backgroundType:t,...t===so?{hasParallax:void 0}:{}}}function ka(e){return!e||e==="center center"||e==="center"}function Xa(e){return ka(e)?"":fce[e]}var le=r(h());function Wl(e){return e?{backgroundImage:`url(${e})`}:{}}function Ym(e){return e===0||e===50||!e?null:"has-background-dim-"+10*Math.round(e/10)}function Jx(e){return{...e,dimRatio:e.url?e.dimRatio:100}}function au(e){return e.tagName||(e={...e,tagName:"div"}),{...e}}var Xm={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"}},M0={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]}},DT={...M0,useFeaturedImage:{type:"boolean",default:!1},tagName:{type:"string",default:"div"}},hce={...DT,isUserOverlayColor:{type:"boolean"},sizeSlug:{type:"string"},alt:{type:"string",default:""}},Od={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}},ET={...Od,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}},vce={...ET,shadow:!0,dimensions:{aspectRatio:!0},interactivity:{clientNavigation:!0}},bce={attributes:hce,supports:vce,save({attributes:e}){let{backgroundType:t,gradient:o,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:g,id:b,minHeight:y,minHeightUnit:v,tagName:_,sizeSlug:x}=e,k=(0,ye.getColorClassName)("background-color",d),C=(0,ye.__experimentalGetGradientClass)(o),T=y&&v?`${y}${v}`:y,N=Vt===t,P=so===t,L=!(u||p),R={minHeight:T||void 0},z={backgroundColor:k?void 0:i,background:n||void 0},O=s&&L?kr(s):void 0,V=f?`url(${f})`:void 0,I=kr(s),F=w({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!ka(a)},Xa(a)),W=w("wp-block-cover__image-background",b?`wp-image-${b}`:null,{[`size-${x}`]:x,"has-parallax":u,"is-repeated":p}),j=o||n;return(0,le.jsxs)(_,{...ye.useBlockProps.save({className:F,style:R}),children:[(0,le.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",k,yi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&j&&l!==0,"has-background-gradient":j,[C]:C}),style:z}),!c&&N&&f&&(L?(0,le.jsx)("img",{className:W,alt:g,src:f,style:{objectPosition:O},"data-object-fit":"cover","data-object-position":O}):(0,le.jsx)("div",{role:g?"img":void 0,"aria-label":g||void 0,className:W,style:{backgroundPosition:I,backgroundImage:V}})),P&&f&&(0,le.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:O},"data-object-fit":"cover","data-object-position":O}),(0,le.jsx)("div",{...ye.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},yce={attributes:DT,supports:ET,save({attributes:e}){let{backgroundType:t,gradient:o,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:g,id:b,minHeight:y,minHeightUnit:v,tagName:_}=e,x=(0,ye.getColorClassName)("background-color",d),k=(0,ye.__experimentalGetGradientClass)(o),C=y&&v?`${y}${v}`:y,T=Vt===t,N=so===t,P=!(u||p),L={minHeight:C||void 0},R={backgroundColor:x?void 0:i,background:n||void 0},z=s&&P?kr(s):void 0,O=f?`url(${f})`:void 0,V=kr(s),I=w({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!ka(a)},Xa(a)),F=w("wp-block-cover__image-background",b?`wp-image-${b}`:null,{"has-parallax":u,"is-repeated":p}),W=o||n;return(0,le.jsxs)(_,{...ye.useBlockProps.save({className:I,style:L}),children:[(0,le.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",x,yi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&W&&l!==0,"has-background-gradient":W,[k]:k}),style:R}),!c&&T&&f&&(P?(0,le.jsx)("img",{className:F,alt:g,src:f,style:{objectPosition:z},"data-object-fit":"cover","data-object-position":z}):(0,le.jsx)("div",{role:"img",className:F,style:{backgroundPosition:V,backgroundImage:O}})),N&&f&&(0,le.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:z},"data-object-fit":"cover","data-object-position":z}),(0,le.jsx)("div",{...ye.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},xce={attributes:DT,supports:ET,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:o,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:g,id:b,minHeight:y,minHeightUnit:v,tagName:_}=e,x=(0,ye.getColorClassName)("background-color",d),k=(0,ye.__experimentalGetGradientClass)(o),C=y&&v?`${y}${v}`:y,T=Vt===t,N=so===t,P=!(u||p),L={minHeight:C||void 0},R={backgroundColor:x?void 0:i,background:n||void 0},z=s&&P?kr(s):void 0,O=f?`url(${f})`:void 0,V=kr(s),I=w({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!ka(a)},Xa(a)),F=w("wp-block-cover__image-background",b?`wp-image-${b}`:null,{"has-parallax":u,"is-repeated":p}),W=o||n;return(0,le.jsxs)(_,{...ye.useBlockProps.save({className:I,style:L}),children:[(0,le.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",x,yi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&W&&l!==0,"has-background-gradient":W,[k]:k}),style:R}),!c&&T&&f&&(P?(0,le.jsx)("img",{className:F,alt:g,src:f,style:{objectPosition:z},"data-object-fit":"cover","data-object-position":z}):(0,le.jsx)("div",{role:"img",className:F,style:{backgroundPosition:V,backgroundImage:O}})),N&&f&&(0,le.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:z},"data-object-fit":"cover","data-object-position":z}),(0,le.jsx)("div",{...ye.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},_ce={attributes:M0,supports:Od,save({attributes:e}){let{backgroundType:t,gradient:o,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:g,id:b,minHeight:y,minHeightUnit:v}=e,_=(0,ye.getColorClassName)("background-color",d),x=(0,ye.__experimentalGetGradientClass)(o),k=y&&v?`${y}${v}`:y,C=Vt===t,T=so===t,N=!(u||p),P={minHeight:k||void 0},L={backgroundColor:_?void 0:i,background:n||void 0},R=s&&N?kr(s):void 0,z=f?`url(${f})`:void 0,O=kr(s),V=w({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!ka(a)},Xa(a)),I=w("wp-block-cover__image-background",b?`wp-image-${b}`:null,{"has-parallax":u,"is-repeated":p}),F=o||n;return(0,le.jsxs)("div",{...ye.useBlockProps.save({className:V,style:P}),children:[(0,le.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",_,yi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&F&&l!==0,"has-background-gradient":F,[x]:x}),style:L}),!c&&C&&f&&(N?(0,le.jsx)("img",{className:I,alt:g,src:f,style:{objectPosition:R},"data-object-fit":"cover","data-object-position":R}):(0,le.jsx)("div",{role:"img",className:I,style:{backgroundPosition:O,backgroundImage:z}})),T&&f&&(0,le.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:R},"data-object-fit":"cover","data-object-position":R}),(0,le.jsx)("div",{...ye.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:au},kce={attributes:M0,supports:Od,save({attributes:e}){let{backgroundType:t,gradient:o,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:g,id:b,minHeight:y,minHeightUnit:v}=e,_=(0,ye.getColorClassName)("background-color",d),x=(0,ye.__experimentalGetGradientClass)(o),k=y&&v?`${y}${v}`:y,C=Vt===t,T=so===t,N=!(u||p),P={...C&&!N&&!c?Wl(f):{},minHeight:k||void 0},L={backgroundColor:_?void 0:i,background:n||void 0},R=s&&N?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,z=w({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!ka(a)},Xa(a)),O=o||n;return(0,le.jsxs)("div",{...ye.useBlockProps.save({className:z,style:P}),children:[(0,le.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",_,yi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&O&&l!==0,"has-background-gradient":O,[x]:x}),style:L}),!c&&C&&N&&f&&(0,le.jsx)("img",{className:w("wp-block-cover__image-background",b?`wp-image-${b}`:null),alt:g,src:f,style:{objectPosition:R},"data-object-fit":"cover","data-object-position":R}),T&&f&&(0,le.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:R},"data-object-fit":"cover","data-object-position":R}),(0,le.jsx)("div",{...ye.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:au},wce={attributes:M0,supports:Od,save({attributes:e}){let{backgroundType:t,gradient:o,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isDark:u,isRepeated:m,overlayColor:p,url:d,alt:f,id:g,minHeight:b,minHeightUnit:y}=e,v=(0,ye.getColorClassName)("background-color",p),_=(0,ye.__experimentalGetGradientClass)(o),x=y?`${b}${y}`:b,k=Vt===t,C=so===t,T=!(c||m),N={...k&&!T?Wl(d):{},minHeight:x||void 0},P={backgroundColor:v?void 0:i,background:n||void 0},L=s&&T?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,R=w({"is-light":!u,"has-parallax":c,"is-repeated":m,"has-custom-content-position":!ka(a)},Xa(a)),z=o||n;return(0,le.jsxs)("div",{...ye.useBlockProps.save({className:R,style:N}),children:[(0,le.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",v,yi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":d&&z&&l!==0,"has-background-gradient":z,[_]:_}),style:P}),k&&T&&d&&(0,le.jsx)("img",{className:w("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:f,src:d,style:{objectPosition:L},"data-object-fit":"cover","data-object-position":L}),C&&d&&(0,le.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:L},"data-object-fit":"cover","data-object-position":L}),(0,le.jsx)("div",{...ye.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:au},Cce={attributes:M0,supports:Od,save({attributes:e}){let{backgroundType:t,gradient:o,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isDark:u,isRepeated:m,overlayColor:p,url:d,alt:f,id:g,minHeight:b,minHeightUnit:y}=e,v=(0,ye.getColorClassName)("background-color",p),_=(0,ye.__experimentalGetGradientClass)(o),x=y?`${b}${y}`:b,k=Vt===t,C=so===t,T=!(c||m),N={...k&&!T?Wl(d):{},minHeight:x||void 0},P={backgroundColor:v?void 0:i,background:n||void 0},L=s&&T?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,R=w({"is-light":!u,"has-parallax":c,"is-repeated":m,"has-custom-content-position":!ka(a)},Xa(a));return(0,le.jsxs)("div",{...ye.useBlockProps.save({className:R,style:N}),children:[(0,le.jsx)("span",{"aria-hidden":"true",className:w(v,yi(l),"wp-block-cover__gradient-background",_,{"has-background-dim":l!==void 0,"has-background-gradient":o||n,[_]:!d&&_}),style:P}),k&&T&&d&&(0,le.jsx)("img",{className:w("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:f,src:d,style:{objectPosition:L},"data-object-fit":"cover","data-object-position":L}),C&&d&&(0,le.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:L},"data-object-fit":"cover","data-object-position":L}),(0,le.jsx)("div",{...ye.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:au},Sce={attributes:{...Xm,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:Od,save({attributes:e}){let{backgroundType:t,gradient:o,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isRepeated:u,overlayColor:m,url:p,alt:d,id:f,minHeight:g,minHeightUnit:b}=e,y=(0,ye.getColorClassName)("background-color",m),v=(0,ye.__experimentalGetGradientClass)(o),_=b?`${g}${b}`:g,x=Vt===t,k=so===t,C=!(c||u),T={...x&&!C?Wl(p):{},backgroundColor:y?void 0:i,background:n&&!p?n:void 0,minHeight:_||void 0},N=s&&C?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,P=w(Ym(l),y,{"has-background-dim":l!==0,"has-parallax":c,"is-repeated":u,"has-background-gradient":o||n,[v]:!p&&v,"has-custom-content-position":!ka(a)},Xa(a));return(0,le.jsxs)("div",{...ye.useBlockProps.save({className:P,style:T}),children:[p&&(o||n)&&l!==0&&(0,le.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__gradient-background",v),style:n?{background:n}:void 0}),x&&C&&p&&(0,le.jsx)("img",{className:w("wp-block-cover__image-background",f?`wp-image-${f}`:null),alt:d,src:p,style:{objectPosition:N},"data-object-fit":"cover","data-object-position":N}),k&&p&&(0,le.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:{objectPosition:N},"data-object-fit":"cover","data-object-position":N}),(0,le.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,le.jsx)(ye.InnerBlocks.Content,{})})]})},migrate:(0,L0.compose)(Jx,au)},Tce={attributes:{...Xm,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:o,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isRepeated:u,overlayColor:m,url:p,minHeight:d,minHeightUnit:f}=e,g=(0,ye.getColorClassName)("background-color",m),b=(0,ye.__experimentalGetGradientClass)(o),y=f?`${d}${f}`:d,v=Vt===t,_=so===t,x=v?Wl(p):{},k={};g||(x.backgroundColor=i),n&&!p&&(x.background=n),x.minHeight=y||void 0;let C;s&&(C=`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`,v&&!c&&(x.backgroundPosition=C),_&&(k.objectPosition=C));let T=w(Ym(l),g,{"has-background-dim":l!==0,"has-parallax":c,"is-repeated":u,"has-background-gradient":o||n,[b]:!p&&b,"has-custom-content-position":!ka(a)},Xa(a));return(0,le.jsxs)("div",{...ye.useBlockProps.save({className:T,style:x}),children:[p&&(o||n)&&l!==0&&(0,le.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__gradient-background",b),style:n?{background:n}:void 0}),_&&p&&(0,le.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:k}),(0,le.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,le.jsx)(ye.InnerBlocks.Content,{})})]})},migrate:(0,L0.compose)(Jx,au)},Bce={attributes:{...Xm,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,gradient:o,customGradient:a,customOverlayColor:n,dimRatio:i,focalPoint:l,hasParallax:s,overlayColor:c,url:u,minHeight:m}=e,p=(0,ye.getColorClassName)("background-color",c),d=(0,ye.__experimentalGetGradientClass)(o),f=t===Vt?Wl(u):{};p||(f.backgroundColor=n),l&&!s&&(f.backgroundPosition=`${Math.round(l.x*100)}% ${Math.round(l.y*100)}%`),a&&!u&&(f.background=a),f.minHeight=m||void 0;let g=w(Ym(i),p,{"has-background-dim":i!==0,"has-parallax":s,"has-background-gradient":a,[d]:!u&&d});return(0,le.jsxs)("div",{className:g,style:f,children:[u&&(o||a)&&i!==0&&(0,le.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__gradient-background",d),style:a?{background:a}:void 0}),so===t&&u&&(0,le.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),(0,le.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,le.jsx)(ye.InnerBlocks.Content,{})})]})},migrate:(0,L0.compose)(Jx,au)},Pce={attributes:{...Xm,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,gradient:o,customGradient:a,customOverlayColor:n,dimRatio:i,focalPoint:l,hasParallax:s,overlayColor:c,url:u,minHeight:m}=e,p=(0,ye.getColorClassName)("background-color",c),d=(0,ye.__experimentalGetGradientClass)(o),f=t===Vt?Wl(u):{};p||(f.backgroundColor=n),l&&!s&&(f.backgroundPosition=`${l.x*100}% ${l.y*100}%`),a&&!u&&(f.background=a),f.minHeight=m||void 0;let g=w(Ym(i),p,{"has-background-dim":i!==0,"has-parallax":s,"has-background-gradient":a,[d]:!u&&d});return(0,le.jsxs)("div",{className:g,style:f,children:[u&&(o||a)&&i!==0&&(0,le.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__gradient-background",d),style:a?{background:a}:void 0}),so===t&&u&&(0,le.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),(0,le.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,le.jsx)(ye.InnerBlocks.Content,{})})]})},migrate:(0,L0.compose)(Jx,au)},Nce={attributes:{...Xm,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,contentAlign:o,customOverlayColor:a,dimRatio:n,focalPoint:i,hasParallax:l,overlayColor:s,title:c,url:u}=e,m=(0,ye.getColorClassName)("background-color",s),p=t===Vt?Wl(u):{};m||(p.backgroundColor=a),i&&!l&&(p.backgroundPosition=`${i.x*100}% ${i.y*100}%`);let d=w(Ym(n),m,{"has-background-dim":n!==0,"has-parallax":l,[`has-${o}-content`]:o!=="center"});return(0,le.jsxs)("div",{className:d,style:p,children:[so===t&&u&&(0,le.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),!ye.RichText.isEmpty(c)&&(0,le.jsx)(ye.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:o,contentAlign:a,...n}=t;return[n,[(0,Yx.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,Xx.__)("Write title\u2026")})]]}},Ice={attributes:{...Xm,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:o,hasParallax:a,dimRatio:n,align:i,contentAlign:l,overlayColor:s,customOverlayColor:c}=e,u=(0,ye.getColorClassName)("background-color",s),m=Wl(t);u||(m.backgroundColor=c);let p=w("wp-block-cover-image",Ym(n),u,{"has-background-dim":n!==0,"has-parallax":a,[`has-${l}-content`]:l!=="center"},i?`align${i}`:null);return(0,le.jsx)("div",{className:p,style:m,children:!ye.RichText.isEmpty(o)&&(0,le.jsx)(ye.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:o})})},migrate(e){let t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:o,contentAlign:a,align:n,...i}=t;return[i,[(0,Yx.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,Xx.__)("Write title\u2026")})]]}},Dce={attributes:{...Xm,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:o,hasParallax:a,dimRatio:n,align:i}=e,l=Wl(t),s=w("wp-block-cover-image",Ym(n),{"has-background-dim":n!==0,"has-parallax":a},i?`align${i}`:null);return(0,le.jsx)("section",{className:s,style:l,children:(0,le.jsx)(ye.RichText.Content,{tagName:"h2",value:o})})},migrate(e){let t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:o,contentAlign:a,align:n,...i}=t;return[i,[(0,Yx.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,Xx.__)("Write title\u2026")})]]}},lV=[bce,yce,xce,_ce,kce,wce,Cce,Sce,Tce,Bce,Pce,Nce,Ice,Dce];var F0=r(Y()),lu=r(H()),H0=r(M()),c_=r(we()),lr=r(S()),$T=r(B()),iu=r(A()),QV=r(No()),YV=r(wo());var dV=r(H()),It=r(M()),fV=r(we()),wr=r(S()),$o=r(B()),LT=r(A()),gV=r(Y());var Ud="full";var Gd=r(S()),cV=r(wo()),wa=r(M()),uV=r(No()),zn=r(B()),e_=r(H()),mV=r(we()),t_=r(A()),Zr=r(h()),sV=["image"];function pV({poster:e,onChange:t}){let o=(0,e_.useRef)(),[a,n]=(0,e_.useState)(!1),i=(0,mV.useInstanceId)(pV,"block-library-poster-image-description"),{getSettings:l}=(0,t_.useSelect)(Gd.store),{createErrorNotice:s}=(0,t_.useDispatch)(cV.store),c=m=>{l().mediaUpload({allowedTypes:sV,filesList:m,onFileChange:([p])=>{if((0,uV.isBlobURL)(p?.url)){n(!0);return}p&&t(p),n(!1)},onError:p=>{s(p,{id:"poster-image-upload-notice",type:"snackbar"}),n(!1)},multiple:!1})},u=()=>!e&&a?(0,Zr.jsx)(wa.Spinner,{}):e?(0,zn.__)("Replace"):(0,zn.__)("Set poster image");return(0,Zr.jsx)(Gd.MediaUploadCheck,{children:(0,Zr.jsxs)(wa.__experimentalToolsPanelItem,{label:(0,zn.__)("Poster image"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>t(void 0),children:[(0,Zr.jsx)(wa.BaseControl.VisualLabel,{children:(0,zn.__)("Poster image")}),(0,Zr.jsx)(Gd.MediaUpload,{title:(0,zn.__)("Select poster image"),onSelect:t,allowedTypes:sV,render:({open:m})=>(0,Zr.jsxs)("div",{className:"block-library-poster-image__container",children:[e&&(0,Zr.jsxs)(wa.Button,{__next40pxDefaultSize:!0,onClick:m,"aria-haspopup":"dialog","aria-label":(0,zn.__)("Edit or replace the poster image."),className:"block-library-poster-image__preview",disabled:a,accessibleWhenDisabled:!0,children:[(0,Zr.jsx)("img",{src:e,alt:(0,zn.__)("Poster image preview"),className:"block-library-poster-image__preview-image"}),a&&(0,Zr.jsx)(wa.Spinner,{})]}),(0,Zr.jsxs)(wa.__experimentalHStack,{className:w("block-library-poster-image__actions",{"block-library-poster-image__actions-select":!e}),children:[(0,Zr.jsx)(wa.Button,{__next40pxDefaultSize:!0,onClick:m,ref:o,className:"block-library-poster-image__action","aria-describedby":i,"aria-haspopup":"dialog",variant:e?void 0:"secondary",disabled:a,accessibleWhenDisabled:!0,children:u()}),(0,Zr.jsx)("p",{id:i,hidden:!0,children:e?(0,zn.sprintf)((0,zn.__)("The current poster image url is %s."),e):(0,zn.__)("There is no poster image currently selected.")}),!!e&&(0,Zr.jsx)(wa.Button,{__next40pxDefaultSize:!0,onClick:()=>{t(void 0),o.current.focus()},className:"block-library-poster-image__action",disabled:a,accessibleWhenDisabled:!0,children:(0,zn.__)("Remove")})]}),(0,Zr.jsx)(wa.DropZone,{onFilesDrop:c})]})})]})})}var o_=pV;var nt=r(h()),{cleanEmptyObject:Ece,ResolutionTool:Lce,HTMLElementControl:Mce}=Q(wr.privateApis);function Rce({onChange:e,onUnitChange:t,unit:o="px",value:a=""}){let i=`block-cover-height-input-${(0,fV.useInstanceId)(It.__experimentalUnitControl)}`,l=o==="px",[s]=(0,wr.useSettings)("spacing.units"),c=(0,It.__experimentalUseCustomUnits)({availableUnits:s||["px","em","rem","vw","vh"],defaultValues:{px:430,"%":20,em:20,rem:20,vw:20,vh:50}}),u=d=>{let f=d!==""?parseFloat(d):void 0;isNaN(f)&&f!==void 0||e(f)},m=(0,dV.useMemo)(()=>{let[d]=(0,It.__experimentalParseQuantityAndUnitFromRawValue)(a);return[d,o].join("")},[o,a]),p=l?nV:0;return(0,nt.jsx)(It.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,$o.__)("Minimum height"),id:i,isResetValueOnUnitChange:!0,min:p,onChange:u,onUnitChange:t,units:c,value:m})}function hV({attributes:e,setAttributes:t,clientId:o,setOverlayColor:a,coverRef:n,currentSettings:i,updateDimRatio:l,featuredImage:s}){let{useFeaturedImage:c,id:u,dimRatio:m,focalPoint:p,hasParallax:d,isRepeated:f,minHeight:g,minHeightUnit:b,alt:y,tagName:v,poster:_}=e,{isVideoBackground:x,isImageBackground:k,mediaElement:C,url:T,overlayColor:N}=i,P=e.sizeSlug||Ud,{gradientValue:L,setGradient:R}=(0,wr.__experimentalUseGradient)(),{getSettings:z}=(0,LT.useSelect)(wr.store),O=z()?.imageSizes,V=(0,LT.useSelect)(ee=>u&&k?ee(gV.store).getEntityRecord("postType","attachment",u,{context:"view"}):null,[u,k]),I=c?s:V;function F(ee){let ne=I?.media_details?.sizes?.[ee]?.source_url;if(!ne)return null;t({url:ne,sizeSlug:ee})}let W=O?.filter(({slug:ee})=>I?.media_details?.sizes?.[ee]?.source_url)?.map(({name:ee,slug:ne})=>({value:ne,label:ee})),j=()=>{t({hasParallax:!d,...d?{}:{focalPoint:void 0}})},K=()=>{t({isRepeated:!f})},Z=x||k&&(!d||f),te=ee=>{let[ne,re]=C.current?[C.current.style,"objectPosition"]:[n.current.style,"backgroundPosition"];ne[re]=kr(ee)},X=(0,wr.__experimentalUseMultipleOriginColorsAndGradients)(),J=G();return(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)(wr.InspectorControls,{children:(!!T||c)&&(0,nt.jsxs)(It.__experimentalToolsPanel,{label:(0,$o.__)("Settings"),resetAll:()=>{t({hasParallax:!1,focalPoint:void 0,isRepeated:!1,alt:"",poster:void 0}),F(Ud)},dropdownMenuProps:J,children:[k&&(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)(It.__experimentalToolsPanelItem,{label:(0,$o.__)("Fixed background"),isShownByDefault:!0,hasValue:()=>!!d,onDeselect:()=>t({hasParallax:!1,focalPoint:void 0}),children:(0,nt.jsx)(It.ToggleControl,{label:(0,$o.__)("Fixed background"),checked:!!d,onChange:j})}),(0,nt.jsx)(It.__experimentalToolsPanelItem,{label:(0,$o.__)("Repeated background"),isShownByDefault:!0,hasValue:()=>f,onDeselect:()=>t({isRepeated:!1}),children:(0,nt.jsx)(It.ToggleControl,{label:(0,$o.__)("Repeated background"),checked:f,onChange:K})})]}),Z&&(0,nt.jsx)(It.__experimentalToolsPanelItem,{label:(0,$o.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!p,onDeselect:()=>t({focalPoint:void 0}),children:(0,nt.jsx)(It.FocalPointPicker,{label:(0,$o.__)("Focal point"),url:T,value:p,onDragStart:te,onDrag:te,onChange:ee=>t({focalPoint:ee})})}),x&&(0,nt.jsx)(o_,{poster:_,onChange:ee=>t({poster:ee?.url})}),!c&&T&&!x&&(0,nt.jsx)(It.__experimentalToolsPanelItem,{label:(0,$o.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!y,onDeselect:()=>t({alt:""}),children:(0,nt.jsx)(It.TextareaControl,{label:(0,$o.__)("Alternative text"),value:y,onChange:ee=>t({alt:ee}),help:(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)(It.ExternalLink,{href:(0,$o.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,$o.__)("Describe the purpose of the image.")}),(0,nt.jsx)("br",{}),(0,$o.__)("Leave empty if decorative.")]})})}),!!W?.length&&(0,nt.jsx)(Lce,{value:P,onChange:F,options:W,defaultValue:Ud})]})}),X.hasColorsOrGradients&&(0,nt.jsxs)(wr.InspectorControls,{group:"color",children:[(0,nt.jsx)(wr.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:N.color,gradientValue:L,label:(0,$o.__)("Overlay"),onColorChange:a,onGradientChange:R,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0}),clearable:!0}],panelId:o,...X}),(0,nt.jsx)(It.__experimentalToolsPanelItem,{hasValue:()=>m===void 0?!1:m!==(T?50:100),label:(0,$o.__)("Overlay opacity"),onDeselect:()=>l(T?50:100),resetAllFilter:()=>({dimRatio:T?50:100}),isShownByDefault:!0,panelId:o,children:(0,nt.jsx)(It.RangeControl,{label:(0,$o.__)("Overlay opacity"),value:m,onChange:ee=>l(ee),min:0,max:100,step:10,required:!0,__next40pxDefaultSize:!0})})]}),(0,nt.jsx)(wr.InspectorControls,{group:"dimensions",children:(0,nt.jsx)(It.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!g,label:(0,$o.__)("Minimum height"),onDeselect:()=>t({minHeight:void 0,minHeightUnit:void 0}),resetAllFilter:()=>({minHeight:void 0,minHeightUnit:void 0}),isShownByDefault:!0,panelId:o,children:(0,nt.jsx)(Rce,{value:e?.style?.dimensions?.aspectRatio?"":g,unit:b,onChange:ee=>t({minHeight:ee,style:Ece({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})}),onUnitChange:ee=>t({minHeightUnit:ee})})})}),(0,nt.jsx)(wr.InspectorControls,{group:"advanced",children:(0,nt.jsx)(Mce,{tagName:v,onChange:ee=>t({tagName:ee}),clientId:o,options:[{label:(0,$o.__)("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 r_=r(H()),Xi=r(S()),R0=r(B()),kV=r(M());var MT=r(H()),nu=r(M()),Jm=r(B());var vV=r(U());var zce="core/embed",Ace=["youtube","vimeo","videopress","animoto","tiktok","wordpress-tv"];function bV(e){return e?Vce(e)!==null:!1}function Vce(e){let t=(0,vV.getBlockVariations)(zce);if(!t)return null;let o=t.find(({patterns:a})=>DS(e,a));return!o||!Ace.includes(o.name)?null:o}function yV(e){if(!e)return null;let t=e.match(/src=["']([^"']+)["']/);return t?t[1]:null}function Fce(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 xV(e){if(!e)return e;try{let t=new URL(e);switch(Fce(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 a=t.pathname.split("/").pop();a&&t.searchParams.set("playlist",a);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 $d=r(h());function _V({onSubmit:e,onClose:t}){let[o,a]=(0,MT.useState)(""),[n,i]=(0,MT.useState)("");return(0,$d.jsx)(nu.__experimentalConfirmDialog,{isOpen:!0,onConfirm:()=>{if(!o){i((0,Jm.__)("Please enter a URL."));return}if(!bV(o)){i((0,Jm.__)("This URL is not supported. Please enter a valid video link from a supported provider."));return}e(o),t()},onCancel:t,confirmButtonText:(0,Jm.__)("Add video"),size:"medium",children:(0,$d.jsxs)(nu.__experimentalVStack,{spacing:4,children:[n&&(0,$d.jsx)(nu.Notice,{status:"error",isDismissible:!1,children:n}),(0,$d.jsx)(nu.TextControl,{__next40pxDefaultSize:!0,label:(0,Jm.__)("Video URL"),value:o,onChange:s=>{a(s),i("")},placeholder:(0,Jm.__)("Enter YouTube, Vimeo, or other video URL"),help:(0,Jm.__)("Add a background video to the cover block that will autoplay in a loop.")})]})})}var xi=r(h()),{cleanEmptyObject:Hce}=Q(Xi.privateApis);function wV({attributes:e,setAttributes:t,onSelectMedia:o,currentSettings:a,toggleUseFeaturedImage:n,onClearMedia:i,onSelectEmbedUrl:l,blockEditingMode:s}){let{contentPosition:c,id:u,useFeaturedImage:m,minHeight:p,minHeightUnit:d}=e,{hasInnerBlocks:f,url:g}=a,[b,y]=(0,r_.useState)(p),[v,_]=(0,r_.useState)(d),[x,k]=(0,r_.useState)(!1),C=d==="vh"&&p===100&&!e?.style?.dimensions?.aspectRatio,T=s==="contentOnly",N=()=>C?t(v==="vh"&&b===100?{minHeight:void 0,minHeightUnit:void 0}:{minHeight:b,minHeightUnit:v}):(y(p),_(d),t({minHeight:100,minHeightUnit:"vh",style:Hce({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})}));return(0,xi.jsxs)(xi.Fragment,{children:[!T&&(0,xi.jsxs)(Xi.BlockControls,{group:"block",children:[(0,xi.jsx)(Xi.__experimentalBlockAlignmentMatrixControl,{label:(0,R0.__)("Change content position"),value:c,onChange:P=>t({contentPosition:P}),isDisabled:!f}),(0,xi.jsx)(Xi.__experimentalBlockFullHeightAligmentControl,{isActive:C,onToggle:N,isDisabled:!f})]}),(0,xi.jsx)(Xi.BlockControls,{group:"other",children:(0,xi.jsx)(Xi.MediaReplaceFlow,{mediaId:u,mediaURL:g,allowedTypes:Qx,onSelect:o,onToggleFeaturedImage:n,useFeaturedImage:m,name:g?(0,R0.__)("Replace"):(0,R0.__)("Add media"),onReset:i,children:({onClose:P})=>(0,xi.jsx)(kV.MenuItem,{icon:In,onClick:()=>{k(!0),P()},children:(0,R0.__)("Embed video from URL")})})}),x&&(0,xi.jsx)(_V,{onSubmit:P=>{l(P)},onClose:()=>k(!1)})]})}var a_=r(S()),CV=r(B());var RT=r(h());function zT({disableMediaButtons:e=!1,children:t,onSelectMedia:o,onError:a,style:n,toggleUseFeaturedImage:i}){return(0,RT.jsx)(a_.MediaPlaceholder,{icon:(0,RT.jsx)(a_.BlockIcon,{icon:xm}),labels:{title:(0,CV.__)("Cover")},onSelect:o,allowedTypes:Qx,disableMediaButtons:e,onToggleFeaturedImage:i,onError:a,style:n,children:t})}var SV=r(H()),TV=r(S());var BV=r(h()),jce={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},{ResizableBoxPopover:Oce}=Q(TV.privateApis);function AT({className:e,height:t,minHeight:o,onResize:a,onResizeStart:n,onResizeStop:i,showHandle:l,size:s,width:c,...u}){let[m,p]=(0,SV.useState)(!1),d={className:w(e,{"is-resizing":m}),enable:jce,onResizeStart:(f,g,b)=>{n(b.clientHeight),a(b.clientHeight)},onResize:(f,g,b)=>{a(b.clientHeight),m||p(!0)},onResizeStop:(f,g,b)=>{i(b.clientHeight),p(!1)},showHandle:l,size:s,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:m}};return(0,BV.jsx)(Oce,{className:"block-library-cover__resizable-box-popover",resizableBoxProps:d,...u})}var Uce={grad:.9,turn:360,rad:360/(2*Math.PI)},Xs=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},ir=function(e,t,o){return t===void 0&&(t=0),o===void 0&&(o=Math.pow(10,t)),Math.round(o*e)/o+0},_i=function(e,t,o){return t===void 0&&(t=0),o===void 0&&(o=1),e>o?o:e>t?e:t},RV=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},PV=function(e){return{r:_i(e.r,0,255),g:_i(e.g,0,255),b:_i(e.b,0,255),a:_i(e.a)}},VT=function(e){return{r:ir(e.r),g:ir(e.g),b:ir(e.b),a:ir(e.a,3)}},Gce=/^#([0-9a-f]{3,8})$/i,n_=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},zV=function(e){var t=e.r,o=e.g,a=e.b,n=e.a,i=Math.max(t,o,a),l=i-Math.min(t,o,a),s=l?i===t?(o-a)/l:i===o?2+(a-t)/l:4+(t-o)/l:0;return{h:60*(s<0?s+6:s),s:i?l/i*100:0,v:i/255*100,a:n}},AV=function(e){var t=e.h,o=e.s,a=e.v,n=e.a;t=t/360*6,o/=100,a/=100;var i=Math.floor(t),l=a*(1-o),s=a*(1-(t-i)*o),c=a*(1-(1-t+i)*o),u=i%6;return{r:255*[a,s,l,l,c,a][u],g:255*[c,a,a,s,l,l][u],b:255*[l,l,c,a,a,s][u],a:n}},NV=function(e){return{h:RV(e.h),s:_i(e.s,0,100),l:_i(e.l,0,100),a:_i(e.a)}},IV=function(e){return{h:ir(e.h),s:ir(e.s),l:ir(e.l),a:ir(e.a,3)}},DV=function(e){return AV((o=(t=e).s,{h:t.h,s:(o*=((a=t.l)<50?a:100-a)/100)>0?2*o/(a+o)*100:0,v:a+o,a:t.a}));var t,o,a},z0=function(e){return{h:(t=zV(e)).h,s:(n=(200-(o=t.s))*(a=t.v)/100)>0&&n<200?o*a/100/(n<=100?n:200-n)*100:0,l:n/2,a:t.a};var t,o,a,n},$ce=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Wce=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,qce=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Zce=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,jT={string:[[function(e){var t=Gce.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?ir(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?ir(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=qce.exec(e)||Zce.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:PV({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=$ce.exec(e)||Wce.exec(e);if(!t)return null;var o,a,n=NV({h:(o=t[1],a=t[2],a===void 0&&(a="deg"),Number(o)*(Uce[a]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return DV(n)},"hsl"]],object:[[function(e){var t=e.r,o=e.g,a=e.b,n=e.a,i=n===void 0?1:n;return Xs(t)&&Xs(o)&&Xs(a)?PV({r:Number(t),g:Number(o),b:Number(a),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,o=e.s,a=e.l,n=e.a,i=n===void 0?1:n;if(!Xs(t)||!Xs(o)||!Xs(a))return null;var l=NV({h:Number(t),s:Number(o),l:Number(a),a:Number(i)});return DV(l)},"hsl"],[function(e){var t=e.h,o=e.s,a=e.v,n=e.a,i=n===void 0?1:n;if(!Xs(t)||!Xs(o)||!Xs(a))return null;var l=(function(s){return{h:RV(s.h),s:_i(s.s,0,100),v:_i(s.v,0,100),a:_i(s.a)}})({h:Number(t),s:Number(o),v:Number(a),a:Number(i)});return AV(l)},"hsv"]]},EV=function(e,t){for(var o=0;o<t.length;o++){var a=t[o][0](e);if(a)return[a,t[o][1]]}return[null,void 0]},Kce=function(e){return typeof e=="string"?EV(e.trim(),jT.string):typeof e=="object"&&e!==null?EV(e,jT.object):[null,void 0]};var FT=function(e,t){var o=z0(e);return{h:o.h,s:_i(o.s+100*t,0,100),l:o.l,a:o.a}},HT=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},LV=function(e,t){var o=z0(e);return{h:o.h,s:o.s,l:_i(o.l+100*t,0,100),a:o.a}},OT=(function(){function e(t){this.parsed=Kce(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 ir(HT(this.rgba),2)},e.prototype.isDark=function(){return HT(this.rgba)<.5},e.prototype.isLight=function(){return HT(this.rgba)>=.5},e.prototype.toHex=function(){return t=VT(this.rgba),o=t.r,a=t.g,n=t.b,l=(i=t.a)<1?n_(ir(255*i)):"","#"+n_(o)+n_(a)+n_(n)+l;var t,o,a,n,i,l},e.prototype.toRgb=function(){return VT(this.rgba)},e.prototype.toRgbString=function(){return t=VT(this.rgba),o=t.r,a=t.g,n=t.b,(i=t.a)<1?"rgba("+o+", "+a+", "+n+", "+i+")":"rgb("+o+", "+a+", "+n+")";var t,o,a,n,i},e.prototype.toHsl=function(){return IV(z0(this.rgba))},e.prototype.toHslString=function(){return t=IV(z0(this.rgba)),o=t.h,a=t.s,n=t.l,(i=t.a)<1?"hsla("+o+", "+a+"%, "+n+"%, "+i+")":"hsl("+o+", "+a+"%, "+n+"%)";var t,o,a,n,i},e.prototype.toHsv=function(){return t=zV(this.rgba),{h:ir(t.h),s:ir(t.s),v:ir(t.v),a:ir(t.a,3)};var t},e.prototype.invert=function(){return Ca({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),Ca(FT(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),Ca(FT(this.rgba,-t))},e.prototype.grayscale=function(){return Ca(FT(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),Ca(LV(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),Ca(LV(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?Ca({r:(o=this.rgba).r,g:o.g,b:o.b,a:t}):ir(this.rgba.a,3);var o},e.prototype.hue=function(t){var o=z0(this.rgba);return typeof t=="number"?Ca({h:t,s:o.s,l:o.l,a:o.a}):ir(o.h)},e.prototype.isEqual=function(t){return this.toHex()===Ca(t).toHex()},e})(),Ca=function(e){return e instanceof OT?e:new OT(e)},MV=[],VV=function(e){e.forEach(function(t){MV.indexOf(t)<0&&(t(OT,jT),MV.push(t))})};function FV(e,t){var o={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},a={};for(var n in o)a[o[n]]=n;var i={};e.prototype.toName=function(l){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var s,c,u=a[this.toHex()];if(u)return u;if(l?.closest){var m=this.toRgb(),p=1/0,d="black";if(!i.length)for(var f in o)i[f]=new e(o[f]).toRgb();for(var g in o){var b=(s=m,c=i[g],Math.pow(s.r-c.r,2)+Math.pow(s.g-c.g,2)+Math.pow(s.b-c.b,2));b<p&&(p=b,d=g)}return d}},t.string.push([function(l){var s=l.toLowerCase(),c=s==="transparent"?"#0000":o[s];return c?new e(c).toRgb():null},"name"])}function Qce(e){var t=e.toString(16);return t.length===1?"0"+t:t}function HV(e){return"#"+e.map(Qce).join("")}function Yce(e){var t=(e[0]*299+e[1]*587+e[2]*114)/1e3;return t<128}function Xce(e){return e?Jce(e)?e:[e]:[]}function Jce(e){return Array.isArray(e[0])}function GT(e,t,o){for(var a=0;a<o.length;a++)if(eue(e,t,o[a]))return!0;return!1}function eue(e,t,o){switch(o.length){case 3:if(tue(e,t,o))return!0;break;case 4:if(oue(e,t,o))return!0;break;case 5:if(rue(e,t,o))return!0;break;default:return!1}}function tue(e,t,o){return e[t+3]!==255||e[t]===o[0]&&e[t+1]===o[1]&&e[t+2]===o[2]}function oue(e,t,o){return e[t+3]&&o[3]?e[t]===o[0]&&e[t+1]===o[1]&&e[t+2]===o[2]&&e[t+3]===o[3]:e[t+3]===o[3]}function i_(e,t,o){return e>=t-o&&e<=t+o}function rue(e,t,o){var a=o[0],n=o[1],i=o[2],l=o[3],s=o[4],c=e[t+3],u=i_(c,l,s);return l?!!(!c&&u||i_(e[t],a,s)&&i_(e[t+1],n,s)&&i_(e[t+2],i,s)&&u):u}function aue(e,t,o){for(var a={},n=24,i=o.ignoredColor,l=o.step,s=[0,0,0,0,0],c=0;c<t;c+=l){var u=e[c],m=e[c+1],p=e[c+2],d=e[c+3];if(!(i&>(e,c,i))){var f=Math.round(u/n)+","+Math.round(m/n)+","+Math.round(p/n);a[f]?a[f]=[a[f][0]+u*d,a[f][1]+m*d,a[f][2]+p*d,a[f][3]+d,a[f][4]+1]:a[f]=[u*d,m*d,p*d,d,1],s[4]<a[f][4]&&(s=a[f])}}var g=s[0],b=s[1],y=s[2],v=s[3],_=s[4];return v?[Math.round(g/v),Math.round(b/v),Math.round(y/v),Math.round(v/_)]:o.defaultColor}function nue(e,t,o){for(var a=0,n=0,i=0,l=0,s=0,c=o.ignoredColor,u=o.step,m=0;m<t;m+=u){var p=e[m+3],d=e[m]*p,f=e[m+1]*p,g=e[m+2]*p;c&>(e,m,c)||(a+=d,n+=f,i+=g,l+=p,s++)}return l?[Math.round(a/l),Math.round(n/l),Math.round(i/l),Math.round(l/s)]:o.defaultColor}function iue(e,t,o){for(var a=0,n=0,i=0,l=0,s=0,c=o.ignoredColor,u=o.step,m=0;m<t;m+=u){var p=e[m],d=e[m+1],f=e[m+2],g=e[m+3];c&>(e,m,c)||(a+=p*p*g,n+=d*d*g,i+=f*f*g,l+=g,s++)}return l?[Math.round(Math.sqrt(a/l)),Math.round(Math.sqrt(n/l)),Math.round(Math.sqrt(i/l)),Math.round(l/s)]:o.defaultColor}function jV(e){return V0(e,"defaultColor",[0,0,0,0])}function V0(e,t,o){return e[t]===void 0?o:e[t]}var OV=10,UT=100;function lue(e){return e.search(/\.svg(\?|$)/i)!==-1}function sue(e){if(GV(e)){var t=e.naturalWidth,o=e.naturalHeight;return!e.naturalWidth&&lue(e.src)&&(t=o=UT),{width:t,height:o}}return uue(e)?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}function UV(e){return mue(e)?"canvas":cue(e)?"offscreencanvas":pue(e)?"imagebitmap":e.src}function GV(e){return typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement}function cue(e){return typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas}function uue(e){return typeof HTMLVideoElement<"u"&&e instanceof HTMLVideoElement}function mue(e){return typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement}function pue(e){return typeof ImageBitmap<"u"&&e instanceof ImageBitmap}function due(e,t){var o=V0(t,"left",0),a=V0(t,"top",0),n=V0(t,"width",e.width),i=V0(t,"height",e.height),l=n,s=i;if(t.mode==="precision")return{srcLeft:o,srcTop:a,srcWidth:n,srcHeight:i,destWidth:l,destHeight:s};var c;return n>i?(c=n/i,l=UT,s=Math.round(l/c)):(c=i/n,s=UT,l=Math.round(s/c)),(l>n||s>i||l<OV||s<OV)&&(l=n,s=i),{srcLeft:o,srcTop:a,srcWidth:n,srcHeight:i,destWidth:l,destHeight:s}}var fue=typeof window>"u";function gue(){return fue?new OffscreenCanvas(1,1):document.createElement("canvas")}var $V="FastAverageColor: ";function l_(e,t,o){t||(console.error($V+e),o&&console.error(o))}function A0(e){return Error($V+e)}var WV=(function(){function e(){this.canvas=null,this.ctx=null}return e.prototype.getColorAsync=function(t,o){if(!t)return Promise.reject(A0("call .getColorAsync() without resource."));if(typeof t=="string"){if(typeof Image>"u")return Promise.reject(A0("resource as string is not supported in this environment"));var a=new Image;return a.crossOrigin=o&&o.crossOrigin||"",a.src=t,this.bindImageEvents(a,o)}else{if(GV(t)&&!t.complete)return this.bindImageEvents(t,o);var n=this.getColor(t,o);return n.error?Promise.reject(n.error):Promise.resolve(n)}},e.prototype.getColor=function(t,o){o=o||{};var a=jV(o);if(!t)return l_("call .getColor(null) without resource",o.silent),this.prepareResult(a);var n=sue(t),i=due(n,o);if(!i.srcWidth||!i.srcHeight||!i.destWidth||!i.destHeight)return l_('incorrect sizes for resource "'.concat(UV(t),'"'),o.silent),this.prepareResult(a);if(this.canvas||(this.canvas=gue()),!this.ctx&&(this.ctx=this.canvas.getContext&&this.canvas.getContext("2d"),!this.ctx))return l_("Canvas Context 2D is not supported in this browser",o.silent),this.prepareResult(a);this.canvas.width=i.destWidth,this.canvas.height=i.destHeight;var l=a;try{this.ctx.clearRect(0,0,i.destWidth,i.destHeight),this.ctx.drawImage(t,i.srcLeft,i.srcTop,i.srcWidth,i.srcHeight,0,0,i.destWidth,i.destHeight);var s=this.ctx.getImageData(0,0,i.destWidth,i.destHeight).data;l=this.getColorFromArray4(s,o)}catch(c){l_("security error (CORS) for resource ".concat(UV(t),`. 8 Details: https://developer.mozilla.org/en/docs/Web/HTML/CORS_enabled_image`),o.silent,c)}return this.prepareResult(l)},e.prototype.getColorFromArray4=function(t,o){o=o||{};var a=4,n=t.length,i=jV(o);if(n<a)return i;var l=n-n%a,s=(o.step||1)*a,c;switch(o.algorithm||"sqrt"){case"simple":c=nue;break;case"sqrt":c=iue;break;case"dominant":c=aue;break;default:throw A0("".concat(o.algorithm," is unknown algorithm"))}return c(t,l,{defaultColor:i,ignoredColor:Xce(o.ignoredColor),step:s})},e.prototype.prepareResult=function(t){var o=t.slice(0,3),a=[t[0],t[1],t[2],t[3]/255],n=Yce(t);return{value:[t[0],t[1],t[2],t[3]],rgb:"rgb("+o.join(",")+")",rgba:"rgba("+a.join(",")+")",hex:HV(o),hexa:HV(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,o){var a=this;return new Promise(function(n,i){var l=function(){u();var m=a.getColor(t,o);m.error?i(m.error):n(m)},s=function(){u(),i(A0('Error loading image "'.concat(t.src,'".')))},c=function(){u(),i(A0('Image "'.concat(t.src,'" loading aborted')))},u=function(){t.removeEventListener("load",l),t.removeEventListener("error",s),t.removeEventListener("abort",c)};t.addEventListener("load",l),t.addEventListener("error",s),t.addEventListener("abort",c)})},e})();var ZV=r(Js());VV([FV]);var Wd="#FFF",KV="#000";function hue(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 s_(){return s_.fastAverageColor||(s_.fastAverageColor=new WV),s_.fastAverageColor}var qd=Cd(async e=>{if(!e)return Wd;let{r:t,g:o,b:a,a:n}=Ca(Wd).toRgb();try{let i=(0,ZV.applyFilters)("media.crossOrigin",void 0,e);return(await s_().getColorAsync(e,{defaultColor:[t,o,a,n*255],silent:!0,crossOrigin:i})).hex}catch{return Wd}});function ep(e,t,o){if(t===o||e===100)return Ca(t).isDark();let a=Ca(t).alpha(e/100).toRgb(),n=Ca(o).toRgb(),i=hue(a,n);return Ca(i).isDark()}var Dt=r(h());function vue(e){return[["core/paragraph",{style:{typography:{textAlign:"center"}},placeholder:(0,$T.__)("Write title\u2026"),...e}]]}var bue=(e,t)=>!e&&(0,QV.isBlobURL)(t);function yue({attributes:e,clientId:t,isSelected:o,overlayColor:a,setAttributes:n,setOverlayColor:i,toggleSelection:l,context:{postId:s,postType:c}}){let{contentPosition:u,id:m,url:p,backgroundType:d,useFeaturedImage:f,dimRatio:g,focalPoint:b,hasParallax:y,isDark:v,isRepeated:_,minHeight:x,minHeightUnit:k,alt:C,allowedBlocks:T,templateLock:N,tagName:P="div",isUserOverlayColor:L,sizeSlug:R,poster:z}=e,[O]=(0,F0.useEntityProp)("postType",c,"featured_media",s),{getSettings:V}=(0,iu.useSelect)(lr.store),{__unstableMarkNextChangeAsNotPersistent:I}=(0,iu.useDispatch)(lr.store),{media:F}=(0,iu.useSelect)(Te=>({media:O&&f?Te(F0.store).getEntityRecord("postType","attachment",O,{context:"view"}):void 0}),[O,f]),W=F?.media_details?.sizes?.[R]?.source_url??F?.source_url;(0,lu.useEffect)(()=>{(async()=>{if(!f)return;let Te=await qd(W),pt=a.color;L||(pt=Te,I(),i(pt));let Ho=ep(g,pt,Te);I(),n({isDark:Ho,isUserOverlayColor:L||!1})})()},[W]);let j=f?W:p?.replaceAll("&","&"),K=f?Vt:d,{createErrorNotice:Z}=(0,iu.useDispatch)(YV.store),{gradientClass:te,gradientValue:X}=(0,lr.__experimentalUseGradient)(),J=async Te=>{let pt=iV(Te),Ho=[Te?.type,Te?.media_type].includes(Vt),Ua=await qd(Ho?Te?.url:void 0),Fl=a.color;L||(Fl=Ua,i(Fl),I());let mi=p===void 0&&g===100?50:g,Hl=ep(mi,Fl,Ua);if(K===Vt&&pt?.id){let{imageDefaultSize:Pn}=V();R&&(Te?.sizes?.[R]||Te?.media_details?.sizes?.[R])?(pt.sizeSlug=R,pt.url=Te?.sizes?.[R]?.url||Te?.media_details?.sizes?.[R]?.source_url):Te?.sizes?.[Pn]||Te?.media_details?.sizes?.[Pn]?(pt.sizeSlug=Pn,pt.url=Te?.sizes?.[Pn]?.url||Te?.media_details?.sizes?.[Pn]?.source_url):pt.sizeSlug=Ud}n({...pt,focalPoint:void 0,useFeaturedImage:void 0,dimRatio:mi,isDark:Hl,isUserOverlayColor:L||!1})},ee=()=>{let Te=a.color;L||(Te=KV,i(void 0),I());let pt=ep(g,Te,Wd);n({url:void 0,id:void 0,backgroundType:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:void 0,isDark:pt})},ne=async Te=>{let pt=await qd(j),Ho=ep(g,Te,pt);i(Te),I(),n({isUserOverlayColor:!0,isDark:Ho})},re=async Te=>{let pt=await qd(j),Ho=ep(Te,a.color,pt);n({dimRatio:Te,isDark:Ho})},se=Te=>{Z(Te,{type:"snackbar"})},ue=Te=>{n({url:Te,backgroundType:Qm,dimRatio:p===void 0&&g===100?50:g,id:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:void 0})},{embedPreview:Ne,isFetchingEmbed:Le}=(0,iu.useSelect)(Te=>{if(K!==Qm||!j)return{embedPreview:void 0,isFetchingEmbed:!1};let{getEmbedPreview:pt,isRequestingEmbedPreview:Ho}=Te(F0.store);return{embedPreview:pt(j),isFetchingEmbed:Ho(j)}},[j,K]),ie=(0,lu.useMemo)(()=>{if(K!==Qm||!Ne?.html)return null;let Te=yV(Ne.html);return Te?xV(Te):null},[Ne,K]),Ee=bue(m,j),de=Vt===K,oe=so===K,ce=Qm===K,ke=(0,lr.useBlockEditingMode)(),fe=ke==="default",[rt,{height:ht,width:yt}]=(0,c_.useResizeObserver)(),uo=(0,lu.useMemo)(()=>({height:k==="px"&&x?x:"auto",width:"auto"}),[x,k]),qe=x&&k?`${x}${k}`:x,Yt=!(y||_),ua={minHeight:qe||void 0},q=j?`url(${j})`:void 0,Be=kr(b),ze={backgroundColor:a.color},Fe={objectPosition:b&&Yt?kr(b):void 0},He=!!(j||a.color||X),Xt=(0,iu.useSelect)(Te=>Te(lr.store).getBlock(t).innerBlocks.length>0,[t]),tr=(0,lu.useRef)(),Pt=(0,lr.useBlockProps)({ref:tr}),[Ze]=(0,lr.useSettings)("typography.fontSizes"),or=Ze?.length>0,Ur=vue({fontSize:or?"large":void 0}),Oa=(0,lr.useInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:Xt?void 0:Ur,templateInsertUpdatesSelection:!0,allowedBlocks:T,templateLock:N,dropZoneElement:tr.current}),ma=(0,lu.useRef)(),Lc={isVideoBackground:oe,isImageBackground:de,mediaElement:ma,hasInnerBlocks:Xt,url:j,isImgElement:Yt,overlayColor:a},Al=async()=>{let Te=!f,pt=Te?await qd(W):Wd,Ho=L?a.color:pt;L||(i(Te?Ho:void 0),I());let Ua=g===100?50:g,Fl=ep(Ua,Ho,pt);n({id:void 0,url:void 0,useFeaturedImage:Te,dimRatio:Ua,backgroundType:f?Vt:void 0,isDark:Fl})},Vl=(0,Dt.jsx)(wV,{attributes:e,setAttributes:n,onSelectMedia:J,onSelectEmbedUrl:ue,currentSettings:Lc,toggleUseFeaturedImage:Al,onClearMedia:ee,blockEditingMode:ke}),Oi=(0,Dt.jsx)(hV,{attributes:e,setAttributes:n,clientId:t,setOverlayColor:ne,coverRef:tr,currentSettings:Lc,toggleUseFeaturedImage:Al,updateDimRatio:re,onClearMedia:ee,featuredImage:F}),Us={className:"block-library-cover__resize-container",clientId:t,height:ht,minHeight:qe,onResizeStart:()=>{n({minHeightUnit:"px"}),l(!1)},onResize:Te=>{n({minHeight:Te})},onResizeStop:Te=>{l(!0),n({minHeight:Te})},showHandle:!e.style?.dimensions?.aspectRatio,size:uo,width:yt};if(!f&&!Xt&&!He)return(0,Dt.jsxs)(Dt.Fragment,{children:[Vl,Oi,fe&&o&&(0,Dt.jsx)(AT,{...Us}),(0,Dt.jsxs)(P,{...Pt,className:w("is-placeholder",Pt.className),style:{...Pt.style,minHeight:qe||void 0},children:[rt,(0,Dt.jsx)(zT,{onSelectMedia:J,onError:se,toggleUseFeaturedImage:Al,children:(0,Dt.jsx)("div",{className:"wp-block-cover__placeholder-background-options",children:(0,Dt.jsx)(lr.ColorPalette,{disableCustomColors:!0,value:a.color,onChange:ne,clearable:!1,asButtons:!0,"aria-label":(0,$T.__)("Overlay color")})})})]})]});let md=w({"is-dark-theme":v,"is-light":!v,"is-transient":Ee,"has-parallax":y,"is-repeated":_,"has-custom-content-position":!ka(u)},Xa(u)),Mc=j||!f||f&&!j;return(0,Dt.jsxs)(Dt.Fragment,{children:[Vl,Oi,(0,Dt.jsxs)(P,{...Pt,className:w(md,Pt.className),style:{...ua,...Pt.style},"data-url":j,children:[rt,!j&&f&&(0,Dt.jsx)(H0.Placeholder,{className:"wp-block-cover__image--placeholder-image",withIllustration:!0}),j&&de&&(Yt?(0,Dt.jsx)("img",{ref:ma,className:"wp-block-cover__image-background",alt:C,src:j,style:Fe}):(0,Dt.jsx)("div",{ref:ma,role:C?"img":void 0,"aria-label":C||void 0,className:w(md,"wp-block-cover__image-background"),style:{backgroundImage:q,backgroundPosition:Be}})),j&&oe&&(0,Dt.jsx)("video",{ref:ma,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:j,poster:z,style:Fe}),ce&&ie&&(0,Dt.jsx)("div",{ref:ma,className:"wp-block-cover__video-background wp-block-cover__embed-background",style:Fe,children:(0,Dt.jsx)("iframe",{src:ie,title:"Background video",frameBorder:"0",allow:"autoplay; fullscreen"})}),ce&&!ie&&Le&&(0,Dt.jsx)(H0.Spinner,{}),Mc&&(0,Dt.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",yi(g),{[a.class]:a.class,"has-background-dim":g!==void 0,"wp-block-cover__gradient-background":j&&X&&g!==0,"has-background-gradient":X,[te]:te}),style:{backgroundImage:X,...ze}}),Ee&&(0,Dt.jsx)(H0.Spinner,{}),(0,Dt.jsx)(zT,{disableMediaButtons:!0,onSelectMedia:J,onError:se,toggleUseFeaturedImage:Al}),(0,Dt.jsx)("div",{...Oa})]}),fe&&o&&(0,Dt.jsx)(AT,{...Us})]})}var XV=(0,c_.compose)([(0,lr.withColors)({overlayColor:"background-color"})])(yue);var u_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/cover",title:"Cover",category:"media",description:"Add an image or video with a text overlay.",textdomain:"default",attributes:{url:{type:"string",role:"content"},useFeaturedImage:{type:"boolean",default:!1},id:{type:"number"},alt:{type:"string",default:""},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:100},overlayColor:{type:"string"},customOverlayColor:{type:"string"},isUserOverlayColor:{type:"boolean"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},isDark:{type:"boolean",default:!0},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]},tagName:{type:"string",default:"div"},sizeSlug:{type:"string"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"}},usesContext:["postId","postType"],supports:{anchor:!0,align:!0,html:!1,shadow:!0,spacing:{padding:!0,margin:["top","bottom"],blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{heading:!0,text:!0,background:!1,__experimentalSkipSerialization:["gradients"],enableContrastChecker:!1},dimensions:{aspectRatio:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowJustification:!1},interactivity:{clientNavigation:!0},filter:{duotone:!0},allowedBlocks:!0},selectors:{filter:{duotone:".wp-block-cover > .wp-block-cover__image-background, .wp-block-cover > .wp-block-cover__video-background"}},editorStyle:"wp-block-cover-editor",style:"wp-block-cover"};var su=r(S());var ql=r(h());function JV({attributes:e}){let{backgroundType:t,gradient:o,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:g,id:b,minHeight:y,minHeightUnit:v,tagName:_,sizeSlug:x,poster:k}=e,C=(0,su.getColorClassName)("background-color",d),T=(0,su.__experimentalGetGradientClass)(o),N=y&&v?`${y}${v}`:y,P=Vt===t,L=so===t,R=Qm===t,z=!(u||p),O={minHeight:N||void 0},V={backgroundColor:C?void 0:i,background:n||void 0},I=s&&z?kr(s):void 0,F=f?`url(${f})`:void 0,W=kr(s),j=w({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!ka(a)},Xa(a)),K=w("wp-block-cover__image-background",b?`wp-image-${b}`:null,{[`size-${x}`]:x,"has-parallax":u,"is-repeated":p}),Z=o||n;return(0,ql.jsxs)(_,{...su.useBlockProps.save({className:j,style:O}),children:[!c&&P&&f&&(z?(0,ql.jsx)("img",{className:K,alt:g,src:f,style:{objectPosition:I},"data-object-fit":"cover","data-object-position":I}):(0,ql.jsx)("div",{role:g?"img":void 0,"aria-label":g||void 0,className:K,style:{backgroundPosition:W,backgroundImage:F}})),L&&f&&(0,ql.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,poster:k,style:{objectPosition:I},"data-object-fit":"cover","data-object-position":I}),R&&f&&(0,ql.jsx)("figure",{className:w("wp-block-cover__video-background","wp-block-cover__embed-background","wp-block-embed"),children:(0,ql.jsx)("div",{className:"wp-block-embed__wrapper",children:f})}),(0,ql.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",C,yi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&Z&&l!==0,"has-background-gradient":Z,[T]:T}),style:V}),(0,ql.jsx)("div",{...su.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}var An=r(U()),eF=r(S());var{cleanEmptyObject:m_}=Q(eF.privateApis),_ue={from:[{type:"block",blocks:["core/image"],transform:({caption:e,url:t,alt:o,align:a,id:n,anchor:i,style:l})=>(0,An.createBlock)("core/cover",{dimRatio:50,url:t,alt:o,align:a,id:n,anchor:i,style:{color:{duotone:l?.color?.duotone}}},[(0,An.createBlock)("core/paragraph",{content:e,fontSize:"large",style:{typography:{textAlign:"center"}}})])},{type:"block",blocks:["core/video"],transform:({caption:e,src:t,align:o,id:a,anchor:n})=>(0,An.createBlock)("core/cover",{dimRatio:50,url:t,align:o,id:a,backgroundType:so,anchor:n},[(0,An.createBlock)("core/paragraph",{content:e,fontSize:"large",style:{typography:{textAlign:"center"}}})])},{type:"block",blocks:["core/group"],transform:(e,t)=>{let{align:o,anchor:a,backgroundColor:n,gradient:i,style:l}=e;if(t?.length===1&&t[0]?.name==="core/cover")return(0,An.createBlock)("core/cover",t[0].attributes,t[0].innerBlocks);let s=n||i||l?.color?.background||l?.color?.gradient?void 0:50,c={align:o,anchor:a,dimRatio:s,overlayColor:n,customOverlayColor:l?.color?.background,gradient:i,customGradient:l?.color?.gradient},u={...e,backgroundColor:void 0,gradient:void 0,style:m_({...e?.style,color:l?.color?{...l?.color,background:void 0,gradient:void 0}:void 0})};return(0,An.createBlock)("core/cover",c,[(0,An.createBlock)("core/group",u,t)])}}],to:[{type:"block",blocks:["core/image"],isMatch:({backgroundType:e,url:t,overlayColor:o,customOverlayColor:a,gradient:n,customGradient:i})=>t?e===Vt:!o&&!a&&!n&&!i,transform:({title:e,url:t,alt:o,align:a,id:n,anchor:i,style:l})=>(0,An.createBlock)("core/image",{caption:e,url:t,alt:o,align:a,id:n,anchor:i,style:{color:{duotone:l?.color?.duotone}}})},{type:"block",blocks:["core/video"],isMatch:({backgroundType:e,url:t,overlayColor:o,customOverlayColor:a,gradient:n,customGradient:i})=>t?e===so:!o&&!a&&!n&&!i,transform:({title:e,url:t,align:o,id:a,anchor:n})=>(0,An.createBlock)("core/video",{caption:e,src:t,id:a,align:o,anchor:n})},{type:"block",blocks:["core/group"],isMatch:({url:e,useFeaturedImage:t})=>!(e||t),transform:(e,t)=>{let o={backgroundColor:e?.overlayColor,gradient:e?.gradient,style:m_({...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 a=m_(t[0].attributes||{});return a?.backgroundColor||a?.gradient||a?.style?.color?.background||a?.style?.color?.gradient?(0,An.createBlock)("core/group",a,t[0]?.innerBlocks):(0,An.createBlock)("core/group",{...o,...a,style:m_({...a?.style,color:o?.style?.color||a?.style?.color?{...o?.style?.color,...a?.style?.color}:void 0})},t[0]?.innerBlocks)}return(0,An.createBlock)("core/group",{...e,...o},t)}}]},tF=_ue;var WT=r(B());var kue=[{name:"cover",title:(0,WT.__)("Cover"),description:(0,WT.__)("Add an image or video with a text overlay."),attributes:{layout:{type:"constrained"}},isDefault:!0,icon:xm}],oF=kue;var{fieldsKey:wue,formKey:Cue}=Q(rF.privateApis),{name:aF}=u_,p_={icon:xm,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,qT.__)("Snow Patrol")}</strong>`,style:{typography:{textAlign:"center"}}}}]},transforms:tF,save:JV,edit:XV,deprecated:lV,variations:oF};window.__experimentalContentOnlyInspectorFields&&(p_[wue]=[{id:"background",label:(0,qT.__)("Background"),type:"media",mapping:{type:"backgroundType",id:"id",url:"url",alt:"alt",featuredImage:"useFeaturedImage"},args:{allowedTypes:["image","video"],multiple:!1}}],p_[Cue]={fields:["background"]});var Sue=()=>D({name:aF,metadata:u_,settings:p_});var KT={};$(KT,{init:()=>Eue,metadata:()=>d_,name:()=>mF,settings:()=>g_});var cu=r(B()),uF=r(U());var d_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/details",title:"Details",category:"text",description:"Hide and show additional content.",keywords:["summary","toggle","disclosure"],textdomain:"default",attributes:{showContent:{type:"boolean",default:!1},summary:{type:"rich-text",source:"rich-text",selector:"summary",role:"content"},name:{type:"string",source:"attribute",attribute:"name",selector:".wp-block-details"},placeholder:{type:"string"}},supports:{__experimentalOnEnter:!0,align:["wide","full"],anchor:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__experimentalBorder:{color:!0,width:!0,style:!0},html:!1,spacing:{margin:!0,padding:!0,blockGap:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowEditing:!1},interactivity:{clientNavigation:!0},allowedBlocks:!0},editorStyle:"wp-block-details-editor",style:"wp-block-details"};var Ji=r(S()),Zl=r(M()),ec=r(B()),nF=r(H()),iF=r(A());var Ja=r(h()),{withIgnoreIMEEvents:Bue}=Q(Zl.privateApis),Pue=[["core/paragraph",{placeholder:(0,ec.__)("Type / to add a hidden block")}]];function Nue({attributes:e,setAttributes:t,clientId:o}){let{name:a,showContent:n,summary:i,allowedBlocks:l,placeholder:s}=e,c=(0,Ji.useBlockProps)(),u=(0,Ji.useInnerBlocksProps)(c,{template:Pue,__experimentalCaptureToolbars:!0,allowedBlocks:l}),[m,p]=(0,nF.useState)(n),d=G(),f=(0,iF.useSelect)(y=>y(Ji.store).hasSelectedInnerBlock(o,!0),[o]),g=y=>{y.key==="Enter"&&!y.shiftKey&&(p(v=>!v),y.preventDefault())},b=y=>{y.key===" "&&y.preventDefault()};return(0,Ja.jsxs)(Ja.Fragment,{children:[(0,Ja.jsx)(Ji.InspectorControls,{children:(0,Ja.jsx)(Zl.__experimentalToolsPanel,{label:(0,ec.__)("Settings"),resetAll:()=>{t({showContent:!1})},dropdownMenuProps:d,children:(0,Ja.jsx)(Zl.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,ec.__)("Open by default"),hasValue:()=>n,onDeselect:()=>{t({showContent:!1})},children:(0,Ja.jsx)(Zl.ToggleControl,{label:(0,ec.__)("Open by default"),checked:n,onChange:()=>t({showContent:!n})})})})}),(0,Ja.jsx)(Ji.InspectorControls,{group:"advanced",children:(0,Ja.jsx)(Zl.TextControl,{__next40pxDefaultSize:!0,label:(0,ec.__)("Name attribute"),value:a||"",onChange:y=>t({name:y}),help:(0,ec.__)("Enables multiple Details blocks with the same name attribute to be connected, with only one open at a time.")})}),(0,Ja.jsxs)("details",{...u,open:m||f,onToggle:y=>p(y.target.open),name:a||"",children:[(0,Ja.jsx)("summary",{onKeyDown:Bue(g),onKeyUp:b,children:(0,Ja.jsx)(Ji.RichText,{identifier:"summary","aria-label":(0,ec.__)("Write summary. Press Enter to expand or collapse the details."),placeholder:s||(0,ec.__)("Write summary\u2026"),withoutInteractiveFormatting:!0,value:i,onChange:y=>t({summary:y})})}),u.children]})]})}var lF=Nue;var Kd=r(S()),Zd=r(h());function sF({attributes:e}){let{name:t,showContent:o}=e,a=e.summary?e.summary:"Details",n=Kd.useBlockProps.save();return(0,Zd.jsxs)("details",{...n,name:t||void 0,open:o,children:[(0,Zd.jsx)("summary",{children:(0,Zd.jsx)(Kd.RichText.Content,{value:a})}),(0,Zd.jsx)(Kd.InnerBlocks.Content,{})]})}var f_=r(U()),cF={from:[{type:"block",isMultiBlock:!0,blocks:["*"],isMatch({},e){return!(e.length===1&&e[0].name==="core/details")},__experimentalConvert(e){return(0,f_.createBlock)("core/details",{},e.map(t=>(0,f_.cloneBlock)(t)))}}]};var{fieldsKey:Iue,formKey:Due}=Q(uF.privateApis),{name:mF}=d_,g_={icon:w8,example:{attributes:{summary:(0,cu.__)("La Mancha"),showContent:!0},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,cu.__)("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:o}=e,a=e?.metadata?.name,n=o?.trim().length>0;if(t==="list-view"&&(a||n))return a||o;if(t==="accessibility")return n?(0,cu.sprintf)((0,cu.__)("Details. %s"),o):(0,cu.__)("Details. Empty.")},save:sF,edit:lF,transforms:cF};window.__experimentalContentOnlyInspectorFields&&(g_[Iue]=[{id:"summary",label:(0,cu.__)("Summary"),type:"richtext"}],g_[Due]={fields:["summary"]});var Eue=()=>D({name:mF,metadata:d_,settings:g_});var oB={};$(oB,{init:()=>Gue,metadata:()=>Gl,name:()=>ZF,settings:()=>KF});var tp=r(B()),Kl=r(M()),h_=r(S());var ki=r(h());function Lue(e){return e?(0,tp.__)("This embed will preserve its aspect ratio when the browser is resized."):(0,tp.__)("This embed may not preserve its aspect ratio when the browser is resized.")}var Mue=({blockSupportsResponsive:e,showEditButton:t,themeSupportsResponsive:o,allowResponsive:a,toggleResponsive:n,switchBackToURLInput:i})=>{let l=G();return(0,ki.jsxs)(ki.Fragment,{children:[(0,ki.jsx)(h_.BlockControls,{children:(0,ki.jsx)(Kl.ToolbarGroup,{children:t&&(0,ki.jsx)(Kl.ToolbarButton,{className:"components-toolbar__control",label:(0,tp.__)("Edit URL"),icon:Tm,onClick:i})})}),o&&e&&(0,ki.jsx)(h_.InspectorControls,{children:(0,ki.jsx)(Kl.__experimentalToolsPanel,{label:(0,tp.__)("Media settings"),resetAll:()=>{n(!0)},dropdownMenuProps:l,children:(0,ki.jsx)(Kl.__experimentalToolsPanelItem,{label:(0,tp.__)("Media settings"),isShownByDefault:!0,hasValue:()=>!a,onDeselect:()=>{n(!a)},children:(0,ki.jsx)(Kl.ToggleControl,{label:(0,tp.__)("Resize for smaller devices"),checked:a,help:Lue,onChange:n})})})})]})},pF=Mue;var be=r(M()),xe=r(h()),el=(0,xe.jsx)(be.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,xe.jsx)(be.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"})}),v_=(0,xe.jsx)(be.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,xe.jsx)(be.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"})}),QT=(0,xe.jsx)(be.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,xe.jsx)(be.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"})}),Qd=(0,xe.jsx)(be.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,xe.jsx)(be.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"})}),dF={foreground:"#000000",src:(0,xe.jsx)(be.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,xe.jsx)(be.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"})})},fF={foreground:"#ff0000",src:(0,xe.jsx)(be.SVG,{viewBox:"0 0 24 24",children:(0,xe.jsx)(be.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"})})},gF={foreground:"#3b5998",src:(0,xe.jsx)(be.SVG,{viewBox:"0 0 24 24",children:(0,xe.jsx)(be.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"})})},hF=(0,xe.jsx)(be.SVG,{viewBox:"0 0 24 24",children:(0,xe.jsx)(be.G,{children:(0,xe.jsx)(be.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"})})}),vF={foreground:"#0073AA",src:(0,xe.jsx)(be.SVG,{viewBox:"0 0 24 24",children:(0,xe.jsx)(be.G,{children:(0,xe.jsx)(be.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"})})})},bF={foreground:"#1db954",src:(0,xe.jsx)(be.SVG,{viewBox:"0 0 24 24",children:(0,xe.jsx)(be.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"})})},yF=(0,xe.jsx)(be.SVG,{viewBox:"0 0 24 24",children:(0,xe.jsx)(be.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"})}),xF={foreground:"#1ab7ea",src:(0,xe.jsx)(be.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,xe.jsx)(be.G,{children:(0,xe.jsx)(be.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"})})})},_F=(0,xe.jsx)(be.SVG,{viewBox:"0 0 24 24",children:(0,xe.jsx)(be.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"})}),kF={foreground:"#35465c",src:(0,xe.jsx)(be.SVG,{viewBox:"0 0 24 24",children:(0,xe.jsx)(be.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"})})},wF=(0,xe.jsxs)(be.SVG,{viewBox:"0 0 24 24",children:[(0,xe.jsx)(be.Path,{d:"M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z"}),(0,xe.jsx)(be.Path,{d:"M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z"}),(0,xe.jsx)(be.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"})]}),CF=(0,xe.jsxs)(be.SVG,{viewBox:"0 0 24 24",children:[(0,xe.jsx)(be.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),(0,xe.jsx)(be.Path,{d:"m23.7254 19.0205-10.1074-17.18468c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418h22.5655c1.279 0 1.8019-.8905 1.1599-1.9795z",fill:"#d4cdcb"}),(0,xe.jsx)(be.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),(0,xe.jsx)(be.Path,{d:"m13.618 1.83582c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418 15.2646-16.38573z",fill:"#e4ecb0"}),(0,xe.jsx)(be.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),(0,xe.jsx)(be.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})]}),SF=(0,xe.jsx)(be.SVG,{viewBox:"0 0 24 24",children:(0,xe.jsx)(be.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"})}),TF=(0,xe.jsx)(be.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,xe.jsx)(be.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"})}),BF=(0,xe.jsx)(be.SVG,{viewBox:"0 0 44 44",children:(0,xe.jsx)(be.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"})}),PF={foreground:"#f43e37",src:(0,xe.jsxs)(be.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,xe.jsx)(be.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M24,12A12,12,0,1,1,12,0,12,12,0,0,1,24,12Z"}),(0,xe.jsx)(be.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"})]})},NF=(0,xe.jsx)(be.SVG,{viewBox:"0 0 24 24",children:(0,xe.jsx)(be.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 IF=r(M()),YT=r(h()),Rue=()=>(0,YT.jsx)("div",{className:"wp-block-embed is-loading",children:(0,YT.jsx)(IF.Spinner,{})}),DF=Rue;var Ql=r(B()),tn=r(M()),EF=r(S()),en=r(h()),zue=({icon:e,label:t,value:o,onSubmit:a,onChange:n,cannotEmbed:i,fallback:l,tryAgain:s})=>(0,en.jsxs)(tn.Placeholder,{icon:(0,en.jsx)(EF.BlockIcon,{icon:e,showColors:!0}),label:t,className:"wp-block-embed",instructions:(0,Ql.__)("Paste a link to the content you want to display on your site."),children:[(0,en.jsxs)("form",{onSubmit:a,children:[(0,en.jsx)(tn.__experimentalInputControl,{__next40pxDefaultSize:!0,type:"url",value:o||"",className:"wp-block-embed__placeholder-input",label:t,hideLabelFromVision:!0,placeholder:(0,Ql.__)("Enter URL to embed here\u2026"),onChange:n}),(0,en.jsx)(tn.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,Ql._x)("Embed","button label")})]}),(0,en.jsx)("div",{className:"wp-block-embed__learn-more",children:(0,en.jsx)(tn.ExternalLink,{href:(0,Ql.__)("https://wordpress.org/documentation/article/embeds/"),children:(0,Ql.__)("Learn more about embeds")})}),i&&(0,en.jsxs)(tn.__experimentalVStack,{spacing:3,className:"components-placeholder__error",children:[(0,en.jsx)("div",{className:"components-placeholder__instructions",children:(0,Ql.__)("Sorry, this content could not be embedded.")}),(0,en.jsxs)(tn.__experimentalHStack,{expanded:!1,spacing:3,justify:"flex-start",children:[(0,en.jsx)(tn.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:s,children:(0,Ql._x)("Try again","button label")})," ",(0,en.jsx)(tn.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:l,children:(0,Ql._x)("Convert to link","button label")})]})]})]}),LF=zue;var Xd=r(B()),y_=r(M()),RF=r(S()),zF=r(H()),AF=r(ko());var b_=r(we()),Yd=r(H()),XT=r(h()),Aue={class:"className",frameborder:"frameBorder",marginheight:"marginHeight",marginwidth:"marginWidth"};function MF({html:e}){let t=(0,Yd.useRef)(),o=(0,Yd.useMemo)(()=>{let n=new window.DOMParser().parseFromString(e,"text/html").querySelector("iframe"),i={};return n&&Array.from(n.attributes).forEach(({name:l,value:s})=>{l!=="style"&&(i[Aue[l]||l]=s)}),i},[e]);return(0,Yd.useEffect)(()=>{let{ownerDocument:a}=t.current,{defaultView:n}=a;function i({data:{secret:l,message:s,value:c}={}}){s!=="height"||l!==o["data-secret"]||(t.current.height=c)}return n.addEventListener("message",i),()=>{n.removeEventListener("message",i)}},[]),(0,XT.jsx)("div",{className:"wp-block-embed__wrapper",children:(0,XT.jsx)("iframe",{ref:(0,b_.useMergeRefs)([t,(0,b_.useFocusableIframe)()]),title:o.title,...o})})}var on=r(h());function VF({preview:e,previewable:t,url:o,type:a,isSelected:n,className:i,icon:l,label:s}){let[c,u]=(0,zF.useState)(!1);!n&&c&&u(!1);let m=()=>{u(!0)},{scripts:p}=e,d=a==="photo"?CM(e):e.html,f=(0,AF.getAuthority)(o),g=(0,Xd.sprintf)((0,Xd.__)("Embedded content from %s"),f),b=w(a,i,"wp-block-embed__wrapper");return(0,on.jsx)(on.Fragment,{children:t?a==="wp-embed"?(0,on.jsx)(MF,{html:d}):(0,on.jsxs)("div",{className:"wp-block-embed__wrapper",children:[(0,on.jsx)(y_.SandBox,{html:d,scripts:p,title:g,type:b,onFocus:m}),!c&&(0,on.jsx)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:m})]}):(0,on.jsxs)(y_.Placeholder,{icon:(0,on.jsx)(RF.BlockIcon,{icon:l,showColors:!0}),label:s,children:[(0,on.jsx)("p",{className:"components-placeholder__error",children:(0,on.jsx)("a",{href:o,children:o})}),(0,on.jsx)("p",{className:"components-placeholder__error",children:(0,Xd.sprintf)((0,Xd.__)("Embedded content from %s can't be previewed in the editor."),f)})]})})}var rp=r(B()),op=r(H()),x_=r(A()),FF=r(S()),JT=r(Y()),eB=r(E()),HF=r(ko());var Vn=r(h()),Vue=e=>{let{attributes:{providerNameSlug:t,previewable:o,responsive:a,url:n},attributes:i,isSelected:l,onReplace:s,setAttributes:c,insertBlocksAfter:u,onFocus:m}=e,p={title:(0,rp._x)("Embed","block title"),icon:el},{icon:d,title:f}=kM(t)||p,[g,b]=(0,op.useState)(n),[y,v]=(0,op.useState)(!1),{invalidateResolution:_}=(0,x_.useDispatch)(JT.store),{preview:x,fetching:k,themeSupportsResponsive:C,cannotEmbed:T,hasResolved:N}=(0,x_.useSelect)(K=>{let{getEmbedPreview:Z,isPreviewEmbedFallback:te,isRequestingEmbedPreview:X,getThemeSupports:J,hasFinishedResolution:ee}=K(JT.store);if(!n)return{fetching:!1,cannotEmbed:!1};let ne=Z(n),re=te(n),se=ne?.html===!1&&ne?.type===void 0,ue=ne?.data?.status===404,Ne=!!ne&&!se&&!ue;return{preview:Ne?ne:void 0,fetching:X(n),themeSupportsResponsive:J()["responsive-embeds"],cannotEmbed:!Ne||re,hasResolved:ee("getEmbedPreview",[n])}},[n]),P=()=>TM(i,x,f,a);function L(K){let{className:Z}=i,{html:te}=x;c({allowResponsive:K,className:ES(te,Z,a&&K)})}(0,op.useEffect)(()=>{if(x?.html||!T||!N)return;let K=n.replace(/\/$/,"");b(K),v(!1),c({url:K})},[x?.html,n,T,N,c]),(0,op.useEffect)(()=>{if(!(!T||k||!g)&&(0,HF.getAuthority)(g)==="x.com"){let K=new URL(g);K.host="twitter.com",c({url:K.toString()})}},[g,T,k,c]),(0,op.useEffect)(()=>{if(x&&!y){let K=P();if(Object.keys(K).some(te=>K[te]!==i[te])&&c(K),s){let te=$c(e,K);te&&s(te)}}},[x,y]);let R=(0,FF.useBlockProps)();if(k)return(0,Vn.jsx)(eB.View,{...R,children:(0,Vn.jsx)(DF,{})});let z=(0,rp.sprintf)((0,rp.__)("%s URL"),f);if(!x||T||y)return(0,Vn.jsx)(eB.View,{...R,children:(0,Vn.jsx)(LF,{icon:d,label:z,onFocus:m,onSubmit:K=>{K&&K.preventDefault();let Z=Nm(i.className);v(!1),c({url:g,className:Z})},value:g,cannotEmbed:T,onChange:K=>b(K),fallback:()=>SM(g,s),tryAgain:()=>{_("getEmbedPreview",[g])}})});let{caption:V,type:I,allowResponsive:F,className:W}=P(),j=w(W,e.className);return(0,Vn.jsxs)(Vn.Fragment,{children:[(0,Vn.jsx)(pF,{showEditButton:x&&!T,themeSupportsResponsive:C,blockSupportsResponsive:a,allowResponsive:F,toggleResponsive:L,switchBackToURLInput:()=>v(!0)}),(0,Vn.jsxs)("figure",{...R,className:w(R.className,j,{[`is-type-${I}`]:I,[`is-provider-${t}`]:t,[`wp-block-embed-${t}`]:t}),children:[(0,Vn.jsx)(VF,{preview:x,previewable:o,className:j,url:g,type:I,caption:V,onCaptionChange:K=>c({caption:K}),isSelected:l,icon:d,label:z,insertBlocksAfter:u,attributes:i,setAttributes:c}),(0,Vn.jsx)(qa,{attributes:i,setAttributes:c,isSelected:l,insertBlocksAfter:u,label:(0,rp.__)("Embed caption text"),showToolbarButton:l})]})]})},jF=Vue;var ap=r(S()),j0=r(h());function OF({attributes:e}){let{url:t,caption:o,type:a,providerNameSlug:n}=e;if(!t)return null;let i=w("wp-block-embed",{[`is-type-${a}`]:a,[`is-provider-${n}`]:n,[`wp-block-embed-${n}`]:n});return(0,j0.jsxs)("figure",{...ap.useBlockProps.save({className:i}),children:[(0,j0.jsx)("div",{className:"wp-block-embed__wrapper",children:` 9 ${t} 10 `}),!ap.RichText.isEmpty(o)&&(0,j0.jsx)(ap.RichText.Content,{className:(0,ap.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]})}var tB=r(U());var{name:Fue}=Gl,Hue={from:[{type:"raw",isMatch:e=>e.nodeName==="P"&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)&&e.textContent?.match(/https/gi)?.length===1,transform:e=>(0,tB.createBlock)(Fue,{url:e.textContent.trim()})}],to:[{type:"block",blocks:["core/paragraph"],isMatch:({url:e})=>!!e,transform:({url:e,caption:t,className:o})=>{let a=`<a href="${e}">${e}</a>`;return t?.trim()&&(a+=`<br />${t}`),(0,tB.createBlock)("core/paragraph",{content:a,className:Nm(o)})}}]},UF=Hue;var me=r(B());function it(e){return(0,me.sprintf)((0,me.__)("%s Embed"),e)}var GF=[{name:"twitter",title:it("X"),icon:dF,keywords:["x","twitter","tweet",(0,me.__)("social")],description:(0,me.__)("Embed an X post."),patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i],attributes:{providerNameSlug:"twitter",responsive:!0}},{name:"youtube",title:it("YouTube"),icon:fF,keywords:[(0,me.__)("music"),(0,me.__)("video")],description:(0,me.__)("Embed a YouTube video."),patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i],attributes:{providerNameSlug:"youtube",responsive:!0}},{name:"facebook",title:it("Facebook"),icon:gF,keywords:[(0,me.__)("social")],description:(0,me.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:it("Instagram"),icon:hF,keywords:[(0,me.__)("image"),(0,me.__)("social")],description:(0,me.__)("Embed an Instagram post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"instagram",responsive:!0}},{name:"wordpress",title:it("WordPress"),icon:vF,keywords:[(0,me.__)("post"),(0,me.__)("blog")],description:(0,me.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:it("SoundCloud"),icon:v_,keywords:[(0,me.__)("music"),(0,me.__)("audio")],description:(0,me.__)("Embed SoundCloud content."),patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i],attributes:{providerNameSlug:"soundcloud",responsive:!0}},{name:"spotify",title:it("Spotify"),icon:bF,keywords:[(0,me.__)("music"),(0,me.__)("audio")],description:(0,me.__)("Embed Spotify content."),patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i],attributes:{providerNameSlug:"spotify",responsive:!0}},{name:"flickr",title:it("Flickr"),icon:yF,keywords:[(0,me.__)("image")],description:(0,me.__)("Embed Flickr content."),patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i],attributes:{providerNameSlug:"flickr",responsive:!0}},{name:"vimeo",title:it("Vimeo"),icon:xF,keywords:[(0,me.__)("video")],description:(0,me.__)("Embed a Vimeo video."),patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i],attributes:{providerNameSlug:"vimeo",responsive:!0}},{name:"animoto",title:it("Animoto"),icon:CF,description:(0,me.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:it("Cloudup"),icon:el,description:(0,me.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:it("CollegeHumor"),icon:Qd,description:(0,me.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:it("Crowdsignal"),icon:el,keywords:["polldaddy",(0,me.__)("survey")],description:(0,me.__)("Embed Crowdsignal (formerly Polldaddy) content."),patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.crowdsignal\.net|.+\.survey\.fm)\/.+/i],attributes:{providerNameSlug:"crowdsignal",responsive:!0}},{name:"dailymotion",title:it("Dailymotion"),icon:SF,keywords:[(0,me.__)("video")],description:(0,me.__)("Embed a Dailymotion video."),patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i],attributes:{providerNameSlug:"dailymotion",responsive:!0}},{name:"imgur",title:it("Imgur"),icon:QT,description:(0,me.__)("Embed Imgur content."),patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i],attributes:{providerNameSlug:"imgur",responsive:!0}},{name:"issuu",title:it("Issuu"),icon:el,description:(0,me.__)("Embed Issuu content."),patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i],attributes:{providerNameSlug:"issuu",responsive:!0}},{name:"kickstarter",title:it("Kickstarter"),icon:el,description:(0,me.__)("Embed Kickstarter content."),patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i],attributes:{providerNameSlug:"kickstarter",responsive:!0}},{name:"mixcloud",title:it("Mixcloud"),icon:v_,keywords:[(0,me.__)("music"),(0,me.__)("audio")],description:(0,me.__)("Embed Mixcloud content."),patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i],attributes:{providerNameSlug:"mixcloud",responsive:!0}},{name:"pocket-casts",title:it("Pocket Casts"),icon:PF,keywords:[(0,me.__)("podcast"),(0,me.__)("audio")],description:(0,me.__)("Embed a podcast player from Pocket Casts."),patterns:[/^https:\/\/pca.st\/\w+/i],attributes:{providerNameSlug:"pocket-casts",responsive:!0}},{name:"reddit",title:it("Reddit"),icon:_F,description:(0,me.__)("Embed a Reddit thread."),patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i],attributes:{providerNameSlug:"reddit",responsive:!0}},{name:"reverbnation",title:it("ReverbNation"),icon:v_,description:(0,me.__)("Embed ReverbNation content."),patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i],attributes:{providerNameSlug:"reverbnation",responsive:!0}},{name:"scribd",title:it("Scribd"),icon:el,description:(0,me.__)("Embed Scribd content."),patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i],attributes:{providerNameSlug:"scribd",responsive:!0}},{name:"smugmug",title:it("SmugMug"),icon:QT,description:(0,me.__)("Embed SmugMug content."),patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i],attributes:{providerNameSlug:"smugmug",previewable:!1,responsive:!0}},{name:"speaker-deck",title:it("Speaker Deck"),icon:el,description:(0,me.__)("Embed Speaker Deck content."),patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i],attributes:{providerNameSlug:"speaker-deck",responsive:!0}},{name:"tiktok",title:it("TikTok"),icon:Qd,keywords:[(0,me.__)("video")],description:(0,me.__)("Embed a TikTok video."),patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i],attributes:{providerNameSlug:"tiktok",responsive:!0}},{name:"ted",title:it("TED"),icon:Qd,description:(0,me.__)("Embed a TED video."),patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i],attributes:{providerNameSlug:"ted",responsive:!0}},{name:"tumblr",title:it("Tumblr"),icon:kF,keywords:[(0,me.__)("social")],description:(0,me.__)("Embed a Tumblr post."),patterns:[/^https?:\/\/(.+)\.tumblr\.com\/.+/i],attributes:{providerNameSlug:"tumblr",responsive:!0}},{name:"videopress",title:it("VideoPress"),icon:Qd,keywords:[(0,me.__)("video")],description:(0,me.__)("Embed a VideoPress video."),patterns:[/^https?:\/\/videopress\.com\/.+/i],attributes:{providerNameSlug:"videopress",responsive:!0}},{name:"wordpress-tv",title:it("WordPress.tv"),icon:Qd,description:(0,me.__)("Embed a WordPress.tv video."),patterns:[/^https?:\/\/wordpress\.tv\/.+/i],attributes:{providerNameSlug:"wordpress-tv",responsive:!0}},{name:"amazon-kindle",title:it("Amazon Kindle"),icon:wF,keywords:[(0,me.__)("ebook")],description:(0,me.__)("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:it("Pinterest"),icon:TF,keywords:[(0,me.__)("social"),(0,me.__)("bookmark")],description:(0,me.__)("Embed Pinterest pins, boards, and profiles."),patterns:[/^https?:\/\/([a-z]{2}|www)\.pinterest\.com(\.(au|mx))?\/.*/i],attributes:{providerNameSlug:"pinterest"}},{name:"wolfram-cloud",title:it("Wolfram"),icon:BF,description:(0,me.__)("Embed Wolfram notebook content."),patterns:[/^https?:\/\/(www\.)?wolframcloud\.com\/obj\/.+/i],attributes:{providerNameSlug:"wolfram-cloud",responsive:!0}},{name:"bluesky",title:it("Bluesky"),icon:NF,description:(0,me.__)("Embed a Bluesky post."),patterns:[/^https?:\/\/bsky\.app\/profile\/.+\/post\/.+/i],attributes:{providerNameSlug:"bluesky"}}];GF.forEach(e=>{e.isActive||(e.isActive=(t,o)=>t.providerNameSlug===o.providerNameSlug)});var $F=GF;var np=r(S()),ip=r(h()),{attributes:WF}=Gl,jue={attributes:WF,save({attributes:e}){let{url:t,caption:o,type:a,providerNameSlug:n}=e;if(!t)return null;let i=w("wp-block-embed",{[`is-type-$a}`]:a,[`is-provider-$n}`]:n,[`wp-block-embed-$n}`]:n});return(0,ip.jsxs)("figure",{...np.useBlockProps.save({className:i}),children:[(0,ip.jsx)("div",{className:"wp-block-embed__wrapper",children:` 11 $t} 12 `}),!np.RichText.isEmpty(o)&&(0,ip.jsx)(np.RichText.Content,{tagName:"figcaption",value:o})]})}},Oue={attributes:WF,save({attributes:{url:e,caption:t,type:o,providerNameSlug:a}}){if(!e)return null;let n=w("wp-block-embed",{[`is-type-$o}`]:o,[`is-provider-$a}`]:a});return(0,ip.jsxs)("figure",{className:n,children:[` 13 $e} 14 `,!np.RichText.isEmpty(t)&&(0,ip.jsx)(np.RichText.Content,{tagName:"figcaption",value:t})]})}},Uue=[jue,Oue],qF=Uue;var{name:ZF}=Gl,KF={icon:el,edit:jF,save:OF,transforms:UF,variations:$F,deprecated:qF},Gue=()=>D({name:ZF,metadata:Gl,settings:KF});var iB={};$(iB,{init:()=>tme,metadata:()=>w_,name:()=>cH,settings:()=>T_});var tf=r(B());var sH=r(U());var Wo=r(S()),tl=r(B()),Et=r(h()),$ue={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:o,fileName:a,textLinkHref:n,textLinkTarget:i,showDownloadButton:l,downloadButtonText:s,displayPreview:c,previewHeight:u}=e,m=Wo.RichText.isEmpty(a)?(0,tl.__)("PDF embed"):(0,tl.sprintf)((0,tl.__)("Embed of %s."),a),p=!Wo.RichText.isEmpty(a),d=p?o:void 0;return t&&(0,Et.jsxs)("div",{...Wo.useBlockProps.save(),children:[c&&(0,Et.jsx)(Et.Fragment,{children:(0,Et.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`$u}px`},"aria-label":m})}),p&&(0,Et.jsx)("a",{id:d,href:n,target:i,rel:i?"noreferrer noopener":void 0,children:(0,Et.jsx)(Wo.RichText.Content,{value:a})}),l&&(0,Et.jsx)("a",{href:t,className:w("wp-block-file__button",(0,Wo.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":d,children:(0,Et.jsx)(Wo.RichText.Content,{value:s})})]})}},Wue={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:o,fileName:a,textLinkHref:n,textLinkTarget:i,showDownloadButton:l,downloadButtonText:s,displayPreview:c,previewHeight:u}=e,m=Wo.RichText.isEmpty(a)?(0,tl.__)("PDF embed"):(0,tl.sprintf)((0,tl.__)("Embed of %s."),a),p=!Wo.RichText.isEmpty(a),d=p?o:void 0;return t&&(0,Et.jsxs)("div",{...Wo.useBlockProps.save(),children:[c&&(0,Et.jsx)(Et.Fragment,{children:(0,Et.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`$u}px`},"aria-label":m})}),p&&(0,Et.jsx)("a",{id:d,href:n,target:i,rel:i?"noreferrer noopener":void 0,children:(0,Et.jsx)(Wo.RichText.Content,{value:a})}),l&&(0,Et.jsx)("a",{href:t,className:"wp-block-file__button",download:!0,"aria-describedby":d,children:(0,Et.jsx)(Wo.RichText.Content,{value:s})})]})}},que={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:o,textLinkHref:a,textLinkTarget:n,showDownloadButton:i,downloadButtonText:l,displayPreview:s,previewHeight:c}=e,u=Wo.RichText.isEmpty(o)?(0,tl.__)("PDF embed"):(0,tl.sprintf)((0,tl.__)("Embed of %s."),o);return t&&(0,Et.jsxs)("div",{...Wo.useBlockProps.save(),children:[s&&(0,Et.jsx)(Et.Fragment,{children:(0,Et.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`$c}px`},"aria-label":u})}),!Wo.RichText.isEmpty(o)&&(0,Et.jsx)("a",{href:a,target:n,rel:n?"noreferrer noopener":void 0,children:(0,Et.jsx)(Wo.RichText.Content,{value:o})}),i&&(0,Et.jsx)("a",{href:t,className:"wp-block-file__button",download:!0,children:(0,Et.jsx)(Wo.RichText.Content,{value:l})})]})}},Zue=[$ue,Wue,que],QF=Zue;var aB=r(No()),ef=r(M()),Jd=r(A()),cr=r(S()),k_=r(H()),tH=r(we()),ol=r(B());var oH=r(Y()),nB=r(wo()),rH=r(ko());var Cr=r(B()),Sr=r(M()),YF=r(S());var sr=r(h());function XF({hrefs:e,openInNewWindow:t,showDownloadButton:o,changeLinkDestinationOption:a,changeOpenInNewWindow:n,changeShowDownloadButton:i,displayPreview:l,changeDisplayPreview:s,previewHeight:c,changePreviewHeight:u}){let{href:m,textLinkHref:p,attachmentPage:d}=e,f=G(),g=[{value:m,label:(0,Cr.__)("URL")}];return d&&(g=[{value:m,label:(0,Cr.__)("Media file")},{value:d,label:(0,Cr.__)("Attachment page")}]),(0,sr.jsx)(sr.Fragment,{children:(0,sr.jsxs)(YF.InspectorControls,{children:[m.endsWith(".pdf")&&(0,sr.jsxs)(Sr.__experimentalToolsPanel,{label:(0,Cr.__)("PDF settings"),resetAll:()=>{s(!0),u(600)},dropdownMenuProps:f,children:[(0,sr.jsx)(Sr.__experimentalToolsPanelItem,{label:(0,Cr.__)("Show inline embed"),isShownByDefault:!0,hasValue:()=>!l,onDeselect:()=>s(!0),children:(0,sr.jsx)(Sr.ToggleControl,{label:(0,Cr.__)("Show inline embed"),help:l?(0,Cr.__)("Note: Most phone and tablet browsers won't display embedded PDFs."):null,checked:!!l,onChange:s})}),l&&(0,sr.jsx)(Sr.__experimentalToolsPanelItem,{label:(0,Cr.__)("Height in pixels"),isShownByDefault:!0,hasValue:()=>c!==600,onDeselect:()=>u(600),children:(0,sr.jsx)(Sr.RangeControl,{__next40pxDefaultSize:!0,label:(0,Cr.__)("Height in pixels"),min:__,max:Math.max(rB,c),value:c,onChange:u})})]}),(0,sr.jsxs)(Sr.__experimentalToolsPanel,{label:(0,Cr.__)("Settings"),resetAll:()=>{a(m),n(!1),i(!0)},dropdownMenuProps:f,children:[(0,sr.jsx)(Sr.__experimentalToolsPanelItem,{label:(0,Cr.__)("Link to"),isShownByDefault:!0,hasValue:()=>p!==m,onDeselect:()=>a(m),children:(0,sr.jsx)(Sr.SelectControl,{__next40pxDefaultSize:!0,label:(0,Cr.__)("Link to"),value:p,options:g,onChange:a})}),(0,sr.jsx)(Sr.__experimentalToolsPanelItem,{label:(0,Cr.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>n(!1),children:(0,sr.jsx)(Sr.ToggleControl,{label:(0,Cr.__)("Open in new tab"),checked:t,onChange:n})}),(0,sr.jsx)(Sr.__experimentalToolsPanelItem,{label:(0,Cr.__)("Show download button"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>i(!0),children:(0,sr.jsx)(Sr.ToggleControl,{label:(0,Cr.__)("Show download button"),checked:o,onChange:i})})]})]})})}var eH=()=>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)&&!(JF("AcroPDF.PDF")||JF("PDF.PdfCtrl"))),JF=e=>{let t;try{t=new window.ActiveXObject(e)}catch{t=void 0}return t};var So=r(h()),__=200,rB=2e3;function Kue({text:e,disabled:t}){let{createNotice:o}=(0,Jd.useDispatch)(nB.store),a=(0,tH.useCopyToClipboard)(e,()=>{o("info",(0,ol.__)("Copied URL to clipboard."),{isDismissible:!0,type:"snackbar"})});return(0,So.jsx)(ef.ToolbarButton,{className:"components-clipboard-toolbar-button",ref:a,disabled:t,children:(0,ol.__)("Copy URL")})}function Que({attributes:e,isSelected:t,setAttributes:o,clientId:a}){let{id:n,fileName:i,href:l,textLinkHref:s,textLinkTarget:c,showDownloadButton:u,downloadButtonText:m,displayPreview:p,previewHeight:d}=e,[f,g]=(0,k_.useState)(e.blob),{media:b}=(0,Jd.useSelect)(I=>({media:n===void 0?void 0:I(oH.store).getEntityRecord("postType","attachment",n)}),[n]),{createErrorNotice:y}=(0,Jd.useDispatch)(nB.store),{toggleSelection:v,__unstableMarkNextChangeAsNotPersistent:_}=(0,Jd.useDispatch)(cr.store);Hc({url:f,onChange:x,onError:k}),(0,k_.useEffect)(()=>{cr.RichText.isEmpty(m)&&(_(),o({downloadButtonText:(0,ol._x)("Download","button label")}))},[]);function x(I){if(!I||!I.url){o({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,aB.isBlobURL)(I.url)){g(I.url);return}let F=(I.mime||I.mime_type)==="application/pdf"||(0,rH.getFilename)(I.url).toLowerCase().endsWith(".pdf"),W={displayPreview:F?e.displayPreview??!0:void 0,previewHeight:F?e.previewHeight??600:void 0};o({href:I.url,fileName:I.title,textLinkHref:I.url,id:I.id,fileId:`wp-block-file--media-$a}`,blob:void 0,...W}),g()}function k(I){o({href:void 0}),y(I,{type:"snackbar"})}function C(I){o({textLinkHref:I})}function T(I){o({textLinkTarget:I?"_blank":!1})}function N(I){o({showDownloadButton:I})}function P(I){o({displayPreview:I})}function L(I,F,W,j){v(!0);let K=parseInt(d+j.height,10);o({previewHeight:K})}function R(I){let F=Math.max(parseInt(I,10),__);o({previewHeight:F})}let z=b&&b.link,O=(0,cr.useBlockProps)({className:w(!!f&&(0,ef.__unstableGetAnimateClassName)({type:"loading"}),{"is-transient":!!f})}),V=eH()&&p;return!l&&!f?(0,So.jsx)("div",{...O,children:(0,So.jsx)(cr.MediaPlaceholder,{icon:(0,So.jsx)(cr.BlockIcon,{icon:Th}),labels:{title:(0,ol.__)("File"),instructions:(0,ol.__)("Drag and drop a file, upload, or choose from your library.")},onSelect:x,onError:k,accept:"*"})}):(0,So.jsxs)(So.Fragment,{children:[(0,So.jsx)(XF,{hrefs:{href:l||f,textLinkHref:s,attachmentPage:z},openInNewWindow:!!c,showDownloadButton:u,changeLinkDestinationOption:C,changeOpenInNewWindow:T,changeShowDownloadButton:N,displayPreview:p,changeDisplayPreview:P,previewHeight:d,changePreviewHeight:R}),(0,So.jsxs)(cr.BlockControls,{group:"other",children:[(0,So.jsx)(cr.MediaReplaceFlow,{mediaId:n,mediaURL:l,accept:"*",onSelect:x,onError:k,onReset:()=>x(void 0)}),(0,So.jsx)(Kue,{text:l,disabled:(0,aB.isBlobURL)(l)})]}),(0,So.jsxs)("div",{...O,children:[V&&(0,So.jsxs)(ef.ResizableBox,{size:{height:d,width:"100%"},minHeight:__,maxHeight:rB,grid:[1,10],enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:()=>v(!1),onResizeStop:L,showHandle:t,children:[(0,So.jsx)("object",{className:"wp-block-file__preview",data:l,type:"application/pdf","aria-label":(0,ol.__)("Embed of the selected PDF file.")}),!t&&(0,So.jsx)("div",{className:"wp-block-file__preview-overlay"})]}),(0,So.jsxs)("div",{className:"wp-block-file__content-wrapper",children:[(0,So.jsx)(cr.RichText,{identifier:"fileName",tagName:"a",value:i,placeholder:(0,ol.__)("Write file name\u2026"),withoutInteractiveFormatting:!0,onChange:I=>o({fileName:b0(I)}),href:s}),u&&(0,So.jsx)("div",{className:"wp-block-file__button-richtext-wrapper",children:(0,So.jsx)(cr.RichText,{identifier:"downloadButtonText",tagName:"div","aria-label":(0,ol.__)("Download button text"),className:w("wp-block-file__button",(0,cr.__experimentalGetElementClassName)("button")),value:m,withoutInteractiveFormatting:!0,placeholder:(0,ol.__)("Add text\u2026"),onChange:I=>o({downloadButtonText:b0(I)})})})]})]})]})}var aH=Que;var w_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/file",title:"File",category:"media",description:"Add a link to a downloadable file.",keywords:["document","pdf","download"],textdomain:"default",attributes:{id:{type:"number"},blob:{type:"string",role:"local"},href:{type:"string",role:"content"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},fileName:{type:"rich-text",source:"rich-text",selector:"a:not([download])",role:"content"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href",role:"content"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"rich-text",source:"rich-text",selector:"a[download]",role:"content"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}},interactivity:!0},editorStyle:"wp-block-file-editor",style:"wp-block-file"};var tc=r(S()),rl=r(h());function nH({attributes:e}){let{href:t,fileId:o,fileName:a,textLinkHref:n,textLinkTarget:i,showDownloadButton:l,downloadButtonText:s,displayPreview:c,previewHeight:u}=e,m=tc.RichText.isEmpty(a)?"PDF embed":a.toString(),p=!tc.RichText.isEmpty(a),d=p?o:void 0;return t&&(0,rl.jsxs)("div",{...tc.useBlockProps.save(),children:[c&&(0,rl.jsx)(rl.Fragment,{children:(0,rl.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`$u}px`},"aria-label":m})}),p&&(0,rl.jsx)("a",{id:d,href:n,target:i,rel:i?"noreferrer noopener":void 0,children:(0,rl.jsx)(tc.RichText.Content,{value:a})}),l&&(0,rl.jsx)("a",{href:t,className:w("wp-block-file__button",(0,tc.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":d,children:(0,rl.jsx)(tc.RichText.Content,{value:s})})]})}var O0=r(No()),al=r(U()),C_=r(A()),S_=r(Y()),iH=r(ko()),Xue={from:[{type:"files",isMatch(e){return e.length>0},priority:15,transform:e=>{let t=[];return e.forEach(o=>{let a=(0,O0.createBlobURL)(o);o.type.startsWith("video/")?t.push((0,al.createBlock)("core/video",{blob:(0,O0.createBlobURL)(o)})):o.type.startsWith("image/")?t.push((0,al.createBlock)("core/image",{blob:(0,O0.createBlobURL)(o)})):o.type.startsWith("audio/")?t.push((0,al.createBlock)("core/audio",{blob:(0,O0.createBlobURL)(o)})):t.push((0,al.createBlock)("core/file",{blob:a,fileName:o.name}))}),t}},{type:"block",blocks:["core/audio"],transform:e=>(0,al.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],transform:e=>(0,al.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],transform:e=>(0,al.createBlock)("core/file",{href:e.url,fileName:e.caption||(0,iH.getFilename)(e.url),textLinkHref:e.url,id:e.id,anchor:e.anchor})}],to:[{type:"block",blocks:["core/audio"],isMatch:({id:e})=>{if(!e)return!1;let{getEntityRecord:t}=(0,C_.select)(S_.store),o=t("postType","attachment",e);return!!o&&o.mime_type.includes("audio")},transform:e=>(0,al.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],isMatch:({id:e})=>{if(!e)return!1;let{getEntityRecord:t}=(0,C_.select)(S_.store),o=t("postType","attachment",e);return!!o&&o.mime_type.includes("video")},transform:e=>(0,al.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],isMatch:({id:e})=>{if(!e)return!1;let{getEntityRecord:t}=(0,C_.select)(S_.store),o=t("postType","attachment",e);return!!o&&o.mime_type.includes("image")},transform:e=>(0,al.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}]},lH=Xue;var{fieldsKey:Jue,formKey:eme}=Q(sH.privateApis),{name:cH}=w_,T_={icon:Th,example:{attributes:{href:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg",fileName:(0,tf._x)("Armstrong_Small_Step","Name of the file")}},transforms:lH,deprecated:QF,edit:aH,save:nH};window.__experimentalContentOnlyInspectorFields&&(T_[Jue]=[{id:"file",label:(0,tf.__)("File"),type:"media",mapping:{id:"id",url:"href"},args:{allowedTypes:[],multiple:!1}},{id:"fileName",label:(0,tf.__)("Filename"),type:"richtext"},{id:"downloadButtonText",label:(0,tf.__)("Button Text"),type:"richtext"}],T_[eme]={fields:["file"]});var tme=()=>D({name:cH,metadata:w_,settings:T_});var uB={};$(uB,{init:()=>lme,metadata:()=>N_,name:()=>hH,settings:()=>vH});var ur=r(B()),nl=r(S()),il=r(M()),uH=r(A());var lB=r(B()),B_=["core/form-submission-notification",{type:"success"},[["core/paragraph",{content:'<mark style="background-color:rgba(0, 0, 0, 0);color:#345C00" class="has-inline-color">'+(0,lB.__)("Your form has been submitted successfully")+"</mark>"}]]],P_=["core/form-submission-notification",{type:"error"},[["core/paragraph",{content:'<mark style="background-color:rgba(0, 0, 0, 0);color:#CF2E2E" class="has-inline-color">'+(0,lB.__)("There was an error submitting your form.")+"</mark>"}]]];var Sa=r(h()),ome=[B_,P_,["core/form-input",{type:"text",label:(0,ur.__)("Name"),required:!0}],["core/form-input",{type:"email",label:(0,ur.__)("Email"),required:!0}],["core/form-input",{type:"textarea",label:(0,ur.__)("Comment"),required:!0}],["core/form-submit-button",{}]],rme=({attributes:e,setAttributes:t,clientId:o})=>{let a=G(),n=()=>{t({submissionMethod:"email",email:void 0,action:void 0,method:"post"})},{action:i,method:l,email:s,submissionMethod:c}=e,u=(0,nl.useBlockProps)(),{hasInnerBlocks:m}=(0,uH.useSelect)(d=>{let{getBlock:f}=d(nl.store),g=f(o);return{hasInnerBlocks:!!(g&&g.innerBlocks.length)}},[o]),p=(0,nl.useInnerBlocksProps)(u,{template:ome,renderAppender:m?void 0:nl.InnerBlocks.ButtonBlockAppender});return(0,Sa.jsxs)(Sa.Fragment,{children:[(0,Sa.jsx)(nl.InspectorControls,{children:(0,Sa.jsxs)(il.__experimentalToolsPanel,{dropdownMenuProps:a,label:(0,ur.__)("Settings"),resetAll:n,children:[(0,Sa.jsx)(il.__experimentalToolsPanelItem,{hasValue:()=>c!=="email",label:(0,ur.__)("Submissions method"),onDeselect:()=>t({submissionMethod:"email"}),isShownByDefault:!0,children:(0,Sa.jsx)(il.SelectControl,{__next40pxDefaultSize:!0,label:(0,ur.__)("Submissions method"),options:[{label:(0,ur.__)("Send email"),value:"email"},{label:(0,ur.__)("- Custom -"),value:"custom"}],value:c,onChange:d=>t({submissionMethod:d}),help:c==="custom"?(0,ur.__)('Select the method to use for form submissions. Additional options for the "custom" mode can be found in the "Advanced" section.'):(0,ur.__)("Select the method to use for form submissions.")})}),c==="email"&&(0,Sa.jsx)(il.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,ur.__)("Email for form submissions"),onDeselect:()=>t({email:void 0,action:void 0,method:"post"}),isShownByDefault:!0,children:(0,Sa.jsx)(il.TextControl,{__next40pxDefaultSize:!0,autoComplete:"off",label:(0,ur.__)("Email for form submissions"),value:s||"",required:!0,onChange:d=>{t({email:d}),t({action:`mailto:$d}`}),t({method:"post"})},help:(0,ur.__)("The email address where form submissions will be sent. Separate multiple email addresses with a comma."),type:"email"})})]})}),c!=="email"&&(0,Sa.jsxs)(nl.InspectorControls,{group:"advanced",children:[(0,Sa.jsx)(il.SelectControl,{__next40pxDefaultSize:!0,label:(0,ur.__)("Method"),options:[{label:"Get",value:"get"},{label:"Post",value:"post"}],value:l,onChange:d=>t({method:d}),help:(0,ur.__)("Select the method to use for form submissions.")}),(0,Sa.jsx)(il.TextControl,{__next40pxDefaultSize:!0,autoComplete:"off",label:(0,ur.__)("Form action"),value:i,onChange:d=>{t({action:d})},help:(0,ur.__)("The URL where the form should be submitted."),type:"url"})]}),(0,Sa.jsx)("form",{...p,encType:c==="email"?"text/plain":null})]})},mH=rme;var N_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form",title:"Form",category:"common",allowedBlocks:["core/paragraph","core/heading","core/form-input","core/form-submit-button","core/form-submission-notification","core/group","core/columns"],description:"A form.",keywords:["container","wrapper","row","section"],textdomain:"default",icon:"feedback",attributes:{submissionMethod:{type:"string",default:"email"},method:{type:"string",default:"post"},action:{type:"string"},email:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}}};var I_=r(S()),sB=r(h());function pH({attributes:e}){let t=I_.useBlockProps.save(),{submissionMethod:o}=e;return(0,sB.jsx)("form",{...t,encType:o==="email"?"text/plain":null,children:(0,sB.jsx)(I_.InnerBlocks.Content,{})})}var wi=r(B());var nme=[{name:"comment-form",title:(0,wi.__)("Experimental Comment form"),description:(0,wi.__)("A comment form for posts and pages."),attributes:{submissionMethod:"custom",action:"{SITE_URL}/wp-comments-post.php",method:"post",anchor:"comment-form"},isDefault:!1,innerBlocks:[["core/form-input",{type:"text",name:"author",label:(0,wi.__)("Name"),required:!0,visibilityPermissions:"logged-out"}],["core/form-input",{type:"email",name:"email",label:(0,wi.__)("Email"),required:!0,visibilityPermissions:"logged-out"}],["core/form-input",{type:"textarea",name:"comment",label:(0,wi.__)("Comment"),required:!0,visibilityPermissions:"all"}],["core/form-submit-button",{}]],scope:["inserter","transform"],isActive:e=>!e?.type||e?.type==="text"},{name:"wp-privacy-form",title:(0,wi.__)("Experimental Privacy Request Form"),keywords:["GDPR"],description:(0,wi.__)("A form to request data exports and/or deletion."),attributes:{submissionMethod:"custom",action:"",method:"post",anchor:"gdpr-form"},isDefault:!1,innerBlocks:[B_,P_,["core/paragraph",{content:(0,wi.__)("To request an export or deletion of your personal data on this site, please fill-in the form below. You can define the type of request you wish to perform, and your email address. Once the form is submitted, you will receive a confirmation email with instructions on the next steps.")}],["core/form-input",{type:"email",name:"email",label:(0,wi.__)("Enter your email address."),required:!0,visibilityPermissions:"all"}],["core/form-input",{type:"checkbox",name:"export_personal_data",label:(0,wi.__)("Request data export"),required:!1,visibilityPermissions:"all"}],["core/form-input",{type:"checkbox",name:"remove_personal_data",label:(0,wi.__)("Request data deletion"),required:!1,visibilityPermissions:"all"}],["core/form-submit-button",{}],["core/form-input",{type:"hidden",name:"wp-action",value:"wp_privacy_send_request"}],["core/form-input",{type:"hidden",name:"wp-privacy-request",value:"1"}]],scope:["inserter","transform"],isActive:e=>!e?.type||e?.type==="text"}],dH=nme;var Yl=r(S()),cB=r(h()),ime={supports:{},attributes:{submissionMethod:{type:"string",default:"email"},method:{type:"string",default:"post"},action:{type:"string"},email:{type:"string"},anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},fontFamily:{type:"string"},fontSize:{type:"string"}},save({attributes:e}){let{submissionMethod:t}=e,o=(0,Yl.__experimentalGetColorClassesAndStyles)(e),a=(0,Yl.getTypographyClassesAndStyles)(e),n=(0,Yl.__experimentalGetSpacingClassesAndStyles)(e),i=Yl.useBlockProps.save({style:{...o.style,...a.style,...n.style},id:e.anchor});return(0,cB.jsx)("form",{...i,className:"wp-block-form",encType:t==="email"?"text/plain":null,children:(0,cB.jsx)(Yl.InnerBlocks.Content,{})})}},fH=[ime];var gH=r(Js()),{name:hH}=N_,vH={edit:mH,save:pH,deprecated:fH,variations:dH,example:{}},lme=()=>{let e=["core/form"];return(0,gH.addFilter)("blockEditor.__unstableCanInsertBlockType","core/block-library/preventInsertingFormIntoAnotherForm",(t,o,a,{getBlock:n,getBlockParentsByBlockName:i})=>{if(o.name!=="core/form")return t;for(let l of e)if(n(a)?.name===l||i(a,l).length)return!1;return!0}),D({name:hH,metadata:N_,settings:vH})};var mB={};$(mB,{init:()=>yme,metadata:()=>E_,name:()=>EH,settings:()=>LH});var kH=r(U0()),ll=r(S()),wH=r(oc()),Fn=r(h()),CH=e=>(0,kH.default)((0,wH.__unstableStripHTML)(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,""),pme={attributes:{type:{type:"string",default:"text"},name:{type:"string"},label:{type:"string",default:"Label",selector:".wp-block-form-input__label-content",source:"html",role:"content"},inlineLabel:{type:"boolean",default:!1},required:{type:"boolean",default:!1,selector:".wp-block-form-input__input",source:"attribute",attribute:"required"},placeholder:{type:"string",selector:".wp-block-form-input__input",source:"attribute",attribute:"placeholder",role:"content"},value:{type:"string",default:"",selector:"input",source:"attribute",attribute:"value"},visibilityPermissions:{type:"string",default:"all"}},supports:{anchor:!0,reusable:!1,spacing:{margin:["top","bottom"]},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},save({attributes:e}){let{type:t,name:o,label:a,inlineLabel:n,required:i,placeholder:l,value:s}=e,c=(0,ll.__experimentalGetBorderClassesAndStyles)(e),u=(0,ll.__experimentalGetColorClassesAndStyles)(e),m={...c.style,...u.style},p=w("wp-block-form-input__input",u.className,c.className),d=t==="textarea"?"textarea":"input",f=ll.useBlockProps.save();return t==="hidden"?(0,Fn.jsx)("input",{type:t,name:o,value:s}):(0,Fn.jsx)("div",{...f,children:(0,Fn.jsxs)("label",{className:w("wp-block-form-input__label",{"is-label-inline":n}),children:[(0,Fn.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,Fn.jsx)(ll.RichText.Content,{value:a})}),(0,Fn.jsx)(d,{className:p,type:t==="textarea"?void 0:t,name:o||CH(a),required:i,"aria-required":i,placeholder:l||void 0,style:m})]})})}},dme={attributes:{type:{type:"string",default:"text"},name:{type:"string"},label:{type:"string",default:"Label",selector:".wp-block-form-input__label-content",source:"html",role:"content"},inlineLabel:{type:"boolean",default:!1},required:{type:"boolean",default:!1,selector:".wp-block-form-input__input",source:"attribute",attribute:"required"},placeholder:{type:"string",selector:".wp-block-form-input__input",source:"attribute",attribute:"placeholder",role:"content"},value:{type:"string",default:"",selector:"input",source:"attribute",attribute:"value"},visibilityPermissions:{type:"string",default:"all"}},supports:{className:!1,anchor:!0,reusable:!1,spacing:{margin:["top","bottom"]},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},save({attributes:e}){let{type:t,name:o,label:a,inlineLabel:n,required:i,placeholder:l,value:s}=e,c=(0,ll.__experimentalGetBorderClassesAndStyles)(e),u=(0,ll.__experimentalGetColorClassesAndStyles)(e),m={...c.style,...u.style},p=w("wp-block-form-input__input",u.className,c.className),d=t==="textarea"?"textarea":"input";return t==="hidden"?(0,Fn.jsx)("input",{type:t,name:o,value:s}):(0,Fn.jsxs)("label",{className:w("wp-block-form-input__label",{"is-label-inline":n}),children:[(0,Fn.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,Fn.jsx)(ll.RichText.Content,{value:a})}),(0,Fn.jsx)(d,{className:p,type:t==="textarea"?void 0:t,name:o||CH(a),required:i,"aria-required":i,placeholder:l||void 0,style:m})]})}},fme=[pme,dme],SH=fme;var rn=r(B()),sl=r(S()),Xl=r(M()),TH=r(H());var Io=r(h());function gme({attributes:e,setAttributes:t,className:o}){let{type:a,name:n,label:i,inlineLabel:l,required:s,placeholder:c,value:u}=e,m=(0,sl.useBlockProps)(),p=G(),d=(0,TH.useRef)(),f=a==="textarea"?"textarea":"input",g=(0,sl.__experimentalUseBorderProps)(e),b=(0,sl.__experimentalUseColorProps)(e);d.current&&d.current.focus();let y=a==="checkbox"||a==="radio",v=(0,Io.jsxs)(Io.Fragment,{children:[a!=="hidden"&&(0,Io.jsx)(sl.InspectorControls,{children:(0,Io.jsxs)(Xl.__experimentalToolsPanel,{label:(0,rn.__)("Settings"),resetAll:()=>{t({inlineLabel:!1,required:!1})},dropdownMenuProps:p,children:[a!=="checkbox"&&(0,Io.jsx)(Xl.__experimentalToolsPanelItem,{label:(0,rn.__)("Inline label"),hasValue:()=>!!l,onDeselect:()=>t({inlineLabel:!1}),isShownByDefault:!0,children:(0,Io.jsx)(Xl.CheckboxControl,{label:(0,rn.__)("Inline label"),checked:l,onChange:x=>{t({inlineLabel:x})}})}),(0,Io.jsx)(Xl.__experimentalToolsPanelItem,{label:(0,rn.__)("Required"),hasValue:()=>!!s,onDeselect:()=>t({required:!1}),isShownByDefault:!0,children:(0,Io.jsx)(Xl.CheckboxControl,{label:(0,rn.__)("Required"),checked:s,onChange:x=>{t({required:x})}})})]})}),(0,Io.jsx)(sl.InspectorControls,{group:"advanced",children:(0,Io.jsx)(Xl.TextControl,{__next40pxDefaultSize:!0,autoComplete:"off",label:(0,rn.__)("Name"),value:n,onChange:x=>{t({name:x})},help:(0,rn.__)('Affects the "name" attribute of the input element, and is used as a name for the form submission results.')})})]}),_=(0,Io.jsx)(sl.RichText,{tagName:"span",className:"wp-block-form-input__label-content",value:i,onChange:x=>t({label:x}),"aria-label":i?(0,rn.__)("Label"):(0,rn.__)("Empty label"),"data-empty":!i,placeholder:(0,rn.__)("Type the label for this input")});return a==="hidden"?(0,Io.jsxs)(Io.Fragment,{children:[v,(0,Io.jsx)("input",{type:"hidden",className:w(o,"wp-block-form-input__input",b.className,g.className),"aria-label":(0,rn.__)("Value"),value:u,onChange:x=>t({value:x.target.value})})]}):(0,Io.jsxs)("div",{...m,children:[v,(0,Io.jsxs)("span",{className:w("wp-block-form-input__label",{"is-label-inline":l||a==="checkbox"}),children:[!y&&_,(0,Io.jsx)(f,{type:a==="textarea"?void 0:a,className:w(o,"wp-block-form-input__input",b.className,g.className),"aria-label":(0,rn.__)("Optional placeholder text"),placeholder:c?void 0:(0,rn.__)("Optional placeholder\u2026"),value:c,onChange:x=>t({placeholder:x.target.value}),"aria-required":s,style:{...g.style,...b.style}}),y&&_]})]})}var BH=gme;var E_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form-input",title:"Input Field",category:"common",ancestor:["core/form"],description:"The basic building block for forms.",keywords:["input","form"],textdomain:"default",icon:"forms",attributes:{type:{type:"string",default:"text"},name:{type:"string"},label:{type:"rich-text",default:"Label",selector:".wp-block-form-input__label-content",source:"rich-text",role:"content"},inlineLabel:{type:"boolean",default:!1},required:{type:"boolean",default:!1,selector:".wp-block-form-input__input",source:"attribute",attribute:"required"},placeholder:{type:"string",selector:".wp-block-form-input__input",source:"attribute",attribute:"placeholder",role:"content"},value:{type:"string",default:"",selector:"input",source:"attribute",attribute:"value"},visibilityPermissions:{type:"string",default:"all"}},supports:{anchor:!0,reusable:!1,spacing:{margin:["top","bottom"]},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},style:["wp-block-form-input"]};var PH=r(U0()),rc=r(S()),NH=r(oc()),Jl=r(h()),vme=e=>(0,PH.default)((0,NH.__unstableStripHTML)(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,"");function IH({attributes:e}){let{type:t,name:o,label:a,inlineLabel:n,required:i,placeholder:l,value:s}=e,c=(0,rc.__experimentalGetBorderClassesAndStyles)(e),u=(0,rc.__experimentalGetColorClassesAndStyles)(e),m={...c.style,...u.style},p=w("wp-block-form-input__input",u.className,c.className),d=t==="textarea"?"textarea":"input",f=rc.useBlockProps.save(),g=t==="checkbox"||t==="radio";return t==="hidden"?(0,Jl.jsx)("input",{type:t,name:o,value:s}):(0,Jl.jsx)("div",{...f,children:(0,Jl.jsxs)("label",{className:w("wp-block-form-input__label",{"is-label-inline":n}),children:[!g&&(0,Jl.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,Jl.jsx)(rc.RichText.Content,{value:a})}),(0,Jl.jsx)(d,{className:p,type:t==="textarea"?void 0:t,name:o||vme(a),required:i,"aria-required":i,placeholder:l||void 0,style:m}),g&&(0,Jl.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,Jl.jsx)(rc.RichText.Content,{value:a})})]})})}var Ta=r(B()),bme=[{name:"text",title:(0,Ta.__)("Text Input"),icon:"edit-page",description:(0,Ta.__)("A generic text input."),attributes:{type:"text"},isDefault:!0,scope:["inserter","transform"],isActive:e=>!e?.type||e?.type==="text"},{name:"textarea",title:(0,Ta.__)("Textarea Input"),icon:"testimonial",description:(0,Ta.__)("A textarea input to allow entering multiple lines of text."),attributes:{type:"textarea"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="textarea"},{name:"checkbox",title:(0,Ta.__)("Checkbox Input"),description:(0,Ta.__)("A simple checkbox input."),icon:"forms",attributes:{type:"checkbox",inlineLabel:!0},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="checkbox"},{name:"email",title:(0,Ta.__)("Email Input"),icon:"email",description:(0,Ta.__)("Used for email addresses."),attributes:{type:"email"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="email"},{name:"url",title:(0,Ta.__)("URL Input"),icon:"admin-site",description:(0,Ta.__)("Used for URLs."),attributes:{type:"url"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="url"},{name:"tel",title:(0,Ta.__)("Telephone Input"),icon:"phone",description:(0,Ta.__)("Used for phone numbers."),attributes:{type:"tel"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="tel"},{name:"number",title:(0,Ta.__)("Number Input"),icon:"edit-page",description:(0,Ta.__)("A numeric input."),attributes:{type:"number"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="number"}],DH=bme;var{name:EH}=E_,LH={deprecated:SH,edit:BH,save:IH,variations:DH,example:{}},yme=()=>D({name:EH,metadata:E_,settings:LH});var dB={};$(dB,{init:()=>wme,metadata:()=>M_,name:()=>VH,settings:()=>FH});var MH=r(B()),L_=r(S()),RH=r(h()),xme=[["core/buttons",{},[["core/button",{text:(0,MH.__)("Submit"),tagName:"button",type:"submit"}]]]],_me=()=>{let e=(0,L_.useBlockProps)(),t=(0,L_.useInnerBlocksProps)(e,{template:xme,templateLock:"all"});return(0,RH.jsx)("div",{className:"wp-block-form-submit-wrapper",...t})},zH=_me;var M_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form-submit-button",title:"Form Submit Button",category:"common",icon:"button",ancestor:["core/form"],allowedBlocks:["core/buttons","core/button"],description:"A submission button for forms.",keywords:["submit","button","form"],textdomain:"default",style:["wp-block-form-submit-button"]};var R_=r(S()),pB=r(h());function AH(){let e=R_.useBlockProps.save();return(0,pB.jsx)("div",{className:"wp-block-form-submit-wrapper",...e,children:(0,pB.jsx)(R_.InnerBlocks.Content,{})})}var{name:VH}=M_,FH={edit:zH,save:AH,example:{}},wme=()=>D({name:VH,metadata:M_,settings:FH});var fB={};$(fB,{init:()=>Pme,metadata:()=>A_,name:()=>WH,settings:()=>qH});var z_=r(B()),uu=r(S()),HH=r(A());var jH=r(h()),Cme=[["core/paragraph",{content:(0,z_.__)("Enter the message you wish displayed for form submission error/success, and select the type of the message (success/error) from the block's options.")}]],Sme=({attributes:e,clientId:t})=>{let{type:o}=e,a=(0,uu.useBlockProps)({className:w("wp-block-form-submission-notification",{[`form-notification-type-$o}`]:o})}),{hasInnerBlocks:n}=(0,HH.useSelect)(l=>{let{getBlock:s}=l(uu.store),c=s(t);return{hasInnerBlocks:!!(c&&c.innerBlocks.length)}},[t]),i=(0,uu.useInnerBlocksProps)(a,{template:Cme,renderAppender:n?void 0:uu.InnerBlocks.ButtonBlockAppender});return(0,jH.jsx)("div",{...i,"data-message-success":(0,z_.__)("Submission success notification"),"data-message-error":(0,z_.__)("Submission error notification")})},OH=Sme;var A_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form-submission-notification",title:"Form Submission Notification",category:"common",ancestor:["core/form"],description:"Provide a notification message after the form has been submitted.",keywords:["form","feedback","notification","message"],textdomain:"default",icon:"feedback",attributes:{type:{type:"string",default:"success"}}};var V_=r(S());var UH=r(h());function GH({attributes:e}){let{type:t}=e;return(0,UH.jsx)("div",{...V_.useInnerBlocksProps.save(V_.useBlockProps.save({className:w("wp-block-form-submission-notification",{[`form-notification-type-$t}`]:t})}))})}var lp=r(B()),Bme=[{name:"form-submission-success",title:(0,lp.__)("Form Submission Success"),description:(0,lp.__)("Success message for form submissions."),attributes:{type:"success"},isDefault:!0,innerBlocks:[["core/paragraph",{content:(0,lp.__)("Your form has been submitted successfully."),backgroundColor:"#00D084",textColor:"#000000",style:{elements:{link:{color:{text:"#000000"}}}}}]],scope:["inserter","transform"],isActive:e=>!e?.type||e?.type==="success"},{name:"form-submission-error",title:(0,lp.__)("Form Submission Error"),description:(0,lp.__)("Error/failure message for form submissions."),attributes:{type:"error"},isDefault:!1,innerBlocks:[["core/paragraph",{content:(0,lp.__)("There was an error submitting your form."),backgroundColor:"#CF2E2E",textColor:"#FFFFFF",style:{elements:{link:{color:{text:"#FFFFFF"}}}}}]],scope:["inserter","transform"],isActive:e=>!e?.type||e?.type==="error"}],$H=Bme;var{name:WH}=A_,qH={icon:km,edit:OH,save:GH,variations:$H,example:{}},Pme=()=>D({name:WH,metadata:A_,settings:qH});var SB={};$(SB,{init:()=>Zme,metadata:()=>H_,name:()=>Tj,settings:()=>Bj});var go=r(S()),QH=r(U());var es="none",ts="media",G0="lightbox",os="attachment",ZH="file",KH="post",$0="large";var Re=r(h()),YH="file",XH="post";function of(e){return Math.min(3,e?.images?.length)}function Nme(e,t){switch(t){case YH:return{href:e?.source_url||e?.url,linkDestination:ts};case XH:return{href:e?.link,linkDestination:os};case ts:return{href:e?.source_url||e?.url,linkDestination:ts};case os:return{href:e?.link,linkDestination:os};case es:return{href:void 0,linkDestination:es}}return{}}function rf(e){let t=e.linkTo?e.linkTo:"none";t==="post"?t="attachment":t==="file"&&(t="media");let o=e.images.map(l=>Ime(l,e.sizeSlug,t)),{images:a,ids:n,...i}=e;return[{...i,linkTo:t,allowResize:!1},o]}function Ime(e,t,o){return(0,QH.createBlock)("core/image",{...e.id&&{id:parseInt(e.id)},url:e.url,alt:e.alt,caption:e.caption,sizeSlug:t,...Nme(e,o)})}var Dme={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:o,imageCrop:a}=e,n=w("has-nested-images",{[`columns-$o}`]:o!==void 0,"columns-default":o===void 0,"is-cropped":a}),i=go.useBlockProps.save({className:n}),l=go.useInnerBlocksProps.save(i);return(0,Re.jsxs)("figure",{...l,children:[l.children,!go.RichText.isEmpty(t)&&(0,Re.jsx)(go.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:t})]})}},Eme={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:o=of(e),imageCrop:a,caption:n,linkTo:i}=e,l=`columns-$o} $a?"is-cropped":""}`;return(0,Re.jsxs)("figure",{...go.useBlockProps.save({className:l}),children:[(0,Re.jsx)("ul",{className:"blocks-gallery-grid",children:t.map(s=>{let c;switch(i){case YH:c=s.fullUrl||s.url;break;case XH:c=s.link;break}let u=(0,Re.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,Re.jsx)("li",{className:"blocks-gallery-item",children:(0,Re.jsxs)("figure",{children:[c?(0,Re.jsx)("a",{href:c,children:u}):u,!go.RichText.isEmpty(s.caption)&&(0,Re.jsx)(go.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:s.caption})]})},s.id||s.url)})}),!go.RichText.isEmpty(n)&&(0,Re.jsx)(go.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:n})]})},migrate(e){return rf(e)}},Lme={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 rf(e)},save({attributes:e}){let{images:t,columns:o=of(e),imageCrop:a,caption:n,linkTo:i}=e;return(0,Re.jsxs)("figure",{className:`columns-$o} $a?"is-cropped":""}`,children:[(0,Re.jsx)("ul",{className:"blocks-gallery-grid",children:t.map(l=>{let s;switch(i){case"media":s=l.fullUrl||l.url;break;case"attachment":s=l.link;break}let c=(0,Re.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,Re.jsx)("li",{className:"blocks-gallery-item",children:(0,Re.jsxs)("figure",{children:[s?(0,Re.jsx)("a",{href:s,children:c}):c,!go.RichText.isEmpty(l.caption)&&(0,Re.jsx)(go.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:l.caption})]})},l.id||l.url)})}),!go.RichText.isEmpty(n)&&(0,Re.jsx)(go.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:n})]})}},Mme={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 rf(e)},save({attributes:e}){let{images:t,columns:o=of(e),imageCrop:a,caption:n,linkTo:i}=e;return(0,Re.jsxs)("figure",{className:`columns-$o} $a?"is-cropped":""}`,children:[(0,Re.jsx)("ul",{className:"blocks-gallery-grid",children:t.map(l=>{let s;switch(i){case"media":s=l.fullUrl||l.url;break;case"attachment":s=l.link;break}let c=(0,Re.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,Re.jsx)("li",{className:"blocks-gallery-item",children:(0,Re.jsxs)("figure",{children:[s?(0,Re.jsx)("a",{href:s,children:c}):c,!go.RichText.isEmpty(l.caption)&&(0,Re.jsx)(go.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:l.caption})]})},l.id||l.url)})}),!go.RichText.isEmpty(n)&&(0,Re.jsx)(go.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:n})]})}},Rme={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:o=of(e),imageCrop:a,linkTo:n}=e;return(0,Re.jsx)("ul",{className:`columns-$o} $a?"is-cropped":""}`,children:t.map(i=>{let l;switch(n){case"media":l=i.fullUrl||i.url;break;case"attachment":l=i.link;break}let s=(0,Re.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,Re.jsx)("li",{className:"blocks-gallery-item",children:(0,Re.jsxs)("figure",{children:[l?(0,Re.jsx)("a",{href:l,children:s}):s,i.caption&&i.caption.length>0&&(0,Re.jsx)(go.RichText.Content,{tagName:"figcaption",value:i.caption})]})},i.id||i.url)})})},migrate(e){return rf(e)}},zme={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((o,a)=>!o&&t[a]!==null?!0:parseInt(o,10)!==t[a]))},migrate(e){return rf(e)},supports:{align:!0},save({attributes:e}){let{images:t,columns:o=of(e),imageCrop:a,linkTo:n}=e;return(0,Re.jsx)("ul",{className:`columns-$o} $a?"is-cropped":""}`,children:t.map(i=>{let l;switch(n){case"media":l=i.url;break;case"attachment":l=i.link;break}let s=(0,Re.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,Re.jsx)("li",{className:"blocks-gallery-item",children:(0,Re.jsxs)("figure",{children:[l?(0,Re.jsx)("a",{href:l,children:s}):s,i.caption&&i.caption.length>0&&(0,Re.jsx)(go.RichText.Content,{tagName:"figcaption",value:i.caption})]})},i.id||i.url)})})}},Ame={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:o=of(e),align:a,imageCrop:n,linkTo:i}=e,l=w(`columns-$o}`,{alignnone:a==="none","is-cropped":n});return(0,Re.jsx)("div",{className:l,children:t.map(s=>{let c;switch(i){case"media":c=s.url;break;case"attachment":c=s.link;break}let u=(0,Re.jsx)("img",{src:s.url,alt:s.alt,"data-id":s.id});return(0,Re.jsx)("figure",{className:"blocks-gallery-image",children:c?(0,Re.jsx)("a",{href:c,children:u}):u},s.id||s.url)})})},migrate(e){return rf(e)}},JH=[Dme,Eme,Lme,Mme,Rme,zme,Ame];var lt=r(M()),mr=r(S()),Tr=r(H()),Ce=r(B()),Z0=r(A()),yj=r(E()),xj=r(U()),wB=r(No()),_j=r(wo());var ej=r(S());var tj=r(h()),oj=(0,tj.jsx)(ej.BlockIcon,{icon:Eh});function gB(e){return e?Math.min(3,e):3}var rj=(e,t="large")=>{let o=Object.fromEntries(Object.entries(e??{}).filter(([n])=>["alt","id","link"].includes(n)));o.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e?.url||e?.source_url;let a=e?.sizes?.full?.url||e?.media_details?.sizes?.full?.source_url;return a&&(o.fullUrl=a),o};var rs=20,sp="none",af="media",nf="attachment",hB="custom",aj=["noreferrer","noopener"],mu=["image"];var vB=["flex","grid"],W0="full";function bB(e,t,o,a,n){switch(o||t){case ZH:case ts:return{href:e?.source_url||e?.url,linkDestination:af,lightbox:n?.enabled?{...a?.lightbox,enabled:!1}:void 0};case KH:case os:return{href:e?.link,linkDestination:nf,lightbox:n?.enabled?{...a?.lightbox,enabled:!1}:void 0};case G0:return{href:void 0,lightbox:n?.enabled?void 0:{...a?.lightbox,enabled:!0},linkDestination:sp};case es:return{href:void 0,linkDestination:sp,lightbox:void 0}}return{}}function nj(e){let[t,o=1]=e.split("/").map(Number),a=t/o;return a===1/0||a===0?NaN:a}function Vme(e){let t=e;return e!==void 0&&t&&(aj.forEach(o=>{let a=new RegExp("\\b"+o+"\\b","gi");t=t.replace(a,"")}),t!==e&&(t=t.trim()),t||(t=void 0)),t}function yB(e,{rel:t}){let o=e?"_blank":void 0,a;return!o&&!t?a=void 0:a=Vme(t),{linkTarget:o,rel:a}}function ij(e,t){let o=e?.media_details?.sizes?.[t]?.source_url;return o?{url:o,width:void 0,height:void 0,sizeSlug:t}:{}}function xB(e){return mu.some(t=>e.type.indexOf(t)===0)}var _B=r(B()),lj=r(E());var q0=r(h());function sj(e){let{attributes:t,isSelected:o,setAttributes:a,mediaPlaceholder:n,insertBlocksAfter:i,blockProps:l,__unstableLayoutClassNames:s,isContentLocked:c,multiGallerySelection:u}=e,{align:m,columns:p,imageCrop:d}=t;return(0,q0.jsxs)("figure",{...l,className:w(l.className,s,"blocks-gallery-grid",{[`align$m}`]:m,[`columns-$p}`]:p!==void 0,"columns-default":p===void 0,"is-cropped":d}),children:[l.children,o&&!l.children&&(0,q0.jsx)(lj.View,{className:"blocks-gallery-media-placeholder-wrapper",children:n}),(0,q0.jsx)(qa,{attributes:t,setAttributes:a,isSelected:o,insertBlocksAfter:i,showToolbarButton:!u&&!c,className:"blocks-gallery-caption",label:(0,_B.__)("Gallery caption text"),placeholder:(0,_B.__)("Add gallery caption")})]})}var cj=r(H());function uj(e,t,o){return(0,cj.useMemo)(()=>a(),[e,t]);function a(){if(!e||e.length===0)return;let{imageSizes:n}=o(),i={};t&&(i=e.reduce((s,c)=>{if(!c.id)return s;let u=n.reduce((m,p)=>{let d=c.sizes?.[p.slug]?.url,f=c.media_details?.sizes?.[p.slug]?.source_url;return{...m,[p.slug]:d||f}},{});return{...s,[parseInt(c.id,10)]:u}},{}));let l=Object.values(i);return n.filter(({slug:s})=>l.some(c=>c[s])).map(({name:s,slug:c})=>({value:c,label:s}))}}var F_=r(H());function mj(e,t){let[o,a]=(0,F_.useState)([]);return(0,F_.useMemo)(()=>n(),[e,t]);function n(){let i=!1,l=o.filter(c=>e.find(u=>c.clientId===u.clientId));l.length<o.length&&(i=!0),e.forEach(c=>{c.fromSavedContent&&!l.find(u=>u.id===c.id)&&(i=!0,l.push(c))});let s=e.filter(c=>!l.find(u=>c.clientId&&u.clientId===c.clientId)&&t?.find(u=>u.id===c.id)&&!c.fromSavedContent);return(i||s?.length>0)&&a([...l,...s]),s.length>0?s:null}}var dj=r(A()),fj=r(Y()),pj=[];function gj(e){return(0,dj.useSelect)(t=>{let o=e.map(a=>a.attributes.id).filter(a=>a!==void 0);return o.length===0?pj:t(fj.store).getEntityRecords("postType","attachment",{include:o.join(","),per_page:-1,orderby:"include"})??pj},[e])}var cp=r(S());function hj({blockGap:e,clientId:t}){let o="var( --wp--style--gallery-gap-default, var( --gallery-block--gutter-size, var( --wp--style--block-gap, 0.5em ) ) )",a=o,n=o,i;e&&(i=typeof e=="string"?(0,cp.__experimentalGetGapCSSValue)(e):(0,cp.__experimentalGetGapCSSValue)(e?.top)||o,n=typeof e=="string"?(0,cp.__experimentalGetGapCSSValue)(e):(0,cp.__experimentalGetGapCSSValue)(e?.left)||o,a=i===n?i:`$i} $n}`);let l=`#block-$t} { 15 --wp--style--unstable-gallery-gap: $n==="0"?"0px":n}; 16 gap: $a} 17 }`;return(0,cp.useStyleOverride)({css:l}),null}var Oe=r(h()),vj=8,bj=[{icon:wh,label:(0,Ce.__)("Link images to attachment pages"),value:os,noticeText:(0,Ce.__)("Attachment Pages")},{icon:Uc,label:(0,Ce.__)("Link images to media files"),value:ts,noticeText:(0,Ce.__)("Media Files")},{icon:_m,label:(0,Ce.__)("Enlarge on click"),value:G0,noticeText:(0,Ce.__)("Lightbox effect"),infoText:(0,Ce.__)("Scale images with a lightbox effect")},{icon:Lh,label:(0,Ce._x)("None","Media item link option"),value:es,noticeText:(0,Ce.__)("None")}],kB=["image"],Fme=Tr.Platform.isNative?(0,Ce.__)("Add media"):(0,Ce.__)("Drag and drop images, upload, or choose from your library."),Hme=Tr.Platform.isNative?{type:"stepper"}:{},jme={name:"core/image"},Ome=[];function kj(e){let{setAttributes:t,attributes:o,className:a,clientId:n,isSelected:i,insertBlocksAfter:l,isContentLocked:s,onFocus:c}=e,[u,m,p,d]=(0,mr.useSettings)("blocks.core/image.lightbox","dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),f=u?.allowEditing?bj:bj.filter(q=>q.value!==G0),{columns:g,imageCrop:b,randomOrder:y,linkTarget:v,linkTo:_,sizeSlug:x,aspectRatio:k}=o,{__unstableMarkNextChangeAsNotPersistent:C,replaceInnerBlocks:T,updateBlockAttributes:N,selectBlock:P}=(0,Z0.useDispatch)(mr.store),{createSuccessNotice:L,createErrorNotice:R}=(0,Z0.useDispatch)(_j.store),{getBlock:z,getSettings:O,innerBlockImages:V,blockWasJustInserted:I,multiGallerySelection:F}=(0,Z0.useSelect)(q=>{let{getBlockName:Be,getMultiSelectedBlockClientIds:ze,getSettings:Fe,getBlock:He,wasBlockJustInserted:Xt}=q(mr.store),tr=ze();return{getBlock:He,getSettings:Fe,innerBlockImages:He(n)?.innerBlocks??Ome,blockWasJustInserted:Xt(n,"inserter_menu"),multiGallerySelection:tr.length&&tr.every(Pt=>Be(Pt)==="core/gallery")}},[n]),W=(0,Tr.useMemo)(()=>V?.map(q=>({clientId:q.clientId,id:q.attributes.id,url:q.attributes.url,attributes:q.attributes,fromSavedContent:!!q.originalContent})),[V]),j=gj(V),K=mj(W,j),Z=p?.map(({name:q,ratio:Be})=>({label:q,value:Be})),te=m?.map(({name:q,ratio:Be})=>({label:q,value:Be})),X=[{label:(0,Ce._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...d?te||[]:[],...Z||[]];(0,Tr.useEffect)(()=>{K?.forEach(q=>{C(),N(q.clientId,{...ee(q.attributes),id:q.id,align:void 0})})},[K]);let J=uj(j,i,O);function ee(q){let Be=q.id?j.find(({id:He})=>He===q.id):null,ze;q.className&&q.className!==""&&(ze=q.className);let Fe;return q.linkTarget||q.rel?Fe={linkTarget:q.linkTarget,rel:q.rel}:Fe=yB(v,o),{...rj(Be,x),...bB(Be,_,q?.linkDestination),...Fe,className:ze,sizeSlug:x,caption:q.caption.length>0?q.caption:Be.caption?.raw,alt:q.alt||Be.alt_text,aspectRatio:k==="auto"?void 0:k}}function ne(q){let Be=Tr.Platform.isNative&&q.id?j.find(({id:Fe})=>Fe===q.id):null,ze=Be?Be?.media_type:q.type;return kB.some(Fe=>ze?.indexOf(Fe)===0)||q.blob}function re(q){let Be=Object.prototype.toString.call(q)==="[object FileList]",ze=Be?Array.from(q).map(Ze=>Ze.url?Ze:{blob:(0,wB.createBlobURL)(Ze)}):q;ze.every(ne)||R((0,Ce.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});let Fe=ze.filter(Ze=>Ze.url||ne(Ze)).map(Ze=>Ze.url?Ze:{blob:Ze.blob||(0,wB.createBlobURL)(Ze)}),He=Fe.reduce((Ze,or,Ur)=>(Ze[or.id]=Ur,Ze),{}),Xt=Be?V:V.filter(Ze=>Fe.find(or=>or.id===Ze.attributes.id)),Pt=Fe.filter(Ze=>!Xt.find(or=>Ze.id===or.attributes.id)).map(Ze=>(0,xj.createBlock)("core/image",{id:Ze.id,blob:Ze.blob,url:Ze.url,caption:Ze.caption,alt:Ze.alt}));T(n,Xt.concat(Pt).sort((Ze,or)=>He[Ze.attributes.id]-He[or.attributes.id])),Pt?.length>0&&P(Pt[0].clientId)}function se(q){R(q,{type:"snackbar"})}function ue(q){t({linkTo:q});let Be={},ze=[];z(n).innerBlocks.forEach(He=>{ze.push(He.clientId);let Xt=He.attributes.id?j.find(({id:tr})=>tr===He.attributes.id):null;Be[He.clientId]=bB(Xt,q,!1,He.attributes,u)}),N(ze,Be,{uniqueByBlock:!0});let Fe=[...f].find(He=>He.value===q);L((0,Ce.sprintf)((0,Ce.__)("All gallery image links updated to: %s"),Fe.noticeText),{id:"gallery-attributes-linkTo",type:"snackbar"})}function Ne(q){t({columns:q})}function Le(){t({imageCrop:!b})}function ie(){t({randomOrder:!y})}function Ee(q){let Be=q?"_blank":void 0;t({linkTarget:Be});let ze={},Fe=[];z(n).innerBlocks.forEach(Xt=>{Fe.push(Xt.clientId),ze[Xt.clientId]=yB(Be,Xt.attributes)}),N(Fe,ze,{uniqueByBlock:!0});let He=q?(0,Ce.__)("All gallery images updated to open in new tab"):(0,Ce.__)("All gallery images updated to not open in new tab");L(He,{id:"gallery-attributes-openInNewTab",type:"snackbar"})}function de(q){t({sizeSlug:q});let Be={},ze=[];z(n).innerBlocks.forEach(He=>{ze.push(He.clientId);let Xt=He.attributes.id?j.find(({id:tr})=>tr===He.attributes.id):null;Be[He.clientId]=ij(Xt,q)}),N(ze,Be,{uniqueByBlock:!0});let Fe=J.find(He=>He.value===q);L((0,Ce.sprintf)((0,Ce.__)("All gallery image sizes updated to: %s"),Fe?.label??q),{id:"gallery-attributes-sizeSlug",type:"snackbar"})}function oe(q){t({aspectRatio:q});let Be={},ze=[];z(n).innerBlocks.forEach(He=>{ze.push(He.clientId),Be[He.clientId]={aspectRatio:q==="auto"?void 0:q}}),N(ze,Be,!0);let Fe=X.find(He=>He.value===q);L((0,Ce.sprintf)((0,Ce.__)("All gallery images updated to aspect ratio: %s"),Fe?.label||q),{id:"gallery-attributes-aspectRatio",type:"snackbar"})}(0,Tr.useEffect)(()=>{_||(C(),t({linkTo:window?.wp?.media?.view?.settings?.defaultProps?.link||es}))},[_]);let ce=!!W.length,ke=ce&&W.some(q=>!!q.id),fe=W.some(q=>Tr.Platform.isNative?q.url?.indexOf("file:")===0:!q.id&&q.url?.indexOf("blob:")===0),rt=Tr.Platform.select({web:{addToGallery:!1,disableMediaButtons:fe,value:{}},native:{addToGallery:ke,isAppender:ce,disableMediaButtons:ce&&!i||fe,value:ke?W:{},autoOpenMediaUpload:!ce&&i&&I,onFocus:c}}),ht=(0,Oe.jsx)(mr.MediaPlaceholder,{handleUpload:!1,icon:oj,labels:{title:(0,Ce.__)("Gallery"),instructions:Fme},onSelect:re,allowedTypes:kB,multiple:!0,onError:se,...rt}),yt=(0,mr.useBlockProps)({className:w(a,"has-nested-images")}),uo=Tr.Platform.isNative&&{marginHorizontal:0,marginVertical:0},qe=(0,mr.useInnerBlocksProps)(yt,{defaultBlock:jme,directInsert:!0,orientation:"horizontal",renderAppender:!1,...uo}),Yt=G();if(!ce)return(0,Oe.jsxs)(yj.View,{...qe,children:[qe.children,ht]});let ua=_&&_!=="none";return(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsxs)(mr.InspectorControls,{children:[Tr.Platform.isWeb&&(0,Oe.jsxs)(lt.__experimentalToolsPanel,{label:(0,Ce.__)("Settings"),resetAll:()=>{t({columns:void 0,imageCrop:!0,randomOrder:!1}),oe("auto"),x!==$0&&de($0),v&&Ee(!1)},dropdownMenuProps:Yt,children:[W.length>1&&(0,Oe.jsx)(lt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Ce.__)("Columns"),hasValue:()=>!!g&&g!==W.length,onDeselect:()=>Ne(void 0),children:(0,Oe.jsx)(lt.RangeControl,{label:(0,Ce.__)("Columns"),value:g||gB(W.length),onChange:Ne,min:1,max:Math.min(vj,W.length),required:!0,__next40pxDefaultSize:!0})}),J?.length>0&&(0,Oe.jsx)(lt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Ce.__)("Resolution"),hasValue:()=>x!==$0,onDeselect:()=>de($0),children:(0,Oe.jsx)(lt.SelectControl,{label:(0,Ce.__)("Resolution"),help:(0,Ce.__)("Select the size of the source images."),value:x,options:J,onChange:de,hideCancelButton:!0,size:"__unstable-large"})}),(0,Oe.jsx)(lt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Ce.__)("Crop images to fit"),hasValue:()=>!b,onDeselect:()=>t({imageCrop:!0}),children:(0,Oe.jsx)(lt.ToggleControl,{label:(0,Ce.__)("Crop images to fit"),checked:!!b,onChange:Le})}),(0,Oe.jsx)(lt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Ce.__)("Randomize order"),hasValue:()=>!!y,onDeselect:()=>t({randomOrder:!1}),children:(0,Oe.jsx)(lt.ToggleControl,{label:(0,Ce.__)("Randomize order"),checked:!!y,onChange:ie})}),ua&&(0,Oe.jsx)(lt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Ce.__)("Open images in new tab"),hasValue:()=>!!v,onDeselect:()=>Ee(!1),children:(0,Oe.jsx)(lt.ToggleControl,{label:(0,Ce.__)("Open images in new tab"),checked:v==="_blank",onChange:Ee})}),X.length>1&&(0,Oe.jsx)(lt.__experimentalToolsPanelItem,{hasValue:()=>!!k&&k!=="auto",label:(0,Ce.__)("Aspect ratio"),onDeselect:()=>oe("auto"),isShownByDefault:!0,children:(0,Oe.jsx)(lt.SelectControl,{__next40pxDefaultSize:!0,label:(0,Ce.__)("Aspect ratio"),help:(0,Ce.__)("Set a consistent aspect ratio for all images in the gallery."),value:k,options:X,onChange:oe})})]}),Tr.Platform.isNative&&(0,Oe.jsxs)(lt.PanelBody,{title:(0,Ce.__)("Settings"),children:[W.length>1&&(0,Oe.jsx)(lt.RangeControl,{label:(0,Ce.__)("Columns"),value:g||gB(W.length),onChange:Ne,min:1,max:Math.min(vj,W.length),...Hme,required:!0,__next40pxDefaultSize:!0}),J?.length>0&&(0,Oe.jsx)(lt.SelectControl,{label:(0,Ce.__)("Resolution"),help:(0,Ce.__)("Select the size of the source images."),value:x,options:J,onChange:de,hideCancelButton:!0,size:"__unstable-large"}),(0,Oe.jsx)(lt.SelectControl,{label:(0,Ce.__)("Link"),value:_,onChange:ue,options:f,hideCancelButton:!0,size:"__unstable-large"}),(0,Oe.jsx)(lt.ToggleControl,{label:(0,Ce.__)("Crop images to fit"),checked:!!b,onChange:Le}),(0,Oe.jsx)(lt.ToggleControl,{label:(0,Ce.__)("Randomize order"),checked:!!y,onChange:ie}),ua&&(0,Oe.jsx)(lt.ToggleControl,{label:(0,Ce.__)("Open images in new tab"),checked:v==="_blank",onChange:Ee}),X.length>1&&(0,Oe.jsx)(lt.SelectControl,{label:(0,Ce.__)("Aspect Ratio"),help:(0,Ce.__)("Set a consistent aspect ratio for all images in the gallery."),value:k,options:X,onChange:oe,hideCancelButton:!0,size:"__unstable-large"})]})]}),Tr.Platform.isWeb?(0,Oe.jsx)(mr.BlockControls,{group:"block",children:(0,Oe.jsx)(lt.ToolbarDropdownMenu,{icon:In,label:(0,Ce.__)("Link"),children:({onClose:q})=>(0,Oe.jsx)(lt.MenuGroup,{children:f.map(Be=>{let ze=_===Be.value;return(0,Oe.jsx)(lt.MenuItem,{isSelected:ze,className:w("components-dropdown-menu__menu-item",{"is-active":ze}),iconPosition:"left",icon:Be.icon,onClick:()=>{ue(Be.value),q()},role:"menuitemradio",info:Be.infoText,children:Be.label},Be.value)})})})}):null,Tr.Platform.isWeb&&(0,Oe.jsxs)(Oe.Fragment,{children:[!F&&(0,Oe.jsx)(mr.BlockControls,{group:"other",children:(0,Oe.jsx)(mr.MediaReplaceFlow,{allowedTypes:kB,handleUpload:!1,onSelect:re,name:(0,Ce.__)("Add"),multiple:!0,mediaIds:W.filter(q=>q.id).map(q=>q.id),addToGallery:ke})}),(0,Oe.jsx)(hj,{blockGap:o.style?.spacing?.blockGap,clientId:n})]}),(0,Oe.jsx)(sj,{...e,isContentLocked:s,images:W,mediaPlaceholder:!ce||Tr.Platform.isNative?ht:void 0,blockProps:qe,insertBlocksAfter:l,multiGallerySelection:F})]})}var H_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/gallery",title:"Gallery",category:"media",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:[]},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"},supports:{anchor:!0,align:!0,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{color:!0,radius:!0}},html:!1,units:["px","em","rem","vh","vw"],spacing:{margin:!0,padding:!0,blockGap:["horizontal","vertical"],__experimentalSkipSerialization:["blockGap"],__experimentalDefaultControls:{blockGap:!0,margin:!1,padding:!1}},color:{text:!1,background:!0,gradients:!0},layout:{allowSwitching:!1,allowInheriting:!1,allowEditing:!1,default:{type:"flex"}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-gallery-editor",style:"wp-block-gallery"};var ac=r(S()),j_=r(h());function wj({attributes:e}){let{caption:t,columns:o,imageCrop:a}=e,n=w("has-nested-images",{[`columns-$o}`]:o!==void 0,"columns-default":o===void 0,"is-cropped":a}),i=ac.useBlockProps.save({className:n}),l=ac.useInnerBlocksProps.save(i);return(0,j_.jsxs)("figure",{...l,children:[l.children,!ac.RichText.isEmpty(t)&&(0,j_.jsx)(ac.RichText.Content,{tagName:"figcaption",className:w("blocks-gallery-caption",(0,ac.__experimentalGetElementClassName)("caption")),value:t})]})}var as=r(U()),Cj=r(No()),CB=r(Js());var Gme=e=>e?e.split(",").map(t=>parseInt(t,10)):[];function $me(e){if(e.name==="core/gallery"&&e.attributes?.images.length>0){let t=e.attributes.images.map(({url:o,id:a,alt:n})=>(0,as.createBlock)("core/image",{url:o,id:a?parseInt(a,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,CB.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-to",$me);function Wme(e,t){let a=(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(a){let n=a.innerBlocks.map(({attributes:{url:l,id:s,alt:c}})=>({url:l,id:s?parseInt(s,10):null,alt:c})),i=n.map(({id:l})=>l);a.attributes.images=n,a.attributes.ids=i}return e}(0,CB.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-from",Wme);var qme={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:e=>{let{align:t,sizeSlug:o}=e[0];t=e.every(i=>i.align===t)?t:void 0,o=e.every(i=>i.sizeSlug===o)?o:void 0;let n=e.filter(({url:i})=>i).map(i=>(i.width=void 0,i.height=void 0,(0,as.createBlock)("core/image",i)));return(0,as.createBlock)("core/gallery",{align:t,sizeSlug:o},n)}},{type:"shortcode",tag:"gallery",transform({named:{ids:e,columns:t=3,link:o,orderby:a,size:n}}){let i=Gme(e).map(c=>parseInt(c,10)),l=es;return o==="post"?l=os:o==="file"&&(l=ts),(0,as.createBlock)("core/gallery",{columns:parseInt(t,10),linkTo:l,randomOrder:a==="rand",...n&&{sizeSlug:n}},i.map(c=>(0,as.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(o=>(0,as.createBlock)("core/image",{blob:(0,Cj.createBlobURL)(o)}));return(0,as.createBlock)("core/gallery",{},t)}}],to:[{type:"block",blocks:["core/image"],transform:({align:e},t)=>t.length>0?t.map(({attributes:{url:o,alt:a,caption:n,title:i,href:l,rel:s,linkClass:c,id:u,sizeSlug:m,linkDestination:p,linkTarget:d,anchor:f,className:g}})=>(0,as.createBlock)("core/image",{align:e,url:o,alt:a,caption:n,title:i,href:l,rel:s,linkClass:c,id:u,sizeSlug:m,linkDestination:p,linkTarget:d,anchor:f,className:g})):(0,as.createBlock)("core/image",{align:e})}]},Sj=qme;var{name:Tj}=H_,Bj={icon:Eh,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:Sj,edit:kj,save:wj,deprecated:JH},Zme=()=>D({name:Tj,metadata:H_,settings:Bj});var IB={};$(IB,{init:()=>ape,metadata:()=>U_,name:()=>W_,settings:()=>Oj});var $_=r(B());var Kr=r(S()),Hn=r(h()),TB=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:o,customBackgroundColor:a,...n}=e;return{...n,style:t}},Kme=[{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,Hn.jsx)(e,{...Kr.useInnerBlocksProps.save(Kr.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,Hn.jsx)(t,{...Kr.useBlockProps.save(),children:(0,Hn.jsx)("div",{className:"wp-block-group__inner-container",children:(0,Hn.jsx)(Kr.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:TB,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:o,textColor:a,customTextColor:n}=e,i=(0,Kr.getColorClassName)("background-color",t),l=(0,Kr.getColorClassName)("color",a),s=w(i,l,{"has-text-color":a||n,"has-background":t||o});return(0,Hn.jsx)("div",{className:s,style:{backgroundColor:i?void 0:o,color:l?void 0:n},children:(0,Hn.jsx)("div",{className:"wp-block-group__inner-container",children:(0,Hn.jsx)(Kr.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},migrate:TB,supports:{align:["wide","full"],anchor:!0,html:!1},save({attributes:e}){let{backgroundColor:t,customBackgroundColor:o,textColor:a,customTextColor:n}=e,i=(0,Kr.getColorClassName)("background-color",t),l=(0,Kr.getColorClassName)("color",a),s=w(i,{"has-text-color":a||n,"has-background":t||o});return(0,Hn.jsx)("div",{className:s,style:{backgroundColor:i?void 0:o,color:l?void 0:n},children:(0,Hn.jsx)("div",{className:"wp-block-group__inner-container",children:(0,Hn.jsx)(Kr.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:TB,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:o}=e,a=(0,Kr.getColorClassName)("background-color",t),n=w(a,{"has-background":t||o});return(0,Hn.jsx)("div",{className:n,style:{backgroundColor:a?void 0:o},children:(0,Hn.jsx)(Kr.InnerBlocks.Content,{})})}}],Pj=Kme;var O_=r(A()),On=r(S()),Mj=r(H()),Rj=r(B()),zj=r(E());var Nj=r(A()),Ij=r(S()),BB=r(B()),Dj=r(U()),nn=r(M()),K0=r(H()),an=r(h()),Qme=(e="group")=>({group:(0,an.jsx)(nn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,an.jsx)(nn.Path,{d:"M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Z"})}),"group-row":(0,an.jsx)(nn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,an.jsx)(nn.Path,{d:"M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10Z"})}),"group-stack":(0,an.jsx)(nn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,an.jsx)(nn.Path,{d:"M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm0 17a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V27Z"})}),"group-grid":(0,an.jsx)(nn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,an.jsx)(nn.Path,{d:"M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10ZM0 27a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V27Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V27Z"})})})?.[e];function Ej({attributes:e={style:void 0,backgroundColor:void 0,textColor:void 0,fontSize:void 0},usedLayoutType:t="",hasInnerBlocks:o=!1}){let{style:a,backgroundColor:n,textColor:i,fontSize:l}=e,[s,c]=(0,K0.useState)(!o&&!n&&!l&&!i&&!a&&t!=="flex"&&t!=="grid");return(0,K0.useEffect)(()=>{(o||n||l||i||a||t==="flex")&&c(!1)},[n,l,i,a,t,o]),[s,c]}function Yme({name:e,onSelect:t}){let o=(0,Nj.useSelect)(n=>n(Dj.store).getBlockVariations(e,"block"),[e]),a=(0,Ij.useBlockProps)({className:"wp-block-group__placeholder"});return(0,K0.useEffect)(()=>{o&&o.length===1&&t(o[0])},[t,o]),(0,an.jsx)("div",{...a,children:(0,an.jsx)(nn.Placeholder,{instructions:(0,BB.__)("Group blocks together. Select a layout:"),children:(0,an.jsx)("ul",{role:"list",className:"wp-block-group-placeholder__variations","aria-label":(0,BB.__)("Block variations"),children:o.map(n=>(0,an.jsx)("li",{children:(0,an.jsx)(nn.Button,{__next40pxDefaultSize:!0,variant:"tertiary",icon:Qme(n.name),iconSize:48,onClick:()=>t(n),className:"wp-block-group-placeholder__variation-button",label:`$n.title}: $n.description}`})},n.name))})})})}var Lj=Yme;var jn=r(h()),{HTMLElementControl:Xme}=Q(On.privateApis);function Jme({tagName:e,onSelectTagName:t,clientId:o}){return(0,jn.jsx)(On.InspectorControls,{group:"advanced",children:(0,jn.jsx)(Xme,{tagName:e,onChange:t,clientId:o,options:[{label:(0,Rj.__)("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 epe({attributes:e,name:t,setAttributes:o,clientId:a}){let{hasInnerBlocks:n,themeSupportsLayout:i}=(0,O_.useSelect)(k=>{let{getBlock:C,getSettings:T}=k(On.store),N=C(a);return{hasInnerBlocks:!!(N&&N.innerBlocks.length),themeSupportsLayout:T()?.supportsLayout}},[a]),{tagName:l="div",templateLock:s,allowedBlocks:c,layout:u={}}=e,{type:m="default"}=u,p=i||m==="flex"||m==="grid",d=(0,Mj.useRef)(),f=(0,On.useBlockProps)({ref:d}),[g,b]=Ej({attributes:e,usedLayoutType:m,hasInnerBlocks:n}),y;g?y=!1:n||(y=On.InnerBlocks.ButtonBlockAppender);let v=(0,On.useInnerBlocksProps)(p?f:{className:"wp-block-group__inner-container"},{dropZoneElement:d.current,templateLock:s,allowedBlocks:c,renderAppender:y}),{selectBlock:_}=(0,O_.useDispatch)(On.store),x=k=>{o(k.attributes),_(a,-1),b(!1)};return(0,jn.jsxs)(jn.Fragment,{children:[(0,jn.jsx)(Jme,{tagName:l,onSelectTagName:k=>o({tagName:k}),clientId:a}),g&&(0,jn.jsxs)(zj.View,{children:[v.children,(0,jn.jsx)(Lj,{name:t,onSelect:x})]}),p&&!g&&(0,jn.jsx)(l,{...v}),!p&&!g&&(0,jn.jsx)(l,{...f,children:(0,jn.jsx)("div",{...v})})]})}var Aj=epe;var U_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/group",title:"Group",category:"design",description:"Gather blocks in a layout container.",keywords:["container","wrapper","row","section"],textdomain:"default",attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{__experimentalOnEnter:!0,__experimentalOnMerge:!0,__experimentalSettings:!0,align:["wide","full"],anchor:!0,ariaLabel:!0,html:!1,background:{backgroundImage:!0,backgroundSize:!0,__experimentalDefaultControls:{backgroundImage:!0}},color:{gradients:!0,heading:!0,button:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},shadow:!0,spacing:{margin:["top","bottom"],padding:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},dimensions:{minHeight:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},position:{sticky:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowSizingOnChildren:!0},interactivity:{clientNavigation:!0},allowedBlocks:!0},editorStyle:"wp-block-group-editor",style:"wp-block-group"};var G_=r(S()),Vj=r(h());function Fj({attributes:{tagName:e}}){return(0,Vj.jsx)(e,{...G_.useInnerBlocksProps.save(G_.useBlockProps.save())})}var PB=r(U()),ope={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert(e){let t=["wide","full"],o=e.reduce((n,i)=>{let{align:l}=i.attributes;return t.indexOf(l)>t.indexOf(n)?l:n},void 0),a=e.map(n=>(0,PB.createBlock)(n.name,n.attributes,n.innerBlocks));return(0,PB.createBlock)("core/group",{align:o,layout:{type:"constrained"}},a)}}]},Hj=ope;var Qr=r(B());var NB={innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Qr.__)("One.")}},{name:"core/paragraph",attributes:{content:(0,Qr.__)("Two.")}},{name:"core/paragraph",attributes:{content:(0,Qr.__)("Three.")}},{name:"core/paragraph",attributes:{content:(0,Qr.__)("Four.")}},{name:"core/paragraph",attributes:{content:(0,Qr.__)("Five.")}},{name:"core/paragraph",attributes:{content:(0,Qr.__)("Six.")}}]},rpe=[{name:"group",title:(0,Qr.__)("Group"),description:(0,Qr.__)("Gather blocks in a container."),attributes:{layout:{type:"constrained"}},isDefault:!0,scope:["block","inserter","transform"],icon:km},{name:"group-row",title:(0,Qr._x)("Row","single horizontal line"),description:(0,Qr.__)("Arrange blocks horizontally."),attributes:{layout:{type:"flex",flexWrap:"nowrap"}},scope:["block","inserter","transform"],isActive:["layout.type"],icon:z9,example:NB},{name:"group-stack",title:(0,Qr.__)("Stack"),description:(0,Qr.__)("Arrange blocks vertically."),attributes:{layout:{type:"flex",orientation:"vertical"}},scope:["block","inserter","transform"],isActive:["layout.type","layout.orientation"],icon:Q9,example:NB},{name:"group-grid",title:(0,Qr.__)("Grid"),description:(0,Qr.__)("Arrange blocks in a grid."),attributes:{layout:{type:"grid"}},scope:["block","inserter","transform"],isActive:["layout.type"],icon:Ui,example:NB}],jj=rpe;var{name:W_}=U_,Oj={icon:km,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,$_.__)("La Mancha"),textAlign:"center"}},{name:"core/paragraph",attributes:{style:{typography:{textAlign:"center"}},content:(0,$_.__)("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,$_.__)("Read more")}}],viewportWidth:600},transforms:Hj,edit:Aj,save:Fj,deprecated:Pj,variations:jj},ape=()=>D({name:W_,metadata:U_,settings:Oj});var zB={};$(zB,{init:()=>xpe,metadata:()=>X_,name:()=>e5,settings:()=>t5});var gu=r(B()),lf=r(U());var Un=r(S()),pu=r(h()),DB={className:!1,anchor:!0},q_={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"}},EB=e=>{if(!e.customTextColor)return e;let t={color:{text:e.customTextColor}},{customTextColor:o,...a}=e;return{...a,style:t}},Uj=["left","right","center"],Z_=e=>{let{align:t,...o}=e;return Uj.includes(t)?{...o,textAlign:t}:e},npe={supports:DB,attributes:{...q_,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>EB(Z_(e)),save({attributes:e}){let{align:t,level:o,content:a,textColor:n,customTextColor:i}=e,l="h"+o,s=(0,Un.getColorClassName)("color",n),c=w({[s]:s});return(0,pu.jsx)(Un.RichText.Content,{className:c||void 0,tagName:l,style:{textAlign:t,color:s?void 0:i},value:a})}},ipe={attributes:{...q_,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>EB(Z_(e)),save({attributes:e}){let{align:t,content:o,customTextColor:a,level:n,textColor:i}=e,l="h"+n,s=(0,Un.getColorClassName)("color",i),c=w({[s]:s,[`has-text-align-$t}`]:t});return(0,pu.jsx)(Un.RichText.Content,{className:c||void 0,tagName:l,style:{color:s?void 0:a},value:o})},supports:DB},lpe={supports:DB,attributes:{...q_,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>EB(Z_(e)),save({attributes:e}){let{align:t,content:o,customTextColor:a,level:n,textColor:i}=e,l="h"+n,s=(0,Un.getColorClassName)("color",i),c=w({[s]:s,"has-text-color":i||a,[`has-text-align-$t}`]:t});return(0,pu.jsx)(Un.RichText.Content,{className:c||void 0,tagName:l,style:{color:s?void 0:a},value:o})}},spe={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:q_,isEligible:({align:e})=>Uj.includes(e),migrate:Z_,save({attributes:e}){let{align:t,content:o,level:a}=e,n="h"+a,i=w({[`has-text-align-$t}`]:t});return(0,pu.jsx)(n,{...Un.useBlockProps.save({className:i}),children:(0,pu.jsx)(Un.RichText.Content,{value:o})})}},cpe={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:o,level:a}=e,n="h"+a,i=w({[`has-text-align-$t}`]:t});return(0,pu.jsx)(n,{...Un.useBlockProps.save({className:i}),children:(0,pu.jsx)(Un.RichText.Content,{value:o})})}},upe=[cpe,spe,lpe,ipe,npe],Gj=upe;var Wj=r(B()),Q_=r(H()),Y_=r(A()),Gn=r(S());var $j=r(U0()),LB={},mpe=e=>{let t=document.createElement("div");return t.innerHTML=e,t.innerText},ppe=e=>(0,$j.default)(mpe(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,""),K_=(e,t)=>{let o=ppe(t);if(o==="")return null;delete LB[e];let a=o,n=0;for(;Object.values(LB).includes(a);)n+=1,a=o+"-"+n;return a},MB=(e,t)=>{LB[e]=t};var du=r(h());function dpe({attributes:e,setAttributes:t,mergeBlocks:o,onReplace:a,style:n,clientId:i}){let{textAlign:l,content:s,level:c,placeholder:u,anchor:m}=e,p="h"+c,d=(0,Gn.useBlockProps)({className:w({[`has-text-align-$l}`]:l}),style:n}),f=(0,Gn.useBlockEditingMode)(),{canGenerateAnchors:g}=(0,Y_.useSelect)(v=>{let{getGlobalBlockCount:_,getSettings:x}=v(Gn.store);return{canGenerateAnchors:!!x().generateAnchors||_("core/table-of-contents")>0}},[]),{__unstableMarkNextChangeAsNotPersistent:b}=(0,Y_.useDispatch)(Gn.store);return(0,Q_.useEffect)(()=>{if(g)return!m&&s&&(b(),t({anchor:K_(i,s)})),MB(i,m),()=>MB(i,null)},[m,s,i,g]),(0,du.jsxs)(du.Fragment,{children:[f==="default"&&(0,du.jsx)(Gn.BlockControls,{group:"block",children:(0,du.jsx)(Gn.AlignmentControl,{value:l,onChange:v=>{t({textAlign:v})}})}),(0,du.jsx)(Gn.RichText,{identifier:"content",tagName:p,value:s,onChange:v=>{let _={content:v};g&&(!m||!v||K_(i,s)===m)&&(_.anchor=K_(i,v)),t(_)},onMerge:o,onReplace:a,onRemove:()=>a([]),placeholder:u||(0,Wj.__)("Heading"),textAlign:l,...Q_.Platform.isNative&&{deleteEnter:!0},...d})]})}var qj=dpe;var X_={$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:{textAlign:{type:"string"},content:{type:"rich-text",source:"rich-text",selector:"h1,h2,h3,h4,h5,h6",role:"content"},level:{type:"number",default:2},levelOptions:{type:"array"},placeholder:{type:"string"}},supports:{align:["wide","full"],anchor:!0,className:!0,splitting:!0,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalWritingMode:!0,fitText:!0,__experimentalDefaultControls:{fontSize:!0}},__unstablePasteTextInline:!0,__experimentalSlashInserter:!0,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-heading-editor",style:"wp-block-heading"};var J_=r(S()),RB=r(h());function Zj({attributes:e}){let{textAlign:t,content:o,level:a}=e,n="h"+a,i=w({[`has-text-align-$t}`]:t});return(0,RB.jsx)(n,{...J_.useBlockProps.save({className:i}),children:(0,RB.jsx)(J_.RichText.Content,{value:o})})}var fu=r(U());function Kj(e){return Number(e.substr(1))}var gpe={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map(t=>{let{content:o,anchor:a,style:n}=t,i=n?.typography?.textAlign;return(0,fu.createBlock)("core/heading",{...Ks(t,"core/heading",({content:l})=>({content:l})),content:o,anchor:a,textAlign:i})})},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:({phrasingContentSchema:e,isPaste:t})=>{let o={children:e,attributes:t?[]:["style","id"]};return{h1:o,h2:o,h3:o,h4:o,h5:o,h6:o}},transform(e){let t=(0,fu.getBlockAttributes)("core/heading",e.outerHTML),{textAlign:o}=e.style||{};return t.level=Kj(e.nodeName),(o==="left"||o==="center"||o==="right")&&(t.align=o),(0,fu.createBlock)("core/heading",t)}},...[1,2,3,4,5,6].map(e=>({type:"prefix",prefix:Array(e+1).join("#"),transform(t){return(0,fu.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,fu.createBlock)("core/heading",{level:e})}))],to:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map(t=>{let{content:o,textAlign:a}=t;return(0,fu.createBlock)("core/paragraph",{...Ks(t,"core/paragraph",({content:n})=>({content:n})),content:o,...a&&{style:{typography:{textAlign:a}}}})})}]},Qj=gpe;var Q0=r(B());var hpe=[W8,Z8,Q8,X8,e7,o7],vpe=[...[1,2,3,4,5,6].map(e=>({name:`h$e}`,title:(0,Q0.sprintf)((0,Q0.__)("Heading %d"),e),description:(0,Q0.__)("Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content."),icon:hpe[e-1],attributes:{level:e},scope:["block","transform"],keywords:[`h$e}`],isActive:t=>t.level===e}))],Yj=vpe;var{fieldsKey:bpe,formKey:ype}=Q(lf.privateApis),{name:e5}=X_,t5={icon:a7,example:{attributes:{content:(0,gu.__)("Code is Poetry"),level:2,textAlign:"center"}},__experimentalLabel(e,{context:t}){let{content:o,level:a}=e,n=e?.metadata?.name,i=o?.trim().length>0;if(t==="list-view"&&(n||i))return n||o;if(t==="accessibility")return i?(0,gu.sprintf)((0,gu.__)("Level %1$s. %2$s"),a,o):(0,gu.sprintf)((0,gu.__)("Level %s. Empty."),a)},transforms:Qj,deprecated:Gj,merge(e,t){return{content:(e.content||"")+(t.content||"")}},edit:qj,save:Zj,variations:Yj};window.__experimentalContentOnlyInspectorFields&&(t5[bpe]=[{id:"content",label:(0,gu.__)("Content"),type:"richtext"}],t5[ype]={fields:["content"]});var xpe=()=>{let e=D({name:e5,metadata:X_,settings:t5}),t=(0,lf.getBlockType)(e5)?.attributes?.levelOptions?.default;return t&&[1,2,3,4,5,6].forEach(o=>{t.includes(o)||(0,lf.unregisterBlockVariation)(e5,`h$o}`)}),e};var AB={};$(AB,{init:()=>wpe,metadata:()=>o5,name:()=>nO,settings:()=>iO});var aO=r(B());var o5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/home-link",category:"design",parent:["core/navigation"],title:"Home Link",description:"Create a link that always points to the homepage of the site. Usually not necessary if there is already a site title link present in the header.",textdomain:"default",attributes:{label:{type:"string",role:"content"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","fontSize","customFontSize","style"],supports:{reusable:!1,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-home-link-editor",style:"wp-block-home-link"};var n5=r(S()),r5=r(B()),Xj=r(A()),Jj=r(Y()),a5=r(h()),kpe=e=>e.preventDefault();function eO({attributes:e,setAttributes:t,context:o}){let a=(0,Xj.useSelect)(c=>c(Jj.store).getEntityRecord("root","__unstableBase")?.home,[]),{textColor:n,backgroundColor:i,style:l}=o,s=(0,n5.useBlockProps)({className:w("wp-block-navigation-item",{"has-text-color":!!n||!!l?.color?.text,[`has-$n}-color`]:!!n,"has-background":!!i||!!l?.color?.background,[`has-$i}-background-color`]:!!i}),style:{color:l?.color?.text,backgroundColor:l?.color?.background}});return(0,a5.jsx)("div",{...s,children:(0,a5.jsx)("a",{className:"wp-block-home-link__content wp-block-navigation-item__content",href:a,onClick:kpe,children:(0,a5.jsx)(n5.RichText,{identifier:"label",className:"wp-block-home-link__label",value:e.label??(0,r5.__)("Home"),onChange:c=>{t({label:c})},"aria-label":(0,r5.__)("Home link text"),placeholder:(0,r5.__)("Add home link"),withoutInteractiveFormatting:!0})})})}var tO=r(S()),oO=r(h());function rO(){return(0,oO.jsx)(tO.InnerBlocks.Content,{})}var{name:nO}=o5,iO={icon:i7,edit:eO,save:rO,example:{attributes:{label:(0,aO._x)("Home Link","block example")}}},wpe=()=>D({name:nO,metadata:o5,settings:iO});var HB={};$(HB,{init:()=>Bpe,metadata:()=>s5,name:()=>kO,settings:()=>wO});var _O=r(B());var cf=r(B()),dO=r(H()),vu=r(S()),cl=r(M());var lO=r(H()),i5=r(S()),sO=r(M()),cO=r(A()),uO=r(B()),up=r(h()),Cpe=` 18 html,body,:root { 19 margin: 0 !important; 20 padding: 0 !important; 21 overflow: visible !important; 22 min-height: auto !important; 23 } 24 `;function l5({content:e,isSelected:t}){let o=(0,cO.useSelect)(n=>n(i5.store).getSettings().styles,[]),a=(0,lO.useMemo)(()=>[Cpe,...(0,i5.transformStyles)((o??[]).filter(n=>n.css))],[o]);return(0,up.jsxs)(up.Fragment,{children:[(0,up.jsx)(sO.SandBox,{html:e,styles:a,title:(0,uO.__)("Custom HTML Preview"),tabIndex:-1}),!t&&(0,up.jsx)("div",{className:"block-library-html__preview-overlay"})]})}var pr=r(B()),mp=r(H()),pO=r(A()),ho=r(M()),sf=r(S());function mO(e=""){if(!e||!e.trim())return{html:"",css:"",js:""};let t=document.implementation.createHTMLDocument("");t.body.innerHTML=e;let o=t.body.querySelector('style[data-wp-block-html="css"]'),a=o?o.textContent.trim():"";o&&o.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:a,js:i}}function VB({html:e="",css:t="",js:o=""}){let a=[];return t.trim()&&a.push(`<style data-wp-block-html="css"> 25 $t} 26 </style>`),o.trim()&&a.push(`<script data-wp-block-html="js"> 27 $o} 28 <\/script>`),e.trim()&&a.push(e),a.join(` 29 30 `)}var Qe=r(h()),{Tabs:hu}=Q(ho.privateApis);function FB({isOpen:e,onRequestClose:t,content:o,setAttributes:a}){let{html:n,css:i,js:l}=mO(o),[s,c]=(0,mp.useState)(n),[u,m]=(0,mp.useState)(i),[p,d]=(0,mp.useState)(l),[f,g]=(0,mp.useState)(!1),[b,y]=(0,mp.useState)(!1),[v,_]=(0,mp.useState)(!1),{canUserUseUnfilteredHTML:x}=(0,pO.useSelect)(F=>({canUserUseUnfilteredHTML:F(sf.store).getSettings().__experimentalCanUserUseUnfilteredHTML}),[]),k=!x&&(i.trim()||l.trim());if(!e)return null;let C=F=>{c(F),g(!0)},T=F=>{m(F),g(!0)},N=F=>{d(F),g(!0)},P=()=>{a({content:VB({html:s,css:x?u:"",js:x?p:""})}),g(!1)},L=()=>{g(!1),t()},R=()=>{f?y(!0):t()},z=()=>{y(!1),t()},O=()=>{y(!1)},V=()=>{P(),t()},I=()=>{_(F=>!F)};return(0,Qe.jsxs)(Qe.Fragment,{children:[(0,Qe.jsx)(ho.Modal,{title:(0,pr.__)("Edit HTML"),onRequestClose:R,className:"block-library-html__modal",size:"large",isDismissible:!1,shouldCloseOnClickOutside:!f,shouldCloseOnEsc:!f,isFullScreen:v,__experimentalHideHeader:!0,children:(0,Qe.jsx)(hu,{orientation:"horizontal",defaultTabId:"html",children:(0,Qe.jsxs)(ho.__experimentalGrid,{columns:1,templateRows:"auto 1fr auto",gap:4,style:{height:"100%"},children:[(0,Qe.jsxs)(ho.__experimentalHStack,{justify:"space-between",className:"block-library-html__modal-header",children:[(0,Qe.jsx)("div",{children:(0,Qe.jsxs)(hu.TabList,{children:[(0,Qe.jsx)(hu.Tab,{tabId:"html",children:"HTML"}),x&&(0,Qe.jsx)(hu.Tab,{tabId:"css",children:"CSS"}),x&&(0,Qe.jsx)(hu.Tab,{tabId:"js",children:(0,pr.__)("JavaScript")})]})}),(0,Qe.jsx)("div",{children:(0,Qe.jsx)(ho.Button,{__next40pxDefaultSize:!0,icon:v?Z9:_m,label:(0,pr.__)("Enable/disable fullscreen"),onClick:I,variant:"tertiary"})})]}),k&&(0,Qe.jsx)(ho.Notice,{status:"warning",isDismissible:!1,className:"block-library-html__modal-notice",children:(0,pr.__)("This block contains CSS or JavaScript that will be removed when you save because you do not have permission to use unfiltered HTML.")}),(0,Qe.jsxs)(ho.__experimentalHStack,{alignment:"stretch",justify:"flex-start",spacing:4,className:"block-library-html__modal-tabs",children:[(0,Qe.jsxs)("div",{className:"block-library-html__modal-content",children:[(0,Qe.jsx)(hu.TabPanel,{tabId:"html",focusable:!1,className:"block-library-html__modal-tab",children:(0,Qe.jsx)(sf.PlainText,{value:s,onChange:C,placeholder:(0,pr.__)("Write HTML\u2026"),"aria-label":(0,pr.__)("HTML"),className:"block-library-html__modal-editor"})}),x&&(0,Qe.jsx)(hu.TabPanel,{tabId:"css",focusable:!1,className:"block-library-html__modal-tab",children:(0,Qe.jsx)(sf.PlainText,{value:u,onChange:T,placeholder:(0,pr.__)("Write CSS\u2026"),"aria-label":(0,pr.__)("CSS"),className:"block-library-html__modal-editor"})}),x&&(0,Qe.jsx)(hu.TabPanel,{tabId:"js",focusable:!1,className:"block-library-html__modal-tab",children:(0,Qe.jsx)(sf.PlainText,{value:p,onChange:N,placeholder:(0,pr.__)("Write JavaScript\u2026"),"aria-label":(0,pr.__)("JavaScript"),className:"block-library-html__modal-editor"})})]}),(0,Qe.jsx)("div",{className:"block-library-html__preview",children:(0,Qe.jsx)(l5,{content:VB({html:s,css:u,js:p})})})]}),(0,Qe.jsxs)(ho.__experimentalHStack,{alignment:"center",justify:"flex-end",spacing:4,className:"block-library-html__modal-footer",children:[(0,Qe.jsx)(ho.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:L,children:(0,pr.__)("Cancel")}),(0,Qe.jsx)(ho.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:V,children:(0,pr.__)("Update")})]})]})})}),b&&(0,Qe.jsxs)(ho.Modal,{title:(0,pr.__)("Unsaved changes"),onRequestClose:O,size:"medium",children:[(0,Qe.jsx)("p",{children:(0,pr.__)("You have unsaved changes. What would you like to do?")}),(0,Qe.jsxs)(ho.Flex,{direction:"row",justify:"flex-end",gap:2,children:[(0,Qe.jsx)(ho.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:z,children:(0,pr.__)("Discard unsaved changes")}),(0,Qe.jsx)(ho.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:O,children:(0,pr.__)("Continue editing")}),(0,Qe.jsx)(ho.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:V,children:(0,pr.__)("Update and close")})]})]})]})}var Yr=r(h());function fO({attributes:e,setAttributes:t,isSelected:o}){let[a,n]=(0,dO.useState)(!1),i=(0,vu.useBlockProps)({className:"block-library-html__edit"});return e.content?.trim()?(0,Yr.jsxs)("div",{...i,children:[(0,Yr.jsx)(vu.BlockControls,{children:(0,Yr.jsx)(cl.ToolbarGroup,{children:(0,Yr.jsx)(cl.ToolbarButton,{onClick:()=>n(!0),children:(0,cf.__)("Edit code")})})}),(0,Yr.jsx)(vu.InspectorControls,{children:(0,Yr.jsx)(cl.__experimentalVStack,{className:"block-editor-block-inspector-edit-contents",expanded:!0,children:(0,Yr.jsx)(cl.Button,{className:"block-editor-block-inspector-edit-contents__button",__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>n(!0),children:(0,cf.__)("Edit code")})})}),(0,Yr.jsx)(l5,{content:e.content,isSelected:o}),(0,Yr.jsx)(FB,{isOpen:a,onRequestClose:()=>n(!1),content:e.content,setAttributes:t})]}):(0,Yr.jsxs)("div",{...i,children:[(0,Yr.jsx)(cl.Placeholder,{icon:(0,Yr.jsx)(vu.BlockIcon,{icon:yh}),label:(0,cf.__)("Custom HTML"),instructions:(0,cf.__)("Add custom HTML code and preview how it looks."),children:(0,Yr.jsx)(cl.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>n(!0),children:(0,cf.__)("Edit HTML")})}),(0,Yr.jsx)(FB,{isOpen:a,onRequestClose:()=>n(!1),content:e.content,setAttributes:t})]})}var s5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/html",title:"Custom HTML",category:"widgets",description:"Add custom HTML code and preview it as you edit.",keywords:["embed"],textdomain:"default",attributes:{content:{type:"string",source:"raw",role:"content"}},supports:{customClassName:!1,className:!1,html:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-html-editor"};var gO=r(H()),hO=r(h());function vO({attributes:e}){return(0,hO.jsx)(gO.RawHTML,{children:e.content})}var bO=r(U()),yO=r(Em()),Tpe={from:[{type:"block",blocks:["core/code"],transform:({content:e})=>(0,bO.createBlock)("core/html",{content:(0,yO.create)({html:e}).text})}]},xO=Tpe;var{name:kO}=s5,wO={icon:s7,example:{attributes:{content:"<marquee>"+(0,_O.__)("Welcome to the wonderful world of blocks\u2026")+"</marquee>"}},edit:fO,save:vO,transforms:xO},Bpe=()=>D({name:kO,metadata:s5,settings:wO});var GB={};$(GB,{init:()=>Zpe,metadata:()=>c5,name:()=>GO,settings:()=>m5});var pp=r(B());var UO=r(U());var ut=r(S()),De=r(h()),Ppe={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:o,caption:a,align:n,href:i,width:l,height:s}=e,u=(0,De.jsx)("img",{src:t,alt:o,...l||s?{width:l,height:s}:{}}),m={};return l?m={width:l}:(n==="left"||n==="right")&&(m={maxWidth:"50%"}),(0,De.jsxs)("figure",{className:n?`align$n}`:null,style:m,children:[i?(0,De.jsx)("a",{href:i,children:u}):u,!ut.RichText.isEmpty(a)&&(0,De.jsx)(ut.RichText.Content,{tagName:"figcaption",value:a})]})}},Npe={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:o,caption:a,align:n,href:i,width:l,height:s,id:c}=e,u=(0,De.jsx)("img",{src:t,alt:o,className:c?`wp-image-$c}`:null,width:l,height:s});return(0,De.jsxs)("figure",{className:n?`align$n}`:null,children:[i?(0,De.jsx)("a",{href:i,children:u}):u,!ut.RichText.isEmpty(a)&&(0,De.jsx)(ut.RichText.Content,{tagName:"figcaption",value:a})]})}},Ipe={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:o,caption:a,align:n,href:i,width:l,height:s,id:c}=e,u=w({[`align$n}`]:n,"is-resized":l||s}),m=(0,De.jsx)("img",{src:t,alt:o,className:c?`wp-image-$c}`:null,width:l,height:s});return(0,De.jsxs)("figure",{className:u,children:[i?(0,De.jsx)("a",{href:i,children:m}):m,!ut.RichText.isEmpty(a)&&(0,De.jsx)(ut.RichText.Content,{tagName:"figcaption",value:a})]})}},Dpe={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:o,caption:a,align:n,href:i,rel:l,linkClass:s,width:c,height:u,id:m,linkTarget:p,sizeSlug:d,title:f}=e,g=l||void 0,b=w({[`align$n}`]:n,[`size-$d}`]:d,"is-resized":c||u}),y=(0,De.jsx)("img",{src:t,alt:o,className:m?`wp-image-$m}`:null,width:c,height:u,title:f}),v=(0,De.jsxs)(De.Fragment,{children:[i?(0,De.jsx)("a",{className:s,href:i,target:p,rel:g,children:y}):y,!ut.RichText.isEmpty(a)&&(0,De.jsx)(ut.RichText.Content,{tagName:"figcaption",value:a})]});return n==="left"||n==="right"||n==="center"?(0,De.jsx)("div",{...ut.useBlockProps.save(),children:(0,De.jsx)("figure",{className:b,children:v})}):(0,De.jsx)("figure",{...ut.useBlockProps.save({className:b}),children:v})}},Epe={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:o,caption:a,align:n,href:i,rel:l,linkClass:s,width:c,height:u,id:m,linkTarget:p,sizeSlug:d,title:f}=e,g=l||void 0,b=w({[`align$n}`]:n,[`size-$d}`]:d,"is-resized":c||u}),y=(0,De.jsx)("img",{src:t,alt:o,className:m?`wp-image-$m}`:null,width:c,height:u,title:f}),v=(0,De.jsxs)(De.Fragment,{children:[i?(0,De.jsx)("a",{className:s,href:i,target:p,rel:g,children:y}):y,!ut.RichText.isEmpty(a)&&(0,De.jsx)(ut.RichText.Content,{tagName:"figcaption",value:a})]});return(0,De.jsx)("figure",{...ut.useBlockProps.save({className:b}),children:v})}},Lpe={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:o}=e;return{...e,width:typeof o=="number"?`$o}px`:o,height:typeof t=="number"?`$t}px`:t}},save({attributes:e}){let{url:t,alt:o,caption:a,align:n,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:m,scale:p,id:d,linkTarget:f,sizeSlug:g,title:b}=e,y=l||void 0,v=(0,ut.__experimentalGetBorderClassesAndStyles)(e),_=w({[`align$n}`]:n,[`size-$g}`]:g,"is-resized":c||u,"has-custom-border":!!v.className||v.style&&Object.keys(v.style).length>0}),x=w(v.className,{[`wp-image-$d}`]:!!d}),k=(0,De.jsx)("img",{src:t,alt:o,className:x||void 0,style:{...v.style,aspectRatio:m,objectFit:p},width:c,height:u,title:b}),C=(0,De.jsxs)(De.Fragment,{children:[i?(0,De.jsx)("a",{className:s,href:i,target:f,rel:y,children:k}):k,!ut.RichText.isEmpty(a)&&(0,De.jsx)(ut.RichText.Content,{className:(0,ut.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:a})]});return(0,De.jsx)("figure",{...ut.useBlockProps.save({className:_}),children:C})}},Mpe={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",role:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",role:"content"},caption:{type:"string",source:"html",selector:"figcaption",role:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",role:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",role:"content"},width:{type:"number"},height:{type:"number"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate({width:e,height:t,...o}){return{...o,width:`$e}px`,height:`$t}px`}},save({attributes:e}){let{url:t,alt:o,caption:a,align:n,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:m,scale:p,id:d,linkTarget:f,sizeSlug:g,title:b}=e,y=l||void 0,v=(0,ut.__experimentalGetBorderClassesAndStyles)(e),_=w({[`align$n}`]:n,[`size-$g}`]:g,"is-resized":c||u,"has-custom-border":!!v.className||v.style&&Object.keys(v.style).length>0}),x=w(v.className,{[`wp-image-$d}`]:!!d}),k=(0,De.jsx)("img",{src:t,alt:o,className:x||void 0,style:{...v.style,aspectRatio:m,objectFit:p,width:c,height:u},width:c,height:u,title:b}),C=(0,De.jsxs)(De.Fragment,{children:[i?(0,De.jsx)("a",{className:s,href:i,target:f,rel:y,children:k}):k,!ut.RichText.isEmpty(a)&&(0,De.jsx)(ut.RichText.Content,{className:(0,ut.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:a})]});return(0,De.jsx)("figure",{...ut.useBlockProps.save({className:_}),children:C})}},Rpe={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,...o}){if(!o.behaviors?.lightbox)return o;let{behaviors:{lightbox:{enabled:a}}}=o,n={...o,lightbox:{enabled:a}};return delete n.behaviors,n},isEligible(e){return!!e.behaviors},save({attributes:e}){let{url:t,alt:o,caption:a,align:n,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:m,scale:p,id:d,linkTarget:f,sizeSlug:g,title:b}=e,y=l||void 0,v=(0,ut.__experimentalGetBorderClassesAndStyles)(e),_=w({[`align$n}`]:n,[`size-$g}`]:g,"is-resized":c||u,"has-custom-border":!!v.className||v.style&&Object.keys(v.style).length>0}),x=w(v.className,{[`wp-image-$d}`]:!!d}),k=(0,De.jsx)("img",{src:t,alt:o,className:x||void 0,style:{...v.style,aspectRatio:m,objectFit:p,width:c,height:u},title:b}),C=(0,De.jsxs)(De.Fragment,{children:[i?(0,De.jsx)("a",{className:s,href:i,target:f,rel:y,children:k}):k,!ut.RichText.isEmpty(a)&&(0,De.jsx)(ut.RichText.Content,{className:(0,ut.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:a})]});return(0,De.jsx)("figure",{...ut.useBlockProps.save({className:_}),children:C})}},CO=[Rpe,Mpe,Lpe,Epe,Dpe,Ipe,Npe,Ppe];var X0=r(No()),Y0=r(U()),zO=r(M()),pf=r(A()),Ba=r(S()),bu=r(H()),ns=r(B());var AO=r(wo()),VO=r(we());var BO=r(No()),Ae=r(M()),mf=r(we()),nc=r(A()),xt=r(S()),qo=r(H()),Ie=r(B()),PO=r(ko()),uf=r(U());var NO=r(wo()),jB=r(Y());var ae=r(h()),{DimensionsTool:SO,ResolutionTool:zpe}=Q(xt.privateApis),Ape=[{value:"cover",label:(0,Ie._x)("Cover","Scale option for dimensions control"),help:(0,Ie.__)("Image covers the space evenly.")},{value:"contain",label:(0,Ie._x)("Contain","Scale option for dimensions control"),help:(0,Ie.__)("Image is contained without distortion.")}],Vpe={placement:"bottom-start"},TO=({href:e,children:t})=>e?(0,ae.jsx)("a",{href:e,onClick:o=>o.preventDefault(),"aria-disabled":!0,style:{pointerEvents:"none",cursor:"default",display:"inline"},children:t}):t;function Fpe({attributes:e,setAttributes:t,lockAltControls:o,lockAltControlsMessage:a,lockTitleControls:n,lockTitleControlsMessage:i}){let[l,s]=(0,qo.useState)(null),[c,u]=(0,qo.useState)(!1),[m,p]=(0,qo.useState)(!1);return(0,ae.jsxs)(ae.Fragment,{children:[(0,ae.jsx)(Ae.ToolbarItem,{ref:s,children:d=>(0,ae.jsx)(Ae.DropdownMenu,{icon:bh,label:(0,Ie.__)("More"),toggleProps:{...d,description:(0,Ie.__)("Displays more controls.")},popoverProps:Vpe,children:({onClose:f})=>(0,ae.jsxs)(ae.Fragment,{children:[(0,ae.jsx)(Ae.MenuItem,{onClick:()=>{u(!0),f()},"aria-haspopup":"dialog",children:(0,Ie._x)("Alternative text","Alternative text for an image. Block toolbar label, a low character count is preferred.")}),(0,ae.jsx)(Ae.MenuItem,{onClick:()=>{p(!0),f()},"aria-haspopup":"dialog",children:(0,Ie.__)("Title text")})]})})}),c&&(0,ae.jsx)(Ae.Popover,{placement:"bottom-start",anchor:l,onClose:()=>u(!1),offset:13,variant:"toolbar",children:(0,ae.jsx)("div",{className:"wp-block-image__toolbar_content_textarea__container",children:(0,ae.jsx)(Ae.TextareaControl,{className:"wp-block-image__toolbar_content_textarea",label:(0,Ie.__)("Alternative text"),value:e.alt||"",onChange:d=>t({alt:d}),disabled:o,help:o?(0,ae.jsx)(ae.Fragment,{children:a}):(0,ae.jsxs)(ae.Fragment,{children:[(0,ae.jsx)(Ae.ExternalLink,{href:(0,Ie.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,Ie.__)("Describe the purpose of the image.")}),(0,ae.jsx)("br",{}),(0,Ie.__)("Leave empty if decorative.")]})})})}),m&&(0,ae.jsx)(Ae.Popover,{placement:"bottom-start",anchor:l,onClose:()=>p(!1),offset:13,variant:"toolbar",children:(0,ae.jsx)("div",{className:"wp-block-image__toolbar_content_textarea__container",children:(0,ae.jsx)(Ae.TextControl,{__next40pxDefaultSize:!0,className:"wp-block-image__toolbar_content_textarea",label:(0,Ie.__)("Title attribute"),value:e.title||"",onChange:d=>t({title:d}),disabled:n,help:n?(0,ae.jsx)(ae.Fragment,{children:i}):(0,ae.jsxs)(ae.Fragment,{children:[(0,Ie.__)("Describe the role of this image on the page."),(0,ae.jsx)(Ae.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute",children:(0,Ie.__)("(Note: many devices and browsers do not display this text.)")})]})})})})]})}function IO({temporaryURL:e,attributes:t,setAttributes:o,isSingleSelected:a,insertBlocksAfter:n,onReplace:i,onSelectImage:l,onSelectURL:s,onUploadError:c,context:u,clientId:m,blockEditingMode:p,parentLayoutType:d,maxContentWidth:f}){let{url:g="",alt:b,align:y,id:v,href:_,rel:x,linkClass:k,linkDestination:C,title:T,width:N,height:P,aspectRatio:L,scale:R,linkTarget:z,sizeSlug:O,lightbox:V,metadata:I}=t,[F,W]=(0,qo.useState)(),[j,K]=(0,qo.useState)(null),[Z,te]=(0,qo.useState)({}),[X,J]=(0,qo.useState)(0),ee=(0,mf.useResizeObserver)(([Se])=>{if(!j){let[ao]=Se.borderBoxSize;te({width:ao.inlineSize,height:ao.blockSize})}J(Se.target.offsetTop)}),ne=(0,qo.useCallback)(()=>{J(F?.offsetTop??0)},[F]),re=(0,mf.useMergeRefs)([W,ee]),{allowResize:se=!0}=u,ue=(0,nc.useSelect)(Se=>v&&a?Se(jB.store).getEntityRecord("postType","attachment",v,{context:"view"}):null,[v,a]),{canInsertCover:Ne,imageEditing:Le,imageSizes:ie,maxWidth:Ee}=(0,nc.useSelect)(Se=>{let{getBlockRootClientId:ao,canInsertBlockType:jl,getSettings:Ga}=Se(xt.store),uh=ao(m),sm=Ga();return{imageEditing:sm.imageEditing,imageSizes:sm.imageSizes,maxWidth:sm.maxWidth,canInsertCover:jl("core/cover",uh)}},[m]),{getBlock:de,getSettings:oe}=(0,nc.useSelect)(xt.store),{replaceBlocks:ce,toggleSelection:ke}=(0,nc.useDispatch)(xt.store),{createErrorNotice:fe,createSuccessNotice:rt}=(0,nc.useDispatch)(NO.store),{editEntityRecord:ht}=(0,nc.useDispatch)(jB.store),yt=(0,mf.useViewportMatch)("medium"),uo=["wide","full"].includes(y),[{loadedNaturalWidth:qe,loadedNaturalHeight:Yt},ua]=(0,qo.useState)({}),[q,Be]=(0,qo.useState)(!1),[ze,Fe]=(0,qo.useState)(),[He,Xt]=(0,qo.useState)(!1),tr=p==="default",Pt=p==="contentOnly",Ze=se&&tr&&!uo&&yt,or=ie.filter(({slug:Se})=>ue?.media_details?.sizes?.[Se]?.source_url).map(({name:Se,slug:ao})=>({value:ao,label:Se}));(0,qo.useEffect)(()=>{if(!OB(v,g)||!a||!oe().mediaUpload){Fe();return}ze||window.fetch(g.includes("?")?g:g+"?").then(Se=>Se.blob()).then(Se=>Fe(Se)).catch(()=>{})},[v,g,a,ze,oe]);let{naturalWidth:Ur,naturalHeight:Oa}=(0,qo.useMemo)(()=>({naturalWidth:F?.naturalWidth||qe||void 0,naturalHeight:F?.naturalHeight||Yt||void 0}),[qe,Yt,F?.complete]);function ma(){Xt(!0);let Se=$c({attributes:{url:g}});Se!==void 0&&i(Se)}function Lc(Se){Xt(!1),ua({loadedNaturalWidth:Se.target?.naturalWidth,loadedNaturalHeight:Se.target?.naturalHeight})}function Al(Se){o(Se)}function Vl(Se){Se&&!mi?.enabled?o({lightbox:{enabled:!0}}):!Se&&mi?.enabled?o({lightbox:{enabled:!1}}):o({lightbox:void 0})}function Oi(){mi?.enabled&&mi?.allowEditing?o({lightbox:{enabled:!1}}):o({lightbox:void 0})}function Us(Se){o({title:Se})}function md(Se){o({alt:Se})}function Mc(Se){let ao=ue?.media_details?.sizes?.[Se]?.source_url;if(!ao)return null;o({url:ao,sizeSlug:Se})}function Te(){let{mediaUpload:Se}=oe();Se&&Se({filesList:[ze],onFileChange([ao]){l(ao),!(0,BO.isBlobURL)(ao.url)&&(Fe(),rt((0,Ie.__)("Image uploaded."),{type:"snackbar"}))},allowedTypes:mu,onError(ao){fe(ao,{type:"snackbar"})}})}(0,qo.useEffect)(()=>{a||Be(!1)},[a]);let pt=v&&Ur&&Oa&&Le,Ho=a&&pt&&!q&&!Pt;function Ua(){ce(m,(0,uf.switchToBlockType)(de(m),"core/cover"))}let Fl=(0,Ae.__experimentalUseCustomUnits)({availableUnits:["px"]}),[mi]=(0,xt.useSettings)("lightbox"),Hl=!!V&&V?.enabled!==mi?.enabled||mi?.allowEditing,Pn=!!V?.enabled||!V&&!!mi?.enabled,nm=G(),im=Ze&&(vB.includes(d)?(0,ae.jsx)(SO,{value:{aspectRatio:L},onChange:({aspectRatio:Se})=>{o({aspectRatio:Se,scale:"cover"})},defaultAspectRatio:"auto",tools:["aspectRatio"]}):(0,ae.jsx)(SO,{value:{width:N,height:P,scale:R,aspectRatio:L},onChange:({width:Se,height:ao,scale:jl,aspectRatio:Ga})=>{o({width:!Se&&ao?"auto":Se,height:ao,scale:jl,aspectRatio:Ga})},defaultScale:"cover",defaultAspectRatio:"auto",scaleOptions:Ape,unitsOptions:Fl})),j2=()=>{o({alt:void 0,width:void 0,height:void 0,scale:void 0,aspectRatio:void 0,lightbox:void 0}),Mc(W0)},O2=(0,ae.jsx)(xt.InspectorControls,{children:(0,ae.jsx)(Ae.__experimentalToolsPanel,{label:(0,Ie.__)("Settings"),resetAll:j2,dropdownMenuProps:nm,children:im})}),Rc=I?.bindings?.__default?.source==="core/pattern-overrides",{lockUrlControls:nh=!1,lockHrefControls:U2=!1,lockAltControls:ih=!1,lockAltControlsMessage:lh,lockTitleControls:zc=!1,lockTitleControlsMessage:lm,hideCaptionControls:pd=!1}=(0,nc.useSelect)(Se=>{if(!a)return{};let{url:ao,alt:jl,title:Ga,caption:uh}=I?.bindings||{},sm=!!u["pattern/overrides"],d6=(0,uf.getBlockBindingsSource)(ao?.source),dd=(0,uf.getBlockBindingsSource)(jl?.source),Ac=(0,uf.getBlockBindingsSource)(Ga?.source);return{lockUrlControls:!!ao&&!d6?.canUserEditValue?.({select:Se,context:u,args:ao?.args}),lockHrefControls:sm||Rc,hideCaptionControls:!!uh,lockAltControls:!!jl&&!dd?.canUserEditValue?.({select:Se,context:u,args:jl?.args}),lockAltControlsMessage:dd?.label?(0,Ie.sprintf)((0,Ie.__)("Connected to %s"),dd.label):(0,Ie.__)("Connected to dynamic data"),lockTitleControls:!!Ga&&!Ac?.canUserEditValue?.({select:Se,context:u,args:Ga?.args}),lockTitleControlsMessage:Ac?.label?(0,Ie.sprintf)((0,Ie.__)("Connected to %s"),Ac.label):(0,Ie.__)("Connected to dynamic data")}},[Rc,u,a,I?.bindings]),G2=a&&!q&&!U2&&!nh,mo=a&&Ne&&!Pt,sh=G2||Ho||mo,ch=a&&!q&&!nh&&(0,ae.jsx)(xt.BlockControls,{group:Pt?"inline":"other",children:(0,ae.jsx)(xt.MediaReplaceFlow,{mediaId:v,mediaURL:g,allowedTypes:mu,onSelect:l,onSelectURL:s,onError:c,name:g?(0,Ie.__)("Replace"):(0,Ie.__)("Add image"),onReset:()=>l(void 0)})}),YE=(0,ae.jsxs)(ae.Fragment,{children:[sh&&(0,ae.jsxs)(xt.BlockControls,{group:"block",children:[G2&&(0,ae.jsx)(xt.__experimentalImageURLInputUI,{url:_||"",onChangeUrl:Al,linkDestination:C,mediaUrl:ue&&ue.source_url||g,mediaLink:ue&&ue.link,linkTarget:z,linkClass:k,rel:x,showLightboxSetting:Hl,lightboxEnabled:Pn,onSetLightbox:Vl,resetLightbox:Oi}),Ho&&(0,ae.jsx)(Ae.ToolbarButton,{onClick:()=>Be(!0),icon:kh,label:(0,Ie.__)("Crop")}),mo&&(0,ae.jsx)(Ae.ToolbarButton,{icon:z7,label:(0,Ie.__)("Add text over image"),onClick:Ua})]}),a&&ze&&(0,ae.jsx)(xt.BlockControls,{children:(0,ae.jsx)(Ae.ToolbarGroup,{children:(0,ae.jsx)(Ae.ToolbarButton,{onClick:Te,icon:Ws,label:(0,Ie.__)("Upload to Media Library")})})}),Pt&&(0,ae.jsx)(xt.BlockControls,{group:"block",children:(0,ae.jsx)(Fpe,{attributes:t,setAttributes:o,lockAltControls:ih,lockAltControlsMessage:lh,lockTitleControls:zc,lockTitleControlsMessage:lm})}),(0,ae.jsx)(xt.InspectorControls,{children:(0,ae.jsxs)(Ae.__experimentalToolsPanel,{label:(0,Ie.__)("Settings"),resetAll:j2,dropdownMenuProps:nm,children:[a&&(0,ae.jsx)(Ae.__experimentalToolsPanelItem,{label:(0,Ie.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!b,onDeselect:()=>o({alt:void 0}),children:(0,ae.jsx)(Ae.TextareaControl,{label:(0,Ie.__)("Alternative text"),value:b||"",onChange:md,readOnly:ih,help:ih?(0,ae.jsx)(ae.Fragment,{children:lh}):(0,ae.jsxs)(ae.Fragment,{children:[(0,ae.jsx)(Ae.ExternalLink,{href:(0,Ie.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,Ie.__)("Describe the purpose of the image.")}),(0,ae.jsx)("br",{}),(0,Ie.__)("Leave empty if decorative.")]})})}),im,!!or.length&&(0,ae.jsx)(zpe,{value:O,defaultValue:W0,onChange:Mc,options:or})]})}),(0,ae.jsx)(xt.InspectorControls,{group:"advanced",children:(0,ae.jsx)(Ae.TextControl,{__next40pxDefaultSize:!0,label:(0,Ie.__)("Title attribute"),value:T||"",onChange:Us,readOnly:zc,help:zc?(0,ae.jsx)(ae.Fragment,{children:lm}):(0,ae.jsxs)(ae.Fragment,{children:[(0,Ie.__)("Describe the role of this image on the page."),(0,ae.jsx)(Ae.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute",children:(0,Ie.__)("(Note: many devices and browsers do not display this text.)")})]})})})]}),XE=(0,PO.getFilename)(g),$2;b?$2=b:XE?$2=(0,Ie.sprintf)((0,Ie.__)("This image has an empty alt attribute; its file name is %s"),XE):$2=(0,Ie.__)("This image has an empty alt attribute");let p6=(0,xt.__experimentalUseBorderProps)(t),wie=(0,xt.__experimentalGetShadowClassesAndStyles)(t),Cie=t.className?.includes("is-style-rounded"),{postType:Sie,postId:JE,queryId:Tie}=u,Bie=Number.isFinite(Tie),W2=e&&He?(0,ae.jsx)(Ae.Placeholder,{className:"wp-block-image__placeholder",withIllustration:!0,children:(0,ae.jsx)(Ae.Spinner,{})}):(0,ae.jsxs)(ae.Fragment,{children:[(0,ae.jsx)("img",{src:e||g,alt:$2,onError:ma,onLoad:Lc,ref:re,className:p6.className,width:Ur,height:Oa,style:{aspectRatio:L,...j?{width:Z.width+j.width,height:Z.height+j.height}:{width:N,height:P},objectFit:R,...p6.style,...wie.style}}),e&&(0,ae.jsx)(Ae.Spinner,{})]});pt&&q?W2=(0,ae.jsx)(TO,{href:_,children:(0,ae.jsx)(xt.__experimentalImageEditor,{id:v,url:g,...Z,naturalHeight:Oa,naturalWidth:Ur,onSaveImage:Se=>o(Se),onFinishEditing:()=>{Be(!1)},borderProps:Cie?void 0:p6})}):W2=(0,ae.jsx)(TO,{href:_,children:W2});let eL;if(Ze&&a&&!q&&!vB.includes(d)){let Se=L&&nj(L),ao=Z.width/Z.height,jl=Ur/Oa,Ga=Se||ao||jl||1,uh=Ur<Oa?rs:rs*Ga,sm=Oa<Ur?rs:rs/Ga,d6=Ee*2.5,dd=f||d6,Ac=!1,q2=!1;y==="center"?(Ac=!0,q2=!0):(0,Ie.isRTL)()?y==="left"?Ac=!0:q2=!0:y==="right"?q2=!0:Ac=!0,eL=(0,ae.jsx)(Ae.ResizableBox,{ref:ne,style:{position:"absolute",inset:`$X}px 0 0 0`},size:Z,minWidth:uh,maxWidth:dd,minHeight:sm,maxHeight:dd/Ga,lockAspectRatio:Ga,enable:{top:!1,right:Ac,bottom:!0,left:q2},onResizeStart:()=>{ke(!1)},onResize:(Nie,Iie,f6,Z2)=>{K(Z2)},onResizeStop:(Nie,Iie,f6,Z2)=>{if(ke(!0),K(null),te(tL=>({width:tL.width+Z2.width,height:tL.height+Z2.height})),f&&Ur>=f&&Math.abs(f6.offsetWidth-f)<10){o({width:void 0,height:void 0});return}o({width:`$f6.offsetWidth}px`,height:"auto",aspectRatio:Ga===jl?void 0:String(Ga)})},resizeRatio:y==="center"?2:1})}if(!g&&!e)return(0,ae.jsxs)(ae.Fragment,{children:[ch,I?.bindings?YE:O2]});let Pie=()=>{ht("postType",Sie,JE,{featured_media:v}),rt((0,Ie.__)("Post featured image updated."),{type:"snackbar"})};return(0,ae.jsxs)(ae.Fragment,{children:[ch,YE,(0,ae.jsx)(xt.BlockSettingsMenuControls,{children:({selectedClientIds:Se})=>Se.length===1&&!Bie&&JE&&v&&m===Se[0]&&(0,ae.jsx)(Ae.MenuItem,{onClick:Pie,children:(0,Ie.__)("Set as featured image")})}),W2,eL,(0,ae.jsx)(qa,{attributes:t,setAttributes:o,isSelected:a,insertBlocksAfter:n,label:(0,Ie.__)("Image caption text"),showToolbarButton:a&&(tr||Pt)&&!pd})]})}var DO=r(H()),EO=r(we()),LO=r(h());function MO(){let[e,{width:t}]=(0,EO.useResizeObserver)(),o=(0,DO.useRef)();return[(0,LO.jsx)("div",{className:"wp-block","aria-hidden":"true",style:{position:"absolute",inset:0,width:"100%",height:0,margin:0},ref:o,children:e}),t]}var ul=r(h()),Hpe=(e,t)=>{let o=Object.fromEntries(Object.entries(e??{}).filter(([a])=>["alt","id","link","caption"].includes(a)));return o.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e.url,o},OB=(e,t)=>t&&!e&&!(0,X0.isBlobURL)(t);function RO(e,t){return"url"in(e?.sizes?.[t]??{})||"source_url"in(e?.media_details?.sizes?.[t]??{})}function jpe({attributes:e,setAttributes:t,isSelected:o,className:a,insertBlocksAfter:n,onReplace:i,context:l,clientId:s,__unstableParentLayout:c}){let{url:u="",caption:m,id:p,width:d,height:f,sizeSlug:g,aspectRatio:b,scale:y,align:v,metadata:_}=e,[x,k]=(0,bu.useState)(e.blob),C=(0,bu.useRef)(),T=c?.type||c?.default?.type,N=!T||T!=="flex"&&T!=="grid",[P,L]=MO(),[R,{width:z}]=(0,VO.useResizeObserver)(),O=z&&z<160,V=(0,bu.useRef)();(0,bu.useEffect)(()=>{V.current=m},[m]);let{__unstableMarkNextChangeAsNotPersistent:I,replaceBlock:F}=(0,pf.useDispatch)(Ba.store);(0,bu.useEffect)(()=>{["wide","full"].includes(v)&&(I(),t({width:void 0,height:void 0,aspectRatio:void 0,scale:void 0}))},[I,v,t]);let{getSettings:W,getBlockRootClientId:j,getBlockName:K,canInsertBlockType:Z}=(0,pf.useSelect)(Ba.store),te=(0,Ba.useBlockEditingMode)(),{createErrorNotice:X}=(0,pf.useDispatch)(AO.store);function J(fe){X(fe,{type:"snackbar"}),t({src:void 0,id:void 0,url:void 0,blob:void 0})}function ee(fe){let rt=C.current?.ownerDocument.defaultView;if(fe.every(ht=>ht instanceof rt.File)){let ht=fe,yt=j(s);ht.some(qe=>!xB(qe))&&X((0,ns.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});let uo=ht.filter(qe=>xB(qe)).map(qe=>(0,Y0.createBlock)("core/image",{blob:(0,X0.createBlobURL)(qe)}));if(K(yt)==="core/gallery")F(s,uo);else if(Z("core/gallery",yt)){let qe=(0,Y0.createBlock)("core/gallery",{},uo);F(s,qe)}}}function ne(fe){if(Array.isArray(fe)){ee(fe);return}if(!fe||!fe.url){t({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0,blob:void 0}),k();return}if((0,X0.isBlobURL)(fe.url)){k(fe.url);return}let{imageDefaultSize:rt}=W(),ht=W0;g&&RO(fe,g)?ht=g:RO(fe,rt)&&(ht=rt);let yt=Hpe(fe,ht);if(typeof yt.caption=="string"&&yt.caption.includes(` 31 `)&&(yt.caption=yt.caption.replace(/\n/g,"<br>")),V.current&&!yt.caption){let{caption:ua,...q}=yt;yt=q}let uo;(!fe.id||fe.id!==p)&&(uo={sizeSlug:ht});let qe=e.linkDestination;if(!qe)switch(window?.wp?.media?.view?.settings?.defaultProps?.link||sp){case"file":case af:qe=af;break;case"post":case nf:qe=nf;break;case hB:qe=hB;break;case sp:qe=sp;break}let Yt;switch(qe){case af:Yt=fe.url;break;case nf:Yt=fe.link;break}yt.href=Yt,t({blob:void 0,...yt,...uo,linkDestination:qe}),k()}function re(fe){fe!==u&&(t({blob:void 0,url:fe,id:void 0,sizeSlug:W().imageDefaultSize}),k())}Hc({url:x,allowedTypes:mu,onChange:ne,onError:J});let ue=OB(p,u)?u:void 0,Ne=!!u&&(0,ul.jsx)("img",{alt:(0,ns.__)("Edit image"),title:(0,ns.__)("Edit image"),className:"edit-image-preview",src:u}),Le=(0,Ba.__experimentalUseBorderProps)(e),ie=(0,Ba.__experimentalGetShadowClassesAndStyles)(e),Ee=w(a,{"is-transient":!!x,"is-resized":!!d||!!f,[`size-$g}`]:g,"has-custom-border":!!Le.className||Le.style&&Object.keys(Le.style).length>0}),de=(0,Ba.useBlockProps)({ref:C,className:Ee}),{lockUrlControls:oe=!1,lockUrlControlsMessage:ce}=(0,pf.useSelect)(fe=>{if(!o)return{};let rt=(0,Y0.getBlockBindingsSource)(_?.bindings?.url?.source);return{lockUrlControls:!!_?.bindings?.url&&!rt?.canUserEditValue?.({select:fe,context:l,args:_?.bindings?.url?.args}),lockUrlControlsMessage:rt?.label?(0,ns.sprintf)((0,ns.__)("Connected to %s"),rt.label):(0,ns.__)("Connected to dynamic data")}},[l,o,_?.bindings?.url]);return(0,ul.jsxs)(ul.Fragment,{children:[(0,ul.jsxs)("figure",{...de,children:[(0,ul.jsx)(IO,{temporaryURL:x,attributes:e,setAttributes:t,isSingleSelected:o,insertBlocksAfter:n,onReplace:i,onSelectImage:ne,onSelectURL:re,onUploadError:J,context:l,clientId:s,blockEditingMode:te,parentLayoutType:T,maxContentWidth:L}),(0,ul.jsx)(Ba.MediaPlaceholder,{icon:(0,ul.jsx)(Ba.BlockIcon,{icon:Uc}),onSelect:ne,onSelectURL:re,onError:J,placeholder:fe=>(0,ul.jsxs)(zO.Placeholder,{className:w("block-editor-media-placeholder",{[Le.className]:!!Le.className&&!o}),icon:!O&&(oe?$7:Uc),withIllustration:!o||O,label:!O&&(0,ns.__)("Image"),instructions:!oe&&!O&&(0,ns.__)("Drag and drop an image, upload, or choose from your library."),style:{aspectRatio:!(d&&f)&&b?b:void 0,width:f&&b?"100%":d,height:d&&b?"100%":f,objectFit:y,...Le.style,...ie.style},children:[oe&&!O&&ce,!oe&&!O&&fe,R]}),allowedTypes:mu,handleUpload:fe=>fe.length===1,value:{id:p,src:ue},mediaPreview:Ne,disableMediaButtons:x||u})]}),o&&N&&P]})}var FO=jpe;var c5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/image",title:"Image",category:"media",usesContext:["allowResize","imageCrop","fixedHeight","postId","postType","queryId"],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"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{interactivity:!0,align:["left","center","right","wide","full"],anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},spacing:{margin:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},shadow:{__experimentalSkipSerialization:!0}},selectors:{border:".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",shadow:".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",filter:{duotone:".wp-block-image img, .wp-block-image .components-placeholder"}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],editorStyle:"wp-block-image-editor",style:"wp-block-image"};var ml=r(S()),ic=r(h());function HO({attributes:e}){let{url:t,alt:o,caption:a,align:n,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:m,scale:p,id:d,linkTarget:f,sizeSlug:g,title:b,metadata:{bindings:y={}}={}}=e,v=l||void 0,_=(0,ml.__experimentalGetBorderClassesAndStyles)(e),x=(0,ml.__experimentalGetShadowClassesAndStyles)(e),k=w({alignnone:n==="none",[`size-$g}`]:g,"is-resized":c||u,"has-custom-border":!!_.className||_.style&&Object.keys(_.style).length>0}),C=w(_.className,{[`wp-image-$d}`]:!!d}),T=(0,ic.jsx)("img",{src:t,alt:o,className:C||void 0,style:{..._.style,...x.style,aspectRatio:m,objectFit:p,width:c,height:u},title:b}),N=!ml.RichText.isEmpty(a)||y.caption||y?.__default?.source==="core/pattern-overrides",P=(0,ic.jsxs)(ic.Fragment,{children:[i?(0,ic.jsx)("a",{className:s,href:i,target:f,rel:v,children:T}):T,N&&(0,ic.jsx)(ml.RichText.Content,{className:(0,ml.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:a})]});return(0,ic.jsx)("figure",{...ml.useBlockProps.save({className:k}),children:P})}var u5=r(No()),J0=r(U());function Upe(e,{shortcode:t}){let{body:o}=document.implementation.createHTMLDocument("");o.innerHTML=t.content;let a=o.querySelector("img");for(;a&&a.parentNode&&a.parentNode!==o;)a=a.parentNode;return a&&a.parentNode.removeChild(a),o.innerHTML.trim()}function UB(e,t){let{body:o}=document.implementation.createHTMLDocument("");o.innerHTML=e;let{firstElementChild:a}=o;if(a&&a.nodeName==="A")return a.getAttribute(t)||void 0}var jO={img:{attributes:["src","alt","title"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}},Gpe=({phrasingContentSchema:e})=>({figure:{require:["img"],children:{...jO,a:{attributes:["href","rel","target"],classes:["*"],children:jO},figcaption:{children:e}}}}),$pe={from:[{type:"raw",isMatch:e=>e.nodeName==="FIGURE"&&!!e.querySelector("img"),schema:Gpe,transform:e=>{let t=e.className+" "+e.querySelector("img").className,o=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(t),a=e.id===""?void 0:e.id,n=o?o[1]:void 0,i=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(t),l=i?Number(i[1]):void 0,s=e.querySelector("a"),c=s&&s.href?"custom":void 0,u=s&&s.href?s.href:void 0,m=s&&s.rel?s.rel:void 0,p=s&&s.className?s.className:void 0,d=(0,J0.getBlockAttributes)("core/image",e.outerHTML,{align:n,id:l,linkDestination:c,href:u,rel:m,linkClass:p,anchor:a});return(0,u5.isBlobURL)(d.url)&&(d.blob=d.url,delete d.url),(0,J0.createBlock)("core/image",d)}},{type:"files",isMatch(e){return e.every(t=>t.type.indexOf("image/")===0)},transform(e){return e.map(o=>(0,J0.createBlock)("core/image",{blob:(0,u5.createBlobURL)(o)}))}},{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:Upe},href:{shortcode:(e,{shortcode:t})=>UB(t.content,"href")},rel:{shortcode:(e,{shortcode:t})=>UB(t.content,"rel")},linkClass:{shortcode:(e,{shortcode:t})=>UB(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","")}}}]},OO=$pe;var{fieldsKey:Wpe,formKey:qpe}=Q(UO.privateApis),{name:GO}=c5,m5={icon:Uc,example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:(0,pp.__)("Mont Blanc appears\u2014still, snowy, and serene.")}},__experimentalLabel(e,{context:t}){let o=e?.metadata?.name;if(t==="list-view"&&o)return o;if(t==="accessibility"){let{caption:a,alt:n,url:i}=e;return i?n?n+(a?". "+a:""):a||"":(0,pp.__)("Empty")}},getEditWrapperProps(e){return{"data-align":e.align}},transforms:OO,edit:FO,save:HO,deprecated:CO};window.__experimentalContentOnlyInspectorFields&&(m5[Wpe]=[{id:"image",label:(0,pp.__)("Image"),type:"media",mapping:{id:"id",url:"url",caption:"caption",alt:"alt"},args:{allowedTypes:["image"],multiple:!1}},{id:"link",label:(0,pp.__)("Link"),type:"link",mapping:{url:"href",rel:"rel",linkTarget:"linkTarget",destination:"linkDestination"}},{id:"caption",label:(0,pp.__)("Caption"),type:"richtext"},{id:"alt",label:(0,pp.__)("Alt text"),type:"text"}],m5[qpe]={fields:["image"]});var Zpe=()=>D({name:GO,metadata:c5,settings:m5});var $B={};$($B,{init:()=>Jpe,metadata:()=>p5,name:()=>ZO,settings:()=>KO});var p5={$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:{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}},editorStyle:"wp-block-latest-comments-editor",style:"wp-block-latest-comments"};var d5=r(S()),Xr=r(M()),$O=r(Vc()),$n=r(B());var Pa=r(h()),Qpe=1,Ype=100;function WO({attributes:e,setAttributes:t}){let{commentsToShow:o,displayAvatar:a,displayDate:n,displayContent:i}=e,l={...e,style:{...e?.style,spacing:void 0}},s=G();return(0,Pa.jsxs)("div",{...(0,d5.useBlockProps)(),children:[(0,Pa.jsx)(d5.InspectorControls,{children:(0,Pa.jsxs)(Xr.__experimentalToolsPanel,{label:(0,$n.__)("Settings"),resetAll:()=>{t({commentsToShow:5,displayAvatar:!0,displayDate:!0,displayContent:"excerpt"})},dropdownMenuProps:s,children:[(0,Pa.jsx)(Xr.__experimentalToolsPanelItem,{hasValue:()=>!a,label:(0,$n.__)("Display avatar"),onDeselect:()=>t({displayAvatar:!0}),isShownByDefault:!0,children:(0,Pa.jsx)(Xr.ToggleControl,{label:(0,$n.__)("Display avatar"),checked:a,onChange:()=>t({displayAvatar:!a})})}),(0,Pa.jsx)(Xr.__experimentalToolsPanelItem,{hasValue:()=>!n,label:(0,$n.__)("Display date"),onDeselect:()=>t({displayDate:!0}),isShownByDefault:!0,children:(0,Pa.jsx)(Xr.ToggleControl,{label:(0,$n.__)("Display date"),checked:n,onChange:()=>t({displayDate:!n})})}),(0,Pa.jsx)(Xr.__experimentalToolsPanelItem,{hasValue:()=>i!=="excerpt",label:(0,$n.__)("Display content"),onDeselect:()=>t({displayContent:"excerpt"}),isShownByDefault:!0,children:(0,Pa.jsx)(Xr.SelectControl,{__next40pxDefaultSize:!0,label:(0,$n.__)("Display content"),value:i,options:[{label:(0,$n.__)("No content"),value:"none"},{label:(0,$n.__)("Excerpt"),value:"excerpt"},{label:(0,$n.__)("Full content"),value:"full"}],onChange:c=>t({displayContent:c})})}),(0,Pa.jsx)(Xr.__experimentalToolsPanelItem,{hasValue:()=>o!==5,label:(0,$n.__)("Number of comments"),onDeselect:()=>t({commentsToShow:5}),isShownByDefault:!0,children:(0,Pa.jsx)(Xr.RangeControl,{__next40pxDefaultSize:!0,label:(0,$n.__)("Number of comments"),value:o,onChange:c=>t({commentsToShow:c}),min:Qpe,max:Ype,required:!0})})]})}),(0,Pa.jsx)(Xr.Disabled,{children:(0,Pa.jsx)($O.default,{block:"core/latest-comments",attributes:l,urlQueryArgs:{_locale:"site"}})})]})}var Xpe={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}},isEligible(e){return e?.displayExcerpt===!1},migrate(e){return{...e,displayContent:e.displayExcerpt?"excerpt":"none"}}},qO=[Xpe];var{name:ZO}=p5,KO={icon:_h,example:{},edit:WO,deprecated:qO},Jpe=()=>D({name:ZO,metadata:p5,settings:KO});var KB={};$(KB,{init:()=>sde,metadata:()=>df,name:()=>oU,settings:()=>rU});var df={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/latest-posts",title:"Latest Posts",category:"widgets",description:"Display a list of your most recent posts.",keywords:["recent posts"],textdomain:"default",attributes:{categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null},addLinkToFeaturedImage:{type:"boolean",default:!1}},supports:{align:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-latest-posts-editor",style:"wp-block-latest-posts"};var{attributes:tde}=df,QO=[{attributes:{...tde,categories:{type:"string"}},supports:{align:!0,html:!1},migrate:e=>({...e,categories:[{id:Number(e.categories)}]}),isEligible:({categories:e})=>e&&typeof e=="string",save:()=>null}];var je=r(M()),Me=r(B()),ff=r(Rx()),is=r(S()),e1=r(A());var qB=r(Y()),JO=r(wo()),eU=r(we()),tU=r(H());var YO=10,XO=100,WB=6,f5=55;var he=r(h()),ode={per_page:-1,_fields:"id,name",context:"view"},rde={per_page:-1,has_published_posts:["post"],context:"view"},ade=[{value:"none",icon:N6,label:(0,Me.__)("None")},{value:"left",icon:Q7,label:(0,Me.__)("Left")},{value:"center",icon:Z7,label:(0,Me.__)("Center")},{value:"right",icon:X7,label:(0,Me.__)("Right")}];function nde(e,t){let o=e._embedded?.["wp:featuredmedia"]?.["0"];return{url:o?.media_details?.sizes?.[t]?.source_url??o?.source_url,alt:o?.alt_text}}function ide(e){return e._embedded?.author?.[0]}function lde({attributes:e,setAttributes:t,postCount:o}){let{postsToShow:a,order:n,orderBy:i,categories:l,selectedAuthor:s,displayFeaturedImage:c,displayPostContentRadio:u,displayPostContent:m,displayPostDate:p,displayAuthor:d,postLayout:f,columns:g,excerptLength:b,featuredImageAlign:y,featuredImageSizeSlug:v,featuredImageSizeWidth:_,featuredImageSizeHeight:x,addLinkToFeaturedImage:k}=e,{imageSizes:C,defaultImageWidth:T,defaultImageHeight:N,categoriesList:P,authorList:L}=(0,e1.useSelect)(I=>{let{getEntityRecords:F,getUsers:W}=I(qB.store),j=I(is.store).getSettings();return{defaultImageWidth:j.imageDimensions?.[v]?.width??0,defaultImageHeight:j.imageDimensions?.[v]?.height??0,imageSizes:j.imageSizes,categoriesList:F("taxonomy","category",ode),authorList:W(rde)}},[v]),R=G(),z=C.filter(({slug:I})=>I!=="full").map(({name:I,slug:F})=>({value:F,label:I})),O=P?.reduce((I,F)=>({...I,[F.name]:F}),{})??{},V=I=>{if(I.some(j=>typeof j=="string"&&!O[j]))return;let W=I.map(j=>typeof j=="string"?O[j]:j);if(W.includes(null))return!1;t({categories:W})};return(0,he.jsxs)(he.Fragment,{children:[(0,he.jsxs)(je.__experimentalToolsPanel,{label:(0,Me.__)("Post content"),resetAll:()=>t({displayPostContent:!1,displayPostContentRadio:"excerpt",excerptLength:f5}),dropdownMenuProps:R,children:[(0,he.jsx)(je.__experimentalToolsPanelItem,{hasValue:()=>!!m,label:(0,Me.__)("Display post content"),onDeselect:()=>t({displayPostContent:!1}),isShownByDefault:!0,children:(0,he.jsx)(je.ToggleControl,{label:(0,Me.__)("Display post content"),checked:m,onChange:I=>t({displayPostContent:I})})}),m&&(0,he.jsx)(je.__experimentalToolsPanelItem,{hasValue:()=>u!=="excerpt",label:(0,Me.__)("Content length"),onDeselect:()=>t({displayPostContentRadio:"excerpt"}),isShownByDefault:!0,children:(0,he.jsx)(je.RadioControl,{label:(0,Me.__)("Content length"),selected:u,options:[{label:(0,Me.__)("Excerpt"),value:"excerpt"},{label:(0,Me.__)("Full post"),value:"full_post"}],onChange:I=>t({displayPostContentRadio:I})})}),m&&u==="excerpt"&&(0,he.jsx)(je.__experimentalToolsPanelItem,{hasValue:()=>b!==f5,label:(0,Me.__)("Max number of words"),onDeselect:()=>t({excerptLength:f5}),isShownByDefault:!0,children:(0,he.jsx)(je.RangeControl,{__next40pxDefaultSize:!0,label:(0,Me.__)("Max number of words"),value:b,onChange:I=>t({excerptLength:I}),min:YO,max:XO})})]}),(0,he.jsxs)(je.__experimentalToolsPanel,{label:(0,Me.__)("Post meta"),resetAll:()=>t({displayAuthor:!1,displayPostDate:!1}),dropdownMenuProps:R,children:[(0,he.jsx)(je.__experimentalToolsPanelItem,{hasValue:()=>!!d,label:(0,Me.__)("Display author name"),onDeselect:()=>t({displayAuthor:!1}),isShownByDefault:!0,children:(0,he.jsx)(je.ToggleControl,{label:(0,Me.__)("Display author name"),checked:d,onChange:I=>t({displayAuthor:I})})}),(0,he.jsx)(je.__experimentalToolsPanelItem,{hasValue:()=>!!p,label:(0,Me.__)("Display post date"),onDeselect:()=>t({displayPostDate:!1}),isShownByDefault:!0,children:(0,he.jsx)(je.ToggleControl,{label:(0,Me.__)("Display post date"),checked:p,onChange:I=>t({displayPostDate:I})})})]}),(0,he.jsxs)(je.__experimentalToolsPanel,{label:(0,Me.__)("Featured image"),resetAll:()=>t({displayFeaturedImage:!1,featuredImageAlign:void 0,featuredImageSizeSlug:"thumbnail",featuredImageSizeWidth:null,featuredImageSizeHeight:null,addLinkToFeaturedImage:!1}),dropdownMenuProps:R,children:[(0,he.jsx)(je.__experimentalToolsPanelItem,{hasValue:()=>!!c,label:(0,Me.__)("Display featured image"),onDeselect:()=>t({displayFeaturedImage:!1}),isShownByDefault:!0,children:(0,he.jsx)(je.ToggleControl,{label:(0,Me.__)("Display featured image"),checked:c,onChange:I=>t({displayFeaturedImage:I})})}),c&&(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)(je.__experimentalToolsPanelItem,{hasValue:()=>v!=="thumbnail"||_!==null||x!==null,label:(0,Me.__)("Image size"),onDeselect:()=>t({featuredImageSizeSlug:"thumbnail",featuredImageSizeWidth:null,featuredImageSizeHeight:null}),isShownByDefault:!0,children:(0,he.jsx)(is.__experimentalImageSizeControl,{onChange:I=>{let F={};I.hasOwnProperty("width")&&(F.featuredImageSizeWidth=I.width),I.hasOwnProperty("height")&&(F.featuredImageSizeHeight=I.height),t(F)},slug:v,width:_,height:x,imageWidth:T,imageHeight:N,imageSizeOptions:z,imageSizeHelp:(0,Me.__)("Select the size of the source image."),onChangeImage:I=>t({featuredImageSizeSlug:I,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})})}),(0,he.jsx)(je.__experimentalToolsPanelItem,{hasValue:()=>!!y,label:(0,Me.__)("Image alignment"),onDeselect:()=>t({featuredImageAlign:void 0}),isShownByDefault:!0,children:(0,he.jsx)(je.__experimentalToggleGroupControl,{className:"editor-latest-posts-image-alignment-control",__next40pxDefaultSize:!0,label:(0,Me.__)("Image alignment"),value:y||"none",onChange:I=>t({featuredImageAlign:I!=="none"?I:void 0}),children:ade.map(({value:I,icon:F,label:W})=>(0,he.jsx)(je.__experimentalToggleGroupControlOptionIcon,{value:I,icon:F,label:W},I))})}),(0,he.jsx)(je.__experimentalToolsPanelItem,{hasValue:()=>!!k,label:(0,Me.__)("Add link to featured image"),onDeselect:()=>t({addLinkToFeaturedImage:!1}),isShownByDefault:!0,children:(0,he.jsx)(je.ToggleControl,{label:(0,Me.__)("Add link to featured image"),checked:k,onChange:I=>t({addLinkToFeaturedImage:I})})})]})]}),(0,he.jsxs)(je.__experimentalToolsPanel,{label:(0,Me.__)("Sorting and filtering"),resetAll:()=>t({order:"desc",orderBy:"date",postsToShow:5,categories:void 0,selectedAuthor:void 0,columns:3}),dropdownMenuProps:R,children:[(0,he.jsx)(je.__experimentalToolsPanelItem,{hasValue:()=>n!=="desc"||i!=="date"||a!==5||l?.length>0||!!s,label:(0,Me.__)("Sort and filter"),onDeselect:()=>t({order:"desc",orderBy:"date",postsToShow:5,categories:void 0,selectedAuthor:void 0}),isShownByDefault:!0,children:(0,he.jsx)(je.QueryControls,{order:n,orderBy:i,numberOfItems:a,onOrderChange:I=>t({order:I}),onOrderByChange:I=>t({orderBy:I}),onNumberOfItemsChange:I=>t({postsToShow:I}),categorySuggestions:O,onCategoryChange:V,selectedCategories:l,onAuthorChange:I=>t({selectedAuthor:I!==""?Number(I):void 0}),authorList:L??[],selectedAuthorId:s})}),f==="grid"&&(0,he.jsx)(je.__experimentalToolsPanelItem,{hasValue:()=>g!==3,label:(0,Me.__)("Columns"),onDeselect:()=>t({columns:3}),isShownByDefault:!0,children:(0,he.jsx)(je.RangeControl,{__next40pxDefaultSize:!0,label:(0,Me.__)("Columns"),value:g,onChange:I=>t({columns:I}),min:2,max:o?Math.min(WB,o):WB,required:!0})})]})]})}function ZB({attributes:e,setAttributes:t}){let o=(0,eU.useInstanceId)(ZB),{postsToShow:a,order:n,orderBy:i,categories:l,selectedAuthor:s,displayFeaturedImage:c,displayPostContentRadio:u,displayPostContent:m,displayPostDate:p,displayAuthor:d,postLayout:f,columns:g,excerptLength:b,featuredImageAlign:y,featuredImageSizeSlug:v,featuredImageSizeWidth:_,featuredImageSizeHeight:x,addLinkToFeaturedImage:k}=e,{latestPosts:C}=(0,e1.useSelect)(I=>{let{getEntityRecords:F}=I(qB.store),W=l&&l.length>0?l.map(K=>K.id):[],j=Object.fromEntries(Object.entries({categories:W,author:s,order:n,orderby:i,per_page:a,_embed:"author,wp:featuredmedia",ignore_sticky:!0}).filter(([,K])=>typeof K<"u"));return{latestPosts:F("postType","post",j)}},[a,n,i,l,s]),{createWarningNotice:T}=(0,e1.useDispatch)(JO.store),N=I=>{I.preventDefault(),T((0,Me.__)("Links are disabled in the editor."),{id:`block-library/core/latest-posts/redirection-prevented/$o}`,type:"snackbar"})},P=!!C?.length,L=(0,he.jsx)(is.InspectorControls,{children:(0,he.jsx)(lde,{attributes:e,setAttributes:t,postCount:C?.length??0})}),R=(0,is.useBlockProps)({className:w({"wp-block-latest-posts__list":!0,"is-grid":f==="grid","has-dates":p,"has-author":d,[`columns-$g}`]:f==="grid"})});if(!P)return(0,he.jsxs)("div",{...R,children:[L,(0,he.jsx)(je.Placeholder,{icon:Hh,label:(0,Me.__)("Latest Posts"),children:Array.isArray(C)?(0,Me.__)("No posts found."):(0,he.jsx)(je.Spinner,{})})]});let z=C.length>a?C.slice(0,a):C,O=[{icon:Gi,title:(0,Me._x)("List view","Latest posts block display setting"),onClick:()=>t({postLayout:"list"}),isActive:f==="list"},{icon:Ui,title:(0,Me._x)("Grid view","Latest posts block display setting"),onClick:()=>t({postLayout:"grid"}),isActive:f==="grid"}],V=(0,ff.getSettings)().formats.date;return(0,he.jsxs)(he.Fragment,{children:[L,(0,he.jsx)(is.BlockControls,{children:(0,he.jsx)(je.ToolbarGroup,{controls:O})}),(0,he.jsx)("ul",{...R,children:z.map(I=>{let F=I.title.rendered.trim(),W=I.excerpt.rendered,j=ide(I),K=document.createElement("div");K.innerHTML=W,W=K.textContent||K.innerText||"";let{url:Z,alt:te}=nde(I,v),X=w({"wp-block-latest-posts__featured-image":!0,[`align$y}`]:!!y}),J=c&&Z,ee=J&&(0,he.jsx)("img",{src:Z,alt:te,style:{maxWidth:_,maxHeight:x}}),re=b<W.trim().split(" ").length&&I.excerpt.raw===""?(0,he.jsxs)(he.Fragment,{children:[W.trim().split(" ",b).join(" "),(0,tU.createInterpolateElement)((0,Me.sprintf)((0,Me.__)("\u2026 <a>Read more<span>: %1$s</span></a>"),F||(0,Me.__)("(no title)")),{a:(0,he.jsx)("a",{className:"wp-block-latest-posts__read-more",href:I.link,rel:"noopener noreferrer",onClick:N}),span:(0,he.jsx)("span",{className:"screen-reader-text"})})]}):W;return(0,he.jsxs)("li",{children:[J&&(0,he.jsx)("div",{className:X,children:k?(0,he.jsx)("a",{href:I.link,onClick:N,children:ee}):ee}),(0,he.jsx)("a",{className:"wp-block-latest-posts__post-title",href:I.link,dangerouslySetInnerHTML:F?{__html:F}:void 0,onClick:N,children:F?null:(0,Me.__)("(no title)")}),d&&j&&(0,he.jsx)("div",{className:"wp-block-latest-posts__post-author",children:(0,Me.sprintf)((0,Me.__)("by %s"),j.name)}),p&&I.date_gmt&&(0,he.jsx)("time",{dateTime:(0,ff.format)("c",I.date_gmt),className:"wp-block-latest-posts__post-date",children:(0,ff.dateI18n)(V,I.date_gmt)}),m&&u==="excerpt"&&(0,he.jsx)("div",{className:"wp-block-latest-posts__post-excerpt",children:re}),m&&u==="full_post"&&(0,he.jsx)("div",{className:"wp-block-latest-posts__post-full-content",dangerouslySetInnerHTML:{__html:I.content.raw.trim()}})]},I.id)})})]})}var{name:oU}=df,rU={icon:$h,example:{},edit:ZB,deprecated:QO},sde=()=>D({name:oU,metadata:df,settings:rU});var JB={};$(JB,{init:()=>kde,metadata:()=>b5,name:()=>xU,settings:()=>_U});var vf=r(B());var pl=r(S());var gf=r(U()),g5={A:"upper-alpha",a:"lower-alpha",I:"upper-roman",i:"lower-roman"};function QB(e){let t=e.getAttribute("type"),o={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&&g5[t]?g5[t]:void 0},a=Array.from(e.children).map(n=>{let i=Array.from(n.childNodes).filter(d=>d.nodeType!==d.TEXT_NODE||d.textContent.trim().length!==0);i.reverse();let[l,...s]=i;if(!(l?.tagName==="UL"||l?.tagName==="OL"))return(0,gf.createBlock)("core/list-item",{content:n.innerHTML});let u=s.map(d=>d.nodeType===d.TEXT_NODE?d.textContent:d.outerHTML);u.reverse();let m={content:u.join("").trim()},p=[QB(l)];return(0,gf.createBlock)("core/list-item",m,p)});return(0,gf.createBlock)("core/list",o,a)}function h5(e){let{values:t,start:o,reversed:a,ordered:n,type:i,...l}=e,s=document.createElement(n?"ol":"ul");s.innerHTML=t,o&&s.setAttribute("start",o),a&&s.setAttribute("reversed",!0),i&&s.setAttribute("type",i);let[c]=(0,gf.rawHandler)({HTML:s.outerHTML});return[{...l,...c.attributes},c.innerBlocks]}function aU(e){let{type:t}=e;return t&&g5[t]?{...e,type:g5[t]}:e}var lc=r(h()),cde={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:o,type:a,reversed:n,start:i}=e;return(0,lc.jsx)(t?"ol":"ul",{...pl.useBlockProps.save({type:a,reversed:n,start:i}),children:(0,lc.jsx)(pl.RichText.Content,{value:o,multiline:"li"})})},migrate:Nt,isEligible({style:e}){return e?.typography?.fontFamily}},ude={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:o,type:a,reversed:n,start:i}=e;return(0,lc.jsx)(t?"ol":"ul",{...pl.useBlockProps.save({type:a,reversed:n,start:i}),children:(0,lc.jsx)(pl.RichText.Content,{value:o,multiline:"li"})})},migrate:h5},mde={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:o,reversed:a,start:n}=e;return(0,lc.jsx)(t?"ol":"ul",{...pl.useBlockProps.save({type:o,reversed:a,start:n}),children:(0,lc.jsx)(pl.InnerBlocks.Content,{})})},migrate:aU},pde={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:o,reversed:a,start:n}=e;return(0,lc.jsx)(t?"ol":"ul",{...pl.useBlockProps.save({reversed:a,start:n,style:{listStyleType:t&&o!=="decimal"?o:void 0}}),children:(0,lc.jsx)(pl.InnerBlocks.Content,{})})}},nU=[pde,mde,ude,cde];var fl=r(S()),v5=r(M()),yu=r(A()),dl=r(B());var fU=r(U()),dp=r(H()),gU=r(Id());var Br=r(B()),lU=r(S()),Pr=r(M()),sU=r(H());var ln=r(h()),iU=[{label:(0,Br.__)("Numbers"),value:"decimal"},{label:(0,Br.__)("Uppercase letters"),value:"upper-alpha"},{label:(0,Br.__)("Lowercase letters"),value:"lower-alpha"},{label:(0,Br.__)("Uppercase Roman numerals"),value:"upper-roman"},{label:(0,Br.__)("Lowercase Roman numerals"),value:"lower-roman"}],dde=({setAttributes:e,reversed:t,start:o,type:a})=>{let n=G();return(0,ln.jsx)(lU.InspectorControls,{children:sU.Platform.isNative?(0,ln.jsxs)(Pr.PanelBody,{title:(0,Br.__)("Settings"),children:[(0,ln.jsx)(Pr.SelectControl,{__next40pxDefaultSize:!0,label:(0,Br.__)("List style"),options:iU,value:a,onChange:i=>e({type:i})}),(0,ln.jsx)(Pr.TextControl,{__next40pxDefaultSize:!0,label:(0,Br.__)("Start value"),type:"number",onChange:i=>{let l=parseInt(i,10);e({start:isNaN(l)?void 0:l})},value:Number.isInteger(o)?o.toString(10):"",step:"1"}),(0,ln.jsx)(Pr.ToggleControl,{label:(0,Br.__)("Reverse order"),checked:t||!1,onChange:i=>{e({reversed:i||void 0})}})]}):(0,ln.jsxs)(Pr.__experimentalToolsPanel,{label:(0,Br.__)("Settings"),resetAll:()=>{e({type:void 0,start:void 0,reversed:void 0})},dropdownMenuProps:n,children:[(0,ln.jsx)(Pr.__experimentalToolsPanelItem,{label:(0,Br.__)("List style"),isShownByDefault:!0,hasValue:()=>!!a,onDeselect:()=>e({type:void 0}),children:(0,ln.jsx)(Pr.SelectControl,{__next40pxDefaultSize:!0,label:(0,Br.__)("List style"),options:iU,value:a||"decimal",onChange:i=>e({type:i})})}),(0,ln.jsx)(Pr.__experimentalToolsPanelItem,{label:(0,Br.__)("Start value"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>e({start:void 0}),children:(0,ln.jsx)(Pr.TextControl,{__next40pxDefaultSize:!0,label:(0,Br.__)("Start value"),type:"number",onChange:i=>{let l=parseInt(i,10);e({start:isNaN(l)?void 0:l})},value:Number.isInteger(o)?o.toString(10):"",step:"1"})}),(0,ln.jsx)(Pr.__experimentalToolsPanelItem,{label:(0,Br.__)("Reverse order"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>e({reversed:void 0}),children:(0,ln.jsx)(Pr.ToggleControl,{label:(0,Br.__)("Reverse order"),checked:t||!1,onChange:i=>{e({reversed:i||void 0})}})})]})})},cU=dde;var uU=r(H()),mU=r(h());function fde(e,t){let{ordered:o,...a}=e;return(0,mU.jsx)(o?"ol":"ul",{ref:t,...a})}var pU=(0,uU.forwardRef)(fde);var sn=r(h()),gde={name:"core/list-item"},hde=[["core/list-item"]],dU=8;function vde(e,t){let o=(0,yu.useRegistry)(),{updateBlockAttributes:a,replaceInnerBlocks:n}=(0,yu.useDispatch)(fl.store);(0,dp.useEffect)(()=>{if(!e.values)return;let[i,l]=h5(e);(0,gU.default)("Value attribute on the list block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),o.batch(()=>{a(t,i),n(t,l)})},[e.values])}function bde(e){let{replaceBlocks:t,selectionChange:o}=(0,yu.useDispatch)(fl.store),{getBlockRootClientId:a,getBlockAttributes:n,getBlock:i}=(0,yu.useSelect)(fl.store);return(0,dp.useCallback)(()=>{let l=a(e),s=n(l),c=(0,fU.createBlock)("core/list-item",s),{innerBlocks:u}=i(e);t([l],[c,...u]),o(u[u.length-1].clientId)},[e])}function yde({clientId:e}){let t=bde(e),o=(0,yu.useSelect)(a=>{let{getBlockRootClientId:n,getBlockName:i}=a(fl.store);return i(n(e))==="core/list-item"},[e]);return(0,sn.jsx)(sn.Fragment,{children:(0,sn.jsx)(v5.ToolbarButton,{icon:(0,dl.isRTL)()?Ih:Dh,title:(0,dl.__)("Outdent"),description:(0,dl.__)("Outdent list item"),disabled:!o,onClick:t})})}function hU({attributes:e,setAttributes:t,clientId:o,style:a}){let{ordered:n,type:i,reversed:l,start:s}=e,c=(0,fl.useBlockProps)({style:{...dp.Platform.isNative&&a,listStyleType:n&&i!=="decimal"?i:void 0}}),u=(0,fl.useInnerBlocksProps)(c,{defaultBlock:gde,directInsert:!0,template:hde,templateLock:!1,templateInsertUpdatesSelection:!0,...dp.Platform.isNative&&{marginVertical:dU,marginHorizontal:dU,renderAppender:!1},__experimentalCaptureToolbars:!0});vde(e,o);let m=(0,sn.jsxs)(fl.BlockControls,{group:"block",children:[(0,sn.jsx)(v5.ToolbarButton,{icon:(0,dl.isRTL)()?Bh:Ph,title:(0,dl.__)("Unordered"),description:(0,dl.__)("Convert to unordered list"),isActive:n===!1,onClick:()=>{t({ordered:!1})}}),(0,sn.jsx)(v5.ToolbarButton,{icon:(0,dl.isRTL)()?Nh:pi,title:(0,dl.__)("Ordered"),description:(0,dl.__)("Convert to ordered list"),isActive:n===!0,onClick:()=>{t({ordered:!0})}}),(0,sn.jsx)(yde,{clientId:o})]});return(0,sn.jsxs)(sn.Fragment,{children:[(0,sn.jsx)(pU,{ordered:n,reversed:l,start:s,...u}),m,n&&(0,sn.jsx)(cU,{setAttributes:t,reversed:l,start:s,type:i})]})}var b5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list",title:"List",category:"text",allowedBlocks:["core/list-item"],description:"An organized collection of items displayed in a specific order.",keywords:["bullet list","ordered list","numbered list"],textdomain:"default",attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,html:!1,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalOnMerge:!0,__experimentalSlashInserter:!0,interactivity:{clientNavigation:!0}},selectors:{border:".wp-block-list:not(.wp-block-list .wp-block-list)"},editorStyle:"wp-block-list-editor",style:"wp-block-list"};var y5=r(S()),YB=r(h());function vU({attributes:e}){let{ordered:t,type:o,reversed:a,start:n}=e;return(0,YB.jsx)(t?"ol":"ul",{...y5.useBlockProps.save({reversed:a,start:n,style:{listStyleType:t&&o!=="decimal"?o:void 0}}),children:(0,YB.jsx)(y5.InnerBlocks.Content,{})})}var sc=r(U()),hf=r(Em());function bU({phrasingContentSchema:e}){let t={...e,ul:{},ol:{attributes:["type","start","reversed"]}};return["ul","ol"].forEach(o=>{t[o].children={li:{children:t}}}),t}function XB(e){return e.flatMap(({name:t,attributes:o,innerBlocks:a=[]})=>t==="core/list-item"?[o.content,...XB(a)]:XB(a))}var _de={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading"],transform:e=>{let t=[];if(e.length>1)t=e.map(({content:o})=>(0,sc.createBlock)("core/list-item",{content:o}));else if(e.length===1){let o=(0,hf.create)({html:e[0].content});t=(0,hf.split)(o,` 32 `).map(a=>(0,sc.createBlock)("core/list-item",{content:(0,hf.toHTMLString)({value:a})}))}return(0,sc.createBlock)("core/list",{anchor:e.anchor},t)}},{type:"raw",selector:"ol,ul",schema:e=>({ol:bU(e).ol,ul:bU(e).ul}),transform:QB},...["*","-"].map(e=>({type:"prefix",prefix:e,transform(t){return(0,sc.createBlock)("core/list",{},[(0,sc.createBlock)("core/list-item",{content:t})])}})),...["1.","1)"].map(e=>({type:"prefix",prefix:e,transform(t){return(0,sc.createBlock)("core/list",{ordered:!0},[(0,sc.createBlock)("core/list-item",{content:t})])}}))],to:[...["core/paragraph","core/heading"].map(e=>({type:"block",blocks:[e],transform:(t,o)=>XB(o).map(a=>(0,sc.createBlock)(e,{content:a}))}))]},yU=_de;var{name:xU}=b5,_U={icon:Gi,example:{innerBlocks:[{name:"core/list-item",attributes:{content:(0,vf.__)("Alice.")}},{name:"core/list-item",attributes:{content:(0,vf.__)("The White Rabbit.")}},{name:"core/list-item",attributes:{content:(0,vf.__)("The Cheshire Cat.")}},{name:"core/list-item",attributes:{content:(0,vf.__)("The Mad Hatter.")}},{name:"core/list-item",attributes:{content:(0,vf.__)("The Queen of Hearts.")}}]},transforms:yU,edit:hU,save:vU,deprecated:nU},kde=()=>D({name:xU,metadata:b5,settings:_U});var tP={};$(tP,{init:()=>Tde,metadata:()=>_5,name:()=>DU,settings:()=>EU});var xu=r(B()),x5=r(S()),ku=r(M()),_u=r(H()),wU=r(A()),CU=r(t1());var Wn=r(h()),{Badge:wde}=Q(ku.privateApis);function SU({attributes:e,setAttributes:t,isSelected:o}){let{latex:a,mathML:n}=e,[i,l]=(0,_u.useState)(),[s,c]=(0,_u.useState)(null),[u,m]=(0,_u.useState)(),p=(0,_u.useRef)(a),{__unstableMarkNextChangeAsNotPersistent:d}=(0,wU.useDispatch)(x5.store);(0,_u.useEffect)(()=>{import("@wordpress/latex-to-mathml").then(g=>{m(()=>g.default),p.current&&(d(),t({mathML:g.default(p.current,{displayMode:!0})}))})},[p,t,d]);let f=(0,x5.useBlockProps)({ref:l,position:"relative"});return(0,Wn.jsxs)("div",{...f,children:[n?(0,Wn.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:n}}):"\u200B",o&&(0,Wn.jsx)(ku.Popover,{placement:"bottom-start",offset:8,anchor:i,focusOnMount:!1,__unstableSlotName:"__unstable-block-tools-after",children:(0,Wn.jsx)("div",{style:{padding:"4px",minWidth:"300px"},children:(0,Wn.jsxs)(ku.__experimentalVStack,{spacing:1,children:[(0,Wn.jsx)(ku.TextareaControl,{__next40pxDefaultSize:!0,label:(0,xu.__)("LaTeX math syntax"),hideLabelFromVision:!0,value:a,className:"wp-block-math__textarea-control",onChange:g=>{if(!u){t({latex:g});return}let b="";try{b=u(g,{displayMode:!0}),c(null)}catch(y){c(y.message),(0,CU.speak)((0,xu.sprintf)((0,xu.__)("Error parsing mathematical expression: %s"),y.message))}t({mathML:b,latex:g})},placeholder:(0,xu.__)("e.g., x^2, \\frac{a}{b}")}),s&&(0,Wn.jsxs)(Wn.Fragment,{children:[(0,Wn.jsx)(wde,{intent:"error",className:"wp-block-math__error",children:(0,xu.sprintf)((0,xu.__)("Error: %s"),s)}),(0,Wn.jsx)("style",{children:".wp-block-math__error .components-badge__content{white-space:normal}"})]})]})})})]})}var _5={$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:{html:!1,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,__experimentalDefaultControls:{fontSize:!0}}},attributes:{latex:{type:"string",role:"content"},mathML:{type:"string",source:"html",selector:"math"}}};var TU=r(S()),eP=r(h());function BU({attributes:e}){let{latex:t,mathML:o}=e;return t?(0,eP.jsx)("div",{...TU.useBlockProps.save(),children:(0,eP.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:o}})}):null}var PU=r(S()),NU=r(h()),Sde={attributes:{latex:{type:"string",role:"content"},mathML:{type:"string",source:"html",selector:"math"}},save({attributes:e}){let{latex:t,mathML:o}=e;return t?(0,NU.jsx)("math",{...PU.useBlockProps.save(),display:"block",dangerouslySetInnerHTML:{__html:o}}):null}},IU=[Sde];var{name:DU}=_5,EU={icon:C7,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:SU,save:BU,deprecated:IU},Tde=()=>D({name:DU,metadata:_5,settings:EU});var uP={};$(uP,{init:()=>Ede,metadata:()=>k5,name:()=>XU,settings:()=>T5});var KU=r(B());var QU=r(S()),YU=r(U());var k5={$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,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 ss=r(S()),ls=r(B()),cP=r(M());var UU=r(we()),GU=r(A()),$U=r(Wi());var LU=r(H()),bf=r(A()),oP=r(S()),MU=r(U());function cc(){let e=(0,bf.useRegistry)(),{moveBlocksToPosition:t,removeBlock:o,insertBlock:a,updateBlockListSettings:n}=(0,bf.useDispatch)(oP.store),{getBlockRootClientId:i,getBlockName:l,getBlockOrder:s,getBlockIndex:c,getSelectedBlockClientIds:u,getBlock:m,getBlockListSettings:p}=(0,bf.useSelect)(oP.store);function d(f){let g=i(f),b=i(g);if(b&&l(b)==="core/list-item")return b}return(0,LU.useCallback)((f=u())=>{if(Array.isArray(f)||(f=[f]),!f.length)return;let g=f[0];if(l(g)!=="core/list-item")return;let b=d(g);if(!b)return;let y=i(g),v=f[f.length-1],x=s(y).slice(c(v)+1);return e.batch(()=>{if(x.length){let k=s(g)[0];if(!k){let C=(0,MU.cloneBlock)(m(y),{},[]);k=C.clientId,a(C,0,g,!1),n(k,p(y))}t(x,y,k)}t(f,y,i(b),c(b)+1),s(y).length||o(y,!1)}),!0},[])}var RU=r(H()),w5=r(A()),rP=r(S()),o1=r(U());function r1(e){let{replaceBlocks:t,selectionChange:o,multiSelect:a}=(0,w5.useDispatch)(rP.store),{getBlock:n,getPreviousBlockClientId:i,getSelectionStart:l,getSelectionEnd:s,hasMultiSelection:c,getMultiSelectedBlockClientIds:u}=(0,w5.useSelect)(rP.store);return(0,RU.useCallback)(()=>{let m=c(),p=m?u():[e],d=p.map(v=>(0,o1.cloneBlock)(n(v))),f=i(e),g=(0,o1.cloneBlock)(n(f));g.innerBlocks?.length||(g.innerBlocks=[(0,o1.createBlock)("core/list")]),g.innerBlocks[g.innerBlocks.length-1].innerBlocks.push(...d);let b=l(),y=s();return t([f,...p],[g]),m?a(d[0].clientId,d[d.length-1].clientId):o(d[0].clientId,y.attributeKey,y.clientId===b.clientId?b.offset:y.offset,y.offset),!0},[e])}var fp=r(U()),zU=r(H()),AU=r(we()),VU=r(Wi()),C5=r(A()),aP=r(S());function nP(e){let{replaceBlocks:t,selectionChange:o}=(0,C5.useDispatch)(aP.store),{getBlock:a,getBlockRootClientId:n,getBlockIndex:i,getBlockName:l}=(0,C5.useSelect)(aP.store),s=(0,zU.useRef)(e);s.current=e;let c=cc();return(0,AU.useRefEffect)(u=>{function m(p){if(p.defaultPrevented||p.keyCode!==VU.ENTER)return;let{content:d,clientId:f}=s.current;if(d.length)return;if(p.preventDefault(),l(n(n(s.current.clientId)))==="core/list-item"){c();return}let b=a(n(f)),y=i(f),v=(0,fp.cloneBlock)({...b,innerBlocks:b.innerBlocks.slice(0,y)}),_=(0,fp.createBlock)((0,fp.getDefaultBlockName)()),x=[...b.innerBlocks[y].innerBlocks[0]?.innerBlocks||[],...b.innerBlocks.slice(y+1)],k=x.length?[(0,fp.cloneBlock)({...b,innerBlocks:x})]:[];t(b.clientId,[v,_,...k],1),o(_.clientId)}return u.addEventListener("keydown",m),()=>{u.removeEventListener("keydown",m)}},[])}var FU=r(we()),a1=r(Wi()),HU=r(S()),jU=r(A());function iP(e){let{getSelectionStart:t,getSelectionEnd:o,getBlockIndex:a}=(0,jU.useSelect)(HU.store),n=r1(e),i=cc();return(0,FU.useRefEffect)(l=>{function s(c){let{keyCode:u,shiftKey:m,altKey:p,metaKey:d,ctrlKey:f}=c;if(c.defaultPrevented||u!==a1.SPACE&&u!==a1.TAB||p||d||f)return;let g=t(),b=o();g.offset===0&&b.offset===0&&(m?u===a1.TAB&&i()&&c.preventDefault():a(e)!==0&&n()&&c.preventDefault())}return l.addEventListener("keydown",s),()=>{l.removeEventListener("keydown",s)}},[e,n])}var yf=r(A()),lP=r(S()),OU=r(U());function sP(e,t){let o=(0,yf.useRegistry)(),{getPreviousBlockClientId:a,getNextBlockClientId:n,getBlockOrder:i,getBlockRootClientId:l,getBlockName:s,getBlock:c}=(0,yf.useSelect)(lP.store),{mergeBlocks:u,moveBlocksToPosition:m,removeBlock:p}=(0,yf.useDispatch)(lP.store),d=cc();function f(v){let _=i(v);return _.length?f(_[_.length-1]):v}function g(v){let _=l(v),x=l(_);if(x&&s(x)==="core/list-item")return x}function b(v){let _=n(v);if(_)return _;let x=g(v);if(x)return b(x)}function y(v){let _=i(v);return _.length?i(_[0])[0]:b(v)}return v=>{function _(x,k){o.batch(()=>{let[C]=i(k);C&&(a(k)===x&&!i(x).length?m([C],k,x):m(i(C),C,l(x))),u(x,k)})}if(v){let x=y(e);if(!x){t(v);return}g(x)?d(x):_(e,x)}else{if(g(e)){d(e);return}let x=a(e);if(x){let C=f(x);_(C,e);return}let k=i(e);(0,OU.isUnmodifiedBlock)(c(e),"content")&&k.length>0?o.batch(()=>{d(i(k[0])),p(e,!0)}):t(v)}}}var qn=r(h());function Pde({clientId:e}){let t=r1(e),o=cc(),{canIndent:a,canOutdent:n}=(0,GU.useSelect)(i=>{let{getBlockIndex:l,getBlockRootClientId:s,getBlockName:c}=i(ss.store);return{canIndent:l(e)>0,canOutdent:c(s(s(e)))==="core/list-item"}},[e]);return(0,qn.jsxs)(qn.Fragment,{children:[(0,qn.jsx)(cP.ToolbarButton,{icon:(0,ls.isRTL)()?Ih:Dh,title:(0,ls.__)("Outdent"),shortcut:$U.displayShortcut.shift("Tab"),description:(0,ls.__)("Outdent list item"),disabled:!n,onClick:()=>o()}),(0,qn.jsx)(cP.ToolbarButton,{icon:(0,ls.isRTL)()?P8:I8,title:(0,ls.__)("Indent"),shortcut:"Tab",description:(0,ls.__)("Indent list item"),disabled:!a,onClick:()=>t()})]})}function WU({attributes:e,setAttributes:t,clientId:o,mergeBlocks:a}){let{placeholder:n,content:i}=e,l=(0,ss.useBlockProps)(),s=(0,ss.useInnerBlocksProps)(l,{renderAppender:!1,__unstableDisableDropZone:!0}),c=nP({content:i,clientId:o}),u=iP(o),m=sP(o,a);return(0,qn.jsxs)(qn.Fragment,{children:[(0,qn.jsxs)("li",{...s,children:[(0,qn.jsx)(ss.RichText,{ref:(0,UU.useMergeRefs)([c,u]),identifier:"content",tagName:"div",onChange:p=>t({content:p}),value:i,"aria-label":(0,ls.__)("List text"),placeholder:n||(0,ls.__)("List"),onMerge:m}),s.children]}),(0,qn.jsx)(ss.BlockControls,{group:"block",children:(0,qn.jsx)(Pde,{clientId:o})})]})}var xf=r(S()),n1=r(h());function qU({attributes:e}){return(0,n1.jsxs)("li",{...xf.useBlockProps.save(),children:[(0,n1.jsx)(xf.RichText.Content,{value:e.content}),(0,n1.jsx)(xf.InnerBlocks.Content,{})]})}var S5=r(U()),Nde={to:[{type:"block",blocks:["core/paragraph"],transform:(e,t=[])=>[(0,S5.createBlock)("core/paragraph",e),...t.map(o=>(0,S5.cloneBlock)(o))]}]},ZU=Nde;var{fieldsKey:Ide,formKey:Dde}=Q(YU.privateApis),{name:XU}=k5,T5={icon:h7,edit:WU,save:qU,merge(e,t){return{...e,content:e.content+t.content}},transforms:ZU,[Q(QU.privateApis).requiresWrapperOnCopy]:!0};window.__experimentalContentOnlyInspectorFields&&(T5[Ide]=[{id:"content",label:(0,KU.__)("Content"),type:"richtext"}],T5[Dde]={fields:["content"]});var Ede=()=>D({name:XU,metadata:k5,settings:T5});var mP={};$(mP,{init:()=>Mde,metadata:()=>P5,name:()=>eG,settings:()=>tG});var B5=r(S()),wu=r(M()),gp=r(B());var Zn=r(h());function JU({attributes:e,setAttributes:t}){let{displayLoginAsForm:o,redirectToCurrent:a}=e,n=G();return(0,Zn.jsxs)(Zn.Fragment,{children:[(0,Zn.jsx)(B5.InspectorControls,{children:(0,Zn.jsxs)(wu.__experimentalToolsPanel,{label:(0,gp.__)("Settings"),resetAll:()=>{t({displayLoginAsForm:!1,redirectToCurrent:!0})},dropdownMenuProps:n,children:[(0,Zn.jsx)(wu.__experimentalToolsPanelItem,{label:(0,gp.__)("Display login as form"),isShownByDefault:!0,hasValue:()=>o,onDeselect:()=>t({displayLoginAsForm:!1}),children:(0,Zn.jsx)(wu.ToggleControl,{label:(0,gp.__)("Display login as form"),checked:o,onChange:()=>t({displayLoginAsForm:!o})})}),(0,Zn.jsx)(wu.__experimentalToolsPanelItem,{label:(0,gp.__)("Redirect to current URL"),isShownByDefault:!0,hasValue:()=>!a,onDeselect:()=>t({redirectToCurrent:!0}),children:(0,Zn.jsx)(wu.ToggleControl,{label:(0,gp.__)("Redirect to current URL"),checked:a,onChange:()=>t({redirectToCurrent:!a})})})]})}),(0,Zn.jsx)("div",{...(0,B5.useBlockProps)({className:"logged-in"}),children:(0,Zn.jsx)("a",{href:"#login-pseudo-link",children:(0,gp.__)("Log out")})})]})}var P5={$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:{className:!0,color:{background:!0,text:!1,gradients:!0,link:!0},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},interactivity:{clientNavigation:!0}},style:"wp-block-loginout"};var{name:eG}=P5,tG={icon:y7,edit:JU},Mde=()=>D({name:eG,metadata:P5,settings:tG});var vP={};$(vP,{init:()=>rfe,metadata:()=>R5,name:()=>SG,settings:()=>z5});var s1=r(B());var CG=r(U());var Jt=r(S()),pP=r(we());var oG=r(B()),cs="full",i1=15,rG="media",aG="attachment",nG=[["core/paragraph",{placeholder:(0,oG._x)("Content\u2026","content placeholder")}]];var _e=r(h()),N5=(e,t)=>e?{backgroundImage:`url($e})`,backgroundPosition:t?`$t.x*100}% $t.y*100}%`:"50% 50%"}:{},iG=(e,t)=>e?{backgroundImage:`url($e})`,backgroundPosition:t?`$Math.round(t.x*100)}% $Math.round(t.y*100)}%`:"50% 50%"}:{},hp=50,us=()=>{},lG=e=>{if(!e.customBackgroundColor)return e;let t={color:{background:e.customBackgroundColor}},{customBackgroundColor:o,...a}=e;return{...a,style:t}},_f=e=>e.align?e:{...e,align:"wide"},I5={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}},dP={...I5,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"}},sG={...dP,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"}},Rde={...sG,align:{type:"string",default:"none"},useFeaturedImage:{type:"boolean",default:!1}},fP={anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}},cG={...fP,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}}},zde={...cG,__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}},Ade={attributes:Rde,supports:zde,usesContext:["postId","postType"],save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:o,mediaPosition:a,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:m,linkClass:p,href:d,linkTarget:f,rel:g}=e,b=e.mediaSizeSlug||cs,y=g||void 0,v=w({[`wp-image-$s}`]:s&&n==="image",[`size-$b}`]:s&&n==="image"}),_=i?(0,_e.jsx)("img",{src:i,alt:o,className:v||null}):null;d&&(_=(0,_e.jsx)("a",{className:p,href:d,target:f,rel:y,children:_}));let x={image:()=>_,video:()=>(0,_e.jsx)("video",{controls:!0,src:i})},k=w({"has-media-on-the-right":a==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-$c}`]:c,"is-image-fill":u}),C=u?iG(i,m):{},T;l!==hp&&(T=a==="right"?`auto $l}%`:`$l}% auto`);let N={gridTemplateColumns:T};return a==="right"?(0,_e.jsxs)("div",{...Jt.useBlockProps.save({className:k,style:N}),children:[(0,_e.jsx)("div",{...Jt.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,_e.jsx)("figure",{className:"wp-block-media-text__media",style:C,children:(x[n]||us)()})]}):(0,_e.jsxs)("div",{...Jt.useBlockProps.save({className:k,style:N}),children:[(0,_e.jsx)("figure",{className:"wp-block-media-text__media",style:C,children:(x[n]||us)()}),(0,_e.jsx)("div",{...Jt.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})}},Vde={attributes:sG,supports:cG,save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:o,mediaPosition:a,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:m,linkClass:p,href:d,linkTarget:f,rel:g}=e,b=e.mediaSizeSlug||cs,y=g||void 0,v=w({[`wp-image-$s}`]:s&&n==="image",[`size-$b}`]:s&&n==="image"}),_=(0,_e.jsx)("img",{src:i,alt:o,className:v||null});d&&(_=(0,_e.jsx)("a",{className:p,href:d,target:f,rel:y,children:_}));let x={image:()=>_,video:()=>(0,_e.jsx)("video",{controls:!0,src:i})},k=w({"has-media-on-the-right":a==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-$c}`]:c,"is-image-fill":u}),C=u?iG(i,m):{},T;l!==hp&&(T=a==="right"?`auto $l}%`:`$l}% auto`);let N={gridTemplateColumns:T};return a==="right"?(0,_e.jsxs)("div",{...Jt.useBlockProps.save({className:k,style:N}),children:[(0,_e.jsx)("div",{...Jt.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,_e.jsx)("figure",{className:"wp-block-media-text__media",style:C,children:(x[n]||us)()})]}):(0,_e.jsxs)("div",{...Jt.useBlockProps.save({className:k,style:N}),children:[(0,_e.jsx)("figure",{className:"wp-block-media-text__media",style:C,children:(x[n]||us)()}),(0,_e.jsx)("div",{...Jt.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:_f,isEligible(e,t,{block:o}){let{attributes:a}=o;return e.align===void 0&&!!a.className?.includes("alignwide")}},Fde={attributes:dP,supports:fP,save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:o,mediaPosition:a,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:m,linkClass:p,href:d,linkTarget:f,rel:g}=e,b=e.mediaSizeSlug||cs,y=g||void 0,v=w({[`wp-image-$s}`]:s&&n==="image",[`size-$b}`]:s&&n==="image"}),_=(0,_e.jsx)("img",{src:i,alt:o,className:v||null});d&&(_=(0,_e.jsx)("a",{className:p,href:d,target:f,rel:y,children:_}));let x={image:()=>_,video:()=>(0,_e.jsx)("video",{controls:!0,src:i})},k=w({"has-media-on-the-right":a==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-$c}`]:c,"is-image-fill":u}),C=u?N5(i,m):{},T;l!==hp&&(T=a==="right"?`auto $l}%`:`$l}% auto`);let N={gridTemplateColumns:T};return a==="right"?(0,_e.jsxs)("div",{...Jt.useBlockProps.save({className:k,style:N}),children:[(0,_e.jsx)("div",{...Jt.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,_e.jsx)("figure",{className:"wp-block-media-text__media",style:C,children:(x[n]||us)()})]}):(0,_e.jsxs)("div",{...Jt.useBlockProps.save({className:k,style:N}),children:[(0,_e.jsx)("figure",{className:"wp-block-media-text__media",style:C,children:(x[n]||us)()}),(0,_e.jsx)("div",{...Jt.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:_f},Hde={attributes:dP,supports:fP,save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:o,mediaPosition:a,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:m,linkClass:p,href:d,linkTarget:f,rel:g}=e,b=e.mediaSizeSlug||cs,y=g||void 0,v=w({[`wp-image-$s}`]:s&&n==="image",[`size-$b}`]:s&&n==="image"}),_=(0,_e.jsx)("img",{src:i,alt:o,className:v||null});d&&(_=(0,_e.jsx)("a",{className:p,href:d,target:f,rel:y,children:_}));let x={image:()=>_,video:()=>(0,_e.jsx)("video",{controls:!0,src:i})},k=w({"has-media-on-the-right":a==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-$c}`]:c,"is-image-fill":u}),C=u?N5(i,m):{},T;l!==hp&&(T=a==="right"?`auto $l}%`:`$l}% auto`);let N={gridTemplateColumns:T};return(0,_e.jsxs)("div",{...Jt.useBlockProps.save({className:k,style:N}),children:[(0,_e.jsx)("figure",{className:"wp-block-media-text__media",style:C,children:(x[n]||us)()}),(0,_e.jsx)("div",{...Jt.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:_f},jde={attributes:{...I5,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,pP.compose)(lG,_f),save({attributes:e}){let{backgroundColor:t,customBackgroundColor:o,isStackedOnMobile:a,mediaAlt:n,mediaPosition:i,mediaType:l,mediaUrl:s,mediaWidth:c,mediaId:u,verticalAlignment:m,imageFill:p,focalPoint:d,linkClass:f,href:g,linkTarget:b,rel:y}=e,v=y||void 0,_=(0,_e.jsx)("img",{src:s,alt:n,className:u&&l==="image"?`wp-image-$u}`:null});g&&(_=(0,_e.jsx)("a",{className:f,href:g,target:b,rel:v,children:_}));let x={image:()=>_,video:()=>(0,_e.jsx)("video",{controls:!0,src:s})},k=(0,Jt.getColorClassName)("background-color",t),C=w({"has-media-on-the-right":i==="right","has-background":k||o,[k]:k,"is-stacked-on-mobile":a,[`is-vertically-aligned-$m}`]:m,"is-image-fill":p}),T=p?N5(s,d):{},N;return c!==hp&&(N=i==="right"?`auto $c}%`:`$c}% auto`),(0,_e.jsxs)("div",{className:C,style:{backgroundColor:k?void 0:o,gridTemplateColumns:N},children:[(0,_e.jsx)("figure",{className:"wp-block-media-text__media",style:T,children:(x[l]||us)()}),(0,_e.jsx)("div",{className:"wp-block-media-text__content",children:(0,_e.jsx)(Jt.InnerBlocks.Content,{})})]})}},Ode={attributes:{...I5,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,pP.compose)(lG,_f),save({attributes:e}){let{backgroundColor:t,customBackgroundColor:o,isStackedOnMobile:a,mediaAlt:n,mediaPosition:i,mediaType:l,mediaUrl:s,mediaWidth:c,mediaId:u,verticalAlignment:m,imageFill:p,focalPoint:d}=e,f={image:()=>(0,_e.jsx)("img",{src:s,alt:n,className:u&&l==="image"?`wp-image-$u}`:null}),video:()=>(0,_e.jsx)("video",{controls:!0,src:s})},g=(0,Jt.getColorClassName)("background-color",t),b=w({"has-media-on-the-right":i==="right",[g]:g,"is-stacked-on-mobile":a,[`is-vertically-aligned-$m}`]:m,"is-image-fill":p}),y=p?N5(s,d):{},v;return c!==hp&&(v=i==="right"?`auto $c}%`:`$c}% auto`),(0,_e.jsxs)("div",{className:b,style:{backgroundColor:g?void 0:o,gridTemplateColumns:v},children:[(0,_e.jsx)("figure",{className:"wp-block-media-text__media",style:y,children:(f[l]||us)()}),(0,_e.jsx)("div",{className:"wp-block-media-text__content",children:(0,_e.jsx)(Jt.InnerBlocks.Content,{})})]})}},Ude={attributes:{...I5,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"}},migrate:_f,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:o,isStackedOnMobile:a,mediaAlt:n,mediaPosition:i,mediaType:l,mediaUrl:s,mediaWidth:c}=e,u={image:()=>(0,_e.jsx)("img",{src:s,alt:n}),video:()=>(0,_e.jsx)("video",{controls:!0,src:s})},m=(0,Jt.getColorClassName)("background-color",t),p=w({"has-media-on-the-right":i==="right",[m]:m,"is-stacked-on-mobile":a}),d;return c!==hp&&(d=i==="right"?`auto $c}%`:`$c}% auto`),(0,_e.jsxs)("div",{className:p,style:{backgroundColor:m?void 0:o,gridTemplateColumns:d},children:[(0,_e.jsx)("figure",{className:"wp-block-media-text__media",children:(u[l]||us)()}),(0,_e.jsx)("div",{className:"wp-block-media-text__content",children:(0,_e.jsx)(Jt.InnerBlocks.Content,{})})]})}},uG=[Ade,Vde,Fde,Hde,jde,Ode,Ude];var Nr=r(B()),E5=r(A()),L5=r(H()),dr=r(S()),vo=r(M()),M5=r(No());var l1=r(Y());var kf=r(M()),ms=r(S()),pG=r(B()),dG=r(we()),gP=r(A()),hP=r(H()),fG=r(No()),gG=r(wo());function D5(e,t){return e?{objectPosition:t?`$Math.round(t.x*100)}% $Math.round(t.y*100)}%`:"50% 50%"}:{}}var Jr=r(h()),hG=["image","video"],Gde=()=>{},$de=(0,hP.forwardRef)(({isSelected:e,isStackedOnMobile:t,...o},a)=>{let n=(0,dG.useViewportMatch)("small","<");return(0,Jr.jsx)(kf.ResizableBox,{ref:a,showHandle:e&&(!n||!t),...o})});function Wde({mediaId:e,mediaUrl:t,onSelectMedia:o,toggleUseFeaturedImage:a,useFeaturedImage:n}){return(0,Jr.jsx)(ms.BlockControls,{group:"other",children:(0,Jr.jsx)(ms.MediaReplaceFlow,{mediaId:e,mediaURL:t,allowedTypes:hG,onSelect:o,onToggleFeaturedImage:a,useFeaturedImage:n,onReset:()=>o(void 0)})})}function mG({className:e,mediaUrl:t,onSelectMedia:o,toggleUseFeaturedImage:a}){let{createErrorNotice:n}=(0,gP.useDispatch)(gG.store),i=l=>{n(l,{type:"snackbar"})};return(0,Jr.jsx)(ms.MediaPlaceholder,{icon:(0,Jr.jsx)(ms.BlockIcon,{icon:zh}),labels:{title:(0,pG.__)("Media area")},className:e,onSelect:o,onToggleFeaturedImage:a,allowedTypes:hG,onError:i,disableMediaButtons:t})}function qde(e,t){let{className:o,commitWidthChange:a,focalPoint:n,imageFill:i,isSelected:l,isStackedOnMobile:s,mediaAlt:c,mediaId:u,mediaPosition:m,mediaType:p,mediaUrl:d,mediaWidth:f,onSelectMedia:g,onWidthChange:b,enableResize:y,toggleUseFeaturedImage:v,useFeaturedImage:_,featuredImageURL:x,featuredImageAlt:k,refMedia:C}=e,T=!u&&(0,fG.isBlobURL)(d),{toggleSelection:N}=(0,gP.useDispatch)(ms.store);if(d||x||_){let P=()=>{N(!1)},L=(I,F,W)=>{b(parseInt(W.style.width))},R=(I,F,W)=>{N(!0),a(parseInt(W.style.width))},z={right:y&&m==="left",left:y&&m==="right"},O=p==="image"&&i?D5(d||x,n):{},V={image:()=>_&&x?(0,Jr.jsx)("img",{ref:C,src:x,alt:k,style:O}):d&&(0,Jr.jsx)("img",{ref:C,src:d,alt:c,style:O}),video:()=>(0,Jr.jsx)("video",{controls:!0,ref:C,src:d})};return(0,Jr.jsxs)($de,{as:"figure",className:w(o,"editor-media-container__resizer",{"is-transient":T}),size:{width:f+"%"},minWidth:"10%",maxWidth:"100%",enable:z,onResizeStart:P,onResize:L,onResizeStop:R,axis:"x",isSelected:l,isStackedOnMobile:s,ref:t,children:[(0,Jr.jsx)(Wde,{onSelectMedia:g,mediaUrl:_&&x?x:d,mediaId:u,toggleUseFeaturedImage:v,useFeaturedImage:_}),(V[p]||Gde)(),T&&(0,Jr.jsx)(kf.Spinner,{}),!_&&(0,Jr.jsx)(mG,{...e}),!x&&_&&(0,Jr.jsx)(kf.Placeholder,{className:"wp-block-media-text--placeholder-image",style:O,withIllustration:!0})]})}return(0,Jr.jsx)(mG,{...e})}var vG=(0,hP.forwardRef)(qde);var et=r(h()),{ResolutionTool:Zde}=Q(dr.privateApis),bG=e=>Math.max(i1,Math.min(e,100-i1));function yG(e,t){return e?.media_details?.sizes?.[t]?.source_url}function Kde({attributes:{linkDestination:e,href:t},setAttributes:o}){return a=>{if(!a||!a.url){o({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,M5.isBlobURL)(a.url)&&(a.type=(0,M5.getBlobTypeByURL)(a.url));let n,i;a.media_type?a.media_type==="image"?n="image":n="video":n=a.type,n==="image"&&(i=a.sizes?.large?.url||a.media_details?.sizes?.large?.source_url);let l=t;e===rG&&(l=a.url),e===aG&&(l=a.link),o({mediaAlt:a.alt,mediaId:a.id,mediaType:n,mediaUrl:i||a.url,mediaLink:a.link||void 0,href:l,focalPoint:void 0,useFeaturedImage:!1})}}function Qde({image:e,value:t,onChange:o}){let{imageSizes:a}=(0,E5.useSelect)(i=>{let{getSettings:l}=i(dr.store);return{imageSizes:l().imageSizes}},[]);if(!a?.length)return null;let n=a.filter(({slug:i})=>yG(e,i)).map(({name:i,slug:l})=>({value:l,label:i}));return(0,et.jsx)(Zde,{value:t,defaultValue:cs,options:n,onChange:o})}function Yde({attributes:e,isSelected:t,setAttributes:o,context:{postId:a,postType:n}}){let{focalPoint:i,href:l,imageFill:s,isStackedOnMobile:c,linkClass:u,linkDestination:m,linkTarget:p,mediaAlt:d,mediaId:f,mediaPosition:g,mediaType:b,mediaUrl:y,mediaWidth:v,mediaSizeSlug:_,rel:x,verticalAlignment:k,allowedBlocks:C,useFeaturedImage:T}=e,[N]=(0,l1.useEntityProp)("postType",n,"featured_media",a),{featuredImageMedia:P}=(0,E5.useSelect)(oe=>({featuredImageMedia:N&&T?oe(l1.store).getEntityRecord("postType","attachment",N,{context:"view"}):void 0}),[N,T]),{image:L}=(0,E5.useSelect)(oe=>({image:f&&t?oe(l1.store).getEntityRecord("postType","attachment",f,{context:"view"}):null}),[t,f]),R=T?P?.source_url:"",z=T?P?.alt_text:"",O=()=>{o({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:!T})},V=(0,L5.useRef)(),I=oe=>{let{style:ce}=V.current,{x:ke,y:fe}=oe;ce.objectPosition=`$ke*100}% $fe*100}%`},[F,W]=(0,L5.useState)(null),j=Kde({attributes:e,setAttributes:o}),K=oe=>{o(oe)},Z=oe=>{W(bG(oe))},te=oe=>{o({mediaWidth:bG(oe)}),W(null)},X=w({"has-media-on-the-right":g==="right","is-selected":t,"is-stacked-on-mobile":c,[`is-vertically-aligned-$k}`]:k,"is-image-fill-element":s}),J=`$F||v}%`,ee=g==="right"?`1fr $J}`:`$J} 1fr`,ne={gridTemplateColumns:ee,msGridColumns:ee},re=oe=>{o({mediaAlt:oe})},se=oe=>{o({verticalAlignment:oe})},ue=oe=>{let ce=yG(L,oe);if(!ce)return null;o({mediaUrl:ce,mediaSizeSlug:oe})},Ne=G(),Le=(0,et.jsxs)(vo.__experimentalToolsPanel,{label:(0,Nr.__)("Settings"),resetAll:()=>{o({isStackedOnMobile:!0,imageFill:!1,mediaAlt:"",focalPoint:void 0,mediaWidth:50}),ue(cs)},dropdownMenuProps:Ne,children:[(0,et.jsx)(vo.__experimentalToolsPanelItem,{label:(0,Nr.__)("Media width"),isShownByDefault:!0,hasValue:()=>v!==50,onDeselect:()=>o({mediaWidth:50}),children:(0,et.jsx)(vo.RangeControl,{__next40pxDefaultSize:!0,label:(0,Nr.__)("Media width"),value:F||v,onChange:te,min:i1,max:100-i1})}),(0,et.jsx)(vo.__experimentalToolsPanelItem,{label:(0,Nr.__)("Stack on mobile"),isShownByDefault:!0,hasValue:()=>!c,onDeselect:()=>o({isStackedOnMobile:!0}),children:(0,et.jsx)(vo.ToggleControl,{label:(0,Nr.__)("Stack on mobile"),checked:c,onChange:()=>o({isStackedOnMobile:!c})})}),b==="image"&&(0,et.jsx)(vo.__experimentalToolsPanelItem,{label:(0,Nr.__)("Crop image to fill"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>o({imageFill:!1}),children:(0,et.jsx)(vo.ToggleControl,{label:(0,Nr.__)("Crop image to fill"),checked:!!s,onChange:()=>o({imageFill:!s})})}),s&&(y||R)&&b==="image"&&(0,et.jsx)(vo.__experimentalToolsPanelItem,{label:(0,Nr.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!i,onDeselect:()=>o({focalPoint:void 0}),children:(0,et.jsx)(vo.FocalPointPicker,{label:(0,Nr.__)("Focal point"),url:T&&R?R:y,value:i,onChange:oe=>o({focalPoint:oe}),onDragStart:I,onDrag:I})}),b==="image"&&y&&!T&&(0,et.jsx)(vo.__experimentalToolsPanelItem,{label:(0,Nr.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!d,onDeselect:()=>o({mediaAlt:""}),children:(0,et.jsx)(vo.TextareaControl,{label:(0,Nr.__)("Alternative text"),value:d,onChange:re,help:(0,et.jsxs)(et.Fragment,{children:[(0,et.jsx)(vo.ExternalLink,{href:(0,Nr.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,Nr.__)("Describe the purpose of the image.")}),(0,et.jsx)("br",{}),(0,Nr.__)("Leave empty if decorative.")]})})}),b==="image"&&!T&&(0,et.jsx)(Qde,{image:L,value:_,onChange:ue})]}),ie=(0,dr.useBlockProps)({className:X,style:ne}),Ee=(0,dr.useInnerBlocksProps)({className:"wp-block-media-text__content"},{template:nG,allowedBlocks:C}),de=(0,dr.useBlockEditingMode)();return(0,et.jsxs)(et.Fragment,{children:[(0,et.jsx)(dr.InspectorControls,{children:Le}),(0,et.jsxs)(dr.BlockControls,{group:"block",children:[de==="default"&&(0,et.jsxs)(et.Fragment,{children:[(0,et.jsx)(dr.BlockVerticalAlignmentControl,{onChange:se,value:k}),(0,et.jsx)(vo.ToolbarButton,{icon:x9,title:(0,Nr.__)("Show media on left"),isActive:g==="left",onClick:()=>o({mediaPosition:"left"})}),(0,et.jsx)(vo.ToolbarButton,{icon:k9,title:(0,Nr.__)("Show media on right"),isActive:g==="right",onClick:()=>o({mediaPosition:"right"})})]}),b==="image"&&!T&&(0,et.jsx)(dr.__experimentalImageURLInputUI,{url:l||"",onChangeUrl:K,linkDestination:m,mediaType:b,mediaUrl:L&&L.source_url,mediaLink:L&&L.link,linkTarget:p,linkClass:u,rel:x})]}),(0,et.jsxs)("div",{...ie,children:[g==="right"&&(0,et.jsx)("div",{...Ee}),(0,et.jsx)(vG,{className:"wp-block-media-text__media",onSelectMedia:j,onWidthChange:Z,commitWidthChange:te,refMedia:V,enableResize:de==="default",toggleUseFeaturedImage:O,focalPoint:i,imageFill:s,isSelected:t,isStackedOnMobile:c,mediaAlt:d,mediaId:f,mediaPosition:g,mediaType:b,mediaUrl:y,mediaWidth:v,useFeaturedImage:T,featuredImageURL:R,featuredImageAlt:z}),g!=="right"&&(0,et.jsx)("div",{...Ee})]})]})}var xG=Yde;var R5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/media-text",title:"Media & Text",category:"media",description:"Set media and words side-by-side for a richer layout.",keywords:["image","video"],textdomain:"default",attributes:{align:{type:"string",default:"none"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:"",role:"content"},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number",role:"content"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src",role:"content"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},mediaType:{type:"string",role:"content"},mediaWidth:{type:"number",default:50},mediaSizeSlug:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"},useFeaturedImage:{type:"boolean",default:!1}},usesContext:["postId","postType"],supports:{anchor:!0,align:["wide","full"],html:!1,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},allowedBlocks:!0},editorStyle:"wp-block-media-text-editor",style:"wp-block-media-text"};var wf=r(S());var gl=r(h()),Jde=50,_G=()=>{};function kG({attributes:e}){let{isStackedOnMobile:t,mediaAlt:o,mediaPosition:a,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:m,linkClass:p,href:d,linkTarget:f,rel:g}=e,b=e.mediaSizeSlug||cs,y=g||void 0,v=w({[`wp-image-$s}`]:s&&n==="image",[`size-$b}`]:s&&n==="image"}),_=u?D5(i,m):{},x=i?(0,gl.jsx)("img",{src:i,alt:o,className:v||null,style:_}):null;d&&(x=(0,gl.jsx)("a",{className:p,href:d,target:f,rel:y,children:x}));let k={image:()=>x,video:()=>(0,gl.jsx)("video",{controls:!0,src:i})},C=w({"has-media-on-the-right":a==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-$c}`]:c,"is-image-fill-element":u}),T;l!==Jde&&(T=a==="right"?`auto $l}%`:`$l}% auto`);let N={gridTemplateColumns:T};return a==="right"?(0,gl.jsxs)("div",{...wf.useBlockProps.save({className:C,style:N}),children:[(0,gl.jsx)("div",{...wf.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,gl.jsx)("figure",{className:"wp-block-media-text__media",children:(k[n]||_G)()})]}):(0,gl.jsxs)("div",{...wf.useBlockProps.save({className:C,style:N}),children:[(0,gl.jsx)("figure",{className:"wp-block-media-text__media",children:(k[n]||_G)()}),(0,gl.jsx)("div",{...wf.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})}var vp=r(U()),efe={from:[{type:"block",blocks:["core/image"],transform:({alt:e,url:t,id:o,anchor:a})=>(0,vp.createBlock)("core/media-text",{mediaAlt:e,mediaId:o,mediaUrl:t,mediaType:"image",anchor:a})},{type:"block",blocks:["core/video"],transform:({src:e,id:t,anchor:o})=>(0,vp.createBlock)("core/media-text",{mediaId:t,mediaUrl:e,mediaType:"video",anchor:o})},{type:"block",blocks:["core/cover"],transform:({align:e,alt:t,anchor:o,backgroundType:a,customGradient:n,customOverlayColor:i,gradient:l,id:s,overlayColor:c,style:u,textColor:m,url:p,useFeaturedImage:d},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,vp.createBlock)("core/media-text",{align:e,anchor:o,backgroundColor:c,gradient:l,mediaAlt:t,mediaId:s,mediaType:a,mediaUrl:p,textColor:m,useFeaturedImage:d,...g},f)}}],to:[{type:"block",blocks:["core/image"],isMatch:({mediaType:e,mediaUrl:t})=>!t||e==="image",transform:({mediaAlt:e,mediaId:t,mediaUrl:o,anchor:a})=>(0,vp.createBlock)("core/image",{alt:e,id:t,url:o,anchor:a})},{type:"block",blocks:["core/video"],isMatch:({mediaType:e,mediaUrl:t})=>!t||e==="video",transform:({mediaId:e,mediaUrl:t,anchor:o})=>(0,vp.createBlock)("core/video",{id:e,src:t,anchor:o})},{type:"block",blocks:["core/cover"],transform:({align:e,anchor:t,backgroundColor:o,focalPoint:a,gradient:n,mediaAlt:i,mediaId:l,mediaType:s,mediaUrl:c,style:u,textColor:m,useFeaturedImage:p},d)=>{let f={};u?.color?.gradient?f.customGradient=u.color.gradient:u?.color?.background&&(f.customOverlayColor=u.color.background),u?.color?.text&&(f.style={color:{text:u.color.text}});let g={align:e,alt:i,anchor:t,backgroundType:s,dimRatio:c||p?50:100,focalPoint:a,gradient:n,id:l,overlayColor:o,textColor:m,url:c,useFeaturedImage:p,...f};return(0,vp.createBlock)("core/cover",g,d)}}]},wG=efe;var{fieldsKey:tfe,formKey:ofe}=Q(CG.privateApis),{name:SG}=R5,z5={icon:T7,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,s1.__)("The wren<br>Earns his living<br>Noiselessly.")}},{name:"core/paragraph",attributes:{content:(0,s1.__)("\u2014 Kobayashi Issa (\u4E00\u8336)")}}]},transforms:wG,edit:xG,save:kG,deprecated:uG};window.__experimentalContentOnlyInspectorFields&&(z5[tfe]=[{id:"media",label:(0,s1.__)("Media"),type:"media",mapping:{id:"mediaId",type:"mediaType",url:"mediaUrl",link:"mediaLink"},args:{allowedTypes:["image","video"],multiple:!1}},{id:"link",label:(0,s1.__)("Link"),type:"link",mapping:{url:"href",rel:"rel",linkTarget:"linkTarget"}}],z5[ofe]={fields:["media"]});var rfe=()=>D({name:SG,metadata:R5,settings:z5});var bP={};$(bP,{init:()=>nfe,metadata:()=>V5,name:()=>c1,settings:()=>RG});var MG=r(U());var uc=r(B()),TG=r(H()),BG=r(M()),PG=r(U()),A5=r(A()),bp=r(S()),NG=r(oc()),Cf=r(h());function IG({attributes:e,clientId:t}){let{originalName:o,originalUndelimitedContent:a}=e,n=!!a,{hasFreeformBlock:i,hasHTMLBlock:l}=(0,A5.useSelect)(d=>{let{canInsertBlockType:f,getBlockRootClientId:g}=d(bp.store);return{hasFreeformBlock:f("core/freeform",g(t)),hasHTMLBlock:f("core/html",g(t))}},[t]),{replaceBlock:s}=(0,A5.useDispatch)(bp.store);function c(){s(t,(0,PG.createBlock)("core/html",{content:a}))}let u=[],m,p=(0,Cf.jsx)(BG.Button,{__next40pxDefaultSize:!0,onClick:c,variant:"primary",children:(0,uc.__)("Keep as HTML")},"convert");return n&&!i&&(!o||o==="core/freeform")?l?(m=(0,uc.__)("It appears you are trying to use the deprecated Classic block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely. Alternatively, if you have unsaved changes, you can save them and refresh to use the Classic block."),u.push(p)):m=(0,uc.__)("It appears you are trying to use the deprecated Classic block. You can leave this block intact, or remove it entirely. Alternatively, if you have unsaved changes, you can save them and refresh to use the Classic block."):n&&l?(m=(0,uc.sprintf)((0,uc.__)('Your site doesn\u2019t include support for the "%s" block. You can leave it as-is, convert it to custom HTML, or remove it.'),o),u.push(p)):m=(0,uc.sprintf)((0,uc.__)('Your site doesn\u2019t include support for the "%s" block. You can leave it as-is or remove it.'),o),(0,Cf.jsxs)("div",{...(0,bp.useBlockProps)({className:"has-warning"}),children:[(0,Cf.jsx)(bp.Warning,{actions:u,children:m}),(0,Cf.jsx)(TG.RawHTML,{children:(0,NG.safeHTML)(a)})]})}var V5={$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}}};var DG=r(H()),EG=r(h());function LG({attributes:e}){return(0,EG.jsx)(DG.RawHTML,{children:e.originalContent})}var{name:c1}=V5,RG={name:c1,__experimentalLabel(e,{context:t}){if(t==="accessibility"){let{originalName:o}=e,a=o?(0,MG.getBlockType)(o):void 0;return a?a.settings.title||o:""}},edit:IG,save:LG},nfe=()=>D({name:c1,metadata:V5,settings:RG});var yP={};$(yP,{init:()=>mfe,metadata:()=>H5,name:()=>GG,settings:()=>j5});var OG=r(B()),UG=r(U());var Cu=r(B()),Sf=r(M()),Tf=r(S()),F5=r(U());var hl=r(h()),ife=(0,Cu.__)("Read more");function zG({attributes:{customText:e,noTeaser:t},insertBlocksAfter:o,setAttributes:a}){let n=G();return(0,hl.jsxs)(hl.Fragment,{children:[(0,hl.jsx)(Tf.InspectorControls,{children:(0,hl.jsx)(Sf.__experimentalToolsPanel,{label:(0,Cu.__)("Settings"),resetAll:()=>{a({noTeaser:!1})},dropdownMenuProps:n,children:(0,hl.jsx)(Sf.__experimentalToolsPanelItem,{label:(0,Cu.__)("Hide excerpt"),isShownByDefault:!0,hasValue:()=>t,onDeselect:()=>a({noTeaser:!1}),children:(0,hl.jsx)(Sf.ToggleControl,{label:(0,Cu.__)("Hide the excerpt on the full content page"),checked:!!t,onChange:()=>a({noTeaser:!t}),help:i=>i?(0,Cu.__)("The excerpt is hidden."):(0,Cu.__)("The excerpt is visible.")})})})}),(0,hl.jsx)("div",{...(0,Tf.useBlockProps)(),children:(0,hl.jsx)(Tf.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,Cu.__)('"Read more" text'),value:e,placeholder:ife,onChange:i=>a({customText:i}),disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>o((0,F5.createBlock)((0,F5.getDefaultBlockName)()))})})]})}var H5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/more",title:"More",category:"design",description:"Content before this block will be shown in the excerpt on your archives page.",keywords:["read more"],textdomain:"default",attributes:{customText:{type:"string",default:"",role:"content"},noTeaser:{type:"boolean",default:!1}},supports:{customClassName:!1,className:!1,html:!1,multiple:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-more-editor"};var AG=r(H()),VG=r(h());function FG({attributes:{customText:e,noTeaser:t}}){let o=e?`<!--more $e}-->`:"<!--more-->";return(0,VG.jsx)(AG.RawHTML,{children:[o,t?"<!--noteaser-->":""].filter(Boolean).join(` 33 `)})}var HG=r(U()),sfe={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&e.dataset.block==="core/more",transform(e){let{customText:t,noTeaser:o}=e.dataset,a={};return t&&(a.customText=t),o===""&&(a.noTeaser=!0),(0,HG.createBlock)("core/more",a)}}]},jG=sfe;var{fieldsKey:cfe,formKey:ufe}=Q(UG.privateApis),{name:GG}=H5,j5={icon:D7,example:{},__experimentalLabel(e,{context:t}){let o=e?.metadata?.name;if(t==="list-view"&&o)return o;if(t==="accessibility")return e.customText},transforms:jG,edit:zG,save:FG};window.__experimentalContentOnlyInspectorFields&&(j5[cfe]=[{id:"customText",label:(0,OG.__)("Content"),type:"richtext"}],j5[ufe]={fields:["customText"]});var mfe=()=>D({name:GG,metadata:H5,settings:j5});var GP={};$(GP,{init:()=>ige,metadata:()=>O5,name:()=>ZW,settings:()=>KW});var Lk=r(B());var $W=r(A()),WW=r(Y()),qW=r(jo());var O5={$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/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},openSubmenusOnClick:{type:"boolean",default:!1},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",openSubmenusOnClick:"openSubmenusOnClick",style:"style",maxNestingLevel:"maxNestingLevel"},supports:{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 co=r(H()),Xe=r(S()),Dk=r(Y()),Iu=r(A()),Ir=r(M()),$t=r(B()),Ik=r(t1());var VW=r(U()),FW=r(we());var Bf=r(Y()),qG=r(A());var Kn={name:"core/navigation-link",attributes:{kind:"post-type",type:"page"}},$G=["core/navigation-link/page","core/navigation-link"],xP={per_page:100,status:["publish","draft"],order:"desc",orderby:"date"},WG=["postType","wp_navigation",xP];function Pf(e){let t=(0,Bf.useResourcePermissions)({kind:"postType",name:"wp_navigation",id:e}),{navigationMenu:o,isNavigationMenuResolved:a,isNavigationMenuMissing:n}=(0,qG.useSelect)(g=>dfe(g,e),[e]),{canCreate:i,canUpdate:l,canDelete:s,isResolving:c,hasResolved:u}=t,{records:m,isResolving:p,hasResolved:d}=(0,Bf.useEntityRecords)("postType","wp_navigation",xP),f=e?m?.length>1:m?.length>0;return{navigationMenu:o,isNavigationMenuResolved:a,isNavigationMenuMissing:n,navigationMenus:m,isResolvingNavigationMenus:p,hasResolvedNavigationMenus:d,canSwitchNavigationMenu:f,canUserCreateNavigationMenus:i,isResolvingCanUserCreateNavigationMenus:c,hasResolvedCanUserCreateNavigationMenus:u,canUserUpdateNavigationMenu:l,hasResolvedCanUserUpdateNavigationMenu:e?u:void 0,canUserDeleteNavigationMenu:s,hasResolvedCanUserDeleteNavigationMenu:e?u:void 0}}function dfe(e,t){if(!t)return{isNavigationMenuResolved:!1,isNavigationMenuMissing:!0};let{getEntityRecord:o,getEditedEntityRecord:a,hasFinishedResolution:n}=e(Bf.store),i=["postType","wp_navigation",t],l=o(...i),s=a(...i),c=n("getEditedEntityRecord",i),u=s.status==="publish"||s.status==="draft";return{isNavigationMenuResolved:c,isNavigationMenuMissing:c&&(!l||!u),navigationMenu:u?s:null}}var U5=r(Y());function Nf(e){let{records:t,isResolving:o,hasResolved:a}=(0,U5.useEntityRecords)("root","menu",{per_page:-1,context:"view"}),{records:n,isResolving:i,hasResolved:l}=(0,U5.useEntityRecords)("postType","page",{parent:0,order:"asc",orderby:"id",per_page:-1,context:"view"}),{records:s,hasResolved:c}=(0,U5.useEntityRecords)("root","menuItem",{menus:e,per_page:-1,context:"view"},{enabled:!!e});return{pages:n,isResolvingPages:i,hasResolvedPages:l,hasPages:!!(l&&n?.length),menus:t,isResolvingMenus:o,hasResolvedMenus:a,hasMenus:!!(a&&t?.length),menuItems:s,hasResolvedMenuItems:c}}var Df=r(M()),m1=r(B());var _P=r(t1()),QG=r(H());var ZG=r(B()),u1=r(h()),ffe=({isVisible:e=!0})=>(0,u1.jsx)("div",{"aria-hidden":e?void 0:!0,className:"wp-block-navigation-placeholder__preview",children:(0,u1.jsxs)("div",{className:"wp-block-navigation-placeholder__actions__indicator",children:[(0,u1.jsx)(pa,{icon:Sm}),(0,ZG.__)("Navigation")]})}),G5=ffe;var vl=r(M());var Na=r(B()),$5=r(jo()),If=r(H()),KG=r(Y());var Ci=r(h());function gfe(e,t,o){return e?o==="publish"?(0,$5.decodeEntities)(e):(0,Na.sprintf)((0,Na.__)("%1$s (%2$s)"),(0,$5.decodeEntities)(e),o):(0,Na.sprintf)((0,Na.__)("(no title %s)"),t)}function hfe({currentMenuId:e,onSelectNavigationMenu:t,onSelectClassicMenu:o,onCreateNew:a,actionLabel:n,createNavigationMenuIsSuccess:i,createNavigationMenuIsError:l}){let s=(0,Na.__)("Create from '%s'"),[c,u]=(0,If.useState)(!1);n=n||s;let{menus:m}=Nf(),{navigationMenus:p,isResolvingNavigationMenus:d,hasResolvedNavigationMenus:f,canUserCreateNavigationMenus:g,canSwitchNavigationMenu:b,isNavigationMenuMissing:y}=Pf(e),[v]=(0,KG.useEntityProp)("postType","wp_navigation","title"),_=(0,If.useMemo)(()=>p?.map(({id:V,title:I,status:F},W)=>{let j=gfe(I?.rendered,W+1,F);return{value:V,label:j,ariaLabel:(0,Na.sprintf)(n,j),disabled:c||d||!f}})||[],[p,n,d,f,c]),x=!!p?.length,k=!!m?.length,C=!!b,T=!!g,N=x&&!e,P=!x&&f,L=f&&e===null,R=e&&y,z="";return d?z=(0,Na.__)("Loading\u2026"):N||P||L||R?z=(0,Na.__)("Choose or create a Navigation Menu"):z=v,(0,If.useEffect)(()=>{c&&(i||l)&&u(!1)},[f,i,g,l,c,L,P,N]),(0,Ci.jsx)(vl.DropdownMenu,{label:z,icon:Ah,toggleProps:{size:"small"},children:({onClose:V})=>(0,Ci.jsxs)(Ci.Fragment,{children:[C&&x&&(0,Ci.jsx)(vl.MenuGroup,{label:(0,Na.__)("Menus"),children:(0,Ci.jsx)(vl.MenuItemsChoice,{value:e,onSelect:I=>{t(I),V()},choices:_})}),T&&k&&(0,Ci.jsx)(vl.MenuGroup,{label:(0,Na.__)("Import Classic Menus"),children:m?.map(I=>{let F=(0,$5.decodeEntities)(I.name);return(0,Ci.jsx)(vl.MenuItem,{onClick:async()=>{u(!0),await o(I),u(!1),V()},"aria-label":(0,Na.sprintf)(s,F),disabled:c||d||!f,children:F},I.id)})}),g&&(0,Ci.jsx)(vl.MenuGroup,{label:(0,Na.__)("Tools"),children:(0,Ci.jsx)(vl.MenuItem,{onClick:async()=>{u(!0),await a(),u(!1),V()},disabled:c||d||!f,children:(0,Na.__)("Create new Menu")})})]})})}var W5=hfe;var ea=r(h());function YG({isSelected:e,currentMenuId:t,clientId:o,canUserCreateNavigationMenus:a=!1,isResolvingCanUserCreateNavigationMenus:n,onSelectNavigationMenu:i,onSelectClassicMenu:l,onCreateEmpty:s}){let{isResolvingMenus:c,hasResolvedMenus:u}=Nf();(0,QG.useEffect)(()=>{e&&(c&&(0,_P.speak)((0,m1.__)("Loading navigation block setup options\u2026")),u&&(0,_P.speak)((0,m1.__)("Navigation block setup options ready.")))},[u,c,e]);let m=c&&n;return(0,ea.jsx)(ea.Fragment,{children:(0,ea.jsxs)(Df.Placeholder,{className:"wp-block-navigation-placeholder",children:[(0,ea.jsx)(G5,{isVisible:!e}),(0,ea.jsx)("div",{"aria-hidden":e?void 0:!0,className:"wp-block-navigation-placeholder__controls",children:(0,ea.jsxs)("div",{className:"wp-block-navigation-placeholder__actions",children:[(0,ea.jsxs)("div",{className:"wp-block-navigation-placeholder__actions__indicator",children:[(0,ea.jsx)(pa,{icon:Sm})," ",(0,m1.__)("Navigation")]}),(0,ea.jsx)("hr",{}),m&&(0,ea.jsx)(Df.Spinner,{}),(0,ea.jsx)(W5,{currentMenuId:t,clientId:o,onSelectNavigationMenu:i,onSelectClassicMenu:l}),(0,ea.jsx)("hr",{}),a&&(0,ea.jsx)(Df.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:s,children:(0,m1.__)("Start empty")})]})})]})})}var kP=r(M()),Lf=r(B()),wP=r(S());var p1=r(E());var Ef=r(h());function ps({icon:e}){return e==="menu"?(0,Ef.jsx)(pa,{icon:P7}):(0,Ef.jsxs)(p1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:[(0,Ef.jsx)(p1.Rect,{x:"4",y:"7.5",width:"16",height:"1.5"}),(0,Ef.jsx)(p1.Rect,{x:"4",y:"15",width:"16",height:"1.5"})]})}var Qn=r(h());function CP({children:e,id:t,isOpen:o,isResponsive:a,onToggle:n,isHiddenByDefault:i,overlayBackgroundColor:l,overlayTextColor:s,hasIcon:c,icon:u,overlay:m,onNavigateToEntityRecord:p}){if(!a)return e;let d=w("wp-block-navigation__responsive-container",{"has-text-color":!!s.color||!!s?.class,[(0,wP.getColorClassName)("color",s?.slug)]:!!s?.slug,"has-background":!!l.color||l?.class,[(0,wP.getColorClassName)("background-color",l?.slug)]:!!l?.slug,"is-menu-open":o,"hidden-by-default":i}),f={color:!s?.slug&&s?.color,backgroundColor:!l?.slug&&l?.color&&l.color},g=w("wp-block-navigation__responsive-container-open",{"always-shown":i}),b=`$t}-modal`,y={className:"wp-block-navigation__responsive-dialog",...o&&{role:"dialog","aria-modal":!0,"aria-label":(0,Lf.__)("Menu")}},v=()=>{if(m&&p){p({postId:m,postType:"wp_template_part"});return}n(!0)};return(0,Qn.jsxs)(Qn.Fragment,{children:[!o&&(0,Qn.jsxs)(kP.Button,{__next40pxDefaultSize:!0,"aria-haspopup":"true","aria-label":c&&(0,Lf.__)("Open menu"),className:g,onClick:v,children:[c&&(0,Qn.jsx)(ps,{icon:u}),!c&&(0,Lf.__)("Menu")]}),(0,Qn.jsx)("div",{className:d,style:f,id:b,children:(0,Qn.jsx)("div",{className:"wp-block-navigation__responsive-close",tabIndex:"-1",children:(0,Qn.jsxs)("div",{...y,children:[(0,Qn.jsxs)(kP.Button,{__next40pxDefaultSize:!0,className:"wp-block-navigation__responsive-container-close","aria-label":c&&(0,Lf.__)("Close menu"),onClick:()=>n(!1),children:[c&&(0,Qn.jsx)(pa,{icon:bm}),!c&&(0,Lf.__)("Close")]}),(0,Qn.jsx)("div",{className:"wp-block-navigation__responsive-container-content",id:`$b}-content`,children:e})]})})})]})}var XG=r(Y()),Mf=r(S()),JG=r(A()),e$=r(H());var SP=r(h());function t$({clientId:e,hasCustomPlaceholder:t,orientation:o,templateLock:a}){let{isImmediateParentOfSelectedBlock:n,selectedBlockHasChildren:i,isSelected:l,hasSelectedDescendant:s}=(0,JG.useSelect)(y=>{let{getBlockCount:v,hasSelectedInnerBlock:_,getSelectedBlockClientId:x}=y(Mf.store),k=x();return{isImmediateParentOfSelectedBlock:_(e,!1),selectedBlockHasChildren:!!v(k),hasSelectedDescendant:_(e,!0),isSelected:k===e}},[e]),[c,u,m]=(0,XG.useEntityBlockEditor)("postType","wp_navigation"),p=l||n&&!i,d=(0,e$.useMemo)(()=>(0,SP.jsx)(G5,{}),[]),f=!!c?.length,g=!t&&!f&&!l,b=(0,Mf.useInnerBlocksProps)({className:"wp-block-navigation__container"},{value:c,onInput:u,onChange:m,prioritizedInserterBlocks:$G,defaultBlock:Kn,directInsert:!0,orientation:o,templateLock:a,renderAppender:l||n&&!i||s||p?Mf.InnerBlocks.ButtonBlockAppender:!1,placeholder:g?d:void 0,__experimentalCaptureToolbars:!0,__unstableDisableLayoutClassNames:!0});return(0,SP.jsx)("div",{...b})}var o$=r(M()),r$=r(Y()),a$=r(B()),n$=r(h());function i$(){let[e,t]=(0,r$.useEntityProp)("postType","wp_navigation","title");return(0,n$.jsx)(o$.TextControl,{__next40pxDefaultSize:!0,label:(0,a$.__)("Menu name"),value:e,onChange:t})}var c$=r(S()),TP=r(M()),u$=r(Y()),m$=r(A()),yp=r(H());function l$(e,t){return!s$(e,t,(o,a)=>{if(a?.name==="core/page-list"&&o==="innerBlocks")return!0})}var s$=(e,t,o)=>{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 a in e)if(t.hasOwnProperty(a)){if(o&&o(a,e))return!0;if(!s$(e[a],t[a],o))return!1}else return!1;return!0}return!1};var p$=r(h()),vfe={};function d$({blocks:e,createNavigationMenu:t,hasSelection:o}){let a=(0,yp.useRef)();(0,yp.useEffect)(()=>{a?.current||(a.current=e)},[e]);let n=l$(a?.current,e),i=(0,yp.useContext)(TP.Disabled.Context),l=(0,c$.useInnerBlocksProps)({className:"wp-block-navigation__container"},{renderAppender:o?void 0:!1,defaultBlock:Kn,directInsert:!0}),{isSaving:s,hasResolvedAllNavigationMenus:c}=(0,m$.useSelect)(m=>{if(i)return vfe;let{hasFinishedResolution:p,isSavingEntityRecord:d}=m(u$.store);return{isSaving:d("postType","wp_navigation"),hasResolvedAllNavigationMenus:p("getEntityRecords",WG)}},[i]);return(0,yp.useEffect)(()=>{i||s||!c||!o||!n||t(null,e)},[e,t,i,s,c,n,o]),(0,p$.jsx)(s?TP.Disabled:"div",{...l})}var Z5=r(M()),K5=r(Y()),f$=r(A()),g$=r(H()),q5=r(B()),xp=r(h());function h$({onDelete:e}){let[t,o]=(0,g$.useState)(!1),a=(0,K5.useEntityId)("postType","wp_navigation"),{deleteEntityRecord:n}=(0,f$.useDispatch)(K5.store);return(0,xp.jsxs)(xp.Fragment,{children:[(0,xp.jsx)(Z5.Button,{__next40pxDefaultSize:!0,className:"wp-block-navigation-delete-menu-button",variant:"secondary",isDestructive:!0,onClick:()=>{o(!0)},children:(0,q5.__)("Delete menu")}),t&&(0,xp.jsx)(Z5.__experimentalConfirmDialog,{isOpen:!0,onConfirm:()=>{n("postType","wp_navigation",a,{force:!0}),e()},onCancel:()=>{o(!1)},confirmButtonText:(0,q5.__)("Delete"),size:"medium",children:(0,q5.__)("Are you sure you want to delete this Navigation Menu?")})]})}var d1=r(H()),v$=r(A()),b$=r(wo());function bfe({name:e,message:t=""}={}){let o=(0,d1.useRef)(),{createWarningNotice:a,removeNotice:n}=(0,v$.useDispatch)(b$.store),i=(0,d1.useCallback)(s=>{o.current||(o.current=e,a(s||t,{id:o.current,type:"snackbar"}))},[o,a,t,e]),l=(0,d1.useCallback)(()=>{o.current&&(n(o.current),o.current=null)},[o,n]);return[i,l]}var Q5=bfe;var ds=r(M()),Su=r(B());var Yn=r(h());function y$({setAttributes:e,hasIcon:t,icon:o}){return(0,Yn.jsxs)(Yn.Fragment,{children:[(0,Yn.jsx)(ds.__experimentalToolsPanelItem,{label:(0,Su.__)("Show icon button"),isShownByDefault:!0,hasValue:()=>!t,onDeselect:()=>e({hasIcon:!0}),children:(0,Yn.jsx)(ds.ToggleControl,{label:(0,Su.__)("Show icon button"),help:(0,Su.__)("Configure the visual appearance of the button that toggles the overlay menu."),onChange:a=>e({hasIcon:a}),checked:t})}),(0,Yn.jsx)(ds.__experimentalToolsPanelItem,{label:(0,Su.__)("Icon"),isShownByDefault:!0,hasValue:()=>o!=="handle",onDeselect:()=>e({icon:"handle"}),children:(0,Yn.jsxs)(ds.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,className:"wp-block-navigation__overlay-menu-icon-toggle-group",label:(0,Su.__)("Icon"),value:o,onChange:a=>e({icon:a}),isBlock:!0,children:[(0,Yn.jsx)(ds.__experimentalToggleGroupControlOption,{value:"handle","aria-label":(0,Su.__)("handle"),label:(0,Yn.jsx)(ps,{icon:"handle"})}),(0,Yn.jsx)(ds.__experimentalToggleGroupControlOption,{value:"menu","aria-label":(0,Su.__)("menu"),label:(0,Yn.jsx)(ps,{icon:"menu"})})]})})]})}var ak=r(M()),A$=r(B());var fs=r(H()),E$=r(Y()),L$=r(A()),yl=r(M()),Si=r(B()),NP=r(jo()),M$=r(wo());function bl(e,t){return e&&t?e+"//"+t:null}var B$=r(H()),P$=r(A()),N$=r(Y()),I$=r(B());var Tu=function(){return Tu=Object.assign||function(t){for(var o,a=1,n=arguments.length;a<n;a++){o=arguments[a];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},Tu.apply(this,arguments)};function x$(e){return e.toLowerCase()}var yfe=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],xfe=/[^A-Z0-9]+/gi;function Y5(e,t){t===void 0&&(t={});for(var o=t.splitRegexp,a=o===void 0?yfe:o,n=t.stripRegexp,i=n===void 0?xfe:n,l=t.transform,s=l===void 0?x$:l,c=t.delimiter,u=c===void 0?" ":c,m=_$(_$(e,a,"$1\0$2"),i,"\0"),p=0,d=m.length;m.charAt(p)==="\0";)p++;for(;m.charAt(d-1)==="\0";)d--;return m.slice(p,d).split("\0").map(s).join(u)}function _$(e,t,o){return t instanceof RegExp?e.replace(t,o):t.reduce(function(a,n){return a.replace(n,o)},e)}function k$(e){return e.charAt(0).toUpperCase()+e.substr(1)}function _fe(e){return k$(e.toLowerCase())}function w$(e,t){return t===void 0&&(t={}),Y5(e,Tu({delimiter:" ",transform:_fe},t))}function C$(e,t){return t===void 0&&(t={}),Y5(e,Tu({delimiter:"."},t))}function X5(e,t){return t===void 0&&(t={}),C$(e,Tu({delimiter:"-"},t))}function BP(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function PP(e,t,o){if(!e)return;t(BP(e).color);let a=e,n=BP(a).backgroundColor;for(;n==="rgba(0, 0, 0, 0)"&&a.parentNode&&a.parentNode.nodeType===a.parentNode.ELEMENT_NODE;)a=a.parentNode,n=BP(a).backgroundColor;o(n)}function _p(e,t){let{textColor:o,customTextColor:a,backgroundColor:n,customBackgroundColor:i,overlayTextColor:l,customOverlayTextColor:s,overlayBackgroundColor:c,customOverlayBackgroundColor:u,style:m}=e,p={};return t&&s?p.customTextColor=s:t&&l?p.textColor=l:a?p.customTextColor=a:o?p.textColor=o:m?.color?.text&&(p.customTextColor=m.color.text),t&&u?p.customBackgroundColor=u:t&&c?p.backgroundColor=c:i?p.customBackgroundColor=i:n?p.backgroundColor=n:m?.color?.background&&(p.customTextColor=m.color.background),p}function J5(e){return{className:w("wp-block-navigation__submenu-container",{"has-text-color":!!(e.textColor||e.customTextColor),[`has-$e.textColor}-color`]:!!e.textColor,"has-background":!!(e.backgroundColor||e.customBackgroundColor),[`has-$e.backgroundColor}-background-color`]:!!e.backgroundColor}),style:{color:e.customTextColor,backgroundColor:e.customBackgroundColor}}}var S$=(e,t)=>{let o=e.toLowerCase(),a=t.map(i=>i.title.rendered.toLowerCase());if(!a.includes(o))return e;let n=2;for(;a.includes(`$o} $n}`);)n++;return`$e} $n}`},T$=e=>X5(e).replace(/[^\w-]+/g,"")||"wp-custom-part";function D$(e){let{saveEntityRecord:t}=(0,P$.useDispatch)(N$.store);return(0,B$.useCallback)(async()=>{let a=e.filter(s=>s.title?.rendered),n=S$((0,I$.__)("Overlay"),a),i=T$(n);return await t("postType","wp_template_part",{slug:i,title:n,area:"overlay"},{throwOnError:!0})},[e,t])}var mc=r(h());function R$({overlay:e,setAttributes:t,onNavigateToEntityRecord:o}){let{records:a,isResolving:n,hasResolved:i}=(0,E$.useEntityRecords)("postType","wp_template_part",{per_page:-1}),{createErrorNotice:l}=(0,L$.useDispatch)(M$.store),[s,c]=(0,fs.useState)(!1),u=(0,fs.useMemo)(()=>a?a.filter(x=>x.area==="overlay"):[],[a]),m=D$(u),p=(0,fs.useMemo)(()=>{let x=[{label:(0,Si.__)("None (default)"),value:""}];if(!i||n)return x;let k=u.map(C=>{let T=bl(C.theme,C.slug);return{label:C.title?.rendered?(0,NP.decodeEntities)(C.title.rendered):C.slug,value:T}});return[...x,...k]},[u,i,n]),d=(0,fs.useMemo)(()=>!e||!u?null:u.find(x=>bl(x.theme,x.slug)===e),[e,u]),f=x=>{t({overlay:x||void 0})},g=()=>{!e||!o||o({postId:e,postType:"wp_template_part"})},b=(0,fs.useCallback)(async()=>{try{c(!0);let x=await m();t({overlay:x.id}),o&&o({postId:x.id,postType:"wp_template_part"})}catch(x){let k=x instanceof Error&&"code"in x&&x.message&&x.code!=="unknown_error"?x.message:(0,Si.__)("An error occurred while creating the overlay.");l(k,{type:"snackbar"})}finally{c(!1)}},[m,t,o,l]),y=n||s,v=(0,fs.useMemo)(()=>u.length===0&&i?(0,Si.__)("No overlays found."):(0,Si.__)("Select an overlay for navigation."),[u.length,i]),_=(0,fs.useMemo)(()=>d?(0,Si.sprintf)((0,Si.__)("Edit overlay: %s"),d.title?.rendered?(0,NP.decodeEntities)(d.title.rendered):d.slug):(0,Si.__)("Edit overlay"),[d]);return(0,mc.jsxs)("div",{className:"wp-block-navigation__overlay-selector",children:[(0,mc.jsx)(yl.Button,{size:"small",icon:xd,onClick:b,disabled:y,accessibleWhenDisabled:!0,isBusy:s,label:(0,Si.__)("Create new overlay template"),showTooltip:!0,className:"wp-block-navigation__overlay-create-button"}),(0,mc.jsxs)(yl.__experimentalHStack,{alignment:"flex-start",children:[(0,mc.jsx)(yl.FlexBlock,{children:(0,mc.jsx)(yl.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,Si.__)("Overlay template"),value:e||"",options:p,onChange:f,disabled:n,accessibleWhenDisabled:!0,help:v})}),e&&i&&d&&(0,mc.jsx)(yl.FlexItem,{children:(0,mc.jsx)(yl.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:g,disabled:!o,accessibleWhenDisabled:!0,label:_,showTooltip:!0,className:"wp-block-navigation__overlay-edit-button",children:(0,Si.__)("Edit")})})]})]})}var Rf=r(M()),kp=r(B()),zf=r(h());function ek({overlayMenu:e,setAttributes:t}){return(0,zf.jsxs)(Rf.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:(0,kp.__)("Overlay Visibility"),"aria-label":(0,kp.__)("Configure overlay visibility"),value:e,help:(0,kp.__)("Collapses the navigation options in a menu icon opening an overlay."),onChange:o=>t({overlayMenu:o}),isBlock:!0,children:[(0,zf.jsx)(Rf.__experimentalToggleGroupControlOption,{value:"never",label:(0,kp.__)("Off")}),(0,zf.jsx)(Rf.__experimentalToggleGroupControlOption,{value:"mobile",label:(0,kp.__)("Mobile")}),(0,zf.jsx)(Rf.__experimentalToggleGroupControlOption,{value:"always",label:(0,kp.__)("Always")})]})}var ok=r(M()),tk=r(B());var dc=r(M()),Af=r(B());var pc=r(h());function z$({hasIcon:e,icon:t,setAttributes:o}){return(0,pc.jsxs)(dc.__experimentalVStack,{spacing:4,children:[(0,pc.jsx)(dc.ToggleControl,{label:(0,Af.__)("Show icon button"),help:(0,Af.__)("Configure the visual appearance of the button that toggles the overlay menu."),onChange:a=>o({hasIcon:a}),checked:e}),(0,pc.jsxs)(dc.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,className:"wp-block-navigation__overlay-menu-icon-toggle-group",label:(0,Af.__)("Icon"),value:t,onChange:a=>o({icon:a}),isBlock:!0,children:[(0,pc.jsx)(dc.__experimentalToggleGroupControlOption,{value:"handle","aria-label":(0,Af.__)("handle"),label:(0,pc.jsx)(ps,{icon:"handle"})}),(0,pc.jsx)(dc.__experimentalToggleGroupControlOption,{value:"menu","aria-label":(0,Af.__)("menu"),label:(0,pc.jsx)(ps,{icon:"menu"})})]})]})}var ta=r(h());function rk({isResponsive:e,overlayMenuPreview:t,setOverlayMenuPreview:o,hasIcon:a,icon:n,setAttributes:i,overlayMenuPreviewClasses:l,overlayMenuPreviewId:s,containerStyle:c}){return e?(0,ta.jsxs)(ta.Fragment,{children:[(0,ta.jsxs)(ok.Button,{__next40pxDefaultSize:!0,className:l,onClick:()=>o(!t),"aria-label":(0,tk.__)("Overlay menu controls"),"aria-controls":s,"aria-expanded":t,children:[a&&(0,ta.jsxs)(ta.Fragment,{children:[(0,ta.jsx)(ps,{icon:n}),(0,ta.jsx)(pa,{icon:bm})]}),!a&&(0,ta.jsxs)(ta.Fragment,{children:[(0,ta.jsx)("span",{children:(0,tk.__)("Menu")}),(0,ta.jsx)("span",{children:(0,tk.__)("Close")})]})]}),t&&(0,ta.jsx)(ok.__experimentalVStack,{id:s,spacing:4,style:c,children:(0,ta.jsx)(z$,{hasIcon:a,icon:n,setAttributes:i})})]}):null}var wp=r(h());function V$({overlayMenu:e,overlay:t,setAttributes:o,onNavigateToEntityRecord:a,overlayMenuPreview:n,setOverlayMenuPreview:i,hasIcon:l,icon:s,overlayMenuPreviewClasses:c,overlayMenuPreviewId:u,isResponsive:m}){return(0,wp.jsx)(ak.PanelBody,{title:(0,A$.__)("Overlay"),initialOpen:!0,children:(0,wp.jsxs)(ak.__experimentalVStack,{spacing:4,children:[(0,wp.jsx)(ek,{overlayMenu:e,setAttributes:o}),e!=="never"&&(0,wp.jsx)(rk,{isResponsive:m,overlayMenuPreview:n,setOverlayMenuPreview:i,hasIcon:l,icon:s,setAttributes:o,overlayMenuPreviewClasses:c,overlayMenuPreviewId:u}),e!=="never"&&(0,wp.jsx)(R$,{overlay:t,setAttributes:o,onNavigateToEntityRecord:a})]})})}var sk=r(A()),DP=r(Y()),Ff=r(H()),gs=r(B());var f1=r(U()),j$=r(Js());var IP=r(H()),nk=r(S()),F$=r(A()),H$=r(Y());function Vf(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 Xn({clientId:e,attributes:t}){let{updateBlockBindings:o}=(0,nk.useBlockBindingsUtils)(e),{metadata:a,id:n,kind:i,type:l}=t,s=(0,nk.useBlockEditingMode)(),c=!!a?.bindings?.url&&!!n,u=i==="post-type"?"core/post-data":"core/term-data",m=c&&a?.bindings?.url?.source===u,{isBoundEntityAvailable:p,entityRecord:d}=(0,F$.useSelect)(b=>{if(!m||!n)return{isBoundEntityAvailable:!1,entityRecord:null};let y=i==="post-type",v=i==="taxonomy";if(!y&&!v)return{isBoundEntityAvailable:!1,entityRecord:null};if(s==="disabled")return{isBoundEntityAvailable:!0,entityRecord:null};let{getEntityRecord:_,hasFinishedResolution:x}=b(H$.store),k=v?"taxonomy":"postType",C=l==="tag"?"post_tag":l,T=_(k,C,n);return{isBoundEntityAvailable:x("getEntityRecord",[k,C,n])?T!==void 0:!0,entityRecord:T||null}},[i,l,n,m,s]),f=(0,IP.useCallback)(()=>{c&&o({url:void 0})},[o,c]),g=(0,IP.useCallback)(b=>{let y=b?.kind??i;if(y)try{let v=Vf(y);o(v)}catch(v){console.warn("Failed to create entity binding:",v.message)}},[o,i]);return{hasUrlBinding:m,isBoundEntityAvailable:p,entityRecord:d,clearBinding:f,createBinding:g}}function O$(e){if(!e)return null;let t=wfe(e),o=U$(t);return(0,j$.applyFilters)("blocks.navigation.__unstableMenuItemsToBlocks",o,e)}function U$(e,t=0){let o={};return{innerBlocks:[...e].sort((i,l)=>i.menu_order-l.menu_order).map(i=>{if(i.type==="block"){let[p]=(0,f1.parse)(i.content.raw);return p||(0,f1.createBlock)("core/freeform",{content:i.content})}let l=i.children?.length?"core/navigation-submenu":"core/navigation-link",s=kfe(i,l,t),{innerBlocks:c=[],mapping:u={}}=i.children?.length?U$(i.children,t+1):{};o={...o,...u};let m=(0,f1.createBlock)(l,s,c);return o[i.id]=m.clientId,m}),mapping:o}}function kfe({title:e,xfn:t,classes:o,attr_title:a,object:n,object_id:i,description:l,url:s,type:c,target:u},m,p){n&&n==="post_tag"&&(n="tag");let d=c?.replace("_","-")||"custom";return{label:e?.rendered||"",...n?.length&&{type:n},kind:d,url:s||"",...t?.length&&t.join(" ").trim()&&{rel:t.join(" ").trim()},...o?.length&&o.join(" ").trim()&&{className:o.join(" ").trim()},...a?.length&&{title:a},...i&&(d==="post-type"||d==="taxonomy")&&{id:i,metadata:{bindings:Vf(d)}},...l?.length&&{description:l},...u==="_blank"&&{opensInNewTab:!0},...m==="core/navigation-submenu"&&{isTopLevelItem:p===0},...m==="core/navigation-link"&&{isTopLevelLink:p===0}}}function wfe(e,t="id",o="parent"){let a=Object.create(null),n=[];for(let i of e)a[i[t]]={...i,children:[]},i[o]?(a[i[o]]=a[i[o]]||{},a[i[o]].children=a[i[o]].children||[],a[i[o]].children.push(a[i[t]])):n.push(a[i[t]]);return n}var EP="success",lk="error",ck="pending",Cfe="idle",ik=null;function Sfe(e,{throwOnError:t=!1}={}){let o=(0,sk.useRegistry)(),{editEntityRecord:a}=(0,sk.useDispatch)(DP.store),[n,i]=(0,Ff.useState)(Cfe),[l,s]=(0,Ff.useState)(null),c=(0,Ff.useCallback)(async(m,p,d="publish")=>{let f,g;try{g=await o.resolveSelect(DP.store).getMenuItems({menus:m,per_page:-1,context:"view"})}catch(y){throw new Error((0,gs.sprintf)((0,gs.__)('Unable to fetch classic menu "%s" from API.'),p),{cause:y})}if(g===null)throw new Error((0,gs.sprintf)((0,gs.__)('Unable to fetch classic menu "%s" from API.'),p));let{innerBlocks:b}=O$(g);try{f=await e(p,b,d),await a("postType","wp_navigation",f.id,{status:"publish"},{throwOnError:!0})}catch(y){throw new Error((0,gs.sprintf)((0,gs.__)('Unable to create Navigation Menu "%s".'),p),{cause:y})}return f},[e,a,o]);return{convert:(0,Ff.useCallback)(async(m,p,d)=>{if(ik!==m){if(ik=m,!m||!p){s("Unable to convert menu. Missing menu details."),i(lk);return}return i(ck),s(null),await c(m,p,d).then(f=>(i(EP),ik=null,f)).catch(f=>{if(s(f?.message),i(lk),ik=null,t)throw new Error((0,gs.sprintf)((0,gs.__)('Unable to create Navigation Menu "%s".'),p),{cause:f})})}},[c,t]),status:n,error:l}}var G$=Sfe;var oW=r(U()),rW=r(Y()),aW=r(A()),jf=r(H());var K$=r(M()),Q$=r(Y()),Y$=r(A()),uk=r(H()),g1=r(B());var $$=r(S()),W$=r(Y()),q$=r(A());var Hf=e=>e==="header"?G8:e==="footer"?T8:e==="sidebar"?G9:e==="overlay"?kd:e==="menu"?kd:e0;function Z$(e){return(0,q$.useSelect)(t=>{if(!e)return;let{getBlock:o,getBlockParentsByBlockName:a}=t($$.store),i=a(e,"core/template-part",!0);if(!i?.length)return;let{getCurrentTheme:l,getEditedEntityRecord:s}=t(W$.store),c=l(),m=(c?.default_template_part_areas||[]).map(p=>({...p,icon:Hf(p.icon)}));for(let p of i){let d=o(p),{theme:f=c?.stylesheet,slug:g}=d.attributes,b=bl(f,g),y=s("postType","wp_template_part",b);if(y?.area)return m.find(v=>v.area!=="uncategorized"&&v.area===y.area)?.label}},[e])}var Tfe=["postType","wp_navigation",{status:"draft",per_page:-1}],Bfe=["postType","wp_navigation",{per_page:-1,status:"publish"}];function X$(e){let t=(0,uk.useContext)(K$.Disabled.Context),o=Z$(t?void 0:e),a=(0,Y$.useRegistry)();return(0,uk.useCallback)(async()=>{if(t)return"";let{getEntityRecords:n}=a.resolveSelect(Q$.store),[i,l]=await Promise.all([n(...Tfe),n(...Bfe)]),s=o?(0,g1.sprintf)((0,g1.__)("%s menu"),o):(0,g1.__)("Menu"),c=[...i,...l].reduce((m,p)=>p?.title?.raw?.startsWith(s)?m+1:m,0);return(c>0?`$s} $c+1}`:s)||""},[t,o,a])}var J$="success",mk="error",eW="pending",tW="idle";function nW(e){let[t,o]=(0,jf.useState)(tW),[a,n]=(0,jf.useState)(null),[i,l]=(0,jf.useState)(null),{saveEntityRecord:s,editEntityRecord:c}=(0,aW.useDispatch)(rW.store),u=X$(e);return{create:(0,jf.useCallback)(async(p=null,d=[],f)=>{if(p&&typeof p!="string")throw l("Invalid title supplied when creating Navigation Menu."),o(mk),new Error("Value of supplied title argument was not a string.");o(eW),n(null),l(null),p||(p=await u().catch(b=>{throw l(b?.message),o(mk),new Error("Failed to create title when saving new Navigation Menu.",{cause:b})}));let g={title:p,content:(0,oW.serialize)(d),status:f};return s("postType","wp_navigation",g).then(b=>(n(b),o(J$),f!=="publish"&&c("postType","wp_navigation",b.id,{status:"publish"}),b)).catch(b=>{throw l(b?.message),o(mk),new Error("Unable to save new Navigation Menu",{cause:b})})},[s,c,u]),status:t,value:a,error:i,isIdle:t===tW,isPending:t===eW,isSuccess:t===J$,isError:t===mk}}var iW=r(A()),lW=r(S()),Pfe=[];function sW(e){return(0,iW.useSelect)(t=>{let{getBlock:o,getBlocks:a,hasSelectedInnerBlock:n}=t(lW.store),i=o(e).innerBlocks,l=!!i?.length,s=l?Pfe:a(e);return{innerBlocks:l?i:s,hasUncontrolledInnerBlocks:l,uncontrolledInnerBlocks:i,controlledInnerBlocks:s,isInnerBlockSelected:n(e,!0)}},[e])}var cW=r(ko()),pk=r(M()),uW=r(B()),mW=r(h()),Nfe=({className:e="",disabled:t,isMenuItem:o=!1})=>{let a=pk.Button;return o&&(a=pk.MenuItem),(0,mW.jsx)(a,{variant:"link",disabled:t,className:e,href:(0,cW.addQueryArgs)("edit.php",{post_type:"wp_navigation"}),children:(0,uW.__)("Manage menus")})},pW=Nfe;var Sp=r(S()),Nu=r(M()),Tk=r(A()),hc=r(B());var dW=r(S()),fk=r(M()),fW=r(B()),gk=r(H()),dk=r(h());function Ife({onCreateNew:e,isNotice:t=!1}){let[o,a]=(0,gk.useState)(!1),n=()=>{a(!0),e()},i=(0,gk.createInterpolateElement)((0,fW.__)("Navigation Menu has been deleted or is unavailable. <button>Create a new Menu?</button>"),{button:(0,dk.jsx)(fk.Button,{__next40pxDefaultSize:!0,onClick:n,variant:"link",disabled:o,accessibleWhenDisabled:!0})});return t?(0,dk.jsx)(fk.Notice,{status:"warning",isDismissible:!1,children:i}):(0,dk.jsx)(dW.Warning,{children:i})}var hk=Ife;var LP=r(U());var hs=r(M()),h1=r(A()),Bu=r(B()),Of=r(S());var Jn=r(h()),Dfe={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"},Efe=["core/navigation-link","core/navigation-submenu"];function Lfe({block:e,onClose:t,expandedState:o,expand:a,setInsertedBlock:n}){let{insertBlock:i,replaceBlock:l,replaceInnerBlocks:s}=(0,h1.useDispatch)(Of.store),c=e.clientId,u=!Efe.includes(e.name);return(0,Jn.jsx)(hs.MenuItem,{icon:vm,disabled:u,onClick:()=>{let p=(0,LP.createBlock)(Kn.name,Kn.attributes);if(e.name==="core/navigation-submenu")i(p,e.innerBlocks.length,c,!1);else{let d=(0,LP.createBlock)("core/navigation-submenu",e.attributes,e.innerBlocks);l(c,d),s(d.clientId,[p],!1)}n(p),o[e.clientId]||a(e.clientId),t()},children:(0,Bu.__)("Add submenu link")})}function gW(e){let{block:t}=e,{clientId:o}=t,{moveBlocksDown:a,moveBlocksUp:n,removeBlocks:i}=(0,h1.useDispatch)(Of.store),l=(0,Bu.sprintf)((0,Bu.__)("Remove %s"),(0,Of.BlockTitle)({clientId:o,maximumLength:25})),s=(0,h1.useSelect)(c=>{let{getBlockRootClientId:u}=c(Of.store);return u(o)},[o]);return(0,Jn.jsx)(hs.DropdownMenu,{icon:Ah,label:(0,Bu.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:Dfe,noIcons:!0,...e,children:({onClose:c})=>(0,Jn.jsxs)(Jn.Fragment,{children:[(0,Jn.jsxs)(hs.MenuGroup,{children:[(0,Jn.jsx)(hs.MenuItem,{icon:e8,onClick:()=>{n([o],s),c()},children:(0,Bu.__)("Move up")}),(0,Jn.jsx)(hs.MenuItem,{icon:bh,onClick:()=>{a([o],s),c()},children:(0,Bu.__)("Move down")}),(0,Jn.jsx)(Lfe,{block:t,onClose:c,expandedState:e.expandedState,expand:e.expand,setInsertedBlock:e.setInsertedBlock})]}),(0,Jn.jsx)(hs.MenuGroup,{children:(0,Jn.jsx)(hs.MenuItem,{onClick:()=>{i([o],!1),c()},children:l})})]})})}var Ia=r(M()),Ft=r(B()),PW=r(oc()),NW=r(S()),IW=r(A()),DW=r(Y());var bW=r(H()),yW=r(A()),xW=r(S());var MP=r(vW()),v1=r(ko()),Mfe=(e,t)=>{if(!e||!t)return!1;let o=g=>g?g.replace(/\/+$/,""):"",a=(g,b=null)=>{try{let y=b||(typeof window<"u"?window.location.origin:"https://wordpress.org");return new URL(g,y)}catch{return null}},n=a(e);if(!n)return!0;let i=a(t,e);if(!i)return!0;let l=n.hostname,s=i.hostname,c=o((0,v1.getPath)(n.toString())),u=o((0,v1.getPath)(i.toString()));if(l!==s||c!==u)return!0;let m=n.searchParams.get("p"),p=i.searchParams.get("p");if(m&&p&&m!==p)return!0;let d=n.searchParams.get("page_id"),f=i.searchParams.get("page_id");return!!(d&&f&&d!==f||m&&f||d&&p)},Cp=(e={},t,o={})=>{let{label:a="",kind:n="",type:i=""}=o,{title:l="",label:s="",url:c,opensInNewTab:u,id:m,kind:p=n,type:d=i}=e,f=l||s,g=f.replace(/http(s?):\/\//gi,""),b=c?.replace(/http(s?):\/\//gi,"")??"",v=f&&f!==a&&g!==b?(0,MP.escapeHTML)(f):a||(0,MP.escapeHTML)(b),_=d==="post_tag"?"tag":d.replace("-","_"),x=["post","page","tag","category"].indexOf(_)>-1,C=!p&&!x||p==="custom"?"custom":p,T={...c!==void 0?{url:c&&encodeURI((0,v1.safeDecodeURI)(c))}:{},...v&&{label:v},...u!==void 0&&{opensInNewTab:u},...C&&{kind:C},..._&&_!=="URL"&&{type:_}};c&&!m&&o.id?Mfe(o.url,c)&&(T.id=void 0,T.kind="custom",T.type="custom"):m&&Number.isInteger(m)?T.id=m:o.id&&(T.kind=C,T.type=_),t(T);let N="id"in T?T.id:o.id,P="kind"in T?T.kind:o.kind;return{isEntityLink:!!N&&P!=="custom",attributes:T}};function b1({clientId:e,attributes:t,setAttributes:o}){let{updateBlockAttributes:a}=(0,yW.useDispatch)(xW.store),{hasUrlBinding:n,createBinding:i,clearBinding:l}=Xn({clientId:e,attributes:t});return(0,bW.useCallback)(s=>{if(!s)return;let c={url:s.url,kind:s.kind,type:s.type,id:s.id};if((!t.label||t.label==="")&&(c.title=s.title),!s.id&&n)l(),a(e,{url:s.url,kind:"custom",type:"custom",id:void 0});else{let{isEntityLink:m,attributes:p}=Cp(c,o,t);m?i(p):l()}},[t,e,n,i,l,o,a])}var kk=r(oc()),fc=r(M()),_1=r(B()),wk=r(S()),mn=r(H()),SW=r(Y());var HP=r(we());var cn=r(M()),ei=r(B()),x1=r(A()),xk=r(Y()),_W=r(wo()),zP=r(jo()),AP=r(H());var vk=r(M()),bk=r(B());var y1=r(we()),Pu=r(h());function Rfe({className:e,onBack:t}){return(0,Pu.jsx)(vk.Button,{className:e,icon:(0,bk.isRTL)()?X6:Q6,onClick:o=>{o.preventDefault(),t()},size:"small",children:(0,bk.__)("Back")})}function RP({className:e,title:t,description:o,onBack:a,children:n}){let i=(0,y1.useInstanceId)(RP,"link-ui-dialog-title"),l=(0,y1.useInstanceId)(RP,"link-ui-dialog-description"),s=(0,y1.useFocusOnMount)("firstElement"),c=`$e}__back`;return(0,Pu.jsxs)("div",{className:e,role:"dialog","aria-labelledby":i,"aria-describedby":l,ref:s,children:[(0,Pu.jsxs)(vk.VisuallyHidden,{children:[(0,Pu.jsx)("h2",{id:i,children:t}),(0,Pu.jsx)("p",{id:l,children:o})]}),(0,Pu.jsx)(Rfe,{className:c,onBack:a}),n]})}var yk=RP;var Ti=r(h());function kW({postType:e,onBack:t,onPageCreated:o,initialTitle:a=""}){let[n,i]=(0,AP.useState)(a),[l,s]=(0,AP.useState)(!1),c=n.trim().length>0,{lastError:u,isSaving:m}=(0,x1.useSelect)(y=>({lastError:y(xk.store).getLastEntitySaveError("postType",e),isSaving:y(xk.store).isSavingEntityRecord("postType",e)}),[e]),{saveEntityRecord:p}=(0,x1.useDispatch)(xk.store),{createSuccessNotice:d,createErrorNotice:f}=(0,x1.useDispatch)(_W.store);async function g(y){if(y.preventDefault(),!(m||!c))try{let v=await p("postType",e,{title:n,status:l?"publish":"draft"},{throwOnError:!0});if(v){let _={id:v.id,type:e,title:(0,zP.decodeEntities)(v.title.rendered),url:v.link,kind:"post-type"};d((0,ei.sprintf)((0,ei.__)("%s page created successfully."),(0,zP.decodeEntities)(v.title.rendered)),{type:"snackbar",id:"page-created-success"}),o(_)}}catch{f((0,ei.__)("Failed to create page. Please try again."),{type:"snackbar",id:"page-created-error"})}}let b=m||!c;return(0,Ti.jsx)(yk,{className:"link-ui-page-creator",title:(0,ei.__)("Create page"),description:(0,ei.__)("Create a new page to add to your Navigation."),onBack:t,children:(0,Ti.jsx)(cn.__experimentalVStack,{className:"link-ui-page-creator__inner",spacing:4,children:(0,Ti.jsx)("form",{onSubmit:g,children:(0,Ti.jsxs)(cn.__experimentalVStack,{spacing:4,children:[(0,Ti.jsx)(cn.TextControl,{__next40pxDefaultSize:!0,label:(0,ei.__)("Title"),onChange:i,placeholder:(0,ei.__)("No title"),value:n}),(0,Ti.jsx)(cn.CheckboxControl,{label:(0,ei.__)("Publish immediately"),help:(0,ei.__)("If unchecked, the page will be created as a draft."),checked:l,onChange:s}),u&&(0,Ti.jsx)(cn.Notice,{status:"error",isDismissible:!1,children:u.message}),(0,Ti.jsxs)(cn.__experimentalHStack,{spacing:2,justify:"flex-end",children:[(0,Ti.jsx)(cn.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,disabled:m,accessibleWhenDisabled:!0,children:(0,ei.__)("Cancel")}),(0,Ti.jsx)(cn.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:m,"aria-disabled":b,children:(0,ei.__)("Create page")})]})]})})})})}var VP=r(B()),wW=r(A()),_k=r(S());var FP=r(h()),{PrivateQuickInserter:zfe}=Q(_k.privateApis);function Afe({clientId:e,onBack:t,onBlockInsert:o}){let{rootBlockClientId:a}=(0,wW.useSelect)(n=>{let{getBlockRootClientId:i}=n(_k.store);return{rootBlockClientId:i(e)}},[e]);return e?(0,FP.jsx)(yk,{className:"link-ui-block-inserter",title:(0,VP.__)("Add block"),description:(0,VP.__)("Choose a block to add to your Navigation."),onBack:t,children:(0,FP.jsx)(zfe,{rootClientId:a,clientId:e,isAppender:!1,prioritizePatterns:!1,selectBlockOnInsert:!o,onSelect:o||void 0,hasSearch:!1})}):null}var CW=Afe;var un=r(h());function jP(e,t){switch(e){case"post":case"page":return{type:"post",subtype:e};case"category":return{type:"term",subtype:"category"};case"tag":return{type:"term",subtype:"post_tag"};case"post_format":return{type:"post-format"};default:return t==="taxonomy"?{type:"term",subtype:e}:t==="post-type"?{type:"post",subtype:e}:{initialSuggestionsSearchOptions:{type:"post",subtype:"page",perPage:20}}}}function Vfe(e,t){let{label:o,url:a,opensInNewTab:n,type:i,kind:l,id:s}=e.link,{clientId:c}=e,u=i||"page",[m,p]=(0,mn.useState)(!1),[d,f]=(0,mn.useState)(!1),[g,b]=(0,mn.useState)(null),y=(0,mn.useRef)(),v=(0,mn.useRef)(),_=(0,mn.useRef)(),x=(0,SW.useResourcePermissions)({kind:"postType",name:u}),{isBoundEntityAvailable:k}=Xn({clientId:c,attributes:e.link}),C=(0,mn.useMemo)(()=>({url:a,opensInNewTab:n,title:o&&(0,kk.__unstableStripHTML)(o),kind:l,type:i,id:s}),[o,n,a,l,i,s]),T=R=>{e.onChange(R),f(!1),b(!0)},N=(0,HP.useInstanceId)(gc,"link-ui-link-control__title"),P=(0,HP.useInstanceId)(gc,"link-ui-link-control__description");(0,mn.useEffect)(()=>{g&&y.current&&(g?.current?g.current.focus():(kk.focus.tabbable.find(y.current)[0]||y.current).focus(),b(!1))},[g]);let L=(0,wk.useBlockEditingMode)();return(0,un.jsxs)(fc.Popover,{ref:t,placement:"bottom",onClose:e.onClose,anchor:e.anchor,shift:!0,children:[!m&&!d&&(0,un.jsxs)("div",{ref:y,role:"dialog","aria-labelledby":N,"aria-describedby":P,children:[(0,un.jsxs)(fc.VisuallyHidden,{children:[(0,un.jsx)("h2",{id:N,children:(0,_1.__)("Add link")}),(0,un.jsx)("p",{id:P,children:(0,_1.__)("Search for and add a link to your Navigation.")})]}),(0,un.jsx)(wk.LinkControl,{hasTextControl:!0,hasRichPreviews:!0,value:C,showInitialSuggestions:!0,withCreateSuggestion:!1,noDirectEntry:!!i,noURLSuggestion:!!i,suggestionsQuery:jP(i,l),onChange:e.onChange,onRemove:e.onRemove,onCancel:e.onCancel,handleEntities:k,forceIsEditingLink:C?.url?!1:void 0,renderControlBottom:()=>C?.url?.length?null:(0,un.jsx)(Ffe,{addPageButtonRef:v,addBlockButtonRef:_,setAddingBlock:()=>{p(!0)},setAddingPage:()=>{f(!0)},canAddPage:x?.canCreate&&i==="page",canAddBlock:L==="default"})})]}),m&&(0,un.jsx)(CW,{clientId:e.clientId,onBack:()=>{p(!1),b(_)},onBlockInsert:e?.onBlockInsert}),d&&(0,un.jsx)(kW,{postType:u,onBack:()=>{f(!1),b(v)},onPageCreated:T,initialTitle:C?.url||""})]})}var gc=(0,mn.forwardRef)(Vfe),Ffe=({addPageButtonRef:e,addBlockButtonRef:t,setAddingBlock:o,setAddingPage:a,canAddPage:n,canAddBlock:i})=>{let l="listbox";return!n&&!i?null:(0,un.jsxs)(fc.__experimentalVStack,{spacing:0,className:"link-ui-tools",children:[n&&(0,un.jsx)(fc.Button,{__next40pxDefaultSize:!0,ref:e,icon:xd,onClick:s=>{s.preventDefault(),a(!0)},"aria-haspopup":l,children:(0,_1.__)("Create page")}),i&&(0,un.jsx)(fc.Button,{__next40pxDefaultSize:!0,ref:t,icon:xd,onClick:s=>{s.preventDefault(),o(!0)},"aria-haspopup":l,children:(0,_1.__)("Add block")})]})};var xl=r(B()),Ck=r(ko()),TW=r(S());var{useRemoteUrlData:Hfe}=Q(TW.privateApis);function jfe(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Ofe(e){if(!e)return{displayUrl:"",isExternal:!1};let t=(0,Ck.safeDecodeURI)(e),o=!1;try{let a=new URL(e),n=window.location.origin;if(a.origin===n){let i=a.pathname+a.search+a.hash;i.endsWith("/")&&i.length>1&&(i=i.slice(0,-1)),t=i}else o=!0}catch{t=(0,Ck.safeDecodeURI)(e)}return{displayUrl:t,isExternal:o}}function Ufe({url:e,type:t,isExternal:o,entityStatus:a,hasBinding:n,isEntityAvailable:i}){let l=[];if(e&&(o?l.push({label:(0,xl.__)("External link"),intent:"default"}):t&&l.push({label:jfe(t),intent:"default"})),!e)l.push({label:(0,xl.__)("No link selected"),intent:"error"});else if(n&&!i)l.push({label:(0,xl.__)("Deleted"),intent:"error"});else if(a){let c={publish:{label:(0,xl.__)("Published"),intent:"success"},future:{label:(0,xl.__)("Scheduled"),intent:"warning"},draft:{label:(0,xl.__)("Draft"),intent:"warning"},pending:{label:(0,xl.__)("Pending"),intent:"warning"},private:{label:(0,xl.__)("Private"),intent:"default"},trash:{label:(0,xl.__)("Trash"),intent:"error"}}[a];c&&l.push(c)}return l}function BW({url:e,title:t,image:o,type:a,entityStatus:n,hasBinding:i,isEntityAvailable:l}){let{richData:s}=Hfe(t?null:e),{displayUrl:c,isExternal:u}=Ofe(e),m=Ufe({url:e,type:a,isExternal:u,entityStatus:n,hasBinding:i,isEntityAvailable:l});return{title:e?t||s?.title||(0,Ck.safeDecodeURI)(e):(0,xl.__)("Add link"),url:c,image:o,badges:m}}var ti=r(h()),{LinkPicker:Gfe}=Q(NW.privateApis);function EW(e,t){if(t==="post-type")switch(e){case"post":return(0,Ft.__)("post");case"page":return(0,Ft.__)("page");default:return e||(0,Ft.__)("post")}if(t==="taxonomy")switch(e){case"category":return(0,Ft.__)("category");case"tag":return(0,Ft.__)("tag");default:return e||(0,Ft.__)("term")}return e||(0,Ft.__)("item")}function k1({attributes:e,setAttributes:t,clientId:o}){let{label:a,url:n,description:i,rel:l,opensInNewTab:s}=e,c=G(),{hasUrlBinding:u,isBoundEntityAvailable:m,entityRecord:p}=Xn({clientId:o,attributes:e}),d=u,f=m?LW({type:e.type,kind:e.kind}):Sk({type:e.type,kind:e.kind}),g=b1({clientId:o,attributes:e,setAttributes:t}),b=p?.title?.rendered||p?.title||p?.name,y=(0,IW.useSelect)(_=>{if(!p?.featured_media)return null;let{getEntityRecord:x}=_(DW.store),k=x("postType","attachment",p.featured_media);return k?.media_details?.sizes?.thumbnail?.source_url||k?.media_details?.sizes?.medium?.source_url||k?.source_url||null},[p?.featured_media]),v=BW({url:n,title:b,image:y,type:e.type,entityStatus:p?.status,hasBinding:u,isEntityAvailable:m});return(0,ti.jsxs)(Ia.__experimentalToolsPanel,{label:(0,Ft.__)("Settings"),resetAll:()=>{t({label:"",url:"",description:"",rel:"",opensInNewTab:!1})},dropdownMenuProps:c,children:[(0,ti.jsx)(Ia.__experimentalToolsPanelItem,{hasValue:()=>!!a,label:(0,Ft.__)("Text"),onDeselect:()=>t({label:""}),isShownByDefault:!0,children:(0,ti.jsx)(Ia.TextControl,{__next40pxDefaultSize:!0,label:(0,Ft.__)("Text"),value:a?(0,PW.__unstableStripHTML)(a):"",onChange:_=>{t({label:_})},autoComplete:"off"})}),(0,ti.jsx)(Ia.__experimentalToolsPanelItem,{hasValue:()=>!!n,label:(0,Ft.__)("Link to"),onDeselect:()=>t({url:""}),isShownByDefault:!0,children:(0,ti.jsx)(Gfe,{preview:v,onSelect:g,suggestionsQuery:jP(e.type,e.kind),label:(0,Ft.__)("Link to"),help:d?f:void 0})}),(0,ti.jsx)(Ia.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,Ft.__)("Open in new tab"),onDeselect:()=>t({opensInNewTab:!1}),isShownByDefault:!0,children:(0,ti.jsx)(Ia.CheckboxControl,{label:(0,Ft.__)("Open in new tab"),checked:s,onChange:_=>t({opensInNewTab:_})})}),(0,ti.jsx)(Ia.__experimentalToolsPanelItem,{hasValue:()=>!!i,label:(0,Ft.__)("Description"),onDeselect:()=>t({description:""}),isShownByDefault:!0,children:(0,ti.jsx)(Ia.TextareaControl,{label:(0,Ft.__)("Description"),value:i||"",onChange:_=>{t({description:_})},help:(0,Ft.__)("The description will be displayed in the menu if the current theme supports it.")})}),(0,ti.jsx)(Ia.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,Ft.__)("Rel attribute"),onDeselect:()=>t({rel:""}),isShownByDefault:!0,children:(0,ti.jsx)(Ia.TextControl,{__next40pxDefaultSize:!0,label:(0,Ft.__)("Rel attribute"),value:l||"",onChange:_=>{t({rel:_})},autoComplete:"off",help:(0,Ft.__)("The relationship of the linked URL as space-separated link types.")})})]})}function LW({type:e,kind:t}){let o=EW(e,t);return(0,Ft.sprintf)((0,Ft.__)("Synced with the selected %s."),o)}function Sk({type:e,kind:t}){let o=EW(e,t);return(0,Ft.sprintf)((0,Ft.__)("Synced %s is missing. Please update or remove this link."),o)}var pn=r(h()),$fe=(0,hc.__)("Switch to '%s'"),Wfe=["core/navigation-link","core/navigation-submenu"],{PrivateListView:qfe}=Q(Sp.privateApis);function Zfe({block:e,insertedBlock:t,setInsertedBlock:o}){let{updateBlockAttributes:a,removeBlock:n}=(0,Tk.useDispatch)(Sp.store),i=Wfe?.includes(t?.name),l=t?.clientId===e.clientId,s=i&&l,{createBinding:c,clearBinding:u}=Xn({clientId:t?.clientId,attributes:t?.attributes||{}});if(!s)return null;let m=()=>{!t?.attributes?.url&&t?.clientId&&n(t.clientId,!1),o(null)},p=f=>g=>{f&&a(f,g)},d=f=>{t?.clientId&&f&&n(t.clientId,!1),o(f)};return(0,pn.jsx)(gc,{clientId:t?.clientId,link:t?.attributes,onBlockInsert:d,onClose:()=>{m()},onChange:f=>{let{isEntityLink:g,attributes:b}=Cp(f,p(t?.clientId),t?.attributes);g?c(b):u(),o(null)}})}var Kfe=({clientId:e,currentMenuId:t,isLoading:o,isNavigationMenuMissing:a,onCreateNew:n})=>{let i=(0,Tk.useSelect)(c=>!!c(Sp.store).getBlockCount(e),[e]),{navigationMenu:l}=Pf(t);if(t&&a)return(0,pn.jsx)(hk,{onCreateNew:n,isNotice:!0});if(o)return(0,pn.jsx)(Nu.Spinner,{});let s=l?(0,hc.sprintf)((0,hc.__)("Structure for Navigation Menu: %s"),l?.title||(0,hc.__)("Untitled menu")):(0,hc.__)("You have not yet created any menus. Displaying a list of your Pages");return(0,pn.jsxs)("div",{className:"wp-block-navigation__menu-inspector-controls",children:[!i&&(0,pn.jsx)("p",{className:"wp-block-navigation__menu-inspector-controls__empty-message",children:(0,hc.__)("This Navigation Menu is empty.")}),(0,pn.jsx)(qfe,{rootClientId:e,isExpanded:!0,description:s,showAppender:!0,blockSettingsMenu:gW,additionalBlockContent:Zfe})]})},Qfe=e=>{let{createNavigationMenuIsSuccess:t,createNavigationMenuIsError:o,currentMenuId:a=null,onCreateNew:n,onSelectClassicMenu:i,onSelectNavigationMenu:l,isManageMenusButtonDisabled:s,blockEditingMode:c}=e;return(0,pn.jsx)(Sp.InspectorControls,{group:"list",children:(0,pn.jsxs)(Nu.PanelBody,{title:null,children:[(0,pn.jsxs)(Nu.__experimentalHStack,{className:"wp-block-navigation-off-canvas-editor__header",children:[(0,pn.jsx)(Nu.__experimentalHeading,{className:"wp-block-navigation-off-canvas-editor__title",level:2,children:(0,hc.__)("Menu")}),c==="default"&&(0,pn.jsx)(W5,{currentMenuId:a,onSelectClassicMenu:i,onSelectNavigationMenu:l,onCreateNew:n,createNavigationMenuIsSuccess:t,createNavigationMenuIsError:o,actionLabel:$fe,isManageMenusButtonDisabled:s})]}),(0,pn.jsx)(Kfe,{...e})]})})},Bk=Qfe;var MW=r(M()),OP=r(h());function Pk({id:e,children:t}){return(0,OP.jsx)(MW.VisuallyHidden,{children:(0,OP.jsx)("div",{id:e,className:"wp-block-navigation__description",children:t})})}var RW=r(Y()),Nk=r(B());var zW=r(h());function AW({id:e}){let[t]=(0,RW.useEntityProp)("postType","wp_navigation","title"),o=(0,Nk.sprintf)((0,Nk.__)('Navigation Menu: "%s"'),t);return(0,zW.jsx)(Pk,{id:e,children:o})}var pe=r(h());function Yfe({clientId:e}){let{insertBlock:t}=(0,Iu.useDispatch)(Xe.store),{getBlockCount:o}=(0,Iu.useSelect)(Xe.store),a=(0,co.useCallback)(()=>{let n=o(e),i=(0,VW.createBlock)(Kn.name,{kind:Kn.attributes.kind,type:Kn.attributes.type});t(i,n,e)},[e,t,o]);return(0,pe.jsx)(Xe.BlockControls,{children:(0,pe.jsx)(Ir.ToolbarGroup,{children:(0,pe.jsx)(Ir.ToolbarButton,{name:"add-page",icon:$s,onClick:a,children:(0,$t.__)("Add page")})})})}function Xfe({textColor:e,setTextColor:t,backgroundColor:o,setBackgroundColor:a,overlayTextColor:n,setOverlayTextColor:i,overlayBackgroundColor:l,setOverlayBackgroundColor:s,clientId:c,navRef:u}){let[m,p]=(0,co.useState)(),[d,f]=(0,co.useState)(),[g,b]=(0,co.useState)(),[y,v]=(0,co.useState)(),_=co.Platform.OS==="web";(0,co.useEffect)(()=>{if(!_)return;PP(u.current,f,p);let k=u.current?.querySelector('[data-type="core/navigation-submenu"] [data-type="core/navigation-link"]');k&&(n.color||l.color)&&PP(k,v,b)},[_,n.color,l.color,u]);let x=(0,Xe.__experimentalUseMultipleOriginColorsAndGradients)();return x.hasColorsOrGradients?(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(Xe.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:e.color,label:(0,$t.__)("Text"),onColorChange:t,resetAllFilter:()=>t(),clearable:!0,enableAlpha:!0},{colorValue:o.color,label:(0,$t.__)("Background"),onColorChange:a,resetAllFilter:()=>a(),clearable:!0,enableAlpha:!0},{colorValue:n.color,label:(0,$t.__)("Submenu & overlay text"),onColorChange:i,resetAllFilter:()=>i(),clearable:!0,enableAlpha:!0},{colorValue:l.color,label:(0,$t.__)("Submenu & overlay background"),onColorChange:s,resetAllFilter:()=>s(),clearable:!0,enableAlpha:!0}],panelId:c,...x,gradients:[],disableCustomGradients:!0}),_&&(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(Xe.ContrastChecker,{backgroundColor:m,textColor:d}),(0,pe.jsx)(Xe.ContrastChecker,{backgroundColor:g,textColor:y})]})]}):null}function Jfe({attributes:e,setAttributes:t,clientId:o,isSelected:a,className:n,backgroundColor:i,setBackgroundColor:l,textColor:s,setTextColor:c,overlayBackgroundColor:u,setOverlayBackgroundColor:m,overlayTextColor:p,setOverlayTextColor:d,hasSubmenuIndicatorSetting:f=!0,customPlaceholder:g=null,__unstableLayoutClassNames:b}){let{openSubmenusOnClick:y,overlayMenu:v,overlay:_,showSubmenuIcon:x,templateLock:k,layout:{justifyContent:C,orientation:T="horizontal",flexWrap:N="wrap"}={},hasIcon:P,icon:L="handle"}=e,R=e.ref,z=(0,co.useCallback)(mo=>{t({ref:mo})},[t]),O=`navigationMenu/$R}`,V=(0,Xe.useHasRecursion)(O),I=(0,Xe.useBlockEditingMode)(),{onNavigateToEntityRecord:F}=(0,Iu.useSelect)(mo=>{let{getSettings:sh}=mo(Xe.store);return{onNavigateToEntityRecord:sh()?.onNavigateToEntityRecord}},[]),W=typeof window<"u"&&window.__experimentalNavigationOverlays===!0,{menus:j}=Nf(),[K,Z]=Q5({name:"block-library/core/navigation/status"}),[te,X]=Q5({name:"block-library/core/navigation/classic-menu-conversion"}),[J,ee]=Q5({name:"block-library/core/navigation/permissions/update"}),{create:ne,status:re,error:se,value:ue,isPending:Ne,isSuccess:Le,isError:ie}=nW(o),Ee=async()=>{await ne("")},{hasUncontrolledInnerBlocks:de,uncontrolledInnerBlocks:oe,isInnerBlockSelected:ce,innerBlocks:ke}=sW(o),fe=!!ke.find(mo=>mo.name==="core/navigation-submenu"),{replaceInnerBlocks:rt,selectBlock:ht,__unstableMarkNextChangeAsNotPersistent:yt}=(0,Iu.useDispatch)(Xe.store),[uo,qe]=(0,co.useState)(!1),[Yt,ua]=(0,co.useState)(!1),{hasResolvedNavigationMenus:q,isNavigationMenuResolved:Be,isNavigationMenuMissing:ze,canUserUpdateNavigationMenu:Fe,hasResolvedCanUserUpdateNavigationMenu:He,canUserDeleteNavigationMenu:Xt,hasResolvedCanUserDeleteNavigationMenu:tr,canUserCreateNavigationMenus:Pt,isResolvingCanUserCreateNavigationMenus:Ze,hasResolvedCanUserCreateNavigationMenus:or}=Pf(R),Ur=q&&ze,{convert:Oa,status:ma,error:Lc}=G$(ne),Al=ma===ck,Vl=(0,co.useCallback)((mo,sh={focusNavigationBlock:!1})=>{let{focusNavigationBlock:ch}=sh;z(mo),ch&&ht(o)},[ht,o,z]),Oi=!ze&&Be,Us=de&&!Oi,{getNavigationFallbackId:md}=Q((0,Iu.useSelect)(Dk.store)),Mc=R||Us?null:md();(0,co.useEffect)(()=>{R||Us||!Mc||(yt(),z(Mc))},[R,z,Us,Mc,yt]);let Te=(0,co.useRef)(),pt="nav",Ho=!R&&!Ne&&!Al&&q&&j?.length===0&&!de,Ua=!q||Ne||Al||!!(R&&!Oi&&!Al),Fl=e.style?.typography?.textDecoration,mi=(0,Iu.useSelect)(mo=>mo(Xe.store).__unstableHasActiveBlockOverlayActive(o),[o]),Hl=v!=="never",Pn=(0,Xe.useBlockProps)({ref:Te,className:w(n,{"items-justified-right":C==="right","items-justified-space-between":C==="space-between","items-justified-left":C==="left","items-justified-center":C==="center","is-vertical":T==="vertical","no-wrap":N==="nowrap","is-responsive":Hl,"has-text-color":!!s.color||!!s?.class,[(0,Xe.getColorClassName)("color",s?.slug)]:!!s?.slug,"has-background":!!i.color||i.class,[(0,Xe.getColorClassName)("background-color",i?.slug)]:!!i?.slug,[`has-text-decoration-$Fl}`]:Fl,"block-editor-block-content-overlay":mi},b),style:{color:!s?.slug&&s?.color,backgroundColor:!i?.slug&&i?.color}}),nm=async mo=>Oa(mo.id,mo.name,"draft"),im=mo=>{Vl(mo)};(0,co.useEffect)(()=>{Z(),Ne&&(0,Ik.speak)((0,$t.__)("Creating Navigation Menu.")),Le&&(Vl(ue?.id,{focusNavigationBlock:!0}),K((0,$t.__)("Navigation Menu successfully created."))),ie&&K((0,$t.__)("Failed to create Navigation Menu."))},[re,se,ue?.id,ie,Le,Ne,Vl,Z,K]),(0,co.useEffect)(()=>{X(),ma===ck&&(0,Ik.speak)((0,$t.__)("Classic menu importing.")),ma===EP&&(te((0,$t.__)("Classic menu imported successfully.")),Vl(ue?.id,{focusNavigationBlock:!0})),ma===lk&&te((0,$t.__)("Classic menu import failed."))},[ma,Lc,X,te,ue?.id,Vl]),(0,co.useEffect)(()=>{!a&&!ce&&ee(),(a||ce)&&(R&&!Ur&&He&&!Fe&&J((0,$t.__)("You do not have permission to edit this Menu. Any changes made will not be saved.")),!R&&or&&!Pt&&J((0,$t.__)("You do not have permission to create Navigation Menus.")))},[a,ce,Fe,He,Pt,or,R,ee,J,Ur]);let j2=Pt||Fe,O2=w("wp-block-navigation__overlay-menu-preview",{open:Yt}),Rc=!x&&!y?(0,$t.__)('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.'):"",nh=(0,co.useRef)(!0);(0,co.useEffect)(()=>{!nh.current&&Rc&&(0,Ik.speak)(Rc),nh.current=!1},[Rc]);let U2=(0,FW.useInstanceId)(y$,"overlay-menu-preview"),ih=G(),lh=(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(Xe.InspectorControls,{children:f&&(0,pe.jsxs)(Ir.__experimentalToolsPanel,{label:(0,$t.__)("Display"),resetAll:()=>{t({showSubmenuIcon:!0,openSubmenusOnClick:!1,overlayMenu:"mobile",hasIcon:!0,icon:"handle"})},dropdownMenuProps:ih,children:[!W&&(0,pe.jsxs)(pe.Fragment,{children:[Hl&&(0,pe.jsx)(rk,{isResponsive:Hl,overlayMenuPreview:Yt,setOverlayMenuPreview:ua,hasIcon:P,icon:L,setAttributes:t,overlayMenuPreviewClasses:O2,overlayMenuPreviewId:U2,containerStyle:{gridColumn:"span 2"}}),(0,pe.jsx)(Ir.__experimentalToolsPanelItem,{hasValue:()=>v!=="mobile",label:(0,$t.__)("Overlay Visibility"),onDeselect:()=>t({overlayMenu:"mobile"}),isShownByDefault:!0,children:(0,pe.jsx)(ek,{overlayMenu:v,setAttributes:t})})]}),fe&&(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)("h3",{className:"wp-block-navigation__submenu-header",children:(0,$t.__)("Submenus")}),(0,pe.jsx)(Ir.__experimentalToolsPanelItem,{hasValue:()=>y,label:(0,$t.__)("Open on click"),onDeselect:()=>t({openSubmenusOnClick:!1,showSubmenuIcon:!0}),isShownByDefault:!0,children:(0,pe.jsx)(Ir.ToggleControl,{checked:y,onChange:mo=>{t({openSubmenusOnClick:mo,...mo&&{showSubmenuIcon:!0}})},label:(0,$t.__)("Open on click")})}),(0,pe.jsx)(Ir.__experimentalToolsPanelItem,{hasValue:()=>!x,label:(0,$t.__)("Show arrow"),onDeselect:()=>t({showSubmenuIcon:!0}),isDisabled:e.openSubmenusOnClick,isShownByDefault:!0,children:(0,pe.jsx)(Ir.ToggleControl,{checked:x,onChange:mo=>{t({showSubmenuIcon:mo})},disabled:e.openSubmenusOnClick,label:(0,$t.__)("Show arrow")})}),Rc&&(0,pe.jsx)(Ir.Notice,{spokenMessage:null,status:"warning",isDismissible:!1,className:"wp-block-navigation__submenu-accessibility-notice",children:Rc})]})]})}),W&&(0,pe.jsx)(Xe.InspectorControls,{children:(0,pe.jsx)(V$,{overlayMenu:v,overlay:_,setAttributes:t,onNavigateToEntityRecord:F,overlayMenuPreview:Yt,setOverlayMenuPreview:ua,hasIcon:P,icon:L,overlayMenuPreviewClasses:O2,overlayMenuPreviewId:U2,isResponsive:Hl})}),(0,pe.jsx)(Xe.InspectorControls,{group:"color",children:(0,pe.jsx)(Xfe,{textColor:s,setTextColor:c,backgroundColor:i,setBackgroundColor:l,overlayTextColor:p,setOverlayTextColor:d,overlayBackgroundColor:u,setOverlayBackgroundColor:m,clientId:o,navRef:Te})})]}),zc=`$o}-desc`,lm=v==="always",pd=!j2||!q;if(Us&&!Ne)return(0,pe.jsxs)(pt,{...Pn,"aria-describedby":Ho?void 0:zc,children:[(0,pe.jsx)(Pk,{id:zc,children:(0,$t.__)("Unsaved Navigation Menu.")}),(0,pe.jsx)(Bk,{clientId:o,createNavigationMenuIsSuccess:Le,createNavigationMenuIsError:ie,currentMenuId:R,isNavigationMenuMissing:ze,isManageMenusButtonDisabled:pd,onCreateNew:Ee,onSelectClassicMenu:nm,onSelectNavigationMenu:im,isLoading:Ua,blockEditingMode:I}),I==="default"&&lh,(0,pe.jsx)(CP,{id:o,onToggle:qe,isOpen:uo,hasIcon:P,icon:L,isResponsive:Hl,isHiddenByDefault:lm,overlayBackgroundColor:u,overlayTextColor:p,overlay:_,onNavigateToEntityRecord:F,children:(0,pe.jsx)(d$,{createNavigationMenu:ne,blocks:oe,hasSelection:a||ce})})]});if(R&&ze)return(0,pe.jsxs)(pt,{...Pn,children:[(0,pe.jsx)(Bk,{clientId:o,createNavigationMenuIsSuccess:Le,createNavigationMenuIsError:ie,currentMenuId:R,isNavigationMenuMissing:ze,isManageMenusButtonDisabled:pd,onCreateNew:Ee,onSelectClassicMenu:nm,onSelectNavigationMenu:im,isLoading:Ua,blockEditingMode:I}),(0,pe.jsx)(hk,{onCreateNew:Ee})]});if(Oi&&V)return(0,pe.jsx)("div",{...Pn,children:(0,pe.jsx)(Xe.Warning,{children:(0,$t.__)("Block cannot be rendered inside itself.")})});let G2=g||YG;return Ho&&g?(0,pe.jsx)(pt,{...Pn,children:(0,pe.jsx)(G2,{isSelected:a,currentMenuId:R,clientId:o,canUserCreateNavigationMenus:Pt,isResolvingCanUserCreateNavigationMenus:Ze,onSelectNavigationMenu:im,onSelectClassicMenu:nm,onCreateEmpty:Ee})}):(0,pe.jsx)(Dk.EntityProvider,{kind:"postType",type:"wp_navigation",id:R,children:(0,pe.jsxs)(Xe.RecursionProvider,{uniqueId:O,children:[(0,pe.jsx)(Bk,{clientId:o,createNavigationMenuIsSuccess:Le,createNavigationMenuIsError:ie,currentMenuId:R,isNavigationMenuMissing:ze,isManageMenusButtonDisabled:pd,onCreateNew:Ee,onSelectClassicMenu:nm,onSelectNavigationMenu:im,isLoading:Ua,blockEditingMode:I}),I==="default"&&lh,I==="contentOnly"&&Oi&&(0,pe.jsx)(Yfe,{clientId:o}),I==="default"&&Oi&&(0,pe.jsxs)(Xe.InspectorControls,{group:"advanced",children:[He&&Fe&&(0,pe.jsx)(i$,{}),tr&&Xt&&(0,pe.jsx)(h$,{onDelete:()=>{rt(o,[]),K((0,$t.__)("Navigation Menu successfully deleted."))}}),(0,pe.jsx)(pW,{disabled:pd,className:"wp-block-navigation-manage-menus-button"})]}),(0,pe.jsxs)(pt,{...Pn,"aria-describedby":!Ho&&!Ua?zc:void 0,children:[Ua&&!lm&&(0,pe.jsx)("div",{className:"wp-block-navigation__loading-indicator-container",children:(0,pe.jsx)(Ir.Spinner,{className:"wp-block-navigation__loading-indicator"})}),(!Ua||lm)&&(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(AW,{id:zc}),(0,pe.jsx)(CP,{id:o,onToggle:qe,hasIcon:P,icon:L,isOpen:uo,isResponsive:Hl,isHiddenByDefault:lm,overlayBackgroundColor:u,overlayTextColor:p,overlay:_,onNavigateToEntityRecord:F,children:Oi&&(0,pe.jsx)(t$,{clientId:o,hasCustomPlaceholder:!!g,templateLock:k,orientation:T})})]})]})]})})}var HW=(0,Xe.withColors)({textColor:"color"},{backgroundColor:"color"},{overlayBackgroundColor:"color"},{overlayTextColor:"color"})(Jfe);var jW=r(S()),OW=r(h());function UW({attributes:e}){if(!e.ref)return(0,OW.jsx)(jW.InnerBlocks.Content,{})}var Tp=r(S()),Uf=r(we());var Bp=r(h()),UP={fontStyle:"var:preset|font-style|",fontWeight:"var:preset|font-weight|",textDecoration:"var:preset|text-decoration|",textTransform:"var:preset|text-transform|"},Gf=({navigationMenuId:e,...t})=>({...t,ref:e}),Ek=e=>{if(e.layout)return e;let{itemsJustification:t,orientation:o,...a}=e;return(t||o)&&Object.assign(a,{layout:{type:"flex",...t&&{justifyContent:t},...o&&{orientation:o}}}),a},ege={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},openSubmenusOnClick:{type:"boolean",default:!1},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,Bp.jsx)(Tp.InnerBlocks.Content,{})},isEligible:({navigationMenuId:e})=>!!e,migrate:Gf},tge={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,Bp.jsx)(Tp.InnerBlocks.Content,{})},isEligible:({itemsJustification:e,orientation:t})=>!!e||!!t,migrate:(0,Uf.compose)(Gf,Ek)},oge={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,Bp.jsx)(Tp.InnerBlocks.Content,{})},migrate:(0,Uf.compose)(Gf,Ek,Nt),isEligible({style:e}){return e?.typography?.fontFamily}},rge=function(e){return delete e.isResponsive,{...e,overlayMenu:"mobile"}},age=function(e){return{...e,style:{...e.style,typography:Object.fromEntries(Object.entries(e.style.typography??{}).map(([t,o])=>{let a=UP[t];if(a&&o.startsWith(a)){let n=o.slice(a.length);return t==="textDecoration"&&n==="strikethrough"?[t,"line-through"]:[t,n]}return[t,o]}))}}},nge=[ege,tge,oge,{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,Uf.compose)(Gf,Ek,Nt,rge),save(){return(0,Bp.jsx)(Tp.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,Bp.jsx)(Tp.InnerBlocks.Content,{})},isEligible(e){if(!e.style||!e.style.typography)return!1;for(let t in UP){let o=e.style.typography[t];if(o&&o.startsWith(UP[t]))return!0}return!1},migrate:(0,Uf.compose)(Gf,Ek,Nt,age)},{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,Uf.compose)(Gf,e=>{let{rgbTextColor:t,rgbBackgroundColor:o,...a}=e;return{...a,customTextColor:e.textColor?void 0:e.rgbTextColor,customBackgroundColor:e.backgroundColor?void 0:e.rgbBackgroundColor}}),save(){return(0,Bp.jsx)(Tp.InnerBlocks.Content,{})}}],GW=nge;var{name:ZW}=O5,KW={icon:Sm,example:{attributes:{overlayMenu:"never"},innerBlocks:[{name:"core/navigation-link",attributes:{label:(0,Lk.__)("Home"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,Lk.__)("About"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,Lk.__)("Contact"),url:"https://make.wordpress.org/"}}]},edit:HW,save:UW,__experimentalLabel:({ref:e})=>{if(!e)return;let t=(0,$W.select)(WW.store).getEditedEntityRecord("postType","wp_navigation",e);if(t?.title)return(0,qW.decodeEntities)(t.title)},deprecated:GW},ige=()=>D({name:ZW,metadata:O5,settings:KW});var WP={};$(WP,{init:()=>vge,metadata:()=>Mk,name:()=>lq,settings:()=>Fk});var w1=r(B());var rq=r(S()),aq=r(Js()),nq=r(U());var Mk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-link",title:"Custom Link",category:"design",parent:["core/navigation"],allowedBlocks:["core/navigation-link","core/navigation-submenu","core/page-list"],description:"Add a page, link, or another item to your navigation.",textdomain:"default",attributes:{label:{type:"string",role:"content"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string",role:"content"},title:{type:"string"},kind:{type:"string"},isTopLevelLink:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","style"],supports:{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}},editorStyle:"wp-block-navigation-link-editor",style:"wp-block-navigation-link"};var Rk=r(U()),$f=r(A()),Pp=r(M()),zk=r(Wi()),dn=r(B()),Zo=r(S()),Ak=r(ko()),Dr=r(H()),QW=r(jo());var YW=r(Y()),Vk=r(we());var Lt=r(h()),sge={name:"core/navigation-link"},cge=["core/navigation-link","core/navigation-submenu"],uge=e=>{let[t,o]=(0,Dr.useState)(!1);return(0,Dr.useEffect)(()=>{let{ownerDocument:a}=e.current;function n(s){l(s)}function i(){o(!1)}function l(s){e.current.contains(s.target)?o(!0):o(!1)}return a.addEventListener("dragstart",n),a.addEventListener("dragend",i),a.addEventListener("dragenter",l),()=>{a.removeEventListener("dragstart",n),a.removeEventListener("dragend",i),a.removeEventListener("dragenter",l)}},[e]),t},mge=(e,t,o,a)=>{let n=e==="post-type"||t==="post"||t==="page",i=Number.isInteger(o),l=(0,Zo.useBlockEditingMode)(),{postStatus:s,isDeleted:c}=(0,$f.useSelect)(p=>{if(!n)return{postStatus:null,isDeleted:!1};if(l==="disabled"||!a)return{postStatus:null,isDeleted:!1};let{getEntityRecord:d,hasFinishedResolution:f}=p(YW.store),g=d("postType",t,o),y=f("getEntityRecord",["postType",t,o])&&g===void 0;return{postStatus:g?.status,isDeleted:y}},[n,l,a,t,o]);return[n&&i&&(c||s&&s==="trash"),s==="draft"]};function pge(e){let t="";switch(e){case"post":t=(0,dn.__)("Select post");break;case"page":t=(0,dn.__)("Select page");break;case"category":t=(0,dn.__)("Select category");break;case"tag":t=(0,dn.__)("Select tag");break;default:t=(0,dn.__)("Add link")}return t}function $P({attributes:e,isSelected:t,setAttributes:o,insertBlocksAfter:a,mergeBlocks:n,onReplace:i,context:l,clientId:s}){let{id:c,label:u,type:m,url:p,description:d,kind:f,metadata:g}=e,{maxNestingLevel:b}=l,{replaceBlock:y,__unstableMarkNextChangeAsNotPersistent:v,selectBlock:_}=(0,$f.useDispatch)(Zo.store),[x,k]=(0,Dr.useState)(t&&!p),[C,T]=(0,Dr.useState)(null),N=(0,Dr.useRef)(null),P=uge(N),L=(0,dn.__)("Add label\u2026"),R=(0,Dr.useRef)(),z=(0,Dr.useRef)(),O=(0,Dr.useRef)(u===void 0),V=(0,Dr.useRef)(!1),{isAtMaxNesting:I,isTopLevelLink:F,isParentOfSelectedBlock:W,hasChildren:j,validateLinkStatus:K,parentBlockClientId:Z,isSubmenu:te}=(0,$f.useSelect)(q=>{let{getBlockCount:Be,getBlockName:ze,getBlockRootClientId:Fe,hasSelectedInnerBlock:He,getBlockParentsByBlockName:Xt,getSelectedBlockClientId:tr}=q(Zo.store),Pt=Fe(s),Ze=ze(Pt),or=Ze==="core/navigation",Ur=tr(),Oa=or?Pt:Xt(s,"core/navigation")[0],ma=Ze==="core/navigation-submenu"?Pt:Oa,Lc=Ur===Oa||He(Oa,!0);return{isAtMaxNesting:Xt(s,cge).length>=b,isTopLevelLink:or,isParentOfSelectedBlock:He(s,!0),hasChildren:!!Be(s),validateLinkStatus:Lc,parentBlockClientId:ma,isSubmenu:Ze==="core/navigation-submenu"}},[s,b]),{getBlocks:X}=(0,$f.useSelect)(Zo.store),{hasUrlBinding:J,isBoundEntityAvailable:ee}=Xn({clientId:s,attributes:e}),ne=b1({clientId:s,attributes:e,setAttributes:o}),[re,se]=mge(f,m,c,K),ue=(0,Dr.useCallback)(()=>{let q=X(s);q.length===0&&(q=[(0,Rk.createBlock)("core/navigation-link")],_(q[0].clientId));let Be=(0,Rk.createBlock)("core/navigation-submenu",e,q);y(s,Be)},[X,s,_,y,e]);(0,Dr.useEffect)(()=>{O.current&&t&&_(Z)},[]),(0,Dr.useEffect)(()=>{j&&(v(),ue())},[j,v,ue]),(0,Dr.useEffect)(()=>{if(!(!O.current||!p||!x)){if(O.current=!1,(0,Ak.isURL)((0,Ak.prependHTTP)(u))&&/^.+\.[a-z]+/.test(u))Ne();else if(_(s,null),te){let q=X(Z);q.length===1&&q[0].clientId===s&&(V.current=!0)}}},[p,x,O,u]);function Ne(){R.current.focus();let{ownerDocument:q}=R.current,{defaultView:Be}=q,ze=Be.getSelection(),Fe=q.createRange();Fe.selectNodeContents(R.current),ze.removeAllRanges(),ze.addRange(Fe)}function Le(){o({url:void 0,label:void 0,id:void 0,kind:void 0,type:void 0,opensInNewTab:!1}),k(!1)}let{textColor:ie,customTextColor:Ee,backgroundColor:de,customBackgroundColor:oe}=_p(l,!F);function ce(q){zk.isKeyboardEvent.primary(q,"k")&&(q.preventDefault(),q.stopPropagation(),k(!0))}let ke=(0,Vk.useInstanceId)($P),fe=J&&!ee,rt=fe?(0,dn.sprintf)("navigation-link-edit-%d-desc",ke):void 0,ht=(0,Zo.useBlockProps)({ref:(0,Vk.useMergeRefs)([T,N]),className:w("wp-block-navigation-item",{"is-editing":t||W,"is-dragging-within":P,"has-link":!!p,"has-child":j,"has-text-color":!!ie||!!Ee,[(0,Zo.getColorClassName)("color",ie)]:!!ie,"has-background":!!de||oe,[(0,Zo.getColorClassName)("background-color",de)]:!!de}),"aria-describedby":rt,"aria-invalid":fe,style:{color:!ie&&Ee,backgroundColor:!de&&oe},onKeyDown:ce}),yt=(0,Zo.useInnerBlocksProps)({...ht,className:"remove-outline"},{defaultBlock:sge,directInsert:!0,renderAppender:!1}),uo=!p&&!(J&&ee)||re||se||J&&!ee;uo&&(ht.onClick=()=>{k(!0)});let qe=w("wp-block-navigation-item__content",{"wp-block-navigation-link__placeholder":uo}),Yt=pge(m),ua=`($re?(0,dn.__)("Invalid"):(0,dn.__)("Draft")})`;return(0,Lt.jsxs)(Lt.Fragment,{children:[(0,Lt.jsx)(Zo.BlockControls,{children:(0,Lt.jsxs)(Pp.ToolbarGroup,{children:[(0,Lt.jsx)(Pp.ToolbarButton,{name:"link",icon:In,title:(0,dn.__)("Link"),shortcut:zk.displayShortcut.primary("k"),onClick:()=>{k(!0)}}),!I&&(0,Lt.jsx)(Pp.ToolbarButton,{name:"submenu",icon:vm,title:(0,dn.__)("Add submenu"),onClick:ue})]})}),(0,Lt.jsx)(Zo.InspectorControls,{children:(0,Lt.jsx)(k1,{attributes:e,setAttributes:o,clientId:s})}),(0,Lt.jsxs)("div",{...ht,children:[fe&&(0,Lt.jsx)(Pp.VisuallyHidden,{id:rt,children:(0,Lt.jsx)(Sk,{type:m,kind:f})}),(0,Lt.jsxs)("a",{className:qe,children:[!p&&!g?.bindings?.url?(0,Lt.jsx)("div",{className:"wp-block-navigation-link__placeholder-text",children:(0,Lt.jsx)("span",{children:Yt})}):(0,Lt.jsxs)(Lt.Fragment,{children:[!re&&!se&&(0,Lt.jsxs)(Lt.Fragment,{children:[(0,Lt.jsx)(Zo.RichText,{ref:R,identifier:"label",className:"wp-block-navigation-item__label",value:u,onChange:q=>o({label:q}),onMerge:n,onReplace:i,__unstableOnSplitAtEnd:()=>a((0,Rk.createBlock)("core/navigation-link")),"aria-label":(0,dn.__)("Navigation link text"),placeholder:L,withoutInteractiveFormatting:!0}),d&&(0,Lt.jsx)("span",{className:"wp-block-navigation-item__description",children:d})]}),(re||se)&&(0,Lt.jsx)("div",{className:w("wp-block-navigation-link__placeholder-text","wp-block-navigation-link__label",{"is-invalid":re,"is-draft":se}),children:(0,Lt.jsx)("span",{children:`${(0,QW.decodeEntities)(u)} $re||se?ua:""}`.trim()})})]}),x&&(0,Lt.jsx)(gc,{ref:z,clientId:s,link:e,onClose:()=>{if(k(!1),!p&&!J){i([]);return}if(V.current&&(V.current=!1,N.current?.nextElementSibling)){let q=N.current.nextElementSibling.querySelector(".block-editor-button-block-appender");q&&q.focus()}},anchor:C,onRemove:Le,onChange:ne})]}),(0,Lt.jsx)("div",{...yt})]})]})}var XW=r(S()),JW=r(h());function eq(){return(0,JW.jsx)(XW.InnerBlocks.Content,{})}function dge(e){switch(e){case"post":return $h;case"page":return $s;case"tag":return a0;case"category":return Oc;default:return k8}}function tq(e,t){if(t!=="core/navigation-link")return e;if(e.variations){let o=(n,i)=>n.type===i.type,a=e.variations.map(n=>({...n,...!n.icon&&{icon:dge(n.name)},...!n.isActive&&{isActive:o}}));return{...e,variations:a}}return e}var Er=r(U()),fge={from:[{type:"block",blocks:["core/site-logo"],transform:()=>(0,Er.createBlock)("core/navigation-link")},{type:"block",blocks:["core/spacer"],transform:()=>(0,Er.createBlock)("core/navigation-link")},{type:"block",blocks:["core/home-link"],transform:()=>(0,Er.createBlock)("core/navigation-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,Er.createBlock)("core/navigation-link")},{type:"block",blocks:["core/search"],transform:()=>(0,Er.createBlock)("core/navigation-link")},{type:"block",blocks:["core/page-list"],transform:()=>(0,Er.createBlock)("core/navigation-link")},{type:"block",blocks:["core/buttons"],transform:()=>(0,Er.createBlock)("core/navigation-link")}],to:[{type:"block",blocks:["core/navigation-submenu"],transform:(e,t)=>(0,Er.createBlock)("core/navigation-submenu",e,t)},{type:"block",blocks:["core/spacer"],transform:()=>(0,Er.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],transform:()=>(0,Er.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],transform:()=>(0,Er.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,Er.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],transform:()=>(0,Er.createBlock)("core/search",{showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"})},{type:"block",blocks:["core/page-list"],transform:()=>(0,Er.createBlock)("core/page-list")},{type:"block",blocks:["core/buttons"],transform:({label:e,url:t,rel:o,title:a,opensInNewTab:n})=>(0,Er.createBlock)("core/buttons",{},[(0,Er.createBlock)("core/button",{text:e,url:t,rel:o,title:a,linkTarget:n?"_blank":void 0})])}]},oq=fge;var iq=r(h()),{fieldsKey:gge,formKey:hge}=Q(nq.privateApis),{name:lq}=Mk,Fk={icon:wh,__experimentalLabel:({label:e})=>e,merge(e,{label:t=""}){return{...e,label:e.label+t}},edit:$P,save:eq,example:{attributes:{label:(0,w1._x)("Example Link","navigation link preview example"),url:"https://example.com"}},deprecated:[{isEligible(e){return e.nofollow},attributes:{label:{type:"string"},type:{type:"string"},nofollow:{type:"boolean"},description:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"}},migrate({nofollow:e,...t}){return{rel:e?"nofollow":"",...t}},save(){return(0,iq.jsx)(rq.InnerBlocks.Content,{})}}],transforms:oq};window.__experimentalContentOnlyInspectorFields&&(Fk[gge]=[{id:"label",label:(0,w1.__)("Label"),type:"richtext"},{id:"link",label:(0,w1.__)("Link"),type:"link",mapping:{href:"url",rel:"rel"}}],Fk[hge]={fields:["label"]});var vge=()=>((0,aq.addFilter)("blocks.registerBlockType","core/navigation-link",tq),D({name:lq,metadata:Mk,settings:Fk}));var ZP={};$(ZP,{init:()=>wge,metadata:()=>Hk,name:()=>bq,settings:()=>Wk});var S1=r(B()),vq=r(U());var Hk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-submenu",title:"Submenu",category:"design",parent:["core/navigation"],description:"Add a submenu to your navigation.",textdomain:"default",attributes:{label:{type:"string",role:"content"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string",role:"content"},title:{type:"string"},kind:{type:"string"},isTopLevelItem:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","openSubmenusOnClick","style"],supports:{reusable:!1,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-navigation-submenu-editor",style:"wp-block-navigation-submenu"};var Ok=r(A()),C1=r(M()),Uk=r(Wi()),Wf=r(B()),Do=r(S()),Gk=r(ko()),oi=r(H());var uq=r(t1()),mq=r(U()),$k=r(we());var jk=r(M()),qP=r(h()),sq=()=>(0,qP.jsx)(jk.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,qP.jsx)(jk.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})});var Ko=r(h()),cq=["core/navigation-link","core/navigation-submenu","core/page-list"],yge=e=>{let[t,o]=(0,oi.useState)(!1);return(0,oi.useEffect)(()=>{let{ownerDocument:a}=e.current;function n(s){l(s)}function i(){o(!1)}function l(s){e.current.contains(s.target)?o(!0):o(!1)}return a.addEventListener("dragstart",n),a.addEventListener("dragend",i),a.addEventListener("dragenter",l),()=>{a.removeEventListener("dragstart",n),a.removeEventListener("dragend",i),a.removeEventListener("dragenter",l)}},[]),t};function pq({attributes:e,isSelected:t,setAttributes:o,mergeBlocks:a,onReplace:n,context:i,clientId:l}){let{label:s,url:c,description:u}=e,{showSubmenuIcon:m,maxNestingLevel:p,openSubmenusOnClick:d}=i,g=(0,Do.useBlockEditingMode)()!=="default"?!0:d,{clearBinding:b,createBinding:y}=Xn({clientId:l,attributes:e}),{__unstableMarkNextChangeAsNotPersistent:v,replaceBlock:_}=(0,Ok.useDispatch)(Do.store),[x,k]=(0,oi.useState)(!1),[C,T]=(0,oi.useState)(null),N=(0,oi.useRef)(null),P=yge(N),L=(0,Wf.__)("Add text\u2026"),R=(0,oi.useRef)(),{parentCount:z,isParentOfSelectedBlock:O,isImmediateParentOfSelectedBlock:V,hasChildren:I,selectedBlockHasChildren:F,onlyDescendantIsEmptyLink:W}=(0,Ok.useSelect)(de=>{let{hasSelectedInnerBlock:oe,getSelectedBlockClientId:ce,getBlockParentsByBlockName:ke,getBlock:fe,getBlockCount:rt,getBlockOrder:ht}=de(Do.store),yt,uo=ce(),qe=ht(uo);if(qe?.length===1){let Yt=fe(qe[0]);yt=Yt?.name==="core/navigation-link"&&!Yt?.attributes?.label}return{parentCount:ke(l,"core/navigation-submenu").length,isParentOfSelectedBlock:oe(l,!0),isImmediateParentOfSelectedBlock:oe(l,!1),hasChildren:!!rt(l),selectedBlockHasChildren:!!qe?.length,onlyDescendantIsEmptyLink:yt}},[l]),j=(0,$k.usePrevious)(I);(0,oi.useEffect)(()=>{!g&&!c&&k(!0)},[]),(0,oi.useEffect)(()=>{t||k(!1)},[t]),(0,oi.useEffect)(()=>{x&&c&&(0,Gk.isURL)((0,Gk.prependHTTP)(s))&&/^.+\.[a-z]+/.test(s)&&K()},[c]);function K(){R.current.focus();let{ownerDocument:de}=R.current,{defaultView:oe}=de,ce=oe.getSelection(),ke=de.createRange();ke.selectNodeContents(R.current),ce.removeAllRanges(),ce.addRange(ke)}let{textColor:Z,customTextColor:te,backgroundColor:X,customBackgroundColor:J}=_p(i,z>0);function ee(de){Uk.isKeyboardEvent.primary(de,"k")&&(de.preventDefault(),de.stopPropagation(),k(!0))}let ne=(0,Do.useBlockProps)({ref:(0,$k.useMergeRefs)([T,N]),className:w("wp-block-navigation-item",{"is-editing":t||O,"is-dragging-within":P,"has-link":!!c,"has-child":I,"has-text-color":!!Z||!!te,[(0,Do.getColorClassName)("color",Z)]:!!Z,"has-background":!!X||J,[(0,Do.getColorClassName)("background-color",X)]:!!X,"open-on-click":g}),style:{color:!Z&&te,backgroundColor:!X&&J},onKeyDown:ee}),re=_p(i,!0),se=z>=p?cq.filter(de=>de!=="core/navigation-submenu"):cq,ue=J5(re),Ne=(0,Do.useInnerBlocksProps)(ue,{allowedBlocks:se,defaultBlock:Kn,directInsert:!0,__experimentalCaptureToolbars:!0,renderAppender:t||V&&!F||I?Do.InnerBlocks.ButtonBlockAppender:!1}),Le=g?"button":"a";function ie(){let de=(0,mq.createBlock)("core/navigation-link",e);_(l,de)}(0,oi.useEffect)(()=>{!I&&j&&(v(),ie())},[I,j]);let Ee=!F||W;return(0,Ko.jsxs)(Ko.Fragment,{children:[(0,Ko.jsx)(Do.BlockControls,{children:(0,Ko.jsxs)(C1.ToolbarGroup,{children:[!g&&(0,Ko.jsx)(C1.ToolbarButton,{name:"link",icon:In,title:(0,Wf.__)("Link"),shortcut:Uk.displayShortcut.primary("k"),onClick:()=>{k(!0)}}),(0,Ko.jsx)(C1.ToolbarButton,{name:"revert",icon:E9,title:(0,Wf.__)("Convert to Link"),onClick:ie,className:"wp-block-navigation__submenu__revert",disabled:!Ee})]})}),(0,Ko.jsx)(Do.InspectorControls,{children:(0,Ko.jsx)(k1,{attributes:e,setAttributes:o,clientId:l})}),(0,Ko.jsxs)("div",{...ne,children:[(0,Ko.jsxs)(Le,{className:"wp-block-navigation-item__content",children:[(0,Ko.jsx)(Do.RichText,{ref:R,identifier:"label",className:"wp-block-navigation-item__label",value:s,onChange:de=>o({label:de}),onMerge:a,onReplace:n,"aria-label":(0,Wf.__)("Navigation link text"),placeholder:L,withoutInteractiveFormatting:!0,onClick:()=>{!g&&!c&&k(!0)}}),u&&(0,Ko.jsx)("span",{className:"wp-block-navigation-item__description",children:u}),!g&&x&&(0,Ko.jsx)(gc,{clientId:l,link:e,onClose:()=>{k(!1)},anchor:C,onRemove:()=>{o({url:""}),(0,uq.speak)((0,Wf.__)("Link removed."),"assertive")},onChange:de=>{let{isEntityLink:oe,attributes:ce}=Cp(de,o,e);oe?y(ce):b()}})]}),(m||g)&&(0,Ko.jsx)("span",{className:"wp-block-navigation__submenu-icon",children:(0,Ko.jsx)(sq,{})}),(0,Ko.jsx)("div",{...Ne})]})]})}var dq=r(S()),fq=r(h());function gq(){return(0,fq.jsx)(dq.InnerBlocks.Content,{})}var Np=r(U()),xge={to:[{type:"block",blocks:["core/navigation-link"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:e=>(0,Np.createBlock)("core/navigation-link",e)},{type:"block",blocks:["core/spacer"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,Np.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,Np.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,Np.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,Np.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,Np.createBlock)("core/search")}]},hq=xge;var{fieldsKey:_ge,formKey:kge}=Q(vq.privateApis),{name:bq}=Hk,Wk={icon:({context:e})=>e==="list-view"?$s:vm,__experimentalLabel(e,{context:t}){let{label:o}=e,a=e?.metadata?.name;return t==="list-view"&&(a||o)&&e?.metadata?.name||o},edit:pq,example:{attributes:{label:(0,S1._x)("About","Example link text for Navigation Submenu"),type:"page"}},save:gq,transforms:hq};window.__experimentalContentOnlyInspectorFields&&(Wk[_ge]=[{id:"label",label:(0,S1.__)("Label"),type:"richtext"},{id:"link",label:(0,S1.__)("Link"),type:"link",mapping:{href:"url",rel:"rel"}}],Wk[kge]={fields:["label"]});var wge=()=>D({name:bq,metadata:Hk,settings:Wk});var QP={};$(QP,{init:()=>Tge,metadata:()=>qk,name:()=>Bq,settings:()=>Pq});var yq=r(B()),xq=r(S()),KP=r(h());function _q(){return(0,KP.jsx)("div",{...(0,xq.useBlockProps)(),children:(0,KP.jsx)("span",{children:(0,yq.__)("Page break")})})}var qk={$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,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-nextpage-editor"};var kq=r(H()),wq=r(h());function Cq(){return(0,wq.jsx)(kq.RawHTML,{children:"<!--nextpage-->"})}var Sq=r(U()),Sge={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&e.dataset.block==="core/nextpage",transform(){return(0,Sq.createBlock)("core/nextpage",{})}}]},Tq=Sge;var{name:Bq}=qk,Pq={icon:V7,example:{},transforms:Tq,edit:_q,save:Cq},Tge=()=>D({name:Bq,metadata:qk,settings:Pq});var JP={};$(JP,{init:()=>Ige,metadata:()=>Zk,name:()=>Mq,settings:()=>Rq});var Eq=r(Js()),XP=r(A()),Lq=r(Y());var qf=r(S()),vs=r(M()),vc=r(B());var Da=r(h());function Nq({attributes:e,setAttributes:t}){let{displayMode:o,text:a}=e,n=o==="icon"||o==="both",i=o==="text"||o==="both",l=(0,qf.useBlockProps)({className:"wp-block-navigation-overlay-close"}),s=G();return(0,Da.jsxs)(Da.Fragment,{children:[(0,Da.jsx)(qf.InspectorControls,{children:(0,Da.jsx)(vs.__experimentalToolsPanel,{label:(0,vc.__)("Settings"),resetAll:()=>t({displayMode:"icon"}),dropdownMenuProps:s,children:(0,Da.jsx)(vs.__experimentalToolsPanelItem,{label:(0,vc.__)("Display Mode"),isShownByDefault:!0,hasValue:()=>o!=="icon",onDeselect:()=>t({displayMode:"icon"}),children:(0,Da.jsxs)(vs.__experimentalToggleGroupControl,{label:(0,vc.__)("Display Mode"),value:o,onChange:c=>t({displayMode:c}),isBlock:!0,__next40pxDefaultSize:!0,children:[(0,Da.jsx)(vs.__experimentalToggleGroupControlOption,{value:"icon",label:(0,vc.__)("Icon")}),(0,Da.jsx)(vs.__experimentalToggleGroupControlOption,{value:"text",label:(0,vc.__)("Text")}),(0,Da.jsx)(vs.__experimentalToggleGroupControlOption,{value:"both",label:(0,vc.__)("Both")})]})})})}),(0,Da.jsxs)("button",{...l,type:"button","aria-label":i?void 0:(0,vc.__)("Close"),children:[n&&(0,Da.jsx)(pa,{icon:bm}),i&&(0,Da.jsx)(qf.RichText,{identifier:"text",value:a,onChange:c=>t({text:c}),placeholder:(0,vc.__)("Close"),withoutInteractiveFormatting:!0,tagName:"span",className:"wp-block-navigation-overlay-close__text",allowedFormats:["core/bold","core/italic"]})]})]})}var Zk={$schema:"https://schemas.wp.org/trunk/block.json",__experimental:!0,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:"rich-text",source:"rich-text",selector:"span",default:"Close"}},supports:{color:{gradients:!1,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},style:"wp-block-navigation-overlay-close"};var Kk=r(S()),Zf=r(h()),Pge=Kk.useBlockProps.save;function Iq({attributes:e}){let{displayMode:t,text:o}=e,a=t==="icon"||t==="both",n=t==="text"||t==="both",i=Pge({className:"wp-block-navigation-overlay-close"});return(0,Zf.jsxs)("button",{...i,type:"button","aria-label":n?void 0:"Close",children:[a&&(0,Zf.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,Zf.jsx)("path",{d:"M13 11.8l6.1-6.3-1.1-1-6.1 6.2-6.1-6.2-1.1 1 6.1 6.3-6.5 6.7 1.1 1 6.5-6.6 6.5 6.6 1.1-1z"})}),n&&(0,Zf.jsx)(Kk.RichText.Content,{tagName:"span",value:o,className:"wp-block-navigation-overlay-close__text"})]})}var Qk=r(E()),YP=r(h()),Dq=(0,YP.jsx)(Qk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,YP.jsx)(Qk.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:Mq}=Zk,Rq={icon:Dq,edit:Nq,save:Iq};function Nge(){let e=(0,XP.select)("core/editor");if(!e)return!1;let{getCurrentPostType:t,getCurrentPostId:o}=e,{getEditedEntityRecord:a}=(0,XP.select)(Lq.store),n=t(),i=o();return n==="wp_template_part"&&i?a("postType","wp_template_part",i)?.area==="overlay":!1}var Ige=()=>((0,Eq.addFilter)("blockEditor.__unstableCanInsertBlockType","core/navigation-overlay-close/restrict-to-overlay-template-parts",(e,t)=>t.name!=="core/navigation-overlay-close"||!e?e:Nge()),D({name:Mq,metadata:Zk,settings:Rq}));var tN={};$(tN,{init:()=>Rge,metadata:()=>Yk,name:()=>Oq,settings:()=>Uq});var Yk={$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 Fq=r(U()),Du=r(A()),Jk=r(H()),Eu=r(S()),Hq=r(Y()),e4=r(B());var zq=r(A()),eN=new WeakMap;function Aq(){let e=(0,zq.useRegistry)();if(!eN.has(e)){let t=new Map;eN.set(e,Ege.bind(null,t))}return eN.get(e)}function Ege(e,{name:t,blocks:o}){let a=[...o];for(;a.length;){let n=a.shift();for(let i of n.innerBlocks??[])a.unshift(i);n.name==="core/pattern"&&Lge(e,t,n.attributes.slug)}}function Lge(e,t,o){if(e.has(t)||e.set(t,new Set),e.get(t).add(o),Vq(e,t))throw new TypeError(`Pattern $t} has a circular dependency and cannot be rendered.`)}function Vq(e,t,o=new Set,a=new Set){o.add(t),a.add(t);let n=e.get(t)??new Set;for(let i of n)if(o.has(i)){if(a.has(i))return!0}else if(Vq(e,i,o,a))return!0;return a.delete(t),!1}var Xk=r(h()),Mge=({attributes:e,clientId:t})=>{let o=(0,Du.useRegistry)(),a=(0,Du.useSelect)(b=>b(Eu.store).__experimentalGetParsedPattern(e.slug),[e.slug]),n=(0,Du.useSelect)(b=>b(Hq.store).getCurrentTheme()?.stylesheet,[]),{replaceBlocks:i,setBlockEditingMode:l,__unstableMarkNextChangeAsNotPersistent:s}=(0,Du.useDispatch)(Eu.store),{getBlockRootClientId:c,getBlockEditingMode:u}=(0,Du.useSelect)(Eu.store),[m,p]=(0,Jk.useState)(!1),d=Aq();function f(b){return b.innerBlocks.find(y=>y.name==="core/template-part")&&(b.innerBlocks=b.innerBlocks.map(y=>(y.name==="core/template-part"&&y.attributes.theme===void 0&&(y.attributes.theme=n),y))),b.name==="core/template-part"&&b.attributes.theme===void 0&&(b.attributes.theme=n),b}(0,Jk.useEffect)(()=>{if(!m&&a?.blocks){try{d(a)}catch{p(!0);return}window.queueMicrotask(()=>{let b=c(t),y=a.blocks.map(_=>(0,Fq.cloneBlock)(f(_)));y.length===1&&a.categories?.length>0&&(y[0].attributes={...y[0].attributes,metadata:{...y[0].attributes.metadata,categories:a.categories,patternName:a.name,name:y[0].attributes.metadata.name||a.title}});let v=u(b);o.batch(()=>{s(),l(b,"default"),s(),i(t,y),s(),l(b,v)})})}},[t,m,a,s,i,u,l,c]);let g=(0,Eu.useBlockProps)();return m?(0,Xk.jsx)("div",{...g,children:(0,Xk.jsx)(Eu.Warning,{children:(0,e4.sprintf)((0,e4.__)('Pattern "%s" cannot be rendered inside itself.'),a?.name)})}):(0,Xk.jsx)("div",{...g})},jq=Mge;var{name:Oq}=Yk,Uq={edit:jq},Rge=()=>D({name:Oq,metadata:Yk,settings:Uq});var nN={};$(nN,{init:()=>Hge,metadata:()=>t4,name:()=>Jq,settings:()=>eZ});var t4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/page-list",title:"Page List",category:"widgets",allowedBlocks:["core/page-list-item"],description:"Display a list of all pages.",keywords:["menu","navigation"],textdomain:"default",attributes:{parentPageID:{type:"integer",default:0},isNested:{type:"boolean",default:!1}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style","openSubmenusOnClick"],supports:{reusable:!1,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},color:{text:!0,background:!0,link:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},spacing:{padding:!0,margin:!0,__experimentalDefaultControls:{padding:!1,margin:!1}},contentRole:!0},editorStyle:"wp-block-page-list-editor",style:"wp-block-page-list"};var Qq=r(U()),aa=r(S()),ra=r(M()),oa=r(B()),_l=r(H()),Yq=r(Y()),r4=r(A());var oN=r(U()),Gq=r(A()),$q=r(S());function Age(e=[]){let t="post-type",o={},a=[];return e.forEach(({id:n,title:i,link:l,type:s,parent:c})=>{let u=o[n]?.innerBlocks??[];o[n]=(0,oN.createBlock)("core/navigation-link",{id:n,label:i.rendered,url:l,type:s,kind:t,metadata:{bindings:Vf(t)}},u),c?(o[c]||(o[c]={innerBlocks:[]}),o[c].innerBlocks.push(o[n])):a.push(o[n])}),a}function Wq(e,t){for(let o of e){if(o.attributes.id===t)return o;if(o.innerBlocks&&o.innerBlocks.length){let a=Wq(o.innerBlocks,t);if(a)return a}}return null}function Vge(e=[],t=null){let o=Age(e);if(t){let n=Wq(o,t);n&&n.innerBlocks&&(o=n.innerBlocks)}let a=n=>{n.forEach((i,l,s)=>{let{attributes:c,innerBlocks:u}=i;if(u.length!==0){a(u);let m=(0,oN.createBlock)("core/navigation-submenu",c,u);s[l]=m}})};return a(o),o}function qq({clientId:e,pages:t,parentClientId:o,parentPageID:a}){let{replaceBlock:n,selectBlock:i}=(0,Gq.useDispatch)($q.store);return()=>{let l=Vge(t,a);n(e,l),i(o)}}var B1=r(M()),rN=r(we()),T1=r(B()),Ip=r(h()),aN=(0,T1.__)("This Navigation Menu displays your website's pages. Editing it will enable you to add, delete, or reorder pages. However, new pages will no longer be added automatically.");function o4({onClick:e,onClose:t,disabled:o}){return(0,Ip.jsxs)(B1.Modal,{onRequestClose:t,title:(0,T1.__)("Edit Page List"),className:"wp-block-page-list-modal",aria:{describedby:(0,rN.useInstanceId)(o4,"wp-block-page-list-modal__description")},children:[(0,Ip.jsx)("p",{id:(0,rN.useInstanceId)(o4,"wp-block-page-list-modal__description"),children:aN}),(0,Ip.jsxs)("div",{className:"wp-block-page-list-modal-buttons",children:[(0,Ip.jsx)(B1.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,children:(0,T1.__)("Cancel")}),(0,Ip.jsx)(B1.Button,{__next40pxDefaultSize:!0,variant:"primary",accessibleWhenDisabled:!0,disabled:o,onClick:e,children:(0,T1.__)("Edit")})]})]})}var vt=r(h()),Zq=100,Kq=()=>{};function Fge({blockProps:e,innerBlocksProps:t,hasResolvedPages:o,blockList:a,pages:n,parentPageID:i}){if(!o)return(0,vt.jsx)("div",{...e,children:(0,vt.jsx)("div",{className:"wp-block-page-list__loading-indicator-container",children:(0,vt.jsx)(ra.Spinner,{className:"wp-block-page-list__loading-indicator"})})});if(n===null)return(0,vt.jsx)("div",{...e,children:(0,vt.jsx)(ra.Notice,{status:"warning",isDismissible:!1,children:(0,oa.__)("Page List: Cannot retrieve Pages.")})});if(n.length===0)return(0,vt.jsx)("div",{...e,children:(0,vt.jsx)(ra.Notice,{status:"info",isDismissible:!1,children:(0,oa.__)("Page List: Cannot retrieve Pages.")})});if(a.length===0){let l=n.find(s=>s.id===i);return l?.title?.rendered?(0,vt.jsx)("div",{...e,children:(0,vt.jsx)(aa.Warning,{children:(0,oa.sprintf)((0,oa.__)('Page List: "%s" page has no children.'),l.title.rendered)})}):(0,vt.jsx)("div",{...e,children:(0,vt.jsx)(ra.Notice,{status:"warning",isDismissible:!1,children:(0,oa.__)("Page List: Cannot retrieve Pages.")})})}if(n.length>0)return(0,vt.jsx)("ul",{...t})}function Xq({context:e,clientId:t,attributes:o,setAttributes:a}){let{parentPageID:n}=o,[i,l]=(0,_l.useState)(!1),s=(0,_l.useCallback)(()=>l(!0),[]),c=()=>l(!1),u=G(),{records:m,hasResolved:p}=(0,Yq.useEntityRecords)("postType","page",{per_page:Zq,_fields:["id","link","menu_order","parent","title","type"],orderby:"menu_order",order:"asc"}),d="showSubmenuIcon"in e&&m?.length>0&&m?.length<=Zq,f=(0,_l.useMemo)(()=>m===null?new Map:m.sort((R,z)=>R.menu_order===z.menu_order?R.title.rendered.localeCompare(z.title.rendered):R.menu_order-z.menu_order).reduce((R,z)=>{let{parent:O}=z;return R.has(O)?R.get(O).push(z):R.set(O,[z]),R},new Map),[m]),g=(0,aa.useBlockProps)({className:w("wp-block-page-list",{"has-text-color":!!e.textColor,[(0,aa.getColorClassName)("color",e.textColor)]:!!e.textColor,"has-background":!!e.backgroundColor,[(0,aa.getColorClassName)("background-color",e.backgroundColor)]:!!e.backgroundColor}),style:{...e.style?.color}}),b=(0,_l.useMemo)(function L(R=0,z=0){let O=f.get(R);return O?.length?O.reduce((V,I)=>{let F=f.has(I.id),W={value:I.id,label:"\u2014 ".repeat(z)+I.title.rendered,rawName:I.title.rendered};return V.push(W),F&&V.push(...L(I.id,z+1)),V},[]):[]},[f]),y=(0,_l.useMemo)(function L(R=n){let z=f.get(R);return z?.length?z.reduce((O,V)=>{let I=f.has(V.id),F={id:V.id,label:V.title?.rendered?.trim()!==""?V.title?.rendered:(0,oa.__)("(no title)"),title:V.title?.rendered?.trim()!==""?V.title?.rendered:(0,oa.__)("(no title)"),link:V.url,hasChildren:I},W=null,j=L(V.id);return W=(0,Qq.createBlock)("core/page-list-item",F,j),O.push(W),O},[]):[]},[f,n]),{isNested:v,hasSelectedChild:_,parentClientId:x,hasDraggedChild:k,isChildOfNavigation:C}=(0,r4.useSelect)(L=>{let{getBlockParentsByBlockName:R,hasSelectedInnerBlock:z,hasDraggedInnerBlock:O}=L(aa.store),V=R(t,"core/navigation-submenu",!0),I=R(t,"core/navigation",!0);return{isNested:V.length>0,isChildOfNavigation:I.length>0,hasSelectedChild:z(t,!0),hasDraggedChild:O(t,!0),parentClientId:I[0]}},[t]),T=qq({clientId:t,pages:m,parentClientId:x,parentPageID:n}),N=(0,aa.useInnerBlocksProps)(g,{renderAppender:!1,__unstableDisableDropZone:!0,templateLock:C?!1:"all",onInput:Kq,onChange:Kq,value:y}),{selectBlock:P}=(0,r4.useDispatch)(aa.store);return(0,_l.useEffect)(()=>{(_||k)&&(s(),P(x))},[_,k,x,P,s]),(0,_l.useEffect)(()=>{a({isNested:v})},[v,a]),(0,vt.jsxs)(vt.Fragment,{children:[(b.length>0||d)&&(0,vt.jsx)(aa.InspectorControls,{children:(0,vt.jsxs)(ra.__experimentalToolsPanel,{label:(0,oa.__)("Settings"),resetAll:()=>{a({parentPageID:0})},dropdownMenuProps:u,children:[b.length>0&&(0,vt.jsx)(ra.__experimentalToolsPanelItem,{label:(0,oa.__)("Parent Page"),hasValue:()=>n!==0,onDeselect:()=>a({parentPageID:0}),isShownByDefault:!0,children:(0,vt.jsx)(ra.ComboboxControl,{__next40pxDefaultSize:!0,className:"editor-page-attributes__parent",label:(0,oa.__)("Parent"),value:n,options:b,onChange:L=>a({parentPageID:L??0}),help:(0,oa.__)("Choose a page to show only its subpages.")})}),d&&(0,vt.jsxs)("div",{style:{gridColumn:"1 / -1"},children:[(0,vt.jsx)("p",{children:aN}),(0,vt.jsx)(ra.Button,{__next40pxDefaultSize:!0,variant:"primary",accessibleWhenDisabled:!0,disabled:!p,onClick:T,children:(0,oa.__)("Edit")})]})]})}),d&&(0,vt.jsxs)(vt.Fragment,{children:[(0,vt.jsx)(aa.BlockControls,{group:"other",children:(0,vt.jsx)(ra.ToolbarButton,{title:(0,oa.__)("Edit"),onClick:s,children:(0,oa.__)("Edit")})}),i&&(0,vt.jsx)(o4,{onClick:T,onClose:c,disabled:!p})]}),(0,vt.jsx)(Fge,{blockProps:g,innerBlocksProps:N,hasResolvedPages:p,blockList:y,pages:m,parentPageID:n})]})}var{name:Jq}=t4,eZ={icon:F7,example:{},edit:Xq},Hge=()=>D({name:Jq,metadata:t4,settings:eZ});var mN={};$(mN,{init:()=>Uge,metadata:()=>a4,name:()=>rZ,settings:()=>aZ});var a4={$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"],supports:{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 i4=r(S()),tZ=r(A()),sN=r(Y()),cN=r(H()),uN=r(oc());var n4=r(M()),iN=r(h()),lN=()=>(0,iN.jsx)(n4.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,iN.jsx)(n4.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})});var Lr=r(h());function Oge(){return(0,tZ.useSelect)(e=>{if(!e(sN.store).canUser("read",{kind:"root",name:"site"}))return;let o=e(sN.store).getEntityRecord("root","site");return o?.show_on_front==="page"&&o?.page_on_front},[])}function oZ({context:e,attributes:t}){let{id:o,label:a,link:n,hasChildren:i,title:l}=t,s="showSubmenuIcon"in e,c=Oge(),u=_p(e,!0),m=J5(u),p=(0,i4.useBlockProps)(m,{className:"wp-block-pages-list__item"}),d=(0,i4.useInnerBlocksProps)(p);return(0,Lr.jsxs)("li",{className:w("wp-block-pages-list__item",{"has-child":i,"wp-block-navigation-item":s,"open-on-click":e.openSubmenusOnClick,"open-on-hover-click":!e.openSubmenusOnClick&&e.showSubmenuIcon,"menu-item-home":o===c}),children:[i&&e.openSubmenusOnClick?(0,Lr.jsxs)(Lr.Fragment,{children:[(0,Lr.jsx)("button",{type:"button",className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle","aria-expanded":"false",children:(0,Lr.jsx)(cN.RawHTML,{children:(0,uN.safeHTML)(a)})}),(0,Lr.jsx)("span",{className:"wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon",children:(0,Lr.jsx)(lN,{})})]}):(0,Lr.jsx)("a",{className:w("wp-block-pages-list__item__link",{"wp-block-navigation-item__content":s}),href:n,children:(0,Lr.jsx)(cN.RawHTML,{children:(0,uN.safeHTML)(l)})}),i&&(0,Lr.jsxs)(Lr.Fragment,{children:[!e.openSubmenusOnClick&&e.showSubmenuIcon&&(0,Lr.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,Lr.jsx)(lN,{})}),(0,Lr.jsx)("ul",{...d})]})]},o)}var{name:rZ}=a4,aZ={__experimentalLabel:({label:e})=>e,icon:$s,example:{},edit:oZ},Uge=()=>D({name:rZ,metadata:a4,settings:aZ});var bN={};$(bN,{init:()=>Yge,metadata:()=>c4,name:()=>f4,settings:()=>d4});var p4=r(B());var kZ=r(U());var nZ=r(H()),Qo=r(S()),pN=r(B()),bs=r(h()),Kf={className:!1},dN={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"}},l4=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:o,customBackgroundColor:a,customFontSize:n,...i}=e;return{...i,style:t}},Qf=e=>{let{align:t,...o}=e;return t?{...o,style:{...e.style,typography:{...e.style?.typography,textAlign:t}}}:e},{style:sVe,...P1}=dN,Gge=[{supports:{className:!1,typography:{fontSize:!0}},attributes:dN,isEligible(e){return!!e.align||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save({attributes:e}){let{align:t,content:o,dropCap:a,direction:n}=e,i=w({"has-drop-cap":t===((0,pN.isRTL)()?"left":"right")||t==="center"?!1:a,[`has-text-align-$t}`]:t});return(0,bs.jsx)("p",{...Qo.useBlockProps.save({className:i,dir:n}),children:(0,bs.jsx)(Qo.RichText.Content,{value:o})})},migrate:Qf},{supports:Kf,attributes:{...P1,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:Qf,save({attributes:e}){let{align:t,content:o,dropCap:a,direction:n}=e,i=w({"has-drop-cap":t===((0,pN.isRTL)()?"left":"right")||t==="center"?!1:a,[`has-text-align-$t}`]:t});return(0,bs.jsx)("p",{...Qo.useBlockProps.save({className:i,dir:n}),children:(0,bs.jsx)(Qo.RichText.Content,{value:o})})}},{supports:Kf,attributes:{...P1,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate(e){return l4(Qf(e))},save({attributes:e}){let{align:t,content:o,dropCap:a,backgroundColor:n,textColor:i,customBackgroundColor:l,customTextColor:s,fontSize:c,customFontSize:u,direction:m}=e,p=(0,Qo.getColorClassName)("color",i),d=(0,Qo.getColorClassName)("background-color",n),f=(0,Qo.getFontSizeClass)(c),g=w({"has-text-color":i||s,"has-background":n||l,"has-drop-cap":a,[`has-text-align-$t}`]:t,[f]:f,[p]:p,[d]:d}),b={backgroundColor:d?void 0:l,color:p?void 0:s,fontSize:f?void 0:u};return(0,bs.jsx)(Qo.RichText.Content,{tagName:"p",style:b,className:g||void 0,value:o,dir:m})}},{supports:Kf,attributes:{...P1,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate(e){return l4(Qf(e))},save({attributes:e}){let{align:t,content:o,dropCap:a,backgroundColor:n,textColor:i,customBackgroundColor:l,customTextColor:s,fontSize:c,customFontSize:u,direction:m}=e,p=(0,Qo.getColorClassName)("color",i),d=(0,Qo.getColorClassName)("background-color",n),f=(0,Qo.getFontSizeClass)(c),g=w({"has-text-color":i||s,"has-background":n||l,"has-drop-cap":a,[f]:f,[p]:p,[d]:d}),b={backgroundColor:d?void 0:l,color:p?void 0:s,fontSize:f?void 0:u,textAlign:t};return(0,bs.jsx)(Qo.RichText.Content,{tagName:"p",style:b,className:g||void 0,value:o,dir:m})}},{supports:Kf,attributes:{...P1,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"},width:{type:"string"}},migrate(e){return l4(Qf(e))},save({attributes:e}){let{width:t,align:o,content:a,dropCap:n,backgroundColor:i,textColor:l,customBackgroundColor:s,customTextColor:c,fontSize:u,customFontSize:m}=e,p=(0,Qo.getColorClassName)("color",l),d=(0,Qo.getColorClassName)("background-color",i),f=u&&`is-$u}-text`,g=w({[`align$t}`]:t,"has-background":i||s,"has-drop-cap":n,[f]:f,[p]:p,[d]:d}),b={backgroundColor:d?void 0:s,color:p?void 0:c,fontSize:f?void 0:m,textAlign:o};return(0,bs.jsx)(Qo.RichText.Content,{tagName:"p",style:b,className:g||void 0,value:a})}},{supports:Kf,attributes:{...P1,fontSize:{type:"number"}},save({attributes:e}){let{width:t,align:o,content:a,dropCap:n,backgroundColor:i,textColor:l,fontSize:s}=e,c=w({[`align$t}`]:t,"has-background":i,"has-drop-cap":n});return(0,bs.jsx)("p",{style:{backgroundColor:i,color:l,fontSize:s,textAlign:o},className:c||void 0,children:a})},migrate(e){return l4(Qf({...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:Kf,attributes:{...dN,content:{type:"string",source:"html",default:""}},save({attributes:e}){return(0,bs.jsx)(nZ.RawHTML,{children:e.content})},migrate:e=>e}],iZ=Gge;var fn=r(B()),Jf=r(M()),gn=r(S()),hZ=r(U());var lZ=r(H()),sZ=r(we()),cZ=r(Wi()),Yf=r(A()),fN=r(S()),Xf=r(U());function uZ(e){let{batch:t}=(0,Yf.useRegistry)(),{moveBlocksToPosition:o,replaceInnerBlocks:a,duplicateBlocks:n,insertBlock:i}=(0,Yf.useDispatch)(fN.store),{getBlockRootClientId:l,getBlockIndex:s,getBlockOrder:c,getBlockName:u,getBlock:m,getNextBlockClientId:p,canInsertBlockType:d}=(0,Yf.useSelect)(fN.store),f=(0,lZ.useRef)(e);return f.current=e,(0,sZ.useRefEffect)(g=>{function b(y){if(y.defaultPrevented||y.keyCode!==cZ.ENTER)return;let{content:v,clientId:_}=f.current;if(v.length)return;let x=l(_);if(!(0,Xf.hasBlockSupport)(u(x),"__experimentalOnEnter",!1))return;let k=c(x),C=k.indexOf(_);if(C===k.length-1){let P=x;for(;!d(u(_),l(P));)P=l(P);typeof P=="string"&&(y.preventDefault(),o([_],x,l(P),s(P)+1));return}let T=(0,Xf.getDefaultBlockName)();if(!d(T,l(x)))return;y.preventDefault();let N=m(x);t(()=>{n([x]);let P=s(x);a(x,N.innerBlocks.slice(0,C)),a(p(x),N.innerBlocks.slice(C+1)),i((0,Xf.createBlock)(T),P+1,l(x),!0)})}return g.addEventListener("keydown",b),()=>{g.removeEventListener("keydown",b)}},[])}var mZ=r(we()),s4=r(H()),pZ=r(Id()),dZ=r(A()),fZ=r(S());function gZ(e,t,o){let{__unstableMarkNextChangeAsNotPersistent:a}=(0,dZ.useDispatch)(fZ.store),n=(0,mZ.useEvent)(()=>{(0,pZ.default)("align attribute in paragraph block",{alternative:"style.typography.textAlign",since:"7.0"}),a(),o({style:{...t,typography:{...t?.typography,textAlign:e}}})}),i=(0,s4.useRef)();(0,s4.useEffect)(()=>{e==="full"||e==="wide"||e===i.current||(i.current=e,n())},[e,n])}var ri=r(h());function $ge({direction:e,setDirection:t}){return(0,fn.isRTL)()&&(0,ri.jsx)(Jf.ToolbarButton,{icon:z8,title:(0,fn._x)("Left to right","editor button"),isActive:e==="ltr",onClick:()=>{t(e==="ltr"?void 0:"ltr")}})}function gN(e){return e===((0,fn.isRTL)()?"left":"right")||e==="center"}function Wge({clientId:e,attributes:t,setAttributes:o,name:a}){let[n]=(0,gn.useSettings)("typography.dropCap");if(!n)return null;let{style:i,dropCap:l}=t,s=i?.typography?.textAlign,c;gN(s)?c=(0,fn.__)("Not available for aligned text."):l?c=(0,fn.__)("Showing large initial letter."):c=(0,fn.__)("Show a large initial letter.");let u=(0,hZ.getBlockSupport)(a,"typography.defaultControls.dropCap",!1);return(0,ri.jsx)(gn.InspectorControls,{group:"typography",children:(0,ri.jsx)(Jf.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,fn.__)("Drop cap"),isShownByDefault:u,onDeselect:()=>o({dropCap:!1}),resetAllFilter:()=>({dropCap:!1}),panelId:e,children:(0,ri.jsx)(Jf.ToggleControl,{label:(0,fn.__)("Drop cap"),checked:!!l,onChange:()=>o({dropCap:!l}),help:c,disabled:gN(s)})})})}function qge({attributes:e,mergeBlocks:t,onReplace:o,onRemove:a,setAttributes:n,clientId:i,isSelected:l,name:s}){let{content:c,direction:u,dropCap:m,placeholder:p,style:d}=e,f=d?.typography?.textAlign;gZ(e.align,d,n);let g=(0,gn.useBlockProps)({ref:uZ({clientId:i,content:c}),className:w({"has-drop-cap":gN(f)?!1:m}),style:{direction:u}}),b=(0,gn.useBlockEditingMode)();return(0,ri.jsxs)(ri.Fragment,{children:[b==="default"&&(0,ri.jsx)(gn.BlockControls,{group:"block",children:(0,ri.jsx)($ge,{direction:u,setDirection:y=>n({direction:y})})}),l&&(0,ri.jsx)(Wge,{name:s,clientId:i,attributes:e,setAttributes:n}),(0,ri.jsx)(gn.RichText,{identifier:"content",tagName:"p",...g,value:c,onChange:y=>n({content:y}),onMerge:t,onReplace:o,onRemove:a,"aria-label":gn.RichText.isEmpty(c)?(0,fn.__)("Empty block; start writing or type forward slash to choose a block"):(0,fn.__)("Block: Paragraph"),"data-empty":gn.RichText.isEmpty(c),placeholder:p||(0,fn.__)("Type / to choose a block"),"data-custom-placeholder":p?!0:void 0,__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0})]})}var vZ=qge;var hN="core/paragraph";var c4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:hN,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,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalWritingMode:!0,fitText:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:"p",__unstablePasteTextInline:!0,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-paragraph-editor",style:"wp-block-paragraph"};var u4=r(S()),yZ=r(B()),vN=r(h());function xZ({attributes:e}){let{content:t,dropCap:o,direction:a,style:n}=e,i=n?.typography?.textAlign,l=w({"has-drop-cap":i===((0,yZ.isRTL)()?"left":"right")||i==="center"?!1:o});return(0,vN.jsx)("p",{...u4.useBlockProps.save({className:l,dir:a}),children:(0,vN.jsx)(u4.RichText.Content,{value:t})})}var m4=r(U());var Zge={from:[{type:"raw",priority:20,selector:"p",schema:({phrasingContentSchema:e,isPaste:t})=>({p:{children:e,attributes:t?[]:["style","id"]}}),transform(e){let t=(0,m4.getBlockAttributes)(hN,e.outerHTML),{textAlign:o}=e.style||{};return(o==="left"||o==="center"||o==="right")&&(t.style={...t.style,typography:{...t.style?.typography,textAlign:o}}),(0,m4.createBlock)(hN,t)}}]},_Z=Zge;var{fieldsKey:Kge,formKey:Qge}=Q(kZ.privateApis),{name:f4}=c4,d4={icon:j7,example:{attributes:{content:(0,p4.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.")}},__experimentalLabel(e,{context:t}){let o=e?.metadata?.name;if(t==="list-view"&&o)return o;if(t==="accessibility"){if(o)return o;let{content:a}=e;return!a||a.length===0?(0,p4.__)("Empty"):a}},transforms:_Z,deprecated:iZ,merge(e,t){return{content:(e.content||"")+(t.content||"")}},edit:vZ,save:xZ};window.__experimentalContentOnlyInspectorFields&&(d4[Kge]=[{id:"content",label:(0,p4.__)("Content"),type:"richtext"}],d4[Qge]={fields:["content"]});var Yge=()=>D({name:f4,metadata:c4,settings:d4});var xN={};$(xN,{init:()=>ohe,metadata:()=>g4,name:()=>TZ,settings:()=>BZ});var SZ=r(B());var g4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-author",title:"Author",category:"theme",description:"Display post author details such as name, avatar, and bio.",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:{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 kl=r(S()),Mr=r(M()),wZ=r(we()),h4=r(Y()),N1=r(A()),v4=r(H()),yN=r(jo()),To=r(B());var ft=r(h()),Jge={who:"authors",per_page:100,_fields:"id,name",context:"view"};function ehe({value:e,onChange:t}){let[o,a]=(0,v4.useState)(""),{authors:n,isLoading:i}=(0,N1.useSelect)(s=>{let{getUsers:c,isResolving:u}=s(h4.store),m={...Jge};return o&&(m.search=o,m.search_columns=["name"]),{authors:c(m),isLoading:u("getUsers",[m])}},[o]),l=(0,v4.useMemo)(()=>{let s=(n??[]).map(m=>({value:m.id,label:(0,yN.decodeEntities)(m.name)})),c=s.findIndex(m=>e?.id===m.value),u=[];return c<0&&e?u=[{value:e.id,label:(0,yN.decodeEntities)(e.name)}]:c<0&&!e&&(u=[{value:0,label:(0,To.__)("(No author)")}]),[...u,...s]},[n,e]);return(0,ft.jsx)(Mr.ComboboxControl,{__next40pxDefaultSize:!0,label:(0,To.__)("Author"),options:l,value:e?.id,onFilterValueChange:(0,wZ.debounce)(a,300),onChange:t,allowReset:!1,isLoading:i})}function the({isSelected:e,context:{postType:t,postId:o,queryId:a},attributes:n,setAttributes:i}){let l=Number.isFinite(a),s=G(),c=mh(),{authorDetails:u,canAssignAuthor:m,supportsAuthor:p}=(0,N1.useSelect)(L=>{let{getEditedEntityRecord:R,getUser:z,getPostType:O}=L(h4.store),V=R("postType",t,o),I=V?.author;return{authorDetails:I?z(I,{context:"view"}):null,supportsAuthor:O(t)?.supports?.author??!1,canAssignAuthor:!!V?._links?.["wp:action-assign-author"]}},[t,o]),{editEntityRecord:d}=(0,N1.useDispatch)(h4.store),{textAlign:f,showAvatar:g,showBio:b,byline:y,isLink:v,linkTarget:_,avatarSize:x}=n,k=[],C=u?.name||(0,To.__)("Post Author");u?.avatar_urls&&Object.keys(u.avatar_urls).forEach(L=>{k.push({value:L,label:`$L} x $L}`})});let T=(0,kl.useBlockProps)({className:w({[`has-text-align-$f}`]:f})}),N=L=>{d("postType",t,o,{author:L})},P=!!o&&!l&&m;return!p&&t!==void 0?(0,ft.jsx)("div",{...T,children:(0,To.sprintf)((0,To.__)("This post type (%s) does not support the author."),t)}):(0,ft.jsxs)(ft.Fragment,{children:[(0,ft.jsx)(kl.InspectorControls,{children:(0,ft.jsxs)(Mr.__experimentalToolsPanel,{label:(0,To.__)("Settings"),resetAll:()=>{i({avatarSize:48,showAvatar:!0,isLink:!1,linkTarget:"_self"})},dropdownMenuProps:s,children:[P&&(0,ft.jsx)("div",{style:{gridColumn:"1 / -1"},children:(0,ft.jsx)(ehe,{value:u,onChange:N})}),(0,ft.jsx)(Mr.__experimentalToolsPanelItem,{label:(0,To.__)("Show avatar"),isShownByDefault:!0,hasValue:()=>!g,onDeselect:()=>i({showAvatar:!0}),children:(0,ft.jsx)(Mr.ToggleControl,{label:(0,To.__)("Show avatar"),checked:g,onChange:()=>i({showAvatar:!g})})}),g&&(0,ft.jsx)(Mr.__experimentalToolsPanelItem,{label:(0,To.__)("Avatar size"),isShownByDefault:!0,hasValue:()=>x!==48,onDeselect:()=>i({avatarSize:48}),children:(0,ft.jsx)(Mr.SelectControl,{__next40pxDefaultSize:!0,label:(0,To.__)("Avatar size"),value:x,options:k,onChange:L=>{i({avatarSize:Number(L)})}})}),(0,ft.jsx)(Mr.__experimentalToolsPanelItem,{label:(0,To.__)("Show bio"),isShownByDefault:!0,hasValue:()=>!!b,onDeselect:()=>i({showBio:void 0}),children:(0,ft.jsx)(Mr.ToggleControl,{label:(0,To.__)("Show bio"),checked:!!b,onChange:()=>i({showBio:!b})})}),(0,ft.jsx)(Mr.__experimentalToolsPanelItem,{label:(0,To.__)("Link author name to author page"),isShownByDefault:!0,hasValue:()=>!!v,onDeselect:()=>i({isLink:!1}),children:(0,ft.jsx)(Mr.ToggleControl,{label:(0,To.__)("Link author name to author page"),checked:v,onChange:()=>i({isLink:!v})})}),v&&(0,ft.jsx)(Mr.__experimentalToolsPanelItem,{label:(0,To.__)("Link target"),isShownByDefault:!0,hasValue:()=>_!=="_self",onDeselect:()=>i({linkTarget:"_self"}),children:(0,ft.jsx)(Mr.ToggleControl,{label:(0,To.__)("Open in new tab"),onChange:L=>i({linkTarget:L?"_blank":"_self"}),checked:_==="_blank"})})]})}),(0,ft.jsx)(kl.BlockControls,{group:"block",children:(0,ft.jsx)(kl.AlignmentControl,{value:f,onChange:L=>{i({textAlign:L})}})}),(0,ft.jsxs)("div",{...T,children:[g&&(0,ft.jsx)("div",{className:"wp-block-post-author__avatar",children:(0,ft.jsx)("img",{width:x,src:u?.avatar_urls?.[x]||c,alt:u?.name||(0,To.__)("Default Avatar")})}),(0,ft.jsxs)("div",{className:"wp-block-post-author__content",children:[(!kl.RichText.isEmpty(y)||e)&&(0,ft.jsx)(kl.RichText,{identifier:"byline",className:"wp-block-post-author__byline","aria-label":(0,To.__)("Post author byline text"),placeholder:(0,To.__)("Write byline\u2026"),value:y,onChange:L=>i({byline:L})}),(0,ft.jsx)("p",{className:"wp-block-post-author__name",children:v?(0,ft.jsx)("a",{href:"#post-author-pseudo-link",onClick:L=>L.preventDefault(),children:C}):C}),b&&(0,ft.jsx)("p",{className:"wp-block-post-author__bio",dangerouslySetInnerHTML:{__html:u?.description}})]})]})]})}var CZ=the;var{name:TZ}=g4,BZ={icon:Bm,example:{viewportWidth:350,attributes:{showBio:!0,byline:(0,SZ.__)("Posted by")}},edit:CZ},ohe=()=>D({name:TZ,metadata:g4,settings:BZ});var kN={};$(kN,{init:()=>ihe,metadata:()=>b4,name:()=>EZ,settings:()=>LZ});var b4={$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:{textAlign:{type:"string"},isLink:{type:"boolean",default:!1,role:"content"},linkTarget:{type:"string",default:"_self",role:"content"}},usesContext:["postType","postId"],example:{viewportWidth:350},supports:{html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!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}}},style:"wp-block-post-author-name"};var Mu=r(S()),PZ=r(A()),ys=r(B()),NZ=r(Y()),Lu=r(M());var Ea=r(h());function ahe({context:{postType:e,postId:t},attributes:{textAlign:o,isLink:a,linkTarget:n},setAttributes:i}){let{authorName:l,supportsAuthor:s}=(0,PZ.useSelect)(d=>{let{getEditedEntityRecord:f,getUser:g,getPostType:b}=d(NZ.store),y=f("postType",e,t)?.author;return{authorName:y?g(y):null,supportsAuthor:b(e)?.supports?.author??!1}},[e,t]),c=(0,Mu.useBlockProps)({className:w({[`has-text-align-$o}`]:o})}),u=l?.name||(0,ys.__)("Author Name"),m=a?(0,Ea.jsx)("a",{href:"#author-pseudo-link",onClick:d=>d.preventDefault(),className:"wp-block-post-author-name__link",children:u}):u,p=G();return(0,Ea.jsxs)(Ea.Fragment,{children:[(0,Ea.jsx)(Mu.BlockControls,{group:"block",children:(0,Ea.jsx)(Mu.AlignmentControl,{value:o,onChange:d=>{i({textAlign:d})}})}),(0,Ea.jsx)(Mu.InspectorControls,{children:(0,Ea.jsxs)(Lu.__experimentalToolsPanel,{label:(0,ys.__)("Settings"),resetAll:()=>{i({isLink:!1,linkTarget:"_self"})},dropdownMenuProps:p,children:[(0,Ea.jsx)(Lu.__experimentalToolsPanelItem,{label:(0,ys.__)("Link to author archive"),isShownByDefault:!0,hasValue:()=>a,onDeselect:()=>i({isLink:!1}),children:(0,Ea.jsx)(Lu.ToggleControl,{label:(0,ys.__)("Link to author archive"),onChange:()=>i({isLink:!a}),checked:a})}),a&&(0,Ea.jsx)(Lu.__experimentalToolsPanelItem,{label:(0,ys.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>n!=="_self",onDeselect:()=>i({linkTarget:"_self"}),children:(0,Ea.jsx)(Lu.ToggleControl,{label:(0,ys.__)("Open in new tab"),onChange:d=>i({linkTarget:d?"_blank":"_self"}),checked:n==="_blank"})})]})}),(0,Ea.jsx)("div",{...c,children:!s&&e!==void 0?(0,ys.sprintf)((0,ys.__)("This post type (%s) does not support the author."),e):m})]})}var IZ=ahe;var _N=r(U()),nhe={from:[{type:"block",blocks:["core/post-author"],transform:({textAlign:e})=>(0,_N.createBlock)("core/post-author-name",{textAlign:e})}],to:[{type:"block",blocks:["core/post-author"],transform:({textAlign:e})=>(0,_N.createBlock)("core/post-author",{textAlign:e})}]},DZ=nhe;var{name:EZ}=b4,LZ={icon:Bm,transforms:DZ,edit:IZ},ihe=()=>D({name:EZ,metadata:b4,settings:LZ});var wN={};$(wN,{init:()=>che,metadata:()=>y4,name:()=>VZ,settings:()=>FZ});var y4={$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",attributes:{textAlign:{type:"string"}},usesContext:["postType","postId"],example:{viewportWidth:350},supports:{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}}},style:"wp-block-post-author-biography"};var eg=r(S()),MZ=r(A()),RZ=r(B()),zZ=r(Y()),Ru=r(h());function she({context:{postType:e,postId:t},attributes:{textAlign:o},setAttributes:a}){let{authorDetails:n}=(0,MZ.useSelect)(s=>{let{getEditedEntityRecord:c,getUser:u}=s(zZ.store),m=c("postType",e,t)?.author;return{authorDetails:m?u(m):null}},[e,t]),i=(0,eg.useBlockProps)({className:w({[`has-text-align-$o}`]:o})}),l=n?.description||(0,RZ.__)("Author Biography");return(0,Ru.jsxs)(Ru.Fragment,{children:[(0,Ru.jsx)(eg.BlockControls,{group:"block",children:(0,Ru.jsx)(eg.AlignmentControl,{value:o,onChange:s=>{a({textAlign:s})}})}),(0,Ru.jsx)("div",{...i,dangerouslySetInnerHTML:{__html:l}})]})}var AZ=she;var{name:VZ}=y4,FZ={icon:Bm,edit:AZ},che=()=>D({name:VZ,metadata:y4,settings:FZ});var CN={};$(CN,{init:()=>phe,metadata:()=>x4,name:()=>GZ,settings:()=>$Z});var x4={$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 I1=r(B()),tg=r(M()),HZ=r(H());var _4=r(S()),Dp=r(h()),mhe=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]];function jZ({attributes:{commentId:e},setAttributes:t}){let[o,a]=(0,HZ.useState)(e),n=(0,_4.useBlockProps)(),i=(0,_4.useInnerBlocksProps)(n,{template:mhe});return e?(0,Dp.jsx)("div",{...i}):(0,Dp.jsx)("div",{...n,children:(0,Dp.jsxs)(tg.Placeholder,{icon:z6,label:(0,I1._x)("Post Comment","block title"),instructions:(0,I1.__)("To show a comment, input the comment ID."),children:[(0,Dp.jsx)(tg.TextControl,{__next40pxDefaultSize:!0,value:e,onChange:l=>a(parseInt(l))}),(0,Dp.jsx)(tg.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{t({commentId:o})},children:(0,I1.__)("Save")})]})})}var k4=r(S()),OZ=r(h());function UZ(){let e=k4.useBlockProps.save(),t=k4.useInnerBlocksProps.save(e);return(0,OZ.jsx)("div",{...t})}var{name:GZ}=x4,$Z={icon:_h,edit:jZ,save:UZ},phe=()=>D({name:GZ,metadata:x4,settings:$Z});var SN={};$(SN,{init:()=>ghe,metadata:()=>w4,name:()=>YZ,settings:()=>XZ});var w4={$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",attributes:{textAlign:{type:"string"}},usesContext:["postId"],example:{viewportWidth:350},supports:{html:!1,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}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},interactivity:{clientNavigation:!0}},style:"wp-block-post-comments-count"};var og=r(S()),C4=r(H()),WZ=r(I0()),qZ=r(ko()),zu=r(h());function ZZ({attributes:e,context:t,setAttributes:o}){let{textAlign:a}=e,{postId:n}=t,[i,l]=(0,C4.useState)(),s=(0,og.useBlockProps)({className:w({[`has-text-align-$a}`]:a})});(0,C4.useEffect)(()=>{if(!n)return;let m=n;(0,WZ.default)({path:(0,qZ.addQueryArgs)("/wp/v2/comments",{post:n}),parse:!1}).then(p=>{m===n&&l(p.headers.get("X-WP-Total"))})},[n]);let c=n&&i!==void 0,u={...s.style,textDecoration:c?s.style?.textDecoration:void 0};return(0,zu.jsxs)(zu.Fragment,{children:[(0,zu.jsx)(og.BlockControls,{group:"block",children:(0,zu.jsx)(og.AlignmentControl,{value:a,onChange:m=>{o({textAlign:m})}})}),(0,zu.jsx)("div",{...s,style:u,children:c?i:"0"})]})}var KZ=r(U()),fhe={to:[{type:"block",blocks:["core/post-comments-link"],transform:({textAlign:e})=>(0,KZ.createBlock)("core/post-comments-link",{textAlign:e})}]},QZ=fhe;var{name:YZ}=w4,XZ={icon:jh,edit:ZZ,transforms:QZ},ghe=()=>D({name:YZ,metadata:w4,settings:XZ});var BN={};$(BN,{init:()=>vhe,metadata:()=>S4,name:()=>tK,settings:()=>oK});var S4={$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",attributes:{textAlign:{type:"string"}},usesContext:["postId","postType"],supports:{html:!1,color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!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:{textAlign:"center"}}};var rg=r(S()),JZ=r(M()),eK=r(we()),T4=r(B());var xs=r(h());function TN({attributes:e,context:t,setAttributes:o}){let{textAlign:a}=e,{postId:n,postType:i}=t,l=(0,eK.useInstanceId)(TN),s=(0,T4.sprintf)("comments-form-edit-%d-desc",l),c=(0,rg.useBlockProps)({className:w({[`has-text-align-$a}`]:a}),"aria-describedby":s});return(0,xs.jsxs)(xs.Fragment,{children:[(0,xs.jsx)(rg.BlockControls,{group:"block",children:(0,xs.jsx)(rg.AlignmentControl,{value:a,onChange:u=>{o({textAlign:u})}})}),(0,xs.jsxs)("div",{...c,children:[(0,xs.jsx)(Px,{postId:n,postType:i}),(0,xs.jsx)(JZ.VisuallyHidden,{id:s,children:(0,T4.__)("Comments form disabled in editor.")})]})]})}var{name:tK}=S4,oK={icon:r9,edit:TN},vhe=()=>D({name:tK,metadata:S4,settings:oK});var PN={};$(PN,{init:()=>_he,metadata:()=>B4,name:()=>uK,settings:()=>mK});var B4={$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"],attributes:{textAlign:{type:"string"}},example:{viewportWidth:350},supports:{html:!1,color:{link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-post-comments-link"};var ag=r(S()),P4=r(H()),rK=r(A()),aK=r(I0()),nK=r(ko()),Ep=r(B()),iK=r(Y()),_s=r(h());function yhe({context:e,attributes:t,setAttributes:o}){let{textAlign:a}=t,{postType:n,postId:i}=e,[l,s]=(0,P4.useState)(),c=(0,ag.useBlockProps)({className:w({[`has-text-align-$a}`]:a})});(0,P4.useEffect)(()=>{if(!i)return;let p=i;(0,aK.default)({path:(0,nK.addQueryArgs)("/wp/v2/comments",{post:i}),parse:!1}).then(d=>{p===i&&s(d.headers.get("X-WP-Total"))})},[i]);let u=(0,rK.useSelect)(p=>p(iK.store).getEditedEntityRecord("postType",n,i),[n,i]),m;if(l!==void 0){let p=parseInt(l);p===0?m=(0,Ep.__)("No comments"):m=(0,Ep.sprintf)((0,Ep._n)("%s comment","%s comments",p),p.toLocaleString())}return(0,_s.jsxs)(_s.Fragment,{children:[(0,_s.jsx)(ag.BlockControls,{group:"block",children:(0,_s.jsx)(ag.AlignmentControl,{value:a,onChange:p=>{o({textAlign:p})}})}),(0,_s.jsx)("div",{...c,children:u?.link&&m!==void 0?(0,_s.jsx)("a",{href:u?.link+"#comments",onClick:p=>p.preventDefault(),children:m}):(0,_s.jsx)("a",{href:"#post-comments-link-pseudo-link",onClick:p=>p.preventDefault(),children:(0,Ep.__)("No comments")})})]})}var lK=yhe;var sK=r(U()),xhe={to:[{type:"block",blocks:["core/post-comments-count"],transform:({textAlign:e})=>(0,sK.createBlock)("core/post-comments-count",{textAlign:e})}]},cK=xhe;var{name:uK}=B4,mK={edit:lK,icon:jh,transforms:cK},_he=()=>D({name:uK,metadata:B4,settings:mK});var NN={};$(NN,{init:()=>Ihe,metadata:()=>N4,name:()=>hK,settings:()=>vK});var N4={$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:{align:["wide","full"],html:!1,layout:!0,background:{backgroundImage:!0,backgroundSize:!0,__experimentalDefaultControls:{backgroundImage:!0}},dimensions:{minHeight:!0},spacing:{blockGap:!0,padding:!0,margin:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!1,text:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-post-content",editorStyle:"wp-block-post-content-editor"};var Lp=r(B()),Eo=r(S()),pK=r(U()),ng=r(Y()),dK=r(A()),fK=r(H());var Wt=r(h()),{HTMLElementControl:whe}=Q(Eo.privateApis);function Che({parentLayout:e,layoutClassNames:t,userCanEdit:o,postType:a,postId:n,tagName:i="div"}){let[,,l]=(0,ng.useEntityProp)("postType",a,"content",n),s=(0,Eo.useBlockProps)({className:t}),c=(0,fK.useMemo)(()=>l?.raw?(0,pK.parse)(l.raw):[],[l?.raw]),u=(0,Eo.__experimentalUseBlockPreview)({blocks:c,props:s,layout:e});return o?(0,Wt.jsx)("div",{...u}):l?.protected?(0,Wt.jsx)(i,{...s,children:(0,Wt.jsx)(Eo.Warning,{children:(0,Lp.__)("This content is password protected.")})}):(0,Wt.jsx)(i,{...s,dangerouslySetInnerHTML:{__html:l?.rendered}})}function She({context:e={},tagName:t="div"}){let{postType:o,postId:a}=e,[n,i,l]=(0,ng.useEntityBlockEditor)("postType",o,{id:a}),c=!!(0,dK.useSelect)(p=>p(ng.store).getEntityRecord("postType",o,a),[o,a])?.content?.raw||n?.length,u=[["core/paragraph"]],m=(0,Eo.useInnerBlocksProps)((0,Eo.useBlockProps)({className:"entry-content"}),{value:n,onInput:i,onChange:l,template:c?void 0:u});return(0,Wt.jsx)(t,{...m})}function The(e){let{context:{queryId:t,postType:o,postId:a}={},layoutClassNames:n,tagName:i}=e,l=Y2("postType",o,a);if(l===void 0)return null;let s=Number.isFinite(t);return l&&!s?(0,Wt.jsx)(She,{...e}):(0,Wt.jsx)(Che,{parentLayout:e.parentLayout,layoutClassNames:n,userCanEdit:l,postType:o,postId:a,tagName:i})}function Bhe({layoutClassNames:e}){let t=(0,Eo.useBlockProps)({className:e});return(0,Wt.jsxs)("div",{...t,children:[(0,Wt.jsx)("p",{children:(0,Lp.__)("This is the Content block, it will display all the blocks in any single post or page.")}),(0,Wt.jsx)("p",{children:(0,Lp.__)("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,Wt.jsx)("p",{children:(0,Lp.__)("If there are any Custom Post Types registered at your site, the Content block can display the contents of those entries as well.")})]})}function Phe(){let e=(0,Eo.useBlockProps)();return(0,Wt.jsx)("div",{...e,children:(0,Wt.jsx)(Eo.Warning,{children:(0,Lp.__)("Block cannot be rendered inside itself.")})})}function Nhe({tagName:e,onSelectTagName:t,clientId:o}){return(0,Wt.jsx)(Eo.InspectorControls,{group:"advanced",children:(0,Wt.jsx)(whe,{tagName:e,onChange:t,clientId:o,options:[{label:(0,Lp.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"}]})})}function gK({context:e,attributes:{tagName:t="div"},setAttributes:o,clientId:a,__unstableLayoutClassNames:n,__unstableParentLayout:i}){let{postId:l,postType:s}=e,c=(0,Eo.useHasRecursion)(l);return l&&s&&c?(0,Wt.jsx)(Phe,{}):(0,Wt.jsxs)(Wt.Fragment,{children:[(0,Wt.jsx)(Nhe,{tagName:t,onSelectTagName:m=>{o({tagName:m})},clientId:a}),(0,Wt.jsx)(Eo.RecursionProvider,{uniqueId:l,children:l&&s?(0,Wt.jsx)(The,{context:e,parentLayout:i,layoutClassNames:n}):(0,Wt.jsx)(Bhe,{layoutClassNames:n})})]})}var{name:hK}=N4,vK={icon:l9,edit:gK},Ihe=()=>D({name:hK,metadata:N4,settings:vK});var IN={};$(IN,{init:()=>Ahe,metadata:()=>I4,name:()=>CK,settings:()=>SK});var I4={$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"},textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1,role:"content"}},usesContext:["postId","postType","queryId"],example:{viewportWidth:350},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}}}};var bK=r(Y()),ig=r(H()),Mp=r(Rx()),na=r(S()),ai=r(M()),La=r(B());var yK=r(Wi()),D1=r(A()),xK=r(U());var Lo=r(h());function _K({attributes:e,context:{postType:t,queryId:o},setAttributes:a,name:n}){let{datetime:i,textAlign:l,format:s,isLink:c}=e,u=(0,na.useBlockProps)({className:w({[`has-text-align-$l}`]:l})}),m=G(),[p,d]=(0,ig.useState)(null),f=(0,ig.useMemo)(()=>({anchor:p}),[p]),{__unstableMarkNextChangeAsNotPersistent:g}=(0,D1.useDispatch)(na.store);(0,ig.useEffect)(()=>{i===void 0&&(g(),a({datetime:new Date}))},[i]);let b=Number.isFinite(o),y=(0,Mp.getSettings)(),{postType:v,siteFormat:_=y.formats.date,siteTimeFormat:x=y.formats.time}=(0,D1.useSelect)(N=>{let{getPostType:P,getEntityRecord:L}=N(bK.store),R=L("root","site");return{siteFormat:R?.date_format,siteTimeFormat:R?.time_format,postType:t?P(t):null}},[t]),k=(0,D1.useSelect)(N=>N(xK.store).getActiveBlockVariation(n,e)?.name,[n,e]),C=(0,na.useBlockEditingMode)(),T=(0,Lo.jsx)("time",{dateTime:(0,Mp.dateI18n)("c",i),ref:d,children:s==="human-diff"?(0,Mp.humanTimeDiff)(i):(0,Mp.dateI18n)(s||_,i)});return c&&i&&(T=(0,Lo.jsx)("a",{href:"#post-date-pseudo-link",onClick:N=>N.preventDefault(),children:T})),(0,Lo.jsxs)(Lo.Fragment,{children:[(C==="default"||!b)&&(0,Lo.jsxs)(na.BlockControls,{group:"block",children:[(0,Lo.jsx)(na.AlignmentControl,{value:l,onChange:N=>{a({textAlign:N})}}),k!=="post-date-modified"&&(!b||!k)&&(0,Lo.jsx)(ai.ToolbarGroup,{children:(0,Lo.jsx)(ai.Dropdown,{popoverProps:f,renderContent:({onClose:N})=>(0,Lo.jsx)(na.__experimentalPublishDateTimePicker,{title:k==="post-date"?(0,La.__)("Publish Date"):(0,La.__)("Date"),currentDate:i,onChange:P=>a({datetime:P}),is12Hour:Ehe(x),onClose:N,dateOrder:(0,La._x)("dmy","date order")}),renderToggle:({isOpen:N,onToggle:P})=>{let L=R=>{!N&&R.keyCode===yK.DOWN&&(R.preventDefault(),P())};return(0,Lo.jsx)(ai.ToolbarButton,{"aria-expanded":N,icon:Tm,title:(0,La.__)("Change Date"),onClick:P,onKeyDown:L})}})})]}),(0,Lo.jsx)(na.InspectorControls,{children:(0,Lo.jsxs)(ai.__experimentalToolsPanel,{label:(0,La.__)("Settings"),resetAll:()=>{a({datetime:void 0,format:void 0,isLink:!1})},dropdownMenuProps:m,children:[(0,Lo.jsx)(ai.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,La.__)("Date Format"),onDeselect:()=>a({format:void 0}),isShownByDefault:!0,children:(0,Lo.jsx)(na.__experimentalDateFormatPicker,{format:s,defaultFormat:_,onChange:N=>a({format:N})})}),(0,Lo.jsx)(ai.__experimentalToolsPanelItem,{hasValue:()=>c!==!1,label:v?.labels.singular_name?(0,La.sprintf)((0,La.__)("Link to %s"),v.labels.singular_name.toLowerCase()):(0,La.__)("Link to post"),onDeselect:()=>a({isLink:!1}),isShownByDefault:!0,children:(0,Lo.jsx)(ai.ToggleControl,{label:v?.labels.singular_name?(0,La.sprintf)((0,La.__)("Link to %s"),v.labels.singular_name.toLowerCase()):(0,La.__)("Link to post"),onChange:()=>a({isLink:!c}),checked:c})})]})}),(0,Lo.jsx)("div",{...u,children:T})]})}function Ehe(e){return/(?:^|[^\\])[aAgh]/.test(e)}var Lhe={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,...o}},...a},...n},...i}){return{metadata:{bindings:{datetime:{source:e,args:{field:t,...o}},...a},...n},...i}},isEligible(e){return e?.metadata?.bindings?.datetime?.source==="core/post-data"&&!!e?.metadata?.bindings?.datetime?.args?.key}},Mhe={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:o,...a}){if(t==="date"||t==="modified")return t==="modified"&&(e=w(e,"wp-block-post-date__modified-date")),{...a,className:e,metadata:{...o,bindings:{datetime:{source:"core/post-data",args:{field:t}}}}}},isEligible(e){return!e.datetime&&!e?.metadata?.bindings?.datetime}},Rhe={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:Nt,isEligible({style:e}){return e?.typography?.fontFamily}},kK=[Lhe,Mhe,Rhe];var E1=r(B()),zhe=[{name:"post-date",title:(0,E1.__)("Post Date"),description:(0,E1.__)("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,E1.__)("Modified Date"),description:(0,E1.__)("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"}],wK=zhe;var{name:CK}=I4,SK={icon:Gh,edit:_K,deprecated:kK,variations:wK},Ahe=()=>D({name:CK,metadata:I4,settings:SK});var EN={};$(EN,{init:()=>Hhe,metadata:()=>D4,name:()=>DK,settings:()=>EK});var D4={$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:{textAlign:{type:"string"},moreText:{type:"string",role:"content"},showMoreOnNewLine:{type:"boolean",default:!0},excerptLength:{type:"number",default:55}},usesContext:["postId","postType","queryId"],example:{viewportWidth:350},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}}},editorStyle:"wp-block-post-excerpt-editor",style:"wp-block-post-excerpt"};var E4=r(Y()),BK=r(H()),Rr=r(S()),bc=r(M()),Ma=r(B()),PK=r(A());var Ht=r(h()),TK="\u2026";function NK({attributes:{textAlign:e,moreText:t,showMoreOnNewLine:o,excerptLength:a},setAttributes:n,isSelected:i,context:{postId:l,postType:s,queryId:c}}){let m=(0,Rr.useBlockEditingMode)()==="default",p=Number.isFinite(c),d=Y2("postType",s,l),[f,g,{rendered:b,protected:y}={}]=(0,E4.useEntityProp)("postType",s,"excerpt",l),v=G(),_=(0,PK.useSelect)(V=>s==="page"?!0:!!V(E4.store).getPostType(s)?.supports?.excerpt,[s]),x=d&&!p&&_,k=(0,Rr.useBlockProps)({className:w({[`has-text-align-$e}`]:e})}),C=(0,Ma._x)("words","Word count type. Do not translate!"),T=(0,BK.useMemo)(()=>{if(!b)return"";let V=new window.DOMParser().parseFromString(b,"text/html");return V.body.textContent||V.body.innerText||""},[b]);if(!s||!l)return(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)(Rr.BlockControls,{children:(0,Ht.jsx)(Rr.AlignmentToolbar,{value:e,onChange:V=>n({textAlign:V})})}),(0,Ht.jsx)("div",{...k,children:(0,Ht.jsx)("p",{children:(0,Ma.__)("This block will display the excerpt.")})})]});if(y&&!d)return(0,Ht.jsx)("div",{...k,children:(0,Ht.jsx)(Rr.Warning,{children:(0,Ma.__)("The content is currently protected and does not have the available excerpt.")})});let N=(0,Ht.jsx)(Rr.RichText,{identifier:"moreText",className:"wp-block-post-excerpt__more-link",tagName:"a","aria-label":(0,Ma.__)("\u201CRead more\u201D link text"),placeholder:(0,Ma.__)('Add "read more" link text'),value:t,onChange:V=>n({moreText:V}),withoutInteractiveFormatting:!0}),P=w("wp-block-post-excerpt__excerpt",{"is-inline":!o}),L=(f||T).trim(),R="";if(C==="words")R=L.split(" ",a).join(" ");else if(C==="characters_excluding_spaces"){let V=L.split("",a).join(""),I=V.length-V.replaceAll(" ","").length;R=L.split("",a+I).join("")}else C==="characters_including_spaces"&&(R=L.split("",a).join(""));let z=R!==L,O=x?(0,Ht.jsx)(Rr.RichText,{className:P,"aria-label":(0,Ma.__)("Excerpt text"),value:i?L:(z?R+TK:L)||(0,Ma.__)("No excerpt found"),onChange:g,tagName:"p"}):(0,Ht.jsx)("p",{className:P,children:z?R+TK:L||(0,Ma.__)("No excerpt found")});return(0,Ht.jsxs)(Ht.Fragment,{children:[m&&(0,Ht.jsx)(Rr.BlockControls,{children:(0,Ht.jsx)(Rr.AlignmentToolbar,{value:e,onChange:V=>n({textAlign:V})})}),(0,Ht.jsx)(Rr.InspectorControls,{children:(0,Ht.jsxs)(bc.__experimentalToolsPanel,{label:(0,Ma.__)("Settings"),resetAll:()=>{n({showMoreOnNewLine:!0,excerptLength:55})},dropdownMenuProps:v,children:[(0,Ht.jsx)(bc.__experimentalToolsPanelItem,{hasValue:()=>o!==!0,label:(0,Ma.__)("Show link on new line"),onDeselect:()=>n({showMoreOnNewLine:!0}),isShownByDefault:!0,children:(0,Ht.jsx)(bc.ToggleControl,{label:(0,Ma.__)("Show link on new line"),checked:o,onChange:V=>n({showMoreOnNewLine:V})})}),(0,Ht.jsx)(bc.__experimentalToolsPanelItem,{hasValue:()=>a!==55,label:(0,Ma.__)("Max number of words"),onDeselect:()=>n({excerptLength:55}),isShownByDefault:!0,children:(0,Ht.jsx)(bc.RangeControl,{__next40pxDefaultSize:!0,label:(0,Ma.__)("Max number of words"),value:a,onChange:V=>{n({excerptLength:V})},min:"10",max:"100"})})]})}),(0,Ht.jsxs)("div",{...k,children:[O,!o&&" ",o?(0,Ht.jsx)("p",{className:"wp-block-post-excerpt__more-text",children:N}):N]})]})}var DN=r(U()),Fhe={from:[{type:"block",blocks:["core/post-content"],transform:()=>(0,DN.createBlock)("core/post-excerpt")}],to:[{type:"block",blocks:["core/post-content"],transform:()=>(0,DN.createBlock)("core/post-content")}]},IK=Fhe;var{name:DK}=D4,EK={icon:c9,transforms:IK,edit:NK},Hhe=()=>D({name:DK,metadata:D4,settings:EK});var RN={};$(RN,{init:()=>Khe,metadata:()=>L4,name:()=>$K,settings:()=>WK});var L4={$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:{align:["left","right","center","wide","full"],color:{text:!1,background:!1},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},filter:{duotone:!0},shadow:{__experimentalSkipSerialization:!0},html:!1,spacing:{margin:!0,padding:!0},interactivity:{clientNavigation:!0}},selectors:{border:".wp-block-post-featured-image img, .wp-block-post-featured-image .block-editor-media-placeholder, .wp-block-post-featured-image .wp-block-post-featured-image__overlay",shadow:".wp-block-post-featured-image img, .wp-block-post-featured-image .components-placeholder",filter:{duotone:".wp-block-post-featured-image img, .wp-block-post-featured-image .wp-block-post-featured-image__placeholder, .wp-block-post-featured-image .components-placeholder__illustration, .wp-block-post-featured-image .components-placeholder::before"}},editorStyle:"wp-block-post-featured-image-editor",style:"wp-block-post-featured-image"};var jK=r(No()),L1=r(Y()),M1=r(A()),Yo=r(M()),bo=r(S()),Hu=r(H()),hr=r(B());var OK=r(wo());var ia=r(B()),gr=r(M()),LK=r(S()),fr=r(h()),Ohe=(0,fr.jsxs)(fr.Fragment,{children:[(0,fr.jsx)(gr.__experimentalToggleGroupControlOption,{value:"cover",label:(0,ia._x)("Cover","Scale option for Image dimension control")}),(0,fr.jsx)(gr.__experimentalToggleGroupControlOption,{value:"contain",label:(0,ia._x)("Contain","Scale option for Image dimension control")}),(0,fr.jsx)(gr.__experimentalToggleGroupControlOption,{value:"fill",label:(0,ia._x)("Fill","Scale option for Image dimension control")})]}),LN="cover",Uhe={cover:(0,ia.__)("Image is scaled and cropped to fill the entire space without being distorted."),contain:(0,ia.__)("Image is scaled to fill the space without clipping nor distorting."),fill:(0,ia.__)("Image will be stretched and distorted to completely fill the space.")},Ghe=({clientId:e,attributes:{aspectRatio:t,width:o,height:a,scale:n},setAttributes:i})=>{let[l,s,c,u]=(0,LK.useSettings)("spacing.units","dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),m=(0,gr.__experimentalUseCustomUnits)({availableUnits:l||["px","%","vw","em","rem"]}),p=(v,_)=>{let x=parseFloat(_);isNaN(x)&&_||i({[v]:x<0?"0":_})},d=(0,ia._x)("Scale","Image scaling options"),f=a||t&&t!=="auto",g=c?.map(({name:v,ratio:_})=>({label:v,value:_})),b=s?.map(({name:v,ratio:_})=>({label:v,value:_})),y=[{label:(0,ia._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...u?b:[],...g||[]];return(0,fr.jsxs)(fr.Fragment,{children:[(0,fr.jsx)(gr.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,ia.__)("Aspect ratio"),onDeselect:()=>i({aspectRatio:void 0}),resetAllFilter:()=>({aspectRatio:void 0}),isShownByDefault:!0,panelId:e,children:(0,fr.jsx)(gr.SelectControl,{__next40pxDefaultSize:!0,label:(0,ia.__)("Aspect ratio"),value:t,options:y,onChange:v=>i({aspectRatio:v})})}),(0,fr.jsx)(gr.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!a,label:(0,ia.__)("Height"),onDeselect:()=>i({height:void 0}),resetAllFilter:()=>({height:void 0}),isShownByDefault:!0,panelId:e,children:(0,fr.jsx)(gr.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,ia.__)("Height"),labelPosition:"top",value:a||"",min:0,onChange:v=>p("height",v),units:m})}),(0,fr.jsx)(gr.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!o,label:(0,ia.__)("Width"),onDeselect:()=>i({width:void 0}),resetAllFilter:()=>({width:void 0}),isShownByDefault:!0,panelId:e,children:(0,fr.jsx)(gr.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,ia.__)("Width"),labelPosition:"top",value:o||"",min:0,onChange:v=>p("width",v),units:m})}),f&&(0,fr.jsx)(gr.__experimentalToolsPanelItem,{hasValue:()=>!!n&&n!==LN,label:d,onDeselect:()=>i({scale:LN}),resetAllFilter:()=>({scale:LN}),isShownByDefault:!0,panelId:e,children:(0,fr.jsx)(gr.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:d,value:n,help:Uhe[n],onChange:v=>i({scale:v}),isBlock:!0,children:Ohe})})]})},MK=Ghe;var R4=r(M()),Vu=r(S()),RK=r(we()),M4=r(B()),Au=r(h()),$he=({clientId:e,attributes:t,setAttributes:o,overlayColor:a,setOverlayColor:n})=>{let{dimRatio:i}=t,{gradientValue:l,setGradient:s}=(0,Vu.__experimentalUseGradient)(),c=(0,Vu.__experimentalUseMultipleOriginColorsAndGradients)();return c.hasColorsOrGradients?(0,Au.jsxs)(Au.Fragment,{children:[(0,Au.jsx)(Vu.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:a.color,gradientValue:l,label:(0,M4.__)("Overlay"),onColorChange:n,onGradientChange:s,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0}),clearable:!0}],panelId:e,...c}),(0,Au.jsx)(R4.__experimentalToolsPanelItem,{hasValue:()=>i!==void 0,label:(0,M4.__)("Overlay opacity"),onDeselect:()=>o({dimRatio:0}),resetAllFilter:()=>({dimRatio:0}),isShownByDefault:!0,panelId:e,children:(0,Au.jsx)(R4.RangeControl,{label:(0,M4.__)("Overlay opacity"),value:i,onChange:u=>o({dimRatio:u}),min:0,max:100,step:10,required:!0,__next40pxDefaultSize:!0})})]}):null},zK=(0,RK.compose)([(0,Vu.withColors)({overlayColor:"background-color"})])($he);var Fu=r(S()),VK=r(we());function AK(e){return e===void 0?null:"has-background-dim-"+10*Math.round(e/10)}var FK=r(h()),Whe=({attributes:e,overlayColor:t})=>{let{dimRatio:o}=e,{gradientClass:a,gradientValue:n}=(0,Fu.__experimentalUseGradient)(),i=(0,Fu.__experimentalUseMultipleOriginColorsAndGradients)(),l=(0,Fu.__experimentalUseBorderProps)(e),s={backgroundColor:t.color,backgroundImage:n,...l.style};return!i.hasColorsOrGradients||!o?null:(0,FK.jsx)("span",{"aria-hidden":"true",className:w("wp-block-post-featured-image__overlay",AK(o),{[t.class]:t.class,"has-background-dim":o!==void 0,"has-background-gradient":n,[a]:a},l.className),style:s})},MN=(0,VK.compose)([(0,Fu.withColors)({overlayColor:"background-color"})])(Whe);var Ue=r(h()),HK=["image"],{ResolutionTool:qhe}=Q(bo.privateApis),UK="full";function Zhe({image:e,value:t,onChange:o}){let{imageSizes:a}=(0,M1.useSelect)(i=>{let{getSettings:l}=i(bo.store);return{imageSizes:l().imageSizes}},[]);if(!a?.length)return null;let n=a.filter(({slug:i})=>e?.media_details?.sizes?.[i]?.source_url).map(({name:i,slug:l})=>({value:l,label:i}));return(0,Ue.jsx)(qhe,{value:t,defaultValue:UK,options:n,onChange:o})}function GK({clientId:e,attributes:t,setAttributes:o,context:{postId:a,postType:n,queryId:i}}){let l=Number.isFinite(i),{isLink:s,aspectRatio:c,height:u,width:m,scale:p,sizeSlug:d,rel:f,linkTarget:g,useFirstImageFromPost:b}=t,[y,v]=(0,Hu.useState)(),[_,x]=(0,L1.useEntityProp)("postType",n,"featured_media",a),[k]=(0,L1.useEntityProp)("postType",n,"content",a),C=(0,Hu.useMemo)(()=>{if(_)return _;if(!b)return;let ne=/<!--\s+wp:(?:core\/)?image\s+(?<attrs>{(?:(?:[^}]+|}+(?=})|(?!}\s+\/?-->).)*)?}\s+)?-->/.exec(k);return ne?.groups?.attrs&&JSON.parse(ne.groups.attrs)?.id},[_,b,k]),{media:T,postType:N,postPermalink:P}=(0,M1.useSelect)(ne=>{let{getEntityRecord:re,getPostType:se,getEditedEntityRecord:ue}=ne(L1.store);return{media:C&&re("postType","attachment",C,{context:"view"}),postType:n&&se(n),postPermalink:ue("postType",n,a)?.link}},[C,n,a]),L=T?.media_details?.sizes?.[d]?.source_url||T?.source_url,R=(0,bo.useBlockProps)({style:{width:m,height:u,aspectRatio:c},className:w({"is-transient":y})}),z=(0,bo.__experimentalUseBorderProps)(t),O=(0,bo.__experimentalGetShadowClassesAndStyles)(t),V=(0,bo.useBlockEditingMode)(),I=ne=>(0,Ue.jsx)(Yo.Placeholder,{className:w("block-editor-media-placeholder",z.className),withIllustration:!0,style:{height:!!c&&"100%",width:!!c&&"100%",...z.style,...O.style},children:ne}),F=ne=>{ne?.id&&x(ne.id),ne?.url&&(0,jK.isBlobURL)(ne.url)&&v(ne.url)},W=()=>{o({isLink:!1,linkTarget:"_self",rel:"",sizeSlug:void 0}),x(0)};(0,Hu.useEffect)(()=>{L&&y&&v()},[L,y]);let{createErrorNotice:j}=(0,M1.useDispatch)(OK.store),K=ne=>{j(ne,{type:"snackbar"}),v()},Z=G(),te=V==="default"&&(0,Ue.jsxs)(Ue.Fragment,{children:[(0,Ue.jsx)(bo.InspectorControls,{group:"color",children:(0,Ue.jsx)(zK,{attributes:t,setAttributes:o,clientId:e})}),(0,Ue.jsx)(bo.InspectorControls,{group:"dimensions",children:(0,Ue.jsx)(MK,{clientId:e,attributes:t,setAttributes:o,media:T})}),(C||l||!a)&&(0,Ue.jsx)(bo.InspectorControls,{children:(0,Ue.jsxs)(Yo.__experimentalToolsPanel,{label:(0,hr.__)("Settings"),resetAll:()=>{o({isLink:!1,linkTarget:"_self",rel:"",sizeSlug:UK})},dropdownMenuProps:Z,children:[(0,Ue.jsx)(Yo.__experimentalToolsPanelItem,{label:N?.labels.singular_name?(0,hr.sprintf)((0,hr.__)("Link to %s"),N.labels.singular_name):(0,hr.__)("Link to post"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>o({isLink:!1}),children:(0,Ue.jsx)(Yo.ToggleControl,{label:N?.labels.singular_name?(0,hr.sprintf)((0,hr.__)("Link to %s"),N.labels.singular_name):(0,hr.__)("Link to post"),onChange:()=>o({isLink:!s}),checked:s})}),s&&(0,Ue.jsx)(Yo.__experimentalToolsPanelItem,{label:(0,hr.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>g!=="_self",onDeselect:()=>o({linkTarget:"_self"}),children:(0,Ue.jsx)(Yo.ToggleControl,{label:(0,hr.__)("Open in new tab"),onChange:ne=>o({linkTarget:ne?"_blank":"_self"}),checked:g==="_blank"})}),s&&(0,Ue.jsx)(Yo.__experimentalToolsPanelItem,{label:(0,hr.__)("Link relation"),isShownByDefault:!0,hasValue:()=>!!f,onDeselect:()=>o({rel:""}),children:(0,Ue.jsx)(Yo.TextControl,{__next40pxDefaultSize:!0,label:(0,hr.__)("Link relation"),help:(0,Hu.createInterpolateElement)((0,hr.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,Ue.jsx)(Yo.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:f,onChange:ne=>o({rel:ne})})}),!!T&&(0,Ue.jsx)(Zhe,{image:T,value:d,onChange:ne=>o({sizeSlug:ne})})]})})]}),X;if(!C&&(l||!a))return(0,Ue.jsxs)(Ue.Fragment,{children:[te,(0,Ue.jsxs)("div",{...R,children:[s?(0,Ue.jsx)("a",{href:P,target:g,children:I()}):I(),(0,Ue.jsx)(MN,{attributes:t,setAttributes:o,clientId:e})]})]});let J=(0,hr.__)("Add a featured image"),ee={...z.style,...O.style,height:c?"100%":u,width:!!c&&"100%",objectFit:!!(u||c)&&p};return!C&&!y?X=(0,Ue.jsx)(bo.MediaPlaceholder,{onSelect:F,accept:"image/*",allowedTypes:HK,onError:K,placeholder:I,mediaLibraryButton:({open:ne})=>(0,Ue.jsx)(Yo.Button,{__next40pxDefaultSize:!0,icon:Ws,variant:"primary",label:J,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{ne()}})}):X=!T&&!y?I():(0,Ue.jsxs)(Ue.Fragment,{children:[(0,Ue.jsx)("img",{className:z.className,src:y||L,alt:T&&T?.alt_text?(0,hr.sprintf)((0,hr.__)("Featured image: %s"),T.alt_text):(0,hr.__)("Featured image"),style:ee}),y&&(0,Ue.jsx)(Yo.Spinner,{})]}),(0,Ue.jsxs)(Ue.Fragment,{children:[!y&&te,!!T&&!l&&(0,Ue.jsx)(bo.BlockControls,{group:"other",children:(0,Ue.jsx)(bo.MediaReplaceFlow,{mediaId:C,mediaURL:L,allowedTypes:HK,accept:"image/*",onSelect:F,onError:K,onReset:W})}),(0,Ue.jsxs)("figure",{...R,children:[s?(0,Ue.jsx)("a",{href:P,target:g,children:X}):X,(0,Ue.jsx)(MN,{attributes:t,setAttributes:o,clientId:e})]})]})}var{name:$K}=L4,WK={icon:m9,edit:GK},Khe=()=>D({name:$K,metadata:L4,settings:WK});var zN={};$(zN,{init:()=>Yhe,metadata:()=>z4,name:()=>JK,settings:()=>eQ});var XK=r(B());var z4={$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:{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:""}},usesContext:["postType"],supports:{reusable:!1,html:!1,color:{link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-post-navigation-link"};var zr=r(M()),ni=r(S()),eo=r(B()),qK=r(A()),ZK=r(Y());var qt=r(h());function KK({context:{postType:e},attributes:{type:t,label:o,showTitle:a,textAlign:n,linkLabel:i,arrow:l,taxonomy:s},setAttributes:c}){let m=(0,ni.useBlockEditingMode)()==="default",p=t==="next",d=p?(0,eo.__)("Next"):(0,eo.__)("Previous"),g={none:"",arrow:p?"\u2192":"\u2190",chevron:p?"\xBB":"\xAB"}[l];a&&(d=p?(0,eo.__)("Next: "):(0,eo.__)("Previous: "));let b=p?(0,eo.__)("Next post"):(0,eo.__)("Previous post"),y=(0,ni.useBlockProps)({className:w({[`has-text-align-${n}`]:n})}),v=(0,qK.useSelect)(k=>{let{getTaxonomies:C}=k(ZK.store);return C({type:e,per_page:-1})},[e]),_=()=>{let k={label:(0,eo.__)("Unfiltered"),value:""},C=(v??[]).filter(({visibility:T})=>!!T?.publicly_queryable).map(T=>({value:T.slug,label:T.name}));return[k,...C]},x=G();return(0,qt.jsxs)(qt.Fragment,{children:[(0,qt.jsx)(ni.InspectorControls,{children:(0,qt.jsxs)(zr.__experimentalToolsPanel,{label:(0,eo.__)("Settings"),resetAll:()=>{c({showTitle:!1,linkLabel:!1,arrow:"none"})},dropdownMenuProps:x,children:[(0,qt.jsx)(zr.__experimentalToolsPanelItem,{label:(0,eo.__)("Display the title as a link"),isShownByDefault:!0,hasValue:()=>a,onDeselect:()=>c({showTitle:!1}),children:(0,qt.jsx)(zr.ToggleControl,{label:(0,eo.__)("Display the title as a link"),help:(0,eo.__)("If you have entered a custom label, it will be prepended before the title."),checked:!!a,onChange:()=>c({showTitle:!a})})}),a&&(0,qt.jsx)(zr.__experimentalToolsPanelItem,{label:(0,eo.__)("Include the label as part of the link"),isShownByDefault:!0,hasValue:()=>!!i,onDeselect:()=>c({linkLabel:!1}),children:(0,qt.jsx)(zr.ToggleControl,{label:(0,eo.__)("Include the label as part of the link"),checked:!!i,onChange:()=>c({linkLabel:!i})})}),(0,qt.jsx)(zr.__experimentalToolsPanelItem,{label:(0,eo.__)("Arrow"),isShownByDefault:!0,hasValue:()=>l!=="none",onDeselect:()=>c({arrow:"none"}),children:(0,qt.jsxs)(zr.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:(0,eo.__)("Arrow"),value:l,onChange:k=>{c({arrow:k})},help:(0,eo.__)("A decorative arrow for the next and previous link."),isBlock:!0,children:[(0,qt.jsx)(zr.__experimentalToggleGroupControlOption,{value:"none",label:(0,eo._x)("None","Arrow option for Next/Previous link")}),(0,qt.jsx)(zr.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,eo._x)("Arrow","Arrow option for Next/Previous link")}),(0,qt.jsx)(zr.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,eo._x)("Chevron","Arrow option for Next/Previous link")})]})})]})}),(0,qt.jsx)(ni.InspectorControls,{group:"advanced",children:(0,qt.jsx)(zr.SelectControl,{__next40pxDefaultSize:!0,label:(0,eo.__)("Filter by taxonomy"),value:s,options:_(),onChange:k=>c({taxonomy:k}),help:(0,eo.__)("Only link to posts that have the same taxonomy terms as the current post. For example the same tags or categories.")})}),m&&(0,qt.jsx)(ni.BlockControls,{children:(0,qt.jsx)(ni.AlignmentToolbar,{value:n,onChange:k=>{c({textAlign:k})}})}),(0,qt.jsxs)("div",{...y,children:[!p&&g&&(0,qt.jsx)("span",{className:`wp-block-post-navigation-link__arrow-previous is-arrow-${l}`,children:g}),(0,qt.jsx)(ni.RichText,{tagName:"a",identifier:"label","aria-label":b,placeholder:d,value:o,withoutInteractiveFormatting:!0,onChange:k=>c({label:k})}),a&&(0,qt.jsx)("a",{href:"#post-navigation-pseudo-link",onClick:k=>k.preventDefault(),children:(0,eo.__)("An example title")}),p&&g&&(0,qt.jsx)("span",{className:`wp-block-post-navigation-link__arrow-next is-arrow-${l}`,"aria-hidden":!0,children:g})]})]})}var Rp=r(B());var QK=[{name:"post-previous",title:(0,Rp.__)("Previous Post"),description:(0,Rp.__)("Displays the post link that precedes the current post."),icon:b9,attributes:{type:"previous"},scope:["inserter","transform"],example:{attributes:{label:(0,Rp.__)("Previous post"),arrow:"arrow"}}},{isDefault:!0,name:"post-next",title:(0,Rp.__)("Next Post"),description:(0,Rp.__)("Displays the post link that follows the current post."),icon:M7,attributes:{type:"next"},scope:["inserter","transform"],example:{attributes:{label:(0,Rp.__)("Next post"),arrow:"arrow"}}}];QK.forEach(e=>{e.isActive||(e.isActive=(t,o)=>t.type===o.type)});var YK=QK;var{name:JK}=z4,eQ={edit:KK,variations:YK,example:{attributes:{label:(0,XK.__)("Next post"),arrow:"arrow"}}},Yhe=()=>D({name:JK,metadata:z4,settings:eQ});var AN={};$(AN,{init:()=>r0e,metadata:()=>A4,name:()=>lQ,settings:()=>sQ});var A4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-template",title:"Post Template",category:"theme",ancestor:["core/query"],description:"Contains the block elements used to render a post, like the title, date, featured image, content or excerpt, and more.",textdomain:"default",usesContext:["queryId","query","displayLayout","templateSlug","previewPostType","enhancedPagination","postType"],supports:{reusable:!1,html:!1,align:["wide","full"],layout:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:!0,padding:!0,blockGap:{__experimentalDefault:"1.25em"},__experimentalDefaultControls:{blockGap:!0,padding:!1,margin:!1}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},style:"wp-block-post-template",editorStyle:"wp-block-post-template-editor"};var lg=r(H()),tQ=r(A()),R1=r(B()),Bi=r(S()),V4=r(M()),oQ=r(Y());var la=r(h()),Jhe=[["core/post-title"],["core/post-date",{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}],["core/post-excerpt"]];function e0e({classList:e}){let t=(0,Bi.useInnerBlocksProps)({className:w("wp-block-post",e)},{template:Jhe,__unstableDisableLayoutClassNames:!0});return(0,la.jsx)("li",{...t})}function t0e({blocks:e,blockContextId:t,classList:o,isHidden:a,setActiveBlockContextId:n}){let i=(0,Bi.__experimentalUseBlockPreview)({blocks:e,props:{className:w("wp-block-post",o)}}),l=()=>{n(t)};return(0,la.jsx)("li",{...i,tabIndex:0,role:"button",onClick:l,onKeyPress:l,style:{display:a?"none":void 0}})}var o0e=(0,lg.memo)(t0e);function rQ({setAttributes:e,clientId:t,context:{query:{perPage:o,offset:a=0,postType:n,order:i,orderBy:l,author:s,search:c,exclude:u,sticky:m,inherit:p,taxQuery:d,parents:f,pages:g,format:b,...y}={},templateSlug:v,previewPostType:_},attributes:{layout:x},__unstableLayoutClassNames:k}){let{type:C,columnCount:T=3}=x||{},[N,P]=(0,lg.useState)(),{posts:L,blocks:R}=(0,tQ.useSelect)(F=>{let{getEntityRecords:W,getTaxonomies:j}=F(oQ.store),{getBlocks:K}=F(Bi.store),Z=p&&v?.startsWith("category-")&&W("taxonomy","category",{context:"view",per_page:1,_fields:["id"],slug:v.replace("category-","")}),te=p&&v?.startsWith("tag-")&&W("taxonomy","post_tag",{context:"view",per_page:1,_fields:["id"],slug:v.replace("tag-","")}),X={offset:a||0,order:i,orderby:l};if(d&&!p){let ne=j({type:n,per_page:-1,context:"view"}),re=(ue,Ne="")=>Object.entries(ue||{}).reduce((Le,[ie,Ee])=>{let de=ne?.find(({slug:oe})=>oe===ie);return de?.rest_base&&Ee?.length&&(Le[de.rest_base+Ne]=Ee),Le},{}),se=re(d.include);d.exclude&&Object.assign(se,re(d.exclude,"_exclude")),Object.keys(se).length&&Object.assign(X,se)}o&&(X.per_page=o),s&&(X.author=s),c&&(X.search=c),u?.length&&(X.exclude=u),f?.length&&(X.parent=f),b?.length&&(X.format=b),["exclude","only"].includes(m)&&(X.sticky=m==="only"),["","ignore"].includes(m)&&(delete X.sticky,X.ignore_sticky=m==="ignore");let J=n;return p&&(v?.startsWith("archive-")?(X.postType=v.replace("archive-",""),J=X.postType):Z?X.categories=Z[0]?.id:te?X.tags=te[0]?.id:v?.startsWith("taxonomy-post_format")&&(X.format=v.replace("taxonomy-post_format-post-format-",""))),{posts:W("postType",_||J,{...X,...y}),blocks:K(t)}},[o,a,i,l,t,s,c,n,u,m,p,v,d,f,b,y,_]),z=(0,lg.useMemo)(()=>L?.map(F=>({postType:F.type,postId:F.id,classList:F.class_list??""})),[L]),O=(0,Bi.useBlockProps)({className:w(k,{[`columns-${T}`]:C==="grid"&&T})});if(!L)return(0,la.jsx)("p",{...O,children:(0,la.jsx)(V4.Spinner,{})});if(!L.length)return(0,la.jsxs)("p",{...O,children:[" ",(0,R1.__)("No results found.")]});let V=F=>e({layout:{...x,...F}}),I=[{icon:Gi,title:(0,R1._x)("List view","Post template block display setting"),onClick:()=>V({type:"default"}),isActive:C==="default"||C==="constrained"},{icon:Ui,title:(0,R1._x)("Grid view","Post template block display setting"),onClick:()=>V({type:"grid",columnCount:T}),isActive:C==="grid"}];return(0,la.jsxs)(la.Fragment,{children:[(0,la.jsx)(Bi.BlockControls,{children:(0,la.jsx)(V4.ToolbarGroup,{controls:I})}),(0,la.jsx)("ul",{...O,children:z&&z.map(F=>(0,la.jsxs)(Bi.BlockContextProvider,{value:F,children:[F.postId===(N||z[0]?.postId)?(0,la.jsx)(e0e,{classList:F.classList}):null,(0,la.jsx)(o0e,{blocks:R,blockContextId:F.postId,classList:F.classList,setActiveBlockContextId:P,isHidden:F.postId===(N||z[0]?.postId)})]},F.postId))})]})}var aQ=r(S()),nQ=r(h());function iQ(){return(0,nQ.jsx)(aQ.InnerBlocks.Content,{})}var{name:lQ}=A4,sQ={icon:wm,edit:rQ,save:iQ},r0e=()=>D({name:lQ,metadata:A4,settings:sQ});var VN={};$(VN,{init:()=>l0e,metadata:()=>F4,name:()=>yQ,settings:()=>xQ});var bQ=r(Js());var F4={$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"},textAlign:{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:{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}}},style:"wp-block-post-terms"};var Ra=r(S()),H4=r(U()),j4=r(M()),dQ=r(A()),fQ=r(jo()),ju=r(B()),gQ=r(Y());var cQ=r(Y()),uQ=r(A()),n0e=[];function mQ({postId:e,term:t}){let{slug:o}=t;return(0,uQ.useSelect)(a=>{if(!t?.visibility?.publicly_queryable)return{postTerms:n0e,isLoading:!1,hasPostTerms:!1};let{getEntityRecords:i,isResolving:l}=a(cQ.store),s=["taxonomy",o,{post:e,per_page:-1,context:"view"}],c=i(...s);return{postTerms:c,isLoading:l("getEntityRecords",s),hasPostTerms:!!c?.length}},[e,t?.visibility?.publicly_queryable,o])}var vr=r(h()),pQ=["core/bold","core/image","core/italic","core/link","core/strikethrough","core/text-color"];function hQ({attributes:e,clientId:t,context:o,isSelected:a,setAttributes:n,insertBlocksAfter:i}){let{term:l,textAlign:s,separator:c,prefix:u,suffix:m}=e,{postId:p,postType:d}=o,g=(0,Ra.useBlockEditingMode)()==="default",b=(0,dQ.useSelect)(T=>{if(!l)return{};let{getTaxonomy:N}=T(gQ.store),P=N(l);return P?.visibility?.publicly_queryable?P:{}},[l]),{postTerms:y,hasPostTerms:v,isLoading:_}=mQ({postId:p,term:b}),x=p&&d,k=(0,Ra.useBlockDisplayInformation)(t),C=(0,Ra.useBlockProps)({className:w({[`has-text-align-${s}`]:s,[`taxonomy-${l}`]:l})});return(0,vr.jsxs)(vr.Fragment,{children:[g&&(0,vr.jsx)(Ra.BlockControls,{children:(0,vr.jsx)(Ra.AlignmentToolbar,{value:s,onChange:T=>{n({textAlign:T})}})}),(0,vr.jsx)(Ra.InspectorControls,{group:"advanced",children:(0,vr.jsx)(j4.TextControl,{__next40pxDefaultSize:!0,autoComplete:"off",label:(0,ju.__)("Separator"),value:c||"",onChange:T=>{n({separator:T})},help:(0,ju.__)("Enter character(s) used to separate terms.")})}),(0,vr.jsxs)("div",{...C,children:[_&&x&&(0,vr.jsx)(j4.Spinner,{}),!_&&(a||u)&&(0,vr.jsx)(Ra.RichText,{identifier:"prefix",allowedFormats:pQ,className:"wp-block-post-terms__prefix","aria-label":(0,ju.__)("Prefix"),placeholder:(0,ju.__)("Prefix")+" ",value:u,onChange:T=>n({prefix:T}),tagName:"span"}),(!x||!l)&&(0,vr.jsx)("span",{children:k.title}),x&&!_&&v&&y.map(T=>(0,vr.jsx)("a",{href:T.link,onClick:N=>N.preventDefault(),rel:"tag",children:(0,fQ.decodeEntities)(T.name)},T.id)).reduce((T,N)=>(0,vr.jsxs)(vr.Fragment,{children:[T,(0,vr.jsx)("span",{className:"wp-block-post-terms__separator",children:c||" "}),N]})),x&&!_&&!v&&(b?.labels?.no_terms||(0,ju.__)("Term items not found.")),!_&&(a||m)&&(0,vr.jsx)(Ra.RichText,{identifier:"suffix",allowedFormats:pQ,className:"wp-block-post-terms__suffix","aria-label":(0,ju.__)("Suffix"),placeholder:" "+(0,ju.__)("Suffix"),value:m,onChange:T=>n({suffix:T}),tagName:"span",__unstableOnSplitAtEnd:()=>i((0,H4.createBlock)((0,H4.getDefaultBlockName)()))})]})]})}var i0e={category:_d,post_tag:f9};function vQ(e,t){if(t!=="core/post-terms")return e;let o=e.variations.map(a=>({...a,icon:i0e[a.name]??_d}));return{...e,variations:o}}var{name:yQ}=F4,xQ={icon:_d,edit:hQ},l0e=()=>((0,bQ.addFilter)("blocks.registerBlockType","core/template-part",vQ),D({name:yQ,metadata:F4,settings:xQ}));var FN={};$(FN,{init:()=>m0e,metadata:()=>O4,name:()=>PQ,settings:()=>NQ});var O4={$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:{textAlign:{type:"string"},displayAsRange:{type:"boolean",default:!0},displayMode:{type:"string",default:"time"},averageReadingSpeed:{type:"number",default:189}},supports:{color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__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 sa=r(B()),wQ=r(H()),Ou=r(S()),sg=r(M()),CQ=r(U()),U4=r(Y()),SQ=r(kQ());var Pi=r(h());function c0e({attributes:e,setAttributes:t,context:o}){let{textAlign:a,displayAsRange:n,displayMode:i,averageReadingSpeed:l}=e,{postId:s,postType:c}=o,u=G(),[m]=(0,U4.useEntityProp)("postType",c,"content",s),[p]=(0,U4.useEntityBlockEditor)("postType",c,{id:s}),d=(0,wQ.useMemo)(()=>{let g;m instanceof Function?g=m({blocks:p}):p?g=(0,CQ.__unstableSerializeAndClean)(p):g=m;let b=(0,sa._x)("words","Word count type. Do not translate!"),y=(0,SQ.count)(g||"",b);if(i==="time"){if(n){let _=Math.max(1,Math.round(y/l*1.2)),x=Math.max(1,Math.round(y/l*.8));x===_&&(_=_+1);let k=(0,sa._x)("%1$s\u2013%2$s minutes","Range of minutes to read");return(0,sa.sprintf)(k,x,_)}let v=Math.max(1,Math.round(y/l));return(0,sa.sprintf)((0,sa._n)("%s minute","%s minutes",v),v)}if(i==="words")return b==="words"?(0,sa.sprintf)((0,sa._n)("%s word","%s words",y),y.toLocaleString()):(0,sa.sprintf)((0,sa._n)("%s character","%s characters",y),y.toLocaleString())},[m,p,n,i,l]),f=(0,Ou.useBlockProps)({className:w({[`has-text-align-${a}`]:a})});return(0,Pi.jsxs)(Pi.Fragment,{children:[(0,Pi.jsx)(Ou.BlockControls,{group:"block",children:(0,Pi.jsx)(Ou.AlignmentControl,{value:a,onChange:g=>{t({textAlign:g})}})}),i==="time"&&(0,Pi.jsx)(Ou.InspectorControls,{children:(0,Pi.jsx)(sg.__experimentalToolsPanel,{label:(0,sa.__)("Settings"),resetAll:()=>{t({displayAsRange:!0})},dropdownMenuProps:u,children:(0,Pi.jsx)(sg.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,sa._x)("Display as range","Turns reading time range display on or off"),hasValue:()=>!n,onDeselect:()=>{t({displayAsRange:!0})},children:(0,Pi.jsx)(sg.ToggleControl,{label:(0,sa.__)("Display as range"),checked:!!n,onChange:()=>t({displayAsRange:!n})})})})}),(0,Pi.jsx)("div",{...f,children:d})]})}var TQ=c0e;var z1=r(B());var u0e=[{name:"time-to-read",title:(0,z1.__)("Time to Read"),description:(0,z1.__)("Show minutes required to finish reading the post."),attributes:{displayMode:"time"},scope:["inserter","transform"],isActive:e=>e?.displayMode==="time",icon:c0,isDefault:!0},{name:"word-count",title:(0,z1.__)("Word Count"),description:(0,z1.__)("Show the number of words in the post."),attributes:{displayMode:"words"},scope:["inserter","transform"],isActive:e=>e?.displayMode==="words",icon:CS}],BQ=u0e;var{name:PQ}=O4,NQ={icon:c0,edit:TQ,variations:BQ,example:{}},m0e=()=>D({name:PQ,metadata:O4,settings:NQ});var HN={};$(HN,{init:()=>f0e,metadata:()=>G4,name:()=>MQ,settings:()=>RQ});var G4={$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:{textAlign:{type:"string"},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"}},example:{viewportWidth:350},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__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 za=r(S()),ii=r(M()),hn=r(B()),$4=r(U()),A1=r(Y()),IQ=r(A()),DQ=r(H());var Ct=r(h());function EQ({attributes:{level:e,levelOptions:t,textAlign:o,isLink:a,rel:n,linkTarget:i},setAttributes:l,context:{postType:s,postId:c,queryId:u},insertBlocksAfter:m}){let p=e===0?"p":`h${e}`,d=Number.isFinite(u),f=(0,IQ.useSelect)(N=>d?!1:N(A1.store).canUser("update",{kind:"postType",name:s,id:c}),[d,s,c]),[g="",b,y]=(0,A1.useEntityProp)("postType",s,"title",c),[v]=(0,A1.useEntityProp)("postType",s,"link",c),_=()=>{m((0,$4.createBlock)((0,$4.getDefaultBlockName)()))},x=(0,za.useBlockProps)({className:w({[`has-text-align-${o}`]:o})}),k=(0,za.useBlockEditingMode)(),C=G(),T=(0,Ct.jsx)(p,{...x,children:(0,hn.__)("Title")});return s&&c&&(T=f?(0,Ct.jsx)(za.PlainText,{tagName:p,placeholder:(0,hn.__)("(no title)"),value:g,onChange:b,__experimentalVersion:2,__unstableOnSplitAtEnd:_,...x}):(0,Ct.jsx)(p,{...x,dangerouslySetInnerHTML:{__html:y?.rendered||(0,hn.__)("(no title)")}})),a&&s&&c&&(T=f?(0,Ct.jsx)(p,{...x,children:(0,Ct.jsx)(za.PlainText,{tagName:"a",href:v,target:i,rel:n,placeholder:g.length?null:(0,hn.__)("(no title)"),value:g,onChange:b,__experimentalVersion:2,__unstableOnSplitAtEnd:_})}):(0,Ct.jsx)(p,{...x,children:(0,Ct.jsx)("a",{href:v,target:i,rel:n,onClick:N=>N.preventDefault(),dangerouslySetInnerHTML:{__html:y?.rendered||(0,hn.__)("(no title)")}})})),(0,Ct.jsxs)(Ct.Fragment,{children:[k==="default"&&(0,Ct.jsxs)(Ct.Fragment,{children:[(0,Ct.jsxs)(za.BlockControls,{group:"block",children:[(0,Ct.jsx)(za.HeadingLevelDropdown,{value:e,options:t,onChange:N=>l({level:N})}),(0,Ct.jsx)(za.AlignmentControl,{value:o,onChange:N=>{l({textAlign:N})}})]}),(0,Ct.jsx)(za.InspectorControls,{children:(0,Ct.jsxs)(ii.__experimentalToolsPanel,{label:(0,hn.__)("Settings"),resetAll:()=>{l({rel:"",linkTarget:"_self",isLink:!1})},dropdownMenuProps:C,children:[(0,Ct.jsx)(ii.__experimentalToolsPanelItem,{label:(0,hn.__)("Make title a link"),isShownByDefault:!0,hasValue:()=>a,onDeselect:()=>l({isLink:!1}),children:(0,Ct.jsx)(ii.ToggleControl,{label:(0,hn.__)("Make title a link"),onChange:()=>l({isLink:!a}),checked:a})}),a&&(0,Ct.jsxs)(Ct.Fragment,{children:[(0,Ct.jsx)(ii.__experimentalToolsPanelItem,{label:(0,hn.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>i==="_blank",onDeselect:()=>l({linkTarget:"_self"}),children:(0,Ct.jsx)(ii.ToggleControl,{label:(0,hn.__)("Open in new tab"),onChange:N=>l({linkTarget:N?"_blank":"_self"}),checked:i==="_blank"})}),(0,Ct.jsx)(ii.__experimentalToolsPanelItem,{label:(0,hn.__)("Link relation"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>l({rel:""}),children:(0,Ct.jsx)(ii.TextControl,{__next40pxDefaultSize:!0,label:(0,hn.__)("Link relation"),help:(0,DQ.createInterpolateElement)((0,hn.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,Ct.jsx)(ii.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:n,onChange:N=>l({rel:N})})})]})]})})]}),T]})}var d0e={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:Nt,isEligible({style:e}){return e?.typography?.fontFamily}},LQ=[d0e];var{name:MQ}=G4,RQ={icon:$i,edit:EQ,deprecated:LQ},f0e=()=>D({name:MQ,metadata:G4,settings:RQ});var GN={};$(GN,{init:()=>y0e,metadata:()=>Z4,name:()=>jQ,settings:()=>Q4});var UN=r(B());var HQ=r(U());var jN=r(B()),W4=r(S()),q4=r(U()),zQ=r(h());function AQ({attributes:e,mergeBlocks:t,setAttributes:o,onRemove:a,insertBlocksAfter:n,style:i}){let{content:l}=e,s=(0,W4.useBlockProps)({style:i});return(0,zQ.jsx)(W4.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:l,onChange:c=>{o({content:c})},onRemove:a,"aria-label":(0,jN.__)("Preformatted text"),placeholder:(0,jN.__)("Write preformatted text\u2026"),onMerge:t,...s,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>n((0,q4.createBlock)((0,q4.getDefaultBlockName)()))})}var Z4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/preformatted",title:"Preformatted",category:"text",description:"Add text that respects your spacing and tabs, and also allows styling.",textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"pre",__unstablePreserveWhiteSpace:!0,role:"content"}},supports:{anchor:!0,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-preformatted"};var K4=r(S()),ON=r(h());function VQ({attributes:e}){let{content:t}=e;return(0,ON.jsx)("pre",{...K4.useBlockProps.save(),children:(0,ON.jsx)(K4.RichText.Content,{value:t})})}var V1=r(U()),h0e={from:[{type:"block",blocks:["core/code","core/paragraph","core/verse"],transform:({content:e,anchor:t})=>(0,V1.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,V1.createBlock)("core/paragraph",e)},{type:"block",blocks:["core/code"],transform:e=>(0,V1.createBlock)("core/code",e)},{type:"block",blocks:["core/verse"],transform:e=>(0,V1.createBlock)("core/verse",e)}]},FQ=h0e;var{fieldsKey:v0e,formKey:b0e}=Q(HQ.privateApis),{name:jQ}=Z4,Q4={icon:h9,example:{attributes:{content:(0,UN.__)(`EXT. XANADU - FAINT DAWN - 1940 (MINIATURE) 34 Window, very small in the distance, illuminated. 35 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:FQ,edit:AQ,save:VQ,merge(e,t){return{content:e.content+` 36 37 `+t.content}}};window.__experimentalContentOnlyInspectorFields&&(Q4[v0e]=[{id:"content",label:(0,UN.__)("Content"),type:"richtext"}],Q4[b0e]={fields:["content"]});var y0e=()=>D({name:jQ,metadata:Z4,settings:Q4});var $N={};$($N,{init:()=>E0e,metadata:()=>X4,name:()=>XQ,settings:()=>J4});var j1=r(B());var YQ=r(U());var st=r(S()),UQ=r(A());var zp="is-style-solid-color";var to=r(h()),F1={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 OQ(e){if(!e)return;let t=e.match(/border-color:([^;]+)[;]?/);if(t&&t[1])return t[1]}function Ap(e){e=e||"<p></p>";let o=`</p>${e}<p>`.split("</p><p>");return o.shift(),o.pop(),o.join("<br>")}var x0e={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"}},save({attributes:e}){let{textAlign:t,citation:o,value:a}=e,n=!st.RichText.isEmpty(o);return(0,to.jsx)("figure",{...st.useBlockProps.save({className:w({[`has-text-align-${t}`]:t})}),children:(0,to.jsxs)("blockquote",{children:[(0,to.jsx)(st.RichText.Content,{value:a,multiline:!0}),n&&(0,to.jsx)(st.RichText.Content,{tagName:"cite",value:o})]})})},migrate({value:e,...t}){return{value:Ap(e),...t}}},_0e={attributes:{...F1},save({attributes:e}){let{mainColor:t,customMainColor:o,customTextColor:a,textColor:n,value:i,citation:l,className:s}=e,c=s?.includes(zp),u,m;if(c){let g=(0,st.getColorClassName)("background-color",t);u=w({"has-background":g||o,[g]:g}),m={backgroundColor:g?void 0:o}}else o&&(m={borderColor:o});let p=(0,st.getColorClassName)("color",n),d=w({"has-text-color":n||a,[p]:p}),f=p?void 0:{color:a};return(0,to.jsx)("figure",{...st.useBlockProps.save({className:u,style:m}),children:(0,to.jsxs)("blockquote",{className:d,style:f,children:[(0,to.jsx)(st.RichText.Content,{value:i,multiline:!0}),!st.RichText.isEmpty(l)&&(0,to.jsx)(st.RichText.Content,{tagName:"cite",value:l})]})})},migrate({value:e,className:t,mainColor:o,customMainColor:a,customTextColor:n,...i}){let l=t?.includes(zp),s;return a&&(l?s={color:{background:a}}:s={border:{color:a}}),n&&s&&(s.color={...s.color,text:n}),{value:Ap(e),className:t,backgroundColor:l?o:void 0,borderColor:l?void 0:o,textAlign:l?"left":void 0,style:s,...i}}},k0e={attributes:{...F1,figureStyle:{source:"attribute",selector:"figure",attribute:"style"}},save({attributes:e}){let{mainColor:t,customMainColor:o,textColor:a,customTextColor:n,value:i,citation:l,className:s,figureStyle:c}=e,u=s?.includes(zp),m,p;if(u){let b=(0,st.getColorClassName)("background-color",t);m=w({"has-background":b||o,[b]:b}),p={backgroundColor:b?void 0:o}}else o?p={borderColor:o}:t&&(p={borderColor:OQ(c)});let d=(0,st.getColorClassName)("color",a),f=(a||n)&&w("has-text-color",{[d]:d});return(0,to.jsx)("figure",{className:m,style:p,children:(0,to.jsxs)("blockquote",{className:f,style:d?void 0:{color:n},children:[(0,to.jsx)(st.RichText.Content,{value:i,multiline:!0}),!st.RichText.isEmpty(l)&&(0,to.jsx)(st.RichText.Content,{tagName:"cite",value:l})]})})},migrate({value:e,className:t,figureStyle:o,mainColor:a,customMainColor:n,customTextColor:i,...l}){let s=t?.includes(zp),c;if(n&&(s?c={color:{background:n}}:c={border:{color:n}}),i&&c&&(c.color={...c.color,text:i}),!s&&a&&o){let u=OQ(o);if(u)return{value:Ap(e),...l,className:t,style:{border:{color:u}}}}return{value:Ap(e),className:t,backgroundColor:s?a:void 0,borderColor:s?void 0:a,textAlign:s?"left":void 0,style:c,...l}}},w0e={attributes:F1,save({attributes:e}){let{mainColor:t,customMainColor:o,textColor:a,customTextColor:n,value:i,citation:l,className:s}=e,c=s?.includes(zp),u,m;if(c)u=(0,st.getColorClassName)("background-color",t),u||(m={backgroundColor:o});else if(o)m={borderColor:o};else if(t){let g=(0,UQ.select)(st.store).getSettings().colors??[];m={borderColor:(0,st.getColorObjectByAttributeValues)(g,t).color}}let p=(0,st.getColorClassName)("color",a),d=a||n?w("has-text-color",{[p]:p}):void 0;return(0,to.jsx)("figure",{className:u,style:m,children:(0,to.jsxs)("blockquote",{className:d,style:p?void 0:{color:n},children:[(0,to.jsx)(st.RichText.Content,{value:i,multiline:!0}),!st.RichText.isEmpty(l)&&(0,to.jsx)(st.RichText.Content,{tagName:"cite",value:l})]})})},migrate({value:e,className:t,mainColor:o,customMainColor:a,customTextColor:n,...i}){let l=t?.includes(zp),s={};return a&&(l?s={color:{background:a}}:s={border:{color:a}}),n&&s&&(s.color={...s.color,text:n}),{value:Ap(e),className:t,backgroundColor:l?o:void 0,borderColor:l?void 0:o,textAlign:l?"left":void 0,style:s,...i}}},C0e={attributes:{...F1},save({attributes:e}){let{value:t,citation:o}=e;return(0,to.jsxs)("blockquote",{children:[(0,to.jsx)(st.RichText.Content,{value:t,multiline:!0}),!st.RichText.isEmpty(o)&&(0,to.jsx)(st.RichText.Content,{tagName:"cite",value:o})]})},migrate({value:e,...t}){return{value:Ap(e),...t}}},S0e={attributes:{...F1,citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}},save({attributes:e}){let{value:t,citation:o,align:a}=e;return(0,to.jsxs)("blockquote",{className:`align${a}`,children:[(0,to.jsx)(st.RichText.Content,{value:t,multiline:!0}),!st.RichText.isEmpty(o)&&(0,to.jsx)(st.RichText.Content,{tagName:"footer",value:o})]})},migrate({value:e,...t}){return{value:Ap(e),...t}}},GQ=[x0e,_0e,k0e,w0e,C0e,S0e];var H1=r(B()),ks=r(S()),Y4=r(U()),qQ=r(H());var $Q="figure";var WQ="blockquote";var wl=r(h()),T0e=qQ.Platform.OS==="web";function B0e({attributes:e,setAttributes:t,isSelected:o,insertBlocksAfter:a}){let{textAlign:n,citation:i,value:l}=e,s=(0,ks.useBlockProps)({className:w({[`has-text-align-${n}`]:n})}),c=!ks.RichText.isEmpty(i)||o;return(0,wl.jsxs)(wl.Fragment,{children:[(0,wl.jsx)(ks.BlockControls,{group:"block",children:(0,wl.jsx)(ks.AlignmentControl,{value:n,onChange:u=>{t({textAlign:u})}})}),(0,wl.jsx)($Q,{...s,children:(0,wl.jsxs)(WQ,{children:[(0,wl.jsx)(ks.RichText,{identifier:"value",tagName:"p",value:l,onChange:u=>t({value:u}),"aria-label":(0,H1.__)("Pullquote text"),placeholder:(0,H1.__)("Add quote"),textAlign:"center"}),c&&(0,wl.jsx)(ks.RichText,{identifier:"citation",tagName:T0e?"cite":void 0,style:{display:"block"},value:i,"aria-label":(0,H1.__)("Pullquote citation text"),placeholder:(0,H1.__)("Add citation"),onChange:u=>t({citation:u}),className:"wp-block-pullquote__citation",__unstableMobileNoFocusOnMount:!0,textAlign:"center",__unstableOnSplitAtEnd:()=>a((0,Y4.createBlock)((0,Y4.getDefaultBlockName)()))})]})})]})}var ZQ=B0e;var X4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/pullquote",title:"Pullquote (deprecated)",category:"text",description:"This block is deprecated. Please use the Quote block instead.",textdomain:"default",attributes:{value:{type:"rich-text",source:"rich-text",selector:"p",role:"content"},citation:{type:"rich-text",source:"rich-text",selector:"cite",role:"content"},textAlign:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"],background:{backgroundImage:!0,backgroundSize:!0,__experimentalDefaultControls:{backgroundImage:!0}},color:{gradients:!0,background:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},dimensions:{minHeight:!0,__experimentalDefaultControls:{minHeight:!1}},inserter:!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}},__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 cg=r(S()),ug=r(h());function KQ({attributes:e}){let{textAlign:t,citation:o,value:a}=e,n=!cg.RichText.isEmpty(o);return(0,ug.jsx)("figure",{...cg.useBlockProps.save({className:w({[`has-text-align-${t}`]:t})}),children:(0,ug.jsxs)("blockquote",{children:[(0,ug.jsx)(cg.RichText.Content,{tagName:"p",value:a}),n&&(0,ug.jsx)(cg.RichText.Content,{tagName:"cite",value:o})]})})}var Vp=r(U()),N0e={to:[{type:"block",blocks:["core/paragraph"],transform:({value:e,citation:t})=>{let o=[];return e&&o.push((0,Vp.createBlock)("core/paragraph",{content:e})),t&&o.push((0,Vp.createBlock)("core/paragraph",{content:t})),o.length===0?(0,Vp.createBlock)("core/paragraph",{content:""}):o}},{type:"block",blocks:["core/heading"],transform:({value:e,citation:t})=>{if(!e)return(0,Vp.createBlock)("core/heading",{content:t});let o=(0,Vp.createBlock)("core/heading",{content:e});return t?[o,(0,Vp.createBlock)("core/heading",{content:t})]:o}}]},QQ=N0e;var{fieldsKey:I0e,formKey:D0e}=Q(YQ.privateApis),{name:XQ}=X4,J4={icon:C9,example:{attributes:{value:(0,j1.__)("One of the hardest things to do in technology is disrupt yourself."),citation:(0,j1.__)("Matt Mullenweg")}},transforms:QQ,edit:ZQ,save:KQ,deprecated:GQ};window.__experimentalContentOnlyInspectorFields&&(J4[I0e]=[{id:"value",label:(0,j1.__)("Content"),type:"richtext"},{id:"citation",label:(0,j1.__)("Citation"),type:"richtext"}],J4[D0e]={fields:["value"]});var E0e=()=>D({name:XQ,metadata:X4,settings:J4});var iI={};$(iI,{init:()=>c1e,metadata:()=>e3,name:()=>NX,settings:()=>IX});var e3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query",title:"Query Loop",category:"theme",description:"An advanced block that allows displaying post types based on different query parameters and visual configurations.",keywords:["posts","list","blog","blogs","custom post types"],textdomain:"default",attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[],format:[]}},tagName:{type:"string",default:"div"},namespace:{type:"string"},enhancedPagination:{type:"boolean",default:!1}},usesContext:["templateSlug"],providesContext:{queryId:"queryId",query:"query",displayLayout:"displayLayout",enhancedPagination:"enhancedPagination"},supports:{align:["wide","full"],html:!1,layout:!0,interactivity:!0,contentRole:!0},editorStyle:"wp-block-query-editor"};var fX=r(A()),gX=r(H()),hX=r(S());var p3=r(A()),cX=r(we()),K1=r(H()),bn=r(S()),uX=r(B()),mX=r(Y());var cY=r(M()),a3=r(B());var ws=r(A()),Hp=r(H()),O1=r(Y()),t3=r(S()),JQ=r(jo()),Fp=r(B()),yc=r(U()),U1=e=>{let t=e?.reduce((o,a)=>{let{mapById:n,mapByName:i,names:l}=o;return n[a.id]=a,i[a.name]=a,l.push(a.name),o},{mapById:{},mapByName:{},names:[]});return{entities:e,...t}},M0e=(e,t)=>{let o=t.split("."),a=e;return o.forEach(n=>{a=a?.[n]}),a},WN=(e,t)=>(e||[]).map(o=>({...o,name:(0,JQ.decodeEntities)(M0e(o,t))})),eY=()=>{let e=(0,ws.useSelect)(n=>{let{getPostTypes:i}=n(O1.store),l=["attachment"];return i({per_page:-1})?.filter(({viewable:c,slug:u})=>c&&!l.includes(u))},[]),t=(0,Hp.useMemo)(()=>{if(e?.length)return e.reduce((n,i)=>(n[i.slug]=i.taxonomies,n),{})},[e]),o=(0,Hp.useMemo)(()=>(e||[]).map(({labels:n,slug:i})=>({label:n.singular_name,value:i})),[e]),a=(0,Hp.useMemo)(()=>e?.length?e.reduce((n,i)=>(n[i.slug]=i.supports?.["post-formats"]||!1,n),{}):{},[e]);return{postTypesTaxonomiesMap:t,postTypesSelectOptions:o,postTypeFormatSupportMap:a}},o3=e=>{let t=(0,ws.useSelect)(o=>{let{getTaxonomies:a,getPostType:n}=o(O1.store);return n(e)?.taxonomies?.length>0?a({type:e,per_page:-1}):[]},[e]);return(0,Hp.useMemo)(()=>t?.filter(({visibility:o})=>!!o?.publicly_queryable),[t])};function tY(e){return(0,ws.useSelect)(t=>{let o=t(O1.store).getPostType(e);return o?.viewable&&o?.hierarchical},[e])}function oY(e){let t=(0,ws.useSelect)(o=>!!o(O1.store).getPostType(e)?.supports?.["page-attributes"],[e]);return(0,Hp.useMemo)(()=>{let o=[{label:(0,Fp.__)("Newest to oldest"),value:"date/desc"},{label:(0,Fp.__)("Oldest to newest"),value:"date/asc"},{label:(0,Fp.__)("A \u2192 Z"),value:"title/asc"},{label:(0,Fp.__)("Z \u2192 A"),value:"title/desc"}];return t&&o.push({label:(0,Fp.__)("Ascending by order"),value:"menu_order/asc"},{label:(0,Fp.__)("Descending by order"),value:"menu_order/desc"}),o},[t])}function rY(e){return(0,ws.useSelect)(t=>t(yc.store).getActiveBlockVariation("core/query",e)?.allowedControls,[e])}function li(e,t){return e?e.includes(t):!0}var aY=(e,t)=>{let{query:{postType:o,inherit:a},namespace:n}=t,i=e.map(c=>(0,yc.cloneBlock)(c)),l=[],s=[...i];for(;s.length>0;){let c=s.shift();c.name==="core/query"&&(c.attributes.query={...c.attributes.query,postType:o,inherit:a},n&&(c.attributes.namespace=n),l.push(c.clientId)),c.innerBlocks?.forEach(u=>{s.push(u)})}return{newBlocks:i,queryClientIds:l}};function nY(e,t){return(0,ws.useSelect)(o=>{let a=o(yc.store).getActiveBlockVariation("core/query",t)?.name;if(!a)return"core/query";let{getBlockRootClientId:n,getPatternsByBlockTypes:i}=o(t3.store),l=n(e);return i(`core/query/${a}`,l).length>0?`core/query/${a}`:"core/query"},[e,t])}function iY(e){let{activeVariationName:t,blockVariations:o}=(0,ws.useSelect)(n=>{let{getActiveBlockVariation:i,getBlockVariations:l}=n(yc.store);return{activeVariationName:i("core/query",e)?.name,blockVariations:l("core/query","block")}},[e]);return(0,Hp.useMemo)(()=>{let n=l=>!l.attributes?.namespace;if(!t)return o.filter(n);let i=o.filter(l=>l.attributes?.namespace?.includes(t));return i.length?i:o.filter(n)},[t,o])}var lY=(e,t)=>(0,ws.useSelect)(o=>{let{getBlockRootClientId:a,getPatternsByBlockTypes:n}=o(t3.store),i=a(e);return n(t,i)},[t,e]),r3=e=>(0,ws.useSelect)(t=>{let{getClientIdsOfDescendants:o,getBlockName:a}=t(t3.store);return o(e).some(n=>{let i=a(n),l=Object.is((0,yc.getBlockSupport)(i,"interactivity"),!0),s=(0,yc.getBlockSupport)(i,"interactivity.clientNavigation");return!l&&!s})},[e]);function sY(e){if(!e)return{isSingular:!0};let t=!1,o=e==="wp"?"custom":e,a=["404","blank","single","page","custom"],n=e.includes("-")?e.split("-",1)[0]:e;return(e.includes("-")?e.split("-").slice(1).join("-"):"")&&(o=n),t=a.includes(o),{isSingular:t,templateType:o}}var G1=r(h());function uY({enhancedPagination:e,setAttributes:t,clientId:o}){let a=r3(o),n=(0,a3.__)("Reload the full page\u2014instead of just the posts list\u2014when visitors navigate between pages.");return a&&(n=(0,a3.__)("Enhancement disabled because there are non-compatible blocks inside the Query block.")),(0,G1.jsx)(G1.Fragment,{children:(0,G1.jsx)(cY.ToggleControl,{label:(0,a3.__)("Reload full page"),help:n,checked:!e,disabled:a,onChange:i=>{t({enhancedPagination:!i})}})})}var mt=r(M()),JY=r(A()),eX=r(Y()),oo=r(B()),tX=r(we()),l3=r(H());var mY=r(M()),mg=r(B()),pY=r(h()),R0e=[{label:(0,mg.__)("Newest to oldest"),value:"date/desc"},{label:(0,mg.__)("Oldest to newest"),value:"date/asc"},{label:(0,mg.__)("A \u2192 Z"),value:"title/asc"},{label:(0,mg.__)("Z \u2192 A"),value:"title/desc"}];function z0e({order:e,orderBy:t,orderByOptions:o=R0e,onChange:a}){return(0,pY.jsx)(mY.SelectControl,{__next40pxDefaultSize:!0,label:(0,mg.__)("Order by"),value:`${t}/${e}`,options:o,onChange:n=>{let[i,l]=n.split("/");a({order:l,orderBy:i})}})}var dY=z0e;var fY=r(B()),gY=r(M()),hY=r(A()),vY=r(Y());var bY=r(h()),A0e={who:"authors",per_page:-1,_fields:"id,name",context:"view"};function V0e({value:e,onChange:t}){let o=(0,hY.useSelect)(c=>{let{getUsers:u}=c(vY.store);return u(A0e)},[]);if(!o)return null;let a=U1(o),i=(e?e.toString().split(","):[]).reduce((c,u)=>{let m=a.mapById[u];return m&&c.push({id:u,value:m.name}),c},[]),l=(c,u)=>{let m=u?.id||c[u]?.id;if(m)return m},s=c=>{let u=Array.from(c.reduce((m,p)=>{let d=l(a.mapByName,p);return d&&m.add(d),m},new Set));t({author:u.join(",")})};return(0,bY.jsx)(gY.FormTokenField,{label:(0,fY.__)("Authors"),value:i,suggestions:a.names,onChange:s,__experimentalShowHowTo:!1,__next40pxDefaultSize:!0})}var yY=V0e;var _Y=r(B()),kY=r(M()),qN=r(A()),ZN=r(Y()),xc=r(H()),wY=r(we());var CY=r(h()),jp=[],xY={order:"asc",_fields:"id,title",context:"view"};function F0e({parents:e,postType:t,onChange:o}){let[a,n]=(0,xc.useState)(""),[i,l]=(0,xc.useState)(jp),[s,c]=(0,xc.useState)(jp),u=(0,wY.useDebounce)(n,250),{searchResults:m,searchHasResolved:p}=(0,qN.useSelect)(y=>{if(!a)return{searchResults:jp,searchHasResolved:!0};let{getEntityRecords:v,hasFinishedResolution:_}=y(ZN.store),x=["postType",t,{...xY,search:a,orderby:"relevance",exclude:e,per_page:20}];return{searchResults:v(...x),searchHasResolved:_("getEntityRecords",x)}},[a,t,e]),d=(0,qN.useSelect)(y=>{if(!e?.length)return jp;let{getEntityRecords:v}=y(ZN.store);return v("postType",t,{...xY,include:e,per_page:e.length})},[e,t]);(0,xc.useEffect)(()=>{if(e?.length||l(jp),!d?.length)return;let y=U1(WN(d,"title.rendered")),v=e.reduce((_,x)=>{let k=y.mapById[x];return k&&_.push({id:x,value:k.name}),_},[]);l(v)},[e,d]);let f=(0,xc.useMemo)(()=>m?.length?U1(WN(m,"title.rendered")):jp,[m]);(0,xc.useEffect)(()=>{p&&c(f.names)},[f.names,p]);let g=(y,v)=>{let _=v?.id||y?.[v]?.id;if(_)return _},b=y=>{let v=Array.from(y.reduce((_,x)=>{let k=g(f.mapByName,x);return k&&_.add(k),_},new Set));c(jp),o({parents:v})};return(0,CY.jsx)(kY.FormTokenField,{__next40pxDefaultSize:!0,label:(0,_Y.__)("Parents"),value:i,onInputChange:u,suggestions:s,onChange:b,__experimentalShowHowTo:!1})}var SY=F0e;var n3=r(M()),KN=r(A()),QN=r(Y()),_c=r(H()),PY=r(we()),NY=r(jo()),i3=r(B());var Uu=r(h()),pg=[],TY={order:"asc",_fields:"id,name",context:"view"},H0e=(e,t)=>{let o=t?.id||e?.find(n=>n.name===t)?.id;if(o)return o;let a=t.toLocaleLowerCase();return e?.find(n=>n.name.toLocaleLowerCase()===a)?.id};function IY({onChange:e,query:t}){let{postType:o,taxQuery:a}=t,n=o3(o);return n?.length?(0,Uu.jsx)(n3.__experimentalVStack,{spacing:4,children:n.map(i=>{let l=a?.include?.[i.slug]||[],s=a?.exclude?.[i.slug]||[],c=(u,m)=>{let p={...a?.[m],[i.slug]:u};u.length||delete p[i.slug];let d={...a,[m]:Object.keys(p).length?p:void 0};e({taxQuery:Object.values(d).every(f=>!f)?void 0:d})};return(0,Uu.jsxs)(_c.Fragment,{children:[(0,Uu.jsx)(BY,{taxonomy:i,termIds:l,oppositeTermIds:s,onChange:u=>c(u,"include"),label:i.name}),(0,Uu.jsx)(BY,{taxonomy:i,termIds:s,oppositeTermIds:l,onChange:u=>c(u,"exclude"),label:(0,i3.sprintf)((0,i3.__)("Exclude: %s"),i.name)})]},i.slug)})}):null}function BY({taxonomy:e,termIds:t,oppositeTermIds:o,onChange:a,label:n}){let[i,l]=(0,_c.useState)(""),[s,c]=(0,_c.useState)(pg),[u,m]=(0,_c.useState)(pg),p=(0,PY.useDebounce)(l,250),{searchResults:d,searchHasResolved:f}=(0,KN.useSelect)(y=>{if(!i)return{searchResults:pg,searchHasResolved:!0};let{getEntityRecords:v,hasFinishedResolution:_}=y(QN.store),x=[...t,...o],k=["taxonomy",e.slug,{...TY,search:i,orderby:"name",exclude:x,per_page:20}];return{searchResults:v(...k),searchHasResolved:_("getEntityRecords",k)}},[i,e.slug,t,o]),g=(0,KN.useSelect)(y=>{if(!t?.length)return pg;let{getEntityRecords:v}=y(QN.store);return v("taxonomy",e.slug,{...TY,include:t,per_page:t.length})},[e.slug,t]);return(0,_c.useEffect)(()=>{if(t?.length||c(pg),!g?.length)return;let y=t.reduce((v,_)=>{let x=g.find(k=>k.id===_);return x&&v.push({id:_,value:x.name}),v},[]);c(y)},[t,g]),(0,_c.useEffect)(()=>{f&&m(d.map(y=>y.name))},[d,f]),(0,Uu.jsx)("div",{className:"block-library-query-inspector__taxonomy-control",children:(0,Uu.jsx)(n3.FormTokenField,{label:n,value:s,onInputChange:p,suggestions:u,displayTransform:NY.decodeEntities,onChange:y=>{let v=new Set;for(let _ of y){let x=H0e(d,_);x&&v.add(x)}m(pg),a(Array.from(v))},__experimentalShowHowTo:!1,__next40pxDefaultSize:!0})})}var DY=r(M()),EY=r(A()),LY=r(Y()),Ni=r(B()),MY=r(h()),j0e=[{value:"aside",label:(0,Ni.__)("Aside")},{value:"audio",label:(0,Ni.__)("Audio")},{value:"chat",label:(0,Ni.__)("Chat")},{value:"gallery",label:(0,Ni.__)("Gallery")},{value:"image",label:(0,Ni.__)("Image")},{value:"link",label:(0,Ni.__)("Link")},{value:"quote",label:(0,Ni.__)("Quote")},{value:"standard",label:(0,Ni.__)("Standard")},{value:"status",label:(0,Ni.__)("Status")},{value:"video",label:(0,Ni.__)("Video")}].sort((e,t)=>{let o=e.label.toUpperCase(),a=t.label.toUpperCase();return o<a?-1:o>a?1:0});function O0e(e,t){return e.map(o=>t.find(a=>a.label.toLocaleLowerCase()===o.toLocaleLowerCase())?.value).filter(Boolean)}function RY({onChange:e,query:{format:t}}){let o=Array.isArray(t)?t:[t],{supportedFormats:a}=(0,EY.useSelect)(s=>({supportedFormats:s(LY.store).getThemeSupports().formats}),[]),n=j0e.filter(s=>a.includes(s.value)),i=o.map(s=>n.find(c=>c.value===s)?.label).filter(Boolean),l=n.filter(s=>!o.includes(s.value)).map(s=>s.label);return(0,MY.jsx)(DY.FormTokenField,{label:(0,Ni.__)("Formats"),value:i,suggestions:l,onChange:s=>{e({format:O0e(s,n)})},__experimentalShowHowTo:!1,__experimentalExpandOnFocus:!0,__next40pxDefaultSize:!0})}var zY=r(M()),Op=r(B()),AY=r(h()),U0e=[{label:(0,Op.__)("Include"),value:""},{label:(0,Op.__)("Ignore"),value:"ignore"},{label:(0,Op.__)("Exclude"),value:"exclude"},{label:(0,Op.__)("Only"),value:"only"}];function VY({value:e,onChange:t}){return(0,AY.jsx)(zY.SelectControl,{__next40pxDefaultSize:!0,label:(0,Op.__)("Sticky posts"),options:U0e,value:e,onChange:t,help:(0,Op.__)("Sticky posts always appear first, regardless of their publish date.")})}var jY=r(M()),OY=r(B()),UY=r(h()),FY=1,HY=100,G0e=({perPage:e,offset:t=0,onChange:o})=>(0,UY.jsx)(jY.RangeControl,{__next40pxDefaultSize:!0,label:(0,OY.__)("Items per page"),min:FY,max:HY,onChange:a=>{isNaN(a)||a<FY||a>HY||o({perPage:a,offset:t})},value:parseInt(e,10)}),GY=G0e;var WY=r(M()),qY=r(B()),ZY=r(h()),$Y=0,$0e=100,W0e=({offset:e=0,onChange:t})=>(0,ZY.jsx)(WY.__experimentalNumberControl,{__next40pxDefaultSize:!0,label:(0,qY.__)("Offset"),value:e,min:$Y,onChange:o=>{isNaN(o)||o<$Y||o>$0e||t({offset:o})}}),KY=W0e;var QY=r(M()),YN=r(B()),YY=r(h()),q0e=({pages:e,onChange:t})=>(0,YY.jsx)(QY.__experimentalNumberControl,{__next40pxDefaultSize:!0,label:(0,YN.__)("Max pages to show"),value:e,min:0,onChange:o=>{isNaN(o)||o<0||t({pages:o})},help:(0,YN.__)("Limit the pages you want to show, even if the query has more results. To show all pages use 0 (zero).")}),XY=q0e;var $e=r(h());function oX(e){let{attributes:t,setQuery:o,isSingular:a}=e,{query:n}=t,{order:i,orderBy:l,author:s,pages:c,postType:u,perPage:m,offset:p,sticky:d,inherit:f,taxQuery:g,parents:b,format:y}=n,v=rY(t),_=u==="post",{postTypesTaxonomiesMap:x,postTypesSelectOptions:k,postTypeFormatSupportMap:C}=eY(),T=o3(u),N=tY(u),P=oe=>{let ce={postType:oe},ke=x[oe];if(ke?.length&&g){let rt=qe=>Object.entries(qe||{}).reduce((Yt,[ua,q])=>(ke.includes(ua)&&(Yt[ua]=q),Yt),{}),ht={},yt=rt(g.include);Object.keys(yt).length&&(ht.include=yt);let uo=rt(g.exclude);Object.keys(uo).length&&(ht.exclude=uo),ce.taxQuery=Object.keys(ht).length?ht:void 0}oe!=="post"&&(ce.sticky=""),ce.parents=[],C[oe]||(ce.format=[]),o(ce)},[L,R]=(0,l3.useState)(n.search),z=(0,l3.useMemo)(()=>(0,tX.debounce)(oe=>{o({search:oe})},250),[o]),O=oY(u),V=li(v,"inherit"),I=!f&&li(v,"postType"),F=(0,oo.__)("Post type"),W=(0,oo.__)("Select the type of content to display: posts, pages, or custom post types."),j=!f&&li(v,"order"),K=!f&&_&&li(v,"sticky"),Z=V||I||j||K,te=!!T?.length&&li(v,"taxQuery"),X=li(v,"author"),J=li(v,"search"),ee=li(v,"parents")&&N,ne=C[u],re=(0,JY.useSelect)(oe=>{if(!ne||!li(v,"format"))return!1;let ce=oe(eX.store).getThemeSupports();return ce.formats&&ce.formats.length>0&&ce.formats.some(ke=>ke!=="standard")},[v,ne]),se=te||X||J||ee||re,ue=G(),Ne=li(v,"postCount"),Le=li(v,"offset"),ie=li(v,"pages"),Ee=Ne||Le||ie,de=a&&f;return(0,$e.jsxs)($e.Fragment,{children:[Z&&(0,$e.jsxs)(mt.__experimentalToolsPanel,{label:(0,oo.__)("Settings"),resetAll:()=>{o({postType:"post",order:"desc",orderBy:"date",sticky:"",inherit:!0})},dropdownMenuProps:ue,children:[V&&(0,$e.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!f,label:(0,oo.__)("Query type"),onDeselect:()=>o({inherit:!0}),isShownByDefault:!0,children:(0,$e.jsxs)(mt.__experimentalVStack,{spacing:4,children:[(0,$e.jsxs)(mt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:(0,oo.__)("Query type"),isBlock:!0,onChange:oe=>{o({inherit:oe==="default"})},help:f?(0,oo.__)("Display a list of posts or custom post types based on the current template."):(0,oo.__)("Display a list of posts or custom post types based on specific criteria."),value:f?"default":"custom",children:[(0,$e.jsx)(mt.__experimentalToggleGroupControlOption,{value:"default",label:(0,oo.__)("Default")}),(0,$e.jsx)(mt.__experimentalToggleGroupControlOption,{value:"custom",label:(0,oo.__)("Custom")})]}),de&&(0,$e.jsx)(mt.Notice,{status:"warning",isDismissible:!1,children:(0,oo.__)("Cannot inherit the current template query when placed inside the singular content (e.g., post, page, 404, blank).")})]})}),I&&(0,$e.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>u!=="post",label:F,onDeselect:()=>P("post"),isShownByDefault:!0,children:k.length>2?(0,$e.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,options:k,value:u,label:F,onChange:P,help:W}):(0,$e.jsx)(mt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,isBlock:!0,value:u,label:F,onChange:P,help:W,children:k.map(oe=>(0,$e.jsx)(mt.__experimentalToggleGroupControlOption,{value:oe.value,label:oe.label},oe.value))})}),j&&(0,$e.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>i!=="desc"||l!=="date",label:(0,oo.__)("Order by"),onDeselect:()=>o({order:"desc",orderBy:"date"}),isShownByDefault:!0,children:(0,$e.jsx)(dY,{order:i,orderBy:l,orderByOptions:O,onChange:o})}),K&&(0,$e.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!d,label:(0,oo.__)("Sticky posts"),onDeselect:()=>o({sticky:""}),isShownByDefault:!0,children:(0,$e.jsx)(VY,{value:d,onChange:oe=>o({sticky:oe})})})]}),!f&&Ee&&(0,$e.jsxs)(mt.__experimentalToolsPanel,{className:"block-library-query-toolspanel__display",label:(0,oo.__)("Display"),resetAll:()=>{o({offset:0,pages:0})},dropdownMenuProps:ue,children:[(0,$e.jsx)(mt.__experimentalToolsPanelItem,{label:(0,oo.__)("Items per page"),hasValue:()=>m>0,children:(0,$e.jsx)(GY,{perPage:m,offset:p,onChange:o})}),(0,$e.jsx)(mt.__experimentalToolsPanelItem,{label:(0,oo.__)("Offset"),hasValue:()=>p>0,onDeselect:()=>o({offset:0}),children:(0,$e.jsx)(KY,{offset:p,onChange:o})}),(0,$e.jsx)(mt.__experimentalToolsPanelItem,{label:(0,oo.__)("Max pages to show"),hasValue:()=>c>0,onDeselect:()=>o({pages:0}),children:(0,$e.jsx)(XY,{pages:c,onChange:o})})]}),!f&&se&&(0,$e.jsxs)(mt.__experimentalToolsPanel,{className:"block-library-query-toolspanel__filters",label:(0,oo.__)("Filters"),resetAll:()=>{o({author:"",parents:[],search:"",taxQuery:null,format:[]}),R("")},dropdownMenuProps:ue,children:[te&&(0,$e.jsx)(mt.__experimentalToolsPanelItem,{label:(0,oo.__)("Taxonomies"),hasValue:()=>Object.values(g||{}).some(oe=>Object.values(oe||{}).some(ce=>!!ce?.length)),onDeselect:()=>o({taxQuery:null}),children:(0,$e.jsx)(IY,{onChange:o,query:n})}),X&&(0,$e.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,oo.__)("Authors"),onDeselect:()=>o({author:""}),children:(0,$e.jsx)(yY,{value:s,onChange:o})}),J&&(0,$e.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!L,label:(0,oo.__)("Keyword"),onDeselect:()=>{o({search:""}),R("")},children:(0,$e.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,label:(0,oo.__)("Keyword"),value:L,onChange:oe=>{z(oe),R(oe)}})}),ee&&(0,$e.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!b?.length,label:(0,oo.__)("Parents"),onDeselect:()=>o({parents:[]}),children:(0,$e.jsx)(SY,{parents:b,postType:u,onChange:o})}),re&&(0,$e.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!y?.length,label:(0,oo.__)("Formats"),onDeselect:()=>o({format:[]}),children:(0,$e.jsx)(RY,{onChange:o,query:n})})]})]})}var fg=r(M()),$1=r(B()),s3=r(H());var dg=r(h()),rX="wp-block-query-enhanced-pagination-modal__description";function aX({clientId:e,attributes:{enhancedPagination:t},setAttributes:o}){let[a,n]=(0,s3.useState)(!1),i=r3(e);(0,s3.useEffect)(()=>{t&&i&&(o({enhancedPagination:!1}),n(!0))},[t,i,o]);let l=()=>{n(!1)},s=(0,$1.__)("Currently, avoiding full page reloads is not possible when non-interactive or non-client Navigation compatible blocks from plugins are present inside the Query block.")+" "+(0,$1.__)('If you still want to prevent full page reloads, remove that block, then disable "Reload full page" again in the Query Block settings.');return a&&(0,dg.jsx)(fg.Modal,{title:(0,$1.__)("Query block: Reload full page enabled"),className:"wp-block-query__enhanced-pagination-modal",aria:{describedby:rX},role:"alertdialog",focusOnMount:"firstElement",isDismissible:!1,onRequestClose:l,children:(0,dg.jsxs)(fg.__experimentalVStack,{alignment:"right",spacing:5,children:[(0,dg.jsx)("span",{id:rX,children:s}),(0,dg.jsx)(fg.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:l,children:(0,$1.__)("OK")})]})})}var vg=r(M()),JN=r(B());var gg=r(H()),lX=r(A()),u3=r(M()),hg=r(S()),c3=r(B());var iX=r(U0());function nX(e=""){return e=(0,iX.default)(e),e=e.trim().toLowerCase(),e}function Z0e(e,t){let o=nX(t),a=nX(e.title),n=0;return o===a?n+=30:a.startsWith(o)?n+=20:o.split(" ").every(s=>a.includes(s))&&(n+=10),n}function W1(e=[],t=""){if(!t)return e;let o=e.map(a=>[a,Z0e(a,t)]).filter(([,a])=>a>0);return o.sort(([,a],[,n])=>n-a),o.map(([a])=>a)}var kc=r(h());function sX({clientId:e,attributes:t,setIsPatternSelectionModalOpen:o}){return(0,kc.jsx)(u3.Modal,{overlayClassName:"block-library-query-pattern__selection-modal",title:(0,c3.__)("Choose a pattern"),onRequestClose:()=>o(!1),isFullScreen:!0,children:(0,kc.jsx)(XN,{clientId:e,attributes:t})})}function q1(e,t){let o=nY(e,t),a=lY(e,o);return(0,gg.useMemo)(()=>a.filter(i=>i.blocks?.[0]?.name==="core/query"),[a])}function XN({clientId:e,attributes:t,showTitlesAsTooltip:o=!1,showSearch:a=!0}){let[n,i]=(0,gg.useState)(""),{replaceBlock:l,selectBlock:s}=(0,lX.useDispatch)(hg.store),c=q1(e,t),u=(0,gg.useMemo)(()=>({previewPostType:t.query.postType}),[t.query.postType]),m=(0,gg.useMemo)(()=>W1(c,n),[c,n]),p=(d,f)=>{let{newBlocks:g,queryClientIds:b}=aY(f,t);l(e,g),b[0]&&s(b[0])};return(0,kc.jsxs)("div",{className:"block-library-query-pattern__selection-content",children:[a&&(0,kc.jsx)("div",{className:"block-library-query-pattern__selection-search",children:(0,kc.jsx)(u3.SearchControl,{onChange:i,value:n,label:(0,c3.__)("Search"),placeholder:(0,c3.__)("Search")})}),(0,kc.jsx)(hg.BlockContextProvider,{value:u,children:(0,kc.jsx)(hg.__experimentalBlockPatternsList,{blockPatterns:m,onClickPattern:p,showTitlesAsTooltip:o})})]})}var Z1=r(h());function m3({clientId:e,attributes:t,hasInnerBlocks:o}){if(!q1(e,t).length)return null;let n=o?(0,JN.__)("Change design"):(0,JN.__)("Choose pattern");return(0,Z1.jsx)(vg.__experimentalDropdownContentWrapper,{children:(0,Z1.jsx)(vg.Dropdown,{contentClassName:"block-editor-block-settings-menu__popover",focusOnMount:"firstElement",expandOnMobile:!0,renderToggle:({isOpen:i,onToggle:l})=>(0,Z1.jsx)(vg.ToolbarButton,{"aria-haspopup":"true","aria-expanded":i,onClick:l,children:n}),renderContent:()=>(0,Z1.jsx)(XN,{clientId:e,attributes:t,showSearch:!1,showTitlesAsTooltip:!0})})})}var vn=r(h()),{HTMLElementControl:K0e}=Q(bn.privateApis),Q0e=3,Y0e=[["core/post-template"]];function eI({attributes:e,setAttributes:t,clientId:o,context:a,name:n}){let{queryId:i,query:l,enhancedPagination:s,tagName:c="div",query:{inherit:u}={}}=e,{templateSlug:m}=a,{isSingular:p}=sY(m),{__unstableMarkNextChangeAsNotPersistent:d}=(0,p3.useDispatch)(bn.store),f=(0,cX.useInstanceId)(eI),g=(0,bn.useBlockProps)(),b=(0,bn.useInnerBlocksProps)(g,{template:Y0e}),{postsPerPage:y}=(0,p3.useSelect)(_=>{let{getSettings:x}=_(bn.store),{getEntityRecord:k,getEntityRecordEdits:C,canUser:T}=_(mX.store),N=T("read",{kind:"root",name:"site"})?+k("root","site")?.posts_per_page:+x().postsPerPage;return{postsPerPage:+C("root","site")?.posts_per_page||N||Q0e}},[]),v=(0,K1.useCallback)(_=>t(x=>({query:{...x.query,..._}})),[t]);return(0,K1.useEffect)(()=>{let _={};(u&&l.perPage!==y||!l.perPage&&y)&&(_.perPage=y),Object.keys(_).length&&(d(),v(_))},[l.perPage,u,y,d,v]),(0,K1.useEffect)(()=>{Number.isFinite(i)||(d(),t({queryId:f}))},[i,f,d,t]),(0,vn.jsxs)(vn.Fragment,{children:[(0,vn.jsx)(bn.BlockControls,{group:"other",children:(0,vn.jsx)(m3,{clientId:o,attributes:e,hasInnerBlocks:!0})}),(0,vn.jsx)(aX,{attributes:e,setAttributes:t,clientId:o}),(0,vn.jsx)(bn.InspectorControls,{children:(0,vn.jsx)(oX,{name:n,attributes:e,setQuery:v,setAttributes:t,clientId:o,isSingular:p})}),(0,vn.jsxs)(bn.InspectorControls,{group:"advanced",children:[(0,vn.jsx)(K0e,{tagName:c,onChange:_=>t({tagName:_}),clientId:o,options:[{label:(0,uX.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]}),(0,vn.jsx)(uY,{enhancedPagination:s,setAttributes:t,clientId:o})]}),(0,vn.jsx)(c,{...b})]})}var f3=r(A()),g3=r(U()),tI=r(H()),wc=r(S()),Q1=r(M()),d3=r(B()),pX=r(we());var Cl=r(h());function dX({attributes:e,clientId:t,name:o,openPatternSelectionModal:a}){let[n,i]=(0,tI.useState)(!1),[l,s]=(0,tI.useState)(0),c=(0,pX.useResizeObserver)(([v])=>{s(v.contentRect.width)}),m=l>0&&l<160,{blockType:p,activeBlockVariation:d}=(0,f3.useSelect)(v=>{let{getActiveBlockVariation:_,getBlockType:x}=v(g3.store);return{blockType:x(o),activeBlockVariation:_(o,e)}},[o,e]),f=!!q1(t,e).length,g=d?.icon?.src||d?.icon||p?.icon?.src,b=d?.title||p?.title,y=(0,wc.useBlockProps)({ref:c});return n?(0,Cl.jsx)(X0e,{clientId:t,attributes:e,icon:g,label:b}):(0,Cl.jsxs)("div",{...y,children:[(0,Cl.jsx)(wc.BlockControls,{children:(0,Cl.jsx)(m3,{clientId:t,attributes:e,hasInnerBlocks:!1})}),(0,Cl.jsxs)(Q1.Placeholder,{className:"block-editor-media-placeholder",icon:!m&&g,label:!m&&b,instructions:!m&&(0,d3.__)("Choose a pattern for the query loop or start blank."),withIllustration:m,children:[!!f&&!m&&(0,Cl.jsx)(Q1.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:a,children:(0,d3.__)("Choose")}),!m&&(0,Cl.jsx)(Q1.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{i(!0)},children:(0,d3.__)("Start blank")})]})]})}function X0e({clientId:e,attributes:t,icon:o,label:a}){let n=iY(t),{replaceInnerBlocks:i}=(0,f3.useDispatch)(wc.store),l=(0,wc.useBlockProps)();return(0,Cl.jsx)("div",{...l,children:(0,Cl.jsx)(wc.__experimentalBlockVariationPicker,{icon:o,label:a,variations:n,onSelect:s=>{s.innerBlocks&&i(e,(0,g3.createBlocksFromInnerBlocksTemplate)(s.innerBlocks),!1)}})})}var Up=r(h()),J0e=e=>{let{clientId:t,attributes:o}=e,[a,n]=(0,gX.useState)(!1),l=(0,fX.useSelect)(s=>!!s(hX.store).getBlocks(t).length,[t])?eI:dX;return(0,Up.jsxs)(Up.Fragment,{children:[(0,Up.jsx)(l,{...e,openPatternSelectionModal:()=>n(!0)}),a&&(0,Up.jsx)(sX,{clientId:t,attributes:o,setIsPatternSelectionModalOpen:n})]})},vX=J0e;var h3=r(S()),bX=r(h());function yX({attributes:{tagName:e="div"}}){let t=h3.useBlockProps.save(),o=h3.useInnerBlocksProps.save(t);return(0,bX.jsx)(e,{...o})}var Y1=r(B());var Cs=r(M()),Cc=r(h()),xX=(0,Cc.jsx)(Cs.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,Cc.jsx)(Cs.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zM7 26h12v1H7v-1zm34-5H7v3h34v-3zM7 38h12v1H7v-1zm34-5H7v3h34v-3z"})}),_X=(0,Cc.jsx)(Cs.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,Cc.jsx)(Cs.Path,{d:"M41 9H7v3h34V9zm-4 5H7v1h30v-1zm4 3H7v1h34v-1zM7 20h30v1H7v-1zm0 12h30v1H7v-1zm34 3H7v1h34v-1zM7 38h30v1H7v-1zm34-11H7v3h34v-3z"})}),kX=(0,Cc.jsx)(Cs.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,Cc.jsx)(Cs.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zm22 3H7v1h34v-1zM7 20h34v1H7v-1zm0 12h12v1H7v-1zm34 3H7v1h34v-1zM7 38h34v1H7v-1zm34-11H7v3h34v-3z"})}),wX=(0,Cc.jsx)(Cs.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,Cc.jsx)(Cs.Path,{d:"M7 9h34v6H7V9zm12 8H7v1h12v-1zm18 3H7v1h30v-1zm0 18H7v1h30v-1zM7 35h12v1H7v-1zm34-8H7v6h34v-6z"})});var oI=["core/post-date",{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}],e1e=[{name:"title-date",title:(0,Y1.__)("Title & Date"),icon:xX,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],oI]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-excerpt",title:(0,Y1.__)("Title & Excerpt"),icon:_X,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,Y1.__)("Title, Date, & Excerpt"),icon:kX,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],oI,["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"image-date-title",title:(0,Y1.__)("Image, Date, & Title"),icon:wX,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-featured-image"],oI,["core/post-title"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]}],CX=e1e;var v3=r(U()),ca=r(S());var Gp=r(h()),{cleanEmptyObject:rI}=Q(ca.privateApis),aI=e=>{let{query:t}=e,{categoryIds:o,tagIds:a,taxQuery:n,...i}=t;return(o?.length||a?.length)&&(i.taxQuery={include:{category:o?.length?o:void 0,post_tag:a?.length?a:void 0}}),Object.keys(n||{}).length&&(i.taxQuery={include:n}),{...e,query:i}},SX=(e,t)=>{let{style:o,backgroundColor:a,gradient:n,textColor:i,...l}=e;if(!(a||n||i||o?.color||o?.elements?.link))return[e,t];if(o&&(l.style=rI({...o,color:void 0,elements:{...o.elements,link:void 0}})),t1e(t)){let u=t[0],p=o?.color||o?.elements?.link||u.attributes.style?rI({...u.attributes.style,color:o?.color,elements:o?.elements?.link?{link:o?.elements?.link}:void 0}):void 0,d=(0,v3.createBlock)("core/group",{...u.attributes,backgroundColor:a,gradient:n,textColor:i,style:p},u.innerBlocks);return[l,[d]]}let c=(0,v3.createBlock)("core/group",{backgroundColor:a,gradient:n,textColor:i,style:rI({color:o?.color,elements:o?.elements?.link?{link:o?.elements?.link}:void 0})},t);return[l,[c]]},t1e=(e=[])=>e.length===1&&e[0].name==="core/group",nI=e=>{let{layout:t=null}=e;if(!t)return e;let{inherit:o=null,contentSize:a=null,...n}=t;return o||a?{...e,layout:{...n,contentSize:a,type:"constrained"}}:e},TX=(e=[])=>{let t=null;for(let o of e)if(o.name==="core/post-template"){t=o;break}else o.innerBlocks.length&&(t=TX(o.innerBlocks));return t},BX=(e=[],t)=>(e.forEach((o,a)=>{o.name==="core/post-template"?e.splice(a,1,t):o.innerBlocks.length&&(o.innerBlocks=BX(o.innerBlocks,t))}),e),bg=(e,t)=>{let{displayLayout:o=null,...a}=e;if(!o)return[e,t];let n=TX(t);if(!n)return[e,t];let{type:i,columns:l}=o,s=i==="flex"?"grid":"default",c=(0,v3.createBlock)("core/post-template",{...n.attributes,layout:{type:s,...l&&{columnCount:l}}},n.innerBlocks);return[a,BX(t,c)]},o1e={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 o=aI(e),{layout:a,...n}=o,i={...n,displayLayout:o.layout};return bg(i,t)},save(){return(0,Gp.jsx)(ca.InnerBlocks.Content,{})}},r1e={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 o=aI(e),[a,n]=SX(o,t),i=nI(a);return bg(i,n)},save({attributes:{tagName:e="div"}}){let t=ca.useBlockProps.save(),o=ca.useInnerBlocksProps.save(t);return(0,Gp.jsx)(e,{...o})}},a1e={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:o,gradient:a,textColor:n}=e;return o||a||n||t?.color||t?.elements?.link},migrate(e,t){let[o,a]=SX(e,t),n=nI(o);return bg(n,a)},save({attributes:{tagName:e="div"}}){let t=ca.useBlockProps.save(),o=ca.useInnerBlocksProps.save(t);return(0,Gp.jsx)(e,{...o})}},n1e={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=ca.useBlockProps.save(),o=ca.useInnerBlocksProps.save(t);return(0,Gp.jsx)(e,{...o})},isEligible:({layout:e})=>e?.inherit||e?.contentSize&&e?.type!=="constrained",migrate(e,t){let o=nI(e);return bg(o,t)}},i1e={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=ca.useBlockProps.save(),o=ca.useInnerBlocksProps.save(t);return(0,Gp.jsx)(e,{...o})},isEligible:({displayLayout:e})=>!!e,migrate:bg},l1e={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=ca.useBlockProps.save(),o=ca.useInnerBlocksProps.save(t);return(0,Gp.jsx)(e,{...o})},isEligible:({query:{taxQuery:e}={}})=>!!e&&Object.keys(e).some(t=>!["include","exclude"].includes(t)),migrate(e,t){let o=aI(e);return bg(o,t)}},s1e=[l1e,i1e,n1e,a1e,r1e,o1e],PX=s1e;var{name:NX}=e3,IX={icon:Cm,edit:vX,example:{viewportWidth:650,attributes:{namespace:"core/posts-list",query:{perPage:4,pages:1,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",sticky:"exclude",inherit:!1}},innerBlocks:[{name:"core/post-template",attributes:{layout:{type:"grid",columnCount:2}},innerBlocks:[{name:"core/post-title"},{name:"core/post-date",attributes:{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}},{name:"core/post-excerpt"}]}]},save:yX,variations:CX,deprecated:PX},c1e=()=>D({name:NX,metadata:e3,settings:IX});var lI={};$(lI,{init:()=>p1e,metadata:()=>b3,name:()=>VX,settings:()=>FX});var AX=r(B());var b3={$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:{align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}};var y3=r(S()),DX=r(B()),EX=r(h()),m1e=[["core/paragraph",{placeholder:(0,DX.__)("Add text or blocks that will display when a query returns no results.")}]];function LX(){let e=(0,y3.useBlockProps)(),t=(0,y3.useInnerBlocksProps)(e,{template:m1e});return(0,EX.jsx)("div",{...t})}var MX=r(S()),RX=r(h());function zX(){return(0,RX.jsx)(MX.InnerBlocks.Content,{})}var{name:VX}=b3,FX={icon:Cm,edit:LX,save:zX,example:{innerBlocks:[{name:"core/paragraph",attributes:{content:(0,AX.__)("No posts were found.")}}]}},p1e=()=>D({name:VX,metadata:b3,settings:FX});var uI={};$(uI,{init:()=>h1e,metadata:()=>x3,name:()=>QX,settings:()=>YX});var x3={$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:{align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-query-pagination-editor",style:"wp-block-query-pagination"};var _3=r(B()),Sc=r(S()),k3=r(A()),X1=r(M()),GX=r(H());var $p=r(B()),yg=r(M()),xg=r(h());function HX({value:e,onChange:t}){return(0,xg.jsxs)(yg.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:(0,$p.__)("Arrow"),value:e,onChange:t,help:(0,$p.__)("A decorative arrow appended to the next and previous page link."),isBlock:!0,children:[(0,xg.jsx)(yg.__experimentalToggleGroupControlOption,{value:"none",label:(0,$p._x)("None","Arrow option for Query Pagination Next/Previous blocks")}),(0,xg.jsx)(yg.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,$p._x)("Arrow","Arrow option for Query Pagination Next/Previous blocks")}),(0,xg.jsx)(yg.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,$p._x)("Chevron","Arrow option for Query Pagination Next/Previous blocks")})]})}var sI=r(B()),jX=r(M()),OX=r(h());function UX({value:e,onChange:t}){return(0,OX.jsx)(jX.ToggleControl,{label:(0,sI.__)("Show label text"),help:(0,sI.__)('Make label text visible, e.g. "Next Page".'),onChange:t,checked:e===!0})}var Ii=r(h()),f1e=[["core/query-pagination-previous"],["core/query-pagination-numbers"],["core/query-pagination-next"]];function $X({attributes:{paginationArrow:e,showLabel:t},setAttributes:o,clientId:a}){let n=(0,k3.useSelect)(u=>{let{getBlocks:m}=u(Sc.store);return m(a)?.find(d=>["core/query-pagination-next","core/query-pagination-previous"].includes(d.name))},[a]),{__unstableMarkNextChangeAsNotPersistent:i}=(0,k3.useDispatch)(Sc.store),l=G(),s=(0,Sc.useBlockProps)(),c=(0,Sc.useInnerBlocksProps)(s,{template:f1e});return(0,GX.useEffect)(()=>{e==="none"&&!t&&(i(),o({showLabel:!0}))},[e,o,t,i]),(0,Ii.jsxs)(Ii.Fragment,{children:[n&&(0,Ii.jsx)(Sc.InspectorControls,{children:(0,Ii.jsxs)(X1.__experimentalToolsPanel,{label:(0,_3.__)("Settings"),resetAll:()=>{o({paginationArrow:"none",showLabel:!0})},dropdownMenuProps:l,children:[(0,Ii.jsx)(X1.__experimentalToolsPanelItem,{hasValue:()=>e!=="none",label:(0,_3.__)("Pagination arrow"),onDeselect:()=>o({paginationArrow:"none"}),isShownByDefault:!0,children:(0,Ii.jsx)(HX,{value:e,onChange:u=>{o({paginationArrow:u})}})}),e!=="none"&&(0,Ii.jsx)(X1.__experimentalToolsPanelItem,{hasValue:()=>!t,label:(0,_3.__)("Show text"),onDeselect:()=>o({showLabel:!0}),isShownByDefault:!0,children:(0,Ii.jsx)(UX,{value:t,onChange:u=>{o({showLabel:u})}})})]})}),(0,Ii.jsx)("nav",{...c})]})}var WX=r(S()),qX=r(h());function ZX(){return(0,qX.jsx)(WX.InnerBlocks.Content,{})}var w3=r(S()),cI=r(h()),g1e=[{save(){return(0,cI.jsx)("div",{...w3.useBlockProps.save(),children:(0,cI.jsx)(w3.InnerBlocks.Content,{})})}}],KX=g1e;var{name:QX}=x3,YX={icon:Kh,edit:$X,save:ZX,deprecated:KX},h1e=()=>D({name:QX,metadata:x3,settings:YX});var pI={};$(pI,{init:()=>y1e,metadata:()=>C3,name:()=>JX,settings:()=>eJ});var C3={$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:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}};var mI=r(B()),S3=r(S()),J1=r(h()),b1e={none:"",arrow:"\u2192",chevron:"\xBB"};function XX({attributes:{label:e},setAttributes:t,context:{paginationArrow:o,showLabel:a}}){let n=b1e[o];return(0,J1.jsxs)("a",{href:"#pagination-next-pseudo-link",onClick:i=>i.preventDefault(),...(0,S3.useBlockProps)(),children:[a&&(0,J1.jsx)(S3.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,mI.__)("Next page link"),placeholder:(0,mI.__)("Next Page"),value:e,onChange:i=>t({label:i})}),n&&(0,J1.jsx)("span",{className:`wp-block-query-pagination-next-arrow is-arrow-${o}`,"aria-hidden":!0,children:n})]})}var{name:JX}=C3,eJ={icon:Wh,edit:XX},y1e=()=>D({name:JX,metadata:C3,settings:eJ});var dI={};$(dI,{init:()=>k1e,metadata:()=>T3,name:()=>oJ,settings:()=>rJ});var T3={$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:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-query-pagination-numbers-editor"};var t2=r(B()),B3=r(S()),_g=r(M());var si=r(h()),e2=(e,t="a",o="")=>(0,si.jsx)(t,{className:`page-numbers ${o}`,children:e},e),_1e=e=>{let t=[];for(let o=1;o<=e;o++)t.push(e2(o));t.push(e2(e+1,"span","current"));for(let o=1;o<=e;o++)t.push(e2(e+1+o));return t.push(e2("...","span","dots")),t.push(e2(e*2+3)),(0,si.jsx)(si.Fragment,{children:t})};function tJ({attributes:e,setAttributes:t}){let{midSize:o}=e,a=_1e(parseInt(o,10)),n=G();return(0,si.jsxs)(si.Fragment,{children:[(0,si.jsx)(B3.InspectorControls,{children:(0,si.jsx)(_g.__experimentalToolsPanel,{label:(0,t2.__)("Settings"),resetAll:()=>t({midSize:2}),dropdownMenuProps:n,children:(0,si.jsx)(_g.__experimentalToolsPanelItem,{label:(0,t2.__)("Number of links"),hasValue:()=>o!==2,onDeselect:()=>t({midSize:2}),isShownByDefault:!0,children:(0,si.jsx)(_g.RangeControl,{__next40pxDefaultSize:!0,label:(0,t2.__)("Number of links"),help:(0,t2.__)("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:o,onChange:i=>{t({midSize:parseInt(i,10)})},min:0,max:5,withInputField:!1})})})}),(0,si.jsx)("div",{...(0,B3.useBlockProps)(),children:a})]})}var{name:oJ}=T3,rJ={icon:qh,edit:tJ,example:{}},k1e=()=>D({name:oJ,metadata:T3,settings:rJ});var gI={};$(gI,{init:()=>S1e,metadata:()=>P3,name:()=>nJ,settings:()=>iJ});var P3={$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:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}};var fI=r(B()),N3=r(S()),o2=r(h()),C1e={none:"",arrow:"\u2190",chevron:"\xAB"};function aJ({attributes:{label:e},setAttributes:t,context:{paginationArrow:o,showLabel:a}}){let n=C1e[o];return(0,o2.jsxs)("a",{href:"#pagination-previous-pseudo-link",onClick:i=>i.preventDefault(),...(0,N3.useBlockProps)(),children:[n&&(0,o2.jsx)("span",{className:`wp-block-query-pagination-previous-arrow is-arrow-${o}`,"aria-hidden":!0,children:n}),a&&(0,o2.jsx)(N3.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,fI.__)("Previous page link"),placeholder:(0,fI.__)("Previous Page"),value:e,onChange:i=>t({label:i})})]})}var{name:nJ}=P3,iJ={icon:Zh,edit:aJ},S1e=()=>D({name:nJ,metadata:P3,settings:iJ});var yI={};$(yI,{init:()=>N1e,metadata:()=>I3,name:()=>fJ,settings:()=>gJ});var I3={$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"},textAlign:{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:{align:["wide","full"],html:!1,color:{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}},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 yn=r(S()),Di=r(M()),Mt=r(B());var hI=r(Y()),vI=r(A());function lJ(){let e=(0,vI.useSelect)(l=>{let{getCurrentPostId:s,getCurrentPostType:c,getCurrentTemplateId:u}=l("core/editor"),m=c(),p=u()||(m==="wp_template"?s():null);return p?l(hI.store).getEditedEntityRecord("postType","wp_template",p)?.slug:null},[]),t=e?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/),o,a,n=!1,i;if(t)t[1]?o=t[2]?t[2]:t[1]:t[3]&&(o=t[6]?t[6]:t[4],a=t[7]),o=o==="tag"?"post_tag":o;else{let l=e?.match(/^(author)$|^author-(.+)$/);l&&(n=!0,l[2]&&(i=l[2]))}return(0,vI.useSelect)(l=>{let{getEntityRecords:s,getTaxonomy:c,getAuthors:u}=l(hI.store),m,p;if(o&&(m=c(o)?.labels?.singular_name),a){let d=s("taxonomy",o,{slug:a,per_page:1});d&&d[0]&&(p=d[0].name)}if(n&&(m="Author",i)){let d=u({slug:i});d&&d[0]&&(p=d[0].name)}return{archiveTypeLabel:m,archiveNameLabel:p}},[i,n,o,a])}var sJ=r(Y()),bI=r(A());function cJ(e){let t=(0,bI.useSelect)(o=>{let{getCurrentPostType:a}=o("core/editor");return a()},[]);return(0,bI.useSelect)(o=>{let{getPostType:a}=o(sJ.store),i=a(e||t);return{postTypeLabel:i?i.labels.singular_name:""}},[e,t])}var gt=r(h()),B1e=["archive","search","post-type"];function uJ({attributes:{type:e,level:t,levelOptions:o,textAlign:a,showPrefix:n,showSearchTerm:i},setAttributes:l,context:{query:s}}){let{archiveTypeLabel:c,archiveNameLabel:u}=lJ(),{postTypeLabel:m}=cJ(s?.postType),p=G(),d=t===0?"p":`h${t}`,f=(0,yn.useBlockProps)({className:w("wp-block-query-title__placeholder",{[`has-text-align-${a}`]:a})});if(!B1e.includes(e))return(0,gt.jsx)("div",{...f,children:(0,gt.jsx)(yn.Warning,{children:(0,Mt.__)("Provided type is not supported.")})});let g;if(e==="archive"){let b;c?n?u?b=(0,Mt.sprintf)((0,Mt._x)("%1$s: %2$s","archive label"),c,u):b=(0,Mt.sprintf)((0,Mt.__)("%s: Name"),c):u?b=u:b=(0,Mt.sprintf)((0,Mt.__)("%s name"),c):b=n?(0,Mt.__)("Archive type: Name"):(0,Mt.__)("Archive title"),g=(0,gt.jsxs)(gt.Fragment,{children:[(0,gt.jsx)(yn.InspectorControls,{children:(0,gt.jsx)(Di.__experimentalToolsPanel,{label:(0,Mt.__)("Settings"),resetAll:()=>l({showPrefix:!0}),dropdownMenuProps:p,children:(0,gt.jsx)(Di.__experimentalToolsPanelItem,{hasValue:()=>!n,label:(0,Mt.__)("Show archive type in title"),onDeselect:()=>l({showPrefix:!0}),isShownByDefault:!0,children:(0,gt.jsx)(Di.ToggleControl,{label:(0,Mt.__)("Show archive type in title"),onChange:()=>l({showPrefix:!n}),checked:n})})})}),(0,gt.jsx)(d,{...f,children:b})]})}if(e==="search"&&(g=(0,gt.jsxs)(gt.Fragment,{children:[(0,gt.jsx)(yn.InspectorControls,{children:(0,gt.jsx)(Di.__experimentalToolsPanel,{label:(0,Mt.__)("Settings"),resetAll:()=>l({showSearchTerm:!0}),dropdownMenuProps:p,children:(0,gt.jsx)(Di.__experimentalToolsPanelItem,{hasValue:()=>!i,label:(0,Mt.__)("Show search term in title"),onDeselect:()=>l({showSearchTerm:!0}),isShownByDefault:!0,children:(0,gt.jsx)(Di.ToggleControl,{label:(0,Mt.__)("Show search term in title"),onChange:()=>l({showSearchTerm:!i}),checked:i})})})}),(0,gt.jsx)(d,{...f,children:i?(0,Mt.__)("Search results for: \u201Csearch term\u201D"):(0,Mt.__)("Search results")})]})),e==="post-type"){let b;m?n?b=(0,Mt.sprintf)((0,Mt.__)('Post Type: "%s"'),m):b=m:b=n?(0,Mt.__)("Post Type: Name"):(0,Mt.__)("Name"),g=(0,gt.jsxs)(gt.Fragment,{children:[(0,gt.jsx)(yn.InspectorControls,{children:(0,gt.jsx)(Di.__experimentalToolsPanel,{label:(0,Mt.__)("Settings"),resetAll:()=>l({showPrefix:!0}),dropdownMenuProps:p,children:(0,gt.jsx)(Di.__experimentalToolsPanelItem,{hasValue:()=>!n,label:(0,Mt.__)("Show post type label"),onDeselect:()=>l({showPrefix:!0}),isShownByDefault:!0,children:(0,gt.jsx)(Di.ToggleControl,{label:(0,Mt.__)("Show post type label"),onChange:()=>l({showPrefix:!n}),checked:n})})})}),(0,gt.jsx)(d,{...f,children:b})]})}return(0,gt.jsxs)(gt.Fragment,{children:[(0,gt.jsxs)(yn.BlockControls,{group:"block",children:[(0,gt.jsx)(yn.HeadingLevelDropdown,{value:t,options:o,onChange:b=>l({level:b})}),(0,gt.jsx)(yn.AlignmentControl,{value:a,onChange:b=>{l({textAlign:b})}})]}),g]})}var Wp=r(B());var mJ=[{isDefault:!0,name:"archive-title",title:(0,Wp.__)("Archive Title"),description:(0,Wp.__)("Display the archive title based on the queried object."),icon:$i,attributes:{type:"archive"},scope:["inserter"]},{isDefault:!1,name:"search-title",title:(0,Wp.__)("Search Results Title"),description:(0,Wp.__)("Display the search results title based on the queried object."),icon:$i,attributes:{type:"search"},scope:["inserter"]},{isDefault:!1,name:"post-type-label",title:(0,Wp.__)("Post Type Label"),description:(0,Wp.__)("Display the post type label based on the queried object."),icon:$i,attributes:{type:"post-type"},scope:["inserter"]}];mJ.forEach(e=>{e.isActive||(e.isActive=(t,o)=>t.type===o.type)});var pJ=mJ;var P1e={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:Nt,isEligible({style:e}){return e?.typography?.fontFamily}},dJ=[P1e];var{name:fJ}=I3,gJ={icon:$i,edit:uJ,variations:pJ,deprecated:dJ},N1e=()=>D({name:fJ,metadata:I3,settings:gJ});var kI={};$(kI,{init:()=>D1e,metadata:()=>D3,name:()=>bJ,settings:()=>yJ});var D3={$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:{align:["wide","full"],html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-query-total"};var E3=r(S()),L3=r(M()),kg=r(B());var Gu=r(M()),qp=r(h()),xI=(0,qp.jsx)(Gu.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,qp.jsx)(Gu.Path,{d:"M4 11h4v2H4v-2zm6 0h6v2h-6v-2zm8 0h2v2h-2v-2z"})}),_I=(0,qp.jsx)(Gu.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,qp.jsx)(Gu.Path,{d:"M4 13h2v-2H4v2zm4 0h10v-2H8v2zm12 0h2v-2h-2v2z"})}),hJ=(0,qp.jsx)(Gu.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,qp.jsx)(Gu.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 Sl=r(h());function vJ({attributes:e,setAttributes:t}){let{displayType:o}=e,a=(0,E3.useBlockProps)(),n=()=>{switch(o){case"total-results":return xI;case"range-display":return _I}},i=[{role:"menuitemradio",title:(0,kg.__)("Total results"),isActive:o==="total-results",icon:xI,onClick:()=>{t({displayType:"total-results"})}},{role:"menuitemradio",title:(0,kg.__)("Range display"),isActive:o==="range-display",icon:_I,onClick:()=>{t({displayType:"range-display"})}}],l=(0,Sl.jsx)(E3.BlockControls,{children:(0,Sl.jsx)(L3.ToolbarGroup,{children:(0,Sl.jsx)(L3.ToolbarDropdownMenu,{icon:n(),label:(0,kg.__)("Change display type"),controls:i})})});return(0,Sl.jsxs)("div",{...a,children:[l,o==="total-results"?(0,Sl.jsx)(Sl.Fragment,{children:(0,kg.__)("12 results found")}):o==="range-display"?(0,Sl.jsx)(Sl.Fragment,{children:(0,kg.__)("Displaying 1 \u2013 10 of 12")}):null]})}var{name:bJ}=D3,yJ={icon:hJ,edit:vJ},D1e=()=>D({name:bJ,metadata:D3,settings:yJ});var CI={};$(CI,{init:()=>O1e,metadata:()=>A3,name:()=>BJ,settings:()=>PJ});var wI=r(B());var r2=r(U()),Mo=r(S()),Ar=r(h()),$u=e=>{let{value:t,...o}=e;return[{...o},t?(0,r2.parseWithAttributeSchema)(t,{type:"array",source:"query",selector:"p",query:{content:{type:"string",source:"html"}}}).map(({content:a})=>(0,r2.createBlock)("core/paragraph",{content:a})):(0,r2.createBlock)("core/paragraph")]},xJ=["left","right","center"],Zp=(e,t)=>{let{align:o,...a}=e;return[xJ.includes(o)?{...a,textAlign:o}:e,t]},E1e=(e,t)=>[{...e,className:e.className?e.className+" is-style-large":"is-style-large"},t],L1e={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})=>xJ.includes(e),save({attributes:e}){let{align:t,citation:o}=e,a=w({[`has-text-align-${t}`]:t});return(0,Ar.jsxs)("blockquote",{...Mo.useBlockProps.save({className:a}),children:[(0,Ar.jsx)(Mo.InnerBlocks.Content,{}),!Mo.RichText.isEmpty(o)&&(0,Ar.jsx)(Mo.RichText.Content,{tagName:"cite",value:o})]})},migrate:Zp},M1e={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:o,citation:a}=e,n=w({[`has-text-align-${t}`]:t});return(0,Ar.jsxs)("blockquote",{...Mo.useBlockProps.save({className:n}),children:[(0,Ar.jsx)(Mo.RichText.Content,{multiline:!0,value:o}),!Mo.RichText.isEmpty(a)&&(0,Ar.jsx)(Mo.RichText.Content,{tagName:"cite",value:a})]})},migrate(e){return Zp(...$u(e))}},R1e={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 Zp(...$u(e))},save({attributes:e}){let{align:t,value:o,citation:a}=e;return(0,Ar.jsxs)("blockquote",{style:{textAlign:t||null},children:[(0,Ar.jsx)(Mo.RichText.Content,{multiline:!0,value:o}),!Mo.RichText.isEmpty(a)&&(0,Ar.jsx)(Mo.RichText.Content,{tagName:"cite",value:a})]})}},z1e={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,...o}=e;return Zp(...E1e(...$u(o)))}return Zp(...$u(e))},save({attributes:e}){let{align:t,value:o,citation:a,style:n}=e;return(0,Ar.jsxs)("blockquote",{className:n===2?"is-large":"",style:{textAlign:t||null},children:[(0,Ar.jsx)(Mo.RichText.Content,{multiline:!0,value:o}),!Mo.RichText.isEmpty(a)&&(0,Ar.jsx)(Mo.RichText.Content,{tagName:"cite",value:a})]})}},A1e={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,...o}=e;return Zp(...$u(o))}return Zp(...$u(e))},save({attributes:e}){let{align:t,value:o,citation:a,style:n}=e;return(0,Ar.jsxs)("blockquote",{className:`blocks-quote-style-${n}`,style:{textAlign:t||null},children:[(0,Ar.jsx)(Mo.RichText.Content,{multiline:!0,value:o}),!Mo.RichText.isEmpty(a)&&(0,Ar.jsx)(Mo.RichText.Content,{tagName:"footer",value:a})]})}},_J=[L1e,M1e,R1e,z1e,A1e];var a2=r(B()),Ss=r(S()),kJ=r(M()),R3=r(A()),z3=r(H()),wJ=r(Id());var Tc=r(h()),M3=z3.Platform.OS==="web",V1e=[["core/paragraph",{}]],F1e=(e,t)=>{let o=(0,R3.useRegistry)(),{updateBlockAttributes:a,replaceInnerBlocks:n}=(0,R3.useDispatch)(Ss.store);(0,z3.useEffect)(()=>{if(!e.value)return;let[i,l]=$u(e);(0,wJ.default)("Value attribute on the quote block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),o.batch(()=>{a(t,i),n(t,l)})},[e.value])};function CJ({attributes:e,setAttributes:t,insertBlocksAfter:o,clientId:a,className:n,style:i,isSelected:l}){let{textAlign:s,allowedBlocks:c}=e;F1e(e,a);let u=(0,Ss.useBlockProps)({className:w(n,{[`has-text-align-${s}`]:s}),...!M3&&{style:i}}),m=(0,Ss.useInnerBlocksProps)(u,{template:V1e,templateInsertUpdatesSelection:!0,__experimentalCaptureToolbars:!0,renderAppender:!1,allowedBlocks:c});return(0,Tc.jsxs)(Tc.Fragment,{children:[(0,Tc.jsx)(Ss.BlockControls,{group:"block",children:(0,Tc.jsx)(Ss.AlignmentControl,{value:s,onChange:p=>{t({textAlign:p})}})}),(0,Tc.jsxs)(kJ.BlockQuotation,{...m,children:[m.children,(0,Tc.jsx)(qa,{attributeKey:"citation",tagName:M3?"cite":"p",style:M3&&{display:"block"},isSelected:l,attributes:e,setAttributes:t,__unstableMobileNoFocusOnMount:!0,icon:u0,label:(0,a2.__)("Quote citation"),placeholder:(0,a2.__)("Add citation"),addLabel:(0,a2.__)("Add citation"),removeLabel:(0,a2.__)("Remove citation"),excludeElementClassName:!0,className:"wp-block-quote__citation",insertBlocksAfter:o,...M3?{}:{textAlign:s}})]})]})}var A3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/quote",title:"Quote",category:"text",description:'Give quoted text visual emphasis. "In quoting others, we cite ourselves." \u2014 Julio Cort\xE1zar',keywords:["blockquote","cite"],textdomain:"default",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",role:"content"},citation:{type:"rich-text",source:"rich-text",selector:"cite",role:"content"},textAlign:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"],html:!1,background:{backgroundImage:!0,backgroundSize:!0,__experimentalDefaultControls:{backgroundImage:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},dimensions:{minHeight:!0,__experimentalDefaultControls:{minHeight:!1}},__experimentalOnEnter:!0,__experimentalOnMerge:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:{allowEditing:!1},spacing:{blockGap:!0,padding:!0,margin:!0},interactivity:{clientNavigation:!0},allowedBlocks:!0},styles:[{name:"default",label:"Default",isDefault:!0},{name:"plain",label:"Plain"}],editorStyle:"wp-block-quote-editor",style:"wp-block-quote"};var Kp=r(S()),n2=r(h());function SJ({attributes:e}){let{textAlign:t,citation:o}=e,a=w({[`has-text-align-${t}`]:t});return(0,n2.jsxs)("blockquote",{...Kp.useBlockProps.save({className:a}),children:[(0,n2.jsx)(Kp.InnerBlocks.Content,{}),!Kp.RichText.isEmpty(o)&&(0,n2.jsx)(Kp.RichText.Content,{tagName:"cite",value:o})]})}var V3=r(S()),Ei=r(U()),j1e={from:[{type:"block",blocks:["core/pullquote"],transform:({value:e,align:t,citation:o,anchor:a,fontSize:n,style:i})=>(0,Ei.createBlock)("core/quote",{align:t,citation:o,anchor:a,fontSize:n,style:i},[(0,Ei.createBlock)("core/paragraph",{content:e})])},{type:"prefix",prefix:">",transform:e=>(0,Ei.createBlock)("core/quote",{},[(0,Ei.createBlock)("core/paragraph",{content:e})])},{type:"raw",schema:()=>({blockquote:{children:"*"}}),selector:"blockquote",transform:(e,t)=>(0,Ei.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,Ei.createBlock)("core/quote",{},e.map(t=>(0,Ei.createBlock)(t.name,t.attributes,t.innerBlocks)))}],to:[{type:"block",blocks:["core/paragraph"],transform:({citation:e},t)=>V3.RichText.isEmpty(e)?t:[...t,(0,Ei.createBlock)("core/paragraph",{content:e})]},{type:"block",blocks:["core/group"],transform:({citation:e,anchor:t},o)=>(0,Ei.createBlock)("core/group",{anchor:t},V3.RichText.isEmpty(e)?o:[...o,(0,Ei.createBlock)("core/paragraph",{content:e})])}],ungroup:({citation:e},t)=>V3.RichText.isEmpty(e)?t:[...t,(0,Ei.createBlock)("core/paragraph",{content:e})]},TJ=j1e;var{name:BJ}=A3,PJ={icon:I9,example:{attributes:{citation:(0,wI.__)("Julio Cort\xE1zar")},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,wI.__)("In quoting others, we cite ourselves.")}}]},transforms:TJ,edit:CJ,save:SJ,deprecated:_J},O1e=()=>D({name:BJ,metadata:A3,settings:PJ});var SI={};$(SI,{init:()=>e2e,metadata:()=>F3,name:()=>FJ,settings:()=>HJ});var zJ=r(Y()),AJ=r(A()),VJ=r(jo());var F3={$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}}};var l2=r(A()),s2=r(H()),wg=r(Y()),Ts=r(M()),i2=r(B()),yo=r(S()),EJ=r(IJ()),LJ=r(U());var ro=r(h()),{useLayoutClasses:G1e}=Q(yo.privateApis),{hasOverridableBlocks:$1e}=Q(EJ.privateApis),W1e=["full","wide","left","right"],q1e=(e,t)=>{let o=(0,s2.useRef)();return(0,s2.useMemo)(()=>{if(!e?.length)return{};let a=o.current;if(a===void 0){let i=t?.type==="constrained",l=e.some(s=>W1e.includes(s.attributes.align));a=i&&l?"full":null,o.current=a}return{alignment:a,layout:a?t:void 0}},[e,t])};function Z1e(){let e=(0,yo.useBlockProps)();return(0,ro.jsx)("div",{...e,children:(0,ro.jsx)(yo.Warning,{children:(0,i2.__)("Block cannot be rendered inside itself.")})})}var DJ=()=>{};function MJ(e){let{ref:t}=e.attributes;return(0,yo.useHasRecursion)(t)?(0,ro.jsx)(Z1e,{}):(0,ro.jsx)(yo.RecursionProvider,{uniqueId:t,children:(0,ro.jsx)(Q1e,{...e})})}function K1e({recordId:e,canOverrideBlocks:t,hasContent:o,handleEditOriginal:a,resetContent:n}){let i=(0,l2.useSelect)(l=>!!l(wg.store).canUser("update",{kind:"postType",name:"wp_block",id:e}),[e]);return(0,ro.jsxs)(ro.Fragment,{children:[i&&!!a&&(0,ro.jsx)(yo.BlockControls,{group:"other",children:(0,ro.jsx)(Ts.ToolbarGroup,{children:(0,ro.jsx)(Ts.ToolbarButton,{onClick:a,children:(0,i2.__)("Edit original")})})}),t&&(0,ro.jsx)(yo.BlockControls,{group:"other",children:(0,ro.jsx)(Ts.ToolbarGroup,{children:(0,ro.jsx)(Ts.ToolbarButton,{onClick:n,disabled:!o,children:(0,i2.__)("Reset")})})})]})}function Q1e({name:e,attributes:{ref:t,content:o},__unstableParentLayout:a,setAttributes:n}){let{record:i,hasResolved:l}=(0,wg.useEntityRecord)("postType","wp_block",t),[s]=(0,wg.useEntityBlockEditor)("postType","wp_block",{id:t}),c=l&&!i,{__unstableMarkLastChangeAsPersistent:u}=(0,l2.useDispatch)(yo.store),{onNavigateToEntityRecord:m,hasPatternOverridesSource:p}=(0,l2.useSelect)(C=>{let{getSettings:T}=C(yo.store);return{onNavigateToEntityRecord:T().onNavigateToEntityRecord,hasPatternOverridesSource:!!(0,LJ.getBlockBindingsSource)("core/pattern-overrides")}},[]),d=(0,s2.useMemo)(()=>p&&$1e(s),[p,s]),{alignment:f,layout:g}=q1e(s,a),b=G1e({layout:g},e),y=(0,yo.useBlockProps)({className:w("block-library-block__reusable-block-container",g&&b,{[`align${f}`]:f})}),v=(0,yo.useInnerBlocksProps)(y,{layout:g,value:s,onInput:DJ,onChange:DJ,renderAppender:s?.length?void 0:yo.InnerBlocks.ButtonBlockAppender}),_=()=>{m({postId:t,postType:"wp_block"})},x=()=>{o&&(u(),n({content:void 0}))},k=null;return c&&(k=(0,ro.jsx)(yo.Warning,{children:(0,i2.__)("Block has been deleted or is unavailable.")})),l||(k=(0,ro.jsx)(Ts.Placeholder,{children:(0,ro.jsx)(Ts.Spinner,{})})),(0,ro.jsxs)(ro.Fragment,{children:[l&&!c&&(0,ro.jsx)(K1e,{recordId:t,canOverrideBlocks:d,hasContent:!!o,handleEditOriginal:m?_:void 0,resetContent:x}),k===null?(0,ro.jsx)("div",{...v}):(0,ro.jsx)("div",{...y,children:k})]})}var Y1e=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,X1e={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&&Y1e(e[t].values))},migrate(e){let{content:t,...o}=e;if(t&&Object.keys(t).length){let a={...t};for(let n in t)a[n]=t[n].values;return{...o,content:a}}return e}},J1e={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,...o}=e,a={};return Object.keys(t).forEach(n=>{a[n]=t[n]}),{...o,content:a}}},RJ=[X1e,J1e];var{name:FJ}=F3,HJ={deprecated:RJ,edit:MJ,icon:J9,__experimentalLabel:({ref:e})=>{if(!e)return;let t=(0,AJ.select)(zJ.store).getEditedEntityRecord("postType","wp_block",e);if(t?.title)return(0,VJ.decodeEntities)(t.title)}},e2e=()=>D({name:FJ,metadata:F3,settings:HJ});var TI={};$(TI,{init:()=>o2e,metadata:()=>H3,name:()=>UJ,settings:()=>GJ});var OJ=r(B());var H3={$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:{html:!1,color:{gradients:!0,text:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,textDecoration:!0}},spacing:{margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalDefaultControls:{width:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-read-more"};var Sg=r(S()),Tg=r(M()),j3=r(U()),Cg=r(B());var Bs=r(h());function jJ({attributes:{content:e,linkTarget:t},setAttributes:o,insertBlocksAfter:a}){let n=(0,Sg.useBlockProps)(),i=G();return(0,Bs.jsxs)(Bs.Fragment,{children:[(0,Bs.jsx)(Sg.InspectorControls,{children:(0,Bs.jsx)(Tg.__experimentalToolsPanel,{label:(0,Cg.__)("Settings"),resetAll:()=>o({linkTarget:"_self"}),dropdownMenuProps:i,children:(0,Bs.jsx)(Tg.__experimentalToolsPanelItem,{label:(0,Cg.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>t!=="_self",onDeselect:()=>o({linkTarget:"_self"}),children:(0,Bs.jsx)(Tg.ToggleControl,{label:(0,Cg.__)("Open in new tab"),onChange:l=>o({linkTarget:l?"_blank":"_self"}),checked:t==="_blank"})})})}),(0,Bs.jsx)(Sg.RichText,{identifier:"content",tagName:"a","aria-label":(0,Cg.__)("\u201CRead more\u201D link text"),placeholder:(0,Cg.__)("Read more"),value:e,onChange:l=>o({content:l}),__unstableOnSplitAtEnd:()=>a((0,j3.createBlock)((0,j3.getDefaultBlockName)())),withoutInteractiveFormatting:!0,...n})]})}var{name:UJ}=H3,GJ={icon:In,edit:jJ,example:{attributes:{content:(0,OJ.__)("Read more")}}},o2e=()=>D({name:UJ,metadata:H3,settings:GJ});var BI={};$(BI,{init:()=>i2e,metadata:()=>O3,name:()=>ZJ,settings:()=>KJ});var O3={$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:{align:!0,html:!1,interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{padding:!1,margin:!1}},color:{background:!0,text:!0,gradients:!0,link:!0}},editorStyle:"wp-block-rss-editor",style:"wp-block-rss"};var Qp=r(S()),ct=r(M()),U3=r(H());var jt=r(B()),$J=r(ko()),WJ=r(Vc());var tt=r(h()),a2e=1,n2e=20;function qJ({attributes:e,setAttributes:t}){let[o,a]=(0,U3.useState)(!e.feedURL),{blockLayout:n,columns:i,displayAuthor:l,displayDate:s,displayExcerpt:c,excerptLength:u,feedURL:m,itemsToShow:p,openInNewTab:d,rel:f}=e,g=G();function b(C){return()=>{let T=e[C];t({[C]:!T})}}function y(C){C.preventDefault(),m&&(t({feedURL:(0,$J.prependHTTP)(m)}),a(!1))}let v=(0,Qp.useBlockProps)(),_=(0,jt.__)("RSS URL");if(o)return(0,tt.jsx)("div",{...v,children:(0,tt.jsx)(ct.Placeholder,{icon:Qh,label:_,instructions:(0,jt.__)("Display entries from any RSS or Atom feed."),children:(0,tt.jsxs)("form",{onSubmit:y,className:"wp-block-rss__placeholder-form",children:[(0,tt.jsx)(ct.__experimentalInputControl,{__next40pxDefaultSize:!0,label:_,type:"url",hideLabelFromVision:!0,placeholder:(0,jt.__)("Enter URL here\u2026"),value:m,onChange:C=>t({feedURL:C}),className:"wp-block-rss__placeholder-input"}),(0,tt.jsx)(ct.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,jt.__)("Apply")})]})})});let x=[{icon:Tm,title:(0,jt.__)("Edit RSS URL"),onClick:()=>a(!0)},{icon:Gi,title:(0,jt._x)("List view","RSS block display setting"),onClick:()=>t({blockLayout:"list"}),isActive:n==="list"},{icon:Ui,title:(0,jt._x)("Grid view","RSS block display setting"),onClick:()=>t({blockLayout:"grid"}),isActive:n==="grid"}],k={...e,style:{...e?.style,border:void 0,spacing:void 0}};return(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsx)(Qp.BlockControls,{children:(0,tt.jsx)(ct.ToolbarGroup,{controls:x})}),(0,tt.jsx)(Qp.InspectorControls,{children:(0,tt.jsxs)(ct.__experimentalToolsPanel,{label:(0,jt.__)("Settings"),resetAll:()=>{t({itemsToShow:5,displayAuthor:!1,displayDate:!1,displayExcerpt:!1,excerptLength:55,columns:2,openInNewTab:!1})},dropdownMenuProps:g,children:[(0,tt.jsx)(ct.__experimentalToolsPanelItem,{label:(0,jt.__)("Number of items"),hasValue:()=>p!==5,onDeselect:()=>t({itemsToShow:5}),isShownByDefault:!0,children:(0,tt.jsx)(ct.RangeControl,{__next40pxDefaultSize:!0,label:(0,jt.__)("Number of items"),value:p,onChange:C=>t({itemsToShow:C}),min:a2e,max:n2e,required:!0})}),(0,tt.jsx)(ct.__experimentalToolsPanelItem,{label:(0,jt.__)("Display author"),hasValue:()=>!!l,onDeselect:()=>t({displayAuthor:!1}),isShownByDefault:!0,children:(0,tt.jsx)(ct.ToggleControl,{label:(0,jt.__)("Display author"),checked:l,onChange:b("displayAuthor")})}),(0,tt.jsx)(ct.__experimentalToolsPanelItem,{label:(0,jt.__)("Display date"),hasValue:()=>!!s,onDeselect:()=>t({displayDate:!1}),isShownByDefault:!0,children:(0,tt.jsx)(ct.ToggleControl,{label:(0,jt.__)("Display date"),checked:s,onChange:b("displayDate")})}),(0,tt.jsx)(ct.__experimentalToolsPanelItem,{label:(0,jt.__)("Display excerpt"),hasValue:()=>!!c,onDeselect:()=>t({displayExcerpt:!1}),isShownByDefault:!0,children:(0,tt.jsx)(ct.ToggleControl,{label:(0,jt.__)("Display excerpt"),checked:c,onChange:b("displayExcerpt")})}),c&&(0,tt.jsx)(ct.__experimentalToolsPanelItem,{label:(0,jt.__)("Max number of words in excerpt"),hasValue:()=>u!==55,onDeselect:()=>t({excerptLength:55}),isShownByDefault:!0,children:(0,tt.jsx)(ct.RangeControl,{__next40pxDefaultSize:!0,label:(0,jt.__)("Max number of words in excerpt"),value:u,onChange:C=>t({excerptLength:C}),min:10,max:100,required:!0})}),n==="grid"&&(0,tt.jsx)(ct.__experimentalToolsPanelItem,{label:(0,jt.__)("Columns"),hasValue:()=>i!==2,onDeselect:()=>t({columns:2}),isShownByDefault:!0,children:(0,tt.jsx)(ct.RangeControl,{__next40pxDefaultSize:!0,label:(0,jt.__)("Columns"),value:i,onChange:C=>t({columns:C}),min:2,max:6,required:!0})}),(0,tt.jsx)(ct.__experimentalToolsPanelItem,{label:(0,jt.__)("Open links in new tab"),hasValue:()=>!!d,onDeselect:()=>t({openInNewTab:!1}),isShownByDefault:!0,children:(0,tt.jsx)(ct.ToggleControl,{label:(0,jt.__)("Open links in new tab"),checked:d,onChange:C=>t({openInNewTab:C})})})]})}),(0,tt.jsx)(Qp.InspectorControls,{group:"advanced",children:(0,tt.jsx)(ct.TextControl,{__next40pxDefaultSize:!0,label:(0,jt.__)("Link relation"),help:(0,U3.createInterpolateElement)((0,jt.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,tt.jsx)(ct.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:f||"",onChange:C=>t({rel:C})})}),(0,tt.jsx)("div",{...v,children:(0,tt.jsx)(ct.Disabled,{children:(0,tt.jsx)(WJ.default,{block:"core/rss",attributes:k})})})]})}var{name:ZJ}=O3,KJ={icon:Qh,example:{attributes:{feedURL:"https://wordpress.org"}},edit:qJ},i2e=()=>D({name:ZJ,metadata:O3,settings:KJ});var LI={};$(LI,{init:()=>m2e,metadata:()=>G3,name:()=>ree,settings:()=>W3});var Bg=r(B());var oee=r(U());var G3={$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:{}},isSearchFieldHidden:{type:"boolean",default:!1}},supports:{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"};var Ro=r(S()),$3=r(A()),Yp=r(H()),Kt=r(M()),XJ=r(we());var Zt=r(B()),JJ=r(oc());var PI=50,NI=350,II=220;function DI(e){return e==="%"}var _t=r(h()),QJ="4px",YJ=[25,50,75,100];function eee({className:e,attributes:t,setAttributes:o,toggleSelection:a,isSelected:n,clientId:i}){let{label:l,showLabel:s,placeholder:c,width:u,widthUnit:m,align:p,buttonText:d,buttonPosition:f,buttonUseIcon:g,isSearchFieldHidden:b,style:y}=t,v=(0,$3.useSelect)(ie=>{let{getBlockParentsByBlockName:Ee,wasBlockJustInserted:de}=ie(Ro.store);return!!Ee(i,"core/navigation")?.length&&de(i)},[i]),{__unstableMarkNextChangeAsNotPersistent:_}=(0,$3.useDispatch)(Ro.store);(0,Yp.useEffect)(()=>{v&&(_(),o({showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"}))},[_,v,o]);let x=y?.border?.radius,k=(0,Ro.__experimentalUseBorderProps)(t);typeof x=="number"&&(k={...k,style:{...k.style,borderRadius:`${x}px`}});let C=(0,Ro.__experimentalUseColorProps)(t),[T,N]=(0,Ro.useSettings)("typography.fluid","layout"),P=(0,Ro.getTypographyClassesAndStyles)(t,{typography:{fluid:T},layout:{wideSize:N?.wideSize}}),R=`wp-block-search__width-${(0,XJ.useInstanceId)(Kt.__experimentalUnitControl)}`,z=f==="button-inside",O=f==="button-outside",V=f==="no-button",I=f==="button-only",F=(0,Yp.useRef)(),W=(0,Yp.useRef)(),j=(0,Kt.__experimentalUseCustomUnits)({availableUnits:["%","px"],defaultValues:{"%":PI,px:NI}});(0,Yp.useEffect)(()=>{I&&!n&&o({isSearchFieldHidden:!0})},[I,n,o]),(0,Yp.useEffect)(()=>{!I||!n||o({isSearchFieldHidden:!1})},[I,n,o,u]);let K=()=>w(e,z?"wp-block-search__button-inside":void 0,O?"wp-block-search__button-outside":void 0,V?"wp-block-search__no-button":void 0,I?"wp-block-search__button-only":void 0,!g&&!V?"wp-block-search__text-button":void 0,g&&!V?"wp-block-search__icon-button":void 0,I&&b?"wp-block-search__searchfield-hidden":void 0),Z=[{label:(0,Zt.__)("Button outside"),value:"button-outside"},{label:(0,Zt.__)("Button inside"),value:"button-inside"},{label:(0,Zt.__)("No button"),value:"no-button"},{label:(0,Zt.__)("Button only"),value:"button-only"}],te=()=>I?{}:{right:p!=="right",left:p==="right"},X=()=>{let ie=w("wp-block-search__input",z?void 0:k.className,P.className),Ee={...z?{borderRadius:k.style?.borderRadius,borderTopLeftRadius:k.style?.borderTopLeftRadius,borderTopRightRadius:k.style?.borderTopRightRadius,borderBottomLeftRadius:k.style?.borderBottomLeftRadius,borderBottomRightRadius:k.style?.borderBottomRightRadius}:k.style,...P.style,textDecoration:void 0};return(0,_t.jsx)("input",{type:"search",className:ie,style:Ee,"aria-label":(0,Zt.__)("Optional placeholder text"),placeholder:c?void 0:(0,Zt.__)("Optional placeholder\u2026"),value:c,onChange:de=>o({placeholder:de.target.value}),ref:F})},J=()=>{let ie=w("wp-block-search__button",C.className,P.className,z?void 0:k.className,g?"has-icon":void 0,(0,Ro.__experimentalGetElementClassName)("button")),Ee={...C.style,...P.style,...z?{borderRadius:k.style?.borderRadius,borderTopLeftRadius:k.style?.borderTopLeftRadius,borderTopRightRadius:k.style?.borderTopRightRadius,borderBottomLeftRadius:k.style?.borderBottomLeftRadius,borderBottomRightRadius:k.style?.borderBottomRightRadius}:k.style},de=()=>{I&&o({isSearchFieldHidden:!b})};return(0,_t.jsxs)(_t.Fragment,{children:[g&&(0,_t.jsx)("button",{type:"button",className:ie,style:Ee,"aria-label":d?(0,JJ.__unstableStripHTML)(d):(0,Zt.__)("Search"),onClick:de,ref:W,children:(0,_t.jsx)(pa,{icon:Yh})}),!g&&(0,_t.jsx)(Ro.RichText,{identifier:"buttonText",className:ie,style:Ee,"aria-label":(0,Zt.__)("Button text"),placeholder:(0,Zt.__)("Add button text\u2026"),withoutInteractiveFormatting:!0,value:d,onChange:oe=>o({buttonText:oe}),onClick:de})]})},ee=G(),ne=(0,_t.jsx)(_t.Fragment,{children:(0,_t.jsx)(Ro.InspectorControls,{children:(0,_t.jsxs)(Kt.__experimentalToolsPanel,{label:(0,Zt.__)("Settings"),resetAll:()=>{o({width:void 0,widthUnit:void 0,showLabel:!0,buttonUseIcon:!1,buttonPosition:"button-outside",isSearchFieldHidden:!1})},dropdownMenuProps:ee,children:[(0,_t.jsx)(Kt.__experimentalToolsPanelItem,{hasValue:()=>!s,label:(0,Zt.__)("Show label"),onDeselect:()=>{o({showLabel:!0})},isShownByDefault:!0,children:(0,_t.jsx)(Kt.ToggleControl,{checked:s,label:(0,Zt.__)("Show label"),onChange:ie=>o({showLabel:ie})})}),(0,_t.jsx)(Kt.__experimentalToolsPanelItem,{hasValue:()=>f!=="button-outside",label:(0,Zt.__)("Button position"),onDeselect:()=>{o({buttonPosition:"button-outside",isSearchFieldHidden:!1})},isShownByDefault:!0,children:(0,_t.jsx)(Kt.SelectControl,{value:f,__next40pxDefaultSize:!0,label:(0,Zt.__)("Button position"),onChange:ie=>{o({buttonPosition:ie,isSearchFieldHidden:ie==="button-only"})},options:Z})}),f!=="no-button"&&(0,_t.jsx)(Kt.__experimentalToolsPanelItem,{hasValue:()=>!!g,label:(0,Zt.__)("Use button with icon"),onDeselect:()=>{o({buttonUseIcon:!1})},isShownByDefault:!0,children:(0,_t.jsx)(Kt.ToggleControl,{checked:g,label:(0,Zt.__)("Use button with icon"),onChange:ie=>o({buttonUseIcon:ie})})}),(0,_t.jsx)(Kt.__experimentalToolsPanelItem,{hasValue:()=>!!u,label:(0,Zt.__)("Width"),onDeselect:()=>{o({width:void 0,widthUnit:void 0})},isShownByDefault:!0,children:(0,_t.jsxs)(Kt.__experimentalVStack,{children:[(0,_t.jsx)(Kt.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,Zt.__)("Width"),id:R,min:DI(m)?0:II,max:DI(m)?100:void 0,step:1,onChange:ie=>{let Ee=ie===""?void 0:parseInt(ie,10);o({width:Ee})},onUnitChange:ie=>{o({width:ie==="%"?PI:NI,widthUnit:ie})},__unstableInputWidth:"80px",value:`${u}${m}`,units:j}),(0,_t.jsx)(Kt.__experimentalToggleGroupControl,{label:(0,Zt.__)("Percentage Width"),value:YJ.includes(u)&&m==="%"?u:void 0,hideLabelFromVision:!0,onChange:ie=>{o({width:ie,widthUnit:"%"})},isBlock:!0,__next40pxDefaultSize:!0,children:YJ.map(ie=>(0,_t.jsx)(Kt.__experimentalToggleGroupControlOption,{value:ie,label:(0,Zt.sprintf)((0,Zt.__)("%d%%"),ie)},ie))})]})})]})})}),re=ie=>ie!==void 0&&parseInt(ie,10)!==0,se=ie=>re(ie)?`calc(${ie} + ${QJ})`:void 0,ue=()=>{let ie=z?k.style:{borderRadius:k.style?.borderRadius,borderTopLeftRadius:k.style?.borderTopLeftRadius,borderTopRightRadius:k.style?.borderTopRightRadius,borderBottomLeftRadius:k.style?.borderBottomLeftRadius,borderBottomRightRadius:k.style?.borderBottomRightRadius};if(z){if(typeof x=="object"){let{borderTopLeftRadius:de,borderTopRightRadius:oe,borderBottomLeftRadius:ce,borderBottomRightRadius:ke}=k.style;return{...ie,borderTopLeftRadius:se(de),borderTopRightRadius:se(oe),borderBottomLeftRadius:se(ce),borderBottomRightRadius:se(ke)}}let Ee=Number.isInteger(x)?`${x}px`:x;ie.borderRadius=`calc(${Ee} + ${QJ})`}return ie},Ne=(0,Ro.useBlockProps)({className:K(),style:{...P.style,textDecoration:void 0}}),Le=w("wp-block-search__label",P.className);return(0,_t.jsxs)("div",{...Ne,children:[ne,s&&(0,_t.jsx)(Ro.RichText,{identifier:"label",className:Le,"aria-label":(0,Zt.__)("Label text"),placeholder:(0,Zt.__)("Add label\u2026"),withoutInteractiveFormatting:!0,value:l,onChange:ie=>o({label:ie}),style:P.style}),(0,_t.jsxs)(Kt.ResizableBox,{size:{width:u===void 0?"auto":`${u}${m}`,height:"auto"},className:w("wp-block-search__inside-wrapper",z?k.className:void 0),style:ue(),minWidth:II,enable:te(),onResizeStart:(ie,Ee,de)=>{o({width:parseInt(de.offsetWidth,10),widthUnit:"px"}),a(!1)},onResizeStop:(ie,Ee,de,oe)=>{o({width:parseInt(u+oe.width,10)}),a(!0)},showHandle:n,children:[(z||O||I)&&(0,_t.jsxs)(_t.Fragment,{children:[X(),J()]}),V&&X()]})]})}var EI=r(B()),s2e=[{name:"default",isDefault:!0,attributes:{buttonText:(0,EI.__)("Search"),label:(0,EI.__)("Search")}}],tee=s2e;var{fieldsKey:c2e,formKey:u2e}=Q(oee.privateApis),{name:ree}=G3,W3={icon:Yh,example:{attributes:{buttonText:(0,Bg.__)("Search"),label:(0,Bg.__)("Search")},viewportWidth:400},variations:tee,edit:eee};window.__experimentalContentOnlyInspectorFields&&(W3[c2e]=[{id:"label",label:(0,Bg.__)("Label"),type:"richtext",shownByDefault:!0},{id:"buttonText",label:(0,Bg.__)("Button text"),type:"richtext"},{id:"placeholder",label:(0,Bg.__)("Placeholder"),type:"richtext"}],W3[u2e]={fields:["label"]});var m2e=()=>D({name:ree,metadata:G3,settings:W3});var RI={};$(RI,{init:()=>h2e,metadata:()=>Z3,name:()=>pee,settings:()=>dee});var Wu=r(S()),q3=r(M()),u2=r(B());var c2=r(H()),aee=r(we());function nee(e,t,o){let[a,n]=(0,c2.useState)(!1),i=(0,aee.usePrevious)(t);(0,c2.useEffect)(()=>{e==="css"&&!t&&!i&&n(!0)},[t,i,e]),(0,c2.useEffect)(()=>{e==="css"&&(a&&t||i&&t!==i)&&(o({opacity:"alpha-channel"}),n(!1))},[a,t,i])}var Bc=r(h()),p2e=({tagName:e,setAttributes:t})=>(0,Bc.jsx)(q3.SelectControl,{label:(0,u2.__)("HTML element"),value:e,onChange:o=>t({tagName:o}),options:[{label:(0,u2.__)("Default (<hr>)"),value:"hr"},{label:"<div>",value:"div"}],help:e==="hr"?(0,u2.__)("Only select <hr> if the separator conveys important information and should be announced by screen readers."):(0,u2.__)("The <div> element should only be used if the block is a design element with no semantic meaning."),__next40pxDefaultSize:!0});function iee({attributes:e,setAttributes:t}){let{backgroundColor:o,opacity:a,style:n,tagName:i}=e,l=(0,Wu.__experimentalUseColorProps)(e),s=l?.style?.backgroundColor,c=!!n?.color?.background;nee(a,s,t);let u=(0,Wu.getColorClassName)("color",o),m=w({"has-text-color":o||s,[u]:u,"has-css-opacity":a==="css","has-alpha-channel-opacity":a==="alpha-channel"},l.className);return(0,Bc.jsxs)(Bc.Fragment,{children:[(0,Bc.jsx)(Wu.InspectorControls,{group:"advanced",children:(0,Bc.jsx)(p2e,{tagName:i,setAttributes:t})}),(0,Bc.jsx)(i==="hr"?q3.HorizontalRule:i,{...(0,Wu.useBlockProps)({className:m,style:c?{color:s,backgroundColor:s}:void 0})})]})}var Z3={$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 Pg=r(S()),lee=r(h());function see({attributes:e}){let{backgroundColor:t,style:o,opacity:a,tagName:n}=e,i=o?.color?.background,l=(0,Pg.__experimentalGetColorClassesAndStyles)(e),s=(0,Pg.getColorClassName)("color",t),c=w({"has-text-color":t||i,[s]:s,"has-css-opacity":a==="css","has-alpha-channel-opacity":a==="alpha-channel"},l.className),u={backgroundColor:l?.style?.backgroundColor,color:s?void 0:i};return(0,lee.jsx)(n,{...Pg.useBlockProps.save({className:c,style:u})})}var MI=r(U()),f2e={from:[{type:"enter",regExp:/^-{3,}$/,transform:()=>(0,MI.createBlock)("core/separator")},{type:"raw",selector:"hr",schema:{hr:{}}}],to:[{type:"block",blocks:["core/spacer"],transform:({anchor:e})=>(0,MI.createBlock)("core/spacer",{anchor:e||void 0})}]},cee=f2e;var m2=r(S()),uee=r(h()),g2e={attributes:{color:{type:"string"},customColor:{type:"string"}},save({attributes:e}){let{color:t,customColor:o}=e,a=(0,m2.getColorClassName)("background-color",t),n=(0,m2.getColorClassName)("color",t),i=w({"has-text-color has-background":t||o,[a]:a,[n]:n}),l={backgroundColor:a?void 0:o,color:n?void 0:o};return(0,uee.jsx)("hr",{...m2.useBlockProps.save({className:i,style:l})})},migrate(e){let{color:t,customColor:o,...a}=e;return{...a,backgroundColor:t||void 0,opacity:"css",style:o?{color:{background:o}}:void 0,tagName:"hr"}}},mee=[g2e];var{name:pee}=Z3,dee={icon:H9,example:{attributes:{customColor:"#065174",className:"is-style-wide"}},transforms:cee,edit:iee,save:see,deprecated:mee},h2e=()=>D({name:pee,metadata:Z3,settings:dee});var AI={};$(AI,{init:()=>y2e,metadata:()=>J3,name:()=>kee,settings:()=>wee});var K3=r(B()),Y3=r(S()),fee=r(we()),gee=r(M());var Q3=r(h());function zI({attributes:e,setAttributes:t}){let a=`blocks-shortcode-input-${(0,fee.useInstanceId)(zI)}`;return(0,Q3.jsx)("div",{...(0,Y3.useBlockProps)(),children:(0,Q3.jsx)(gee.Placeholder,{icon:Jh,label:(0,K3.__)("Shortcode"),children:(0,Q3.jsx)(Y3.PlainText,{className:"blocks-shortcode__textarea",id:a,value:e.text,"aria-label":(0,K3.__)("Shortcode text"),placeholder:(0,K3.__)("Write shortcode here\u2026"),onChange:n=>t({text:n})})})})}var hee=r(H()),vee=r(h());function bee({attributes:e}){return(0,vee.jsx)(hee.RawHTML,{children:e.text})}var X3=r(xee()),v2e={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:(e,{content:t})=>(0,X3.removep)((0,X3.autop)(t))}},priority:20}]},_ee=v2e;var J3={$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},editorStyle:"wp-block-shortcode-editor"};var{name:kee}=J3,wee={icon:Jh,transforms:_ee,edit:zI,save:bee},y2e=()=>D({name:kee,metadata:J3,settings:wee});var HI={};$(HI,{init:()=>w2e,metadata:()=>ew,name:()=>Eee,settings:()=>Lee});var ew={$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:{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 FI=r(No()),Ps=r(H()),zo=r(B()),Ve=r(M()),Tee=r(we()),Ao=r(S()),qu=r(A()),Ng=r(Y());var Bee=r(wo());var ve=r(h()),VI=["image"],Pee="image/*",_2e=({alt:e,attributes:{align:t,width:o,height:a,isLink:n,linkTarget:i,shouldSyncIcon:l},isSelected:s,setAttributes:c,setLogo:u,logoUrl:m,siteUrl:p,logoId:d,iconId:f,setIcon:g,canUserEdit:b})=>{let y=(0,Tee.useViewportMatch)("medium"),_=!["wide","full"].includes(t)&&y,[{naturalWidth:x,naturalHeight:k},C]=(0,Ps.useState)({}),[T,N]=(0,Ps.useState)(!1),{toggleSelection:P}=(0,qu.useDispatch)(Ao.store),L=G(),z=(0,Ao.useBlockEditingMode)()==="contentOnly",{imageEditing:O,maxWidth:V,title:I}=(0,qu.useSelect)(ce=>{let ke=ce(Ao.store).getSettings();return{title:ce(Ng.store).getEntityRecord("root","__unstableBase")?.name,imageEditing:ke.imageEditing,maxWidth:ke.maxWidth}},[]);(0,Ps.useEffect)(()=>{l&&d!==f&&c({shouldSyncIcon:!1})},[]),(0,Ps.useEffect)(()=>{s||N(!1)},[s]);function F(){P(!1)}function W(){P(!0)}let j=(0,ve.jsxs)(ve.Fragment,{children:[(0,ve.jsx)("img",{className:"custom-logo",src:m,alt:e,onLoad:ce=>{C({naturalWidth:ce.target.naturalWidth,naturalHeight:ce.target.naturalHeight})}}),(0,FI.isBlobURL)(m)&&(0,ve.jsx)(Ve.Spinner,{})]}),K=j;if(n&&(K=(0,ve.jsx)("a",{href:p,className:"custom-logo-link",rel:"home",title:I,onClick:ce=>ce.preventDefault(),children:j})),!_||!x||!k)return(0,ve.jsx)("div",{style:{width:o,height:a},children:K});let Z=120,te=o||Z,X=x/k,J=te/X,ee=x<k?rs:Math.ceil(rs*X),ne=k<x?rs:Math.ceil(rs/X),re=V*2.5,se=!1,ue=!1;t==="center"?(se=!0,ue=!0):(0,zo.isRTL)()?t==="left"?se=!0:ue=!0:t==="right"?ue=!0:se=!0;let Ne=d&&x&&k&&O,Le=!z,ie;Ne&&T?ie=(0,ve.jsx)(Ao.__experimentalImageEditor,{id:d,url:m,width:te,height:J,naturalHeight:k,naturalWidth:x,onSaveImage:ce=>{u(ce.id)},onFinishEditing:()=>{N(!1)}}):ie=(0,ve.jsx)(Ve.ResizableBox,{size:{width:te,height:J},showHandle:s&&Le,minWidth:ee,maxWidth:re,minHeight:ne,maxHeight:re/X,lockAspectRatio:!0,enable:{top:!1,right:se,bottom:!0,left:ue},onResizeStart:F,onResizeStop:(ce,ke,fe,rt)=>{W(),c({width:parseInt(te+rt.width,10),height:parseInt(J+rt.height,10)})},children:K});let de=!window?.__experimentalUseCustomizerSiteLogoUrl?p+"/wp-admin/options-general.php":p+"/wp-admin/customize.php?autofocus[section]=title_tagline",oe=(0,Ps.createInterpolateElement)((0,zo.__)("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,ve.jsx)("a",{href:de,target:"_blank",rel:"noopener noreferrer"})});return(0,ve.jsxs)(ve.Fragment,{children:[(0,ve.jsx)(Ao.InspectorControls,{children:(0,ve.jsxs)(Ve.__experimentalToolsPanel,{label:(0,zo.__)("Settings"),dropdownMenuProps:L,children:[(0,ve.jsx)(Ve.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!o,label:(0,zo.__)("Image width"),onDeselect:()=>c({width:void 0}),children:(0,ve.jsx)(Ve.RangeControl,{__next40pxDefaultSize:!0,label:(0,zo.__)("Image width"),onChange:ce=>c({width:ce}),min:ee,max:re,initialPosition:Math.min(Z,re),value:o||"",disabled:!_})}),(0,ve.jsx)(Ve.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!n,label:(0,zo.__)("Link image to home"),onDeselect:()=>c({isLink:!0}),children:(0,ve.jsx)(Ve.ToggleControl,{label:(0,zo.__)("Link image to home"),onChange:()=>c({isLink:!n}),checked:n})}),n&&(0,ve.jsx)(Ve.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>i==="_blank",label:(0,zo.__)("Open in new tab"),onDeselect:()=>c({linkTarget:"_self"}),children:(0,ve.jsx)(Ve.ToggleControl,{label:(0,zo.__)("Open in new tab"),onChange:ce=>c({linkTarget:ce?"_blank":"_self"}),checked:i==="_blank"})}),b&&(0,ve.jsx)(Ve.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!l,label:(0,zo.__)("Use as Site Icon"),onDeselect:()=>{c({shouldSyncIcon:!1}),g(void 0)},children:(0,ve.jsx)(Ve.ToggleControl,{label:(0,zo.__)("Use as Site Icon"),onChange:ce=>{c({shouldSyncIcon:ce}),g(ce?d:void 0)},checked:!!l,help:oe})})]})}),Ne&&!T&&Le&&(0,ve.jsx)(Ao.BlockControls,{group:"block",children:(0,ve.jsx)(Ve.ToolbarButton,{onClick:()=>N(!0),icon:kh,label:(0,zo.__)("Crop")})}),ie]})};function Cee({mediaURL:e,...t}){return(0,ve.jsx)(Ao.MediaReplaceFlow,{...t,mediaURL:e,allowedTypes:VI,accept:Pee})}var See=({media:e,itemGroupProps:t})=>{let{alt_text:o,source_url:a,slug:n,media_details:i}=e??{},l=i?.sizes?.full?.file||n;return(0,ve.jsx)(Ve.__experimentalItemGroup,{...t,as:"span",children:(0,ve.jsxs)(Ve.__experimentalHStack,{justify:"flex-start",as:"span",children:[(0,ve.jsx)("img",{src:a,alt:o}),(0,ve.jsx)(Ve.FlexItem,{as:"span",children:(0,ve.jsx)(Ve.__experimentalTruncate,{numberOfLines:1,className:"block-library-site-logo__inspector-media-replace-title",children:l})})]})})};function Nee({attributes:e,className:t,setAttributes:o,isSelected:a}){let{width:n,shouldSyncIcon:i}=e,{siteLogoId:l,canUserEdit:s,url:c,siteIconId:u,mediaItemData:m,isRequestingMediaItem:p}=(0,qu.useSelect)(Z=>{let{canUser:te,getEntityRecord:X,getEditedEntityRecord:J}=Z(Ng.store),ee=te("update",{kind:"root",name:"site"}),ne=ee?J("root","site"):void 0,re=X("root","__unstableBase"),se=ee?ne?.site_logo:re?.site_logo,ue=ne?.site_icon,Ne=se&&Z(Ng.store).getEntityRecord("postType","attachment",se,{context:"view"}),Le=!!se&&!Z(Ng.store).hasFinishedResolution("getEntityRecord",["postType","attachment",se,{context:"view"}]);return{siteLogoId:se,canUserEdit:ee,url:re?.home,mediaItemData:Ne,isRequestingMediaItem:Le,siteIconId:ue}},[]),{getSettings:d}=(0,qu.useSelect)(Ao.store),[f,g]=(0,Ps.useState)(),b=G(),{editEntityRecord:y}=(0,qu.useDispatch)(Ng.store),v=(Z,te=!1)=>{(i||te)&&_(Z),y("root","site",void 0,{site_logo:Z})},_=Z=>y("root","site",void 0,{site_icon:Z??null}),{alt_text:x,source_url:k}=m??{},C=Z=>{if(i===void 0){let te=!u;o({shouldSyncIcon:te}),T(Z,te);return}T(Z)},T=(Z,te=!1)=>{if(Z){if(!Z.id&&Z.url){g(Z.url),v(void 0);return}v(Z.id,te)}},N=()=>{v(null),o({width:void 0})},{createErrorNotice:P}=(0,qu.useDispatch)(Bee.store),L=Z=>{P(Z,{type:"snackbar"}),g()},R=Z=>{d().mediaUpload({allowedTypes:VI,filesList:Z,onFileChange([te]){if((0,FI.isBlobURL)(te?.url)){g(te.url);return}C(te)},onError:L,multiple:!1})},z={mediaURL:k,name:k?(0,zo.__)("Replace"):(0,zo.__)("Choose logo"),onSelect:T,onError:L,onReset:N},O=s&&(0,ve.jsx)(Ao.BlockControls,{group:"other",children:(0,ve.jsx)(Cee,{...z})}),V,I=l===void 0||p;I&&(V=(0,ve.jsx)(Ve.Spinner,{})),(0,Ps.useEffect)(()=>{k&&f&&g()},[k,f]),(k||f)&&(V=(0,ve.jsxs)(ve.Fragment,{children:[(0,ve.jsx)(_2e,{alt:x,attributes:e,className:t,isSelected:a,setAttributes:o,logoUrl:f||k,setLogo:v,logoId:m?.id||l,siteUrl:c,setIcon:_,iconId:u,canUserEdit:s}),s&&(0,ve.jsx)(Ve.DropZone,{onFilesDrop:R})]}));let F=Z=>{let te=w("block-editor-media-placeholder",t);return(0,ve.jsx)(Ve.Placeholder,{className:te,preview:V,withIllustration:!0,style:{width:n},children:Z})},W=w(t,{"is-default-size":!n,"is-transient":f}),j=(0,Ao.useBlockProps)({className:W}),K=(s||k)&&(0,ve.jsx)(Ao.InspectorControls,{children:(0,ve.jsx)(Ve.__experimentalToolsPanel,{label:(0,zo.__)("Media"),dropdownMenuProps:b,children:s?(0,ve.jsx)(Ve.__experimentalToolsPanelItem,{hasValue:()=>!!k,label:(0,zo.__)("Logo"),isShownByDefault:!0,children:(0,ve.jsxs)("div",{className:"block-library-site-logo__inspector-media-replace-container",children:[(0,ve.jsx)(Cee,{...z,name:k?(0,ve.jsx)(See,{media:m}):(0,zo.__)("Choose logo"),renderToggle:Z=>(0,ve.jsx)(Ve.Button,{...Z,__next40pxDefaultSize:!0,children:f?(0,ve.jsx)(Ve.Spinner,{}):Z.children})}),(0,ve.jsx)(Ve.DropZone,{onFilesDrop:R})]})}):(0,ve.jsx)("div",{className:"block-library-site-logo__inspector-media-replace-container",style:{gridColumn:"1 / -1"},children:(0,ve.jsx)(See,{media:m,itemGroupProps:{isBordered:!0,className:"block-library-site-logo__inspector-readonly-logo-preview"}})})})});return(0,ve.jsxs)("div",{...j,children:[O,K,(!!k||!!f)&&V,(I||!f&&!k&&!s)&&(0,ve.jsx)(Ve.Placeholder,{className:"site-logo_placeholder",withIllustration:!0,children:I&&(0,ve.jsx)("span",{className:"components-placeholder__preview",children:(0,ve.jsx)(Ve.Spinner,{})})}),!I&&!f&&!k&&s&&(0,ve.jsx)(Ao.MediaPlaceholder,{onSelect:C,accept:Pee,allowedTypes:VI,onError:L,placeholder:F,mediaLibraryButton:({open:Z})=>(0,ve.jsx)(Ve.Button,{__next40pxDefaultSize:!0,icon:Ws,variant:"primary",label:(0,zo.__)("Choose logo"),showTooltip:!0,tooltipPosition:"middle right",onClick:()=>{Z()}})})]})}var Iee=r(U()),k2e={to:[{type:"block",blocks:["core/site-title"],transform:({isLink:e,linkTarget:t})=>(0,Iee.createBlock)("core/site-title",{isLink:e,linkTarget:t})}]},Dee=k2e;var{name:Eee}=ew,Lee={icon:W9,example:{},edit:Nee,transforms:Dee},w2e=()=>D({name:Eee,metadata:ew,settings:Lee});var UI={};$(UI,{init:()=>T2e,metadata:()=>tw,name:()=>Aee,settings:()=>Vee});var tw={$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:{textAlign:{type:"string"},level:{type:"number",default:0},levelOptions:{type:"array",default:[0,1,2,3,4,5,6]}},example:{viewportWidth:350,attributes:{textAlign:"center"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},contentRole:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},editorStyle:"wp-block-site-tagline-editor",style:"wp-block-site-tagline"};var rw=r(A()),jI=r(Y()),Is=r(S()),ow=r(B()),aw=r(U()),Ns=r(h());function Mee({attributes:e,setAttributes:t,insertBlocksAfter:o}){let{textAlign:a,level:n,levelOptions:i}=e,{canUserEdit:l,tagline:s}=(0,rw.useSelect)(f=>{let{canUser:g,getEntityRecord:b,getEditedEntityRecord:y}=f(jI.store),v=g("update",{kind:"root",name:"site"}),_=v?y("root","site"):{},x=b("root","__unstableBase");return{canUserEdit:v,tagline:v?_?.description:x?.description}},[]),c=n===0?"p":`h${n}`,{editEntityRecord:u}=(0,rw.useDispatch)(jI.store);function m(f){u("root","site",void 0,{description:f})}let p=(0,Is.useBlockProps)({className:w({[`has-text-align-${a}`]:a,"wp-block-site-tagline__placeholder":!l&&!s})}),d=l?(0,Ns.jsx)(Is.RichText,{allowedFormats:[],onChange:m,"aria-label":(0,ow.__)("Site tagline text"),placeholder:(0,ow.__)("Write site tagline\u2026"),tagName:c,value:s,disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>o((0,aw.createBlock)((0,aw.getDefaultBlockName)())),...p}):(0,Ns.jsx)(c,{...p,children:s||(0,ow.__)("Site Tagline placeholder")});return(0,Ns.jsxs)(Ns.Fragment,{children:[(0,Ns.jsxs)(Is.BlockControls,{group:"block",children:[(0,Ns.jsx)(Is.HeadingLevelDropdown,{value:n,options:i,onChange:f=>t({level:f})}),(0,Ns.jsx)(Is.AlignmentControl,{onChange:f=>t({textAlign:f}),value:a})]}),d]})}var nw=r(M()),OI=r(h()),Ree=(0,OI.jsx)(nw.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",children:(0,OI.jsx)(nw.Path,{d:"M4 10.5h16V9H4v1.5ZM4 15h9v-1.5H4V15Z"})});var S2e={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:Nt,isEligible({style:e}){return e?.typography?.fontFamily}},zee=[S2e];var{name:Aee}=tw,Vee={icon:Ree,edit:Mee,deprecated:zee},T2e=()=>D({name:Aee,metadata:tw,settings:Vee});var WI={};$(WI,{init:()=>I2e,metadata:()=>iw,name:()=>Uee,settings:()=>Gee});var iw={$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]},textAlign:{type:"string"},isLink:{type:"boolean",default:!0,role:"content"},linkTarget:{type:"string",default:"_self",role:"content"}},example:{viewportWidth:500},supports:{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}},editorStyle:"wp-block-site-title-editor",style:"wp-block-site-title"};var lw=r(A()),GI=r(Y()),Ds=r(B()),xn=r(S()),Zu=r(M()),sw=r(U()),$I=r(jo());var Xo=r(h());function Fee({attributes:e,setAttributes:t,insertBlocksAfter:o}){let{level:a,levelOptions:n,textAlign:i,isLink:l,linkTarget:s}=e,{canUserEdit:c,title:u}=(0,lw.useSelect)(v=>{let{canUser:_,getEntityRecord:x,getEditedEntityRecord:k}=v(GI.store),C=_("update",{kind:"root",name:"site"}),T=C?k("root","site"):{},N=x("root","__unstableBase");return{canUserEdit:C,title:C?T?.title:N?.name}},[]),{editEntityRecord:m}=(0,lw.useDispatch)(GI.store),p=G(),d=(0,xn.useBlockEditingMode)();function f(v){m("root","site",void 0,{title:v.trim()})}let g=a===0?"p":`h${a}`,b=(0,xn.useBlockProps)({className:w({[`has-text-align-${i}`]:i,"wp-block-site-title__placeholder":!c&&!u})}),y=c?(0,Xo.jsx)(g,{...b,children:(0,Xo.jsx)(xn.RichText,{tagName:l?"a":"span",href:l?"#site-title-pseudo-link":void 0,"aria-label":(0,Ds.__)("Site title text"),placeholder:(0,Ds.__)("Write site title\u2026"),value:u,onChange:f,allowedFormats:[],disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>o((0,sw.createBlock)((0,sw.getDefaultBlockName)()))})}):(0,Xo.jsx)(g,{...b,children:l?(0,Xo.jsx)("a",{href:"#site-title-pseudo-link",onClick:v=>v.preventDefault(),children:(0,$I.decodeEntities)(u)||(0,Ds.__)("Site Title placeholder")}):(0,Xo.jsx)("span",{children:(0,$I.decodeEntities)(u)||(0,Ds.__)("Site Title placeholder")})});return(0,Xo.jsxs)(Xo.Fragment,{children:[d==="default"&&(0,Xo.jsxs)(xn.BlockControls,{group:"block",children:[(0,Xo.jsx)(xn.HeadingLevelDropdown,{value:a,options:n,onChange:v=>t({level:v})}),(0,Xo.jsx)(xn.AlignmentControl,{value:i,onChange:v=>{t({textAlign:v})}})]}),(0,Xo.jsx)(xn.InspectorControls,{children:(0,Xo.jsxs)(Zu.__experimentalToolsPanel,{label:(0,Ds.__)("Settings"),resetAll:()=>{t({isLink:!0,linkTarget:"_self"})},dropdownMenuProps:p,children:[(0,Xo.jsx)(Zu.__experimentalToolsPanelItem,{hasValue:()=>!l,label:(0,Ds.__)("Make title link to home"),onDeselect:()=>t({isLink:!0}),isShownByDefault:!0,children:(0,Xo.jsx)(Zu.ToggleControl,{label:(0,Ds.__)("Make title link to home"),onChange:()=>t({isLink:!l}),checked:l})}),l&&(0,Xo.jsx)(Zu.__experimentalToolsPanelItem,{hasValue:()=>s!=="_self",label:(0,Ds.__)("Open in new tab"),onDeselect:()=>t({linkTarget:"_self"}),isShownByDefault:!0,children:(0,Xo.jsx)(Zu.ToggleControl,{label:(0,Ds.__)("Open in new tab"),onChange:v=>t({linkTarget:v?"_blank":"_self"}),checked:s==="_blank"})})]})}),y]})}var P2e={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:Nt,isEligible({style:e}){return e?.typography?.fontFamily}},Hee=[P2e];var jee=r(U()),N2e={to:[{type:"block",blocks:["core/site-logo"],transform:({isLink:e,linkTarget:t})=>(0,jee.createBlock)("core/site-logo",{isLink:e,linkTarget:t})}]},Oee=N2e;var{name:Uee}=iw,Gee={icon:k7,example:{viewportWidth:350,attributes:{textAlign:"center"}},edit:Fee,transforms:Oee,deprecated:Hee},I2e=()=>D({name:Uee,metadata:iw,settings:Gee});var UD={};$(UD,{init:()=>z2e,metadata:()=>aC,name:()=>$te,settings:()=>nC});var OD=r(B());var Gte=r(U());var Ig=r(Wi()),rC=r(A()),Aa=r(S()),Xp=r(H()),Vo=r(M()),Fte=r(we()),_n=r(B());var Hte=r(U());var jD=r(B());var cw=r(E()),qI=r(h()),$ee=()=>(0,qI.jsx)(cw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,qI.jsx)(cw.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 uw=r(E()),ZI=r(h()),Wee=()=>(0,ZI.jsx)(uw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,ZI.jsx)(uw.Path,{d:"M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"})});var mw=r(E()),KI=r(h()),qee=()=>(0,KI.jsx)(mw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,KI.jsx)(mw.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 pw=r(E()),QI=r(h()),Zee=()=>(0,QI.jsx)(pw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,QI.jsx)(pw.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 dw=r(E()),YI=r(h()),p2=()=>(0,YI.jsx)(dw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,YI.jsx)(dw.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 fw=r(E()),XI=r(h()),Kee=()=>(0,XI.jsx)(fw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,XI.jsx)(fw.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 gw=r(E()),JI=r(h()),Qee=()=>(0,JI.jsx)(gw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,JI.jsx)(gw.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 hw=r(E()),eD=r(h()),Yee=()=>(0,eD.jsx)(hw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,eD.jsx)(hw.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 vw=r(E()),tD=r(h()),Xee=()=>(0,tD.jsx)(vw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,tD.jsx)(vw.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 bw=r(E()),oD=r(h()),Jee=()=>(0,oD.jsx)(bw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,oD.jsx)(bw.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 yw=r(E()),rD=r(h()),ete=()=>(0,rD.jsx)(yw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,rD.jsx)(yw.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 xw=r(E()),aD=r(h()),tte=()=>(0,aD.jsx)(xw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,aD.jsx)(xw.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 _w=r(E()),nD=r(h()),ote=()=>(0,nD.jsx)(_w.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,nD.jsx)(_w.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 kw=r(E()),iD=r(h()),rte=()=>(0,iD.jsx)(kw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,iD.jsx)(kw.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 ww=r(E()),lD=r(h()),ate=()=>(0,lD.jsx)(ww.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,lD.jsx)(ww.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 Cw=r(E()),sD=r(h()),nte=()=>(0,sD.jsx)(Cw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,sD.jsx)(Cw.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 Sw=r(E()),cD=r(h()),ite=()=>(0,cD.jsx)(Sw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,cD.jsx)(Sw.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 Tw=r(E()),uD=r(h()),lte=()=>(0,uD.jsx)(Tw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,uD.jsx)(Tw.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 Bw=r(E()),mD=r(h()),ste=()=>(0,mD.jsx)(Bw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,mD.jsx)(Bw.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 Pw=r(E()),pD=r(h()),cte=()=>(0,pD.jsx)(Pw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,pD.jsx)(Pw.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 Nw=r(E()),dD=r(h()),ute=()=>(0,dD.jsx)(Nw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,dD.jsx)(Nw.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 Iw=r(E()),fD=r(h()),mte=()=>(0,fD.jsx)(Iw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,fD.jsx)(Iw.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 Dw=r(E()),gD=r(h()),pte=()=>(0,gD.jsx)(Dw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,gD.jsx)(Dw.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 Ew=r(E()),hD=r(h()),dte=()=>(0,hD.jsx)(Ew.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,hD.jsx)(Ew.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 Lw=r(E()),vD=r(h()),fte=()=>(0,vD.jsx)(Lw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,vD.jsx)(Lw.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 Mw=r(E()),bD=r(h()),gte=()=>(0,bD.jsx)(Mw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,bD.jsx)(Mw.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 Rw=r(E()),yD=r(h()),hte=()=>(0,yD.jsx)(Rw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,yD.jsx)(Rw.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 zw=r(E()),xD=r(h()),vte=()=>(0,xD.jsx)(zw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,xD.jsx)(zw.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 Aw=r(E()),_D=r(h()),bte=()=>(0,_D.jsx)(Aw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,_D.jsx)(Aw.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 Vw=r(E()),kD=r(h()),yte=()=>(0,kD.jsx)(Vw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,kD.jsx)(Vw.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 Fw=r(E()),wD=r(h()),xte=()=>(0,wD.jsx)(Fw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,wD.jsx)(Fw.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 Hw=r(E()),CD=r(h()),_te=()=>(0,CD.jsx)(Hw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,CD.jsx)(Hw.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 jw=r(E()),SD=r(h()),kte=()=>(0,SD.jsx)(jw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,SD.jsx)(jw.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 Ow=r(E()),TD=r(h()),wte=()=>(0,TD.jsx)(Ow.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,TD.jsx)(Ow.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 Uw=r(E()),BD=r(h()),Cte=()=>(0,BD.jsx)(Uw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,BD.jsx)(Uw.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 Gw=r(E()),PD=r(h()),Ste=()=>(0,PD.jsx)(Gw.SVG,{width:"24",height:"24",viewBox:"0 0 128 128",version:"1.1",children:(0,PD.jsx)(Gw.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 $w=r(E()),ND=r(h()),Tte=()=>(0,ND.jsx)($w.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,ND.jsx)($w.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 Ww=r(E()),ID=r(h()),Bte=()=>(0,ID.jsx)(Ww.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,ID.jsx)(Ww.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 qw=r(E()),DD=r(h()),Pte=()=>(0,DD.jsx)(qw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,DD.jsx)(qw.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 Zw=r(E()),ED=r(h()),Nte=()=>(0,ED.jsx)(Zw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,ED.jsx)(Zw.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 Kw=r(E()),LD=r(h()),Ite=()=>(0,LD.jsx)(Kw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,LD.jsx)(Kw.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 Qw=r(E()),MD=r(h()),Dte=()=>(0,MD.jsx)(Qw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,MD.jsx)(Qw.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 Yw=r(E()),RD=r(h()),Ete=()=>(0,RD.jsx)(Yw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,RD.jsx)(Yw.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 Xw=r(E()),zD=r(h()),Lte=()=>(0,zD.jsx)(Xw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,zD.jsx)(Xw.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 Jw=r(E()),AD=r(h()),Mte=()=>(0,AD.jsx)(Jw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,AD.jsx)(Jw.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 eC=r(E()),VD=r(h()),Rte=()=>(0,VD.jsx)(eC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,VD.jsx)(eC.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 tC=r(E()),FD=r(h()),zte=()=>(0,FD.jsx)(tC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,FD.jsx)(tC.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 oC=r(E()),HD=r(h()),Ate=()=>(0,HD.jsx)(oC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,HD.jsx)(oC.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 Vte(e){return e?.name?{icon:e?.icon??p2,label:e?.title??(0,jD.__)("Social Icon")}:{icon:p2,label:(0,jD.__)("Social Icon")}}var Rt=r(h()),D2e=({url:e,setAttributes:t,setPopover:o,popoverAnchor:a,clientId:n})=>{let{removeBlock:i}=(0,rC.useDispatch)(Aa.store);return(0,Rt.jsx)(Aa.URLPopover,{anchor:a,"aria-label":(0,_n.__)("Edit social link"),onClose:()=>{o(!1),a?.focus()},children:(0,Rt.jsx)("form",{className:"block-editor-url-popover__link-editor",onSubmit:l=>{l.preventDefault(),o(!1),a?.focus()},children:(0,Rt.jsx)("div",{className:"block-editor-url-input",children:(0,Rt.jsx)(Aa.URLInput,{value:e,onChange:l=>t({url:l}),placeholder:(0,_n.__)("Enter social link"),label:(0,_n.__)("Enter social link"),hideLabelFromVision:!0,disableSuggestions:!0,onKeyDown:l=>{e||l.defaultPrevented||![Ig.BACKSPACE,Ig.DELETE].includes(l.keyCode)||i(n)},suffix:(0,Rt.jsx)(Vo.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,Rt.jsx)(Vo.Button,{icon:m7,label:(0,_n.__)("Apply"),type:"submit",size:"small"})})})})})})},E2e=({attributes:e,context:t,isSelected:o,setAttributes:a,clientId:n,name:i})=>{let{url:l,service:s,label:c="",rel:u}=e,m=G(),{showLabels:p,iconColor:d,iconColorValue:f,iconBackgroundColor:g,iconBackgroundColorValue:b}=t,[y,v]=(0,Xp.useState)(!1),_=w("wp-social-link","wp-block-social-link","wp-social-link-"+s,{"wp-social-link__is-incomplete":!l,[`has-${d}-color`]:d,[`has-${g}-background-color`]:g}),[x,k]=(0,Xp.useState)(null),C=(0,Aa.useBlockEditingMode)()==="contentOnly",{activeVariation:T}=(0,rC.useSelect)(O=>{let{getActiveBlockVariation:V}=O(Hte.store);return{activeVariation:V(i,e)}},[i,e]),{icon:N,label:P}=Vte(T),L=c.trim()===""?P:c,R=(0,Xp.useRef)(),z=(0,Aa.useBlockProps)({className:"wp-block-social-link-anchor",ref:(0,Fte.useMergeRefs)([k,R]),onClick:()=>v(!0),onKeyDown:O=>{O.keyCode===Ig.ENTER&&(O.preventDefault(),v(!0))}});return(0,Rt.jsxs)(Rt.Fragment,{children:[C&&p&&(0,Rt.jsx)(Aa.BlockControls,{group:"other",children:(0,Rt.jsx)(Vo.Dropdown,{popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:O,onToggle:V})=>(0,Rt.jsx)(Vo.ToolbarButton,{onClick:V,"aria-haspopup":"true","aria-expanded":O,children:(0,_n.__)("Text")}),renderContent:()=>(0,Rt.jsx)(Vo.TextControl,{__next40pxDefaultSize:!0,className:"wp-block-social-link__toolbar_content_text",label:(0,_n.__)("Text"),help:(0,_n.__)("Provide a text label or use the default."),value:c,onChange:O=>a({label:O}),placeholder:P})})}),(0,Rt.jsx)(Aa.InspectorControls,{children:(0,Rt.jsx)(Vo.__experimentalToolsPanel,{label:(0,_n.__)("Settings"),resetAll:()=>{a({label:void 0})},dropdownMenuProps:m,children:(0,Rt.jsx)(Vo.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,_n.__)("Text"),hasValue:()=>!!c,onDeselect:()=>{a({label:void 0})},children:(0,Rt.jsx)(Vo.TextControl,{__next40pxDefaultSize:!0,label:(0,_n.__)("Text"),help:(0,_n.__)("The text is visible when enabled from the parent Social Icons block."),value:c,onChange:O=>a({label:O}),placeholder:P})})})}),(0,Rt.jsx)(Aa.InspectorControls,{group:"advanced",children:(0,Rt.jsx)(Vo.TextControl,{__next40pxDefaultSize:!0,label:(0,_n.__)("Link relation"),help:(0,Xp.createInterpolateElement)((0,_n.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,Rt.jsx)(Vo.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:u||"",onChange:O=>a({rel:O})})}),(0,Rt.jsxs)("li",{role:"presentation",className:_,style:{color:f,backgroundColor:b},children:[(0,Rt.jsxs)("button",{"aria-haspopup":"dialog",...z,role:"button",children:[(0,Rt.jsx)(Vo.Icon,{icon:N}),(0,Rt.jsx)("span",{className:w("wp-block-social-link-label",{"screen-reader-text":!p}),children:L})]}),o&&y&&(0,Rt.jsx)(D2e,{url:l,setAttributes:a,setPopover:v,popoverAnchor:x,clientId:n})]})]})},jte=E2e;var aC={$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:{reusable:!1,html:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-social-link-editor"};var Pe=r(B());var Ote=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:(0,Pe._x)("WordPress","social link block variation name"),icon:Mte},{name:"fivehundredpx",attributes:{service:"fivehundredpx"},title:(0,Pe._x)("500px","social link block variation name"),icon:rte},{name:"amazon",attributes:{service:"amazon"},title:(0,Pe._x)("Amazon","social link block variation name"),icon:$ee},{name:"bandcamp",attributes:{service:"bandcamp"},title:(0,Pe._x)("Bandcamp","social link block variation name"),icon:Wee},{name:"behance",attributes:{service:"behance"},title:(0,Pe._x)("Behance","social link block variation name"),icon:qee},{name:"bluesky",attributes:{service:"bluesky"},title:(0,Pe._x)("Bluesky","social link block variation name"),icon:Zee},{name:"chain",attributes:{service:"chain"},title:(0,Pe._x)("Link","social link block variation name"),icon:p2},{name:"codepen",attributes:{service:"codepen"},title:(0,Pe._x)("CodePen","social link block variation name"),icon:Kee},{name:"deviantart",attributes:{service:"deviantart"},title:(0,Pe._x)("DeviantArt","social link block variation name"),icon:Qee},{name:"discord",attributes:{service:"discord"},title:(0,Pe._x)("Discord","social link block variation name"),icon:Yee},{name:"dribbble",attributes:{service:"dribbble"},title:(0,Pe._x)("Dribbble","social link block variation name"),icon:Xee},{name:"dropbox",attributes:{service:"dropbox"},title:(0,Pe._x)("Dropbox","social link block variation name"),icon:Jee},{name:"etsy",attributes:{service:"etsy"},title:(0,Pe._x)("Etsy","social link block variation name"),icon:ete},{name:"facebook",attributes:{service:"facebook"},title:(0,Pe._x)("Facebook","social link block variation name"),icon:tte},{name:"feed",attributes:{service:"feed"},title:(0,Pe._x)("RSS Feed","social link block variation name"),icon:ote},{name:"flickr",attributes:{service:"flickr"},title:(0,Pe._x)("Flickr","social link block variation name"),icon:ate},{name:"foursquare",attributes:{service:"foursquare"},title:(0,Pe._x)("Foursquare","social link block variation name"),icon:nte},{name:"goodreads",attributes:{service:"goodreads"},title:(0,Pe._x)("Goodreads","social link block variation name"),icon:ite},{name:"google",attributes:{service:"google"},title:(0,Pe._x)("Google","social link block variation name"),icon:lte},{name:"github",attributes:{service:"github"},title:(0,Pe._x)("GitHub","social link block variation name"),icon:ste},{name:"gravatar",attributes:{service:"gravatar"},title:(0,Pe._x)("Gravatar","social link block variation name"),icon:cte},{name:"instagram",attributes:{service:"instagram"},title:(0,Pe._x)("Instagram","social link block variation name"),icon:ute},{name:"lastfm",attributes:{service:"lastfm"},title:(0,Pe._x)("Last.fm","social link block variation name"),icon:mte},{name:"linkedin",attributes:{service:"linkedin"},title:(0,Pe._x)("LinkedIn","social link block variation name"),icon:pte},{name:"mail",attributes:{service:"mail"},title:(0,Pe._x)("Mail","social link block variation name"),keywords:["email","e-mail"],icon:dte},{name:"mastodon",attributes:{service:"mastodon"},title:(0,Pe._x)("Mastodon","social link block variation name"),icon:fte},{name:"meetup",attributes:{service:"meetup"},title:(0,Pe._x)("Meetup","social link block variation name"),icon:gte},{name:"medium",attributes:{service:"medium"},title:(0,Pe._x)("Medium","social link block variation name"),icon:hte},{name:"patreon",attributes:{service:"patreon"},title:(0,Pe._x)("Patreon","social link block variation name"),icon:vte},{name:"pinterest",attributes:{service:"pinterest"},title:(0,Pe._x)("Pinterest","social link block variation name"),icon:bte},{name:"pocket",attributes:{service:"pocket"},title:(0,Pe._x)("Pocket","social link block variation name"),icon:yte},{name:"reddit",attributes:{service:"reddit"},title:(0,Pe._x)("Reddit","social link block variation name"),icon:xte},{name:"skype",attributes:{service:"skype"},title:(0,Pe._x)("Skype","social link block variation name"),icon:_te,scope:[]},{name:"snapchat",attributes:{service:"snapchat"},title:(0,Pe._x)("Snapchat","social link block variation name"),icon:kte},{name:"soundcloud",attributes:{service:"soundcloud"},title:(0,Pe._x)("SoundCloud","social link block variation name"),icon:wte},{name:"spotify",attributes:{service:"spotify"},title:(0,Pe._x)("Spotify","social link block variation name"),icon:Cte},{name:"telegram",attributes:{service:"telegram"},title:(0,Pe._x)("Telegram","social link block variation name"),icon:Ste},{name:"threads",attributes:{service:"threads"},title:(0,Pe._x)("Threads","social link block variation name"),icon:Tte},{name:"tiktok",attributes:{service:"tiktok"},title:(0,Pe._x)("TikTok","social link block variation name"),icon:Bte},{name:"tumblr",attributes:{service:"tumblr"},title:(0,Pe._x)("Tumblr","social link block variation name"),icon:Pte},{name:"twitch",attributes:{service:"twitch"},title:(0,Pe._x)("Twitch","social link block variation name"),icon:Nte},{name:"twitter",attributes:{service:"twitter"},title:(0,Pe._x)("Twitter","social link block variation name"),icon:Ite},{name:"vimeo",attributes:{service:"vimeo"},title:(0,Pe._x)("Vimeo","social link block variation name"),icon:Dte},{name:"vk",attributes:{service:"vk"},title:(0,Pe._x)("VK","social link block variation name"),icon:Ete},{name:"whatsapp",attributes:{service:"whatsapp"},title:(0,Pe._x)("WhatsApp","social link block variation name"),icon:Lte},{name:"x",attributes:{service:"x"},keywords:["twitter"],title:(0,Pe._x)("X","social link block variation name"),icon:Rte},{name:"yelp",attributes:{service:"yelp"},title:(0,Pe._x)("Yelp","social link block variation name"),icon:zte},{name:"youtube",attributes:{service:"youtube"},title:(0,Pe._x)("YouTube","social link block variation name"),icon:Ate}];Ote.forEach(e=>{e.isActive||(e.isActive=(t,o)=>t.service===o.service)});var Ute=Ote;var{fieldsKey:M2e,formKey:R2e}=Q(Gte.privateApis),{name:$te}=aC,nC={icon:Xh,edit:jte,variations:Ute};window.__experimentalContentOnlyInspectorFields&&(nC[M2e]=[{id:"link",label:(0,OD.__)("Link"),type:"link",mapping:{href:"url",rel:"rel"}},{id:"label",label:(0,OD.__)("Label"),type:"richtext"}],nC[R2e]={fields:["link"]});var z2e=()=>D({name:$te,metadata:aC,settings:nC});var $D={};$($D,{init:()=>U2e,metadata:()=>lC,name:()=>Xte,settings:()=>Jte});var iC=r(S()),GD=r(h()),A2e=e=>{if(e.layout)return e;let{className:t}=e,o="items-justified-",a=new RegExp(`\\b${o}[^ ]*[ ]?\\b`,"g"),n={...e,className:t?.replace(a,"").trim()},i=t?.match(a)?.[0]?.trim();return i&&Object.assign(n,{layout:{type:"flex",justifyContent:i.slice(o.length)}}),n},V2e=[{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:A2e,save:e=>{let{attributes:{iconBackgroundColorValue:t,iconColorValue:o,itemsJustification:a,size:n}}=e,i=w(n,{"has-icon-color":o,"has-icon-background-color":t,[`items-justified-${a}`]:a}),l={"--wp--social-links--icon-color":o,"--wp--social-links--icon-background-color":t};return(0,GD.jsx)("ul",{...iC.useBlockProps.save({className:i,style:l}),children:(0,GD.jsx)(iC.InnerBlocks.Content,{})})}}],Wte=V2e;var qte=r(H()),Jo=r(S()),Tl=r(M()),Va=r(B()),Zte=r(A());var Vr=r(h()),F2e=[{label:(0,Va.__)("Default"),value:""},{label:(0,Va.__)("Small"),value:"has-small-icon-size"},{label:(0,Va.__)("Normal"),value:"has-normal-icon-size"},{label:(0,Va.__)("Large"),value:"has-large-icon-size"},{label:(0,Va.__)("Huge"),value:"has-huge-icon-size"}];function H2e(e){let{clientId:t,attributes:o,iconBackgroundColor:a,iconColor:n,isSelected:i,setAttributes:l,setIconBackgroundColor:s,setIconColor:c}=e,{iconBackgroundColorValue:u,iconColorValue:m,openInNewTab:p,showLabels:d,size:f}=o,{hasSocialIcons:g,hasSelectedChild:b}=(0,Zte.useSelect)(P=>{let{getBlockCount:L,hasSelectedInnerBlock:R}=P(Jo.store);return{hasSocialIcons:L(t)>0,hasSelectedChild:R(t)}},[t]),y=i||b,v=o.className?.includes("is-style-logos-only"),_=G();(0,qte.useEffect)(()=>{if(v){let P;return l(L=>(P={iconBackgroundColor:L.iconBackgroundColor,iconBackgroundColorValue:L.iconBackgroundColorValue,customIconBackgroundColor:L.customIconBackgroundColor},{iconBackgroundColor:void 0,iconBackgroundColorValue:void 0,customIconBackgroundColor:void 0})),()=>l({...P})}},[v,l]);let x=w(f,{"has-visible-labels":d,"has-icon-color":n.color||m,"has-icon-background-color":a.color||u}),k=(0,Jo.useBlockProps)({className:x}),C=(0,Jo.useInnerBlocksProps)(k,{templateLock:!1,orientation:o.layout?.orientation??"horizontal",__experimentalAppenderTagName:"li",renderAppender:!g||y?Jo.InnerBlocks.ButtonBlockAppender:void 0}),T=[{value:n.color||m,onChange:P=>{c(P),l({iconColorValue:P})},label:(0,Va.__)("Icon color"),resetAllFilter:()=>{c(void 0),l({iconColorValue:void 0})}}];v||T.push({value:a.color||u,onChange:P=>{s(P),l({iconBackgroundColorValue:P})},label:(0,Va.__)("Icon background"),resetAllFilter:()=>{s(void 0),l({iconBackgroundColorValue:void 0})}});let N=(0,Jo.__experimentalUseMultipleOriginColorsAndGradients)();return(0,Vr.jsxs)(Vr.Fragment,{children:[(0,Vr.jsx)(Jo.InspectorControls,{children:(0,Vr.jsxs)(Tl.__experimentalToolsPanel,{label:(0,Va.__)("Settings"),resetAll:()=>{l({openInNewTab:!1,showLabels:!1,size:void 0})},dropdownMenuProps:_,children:[(0,Vr.jsx)(Tl.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!f,label:(0,Va.__)("Icon size"),onDeselect:()=>l({size:void 0}),children:(0,Vr.jsx)(Tl.SelectControl,{__next40pxDefaultSize:!0,label:(0,Va.__)("Icon size"),onChange:P=>{l({size:P===""?void 0:P})},value:f??"",options:F2e})}),(0,Vr.jsx)(Tl.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Va.__)("Show text"),hasValue:()=>!!d,onDeselect:()=>l({showLabels:!1}),children:(0,Vr.jsx)(Tl.ToggleControl,{label:(0,Va.__)("Show text"),checked:d,onChange:()=>l({showLabels:!d})})}),(0,Vr.jsx)(Tl.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Va.__)("Open links in new tab"),hasValue:()=>!!p,onDeselect:()=>l({openInNewTab:!1}),children:(0,Vr.jsx)(Tl.ToggleControl,{label:(0,Va.__)("Open links in new tab"),checked:p,onChange:()=>l({openInNewTab:!p})})})]})}),N.hasColorsOrGradients&&(0,Vr.jsxs)(Jo.InspectorControls,{group:"color",children:[T.map(({onChange:P,label:L,value:R,resetAllFilter:z})=>(0,Vr.jsx)(Jo.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:R,label:L,onColorChange:P,isShownByDefault:!0,resetAllFilter:z,enableAlpha:!0,clearable:!0}],panelId:t,...N},`social-links-color-${L}`)),!v&&(0,Vr.jsx)(Jo.ContrastChecker,{textColor:m,backgroundColor:u,isLargeText:!1})]}),(0,Vr.jsx)("ul",{...C})]})}var j2e={iconColor:"icon-color",iconBackgroundColor:"icon-background-color"},Kte=(0,Jo.withColors)(j2e)(H2e);var lC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/social-links",title:"Social Icons",category:"widgets",allowedBlocks:["core/social-link"],description:"Display icons linking to your social profiles or sites.",keywords:["links"],textdomain:"default",attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},showLabels:{type:"boolean",default:!1},size:{type:"string"}},providesContext:{openInNewTab:"openInNewTab",showLabels:"showLabels",iconColor:"iconColor",iconColorValue:"iconColorValue",iconBackgroundColor:"iconBackgroundColor",iconBackgroundColorValue:"iconBackgroundColorValue"},supports:{align:["left","center","right"],anchor:!0,html:!1,__experimentalExposeControlsToChildren:!0,layout:{allowSwitching:!1,allowInheriting:!1,allowVerticalAlignment:!1,default:{type:"flex"}},color:{enableContrastChecker:!1,background:!0,gradients:!0,text:!1,__experimentalDefaultControls:{background:!1}},spacing:{blockGap:["horizontal","vertical"],margin:!0,padding:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0,margin:!0,padding:!1}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}},contentRole:!0},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 sC=r(S()),Qte=r(h());function Yte(e){let{attributes:{iconBackgroundColorValue:t,iconColorValue:o,showLabels:a,size:n}}=e,i=w(n,{"has-visible-labels":a,"has-icon-color":o,"has-icon-background-color":t}),l=sC.useBlockProps.save({className:i}),s=sC.useInnerBlocksProps.save(l);return(0,Qte.jsx)("ul",{...s})}var{name:Xte}=lC,Jte={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:Xh,edit:Kte,save:Yte,deprecated:Wte},U2e=()=>D({name:Xte,metadata:lC,settings:Jte});var WD={};$(WD,{init:()=>Q2e,metadata:()=>uC,name:()=>goe,settings:()=>hoe});var eoe=r(S()),toe=r(h()),G2e=[{attributes:{height:{type:"number",default:100},width:{type:"number"}},migrate(e){let{height:t,width:o}=e;return{...e,width:o!==void 0?`${o}px`:void 0,height:t!==void 0?`${t}px`:void 0}},save({attributes:e}){return(0,toe.jsx)("div",{...eoe.useBlockProps.save({style:{height:e.height,width:e.width},"aria-hidden":!0})})}}],ooe=G2e;var Fr=r(S()),soe=r(M()),Eg=r(H()),coe=r(E()),cC=r(A());var Dg=r(B()),Es=r(S()),Li=r(M()),aoe=r(we()),noe=r(E());var d2=0;var kn=r(h()),{useSpacingSizes:$2e}=Q(Es.privateApis);function roe({label:e,onChange:t,isResizing:o,value:a=""}){let n=(0,aoe.useInstanceId)(Li.__experimentalUnitControl,"block-spacer-height-input"),i=$2e(),[l]=(0,Es.useSettings)("spacing.units"),s=l?l.filter(d=>d!=="%"):["px","em","rem","vw","vh"],c=(0,Li.__experimentalUseCustomUnits)({availableUnits:s,defaultValues:{px:100,em:10,rem:10,vw:10,vh:25}}),[u,m]=(0,Li.__experimentalParseQuantityAndUnitFromRawValue)(a),p=(0,Es.isValueSpacingPreset)(a)?a:[u,o?"px":m].join("");return(0,kn.jsx)(kn.Fragment,{children:i?.length<2?(0,kn.jsx)(Li.__experimentalUnitControl,{id:n,isResetValueOnUnitChange:!0,min:d2,onChange:t,value:p,units:c,label:e,__next40pxDefaultSize:!0}):(0,kn.jsx)(noe.View,{className:"tools-panel-item-spacing",children:(0,kn.jsx)(Es.__experimentalSpacingSizesControl,{values:{all:p},onChange:({all:d})=>{t(d)},label:e,sides:["all"],units:c,allowReset:!1,splitOnAxis:!1,showSideInLabel:!1})})})}function ioe({setAttributes:e,orientation:t,height:o,width:a,isResizing:n}){let i=G();return(0,kn.jsx)(Es.InspectorControls,{children:(0,kn.jsxs)(Li.__experimentalToolsPanel,{label:(0,Dg.__)("Settings"),resetAll:()=>{e({width:void 0,height:"100px"})},dropdownMenuProps:i,children:[t==="horizontal"&&(0,kn.jsx)(Li.__experimentalToolsPanelItem,{label:(0,Dg.__)("Width"),isShownByDefault:!0,hasValue:()=>a!==void 0,onDeselect:()=>e({width:void 0}),children:(0,kn.jsx)(roe,{label:(0,Dg.__)("Width"),value:a,onChange:l=>e({width:l}),isResizing:n})}),t!=="horizontal"&&(0,kn.jsx)(Li.__experimentalToolsPanelItem,{label:(0,Dg.__)("Height"),isShownByDefault:!0,hasValue:()=>o!=="100px",onDeselect:()=>e({height:"100px"}),children:(0,kn.jsx)(roe,{label:(0,Dg.__)("Height"),value:o,onChange:l=>e({height:l}),isResizing:n})})]})})}var Mi=r(h()),{useSpacingSizes:W2e}=Q(Fr.privateApis),loe=({orientation:e,onResizeStart:t,onResize:o,onResizeStop:a,isSelected:n,isResizing:i,setIsResizing:l,...s})=>{let c=m=>e==="horizontal"?m.clientWidth:m.clientHeight,u=m=>`${c(m)}px`;return(0,Mi.jsx)(soe.ResizableBox,{className:w("block-library-spacer__resize-container",{"resize-horizontal":e==="horizontal","is-resizing":i,"is-selected":n}),onResizeStart:(m,p,d)=>{let f=u(d);t(f),o(f)},onResize:(m,p,d)=>{o(u(d)),i||l(!0)},onResizeStop:(m,p,d)=>{let f=c(d);a(`${f}px`),l(!1)},__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:e==="horizontal"?"x":"y",position:"corner",isVisible:i},showHandle:n,...s})},q2e=({attributes:e,isSelected:t,setAttributes:o,toggleSelection:a,context:n,__unstableParentLayout:i,className:l})=>{let s=(0,cC.useSelect)(J=>J(Fr.store).getSettings()?.disableCustomSpacingSizes),{orientation:c}=n,{orientation:u,type:m,default:{type:p}={}}=i||{},d=m==="flex"||!m&&p==="flex",f=!u&&d?"horizontal":u||c,{height:g,width:b,style:y={}}=e,{layout:v={}}=y,{selfStretch:_,flexSize:x}=v,k=W2e(),[C,T]=(0,Eg.useState)(!1),[N,P]=(0,Eg.useState)(null),[L,R]=(0,Eg.useState)(null),z=()=>a(!1),O=()=>a(!0),{__unstableMarkNextChangeAsNotPersistent:V}=(0,cC.useDispatch)(Fr.store),I=J=>{O(),d&&o({style:{...y,layout:{...v,flexSize:J,selfStretch:"fixed"}}}),o({height:J}),P(null)},F=J=>{O(),d&&o({style:{...y,layout:{...v,flexSize:J,selfStretch:"fixed"}}}),o({width:J}),R(null)},W=()=>{if(!d)return N||(0,Fr.getSpacingPresetCssVar)(g)||void 0},j=()=>{if(!d)return L||(0,Fr.getSpacingPresetCssVar)(b)||void 0},K=f==="horizontal"?L||x:N||x,Z={height:f==="horizontal"?24:W(),width:f==="horizontal"?j():void 0,minWidth:f==="vertical"&&d?48:void 0,flexBasis:d?K:void 0,flexGrow:d&&C?0:void 0},te=J=>J==="horizontal"?(0,Mi.jsx)(loe,{minWidth:d2,enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:J,onResizeStart:z,onResize:R,onResizeStop:F,isSelected:t,isResizing:C,setIsResizing:T}):(0,Mi.jsx)(Mi.Fragment,{children:(0,Mi.jsx)(loe,{minHeight:d2,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:J,onResizeStart:z,onResize:P,onResizeStop:I,isSelected:t,isResizing:C,setIsResizing:T})});(0,Eg.useEffect)(()=>{let J=ee=>{V(),o(ee)};if(d&&_!=="fill"&&_!=="fit"&&x===void 0)if(f==="horizontal"){let ee=(0,Fr.getCustomValueFromPreset)(b,k)||(0,Fr.getCustomValueFromPreset)(g,k)||"100px";J({width:"0px",style:{...y,layout:{...v,flexSize:ee,selfStretch:"fixed"}}})}else{let ee=(0,Fr.getCustomValueFromPreset)(g,k)||(0,Fr.getCustomValueFromPreset)(b,k)||"100px";J({height:"0px",style:{...y,layout:{...v,flexSize:ee,selfStretch:"fixed"}}})}else d&&(_==="fill"||_==="fit")?J(f==="horizontal"?{width:void 0}:{height:void 0}):!d&&(_||x)&&J({...f==="horizontal"?{width:x}:{height:x},style:{...y,layout:{...v,flexSize:void 0,selfStretch:void 0}}})},[y,x,g,f,d,v,_,o,k,b,V]);let X=(0,Fr.useBlockEditingMode)();return(0,Mi.jsxs)(Mi.Fragment,{children:[(0,Mi.jsx)(coe.View,{...(0,Fr.useBlockProps)({style:Z,className:w(l,{"custom-sizes-disabled":s})}),children:X==="default"&&te(f)}),!d&&(0,Mi.jsx)(ioe,{setAttributes:o,height:N||g,width:L||b,orientation:f,isResizing:C})]})},uoe=q2e;var uC={$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 moe=r(U()),K2e={to:[{type:"block",blocks:["core/separator"],transform:({anchor:e})=>(0,moe.createBlock)("core/separator",{anchor:e||void 0})}]},poe=K2e;var f2=r(S()),doe=r(h());function foe({attributes:e}){let{height:t,width:o,style:a}=e,{layout:{selfStretch:n}={}}=a||{},i=n==="fill"||n==="fit"?void 0:t;return(0,doe.jsx)("div",{...f2.useBlockProps.save({style:{height:(0,f2.getSpacingPresetCssVar)(i),width:(0,f2.getSpacingPresetCssVar)(o)},"aria-hidden":!0})})}var{name:goe}=uC,hoe={icon:M9,transforms:poe,edit:uoe,save:foe,deprecated:ooe},Q2e=()=>D({name:goe,metadata:uC,settings:hoe});var QD={};$(QD,{init:()=>eve,metadata:()=>bC,name:()=>Loe,settings:()=>Moe});var Poe=r(B()),Pl=r(S()),hC=r(A()),Fa=r(H());var gC=r(S()),Lg=r(M()),g2=r(B()),xoe=r(A()),_oe=r(jo());var voe=r(U()),pC=r(S()),dC=r(M()),qD=r(B()),boe=r(A()),mC=r(h());function fC({attributes:e,tabsClientId:t}){let{insertBlock:o}=(0,boe.useDispatch)(pC.store),{className:a,fontFamily:n,fontSize:i}=e,l=()=>{let s=(0,voe.createBlock)("core/tab",{className:a,fontFamily:n,fontSize:i});o(s,void 0,t)};return(0,mC.jsx)(pC.BlockControls,{group:"block",children:(0,mC.jsx)(dC.ToolbarGroup,{children:(0,mC.jsx)(dC.ToolbarButton,{className:"components-toolbar__control",label:(0,qD.__)("Add Tab"),onClick:l,showTooltip:!0,text:(0,qD.__)("Add Tab")})})})}var yoe=r(ko());function Jp(e,t){let o=new window.DOMParser().parseFromString(e,"text/html");return o.body?.textContent?(0,yoe.cleanForSlug)(o.body.textContent):`tab-panel-${t}`}var Ls=r(h());function koe({attributes:e,setAttributes:t,tabsClientId:o,blockIndex:a,isDefaultTab:n}){let{label:i}=e,{updateBlockAttributes:l}=(0,xoe.useDispatch)(gC.store);return(0,Ls.jsxs)(Ls.Fragment,{children:[(0,Ls.jsx)(fC,{tabsClientId:o,attributes:e}),(0,Ls.jsx)(gC.InspectorControls,{children:(0,Ls.jsxs)(Lg.PanelBody,{title:(0,g2.__)("Tab Settings"),children:[(0,Ls.jsx)(Lg.TextControl,{label:(0,g2.__)("Tab Label"),value:(0,_oe.decodeEntities)(i),onChange:s=>{t({label:s,anchor:Jp(s,a)})},__next40pxDefaultSize:!0}),(0,Ls.jsx)(Lg.ToggleControl,{label:(0,g2.__)("Default Tab"),checked:n,onChange:s=>{l(o,{activeTabIndex:s?a:0})},help:(0,g2.__)("If toggled, this tab will be selected when the page loads.")})]})})]})}var Mg=r(B()),woe=r(S()),ZD=r(jo()),Coe=r(H());var Ku=r(h());function Y2e({label:e,index:t}){return e?(0,Ku.jsx)("span",{children:(0,Ku.jsx)(Coe.RawHTML,{children:(0,ZD.decodeEntities)(e)})}):(0,Ku.jsx)("span",{children:(0,Mg.sprintf)((0,Mg.__)("Tab %d"),t+1)})}function Soe({siblingTabs:e,currentClientId:t,currentBlockIndex:o,currentLabel:a,tabItemColorProps:n,onSelectTab:i,onLabelChange:l,labelRef:s,focusRef:c,labelElementRef:u}){return(0,Ku.jsx)("div",{role:"tablist",className:"tabs__list",children:e.map((m,p)=>{let d=m.clientId===t,f=p===o,g=m.attributes||{},b=g.label||"",v=g.anchor||Jp(b,p),_=`${v}--tab`;return(0,Ku.jsx)("button",{"aria-controls":v,"aria-selected":f,id:_,role:"tab",className:w("tabs__tab-label",n.className),style:{...n.style},tabIndex:f?0:-1,onClick:x=>{x.preventDefault(),i(m.clientId)},onKeyDown:x=>{if(x.key==="Enter"&&!x.shiftKey&&(x.preventDefault(),i(m.clientId),d)){let{requestAnimationFrame:k}=window;c.current=k(()=>{u.current?.focus()})}},children:d?(0,Ku.jsx)(woe.RichText,{ref:s,tagName:"span",withoutInteractiveFormatting:!0,placeholder:(0,Mg.sprintf)((0,Mg.__)("Tab %d\u2026"),o+1),value:(0,ZD.decodeEntities)(a),onChange:l}):(0,Ku.jsx)(Y2e,{label:b,index:p})},m.clientId)})})}var Bl=r(h()),X2e=[["core/paragraph",{placeholder:(0,Poe.__)("Type / to add a block to tab")}]],{requestAnimationFrame:Toe,cancelAnimationFrame:Boe}=window;function Noe({attributes:e,clientId:t,isSelected:o,setAttributes:a,__unstableLayoutClassNames:n}){let{selectBlock:i}=(0,hC.useDispatch)(Pl.store),l=(0,Fa.useRef)(null),s=(0,Fa.useRef)(),[c,u]=(0,Fa.useState)(!0),m=(0,Fa.useRef)(null),{anchor:p,label:d}=e,f=(0,Fa.useCallback)(I=>{if(m.current=I,I&&c){let F=Toe(()=>{I&&I.focus()});s.current=F,u(!1)}},[c]);(0,Fa.useEffect)(()=>{if(!d&&!c&&m.current){let I=Toe(()=>{m.current&&m.current.focus()});return s.current=I,()=>Boe(s.current)}},[d,c]),(0,Fa.useEffect)(()=>()=>{s.current&&Boe(s.current)},[]);let{blockIndex:g,hasInnerBlocksSelected:b,tabsHasSelectedBlock:y,tabsClientId:v,tabsAttributes:_,forceDisplay:x,isTabsClientSelected:k,isDefaultTab:C,siblingTabs:T}=(0,hC.useSelect)(I=>{let{getBlockRootClientId:F,getBlockIndex:W,isBlockSelected:j,hasSelectedInnerBlock:K,getBlockAttributes:Z,getBlocks:te}=I(Pl.store),X=F(t),J=K(X,!0),ee=Z(X),{activeTabIndex:ne}=ee,re=j(X),se=W(t),ue=ne===se,Ne=K(t,!0),Le=te(X);return{blockIndex:se,hasInnerBlocksSelected:Ne,tabsClientId:X,forceDisplay:ue&&re,tabsHasSelectedBlock:J,isTabsClientSelected:re,isDefaultTab:ue,tabsAttributes:ee,siblingTabs:Le}},[t]),N=(0,Fa.useMemo)(()=>!!(o||b||x||C&&!k&&!o&&!y),[o,b,x,C,k,y]),P=(0,Fa.useMemo)(()=>p||Jp(d,g),[p,d,g]),L=(0,Fa.useMemo)(()=>`${P}--tab`,[P]),R=(0,Pl.__experimentalUseColorProps)(_),z=(0,Pl.getTypographyClassesAndStyles)(e),O=(0,Pl.useBlockProps)({hidden:!N}),V=(0,Pl.useInnerBlocksProps)({"aria-labelledby":L,id:P,role:"tabpanel",ref:l,tabIndex:N?0:-1,className:w(z.className,"tabs__tab-editor-content",n),style:{...z.style}},{template:X2e});return(0,Bl.jsx)(Bl.Fragment,{children:(0,Bl.jsxs)("div",{...O,children:[(0,Bl.jsx)(koe,{attributes:e,setAttributes:a,tabsClientId:v,blockIndex:g,isDefaultTab:C}),N&&(0,Bl.jsxs)(Bl.Fragment,{children:[(0,Bl.jsx)(Soe,{siblingTabs:T,currentClientId:t,currentBlockIndex:g,currentLabel:d,tabItemColorProps:R,onSelectTab:i,onLabelChange:I=>a({label:I,anchor:Jp(I,g)}),labelRef:f,focusRef:s,labelElementRef:m}),(0,Bl.jsx)("section",{...V})]})]})})}var vC=r(S()),Ioe=r(h());function Doe({attributes:e}){let{anchor:t}=e,o=t,a=vC.useBlockProps.save(),n=vC.useInnerBlocksProps.save(a);return(0,Ioe.jsx)("section",{...n,id:o})}var bC={$schema:"https://schemas.wp.org/trunk/block.json",__experimental:!0,apiVersion:3,name:"core/tab",title:"Tab",description:"Content for a tab in a tabbed interface.",version:"1.0.0",category:"design",textdomain:"default",attributes:{label:{type:"string",default:""}},parent:["core/tabs"],supports:{anchor:!0,html:!1,reusable:!1,layout:{allowSwitching:!0,allowInheriting:!1,allowVerticalAlignment:!0,allowJustification:!0,allowOrientation:!0,allowSizingOnChildren:!0},spacing:{blockGap:!0,padding:!0,margin:!1},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalDefaultControls:{fontSize:!0,__experimentalFontFamily:!0},__experimentalSkipSerialization:!0}},providesContext:{"core/tab-label":"label"},editorScript:"file:./index.js",style:"file:./style-index.css"};var yC=r(M()),KD=r(h()),Eoe=(0,KD.jsx)(yC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,KD.jsx)(yC.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5498 10.3501V6.3501H9.8498V10.3501H11.3498V6.1001C11.3498 5.40974 10.7902 4.8501 10.0998 4.8501H5.2998C4.60945 4.8501 4.0498 5.40974 4.0498 6.1001V10.3501H5.5498ZM20 12.6001H4V14.1001L20 14.1001V12.6001ZM14 17.1001H4V18.6001H14V17.1001Z"})});var{name:Loe}=bC,Moe={icon:Eoe,edit:Noe,save:Doe},eve=()=>D({name:Loe,metadata:bC,settings:Moe});var iE={};$(iE,{init:()=>vve,metadata:()=>xC,name:()=>qoe,settings:()=>Zoe});var Ms=r(B());var Ot=r(S()),Ye=r(h()),Roe={"subtle-light-gray":"#f3f4f5","subtle-pale-green":"#e9fbe5","subtle-pale-blue":"#e7f5fe","subtle-pale-pink":"#fcf0ef"},YD={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"}},tve={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:YD}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:YD}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:YD}}}},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:o,body:a,foot:n,caption:i}=e;if(!o.length&&!a.length&&!n.length)return null;let s=(0,Ot.__experimentalGetColorClassesAndStyles)(e),c=(0,Ot.__experimentalGetBorderClassesAndStyles)(e),u=w(s.className,c.className,{"has-fixed-layout":t}),m=!Ot.RichText.isEmpty(i),p=({type:d,rows:f})=>{if(!f.length)return null;let g=`t${d}`;return(0,Ye.jsx)(g,{children:f.map(({cells:b},y)=>(0,Ye.jsx)("tr",{children:b.map(({content:v,tag:_,scope:x,align:k,colspan:C,rowspan:T},N)=>{let P=w({[`has-text-align-${k}`]:k});return(0,Ye.jsx)(Ot.RichText.Content,{className:P||void 0,"data-align":k,tagName:_,value:v,scope:_==="th"?x:void 0,colSpan:C,rowSpan:T},N)})},y))})};return(0,Ye.jsxs)("figure",{...Ot.useBlockProps.save(),children:[(0,Ye.jsxs)("table",{className:u===""?void 0:u,style:{...s.style,...c.style},children:[(0,Ye.jsx)(p,{type:"head",rows:o}),(0,Ye.jsx)(p,{type:"body",rows:a}),(0,Ye.jsx)(p,{type:"foot",rows:n})]}),m&&(0,Ye.jsx)(Ot.RichText.Content,{tagName:"figcaption",value:i,className:(0,Ot.__experimentalGetElementClassName)("caption")})]})}},XD={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"}},ove={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:XD}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:XD}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:XD}}}},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:o,body:a,foot:n,caption:i}=e;if(!o.length&&!a.length&&!n.length)return null;let s=(0,Ot.__experimentalGetColorClassesAndStyles)(e),c=(0,Ot.__experimentalGetBorderClassesAndStyles)(e),u=w(s.className,c.className,{"has-fixed-layout":t}),m=!Ot.RichText.isEmpty(i),p=({type:d,rows:f})=>{if(!f.length)return null;let g=`t${d}`;return(0,Ye.jsx)(g,{children:f.map(({cells:b},y)=>(0,Ye.jsx)("tr",{children:b.map(({content:v,tag:_,scope:x,align:k},C)=>{let T=w({[`has-text-align-${k}`]:k});return(0,Ye.jsx)(Ot.RichText.Content,{className:T||void 0,"data-align":k,tagName:_,value:v,scope:_==="th"?x:void 0},C)})},y))})};return(0,Ye.jsxs)("figure",{...Ot.useBlockProps.save(),children:[(0,Ye.jsxs)("table",{className:u===""?void 0:u,style:{...s.style,...c.style},children:[(0,Ye.jsx)(p,{type:"head",rows:o}),(0,Ye.jsx)(p,{type:"body",rows:a}),(0,Ye.jsx)(p,{type:"foot",rows:n})]}),m&&(0,Ye.jsx)(Ot.RichText.Content,{tagName:"figcaption",value:i})]})}},JD={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"}},rve={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:JD}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:JD}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:JD}}}},supports:{anchor:!0,align:!0,__experimentalSelector:".wp-block-table > table"},save:({attributes:e})=>{let{hasFixedLayout:t,head:o,body:a,foot:n,backgroundColor:i,caption:l}=e;if(!o.length&&!a.length&&!n.length)return null;let c=(0,Ot.getColorClassName)("background-color",i),u=w(c,{"has-fixed-layout":t,"has-background":!!c}),m=!Ot.RichText.isEmpty(l),p=({type:d,rows:f})=>{if(!f.length)return null;let g=`t${d}`;return(0,Ye.jsx)(g,{children:f.map(({cells:b},y)=>(0,Ye.jsx)("tr",{children:b.map(({content:v,tag:_,scope:x,align:k},C)=>{let T=w({[`has-text-align-${k}`]:k});return(0,Ye.jsx)(Ot.RichText.Content,{className:T||void 0,"data-align":k,tagName:_,value:v,scope:_==="th"?x:void 0},C)})},y))})};return(0,Ye.jsxs)("figure",{...Ot.useBlockProps.save(),children:[(0,Ye.jsxs)("table",{className:u===""?void 0:u,children:[(0,Ye.jsx)(p,{type:"head",rows:o}),(0,Ye.jsx)(p,{type:"body",rows:a}),(0,Ye.jsx)(p,{type:"foot",rows:n})]}),m&&(0,Ye.jsx)(Ot.RichText.Content,{tagName:"figcaption",value:l})]})},isEligible:e=>e.backgroundColor&&e.backgroundColor in Roe&&!e.style,migrate:e=>({...e,backgroundColor:void 0,style:{color:{background:Roe[e.backgroundColor]}}})},eE={content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}},ave={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:eE}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:eE}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:eE}}}},supports:{align:!0},save({attributes:e}){let{hasFixedLayout:t,head:o,body:a,foot:n,backgroundColor:i}=e;if(!o.length&&!a.length&&!n.length)return null;let s=(0,Ot.getColorClassName)("background-color",i),c=w(s,{"has-fixed-layout":t,"has-background":!!s}),u=({type:m,rows:p})=>{if(!p.length)return null;let d=`t${m}`;return(0,Ye.jsx)(d,{children:p.map(({cells:f},g)=>(0,Ye.jsx)("tr",{children:f.map(({content:b,tag:y,scope:v},_)=>(0,Ye.jsx)(Ot.RichText.Content,{tagName:y,value:b,scope:y==="th"?v:void 0},_))},g))})};return(0,Ye.jsxs)("table",{className:c,children:[(0,Ye.jsx)(u,{type:"head",rows:o}),(0,Ye.jsx)(u,{type:"body",rows:a}),(0,Ye.jsx)(u,{type:"foot",rows:n})]})}},zoe=[tve,ove,rve,ave];var wn=r(H()),er=r(S()),bt=r(B()),Bo=r(M());var nve=["align"];function Aoe({rowCount:e,columnCount:t}){return{body:Array.from({length:e}).map(()=>({cells:Array.from({length:t}).map(()=>({content:"",tag:"td"}))}))}}function ive(e){if(!Qu(e.head))return e.head[0];if(!Qu(e.body))return e.body[0];if(!Qu(e.foot))return e.foot[0]}function Voe(e,t,o){let{sectionName:a,rowIndex:n,columnIndex:i}=t;return e[a]?.[n]?.cells?.[i]?.[o]}function tE(e,t,o){if(!t)return e;let a=Object.fromEntries(Object.entries(e).filter(([l])=>["head","body","foot"].includes(l))),{sectionName:n,rowIndex:i}=t;return Object.fromEntries(Object.entries(a).map(([l,s])=>n&&n!==l?[l,s]:[l,s.map((c,u)=>i&&i!==u?c:{cells:c.cells.map((m,p)=>lve({sectionName:l,columnIndex:p,rowIndex:u},t)?o(m):m)})]))}function lve(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 oE(e,{sectionName:t,rowIndex:o,columnCount:a}){let n=ive(e),i=a===void 0?n?.cells?.length:a;return i?{[t]:[...e[t].slice(0,o),{cells:Array.from({length:i}).map((l,s)=>{let c=n?.cells?.[s]??{};return{...Object.fromEntries(Object.entries(c).filter(([m])=>nve.includes(m))),content:"",tag:t==="head"?"th":"td"}})},...e[t].slice(o)]}:e}function Foe(e,{sectionName:t,rowIndex:o}){return{[t]:e[t].filter((a,n)=>n!==o)}}function Hoe(e,{columnIndex:t}){let o=Object.fromEntries(Object.entries(e).filter(([a])=>["head","body","foot"].includes(a)));return Object.fromEntries(Object.entries(o).map(([a,n])=>Qu(n)?[a,n]:[a,n.map(i=>Ooe(i)||i.cells.length<t?i:{cells:[...i.cells.slice(0,t),{content:"",tag:a==="head"?"th":"td"},...i.cells.slice(t)]})]))}function joe(e,{columnIndex:t}){let o=Object.fromEntries(Object.entries(e).filter(([a])=>["head","body","foot"].includes(a)));return Object.fromEntries(Object.entries(o).map(([a,n])=>Qu(n)?[a,n]:[a,n.map(i=>({cells:i.cells.length>=t?i.cells.filter((l,s)=>s!==t):i.cells})).filter(i=>i.cells.length)]))}function rE(e,t){if(!Qu(e[t]))return{[t]:[]};let o=e.body?.[0]?.cells?.length??1;return oE(e,{sectionName:t,rowIndex:0,columnCount:o})}function Qu(e){return!e||!e.length||e.every(Ooe)}function Ooe(e){return!(e.cells&&e.cells.length)}var ot=r(h()),sve=[{icon:B6,title:(0,bt.__)("Align column left"),align:"left"},{icon:S6,title:(0,bt.__)("Align column center"),align:"center"},{icon:D6,title:(0,bt.__)("Align column right"),align:"right"}],cve={head:(0,bt.__)("Header cell text"),body:(0,bt.__)("Body cell text"),foot:(0,bt.__)("Footer cell text")},uve={head:(0,bt.__)("Header label"),foot:(0,bt.__)("Footer label")};function mve({name:e,...t}){let o=`t${e}`;return(0,ot.jsx)(o,{...t})}function pve({attributes:e,setAttributes:t,insertBlocksAfter:o,isSelected:a}){let{hasFixedLayout:n,head:i,foot:l}=e,[s,c]=(0,wn.useState)(2),[u,m]=(0,wn.useState)(2),[p,d]=(0,wn.useState)(),f=(0,er.__experimentalUseColorProps)(e),g=(0,er.__experimentalUseBorderProps)(e),b=(0,er.useBlockEditingMode)(),y=(0,wn.useRef)(),[v,_]=(0,wn.useState)(!1),x=G();function k(re){m(re)}function C(re){c(re)}function T(re){re.preventDefault(),t(Aoe({rowCount:parseInt(s,10)||2,columnCount:parseInt(u,10)||2})),_(!0)}function N(){t({hasFixedLayout:!n})}let P=(0,wn.useCallback)(function(re){p&&t(se=>tE(se,p,ue=>({...ue,content:re})))},[p,t]);function L(re){if(!p)return;let se={type:"column",columnIndex:p.columnIndex},ue=tE(e,se,Ne=>({...Ne,align:re}));t(ue)}function R(){if(p)return Voe(e,p,"align")}function z(){t(rE(e,"head"))}function O(){t(rE(e,"foot"))}function V(re){if(!p)return;let{sectionName:se,rowIndex:ue}=p,Ne=ue+re;t(oE(e,{sectionName:se,rowIndex:Ne})),d({sectionName:se,rowIndex:Ne,columnIndex:0,type:"cell"})}function I(){V(0)}function F(){V(1)}function W(){if(!p)return;let{sectionName:re,rowIndex:se}=p;d(),t(Foe(e,{sectionName:re,rowIndex:se}))}function j(re=0){if(!p)return;let{columnIndex:se}=p,ue=se+re;t(Hoe(e,{columnIndex:ue})),d({rowIndex:0,columnIndex:ue,type:"cell"})}function K(){j(0)}function Z(){j(1)}function te(){if(!p)return;let{sectionName:re,columnIndex:se}=p;d(),t(joe(e,{sectionName:re,columnIndex:se}))}(0,wn.useEffect)(()=>{a||d()},[a]),(0,wn.useEffect)(()=>{v&&(y?.current?.querySelector('td div[contentEditable="true"]')?.focus(),_(!1))},[v]);let X=["head","body","foot"].filter(re=>!Qu(e[re])),J=[{icon:sS,title:(0,bt.__)("Insert row before"),isDisabled:!p,onClick:I},{icon:iS,title:(0,bt.__)("Insert row after"),isDisabled:!p,onClick:F},{icon:uS,title:(0,bt.__)("Delete row"),isDisabled:!p,onClick:W},{icon:oS,title:(0,bt.__)("Insert column before"),isDisabled:!p,onClick:K},{icon:kd,title:(0,bt.__)("Insert column after"),isDisabled:!p,onClick:Z},{icon:aS,title:(0,bt.__)("Delete column"),isDisabled:!p,onClick:te}],ee=X.map(re=>(0,ot.jsx)(mve,{name:re,children:e[re].map(({cells:se},ue)=>(0,ot.jsx)("tr",{children:se.map((Ne,Le)=>{let ie=p?.sectionName===re&&p?.rowIndex===ue&&p?.columnIndex===Le;return(0,ot.jsx)(dve,{name:re,rowIndex:ue,columnIndex:Le,onChange:ie?P:void 0,setSelectedCell:d,...Ne},Le)})},ue))},re)),ne=!X.length;return(0,ot.jsxs)("figure",{...(0,er.useBlockProps)({ref:y}),children:[!ne&&b==="default"&&(0,ot.jsxs)(ot.Fragment,{children:[(0,ot.jsx)(er.BlockControls,{group:"block",children:(0,ot.jsx)(er.AlignmentControl,{label:(0,bt.__)("Change column alignment"),alignmentControls:sve,value:R(),onChange:re=>L(re)})}),(0,ot.jsx)(er.BlockControls,{group:"other",children:(0,ot.jsx)(Bo.ToolbarDropdownMenu,{icon:pS,label:(0,bt.__)("Edit table"),controls:J})})]}),(0,ot.jsx)(er.InspectorControls,{children:(0,ot.jsxs)(Bo.__experimentalToolsPanel,{label:(0,bt.__)("Settings"),resetAll:()=>{t({hasFixedLayout:!0,head:[],foot:[]})},dropdownMenuProps:x,children:[(0,ot.jsx)(Bo.__experimentalToolsPanelItem,{hasValue:()=>n!==!0,label:(0,bt.__)("Fixed width table cells"),onDeselect:()=>t({hasFixedLayout:!0}),isShownByDefault:!0,children:(0,ot.jsx)(Bo.ToggleControl,{label:(0,bt.__)("Fixed width table cells"),checked:!!n,onChange:N})}),!ne&&(0,ot.jsxs)(ot.Fragment,{children:[(0,ot.jsx)(Bo.__experimentalToolsPanelItem,{hasValue:()=>i&&i.length,label:(0,bt.__)("Header section"),onDeselect:()=>t({head:[]}),isShownByDefault:!0,children:(0,ot.jsx)(Bo.ToggleControl,{label:(0,bt.__)("Header section"),checked:!!(i&&i.length),onChange:z})}),(0,ot.jsx)(Bo.__experimentalToolsPanelItem,{hasValue:()=>l&&l.length,label:(0,bt.__)("Footer section"),onDeselect:()=>t({foot:[]}),isShownByDefault:!0,children:(0,ot.jsx)(Bo.ToggleControl,{label:(0,bt.__)("Footer section"),checked:!!(l&&l.length),onChange:O})})]})]})}),!ne&&(0,ot.jsx)("table",{className:w(f.className,g.className,{"has-fixed-layout":n,"has-individual-borders":(0,Bo.__experimentalHasSplitBorders)(e?.style?.border)}),style:{...f.style,...g.style},children:ee}),ne?(0,ot.jsx)(Bo.Placeholder,{label:(0,bt.__)("Table"),icon:(0,ot.jsx)(er.BlockIcon,{icon:hh,showColors:!0}),instructions:(0,bt.__)("Insert a table for sharing data."),children:(0,ot.jsxs)("form",{className:"blocks-table__placeholder-form",onSubmit:T,children:[(0,ot.jsx)(Bo.TextControl,{__next40pxDefaultSize:!0,type:"number",label:(0,bt.__)("Column count"),value:u,onChange:k,min:"1",className:"blocks-table__placeholder-input"}),(0,ot.jsx)(Bo.TextControl,{__next40pxDefaultSize:!0,type:"number",label:(0,bt.__)("Row count"),value:s,onChange:C,min:"1",className:"blocks-table__placeholder-input"}),(0,ot.jsx)(Bo.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,bt.__)("Create Table")})]})}):(0,ot.jsx)(qa,{attributes:e,setAttributes:t,isSelected:a,insertBlocksAfter:o,label:(0,bt.__)("Table caption text"),showToolbarButton:a&&b==="default"})]})}var dve=(0,wn.memo)(function({tag:e,name:t,scope:o,colspan:a,rowspan:n,rowIndex:i,columnIndex:l,align:s,content:c,onChange:u,setSelectedCell:m}){return(0,ot.jsx)(e,{scope:e==="th"?o:void 0,colSpan:a,rowSpan:n,className:w({[`has-text-align-${s}`]:s},"wp-block-table__cell-content"),children:(0,ot.jsx)(er.RichText,{value:c,onChange:u,onFocus:()=>{m({sectionName:t,rowIndex:i,columnIndex:l,type:"cell"})},"aria-label":cve[t],placeholder:uve[t]})})}),Uoe=pve;var xC={$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 Ri=r(S()),Nl=r(h());function Goe({attributes:e}){let{hasFixedLayout:t,head:o,body:a,foot:n,caption:i}=e;if(!o.length&&!a.length&&!n.length)return null;let s=(0,Ri.__experimentalGetColorClassesAndStyles)(e),c=(0,Ri.__experimentalGetBorderClassesAndStyles)(e),u=w(s.className,c.className,{"has-fixed-layout":t}),m=!Ri.RichText.isEmpty(i),p=({type:d,rows:f})=>{if(!f.length)return null;let g=`t${d}`;return(0,Nl.jsx)(g,{children:f.map(({cells:b},y)=>(0,Nl.jsx)("tr",{children:b.map(({content:v,tag:_,scope:x,align:k,colspan:C,rowspan:T},N)=>{let P=w({[`has-text-align-${k}`]:k});return(0,Nl.jsx)(Ri.RichText.Content,{className:P||void 0,"data-align":k,tagName:_,value:v,scope:_==="th"?x:void 0,colSpan:C,rowSpan:T},N)})},y))})};return(0,Nl.jsxs)("figure",{...Ri.useBlockProps.save(),children:[(0,Nl.jsxs)("table",{className:u===""?void 0:u,style:{...s.style,...c.style},children:[(0,Nl.jsx)(p,{type:"head",rows:o}),(0,Nl.jsx)(p,{type:"body",rows:a}),(0,Nl.jsx)(p,{type:"foot",rows:n})]}),m&&(0,Nl.jsx)(Ri.RichText.Content,{tagName:"figcaption",value:i,className:(0,Ri.__experimentalGetElementClassName)("caption")})]})}var $oe=r(U());function aE(e){let t=parseInt(e,10);if(Number.isInteger(t))return t<0||t===1?void 0:t.toString()}var nE=({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"]}}}}),gve=e=>({table:{children:{thead:{allowEmpty:!0,children:nE(e)},tfoot:{allowEmpty:!0,children:nE(e)},tbody:{allowEmpty:!0,children:nE(e)}}}}),hve={from:[{type:"raw",selector:"table",schema:gve,transform:e=>{let t=Array.from(e.children).reduce((o,a)=>{if(!a.children.length)return o;let n=a.nodeName.toLowerCase().slice(1),i=Array.from(a.children).reduce((l,s)=>{if(!s.children.length)return l;let c=Array.from(s.children).reduce((u,m)=>{let p=aE(m.getAttribute("rowspan")),d=aE(m.getAttribute("colspan")),{textAlign:f}=m.style||{},g;return(f==="left"||f==="center"||f==="right")&&(g=f),u.push({tag:m.nodeName.toLowerCase(),content:m.innerHTML,rowspan:p,colspan:d,align:g}),u},[]);return l.push({cells:c}),l},[]);return o[n]=i,o},{});return(0,$oe.createBlock)("core/table",t)}}]},Woe=hve;var{name:qoe}=xC,Zoe={icon:hh,example:{attributes:{head:[{cells:[{content:(0,Ms.__)("Version"),tag:"th"},{content:(0,Ms.__)("Jazz Musician"),tag:"th"},{content:(0,Ms.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:(0,Ms.__)("Jaco Pastorius"),tag:"td"},{content:(0,Ms.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:(0,Ms.__)("Betty Carter"),tag:"td"},{content:(0,Ms.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:(0,Ms.__)("Bebo Vald\xE9s"),tag:"td"},{content:(0,Ms.__)("December 6, 2018"),tag:"td"}]}]},viewportWidth:450},transforms:Woe,edit:Uoe,save:Goe,deprecated:zoe},vve=()=>D({name:qoe,metadata:xC,settings:Zoe});var sE={};$(sE,{init:()=>_ve,metadata:()=>_C,name:()=>cre,settings:()=>ure});var Pc=r(B());var _C={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/table-of-contents",title:"Table of Contents",category:"design",description:"Summarize your post with a list of headings. Add HTML anchors to Heading blocks to link them here.",keywords:["document outline","summary"],textdomain:"default",attributes:{headings:{type:"array",items:{type:"object"},default:[]},onlyIncludeCurrentPage:{type:"boolean",default:!1},maxLevel:{type:"number"},ordered:{type:"boolean",default:!0}},supports:{ariaLabel:!0,html:!1,color:{text:!0,background:!0,gradients:!0,link:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-table-of-contents"};var Il=r(S()),rre=r(U()),br=r(M()),b2=r(A()),are=r(H()),St=r(B()),nre=r(we()),ire=r(wo());var Rs=r(h()),Koe="wp-block-table-of-contents__entry";function Rg({nestedHeadingList:e,disableLinkActivation:t,onClick:o,ordered:a=!0}){return(0,Rs.jsx)(Rs.Fragment,{children:e.map((n,i)=>{let{content:l,link:s}=n.heading,c=s?(0,Rs.jsx)("a",{className:Koe,href:s,"aria-disabled":t||void 0,onClick:t&&typeof o=="function"?o:void 0,children:l}):(0,Rs.jsx)("span",{className:Koe,children:l}),u=a?"ol":"ul";return(0,Rs.jsxs)("li",{children:[c,n.children?(0,Rs.jsx)(u,{children:(0,Rs.jsx)(Rg,{nestedHeadingList:n.children,disableLinkActivation:t,onClick:t&&typeof o=="function"?o:void 0,ordered:a})}):null]},i)})})}function h2(e){let t=[];return e.forEach((o,a)=>{if(o.content!==""&&o.level===e[0].level)if(e[a+1]?.level>o.level){let n=e.length;for(let i=a+1;i<e.length;i++)if(e[i].level===o.level){n=i;break}t.push({heading:o,children:h2(e.slice(a+1,n))})}else t.push({heading:o,children:null})}),t}var Xoe=r(Yoe()),Joe=r(A()),ere=r(oc()),tre=r(H()),v2=r(ko()),kC=r(S());function yve(e,t){let{getBlockAttributes:o,getBlockName:a,getBlocksByName:n,getClientIdsOfDescendants:i}=e(kC.store),l=e("core/editor").getPermalink()??null,s=n("core/nextpage").length!==0,{onlyIncludeCurrentPage:c,maxLevel:u}=o(t)??{},[m=""]=n("core/post-content"),p=i(m),d=1;if(s&&c){let y=p.indexOf(t);for(let[v,_]of p.entries()){if(v>=y)break;a(_)==="core/nextpage"&&d++}}let f=[],g=1,b=null;typeof l=="string"&&(b=s?(0,v2.addQueryArgs)(l,{page:g}):l);for(let y of p){let v=a(y);if(v==="core/nextpage"){if(g++,c&&g>d)break;typeof l=="string"&&(b=(0,v2.addQueryArgs)((0,v2.removeQueryArgs)(l,["page"]),{page:g}))}else if((!c||g===d)&&v==="core/heading"){let _=o(y);if(u&&_.level>u)continue;let x=typeof b=="string"&&typeof _.anchor=="string"&&_.anchor!=="";f.push({content:(0,ere.__unstableStripHTML)(_.content.replace(/(<br *\/?>)+/g," ")),level:_.level,link:x?`${b}#${_.anchor}`:null})}}return f}function xve(e,t,o){let{getBlockAttributes:a}=e(kC.store),{updateBlockAttributes:n,__unstableMarkNextChangeAsNotPersistent:i}=t(kC.store),l=a(o);if(l===null)return;let s=yve(e,o);(0,Xoe.default)(s,l.headings)||window.queueMicrotask(()=>{i(),n(o,{headings:s})})}function ore(e){let t=(0,Joe.useRegistry)();(0,tre.useEffect)(()=>t.subscribe(()=>xve(t.select,t.dispatch,e)),[t,e])}var Ut=r(h());function lE({attributes:{headings:e=[],onlyIncludeCurrentPage:t,maxLevel:o,ordered:a=!0},clientId:n,setAttributes:i}){ore(n);let l=(0,Il.useBlockProps)(),s=(0,nre.useInstanceId)(lE,"table-of-contents"),{createWarningNotice:c}=(0,b2.useDispatch)(ire.store),u=v=>{v.preventDefault(),c((0,St.__)("Links are disabled in the editor."),{id:`block-library/core/table-of-contents/redirection-prevented/${s}`,type:"snackbar"})},m=(0,b2.useSelect)(v=>{let{getBlockRootClientId:_,canInsertBlockType:x}=v(Il.store),k=_(n);return x("core/list",k)},[n]),{replaceBlocks:p}=(0,b2.useDispatch)(Il.store),d=G(),f=h2(e),g=(0,Ut.jsxs)(Il.BlockControls,{children:[(0,Ut.jsxs)(br.ToolbarGroup,{children:[(0,Ut.jsx)(br.ToolbarButton,{icon:(0,St.isRTL)()?Bh:Ph,title:(0,St.__)("Unordered"),description:(0,St.__)("Convert to unordered list"),onClick:()=>i({ordered:!1}),isActive:a===!1}),(0,Ut.jsx)(br.ToolbarButton,{icon:(0,St.isRTL)()?Nh:pi,title:(0,St.__)("Ordered"),description:(0,St.__)("Convert to ordered list"),onClick:()=>i({ordered:!0}),isActive:a===!0})]}),m&&(0,Ut.jsx)(br.ToolbarGroup,{children:(0,Ut.jsx)(br.ToolbarButton,{onClick:()=>p(n,(0,rre.createBlock)("core/list",{ordered:a,values:(0,are.renderToString)((0,Ut.jsx)(Rg,{nestedHeadingList:f,ordered:a}))})),children:(0,St.__)("Convert to static list")})})]}),b=(0,Ut.jsx)(Il.InspectorControls,{children:(0,Ut.jsxs)(br.__experimentalToolsPanel,{label:(0,St.__)("Settings"),resetAll:()=>{i({onlyIncludeCurrentPage:!1,maxLevel:void 0,ordered:!0})},dropdownMenuProps:d,children:[(0,Ut.jsx)(br.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,St.__)("Only include current page"),onDeselect:()=>i({onlyIncludeCurrentPage:!1}),isShownByDefault:!0,children:(0,Ut.jsx)(br.ToggleControl,{label:(0,St.__)("Only include current page"),checked:t,onChange:v=>i({onlyIncludeCurrentPage:v}),help:t?(0,St.__)("Only including headings from the current page (if the post is paginated)."):(0,St.__)("Include headings from all pages (if the post is paginated).")})}),(0,Ut.jsx)(br.__experimentalToolsPanelItem,{hasValue:()=>!!o,label:(0,St.__)("Limit heading levels"),onDeselect:()=>i({maxLevel:void 0}),isShownByDefault:!0,children:(0,Ut.jsx)(br.SelectControl,{__next40pxDefaultSize:!0,label:(0,St.__)("Include headings down to level"),value:o||"",options:[{value:"",label:(0,St.__)("All levels")},{value:"1",label:(0,St.__)("Heading 1")},{value:"2",label:(0,St.__)("Heading 2")},{value:"3",label:(0,St.__)("Heading 3")},{value:"4",label:(0,St.__)("Heading 4")},{value:"5",label:(0,St.__)("Heading 5")},{value:"6",label:(0,St.__)("Heading 6")}],onChange:v=>i({maxLevel:v?parseInt(v):void 0}),help:o?(0,St.__)("Only include headings up to and including this level."):(0,St.__)("Including all heading levels in the table of contents.")})})]})});return e.length===0?(0,Ut.jsxs)(Ut.Fragment,{children:[(0,Ut.jsx)("div",{...l,children:(0,Ut.jsx)(br.Placeholder,{icon:(0,Ut.jsx)(Il.BlockIcon,{icon:r0}),label:(0,St.__)("Table of Contents"),instructions:(0,St.__)("Start adding Heading blocks to create a table of contents. Headings with HTML anchors will be linked here.")})}),b]}):(0,Ut.jsxs)(Ut.Fragment,{children:[(0,Ut.jsx)("nav",{...l,children:(0,Ut.jsx)(a?"ol":"ul",{children:(0,Ut.jsx)(Rg,{nestedHeadingList:f,disableLinkActivation:!0,onClick:u,ordered:a})})}),g,b]})}var lre=r(S());var wC=r(h());function sre({attributes:{headings:e=[],ordered:t=!0}}){if(e.length===0)return null;let o=t?"ol":"ul";return(0,wC.jsx)("nav",{...lre.useBlockProps.save(),children:(0,wC.jsx)(o,{children:(0,wC.jsx)(Rg,{nestedHeadingList:h2(e),ordered:t})})})}var{name:cre}=_C,ure={icon:r0,edit:lE,save:sre,example:{innerBlocks:[{name:"core/heading",attributes:{level:2,content:(0,Pc.__)("Heading")}},{name:"core/heading",attributes:{level:3,content:(0,Pc.__)("Subheading")}},{name:"core/heading",attributes:{level:2,content:(0,Pc.__)("Heading")}},{name:"core/heading",attributes:{level:3,content:(0,Pc.__)("Subheading")}}],attributes:{headings:[{content:(0,Pc.__)("Heading"),level:2},{content:(0,Pc.__)("Subheading"),level:3},{content:(0,Pc.__)("Heading"),level:2},{content:(0,Pc.__)("Subheading"),level:3}]}}},_ve=()=>D({name:cre,metadata:_C,settings:ure});var uE={};$(uE,{init:()=>Nve,metadata:()=>TC,name:()=>hre,settings:()=>vre});var Ag=r(S());var ed=r(S());function kve({attributes:e}){let{style:t,orientation:o}=e||{},{spacing:a}=t||{},{blockGap:n}=a||{},i="var( --wp--style--tabs-gap-default, var( --wp--style--block-gap, 0.5em ) )",l=i,s=i;if(n&&(l=typeof n=="string"?(0,ed.__experimentalGetGapCSSValue)(n):(0,ed.__experimentalGetGapCSSValue)(n?.left)||i,s=typeof n=="string"?(0,ed.__experimentalGetGapCSSValue)(n):(0,ed.__experimentalGetGapCSSValue)(n?.top)||i),o==="vertical"){let u=l;l=s,s=u}return{"--wp--style--unstable-tabs-list-gap":l==="0"?"0px":l,"--wp--style--unstable-tabs-gap":s}}function wve({attributes:e}){let{customTabInactiveColor:t,customTabHoverColor:o,customTabActiveColor:a,customTabTextColor:n,customTabActiveTextColor:i,customTabHoverTextColor:l}=e||{};function s(u){return u?typeof u=="object"&&u.slug?`var(--wp--preset--color--${u.slug})`:u:null}return{"--custom-tab-inactive-color":s(t),"--custom-tab-active-color":s(a),"--custom-tab-hover-color":s(o),"--custom-tab-text-color":s(n),"--custom-tab-active-text-color":s(i),"--custom-tab-hover-text-color":s(l)}}function mre({attributes:e,clientId:t}){let o=kve({attributes:e}),a=wve({attributes:e}),n={...o,...a},i=Object.entries(n).filter(([,l])=>!!l).map(([l,s])=>` ${l}: ${s};`).join(` 38 `);return(0,ed.useStyleOverride)({css:t?`#block-${t} { 39 ${i} 40 }`:""}),null}var zi=r(B()),zg=r(M()),td=r(H()),Dl=r(S());var yr=r(h());function Cve({attributes:e}){let{className:t,fontSize:o,tabActiveColor:a,customTabActiveColor:n,tabActiveTextColor:i,customTabActiveTextColor:l,tabInactiveColor:s,customTabInactiveColor:c,tabTextColor:u,customTabTextColor:m,tabHoverColor:p,customTabHoverColor:d,tabHoverTextColor:f,customTabHoverTextColor:g}=e,b=(0,td.useMemo)(()=>t?.includes("is-style-links")?"#fff":a?.color?a.color:n,[a,n,t]),y=(0,td.useMemo)(()=>i?.color?i.color:l,[i,l]),v=(0,td.useMemo)(()=>t?.includes("is-style-links")?"#fff":s?.color?s.color:c,[s,c,t]),_=(0,td.useMemo)(()=>u?.color?u.color:m,[u,m]),x=(0,td.useMemo)(()=>p?.color?p.color:d,[p,d]),k=(0,td.useMemo)(()=>f?.color?f.color:g,[f,g]);return(0,yr.jsxs)(yr.Fragment,{children:[(0,yr.jsx)(Dl.ContrastChecker,{backgroundColor:b,fontSize:o,textColor:y}),(0,yr.jsx)(Dl.ContrastChecker,{backgroundColor:v,fontSize:o,textColor:_}),(0,yr.jsx)(Dl.ContrastChecker,{backgroundColor:x,fontSize:o,textColor:k})]})}function pre({attributes:e,setAttributes:t,clientId:o,tabInactiveColor:a,setTabInactiveColor:n,tabHoverColor:i,setTabHoverColor:l,tabActiveColor:s,setTabActiveColor:c,tabTextColor:u,setTabTextColor:m,tabActiveTextColor:p,setTabActiveTextColor:d,tabHoverTextColor:f,setTabHoverTextColor:g}){let{customTabInactiveColor:b,customTabActiveColor:y,customTabHoverColor:v,customTabTextColor:_,customTabActiveTextColor:x,customTabHoverTextColor:k,orientation:C,metadata:T={name:""}}=e,N=(0,Dl.__experimentalUseMultipleOriginColorsAndGradients)();return(0,yr.jsxs)(yr.Fragment,{children:[(0,yr.jsx)(fC,{tabsClientId:o,attributes:e}),(0,yr.jsx)(Dl.InspectorControls,{children:(0,yr.jsxs)(zg.PanelBody,{title:(0,zi.__)("Tabs Settings"),children:[(0,yr.jsx)(zg.ToggleControl,{label:(0,zi.__)("Vertical Tabs"),checked:C==="vertical",onChange:()=>t({orientation:C==="vertical"?"horizontal":"vertical"})}),(0,yr.jsx)(zg.TextControl,{label:(0,zi.__)("Tabs Title"),help:(0,zi.__)("The tabs title is used by screen readers to describe the purpose and content of the tabs."),value:T.name,placeholder:(0,zi.__)("Tab Contents"),onChange:P=>{t({metadata:{...T,name:P}})},__next40pxDefaultSize:!0})]})}),(0,yr.jsxs)(Dl.InspectorControls,{group:"color",children:[(0,yr.jsx)(Dl.__experimentalColorGradientSettingsDropdown,{settings:[{label:(0,zi.__)("Tab Active Background"),colorValue:s?.color??y,onColorChange:P=>{c(P),t({customTabActiveColor:P})}},{label:(0,zi.__)("Tab Active Text"),colorValue:p?.color??x,onColorChange:P=>{d(P),t({customTabActiveTextColor:P})}},{label:(0,zi.__)("Tab Inactive Background"),colorValue:a?.color??b,onColorChange:P=>{n(P),t({customTabInactiveColor:P})}},{label:(0,zi.__)("Tab Inactive Text"),colorValue:u?.color??_,onColorChange:P=>{m(P),t({customTabTextColor:P})}},{label:(0,zi.__)("Tab Hover Background"),colorValue:i?.color??v,onColorChange:P=>{l(P),t({customTabHoverColor:P})}},{label:(0,zi.__)("Tab Hover Text"),colorValue:f?.color??k,onColorChange:P=>{g(P),t({customTabHoverTextColor:P})}}],panelId:o,disableCustomColors:!1,__experimentalIsRenderedInSidebar:!0,__next40pxDefaultSize:!0,...N}),(0,yr.jsx)(Cve,{attributes:e})]})]})}var Yu=r(h()),Sve=[["core/tab",{}]],Tve={name:"core/tab",attributesToCopy:["className","fontFamily","fontSize"]};function Bve({clientId:e,attributes:t,setAttributes:o,tabInactiveColor:a,setTabInactiveColor:n,tabHoverColor:i,setTabHoverColor:l,tabActiveColor:s,setTabActiveColor:c,tabTextColor:u,setTabTextColor:m,tabActiveTextColor:p,setTabActiveTextColor:d,tabHoverTextColor:f,setTabHoverTextColor:g}){let{style:b,orientation:y}=t,v=(0,Ag.useBlockProps)({className:w(y==="vertical"?"is-vertical":"is-horizontal"),style:{...b}}),_=(0,Ag.useInnerBlocksProps)(v,{defaultBlock:Tve,directInsert:!0,__experimentalCaptureToolbars:!0,clientId:e,orientation:y,template:Sve,renderAppender:!1});return(0,Yu.jsx)(Yu.Fragment,{children:(0,Yu.jsxs)("div",{..._,children:[_.children,(0,Yu.jsx)(mre,{attributes:t,clientId:e}),(0,Yu.jsx)(pre,{clientId:e,attributes:t,setAttributes:o,tabInactiveColor:a,setTabInactiveColor:n,tabHoverColor:i,setTabHoverColor:l,tabActiveColor:s,setTabActiveColor:c,tabTextColor:u,setTabTextColor:m,tabActiveTextColor:p,setTabActiveTextColor:d,tabHoverTextColor:f,setTabHoverTextColor:g})]})})}var dre=(0,Ag.withColors)("tabInactiveColor","tabHoverColor","tabActiveColor","tabTextColor","tabActiveTextColor","tabHoverTextColor")(Bve);var CC=r(S()),y2=r(h());function fre({attributes:e}){let t=CC.useBlockProps.save(),o=CC.useInnerBlocksProps.save({}),a=e?.metadata?.name||"Tab Contents";return(0,y2.jsxs)("div",{...t,children:[(0,y2.jsx)("h3",{className:"tabs__title",children:a}),(0,y2.jsx)("ul",{className:"tabs__list"}),o.children]})}var SC=r(M()),cE=r(h()),gre=(0,cE.jsx)(SC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,cE.jsx)(SC.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.2998 4.8501C4.60945 4.8501 4.0498 5.40974 4.0498 6.1001V10.3501H11.3498V6.1001C11.3498 5.40974 10.7902 4.8501 10.0998 4.8501H5.2998ZM14.2002 10.3501V7.1001H18.5002V10.3501H20.0002V6.8501C20.0002 6.15974 19.4406 5.6001 18.7502 5.6001H13.9502C13.2598 5.6001 12.7002 6.15974 12.7002 6.8501V10.3501H14.2002ZM20 12.6001H4V14.1001H20V12.6001ZM14 17.1001H4V18.6001H14V17.1001Z"})});var TC={$schema:"https://schemas.wp.org/trunk/block.json",__experimental:!0,apiVersion:3,name:"core/tabs",title:"Tabs",description:"Display content in a tabbed interface to help users navigate detailed content with ease.",version:"1.0.0",category:"design",textdomain:"default",allowedBlocks:["core/tab"],attributes:{tabsId:{type:"string",default:""},orientation:{type:"string",default:"horizontal",enum:["horizontal","vertical"]},activeTabIndex:{type:"number",default:0},tabInactiveColor:{type:"string"},customTabInactiveColor:{type:"string"},tabHoverColor:{type:"string"},customTabHoverColor:{type:"string"},tabActiveColor:{type:"string"},customTabActiveColor:{type:"string"},tabTextColor:{type:"string"},customTabTextColor:{type:"string"},tabActiveTextColor:{type:"string"},customTabActiveTextColor:{type:"string"},tabHoverTextColor:{type:"string"},customTabHoverTextColor:{type:"string"}},styles:[{name:"tab",label:"Tabs",isDefault:!0},{name:"links",label:"Links"},{name:"button",label:"Button"}],supports:{align:!0,color:{text:!1,background:!1},html:!1,interactivity:!0,spacing:{blockGap:["horizontal","vertical"],margin:!0,padding:!1},typography:{fontSize:!0,__experimentalFontFamily:!0}},example:{attributes:{className:"is-example"},innerBlocks:[{name:"core/tab",attributes:{label:"Tab 1"},innerBlocks:[{name:"core/paragraph",attributes:{content:"Pariatur commodo sint mollit. Veniam Lorem labore voluptate fugiat. Ad nulla est labore cillum cillum qui nostrud do incididunt eiusmod. Aliqua aliqua sunt consequat consequat in duis deserunt."}},{name:"core/paragraph",attributes:{content:"Adipisicing ullamco nisi in eu laborum adipisicing aliquip aliqua. Fugiat labore officia consequat nisi veniam velit commodo cillum enim duis quis ad."}}]},{name:"core/tab",attributes:{label:"Tab 2"}},{name:"core/tab",attributes:{label:"Tab 3"}}]},providesContext:{"core/tabs-id":"tabsId"},editorScript:"file:./index.js",editorStyle:"file:./index.css",style:"file:./style-index.css",viewScriptModule:"@wordpress/block-library/tabs/view"};var{name:hre}=TC,vre={icon:gre,edit:dre,save:fre},Nve=()=>D({name:hre,metadata:TC,settings:vre});var pE={};$(pE,{init:()=>Rve,metadata:()=>BC,name:()=>Sre,settings:()=>Tre});var mE=r(U()),Ive={from:[{type:"block",blocks:["core/categories"],transform:()=>(0,mE.createBlock)("core/tag-cloud")}],to:[{type:"block",blocks:["core/categories"],transform:()=>(0,mE.createBlock)("core/categories")}]},bre=Ive;var BC={$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:{html:!1,align:!0,spacing:{margin:!0,padding:!0},typography:{lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},editorStyle:"wp-block-tag-cloud-editor"};var Tt=r(M()),_re=r(A()),Ai=r(B()),Vg=r(S()),kre=r(Vc()),wre=r(Y());var xo=r(h()),Eve=1,Lve=100,yre=.1,xre=100;function Mve({attributes:e,setAttributes:t}){let{taxonomy:o,showTagCounts:a,numberOfTags:n,smallestFontSize:i,largestFontSize:l}=e,[s]=(0,Vg.useSettings)("spacing.units"),c=G(),u=(0,Tt.__experimentalUseCustomUnits)({availableUnits:s?[...s,"pt"]:["%","px","em","rem","pt"]}),m=(0,_re.useSelect)(b=>b(wre.store).getTaxonomies({per_page:-1}),[]),p=()=>{let b={label:(0,Ai.__)("- Select -"),value:"",disabled:!0},y=(m??[]).filter(v=>!!v.show_cloud).map(v=>({value:v.slug,label:v.name}));return[b,...y]},d=(b,y)=>{let[v,_]=(0,Tt.__experimentalParseQuantityAndUnitFromRawValue)(y);if(!Number.isFinite(v))return;let x={[b]:y};Object.entries({smallestFontSize:i,largestFontSize:l}).forEach(([k,C])=>{let[T,N]=(0,Tt.__experimentalParseQuantityAndUnitFromRawValue)(C);k!==b&&N!==_&&(x[k]=`${T}${_}`)}),t(x)},f={...e,style:{...e?.style,border:void 0}},g=(0,xo.jsx)(Vg.InspectorControls,{children:(0,xo.jsxs)(Tt.__experimentalToolsPanel,{label:(0,Ai.__)("Settings"),resetAll:()=>{t({taxonomy:"post_tag",showTagCounts:!1,numberOfTags:45,smallestFontSize:"8pt",largestFontSize:"22pt"})},dropdownMenuProps:c,children:[(0,xo.jsx)(Tt.__experimentalToolsPanelItem,{hasValue:()=>o!=="post_tag",label:(0,Ai.__)("Taxonomy"),onDeselect:()=>t({taxonomy:"post_tag"}),isShownByDefault:!0,children:(0,xo.jsx)(Tt.SelectControl,{__next40pxDefaultSize:!0,label:(0,Ai.__)("Taxonomy"),options:p(),value:o,onChange:b=>t({taxonomy:b})})}),(0,xo.jsx)(Tt.__experimentalToolsPanelItem,{hasValue:()=>i!=="8pt"||l!=="22pt",label:(0,Ai.__)("Font size"),onDeselect:()=>t({smallestFontSize:"8pt",largestFontSize:"22pt"}),isShownByDefault:!0,children:(0,xo.jsxs)(Tt.Flex,{gap:4,children:[(0,xo.jsx)(Tt.FlexItem,{isBlock:!0,children:(0,xo.jsx)(Tt.__experimentalUnitControl,{label:(0,Ai.__)("Smallest size"),value:i,onChange:b=>{d("smallestFontSize",b)},units:u,min:yre,max:xre,size:"__unstable-large"})}),(0,xo.jsx)(Tt.FlexItem,{isBlock:!0,children:(0,xo.jsx)(Tt.__experimentalUnitControl,{label:(0,Ai.__)("Largest size"),value:l,onChange:b=>{d("largestFontSize",b)},units:u,min:yre,max:xre,size:"__unstable-large"})})]})}),(0,xo.jsx)(Tt.__experimentalToolsPanelItem,{hasValue:()=>n!==45,label:(0,Ai.__)("Number of tags"),onDeselect:()=>t({numberOfTags:45}),isShownByDefault:!0,children:(0,xo.jsx)(Tt.RangeControl,{__next40pxDefaultSize:!0,label:(0,Ai.__)("Number of tags"),value:n,onChange:b=>t({numberOfTags:b}),min:Eve,max:Lve,required:!0})}),(0,xo.jsx)(Tt.__experimentalToolsPanelItem,{hasValue:()=>a!==!1,label:(0,Ai.__)("Show tag counts"),onDeselect:()=>t({showTagCounts:!1}),isShownByDefault:!0,children:(0,xo.jsx)(Tt.ToggleControl,{label:(0,Ai.__)("Show tag counts"),checked:a,onChange:()=>t({showTagCounts:!a})})})]})});return(0,xo.jsxs)(xo.Fragment,{children:[g,(0,xo.jsx)("div",{...(0,Vg.useBlockProps)(),children:(0,xo.jsx)(Tt.Disabled,{children:(0,xo.jsx)(kre.default,{skipBlockSupportAttributes:!0,block:"core/tag-cloud",attributes:f})})})]})}var Cre=Mve;var{name:Sre}=BC,Tre={icon:a0,example:{},edit:Cre,transforms:bre},Rve=()=>D({name:Sre,metadata:BC,settings:Tre});var vE={};$(vE,{init:()=>Uve,metadata:()=>PC,name:()=>uae,settings:()=>mae});var lae=r(Y()),sae=r(A());var hE=r(Js()),cae=r(jo());var PC={$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 eae=r(U()),$g=r(A()),Fo=r(S()),Vs=r(M()),Tn=r(B()),C2=r(Y()),tae=r(H()),oae=r(wo());var Ju=r(B()),rd=r(M()),Ere=r(H()),Lre=r(A()),Mre=r(Y());var Fg=r(A()),NC=r(Y()),Bre=r(S()),Pre=r(H()),Nre=r(U()),dE=r(B());function Hg(e,t){let{templateParts:o,isResolving:a}=(0,Fg.useSelect)(i=>{let{getEntityRecords:l,isResolving:s}=i(NC.store),c={per_page:-1};return{templateParts:l("postType","wp_template_part",c),isResolving:s("getEntityRecords",["postType","wp_template_part",c])}},[]);return{templateParts:(0,Pre.useMemo)(()=>o?o.filter(i=>bl(i.theme,i.slug)!==t&&(!e||e==="uncategorized"||i.area===e))||[]:[],[o,e,t]),isResolving:a}}function jg(e,t){return(0,Fg.useSelect)(o=>{let a=e?`core/template-part/${e}`:"core/template-part",{getBlockRootClientId:n,getPatternsByBlockTypes:i}=o(Bre.store),l=n(t);return i(a,l)},[e,t])}function IC(e,t){let{saveEntityRecord:o}=(0,Fg.useDispatch)(NC.store);return async(a=[],n=(0,dE.__)("Untitled Template Part"))=>{let i=X5(n).replace(/[^\w-]+/g,"")||"wp-custom-part",l={title:n,slug:i,content:(0,Nre.serialize)(a),area:e},s=await o("postType","wp_template_part",l);t({slug:s.slug,theme:s.theme,area:void 0})}}function DC(e){return(0,Fg.useSelect)(t=>{let o=t(NC.store).getCurrentTheme()?.default_template_part_areas||[],a=o.find(i=>i.area===e),n=o.find(i=>i.area==="uncategorized");return{icon:a?.icon||n?.icon,label:a?.label||(0,dE.__)("Template Part"),tagName:a?.area_tag??"div"}},[e])}var Ire=r(H()),Xu=r(B()),El=r(M()),Nc=r(h());function Dre({areaLabel:e,onClose:t,onSubmit:o}){let[a,n]=(0,Ire.useState)(""),i=l=>{l.preventDefault(),o(a)};return(0,Nc.jsx)(El.Modal,{title:(0,Xu.sprintf)((0,Xu.__)("Create new %s"),e.toLowerCase()),onRequestClose:t,focusOnMount:"firstContentElement",size:"small",children:(0,Nc.jsx)("form",{onSubmit:i,children:(0,Nc.jsxs)(El.__experimentalVStack,{spacing:"5",children:[(0,Nc.jsx)(El.TextControl,{label:(0,Xu.__)("Name"),value:a,onChange:n,placeholder:(0,Xu.__)("Custom Template Part"),__next40pxDefaultSize:!0}),(0,Nc.jsxs)(El.__experimentalHStack,{justify:"right",children:[(0,Nc.jsx)(El.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{t(),n("")},children:(0,Xu.__)("Cancel")}),(0,Nc.jsx)(El.Button,{variant:"primary",type:"submit",accessibleWhenDisabled:!0,disabled:!a.length,__next40pxDefaultSize:!0,children:(0,Xu.__)("Create")})]})]})})})}var od=r(h());function Rre({area:e,clientId:t,templatePartId:o,onOpenSelectionModal:a,setAttributes:n}){let{templateParts:i,isResolving:l}=Hg(e,o),s=jg(e,t),{isBlockBasedTheme:c,canCreateTemplatePart:u}=(0,Lre.useSelect)(g=>{let{getCurrentTheme:b,canUser:y}=g(Mre.store);return{isBlockBasedTheme:b()?.is_block_theme,canCreateTemplatePart:y("create",{kind:"postType",name:"wp_template_part"})}},[]),[m,p]=(0,Ere.useState)(!1),d=DC(e),f=IC(e,n);return(0,od.jsxs)(rd.Placeholder,{icon:Hf(d.icon),label:d.label,instructions:c?(0,Ju.sprintf)((0,Ju.__)("Choose an existing %s or create a new one."),d.label.toLowerCase()):(0,Ju.sprintf)((0,Ju.__)("Choose an existing %s."),d.label.toLowerCase()),children:[l&&(0,od.jsx)(rd.Spinner,{}),!l&&!!(i.length||s.length)&&(0,od.jsx)(rd.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:a,children:(0,Ju.__)("Choose")}),!l&&c&&u&&(0,od.jsx)(rd.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{p(!0)},children:(0,Ju.__)("Start blank")}),m&&(0,od.jsx)(Dre,{areaLabel:d.label,onClose:()=>p(!1),onSubmit:g=>{f([],g)}})]})}var x2=r(H()),em=r(B()),Vre=r(wo()),Fre=r(A()),Hre=r(S()),EC=r(M());var zre=r(U());function Are(e){return{name:bl(e.theme,e.slug),title:e.title.rendered,blocks:(0,zre.parse)(e.content.raw),templatePart:e}}var zs=r(h());function jre({setAttributes:e,onClose:t,templatePartId:o=null,area:a,clientId:n}){let[i,l]=(0,x2.useState)(""),{templateParts:s}=Hg(a,o),c=(0,x2.useMemo)(()=>{let b=s.map(y=>Are(y));return W1(b,i)},[s,i]),u=jg(a,n),m=(0,x2.useMemo)(()=>W1(u,i),[u,i]),{createSuccessNotice:p}=(0,Fre.useDispatch)(Vre.store),d=b=>{e({slug:b.slug,theme:b.theme,area:void 0}),p((0,em.sprintf)((0,em.__)('Template Part "%s" inserted.'),b.title?.rendered||b.slug),{type:"snackbar"}),t()},f=!!c.length,g=!!m.length;return(0,zs.jsxs)("div",{className:"block-library-template-part__selection-content",children:[(0,zs.jsx)("div",{className:"block-library-template-part__selection-search",children:(0,zs.jsx)(EC.SearchControl,{onChange:l,value:i,label:(0,em.__)("Search"),placeholder:(0,em.__)("Search")})}),f&&(0,zs.jsxs)("div",{children:[(0,zs.jsx)("h2",{children:(0,em.__)("Existing template parts")}),(0,zs.jsx)(Hre.__experimentalBlockPatternsList,{blockPatterns:c,onClickPattern:b=>{d(b.templatePart)}})]}),!f&&!g&&(0,zs.jsx)(EC.__experimentalHStack,{alignment:"center",children:(0,zs.jsx)("p",{children:(0,em.__)("No results found.")})})]})}var k2=r(Y()),LC=r(M()),Ug=r(B()),qre=r(A()),Zre=r(S());var As=r(B()),_2=r(H()),Og=r(A()),ci=r(M()),gE=r(Y()),$re=r(wo());var Cn=r(U());function Ore(e){if(e.id_base!=="block"){let a;return e._embedded.about[0].is_multi?a={idBase:e.id_base,instance:e.instance}:a={id:e.id},Ure((0,Cn.createBlock)("core/legacy-widget",a))}let t=(0,Cn.parse)(e.instance.raw.content,{__unstableSkipAutop:!0});if(!t.length)return;let o=t[0];return o.name==="core/widget-group"?(0,Cn.createBlock)((0,Cn.getGroupingBlockName)(),void 0,fE(o.innerBlocks)):o.innerBlocks.length>0?(0,Cn.cloneBlock)(o,void 0,fE(o.innerBlocks)):o}function Ure(e){let t=(0,Cn.getPossibleBlockTransformations)([e]).filter(o=>{if(!o.transforms)return!0;let a=o.transforms?.from?.find(i=>i.blocks&&i.blocks.includes("*")),n=o.transforms?.to?.find(i=>i.blocks&&i.blocks.includes("*"));return!a&&!n});if(t.length)return(0,Cn.switchToBlockType)(e,t[0].name)}function fE(e=[]){return e.flatMap(t=>t.name==="core/legacy-widget"?Ure(t):(0,Cn.createBlock)(t.name,t.attributes,fE(t.innerBlocks))).filter(t=>!!t)}var Ic=r(h()),Gre={per_page:-1,_fields:"id,name,description,status,widgets"};function Wre({area:e,setAttributes:t}){let[o,a]=(0,_2.useState)(""),[n,i]=(0,_2.useState)(!1),l=(0,Og.useRegistry)(),{sidebars:s,hasResolved:c}=(0,Og.useSelect)(f=>{let{getSidebars:g,hasFinishedResolution:b}=f(gE.store);return{sidebars:g(Gre),hasResolved:b("getSidebars",[Gre])}},[]),{createErrorNotice:u}=(0,Og.useDispatch)($re.store),m=IC(e,t),p=(0,_2.useMemo)(()=>{let f=(s??[]).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,As.__)("Select widget area")},...f]:[]},[s]);if(!c)return(0,Ic.jsx)(ci.__experimentalSpacer,{marginBottom:"0"});if(c&&!p.length)return null;async function d(f){if(f.preventDefault(),n||!o)return;i(!0);let g=p.find(({value:x})=>x===o),{getWidgets:b}=l.resolveSelect(gE.store),y=await b({sidebar:g.value,_embed:"about"}),v=new Set,_=y.flatMap(x=>{let k=Ore(x);return k||(v.add(x.id_base),[])});await m(_,(0,As.sprintf)((0,As.__)("Widget area: %s"),g.label)),v.size&&u((0,As.sprintf)((0,As.__)("Unable to import the following widgets: %s."),Array.from(v).join(", ")),{type:"snackbar"}),i(!1)}return(0,Ic.jsx)(ci.__experimentalSpacer,{marginBottom:"4",children:(0,Ic.jsxs)(ci.__experimentalHStack,{as:"form",onSubmit:d,children:[(0,Ic.jsx)(ci.FlexBlock,{children:(0,Ic.jsx)(ci.SelectControl,{label:(0,As.__)("Import widget area"),value:o,options:p,onChange:f=>a(f),disabled:!p.length,__next40pxDefaultSize:!0})}),(0,Ic.jsx)(ci.FlexItem,{style:{marginBottom:"8px",marginTop:"auto"},children:(0,Ic.jsx)(ci.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:n,"aria-disabled":n||!o,children:(0,As._x)("Import","button label")})})]})})}var Ll=r(h()),{HTMLElementControl:Ave}=Q(Zre.privateApis);function Kre({tagName:e,setAttributes:t,isEntityAvailable:o,templatePartId:a,defaultWrapper:n,hasInnerBlocks:i,clientId:l}){let[s,c]=(0,k2.useEntityProp)("postType","wp_template_part","area",a),[u,m]=(0,k2.useEntityProp)("postType","wp_template_part","title",a),d=(0,qre.useSelect)(f=>f(k2.store).getCurrentTheme()?.default_template_part_areas||[],[]).map(({label:f,area:g})=>({label:f,value:g}));return(0,Ll.jsxs)(Ll.Fragment,{children:[o&&(0,Ll.jsxs)(Ll.Fragment,{children:[(0,Ll.jsx)(LC.TextControl,{__next40pxDefaultSize:!0,label:(0,Ug.__)("Title"),value:u,onChange:f=>{m(f)},onFocus:f=>f.target.select()}),(0,Ll.jsx)(LC.SelectControl,{__next40pxDefaultSize:!0,label:(0,Ug.__)("Area"),labelPosition:"top",options:d,value:s,onChange:c})]}),(0,Ll.jsx)(Ave,{tagName:e||"",onChange:f=>t({tagName:f}),clientId:l,options:[{label:(0,Ug.sprintf)((0,Ug.__)("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,Ll.jsx)(Wre,{area:s,setAttributes:t})]})}var Gg=r(Y()),Sn=r(S()),w2=r(A()),Qre=r(H()),Yre=r(U()),MC=r(h());function Vve(e){if((0,Sn.useBlockEditingMode)()==="contentOnly")return!1;if(!e)return Sn.InnerBlocks.ButtonBlockAppender}function Xre(e){let t=(0,w2.useSelect)(a=>{let{getSettings:n}=a(Sn.store);return n()?.supportsLayout},[]),[o]=(0,Sn.useSettings)("layout");if(t)return e?.inherit?o||{}:e}function Fve({postId:e,layout:t,tagName:o,blockProps:a}){(0,Sn.useBlockEditingMode)("disabled");let{content:n,editedBlocks:i}=(0,w2.useSelect)(c=>{if(!e)return{};let{getEditedEntityRecord:u}=c(Gg.store),m=u("postType","wp_template_part",e,{context:"view"});return{editedBlocks:m.blocks,content:m.content}},[e]),l=(0,Qre.useMemo)(()=>{if(e)return i||(!n||typeof n!="string"?[]:(0,Yre.parse)(n))},[e,i,n]),s=(0,Sn.useInnerBlocksProps)(a,{value:l,onInput:()=>{},onChange:()=>{},renderAppender:!1,layout:Xre(t)});return(0,MC.jsx)(o,{...s})}function Hve({postId:e,hasInnerBlocks:t,layout:o,tagName:a,blockProps:n}){let i=(0,w2.useSelect)(d=>d(Sn.store).getSettings().onNavigateToEntityRecord,[]),[l,s,c]=(0,Gg.useEntityBlockEditor)("postType","wp_template_part",{id:e}),u=(0,Sn.useInnerBlocksProps)(n,{value:l,onInput:s,onChange:c,renderAppender:Vve(t),layout:Xre(o)}),p=(0,Sn.useBlockEditingMode)()==="contentOnly"&&i?{onDoubleClick:()=>i({postId:e,postType:"wp_template_part"})}:{};return(0,MC.jsx)(a,{...u,...p})}function Jre({postId:e,hasInnerBlocks:t,layout:o,tagName:a,blockProps:n}){let{canViewTemplatePart:i,canEditTemplatePart:l}=(0,w2.useSelect)(c=>({canViewTemplatePart:!!c(Gg.store).canUser("read",{kind:"postType",name:"wp_template_part",id:e}),canEditTemplatePart:!!c(Gg.store).canUser("update",{kind:"postType",name:"wp_template_part",id:e})}),[e]);return i?(0,MC.jsx)(l?Hve:Fve,{postId:e,hasInnerBlocks:t,layout:o,tagName:a,blockProps:n}):null}var Bt=r(h());function jve({isEntityAvailable:e,area:t,templatePartId:o,isTemplatePartSelectionOpen:a,setIsTemplatePartSelectionOpen:n}){let{templateParts:i}=Hg(t,o),l=!!i.length;return e&&l&&(t==="header"||t==="footer")?(0,Bt.jsx)(Vs.MenuItem,{onClick:()=>{n(!0)},"aria-expanded":a,"aria-haspopup":"dialog",children:(0,Tn.__)("Replace")}):null}function Ove({area:e,clientId:t,isEntityAvailable:o,onSelect:a}){let n=jg(e,t);return o&&!!n.length&&(e==="header"||e==="footer")?(0,Bt.jsx)(Vs.PanelBody,{title:(0,Tn.__)("Design"),children:(0,Bt.jsx)(Fo.__experimentalBlockPatternsList,{label:(0,Tn.__)("Templates"),blockPatterns:n,onClickPattern:a,showTitlesAsTooltip:!0})}):null}function rae({attributes:e,setAttributes:t,clientId:o}){let{createSuccessNotice:a}=(0,$g.useDispatch)(oae.store),{editEntityRecord:n}=(0,$g.useDispatch)(C2.store),i=(0,$g.useSelect)(z=>z(C2.store).getCurrentTheme()?.stylesheet,[]),{slug:l,theme:s=i,tagName:c,layout:u={}}=e,m=bl(s,l),p=(0,Fo.useHasRecursion)(m),[d,f]=(0,tae.useState)(!1),{isResolved:g,hasInnerBlocks:b,isMissing:y,area:v,onNavigateToEntityRecord:_,title:x,canUserEdit:k}=(0,$g.useSelect)(z=>{let{getEditedEntityRecord:O,hasFinishedResolution:V}=z(C2.store),{getBlockCount:I,getSettings:F}=z(Fo.store),W=["postType","wp_template_part",m],j=m?O(...W):null,K=j?.area||e.area,Z=m?V("getEditedEntityRecord",W):!1,te=Z?z(C2.store).canUser("update",{kind:"postType",name:"wp_template_part",id:m}):!1;return{hasInnerBlocks:I(o)>0,isResolved:Z,isMissing:Z&&(!j||Object.keys(j).length===0),area:K,onNavigateToEntityRecord:F().onNavigateToEntityRecord,title:j?.title,canUserEdit:!!te}},[m,e.area,o]),C=DC(v),T=(0,Fo.useBlockProps)(),N=!l,P=!N&&!y&&g,L=c||C.tagName,R=async z=>{await n("postType","wp_template_part",m,{blocks:z.blocks,content:(0,eae.serialize)(z.blocks)}),a((0,Tn.sprintf)((0,Tn.__)('Template Part "%s" updated.'),x||l),{type:"snackbar"})};return!b&&(l&&!s||l&&y)?(0,Bt.jsx)(L,{...T,children:(0,Bt.jsx)(Fo.Warning,{children:(0,Tn.sprintf)((0,Tn.__)("Template part has been deleted or is unavailable: %s"),l)})}):P&&p?(0,Bt.jsx)(L,{...T,children:(0,Bt.jsx)(Fo.Warning,{children:(0,Tn.__)("Block cannot be rendered inside itself.")})}):(0,Bt.jsxs)(Bt.Fragment,{children:[(0,Bt.jsxs)(Fo.RecursionProvider,{uniqueId:m,children:[P&&_&&k&&(0,Bt.jsx)(Fo.BlockControls,{group:"other",children:(0,Bt.jsx)(Vs.ToolbarButton,{onClick:()=>{_({postId:m,postType:"wp_template_part"})},children:window?.__experimentalContentOnlyPatternInsertion?(0,Tn.__)("Edit section"):(0,Tn.__)("Edit")})}),k&&(0,Bt.jsx)(Fo.InspectorControls,{group:"advanced",children:(0,Bt.jsx)(Kre,{tagName:c,setAttributes:t,isEntityAvailable:P,templatePartId:m,defaultWrapper:C.tagName,hasInnerBlocks:b,clientId:o})}),N&&(0,Bt.jsx)(L,{...T,children:(0,Bt.jsx)(Rre,{area:e.area,templatePartId:m,clientId:o,setAttributes:t,onOpenSelectionModal:()=>f(!0)})}),(0,Bt.jsx)(Fo.BlockSettingsMenuControls,{children:({selectedClientIds:z})=>z.length===1&&o===z[0]?(0,Bt.jsx)(jve,{isEntityAvailable:P,area:v,clientId:o,templatePartId:m,isTemplatePartSelectionOpen:d,setIsTemplatePartSelectionOpen:f}):null}),(0,Bt.jsx)(Fo.InspectorControls,{children:(0,Bt.jsx)(Ove,{area:v,clientId:o,isEntityAvailable:P,onSelect:z=>R(z)})}),P&&(0,Bt.jsx)(Jre,{tagName:L,blockProps:T,postId:m,hasInnerBlocks:b,layout:u}),!N&&!g&&(0,Bt.jsx)(L,{...T,children:(0,Bt.jsx)(Vs.Spinner,{})})]}),d&&(0,Bt.jsx)(Vs.Modal,{overlayClassName:"block-editor-template-part__selection-modal",title:(0,Tn.sprintf)((0,Tn.__)("Choose a %s"),C.label.toLowerCase()),onRequestClose:()=>f(!1),isFullScreen:!0,children:(0,Bt.jsx)(jre,{templatePartId:m,clientId:o,area:v,setAttributes:t,onClose:()=>f(!1)})})]})}var aae=r(Y()),nae=r(A());function iae(e,t){if(t!=="core/template-part")return e;if(e.variations){let o=(n,i)=>{let{area:l,theme:s,slug:c}=n;if(l)return l===i.area;if(!c)return!1;let{getCurrentTheme:u,getEntityRecord:m}=(0,nae.select)(aae.store),p=m("postType","wp_template_part",`${s||u()?.stylesheet}//${c}`);return p?.slug?p.slug===i.slug:p?.area===i.area},a=e.variations.map(n=>({...n,...!n.isActive&&{isActive:o},...typeof n.icon=="string"&&{icon:Hf(n.icon)}}));return{...e,variations:a}}return e}var{name:uae}=PC,mae={icon:e0,__experimentalLabel:({slug:e,theme:t})=>{if(!e)return;let{getCurrentTheme:o,getEditedEntityRecord:a}=(0,sae.select)(lae.store),n=a("postType","wp_template_part",(t||o()?.stylesheet)+"//"+e);if(n)return(0,cae.decodeEntities)(n.title)||w$(n.slug||"")},edit:rae},Uve=()=>{(0,hE.addFilter)("blocks.registerBlockType","core/template-part",iae);let e=["core/post-template","core/post-content"];return(0,hE.addFilter)("blockEditor.__unstableCanInsertBlockType","core/block-library/removeTemplatePartsFromPostTemplates",(t,o,a,{getBlock:n,getBlockParentsByBlockName:i})=>{if(o.name!=="core/template-part")return t;for(let l of e)if(n(a)?.name===l||i(a,l).length)return!1;return!0}),D({name:uae,metadata:PC,settings:mae})};var _E={};$(_E,{init:()=>Wve,metadata:()=>RC,name:()=>yae,settings:()=>xae});var RC={$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:{html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{color:!0,width:!0,style:!0}}},style:"wp-block-term-count"};var ad=r(B()),zC=r(S()),vae=r(M());var Vi=r(M()),Ml=r(h()),bE=(0,Ml.jsx)(Vi.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Ml.jsx)(Vi.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"})}),pae=(0,Ml.jsx)(Vi.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Ml.jsx)(Vi.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"})}),dae=(0,Ml.jsx)(Vi.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Ml.jsx)(Vi.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"})}),fae=(0,Ml.jsx)(Vi.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Ml.jsx)(Vi.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"})}),gae=(0,Ml.jsx)(Vi.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Ml.jsx)(Vi.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 S2=r(Y()),yE=r(A());function hae(e,t){let[o]=(0,S2.useEntityProp)("taxonomy",t,"count",e),a=$ve(),n=!!(e&&t);return{hasContext:n,termCount:n?o||"":a}}function $ve(){let t=(0,yE.useSelect)(n=>{let{getCurrentPostId:i,getCurrentPostType:l,getCurrentTemplateId:s}=n("core/editor"),c=l(),u=s()||(c==="wp_template"?i():null);return u?n(S2.store).getEditedEntityRecord("postType","wp_template",u)?.slug:null},[])?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/),o,a;return t&&(t[1]?o=t[2]?t[2]:t[1]:t[3]&&(o=t[6]?t[6]:t[4],a=t[7]),o=o==="tag"?"post_tag":o),(0,yE.useSelect)(n=>{if(!o||!a)return"";let{getEntityRecords:i}=n(S2.store),l=i("taxonomy",o,{slug:a,per_page:1});return l&&l[0]&&l[0].count||""},[o,a])}var tm=r(h()),xE={none:{label:(0,ad.__)("No brackets"),icon:bE},round:{label:(0,ad.__)("Round brackets"),icon:pae,before:"(",after:")"},square:{label:(0,ad.__)("Square brackets"),icon:dae,before:"[",after:"]"},curly:{label:(0,ad.__)("Curly brackets"),icon:fae,before:"{",after:"}"},angle:{label:(0,ad.__)("Angle brackets"),icon:gae,before:"<",after:">"}};function bae({attributes:e,setAttributes:t,context:{termId:o,taxonomy:a}}){let{bracketType:n}=e,l=hae(o,a)?.termCount||0,s=(0,zC.useBlockProps)(),c=Object.entries(xE).map(([m,{label:p,icon:d}])=>({role:"menuitemradio",title:p,isActive:n===m,icon:d,onClick:()=>{t({bracketType:m})}})),u=(m,p)=>{let{before:d="",after:f=""}=xE[p]||{};return`${d}${m}${f}`};return(0,tm.jsxs)(tm.Fragment,{children:[(0,tm.jsx)(zC.BlockControls,{group:"block",children:(0,tm.jsx)(vae.ToolbarDropdownMenu,{icon:xE[n]?.icon??bE,label:(0,ad.__)("Change bracket type"),controls:c})}),(0,tm.jsx)("div",{...s,children:u(l,n)})]})}var{name:yae}=RC,xae={icon:fS,example:{},edit:bae},Wve=()=>D({name:yae,metadata:RC,settings:xae});var wE={};$(wE,{init:()=>Kve,metadata:()=>AC,name:()=>Cae,settings:()=>Sae});var AC={$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"],attributes:{textAlign:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}}};var kae=r(B()),Wg=r(S());var T2=r(Y()),kE=r(A());function _ae(e,t){let[o,a,n]=(0,T2.useEntityProp)("taxonomy",t,"description",e),i=Zve(),l=!!(e&&t);return{hasContext:l,setDescription:a,termDescription:l?n?.rendered||o||"":i}}function Zve(){let t=(0,kE.useSelect)(n=>{let{getCurrentPostId:i,getCurrentPostType:l,getCurrentTemplateId:s}=n("core/editor"),c=l(),u=s()||(c==="wp_template"?i():null);return u?n(T2.store).getEditedEntityRecord("postType","wp_template",u)?.slug:null},[])?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/),o,a;return t&&(t[1]?o=t[2]?t[2]:t[1]:t[3]&&(o=t[6]?t[6]:t[4],a=t[7]),o=o==="tag"?"post_tag":o),(0,kE.useSelect)(n=>{if(!o||!a)return"";let{getEntityRecords:i}=n(T2.store),l=i("taxonomy",o,{slug:a,per_page:1});return l&&l[0]&&l[0].description||""},[o,a])}var Rl=r(h());function wae({attributes:e,setAttributes:t,mergedStyle:o,context:{termId:a,taxonomy:n}}){let{textAlign:i}=e,{termDescription:l}=_ae(a,n),s=(0,Wg.useBlockProps)({className:w({[`has-text-align-${i}`]:i}),style:o});return(0,Rl.jsxs)(Rl.Fragment,{children:[(0,Rl.jsx)(Wg.BlockControls,{group:"block",children:(0,Rl.jsx)(Wg.AlignmentControl,{value:i,onChange:c=>{t({textAlign:c})}})}),(0,Rl.jsx)("div",{...s,children:l?(0,Rl.jsx)("div",{dangerouslySetInnerHTML:{__html:l}}):(0,Rl.jsx)("div",{className:"wp-block-term-description__placeholder",children:(0,Rl.jsx)("span",{children:(0,kae.__)("Term Description")})})})]})}var{name:Cae}=AC,Sae={icon:hS,edit:wae,example:{}},Kve=()=>D({name:Cae,metadata:AC,settings:Sae});var CE={};$(CE,{init:()=>Xve,metadata:()=>VC,name:()=>Nae,settings:()=>Iae});var VC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/term-name",title:"Term Name",category:"theme",description:"Displays the name of a taxonomy term.",keywords:["term title"],textdomain:"default",usesContext:["termId","taxonomy"],attributes:{textAlign:{type:"string"},level:{type:"number",default:0},isLink:{type:"boolean",default:!1},levelOptions:{type:"array"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{color:!0,width:!0,style:!0}}},style:"wp-block-term-name"};var B2=r(B()),Fs=r(S()),qg=r(M()),Bae=r(jo());var FC=r(Y()),HC=r(A());function Tae(e,t){let o=(0,HC.useSelect)(i=>!e||!t?null:i(FC.store).getEntityRecord("taxonomy",t,e),[e,t]),a=Yve(),n=!!(e&&t);return{hasContext:n,term:n?o:a}}function Yve(){let t=(0,HC.useSelect)(n=>{let{getCurrentPostId:i,getCurrentPostType:l,getCurrentTemplateId:s}=n("core/editor"),c=l(),u=s()||(c==="wp_template"?i():null);return u?n(FC.store).getEditedEntityRecord("postType","wp_template",u)?.slug:null},[])?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/),o,a;return t&&(t[3]&&(o=t[6]?t[6]:t[4],a=t[7]),o=o==="tag"?"post_tag":o),(0,HC.useSelect)(n=>{if(!o||!a)return null;let{getEntityRecords:i}=n(FC.store),l=i("taxonomy",o,{slug:a,per_page:1});return l&&l[0]?l[0]:null},[o,a])}var Bn=r(h());function Pae({attributes:e,setAttributes:t,context:{termId:o,taxonomy:a}}){let{textAlign:n,level:i=0,isLink:l,levelOptions:s}=e,{term:c}=Tae(o,a),u=c?.name?(0,Bae.decodeEntities)(c.name):(0,B2.__)("Term Name"),m=(0,Fs.useBlockProps)({className:w({[`has-text-align-${n}`]:n})}),p=G(),d=i===0?"p":`h${i}`,f=u;return l&&(f=(0,Bn.jsx)("a",{href:"#term-name-pseudo-link",onClick:g=>g.preventDefault(),children:u})),(0,Bn.jsxs)(Bn.Fragment,{children:[(0,Bn.jsxs)(Fs.BlockControls,{group:"block",children:[(0,Bn.jsx)(Fs.HeadingLevelDropdown,{value:i,options:s,onChange:g=>{t({level:g})}}),(0,Bn.jsx)(Fs.AlignmentControl,{value:n,onChange:g=>{t({textAlign:g})}})]}),(0,Bn.jsx)(Fs.InspectorControls,{children:(0,Bn.jsx)(qg.__experimentalToolsPanel,{label:(0,B2.__)("Settings"),resetAll:()=>{t({isLink:!1})},dropdownMenuProps:p,children:(0,Bn.jsx)(qg.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,B2.__)("Make term name a link"),onDeselect:()=>t({isLink:!1}),isShownByDefault:!0,children:(0,Bn.jsx)(qg.ToggleControl,{label:(0,B2.__)("Make term name a link"),onChange:()=>t({isLink:!l}),checked:l})})})}),(0,Bn.jsx)(d,{...m,children:f})]})}var{name:Nae}=VC,Iae={icon:vS,example:{},edit:Pae},Xve=()=>D({name:Nae,metadata:VC,settings:Iae});var IE={};$(IE,{init:()=>ibe,metadata:()=>jC,name:()=>vne,settings:()=>bne});var jC={$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:{align:["wide","full"],html:!1,layout:!0,interactivity:!0}};var cne=r(A()),une=r(S());var ine=r(H()),GC=r(S());var zl=r(B()),Hs=r(M()),ane=r(S());var Dae=r(Y()),Eae=r(A()),Lae=r(H());function OC(){let e=(0,Eae.useSelect)(t=>t(Dae.store).getTaxonomies({per_page:-1}),[]);return(0,Lae.useMemo)(()=>e?.filter(({visibility:t})=>t?.publicly_queryable)||[],[e])}var Mae=r(M());var Rae=r(h());function zae({value:e,onChange:t,...o}){let n=OC().map(i=>({label:i.name,value:i.slug}));return(0,Rae.jsx)(Mae.SelectControl,{__next40pxDefaultSize:!0,options:n,value:e,onChange:t,...o})}var P2=r(B()),Aae=r(M()),Vae=r(h());function Fae({orderBy:e,order:t,onChange:o,...a}){return(0,Vae.jsx)(Aae.SelectControl,{__next40pxDefaultSize:!0,options:[{label:(0,P2.__)("Name: A \u2192 Z"),value:"name/asc"},{label:(0,P2.__)("Name: Z \u2192 A"),value:"name/desc"},{label:(0,P2.__)("Count, high to low"),value:"count/desc"},{label:(0,P2.__)("Count, low to high"),value:"count/asc"}],value:e+"/"+t,onChange:n=>{let[i,l]=n.split("/");o(i,l)},...a})}var Hae=r(M()),jae=r(h());function Oae({value:e,onChange:t,...o}){return(0,jae.jsx)(Hae.ToggleControl,{checked:!e,onChange:a=>t(!a),...o})}var Uae=r(M()),Gae=r(h());function $ae({value:e,onChange:t,...o}){return(0,Gae.jsx)(Uae.ToggleControl,{checked:e,onChange:t,...o})}var I2=r(M()),N2=r(B()),D2=r(h());function Wae({value:e,onChange:t,label:o}){return(0,D2.jsxs)(I2.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:o,isBlock:!0,onChange:a=>{t({inherit:a==="default"})},help:e?(0,N2.__)("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,N2.__)("Display terms based on specific criteria."),value:e?"default":"custom",children:[(0,D2.jsx)(I2.__experimentalToggleGroupControlOption,{value:"default",label:(0,N2.__)("Default")}),(0,D2.jsx)(I2.__experimentalToggleGroupControlOption,{value:"custom",label:(0,N2.__)("Custom")})]})}var qae=r(B()),Zae=r(M()),Kae=r(h());function Qae({value:e,onChange:t,...o}){return(0,Kae.jsx)(Zae.RangeControl,{__next40pxDefaultSize:!0,value:e,min:0,max:100,onChange:t,help:(0,qae.__)("Limit the number of terms you want to show. To show all terms, use 0 (zero)."),...o})}var Yae=r(B()),UC=r(S());var SE=r(h()),{HTMLElementControl:ebe}=Q(UC.privateApis);function Xae({TagName:e,setAttributes:t,clientId:o}){return(0,SE.jsx)(UC.InspectorControls,{group:"advanced",children:(0,SE.jsx)(ebe,{tagName:e,onChange:a=>t({tagName:a}),clientId:o,options:[{label:(0,Yae.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]})})}var ene=r(M()),TE=r(A()),BE=r(Y()),Dc=r(H()),tne=r(we()),PE=r(jo()),one=r(h()),nd=[],Jae={order:"asc",_fields:"id,name",context:"view"};function rne({value:e,taxonomy:t,onChange:o,...a}){let[n,i]=(0,Dc.useState)(""),[l,s]=(0,Dc.useState)(nd),[c,u]=(0,Dc.useState)(nd),m=(0,tne.useDebounce)(i,250),{searchResults:p,searchHasResolved:d}=(0,TE.useSelect)(v=>{if(!n)return{searchResults:nd,searchHasResolved:!0};let{getEntityRecords:_,hasFinishedResolution:x}=v(BE.store),k=["taxonomy",t,{...Jae,search:n,orderby:"name",exclude:e,per_page:20}];return{searchResults:_(...k),searchHasResolved:x("getEntityRecords",k)}},[n,t,e]),f=(0,TE.useSelect)(v=>{if(!e?.length)return nd;let{getEntityRecords:_}=v(BE.store);return _("taxonomy",t,{...Jae,include:e,per_page:e.length})},[e,t]);(0,Dc.useEffect)(()=>{if(e?.length||s(nd),!f?.length)return;let v=e.reduce((_,x)=>{let k=f.find(C=>C.id===x);return k&&_.push({id:x,value:(0,PE.decodeEntities)(k.name)}),_},[]);s(v)},[e,f]);let g=(0,Dc.useMemo)(()=>{if(!p?.length)return{names:nd,mapByName:{}};let v=[],_={};return p.forEach(x=>{let k=(0,PE.decodeEntities)(x.name);v.push(k),_[k]=x}),{names:v,mapByName:_}},[p]);(0,Dc.useEffect)(()=>{d&&u(g.names)},[g.names,d]);let b=(v,_)=>_?.id||v?.[_]?.id;return(0,one.jsx)(ene.FormTokenField,{__next40pxDefaultSize:!0,value:l,onInputChange:m,suggestions:c,onChange:v=>{let _=Array.from(v.reduce((x,k)=>{let C=b(g.mapByName,k);return C&&x.add(C),x},new Set));u(nd),o(_)},__experimentalShowHowTo:!1,...a})}var _o=r(h());function nne({attributes:e,setQuery:t,setAttributes:o,clientId:a,templateSlug:n}){let{termQuery:i,tagName:l}=e,{taxonomy:s,orderBy:c,order:u,hideEmpty:m,inherit:p,showNested:d,perPage:f,include:g}=i,b=G(),v=OC().find(V=>V.slug===s)?.hierarchical,_=!!p,x=["taxonomy","category","tag","archive"].includes(n)||n?.startsWith("taxonomy-")||n?.startsWith("category-")||n?.startsWith("tag-"),k=v,C=!!g?.length,T=(0,zl.__)("Query type"),N=(0,zl.__)("Taxonomy"),P=(0,zl.__)("Order by"),L=(0,zl.__)("Show empty terms"),R=(0,zl.__)("Show nested terms"),z=(0,zl.__)("Max terms"),O=(0,zl.__)("Selected terms");return(0,_o.jsxs)(_o.Fragment,{children:[(0,_o.jsx)(ane.InspectorControls,{children:(0,_o.jsxs)(Hs.__experimentalToolsPanel,{label:(0,zl.__)("Settings"),resetAll:()=>{o({termQuery:{taxonomy:"category",order:"asc",orderBy:"name",include:[],hideEmpty:!0,showNested:!1,inherit:!1,perPage:10}})},dropdownMenuProps:b,children:[x&&(0,_o.jsx)(Hs.__experimentalToolsPanelItem,{hasValue:()=>p!==!1,label:T,onDeselect:()=>t({inherit:!1}),isShownByDefault:!0,children:(0,_o.jsx)(Wae,{label:T,value:p,onChange:t})}),!_&&(0,_o.jsx)(Hs.__experimentalToolsPanelItem,{hasValue:()=>s!=="category",label:N,onDeselect:()=>{t({taxonomy:"category"})},isShownByDefault:!0,children:(0,_o.jsx)(zae,{label:N,value:s,onChange:V=>t({taxonomy:V,include:[]})})}),(0,_o.jsx)(Hs.__experimentalToolsPanelItem,{hasValue:()=>c!=="name"||u!=="asc",label:P,onDeselect:()=>t({orderBy:"name",order:"asc"}),isShownByDefault:!0,children:(0,_o.jsx)(Fae,{label:P,orderBy:c,order:u,onChange:(V,I)=>{t({orderBy:V,order:I})},disabled:C,help:C?(0,zl.__)("When specific terms are selected, the order is based on their selection order."):void 0})}),!_&&(0,_o.jsx)(Hs.__experimentalToolsPanelItem,{hasValue:()=>!!g?.length,label:O,onDeselect:()=>t({include:[],orderBy:"name",order:"asc"}),isShownByDefault:!0,children:(0,_o.jsx)(rne,{label:O,taxonomy:s,value:g,onChange:V=>t({include:V})})}),(0,_o.jsx)(Hs.__experimentalToolsPanelItem,{hasValue:()=>m!==!0,label:L,onDeselect:()=>t({hideEmpty:!0}),isShownByDefault:!0,children:(0,_o.jsx)(Oae,{label:L,value:m,onChange:V=>t({hideEmpty:V})})}),k&&(0,_o.jsx)(Hs.__experimentalToolsPanelItem,{hasValue:()=>d!==!1,label:R,onDeselect:()=>t({showNested:!1}),isShownByDefault:!0,children:(0,_o.jsx)($ae,{label:R,value:d,onChange:V=>t({showNested:V}),disabled:C,help:C?(0,zl.__)("When specific terms are selected, only those are displayed."):void 0})}),(0,_o.jsx)(Hs.__experimentalToolsPanelItem,{hasValue:()=>f!==10,label:z,onDeselect:()=>t({perPage:10}),isShownByDefault:!0,children:(0,_o.jsx)(Qae,{label:z,value:f,onChange:V=>t({perPage:V})})})]})}),(0,_o.jsx)(Xae,{TagName:l,setAttributes:o,clientId:a})]})}var id=r(h()),tbe=[["core/term-template"]];function lne({attributes:e,setAttributes:t,clientId:o,context:a}){let{tagName:n}=e,i=(0,GC.useBlockProps)(),l=(0,GC.useInnerBlocksProps)(i,{template:tbe}),s=(0,ine.useCallback)(c=>t(u=>({termQuery:{...u.termQuery,...c}})),[t]);return(0,id.jsxs)(id.Fragment,{children:[(0,id.jsx)(nne,{attributes:e,setQuery:s,setAttributes:t,clientId:o,templateSlug:a?.templateSlug}),(0,id.jsx)(n,{...l})]})}var $C=r(A()),WC=r(U()),Zg=r(S()),NE=r(h());function sne({attributes:e,clientId:t,name:o}){let{blockType:a,activeBlockVariation:n,scopeVariations:i}=(0,$C.useSelect)(m=>{let{getActiveBlockVariation:p,getBlockType:d,getBlockVariations:f}=m(WC.store);return{blockType:d(o),activeBlockVariation:p(o,e),scopeVariations:f(o,"block")}},[o,e]),l=n?.icon?.src||n?.icon||a?.icon?.src,s=n?.title||a?.title,{replaceInnerBlocks:c}=(0,$C.useDispatch)(Zg.store),u=(0,Zg.useBlockProps)();return(0,NE.jsx)("div",{...u,children:(0,NE.jsx)(Zg.__experimentalBlockVariationPicker,{icon:l,label:s,variations:i,onSelect:m=>{m.innerBlocks&&c(t,(0,WC.createBlocksFromInnerBlocksTemplate)(m.innerBlocks),!1)}})})}var mne=r(h()),obe=e=>{let o=(0,cne.useSelect)(a=>!!a(une.store).getBlocks(e.clientId).length,[e.clientId])?lne:sne;return(0,mne.jsx)(o,{...e})},pne=obe;var qC=r(S()),dne=r(h());function fne({attributes:{tagName:e="div"}}){let t=qC.useBlockProps.save(),o=qC.useInnerBlocksProps.save(t);return(0,dne.jsx)(e,{...o})}var E2=r(B()),Kg=r(M()),L2=r(h()),rbe=(0,L2.jsx)(Kg.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,L2.jsx)(Kg.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"})}),abe=(0,L2.jsx)(Kg.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,L2.jsx)(Kg.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"})}),gne=["core/term-name",{isLink:!0}],nbe=[{name:"name",title:(0,E2.__)("Name"),description:(0,E2.__)("Display the terms' names."),attributes:{},icon:rbe,scope:["block"],innerBlocks:[["core/term-template",{},[gne]]]},{name:"name-count",title:(0,E2.__)("Name & Count"),description:(0,E2.__)("Display the terms' names and number of posts assigned to each term."),attributes:{},icon:abe,scope:["block"],innerBlocks:[["core/term-template",{},[["core/group",{layout:{type:"flex",flexWrap:"nowrap"}},[gne,["core/term-count"]]]]]]}],hne=nbe;var{name:vne}=jC,bne={icon:Cm,edit:pne,save:fne,example:{},variations:hne},ibe=()=>D({name:vne,metadata:jC,settings:bne});var DE={};$(DE,{init:()=>pbe,metadata:()=>ZC,name:()=>Tne,settings:()=>Bne});var ZC={$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:{reusable:!1,html:!1,align:["wide","full"],layout:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:!0,padding:!0,blockGap:{__experimentalDefault:"1.25em"},__experimentalDefaultControls:{blockGap:!0,padding:!1,margin:!1}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},style:"wp-block-term-template",editorStyle:"wp-block-term-template-editor"};var yne=r(M());var Qg=r(H()),xne=r(A()),M2=r(B()),Fi=r(S()),_ne=r(Y()),Hr=r(h()),sbe=[["core/term-name"]];function cbe({classList:e}){let t=(0,Fi.useInnerBlocksProps)({className:w("wp-block-term",e)},{template:sbe,__unstableDisableLayoutClassNames:!0});return(0,Hr.jsx)("li",{...t})}function ube({blocks:e,blockContextId:t,classList:o,isHidden:a,setActiveBlockContextId:n}){let i=(0,Fi.__experimentalUseBlockPreview)({blocks:e,props:{className:w("wp-block-term",o)}}),l=()=>{n(t)};return(0,Hr.jsx)("li",{...i,tabIndex:0,role:"button",onClick:l,onKeyPress:l,style:{display:a?"none":void 0}})}var mbe=(0,Qg.memo)(ube);function kne({clientId:e,attributes:{layout:t},setAttributes:o,context:{termQuery:{taxonomy:a,order:n,orderBy:i,hideEmpty:l,showNested:s=!1,perPage:c,include:u}={}},__unstableLayoutClassNames:m}){let{type:p,columnCount:d=3}=t||{},[f,g]=(0,Qg.useState)(),b={hide_empty:l,order:n,orderby:i,per_page:c||-1};!s&&!u?.length&&(b.parent=0),u?.length&&(b.include=u,b.orderby="include",b.order="asc");let{records:y}=(0,_ne.useEntityRecords)("taxonomy",a,b),v=(0,xne.useSelect)(C=>C(Fi.store).getBlocks(e),[e]),_=(0,Fi.useBlockProps)({className:m}),x=(0,Qg.useMemo)(()=>y?.map(C=>({taxonomy:a,termId:C.id,classList:`term-${C.id}`,termData:C})),[y,a]);if(!y)return(0,Hr.jsx)("ul",{..._,children:(0,Hr.jsx)("li",{className:"wp-block-term term-loading",children:(0,Hr.jsx)("div",{className:"term-loading-placeholder"})})});if(!y.length)return(0,Hr.jsxs)("p",{..._,children:[" ",(0,M2.__)("No terms found.")]});let k=C=>o(T=>({layout:{...T.layout,...C}}));return(0,Hr.jsxs)(Hr.Fragment,{children:[(0,Hr.jsx)(Fi.BlockControls,{children:(0,Hr.jsx)(yne.ToolbarGroup,{controls:[{icon:Gi,title:(0,M2._x)("List view","Term template block display setting"),onClick:()=>k({type:"default"}),isActive:p==="default"||p==="constrained"},{icon:Ui,title:(0,M2._x)("Grid view","Term template block display setting"),onClick:()=>k({type:"grid",columnCount:d}),isActive:p==="grid"}]})}),(0,Hr.jsx)("ul",{..._,children:x?.map(C=>(0,Hr.jsxs)(Fi.BlockContextProvider,{value:C,children:[C.termId===(f||x[0]?.termId)?(0,Hr.jsx)(cbe,{classList:C.classList}):null,(0,Hr.jsx)(mbe,{blocks:v,blockContextId:C.termId,classList:C.classList,setActiveBlockContextId:g,isHidden:C.termId===(f||x[0]?.termId)})]},C.termId))})]})}var wne=r(S()),Cne=r(h());function Sne(){return(0,Cne.jsx)(wne.InnerBlocks.Content,{})}var{name:Tne}=ZC,Bne={icon:wm,edit:kne,save:Sne,example:{}},pbe=()=>D({name:Tne,metadata:ZC,settings:Bne});var EE={};$(EE,{init:()=>gbe,metadata:()=>QC,name:()=>Ene,settings:()=>Lne});var Yg=r(B()),KC=r(M()),js=r(S()),Pne=r(Id()),ui=r(h());function Nne({attributes:e,setAttributes:t}){let{width:o,content:a,columns:n}=e;return(0,Pne.default)("The Text Columns block",{since:"5.3",alternative:"the Columns block"}),(0,ui.jsxs)(ui.Fragment,{children:[(0,ui.jsx)(js.BlockControls,{children:(0,ui.jsx)(js.BlockAlignmentToolbar,{value:o,onChange:i=>t({width:i}),controls:["center","wide","full"]})}),(0,ui.jsx)(js.InspectorControls,{children:(0,ui.jsx)(KC.PanelBody,{children:(0,ui.jsx)(KC.RangeControl,{__next40pxDefaultSize:!0,label:(0,Yg.__)("Columns"),value:n,onChange:i=>t({columns:i}),min:2,max:4,required:!0})})}),(0,ui.jsx)("div",{...(0,js.useBlockProps)({className:`align${o} columns-${n}`}),children:Array.from({length:n}).map((i,l)=>(0,ui.jsx)("div",{className:"wp-block-column",children:(0,ui.jsx)(js.RichText,{tagName:"p",value:a?.[l]?.children,onChange:s=>{t({content:[...a.slice(0,l),{children:s},...a.slice(l+1)]})},"aria-label":(0,Yg.sprintf)((0,Yg.__)("Column %d text"),l+1),placeholder:(0,Yg.__)("New Column")})},`column-${l}`))})]})}var QC={$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 XC=r(S()),YC=r(h());function Ine({attributes:e}){let{width:t,content:o,columns:a}=e;return(0,YC.jsx)("div",{...XC.useBlockProps.save({className:`align${t} columns-${a}`}),children:Array.from({length:a}).map((n,i)=>(0,YC.jsx)("div",{className:"wp-block-column",children:(0,YC.jsx)(XC.RichText.Content,{tagName:"p",value:o?.[i]?.children})},`column-${i}`))})}var JC=r(U()),fbe={to:[{type:"block",blocks:["core/columns"],transform:({className:e,columns:t,content:o,width:a})=>(0,JC.createBlock)("core/columns",{align:a==="wide"||a==="full"?a:void 0,className:e,columns:t},o.map(({children:n})=>(0,JC.createBlock)("core/column",{},[(0,JC.createBlock)("core/paragraph",{content:n})])))}]},Dne=fbe;var{name:Ene}=QC,Lne={transforms:Dne,getEditWrapperProps(e){let{width:t}=e;if(t==="wide"||t==="full")return{"data-align":t}},edit:Nne,save:Ine},gbe=()=>D({name:Ene,metadata:QC,settings:Lne});var AE={};$(AE,{init:()=>kbe,metadata:()=>o6,name:()=>Fne,settings:()=>a6});var zE=r(B());var Vne=r(U());var R2=r(S());var e6=r(h()),hbe={attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save({attributes:e}){let{textAlign:t,content:o}=e;return(0,e6.jsx)(R2.RichText.Content,{tagName:"pre",style:{textAlign:t},value:o})}},vbe={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:o}=e,a=w({[`has-text-align-${t}`]:t});return(0,e6.jsx)("pre",{...R2.useBlockProps.save({className:a}),children:(0,e6.jsx)(R2.RichText.Content,{value:o})})},migrate:Nt,isEligible({style:e}){return e?.typography?.fontFamily}},Mne=[vbe,hbe];var LE=r(B()),rm=r(S()),t6=r(U()),om=r(h());function Rne({attributes:e,setAttributes:t,mergeBlocks:o,onRemove:a,insertBlocksAfter:n,style:i}){let{textAlign:l,content:s}=e,c=(0,rm.useBlockProps)({className:w({[`has-text-align-${l}`]:l}),style:i});return(0,om.jsxs)(om.Fragment,{children:[(0,om.jsx)(rm.BlockControls,{children:(0,om.jsx)(rm.AlignmentToolbar,{value:l,onChange:u=>{t({textAlign:u})}})}),(0,om.jsx)(rm.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:s,onChange:u=>{t({content:u})},"aria-label":(0,LE.__)("Verse text"),placeholder:(0,LE.__)("Write verse\u2026"),onRemove:a,onMerge:o,textAlign:l,...c,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>n((0,t6.createBlock)((0,t6.getDefaultBlockName)()))})]})}var o6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/verse",title:"Verse",category:"text",description:"Insert poetry. Use special spacing formats. Or quote song lyrics.",keywords:["poetry","poem"],textdomain:"default",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,__experimentalDefaultControls:{backgroundImage:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},dimensions:{minHeight:!0,__experimentalDefaultControls:{minHeight:!1}},typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{radius:!0,width:!0,color:!0,style:!0},interactivity:{clientNavigation:!0}},style:"wp-block-verse",editorStyle:"wp-block-verse-editor"};var r6=r(S()),ME=r(h());function zne({attributes:e}){let{textAlign:t,content:o}=e,a=w({[`has-text-align-${t}`]:t});return(0,ME.jsx)("pre",{...r6.useBlockProps.save({className:a}),children:(0,ME.jsx)(r6.RichText.Content,{value:o})})}var RE=r(U()),ybe={from:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,RE.createBlock)("core/verse",e)}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,RE.createBlock)("core/paragraph",e)}]},Ane=ybe;var{fieldsKey:xbe,formKey:_be}=Q(Vne.privateApis),{name:Fne}=o6,a6={icon:u0,example:{attributes:{content:(0,zE.__)(`WHAT was he doing, the great god Pan, 41 Down in the reeds by the river? 42 Spreading ruin and scattering ban, 43 Splashing and paddling with hoofs of a goat, 44 And breaking the golden lilies afloat 45 With the dragon-fly on the river.`)}},transforms:Ane,deprecated:Mne,merge(e,t){return{content:e.content+` 46 47 `+t.content}},edit:Rne,save:zne};window.__experimentalContentOnlyInspectorFields&&(a6[xbe]=[{id:"content",label:(0,zE.__)("Content"),type:"richtext"}],a6[_be]={fields:["content"]});var kbe=()=>D({name:Fne,metadata:o6,settings:a6});var HE={};$(HE,{init:()=>Vbe,metadata:()=>Xg,name:()=>tie,settings:()=>l6});var i6=r(B());var eie=r(U());var z2=r(S());var Xg={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/video",title:"Video",category:"media",description:"Embed a video from your media library or upload a new one.",keywords:["movie"],textdomain:"default",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",role:"content"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number",role:"content"},loop:{type:"boolean",source:"attribute",selector:"video",attribute:"loop"},muted:{type:"boolean",source:"attribute",selector:"video",attribute:"muted"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"},preload:{type:"string",source:"attribute",selector:"video",attribute:"preload",default:"metadata"},blob:{type:"string",role:"local"},src:{type:"string",source:"attribute",selector:"video",attribute:"src",role:"content"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"},tracks:{role:"content",type:"array",items:{type:"object"},default:[]}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-video-editor",style:"wp-block-video"};var Hne=r(h());function Jg({tracks:e=[]}){return e.map(t=>{let{id:o,...a}=t;return(0,Hne.jsx)("track",{...a},o??a.src)})}var eh=r(h()),{attributes:Cbe}=Xg,Sbe={attributes:Cbe,save({attributes:e}){let{autoplay:t,caption:o,controls:a,loop:n,muted:i,poster:l,preload:s,src:c,playsInline:u,tracks:m}=e;return(0,eh.jsxs)("figure",{...z2.useBlockProps.save(),children:[c&&(0,eh.jsx)("video",{autoPlay:t,controls:a,loop:n,muted:i,poster:l,preload:s!=="metadata"?s:void 0,src:c,playsInline:u,children:(0,eh.jsx)(Jg,{tracks:m})}),!z2.RichText.isEmpty(o)&&(0,eh.jsx)(z2.RichText.Content,{tagName:"figcaption",value:o})]})}},Tbe=[Sbe],jne=Tbe;var Zne=r(No()),am=r(M()),ja=r(S()),oh=r(H()),A2=r(B()),Kne=r(A());var Qne=r(wo());var Po=r(B()),Ha=r(M()),ld=r(H()),jr=r(h()),Bbe=[{value:"auto",label:(0,Po.__)("Auto")},{value:"metadata",label:(0,Po.__)("Metadata")},{value:"none",label:(0,Po._x)("None","Preload value")}],Pbe=({setAttributes:e,attributes:t})=>{let{autoplay:o,controls:a,loop:n,muted:i,playsInline:l,preload:s}=t,c=(0,Po.__)("Autoplay may cause usability issues for some users."),u=ld.Platform.select({web:(0,ld.useCallback)(d=>d?c:null,[]),native:c}),m=(0,ld.useMemo)(()=>{let d=f=>g=>{e({[f]:g,...f==="autoplay"&&{muted:g,playsInline:g}})};return{autoplay:d("autoplay"),loop:d("loop"),muted:d("muted"),controls:d("controls"),playsInline:d("playsInline")}},[]),p=(0,ld.useCallback)(d=>{e({preload:d})},[]);return(0,jr.jsxs)(jr.Fragment,{children:[(0,jr.jsx)(Ha.__experimentalToolsPanelItem,{label:(0,Po.__)("Autoplay"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>{e({autoplay:!1,muted:!1})},children:(0,jr.jsx)(Ha.ToggleControl,{label:(0,Po.__)("Autoplay"),onChange:m.autoplay,checked:!!o,help:u})}),(0,jr.jsx)(Ha.__experimentalToolsPanelItem,{label:(0,Po.__)("Loop"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>{e({loop:!1})},children:(0,jr.jsx)(Ha.ToggleControl,{label:(0,Po.__)("Loop"),onChange:m.loop,checked:!!n})}),(0,jr.jsx)(Ha.__experimentalToolsPanelItem,{label:(0,Po.__)("Muted"),isShownByDefault:!0,hasValue:()=>!!i,onDeselect:()=>{e({muted:!1})},children:(0,jr.jsx)(Ha.ToggleControl,{label:(0,Po.__)("Muted"),onChange:m.muted,checked:!!i,disabled:o,help:o?(0,Po.__)("Muted because of Autoplay."):null})}),(0,jr.jsx)(Ha.__experimentalToolsPanelItem,{label:(0,Po.__)("Playback controls"),isShownByDefault:!0,hasValue:()=>!a,onDeselect:()=>{e({controls:!0})},children:(0,jr.jsx)(Ha.ToggleControl,{label:(0,Po.__)("Playback controls"),onChange:m.controls,checked:!!a})}),(0,jr.jsx)(Ha.__experimentalToolsPanelItem,{label:(0,Po.__)("Play inline"),isShownByDefault:!0,hasValue:()=>!!l,onDeselect:()=>{e({playsInline:!1})},children:(0,jr.jsx)(Ha.ToggleControl,{label:(0,Po.__)("Play inline"),onChange:m.playsInline,checked:!!l,disabled:o,help:o?(0,Po.__)("Play inline enabled because of Autoplay."):(0,Po.__)("When enabled, videos will play directly within the webpage on mobile browsers, instead of opening in a fullscreen player.")})}),(0,jr.jsx)(Ha.__experimentalToolsPanelItem,{label:(0,Po.__)("Preload"),isShownByDefault:!0,hasValue:()=>s!=="metadata",onDeselect:()=>{e({preload:"metadata"})},children:(0,jr.jsx)(Ha.SelectControl,{__next40pxDefaultSize:!0,label:(0,Po.__)("Preload"),value:s,onChange:p,options:Bbe,hideCancelButton:!0})})]})},One=Pbe;var kt=r(B()),We=r(M()),th=r(S());var Gne=r(A()),sd=r(H()),$ne=r(ko());var Ge=r(h()),{Badge:Nbe}=Q(We.privateApis),Une=["text/vtt"],Ibe="subtitles",Dbe=[{label:(0,kt.__)("Subtitles"),value:"subtitles"},{label:(0,kt.__)("Captions"),value:"captions"},{label:(0,kt.__)("Descriptions"),value:"descriptions"},{label:(0,kt.__)("Chapters"),value:"chapters"},{label:(0,kt.__)("Metadata"),value:"metadata"}],Wne={src:"",label:"",srcLang:"en",kind:Ibe,default:!1};function Ebe({tracks:e,onEditPress:t}){let o=e.map((a,n)=>(0,Ge.jsxs)(We.__experimentalHStack,{className:"block-library-video-tracks-editor__track-list-track",children:[(0,Ge.jsx)("span",{children:a.label}),(0,Ge.jsxs)(We.__experimentalHStack,{justify:"flex-end",children:[a.default&&(0,Ge.jsx)(Nbe,{children:(0,kt.__)("Default")}),(0,Ge.jsx)(We.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>t(n),"aria-label":(0,kt.sprintf)((0,kt._x)("Edit %s","text tracks"),a.label),children:(0,kt.__)("Edit")})]})]},a.id??a.src));return(0,Ge.jsx)(We.MenuGroup,{label:(0,kt.__)("Text tracks"),className:"block-library-video-tracks-editor__track-list",children:o})}function Lbe({track:e,onChange:t,onClose:o,onRemove:a,allowSettingDefault:n}){let[i,l]=(0,sd.useState)({...Wne,...e}),{src:s,label:c,srcLang:u,kind:m,default:p}=i,d=s.startsWith("blob:")?"":(0,$ne.getFilename)(s)||"";return(0,Ge.jsxs)(We.__experimentalVStack,{className:"block-library-video-tracks-editor__single-track-editor",spacing:"4",children:[(0,Ge.jsx)("span",{className:"block-library-video-tracks-editor__single-track-editor-edit-track-label",children:(0,kt.__)("Edit track")}),(0,Ge.jsxs)("span",{children:[(0,kt.__)("File"),": ",(0,Ge.jsx)("b",{children:d})]}),(0,Ge.jsxs)(We.__experimentalGrid,{columns:2,gap:4,children:[(0,Ge.jsx)(We.TextControl,{__next40pxDefaultSize:!0,onChange:f=>l(g=>({...g,label:f})),label:(0,kt.__)("Label"),value:c,help:(0,kt.__)("Title of track")}),(0,Ge.jsx)(We.TextControl,{__next40pxDefaultSize:!0,onChange:f=>l(g=>({...g,srcLang:f})),label:(0,kt.__)("Source language"),value:u,help:(0,kt.__)("Language tag (en, fr, etc.)")})]}),(0,Ge.jsxs)(We.__experimentalVStack,{spacing:"4",children:[(0,Ge.jsx)(We.SelectControl,{__next40pxDefaultSize:!0,className:"block-library-video-tracks-editor__single-track-editor-kind-select",options:Dbe,value:m,label:(0,kt.__)("Kind"),onChange:f=>l(g=>({...g,kind:f}))}),(0,Ge.jsx)(We.ToggleControl,{__next40pxDefaultSize:!0,label:(0,kt.__)("Set as default track"),checked:p,disabled:!n,onChange:f=>l(g=>({...g,default:f}))}),(0,Ge.jsxs)(We.__experimentalHStack,{className:"block-library-video-tracks-editor__single-track-editor-buttons-container",children:[(0,Ge.jsx)(We.Button,{__next40pxDefaultSize:!0,isDestructive:!0,variant:"link",onClick:a,children:(0,kt.__)("Remove track")}),(0,Ge.jsx)(We.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{t(i),o()},children:(0,kt.__)("Apply")})]})]})]})}function qne({tracks:e=[],onChange:t}){let o=(0,Gne.useSelect)(c=>c(th.store).getSettings().mediaUpload,[]),[a,n]=(0,sd.useState)(null),i=(0,sd.useRef)(),l=(c=[],u=!1)=>{let m=new Map(e.map(d=>[d.id,d])),p=c.map(({id:d,title:f,url:g})=>m.has(d)?m.get(d):{...Wne,id:d,label:f||"",src:g});p.length!==0&&t([...u?e:[],...p])};function s(c){let u=c.target.files;o({allowedTypes:Une,filesList:u,onFileChange:m=>{if(!Array.isArray(m))return;let p=m.filter(d=>!!d?.id);p.length&&l(p,!0)}})}return(0,sd.useEffect)(()=>{i.current?.focus()},[a]),o?(0,Ge.jsx)(We.Dropdown,{contentClassName:"block-library-video-tracks-editor",focusOnMount:!0,popoverProps:{ref:i},renderToggle:({isOpen:c,onToggle:u})=>(0,Ge.jsx)(We.ToolbarGroup,{children:(0,Ge.jsx)(We.ToolbarButton,{"aria-expanded":c,"aria-haspopup":"true",onClick:()=>{c||n(null),u()},children:(0,kt.__)("Text tracks")})}),renderContent:()=>a!==null?(0,Ge.jsx)(Lbe,{track:e[a],onChange:c=>{let u=[...e];u[a]=c,t(u)},onClose:()=>n(null),onRemove:()=>{t(e.filter((c,u)=>u!==a)),n(null)},allowSettingDefault:!e.some(c=>c.default)||e[a].default}):(0,Ge.jsxs)(Ge.Fragment,{children:[e.length===0&&(0,Ge.jsxs)("div",{className:"block-library-video-tracks-editor__tracks-informative-message",children:[(0,Ge.jsx)("h2",{className:"block-library-video-tracks-editor__tracks-informative-message-title",children:(0,kt.__)("Text tracks")}),(0,Ge.jsx)("p",{className:"block-library-video-tracks-editor__tracks-informative-message-description",children:(0,kt.__)("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.")})]}),(0,Ge.jsxs)(We.NavigableMenu,{children:[(0,Ge.jsx)(Ebe,{tracks:e,onEditPress:n}),(0,Ge.jsx)(We.MenuGroup,{className:"block-library-video-tracks-editor__add-tracks-container",label:(0,kt.__)("Add tracks"),children:(0,Ge.jsxs)(th.MediaUploadCheck,{children:[(0,Ge.jsx)(th.MediaUpload,{onSelect:l,allowedTypes:Une,value:e.map(({id:c})=>c),multiple:!0,render:({open:c})=>(0,Ge.jsx)(We.MenuItem,{icon:zh,onClick:c,children:(0,kt.__)("Open Media Library")})}),(0,Ge.jsx)(We.FormFileUpload,{onChange:s,accept:".vtt,text/vtt",multiple:!0,render:({openFileDialog:c})=>(0,Ge.jsx)(We.MenuItem,{icon:Ws,onClick:c,children:(0,kt._x)("Upload","verb")})})]})})]})]})}):null}var Qt=r(h()),VE=["video"];function Mbe({isSelected:e,attributes:t,className:o,setAttributes:a,insertBlocksAfter:n,onReplace:i}){let l=(0,oh.useRef)(),{id:s,controls:c,poster:u,src:m,tracks:p}=t,[d,f]=(0,oh.useState)(t.blob),g=G(),y=(0,ja.useBlockEditingMode)()==="default";Hc({url:d,allowedTypes:VE,onChange:v,onError:k}),(0,oh.useEffect)(()=>{l.current&&l.current.load()},[u]);function v(P){if(!P||!P.url){a({src:void 0,id:void 0,poster:void 0,caption:void 0,blob:void 0}),f();return}if((0,Zne.isBlobURL)(P.url)){f(P.url);return}a({blob:void 0,src:P.url,id:P.id,poster:P.image?.src!==P.icon?P.image?.src:void 0,caption:P.caption}),f()}function _(P){if(P!==m){let L=$c({attributes:{url:P}});if(L!==void 0&&i){i(L);return}a({blob:void 0,src:P,id:void 0,poster:void 0}),f()}}let{createErrorNotice:x}=(0,Kne.useDispatch)(Qne.store);function k(P){x(P,{type:"snackbar"})}let C=P=>(0,Qt.jsx)(am.Placeholder,{className:"block-editor-media-placeholder",withIllustration:!e,icon:wd,label:(0,A2.__)("Video"),instructions:(0,A2.__)("Drag and drop a video, upload, or choose from your library."),children:P}),T=w(o,{"is-transient":!!d}),N=(0,ja.useBlockProps)({className:T});return!m&&!d?(0,Qt.jsx)("div",{...N,children:(0,Qt.jsx)(ja.MediaPlaceholder,{icon:(0,Qt.jsx)(ja.BlockIcon,{icon:wd}),onSelect:v,onSelectURL:_,accept:"video/*",allowedTypes:VE,value:t,onError:k,placeholder:C})}):(0,Qt.jsxs)(Qt.Fragment,{children:[e&&(0,Qt.jsxs)(Qt.Fragment,{children:[(0,Qt.jsx)(ja.BlockControls,{children:(0,Qt.jsx)(qne,{tracks:p,onChange:P=>{a({tracks:P})}})}),(0,Qt.jsx)(ja.BlockControls,{group:"other",children:(0,Qt.jsx)(ja.MediaReplaceFlow,{mediaId:s,mediaURL:m,allowedTypes:VE,accept:"video/*",onSelect:v,onSelectURL:_,onError:k,onReset:()=>v(void 0)})})]}),(0,Qt.jsx)(ja.InspectorControls,{children:(0,Qt.jsxs)(am.__experimentalToolsPanel,{label:(0,A2.__)("Settings"),resetAll:()=>{a({autoplay:!1,controls:!0,loop:!1,muted:!1,playsInline:!1,preload:"metadata",poster:void 0})},dropdownMenuProps:g,children:[(0,Qt.jsx)(One,{setAttributes:a,attributes:t}),(0,Qt.jsx)(o_,{poster:u,onChange:P=>a({poster:P?.url})})]})}),(0,Qt.jsxs)("figure",{...N,children:[(0,Qt.jsx)(am.Disabled,{isDisabled:!e,children:(0,Qt.jsx)("video",{controls:c,poster:u,src:m||d,ref:l,children:(0,Qt.jsx)(Jg,{tracks:p})})}),!!d&&(0,Qt.jsx)(am.Spinner,{}),(0,Qt.jsx)(qa,{attributes:t,setAttributes:a,isSelected:e,insertBlocksAfter:n,label:(0,A2.__)("Video caption text"),showToolbarButton:e&&y})]})]})}var Yne=Mbe;var cd=r(S());var rh=r(h());function Xne({attributes:e}){let{autoplay:t,caption:o,controls:a,loop:n,muted:i,poster:l,preload:s,src:c,playsInline:u,tracks:m}=e;return(0,rh.jsxs)("figure",{...cd.useBlockProps.save(),children:[c&&(0,rh.jsx)("video",{autoPlay:t,controls:a,loop:n,muted:i,poster:l,preload:s!=="metadata"?s:void 0,src:c,playsInline:u,children:(0,rh.jsx)(Jg,{tracks:m})}),!cd.RichText.isEmpty(o)&&(0,rh.jsx)(cd.RichText.Content,{className:(0,cd.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]})}var n6=r(No()),FE=r(U()),Rbe={from:[{type:"files",isMatch(e){return e.length===1&&e[0].type.indexOf("video/")===0},transform(e){let t=e[0];return(0,FE.createBlock)("core/video",{blob:(0,n6.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:({named:{src:e,mp4:t,m4v:o,webm:a,ogv:n,flv:i}})=>e||t||o||a||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,o={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,n6.isBlobURL)(o.src)&&(o.blob=o.src,delete o.src),(0,FE.createBlock)("core/video",o)}}]},Jne=Rbe;var{fieldsKey:zbe,formKey:Abe}=Q(eie.privateApis),{name:tie}=Xg,l6={icon:wd,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/c/ca/Wood_thrush_in_Central_Park_switch_sides_%2816510%29.webm",caption:(0,i6.__)("Wood thrush singing in Central Park, NYC.")}},transforms:Jne,deprecated:jne,edit:Yne,save:Xne};window.__experimentalContentOnlyInspectorFields&&(l6[zbe]=[{id:"video",label:(0,i6.__)("Video"),type:"media",mapping:{id:"id",url:"src",caption:"caption",poster:"poster"},args:{allowedTypes:["video"],multiple:!1}},{id:"caption",label:(0,i6.__)("Caption"),type:"richtext"}],l6[Abe]={fields:["video"]});var Vbe=()=>D({name:tie,metadata:Xg,settings:l6});var qE={};$(qE,{init:()=>$be,metadata:()=>s6,name:()=>mie,settings:()=>pie});var uie=r(Em());var ud=r(S()),oie=r(Y()),V2=r(B()),jE=r(M());var Hi=r(h());function rie({context:{postType:e,postId:t}}){let[o,a]=(0,oie.useEntityProp)("postType",e,"meta",t),n=typeof o?.footnotes=="string",i=o?.footnotes?JSON.parse(o.footnotes):[],l=(0,ud.useBlockProps)();return n?i.length?(0,Hi.jsx)("ol",{...l,children:i.map(({id:s,content:c})=>(0,Hi.jsxs)("li",{onMouseDown:u=>{u.target===u.currentTarget&&(u.target.firstElementChild.focus(),u.preventDefault())},children:[(0,Hi.jsx)(ud.RichText,{id:s,tagName:"span",value:c,identifier:s,onFocus:u=>{u.target.textContent.trim()||u.target.scrollIntoView()},onChange:u=>{a({...o,footnotes:JSON.stringify(i.map(m=>m.id===s?{content:u,id:s}:m))})}})," ",(0,Hi.jsx)("a",{href:`#${s}-link`,children:"\u21A9\uFE0E"})]},s))}):(0,Hi.jsx)("div",{...l,children:(0,Hi.jsx)(jE.Placeholder,{icon:(0,Hi.jsx)(ud.BlockIcon,{icon:pi}),label:(0,V2.__)("Footnotes"),instructions:(0,V2.__)("Footnotes found in blocks within this document will be displayed here.")})}):(0,Hi.jsx)("div",{...l,children:(0,Hi.jsx)(jE.Placeholder,{icon:(0,Hi.jsx)(ud.BlockIcon,{icon:pi}),label:(0,V2.__)("Footnotes"),instructions:(0,V2.__)("Footnotes are not supported here. Add this block to post or page content.")})})}var s6={$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:{__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!1,color:!1,width:!1,style:!1}},color:{background:!0,link:!0,text:!0,__experimentalDefaultControls:{link:!0,text:!0}},html:!1,multiple:!1,reusable:!1,inserter:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-footnotes"};var c6,Hbe=new Uint8Array(16);function OE(){if(!c6&&(c6=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!c6))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return c6(Hbe)}var Or=[];for(let e=0;e<256;++e)Or.push((e+256).toString(16).slice(1));function aie(e,t=0){return Or[e[t+0]]+Or[e[t+1]]+Or[e[t+2]]+Or[e[t+3]]+"-"+Or[e[t+4]]+Or[e[t+5]]+"-"+Or[e[t+6]]+Or[e[t+7]]+"-"+Or[e[t+8]]+Or[e[t+9]]+"-"+Or[e[t+10]]+Or[e[t+11]]+Or[e[t+12]]+Or[e[t+13]]+Or[e[t+14]]+Or[e[t+15]]}var jbe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),UE={randomUUID:jbe};function Obe(e,t,o){if(UE.randomUUID&&!t&&!e)return UE.randomUUID();e=e||{};let a=e.random||(e.rng||OE)();if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,t){o=o||0;for(let n=0;n<16;++n)t[o+n]=a[n];return t}return aie(a)}var GE=Obe;var $E=r(B());var iie=r(Em()),Ec=r(S()),ah=r(A()),lie=r(Y()),u6=r(U());var sie=r(h()),{usesContextKey:Ube}=Q(Ec.privateApis),WE="core/footnote",nie="core/post-content",Gbe="core/block",cie={title:(0,$E.__)("Footnote"),tagName:"sup",className:"fn",attributes:{"data-fn":"data-fn"},interactive:!0,contentEditable:!1,[Ube]:["postType","postId"],edit:function({value:t,onChange:o,isObjectActive:a,context:{postType:n,postId:i}}){let l=(0,ah.useRegistry)(),{getSelectedBlockClientId:s,getBlocks:c,getBlockRootClientId:u,getBlockName:m,getBlockParentsByBlockName:p}=l.select(Ec.store),d=(0,ah.useSelect)(y=>{if(!y(u6.store).getBlockType("core/footnotes"))return!1;let v=y(Ec.store).getSettings().allowedBlockTypes;if(v===!1||Array.isArray(v)&&!v.includes("core/footnotes")||typeof y(lie.store).getEntityRecord("postType",n,i)?.meta?.footnotes!="string")return!1;let{getBlockParentsByBlockName:x,getSelectedBlockClientId:k}=y(Ec.store),C=x(k(),Gbe);return!C||C.length===0},[n,i]),{selectionChange:f,insertBlock:g}=(0,ah.useDispatch)(Ec.store);if(!d)return null;function b(){l.batch(()=>{let y;if(a)y=t.replacements[t.start]?.attributes?.["data-fn"];else{y=GE();let C=(0,iie.insertObject)(t,{type:WE,attributes:{"data-fn":y},innerHTML:`<a href="#${y}" id="${y}-link">*</a>`},t.end,t.end);C.start=C.end-1,o(C)}let v=s(),_=p(v,nie),x=_.length?c(_[0]):c(),k=null;{let C=[...x];for(;C.length;){let T=C.shift();if(T.name==="core/footnotes"){k=T;break}C.push(...T.innerBlocks)}}if(!k){let C=u(v);for(;C&&m(C)!==nie;)C=u(C);k=(0,u6.createBlock)("core/footnotes"),g(k,void 0,C)}f(k.clientId,y,0,0)})}return(0,sie.jsx)(Ec.RichTextToolbarButton,{icon:pi,title:(0,$E.__)("Footnote"),onClick:b,isActive:a})}};var{name:mie}=s6,pie={icon:pi,edit:rie},$be=()=>{(0,uie.registerFormatType)(WE,cie),D({name:mie,metadata:s6,settings:pie})};var Wbe=Object.getOwnPropertyNames,qbe=(e,t)=>function(){return t||(0,e[Wbe(e)[0]])((t={exports:{}}).exports,t),t.exports},Zbe=qbe({"packages/block-library/src/utils/is-block-metadata-experimental.js"(e,t){t.exports=function(a){return a&&"__experimental"in a&&a.__experimental!==!1}}}),die=Zbe();var hie=r(H()),F2=r(A()),Os=r(gie()),ZE=r(B()),vie=r(U()),KE=r(S());function Kbe(){let{registerShortcut:e}=(0,F2.useDispatch)(Os.store),{replaceBlocks:t}=(0,F2.useDispatch)(KE.store),{getBlockName:o,getSelectedBlockClientId:a,getBlockAttributes:n}=(0,F2.useSelect)(KE.store),i=(l,s)=>{l.preventDefault();let c=a();if(c===null)return;let u=o(c),m=u==="core/paragraph",p=u==="core/heading";if(!m&&!p)return;let d=s===0?"core/paragraph":"core/heading",f=n(c);if(m&&s===0||p&&f.level===s)return;let g={content:f.content},b=f.textAlign||f.style?.typography?.textAlign;d==="core/heading"?(g.level=s,b&&(g.textAlign=b)):b&&(g.style={typography:{textAlign:b}}),t(c,(0,vie.createBlock)(d,g))};return(0,hie.useEffect)(()=>{e({name:"core/block-editor/transform-heading-to-paragraph",category:"block-library",description:(0,ZE.__)("Transform heading to paragraph."),keyCombination:{modifier:"access",character:"0"},aliases:[{modifier:"access",character:"7"}]}),[1,2,3,4,5,6].forEach(l=>{e({name:`core/block-editor/transform-paragraph-to-heading-${l}`,category:"block-library",description:(0,ZE.__)("Transform paragraph to heading."),keyCombination:{modifier:"access",character:`${l}`}})})},[e]),(0,Os.useShortcut)("core/block-editor/transform-heading-to-paragraph",l=>i(l,0)),(0,Os.useShortcut)("core/block-editor/transform-paragraph-to-heading-1",l=>i(l,1)),(0,Os.useShortcut)("core/block-editor/transform-paragraph-to-heading-2",l=>i(l,2)),(0,Os.useShortcut)("core/block-editor/transform-paragraph-to-heading-3",l=>i(l,3)),(0,Os.useShortcut)("core/block-editor/transform-paragraph-to-heading-4",l=>i(l,4)),(0,Os.useShortcut)("core/block-editor/transform-paragraph-to-heading-5",l=>i(l,5)),(0,Os.useShortcut)("core/block-editor/transform-paragraph-to-heading-6",l=>i(l,6)),null}var bie=Kbe;var QE={};xM(QE,{BlockKeyboardShortcuts:bie});var m6=r(h()),Qbe=()=>{let e=[bN,GB,zB,SB,JB,uP,CI,b6,y6,x6,k6,SS,RS,HS,US,WS,KS,rT,nT,sT,fT,ZT,KT,oB,iB,IB,HB,tP,$B,KB,vP,bP,yP,QP,nN,mN,tN,GN,$N,SI,BI,LI,RI,AI,UD,$D,WD,iE,pE,EE,AE,HE,qE,GP,WP,ZP,HI,WI,UI,iI,vE,BS,HN,EN,RN,NN,xN,kN,CN,SN,PN,IN,VN,zN,AN,FN,uI,pI,dI,gI,lI,kI,TI,pT,gT,hT,bT,yT,xT,kT,IT,TT,PT,NT,CT,BN,sE,AB,mP,_E,wE,CE,IE,DE,yI,wN];return window?.__experimentalEnableBlockExperiments&&(e.push(zS),e.push(QD),e.push(uE)),window?.__experimentalEnableFormBlocks&&(e.push(uB),e.push(mB),e.push(dB),e.push(fB)),window?.__experimentalNavigationOverlays&&e.push(JP),window?.wp?.oldEditor&&(window?.wp?.needsClassicBlock||!window?.__experimentalDisableTinymce||new URLSearchParams(window?.location?.search).get("requiresTinymce"))&&e.push(XS),e.filter(Boolean)},kie=()=>Qbe().filter(({metadata:e})=>!die(e)),Ybe=(e=kie())=>{e.forEach(({init:t})=>t()),window.__unstableAutoRegisterBlocks&&window.__unstableAutoRegisterBlocks.forEach(t=>{let o=Q((0,yie.select)(ji.store)).getBootstrappedBlockType(t);(0,ji.registerBlockType)(t,{...o,title:o?.title||t,...(o?.apiVersion??0)<3&&{apiVersion:3},edit:function({attributes:n}){let i=(0,xie.useBlockProps)(),{content:l,status:s,error:c}=(0,_ie.useServerSideRender)({block:t,attributes:n});return s==="loading"?(0,m6.jsx)("div",{...i,children:(0,H2.__)("Loading\u2026")}):s==="error"?(0,m6.jsx)("div",{...i,children:(0,H2.sprintf)((0,H2.__)("Error loading block: %s"),c)}):(0,m6.jsx)("div",{...i,dangerouslySetInnerHTML:{__html:l||""}})},save:()=>null})}),(0,ji.setDefaultBlockName)(f4),window.wp&&window.wp.oldEditor&&e.some(({name:t})=>t===S0)&&(0,ji.setFreeformContentHandlerName)(S0),(0,ji.setUnregisteredTypeHandlerName)(c1),(0,ji.setGroupingBlockName)(W_)},Xbe=void 0;return Aie(Jbe);})(); 48 /*! Bundled license information: 49 50 fast-average-color/dist/index.esm.js: 51 (*! Fast Average Color | © 2022 Denis Seleznev | MIT License | https://github.com/fast-average-color/fast-average-color *) 52 */
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated : Tue Jan 6 08:20:02 2026 | Cross-referenced by PHPXref |