Files
aurorax/wp-includes/js/dist/block-library.min.js
T

53 lines
1.1 MiB
JavaScript
Raw Normal View History

2026-08-29 21:22:26 -05:00
/*! This file is auto-generated */
"use strict";var wp;(wp||={}).blockLibrary=(()=>{var Kpe=Object.create;var Bb=Object.defineProperty;var Qpe=Object.getOwnPropertyDescriptor;var Ype=Object.getOwnPropertyNames;var Xpe=Object.getPrototypeOf,Jpe=Object.prototype.hasOwnProperty;var ede=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var we=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Z=(e,t)=>{for(var r in t)Bb(e,r,{get:t[r],enumerable:!0})},ER=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Ype(t))!Jpe.call(e,n)&&n!==r&&Bb(e,n,{get:()=>t[n],enumerable:!(a=Qpe(t,n))||a.enumerable});return e};var o=(e,t,r)=>(r=e!=null?Kpe(Xpe(e)):{},ER(t||!e||!e.__esModule?Bb(r,"default",{value:e,enumerable:!0}):r,e)),tde=e=>ER(Bb({},"__esModule",{value:!0}),e);var W=we((LCe,DR)=>{DR.exports=window.wp.blocks});var pe=we((MCe,LR)=>{LR.exports=window.wp.compose});var V=we((ACe,MR)=>{MR.exports=window.wp.data});var T=we((RCe,AR)=>{AR.exports=window.wp.blockEditor});var Fu=we((zCe,RR)=>{RR.exports=window.wp.serverSideRender});var P=we((VCe,zR)=>{zR.exports=window.wp.i18n});var Z7=we(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.Doctype=rr.CDATA=rr.Tag=rr.Style=rr.Script=rr.Comment=rr.Directive=rr.Text=rr.Root=rr.isTag=rr.ElementType=void 0;var ri;(function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"})(ri=rr.ElementType||(rr.ElementType={}));function ode(e){return e.type===ri.Tag||e.type===ri.Script||e.type===ri.Style}rr.isTag=ode;rr.Root=ri.Root;rr.Text=ri.Text;rr.Directive=ri.Directive;rr.Comment=ri.Comment;rr.Script=ri.Script;rr.Style=ri.Style;rr.Tag=ri.Tag;rr.CDATA=ri.CDATA;rr.Doctype=ri.Doctype});var X7=we(Ue=>{"use strict";var Hu=Ue&&Ue.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(a[i]=n[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}})(),d0=Ue&&Ue.__assign||function(){return d0=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},d0.apply(this,arguments)};Object.defineProperty(Ue,"__esModule",{value:!0});Ue.cloneNode=Ue.hasChildren=Ue.isDocument=Ue.isDirective=Ue.isComment=Ue.isText=Ue.isCDATA=Ue.isTag=Ue.Element=Ue.Document=Ue.CDATA=Ue.NodeWithChildren=Ue.ProcessingInstruction=Ue.Comment=Ue.Text=Ue.DataNode=Ue.Node=void 0;var wn=Z7(),Q7=(function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),Y7(this,t)},e})();Ue.Node=Q7;var Ib=(function(e){Hu(t,e);function t(r){var a=e.call(this)||this;return a.data=r,a}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),t})(Q7);Ue.DataNode=Ib;var FR=(function(e){Hu(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=wn.ElementType.Text,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!
`,bz="/",yz="*",pp="",zde="comment",Vde="declaration";function Fde(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,a=1;function n(h){var g=h.match(Ide);g&&(r+=g.length);var b=h.lastIndexOf(Rde);a=~b?h.length-b:a+h.length}function i(){var h={line:r,column:a};return function(g){return g.position=new l(h),u(),g}}function l(h){this.start=h,this.end={line:r,column:a},this.source=t.source}l.prototype.content=e;function s(h){var g=new Error(t.source+":"+r+":"+a+": "+h);if(g.reason=h,g.filename=t.source,g.line=r,g.column=a,g.source=e,!t.silent)throw g}function c(h){var g=h.exec(e);if(g){var b=g[0];return n(b),e=e.slice(b.length),g}}function u(){c(Nde)}function m(h){var g;for(h=h||[];g=p();)g!==!1&&h.push(g);return h}function p(){var h=i();if(!(bz!=e.charAt(0)||yz!=e.charAt(1))){for(var g=2;pp!=e.charAt(g)&&(yz!=e.charAt(g)||bz!=e.charAt(g+1));)++g;if(g+=2,pp===e.charAt(g-1))return s("End of comment missing");var b=e.slice(2,g-2);return a+=2,n(b),e=e.slice(g),a+=2,h({type:zde,comment:b})}}function d(){var h=i(),g=c(Ede);if(g){if(p(),!c(Dde))return s("property missing ':'");var b=c(Lde),y=h({type:Vde,property:_z(g[0].replace(vz,pp)),value:b?_z(b[0].replace(vz,pp)):pp});return c(Mde),y}}function f(){var h=[];m(h);for(var g;g=d();)g!==!1&&(h.push(g),m(h));return h}return u(),f()}function _z(e){return e?e.replace(Ade,pp):pp}xz.exports=Fde});var wz=we(v0=>{"use strict";var Hde=v0&&v0.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(v0,"__esModule",{value:!0});v0.default=jde;var Ode=Hde(kz());function jde(e,t){let r=null;if(!e||typeof e!="string")return r;let a=(0,Ode.default)(e),n=typeof t=="function";return a.forEach(i=>{if(i.type!=="declaration")return;let{property:l,value:s}=i;n?t(l,s,i):s&&(r=r||{},r[l]=s)}),r}});var Sz=we(Rb=>{"use strict";Object.defineProperty(Rb,"__esModule",{value:!0});Rb.camelCase=void 0;var Ude=/^--[a-zA-Z0-9_-]+$/,Gde=/-([a-z])/g,Wde=/^[^-]+$/,$de=/^-(webkit|moz|ms|o|khtml)-/,qde=/^-(ms)-/,Zde=function(e){return!e||Wde.test(e)||Ude.test(e)},Kde=function(e,t){return t.toUpperCase()},Cz=function(e,t){return"".concat(t,"-")},Qde=function(e,t){return t===void 0&&(t={}),Zde(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(qde,Cz):e=e.replace($de,Cz),e.replace(Gde,Kde))};Rb.camelCase=Qde});var Pz=we((sS,Tz)=>{"use strict";var Yde=sS&&sS.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Xde=Yde(wz()),Jde=Sz();function lS(e,t){var r={};return!e||typeof e!="string"||(0,Xde.default)(e,function(a,n){a&&n&&(r[(0,Jde.camelCase)(a,t)]=n)}),r}lS.default=lS;Tz.exports=lS});var cS=we(Ga=>{"use strict";var efe=Ga&&Ga.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ga,"__esModule",{value:!0});Ga.returnFirstArg=Ga.canTextBeChildOfNode=Ga.ELEMENTS_WITH_NO_TEXT_CHILDREN=Ga.PRESERVE_CUSTOM_ATTRIBUTES=void 0;Ga.isCustomComponent=afe;Ga.setStyleProp=ife;var tfe=iS(),rfe=efe(Pz()),ofe=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function afe(e,t){return e.includes("-")?!ofe.has(e):!!(t&&typeof t.is=="string")}var nfe={reactCompat:!0};function ife(e,t){if(typeof e=="string"){if(!e.trim()){t.style={};return}try{t.style=(0,rfe.default)(e,nfe)}catch{t.style={}}}}Ga.PRESERVE_CUSTOM_ATTRIBUTES=Number(tfe.version.split(".")[0])>=16;Ga.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var lfe=function(e){return!Ga.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)};Ga.canTextBeChildOfNode=lfe;var sfe=function(e){return e};Ga.returnFirstArg=sfe});var mS=we(uS=>{"use strict";Object.defineProperty(uS,"__esModule",{value:!0});uS.default=pfe;var b0=hz(),Bz=cS(),cfe=["checked","value"],ufe=["input","select","textarea"],mfe={reset:!0,submit:!0};function pfe(e,t){e===void 0&&(e={});var r={},a=!!(e.type&&mfe[e.type]);for(var n in e){var i=e[n];if((0,b0.isCustomAttribute)(n)){r[n]=i;continue}var l=n.toLowerCase(),s=Iz(l);if(s){var c=(0,b0.
// to describe units of markup that
// when composed together, form the
// content or layout of a page.
registerBlockType( name, settings );`)}},merge(e,t){return{content:e.content+`
`+t.content}},transforms:HH,edit:RH,save:FH};window.__experimentalContentOnlyInspectorFields&&(dk[Ghe]=[{id:"content",label:(0,wI.__)("Code"),type:"text",Edit:"rich-text"}],dk[Whe]={fields:["content"]});var $he=()=>E({name:jH,metadata:uk,settings:dk});var TI={};Z(TI,{init:()=>Yhe,metadata:()=>hk,name:()=>ZH,settings:()=>KH});var UH=o(T(),1),SI=o(v(),1),qhe=[{attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},isEligible({width:e}){return isFinite(e)},migrate(e){return{...e,width:`${e.width}%`}},save({attributes:e}){let{verticalAlignment:t,width:r}=e,a=w({[`is-vertically-aligned-${t}`]:t}),n={flexBasis:r+"%"};return(0,SI.jsx)("div",{className:a,style:n,children:(0,SI.jsx)(UH.InnerBlocks.Content,{})})}}],GH=qhe;var Ko=o(T(),1),tm=o(M(),1),fk=o(V(),1),Ap=o(P(),1);var ci=o(v(),1);function Zhe({width:e,setAttributes:t}){let[r]=(0,Ko.useSettings)("spacing.units"),a=(0,tm.__experimentalUseCustomUnits)({availableUnits:r||["%","px","em","rem","vw"]}),n=q();return(0,ci.jsx)(tm.__experimentalToolsPanel,{label:(0,Ap.__)("Settings"),resetAll:()=>{t({width:void 0})},dropdownMenuProps:n,children:(0,ci.jsx)(tm.__experimentalToolsPanelItem,{hasValue:()=>e!==void 0,label:(0,Ap.__)("Width"),onDeselect:()=>t({width:void 0}),isShownByDefault:!0,children:(0,ci.jsx)(tm.__experimentalUnitControl,{label:(0,Ap.__)("Width"),__unstableInputWidth:"calc(50% - 8px)",__next40pxDefaultSize:!0,value:e||"",onChange:i=>{i=0>parseFloat(i)?"0":i,t({width:i})},units:a})})})}function Khe({attributes:{verticalAlignment:e,width:t,templateLock:r,allowedBlocks:a},setAttributes:n,clientId:i}){let l=w("block-core-columns",{[`is-vertically-aligned-${e}`]:e}),{columnsIds:s,hasChildBlocks:c,rootClientId:u}=(0,fk.useSelect)(k=>{let{getBlockOrder:_,getBlockRootClientId:x}=k(Ko.store),S=x(i);return{hasChildBlocks:_(i).length>0,rootClientId:S,columnsIds:_(S)}},[i]),{updateBlockAttributes:m}=(0,fk.useDispatch)(Ko.store),p=k=>{n({verticalAlignment:k}),m(u,{verticalAlignment:null})},d=Number.isFinite(t)?t+"%":t,f=(0,Ko.useBlockProps)({className:l,style:d?{flexBasis:d}:void 0}),h=s.length,g=s.indexOf(i)+1,b=(0,Ap.sprintf)((0,Ap.__)("%1$s (%2$d of %3$d)"),f["aria-label"],g,h),y=(0,Ko.useInnerBlocksProps)({...f,"aria-label":b},{templateLock:r,allowedBlocks:a,renderAppender:c?void 0:Ko.InnerBlocks.ButtonBlockAppender});return(0,ci.jsxs)(ci.Fragment,{children:[(0,ci.jsx)(Ko.BlockControls,{children:(0,ci.jsx)(Ko.BlockVerticalAlignmentToolbar,{onChange:p,value:e,controls:["top","center","bottom","stretch"]})}),(0,ci.jsx)(Ko.InspectorControls,{children:(0,ci.jsx)(Zhe,{width:t,setAttributes:n})}),(0,ci.jsx)("div",{...y})]})}var WH=Khe;var hk={$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 gk=o(T(),1),$H=o(v(),1);function qH({attributes:e}){let{verticalAlignment:t,width:r}=e,a=w({[`is-vertically-aligned-${t}`]:t}),n;if(r&&/\d/.test(r)){let s=Number.isFinite(r)?r+"%":r;!Number.isFinite(r)&&r?.endsWith("%")&&(s=Math.round(Number.parseFloat(r)*1e12)/1e12+"%"),n={flexBasis:s}}let i=gk.useBlockProps.save({className:a,style:n}),l=gk.useInn
Details: https://developer.mozilla.org/en/docs/Web/HTML/CORS_enabled_image`),r.silent,c)}return this.prepareResult(l)},e.prototype.getColorFromArray4=function(t,r){r=r||{};var a=4,n=t.length,i=DU(r);if(n<a)return i;var l=n-n%a,s=(r.step||1)*a,c;switch(r.algorithm||"sqrt"){case"simple":c=Y0e;break;case"sqrt":c=X0e;break;case"dominant":c=Q0e;break;default:throw Y1("".concat(r.algorithm," is unknown algorithm"))}return c(t,l,{defaultColor:i,ignoredColor:G0e(r.ignoredColor),step:s})},e.prototype.prepareResult=function(t){var r=t.slice(0,3),a=[t[0],t[1],t[2],t[3]/255],n=U0e(t);return{value:[t[0],t[1],t[2],t[3]],rgb:"rgb("+r.join(",")+")",rgba:"rgba("+a.join(",")+")",hex:EU(r),hexa:EU(t),isDark:n,isLight:!n}},e.prototype.destroy=function(){this.canvas&&(this.canvas.width=1,this.canvas.height=1,this.canvas=null),this.ctx=null},e.prototype.bindImageEvents=function(t,r){var a=this;return new Promise(function(n,i){var l=function(){u();var m=a.getColor(t,r);m.error?i(m.error):n(m)},s=function(){u(),i(Y1('Error loading image "'.concat(t.src,'".')))},c=function(){u(),i(Y1('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 FU=o(Yc(),1);IU([NU]);var th="#FFF",HU="#000";function s1e(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 s5(){return s5.fastAverageColor||(s5.fastAverageColor=new zU),s5.fastAverageColor}var rh=Af(async e=>{if(!e)return th;let{r:t,g:r,b:a,a:n}=Ja(th).toRgb();try{let i=(0,FU.applyFilters)("media.crossOrigin",void 0,e);return(await s5().getColorAsync(e,{defaultColor:[t,r,a,n*255],silent:!0,crossOrigin:i})).hex}catch{return th}});function Qp(e,t,r){if(t===r||e===100)return Ja(t).isDark();let a=Ja(t).alpha(e/100).toRgb(),n=Ja(r).toRgb(),i=s1e(a,n);return Ja(i).isDark()}var Ut=o(v(),1);function c1e(e){return[["core/paragraph",{style:{typography:{textAlign:"center"}},placeholder:(0,pN.__)("Write title\u2026"),...e}]]}var u1e=(e,t)=>!e&&(0,OU.isBlobURL)(t);function m1e({attributes:e,clientId:t,isSelected:r,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:h,focalPoint:g,hasParallax:b,isDark:y,isRepeated:k,minHeight:_,minHeightUnit:x,alt:S,allowedBlocks:C,templateLock:I,tagName:B="div",isUserOverlayColor:D,sizeSlug:A,poster:H}=e,[z]=(0,J1.useEntityProp)("postType",c,"featured_media",s),{getSettings:F}=(0,um.useSelect)(Bo.store),{__unstableMarkNextChangeAsNotPersistent:N}=(0,um.useDispatch)(Bo.store),R=(0,jl.useRef)({attributes:e,overlayColor:a});(0,jl.useLayoutEffect)(()=>{R.current={attributes:e,overlayColor:a}});let{media:$}=(0,um.useSelect)(Pe=>({media:z&&f?Pe(J1.store).getEntityRecord("postType","attachment",z,{context:"view"}):void 0}),[z,f]),j=$?.media_details?.sizes?.[A]?.source_url??$?.source_url;(0,jl.useEffect)(()=>{(async()=>{if(!f)return;let Pe=await rh(j),{attributes:Ht,overlayColor:qr}=R.current,Co=qr.color;Ht.isUserOverlayColor||(Co=Pe,N(),i(Co));let So=Qp(Ht.dimRatio,Co,Pe);N(),n({isDark:So,isUserOverlayColor:Ht.isUserOverlayColor||!1})})()},[j,N,n,i,f]);let G=f?j:p?.replaceAll("&amp;","&"),O=f?Qt:d,{createErrorNotice:ee}=(0,um.useDispatch)(jU.store),{gradientClass:J,gradientValue:re}=(0,Bo.__experimentalUseGradient)(),X=async Pe=>{let Ht=Xj(Pe),qr=[Pe?.type,Pe?.media_type].includes(Qt),Co=await rh(qr?Pe?.url:void 0),{attributes:So,overlayColor:Sl}=R.current,qi=Sl.color;So.isUserOverlayColor||(qi=Co,i(qi),N());let Zi=So.url===void 0&&So.dimRatio===100?50:So.dimRatio,vf=Qp(Zi,qi,Co);if(O===Qt&&Ht?.id){let{imageDefaultSize:zc}=F();A&&(Pe?.sizes?.[A]||Pe?.media_details?.sizes?.[A])?(Ht.sizeSlug=A,Ht.url=Pe?.sizes?.[A]?.url||Pe?.media_details?.sizes?.[A]?.source_url):Pe?.sizes?.[zc]||Pe?.media_details?.sizes?.[zc]?(Ht.sizeSlug=zc,Ht.url=Pe?.sizes?.[zc]?.url||Pe?.media_details?.sizes?.[zc]?.source_url):Ht.sizeS
${t}
`}),!td.RichText.isEmpty(r)&&(0,ev.jsx)(td.RichText.Content,{className:(0,td.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:r})]})}var kN=o(W(),1);var{name:E1e}=Ds,D1e={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,kN.createBlock)(E1e,{url:e.textContent.trim()})}],to:[{type:"block",blocks:["core/paragraph"],isMatch:({url:e})=>!!e,transform:({url:e,caption:t,className:r})=>{let a=`<a href="${e}">${e}</a>`;return t?.trim()&&(a+=`<br />${t}`),(0,kN.createBlock)("core/paragraph",{content:a,className:Qu(r)})}}]},MG=D1e;var me=o(P(),1);function dt(e){return(0,me.sprintf)((0,me.__)("%s Embed"),e)}var AG=[{name:"twitter",title:dt("X"),icon:aG,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:dt("YouTube"),icon:nG,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:dt("Facebook"),icon:iG,keywords:[(0,me.__)("social")],description:(0,me.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:dt("Instagram"),icon:lG,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:dt("WordPress"),icon:sG,keywords:[(0,me.__)("post"),(0,me.__)("blog")],description:(0,me.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:dt("SoundCloud"),icon:v5,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:dt("Spotify"),icon:cG,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:dt("Flickr"),icon:uG,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:dt("Vimeo"),icon:mG,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:dt("Animoto"),icon:hG,description:(0,me.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:dt("Cloudup"),icon:Gl,description:(0,me.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:dt("CollegeHumor"),icon:nh,description:(0,me.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:dt("Crowdsignal"),icon:Gl,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:dt("Dailymotion"),icon:gG,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:dt("Imgur"),icon:vN
${t}
`}),!rd.RichText.isEmpty(r)&&(0,od.jsx)(rd.RichText.Content,{tagName:"figcaption",value:r})]})}},M1e={attributes:zG,save({attributes:{url:e,caption:t,type:r,providerNameSlug:a}}){if(!e)return null;let n=w("wp-block-embed",{[`is-type-${r}`]:r,[`is-provider-${a}`]:a});return(0,od.jsxs)("figure",{className:n,children:[`
${e}
`,!rd.RichText.isEmpty(t)&&(0,od.jsx)(rd.RichText.Content,{tagName:"figcaption",value:t})]})}},A1e=[L1e,M1e],VG=A1e;var{name:FG}=Ds,HG={icon:Gl,edit:DG,save:LG,transforms:MG,variations:RG,deprecated:VG},R1e=()=>E({name:FG,metadata:Ds,settings:HG});var PN={};Z(PN,{init:()=>q1e,metadata:()=>w5,name:()=>eW,settings:()=>T5});var uh=o(P(),1);var JG=o(W(),1);var fo=o(T(),1),Wl=o(P(),1),Gt=o(v(),1),z1e={attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){let{href:t,fileId:r,fileName:a,textLinkHref:n,textLinkTarget:i,showDownloadButton:l,downloadButtonText:s,displayPreview:c,previewHeight:u}=e,m=fo.RichText.isEmpty(a)?(0,Wl.__)("PDF embed"):(0,Wl.sprintf)((0,Wl.__)("Embed of %s."),a),p=!fo.RichText.isEmpty(a),d=p?r:void 0;return t&&(0,Gt.jsxs)("div",{...fo.useBlockProps.save(),children:[c&&(0,Gt.jsx)(Gt.Fragment,{children:(0,Gt.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${u}px`},"aria-label":m})}),p&&(0,Gt.jsx)("a",{id:d,href:n,target:i,rel:i?"noreferrer noopener":void 0,children:(0,Gt.jsx)(fo.RichText.Content,{value:a})}),l&&(0,Gt.jsx)("a",{href:t,className:w("wp-block-file__button",(0,fo.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":d,children:(0,Gt.jsx)(fo.RichText.Content,{value:s})})]})}},V1e={attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){let{href:t,fileId:r,fileName:a,textLinkHref:n,textLinkTarget:i,showDownloadButton:l,downloadButtonText:s,displayPreview:c,previewHeight:u}=e,m=fo.RichText.isEmpty(a)?(0,Wl.__)("PDF embed"):(0,Wl.sprintf)((0,Wl.__)("Embed of %s."),a),p=!fo.RichText.isEmpty(a),d=p?r:void 0;return t&&(0,Gt.jsxs)("div",{...fo.useBlockProps.save(),children:[c&&(0,Gt.jsx)(Gt.Fragment,{children:(0,Gt.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${u}px`},"aria-label":m})}),p&&(0,Gt.jsx)("a",{id:d,href:n,target:i,rel:i?"noreferrer noopener":void 0,children:(0,Gt.jsx)(fo.RichText.Content,{value:a})}),l&&(0,Gt.jsx)("a",{href:t,className:"wp-block-file__button",download:!0,"aria-describedby":d,children:(0,Gt.jsx)(fo.RichText.Content,{value:s})})]})}},F1e={attributes:{id:{type:"number"},href:{type:"string"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){let{href:t,fileName:r,textLinkHref:a,textLinkTarget:n,showDownloadButton:i,downloadButtonText:l,displayPreview:s,previewHeight:c}=e,u=fo.RichText.isEmpty(r)?(0,Wl.__)("PDF embed"):(0,Wl.sprintf)((0,Wl._
--wp--style--unstable-gallery-gap: ${n==="0"?"0px":n};
gap: ${a}
}`;return(0,id.useStyleOverride)({css:l}),null}var Oe=o(v(),1),c$=8,u$=[{icon:L0,label:(0,fe.__)("Link images to attachment pages"),value:$s,noticeText:(0,fe.__)("Attachment Pages")},{icon:Wu,label:(0,fe.__)("Link images to media files"),value:Ws,noticeText:(0,fe.__)("Media Files")},{icon:kp,label:(0,fe.__)("Enlarge on click"),value:ov,noticeText:(0,fe.__)("Lightbox effect"),infoText:(0,fe.__)("Scale images with a lightbox effect")},{icon:U0,label:(0,fe._x)("None","Media item link option"),value:Gs,noticeText:(0,fe.__)("None")}],Eve=[{label:(0,fe.__)("Icon"),value:"icon"},{label:(0,fe.__)("Text"),value:"text"},{label:(0,fe.__)("Both"),value:"both"}],WN=["image"],Dve=ea.Platform.isNative?(0,fe.__)("Add media"):(0,fe.__)("Drag and drop images, upload, or choose from your library."),Lve=ea.Platform.isNative?{type:"stepper"}:{},Mve={name:"core/image"},Ave=[];function f$(e){let{setAttributes:t,attributes:r,className:a,clientId:n,isSelected:i,insertBlocksAfter:l,isContentLocked:s,onFocus:c}=e,[u,m,p,d]=(0,Do.useSettings)("blocks.core/image.lightbox","dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),f=u?.allowEditing?u$:u$.filter(Y=>Y.value!==ov),{navigationButtonType:h,columns:g,imageCrop:b,randomOrder:y,linkTarget:k,linkTo:_,sizeSlug:x,aspectRatio:S}=r,{__unstableMarkNextChangeAsNotPersistent:C,replaceInnerBlocks:I,updateBlockAttributes:B,selectBlock:D}=(0,sv.useDispatch)(Do.store),{createSuccessNotice:A,createErrorNotice:H}=(0,sv.useDispatch)(d$.store),{getBlock:z,getSettings:F,innerBlockImages:N,blockWasJustInserted:R,multiGallerySelection:$}=(0,sv.useSelect)(Y=>{let{getBlockName:Re,getMultiSelectedBlockClientIds:Me,getSettings:et,getBlock:Te,wasBlockJustInserted:Bt}=Y(Do.store),br=Me();return{getBlock:Te,getSettings:et,innerBlockImages:Te(n)?.innerBlocks??Ave,blockWasJustInserted:Bt(n,"inserter_menu"),multiGallerySelection:br.length&&br.every(xn=>Re(xn)==="core/gallery")}},[n]),j=(0,ea.useMemo)(()=>N?.map(Y=>({clientId:Y.clientId,id:Y.attributes.id,url:Y.attributes.url,attributes:Y.attributes,fromSavedContent:!!Y.originalContent})),[N]),G=l$(N),O=o$(j,G),ee=u?.enabled?j.filter(Y=>Y.attributes?.lightbox?.enabled===void 0||Y.attributes?.lightbox?.enabled===!0).length>0:j.filter(Y=>Y.attributes.lightbox?.enabled).length>0,J=p?.map(({name:Y,ratio:Re})=>({label:Y,value:Re})),re=m?.map(({name:Y,ratio:Re})=>({label:Y,value:Re})),X=[{label:(0,fe._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...d?re||[]:[],...J||[]];(0,ea.useEffect)(()=>{O?.forEach(Y=>{C(),B(Y.clientId,{...ne(Y.attributes),id:Y.id,align:void 0})})},[O]);let te=r$(G,i,F);function ne(Y){let Re=Y.id?G.find(({id:Te})=>Te===Y.id):null,Me;Y.className&&Y.className!==""&&(Me=Y.className);let et;return Y.linkTarget||Y.rel?et={linkTarget:Y.linkTarget,rel:Y.rel}:et=jN(k,r),{...KW(Re,x),...ON(Re,_,Y?.linkDestination),...et,className:Me,sizeSlug:x,caption:Y.caption.length>0?Y.caption:Re.caption?.raw,alt:Y.alt||Re.alt_text,aspectRatio:S==="auto"?void 0:S}}function le(Y){let Re=ea.Platform.isNative&&Y.id?G.find(({id:et})=>et===Y.id):null,Me=Re?Re?.media_type:Y.type;return WN.some(et=>Me?.indexOf(et)===0)||Y.blob}function de(Y){let Re=Object.prototype.toString.call(Y)==="[object FileList]",Me=Re?Array.from(Y).map(tt=>tt.url?tt:{blob:(0,$N.createBlobURL)(tt)}):Y;Me.every(le)||H((0,fe.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});let et=Me.filter(tt=>tt.url||le(tt)).map(tt=>tt.url?tt:{blob:tt.blob||(0,$N.createBlobURL)(tt)}),Te=et.reduce((tt,$r,ip)=>(tt[$r.id]=ip,tt),{}),Bt=Re?N:N.filter(tt=>et.find($r=>$r.id===tt.attributes.id)),xn=et.filter(tt=>!Bt.find($r=>tt.id===$r.attributes.id)).map(tt=>(0,p$.createBlock)("core/image",{id:tt.id,blob:tt.blob,url:tt.url,caption:tt.caption,alt:tt.alt}));I(n,Bt.concat(xn).sort((tt,$r)=>Te[tt.attributes.id]-Te[$r.attributes.id])),xn?.length>0&&D(xn[0].clientId)}function Se(Y){H(Y,{type:"snackbar"})}function Ie(Y){t({linkTo:Y});let Re={},Me=[];z(n).innerBlocks.forEach(Te=>{Me.push(Te.clientId);le
html,body,:root {
margin: 0 !important;
padding: 0 !important;
overflow: visible !important;
min-height: auto !important;
}
`;function s4({content:e,isSelected:t}){let r=(0,tq.useSelect)(n=>n(l4.store).getSettings().styles,[]),a=(0,J$.useMemo)(()=>[b2e,...(0,l4.transformStyles)((r??[]).filter(n=>n.css))],[r]);return(0,sd.jsxs)(sd.Fragment,{children:[(0,sd.jsx)(eq.SandBox,{html:e,styles:a,title:(0,rq.__)("Custom HTML Preview"),tabIndex:-1}),!t&&(0,sd.jsx)("div",{className:"block-library-html__preview-overlay"})]})}var xi=o(P(),1),pv=o(U(),1),aq=o(V(),1),ta=o(M(),1),bh=o(T(),1);var nq=o(pe(),1);function oq(e=""){if(!e||!e.trim())return{html:"",css:"",js:""};let t=document.implementation.createHTMLDocument("");t.body.innerHTML=e;let r=t.body.querySelector('style[data-wp-block-html="css"]'),a=r?r.textContent.trim():"";r&&r.remove();let n=t.body.querySelector('script[data-wp-block-html="js"]'),i=n?n.textContent.trim():"";return n&&n.remove(),{html:t.body.innerHTML.trim(),css:a,js:i}}function iE({html:e="",css:t="",js:r=""}){let a=[];return t.trim()&&a.push(`<style data-wp-block-html="css">
${t}
</style>`),r.trim()&&a.push(`<script data-wp-block-html="js">
${r}
<\/script>`),e.trim()&&a.push(e),a.join(`
`)}var Ct=o(v(),1),{Tabs:gm}=K(ta.privateApis);function lE({isOpen:e,onRequestClose:t,content:r,setAttributes:a}){let{html:n,css:i,js:l}=oq(r),[s,c]=(0,pv.useState)(n),[u,m]=(0,pv.useState)(i),[p,d]=(0,pv.useState)(l),[f,h]=(0,pv.useState)(!1),g=(0,nq.useViewportMatch)("small","<"),{canUserUseUnfilteredHTML:b}=(0,aq.useSelect)(S=>({canUserUseUnfilteredHTML:S(bh.store).getSettings().__experimentalCanUserUseUnfilteredHTML}),[]),y=!b&&(i.trim()||l.trim());if(!e)return null;let k=()=>{a({content:iE({html:s,css:b?u:"",js:b?p:""})})},_=()=>{k(),t()},x=()=>{h(S=>!S)};return(0,Ct.jsx)(Ct.Fragment,{children:(0,Ct.jsx)(ta.Modal,{title:(0,xi.__)("Edit HTML"),onRequestClose:t,className:"block-library-html__modal",size:"large",isDismissible:!1,shouldCloseOnClickOutside:!1,isFullScreen:f,__experimentalHideHeader:!0,children:(0,Ct.jsx)(gm,{orientation:"horizontal",defaultTabId:"html",children:(0,Ct.jsxs)(ta.__experimentalVStack,{expanded:!0,children:[(0,Ct.jsxs)(ta.__experimentalHStack,{justify:"space-between",className:"block-library-html__modal-header",children:[(0,Ct.jsx)("div",{children:(0,Ct.jsxs)(gm.TabList,{children:[(0,Ct.jsx)(gm.Tab,{tabId:"html",children:"HTML"}),b&&(0,Ct.jsx)(gm.Tab,{tabId:"css",children:"CSS"}),b&&(0,Ct.jsx)(gm.Tab,{tabId:"js",children:(0,xi.__)("JavaScript")})]})}),!g&&(0,Ct.jsx)("div",{children:(0,Ct.jsx)(ta.Button,{__next40pxDefaultSize:!0,icon:f?tB:kp,label:(0,xi.__)("Enable/disable fullscreen"),onClick:x,variant:"tertiary"})})]}),y&&(0,Ct.jsx)(ta.Notice,{status:"warning",isDismissible:!1,className:"block-library-html__modal-notice",children:(0,xi.__)("This block contains CSS or JavaScript that will be removed when you save because you do not have permission to use unfiltered HTML.")}),(0,Ct.jsxs)(ta.Flex,{direction:g?"column":"row",className:"block-library-html__modal-tabs",align:"stretch",gap:8,children:[(0,Ct.jsxs)("div",{className:"block-library-html__modal-content",children:[(0,Ct.jsx)(gm.TabPanel,{tabId:"html",focusable:!1,className:"block-library-html__modal-tab",children:(0,Ct.jsx)(bh.PlainText,{value:s,onChange:c,placeholder:(0,xi.__)("Write HTML\u2026"),"aria-label":(0,xi.__)("HTML"),className:"block-library-html__modal-editor",async:!0})}),b&&(0,Ct.jsx)(gm.TabPanel,{tabId:"css",focusable:!1,className:"block-library-html__modal-tab",children:(0,Ct.jsx)(bh.PlainText,{value:u,onChange:m,placeholder:(0,xi.__)("Write CSS\u2026"),"aria-label":(0,xi.__)("CSS"),className:"block-library-html__modal-editor",async:!0})}),b&&(0,Ct.jsx)(gm.TabPanel,{tabId:"js",focusable:!1,className:"block-library-html__modal-tab",children:(0,Ct.jsx)(bh.PlainText,{value:p,onChange:d,placeholder:(0,xi.__)("Write JavaScript\u2026"),"aria-label":(0,xi.__)("JavaScript"),className:"block-library-html__modal-editor",async:!0})})]}),(0,Ct.jsx)("div",{className:"block-library-html__preview",children:(0,Ct.jsx)(s4,{content:iE({html:s,css:u,js:p})})})]}),(0,Ct.jsxs)(ta.__experimentalHStack,{alignment:"center",justify:"flex-end",spacing:4,className:"block-library-html__modal-footer",children:[(0,Ct.jsx)(ta.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,children:(0,xi.__)("Cancel")}),(0,Ct.jsx)(ta.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:_,children:(0,xi.__)("Update")})]})]})})})})}var Ta=o(v(),1);function lq({attributes:e,setAttributes:t,isSelected:r}){let[a,n]=(0,iq.useState)(!1),i=(0,vm.useBlockProps)({className:"block-library-html__edit"});return e.content?.trim()?(0,Ta.jsxs)("div",{...i,children:[(0,Ta.jsx)(vm.BlockControls,{children:(0,Ta.jsx)(Jl.ToolbarGroup,{children:(0,Ta.jsx)(Jl.ToolbarButton,{onClick:()=>n(!0),children:(0,yh.__)("Edit code")})})}),(0,Ta.jsx)(vm.InspectorControls,{children:(0,Ta.jsx)(Jl.__experimentalVStack,{className:"block-editor-block-inspector-edit-contents",expanded:!0,children:(0,Ta.jsx)(Jl.Button,{className:"block-editor-block-inspector-edit-contents__button",__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>n(!0),children:(0,yh.__)("Edit code")})})}),(0,Ta.jsx)(s4,{content:e.content,isSelected:r}),(0,Ta.jsx)(lE,{isOpen:a,onRequestClose:()=>n(!1),content:e.con
`)&&(gt.caption=gt.caption.replace(/\n/g,"<br>")),F.current&&!gt.caption){let{caption:ut,...wo}=gt;gt=wo}let Rr;(!he.id||he.id!==p)&&(Rr={sizeSlug:Ke});let vt=e.linkDestination;if(!vt)switch(window?.wp?.media?.view?.settings?.defaultProps?.link||nd){case"file":case dh:vt=dh;break;case"post":case fh:vt=fh;break;case FN:vt=FN;break;case nd:vt=nd;break}let Tr;switch(vt){case dh:Tr=he.url;break;case fh:Tr=he.link;break}gt.href=Tr,t({blob:void 0,...gt,...Rr,linkDestination:vt}),x()}function ne(he){let Je=(0,v4.getProtocol)(he)?he:(0,v4.prependHTTPS)(he);Je!==u&&(t({blob:void 0,url:Je,id:void 0,sizeSlug:$().imageDefaultSize}),x())}Ns({url:_,allowedTypes:tu,onChange:te,onError:re});let de=g4(p,u)?u:void 0,Se=(0,ud.useSelect)(he=>!window.__clientSideMediaProcessing||!p?!1:he(qq.store).isUploadingById(p),[p]),Ie=!!u&&(0,es.jsx)("img",{alt:(0,Xs.__)("Edit image"),title:(0,Xs.__)("Edit image"),className:"edit-image-preview",src:u}),ae=(0,on.__experimentalUseBorderProps)(e),Ne=(0,on.__experimentalGetShadowClassesAndStyles)(e),Le=w(a,{"is-transient":!!_||Se,"is-resized":!!d||!!f,[`size-${h}`]:h,"has-custom-border":!!ae.className||ae.style&&Object.keys(ae.style).length>0}),ie=(0,on.useBlockProps)({ref:S,className:Le}),{lockUrlControls:Fe=!1,lockUrlControlsMessage:ce}=(0,ud.useSelect)(he=>{if(!r)return{};let Je=(0,fv.getBlockBindingsSource)(k?.bindings?.url?.source);return{lockUrlControls:!!k?.bindings?.url&&!Je?.canUserEditValue?.({select:he,context:l,args:k?.bindings?.url?.args}),lockUrlControlsMessage:Je?.label?(0,Xs.sprintf)((0,Xs.__)("Connected to %s"),Je.label):(0,Xs.__)("Connected to dynamic data")}},[l,r,k?.bindings?.url]);return(0,es.jsxs)(es.Fragment,{children:[(0,es.jsxs)("figure",{...ie,children:[(0,es.jsx)(Vq,{temporaryURL:_,isSideloading:Se,attributes:e,setAttributes:t,isSingleSelected:r,insertBlocksAfter:n,onReplace:i,onSelectImage:te,onSelectURL:ne,onUploadError:re,context:l,clientId:s,blockEditingMode:ee,parentLayoutType:C,maxContentWidth:D}),(0,es.jsx)(on.MediaPlaceholder,{icon:(0,es.jsx)(on.BlockIcon,{icon:Wu}),onSelect:te,onSelectURL:ne,onError:re,placeholder:he=>(0,es.jsxs)(Gq.Placeholder,{className:w("block-editor-media-placeholder",{[ae.className]:!!ae.className&&!r}),icon:!z&&(Fe?XT:Wu),withIllustration:!r||z,label:!z&&(0,Xs.__)("Image"),instructions:!Fe&&!z&&(0,Xs.__)("Drag and drop an image, upload, or choose from your library."),style:{aspectRatio:!(d&&f)&&g?g:void 0,width:f&&g?"100%":d,height:d&&g?"100%":f,objectFit:b,...ae.style,...Ne.style},children:[Fe&&!z&&ce,!Fe&&!z&&he,A]}),allowedTypes:tu,handleUpload:he=>he.length===1,value:{id:p,src:de},mediaPreview:Ie,disableMediaButtons:_||u})]}),r&&I&&B]})}var Zq=O2e;var b4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/image",title:"Image",category:"media",usesContext:["allowResize","imageCrop","fixedHeight","navigationButtonType","postId","postType","queryId","galleryId"],description:"Insert an image to make a visual statement.",keywords:["img","photo","picture"],textdomain:"default",attributes:{blob:{type:"string",role:"local"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",role:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",role:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",role:"content"},lightbox:{type:"object",enabled:{type:"boolean"}},title:{type:"string",source:"attribute",selector:"img",attribute:"title",role:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",role:"content"},width:{type:"string"},height:{type:"string"},aspectRatio:{type:"string"},scale:{type:"string"},focalPoint:{type:"object"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{interactivity:!0,align:["left","center","right","wide
`).map(a=>(0,iu.createBlock)("core/list-item",{content:(0,Bh.toHTMLString)({value:a})}))}return(0,iu.createBlock)("core/list",{anchor:e.anchor},t)}},{type:"raw",selector:"ol,ul",schema:e=>({ol:BZ(e).ol,ul:BZ(e).ul}),transform:kE},...["*","-"].map(e=>({type:"prefix",prefix:e,transform(t){return(0,iu.createBlock)("core/list",{},[(0,iu.createBlock)("core/list-item",{content:t})])}})),...["1.","1)"].map(e=>({type:"prefix",prefix:e,transform(t){return(0,iu.createBlock)("core/list",{ordered:!0},[(0,iu.createBlock)("core/list-item",{content:t})])}}))],to:[...["core/paragraph","core/heading"].map(e=>({type:"block",blocks:[e],transform:(t,r)=>CE(r).map(a=>(0,iu.createBlock)(e,{content:a}))}))]},IZ=xbe;var{name:NZ}=P4,EZ={icon:Nl,example:{innerBlocks:[{name:"core/list-item",attributes:{content:(0,Ih.__)("Alice.")}},{name:"core/list-item",attributes:{content:(0,Ih.__)("The White Rabbit.")}},{name:"core/list-item",attributes:{content:(0,Ih.__)("The Cheshire Cat.")}},{name:"core/list-item",attributes:{content:(0,Ih.__)("The Mad Hatter.")}},{name:"core/list-item",attributes:{content:(0,Ih.__)("The Queen of Hearts.")}}]},transforms:IZ,edit:TZ,save:PZ,deprecated:hZ},kbe=()=>E({name:NZ,metadata:P4,settings:EZ});var PE={};Z(PE,{init:()=>Tbe,metadata:()=>N4,name:()=>OZ,settings:()=>jZ});var _m=o(P(),1),I4=o(T(),1),km=o(M(),1),xm=o(U(),1),LZ=o(V(),1),MZ=o(bv(),1);var Ci=o(v(),1),{Badge:wbe}=K(km.privateApis);function AZ({attributes:e,setAttributes:t,isSelected:r}){let{latex:a,mathML:n}=e,[i,l]=(0,xm.useState)(),[s,c]=(0,xm.useState)(null),[u,m]=(0,xm.useState)(),p=(0,xm.useRef)(a),{__unstableMarkNextChangeAsNotPersistent:d}=(0,LZ.useDispatch)(I4.store);(0,xm.useEffect)(()=>{import("@wordpress/latex-to-mathml").then(h=>{m(()=>h.default),p.current&&(d(),t({mathML:h.default(p.current,{displayMode:!0})}))})},[p,t,d]);let f=(0,I4.useBlockProps)({ref:l,position:"relative"});return(0,Ci.jsxs)("div",{...f,children:[n?(0,Ci.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:n}}):"\u200B",r&&(0,Ci.jsx)(km.Popover,{placement:"bottom-start",offset:8,anchor:i,focusOnMount:!1,__unstableSlotName:"__unstable-block-tools-after",children:(0,Ci.jsx)("div",{style:{padding:"4px",minWidth:"300px"},children:(0,Ci.jsxs)(km.__experimentalVStack,{spacing:1,children:[(0,Ci.jsx)(km.TextareaControl,{__next40pxDefaultSize:!0,label:(0,_m.__)("LaTeX math syntax"),hideLabelFromVision:!0,value:a,className:"wp-block-math__textarea-control",onChange:h=>{if(!u){t({latex:h});return}let g="";try{g=u(h,{displayMode:!0}),c(null)}catch(b){c(b.message),(0,MZ.speak)((0,_m.sprintf)((0,_m.__)("Error parsing mathematical expression: %s"),b.message))}t({mathML:g,latex:h})},placeholder:(0,_m.__)("e.g., x^2, \\frac{a}{b}")}),s&&(0,Ci.jsxs)(Ci.Fragment,{children:[(0,Ci.jsx)(wbe,{intent:"error",className:"wp-block-math__error",children:(0,_m.sprintf)((0,_m.__)("Error: %s"),s)}),(0,Ci.jsx)("style",{children:".wp-block-math__error .components-badge__content{white-space:normal}"})]})]})})})]})}var N4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/math",title:"Math",category:"text",description:"Display mathematical notation using LaTeX.",keywords:["equation","formula","latex","mathematics"],textdomain:"default",supports:{anchor:!0,html:!1,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,__experimentalDefaultControls:{fontSize:!0}}},attributes:{latex:{type:"string",role:"content"},mathML:{type:"string",source:"html",selector:"math"}}};var RZ=o(T(),1),TE=o(v(),1);function zZ({attributes:e}){let{latex:t,mathML:r}=e;return t?(0,TE.jsx)("div",{...RZ.useBlockProps.save(),children:(0,TE.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:r}})}):null}var VZ=o(T(),1),FZ=o(v(),1),Sbe={attributes:{latex:{type:"string",role:"content"},mathML:{type:"string",source:"html",selector:"math"}},save({attributes:e}){let{latex:t,mathML:r}=e;return t?(0,FZ.jsx)("math",{...VZ.useB
`)})}var ZK=o(W(),1),sye={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&e.dataset.block==="core/more",transform(e){let{customText:t,noTeaser:r}=e.dataset,a={};return t&&(a.customText=t),r===""&&(a.noTeaser=!0),(0,ZK.createBlock)("core/more",a)}}]},KK=sye;var{fieldsKey:cye,formKey:uye}=K(YK.privateApis),{name:XK}=X4,J4={icon:RT,example:{},__experimentalLabel(e,{context:t}){let r=e?.metadata?.name;if((t==="list-view"||t==="breadcrumb")&&r)return r;if(t==="accessibility")return e.customText},transforms:KK,edit:GK,save:qK};window.__experimentalContentOnlyInspectorFields&&(J4[cye]=[{id:"customText",label:(0,QK.__)("Content"),type:"text",Edit:"rich-text"}],J4[uye]={fields:["customText"]});var mye=()=>E({name:XK,metadata:X4,settings:J4});var TD={};Z(TD,{init:()=>f_e,metadata:()=>e3,name:()=>kX,settings:()=>wX});var $3=o(P(),1);var yX=o(V(),1),_X=o(Q(),1),xX=o(Wo(),1);var e3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation",title:"Navigation",category:"theme",allowedBlocks:["core/navigation-link","core/search","core/social-links","core/page-list","core/spacer","core/home-link","core/icon","core/site-title","core/site-logo","core/navigation-submenu","core/loginout","core/buttons"],description:"A collection of blocks that allow visitors to get around your site.",keywords:["menu","navigation","links"],textdomain:"default",attributes:{ref:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},submenuVisibility:{type:"string",enum:["hover","click","always"],default:"hover"},overlayMenu:{type:"string",default:"mobile"},overlay:{type:"string"},icon:{type:"string",default:"handle"},hasIcon:{type:"boolean",default:!0},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"},maxNestingLevel:{type:"number",default:5},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},providesContext:{textColor:"textColor",customTextColor:"customTextColor",backgroundColor:"backgroundColor",customBackgroundColor:"customBackgroundColor",overlayTextColor:"overlayTextColor",customOverlayTextColor:"customOverlayTextColor",overlayBackgroundColor:"overlayBackgroundColor",customOverlayBackgroundColor:"customOverlayBackgroundColor",fontSize:"fontSize",customFontSize:"customFontSize",showSubmenuIcon:"showSubmenuIcon",submenuVisibility:"submenuVisibility",openSubmenusOnClick:"openSubmenusOnClick",style:"style",maxNestingLevel:"maxNestingLevel"},supports:{anchor:!0,align:["wide","full"],ariaLabel:!0,contentRole:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalLetterSpacing:!0,__experimentalTextDecoration:!0,__experimentalSkipSerialization:["textDecoration"],__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,allowVerticalAlignment:!1,allowSizingOnChildren:!0,default:{type:"flex"}},interactivity:!0,renaming:!1},editorStyle:"wp-block-navigation-editor",style:"wp-block-navigation"};var $t=o(U(),1),ot=o(T(),1),Td=o(Q(),1),ss=o(V(),1),Or=o(M(),1),It=o(P(),1),U3=o(bv(),1);var pX=o(W(),1),dX=o(pe(),1);var Fh=o(Q(),1),tQ=o(V(),1);var Pi={name:"core/navigation-link",attributes:{kind:"post-type",type:"page"}},JK=["core/navigation-link/page","core/navigation-link"],$E={per_page:100,status:["publish","draft"],order:"desc",orderby:"date"},eQ=["postType","wp_navigation",$E],nc="navigation-overlay";function Hh(e){let t=(0,Fh.useResourcePermissions)({kind:"postType",name:"wp_navigation",id:e}),{navigationMenu:r,isNavigationMenuResolved:a,isNavigationMenuMissing:n}=(0,tQ.useSelect
Window, very small in the distance, illuminated.
All around this is an almost totally black screen. Now, as the camera moves slowly towards the window which is almost a postage stamp in the frame, other forms appear;`)}},transforms:Ore,edit:Fre,save:Hre,merge(e,t){return{content:e.content+`
`+t.content}}};window.__experimentalContentOnlyInspectorFields&&(fC[Hke]=[{id:"content",label:(0,TL.__)("Content"),type:"text",Edit:"rich-text"}],fC[Oke]={fields:["content"]});var jke=()=>E({name:Ure,metadata:pC,settings:fC});var BL={};Z(BL,{init:()=>t5e,metadata:()=>gC,name:()=>eoe,settings:()=>vC});var v2=o(P(),1);var Jre=o(W(),1);var ft=o(T(),1),Wre=o(V(),1);var Vd="is-style-solid-color";var fr=o(v(),1),h2={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 Gre(e){if(!e)return;let t=e.match(/border-color:([^;]+)[;]?/);if(t&&t[1])return t[1]}function Fd(e){e=e||"<p></p>";let r=`</p>${e}<p>`.split("</p><p>");return r.shift(),r.pop(),r.join("<br>")}var Uke={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",role:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",role:"content"},textAlign:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"],color:{gradients:!0,background:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalStyle:{typography:{fontSize:"1.5em",lineHeight:"1.6"}}},save({attributes:e}){let{textAlign:t,citation:r,value:a}=e,n=!ft.RichText.isEmpty(r);return(0,fr.jsx)("figure",{...ft.useBlockProps.save({className:w({[`has-text-align-${t}`]:t})}),children:(0,fr.jsxs)("blockquote",{children:[(0,fr.jsx)(ft.RichText.Content,{value:a,multiline:!0}),n&&(0,fr.jsx)(ft.RichText.Content,{tagName:"cite",value:r})]})})},migrate({value:e,...t}){return{value:Fd(e),...t}}},Gke={attributes:{...h2},supports:{anchor:!0,align:["left","right","wide","full"],color:{gradients:!0,background:!0,link:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0}},save({attributes:e}){let{mainColor:t,customMainColor:r,customTextColor:a,textColor:n,value:i,citation:l,className:s}=e,c=s?.includes(Vd),u,m;if(c){let h=(0,ft.getColorClassName)("background-color",t);u=w({"has-background":h||r,[h]:h}),m={backgroundColor:h?void 0:r}}else r&&(m={borderColor:r});let p=(0,ft.getColorClassName)("color",n),d=w({"has-text-color":n||a,[p]:p}),f=p?void 0:{color:a};return(0,fr.jsx)("figure",{...ft.useBlockProps.save({className:u,style:m}),children:(0,fr.jsxs)("blockquote",{className:d,style:f,children:[(0,fr.jsx)(ft.RichText.Content,{value:i,multiline:!0}),!ft.RichText.isEmpty(l)&&(0,fr.jsx)(ft.RichText.Content,{tagName:"cite",value:l})]})})},migrate({value:e,className:t,mainColor:r,customMainColor:a,customTextColor:n,...i}){let l=t?.includes(Vd),s;return a&&(l?s={color:{background:a}}:s={border:{color:a}}),n&&s&&(s.color={...s.color,text:n}),{value:Fd(e),className:t,backgroundColor:l?r:void 0,borderColor:l?void 0:r,textAlign:l?"left":void 0,...i,style:s}}},Wke={attributes:{...h2,figureStyle:{source:"attribute",selector:"figure",attribute:"style"}},save({attributes:e}){let{mainColor:t,customMainColor:r,textColor:a,customTextColor:n,value:i,citation:l,className:s,figureStyle:c}=e,u=s?.includes(Vd),m,p;if(u){let g=(0,ft.getColorClassName)("background-color",t);m=w({"has-background":g||r,[g]:g}),p={backgroundColor:g?void 0:r}}else r?p={borderColor:r}:t&&(p={borderColor:Gre(c)});let d=(0,ft.getColorClassName)("color",a),f=(a||n)&&w("has-text-color",{[d]:d});return(0,fr.jsx)("figure",{className:m,style:p,children:(0,fr.jsxs)("blockquote",{className:f,style:d?void 0:{color:n},children:[(0,fr.jsx)(ft.RichText.Content,{value:i,multiline:!0}),!ft.RichText.isEmpty(l)&&(0,fr.jsx)(ft.RichText.Content,{tagName:"cite",value:l})]})})},migrate({value:e,clas
`)}),anchor:e.anchor})},{type:"block",blocks:["core/heading"],transform:({content:e,anchor:t})=>(0,xu.createBlock)("core/pullquote",{value:e,anchor:t})}],to:[{type:"block",blocks:["core/paragraph"],transform:({value:e,citation:t})=>{let r=[];return e&&r.push((0,xu.createBlock)("core/paragraph",{content:e})),t&&r.push((0,xu.createBlock)("core/paragraph",{content:t})),r.length===0?(0,xu.createBlock)("core/paragraph",{content:""}):r}},{type:"block",blocks:["core/heading"],transform:({value:e,citation:t})=>{if(!e)return(0,xu.createBlock)("core/heading",{content:t});let r=(0,xu.createBlock)("core/heading",{content:e});return t?[r,(0,xu.createBlock)("core/heading",{content:t})]:r}}]},Xre=Xke;var{fieldsKey:Jke,formKey:e5e}=K(Jre.privateApis),{name:eoe}=gC,vC={icon:EP,example:{attributes:{value:(0,v2.__)("One of the hardest things to do in technology is disrupt yourself."),citation:(0,v2.__)("Matt Mullenweg")}},transforms:Xre,edit:Qre,save:Yre,deprecated:$re};window.__experimentalContentOnlyInspectorFields&&(vC[Jke]=[{id:"value",label:(0,v2.__)("Content"),type:"text",Edit:"rich-text"},{id:"citation",label:(0,v2.__)("Citation"),type:"text",Edit:"rich-text"}],vC[e5e]={fields:["value","citation"]});var t5e=()=>E({name:eoe,metadata:gC,settings:vC});var UL={};Z(UL,{init:()=>D5e,metadata:()=>bC,name:()=>Dae,settings:()=>Lae});var bC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query",title:"Query Loop",category:"theme",description:"An advanced block that allows displaying post types based on different query parameters and visual configurations.",keywords:["posts","list","blog","blogs","custom post types"],textdomain:"default",attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[],format:[]}},tagName:{type:"string",default:"div"},namespace:{type:"string"},enhancedPagination:{type:"boolean",default:!1}},usesContext:["templateSlug"],providesContext:{queryId:"queryId",query:"query",displayLayout:"displayLayout",enhancedPagination:"enhancedPagination"},supports:{anchor:!0,align:["wide","full"],html:!1,layout:!0,interactivity:!0},editorStyle:"wp-block-query-editor"};var vae=o(V(),1),bae=o(U(),1),yae=o(T(),1);var EC=o(V(),1),pae=o(pe(),1),w2=o(U(),1),hl=o(T(),1),dae=o(P(),1),fae=o(Q(),1);var moe=o(M(),1),kC=o(P(),1);var gc=o(V(),1),Od=o(U(),1),b2=o(Q(),1),yC=o(T(),1),toe=o(Wo(),1),Hd=o(P(),1),ku=o(W(),1),y2=e=>{let t=e?.reduce((r,a)=>{let{mapById:n,mapByName:i,names:l}=r;return n[a.id]=a,i[a.name]=a,l.push(a.name),r},{mapById:{},mapByName:{},names:[]});return{entities:e,...t}},o5e=(e,t)=>{let r=t.split("."),a=e;return r.forEach(n=>{a=a?.[n]}),a},IL=(e,t)=>(e||[]).map(r=>({...r,name:(0,toe.decodeEntities)(o5e(r,t))})),roe=()=>{let e=(0,gc.useSelect)(n=>{let{getPostTypes:i}=n(b2.store),l=["attachment"];return i({per_page:-1})?.filter(({viewable:c,slug:u})=>c&&!l.includes(u))},[]),t=(0,Od.useMemo)(()=>{if(e?.length)return e.reduce((n,i)=>(n[i.slug]=i.taxonomies,n),{})},[e]),r=(0,Od.useMemo)(()=>(e||[]).map(({labels:n,slug:i})=>({label:n.singular_name,value:i})),[e]),a=(0,Od.useMemo)(()=>e?.length?e.reduce((n,i)=>(n[i.slug]=i.supports?.["post-formats"]||!1,n),{}):{},[e]);return{postTypesTaxonomiesMap:t,postTypesSelectOptions:r,postTypeFormatSupportMap:a}},_C=e=>{let t=(0,gc.useSelect)(r=>{let{getTaxonomies:a,getPostType:n}=r(b2.store);return n(e)?.taxonomies?.length>0?a({type:e,per_page:-1}):[]},[e]);return(0,Od.useMemo)(()=>t?.filter(({visibility:r})=>!!r?.publicly_queryable),[t])};function ooe(e){return(0,gc.useSelect)(t=>{let r=t(b2.store).getPostType(e);return r?.viewable&&r?.hierarchical},[e])}function aoe(e){let t=(0,gc.useSelect)(r=>!!r(b2.store).getPostType(e)?.supports?.["page-attributes"],[e]);return(0,Od.useMemo)(()=>{let r=[{label:(0,Hd.__)("Newest to oldest"),value:"date/desc"},{label:(0,Hd.__)("Oldest to newest"),value:"date/asc"},{label:(0,Hd.__)("A \u2192 Z"),value:"title/asc"},{label:(0,Hd.__)("Z \u2192 A"),value:"title/desc"}];return t&&r
Down in the reeds by the river?
Spreading ruin and scattering ban,
Splashing and paddling with hoofs of a goat,
And breaking the golden lilies afloat
With the dragon-fly on the river.`)}},transforms:tpe,deprecated:Yme,merge(e,t){return{content:e.content+`
`+t.content}},edit:Jme,save:epe};window.__experimentalContentOnlyInspectorFields&&(M7[oCe]=[{id:"content",label:(0,gR.__)("Content"),type:"text",Edit:"rich-text"}],M7[aCe]={fields:["content"]});var nCe=()=>E({name:ope,metadata:D7,settings:M7});var _R={};Z(_R,{init:()=>xCe,metadata:()=>n0,name:()=>_pe,settings:()=>z7});var R7=o(P(),1);var ype=o(W(),1);var hb=o(T(),1);var n0={$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 ape=o(v(),1);function i0({tracks:e=[]}){return e.map(t=>{let{id:r,...a}=t;return(0,ape.jsx)("track",{...a},r??a.src)})}var l0=o(v(),1),{attributes:lCe}=n0,sCe={attributes:lCe,save({attributes:e}){let{autoplay:t,caption:r,controls:a,loop:n,muted:i,poster:l,preload:s,src:c,playsInline:u,tracks:m}=e;return(0,l0.jsxs)("figure",{...hb.useBlockProps.save(),children:[c&&(0,l0.jsx)("video",{autoPlay:t,controls:a,loop:n,muted:i,poster:l,preload:s!=="metadata"?s:void 0,src:c,playsInline:u,children:(0,l0.jsx)(i0,{tracks:m})}),!hb.RichText.isEmpty(r)&&(0,l0.jsx)(hb.RichText.Content,{tagName:"figcaption",value:r})]})}},cCe=[sCe],npe=cCe;var ppe=o(zr(),1),np=o(M(),1),_n=o(T(),1),c0=o(U(),1),gb=o(P(),1),dpe=o(V(),1);var fpe=o(_r(),1),hpe=o(mr(),1);var Wr=o(P(),1),yn=o(M(),1),pf=o(U(),1),va=o(v(),1),uCe=[{value:"auto",label:(0,Wr.__)("Auto")},{value:"metadata",label:(0,Wr.__)("Metadata")},{value:"none",label:(0,Wr._x)("None","Preload value")}],mCe=({setAttributes:e,attributes:t})=>{let{autoplay:r,controls:a,loop:n,muted:i,playsInline:l,preload:s}=t,c=(0,Wr.__)("Autoplay may cause usability issues for some users."),u=pf.Platform.select({web:(0,pf.useCallback)(d=>d?c:null,[]),native:c}),m=(0,pf.useMemo)(()=>{let d=f=>h=>{e({[f]:h,...f==="autoplay"&&{muted:h,playsInline:h}})};return{autoplay:d("autoplay"),loop:d("loop"),muted:d("muted"),controls:d("controls"),playsInline:d("playsInline")}},[]),p=(0,pf.useCallback)(d=>{e({preload:d})},[]);return(0,va.jsxs)(va.Fragment,{children:[(0,va.jsx)(yn.__experimentalToolsPanelItem,{label:(0,Wr.__)("Autoplay"),isShownByDefault:!0,hasValue:()=>!!r,onDeselect:()=>{e({autoplay:!1,muted:!1})},children:(0,va.jsx)(yn.ToggleControl,{label:(0,Wr.__)("Autoplay"),onChange:m.autoplay,checked:!!r,help:u})}),(0,va.jsx)(yn.__experimentalToolsPanelItem,{label:(0,Wr.__)("Loop"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>{e({loop:!1})},children:(0,va.jsx)(yn.ToggleControl,{label:(0,Wr.__)("Loop"),onChange:m.loop,checked:!!n})}),(0,va.jsx)(yn.__experimentalToolsPanelItem,{label:(0,Wr.__)("Muted"),isShownByDefault:!0,hasValue:()=>!!i,onDeselect:()=>{e({muted:!1})},children:(0,va.jsx)(yn.ToggleControl,{label:(0,Wr.__)("Muted"),onChange:m.muted,checked:!!i,disabled:r,help:r?(0,Wr.__)("Muted because of Autoplay."):null})}),(0,va.jsx)(yn.__experimentalToolsPanelItem,{label:(0,Wr.__)("Playback controls"),isShownByDef
/*! Bundled license information:
fast-average-color/dist/index.esm.js:
(*! Fast Average Color | © 2022 Denis Seleznev | MIT License | https://github.com/fast-average-color/fast-average-color *)
*/