/*! For license information please see editor-no-post-editor.js.LICENSE.txt */ (()=>{var e={61:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(56427),s=r(29491),o=r(86087),i=r(27723),a=r(51113),c=r(62510),l=r(31249),u=r(95789),d=r(51609),p=r(63098),h=r(70629),m=r(10790);const __=i.__;function g({className:e,disabled:t=!1,value:r="",placeholder:i="",showButtonLabels:d=!0,isTransparent:g=!1,state:f="init",showGuideLine:b=!1,error:v,requestsRemaining:y,showUpgradeMessage:k=!1,showFairUsageMessage:x=!1,upgradeUrl:w,wrapperRef:_,onChange:j,onSend:A,onStop:C,onClose:S,onUndo:E,onUpgrade:T,onTryAgain:N,lastAction:P,blockType:L},R){const D="requesting"===f||"suggesting"===f,[F,B]=(0,o.useState)(!1),[I,M]=(0,o.useState)(r||null),U=(0,o.useRef)(null),O=r?.length<=0&&"done"===f;(0,o.useImperativeHandle)(R,()=>U.current),(0,o.useEffect)(()=>{F&&U?.current?.focus()},[F]);const z=(0,o.useCallback)(()=>{M(r),B(!1),A?.(r)},[A,r]),q=(0,o.useCallback)(e=>{j?.(e),"init"!==f&&B(I?e!==I:e.length>0)},[j,I,f]),$=(0,o.useCallback)(()=>{C?.()},[C]),H=(0,o.useCallback)(()=>{S?.()},[S]),V=(0,o.useCallback)(()=>{E?.()},[E]),G=(0,o.useCallback)(e=>{T?.(e)},[T]),W=(0,o.useCallback)(()=>{N?.()},[N]);(0,s.useKeyboardShortcut)("enter",e=>{e.preventDefault(),z()},{target:U});const Z=(0,m.jsx)(m.Fragment,{children:D?(0,m.jsx)(n.Button,{className:"jetpack-components-ai-control__controls-prompt_button",onClick:$,variant:"secondary",label:__("Stop request","jetpack"),children:d?__("Stop","jetpack"):(0,m.jsx)(a.A,{icon:l.A})}):(0,m.jsxs)(m.Fragment,{children:[r?.length>0&&(0,m.jsx)("div",{className:"jetpack-components-ai-control__controls-prompt_button_wrapper",children:(0,m.jsx)(n.Button,{className:"jetpack-components-ai-control__controls-prompt_button",onClick:z,variant:"primary",disabled:!r?.length||t,label:__("Send request","jetpack"),children:d?__("Generate","jetpack"):(0,m.jsx)(a.A,{icon:c.A})})}),O&&(0,m.jsx)("div",{className:"jetpack-components-ai-control__controls-prompt_button_wrapper",children:(0,m.jsxs)(n.Flex,{gap:1,role:"group",className:"jetpack-components-ai-control__button-group",children:[(0,m.jsx)(n.Button,{className:"jetpack-components-ai-control__controls-prompt_button",label:__("Undo","jetpack"),onClick:V,tooltipPosition:"top",children:(0,m.jsx)(a.A,{icon:u.A})}),(0,m.jsx)(n.Button,{className:"jetpack-components-ai-control__controls-prompt_button",label:__("Close","jetpack"),onClick:H,variant:"tertiary",children:__("Close","jetpack")})]})})]})});let J=null;return v?.message?J=(0,m.jsx)(p.Kw,{error:v.message,code:v.code,onTryAgainClick:W,onUpgradeClick:G,upgradeUrl:w}):x?J=(0,m.jsx)(p.k9,{}):k?J=(0,m.jsx)(p.AK,{requestsRemaining:y,onUpgradeClick:G,upgradeUrl:w}):b&&(J=O?(0,m.jsx)(p.Yj,{aiFeedbackThumbsOptions:{showAIFeedbackThumbs:!0,ratedItem:"ai-assistant",prompt:P,block:L}}):(0,m.jsx)(p.Yj,{})),(0,m.jsx)(h.A,{className:e,disabled:t||D,value:r,placeholder:i,isTransparent:g,state:f,onChange:q,actions:Z,message:J,promptUserInputRef:U,wrapperRef:_})}const f=(0,d.forwardRef)(g)},125:(e,t,r)=>{"use strict";r.d(t,{d:()=>a});var n=r(96865),s=r(74997),o=r(52998);const i=new n.OO({fixes:["paragraph"]});class a extends o.mt{constructor(e){super(e,["paragraph"])}getContent(){const e=this.getBlock();return t=(0,s.getBlockContent)(e),i.render({content:t});var t}}},241:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(63162),s=r(94715),o=r(56427),i=r(86087),a=r(27723),c=r(13022),l=r(66087),u=r(94107),d=r(33170),p=r(30889),h=r(34308),m=r(10790);const __=a.__;class g extends i.Component{pendingRequestAnimationFrame=null;resizeObserver=null;static defaultProps={effect:"slide"};constructor(e){super(e),this.slideshowRef=(0,i.createRef)(),this.btnNextRef=(0,i.createRef)(),this.btnPrevRef=(0,i.createRef)(),this.paginationRef=(0,i.createRef)()}componentDidMount(){const{onError:e}=this.props;this.buildSwiper().then(e=>{this.swiperInstance=e,this.initializeResizeObserver(e)}).catch(()=>{e(__("The Swiper library could not be loaded.","jetpack"))})}componentWillUnmount(){this.clearResizeObserver(),this.clearPendingRequestAnimationFrame()}componentDidUpdate(e){const{align:t,autoplay:r,delay:n,effect:s,images:o,onError:i}=this.props;if(t===e.align&&(0,l.isEqual)(o,e.images)||this.swiperInstance&&this.swiperInstance.update(),s!==e.effect||r!==e.autoplay||n!==e.delay||o!==e.images){let t;t=this.swiperIndex?o.length===e.images.length?this.swiperInstance.realIndex:e.images.length:0,this.swiperInstance&&this.swiperInstance.destroy(!0,!0),this.buildSwiper(t).then(e=>{this.swiperInstance=e,this.initializeResizeObserver(e)}).catch(()=>{i(__("The Swiper library could not be loaded.","jetpack"))})}}initializeResizeObserver=e=>{this.clearResizeObserver(),this.resizeObserver=new u.A(()=>{this.clearPendingRequestAnimationFrame(),this.pendingRequestAnimationFrame=requestAnimationFrame(()=>{(0,h.bz)(e),e.update()})}),this.resizeObserver.observe(e.el)};clearPendingRequestAnimationFrame=()=>{this.pendingRequestAnimationFrame&&(cancelAnimationFrame(this.pendingRequestAnimationFrame),this.pendingRequestAnimationFrame=null)};clearResizeObserver=()=>{this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)};render(){if(!this.props?.images?.length)return null;const{autoplay:e,className:t,delay:r,effect:i,images:a}=this.props;return(0,m.jsx)("div",{className:t,"data-autoplay":e||null,"data-delay":e?r:null,"data-effect":i,style:{"--aspect-ratio":a[0]?.aspectRatio?`calc(${a[0].aspectRatio})`:void 0},children:(0,m.jsxs)("div",{className:"wp-block-jetpack-slideshow_container swiper",ref:this.slideshowRef,children:[(0,m.jsx)("ul",{className:"wp-block-jetpack-slideshow_swiper-wrapper swiper-wrapper",children:a.map(({alt:e,caption:t,id:r,url:i,aspectRatio:a},l)=>(0,m.jsx)("li",{className:(0,c.A)("wp-block-jetpack-slideshow_slide","swiper-slide",(0,n.isBlobURL)(i)&&"is-transient"),children:(0,m.jsxs)("figure",{children:[(0,m.jsx)("img",{alt:e,className:`wp-block-jetpack-slideshow_image wp-image-${r}`,"data-id":r,"data-aspect-ratio":a,src:i}),(0,n.isBlobURL)(i)&&(0,m.jsx)(o.Spinner,{}),t&&(0,m.jsx)(s.RichText.Content,{className:"wp-block-jetpack-slideshow_caption gallery-caption",tagName:"figcaption",value:t})]})},r?`${r}-${l}`:`${i}-${l}`))}),(0,m.jsx)("a",{className:"wp-block-jetpack-slideshow_button-prev swiper-button-prev swiper-button-white",ref:this.btnPrevRef,role:"button"}),(0,m.jsx)("a",{className:"wp-block-jetpack-slideshow_button-next swiper-button-next swiper-button-white",ref:this.btnNextRef,role:"button"}),(0,m.jsx)("a",{"aria-label":"Pause Slideshow",className:"wp-block-jetpack-slideshow_button-pause",role:"button"}),(0,m.jsx)("div",{className:"wp-block-jetpack-slideshow_pagination swiper-pagination swiper-pagination-white",ref:this.paginationRef})]})})}prefersReducedMotion=()=>"undefined"!=typeof window&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;buildSwiper=(e=0)=>(0,d.A)(this.slideshowRef.current,{autoplay:!(!this.props.autoplay||this.prefersReducedMotion())&&{delay:1e3*this.props.delay,disableOnInteraction:!1},effect:this.props.effect,loop:!1,initialSlide:e,followFinger:!1,navigation:{nextEl:this.btnNextRef.current,prevEl:this.btnPrevRef.current},pagination:{clickable:!0,el:this.paginationRef.current,type:"custom",renderCustom:p.y}},{init:h.rQ,imagesReady:h.bz,paginationRender:h.n7,transitionEnd:h.WF})}const f=g},333:(e,t,r)=>{"use strict";r.d(t,{wc:()=>i});var n=r(85985),s=r(66087);function o(){return(0,n.$i)()?.allowedMimeTypes??[]}function i(e,t){if(!e||!t)return!1;if(!o())return!1;const r=(n=t)?(0,s.pickBy)(o(),e=>e.startsWith(`${n}/`)):{};var n;const i=(a=r)?Object.keys(a).map(e=>e.split("|")).flat():[];var a;if("string"==typeof e){const t=e.split(".").pop();return t&&i.includes(t)}return"object"==typeof e&&(e.type&&Object.values(r).includes(e.type))}},692:e=>{"use strict";e.exports=window.wp.notices},1063:(e,t,r)=>{"use strict";var n=r(94715),s=r(94375),o=r(88795),i=r(49108),a=r(89218),c=r(10790);(0,s.M)(o,{edit:a.A,save:()=>{const e=n.useBlockProps.save();return(0,c.jsx)("div",{...e,children:(0,c.jsx)(n.InnerBlocks.Content,{})})},transforms:{from:[{type:"shortcode",tag:"jetpack-related-posts"}]},deprecated:i.A})},1455:e=>{"use strict";e.exports=window.wp.apiFetch},1456:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(86087),s=r(27723),o=r(13022),i=r(35463),a=r(31238),c=r(56366),l=r(90256),u=r(88139),d=r(10790);const __=s.__;class p extends n.Component{renderImage(e,t){const{columns:r,imageFilter:n,images:o,isSave:i,linkTo:a,layoutStyle:c,onMoveBackward:p,onMoveForward:h,onRemoveImage:m,onSelectImage:g,selectedImage:f,setImageAttributes:b}=this.props,v=(0,s.sprintf)(/* translators: %1$d is the order number of the image, %2$d is the total number of images. */ __("Open image %1$d of %2$d in full-screen","jetpack"),t+1,o.length),y=u.A,{src:k,srcSet:x}=(0,l.A)(e,{layoutStyle:c});return(0,d.jsx)(y,{alt:e.alt,"aria-label":v,columns:r,height:e.height,id:e.id,imageFilter:n,isFirstItem:0===t,isLastItem:t+1===o.length,isSelected:f===t,link:e.link,linkTo:a,customLink:e.customLink,onMoveBackward:i?void 0:p(t),onMoveForward:i?void 0:h(t),onRemove:i?void 0:m(t),onSelect:i?void 0:g(t),origUrl:e.url,setAttributes:i?void 0:b(t),showMovers:o.length>1,srcSet:x,url:k,width:e.width},t)}render(){const{align:e,children:t,className:r,columns:n,images:s,layoutStyle:u,roundedCorners:p,onResize:h,style:m,isSave:g,columnWidths:f}=this.props,b=(0,l.s)(u)?c.A:a.A,v=this.props.images.map(this.renderImage,this),y=u!==i.aQ?Math.min(p,i.WN):0;return(0,d.jsxs)("div",{style:m,className:(0,o.A)(r,{[`has-rounded-corners-${y}`]:y>0}),children:[(0,d.jsx)(b,{align:e,columns:n,columnWidths:g?f:void 0,images:s,layoutStyle:u,renderedImages:v,onResize:g?void 0:h}),t]})}}},1807:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={attributes:{align:{type:"string"},points:{type:"array",default:[]},mapDetails:{type:"boolean",default:!0},zoom:{type:"integer",default:13},mapCenter:{type:"object",default:{longitude:-122.41941550000001,latitude:37.7749295}},mapStyle:{type:"string",default:"default"},markerColor:{type:"string",default:"red"},scrollToZoom:{type:"boolean",default:!1},mapHeight:{type:"integer"}},migrate:e=>{const t=((e.className||"").replace(/is-style-[^ ]+/,"")+` is-style-${e.mapStyle}`).replace(/\s+/g," ").trim(),{mapStyle:r,...n}=e;return{...n,showFullscreenButton:!0,className:t}},save:r(66730).A}},1811:(e,t,r)=>{"use strict";r.d(t,{F:()=>s});var n=r(47143);const s=async()=>{const{clearSelectedBlock:e}=(0,n.dispatch)("core/block-editor"),{enableComplementaryArea:t}=(0,n.dispatch)("core/interface");e(),await t("core/edit-post","jetpack-sidebar/jetpack");const r=document.querySelector(".jetpack-ai-assistant-panel"),s=r?.classList.contains("is-opened"),o=r?.querySelector("h2 button");s&&o?.click(),setTimeout(()=>{o?.click()},50)}},1990:(e,t,r)=>{"use strict";r.d(t,{W:()=>i});var n=r(27723),s=r(29726);const __=n.__,o={"add a new product":{[s._$]:__("Add a new payment plan","jetpack"),[s.h5]:__("Add a new subscription","jetpack")},"product not found":{[s._$]:__("Payment plan not found","jetpack"),[s.h5]:__("Subscription not found","jetpack")},"select a product":{[s._$]:__("Select a payment plan","jetpack"),[s.h5]:__("Select a subscription","jetpack")},"default new product title":{[s._$]:__("Monthly Subscription","jetpack"),[s.h5]:__("Monthly Subscription","jetpack")},"manage your products":{[s._$]:__("Manage your payment plans.","jetpack"),[s.h5]:__("Manage your subscriptions.","jetpack")},"saving product":{[s._$]:__("Saving payment plan…","jetpack"),[s.h5]:__("Saving subscription…","jetpack")},"add product":{[s._$]:__("Add payment plan","jetpack"),[s.h5]:__("Add subscription","jetpack")},"product requires a name":{[s._$]:__("Payment plan requires a name","jetpack"),[s.h5]:__("Subscription requires a name","jetpack")},"product requires a valid price":{[s._$]:__("Payment plan requires a valid price","jetpack"),[s.h5]:__("Subscription requires a valid price","jetpack")},"successfully created product":{[s._$]:__("Successfully created payment plan","jetpack"),[s.h5]:__("Successfully created subscription","jetpack")},"there was an error when adding the product":{[s._$]:__("There was an error when adding the payment plan.","jetpack"),[s.h5]:__("There was an error when adding the subscription.","jetpack")},"invalid product configured for this block":{[s._$]:__("Invalid payment plan configured for this block.","jetpack"),[s.h5]:__("Invalid subscription configured for this block.","jetpack")},"the button will be hidden from your visitors until you select a valid product":{[s._$]:__("The button will be hidden from your visitors until you select a valid payment plan.","jetpack"),[s.h5]:__("The subscribe button will be hidden from your visitors until you select a valid subscription.","jetpack")},"mark this product as a donation":{[s._$]:__("Mark this payment plan as a donation","jetpack"),[s.h5]:__("Mark this subscription as a donation","jetpack")}};function i(e,t=s._$){return o?.[e]?.[t]||null}__("Monthly Subscription","jetpack"),__("Yearly Subscription","jetpack"),__("Subscription","jetpack")},2162:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>g,HU:()=>f});var n=r(96865),s=r(85985),o=r(56427),i=r(27723),a=r(51113),c=r(29115),l=r(84066),u=r(10790);const __=i.__,d=["en","es","fr","de","it","pt","ru","zh","ja","ar","hi","ko"],p=window?.Jetpack_Editor_Initial_State?.siteLocale||navigator?.language,h=p?.split("-")[0]||"en",m=(p?.split("-"),({value:e,onChange:t})=>{const r=[...d.filter(e=>e!==h)];return d.includes(h)&&r.unshift(h),(0,u.jsx)(o.MenuGroup,{label:__("Select language","jetpack"),children:r.map(r=>(0,u.jsx)(o.MenuItem,{onClick:()=>t(r+" ("+n.so[r].label+")"),isSelected:e===r,children:n.so[r].label},`key-${r}`))})});function g({value:e=h,label:t=n.u0,onChange:r,disabled:i=!1}){const{tracks:c}=(0,s.st)();return i?(0,u.jsx)(o.Tooltip,{text:t,children:(0,u.jsx)(o.Button,{disabled:!0,children:(0,u.jsx)(a.A,{icon:l.A})})}):(0,u.jsx)(o.ToolbarDropdownMenu,{icon:l.A,label:t,popoverProps:{variant:"toolbar"},onToggle:e=>{e&&c.recordEvent("jetpack_ai_assistant_block_toolbar_menu_show",{tool:"i18n"})},children:()=>(0,u.jsx)(m,{value:e,onChange:r})})}function f({value:e=h,label:t=n.u0,onChange:r,disabled:s=!1}){return(0,u.jsx)(o.DropdownMenu,{className:"ai-assistant__i18n-dropdown",icon:l.A,label:t,toggleProps:{children:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:"ai-assistant__i18n-dropdown__toggle-label",children:t}),(0,u.jsx)(a.A,{icon:c.A})]}),disabled:s},children:({onClose:t})=>(0,u.jsx)(m,{onChange:(...e)=>{r(...e),t()},value:e})})}},2164:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(94715),s=r(56427),o=r(27723),i=r(10790);const __=o.__,_x=o._x,a=[{icon:(0,i.jsxs)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,i.jsx)(s.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,i.jsx)(s.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})]}),title:_x("Original","image style","jetpack"),value:void 0},{icon:(0,i.jsxs)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,i.jsx)(s.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,i.jsx)(s.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm11 10h2V5h-4v2h2v8zm7-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})]}),title:_x("Black and White","image style","jetpack"),value:"black-and-white"},{icon:(0,i.jsxs)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,i.jsx)(s.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,i.jsx)(s.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zm-4-4h-4v-2h2c1.1 0 2-.89 2-2V7c0-1.11-.9-2-2-2h-4v2h4v2h-2c-1.1 0-2 .89-2 2v4h6v-2z"})]}),title:_x("Sepia","image style","jetpack"),value:"sepia"},{icon:(0,i.jsxs)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,i.jsx)(s.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,i.jsx)(s.Path,{d:"M21 1H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-1.5c0-.83-.67-1.5-1.5-1.5.83 0 1.5-.67 1.5-1.5V7c0-1.11-.9-2-2-2h-4v2h4v2h-2v2h2v2h-4v2h4c1.1 0 2-.89 2-2z"})]}),title:"1977",value:"1977"},{icon:(0,i.jsxs)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,i.jsx)(s.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,i.jsx)(s.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm12 10h2V5h-2v4h-2V5h-2v6h4v4zm6-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})]}),title:_x("Clarendon","image style","jetpack"),value:"clarendon"},{icon:(0,i.jsxs)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,i.jsx)(s.Path,{fill:"none",d:"M0 0h24v24H0z"}),(0,i.jsx)(s.Path,{d:"M21 1H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-2c0-1.11-.9-2-2-2h-2V7h4V5h-6v6h4v2h-4v2h4c1.1 0 2-.89 2-2z"})]}),title:_x("Gingham","image style","jetpack"),value:"gingham"}],c=__("Pick an image filter","jetpack"),l=(0,i.jsxs)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,i.jsx)(s.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,i.jsx)(s.Path,{d:"M19 10v9H4.98V5h9V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-9h-2zm-2.94-2.06L17 10l.94-2.06L20 7l-2.06-.94L17 4l-.94 2.06L14 7zM12 8l-1.25 2.75L8 12l2.75 1.25L12 16l1.25-2.75L16 12l-2.75-1.25z"})]});function u({value:e,onChange:t}){return(0,i.jsx)(s.Dropdown,{placement:"bottom-start",className:"editor-block-switcher",contentClassName:"editor-block-switcher__popover",renderToggle:({onToggle:e,isOpen:t})=>(0,i.jsx)(n.BlockControls,{children:(0,i.jsx)(s.Toolbar,{label:c,children:(0,i.jsx)(s.ToolbarButton,{onClick:e,"aria-expanded":t,"aria-haspopup":"true",label:c,showTooltip:!0,icon:l})})}),renderContent:({onClose:r})=>(0,i.jsx)(s.NavigableMenu,{className:"tiled-gallery__filter-picker-menu",children:a.map(({icon:n,title:o,value:a})=>{return(0,i.jsx)(s.MenuItem,{className:e===a?"is-active":void 0,icon:n,isSelected:e===a,onClick:(c=a,()=>{t(e===c?void 0:c),r()}),role:"menuitemcheckbox",children:o},a||"original");var c})})})}},2166:(e,t,r)=>{"use strict";r.d(t,{R:()=>i});var n=r(51609),s=r(10790);const o=(0,n.createContext)({}),i=({value:e,children:t})=>(0,s.jsx)(o.Provider,{value:e,children:t})},2194:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(94715),s=r(13022),o=r(90907),i=r(62393),a=r(10790);const c=({attributes:e})=>{const{align:t,mapDetails:r,points:c,zoom:l,mapCenter:u,markerColor:d,scrollToZoom:p,mapHeight:h,showFullscreenButton:m}=e,g=n.useBlockProps.save(),{className:f}=g,b=(0,o.D)(i.A,f),v=c.map((e,t)=>{const{longitude:r,latitude:n}=e.coordinates,s="https://www.google.com/maps/search/?api=1&query="+n+","+r;return(0,a.jsx)("li",{children:(0,a.jsx)("a",{href:s,children:e.title})},t)});return(0,a.jsx)("div",{...g,className:(0,s.A)(f,t?`align${t}`:null),"data-map-style":b,"data-map-details":r,"data-points":JSON.stringify(c),"data-zoom":l,"data-map-center":JSON.stringify(u),"data-marker-color":d,"data-scroll-to-zoom":p||null,"data-map-height":h||null,"data-show-fullscreen-button":m||null,children:c.length>0&&(0,a.jsx)("ul",{children:v})})}},2230:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(94715),s=r(10790);function o({attributes:e}){const t=n.useBlockProps.save(),{url:r}=e;return(0,s.jsx)("a",{...t,href:r,children:r})}},2274:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(39384),s=r(85985),o=r(82201),i=r(27723),a=r(51609),c=r(10790);const __=i.__,l=()=>{const e=window?.location?.pathname.replace(/.*?wp-admin\//,""),t=window?.location?.search;return`${e}${t}`},u=({block:e,explanation:t=null})=>{const[r,i]=(0,a.useState)(!1),[u,d]=(0,a.useState)(!1),{handleConnectUser:p}=(0,n.useConnection)({from:"editor",redirectUri:l(),autoTrigger:!1,skipPricingPage:!0}),{autosave:h}=(0,s.ZR)(),{tracks:m}=(0,s.st)();return(0,a.useEffect)(()=>{r&&p()},[r,p]),(0,c.jsxs)("div",{children:[(0,c.jsx)(o.cb,{buttonText:__("Connect Jetpack","jetpack"),className:"jetpack-connect-banner-nudge",description:__("Your account is not connected to Jetpack at the moment.","jetpack"),goToCheckoutPage:t=>{d(!0),h(t).then(()=>{m.recordEvent("jetpack_editor_connect_banner_click",{block:e}),i(!0),d(!1)})},checkoutUrl:"#",isRedirecting:r||u}),(0,c.jsx)("div",{className:"jetpack-connect-banner",children:t&&(0,c.jsx)("div",{className:"jetpack-connect-banner__explanation",children:(0,c.jsx)("p",{children:t})})})]})}},2369:(e,t,r)=>{"use strict";e.exports=r.p+"images/tiled-gallery_example-2-78fc061b3eff2af1311b.jpg"},2467:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(r,n){function s(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",s),r([].slice.call(arguments))}g(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&g(e,"error",t,r)}(e,s,{once:!0})})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var i=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function l(e,t,r,n){var s,o,i,l;if(a(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),i=o[t]),void 0===i)i=o[t]=r,++e._eventsCount;else if("function"==typeof i?i=o[t]=n?[r,i]:[i,r]:n?i.unshift(r):i.push(r),(s=c(e))>0&&i.length>s&&!i.warned){i.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=i.length,l=u,console&&console.warn&&console.warn(l)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},s=u.bind(n);return s.listener=r,n.wrapFn=s,s}function p(e,t,r){var n=e._events;if(void 0===n)return[];var s=n[t];return void 0===s?[]:"function"==typeof s?r?[s.listener||s]:[s]:r?function(e){for(var t=new Array(e.length),r=0;r0&&(i=t[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)n(c,this,t);else{var l=c.length,u=m(c,l);for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){i=r[o].listener,s=o;break}if(s<0)return this;0===s?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},2500:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={align:["center","wide","full"],color:{gradients:!0,text:!1},customClassName:!1,html:!1,spacing:{margin:!0,padding:!0},__experimentalHideChildBlockControls:!0}},2668:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(94715),s=r(10790);function o(){const e=n.useBlockProps.save();return(0,s.jsx)("div",{...e,children:(0,s.jsx)(n.InnerBlocks.Content,{})})}},2699:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});const n=/\r\n?|\n/g,s=/\0/g;function o(e){let t;t=e.src.replace(n,"\n"),t=t.replace(s,"�"),e.src=t}},2761:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(47143),s=r(38062),o=r(12365),i=r(10179),a=r(10790);function c({attributes:e,backgroundColor:t,clientId:r,context:c,fallbackBackgroundColor:l,fallbackTextColor:u,setAttributes:d,setBackgroundColor:p,setTextColor:h,textColor:m,gradientValue:g,setGradient:f,isGradientAvailable:b}){const{align:v,borderRadius:y}=e,k="jetpack/parentBlockWidth"in c,x=k?c["jetpack/parentBlockWidth"]:e.width,w=(0,n.useSelect)(e=>{const{getBlock:t,getBlockRootClientId:n}=e("core/block-editor");return t(n(r))}),{updateBlockAttributes:_}=(0,n.useDispatch)("core/block-editor");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.A,{backgroundColor:t,fallbackBackgroundColor:l,fallbackTextColor:u,gradientValue:g,setBackgroundColor:p,setGradient:f,setTextColor:h,textColor:m,isGradientAvailable:b}),(0,a.jsx)(o.A,{borderRadius:y,setAttributes:d}),(0,a.jsx)(s.D,{align:v,width:x,onChange:e=>{k?_(w.clientId,{width:e}):d({width:e})}})]})}},2905:(e,t,r)=>{"use strict";function n(e,t){return fetch(`https://api.mapbox.com/geocoding/v5/mapbox.places/${encodeURIComponent(e)}.json?access_token=${encodeURIComponent(t)}`).then(e=>e.json())}r.d(t,{I:()=>n})},3120:(e,t,r)=>{"use strict";r.d(t,{e:()=>h});var n=r(85985),s=r(94715),o=r(29491),i=r(47143),a=r(86087),c=r(95104),l=r(26845),u=r(23887),d=r(10790);const p=(0,o.createHigherOrderComponent)(e=>t=>{const{name:r,clientId:o,isSelected:p,attributes:h,setAttributes:m}=t||{},g=(0,n.tu)(r);if(!g)return(0,d.jsx)(e,{...t});const f=(0,n.sH)(r),b=(0,n.GT)(r),[v,y]=(0,a.useState)(!f),[k,x]=(0,a.useState)(!1),w="editor-canvas",_=(0,i.useSelect)(e=>e("core/block-editor").hasSelectedInnerBlock(o,!0),[o]),{hasParentBanner:j}=(0,a.useContext)(c.j)||{},A=(p||_)&&v&&!j,{tracks:C}=(0,n.st)(),S=(0,a.useMemo)(()=>({plan:g,blockName:r,context:w,tracks:C}),[g,r,C]);(0,a.useEffect)(()=>{A&&x(!0)},[A,x]),(0,a.useEffect)(()=>{!k&&A&&(0,u.r)(S)},[k,S,A]),(0,a.useEffect)(()=>y(!f),[h,y,f]),(0,a.useEffect)(()=>{m({shouldDisplayFrontendBanner:!j})},[m,j]);const E=(0,s.useBlockProps)();return(0,d.jsx)(c.b,{onBannerVisibilityChange:y,hasParentBanner:A,children:(0,d.jsxs)("div",{ref:E.ref,style:{maxWidth:"unset"},children:[(0,d.jsx)(l.Ay,{className:`is-${r.replace(/\//,"-")}-paid-block`,title:null,align:h?.align,visible:A,description:b?.description,requiredPlan:g,context:w,onRedirect:()=>(0,u.W)(S)}),(0,d.jsx)(e,{...t})]})})},"withUpgradeBanner");function h(e,t){return(0,n.tu)(t)?{...e,edit:p(e.edit)}:e}},3175:(e,t,r)=>{"use strict";r.d(t,{Gz:()=>b});var n,s=r(25006),o=r(82826),i=r(72485);!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(n||(n={}));var a,c,l;function u(e){return e>=n.ZERO&&e<=n.NINE}function d(e){return e>=n.UPPER_A&&e<=n.UPPER_F||e>=n.LOWER_A&&e<=n.LOWER_F}function p(e){return e===n.EQUALS||function(e){return e>=n.UPPER_A&&e<=n.UPPER_Z||e>=n.LOWER_A&&e<=n.LOWER_Z||u(e)}(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(a||(a={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(c||(c={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(l||(l={}));class h{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=c.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=l.Strict}startEntity(e){this.decodeMode=e,this.state=c.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case c.EntityStart:return e.charCodeAt(t)===n.NUM?(this.state=c.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=c.NamedEntity,this.stateNamedEntity(e,t));case c.NumericStart:return this.stateNumericStart(e,t);case c.NumericDecimal:return this.stateNumericDecimal(e,t);case c.NumericHex:return this.stateNumericHex(e,t);case c.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===n.LOWER_X?(this.state=c.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=c.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,r,n){if(t!==r){const s=r-t;this.result=this.result*Math.pow(n,s)+parseInt(e.substr(t,s),n),this.consumed+=s}}stateNumericHex(e,t){const r=t;for(;t>14;for(;t>14,0!==o){if(i===n.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==l.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:r}=this,n=(r[t]&a.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){const{decodeTree:n}=this;return this.emitCodePoint(1===t?n[e]&~a.VALUE_LENGTH:n[e+1],r),3===t&&this.emitCodePoint(n[e+2],r),r}end(){var e;switch(this.state){case c.NamedEntity:return 0===this.result||this.decodeMode===l.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case c.NumericDecimal:return this.emitNumericEntity(0,2);case c.NumericHex:return this.emitNumericEntity(0,3);case c.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case c.EntityStart:return 0}}}function m(e){let t="";const r=new h(e,e=>t+=(0,i.MK)(e));return function(e,n){let s=0,o=0;for(;(o=e.indexOf("&",o))>=0;){t+=e.slice(s,o),r.startEntity(n);const i=r.write(e,o+1);if(i<0){s=o+r.end();break}s=o+i,o=0===i?s+1:s}const i=t+e.slice(s);return t="",i}}function g(e,t,r,n){const s=(t&a.BRANCH_LENGTH)>>7,o=t&a.JUMP_TABLE;if(0===s)return 0!==o&&n===o?r:-1;if(o){const t=n-o;return t<0||t>=s?-1:e[r+t]-1}let i=r,c=i+s-1;for(;i<=c;){const t=i+c>>>1,r=e[t];if(rn))return e[t+s];c=t-1}}return-1}const f=m(s.A);m(o.A);function b(e,t=l.Legacy){return f(e,t)}},3328:(e,t,r)=>{"use strict";r.d(t,{J:()=>c});var n=r(32448),s=r.n(n),o=r(63673);const i=s()("number-formatters:get-cached-formatter"),a=new Map;function c({locale:e,fallbackLocale:t=o.M,options:r,retries:n=1}){const s=JSON.stringify([e,r]);try{return a.get(s)??a.set(s,new Intl.NumberFormat(e,r)).get(s)}catch(s){if(i(`Intl.NumberFormat was called with a non-existent locale "${e}"; falling back to ${t}`),n)return c({locale:t,options:r,retries:n-1});throw s}}},3348:(e,t,r)=>{"use strict";var n=r(94715),s=r(74997),o=r(29491),i=r(47143),a=r(52619),c=r(27723),l=r(74628),u=r(17900),d=r(47960),p=r(10790);const __=c.__,h=(0,o.createHigherOrderComponent)(e=>t=>{const{name:r,attributes:o,isSelected:a}=t;if("core/embed"!==r)return(0,p.jsx)(e,{...t});if(!(o?.url?.match(/^https?:\/\/(?:video\.wordpress\.com\/[ve]\/|videopress\.com\/[ve]\/)[a-zA-Z\d]{8}/)||"videopress"===o?.providerNameSlug))return(0,p.jsx)(e,{...t});const{replaceBlock:c}=(0,i.dispatch)("core/block-editor");return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(e,{...t}),a&&(0,p.jsx)(n.InspectorControls,{children:(0,p.jsxs)("div",{className:"wp-block-videopress-video-transform",style:{padding:"16px"},children:[(0,p.jsx)("div",{className:"components-notice is-info",children:(0,p.jsx)("div",{className:"components-notice__content",children:__("You can transform this post's video blocks to the new VideoPress block to take advantage of new features.","jetpack")})}),(0,p.jsx)("div",{style:{marginTop:"8px"},children:(0,p.jsx)("button",{className:"components-button is-primary",onClick:()=>{const e=o.url,r=o.guid||(0,d.QW)(e),n=(0,s.createBlock)("videopress/video",{src:e,id:o.id||null,guid:r,title:o.title||"",caption:o.caption||"",isVideoPressExample:!1,autoplay:!1,controls:!0,muted:!1,playsinline:!0,preload:"metadata",useAverageColor:!0,poster:o.poster||"",loop:!1,videoPressTracks:[],className:o.className||"",align:o.align||"",rating:"",allowDownload:!1,privacySetting:l.NF.SITE_DEFAULT,url:(0,u.e)(r,{autoplay:!1,controls:!0,loop:!1,muted:!1,playsinline:!0,poster:o.poster||"",preload:"metadata",useAverageColor:!0})});c(t.clientId,n)},children:__("Transform to VideoPress block","jetpack")})})]})})]})},"withVideoPressSettings");(0,a.addFilter)("editor.BlockEdit","jetpack/videopress-embed-settings",h)},3506:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},3582:e=>{"use strict";e.exports=window.wp.coreData},3586:(e,t,r)=>{"use strict";r.d(t,{A:()=>_});var n=r(96865),s=r(85985),o=r(94715),i=r(74997),a=r(56427),c=r(29491),l=r(47143),u=r(86087),d=r(27723),p=r(13022),h=r(27970),m=r(56199),g=r(2274),f=r(32249),b=r(51698),v=r(4393),y=r(44732),k=r(76695),x=r(10790);const __=d.__,w="post"===window?.Jetpack_Editor_Initial_State?.screenBase;function _({attributes:e,setAttributes:t,clientId:r,isSelected:d}){const[_,j]=(0,u.useState)(null),{tracks:A}=(0,s.st)(),{getBlock:C}=(0,l.useSelect)("core/block-editor"),S=(0,u.useRef)(null),E=(0,u.useRef)(null),{replaceBlocks:T,removeBlock:N}=(0,l.useDispatch)("core/block-editor"),{editPost:P}=(0,l.useDispatch)("core/editor"),[L,R]=(0,u.useState)((0,n.MB)(e.preTransformAction)),{isOverLimit:D,requireUpgrade:F,increaseRequestsCount:B,requestsCount:I,requestsLimit:M,currentTier:U,loading:O,tierPlansEnabled:z}=(0,n.yM)(),q=Math.max(M-I,0),{autosaveAndRedirect:$}=(0,n.ON)(),H=(0,s.Bd)(U),V=()=>{setTimeout(()=>{S.current?.focus?.()},100)},G=()=>{setTimeout(()=>{E.current?.focus?.()},100)},W=(0,c.useViewportMatch)("medium","<"),Z=(0,u.useRef)(null),{getSuggestionFromOpenAI:J,stopSuggestion:K,showRetry:Y,contentBefore:Q,postTitle:X,retryRequest:ee,wholeContent:te,requestingState:re,error:ne}=(0,v.A)({onSuggestionDone:(0,u.useCallback)(e=>{V(),e||B()},[B]),onUnclearPrompt:(0,u.useCallback)(()=>{G(),B()},[B]),onModeration:V,attributes:e,clientId:r,content:e.content,tracks:A,userPrompt:e.userPrompt,requireUpgrade:F,initialRequestingState:e.requestingState,contentRef:Z,blockRef:E}),se="requesting"===re,oe=["requesting","suggesting"].includes(re),ie=(0,s.xI)(),{productPageUrl:ae}=(0,y.A)(),ce=(0,k.y)(r);(0,u.useEffect)(()=>{if(!ce)return;const e=JSON.parse(localStorage.getItem(ce));if(!e)return;const{type:t,options:r}=e;localStorage.removeItem(ce),J(t,r)},[ce,J]),(0,u.useEffect)(()=>{ne&&j(!1)},[ne]),(0,u.useEffect)(()=>{["init","done"].includes(re)&&t({requestingState:re})},[re,t]);const le=!!e.content,ue=e.promptType===n.vE,de=__("Accept","jetpack"),pe=__("Accept title","jetpack"),he=ue?pe:de,me=async()=>{let t=[],s=(0,n._E)({content:e.content||""});if(s?.split("\n").length>1&&s?.split("\n")?.[0]?.match(/^

.*<\/h1>$/)&&!X){const e=s.split("\n"),t=e.shift();s=e.join("\n"),P({title:t.replace(/<[^>]*>/g,"")})}t=(0,i.rawHandler)({HTML:s}),await T(r,t);const o=(e=>{let t=null;return e.forEach(e=>{const r=document.querySelector(`.wp-block[data-block="${e.clientId}"]`);if(!r)return;"true"===r.contentEditable&&(t=r);const n=r.querySelectorAll("[contenteditable=true]");t=n.length?n[n.length-1]:t}),t})(t);o&&(e=>{const t=e.ownerDocument.getSelection();t.selectAllChildren(e),t.collapseToEnd(),e.focus()})(o)},ge=()=>{me(),A.recordEvent("jetpack_ai_assistant_block_accept",{feature:"ai-assistant"})},fe=()=>{w?(P({title:e.content?e.content.trim():""}),N(r),A.recordEvent("jetpack_ai_assistant_block_accept",{feature:"ai-assistant"})):ge()},be=()=>{K(),V(),A.recordEvent("jetpack_ai_assistant_block_stop",{feature:"ai-assistant"})},ve=(0,o.useBlockProps)({ref:E,className:(0,p.A)({"is-waiting-response":se})}),ye=__("Ask Jetpack AI…","jetpack"),ke=__("Write about… Make a table for…","jetpack"),xe=(0,x.jsxs)(x.Fragment,{children:[D&&d&&(0,x.jsx)(n.Hb,{placement:"ai-assistant-block"}),!ie&&(0,x.jsx)(g.A,{block:"AI Assistant"})]}),we=(0,x.jsx)(x.Fragment,{children:ne?.message&&!_&&"error_quota_exceeded"!==ne?.code&&(0,x.jsx)(a.Notice,{status:ne.status,isDismissible:!1,className:"jetpack-ai-assistant__error",children:ne.message})}),_e=D&&H===s.Ti?(0,x.jsx)(n.QA,{variant:"muted"}):null,je=(0,u.useCallback)(e=>{e.preventDefault(),A.recordEvent("jetpack_ai_upgrade_button",{current_tier_slug:U?.slug,requests_count:I,placement:"jetpack_ai_assistant_block"}),$(e)},[A,U,I,$]);return(0,x.jsx)(a.KeyboardShortcuts,{bindGlobal:!0,shortcuts:{esc:()=>{["requesting","suggesting"].includes(re)&&be()}},children:(0,x.jsxs)("div",{...ve,children:[le&&(0,x.jsx)("div",{ref:Z,className:"jetpack-ai-assistant__content",children:(0,x.jsx)(u.RawHTML,{children:(0,n._E)({content:e.content||""})})}),(0,x.jsxs)(o.InspectorControls,{children:[_e&&(0,x.jsxs)("div",{className:"block-editor-block-card",style:{paddingTop:0},children:[(0,x.jsx)("span",{className:"block-editor-block-icon"}),_e]}),(0,x.jsxs)("div",{className:"block-editor-block-card",style:{paddingTop:0},children:[(0,x.jsx)("span",{className:"block-editor-block-icon"}),(0,x.jsx)(a.ExternalLink,{href:ae,children:__("Discover all features","jetpack")})]}),(H===s._X||z&&H!==s.Ti)&&(0,x.jsx)(a.PanelBody,{initialOpen:!0,children:(0,x.jsx)(a.PanelRow,{children:(0,x.jsx)(h.A,{placement:m.k})})}),(0,x.jsx)(a.PanelBody,{initialOpen:!0,children:(0,x.jsx)(a.PanelRow,{children:(0,x.jsx)(f.A,{})})})]}),!oe&&ie&&!F&&(0,x.jsx)(b.A,{isWaitingState:oe,contentIsLoaded:le,getSuggestionFromOpenAI:(e,t)=>{const r=(0,n.MB)(e,t);R(r),J(e,t)},retryRequest:ee,handleAcceptContent:ge,handleAcceptTitle:fe,handleTryAgain:null,showRetry:Y,contentBefore:Q,hasPostTitle:!!X?.length,wholeContent:te,promptType:e.promptType,setUserPrompt:e=>{if(!S?.current)return;S.current.focus(),t({userPrompt:e})},recordEvent:A.recordEvent,isGeneratingTitle:ue}),(0,x.jsx)(n.N0,{ref:S,disabled:F||!ie,value:e.userPrompt,placeholder:e?.content?ye:ke,onChange:e=>{j(!0),t({userPrompt:e})},onSend:()=>{R(e.userPrompt),((...e)=>{J(...e),G()})("userPrompt"),A.recordEvent("jetpack_ai_assistant_block_generate",{feature:"ai-assistant"})},onStop:be,onAccept:()=>{ue?fe():ge()},onDiscard:()=>{const n=e?.content===C(r).attributes?.content;t({content:e?.originalContent,promptType:void 0,messages:e?.originalMessages}),me(),n?A.recordEvent("jetpack_ai_assistant_block_dismiss"):A.recordEvent("jetpack_ai_assistant_block_discard",{feature:"ai-assistant"})},state:re,isTransparent:F||!ie,showButtonLabels:!W,showAccept:"init"!==re&&le&&!oe,acceptLabel:he,showGuideLine:le,showRemove:e?.content?.length>0,banner:xe,error:we,customFooter:q%5!=0&&1!==I||O||H!==s._X?null:(0,x.jsx)(n.AK,{requestsRemaining:q,onUpgradeClick:je}),lastAction:L})]})})}},3620:(e,t,r)=>{"use strict";r(47143),r(86087),r(27723),r(93832),r(31439),r(72448),r(62614),r(62038)},3696:(e,t,r)=>{"use strict";r.d(t,{EF:()=>n,JA:()=>o,an:()=>s,gI:()=>i,ky:()=>a});const n="jetpack/membership-products",s=0,o=1,i=2,a="tier"},3924:(e,t,r)=>{"use strict";function n(e,t={}){const r={};let n;if("undefined"!=typeof window&&(n=window?.JP_CONNECTION_INITIAL_STATE?.calypsoEnv),0===e.search("https://")){const t=new URL(e);e=`https://${t.host}${t.pathname}`,r.url=encodeURIComponent(e)}else r.source=encodeURIComponent(e);for(const e in t)r[e]=encodeURIComponent(t[e]);!Object.keys(r).includes("site")&&"undefined"!=typeof jetpack_redirects&&Object.hasOwn(jetpack_redirects,"currentSiteRawUrl")&&(r.site=jetpack_redirects.currentBlogID??jetpack_redirects.currentSiteRawUrl),n&&(r.calypso_env=n);return"https://jetpack.com/redirect/?"+Object.keys(r).map(e=>e+"="+r[e]).join("&")}r.d(t,{A:()=>n})},3975:(e,t,r)=>{"use strict";r.d(t,{i:()=>s,y:()=>n});const n={AED:{symbol:"د.إ.‏",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.‏",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.‏",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.‏",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.‏",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.‏",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.‏",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.‏",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.‏",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.‏",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£‏",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.‏",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function s(e){return n[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},4167:(e,t,r)=>{"use strict";r.d(t,{G:()=>s});var n=r(27723);const __=n.__,s=["seo-title","seo-meta-description","images-alt-text"];__("SEO title","jetpack"),__("SEO description","jetpack"),__("Image alt text","jetpack")},4187:(e,t,r)=>{"use strict";r.d(t,{Ck:()=>i,wf:()=>o});var n=r(43172);let s=null;const o=async()=>{let e=0;return s=new Promise(t=>{const r=()=>{const s=(0,n.qg)(document.cookie).tk_ai||null;"string"!=typeof s||""===s?99<=e?t(null):(e+=1,setTimeout(r,50)):t(s)};r()}),s},i=async()=>await s},4393:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(96865),s=r(47143),o=r(86087),i=r(10067),a=r.n(i),c=r(62402),l=r(64425),u=r(16597),d=r(32735);const p=a()("jetpack-ai-assistant:error"),h=({attributes:e,clientId:t,content:r,tracks:i,userPrompt:a,onSuggestionDone:h,onUnclearPrompt:m,onModeration:g,requireUpgrade:f,initialRequestingState:b,contentRef:v,blockRef:y})=>{const[k,x]=(0,o.useState)(!1),[w,_]=(0,o.useState)(""),{updateBlockAttributes:j}=(0,s.useDispatch)("core/block-editor"),{dequeueAiAssistantFeatureAsyncRequest:A,setAiAssistantFeatureRequireUpgrade:C}=(0,s.useDispatch)("wordpress-com/plans"),{snapToBottom:S,enableAutoScroll:E,disableAutoScroll:T}=(0,d.A)(y,v),N=(0,s.useSelect)(e=>e("core/editor").getEditedPostAttribute("title")),P=(0,s.useSelect)(e=>e("core/editor").getCurrentPostId()),L=(0,o.useRef)([]),R=(0,o.useRef)(void 0),{request:D,stopSuggestion:F,handleErrorQuotaExceededError:B,requestingState:I,error:M}=(0,n.o2)({onSuggestion:e=>{j(t,{content:e?.replaceAll(l.uV,"")}),S()},onDone:(e,r)=>{const n=e.replaceAll(l.uV,""),s={role:"assistant",content:n};L.current.push(R.current,s),L.current.length>20&&L.current.splice(0,L.current.length-20),j(t,{content:n,messages:L.current}),S(),T(),h?.(r)},onStop:()=>{S(),T(),h?.()},onError:e=>{switch(e?.code){case n.cT:x(!1);break;case n.ud:x(!1),g?.();break;case n.mA:case n.AZ:x(!0);break;case n.Or:x(!1),C(!0);break;case n.L9:m?.()}},onAllErrors:e=>{p(e)},initialRequestingState:b,askQuestionOptions:{postId:P,feature:"ai-assistant",functions:{}}}),U=["requesting","suggesting"].includes(I),O=async(s,o={})=>{if(A(),f)return B(),void x(!1);if(o={retryRequest:!1,tone:c.US,...o},U)return;x(!1);let d=w;if(i.recordEvent("jetpack_ai_chat_completion",{post_id:P}),L.current=[...e.messages],R.current={},o.retryRequest)R.current=d[d.length-1];else{const i=e?.isLayoutBuldingModeEnable?(0,u.rJ)(t):(0,u.aB)();d=(0,l.jf)({generatedContent:r,allPostContent:i,postContentAbove:(0,u.b$)(t),currentPostTitle:N,options:o,userPrompt:o?.userPrompt||a,type:s,isGeneratingTitle:e.promptType===n.vE}),R.current=d.pop(),d=[...d,...L.current],d.push(R.current),_(d),e.promptType!==n.vE&&j(t,{promptType:s})}try{E(),await D(d)}catch(e){p(e),x(!0),T()}};return{setShowRetry:x,showRetry:k,postTitle:N,contentBefore:(0,u.b$)(t),wholeContent:(0,u.aB)(),requestingState:I,error:M,getSuggestionFromOpenAI:O,stopSuggestion:F,retryRequest:()=>O("",{retryRequest:!0})}}},4416:(e,t,r)=>{"use strict";var n=r(56427),s=r(10790);n.SVG,n.Path,n.Rect},4567:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>o});var n=r(3975),s=r(18360);function o(e,t,r={}){const o=(0,n.i)(t);if(!o||isNaN(e))return null;const{decimal:i,grouping:a,precision:c,symbol:l}={...o,...r},u=e<0?"-":"";let d=(0,s.A)(Math.abs(e),c,i,a);return r.stripZeros&&(d=function(e,t){const r=new RegExp(`\\${t}0+$`);return e.replace(r,"")}(d,i)),`${u}${l}${d}`}},4595:(e,t,r)=>{"use strict";var n=r(94375),s=r(86525),o=r(40118),i=r(10790);(0,n.M)(s,{edit:o.A,save:()=>(0,i.jsx)("div",{id:"Tock_widget_container","data-tock-display-mode":"Button","data-tock-color-mode":"Blue","data-tock-locale":"en-us","data-tock-timezone":"America/New_York"})})},4647:(e,t,r)=>{"use strict";r.d(t,{P:()=>s});var n=r(96865);const s=e=>{const t=(0,n._G)().filter(e=>"core/image"===e.name);let r=0;return e=(e=e.replace(/]*>.*?<\/figcaption>/g,"")).replace(//gs,()=>{const e=t[r];return r++,e?``:""})}},4867:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(10067),s=r.n(n),o=r(43984),i=r(74977),a=r(38344);const c=s()("ai-client:chrome-ai-factory");async function l(e){if(!await(0,i.O)())return c("Chrome AI is not available"),!1;const t={content:"",language:""};let r="",n=null,s=null;if(c("promptArg",e),Array.isArray(e))for(let o=0;o.75){r.sourceLanguage=e.detectedLanguage;break}c("languageOpts",r);const s=await self.Translator.availability(r);if(c("translationAvailability",s),"unavailable"===s)return c("Translator is unavailable"),!1;return new a.A({content:t.content,promptType:o.Gm,options:r})}if(r.startsWith("ai-content-lens")){if(!("Summarizer"in self))return c("Summarizer is not available"),!1;if(t.language&&"en (English)"!==t.language)return c("Summary is not English"),!1;c("awaiting detector detect");const e=await u.detect(t.content);for(const t of e)if(t.confidence>.75&&"en"!==t.detectedLanguage)return c("Confidence for non-English content"),!1;const r={tone:n,wordCount:s};c("summaryOpts",r);const i={content:t.content,promptType:o.UA,options:r};return c("chromeAiEventSourceOpts",i),new a.A(i)}return!1}},5146:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(56427),s=r(27723),o=r(67858),i=r(84605),a=r(10790);const __=s.__,c="videopress/video-chapters",l=!!window?.Jetpack_Editor_Initial_State?.available_blocks[c],u=31;function d({isRequestingVideoItem:e}){const{attributes:t,setAttributes:r}=(0,i.A)();if(!l)return null;const{title:s,description:d}=t,p=(0,o.m)(c),h=d?.length?d.split("\n").map(e=>Math.ceil(e.length/u)||1).reduce((e,t)=>e+t,0):4,m=Math.min(12,Math.max(h,4));return(0,a.jsxs)(n.PanelBody,{title:__("Details","jetpack"),className:p?"is-beta":"",children:[(0,a.jsx)(n.TextControl,{label:__("Title","jetpack"),value:s,placeholder:__("Video title","jetpack"),onChange:e=>{r({title:e})},disabled:e,__next40pxDefaultSize:!0}),(0,a.jsx)(n.TextareaControl,{label:__("Description","jetpack"),value:d,placeholder:__("Video description","jetpack"),onChange:e=>{r({description:e})},disabled:e,rows:m})]})}},5163:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(57462),s=r(10790);const o={attributes:{url:{type:"string"}},supports:{align:!1,html:!1},save:({attributes:e,className:t})=>{const{url:r}=e;return(0,n.C)(r)?(0,s.jsx)("div",{className:t,children:(0,s.jsx)("a",{"data-pin-do":(0,n.C)(r),href:r})}):null}}},5236:(e,t,r)=>{"use strict";r.d(t,{S:()=>i,r:()=>o});var n=r(70263);function s(e,t){const r=(t-e.reduce((e,t)=>e+t,0))/e.length;return e.map(e=>e+r)}function o(e,t){!function(e,[t,r],o){const i=1/t*(o-n.hE*(e.childElementCount-1)-r);!function(e,{rawHeight:t,rowWidth:r}){const o=a(e),i=o.map(e=>(t-n.hE*(e.childElementCount-1))*l(e)[0]),d=s(i,r);o.forEach((e,r)=>{const o=i[r],a=d[r];!function(e,{colHeight:t,width:r,rawWidth:n}){const o=c(e).map(e=>n/u(e)),i=s(o,t);Array.from(e.children).forEach((e,t)=>{const n=i[t];e.setAttribute("style",`height:${n}px;width:${r}px;`)})}(e,{colHeight:t-n.hE*(e.childElementCount-1),width:a,rawWidth:o})})}(e,{rawHeight:i,rowWidth:o-n.hE*(e.childElementCount-1)})}(e,function(e){const t=a(e).map(l).reduce(([e,t],[r,n])=>[e+r,t+n],[0,0]);return t}(e),t)}function i(e){return Array.from(e.querySelectorAll(".tiled-gallery__row"))}function a(e){return Array.from(e.querySelectorAll(".tiled-gallery__col"))}function c(e){return Array.from(e.querySelectorAll(".tiled-gallery__item > img, .tiled-gallery__item > a > img"))}function l(e){const t=c(e),r=t.length,n=1/t.map(u).reduce((e,t)=>e+1/t,0);return[n,n*r||1]}function u(e){const t=parseInt(e.dataset.width,10),r=parseInt(e.dataset.height,10);return t&&!Number.isNaN(t)&&r&&!Number.isNaN(r)?t/r:1}},5383:(e,t,r)=>{"use strict";r.d(t,{U:()=>l,W:()=>u});var n=r(27723),s=r(97969),o=r(28310),i=r(55903),a=r(36270),c=r(85154);const __=n.__,l="button",u={apiVersion:3,title:__("Button","jetpack"),icon:a.A,category:(0,s.A)("design","layout"),keywords:[],supports:{html:!1,inserter:!1,align:["left","center","right"],typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{color:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}}},styles:[{name:"fill",label:__("Fill","jetpack"),isDefault:!0},{name:"outline",label:__("Outline","jetpack")}],selectors:{border:".wp-block-jetpack-button .wp-block-button__link"},attributes:o.A,edit:i.A,save:c.A,usesContext:["jetpack/parentBlockWidth"]}},5389:(e,t,r)=>{"use strict";r.d(t,{$H:()=>b,FN:()=>m,I3:()=>h,LR:()=>f,PC:()=>p,ST:()=>d,bY:()=>v,mA:()=>k,wB:()=>y,y7:()=>g});var n=r(39384),s=r(47143),o=r(86087),i=r(27723),a=r(66087),c=r(34377),l=r(42470),u=r(27534);const __=i.__,d=()=>(0,o.useContext)(u.C),p=e=>{const[t,r]=(0,o.useState)(!1),[i,a]=(0,o.useState)(!1),[u,d]=(0,o.useState)(null),[p,h]=(0,o.useState)(null),[m,g]=(0,o.useState)(null);return(0,o.useEffect)(()=>{const t=(0,s.select)(n.CONNECTION_STORE_ID).getBlogId(),{currentDoc:o,currentWindow:i}=(0,c.sG)(e.current);if(e.current){h(i),g(o);const e=__("Failed to retrieve a Mapkit API token. Please try refreshing.","jetpack");i.mapkit?(d(i.mapkit),(0,l.IR)(i.mapkit,t,i).then(()=>{r(!0)},()=>{a(e)})):(0,l.Yc)(o,i).then(n=>{d(n),(0,l.IR)(n,t,i).then(()=>{r(!0)},()=>{a(e)})})}},[e]),{loaded:t,error:i,mapkit:u,currentDoc:m,currentWindow:p}},h=(e,t,r)=>{const[n,s]=(0,o.useState)(null);return(0,o.useEffect)(()=>{e&&t&&s(new e.Map(r.current,{showsMapTypeControl:!1}))},[e,t,r]),{map:n}},m=(e,t)=>{const{mapkit:r,map:n}=d(),s=(0,o.useRef)(e),i=(0,o.useRef)(t);(0,o.useEffect)(()=>{if(!r||!n||!s.current)return;const e=s.current?.lat??s.current?.latitude,t=s.current?.lng??s.current?.longitude;"number"==typeof e&&"number"==typeof t&&(n.center=new r.Coordinate(e,t))},[r,n,s]),(0,o.useEffect)(()=>{if(!r||!n)return;const e=()=>{if(n.center){const{latitude:e,longitude:t}=n.center;i.current({lat:e,lng:t})}};return n.addEventListener("region-change-end",(0,a.debounce)(e,1e3)),()=>{n.removeEventListener("region-change-end",e)}},[r,n,i])},g=e=>{const{mapkit:t,map:r}=d();(0,o.useEffect)(()=>{t&&r&&(r.mapType=(()=>{switch(e){case"satellite":return t.Map.MapTypes.Satellite;case"black_and_white":return t.Map.MapTypes.MutedStandard;case"hybrid":return t.Map.MapTypes.Hybrid;default:return t.Map.MapTypes.Standard}})())},[t,r,e])},f=(e,t)=>{const{mapkit:r,map:n,points:s}=d();(0,o.useEffect)(()=>{if(r&&n)if(s&&s.length<=1){const t=(0,l.c6)(13,n.center.latitude);if(e){const t=(0,l.c6)(e,n.center.latitude);t!==n.cameraDistance&&(n.cameraDistance=t)}else t!==n.cameraDistance&&(n.cameraDistance=t);n.isZoomEnabled=!0,n.isScrollEnabled=!0}else n.region=(0,l.nQ)(r,s),n.isZoomEnabled=!1,n.isScrollEnabled=!1},[r,n,e,s]),(0,o.useEffect)(()=>{const e=()=>{t((0,l.Sm)(n.cameraDistance,n.center.latitude))};return n.addEventListener("zoom-end",e),()=>{n.removeEventListener("zoom-end",e)}},[r,n,t])},b=(e,t,r=null,n=null)=>{const{mapkit:s,map:i,loaded:a,currentWindow:c}=d(),l=(0,o.useRef)(r),u=(0,o.useRef)(n);(0,o.useEffect)(()=>{if(a){i.annotations.filter(t=>!e.find(e=>e.id===t.data.id)).forEach(e=>i.removeAnnotation(e));const r=e.map(e=>{const r=i.annotations.find(t=>t.data.id===e.id);if(r)return r.title=e.title,r.color=t,r;const n=new s.MarkerAnnotation(new s.Coordinate(e.coordinates.latitude,e.coordinates.longitude),{color:t,data:{id:e.id}});return n.calloutEnabled=!0,n.title=e.title,l.current&&(n.callout={calloutElementForAnnotation:l.current}),u.current&&n.addEventListener("select",()=>u.current(e,i)),n});i.annotations.length!==r.length&&i.showItems(new c.Array(...r))}},[e,a,i,s,t,l,u,c])},v=e=>{const{map:t,loaded:r}=d(),n=(0,o.useRef)(e);(0,o.useEffect)(()=>{r&&n.current(t)},[r,t,n])},y=e=>{const{map:t,previousCenter:r,loaded:n}=d(),s=(0,o.useRef)(e);(0,o.useEffect)(()=>{n&&t.addEventListener("single-tap",()=>{s.current(r)})},[n,t,r,s])},k=(e,t)=>{const{mapkit:r,map:n}=d();(0,o.useEffect)(()=>{if(r&&n&&e?.length){(new r.Geocoder).lookup(e,(e,r)=>{if(r?.results?.length){const e=r.results[0],n=e.formattedAddress,s={placeTitle:n,title:n,caption:n,coordinates:{longitude:e.coordinate.longitude,latitude:e.coordinate.latitude},id:`${n} ${Number(e.coordinate.latitude).toFixed(2)} ${Number(e.coordinate.longitude).toFixed(2)}`};t.current([s])}})}},[r,n,e,t])}},5525:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(63162),s=r(86087),o=r(27723),i=r(14936),a=r(70263),c=r(69291),l=r(58070),u=r(45726),d=r(10790);const __=o.__;class p extends s.Component{photonize({height:e,width:t,url:r}){if(!r)return;if((0,n.isBlobURL)(r)||/^https?:\/\/localhost/.test(r))return r;const s=r.split("?",1)[0],o=function(e){const{host:t}=new URL(e,window.location.href);return/\.files\.wordpress\.com$/.test(t)}(r)?m:i.A,{layoutStyle:c}=this.props;if(h(c)&&t&&e){const r=Math.min(a.rK,t,e);return o(s,{resize:`${r},${r}`})}return o(s)}renderImage(e,t){const{images:r,linkTo:n,selectedImage:s}=this.props,i=(0,o.sprintf)(/* translators: %1$d is the order number of the image, %2$d is the total number of images. */ __("image %1$d of %2$d in gallery","jetpack"),t+1,r.length);return(0,d.jsx)(c.A,{alt:e.alt,"aria-label":i,height:e.height,id:e.id,origUrl:e.url,isSelected:s===t,link:e.link,linkTo:n,url:this.photonize(e),width:e.width},t)}render(){const{align:e,children:t,className:r,columns:n,images:s,layoutStyle:o}=this.props,i=h(o)?u.A:l.A,a=this.props.images.map(this.renderImage,this);return(0,d.jsxs)("div",{className:r,children:[(0,d.jsx)(i,{align:e,columns:n,images:s,layoutStyle:o,renderedImages:a}),t]})}}function h(e){return["circle","square"].includes(e)}function m(e,t={}){const r={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},n=Object.assign(new URL(e,window.location.href),{username:"",password:"",port:"",search:"",hash:""});for(const[e,s]of Object.entries(t))n.searchParams.set(Object.hasOwn(r,e)?r[e]:e,s);return n.toString()}},5564:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/gif","title":"GIF","description":"Search for and insert an animated image.","keywords":["animated","giphy","image"],"version":"12.5.0","textdomain":"jetpack","category":"embed","icon":"","supports":{"html":false,"align":true},"attributes":{"align":{"type":"string","default":"center"},"caption":{"type":"string"},"giphyUrl":{"type":"string"},"searchText":{"type":"string"},"paddingTop":{"type":"string","default":"56.2%"}},"example":{"attributes":{"align":"center","giphyUrl":"https://giphy.com/embed/fxKWgoOG9hzPPkE1oc","paddingTop":"100%","searchText":"WordPress"}}}')},5573:e=>{"use strict";e.exports=window.wp.primitives},5765:(e,t,r)=>{"use strict";r(98490)},5840:(e,t,r)=>{"use strict";function n(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}r.d(t,{A:()=>n})},5873:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(94715),s=r(74997),o=r(56427),i=r(47143),a=r(86087),c=r(27723),l=r(48558),u=r(13022),d=r(66087),p=r(10790);const __=c.__,h=({attributes:e,styleOption:t,viewportWidth:r,blockName:o})=>{const i=(0,s.getBlockType)(o);return(0,p.jsx)(n.BlockPreview,{viewportWidth:r,blocks:(a=i.example?(0,s.getBlockFromExample)(o,{attributes:{...i.example.attributes,style:t.value},innerBlocks:i.example.innerBlocks}):(0,s.createBlock)(o,e),{...a,attributes:{...a.attributes,__isBlockPreview:!0}})});var a},m=a.memo?(0,a.memo)(h,(e,t)=>(0,d.isEqual)(e,t)):h;function g({attributes:e,clientId:t,styleOptions:r,onSelectStyle:s,activeStyle:a,viewportWidth:c,title:d}){const h=(0,i.useSelect)(e=>{const{getBlock:r}=e("core/block-editor");return r(t)});return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(n.BlockControls,{children:(0,p.jsx)(o.ToolbarGroup,{isCollapsed:!0,icon:"admin-appearance",label:__("Style","jetpack"),controls:r.map(e=>({title:e.label,isActive:e.value===a,onClick:()=>s({style:e.value})})),popoverProps:{className:"jetpack-block-styles-selector-toolbar"}})}),(0,p.jsx)(n.InspectorControls,{children:(0,p.jsx)(o.PanelBody,{title:d||__("Styles","jetpack"),children:(0,p.jsx)("div",{className:"block-editor-block-styles jetpack-block-styles-selector",children:r.map(t=>{const r={...e,style:t.value};return(0,p.jsxs)("div",{className:(0,u.A)("block-editor-block-styles__item",{"is-active":t.value===a}),onClick:()=>{s({style:t.value})},onKeyDown:e=>{l.ENTER!==e.keyCode&&l.SPACE!==e.keyCode||(e.preventDefault(),s({style:t.value}))},role:"button",tabIndex:"0","aria-label":t.label,children:[(0,p.jsx)("div",{className:"block-editor-block-styles__item-preview",children:t.preview?t.preview:h&&(0,p.jsx)(m,{blockName:h.name,styleOption:t,attributes:r,viewportWidth:c})}),(0,p.jsx)("div",{className:"block-editor-block-styles__item-label",children:t.label})]},t.value)})})})})]})}},6019:(e,t,r)=>{"use strict";r.d(t,{Q:()=>i});var n=r(56427),s=r(78867),o=r(10790);const i=({variant:e="error"})=>{const t=(0,s.A)();return"muted"===e?(0,o.jsx)("span",{className:"jetpack-ai-fair-usage-notice-muted-variant",children:t}):"error"===e?(0,o.jsx)(n.Notice,{status:"error",isDismissible:!1,className:"jetpack-ai-fair-usage-notice",children:t}):null}},6149:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(85985),s=r(56427),o=r(27723),i=r(73800),a=r(10790);const __=o.__,_x=o._x,c=(0,n.sh)(i);function l({className:e,onSubmit:t,noticeUI:r,url:n,setUrl:o}){return(0,a.jsx)("div",{className:e,children:(0,a.jsx)(s.Placeholder,{label:__("Pinterest","jetpack"),icon:c,notices:r,children:(0,a.jsxs)("form",{onSubmit:e=>{e.preventDefault(),t()},children:[(0,a.jsx)("input",{type:"url",value:n,className:"components-placeholder__input","aria-label":__("Pinterest URL","jetpack"),placeholder:__("Enter URL to embed here…","jetpack"),onChange:e=>o(e.target.value)}),(0,a.jsx)(s.Button,{variant:"secondary",type:"submit",children:_x("Embed","button label","jetpack")})]})})})}},6199:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(86087),s=r(57500),o=r(14561),i=r(10790);const a=(0,n.forwardRef)((e,t)=>{if("mapkit"===e.mapProvider){const r={...e,ref:null};return(0,i.jsx)(o.A,{...r,ref:t})}return(0,i.jsx)(s.A,{...e,ref:t})})},6363:(e,t,r)=>{"use strict";function n(e){return{type:"SET_BUSY",isBusy:e}}function s(e){return{type:"SET_TITLE_BUSY",isBusy:e}}function o(e){return{type:"SET_DESCRIPTION_BUSY",isBusy:e}}function i(e){return{type:"SET_IS_TOGGLING_AUTO_ENHANCE",isToggling:e}}function a(e){return{type:"SET_IS_AUTO_ENHANCE_ENABLED",isEnabled:e}}function c(e,t){return{type:"SET_IMAGE_BUSY",clientId:e,isBusy:t}}function l(e,t){return{type:"SET_IMAGE_FAILED",clientId:e,failed:t}}function u(e,t){return{type:"SET_FEATURE_ENABLED",feature:e,enabled:t}}r.r(t),r.d(t,{setBusy:()=>n,setDescriptionBusy:()=>o,setFeatureEnabled:()=>u,setImageBusy:()=>c,setImageFailed:()=>l,setIsAutoEnhanceEnabled:()=>a,setIsTogglingAutoEnhance:()=>i,setTitleBusy:()=>s})},6454:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(86087),s=r(27723),o=r(13022),i=r(41314),a=r(7957),c=r(52537),l=r(62579),u=r(58711),d=r(10790);const __=s.__;class p extends n.Component{renderImage(e,t){const{columns:r,imageFilter:n,images:o,isSave:i,linkTo:l,layoutStyle:u,onMoveBackward:p,onMoveForward:h,onRemoveImage:m,onSelectImage:g,selectedImage:f,setImageAttributes:b}=this.props,v=(0,s.sprintf)(/* translators: %1$d is the order number of the image, %2$d is the total number of images. */ __("image %1$d of %2$d in gallery","jetpack"),t+1,o.length),{src:y,srcSet:k}=(0,c.A)(e,{layoutStyle:u});return(0,d.jsx)(a.A,{alt:e.alt,"aria-label":v,columns:r,height:e.height,id:e.id,imageFilter:n,isFirstItem:0===t,isLastItem:t+1===o.length,isSelected:f===t,link:e.link,linkTo:l,onMoveBackward:i?void 0:p(t),onMoveForward:i?void 0:h(t),onRemove:i?void 0:m(t),onSelect:i?void 0:g(t),origUrl:e.url,setAttributes:i?void 0:b(t),showMovers:o.length>1,srcSet:k,url:y,width:e.width},t)}render(){const{align:e,children:t,className:r,columns:n,images:s,layoutStyle:a,roundedCorners:p,onResize:h,isSave:m,columnWidths:g}=this.props,f=(0,c.s)(a)?u.A:l.A,b=this.props.images.map(this.renderImage,this),v=a!==i.aQ?Math.min(p,i.WN):0;return(0,d.jsxs)("div",{className:(0,o.A)(r,{[`has-rounded-corners-${v}`]:v>0}),children:[(0,d.jsx)(f,{align:e,columns:n,columnWidths:m?g:void 0,images:s,layoutStyle:a,renderedImages:b,onResize:m?void 0:h}),t]})}}},6650:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(85985),s=r(94715),o=r(29491),i=r(86087),a=r(333),c=r(95104),l=r(10790);const u=(0,o.createHigherOrderComponent)(e=>t=>{const{name:r}=(0,s.useBlockEditContext)(),o=(0,n.GT)(r);if(!o?.mediaPlaceholder||!(0,n.W4)(r))return(0,l.jsx)(e,{...t});const{fileType:u}=o,{onError:d}=t,{onBannerVisibilityChange:p}=(0,i.useContext)(c.j),h=(0,i.useCallback)(e=>p(e?.length&&(0,a.wc)(e[0],u)),[u,p]),m=(0,i.useCallback)(e=>{const t=e?.[0]?.props?.children;return(0,a.wc)(t,u)?h([t]):d(e)},[h,u,d]);return(0,l.jsx)("div",{className:"paid-block-media-placeholder",children:(0,l.jsx)(e,{...t,onFilesPreUpload:h,onError:m})})},"withMediaPlaceholderUpgradable")},6754:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(56427),s=r(13022),o=r(10790);function i({state:e}){return(0,o.jsx)("div",{className:(0,s.A)("jetpack-ai-status-indicator__icon-wrapper",{[`is-${e}`]:!0}),children:(0,o.jsx)(n.Spinner,{})})}},6852:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/map","title":"Map","description":"Add an interactive map showing one or more locations.","keywords":["maps","location","navigation"],"version":"12.5.0","textdomain":"jetpack","category":"embed","icon":"","supports":{"defaultStylePicker":false,"html":false},"attributes":{"align":{"type":"string"},"points":{"type":"array","default":[]},"address":{"type":"string","default":""},"mapDetails":{"type":"boolean","default":true},"zoom":{"type":"integer","default":13},"mapCenter":{"type":"object","default":{"longitude":-122.41941550000001,"latitude":37.7749295}},"markerColor":{"type":"string","default":"red"},"scrollToZoom":{"type":"boolean","default":false},"mapHeight":{"type":"integer"},"showFullscreenButton":{"type":"boolean","default":true}},"example":{}}')},7105:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(58105);function s(e,t){if(!e.md.options.html)return!1;const r=e.posMax,s=e.pos;if(60!==e.src.charCodeAt(s)||s+2>=r)return!1;const o=e.src.charCodeAt(s+1);if(33!==o&&63!==o&&47!==o&&!function(e){const t=32|e;return t>=97&&t<=122}(o))return!1;const i=e.src.slice(s).match(n.l);if(!i)return!1;if(!t){const t=e.push("html_inline","",0);t.content=i[0],a=t.content,/^\s]/i.test(a)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(t.content)&&e.linkLevel--}var a;return e.pos+=i[0].length,!0}},7237:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(30724);function s(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(r){e[r]=t[r]})}),e}function o(e){return Object.prototype.toString.call(e)}function i(e){return"[object Function]"===o(e)}function a(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const c={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};const l={"http:":{validate:function(e,t,r){const n=e.slice(t);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(n)?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,r){const n=e.slice(t);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){const n=e.slice(t);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0}}},u="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function d(e){const t=e.re=(0,n.A)(e.__opts__),r=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");const c=[];function l(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){const r=e.__schemas__[t];if(null===r)return;const n={validate:null,link:null};if(e.__compiled__[t]=n,"[object Object]"===o(r))return!function(e){return"[object RegExp]"===o(e)}(r.validate)?i(r.validate)?n.validate=r.validate:l(t,r):n.validate=function(e){return function(t,r){const n=t.slice(r);return e.test(n)?n.match(e)[0].length:0}}(r.validate),void(i(r.normalize)?n.normalize=r.normalize:r.normalize?l(t,r):n.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===o(e)}(r)?l(t,r):c.push(t)}),c.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};const u=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(a).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+u+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+u+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function p(e,t){const r=e.__index__,n=e.__last_index__,s=e.__text_cache__.slice(r,n);this.schema=e.__schema__.toLowerCase(),this.index=r+t,this.lastIndex=n+t,this.raw=s,this.text=s,this.url=s}function h(e,t){const r=new p(e,t);return e.__compiled__[r.schema].normalize(r,e),r}function m(e,t){if(!(this instanceof m))return new m(e,t);var r;t||(r=e,Object.keys(r||{}).reduce(function(e,t){return e||c.hasOwnProperty(t)},!1)&&(t=e,e={})),this.__opts__=s({},c,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=s({},l,e),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},d(this)}m.prototype.add=function(e,t){return this.__schemas__[e]=t,d(this),this},m.prototype.set=function(e){return this.__opts__=s(this.__opts__,e),this},m.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let t,r,n,s,o,i,a,c,l;if(this.re.schema_test.test(e))for(a=this.re.schema_search,a.lastIndex=0;null!==(t=a.exec(e));)if(s=this.testSchemaAt(e,t[2],a.lastIndex),s){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+s;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=e.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c=0&&null!==(n=e.match(this.re.email_fuzzy))&&(o=n.index+n[1].length,i=n.index+n[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=i))),this.__index__>=0},m.prototype.pretest=function(e){return this.re.pretest.test(e)},m.prototype.testSchemaAt=function(e,t,r){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,r,this):0},m.prototype.match=function(e){const t=[];let r=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(h(this,r)),r=this.__last_index__);let n=r?e.slice(r):e;for(;this.test(n);)t.push(h(this,r)),n=n.slice(this.__last_index__),r+=this.__last_index__;return t.length?t:null},m.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const t=this.re.schema_at_start.exec(e);if(!t)return null;const r=this.testSchemaAt(e,t[2],t[0].length);return r?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+r,h(this,0)):null},m.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,r){return e!==r[t-1]}).reverse(),d(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,d(this),this)},m.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},m.prototype.onCompile=function(){};const g=m},7326:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),s=r(10790);const o=(0,s.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(n.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"})})},7345:(e,t,r)=>{"use strict";r.d(t,{A:()=>o,j:()=>s});var n=r(83112);const s=!!window?.Jetpack_Editor_Initial_State?.available_blocks["videopress/video-chapters"];function o(e,t){if(!s)return e;if("core/video"!==t)return e;const r={...e.attributes,title:{type:"string"},description:{type:"string"}};return{...e,attributes:r,edit:(0,n.A)(e.edit)}}},7528:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(29491),s=r(86087);function o(){const[e,t]=(0,s.useState)(),r=(0,n.useRefEffect)(r=>{const n=()=>{const n=getComputedStyle(r),s=n.backgroundColor,o=n.color;s===e?.fallbackBackgroundColor&&o===e?.fallbackTextColor||t({fallbackBackgroundColor:s,fallbackTextColor:o})},s=new MutationObserver(n);return s.observe(r,{attributeFilter:["style","class"]}),n(),()=>{s.disconnect()}},[]);return[e,r]}},7598:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),s=r(10790);const o=(0,s.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(n.Path,{d:"m3 12 1 8h1.5l-1-8H3Zm15.8-2h-4.4l.8-3.6c.3-1.3-.7-2.4-1.9-2.4h-.2c-.6 0-1.2.3-1.6.8l-5 6.6c-.3.4-.4.8-.4 1.2v.2l.7 5.4v.2c.2.9 1 1.5 1.9 1.5h8.2c.9 0 1.7-.6 1.9-1.4l1.8-6c.4-1.3-.6-2.6-1.9-2.6Zm.5 2.1-1.8 6c0 .2-.3.4-.5.4H8.8c-.3 0-.5-.2-.5-.4l-.7-5.4v-.4l5-6.6c0-.1.2-.2.4-.2h.2c.3 0 .6.3.5.6l-.8 3.6c-.1.4 0 .9.3 1.3s.7.6 1.2.6h4.4c.3 0 .6.3.5.6Z"})})},7675:(e,t,r)=>{"use strict";r.d(t,{y:()=>c});var n=r(76416),s=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s{const b=Object.assign({},c);let v;function y(){v.abort(),document.hidden||A()}b.accept||(b.accept=o),m||document.addEventListener("visibilitychange",y);let k=i,x=0;function w(){document.removeEventListener("visibilitychange",y),window.clearTimeout(x),v.abort()}null==r||r.addEventListener("abort",()=>{w(),t()});const _=null!=g?g:window.fetch,j=null!=u?u:l;async function A(){var r;v=new AbortController;try{const r=await _(e,Object.assign(Object.assign({},f),{headers:b,signal:v.signal}));await j(r),await(0,n.q5)(r.body,(0,n.iv)((0,n.VL)(e=>{e?b[a]=e:delete b[a]},e=>{k=e},d))),null==p||p(),w(),t()}catch(e){if(!v.signal.aborted)try{const t=null!==(r=null==h?void 0:h(e))&&void 0!==r?r:k;window.clearTimeout(x),x=window.setTimeout(A,t)}catch(e){w(),s(e)}}}A()})}function l(e){const t=e.headers.get("content-type");if(!(null==t?void 0:t.startsWith(o)))throw new Error(`Expected content-type to be ${o}, Actual: ${t}`)}},7804:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(86087),s=r(27723),o=r(10067),i=r.n(o),a=r(57745);const __=s.__,c=i()("jetpack-ai-client:use-audio-transcription"),l=e=>{if("string"==typeof e)return e;if("code"in e)switch(e.code){case"error_quota_exceeded":return __("You exceeded your current quota, please check your plan details.","jetpack");case"jetpack_ai_missing_audio_param":return __("The audio_file is required to perform a transcription.","jetpack");case"jetpack_ai_service_unavailable":return __("The Jetpack AI service is temporarily unavailable.","jetpack");case"file_size_not_supported":return __("The provided audio file is too big.","jetpack");case"file_type_not_supported":return __("The provided audio file type is not supported.","jetpack");case"jetpack_ai_error":return __("There was an error processing the transcription request.","jetpack");default:return e.message}return"message"in e?e.message:__("There was an error processing the transcription request.","jetpack")};function u({feature:e,onReady:t,onError:r}){const[s,o]=(0,n.useState)(""),[i,u]=(0,n.useState)(""),[d,p]=(0,n.useState)(!1),h=(0,n.useRef)(null);return{transcriptionResult:s,isTranscribingAudio:d,transcriptionError:i,transcribeAudio:(0,n.useCallback)(n=>{c("Transcribing audio"),o(""),u(""),p(!0);const s=new AbortController;h.current=s,(0,a.A)(n,e,s.signal).then(e=>{o(e),t?.(e)}).catch(e=>{s.signal.aborted||(u(e.message),r?.(l(e)))}).finally(()=>p(!1))},[a.A,o,u,p]),cancelTranscription:(0,n.useCallback)(()=>{h.current?.abort(),o(""),u(""),p(!1)},[h,o,u,p])}}},7957:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(63162),s=r(13022),o=r(10790);function i(e){const{alt:t,imageFilter:r,height:i,id:a,link:c,linkTo:l,origUrl:u,url:d,width:p}=e;if((0,n.isBlobURL)(u))return null;let h;switch(l){case"media":h=u;break;case"attachment":h=c}const m=(0,o.jsx)("img",{alt:t,"data-height":i,"data-id":a,"data-link":c,"data-url":u,"data-width":p,src:d,"data-amp-layout":"responsive"});return(0,o.jsx)("figure",{className:(0,s.A)("tiled-gallery__item",{[`filter__${r}`]:!!r}),children:h?(0,o.jsx)("a",{href:h,children:m}):m})}},8079:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}}},8100:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(79018),s=r(10790);const o={attributes:n.attributes,migrate:e=>{const{style:t,className:r}=e,n="standard"===t?"":`is-style-${t}`;return{...e,className:r?`${r} ${n}`:n}},isEligible:({style:e,className:t})=>!(!e||"standard"===e)&&(!t||-1===t.indexOf("is-style-")),save:({attributes:{rid:e}})=>(0,s.jsx)("div",{children:e.map(e=>(0,s.jsx)("a",{href:`https://www.opentable.com/restref/client/?rid=${e}`,children:`https://www.opentable.com/restref/client/?rid=${e}`},e))})}},8206:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/rating-star","title":"Star Rating","description":"Rate movies, books, songs, recipes — anything you can put a number on.","keywords":["star","rating","review"],"version":"12.5.0","textdomain":"jetpack","category":"widgets","icon":"","supports":{"html":false},"styles":[{"name":"filled","label":"Filled","isDefault":true},{"name":"outlined","label":"Outlined"}],"attributes":{"rating":{"type":"number","default":1},"maxRating":{"type":"number","default":5},"color":{"type":"string"},"ratingStyle":{"type":"string","default":"star"},"className":{"type":"string"},"align":{"type":"string","default":"left"}},"example":{}}')},8663:(e,t,r)=>{"use strict";r.d(t,{g:()=>o});var n=r(47143),s=r(52998);class o extends s.mt{jetpackFormBlockName="jetpack/contact-form";constructor(e){super(e,[]),this.behavior=this.handleBehavior,this.isChildBlock=!0,this.hideOnBlockFocus=!1}handleBehavior=({context:e})=>{const t=(0,n.dispatch)("core/block-editor"),{getBlockParentsByBlockName:r}=(0,n.select)("core/block-editor"),s=r(this.clientId,this.jetpackFormBlockName)?.[0];t.selectBlock(s),e?.[this.jetpackFormBlockName]?.handleAskAiAssistant?.()}}},8746:(e,t,r)=>{"use strict";r.d(t,{Bs:()=>i,Uc:()=>s,hc:()=>o,rG:()=>a});var n=r(94715);const s=!!n.__experimentalUseGradient,o=5,i=50,a=0},8859:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(54439);function s(e,t,r,s){let o,i=t;const a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(s)a.str=s.str,a.marker=s.marker;else{if(i>=r)return a;let n=e.charCodeAt(i);if(34!==n&&39!==n&&40!==n)return a;t++,i++,40===n&&(n=41),a.marker=n}for(;i{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/business-hours","title":"Business Hours","description":"Display opening hours for your business.","keywords":["opening hours","closing time","schedule","working day"],"version":"12.5.0","textdomain":"jetpack","category":"grow","icon":"","supports":{"html":true,"color":{"gradients":true},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true},"align":["wide","full"]},"attributes":{"days":{"type":"array","default":[{"name":"Sun","hours":[]},{"name":"Mon","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Tue","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Wed","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Thu","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Fri","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Sat","hours":[]}]}},"example":{"attributes":{"days":[{"name":"Sun","hours":[]},{"name":"Mon","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Tue","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Wed","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Thu","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Fri","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Sat","hours":[]}]}}}')},9061:(e,t,r)=>{"use strict";r.d(t,{C:()=>n.C,x:()=>n.x});var n=r(9520)},9190:(e,t,r)=>{"use strict";r.r(t),r.d(t,{attributes:()=>s,save:()=>n.A,support:()=>o});var n=r(39805);const s={align:{default:"center",type:"string"},className:{default:`is-style-${r(70263).T$}`,type:"string"},columns:{type:"number"},ids:{default:[],type:"array"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},caption:{selector:"figcaption",source:"html",type:"string"},height:{attribute:"data-height",selector:"img",source:"attribute",type:"number"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},linkTo:{default:"none",type:"string"}},o={align:["center","wide","full"],customClassName:!1,html:!1}},9216:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(86087),s=r(16815);class o extends n.Component{componentDidMount(){const{mapboxgl:e}=this.props;this.el=document.createElement("DIV"),this.infowindow=(0,s.BY)(e),this.infowindow.setDOMContent(this.el),this.infowindow.on("close",this.closeClick)}componentDidUpdate(e){this.props.activeMarker!==e.activeMarker&&(this.props.activeMarker?this.openWindow():this.closeWindow())}render(){return this.el?(0,n.createPortal)(this.props.children,this.el):null}closeClick=()=>{this.props.unsetActiveMarker()};openWindow(){const{map:e,activeMarker:t}=this.props;this.infowindow.setLngLat(t.getPoint()).addTo(e)}closeWindow(){this.infowindow.remove()}}o.defaultProps={unsetActiveMarker:()=>{},activeMarker:null,map:null,mapboxgl:null};const i=o},9276:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(13022),s=r(10790);function o({children:e,className:t}){return(0,s.jsx)("div",{className:(0,n.A)("tiled-gallery__row",t),children:e})}},9405:(e,t,r)=>{"use strict";r.d(t,{Gz:()=>o.Gz});var n,s,o=r(3175);r(97187),r(26834);!function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(n||(n={})),function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"}(s||(s={}))},9455:(e,t,r)=>{"use strict";r.r(t),r.d(t,{attributes:()=>i.A,save:()=>c,supports:()=>a.A});var n=r(94715),s=r(71071),o=r(10790),i=r(77294),a=r(82233);const c=({attributes:{align:e,autoplay:t,delay:r,effect:i,images:a},className:c})=>{const l=n.useBlockProps.save({className:c});return(0,o.jsx)(s.A,{align:e,autoplay:t,className:l.className,delay:r,effect:i,images:a})}},9520:(e,t,r)=>{"use strict";r.d(t,{C:()=>d,x:()=>u});var n=r(97999),s=r(10067),o=r.n(s);const i=window?.JP_CONNECTION_INITIAL_STATE,a=o()("shared-extension-utils:connection");let c=!1;const l=e=>{c||(a(e),c=!0)};function u(){return(0,n.isSimpleSite)()?(l("Simple site connected ✅"),!0):(0,n.isWoASite)()?(l("Atomic site connected ✅"),!0):i?.connectionStatus?.isUserConnected?(l("Jetpack user is connected ✅"),!0):(l("User is not connected ❌"),!1)}function d(){if((0,n.isSimpleSite)())return!0;return!1==!(i?.userConnectionData?.currentUser?.permissions??{}).manage_options}},9522:(e,t,r)=>{"use strict";r.d(t,{G:()=>a});var n=r(50723),s=r(11876),o=r(56427),i=r(10790);const a=()=>(0,i.jsx)(n.Ay,{children:(0,i.jsxs)(o.Placeholder,{children:[(0,i.jsxs)(o.Flex,{gap:2,direction:"column",style:{flexBasis:"33.3%",padding:"0 1em"},children:[(0,i.jsx)(o.FlexItem,{children:(0,i.jsx)(s.A,{width:"100%",height:30})}),(0,i.jsx)(o.FlexItem,{children:(0,i.jsx)(s.A,{width:"100%",height:90})})]}),(0,i.jsxs)(o.Flex,{gap:2,direction:"column",style:{flexBasis:"33.3%",padding:"0 1em"},children:[(0,i.jsx)(o.FlexItem,{children:(0,i.jsx)(s.A,{width:"100%",height:30})}),(0,i.jsx)(o.FlexItem,{children:(0,i.jsx)(s.A,{width:"100%",height:90})})]}),(0,i.jsxs)(o.Flex,{gap:2,direction:"column",style:{flexBasis:"33.3%",padding:"0 1em"},children:[(0,i.jsx)(o.FlexItem,{children:(0,i.jsx)(s.A,{width:"100%",height:30})}),(0,i.jsx)(o.FlexItem,{children:(0,i.jsx)(s.A,{width:"100%",height:90})})]})]})})},9624:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(19362),s=r(22746),o=r(9938);const i={storeAiAssistantFeature:e=>({type:o.UU,feature:e}),fetchAiAssistantFeature:()=>async({dispatch:e})=>{e({type:o.ql});try{const t=await(0,s.A)({path:"/wpcom/v2/jetpack-ai/ai-assistant-feature",query:"force=wpcom"});if(t.data)throw new Error("Failed to fetch");e(i.storeAiAssistantFeature(function(e){return{hasFeature:!!e["has-feature"],isOverLimit:!!e["is-over-limit"],requestsCount:e["requests-count"],requestsLimit:e["requests-limit"],requireUpgrade:!!e["site-require-upgrade"],errorMessage:e["error-message"],errorCode:e["error-code"],upgradeType:e["upgrade-type"],usagePeriod:{currentStart:e["usage-period"]?.["current-start"],nextStart:e["usage-period"]?.["next-start"],requestsCount:e["usage-period"]?.["requests-count"]||0},currentTier:e["current-tier"],nextTier:e["next-tier"],tierPlansEnabled:!!e["tier-plans-enabled"],costs:e.costs,featuresControl:e["features-control"]}}(t)))}catch(t){e({type:o.Rx,error:t})}},increaseAiAssistantRequestsCount:(e=1)=>({dispatch:t})=>{t({type:o.Lg,count:e})},setAiAssistantFeatureRequireUpgrade:(e=!0)=>({type:o.Kt,requireUpgrade:e}),setTierPlansEnabled:(e=!0)=>({type:o.c1,tierPlansEnabled:e}),setSiteDetails:e=>({type:o.Bz,siteDetails:e}),setSelectedLogoIndex:e=>({type:o.BG,selectedLogoIndex:e}),addLogoToHistory:e=>({type:o.sG,logo:e}),setIsSavingLogoToLibrary:e=>({type:o.E6,isSavingLogoToLibrary:e}),setIsApplyingLogo:e=>({type:o.Ep,isApplyingLogo:e}),updateSelectedLogo:(e,t)=>({type:o.r_,mediaId:e,url:t}),setIsRequestingImage:e=>({type:o.vk,isRequestingImage:e}),setIsEnhancingPrompt:e=>({type:o.O5,isEnhancingPrompt:e}),loadLogoHistory(e){const t=(0,n.$t)(e);return{type:o.ZI,history:t}},setFeatureFetchError:e=>({type:o.Rx,error:e}),setFirstLogoPromptFetchError:e=>({type:o.MQ,error:e}),setEnhancePromptFetchError:e=>({type:o.gG,error:e}),setLogoFetchError:e=>({type:o.q_,error:e}),setSaveToLibraryError:e=>({type:o.x0,error:e}),setLogoUpdateError:e=>({type:o.FN,error:e}),setContext:e=>({type:o.kZ,context:e}),setIsLoadingHistory:e=>({type:o.hY,isLoadingHistory:e})},a=i},9695:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(85985),s=r(94715),o=r(56427),i=r(86087),a=r(27723),c=r(13022),l=r(5564),u=r(26053),d=r(86121),p=r(65465),h=r(38770),m=r(10790);const __=a.__,g=(0,n.sh)(l);const f=function({attributes:e,setAttributes:t,isSelected:r}){const{align:n,caption:a,giphyUrl:f,searchText:b,paddingTop:v}=e,[y,k]=(0,i.useState)(!1),x=(0,i.createRef)(),{isFetching:w,giphyData:_,fetchGiphyData:j}=(0,p.A)(),A=(0,s.useBlockProps)(),C=()=>{x.current.focus(),k(!1)};(0,i.useEffect)(()=>{_&&_[0]&&t((0,h.Er)(_[0]))},[_,t]);const S=async t=>{if(t.preventDefault(),!e.searchText||w)return;const r=await(0,h.ID)(e.searchText);r&&j(r)},E=e=>t({searchText:e.target.value});return(0,m.jsxs)("div",{...A,className:(0,c.A)(A.className,`align${n}`),children:[(0,m.jsx)(d.A,{}),f?(0,m.jsxs)("figure",{children:[r&&(0,m.jsx)(u.A,{onSubmit:S,onChange:E,value:b,ref:x}),r&&_&&_.length>1&&(0,m.jsx)("div",{className:"wp-block-jetpack-gif_thumbnails-container",children:_.map(e=>{const r={backgroundImage:`url(${e.images.downsized_still.url})`};return(0,m.jsx)("button",{className:"wp-block-jetpack-gif_thumbnail-container",onClick:r=>{r.preventDefault(),(e=>{t((0,h.Er)(e))})(e)},style:r},e.id)})}),(0,m.jsxs)("div",{className:"wp-block-jetpack-gif-wrapper",style:{paddingTop:v},children:[(0,m.jsx)("div",{className:"wp-block-jetpack-gif_cover",onClick:C,onKeyDown:C,role:"button",tabIndex:"0"}),(0,m.jsx)("iframe",{src:f,title:b})]}),(!s.RichText.isEmpty(a)||r)&&!!f&&(0,m.jsx)(s.RichText,{className:"wp-block-jetpack-gif-caption gallery-caption",inlineToolbar:!0,isSelected:y,onFocus:()=>k(!1),onChange:e=>t({caption:e}),placeholder:__("Write caption…","jetpack"),tagName:"figcaption",value:a})]}):(0,m.jsx)(o.Placeholder,{className:"wp-block-jetpack-gif_placeholder",icon:g,label:l.title,instructions:__("Search for a term or paste a Giphy URL","jetpack"),children:(0,m.jsx)(u.A,{onSubmit:S,onChange:E,value:b,ref:x})})]})}},9731:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var n=r(96865),s=r(85985),o=r(56427),i=r(86087),a=r(27723),c=r(17913),l=r(52259),u=r(10067),d=r.n(u),p=r(31124),h=r(89872),m=r(10790);const __=a.__,g=d()("jetpack-ai:image-extension-toolbar-dropdown"),f=(0,i.forwardRef)(({onClose:e,onRequestAltText:t,onRequestCaption:r,loadingAltText:s,loadingCaption:a},u)=>{const{requireUpgrade:d}=(0,n.yM)(),p=(0,i.useCallback)(async n=>{try{n===h.X?await(t?.()):await(r?.()),e?.()}catch(e){g("Error generating %s",n,e)}},[t,r,e]);return(0,m.jsx)("div",{className:"jetpack-ai-assistant-image-toolbar-dropdown-wrapper",tabIndex:-1,ref:u,children:(0,m.jsxs)(o.MenuGroup,{children:[(0,m.jsx)(o.MenuItem,{icon:s?(0,m.jsx)(o.Spinner,{}):l.A,iconPosition:"left",onClick:()=>{p(h.X)},disabled:!!s||d,children:__("Generate alt text","jetpack")},"key-ai-assistant-alt-text"),(0,m.jsx)(o.MenuItem,{icon:a?(0,m.jsx)(o.Spinner,{}):c.A,iconPosition:"left",onClick:()=>{p(h.Q)},disabled:!!a||d,children:__("Generate caption","jetpack")},"key-ai-assistant-caption")]})})});function b({label:e=__("AI Assistant","jetpack"),onRequestAltText:t,onRequestCaption:r,loadingAltText:o=!1,loadingCaption:a=!1,disabled:c=!1,wrapperRef:l}){const{requireUpgrade:u}=(0,n.yM)(),{tracks:d}=(0,s.st)(),h=(0,i.useCallback)(e=>{e&&(d.recordEvent("jetpack_ai_assistant_extension_toolbar_menu_show",{block_type:"core/image"}),u&&(0,n.Fs)())},[u,d]),g=(0,i.useCallback)(()=>(d.recordEvent("jetpack_editor_ai_assistant_extension_toolbar_button_click",{suggestion:"alt-text",block_type:"core/image"}),t?.()),[t,d]),b=(0,i.useCallback)(()=>(d.recordEvent("jetpack_editor_ai_assistant_extension_toolbar_button_click",{suggestion:"caption",block_type:"core/image"}),r?.()),[r,d]);return(0,m.jsx)(p.A,{label:e,behavior:"dropdown",onDropdownToggle:h,disabled:c,renderContent:({onClose:e})=>(0,m.jsx)(f,{ref:l,onClose:e,onRequestAltText:g,onRequestCaption:b,loadingAltText:o,loadingCaption:a})})}},9847:(e,t,r)=>{"use strict";r.d(t,{e:()=>s});var n=r(93832);const s=(e,{autoplay:t,controls:r,loop:s,muted:o,playsinline:i,poster:a,preload:c,seekbarColor:l,seekbarPlayedColor:u,seekbarLoadingColor:d})=>{if(!e)return null;const p={resizeToParent:!0,cover:!0,...t&&{autoPlay:!0},...!r&&{controls:!1},...s&&{loop:!0},...o&&{muted:!0,persistVolume:!1},...i&&{playsinline:!0},...a&&{posterUrl:a},..."none"!==c&&{preloadContent:c},...""!==l&&{sbc:l},...""!==u&&{sbpc:u},...""!==d&&{sblc:d}};return(0,n.addQueryArgs)(`https://videopress.com/v/${e}`,p)}},9888:(e,t,r)=>{"use strict";function n(e){return["columns","circle","square"].includes(e)}r.d(t,{o:()=>n})},9938:(e,t,r)=>{"use strict";r.d(t,{BG:()=>h,Bz:()=>c,E6:()=>g,Ep:()=>f,FN:()=>S,GB:()=>l,Kt:()=>i,Lg:()=>o,MQ:()=>_,O5:()=>y,Rx:()=>w,UU:()=>n,ZI:()=>k,c1:()=>a,gG:()=>j,hY:()=>x,kZ:()=>p,mx:()=>d,nb:()=>u,q_:()=>A,ql:()=>s,r_:()=>b,sG:()=>m,vk:()=>v,x0:()=>C});const n="STORE_AI_ASSISTANT_FEATURE",s="REQUEST_AI_ASSISTANT_FEATURE",o="INCREASE_AI_ASSISTANT_REQUESTS_COUNT",i="SET_AI_ASSISTANT_FEATURE_REQUIRE_UPGRADE",a="SET_TIER_PLANS_ENABLED",c="SET_SITE_DETAILS",l=20,u=3e3,d=3,p="SET_CONTEXT",h="SET_SELECTED_LOGO_INDEX",m="ADD_LOGO_TO_HISTORY",g="SET_IS_SAVING_LOGO_TO_LIBRARY",f="SET_IS_APPLYING_LOGO",b="SAVE_SELECTED_LOGO",v="SET_IS_REQUESTING_IMAGE",y="SET_IS_ENHANCING_PROMPT",k="SET_SITE_HISTORY",x="SET_IS_LOADING_HISTORY",w="SET_FEATURE_FETCH_ERROR",_="SET_FIRST_LOGO_PROMPT_FETCH_ERROR",j="SET_ENHANCE_PROMPT_FETCH_ERROR",A="SET_LOGO_FETCH_ERROR",C="SET_SAVE_TO_LIBRARY_ERROR",S="SET_LOGO_UPDATE_ERROR"},10067:(e,t,r)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,s=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(s=n))}),t.splice(s,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(78926)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},10179:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(94715),s=r(27723),o=r(10790);const __=s.__;function i({isGradientAvailable:e,backgroundColor:t,fallbackBackgroundColor:r,fallbackTextColor:s,gradientValue:i,setBackgroundColor:a,setGradient:c,setTextColor:l,textColor:u}){const d=(0,o.jsx)(n.ContrastChecker,{backgroundColor:t.color,fallbackBackgroundColor:r,fallbackTextColor:s,isLargeText:!1,textColor:u.color});return e?(0,o.jsx)(n.__experimentalPanelColorGradientSettings,{settings:[{colorValue:u.color,label:__("Text Color","jetpack"),onColorChange:l},{colorValue:t.color,gradientValue:i,label:__("Background","jetpack"),onColorChange:a,onGradientChange:c}],title:__("Background & Text Color","jetpack"),children:d}):(0,o.jsx)(n.PanelColorSettings,{colorSettings:[{value:u.color,onChange:l,label:__("Text Color","jetpack")},{value:t.color,onChange:a,label:__("Background","jetpack")}],title:__("Background & Text Color","jetpack"),children:d})}},10309:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(86087),s=r(27723),o=r(13022),i=r(35463),a=r(26539),c=r(60918),l=r(90256),u=r(31238),d=r(56366),p=r(10790);const __=s.__;class h extends n.Component{renderImage(e,t){const{columns:r,imageFilter:n,images:o,isSave:i,linkTo:u,layoutStyle:d,onMoveBackward:h,onMoveForward:m,onRemoveImage:g,onSelectImage:f,selectedImage:b,setImageAttributes:v}=this.props,y=(0,s.sprintf)(/* translators: %1$d is the order number of the image, %2$d is the total number of images. */ __("image %1$d of %2$d in gallery","jetpack"),t+1,o.length),k=i?c.A:a.A,{src:x,srcSet:w}=(0,l.A)(e,{layoutStyle:d});return(0,p.jsx)(k,{alt:e.alt,"aria-label":y,columns:r,height:e.height,id:e.id,imageFilter:n,isFirstItem:0===t,isLastItem:t+1===o.length,isSelected:b===t,link:e.link,linkTo:u,customLink:e.customLink,onMoveBackward:i?void 0:h(t),onMoveForward:i?void 0:m(t),onRemove:i?void 0:g(t),onSelect:i?void 0:f(t),origUrl:e.url,setAttributes:i?void 0:v(t),showMovers:o.length>1,srcSet:w,url:x,width:e.width},t)}render(){const{align:e,children:t,className:r,columns:n,images:s,layoutStyle:a,roundedCorners:c,onResize:h,style:m,isSave:g,columnWidths:f}=this.props,b=(0,l.s)(a)?d.A:u.A,v=this.props.images.map(this.renderImage,this),y=a!==i.aQ?Math.min(c,i.WN):0;return(0,p.jsxs)("div",{style:m,className:(0,o.A)(r,{[`has-rounded-corners-${y}`]:y>0}),children:[(0,p.jsx)(b,{align:e,columns:n,columnWidths:g?f:void 0,images:s,layoutStyle:a,renderedImages:v,onResize:g?void 0:h}),t]})}}},10602:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(9190),s=r(72203),o=r(52516),i=r(24753),a=r(62554),c=r(59679),l=r(75e3);const u=[r(20837),l,c,a,i,o,s,n]},10676:(e,t,r)=>{"use strict";function n(e){return"object"==typeof e&&null!==e}function s(e){return"string"==typeof e&&""!==e&&/^[a-z0-9_]*$/.test(e)}function o(e){if(!function(e){return n(e)&&s(e.experimentName)&&(s(e.variationName)||null===e.variationName)&&"number"==typeof e.retrievedTimestamp&&"number"==typeof e.ttl&&0!==e.ttl}(e))throw new Error("Invalid ExperimentAssignment");return e}r.d(t,{Eo:()=>s,Gv:()=>n,zV:()=>o})},10781:(e,t,r)=>{"use strict";r.d(t,{_O:()=>k});var n=r(52494),s=r(82701),o=r(91016),i=r(33765),a=r(45369),c=r(10851);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),d(this,t,[e,r=f(f({},y),r)])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),r=t,o=[{key:"terminate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=f(f({},y),t),s.A.terminate(e,t)}}],(n=null)&&u(r.prototype,n),o&&u(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(s.A);"function"==typeof XMLHttpRequest&&"function"==typeof Blob&&Blob.prototype.slice},10790:e=>{"use strict";e.exports=window.ReactJSXRuntime},10821:(e,t,r)=>{"use strict";r.d(t,{Bi:()=>a});var n=r(85985),s=r(74997),o=r(47143);const i=(0,r(48499).C)("ai-assistant-support");function a(){if(!(0,s.getBlockType)("jetpack/ai-assistant"))return!1;if(!i)return!1;if(!(0,n.xI)())return!1;const{getHiddenBlockTypes:e}=(0,o.select)("core/edit-post")||{};return!(e?.()||[]).includes("jetpack/ai-assistant")}},10851:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function s(e,t){for(var r=0;ru,o:()=>l});var i=!1;try{i="localStorage"in window;var a="tusSupport",c=localStorage.getItem(a);localStorage.setItem(a,c),null===c&&localStorage.removeItem(a)}catch(e){if(e.code!==e.SECURITY_ERR&&e.code!==e.QUOTA_EXCEEDED_ERR)throw e;i=!1}var l=i,u=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"findAllUploads",value:function(){var e=this._findEntries("tus::");return Promise.resolve(e)}},{key:"findUploadsByFingerprint",value:function(e){var t=this._findEntries("tus::".concat(e,"::"));return Promise.resolve(t)}},{key:"removeUpload",value:function(e){return localStorage.removeItem(e),Promise.resolve()}},{key:"addUpload",value:function(e,t){var r=Math.round(1e12*Math.random()),n="tus::".concat(e,"::").concat(r);return localStorage.setItem(n,JSON.stringify(t)),Promise.resolve(n)}},{key:"_findEntries",value:function(e){for(var t=[],r=0;r{"use strict";r.d(t,{A:()=>o});const n={};function s(e,t,r){"string"!=typeof t&&(r=t,t=s.defaultChars),void 0===r&&(r=!0);const o=function(e){let t=n[e];if(t)return t;t=n[e]=[];for(let e=0;e<128;e++){const r=String.fromCharCode(e);/^[0-9a-z]$/i.test(r)?t.push(r):t.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2))}for(let r=0;r=55296&&s<=57343){if(s>=55296&&s<=56319&&t+1=56320&&r<=57343){i+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}i+="%EF%BF%BD"}else i+=encodeURIComponent(e[t])}return i}s.defaultChars=";/?:@&=+$,-_.!~*'()#",s.componentChars="-_.!~*'()";const o=s},11114:(e,t,r)=>{"use strict";r.d(t,{X:()=>w});var n=r(85985),s=r(56427),o=r(27723),i=r(51113),a=r(19783),c=r(10067),l=r.n(c),u=r(51609),d=r(66223),p=r(21902),h=r(61356),m=r(60674),g=r(88725),f=r(44461),b=r(6019),v=r(64024),y=r(10790);const __=o.__,k=l()("jetpack-ai-calypso:prompt-box"),x=({prompt:e="",setPrompt:t=()=>{},disabled:r=!1,actionDisabled:n=!1,generateHandler:o=()=>{},placeholder:i="",buttonLabel:a=""})=>{const c=(0,u.useRef)(null);(0,u.useEffect)(()=>{c.current&&c.current.textContent!==e&&(c.current.textContent=e)},[e]);return(0,y.jsxs)("div",{className:"jetpack-ai-image-generator__prompt-query",children:[(0,y.jsx)("div",{role:"textbox",tabIndex:0,ref:c,contentEditable:!r,suppressContentEditableWarning:!0,className:"prompt-query__input",onInput:e=>{t(e.target.textContent||"")},onPaste:e=>{e.preventDefault();const r=e.currentTarget.ownerDocument.getSelection();if(!r||!r.rangeCount)return;const n=e.clipboardData.getData("text/plain");r.deleteFromDocument();r.getRangeAt(0).insertNode(document.createTextNode(n)),r.collapseToEnd(),t(c.current?.textContent||"")},onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),o()),e.stopPropagation()},onKeyUp:()=>{""===c.current?.textContent&&(c.current.innerHTML="")},"data-placeholder":i}),(0,y.jsx)(s.Button,{variant:"primary",className:"jetpack-ai-image-generator__prompt-submit",onClick:o,disabled:n,children:a||__("Generate","jetpack")})]})},w=({initialPrompt:e=""})=>{const{tracks:t}=(0,n.st)(),{recordEvent:r}=t,[c,l]=(0,u.useState)(e),[w,_]=(0,u.useState)(0),{enhancePromptFetchError:j,logoFetchError:A}=(0,f.A)(),{nextTierCheckoutURL:C,hasNextTier:S}=(0,m.Q)(),E=c?.length>=h.N3,[T,N]=(0,u.useState)(!1),[P,L]=(0,u.useState)(null),[R,D]=(0,u.useState)([]),{generateLogo:F,enhancePrompt:B,setIsEnhancingPrompt:I,isBusy:M,isEnhancingPrompt:U,site:O,getAiAssistantFeature:z,requireUpgrade:q,context:$,tierPlansEnabled:H,imageStyles:V,guessStyle:G}=(0,g.A)(),W=__("Enhancing…","jetpack"),Z=__("Enhance prompt","jetpack"),J=U?W:Z,K=(0,u.useRef)(null),Y=(0,u.useCallback)(async()=>{k("Enhancing prompt",c),I(!0),r(h.vm,{context:$,tool:"enhance-prompt"});try{const e=await B({prompt:c});l(e),I(!1)}catch(e){k("Error enhancing prompt",e),I(!1)}},[$,B,c,I]),Q=z(String(O?.id||"")),X=Q?.currentTier?.value||0,ee=Q?.usagePeriod?.requestsCount||0,te=1===X;(0,u.useEffect)(()=>{_(X-ee<=0?0:X-ee)},[X,ee]),(0,u.useEffect)(()=>{K.current&&K.current.textContent!==c&&(K.current.textContent=c)},[c]),(0,u.useEffect)(()=>{V&&V.length>0?(D([V.find(({value:e})=>e===d.Hu),V.find(({value:e})=>e===d.Wp),...V.filter(({value:e})=>![d.Hu,d.Wp].includes(e))].filter(e=>e)),N(!0),L(d.Hu)):(D([]),N(!1),L(null))},[V]);const re=(0,u.useCallback)(async()=>{if(k($),P===d.Wp){I(!0),r(h.Tk,{context:$,tool:"image"});const e=await G(c)||d.Hu;L(e),r(h.vm,{context:$,tool:"image",style:e}),I(!1),F({prompt:c,style:e})}else r(h.vm,{context:$,tool:"image",style:P}),F({prompt:c,style:P})},[$,F,c,P]),ne=(0,u.useCallback)(e=>{k("change style",e),L(e),r(h.UO,{context:$,style:e})},[$,L,r]);return(0,y.jsxs)("div",{className:"jetpack-ai-logo-generator__prompt",children:[(0,y.jsxs)("div",{className:"jetpack-ai-logo-generator__prompt-header",children:[(0,y.jsx)("div",{className:"jetpack-ai-logo-generator__prompt-label",children:__("Describe your site:","jetpack")}),(0,y.jsx)("div",{className:"jetpack-ai-logo-generator__prompt-actions",children:(0,y.jsxs)(s.Button,{variant:"link",disabled:M||q||!E,onClick:Y,children:[(0,y.jsx)(p.A,{}),J]})}),T&&(0,y.jsx)(s.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:P,options:R,onChange:ne,disabled:M||q})]}),(0,y.jsx)(x,{prompt:c,setPrompt:l,generateHandler:re,disabled:M||q,actionDisabled:M||q||!E,placeholder:__("Describe your site or simply ask for a logo specifying some details about it","jetpack")}),(0,y.jsxs)("div",{className:"jetpack-ai-logo-generator__prompt-footer",children:[!te&&!q&&(0,y.jsxs)("div",{className:"jetpack-ai-logo-generator__prompt-requests",children:[(0,y.jsx)("div",{children:(0,o.sprintf)( // translators: %d is the number of requests __("%d requests remaining.","jetpack"),w)}),S&&(0,y.jsxs)(y.Fragment,{children:[" ",(0,y.jsx)(s.Button,{variant:"link",href:C,target:"_blank",onClick:()=>{r(h.AN,{context:$,placement:h.Cn})},children:(0,y.jsx)("span",{children:__("Upgrade","jetpack")})})]})," ",(0,y.jsx)(s.Tooltip,{text:__("Logo generation costs 10 requests; prompt enhancement costs 1 request each","jetpack"),placement:"bottom",children:(0,y.jsx)(i.A,{className:"prompt-footer__icon",icon:a.A})})]}),q&&H&&(0,y.jsx)(v.G,{}),q&&!H&&(0,y.jsx)(b.Q,{}),j&&(0,y.jsx)("div",{className:"jetpack-ai-logo-generator__prompt-error",children:__("Error enhancing prompt. Please try again.","jetpack")}),A&&(0,y.jsx)("div",{className:"jetpack-ai-logo-generator__prompt-error",children:__("Error generating logo. Please try again.","jetpack")})]})]})}},11148:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});var n=r(85985),s=r(94715),o=r(56427),i=r(86087),a=r(27723),c=r(13022),l=r(66087),u=r(78218),d=r(89525),p=r(80427),h=r(57926),m=r(86975),g=r(49783),f=r(53495),b=r(80619),v=r(10790);const __=a.__,y=(0,o.withNotices)(e=>{const t=(0,s.useBlockProps)(),{attributes:r,isSelected:a,noticeOperations:y,noticeUI:k,setAttributes:x}=e,{accessToken:w,align:_,columns:j,count:A,isStackedOnMobile:C,spacing:S}=r;(0,i.useEffect)(()=>{const e=(0,u.y)(d.attributes,r);(0,l.isEqual)(e,r)||x(e)},[r,x]);const[E,T]=(0,i.useState)(w),{isRequestingWpcomConnectUrl:N,wpcomConnectUrl:P}=(0,f.A)(),{images:L,isLoadingGallery:R,setImages:D}=(0,b.A)({accessToken:w,noticeOperations:y,setAttributes:x,setSelectedAccount:T}),{connectToService:F,disconnectFromService:B,isConnecting:I,isRequestingUserConnections:M,userConnections:U}=(0,g.A)({accessToken:w,noticeOperations:y,selectedAccount:E,setAttributes:x,setImages:D,setSelectedAccount:T}),O=(0,n.gB)(),z=A>L.length?L.length:A,q=!R&&(!w||(0,l.isEmpty)(L)),$=!q,H=w&&R&&(0,l.isEmpty)(L),V=!q&&!H,G=(0,c.A)(t.className,{[`align${_}`]:_}),W=(0,c.A)("wp-block-jetpack-instagram-gallery__grid",`wp-block-jetpack-instagram-gallery__grid-columns-${j}`,{"is-stacked-on-mobile":C}),Z={gridGap:S,"--latest-instagram-posts-spacing":S?`${S}px`:void 0},J={padding:S},K=e=>{if(L[e]){const t=L[e];return(0,v.jsx)(m.A,{alt:t.title||t.url,src:t.url,attributes:r,spacing:S})}return(0,v.jsx)("img",{alt:__("Latest Instagram Posts placeholder","jetpack"),src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNMyc2tBwAEOgG/c94mJwAAAABJRU5ErkJggg=="})},Y=()=>{E&&p.B!==E?x({accessToken:E,instagramUser:U.find(e=>e.token===E).username}):F()};return(0,v.jsxs)("div",{...t,className:G,children:[q&&(0,v.jsx)(o.Placeholder,{icon:"instagram",instructions:O?M||U.length?void 0:__("Connect to Instagram to start sharing your images.","jetpack"):__("First, you'll need to connect your WordPress.com account.","jetpack"),label:__("Latest Instagram Posts","jetpack"),notices:k,children:O?(()=>{const e=U.length>0,t=[...U.map(e=>({label:`@${e.username}`,value:e.token})),{label:__("Add a new account","jetpack"),value:p.B}],r=I||M||e&&!E;return(0,v.jsxs)("div",{children:[e&&(0,v.jsx)(o.RadioControl,{label:__("Select your Instagram account:","jetpack"),onChange:e=>T(e),options:t,selected:E}),p.B===E&&(0,v.jsx)("p",{className:"wp-block-jetpack-instagram-gallery__new-account-instructions",children:__("If you are currently logged in to Instagram on this device, you might need to log out of it first.","jetpack")}),(0,v.jsxs)(o.Button,{disabled:r,variant:"primary",onClick:Y,children:[I&&__("Connecting…","jetpack"),M&&__("Loading your connections…","jetpack"),!I&&!M&&__("Connect to Instagram","jetpack")]})]})})():(0,v.jsx)(o.Button,{disabled:N||!P,href:P,variant:"secondary",children:__("Connect to WordPress.com","jetpack")})}),H&&(0,v.jsxs)("div",{className:"wp-block-embed is-loading",children:[(0,v.jsx)(o.Spinner,{}),(0,v.jsx)("p",{children:__("Embedding…","jetpack")})]}),V&&(0,v.jsx)("div",{className:W,style:Z,children:Array.from(Array(a?A:z),(e,t)=>(0,v.jsx)("span",{className:(0,c.A)("wp-block-jetpack-instagram-gallery__grid-post"),style:J,children:K(t)},t))}),$&&(0,v.jsx)(s.InspectorControls,{children:(0,v.jsx)(h.A,{accountImageTotal:L.length,attributes:r,currentUserConnected:O,disconnectFromService:B,shouldRenderSidebarNotice:$&&!H&&L.length{"use strict";function n(e){let t,r;const n=e.tokens,s=n.length;for(let e=0;en})},11264:e=>{"use strict";var t=256,r=[],n=window,s=Math.pow(t,6),o=Math.pow(2,52),i=2*o,a=255,c=Math.random;function l(e){var r,n=e.length,s=this,o=0,i=s.i=s.j=0,c=s.S=[];for(n||(e=[n++]);o=i;)e/=2,r/=2,n>>>=1;return(e+n)/r}},e.exports.resetGlobal=function(){Math.random=c},d(Math.random(),r)},11267:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(23117);const s={sources:{},default:null},o={registerMediaSource:(e,t)=>({type:"REGISTER_MEDIA_SOURCE",id:e,mediaSourceState:t}),updateMediaSourceData:(e,t)=>({type:"UPDATE_MEDIA_SOURCE_DATA",id:e,data:t}),unregisterMediaSource:e=>({type:"UNREGISTER_MEDIA_SOURCE",id:e}),setDefaultMediaSource:e=>({type:"SET_DEFAULT_MEDIA_SOURCE",id:e}),playMediaSource:e=>({type:"SET_MEDIA_PLAYER_STATE",id:e,state:n.v8}),toggleMediaSource:e=>({type:"TOGGLE_MEDIA_PLAYER_STATE",id:e}),pauseMediaSource:e=>({type:"SET_MEDIA_PLAYER_STATE",id:e,state:n.vh}),errorMediaSource:e=>({type:"SET_MEDIA_PLAYER_STATE",id:e,state:n.pF}),setMediaSourceCurrentTime:(e,t)=>({type:"SET_MEDIA_PLAYER_CURRENT_TIME",id:e,currentTime:t})},i={getDefaultMediaSource(e){let t=null;const r=Object.keys(e.sources);if(e.default?t=e.default:r?.length&&(t=e.sources[r[0]].id),t)return e.sources[t]},getMediaPlayerState(e,t){const r=t?e.sources?.[t]:i.getDefaultMediaSource(e);return r?.state},getMediaSourceCurrentTime(e,t){const r=t?e.sources?.[t]:i.getDefaultMediaSource(e);return r?.currentTime},getMediaSourceDuration(e,t){if(!t){const t=i.getDefaultMediaSource(e);return t?.duration}return e.sources?.[t]?.duration},getMediaSourceDomReference(e,t){const r=t?e.sources?.[t]:i.getDefaultMediaSource(e);if(!r)return;const n=r?.domId;return n?document.getElementById(n):void 0}},a={reducer(e=s,t){const r=t.id||e.default||Object.keys(e.sources)?.[0];switch(t.type){case"REGISTER_MEDIA_SOURCE":return{...e,sources:{...e.sources,[t.id]:{id:t.id,...t.mediaSourceState}}};case"UPDATE_MEDIA_SOURCE_DATA":return{...e,sources:{...e.sources,[t.id]:{...e.sources[t.id],...t.data}}};case"UNREGISTER_MEDIA_SOURCE":{const r=Object.assign({},e);return r.sources[t.id]&&delete r.sources[t.id],t.id===e.default&&(r.default=Object.keys(e.sources)?.[0]),r}case"SET_DEFAULT_MEDIA_SOURCE":return{...e,default:t.id};case"SET_MEDIA_PLAYER_STATE":return{...e,sources:{...e.sources,[r]:{...e.sources[r],state:t.state}}};case"TOGGLE_MEDIA_PLAYER_STATE":return{...e,sources:{...e.sources,[r]:{...e.sources[r],state:e.sources[r].state===n.v8?n.vh:n.v8}}};case"SET_MEDIA_PLAYER_CURRENT_TIME":return{...e,sources:{...e.sources,[r]:{...e.sources[r],currentTime:t.currentTime}}}}return e},actions:o,selectors:i}},11269:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),s=r(10790);const o=(0,s.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(n.Path,{d:"m4 5.5h2v6.5h1.5v-6.5h2v-1.5h-5.5zm16 10.5h-16v-1.5h16zm-7 4h-9v-1.5h9z"})})},11452:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(38443),s=r(63673),o=r(49980),i=r(91167);const a=function(){let e,t;const r=()=>{const{l10n:{locale:t}}=(0,n.getSettings)();return(e??(t||window?.window?.navigator?.language)??s.M).split("_")[0]};return{setLocale:t=>{e=t},setGeoLocation:e=>{t=e},formatNumber:(e,{decimals:t=0,forceLatin:n=!0,numberFormatOptions:s={}}={})=>{try{return(0,i.j)({browserSafeLocale:r(),decimals:t,forceLatin:n,numberFormatOptions:s}).format(e)}catch{return String(e)}},formatNumberCompact:(e,{decimals:t=0,forceLatin:n=!0,numberFormatOptions:s={}}={})=>{try{return(0,i.c)({browserSafeLocale:r(),decimals:t,forceLatin:n,numberFormatOptions:s}).format(e)}catch{return String(e)}},formatCurrency:(e,n,{stripZeros:s=!1,isSmallestUnit:i=!1,signForPositive:a=!1,forceLatin:c=!0}={})=>(0,o.u)({number:e,currency:n,browserSafeLocale:r(),stripZeros:s,isSmallestUnit:i,signForPositive:a,geoLocation:t,forceLatin:c}),getCurrencyObject:(e,n,{stripZeros:s=!1,isSmallestUnit:i=!1,signForPositive:a=!1,forceLatin:c=!0}={})=>(0,o.v)({number:e,currency:n,browserSafeLocale:r(),stripZeros:s,isSmallestUnit:i,signForPositive:a,geoLocation:t,forceLatin:c})}}},11497:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(85985),s=r(56427),o=r(86087),i=r(27723),a=r(50347),c=r(7598),l=r(13022),u=r(10790);const __=i.__;function d({disabled:e=!1,iconSize:t=24,ratedItem:r="",feature:i="",savedRatings:d={},options:p={},onRate:h}){if(!function(e){return!0===(0,n.FB)(e).available}("ai-response-feedback"))return null;const[m,g]=(0,o.useState)({}),{tracks:f}=(0,n.st)();(0,o.useEffect)(()=>{const e={...d,...m};JSON.stringify(e)!==JSON.stringify(m)&&g(e)},[d]);const b=e=>!!m[r]&&m[r]===e,v=e=>{const t=e?"thumbs-up":"thumbs-down";b(t)||(g({...m,[r]:t}),h?.(t),f.recordEvent("jetpack_ai_feedback",{type:i,rating:t,media_library_id:p.mediaLibraryId||null,prompt:p.prompt||null,revised_prompt:p.revisedPrompt||null,block:p.block||null}))};return(0,u.jsxs)("div",{className:"ai-assistant-feedback__selection",children:[(0,u.jsx)(s.Tooltip,{text:__("I like this","jetpack"),children:(0,u.jsx)(s.Button,{disabled:e,icon:c.A,onClick:()=>v(!0),iconSize:t,showTooltip:!1,className:(0,l.A)({"ai-assistant-feedback__thumb-selected":b("thumbs-up")})})}),(0,u.jsx)(s.Tooltip,{text:__("I don't find this useful","jetpack"),children:(0,u.jsx)(s.Button,{disabled:e,icon:a.A,onClick:()=>v(!1),iconSize:t,showTooltip:!1,className:(0,l.A)({"ai-assistant-feedback__thumb-selected":b("thumbs-down")})})})]})}},11574:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(10790);const s=()=>(0,n.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"jetpack-ai-logo-generator-icon",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.9291 7.96836L10.7308 17.6492L6.2145 14.2911L7.10952 13.0873L10.4221 15.5504L16.7253 7.07333L17.9291 7.96836Z"})})},11876:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(13022),s=r(13372),o=r(10790);const i=({children:e=null,width:t=null,height:r=null,className:i=""})=>(0,o.jsx)("div",{className:(0,n.A)(s.A.placeholder,i),style:{width:t,height:r},children:e})},11998:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(85985),s=r(94715),o=r(56427),i=r(27723),a=r(13022),c=r(10790);const __=i.__;function l({blockName:e,buttonLabel:t,className:r,href:i,icon:l,onClick:u,readMoreUrl:d,subtitle:p,title:h}){const{autosaveAndRedirect:m}=(0,n.ZR)(i);return(0,c.jsx)(s.Warning,{actions:i&&[(0,c.jsx)(o.Button,{href:i,onClick:t=>{t.preventDefault(),u(e),m(t)},target:"_top",variant:"secondary",className:"jetpack-stripe-nudge__link",children:t},"nudge")],className:(0,a.A)(r,"jetpack-block-nudge wp-block"),children:(0,c.jsxs)("span",{className:"jetpack-block-nudge__info",children:[l,(0,c.jsxs)("span",{className:"jetpack-block-nudge__text-container",children:[(0,c.jsx)("span",{className:"jetpack-block-nudge__title",children:h}),p&&(0,c.jsxs)("span",{className:"jetpack-block-nudge__message",children:[p,d&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("br",{}),(0,c.jsx)(o.ExternalLink,{href:d,children:__("Learn more about the block and fees","jetpack")})]})]})]})]})})}},12074:(e,t,r)=>{"use strict";r.d(t,{HE:()=>a,pG:()=>i,pJ:()=>c});var n=r(74997),s=r(86087),o=r(10790);function i(e,t){const r=(0,o.jsx)("a",{href:e,children:e});t((0,n.createBlock)("core/paragraph",{content:(0,s.renderToString)(r)}))}function a(e){if(!e)return null;const t=e.match(/(\d+)\/?(?:\?[^/]*)?\s*$/);return t&&t[1]?parseInt(t[1],10):null}function c(e=""){return e&&"string"==typeof e?e.trim():null}},12088:(e,t,r)=>{"use strict";var n=r(47143),s=r(23117),o=r(11267);if(void 0!==n.createReduxStore){const e=(0,n.createReduxStore)(s.ax,o.A);(0,n.register)(e)}else(0,n.registerStore)(s.ax,o.A)},12365:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(56427),s=r(86087),o=r(27723),i=r(8746),a=r(10790);const __=o.__;function c({borderRadius:e="",setAttributes:t}){const r=(0,s.useCallback)(e=>t({borderRadius:e}),[t]);return(0,a.jsx)(n.PanelBody,{title:__("Border Settings","jetpack"),children:(0,a.jsx)(n.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,allowReset:!0,initialPosition:i.hc,label:__("Border radius","jetpack"),max:i.Bs,min:i.rG,onChange:r,value:e})})}},12380:(e,t,r)=>{"use strict";r.d(t,{R:()=>s});var n=!1;function s(e){n&&console.log(e)}},12580:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(94715),s=r(29491),o=r(47143),i=r(86087),a=r(27723),c=r(79534),l=r(78715),u=r(10790);const __=a.__,d="editor",p="preview",h=(0,s.compose)([(0,o.withSelect)(e=>({currentBlockId:e("core/block-editor").getSelectedBlockClientId()})),(0,o.withDispatch)((e,{currentBlockId:t})=>({removeBlock:()=>e("core/block-editor").removeBlocks(t)}))])(({attributes:e,setAttributes:t,isSelected:r,removeBlock:s})=>{const{source:o}=e,a=!o||""===o.trim(),h=(0,n.useBlockProps)(),{className:m}=h,[g,f]=(0,i.useState)(d),b=(0,i.useRef)(null),v=e=>t({source:e}),y=e=>{8===e.keyCode&&""===o&&(s(),e.preventDefault())};let k;return(0,i.useEffect)(()=>{r?g===d&&b?.current.focus():g===p&&f(d)},[r,g,f]),k=!r&&a?(0,u.jsx)("p",{className:`${m}__placeholder`,children:__("Write your _Markdown_ **here**…","jetpack")}):(0,u.jsxs)("div",{className:m,children:[(0,u.jsx)(n.BlockControls,{children:(0,u.jsxs)("div",{className:"components-toolbar",children:[(0,u.jsx)(c.A,{className:m,label:__("Markdown","jetpack"),isPressed:g===d,onClick:()=>f(d)}),(0,u.jsx)(c.A,{className:m,label:__("Preview","jetpack"),isPressed:g===p,onClick:()=>f(p)})]})}),g!==p&&r?(0,u.jsx)(n.PlainText,{className:`${m}__editor`,onChange:v,onKeyDown:y,"aria-label":__("Markdown","jetpack"),ref:b,value:o}):(0,u.jsx)(l.A,{className:`${m}__preview`,source:o})]}),(0,u.jsx)("div",{...h,children:k})})},12742:(e,t,r)=>{"use strict";var n=r(94375),s=r(6852),o=r(1807),i=r(43402),a=r(61647),c=r(2194),l=r(62393);(0,n.M)(s,{edit:a.A,save:c.A,styles:l.A,deprecated:[i.A,o.A]})},12804:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(94715),s=r(10790);function o({attributes:e}){const{caption:t,guid:r}=e;if(!r)return null;const o=`https://videopress.com/v/${r}`;return(0,s.jsxs)("figure",{className:"wp-block-embed is-type-video is-provider-videopress",children:[(0,s.jsx)("div",{className:"wp-block-embed__wrapper",children:`\n${o}\n`}),!n.RichText.isEmpty(t)&&(0,s.jsx)(n.RichText.Content,{tagName:"figcaption",value:t})]})}},13014:(e,t,r)=>{"use strict";r.d(t,{A:()=>a,s:()=>i});var n=r(63162),s=r(14936),o=r(60041);function i(e){return["circle","square"].includes(e)}function a(e,t={}){if(!e.height||!e.url||!e.width)return{};if((0,n.isBlobURL)(e.url)||/^https?:\/\/localhost/.test(e.url)||/^https?:\/\/.*\.local\//.test(e.url))return{src:e.url};const r=e.url.split("?",1)[0],{height:a,width:l}=e,{layoutStyle:u}=t,d=function(e){const{host:t}=new URL(e,window.location.href);return/\.files\.wordpress\.com$/.test(t)}(r)||!0===function(){if("undefined"!=typeof jetpack_plan&&"vip"===jetpack_plan.data)return!0}()?c:s.A;let p;if(i(u)&&l&&a){const e=Math.min(o.rK,l,a);p=d(r,{resize:`${e},${e}`})}else p=d(r);let h=[];if(i(u)){const e=Math.min(600,l,a),t=Math.min(o.rK,l,a);for(let n=e;n{"use strict";function n(e){var t,r,s="";if("string"==typeof e||"number"==typeof e)s+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;ts});const s=function(){for(var e,t,r=0,s="",o=arguments.length;r{"use strict";r.d(t,{A:()=>s});var n=r(85985);function s(){return(0,n.$i)()?.jetpack?.is_offline_mode??!1}},13248:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/calendly","title":"Calendly","description":"Embed a calendar for customers to schedule appointments.","keywords":["calendar","schedule","appointments","events","dates"],"version":"12.5.0","textdomain":"jetpack","category":"grow","icon":"","supports":{"align":true,"alignWide":false,"html":false},"attributes":{"backgroundColor":{"type":"string","default":"ffffff"},"hideEventTypeDetails":{"type":"boolean","default":false},"primaryColor":{"type":"string","default":"00A2FF"},"textColor":{"type":"string","default":"4D5055"},"style":{"type":"string","default":"inline","enum":["inline","link"]},"url":{"type":"string"}},"example":{"attributes":{"hideEventTypeDetails":false,"style":"inline","url":"https://calendly.com/wpcom/jetpack-block-example"},"innerBlocks":[{"name":"jetpack/button","attributes":{"element":"a","text":"Schedule time with me","uniqueId":"calendly-widget-id","url":"https://calendly.com/wpcom/jetpack-block-example"}}]}}')},13318:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(54439);function s(e,t,r,s){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.src.charCodeAt(o);if(35!==a||o>=i)return!1;let c=1;for(a=e.src.charCodeAt(++o);35===a&&o6||oo&&(0,n.isSpace)(e.src.charCodeAt(l-1))&&(i=l),e.line=t+1;const u=e.push("heading_open","h"+String(c),1);u.markup="########".slice(0,c),u.map=[t,e.line];const d=e.push("inline","",0);d.content=e.src.slice(o,i).trim(),d.map=[t,e.line],d.children=[];return e.push("heading_close","h"+String(c),-1).markup="########".slice(0,c),!0}},13372:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={placeholder:"NisihrgiIKl_knpYJtfg",pulse:"R2i0K45dEF157drbVRPI"}},13802:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>l,rr:()=>c,y7:()=>i});var n=r(96865),s=r(74997),o=r(54681);const i=["core/heading","core/paragraph","core/list"],a=[];function c(e,t){const{content:r,...i}=t;let a=r;"core/heading"===e&&t?.level&&(a=a.replace(/<(\/?)h\d([^>]*)>/g,`<$1h${t.level}$2>`));const c=(0,n.rh)({content:a}),l=[];return l.push({role:"jetpack-ai",context:{type:"ai-assistant-relevant-content",content:c}}),(0,s.createBlock)(o.name,{...i,content:c,originalContent:c,messages:l,originalMessages:l})}for(const e of i)a.push({type:"block",blocks:[e],isMatch:()=>i.includes(e),transform:(t,r)=>{const n=(0,s.getSaveContent)(e,t,r);return c(e,{...t,content:n})}});const l={from:a}},13858:(e,t,r)=>{"use strict";r.d(t,{T:()=>s});var n=r(48931);async function s({mediaId:e}){const t=Number(e);if(Number.isNaN(t))return!1;try{return await(0,n.A)({path:`/wp/v2/media/${Number(e)}`,method:"GET"}),!0}catch(e){const t=e?.data?.status;if(404===t)return!1;throw e}}},13913:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(63162),s=r(13022),o=r(10790);function i(e){const{alt:t,imageFilter:r,height:i,id:a,link:c,linkTo:l,origUrl:u,url:d,width:p}=e;if((0,n.isBlobURL)(u))return null;let h;switch(l){case"media":h=d;break;case"attachment":h=c}const m=(0,o.jsx)("img",{alt:t,"data-height":i,"data-id":a,"data-link":c,"data-url":u,"data-width":p,src:d});return(0,o.jsx)("figure",{className:(0,s.A)("tiled-gallery__item",{[`filter__${r}`]:!!r}),children:h?(0,o.jsx)("a",{href:h,children:m}):m})}},13965:(e,t,r)=>{"use strict";r.d(t,{Rb:()=>n.R});var n=r(2166);r(59886),r(53471)},14016:(e,t,r)=>{"use strict";r(56427),r(27723),r(6754),r(10790)},14294:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(90907),s=r(43566),o=r(65378),i=r(10790);function a(e){return Math.min(3,e.images.length)}function c({attributes:e}){const{imageFilter:t,images:r}=e;if(!r.length)return null;const{align:c,className:l,columns:u=a(e),linkTo:d,roundedCorners:p}=e;return(0,i.jsx)(o.A,{align:c,className:l,columns:u,imageFilter:t,images:r,isSave:!0,layoutStyle:(0,n.D)(s.kc,l),linkTo:d,roundedCorners:p})}},14435:(e,t,r)=>{"use strict";var n=r(97999),s=r(85985),o=r(1455),i=r.n(o),a=r(47143),c=r(27723);r(692);const __=c.__;function l(){const e=(0,s.GE)();return window?.location&&e?(0,n.isWpcomPlatformSite)()?`https://wordpress.com/plans/my-plan/${e}`:`${window.location.protocol}//${e.replace("::","/")}/wp-admin/admin.php?page=jetpack#/my-plan`:null}(async()=>{if(window?.location){if(new URLSearchParams(window.location.search).get("plan_upgraded")){let e=null;e:try{if((0,n.isSimpleSite)())break e;const t=await i()({path:"/jetpack/v4/site"});e=JSON.parse(t.data).plan.product_name}finally{const t=l();(0,a.dispatch)("core/notices").createNotice("success",e?(0,c.sprintf)(/* translators: %s is the plan name, such as Jetpack Premium. */ __("Congratulations! Your site is now on the %s plan.","jetpack"),e):__("Congratulations! Your site is now on a paid plan.","jetpack"),{isDismissible:!0,...t&&{actions:[{url:l(),label:__("View my plan","jetpack")}]}})}}}})()},14561:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(86087),s=r(27534),o=r(5389),i=r(42470),a=r(19931),c=r(10790);const l=(0,n.forwardRef)(({admin:e,points:t=[],mapStyle:r="default",zoom:i=13,onSetZoom:l=()=>{},onSetMapCenter:d=()=>{},onMapLoaded:p=()=>{},onMarkerClick:h=()=>{},onError:m=()=>{},markerColor:g="red",mapCenter:f={},mapHeight:b=400,address:v=null,onSetPoints:y,children:k},x)=>{const{loaded:w,error:_,mapkit:j,currentDoc:A,currentWindow:C}=(0,o.PC)(x),{map:S}=(0,o.I3)(j,w,x),E=n.Children.map(k,e=>{const t=e?.props?.tagName;if("AddPoint"===t)return e}),[T,N]=(0,n.useState)(!1);(0,n.useEffect)(()=>{_&&m("mapkit_error",_)},[_,m]);return(0,n.useEffect)(()=>{const e=e=>{x.current.contains(e.target)||N(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[x]),(0,c.jsxs)(s.u,{value:{mapkit:j,map:S,loaded:w,currentDoc:A,currentWindow:C,admin:e,points:t,setPoints:y},children:[w&&j&&S?(0,c.jsx)(u,{address:v,mapCenter:f,mapStyle:r,zoom:i,onSetMapCenter:d,onSetZoom:l,onSetPoints:y,points:t,markerColor:g,onMarkerClick:h,onMapLoaded:p}):null,(0,c.jsxs)("div",{style:{height:b?`${b}px`:"400px",position:"relative"},className:"wp-block-jetpack-map__mapkit-wrapper",ref:x,onClick:()=>{N(!0)},children:[!T&&(0,c.jsx)("div",{className:"wp-block-jetpack-map__select-overlay"}),(0,c.jsx)("div",{className:"wp-block-jetpack-map__gm-container",style:{height:`${b}px`,position:"absolute",pointerEvents:T?"auto":"none"}})]}),E,(0,c.jsx)(a.A,{mapProvider:"mapkit"})]})}),u=(0,n.memo)(({address:e=null,mapCenter:t={},mapStyle:r="default",zoom:s=13,onSetMapCenter:a=()=>{},onSetZoom:c=()=>{},onSetPoints:l=()=>{},points:u=[],markerColor:d="red",onMarkerClick:p=()=>{},onMapLoaded:h=()=>{}})=>{const{map:m,mapkit:g,setActiveMarker:f,setPreviousCenter:b,setCalloutReference:v,currentDoc:y}=(0,o.ST)(),k=(0,n.useRef)(p),x=(0,n.useRef)(l),w=(0,n.useCallback)(e=>{f(e),b(m.center),k.current&&k.current(e),m.setCenterAnimated(new g.Coordinate(e.coordinates.latitude,e.coordinates.longitude))},[m,g,f,b,k]);return(0,o.FN)(t,a),(0,o.y7)(r),(0,o.LR)(s,c),(0,o.$H)(u,d,(0,i.K5)(y,v),w),(0,o.bY)(h),(0,o.wB)(e=>{f(null),e&&m.setCenterAnimated(e)}),(0,o.mA)(e,x),null}),d=l},14935:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},14936:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var n=r(87399),s=r.n(n),o=r(32448),i=r.n(o),a=r(11264),c=r.n(a);const l=i()("photon"),u={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},d="__domain__.invalid",p=`https://${d}`,h="https://i0.wp.com";function m(e,t){let r;try{r=new URL(e,p)}catch{return null}const n="https:"===r.protocol,o=new URL(h);if(i=r.host,/^i[0-2]\.wp\.com$/.test(i))o.pathname=r.pathname,o.hostname=n?"i0.wp.com":r.hostname;else{if(r.search)return null;let e=r.href.replace(`${r.protocol}/`,"");"blob:"===r.protocol&&(e=r.pathname.replace("://","//")),r.hostname===d&&(e=r.pathname),o.pathname=e,o.hostname=function(e,t){if(t)return"i0.wp.com";const r=s()(e),n=c()(r),o="i"+Math.floor(3*n());return l('determined server "%s" to use with "%s"',o,e),o+".wp.com"}(e,"https:"===o.protocol),n&&o.searchParams.set("ssl","1")}var i;if(t)for(const[e,r]of Object.entries(t))"host"!==e&&"hostname"!==e?"secure"!==e||r?o.searchParams.set(u[e]??e,r.toString()):o.protocol="http:":o.hostname=r;return l("generated Photon URL: %s",o.href),o.href}},15109:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(56427),s=r(86087),o=r(27723),i=r(5389),a=r(10790);const __=o.__,c=()=>{const{activeMarker:e,setActiveMarker:t,calloutReference:r,admin:o,points:c,setPoints:l}=(0,i.ST)(),[u,d]=(0,s.useState)(c),[p,h]=(0,s.useState)(!1),{title:m,caption:g}=u.find(t=>t.id===e?.id)||{},f=t=>{const r=c.map(r=>r.id===e.id?{...r,...t}:r);d(r),h(!0)};return(0,s.useEffect)(()=>{!e&&p&&l(u)},[e,p,u,l]),(0,s.useEffect)(()=>{d(c),h(!1)},[c]),e&&r?(0,s.createPortal)((0,a.jsxs)(s.Fragment,{children:[o&&(0,a.jsxs)(s.Fragment,{children:[(0,a.jsx)(n.TextControl,{label:__("Marker Title","jetpack"),value:m,onChange:e=>f({title:e}),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,a.jsx)(n.TextareaControl,{className:"wp-block-jetpack-map__marker-caption",label:__("Marker Caption","jetpack"),value:g,rows:"2",tag:"textarea",onChange:e=>f({caption:e}),__nextHasNoMarginBottom:!0}),(0,a.jsxs)(n.Button,{onClick:()=>{const r=c.filter(t=>t.id!==e.id);d(r),h(!0),t(null)},className:"wp-block-jetpack-map__delete-btn",children:[(0,a.jsx)(n.Dashicon,{icon:"trash",size:"15"})," ",__("Delete Marker","jetpack")]})]}),!o&&(0,a.jsxs)(s.Fragment,{children:[(0,a.jsx)("h3",{children:m}),(0,a.jsx)("p",{children:g})]})]}),r):null}},15210:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/voice-to-content","title":"Voice to content","description":"Transform your spoken words into a post ready to publish with AI.","keywords":["AI","GPT","AL","Magic","help","assistant"],"version":"12.5.0","textdomain":"jetpack","category":"media","icon":"","supports":{"html":false,"multiple":true,"reusable":false},"attributes":{"content":{"type":"string"}}}')},15762:(e,t,r)=>{"use strict";var n=r(53761);function s(){}function o(){}o.resetWarningCache=s,e.exports=function(){function e(e,t,r,s,o,i){if(i!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:s};return r.PropTypes=r,r}},15877:(e,t,r)=>{"use strict";r(10790)},15946:(e,t,r)=>{"use strict";var n=r(96865),s=r(94715),o=r(74997),i=r(29491),a=r(47143),c=r(86087),l=r(52619),u=r(48499),d=r(26760),p=r(24255),h=r(10790);const m=(0,i.createHigherOrderComponent)(e=>t=>{const[r,o]=(0,c.useState)(!1),{setLogo:i}=(()=>{const e=(0,a.useDispatch)("core").editEntityRecord,t=(0,c.useCallback)(t=>{e("root","site",void 0,{site_logo:t})},[e]),r=(0,c.useCallback)(t=>{e("root","site",void 0,{site_icon:t})},[e]);return{setLogo:(0,c.useCallback)((e,n)=>{t(e),n&&r(e)},[t,r])}})(),l=t?.attributes?.shouldSyncIcon||!1,u=(0,c.useCallback)(()=>{o(!0)},[]),m=(0,c.useCallback)(()=>{o(!1)},[]),g=(0,c.useCallback)(e=>{e&&i(e,l)},[i,l]);(0,c.useEffect)(()=>()=>{m()},[m]);const f=(()=>{const e=(0,a.useSelect)(e=>e("core").getEntityRecord("root","site"),[]);return{ID:parseInt(window?.Jetpack_Editor_Initial_State?.wpcomBlogId),URL:e?.url,domain:window?.Jetpack_Editor_Initial_State?.siteFragment,name:e?.title,description:e?.description,siteLogo:e?.site_logo||0}})();return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(e,{...t}),(0,h.jsx)(s.BlockControls,{group:"block",children:(0,h.jsx)(d.A,{showButtonText:!f?.siteLogo,clickHandler:u})}),(0,h.jsx)(n.Tg,{isOpen:r,onClose:m,onApplyLogo:g,context:p.Mb,placement:p.tF,siteDetails:f})]})},"SiteLogoEditWithAiComponents");function g(e){if("core/site-logo"!==e)return!1;if(!(0,o.getBlockType)("jetpack/ai-assistant"))return!1;if(!(0,u.C)(p.TC))return!1;const{getHiddenBlockTypes:t}=(0,a.select)("core/edit-post")||{};return!(t?.()||[]).includes("jetpack/ai-assistant")}(0,l.addFilter)("blocks.registerBlockType","jetpack/site-logo-with-ai-support",function(e,t){return g(t)?{...e,edit:m(e.edit)}:e},100)},16016:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(56427),s=r(86087),o=r(10790);class i extends s.Component{constructor(){super(...arguments),this.state={selectedCell:null}}onDeletePoint=e=>{const t=parseInt(e.target.getAttribute("data-id")),{points:r,onChange:n}=this.props,s=r.slice(0);s.splice(t,1),n(s)};setMarkerField(e,t,r){const{points:n,onChange:s}=this.props,o=n.slice(0);o[r][e]=t,s(o)}render(){const{points:e}=this.props,t=e.map((e,t)=>(0,o.jsxs)(n.PanelBody,{title:e.placeTitle,initialOpen:!1,children:[(0,o.jsx)(n.TextControl,{label:"Marker Title",value:e.title,onChange:e=>this.setMarkerField("title",e,t),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,o.jsx)(n.TextareaControl,{label:"Marker Caption",value:e.caption,rows:"3",onChange:e=>this.setMarkerField("caption",e,t),__nextHasNoMarginBottom:!0}),(0,o.jsxs)(n.Button,{"data-id":t,onClick:this.onDeletePoint,className:"component__locations__delete-btn",children:[(0,o.jsx)(n.Dashicon,{icon:"trash",size:"15"})," Delete Marker"]})]},e.id));return(0,o.jsx)("div",{className:"component__locations",children:(0,o.jsx)(n.Panel,{className:"component__locations__panel",children:t})})}}i.defaultProps={points:Object.freeze([]),onChange:()=>{}};const a=i},16204:(e,t,r)=>{"use strict";r.d(t,{M:()=>d});var n=r(97999),s=r(85985),o=r(47143),i=r(4167),a=r(6363),c=r(49824),l=r(16886);let u=!1;try{if(!(0,n.isSimpleSite)()){const e=(0,o.select)(s.Ft).getJetpackModules()["seo-tools"],t=e&&"ai_seo_enhancer_enabled"in e.options;u=t&&e.options?.ai_seo_enhancer_enabled?.current_value}}catch{u=!1}const d=(0,o.createReduxStore)("jetpack/seo-enhancer",{reducer:c.A,selectors:l,actions:a,initialState:function(){const e=i.G.reduce((e,t)=>(e[t]=!0,e),{});try{const t=localStorage.getItem("jetpack-seo-enhancer-features"),r=t?JSON.parse(t):{};for(const t of i.G)e[t]=r[t]??!0}catch{}return{isBusy:!1,isTogglingAutoEnhance:!1,isAutoEnhanceEnabled:u,busyImages:{},failedImages:{},features:e}}()});(0,o.register)(d)},16344:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/wordads","title":"Ad","description":"Earn income by adding high quality ads to your post.","keywords":["ads","WordAds","advertisement"],"version":"12.5.0","textdomain":"jetpack","category":"monetize","icon":"","supports":{"align":["left","center","right"],"alignWide":false,"className":false,"customClassName":false,"html":false,"reusable":false},"attributes":{"align":{"type":"string","default":"center"},"format":{"type":"string","default":"mrec"},"hideMobile":{"type":"boolean","default":false}},"example":{}}')},16445:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(63162),s=r(94715),o=r(56427),i=r(86087),a=r(27723),c=r(13022),l=r(66087),u=r(94107),d=r(39126),p=r(31837),h=r(57464),m=r(10790);const __=a.__;class g extends i.Component{pendingRequestAnimationFrame=null;resizeObserver=null;static defaultProps={effect:"slide"};constructor(e){super(e),this.slideshowRef=(0,i.createRef)(),this.btnNextRef=(0,i.createRef)(),this.btnPrevRef=(0,i.createRef)(),this.paginationRef=(0,i.createRef)()}componentDidMount(){const{onError:e}=this.props;this.buildSwiper().then(e=>{this.swiperInstance=e,this.initializeResizeObserver(e)}).catch(()=>{e(__("The Swiper library could not be loaded.","jetpack"))})}componentWillUnmount(){this.clearResizeObserver(),this.clearPendingRequestAnimationFrame()}componentDidUpdate(e){const{align:t,autoplay:r,delay:n,effect:s,images:o,onError:i}=this.props;if(t===e.align&&(0,l.isEqual)(o,e.images)||this.swiperInstance&&this.swiperInstance.update(),s!==e.effect||r!==e.autoplay||n!==e.delay||o!==e.images){let t;t=this.swiperIndex?o.length===e.images.length?this.swiperInstance.realIndex:e.images.length:0,this.swiperInstance&&this.swiperInstance.destroy(!0,!0),this.buildSwiper(t).then(e=>{this.swiperInstance=e,this.initializeResizeObserver(e)}).catch(()=>{i(__("The Swiper library could not be loaded.","jetpack"))})}}initializeResizeObserver=e=>{this.clearResizeObserver(),this.resizeObserver=new u.A(()=>{this.clearPendingRequestAnimationFrame(),this.pendingRequestAnimationFrame=requestAnimationFrame(()=>{(0,h.bz)(e),e.update()})}),this.resizeObserver.observe(e.el)};clearPendingRequestAnimationFrame=()=>{this.pendingRequestAnimationFrame&&(cancelAnimationFrame(this.pendingRequestAnimationFrame),this.pendingRequestAnimationFrame=null)};clearResizeObserver=()=>{this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)};render(){if(!this.props?.images?.length)return null;const{autoplay:e,className:t,delay:r,effect:i,images:a}=this.props;return(0,m.jsx)("div",{className:t,"data-autoplay":e||null,"data-delay":e?r:null,"data-effect":i,children:(0,m.jsxs)("div",{className:"wp-block-jetpack-slideshow_container swiper-container",ref:this.slideshowRef,children:[(0,m.jsx)("ul",{className:"wp-block-jetpack-slideshow_swiper-wrapper swiper-wrapper",children:a.map(({alt:e,caption:t,id:r,url:i})=>(0,m.jsx)("li",{className:(0,c.A)("wp-block-jetpack-slideshow_slide","swiper-slide",(0,n.isBlobURL)(i)&&"is-transient"),children:(0,m.jsxs)("figure",{children:[(0,m.jsx)("img",{alt:e,className:`wp-block-jetpack-slideshow_image wp-image-${r}`,"data-id":r,src:i}),(0,n.isBlobURL)(i)&&(0,m.jsx)(o.Spinner,{}),t&&(0,m.jsx)(s.RichText.Content,{className:"wp-block-jetpack-slideshow_caption gallery-caption",tagName:"figcaption",value:t})]})},r||i))}),(0,m.jsx)("a",{className:"wp-block-jetpack-slideshow_button-prev swiper-button-prev swiper-button-white",ref:this.btnPrevRef,role:"button"}),(0,m.jsx)("a",{className:"wp-block-jetpack-slideshow_button-next swiper-button-next swiper-button-white",ref:this.btnNextRef,role:"button"}),(0,m.jsx)("a",{"aria-label":"Pause Slideshow",className:"wp-block-jetpack-slideshow_button-pause",role:"button"}),(0,m.jsx)("div",{className:"wp-block-jetpack-slideshow_pagination swiper-pagination swiper-pagination-white",ref:this.paginationRef})]})})}prefersReducedMotion=()=>"undefined"!=typeof window&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;buildSwiper=(e=0)=>(0,d.A)(this.slideshowRef.current,{autoplay:!(!this.props.autoplay||this.prefersReducedMotion())&&{delay:1e3*this.props.delay,disableOnInteraction:!1},effect:this.props.effect,loop:!0,initialSlide:e,navigation:{nextEl:this.btnNextRef.current,prevEl:this.btnPrevRef.current},pagination:{clickable:!0,el:this.paginationRef.current,type:"custom",renderCustom:p.y}},{init:h.rQ,imagesReady:h.bz,paginationRender:h.n7,transitionEnd:h.WF})}const f=g},16521:(e,t,r)=>{"use strict";r.d(t,{M:()=>l});var n=r(47143),s=r(66314),o=r(3696),i=r(91497),a=r(18410),c=r(92955);const l=(0,n.createReduxStore)(o.EF,{actions:s,reducer:i.A,resolvers:a,selectors:c,__experimentalUseThunks:!0});(0,n.register)(l)},16597:(e,t,r)=>{"use strict";r.d(t,{Sb:()=>c,aB:()=>a,b$:()=>i,rJ:()=>l});var n=r(96865),s=r(74997),o=r(47143);function i(e){if(!e)return"";const t=(0,o.select)("core/block-editor"),r=t.getBlockIndex(e),i=t.getBlocks().slice(0,r)??[];return i?.length?(0,n.rh)({content:(0,s.serialize)(i)}):""}function a(){const e=(0,o.select)("core/block-editor").getBlocks();return e?.length?(0,n.rh)({content:(0,s.serialize)(e)}):""}function c(e){return e.filter(e=>null!=e).map(e=>(0,s.getBlockContent)(e)).join("\n\n")}function l(e){const t=(0,o.select)("core/block-editor").getBlock(e);return t?.innerBlocks?.length?c(t.innerBlocks):""}},16815:(e,t,r)=>{"use strict";r.d(t,{BY:()=>a,ES:()=>s,_t:()=>o,iU:()=>i,jF:()=>n});const n=e=>Object.hasOwn(e,"lat")&&Object.hasOwn(e,"lng")?e:{lat:e.latitude||0,lng:e.longitude||0};function s(e,t){const r=new e.LngLatBounds;return t.forEach(e=>{r.extend([e.coordinates.longitude,e.coordinates.latitude])}),r}function o(e,t){e.fitBounds(t,{padding:{top:80,bottom:80,left:40,right:40}})}function i(e,t){e.innerHTML=`\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t`}function a(e){return new e.Popup({closeButton:!0,closeOnClick:!1,offset:{left:[0,0],top:[0,5],right:[0,0],bottom:[0,-40]}})}},16886:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getEnabledFeatures:()=>p,hasImageFailed:()=>d,isAnyImageBusy:()=>u,isAutoEnhanceEnabled:()=>c,isBusy:()=>s,isDescriptionBusy:()=>i,isImageAltTextFeatureEnabled:()=>h,isImageBusy:()=>l,isTitleBusy:()=>o,isTogglingAutoEnhance:()=>a});var n=r(47143);function s(e){return e.isBusy}function o(e){return e.isTitleBusy}function i(e){return e.isDescriptionBusy}function a(e){return e.isTogglingAutoEnhance}function c(e){return e.isAutoEnhanceEnabled}function l(e,t){return e.busyImages[t]??!1}function u(e){return Object.values(e.busyImages).some(e=>e)}function d(e,t){return e.failedImages[t]??!1}const p=(0,n.createSelector)(e=>Object.keys(e.features).filter(t=>e.features[t]),e=>[e.features]);function h(e){return p(e).includes("images-alt-text")}},17204:(e,t,r)=>{"use strict";function n(e){return e.split("\n").map(e=>function(e){const t=/(?\(?(?