diff --git a/Demo-Android/Gutenberg/src/main/assets/assets/remote-hV9R00EW.css b/Demo-Android/Gutenberg/src/main/assets/assets/remote-hV9R00EW.css deleted file mode 100644 index 38bb7924..00000000 --- a/Demo-Android/Gutenberg/src/main/assets/assets/remote-hV9R00EW.css +++ /dev/null @@ -1 +0,0 @@ -:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}body{margin:0;font-family:-apple-system;line-height:1.55}*{-webkit-tap-highlight-color:transparent}.components-button:focus:not(:disabled){outline:0!important;box-shadow:none!important}:root .editor-styles-wrapper{padding:0 16px 56px}.editor-styles-wrapper{overflow:hidden;min-height:100vh}.editor-styles-wrapper p{margin-block-start:15px;margin-block-end:15px;font-size:17px;line-height:1.8}.editor-styles-wrapper h2{margin-block-start:30px;margin-block-end:10px}.editor-styles-wrapper h3,h4{margin-block-start:20px;margin-block-end:10px}.editor-styles-wrapper li{font-size:17px;margin-bottom:5px}.rich-text:focus{outline:none}.block-editor-block-popover{display:none}.gbkit-editor-toolbar{border-top:.5px solid #c8c7cc;background:#fff;width:100%;display:flex;align-items:center;position:fixed;bottom:0;right:0;left:0;z-index:999;overflow-x:scroll;min-height:46px;transition:position 1.5s linear}.gbkit-editor-toolbar::-webkit-scrollbar{display:none}.block-editor-block-mover__drag-handle{display:none}.block-editor-inserter .block-editor-inserter__toggle{background:#000;color:#fff!important;clip-path:inset(4px 4px 4px 4px);margin:4px 8px 4px 12px;border-radius:24px!important}.block-editor-inserter__menu .block-editor-tabbed-sidebar__close-button{display:none}.block-editor-block-contextual-toolbar{border-bottom:0!important}.gbkit-editor-toolbar_settings_icon{font-size:34px!important;min-width:46px!important}.gbkit-editor-toolbar .block-editor-inserter{border-right:.5px solid #c8c7cc}.gbkit-editor-toolbar .block-editor-inserter button{margin-right:12px}.gbkit-editor-toolbar_toolbar-group{display:flex;align-items:center}.block-editor-block-contextual-toolbar{border-left:.5px solid #c8c7cc!important}.react-modal-sheet-container{border-top-right-radius:16px!important;border-top-left-radius:16px!important;box-shadow:#0000001a 0 -2px 10px!important}.components-popover__header-title{padding-left:20px}.components-popover.is-expanded .components-popover__content{border-radius:0!important;padding:0 8px}.block-settings-menu{position:absolute;inset:0;background-color:#fff;transform:none!important;position:fixed!important;overflow:scroll}.block-settings-menu__header{display:flex;flex-direction:column;align-items:end}.block-settings-menu__close{margin:8px 8px 0 0}.block-settings-menu .components-popover__content{width:100%;min-height:100vh}.block-inspector-siderbar{background:#f6f6fb;border-left:.5px solid #c8c7cc;width:320px}.block-editor-block-list__layout .block-editor-inserter,.block-editor-block-list__block-side-inserter-popover{display:none}.wp-block-image div{width:auto!important}.block-editor-tabbed-sidebar__tablist button{font-size:16px}.block-editor-inserter__menu{overflow-y:auto!important}.block-editor-inserter__popover .block-editor-inserter__menu{margin-bottom:auto!important;margin-top:auto!important}.block-editor-inserter__menu .block-editor-tabbed-sidebar__tabpanel button{font-size:16px}.block-editor-inserter__menu .block-editor-tabbed-sidebar__tabpanel .block-editor-inserter__patterns-category-panel-title{font-size:18px}.block-editor-inserter__menu .block-editor-tabbed-sidebar__tabpanel .block-editor-block-patterns-list__item-title{font-size:16px}.block-editor-inserter__popover .components-dropdown__content .components-popover__content{padding:0 8px!important}.components-input-base{border-radius:8px!important}.block-editor-inserter__panel-header{display:block;border-bottom:1px solid lightgray;padding-bottom:12px}.components-popover__header-title{font-size:17px;font-weight:600;text-align:center}.block-editor-inserter__panel-title{font-size:15px;font-weight:600;margin-left:12px}.components-draggable-drag-component-root{display:none!important}.components-button.block-editor-block-types-list__item{-webkit-tap-highlight-color:transparent;pointer-events:auto}.components-button.block-editor-block-types-list__item:not(:disabled):hover:after{background:transparent}.components-button[aria-expanded=true],.components-button:hover:not(:disabled,[aria-disabled=true]){color:inherit}.components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title{color:inherit!important}.components-button.block-editor-block-types-list__item:not(:disabled):hover svg{color:inherit!important}.block-editor-block-types-list__list-item{pointer-events:auto}.block-editor-block-types-list__item{pointer-events:none}.block-editor-block-types-list__item-icon{scale:1.3}.block-editor-block-types-list__item-title{font-size:17px}.block-editor-block-card__title{font-size:17px;font-weight:600}.block-editor-block-card__description{font-size:15px!important;margin-top:-4px!important}.block-editor-block-inspector h2{font-size:17px!important;font-weight:600!important}.block-editor-block-inspector .block-editor-block-icon{padding-top:4px;margin-right:8px}.components-base-control__help{font-size:13px!important}.components-menu-group__label{font-size:13px}.components-accessible-toolbar .components-button.is-pressed:before,.components-toolbar .components-button.is-pressed:before{border-radius:8px}.components-dropdown-menu__menu-item{min-height:40px}.block-editor-default-block-appender__content{color:gray}.components-text{font-size:17px}.components-button{border-radius:8px}.components-panel__body-title{font-size:15px}.components-button{font-size:17px}.block-editor-block-card__title{font-size:15px!important}.components-toggle-control__label{font-size:17px}.components-popover__content{border-radius:8px!important}.components-menu-item__item span{font-size:17px!important}.components-base-control__label{font-size:13px!important}.components-placeholder{border-radius:8px!important}.components-placeholder__label{font-size:17px!important}.components-placeholder__input{border-radius:6px!important;font-size:17px!important}.components-text-control__input{border-radius:6px!important}.components-base-control__label{color:gray;font-size:13px!important}.blocks-table__placeholder-form{gap:16px!important}.components-popover.block-editor-block-switcher__popover .components-popover__content{min-width:274px!important}.rich-text [data-rich-text-placeholder]{pointer-events:none}.rich-text [data-rich-text-placeholder]:after{content:attr(data-rich-text-placeholder);opacity:.62}.editor-visual-editor__post-title-wrapper{margin-top:1.5rem;min-height:35px}.editor-visual-editor__post-title-wrapper .wp-block-post-title{font-size:20px!important;margin-bottom:0!important;line-height:1.5!important}.components-editor-notices__snackbar{bottom:54px;padding-left:24px;padding-right:24px;position:fixed;right:0;left:0} diff --git a/ReactApp/src/App.jsx b/ReactApp/src/App.jsx index 50466c25..88b7b1e7 100644 --- a/ReactApp/src/App.jsx +++ b/ReactApp/src/App.jsx @@ -2,9 +2,15 @@ * Internal dependencies */ import Editor from './components/Editor'; +import EditorLoadNotice from './components/EditorLoadNotice'; function App(props) { - return ; + return ( + <> + + + + ); } export default App; diff --git a/ReactApp/src/components/EditorLoadNotice.jsx b/ReactApp/src/components/EditorLoadNotice.jsx new file mode 100644 index 00000000..6596dab3 --- /dev/null +++ b/ReactApp/src/components/EditorLoadNotice.jsx @@ -0,0 +1,70 @@ +/** + * WordPress dependencies + */ +import { Notice } from '@wordpress/components'; +import { __ } from '@wordpress/i18n'; +import { useState, useEffect } from '@wordpress/element'; + +export default function EditorLoadNotice() { + const { notice, clearNotice } = useEditorLoadNotice(); + + const actions = [ + { + label: 'Retry', + onClick: () => (window.location.href = 'remote.html'), + variant: 'primary', + }, + { + label: 'Dismiss', + onClick: clearNotice, + variant: 'secondary', + }, + ]; + + if (!notice) { + return null; + } + + return ( +
+ + {notice} + +
+ ); +} + +function useEditorLoadNotice() { + const [notice, setNotice] = useState(null); + + useEffect(() => { + const url = new URL(window.location.href); + const error = url.searchParams.get('error'); + + let message = null; + switch (error) { + case REMOTE_EDITOR_LOAD_ERROR: + message = __( + "Oops! We couldn't load your site's editor and plugins. Don't worry, you can use the default editor for now." + ); + break; + default: + message = null; + } + + setNotice(message); + }, []); + + useEffect(() => { + if (notice) { + const timeout = setTimeout(() => { + setNotice(null); + }, 20000); + return () => clearTimeout(timeout); + } + }, [notice]); + + return { notice, clearNotice: () => setNotice(null) }; +} + +const REMOTE_EDITOR_LOAD_ERROR = 'remote_editor_load_error'; diff --git a/ReactApp/src/index.css b/ReactApp/src/index.css index 6133129a..f9dbce8d 100644 --- a/ReactApp/src/index.css +++ b/ReactApp/src/index.css @@ -69,6 +69,14 @@ h4 { display: none; } +.editor-load-notice { + position: fixed; + bottom: 62px; + left: 16px; + right: 16px; + z-index: 999; +} + /* Toolbar */ .gbkit-editor-toolbar { diff --git a/ReactApp/src/remote.jsx b/ReactApp/src/remote.jsx index 65bf095a..faecf7d3 100644 --- a/ReactApp/src/remote.jsx +++ b/ReactApp/src/remote.jsx @@ -53,7 +53,10 @@ async function initalizeRemoteEditor() { createElement(StrictMode, null, createElement(App, settings)) ); } catch (error) { - console.error('Error initializing the remote editor', error); + // Fallback to the local editor and display a notice. Because the remote + // editor loading failed, it is more practical to rely upon the local + // editor's scripts and styles for displaying the notice. + window.location.href = 'index.html?error=remote_editor_load_error'; } } diff --git a/Sources/GutenbergKit/Gutenberg/assets/App-C-YJyckR.js b/Sources/GutenbergKit/Gutenberg/assets/App-C-YJyckR.js deleted file mode 100644 index 714a2d2c..00000000 --- a/Sources/GutenbergKit/Gutenberg/assets/App-C-YJyckR.js +++ /dev/null @@ -1 +0,0 @@ -const{SVG:X,Path:V}=window.wp.primitives,{jsx:y}=window.ReactJSXRuntime,O=y(X,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:y(V,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})}),{SVG:z,Path:H}=window.wp.primitives,{jsx:E}=window.ReactJSXRuntime,W=E(z,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:E(H,{fillRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",clipRule:"evenodd"})}),{Fragment:v,jsx:n,jsxs:u}=window.ReactJSXRuntime,{useState:Z}=window.wp.element,{BlockInspector:q,BlockToolbar:K,Inserter:Q,store:Y}=window.wp.blockEditor,{useSelect:ee}=window.wp.data,{Button:te,Popover:oe,ToolbarButton:se}=window.wp.components,{__:ne}=window.wp.i18n,ie=()=>{const[e,o]=Z(!1),{isSelected:s}=ee(c=>{const{getSelectedBlockClientId:w}=c(Y);return{isSelected:w()!==null}});function d(){o(!0)}function a(){o(!1)}return u(v,{children:[u("div",{className:"gbkit gbkit-editor-toolbar",children:[n(Q,{}),s&&n("div",{className:"gbkit-editor-toolbar_toolbar-group",children:n(se,{title:ne("Open Settings"),icon:W,onClick:d,className:"gbkit-editor-toolbar_settings_icon"})}),n(K,{})]}),e&&n(oe,{className:"block-settings-menu",variant:"unstyled",placement:"overlay",children:u(v,{children:[n("div",{className:"block-settings-menu__header",children:n(te,{className:"block-settings-menu__close",icon:O,onClick:a})}),n(q,{})]})})]})};function re(){window.editorDelegate&&window.editorDelegate.onEditorLoaded(),window.webkit&&window.webkit.messageHandlers.editorDelegate.postMessage({message:"onEditorLoaded",body:{}})}function le(){window.editorDelegate&&window.editorDelegate.onEditorContentChanged(),window.webkit&&window.webkit.messageHandlers.editorDelegate.postMessage({message:"onEditorContentChanged"})}function P(){const e=document.activeElement;e&&e.tagName==="P"&&e.blur()}const de=[{name:"post",baseURL:"/wp/v2/posts"},{name:"page",baseURL:"/wp/v2/pages"},{name:"attachment",baseURL:"/wp/v2/media"},{name:"wp_block",baseURL:"/wp/v2/blocks"}].map(e=>({kind:"postType",...e,transientEdits:{blocks:!0,selection:!0},mergedEdits:{meta:!0},rawAttributes:["title","excerpt","content"]})),{__dangerousOptInToUnstableAPIsOnlyForCoreModules:ae}=window.wp.privateApis,{lock:Ie,unlock:T}=ae("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/editor"),{store:ce}=window.wp.editor,{useSelect:we}=window.wp.data,{privateApis:ue}=window.wp.blockEditor,{store:pe}=window.wp.editPost,{useMemo:me}=window.wp.element,{getLayoutStyles:be}=T(ue);function ge(){const{hasThemeStyleSupport:e,editorSettings:o}=we(s=>({hasThemeStyleSupport:s(pe).isFeatureActive("themeStyles"),editorSettings:s(ce).getEditorSettings()}),[]);return me(()=>{const s=[...o?.defaultEditorStyles??[]];return!o.disableLayoutStyles&&!e&&s.push({css:be({style:{},selector:"body",hasBlockGapSupport:!1,hasFallbackGapSupport:!0,fallbackGapValue:"0.5em"})}),e?o.styles??[]:s},[o.defaultEditorStyles,o.disableLayoutStyles,o.styles,e])}const{jsx:i,jsxs:R}=window.ReactJSXRuntime,{useEffect:C,useRef:p,useState:ke,useMemo:Se}=window.wp.element,{BlockList:he,privateApis:fe}=window.wp.blockEditor,{Popover:ye}=window.wp.components,{getBlockTypes:Ee,unregisterBlockType:ve}=window.wp.blocks,{registerCoreBlocks:Pe}=window.wp.blockLibrary,{store:_,mediaUpload:Re,EditorProvider:Ce,EditorSnackbars:_e,PostTitle:xe}=window.wp.editor,{useDispatch:x,useSelect:B,subscribe:Be}=window.wp.data,{store:m}=window.wp.coreData;let r={};const{ExperimentalBlockCanvas:Te}=T(fe);function Le({post:e}){const[o,s]=ke(!1),d=p(),a=p(e.title),c=p(e.content),{addEntities:w,editEntityRecord:b,receiveEntityRecords:L}=x(m),{setEditedPost:A}=x(_),{getEditedPostAttribute:I,getEditedPostContent:g}=B(_);C(()=>(window.editor=r,w(de),L("postType",e.type,e),Pe(),re(),A(e.type,e.id),()=>{window.editor={},Ee().forEach(t=>{ve(t.name)})}),[]);const{blockPatterns:k,currentPost:$,hasLoadedPost:j,hasUploadPermissions:S,reusableBlocks:h}=B(t=>{const{getEntityRecord:l,getEntityRecords:D,hasFinishedResolution:M}=t(m),F=l("root","user",e.author),G=l("postType",e.type,e.id),J=e?.id?M("getEntityRecord",["postType",e.type,e.id]):!0;return{blockPatterns:t(m).getBlockPatterns(),currentPost:G,hasLoadedPost:J,hasUploadPermissions:F?.capabilities?.upload_files??!0,reusableBlocks:D("postType","wp_block")}},[]);C(()=>Be(()=>{const{title:t,content:l}=r.getTitleAndContent();(t!==a.current||l!==c.current)&&(le(),a.current=t,c.current=l)}),[]);function f(t){b("postType",e.type,e.id,t)}r.setContent=t=>{f({content:decodeURIComponent(t)})},r.setTitle=t=>{f({title:decodeURIComponent(t)})},r.getContent=(t=!1)=>(t&&P(),g()),r.getTitleAndContent=(t=!1)=>(t&&P(),{title:I("title"),content:g()}),r.setCodeEditorEnabled=t=>s(t);const U=Se(()=>({hasFixedToolbar:!0,mediaUpload:S?Re:void 0,__experimentalReusableBlocks:h,__experimentalBlockPatterns:k}),[k,S,h]),N=ge();return j&&i("div",{className:"editor__container",children:R(Ce,{post:$,settings:U,useSubRegistry:!1,children:[R(Te,{shouldIframe:!1,height:"auto",styles:N,children:[i("div",{className:"editor-visual-editor__post-title-wrapper",children:i(xe,{ref:d})}),i(he,{})]}),i(ie,{}),i(ye.Slot,{}),i(_e,{})]})})}const{jsx:Ae}=window.ReactJSXRuntime;function $e(e){return Ae(Le,{...e})}export{$e as default}; diff --git a/Sources/GutenbergKit/Gutenberg/assets/App-CODBWdK9.js b/Sources/GutenbergKit/Gutenberg/assets/App-CODBWdK9.js new file mode 100644 index 00000000..026141cb --- /dev/null +++ b/Sources/GutenbergKit/Gutenberg/assets/App-CODBWdK9.js @@ -0,0 +1 @@ +const{SVG:z,Path:H}=window.wp.primitives,{jsx:E}=window.ReactJSXRuntime,W=E(z,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:E(H,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})}),{SVG:Z,Path:q}=window.wp.primitives,{jsx:y}=window.ReactJSXRuntime,K=y(Z,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:y(q,{fillRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",clipRule:"evenodd"})}),{Fragment:v,jsx:i,jsxs:u}=window.ReactJSXRuntime,{useState:Q}=window.wp.element,{BlockInspector:Y,BlockToolbar:ee,Inserter:te,store:oe}=window.wp.blockEditor,{useSelect:ne}=window.wp.data,{Button:se,Popover:ie,ToolbarButton:re}=window.wp.components,{__:le}=window.wp.i18n,ae=()=>{const[e,o]=Q(!1),{isSelected:n}=ne(d=>{const{getSelectedBlockClientId:w}=d(oe);return{isSelected:w()!==null}});function a(){o(!0)}function s(){o(!1)}return u(v,{children:[u("div",{className:"gbkit gbkit-editor-toolbar",children:[i(te,{}),n&&i("div",{className:"gbkit-editor-toolbar_toolbar-group",children:i(re,{title:le("Open Settings"),icon:K,onClick:a,className:"gbkit-editor-toolbar_settings_icon"})}),i(ee,{})]}),e&&i(ie,{className:"block-settings-menu",variant:"unstyled",placement:"overlay",children:u(v,{children:[i("div",{className:"block-settings-menu__header",children:i(se,{className:"block-settings-menu__close",icon:W,onClick:s})}),i(Y,{})]})})]})};function ce(){window.editorDelegate&&window.editorDelegate.onEditorLoaded(),window.webkit&&window.webkit.messageHandlers.editorDelegate.postMessage({message:"onEditorLoaded",body:{}})}function de(){window.editorDelegate&&window.editorDelegate.onEditorContentChanged(),window.webkit&&window.webkit.messageHandlers.editorDelegate.postMessage({message:"onEditorContentChanged"})}function R(){const e=document.activeElement;e&&e.tagName==="P"&&e.blur()}const we=[{name:"post",baseURL:"/wp/v2/posts"},{name:"page",baseURL:"/wp/v2/pages"},{name:"attachment",baseURL:"/wp/v2/media"},{name:"wp_block",baseURL:"/wp/v2/blocks"}].map(e=>({kind:"postType",...e,transientEdits:{blocks:!0,selection:!0},mergedEdits:{meta:!0},rawAttributes:["title","excerpt","content"]})),{__dangerousOptInToUnstableAPIsOnlyForCoreModules:ue}=window.wp.privateApis,{lock:Je,unlock:j}=ue("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/editor"),{store:pe}=window.wp.editor,{useSelect:me}=window.wp.data,{privateApis:ge}=window.wp.blockEditor,{store:be}=window.wp.editPost,{useMemo:fe}=window.wp.element,{getLayoutStyles:he}=j(ge);function ke(){const{hasThemeStyleSupport:e,editorSettings:o}=me(n=>({hasThemeStyleSupport:n(be).isFeatureActive("themeStyles"),editorSettings:n(pe).getEditorSettings()}),[]);return fe(()=>{const n=[...o?.defaultEditorStyles??[]];return!o.disableLayoutStyles&&!e&&n.push({css:he({style:{},selector:"body",hasBlockGapSupport:!1,hasFallbackGapSupport:!0,fallbackGapValue:"0.5em"})}),e?o.styles??[]:n},[o.defaultEditorStyles,o.disableLayoutStyles,o.styles,e])}const{jsx:r,jsxs:_}=window.ReactJSXRuntime,{useEffect:P,useRef:p,useState:Se,useMemo:Ee}=window.wp.element,{BlockList:ye,privateApis:ve}=window.wp.blockEditor,{Popover:Re}=window.wp.components,{getBlockTypes:_e,unregisterBlockType:Pe}=window.wp.blocks,{registerCoreBlocks:Ce}=window.wp.blockLibrary,{store:C,mediaUpload:xe,EditorProvider:Te,EditorSnackbars:Be,PostTitle:Le}=window.wp.editor,{useDispatch:x,useSelect:T,subscribe:$e}=window.wp.data,{store:m}=window.wp.coreData;let l={};const{ExperimentalBlockCanvas:je}=j(ve);function Ne({post:e}){const[o,n]=Se(!1),a=p(),s=p(e.title),d=p(e.content),{addEntities:w,editEntityRecord:g,receiveEntityRecords:N}=x(m),{setEditedPost:A}=x(C),{getEditedPostAttribute:I,getEditedPostContent:b}=T(C);P(()=>(window.editor=l,w(we),N("postType",e.type,e),Ce(),ce(),A(e.type,e.id),()=>{window.editor={},_e().forEach(t=>{Pe(t.name)})}),[]);const{blockPatterns:f,currentPost:D,hasLoadedPost:U,hasUploadPermissions:h,reusableBlocks:k}=T(t=>{const{getEntityRecord:c,getEntityRecords:O,hasFinishedResolution:G}=t(m),J=c("root","user",e.author),X=c("postType",e.type,e.id),V=e?.id?G("getEntityRecord",["postType",e.type,e.id]):!0;return{blockPatterns:t(m).getBlockPatterns(),currentPost:X,hasLoadedPost:V,hasUploadPermissions:J?.capabilities?.upload_files??!0,reusableBlocks:O("postType","wp_block")}},[]);P(()=>$e(()=>{const{title:t,content:c}=l.getTitleAndContent();(t!==s.current||c!==d.current)&&(de(),s.current=t,d.current=c)}),[]);function S(t){g("postType",e.type,e.id,t)}l.setContent=t=>{S({content:decodeURIComponent(t)})},l.setTitle=t=>{S({title:decodeURIComponent(t)})},l.getContent=(t=!1)=>(t&&R(),b()),l.getTitleAndContent=(t=!1)=>(t&&R(),{title:I("title"),content:b()}),l.setCodeEditorEnabled=t=>n(t);const M=Ee(()=>({hasFixedToolbar:!0,mediaUpload:h?xe:void 0,__experimentalReusableBlocks:k,__experimentalBlockPatterns:f}),[f,h,k]),F=ke();return U&&r("div",{className:"editor__container",children:_(Te,{post:D,settings:M,useSubRegistry:!1,children:[_(je,{shouldIframe:!1,height:"auto",styles:F,children:[r("div",{className:"editor-visual-editor__post-title-wrapper",children:r(Le,{ref:a})}),r(ye,{})]}),r(ae,{}),r(Re.Slot,{}),r(Be,{})]})})}const{jsx:B}=window.ReactJSXRuntime,{Notice:Ae}=window.wp.components,{__:Ie}=window.wp.i18n,{useState:De,useEffect:L}=window.wp.element;function Ue(){const{notice:e,clearNotice:o}=Me(),n=[{label:"Retry",onClick:()=>window.location.href="remote.html",variant:"primary"},{label:"Dismiss",onClick:o,variant:"secondary"}];return e?B("div",{className:"editor-load-notice",children:B(Ae,{actions:n,status:"warning",isDismissible:!1,children:e})}):null}function Me(){const[e,o]=De(null);return L(()=>{const a=new URL(window.location.href).searchParams.get("error");let s=null;switch(a){case Fe:s=Ie("Oops! We couldn't load your site's editor and plugins. Don't worry, you can use the default editor for now.");break;default:s=null}o(s)},[]),L(()=>{if(e){const n=setTimeout(()=>{o(null)},2e4);return()=>clearTimeout(n)}},[e]),{notice:e,clearNotice:()=>o(null)}}const Fe="remote_editor_load_error",{Fragment:Oe,jsx:$,jsxs:Ge}=window.ReactJSXRuntime;function Xe(e){return Ge(Oe,{children:[$(Ue,{}),$(Ne,{...e})]})}export{Xe as default}; diff --git a/Sources/GutenbergKit/Gutenberg/assets/index-aD9ouL0e.css b/Sources/GutenbergKit/Gutenberg/assets/index-B5BKfeGd.css similarity index 98% rename from Sources/GutenbergKit/Gutenberg/assets/index-aD9ouL0e.css rename to Sources/GutenbergKit/Gutenberg/assets/index-B5BKfeGd.css index 7ffc6791..154ace3f 100644 --- a/Sources/GutenbergKit/Gutenberg/assets/index-aD9ouL0e.css +++ b/Sources/GutenbergKit/Gutenberg/assets/index-B5BKfeGd.css @@ -1 +1 @@ -@charset "UTF-8";:root{--wp-admin-theme-color: #3858e9;--wp-admin-theme-color--rgb: 56, 88, 233;--wp-admin-theme-color-darker-10: #2145e6;--wp-admin-theme-color-darker-10--rgb: 33, 69, 230;--wp-admin-theme-color-darker-20: #183ad6;--wp-admin-theme-color-darker-20--rgb: 24, 58, 214;--wp-admin-border-width-focus: 2px}.components-animate__appear{animation:components-animate__appear-animation .1s cubic-bezier(0,0,.2,1) 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion: reduce){.components-animate__appear{animation-duration:1ms;animation-delay:0s}}.components-animate__appear.is-from-top,.components-animate__appear.is-from-top.is-from-left{transform-origin:top left}.components-animate__appear.is-from-top.is-from-right{transform-origin:top right}.components-animate__appear.is-from-bottom,.components-animate__appear.is-from-bottom.is-from-left{transform-origin:bottom left}.components-animate__appear.is-from-bottom.is-from-right{transform-origin:bottom right}@keyframes components-animate__appear-animation{0%{transform:translateY(-2em) scaleY(0) scaleX(0)}to{transform:translateY(0) scaleY(1) scaleX(1)}}.components-animate__slide-in{animation:components-animate__slide-in-animation .1s cubic-bezier(0,0,.2,1);animation-fill-mode:forwards}@media (prefers-reduced-motion: reduce){.components-animate__slide-in{animation-duration:1ms;animation-delay:0s}}.components-animate__slide-in.is-from-left{transform:translate(100%)}.components-animate__slide-in.is-from-right{transform:translate(-100%)}@keyframes components-animate__slide-in-animation{to{transform:translate(0)}}.components-animate__loading{animation:components-animate__loading 1.6s ease-in-out infinite}@keyframes components-animate__loading{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.components-autocomplete__popover .components-popover__content{padding:8px;min-width:200px}.components-autocomplete__result.components-button{display:flex;height:auto;min-height:36px;text-align:left;width:100%}.components-autocomplete__result.components-button:focus:not(:disabled){box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.components-button-group{display:inline-block}.components-button-group .components-button{border-radius:0;display:inline-flex;color:#1e1e1e;box-shadow:inset 0 0 0 1px #1e1e1e}.components-button-group .components-button+.components-button{margin-left:-1px}.components-button-group .components-button:first-child{border-radius:2px 0 0 2px}.components-button-group .components-button:last-child{border-radius:0 2px 2px 0}.components-button-group .components-button:focus,.components-button-group .components-button.is-primary{position:relative;z-index:1}.components-button-group .components-button.is-primary{box-shadow:inset 0 0 0 1px #1e1e1e}.components-button{display:inline-flex;text-decoration:none;font-family:inherit;font-weight:400;font-size:13px;margin:0;border:0;cursor:pointer;-webkit-appearance:none;background:none;transition:box-shadow .1s linear;height:36px;align-items:center;box-sizing:border-box;padding:6px 12px;border-radius:2px;color:var(--wp-components-color-foreground, #1e1e1e)}@media (prefers-reduced-motion: reduce){.components-button{transition-duration:0s;transition-delay:0s}}.components-button.is-next-40px-default-size{height:40px}.components-button[aria-expanded=true],.components-button:hover:not(:disabled,[aria-disabled=true]){color:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))}.components-button:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));outline:3px solid transparent}.components-button.is-primary{white-space:nowrap;background:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));color:var(--wp-components-color-accent-inverted, #fff);text-decoration:none;text-shadow:none;outline:1px solid transparent}.components-button.is-primary:hover:not(:disabled){background:var(--wp-components-color-accent-darker-10, var(--wp-admin-theme-color-darker-10, #2145e6));color:var(--wp-components-color-accent-inverted, #fff)}.components-button.is-primary:active:not(:disabled){background:var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6));border-color:var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6));color:var(--wp-components-color-accent-inverted, #fff)}.components-button.is-primary:focus:not(:disabled){box-shadow:inset 0 0 0 1px var(--wp-components-color-background, #fff),0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))}.components-button.is-primary:disabled,.components-button.is-primary:disabled:active:enabled,.components-button.is-primary[aria-disabled=true],.components-button.is-primary[aria-disabled=true]:enabled,.components-button.is-primary[aria-disabled=true]:active:enabled{color:#fff6;background:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));border-color:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));outline:none}.components-button.is-primary:disabled:focus:enabled,.components-button.is-primary:disabled:active:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:focus:enabled,.components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled{box-shadow:inset 0 0 0 1px var(--wp-components-color-background, #fff),0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{color:var(--wp-components-color-accent-inverted, #fff);background-size:100px 100%;background-image:linear-gradient(-45deg,var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)) 33%,var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6)) 33%,var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6)) 70%,var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)) 70%);border-color:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))}.components-button.is-secondary,.components-button.is-tertiary{outline:1px solid transparent}.components-button.is-secondary:active:not(:disabled),.components-button.is-tertiary:active:not(:disabled){box-shadow:none}.components-button.is-secondary:disabled,.components-button.is-secondary[aria-disabled=true],.components-button.is-secondary[aria-disabled=true]:hover,.components-button.is-tertiary:disabled,.components-button.is-tertiary[aria-disabled=true],.components-button.is-tertiary[aria-disabled=true]:hover{color:#949494;background:transparent;transform:none}.components-button.is-secondary{box-shadow:inset 0 0 0 1px var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));outline:1px solid transparent;white-space:nowrap;color:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));background:transparent}.components-button.is-secondary:hover:not(:disabled,[aria-disabled=true]){box-shadow:inset 0 0 0 1px var(--wp-components-color-accent-darker-10, var(--wp-admin-theme-color-darker-10, #2145e6))}.components-button.is-secondary:disabled:not(:focus),.components-button.is-secondary[aria-disabled=true]:not(:focus),.components-button.is-secondary[aria-disabled=true]:hover:not(:focus){box-shadow:inset 0 0 0 1px #ddd}.components-button.is-tertiary{white-space:nowrap;color:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));background:transparent}.components-button.is-tertiary:hover:not(:disabled,[aria-disabled=true]){background:rgba(var(--wp-admin-theme-color--rgb),.04)}.components-button.is-tertiary:active:not(:disabled,[aria-disabled=true]){background:rgba(var(--wp-admin-theme-color--rgb),.08)}p+.components-button.is-tertiary{margin-left:-6px}.components-button.is-tertiary:disabled:not(:focus),.components-button.is-tertiary[aria-disabled=true]:not(:focus),.components-button.is-tertiary[aria-disabled=true]:hover:not(:focus){box-shadow:none;outline:none}.components-button.is-destructive{--wp-components-color-accent: #cc1818;--wp-components-color-accent-darker-10: #9e1313;--wp-components-color-accent-darker-20: #710d0d}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link){color:#cc1818}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):hover:not(:disabled,[aria-disabled=true]){color:#710d0d}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #cc1818}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):active:not(:disabled,[aria-disabled=true]){background:#ccc}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):disabled,.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link)[aria-disabled=true]{color:#949494}.components-button.is-destructive.is-tertiary:hover:not(:disabled,[aria-disabled=true]){background:#cc18180a}.components-button.is-destructive.is-tertiary:active:not(:disabled,[aria-disabled=true]){background:#cc181814}.components-button.is-link{margin:0;padding:0;box-shadow:none;border:0;border-radius:0;background:none;outline:none;text-align:left;color:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));text-decoration:underline;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out;height:auto}@media (prefers-reduced-motion: reduce){.components-button.is-link{transition-duration:0s;transition-delay:0s}}.components-button.is-link:focus{border-radius:2px}.components-button.is-link:disabled,.components-button.is-link[aria-disabled=true]{color:#949494}.components-button:not(:disabled,[aria-disabled=true]):active{color:var(--wp-components-color-foreground, #1e1e1e)}.components-button:disabled,.components-button[aria-disabled=true]{cursor:default;color:#949494}.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{animation:components-button__busy-animation 2.5s infinite linear;background-size:100px 100%;background-image:linear-gradient(-45deg,#fafafa 33%,#e0e0e0 33% 70%,#fafafa 70%)}@media (prefers-reduced-motion: reduce){.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{animation-duration:0s}}.components-button.is-compact{height:32px}.components-button.is-compact.has-icon:not(.has-text){padding:0;width:32px;min-width:32px}.components-button.is-small{height:24px;line-height:22px;padding:0 8px;font-size:11px}.components-button.is-small.has-icon:not(.has-text){padding:0;width:24px;min-width:24px}.components-button.has-icon{padding:6px;min-width:36px;justify-content:center}.components-button.has-icon.is-next-40px-default-size{min-width:40px}.components-button.has-icon .dashicon{display:inline-flex;justify-content:center;align-items:center;padding:2px;box-sizing:content-box}.components-button.has-icon.has-text{justify-content:start;padding-right:12px;padding-left:8px;gap:4px}.components-button.is-pressed,.components-button.is-pressed:hover{color:var(--wp-components-color-foreground-inverted, #fff)}.components-button.is-pressed:not(:disabled,[aria-disabled=true]),.components-button.is-pressed:hover:not(:disabled,[aria-disabled=true]){background:var(--wp-components-color-foreground, #1e1e1e)}.components-button.is-pressed:disabled,.components-button.is-pressed[aria-disabled=true]{color:#949494}.components-button.is-pressed:disabled:not(.is-primary):not(.is-secondary):not(.is-tertiary),.components-button.is-pressed[aria-disabled=true]:not(.is-primary):not(.is-secondary):not(.is-tertiary){color:var(--wp-components-color-foreground-inverted, #fff);background:#949494}.components-button.is-pressed:focus:not(:disabled){box-shadow:inset 0 0 0 1px var(--wp-components-color-background, #fff),0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));outline:2px solid transparent}.components-button svg{fill:currentColor;outline:none}@media (forced-colors: active){.components-button svg{fill:CanvasText}}.components-button .components-visually-hidden{height:auto}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-checkbox-control{--checkbox-input-size: 24px;--checkbox-input-margin: 8px}@media (min-width: 600px){.components-checkbox-control{--checkbox-input-size: 16px}}.components-checkbox-control__label{line-height:var(--checkbox-input-size);cursor:pointer}.components-checkbox-control__input[type=checkbox]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border:1px solid #949494;font-size:16px;line-height:normal;border:1px solid #1e1e1e;transition:none;border-radius:2px;background:#fff;color:#1e1e1e;clear:none;cursor:pointer;display:inline-block;line-height:0;margin:0 4px 0 0;outline:0;padding:0!important;text-align:center;vertical-align:top;width:var(--checkbox-input-size);height:var(--checkbox-input-size);appearance:none;transition:.1s border-color ease-in-out}@media (min-width: 600px){.components-checkbox-control__input[type=checkbox]{font-size:13px;line-height:normal}}.components-checkbox-control__input[type=checkbox]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:#1e1e1e9e}.components-checkbox-control__input[type=checkbox]::-moz-placeholder{opacity:1;color:#1e1e1e9e}.components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:#1e1e1e9e}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.components-checkbox-control__input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-3px -5px;color:#fff}@media (min-width: 782px){.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-4px 0 0 -5px}}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{content:"";float:left;display:inline-block;vertical-align:middle;width:16px;font: 30px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width: 782px){.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{float:none;font-size:21px}}.components-checkbox-control__input[type=checkbox][aria-disabled=true],.components-checkbox-control__input[type=checkbox]:disabled{background:#f0f0f0;border-color:#ddd;cursor:default;opacity:1}@media (prefers-reduced-motion: reduce){.components-checkbox-control__input[type=checkbox]{transition-duration:0s;transition-delay:0s}}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(2 * var(--wp-admin-border-width-focus)) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.components-checkbox-control__input[type=checkbox]:checked,.components-checkbox-control__input[type=checkbox]:indeterminate{background:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));border-color:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))}.components-checkbox-control__input[type=checkbox]:checked::-ms-check,.components-checkbox-control__input[type=checkbox]:indeterminate::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:checked:before{content:none}.components-checkbox-control__input-container{position:relative;display:inline-block;margin-right:var(--checkbox-input-margin);vertical-align:middle;width:var(--checkbox-input-size);aspect-ratio:1;line-height:1;flex-shrink:0}svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{--checkmark-size: var(--checkbox-input-size);fill:#fff;cursor:pointer;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:var(--checkmark-size);height:var(--checkmark-size);-webkit-user-select:none;user-select:none;pointer-events:none}@media (min-width: 600px){svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{--checkmark-size: calc(var(--checkbox-input-size) + 4px)}}.components-checkbox-control__help{display:inline-block;margin-inline-start:calc(var(--checkbox-input-size) + var(--checkbox-input-margin))}.components-circular-option-picker{display:inline-block;width:100%;min-width:188px}.components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{display:flex;justify-content:flex-end;margin-top:12px}.components-circular-option-picker .components-circular-option-picker__swatches{display:flex;flex-wrap:wrap;gap:12px;position:relative;z-index:1}.components-circular-option-picker>*:not(.components-circular-option-picker__swatches){position:relative;z-index:0}.components-circular-option-picker__option-wrapper{display:inline-block;height:28px;width:28px;vertical-align:top;transform:scale(1);transition:.1s transform ease;will-change:transform}@media (prefers-reduced-motion: reduce){.components-circular-option-picker__option-wrapper{transition-duration:0s;transition-delay:0s}}.components-circular-option-picker__option-wrapper:hover{transform:scale(1.2)}.components-circular-option-picker__option-wrapper>div{height:100%;width:100%}.components-circular-option-picker__option-wrapper:before{content:"";position:absolute;inset:1px;border-radius:50%;z-index:-1;background:url('data:image/svg+xml,%3Csvg width="28" height="28" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M6 8V6H4v2h2zM8 8V6h2v2H8zM10 16H8v-2h2v2zM12 16v-2h2v2h-2zM12 18v-2h-2v2H8v2h2v-2h2zM14 18v2h-2v-2h2zM16 18h-2v-2h2v2z" fill="%23555D65"/%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M18 18h2v-2h-2v-2h2v-2h-2v-2h2V8h-2v2h-2V8h-2v2h2v2h-2v2h2v2h2v2zm-2-4v-2h2v2h-2z" fill="%23555D65"/%3E%3Cpath d="M18 18v2h-2v-2h2z" fill="%23555D65"/%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M8 10V8H6v2H4v2h2v2H4v2h2v2H4v2h2v2H4v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2v2h-2V4h-2v2h-2V4h-2v2h-2V4h-2v2h2v2h-2v2H8zm0 2v-2H6v2h2zm2 0v-2h2v2h-2zm0 2v-2H8v2H6v2h2v2H6v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h-2v2h-2V6h-2v2h-2v2h2v2h-2v2h-2z" fill="%23555D65"/%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M4 0H2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2H8V0H6v2H4V0zm0 4V2H2v2h2zm2 0V2h2v2H6zm0 2V4H4v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2H8v2H6z" fill="%23555D65"/%3E%3C/svg%3E')}.components-circular-option-picker__option{display:inline-block;vertical-align:top;height:100%;width:100%;border:none;border-radius:50%;background:transparent;box-shadow:inset 0 0 0 14px;transition:.1s box-shadow ease;cursor:pointer}@media (prefers-reduced-motion: reduce){.components-circular-option-picker__option{transition-duration:0s;transition-delay:0s}}.components-circular-option-picker__option:hover{box-shadow:inset 0 0 0 14px!important}.components-circular-option-picker__option[aria-pressed=true],.components-circular-option-picker__option[aria-selected=true]{box-shadow:inset 0 0 0 4px;position:relative;z-index:1;overflow:visible}.components-circular-option-picker__option[aria-pressed=true]+svg,.components-circular-option-picker__option[aria-selected=true]+svg{position:absolute;left:2px;top:2px;border-radius:50%;z-index:2;pointer-events:none}.components-circular-option-picker__option:after{content:"";position:absolute;inset:-1px;border-radius:50%;box-shadow:inset 0 0 0 1px #0003;border:1px solid transparent;box-sizing:inherit}.components-circular-option-picker__option:focus:after{content:"";border-radius:50%;box-shadow:inset 0 0 0 2px #fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border:2px solid #757575;width:calc(100% + 4px);height:calc(100% + 4px)}.components-circular-option-picker__option.components-button:focus{background-color:transparent;box-shadow:inset 0 0 0 14px;outline:none}.components-circular-option-picker__button-action .components-circular-option-picker__option{color:#fff;background:#fff}.components-circular-option-picker__dropdown-link-action{margin-right:16px}.components-circular-option-picker__dropdown-link-action .components-button{line-height:22px}.components-palette-edit__popover-gradient-picker{width:260px;padding:8px}.components-dropdown-menu__menu .components-palette-edit__menu-button{width:100%}.component-color-indicator{width:20px;height:20px;box-shadow:inset 0 0 0 1px #0003;border-radius:50%;display:inline-block;padding:0;background:#fff linear-gradient(-45deg,transparent 48%,#ddd 48%,#ddd 52%,transparent 52%)}.components-combobox-control{width:100%}input.components-combobox-control__input[type=text]{width:100%;border:none;box-shadow:none;font-family:inherit;font-size:16px;padding:2px;margin:0;line-height:inherit;min-height:auto}@media (min-width: 600px){input.components-combobox-control__input[type=text]{font-size:13px}}input.components-combobox-control__input[type=text]:focus{outline:none;box-shadow:none}.components-combobox-control__suggestions-container{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #949494;font-size:16px;line-height:normal;display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;padding:0}@media (prefers-reduced-motion: reduce){.components-combobox-control__suggestions-container{transition-duration:0s;transition-delay:0s}}@media (min-width: 600px){.components-combobox-control__suggestions-container{font-size:13px;line-height:normal}}.components-combobox-control__suggestions-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-combobox-control__suggestions-container::-webkit-input-placeholder{color:#1e1e1e9e}.components-combobox-control__suggestions-container::-moz-placeholder{opacity:1;color:#1e1e1e9e}.components-combobox-control__suggestions-container:-ms-input-placeholder{color:#1e1e1e9e}.components-combobox-control__suggestions-container:focus-within{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-combobox-control__reset.components-button{display:flex;height:16px;min-width:16px;padding:0}.components-color-palette__custom-color-wrapper{position:relative;z-index:0}.components-color-palette__custom-color-button{position:relative;border:none;background:none;height:64px;width:100%;box-sizing:border-box;cursor:pointer;outline:1px solid transparent;border-radius:4px 4px 0 0;box-shadow:inset 0 0 0 1px #0003}.components-color-palette__custom-color-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));outline-width:2px}.components-color-palette__custom-color-button:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:-1;background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 25%,transparent 75%,#e0e0e0 75%,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 25%,transparent 75%,#e0e0e0 75%,#e0e0e0);background-position:0 0,24px 24px;background-size:48px 48px}.components-color-palette__custom-color-text-wrapper{padding:12px 16px;border-radius:0 0 4px 4px;position:relative;font-size:13px;box-shadow:inset 0 -1px #0003,inset 1px 0 #0003,inset -1px 0 #0003}.components-color-palette__custom-color-name{color:var(--wp-components-color-foreground, #1e1e1e);margin:0 1px}.components-color-palette__custom-color-value{color:#757575}.components-color-palette__custom-color-value--is-hex{text-transform:uppercase}.components-color-palette__custom-color-value:empty:after{content:"​";visibility:hidden}.components-custom-gradient-picker__gradient-bar{border-radius:2px;width:100%;height:48px;position:relative;z-index:1}.components-custom-gradient-picker__gradient-bar.has-gradient{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 25%,transparent 75%,#e0e0e0 75%,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 25%,transparent 75%,#e0e0e0 75%,#e0e0e0);background-position:0 0,12px 12px;background-size:24px 24px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__gradient-bar-background{position:absolute;inset:0}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{position:relative;width:calc(100% - 48px);margin-left:auto;margin-right:auto}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-dropdown{position:absolute;height:16px;width:16px;top:16px;display:flex}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown{position:relative;height:inherit;width:inherit;min-width:16px;border-radius:50%;background:#fff;padding:2px;color:#1e1e1e}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown svg{height:100%;width:100%}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{height:inherit;width:inherit;border-radius:50%;padding:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 2px #00000040;outline:2px solid transparent}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus,.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active{box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus) * 2) #fff,0 0 2px #00000040;outline:1.5px solid transparent}.components-custom-gradient-picker__remove-control-point-wrapper{padding-bottom:8px}.components-custom-gradient-picker__inserter{direction:ltr}.components-custom-gradient-picker__liner-gradient-indicator{display:inline-block;flex:0 auto;width:20px;height:20px}.components-custom-gradient-picker__ui-line{position:relative;z-index:0}.block-editor-dimension-control .components-base-control__field{display:flex;align-items:center}.block-editor-dimension-control .components-base-control__label{display:flex;align-items:center;margin-right:1em;margin-bottom:0}.block-editor-dimension-control .components-base-control__label .dashicon{margin-right:.5em}.block-editor-dimension-control.is-manual .components-base-control__label{width:10em}body.is-dragging-components-draggable{cursor:move;cursor:grabbing!important}.components-draggable__invisible-drag-image{position:fixed;left:-1000px;height:50px;width:50px}.components-draggable__clone{position:fixed;padding:0;background:transparent;pointer-events:none;z-index:1000000000}.components-drop-zone{position:absolute;inset:0;z-index:40;visibility:hidden;opacity:0;border-radius:2px}.components-drop-zone.is-active{opacity:1;visibility:visible}.components-drop-zone .components-drop-zone__content{position:absolute;inset:0;height:100%;width:100%;display:flex;background-color:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));align-items:center;justify-content:center;z-index:50;text-align:center;color:#fff;opacity:0;pointer-events:none}.components-drop-zone .components-drop-zone__content-inner{opacity:0;transform:scale(.9)}.components-drop-zone.is-active:not(.has-dragged-out) .components-drop-zone__content{opacity:1;transition:opacity .2s ease-in-out}@media (prefers-reduced-motion){.components-drop-zone.is-active:not(.has-dragged-out) .components-drop-zone__content{transition:none}}.components-drop-zone.is-active:not(.has-dragged-out) .components-drop-zone__content-inner{opacity:1;transform:scale(1);transition:opacity .1s ease-in-out .1s,transform .1s ease-in-out .1s}@media (prefers-reduced-motion){.components-drop-zone.is-active:not(.has-dragged-out) .components-drop-zone__content-inner{transition:none}}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{margin:0 auto 8px;line-height:0;fill:currentColor;pointer-events:none}.components-drop-zone__content-text{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-dropdown{display:inline-block}.components-dropdown__content .components-popover__content{padding:8px}.components-dropdown__content [role=menuitem]{white-space:nowrap}.components-dropdown__content .components-menu-group{padding:8px;margin:0 -8px}.components-dropdown__content .components-menu-group:first-child{margin-top:-8px}.components-dropdown__content .components-menu-group:last-child{margin-bottom:-8px}.components-dropdown__content .components-menu-group+.components-menu-group{margin-top:0;border-top:1px solid #ccc;padding:8px}.components-dropdown__content.is-alternate .components-menu-group+.components-menu-group{border-color:#1e1e1e}.components-dropdown-menu__toggle{vertical-align:top}.components-dropdown-menu__menu{width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}.components-dropdown-menu__menu .components-dropdown-menu__menu-item,.components-dropdown-menu__menu .components-menu-item{width:100%;padding:6px;outline:none;cursor:pointer;white-space:nowrap}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator,.components-dropdown-menu__menu .components-menu-item.has-separator{margin-top:6px;position:relative;overflow:visible}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before,.components-dropdown-menu__menu .components-menu-item.has-separator:before{display:block;content:"";box-sizing:content-box;background-color:#ddd;position:absolute;top:-3px;left:0;right:0;height:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg,.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active .dashicon,.components-dropdown-menu__menu .components-menu-item.is-active svg,.components-dropdown-menu__menu .components-menu-item.is-active .dashicon{color:#fff;background:#1e1e1e;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-icon-only,.components-dropdown-menu__menu .components-menu-item.is-icon-only{width:auto}.components-dropdown-menu__menu .components-menu-item__button,.components-dropdown-menu__menu .components-menu-item__button.components-button{min-height:36px;height:auto;text-align:left;padding-left:8px;padding-right:8px}.components-duotone-picker__color-indicator:before{background:transparent}.components-duotone-picker__color-indicator>.components-button{background:linear-gradient(-45deg,transparent 48%,#ddd 48%,#ddd 52%,transparent 52%);color:transparent}.components-duotone-picker__color-indicator>.components-button.is-pressed:hover:not(:disabled){background:linear-gradient(-45deg,transparent 48%,#ddd 48%,#ddd 52%,transparent 52%);color:transparent}.components-duotone-picker__color-indicator>.components-button:not([aria-disabled=true]):active{color:transparent}.components-color-list-picker,.components-color-list-picker__swatch-button{width:100%}.components-color-list-picker__color-picker{margin:8px 0}.components-color-list-picker__swatch-button{padding:6px}.components-color-list-picker__swatch-color{margin:2px}.components-external-link{text-decoration:none}.components-external-link__contents{text-decoration:underline}.components-external-link__icon{margin-left:.5ch;font-weight:400}.components-form-toggle{position:relative;display:inline-block;height:16px}.components-form-toggle .components-form-toggle__track{position:relative;content:"";display:inline-block;box-sizing:border-box;vertical-align:top;background-color:#fff;border:1px solid #949494;width:32px;height:16px;border-radius:8px;transition:.2s background-color ease,.2s border-color ease;overflow:hidden}@media (prefers-reduced-motion: reduce){.components-form-toggle .components-form-toggle__track{transition-duration:0s;transition-delay:0s}}.components-form-toggle .components-form-toggle__track:after{content:"";position:absolute;inset:0;box-sizing:border-box;border-top:16px solid transparent;transition:.2s opacity ease;opacity:0}@media (prefers-reduced-motion: reduce){.components-form-toggle .components-form-toggle__track:after{transition-duration:0s;transition-delay:0s}}.components-form-toggle .components-form-toggle__thumb{display:block;position:absolute;box-sizing:border-box;top:2px;left:2px;width:12px;height:12px;border-radius:50%;transition:.2s transform ease,.2s background-color ease-out;background-color:#1e1e1e;border:6px solid transparent}@media (prefers-reduced-motion: reduce){.components-form-toggle .components-form-toggle__thumb{transition-duration:0s;transition-delay:0s}}.components-form-toggle.is-checked .components-form-toggle__track{background-color:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));border-color:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))}.components-form-toggle.is-checked .components-form-toggle__track:after{opacity:1}.components-form-toggle .components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(2 * var(--wp-admin-border-width-focus)) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));outline:2px solid transparent;outline-offset:2px}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:#fff;border-width:0;transform:translate(16px)}.components-form-toggle.is-disabled,.components-disabled .components-form-toggle{opacity:.3}.components-form-toggle input.components-form-toggle__input[type=checkbox]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;margin:0;padding:0;z-index:1;border:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:before{content:""}.components-form-toggle input.components-form-toggle__input[type=checkbox]:not(:disabled,[aria-disabled=true]){cursor:pointer}.components-form-token-field__input-container{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #949494;font-size:16px;line-height:normal;width:100%;padding:0;cursor:text}@media (prefers-reduced-motion: reduce){.components-form-token-field__input-container{transition-duration:0s;transition-delay:0s}}@media (min-width: 600px){.components-form-token-field__input-container{font-size:13px;line-height:normal}}.components-form-token-field__input-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-form-token-field__input-container::-webkit-input-placeholder{color:#1e1e1e9e}.components-form-token-field__input-container::-moz-placeholder{opacity:1;color:#1e1e1e9e}.components-form-token-field__input-container:-ms-input-placeholder{color:#1e1e1e9e}.components-form-token-field__input-container.is-disabled{background:#ddd;border-color:#ddd}.components-form-token-field__input-container.is-active{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-form-token-field__input-container input[type=text].components-form-token-field__input{display:inline-block;flex:1;font-family:inherit;font-size:16px;width:100%;max-width:100%;margin-left:4px;padding:0;min-height:24px;min-width:50px;background:inherit;border:0;color:#1e1e1e;box-shadow:none}@media (min-width: 600px){.components-form-token-field__input-container input[type=text].components-form-token-field__input{font-size:13px}}.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus,.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input{outline:none;box-shadow:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__token{font-size:13px;display:flex;color:#1e1e1e;max-width:100%}.components-form-token-field__token.is-success .components-form-token-field__token-text,.components-form-token-field__token.is-success .components-form-token-field__remove-token{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__token-text,.components-form-token-field__token.is-error .components-form-token-field__remove-token{background:#cc1818}.components-form-token-field__token.is-validating .components-form-token-field__token-text,.components-form-token-field__token.is-validating .components-form-token-field__remove-token{color:#757575}.components-form-token-field__token.is-borderless{position:relative;padding:0 24px 0 0}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:transparent;color:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:transparent;color:#757575;position:absolute;top:1px;right:0;padding:0}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{color:#cc1818;padding:0 4px 0 6px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#1e1e1e}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token{cursor:default}.components-form-token-field__token-text,.components-form-token-field__remove-token.components-button{display:inline-block;line-height:24px;height:auto;background:#ddd;min-width:unset;transition:all .2s cubic-bezier(.4,1,.4,1)}@media (prefers-reduced-motion: reduce){.components-form-token-field__token-text,.components-form-token-field__remove-token.components-button{transition-duration:0s;transition-delay:0s;animation-duration:1ms;animation-delay:0s}}.components-form-token-field__token-text{border-radius:1px 0 0 1px;padding:0 0 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.components-form-token-field__remove-token.components-button{cursor:pointer;border-radius:0 1px 1px 0;padding:0 2px;color:#1e1e1e;line-height:10px;overflow:initial}.components-form-token-field__remove-token.components-button:hover{color:#1e1e1e}.components-form-token-field__suggestions-list{flex:1 0 100%;min-width:100%;max-height:128px;overflow-y:auto;transition:all .15s ease-in-out;list-style:none;box-shadow:inset 0 1px #949494;margin:0;padding:0}@media (prefers-reduced-motion: reduce){.components-form-token-field__suggestions-list{transition-duration:0s;transition-delay:0s}}.components-form-token-field__suggestion{color:#1e1e1e;display:block;font-size:13px;padding:8px 12px;min-height:32px;margin:0;cursor:pointer;box-sizing:border-box}.components-form-token-field__suggestion.is-selected{background:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));color:#fff}.components-form-token-field__suggestion[aria-disabled=true]{pointer-events:none;color:#949494}.components-form-token-field__suggestion[aria-disabled=true].is-selected{background-color:rgba(var(--wp-components-color-accent--rgb, var(--wp-admin-theme-color--rgb)),.04)}@media (min-width: 600px){.components-guide{width:600px}}.components-guide .components-modal__content{padding:0;margin-top:0}.components-guide .components-modal__content:before{content:none}.components-guide .components-modal__header{border-bottom:none;padding:0;position:sticky;height:60px}.components-guide .components-modal__header .components-button{align-self:flex-start;margin:8px 8px 0 0;position:static}.components-guide .components-modal__header .components-button:hover svg{fill:#fff}.components-guide__container{display:flex;flex-direction:column;justify-content:space-between;margin-top:-60px;min-height:100%}.components-guide__page{display:flex;flex-direction:column;justify-content:center;position:relative}@media (min-width: 600px){.components-guide__page{min-height:300px}}.components-guide__footer{align-content:center;display:flex;height:36px;justify-content:center;margin:0 0 24px;padding:0 32px;position:relative;width:100%}.components-guide__page-control{margin:0;text-align:center}.components-guide__page-control li{display:inline-block;margin:0}.components-guide__page-control .components-button{height:30px;min-width:20px;margin:-6px 0;color:#e0e0e0}.components-guide__page-control li[aria-current=step] .components-button{color:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))}.components-modal__frame.components-guide{border:none;min-width:312px;max-height:575px}@media (max-width: 600px){.components-modal__frame.components-guide{margin:auto;max-width:calc(100vw - 32px)}}.components-button.components-guide__back-button,.components-button.components-guide__forward-button,.components-button.components-guide__finish-button{position:absolute}.components-button.components-guide__back-button{left:32px}.components-button.components-guide__forward-button,.components-button.components-guide__finish-button{right:32px}[role=region]{position:relative}[role=region].interface-interface-skeleton__content:focus-visible:after{content:"";position:absolute;pointer-events:none;inset:0;outline-color:var(--wp-admin-theme-color);outline-style:solid;outline-width:calc(2 * (var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1)));outline-offset:calc(2 * ((-1 * var(--wp-admin-border-width-focus)) / var(--wp-block-editor-iframe-zoom-out-scale, 1)));z-index:1000000}.is-focusing-regions [role=region]:focus:after{content:"";position:absolute;pointer-events:none;inset:0;outline-color:var(--wp-admin-theme-color);outline-style:solid;outline-width:calc(2 * (var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1)));outline-offset:calc(2 * ((-1 * var(--wp-admin-border-width-focus)) / var(--wp-block-editor-iframe-zoom-out-scale, 1)));z-index:1000000}.is-focusing-regions.is-distraction-free .interface-interface-skeleton__header .edit-post-header,.is-focusing-regions .interface-interface-skeleton__sidebar .editor-layout__toggle-sidebar-panel,.is-focusing-regions .interface-interface-skeleton__actions .editor-layout__toggle-publish-panel,.is-focusing-regions .interface-interface-skeleton__actions .editor-layout__toggle-entities-saved-states-panel,.is-focusing-regions .editor-post-publish-panel{outline-color:var(--wp-admin-theme-color);outline-style:solid;outline-width:calc(2 * (var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1)));outline-offset:calc(2 * ((-1 * var(--wp-admin-border-width-focus)) / var(--wp-block-editor-iframe-zoom-out-scale, 1)))}.components-menu-group+.components-menu-group{margin-top:8px;padding-top:8px;border-top:1px solid #1e1e1e}.components-menu-group+.components-menu-group.has-hidden-separator{border-top:none;margin-top:0;padding-top:0}.components-menu-group__label{padding:0 8px;margin-top:4px;margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500;white-space:nowrap}.components-menu-item__button,.components-menu-item__button.components-button{width:100%}.components-menu-item__button[role=menuitemradio] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button.components-button[role=menuitemradio] .components-menu-item__item:only-child,.components-menu-item__button.components-button[role=menuitemcheckbox] .components-menu-item__item:only-child{padding-right:48px;box-sizing:initial}.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button.components-button .components-menu-items__item-icon{display:inline-block;flex:0 0 auto}.components-menu-item__button .components-menu-items__item-icon.has-icon-right,.components-menu-item__button.components-button .components-menu-items__item-icon.has-icon-right{margin-right:-2px;margin-left:24px}.components-menu-item__button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right,.components-menu-item__button.components-button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right{margin-left:8px}.components-menu-item__button .block-editor-block-icon,.components-menu-item__button.components-button .block-editor-block-icon{margin-left:-2px;margin-right:8px}.components-menu-item__button.is-primary,.components-menu-item__button.components-button.is-primary{justify-content:center}.components-menu-item__button.is-primary .components-menu-item__item,.components-menu-item__button.components-button.is-primary .components-menu-item__item{margin-right:0}.components-menu-item__button:disabled.is-tertiary,.components-menu-item__button[aria-disabled=true].is-tertiary,.components-menu-item__button.components-button:disabled.is-tertiary,.components-menu-item__button.components-button[aria-disabled=true].is-tertiary{background:none;color:var(--wp-components-color-accent-darker-10, var(--wp-admin-theme-color-darker-10, #2145e6));opacity:.3}.components-menu-item__info-wrapper{display:flex;flex-direction:column;margin-right:auto}.components-menu-item__info{margin-top:4px;font-size:12px;color:#757575;white-space:normal}.components-menu-item__item{white-space:nowrap;min-width:160px;margin-right:auto;display:inline-flex;align-items:center}.components-menu-item__shortcut{align-self:center;margin-right:0;margin-left:auto;padding-left:24px;color:currentColor;display:none}@media (min-width: 480px){.components-menu-item__shortcut{display:inline}}.components-menu-items-choice svg,.components-menu-items-choice.components-button svg{margin-right:12px}.components-menu-items-choice.has-icon,.components-menu-items-choice.components-button.has-icon{padding-left:12px}.components-modal__screen-overlay{position:fixed;inset:0;background-color:#00000059;z-index:100000;display:flex;animation:edit-post__fade-in-animation .08s linear 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion: reduce){.components-modal__screen-overlay{animation-duration:1ms;animation-delay:0s}}.components-modal__frame{box-sizing:border-box;margin:40px 0 0;width:100%;background:#fff;box-shadow:0 .7px 1px #00000026,0 2.7px 3.8px -.2px #00000026,0 5.5px 7.8px -.3px #00000026,.1px 11.5px 16.4px -.5px #00000026;border-radius:8px 8px 0 0;overflow:hidden;display:flex;animation:components-modal__appear-animation .26s cubic-bezier(.29,0,0,1);animation-fill-mode:forwards}.components-modal__frame *,.components-modal__frame *:before,.components-modal__frame *:after{box-sizing:inherit}@media (prefers-reduced-motion: reduce){.components-modal__frame{animation-duration:1ms;animation-delay:0s}}@media (min-width: 600px){.components-modal__frame{border-radius:8px;margin:auto;width:auto;min-width:350px;max-width:calc(100% - 32px);max-height:calc(100% - 120px)}}@media (min-width: 600px) and (min-width: 600px){.components-modal__frame.is-full-screen{width:calc(100% - 32px);height:calc(100% - 32px);max-height:none}}@media (min-width: 600px) and (min-width: 782px){.components-modal__frame.is-full-screen{width:calc(100% - 80px);height:calc(100% - 80px);max-width:none}}@media (min-width: 600px){.components-modal__frame.has-size-small,.components-modal__frame.has-size-medium,.components-modal__frame.has-size-large{width:100%}}@media (min-width: 600px){.components-modal__frame.has-size-small{max-width:384px}}@media (min-width: 600px){.components-modal__frame.has-size-medium{max-width:512px}}@media (min-width: 600px){.components-modal__frame.has-size-large{max-width:840px}}@media (min-width: 960px){.components-modal__frame{max-height:70%}}@keyframes components-modal__appear-animation{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}.components-modal__header{box-sizing:border-box;border-bottom:1px solid transparent;padding:24px 32px 8px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;height:72px;width:100%;z-index:10;position:absolute;top:0;left:0}.components-modal__header .components-modal__header-heading{font-size:1.2rem;font-weight:600}.components-modal__header h1{line-height:1;margin:0}.components-modal__header .components-button{position:relative;left:8px}.components-modal__content.has-scrolled-content:not(.hide-header) .components-modal__header{border-bottom-color:#ddd}.components-modal__header+p{margin-top:0}.components-modal__header-heading-container{align-items:center;flex-grow:1;display:flex;flex-direction:row;justify-content:left}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-width:36px;max-height:36px;padding:8px}.components-modal__content{flex:1;margin-top:72px;padding:4px 32px 32px;overflow:auto}.components-modal__content.hide-header{margin-top:0;padding-top:32px}.components-modal__content.is-scrollable:focus-visible{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));outline:2px solid transparent;outline-offset:-2px}.components-notice{display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#fff;border-left:4px solid var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));padding:8px 12px;align-items:center}.components-notice.is-dismissible{position:relative}.components-notice.is-success{border-left-color:#4ab866;background-color:#eff9f1}.components-notice.is-warning{border-left-color:#f0b849;background-color:#fef8ee}.components-notice.is-error{border-left-color:#cc1818;background-color:#f4a2a2}.components-notice__content{flex-grow:1;margin:4px 25px 4px 0}.components-notice__actions{display:flex;flex-wrap:wrap}.components-notice__action.components-button{margin-right:8px}.components-notice__action.components-button,.components-notice__action.components-button.is-link{margin-left:12px}.components-notice__action.components-button.is-secondary{vertical-align:initial}.components-notice__dismiss{color:#757575;align-self:flex-start;flex-shrink:0}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus{color:#1e1e1e;background-color:transparent}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}.components-notice-list{max-width:100vw;box-sizing:border-box}.components-notice-list .components-notice__content{margin-top:12px;margin-bottom:12px;line-height:2}.components-notice-list .components-notice__action.components-button{display:block;margin-left:0;margin-top:8px}.components-panel{background:#fff;border:1px solid #e0e0e0}.components-panel>.components-panel__header:first-child,.components-panel>.components-panel__body:first-child{margin-top:-1px}.components-panel>.components-panel__header:last-child,.components-panel>.components-panel__body:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-top:1px solid #e0e0e0;border-bottom:1px solid #e0e0e0}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__header{display:flex;flex-shrink:0;justify-content:space-between;align-items:center;padding:0 16px;border-bottom:1px solid #ddd;box-sizing:content-box;height:47px}.components-panel__header h2{margin:0;font-size:inherit;color:inherit}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;padding:0;font-size:inherit;margin-top:0;margin-bottom:0;transition:.1s background ease-in-out}@media (prefers-reduced-motion: reduce){.components-panel__body>.components-panel__body-title{transition-duration:0s;transition-delay:0s}}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 5px}.components-panel__body>.components-panel__body-title:hover{background:#f0f0f0;border:none}.components-panel__body-toggle.components-button{position:relative;padding:16px 48px 16px 16px;outline:none;width:100%;font-weight:500;text-align:left;color:#1e1e1e;border:none;box-shadow:none;transition:.1s background ease-in-out;height:auto}@media (prefers-reduced-motion: reduce){.components-panel__body-toggle.components-button{transition-duration:0s;transition-delay:0s}}.components-panel__body-toggle.components-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));border-radius:0}.components-panel__body-toggle.components-button .components-panel__arrow{position:absolute;right:16px;top:50%;transform:translateY(-50%);color:#1e1e1e;fill:currentColor;transition:.1s color ease-in-out}@media (prefers-reduced-motion: reduce){.components-panel__body-toggle.components-button .components-panel__arrow{transition-duration:0s;transition-delay:0s}}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{transform:scaleX(-1);-ms-filter:fliph;filter:FlipH;margin-top:-10px}.components-panel__icon{color:#757575;margin:-2px 0 -2px 6px}.components-panel__body-toggle-icon{margin-right:-5px}.components-panel__color-title{float:left;height:19px}.components-panel__row{display:flex;justify-content:space-between;align-items:center;margin-top:8px;min-height:36px}.components-panel__row select{min-width:0}.components-panel__row label{margin-right:12px;flex-shrink:0;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder.components-placeholder{font-size:13px;box-sizing:border-box;position:relative;padding:24px;width:100%;text-align:left;margin:0;color:#1e1e1e;display:flex;flex-direction:column;align-items:flex-start;gap:16px;-moz-font-smoothing:subpixel-antialiased;-webkit-font-smoothing:subpixel-antialiased;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;outline:1px solid transparent}.components-placeholder__error,.components-placeholder__instructions,.components-placeholder__label,.components-placeholder__fieldset{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;letter-spacing:initial;line-height:initial;text-transform:none;font-weight:400}.components-placeholder__label{font-weight:600;align-items:center;display:flex}.components-placeholder__label>svg,.components-placeholder__label .dashicon,.components-placeholder__label .block-editor-block-icon{margin-right:4px;fill:currentColor}@media (forced-colors: active){.components-placeholder__label>svg,.components-placeholder__label .dashicon,.components-placeholder__label .block-editor-block-icon{fill:CanvasText}}.components-placeholder__label:empty{display:none}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;width:100%;flex-wrap:wrap;gap:16px;justify-content:flex-start}.components-placeholder__fieldset p,.components-placeholder__fieldset form p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__fieldset.is-column-layout,.components-placeholder__fieldset.is-column-layout form{flex-direction:column}.components-placeholder__input[type=url]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #949494;font-size:16px;line-height:normal;flex:1 1 auto}@media (prefers-reduced-motion: reduce){.components-placeholder__input[type=url]{transition-duration:0s;transition-delay:0s}}@media (min-width: 600px){.components-placeholder__input[type=url]{font-size:13px;line-height:normal}}.components-placeholder__input[type=url]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-placeholder__input[type=url]::-webkit-input-placeholder{color:#1e1e1e9e}.components-placeholder__input[type=url]::-moz-placeholder{opacity:1;color:#1e1e1e9e}.components-placeholder__input[type=url]:-ms-input-placeholder{color:#1e1e1e9e}.components-placeholder__error{width:100%;gap:8px}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link{margin-left:10px;margin-right:10px}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link:last-child{margin-right:0}.components-placeholder.is-medium .components-placeholder__instructions,.components-placeholder.is-small .components-placeholder__instructions{display:none}.components-placeholder.is-medium .components-placeholder__fieldset,.components-placeholder.is-medium .components-placeholder__fieldset form,.components-placeholder.is-small .components-placeholder__fieldset,.components-placeholder.is-small .components-placeholder__fieldset form{flex-direction:column}.components-placeholder.is-medium .components-placeholder__fieldset>*,.components-placeholder.is-medium .components-button,.components-placeholder.is-small .components-placeholder__fieldset>*,.components-placeholder.is-small .components-button{width:100%;justify-content:center}.components-placeholder.is-small{padding:16px}.components-placeholder.has-illustration{color:inherit;display:flex;box-shadow:none;border-radius:0;-webkit-backdrop-filter:blur(100px);backdrop-filter:blur(100px);background-color:transparent;backface-visibility:hidden;overflow:hidden}.is-dark-theme .components-placeholder.has-illustration{background-color:#0000001a}.components-placeholder.has-illustration .components-placeholder__fieldset{margin-left:0;margin-right:0}.components-placeholder.has-illustration .components-placeholder__label,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-button{opacity:0;pointer-events:none;transition:opacity .1s linear}@media (prefers-reduced-motion: reduce){.components-placeholder.has-illustration .components-placeholder__label,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-button{transition-duration:0s;transition-delay:0s}}.is-selected>.components-placeholder.has-illustration .components-placeholder__label,.is-selected>.components-placeholder.has-illustration .components-placeholder__instructions,.is-selected>.components-placeholder.has-illustration .components-button{opacity:1;pointer-events:auto}.components-placeholder.has-illustration:before{content:"";position:absolute;inset:0;pointer-events:none;background:currentColor;opacity:.1}.is-selected .components-placeholder.has-illustration{overflow:auto}.components-placeholder__preview{display:flex;justify-content:center}.components-placeholder__illustration{box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;stroke:currentColor;opacity:.25}.components-popover{box-sizing:border-box;z-index:1000000;will-change:transform}.components-popover *,.components-popover *:before,.components-popover *:after{box-sizing:inherit}.components-popover.is-expanded{position:fixed;inset:0;z-index:1000000!important}.components-popover__content{background:#fff;box-shadow:0 0 0 1px #ccc,0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a;border-radius:4px;box-sizing:border-box;width:min-content}.is-alternate .components-popover__content{box-shadow:0 0 0 1px #1e1e1e}.is-unstyled .components-popover__content{background:none;border-radius:0;box-shadow:none}.components-popover.is-expanded .components-popover__content{position:static;height:calc(100% - 48px);overflow-y:visible;width:auto;box-shadow:0 -1px #ccc}.components-popover.is-expanded.is-alternate .components-popover__content{box-shadow:0 -1px #1e1e1e}.components-popover__header{align-items:center;background:#fff;display:flex;height:48px;justify-content:space-between;padding:0 8px 0 16px}.components-popover__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.components-popover__close.components-button{z-index:5}.components-popover__arrow{position:absolute;width:14px;height:14px;pointer-events:none;display:flex}.components-popover__arrow:before{content:"";position:absolute;top:-1px;left:1px;height:2px;right:1px;background-color:#fff}.components-popover__arrow.is-top{bottom:-14px!important;transform:rotate(0)}.components-popover__arrow.is-right{left:-14px!important;transform:rotate(90deg)}.components-popover__arrow.is-bottom{top:-14px!important;transform:rotate(180deg)}.components-popover__arrow.is-left{right:-14px!important;transform:rotate(-90deg)}.components-popover__triangle{display:block;flex:1}.components-popover__triangle-bg{fill:#fff}.components-popover__triangle-border{fill:transparent;stroke-width:1px;stroke:#ccc}.is-alternate .components-popover__triangle-border{stroke:#1e1e1e}.components-radio-control{border:0;margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-radio-control__group-wrapper.has-help{margin-block-end:12px}.components-radio-control__option{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto minmax(0,max-content);column-gap:8px;align-items:center}.components-radio-control__input[type=radio]{grid-column:1;grid-row:1;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border:1px solid #949494;font-size:16px;line-height:normal;border:1px solid #1e1e1e;transition:none;border-radius:50%;width:24px;height:24px;min-width:24px;max-width:24px;position:relative;display:inline-flex;margin:0;padding:0;appearance:none;cursor:pointer}@media (prefers-reduced-motion: reduce){.components-radio-control__input[type=radio]{transition-duration:0s;transition-delay:0s}}@media (min-width: 600px){.components-radio-control__input[type=radio]{font-size:13px;line-height:normal}}.components-radio-control__input[type=radio]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-radio-control__input[type=radio]::-webkit-input-placeholder{color:#1e1e1e9e}.components-radio-control__input[type=radio]::-moz-placeholder{opacity:1;color:#1e1e1e9e}.components-radio-control__input[type=radio]:-ms-input-placeholder{color:#1e1e1e9e}@media (min-width: 600px){.components-radio-control__input[type=radio]{height:16px;width:16px;min-width:16px;max-width:16px}}.components-radio-control__input[type=radio]:checked:before{box-sizing:inherit;width:12px;height:12px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;background-color:#fff;border:4px solid #fff}@media (min-width: 600px){.components-radio-control__input[type=radio]:checked:before{width:8px;height:8px}}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.components-radio-control__input[type=radio]:checked{background:var(--wp-admin-theme-color);border:none}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(2 * var(--wp-admin-border-width-focus)) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.components-radio-control__input[type=radio]:checked{background:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));border-color:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))}.components-radio-control__input[type=radio]:checked:before{content:"";border-radius:50%}.components-radio-control__label{grid-column:2;grid-row:1;cursor:pointer;line-height:24px}@media (min-width: 600px){.components-radio-control__label{line-height:16px}}.components-radio-control__option-description{grid-column:2;grid-row:2;padding-block-start:4px}.components-radio-control__option-description.components-radio-control__option-description{margin-top:0}.components-resizable-box__handle{display:none;width:23px;height:23px;z-index:2}.components-resizable-box__container.has-show-handle .components-resizable-box__handle{display:block}.components-resizable-box__container>img{width:inherit}.components-resizable-box__handle:after{display:block;content:"";width:15px;height:15px;border-radius:50%;background:#fff;cursor:inherit;position:absolute;top:calc(50% - 8px);right:calc(50% - 8px);box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));outline:2px solid transparent}.components-resizable-box__side-handle:before{display:block;border-radius:9999px;content:"";width:3px;height:3px;background:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));cursor:inherit;position:absolute;top:calc(50% - 1px);right:calc(50% - 1px);transition:transform .1s ease-in;will-change:transform;opacity:0}@media (prefers-reduced-motion: reduce){.components-resizable-box__side-handle:before{transition-duration:0s;transition-delay:0s}}.components-resizable-box__side-handle,.components-resizable-box__corner-handle{z-index:2}.components-resizable-box__side-handle.components-resizable-box__handle-top,.components-resizable-box__side-handle.components-resizable-box__handle-bottom,.components-resizable-box__side-handle.components-resizable-box__handle-top:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:before{width:100%;left:0;border-left:0;border-right:0}.components-resizable-box__side-handle.components-resizable-box__handle-left,.components-resizable-box__side-handle.components-resizable-box__handle-right,.components-resizable-box__side-handle.components-resizable-box__handle-left:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:before{height:100%;top:0;border-top:0;border-bottom:0}.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before{animation:components-resizable-box__top-bottom-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion: reduce){.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before{animation-duration:1ms;animation-delay:0s}}.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before{animation:components-resizable-box__left-right-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion: reduce){.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before{animation-duration:1ms;animation-delay:0s}}@media not all and (min-resolution: .001dpcm){@supports (-webkit-appearance: none){.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before{animation:none}.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before{animation:none}}}@keyframes components-resizable-box__top-bottom-animation{0%{transform:scaleX(0);opacity:0}to{transform:scaleX(1);opacity:1}}@keyframes components-resizable-box__left-right-animation{0%{transform:scaleY(0);opacity:0}to{transform:scaleY(1);opacity:1}}/*!rtl:begin:ignore*/.components-resizable-box__handle-right{right:-11.5px}.components-resizable-box__handle-left{left:-11.5px}.components-resizable-box__handle-top{top:-11.5px}.components-resizable-box__handle-bottom{bottom:-11.5px}/*!rtl:end:ignore*/.components-responsive-wrapper{position:relative;max-width:100%;display:flex;align-items:center;justify-content:center}.components-responsive-wrapper__content{display:block;max-width:100%;width:100%}.components-sandbox{overflow:hidden}iframe.components-sandbox{width:100%}html.lockscroll,body.lockscroll{overflow:hidden}.components-select-control__input{outline:0;-webkit-tap-highlight-color:rgba(0,0,0,0)!important}@media (max-width: 782px){.components-base-control .components-base-control__field .components-select-control__input{font-size:16px}}.components-snackbar{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background:#000000d9;-webkit-backdrop-filter:blur(16px) saturate(180%);backdrop-filter:blur(16px) saturate(180%);border-radius:4px;box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a;color:#fff;padding:12px 20px;width:100%;max-width:600px;box-sizing:border-box;cursor:pointer;pointer-events:auto}@media (min-width: 600px){.components-snackbar{width:-moz-fit-content;width:fit-content}}.components-snackbar:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))}.components-snackbar.components-snackbar-explicit-dismiss{cursor:default}.components-snackbar .components-snackbar__content-with-icon{position:relative;padding-left:24px}.components-snackbar .components-snackbar__icon{position:absolute;left:-8px;top:-2.9px}.components-snackbar .components-snackbar__dismiss-button{margin-left:24px;cursor:pointer}.components-snackbar__action.components-button{margin-left:32px;color:#fff;height:auto;flex-shrink:0;line-height:1.4;padding:0}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary){text-decoration:underline;background-color:transparent}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):focus{color:#fff;box-shadow:none;outline:1px dotted #fff}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{text-decoration:none;color:#fff}.components-snackbar__content{display:flex;align-items:baseline;justify-content:space-between;line-height:1.4}.components-snackbar-list{position:absolute;z-index:100000;width:100%;box-sizing:border-box;pointer-events:none}.components-snackbar-list__notice-container{position:relative;padding-top:8px}.components-tab-panel__tabs{display:flex;align-items:stretch;flex-direction:row}.components-tab-panel__tabs[aria-orientation=vertical]{flex-direction:column}.components-tab-panel__tabs-item{position:relative;border-radius:0;height:48px;background:transparent;border:none;box-shadow:none;cursor:pointer;padding:3px 16px;margin-left:0;font-weight:500}.components-tab-panel__tabs-item:focus:not(:disabled){position:relative;box-shadow:none;outline:none}.components-tab-panel__tabs-item:after{content:"";position:absolute;right:0;bottom:0;left:0;pointer-events:none;background:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));height:calc(0 * var(--wp-admin-border-width-focus));border-radius:0;transition:all .1s linear}@media (prefers-reduced-motion: reduce){.components-tab-panel__tabs-item:after{transition-duration:0s;transition-delay:0s}}.components-tab-panel__tabs-item.is-active:after{height:calc(1 * var(--wp-admin-border-width-focus));outline:2px solid transparent;outline-offset:-1px}.components-tab-panel__tabs-item:before{content:"";position:absolute;inset:12px;pointer-events:none;box-shadow:0 0 0 0 transparent;border-radius:2px;transition:all .1s linear}@media (prefers-reduced-motion: reduce){.components-tab-panel__tabs-item:before{transition-duration:0s;transition-delay:0s}}.components-tab-panel__tabs-item:focus-visible:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));outline:2px solid transparent}.components-tab-panel__tab-content:focus{box-shadow:none;outline:none}.components-tab-panel__tab-content:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));outline:2px solid transparent;outline-offset:0}.components-text-control__input,.components-text-control__input[type=text],.components-text-control__input[type=tel],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week],.components-text-control__input[type=password],.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime],.components-text-control__input[type=datetime-local],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number]{width:100%;height:32px;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #949494;font-size:16px;line-height:normal}@media (prefers-reduced-motion: reduce){.components-text-control__input,.components-text-control__input[type=text],.components-text-control__input[type=tel],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week],.components-text-control__input[type=password],.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime],.components-text-control__input[type=datetime-local],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number]{transition-duration:0s;transition-delay:0s}}@media (min-width: 600px){.components-text-control__input,.components-text-control__input[type=text],.components-text-control__input[type=tel],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week],.components-text-control__input[type=password],.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime],.components-text-control__input[type=datetime-local],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number]{font-size:13px;line-height:normal}}.components-text-control__input:focus,.components-text-control__input[type=text]:focus,.components-text-control__input[type=tel]:focus,.components-text-control__input[type=time]:focus,.components-text-control__input[type=url]:focus,.components-text-control__input[type=week]:focus,.components-text-control__input[type=password]:focus,.components-text-control__input[type=color]:focus,.components-text-control__input[type=date]:focus,.components-text-control__input[type=datetime]:focus,.components-text-control__input[type=datetime-local]:focus,.components-text-control__input[type=email]:focus,.components-text-control__input[type=month]:focus,.components-text-control__input[type=number]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-text-control__input::-webkit-input-placeholder,.components-text-control__input[type=text]::-webkit-input-placeholder,.components-text-control__input[type=tel]::-webkit-input-placeholder,.components-text-control__input[type=time]::-webkit-input-placeholder,.components-text-control__input[type=url]::-webkit-input-placeholder,.components-text-control__input[type=week]::-webkit-input-placeholder,.components-text-control__input[type=password]::-webkit-input-placeholder,.components-text-control__input[type=color]::-webkit-input-placeholder,.components-text-control__input[type=date]::-webkit-input-placeholder,.components-text-control__input[type=datetime]::-webkit-input-placeholder,.components-text-control__input[type=datetime-local]::-webkit-input-placeholder,.components-text-control__input[type=email]::-webkit-input-placeholder,.components-text-control__input[type=month]::-webkit-input-placeholder,.components-text-control__input[type=number]::-webkit-input-placeholder{color:#1e1e1e9e}.components-text-control__input::-moz-placeholder,.components-text-control__input[type=text]::-moz-placeholder,.components-text-control__input[type=tel]::-moz-placeholder,.components-text-control__input[type=time]::-moz-placeholder,.components-text-control__input[type=url]::-moz-placeholder,.components-text-control__input[type=week]::-moz-placeholder,.components-text-control__input[type=password]::-moz-placeholder,.components-text-control__input[type=color]::-moz-placeholder,.components-text-control__input[type=date]::-moz-placeholder,.components-text-control__input[type=datetime]::-moz-placeholder,.components-text-control__input[type=datetime-local]::-moz-placeholder,.components-text-control__input[type=email]::-moz-placeholder,.components-text-control__input[type=month]::-moz-placeholder,.components-text-control__input[type=number]::-moz-placeholder{opacity:1;color:#1e1e1e9e}.components-text-control__input:-ms-input-placeholder,.components-text-control__input[type=text]:-ms-input-placeholder,.components-text-control__input[type=tel]:-ms-input-placeholder,.components-text-control__input[type=time]:-ms-input-placeholder,.components-text-control__input[type=url]:-ms-input-placeholder,.components-text-control__input[type=week]:-ms-input-placeholder,.components-text-control__input[type=password]:-ms-input-placeholder,.components-text-control__input[type=color]:-ms-input-placeholder,.components-text-control__input[type=date]:-ms-input-placeholder,.components-text-control__input[type=datetime]:-ms-input-placeholder,.components-text-control__input[type=datetime-local]:-ms-input-placeholder,.components-text-control__input[type=email]:-ms-input-placeholder,.components-text-control__input[type=month]:-ms-input-placeholder,.components-text-control__input[type=number]:-ms-input-placeholder{color:#1e1e1e9e}.components-text-control__input.is-next-40px-default-size,.components-text-control__input[type=text].is-next-40px-default-size,.components-text-control__input[type=tel].is-next-40px-default-size,.components-text-control__input[type=time].is-next-40px-default-size,.components-text-control__input[type=url].is-next-40px-default-size,.components-text-control__input[type=week].is-next-40px-default-size,.components-text-control__input[type=password].is-next-40px-default-size,.components-text-control__input[type=color].is-next-40px-default-size,.components-text-control__input[type=date].is-next-40px-default-size,.components-text-control__input[type=datetime].is-next-40px-default-size,.components-text-control__input[type=datetime-local].is-next-40px-default-size,.components-text-control__input[type=email].is-next-40px-default-size,.components-text-control__input[type=month].is-next-40px-default-size,.components-text-control__input[type=number].is-next-40px-default-size{height:40px;padding-left:12px;padding-right:12px}.components-tip{display:flex;color:#757575}.components-tip svg{align-self:center;fill:#f0b849;flex-shrink:0;margin-right:16px}.components-tip p{margin:0}.components-toggle-control__label{line-height:16px}.components-toggle-control__label:not(.is-disabled){cursor:pointer}.components-toggle-control__help{display:inline-block;margin-inline-start:40px}.components-accessible-toolbar{display:inline-flex;border:1px solid #1e1e1e;border-radius:2px;flex-shrink:0}.components-accessible-toolbar>.components-toolbar-group:last-child{border-right:none}.components-accessible-toolbar.is-unstyled{border:none}.components-accessible-toolbar.is-unstyled>.components-toolbar-group{border-right:none}.components-accessible-toolbar[aria-orientation=vertical],.components-toolbar[aria-orientation=vertical]{display:flex;flex-direction:column;align-items:center}.components-accessible-toolbar .components-button,.components-toolbar .components-button{position:relative;height:48px;z-index:1;padding-left:16px;padding-right:16px}.components-accessible-toolbar .components-button:focus:not(:disabled),.components-toolbar .components-button:focus:not(:disabled){box-shadow:none;outline:none}.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{content:"";position:absolute;display:block;border-radius:2px;height:32px;left:8px;right:8px;z-index:-1;animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion: reduce){.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation-duration:1ms;animation-delay:0s}}.components-accessible-toolbar .components-button svg,.components-toolbar .components-button svg{position:relative;margin-left:auto;margin-right:auto}.components-accessible-toolbar .components-button.is-pressed,.components-toolbar .components-button.is-pressed,.components-accessible-toolbar .components-button.is-pressed:hover,.components-toolbar .components-button.is-pressed:hover{background:transparent}.components-accessible-toolbar .components-button.is-pressed:before,.components-toolbar .components-button.is-pressed:before{background:#1e1e1e}.components-accessible-toolbar .components-button:focus:before,.components-toolbar .components-button:focus:before{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.components-accessible-toolbar .components-button.has-icon.has-icon,.components-toolbar .components-button.has-icon.has-icon{padding-left:8px;padding-right:8px;min-width:48px}@keyframes components-button__appear-animation{0%{transform:scaleY(0)}to{transform:scaleY(1)}}.components-toolbar__control.components-button{position:relative}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 10px 5px 0}.components-toolbar__control.components-button[data-subscript]:after{content:attr(data-subscript);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;line-height:12px;position:absolute;right:8px;bottom:10px}.components-toolbar__control.components-button:not(:disabled).is-pressed[data-subscript]:after{color:#fff}.components-toolbar-group{min-height:48px;border-right:1px solid #1e1e1e;background-color:#fff;display:inline-flex;flex-shrink:0;flex-wrap:wrap;padding-left:6px;padding-right:6px;line-height:0}.components-toolbar-group .components-toolbar-group.components-toolbar-group{border-width:0;margin:0}.components-toolbar-group .components-button.components-button,.components-toolbar-group .components-button.has-icon.has-icon{justify-content:center;min-width:36px;padding-left:6px;padding-right:6px}.components-toolbar-group .components-button.components-button svg,.components-toolbar-group .components-button.has-icon.has-icon svg{min-width:24px}.components-toolbar-group .components-button.components-button:before,.components-toolbar-group .components-button.has-icon.has-icon:before{left:2px;right:2px}.components-toolbar{min-height:48px;margin:0;border:1px solid #1e1e1e;background-color:#fff;display:inline-flex;flex-shrink:0;flex-wrap:wrap}.components-toolbar .components-toolbar.components-toolbar{border-width:0;margin:0}div.components-toolbar>div{display:flex;margin:0}div.components-toolbar>div+div.has-left-divider{margin-left:6px;position:relative;overflow:visible}div.components-toolbar>div+div.has-left-divider:before{display:inline-block;content:"";box-sizing:content-box;background-color:#ddd;position:absolute;top:8px;left:-3px;width:1px;height:20px}.components-tooltip{background:#000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;border-radius:2px;color:#f0f0f0;text-align:center;line-height:1.4;font-size:12px;padding:4px 8px;z-index:1000002}.components-tooltip__shortcut{margin-left:8px}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:18px;line-height:1.5;--wp--style--block-gap: 2em}p{line-height:1.8}.editor-post-title__block{margin-top:2em;margin-bottom:1em;font-size:2.5em;font-weight:800}.block-editor-autocompleters__block{white-space:nowrap}.block-editor-autocompleters__block .block-editor-block-icon{margin-right:8px}.block-editor-autocompleters__block[aria-selected=true] .block-editor-block-icon{color:inherit!important}.block-editor-autocompleters__link{white-space:nowrap}.block-editor-autocompleters__link .block-editor-block-icon{margin-right:8px}.block-editor-block-alignment-control__menu-group .components-menu-item__info{margin-top:0}iframe[name=editor-canvas]{box-sizing:border-box;width:100%;height:100%;display:block;background-color:transparent;transition:all .5s cubic-bezier(.65,0,.45,1)}@media (prefers-reduced-motion: reduce){iframe[name=editor-canvas]{transition-duration:0s;transition-delay:0s}}.block-editor-block-inspector p:not(.components-base-control__help){margin-top:0}.block-editor-block-inspector h2,.block-editor-block-inspector h3{font-size:13px;color:#1e1e1e;margin-bottom:1.5em}.block-editor-block-inspector .components-base-control{margin-bottom:24px}.block-editor-block-inspector .components-base-control:last-child{margin-bottom:8px}.block-editor-block-inspector .components-focal-point-picker-control .components-base-control,.block-editor-block-inspector .components-query-controls .components-base-control,.block-editor-block-inspector .components-range-control .components-base-control{margin-bottom:0}.block-editor-block-inspector .components-panel__body{border:none;border-top:1px solid #e0e0e0;margin-top:-1px}.block-editor-block-inspector__no-blocks,.block-editor-block-inspector__no-block-tools{display:block;font-size:13px;background:#fff;padding:32px 16px;text-align:center}.block-editor-block-inspector__no-block-tools{border-top:1px solid #ddd}.block-editor-block-inspector__tab-item{flex:1 1 0px}.block-editor-block-list__insertion-point{position:absolute;inset:0}.block-editor-block-list__insertion-point-indicator{position:absolute;background:var(--wp-admin-theme-color);border-radius:2px;transform-origin:center;opacity:0;will-change:transform,opacity}.block-editor-block-list__insertion-point.is-vertical>.block-editor-block-list__insertion-point-indicator{top:calc(50% - 2px);height:4px;width:100%}.block-editor-block-list__insertion-point.is-horizontal>.block-editor-block-list__insertion-point-indicator{top:0;bottom:0;left:calc(50% - 2px);width:4px}.block-editor-block-list__insertion-point-inserter{display:none;position:absolute;will-change:transform;justify-content:center;top:calc(50% - 12px);left:calc(50% - 12px)}@media (min-width: 480px){.block-editor-block-list__insertion-point-inserter{display:flex}}.block-editor-block-list__block-side-inserter-popover .components-popover__content>div{pointer-events:none}.block-editor-block-list__block-side-inserter-popover .components-popover__content>div>*{pointer-events:all}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;color:#fff;padding:0;min-width:24px;height:24px}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover{color:#fff;background:var(--wp-admin-theme-color)}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon{background:var(--wp-admin-theme-color)}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover{background:#1e1e1e}.block-editor-block-list__block-selection-button{display:inline-flex;padding:0 12px;z-index:22;border-radius:2px;background-color:#1e1e1e;font-size:13px;height:48px}.block-editor-block-list__block-selection-button .block-editor-block-list__block-selection-button__content{margin:auto;display:inline-flex;align-items:center}.block-editor-block-list__block-selection-button .block-editor-block-list__block-selection-button__content>.components-flex__item{margin-right:6px}.block-editor-block-list__block-selection-button .components-button.has-icon.block-selection-button_drag-handle{cursor:grab;padding:0;height:24px;min-width:24px;margin-left:-2px}.block-editor-block-list__block-selection-button .components-button.has-icon.block-selection-button_drag-handle svg{min-width:18px;min-height:18px}.block-editor-block-list__block-selection-button .block-editor-block-icon{font-size:13px;color:#fff;height:48px}.block-editor-block-list__block-selection-button .components-button{min-width:36px;color:#fff;height:48px;display:flex}.block-editor-block-list__block-selection-button .components-button:focus{box-shadow:none;border:none}.block-editor-block-list__block-selection-button .components-button:active,.block-editor-block-list__block-selection-button .components-button[aria-disabled=true]:hover{color:#fff}.block-editor-block-list__block-selection-button .block-selection-button_select-button.components-button{padding:0}.block-editor-block-list__block-selection-button .block-editor-block-mover{background:unset;border:none}@keyframes hide-during-dragging{to{position:fixed;transform:translate(9999px,9999px)}}.components-popover.block-editor-block-list__block-popover .block-editor-block-list__block-selection-button,.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar{pointer-events:all;margin-top:8px;margin-bottom:8px}.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar{border:1px solid #1e1e1e;border-radius:2px;overflow:visible;position:static;width:auto}.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar.has-parent{margin-left:56px}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar.has-parent{margin-left:0}.components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar{overflow:visible}.components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar .components-toolbar-group,.components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar .components-toolbar{border-right-color:#1e1e1e}.components-popover.block-editor-block-list__block-popover.is-insertion-point-visible{visibility:hidden}.is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover{opacity:0;animation:hide-during-dragging 1ms linear forwards}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector{position:absolute;left:-57px}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector:before{content:""}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector .block-editor-block-parent-selector__button{border:1px solid #1e1e1e;padding-right:6px;padding-left:6px;background-color:#fff}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector .block-editor-block-parent-selector__button{padding-right:12px;padding-left:12px}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector{position:relative;left:auto;margin-left:-1px}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-mover__move-button-container,.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar__block-controls .block-editor-block-mover{border-left:1px solid #1e1e1e}.is-dragging-components-draggable .components-tooltip{display:none}.components-popover.block-editor-block-popover__inbetween .block-editor-button-pattern-inserter__button{pointer-events:all;position:absolute;transform:translate(-50%) translateY(-50%);top:50%;left:50%}.zoom-out-toolbar .block-editor-block-mover-button.block-editor-block-mover-button:focus-visible:before,.zoom-out-toolbar .zoom-out-toolbar-button:focus:before,.zoom-out-toolbar .block-editor-block-toolbar-shuffle:focus:before,.zoom-out-toolbar .block-selection-button_drag-handle:focus:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.zoom-out-toolbar .block-editor-block-mover{background:none;border:none}.block-editor-block-tools__zoom-out-mode-inserter-button{visibility:hidden}.block-editor-block-tools__zoom-out-mode-inserter-button.is-visible{visibility:visible}.block-editor-block-lock-modal{z-index:1000001}@media (min-width: 600px){.block-editor-block-lock-modal .components-modal__frame{max-width:480px}}.block-editor-block-lock-modal__options legend{margin-bottom:16px;padding:0}.block-editor-block-lock-modal__checklist{margin:0}.block-editor-block-lock-modal__options-all{padding:12px 0}.block-editor-block-lock-modal__options-all .components-checkbox-control__label{font-weight:600}.block-editor-block-lock-modal__checklist-item{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:0;padding:12px 0 12px 32px}.block-editor-block-lock-modal__checklist-item .block-editor-block-lock-modal__lock-icon{flex-shrink:0;margin-right:12px;fill:#1e1e1e}.block-editor-block-lock-modal__checklist-item:hover{background-color:#f0f0f0;border-radius:2px}.block-editor-block-lock-modal__template-lock{border-top:1px solid #ddd;margin-top:16px;padding-top:16px}.block-editor-block-lock-modal__actions{margin-top:24px}.block-editor-block-lock-toolbar .components-button.has-icon{min-width:36px!important}.block-editor-block-toolbar__block-controls .block-editor-block-lock-toolbar{margin-left:-6px!important}.show-icon-labels .block-editor-block-toolbar__block-controls .block-editor-block-lock-toolbar{border-left:1px solid #1e1e1e;margin-left:6px!important;margin-right:-6px}.block-editor-block-breadcrumb{list-style:none;padding:0;margin:0}.block-editor-block-breadcrumb li{display:inline-flex;margin:0}.block-editor-block-breadcrumb li .block-editor-block-breadcrumb__separator{fill:currentColor;margin-left:-4px;margin-right:-4px;transform:scaleX(1)}.block-editor-block-breadcrumb li:last-child .block-editor-block-breadcrumb__separator{display:none}.block-editor-block-breadcrumb__button.components-button{height:24px;line-height:24px;padding:0;position:relative}.block-editor-block-breadcrumb__button.components-button:hover:not(:disabled){text-decoration:underline;box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus{box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus:before{content:"";display:block;position:absolute;border-radius:2px;inset:1px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-breadcrumb__current{cursor:default}.block-editor-block-breadcrumb__button.components-button,.block-editor-block-breadcrumb__current{color:#1e1e1e;padding:0 8px;font-size:inherit}.block-editor-block-card{align-items:flex-start;color:#1e1e1e;display:flex;padding:16px}.block-editor-block-card__title{font-weight:500}.block-editor-block-card__title.block-editor-block-card__title{font-size:13px;line-height:1.4;margin:0;padding:3px 0}.block-editor-block-card .block-editor-block-icon{flex:0 0 24px;margin-left:0;margin-right:12px;width:24px;height:24px}.block-editor-block-card.is-synced .block-editor-block-icon{color:var(--wp-block-synced-color)}.block-editor-block-compare{height:auto}.block-editor-block-compare__wrapper{display:flex;padding-bottom:16px}.block-editor-block-compare__wrapper>div{display:flex;justify-content:space-between;flex-direction:column;width:50%;padding:0 16px 0 0;min-width:200px;max-width:600px}.block-editor-block-compare__wrapper>div button{float:right}.block-editor-block-compare__wrapper .block-editor-block-compare__converted{border-left:1px solid #ddd;padding-left:15px;padding-right:0}.block-editor-block-compare__wrapper .block-editor-block-compare__html{font-family:Menlo,Consolas,monaco,monospace;font-size:12px;color:#1e1e1e;border-bottom:1px solid #ddd;padding-bottom:15px;line-height:1.7}.block-editor-block-compare__wrapper .block-editor-block-compare__html span{background-color:#e6ffed;padding-top:3px;padding-bottom:3px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__added{background-color:#acf2bd}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__removed{background-color:#cc1818}.block-editor-block-compare__wrapper .block-editor-block-compare__preview{padding:16px 0 0}.block-editor-block-compare__wrapper .block-editor-block-compare__preview p{font-size:12px;margin-top:0}.block-editor-block-compare__wrapper .block-editor-block-compare__action{margin-top:16px}.block-editor-block-compare__wrapper .block-editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.block-editor-block-draggable-chip-wrapper{position:absolute;top:-24px;left:0}.block-editor-block-draggable-chip{background-color:#1e1e1e;border-radius:2px;box-shadow:0 6px 8px #0000004d;color:#fff;cursor:grabbing;display:inline-flex;height:48px;padding:0 13px;position:relative;-webkit-user-select:none;user-select:none;width:max-content}.block-editor-block-draggable-chip svg{fill:currentColor}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content{margin:auto;justify-content:flex-start}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content>.components-flex__item{margin-right:6px}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content>.components-flex__item:last-child{margin-right:0}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content .block-editor-block-icon svg{min-width:18px;min-height:18px}.block-editor-block-draggable-chip .components-flex__item{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled{opacity:0;position:absolute;inset:0;display:flex;justify-content:center;align-items:center;background-color:transparent;transition:all .1s linear .1s}.block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled .block-editor-block-draggable-chip__disabled-icon{width:20px;height:20px;box-shadow:inset 0 0 0 1.5px #fff;border-radius:50%;display:inline-block;padding:0;background:transparent linear-gradient(-45deg,transparent 47.5%,#fff 47.5%,#fff 52.5%,transparent 52.5%)}.block-draggable-invalid-drag-token .block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled{background-color:#757575;opacity:1;box-shadow:0 4px 8px #0003}.block-editor-block-mover__move-button-container{display:flex;padding:0;border:none;justify-content:center}@media (min-width: 600px){.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{flex-direction:column}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container>*{height:20px;width:100%;min-width:0!important}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container>*:before{height:calc(100% - 4px)}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-up-button svg{top:3px;flex-shrink:0}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-down-button svg{bottom:3px;flex-shrink:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container{width:48px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container>*{width:24px;min-width:0!important;overflow:hidden}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button{padding-left:0;padding-right:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-up-button svg{left:5px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-down-button svg{right:5px}}.block-editor-block-mover__drag-handle{cursor:grab}@media (min-width: 600px){.block-editor-block-mover__drag-handle{width:24px;min-width:0!important;overflow:hidden}.block-editor-block-mover .block-editor-block-mover__drag-handle.has-icon.has-icon{padding-left:0;padding-right:0}}.components-button.block-editor-block-mover-button:before{content:"";position:absolute;display:block;border-radius:2px;height:32px;left:8px;right:8px;z-index:-1;animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion: reduce){.components-button.block-editor-block-mover-button:before{animation-duration:1ms;animation-delay:0s}}.components-button.block-editor-block-mover-button:focus,.components-button.block-editor-block-mover-button:focus:enabled,.components-button.block-editor-block-mover-button:focus:before{box-shadow:none;outline:none}.components-button.block-editor-block-mover-button:focus-visible:before{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-navigation__container{min-width:280px}.block-editor-block-navigation__label{margin:0 0 12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-block-patterns-list__list-item{cursor:pointer;margin-bottom:16px;position:relative}.block-editor-block-patterns-list__list-item.is-placeholder{min-height:100px}.block-editor-block-patterns-list__list-item[draggable=true]{cursor:grab}.block-editor-block-patterns-list__item{height:100%;scroll-margin-top:24px;scroll-margin-bottom:56px}.block-editor-block-patterns-list__item .block-editor-block-patterns-list__item-title{flex-grow:1;font-size:12px;text-align:left}.block-editor-block-patterns-list__item .block-editor-block-preview__container{display:flex;align-items:center;overflow:hidden;border-radius:4px}.block-editor-block-patterns-list__item .block-editor-block-preview__container:after{outline:1px solid rgba(0,0,0,.1);outline-offset:-1px;border-radius:4px}.block-editor-block-patterns-list__item:hover:not(:focus) .block-editor-block-preview__container:after{outline-color:#0000004d}.block-editor-block-patterns-list__item:focus .block-editor-block-preview__container:after{outline-color:var(--wp-admin-theme-color);outline-width:var(--wp-admin-border-width-focus);outline-offset:calc((-1 * var(--wp-admin-border-width-focus)));transition:outline .1s linear}@media (prefers-reduced-motion: reduce){.block-editor-block-patterns-list__item:focus .block-editor-block-preview__container:after{transition-duration:0s;transition-delay:0s}}.block-editor-block-patterns-list__item .block-editor-patterns__pattern-details:not(:empty){align-items:center;margin-top:8px;padding-bottom:4px}.block-editor-block-patterns-list__item .block-editor-patterns__pattern-icon-wrapper{min-width:24px;height:24px}.block-editor-block-patterns-list__item .block-editor-patterns__pattern-icon-wrapper .block-editor-patterns__pattern-icon{fill:var(--wp-block-synced-color)}.block-editor-patterns__grid-pagination-wrapper .block-editor-patterns__grid-pagination{border-top:1px solid #2f2f2f;padding:4px;justify-content:center}.block-editor-patterns__grid-pagination-wrapper .block-editor-patterns__grid-pagination .components-button.is-tertiary{width:auto;height:32px;justify-content:center}.block-editor-patterns__grid-pagination-wrapper .block-editor-patterns__grid-pagination .components-button.is-tertiary:disabled{color:#949494;background:none}.block-editor-patterns__grid-pagination-wrapper .block-editor-patterns__grid-pagination .components-button.is-tertiary:hover:not(:disabled){color:#fff;background-color:#757575}.show-icon-labels .block-editor-patterns__grid-pagination .components-button{width:auto}.show-icon-labels .block-editor-patterns__grid-pagination .components-button span{display:none}.show-icon-labels .block-editor-patterns__grid-pagination .components-button:before{content:attr(aria-label)}.components-popover.block-editor-block-popover{z-index:31;position:absolute;margin:0!important;pointer-events:none}.components-popover.block-editor-block-popover .components-popover__content{margin:0!important;min-width:auto;width:max-content;overflow-y:visible}.components-popover.block-editor-block-popover:not(.block-editor-block-popover__inbetween,.block-editor-block-popover__drop-zone,.block-editor-block-list__block-side-inserter-popover) .components-popover__content *{pointer-events:all}.components-popover.block-editor-block-popover__inbetween,.components-popover.block-editor-block-popover__inbetween *{pointer-events:none}.components-popover.block-editor-block-popover__inbetween .is-with-inserter,.components-popover.block-editor-block-popover__inbetween .is-with-inserter *{pointer-events:all}.components-popover.block-editor-block-popover__drop-zone *{pointer-events:none}.components-popover.block-editor-block-popover__drop-zone .block-editor-block-popover__drop-zone-foreground{position:absolute;inset:0;background-color:var(--wp-admin-theme-color);border-radius:2px}.block-editor-block-preview__container{position:relative;width:100%;overflow:hidden}.block-editor-block-preview__container .block-editor-block-preview__content{width:100%;top:0;left:0;transform-origin:top left;text-align:initial;margin:0;overflow:visible;min-height:auto}.block-editor-block-preview__container .block-editor-block-preview__content .block-editor-block-list__insertion-point,.block-editor-block-preview__container .block-editor-block-preview__content .block-list-appender{display:none}.block-editor-block-preview__container:after{content:"";position:absolute;inset:0;z-index:1}.block-editor-block-rename-modal{z-index:1000001}.block-editor-block-styles__preview-panel{display:none;z-index:90}@media (min-width: 782px){.block-editor-block-styles__preview-panel{display:block}}.block-editor-block-styles__preview-panel .block-editor-block-icon{display:none}.block-editor-block-styles__variants{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item{color:#1e1e1e;box-shadow:inset 0 0 0 1px #ddd;display:inline-block;width:calc(50% - 4px)}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:hover{color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px #ddd}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:hover{background-color:#1e1e1e;box-shadow:none}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active .block-editor-block-styles__item-text,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:hover .block-editor-block-styles__item-text{color:#fff}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:focus,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-styles__variants .block-editor-block-styles__item-text{word-break:break-all;white-space:normal;text-align:start;text-align-last:center}.block-editor-block-styles__block-preview-container,.block-editor-block-styles__block-preview-container *{box-sizing:border-box!important}.block-editor-block-switcher{position:relative}.block-editor-block-switcher .components-button.components-dropdown-menu__toggle.has-icon.has-icon{min-width:36px}.block-editor-block-switcher__no-switcher-icon,.block-editor-block-switcher__toggle{position:relative}.components-button.block-editor-block-switcher__toggle,.components-button.block-editor-block-switcher__no-switcher-icon{margin:0;display:block;height:48px}.components-button.block-editor-block-switcher__toggle .block-editor-block-icon,.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{margin:auto}.block-editor-block-switcher__toggle-text{margin-left:8px}.show-icon-labels .block-editor-block-switcher__toggle-text{display:none}.components-button.block-editor-block-switcher__no-switcher-icon{display:flex}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{margin-right:auto;margin-left:auto;min-width:24px!important}.components-button.block-editor-block-switcher__no-switcher-icon[aria-disabled=true],.components-button.block-editor-block-switcher__no-switcher-icon[aria-disabled=true]:hover{color:#1e1e1e}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon{height:100%;position:relative;margin:0 auto;display:flex;align-items:center;min-width:100%}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before{inset:8px}.components-popover.block-editor-block-switcher__popover .components-popover__content{min-width:300px}.block-editor-block-switcher__popover-preview-container{left:0;position:absolute;top:-1px;width:100%;bottom:0;pointer-events:none}.block-editor-block-switcher__popover-preview{overflow:hidden}.block-editor-block-switcher__popover-preview .components-popover__content{width:300px;border:1px solid #1e1e1e;background:#fff;border-radius:4px;outline:none;box-shadow:none;overflow:auto}.block-editor-block-switcher__popover-preview .block-editor-block-switcher__preview{max-height:468px;margin:16px 0;padding:0 16px;overflow:hidden}.block-editor-block-switcher__popover-preview .block-editor-block-switcher__preview.is-pattern-list-preview{overflow:unset}.block-editor-block-switcher__preview-title{margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon{min-width:36px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle{height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{width:48px;height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{padding:12px}.block-editor-block-switcher__preview-patterns-container{padding-bottom:16px}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item{margin-top:16px}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-preview__container{cursor:pointer}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item{height:100%;border-radius:2px;transition:all .05s ease-in-out;position:relative;border:1px solid transparent}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover,.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) #1e1e1e}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item .block-editor-block-switcher__preview-patterns-container-list__item-title{padding:4px;font-size:12px;text-align:center;cursor:pointer}.block-editor-block-switcher__no-transforms{color:#757575;padding:6px 8px;margin:0}.block-editor-block-switcher__binding-indicator{display:block;padding:8px}.block-editor-block-types-list>[role=presentation]{overflow:hidden;display:flex;flex-wrap:wrap}.block-editor-block-pattern-setup{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;width:100%;border-radius:2px}.block-editor-block-pattern-setup.view-mode-grid{padding-top:4px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__toolbar{justify-content:center}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container{column-gap:24px;display:block;width:100%;padding:0 32px;column-count:2}@media (min-width: 1440px){.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container{column-count:3}}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-preview__container,.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container div[role=button]{cursor:pointer}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item{scroll-margin:5px 0}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:hover .block-editor-block-preview__container{box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:focus .block-editor-block-preview__container{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(2 * var(--wp-admin-border-width-focus)) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:hover .block-editor-block-pattern-setup-list__item-title,.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:focus .block-editor-block-pattern-setup-list__item-title{color:var(--wp-admin-theme-color)}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item{break-inside:avoid-column;margin-bottom:24px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-pattern-setup-list__item-title{padding-top:8px;font-size:12px;text-align:center;cursor:pointer}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-preview__container{min-height:100px;border-radius:4px;border:1px solid #ddd}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-preview__content{width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar{height:60px;box-sizing:border-box;padding:16px;width:100%;text-align:left;margin:0;color:#1e1e1e;position:absolute;bottom:0;background-color:#fff;display:flex;flex-direction:row;align-items:center;justify-content:space-between;border-top:1px solid #ddd;align-self:stretch}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__display-controls{display:flex}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__navigation,.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__actions{width:calc(50% - 36px);display:flex}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__actions{justify-content:flex-end}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container{display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container{overflow:hidden;position:relative;padding:0;margin:0;height:100%;list-style:none;transform-style:preserve-3d}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container *{box-sizing:border-box}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide{position:absolute;top:0;width:100%;height:100%;background-color:#fff;margin:auto;padding:0;transition:transform .5s,z-index .5s;z-index:100}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.active-slide{opacity:1;position:relative;z-index:102}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.previous-slide{transform:translate(-100%);z-index:101}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.next-slide{transform:translate(100%);z-index:101}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .block-list-appender{display:none}.block-editor-block-pattern-setup__carousel,.block-editor-block-pattern-setup__grid{width:100%}.block-editor-block-variation-transforms{padding:0 16px 16px 52px;width:100%}.block-editor-block-variation-transforms .components-dropdown-menu__toggle{border:1px solid #757575;border-radius:2px;min-height:30px;width:100%;position:relative;text-align:left;justify-content:left;padding:6px 12px}.block-editor-block-variation-transforms .components-dropdown-menu__toggle.components-dropdown-menu__toggle{padding-right:24px}.block-editor-block-variation-transforms .components-dropdown-menu__toggle:focus:not(:disabled){border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 calc(var(--wp-admin-border-width-focus) - 1px) var(--wp-admin-theme-color)}.block-editor-block-variation-transforms .components-dropdown-menu__toggle svg{height:100%;padding:0;position:absolute;right:0;top:0}.block-editor-block-variation-transforms__popover .components-popover__content{min-width:230px}.components-border-radius-control{margin-bottom:12px}.components-border-radius-control legend{margin-bottom:8px}.components-border-radius-control .components-border-radius-control__wrapper{display:flex;justify-content:space-between;align-items:flex-start}.components-border-radius-control .components-border-radius-control__wrapper .components-border-radius-control__unit-control{width:calc((100% - 16px)/2);margin-bottom:0;margin-right:16px;flex-shrink:0}.components-border-radius-control .components-border-radius-control__wrapper .components-border-radius-control__range-control{flex:1;margin-right:12px}.components-border-radius-control .components-border-radius-control__input-controls-wrapper{display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr));margin-right:12px}.components-border-radius-control .component-border-radius-control__linked-button{display:flex;justify-content:center;margin-top:8px}.components-border-radius-control .component-border-radius-control__linked-button svg{margin-right:0}.block-editor-color-gradient-control .block-editor-color-gradient-control__color-indicator{margin-bottom:12px}.block-editor-color-gradient-control__fieldset{min-width:0}.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings,.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings>div:not(:first-of-type){display:block}@media screen and (min-width: 782px){.block-editor-panel-color-gradient-settings .components-circular-option-picker__swatches{display:grid;grid-template-columns:repeat(6,28px)}}.block-editor-block-inspector .block-editor-panel-color-gradient-settings .components-base-control{margin-bottom:inherit}.block-editor-panel-color-gradient-settings__dropdown-content .block-editor-color-gradient-control__panel{width:260px;padding:16px}.block-editor-panel-color-gradient-settings__color-indicator{background:linear-gradient(-45deg,transparent 48%,#ddd 48%,#ddd 52%,transparent 52%)}.block-editor-tools-panel-color-gradient-settings__item{padding:0;max-width:100%;border-left:1px solid #ddd;border-right:1px solid #ddd;border-bottom:1px solid #ddd}.block-editor-tools-panel-color-gradient-settings__item:nth-child(1 of.block-editor-tools-panel-color-gradient-settings__item){margin-top:24px;border-top-left-radius:2px;border-top-right-radius:2px;border-top:1px solid #ddd}.block-editor-tools-panel-color-gradient-settings__item:nth-last-child(1 of.block-editor-tools-panel-color-gradient-settings__item){border-bottom-left-radius:2px;border-bottom-right-radius:2px}.block-editor-tools-panel-color-gradient-settings__item>div,.block-editor-tools-panel-color-gradient-settings__item>div>button{border-radius:inherit}.block-editor-tools-panel-color-gradient-settings__dropdown{display:block;padding:0}.block-editor-tools-panel-color-gradient-settings__dropdown>button{height:auto;padding-top:10px;padding-bottom:10px;text-align:left}.block-editor-tools-panel-color-gradient-settings__dropdown>button.is-open{background:#f0f0f0;color:var(--wp-admin-theme-color)}.block-editor-tools-panel-color-gradient-settings__dropdown .block-editor-panel-color-gradient-settings__color-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.block-editor-panel-color-gradient-settings__dropdown{width:100%}.block-editor-panel-color-gradient-settings__dropdown .component-color-indicator{flex-shrink:0}.block-editor-date-format-picker{margin-bottom:16px}.block-editor-date-format-picker__custom-format-select-control__custom-option{border-top:1px solid #ddd}.block-editor-duotone-control__popover>.components-popover__content{padding:16px;width:260px}.block-editor-duotone-control__popover .components-menu-group__label{padding:0}.block-editor-duotone-control__popover .components-circular-option-picker__swatches{display:grid;grid-template-columns:repeat(6,28px);gap:12px;justify-content:space-between}.block-editor-duotone-control__unset-indicator{background:linear-gradient(-45deg,transparent 48%,#ddd 48%,#ddd 52%,transparent 52%)}.components-font-appearance-control [role=option]{color:#1e1e1e;text-transform:capitalize}.block-editor-global-styles__toggle-icon{fill:currentColor}.block-editor-global-styles__shadow-popover-container{width:230px}.block-editor-global-styles__shadow__list{display:flex;gap:12px;flex-wrap:wrap;padding-bottom:8px}.block-editor-global-styles__clear-shadow{text-align:right}.block-editor-global-styles-filters-panel__dropdown,.block-editor-global-styles__shadow-dropdown{display:block;padding:0}.block-editor-global-styles-filters-panel__dropdown button,.block-editor-global-styles__shadow-dropdown button{width:100%;padding:8px}.block-editor-global-styles-filters-panel__dropdown button.is-open,.block-editor-global-styles__shadow-dropdown button.is-open{background-color:#f0f0f0}.block-editor-global-styles__shadow-indicator{color:#2f2f2f;border:#e0e0e0 1px solid;border-radius:2px;cursor:pointer;padding:0;height:26px;width:26px;box-sizing:border-box;transform:scale(1);transition:transform .1s ease;will-change:transform}.block-editor-global-styles__shadow-indicator:focus{border:2px solid #757575}.block-editor-global-styles__shadow-indicator:hover{transform:scale(1.2)}.block-editor-global-styles__shadow-indicator.unset{background:linear-gradient(-45deg,transparent 48%,#ddd 48%,#ddd 52%,transparent 52%)}.block-editor-global-styles-advanced-panel__custom-css-input textarea{font-family:Menlo,Consolas,monaco,monospace;direction:ltr}.block-editor-global-styles-background-panel__inspector-media-replace-container{border:1px solid #ddd;border-radius:2px;grid-column:1/-1}.block-editor-global-styles-background-panel__inspector-media-replace-container.is-open{background-color:#f0f0f0}.block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__image-tools-panel-item{flex-grow:1;border:0}.block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__image-tools-panel-item .components-dropdown{display:block}.block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__inspector-preview-inner{height:100%}.block-editor-global-styles-background-panel__inspector-media-replace-container .components-dropdown{display:block;height:36px}.block-editor-global-styles-background-panel__image-tools-panel-item{border:1px solid #ddd;grid-column:1/-1;position:relative}.block-editor-global-styles-background-panel__image-tools-panel-item .components-drop-zone__content-icon{display:none}.block-editor-global-styles-background-panel__image-tools-panel-item .components-dropdown{display:block;height:36px}.block-editor-global-styles-background-panel__image-tools-panel-item button.components-button{color:#1e1e1e;width:100%;display:block}.block-editor-global-styles-background-panel__image-tools-panel-item button.components-button:hover{color:var(--wp-admin-theme-color)}.block-editor-global-styles-background-panel__image-tools-panel-item button.components-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-global-styles-background-panel__image-tools-panel-item .block-editor-global-styles-background-panel__loading{height:100%;position:absolute;z-index:1;width:100%;padding:10px 0 0}.block-editor-global-styles-background-panel__image-tools-panel-item .block-editor-global-styles-background-panel__loading svg{margin:0}.block-editor-global-styles-background-panel__image-preview-content,.block-editor-global-styles-background-panel__dropdown-toggle{height:100%;width:100%;padding-left:12px}.block-editor-global-styles-background-panel__dropdown-toggle{cursor:pointer;background:transparent;border:none}.block-editor-global-styles-background-panel__inspector-media-replace-title{word-break:break-all;white-space:normal;text-align:start;text-align-last:center}.block-editor-global-styles-background-panel__inspector-preview-inner .block-editor-global-styles-background-panel__inspector-image-indicator-wrapper{width:20px;height:20px;min-width:auto}.block-editor-global-styles-background-panel__inspector-image-indicator{background-size:cover;border-radius:50%;width:20px;height:20px;display:block;position:relative}.block-editor-global-styles-background-panel__inspector-image-indicator:after{content:"";position:absolute;inset:-1px;border-radius:50%;box-shadow:inset 0 0 0 1px #0003;border:1px solid transparent;box-sizing:inherit}.block-editor-global-styles-background-panel__dropdown-content-wrapper{min-width:260px;overflow-x:hidden}.block-editor-global-styles-background-panel__dropdown-content-wrapper .components-focal-point-picker-wrapper{background-color:#f0f0f0;width:100%;border-radius:2px;border:1px solid #ddd}.block-editor-global-styles-background-panel__dropdown-content-wrapper .components-focal-point-picker__media--image{max-height:180px}.block-editor-global-styles-background-panel__dropdown-content-wrapper .components-focal-point-picker:after{content:none}.modal-open .block-editor-global-styles-background-panel__popover{z-index:159890}.block-editor-global-styles-background-panel__media-replace-popover .components-popover__content{width:226px}.block-editor-global-styles-background-panel__media-replace-popover .components-button{padding:0 8px}.block-editor-global-styles-background-panel__media-replace-popover .components-button .components-menu-items__item-icon.has-icon-right{margin-left:16px}.block-editor-grid-visualizer.block-editor-grid-visualizer.block-editor-grid-visualizer{z-index:30}.block-editor-grid-visualizer.block-editor-grid-visualizer.block-editor-grid-visualizer .components-popover__content *{pointer-events:none}.block-editor-grid-visualizer.block-editor-grid-visualizer.block-editor-grid-visualizer.is-dropping-allowed .block-editor-grid-visualizer__drop-zone{pointer-events:all}.block-editor-grid-visualizer.block-editor-grid-visualizer.block-editor-grid-visualizer .block-editor-inserter *{pointer-events:auto}.block-editor-grid-visualizer__grid{display:grid}.block-editor-grid-visualizer__cell{display:grid;position:relative}.block-editor-grid-visualizer__cell .block-editor-inserter{color:inherit;z-index:32;position:absolute;inset:0;overflow:hidden}.block-editor-grid-visualizer__cell .block-editor-inserter .block-editor-grid-visualizer__appender{box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 20%,#0000);color:inherit;overflow:hidden;height:100%;width:100%;padding:0!important;opacity:0}.block-editor-grid-visualizer__cell.is-highlighted .block-editor-inserter,.block-editor-grid-visualizer__cell.is-highlighted .block-editor-grid-visualizer__drop-zone{background:var(--wp-admin-theme-color)}.block-editor-grid-visualizer__cell:hover .block-editor-grid-visualizer__appender,.block-editor-grid-visualizer__cell .block-editor-grid-visualizer__appender:focus{opacity:1;background-color:color-mix(in srgb,currentColor 20%,#0000)}.block-editor-grid-visualizer__drop-zone{background:#cccccc1a;width:100%;height:100%;grid-column:1;grid-row:1;min-width:8px;min-height:8px}.block-editor-grid-item-resizer.block-editor-grid-item-resizer.block-editor-grid-item-resizer{z-index:30}.block-editor-grid-item-resizer.block-editor-grid-item-resizer.block-editor-grid-item-resizer .components-popover__content *{pointer-events:none}.block-editor-grid-item-resizer__box{border:1px solid var(--wp-admin-theme-color)}.block-editor-grid-item-resizer__box .components-resizable-box__handle.components-resizable-box__handle.components-resizable-box__handle{pointer-events:all}.block-editor-grid-item-mover__move-button-container{display:flex;padding:0;border:none;justify-content:center}.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button{width:24px;min-width:0!important;padding-left:0;padding-right:0}.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button svg{min-width:24px}.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:before{content:"";position:absolute;display:block;border-radius:2px;height:32px;left:8px;right:8px;z-index:-1;animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion: reduce){.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:before{animation-duration:1ms;animation-delay:0s}}.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus,.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus:enabled,.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus:before{box-shadow:none;outline:none}.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus-visible:before{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-grid-item-mover__move-vertical-button-container{display:flex;position:relative}@media (min-width: 600px){.block-editor-grid-item-mover__move-vertical-button-container{flex-direction:column;justify-content:space-around}.block-editor-grid-item-mover__move-vertical-button-container>.block-editor-grid-item-mover-button.block-editor-grid-item-mover-button{height:20px!important;width:100%;min-width:0!important}.block-editor-grid-item-mover__move-vertical-button-container>.block-editor-grid-item-mover-button.block-editor-grid-item-mover-button:before{height:calc(100% - 4px)}.block-editor-grid-item-mover__move-vertical-button-container .block-editor-grid-item-mover-button.is-up-button svg,.block-editor-grid-item-mover__move-vertical-button-container .block-editor-grid-item-mover-button.is-down-button svg{flex-shrink:0;height:20px}}@media (min-width: 600px){.editor-collapsible-block-toolbar .block-editor-grid-item-mover__move-vertical-button-container{height:40px;position:relative;top:-5px}}.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container{position:relative}@media (min-width: 600px){.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container:before{content:"";height:100%;width:1px;background:#e0e0e0;position:absolute;top:0}}@media (min-width: 782px){.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container:before{background:#1e1e1e}}.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container.is-left{padding-right:6px}.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container.is-left:before{right:0}.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container.is-right{padding-left:6px}.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container.is-right:before{left:0}@media (min-width: 600px){.show-icon-labels .block-editor-grid-item-mover__move-vertical-button-container:before{content:"";height:1px;width:100%;background:#e0e0e0;position:absolute;top:50%;left:50%;transform:translate(-50%);margin-top:-.5px}}@media (min-width: 782px){.show-icon-labels .block-editor-grid-item-mover__move-vertical-button-container:before{background:#1e1e1e}}.show-icon-labels .block-editor-grid-item-mover-button{white-space:nowrap}.show-icon-labels .editor-collapsible-block-toolbar .block-editor-grid-item-mover__move-horizontal-button-container:before{height:24px;background:#ddd;top:4px}.show-icon-labels .editor-collapsible-block-toolbar .block-editor-grid-item-mover__move-vertical-button-container:before{background:#ddd;width:calc(100% - 24px)}.block-editor-height-control{border:0;margin:0;padding:0}.block-editor-image-size-control{margin-bottom:1em}.block-editor-image-size-control .block-editor-image-size-control__width,.block-editor-image-size-control .block-editor-image-size-control__height{margin-bottom:1.115em}.block-editor-block-types-list__list-item{display:block;width:33.33%;padding:0;margin:0}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled) .block-editor-block-icon.has-colors{color:var(--wp-block-synced-color)}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title{color:var(--wp-block-synced-color)!important;filter:brightness(.95)}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):hover svg{color:var(--wp-block-synced-color)!important}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):after{background:var(--wp-block-synced-color)}.components-button.block-editor-block-types-list__item{display:flex;flex-direction:column;width:100%;font-size:13px;color:#1e1e1e;padding:8px;align-items:stretch;justify-content:center;cursor:pointer;background:transparent;word-break:break-word;transition:all .05s ease-in-out;position:relative;height:auto}@media (prefers-reduced-motion: reduce){.components-button.block-editor-block-types-list__item{transition-duration:0s;transition-delay:0s}}.components-button.block-editor-block-types-list__item:disabled{opacity:.6;cursor:default}.components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title{color:var(--wp-admin-theme-color)!important;filter:brightness(.95)}.components-button.block-editor-block-types-list__item:not(:disabled):hover svg{color:var(--wp-admin-theme-color)!important}.components-button.block-editor-block-types-list__item:not(:disabled):hover:after{content:"";position:absolute;inset:0;border-radius:2px;opacity:.04;background:var(--wp-admin-theme-color);pointer-events:none}.components-button.block-editor-block-types-list__item:not(:disabled):focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.components-button.block-editor-block-types-list__item:not(:disabled).is-active{color:#fff;background:#1e1e1e;outline:2px solid transparent;outline-offset:-2px}.block-editor-block-types-list__item-icon{padding:12px 20px;color:#1e1e1e;transition:all .05s ease-in-out}@media (prefers-reduced-motion: reduce){.block-editor-block-types-list__item-icon{transition-duration:0s;transition-delay:0s}}.block-editor-block-types-list__item-icon .block-editor-block-icon{margin-left:auto;margin-right:auto}.block-editor-block-types-list__item-icon svg{transition:all .15s ease-out}@media (prefers-reduced-motion: reduce){.block-editor-block-types-list__item-icon svg{transition-duration:0s;transition-delay:0s}}.block-editor-block-types-list__list-item[draggable=true] .block-editor-block-types-list__item-icon{cursor:grab}.block-editor-block-types-list__item-title{padding:4px 2px 8px;font-size:12px;-webkit-hyphens:auto;hyphens:auto}.show-icon-labels .block-editor-block-inspector__tabs [role=tablist] .components-button{justify-content:center}.block-editor-inspector-popover-header{margin-bottom:16px}[class].block-editor-inspector-popover-header__action{height:24px}[class].block-editor-inspector-popover-header__action.has-icon{min-width:24px;padding:0}[class].block-editor-inspector-popover-header__action:not(.has-icon){text-decoration:underline}@keyframes loadingpulse{0%{opacity:1}50%{opacity:0}to{opacity:1}}.block-editor-link-control{position:relative;min-width:350px}.components-popover__content .block-editor-link-control{min-width:auto;width:90vw;max-width:350px}.show-icon-labels .block-editor-link-control .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-link-control .components-button.has-icon:before{content:attr(aria-label)}.show-icon-labels .block-editor-link-control .block-editor-link-control__search-item-top{gap:4px;flex-wrap:wrap}.show-icon-labels .block-editor-link-control .block-editor-link-control__search-item-top .components-button.has-icon{width:auto;padding:4px}.show-icon-labels .block-editor-link-control .is-preview .block-editor-link-control__search-item-header{min-width:100%;margin-right:0}.block-editor-link-control__search-input-wrapper{margin-bottom:8px;position:relative}.block-editor-link-control__search-input-container,.block-editor-link-control__search-input-wrapper{position:relative}.block-editor-link-control__field{margin:16px}.block-editor-link-control__field .components-base-control__label{color:#1e1e1e}.block-editor-link-control__field input[type=text],.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;font-size:16px;line-height:normal;display:block;border:1px solid #949494;height:40px;margin:0;padding:8px 40px 8px 16px;position:relative;width:100%}@media (prefers-reduced-motion: reduce){.block-editor-link-control__field input[type=text],.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{transition-duration:0s;transition-delay:0s}}@media (min-width: 600px){.block-editor-link-control__field input[type=text],.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{font-size:13px;line-height:normal}}.block-editor-link-control__field input[type=text]:focus,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-link-control__field input[type=text]::-webkit-input-placeholder,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input::-webkit-input-placeholder{color:#1e1e1e9e}.block-editor-link-control__field input[type=text]::-moz-placeholder,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input::-moz-placeholder{opacity:1;color:#1e1e1e9e}.block-editor-link-control__field input[type=text]:-ms-input-placeholder,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input:-ms-input-placeholder{color:#1e1e1e9e}.has-actions .block-editor-link-control__field input[type=text],.has-actions .block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{padding-right:16px}.block-editor-link-control__search-error{margin:-8px 16px 16px}.block-editor-link-control__search-enter{position:absolute;right:19px;top:3px}.block-editor-link-control__search-actions{padding:8px 16px 16px}.block-editor-link-control__search-results-wrapper{position:relative}.block-editor-link-control__search-results-wrapper:before,.block-editor-link-control__search-results-wrapper:after{content:"";position:absolute;left:-1px;right:16px;display:block;pointer-events:none;z-index:100}.block-editor-link-control__search-results-wrapper:before{height:8px;top:0;bottom:auto}.block-editor-link-control__search-results-wrapper:after{height:16px;bottom:0;top:auto}.block-editor-link-control__search-results{margin-top:-16px;padding:8px;max-height:200px;overflow-y:auto}.block-editor-link-control__search-results.is-loading{opacity:.2}.block-editor-link-control__search-item.components-button.components-menu-item__button{height:auto;text-align:left}.block-editor-link-control__search-item .components-menu-item__item{overflow:hidden;text-overflow:ellipsis;display:inline-block;width:100%}.block-editor-link-control__search-item .components-menu-item__item mark{font-weight:600;color:inherit;background-color:transparent}.block-editor-link-control__search-item .components-menu-item__shortcut{color:#757575;text-transform:capitalize;white-space:nowrap}.block-editor-link-control__search-item[aria-selected]{background:#f0f0f0}.block-editor-link-control__search-item.is-current{flex-direction:column;background:transparent;border:0;width:100%;cursor:default;padding:16px}.block-editor-link-control__search-item .block-editor-link-control__search-item-header{display:block;flex-direction:row;align-items:center;margin-right:8px;gap:8px;white-space:pre-wrap;overflow-wrap:break-word}.block-editor-link-control__search-item .block-editor-link-control__search-item-header .block-editor-link-control__search-item-info{color:#757575;line-height:1.1;font-size:12px;word-break:break-all}.block-editor-link-control__search-item.is-preview .block-editor-link-control__search-item-header{display:flex;flex:1}.block-editor-link-control__search-item.is-error .block-editor-link-control__search-item-header{align-items:center}.block-editor-link-control__search-item.is-url-title .block-editor-link-control__search-item-title{word-break:break-all}.block-editor-link-control__search-item .block-editor-link-control__search-item-details{display:flex;flex-direction:column;justify-content:space-between;gap:4px}.block-editor-link-control__search-item .block-editor-link-control__search-item-header .block-editor-link-control__search-item-icon{background-color:#f0f0f0;width:32px;height:32px;border-radius:2px}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon{position:relative;flex-shrink:0;display:flex;justify-content:center;align-items:center}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon img{width:16px}.block-editor-link-control__search-item.is-error .block-editor-link-control__search-item-icon{top:0;width:32px;max-height:32px}.block-editor-link-control__search-item .block-editor-link-control__search-item-title{line-height:1.1}.block-editor-link-control__search-item .block-editor-link-control__search-item-title:focus{box-shadow:none}.block-editor-link-control__search-item .block-editor-link-control__search-item-title:focus-visible{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent;text-decoration:none}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{font-weight:600;color:inherit;background-color:transparent}.block-editor-link-control__search-item .block-editor-link-control__search-item-title span{font-weight:400}.block-editor-link-control__search-item .block-editor-link-control__search-item-title .components-external-link__icon{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.block-editor-link-control__search-item-top{display:flex;flex-direction:row;width:100%;align-items:center}.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-icon svg,.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-icon img{opacity:0}.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-icon:before{content:"";display:block;background-color:#f0f0f0;position:absolute;inset:0;border-radius:100%;animation:loadingpulse 1s linear infinite;animation-delay:.5s}.block-editor-link-control__loading{margin:16px;display:flex;align-items:center}.block-editor-link-control__loading .components-spinner{margin-top:0}.components-button+.block-editor-link-control__search-create{overflow:visible;padding:12px 16px}.components-button+.block-editor-link-control__search-create:before{content:"";position:absolute;top:-10px;left:0;display:block;width:100%}.block-editor-link-control__search-create{align-items:center}.block-editor-link-control__search-create .block-editor-link-control__search-item-title{margin-bottom:0}.block-editor-link-control__search-create .block-editor-link-control__search-item-icon{top:0}.block-editor-link-control__drawer-inner{display:flex;flex-direction:column;flex-basis:100%;position:relative}.block-editor-link-control__setting{margin-bottom:0;flex:1;padding:8px 0 8px 24px}.block-editor-link-control__setting .components-base-control__field{display:flex}.block-editor-link-control__setting .components-base-control__field .components-checkbox-control__label{color:#1e1e1e}.block-editor-link-control__setting input{margin-left:0}.is-preview .block-editor-link-control__setting{padding:20px 8px 8px 0}.block-editor-link-control__tools{padding:8px 8px 0;margin-top:-16px}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle{padding-left:0;gap:0}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true]{color:#1e1e1e}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] svg{visibility:visible;transition:transform .1s ease;transform:rotate(90deg)}@media (prefers-reduced-motion: reduce){.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] svg{transition-duration:0s;transition-delay:0s}}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=false] svg{visibility:visible;transform:rotate(0);transition:transform .1s ease}@media (prefers-reduced-motion: reduce){.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=false] svg{transition-duration:0s;transition-delay:0s}}.block-editor-link-control .block-editor-link-control__search-input .components-spinner{display:block}.block-editor-link-control .block-editor-link-control__search-input .components-spinner.components-spinner{position:absolute;left:auto;bottom:auto;top:calc(50% - 8px);right:40px}.block-editor-link-control .block-editor-link-control__search-input-wrapper.has-actions .components-spinner{top:calc(50% + 4px);right:12px}.block-editor-list-view-tree{width:100%;border-collapse:collapse;padding:0;margin:0}.components-modal__content .block-editor-list-view-tree{margin:-12px -6px 0;width:calc(100% + 12px)}.block-editor-list-view-tree.is-dragging tbody{pointer-events:none}.block-editor-list-view-leaf{position:relative;transform:translateY(0)}.block-editor-list-view-leaf.is-draggable,.block-editor-list-view-leaf.is-draggable .block-editor-list-view-block-contents{cursor:grab}.block-editor-list-view-leaf .block-editor-list-view-block-select-button[aria-expanded=true]{color:inherit}.block-editor-list-view-leaf .block-editor-list-view-block-select-button:hover{color:var(--wp-admin-theme-color)}.is-dragging-components-draggable .block-editor-list-view-leaf:not(.is-selected) .block-editor-list-view-block-select-button:hover{color:inherit}.block-editor-list-view-leaf.is-selected td{background:var(--wp-admin-theme-color)}.block-editor-list-view-leaf.is-selected.is-synced td{background:var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:hover,.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:focus,.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents .block-editor-block-icon{color:var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents,.block-editor-list-view-leaf.is-selected .components-button.has-icon{color:#fff}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-list-view-leaf.is-selected.is-synced .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff}.block-editor-list-view-leaf.is-first-selected td:first-child{border-top-left-radius:2px}.block-editor-list-view-leaf.is-first-selected td:last-child{border-top-right-radius:2px}.block-editor-list-view-leaf.is-last-selected td:first-child{border-bottom-left-radius:2px}.block-editor-list-view-leaf.is-last-selected td:last-child{border-bottom-right-radius:2px}.block-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch){background:rgba(var(--wp-admin-theme-color--rgb),.04)}.block-editor-list-view-leaf.is-synced-branch.is-branch-selected{background:rgba(var(--wp-block-synced-color--rgb),.04)}.block-editor-list-view-leaf.is-branch-selected.is-first-selected td:first-child{border-top-left-radius:2px}.block-editor-list-view-leaf.is-branch-selected.is-first-selected td:last-child{border-top-right-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-first-selected td:first-child{border-top-left-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-first-selected td:last-child{border-top-right-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-last-selected td:first-child{border-bottom-left-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-last-selected td:last-child{border-bottom-right-radius:2px}.block-editor-list-view-leaf.is-branch-selected:not(.is-selected) td{border-radius:0}.block-editor-list-view-leaf.is-displacement-normal{transition:transform .2s;transform:translateY(0)}@media (prefers-reduced-motion: reduce){.block-editor-list-view-leaf.is-displacement-normal{transition-duration:0s;transition-delay:0s}}.block-editor-list-view-leaf.is-displacement-up{transition:transform .2s;transform:translateY(-32px)}@media (prefers-reduced-motion: reduce){.block-editor-list-view-leaf.is-displacement-up{transition-duration:0s;transition-delay:0s}}.block-editor-list-view-leaf.is-displacement-down{transition:transform .2s;transform:translateY(32px)}@media (prefers-reduced-motion: reduce){.block-editor-list-view-leaf.is-displacement-down{transition-duration:0s;transition-delay:0s}}.block-editor-list-view-leaf.is-after-dragged-blocks{transition:transform .2s;transform:translateY(calc(var(--wp-admin--list-view-dragged-items-height, 32px) * -1))}@media (prefers-reduced-motion: reduce){.block-editor-list-view-leaf.is-after-dragged-blocks{transition-duration:0s;transition-delay:0s}}.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-up{transition:transform .2s;transform:translateY(calc(-32px + var(--wp-admin--list-view-dragged-items-height, 32px) * -1))}@media (prefers-reduced-motion: reduce){.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-up{transition-duration:0s;transition-delay:0s}}.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-down{transition:transform .2s;transform:translateY(calc(32px + var(--wp-admin--list-view-dragged-items-height, 32px) * -1))}@media (prefers-reduced-motion: reduce){.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-down{transition-duration:0s;transition-delay:0s}}.block-editor-list-view-leaf.is-dragging{opacity:0;left:0;pointer-events:none;z-index:-9999}.block-editor-list-view-leaf .block-editor-list-view-block-contents{display:flex;align-items:center;width:100%;height:32px;padding:6px 4px 6px 0;text-align:left;position:relative;white-space:nowrap}.block-editor-list-view-leaf .block-editor-list-view-block-contents.is-dropping-before:before{content:"";position:absolute;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;top:-2px;right:0;left:0;border-top:4px solid var(--wp-admin-theme-color)}.components-modal__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{padding-left:0;padding-right:0}.block-editor-list-view-leaf.is-nesting .block-editor-list-view-block-contents,.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus{box-shadow:none}.block-editor-list-view-leaf.is-nesting .block-editor-list-view-block-contents:after,.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus:after{content:"";position:absolute;inset:0 -29px 0 0;border-radius:inherit;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);z-index:2;pointer-events:none}.block-editor-list-view-leaf.has-single-cell .block-editor-list-view-block-contents:focus:after{right:0}.block-editor-list-view-leaf.is-nesting .block-editor-list-view__menu,.block-editor-list-view-leaf .block-editor-list-view-block__menu:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);z-index:1}.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents{opacity:1;animation:edit-post__fade-in-animation .08s linear 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion: reduce){.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents{animation-duration:1ms;animation-delay:0s}}.block-editor-list-view-leaf .block-editor-block-icon{margin-right:4px;flex:0 0 24px}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell,.block-editor-list-view-leaf .block-editor-list-view-block__contents-cell{padding:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell{line-height:0;width:36px;vertical-align:middle}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell>*{opacity:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell:hover>*,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell:focus-within>*,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell.is-visible>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell:hover>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell:focus-within>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell.is-visible>*{opacity:1}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell .components-button.has-icon,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell .components-button.has-icon{width:24px;min-width:24px;padding:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell{padding-right:4px}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell .components-button.has-icon{height:24px}.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell-alignment-wrapper{display:flex;height:100%;flex-direction:column;align-items:center}.block-editor-list-view-leaf .block-editor-block-mover-button{position:relative;width:36px;height:24px}.block-editor-list-view-leaf .block-editor-block-mover-button svg{position:relative;height:24px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-up-button{margin-top:-6px;align-items:flex-end}.block-editor-list-view-leaf .block-editor-block-mover-button.is-up-button svg{bottom:-4px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-down-button{margin-bottom:-6px;align-items:flex-start}.block-editor-list-view-leaf .block-editor-block-mover-button.is-down-button svg{top:-4px}.block-editor-list-view-leaf .block-editor-block-mover-button:before{height:16px;min-width:100%;left:0;right:0}.block-editor-list-view-leaf .block-editor-inserter__toggle{background:#1e1e1e;color:#fff;height:24px;margin:6px 6px 6px 1px;min-width:24px}.block-editor-list-view-leaf .block-editor-inserter__toggle:active{color:#fff}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper svg{left:2px;position:relative}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__title{flex:1;position:relative}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__title .components-truncate{position:absolute;width:100%;transform:translateY(-50%)}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__anchor-wrapper{position:relative;max-width:min(110px,40%);width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__anchor{position:absolute;right:0;transform:translateY(-50%);background:#0000001a;border-radius:1px;padding:2px 6px;max-width:100%;box-sizing:border-box}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__anchor{background:#0000004d}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__lock,.block-editor-list-view-leaf .block-editor-list-view-block-select-button__sticky{line-height:0}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__images{display:flex}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__image{background-size:cover;width:18px;height:18px;border-radius:1px}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__image:not(:only-child){box-shadow:0 0 0 2px #fff}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__image:not(:first-child){margin-left:-6px}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__image:not(:only-child){box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-editor-list-view-draggable-chip{opacity:.8}.block-editor-list-view-block__contents-cell .block-editor-list-view-block__contents-container,.block-editor-list-view-block__contents-cell .block-editor-list-view-appender__container,.block-editor-list-view-appender__cell .block-editor-list-view-block__contents-container,.block-editor-list-view-appender__cell .block-editor-list-view-appender__container{display:flex}.block-editor-list-view__expander{height:24px;width:24px;cursor:pointer}.block-editor-list-view-leaf[aria-level] .block-editor-list-view__expander{margin-left:192px}.block-editor-list-view-leaf[aria-level="1"] .block-editor-list-view__expander{margin-left:0}.block-editor-list-view-leaf[aria-level="2"] .block-editor-list-view__expander{margin-left:24px}.block-editor-list-view-leaf[aria-level="3"] .block-editor-list-view__expander{margin-left:48px}.block-editor-list-view-leaf[aria-level="4"] .block-editor-list-view__expander{margin-left:72px}.block-editor-list-view-leaf[aria-level="5"] .block-editor-list-view__expander{margin-left:96px}.block-editor-list-view-leaf[aria-level="6"] .block-editor-list-view__expander{margin-left:120px}.block-editor-list-view-leaf[aria-level="7"] .block-editor-list-view__expander{margin-left:144px}.block-editor-list-view-leaf[aria-level="8"] .block-editor-list-view__expander{margin-left:168px}.block-editor-list-view-leaf .block-editor-list-view__expander{visibility:hidden}.block-editor-list-view-leaf[data-expanded=true] .block-editor-list-view__expander svg{visibility:visible;transition:transform .2s ease;transform:rotate(90deg)}@media (prefers-reduced-motion: reduce){.block-editor-list-view-leaf[data-expanded=true] .block-editor-list-view__expander svg{transition-duration:0s;transition-delay:0s}}.block-editor-list-view-leaf[data-expanded=false] .block-editor-list-view__expander svg{visibility:visible;transform:rotate(0);transition:transform .2s ease}@media (prefers-reduced-motion: reduce){.block-editor-list-view-leaf[data-expanded=false] .block-editor-list-view__expander svg{transition-duration:0s;transition-delay:0s}}.block-editor-list-view-drop-indicator{pointer-events:none}.block-editor-list-view-drop-indicator .block-editor-list-view-drop-indicator__line{background:var(--wp-admin-theme-color);height:4px;border-radius:4px}.block-editor-list-view-drop-indicator--preview{pointer-events:none}.block-editor-list-view-drop-indicator--preview .components-popover__content{overflow:hidden!important}.block-editor-list-view-drop-indicator--preview .block-editor-list-view-drop-indicator__line{background:rgba(var(--wp-admin-theme-color--rgb),.04);height:32px;border-radius:4px;overflow:hidden}.block-editor-list-view-drop-indicator--preview .block-editor-list-view-drop-indicator__line--darker{background:rgba(var(--wp-admin-theme-color--rgb),.09)}.block-editor-list-view-placeholder{padding:0;margin:0;height:32px}.list-view-appender .block-editor-inserter__toggle{background-color:#1e1e1e;color:#fff;margin:8px 0 0 24px;height:24px;min-width:24px;padding:0}.list-view-appender .block-editor-inserter__toggle:hover,.list-view-appender .block-editor-inserter__toggle:focus{background:var(--wp-admin-theme-color);color:#fff}.list-view-appender__description,.modal-open .block-editor-media-replace-flow__options{display:none}.block-editor-media-replace-flow__indicator{margin-left:4px}.block-editor-media-flow__url-input{margin-right:-8px;margin-left:-8px;padding:16px}.block-editor-media-flow__url-input.has-siblings{border-top:1px solid #1e1e1e;margin-top:8px;padding-bottom:8px}.block-editor-media-flow__url-input .block-editor-media-replace-flow__image-url-label{display:block;top:16px;margin-bottom:8px}.block-editor-media-flow__url-input .block-editor-link-control{width:300px}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-url-input{padding:0;margin:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-title,.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-info{max-width:200px;white-space:nowrap}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__tools{justify-content:flex-end;padding:16px var(--wp-admin-border-width-focus) var(--wp-admin-border-width-focus)}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item.is-current{width:auto;padding:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{margin:0;width:100%}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-actions{padding:8px 0 0}.block-editor-media-flow__error{padding:0 20px 20px;max-width:255px}.block-editor-media-flow__error .components-with-notices-ui{max-width:255px}.block-editor-media-flow__error .components-with-notices-ui .components-notice__content{overflow:hidden;word-wrap:break-word}.block-editor-media-flow__error .components-with-notices-ui .components-notice__dismiss{position:absolute;right:10px}.block-editor-multi-selection-inspector__card{display:flex;align-items:flex-start;padding:16px}.block-editor-multi-selection-inspector__card-content{flex-grow:1}.block-editor-multi-selection-inspector__card-title{font-weight:500;margin-bottom:5px}.block-editor-multi-selection-inspector__card-description{font-size:13px}.block-editor-multi-selection-inspector__card .block-editor-block-icon{margin-left:-2px;margin-right:10px;padding:0 3px;width:36px;height:24px}.block-editor-responsive-block-control{margin-bottom:28px;border-bottom:1px solid #ccc;padding-bottom:14px}.block-editor-responsive-block-control:last-child{padding-bottom:0;border-bottom:0}.block-editor-responsive-block-control__title{margin:0 0 .6em -3px}.block-editor-responsive-block-control__label{font-weight:600;margin-bottom:.6em;margin-left:-3px}.block-editor-responsive-block-control__inner{margin-left:-1px}.block-editor-responsive-block-control__toggle{margin-left:1px}.block-editor-responsive-block-control .components-base-control__help{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.components-popover.block-editor-rich-text__inline-format-toolbar{z-index:99998}.components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content{width:auto;min-width:auto;margin-bottom:8px;box-shadow:none;outline:none}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar{border-radius:2px}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar__control,.components-popover.block-editor-rich-text__inline-format-toolbar .components-dropdown-menu__toggle{min-width:48px;min-height:48px;padding-left:12px;padding-right:12px}.block-editor-rich-text__inline-format-toolbar-group .components-dropdown-menu__toggle{justify-content:center}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon{width:auto}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon:after{content:attr(aria-label)}.block-editor-skip-to-selected-block{position:absolute;top:-9999em}.block-editor-skip-to-selected-block:focus{height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f1f1f1;color:var(--wp-admin-theme-color);line-height:normal;box-shadow:0 0 2px 2px #0009;text-decoration:none;outline:none;z-index:100000}.block-editor-tabbed-sidebar{background-color:#fff;height:100%;display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.block-editor-tabbed-sidebar__tablist-and-close-button{border-bottom:1px solid #ddd;display:flex;justify-content:space-between;padding-right:12px}.block-editor-tabbed-sidebar__close-button{background:#fff;order:1;align-self:center}.block-editor-tabbed-sidebar__tablist{margin-bottom:-1px}.block-editor-tabbed-sidebar__tabpanel{display:flex;flex-grow:1;flex-direction:column;overflow-y:auto;scrollbar-gutter:auto}.block-editor-tool-selector__help{margin:8px -8px -8px;padding:16px;border-top:1px solid #ddd;color:#757575;min-width:280px}.block-editor-block-list__block .block-editor-url-input,.components-popover .block-editor-url-input,.block-editor-url-input{flex-grow:1;position:relative;padding:1px}.block-editor-block-list__block .block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text],.block-editor-url-input input[type=text]{width:100%;padding:8px 8px 8px 12px;margin-left:0;margin-right:0;font-size:16px}@media (min-width: 600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text],.block-editor-url-input input[type=text]{width:300px}}@media (min-width: 600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text],.block-editor-url-input input[type=text]{font-size:13px}}.block-editor-block-list__block .block-editor-url-input input[type=text]::-ms-clear,.components-popover .block-editor-url-input input[type=text]::-ms-clear,.block-editor-url-input input[type=text]::-ms-clear{display:none}.block-editor-block-list__block .block-editor-url-input.is-full-width,.components-popover .block-editor-url-input.is-full-width,.block-editor-url-input.is-full-width,.block-editor-block-list__block .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.components-popover .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.block-editor-block-list__block .block-editor-url-input.is-full-width__suggestions,.components-popover .block-editor-url-input.is-full-width__suggestions,.block-editor-url-input.is-full-width__suggestions{width:100%}.block-editor-block-list__block .block-editor-url-input .components-spinner,.components-popover .block-editor-url-input .components-spinner,.block-editor-url-input .components-spinner{position:absolute;margin:0;top:calc(50% - 8px);right:8px}.block-editor-url-input__input[type=text]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #949494;font-size:16px;line-height:normal}@media (prefers-reduced-motion: reduce){.block-editor-url-input__input[type=text]{transition-duration:0s;transition-delay:0s}}@media (min-width: 600px){.block-editor-url-input__input[type=text]{font-size:13px;line-height:normal}}.block-editor-url-input__input[type=text]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-url-input__input[type=text]::-webkit-input-placeholder{color:#1e1e1e9e}.block-editor-url-input__input[type=text]::-moz-placeholder{opacity:1;color:#1e1e1e9e}.block-editor-url-input__input[type=text]:-ms-input-placeholder{color:#1e1e1e9e}.block-editor-url-input__suggestions{max-height:200px;transition:all .15s ease-in-out;padding:4px 0;width:302px;overflow-y:auto}@media (prefers-reduced-motion: reduce){.block-editor-url-input__suggestions{transition-duration:0s;transition-delay:0s}}.block-editor-url-input__suggestions,.block-editor-url-input .components-spinner{display:none}@media (min-width: 600px){.block-editor-url-input__suggestions,.block-editor-url-input .components-spinner{display:grid}}.block-editor-url-input__suggestion{min-height:36px;height:auto;color:#757575;display:block;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:left;box-shadow:none}.block-editor-url-input__suggestion:hover{background:#ddd}.block-editor-url-input__suggestion:focus,.block-editor-url-input__suggestion.is-selected{background:var(--wp-admin-theme-color-darker-20);color:#fff;outline:none}.components-toolbar-group>.block-editor-url-input__button,.components-toolbar>.block-editor-url-input__button{position:inherit}.block-editor-url-input__button .block-editor-url-input__back{margin-right:4px;overflow:visible}.block-editor-url-input__button .block-editor-url-input__back:after{content:"";position:absolute;display:block;width:1px;height:24px;right:-1px;background:#ddd}.block-editor-url-input__button-modal{box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a;border:1px solid #ddd;background:#fff}.block-editor-url-input__button-modal-line{display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0;align-items:flex-start}.block-editor-url-input__button-modal-line .components-button{flex-shrink:0;width:36px;height:36px}.block-editor-url-popover__additional-controls{border-top:1px solid #1e1e1e;padding:8px}.block-editor-url-popover__input-container{padding:8px}.block-editor-url-popover__row{display:flex;gap:4px;align-items:center}.block-editor-url-popover__row>:not(.block-editor-url-popover__settings-toggle){flex-grow:1;gap:8px}.block-editor-url-popover__additional-controls .components-button.has-icon{padding-left:8px;padding-right:8px;height:auto;text-align:left}.block-editor-url-popover__additional-controls .components-button.has-icon>svg{margin-right:8px}.block-editor-url-popover__settings-toggle{flex-shrink:0}.block-editor-url-popover__settings-toggle[aria-expanded=true] .dashicon{transform:rotate(180deg)}.block-editor-url-popover__settings{display:block;padding:16px;border-top:1px solid #1e1e1e}.block-editor-url-popover__link-editor,.block-editor-url-popover__link-viewer{display:flex}.block-editor-url-popover__link-viewer-url{display:flex;align-items:center;flex-grow:1;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:8px;min-width:150px;max-width:350px}.block-editor-url-popover__link-viewer-url.has-invalid-link{color:#cc1818}.block-editor-url-popover__expand-on-click{display:flex;align-items:center;min-width:350px;white-space:nowrap}.block-editor-url-popover__expand-on-click .text{flex-grow:1}.block-editor-url-popover__expand-on-click .text p{margin:0;line-height:16px}.block-editor-url-popover__expand-on-click .text p.description{color:#757575;font-size:12px}.block-editor-hooks__block-hooks .components-toggle-control .components-h-stack{flex-direction:row-reverse}.block-editor-hooks__block-hooks .components-toggle-control .components-h-stack .components-h-stack{flex-direction:row}.block-editor-hooks__block-hooks .block-editor-hooks__block-hooks-helptext{color:#757575;font-size:12px;margin-bottom:16px}div.block-editor-bindings__panel{grid-template-columns:repeat(auto-fit,minmax(100%,1fr))}div.block-editor-bindings__panel button:hover .block-editor-bindings__item span{color:inherit}.border-block-support-panel .single-column{grid-column:span 1}.color-block-support-panel .block-editor-contrast-checker{order:9999;grid-column:span 2;margin-top:16px}.color-block-support-panel .block-editor-contrast-checker .components-notice__content{margin-right:0}.color-block-support-panel.color-block-support-panel .color-block-support-panel__inner-wrapper{row-gap:0}.color-block-support-panel .block-editor-tools-panel-color-gradient-settings__item.first{margin-top:0}.dimensions-block-support-panel .single-column{grid-column:span 1}.block-editor-hooks__layout-controls-units{display:flex;flex-direction:column;gap:16px}.block-editor-block-inspector .block-editor-hooks__layout-controls-unit-input{margin-bottom:0}.block-editor-hooks__layout-controls-reset{display:flex;justify-content:flex-end;margin-bottom:24px}.block-editor-hooks__layout-controls-helptext{color:#757575;font-size:12px;margin-bottom:16px}.block-editor-hooks__flex-layout-justification-controls,.block-editor-hooks__flex-layout-orientation-controls{margin-bottom:12px}.block-editor-hooks__flex-layout-justification-controls legend,.block-editor-hooks__flex-layout-orientation-controls legend{margin-bottom:8px}.block-editor-hooks__toggle-control.block-editor-hooks__toggle-control{margin-bottom:16px}.block-editor__spacing-visualizer{position:absolute;inset:0;opacity:.5;border-color:var(--wp-admin-theme-color);border-style:solid;pointer-events:none;box-sizing:border-box}.typography-block-support-panel .single-column{grid-column:span 1}.block-editor-block-toolbar{display:flex;flex-grow:1;width:100%;position:relative;overflow-y:hidden;overflow-x:auto;transition:border-color .1s linear,box-shadow .1s linear}@media (prefers-reduced-motion: reduce){.block-editor-block-toolbar{transition-duration:0s;transition-delay:0s}}@media (min-width: 600px){.block-editor-block-toolbar{overflow:inherit}}.block-editor-block-toolbar .components-toolbar-group,.block-editor-block-toolbar .components-toolbar{background:none;margin-top:-1px;margin-bottom:-1px;border:0;border-right:1px solid #ddd}.block-editor-block-toolbar.is-synced .block-editor-block-switcher .components-button .block-editor-block-icon,.block-editor-block-toolbar.is-connected .block-editor-block-switcher .components-button .block-editor-block-icon{color:var(--wp-block-synced-color)}.block-editor-block-toolbar.is-synced .components-toolbar-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors,.block-editor-block-toolbar.is-connected .components-toolbar-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{color:var(--wp-block-synced-color)}.block-editor-block-toolbar>:last-child,.block-editor-block-toolbar>:last-child .components-toolbar-group,.block-editor-block-toolbar>:last-child .components-toolbar{border-right:none}.block-editor-block-contextual-toolbar{position:sticky;top:0;z-index:31;display:block;width:100%;background-color:#fff;flex-shrink:3}.block-editor-block-contextual-toolbar.components-accessible-toolbar{border:none;border-bottom:1px solid #e0e0e0;border-radius:0}.block-editor-block-contextual-toolbar .block-editor-block-toolbar{overflow:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-gutter:stable both-edges;scrollbar-color:#e0e0e0 transparent;will-change:transform;scrollbar-gutter:auto}.block-editor-block-contextual-toolbar .block-editor-block-toolbar::-webkit-scrollbar{width:12px;height:12px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar::-webkit-scrollbar-track{background-color:transparent}.block-editor-block-contextual-toolbar .block-editor-block-toolbar::-webkit-scrollbar-thumb{background-color:#e0e0e0;border-radius:8px;border:3px solid transparent;background-clip:padding-box}.block-editor-block-contextual-toolbar .block-editor-block-toolbar:hover::-webkit-scrollbar-thumb,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus::-webkit-scrollbar-thumb,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus-within::-webkit-scrollbar-thumb{background-color:#949494}.block-editor-block-contextual-toolbar .block-editor-block-toolbar:hover,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus-within{scrollbar-color:#949494 transparent}@media (hover: none){.block-editor-block-contextual-toolbar .block-editor-block-toolbar{scrollbar-color:#949494 transparent}}.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child:after,.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child .components-toolbar-group:after,.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child .components-toolbar:after{display:none}.block-editor-block-contextual-toolbar>.block-editor-block-toolbar{flex-grow:initial;width:initial}.block-editor-block-contextual-toolbar .block-editor-block-parent-selector{position:relative;margin-top:-1px;margin-bottom:-1px}.block-editor-block-contextual-toolbar .block-editor-block-parent-selector:after{align-items:center;background-color:#1e1e1e;border-radius:100%;content:"";display:inline-flex;height:2px;position:absolute;right:0;top:15px;width:2px}.block-editor-block-toolbar__block-controls .block-editor-block-switcher .components-dropdown-menu__toggle .block-editor-block-icon,.block-editor-block-toolbar__block-controls .block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{width:24px!important;margin:0!important}.block-editor-block-toolbar__block-controls .components-toolbar-group{padding:0}.block-editor-block-toolbar .components-toolbar-group,.block-editor-block-toolbar .components-toolbar,.block-editor-rich-text__inline-format-toolbar-group .components-toolbar-group,.block-editor-rich-text__inline-format-toolbar-group .components-toolbar{display:flex;flex-wrap:nowrap}.block-editor-block-toolbar__slot{display:inline-flex}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon{width:auto}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.show-icon-labels .components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon{padding-left:6px;padding-right:6px}.show-icon-labels .block-editor-block-switcher .components-dropdown-menu__toggle .block-editor-block-icon,.show-icon-labels .block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{width:0!important;height:0!important;min-width:0!important}.show-icon-labels .block-editor-block-parent-selector .block-editor-block-parent-selector__button{border-top-right-radius:0;border-bottom-right-radius:0;padding-left:12px;padding-right:12px;text-wrap:nowrap}.show-icon-labels .block-editor-block-parent-selector .block-editor-block-parent-selector__button .block-editor-block-icon{width:0}.show-icon-labels .block-editor-block-mover .block-editor-block-mover__move-button-container{width:auto;position:relative}@media (min-width: 600px){.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container:before{content:"";height:1px;width:100%;background:#e0e0e0;position:absolute;top:50%;left:50%;transform:translate(-50%);margin-top:-.5px}}@media (min-width: 782px){.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container:before{background:#1e1e1e}}.show-icon-labels .block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container,.show-icon-labels .block-editor-block-mover.is-horizontal .block-editor-block-mover-button{padding-left:6px;padding-right:6px}.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button{padding-left:8px;padding-right:8px}.show-icon-labels .block-editor-block-toolbar__block-controls .block-editor-block-mover{border-left:1px solid #ddd;margin-left:6px;margin-right:-6px;white-space:nowrap}.show-icon-labels .block-editor-block-mover .block-editor-block-mover__drag-handle.has-icon{padding-left:12px;padding-right:12px}.show-icon-labels .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button{width:auto}.show-icon-labels .components-toolbar,.show-icon-labels .components-toolbar-group{flex-shrink:1}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button+.components-button{margin-left:6px}.block-editor-inserter{display:inline-block;background:none;border:none;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:0}@media (min-width: 782px){.block-editor-inserter{position:relative}}.block-editor-inserter__main-area{height:100%;gap:16px;position:relative}.block-editor-inserter__main-area.show-as-tabs{gap:0}@media (min-width: 782px){.block-editor-inserter__main-area .block-editor-tabbed-sidebar{width:350px}}.block-editor-inserter__popover.is-quick .components-popover__content{border:none;outline:none;box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>*{border-left:1px solid #ccc;border-right:1px solid #ccc}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>*:first-child{border-top:1px solid #ccc;border-radius:4px 4px 0 0}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>*:last-child{border-bottom:1px solid #ccc;border-radius:0 0 4px 4px}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>*.components-button{border:1px solid #1e1e1e}.block-editor-inserter__popover .block-editor-inserter__menu{margin:-12px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__tablist{top:60px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__main-area{overflow:visible;height:auto}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__preview-container{display:none}.block-editor-inserter__toggle.components-button{display:inline-flex;align-items:center;cursor:pointer;border:none;outline:none;padding:0;transition:color .2s ease}@media (prefers-reduced-motion: reduce){.block-editor-inserter__toggle.components-button{transition-duration:0s;transition-delay:0s}}.block-editor-inserter__menu{height:100%;position:relative;overflow:visible}@media (min-width: 782px){.block-editor-inserter__menu.show-panel{width:630px}}.block-editor-inserter__inline-elements{margin-top:-1px}.block-editor-inserter__menu.is-bottom:after{border-bottom-color:#fff}.components-popover.block-editor-inserter__popover{z-index:99999}.block-editor-inserter__search{padding:16px 16px 0}.block-editor-inserter__no-tab-container{overflow-y:auto;flex-grow:1;position:relative}.block-editor-inserter__panel-header{display:inline-flex;align-items:center;padding:16px 16px 0}.block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__panel-title,.block-editor-inserter__panel-title button{margin:0 12px 0 0;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-inserter__panel-dropdown select.components-select-control__input.components-select-control__input.components-select-control__input{height:36px;line-height:36px}.block-editor-inserter__panel-dropdown select{border:none}.block-editor-inserter__reusable-blocks-panel{position:relative;text-align:right}.block-editor-inserter__manage-reusable-blocks-container{margin:auto 16px 16px}.block-editor-inserter__manage-reusable-blocks{justify-content:center;width:100%}.block-editor-inserter__no-results,.block-editor-inserter__patterns-loading{padding:32px;text-align:center}.block-editor-inserter__no-results-icon{fill:#949494}.block-editor-inserter__child-blocks{padding:0 16px}.block-editor-inserter__parent-block-header{display:flex;align-items:center}.block-editor-inserter__parent-block-header h2{font-size:13px}.block-editor-inserter__parent-block-header .block-editor-block-icon{margin-right:8px}.block-editor-inserter__preview-container__popover{top:16px!important}.block-editor-inserter__preview-container{display:none;width:280px;padding:16px;max-height:calc(100% - 32px);overflow-y:hidden}@media (min-width: 782px){.block-editor-inserter__preview-container{display:block}}.block-editor-inserter__preview-container .block-editor-inserter__media-list__list-item{height:100%}.block-editor-inserter__preview-container .block-editor-block-card{padding-left:0;padding-right:0;padding-bottom:4px}.block-editor-inserter__insertable-blocks-at-selection{border-bottom:1px solid #e0e0e0}.block-editor-inserter__media-tabs-container,.block-editor-inserter__block-patterns-tabs-container{padding:16px;height:100%;display:flex;flex-direction:column;justify-content:space-between}.block-editor-inserter__category-tablist{display:flex;flex-direction:column;border:none;margin-bottom:8px}.block-editor-inserter__category-tablist div[role=listitem]:last-child{margin-top:auto}.block-editor-inserter__category-tablist[aria-orientation=vertical]:after{content:none}.block-editor-inserter__category-tablist .block-editor-inserter__category-tab{padding:8px 4px 8px 12px;text-align:left;font-weight:inherit;display:block;position:relative;height:auto}.block-editor-inserter__category-tablist .block-editor-inserter__category-tab[aria-selected=true]{color:var(--wp-admin-theme-color)}.block-editor-inserter__category-tablist .block-editor-inserter__category-tab[aria-selected=true] .components-flex-item{filter:brightness(.95)}.block-editor-inserter__category-tablist .block-editor-inserter__category-tab[aria-selected=true] svg{fill:var(--wp-admin-theme-color)}.block-editor-inserter__category-tablist .block-editor-inserter__category-tab[aria-selected=true]:after{content:"";display:block;outline:none;position:absolute;inset:0;border-radius:2px;opacity:.04;background:var(--wp-admin-theme-color);height:100%}.block-editor-inserter__category-tablist .block-editor-inserter__category-tab:focus-visible,.block-editor-inserter__category-tablist .block-editor-inserter__category-tab:focus:not(:disabled){border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:0}.block-editor-inserter__category-tablist .block-editor-inserter__category-tab:before{display:none}.block-editor-inserter__category-tablist .block-editor-inserter__category-tab:after{display:none}.block-editor-inserter__category-panel{outline:1px solid transparent;display:flex;flex-direction:column;padding:0 16px}@media (min-width: 782px){.block-editor-inserter__category-panel{border-left:1px solid #e0e0e0;padding:0;left:350px;width:280px;position:absolute;top:-1px;height:calc(100% + 1px);background:#f0f0f0;border-top:1px solid #e0e0e0}.block-editor-inserter__category-panel .block-editor-inserter__media-list,.block-editor-inserter__category-panel .block-editor-block-patterns-list{padding:0 24px 16px}}.block-editor-inserter__patterns-category-panel-header{padding:8px 0}@media (min-width: 782px){.block-editor-inserter__patterns-category-panel-header{padding:8px 24px}}.block-editor-inserter__patterns-category-no-results{margin-top:24px}.block-editor-inserter__media-list,.block-editor-block-patterns-list{overflow-y:auto;flex-grow:1;height:100%}.block-editor-inserter__preview-content{background:#f0f0f0;display:grid;flex-grow:1;align-items:center}.block-editor-inserter__preview-content-missing{flex:1;display:flex;justify-content:center;align-items:center;min-height:144px;color:#757575;background:#f0f0f0;border-radius:2px}.block-editor-inserter__tips{border-top:1px solid #ddd;padding:16px;flex-shrink:0;position:relative}.block-editor-inserter__quick-inserter{width:100%;max-width:100%}@media (min-width: 782px){.block-editor-inserter__quick-inserter{width:350px}}.block-editor-inserter__quick-inserter-results .block-editor-inserter__panel-header{height:0;padding:0;float:left}.block-editor-inserter__quick-inserter.has-search .block-editor-inserter__panel-content,.block-editor-inserter__quick-inserter.has-expand .block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list{display:grid;grid-template-columns:1fr 1fr;grid-gap:8px}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-inserter__media-list__list-item{min-height:100px}.block-editor-inserter__quick-inserter-separator{border-top:1px solid #ddd}.block-editor-inserter__popover.is-quick>.components-popover__content{padding:0}.block-editor-inserter__quick-inserter-expand.components-button{display:block;background:#1e1e1e;color:#fff;width:100%;height:44px;border-radius:0}.block-editor-inserter__quick-inserter-expand.components-button:hover{color:#fff}.block-editor-inserter__quick-inserter-expand.components-button:active{color:#ccc}.block-editor-inserter__quick-inserter-expand.components-button.components-button:focus:not(:disabled){box-shadow:none;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.block-editor-block-patterns-explorer__sidebar{position:absolute;top:72px;left:0;bottom:0;width:280px;padding:24px 32px 32px;overflow-x:visible;overflow-y:scroll}.block-editor-block-patterns-explorer__sidebar__categories-list__item{display:block;width:100%;height:48px;text-align:left}.block-editor-block-patterns-explorer__search{margin-bottom:32px}.block-editor-block-patterns-explorer__search-results-count{padding-bottom:32px}.block-editor-block-patterns-explorer__list{margin-left:280px;padding:24px 0 32px}.block-editor-block-patterns-explorer__list .block-editor-patterns__sync-status-filter .components-input-control__container{width:380px}.block-editor-block-patterns-explorer .block-editor-block-patterns-list{display:grid;grid-gap:32px;grid-template-columns:repeat(1,1fr);margin-bottom:16px}@media (min-width: 1080px){.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-template-columns:repeat(2,1fr)}}@media (min-width: 1440px){.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-template-columns:repeat(3,1fr)}}.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{min-height:240px}.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-inserter__media-list__list-item{height:inherit;min-height:100px;max-height:800px}.components-heading.block-editor-inserter__patterns-category-panel-title{font-weight:500}.block-editor-inserter__patterns-explore-button.components-button,.block-editor-inserter__media-library-button.components-button{padding:16px;justify-content:center;margin-top:16px;width:100%}.block-editor-inserter__media-panel{min-height:100%;padding:0 16px;display:flex;flex-direction:column}@media (min-width: 782px){.block-editor-inserter__media-panel{padding:0}}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-spinner{height:100%;display:flex;align-items:center;justify-content:center;flex:1}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search{margin-bottom:24px}@media (min-width: 782px){.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search{margin-bottom:0;padding:16px 24px}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search:not(:focus-within){--wp-components-color-background: #fff}}.block-editor-inserter__media-list__list-item{position:relative;cursor:pointer;margin-bottom:24px}.block-editor-inserter__media-list__list-item.is-placeholder{min-height:100px}.block-editor-inserter__media-list__list-item[draggable=true] .block-editor-inserter__media-list__list-item{cursor:grab}.block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview>*{outline-color:#0000004d}.block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview-options>button{display:block}.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options{position:absolute;right:8px;top:8px}.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button{background:#fff;display:none}.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button.is-opened,.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:focus{display:block}.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:hover{box-shadow:inset 0 0 0 2px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-inserter__media-list__item{height:100%}.block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview{display:flex;align-items:center;overflow:hidden;border-radius:2px}.block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview>*{margin:0 auto;max-width:100%;outline:1px solid rgba(0,0,0,.1);outline-offset:-1px}.block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview .block-editor-inserter__media-list__item-preview-spinner{display:flex;height:100%;width:100%;position:absolute;justify-content:center;background:#ffffffb3;align-items:center;pointer-events:none}.block-editor-inserter__media-list__item:focus .block-editor-inserter__media-list__item-preview>*{outline-color:var(--wp-admin-theme-color);outline-width:var(--wp-admin-border-width-focus);outline-offset:calc((-1 * var(--wp-admin-border-width-focus)));transition:outline .1s linear}@media (prefers-reduced-motion: reduce){.block-editor-inserter__media-list__item:focus .block-editor-inserter__media-list__item-preview>*{transition-duration:0s;transition-delay:0s}}.block-editor-inserter__media-list__item-preview-options__popover .components-menu-item__button .components-menu-item__item{min-width:auto}.block-editor-inserter__mobile-tab-navigation{padding:16px;height:100%}.block-editor-inserter__mobile-tab-navigation>*{height:100%}@media (min-width: 600px){.block-editor-inserter-media-tab-media-preview-inserter-external-image-modal{max-width:480px}}.block-editor-inserter-media-tab-media-preview-inserter-external-image-modal p{margin:0}.block-editor-inserter__hint{margin:16px 16px 0}.block-editor-patterns__sync-status-filter .components-input-control__container select.components-select-control__input{height:40px}.block-editor-inserter__pattern-panel-placeholder{display:none}.block-editor-inserter__menu.is-zoom-out{display:flex}@media (min-width: 782px){.block-editor-inserter__menu.is-zoom-out.show-panel:after{content:"";display:block;width:300px;height:100%}}@media (max-width: 959px){.show-icon-labels .block-editor-block-patterns-explorer .block-editor-patterns__grid-pagination,.show-icon-labels .block-editor-block-patterns-explorer .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-previous,.show-icon-labels .block-editor-block-patterns-explorer .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-next{flex-direction:column}}.show-icon-labels .block-editor-inserter__category-panel .block-editor-patterns__grid-pagination,.show-icon-labels .block-editor-inserter__category-panel .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-previous,.show-icon-labels .block-editor-inserter__category-panel .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-next{flex-direction:column}.spacing-sizes-control .spacing-sizes-control__custom-value-input,.spacing-sizes-control .spacing-sizes-control__label{margin-bottom:0}.spacing-sizes-control .is-marked .components-range-control__track{transition:width ease .1s}@media (prefers-reduced-motion: reduce){.spacing-sizes-control .is-marked .components-range-control__track{transition-duration:0s;transition-delay:0s}}.spacing-sizes-control .is-marked .components-range-control__thumb-wrapper{transition:left ease .1s}@media (prefers-reduced-motion: reduce){.spacing-sizes-control .is-marked .components-range-control__thumb-wrapper{transition-duration:0s;transition-delay:0s}}.spacing-sizes-control .spacing-sizes-control__range-control,.spacing-sizes-control .spacing-sizes-control__custom-value-range{flex:1;margin-bottom:0}.spacing-sizes-control .components-range-control__mark{transform:translate(-50%);height:4px;width:2px;background-color:#fff;z-index:1;top:-4px}.spacing-sizes-control .components-range-control__marks{margin-top:17px}.spacing-sizes-control .components-range-control__thumb-wrapper{z-index:3}.spacing-sizes-control__header{height:16px;margin-bottom:12px}.spacing-sizes-control__dropdown{height:24px}.spacing-sizes-control__custom-select-control,.spacing-sizes-control__custom-value-input{flex:1}.spacing-sizes-control__icon,.spacing-sizes-control__custom-toggle{flex:0 0 auto}.spacing-sizes-control__icon{margin-left:-4px}.block-editor-block-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}@media (forced-colors: active){.block-editor-block-icon.has-colors svg{fill:CanvasText}}.block-editor-block-icon svg{min-width:20px;min-height:20px;max-width:24px;max-height:24px}.block-editor-block-styles .block-editor-block-list__block{margin:0}@keyframes selection-overlay__fade-in-animation{0%{opacity:0}to{opacity:.4}}_::-webkit-full-page-media,_:future,:root .block-editor-block-list__layout::selection,:root .has-multi-selection .block-editor-block-list__layout::selection{background-color:transparent}.block-editor-block-list__layout{position:relative}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::selection,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::selection{background:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{content:"";position:absolute;z-index:1;pointer-events:none;inset:0;background:var(--wp-admin-theme-color);opacity:.4;animation:selection-overlay__fade-in-animation .1s ease-out;animation-fill-mode:forwards;outline:2px solid transparent}@media (prefers-reduced-motion: reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{animation-duration:1ms;animation-delay:0s}}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected).is-highlighted:after{outline-color:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus{outline:none}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected:after,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected:after,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus:after{content:"";position:absolute;pointer-events:none;inset:0;outline-color:var(--wp-admin-theme-color);outline-style:solid;outline-width:calc(1 * (var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1)));outline-offset:calc(1 * ((-1 * var(--wp-admin-border-width-focus)) / var(--wp-block-editor-iframe-zoom-out-scale, 1)));z-index:1}.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected:after{content:"";position:absolute;z-index:0;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;inset:-14px 0 auto;border-radius:2px;border-top:4px solid #ccc;box-shadow:none}.block-editor-block-list__layout .is-block-moving-mode.can-insert-moving-block.block-editor-block-list__block.is-selected:after{border-color:var(--wp-admin-theme-color)}.has-multi-selection .block-editor-block-list__layout{-webkit-user-select:none;user-select:none}.block-editor-block-list__layout [class^=components-]{-webkit-user-select:text;user-select:text}.is-block-moving-mode.block-editor-block-list__block-selection-button{opacity:0;font-size:1px;height:1px;padding:0}.block-editor-block-list__layout .block-editor-block-list__block{position:relative;overflow-wrap:break-word;pointer-events:auto;-webkit-user-select:text;user-select:text}.block-editor-block-list__layout .block-editor-block-list__block.is-editing-disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block.has-negative-margin.is-selected,.block-editor-block-list__layout .block-editor-block-list__block.has-negative-margin.has-child-selected{z-index:20}.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel *{z-index:1}.block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui{margin:-10px 0 12px}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui{margin:0 0 12px;width:100%}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content{font-size:13px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning{min-height:48px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning>*{pointer-events:none;-webkit-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning{pointer-events:all}.block-editor-block-list__layout .block-editor-block-list__block.has-warning:after{content:"";position:absolute;inset:0;background-color:#fff6}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected:after{background-color:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay:after{display:none}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay .block-editor-block-list__layout.has-overlay:after{display:block}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable.has-child-selected:after{box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-block-list__layout .block-editor-block-list__block[data-clear=true]{float:none}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered{cursor:default}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected.rich-text,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected .rich-text,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered.rich-text,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered .rich-text{cursor:auto}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered:not(.is-selected):after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline):not(.rich-text):not([contenteditable=true]).is-selected:after{content:"";position:absolute;pointer-events:none;inset:0;outline-color:var(--wp-admin-theme-color);outline-style:solid;outline-width:calc(1 * (var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1)));outline-offset:calc(1 * ((-1 * var(--wp-admin-border-width-focus)) / var(--wp-block-editor-iframe-zoom-out-scale, 1)))}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-hovered:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-hovered:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted:after{outline-color:var(--wp-block-synced-color)}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after{outline-color:var(--wp-block-synced-color)}@keyframes block-editor-is-editable__animation{0%{background-color:rgba(var(--wp-admin-theme-color--rgb),.1)}to{background-color:rgba(var(--wp-admin-theme-color--rgb),0)}}@keyframes block-editor-is-editable__animation_reduce-motion{0%{background-color:rgba(var(--wp-admin-theme-color--rgb),.1)}99%{background-color:rgba(var(--wp-admin-theme-color--rgb),.1)}to{background-color:rgba(var(--wp-admin-theme-color--rgb),0)}}.is-root-container:not([inert]) .block-editor-block-list__block.is-reusable.is-selected .block-editor-block-list__block.has-editable-outline:after{animation-name:block-editor-is-editable__animation;animation-duration:.8s;animation-timing-function:ease-out;animation-delay:.1s;animation-fill-mode:backwards;content:"";inset:0;pointer-events:none;position:absolute}@media (prefers-reduced-motion: reduce){.is-root-container:not([inert]) .block-editor-block-list__block.is-reusable.is-selected .block-editor-block-list__block.has-editable-outline:after{animation-name:block-editor-is-editable__animation_reduce-motion;animation-delay:0s}}.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){opacity:.2;transition:opacity .1s linear}@media (prefers-reduced-motion: reduce){.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){transition-duration:0s;transition-delay:0s}}.is-focus-mode .block-editor-block-list__block:not(.has-child-selected) .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-selected,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-multi-selected{opacity:1}.is-focus-mode .block-editor-block-list__block.is-content-locked.has-child-selected,.is-focus-mode .block-editor-block-list__block.is-content-locked.has-child-selected .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block.is-content-locked-temporarily-editing-as-blocks.has-child-selected,.is-focus-mode .block-editor-block-list__block.is-content-locked-temporarily-editing-as-blocks.has-child-selected .block-editor-block-list__block{opacity:1}.wp-block[data-align=left]>*,.wp-block[data-align=right]>*,.wp-block.alignleft,.wp-block.alignright{z-index:21}.wp-site-blocks>[data-align=left]{float:left;margin-right:2em}.wp-site-blocks>[data-align=right]{float:right;margin-left:2em}.wp-site-blocks>[data-align=center]{justify-content:center;margin-left:auto;margin-right:auto}.block-editor-block-list .block-editor-inserter{margin:8px;cursor:move;cursor:grab}@keyframes block-editor-inserter__toggle__fade-in-animation{0%{opacity:0}to{opacity:1}}.wp-block .block-list-appender .block-editor-inserter__toggle{animation:block-editor-inserter__toggle__fade-in-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion: reduce){.wp-block .block-list-appender .block-editor-inserter__toggle{animation-duration:1ms;animation-delay:0s}}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender{display:none}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender .block-editor-inserter__toggle{opacity:0;transform:scale(0)}.block-editor-block-list__block .block-editor-block-list__block-html-textarea{display:block;margin:0;padding:12px;width:100%;border:none;outline:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;line-height:1.5;transition:padding .2s linear}@media (prefers-reduced-motion: reduce){.block-editor-block-list__block .block-editor-block-list__block-html-textarea{transition-duration:0s;transition-delay:0s}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-block-list__block .block-editor-warning{z-index:5;position:relative}.block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning{margin-bottom:auto}.is-vertical .block-list-appender{width:24px;margin-right:auto;margin-top:12px;margin-left:12px}.block-list-appender>.block-editor-inserter{display:block}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected):not(.block-editor-block-list__layout) .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle{opacity:0;transform:scale(0)}.block-editor-block-list__block.has-block-overlay{cursor:default}.block-editor-block-list__block.has-block-overlay .block-editor-block-list__block{pointer-events:none}.block-editor-block-list__block.has-block-overlay .block-editor-block-list__block.has-block-overlay:before{left:0;right:0;width:auto}.block-editor-block-list__layout .is-dragging{background-color:currentColor!important;opacity:.05!important;border-radius:2px!important;pointer-events:none!important}.block-editor-block-list__layout .is-dragging::selection{background:transparent!important}.block-editor-block-list__layout .is-dragging:after{content:none!important}.block-editor-block-preview__content-iframe .block-list-appender{display:none}.block-editor-block-preview__live-content *{pointer-events:none}.block-editor-block-preview__live-content .block-list-appender{display:none}.block-editor-block-preview__live-content .components-button:disabled{opacity:initial}.block-editor-block-preview__live-content .components-placeholder,.block-editor-block-preview__live-content .block-editor-block-list__block[data-empty=true]{display:none}.block-editor-block-variation-picker__variations,.block-editor-block-variation-picker__skip,.wp-block-group-placeholder__variations{list-style:none;display:flex;justify-content:flex-start;flex-direction:row;flex-wrap:wrap;width:100%;padding:0;margin:0;gap:8px;font-size:12px}.block-editor-block-variation-picker__variations svg,.block-editor-block-variation-picker__skip svg,.wp-block-group-placeholder__variations svg{fill:#949494!important}.block-editor-block-variation-picker__variations .components-button,.block-editor-block-variation-picker__skip .components-button,.wp-block-group-placeholder__variations .components-button{padding:4px}.block-editor-block-variation-picker__variations .components-button:hover,.block-editor-block-variation-picker__skip .components-button:hover,.wp-block-group-placeholder__variations .components-button:hover{background:none!important}.block-editor-block-variation-picker__variations .components-button:hover svg,.block-editor-block-variation-picker__skip .components-button:hover svg,.wp-block-group-placeholder__variations .components-button:hover svg{fill:var(--wp-admin-theme-color)!important}.block-editor-block-variation-picker__variations>li,.block-editor-block-variation-picker__skip>li,.wp-block-group-placeholder__variations>li{width:auto;display:flex;flex-direction:column;align-items:center;gap:4px}.block-editor-button-block-appender{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:auto;color:#1e1e1e;box-shadow:inset 0 0 0 1px #1e1e1e}.block-editor-button-block-appender.components-button.components-button{padding:12px}.is-dark-theme .block-editor-button-block-appender{color:#ffffffa6;box-shadow:inset 0 0 0 1px #ffffffa6}.block-editor-button-block-appender:hover{color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color)}.block-editor-button-block-appender:active{color:#000}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child,.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child{pointer-events:none}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after,.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:after,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:after{content:"";position:absolute;inset:0;pointer-events:none;border:1px dashed currentColor}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter,.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter{opacity:0}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter:focus-within,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter:focus-within,.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter:focus-within,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter:focus-within{opacity:1}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over:after,.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over:after,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over:after{border:none}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over .block-editor-inserter,.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over .block-editor-inserter,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over .block-editor-inserter{visibility:visible}.block-editor-block-list__block:not(.is-selected)>.block-editor-block-list__block>.block-list-appender:only-child:after{border:none}.block-list-appender:only-child.is-drag-over .block-editor-button-block-appender{background-color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px #ffffffa6;color:#ffffffa6;transition:background-color .2s ease-in-out}@media (prefers-reduced-motion: reduce){.block-list-appender:only-child.is-drag-over .block-editor-button-block-appender{transition:none}}.block-editor-default-block-appender{clear:both;margin-left:auto;margin-right:auto;position:relative}.block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover{outline:1px solid transparent}.block-editor-default-block-appender .block-editor-default-block-appender__content{opacity:.62}:where(body .is-layout-constrained) .block-editor-default-block-appender>:first-child,:where(.wp-site-blocks) .block-editor-default-block-appender>:first-child{margin-block-start:0;margin-block-end:0}.block-editor-default-block-appender .components-drop-zone__content-icon{display:none}.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;color:#fff;padding:0;min-width:24px;height:24px}.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon:hover{color:#fff;background:var(--wp-admin-theme-color)}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{position:absolute;top:0;right:0;line-height:0}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter:disabled,.block-editor-default-block-appender .block-editor-inserter:disabled{display:none}.block-editor-block-list__block .block-list-appender{position:absolute;list-style:none;padding:0;z-index:2;bottom:0;right:0}.block-editor-block-list__block .block-list-appender.block-list-appender{margin:0;line-height:0}.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender{height:24px}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{flex-direction:row;box-shadow:none;height:24px;width:24px;min-width:24px;display:none;padding:0!important;background:#1e1e1e;color:#fff}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle:hover{color:#fff;background:var(--wp-admin-theme-color)}.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender__content{display:none}.block-editor-block-list__block .block-list-appender:only-child{position:relative;right:auto;align-self:center;list-style:none;line-height:inherit}.block-editor-block-list__block .block-list-appender:only-child .block-editor-default-block-appender__content{display:block}.block-editor-block-list__block.is-selected .block-editor-block-list__layout>.block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block.is-selected .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle,.block-editor-block-list__block.is-selected>.block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block.is-selected>.block-list-appender .block-list-appender__toggle{display:flex}.block-editor-default-block-appender__content{cursor:text}.block-editor-iframe__body{position:relative}.block-editor-iframe__container{width:100%;height:100%;overflow-x:hidden}.block-editor-iframe__scale-container{width:100%;height:100%;display:flex}.block-editor-iframe__scale-container.is-zoomed-out{width:var(--wp-block-editor-iframe-zoom-out-prev-container-width, 100vw);margin-left:calc(-1 * (var(--wp-block-editor-iframe-zoom-out-prev-container-width, 100vw) - var(--wp-block-editor-iframe-zoom-out-container-width, 100vw)) / 2)}.block-editor-iframe__html{border:0 solid #ddd;transform-origin:top center;transition:all .5s cubic-bezier(.65,0,.45,1)}@media (prefers-reduced-motion: reduce){.block-editor-iframe__html{transition-duration:0s;transition-delay:0s}}.block-editor-iframe__html.is-zoomed-out{transform:scale(var(--wp-block-editor-iframe-zoom-out-scale));background-color:#ddd;border:calc(var(--wp-block-editor-iframe-zoom-out-frame-size) / var(--wp-block-editor-iframe-zoom-out-scale)) solid #ddd;margin-bottom:calc(-1 * calc(calc(var(--wp-block-editor-iframe-zoom-out-content-height) * (1 - var(--wp-block-editor-iframe-zoom-out-scale))) + calc(2 * var(--wp-block-editor-iframe-zoom-out-frame-size)) + 2px))}.block-editor-iframe__html.is-zoomed-out body{min-height:calc((var(--wp-block-editor-iframe-zoom-out-inner-height) - calc(2 * var(--wp-block-editor-iframe-zoom-out-frame-size))) / var(--wp-block-editor-iframe-zoom-out-scale));display:flex;flex-direction:column}.block-editor-iframe__html.is-zoomed-out body>.is-root-container:not(.wp-block-post-content){flex:1;display:flex;flex-direction:column;height:100%}.block-editor-iframe__html.is-zoomed-out body>.is-root-container:not(.wp-block-post-content)>main{flex:1}.block-editor-block-list__layout.has-overlay:after{content:"";position:absolute;inset:0;z-index:60}.block-editor-media-placeholder__url-input-form{display:flex}.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:100%;min-width:200px;flex-grow:1;border:none;border-radius:0;margin:2px}@media (min-width: 600px){.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:300px}}.block-editor-media-placeholder__url-input-submit-button{flex-shrink:1}.block-editor-media-placeholder__cancel-button.is-link{margin:1em;display:block}.block-editor-media-placeholder.is-appender{min-height:0}.block-editor-media-placeholder.is-appender:hover{cursor:pointer;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-plain-text{box-shadow:none;font-family:inherit;font-size:inherit;color:inherit;line-height:inherit;border:none;padding:0;margin:0;width:100%}.rich-text:focus [data-rich-text-format-boundary]{border-radius:2px}.block-editor-rich-text__editable>p:first-child{margin-top:0}figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]:before{opacity:.8}[data-rich-text-script]{display:inline}[data-rich-text-script]:before{content:"";background:#ff0}.block-editor-warning{align-items:center;display:flex;flex-wrap:wrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:1em;border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.block-editor-warning .block-editor-warning__message{line-height:1.4;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;color:#1e1e1e;margin:0}.block-editor-warning p.block-editor-warning__message.block-editor-warning__message{min-height:auto}.block-editor-warning .block-editor-warning__contents{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;align-items:baseline;width:100%;gap:12px}.block-editor-warning .block-editor-warning__actions{align-items:center;display:flex;gap:8px}.components-popover.block-editor-warning__dropdown{z-index:99998}body.admin-color-light{--wp-admin-theme-color: #0085ba;--wp-admin-theme-color--rgb: 0, 133, 186;--wp-admin-theme-color-darker-10: #0073a1;--wp-admin-theme-color-darker-10--rgb: 0, 115, 161;--wp-admin-theme-color-darker-20: #006187;--wp-admin-theme-color-darker-20--rgb: 0, 97, 135;--wp-admin-border-width-focus: 2px}@media (min-resolution: 192dpi){body.admin-color-light{--wp-admin-border-width-focus: 1.5px}}body.admin-color-modern{--wp-admin-theme-color: #3858e9;--wp-admin-theme-color--rgb: 56, 88, 233;--wp-admin-theme-color-darker-10: #2145e6;--wp-admin-theme-color-darker-10--rgb: 33, 69, 230;--wp-admin-theme-color-darker-20: #183ad6;--wp-admin-theme-color-darker-20--rgb: 24, 58, 214;--wp-admin-border-width-focus: 2px}@media (min-resolution: 192dpi){body.admin-color-modern{--wp-admin-border-width-focus: 1.5px}}body.admin-color-blue{--wp-admin-theme-color: #096484;--wp-admin-theme-color--rgb: 9, 100, 132;--wp-admin-theme-color-darker-10: #07526c;--wp-admin-theme-color-darker-10--rgb: 7, 82, 108;--wp-admin-theme-color-darker-20: #064054;--wp-admin-theme-color-darker-20--rgb: 6, 64, 84;--wp-admin-border-width-focus: 2px}@media (min-resolution: 192dpi){body.admin-color-blue{--wp-admin-border-width-focus: 1.5px}}body.admin-color-coffee{--wp-admin-theme-color: #46403c;--wp-admin-theme-color--rgb: 70, 64, 60;--wp-admin-theme-color-darker-10: #383330;--wp-admin-theme-color-darker-10--rgb: 56, 51, 48;--wp-admin-theme-color-darker-20: #2b2724;--wp-admin-theme-color-darker-20--rgb: 43, 39, 36;--wp-admin-border-width-focus: 2px}@media (min-resolution: 192dpi){body.admin-color-coffee{--wp-admin-border-width-focus: 1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color: #523f6d;--wp-admin-theme-color--rgb: 82, 63, 109;--wp-admin-theme-color-darker-10: #46365d;--wp-admin-theme-color-darker-10--rgb: 70, 54, 93;--wp-admin-theme-color-darker-20: #3a2c4d;--wp-admin-theme-color-darker-20--rgb: 58, 44, 77;--wp-admin-border-width-focus: 2px}@media (min-resolution: 192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus: 1.5px}}body.admin-color-midnight{--wp-admin-theme-color: #e14d43;--wp-admin-theme-color--rgb: 225, 77, 67;--wp-admin-theme-color-darker-10: #dd382d;--wp-admin-theme-color-darker-10--rgb: 221, 56, 45;--wp-admin-theme-color-darker-20: #d02c21;--wp-admin-theme-color-darker-20--rgb: 208, 44, 33;--wp-admin-border-width-focus: 2px}@media (min-resolution: 192dpi){body.admin-color-midnight{--wp-admin-border-width-focus: 1.5px}}body.admin-color-ocean{--wp-admin-theme-color: #627c83;--wp-admin-theme-color--rgb: 98, 124, 131;--wp-admin-theme-color-darker-10: #576e74;--wp-admin-theme-color-darker-10--rgb: 87, 110, 116;--wp-admin-theme-color-darker-20: #4c6066;--wp-admin-theme-color-darker-20--rgb: 76, 96, 102;--wp-admin-border-width-focus: 2px}@media (min-resolution: 192dpi){body.admin-color-ocean{--wp-admin-border-width-focus: 1.5px}}body.admin-color-sunrise{--wp-admin-theme-color: #dd823b;--wp-admin-theme-color--rgb: 221, 130, 59;--wp-admin-theme-color-darker-10: #d97426;--wp-admin-theme-color-darker-10--rgb: 217, 116, 38;--wp-admin-theme-color-darker-20: #c36922;--wp-admin-theme-color-darker-20--rgb: 195, 105, 34;--wp-admin-border-width-focus: 2px}@media (min-resolution: 192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus: 1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-right:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;margin:0}@media (min-width: 782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-right:12px;gap:8px}.interface-complementary-area-header .interface-complementary-area-header__title{margin:0}.interface-complementary-area-header .components-button.has-icon{display:none;margin-left:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-left:0}@media (min-width: 782px){.interface-complementary-area-header .components-button.has-icon{display:flex}}.interface-complementary-area{background:#fff;color:#1e1e1e;height:100%;overflow:auto}@media (min-width: 600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width: 782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs{top:48px}@media (min-width: 782px){.interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs{top:0}}.interface-complementary-area p:not(.components-base-control__help,.components-form-token-field__help){margin-top:0}.interface-complementary-area h2{font-size:13px;font-weight:500;color:#1e1e1e;margin-bottom:1.5em}.interface-complementary-area h3{font-size:11px;text-transform:uppercase;font-weight:500;color:#1e1e1e;margin-bottom:1.5em}.interface-complementary-area hr{border-top:none;border-bottom:1px solid #f0f0f0;margin:1.5em 0}.interface-complementary-area div.components-toolbar-group,.interface-complementary-area div.components-toolbar{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{inset:auto 10px 10px auto}.interface-complementary-area__fill{height:100%}@media (min-width: 782px){body.js.is-fullscreen-mode{margin-top:-32px;height:calc(100% + 32px)}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-left:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width: 782px){html.interface-interface-skeleton__html-container:not(:has(.is-zoom-out)){position:initial;width:initial}}.interface-interface-skeleton{display:flex;flex-direction:row;height:auto;max-height:100%;position:fixed;inset:46px 0 0}@media (min-width: 783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex-direction:column;flex:0 1 100%;overflow:hidden}.interface-interface-skeleton{left:0}@media (min-width: 783px){.interface-interface-skeleton{left:160px}}@media (min-width: 783px){.auto-fold .interface-interface-skeleton{left:36px}}@media (min-width: 961px){.auto-fold .interface-interface-skeleton{left:160px}}.folded .interface-interface-skeleton{left:0}@media (min-width: 783px){.folded .interface-interface-skeleton{left:36px}}body.is-fullscreen-mode .interface-interface-skeleton{left:0!important}.interface-interface-skeleton__body{position:relative;flex-grow:1;display:flex;overflow:auto;overscroll-behavior-y:none}@media (min-width: 782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{flex-grow:1;display:flex;flex-direction:column;overflow:auto;z-index:20}@media (min-width: 782px){.interface-interface-skeleton__content{z-index:auto}}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{flex-shrink:0;position:absolute;z-index:100000;top:0;left:0;bottom:0;background:#fff;color:#1e1e1e;width:auto}@media (min-width: 782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important}}.interface-interface-skeleton__sidebar{border-top:1px solid #e0e0e0;overflow:hidden}@media (min-width: 782px){.interface-interface-skeleton__sidebar{box-shadow:-1px 0 #0002;outline:1px solid transparent}}.interface-interface-skeleton__secondary-sidebar{border-top:1px solid #e0e0e0;right:0}@media (min-width: 782px){.interface-interface-skeleton__secondary-sidebar{box-shadow:1px 0 #0002;outline:1px solid transparent}}.interface-interface-skeleton__header{flex-shrink:0;height:auto;box-shadow:0 1px #0002;z-index:30;color:#1e1e1e;outline:1px solid transparent}.interface-interface-skeleton__footer{height:auto;flex-shrink:0;border-top:1px solid #e0e0e0;color:#1e1e1e;position:absolute;bottom:0;left:0;width:100%;background-color:#fff;z-index:90;display:none}@media (min-width: 782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{z-index:30;display:flex;background:#fff;height:24px;align-items:center;font-size:13px;padding:0 18px}.interface-interface-skeleton__actions{z-index:100000;position:fixed!important;inset:-9999em 0 auto auto;color:#1e1e1e;background:#fff;width:100vw}@media (min-width: 782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{top:auto;bottom:0}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width: 782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-left:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:0}}.interface-pinned-items{display:flex;gap:8px}.interface-pinned-items .components-button{display:none;margin:0}.interface-pinned-items .components-button[aria-controls="edit-post:document"],.interface-pinned-items .components-button[aria-controls="edit-post:block"],.interface-pinned-items .components-button[aria-controls="edit-site:template"],.interface-pinned-items .components-button[aria-controls="edit-site:block-inspector"]{display:flex}.interface-pinned-items .components-button svg{max-width:24px;max-height:24px}@media (min-width: 600px){.interface-pinned-items .components-button{display:flex}}.editor-autocompleters__user .editor-autocompleters__no-avatar:before{font: 20px/1 dashicons;content:"";margin-right:5px;vertical-align:middle}.editor-autocompleters__user .editor-autocompleters__user-avatar{margin-right:8px;flex-grow:0;flex-shrink:0;max-width:none;width:24px;height:24px}.editor-autocompleters__user .editor-autocompleters__user-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:200px;flex-shrink:0;flex-grow:1}.editor-autocompleters__user .editor-autocompleters__user-slug{margin-left:8px;color:#757575;white-space:nowrap;text-overflow:ellipsis;overflow:none;max-width:100px;flex-grow:0;flex-shrink:0}.editor-autocompleters__user:hover .editor-autocompleters__user-slug{color:var(--wp-admin-theme-color)}.editor-block-manager__no-results{font-style:italic;padding:24px 0;text-align:center}.editor-block-manager__search{margin:16px 0}.editor-block-manager__disabled-blocks-count{border:1px solid #ddd;border-width:1px 0;box-shadow:-32px 0 #fff,32px 0 #fff;padding:8px;background-color:#fff;text-align:center;position:sticky;top:-5px;z-index:2}.editor-block-manager__disabled-blocks-count~.editor-block-manager__results .editor-block-manager__category-title{top:31px}.editor-block-manager__disabled-blocks-count .is-link{margin-left:12px}.editor-block-manager__category{margin:0 0 24px}.editor-block-manager__category-title{position:sticky;top:-4px;padding:16px 0;background-color:#fff;z-index:1}.editor-block-manager__category-title .components-checkbox-control__label{font-weight:600}.editor-block-manager__checklist{margin-top:0}.editor-block-manager__category-title,.editor-block-manager__checklist-item{border-bottom:1px solid #ddd}.editor-block-manager__checklist-item{display:flex;justify-content:space-between;align-items:center;margin-bottom:0;padding:8px 0 8px 16px}.components-modal__content .editor-block-manager__checklist-item.components-checkbox-control__input-container{margin:0 8px}.editor-block-manager__checklist-item .block-editor-block-icon{margin-right:10px;fill:#1e1e1e}.editor-block-manager__results{border-top:1px solid #ddd}.editor-block-manager__disabled-blocks-count+.editor-block-manager__results{border-top-width:0}.editor-collapsible-block-toolbar{overflow:hidden;display:flex;align-items:center;height:60px}.editor-collapsible-block-toolbar .block-editor-block-contextual-toolbar{border-bottom:0;height:100%;background:transparent}.editor-collapsible-block-toolbar .block-editor-block-toolbar{height:100%;padding-top:15px}.editor-collapsible-block-toolbar .block-editor-block-toolbar .components-button:not(.block-editor-block-mover-button){height:32px}.editor-collapsible-block-toolbar:after{content:"";width:1px;height:24px;background-color:#ddd;margin-right:7px}.editor-collapsible-block-toolbar .components-toolbar-group,.editor-collapsible-block-toolbar .components-toolbar{border-right:none;position:relative}.editor-collapsible-block-toolbar .components-toolbar-group:after,.editor-collapsible-block-toolbar .components-toolbar:after{content:"";width:1px;height:24px;background-color:#ddd;top:4px;position:absolute;right:-1px}.editor-collapsible-block-toolbar .components-toolbar-group .components-toolbar-group.components-toolbar-group:after,.editor-collapsible-block-toolbar .components-toolbar .components-toolbar-group.components-toolbar-group:after{display:none}.editor-collapsible-block-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button{height:32px;overflow:visible}@media (min-width: 600px){.editor-collapsible-block-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{height:40px;position:relative;top:-5px}}.editor-collapsible-block-toolbar.is-collapsed{display:none}.editor-create-template-part-modal{z-index:1000001}.editor-create-template-part-modal__area-radio-group{width:100%;border:1px solid #757575;border-radius:2px}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio{display:block;width:100%;height:100%;text-align:left;padding:12px}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-secondary:hover,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-primary:hover{margin:0;background-color:inherit;border-bottom:1px solid #757575;border-radius:0}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio:not(:focus),.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-secondary:hover:not(:focus),.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-primary:hover:not(:focus){box-shadow:none}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio:focus,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-secondary:hover:focus,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-primary:hover:focus{border-bottom:1px solid #fff}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio:last-of-type,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-secondary:hover:last-of-type,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-primary:hover:last-of-type{border-bottom:none}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio:not(:hover),.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio[aria-checked=true]{color:#1e1e1e;cursor:auto}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio:not(:hover) .editor-create-template-part-modal__option-label div,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio[aria-checked=true] .editor-create-template-part-modal__option-label div{color:#949494}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio .editor-create-template-part-modal__option-label{padding-top:4px;white-space:normal}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio .editor-create-template-part-modal__option-label div{padding-top:4px;font-size:12px}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio .editor-create-template-part-modal__checkbox{margin-left:auto;min-width:24px}.editor-content-only-settings-menu__description{padding:8px;min-width:235px}.editor-blog-title-dropdown__content .components-popover__content{min-width:320px;padding:16px}.editor-document-bar{display:flex;align-items:center;height:32px;justify-content:space-between;min-width:0;background:#f0f0f0;border-radius:4px;width:min(100%,450px)}.editor-document-bar:hover{background-color:#e0e0e0}.editor-document-bar .components-button{border-radius:4px;transition:all .1s ease-out}@media (prefers-reduced-motion: reduce){.editor-document-bar .components-button{transition-duration:0s;transition-delay:0s}}.editor-document-bar .components-button:hover{background:#e0e0e0}.editor-document-bar__command{flex-grow:1;color:var(--wp-block-synced-color);overflow:hidden}.editor-document-bar__title{flex:1;overflow:hidden;color:#1e1e1e;gap:4px;display:flex;justify-content:center;align-items:center}@media (min-width: 782px){.editor-document-bar__title{padding-left:24px}}.editor-document-bar.is-global .editor-document-bar__title{color:var(--wp-block-synced-color)}.editor-document-bar__title .block-editor-block-icon{min-width:24px;flex-shrink:0}.editor-document-bar__title h1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:70%;color:currentColor}.editor-document-bar__shortcut{color:#2f2f2f;min-width:24px;display:none}@media (min-width: 782px){.editor-document-bar__shortcut{display:initial}}.editor-document-bar__back.components-button.has-icon.has-text{min-width:36px;flex-shrink:0;color:#757575;gap:0;z-index:1;position:absolute}.editor-document-bar__back.components-button.has-icon.has-text:hover{color:#1e1e1e;background-color:transparent}.document-outline{margin:20px 0}.document-outline ul{margin:0;padding:0}.document-outline__item{display:flex;margin:4px 0}.document-outline__item a{text-decoration:none}.document-outline__item .document-outline__emdash:before{color:#ddd;margin-right:4px}.document-outline__item.is-h2 .document-outline__emdash:before{content:"—"}.document-outline__item.is-h3 .document-outline__emdash:before{content:"——"}.document-outline__item.is-h4 .document-outline__emdash:before{content:"———"}.document-outline__item.is-h5 .document-outline__emdash:before{content:"————"}.document-outline__item.is-h6 .document-outline__emdash:before{content:"—————"}.document-outline__button{cursor:pointer;background:none;border:none;display:flex;align-items:flex-start;margin:0 0 0 -1px;padding:2px 5px 2px 1px;color:#1e1e1e;text-align:left;border-radius:2px}.document-outline__button:disabled{cursor:default}.document-outline__button:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.document-outline__level{background:#ddd;color:#1e1e1e;border-radius:3px;font-size:13px;padding:1px 6px;margin-right:4px}.is-invalid .document-outline__level{background:#f0b849}.document-outline__item-content{padding:1px 0}.editor-document-outline.has-no-headings{text-align:center;color:#757575}.editor-document-outline.has-no-headings>svg{margin-top:28px}.editor-document-outline.has-no-headings>p{padding-left:32px;padding-right:32px}.editor-document-tools{display:inline-flex;align-items:center}.editor-document-tools .editor-document-tools__left>.editor-history__redo,.editor-document-tools .editor-document-tools__left>.editor-history__undo{display:none}@media (min-width: 782px){.editor-document-tools .editor-document-tools__left>.editor-history__redo,.editor-document-tools .editor-document-tools__left>.editor-history__undo{display:inline-flex}}.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle{display:inline-flex}.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle svg{transition:transform cubic-bezier(.165,.84,.44,1) .2s}@media (prefers-reduced-motion: reduce){.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle svg{transition-duration:0s;transition-delay:0s}}.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle.is-pressed svg{transform:rotate(45deg)}.editor-document-tools .block-editor-list-view{display:none}@media (min-width: 600px){.editor-document-tools .block-editor-list-view{display:flex}}.editor-document-tools .editor-document-tools__left>.components-button.has-icon,.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon{height:32px;min-width:32px;padding:4px}.editor-document-tools .editor-document-tools__left>.components-button.has-icon.is-pressed,.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.editor-document-tools .editor-document-tools__left>.components-button.has-icon:focus:not(:disabled),.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.editor-document-tools .editor-document-tools__left>.components-button.has-icon:before,.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon:before{display:none}.editor-document-tools__left{display:inline-flex;align-items:center;gap:8px}.editor-document-tools__left:not(:last-child){margin-inline-end:8px}.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle.has-icon{min-width:32px;width:32px;height:32px;padding:0}.show-icon-labels .editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle.has-icon{width:auto;height:32px;padding:0 8px}.show-icon-labels .editor-document-tools__left>*+*{margin-left:8px}.editor-editor-interface .entities-saved-states__panel-header{height:61px}.editor-editor-interface .interface-interface-skeleton__content{isolation:isolate}.editor-visual-editor{flex:1 0 auto}.components-editor-notices__dismissible,.components-editor-notices__pinned{position:relative;left:0;top:0;right:0;color:#1e1e1e}.components-editor-notices__dismissible .components-notice,.components-editor-notices__pinned .components-notice{box-sizing:border-box;border-bottom:1px solid rgba(0,0,0,.2);padding:0 12px;min-height:60px}.components-editor-notices__dismissible .components-notice .components-notice__dismiss,.components-editor-notices__pinned .components-notice .components-notice__dismiss{margin-top:12px}.entities-saved-states__panel-header{box-sizing:border-box;background:#fff;padding-left:8px;padding-right:8px;height:60px;border-bottom:1px solid #ddd}.entities-saved-states__text-prompt{padding:16px 16px 4px}.entities-saved-states__text-prompt .entities-saved-states__text-prompt--header{display:block;margin-bottom:12px}.entities-saved-states__description-heading{font-size:13px}.entities-saved-states__changes{color:#757575;font-size:12px;margin:8px 16px 0;list-style:disc}.entities-saved-states__changes li{margin-bottom:4px}.editor-error-boundary{margin:60px auto auto;max-width:780px;padding:20px;box-shadow:0 .7px 1px #00000026,0 2.7px 3.8px -.2px #00000026,0 5.5px 7.8px -.3px #00000026,.1px 11.5px 16.4px -.5px #00000026}.editor-header{height:60px;background:#fff;display:grid;grid-auto-flow:row;grid-template:auto/60px minmax(0,max-content) minmax(min-content,1fr) 60px;align-items:center;max-width:100vw;justify-content:space-between}.editor-header:has(>.editor-header__center){grid-template:auto/60px min-content 1fr min-content 60px}@media (min-width: 782px){.editor-header:has(>.editor-header__center){grid-template:auto/60px minmax(min-content,1fr) 2fr minmax(min-content,1fr) 60px}}@media (min-width: 480px){.editor-header{gap:16px}}@media (min-width: 280px){.editor-header{flex-wrap:nowrap}}.editor-header__toolbar{grid-column:1/3;display:flex;min-width:0;align-items:center;clip-path:inset(-2px)}.editor-header__toolbar>:first-child{margin-inline:16px 0}.editor-header__back-button+.editor-header__toolbar{grid-column:2/3}@media (min-width: 480px){.editor-header__back-button+.editor-header__toolbar>:first-child{margin-inline:0}}@media (min-width: 480px){.editor-header__toolbar{clip-path:none}}.editor-header__toolbar .table-of-contents{display:none}@media (min-width: 600px){.editor-header__toolbar .table-of-contents{display:block}}.editor-header__toolbar .editor-collapsible-block-toolbar{margin-inline:8px 0}.editor-header__toolbar .editor-collapsible-block-toolbar.is-collapsed~.editor-collapsible-block-toolbar__toggle{margin-inline:8px 0}.editor-header__center{grid-column:3/4;display:flex;justify-content:center;align-items:center;min-width:0;clip-path:inset(-2px)}@media (max-width: 479px){.editor-header__center>:first-child{margin-inline-start:8px}.editor-header__center>:last-child{margin-inline-end:8px}}.editor-header__settings{grid-column:3/-1;justify-self:end;display:inline-flex;align-items:center;flex-wrap:nowrap;padding-right:4px;gap:8px}.editor-header:has(>.editor-header__center) .editor-header__settings{grid-column:4/-1}@media (min-width: 600px){.editor-header__settings{padding-right:8px}}.show-icon-labels.interface-pinned-items .components-button.has-icon,.show-icon-labels .editor-header .components-button.has-icon{width:auto}.show-icon-labels.interface-pinned-items .components-button.has-icon svg,.show-icon-labels .editor-header .components-button.has-icon svg{display:none}.show-icon-labels.interface-pinned-items .components-button.has-icon:after,.show-icon-labels .editor-header .components-button.has-icon:after{content:attr(aria-label)}.show-icon-labels.interface-pinned-items .components-button.has-icon[aria-disabled=true],.show-icon-labels .editor-header .components-button.has-icon[aria-disabled=true]{background-color:transparent}.show-icon-labels.interface-pinned-items .is-tertiary:active,.show-icon-labels .editor-header .is-tertiary:active{box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);background-color:transparent}.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle svg,.show-icon-labels .editor-header .components-button.has-icon.button-toggle svg{display:block}.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle:after,.show-icon-labels .editor-header .components-button.has-icon.button-toggle:after{content:none}.show-icon-labels.interface-pinned-items .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels .editor-header .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon{display:block}.show-icon-labels.interface-pinned-items .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button,.show-icon-labels .editor-header .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels .editor-header .interface-pinned-items .components-button{padding-left:8px;padding-right:8px}@media (min-width: 600px){.show-icon-labels.interface-pinned-items .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button,.show-icon-labels .editor-header .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels .editor-header .interface-pinned-items .components-button{padding-left:12px;padding-right:12px}}.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels .editor-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .editor-header .editor-post-saved-state.editor-post-saved-state:after{content:none}.show-icon-labels .editor-header__toolbar .block-editor-block-mover{border-left:none}.show-icon-labels .editor-header__toolbar .block-editor-block-mover:before{content:"";width:1px;height:24px;background-color:#ddd;margin-top:4px;margin-left:8px}.show-icon-labels .editor-header__toolbar .block-editor-block-mover .block-editor-block-mover__move-button-container:before{width:calc(100% - 24px);background:#ddd;left:calc(50% + 1px)}.show-icon-labels.interface-pinned-items{padding:6px 12px 12px;margin:0 -12px;border-bottom:1px solid #ccc;display:block}.show-icon-labels.interface-pinned-items>.components-button.has-icon{margin:0;padding:6px 6px 6px 8px;width:14.625rem;justify-content:flex-start}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=true] svg{display:block;max-width:24px}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=false]{padding-left:40px}.show-icon-labels.interface-pinned-items>.components-button.has-icon svg{margin-right:8px}@media (min-width: 480px){.editor-header__post-preview-button{display:none}}.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header{border-bottom:none}.editor-editor-interface.is-distraction-free .editor-header{background-color:#fff;width:100%}@media (min-width: 782px){.editor-editor-interface.is-distraction-free .editor-header{border-bottom:1px solid #e0e0e0;position:absolute}}.editor-editor-interface.is-distraction-free .editor-header>.edit-post-header__settings>.edit-post-header__post-preview-button{visibility:hidden}.editor-editor-interface.is-distraction-free .editor-header>.editor-header__toolbar .editor-document-tools__document-overview-toggle,.editor-editor-interface.is-distraction-free .editor-header>.editor-header__settings>.editor-preview-dropdown,.editor-editor-interface.is-distraction-free .editor-header>.editor-header__settings>.interface-pinned-items{display:none}.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header:focus-within{opacity:1!important}.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header:focus-within div{transform:translate(0) translateZ(0)!important}.editor-editor-interface.is-distraction-free .components-editor-notices__dismissible{position:absolute;z-index:35}.components-popover.more-menu-dropdown__content{z-index:99998}.editor-inserter-sidebar{box-sizing:border-box;height:100%;display:flex;flex-direction:column}.editor-inserter-sidebar *,.editor-inserter-sidebar *:before,.editor-inserter-sidebar *:after{box-sizing:inherit}.editor-inserter-sidebar__content{height:100%}.editor-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.editor-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.editor-keyboard-shortcut-help-modal__shortcut{display:flex;align-items:baseline;padding:.6rem 0;border-top:1px solid #ddd;margin-bottom:0}.editor-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.editor-keyboard-shortcut-help-modal__shortcut:empty{display:none}.editor-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 0 0 1rem;text-align:right}.editor-keyboard-shortcut-help-modal__shortcut-description{flex:1;margin:0}.editor-keyboard-shortcut-help-modal__shortcut-key-combination{display:block;background:none;margin:0;padding:0}.editor-keyboard-shortcut-help-modal__shortcut-key-combination+.editor-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.editor-keyboard-shortcut-help-modal__shortcut-key{padding:.25rem .5rem;border-radius:8%;margin:0 .2rem}.editor-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 0 0 .2rem}.editor-list-view-sidebar{height:100%}@media (min-width: 782px){.editor-list-view-sidebar{width:350px}}.editor-list-view-sidebar__list-view-panel-content,.editor-list-view-sidebar__list-view-container>.document-outline{height:100%;scrollbar-width:thin;scrollbar-gutter:stable both-edges;scrollbar-color:transparent transparent;will-change:transform;overflow:auto;scrollbar-gutter:auto;padding:4px}.editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar,.editor-list-view-sidebar__list-view-container>.document-outline::-webkit-scrollbar{width:12px;height:12px}.editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar-track,.editor-list-view-sidebar__list-view-container>.document-outline::-webkit-scrollbar-track{background-color:transparent}.editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-container>.document-outline::-webkit-scrollbar-thumb{background-color:transparent;border-radius:8px;border:3px solid transparent;background-clip:padding-box}.editor-list-view-sidebar__list-view-panel-content:hover::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content:focus::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content:focus-within::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-container>.document-outline:hover::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-container>.document-outline:focus::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-container>.document-outline:focus-within::-webkit-scrollbar-thumb{background-color:#949494}.editor-list-view-sidebar__list-view-panel-content:hover,.editor-list-view-sidebar__list-view-panel-content:focus,.editor-list-view-sidebar__list-view-panel-content:focus-within,.editor-list-view-sidebar__list-view-container>.document-outline:hover,.editor-list-view-sidebar__list-view-container>.document-outline:focus,.editor-list-view-sidebar__list-view-container>.document-outline:focus-within{scrollbar-color:#949494 transparent}@media (hover: none){.editor-list-view-sidebar__list-view-panel-content,.editor-list-view-sidebar__list-view-container>.document-outline{scrollbar-color:#949494 transparent}}.editor-list-view-sidebar__list-view-container{display:flex;flex-direction:column;height:100%}.editor-list-view-sidebar__tab-panel{height:100%}.editor-list-view-sidebar__outline{display:flex;flex-direction:column;gap:8px;border-bottom:1px solid #ddd;padding:16px}.editor-list-view-sidebar__outline>div>span:first-child{width:90px;display:inline-block}.editor-list-view-sidebar__outline>div>span{font-size:12px;line-height:1.4;color:#757575}.editor-post-parent__panel,.editor-post-order__panel{padding-top:8px}.editor-post-parent__panel .editor-post-panel__row-control>div,.editor-post-order__panel .editor-post-panel__row-control>div{width:100%}.editor-post-parent__panel-dialog .editor-post-parent,.editor-post-parent__panel-dialog .editor-post-order,.editor-post-order__panel-dialog .editor-post-parent,.editor-post-order__panel-dialog .editor-post-order{margin:8px}.editor-post-parent__panel-dialog .components-popover__content,.editor-post-order__panel-dialog .components-popover__content{min-width:320px}.editor-post-author__panel{padding-top:8px}.editor-post-author__panel .editor-post-panel__row-control>div{width:100%}.editor-post-author__panel-dialog .editor-post-author{min-width:248px;margin:8px}.editor-action-modal{z-index:1000001}.editor-post-card-panel__content{flex-grow:1}.editor-post-card-panel__title{width:100%}.editor-post-card-panel__title.editor-post-card-panel__title{margin:0;padding:2px 0;display:flex;align-items:center;flex-wrap:wrap;column-gap:8px;row-gap:4px;word-break:break-word}.editor-post-card-panel__icon{flex:0 0 24px;width:24px;height:24px}.editor-post-card-panel__header{display:flex;justify-content:space-between}.editor-post-card-panel.has-description .editor-post-card-panel__header{margin-bottom:8px}.editor-post-card-panel__icon.is-sync{fill:var(--wp-block-synced-color)}.editor-post-card-panel__icon.is-sync+.editor-post-card-panel__title{color:var(--wp-block-synced-color)}.editor-post-card-panel__title-badge{background:#f0f0f0;color:#757575;padding:0 4px;border-radius:2px;font-size:12px;font-weight:400;flex-shrink:0;line-height:20px;display:inline-block}.editor-post-content-information{color:#757575}.editor-post-content-information .components-text{color:inherit}.editor-post-discussion__panel-dialog .editor-post-discussion{min-width:248px;margin:8px}.editor-post-discussion__panel-toggle .components-text{color:inherit}.editor-post-discussion__panel-dialog .components-popover__content{min-width:320px}.editor-post-excerpt__textarea{width:100%;margin-bottom:10px}.editor-post-excerpt__dropdown__content .components-popover__content{min-width:320px;padding:16px}.editor-post-featured-image{padding:0}.editor-post-featured-image .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.editor-post-featured-image__container{position:relative}.editor-post-featured-image__container:hover .editor-post-featured-image__actions,.editor-post-featured-image__container:focus .editor-post-featured-image__actions,.editor-post-featured-image__container:focus-within .editor-post-featured-image__actions{opacity:1}.editor-post-featured-image__container .components-drop-zone__content{border-radius:2px}.editor-post-featured-image__container:has(.editor-post-featured-image__toggle) .components-drop-zone .components-drop-zone__content-inner{display:flex;align-items:center;gap:8px}.editor-post-featured-image__container:has(.editor-post-featured-image__toggle) .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}.editor-post-featured-image__toggle,.editor-post-featured-image__preview{width:100%;padding:0;transition:all .1s ease-out;box-shadow:0 0 0 0 var(--wp-admin-theme-color);overflow:hidden;outline-offset:-1px;min-height:40px;display:flex;justify-content:center}@media (prefers-reduced-motion: reduce){.editor-post-featured-image__toggle,.editor-post-featured-image__preview{transition-duration:0s;transition-delay:0s}}.editor-post-featured-image__preview{height:auto;outline:1px solid rgba(0,0,0,.1)}.editor-post-featured-image__preview .editor-post-featured-image__preview-image{object-fit:cover;width:100%;object-position:50% 50%;aspect-ratio:2/1}.editor-post-featured-image__toggle{height:100%;line-height:20px;padding:8px 0;text-align:center;box-shadow:inset 0 0 0 1px #ccc}.editor-post-featured-image__actions{bottom:0;opacity:0;padding:8px;position:absolute;transition:opacity 50ms ease-out}@media (prefers-reduced-motion: reduce){.editor-post-featured-image__actions{transition-duration:0s;transition-delay:0s}}.editor-post-featured-image__action{-webkit-backdrop-filter:blur(16px) saturate(180%);backdrop-filter:blur(16px) saturate(180%);background:#ffffffbf;flex-grow:1;justify-content:center}[class].editor-post-format__suggestion{margin:4px 0 0}.editor-post-format__dialog .editor-post-format__dialog-content{min-width:248px;margin:8px}.editor-post-last-edited-panel{color:#757575}.editor-post-last-edited-panel .components-text{color:inherit}.editor-post-last-revision__title{width:100%;font-weight:500}.editor-post-last-revision__title.components-button.has-icon{height:100%;justify-content:space-between}.editor-post-last-revision__title.components-button.has-icon:hover,.editor-post-last-revision__title.components-button.has-icon:active{background:#f0f0f0}.editor-post-last-revision__title.components-button.has-icon:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);border-radius:0}.components-panel__body.is-opened.editor-post-last-revision__panel{padding:0;height:48px}.components-panel__body.is-opened.editor-post-last-revision__panel .editor-post-last-revision__title.components-button.components-button{padding:16px}.editor-private-post-last-revision__button{display:inline-block}.editor-post-locked-modal__buttons{margin-top:24px}.editor-post-locked-modal__avatar{border-radius:50%;margin-top:16px;min-width:initial!important}.editor-post-panel__row{width:100%;min-height:32px;justify-content:flex-start!important;align-items:flex-start!important}.editor-post-panel__row-label{width:38%;flex-shrink:0;min-height:32px;display:flex;align-items:center;padding:6px 0;line-height:20px;-webkit-hyphens:auto;hyphens:auto}.editor-post-panel__row-control{flex-grow:1;min-height:32px;display:flex;align-items:center}.editor-post-panel__row-control .components-button{max-width:100%;text-align:left;white-space:normal;text-wrap:balance;text-wrap:pretty;min-height:32px}.editor-post-panel__row-control .components-dropdown{max-width:100%}.editor-post-panel__section{padding:16px}.editor-post-publish-panel__content{min-height:calc(100% - 144px)}.editor-post-publish-panel__content>.components-spinner{display:block;margin:100px auto 0}.editor-post-publish-panel__header{background:#fff;padding-left:16px;padding-right:16px;height:61px;border-bottom:1px solid #ddd;display:flex;align-items:center;align-content:space-between}.editor-post-publish-panel__header .components-button{width:100%;justify-content:center}.editor-post-publish-panel__header .has-icon{margin-left:auto;width:auto}.components-site-card{display:flex;align-items:center;margin:16px 0}.components-site-icon{border:none;border-radius:2px;margin-right:12px;flex-shrink:0;height:36px;width:36px}.components-site-name{display:block;font-size:14px}.components-site-home{display:block;color:#757575;font-size:12px;word-break:break-word}.editor-post-publish-panel__header-publish-button,.editor-post-publish-panel__header-cancel-button{flex:1}@media (min-width: 480px){.editor-post-publish-panel__header-publish-button,.editor-post-publish-panel__header-cancel-button{max-width:160px}}.editor-post-publish-panel__header-publish-button{padding-right:4px;justify-content:center}.editor-post-publish-panel__header-cancel-button{padding-left:4px}.editor-post-publish-panel__header-published{flex-grow:1}.editor-post-publish-panel__footer{padding:16px}.components-button.editor-post-publish-panel__toggle.is-primary{display:inline-flex;align-items:center}.components-button.editor-post-publish-panel__toggle.is-primary.is-busy .dashicon{display:none}.components-button.editor-post-publish-panel__toggle.is-primary .dashicon{margin-right:-4px}.editor-post-publish-panel__link{font-weight:400;padding-left:4px}.editor-post-publish-panel__prepublish{padding:16px}.editor-post-publish-panel__prepublish strong{color:#1e1e1e}.editor-post-publish-panel__prepublish .components-panel__body{background:#fff;margin-left:-16px;margin-right:-16px}.editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend{display:none}.editor-post-publish-panel__prepublish .components-panel__body-title .components-button{align-items:flex-start;text-wrap:balance;text-wrap:pretty}.post-publish-panel__postpublish .components-panel__body{border-bottom:1px solid #e0e0e0;border-top:none}.post-publish-panel__postpublish-buttons{display:flex;align-content:space-between;flex-wrap:wrap;gap:16px}.post-publish-panel__postpublish-buttons .components-button{justify-content:center;flex:1}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address-container{display:flex;align-items:flex-end;margin-bottom:16px}.post-publish-panel__postpublish-post-address-container .post-publish-panel__postpublish-post-address{flex:1}.post-publish-panel__postpublish-post-address-container input[readonly]{padding:12px;background:#f0f0f0;border-color:#ccc;overflow:hidden;text-overflow:ellipsis;height:36px}.post-publish-panel__postpublish-post-address__copy-button-wrap{flex-shrink:0;margin-left:16px}.post-publish-panel__postpublish-header{font-weight:500}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}@media screen and (max-width: 782px){.post-publish-panel__postpublish-post-address__button-wrap .components-button{height:40px}}.editor-post-publish-panel{position:fixed;z-index:100001;background:#fff;inset:46px 0 0;overflow:auto}@media (min-width: 782px){.editor-post-publish-panel{z-index:99998;top:32px;left:auto;width:281px;border-left:1px solid #ddd;transform:translate(100%);animation:editor-post-publish-panel__slide-in-animation .1s forwards}}@media (min-width: 782px) and (prefers-reduced-motion: reduce){.editor-post-publish-panel{animation-duration:1ms;animation-delay:0s}}@media (min-width: 782px){body.is-fullscreen-mode .editor-post-publish-panel{top:0}}@media (min-width: 782px){[role=region]:focus .editor-post-publish-panel{transform:translate(0)}}@keyframes editor-post-publish-panel__slide-in-animation{to{transform:translate(0)}}.editor-post-saved-state{display:flex;align-items:center;width:28px;padding:12px 4px;color:#757575;overflow:hidden;white-space:nowrap}.editor-post-saved-state.is-saving[aria-disabled=true],.editor-post-saved-state.is-saving[aria-disabled=true]:hover,.editor-post-saved-state.is-saved[aria-disabled=true],.editor-post-saved-state.is-saved[aria-disabled=true]:hover{background:transparent;color:#757575}.editor-post-saved-state svg{display:inline-block;flex:0 0 auto;fill:currentColor;margin-right:8px}@media (min-width: 600px){.editor-post-saved-state{width:auto;padding:8px 12px;text-indent:inherit}.editor-post-saved-state svg{margin-right:0}}.editor-post-save-draft.has-text.has-icon svg{margin-right:0}.editor-post-schedule__panel-dropdown{width:100%}.editor-post-schedule__dialog .components-popover__content{min-width:320px;padding:16px}.editor-post-slug{display:flex;flex-direction:column;align-items:stretch}.editor-post-status{max-width:100%}.editor-post-status.is-read-only{padding:6px 12px}.editor-change-status__password-fieldset,.editor-change-status__publish-date-wrapper{border-top:1px solid #e0e0e0;padding-top:16px}.editor-change-status__content .components-popover__content{min-width:320px;padding:16px}.editor-change-status__content .editor-change-status__password-legend{padding:0;margin-bottom:8px}.editor-change-status__content p.components-base-control__help:has(.components-checkbox-control__help){margin-top:4px}.editor-post-sticky__checkbox-control{border-top:1px solid #e0e0e0;padding-top:16px}.editor-post-sync-status__value{padding:6px 0 6px 12px}.editor-post-taxonomies__hierarchical-terms-list{max-height:14em;overflow:auto;margin-left:-6px;padding-left:6px;margin-top:-6px;padding-top:6px}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-choice:last-child{margin-bottom:4px}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-top:8px;margin-left:16px}.editor-post-taxonomies__flat-term-most-used .editor-post-taxonomies__flat-term-most-used-label{margin-bottom:4px}.editor-post-taxonomies__flat-term-most-used-list{margin:0}.editor-post-taxonomies__flat-term-most-used-list li{display:inline-block;margin-right:8px}.editor-post-taxonomies__flat-term-most-used-list .components-button{font-size:12px}.editor-post-template__swap-template-modal{z-index:1000001}.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px;padding-top:2px}@media (min-width: 782px){.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width: 1280px){.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list{column-count:4}}.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.editor-post-template__dropdown .components-popover__content{min-width:240px}.editor-post-template__dropdown .components-button.is-pressed,.editor-post-template__dropdown .components-button.is-pressed:hover{background:inherit;color:inherit}@media (min-width: 782px){.editor-post-template__create-form{width:320px}}.editor-post-template__classic-theme-dropdown{padding:8px}textarea.editor-post-text-editor{border:1px solid #949494;border-radius:0;display:block;margin:0;width:100%;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;line-height:2.4;min-height:200px;transition:border .1s ease-out,box-shadow .1s linear;padding:16px;font-size:16px!important}@media (prefers-reduced-motion: reduce){textarea.editor-post-text-editor{transition-duration:0s;transition-delay:0s}}@media (min-width: 600px){textarea.editor-post-text-editor{padding:24px}}@media (min-width: 600px){textarea.editor-post-text-editor{font-size:15px!important}}textarea.editor-post-text-editor:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);position:relative}textarea.editor-post-text-editor::-webkit-input-placeholder{color:#1e1e1e9e}textarea.editor-post-text-editor::-moz-placeholder{color:#1e1e1e9e;opacity:1}textarea.editor-post-text-editor:-ms-input-placeholder{color:#1e1e1e9e}.editor-post-title.is-raw-text{margin-bottom:24px;margin-top:2px;max-width:none}.editor-post-url__panel-dropdown{width:100%}.editor-post-url__panel-dialog .editor-post-url{min-width:248px;margin:8px}.editor-post-url__link{direction:ltr;word-break:break-word;margin-top:4px;color:#757575}.editor-post-url__link-slug{font-weight:600}.editor-post-url__input input.components-input-control__input{padding-inline-start:0!important}.editor-post-url__panel-toggle{word-break:break-word}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border:1px solid #949494;font-size:16px;line-height:normal;border:1px solid #1e1e1e;margin-right:12px;transition:none;border-radius:50%;width:24px;height:24px;min-width:24px;max-width:24px;position:relative;margin-top:2px}@media (prefers-reduced-motion: reduce){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{transition-duration:0s;transition-delay:0s}}@media (min-width: 600px){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{font-size:13px;line-height:normal}}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]::-webkit-input-placeholder{color:#1e1e1e9e}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]::-moz-placeholder{opacity:1;color:#1e1e1e9e}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:-ms-input-placeholder{color:#1e1e1e9e}@media (min-width: 600px){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{height:16px;width:16px;min-width:16px;max-width:16px}}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked:before{box-sizing:inherit;width:12px;height:12px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;background-color:#fff;border:4px solid #fff}@media (min-width: 600px){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked:before{width:8px;height:8px}}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked{background:var(--wp-admin-theme-color);border:none}.editor-post-visibility__fieldset .editor-post-visibility__info{color:#757575;margin-left:36px;margin-top:.5em}@media (min-width: 600px){.editor-post-visibility__fieldset .editor-post-visibility__info{margin-left:28px}}.editor-post-visibility__fieldset .editor-post-visibility__choice:last-child .editor-post-visibility__info{margin-bottom:0}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #949494;font-size:16px;line-height:normal;margin-left:32px;width:calc(100% - 32px)}@media (prefers-reduced-motion: reduce){.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]{transition-duration:0s;transition-delay:0s}}@media (min-width: 600px){.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]{font-size:13px;line-height:normal}}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]::-webkit-input-placeholder{color:#1e1e1e9e}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]::-moz-placeholder{opacity:1;color:#1e1e1e9e}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]:-ms-input-placeholder{color:#1e1e1e9e}.editor-posts-per-page-dropdown__content .components-popover__content{min-width:320px;padding:16px}.editor-post-trash.components-button{flex-grow:1;justify-content:center}.editor-preview-dropdown .editor-preview-dropdown__toggle.has-icon.has-text{padding-right:4px;padding-left:6px}.editor-preview-dropdown__button-external{width:100%;display:flex;justify-content:space-between}.editor-resizable-editor.is-resizable{overflow:visible;margin:0 auto}.editor-resizable-editor__resize-handle{position:absolute;top:0;bottom:0;padding:0;margin:auto 0;width:12px;appearance:none;cursor:ew-resize;outline:none;background:none;border-radius:9999px;border:0;height:100px}.editor-resizable-editor__resize-handle:after{position:absolute;inset:16px 0 16px 4px;content:"";width:4px;background-color:#75757566;border-radius:9999px}.editor-resizable-editor__resize-handle.is-left{left:-18px}.editor-resizable-editor__resize-handle.is-right{right:-18px}.editor-resizable-editor__resize-handle:hover,.editor-resizable-editor__resize-handle:focus,.editor-resizable-editor__resize-handle:active{opacity:1}.editor-resizable-editor__resize-handle:hover:after,.editor-resizable-editor__resize-handle:focus:after,.editor-resizable-editor__resize-handle:active:after{background-color:var(--wp-admin-theme-color)}.editor-layout__toggle-publish-panel,.editor-layout__toggle-sidebar-panel,.editor-layout__toggle-entities-saved-states-panel{z-index:100000;position:fixed!important;inset:-9999em 0 auto auto;box-sizing:border-box;width:280px;background-color:#fff;border:1px dotted #ddd;height:auto!important;padding:24px;display:flex;justify-content:center}.interface-interface-skeleton__actions:focus .editor-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .editor-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .editor-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .editor-layout__toggle-publish-panel{top:auto;bottom:0}.editor-start-page-options__modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width: 782px){.editor-start-page-options__modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width: 1280px){.editor-start-page-options__modal-content .block-editor-block-patterns-list{column-count:4}}.editor-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column;margin-bottom:24px}.editor-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{min-height:100px}.editor-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__content{width:100%}.editor-start-template-options__modal .editor-start-template-options__modal__actions{position:absolute;bottom:0;width:100%;height:92px;background-color:#fff;margin-left:-32px;margin-right:-32px;padding-left:32px;padding-right:32px;border-top:1px solid #ddd;z-index:1}.editor-start-template-options__modal .block-editor-block-patterns-list{padding-bottom:92px}.editor-start-template-options__modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width: 782px){.editor-start-template-options__modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width: 1280px){.editor-start-template-options__modal-content .block-editor-block-patterns-list{column-count:4}}.editor-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.editor-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-patterns-list__item-title{display:none}.components-panel__header.editor-sidebar__panel-tabs{padding-left:0;padding-right:12px}.components-panel__header.editor-sidebar__panel-tabs .components-button.has-icon{padding:0;min-width:24px;height:24px}@media (min-width: 782px){.components-panel__header.editor-sidebar__panel-tabs .components-button.has-icon{display:flex}}.editor-post-summary .components-v-stack:empty{display:none}.editor-site-discussion-dropdown__content .components-popover__content{min-width:320px;padding:16px}.table-of-contents__popover.components-popover .components-popover__content{min-width:380px}.components-popover.table-of-contents__popover{z-index:99998}.table-of-contents__popover .components-popover__content{padding:16px}@media (min-width: 600px){.table-of-contents__popover .components-popover__content{max-height:calc(100vh - 120px);overflow-y:auto}}.table-of-contents__popover hr{margin:10px -16px 0}.table-of-contents__wrapper:focus:before{content:"";display:block;position:absolute;inset:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);pointer-events:none}.table-of-contents__counts{display:flex;flex-wrap:wrap;margin:-8px 0 0}.table-of-contents__count{flex-basis:33%;display:flex;flex-direction:column;font-size:13px;color:#1e1e1e;padding-right:8px;margin-bottom:0;margin-top:8px}.table-of-contents__count:nth-child(4n){padding-right:0}.table-of-contents__number,.table-of-contents__popover .word-count{font-size:21px;font-weight:400;line-height:30px;color:#1e1e1e}.table-of-contents__title{display:block;margin-top:20px;font-size:15px;font-weight:600}.editor-text-editor{position:relative;width:100%;background-color:#fff;flex-grow:1}.editor-text-editor .editor-post-title:not(.is-raw-text),.editor-text-editor .editor-post-title.is-raw-text textarea{max-width:none;line-height:1.4;font-family:Menlo,Consolas,monaco,monospace;font-size:2.5em;font-weight:400;border:1px solid #949494;border-radius:0;padding:16px}@media (min-width: 600px){.editor-text-editor .editor-post-title:not(.is-raw-text),.editor-text-editor .editor-post-title.is-raw-text textarea{padding:24px}}.editor-text-editor .editor-post-title:not(.is-raw-text):focus,.editor-text-editor .editor-post-title.is-raw-text textarea:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.editor-text-editor__body{width:100%;padding:0 12px 12px;max-width:1080px;margin-left:auto;margin-right:auto}@media (min-width: 960px){.editor-text-editor__body{padding:0 24px 24px}}.editor-text-editor__toolbar{position:sticky;z-index:1;top:0;left:0;right:0;display:flex;background:#fffc;padding:4px 12px}@media (min-width: 600px){.editor-text-editor__toolbar{padding:12px}}@media (min-width: 960px){.editor-text-editor__toolbar{padding:12px 24px}}.editor-text-editor__toolbar h2{line-height:36px;margin:0 auto 0 0;font-size:13px;color:#1e1e1e}.editor-visual-editor{position:relative;display:flex;background-color:#ddd;align-items:center}.editor-visual-editor.is-resizable{max-height:100%}.editor-visual-editor.has-padding{padding:24px 24px 0}.editor-visual-editor.is-iframed{overflow:hidden}.editor-visual-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.editor-visual-editor .components-button.is-tertiary,.editor-visual-editor .components-button.has-icon{padding:6px}.wp-block-archives{box-sizing:border-box}.wp-block-archives-dropdown label{display:block}.wp-block-avatar{box-sizing:border-box;line-height:0}.wp-block-avatar img{box-sizing:border-box}.wp-block-avatar.aligncenter{text-align:center}.wp-block-audio{box-sizing:border-box}.wp-block-audio :where(figcaption){margin-top:.5em;margin-bottom:1em}.wp-block-audio audio{width:100%;min-width:300px}.wp-block-button__link{cursor:pointer;display:inline-block;text-align:center;word-break:break-word;box-sizing:border-box}.wp-block-button__link.aligncenter{text-align:center}.wp-block-button__link.alignright{text-align:right}:where(.wp-block-button__link){box-shadow:none;text-decoration:none;border-radius:9999px;padding:calc(.667em + 2px) calc(1.333em + 2px)}.wp-block-button[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons>.wp-block-button.has-custom-width{max-width:none}.wp-block-buttons>.wp-block-button.has-custom-width .wp-block-button__link{width:100%}.wp-block-buttons>.wp-block-button.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-buttons>.wp-block-button.wp-block-button__width-25{width:calc(25% - (var(--wp--style--block-gap, .5em) * .75))}.wp-block-buttons>.wp-block-button.wp-block-button__width-50{width:calc(50% - (var(--wp--style--block-gap, .5em) * .5))}.wp-block-buttons>.wp-block-button.wp-block-button__width-75{width:calc(75% - (var(--wp--style--block-gap, .5em) * .25))}.wp-block-buttons>.wp-block-button.wp-block-button__width-100{width:100%;flex-basis:100%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-25{width:25%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-50{width:50%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-75{width:75%}.wp-block-button.is-style-squared,.wp-block-button__link.wp-block-button.is-style-squared{border-radius:0}.wp-block-button.no-border-radius,.wp-block-button__link.no-border-radius{border-radius:0!important}:root :where(.wp-block-button.is-style-outline>.wp-block-button__link),:root :where(.wp-block-button .wp-block-button__link.is-style-outline){border:2px solid currentColor;padding:.667em 1.333em}:root :where(.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-text-color)),:root :where(.wp-block-button .wp-block-button__link.is-style-outline:not(.has-text-color)){color:currentColor}:root :where(.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background)),:root :where(.wp-block-button .wp-block-button__link.is-style-outline:not(.has-background)){background-color:transparent;background-image:none}.wp-block-buttons.is-vertical{flex-direction:column}.wp-block-buttons.is-vertical>.wp-block-button:last-child{margin-bottom:0}.wp-block-buttons>.wp-block-button{display:inline-block;margin:0}.wp-block-buttons.is-content-justification-left{justify-content:flex-start}.wp-block-buttons.is-content-justification-left.is-vertical{align-items:flex-start}.wp-block-buttons.is-content-justification-center{justify-content:center}.wp-block-buttons.is-content-justification-center.is-vertical{align-items:center}.wp-block-buttons.is-content-justification-right{justify-content:flex-end}.wp-block-buttons.is-content-justification-right.is-vertical{align-items:flex-end}.wp-block-buttons.is-content-justification-space-between{justify-content:space-between}.wp-block-buttons.aligncenter{text-align:center}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block-button.aligncenter{margin-left:auto;margin-right:auto;width:100%}.wp-block-buttons[style*=text-decoration] .wp-block-button,.wp-block-buttons[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-button.aligncenter,.wp-block-calendar{text-align:center}.wp-block-calendar th,.wp-block-calendar td{padding:.25em;border:1px solid}.wp-block-calendar th{font-weight:400}.wp-block-calendar caption{background-color:inherit}.wp-block-calendar table{width:100%;border-collapse:collapse}.wp-block-calendar table:where(:not(.has-text-color)){color:#40464d}.wp-block-calendar table:where(:not(.has-text-color)) th,.wp-block-calendar table:where(:not(.has-text-color)) td{border-color:#ddd}.wp-block-calendar table.has-background th{background-color:inherit}.wp-block-calendar table.has-text-color th{color:inherit}:where(.wp-block-calendar table:not(.has-background) th){background:#ddd}.wp-block-categories{box-sizing:border-box}.wp-block-categories.alignleft{margin-right:2em}.wp-block-categories.alignright{margin-left:2em}.wp-block-categories.wp-block-categories-dropdown.aligncenter{text-align:center}.wp-block-categories .wp-block-categories__label{width:100%;display:block}.wp-block-code{box-sizing:border-box}.wp-block-code code{display:block;font-family:inherit;overflow-wrap:break-word;white-space:pre-wrap}.wp-block-columns{display:flex;box-sizing:border-box;flex-wrap:wrap!important;align-items:initial!important}@media (min-width: 782px){.wp-block-columns{flex-wrap:nowrap!important}}.wp-block-columns.are-vertically-aligned-top{align-items:flex-start}.wp-block-columns.are-vertically-aligned-center{align-items:center}.wp-block-columns.are-vertically-aligned-bottom{align-items:flex-end}@media (max-width: 781px){.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:100%!important}}@media (min-width: 782px){.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column[style*=flex-basis]{flex-grow:0}}.wp-block-columns.is-not-stacked-on-mobile{flex-wrap:nowrap!important}.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column[style*=flex-basis]{flex-grow:0}:where(.wp-block-columns){margin-bottom:1.75em}:where(.wp-block-columns.has-background){padding:1.25em 2.375em}.wp-block-column{flex-grow:1;min-width:0;word-break:break-word;overflow-wrap:break-word}.wp-block-column.is-vertically-aligned-top{align-self:flex-start}.wp-block-column.is-vertically-aligned-center{align-self:center}.wp-block-column.is-vertically-aligned-bottom{align-self:flex-end}.wp-block-column.is-vertically-aligned-stretch{align-self:stretch}.wp-block-column.is-vertically-aligned-top,.wp-block-column.is-vertically-aligned-center,.wp-block-column.is-vertically-aligned-bottom{width:100%}.wp-block-post-comments{box-sizing:border-box}.wp-block-post-comments .alignleft{float:left}.wp-block-post-comments .alignright{float:right}.wp-block-post-comments .navigation:after{content:"";display:table;clear:both}.wp-block-post-comments .commentlist{clear:both;list-style:none;margin:0;padding:0}.wp-block-post-comments .commentlist .comment{min-height:2.25em;padding-left:3.25em}.wp-block-post-comments .commentlist .comment p{font-size:1em;line-height:1.8;margin:1em 0}.wp-block-post-comments .commentlist .children{list-style:none;margin:0;padding:0}.wp-block-post-comments .comment-author{line-height:1.5}.wp-block-post-comments .comment-author .avatar{border-radius:1.5em;display:block;float:left;height:2.5em;margin-top:.5em;margin-right:.75em;width:2.5em}.wp-block-post-comments .comment-author cite{font-style:normal}.wp-block-post-comments .comment-meta{font-size:.875em;line-height:1.5}.wp-block-post-comments .comment-meta b{font-weight:400}.wp-block-post-comments .comment-meta .comment-awaiting-moderation{margin-top:1em;margin-bottom:1em;display:block}.wp-block-post-comments .comment-body .commentmetadata{font-size:.875em}.wp-block-post-comments .comment-form-comment label,.wp-block-post-comments .comment-form-author label,.wp-block-post-comments .comment-form-email label,.wp-block-post-comments .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments .comment-form textarea,.wp-block-post-comments .comment-form input:not([type=submit]):not([type=checkbox]){display:block;box-sizing:border-box;width:100%}.wp-block-post-comments .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments .comment-reply-title{margin-bottom:0}.wp-block-post-comments .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium, smaller);margin-left:.5em}.wp-block-post-comments .reply{font-size:.875em;margin-bottom:1.4em}.wp-block-post-comments textarea,.wp-block-post-comments input:not([type=submit]){border:1px solid #949494;font-size:1em;font-family:inherit}.wp-block-post-comments textarea,.wp-block-post-comments input:not([type=submit]):not([type=checkbox]){padding:calc(.667em + 2px)}.wp-block-comments-pagination>.wp-block-comments-pagination-next,.wp-block-comments-pagination>.wp-block-comments-pagination-previous,.wp-block-comments-pagination>.wp-block-comments-pagination-numbers{margin-right:.5em;margin-bottom:.5em}.wp-block-comments-pagination .wp-block-comments-pagination-previous-arrow{margin-right:1ch;display:inline-block}.wp-block-comments-pagination .wp-block-comments-pagination-previous-arrow:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-comments-pagination .wp-block-comments-pagination-next-arrow{margin-left:1ch;display:inline-block}.wp-block-comments-pagination .wp-block-comments-pagination-next-arrow:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-comments-pagination.aligncenter{justify-content:center}.wp-block-comment-template{box-sizing:border-box;margin-bottom:0;max-width:100%;list-style:none;padding:0}.wp-block-comment-template li{clear:both}.wp-block-comment-template ol{margin-bottom:0;max-width:100%;list-style:none;padding-left:2rem}.wp-block-comment-template.alignleft{float:left}.wp-block-comment-template.aligncenter{margin-left:auto;margin-right:auto;width:-moz-fit-content;width:fit-content}.wp-block-comment-template.alignright{float:right}.wp-block-comment-date{box-sizing:border-box}.comment-awaiting-moderation{display:block;font-size:.875em;line-height:1.5}.wp-block-comment-content,.wp-block-comment-author-name,.wp-block-comment-edit-link,.wp-block-comment-reply-link{box-sizing:border-box}.wp-block-cover-image,.wp-block-cover{min-height:430px;padding:1em;position:relative;background-position:center center;display:flex;justify-content:center;align-items:center;overflow:hidden;overflow:clip;box-sizing:border-box}.wp-block-cover-image.has-background-dim:not([class*=-background-color]),.wp-block-cover-image .has-background-dim:not([class*=-background-color]),.wp-block-cover.has-background-dim:not([class*=-background-color]),.wp-block-cover .has-background-dim:not([class*=-background-color]){background-color:#000}.wp-block-cover-image .has-background-dim.has-background-gradient,.wp-block-cover .has-background-dim.has-background-gradient{background-color:transparent}.wp-block-cover-image.has-background-dim:before,.wp-block-cover.has-background-dim:before{content:"";background-color:inherit}.wp-block-cover-image.has-background-dim:not(.has-background-gradient):before,.wp-block-cover-image .wp-block-cover__background,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim:not(.has-background-gradient):before,.wp-block-cover .wp-block-cover__background,.wp-block-cover .wp-block-cover__gradient-background{position:absolute;inset:0;z-index:1;opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient):before,.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background{opacity:.1}.wp-block-cover-image.has-background-dim.has-background-dim-20:not(.has-background-gradient):before,.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-20:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background{opacity:.2}.wp-block-cover-image.has-background-dim.has-background-dim-30:not(.has-background-gradient):before,.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-30:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background{opacity:.3}.wp-block-cover-image.has-background-dim.has-background-dim-40:not(.has-background-gradient):before,.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-40:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background{opacity:.4}.wp-block-cover-image.has-background-dim.has-background-dim-50:not(.has-background-gradient):before,.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-50:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-60:not(.has-background-gradient):before,.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-60:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background{opacity:.6}.wp-block-cover-image.has-background-dim.has-background-dim-70:not(.has-background-gradient):before,.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-70:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background{opacity:.7}.wp-block-cover-image.has-background-dim.has-background-dim-80:not(.has-background-gradient):before,.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-80:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background{opacity:.8}.wp-block-cover-image.has-background-dim.has-background-dim-90:not(.has-background-gradient):before,.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-90:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background{opacity:.9}.wp-block-cover-image.has-background-dim.has-background-dim-100:not(.has-background-gradient):before,.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background{opacity:1}.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-0,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0,.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-0{opacity:0}.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-10,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10,.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-10{opacity:.1}.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-20,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20,.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-20{opacity:.2}.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-30,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30,.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-30{opacity:.3}.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-40,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40,.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-40{opacity:.4}.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-50,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50,.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-50{opacity:.5}.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-60,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60,.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-60{opacity:.6}.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-70,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70,.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-70{opacity:.7}.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-80,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80,.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-80{opacity:.8}.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-90,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90,.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-90{opacity:.9}.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-100,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100,.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-100{opacity:1}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.alignleft,.wp-block-cover.alignright{max-width:420px;width:100%}.wp-block-cover-image.aligncenter,.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.aligncenter,.wp-block-cover.alignleft,.wp-block-cover.alignright{display:flex}.wp-block-cover-image .wp-block-cover__inner-container,.wp-block-cover .wp-block-cover__inner-container{width:100%;z-index:1;color:inherit}.wp-block-cover-image.is-position-top-left,.wp-block-cover.is-position-top-left{align-items:flex-start;justify-content:flex-start}.wp-block-cover-image.is-position-top-center,.wp-block-cover.is-position-top-center{align-items:flex-start;justify-content:center}.wp-block-cover-image.is-position-top-right,.wp-block-cover.is-position-top-right{align-items:flex-start;justify-content:flex-end}.wp-block-cover-image.is-position-center-left,.wp-block-cover.is-position-center-left{align-items:center;justify-content:flex-start}.wp-block-cover-image.is-position-center-center,.wp-block-cover.is-position-center-center{align-items:center;justify-content:center}.wp-block-cover-image.is-position-center-right,.wp-block-cover.is-position-center-right{align-items:center;justify-content:flex-end}.wp-block-cover-image.is-position-bottom-left,.wp-block-cover.is-position-bottom-left{align-items:flex-end;justify-content:flex-start}.wp-block-cover-image.is-position-bottom-center,.wp-block-cover.is-position-bottom-center{align-items:flex-end;justify-content:center}.wp-block-cover-image.is-position-bottom-right,.wp-block-cover.is-position-bottom-right{align-items:flex-end;justify-content:flex-end}.wp-block-cover-image.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container{margin:0}.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-top-right .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-center-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-center-right .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-bottom-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-top-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-center-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-center-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-bottom-right .wp-block-cover__inner-container{margin:0;width:auto}.wp-block-cover-image .wp-block-cover__image-background,.wp-block-cover-image video.wp-block-cover__video-background,.wp-block-cover .wp-block-cover__image-background,.wp-block-cover video.wp-block-cover__video-background{position:absolute;inset:0;margin:0;padding:0;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;outline:none;border:none;box-shadow:none}.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:fixed;background-size:cover;background-repeat:no-repeat}@supports (-webkit-touch-callout: inherit){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:scroll}}@media (prefers-reduced-motion: reduce){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:scroll}}.wp-block-cover-image.is-repeated,.wp-block-cover.is-repeated,.wp-block-cover__image-background.is-repeated,video.wp-block-cover__video-background.is-repeated{background-repeat:repeat;background-size:auto}.wp-block-cover__video-background,.wp-block-cover__image-background{z-index:0}section.wp-block-cover-image h2,.wp-block-cover-image-text,.wp-block-cover-text{color:#fff}section.wp-block-cover-image h2 a,section.wp-block-cover-image h2 a:hover,section.wp-block-cover-image h2 a:focus,section.wp-block-cover-image h2 a:active,.wp-block-cover-image-text a,.wp-block-cover-image-text a:hover,.wp-block-cover-image-text a:focus,.wp-block-cover-image-text a:active,.wp-block-cover-text a,.wp-block-cover-text a:hover,.wp-block-cover-text a:focus,.wp-block-cover-text a:active{color:#fff}.wp-block-cover-image .wp-block-cover.has-left-content{justify-content:flex-start}.wp-block-cover-image .wp-block-cover.has-right-content{justify-content:flex-end}section.wp-block-cover-image.has-left-content>h2,.wp-block-cover-image.has-left-content .wp-block-cover-image-text,.wp-block-cover.has-left-content .wp-block-cover-text{margin-left:0;text-align:left}section.wp-block-cover-image.has-right-content>h2,.wp-block-cover-image.has-right-content .wp-block-cover-image-text,.wp-block-cover.has-right-content .wp-block-cover-text{margin-right:0;text-align:right}section.wp-block-cover-image>h2,.wp-block-cover-image .wp-block-cover-image-text,.wp-block-cover .wp-block-cover-text{font-size:2em;line-height:1.25;z-index:1;margin-bottom:0;max-width:840px;padding:.44em;text-align:center}:where(.wp-block-cover:not(.has-text-color)),:where(.wp-block-cover-image:not(.has-text-color)){color:#fff}:where(.wp-block-cover.is-light:not(.has-text-color)),:where(.wp-block-cover-image.is-light:not(.has-text-color)){color:#000}:root :where(.wp-block-cover p:not(.has-text-color)),:root :where(.wp-block-cover h1:not(.has-text-color)),:root :where(.wp-block-cover h2:not(.has-text-color)),:root :where(.wp-block-cover h3:not(.has-text-color)),:root :where(.wp-block-cover h4:not(.has-text-color)),:root :where(.wp-block-cover h5:not(.has-text-color)),:root :where(.wp-block-cover h6:not(.has-text-color)){color:inherit}.wp-block-details{box-sizing:border-box}.wp-block-details summary{cursor:pointer}.wp-block[data-align=left]>[data-type="core/embed"],.wp-block[data-align=right]>[data-type="core/embed"],.wp-block-embed.alignleft,.wp-block-embed.alignright{max-width:360px;width:100%}.wp-block[data-align=left]>[data-type="core/embed"] .wp-block-embed__wrapper,.wp-block[data-align=right]>[data-type="core/embed"] .wp-block-embed__wrapper,.wp-block-embed.alignleft .wp-block-embed__wrapper,.wp-block-embed.alignright .wp-block-embed__wrapper{min-width:280px}.wp-block-cover .wp-block-embed{min-width:320px;min-height:240px}.wp-block-embed{overflow-wrap:break-word}.wp-block-embed :where(figcaption){margin-top:.5em;margin-bottom:1em}.wp-block-embed iframe{max-width:100%}.wp-block-embed__wrapper{position:relative}.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper:before{content:"";display:block;padding-top:50%}.wp-embed-responsive .wp-has-aspect-ratio iframe{position:absolute;inset:0;height:100%;width:100%}.wp-embed-responsive .wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{padding-top:42.85%}.wp-embed-responsive .wp-embed-aspect-18-9 .wp-block-embed__wrapper:before{padding-top:50%}.wp-embed-responsive .wp-embed-aspect-16-9 .wp-block-embed__wrapper:before{padding-top:56.25%}.wp-embed-responsive .wp-embed-aspect-4-3 .wp-block-embed__wrapper:before{padding-top:75%}.wp-embed-responsive .wp-embed-aspect-1-1 .wp-block-embed__wrapper:before{padding-top:100%}.wp-embed-responsive .wp-embed-aspect-9-16 .wp-block-embed__wrapper:before{padding-top:177.77%}.wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%}.wp-block-file{box-sizing:border-box}.wp-block-file:not(.wp-element-button){font-size:.8em}.wp-block-file.aligncenter{text-align:center}.wp-block-file.alignright{text-align:right}.wp-block-file *+.wp-block-file__button{margin-left:.75em}:where(.wp-block-file){margin-bottom:1.5em}.wp-block-file__embed{margin-bottom:1em}:where(.wp-block-file__button){border-radius:2em;padding:.5em 1em;display:inline-block}:where(.wp-block-file__button):is(a):hover,:where(.wp-block-file__button):is(a):visited,:where(.wp-block-file__button):is(a):focus,:where(.wp-block-file__button):is(a):active{box-shadow:none;color:#fff;opacity:.85;text-decoration:none}.wp-block-form-input__label{width:100%;display:flex;flex-direction:column;gap:.25em;margin-bottom:.5em}.wp-block-form-input__label.is-label-inline{flex-direction:row;gap:.5em;align-items:center}.wp-block-form-input__label.is-label-inline .wp-block-form-input__label-content{margin-bottom:.5em}.wp-block-form-input__label:has(input[type=checkbox]){width:-moz-fit-content;width:fit-content;flex-direction:row-reverse}.wp-block-form-input__label-content{width:-moz-fit-content;width:fit-content}.wp-block-form-input__input{padding:0 .5em;font-size:1em;margin-bottom:.5em}.wp-block-form-input__input[type=text],.wp-block-form-input__input[type=password],.wp-block-form-input__input[type=date],.wp-block-form-input__input[type=datetime],.wp-block-form-input__input[type=datetime-local],.wp-block-form-input__input[type=email],.wp-block-form-input__input[type=month],.wp-block-form-input__input[type=number],.wp-block-form-input__input[type=search],.wp-block-form-input__input[type=tel],.wp-block-form-input__input[type=time],.wp-block-form-input__input[type=url],.wp-block-form-input__input[type=week]{min-height:2em;line-height:2;border:1px solid}textarea.wp-block-form-input__input{min-height:10em}.wp-block-gallery:not(.has-nested-images),.blocks-gallery-grid:not(.has-nested-images){display:flex;flex-wrap:wrap;list-style-type:none;padding:0;margin:0}.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item{margin:0 1em 1em 0;display:flex;flex-grow:1;flex-direction:column;justify-content:center;position:relative;width:calc(50% - 1em)}.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item:nth-of-type(2n){margin-right:0}.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figure,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figure,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figure,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figure{margin:0;height:100%;display:flex;align-items:flex-end;justify-content:flex-start}.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item img,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image img,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item img{display:block;max-width:100%;height:auto;width:auto}.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption{position:absolute;bottom:0;width:100%;max-height:100%;overflow:auto;padding:3em .77em .7em;color:#fff;text-align:center;font-size:.8em;background:linear-gradient(0deg,rgba(0,0,0,.7) 0,rgba(0,0,0,.3) 70%,transparent);box-sizing:border-box;margin:0;z-index:2}.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption img,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption img,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption img{display:inline}.wp-block-gallery:not(.has-nested-images) figcaption,.blocks-gallery-grid:not(.has-nested-images) figcaption{flex-grow:1}.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-image a,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-image img,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-item a,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-item img,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-image a,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-image img,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-item a,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-item img{width:100%;height:100%;flex:1;object-fit:cover}.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item,.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-item{width:100%;margin-right:0}@media (min-width: 600px){.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-item,.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-item{width:calc(33.3333333333% - .6666666667em);margin-right:1em}.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-item,.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-item{width:calc(25% - .75em);margin-right:1em}.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-item,.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-item{width:calc(20% - .8em);margin-right:1em}.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-item,.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-item{width:calc(16.6666666667% - .8333333333em);margin-right:1em}.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-item,.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-item{width:calc(14.2857142857% - .8571428571em);margin-right:1em}.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-item,.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-item{width:calc(12.5% - .875em);margin-right:1em}.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image:nth-of-type(n),.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item:nth-of-type(n),.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image:nth-of-type(n),.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-item:nth-of-type(n){margin-right:0}.wp-block-gallery:not(.has-nested-images).columns-2 .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images).columns-2 .blocks-gallery-item:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images).columns-2 .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images).columns-2 .blocks-gallery-item:nth-of-type(2n){margin-right:0}.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-image:nth-of-type(3n),.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-item:nth-of-type(3n),.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-image:nth-of-type(3n),.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-item:nth-of-type(3n){margin-right:0}.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-image:nth-of-type(4n),.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-item:nth-of-type(4n),.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-image:nth-of-type(4n),.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-item:nth-of-type(4n){margin-right:0}.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-image:nth-of-type(5n),.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-item:nth-of-type(5n),.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-image:nth-of-type(5n),.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-item:nth-of-type(5n){margin-right:0}.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-image:nth-of-type(6n),.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-item:nth-of-type(6n),.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-image:nth-of-type(6n),.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-item:nth-of-type(6n){margin-right:0}.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-image:nth-of-type(7n),.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-item:nth-of-type(7n),.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-image:nth-of-type(7n),.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-item:nth-of-type(7n){margin-right:0}.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-image:nth-of-type(8n),.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-item:nth-of-type(8n),.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-image:nth-of-type(8n),.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-item:nth-of-type(8n){margin-right:0}}.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image:last-child,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item:last-child,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image:last-child,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item:last-child{margin-right:0}.wp-block-gallery:not(.has-nested-images).alignleft,.wp-block-gallery:not(.has-nested-images).alignright,.blocks-gallery-grid:not(.has-nested-images).alignleft,.blocks-gallery-grid:not(.has-nested-images).alignright{max-width:420px;width:100%}.wp-block-gallery:not(.has-nested-images).aligncenter .blocks-gallery-item figure,.blocks-gallery-grid:not(.has-nested-images).aligncenter .blocks-gallery-item figure{justify-content:center}.wp-block-gallery:not(.is-cropped) .blocks-gallery-item{align-self:flex-start}figure.wp-block-gallery.has-nested-images{align-items:normal}.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image){width:calc(50% - (var(--wp--style--unstable-gallery-gap, 16px) / 2));margin:0}.wp-block-gallery.has-nested-images figure.wp-block-image{display:flex;flex-grow:1;justify-content:center;position:relative;flex-direction:column;max-width:100%;box-sizing:border-box}.wp-block-gallery.has-nested-images figure.wp-block-image>div,.wp-block-gallery.has-nested-images figure.wp-block-image>a{margin:0;flex-direction:column;flex-grow:1}.wp-block-gallery.has-nested-images figure.wp-block-image img{display:block;height:auto;max-width:100%!important;width:auto}.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption):before,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{position:absolute;bottom:0;right:0;left:0;max-height:100%}.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption):before{content:"";height:100%;max-height:40%;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);-webkit-mask-image:linear-gradient(0deg,#000 20%,transparent 100%);mask-image:linear-gradient(0deg,#000 20%,transparent 100%)}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{color:#fff;text-shadow:0 0 1.5px #000;font-size:13px;margin:0;overflow:auto;padding:1em;text-align:center;box-sizing:border-box;scrollbar-width:thin;scrollbar-gutter:stable both-edges;scrollbar-color:transparent transparent;will-change:transform;background:linear-gradient(0deg,rgba(0,0,0,.4) 0%,transparent 100%)}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar{width:12px;height:12px}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar-track{background-color:transparent}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar-thumb{background-color:transparent;border-radius:8px;border:3px solid transparent;background-clip:padding-box}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:hover::-webkit-scrollbar-thumb,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus::-webkit-scrollbar-thumb,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus-within::-webkit-scrollbar-thumb{background-color:#fffc}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:hover,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus-within{scrollbar-color:rgba(255,255,255,.8) transparent}@media (hover: none){.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{scrollbar-color:rgba(255,255,255,.8) transparent}}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption img{display:inline}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption a{color:inherit}.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border img{box-sizing:border-box}.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded>div,.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded>a,.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border>div,.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border>a{flex:1 1 auto}.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded figcaption,.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border figcaption{flex:initial;background:none;color:inherit;margin:0;padding:10px 10px 9px;position:relative;text-shadow:none}.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded:before,.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border:before{content:none}.wp-block-gallery.has-nested-images figcaption{flex-grow:1;flex-basis:100%;text-align:center}.wp-block-gallery.has-nested-images:not(.is-cropped) figure.wp-block-image:not(#individual-image){margin-top:0;margin-bottom:auto}.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image){align-self:inherit}.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image)>div:not(.components-drop-zone),.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image)>a{display:flex}.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) a,.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img{width:100%;flex:1 0 0%;height:100%;object-fit:cover}.wp-block-gallery.has-nested-images.columns-1 figure.wp-block-image:not(#individual-image){width:100%}@media (min-width: 600px){.wp-block-gallery.has-nested-images.columns-3 figure.wp-block-image:not(#individual-image){width:calc(33.3333333333% - (var(--wp--style--unstable-gallery-gap, 16px) * .6666666667))}.wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image){width:calc(25% - (var(--wp--style--unstable-gallery-gap, 16px) * .75))}.wp-block-gallery.has-nested-images.columns-5 figure.wp-block-image:not(#individual-image){width:calc(20% - (var(--wp--style--unstable-gallery-gap, 16px) * .8))}.wp-block-gallery.has-nested-images.columns-6 figure.wp-block-image:not(#individual-image){width:calc(16.6666666667% - (var(--wp--style--unstable-gallery-gap, 16px) * .8333333333))}.wp-block-gallery.has-nested-images.columns-7 figure.wp-block-image:not(#individual-image){width:calc(14.2857142857% - (var(--wp--style--unstable-gallery-gap, 16px) * .8571428571))}.wp-block-gallery.has-nested-images.columns-8 figure.wp-block-image:not(#individual-image){width:calc(12.5% - (var(--wp--style--unstable-gallery-gap, 16px) * .875))}.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image){width:calc(33.33% - (var(--wp--style--unstable-gallery-gap, 16px) * .6666666667))}.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2),.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2)~figure.wp-block-image:not(#individual-image){width:calc(50% - (var(--wp--style--unstable-gallery-gap, 16px) * .5))}.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(1){width:100%}}.wp-block-gallery.has-nested-images.alignleft,.wp-block-gallery.has-nested-images.alignright{max-width:420px;width:100%}.wp-block-gallery.has-nested-images.aligncenter{justify-content:center}.wp-block-group{box-sizing:border-box}:where(.wp-block-group.wp-block-group-is-layout-constrained){position:relative}h1.has-background,h2.has-background,h3.has-background,h4.has-background,h5.has-background,h6.has-background{padding:1.25em 2.375em}h1.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h1.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h2.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h2.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h3.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h3.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h4.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h4.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h5.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h5.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h6.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h6.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]){rotate:180deg}.wp-block-image a{display:inline-block}.wp-block-image img{height:auto;max-width:100%;vertical-align:bottom;box-sizing:border-box}@media (prefers-reduced-motion: no-preference){.wp-block-image img.hide{visibility:hidden}.wp-block-image img.show{animation:show-content-image .4s}}.wp-block-image[style*=border-radius]>a,.wp-block-image[style*=border-radius] img{border-radius:inherit}.wp-block-image.has-custom-border img{box-sizing:border-box}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull a,.wp-block-image.alignwide a{width:100%}.wp-block-image.alignfull img,.wp-block-image.alignwide img{height:auto;width:100%}.wp-block-image.alignleft,.wp-block-image.alignright,.wp-block-image.aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image .aligncenter{display:table}.wp-block-image.alignleft>figcaption,.wp-block-image.alignright>figcaption,.wp-block-image.aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image .aligncenter>figcaption{display:table-caption;caption-side:bottom}.wp-block-image .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-image .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-image .aligncenter{margin-left:auto;margin-right:auto}.wp-block-image :where(figcaption){margin-top:.5em;margin-bottom:1em}.wp-block-image.is-style-circle-mask img{border-radius:9999px}@supports ((-webkit-mask-image: none) or (mask-image: none)) or (-webkit-mask-image: none){.wp-block-image.is-style-circle-mask img{-webkit-mask-image:url('data:image/svg+xml;utf8,');mask-image:url('data:image/svg+xml;utf8,');mask-mode:alpha;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:center;mask-position:center;border-radius:0}}:root :where(.wp-block-image.is-style-rounded img,.wp-block-image .is-style-rounded img){border-radius:9999px}.wp-block-image figure{margin:0}.wp-lightbox-container{position:relative;display:flex;flex-direction:column}.wp-lightbox-container img{cursor:zoom-in}.wp-lightbox-container img:hover+button{opacity:1}.wp-lightbox-container button{opacity:0;border:none;background-color:#5a5a5a40;-webkit-backdrop-filter:blur(16px) saturate(180%);backdrop-filter:blur(16px) saturate(180%);cursor:zoom-in;display:flex;justify-content:center;align-items:center;width:20px;height:20px;position:absolute;z-index:100;top:16px;right:16px;text-align:center;padding:0;border-radius:4px;transition:opacity .2s ease}.wp-lightbox-container button:focus-visible{outline:3px auto rgba(90,90,90,.25);outline:3px auto -webkit-focus-ring-color;outline-offset:3px}.wp-lightbox-container button:hover{cursor:pointer;opacity:1}.wp-lightbox-container button:focus{opacity:1}.wp-lightbox-container button:hover,.wp-lightbox-container button:focus,.wp-lightbox-container button:not(:hover):not(:active):not(.has-background){background-color:#5a5a5a40;border:none}.wp-lightbox-overlay{position:fixed;top:0;left:0;z-index:100000;overflow:hidden;width:100%;height:100vh;box-sizing:border-box;visibility:hidden;cursor:zoom-out}.wp-lightbox-overlay .close-button{position:absolute;top:calc(env(safe-area-inset-top) + 16px);right:calc(env(safe-area-inset-right) + 16px);padding:0;cursor:pointer;z-index:5000000;min-width:40px;min-height:40px;display:flex;align-items:center;justify-content:center}.wp-lightbox-overlay .close-button:hover,.wp-lightbox-overlay .close-button:focus,.wp-lightbox-overlay .close-button:not(:hover):not(:active):not(.has-background){background:none;border:none}.wp-lightbox-overlay .lightbox-image-container{position:absolute;overflow:hidden;top:50%;left:50%;transform-origin:top left;transform:translate(-50%,-50%);width:var(--wp--lightbox-container-width);height:var(--wp--lightbox-container-height);z-index:9999999999}.wp-lightbox-overlay .wp-block-image{position:relative;transform-origin:0 0;display:flex;width:100%;height:100%;justify-content:center;align-items:center;box-sizing:border-box;z-index:3000000;margin:0}.wp-lightbox-overlay .wp-block-image img{min-width:var(--wp--lightbox-image-width);min-height:var(--wp--lightbox-image-height);width:var(--wp--lightbox-image-width);height:var(--wp--lightbox-image-height)}.wp-lightbox-overlay .wp-block-image figcaption{display:none}.wp-lightbox-overlay button{border:none;background:none}.wp-lightbox-overlay .scrim{width:100%;height:100%;position:absolute;z-index:2000000;background-color:#fff;opacity:.9}.wp-lightbox-overlay.active{visibility:visible;animation:both turn-on-visibility .25s}.wp-lightbox-overlay.active img{animation:both turn-on-visibility .35s}.wp-lightbox-overlay.show-closing-animation:not(.active){animation:both turn-off-visibility .35s}.wp-lightbox-overlay.show-closing-animation:not(.active) img{animation:both turn-off-visibility .25s}@media (prefers-reduced-motion: no-preference){.wp-lightbox-overlay.zoom.active{opacity:1;visibility:visible;animation:none}.wp-lightbox-overlay.zoom.active .lightbox-image-container{animation:lightbox-zoom-in .4s}.wp-lightbox-overlay.zoom.active .lightbox-image-container img{animation:none}.wp-lightbox-overlay.zoom.active .scrim{animation:turn-on-visibility .4s forwards}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active){animation:none}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container{animation:lightbox-zoom-out .4s}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container img{animation:none}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .scrim{animation:turn-off-visibility .4s forwards}}@keyframes show-content-image{0%{visibility:hidden}99%{visibility:hidden}to{visibility:visible}}@keyframes turn-on-visibility{0%{opacity:0}to{opacity:1}}@keyframes turn-off-visibility{0%{opacity:1;visibility:visible}99%{opacity:0;visibility:visible}to{opacity:0;visibility:hidden}}@keyframes lightbox-zoom-in{0%{transform:translate(calc((-100vw + var(--wp--lightbox-scrollbar-width)) / 2 + var(--wp--lightbox-initial-left-position)),calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale))}to{transform:translate(-50%,-50%) scale(1)}}@keyframes lightbox-zoom-out{0%{visibility:visible;transform:translate(-50%,-50%) scale(1)}99%{visibility:visible}to{visibility:hidden;transform:translate(calc((-100vw + var(--wp--lightbox-scrollbar-width)) / 2 + var(--wp--lightbox-initial-left-position)),calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale))}}ol.wp-block-latest-comments{margin-left:0;box-sizing:border-box}:where(.wp-block-latest-comments:not([style*=line-height] .wp-block-latest-comments__comment)){line-height:1.1}:where(.wp-block-latest-comments:not([style*=line-height] .wp-block-latest-comments__comment-excerpt p)){line-height:1.8}.has-dates :where(.wp-block-latest-comments:not([style*=line-height])),.has-excerpts :where(.wp-block-latest-comments:not([style*=line-height])){line-height:1.5}.wp-block-latest-comments .wp-block-latest-comments{padding-left:0}.wp-block-latest-comments__comment{list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{min-height:2.25em;list-style:none}.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta,.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt{margin-left:3.25em}.wp-block-latest-comments__comment-excerpt p{font-size:.875em;margin:.36em 0 1.4em}.wp-block-latest-comments__comment-date{display:block;font-size:.75em}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:1.5em;display:block;float:left;height:2.5em;margin-right:.75em;width:2.5em}.wp-block-latest-comments[style*=font-size] a,.wp-block-latest-comments[class*=-font-size] a{font-size:inherit}.wp-block-latest-posts{box-sizing:border-box}.wp-block-latest-posts.alignleft{margin-right:2em}.wp-block-latest-posts.alignright{margin-left:2em}.wp-block-latest-posts.wp-block-latest-posts__list{list-style:none}.wp-block-latest-posts.wp-block-latest-posts__list li{clear:both;overflow-wrap:break-word}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap}.wp-block-latest-posts.is-grid li{margin:0 1.25em 1.25em 0;width:100%}@media (min-width: 600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - .625em)}.wp-block-latest-posts.columns-2 li:nth-child(2n){margin-right:0}.wp-block-latest-posts.columns-3 li{width:calc((100% / 3) - 1.25em + (1.25em / 3))}.wp-block-latest-posts.columns-3 li:nth-child(3n){margin-right:0}.wp-block-latest-posts.columns-4 li{width:calc(25% - .9375em)}.wp-block-latest-posts.columns-4 li:nth-child(4n){margin-right:0}.wp-block-latest-posts.columns-5 li{width:calc(20% - 1em)}.wp-block-latest-posts.columns-5 li:nth-child(5n){margin-right:0}.wp-block-latest-posts.columns-6 li{width:calc((100% / 6) - 1.25em + (1.25em / 6))}.wp-block-latest-posts.columns-6 li:nth-child(6n){margin-right:0}}:root :where(.wp-block-latest-posts.is-grid){padding:0}:root :where(.wp-block-latest-posts.wp-block-latest-posts__list){padding-left:0}.wp-block-latest-posts__post-date,.wp-block-latest-posts__post-author{display:block;font-size:.8125em}.wp-block-latest-posts__post-excerpt{margin-top:.5em;margin-bottom:1em}.wp-block-latest-posts__featured-image a{display:inline-block}.wp-block-latest-posts__featured-image img{height:auto;width:auto;max-width:100%}.wp-block-latest-posts__featured-image.alignleft{margin-right:1em;float:left}.wp-block-latest-posts__featured-image.alignright{margin-left:1em;float:right}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center}ol,ul{box-sizing:border-box}:root :where(.wp-block-list.has-background){padding:1.25em 2.375em}.wp-block-loginout{box-sizing:border-box}.wp-block-media-text{direction:ltr;display:grid;grid-template-columns:50% 1fr;grid-template-rows:auto;box-sizing:border-box}.wp-block-media-text.has-media-on-the-right{grid-template-columns:1fr 50%}.wp-block-media-text.is-vertically-aligned-top>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-top>.wp-block-media-text__media{align-self:start}.wp-block-media-text>.wp-block-media-text__content,.wp-block-media-text>.wp-block-media-text__media,.wp-block-media-text.is-vertically-aligned-center>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-center>.wp-block-media-text__media{align-self:center}.wp-block-media-text.is-vertically-aligned-bottom>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-bottom>.wp-block-media-text__media{align-self:end}.wp-block-media-text>.wp-block-media-text__media{grid-column:1;grid-row:1;margin:0}.wp-block-media-text>.wp-block-media-text__content{direction:ltr;grid-column:2;grid-row:1;padding:0 8%;word-break:break-word}.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__media{grid-column:2;grid-row:1}.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__content{grid-column:1;grid-row:1}.wp-block-media-text__media a{display:inline-block}.wp-block-media-text__media img,.wp-block-media-text__media video{height:auto;max-width:unset;width:100%;vertical-align:middle}.wp-block-media-text.is-image-fill>.wp-block-media-text__media{height:100%;min-height:250px;background-size:cover}.wp-block-media-text.is-image-fill>.wp-block-media-text__media>a{display:block;height:100%}.wp-block-media-text.is-image-fill>.wp-block-media-text__media img{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.wp-block-media-text.is-image-fill-element>.wp-block-media-text__media{position:relative;height:100%;min-height:250px}.wp-block-media-text.is-image-fill-element>.wp-block-media-text__media>a{display:block;height:100%}.wp-block-media-text.is-image-fill-element>.wp-block-media-text__media img{position:absolute;width:100%;height:100%;object-fit:cover}@media (max-width: 600px){.wp-block-media-text.is-stacked-on-mobile{grid-template-columns:100%!important}.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__media{grid-column:1;grid-row:1}.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__content{grid-column:1;grid-row:2}}.wp-block-navigation{position:relative;--navigation-layout-justification-setting: flex-start;--navigation-layout-direction: row;--navigation-layout-wrap: wrap;--navigation-layout-justify: flex-start;--navigation-layout-align: center}.wp-block-navigation ul{margin-top:0;margin-bottom:0;margin-left:0;padding-left:0}.wp-block-navigation ul,.wp-block-navigation ul li{list-style:none;padding:0}.wp-block-navigation .wp-block-navigation-item{background-color:inherit;display:flex;align-items:center;position:relative}.wp-block-navigation .wp-block-navigation-item .wp-block-navigation__submenu-container:empty{display:none}.wp-block-navigation .wp-block-navigation-item__content{display:block}.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content{color:inherit}.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content{text-decoration:underline}.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content:focus,.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content:active{text-decoration:underline}.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content{text-decoration:line-through}.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:focus,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:active{text-decoration:line-through}.wp-block-navigation :where(a),.wp-block-navigation :where(a:focus),.wp-block-navigation :where(a:active){text-decoration:none}.wp-block-navigation .wp-block-navigation__submenu-icon{align-self:center;line-height:0;display:inline-block;font-size:inherit;padding:0;background-color:inherit;color:currentColor;border:none;width:.6em;height:.6em;margin-left:.25em}.wp-block-navigation .wp-block-navigation__submenu-icon svg{display:inline-block;stroke:currentColor;width:inherit;height:inherit;margin-top:.075em}.wp-block-navigation.is-vertical{--navigation-layout-direction: column;--navigation-layout-justify: initial;--navigation-layout-align: flex-start}.wp-block-navigation.no-wrap{--navigation-layout-wrap: nowrap}.wp-block-navigation.items-justified-center{--navigation-layout-justification-setting: center;--navigation-layout-justify: center}.wp-block-navigation.items-justified-center.is-vertical{--navigation-layout-align: center}.wp-block-navigation.items-justified-right{--navigation-layout-justification-setting: flex-end;--navigation-layout-justify: flex-end}.wp-block-navigation.items-justified-right.is-vertical{--navigation-layout-align: flex-end}.wp-block-navigation.items-justified-space-between{--navigation-layout-justification-setting: space-between;--navigation-layout-justify: space-between}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{background-color:inherit;color:inherit;position:absolute;z-index:2;display:flex;flex-direction:column;align-items:normal;opacity:0;transition:opacity .1s linear;visibility:hidden;width:0;height:0;overflow:hidden;left:-1px;top:100%}.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content{display:flex;flex-grow:1}.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content .wp-block-navigation__submenu-icon{margin-right:0;margin-left:auto}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content{margin:0}@media (min-width: 782px){.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:100%;top:-1px}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before{content:"";position:absolute;right:100%;height:100%;display:block;width:.5em;background:transparent}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon{margin-right:.25em}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon svg{transform:rotate(-90deg)}}.wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container{visibility:visible;overflow:visible;opacity:1;width:auto;height:auto;min-width:200px}.wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within>.wp-block-navigation__submenu-container{visibility:visible;overflow:visible;opacity:1;width:auto;height:auto;min-width:200px}.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]~.wp-block-navigation__submenu-container{visibility:visible;overflow:visible;opacity:1;width:auto;height:auto;min-width:200px}.wp-block-navigation.has-background .has-child .wp-block-navigation__submenu-container{left:0;top:100%}@media (min-width: 782px){.wp-block-navigation.has-background .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:100%;top:0}}.wp-block-navigation-submenu{position:relative;display:flex}.wp-block-navigation-submenu .wp-block-navigation__submenu-icon svg{stroke:currentColor}button.wp-block-navigation-item__content{background-color:transparent;border:none;color:currentColor;font-size:inherit;font-family:inherit;letter-spacing:inherit;line-height:inherit;font-style:inherit;font-weight:inherit;text-transform:inherit;text-align:left}.wp-block-navigation-submenu__toggle{cursor:pointer}.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle{padding-left:0;padding-right:.85em}.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle+.wp-block-navigation__submenu-icon{margin-left:-.6em;pointer-events:none}.wp-block-navigation-item.open-on-click button.wp-block-navigation-item__content:not(.wp-block-navigation-submenu__toggle){padding:0}.wp-block-navigation__responsive-container,.wp-block-navigation__responsive-close,.wp-block-navigation__responsive-dialog,.wp-block-navigation .wp-block-page-list,.wp-block-navigation__container,.wp-block-navigation__responsive-container-content{gap:inherit}:where(.wp-block-navigation.has-background .wp-block-navigation-item a:not(.wp-element-button)),:where(.wp-block-navigation.has-background .wp-block-navigation-submenu a:not(.wp-element-button)){padding:.5em 1em}:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item a:not(.wp-element-button)),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-submenu a:not(.wp-element-button)),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-submenu button.wp-block-navigation-item__content),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-pages-list__item button.wp-block-navigation-item__content){padding:.5em 1em}.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container{left:auto;right:0}.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:-1px;right:-1px}@media (min-width: 782px){.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:auto;right:100%}}.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container{background-color:#fff;border:1px solid rgba(0,0,0,.15)}.wp-block-navigation.has-background .wp-block-navigation__submenu-container{background-color:inherit}.wp-block-navigation:not(.has-text-color) .wp-block-navigation__submenu-container{color:#000}.wp-block-navigation__container{display:flex;flex-wrap:var(--navigation-layout-wrap, wrap);flex-direction:var(--navigation-layout-direction, initial);justify-content:var(--navigation-layout-justify, initial);align-items:var(--navigation-layout-align, initial);list-style:none;margin:0;padding-left:0}.wp-block-navigation__container .is-responsive{display:none}.wp-block-navigation__container:only-child,.wp-block-page-list:only-child{flex-grow:1}@keyframes overlay-menu__fade-in-animation{0%{opacity:0;transform:translateY(.5em)}to{opacity:1;transform:translateY(0)}}.wp-block-navigation__responsive-container{display:none;position:fixed;inset:0}.wp-block-navigation__responsive-container :where(.wp-block-navigation-item a){color:inherit}.wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content{display:flex;flex-wrap:var(--navigation-layout-wrap, wrap);flex-direction:var(--navigation-layout-direction, initial);justify-content:var(--navigation-layout-justify, initial);align-items:var(--navigation-layout-align, initial)}.wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open){color:inherit!important;background-color:inherit!important}.wp-block-navigation__responsive-container.is-menu-open{display:flex;flex-direction:column;background-color:inherit;animation:overlay-menu__fade-in-animation .1s ease-out;animation-fill-mode:forwards;padding-top:clamp(1rem,var(--wp--style--root--padding-top),20rem);padding-right:clamp(1rem,var(--wp--style--root--padding-right),20rem);padding-bottom:clamp(1rem,var(--wp--style--root--padding-bottom),20rem);padding-left:clamp(1rem,var(--wp--style--root--padding-left),20em);overflow:auto;z-index:100000}@media (prefers-reduced-motion: reduce){.wp-block-navigation__responsive-container.is-menu-open{animation-duration:1ms;animation-delay:0s}}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content{padding-top:calc(2rem + 24px);overflow:visible;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:var(--navigation-layout-justification-setting, inherit)}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container{justify-content:flex-start}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon{display:none}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container{opacity:1;visibility:visible;height:auto;width:auto;overflow:initial;min-width:200px;position:static;border:none;padding-left:2rem;padding-right:2rem}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container{gap:inherit}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container{padding-top:var(--wp--style--block-gap, 2em)}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content{padding:0}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list{display:flex;flex-direction:column;align-items:var(--navigation-layout-justification-setting, initial)}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item .wp-block-navigation__submenu-container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,.wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list{color:inherit!important;background:transparent!important}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container{right:auto;left:auto}@media (min-width: 600px){.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open){display:block;width:100%;position:relative;z-index:auto;background-color:inherit}.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) .wp-block-navigation__responsive-container-close{display:none}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container{left:0}}.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open{background-color:#fff}.wp-block-navigation:not(.has-text-color) .wp-block-navigation__responsive-container.is-menu-open{color:#000}.wp-block-navigation__toggle_button_label{font-size:1rem;font-weight:700}.wp-block-navigation__responsive-container-open,.wp-block-navigation__responsive-container-close{vertical-align:middle;cursor:pointer;color:currentColor;background:transparent;border:none;margin:0;padding:0;text-transform:inherit}.wp-block-navigation__responsive-container-open svg,.wp-block-navigation__responsive-container-close svg{fill:currentColor;pointer-events:none;display:block;width:24px;height:24px}.wp-block-navigation__responsive-container-open{display:flex}.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open{font-family:inherit;font-weight:inherit;font-size:inherit}@media (min-width: 600px){.wp-block-navigation__responsive-container-open:not(.always-shown){display:none}}.wp-block-navigation__responsive-container-close{position:absolute;top:0;right:0;z-index:2}.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close{font-family:inherit;font-weight:inherit;font-size:inherit}.wp-block-navigation__responsive-close{width:100%}.has-modal-open .wp-block-navigation__responsive-close{max-width:var(--wp--style--global--wide-size, 100%);margin-left:auto;margin-right:auto}.wp-block-navigation__responsive-close:focus{outline:none}.is-menu-open .wp-block-navigation__responsive-close,.is-menu-open .wp-block-navigation__responsive-dialog,.is-menu-open .wp-block-navigation__responsive-container-content{box-sizing:border-box}.wp-block-navigation__responsive-dialog{position:relative}.has-modal-open .admin-bar .is-menu-open .wp-block-navigation__responsive-dialog{margin-top:46px}@media (min-width: 782px){.has-modal-open .admin-bar .is-menu-open .wp-block-navigation__responsive-dialog{margin-top:32px}}html.has-modal-open{overflow:hidden}.wp-block-navigation .wp-block-navigation-item__label{overflow-wrap:break-word}.wp-block-navigation .wp-block-navigation-item__description{display:none}.link-ui-tools{border-top:1px solid #f0f0f0;padding:8px}.link-ui-block-inserter{padding-top:8px}.link-ui-block-inserter__back{margin-left:8px;text-transform:uppercase}.wp-block-navigation .wp-block-page-list{display:flex;flex-direction:var(--navigation-layout-direction, initial);justify-content:var(--navigation-layout-justify, initial);align-items:var(--navigation-layout-align, initial);flex-wrap:var(--navigation-layout-wrap, wrap);background-color:inherit}.wp-block-navigation .wp-block-navigation-item{background-color:inherit}.is-small-text{font-size:.875em}.is-regular-text{font-size:1em}.is-large-text{font-size:2.25em}.is-larger-text{font-size:3em}.has-drop-cap:not(:focus):first-letter{float:left;font-size:8.4em;line-height:.68;font-weight:100;margin:.05em .1em 0 0;text-transform:uppercase;font-style:normal}body.rtl .has-drop-cap:not(:focus):first-letter{float:initial;margin-left:.1em}p.has-drop-cap.has-background{overflow:hidden}:root :where(p.has-background){padding:1.25em 2.375em}:where(p.has-text-color:not(.has-link-color)) a{color:inherit}p.has-text-align-right[style*="writing-mode:vertical-rl"],p.has-text-align-left[style*="writing-mode:vertical-lr"]{rotate:180deg}.wp-block-post-author{display:flex;flex-wrap:wrap;box-sizing:border-box}.wp-block-post-author__byline{width:100%;margin-top:0;margin-bottom:0;font-size:.5em}.wp-block-post-author__avatar{margin-right:1em}.wp-block-post-author__bio{margin-bottom:.7em;font-size:.7em}.wp-block-post-author__content{flex-grow:1;flex-basis:0}.wp-block-post-author__name{margin:0}.wp-block-post-author-biography{box-sizing:border-box}:where(.wp-block-post-comments-form) textarea,:where(.wp-block-post-comments-form) input:not([type=submit]){border:1px solid #949494;font-size:1em;font-family:inherit}:where(.wp-block-post-comments-form) textarea,:where(.wp-block-post-comments-form) input:where(:not([type=submit]):not([type=checkbox])){padding:calc(.667em + 2px)}.wp-block-post-comments-form{box-sizing:border-box}.wp-block-post-comments-form[style*=font-weight] :where(.comment-reply-title){font-weight:inherit}.wp-block-post-comments-form[style*=font-family] :where(.comment-reply-title){font-family:inherit}.wp-block-post-comments-form[class*=-font-size] :where(.comment-reply-title),.wp-block-post-comments-form[style*=font-size] :where(.comment-reply-title){font-size:inherit}.wp-block-post-comments-form[style*=line-height] :where(.comment-reply-title){line-height:inherit}.wp-block-post-comments-form[style*=font-style] :where(.comment-reply-title){font-style:inherit}.wp-block-post-comments-form[style*=letter-spacing] :where(.comment-reply-title){letter-spacing:inherit}.wp-block-post-comments-form :where(input[type=submit]){box-shadow:none;cursor:pointer;display:inline-block;text-align:center;overflow-wrap:break-word}.wp-block-post-comments-form .comment-form textarea,.wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]):not([type=hidden]){display:block;box-sizing:border-box;width:100%}.wp-block-post-comments-form .comment-form-author label,.wp-block-post-comments-form .comment-form-email label,.wp-block-post-comments-form .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments-form .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments-form .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments-form .comment-reply-title{margin-bottom:0}.wp-block-post-comments-form .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium, smaller);margin-left:.5em}.wp-block-post-content:after{content:"";display:table;clear:both}.wp-block-post-date{box-sizing:border-box}:where(.wp-block-post-excerpt){box-sizing:border-box;margin-top:var(--wp--style--block-gap);margin-bottom:var(--wp--style--block-gap)}.wp-block-post-excerpt__excerpt{margin-top:0;margin-bottom:0}.wp-block-post-excerpt__more-text{margin-top:var(--wp--style--block-gap);margin-bottom:0}.wp-block-post-excerpt__more-link{display:inline-block}.wp-block-post-featured-image{margin-left:0;margin-right:0}.wp-block-post-featured-image a{display:block;height:100%}.wp-block-post-featured-image :where(img){max-width:100%;width:100%;height:auto;vertical-align:bottom;box-sizing:border-box}.wp-block-post-featured-image.alignwide img,.wp-block-post-featured-image.alignfull img{width:100%}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim{position:absolute;inset:0;background-color:#000}.wp-block-post-featured-image{position:relative}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-gradient{background-color:transparent}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-0{opacity:0}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-10{opacity:.1}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-20{opacity:.2}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-30{opacity:.3}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-40{opacity:.4}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-50{opacity:.5}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-60{opacity:.6}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-70{opacity:.7}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-80{opacity:.8}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-90{opacity:.9}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-100{opacity:1}.wp-block-post-featured-image:where(.alignleft,.alignright){width:100%}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-previous{display:inline-block;margin-right:1ch}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-previous:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-next{display:inline-block;margin-left:1ch}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-next:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-post-navigation-link.has-text-align-right[style*="writing-mode: vertical-rl"],.wp-block-post-navigation-link.has-text-align-left[style*="writing-mode: vertical-lr"]{rotate:180deg}.wp-block-post-terms{box-sizing:border-box}.wp-block-post-terms .wp-block-post-terms__separator{white-space:pre-wrap}.wp-block-post-time-to-read{box-sizing:border-box}.wp-block-post-title{word-break:break-word;box-sizing:border-box}.wp-block-post-title a{display:inline-block}.wp-block-post-author-name{box-sizing:border-box}.wp-block-preformatted{box-sizing:border-box;white-space:pre-wrap}:where(.wp-block-preformatted.has-background){padding:1.25em 2.375em}.wp-block-pullquote{text-align:center;overflow-wrap:break-word;box-sizing:border-box;margin:0 0 1em;padding:4em 0}.wp-block-pullquote p,.wp-block-pullquote blockquote,.wp-block-pullquote cite{color:inherit}.wp-block-pullquote blockquote{margin:0}.wp-block-pullquote p{margin-top:0}.wp-block-pullquote p:last-child{margin-bottom:0}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:420px}.wp-block-pullquote cite,.wp-block-pullquote footer{position:relative}.wp-block-pullquote .has-text-color a{color:inherit}.wp-block-pullquote.has-text-align-left blockquote{text-align:left}.wp-block-pullquote.has-text-align-right blockquote{text-align:right}.wp-block-pullquote.is-style-solid-color{border:none}.wp-block-pullquote.is-style-solid-color blockquote{margin-left:auto;margin-right:auto;max-width:60%}.wp-block-pullquote.is-style-solid-color blockquote p{margin-top:0;margin-bottom:0;font-size:2em}.wp-block-pullquote.is-style-solid-color blockquote cite{text-transform:none;font-style:normal}.wp-block-pullquote cite{color:inherit}.wp-block-post-template{margin-top:0;margin-bottom:0;max-width:100%;list-style:none;padding:0}.wp-block-post-template.is-flex-container{flex-direction:row;display:flex;flex-wrap:wrap;gap:1.25em}.wp-block-post-template.is-flex-container>li{margin:0;width:100%}@media (min-width: 600px){.wp-block-post-template.is-flex-container.is-flex-container.columns-2>li{width:calc(50% - .625em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-3>li{width:calc((100% / 3) - 1.25em + (1.25em / 3))}.wp-block-post-template.is-flex-container.is-flex-container.columns-4>li{width:calc(25% - .9375em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-5>li{width:calc(20% - 1em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-6>li{width:calc((100% / 6) - 1.25em + (1.25em / 6))}}@media (max-width: 600px){.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid{grid-template-columns:1fr}}.wp-block-post-template-is-layout-constrained>li>.alignright,.wp-block-post-template-is-layout-flow>li>.alignright{float:right;margin-inline-start:2em;margin-inline-end:0}.wp-block-post-template-is-layout-constrained>li>.alignleft,.wp-block-post-template-is-layout-flow>li>.alignleft{float:left;margin-inline-start:0;margin-inline-end:2em}.wp-block-post-template-is-layout-constrained>li>.aligncenter,.wp-block-post-template-is-layout-flow>li>.aligncenter{margin-inline-start:auto;margin-inline-end:auto}.wp-block-query-pagination.is-content-justification-space-between>.wp-block-query-pagination-next:last-of-type{margin-inline-start:auto}.wp-block-query-pagination.is-content-justification-space-between>.wp-block-query-pagination-previous:first-child{margin-inline-end:auto}.wp-block-query-pagination .wp-block-query-pagination-previous-arrow{margin-right:1ch;display:inline-block}.wp-block-query-pagination .wp-block-query-pagination-previous-arrow:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-query-pagination .wp-block-query-pagination-next-arrow{margin-left:1ch;display:inline-block}.wp-block-query-pagination .wp-block-query-pagination-next-arrow:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-query-pagination.aligncenter{justify-content:center}.wp-block-query-title{box-sizing:border-box}.wp-block-quote{box-sizing:border-box;overflow-wrap:break-word}.wp-block-quote.is-style-large:where(:not(.is-style-plain)),.wp-block-quote.is-large:where(:not(.is-style-plain)){margin-bottom:1em;padding:0 1em}.wp-block-quote.is-style-large:where(:not(.is-style-plain)) p,.wp-block-quote.is-large:where(:not(.is-style-plain)) p{font-size:1.5em;font-style:italic;line-height:1.6}.wp-block-quote.is-style-large:where(:not(.is-style-plain)) cite,.wp-block-quote.is-style-large:where(:not(.is-style-plain)) footer,.wp-block-quote.is-large:where(:not(.is-style-plain)) cite,.wp-block-quote.is-large:where(:not(.is-style-plain)) footer{font-size:1.125em;text-align:right}.wp-block-quote>cite{display:block}.wp-block-read-more{display:block;width:-moz-fit-content;width:fit-content}.wp-block-read-more:where(:not([style*=text-decoration])){text-decoration:none}.wp-block-read-more:where(:not([style*=text-decoration])):focus,.wp-block-read-more:where(:not([style*=text-decoration])):active{text-decoration:none}ul.wp-block-rss{list-style:none;padding:0}ul.wp-block-rss.wp-block-rss{box-sizing:border-box}ul.wp-block-rss.alignleft{margin-right:2em}ul.wp-block-rss.alignright{margin-left:2em}ul.wp-block-rss.is-grid{display:flex;flex-wrap:wrap;padding:0;list-style:none}ul.wp-block-rss.is-grid li{margin:0 1em 1em 0;width:100%}@media (min-width: 600px){ul.wp-block-rss.columns-2 li{width:calc(50% - 1em)}ul.wp-block-rss.columns-3 li{width:calc((100% / 3) - 1em)}ul.wp-block-rss.columns-4 li{width:calc(25% - 1em)}ul.wp-block-rss.columns-5 li{width:calc(20% - 1em)}ul.wp-block-rss.columns-6 li{width:calc((100% / 6) - 1em)}}.wp-block-rss__item-publish-date,.wp-block-rss__item-author{display:block;font-size:.8125em}.wp-block-search__button{margin-left:10px;word-break:normal}.wp-block-search__button.has-icon{line-height:0}.wp-block-search__button svg{min-width:24px;min-height:24px;width:1.25em;height:1.25em;fill:currentColor;vertical-align:text-bottom}:where(.wp-block-search__button){border:1px solid #ccc;padding:6px 10px}.wp-block-search__inside-wrapper{display:flex;flex:auto;flex-wrap:nowrap;max-width:100%}.wp-block-search__label{width:100%}.wp-block-search__input{padding:8px;flex-grow:1;margin-left:0;margin-right:0;min-width:3rem;border:1px solid #949494;text-decoration:unset!important;appearance:initial}.wp-block-search.wp-block-search__button-only .wp-block-search__button{margin-left:0;flex-shrink:0;max-width:100%}.wp-block-search.wp-block-search__button-only .wp-block-search__button[aria-expanded=true]{max-width:calc(100% - 100px)}.wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{transition-property:width;min-width:0!important}.wp-block-search.wp-block-search__button-only .wp-block-search__input{transition-duration:.3s;flex-basis:100%}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden,.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__inside-wrapper{overflow:hidden}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__input{width:0!important;min-width:0!important;padding-left:0!important;padding-right:0!important;border-left-width:0!important;border-right-width:0!important;flex-grow:0;margin:0;flex-basis:0}:where(.wp-block-search__input){font-family:inherit;font-weight:inherit;font-size:inherit;line-height:inherit;letter-spacing:inherit;text-transform:inherit;font-style:inherit}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper){padding:4px;border:1px solid #949494;box-sizing:border-box}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input{border-radius:0;border:none;padding:0 4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input:focus{outline:none}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) :where(.wp-block-search__button){padding:4px 8px}.wp-block-search.aligncenter .wp-block-search__inside-wrapper{margin:auto}.wp-block[data-align=right] .wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{float:right}.wp-block-separator{border-top:2px solid currentColor;border-left:none;border-right:none;border-bottom:none}:root :where(.wp-block-separator.is-style-dots){text-align:center;line-height:1;height:auto}:root :where(.wp-block-separator.is-style-dots):before{content:"···";color:currentColor;font-size:1.5em;letter-spacing:2em;padding-left:2em;font-family:serif}.wp-block-separator.is-style-dots{background:none!important;border:none!important}.wp-block-site-logo{box-sizing:border-box;line-height:0}.wp-block-site-logo a{display:inline-block;line-height:0}.wp-block-site-logo.is-default-size img{width:120px;height:auto}.wp-block-site-logo img{height:auto;max-width:100%}.wp-block-site-logo a,.wp-block-site-logo img{border-radius:inherit}.wp-block-site-logo.aligncenter{margin-left:auto;margin-right:auto;text-align:center}:root :where(.wp-block-site-logo.is-style-rounded){border-radius:9999px}.wp-block-site-tagline,.wp-block-site-title{box-sizing:border-box}.wp-block-site-title :where(a){color:inherit}.wp-block-social-links{box-sizing:border-box;padding-left:0;padding-right:0;text-indent:0;margin-left:0;background:none}.wp-block-social-links .wp-social-link a,.wp-block-social-links .wp-social-link a:hover{text-decoration:none;border-bottom:0;box-shadow:none}.wp-block-social-links .wp-social-link svg{width:1em;height:1em}.wp-block-social-links .wp-social-link span:not(.screen-reader-text){margin-left:.5em;margin-right:.5em;font-size:.65em}.wp-block-social-links.has-small-icon-size{font-size:16px}.wp-block-social-links,.wp-block-social-links.has-normal-icon-size{font-size:24px}.wp-block-social-links.has-large-icon-size{font-size:36px}.wp-block-social-links.has-huge-icon-size{font-size:48px}.wp-block-social-links.aligncenter{justify-content:center;display:flex}.wp-block-social-links.alignright{justify-content:flex-end}.wp-block-social-link{display:block;border-radius:9999px;transition:transform .1s ease;height:auto}@media (prefers-reduced-motion: reduce){.wp-block-social-link{transition-duration:0s;transition-delay:0s}}.wp-block-social-link a{align-items:center;display:flex;line-height:0;transition:transform .1s ease}.wp-block-social-link:hover{transform:scale(1.1)}.wp-block-social-links .wp-block-social-link.wp-social-link{display:inline-block;margin:0;padding:0}.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:hover,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:active,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:visited,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor svg{color:currentColor;fill:currentColor}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link{background-color:#f0f0f0;color:#444}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-amazon{background-color:#f90;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-bandcamp{background-color:#1ea0c3;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-behance{background-color:#0757fe;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-bluesky{background-color:#0a7aff;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-codepen{background-color:#1e1f26;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-deviantart{background-color:#02e49b;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-dribbble{background-color:#e94c89;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-dropbox{background-color:#4280ff;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-etsy{background-color:#f45800;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-facebook{background-color:#0866ff;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-fivehundredpx{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-flickr{background-color:#0461dd;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-foursquare{background-color:#e65678;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-github{background-color:#24292d;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-goodreads{background-color:#eceadd;color:#382110}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-google{background-color:#ea4434;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-gravatar{background-color:#1d4fc4;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-instagram{background-color:#f00075;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-lastfm{background-color:#e21b24;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-linkedin{background-color:#0d66c2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-mastodon{background-color:#3288d4;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-medium{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-meetup{background-color:#f6405f;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-patreon{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-pinterest{background-color:#e60122;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-pocket{background-color:#ef4155;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-reddit{background-color:#ff4500;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-skype{background-color:#0478d7;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-snapchat{background-color:#fefc00;color:#fff;stroke:#000}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-soundcloud{background-color:#ff5600;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-spotify{background-color:#1bd760;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-telegram{background-color:#2aabee;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-threads{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-tiktok{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-tumblr{background-color:#011835;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-twitch{background-color:#6440a4;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-twitter{background-color:#1da1f2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-vimeo{background-color:#1eb7ea;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-vk{background-color:#4680c2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-wordpress{background-color:#3499cd;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-whatsapp{background-color:#25d366;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-x{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-yelp{background-color:#d32422;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-youtube{background-color:red;color:#fff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link{background:none}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link svg{width:1.25em;height:1.25em}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-amazon{color:#f90}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-bandcamp{color:#1ea0c3}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-behance{color:#0757fe}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-bluesky{color:#0a7aff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-codepen{color:#1e1f26}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-deviantart{color:#02e49b}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-dribbble{color:#e94c89}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-dropbox{color:#4280ff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-etsy{color:#f45800}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-facebook{color:#0866ff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-fivehundredpx{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-flickr{color:#0461dd}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-foursquare{color:#e65678}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-github{color:#24292d}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-goodreads{color:#382110}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-google{color:#ea4434}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-gravatar{color:#1d4fc4}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-instagram{color:#f00075}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-lastfm{color:#e21b24}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-linkedin{color:#0d66c2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-mastodon{color:#3288d4}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-medium{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-meetup{color:#f6405f}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-patreon{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-pinterest{color:#e60122}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-pocket{color:#ef4155}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-reddit{color:#ff4500}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-skype{color:#0478d7}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-snapchat{color:#fff;stroke:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-soundcloud{color:#ff5600}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-spotify{color:#1bd760}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-telegram{color:#2aabee}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-threads{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-tiktok{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-tumblr{color:#011835}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-twitch{color:#6440a4}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-twitter{color:#1da1f2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-vimeo{color:#1eb7ea}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-vk{color:#4680c2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-whatsapp{color:#25d366}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-wordpress{color:#3499cd}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-x{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-yelp{color:#d32422}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-youtube{color:red}.wp-block-social-links.is-style-pill-shape .wp-social-link{width:auto}:root :where(.wp-block-social-links .wp-social-link a){padding:.25em}:root :where(.wp-block-social-links.is-style-logos-only .wp-social-link a){padding:0}:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link a){padding-left:calc((2/3) * 1em);padding-right:calc((2/3) * 1em)}.wp-block-social-links:not(.has-icon-color):not(.has-icon-background-color) .wp-social-link-snapchat .wp-block-social-link-label{color:#000}.wp-block-spacer{clear:both}.wp-block-tag-cloud{box-sizing:border-box}.wp-block-tag-cloud.aligncenter{text-align:center;justify-content:center}.wp-block-tag-cloud.alignfull{padding-left:1em;padding-right:1em}.wp-block-tag-cloud a{display:inline-block;margin-right:5px}.wp-block-tag-cloud span{display:inline-block;margin-left:5px;text-decoration:none}:root :where(.wp-block-tag-cloud.is-style-outline){display:flex;flex-wrap:wrap;gap:1ch}:root :where(.wp-block-tag-cloud.is-style-outline a){border:1px solid currentColor;font-size:unset!important;margin-right:0;padding:1ch 2ch;text-decoration:none!important}.wp-block-table{overflow-x:auto}.wp-block-table table{border-collapse:collapse;width:100%}.wp-block-table thead{border-bottom:3px solid}.wp-block-table tfoot{border-top:3px solid}.wp-block-table .has-fixed-layout{table-layout:fixed;width:100%}.wp-block-table .has-fixed-layout td,.wp-block-table .has-fixed-layout th{word-break:break-word}.wp-block-table.alignleft,.wp-block-table.aligncenter,.wp-block-table.alignright{display:table;width:auto}.wp-block-table.alignleft td,.wp-block-table.alignleft th,.wp-block-table.aligncenter td,.wp-block-table.aligncenter th,.wp-block-table.alignright td,.wp-block-table.alignright th{word-break:break-word}.wp-block-table .has-subtle-light-gray-background-color{background-color:#f3f4f5}.wp-block-table .has-subtle-pale-green-background-color{background-color:#e9fbe5}.wp-block-table .has-subtle-pale-blue-background-color{background-color:#e7f5fe}.wp-block-table .has-subtle-pale-pink-background-color{background-color:#fcf0ef}.wp-block-table.is-style-stripes{border-spacing:0;border-collapse:inherit;background-color:transparent;border-bottom:1px solid #f0f0f0}.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background-color:#f0f0f0}.wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tbody tr:nth-child(odd){background-color:#f3f4f5}.wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tbody tr:nth-child(odd){background-color:#e9fbe5}.wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tbody tr:nth-child(odd){background-color:#e7f5fe}.wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tbody tr:nth-child(odd){background-color:#fcf0ef}.wp-block-table.is-style-stripes th,.wp-block-table.is-style-stripes td{border-color:transparent}.wp-block-table .has-border-color>*,.wp-block-table .has-border-color tr,.wp-block-table .has-border-color th,.wp-block-table .has-border-color td{border-color:inherit}.wp-block-table table[style*=border-top-color]>*,.wp-block-table table[style*=border-top-color] tr:first-child{border-top-color:inherit}.wp-block-table table[style*=border-top-color]>* th,.wp-block-table table[style*=border-top-color]>* td,.wp-block-table table[style*=border-top-color] tr:first-child th,.wp-block-table table[style*=border-top-color] tr:first-child td{border-top-color:inherit}.wp-block-table table[style*=border-top-color] tr:not(:first-child){border-top-color:currentColor}.wp-block-table table[style*=border-right-color]>*,.wp-block-table table[style*=border-right-color] tr,.wp-block-table table[style*=border-right-color] th,.wp-block-table table[style*=border-right-color] td:last-child{border-right-color:inherit}.wp-block-table table[style*=border-bottom-color]>*,.wp-block-table table[style*=border-bottom-color] tr:last-child{border-bottom-color:inherit}.wp-block-table table[style*=border-bottom-color]>* th,.wp-block-table table[style*=border-bottom-color]>* td,.wp-block-table table[style*=border-bottom-color] tr:last-child th,.wp-block-table table[style*=border-bottom-color] tr:last-child td{border-bottom-color:inherit}.wp-block-table table[style*=border-bottom-color] tr:not(:last-child){border-bottom-color:currentColor}.wp-block-table table[style*=border-left-color]>*,.wp-block-table table[style*=border-left-color] tr,.wp-block-table table[style*=border-left-color] th,.wp-block-table table[style*=border-left-color] td:first-child{border-left-color:inherit}.wp-block-table table[style*=border-style]>*,.wp-block-table table[style*=border-style] tr,.wp-block-table table[style*=border-style] th,.wp-block-table table[style*=border-style] td{border-style:inherit}.wp-block-table table[style*=border-width]>*,.wp-block-table table[style*=border-width] tr,.wp-block-table table[style*=border-width] th,.wp-block-table table[style*=border-width] td{border-width:inherit;border-style:inherit}:root :where(.wp-block-table-of-contents){box-sizing:border-box}:where(.wp-block-term-description){box-sizing:border-box;margin-top:var(--wp--style--block-gap);margin-bottom:var(--wp--style--block-gap)}.wp-block-term-description p{margin-top:0;margin-bottom:0}.wp-block-text-columns,.wp-block-text-columns.aligncenter{display:flex}.wp-block-text-columns .wp-block-column{margin:0 1em;padding:0}.wp-block-text-columns .wp-block-column:first-child{margin-left:0}.wp-block-text-columns .wp-block-column:last-child{margin-right:0}.wp-block-text-columns.columns-2 .wp-block-column{width:50%}.wp-block-text-columns.columns-3 .wp-block-column{width:calc(100% / 3)}.wp-block-text-columns.columns-4 .wp-block-column{width:25%}pre.wp-block-verse{overflow:auto;white-space:pre-wrap}:where(pre.wp-block-verse){font-family:inherit}.wp-block-video{box-sizing:border-box}.wp-block-video video{width:100%;vertical-align:middle}@supports (position: sticky){.wp-block-video [poster]{object-fit:cover}}.wp-block-video.aligncenter{text-align:center}.wp-block-video :where(figcaption){margin-top:.5em;margin-bottom:1em}.editor-styles-wrapper,.entry-content{counter-reset:footnotes}a[data-fn].fn{vertical-align:super;font-size:smaller;counter-increment:footnotes;display:inline-flex;text-decoration:none;text-indent:-9999999px}a[data-fn].fn:after{content:"[" counter(footnotes) "]";text-indent:0;float:left}.wp-element-button{cursor:pointer}:root{--wp--preset--font-size--normal: 16px;--wp--preset--font-size--huge: 42px}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}.has-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}.has-text-align-center{text-align:center}.has-text-align-left{text-align:left}.has-text-align-right{text-align:right}#end-resizable-editor-section{display:none}.aligncenter{clear:both}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.screen-reader-text:focus{background-color:#ddd;clip:auto!important;clip-path:none;color:#444;display:block;font-size:1em;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}html :where(.has-border-color){border-style:solid}html :where([style*=border-top-color]){border-top-style:solid}html :where([style*=border-right-color]){border-right-style:solid}html :where([style*=border-bottom-color]){border-bottom-style:solid}html :where([style*=border-left-color]){border-left-style:solid}html :where([style*=border-width]){border-style:solid}html :where([style*=border-top-width]){border-top-style:solid}html :where([style*=border-right-width]){border-right-style:solid}html :where([style*=border-bottom-width]){border-bottom-style:solid}html :where([style*=border-left-width]){border-left-style:solid}html :where(img[class*=wp-image-]){height:auto;max-width:100%}:where(figure){margin:0 0 1em}html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset: var(--wp-admin--admin-bar--height, 0px)}@media screen and (max-width: 600px){html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset: 0px}}ul.wp-block-archives{padding-left:2.5em}.wp-block-audio{margin-left:0;margin-right:0;position:relative}.wp-block-audio.is-transient audio{opacity:.3}.wp-block-audio .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.wp-block-avatar__image img{width:100%}.wp-block-avatar.aligncenter .components-resizable-box__container{margin:0 auto}.wp-block[data-align=center]>.wp-block-button{text-align:center;margin-left:auto;margin-right:auto}.wp-block[data-align=right]>.wp-block-button{text-align:right}.wp-block-button{position:relative;cursor:text}.wp-block-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.wp-block-button[data-rich-text-placeholder]:after{opacity:.8}div[data-type="core/button"]{display:table}.wp-block-buttons>.wp-block{margin:0}.wp-block-buttons>.wp-block-button.wp-block-button.wp-block-button.wp-block-button.wp-block-button{margin:0}.wp-block-buttons>.block-list-appender{display:inline-flex;align-items:center}.wp-block-buttons.is-vertical>.block-list-appender .block-list-appender__toggle{justify-content:flex-start}.wp-block-buttons>.wp-block-button:focus{box-shadow:none}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center]{margin-left:auto;margin-right:auto;margin-top:0;width:100%}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center] .wp-block-button{margin-bottom:0}.wp-block[data-align=center]>.wp-block-buttons{align-items:center;justify-content:center}.wp-block[data-align=right]>.wp-block-buttons{justify-content:flex-end}.wp-block-categories ul{padding-left:2.5em}.wp-block-categories ul ul{margin-top:6px}[data-align=center] .wp-block-categories{text-align:center}.wp-block-categories__indentation{padding-left:16px}.wp-block-code code{background:none}.wp-block-columns :where(.wp-block){max-width:none;margin-left:0;margin-right:0}html :where(.wp-block-column){margin-top:0;margin-bottom:0}.wp-block-post-comments,.wp-block-comments__legacy-placeholder{box-sizing:border-box}.wp-block-post-comments .alignleft,.wp-block-comments__legacy-placeholder .alignleft{float:left}.wp-block-post-comments .alignright,.wp-block-comments__legacy-placeholder .alignright{float:right}.wp-block-post-comments .navigation:after,.wp-block-comments__legacy-placeholder .navigation:after{content:"";display:table;clear:both}.wp-block-post-comments .commentlist,.wp-block-comments__legacy-placeholder .commentlist{clear:both;list-style:none;margin:0;padding:0}.wp-block-post-comments .commentlist .comment,.wp-block-comments__legacy-placeholder .commentlist .comment{min-height:2.25em;padding-left:3.25em}.wp-block-post-comments .commentlist .comment p,.wp-block-comments__legacy-placeholder .commentlist .comment p{font-size:1em;line-height:1.8;margin:1em 0}.wp-block-post-comments .commentlist .children,.wp-block-comments__legacy-placeholder .commentlist .children{list-style:none;margin:0;padding:0}.wp-block-post-comments .comment-author,.wp-block-comments__legacy-placeholder .comment-author{line-height:1.5}.wp-block-post-comments .comment-author .avatar,.wp-block-comments__legacy-placeholder .comment-author .avatar{border-radius:1.5em;display:block;float:left;height:2.5em;margin-top:.5em;margin-right:.75em;width:2.5em}.wp-block-post-comments .comment-author cite,.wp-block-comments__legacy-placeholder .comment-author cite{font-style:normal}.wp-block-post-comments .comment-meta,.wp-block-comments__legacy-placeholder .comment-meta{font-size:.875em;line-height:1.5}.wp-block-post-comments .comment-meta b,.wp-block-comments__legacy-placeholder .comment-meta b{font-weight:400}.wp-block-post-comments .comment-meta .comment-awaiting-moderation,.wp-block-comments__legacy-placeholder .comment-meta .comment-awaiting-moderation{margin-top:1em;margin-bottom:1em;display:block}.wp-block-post-comments .comment-body .commentmetadata,.wp-block-comments__legacy-placeholder .comment-body .commentmetadata{font-size:.875em}.wp-block-post-comments .comment-form-comment label,.wp-block-comments__legacy-placeholder .comment-form-comment label,.wp-block-post-comments .comment-form-author label,.wp-block-comments__legacy-placeholder .comment-form-author label,.wp-block-post-comments .comment-form-email label,.wp-block-comments__legacy-placeholder .comment-form-email label,.wp-block-post-comments .comment-form-url label,.wp-block-comments__legacy-placeholder .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments .comment-form textarea,.wp-block-comments__legacy-placeholder .comment-form textarea,.wp-block-post-comments .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-comments__legacy-placeholder .comment-form input:not([type=submit]):not([type=checkbox]){display:block;box-sizing:border-box;width:100%}.wp-block-post-comments .comment-form-cookies-consent,.wp-block-comments__legacy-placeholder .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent,.wp-block-comments__legacy-placeholder .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments .comment-reply-title,.wp-block-comments__legacy-placeholder .comment-reply-title{margin-bottom:0}.wp-block-post-comments .comment-reply-title :where(small),.wp-block-comments__legacy-placeholder .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium, smaller);margin-left:.5em}.wp-block-post-comments .reply,.wp-block-comments__legacy-placeholder .reply{font-size:.875em;margin-bottom:1.4em}.wp-block-post-comments textarea,.wp-block-comments__legacy-placeholder textarea,.wp-block-post-comments input:not([type=submit]),.wp-block-comments__legacy-placeholder input:not([type=submit]){border:1px solid #949494;font-size:1em;font-family:inherit}.wp-block-post-comments textarea,.wp-block-comments__legacy-placeholder textarea,.wp-block-post-comments input:not([type=submit]):not([type=checkbox]),.wp-block-comments__legacy-placeholder input:not([type=submit]):not([type=checkbox]){padding:calc(.667em + 2px)}:where(.wp-block-post-comments input[type=submit]){border:none}.block-library-comments-toolbar__popover .components-popover__content{min-width:230px}.wp-block-comments__legacy-placeholder *{pointer-events:none}.wp-block-comment-author-avatar__placeholder{border:currentColor 1px dashed;width:100%;height:100%;stroke:currentColor;stroke-dasharray:3}.wp-block[data-align=center]>.wp-block-comments-pagination{justify-content:center}:where(.editor-styles-wrapper) .wp-block-comments-pagination{max-width:100%}:where(.editor-styles-wrapper) .wp-block-comments-pagination.block-editor-block-list__layout{margin:0}.wp-block-comments-pagination>.wp-block-comments-pagination-next,.wp-block-comments-pagination>.wp-block-comments-pagination-previous,.wp-block-comments-pagination>.wp-block-comments-pagination-numbers{margin:.5em .5em .5em 0}.wp-block-comments-pagination>.wp-block-comments-pagination-next:last-child,.wp-block-comments-pagination>.wp-block-comments-pagination-previous:last-child,.wp-block-comments-pagination>.wp-block-comments-pagination-numbers:last-child{margin-right:0}.wp-block-comments-pagination-numbers a{text-decoration:underline}.wp-block-comments-pagination-numbers .page-numbers{margin-right:2px}.wp-block-comments-pagination-numbers .page-numbers:last-child{margin-right:0}.wp-block-comments-title.has-background{padding:inherit}.wp-block-cover.is-placeholder{padding:0!important;display:flex;align-items:stretch;min-height:240px}.wp-block-cover.is-placeholder .components-placeholder.is-large{justify-content:flex-start;z-index:1}.wp-block-cover.is-placeholder:focus:after{min-height:auto}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover.is-transient{position:relative}.wp-block-cover.is-transient:before{background-color:#fff;content:"";height:100%;opacity:.3;position:absolute;width:100%;z-index:1}.wp-block-cover .components-spinner{position:absolute;z-index:1;top:50%;left:50%;transform:translate(-50%,-50%);margin:0}.wp-block-cover .wp-block-cover__inner-container{text-align:left;margin-left:0;margin-right:0}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}.wp-block-cover .wp-block-cover__image--placeholder-image{position:absolute;inset:0}[data-align=left]>.wp-block-cover,[data-align=right]>.wp-block-cover{max-width:420px;width:100%}.block-library-cover__reset-button{margin-left:auto}.block-library-cover__resize-container{position:absolute!important;inset:0;min-height:50px}.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .components-popover__content>div,.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .block-library-cover__resize-container{pointer-events:none;overflow:visible}.wp-block-cover>.components-drop-zone .components-drop-zone__content{opacity:.8!important}.block-editor-block-patterns-list__list-item .has-parallax.wp-block-cover{background-attachment:scroll}.color-block-support-panel__inner-wrapper>:not(.block-editor-tools-panel-color-gradient-settings__item){margin-top:24px}.wp-block-details summary div{display:inline}.wp-block-embed{margin-left:0;margin-right:0;clear:both}.wp-block-embed.is-loading{display:flex;justify-content:center}.wp-block-embed .wp-block-embed__placeholder-input{flex:1 1 auto}.wp-block-embed .components-placeholder__error{word-break:break-word}.wp-block-post-content .wp-block-embed__learn-more a{color:var(--wp-admin-theme-color)}.block-library-embed__interactive-overlay{position:absolute;inset:0;opacity:0}.wp-block[data-align=left]>.wp-block-embed,.wp-block[data-align=right]>.wp-block-embed{max-width:360px;width:100%}.wp-block[data-align=left]>.wp-block-embed .wp-block-embed__wrapper,.wp-block[data-align=right]>.wp-block-embed .wp-block-embed__wrapper{min-width:280px}.wp-block-file{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;margin-bottom:0}.wp-block[data-align=left]>.wp-block-file,.wp-block[data-align=right]>.wp-block-file{height:auto}.wp-block[data-align=center]>.wp-block-file{text-align:center}.wp-block-file .components-resizable-box__container{margin-bottom:1em}.wp-block-file .wp-block-file__preview{margin-bottom:1em;width:100%;height:100%}.wp-block-file .wp-block-file__preview-overlay{position:absolute;inset:0}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file a{min-width:1em}.wp-block-file a:not(.wp-block-file__button){display:inline-block}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-left:.75em}.wp-block-form-input .is-input-hidden{font-size:.85em;opacity:.3;border:1px dashed;padding:.5em;box-sizing:border-box;background:repeating-linear-gradient(45deg,transparent,transparent 5px,currentColor 5px,currentColor 6px)}.wp-block-form-input .is-input-hidden input[type=text]{background:transparent}.wp-block-form-input.is-selected .is-input-hidden{opacity:1;background:none}.wp-block-form-input.is-selected .is-input-hidden input[type=text]{background:unset}.wp-block-form-submission-notification>*{opacity:.25;border:1px dashed;box-sizing:border-box;background:repeating-linear-gradient(45deg,transparent,transparent 5px,currentColor 5px,currentColor 6px)}.wp-block-form-submission-notification.is-selected>*,.wp-block-form-submission-notification:has(.is-selected)>*{opacity:1;background:none}.wp-block-form-submission-notification.is-selected:after,.wp-block-form-submission-notification:has(.is-selected):after{display:none!important}.wp-block-form-submission-notification:after{display:flex;position:absolute;width:100%;height:100%;top:0;left:0;justify-content:center;align-items:center;font-size:1.1em}.wp-block-form-submission-notification.form-notification-type-success:after{content:attr(data-message-success)}.wp-block-form-submission-notification.form-notification-type-error:after{content:attr(data-message-error)}.wp-block-freeform.block-library-rich-text__tinymce{height:auto}.wp-block-freeform.block-library-rich-text__tinymce p,.wp-block-freeform.block-library-rich-text__tinymce li{line-height:1.8}.wp-block-freeform.block-library-rich-text__tinymce ul,.wp-block-freeform.block-library-rich-text__tinymce ol{padding-left:2.5em;margin-left:0}.wp-block-freeform.block-library-rich-text__tinymce blockquote{margin:0;box-shadow:inset 0 0 #ddd;border-left:4px solid #000;padding-left:1em}.wp-block-freeform.block-library-rich-text__tinymce pre{white-space:pre-wrap;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;color:#1e1e1e}.wp-block-freeform.block-library-rich-text__tinymce>*:first-child{margin-top:0}.wp-block-freeform.block-library-rich-text__tinymce>*:last-child{margin-bottom:0}.wp-block-freeform.block-library-rich-text__tinymce.mce-edit-focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce a{color:var(--wp-admin-theme-color)}.wp-block-freeform.block-library-rich-text__tinymce:focus a[data-mce-selected]{padding:0 2px;margin:0 -2px;border-radius:2px;box-shadow:0 0 0 1px #e5f5fa;background:#e5f5fa}.wp-block-freeform.block-library-rich-text__tinymce code{padding:2px;border-radius:2px;color:#1e1e1e;background:#f0f0f0;font-family:Menlo,Consolas,monaco,monospace;font-size:14px}.wp-block-freeform.block-library-rich-text__tinymce:focus code[data-mce-selected]{background:#ddd}.wp-block-freeform.block-library-rich-text__tinymce .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-freeform.block-library-rich-text__tinymce .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-freeform.block-library-rich-text__tinymce .aligncenter{display:block;margin-left:auto;margin-right:auto}.wp-block-freeform.block-library-rich-text__tinymce .wp-more-tag{width:96%;height:20px;display:block;margin:15px auto;outline:0;cursor:default;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAADtgAAAAoBAMAAAA86gLBAAAAJFBMVEVMaXG7u7vBwcHDw8POzs68vLzGxsbMzMy+vr7AwMDQ0NDGxsYKLGzpAAAADHRSTlMA///zWf+/f///TMxNVGuqAAABwklEQVR4Ae3dMXLaQBTH4bfj8UCpx8hq0vgKvgFNemhT6Qo6gg6R+0ZahM2QLmyBJ99XWP9V5+o3jIUcLQEAAAAAAAAAAAAAAAAAAAAAAABQ8j0WL9lfTtlt18uNXAUA8O/KVtfa1tdcrOdSh9gCQAMlh1hMNbZZ1bsrsQWABsrhLRbz7z5in/32UbfUMUbkMQCAh5RfGYv82UdMdZ6HS2wjT2ILAI8r3XmM2B3WvM59vfO2xXYW2yYAENuPU8S+X/N67mKxzy225yaxBQCxLV392UdcvwV0jPVUj98ntkBWT7C7+9u2/V/vGtvXIWJ6/4rtbottWa6Ri0NUT/u72LYttrb97LHdvUXMxxrb8TO2W2TF1rYbbLG1bbGNjMi4+2Sbi1FsbbvNFlvbFtt5fDnE3d9sP1/XeIyV2Nr2U2/guZUuptNrH/dPI9eLB6SaAEBs6wPJf3/PNk9tYgsAYrv/8TFuzx/fvkFqGtrEFgDEdpcZUb7ejXy6ntrEFgDENvL6gsas4vbdyKt4DACI7TxElJv/Z7udpqFNbAFAbKduy2uU2trttM/x28UWAAAAAAAAAAAAAAAAAAAAAAAAAADgDyPwGmGTCZp7AAAAAElFTkSuQmCC);background-size:1900px 20px;background-repeat:no-repeat;background-position:center}.wp-block-freeform.block-library-rich-text__tinymce img::selection{background-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce div.mceTemp{-ms-user-select:element}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption{margin:0;max-width:100%}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption a,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption img{display:block}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption *{-webkit-user-drag:none}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption .wp-caption-dd{padding-top:.5em;margin:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview{width:99.99%;position:relative;clear:both;margin-bottom:16px;border:1px solid transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview iframe{display:block;max-width:100%;background:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .mce-shim{position:absolute;inset:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected="2"] .mce-shim{display:none}.wp-block-freeform.block-library-rich-text__tinymce .wpview .loading-placeholder{border:1px dashed #ddd;padding:10px}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error{border:1px solid #ddd;padding:1em 0;margin:0;word-wrap:break-word}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error p{margin:0;text-align:center}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .loading-placeholder,.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .wpview-error{border-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .dashicons{display:block;margin:0 auto;width:32px;height:32px;font-size:32px}.wp-block-freeform.block-library-rich-text__tinymce .wpview.wpview-type-gallery:after{content:"";display:table;clear:both}.wp-block-freeform.block-library-rich-text__tinymce .gallery img[data-mce-selected]:focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce .gallery a{cursor:default}.wp-block-freeform.block-library-rich-text__tinymce .gallery{margin:auto -6px;padding:6px 0;line-height:1;overflow-x:hidden}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-item{float:left;margin:0;text-align:center;padding:6px;box-sizing:border-box}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption,.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-icon{margin:0}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption{font-size:13px;margin:4px 0}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-1 .gallery-item{width:100%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-2 .gallery-item{width:50%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-3 .gallery-item{width:33.3333333333%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-4 .gallery-item{width:25%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-5 .gallery-item{width:20%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-6 .gallery-item{width:16.6666666667%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-7 .gallery-item{width:14.2857142857%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-8 .gallery-item{width:12.5%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-9 .gallery-item{width:11.1111111111%}.wp-block-freeform.block-library-rich-text__tinymce .gallery img{max-width:100%;height:auto;border:none;padding:0}div[data-type="core/freeform"]:before{transition:border-color .1s linear,box-shadow .1s linear;border:1px solid #ddd;outline:1px solid transparent}@media (prefers-reduced-motion: reduce){div[data-type="core/freeform"]:before{transition-duration:0s;transition-delay:0s}}div[data-type="core/freeform"].is-selected:before{border-color:#1e1e1e}div[data-type="core/freeform"] .block-editor-block-contextual-toolbar+div{margin-top:0;padding-top:0}div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce:after{content:"";display:table;clear:both}.mce-toolbar-grp .mce-btn.mce-active button,.mce-toolbar-grp .mce-btn.mce-active:hover button,.mce-toolbar-grp .mce-btn.mce-active i,.mce-toolbar-grp .mce-btn.mce-active:hover i{color:#1e1e1e}.mce-toolbar-grp .mce-rtl .mce-flow-layout-item.mce-last{margin-right:0;margin-left:8px}.mce-toolbar-grp .mce-btn i{font-style:normal}.block-library-classic__toolbar{display:none;width:auto;margin:0 0 8px;position:sticky;z-index:31;top:0;border:1px solid #ddd;border-bottom:none;border-radius:2px;padding:0}div[data-type="core/freeform"].is-selected .block-library-classic__toolbar{display:block;border-color:#1e1e1e}.block-library-classic__toolbar .mce-tinymce{box-shadow:none}@media (min-width: 600px){.block-library-classic__toolbar{padding:0}}.block-library-classic__toolbar:empty{display:block;background:#f5f5f5;border-bottom:1px solid #e2e4e7}.block-library-classic__toolbar:empty:before{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;content:attr(data-placeholder);color:#555d66;line-height:37px;padding:14px}.block-library-classic__toolbar div.mce-toolbar-grp{border-bottom:1px solid #1e1e1e}.block-library-classic__toolbar .mce-tinymce-inline,.block-library-classic__toolbar .mce-tinymce-inline>div,.block-library-classic__toolbar div.mce-toolbar-grp,.block-library-classic__toolbar div.mce-toolbar-grp>div,.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar .mce-menubar>div{height:auto!important;width:100%!important}.block-library-classic__toolbar .mce-container-body.mce-abs-layout{overflow:visible}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar div.mce-toolbar-grp{position:static}.block-library-classic__toolbar .mce-toolbar-grp>div{padding:1px 3px}.block-library-classic__toolbar .mce-toolbar-grp .mce-toolbar:not(:first-child){display:none}.block-library-classic__toolbar.has-advanced-toolbar .mce-toolbar-grp .mce-toolbar{display:block}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area iframe{height:50vh!important}@media (min-width: 960px){.block-editor-freeform-modal .block-editor-freeform-modal__content:not(.is-full-screen){height:9999rem}.block-editor-freeform-modal .block-editor-freeform-modal__content .components-modal__header+div{height:100%}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-tinymce{height:calc(100% - 52px)}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-container-body{height:100%;display:flex;flex-direction:column;min-width:50vw}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area{flex-grow:1;display:flex;flex-direction:column}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area iframe{flex-grow:1;height:10px!important}}.block-editor-freeform-modal__actions{margin-top:16px}:root :where(figure.wp-block-gallery){display:block}:root :where(figure.wp-block-gallery)>.blocks-gallery-caption{flex:0 0 100%}:root :where(figure.wp-block-gallery)>.blocks-gallery-media-placeholder-wrapper{flex-basis:100%}:root :where(figure.wp-block-gallery) .wp-block-image .components-notice.is-error{display:block}:root :where(figure.wp-block-gallery) .wp-block-image .components-notice__content{margin:4px 0}:root :where(figure.wp-block-gallery) .wp-block-image .components-notice__dismiss{position:absolute;top:0;right:5px}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .components-placeholder__label{display:none}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button{margin-bottom:0}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder{margin:0}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder .components-placeholder__label{display:flex}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder figcaption{z-index:2}:root :where(figure.wp-block-gallery) .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.gallery-settings-buttons .components-button:first-child{margin-right:8px}.gallery-image-sizes .components-base-control__label{margin-bottom:4px}.gallery-image-sizes .gallery-image-sizes__loading{display:flex;align-items:center;color:#757575;font-size:12px}.gallery-image-sizes .components-spinner{margin:0 8px 0 4px}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected:before{box-shadow:0 0 0 1px #fff inset,0 0 0 3px var(--wp-admin-theme-color) inset;content:"";outline:2px solid transparent;position:absolute;inset:0;z-index:1;pointer-events:none}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu{display:inline-flex}.blocks-gallery-item .block-editor-media-placeholder{margin:0;height:100%}.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label{display:flex}.block-library-gallery-item__inline-menu{display:none;position:absolute;top:-2px;margin:8px;z-index:20;transition:box-shadow .2s ease-out;border-radius:2px;background:#fff;border:1px solid #1e1e1e}@media (prefers-reduced-motion: reduce){.block-library-gallery-item__inline-menu{transition-duration:0s;transition-delay:0s}}.block-library-gallery-item__inline-menu:hover{box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a}@media (min-width: 600px){.columns-7 .block-library-gallery-item__inline-menu,.columns-8 .block-library-gallery-item__inline-menu{padding:2px}}.block-library-gallery-item__inline-menu .components-button.has-icon:not(:focus){border:none;box-shadow:none}@media (min-width: 600px){.columns-7 .block-library-gallery-item__inline-menu .components-button.has-icon,.columns-8 .block-library-gallery-item__inline-menu .components-button.has-icon{padding:0;width:inherit;height:inherit}}.block-library-gallery-item__inline-menu.is-left{left:-2px}.block-library-gallery-item__inline-menu.is-right{right:-2px}.wp-block-gallery ul.blocks-gallery-grid{padding:0;margin:0}@media (min-width: 600px){.wp-block-update-gallery-modal{max-width:480px}}.wp-block-update-gallery-modal-buttons{display:flex;justify-content:flex-end;gap:12px}.wp-block-group .block-editor-block-list__insertion-point{left:0;right:0}[data-type="core/group"].is-selected .block-list-appender{margin-left:0;margin-right:0}[data-type="core/group"].is-selected .has-background .block-list-appender{margin-top:18px;margin-bottom:18px}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child{gap:inherit;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-default-block-appender__content,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{display:inherit;width:100%;flex-direction:inherit;flex:1}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after{content:"";display:flex;flex:1 0 48px;pointer-events:none;min-height:46px;border:1px dashed currentColor}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-button-block-appender{pointer-events:all}.block-library-html__edit .block-library-html__preview-overlay{position:absolute;width:100%;height:100%;top:0;left:0}.block-library-html__edit .block-editor-plain-text{box-sizing:border-box;max-height:250px;font-family:Menlo,Consolas,monaco,monospace!important;color:#1e1e1e!important;background:#fff!important;padding:12px!important;border:1px solid #1e1e1e!important;box-shadow:none!important;border-radius:2px!important;font-size:16px!important;direction:ltr}@media (min-width: 600px){.block-library-html__edit .block-editor-plain-text{font-size:13px!important}}.block-library-html__edit .block-editor-plain-text:focus{border-color:var(--wp-admin-theme-color)!important;box-shadow:0 0 0 1px var(--wp-admin-theme-color)!important;outline:2px solid transparent!important}.wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder{color:#1e1e1e;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;border:none;filter:none!important}.wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder>svg{opacity:0}.wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder .components-placeholder__illustration{display:none}.wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder:before{opacity:0}.wp-block-image.wp-block-image .block-bindings-media-placeholder-message{opacity:0}.wp-block-image.wp-block-image.is-selected .block-bindings-media-placeholder-message{opacity:1}.wp-block-image.wp-block-image .components-placeholder__label,.wp-block-image.wp-block-image .components-placeholder__instructions,.wp-block-image.wp-block-image .components-button{transition:none}figure.wp-block-image:not(.wp-block){margin:0}.wp-block-image{position:relative}.wp-block-image .is-applying img,.wp-block-image.is-transient img{opacity:.3}.wp-block-image figcaption img{display:inline}.wp-block-image .components-spinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);margin:0}.wp-block-image__placeholder{aspect-ratio:4/3}.wp-block-image__placeholder.has-illustration:before{background:#fff;opacity:.8}.wp-block-image__placeholder .components-placeholder__illustration{opacity:.1}.wp-block-image .components-resizable-box__container{display:table}.wp-block-image .components-resizable-box__container img{display:block;width:inherit;height:inherit}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{position:absolute;left:0;right:0;margin:-1px 0}@media (min-width: 600px){.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{margin:-1px}}[data-align=wide]>.wp-block-image img,[data-align=full]>.wp-block-image img{height:auto;width:100%}.wp-block[data-align=left]>.wp-block-image,.wp-block[data-align=center]>.wp-block-image,.wp-block[data-align=right]>.wp-block-image{display:table}.wp-block[data-align=left]>.wp-block-image>figcaption,.wp-block[data-align=center]>.wp-block-image>figcaption,.wp-block[data-align=right]>.wp-block-image>figcaption{display:table-caption;caption-side:bottom}.wp-block[data-align=left]>.wp-block-image{margin:.5em 1em .5em 0}.wp-block[data-align=right]>.wp-block-image{margin:.5em 0 .5em 1em}.wp-block[data-align=center]>.wp-block-image{margin-left:auto;margin-right:auto;text-align:center}.wp-block-image__crop-area{position:relative;max-width:100%;width:100%;overflow:hidden}.wp-block-image__crop-area .reactEasyCrop_Container{pointer-events:auto}.wp-block-image__crop-area .reactEasyCrop_Container .reactEasyCrop_Image{border:none;border-radius:0}.wp-block-image__crop-icon{padding:0 8px;min-width:48px;display:flex;justify-content:center;align-items:center}.wp-block-image__crop-icon svg{fill:currentColor}.wp-block-image__zoom .components-popover__content{min-width:260px;overflow:visible!important}.wp-block-image__toolbar_content_textarea{width:250px}.wp-block-latest-posts>li{overflow:hidden}.wp-block-latest-posts li a>div{display:inline}:root :where(.wp-block-latest-posts){padding-left:2.5em}:root :where(.wp-block-latest-posts.is-grid),:root :where(.wp-block-latest-posts__list){padding-left:0}.wp-block-latest-posts__post-content-radio{margin-bottom:24px}.wp-block-latest-posts__post-content-radio:last-child{margin-bottom:8px}.wp-block-media-text__media{position:relative}.wp-block-media-text__media.is-transient img{opacity:.3}.wp-block-media-text__media .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.wp-block-media-text .__resizable_base__{grid-column:1/span 2;grid-row:2}.wp-block-media-text .editor-media-container__resizer{width:100%!important}.wp-block-media-text.is-image-fill .editor-media-container__resizer,.wp-block-media-text.is-image-fill .components-placeholder.has-illustration,.wp-block-media-text.is-image-fill-element .editor-media-container__resizer,.wp-block-media-text.is-image-fill-element .components-placeholder.has-illustration{height:100%!important}.wp-block-media-text>.block-editor-block-list__layout>.block-editor-block-list__block{max-width:unset}.wp-block-media-text--placeholder-image{min-height:205px}.block-editor-block-list__block[data-type="core/more"]{max-width:100%;text-align:center;margin-top:28px;margin-bottom:28px}.wp-block-more{display:block;text-align:center;white-space:nowrap}.wp-block-more input[type=text]{position:relative;font-size:13px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#757575;border:none;box-shadow:none;white-space:nowrap;text-align:center;margin:0;border-radius:4px;background:#fff;padding:6px 8px;height:24px;max-width:100%}.wp-block-more input[type=text]:focus{box-shadow:none}.wp-block-more:before{content:"";position:absolute;top:50%;left:0;right:0;border-top:3px dashed #ccc}.editor-styles-wrapper .wp-block-navigation ul{margin-top:0;margin-bottom:0;margin-left:0;padding-left:0}.editor-styles-wrapper .wp-block-navigation .wp-block-navigation-item.wp-block{margin:revert}.wp-block-navigation-item__label{display:inline}.wp-block-navigation__container,.wp-block-navigation-item{background-color:inherit}.wp-block-navigation:not(.is-selected):not(.has-child-selected) .has-child:hover>.wp-block-navigation__submenu-container{opacity:0;visibility:hidden}.has-child.is-selected>.wp-block-navigation__submenu-container,.has-child.has-child-selected>.wp-block-navigation__submenu-container{display:flex;opacity:1;visibility:visible}.is-dragging-components-draggable .has-child.is-dragging-within>.wp-block-navigation__submenu-container{opacity:1;visibility:visible}.is-editing>.wp-block-navigation__container{visibility:visible;opacity:1;display:flex;flex-direction:column}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container{opacity:1;visibility:hidden}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container .block-editor-block-draggable-chip-wrapper{visibility:visible}.is-editing>.wp-block-navigation__submenu-container>.block-list-appender{display:block;position:static;width:100%}.is-editing>.wp-block-navigation__submenu-container>.block-list-appender .block-editor-button-block-appender{color:#fff;background:#1e1e1e;padding:0;width:24px;margin-right:0;margin-left:auto}.wp-block-navigation__submenu-container .block-list-appender{display:none}.block-library-colors-selector{width:auto}.block-library-colors-selector .block-library-colors-selector__toggle{display:block;margin:0 auto;padding:3px;width:auto}.block-library-colors-selector .block-library-colors-selector__icon-container{height:30px;position:relative;margin:0 auto;padding:3px;display:flex;align-items:center;border-radius:4px}.block-library-colors-selector .block-library-colors-selector__state-selection{margin-left:auto;margin-right:auto;border-radius:11px;box-shadow:inset 0 0 0 1px #0003;width:22px;min-width:22px;height:22px;min-height:22px;line-height:20px;padding:2px}.block-library-colors-selector .block-library-colors-selector__state-selection>svg{min-width:auto!important}.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg,.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg path{color:inherit}.block-library-colors-selector__popover .color-palette-controller-container{padding:16px}.block-library-colors-selector__popover .components-base-control__label{height:20px;line-height:20px}.block-library-colors-selector__popover .component-color-indicator{float:right;margin-top:2px}.block-library-colors-selector__popover .components-panel__body-title{display:none}.wp-block-navigation .wp-block+.block-list-appender .block-editor-button-block-appender{background-color:#1e1e1e;color:#fff}.wp-block-navigation .wp-block+.block-list-appender .block-editor-button-block-appender.block-editor-button-block-appender.block-editor-button-block-appender{padding:0}.wp-block-navigation .wp-block .wp-block .block-editor-button-block-appender{background-color:transparent;color:#1e1e1e}@keyframes loadingpulse{0%{opacity:1}50%{opacity:.5}to{opacity:1}}.components-placeholder.wp-block-navigation-placeholder{outline:none;padding:0;box-shadow:none;background:none;min-height:0;color:inherit}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset{font-size:inherit}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset .components-button{margin-bottom:0}.wp-block-navigation.is-selected .components-placeholder.wp-block-navigation-placeholder{color:#1e1e1e}.wp-block-navigation-placeholder__preview{display:flex;align-items:center;min-width:96px;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:currentColor;background:transparent}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__preview{display:none}.wp-block-navigation-placeholder__preview:before{content:"";display:block;position:absolute;inset:0;pointer-events:none;border:1px dashed currentColor;border-radius:inherit}.wp-block-navigation-placeholder__preview>svg{fill:currentColor}.wp-block-navigation.is-vertical .is-small .components-placeholder__fieldset,.wp-block-navigation.is-vertical .is-medium .components-placeholder__fieldset{min-height:90px}.wp-block-navigation.is-vertical .is-large .components-placeholder__fieldset{min-height:132px}.wp-block-navigation-placeholder__preview,.wp-block-navigation-placeholder__controls{padding:6px 8px;flex-direction:row;align-items:flex-start}.wp-block-navigation-placeholder__controls{border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;display:none;position:relative;z-index:1;float:left;width:100%}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__controls{display:flex}.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator+hr,.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator,.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator+hr{display:none}.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions,.wp-block-navigation.is-vertical .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions{flex-direction:column;align-items:flex-start}.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr,.wp-block-navigation.is-vertical .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr{display:none}.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__icon{margin-right:12px;height:36px}.wp-block-navigation-placeholder__actions__indicator{display:flex;padding:0 6px 0 0;align-items:center;justify-content:flex-start;line-height:0;height:36px;margin-left:4px}.wp-block-navigation-placeholder__actions__indicator svg{margin-right:4px;fill:currentColor}.wp-block-navigation .components-placeholder.is-medium .components-placeholder__fieldset{flex-direction:row!important}.wp-block-navigation-placeholder__actions{display:flex;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;gap:6px;align-items:center;height:100%}.wp-block-navigation-placeholder__actions .components-dropdown,.wp-block-navigation-placeholder__actions>.components-button{margin-right:0}.wp-block-navigation-placeholder__actions.wp-block-navigation-placeholder__actions hr{border:0;min-height:1px;min-width:1px;background-color:#1e1e1e;margin:auto 0;height:100%;max-height:16px}@media (min-width: 600px){.wp-block-navigation__responsive-container:not(.is-menu-open) .components-button.wp-block-navigation__responsive-container-close{display:none}}.wp-block-navigation__responsive-container.is-menu-open{position:fixed;top:155px}@media (min-width: 782px){.wp-block-navigation__responsive-container.is-menu-open{top:93px}}@media (min-width: 782px){.wp-block-navigation__responsive-container.is-menu-open{left:36px}}@media (min-width: 960px){.wp-block-navigation__responsive-container.is-menu-open{left:160px}}.is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:141px}.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{left:0;top:155px}@media (min-width: 782px){.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{top:61px}}.is-fullscreen-mode .is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-fullscreen-mode .is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:109px}body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-open{inset:0}.components-button.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open,.components-button.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close{padding:0;height:auto;color:inherit}.components-heading.wp-block-navigation-off-canvas-editor__title{margin:0}.wp-block-navigation-off-canvas-editor__header{margin-bottom:8px}.is-menu-open .wp-block-navigation__responsive-container-content * .block-list-appender{margin-top:16px}@keyframes fadein{0%{opacity:0}to{opacity:1}}.wp-block-navigation__loading-indicator-container{padding:8px 12px}.wp-block-navigation .wp-block-navigation__uncontrolled-inner-blocks-loading-indicator{margin-top:0}@keyframes fadeouthalf{0%{opacity:1}to{opacity:.5}}.wp-block-navigation-delete-menu-button{width:100%;justify-content:center;margin-bottom:16px}.components-button.is-link.wp-block-navigation-manage-menus-button{margin-bottom:16px}.wp-block-navigation__overlay-menu-preview{display:flex;align-items:center;justify-content:space-between;width:100%;background-color:#f0f0f0;padding:0 24px;height:64px;margin-bottom:12px}.wp-block-navigation__overlay-menu-preview.open{box-shadow:inset 0 0 0 1px #e0e0e0;outline:1px solid transparent;background-color:#fff}.wp-block-navigation__toolbar-menu-selector.components-toolbar-group:empty{display:none}.wp-block-navigation-placeholder__actions hr+hr{display:none}.wp-block-navigation__navigation-selector{margin-bottom:16px;width:100%}.wp-block-navigation__navigation-selector-button{border:1px solid;justify-content:space-between;width:100%}.wp-block-navigation__navigation-selector-button__icon{flex:0 0 auto}.wp-block-navigation__navigation-selector-button__label{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wp-block-navigation__navigation-selector-button--createnew{border:1px solid;margin-bottom:16px;width:100%}.wp-block-navigation__responsive-container-open.components-button{opacity:1}.wp-block-navigation__menu-inspector-controls{overflow-x:auto;scrollbar-width:thin;scrollbar-gutter:stable both-edges;scrollbar-color:transparent transparent;will-change:transform}.wp-block-navigation__menu-inspector-controls::-webkit-scrollbar{width:12px;height:12px}.wp-block-navigation__menu-inspector-controls::-webkit-scrollbar-track{background-color:transparent}.wp-block-navigation__menu-inspector-controls::-webkit-scrollbar-thumb{background-color:transparent;border-radius:8px;border:3px solid transparent;background-clip:padding-box}.wp-block-navigation__menu-inspector-controls:hover::-webkit-scrollbar-thumb,.wp-block-navigation__menu-inspector-controls:focus::-webkit-scrollbar-thumb,.wp-block-navigation__menu-inspector-controls:focus-within::-webkit-scrollbar-thumb{background-color:#949494}.wp-block-navigation__menu-inspector-controls:hover,.wp-block-navigation__menu-inspector-controls:focus,.wp-block-navigation__menu-inspector-controls:focus-within{scrollbar-color:#949494 transparent}@media (hover: none){.wp-block-navigation__menu-inspector-controls{scrollbar-color:#949494 transparent}}.wp-block-navigation__menu-inspector-controls__empty-message{margin-left:24px}.wp-block-navigation__overlay-menu-icon-toggle-group{margin-bottom:16px}.wp-block-navigation .block-list-appender{position:relative}.wp-block-navigation .has-child{cursor:pointer}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{z-index:28}.wp-block-navigation .has-child:hover .wp-block-navigation__submenu-container{z-index:29}.wp-block-navigation .has-child.is-selected>.wp-block-navigation__submenu-container,.wp-block-navigation .has-child.has-child-selected>.wp-block-navigation__submenu-container{visibility:visible!important;opacity:1!important;min-width:200px!important;height:auto!important;width:auto!important;overflow:visible!important}.wp-block-navigation-item .wp-block-navigation-item__content{cursor:text}.wp-block-navigation-item.is-editing,.wp-block-navigation-item.is-selected{min-width:20px}.wp-block-navigation-item .block-list-appender{margin:16px auto 16px 16px}.wp-block-navigation-link__invalid-item{color:#000}.wp-block-navigation-link__placeholder{position:relative;text-decoration:none!important;box-shadow:none!important;background-image:none!important}.wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span{--wp-underline-color: var(--wp-admin-theme-color);background-image:linear-gradient(45deg,transparent 20%,var(--wp-underline-color) 30%,var(--wp-underline-color) 36%,transparent 46%),linear-gradient(135deg,transparent 54%,var(--wp-underline-color) 64%,var(--wp-underline-color) 70%,transparent 80%);background-position:0 100%;background-size:6px 3px;background-repeat:repeat-x;padding-bottom:.1em}.wp-block-navigation-link__placeholder.wp-block-navigation-item__content{cursor:pointer}.link-control-transform{border-top:1px solid #ccc;padding:0 16px 8px}.link-control-transform__subheading{font-size:11px;text-transform:uppercase;font-weight:500;color:#1e1e1e;margin-bottom:1.5em}.link-control-transform__items{display:flex;justify-content:space-between}.link-control-transform__item{flex-basis:33%;flex-direction:column;gap:8px;height:auto}.wp-block-navigation-submenu{display:block}.wp-block-navigation-submenu .wp-block-navigation__submenu-container{z-index:28}.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container,.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container{visibility:visible!important;opacity:1!important;min-width:200px!important;height:auto!important;width:auto!important;position:absolute;left:-1px;top:100%}@media (min-width: 782px){.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:100%;top:-1px}.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before,.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before{content:"";position:absolute;right:100%;height:100%;display:block;width:.5em;background:transparent}}.block-editor-block-list__block[data-type="core/nextpage"]{max-width:100%;text-align:center;margin-top:28px;margin-bottom:28px}.wp-block-nextpage{display:block;text-align:center;white-space:nowrap}.wp-block-nextpage>span{font-size:13px;position:relative;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#757575;border-radius:4px;background:#fff;padding:6px 8px;height:24px}.wp-block-nextpage:before{content:"";position:absolute;top:50%;left:0;right:0;border-top:3px dashed #ccc}.wp-block-navigation .wp-block-page-list>div,.wp-block-navigation .wp-block-page-list{background-color:inherit}.wp-block-navigation.items-justified-space-between .wp-block-page-list>div,.wp-block-navigation.items-justified-space-between .wp-block-page-list{display:contents;flex:1}.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list>div,.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list>div,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list{flex:inherit}.wp-block-navigation .wp-block-navigation__submenu-container>.wp-block-page-list{display:block}.wp-block-pages-list__item__link{pointer-events:none}@media (min-width: 600px){.wp-block-page-list-modal{max-width:480px}}.wp-block-page-list-modal-buttons{display:flex;justify-content:flex-end;gap:12px}.wp-block-page-list .open-on-click:focus-within>.wp-block-navigation__submenu-container{visibility:visible;opacity:1;width:auto;height:auto;min-width:200px}.wp-block-page-list__loading-indicator-container{padding:8px 12px}.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus{min-height:auto!important}.block-editor-block-list__block[data-empty=true] [data-rich-text-placeholder]{opacity:1}.block-editor-block-list__block[data-empty=true]+.block-editor-block-list__block[data-empty=true]:not([data-custom-placeholder=true]) [data-rich-text-placeholder]{opacity:0}.block-editor-block-list__block[data-type="core/paragraph"].has-text-align-right[style*="writing-mode: vertical-rl"],.block-editor-block-list__block[data-type="core/paragraph"].has-text-align-left[style*="writing-mode: vertical-lr"]{rotate:180deg}.wp-block-post-author__inspector-settings .components-base-control,.wp-block-post-author__inspector-settings .components-base-control:last-child{margin-bottom:0}.wp-block-post-excerpt .wp-block-post-excerpt__excerpt.is-inline{display:inline}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:32px}.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation{text-transform:none;font-style:normal}.wp-block-pullquote .wp-block-pullquote__citation{color:inherit}.wp-block-rss li a>div{display:inline}.wp-block-rss__placeholder-form .wp-block-rss__placeholder-input{flex:1 1 auto}.wp-block[data-align=center] .wp-block-search .wp-block-search__inside-wrapper{margin:auto}.wp-block-search :where(.wp-block-search__button){height:auto;border-radius:initial;display:flex;align-items:center;justify-content:center;text-align:center}.wp-block-search__inspector-controls .components-base-control{margin-bottom:0}.block-editor-block-list__block[data-type="core/separator"]{padding-top:.1px;padding-bottom:.1px}.blocks-shortcode__textarea{box-sizing:border-box;max-height:250px;resize:none;font-family:Menlo,Consolas,monaco,monospace!important;color:#1e1e1e!important;background:#fff!important;padding:12px!important;border:1px solid #1e1e1e!important;box-shadow:none!important;border-radius:2px!important;font-size:16px!important}@media (min-width: 600px){.blocks-shortcode__textarea{font-size:13px!important}}.blocks-shortcode__textarea:focus{border-color:var(--wp-admin-theme-color)!important;box-shadow:0 0 0 1px var(--wp-admin-theme-color)!important;outline:2px solid transparent!important}.wp-block[data-align=center]>.wp-block-site-logo,.wp-block-site-logo.aligncenter>div{display:table;margin-left:auto;margin-right:auto}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo img{display:block;height:auto;max-width:100%}.wp-block-site-logo.is-transient{position:relative}.wp-block-site-logo.is-transient img{opacity:.3}.wp-block-site-logo.is-transient .components-spinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);margin:0}.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{height:60px;width:60px}.wp-block-site-logo.wp-block-site-logo>div,.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container{border-radius:inherit}.wp-block-site-logo.wp-block-site-logo .components-placeholder{display:flex;justify-content:center;align-items:center;padding:0;border-radius:inherit;min-height:48px;min-width:48px;height:100%;width:100%}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-form-file-upload,.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-drop-zone__content-text{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{padding:0;margin:auto;display:flex;justify-content:center;align-items:center;width:48px;height:48px;border-radius:50%;position:relative;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-style:solid;color:#fff}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button>svg{color:inherit}.block-library-site-logo__inspector-upload-container{position:relative}.block-library-site-logo__inspector-upload-container .components-drop-zone__content-icon{display:none}.block-library-site-logo__inspector-upload-container button.components-button,.block-library-site-logo__inspector-media-replace-container button.components-button{color:#1e1e1e;box-shadow:inset 0 0 0 1px #ccc;width:100%;display:block;height:40px}.block-library-site-logo__inspector-upload-container button.components-button:hover,.block-library-site-logo__inspector-media-replace-container button.components-button:hover{color:var(--wp-admin-theme-color)}.block-library-site-logo__inspector-upload-container button.components-button:focus,.block-library-site-logo__inspector-media-replace-container button.components-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-library-site-logo__inspector-upload-container .block-library-site-logo__inspector-media-replace-title,.block-library-site-logo__inspector-media-replace-container .block-library-site-logo__inspector-media-replace-title{word-break:break-all;white-space:normal;text-align:start;text-align-last:center}.block-library-site-logo__inspector-media-replace-container .components-dropdown{display:block}.block-library-site-logo__inspector-media-replace-container img{width:20px;min-width:20px;aspect-ratio:1;box-shadow:inset 0 0 0 1px #0003;border-radius:50%!important}.block-library-site-logo__inspector-media-replace-container .block-library-site-logo__inspector-readonly-logo-preview{padding:6px 12px;display:flex;height:40px}.wp-block-site-tagline__placeholder,.wp-block-site-title__placeholder{padding:1em 0;border:1px dashed}.wp-block-social-links .wp-social-link{line-height:0}.wp-block-social-link-anchor{align-items:center;background:none;border:0;box-sizing:border-box;cursor:pointer;display:inline-flex;font-size:inherit;color:currentColor;height:auto;opacity:1;padding:.25em}.wp-block-social-link-anchor:focus:not(:disabled){border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid transparent}:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link button){padding-left:calc((2/3) * 1em);padding-right:calc((2/3) * 1em)}:root :where(.wp-block-social-links.is-style-logos-only .wp-social-link button){padding:0}.wp-block-social-links div.block-editor-url-input{display:inline-block;margin-left:8px}.wp-social-link:hover{transform:none}:root :where(.wp-block-social-links),:root :where(.wp-block-social-links.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link){padding:0}:root :where(.wp-block-social-links__social-placeholder .wp-social-link){padding:.25em}:root :where(.wp-block-social-links.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-social-link){padding-left:calc((2/3) * 1em);padding-right:calc((2/3) * 1em)}.wp-block-social-links__social-placeholder{display:flex;opacity:.8;list-style:none}.wp-block-social-links__social-placeholder>.wp-social-link{padding-left:0!important;margin-left:0!important;padding-right:0!important;margin-right:0!important;width:0!important;visibility:hidden}.wp-block-social-links__social-placeholder>.wp-block-social-links__social-placeholder-icons{display:flex}.wp-block-social-links__social-placeholder .wp-social-link:before{content:"";display:block;width:1em;height:1em;border-radius:50%}.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link:before{background:currentColor}.wp-block-social-links .wp-block-social-links__social-prompt{min-height:24px;list-style:none;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:24px;margin-top:auto;margin-bottom:auto;cursor:default;padding-right:8px}.wp-block[data-align=center]>.wp-block-social-links,.wp-block.wp-block-social-links.aligncenter{justify-content:center}.block-editor-block-preview__content .components-button:disabled{opacity:1}.wp-social-link.wp-social-link__is-incomplete{opacity:.5}@media (prefers-reduced-motion: reduce){.wp-social-link.wp-social-link__is-incomplete{transition-duration:0s;transition-delay:0s}}.wp-block-social-links .is-selected .wp-social-link__is-incomplete,.wp-social-link.wp-social-link__is-incomplete:hover,.wp-social-link.wp-social-link__is-incomplete:focus{opacity:1}.wp-block-social-links .block-list-appender{position:static}.wp-block-social-links .block-list-appender .block-editor-button-block-appender.components-button.components-button{padding:6px}.wp-block-social-links.has-small-icon-size .block-editor-button-block-appender.components-button.components-button{padding:0}.wp-block-social-links.has-large-icon-size .block-editor-button-block-appender.components-button.components-button{padding:14px}.wp-block-social-links.has-huge-icon-size .block-editor-button-block-appender.components-button.components-button{padding:23px}.block-editor-block-list__block[data-type="core/spacer"]:before{content:"";display:block;position:absolute;z-index:1;width:100%;min-height:8px;min-width:8px;height:100%}.wp-block-spacer.is-hovered .block-library-spacer__resize-container,.block-library-spacer__resize-container.has-show-handle,.wp-block-spacer.is-selected.custom-sizes-disabled{background:#0000001a}.is-dark-theme .wp-block-spacer.is-hovered .block-library-spacer__resize-container,.is-dark-theme .block-library-spacer__resize-container.has-show-handle,.is-dark-theme .wp-block-spacer.is-selected.custom-sizes-disabled{background:#ffffff26}.block-library-spacer__resize-container{clear:both}.block-library-spacer__resize-container:not(.is-resizing){height:100%!important;width:100%!important}.block-library-spacer__resize-container .components-resizable-box__handle:before{content:none}.block-library-spacer__resize-container.resize-horizontal{margin-bottom:0;height:100%!important}.wp-block[data-align=left]>.wp-block-table,.wp-block[data-align=right]>.wp-block-table,.wp-block[data-align=center]>.wp-block-table{height:auto}.wp-block[data-align=left]>.wp-block-table table,.wp-block[data-align=right]>.wp-block-table table,.wp-block[data-align=center]>.wp-block-table table{width:auto}.wp-block[data-align=left]>.wp-block-table td,.wp-block[data-align=left]>.wp-block-table th,.wp-block[data-align=right]>.wp-block-table td,.wp-block[data-align=right]>.wp-block-table th,.wp-block[data-align=center]>.wp-block-table td,.wp-block[data-align=center]>.wp-block-table th{word-break:break-word}.wp-block[data-align=center]>.wp-block-table{text-align:initial}.wp-block[data-align=center]>.wp-block-table table{margin:0 auto}.wp-block-table td,.wp-block-table th{border:1px solid;padding:.5em}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);border-style:double}.wp-block-table table.has-individual-borders>*,.wp-block-table table.has-individual-borders tr,.wp-block-table table.has-individual-borders th,.wp-block-table table.has-individual-borders td{border-width:1px;border-style:solid;border-color:currentColor}.blocks-table__placeholder-form.blocks-table__placeholder-form{display:flex;flex-direction:column;align-items:flex-start;gap:8px}@media (min-width: 782px){.blocks-table__placeholder-form.blocks-table__placeholder-form{flex-direction:row;align-items:flex-end}}.blocks-table__placeholder-input{width:112px}.wp-block-tag-cloud .wp-block-tag-cloud{margin:0;padding:0;border:none;border-radius:inherit}.wp-block-tag-cloud__inspector-settings .components-base-control,.wp-block-tag-cloud__inspector-settings .components-base-control:last-child{margin-bottom:0}.block-editor-template-part__selection-modal{z-index:1000001}.block-editor-template-part__selection-modal .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width: 1280px){.block-editor-template-part__selection-modal .block-editor-block-patterns-list{column-count:3}}.block-editor-template-part__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.block-library-template-part__selection-search{background:#fff;position:sticky;top:0;padding:16px 0;z-index:2}.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected:after,.block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted:after,.block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected:after{outline-color:var(--wp-block-synced-color)}.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after{outline-color:var(--wp-block-synced-color)}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.has-editable-outline:after{border:none}.wp-block-text-columns .block-editor-rich-text__editable:focus{outline:1px solid #ddd}.wp-block[data-align=center]>.wp-block-video{text-align:center}.wp-block-video{position:relative}.wp-block-video.is-transient video{opacity:.3}.wp-block-video .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.editor-video-poster-control .components-button{margin-right:8px}.block-library-video-tracks-editor{z-index:159990}.block-library-video-tracks-editor__track-list-track{padding-left:12px}.block-library-video-tracks-editor__single-track-editor-kind-select{max-width:240px}.block-library-video-tracks-editor__single-track-editor-edit-track-label{margin-top:4px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500;display:block}.block-library-video-tracks-editor>.components-popover__content{width:360px}.block-library-video-tracks-editor__track-list .components-menu-group__label,.block-library-video-tracks-editor__add-tracks-container .components-menu-group__label{padding:0}.editor-styles-wrapper ul.wp-block-post-template{padding-left:0;margin-left:0;list-style:none}.block-library-query-toolbar__popover .components-popover__content{min-width:230px}.block-library-query-toolbar__popover .components-popover__content .block-library-query-toolbar__popover-number-control{margin-bottom:8px}.wp-block-query__create-new-link{padding:0 16px 16px 52px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list{display:grid;grid-template-columns:1fr 1fr 1fr;grid-gap:8px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{max-height:250px}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width: 1280px){.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:3}}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{background:#fff;position:sticky;top:0;padding:16px 0;transform:translateY(-4px);margin-bottom:-4px;z-index:2}@media (min-width: 600px){.wp-block-query__enhanced-pagination-modal{max-width:480px}}.wp-block-query__enhanced-pagination-notice{margin:0}.wp-block[data-align=center]>.wp-block-query-pagination{justify-content:center}:where(.editor-styles-wrapper) .wp-block-query-pagination{max-width:100%}:where(.editor-styles-wrapper) .wp-block-query-pagination.block-editor-block-list__layout{margin:0}.wp-block-query-pagination-numbers a{text-decoration:underline}.wp-block-query-pagination-numbers .page-numbers{margin-right:2px}.wp-block-query-pagination-numbers .page-numbers:last-child{margin-right:0}.wp-block-post-featured-image .block-editor-media-placeholder{z-index:1;-webkit-backdrop-filter:none;backdrop-filter:none}.wp-block-post-featured-image .wp-block-post-featured-image__placeholder,.wp-block-post-featured-image .components-placeholder{justify-content:center;align-items:center;padding:0;display:flex;min-height:200px}.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-form-file-upload,.wp-block-post-featured-image .components-placeholder .components-form-file-upload{display:none}.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button,.wp-block-post-featured-image .components-placeholder .components-button{margin:auto;padding:0;display:flex;justify-content:center;align-items:center;width:48px;height:48px;border-radius:50%;position:relative;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-style:solid;color:#fff}.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button>svg,.wp-block-post-featured-image .components-placeholder .components-button>svg{color:inherit}.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where(.has-border-color),.wp-block-post-featured-image .components-placeholder:where(.has-border-color),.wp-block-post-featured-image img:where(.has-border-color){border-style:solid}.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-top-color]),.wp-block-post-featured-image .components-placeholder:where([style*=border-top-color]),.wp-block-post-featured-image img:where([style*=border-top-color]){border-top-style:solid}.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-right-color]),.wp-block-post-featured-image .components-placeholder:where([style*=border-right-color]),.wp-block-post-featured-image img:where([style*=border-right-color]){border-right-style:solid}.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-bottom-color]),.wp-block-post-featured-image .components-placeholder:where([style*=border-bottom-color]),.wp-block-post-featured-image img:where([style*=border-bottom-color]){border-bottom-style:solid}.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-left-color]),.wp-block-post-featured-image .components-placeholder:where([style*=border-left-color]),.wp-block-post-featured-image img:where([style*=border-left-color]){border-left-style:solid}.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-width]),.wp-block-post-featured-image .components-placeholder:where([style*=border-width]),.wp-block-post-featured-image img:where([style*=border-width]){border-style:solid}.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-top-width]),.wp-block-post-featured-image .components-placeholder:where([style*=border-top-width]),.wp-block-post-featured-image img:where([style*=border-top-width]){border-top-style:solid}.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-right-width]),.wp-block-post-featured-image .components-placeholder:where([style*=border-right-width]),.wp-block-post-featured-image img:where([style*=border-right-width]){border-right-style:solid}.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-bottom-width]),.wp-block-post-featured-image .components-placeholder:where([style*=border-bottom-width]),.wp-block-post-featured-image img:where([style*=border-bottom-width]){border-bottom-style:solid}.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-left-width]),.wp-block-post-featured-image .components-placeholder:where([style*=border-left-width]),.wp-block-post-featured-image img:where([style*=border-left-width]){border-left-style:solid}.wp-block-post-featured-image[style*=height] .components-placeholder{min-height:48px;min-width:48px;height:100%;width:100%}.wp-block-post-featured-image>a{cursor:default}.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-button,.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-placeholder__instructions,.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-placeholder__label{opacity:1;pointer-events:auto}.wp-block-post-featured-image.is-transient{position:relative}.wp-block-post-featured-image.is-transient img{opacity:.3}.wp-block-post-featured-image.is-transient .components-spinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}div[data-type="core/post-featured-image"] img{max-width:100%;height:auto;display:block}.wp-block-post-comments-form *{pointer-events:none}.wp-block-post-comments-form *.block-editor-warning *{pointer-events:auto}.wp-block-post-content.wp-block-post-content{-webkit-user-select:none;user-select:none}.wp-element-button{cursor:revert}.wp-element-button[role=textbox]{cursor:text}:root .editor-styles-wrapper .has-very-light-gray-background-color{background-color:#eee}:root .editor-styles-wrapper .has-very-dark-gray-background-color{background-color:#313131}:root .editor-styles-wrapper .has-very-light-gray-color{color:#eee}:root .editor-styles-wrapper .has-very-dark-gray-color{color:#313131}:root .editor-styles-wrapper .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .editor-styles-wrapper .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb,#ab1dfe)}:root .editor-styles-wrapper .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .editor-styles-wrapper .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .editor-styles-wrapper .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .editor-styles-wrapper .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .editor-styles-wrapper .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}:where(.editor-styles-wrapper) .has-regular-font-size{font-size:16px}:where(.editor-styles-wrapper) .has-larger-font-size{font-size:42px}:where(.editor-styles-wrapper) iframe:not([frameborder]){border:0}.wp-block-audio :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-audio :where(figcaption){color:#ffffffa6}.wp-block-audio{margin:0 0 1em}.wp-block-code{border:1px solid #ccc;border-radius:4px;font-family:Menlo,Consolas,monaco,monospace;padding:.8em 1em}.wp-block-embed :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-embed :where(figcaption){color:#ffffffa6}.wp-block-embed{margin:0 0 1em}.blocks-gallery-caption{color:#555;font-size:13px;text-align:center}.is-dark-theme .blocks-gallery-caption{color:#ffffffa6}:root :where(.wp-block-image figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme :root :where(.wp-block-image figcaption){color:#ffffffa6}.wp-block-image{margin:0 0 1em}.wp-block-pullquote{border-top:4px solid currentColor;border-bottom:4px solid currentColor;margin-bottom:1.75em;color:currentColor}.wp-block-pullquote cite,.wp-block-pullquote footer,.wp-block-pullquote__citation{color:currentColor;text-transform:uppercase;font-size:.8125em;font-style:normal}.wp-block-quote{border-left:.25em solid currentColor;margin:0 0 1.75em;padding-left:1em}.wp-block-quote cite,.wp-block-quote footer{color:currentColor;font-size:.8125em;position:relative;font-style:normal}.wp-block-quote:where(.has-text-align-right){border-left:none;border-right:.25em solid currentColor;padding-left:0;padding-right:1em}.wp-block-quote:where(.has-text-align-center){border:none;padding-left:0}.wp-block-quote:where(.is-style-plain),.wp-block-quote.is-style-large,.wp-block-quote.is-large{border:none}.wp-block-search .wp-block-search__label{font-weight:700}.wp-block-search__button{border:1px solid #ccc;padding:.375em .625em}:where(.wp-block-group.has-background){padding:1.25em 2.375em}.wp-block-separator.has-css-opacity{opacity:.4}.wp-block-separator{border:none;border-bottom:2px solid currentColor;margin-left:auto;margin-right:auto}.wp-block-separator.has-alpha-channel-opacity{opacity:initial}.wp-block-separator:not(.is-style-wide):not(.is-style-dots){width:100px}.wp-block-separator.has-background:not(.is-style-dots){border-bottom:none;height:1px}.wp-block-separator.has-background:not(.is-style-wide):not(.is-style-dots){height:2px}.wp-block-table{margin:0 0 1em}.wp-block-table td,.wp-block-table th{word-break:normal}.wp-block-table :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-table :where(figcaption){color:#ffffffa6}.wp-block-video :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-video :where(figcaption){color:#ffffffa6}.wp-block-video{margin:0 0 1em}:root :where(.wp-block-template-part.has-background){padding:1.25em 2.375em;margin-top:0;margin-bottom:0}:root{--wp-admin-theme-color: #007cba;--wp-admin-theme-color--rgb: 0, 124, 186;--wp-admin-theme-color-darker-10: #006ba1;--wp-admin-theme-color-darker-10--rgb: 0, 107, 161;--wp-admin-theme-color-darker-20: #005a87;--wp-admin-theme-color-darker-20--rgb: 0, 90, 135;--wp-admin-border-width-focus: 2px;--wp-block-synced-color: #7a00df;--wp-block-synced-color--rgb: 122, 0, 223;--wp-bound-block-color: var(--wp-block-synced-color)}@media (min-resolution: 192dpi){:root{--wp-admin-border-width-focus: 1.5px}}.block-editor-format-toolbar__image-popover{z-index:159990}.block-editor-format-toolbar__image-popover .block-editor-format-toolbar__image-container-content{width:260px;padding:16px}.block-editor-format-toolbar__link-container-content{display:flex;align-items:center}.block-editor-format-toolbar__link-container-value{margin:7px;flex-grow:1;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-format-toolbar__link-container-value.has-invalid-link{color:#cc1818}.format-library__inline-color-popover [role=tabpanel]{padding:16px}.block-editor-format-toolbar__language-popover .components-popover__content{width:auto;padding:1rem}:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}body{margin:0;font-family:-apple-system;line-height:1.55}*{-webkit-tap-highlight-color:transparent}.components-button:focus:not(:disabled){outline:0!important;box-shadow:none!important}:root .editor-styles-wrapper{padding:0 16px 56px}.editor-styles-wrapper{overflow:hidden;min-height:100vh}.editor-styles-wrapper p{margin-block-start:15px;margin-block-end:15px;font-size:17px;line-height:1.8}.editor-styles-wrapper h2{margin-block-start:30px;margin-block-end:10px}.editor-styles-wrapper h3,h4{margin-block-start:20px;margin-block-end:10px}.editor-styles-wrapper li{font-size:17px;margin-bottom:5px}.rich-text:focus{outline:none}.block-editor-block-popover{display:none}.gbkit-editor-toolbar{border-top:.5px solid #c8c7cc;background:#fff;width:100%;display:flex;align-items:center;position:fixed;bottom:0;right:0;left:0;z-index:999;overflow-x:scroll;min-height:46px;transition:position 1.5s linear}.gbkit-editor-toolbar::-webkit-scrollbar{display:none}.block-editor-block-mover__drag-handle{display:none}.block-editor-inserter .block-editor-inserter__toggle{background:#000;color:#fff!important;clip-path:inset(4px 4px 4px 4px);margin:4px 8px 4px 12px;border-radius:24px!important}.block-editor-inserter__menu .block-editor-tabbed-sidebar__close-button{display:none}.block-editor-block-contextual-toolbar{border-bottom:0!important}.gbkit-editor-toolbar_settings_icon{font-size:34px!important;min-width:46px!important}.gbkit-editor-toolbar .block-editor-inserter{border-right:.5px solid #c8c7cc}.gbkit-editor-toolbar .block-editor-inserter button{margin-right:12px}.gbkit-editor-toolbar_toolbar-group{display:flex;align-items:center}.block-editor-block-contextual-toolbar{border-left:.5px solid #c8c7cc!important}.react-modal-sheet-container{border-top-right-radius:16px!important;border-top-left-radius:16px!important;box-shadow:#0000001a 0 -2px 10px!important}.components-popover__header-title{padding-left:20px}.components-popover.is-expanded .components-popover__content{border-radius:0!important;padding:0 8px}.block-settings-menu{position:absolute;inset:0;background-color:#fff;transform:none!important;position:fixed!important;overflow:scroll}.block-settings-menu__header{display:flex;flex-direction:column;align-items:end}.block-settings-menu__close{margin:8px 8px 0 0}.block-settings-menu .components-popover__content{width:100%;min-height:100vh}.block-inspector-siderbar{background:#f6f6fb;border-left:.5px solid #c8c7cc;width:320px}.block-editor-block-list__layout .block-editor-inserter,.block-editor-block-list__block-side-inserter-popover{display:none}.wp-block-image div{width:auto!important}.block-editor-tabbed-sidebar__tablist button{font-size:16px}.block-editor-inserter__menu{overflow-y:auto!important}.block-editor-inserter__popover .block-editor-inserter__menu{margin-bottom:auto!important;margin-top:auto!important}.block-editor-inserter__menu .block-editor-tabbed-sidebar__tabpanel button{font-size:16px}.block-editor-inserter__menu .block-editor-tabbed-sidebar__tabpanel .block-editor-inserter__patterns-category-panel-title{font-size:18px}.block-editor-inserter__menu .block-editor-tabbed-sidebar__tabpanel .block-editor-block-patterns-list__item-title{font-size:16px}.block-editor-inserter__popover .components-dropdown__content .components-popover__content{padding:0 8px!important}.components-input-base{border-radius:8px!important}.block-editor-inserter__panel-header{display:block;border-bottom:1px solid lightgray;padding-bottom:12px}.components-popover__header-title{font-size:17px;font-weight:600;text-align:center}.block-editor-inserter__panel-title{font-size:15px;font-weight:600;margin-left:12px}.components-draggable-drag-component-root{display:none!important}.components-button.block-editor-block-types-list__item{-webkit-tap-highlight-color:transparent;pointer-events:auto}.components-button.block-editor-block-types-list__item:not(:disabled):hover:after{background:transparent}.components-button[aria-expanded=true],.components-button:hover:not(:disabled,[aria-disabled=true]){color:inherit}.components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title{color:inherit!important}.components-button.block-editor-block-types-list__item:not(:disabled):hover svg{color:inherit!important}.block-editor-block-types-list__list-item{pointer-events:auto}.block-editor-block-types-list__item{pointer-events:none}.block-editor-block-types-list__item-icon{scale:1.3}.block-editor-block-types-list__item-title{font-size:17px}.block-editor-block-card__title{font-size:17px;font-weight:600}.block-editor-block-card__description{font-size:15px!important;margin-top:-4px!important}.block-editor-block-inspector h2{font-size:17px!important;font-weight:600!important}.block-editor-block-inspector .block-editor-block-icon{padding-top:4px;margin-right:8px}.components-base-control__help{font-size:13px!important}.components-menu-group__label{font-size:13px}.components-accessible-toolbar .components-button.is-pressed:before,.components-toolbar .components-button.is-pressed:before{border-radius:8px}.components-dropdown-menu__menu-item{min-height:40px}.block-editor-default-block-appender__content{color:gray}.components-text{font-size:17px}.components-button{border-radius:8px}.components-panel__body-title{font-size:15px}.components-button{font-size:17px}.block-editor-block-card__title{font-size:15px!important}.components-toggle-control__label{font-size:17px}.components-popover__content{border-radius:8px!important}.components-menu-item__item span{font-size:17px!important}.components-base-control__label{font-size:13px!important}.components-placeholder{border-radius:8px!important}.components-placeholder__label{font-size:17px!important}.components-placeholder__input{border-radius:6px!important;font-size:17px!important}.components-text-control__input{border-radius:6px!important}.components-base-control__label{color:gray;font-size:13px!important}.blocks-table__placeholder-form{gap:16px!important}.components-popover.block-editor-block-switcher__popover .components-popover__content{min-width:274px!important}.rich-text [data-rich-text-placeholder]{pointer-events:none}.rich-text [data-rich-text-placeholder]:after{content:attr(data-rich-text-placeholder);opacity:.62}.editor-visual-editor__post-title-wrapper{margin-top:1.5rem;min-height:35px}.editor-visual-editor__post-title-wrapper .wp-block-post-title{font-size:20px!important;margin-bottom:0!important;line-height:1.5!important}.components-editor-notices__snackbar{bottom:54px;padding-left:24px;padding-right:24px;position:fixed;right:0;left:0} +@charset "UTF-8";:root{--wp-admin-theme-color: #3858e9;--wp-admin-theme-color--rgb: 56, 88, 233;--wp-admin-theme-color-darker-10: #2145e6;--wp-admin-theme-color-darker-10--rgb: 33, 69, 230;--wp-admin-theme-color-darker-20: #183ad6;--wp-admin-theme-color-darker-20--rgb: 24, 58, 214;--wp-admin-border-width-focus: 2px}.components-animate__appear{animation:components-animate__appear-animation .1s cubic-bezier(0,0,.2,1) 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion: reduce){.components-animate__appear{animation-duration:1ms;animation-delay:0s}}.components-animate__appear.is-from-top,.components-animate__appear.is-from-top.is-from-left{transform-origin:top left}.components-animate__appear.is-from-top.is-from-right{transform-origin:top right}.components-animate__appear.is-from-bottom,.components-animate__appear.is-from-bottom.is-from-left{transform-origin:bottom left}.components-animate__appear.is-from-bottom.is-from-right{transform-origin:bottom right}@keyframes components-animate__appear-animation{0%{transform:translateY(-2em) scaleY(0) scaleX(0)}to{transform:translateY(0) scaleY(1) scaleX(1)}}.components-animate__slide-in{animation:components-animate__slide-in-animation .1s cubic-bezier(0,0,.2,1);animation-fill-mode:forwards}@media (prefers-reduced-motion: reduce){.components-animate__slide-in{animation-duration:1ms;animation-delay:0s}}.components-animate__slide-in.is-from-left{transform:translate(100%)}.components-animate__slide-in.is-from-right{transform:translate(-100%)}@keyframes components-animate__slide-in-animation{to{transform:translate(0)}}.components-animate__loading{animation:components-animate__loading 1.6s ease-in-out infinite}@keyframes components-animate__loading{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.components-autocomplete__popover .components-popover__content{padding:8px;min-width:200px}.components-autocomplete__result.components-button{display:flex;height:auto;min-height:36px;text-align:left;width:100%}.components-autocomplete__result.components-button:focus:not(:disabled){box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.components-button-group{display:inline-block}.components-button-group .components-button{border-radius:0;display:inline-flex;color:#1e1e1e;box-shadow:inset 0 0 0 1px #1e1e1e}.components-button-group .components-button+.components-button{margin-left:-1px}.components-button-group .components-button:first-child{border-radius:2px 0 0 2px}.components-button-group .components-button:last-child{border-radius:0 2px 2px 0}.components-button-group .components-button:focus,.components-button-group .components-button.is-primary{position:relative;z-index:1}.components-button-group .components-button.is-primary{box-shadow:inset 0 0 0 1px #1e1e1e}.components-button{display:inline-flex;text-decoration:none;font-family:inherit;font-weight:400;font-size:13px;margin:0;border:0;cursor:pointer;-webkit-appearance:none;background:none;transition:box-shadow .1s linear;height:36px;align-items:center;box-sizing:border-box;padding:6px 12px;border-radius:2px;color:var(--wp-components-color-foreground, #1e1e1e)}@media (prefers-reduced-motion: reduce){.components-button{transition-duration:0s;transition-delay:0s}}.components-button.is-next-40px-default-size{height:40px}.components-button[aria-expanded=true],.components-button:hover:not(:disabled,[aria-disabled=true]){color:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))}.components-button:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));outline:3px solid transparent}.components-button.is-primary{white-space:nowrap;background:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));color:var(--wp-components-color-accent-inverted, #fff);text-decoration:none;text-shadow:none;outline:1px solid transparent}.components-button.is-primary:hover:not(:disabled){background:var(--wp-components-color-accent-darker-10, var(--wp-admin-theme-color-darker-10, #2145e6));color:var(--wp-components-color-accent-inverted, #fff)}.components-button.is-primary:active:not(:disabled){background:var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6));border-color:var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6));color:var(--wp-components-color-accent-inverted, #fff)}.components-button.is-primary:focus:not(:disabled){box-shadow:inset 0 0 0 1px var(--wp-components-color-background, #fff),0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))}.components-button.is-primary:disabled,.components-button.is-primary:disabled:active:enabled,.components-button.is-primary[aria-disabled=true],.components-button.is-primary[aria-disabled=true]:enabled,.components-button.is-primary[aria-disabled=true]:active:enabled{color:#fff6;background:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));border-color:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));outline:none}.components-button.is-primary:disabled:focus:enabled,.components-button.is-primary:disabled:active:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:focus:enabled,.components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled{box-shadow:inset 0 0 0 1px var(--wp-components-color-background, #fff),0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{color:var(--wp-components-color-accent-inverted, #fff);background-size:100px 100%;background-image:linear-gradient(-45deg,var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)) 33%,var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6)) 33%,var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6)) 70%,var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)) 70%);border-color:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))}.components-button.is-secondary,.components-button.is-tertiary{outline:1px solid transparent}.components-button.is-secondary:active:not(:disabled),.components-button.is-tertiary:active:not(:disabled){box-shadow:none}.components-button.is-secondary:disabled,.components-button.is-secondary[aria-disabled=true],.components-button.is-secondary[aria-disabled=true]:hover,.components-button.is-tertiary:disabled,.components-button.is-tertiary[aria-disabled=true],.components-button.is-tertiary[aria-disabled=true]:hover{color:#949494;background:transparent;transform:none}.components-button.is-secondary{box-shadow:inset 0 0 0 1px var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));outline:1px solid transparent;white-space:nowrap;color:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));background:transparent}.components-button.is-secondary:hover:not(:disabled,[aria-disabled=true]){box-shadow:inset 0 0 0 1px var(--wp-components-color-accent-darker-10, var(--wp-admin-theme-color-darker-10, #2145e6))}.components-button.is-secondary:disabled:not(:focus),.components-button.is-secondary[aria-disabled=true]:not(:focus),.components-button.is-secondary[aria-disabled=true]:hover:not(:focus){box-shadow:inset 0 0 0 1px #ddd}.components-button.is-tertiary{white-space:nowrap;color:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));background:transparent}.components-button.is-tertiary:hover:not(:disabled,[aria-disabled=true]){background:rgba(var(--wp-admin-theme-color--rgb),.04)}.components-button.is-tertiary:active:not(:disabled,[aria-disabled=true]){background:rgba(var(--wp-admin-theme-color--rgb),.08)}p+.components-button.is-tertiary{margin-left:-6px}.components-button.is-tertiary:disabled:not(:focus),.components-button.is-tertiary[aria-disabled=true]:not(:focus),.components-button.is-tertiary[aria-disabled=true]:hover:not(:focus){box-shadow:none;outline:none}.components-button.is-destructive{--wp-components-color-accent: #cc1818;--wp-components-color-accent-darker-10: #9e1313;--wp-components-color-accent-darker-20: #710d0d}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link){color:#cc1818}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):hover:not(:disabled,[aria-disabled=true]){color:#710d0d}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #cc1818}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):active:not(:disabled,[aria-disabled=true]){background:#ccc}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):disabled,.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link)[aria-disabled=true]{color:#949494}.components-button.is-destructive.is-tertiary:hover:not(:disabled,[aria-disabled=true]){background:#cc18180a}.components-button.is-destructive.is-tertiary:active:not(:disabled,[aria-disabled=true]){background:#cc181814}.components-button.is-link{margin:0;padding:0;box-shadow:none;border:0;border-radius:0;background:none;outline:none;text-align:left;color:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));text-decoration:underline;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out;height:auto}@media (prefers-reduced-motion: reduce){.components-button.is-link{transition-duration:0s;transition-delay:0s}}.components-button.is-link:focus{border-radius:2px}.components-button.is-link:disabled,.components-button.is-link[aria-disabled=true]{color:#949494}.components-button:not(:disabled,[aria-disabled=true]):active{color:var(--wp-components-color-foreground, #1e1e1e)}.components-button:disabled,.components-button[aria-disabled=true]{cursor:default;color:#949494}.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{animation:components-button__busy-animation 2.5s infinite linear;background-size:100px 100%;background-image:linear-gradient(-45deg,#fafafa 33%,#e0e0e0 33% 70%,#fafafa 70%)}@media (prefers-reduced-motion: reduce){.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{animation-duration:0s}}.components-button.is-compact{height:32px}.components-button.is-compact.has-icon:not(.has-text){padding:0;width:32px;min-width:32px}.components-button.is-small{height:24px;line-height:22px;padding:0 8px;font-size:11px}.components-button.is-small.has-icon:not(.has-text){padding:0;width:24px;min-width:24px}.components-button.has-icon{padding:6px;min-width:36px;justify-content:center}.components-button.has-icon.is-next-40px-default-size{min-width:40px}.components-button.has-icon .dashicon{display:inline-flex;justify-content:center;align-items:center;padding:2px;box-sizing:content-box}.components-button.has-icon.has-text{justify-content:start;padding-right:12px;padding-left:8px;gap:4px}.components-button.is-pressed,.components-button.is-pressed:hover{color:var(--wp-components-color-foreground-inverted, #fff)}.components-button.is-pressed:not(:disabled,[aria-disabled=true]),.components-button.is-pressed:hover:not(:disabled,[aria-disabled=true]){background:var(--wp-components-color-foreground, #1e1e1e)}.components-button.is-pressed:disabled,.components-button.is-pressed[aria-disabled=true]{color:#949494}.components-button.is-pressed:disabled:not(.is-primary):not(.is-secondary):not(.is-tertiary),.components-button.is-pressed[aria-disabled=true]:not(.is-primary):not(.is-secondary):not(.is-tertiary){color:var(--wp-components-color-foreground-inverted, #fff);background:#949494}.components-button.is-pressed:focus:not(:disabled){box-shadow:inset 0 0 0 1px var(--wp-components-color-background, #fff),0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));outline:2px solid transparent}.components-button svg{fill:currentColor;outline:none}@media (forced-colors: active){.components-button svg{fill:CanvasText}}.components-button .components-visually-hidden{height:auto}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-checkbox-control{--checkbox-input-size: 24px;--checkbox-input-margin: 8px}@media (min-width: 600px){.components-checkbox-control{--checkbox-input-size: 16px}}.components-checkbox-control__label{line-height:var(--checkbox-input-size);cursor:pointer}.components-checkbox-control__input[type=checkbox]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border:1px solid #949494;font-size:16px;line-height:normal;border:1px solid #1e1e1e;transition:none;border-radius:2px;background:#fff;color:#1e1e1e;clear:none;cursor:pointer;display:inline-block;line-height:0;margin:0 4px 0 0;outline:0;padding:0!important;text-align:center;vertical-align:top;width:var(--checkbox-input-size);height:var(--checkbox-input-size);appearance:none;transition:.1s border-color ease-in-out}@media (min-width: 600px){.components-checkbox-control__input[type=checkbox]{font-size:13px;line-height:normal}}.components-checkbox-control__input[type=checkbox]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:#1e1e1e9e}.components-checkbox-control__input[type=checkbox]::-moz-placeholder{opacity:1;color:#1e1e1e9e}.components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:#1e1e1e9e}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.components-checkbox-control__input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-3px -5px;color:#fff}@media (min-width: 782px){.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-4px 0 0 -5px}}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{content:"";float:left;display:inline-block;vertical-align:middle;width:16px;font: 30px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width: 782px){.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{float:none;font-size:21px}}.components-checkbox-control__input[type=checkbox][aria-disabled=true],.components-checkbox-control__input[type=checkbox]:disabled{background:#f0f0f0;border-color:#ddd;cursor:default;opacity:1}@media (prefers-reduced-motion: reduce){.components-checkbox-control__input[type=checkbox]{transition-duration:0s;transition-delay:0s}}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(2 * var(--wp-admin-border-width-focus)) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.components-checkbox-control__input[type=checkbox]:checked,.components-checkbox-control__input[type=checkbox]:indeterminate{background:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));border-color:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))}.components-checkbox-control__input[type=checkbox]:checked::-ms-check,.components-checkbox-control__input[type=checkbox]:indeterminate::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:checked:before{content:none}.components-checkbox-control__input-container{position:relative;display:inline-block;margin-right:var(--checkbox-input-margin);vertical-align:middle;width:var(--checkbox-input-size);aspect-ratio:1;line-height:1;flex-shrink:0}svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{--checkmark-size: var(--checkbox-input-size);fill:#fff;cursor:pointer;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:var(--checkmark-size);height:var(--checkmark-size);-webkit-user-select:none;user-select:none;pointer-events:none}@media (min-width: 600px){svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{--checkmark-size: calc(var(--checkbox-input-size) + 4px)}}.components-checkbox-control__help{display:inline-block;margin-inline-start:calc(var(--checkbox-input-size) + var(--checkbox-input-margin))}.components-circular-option-picker{display:inline-block;width:100%;min-width:188px}.components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{display:flex;justify-content:flex-end;margin-top:12px}.components-circular-option-picker .components-circular-option-picker__swatches{display:flex;flex-wrap:wrap;gap:12px;position:relative;z-index:1}.components-circular-option-picker>*:not(.components-circular-option-picker__swatches){position:relative;z-index:0}.components-circular-option-picker__option-wrapper{display:inline-block;height:28px;width:28px;vertical-align:top;transform:scale(1);transition:.1s transform ease;will-change:transform}@media (prefers-reduced-motion: reduce){.components-circular-option-picker__option-wrapper{transition-duration:0s;transition-delay:0s}}.components-circular-option-picker__option-wrapper:hover{transform:scale(1.2)}.components-circular-option-picker__option-wrapper>div{height:100%;width:100%}.components-circular-option-picker__option-wrapper:before{content:"";position:absolute;inset:1px;border-radius:50%;z-index:-1;background:url('data:image/svg+xml,%3Csvg width="28" height="28" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M6 8V6H4v2h2zM8 8V6h2v2H8zM10 16H8v-2h2v2zM12 16v-2h2v2h-2zM12 18v-2h-2v2H8v2h2v-2h2zM14 18v2h-2v-2h2zM16 18h-2v-2h2v2z" fill="%23555D65"/%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M18 18h2v-2h-2v-2h2v-2h-2v-2h2V8h-2v2h-2V8h-2v2h2v2h-2v2h2v2h2v2zm-2-4v-2h2v2h-2z" fill="%23555D65"/%3E%3Cpath d="M18 18v2h-2v-2h2z" fill="%23555D65"/%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M8 10V8H6v2H4v2h2v2H4v2h2v2H4v2h2v2H4v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2v2h-2V4h-2v2h-2V4h-2v2h-2V4h-2v2h2v2h-2v2H8zm0 2v-2H6v2h2zm2 0v-2h2v2h-2zm0 2v-2H8v2H6v2h2v2H6v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h-2v2h-2V6h-2v2h-2v2h2v2h-2v2h-2z" fill="%23555D65"/%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M4 0H2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2H8V0H6v2H4V0zm0 4V2H2v2h2zm2 0V2h2v2H6zm0 2V4H4v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2H8v2H6z" fill="%23555D65"/%3E%3C/svg%3E')}.components-circular-option-picker__option{display:inline-block;vertical-align:top;height:100%;width:100%;border:none;border-radius:50%;background:transparent;box-shadow:inset 0 0 0 14px;transition:.1s box-shadow ease;cursor:pointer}@media (prefers-reduced-motion: reduce){.components-circular-option-picker__option{transition-duration:0s;transition-delay:0s}}.components-circular-option-picker__option:hover{box-shadow:inset 0 0 0 14px!important}.components-circular-option-picker__option[aria-pressed=true],.components-circular-option-picker__option[aria-selected=true]{box-shadow:inset 0 0 0 4px;position:relative;z-index:1;overflow:visible}.components-circular-option-picker__option[aria-pressed=true]+svg,.components-circular-option-picker__option[aria-selected=true]+svg{position:absolute;left:2px;top:2px;border-radius:50%;z-index:2;pointer-events:none}.components-circular-option-picker__option:after{content:"";position:absolute;inset:-1px;border-radius:50%;box-shadow:inset 0 0 0 1px #0003;border:1px solid transparent;box-sizing:inherit}.components-circular-option-picker__option:focus:after{content:"";border-radius:50%;box-shadow:inset 0 0 0 2px #fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border:2px solid #757575;width:calc(100% + 4px);height:calc(100% + 4px)}.components-circular-option-picker__option.components-button:focus{background-color:transparent;box-shadow:inset 0 0 0 14px;outline:none}.components-circular-option-picker__button-action .components-circular-option-picker__option{color:#fff;background:#fff}.components-circular-option-picker__dropdown-link-action{margin-right:16px}.components-circular-option-picker__dropdown-link-action .components-button{line-height:22px}.components-palette-edit__popover-gradient-picker{width:260px;padding:8px}.components-dropdown-menu__menu .components-palette-edit__menu-button{width:100%}.component-color-indicator{width:20px;height:20px;box-shadow:inset 0 0 0 1px #0003;border-radius:50%;display:inline-block;padding:0;background:#fff linear-gradient(-45deg,transparent 48%,#ddd 48%,#ddd 52%,transparent 52%)}.components-combobox-control{width:100%}input.components-combobox-control__input[type=text]{width:100%;border:none;box-shadow:none;font-family:inherit;font-size:16px;padding:2px;margin:0;line-height:inherit;min-height:auto}@media (min-width: 600px){input.components-combobox-control__input[type=text]{font-size:13px}}input.components-combobox-control__input[type=text]:focus{outline:none;box-shadow:none}.components-combobox-control__suggestions-container{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #949494;font-size:16px;line-height:normal;display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;padding:0}@media (prefers-reduced-motion: reduce){.components-combobox-control__suggestions-container{transition-duration:0s;transition-delay:0s}}@media (min-width: 600px){.components-combobox-control__suggestions-container{font-size:13px;line-height:normal}}.components-combobox-control__suggestions-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-combobox-control__suggestions-container::-webkit-input-placeholder{color:#1e1e1e9e}.components-combobox-control__suggestions-container::-moz-placeholder{opacity:1;color:#1e1e1e9e}.components-combobox-control__suggestions-container:-ms-input-placeholder{color:#1e1e1e9e}.components-combobox-control__suggestions-container:focus-within{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-combobox-control__reset.components-button{display:flex;height:16px;min-width:16px;padding:0}.components-color-palette__custom-color-wrapper{position:relative;z-index:0}.components-color-palette__custom-color-button{position:relative;border:none;background:none;height:64px;width:100%;box-sizing:border-box;cursor:pointer;outline:1px solid transparent;border-radius:4px 4px 0 0;box-shadow:inset 0 0 0 1px #0003}.components-color-palette__custom-color-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));outline-width:2px}.components-color-palette__custom-color-button:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:-1;background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 25%,transparent 75%,#e0e0e0 75%,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 25%,transparent 75%,#e0e0e0 75%,#e0e0e0);background-position:0 0,24px 24px;background-size:48px 48px}.components-color-palette__custom-color-text-wrapper{padding:12px 16px;border-radius:0 0 4px 4px;position:relative;font-size:13px;box-shadow:inset 0 -1px #0003,inset 1px 0 #0003,inset -1px 0 #0003}.components-color-palette__custom-color-name{color:var(--wp-components-color-foreground, #1e1e1e);margin:0 1px}.components-color-palette__custom-color-value{color:#757575}.components-color-palette__custom-color-value--is-hex{text-transform:uppercase}.components-color-palette__custom-color-value:empty:after{content:"​";visibility:hidden}.components-custom-gradient-picker__gradient-bar{border-radius:2px;width:100%;height:48px;position:relative;z-index:1}.components-custom-gradient-picker__gradient-bar.has-gradient{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 25%,transparent 75%,#e0e0e0 75%,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 25%,transparent 75%,#e0e0e0 75%,#e0e0e0);background-position:0 0,12px 12px;background-size:24px 24px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__gradient-bar-background{position:absolute;inset:0}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{position:relative;width:calc(100% - 48px);margin-left:auto;margin-right:auto}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-dropdown{position:absolute;height:16px;width:16px;top:16px;display:flex}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown{position:relative;height:inherit;width:inherit;min-width:16px;border-radius:50%;background:#fff;padding:2px;color:#1e1e1e}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown svg{height:100%;width:100%}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{height:inherit;width:inherit;border-radius:50%;padding:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 2px #00000040;outline:2px solid transparent}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus,.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active{box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus) * 2) #fff,0 0 2px #00000040;outline:1.5px solid transparent}.components-custom-gradient-picker__remove-control-point-wrapper{padding-bottom:8px}.components-custom-gradient-picker__inserter{direction:ltr}.components-custom-gradient-picker__liner-gradient-indicator{display:inline-block;flex:0 auto;width:20px;height:20px}.components-custom-gradient-picker__ui-line{position:relative;z-index:0}.block-editor-dimension-control .components-base-control__field{display:flex;align-items:center}.block-editor-dimension-control .components-base-control__label{display:flex;align-items:center;margin-right:1em;margin-bottom:0}.block-editor-dimension-control .components-base-control__label .dashicon{margin-right:.5em}.block-editor-dimension-control.is-manual .components-base-control__label{width:10em}body.is-dragging-components-draggable{cursor:move;cursor:grabbing!important}.components-draggable__invisible-drag-image{position:fixed;left:-1000px;height:50px;width:50px}.components-draggable__clone{position:fixed;padding:0;background:transparent;pointer-events:none;z-index:1000000000}.components-drop-zone{position:absolute;inset:0;z-index:40;visibility:hidden;opacity:0;border-radius:2px}.components-drop-zone.is-active{opacity:1;visibility:visible}.components-drop-zone .components-drop-zone__content{position:absolute;inset:0;height:100%;width:100%;display:flex;background-color:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));align-items:center;justify-content:center;z-index:50;text-align:center;color:#fff;opacity:0;pointer-events:none}.components-drop-zone .components-drop-zone__content-inner{opacity:0;transform:scale(.9)}.components-drop-zone.is-active:not(.has-dragged-out) .components-drop-zone__content{opacity:1;transition:opacity .2s ease-in-out}@media (prefers-reduced-motion){.components-drop-zone.is-active:not(.has-dragged-out) .components-drop-zone__content{transition:none}}.components-drop-zone.is-active:not(.has-dragged-out) .components-drop-zone__content-inner{opacity:1;transform:scale(1);transition:opacity .1s ease-in-out .1s,transform .1s ease-in-out .1s}@media (prefers-reduced-motion){.components-drop-zone.is-active:not(.has-dragged-out) .components-drop-zone__content-inner{transition:none}}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{margin:0 auto 8px;line-height:0;fill:currentColor;pointer-events:none}.components-drop-zone__content-text{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-dropdown{display:inline-block}.components-dropdown__content .components-popover__content{padding:8px}.components-dropdown__content [role=menuitem]{white-space:nowrap}.components-dropdown__content .components-menu-group{padding:8px;margin:0 -8px}.components-dropdown__content .components-menu-group:first-child{margin-top:-8px}.components-dropdown__content .components-menu-group:last-child{margin-bottom:-8px}.components-dropdown__content .components-menu-group+.components-menu-group{margin-top:0;border-top:1px solid #ccc;padding:8px}.components-dropdown__content.is-alternate .components-menu-group+.components-menu-group{border-color:#1e1e1e}.components-dropdown-menu__toggle{vertical-align:top}.components-dropdown-menu__menu{width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}.components-dropdown-menu__menu .components-dropdown-menu__menu-item,.components-dropdown-menu__menu .components-menu-item{width:100%;padding:6px;outline:none;cursor:pointer;white-space:nowrap}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator,.components-dropdown-menu__menu .components-menu-item.has-separator{margin-top:6px;position:relative;overflow:visible}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before,.components-dropdown-menu__menu .components-menu-item.has-separator:before{display:block;content:"";box-sizing:content-box;background-color:#ddd;position:absolute;top:-3px;left:0;right:0;height:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg,.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active .dashicon,.components-dropdown-menu__menu .components-menu-item.is-active svg,.components-dropdown-menu__menu .components-menu-item.is-active .dashicon{color:#fff;background:#1e1e1e;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-icon-only,.components-dropdown-menu__menu .components-menu-item.is-icon-only{width:auto}.components-dropdown-menu__menu .components-menu-item__button,.components-dropdown-menu__menu .components-menu-item__button.components-button{min-height:36px;height:auto;text-align:left;padding-left:8px;padding-right:8px}.components-duotone-picker__color-indicator:before{background:transparent}.components-duotone-picker__color-indicator>.components-button{background:linear-gradient(-45deg,transparent 48%,#ddd 48%,#ddd 52%,transparent 52%);color:transparent}.components-duotone-picker__color-indicator>.components-button.is-pressed:hover:not(:disabled){background:linear-gradient(-45deg,transparent 48%,#ddd 48%,#ddd 52%,transparent 52%);color:transparent}.components-duotone-picker__color-indicator>.components-button:not([aria-disabled=true]):active{color:transparent}.components-color-list-picker,.components-color-list-picker__swatch-button{width:100%}.components-color-list-picker__color-picker{margin:8px 0}.components-color-list-picker__swatch-button{padding:6px}.components-color-list-picker__swatch-color{margin:2px}.components-external-link{text-decoration:none}.components-external-link__contents{text-decoration:underline}.components-external-link__icon{margin-left:.5ch;font-weight:400}.components-form-toggle{position:relative;display:inline-block;height:16px}.components-form-toggle .components-form-toggle__track{position:relative;content:"";display:inline-block;box-sizing:border-box;vertical-align:top;background-color:#fff;border:1px solid #949494;width:32px;height:16px;border-radius:8px;transition:.2s background-color ease,.2s border-color ease;overflow:hidden}@media (prefers-reduced-motion: reduce){.components-form-toggle .components-form-toggle__track{transition-duration:0s;transition-delay:0s}}.components-form-toggle .components-form-toggle__track:after{content:"";position:absolute;inset:0;box-sizing:border-box;border-top:16px solid transparent;transition:.2s opacity ease;opacity:0}@media (prefers-reduced-motion: reduce){.components-form-toggle .components-form-toggle__track:after{transition-duration:0s;transition-delay:0s}}.components-form-toggle .components-form-toggle__thumb{display:block;position:absolute;box-sizing:border-box;top:2px;left:2px;width:12px;height:12px;border-radius:50%;transition:.2s transform ease,.2s background-color ease-out;background-color:#1e1e1e;border:6px solid transparent}@media (prefers-reduced-motion: reduce){.components-form-toggle .components-form-toggle__thumb{transition-duration:0s;transition-delay:0s}}.components-form-toggle.is-checked .components-form-toggle__track{background-color:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));border-color:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))}.components-form-toggle.is-checked .components-form-toggle__track:after{opacity:1}.components-form-toggle .components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(2 * var(--wp-admin-border-width-focus)) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));outline:2px solid transparent;outline-offset:2px}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:#fff;border-width:0;transform:translate(16px)}.components-form-toggle.is-disabled,.components-disabled .components-form-toggle{opacity:.3}.components-form-toggle input.components-form-toggle__input[type=checkbox]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;margin:0;padding:0;z-index:1;border:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:before{content:""}.components-form-toggle input.components-form-toggle__input[type=checkbox]:not(:disabled,[aria-disabled=true]){cursor:pointer}.components-form-token-field__input-container{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #949494;font-size:16px;line-height:normal;width:100%;padding:0;cursor:text}@media (prefers-reduced-motion: reduce){.components-form-token-field__input-container{transition-duration:0s;transition-delay:0s}}@media (min-width: 600px){.components-form-token-field__input-container{font-size:13px;line-height:normal}}.components-form-token-field__input-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-form-token-field__input-container::-webkit-input-placeholder{color:#1e1e1e9e}.components-form-token-field__input-container::-moz-placeholder{opacity:1;color:#1e1e1e9e}.components-form-token-field__input-container:-ms-input-placeholder{color:#1e1e1e9e}.components-form-token-field__input-container.is-disabled{background:#ddd;border-color:#ddd}.components-form-token-field__input-container.is-active{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-form-token-field__input-container input[type=text].components-form-token-field__input{display:inline-block;flex:1;font-family:inherit;font-size:16px;width:100%;max-width:100%;margin-left:4px;padding:0;min-height:24px;min-width:50px;background:inherit;border:0;color:#1e1e1e;box-shadow:none}@media (min-width: 600px){.components-form-token-field__input-container input[type=text].components-form-token-field__input{font-size:13px}}.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus,.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input{outline:none;box-shadow:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__token{font-size:13px;display:flex;color:#1e1e1e;max-width:100%}.components-form-token-field__token.is-success .components-form-token-field__token-text,.components-form-token-field__token.is-success .components-form-token-field__remove-token{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__token-text,.components-form-token-field__token.is-error .components-form-token-field__remove-token{background:#cc1818}.components-form-token-field__token.is-validating .components-form-token-field__token-text,.components-form-token-field__token.is-validating .components-form-token-field__remove-token{color:#757575}.components-form-token-field__token.is-borderless{position:relative;padding:0 24px 0 0}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:transparent;color:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:transparent;color:#757575;position:absolute;top:1px;right:0;padding:0}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{color:#cc1818;padding:0 4px 0 6px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#1e1e1e}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token{cursor:default}.components-form-token-field__token-text,.components-form-token-field__remove-token.components-button{display:inline-block;line-height:24px;height:auto;background:#ddd;min-width:unset;transition:all .2s cubic-bezier(.4,1,.4,1)}@media (prefers-reduced-motion: reduce){.components-form-token-field__token-text,.components-form-token-field__remove-token.components-button{transition-duration:0s;transition-delay:0s;animation-duration:1ms;animation-delay:0s}}.components-form-token-field__token-text{border-radius:1px 0 0 1px;padding:0 0 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.components-form-token-field__remove-token.components-button{cursor:pointer;border-radius:0 1px 1px 0;padding:0 2px;color:#1e1e1e;line-height:10px;overflow:initial}.components-form-token-field__remove-token.components-button:hover{color:#1e1e1e}.components-form-token-field__suggestions-list{flex:1 0 100%;min-width:100%;max-height:128px;overflow-y:auto;transition:all .15s ease-in-out;list-style:none;box-shadow:inset 0 1px #949494;margin:0;padding:0}@media (prefers-reduced-motion: reduce){.components-form-token-field__suggestions-list{transition-duration:0s;transition-delay:0s}}.components-form-token-field__suggestion{color:#1e1e1e;display:block;font-size:13px;padding:8px 12px;min-height:32px;margin:0;cursor:pointer;box-sizing:border-box}.components-form-token-field__suggestion.is-selected{background:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));color:#fff}.components-form-token-field__suggestion[aria-disabled=true]{pointer-events:none;color:#949494}.components-form-token-field__suggestion[aria-disabled=true].is-selected{background-color:rgba(var(--wp-components-color-accent--rgb, var(--wp-admin-theme-color--rgb)),.04)}@media (min-width: 600px){.components-guide{width:600px}}.components-guide .components-modal__content{padding:0;margin-top:0}.components-guide .components-modal__content:before{content:none}.components-guide .components-modal__header{border-bottom:none;padding:0;position:sticky;height:60px}.components-guide .components-modal__header .components-button{align-self:flex-start;margin:8px 8px 0 0;position:static}.components-guide .components-modal__header .components-button:hover svg{fill:#fff}.components-guide__container{display:flex;flex-direction:column;justify-content:space-between;margin-top:-60px;min-height:100%}.components-guide__page{display:flex;flex-direction:column;justify-content:center;position:relative}@media (min-width: 600px){.components-guide__page{min-height:300px}}.components-guide__footer{align-content:center;display:flex;height:36px;justify-content:center;margin:0 0 24px;padding:0 32px;position:relative;width:100%}.components-guide__page-control{margin:0;text-align:center}.components-guide__page-control li{display:inline-block;margin:0}.components-guide__page-control .components-button{height:30px;min-width:20px;margin:-6px 0;color:#e0e0e0}.components-guide__page-control li[aria-current=step] .components-button{color:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))}.components-modal__frame.components-guide{border:none;min-width:312px;max-height:575px}@media (max-width: 600px){.components-modal__frame.components-guide{margin:auto;max-width:calc(100vw - 32px)}}.components-button.components-guide__back-button,.components-button.components-guide__forward-button,.components-button.components-guide__finish-button{position:absolute}.components-button.components-guide__back-button{left:32px}.components-button.components-guide__forward-button,.components-button.components-guide__finish-button{right:32px}[role=region]{position:relative}[role=region].interface-interface-skeleton__content:focus-visible:after{content:"";position:absolute;pointer-events:none;inset:0;outline-color:var(--wp-admin-theme-color);outline-style:solid;outline-width:calc(2 * (var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1)));outline-offset:calc(2 * ((-1 * var(--wp-admin-border-width-focus)) / var(--wp-block-editor-iframe-zoom-out-scale, 1)));z-index:1000000}.is-focusing-regions [role=region]:focus:after{content:"";position:absolute;pointer-events:none;inset:0;outline-color:var(--wp-admin-theme-color);outline-style:solid;outline-width:calc(2 * (var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1)));outline-offset:calc(2 * ((-1 * var(--wp-admin-border-width-focus)) / var(--wp-block-editor-iframe-zoom-out-scale, 1)));z-index:1000000}.is-focusing-regions.is-distraction-free .interface-interface-skeleton__header .edit-post-header,.is-focusing-regions .interface-interface-skeleton__sidebar .editor-layout__toggle-sidebar-panel,.is-focusing-regions .interface-interface-skeleton__actions .editor-layout__toggle-publish-panel,.is-focusing-regions .interface-interface-skeleton__actions .editor-layout__toggle-entities-saved-states-panel,.is-focusing-regions .editor-post-publish-panel{outline-color:var(--wp-admin-theme-color);outline-style:solid;outline-width:calc(2 * (var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1)));outline-offset:calc(2 * ((-1 * var(--wp-admin-border-width-focus)) / var(--wp-block-editor-iframe-zoom-out-scale, 1)))}.components-menu-group+.components-menu-group{margin-top:8px;padding-top:8px;border-top:1px solid #1e1e1e}.components-menu-group+.components-menu-group.has-hidden-separator{border-top:none;margin-top:0;padding-top:0}.components-menu-group__label{padding:0 8px;margin-top:4px;margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500;white-space:nowrap}.components-menu-item__button,.components-menu-item__button.components-button{width:100%}.components-menu-item__button[role=menuitemradio] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button.components-button[role=menuitemradio] .components-menu-item__item:only-child,.components-menu-item__button.components-button[role=menuitemcheckbox] .components-menu-item__item:only-child{padding-right:48px;box-sizing:initial}.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button.components-button .components-menu-items__item-icon{display:inline-block;flex:0 0 auto}.components-menu-item__button .components-menu-items__item-icon.has-icon-right,.components-menu-item__button.components-button .components-menu-items__item-icon.has-icon-right{margin-right:-2px;margin-left:24px}.components-menu-item__button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right,.components-menu-item__button.components-button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right{margin-left:8px}.components-menu-item__button .block-editor-block-icon,.components-menu-item__button.components-button .block-editor-block-icon{margin-left:-2px;margin-right:8px}.components-menu-item__button.is-primary,.components-menu-item__button.components-button.is-primary{justify-content:center}.components-menu-item__button.is-primary .components-menu-item__item,.components-menu-item__button.components-button.is-primary .components-menu-item__item{margin-right:0}.components-menu-item__button:disabled.is-tertiary,.components-menu-item__button[aria-disabled=true].is-tertiary,.components-menu-item__button.components-button:disabled.is-tertiary,.components-menu-item__button.components-button[aria-disabled=true].is-tertiary{background:none;color:var(--wp-components-color-accent-darker-10, var(--wp-admin-theme-color-darker-10, #2145e6));opacity:.3}.components-menu-item__info-wrapper{display:flex;flex-direction:column;margin-right:auto}.components-menu-item__info{margin-top:4px;font-size:12px;color:#757575;white-space:normal}.components-menu-item__item{white-space:nowrap;min-width:160px;margin-right:auto;display:inline-flex;align-items:center}.components-menu-item__shortcut{align-self:center;margin-right:0;margin-left:auto;padding-left:24px;color:currentColor;display:none}@media (min-width: 480px){.components-menu-item__shortcut{display:inline}}.components-menu-items-choice svg,.components-menu-items-choice.components-button svg{margin-right:12px}.components-menu-items-choice.has-icon,.components-menu-items-choice.components-button.has-icon{padding-left:12px}.components-modal__screen-overlay{position:fixed;inset:0;background-color:#00000059;z-index:100000;display:flex;animation:edit-post__fade-in-animation .08s linear 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion: reduce){.components-modal__screen-overlay{animation-duration:1ms;animation-delay:0s}}.components-modal__frame{box-sizing:border-box;margin:40px 0 0;width:100%;background:#fff;box-shadow:0 .7px 1px #00000026,0 2.7px 3.8px -.2px #00000026,0 5.5px 7.8px -.3px #00000026,.1px 11.5px 16.4px -.5px #00000026;border-radius:8px 8px 0 0;overflow:hidden;display:flex;animation:components-modal__appear-animation .26s cubic-bezier(.29,0,0,1);animation-fill-mode:forwards}.components-modal__frame *,.components-modal__frame *:before,.components-modal__frame *:after{box-sizing:inherit}@media (prefers-reduced-motion: reduce){.components-modal__frame{animation-duration:1ms;animation-delay:0s}}@media (min-width: 600px){.components-modal__frame{border-radius:8px;margin:auto;width:auto;min-width:350px;max-width:calc(100% - 32px);max-height:calc(100% - 120px)}}@media (min-width: 600px) and (min-width: 600px){.components-modal__frame.is-full-screen{width:calc(100% - 32px);height:calc(100% - 32px);max-height:none}}@media (min-width: 600px) and (min-width: 782px){.components-modal__frame.is-full-screen{width:calc(100% - 80px);height:calc(100% - 80px);max-width:none}}@media (min-width: 600px){.components-modal__frame.has-size-small,.components-modal__frame.has-size-medium,.components-modal__frame.has-size-large{width:100%}}@media (min-width: 600px){.components-modal__frame.has-size-small{max-width:384px}}@media (min-width: 600px){.components-modal__frame.has-size-medium{max-width:512px}}@media (min-width: 600px){.components-modal__frame.has-size-large{max-width:840px}}@media (min-width: 960px){.components-modal__frame{max-height:70%}}@keyframes components-modal__appear-animation{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}.components-modal__header{box-sizing:border-box;border-bottom:1px solid transparent;padding:24px 32px 8px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;height:72px;width:100%;z-index:10;position:absolute;top:0;left:0}.components-modal__header .components-modal__header-heading{font-size:1.2rem;font-weight:600}.components-modal__header h1{line-height:1;margin:0}.components-modal__header .components-button{position:relative;left:8px}.components-modal__content.has-scrolled-content:not(.hide-header) .components-modal__header{border-bottom-color:#ddd}.components-modal__header+p{margin-top:0}.components-modal__header-heading-container{align-items:center;flex-grow:1;display:flex;flex-direction:row;justify-content:left}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-width:36px;max-height:36px;padding:8px}.components-modal__content{flex:1;margin-top:72px;padding:4px 32px 32px;overflow:auto}.components-modal__content.hide-header{margin-top:0;padding-top:32px}.components-modal__content.is-scrollable:focus-visible{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));outline:2px solid transparent;outline-offset:-2px}.components-notice{display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#fff;border-left:4px solid var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));padding:8px 12px;align-items:center}.components-notice.is-dismissible{position:relative}.components-notice.is-success{border-left-color:#4ab866;background-color:#eff9f1}.components-notice.is-warning{border-left-color:#f0b849;background-color:#fef8ee}.components-notice.is-error{border-left-color:#cc1818;background-color:#f4a2a2}.components-notice__content{flex-grow:1;margin:4px 25px 4px 0}.components-notice__actions{display:flex;flex-wrap:wrap}.components-notice__action.components-button{margin-right:8px}.components-notice__action.components-button,.components-notice__action.components-button.is-link{margin-left:12px}.components-notice__action.components-button.is-secondary{vertical-align:initial}.components-notice__dismiss{color:#757575;align-self:flex-start;flex-shrink:0}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus{color:#1e1e1e;background-color:transparent}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}.components-notice-list{max-width:100vw;box-sizing:border-box}.components-notice-list .components-notice__content{margin-top:12px;margin-bottom:12px;line-height:2}.components-notice-list .components-notice__action.components-button{display:block;margin-left:0;margin-top:8px}.components-panel{background:#fff;border:1px solid #e0e0e0}.components-panel>.components-panel__header:first-child,.components-panel>.components-panel__body:first-child{margin-top:-1px}.components-panel>.components-panel__header:last-child,.components-panel>.components-panel__body:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-top:1px solid #e0e0e0;border-bottom:1px solid #e0e0e0}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__header{display:flex;flex-shrink:0;justify-content:space-between;align-items:center;padding:0 16px;border-bottom:1px solid #ddd;box-sizing:content-box;height:47px}.components-panel__header h2{margin:0;font-size:inherit;color:inherit}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;padding:0;font-size:inherit;margin-top:0;margin-bottom:0;transition:.1s background ease-in-out}@media (prefers-reduced-motion: reduce){.components-panel__body>.components-panel__body-title{transition-duration:0s;transition-delay:0s}}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 5px}.components-panel__body>.components-panel__body-title:hover{background:#f0f0f0;border:none}.components-panel__body-toggle.components-button{position:relative;padding:16px 48px 16px 16px;outline:none;width:100%;font-weight:500;text-align:left;color:#1e1e1e;border:none;box-shadow:none;transition:.1s background ease-in-out;height:auto}@media (prefers-reduced-motion: reduce){.components-panel__body-toggle.components-button{transition-duration:0s;transition-delay:0s}}.components-panel__body-toggle.components-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));border-radius:0}.components-panel__body-toggle.components-button .components-panel__arrow{position:absolute;right:16px;top:50%;transform:translateY(-50%);color:#1e1e1e;fill:currentColor;transition:.1s color ease-in-out}@media (prefers-reduced-motion: reduce){.components-panel__body-toggle.components-button .components-panel__arrow{transition-duration:0s;transition-delay:0s}}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{transform:scaleX(-1);-ms-filter:fliph;filter:FlipH;margin-top:-10px}.components-panel__icon{color:#757575;margin:-2px 0 -2px 6px}.components-panel__body-toggle-icon{margin-right:-5px}.components-panel__color-title{float:left;height:19px}.components-panel__row{display:flex;justify-content:space-between;align-items:center;margin-top:8px;min-height:36px}.components-panel__row select{min-width:0}.components-panel__row label{margin-right:12px;flex-shrink:0;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder.components-placeholder{font-size:13px;box-sizing:border-box;position:relative;padding:24px;width:100%;text-align:left;margin:0;color:#1e1e1e;display:flex;flex-direction:column;align-items:flex-start;gap:16px;-moz-font-smoothing:subpixel-antialiased;-webkit-font-smoothing:subpixel-antialiased;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;outline:1px solid transparent}.components-placeholder__error,.components-placeholder__instructions,.components-placeholder__label,.components-placeholder__fieldset{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;letter-spacing:initial;line-height:initial;text-transform:none;font-weight:400}.components-placeholder__label{font-weight:600;align-items:center;display:flex}.components-placeholder__label>svg,.components-placeholder__label .dashicon,.components-placeholder__label .block-editor-block-icon{margin-right:4px;fill:currentColor}@media (forced-colors: active){.components-placeholder__label>svg,.components-placeholder__label .dashicon,.components-placeholder__label .block-editor-block-icon{fill:CanvasText}}.components-placeholder__label:empty{display:none}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;width:100%;flex-wrap:wrap;gap:16px;justify-content:flex-start}.components-placeholder__fieldset p,.components-placeholder__fieldset form p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__fieldset.is-column-layout,.components-placeholder__fieldset.is-column-layout form{flex-direction:column}.components-placeholder__input[type=url]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #949494;font-size:16px;line-height:normal;flex:1 1 auto}@media (prefers-reduced-motion: reduce){.components-placeholder__input[type=url]{transition-duration:0s;transition-delay:0s}}@media (min-width: 600px){.components-placeholder__input[type=url]{font-size:13px;line-height:normal}}.components-placeholder__input[type=url]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-placeholder__input[type=url]::-webkit-input-placeholder{color:#1e1e1e9e}.components-placeholder__input[type=url]::-moz-placeholder{opacity:1;color:#1e1e1e9e}.components-placeholder__input[type=url]:-ms-input-placeholder{color:#1e1e1e9e}.components-placeholder__error{width:100%;gap:8px}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link{margin-left:10px;margin-right:10px}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link:last-child{margin-right:0}.components-placeholder.is-medium .components-placeholder__instructions,.components-placeholder.is-small .components-placeholder__instructions{display:none}.components-placeholder.is-medium .components-placeholder__fieldset,.components-placeholder.is-medium .components-placeholder__fieldset form,.components-placeholder.is-small .components-placeholder__fieldset,.components-placeholder.is-small .components-placeholder__fieldset form{flex-direction:column}.components-placeholder.is-medium .components-placeholder__fieldset>*,.components-placeholder.is-medium .components-button,.components-placeholder.is-small .components-placeholder__fieldset>*,.components-placeholder.is-small .components-button{width:100%;justify-content:center}.components-placeholder.is-small{padding:16px}.components-placeholder.has-illustration{color:inherit;display:flex;box-shadow:none;border-radius:0;-webkit-backdrop-filter:blur(100px);backdrop-filter:blur(100px);background-color:transparent;backface-visibility:hidden;overflow:hidden}.is-dark-theme .components-placeholder.has-illustration{background-color:#0000001a}.components-placeholder.has-illustration .components-placeholder__fieldset{margin-left:0;margin-right:0}.components-placeholder.has-illustration .components-placeholder__label,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-button{opacity:0;pointer-events:none;transition:opacity .1s linear}@media (prefers-reduced-motion: reduce){.components-placeholder.has-illustration .components-placeholder__label,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-button{transition-duration:0s;transition-delay:0s}}.is-selected>.components-placeholder.has-illustration .components-placeholder__label,.is-selected>.components-placeholder.has-illustration .components-placeholder__instructions,.is-selected>.components-placeholder.has-illustration .components-button{opacity:1;pointer-events:auto}.components-placeholder.has-illustration:before{content:"";position:absolute;inset:0;pointer-events:none;background:currentColor;opacity:.1}.is-selected .components-placeholder.has-illustration{overflow:auto}.components-placeholder__preview{display:flex;justify-content:center}.components-placeholder__illustration{box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;stroke:currentColor;opacity:.25}.components-popover{box-sizing:border-box;z-index:1000000;will-change:transform}.components-popover *,.components-popover *:before,.components-popover *:after{box-sizing:inherit}.components-popover.is-expanded{position:fixed;inset:0;z-index:1000000!important}.components-popover__content{background:#fff;box-shadow:0 0 0 1px #ccc,0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a;border-radius:4px;box-sizing:border-box;width:min-content}.is-alternate .components-popover__content{box-shadow:0 0 0 1px #1e1e1e}.is-unstyled .components-popover__content{background:none;border-radius:0;box-shadow:none}.components-popover.is-expanded .components-popover__content{position:static;height:calc(100% - 48px);overflow-y:visible;width:auto;box-shadow:0 -1px #ccc}.components-popover.is-expanded.is-alternate .components-popover__content{box-shadow:0 -1px #1e1e1e}.components-popover__header{align-items:center;background:#fff;display:flex;height:48px;justify-content:space-between;padding:0 8px 0 16px}.components-popover__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.components-popover__close.components-button{z-index:5}.components-popover__arrow{position:absolute;width:14px;height:14px;pointer-events:none;display:flex}.components-popover__arrow:before{content:"";position:absolute;top:-1px;left:1px;height:2px;right:1px;background-color:#fff}.components-popover__arrow.is-top{bottom:-14px!important;transform:rotate(0)}.components-popover__arrow.is-right{left:-14px!important;transform:rotate(90deg)}.components-popover__arrow.is-bottom{top:-14px!important;transform:rotate(180deg)}.components-popover__arrow.is-left{right:-14px!important;transform:rotate(-90deg)}.components-popover__triangle{display:block;flex:1}.components-popover__triangle-bg{fill:#fff}.components-popover__triangle-border{fill:transparent;stroke-width:1px;stroke:#ccc}.is-alternate .components-popover__triangle-border{stroke:#1e1e1e}.components-radio-control{border:0;margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-radio-control__group-wrapper.has-help{margin-block-end:12px}.components-radio-control__option{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto minmax(0,max-content);column-gap:8px;align-items:center}.components-radio-control__input[type=radio]{grid-column:1;grid-row:1;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border:1px solid #949494;font-size:16px;line-height:normal;border:1px solid #1e1e1e;transition:none;border-radius:50%;width:24px;height:24px;min-width:24px;max-width:24px;position:relative;display:inline-flex;margin:0;padding:0;appearance:none;cursor:pointer}@media (prefers-reduced-motion: reduce){.components-radio-control__input[type=radio]{transition-duration:0s;transition-delay:0s}}@media (min-width: 600px){.components-radio-control__input[type=radio]{font-size:13px;line-height:normal}}.components-radio-control__input[type=radio]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-radio-control__input[type=radio]::-webkit-input-placeholder{color:#1e1e1e9e}.components-radio-control__input[type=radio]::-moz-placeholder{opacity:1;color:#1e1e1e9e}.components-radio-control__input[type=radio]:-ms-input-placeholder{color:#1e1e1e9e}@media (min-width: 600px){.components-radio-control__input[type=radio]{height:16px;width:16px;min-width:16px;max-width:16px}}.components-radio-control__input[type=radio]:checked:before{box-sizing:inherit;width:12px;height:12px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;background-color:#fff;border:4px solid #fff}@media (min-width: 600px){.components-radio-control__input[type=radio]:checked:before{width:8px;height:8px}}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.components-radio-control__input[type=radio]:checked{background:var(--wp-admin-theme-color);border:none}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(2 * var(--wp-admin-border-width-focus)) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.components-radio-control__input[type=radio]:checked{background:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));border-color:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))}.components-radio-control__input[type=radio]:checked:before{content:"";border-radius:50%}.components-radio-control__label{grid-column:2;grid-row:1;cursor:pointer;line-height:24px}@media (min-width: 600px){.components-radio-control__label{line-height:16px}}.components-radio-control__option-description{grid-column:2;grid-row:2;padding-block-start:4px}.components-radio-control__option-description.components-radio-control__option-description{margin-top:0}.components-resizable-box__handle{display:none;width:23px;height:23px;z-index:2}.components-resizable-box__container.has-show-handle .components-resizable-box__handle{display:block}.components-resizable-box__container>img{width:inherit}.components-resizable-box__handle:after{display:block;content:"";width:15px;height:15px;border-radius:50%;background:#fff;cursor:inherit;position:absolute;top:calc(50% - 8px);right:calc(50% - 8px);box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));outline:2px solid transparent}.components-resizable-box__side-handle:before{display:block;border-radius:9999px;content:"";width:3px;height:3px;background:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));cursor:inherit;position:absolute;top:calc(50% - 1px);right:calc(50% - 1px);transition:transform .1s ease-in;will-change:transform;opacity:0}@media (prefers-reduced-motion: reduce){.components-resizable-box__side-handle:before{transition-duration:0s;transition-delay:0s}}.components-resizable-box__side-handle,.components-resizable-box__corner-handle{z-index:2}.components-resizable-box__side-handle.components-resizable-box__handle-top,.components-resizable-box__side-handle.components-resizable-box__handle-bottom,.components-resizable-box__side-handle.components-resizable-box__handle-top:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:before{width:100%;left:0;border-left:0;border-right:0}.components-resizable-box__side-handle.components-resizable-box__handle-left,.components-resizable-box__side-handle.components-resizable-box__handle-right,.components-resizable-box__side-handle.components-resizable-box__handle-left:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:before{height:100%;top:0;border-top:0;border-bottom:0}.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before{animation:components-resizable-box__top-bottom-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion: reduce){.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before{animation-duration:1ms;animation-delay:0s}}.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before{animation:components-resizable-box__left-right-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion: reduce){.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before{animation-duration:1ms;animation-delay:0s}}@media not all and (min-resolution: .001dpcm){@supports (-webkit-appearance: none){.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before{animation:none}.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before{animation:none}}}@keyframes components-resizable-box__top-bottom-animation{0%{transform:scaleX(0);opacity:0}to{transform:scaleX(1);opacity:1}}@keyframes components-resizable-box__left-right-animation{0%{transform:scaleY(0);opacity:0}to{transform:scaleY(1);opacity:1}}/*!rtl:begin:ignore*/.components-resizable-box__handle-right{right:-11.5px}.components-resizable-box__handle-left{left:-11.5px}.components-resizable-box__handle-top{top:-11.5px}.components-resizable-box__handle-bottom{bottom:-11.5px}/*!rtl:end:ignore*/.components-responsive-wrapper{position:relative;max-width:100%;display:flex;align-items:center;justify-content:center}.components-responsive-wrapper__content{display:block;max-width:100%;width:100%}.components-sandbox{overflow:hidden}iframe.components-sandbox{width:100%}html.lockscroll,body.lockscroll{overflow:hidden}.components-select-control__input{outline:0;-webkit-tap-highlight-color:rgba(0,0,0,0)!important}@media (max-width: 782px){.components-base-control .components-base-control__field .components-select-control__input{font-size:16px}}.components-snackbar{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background:#000000d9;-webkit-backdrop-filter:blur(16px) saturate(180%);backdrop-filter:blur(16px) saturate(180%);border-radius:4px;box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a;color:#fff;padding:12px 20px;width:100%;max-width:600px;box-sizing:border-box;cursor:pointer;pointer-events:auto}@media (min-width: 600px){.components-snackbar{width:-moz-fit-content;width:fit-content}}.components-snackbar:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))}.components-snackbar.components-snackbar-explicit-dismiss{cursor:default}.components-snackbar .components-snackbar__content-with-icon{position:relative;padding-left:24px}.components-snackbar .components-snackbar__icon{position:absolute;left:-8px;top:-2.9px}.components-snackbar .components-snackbar__dismiss-button{margin-left:24px;cursor:pointer}.components-snackbar__action.components-button{margin-left:32px;color:#fff;height:auto;flex-shrink:0;line-height:1.4;padding:0}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary){text-decoration:underline;background-color:transparent}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):focus{color:#fff;box-shadow:none;outline:1px dotted #fff}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{text-decoration:none;color:#fff}.components-snackbar__content{display:flex;align-items:baseline;justify-content:space-between;line-height:1.4}.components-snackbar-list{position:absolute;z-index:100000;width:100%;box-sizing:border-box;pointer-events:none}.components-snackbar-list__notice-container{position:relative;padding-top:8px}.components-tab-panel__tabs{display:flex;align-items:stretch;flex-direction:row}.components-tab-panel__tabs[aria-orientation=vertical]{flex-direction:column}.components-tab-panel__tabs-item{position:relative;border-radius:0;height:48px;background:transparent;border:none;box-shadow:none;cursor:pointer;padding:3px 16px;margin-left:0;font-weight:500}.components-tab-panel__tabs-item:focus:not(:disabled){position:relative;box-shadow:none;outline:none}.components-tab-panel__tabs-item:after{content:"";position:absolute;right:0;bottom:0;left:0;pointer-events:none;background:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));height:calc(0 * var(--wp-admin-border-width-focus));border-radius:0;transition:all .1s linear}@media (prefers-reduced-motion: reduce){.components-tab-panel__tabs-item:after{transition-duration:0s;transition-delay:0s}}.components-tab-panel__tabs-item.is-active:after{height:calc(1 * var(--wp-admin-border-width-focus));outline:2px solid transparent;outline-offset:-1px}.components-tab-panel__tabs-item:before{content:"";position:absolute;inset:12px;pointer-events:none;box-shadow:0 0 0 0 transparent;border-radius:2px;transition:all .1s linear}@media (prefers-reduced-motion: reduce){.components-tab-panel__tabs-item:before{transition-duration:0s;transition-delay:0s}}.components-tab-panel__tabs-item:focus-visible:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));outline:2px solid transparent}.components-tab-panel__tab-content:focus{box-shadow:none;outline:none}.components-tab-panel__tab-content:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));outline:2px solid transparent;outline-offset:0}.components-text-control__input,.components-text-control__input[type=text],.components-text-control__input[type=tel],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week],.components-text-control__input[type=password],.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime],.components-text-control__input[type=datetime-local],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number]{width:100%;height:32px;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #949494;font-size:16px;line-height:normal}@media (prefers-reduced-motion: reduce){.components-text-control__input,.components-text-control__input[type=text],.components-text-control__input[type=tel],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week],.components-text-control__input[type=password],.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime],.components-text-control__input[type=datetime-local],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number]{transition-duration:0s;transition-delay:0s}}@media (min-width: 600px){.components-text-control__input,.components-text-control__input[type=text],.components-text-control__input[type=tel],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week],.components-text-control__input[type=password],.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime],.components-text-control__input[type=datetime-local],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number]{font-size:13px;line-height:normal}}.components-text-control__input:focus,.components-text-control__input[type=text]:focus,.components-text-control__input[type=tel]:focus,.components-text-control__input[type=time]:focus,.components-text-control__input[type=url]:focus,.components-text-control__input[type=week]:focus,.components-text-control__input[type=password]:focus,.components-text-control__input[type=color]:focus,.components-text-control__input[type=date]:focus,.components-text-control__input[type=datetime]:focus,.components-text-control__input[type=datetime-local]:focus,.components-text-control__input[type=email]:focus,.components-text-control__input[type=month]:focus,.components-text-control__input[type=number]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-text-control__input::-webkit-input-placeholder,.components-text-control__input[type=text]::-webkit-input-placeholder,.components-text-control__input[type=tel]::-webkit-input-placeholder,.components-text-control__input[type=time]::-webkit-input-placeholder,.components-text-control__input[type=url]::-webkit-input-placeholder,.components-text-control__input[type=week]::-webkit-input-placeholder,.components-text-control__input[type=password]::-webkit-input-placeholder,.components-text-control__input[type=color]::-webkit-input-placeholder,.components-text-control__input[type=date]::-webkit-input-placeholder,.components-text-control__input[type=datetime]::-webkit-input-placeholder,.components-text-control__input[type=datetime-local]::-webkit-input-placeholder,.components-text-control__input[type=email]::-webkit-input-placeholder,.components-text-control__input[type=month]::-webkit-input-placeholder,.components-text-control__input[type=number]::-webkit-input-placeholder{color:#1e1e1e9e}.components-text-control__input::-moz-placeholder,.components-text-control__input[type=text]::-moz-placeholder,.components-text-control__input[type=tel]::-moz-placeholder,.components-text-control__input[type=time]::-moz-placeholder,.components-text-control__input[type=url]::-moz-placeholder,.components-text-control__input[type=week]::-moz-placeholder,.components-text-control__input[type=password]::-moz-placeholder,.components-text-control__input[type=color]::-moz-placeholder,.components-text-control__input[type=date]::-moz-placeholder,.components-text-control__input[type=datetime]::-moz-placeholder,.components-text-control__input[type=datetime-local]::-moz-placeholder,.components-text-control__input[type=email]::-moz-placeholder,.components-text-control__input[type=month]::-moz-placeholder,.components-text-control__input[type=number]::-moz-placeholder{opacity:1;color:#1e1e1e9e}.components-text-control__input:-ms-input-placeholder,.components-text-control__input[type=text]:-ms-input-placeholder,.components-text-control__input[type=tel]:-ms-input-placeholder,.components-text-control__input[type=time]:-ms-input-placeholder,.components-text-control__input[type=url]:-ms-input-placeholder,.components-text-control__input[type=week]:-ms-input-placeholder,.components-text-control__input[type=password]:-ms-input-placeholder,.components-text-control__input[type=color]:-ms-input-placeholder,.components-text-control__input[type=date]:-ms-input-placeholder,.components-text-control__input[type=datetime]:-ms-input-placeholder,.components-text-control__input[type=datetime-local]:-ms-input-placeholder,.components-text-control__input[type=email]:-ms-input-placeholder,.components-text-control__input[type=month]:-ms-input-placeholder,.components-text-control__input[type=number]:-ms-input-placeholder{color:#1e1e1e9e}.components-text-control__input.is-next-40px-default-size,.components-text-control__input[type=text].is-next-40px-default-size,.components-text-control__input[type=tel].is-next-40px-default-size,.components-text-control__input[type=time].is-next-40px-default-size,.components-text-control__input[type=url].is-next-40px-default-size,.components-text-control__input[type=week].is-next-40px-default-size,.components-text-control__input[type=password].is-next-40px-default-size,.components-text-control__input[type=color].is-next-40px-default-size,.components-text-control__input[type=date].is-next-40px-default-size,.components-text-control__input[type=datetime].is-next-40px-default-size,.components-text-control__input[type=datetime-local].is-next-40px-default-size,.components-text-control__input[type=email].is-next-40px-default-size,.components-text-control__input[type=month].is-next-40px-default-size,.components-text-control__input[type=number].is-next-40px-default-size{height:40px;padding-left:12px;padding-right:12px}.components-tip{display:flex;color:#757575}.components-tip svg{align-self:center;fill:#f0b849;flex-shrink:0;margin-right:16px}.components-tip p{margin:0}.components-toggle-control__label{line-height:16px}.components-toggle-control__label:not(.is-disabled){cursor:pointer}.components-toggle-control__help{display:inline-block;margin-inline-start:40px}.components-accessible-toolbar{display:inline-flex;border:1px solid #1e1e1e;border-radius:2px;flex-shrink:0}.components-accessible-toolbar>.components-toolbar-group:last-child{border-right:none}.components-accessible-toolbar.is-unstyled{border:none}.components-accessible-toolbar.is-unstyled>.components-toolbar-group{border-right:none}.components-accessible-toolbar[aria-orientation=vertical],.components-toolbar[aria-orientation=vertical]{display:flex;flex-direction:column;align-items:center}.components-accessible-toolbar .components-button,.components-toolbar .components-button{position:relative;height:48px;z-index:1;padding-left:16px;padding-right:16px}.components-accessible-toolbar .components-button:focus:not(:disabled),.components-toolbar .components-button:focus:not(:disabled){box-shadow:none;outline:none}.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{content:"";position:absolute;display:block;border-radius:2px;height:32px;left:8px;right:8px;z-index:-1;animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion: reduce){.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation-duration:1ms;animation-delay:0s}}.components-accessible-toolbar .components-button svg,.components-toolbar .components-button svg{position:relative;margin-left:auto;margin-right:auto}.components-accessible-toolbar .components-button.is-pressed,.components-toolbar .components-button.is-pressed,.components-accessible-toolbar .components-button.is-pressed:hover,.components-toolbar .components-button.is-pressed:hover{background:transparent}.components-accessible-toolbar .components-button.is-pressed:before,.components-toolbar .components-button.is-pressed:before{background:#1e1e1e}.components-accessible-toolbar .components-button:focus:before,.components-toolbar .components-button:focus:before{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.components-accessible-toolbar .components-button.has-icon.has-icon,.components-toolbar .components-button.has-icon.has-icon{padding-left:8px;padding-right:8px;min-width:48px}@keyframes components-button__appear-animation{0%{transform:scaleY(0)}to{transform:scaleY(1)}}.components-toolbar__control.components-button{position:relative}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 10px 5px 0}.components-toolbar__control.components-button[data-subscript]:after{content:attr(data-subscript);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;line-height:12px;position:absolute;right:8px;bottom:10px}.components-toolbar__control.components-button:not(:disabled).is-pressed[data-subscript]:after{color:#fff}.components-toolbar-group{min-height:48px;border-right:1px solid #1e1e1e;background-color:#fff;display:inline-flex;flex-shrink:0;flex-wrap:wrap;padding-left:6px;padding-right:6px;line-height:0}.components-toolbar-group .components-toolbar-group.components-toolbar-group{border-width:0;margin:0}.components-toolbar-group .components-button.components-button,.components-toolbar-group .components-button.has-icon.has-icon{justify-content:center;min-width:36px;padding-left:6px;padding-right:6px}.components-toolbar-group .components-button.components-button svg,.components-toolbar-group .components-button.has-icon.has-icon svg{min-width:24px}.components-toolbar-group .components-button.components-button:before,.components-toolbar-group .components-button.has-icon.has-icon:before{left:2px;right:2px}.components-toolbar{min-height:48px;margin:0;border:1px solid #1e1e1e;background-color:#fff;display:inline-flex;flex-shrink:0;flex-wrap:wrap}.components-toolbar .components-toolbar.components-toolbar{border-width:0;margin:0}div.components-toolbar>div{display:flex;margin:0}div.components-toolbar>div+div.has-left-divider{margin-left:6px;position:relative;overflow:visible}div.components-toolbar>div+div.has-left-divider:before{display:inline-block;content:"";box-sizing:content-box;background-color:#ddd;position:absolute;top:8px;left:-3px;width:1px;height:20px}.components-tooltip{background:#000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;border-radius:2px;color:#f0f0f0;text-align:center;line-height:1.4;font-size:12px;padding:4px 8px;z-index:1000002}.components-tooltip__shortcut{margin-left:8px}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:18px;line-height:1.5;--wp--style--block-gap: 2em}p{line-height:1.8}.editor-post-title__block{margin-top:2em;margin-bottom:1em;font-size:2.5em;font-weight:800}.block-editor-autocompleters__block{white-space:nowrap}.block-editor-autocompleters__block .block-editor-block-icon{margin-right:8px}.block-editor-autocompleters__block[aria-selected=true] .block-editor-block-icon{color:inherit!important}.block-editor-autocompleters__link{white-space:nowrap}.block-editor-autocompleters__link .block-editor-block-icon{margin-right:8px}.block-editor-block-alignment-control__menu-group .components-menu-item__info{margin-top:0}iframe[name=editor-canvas]{box-sizing:border-box;width:100%;height:100%;display:block;background-color:transparent;transition:all .5s cubic-bezier(.65,0,.45,1)}@media (prefers-reduced-motion: reduce){iframe[name=editor-canvas]{transition-duration:0s;transition-delay:0s}}.block-editor-block-inspector p:not(.components-base-control__help){margin-top:0}.block-editor-block-inspector h2,.block-editor-block-inspector h3{font-size:13px;color:#1e1e1e;margin-bottom:1.5em}.block-editor-block-inspector .components-base-control{margin-bottom:24px}.block-editor-block-inspector .components-base-control:last-child{margin-bottom:8px}.block-editor-block-inspector .components-focal-point-picker-control .components-base-control,.block-editor-block-inspector .components-query-controls .components-base-control,.block-editor-block-inspector .components-range-control .components-base-control{margin-bottom:0}.block-editor-block-inspector .components-panel__body{border:none;border-top:1px solid #e0e0e0;margin-top:-1px}.block-editor-block-inspector__no-blocks,.block-editor-block-inspector__no-block-tools{display:block;font-size:13px;background:#fff;padding:32px 16px;text-align:center}.block-editor-block-inspector__no-block-tools{border-top:1px solid #ddd}.block-editor-block-inspector__tab-item{flex:1 1 0px}.block-editor-block-list__insertion-point{position:absolute;inset:0}.block-editor-block-list__insertion-point-indicator{position:absolute;background:var(--wp-admin-theme-color);border-radius:2px;transform-origin:center;opacity:0;will-change:transform,opacity}.block-editor-block-list__insertion-point.is-vertical>.block-editor-block-list__insertion-point-indicator{top:calc(50% - 2px);height:4px;width:100%}.block-editor-block-list__insertion-point.is-horizontal>.block-editor-block-list__insertion-point-indicator{top:0;bottom:0;left:calc(50% - 2px);width:4px}.block-editor-block-list__insertion-point-inserter{display:none;position:absolute;will-change:transform;justify-content:center;top:calc(50% - 12px);left:calc(50% - 12px)}@media (min-width: 480px){.block-editor-block-list__insertion-point-inserter{display:flex}}.block-editor-block-list__block-side-inserter-popover .components-popover__content>div{pointer-events:none}.block-editor-block-list__block-side-inserter-popover .components-popover__content>div>*{pointer-events:all}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;color:#fff;padding:0;min-width:24px;height:24px}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover{color:#fff;background:var(--wp-admin-theme-color)}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon{background:var(--wp-admin-theme-color)}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover{background:#1e1e1e}.block-editor-block-list__block-selection-button{display:inline-flex;padding:0 12px;z-index:22;border-radius:2px;background-color:#1e1e1e;font-size:13px;height:48px}.block-editor-block-list__block-selection-button .block-editor-block-list__block-selection-button__content{margin:auto;display:inline-flex;align-items:center}.block-editor-block-list__block-selection-button .block-editor-block-list__block-selection-button__content>.components-flex__item{margin-right:6px}.block-editor-block-list__block-selection-button .components-button.has-icon.block-selection-button_drag-handle{cursor:grab;padding:0;height:24px;min-width:24px;margin-left:-2px}.block-editor-block-list__block-selection-button .components-button.has-icon.block-selection-button_drag-handle svg{min-width:18px;min-height:18px}.block-editor-block-list__block-selection-button .block-editor-block-icon{font-size:13px;color:#fff;height:48px}.block-editor-block-list__block-selection-button .components-button{min-width:36px;color:#fff;height:48px;display:flex}.block-editor-block-list__block-selection-button .components-button:focus{box-shadow:none;border:none}.block-editor-block-list__block-selection-button .components-button:active,.block-editor-block-list__block-selection-button .components-button[aria-disabled=true]:hover{color:#fff}.block-editor-block-list__block-selection-button .block-selection-button_select-button.components-button{padding:0}.block-editor-block-list__block-selection-button .block-editor-block-mover{background:unset;border:none}@keyframes hide-during-dragging{to{position:fixed;transform:translate(9999px,9999px)}}.components-popover.block-editor-block-list__block-popover .block-editor-block-list__block-selection-button,.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar{pointer-events:all;margin-top:8px;margin-bottom:8px}.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar{border:1px solid #1e1e1e;border-radius:2px;overflow:visible;position:static;width:auto}.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar.has-parent{margin-left:56px}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar.has-parent{margin-left:0}.components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar{overflow:visible}.components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar .components-toolbar-group,.components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar .components-toolbar{border-right-color:#1e1e1e}.components-popover.block-editor-block-list__block-popover.is-insertion-point-visible{visibility:hidden}.is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover{opacity:0;animation:hide-during-dragging 1ms linear forwards}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector{position:absolute;left:-57px}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector:before{content:""}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector .block-editor-block-parent-selector__button{border:1px solid #1e1e1e;padding-right:6px;padding-left:6px;background-color:#fff}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector .block-editor-block-parent-selector__button{padding-right:12px;padding-left:12px}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector{position:relative;left:auto;margin-left:-1px}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-mover__move-button-container,.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar__block-controls .block-editor-block-mover{border-left:1px solid #1e1e1e}.is-dragging-components-draggable .components-tooltip{display:none}.components-popover.block-editor-block-popover__inbetween .block-editor-button-pattern-inserter__button{pointer-events:all;position:absolute;transform:translate(-50%) translateY(-50%);top:50%;left:50%}.zoom-out-toolbar .block-editor-block-mover-button.block-editor-block-mover-button:focus-visible:before,.zoom-out-toolbar .zoom-out-toolbar-button:focus:before,.zoom-out-toolbar .block-editor-block-toolbar-shuffle:focus:before,.zoom-out-toolbar .block-selection-button_drag-handle:focus:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.zoom-out-toolbar .block-editor-block-mover{background:none;border:none}.block-editor-block-tools__zoom-out-mode-inserter-button{visibility:hidden}.block-editor-block-tools__zoom-out-mode-inserter-button.is-visible{visibility:visible}.block-editor-block-lock-modal{z-index:1000001}@media (min-width: 600px){.block-editor-block-lock-modal .components-modal__frame{max-width:480px}}.block-editor-block-lock-modal__options legend{margin-bottom:16px;padding:0}.block-editor-block-lock-modal__checklist{margin:0}.block-editor-block-lock-modal__options-all{padding:12px 0}.block-editor-block-lock-modal__options-all .components-checkbox-control__label{font-weight:600}.block-editor-block-lock-modal__checklist-item{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:0;padding:12px 0 12px 32px}.block-editor-block-lock-modal__checklist-item .block-editor-block-lock-modal__lock-icon{flex-shrink:0;margin-right:12px;fill:#1e1e1e}.block-editor-block-lock-modal__checklist-item:hover{background-color:#f0f0f0;border-radius:2px}.block-editor-block-lock-modal__template-lock{border-top:1px solid #ddd;margin-top:16px;padding-top:16px}.block-editor-block-lock-modal__actions{margin-top:24px}.block-editor-block-lock-toolbar .components-button.has-icon{min-width:36px!important}.block-editor-block-toolbar__block-controls .block-editor-block-lock-toolbar{margin-left:-6px!important}.show-icon-labels .block-editor-block-toolbar__block-controls .block-editor-block-lock-toolbar{border-left:1px solid #1e1e1e;margin-left:6px!important;margin-right:-6px}.block-editor-block-breadcrumb{list-style:none;padding:0;margin:0}.block-editor-block-breadcrumb li{display:inline-flex;margin:0}.block-editor-block-breadcrumb li .block-editor-block-breadcrumb__separator{fill:currentColor;margin-left:-4px;margin-right:-4px;transform:scaleX(1)}.block-editor-block-breadcrumb li:last-child .block-editor-block-breadcrumb__separator{display:none}.block-editor-block-breadcrumb__button.components-button{height:24px;line-height:24px;padding:0;position:relative}.block-editor-block-breadcrumb__button.components-button:hover:not(:disabled){text-decoration:underline;box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus{box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus:before{content:"";display:block;position:absolute;border-radius:2px;inset:1px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-breadcrumb__current{cursor:default}.block-editor-block-breadcrumb__button.components-button,.block-editor-block-breadcrumb__current{color:#1e1e1e;padding:0 8px;font-size:inherit}.block-editor-block-card{align-items:flex-start;color:#1e1e1e;display:flex;padding:16px}.block-editor-block-card__title{font-weight:500}.block-editor-block-card__title.block-editor-block-card__title{font-size:13px;line-height:1.4;margin:0;padding:3px 0}.block-editor-block-card .block-editor-block-icon{flex:0 0 24px;margin-left:0;margin-right:12px;width:24px;height:24px}.block-editor-block-card.is-synced .block-editor-block-icon{color:var(--wp-block-synced-color)}.block-editor-block-compare{height:auto}.block-editor-block-compare__wrapper{display:flex;padding-bottom:16px}.block-editor-block-compare__wrapper>div{display:flex;justify-content:space-between;flex-direction:column;width:50%;padding:0 16px 0 0;min-width:200px;max-width:600px}.block-editor-block-compare__wrapper>div button{float:right}.block-editor-block-compare__wrapper .block-editor-block-compare__converted{border-left:1px solid #ddd;padding-left:15px;padding-right:0}.block-editor-block-compare__wrapper .block-editor-block-compare__html{font-family:Menlo,Consolas,monaco,monospace;font-size:12px;color:#1e1e1e;border-bottom:1px solid #ddd;padding-bottom:15px;line-height:1.7}.block-editor-block-compare__wrapper .block-editor-block-compare__html span{background-color:#e6ffed;padding-top:3px;padding-bottom:3px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__added{background-color:#acf2bd}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__removed{background-color:#cc1818}.block-editor-block-compare__wrapper .block-editor-block-compare__preview{padding:16px 0 0}.block-editor-block-compare__wrapper .block-editor-block-compare__preview p{font-size:12px;margin-top:0}.block-editor-block-compare__wrapper .block-editor-block-compare__action{margin-top:16px}.block-editor-block-compare__wrapper .block-editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.block-editor-block-draggable-chip-wrapper{position:absolute;top:-24px;left:0}.block-editor-block-draggable-chip{background-color:#1e1e1e;border-radius:2px;box-shadow:0 6px 8px #0000004d;color:#fff;cursor:grabbing;display:inline-flex;height:48px;padding:0 13px;position:relative;-webkit-user-select:none;user-select:none;width:max-content}.block-editor-block-draggable-chip svg{fill:currentColor}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content{margin:auto;justify-content:flex-start}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content>.components-flex__item{margin-right:6px}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content>.components-flex__item:last-child{margin-right:0}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content .block-editor-block-icon svg{min-width:18px;min-height:18px}.block-editor-block-draggable-chip .components-flex__item{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled{opacity:0;position:absolute;inset:0;display:flex;justify-content:center;align-items:center;background-color:transparent;transition:all .1s linear .1s}.block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled .block-editor-block-draggable-chip__disabled-icon{width:20px;height:20px;box-shadow:inset 0 0 0 1.5px #fff;border-radius:50%;display:inline-block;padding:0;background:transparent linear-gradient(-45deg,transparent 47.5%,#fff 47.5%,#fff 52.5%,transparent 52.5%)}.block-draggable-invalid-drag-token .block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled{background-color:#757575;opacity:1;box-shadow:0 4px 8px #0003}.block-editor-block-mover__move-button-container{display:flex;padding:0;border:none;justify-content:center}@media (min-width: 600px){.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{flex-direction:column}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container>*{height:20px;width:100%;min-width:0!important}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container>*:before{height:calc(100% - 4px)}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-up-button svg{top:3px;flex-shrink:0}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-down-button svg{bottom:3px;flex-shrink:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container{width:48px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container>*{width:24px;min-width:0!important;overflow:hidden}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button{padding-left:0;padding-right:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-up-button svg{left:5px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-down-button svg{right:5px}}.block-editor-block-mover__drag-handle{cursor:grab}@media (min-width: 600px){.block-editor-block-mover__drag-handle{width:24px;min-width:0!important;overflow:hidden}.block-editor-block-mover .block-editor-block-mover__drag-handle.has-icon.has-icon{padding-left:0;padding-right:0}}.components-button.block-editor-block-mover-button:before{content:"";position:absolute;display:block;border-radius:2px;height:32px;left:8px;right:8px;z-index:-1;animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion: reduce){.components-button.block-editor-block-mover-button:before{animation-duration:1ms;animation-delay:0s}}.components-button.block-editor-block-mover-button:focus,.components-button.block-editor-block-mover-button:focus:enabled,.components-button.block-editor-block-mover-button:focus:before{box-shadow:none;outline:none}.components-button.block-editor-block-mover-button:focus-visible:before{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-navigation__container{min-width:280px}.block-editor-block-navigation__label{margin:0 0 12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-block-patterns-list__list-item{cursor:pointer;margin-bottom:16px;position:relative}.block-editor-block-patterns-list__list-item.is-placeholder{min-height:100px}.block-editor-block-patterns-list__list-item[draggable=true]{cursor:grab}.block-editor-block-patterns-list__item{height:100%;scroll-margin-top:24px;scroll-margin-bottom:56px}.block-editor-block-patterns-list__item .block-editor-block-patterns-list__item-title{flex-grow:1;font-size:12px;text-align:left}.block-editor-block-patterns-list__item .block-editor-block-preview__container{display:flex;align-items:center;overflow:hidden;border-radius:4px}.block-editor-block-patterns-list__item .block-editor-block-preview__container:after{outline:1px solid rgba(0,0,0,.1);outline-offset:-1px;border-radius:4px}.block-editor-block-patterns-list__item:hover:not(:focus) .block-editor-block-preview__container:after{outline-color:#0000004d}.block-editor-block-patterns-list__item:focus .block-editor-block-preview__container:after{outline-color:var(--wp-admin-theme-color);outline-width:var(--wp-admin-border-width-focus);outline-offset:calc((-1 * var(--wp-admin-border-width-focus)));transition:outline .1s linear}@media (prefers-reduced-motion: reduce){.block-editor-block-patterns-list__item:focus .block-editor-block-preview__container:after{transition-duration:0s;transition-delay:0s}}.block-editor-block-patterns-list__item .block-editor-patterns__pattern-details:not(:empty){align-items:center;margin-top:8px;padding-bottom:4px}.block-editor-block-patterns-list__item .block-editor-patterns__pattern-icon-wrapper{min-width:24px;height:24px}.block-editor-block-patterns-list__item .block-editor-patterns__pattern-icon-wrapper .block-editor-patterns__pattern-icon{fill:var(--wp-block-synced-color)}.block-editor-patterns__grid-pagination-wrapper .block-editor-patterns__grid-pagination{border-top:1px solid #2f2f2f;padding:4px;justify-content:center}.block-editor-patterns__grid-pagination-wrapper .block-editor-patterns__grid-pagination .components-button.is-tertiary{width:auto;height:32px;justify-content:center}.block-editor-patterns__grid-pagination-wrapper .block-editor-patterns__grid-pagination .components-button.is-tertiary:disabled{color:#949494;background:none}.block-editor-patterns__grid-pagination-wrapper .block-editor-patterns__grid-pagination .components-button.is-tertiary:hover:not(:disabled){color:#fff;background-color:#757575}.show-icon-labels .block-editor-patterns__grid-pagination .components-button{width:auto}.show-icon-labels .block-editor-patterns__grid-pagination .components-button span{display:none}.show-icon-labels .block-editor-patterns__grid-pagination .components-button:before{content:attr(aria-label)}.components-popover.block-editor-block-popover{z-index:31;position:absolute;margin:0!important;pointer-events:none}.components-popover.block-editor-block-popover .components-popover__content{margin:0!important;min-width:auto;width:max-content;overflow-y:visible}.components-popover.block-editor-block-popover:not(.block-editor-block-popover__inbetween,.block-editor-block-popover__drop-zone,.block-editor-block-list__block-side-inserter-popover) .components-popover__content *{pointer-events:all}.components-popover.block-editor-block-popover__inbetween,.components-popover.block-editor-block-popover__inbetween *{pointer-events:none}.components-popover.block-editor-block-popover__inbetween .is-with-inserter,.components-popover.block-editor-block-popover__inbetween .is-with-inserter *{pointer-events:all}.components-popover.block-editor-block-popover__drop-zone *{pointer-events:none}.components-popover.block-editor-block-popover__drop-zone .block-editor-block-popover__drop-zone-foreground{position:absolute;inset:0;background-color:var(--wp-admin-theme-color);border-radius:2px}.block-editor-block-preview__container{position:relative;width:100%;overflow:hidden}.block-editor-block-preview__container .block-editor-block-preview__content{width:100%;top:0;left:0;transform-origin:top left;text-align:initial;margin:0;overflow:visible;min-height:auto}.block-editor-block-preview__container .block-editor-block-preview__content .block-editor-block-list__insertion-point,.block-editor-block-preview__container .block-editor-block-preview__content .block-list-appender{display:none}.block-editor-block-preview__container:after{content:"";position:absolute;inset:0;z-index:1}.block-editor-block-rename-modal{z-index:1000001}.block-editor-block-styles__preview-panel{display:none;z-index:90}@media (min-width: 782px){.block-editor-block-styles__preview-panel{display:block}}.block-editor-block-styles__preview-panel .block-editor-block-icon{display:none}.block-editor-block-styles__variants{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item{color:#1e1e1e;box-shadow:inset 0 0 0 1px #ddd;display:inline-block;width:calc(50% - 4px)}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:hover{color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px #ddd}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:hover{background-color:#1e1e1e;box-shadow:none}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active .block-editor-block-styles__item-text,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:hover .block-editor-block-styles__item-text{color:#fff}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:focus,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-styles__variants .block-editor-block-styles__item-text{word-break:break-all;white-space:normal;text-align:start;text-align-last:center}.block-editor-block-styles__block-preview-container,.block-editor-block-styles__block-preview-container *{box-sizing:border-box!important}.block-editor-block-switcher{position:relative}.block-editor-block-switcher .components-button.components-dropdown-menu__toggle.has-icon.has-icon{min-width:36px}.block-editor-block-switcher__no-switcher-icon,.block-editor-block-switcher__toggle{position:relative}.components-button.block-editor-block-switcher__toggle,.components-button.block-editor-block-switcher__no-switcher-icon{margin:0;display:block;height:48px}.components-button.block-editor-block-switcher__toggle .block-editor-block-icon,.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{margin:auto}.block-editor-block-switcher__toggle-text{margin-left:8px}.show-icon-labels .block-editor-block-switcher__toggle-text{display:none}.components-button.block-editor-block-switcher__no-switcher-icon{display:flex}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{margin-right:auto;margin-left:auto;min-width:24px!important}.components-button.block-editor-block-switcher__no-switcher-icon[aria-disabled=true],.components-button.block-editor-block-switcher__no-switcher-icon[aria-disabled=true]:hover{color:#1e1e1e}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon{height:100%;position:relative;margin:0 auto;display:flex;align-items:center;min-width:100%}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before{inset:8px}.components-popover.block-editor-block-switcher__popover .components-popover__content{min-width:300px}.block-editor-block-switcher__popover-preview-container{left:0;position:absolute;top:-1px;width:100%;bottom:0;pointer-events:none}.block-editor-block-switcher__popover-preview{overflow:hidden}.block-editor-block-switcher__popover-preview .components-popover__content{width:300px;border:1px solid #1e1e1e;background:#fff;border-radius:4px;outline:none;box-shadow:none;overflow:auto}.block-editor-block-switcher__popover-preview .block-editor-block-switcher__preview{max-height:468px;margin:16px 0;padding:0 16px;overflow:hidden}.block-editor-block-switcher__popover-preview .block-editor-block-switcher__preview.is-pattern-list-preview{overflow:unset}.block-editor-block-switcher__preview-title{margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon{min-width:36px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle{height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{width:48px;height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{padding:12px}.block-editor-block-switcher__preview-patterns-container{padding-bottom:16px}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item{margin-top:16px}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-preview__container{cursor:pointer}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item{height:100%;border-radius:2px;transition:all .05s ease-in-out;position:relative;border:1px solid transparent}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover,.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) #1e1e1e}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item .block-editor-block-switcher__preview-patterns-container-list__item-title{padding:4px;font-size:12px;text-align:center;cursor:pointer}.block-editor-block-switcher__no-transforms{color:#757575;padding:6px 8px;margin:0}.block-editor-block-switcher__binding-indicator{display:block;padding:8px}.block-editor-block-types-list>[role=presentation]{overflow:hidden;display:flex;flex-wrap:wrap}.block-editor-block-pattern-setup{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;width:100%;border-radius:2px}.block-editor-block-pattern-setup.view-mode-grid{padding-top:4px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__toolbar{justify-content:center}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container{column-gap:24px;display:block;width:100%;padding:0 32px;column-count:2}@media (min-width: 1440px){.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container{column-count:3}}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-preview__container,.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container div[role=button]{cursor:pointer}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item{scroll-margin:5px 0}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:hover .block-editor-block-preview__container{box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:focus .block-editor-block-preview__container{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(2 * var(--wp-admin-border-width-focus)) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:hover .block-editor-block-pattern-setup-list__item-title,.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:focus .block-editor-block-pattern-setup-list__item-title{color:var(--wp-admin-theme-color)}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item{break-inside:avoid-column;margin-bottom:24px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-pattern-setup-list__item-title{padding-top:8px;font-size:12px;text-align:center;cursor:pointer}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-preview__container{min-height:100px;border-radius:4px;border:1px solid #ddd}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-preview__content{width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar{height:60px;box-sizing:border-box;padding:16px;width:100%;text-align:left;margin:0;color:#1e1e1e;position:absolute;bottom:0;background-color:#fff;display:flex;flex-direction:row;align-items:center;justify-content:space-between;border-top:1px solid #ddd;align-self:stretch}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__display-controls{display:flex}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__navigation,.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__actions{width:calc(50% - 36px);display:flex}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__actions{justify-content:flex-end}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container{display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container{overflow:hidden;position:relative;padding:0;margin:0;height:100%;list-style:none;transform-style:preserve-3d}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container *{box-sizing:border-box}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide{position:absolute;top:0;width:100%;height:100%;background-color:#fff;margin:auto;padding:0;transition:transform .5s,z-index .5s;z-index:100}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.active-slide{opacity:1;position:relative;z-index:102}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.previous-slide{transform:translate(-100%);z-index:101}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.next-slide{transform:translate(100%);z-index:101}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .block-list-appender{display:none}.block-editor-block-pattern-setup__carousel,.block-editor-block-pattern-setup__grid{width:100%}.block-editor-block-variation-transforms{padding:0 16px 16px 52px;width:100%}.block-editor-block-variation-transforms .components-dropdown-menu__toggle{border:1px solid #757575;border-radius:2px;min-height:30px;width:100%;position:relative;text-align:left;justify-content:left;padding:6px 12px}.block-editor-block-variation-transforms .components-dropdown-menu__toggle.components-dropdown-menu__toggle{padding-right:24px}.block-editor-block-variation-transforms .components-dropdown-menu__toggle:focus:not(:disabled){border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 calc(var(--wp-admin-border-width-focus) - 1px) var(--wp-admin-theme-color)}.block-editor-block-variation-transforms .components-dropdown-menu__toggle svg{height:100%;padding:0;position:absolute;right:0;top:0}.block-editor-block-variation-transforms__popover .components-popover__content{min-width:230px}.components-border-radius-control{margin-bottom:12px}.components-border-radius-control legend{margin-bottom:8px}.components-border-radius-control .components-border-radius-control__wrapper{display:flex;justify-content:space-between;align-items:flex-start}.components-border-radius-control .components-border-radius-control__wrapper .components-border-radius-control__unit-control{width:calc((100% - 16px)/2);margin-bottom:0;margin-right:16px;flex-shrink:0}.components-border-radius-control .components-border-radius-control__wrapper .components-border-radius-control__range-control{flex:1;margin-right:12px}.components-border-radius-control .components-border-radius-control__input-controls-wrapper{display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr));margin-right:12px}.components-border-radius-control .component-border-radius-control__linked-button{display:flex;justify-content:center;margin-top:8px}.components-border-radius-control .component-border-radius-control__linked-button svg{margin-right:0}.block-editor-color-gradient-control .block-editor-color-gradient-control__color-indicator{margin-bottom:12px}.block-editor-color-gradient-control__fieldset{min-width:0}.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings,.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings>div:not(:first-of-type){display:block}@media screen and (min-width: 782px){.block-editor-panel-color-gradient-settings .components-circular-option-picker__swatches{display:grid;grid-template-columns:repeat(6,28px)}}.block-editor-block-inspector .block-editor-panel-color-gradient-settings .components-base-control{margin-bottom:inherit}.block-editor-panel-color-gradient-settings__dropdown-content .block-editor-color-gradient-control__panel{width:260px;padding:16px}.block-editor-panel-color-gradient-settings__color-indicator{background:linear-gradient(-45deg,transparent 48%,#ddd 48%,#ddd 52%,transparent 52%)}.block-editor-tools-panel-color-gradient-settings__item{padding:0;max-width:100%;border-left:1px solid #ddd;border-right:1px solid #ddd;border-bottom:1px solid #ddd}.block-editor-tools-panel-color-gradient-settings__item:nth-child(1 of.block-editor-tools-panel-color-gradient-settings__item){margin-top:24px;border-top-left-radius:2px;border-top-right-radius:2px;border-top:1px solid #ddd}.block-editor-tools-panel-color-gradient-settings__item:nth-last-child(1 of.block-editor-tools-panel-color-gradient-settings__item){border-bottom-left-radius:2px;border-bottom-right-radius:2px}.block-editor-tools-panel-color-gradient-settings__item>div,.block-editor-tools-panel-color-gradient-settings__item>div>button{border-radius:inherit}.block-editor-tools-panel-color-gradient-settings__dropdown{display:block;padding:0}.block-editor-tools-panel-color-gradient-settings__dropdown>button{height:auto;padding-top:10px;padding-bottom:10px;text-align:left}.block-editor-tools-panel-color-gradient-settings__dropdown>button.is-open{background:#f0f0f0;color:var(--wp-admin-theme-color)}.block-editor-tools-panel-color-gradient-settings__dropdown .block-editor-panel-color-gradient-settings__color-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.block-editor-panel-color-gradient-settings__dropdown{width:100%}.block-editor-panel-color-gradient-settings__dropdown .component-color-indicator{flex-shrink:0}.block-editor-date-format-picker{margin-bottom:16px}.block-editor-date-format-picker__custom-format-select-control__custom-option{border-top:1px solid #ddd}.block-editor-duotone-control__popover>.components-popover__content{padding:16px;width:260px}.block-editor-duotone-control__popover .components-menu-group__label{padding:0}.block-editor-duotone-control__popover .components-circular-option-picker__swatches{display:grid;grid-template-columns:repeat(6,28px);gap:12px;justify-content:space-between}.block-editor-duotone-control__unset-indicator{background:linear-gradient(-45deg,transparent 48%,#ddd 48%,#ddd 52%,transparent 52%)}.components-font-appearance-control [role=option]{color:#1e1e1e;text-transform:capitalize}.block-editor-global-styles__toggle-icon{fill:currentColor}.block-editor-global-styles__shadow-popover-container{width:230px}.block-editor-global-styles__shadow__list{display:flex;gap:12px;flex-wrap:wrap;padding-bottom:8px}.block-editor-global-styles__clear-shadow{text-align:right}.block-editor-global-styles-filters-panel__dropdown,.block-editor-global-styles__shadow-dropdown{display:block;padding:0}.block-editor-global-styles-filters-panel__dropdown button,.block-editor-global-styles__shadow-dropdown button{width:100%;padding:8px}.block-editor-global-styles-filters-panel__dropdown button.is-open,.block-editor-global-styles__shadow-dropdown button.is-open{background-color:#f0f0f0}.block-editor-global-styles__shadow-indicator{color:#2f2f2f;border:#e0e0e0 1px solid;border-radius:2px;cursor:pointer;padding:0;height:26px;width:26px;box-sizing:border-box;transform:scale(1);transition:transform .1s ease;will-change:transform}.block-editor-global-styles__shadow-indicator:focus{border:2px solid #757575}.block-editor-global-styles__shadow-indicator:hover{transform:scale(1.2)}.block-editor-global-styles__shadow-indicator.unset{background:linear-gradient(-45deg,transparent 48%,#ddd 48%,#ddd 52%,transparent 52%)}.block-editor-global-styles-advanced-panel__custom-css-input textarea{font-family:Menlo,Consolas,monaco,monospace;direction:ltr}.block-editor-global-styles-background-panel__inspector-media-replace-container{border:1px solid #ddd;border-radius:2px;grid-column:1/-1}.block-editor-global-styles-background-panel__inspector-media-replace-container.is-open{background-color:#f0f0f0}.block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__image-tools-panel-item{flex-grow:1;border:0}.block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__image-tools-panel-item .components-dropdown{display:block}.block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__inspector-preview-inner{height:100%}.block-editor-global-styles-background-panel__inspector-media-replace-container .components-dropdown{display:block;height:36px}.block-editor-global-styles-background-panel__image-tools-panel-item{border:1px solid #ddd;grid-column:1/-1;position:relative}.block-editor-global-styles-background-panel__image-tools-panel-item .components-drop-zone__content-icon{display:none}.block-editor-global-styles-background-panel__image-tools-panel-item .components-dropdown{display:block;height:36px}.block-editor-global-styles-background-panel__image-tools-panel-item button.components-button{color:#1e1e1e;width:100%;display:block}.block-editor-global-styles-background-panel__image-tools-panel-item button.components-button:hover{color:var(--wp-admin-theme-color)}.block-editor-global-styles-background-panel__image-tools-panel-item button.components-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-global-styles-background-panel__image-tools-panel-item .block-editor-global-styles-background-panel__loading{height:100%;position:absolute;z-index:1;width:100%;padding:10px 0 0}.block-editor-global-styles-background-panel__image-tools-panel-item .block-editor-global-styles-background-panel__loading svg{margin:0}.block-editor-global-styles-background-panel__image-preview-content,.block-editor-global-styles-background-panel__dropdown-toggle{height:100%;width:100%;padding-left:12px}.block-editor-global-styles-background-panel__dropdown-toggle{cursor:pointer;background:transparent;border:none}.block-editor-global-styles-background-panel__inspector-media-replace-title{word-break:break-all;white-space:normal;text-align:start;text-align-last:center}.block-editor-global-styles-background-panel__inspector-preview-inner .block-editor-global-styles-background-panel__inspector-image-indicator-wrapper{width:20px;height:20px;min-width:auto}.block-editor-global-styles-background-panel__inspector-image-indicator{background-size:cover;border-radius:50%;width:20px;height:20px;display:block;position:relative}.block-editor-global-styles-background-panel__inspector-image-indicator:after{content:"";position:absolute;inset:-1px;border-radius:50%;box-shadow:inset 0 0 0 1px #0003;border:1px solid transparent;box-sizing:inherit}.block-editor-global-styles-background-panel__dropdown-content-wrapper{min-width:260px;overflow-x:hidden}.block-editor-global-styles-background-panel__dropdown-content-wrapper .components-focal-point-picker-wrapper{background-color:#f0f0f0;width:100%;border-radius:2px;border:1px solid #ddd}.block-editor-global-styles-background-panel__dropdown-content-wrapper .components-focal-point-picker__media--image{max-height:180px}.block-editor-global-styles-background-panel__dropdown-content-wrapper .components-focal-point-picker:after{content:none}.modal-open .block-editor-global-styles-background-panel__popover{z-index:159890}.block-editor-global-styles-background-panel__media-replace-popover .components-popover__content{width:226px}.block-editor-global-styles-background-panel__media-replace-popover .components-button{padding:0 8px}.block-editor-global-styles-background-panel__media-replace-popover .components-button .components-menu-items__item-icon.has-icon-right{margin-left:16px}.block-editor-grid-visualizer.block-editor-grid-visualizer.block-editor-grid-visualizer{z-index:30}.block-editor-grid-visualizer.block-editor-grid-visualizer.block-editor-grid-visualizer .components-popover__content *{pointer-events:none}.block-editor-grid-visualizer.block-editor-grid-visualizer.block-editor-grid-visualizer.is-dropping-allowed .block-editor-grid-visualizer__drop-zone{pointer-events:all}.block-editor-grid-visualizer.block-editor-grid-visualizer.block-editor-grid-visualizer .block-editor-inserter *{pointer-events:auto}.block-editor-grid-visualizer__grid{display:grid}.block-editor-grid-visualizer__cell{display:grid;position:relative}.block-editor-grid-visualizer__cell .block-editor-inserter{color:inherit;z-index:32;position:absolute;inset:0;overflow:hidden}.block-editor-grid-visualizer__cell .block-editor-inserter .block-editor-grid-visualizer__appender{box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 20%,#0000);color:inherit;overflow:hidden;height:100%;width:100%;padding:0!important;opacity:0}.block-editor-grid-visualizer__cell.is-highlighted .block-editor-inserter,.block-editor-grid-visualizer__cell.is-highlighted .block-editor-grid-visualizer__drop-zone{background:var(--wp-admin-theme-color)}.block-editor-grid-visualizer__cell:hover .block-editor-grid-visualizer__appender,.block-editor-grid-visualizer__cell .block-editor-grid-visualizer__appender:focus{opacity:1;background-color:color-mix(in srgb,currentColor 20%,#0000)}.block-editor-grid-visualizer__drop-zone{background:#cccccc1a;width:100%;height:100%;grid-column:1;grid-row:1;min-width:8px;min-height:8px}.block-editor-grid-item-resizer.block-editor-grid-item-resizer.block-editor-grid-item-resizer{z-index:30}.block-editor-grid-item-resizer.block-editor-grid-item-resizer.block-editor-grid-item-resizer .components-popover__content *{pointer-events:none}.block-editor-grid-item-resizer__box{border:1px solid var(--wp-admin-theme-color)}.block-editor-grid-item-resizer__box .components-resizable-box__handle.components-resizable-box__handle.components-resizable-box__handle{pointer-events:all}.block-editor-grid-item-mover__move-button-container{display:flex;padding:0;border:none;justify-content:center}.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button{width:24px;min-width:0!important;padding-left:0;padding-right:0}.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button svg{min-width:24px}.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:before{content:"";position:absolute;display:block;border-radius:2px;height:32px;left:8px;right:8px;z-index:-1;animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion: reduce){.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:before{animation-duration:1ms;animation-delay:0s}}.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus,.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus:enabled,.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus:before{box-shadow:none;outline:none}.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus-visible:before{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-grid-item-mover__move-vertical-button-container{display:flex;position:relative}@media (min-width: 600px){.block-editor-grid-item-mover__move-vertical-button-container{flex-direction:column;justify-content:space-around}.block-editor-grid-item-mover__move-vertical-button-container>.block-editor-grid-item-mover-button.block-editor-grid-item-mover-button{height:20px!important;width:100%;min-width:0!important}.block-editor-grid-item-mover__move-vertical-button-container>.block-editor-grid-item-mover-button.block-editor-grid-item-mover-button:before{height:calc(100% - 4px)}.block-editor-grid-item-mover__move-vertical-button-container .block-editor-grid-item-mover-button.is-up-button svg,.block-editor-grid-item-mover__move-vertical-button-container .block-editor-grid-item-mover-button.is-down-button svg{flex-shrink:0;height:20px}}@media (min-width: 600px){.editor-collapsible-block-toolbar .block-editor-grid-item-mover__move-vertical-button-container{height:40px;position:relative;top:-5px}}.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container{position:relative}@media (min-width: 600px){.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container:before{content:"";height:100%;width:1px;background:#e0e0e0;position:absolute;top:0}}@media (min-width: 782px){.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container:before{background:#1e1e1e}}.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container.is-left{padding-right:6px}.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container.is-left:before{right:0}.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container.is-right{padding-left:6px}.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container.is-right:before{left:0}@media (min-width: 600px){.show-icon-labels .block-editor-grid-item-mover__move-vertical-button-container:before{content:"";height:1px;width:100%;background:#e0e0e0;position:absolute;top:50%;left:50%;transform:translate(-50%);margin-top:-.5px}}@media (min-width: 782px){.show-icon-labels .block-editor-grid-item-mover__move-vertical-button-container:before{background:#1e1e1e}}.show-icon-labels .block-editor-grid-item-mover-button{white-space:nowrap}.show-icon-labels .editor-collapsible-block-toolbar .block-editor-grid-item-mover__move-horizontal-button-container:before{height:24px;background:#ddd;top:4px}.show-icon-labels .editor-collapsible-block-toolbar .block-editor-grid-item-mover__move-vertical-button-container:before{background:#ddd;width:calc(100% - 24px)}.block-editor-height-control{border:0;margin:0;padding:0}.block-editor-image-size-control{margin-bottom:1em}.block-editor-image-size-control .block-editor-image-size-control__width,.block-editor-image-size-control .block-editor-image-size-control__height{margin-bottom:1.115em}.block-editor-block-types-list__list-item{display:block;width:33.33%;padding:0;margin:0}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled) .block-editor-block-icon.has-colors{color:var(--wp-block-synced-color)}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title{color:var(--wp-block-synced-color)!important;filter:brightness(.95)}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):hover svg{color:var(--wp-block-synced-color)!important}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):after{background:var(--wp-block-synced-color)}.components-button.block-editor-block-types-list__item{display:flex;flex-direction:column;width:100%;font-size:13px;color:#1e1e1e;padding:8px;align-items:stretch;justify-content:center;cursor:pointer;background:transparent;word-break:break-word;transition:all .05s ease-in-out;position:relative;height:auto}@media (prefers-reduced-motion: reduce){.components-button.block-editor-block-types-list__item{transition-duration:0s;transition-delay:0s}}.components-button.block-editor-block-types-list__item:disabled{opacity:.6;cursor:default}.components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title{color:var(--wp-admin-theme-color)!important;filter:brightness(.95)}.components-button.block-editor-block-types-list__item:not(:disabled):hover svg{color:var(--wp-admin-theme-color)!important}.components-button.block-editor-block-types-list__item:not(:disabled):hover:after{content:"";position:absolute;inset:0;border-radius:2px;opacity:.04;background:var(--wp-admin-theme-color);pointer-events:none}.components-button.block-editor-block-types-list__item:not(:disabled):focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.components-button.block-editor-block-types-list__item:not(:disabled).is-active{color:#fff;background:#1e1e1e;outline:2px solid transparent;outline-offset:-2px}.block-editor-block-types-list__item-icon{padding:12px 20px;color:#1e1e1e;transition:all .05s ease-in-out}@media (prefers-reduced-motion: reduce){.block-editor-block-types-list__item-icon{transition-duration:0s;transition-delay:0s}}.block-editor-block-types-list__item-icon .block-editor-block-icon{margin-left:auto;margin-right:auto}.block-editor-block-types-list__item-icon svg{transition:all .15s ease-out}@media (prefers-reduced-motion: reduce){.block-editor-block-types-list__item-icon svg{transition-duration:0s;transition-delay:0s}}.block-editor-block-types-list__list-item[draggable=true] .block-editor-block-types-list__item-icon{cursor:grab}.block-editor-block-types-list__item-title{padding:4px 2px 8px;font-size:12px;-webkit-hyphens:auto;hyphens:auto}.show-icon-labels .block-editor-block-inspector__tabs [role=tablist] .components-button{justify-content:center}.block-editor-inspector-popover-header{margin-bottom:16px}[class].block-editor-inspector-popover-header__action{height:24px}[class].block-editor-inspector-popover-header__action.has-icon{min-width:24px;padding:0}[class].block-editor-inspector-popover-header__action:not(.has-icon){text-decoration:underline}@keyframes loadingpulse{0%{opacity:1}50%{opacity:0}to{opacity:1}}.block-editor-link-control{position:relative;min-width:350px}.components-popover__content .block-editor-link-control{min-width:auto;width:90vw;max-width:350px}.show-icon-labels .block-editor-link-control .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-link-control .components-button.has-icon:before{content:attr(aria-label)}.show-icon-labels .block-editor-link-control .block-editor-link-control__search-item-top{gap:4px;flex-wrap:wrap}.show-icon-labels .block-editor-link-control .block-editor-link-control__search-item-top .components-button.has-icon{width:auto;padding:4px}.show-icon-labels .block-editor-link-control .is-preview .block-editor-link-control__search-item-header{min-width:100%;margin-right:0}.block-editor-link-control__search-input-wrapper{margin-bottom:8px;position:relative}.block-editor-link-control__search-input-container,.block-editor-link-control__search-input-wrapper{position:relative}.block-editor-link-control__field{margin:16px}.block-editor-link-control__field .components-base-control__label{color:#1e1e1e}.block-editor-link-control__field input[type=text],.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;font-size:16px;line-height:normal;display:block;border:1px solid #949494;height:40px;margin:0;padding:8px 40px 8px 16px;position:relative;width:100%}@media (prefers-reduced-motion: reduce){.block-editor-link-control__field input[type=text],.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{transition-duration:0s;transition-delay:0s}}@media (min-width: 600px){.block-editor-link-control__field input[type=text],.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{font-size:13px;line-height:normal}}.block-editor-link-control__field input[type=text]:focus,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-link-control__field input[type=text]::-webkit-input-placeholder,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input::-webkit-input-placeholder{color:#1e1e1e9e}.block-editor-link-control__field input[type=text]::-moz-placeholder,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input::-moz-placeholder{opacity:1;color:#1e1e1e9e}.block-editor-link-control__field input[type=text]:-ms-input-placeholder,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input:-ms-input-placeholder{color:#1e1e1e9e}.has-actions .block-editor-link-control__field input[type=text],.has-actions .block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{padding-right:16px}.block-editor-link-control__search-error{margin:-8px 16px 16px}.block-editor-link-control__search-enter{position:absolute;right:19px;top:3px}.block-editor-link-control__search-actions{padding:8px 16px 16px}.block-editor-link-control__search-results-wrapper{position:relative}.block-editor-link-control__search-results-wrapper:before,.block-editor-link-control__search-results-wrapper:after{content:"";position:absolute;left:-1px;right:16px;display:block;pointer-events:none;z-index:100}.block-editor-link-control__search-results-wrapper:before{height:8px;top:0;bottom:auto}.block-editor-link-control__search-results-wrapper:after{height:16px;bottom:0;top:auto}.block-editor-link-control__search-results{margin-top:-16px;padding:8px;max-height:200px;overflow-y:auto}.block-editor-link-control__search-results.is-loading{opacity:.2}.block-editor-link-control__search-item.components-button.components-menu-item__button{height:auto;text-align:left}.block-editor-link-control__search-item .components-menu-item__item{overflow:hidden;text-overflow:ellipsis;display:inline-block;width:100%}.block-editor-link-control__search-item .components-menu-item__item mark{font-weight:600;color:inherit;background-color:transparent}.block-editor-link-control__search-item .components-menu-item__shortcut{color:#757575;text-transform:capitalize;white-space:nowrap}.block-editor-link-control__search-item[aria-selected]{background:#f0f0f0}.block-editor-link-control__search-item.is-current{flex-direction:column;background:transparent;border:0;width:100%;cursor:default;padding:16px}.block-editor-link-control__search-item .block-editor-link-control__search-item-header{display:block;flex-direction:row;align-items:center;margin-right:8px;gap:8px;white-space:pre-wrap;overflow-wrap:break-word}.block-editor-link-control__search-item .block-editor-link-control__search-item-header .block-editor-link-control__search-item-info{color:#757575;line-height:1.1;font-size:12px;word-break:break-all}.block-editor-link-control__search-item.is-preview .block-editor-link-control__search-item-header{display:flex;flex:1}.block-editor-link-control__search-item.is-error .block-editor-link-control__search-item-header{align-items:center}.block-editor-link-control__search-item.is-url-title .block-editor-link-control__search-item-title{word-break:break-all}.block-editor-link-control__search-item .block-editor-link-control__search-item-details{display:flex;flex-direction:column;justify-content:space-between;gap:4px}.block-editor-link-control__search-item .block-editor-link-control__search-item-header .block-editor-link-control__search-item-icon{background-color:#f0f0f0;width:32px;height:32px;border-radius:2px}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon{position:relative;flex-shrink:0;display:flex;justify-content:center;align-items:center}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon img{width:16px}.block-editor-link-control__search-item.is-error .block-editor-link-control__search-item-icon{top:0;width:32px;max-height:32px}.block-editor-link-control__search-item .block-editor-link-control__search-item-title{line-height:1.1}.block-editor-link-control__search-item .block-editor-link-control__search-item-title:focus{box-shadow:none}.block-editor-link-control__search-item .block-editor-link-control__search-item-title:focus-visible{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent;text-decoration:none}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{font-weight:600;color:inherit;background-color:transparent}.block-editor-link-control__search-item .block-editor-link-control__search-item-title span{font-weight:400}.block-editor-link-control__search-item .block-editor-link-control__search-item-title .components-external-link__icon{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.block-editor-link-control__search-item-top{display:flex;flex-direction:row;width:100%;align-items:center}.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-icon svg,.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-icon img{opacity:0}.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-icon:before{content:"";display:block;background-color:#f0f0f0;position:absolute;inset:0;border-radius:100%;animation:loadingpulse 1s linear infinite;animation-delay:.5s}.block-editor-link-control__loading{margin:16px;display:flex;align-items:center}.block-editor-link-control__loading .components-spinner{margin-top:0}.components-button+.block-editor-link-control__search-create{overflow:visible;padding:12px 16px}.components-button+.block-editor-link-control__search-create:before{content:"";position:absolute;top:-10px;left:0;display:block;width:100%}.block-editor-link-control__search-create{align-items:center}.block-editor-link-control__search-create .block-editor-link-control__search-item-title{margin-bottom:0}.block-editor-link-control__search-create .block-editor-link-control__search-item-icon{top:0}.block-editor-link-control__drawer-inner{display:flex;flex-direction:column;flex-basis:100%;position:relative}.block-editor-link-control__setting{margin-bottom:0;flex:1;padding:8px 0 8px 24px}.block-editor-link-control__setting .components-base-control__field{display:flex}.block-editor-link-control__setting .components-base-control__field .components-checkbox-control__label{color:#1e1e1e}.block-editor-link-control__setting input{margin-left:0}.is-preview .block-editor-link-control__setting{padding:20px 8px 8px 0}.block-editor-link-control__tools{padding:8px 8px 0;margin-top:-16px}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle{padding-left:0;gap:0}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true]{color:#1e1e1e}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] svg{visibility:visible;transition:transform .1s ease;transform:rotate(90deg)}@media (prefers-reduced-motion: reduce){.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] svg{transition-duration:0s;transition-delay:0s}}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=false] svg{visibility:visible;transform:rotate(0);transition:transform .1s ease}@media (prefers-reduced-motion: reduce){.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=false] svg{transition-duration:0s;transition-delay:0s}}.block-editor-link-control .block-editor-link-control__search-input .components-spinner{display:block}.block-editor-link-control .block-editor-link-control__search-input .components-spinner.components-spinner{position:absolute;left:auto;bottom:auto;top:calc(50% - 8px);right:40px}.block-editor-link-control .block-editor-link-control__search-input-wrapper.has-actions .components-spinner{top:calc(50% + 4px);right:12px}.block-editor-list-view-tree{width:100%;border-collapse:collapse;padding:0;margin:0}.components-modal__content .block-editor-list-view-tree{margin:-12px -6px 0;width:calc(100% + 12px)}.block-editor-list-view-tree.is-dragging tbody{pointer-events:none}.block-editor-list-view-leaf{position:relative;transform:translateY(0)}.block-editor-list-view-leaf.is-draggable,.block-editor-list-view-leaf.is-draggable .block-editor-list-view-block-contents{cursor:grab}.block-editor-list-view-leaf .block-editor-list-view-block-select-button[aria-expanded=true]{color:inherit}.block-editor-list-view-leaf .block-editor-list-view-block-select-button:hover{color:var(--wp-admin-theme-color)}.is-dragging-components-draggable .block-editor-list-view-leaf:not(.is-selected) .block-editor-list-view-block-select-button:hover{color:inherit}.block-editor-list-view-leaf.is-selected td{background:var(--wp-admin-theme-color)}.block-editor-list-view-leaf.is-selected.is-synced td{background:var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:hover,.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:focus,.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents .block-editor-block-icon{color:var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents,.block-editor-list-view-leaf.is-selected .components-button.has-icon{color:#fff}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-list-view-leaf.is-selected.is-synced .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff}.block-editor-list-view-leaf.is-first-selected td:first-child{border-top-left-radius:2px}.block-editor-list-view-leaf.is-first-selected td:last-child{border-top-right-radius:2px}.block-editor-list-view-leaf.is-last-selected td:first-child{border-bottom-left-radius:2px}.block-editor-list-view-leaf.is-last-selected td:last-child{border-bottom-right-radius:2px}.block-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch){background:rgba(var(--wp-admin-theme-color--rgb),.04)}.block-editor-list-view-leaf.is-synced-branch.is-branch-selected{background:rgba(var(--wp-block-synced-color--rgb),.04)}.block-editor-list-view-leaf.is-branch-selected.is-first-selected td:first-child{border-top-left-radius:2px}.block-editor-list-view-leaf.is-branch-selected.is-first-selected td:last-child{border-top-right-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-first-selected td:first-child{border-top-left-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-first-selected td:last-child{border-top-right-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-last-selected td:first-child{border-bottom-left-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-last-selected td:last-child{border-bottom-right-radius:2px}.block-editor-list-view-leaf.is-branch-selected:not(.is-selected) td{border-radius:0}.block-editor-list-view-leaf.is-displacement-normal{transition:transform .2s;transform:translateY(0)}@media (prefers-reduced-motion: reduce){.block-editor-list-view-leaf.is-displacement-normal{transition-duration:0s;transition-delay:0s}}.block-editor-list-view-leaf.is-displacement-up{transition:transform .2s;transform:translateY(-32px)}@media (prefers-reduced-motion: reduce){.block-editor-list-view-leaf.is-displacement-up{transition-duration:0s;transition-delay:0s}}.block-editor-list-view-leaf.is-displacement-down{transition:transform .2s;transform:translateY(32px)}@media (prefers-reduced-motion: reduce){.block-editor-list-view-leaf.is-displacement-down{transition-duration:0s;transition-delay:0s}}.block-editor-list-view-leaf.is-after-dragged-blocks{transition:transform .2s;transform:translateY(calc(var(--wp-admin--list-view-dragged-items-height, 32px) * -1))}@media (prefers-reduced-motion: reduce){.block-editor-list-view-leaf.is-after-dragged-blocks{transition-duration:0s;transition-delay:0s}}.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-up{transition:transform .2s;transform:translateY(calc(-32px + var(--wp-admin--list-view-dragged-items-height, 32px) * -1))}@media (prefers-reduced-motion: reduce){.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-up{transition-duration:0s;transition-delay:0s}}.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-down{transition:transform .2s;transform:translateY(calc(32px + var(--wp-admin--list-view-dragged-items-height, 32px) * -1))}@media (prefers-reduced-motion: reduce){.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-down{transition-duration:0s;transition-delay:0s}}.block-editor-list-view-leaf.is-dragging{opacity:0;left:0;pointer-events:none;z-index:-9999}.block-editor-list-view-leaf .block-editor-list-view-block-contents{display:flex;align-items:center;width:100%;height:32px;padding:6px 4px 6px 0;text-align:left;position:relative;white-space:nowrap}.block-editor-list-view-leaf .block-editor-list-view-block-contents.is-dropping-before:before{content:"";position:absolute;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;top:-2px;right:0;left:0;border-top:4px solid var(--wp-admin-theme-color)}.components-modal__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{padding-left:0;padding-right:0}.block-editor-list-view-leaf.is-nesting .block-editor-list-view-block-contents,.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus{box-shadow:none}.block-editor-list-view-leaf.is-nesting .block-editor-list-view-block-contents:after,.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus:after{content:"";position:absolute;inset:0 -29px 0 0;border-radius:inherit;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);z-index:2;pointer-events:none}.block-editor-list-view-leaf.has-single-cell .block-editor-list-view-block-contents:focus:after{right:0}.block-editor-list-view-leaf.is-nesting .block-editor-list-view__menu,.block-editor-list-view-leaf .block-editor-list-view-block__menu:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);z-index:1}.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents{opacity:1;animation:edit-post__fade-in-animation .08s linear 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion: reduce){.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents{animation-duration:1ms;animation-delay:0s}}.block-editor-list-view-leaf .block-editor-block-icon{margin-right:4px;flex:0 0 24px}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell,.block-editor-list-view-leaf .block-editor-list-view-block__contents-cell{padding:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell{line-height:0;width:36px;vertical-align:middle}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell>*{opacity:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell:hover>*,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell:focus-within>*,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell.is-visible>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell:hover>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell:focus-within>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell.is-visible>*{opacity:1}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell .components-button.has-icon,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell .components-button.has-icon{width:24px;min-width:24px;padding:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell{padding-right:4px}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell .components-button.has-icon{height:24px}.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell-alignment-wrapper{display:flex;height:100%;flex-direction:column;align-items:center}.block-editor-list-view-leaf .block-editor-block-mover-button{position:relative;width:36px;height:24px}.block-editor-list-view-leaf .block-editor-block-mover-button svg{position:relative;height:24px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-up-button{margin-top:-6px;align-items:flex-end}.block-editor-list-view-leaf .block-editor-block-mover-button.is-up-button svg{bottom:-4px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-down-button{margin-bottom:-6px;align-items:flex-start}.block-editor-list-view-leaf .block-editor-block-mover-button.is-down-button svg{top:-4px}.block-editor-list-view-leaf .block-editor-block-mover-button:before{height:16px;min-width:100%;left:0;right:0}.block-editor-list-view-leaf .block-editor-inserter__toggle{background:#1e1e1e;color:#fff;height:24px;margin:6px 6px 6px 1px;min-width:24px}.block-editor-list-view-leaf .block-editor-inserter__toggle:active{color:#fff}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper svg{left:2px;position:relative}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__title{flex:1;position:relative}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__title .components-truncate{position:absolute;width:100%;transform:translateY(-50%)}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__anchor-wrapper{position:relative;max-width:min(110px,40%);width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__anchor{position:absolute;right:0;transform:translateY(-50%);background:#0000001a;border-radius:1px;padding:2px 6px;max-width:100%;box-sizing:border-box}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__anchor{background:#0000004d}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__lock,.block-editor-list-view-leaf .block-editor-list-view-block-select-button__sticky{line-height:0}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__images{display:flex}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__image{background-size:cover;width:18px;height:18px;border-radius:1px}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__image:not(:only-child){box-shadow:0 0 0 2px #fff}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__image:not(:first-child){margin-left:-6px}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__image:not(:only-child){box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-editor-list-view-draggable-chip{opacity:.8}.block-editor-list-view-block__contents-cell .block-editor-list-view-block__contents-container,.block-editor-list-view-block__contents-cell .block-editor-list-view-appender__container,.block-editor-list-view-appender__cell .block-editor-list-view-block__contents-container,.block-editor-list-view-appender__cell .block-editor-list-view-appender__container{display:flex}.block-editor-list-view__expander{height:24px;width:24px;cursor:pointer}.block-editor-list-view-leaf[aria-level] .block-editor-list-view__expander{margin-left:192px}.block-editor-list-view-leaf[aria-level="1"] .block-editor-list-view__expander{margin-left:0}.block-editor-list-view-leaf[aria-level="2"] .block-editor-list-view__expander{margin-left:24px}.block-editor-list-view-leaf[aria-level="3"] .block-editor-list-view__expander{margin-left:48px}.block-editor-list-view-leaf[aria-level="4"] .block-editor-list-view__expander{margin-left:72px}.block-editor-list-view-leaf[aria-level="5"] .block-editor-list-view__expander{margin-left:96px}.block-editor-list-view-leaf[aria-level="6"] .block-editor-list-view__expander{margin-left:120px}.block-editor-list-view-leaf[aria-level="7"] .block-editor-list-view__expander{margin-left:144px}.block-editor-list-view-leaf[aria-level="8"] .block-editor-list-view__expander{margin-left:168px}.block-editor-list-view-leaf .block-editor-list-view__expander{visibility:hidden}.block-editor-list-view-leaf[data-expanded=true] .block-editor-list-view__expander svg{visibility:visible;transition:transform .2s ease;transform:rotate(90deg)}@media (prefers-reduced-motion: reduce){.block-editor-list-view-leaf[data-expanded=true] .block-editor-list-view__expander svg{transition-duration:0s;transition-delay:0s}}.block-editor-list-view-leaf[data-expanded=false] .block-editor-list-view__expander svg{visibility:visible;transform:rotate(0);transition:transform .2s ease}@media (prefers-reduced-motion: reduce){.block-editor-list-view-leaf[data-expanded=false] .block-editor-list-view__expander svg{transition-duration:0s;transition-delay:0s}}.block-editor-list-view-drop-indicator{pointer-events:none}.block-editor-list-view-drop-indicator .block-editor-list-view-drop-indicator__line{background:var(--wp-admin-theme-color);height:4px;border-radius:4px}.block-editor-list-view-drop-indicator--preview{pointer-events:none}.block-editor-list-view-drop-indicator--preview .components-popover__content{overflow:hidden!important}.block-editor-list-view-drop-indicator--preview .block-editor-list-view-drop-indicator__line{background:rgba(var(--wp-admin-theme-color--rgb),.04);height:32px;border-radius:4px;overflow:hidden}.block-editor-list-view-drop-indicator--preview .block-editor-list-view-drop-indicator__line--darker{background:rgba(var(--wp-admin-theme-color--rgb),.09)}.block-editor-list-view-placeholder{padding:0;margin:0;height:32px}.list-view-appender .block-editor-inserter__toggle{background-color:#1e1e1e;color:#fff;margin:8px 0 0 24px;height:24px;min-width:24px;padding:0}.list-view-appender .block-editor-inserter__toggle:hover,.list-view-appender .block-editor-inserter__toggle:focus{background:var(--wp-admin-theme-color);color:#fff}.list-view-appender__description,.modal-open .block-editor-media-replace-flow__options{display:none}.block-editor-media-replace-flow__indicator{margin-left:4px}.block-editor-media-flow__url-input{margin-right:-8px;margin-left:-8px;padding:16px}.block-editor-media-flow__url-input.has-siblings{border-top:1px solid #1e1e1e;margin-top:8px;padding-bottom:8px}.block-editor-media-flow__url-input .block-editor-media-replace-flow__image-url-label{display:block;top:16px;margin-bottom:8px}.block-editor-media-flow__url-input .block-editor-link-control{width:300px}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-url-input{padding:0;margin:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-title,.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-info{max-width:200px;white-space:nowrap}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__tools{justify-content:flex-end;padding:16px var(--wp-admin-border-width-focus) var(--wp-admin-border-width-focus)}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item.is-current{width:auto;padding:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{margin:0;width:100%}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-actions{padding:8px 0 0}.block-editor-media-flow__error{padding:0 20px 20px;max-width:255px}.block-editor-media-flow__error .components-with-notices-ui{max-width:255px}.block-editor-media-flow__error .components-with-notices-ui .components-notice__content{overflow:hidden;word-wrap:break-word}.block-editor-media-flow__error .components-with-notices-ui .components-notice__dismiss{position:absolute;right:10px}.block-editor-multi-selection-inspector__card{display:flex;align-items:flex-start;padding:16px}.block-editor-multi-selection-inspector__card-content{flex-grow:1}.block-editor-multi-selection-inspector__card-title{font-weight:500;margin-bottom:5px}.block-editor-multi-selection-inspector__card-description{font-size:13px}.block-editor-multi-selection-inspector__card .block-editor-block-icon{margin-left:-2px;margin-right:10px;padding:0 3px;width:36px;height:24px}.block-editor-responsive-block-control{margin-bottom:28px;border-bottom:1px solid #ccc;padding-bottom:14px}.block-editor-responsive-block-control:last-child{padding-bottom:0;border-bottom:0}.block-editor-responsive-block-control__title{margin:0 0 .6em -3px}.block-editor-responsive-block-control__label{font-weight:600;margin-bottom:.6em;margin-left:-3px}.block-editor-responsive-block-control__inner{margin-left:-1px}.block-editor-responsive-block-control__toggle{margin-left:1px}.block-editor-responsive-block-control .components-base-control__help{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.components-popover.block-editor-rich-text__inline-format-toolbar{z-index:99998}.components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content{width:auto;min-width:auto;margin-bottom:8px;box-shadow:none;outline:none}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar{border-radius:2px}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar__control,.components-popover.block-editor-rich-text__inline-format-toolbar .components-dropdown-menu__toggle{min-width:48px;min-height:48px;padding-left:12px;padding-right:12px}.block-editor-rich-text__inline-format-toolbar-group .components-dropdown-menu__toggle{justify-content:center}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon{width:auto}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon:after{content:attr(aria-label)}.block-editor-skip-to-selected-block{position:absolute;top:-9999em}.block-editor-skip-to-selected-block:focus{height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f1f1f1;color:var(--wp-admin-theme-color);line-height:normal;box-shadow:0 0 2px 2px #0009;text-decoration:none;outline:none;z-index:100000}.block-editor-tabbed-sidebar{background-color:#fff;height:100%;display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.block-editor-tabbed-sidebar__tablist-and-close-button{border-bottom:1px solid #ddd;display:flex;justify-content:space-between;padding-right:12px}.block-editor-tabbed-sidebar__close-button{background:#fff;order:1;align-self:center}.block-editor-tabbed-sidebar__tablist{margin-bottom:-1px}.block-editor-tabbed-sidebar__tabpanel{display:flex;flex-grow:1;flex-direction:column;overflow-y:auto;scrollbar-gutter:auto}.block-editor-tool-selector__help{margin:8px -8px -8px;padding:16px;border-top:1px solid #ddd;color:#757575;min-width:280px}.block-editor-block-list__block .block-editor-url-input,.components-popover .block-editor-url-input,.block-editor-url-input{flex-grow:1;position:relative;padding:1px}.block-editor-block-list__block .block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text],.block-editor-url-input input[type=text]{width:100%;padding:8px 8px 8px 12px;margin-left:0;margin-right:0;font-size:16px}@media (min-width: 600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text],.block-editor-url-input input[type=text]{width:300px}}@media (min-width: 600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text],.block-editor-url-input input[type=text]{font-size:13px}}.block-editor-block-list__block .block-editor-url-input input[type=text]::-ms-clear,.components-popover .block-editor-url-input input[type=text]::-ms-clear,.block-editor-url-input input[type=text]::-ms-clear{display:none}.block-editor-block-list__block .block-editor-url-input.is-full-width,.components-popover .block-editor-url-input.is-full-width,.block-editor-url-input.is-full-width,.block-editor-block-list__block .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.components-popover .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.block-editor-block-list__block .block-editor-url-input.is-full-width__suggestions,.components-popover .block-editor-url-input.is-full-width__suggestions,.block-editor-url-input.is-full-width__suggestions{width:100%}.block-editor-block-list__block .block-editor-url-input .components-spinner,.components-popover .block-editor-url-input .components-spinner,.block-editor-url-input .components-spinner{position:absolute;margin:0;top:calc(50% - 8px);right:8px}.block-editor-url-input__input[type=text]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #949494;font-size:16px;line-height:normal}@media (prefers-reduced-motion: reduce){.block-editor-url-input__input[type=text]{transition-duration:0s;transition-delay:0s}}@media (min-width: 600px){.block-editor-url-input__input[type=text]{font-size:13px;line-height:normal}}.block-editor-url-input__input[type=text]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-url-input__input[type=text]::-webkit-input-placeholder{color:#1e1e1e9e}.block-editor-url-input__input[type=text]::-moz-placeholder{opacity:1;color:#1e1e1e9e}.block-editor-url-input__input[type=text]:-ms-input-placeholder{color:#1e1e1e9e}.block-editor-url-input__suggestions{max-height:200px;transition:all .15s ease-in-out;padding:4px 0;width:302px;overflow-y:auto}@media (prefers-reduced-motion: reduce){.block-editor-url-input__suggestions{transition-duration:0s;transition-delay:0s}}.block-editor-url-input__suggestions,.block-editor-url-input .components-spinner{display:none}@media (min-width: 600px){.block-editor-url-input__suggestions,.block-editor-url-input .components-spinner{display:grid}}.block-editor-url-input__suggestion{min-height:36px;height:auto;color:#757575;display:block;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:left;box-shadow:none}.block-editor-url-input__suggestion:hover{background:#ddd}.block-editor-url-input__suggestion:focus,.block-editor-url-input__suggestion.is-selected{background:var(--wp-admin-theme-color-darker-20);color:#fff;outline:none}.components-toolbar-group>.block-editor-url-input__button,.components-toolbar>.block-editor-url-input__button{position:inherit}.block-editor-url-input__button .block-editor-url-input__back{margin-right:4px;overflow:visible}.block-editor-url-input__button .block-editor-url-input__back:after{content:"";position:absolute;display:block;width:1px;height:24px;right:-1px;background:#ddd}.block-editor-url-input__button-modal{box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a;border:1px solid #ddd;background:#fff}.block-editor-url-input__button-modal-line{display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0;align-items:flex-start}.block-editor-url-input__button-modal-line .components-button{flex-shrink:0;width:36px;height:36px}.block-editor-url-popover__additional-controls{border-top:1px solid #1e1e1e;padding:8px}.block-editor-url-popover__input-container{padding:8px}.block-editor-url-popover__row{display:flex;gap:4px;align-items:center}.block-editor-url-popover__row>:not(.block-editor-url-popover__settings-toggle){flex-grow:1;gap:8px}.block-editor-url-popover__additional-controls .components-button.has-icon{padding-left:8px;padding-right:8px;height:auto;text-align:left}.block-editor-url-popover__additional-controls .components-button.has-icon>svg{margin-right:8px}.block-editor-url-popover__settings-toggle{flex-shrink:0}.block-editor-url-popover__settings-toggle[aria-expanded=true] .dashicon{transform:rotate(180deg)}.block-editor-url-popover__settings{display:block;padding:16px;border-top:1px solid #1e1e1e}.block-editor-url-popover__link-editor,.block-editor-url-popover__link-viewer{display:flex}.block-editor-url-popover__link-viewer-url{display:flex;align-items:center;flex-grow:1;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:8px;min-width:150px;max-width:350px}.block-editor-url-popover__link-viewer-url.has-invalid-link{color:#cc1818}.block-editor-url-popover__expand-on-click{display:flex;align-items:center;min-width:350px;white-space:nowrap}.block-editor-url-popover__expand-on-click .text{flex-grow:1}.block-editor-url-popover__expand-on-click .text p{margin:0;line-height:16px}.block-editor-url-popover__expand-on-click .text p.description{color:#757575;font-size:12px}.block-editor-hooks__block-hooks .components-toggle-control .components-h-stack{flex-direction:row-reverse}.block-editor-hooks__block-hooks .components-toggle-control .components-h-stack .components-h-stack{flex-direction:row}.block-editor-hooks__block-hooks .block-editor-hooks__block-hooks-helptext{color:#757575;font-size:12px;margin-bottom:16px}div.block-editor-bindings__panel{grid-template-columns:repeat(auto-fit,minmax(100%,1fr))}div.block-editor-bindings__panel button:hover .block-editor-bindings__item span{color:inherit}.border-block-support-panel .single-column{grid-column:span 1}.color-block-support-panel .block-editor-contrast-checker{order:9999;grid-column:span 2;margin-top:16px}.color-block-support-panel .block-editor-contrast-checker .components-notice__content{margin-right:0}.color-block-support-panel.color-block-support-panel .color-block-support-panel__inner-wrapper{row-gap:0}.color-block-support-panel .block-editor-tools-panel-color-gradient-settings__item.first{margin-top:0}.dimensions-block-support-panel .single-column{grid-column:span 1}.block-editor-hooks__layout-controls-units{display:flex;flex-direction:column;gap:16px}.block-editor-block-inspector .block-editor-hooks__layout-controls-unit-input{margin-bottom:0}.block-editor-hooks__layout-controls-reset{display:flex;justify-content:flex-end;margin-bottom:24px}.block-editor-hooks__layout-controls-helptext{color:#757575;font-size:12px;margin-bottom:16px}.block-editor-hooks__flex-layout-justification-controls,.block-editor-hooks__flex-layout-orientation-controls{margin-bottom:12px}.block-editor-hooks__flex-layout-justification-controls legend,.block-editor-hooks__flex-layout-orientation-controls legend{margin-bottom:8px}.block-editor-hooks__toggle-control.block-editor-hooks__toggle-control{margin-bottom:16px}.block-editor__spacing-visualizer{position:absolute;inset:0;opacity:.5;border-color:var(--wp-admin-theme-color);border-style:solid;pointer-events:none;box-sizing:border-box}.typography-block-support-panel .single-column{grid-column:span 1}.block-editor-block-toolbar{display:flex;flex-grow:1;width:100%;position:relative;overflow-y:hidden;overflow-x:auto;transition:border-color .1s linear,box-shadow .1s linear}@media (prefers-reduced-motion: reduce){.block-editor-block-toolbar{transition-duration:0s;transition-delay:0s}}@media (min-width: 600px){.block-editor-block-toolbar{overflow:inherit}}.block-editor-block-toolbar .components-toolbar-group,.block-editor-block-toolbar .components-toolbar{background:none;margin-top:-1px;margin-bottom:-1px;border:0;border-right:1px solid #ddd}.block-editor-block-toolbar.is-synced .block-editor-block-switcher .components-button .block-editor-block-icon,.block-editor-block-toolbar.is-connected .block-editor-block-switcher .components-button .block-editor-block-icon{color:var(--wp-block-synced-color)}.block-editor-block-toolbar.is-synced .components-toolbar-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors,.block-editor-block-toolbar.is-connected .components-toolbar-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{color:var(--wp-block-synced-color)}.block-editor-block-toolbar>:last-child,.block-editor-block-toolbar>:last-child .components-toolbar-group,.block-editor-block-toolbar>:last-child .components-toolbar{border-right:none}.block-editor-block-contextual-toolbar{position:sticky;top:0;z-index:31;display:block;width:100%;background-color:#fff;flex-shrink:3}.block-editor-block-contextual-toolbar.components-accessible-toolbar{border:none;border-bottom:1px solid #e0e0e0;border-radius:0}.block-editor-block-contextual-toolbar .block-editor-block-toolbar{overflow:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-gutter:stable both-edges;scrollbar-color:#e0e0e0 transparent;will-change:transform;scrollbar-gutter:auto}.block-editor-block-contextual-toolbar .block-editor-block-toolbar::-webkit-scrollbar{width:12px;height:12px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar::-webkit-scrollbar-track{background-color:transparent}.block-editor-block-contextual-toolbar .block-editor-block-toolbar::-webkit-scrollbar-thumb{background-color:#e0e0e0;border-radius:8px;border:3px solid transparent;background-clip:padding-box}.block-editor-block-contextual-toolbar .block-editor-block-toolbar:hover::-webkit-scrollbar-thumb,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus::-webkit-scrollbar-thumb,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus-within::-webkit-scrollbar-thumb{background-color:#949494}.block-editor-block-contextual-toolbar .block-editor-block-toolbar:hover,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus-within{scrollbar-color:#949494 transparent}@media (hover: none){.block-editor-block-contextual-toolbar .block-editor-block-toolbar{scrollbar-color:#949494 transparent}}.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child:after,.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child .components-toolbar-group:after,.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child .components-toolbar:after{display:none}.block-editor-block-contextual-toolbar>.block-editor-block-toolbar{flex-grow:initial;width:initial}.block-editor-block-contextual-toolbar .block-editor-block-parent-selector{position:relative;margin-top:-1px;margin-bottom:-1px}.block-editor-block-contextual-toolbar .block-editor-block-parent-selector:after{align-items:center;background-color:#1e1e1e;border-radius:100%;content:"";display:inline-flex;height:2px;position:absolute;right:0;top:15px;width:2px}.block-editor-block-toolbar__block-controls .block-editor-block-switcher .components-dropdown-menu__toggle .block-editor-block-icon,.block-editor-block-toolbar__block-controls .block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{width:24px!important;margin:0!important}.block-editor-block-toolbar__block-controls .components-toolbar-group{padding:0}.block-editor-block-toolbar .components-toolbar-group,.block-editor-block-toolbar .components-toolbar,.block-editor-rich-text__inline-format-toolbar-group .components-toolbar-group,.block-editor-rich-text__inline-format-toolbar-group .components-toolbar{display:flex;flex-wrap:nowrap}.block-editor-block-toolbar__slot{display:inline-flex}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon{width:auto}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.show-icon-labels .components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon{padding-left:6px;padding-right:6px}.show-icon-labels .block-editor-block-switcher .components-dropdown-menu__toggle .block-editor-block-icon,.show-icon-labels .block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{width:0!important;height:0!important;min-width:0!important}.show-icon-labels .block-editor-block-parent-selector .block-editor-block-parent-selector__button{border-top-right-radius:0;border-bottom-right-radius:0;padding-left:12px;padding-right:12px;text-wrap:nowrap}.show-icon-labels .block-editor-block-parent-selector .block-editor-block-parent-selector__button .block-editor-block-icon{width:0}.show-icon-labels .block-editor-block-mover .block-editor-block-mover__move-button-container{width:auto;position:relative}@media (min-width: 600px){.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container:before{content:"";height:1px;width:100%;background:#e0e0e0;position:absolute;top:50%;left:50%;transform:translate(-50%);margin-top:-.5px}}@media (min-width: 782px){.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container:before{background:#1e1e1e}}.show-icon-labels .block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container,.show-icon-labels .block-editor-block-mover.is-horizontal .block-editor-block-mover-button{padding-left:6px;padding-right:6px}.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button{padding-left:8px;padding-right:8px}.show-icon-labels .block-editor-block-toolbar__block-controls .block-editor-block-mover{border-left:1px solid #ddd;margin-left:6px;margin-right:-6px;white-space:nowrap}.show-icon-labels .block-editor-block-mover .block-editor-block-mover__drag-handle.has-icon{padding-left:12px;padding-right:12px}.show-icon-labels .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button{width:auto}.show-icon-labels .components-toolbar,.show-icon-labels .components-toolbar-group{flex-shrink:1}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button+.components-button{margin-left:6px}.block-editor-inserter{display:inline-block;background:none;border:none;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:0}@media (min-width: 782px){.block-editor-inserter{position:relative}}.block-editor-inserter__main-area{height:100%;gap:16px;position:relative}.block-editor-inserter__main-area.show-as-tabs{gap:0}@media (min-width: 782px){.block-editor-inserter__main-area .block-editor-tabbed-sidebar{width:350px}}.block-editor-inserter__popover.is-quick .components-popover__content{border:none;outline:none;box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>*{border-left:1px solid #ccc;border-right:1px solid #ccc}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>*:first-child{border-top:1px solid #ccc;border-radius:4px 4px 0 0}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>*:last-child{border-bottom:1px solid #ccc;border-radius:0 0 4px 4px}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>*.components-button{border:1px solid #1e1e1e}.block-editor-inserter__popover .block-editor-inserter__menu{margin:-12px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__tablist{top:60px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__main-area{overflow:visible;height:auto}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__preview-container{display:none}.block-editor-inserter__toggle.components-button{display:inline-flex;align-items:center;cursor:pointer;border:none;outline:none;padding:0;transition:color .2s ease}@media (prefers-reduced-motion: reduce){.block-editor-inserter__toggle.components-button{transition-duration:0s;transition-delay:0s}}.block-editor-inserter__menu{height:100%;position:relative;overflow:visible}@media (min-width: 782px){.block-editor-inserter__menu.show-panel{width:630px}}.block-editor-inserter__inline-elements{margin-top:-1px}.block-editor-inserter__menu.is-bottom:after{border-bottom-color:#fff}.components-popover.block-editor-inserter__popover{z-index:99999}.block-editor-inserter__search{padding:16px 16px 0}.block-editor-inserter__no-tab-container{overflow-y:auto;flex-grow:1;position:relative}.block-editor-inserter__panel-header{display:inline-flex;align-items:center;padding:16px 16px 0}.block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__panel-title,.block-editor-inserter__panel-title button{margin:0 12px 0 0;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-inserter__panel-dropdown select.components-select-control__input.components-select-control__input.components-select-control__input{height:36px;line-height:36px}.block-editor-inserter__panel-dropdown select{border:none}.block-editor-inserter__reusable-blocks-panel{position:relative;text-align:right}.block-editor-inserter__manage-reusable-blocks-container{margin:auto 16px 16px}.block-editor-inserter__manage-reusable-blocks{justify-content:center;width:100%}.block-editor-inserter__no-results,.block-editor-inserter__patterns-loading{padding:32px;text-align:center}.block-editor-inserter__no-results-icon{fill:#949494}.block-editor-inserter__child-blocks{padding:0 16px}.block-editor-inserter__parent-block-header{display:flex;align-items:center}.block-editor-inserter__parent-block-header h2{font-size:13px}.block-editor-inserter__parent-block-header .block-editor-block-icon{margin-right:8px}.block-editor-inserter__preview-container__popover{top:16px!important}.block-editor-inserter__preview-container{display:none;width:280px;padding:16px;max-height:calc(100% - 32px);overflow-y:hidden}@media (min-width: 782px){.block-editor-inserter__preview-container{display:block}}.block-editor-inserter__preview-container .block-editor-inserter__media-list__list-item{height:100%}.block-editor-inserter__preview-container .block-editor-block-card{padding-left:0;padding-right:0;padding-bottom:4px}.block-editor-inserter__insertable-blocks-at-selection{border-bottom:1px solid #e0e0e0}.block-editor-inserter__media-tabs-container,.block-editor-inserter__block-patterns-tabs-container{padding:16px;height:100%;display:flex;flex-direction:column;justify-content:space-between}.block-editor-inserter__category-tablist{display:flex;flex-direction:column;border:none;margin-bottom:8px}.block-editor-inserter__category-tablist div[role=listitem]:last-child{margin-top:auto}.block-editor-inserter__category-tablist[aria-orientation=vertical]:after{content:none}.block-editor-inserter__category-tablist .block-editor-inserter__category-tab{padding:8px 4px 8px 12px;text-align:left;font-weight:inherit;display:block;position:relative;height:auto}.block-editor-inserter__category-tablist .block-editor-inserter__category-tab[aria-selected=true]{color:var(--wp-admin-theme-color)}.block-editor-inserter__category-tablist .block-editor-inserter__category-tab[aria-selected=true] .components-flex-item{filter:brightness(.95)}.block-editor-inserter__category-tablist .block-editor-inserter__category-tab[aria-selected=true] svg{fill:var(--wp-admin-theme-color)}.block-editor-inserter__category-tablist .block-editor-inserter__category-tab[aria-selected=true]:after{content:"";display:block;outline:none;position:absolute;inset:0;border-radius:2px;opacity:.04;background:var(--wp-admin-theme-color);height:100%}.block-editor-inserter__category-tablist .block-editor-inserter__category-tab:focus-visible,.block-editor-inserter__category-tablist .block-editor-inserter__category-tab:focus:not(:disabled){border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:0}.block-editor-inserter__category-tablist .block-editor-inserter__category-tab:before{display:none}.block-editor-inserter__category-tablist .block-editor-inserter__category-tab:after{display:none}.block-editor-inserter__category-panel{outline:1px solid transparent;display:flex;flex-direction:column;padding:0 16px}@media (min-width: 782px){.block-editor-inserter__category-panel{border-left:1px solid #e0e0e0;padding:0;left:350px;width:280px;position:absolute;top:-1px;height:calc(100% + 1px);background:#f0f0f0;border-top:1px solid #e0e0e0}.block-editor-inserter__category-panel .block-editor-inserter__media-list,.block-editor-inserter__category-panel .block-editor-block-patterns-list{padding:0 24px 16px}}.block-editor-inserter__patterns-category-panel-header{padding:8px 0}@media (min-width: 782px){.block-editor-inserter__patterns-category-panel-header{padding:8px 24px}}.block-editor-inserter__patterns-category-no-results{margin-top:24px}.block-editor-inserter__media-list,.block-editor-block-patterns-list{overflow-y:auto;flex-grow:1;height:100%}.block-editor-inserter__preview-content{background:#f0f0f0;display:grid;flex-grow:1;align-items:center}.block-editor-inserter__preview-content-missing{flex:1;display:flex;justify-content:center;align-items:center;min-height:144px;color:#757575;background:#f0f0f0;border-radius:2px}.block-editor-inserter__tips{border-top:1px solid #ddd;padding:16px;flex-shrink:0;position:relative}.block-editor-inserter__quick-inserter{width:100%;max-width:100%}@media (min-width: 782px){.block-editor-inserter__quick-inserter{width:350px}}.block-editor-inserter__quick-inserter-results .block-editor-inserter__panel-header{height:0;padding:0;float:left}.block-editor-inserter__quick-inserter.has-search .block-editor-inserter__panel-content,.block-editor-inserter__quick-inserter.has-expand .block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list{display:grid;grid-template-columns:1fr 1fr;grid-gap:8px}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-inserter__media-list__list-item{min-height:100px}.block-editor-inserter__quick-inserter-separator{border-top:1px solid #ddd}.block-editor-inserter__popover.is-quick>.components-popover__content{padding:0}.block-editor-inserter__quick-inserter-expand.components-button{display:block;background:#1e1e1e;color:#fff;width:100%;height:44px;border-radius:0}.block-editor-inserter__quick-inserter-expand.components-button:hover{color:#fff}.block-editor-inserter__quick-inserter-expand.components-button:active{color:#ccc}.block-editor-inserter__quick-inserter-expand.components-button.components-button:focus:not(:disabled){box-shadow:none;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.block-editor-block-patterns-explorer__sidebar{position:absolute;top:72px;left:0;bottom:0;width:280px;padding:24px 32px 32px;overflow-x:visible;overflow-y:scroll}.block-editor-block-patterns-explorer__sidebar__categories-list__item{display:block;width:100%;height:48px;text-align:left}.block-editor-block-patterns-explorer__search{margin-bottom:32px}.block-editor-block-patterns-explorer__search-results-count{padding-bottom:32px}.block-editor-block-patterns-explorer__list{margin-left:280px;padding:24px 0 32px}.block-editor-block-patterns-explorer__list .block-editor-patterns__sync-status-filter .components-input-control__container{width:380px}.block-editor-block-patterns-explorer .block-editor-block-patterns-list{display:grid;grid-gap:32px;grid-template-columns:repeat(1,1fr);margin-bottom:16px}@media (min-width: 1080px){.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-template-columns:repeat(2,1fr)}}@media (min-width: 1440px){.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-template-columns:repeat(3,1fr)}}.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{min-height:240px}.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-inserter__media-list__list-item{height:inherit;min-height:100px;max-height:800px}.components-heading.block-editor-inserter__patterns-category-panel-title{font-weight:500}.block-editor-inserter__patterns-explore-button.components-button,.block-editor-inserter__media-library-button.components-button{padding:16px;justify-content:center;margin-top:16px;width:100%}.block-editor-inserter__media-panel{min-height:100%;padding:0 16px;display:flex;flex-direction:column}@media (min-width: 782px){.block-editor-inserter__media-panel{padding:0}}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-spinner{height:100%;display:flex;align-items:center;justify-content:center;flex:1}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search{margin-bottom:24px}@media (min-width: 782px){.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search{margin-bottom:0;padding:16px 24px}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search:not(:focus-within){--wp-components-color-background: #fff}}.block-editor-inserter__media-list__list-item{position:relative;cursor:pointer;margin-bottom:24px}.block-editor-inserter__media-list__list-item.is-placeholder{min-height:100px}.block-editor-inserter__media-list__list-item[draggable=true] .block-editor-inserter__media-list__list-item{cursor:grab}.block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview>*{outline-color:#0000004d}.block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview-options>button{display:block}.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options{position:absolute;right:8px;top:8px}.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button{background:#fff;display:none}.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button.is-opened,.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:focus{display:block}.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:hover{box-shadow:inset 0 0 0 2px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-inserter__media-list__item{height:100%}.block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview{display:flex;align-items:center;overflow:hidden;border-radius:2px}.block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview>*{margin:0 auto;max-width:100%;outline:1px solid rgba(0,0,0,.1);outline-offset:-1px}.block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview .block-editor-inserter__media-list__item-preview-spinner{display:flex;height:100%;width:100%;position:absolute;justify-content:center;background:#ffffffb3;align-items:center;pointer-events:none}.block-editor-inserter__media-list__item:focus .block-editor-inserter__media-list__item-preview>*{outline-color:var(--wp-admin-theme-color);outline-width:var(--wp-admin-border-width-focus);outline-offset:calc((-1 * var(--wp-admin-border-width-focus)));transition:outline .1s linear}@media (prefers-reduced-motion: reduce){.block-editor-inserter__media-list__item:focus .block-editor-inserter__media-list__item-preview>*{transition-duration:0s;transition-delay:0s}}.block-editor-inserter__media-list__item-preview-options__popover .components-menu-item__button .components-menu-item__item{min-width:auto}.block-editor-inserter__mobile-tab-navigation{padding:16px;height:100%}.block-editor-inserter__mobile-tab-navigation>*{height:100%}@media (min-width: 600px){.block-editor-inserter-media-tab-media-preview-inserter-external-image-modal{max-width:480px}}.block-editor-inserter-media-tab-media-preview-inserter-external-image-modal p{margin:0}.block-editor-inserter__hint{margin:16px 16px 0}.block-editor-patterns__sync-status-filter .components-input-control__container select.components-select-control__input{height:40px}.block-editor-inserter__pattern-panel-placeholder{display:none}.block-editor-inserter__menu.is-zoom-out{display:flex}@media (min-width: 782px){.block-editor-inserter__menu.is-zoom-out.show-panel:after{content:"";display:block;width:300px;height:100%}}@media (max-width: 959px){.show-icon-labels .block-editor-block-patterns-explorer .block-editor-patterns__grid-pagination,.show-icon-labels .block-editor-block-patterns-explorer .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-previous,.show-icon-labels .block-editor-block-patterns-explorer .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-next{flex-direction:column}}.show-icon-labels .block-editor-inserter__category-panel .block-editor-patterns__grid-pagination,.show-icon-labels .block-editor-inserter__category-panel .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-previous,.show-icon-labels .block-editor-inserter__category-panel .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-next{flex-direction:column}.spacing-sizes-control .spacing-sizes-control__custom-value-input,.spacing-sizes-control .spacing-sizes-control__label{margin-bottom:0}.spacing-sizes-control .is-marked .components-range-control__track{transition:width ease .1s}@media (prefers-reduced-motion: reduce){.spacing-sizes-control .is-marked .components-range-control__track{transition-duration:0s;transition-delay:0s}}.spacing-sizes-control .is-marked .components-range-control__thumb-wrapper{transition:left ease .1s}@media (prefers-reduced-motion: reduce){.spacing-sizes-control .is-marked .components-range-control__thumb-wrapper{transition-duration:0s;transition-delay:0s}}.spacing-sizes-control .spacing-sizes-control__range-control,.spacing-sizes-control .spacing-sizes-control__custom-value-range{flex:1;margin-bottom:0}.spacing-sizes-control .components-range-control__mark{transform:translate(-50%);height:4px;width:2px;background-color:#fff;z-index:1;top:-4px}.spacing-sizes-control .components-range-control__marks{margin-top:17px}.spacing-sizes-control .components-range-control__thumb-wrapper{z-index:3}.spacing-sizes-control__header{height:16px;margin-bottom:12px}.spacing-sizes-control__dropdown{height:24px}.spacing-sizes-control__custom-select-control,.spacing-sizes-control__custom-value-input{flex:1}.spacing-sizes-control__icon,.spacing-sizes-control__custom-toggle{flex:0 0 auto}.spacing-sizes-control__icon{margin-left:-4px}.block-editor-block-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}@media (forced-colors: active){.block-editor-block-icon.has-colors svg{fill:CanvasText}}.block-editor-block-icon svg{min-width:20px;min-height:20px;max-width:24px;max-height:24px}.block-editor-block-styles .block-editor-block-list__block{margin:0}@keyframes selection-overlay__fade-in-animation{0%{opacity:0}to{opacity:.4}}_::-webkit-full-page-media,_:future,:root .block-editor-block-list__layout::selection,:root .has-multi-selection .block-editor-block-list__layout::selection{background-color:transparent}.block-editor-block-list__layout{position:relative}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::selection,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::selection{background:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{content:"";position:absolute;z-index:1;pointer-events:none;inset:0;background:var(--wp-admin-theme-color);opacity:.4;animation:selection-overlay__fade-in-animation .1s ease-out;animation-fill-mode:forwards;outline:2px solid transparent}@media (prefers-reduced-motion: reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{animation-duration:1ms;animation-delay:0s}}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected).is-highlighted:after{outline-color:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus{outline:none}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected:after,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected:after,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus:after{content:"";position:absolute;pointer-events:none;inset:0;outline-color:var(--wp-admin-theme-color);outline-style:solid;outline-width:calc(1 * (var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1)));outline-offset:calc(1 * ((-1 * var(--wp-admin-border-width-focus)) / var(--wp-block-editor-iframe-zoom-out-scale, 1)));z-index:1}.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected:after{content:"";position:absolute;z-index:0;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;inset:-14px 0 auto;border-radius:2px;border-top:4px solid #ccc;box-shadow:none}.block-editor-block-list__layout .is-block-moving-mode.can-insert-moving-block.block-editor-block-list__block.is-selected:after{border-color:var(--wp-admin-theme-color)}.has-multi-selection .block-editor-block-list__layout{-webkit-user-select:none;user-select:none}.block-editor-block-list__layout [class^=components-]{-webkit-user-select:text;user-select:text}.is-block-moving-mode.block-editor-block-list__block-selection-button{opacity:0;font-size:1px;height:1px;padding:0}.block-editor-block-list__layout .block-editor-block-list__block{position:relative;overflow-wrap:break-word;pointer-events:auto;-webkit-user-select:text;user-select:text}.block-editor-block-list__layout .block-editor-block-list__block.is-editing-disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block.has-negative-margin.is-selected,.block-editor-block-list__layout .block-editor-block-list__block.has-negative-margin.has-child-selected{z-index:20}.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel *{z-index:1}.block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui{margin:-10px 0 12px}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui{margin:0 0 12px;width:100%}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content{font-size:13px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning{min-height:48px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning>*{pointer-events:none;-webkit-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning{pointer-events:all}.block-editor-block-list__layout .block-editor-block-list__block.has-warning:after{content:"";position:absolute;inset:0;background-color:#fff6}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected:after{background-color:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay:after{display:none}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay .block-editor-block-list__layout.has-overlay:after{display:block}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable.has-child-selected:after{box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-block-list__layout .block-editor-block-list__block[data-clear=true]{float:none}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered{cursor:default}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected.rich-text,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected .rich-text,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered.rich-text,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered .rich-text{cursor:auto}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered:not(.is-selected):after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline):not(.rich-text):not([contenteditable=true]).is-selected:after{content:"";position:absolute;pointer-events:none;inset:0;outline-color:var(--wp-admin-theme-color);outline-style:solid;outline-width:calc(1 * (var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1)));outline-offset:calc(1 * ((-1 * var(--wp-admin-border-width-focus)) / var(--wp-block-editor-iframe-zoom-out-scale, 1)))}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-hovered:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-hovered:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted:after{outline-color:var(--wp-block-synced-color)}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after{outline-color:var(--wp-block-synced-color)}@keyframes block-editor-is-editable__animation{0%{background-color:rgba(var(--wp-admin-theme-color--rgb),.1)}to{background-color:rgba(var(--wp-admin-theme-color--rgb),0)}}@keyframes block-editor-is-editable__animation_reduce-motion{0%{background-color:rgba(var(--wp-admin-theme-color--rgb),.1)}99%{background-color:rgba(var(--wp-admin-theme-color--rgb),.1)}to{background-color:rgba(var(--wp-admin-theme-color--rgb),0)}}.is-root-container:not([inert]) .block-editor-block-list__block.is-reusable.is-selected .block-editor-block-list__block.has-editable-outline:after{animation-name:block-editor-is-editable__animation;animation-duration:.8s;animation-timing-function:ease-out;animation-delay:.1s;animation-fill-mode:backwards;content:"";inset:0;pointer-events:none;position:absolute}@media (prefers-reduced-motion: reduce){.is-root-container:not([inert]) .block-editor-block-list__block.is-reusable.is-selected .block-editor-block-list__block.has-editable-outline:after{animation-name:block-editor-is-editable__animation_reduce-motion;animation-delay:0s}}.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){opacity:.2;transition:opacity .1s linear}@media (prefers-reduced-motion: reduce){.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){transition-duration:0s;transition-delay:0s}}.is-focus-mode .block-editor-block-list__block:not(.has-child-selected) .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-selected,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-multi-selected{opacity:1}.is-focus-mode .block-editor-block-list__block.is-content-locked.has-child-selected,.is-focus-mode .block-editor-block-list__block.is-content-locked.has-child-selected .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block.is-content-locked-temporarily-editing-as-blocks.has-child-selected,.is-focus-mode .block-editor-block-list__block.is-content-locked-temporarily-editing-as-blocks.has-child-selected .block-editor-block-list__block{opacity:1}.wp-block[data-align=left]>*,.wp-block[data-align=right]>*,.wp-block.alignleft,.wp-block.alignright{z-index:21}.wp-site-blocks>[data-align=left]{float:left;margin-right:2em}.wp-site-blocks>[data-align=right]{float:right;margin-left:2em}.wp-site-blocks>[data-align=center]{justify-content:center;margin-left:auto;margin-right:auto}.block-editor-block-list .block-editor-inserter{margin:8px;cursor:move;cursor:grab}@keyframes block-editor-inserter__toggle__fade-in-animation{0%{opacity:0}to{opacity:1}}.wp-block .block-list-appender .block-editor-inserter__toggle{animation:block-editor-inserter__toggle__fade-in-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion: reduce){.wp-block .block-list-appender .block-editor-inserter__toggle{animation-duration:1ms;animation-delay:0s}}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender{display:none}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender .block-editor-inserter__toggle{opacity:0;transform:scale(0)}.block-editor-block-list__block .block-editor-block-list__block-html-textarea{display:block;margin:0;padding:12px;width:100%;border:none;outline:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;line-height:1.5;transition:padding .2s linear}@media (prefers-reduced-motion: reduce){.block-editor-block-list__block .block-editor-block-list__block-html-textarea{transition-duration:0s;transition-delay:0s}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-block-list__block .block-editor-warning{z-index:5;position:relative}.block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning{margin-bottom:auto}.is-vertical .block-list-appender{width:24px;margin-right:auto;margin-top:12px;margin-left:12px}.block-list-appender>.block-editor-inserter{display:block}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected):not(.block-editor-block-list__layout) .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle{opacity:0;transform:scale(0)}.block-editor-block-list__block.has-block-overlay{cursor:default}.block-editor-block-list__block.has-block-overlay .block-editor-block-list__block{pointer-events:none}.block-editor-block-list__block.has-block-overlay .block-editor-block-list__block.has-block-overlay:before{left:0;right:0;width:auto}.block-editor-block-list__layout .is-dragging{background-color:currentColor!important;opacity:.05!important;border-radius:2px!important;pointer-events:none!important}.block-editor-block-list__layout .is-dragging::selection{background:transparent!important}.block-editor-block-list__layout .is-dragging:after{content:none!important}.block-editor-block-preview__content-iframe .block-list-appender{display:none}.block-editor-block-preview__live-content *{pointer-events:none}.block-editor-block-preview__live-content .block-list-appender{display:none}.block-editor-block-preview__live-content .components-button:disabled{opacity:initial}.block-editor-block-preview__live-content .components-placeholder,.block-editor-block-preview__live-content .block-editor-block-list__block[data-empty=true]{display:none}.block-editor-block-variation-picker__variations,.block-editor-block-variation-picker__skip,.wp-block-group-placeholder__variations{list-style:none;display:flex;justify-content:flex-start;flex-direction:row;flex-wrap:wrap;width:100%;padding:0;margin:0;gap:8px;font-size:12px}.block-editor-block-variation-picker__variations svg,.block-editor-block-variation-picker__skip svg,.wp-block-group-placeholder__variations svg{fill:#949494!important}.block-editor-block-variation-picker__variations .components-button,.block-editor-block-variation-picker__skip .components-button,.wp-block-group-placeholder__variations .components-button{padding:4px}.block-editor-block-variation-picker__variations .components-button:hover,.block-editor-block-variation-picker__skip .components-button:hover,.wp-block-group-placeholder__variations .components-button:hover{background:none!important}.block-editor-block-variation-picker__variations .components-button:hover svg,.block-editor-block-variation-picker__skip .components-button:hover svg,.wp-block-group-placeholder__variations .components-button:hover svg{fill:var(--wp-admin-theme-color)!important}.block-editor-block-variation-picker__variations>li,.block-editor-block-variation-picker__skip>li,.wp-block-group-placeholder__variations>li{width:auto;display:flex;flex-direction:column;align-items:center;gap:4px}.block-editor-button-block-appender{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:auto;color:#1e1e1e;box-shadow:inset 0 0 0 1px #1e1e1e}.block-editor-button-block-appender.components-button.components-button{padding:12px}.is-dark-theme .block-editor-button-block-appender{color:#ffffffa6;box-shadow:inset 0 0 0 1px #ffffffa6}.block-editor-button-block-appender:hover{color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color)}.block-editor-button-block-appender:active{color:#000}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child,.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child{pointer-events:none}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after,.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:after,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:after{content:"";position:absolute;inset:0;pointer-events:none;border:1px dashed currentColor}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter,.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter{opacity:0}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter:focus-within,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter:focus-within,.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter:focus-within,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter:focus-within{opacity:1}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over:after,.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over:after,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over:after{border:none}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over .block-editor-inserter,.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over .block-editor-inserter,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over .block-editor-inserter{visibility:visible}.block-editor-block-list__block:not(.is-selected)>.block-editor-block-list__block>.block-list-appender:only-child:after{border:none}.block-list-appender:only-child.is-drag-over .block-editor-button-block-appender{background-color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px #ffffffa6;color:#ffffffa6;transition:background-color .2s ease-in-out}@media (prefers-reduced-motion: reduce){.block-list-appender:only-child.is-drag-over .block-editor-button-block-appender{transition:none}}.block-editor-default-block-appender{clear:both;margin-left:auto;margin-right:auto;position:relative}.block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover{outline:1px solid transparent}.block-editor-default-block-appender .block-editor-default-block-appender__content{opacity:.62}:where(body .is-layout-constrained) .block-editor-default-block-appender>:first-child,:where(.wp-site-blocks) .block-editor-default-block-appender>:first-child{margin-block-start:0;margin-block-end:0}.block-editor-default-block-appender .components-drop-zone__content-icon{display:none}.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;color:#fff;padding:0;min-width:24px;height:24px}.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon:hover{color:#fff;background:var(--wp-admin-theme-color)}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{position:absolute;top:0;right:0;line-height:0}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter:disabled,.block-editor-default-block-appender .block-editor-inserter:disabled{display:none}.block-editor-block-list__block .block-list-appender{position:absolute;list-style:none;padding:0;z-index:2;bottom:0;right:0}.block-editor-block-list__block .block-list-appender.block-list-appender{margin:0;line-height:0}.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender{height:24px}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{flex-direction:row;box-shadow:none;height:24px;width:24px;min-width:24px;display:none;padding:0!important;background:#1e1e1e;color:#fff}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle:hover{color:#fff;background:var(--wp-admin-theme-color)}.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender__content{display:none}.block-editor-block-list__block .block-list-appender:only-child{position:relative;right:auto;align-self:center;list-style:none;line-height:inherit}.block-editor-block-list__block .block-list-appender:only-child .block-editor-default-block-appender__content{display:block}.block-editor-block-list__block.is-selected .block-editor-block-list__layout>.block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block.is-selected .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle,.block-editor-block-list__block.is-selected>.block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block.is-selected>.block-list-appender .block-list-appender__toggle{display:flex}.block-editor-default-block-appender__content{cursor:text}.block-editor-iframe__body{position:relative}.block-editor-iframe__container{width:100%;height:100%;overflow-x:hidden}.block-editor-iframe__scale-container{width:100%;height:100%;display:flex}.block-editor-iframe__scale-container.is-zoomed-out{width:var(--wp-block-editor-iframe-zoom-out-prev-container-width, 100vw);margin-left:calc(-1 * (var(--wp-block-editor-iframe-zoom-out-prev-container-width, 100vw) - var(--wp-block-editor-iframe-zoom-out-container-width, 100vw)) / 2)}.block-editor-iframe__html{border:0 solid #ddd;transform-origin:top center;transition:all .5s cubic-bezier(.65,0,.45,1)}@media (prefers-reduced-motion: reduce){.block-editor-iframe__html{transition-duration:0s;transition-delay:0s}}.block-editor-iframe__html.is-zoomed-out{transform:scale(var(--wp-block-editor-iframe-zoom-out-scale));background-color:#ddd;border:calc(var(--wp-block-editor-iframe-zoom-out-frame-size) / var(--wp-block-editor-iframe-zoom-out-scale)) solid #ddd;margin-bottom:calc(-1 * calc(calc(var(--wp-block-editor-iframe-zoom-out-content-height) * (1 - var(--wp-block-editor-iframe-zoom-out-scale))) + calc(2 * var(--wp-block-editor-iframe-zoom-out-frame-size)) + 2px))}.block-editor-iframe__html.is-zoomed-out body{min-height:calc((var(--wp-block-editor-iframe-zoom-out-inner-height) - calc(2 * var(--wp-block-editor-iframe-zoom-out-frame-size))) / var(--wp-block-editor-iframe-zoom-out-scale));display:flex;flex-direction:column}.block-editor-iframe__html.is-zoomed-out body>.is-root-container:not(.wp-block-post-content){flex:1;display:flex;flex-direction:column;height:100%}.block-editor-iframe__html.is-zoomed-out body>.is-root-container:not(.wp-block-post-content)>main{flex:1}.block-editor-block-list__layout.has-overlay:after{content:"";position:absolute;inset:0;z-index:60}.block-editor-media-placeholder__url-input-form{display:flex}.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:100%;min-width:200px;flex-grow:1;border:none;border-radius:0;margin:2px}@media (min-width: 600px){.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:300px}}.block-editor-media-placeholder__url-input-submit-button{flex-shrink:1}.block-editor-media-placeholder__cancel-button.is-link{margin:1em;display:block}.block-editor-media-placeholder.is-appender{min-height:0}.block-editor-media-placeholder.is-appender:hover{cursor:pointer;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-plain-text{box-shadow:none;font-family:inherit;font-size:inherit;color:inherit;line-height:inherit;border:none;padding:0;margin:0;width:100%}.rich-text:focus [data-rich-text-format-boundary]{border-radius:2px}.block-editor-rich-text__editable>p:first-child{margin-top:0}figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]:before{opacity:.8}[data-rich-text-script]{display:inline}[data-rich-text-script]:before{content:"";background:#ff0}.block-editor-warning{align-items:center;display:flex;flex-wrap:wrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:1em;border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.block-editor-warning .block-editor-warning__message{line-height:1.4;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;color:#1e1e1e;margin:0}.block-editor-warning p.block-editor-warning__message.block-editor-warning__message{min-height:auto}.block-editor-warning .block-editor-warning__contents{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;align-items:baseline;width:100%;gap:12px}.block-editor-warning .block-editor-warning__actions{align-items:center;display:flex;gap:8px}.components-popover.block-editor-warning__dropdown{z-index:99998}body.admin-color-light{--wp-admin-theme-color: #0085ba;--wp-admin-theme-color--rgb: 0, 133, 186;--wp-admin-theme-color-darker-10: #0073a1;--wp-admin-theme-color-darker-10--rgb: 0, 115, 161;--wp-admin-theme-color-darker-20: #006187;--wp-admin-theme-color-darker-20--rgb: 0, 97, 135;--wp-admin-border-width-focus: 2px}@media (min-resolution: 192dpi){body.admin-color-light{--wp-admin-border-width-focus: 1.5px}}body.admin-color-modern{--wp-admin-theme-color: #3858e9;--wp-admin-theme-color--rgb: 56, 88, 233;--wp-admin-theme-color-darker-10: #2145e6;--wp-admin-theme-color-darker-10--rgb: 33, 69, 230;--wp-admin-theme-color-darker-20: #183ad6;--wp-admin-theme-color-darker-20--rgb: 24, 58, 214;--wp-admin-border-width-focus: 2px}@media (min-resolution: 192dpi){body.admin-color-modern{--wp-admin-border-width-focus: 1.5px}}body.admin-color-blue{--wp-admin-theme-color: #096484;--wp-admin-theme-color--rgb: 9, 100, 132;--wp-admin-theme-color-darker-10: #07526c;--wp-admin-theme-color-darker-10--rgb: 7, 82, 108;--wp-admin-theme-color-darker-20: #064054;--wp-admin-theme-color-darker-20--rgb: 6, 64, 84;--wp-admin-border-width-focus: 2px}@media (min-resolution: 192dpi){body.admin-color-blue{--wp-admin-border-width-focus: 1.5px}}body.admin-color-coffee{--wp-admin-theme-color: #46403c;--wp-admin-theme-color--rgb: 70, 64, 60;--wp-admin-theme-color-darker-10: #383330;--wp-admin-theme-color-darker-10--rgb: 56, 51, 48;--wp-admin-theme-color-darker-20: #2b2724;--wp-admin-theme-color-darker-20--rgb: 43, 39, 36;--wp-admin-border-width-focus: 2px}@media (min-resolution: 192dpi){body.admin-color-coffee{--wp-admin-border-width-focus: 1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color: #523f6d;--wp-admin-theme-color--rgb: 82, 63, 109;--wp-admin-theme-color-darker-10: #46365d;--wp-admin-theme-color-darker-10--rgb: 70, 54, 93;--wp-admin-theme-color-darker-20: #3a2c4d;--wp-admin-theme-color-darker-20--rgb: 58, 44, 77;--wp-admin-border-width-focus: 2px}@media (min-resolution: 192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus: 1.5px}}body.admin-color-midnight{--wp-admin-theme-color: #e14d43;--wp-admin-theme-color--rgb: 225, 77, 67;--wp-admin-theme-color-darker-10: #dd382d;--wp-admin-theme-color-darker-10--rgb: 221, 56, 45;--wp-admin-theme-color-darker-20: #d02c21;--wp-admin-theme-color-darker-20--rgb: 208, 44, 33;--wp-admin-border-width-focus: 2px}@media (min-resolution: 192dpi){body.admin-color-midnight{--wp-admin-border-width-focus: 1.5px}}body.admin-color-ocean{--wp-admin-theme-color: #627c83;--wp-admin-theme-color--rgb: 98, 124, 131;--wp-admin-theme-color-darker-10: #576e74;--wp-admin-theme-color-darker-10--rgb: 87, 110, 116;--wp-admin-theme-color-darker-20: #4c6066;--wp-admin-theme-color-darker-20--rgb: 76, 96, 102;--wp-admin-border-width-focus: 2px}@media (min-resolution: 192dpi){body.admin-color-ocean{--wp-admin-border-width-focus: 1.5px}}body.admin-color-sunrise{--wp-admin-theme-color: #dd823b;--wp-admin-theme-color--rgb: 221, 130, 59;--wp-admin-theme-color-darker-10: #d97426;--wp-admin-theme-color-darker-10--rgb: 217, 116, 38;--wp-admin-theme-color-darker-20: #c36922;--wp-admin-theme-color-darker-20--rgb: 195, 105, 34;--wp-admin-border-width-focus: 2px}@media (min-resolution: 192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus: 1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-right:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;margin:0}@media (min-width: 782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-right:12px;gap:8px}.interface-complementary-area-header .interface-complementary-area-header__title{margin:0}.interface-complementary-area-header .components-button.has-icon{display:none;margin-left:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-left:0}@media (min-width: 782px){.interface-complementary-area-header .components-button.has-icon{display:flex}}.interface-complementary-area{background:#fff;color:#1e1e1e;height:100%;overflow:auto}@media (min-width: 600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width: 782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs{top:48px}@media (min-width: 782px){.interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs{top:0}}.interface-complementary-area p:not(.components-base-control__help,.components-form-token-field__help){margin-top:0}.interface-complementary-area h2{font-size:13px;font-weight:500;color:#1e1e1e;margin-bottom:1.5em}.interface-complementary-area h3{font-size:11px;text-transform:uppercase;font-weight:500;color:#1e1e1e;margin-bottom:1.5em}.interface-complementary-area hr{border-top:none;border-bottom:1px solid #f0f0f0;margin:1.5em 0}.interface-complementary-area div.components-toolbar-group,.interface-complementary-area div.components-toolbar{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{inset:auto 10px 10px auto}.interface-complementary-area__fill{height:100%}@media (min-width: 782px){body.js.is-fullscreen-mode{margin-top:-32px;height:calc(100% + 32px)}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-left:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width: 782px){html.interface-interface-skeleton__html-container:not(:has(.is-zoom-out)){position:initial;width:initial}}.interface-interface-skeleton{display:flex;flex-direction:row;height:auto;max-height:100%;position:fixed;inset:46px 0 0}@media (min-width: 783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex-direction:column;flex:0 1 100%;overflow:hidden}.interface-interface-skeleton{left:0}@media (min-width: 783px){.interface-interface-skeleton{left:160px}}@media (min-width: 783px){.auto-fold .interface-interface-skeleton{left:36px}}@media (min-width: 961px){.auto-fold .interface-interface-skeleton{left:160px}}.folded .interface-interface-skeleton{left:0}@media (min-width: 783px){.folded .interface-interface-skeleton{left:36px}}body.is-fullscreen-mode .interface-interface-skeleton{left:0!important}.interface-interface-skeleton__body{position:relative;flex-grow:1;display:flex;overflow:auto;overscroll-behavior-y:none}@media (min-width: 782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{flex-grow:1;display:flex;flex-direction:column;overflow:auto;z-index:20}@media (min-width: 782px){.interface-interface-skeleton__content{z-index:auto}}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{flex-shrink:0;position:absolute;z-index:100000;top:0;left:0;bottom:0;background:#fff;color:#1e1e1e;width:auto}@media (min-width: 782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important}}.interface-interface-skeleton__sidebar{border-top:1px solid #e0e0e0;overflow:hidden}@media (min-width: 782px){.interface-interface-skeleton__sidebar{box-shadow:-1px 0 #0002;outline:1px solid transparent}}.interface-interface-skeleton__secondary-sidebar{border-top:1px solid #e0e0e0;right:0}@media (min-width: 782px){.interface-interface-skeleton__secondary-sidebar{box-shadow:1px 0 #0002;outline:1px solid transparent}}.interface-interface-skeleton__header{flex-shrink:0;height:auto;box-shadow:0 1px #0002;z-index:30;color:#1e1e1e;outline:1px solid transparent}.interface-interface-skeleton__footer{height:auto;flex-shrink:0;border-top:1px solid #e0e0e0;color:#1e1e1e;position:absolute;bottom:0;left:0;width:100%;background-color:#fff;z-index:90;display:none}@media (min-width: 782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{z-index:30;display:flex;background:#fff;height:24px;align-items:center;font-size:13px;padding:0 18px}.interface-interface-skeleton__actions{z-index:100000;position:fixed!important;inset:-9999em 0 auto auto;color:#1e1e1e;background:#fff;width:100vw}@media (min-width: 782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{top:auto;bottom:0}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width: 782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-left:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:0}}.interface-pinned-items{display:flex;gap:8px}.interface-pinned-items .components-button{display:none;margin:0}.interface-pinned-items .components-button[aria-controls="edit-post:document"],.interface-pinned-items .components-button[aria-controls="edit-post:block"],.interface-pinned-items .components-button[aria-controls="edit-site:template"],.interface-pinned-items .components-button[aria-controls="edit-site:block-inspector"]{display:flex}.interface-pinned-items .components-button svg{max-width:24px;max-height:24px}@media (min-width: 600px){.interface-pinned-items .components-button{display:flex}}.editor-autocompleters__user .editor-autocompleters__no-avatar:before{font: 20px/1 dashicons;content:"";margin-right:5px;vertical-align:middle}.editor-autocompleters__user .editor-autocompleters__user-avatar{margin-right:8px;flex-grow:0;flex-shrink:0;max-width:none;width:24px;height:24px}.editor-autocompleters__user .editor-autocompleters__user-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:200px;flex-shrink:0;flex-grow:1}.editor-autocompleters__user .editor-autocompleters__user-slug{margin-left:8px;color:#757575;white-space:nowrap;text-overflow:ellipsis;overflow:none;max-width:100px;flex-grow:0;flex-shrink:0}.editor-autocompleters__user:hover .editor-autocompleters__user-slug{color:var(--wp-admin-theme-color)}.editor-block-manager__no-results{font-style:italic;padding:24px 0;text-align:center}.editor-block-manager__search{margin:16px 0}.editor-block-manager__disabled-blocks-count{border:1px solid #ddd;border-width:1px 0;box-shadow:-32px 0 #fff,32px 0 #fff;padding:8px;background-color:#fff;text-align:center;position:sticky;top:-5px;z-index:2}.editor-block-manager__disabled-blocks-count~.editor-block-manager__results .editor-block-manager__category-title{top:31px}.editor-block-manager__disabled-blocks-count .is-link{margin-left:12px}.editor-block-manager__category{margin:0 0 24px}.editor-block-manager__category-title{position:sticky;top:-4px;padding:16px 0;background-color:#fff;z-index:1}.editor-block-manager__category-title .components-checkbox-control__label{font-weight:600}.editor-block-manager__checklist{margin-top:0}.editor-block-manager__category-title,.editor-block-manager__checklist-item{border-bottom:1px solid #ddd}.editor-block-manager__checklist-item{display:flex;justify-content:space-between;align-items:center;margin-bottom:0;padding:8px 0 8px 16px}.components-modal__content .editor-block-manager__checklist-item.components-checkbox-control__input-container{margin:0 8px}.editor-block-manager__checklist-item .block-editor-block-icon{margin-right:10px;fill:#1e1e1e}.editor-block-manager__results{border-top:1px solid #ddd}.editor-block-manager__disabled-blocks-count+.editor-block-manager__results{border-top-width:0}.editor-collapsible-block-toolbar{overflow:hidden;display:flex;align-items:center;height:60px}.editor-collapsible-block-toolbar .block-editor-block-contextual-toolbar{border-bottom:0;height:100%;background:transparent}.editor-collapsible-block-toolbar .block-editor-block-toolbar{height:100%;padding-top:15px}.editor-collapsible-block-toolbar .block-editor-block-toolbar .components-button:not(.block-editor-block-mover-button){height:32px}.editor-collapsible-block-toolbar:after{content:"";width:1px;height:24px;background-color:#ddd;margin-right:7px}.editor-collapsible-block-toolbar .components-toolbar-group,.editor-collapsible-block-toolbar .components-toolbar{border-right:none;position:relative}.editor-collapsible-block-toolbar .components-toolbar-group:after,.editor-collapsible-block-toolbar .components-toolbar:after{content:"";width:1px;height:24px;background-color:#ddd;top:4px;position:absolute;right:-1px}.editor-collapsible-block-toolbar .components-toolbar-group .components-toolbar-group.components-toolbar-group:after,.editor-collapsible-block-toolbar .components-toolbar .components-toolbar-group.components-toolbar-group:after{display:none}.editor-collapsible-block-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button{height:32px;overflow:visible}@media (min-width: 600px){.editor-collapsible-block-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{height:40px;position:relative;top:-5px}}.editor-collapsible-block-toolbar.is-collapsed{display:none}.editor-create-template-part-modal{z-index:1000001}.editor-create-template-part-modal__area-radio-group{width:100%;border:1px solid #757575;border-radius:2px}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio{display:block;width:100%;height:100%;text-align:left;padding:12px}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-secondary:hover,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-primary:hover{margin:0;background-color:inherit;border-bottom:1px solid #757575;border-radius:0}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio:not(:focus),.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-secondary:hover:not(:focus),.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-primary:hover:not(:focus){box-shadow:none}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio:focus,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-secondary:hover:focus,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-primary:hover:focus{border-bottom:1px solid #fff}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio:last-of-type,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-secondary:hover:last-of-type,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio.is-primary:hover:last-of-type{border-bottom:none}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio:not(:hover),.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio[aria-checked=true]{color:#1e1e1e;cursor:auto}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio:not(:hover) .editor-create-template-part-modal__option-label div,.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio[aria-checked=true] .editor-create-template-part-modal__option-label div{color:#949494}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio .editor-create-template-part-modal__option-label{padding-top:4px;white-space:normal}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio .editor-create-template-part-modal__option-label div{padding-top:4px;font-size:12px}.editor-create-template-part-modal__area-radio-group .components-button.editor-create-template-part-modal__area-radio .editor-create-template-part-modal__checkbox{margin-left:auto;min-width:24px}.editor-content-only-settings-menu__description{padding:8px;min-width:235px}.editor-blog-title-dropdown__content .components-popover__content{min-width:320px;padding:16px}.editor-document-bar{display:flex;align-items:center;height:32px;justify-content:space-between;min-width:0;background:#f0f0f0;border-radius:4px;width:min(100%,450px)}.editor-document-bar:hover{background-color:#e0e0e0}.editor-document-bar .components-button{border-radius:4px;transition:all .1s ease-out}@media (prefers-reduced-motion: reduce){.editor-document-bar .components-button{transition-duration:0s;transition-delay:0s}}.editor-document-bar .components-button:hover{background:#e0e0e0}.editor-document-bar__command{flex-grow:1;color:var(--wp-block-synced-color);overflow:hidden}.editor-document-bar__title{flex:1;overflow:hidden;color:#1e1e1e;gap:4px;display:flex;justify-content:center;align-items:center}@media (min-width: 782px){.editor-document-bar__title{padding-left:24px}}.editor-document-bar.is-global .editor-document-bar__title{color:var(--wp-block-synced-color)}.editor-document-bar__title .block-editor-block-icon{min-width:24px;flex-shrink:0}.editor-document-bar__title h1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:70%;color:currentColor}.editor-document-bar__shortcut{color:#2f2f2f;min-width:24px;display:none}@media (min-width: 782px){.editor-document-bar__shortcut{display:initial}}.editor-document-bar__back.components-button.has-icon.has-text{min-width:36px;flex-shrink:0;color:#757575;gap:0;z-index:1;position:absolute}.editor-document-bar__back.components-button.has-icon.has-text:hover{color:#1e1e1e;background-color:transparent}.document-outline{margin:20px 0}.document-outline ul{margin:0;padding:0}.document-outline__item{display:flex;margin:4px 0}.document-outline__item a{text-decoration:none}.document-outline__item .document-outline__emdash:before{color:#ddd;margin-right:4px}.document-outline__item.is-h2 .document-outline__emdash:before{content:"—"}.document-outline__item.is-h3 .document-outline__emdash:before{content:"——"}.document-outline__item.is-h4 .document-outline__emdash:before{content:"———"}.document-outline__item.is-h5 .document-outline__emdash:before{content:"————"}.document-outline__item.is-h6 .document-outline__emdash:before{content:"—————"}.document-outline__button{cursor:pointer;background:none;border:none;display:flex;align-items:flex-start;margin:0 0 0 -1px;padding:2px 5px 2px 1px;color:#1e1e1e;text-align:left;border-radius:2px}.document-outline__button:disabled{cursor:default}.document-outline__button:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.document-outline__level{background:#ddd;color:#1e1e1e;border-radius:3px;font-size:13px;padding:1px 6px;margin-right:4px}.is-invalid .document-outline__level{background:#f0b849}.document-outline__item-content{padding:1px 0}.editor-document-outline.has-no-headings{text-align:center;color:#757575}.editor-document-outline.has-no-headings>svg{margin-top:28px}.editor-document-outline.has-no-headings>p{padding-left:32px;padding-right:32px}.editor-document-tools{display:inline-flex;align-items:center}.editor-document-tools .editor-document-tools__left>.editor-history__redo,.editor-document-tools .editor-document-tools__left>.editor-history__undo{display:none}@media (min-width: 782px){.editor-document-tools .editor-document-tools__left>.editor-history__redo,.editor-document-tools .editor-document-tools__left>.editor-history__undo{display:inline-flex}}.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle{display:inline-flex}.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle svg{transition:transform cubic-bezier(.165,.84,.44,1) .2s}@media (prefers-reduced-motion: reduce){.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle svg{transition-duration:0s;transition-delay:0s}}.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle.is-pressed svg{transform:rotate(45deg)}.editor-document-tools .block-editor-list-view{display:none}@media (min-width: 600px){.editor-document-tools .block-editor-list-view{display:flex}}.editor-document-tools .editor-document-tools__left>.components-button.has-icon,.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon{height:32px;min-width:32px;padding:4px}.editor-document-tools .editor-document-tools__left>.components-button.has-icon.is-pressed,.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.editor-document-tools .editor-document-tools__left>.components-button.has-icon:focus:not(:disabled),.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.editor-document-tools .editor-document-tools__left>.components-button.has-icon:before,.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon:before{display:none}.editor-document-tools__left{display:inline-flex;align-items:center;gap:8px}.editor-document-tools__left:not(:last-child){margin-inline-end:8px}.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle.has-icon{min-width:32px;width:32px;height:32px;padding:0}.show-icon-labels .editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle.has-icon{width:auto;height:32px;padding:0 8px}.show-icon-labels .editor-document-tools__left>*+*{margin-left:8px}.editor-editor-interface .entities-saved-states__panel-header{height:61px}.editor-editor-interface .interface-interface-skeleton__content{isolation:isolate}.editor-visual-editor{flex:1 0 auto}.components-editor-notices__dismissible,.components-editor-notices__pinned{position:relative;left:0;top:0;right:0;color:#1e1e1e}.components-editor-notices__dismissible .components-notice,.components-editor-notices__pinned .components-notice{box-sizing:border-box;border-bottom:1px solid rgba(0,0,0,.2);padding:0 12px;min-height:60px}.components-editor-notices__dismissible .components-notice .components-notice__dismiss,.components-editor-notices__pinned .components-notice .components-notice__dismiss{margin-top:12px}.entities-saved-states__panel-header{box-sizing:border-box;background:#fff;padding-left:8px;padding-right:8px;height:60px;border-bottom:1px solid #ddd}.entities-saved-states__text-prompt{padding:16px 16px 4px}.entities-saved-states__text-prompt .entities-saved-states__text-prompt--header{display:block;margin-bottom:12px}.entities-saved-states__description-heading{font-size:13px}.entities-saved-states__changes{color:#757575;font-size:12px;margin:8px 16px 0;list-style:disc}.entities-saved-states__changes li{margin-bottom:4px}.editor-error-boundary{margin:60px auto auto;max-width:780px;padding:20px;box-shadow:0 .7px 1px #00000026,0 2.7px 3.8px -.2px #00000026,0 5.5px 7.8px -.3px #00000026,.1px 11.5px 16.4px -.5px #00000026}.editor-header{height:60px;background:#fff;display:grid;grid-auto-flow:row;grid-template:auto/60px minmax(0,max-content) minmax(min-content,1fr) 60px;align-items:center;max-width:100vw;justify-content:space-between}.editor-header:has(>.editor-header__center){grid-template:auto/60px min-content 1fr min-content 60px}@media (min-width: 782px){.editor-header:has(>.editor-header__center){grid-template:auto/60px minmax(min-content,1fr) 2fr minmax(min-content,1fr) 60px}}@media (min-width: 480px){.editor-header{gap:16px}}@media (min-width: 280px){.editor-header{flex-wrap:nowrap}}.editor-header__toolbar{grid-column:1/3;display:flex;min-width:0;align-items:center;clip-path:inset(-2px)}.editor-header__toolbar>:first-child{margin-inline:16px 0}.editor-header__back-button+.editor-header__toolbar{grid-column:2/3}@media (min-width: 480px){.editor-header__back-button+.editor-header__toolbar>:first-child{margin-inline:0}}@media (min-width: 480px){.editor-header__toolbar{clip-path:none}}.editor-header__toolbar .table-of-contents{display:none}@media (min-width: 600px){.editor-header__toolbar .table-of-contents{display:block}}.editor-header__toolbar .editor-collapsible-block-toolbar{margin-inline:8px 0}.editor-header__toolbar .editor-collapsible-block-toolbar.is-collapsed~.editor-collapsible-block-toolbar__toggle{margin-inline:8px 0}.editor-header__center{grid-column:3/4;display:flex;justify-content:center;align-items:center;min-width:0;clip-path:inset(-2px)}@media (max-width: 479px){.editor-header__center>:first-child{margin-inline-start:8px}.editor-header__center>:last-child{margin-inline-end:8px}}.editor-header__settings{grid-column:3/-1;justify-self:end;display:inline-flex;align-items:center;flex-wrap:nowrap;padding-right:4px;gap:8px}.editor-header:has(>.editor-header__center) .editor-header__settings{grid-column:4/-1}@media (min-width: 600px){.editor-header__settings{padding-right:8px}}.show-icon-labels.interface-pinned-items .components-button.has-icon,.show-icon-labels .editor-header .components-button.has-icon{width:auto}.show-icon-labels.interface-pinned-items .components-button.has-icon svg,.show-icon-labels .editor-header .components-button.has-icon svg{display:none}.show-icon-labels.interface-pinned-items .components-button.has-icon:after,.show-icon-labels .editor-header .components-button.has-icon:after{content:attr(aria-label)}.show-icon-labels.interface-pinned-items .components-button.has-icon[aria-disabled=true],.show-icon-labels .editor-header .components-button.has-icon[aria-disabled=true]{background-color:transparent}.show-icon-labels.interface-pinned-items .is-tertiary:active,.show-icon-labels .editor-header .is-tertiary:active{box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);background-color:transparent}.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle svg,.show-icon-labels .editor-header .components-button.has-icon.button-toggle svg{display:block}.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle:after,.show-icon-labels .editor-header .components-button.has-icon.button-toggle:after{content:none}.show-icon-labels.interface-pinned-items .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels .editor-header .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon{display:block}.show-icon-labels.interface-pinned-items .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button,.show-icon-labels .editor-header .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels .editor-header .interface-pinned-items .components-button{padding-left:8px;padding-right:8px}@media (min-width: 600px){.show-icon-labels.interface-pinned-items .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button,.show-icon-labels .editor-header .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels .editor-header .interface-pinned-items .components-button{padding-left:12px;padding-right:12px}}.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels .editor-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .editor-header .editor-post-saved-state.editor-post-saved-state:after{content:none}.show-icon-labels .editor-header__toolbar .block-editor-block-mover{border-left:none}.show-icon-labels .editor-header__toolbar .block-editor-block-mover:before{content:"";width:1px;height:24px;background-color:#ddd;margin-top:4px;margin-left:8px}.show-icon-labels .editor-header__toolbar .block-editor-block-mover .block-editor-block-mover__move-button-container:before{width:calc(100% - 24px);background:#ddd;left:calc(50% + 1px)}.show-icon-labels.interface-pinned-items{padding:6px 12px 12px;margin:0 -12px;border-bottom:1px solid #ccc;display:block}.show-icon-labels.interface-pinned-items>.components-button.has-icon{margin:0;padding:6px 6px 6px 8px;width:14.625rem;justify-content:flex-start}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=true] svg{display:block;max-width:24px}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=false]{padding-left:40px}.show-icon-labels.interface-pinned-items>.components-button.has-icon svg{margin-right:8px}@media (min-width: 480px){.editor-header__post-preview-button{display:none}}.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header{border-bottom:none}.editor-editor-interface.is-distraction-free .editor-header{background-color:#fff;width:100%}@media (min-width: 782px){.editor-editor-interface.is-distraction-free .editor-header{border-bottom:1px solid #e0e0e0;position:absolute}}.editor-editor-interface.is-distraction-free .editor-header>.edit-post-header__settings>.edit-post-header__post-preview-button{visibility:hidden}.editor-editor-interface.is-distraction-free .editor-header>.editor-header__toolbar .editor-document-tools__document-overview-toggle,.editor-editor-interface.is-distraction-free .editor-header>.editor-header__settings>.editor-preview-dropdown,.editor-editor-interface.is-distraction-free .editor-header>.editor-header__settings>.interface-pinned-items{display:none}.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header:focus-within{opacity:1!important}.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header:focus-within div{transform:translate(0) translateZ(0)!important}.editor-editor-interface.is-distraction-free .components-editor-notices__dismissible{position:absolute;z-index:35}.components-popover.more-menu-dropdown__content{z-index:99998}.editor-inserter-sidebar{box-sizing:border-box;height:100%;display:flex;flex-direction:column}.editor-inserter-sidebar *,.editor-inserter-sidebar *:before,.editor-inserter-sidebar *:after{box-sizing:inherit}.editor-inserter-sidebar__content{height:100%}.editor-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.editor-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.editor-keyboard-shortcut-help-modal__shortcut{display:flex;align-items:baseline;padding:.6rem 0;border-top:1px solid #ddd;margin-bottom:0}.editor-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.editor-keyboard-shortcut-help-modal__shortcut:empty{display:none}.editor-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 0 0 1rem;text-align:right}.editor-keyboard-shortcut-help-modal__shortcut-description{flex:1;margin:0}.editor-keyboard-shortcut-help-modal__shortcut-key-combination{display:block;background:none;margin:0;padding:0}.editor-keyboard-shortcut-help-modal__shortcut-key-combination+.editor-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.editor-keyboard-shortcut-help-modal__shortcut-key{padding:.25rem .5rem;border-radius:8%;margin:0 .2rem}.editor-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 0 0 .2rem}.editor-list-view-sidebar{height:100%}@media (min-width: 782px){.editor-list-view-sidebar{width:350px}}.editor-list-view-sidebar__list-view-panel-content,.editor-list-view-sidebar__list-view-container>.document-outline{height:100%;scrollbar-width:thin;scrollbar-gutter:stable both-edges;scrollbar-color:transparent transparent;will-change:transform;overflow:auto;scrollbar-gutter:auto;padding:4px}.editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar,.editor-list-view-sidebar__list-view-container>.document-outline::-webkit-scrollbar{width:12px;height:12px}.editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar-track,.editor-list-view-sidebar__list-view-container>.document-outline::-webkit-scrollbar-track{background-color:transparent}.editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-container>.document-outline::-webkit-scrollbar-thumb{background-color:transparent;border-radius:8px;border:3px solid transparent;background-clip:padding-box}.editor-list-view-sidebar__list-view-panel-content:hover::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content:focus::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content:focus-within::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-container>.document-outline:hover::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-container>.document-outline:focus::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-container>.document-outline:focus-within::-webkit-scrollbar-thumb{background-color:#949494}.editor-list-view-sidebar__list-view-panel-content:hover,.editor-list-view-sidebar__list-view-panel-content:focus,.editor-list-view-sidebar__list-view-panel-content:focus-within,.editor-list-view-sidebar__list-view-container>.document-outline:hover,.editor-list-view-sidebar__list-view-container>.document-outline:focus,.editor-list-view-sidebar__list-view-container>.document-outline:focus-within{scrollbar-color:#949494 transparent}@media (hover: none){.editor-list-view-sidebar__list-view-panel-content,.editor-list-view-sidebar__list-view-container>.document-outline{scrollbar-color:#949494 transparent}}.editor-list-view-sidebar__list-view-container{display:flex;flex-direction:column;height:100%}.editor-list-view-sidebar__tab-panel{height:100%}.editor-list-view-sidebar__outline{display:flex;flex-direction:column;gap:8px;border-bottom:1px solid #ddd;padding:16px}.editor-list-view-sidebar__outline>div>span:first-child{width:90px;display:inline-block}.editor-list-view-sidebar__outline>div>span{font-size:12px;line-height:1.4;color:#757575}.editor-post-parent__panel,.editor-post-order__panel{padding-top:8px}.editor-post-parent__panel .editor-post-panel__row-control>div,.editor-post-order__panel .editor-post-panel__row-control>div{width:100%}.editor-post-parent__panel-dialog .editor-post-parent,.editor-post-parent__panel-dialog .editor-post-order,.editor-post-order__panel-dialog .editor-post-parent,.editor-post-order__panel-dialog .editor-post-order{margin:8px}.editor-post-parent__panel-dialog .components-popover__content,.editor-post-order__panel-dialog .components-popover__content{min-width:320px}.editor-post-author__panel{padding-top:8px}.editor-post-author__panel .editor-post-panel__row-control>div{width:100%}.editor-post-author__panel-dialog .editor-post-author{min-width:248px;margin:8px}.editor-action-modal{z-index:1000001}.editor-post-card-panel__content{flex-grow:1}.editor-post-card-panel__title{width:100%}.editor-post-card-panel__title.editor-post-card-panel__title{margin:0;padding:2px 0;display:flex;align-items:center;flex-wrap:wrap;column-gap:8px;row-gap:4px;word-break:break-word}.editor-post-card-panel__icon{flex:0 0 24px;width:24px;height:24px}.editor-post-card-panel__header{display:flex;justify-content:space-between}.editor-post-card-panel.has-description .editor-post-card-panel__header{margin-bottom:8px}.editor-post-card-panel__icon.is-sync{fill:var(--wp-block-synced-color)}.editor-post-card-panel__icon.is-sync+.editor-post-card-panel__title{color:var(--wp-block-synced-color)}.editor-post-card-panel__title-badge{background:#f0f0f0;color:#757575;padding:0 4px;border-radius:2px;font-size:12px;font-weight:400;flex-shrink:0;line-height:20px;display:inline-block}.editor-post-content-information{color:#757575}.editor-post-content-information .components-text{color:inherit}.editor-post-discussion__panel-dialog .editor-post-discussion{min-width:248px;margin:8px}.editor-post-discussion__panel-toggle .components-text{color:inherit}.editor-post-discussion__panel-dialog .components-popover__content{min-width:320px}.editor-post-excerpt__textarea{width:100%;margin-bottom:10px}.editor-post-excerpt__dropdown__content .components-popover__content{min-width:320px;padding:16px}.editor-post-featured-image{padding:0}.editor-post-featured-image .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.editor-post-featured-image__container{position:relative}.editor-post-featured-image__container:hover .editor-post-featured-image__actions,.editor-post-featured-image__container:focus .editor-post-featured-image__actions,.editor-post-featured-image__container:focus-within .editor-post-featured-image__actions{opacity:1}.editor-post-featured-image__container .components-drop-zone__content{border-radius:2px}.editor-post-featured-image__container:has(.editor-post-featured-image__toggle) .components-drop-zone .components-drop-zone__content-inner{display:flex;align-items:center;gap:8px}.editor-post-featured-image__container:has(.editor-post-featured-image__toggle) .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}.editor-post-featured-image__toggle,.editor-post-featured-image__preview{width:100%;padding:0;transition:all .1s ease-out;box-shadow:0 0 0 0 var(--wp-admin-theme-color);overflow:hidden;outline-offset:-1px;min-height:40px;display:flex;justify-content:center}@media (prefers-reduced-motion: reduce){.editor-post-featured-image__toggle,.editor-post-featured-image__preview{transition-duration:0s;transition-delay:0s}}.editor-post-featured-image__preview{height:auto;outline:1px solid rgba(0,0,0,.1)}.editor-post-featured-image__preview .editor-post-featured-image__preview-image{object-fit:cover;width:100%;object-position:50% 50%;aspect-ratio:2/1}.editor-post-featured-image__toggle{height:100%;line-height:20px;padding:8px 0;text-align:center;box-shadow:inset 0 0 0 1px #ccc}.editor-post-featured-image__actions{bottom:0;opacity:0;padding:8px;position:absolute;transition:opacity 50ms ease-out}@media (prefers-reduced-motion: reduce){.editor-post-featured-image__actions{transition-duration:0s;transition-delay:0s}}.editor-post-featured-image__action{-webkit-backdrop-filter:blur(16px) saturate(180%);backdrop-filter:blur(16px) saturate(180%);background:#ffffffbf;flex-grow:1;justify-content:center}[class].editor-post-format__suggestion{margin:4px 0 0}.editor-post-format__dialog .editor-post-format__dialog-content{min-width:248px;margin:8px}.editor-post-last-edited-panel{color:#757575}.editor-post-last-edited-panel .components-text{color:inherit}.editor-post-last-revision__title{width:100%;font-weight:500}.editor-post-last-revision__title.components-button.has-icon{height:100%;justify-content:space-between}.editor-post-last-revision__title.components-button.has-icon:hover,.editor-post-last-revision__title.components-button.has-icon:active{background:#f0f0f0}.editor-post-last-revision__title.components-button.has-icon:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);border-radius:0}.components-panel__body.is-opened.editor-post-last-revision__panel{padding:0;height:48px}.components-panel__body.is-opened.editor-post-last-revision__panel .editor-post-last-revision__title.components-button.components-button{padding:16px}.editor-private-post-last-revision__button{display:inline-block}.editor-post-locked-modal__buttons{margin-top:24px}.editor-post-locked-modal__avatar{border-radius:50%;margin-top:16px;min-width:initial!important}.editor-post-panel__row{width:100%;min-height:32px;justify-content:flex-start!important;align-items:flex-start!important}.editor-post-panel__row-label{width:38%;flex-shrink:0;min-height:32px;display:flex;align-items:center;padding:6px 0;line-height:20px;-webkit-hyphens:auto;hyphens:auto}.editor-post-panel__row-control{flex-grow:1;min-height:32px;display:flex;align-items:center}.editor-post-panel__row-control .components-button{max-width:100%;text-align:left;white-space:normal;text-wrap:balance;text-wrap:pretty;min-height:32px}.editor-post-panel__row-control .components-dropdown{max-width:100%}.editor-post-panel__section{padding:16px}.editor-post-publish-panel__content{min-height:calc(100% - 144px)}.editor-post-publish-panel__content>.components-spinner{display:block;margin:100px auto 0}.editor-post-publish-panel__header{background:#fff;padding-left:16px;padding-right:16px;height:61px;border-bottom:1px solid #ddd;display:flex;align-items:center;align-content:space-between}.editor-post-publish-panel__header .components-button{width:100%;justify-content:center}.editor-post-publish-panel__header .has-icon{margin-left:auto;width:auto}.components-site-card{display:flex;align-items:center;margin:16px 0}.components-site-icon{border:none;border-radius:2px;margin-right:12px;flex-shrink:0;height:36px;width:36px}.components-site-name{display:block;font-size:14px}.components-site-home{display:block;color:#757575;font-size:12px;word-break:break-word}.editor-post-publish-panel__header-publish-button,.editor-post-publish-panel__header-cancel-button{flex:1}@media (min-width: 480px){.editor-post-publish-panel__header-publish-button,.editor-post-publish-panel__header-cancel-button{max-width:160px}}.editor-post-publish-panel__header-publish-button{padding-right:4px;justify-content:center}.editor-post-publish-panel__header-cancel-button{padding-left:4px}.editor-post-publish-panel__header-published{flex-grow:1}.editor-post-publish-panel__footer{padding:16px}.components-button.editor-post-publish-panel__toggle.is-primary{display:inline-flex;align-items:center}.components-button.editor-post-publish-panel__toggle.is-primary.is-busy .dashicon{display:none}.components-button.editor-post-publish-panel__toggle.is-primary .dashicon{margin-right:-4px}.editor-post-publish-panel__link{font-weight:400;padding-left:4px}.editor-post-publish-panel__prepublish{padding:16px}.editor-post-publish-panel__prepublish strong{color:#1e1e1e}.editor-post-publish-panel__prepublish .components-panel__body{background:#fff;margin-left:-16px;margin-right:-16px}.editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend{display:none}.editor-post-publish-panel__prepublish .components-panel__body-title .components-button{align-items:flex-start;text-wrap:balance;text-wrap:pretty}.post-publish-panel__postpublish .components-panel__body{border-bottom:1px solid #e0e0e0;border-top:none}.post-publish-panel__postpublish-buttons{display:flex;align-content:space-between;flex-wrap:wrap;gap:16px}.post-publish-panel__postpublish-buttons .components-button{justify-content:center;flex:1}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address-container{display:flex;align-items:flex-end;margin-bottom:16px}.post-publish-panel__postpublish-post-address-container .post-publish-panel__postpublish-post-address{flex:1}.post-publish-panel__postpublish-post-address-container input[readonly]{padding:12px;background:#f0f0f0;border-color:#ccc;overflow:hidden;text-overflow:ellipsis;height:36px}.post-publish-panel__postpublish-post-address__copy-button-wrap{flex-shrink:0;margin-left:16px}.post-publish-panel__postpublish-header{font-weight:500}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}@media screen and (max-width: 782px){.post-publish-panel__postpublish-post-address__button-wrap .components-button{height:40px}}.editor-post-publish-panel{position:fixed;z-index:100001;background:#fff;inset:46px 0 0;overflow:auto}@media (min-width: 782px){.editor-post-publish-panel{z-index:99998;top:32px;left:auto;width:281px;border-left:1px solid #ddd;transform:translate(100%);animation:editor-post-publish-panel__slide-in-animation .1s forwards}}@media (min-width: 782px) and (prefers-reduced-motion: reduce){.editor-post-publish-panel{animation-duration:1ms;animation-delay:0s}}@media (min-width: 782px){body.is-fullscreen-mode .editor-post-publish-panel{top:0}}@media (min-width: 782px){[role=region]:focus .editor-post-publish-panel{transform:translate(0)}}@keyframes editor-post-publish-panel__slide-in-animation{to{transform:translate(0)}}.editor-post-saved-state{display:flex;align-items:center;width:28px;padding:12px 4px;color:#757575;overflow:hidden;white-space:nowrap}.editor-post-saved-state.is-saving[aria-disabled=true],.editor-post-saved-state.is-saving[aria-disabled=true]:hover,.editor-post-saved-state.is-saved[aria-disabled=true],.editor-post-saved-state.is-saved[aria-disabled=true]:hover{background:transparent;color:#757575}.editor-post-saved-state svg{display:inline-block;flex:0 0 auto;fill:currentColor;margin-right:8px}@media (min-width: 600px){.editor-post-saved-state{width:auto;padding:8px 12px;text-indent:inherit}.editor-post-saved-state svg{margin-right:0}}.editor-post-save-draft.has-text.has-icon svg{margin-right:0}.editor-post-schedule__panel-dropdown{width:100%}.editor-post-schedule__dialog .components-popover__content{min-width:320px;padding:16px}.editor-post-slug{display:flex;flex-direction:column;align-items:stretch}.editor-post-status{max-width:100%}.editor-post-status.is-read-only{padding:6px 12px}.editor-change-status__password-fieldset,.editor-change-status__publish-date-wrapper{border-top:1px solid #e0e0e0;padding-top:16px}.editor-change-status__content .components-popover__content{min-width:320px;padding:16px}.editor-change-status__content .editor-change-status__password-legend{padding:0;margin-bottom:8px}.editor-change-status__content p.components-base-control__help:has(.components-checkbox-control__help){margin-top:4px}.editor-post-sticky__checkbox-control{border-top:1px solid #e0e0e0;padding-top:16px}.editor-post-sync-status__value{padding:6px 0 6px 12px}.editor-post-taxonomies__hierarchical-terms-list{max-height:14em;overflow:auto;margin-left:-6px;padding-left:6px;margin-top:-6px;padding-top:6px}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-choice:last-child{margin-bottom:4px}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-top:8px;margin-left:16px}.editor-post-taxonomies__flat-term-most-used .editor-post-taxonomies__flat-term-most-used-label{margin-bottom:4px}.editor-post-taxonomies__flat-term-most-used-list{margin:0}.editor-post-taxonomies__flat-term-most-used-list li{display:inline-block;margin-right:8px}.editor-post-taxonomies__flat-term-most-used-list .components-button{font-size:12px}.editor-post-template__swap-template-modal{z-index:1000001}.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px;padding-top:2px}@media (min-width: 782px){.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width: 1280px){.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list{column-count:4}}.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.editor-post-template__dropdown .components-popover__content{min-width:240px}.editor-post-template__dropdown .components-button.is-pressed,.editor-post-template__dropdown .components-button.is-pressed:hover{background:inherit;color:inherit}@media (min-width: 782px){.editor-post-template__create-form{width:320px}}.editor-post-template__classic-theme-dropdown{padding:8px}textarea.editor-post-text-editor{border:1px solid #949494;border-radius:0;display:block;margin:0;width:100%;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;line-height:2.4;min-height:200px;transition:border .1s ease-out,box-shadow .1s linear;padding:16px;font-size:16px!important}@media (prefers-reduced-motion: reduce){textarea.editor-post-text-editor{transition-duration:0s;transition-delay:0s}}@media (min-width: 600px){textarea.editor-post-text-editor{padding:24px}}@media (min-width: 600px){textarea.editor-post-text-editor{font-size:15px!important}}textarea.editor-post-text-editor:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);position:relative}textarea.editor-post-text-editor::-webkit-input-placeholder{color:#1e1e1e9e}textarea.editor-post-text-editor::-moz-placeholder{color:#1e1e1e9e;opacity:1}textarea.editor-post-text-editor:-ms-input-placeholder{color:#1e1e1e9e}.editor-post-title.is-raw-text{margin-bottom:24px;margin-top:2px;max-width:none}.editor-post-url__panel-dropdown{width:100%}.editor-post-url__panel-dialog .editor-post-url{min-width:248px;margin:8px}.editor-post-url__link{direction:ltr;word-break:break-word;margin-top:4px;color:#757575}.editor-post-url__link-slug{font-weight:600}.editor-post-url__input input.components-input-control__input{padding-inline-start:0!important}.editor-post-url__panel-toggle{word-break:break-word}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border:1px solid #949494;font-size:16px;line-height:normal;border:1px solid #1e1e1e;margin-right:12px;transition:none;border-radius:50%;width:24px;height:24px;min-width:24px;max-width:24px;position:relative;margin-top:2px}@media (prefers-reduced-motion: reduce){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{transition-duration:0s;transition-delay:0s}}@media (min-width: 600px){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{font-size:13px;line-height:normal}}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]::-webkit-input-placeholder{color:#1e1e1e9e}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]::-moz-placeholder{opacity:1;color:#1e1e1e9e}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:-ms-input-placeholder{color:#1e1e1e9e}@media (min-width: 600px){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{height:16px;width:16px;min-width:16px;max-width:16px}}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked:before{box-sizing:inherit;width:12px;height:12px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;background-color:#fff;border:4px solid #fff}@media (min-width: 600px){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked:before{width:8px;height:8px}}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked{background:var(--wp-admin-theme-color);border:none}.editor-post-visibility__fieldset .editor-post-visibility__info{color:#757575;margin-left:36px;margin-top:.5em}@media (min-width: 600px){.editor-post-visibility__fieldset .editor-post-visibility__info{margin-left:28px}}.editor-post-visibility__fieldset .editor-post-visibility__choice:last-child .editor-post-visibility__info{margin-bottom:0}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #949494;font-size:16px;line-height:normal;margin-left:32px;width:calc(100% - 32px)}@media (prefers-reduced-motion: reduce){.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]{transition-duration:0s;transition-delay:0s}}@media (min-width: 600px){.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]{font-size:13px;line-height:normal}}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]::-webkit-input-placeholder{color:#1e1e1e9e}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]::-moz-placeholder{opacity:1;color:#1e1e1e9e}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]:-ms-input-placeholder{color:#1e1e1e9e}.editor-posts-per-page-dropdown__content .components-popover__content{min-width:320px;padding:16px}.editor-post-trash.components-button{flex-grow:1;justify-content:center}.editor-preview-dropdown .editor-preview-dropdown__toggle.has-icon.has-text{padding-right:4px;padding-left:6px}.editor-preview-dropdown__button-external{width:100%;display:flex;justify-content:space-between}.editor-resizable-editor.is-resizable{overflow:visible;margin:0 auto}.editor-resizable-editor__resize-handle{position:absolute;top:0;bottom:0;padding:0;margin:auto 0;width:12px;appearance:none;cursor:ew-resize;outline:none;background:none;border-radius:9999px;border:0;height:100px}.editor-resizable-editor__resize-handle:after{position:absolute;inset:16px 0 16px 4px;content:"";width:4px;background-color:#75757566;border-radius:9999px}.editor-resizable-editor__resize-handle.is-left{left:-18px}.editor-resizable-editor__resize-handle.is-right{right:-18px}.editor-resizable-editor__resize-handle:hover,.editor-resizable-editor__resize-handle:focus,.editor-resizable-editor__resize-handle:active{opacity:1}.editor-resizable-editor__resize-handle:hover:after,.editor-resizable-editor__resize-handle:focus:after,.editor-resizable-editor__resize-handle:active:after{background-color:var(--wp-admin-theme-color)}.editor-layout__toggle-publish-panel,.editor-layout__toggle-sidebar-panel,.editor-layout__toggle-entities-saved-states-panel{z-index:100000;position:fixed!important;inset:-9999em 0 auto auto;box-sizing:border-box;width:280px;background-color:#fff;border:1px dotted #ddd;height:auto!important;padding:24px;display:flex;justify-content:center}.interface-interface-skeleton__actions:focus .editor-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .editor-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .editor-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .editor-layout__toggle-publish-panel{top:auto;bottom:0}.editor-start-page-options__modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width: 782px){.editor-start-page-options__modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width: 1280px){.editor-start-page-options__modal-content .block-editor-block-patterns-list{column-count:4}}.editor-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column;margin-bottom:24px}.editor-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{min-height:100px}.editor-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__content{width:100%}.editor-start-template-options__modal .editor-start-template-options__modal__actions{position:absolute;bottom:0;width:100%;height:92px;background-color:#fff;margin-left:-32px;margin-right:-32px;padding-left:32px;padding-right:32px;border-top:1px solid #ddd;z-index:1}.editor-start-template-options__modal .block-editor-block-patterns-list{padding-bottom:92px}.editor-start-template-options__modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width: 782px){.editor-start-template-options__modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width: 1280px){.editor-start-template-options__modal-content .block-editor-block-patterns-list{column-count:4}}.editor-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.editor-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-patterns-list__item-title{display:none}.components-panel__header.editor-sidebar__panel-tabs{padding-left:0;padding-right:12px}.components-panel__header.editor-sidebar__panel-tabs .components-button.has-icon{padding:0;min-width:24px;height:24px}@media (min-width: 782px){.components-panel__header.editor-sidebar__panel-tabs .components-button.has-icon{display:flex}}.editor-post-summary .components-v-stack:empty{display:none}.editor-site-discussion-dropdown__content .components-popover__content{min-width:320px;padding:16px}.table-of-contents__popover.components-popover .components-popover__content{min-width:380px}.components-popover.table-of-contents__popover{z-index:99998}.table-of-contents__popover .components-popover__content{padding:16px}@media (min-width: 600px){.table-of-contents__popover .components-popover__content{max-height:calc(100vh - 120px);overflow-y:auto}}.table-of-contents__popover hr{margin:10px -16px 0}.table-of-contents__wrapper:focus:before{content:"";display:block;position:absolute;inset:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);pointer-events:none}.table-of-contents__counts{display:flex;flex-wrap:wrap;margin:-8px 0 0}.table-of-contents__count{flex-basis:33%;display:flex;flex-direction:column;font-size:13px;color:#1e1e1e;padding-right:8px;margin-bottom:0;margin-top:8px}.table-of-contents__count:nth-child(4n){padding-right:0}.table-of-contents__number,.table-of-contents__popover .word-count{font-size:21px;font-weight:400;line-height:30px;color:#1e1e1e}.table-of-contents__title{display:block;margin-top:20px;font-size:15px;font-weight:600}.editor-text-editor{position:relative;width:100%;background-color:#fff;flex-grow:1}.editor-text-editor .editor-post-title:not(.is-raw-text),.editor-text-editor .editor-post-title.is-raw-text textarea{max-width:none;line-height:1.4;font-family:Menlo,Consolas,monaco,monospace;font-size:2.5em;font-weight:400;border:1px solid #949494;border-radius:0;padding:16px}@media (min-width: 600px){.editor-text-editor .editor-post-title:not(.is-raw-text),.editor-text-editor .editor-post-title.is-raw-text textarea{padding:24px}}.editor-text-editor .editor-post-title:not(.is-raw-text):focus,.editor-text-editor .editor-post-title.is-raw-text textarea:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.editor-text-editor__body{width:100%;padding:0 12px 12px;max-width:1080px;margin-left:auto;margin-right:auto}@media (min-width: 960px){.editor-text-editor__body{padding:0 24px 24px}}.editor-text-editor__toolbar{position:sticky;z-index:1;top:0;left:0;right:0;display:flex;background:#fffc;padding:4px 12px}@media (min-width: 600px){.editor-text-editor__toolbar{padding:12px}}@media (min-width: 960px){.editor-text-editor__toolbar{padding:12px 24px}}.editor-text-editor__toolbar h2{line-height:36px;margin:0 auto 0 0;font-size:13px;color:#1e1e1e}.editor-visual-editor{position:relative;display:flex;background-color:#ddd;align-items:center}.editor-visual-editor.is-resizable{max-height:100%}.editor-visual-editor.has-padding{padding:24px 24px 0}.editor-visual-editor.is-iframed{overflow:hidden}.editor-visual-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.editor-visual-editor .components-button.is-tertiary,.editor-visual-editor .components-button.has-icon{padding:6px}.wp-block-archives{box-sizing:border-box}.wp-block-archives-dropdown label{display:block}.wp-block-avatar{box-sizing:border-box;line-height:0}.wp-block-avatar img{box-sizing:border-box}.wp-block-avatar.aligncenter{text-align:center}.wp-block-audio{box-sizing:border-box}.wp-block-audio :where(figcaption){margin-top:.5em;margin-bottom:1em}.wp-block-audio audio{width:100%;min-width:300px}.wp-block-button__link{cursor:pointer;display:inline-block;text-align:center;word-break:break-word;box-sizing:border-box}.wp-block-button__link.aligncenter{text-align:center}.wp-block-button__link.alignright{text-align:right}:where(.wp-block-button__link){box-shadow:none;text-decoration:none;border-radius:9999px;padding:calc(.667em + 2px) calc(1.333em + 2px)}.wp-block-button[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons>.wp-block-button.has-custom-width{max-width:none}.wp-block-buttons>.wp-block-button.has-custom-width .wp-block-button__link{width:100%}.wp-block-buttons>.wp-block-button.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-buttons>.wp-block-button.wp-block-button__width-25{width:calc(25% - (var(--wp--style--block-gap, .5em) * .75))}.wp-block-buttons>.wp-block-button.wp-block-button__width-50{width:calc(50% - (var(--wp--style--block-gap, .5em) * .5))}.wp-block-buttons>.wp-block-button.wp-block-button__width-75{width:calc(75% - (var(--wp--style--block-gap, .5em) * .25))}.wp-block-buttons>.wp-block-button.wp-block-button__width-100{width:100%;flex-basis:100%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-25{width:25%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-50{width:50%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-75{width:75%}.wp-block-button.is-style-squared,.wp-block-button__link.wp-block-button.is-style-squared{border-radius:0}.wp-block-button.no-border-radius,.wp-block-button__link.no-border-radius{border-radius:0!important}:root :where(.wp-block-button.is-style-outline>.wp-block-button__link),:root :where(.wp-block-button .wp-block-button__link.is-style-outline){border:2px solid currentColor;padding:.667em 1.333em}:root :where(.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-text-color)),:root :where(.wp-block-button .wp-block-button__link.is-style-outline:not(.has-text-color)){color:currentColor}:root :where(.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background)),:root :where(.wp-block-button .wp-block-button__link.is-style-outline:not(.has-background)){background-color:transparent;background-image:none}.wp-block-buttons.is-vertical{flex-direction:column}.wp-block-buttons.is-vertical>.wp-block-button:last-child{margin-bottom:0}.wp-block-buttons>.wp-block-button{display:inline-block;margin:0}.wp-block-buttons.is-content-justification-left{justify-content:flex-start}.wp-block-buttons.is-content-justification-left.is-vertical{align-items:flex-start}.wp-block-buttons.is-content-justification-center{justify-content:center}.wp-block-buttons.is-content-justification-center.is-vertical{align-items:center}.wp-block-buttons.is-content-justification-right{justify-content:flex-end}.wp-block-buttons.is-content-justification-right.is-vertical{align-items:flex-end}.wp-block-buttons.is-content-justification-space-between{justify-content:space-between}.wp-block-buttons.aligncenter{text-align:center}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block-button.aligncenter{margin-left:auto;margin-right:auto;width:100%}.wp-block-buttons[style*=text-decoration] .wp-block-button,.wp-block-buttons[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-button.aligncenter,.wp-block-calendar{text-align:center}.wp-block-calendar th,.wp-block-calendar td{padding:.25em;border:1px solid}.wp-block-calendar th{font-weight:400}.wp-block-calendar caption{background-color:inherit}.wp-block-calendar table{width:100%;border-collapse:collapse}.wp-block-calendar table:where(:not(.has-text-color)){color:#40464d}.wp-block-calendar table:where(:not(.has-text-color)) th,.wp-block-calendar table:where(:not(.has-text-color)) td{border-color:#ddd}.wp-block-calendar table.has-background th{background-color:inherit}.wp-block-calendar table.has-text-color th{color:inherit}:where(.wp-block-calendar table:not(.has-background) th){background:#ddd}.wp-block-categories{box-sizing:border-box}.wp-block-categories.alignleft{margin-right:2em}.wp-block-categories.alignright{margin-left:2em}.wp-block-categories.wp-block-categories-dropdown.aligncenter{text-align:center}.wp-block-categories .wp-block-categories__label{width:100%;display:block}.wp-block-code{box-sizing:border-box}.wp-block-code code{display:block;font-family:inherit;overflow-wrap:break-word;white-space:pre-wrap}.wp-block-columns{display:flex;box-sizing:border-box;flex-wrap:wrap!important;align-items:initial!important}@media (min-width: 782px){.wp-block-columns{flex-wrap:nowrap!important}}.wp-block-columns.are-vertically-aligned-top{align-items:flex-start}.wp-block-columns.are-vertically-aligned-center{align-items:center}.wp-block-columns.are-vertically-aligned-bottom{align-items:flex-end}@media (max-width: 781px){.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:100%!important}}@media (min-width: 782px){.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column[style*=flex-basis]{flex-grow:0}}.wp-block-columns.is-not-stacked-on-mobile{flex-wrap:nowrap!important}.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column[style*=flex-basis]{flex-grow:0}:where(.wp-block-columns){margin-bottom:1.75em}:where(.wp-block-columns.has-background){padding:1.25em 2.375em}.wp-block-column{flex-grow:1;min-width:0;word-break:break-word;overflow-wrap:break-word}.wp-block-column.is-vertically-aligned-top{align-self:flex-start}.wp-block-column.is-vertically-aligned-center{align-self:center}.wp-block-column.is-vertically-aligned-bottom{align-self:flex-end}.wp-block-column.is-vertically-aligned-stretch{align-self:stretch}.wp-block-column.is-vertically-aligned-top,.wp-block-column.is-vertically-aligned-center,.wp-block-column.is-vertically-aligned-bottom{width:100%}.wp-block-post-comments{box-sizing:border-box}.wp-block-post-comments .alignleft{float:left}.wp-block-post-comments .alignright{float:right}.wp-block-post-comments .navigation:after{content:"";display:table;clear:both}.wp-block-post-comments .commentlist{clear:both;list-style:none;margin:0;padding:0}.wp-block-post-comments .commentlist .comment{min-height:2.25em;padding-left:3.25em}.wp-block-post-comments .commentlist .comment p{font-size:1em;line-height:1.8;margin:1em 0}.wp-block-post-comments .commentlist .children{list-style:none;margin:0;padding:0}.wp-block-post-comments .comment-author{line-height:1.5}.wp-block-post-comments .comment-author .avatar{border-radius:1.5em;display:block;float:left;height:2.5em;margin-top:.5em;margin-right:.75em;width:2.5em}.wp-block-post-comments .comment-author cite{font-style:normal}.wp-block-post-comments .comment-meta{font-size:.875em;line-height:1.5}.wp-block-post-comments .comment-meta b{font-weight:400}.wp-block-post-comments .comment-meta .comment-awaiting-moderation{margin-top:1em;margin-bottom:1em;display:block}.wp-block-post-comments .comment-body .commentmetadata{font-size:.875em}.wp-block-post-comments .comment-form-comment label,.wp-block-post-comments .comment-form-author label,.wp-block-post-comments .comment-form-email label,.wp-block-post-comments .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments .comment-form textarea,.wp-block-post-comments .comment-form input:not([type=submit]):not([type=checkbox]){display:block;box-sizing:border-box;width:100%}.wp-block-post-comments .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments .comment-reply-title{margin-bottom:0}.wp-block-post-comments .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium, smaller);margin-left:.5em}.wp-block-post-comments .reply{font-size:.875em;margin-bottom:1.4em}.wp-block-post-comments textarea,.wp-block-post-comments input:not([type=submit]){border:1px solid #949494;font-size:1em;font-family:inherit}.wp-block-post-comments textarea,.wp-block-post-comments input:not([type=submit]):not([type=checkbox]){padding:calc(.667em + 2px)}.wp-block-comments-pagination>.wp-block-comments-pagination-next,.wp-block-comments-pagination>.wp-block-comments-pagination-previous,.wp-block-comments-pagination>.wp-block-comments-pagination-numbers{margin-right:.5em;margin-bottom:.5em}.wp-block-comments-pagination .wp-block-comments-pagination-previous-arrow{margin-right:1ch;display:inline-block}.wp-block-comments-pagination .wp-block-comments-pagination-previous-arrow:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-comments-pagination .wp-block-comments-pagination-next-arrow{margin-left:1ch;display:inline-block}.wp-block-comments-pagination .wp-block-comments-pagination-next-arrow:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-comments-pagination.aligncenter{justify-content:center}.wp-block-comment-template{box-sizing:border-box;margin-bottom:0;max-width:100%;list-style:none;padding:0}.wp-block-comment-template li{clear:both}.wp-block-comment-template ol{margin-bottom:0;max-width:100%;list-style:none;padding-left:2rem}.wp-block-comment-template.alignleft{float:left}.wp-block-comment-template.aligncenter{margin-left:auto;margin-right:auto;width:-moz-fit-content;width:fit-content}.wp-block-comment-template.alignright{float:right}.wp-block-comment-date{box-sizing:border-box}.comment-awaiting-moderation{display:block;font-size:.875em;line-height:1.5}.wp-block-comment-content,.wp-block-comment-author-name,.wp-block-comment-edit-link,.wp-block-comment-reply-link{box-sizing:border-box}.wp-block-cover-image,.wp-block-cover{min-height:430px;padding:1em;position:relative;background-position:center center;display:flex;justify-content:center;align-items:center;overflow:hidden;overflow:clip;box-sizing:border-box}.wp-block-cover-image.has-background-dim:not([class*=-background-color]),.wp-block-cover-image .has-background-dim:not([class*=-background-color]),.wp-block-cover.has-background-dim:not([class*=-background-color]),.wp-block-cover .has-background-dim:not([class*=-background-color]){background-color:#000}.wp-block-cover-image .has-background-dim.has-background-gradient,.wp-block-cover .has-background-dim.has-background-gradient{background-color:transparent}.wp-block-cover-image.has-background-dim:before,.wp-block-cover.has-background-dim:before{content:"";background-color:inherit}.wp-block-cover-image.has-background-dim:not(.has-background-gradient):before,.wp-block-cover-image .wp-block-cover__background,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim:not(.has-background-gradient):before,.wp-block-cover .wp-block-cover__background,.wp-block-cover .wp-block-cover__gradient-background{position:absolute;inset:0;z-index:1;opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient):before,.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background{opacity:.1}.wp-block-cover-image.has-background-dim.has-background-dim-20:not(.has-background-gradient):before,.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-20:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background{opacity:.2}.wp-block-cover-image.has-background-dim.has-background-dim-30:not(.has-background-gradient):before,.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-30:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background{opacity:.3}.wp-block-cover-image.has-background-dim.has-background-dim-40:not(.has-background-gradient):before,.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-40:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background{opacity:.4}.wp-block-cover-image.has-background-dim.has-background-dim-50:not(.has-background-gradient):before,.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-50:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-60:not(.has-background-gradient):before,.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-60:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background{opacity:.6}.wp-block-cover-image.has-background-dim.has-background-dim-70:not(.has-background-gradient):before,.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-70:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background{opacity:.7}.wp-block-cover-image.has-background-dim.has-background-dim-80:not(.has-background-gradient):before,.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-80:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background{opacity:.8}.wp-block-cover-image.has-background-dim.has-background-dim-90:not(.has-background-gradient):before,.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-90:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background{opacity:.9}.wp-block-cover-image.has-background-dim.has-background-dim-100:not(.has-background-gradient):before,.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background{opacity:1}.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-0,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0,.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-0{opacity:0}.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-10,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10,.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-10{opacity:.1}.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-20,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20,.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-20{opacity:.2}.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-30,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30,.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-30{opacity:.3}.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-40,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40,.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-40{opacity:.4}.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-50,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50,.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-50{opacity:.5}.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-60,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60,.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-60{opacity:.6}.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-70,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70,.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-70{opacity:.7}.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-80,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80,.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-80{opacity:.8}.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-90,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90,.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-90{opacity:.9}.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-100,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100,.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-100{opacity:1}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.alignleft,.wp-block-cover.alignright{max-width:420px;width:100%}.wp-block-cover-image.aligncenter,.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.aligncenter,.wp-block-cover.alignleft,.wp-block-cover.alignright{display:flex}.wp-block-cover-image .wp-block-cover__inner-container,.wp-block-cover .wp-block-cover__inner-container{width:100%;z-index:1;color:inherit}.wp-block-cover-image.is-position-top-left,.wp-block-cover.is-position-top-left{align-items:flex-start;justify-content:flex-start}.wp-block-cover-image.is-position-top-center,.wp-block-cover.is-position-top-center{align-items:flex-start;justify-content:center}.wp-block-cover-image.is-position-top-right,.wp-block-cover.is-position-top-right{align-items:flex-start;justify-content:flex-end}.wp-block-cover-image.is-position-center-left,.wp-block-cover.is-position-center-left{align-items:center;justify-content:flex-start}.wp-block-cover-image.is-position-center-center,.wp-block-cover.is-position-center-center{align-items:center;justify-content:center}.wp-block-cover-image.is-position-center-right,.wp-block-cover.is-position-center-right{align-items:center;justify-content:flex-end}.wp-block-cover-image.is-position-bottom-left,.wp-block-cover.is-position-bottom-left{align-items:flex-end;justify-content:flex-start}.wp-block-cover-image.is-position-bottom-center,.wp-block-cover.is-position-bottom-center{align-items:flex-end;justify-content:center}.wp-block-cover-image.is-position-bottom-right,.wp-block-cover.is-position-bottom-right{align-items:flex-end;justify-content:flex-end}.wp-block-cover-image.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container{margin:0}.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-top-right .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-center-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-center-right .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-bottom-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-top-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-center-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-center-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-bottom-right .wp-block-cover__inner-container{margin:0;width:auto}.wp-block-cover-image .wp-block-cover__image-background,.wp-block-cover-image video.wp-block-cover__video-background,.wp-block-cover .wp-block-cover__image-background,.wp-block-cover video.wp-block-cover__video-background{position:absolute;inset:0;margin:0;padding:0;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;outline:none;border:none;box-shadow:none}.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:fixed;background-size:cover;background-repeat:no-repeat}@supports (-webkit-touch-callout: inherit){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:scroll}}@media (prefers-reduced-motion: reduce){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:scroll}}.wp-block-cover-image.is-repeated,.wp-block-cover.is-repeated,.wp-block-cover__image-background.is-repeated,video.wp-block-cover__video-background.is-repeated{background-repeat:repeat;background-size:auto}.wp-block-cover__video-background,.wp-block-cover__image-background{z-index:0}section.wp-block-cover-image h2,.wp-block-cover-image-text,.wp-block-cover-text{color:#fff}section.wp-block-cover-image h2 a,section.wp-block-cover-image h2 a:hover,section.wp-block-cover-image h2 a:focus,section.wp-block-cover-image h2 a:active,.wp-block-cover-image-text a,.wp-block-cover-image-text a:hover,.wp-block-cover-image-text a:focus,.wp-block-cover-image-text a:active,.wp-block-cover-text a,.wp-block-cover-text a:hover,.wp-block-cover-text a:focus,.wp-block-cover-text a:active{color:#fff}.wp-block-cover-image .wp-block-cover.has-left-content{justify-content:flex-start}.wp-block-cover-image .wp-block-cover.has-right-content{justify-content:flex-end}section.wp-block-cover-image.has-left-content>h2,.wp-block-cover-image.has-left-content .wp-block-cover-image-text,.wp-block-cover.has-left-content .wp-block-cover-text{margin-left:0;text-align:left}section.wp-block-cover-image.has-right-content>h2,.wp-block-cover-image.has-right-content .wp-block-cover-image-text,.wp-block-cover.has-right-content .wp-block-cover-text{margin-right:0;text-align:right}section.wp-block-cover-image>h2,.wp-block-cover-image .wp-block-cover-image-text,.wp-block-cover .wp-block-cover-text{font-size:2em;line-height:1.25;z-index:1;margin-bottom:0;max-width:840px;padding:.44em;text-align:center}:where(.wp-block-cover:not(.has-text-color)),:where(.wp-block-cover-image:not(.has-text-color)){color:#fff}:where(.wp-block-cover.is-light:not(.has-text-color)),:where(.wp-block-cover-image.is-light:not(.has-text-color)){color:#000}:root :where(.wp-block-cover p:not(.has-text-color)),:root :where(.wp-block-cover h1:not(.has-text-color)),:root :where(.wp-block-cover h2:not(.has-text-color)),:root :where(.wp-block-cover h3:not(.has-text-color)),:root :where(.wp-block-cover h4:not(.has-text-color)),:root :where(.wp-block-cover h5:not(.has-text-color)),:root :where(.wp-block-cover h6:not(.has-text-color)){color:inherit}.wp-block-details{box-sizing:border-box}.wp-block-details summary{cursor:pointer}.wp-block[data-align=left]>[data-type="core/embed"],.wp-block[data-align=right]>[data-type="core/embed"],.wp-block-embed.alignleft,.wp-block-embed.alignright{max-width:360px;width:100%}.wp-block[data-align=left]>[data-type="core/embed"] .wp-block-embed__wrapper,.wp-block[data-align=right]>[data-type="core/embed"] .wp-block-embed__wrapper,.wp-block-embed.alignleft .wp-block-embed__wrapper,.wp-block-embed.alignright .wp-block-embed__wrapper{min-width:280px}.wp-block-cover .wp-block-embed{min-width:320px;min-height:240px}.wp-block-embed{overflow-wrap:break-word}.wp-block-embed :where(figcaption){margin-top:.5em;margin-bottom:1em}.wp-block-embed iframe{max-width:100%}.wp-block-embed__wrapper{position:relative}.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper:before{content:"";display:block;padding-top:50%}.wp-embed-responsive .wp-has-aspect-ratio iframe{position:absolute;inset:0;height:100%;width:100%}.wp-embed-responsive .wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{padding-top:42.85%}.wp-embed-responsive .wp-embed-aspect-18-9 .wp-block-embed__wrapper:before{padding-top:50%}.wp-embed-responsive .wp-embed-aspect-16-9 .wp-block-embed__wrapper:before{padding-top:56.25%}.wp-embed-responsive .wp-embed-aspect-4-3 .wp-block-embed__wrapper:before{padding-top:75%}.wp-embed-responsive .wp-embed-aspect-1-1 .wp-block-embed__wrapper:before{padding-top:100%}.wp-embed-responsive .wp-embed-aspect-9-16 .wp-block-embed__wrapper:before{padding-top:177.77%}.wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%}.wp-block-file{box-sizing:border-box}.wp-block-file:not(.wp-element-button){font-size:.8em}.wp-block-file.aligncenter{text-align:center}.wp-block-file.alignright{text-align:right}.wp-block-file *+.wp-block-file__button{margin-left:.75em}:where(.wp-block-file){margin-bottom:1.5em}.wp-block-file__embed{margin-bottom:1em}:where(.wp-block-file__button){border-radius:2em;padding:.5em 1em;display:inline-block}:where(.wp-block-file__button):is(a):hover,:where(.wp-block-file__button):is(a):visited,:where(.wp-block-file__button):is(a):focus,:where(.wp-block-file__button):is(a):active{box-shadow:none;color:#fff;opacity:.85;text-decoration:none}.wp-block-form-input__label{width:100%;display:flex;flex-direction:column;gap:.25em;margin-bottom:.5em}.wp-block-form-input__label.is-label-inline{flex-direction:row;gap:.5em;align-items:center}.wp-block-form-input__label.is-label-inline .wp-block-form-input__label-content{margin-bottom:.5em}.wp-block-form-input__label:has(input[type=checkbox]){width:-moz-fit-content;width:fit-content;flex-direction:row-reverse}.wp-block-form-input__label-content{width:-moz-fit-content;width:fit-content}.wp-block-form-input__input{padding:0 .5em;font-size:1em;margin-bottom:.5em}.wp-block-form-input__input[type=text],.wp-block-form-input__input[type=password],.wp-block-form-input__input[type=date],.wp-block-form-input__input[type=datetime],.wp-block-form-input__input[type=datetime-local],.wp-block-form-input__input[type=email],.wp-block-form-input__input[type=month],.wp-block-form-input__input[type=number],.wp-block-form-input__input[type=search],.wp-block-form-input__input[type=tel],.wp-block-form-input__input[type=time],.wp-block-form-input__input[type=url],.wp-block-form-input__input[type=week]{min-height:2em;line-height:2;border:1px solid}textarea.wp-block-form-input__input{min-height:10em}.wp-block-gallery:not(.has-nested-images),.blocks-gallery-grid:not(.has-nested-images){display:flex;flex-wrap:wrap;list-style-type:none;padding:0;margin:0}.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item{margin:0 1em 1em 0;display:flex;flex-grow:1;flex-direction:column;justify-content:center;position:relative;width:calc(50% - 1em)}.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item:nth-of-type(2n){margin-right:0}.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figure,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figure,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figure,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figure{margin:0;height:100%;display:flex;align-items:flex-end;justify-content:flex-start}.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item img,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image img,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item img{display:block;max-width:100%;height:auto;width:auto}.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption{position:absolute;bottom:0;width:100%;max-height:100%;overflow:auto;padding:3em .77em .7em;color:#fff;text-align:center;font-size:.8em;background:linear-gradient(0deg,rgba(0,0,0,.7) 0,rgba(0,0,0,.3) 70%,transparent);box-sizing:border-box;margin:0;z-index:2}.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption img,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption img,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption img{display:inline}.wp-block-gallery:not(.has-nested-images) figcaption,.blocks-gallery-grid:not(.has-nested-images) figcaption{flex-grow:1}.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-image a,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-image img,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-item a,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-item img,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-image a,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-image img,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-item a,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-item img{width:100%;height:100%;flex:1;object-fit:cover}.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item,.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-item{width:100%;margin-right:0}@media (min-width: 600px){.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-item,.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-item{width:calc(33.3333333333% - .6666666667em);margin-right:1em}.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-item,.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-item{width:calc(25% - .75em);margin-right:1em}.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-item,.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-item{width:calc(20% - .8em);margin-right:1em}.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-item,.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-item{width:calc(16.6666666667% - .8333333333em);margin-right:1em}.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-item,.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-item{width:calc(14.2857142857% - .8571428571em);margin-right:1em}.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-item,.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-item{width:calc(12.5% - .875em);margin-right:1em}.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image:nth-of-type(n),.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item:nth-of-type(n),.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image:nth-of-type(n),.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-item:nth-of-type(n){margin-right:0}.wp-block-gallery:not(.has-nested-images).columns-2 .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images).columns-2 .blocks-gallery-item:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images).columns-2 .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images).columns-2 .blocks-gallery-item:nth-of-type(2n){margin-right:0}.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-image:nth-of-type(3n),.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-item:nth-of-type(3n),.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-image:nth-of-type(3n),.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-item:nth-of-type(3n){margin-right:0}.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-image:nth-of-type(4n),.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-item:nth-of-type(4n),.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-image:nth-of-type(4n),.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-item:nth-of-type(4n){margin-right:0}.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-image:nth-of-type(5n),.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-item:nth-of-type(5n),.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-image:nth-of-type(5n),.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-item:nth-of-type(5n){margin-right:0}.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-image:nth-of-type(6n),.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-item:nth-of-type(6n),.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-image:nth-of-type(6n),.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-item:nth-of-type(6n){margin-right:0}.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-image:nth-of-type(7n),.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-item:nth-of-type(7n),.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-image:nth-of-type(7n),.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-item:nth-of-type(7n){margin-right:0}.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-image:nth-of-type(8n),.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-item:nth-of-type(8n),.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-image:nth-of-type(8n),.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-item:nth-of-type(8n){margin-right:0}}.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image:last-child,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item:last-child,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image:last-child,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item:last-child{margin-right:0}.wp-block-gallery:not(.has-nested-images).alignleft,.wp-block-gallery:not(.has-nested-images).alignright,.blocks-gallery-grid:not(.has-nested-images).alignleft,.blocks-gallery-grid:not(.has-nested-images).alignright{max-width:420px;width:100%}.wp-block-gallery:not(.has-nested-images).aligncenter .blocks-gallery-item figure,.blocks-gallery-grid:not(.has-nested-images).aligncenter .blocks-gallery-item figure{justify-content:center}.wp-block-gallery:not(.is-cropped) .blocks-gallery-item{align-self:flex-start}figure.wp-block-gallery.has-nested-images{align-items:normal}.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image){width:calc(50% - (var(--wp--style--unstable-gallery-gap, 16px) / 2));margin:0}.wp-block-gallery.has-nested-images figure.wp-block-image{display:flex;flex-grow:1;justify-content:center;position:relative;flex-direction:column;max-width:100%;box-sizing:border-box}.wp-block-gallery.has-nested-images figure.wp-block-image>div,.wp-block-gallery.has-nested-images figure.wp-block-image>a{margin:0;flex-direction:column;flex-grow:1}.wp-block-gallery.has-nested-images figure.wp-block-image img{display:block;height:auto;max-width:100%!important;width:auto}.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption):before,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{position:absolute;bottom:0;right:0;left:0;max-height:100%}.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption):before{content:"";height:100%;max-height:40%;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);-webkit-mask-image:linear-gradient(0deg,#000 20%,transparent 100%);mask-image:linear-gradient(0deg,#000 20%,transparent 100%)}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{color:#fff;text-shadow:0 0 1.5px #000;font-size:13px;margin:0;overflow:auto;padding:1em;text-align:center;box-sizing:border-box;scrollbar-width:thin;scrollbar-gutter:stable both-edges;scrollbar-color:transparent transparent;will-change:transform;background:linear-gradient(0deg,rgba(0,0,0,.4) 0%,transparent 100%)}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar{width:12px;height:12px}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar-track{background-color:transparent}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar-thumb{background-color:transparent;border-radius:8px;border:3px solid transparent;background-clip:padding-box}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:hover::-webkit-scrollbar-thumb,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus::-webkit-scrollbar-thumb,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus-within::-webkit-scrollbar-thumb{background-color:#fffc}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:hover,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus-within{scrollbar-color:rgba(255,255,255,.8) transparent}@media (hover: none){.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{scrollbar-color:rgba(255,255,255,.8) transparent}}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption img{display:inline}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption a{color:inherit}.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border img{box-sizing:border-box}.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded>div,.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded>a,.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border>div,.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border>a{flex:1 1 auto}.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded figcaption,.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border figcaption{flex:initial;background:none;color:inherit;margin:0;padding:10px 10px 9px;position:relative;text-shadow:none}.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded:before,.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border:before{content:none}.wp-block-gallery.has-nested-images figcaption{flex-grow:1;flex-basis:100%;text-align:center}.wp-block-gallery.has-nested-images:not(.is-cropped) figure.wp-block-image:not(#individual-image){margin-top:0;margin-bottom:auto}.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image){align-self:inherit}.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image)>div:not(.components-drop-zone),.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image)>a{display:flex}.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) a,.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img{width:100%;flex:1 0 0%;height:100%;object-fit:cover}.wp-block-gallery.has-nested-images.columns-1 figure.wp-block-image:not(#individual-image){width:100%}@media (min-width: 600px){.wp-block-gallery.has-nested-images.columns-3 figure.wp-block-image:not(#individual-image){width:calc(33.3333333333% - (var(--wp--style--unstable-gallery-gap, 16px) * .6666666667))}.wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image){width:calc(25% - (var(--wp--style--unstable-gallery-gap, 16px) * .75))}.wp-block-gallery.has-nested-images.columns-5 figure.wp-block-image:not(#individual-image){width:calc(20% - (var(--wp--style--unstable-gallery-gap, 16px) * .8))}.wp-block-gallery.has-nested-images.columns-6 figure.wp-block-image:not(#individual-image){width:calc(16.6666666667% - (var(--wp--style--unstable-gallery-gap, 16px) * .8333333333))}.wp-block-gallery.has-nested-images.columns-7 figure.wp-block-image:not(#individual-image){width:calc(14.2857142857% - (var(--wp--style--unstable-gallery-gap, 16px) * .8571428571))}.wp-block-gallery.has-nested-images.columns-8 figure.wp-block-image:not(#individual-image){width:calc(12.5% - (var(--wp--style--unstable-gallery-gap, 16px) * .875))}.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image){width:calc(33.33% - (var(--wp--style--unstable-gallery-gap, 16px) * .6666666667))}.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2),.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2)~figure.wp-block-image:not(#individual-image){width:calc(50% - (var(--wp--style--unstable-gallery-gap, 16px) * .5))}.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(1){width:100%}}.wp-block-gallery.has-nested-images.alignleft,.wp-block-gallery.has-nested-images.alignright{max-width:420px;width:100%}.wp-block-gallery.has-nested-images.aligncenter{justify-content:center}.wp-block-group{box-sizing:border-box}:where(.wp-block-group.wp-block-group-is-layout-constrained){position:relative}h1.has-background,h2.has-background,h3.has-background,h4.has-background,h5.has-background,h6.has-background{padding:1.25em 2.375em}h1.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h1.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h2.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h2.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h3.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h3.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h4.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h4.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h5.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h5.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h6.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h6.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]){rotate:180deg}.wp-block-image a{display:inline-block}.wp-block-image img{height:auto;max-width:100%;vertical-align:bottom;box-sizing:border-box}@media (prefers-reduced-motion: no-preference){.wp-block-image img.hide{visibility:hidden}.wp-block-image img.show{animation:show-content-image .4s}}.wp-block-image[style*=border-radius]>a,.wp-block-image[style*=border-radius] img{border-radius:inherit}.wp-block-image.has-custom-border img{box-sizing:border-box}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull a,.wp-block-image.alignwide a{width:100%}.wp-block-image.alignfull img,.wp-block-image.alignwide img{height:auto;width:100%}.wp-block-image.alignleft,.wp-block-image.alignright,.wp-block-image.aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image .aligncenter{display:table}.wp-block-image.alignleft>figcaption,.wp-block-image.alignright>figcaption,.wp-block-image.aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image .aligncenter>figcaption{display:table-caption;caption-side:bottom}.wp-block-image .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-image .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-image .aligncenter{margin-left:auto;margin-right:auto}.wp-block-image :where(figcaption){margin-top:.5em;margin-bottom:1em}.wp-block-image.is-style-circle-mask img{border-radius:9999px}@supports ((-webkit-mask-image: none) or (mask-image: none)) or (-webkit-mask-image: none){.wp-block-image.is-style-circle-mask img{-webkit-mask-image:url('data:image/svg+xml;utf8,');mask-image:url('data:image/svg+xml;utf8,');mask-mode:alpha;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:center;mask-position:center;border-radius:0}}:root :where(.wp-block-image.is-style-rounded img,.wp-block-image .is-style-rounded img){border-radius:9999px}.wp-block-image figure{margin:0}.wp-lightbox-container{position:relative;display:flex;flex-direction:column}.wp-lightbox-container img{cursor:zoom-in}.wp-lightbox-container img:hover+button{opacity:1}.wp-lightbox-container button{opacity:0;border:none;background-color:#5a5a5a40;-webkit-backdrop-filter:blur(16px) saturate(180%);backdrop-filter:blur(16px) saturate(180%);cursor:zoom-in;display:flex;justify-content:center;align-items:center;width:20px;height:20px;position:absolute;z-index:100;top:16px;right:16px;text-align:center;padding:0;border-radius:4px;transition:opacity .2s ease}.wp-lightbox-container button:focus-visible{outline:3px auto rgba(90,90,90,.25);outline:3px auto -webkit-focus-ring-color;outline-offset:3px}.wp-lightbox-container button:hover{cursor:pointer;opacity:1}.wp-lightbox-container button:focus{opacity:1}.wp-lightbox-container button:hover,.wp-lightbox-container button:focus,.wp-lightbox-container button:not(:hover):not(:active):not(.has-background){background-color:#5a5a5a40;border:none}.wp-lightbox-overlay{position:fixed;top:0;left:0;z-index:100000;overflow:hidden;width:100%;height:100vh;box-sizing:border-box;visibility:hidden;cursor:zoom-out}.wp-lightbox-overlay .close-button{position:absolute;top:calc(env(safe-area-inset-top) + 16px);right:calc(env(safe-area-inset-right) + 16px);padding:0;cursor:pointer;z-index:5000000;min-width:40px;min-height:40px;display:flex;align-items:center;justify-content:center}.wp-lightbox-overlay .close-button:hover,.wp-lightbox-overlay .close-button:focus,.wp-lightbox-overlay .close-button:not(:hover):not(:active):not(.has-background){background:none;border:none}.wp-lightbox-overlay .lightbox-image-container{position:absolute;overflow:hidden;top:50%;left:50%;transform-origin:top left;transform:translate(-50%,-50%);width:var(--wp--lightbox-container-width);height:var(--wp--lightbox-container-height);z-index:9999999999}.wp-lightbox-overlay .wp-block-image{position:relative;transform-origin:0 0;display:flex;width:100%;height:100%;justify-content:center;align-items:center;box-sizing:border-box;z-index:3000000;margin:0}.wp-lightbox-overlay .wp-block-image img{min-width:var(--wp--lightbox-image-width);min-height:var(--wp--lightbox-image-height);width:var(--wp--lightbox-image-width);height:var(--wp--lightbox-image-height)}.wp-lightbox-overlay .wp-block-image figcaption{display:none}.wp-lightbox-overlay button{border:none;background:none}.wp-lightbox-overlay .scrim{width:100%;height:100%;position:absolute;z-index:2000000;background-color:#fff;opacity:.9}.wp-lightbox-overlay.active{visibility:visible;animation:both turn-on-visibility .25s}.wp-lightbox-overlay.active img{animation:both turn-on-visibility .35s}.wp-lightbox-overlay.show-closing-animation:not(.active){animation:both turn-off-visibility .35s}.wp-lightbox-overlay.show-closing-animation:not(.active) img{animation:both turn-off-visibility .25s}@media (prefers-reduced-motion: no-preference){.wp-lightbox-overlay.zoom.active{opacity:1;visibility:visible;animation:none}.wp-lightbox-overlay.zoom.active .lightbox-image-container{animation:lightbox-zoom-in .4s}.wp-lightbox-overlay.zoom.active .lightbox-image-container img{animation:none}.wp-lightbox-overlay.zoom.active .scrim{animation:turn-on-visibility .4s forwards}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active){animation:none}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container{animation:lightbox-zoom-out .4s}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container img{animation:none}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .scrim{animation:turn-off-visibility .4s forwards}}@keyframes show-content-image{0%{visibility:hidden}99%{visibility:hidden}to{visibility:visible}}@keyframes turn-on-visibility{0%{opacity:0}to{opacity:1}}@keyframes turn-off-visibility{0%{opacity:1;visibility:visible}99%{opacity:0;visibility:visible}to{opacity:0;visibility:hidden}}@keyframes lightbox-zoom-in{0%{transform:translate(calc((-100vw + var(--wp--lightbox-scrollbar-width)) / 2 + var(--wp--lightbox-initial-left-position)),calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale))}to{transform:translate(-50%,-50%) scale(1)}}@keyframes lightbox-zoom-out{0%{visibility:visible;transform:translate(-50%,-50%) scale(1)}99%{visibility:visible}to{visibility:hidden;transform:translate(calc((-100vw + var(--wp--lightbox-scrollbar-width)) / 2 + var(--wp--lightbox-initial-left-position)),calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale))}}ol.wp-block-latest-comments{margin-left:0;box-sizing:border-box}:where(.wp-block-latest-comments:not([style*=line-height] .wp-block-latest-comments__comment)){line-height:1.1}:where(.wp-block-latest-comments:not([style*=line-height] .wp-block-latest-comments__comment-excerpt p)){line-height:1.8}.has-dates :where(.wp-block-latest-comments:not([style*=line-height])),.has-excerpts :where(.wp-block-latest-comments:not([style*=line-height])){line-height:1.5}.wp-block-latest-comments .wp-block-latest-comments{padding-left:0}.wp-block-latest-comments__comment{list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{min-height:2.25em;list-style:none}.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta,.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt{margin-left:3.25em}.wp-block-latest-comments__comment-excerpt p{font-size:.875em;margin:.36em 0 1.4em}.wp-block-latest-comments__comment-date{display:block;font-size:.75em}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:1.5em;display:block;float:left;height:2.5em;margin-right:.75em;width:2.5em}.wp-block-latest-comments[style*=font-size] a,.wp-block-latest-comments[class*=-font-size] a{font-size:inherit}.wp-block-latest-posts{box-sizing:border-box}.wp-block-latest-posts.alignleft{margin-right:2em}.wp-block-latest-posts.alignright{margin-left:2em}.wp-block-latest-posts.wp-block-latest-posts__list{list-style:none}.wp-block-latest-posts.wp-block-latest-posts__list li{clear:both;overflow-wrap:break-word}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap}.wp-block-latest-posts.is-grid li{margin:0 1.25em 1.25em 0;width:100%}@media (min-width: 600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - .625em)}.wp-block-latest-posts.columns-2 li:nth-child(2n){margin-right:0}.wp-block-latest-posts.columns-3 li{width:calc((100% / 3) - 1.25em + (1.25em / 3))}.wp-block-latest-posts.columns-3 li:nth-child(3n){margin-right:0}.wp-block-latest-posts.columns-4 li{width:calc(25% - .9375em)}.wp-block-latest-posts.columns-4 li:nth-child(4n){margin-right:0}.wp-block-latest-posts.columns-5 li{width:calc(20% - 1em)}.wp-block-latest-posts.columns-5 li:nth-child(5n){margin-right:0}.wp-block-latest-posts.columns-6 li{width:calc((100% / 6) - 1.25em + (1.25em / 6))}.wp-block-latest-posts.columns-6 li:nth-child(6n){margin-right:0}}:root :where(.wp-block-latest-posts.is-grid){padding:0}:root :where(.wp-block-latest-posts.wp-block-latest-posts__list){padding-left:0}.wp-block-latest-posts__post-date,.wp-block-latest-posts__post-author{display:block;font-size:.8125em}.wp-block-latest-posts__post-excerpt{margin-top:.5em;margin-bottom:1em}.wp-block-latest-posts__featured-image a{display:inline-block}.wp-block-latest-posts__featured-image img{height:auto;width:auto;max-width:100%}.wp-block-latest-posts__featured-image.alignleft{margin-right:1em;float:left}.wp-block-latest-posts__featured-image.alignright{margin-left:1em;float:right}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center}ol,ul{box-sizing:border-box}:root :where(.wp-block-list.has-background){padding:1.25em 2.375em}.wp-block-loginout{box-sizing:border-box}.wp-block-media-text{direction:ltr;display:grid;grid-template-columns:50% 1fr;grid-template-rows:auto;box-sizing:border-box}.wp-block-media-text.has-media-on-the-right{grid-template-columns:1fr 50%}.wp-block-media-text.is-vertically-aligned-top>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-top>.wp-block-media-text__media{align-self:start}.wp-block-media-text>.wp-block-media-text__content,.wp-block-media-text>.wp-block-media-text__media,.wp-block-media-text.is-vertically-aligned-center>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-center>.wp-block-media-text__media{align-self:center}.wp-block-media-text.is-vertically-aligned-bottom>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-bottom>.wp-block-media-text__media{align-self:end}.wp-block-media-text>.wp-block-media-text__media{grid-column:1;grid-row:1;margin:0}.wp-block-media-text>.wp-block-media-text__content{direction:ltr;grid-column:2;grid-row:1;padding:0 8%;word-break:break-word}.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__media{grid-column:2;grid-row:1}.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__content{grid-column:1;grid-row:1}.wp-block-media-text__media a{display:inline-block}.wp-block-media-text__media img,.wp-block-media-text__media video{height:auto;max-width:unset;width:100%;vertical-align:middle}.wp-block-media-text.is-image-fill>.wp-block-media-text__media{height:100%;min-height:250px;background-size:cover}.wp-block-media-text.is-image-fill>.wp-block-media-text__media>a{display:block;height:100%}.wp-block-media-text.is-image-fill>.wp-block-media-text__media img{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.wp-block-media-text.is-image-fill-element>.wp-block-media-text__media{position:relative;height:100%;min-height:250px}.wp-block-media-text.is-image-fill-element>.wp-block-media-text__media>a{display:block;height:100%}.wp-block-media-text.is-image-fill-element>.wp-block-media-text__media img{position:absolute;width:100%;height:100%;object-fit:cover}@media (max-width: 600px){.wp-block-media-text.is-stacked-on-mobile{grid-template-columns:100%!important}.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__media{grid-column:1;grid-row:1}.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__content{grid-column:1;grid-row:2}}.wp-block-navigation{position:relative;--navigation-layout-justification-setting: flex-start;--navigation-layout-direction: row;--navigation-layout-wrap: wrap;--navigation-layout-justify: flex-start;--navigation-layout-align: center}.wp-block-navigation ul{margin-top:0;margin-bottom:0;margin-left:0;padding-left:0}.wp-block-navigation ul,.wp-block-navigation ul li{list-style:none;padding:0}.wp-block-navigation .wp-block-navigation-item{background-color:inherit;display:flex;align-items:center;position:relative}.wp-block-navigation .wp-block-navigation-item .wp-block-navigation__submenu-container:empty{display:none}.wp-block-navigation .wp-block-navigation-item__content{display:block}.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content{color:inherit}.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content{text-decoration:underline}.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content:focus,.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content:active{text-decoration:underline}.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content{text-decoration:line-through}.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:focus,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:active{text-decoration:line-through}.wp-block-navigation :where(a),.wp-block-navigation :where(a:focus),.wp-block-navigation :where(a:active){text-decoration:none}.wp-block-navigation .wp-block-navigation__submenu-icon{align-self:center;line-height:0;display:inline-block;font-size:inherit;padding:0;background-color:inherit;color:currentColor;border:none;width:.6em;height:.6em;margin-left:.25em}.wp-block-navigation .wp-block-navigation__submenu-icon svg{display:inline-block;stroke:currentColor;width:inherit;height:inherit;margin-top:.075em}.wp-block-navigation.is-vertical{--navigation-layout-direction: column;--navigation-layout-justify: initial;--navigation-layout-align: flex-start}.wp-block-navigation.no-wrap{--navigation-layout-wrap: nowrap}.wp-block-navigation.items-justified-center{--navigation-layout-justification-setting: center;--navigation-layout-justify: center}.wp-block-navigation.items-justified-center.is-vertical{--navigation-layout-align: center}.wp-block-navigation.items-justified-right{--navigation-layout-justification-setting: flex-end;--navigation-layout-justify: flex-end}.wp-block-navigation.items-justified-right.is-vertical{--navigation-layout-align: flex-end}.wp-block-navigation.items-justified-space-between{--navigation-layout-justification-setting: space-between;--navigation-layout-justify: space-between}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{background-color:inherit;color:inherit;position:absolute;z-index:2;display:flex;flex-direction:column;align-items:normal;opacity:0;transition:opacity .1s linear;visibility:hidden;width:0;height:0;overflow:hidden;left:-1px;top:100%}.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content{display:flex;flex-grow:1}.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content .wp-block-navigation__submenu-icon{margin-right:0;margin-left:auto}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content{margin:0}@media (min-width: 782px){.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:100%;top:-1px}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before{content:"";position:absolute;right:100%;height:100%;display:block;width:.5em;background:transparent}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon{margin-right:.25em}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon svg{transform:rotate(-90deg)}}.wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container{visibility:visible;overflow:visible;opacity:1;width:auto;height:auto;min-width:200px}.wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within>.wp-block-navigation__submenu-container{visibility:visible;overflow:visible;opacity:1;width:auto;height:auto;min-width:200px}.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]~.wp-block-navigation__submenu-container{visibility:visible;overflow:visible;opacity:1;width:auto;height:auto;min-width:200px}.wp-block-navigation.has-background .has-child .wp-block-navigation__submenu-container{left:0;top:100%}@media (min-width: 782px){.wp-block-navigation.has-background .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:100%;top:0}}.wp-block-navigation-submenu{position:relative;display:flex}.wp-block-navigation-submenu .wp-block-navigation__submenu-icon svg{stroke:currentColor}button.wp-block-navigation-item__content{background-color:transparent;border:none;color:currentColor;font-size:inherit;font-family:inherit;letter-spacing:inherit;line-height:inherit;font-style:inherit;font-weight:inherit;text-transform:inherit;text-align:left}.wp-block-navigation-submenu__toggle{cursor:pointer}.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle{padding-left:0;padding-right:.85em}.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle+.wp-block-navigation__submenu-icon{margin-left:-.6em;pointer-events:none}.wp-block-navigation-item.open-on-click button.wp-block-navigation-item__content:not(.wp-block-navigation-submenu__toggle){padding:0}.wp-block-navigation__responsive-container,.wp-block-navigation__responsive-close,.wp-block-navigation__responsive-dialog,.wp-block-navigation .wp-block-page-list,.wp-block-navigation__container,.wp-block-navigation__responsive-container-content{gap:inherit}:where(.wp-block-navigation.has-background .wp-block-navigation-item a:not(.wp-element-button)),:where(.wp-block-navigation.has-background .wp-block-navigation-submenu a:not(.wp-element-button)){padding:.5em 1em}:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item a:not(.wp-element-button)),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-submenu a:not(.wp-element-button)),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-submenu button.wp-block-navigation-item__content),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-pages-list__item button.wp-block-navigation-item__content){padding:.5em 1em}.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container{left:auto;right:0}.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:-1px;right:-1px}@media (min-width: 782px){.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:auto;right:100%}}.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container{background-color:#fff;border:1px solid rgba(0,0,0,.15)}.wp-block-navigation.has-background .wp-block-navigation__submenu-container{background-color:inherit}.wp-block-navigation:not(.has-text-color) .wp-block-navigation__submenu-container{color:#000}.wp-block-navigation__container{display:flex;flex-wrap:var(--navigation-layout-wrap, wrap);flex-direction:var(--navigation-layout-direction, initial);justify-content:var(--navigation-layout-justify, initial);align-items:var(--navigation-layout-align, initial);list-style:none;margin:0;padding-left:0}.wp-block-navigation__container .is-responsive{display:none}.wp-block-navigation__container:only-child,.wp-block-page-list:only-child{flex-grow:1}@keyframes overlay-menu__fade-in-animation{0%{opacity:0;transform:translateY(.5em)}to{opacity:1;transform:translateY(0)}}.wp-block-navigation__responsive-container{display:none;position:fixed;inset:0}.wp-block-navigation__responsive-container :where(.wp-block-navigation-item a){color:inherit}.wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content{display:flex;flex-wrap:var(--navigation-layout-wrap, wrap);flex-direction:var(--navigation-layout-direction, initial);justify-content:var(--navigation-layout-justify, initial);align-items:var(--navigation-layout-align, initial)}.wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open){color:inherit!important;background-color:inherit!important}.wp-block-navigation__responsive-container.is-menu-open{display:flex;flex-direction:column;background-color:inherit;animation:overlay-menu__fade-in-animation .1s ease-out;animation-fill-mode:forwards;padding-top:clamp(1rem,var(--wp--style--root--padding-top),20rem);padding-right:clamp(1rem,var(--wp--style--root--padding-right),20rem);padding-bottom:clamp(1rem,var(--wp--style--root--padding-bottom),20rem);padding-left:clamp(1rem,var(--wp--style--root--padding-left),20em);overflow:auto;z-index:100000}@media (prefers-reduced-motion: reduce){.wp-block-navigation__responsive-container.is-menu-open{animation-duration:1ms;animation-delay:0s}}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content{padding-top:calc(2rem + 24px);overflow:visible;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:var(--navigation-layout-justification-setting, inherit)}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container{justify-content:flex-start}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon{display:none}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container{opacity:1;visibility:visible;height:auto;width:auto;overflow:initial;min-width:200px;position:static;border:none;padding-left:2rem;padding-right:2rem}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container{gap:inherit}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container{padding-top:var(--wp--style--block-gap, 2em)}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content{padding:0}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list{display:flex;flex-direction:column;align-items:var(--navigation-layout-justification-setting, initial)}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item .wp-block-navigation__submenu-container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,.wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list{color:inherit!important;background:transparent!important}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container{right:auto;left:auto}@media (min-width: 600px){.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open){display:block;width:100%;position:relative;z-index:auto;background-color:inherit}.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) .wp-block-navigation__responsive-container-close{display:none}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container{left:0}}.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open{background-color:#fff}.wp-block-navigation:not(.has-text-color) .wp-block-navigation__responsive-container.is-menu-open{color:#000}.wp-block-navigation__toggle_button_label{font-size:1rem;font-weight:700}.wp-block-navigation__responsive-container-open,.wp-block-navigation__responsive-container-close{vertical-align:middle;cursor:pointer;color:currentColor;background:transparent;border:none;margin:0;padding:0;text-transform:inherit}.wp-block-navigation__responsive-container-open svg,.wp-block-navigation__responsive-container-close svg{fill:currentColor;pointer-events:none;display:block;width:24px;height:24px}.wp-block-navigation__responsive-container-open{display:flex}.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open{font-family:inherit;font-weight:inherit;font-size:inherit}@media (min-width: 600px){.wp-block-navigation__responsive-container-open:not(.always-shown){display:none}}.wp-block-navigation__responsive-container-close{position:absolute;top:0;right:0;z-index:2}.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close{font-family:inherit;font-weight:inherit;font-size:inherit}.wp-block-navigation__responsive-close{width:100%}.has-modal-open .wp-block-navigation__responsive-close{max-width:var(--wp--style--global--wide-size, 100%);margin-left:auto;margin-right:auto}.wp-block-navigation__responsive-close:focus{outline:none}.is-menu-open .wp-block-navigation__responsive-close,.is-menu-open .wp-block-navigation__responsive-dialog,.is-menu-open .wp-block-navigation__responsive-container-content{box-sizing:border-box}.wp-block-navigation__responsive-dialog{position:relative}.has-modal-open .admin-bar .is-menu-open .wp-block-navigation__responsive-dialog{margin-top:46px}@media (min-width: 782px){.has-modal-open .admin-bar .is-menu-open .wp-block-navigation__responsive-dialog{margin-top:32px}}html.has-modal-open{overflow:hidden}.wp-block-navigation .wp-block-navigation-item__label{overflow-wrap:break-word}.wp-block-navigation .wp-block-navigation-item__description{display:none}.link-ui-tools{border-top:1px solid #f0f0f0;padding:8px}.link-ui-block-inserter{padding-top:8px}.link-ui-block-inserter__back{margin-left:8px;text-transform:uppercase}.wp-block-navigation .wp-block-page-list{display:flex;flex-direction:var(--navigation-layout-direction, initial);justify-content:var(--navigation-layout-justify, initial);align-items:var(--navigation-layout-align, initial);flex-wrap:var(--navigation-layout-wrap, wrap);background-color:inherit}.wp-block-navigation .wp-block-navigation-item{background-color:inherit}.is-small-text{font-size:.875em}.is-regular-text{font-size:1em}.is-large-text{font-size:2.25em}.is-larger-text{font-size:3em}.has-drop-cap:not(:focus):first-letter{float:left;font-size:8.4em;line-height:.68;font-weight:100;margin:.05em .1em 0 0;text-transform:uppercase;font-style:normal}body.rtl .has-drop-cap:not(:focus):first-letter{float:initial;margin-left:.1em}p.has-drop-cap.has-background{overflow:hidden}:root :where(p.has-background){padding:1.25em 2.375em}:where(p.has-text-color:not(.has-link-color)) a{color:inherit}p.has-text-align-right[style*="writing-mode:vertical-rl"],p.has-text-align-left[style*="writing-mode:vertical-lr"]{rotate:180deg}.wp-block-post-author{display:flex;flex-wrap:wrap;box-sizing:border-box}.wp-block-post-author__byline{width:100%;margin-top:0;margin-bottom:0;font-size:.5em}.wp-block-post-author__avatar{margin-right:1em}.wp-block-post-author__bio{margin-bottom:.7em;font-size:.7em}.wp-block-post-author__content{flex-grow:1;flex-basis:0}.wp-block-post-author__name{margin:0}.wp-block-post-author-biography{box-sizing:border-box}:where(.wp-block-post-comments-form) textarea,:where(.wp-block-post-comments-form) input:not([type=submit]){border:1px solid #949494;font-size:1em;font-family:inherit}:where(.wp-block-post-comments-form) textarea,:where(.wp-block-post-comments-form) input:where(:not([type=submit]):not([type=checkbox])){padding:calc(.667em + 2px)}.wp-block-post-comments-form{box-sizing:border-box}.wp-block-post-comments-form[style*=font-weight] :where(.comment-reply-title){font-weight:inherit}.wp-block-post-comments-form[style*=font-family] :where(.comment-reply-title){font-family:inherit}.wp-block-post-comments-form[class*=-font-size] :where(.comment-reply-title),.wp-block-post-comments-form[style*=font-size] :where(.comment-reply-title){font-size:inherit}.wp-block-post-comments-form[style*=line-height] :where(.comment-reply-title){line-height:inherit}.wp-block-post-comments-form[style*=font-style] :where(.comment-reply-title){font-style:inherit}.wp-block-post-comments-form[style*=letter-spacing] :where(.comment-reply-title){letter-spacing:inherit}.wp-block-post-comments-form :where(input[type=submit]){box-shadow:none;cursor:pointer;display:inline-block;text-align:center;overflow-wrap:break-word}.wp-block-post-comments-form .comment-form textarea,.wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]):not([type=hidden]){display:block;box-sizing:border-box;width:100%}.wp-block-post-comments-form .comment-form-author label,.wp-block-post-comments-form .comment-form-email label,.wp-block-post-comments-form .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments-form .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments-form .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments-form .comment-reply-title{margin-bottom:0}.wp-block-post-comments-form .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium, smaller);margin-left:.5em}.wp-block-post-content:after{content:"";display:table;clear:both}.wp-block-post-date{box-sizing:border-box}:where(.wp-block-post-excerpt){box-sizing:border-box;margin-top:var(--wp--style--block-gap);margin-bottom:var(--wp--style--block-gap)}.wp-block-post-excerpt__excerpt{margin-top:0;margin-bottom:0}.wp-block-post-excerpt__more-text{margin-top:var(--wp--style--block-gap);margin-bottom:0}.wp-block-post-excerpt__more-link{display:inline-block}.wp-block-post-featured-image{margin-left:0;margin-right:0}.wp-block-post-featured-image a{display:block;height:100%}.wp-block-post-featured-image :where(img){max-width:100%;width:100%;height:auto;vertical-align:bottom;box-sizing:border-box}.wp-block-post-featured-image.alignwide img,.wp-block-post-featured-image.alignfull img{width:100%}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim{position:absolute;inset:0;background-color:#000}.wp-block-post-featured-image{position:relative}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-gradient{background-color:transparent}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-0{opacity:0}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-10{opacity:.1}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-20{opacity:.2}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-30{opacity:.3}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-40{opacity:.4}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-50{opacity:.5}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-60{opacity:.6}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-70{opacity:.7}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-80{opacity:.8}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-90{opacity:.9}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-100{opacity:1}.wp-block-post-featured-image:where(.alignleft,.alignright){width:100%}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-previous{display:inline-block;margin-right:1ch}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-previous:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-next{display:inline-block;margin-left:1ch}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-next:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-post-navigation-link.has-text-align-right[style*="writing-mode: vertical-rl"],.wp-block-post-navigation-link.has-text-align-left[style*="writing-mode: vertical-lr"]{rotate:180deg}.wp-block-post-terms{box-sizing:border-box}.wp-block-post-terms .wp-block-post-terms__separator{white-space:pre-wrap}.wp-block-post-time-to-read{box-sizing:border-box}.wp-block-post-title{word-break:break-word;box-sizing:border-box}.wp-block-post-title a{display:inline-block}.wp-block-post-author-name{box-sizing:border-box}.wp-block-preformatted{box-sizing:border-box;white-space:pre-wrap}:where(.wp-block-preformatted.has-background){padding:1.25em 2.375em}.wp-block-pullquote{text-align:center;overflow-wrap:break-word;box-sizing:border-box;margin:0 0 1em;padding:4em 0}.wp-block-pullquote p,.wp-block-pullquote blockquote,.wp-block-pullquote cite{color:inherit}.wp-block-pullquote blockquote{margin:0}.wp-block-pullquote p{margin-top:0}.wp-block-pullquote p:last-child{margin-bottom:0}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:420px}.wp-block-pullquote cite,.wp-block-pullquote footer{position:relative}.wp-block-pullquote .has-text-color a{color:inherit}.wp-block-pullquote.has-text-align-left blockquote{text-align:left}.wp-block-pullquote.has-text-align-right blockquote{text-align:right}.wp-block-pullquote.is-style-solid-color{border:none}.wp-block-pullquote.is-style-solid-color blockquote{margin-left:auto;margin-right:auto;max-width:60%}.wp-block-pullquote.is-style-solid-color blockquote p{margin-top:0;margin-bottom:0;font-size:2em}.wp-block-pullquote.is-style-solid-color blockquote cite{text-transform:none;font-style:normal}.wp-block-pullquote cite{color:inherit}.wp-block-post-template{margin-top:0;margin-bottom:0;max-width:100%;list-style:none;padding:0}.wp-block-post-template.is-flex-container{flex-direction:row;display:flex;flex-wrap:wrap;gap:1.25em}.wp-block-post-template.is-flex-container>li{margin:0;width:100%}@media (min-width: 600px){.wp-block-post-template.is-flex-container.is-flex-container.columns-2>li{width:calc(50% - .625em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-3>li{width:calc((100% / 3) - 1.25em + (1.25em / 3))}.wp-block-post-template.is-flex-container.is-flex-container.columns-4>li{width:calc(25% - .9375em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-5>li{width:calc(20% - 1em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-6>li{width:calc((100% / 6) - 1.25em + (1.25em / 6))}}@media (max-width: 600px){.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid{grid-template-columns:1fr}}.wp-block-post-template-is-layout-constrained>li>.alignright,.wp-block-post-template-is-layout-flow>li>.alignright{float:right;margin-inline-start:2em;margin-inline-end:0}.wp-block-post-template-is-layout-constrained>li>.alignleft,.wp-block-post-template-is-layout-flow>li>.alignleft{float:left;margin-inline-start:0;margin-inline-end:2em}.wp-block-post-template-is-layout-constrained>li>.aligncenter,.wp-block-post-template-is-layout-flow>li>.aligncenter{margin-inline-start:auto;margin-inline-end:auto}.wp-block-query-pagination.is-content-justification-space-between>.wp-block-query-pagination-next:last-of-type{margin-inline-start:auto}.wp-block-query-pagination.is-content-justification-space-between>.wp-block-query-pagination-previous:first-child{margin-inline-end:auto}.wp-block-query-pagination .wp-block-query-pagination-previous-arrow{margin-right:1ch;display:inline-block}.wp-block-query-pagination .wp-block-query-pagination-previous-arrow:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-query-pagination .wp-block-query-pagination-next-arrow{margin-left:1ch;display:inline-block}.wp-block-query-pagination .wp-block-query-pagination-next-arrow:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-query-pagination.aligncenter{justify-content:center}.wp-block-query-title{box-sizing:border-box}.wp-block-quote{box-sizing:border-box;overflow-wrap:break-word}.wp-block-quote.is-style-large:where(:not(.is-style-plain)),.wp-block-quote.is-large:where(:not(.is-style-plain)){margin-bottom:1em;padding:0 1em}.wp-block-quote.is-style-large:where(:not(.is-style-plain)) p,.wp-block-quote.is-large:where(:not(.is-style-plain)) p{font-size:1.5em;font-style:italic;line-height:1.6}.wp-block-quote.is-style-large:where(:not(.is-style-plain)) cite,.wp-block-quote.is-style-large:where(:not(.is-style-plain)) footer,.wp-block-quote.is-large:where(:not(.is-style-plain)) cite,.wp-block-quote.is-large:where(:not(.is-style-plain)) footer{font-size:1.125em;text-align:right}.wp-block-quote>cite{display:block}.wp-block-read-more{display:block;width:-moz-fit-content;width:fit-content}.wp-block-read-more:where(:not([style*=text-decoration])){text-decoration:none}.wp-block-read-more:where(:not([style*=text-decoration])):focus,.wp-block-read-more:where(:not([style*=text-decoration])):active{text-decoration:none}ul.wp-block-rss{list-style:none;padding:0}ul.wp-block-rss.wp-block-rss{box-sizing:border-box}ul.wp-block-rss.alignleft{margin-right:2em}ul.wp-block-rss.alignright{margin-left:2em}ul.wp-block-rss.is-grid{display:flex;flex-wrap:wrap;padding:0;list-style:none}ul.wp-block-rss.is-grid li{margin:0 1em 1em 0;width:100%}@media (min-width: 600px){ul.wp-block-rss.columns-2 li{width:calc(50% - 1em)}ul.wp-block-rss.columns-3 li{width:calc((100% / 3) - 1em)}ul.wp-block-rss.columns-4 li{width:calc(25% - 1em)}ul.wp-block-rss.columns-5 li{width:calc(20% - 1em)}ul.wp-block-rss.columns-6 li{width:calc((100% / 6) - 1em)}}.wp-block-rss__item-publish-date,.wp-block-rss__item-author{display:block;font-size:.8125em}.wp-block-search__button{margin-left:10px;word-break:normal}.wp-block-search__button.has-icon{line-height:0}.wp-block-search__button svg{min-width:24px;min-height:24px;width:1.25em;height:1.25em;fill:currentColor;vertical-align:text-bottom}:where(.wp-block-search__button){border:1px solid #ccc;padding:6px 10px}.wp-block-search__inside-wrapper{display:flex;flex:auto;flex-wrap:nowrap;max-width:100%}.wp-block-search__label{width:100%}.wp-block-search__input{padding:8px;flex-grow:1;margin-left:0;margin-right:0;min-width:3rem;border:1px solid #949494;text-decoration:unset!important;appearance:initial}.wp-block-search.wp-block-search__button-only .wp-block-search__button{margin-left:0;flex-shrink:0;max-width:100%}.wp-block-search.wp-block-search__button-only .wp-block-search__button[aria-expanded=true]{max-width:calc(100% - 100px)}.wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{transition-property:width;min-width:0!important}.wp-block-search.wp-block-search__button-only .wp-block-search__input{transition-duration:.3s;flex-basis:100%}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden,.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__inside-wrapper{overflow:hidden}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__input{width:0!important;min-width:0!important;padding-left:0!important;padding-right:0!important;border-left-width:0!important;border-right-width:0!important;flex-grow:0;margin:0;flex-basis:0}:where(.wp-block-search__input){font-family:inherit;font-weight:inherit;font-size:inherit;line-height:inherit;letter-spacing:inherit;text-transform:inherit;font-style:inherit}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper){padding:4px;border:1px solid #949494;box-sizing:border-box}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input{border-radius:0;border:none;padding:0 4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input:focus{outline:none}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) :where(.wp-block-search__button){padding:4px 8px}.wp-block-search.aligncenter .wp-block-search__inside-wrapper{margin:auto}.wp-block[data-align=right] .wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{float:right}.wp-block-separator{border-top:2px solid currentColor;border-left:none;border-right:none;border-bottom:none}:root :where(.wp-block-separator.is-style-dots){text-align:center;line-height:1;height:auto}:root :where(.wp-block-separator.is-style-dots):before{content:"···";color:currentColor;font-size:1.5em;letter-spacing:2em;padding-left:2em;font-family:serif}.wp-block-separator.is-style-dots{background:none!important;border:none!important}.wp-block-site-logo{box-sizing:border-box;line-height:0}.wp-block-site-logo a{display:inline-block;line-height:0}.wp-block-site-logo.is-default-size img{width:120px;height:auto}.wp-block-site-logo img{height:auto;max-width:100%}.wp-block-site-logo a,.wp-block-site-logo img{border-radius:inherit}.wp-block-site-logo.aligncenter{margin-left:auto;margin-right:auto;text-align:center}:root :where(.wp-block-site-logo.is-style-rounded){border-radius:9999px}.wp-block-site-tagline,.wp-block-site-title{box-sizing:border-box}.wp-block-site-title :where(a){color:inherit}.wp-block-social-links{box-sizing:border-box;padding-left:0;padding-right:0;text-indent:0;margin-left:0;background:none}.wp-block-social-links .wp-social-link a,.wp-block-social-links .wp-social-link a:hover{text-decoration:none;border-bottom:0;box-shadow:none}.wp-block-social-links .wp-social-link svg{width:1em;height:1em}.wp-block-social-links .wp-social-link span:not(.screen-reader-text){margin-left:.5em;margin-right:.5em;font-size:.65em}.wp-block-social-links.has-small-icon-size{font-size:16px}.wp-block-social-links,.wp-block-social-links.has-normal-icon-size{font-size:24px}.wp-block-social-links.has-large-icon-size{font-size:36px}.wp-block-social-links.has-huge-icon-size{font-size:48px}.wp-block-social-links.aligncenter{justify-content:center;display:flex}.wp-block-social-links.alignright{justify-content:flex-end}.wp-block-social-link{display:block;border-radius:9999px;transition:transform .1s ease;height:auto}@media (prefers-reduced-motion: reduce){.wp-block-social-link{transition-duration:0s;transition-delay:0s}}.wp-block-social-link a{align-items:center;display:flex;line-height:0;transition:transform .1s ease}.wp-block-social-link:hover{transform:scale(1.1)}.wp-block-social-links .wp-block-social-link.wp-social-link{display:inline-block;margin:0;padding:0}.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:hover,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:active,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:visited,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor svg{color:currentColor;fill:currentColor}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link{background-color:#f0f0f0;color:#444}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-amazon{background-color:#f90;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-bandcamp{background-color:#1ea0c3;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-behance{background-color:#0757fe;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-bluesky{background-color:#0a7aff;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-codepen{background-color:#1e1f26;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-deviantart{background-color:#02e49b;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-dribbble{background-color:#e94c89;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-dropbox{background-color:#4280ff;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-etsy{background-color:#f45800;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-facebook{background-color:#0866ff;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-fivehundredpx{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-flickr{background-color:#0461dd;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-foursquare{background-color:#e65678;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-github{background-color:#24292d;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-goodreads{background-color:#eceadd;color:#382110}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-google{background-color:#ea4434;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-gravatar{background-color:#1d4fc4;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-instagram{background-color:#f00075;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-lastfm{background-color:#e21b24;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-linkedin{background-color:#0d66c2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-mastodon{background-color:#3288d4;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-medium{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-meetup{background-color:#f6405f;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-patreon{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-pinterest{background-color:#e60122;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-pocket{background-color:#ef4155;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-reddit{background-color:#ff4500;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-skype{background-color:#0478d7;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-snapchat{background-color:#fefc00;color:#fff;stroke:#000}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-soundcloud{background-color:#ff5600;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-spotify{background-color:#1bd760;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-telegram{background-color:#2aabee;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-threads{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-tiktok{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-tumblr{background-color:#011835;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-twitch{background-color:#6440a4;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-twitter{background-color:#1da1f2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-vimeo{background-color:#1eb7ea;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-vk{background-color:#4680c2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-wordpress{background-color:#3499cd;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-whatsapp{background-color:#25d366;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-x{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-yelp{background-color:#d32422;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-youtube{background-color:red;color:#fff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link{background:none}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link svg{width:1.25em;height:1.25em}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-amazon{color:#f90}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-bandcamp{color:#1ea0c3}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-behance{color:#0757fe}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-bluesky{color:#0a7aff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-codepen{color:#1e1f26}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-deviantart{color:#02e49b}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-dribbble{color:#e94c89}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-dropbox{color:#4280ff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-etsy{color:#f45800}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-facebook{color:#0866ff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-fivehundredpx{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-flickr{color:#0461dd}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-foursquare{color:#e65678}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-github{color:#24292d}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-goodreads{color:#382110}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-google{color:#ea4434}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-gravatar{color:#1d4fc4}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-instagram{color:#f00075}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-lastfm{color:#e21b24}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-linkedin{color:#0d66c2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-mastodon{color:#3288d4}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-medium{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-meetup{color:#f6405f}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-patreon{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-pinterest{color:#e60122}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-pocket{color:#ef4155}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-reddit{color:#ff4500}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-skype{color:#0478d7}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-snapchat{color:#fff;stroke:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-soundcloud{color:#ff5600}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-spotify{color:#1bd760}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-telegram{color:#2aabee}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-threads{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-tiktok{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-tumblr{color:#011835}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-twitch{color:#6440a4}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-twitter{color:#1da1f2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-vimeo{color:#1eb7ea}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-vk{color:#4680c2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-whatsapp{color:#25d366}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-wordpress{color:#3499cd}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-x{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-yelp{color:#d32422}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-youtube{color:red}.wp-block-social-links.is-style-pill-shape .wp-social-link{width:auto}:root :where(.wp-block-social-links .wp-social-link a){padding:.25em}:root :where(.wp-block-social-links.is-style-logos-only .wp-social-link a){padding:0}:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link a){padding-left:calc((2/3) * 1em);padding-right:calc((2/3) * 1em)}.wp-block-social-links:not(.has-icon-color):not(.has-icon-background-color) .wp-social-link-snapchat .wp-block-social-link-label{color:#000}.wp-block-spacer{clear:both}.wp-block-tag-cloud{box-sizing:border-box}.wp-block-tag-cloud.aligncenter{text-align:center;justify-content:center}.wp-block-tag-cloud.alignfull{padding-left:1em;padding-right:1em}.wp-block-tag-cloud a{display:inline-block;margin-right:5px}.wp-block-tag-cloud span{display:inline-block;margin-left:5px;text-decoration:none}:root :where(.wp-block-tag-cloud.is-style-outline){display:flex;flex-wrap:wrap;gap:1ch}:root :where(.wp-block-tag-cloud.is-style-outline a){border:1px solid currentColor;font-size:unset!important;margin-right:0;padding:1ch 2ch;text-decoration:none!important}.wp-block-table{overflow-x:auto}.wp-block-table table{border-collapse:collapse;width:100%}.wp-block-table thead{border-bottom:3px solid}.wp-block-table tfoot{border-top:3px solid}.wp-block-table .has-fixed-layout{table-layout:fixed;width:100%}.wp-block-table .has-fixed-layout td,.wp-block-table .has-fixed-layout th{word-break:break-word}.wp-block-table.alignleft,.wp-block-table.aligncenter,.wp-block-table.alignright{display:table;width:auto}.wp-block-table.alignleft td,.wp-block-table.alignleft th,.wp-block-table.aligncenter td,.wp-block-table.aligncenter th,.wp-block-table.alignright td,.wp-block-table.alignright th{word-break:break-word}.wp-block-table .has-subtle-light-gray-background-color{background-color:#f3f4f5}.wp-block-table .has-subtle-pale-green-background-color{background-color:#e9fbe5}.wp-block-table .has-subtle-pale-blue-background-color{background-color:#e7f5fe}.wp-block-table .has-subtle-pale-pink-background-color{background-color:#fcf0ef}.wp-block-table.is-style-stripes{border-spacing:0;border-collapse:inherit;background-color:transparent;border-bottom:1px solid #f0f0f0}.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background-color:#f0f0f0}.wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tbody tr:nth-child(odd){background-color:#f3f4f5}.wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tbody tr:nth-child(odd){background-color:#e9fbe5}.wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tbody tr:nth-child(odd){background-color:#e7f5fe}.wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tbody tr:nth-child(odd){background-color:#fcf0ef}.wp-block-table.is-style-stripes th,.wp-block-table.is-style-stripes td{border-color:transparent}.wp-block-table .has-border-color>*,.wp-block-table .has-border-color tr,.wp-block-table .has-border-color th,.wp-block-table .has-border-color td{border-color:inherit}.wp-block-table table[style*=border-top-color]>*,.wp-block-table table[style*=border-top-color] tr:first-child{border-top-color:inherit}.wp-block-table table[style*=border-top-color]>* th,.wp-block-table table[style*=border-top-color]>* td,.wp-block-table table[style*=border-top-color] tr:first-child th,.wp-block-table table[style*=border-top-color] tr:first-child td{border-top-color:inherit}.wp-block-table table[style*=border-top-color] tr:not(:first-child){border-top-color:currentColor}.wp-block-table table[style*=border-right-color]>*,.wp-block-table table[style*=border-right-color] tr,.wp-block-table table[style*=border-right-color] th,.wp-block-table table[style*=border-right-color] td:last-child{border-right-color:inherit}.wp-block-table table[style*=border-bottom-color]>*,.wp-block-table table[style*=border-bottom-color] tr:last-child{border-bottom-color:inherit}.wp-block-table table[style*=border-bottom-color]>* th,.wp-block-table table[style*=border-bottom-color]>* td,.wp-block-table table[style*=border-bottom-color] tr:last-child th,.wp-block-table table[style*=border-bottom-color] tr:last-child td{border-bottom-color:inherit}.wp-block-table table[style*=border-bottom-color] tr:not(:last-child){border-bottom-color:currentColor}.wp-block-table table[style*=border-left-color]>*,.wp-block-table table[style*=border-left-color] tr,.wp-block-table table[style*=border-left-color] th,.wp-block-table table[style*=border-left-color] td:first-child{border-left-color:inherit}.wp-block-table table[style*=border-style]>*,.wp-block-table table[style*=border-style] tr,.wp-block-table table[style*=border-style] th,.wp-block-table table[style*=border-style] td{border-style:inherit}.wp-block-table table[style*=border-width]>*,.wp-block-table table[style*=border-width] tr,.wp-block-table table[style*=border-width] th,.wp-block-table table[style*=border-width] td{border-width:inherit;border-style:inherit}:root :where(.wp-block-table-of-contents){box-sizing:border-box}:where(.wp-block-term-description){box-sizing:border-box;margin-top:var(--wp--style--block-gap);margin-bottom:var(--wp--style--block-gap)}.wp-block-term-description p{margin-top:0;margin-bottom:0}.wp-block-text-columns,.wp-block-text-columns.aligncenter{display:flex}.wp-block-text-columns .wp-block-column{margin:0 1em;padding:0}.wp-block-text-columns .wp-block-column:first-child{margin-left:0}.wp-block-text-columns .wp-block-column:last-child{margin-right:0}.wp-block-text-columns.columns-2 .wp-block-column{width:50%}.wp-block-text-columns.columns-3 .wp-block-column{width:calc(100% / 3)}.wp-block-text-columns.columns-4 .wp-block-column{width:25%}pre.wp-block-verse{overflow:auto;white-space:pre-wrap}:where(pre.wp-block-verse){font-family:inherit}.wp-block-video{box-sizing:border-box}.wp-block-video video{width:100%;vertical-align:middle}@supports (position: sticky){.wp-block-video [poster]{object-fit:cover}}.wp-block-video.aligncenter{text-align:center}.wp-block-video :where(figcaption){margin-top:.5em;margin-bottom:1em}.editor-styles-wrapper,.entry-content{counter-reset:footnotes}a[data-fn].fn{vertical-align:super;font-size:smaller;counter-increment:footnotes;display:inline-flex;text-decoration:none;text-indent:-9999999px}a[data-fn].fn:after{content:"[" counter(footnotes) "]";text-indent:0;float:left}.wp-element-button{cursor:pointer}:root{--wp--preset--font-size--normal: 16px;--wp--preset--font-size--huge: 42px}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}.has-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}.has-text-align-center{text-align:center}.has-text-align-left{text-align:left}.has-text-align-right{text-align:right}#end-resizable-editor-section{display:none}.aligncenter{clear:both}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.screen-reader-text:focus{background-color:#ddd;clip:auto!important;clip-path:none;color:#444;display:block;font-size:1em;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}html :where(.has-border-color){border-style:solid}html :where([style*=border-top-color]){border-top-style:solid}html :where([style*=border-right-color]){border-right-style:solid}html :where([style*=border-bottom-color]){border-bottom-style:solid}html :where([style*=border-left-color]){border-left-style:solid}html :where([style*=border-width]){border-style:solid}html :where([style*=border-top-width]){border-top-style:solid}html :where([style*=border-right-width]){border-right-style:solid}html :where([style*=border-bottom-width]){border-bottom-style:solid}html :where([style*=border-left-width]){border-left-style:solid}html :where(img[class*=wp-image-]){height:auto;max-width:100%}:where(figure){margin:0 0 1em}html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset: var(--wp-admin--admin-bar--height, 0px)}@media screen and (max-width: 600px){html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset: 0px}}ul.wp-block-archives{padding-left:2.5em}.wp-block-audio{margin-left:0;margin-right:0;position:relative}.wp-block-audio.is-transient audio{opacity:.3}.wp-block-audio .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.wp-block-avatar__image img{width:100%}.wp-block-avatar.aligncenter .components-resizable-box__container{margin:0 auto}.wp-block[data-align=center]>.wp-block-button{text-align:center;margin-left:auto;margin-right:auto}.wp-block[data-align=right]>.wp-block-button{text-align:right}.wp-block-button{position:relative;cursor:text}.wp-block-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.wp-block-button[data-rich-text-placeholder]:after{opacity:.8}div[data-type="core/button"]{display:table}.wp-block-buttons>.wp-block{margin:0}.wp-block-buttons>.wp-block-button.wp-block-button.wp-block-button.wp-block-button.wp-block-button{margin:0}.wp-block-buttons>.block-list-appender{display:inline-flex;align-items:center}.wp-block-buttons.is-vertical>.block-list-appender .block-list-appender__toggle{justify-content:flex-start}.wp-block-buttons>.wp-block-button:focus{box-shadow:none}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center]{margin-left:auto;margin-right:auto;margin-top:0;width:100%}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center] .wp-block-button{margin-bottom:0}.wp-block[data-align=center]>.wp-block-buttons{align-items:center;justify-content:center}.wp-block[data-align=right]>.wp-block-buttons{justify-content:flex-end}.wp-block-categories ul{padding-left:2.5em}.wp-block-categories ul ul{margin-top:6px}[data-align=center] .wp-block-categories{text-align:center}.wp-block-categories__indentation{padding-left:16px}.wp-block-code code{background:none}.wp-block-columns :where(.wp-block){max-width:none;margin-left:0;margin-right:0}html :where(.wp-block-column){margin-top:0;margin-bottom:0}.wp-block-post-comments,.wp-block-comments__legacy-placeholder{box-sizing:border-box}.wp-block-post-comments .alignleft,.wp-block-comments__legacy-placeholder .alignleft{float:left}.wp-block-post-comments .alignright,.wp-block-comments__legacy-placeholder .alignright{float:right}.wp-block-post-comments .navigation:after,.wp-block-comments__legacy-placeholder .navigation:after{content:"";display:table;clear:both}.wp-block-post-comments .commentlist,.wp-block-comments__legacy-placeholder .commentlist{clear:both;list-style:none;margin:0;padding:0}.wp-block-post-comments .commentlist .comment,.wp-block-comments__legacy-placeholder .commentlist .comment{min-height:2.25em;padding-left:3.25em}.wp-block-post-comments .commentlist .comment p,.wp-block-comments__legacy-placeholder .commentlist .comment p{font-size:1em;line-height:1.8;margin:1em 0}.wp-block-post-comments .commentlist .children,.wp-block-comments__legacy-placeholder .commentlist .children{list-style:none;margin:0;padding:0}.wp-block-post-comments .comment-author,.wp-block-comments__legacy-placeholder .comment-author{line-height:1.5}.wp-block-post-comments .comment-author .avatar,.wp-block-comments__legacy-placeholder .comment-author .avatar{border-radius:1.5em;display:block;float:left;height:2.5em;margin-top:.5em;margin-right:.75em;width:2.5em}.wp-block-post-comments .comment-author cite,.wp-block-comments__legacy-placeholder .comment-author cite{font-style:normal}.wp-block-post-comments .comment-meta,.wp-block-comments__legacy-placeholder .comment-meta{font-size:.875em;line-height:1.5}.wp-block-post-comments .comment-meta b,.wp-block-comments__legacy-placeholder .comment-meta b{font-weight:400}.wp-block-post-comments .comment-meta .comment-awaiting-moderation,.wp-block-comments__legacy-placeholder .comment-meta .comment-awaiting-moderation{margin-top:1em;margin-bottom:1em;display:block}.wp-block-post-comments .comment-body .commentmetadata,.wp-block-comments__legacy-placeholder .comment-body .commentmetadata{font-size:.875em}.wp-block-post-comments .comment-form-comment label,.wp-block-comments__legacy-placeholder .comment-form-comment label,.wp-block-post-comments .comment-form-author label,.wp-block-comments__legacy-placeholder .comment-form-author label,.wp-block-post-comments .comment-form-email label,.wp-block-comments__legacy-placeholder .comment-form-email label,.wp-block-post-comments .comment-form-url label,.wp-block-comments__legacy-placeholder .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments .comment-form textarea,.wp-block-comments__legacy-placeholder .comment-form textarea,.wp-block-post-comments .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-comments__legacy-placeholder .comment-form input:not([type=submit]):not([type=checkbox]){display:block;box-sizing:border-box;width:100%}.wp-block-post-comments .comment-form-cookies-consent,.wp-block-comments__legacy-placeholder .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent,.wp-block-comments__legacy-placeholder .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments .comment-reply-title,.wp-block-comments__legacy-placeholder .comment-reply-title{margin-bottom:0}.wp-block-post-comments .comment-reply-title :where(small),.wp-block-comments__legacy-placeholder .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium, smaller);margin-left:.5em}.wp-block-post-comments .reply,.wp-block-comments__legacy-placeholder .reply{font-size:.875em;margin-bottom:1.4em}.wp-block-post-comments textarea,.wp-block-comments__legacy-placeholder textarea,.wp-block-post-comments input:not([type=submit]),.wp-block-comments__legacy-placeholder input:not([type=submit]){border:1px solid #949494;font-size:1em;font-family:inherit}.wp-block-post-comments textarea,.wp-block-comments__legacy-placeholder textarea,.wp-block-post-comments input:not([type=submit]):not([type=checkbox]),.wp-block-comments__legacy-placeholder input:not([type=submit]):not([type=checkbox]){padding:calc(.667em + 2px)}:where(.wp-block-post-comments input[type=submit]){border:none}.block-library-comments-toolbar__popover .components-popover__content{min-width:230px}.wp-block-comments__legacy-placeholder *{pointer-events:none}.wp-block-comment-author-avatar__placeholder{border:currentColor 1px dashed;width:100%;height:100%;stroke:currentColor;stroke-dasharray:3}.wp-block[data-align=center]>.wp-block-comments-pagination{justify-content:center}:where(.editor-styles-wrapper) .wp-block-comments-pagination{max-width:100%}:where(.editor-styles-wrapper) .wp-block-comments-pagination.block-editor-block-list__layout{margin:0}.wp-block-comments-pagination>.wp-block-comments-pagination-next,.wp-block-comments-pagination>.wp-block-comments-pagination-previous,.wp-block-comments-pagination>.wp-block-comments-pagination-numbers{margin:.5em .5em .5em 0}.wp-block-comments-pagination>.wp-block-comments-pagination-next:last-child,.wp-block-comments-pagination>.wp-block-comments-pagination-previous:last-child,.wp-block-comments-pagination>.wp-block-comments-pagination-numbers:last-child{margin-right:0}.wp-block-comments-pagination-numbers a{text-decoration:underline}.wp-block-comments-pagination-numbers .page-numbers{margin-right:2px}.wp-block-comments-pagination-numbers .page-numbers:last-child{margin-right:0}.wp-block-comments-title.has-background{padding:inherit}.wp-block-cover.is-placeholder{padding:0!important;display:flex;align-items:stretch;min-height:240px}.wp-block-cover.is-placeholder .components-placeholder.is-large{justify-content:flex-start;z-index:1}.wp-block-cover.is-placeholder:focus:after{min-height:auto}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover.is-transient{position:relative}.wp-block-cover.is-transient:before{background-color:#fff;content:"";height:100%;opacity:.3;position:absolute;width:100%;z-index:1}.wp-block-cover .components-spinner{position:absolute;z-index:1;top:50%;left:50%;transform:translate(-50%,-50%);margin:0}.wp-block-cover .wp-block-cover__inner-container{text-align:left;margin-left:0;margin-right:0}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}.wp-block-cover .wp-block-cover__image--placeholder-image{position:absolute;inset:0}[data-align=left]>.wp-block-cover,[data-align=right]>.wp-block-cover{max-width:420px;width:100%}.block-library-cover__reset-button{margin-left:auto}.block-library-cover__resize-container{position:absolute!important;inset:0;min-height:50px}.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .components-popover__content>div,.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .block-library-cover__resize-container{pointer-events:none;overflow:visible}.wp-block-cover>.components-drop-zone .components-drop-zone__content{opacity:.8!important}.block-editor-block-patterns-list__list-item .has-parallax.wp-block-cover{background-attachment:scroll}.color-block-support-panel__inner-wrapper>:not(.block-editor-tools-panel-color-gradient-settings__item){margin-top:24px}.wp-block-details summary div{display:inline}.wp-block-embed{margin-left:0;margin-right:0;clear:both}.wp-block-embed.is-loading{display:flex;justify-content:center}.wp-block-embed .wp-block-embed__placeholder-input{flex:1 1 auto}.wp-block-embed .components-placeholder__error{word-break:break-word}.wp-block-post-content .wp-block-embed__learn-more a{color:var(--wp-admin-theme-color)}.block-library-embed__interactive-overlay{position:absolute;inset:0;opacity:0}.wp-block[data-align=left]>.wp-block-embed,.wp-block[data-align=right]>.wp-block-embed{max-width:360px;width:100%}.wp-block[data-align=left]>.wp-block-embed .wp-block-embed__wrapper,.wp-block[data-align=right]>.wp-block-embed .wp-block-embed__wrapper{min-width:280px}.wp-block-file{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;margin-bottom:0}.wp-block[data-align=left]>.wp-block-file,.wp-block[data-align=right]>.wp-block-file{height:auto}.wp-block[data-align=center]>.wp-block-file{text-align:center}.wp-block-file .components-resizable-box__container{margin-bottom:1em}.wp-block-file .wp-block-file__preview{margin-bottom:1em;width:100%;height:100%}.wp-block-file .wp-block-file__preview-overlay{position:absolute;inset:0}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file a{min-width:1em}.wp-block-file a:not(.wp-block-file__button){display:inline-block}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-left:.75em}.wp-block-form-input .is-input-hidden{font-size:.85em;opacity:.3;border:1px dashed;padding:.5em;box-sizing:border-box;background:repeating-linear-gradient(45deg,transparent,transparent 5px,currentColor 5px,currentColor 6px)}.wp-block-form-input .is-input-hidden input[type=text]{background:transparent}.wp-block-form-input.is-selected .is-input-hidden{opacity:1;background:none}.wp-block-form-input.is-selected .is-input-hidden input[type=text]{background:unset}.wp-block-form-submission-notification>*{opacity:.25;border:1px dashed;box-sizing:border-box;background:repeating-linear-gradient(45deg,transparent,transparent 5px,currentColor 5px,currentColor 6px)}.wp-block-form-submission-notification.is-selected>*,.wp-block-form-submission-notification:has(.is-selected)>*{opacity:1;background:none}.wp-block-form-submission-notification.is-selected:after,.wp-block-form-submission-notification:has(.is-selected):after{display:none!important}.wp-block-form-submission-notification:after{display:flex;position:absolute;width:100%;height:100%;top:0;left:0;justify-content:center;align-items:center;font-size:1.1em}.wp-block-form-submission-notification.form-notification-type-success:after{content:attr(data-message-success)}.wp-block-form-submission-notification.form-notification-type-error:after{content:attr(data-message-error)}.wp-block-freeform.block-library-rich-text__tinymce{height:auto}.wp-block-freeform.block-library-rich-text__tinymce p,.wp-block-freeform.block-library-rich-text__tinymce li{line-height:1.8}.wp-block-freeform.block-library-rich-text__tinymce ul,.wp-block-freeform.block-library-rich-text__tinymce ol{padding-left:2.5em;margin-left:0}.wp-block-freeform.block-library-rich-text__tinymce blockquote{margin:0;box-shadow:inset 0 0 #ddd;border-left:4px solid #000;padding-left:1em}.wp-block-freeform.block-library-rich-text__tinymce pre{white-space:pre-wrap;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;color:#1e1e1e}.wp-block-freeform.block-library-rich-text__tinymce>*:first-child{margin-top:0}.wp-block-freeform.block-library-rich-text__tinymce>*:last-child{margin-bottom:0}.wp-block-freeform.block-library-rich-text__tinymce.mce-edit-focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce a{color:var(--wp-admin-theme-color)}.wp-block-freeform.block-library-rich-text__tinymce:focus a[data-mce-selected]{padding:0 2px;margin:0 -2px;border-radius:2px;box-shadow:0 0 0 1px #e5f5fa;background:#e5f5fa}.wp-block-freeform.block-library-rich-text__tinymce code{padding:2px;border-radius:2px;color:#1e1e1e;background:#f0f0f0;font-family:Menlo,Consolas,monaco,monospace;font-size:14px}.wp-block-freeform.block-library-rich-text__tinymce:focus code[data-mce-selected]{background:#ddd}.wp-block-freeform.block-library-rich-text__tinymce .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-freeform.block-library-rich-text__tinymce .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-freeform.block-library-rich-text__tinymce .aligncenter{display:block;margin-left:auto;margin-right:auto}.wp-block-freeform.block-library-rich-text__tinymce .wp-more-tag{width:96%;height:20px;display:block;margin:15px auto;outline:0;cursor:default;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAADtgAAAAoBAMAAAA86gLBAAAAJFBMVEVMaXG7u7vBwcHDw8POzs68vLzGxsbMzMy+vr7AwMDQ0NDGxsYKLGzpAAAADHRSTlMA///zWf+/f///TMxNVGuqAAABwklEQVR4Ae3dMXLaQBTH4bfj8UCpx8hq0vgKvgFNemhT6Qo6gg6R+0ZahM2QLmyBJ99XWP9V5+o3jIUcLQEAAAAAAAAAAAAAAAAAAAAAAABQ8j0WL9lfTtlt18uNXAUA8O/KVtfa1tdcrOdSh9gCQAMlh1hMNbZZ1bsrsQWABsrhLRbz7z5in/32UbfUMUbkMQCAh5RfGYv82UdMdZ6HS2wjT2ILAI8r3XmM2B3WvM59vfO2xXYW2yYAENuPU8S+X/N67mKxzy225yaxBQCxLV392UdcvwV0jPVUj98ntkBWT7C7+9u2/V/vGtvXIWJ6/4rtbottWa6Ri0NUT/u72LYttrb97LHdvUXMxxrb8TO2W2TF1rYbbLG1bbGNjMi4+2Sbi1FsbbvNFlvbFtt5fDnE3d9sP1/XeIyV2Nr2U2/guZUuptNrH/dPI9eLB6SaAEBs6wPJf3/PNk9tYgsAYrv/8TFuzx/fvkFqGtrEFgDEdpcZUb7ejXy6ntrEFgDENvL6gsas4vbdyKt4DACI7TxElJv/Z7udpqFNbAFAbKduy2uU2trttM/x28UWAAAAAAAAAAAAAAAAAAAAAAAAAADgDyPwGmGTCZp7AAAAAElFTkSuQmCC);background-size:1900px 20px;background-repeat:no-repeat;background-position:center}.wp-block-freeform.block-library-rich-text__tinymce img::selection{background-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce div.mceTemp{-ms-user-select:element}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption{margin:0;max-width:100%}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption a,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption img{display:block}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption *{-webkit-user-drag:none}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption .wp-caption-dd{padding-top:.5em;margin:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview{width:99.99%;position:relative;clear:both;margin-bottom:16px;border:1px solid transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview iframe{display:block;max-width:100%;background:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .mce-shim{position:absolute;inset:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected="2"] .mce-shim{display:none}.wp-block-freeform.block-library-rich-text__tinymce .wpview .loading-placeholder{border:1px dashed #ddd;padding:10px}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error{border:1px solid #ddd;padding:1em 0;margin:0;word-wrap:break-word}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error p{margin:0;text-align:center}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .loading-placeholder,.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .wpview-error{border-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .dashicons{display:block;margin:0 auto;width:32px;height:32px;font-size:32px}.wp-block-freeform.block-library-rich-text__tinymce .wpview.wpview-type-gallery:after{content:"";display:table;clear:both}.wp-block-freeform.block-library-rich-text__tinymce .gallery img[data-mce-selected]:focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce .gallery a{cursor:default}.wp-block-freeform.block-library-rich-text__tinymce .gallery{margin:auto -6px;padding:6px 0;line-height:1;overflow-x:hidden}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-item{float:left;margin:0;text-align:center;padding:6px;box-sizing:border-box}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption,.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-icon{margin:0}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption{font-size:13px;margin:4px 0}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-1 .gallery-item{width:100%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-2 .gallery-item{width:50%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-3 .gallery-item{width:33.3333333333%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-4 .gallery-item{width:25%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-5 .gallery-item{width:20%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-6 .gallery-item{width:16.6666666667%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-7 .gallery-item{width:14.2857142857%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-8 .gallery-item{width:12.5%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-9 .gallery-item{width:11.1111111111%}.wp-block-freeform.block-library-rich-text__tinymce .gallery img{max-width:100%;height:auto;border:none;padding:0}div[data-type="core/freeform"]:before{transition:border-color .1s linear,box-shadow .1s linear;border:1px solid #ddd;outline:1px solid transparent}@media (prefers-reduced-motion: reduce){div[data-type="core/freeform"]:before{transition-duration:0s;transition-delay:0s}}div[data-type="core/freeform"].is-selected:before{border-color:#1e1e1e}div[data-type="core/freeform"] .block-editor-block-contextual-toolbar+div{margin-top:0;padding-top:0}div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce:after{content:"";display:table;clear:both}.mce-toolbar-grp .mce-btn.mce-active button,.mce-toolbar-grp .mce-btn.mce-active:hover button,.mce-toolbar-grp .mce-btn.mce-active i,.mce-toolbar-grp .mce-btn.mce-active:hover i{color:#1e1e1e}.mce-toolbar-grp .mce-rtl .mce-flow-layout-item.mce-last{margin-right:0;margin-left:8px}.mce-toolbar-grp .mce-btn i{font-style:normal}.block-library-classic__toolbar{display:none;width:auto;margin:0 0 8px;position:sticky;z-index:31;top:0;border:1px solid #ddd;border-bottom:none;border-radius:2px;padding:0}div[data-type="core/freeform"].is-selected .block-library-classic__toolbar{display:block;border-color:#1e1e1e}.block-library-classic__toolbar .mce-tinymce{box-shadow:none}@media (min-width: 600px){.block-library-classic__toolbar{padding:0}}.block-library-classic__toolbar:empty{display:block;background:#f5f5f5;border-bottom:1px solid #e2e4e7}.block-library-classic__toolbar:empty:before{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;content:attr(data-placeholder);color:#555d66;line-height:37px;padding:14px}.block-library-classic__toolbar div.mce-toolbar-grp{border-bottom:1px solid #1e1e1e}.block-library-classic__toolbar .mce-tinymce-inline,.block-library-classic__toolbar .mce-tinymce-inline>div,.block-library-classic__toolbar div.mce-toolbar-grp,.block-library-classic__toolbar div.mce-toolbar-grp>div,.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar .mce-menubar>div{height:auto!important;width:100%!important}.block-library-classic__toolbar .mce-container-body.mce-abs-layout{overflow:visible}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar div.mce-toolbar-grp{position:static}.block-library-classic__toolbar .mce-toolbar-grp>div{padding:1px 3px}.block-library-classic__toolbar .mce-toolbar-grp .mce-toolbar:not(:first-child){display:none}.block-library-classic__toolbar.has-advanced-toolbar .mce-toolbar-grp .mce-toolbar{display:block}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area iframe{height:50vh!important}@media (min-width: 960px){.block-editor-freeform-modal .block-editor-freeform-modal__content:not(.is-full-screen){height:9999rem}.block-editor-freeform-modal .block-editor-freeform-modal__content .components-modal__header+div{height:100%}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-tinymce{height:calc(100% - 52px)}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-container-body{height:100%;display:flex;flex-direction:column;min-width:50vw}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area{flex-grow:1;display:flex;flex-direction:column}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area iframe{flex-grow:1;height:10px!important}}.block-editor-freeform-modal__actions{margin-top:16px}:root :where(figure.wp-block-gallery){display:block}:root :where(figure.wp-block-gallery)>.blocks-gallery-caption{flex:0 0 100%}:root :where(figure.wp-block-gallery)>.blocks-gallery-media-placeholder-wrapper{flex-basis:100%}:root :where(figure.wp-block-gallery) .wp-block-image .components-notice.is-error{display:block}:root :where(figure.wp-block-gallery) .wp-block-image .components-notice__content{margin:4px 0}:root :where(figure.wp-block-gallery) .wp-block-image .components-notice__dismiss{position:absolute;top:0;right:5px}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .components-placeholder__label{display:none}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button{margin-bottom:0}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder{margin:0}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder .components-placeholder__label{display:flex}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder figcaption{z-index:2}:root :where(figure.wp-block-gallery) .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.gallery-settings-buttons .components-button:first-child{margin-right:8px}.gallery-image-sizes .components-base-control__label{margin-bottom:4px}.gallery-image-sizes .gallery-image-sizes__loading{display:flex;align-items:center;color:#757575;font-size:12px}.gallery-image-sizes .components-spinner{margin:0 8px 0 4px}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected:before{box-shadow:0 0 0 1px #fff inset,0 0 0 3px var(--wp-admin-theme-color) inset;content:"";outline:2px solid transparent;position:absolute;inset:0;z-index:1;pointer-events:none}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu{display:inline-flex}.blocks-gallery-item .block-editor-media-placeholder{margin:0;height:100%}.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label{display:flex}.block-library-gallery-item__inline-menu{display:none;position:absolute;top:-2px;margin:8px;z-index:20;transition:box-shadow .2s ease-out;border-radius:2px;background:#fff;border:1px solid #1e1e1e}@media (prefers-reduced-motion: reduce){.block-library-gallery-item__inline-menu{transition-duration:0s;transition-delay:0s}}.block-library-gallery-item__inline-menu:hover{box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a}@media (min-width: 600px){.columns-7 .block-library-gallery-item__inline-menu,.columns-8 .block-library-gallery-item__inline-menu{padding:2px}}.block-library-gallery-item__inline-menu .components-button.has-icon:not(:focus){border:none;box-shadow:none}@media (min-width: 600px){.columns-7 .block-library-gallery-item__inline-menu .components-button.has-icon,.columns-8 .block-library-gallery-item__inline-menu .components-button.has-icon{padding:0;width:inherit;height:inherit}}.block-library-gallery-item__inline-menu.is-left{left:-2px}.block-library-gallery-item__inline-menu.is-right{right:-2px}.wp-block-gallery ul.blocks-gallery-grid{padding:0;margin:0}@media (min-width: 600px){.wp-block-update-gallery-modal{max-width:480px}}.wp-block-update-gallery-modal-buttons{display:flex;justify-content:flex-end;gap:12px}.wp-block-group .block-editor-block-list__insertion-point{left:0;right:0}[data-type="core/group"].is-selected .block-list-appender{margin-left:0;margin-right:0}[data-type="core/group"].is-selected .has-background .block-list-appender{margin-top:18px;margin-bottom:18px}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child{gap:inherit;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-default-block-appender__content,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{display:inherit;width:100%;flex-direction:inherit;flex:1}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after{content:"";display:flex;flex:1 0 48px;pointer-events:none;min-height:46px;border:1px dashed currentColor}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-button-block-appender{pointer-events:all}.block-library-html__edit .block-library-html__preview-overlay{position:absolute;width:100%;height:100%;top:0;left:0}.block-library-html__edit .block-editor-plain-text{box-sizing:border-box;max-height:250px;font-family:Menlo,Consolas,monaco,monospace!important;color:#1e1e1e!important;background:#fff!important;padding:12px!important;border:1px solid #1e1e1e!important;box-shadow:none!important;border-radius:2px!important;font-size:16px!important;direction:ltr}@media (min-width: 600px){.block-library-html__edit .block-editor-plain-text{font-size:13px!important}}.block-library-html__edit .block-editor-plain-text:focus{border-color:var(--wp-admin-theme-color)!important;box-shadow:0 0 0 1px var(--wp-admin-theme-color)!important;outline:2px solid transparent!important}.wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder{color:#1e1e1e;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;border:none;filter:none!important}.wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder>svg{opacity:0}.wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder .components-placeholder__illustration{display:none}.wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder:before{opacity:0}.wp-block-image.wp-block-image .block-bindings-media-placeholder-message{opacity:0}.wp-block-image.wp-block-image.is-selected .block-bindings-media-placeholder-message{opacity:1}.wp-block-image.wp-block-image .components-placeholder__label,.wp-block-image.wp-block-image .components-placeholder__instructions,.wp-block-image.wp-block-image .components-button{transition:none}figure.wp-block-image:not(.wp-block){margin:0}.wp-block-image{position:relative}.wp-block-image .is-applying img,.wp-block-image.is-transient img{opacity:.3}.wp-block-image figcaption img{display:inline}.wp-block-image .components-spinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);margin:0}.wp-block-image__placeholder{aspect-ratio:4/3}.wp-block-image__placeholder.has-illustration:before{background:#fff;opacity:.8}.wp-block-image__placeholder .components-placeholder__illustration{opacity:.1}.wp-block-image .components-resizable-box__container{display:table}.wp-block-image .components-resizable-box__container img{display:block;width:inherit;height:inherit}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{position:absolute;left:0;right:0;margin:-1px 0}@media (min-width: 600px){.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{margin:-1px}}[data-align=wide]>.wp-block-image img,[data-align=full]>.wp-block-image img{height:auto;width:100%}.wp-block[data-align=left]>.wp-block-image,.wp-block[data-align=center]>.wp-block-image,.wp-block[data-align=right]>.wp-block-image{display:table}.wp-block[data-align=left]>.wp-block-image>figcaption,.wp-block[data-align=center]>.wp-block-image>figcaption,.wp-block[data-align=right]>.wp-block-image>figcaption{display:table-caption;caption-side:bottom}.wp-block[data-align=left]>.wp-block-image{margin:.5em 1em .5em 0}.wp-block[data-align=right]>.wp-block-image{margin:.5em 0 .5em 1em}.wp-block[data-align=center]>.wp-block-image{margin-left:auto;margin-right:auto;text-align:center}.wp-block-image__crop-area{position:relative;max-width:100%;width:100%;overflow:hidden}.wp-block-image__crop-area .reactEasyCrop_Container{pointer-events:auto}.wp-block-image__crop-area .reactEasyCrop_Container .reactEasyCrop_Image{border:none;border-radius:0}.wp-block-image__crop-icon{padding:0 8px;min-width:48px;display:flex;justify-content:center;align-items:center}.wp-block-image__crop-icon svg{fill:currentColor}.wp-block-image__zoom .components-popover__content{min-width:260px;overflow:visible!important}.wp-block-image__toolbar_content_textarea{width:250px}.wp-block-latest-posts>li{overflow:hidden}.wp-block-latest-posts li a>div{display:inline}:root :where(.wp-block-latest-posts){padding-left:2.5em}:root :where(.wp-block-latest-posts.is-grid),:root :where(.wp-block-latest-posts__list){padding-left:0}.wp-block-latest-posts__post-content-radio{margin-bottom:24px}.wp-block-latest-posts__post-content-radio:last-child{margin-bottom:8px}.wp-block-media-text__media{position:relative}.wp-block-media-text__media.is-transient img{opacity:.3}.wp-block-media-text__media .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.wp-block-media-text .__resizable_base__{grid-column:1/span 2;grid-row:2}.wp-block-media-text .editor-media-container__resizer{width:100%!important}.wp-block-media-text.is-image-fill .editor-media-container__resizer,.wp-block-media-text.is-image-fill .components-placeholder.has-illustration,.wp-block-media-text.is-image-fill-element .editor-media-container__resizer,.wp-block-media-text.is-image-fill-element .components-placeholder.has-illustration{height:100%!important}.wp-block-media-text>.block-editor-block-list__layout>.block-editor-block-list__block{max-width:unset}.wp-block-media-text--placeholder-image{min-height:205px}.block-editor-block-list__block[data-type="core/more"]{max-width:100%;text-align:center;margin-top:28px;margin-bottom:28px}.wp-block-more{display:block;text-align:center;white-space:nowrap}.wp-block-more input[type=text]{position:relative;font-size:13px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#757575;border:none;box-shadow:none;white-space:nowrap;text-align:center;margin:0;border-radius:4px;background:#fff;padding:6px 8px;height:24px;max-width:100%}.wp-block-more input[type=text]:focus{box-shadow:none}.wp-block-more:before{content:"";position:absolute;top:50%;left:0;right:0;border-top:3px dashed #ccc}.editor-styles-wrapper .wp-block-navigation ul{margin-top:0;margin-bottom:0;margin-left:0;padding-left:0}.editor-styles-wrapper .wp-block-navigation .wp-block-navigation-item.wp-block{margin:revert}.wp-block-navigation-item__label{display:inline}.wp-block-navigation__container,.wp-block-navigation-item{background-color:inherit}.wp-block-navigation:not(.is-selected):not(.has-child-selected) .has-child:hover>.wp-block-navigation__submenu-container{opacity:0;visibility:hidden}.has-child.is-selected>.wp-block-navigation__submenu-container,.has-child.has-child-selected>.wp-block-navigation__submenu-container{display:flex;opacity:1;visibility:visible}.is-dragging-components-draggable .has-child.is-dragging-within>.wp-block-navigation__submenu-container{opacity:1;visibility:visible}.is-editing>.wp-block-navigation__container{visibility:visible;opacity:1;display:flex;flex-direction:column}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container{opacity:1;visibility:hidden}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container .block-editor-block-draggable-chip-wrapper{visibility:visible}.is-editing>.wp-block-navigation__submenu-container>.block-list-appender{display:block;position:static;width:100%}.is-editing>.wp-block-navigation__submenu-container>.block-list-appender .block-editor-button-block-appender{color:#fff;background:#1e1e1e;padding:0;width:24px;margin-right:0;margin-left:auto}.wp-block-navigation__submenu-container .block-list-appender{display:none}.block-library-colors-selector{width:auto}.block-library-colors-selector .block-library-colors-selector__toggle{display:block;margin:0 auto;padding:3px;width:auto}.block-library-colors-selector .block-library-colors-selector__icon-container{height:30px;position:relative;margin:0 auto;padding:3px;display:flex;align-items:center;border-radius:4px}.block-library-colors-selector .block-library-colors-selector__state-selection{margin-left:auto;margin-right:auto;border-radius:11px;box-shadow:inset 0 0 0 1px #0003;width:22px;min-width:22px;height:22px;min-height:22px;line-height:20px;padding:2px}.block-library-colors-selector .block-library-colors-selector__state-selection>svg{min-width:auto!important}.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg,.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg path{color:inherit}.block-library-colors-selector__popover .color-palette-controller-container{padding:16px}.block-library-colors-selector__popover .components-base-control__label{height:20px;line-height:20px}.block-library-colors-selector__popover .component-color-indicator{float:right;margin-top:2px}.block-library-colors-selector__popover .components-panel__body-title{display:none}.wp-block-navigation .wp-block+.block-list-appender .block-editor-button-block-appender{background-color:#1e1e1e;color:#fff}.wp-block-navigation .wp-block+.block-list-appender .block-editor-button-block-appender.block-editor-button-block-appender.block-editor-button-block-appender{padding:0}.wp-block-navigation .wp-block .wp-block .block-editor-button-block-appender{background-color:transparent;color:#1e1e1e}@keyframes loadingpulse{0%{opacity:1}50%{opacity:.5}to{opacity:1}}.components-placeholder.wp-block-navigation-placeholder{outline:none;padding:0;box-shadow:none;background:none;min-height:0;color:inherit}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset{font-size:inherit}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset .components-button{margin-bottom:0}.wp-block-navigation.is-selected .components-placeholder.wp-block-navigation-placeholder{color:#1e1e1e}.wp-block-navigation-placeholder__preview{display:flex;align-items:center;min-width:96px;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:currentColor;background:transparent}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__preview{display:none}.wp-block-navigation-placeholder__preview:before{content:"";display:block;position:absolute;inset:0;pointer-events:none;border:1px dashed currentColor;border-radius:inherit}.wp-block-navigation-placeholder__preview>svg{fill:currentColor}.wp-block-navigation.is-vertical .is-small .components-placeholder__fieldset,.wp-block-navigation.is-vertical .is-medium .components-placeholder__fieldset{min-height:90px}.wp-block-navigation.is-vertical .is-large .components-placeholder__fieldset{min-height:132px}.wp-block-navigation-placeholder__preview,.wp-block-navigation-placeholder__controls{padding:6px 8px;flex-direction:row;align-items:flex-start}.wp-block-navigation-placeholder__controls{border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;display:none;position:relative;z-index:1;float:left;width:100%}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__controls{display:flex}.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator+hr,.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator,.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator+hr{display:none}.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions,.wp-block-navigation.is-vertical .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions{flex-direction:column;align-items:flex-start}.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr,.wp-block-navigation.is-vertical .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr{display:none}.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__icon{margin-right:12px;height:36px}.wp-block-navigation-placeholder__actions__indicator{display:flex;padding:0 6px 0 0;align-items:center;justify-content:flex-start;line-height:0;height:36px;margin-left:4px}.wp-block-navigation-placeholder__actions__indicator svg{margin-right:4px;fill:currentColor}.wp-block-navigation .components-placeholder.is-medium .components-placeholder__fieldset{flex-direction:row!important}.wp-block-navigation-placeholder__actions{display:flex;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;gap:6px;align-items:center;height:100%}.wp-block-navigation-placeholder__actions .components-dropdown,.wp-block-navigation-placeholder__actions>.components-button{margin-right:0}.wp-block-navigation-placeholder__actions.wp-block-navigation-placeholder__actions hr{border:0;min-height:1px;min-width:1px;background-color:#1e1e1e;margin:auto 0;height:100%;max-height:16px}@media (min-width: 600px){.wp-block-navigation__responsive-container:not(.is-menu-open) .components-button.wp-block-navigation__responsive-container-close{display:none}}.wp-block-navigation__responsive-container.is-menu-open{position:fixed;top:155px}@media (min-width: 782px){.wp-block-navigation__responsive-container.is-menu-open{top:93px}}@media (min-width: 782px){.wp-block-navigation__responsive-container.is-menu-open{left:36px}}@media (min-width: 960px){.wp-block-navigation__responsive-container.is-menu-open{left:160px}}.is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:141px}.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{left:0;top:155px}@media (min-width: 782px){.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{top:61px}}.is-fullscreen-mode .is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-fullscreen-mode .is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:109px}body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-open{inset:0}.components-button.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open,.components-button.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close{padding:0;height:auto;color:inherit}.components-heading.wp-block-navigation-off-canvas-editor__title{margin:0}.wp-block-navigation-off-canvas-editor__header{margin-bottom:8px}.is-menu-open .wp-block-navigation__responsive-container-content * .block-list-appender{margin-top:16px}@keyframes fadein{0%{opacity:0}to{opacity:1}}.wp-block-navigation__loading-indicator-container{padding:8px 12px}.wp-block-navigation .wp-block-navigation__uncontrolled-inner-blocks-loading-indicator{margin-top:0}@keyframes fadeouthalf{0%{opacity:1}to{opacity:.5}}.wp-block-navigation-delete-menu-button{width:100%;justify-content:center;margin-bottom:16px}.components-button.is-link.wp-block-navigation-manage-menus-button{margin-bottom:16px}.wp-block-navigation__overlay-menu-preview{display:flex;align-items:center;justify-content:space-between;width:100%;background-color:#f0f0f0;padding:0 24px;height:64px;margin-bottom:12px}.wp-block-navigation__overlay-menu-preview.open{box-shadow:inset 0 0 0 1px #e0e0e0;outline:1px solid transparent;background-color:#fff}.wp-block-navigation__toolbar-menu-selector.components-toolbar-group:empty{display:none}.wp-block-navigation-placeholder__actions hr+hr{display:none}.wp-block-navigation__navigation-selector{margin-bottom:16px;width:100%}.wp-block-navigation__navigation-selector-button{border:1px solid;justify-content:space-between;width:100%}.wp-block-navigation__navigation-selector-button__icon{flex:0 0 auto}.wp-block-navigation__navigation-selector-button__label{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wp-block-navigation__navigation-selector-button--createnew{border:1px solid;margin-bottom:16px;width:100%}.wp-block-navigation__responsive-container-open.components-button{opacity:1}.wp-block-navigation__menu-inspector-controls{overflow-x:auto;scrollbar-width:thin;scrollbar-gutter:stable both-edges;scrollbar-color:transparent transparent;will-change:transform}.wp-block-navigation__menu-inspector-controls::-webkit-scrollbar{width:12px;height:12px}.wp-block-navigation__menu-inspector-controls::-webkit-scrollbar-track{background-color:transparent}.wp-block-navigation__menu-inspector-controls::-webkit-scrollbar-thumb{background-color:transparent;border-radius:8px;border:3px solid transparent;background-clip:padding-box}.wp-block-navigation__menu-inspector-controls:hover::-webkit-scrollbar-thumb,.wp-block-navigation__menu-inspector-controls:focus::-webkit-scrollbar-thumb,.wp-block-navigation__menu-inspector-controls:focus-within::-webkit-scrollbar-thumb{background-color:#949494}.wp-block-navigation__menu-inspector-controls:hover,.wp-block-navigation__menu-inspector-controls:focus,.wp-block-navigation__menu-inspector-controls:focus-within{scrollbar-color:#949494 transparent}@media (hover: none){.wp-block-navigation__menu-inspector-controls{scrollbar-color:#949494 transparent}}.wp-block-navigation__menu-inspector-controls__empty-message{margin-left:24px}.wp-block-navigation__overlay-menu-icon-toggle-group{margin-bottom:16px}.wp-block-navigation .block-list-appender{position:relative}.wp-block-navigation .has-child{cursor:pointer}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{z-index:28}.wp-block-navigation .has-child:hover .wp-block-navigation__submenu-container{z-index:29}.wp-block-navigation .has-child.is-selected>.wp-block-navigation__submenu-container,.wp-block-navigation .has-child.has-child-selected>.wp-block-navigation__submenu-container{visibility:visible!important;opacity:1!important;min-width:200px!important;height:auto!important;width:auto!important;overflow:visible!important}.wp-block-navigation-item .wp-block-navigation-item__content{cursor:text}.wp-block-navigation-item.is-editing,.wp-block-navigation-item.is-selected{min-width:20px}.wp-block-navigation-item .block-list-appender{margin:16px auto 16px 16px}.wp-block-navigation-link__invalid-item{color:#000}.wp-block-navigation-link__placeholder{position:relative;text-decoration:none!important;box-shadow:none!important;background-image:none!important}.wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span{--wp-underline-color: var(--wp-admin-theme-color);background-image:linear-gradient(45deg,transparent 20%,var(--wp-underline-color) 30%,var(--wp-underline-color) 36%,transparent 46%),linear-gradient(135deg,transparent 54%,var(--wp-underline-color) 64%,var(--wp-underline-color) 70%,transparent 80%);background-position:0 100%;background-size:6px 3px;background-repeat:repeat-x;padding-bottom:.1em}.wp-block-navigation-link__placeholder.wp-block-navigation-item__content{cursor:pointer}.link-control-transform{border-top:1px solid #ccc;padding:0 16px 8px}.link-control-transform__subheading{font-size:11px;text-transform:uppercase;font-weight:500;color:#1e1e1e;margin-bottom:1.5em}.link-control-transform__items{display:flex;justify-content:space-between}.link-control-transform__item{flex-basis:33%;flex-direction:column;gap:8px;height:auto}.wp-block-navigation-submenu{display:block}.wp-block-navigation-submenu .wp-block-navigation__submenu-container{z-index:28}.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container,.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container{visibility:visible!important;opacity:1!important;min-width:200px!important;height:auto!important;width:auto!important;position:absolute;left:-1px;top:100%}@media (min-width: 782px){.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:100%;top:-1px}.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before,.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before{content:"";position:absolute;right:100%;height:100%;display:block;width:.5em;background:transparent}}.block-editor-block-list__block[data-type="core/nextpage"]{max-width:100%;text-align:center;margin-top:28px;margin-bottom:28px}.wp-block-nextpage{display:block;text-align:center;white-space:nowrap}.wp-block-nextpage>span{font-size:13px;position:relative;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#757575;border-radius:4px;background:#fff;padding:6px 8px;height:24px}.wp-block-nextpage:before{content:"";position:absolute;top:50%;left:0;right:0;border-top:3px dashed #ccc}.wp-block-navigation .wp-block-page-list>div,.wp-block-navigation .wp-block-page-list{background-color:inherit}.wp-block-navigation.items-justified-space-between .wp-block-page-list>div,.wp-block-navigation.items-justified-space-between .wp-block-page-list{display:contents;flex:1}.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list>div,.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list>div,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list{flex:inherit}.wp-block-navigation .wp-block-navigation__submenu-container>.wp-block-page-list{display:block}.wp-block-pages-list__item__link{pointer-events:none}@media (min-width: 600px){.wp-block-page-list-modal{max-width:480px}}.wp-block-page-list-modal-buttons{display:flex;justify-content:flex-end;gap:12px}.wp-block-page-list .open-on-click:focus-within>.wp-block-navigation__submenu-container{visibility:visible;opacity:1;width:auto;height:auto;min-width:200px}.wp-block-page-list__loading-indicator-container{padding:8px 12px}.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus{min-height:auto!important}.block-editor-block-list__block[data-empty=true] [data-rich-text-placeholder]{opacity:1}.block-editor-block-list__block[data-empty=true]+.block-editor-block-list__block[data-empty=true]:not([data-custom-placeholder=true]) [data-rich-text-placeholder]{opacity:0}.block-editor-block-list__block[data-type="core/paragraph"].has-text-align-right[style*="writing-mode: vertical-rl"],.block-editor-block-list__block[data-type="core/paragraph"].has-text-align-left[style*="writing-mode: vertical-lr"]{rotate:180deg}.wp-block-post-author__inspector-settings .components-base-control,.wp-block-post-author__inspector-settings .components-base-control:last-child{margin-bottom:0}.wp-block-post-excerpt .wp-block-post-excerpt__excerpt.is-inline{display:inline}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:32px}.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation{text-transform:none;font-style:normal}.wp-block-pullquote .wp-block-pullquote__citation{color:inherit}.wp-block-rss li a>div{display:inline}.wp-block-rss__placeholder-form .wp-block-rss__placeholder-input{flex:1 1 auto}.wp-block[data-align=center] .wp-block-search .wp-block-search__inside-wrapper{margin:auto}.wp-block-search :where(.wp-block-search__button){height:auto;border-radius:initial;display:flex;align-items:center;justify-content:center;text-align:center}.wp-block-search__inspector-controls .components-base-control{margin-bottom:0}.block-editor-block-list__block[data-type="core/separator"]{padding-top:.1px;padding-bottom:.1px}.blocks-shortcode__textarea{box-sizing:border-box;max-height:250px;resize:none;font-family:Menlo,Consolas,monaco,monospace!important;color:#1e1e1e!important;background:#fff!important;padding:12px!important;border:1px solid #1e1e1e!important;box-shadow:none!important;border-radius:2px!important;font-size:16px!important}@media (min-width: 600px){.blocks-shortcode__textarea{font-size:13px!important}}.blocks-shortcode__textarea:focus{border-color:var(--wp-admin-theme-color)!important;box-shadow:0 0 0 1px var(--wp-admin-theme-color)!important;outline:2px solid transparent!important}.wp-block[data-align=center]>.wp-block-site-logo,.wp-block-site-logo.aligncenter>div{display:table;margin-left:auto;margin-right:auto}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo img{display:block;height:auto;max-width:100%}.wp-block-site-logo.is-transient{position:relative}.wp-block-site-logo.is-transient img{opacity:.3}.wp-block-site-logo.is-transient .components-spinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);margin:0}.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{height:60px;width:60px}.wp-block-site-logo.wp-block-site-logo>div,.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container{border-radius:inherit}.wp-block-site-logo.wp-block-site-logo .components-placeholder{display:flex;justify-content:center;align-items:center;padding:0;border-radius:inherit;min-height:48px;min-width:48px;height:100%;width:100%}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-form-file-upload,.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-drop-zone__content-text{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{padding:0;margin:auto;display:flex;justify-content:center;align-items:center;width:48px;height:48px;border-radius:50%;position:relative;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-style:solid;color:#fff}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button>svg{color:inherit}.block-library-site-logo__inspector-upload-container{position:relative}.block-library-site-logo__inspector-upload-container .components-drop-zone__content-icon{display:none}.block-library-site-logo__inspector-upload-container button.components-button,.block-library-site-logo__inspector-media-replace-container button.components-button{color:#1e1e1e;box-shadow:inset 0 0 0 1px #ccc;width:100%;display:block;height:40px}.block-library-site-logo__inspector-upload-container button.components-button:hover,.block-library-site-logo__inspector-media-replace-container button.components-button:hover{color:var(--wp-admin-theme-color)}.block-library-site-logo__inspector-upload-container button.components-button:focus,.block-library-site-logo__inspector-media-replace-container button.components-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-library-site-logo__inspector-upload-container .block-library-site-logo__inspector-media-replace-title,.block-library-site-logo__inspector-media-replace-container .block-library-site-logo__inspector-media-replace-title{word-break:break-all;white-space:normal;text-align:start;text-align-last:center}.block-library-site-logo__inspector-media-replace-container .components-dropdown{display:block}.block-library-site-logo__inspector-media-replace-container img{width:20px;min-width:20px;aspect-ratio:1;box-shadow:inset 0 0 0 1px #0003;border-radius:50%!important}.block-library-site-logo__inspector-media-replace-container .block-library-site-logo__inspector-readonly-logo-preview{padding:6px 12px;display:flex;height:40px}.wp-block-site-tagline__placeholder,.wp-block-site-title__placeholder{padding:1em 0;border:1px dashed}.wp-block-social-links .wp-social-link{line-height:0}.wp-block-social-link-anchor{align-items:center;background:none;border:0;box-sizing:border-box;cursor:pointer;display:inline-flex;font-size:inherit;color:currentColor;height:auto;opacity:1;padding:.25em}.wp-block-social-link-anchor:focus:not(:disabled){border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid transparent}:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link button){padding-left:calc((2/3) * 1em);padding-right:calc((2/3) * 1em)}:root :where(.wp-block-social-links.is-style-logos-only .wp-social-link button){padding:0}.wp-block-social-links div.block-editor-url-input{display:inline-block;margin-left:8px}.wp-social-link:hover{transform:none}:root :where(.wp-block-social-links),:root :where(.wp-block-social-links.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link){padding:0}:root :where(.wp-block-social-links__social-placeholder .wp-social-link){padding:.25em}:root :where(.wp-block-social-links.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-social-link){padding-left:calc((2/3) * 1em);padding-right:calc((2/3) * 1em)}.wp-block-social-links__social-placeholder{display:flex;opacity:.8;list-style:none}.wp-block-social-links__social-placeholder>.wp-social-link{padding-left:0!important;margin-left:0!important;padding-right:0!important;margin-right:0!important;width:0!important;visibility:hidden}.wp-block-social-links__social-placeholder>.wp-block-social-links__social-placeholder-icons{display:flex}.wp-block-social-links__social-placeholder .wp-social-link:before{content:"";display:block;width:1em;height:1em;border-radius:50%}.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link:before{background:currentColor}.wp-block-social-links .wp-block-social-links__social-prompt{min-height:24px;list-style:none;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:24px;margin-top:auto;margin-bottom:auto;cursor:default;padding-right:8px}.wp-block[data-align=center]>.wp-block-social-links,.wp-block.wp-block-social-links.aligncenter{justify-content:center}.block-editor-block-preview__content .components-button:disabled{opacity:1}.wp-social-link.wp-social-link__is-incomplete{opacity:.5}@media (prefers-reduced-motion: reduce){.wp-social-link.wp-social-link__is-incomplete{transition-duration:0s;transition-delay:0s}}.wp-block-social-links .is-selected .wp-social-link__is-incomplete,.wp-social-link.wp-social-link__is-incomplete:hover,.wp-social-link.wp-social-link__is-incomplete:focus{opacity:1}.wp-block-social-links .block-list-appender{position:static}.wp-block-social-links .block-list-appender .block-editor-button-block-appender.components-button.components-button{padding:6px}.wp-block-social-links.has-small-icon-size .block-editor-button-block-appender.components-button.components-button{padding:0}.wp-block-social-links.has-large-icon-size .block-editor-button-block-appender.components-button.components-button{padding:14px}.wp-block-social-links.has-huge-icon-size .block-editor-button-block-appender.components-button.components-button{padding:23px}.block-editor-block-list__block[data-type="core/spacer"]:before{content:"";display:block;position:absolute;z-index:1;width:100%;min-height:8px;min-width:8px;height:100%}.wp-block-spacer.is-hovered .block-library-spacer__resize-container,.block-library-spacer__resize-container.has-show-handle,.wp-block-spacer.is-selected.custom-sizes-disabled{background:#0000001a}.is-dark-theme .wp-block-spacer.is-hovered .block-library-spacer__resize-container,.is-dark-theme .block-library-spacer__resize-container.has-show-handle,.is-dark-theme .wp-block-spacer.is-selected.custom-sizes-disabled{background:#ffffff26}.block-library-spacer__resize-container{clear:both}.block-library-spacer__resize-container:not(.is-resizing){height:100%!important;width:100%!important}.block-library-spacer__resize-container .components-resizable-box__handle:before{content:none}.block-library-spacer__resize-container.resize-horizontal{margin-bottom:0;height:100%!important}.wp-block[data-align=left]>.wp-block-table,.wp-block[data-align=right]>.wp-block-table,.wp-block[data-align=center]>.wp-block-table{height:auto}.wp-block[data-align=left]>.wp-block-table table,.wp-block[data-align=right]>.wp-block-table table,.wp-block[data-align=center]>.wp-block-table table{width:auto}.wp-block[data-align=left]>.wp-block-table td,.wp-block[data-align=left]>.wp-block-table th,.wp-block[data-align=right]>.wp-block-table td,.wp-block[data-align=right]>.wp-block-table th,.wp-block[data-align=center]>.wp-block-table td,.wp-block[data-align=center]>.wp-block-table th{word-break:break-word}.wp-block[data-align=center]>.wp-block-table{text-align:initial}.wp-block[data-align=center]>.wp-block-table table{margin:0 auto}.wp-block-table td,.wp-block-table th{border:1px solid;padding:.5em}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);border-style:double}.wp-block-table table.has-individual-borders>*,.wp-block-table table.has-individual-borders tr,.wp-block-table table.has-individual-borders th,.wp-block-table table.has-individual-borders td{border-width:1px;border-style:solid;border-color:currentColor}.blocks-table__placeholder-form.blocks-table__placeholder-form{display:flex;flex-direction:column;align-items:flex-start;gap:8px}@media (min-width: 782px){.blocks-table__placeholder-form.blocks-table__placeholder-form{flex-direction:row;align-items:flex-end}}.blocks-table__placeholder-input{width:112px}.wp-block-tag-cloud .wp-block-tag-cloud{margin:0;padding:0;border:none;border-radius:inherit}.wp-block-tag-cloud__inspector-settings .components-base-control,.wp-block-tag-cloud__inspector-settings .components-base-control:last-child{margin-bottom:0}.block-editor-template-part__selection-modal{z-index:1000001}.block-editor-template-part__selection-modal .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width: 1280px){.block-editor-template-part__selection-modal .block-editor-block-patterns-list{column-count:3}}.block-editor-template-part__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.block-library-template-part__selection-search{background:#fff;position:sticky;top:0;padding:16px 0;z-index:2}.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected:after,.block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted:after,.block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected:after{outline-color:var(--wp-block-synced-color)}.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after{outline-color:var(--wp-block-synced-color)}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.has-editable-outline:after{border:none}.wp-block-text-columns .block-editor-rich-text__editable:focus{outline:1px solid #ddd}.wp-block[data-align=center]>.wp-block-video{text-align:center}.wp-block-video{position:relative}.wp-block-video.is-transient video{opacity:.3}.wp-block-video .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.editor-video-poster-control .components-button{margin-right:8px}.block-library-video-tracks-editor{z-index:159990}.block-library-video-tracks-editor__track-list-track{padding-left:12px}.block-library-video-tracks-editor__single-track-editor-kind-select{max-width:240px}.block-library-video-tracks-editor__single-track-editor-edit-track-label{margin-top:4px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500;display:block}.block-library-video-tracks-editor>.components-popover__content{width:360px}.block-library-video-tracks-editor__track-list .components-menu-group__label,.block-library-video-tracks-editor__add-tracks-container .components-menu-group__label{padding:0}.editor-styles-wrapper ul.wp-block-post-template{padding-left:0;margin-left:0;list-style:none}.block-library-query-toolbar__popover .components-popover__content{min-width:230px}.block-library-query-toolbar__popover .components-popover__content .block-library-query-toolbar__popover-number-control{margin-bottom:8px}.wp-block-query__create-new-link{padding:0 16px 16px 52px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list{display:grid;grid-template-columns:1fr 1fr 1fr;grid-gap:8px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{max-height:250px}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width: 1280px){.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:3}}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{background:#fff;position:sticky;top:0;padding:16px 0;transform:translateY(-4px);margin-bottom:-4px;z-index:2}@media (min-width: 600px){.wp-block-query__enhanced-pagination-modal{max-width:480px}}.wp-block-query__enhanced-pagination-notice{margin:0}.wp-block[data-align=center]>.wp-block-query-pagination{justify-content:center}:where(.editor-styles-wrapper) .wp-block-query-pagination{max-width:100%}:where(.editor-styles-wrapper) .wp-block-query-pagination.block-editor-block-list__layout{margin:0}.wp-block-query-pagination-numbers a{text-decoration:underline}.wp-block-query-pagination-numbers .page-numbers{margin-right:2px}.wp-block-query-pagination-numbers .page-numbers:last-child{margin-right:0}.wp-block-post-featured-image .block-editor-media-placeholder{z-index:1;-webkit-backdrop-filter:none;backdrop-filter:none}.wp-block-post-featured-image .wp-block-post-featured-image__placeholder,.wp-block-post-featured-image .components-placeholder{justify-content:center;align-items:center;padding:0;display:flex;min-height:200px}.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-form-file-upload,.wp-block-post-featured-image .components-placeholder .components-form-file-upload{display:none}.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button,.wp-block-post-featured-image .components-placeholder .components-button{margin:auto;padding:0;display:flex;justify-content:center;align-items:center;width:48px;height:48px;border-radius:50%;position:relative;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-style:solid;color:#fff}.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button>svg,.wp-block-post-featured-image .components-placeholder .components-button>svg{color:inherit}.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where(.has-border-color),.wp-block-post-featured-image .components-placeholder:where(.has-border-color),.wp-block-post-featured-image img:where(.has-border-color){border-style:solid}.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-top-color]),.wp-block-post-featured-image .components-placeholder:where([style*=border-top-color]),.wp-block-post-featured-image img:where([style*=border-top-color]){border-top-style:solid}.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-right-color]),.wp-block-post-featured-image .components-placeholder:where([style*=border-right-color]),.wp-block-post-featured-image img:where([style*=border-right-color]){border-right-style:solid}.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-bottom-color]),.wp-block-post-featured-image .components-placeholder:where([style*=border-bottom-color]),.wp-block-post-featured-image img:where([style*=border-bottom-color]){border-bottom-style:solid}.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-left-color]),.wp-block-post-featured-image .components-placeholder:where([style*=border-left-color]),.wp-block-post-featured-image img:where([style*=border-left-color]){border-left-style:solid}.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-width]),.wp-block-post-featured-image .components-placeholder:where([style*=border-width]),.wp-block-post-featured-image img:where([style*=border-width]){border-style:solid}.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-top-width]),.wp-block-post-featured-image .components-placeholder:where([style*=border-top-width]),.wp-block-post-featured-image img:where([style*=border-top-width]){border-top-style:solid}.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-right-width]),.wp-block-post-featured-image .components-placeholder:where([style*=border-right-width]),.wp-block-post-featured-image img:where([style*=border-right-width]){border-right-style:solid}.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-bottom-width]),.wp-block-post-featured-image .components-placeholder:where([style*=border-bottom-width]),.wp-block-post-featured-image img:where([style*=border-bottom-width]){border-bottom-style:solid}.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-left-width]),.wp-block-post-featured-image .components-placeholder:where([style*=border-left-width]),.wp-block-post-featured-image img:where([style*=border-left-width]){border-left-style:solid}.wp-block-post-featured-image[style*=height] .components-placeholder{min-height:48px;min-width:48px;height:100%;width:100%}.wp-block-post-featured-image>a{cursor:default}.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-button,.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-placeholder__instructions,.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-placeholder__label{opacity:1;pointer-events:auto}.wp-block-post-featured-image.is-transient{position:relative}.wp-block-post-featured-image.is-transient img{opacity:.3}.wp-block-post-featured-image.is-transient .components-spinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}div[data-type="core/post-featured-image"] img{max-width:100%;height:auto;display:block}.wp-block-post-comments-form *{pointer-events:none}.wp-block-post-comments-form *.block-editor-warning *{pointer-events:auto}.wp-block-post-content.wp-block-post-content{-webkit-user-select:none;user-select:none}.wp-element-button{cursor:revert}.wp-element-button[role=textbox]{cursor:text}:root .editor-styles-wrapper .has-very-light-gray-background-color{background-color:#eee}:root .editor-styles-wrapper .has-very-dark-gray-background-color{background-color:#313131}:root .editor-styles-wrapper .has-very-light-gray-color{color:#eee}:root .editor-styles-wrapper .has-very-dark-gray-color{color:#313131}:root .editor-styles-wrapper .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .editor-styles-wrapper .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb,#ab1dfe)}:root .editor-styles-wrapper .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .editor-styles-wrapper .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .editor-styles-wrapper .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .editor-styles-wrapper .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .editor-styles-wrapper .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}:where(.editor-styles-wrapper) .has-regular-font-size{font-size:16px}:where(.editor-styles-wrapper) .has-larger-font-size{font-size:42px}:where(.editor-styles-wrapper) iframe:not([frameborder]){border:0}.wp-block-audio :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-audio :where(figcaption){color:#ffffffa6}.wp-block-audio{margin:0 0 1em}.wp-block-code{border:1px solid #ccc;border-radius:4px;font-family:Menlo,Consolas,monaco,monospace;padding:.8em 1em}.wp-block-embed :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-embed :where(figcaption){color:#ffffffa6}.wp-block-embed{margin:0 0 1em}.blocks-gallery-caption{color:#555;font-size:13px;text-align:center}.is-dark-theme .blocks-gallery-caption{color:#ffffffa6}:root :where(.wp-block-image figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme :root :where(.wp-block-image figcaption){color:#ffffffa6}.wp-block-image{margin:0 0 1em}.wp-block-pullquote{border-top:4px solid currentColor;border-bottom:4px solid currentColor;margin-bottom:1.75em;color:currentColor}.wp-block-pullquote cite,.wp-block-pullquote footer,.wp-block-pullquote__citation{color:currentColor;text-transform:uppercase;font-size:.8125em;font-style:normal}.wp-block-quote{border-left:.25em solid currentColor;margin:0 0 1.75em;padding-left:1em}.wp-block-quote cite,.wp-block-quote footer{color:currentColor;font-size:.8125em;position:relative;font-style:normal}.wp-block-quote:where(.has-text-align-right){border-left:none;border-right:.25em solid currentColor;padding-left:0;padding-right:1em}.wp-block-quote:where(.has-text-align-center){border:none;padding-left:0}.wp-block-quote:where(.is-style-plain),.wp-block-quote.is-style-large,.wp-block-quote.is-large{border:none}.wp-block-search .wp-block-search__label{font-weight:700}.wp-block-search__button{border:1px solid #ccc;padding:.375em .625em}:where(.wp-block-group.has-background){padding:1.25em 2.375em}.wp-block-separator.has-css-opacity{opacity:.4}.wp-block-separator{border:none;border-bottom:2px solid currentColor;margin-left:auto;margin-right:auto}.wp-block-separator.has-alpha-channel-opacity{opacity:initial}.wp-block-separator:not(.is-style-wide):not(.is-style-dots){width:100px}.wp-block-separator.has-background:not(.is-style-dots){border-bottom:none;height:1px}.wp-block-separator.has-background:not(.is-style-wide):not(.is-style-dots){height:2px}.wp-block-table{margin:0 0 1em}.wp-block-table td,.wp-block-table th{word-break:normal}.wp-block-table :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-table :where(figcaption){color:#ffffffa6}.wp-block-video :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-video :where(figcaption){color:#ffffffa6}.wp-block-video{margin:0 0 1em}:root :where(.wp-block-template-part.has-background){padding:1.25em 2.375em;margin-top:0;margin-bottom:0}:root{--wp-admin-theme-color: #007cba;--wp-admin-theme-color--rgb: 0, 124, 186;--wp-admin-theme-color-darker-10: #006ba1;--wp-admin-theme-color-darker-10--rgb: 0, 107, 161;--wp-admin-theme-color-darker-20: #005a87;--wp-admin-theme-color-darker-20--rgb: 0, 90, 135;--wp-admin-border-width-focus: 2px;--wp-block-synced-color: #7a00df;--wp-block-synced-color--rgb: 122, 0, 223;--wp-bound-block-color: var(--wp-block-synced-color)}@media (min-resolution: 192dpi){:root{--wp-admin-border-width-focus: 1.5px}}.block-editor-format-toolbar__image-popover{z-index:159990}.block-editor-format-toolbar__image-popover .block-editor-format-toolbar__image-container-content{width:260px;padding:16px}.block-editor-format-toolbar__link-container-content{display:flex;align-items:center}.block-editor-format-toolbar__link-container-value{margin:7px;flex-grow:1;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-format-toolbar__link-container-value.has-invalid-link{color:#cc1818}.format-library__inline-color-popover [role=tabpanel]{padding:16px}.block-editor-format-toolbar__language-popover .components-popover__content{width:auto;padding:1rem}:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}body{margin:0;font-family:-apple-system;line-height:1.55}*{-webkit-tap-highlight-color:transparent}.components-button:focus:not(:disabled){outline:0!important;box-shadow:none!important}:root .editor-styles-wrapper{padding:0 16px 56px}.editor-styles-wrapper{overflow:hidden;min-height:100vh}.editor-styles-wrapper p{margin-block-start:15px;margin-block-end:15px;font-size:17px;line-height:1.8}.editor-styles-wrapper h2{margin-block-start:30px;margin-block-end:10px}.editor-styles-wrapper h3,h4{margin-block-start:20px;margin-block-end:10px}.editor-styles-wrapper li{font-size:17px;margin-bottom:5px}.rich-text:focus{outline:none}.block-editor-block-popover{display:none}.editor-load-notice{position:fixed;bottom:62px;left:16px;right:16px;z-index:999}.gbkit-editor-toolbar{border-top:.5px solid #c8c7cc;background:#fff;width:100%;display:flex;align-items:center;position:fixed;bottom:0;right:0;left:0;z-index:999;overflow-x:scroll;min-height:46px;transition:position 1.5s linear}.gbkit-editor-toolbar::-webkit-scrollbar{display:none}.block-editor-block-mover__drag-handle{display:none}.block-editor-inserter .block-editor-inserter__toggle{background:#000;color:#fff!important;clip-path:inset(4px 4px 4px 4px);margin:4px 8px 4px 12px;border-radius:24px!important}.block-editor-inserter__menu .block-editor-tabbed-sidebar__close-button{display:none}.block-editor-block-contextual-toolbar{border-bottom:0!important}.gbkit-editor-toolbar_settings_icon{font-size:34px!important;min-width:46px!important}.gbkit-editor-toolbar .block-editor-inserter{border-right:.5px solid #c8c7cc}.gbkit-editor-toolbar .block-editor-inserter button{margin-right:12px}.gbkit-editor-toolbar_toolbar-group{display:flex;align-items:center}.block-editor-block-contextual-toolbar{border-left:.5px solid #c8c7cc!important}.react-modal-sheet-container{border-top-right-radius:16px!important;border-top-left-radius:16px!important;box-shadow:#0000001a 0 -2px 10px!important}.components-popover__header-title{padding-left:20px}.components-popover.is-expanded .components-popover__content{border-radius:0!important;padding:0 8px}.block-settings-menu{position:absolute;inset:0;background-color:#fff;transform:none!important;position:fixed!important;overflow:scroll}.block-settings-menu__header{display:flex;flex-direction:column;align-items:end}.block-settings-menu__close{margin:8px 8px 0 0}.block-settings-menu .components-popover__content{width:100%;min-height:100vh}.block-inspector-siderbar{background:#f6f6fb;border-left:.5px solid #c8c7cc;width:320px}.block-editor-block-list__layout .block-editor-inserter,.block-editor-block-list__block-side-inserter-popover{display:none}.wp-block-image div{width:auto!important}.block-editor-tabbed-sidebar__tablist button{font-size:16px}.block-editor-inserter__menu{overflow-y:auto!important}.block-editor-inserter__popover .block-editor-inserter__menu{margin-bottom:auto!important;margin-top:auto!important}.block-editor-inserter__menu .block-editor-tabbed-sidebar__tabpanel button{font-size:16px}.block-editor-inserter__menu .block-editor-tabbed-sidebar__tabpanel .block-editor-inserter__patterns-category-panel-title{font-size:18px}.block-editor-inserter__menu .block-editor-tabbed-sidebar__tabpanel .block-editor-block-patterns-list__item-title{font-size:16px}.block-editor-inserter__popover .components-dropdown__content .components-popover__content{padding:0 8px!important}.components-input-base{border-radius:8px!important}.block-editor-inserter__panel-header{display:block;border-bottom:1px solid lightgray;padding-bottom:12px}.components-popover__header-title{font-size:17px;font-weight:600;text-align:center}.block-editor-inserter__panel-title{font-size:15px;font-weight:600;margin-left:12px}.components-draggable-drag-component-root{display:none!important}.components-button.block-editor-block-types-list__item{-webkit-tap-highlight-color:transparent;pointer-events:auto}.components-button.block-editor-block-types-list__item:not(:disabled):hover:after{background:transparent}.components-button[aria-expanded=true],.components-button:hover:not(:disabled,[aria-disabled=true]){color:inherit}.components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title{color:inherit!important}.components-button.block-editor-block-types-list__item:not(:disabled):hover svg{color:inherit!important}.block-editor-block-types-list__list-item{pointer-events:auto}.block-editor-block-types-list__item{pointer-events:none}.block-editor-block-types-list__item-icon{scale:1.3}.block-editor-block-types-list__item-title{font-size:17px}.block-editor-block-card__title{font-size:17px;font-weight:600}.block-editor-block-card__description{font-size:15px!important;margin-top:-4px!important}.block-editor-block-inspector h2{font-size:17px!important;font-weight:600!important}.block-editor-block-inspector .block-editor-block-icon{padding-top:4px;margin-right:8px}.components-base-control__help{font-size:13px!important}.components-menu-group__label{font-size:13px}.components-accessible-toolbar .components-button.is-pressed:before,.components-toolbar .components-button.is-pressed:before{border-radius:8px}.components-dropdown-menu__menu-item{min-height:40px}.block-editor-default-block-appender__content{color:gray}.components-text{font-size:17px}.components-button{border-radius:8px}.components-panel__body-title{font-size:15px}.components-button{font-size:17px}.block-editor-block-card__title{font-size:15px!important}.components-toggle-control__label{font-size:17px}.components-popover__content{border-radius:8px!important}.components-menu-item__item span{font-size:17px!important}.components-base-control__label{font-size:13px!important}.components-placeholder{border-radius:8px!important}.components-placeholder__label{font-size:17px!important}.components-placeholder__input{border-radius:6px!important;font-size:17px!important}.components-text-control__input{border-radius:6px!important}.components-base-control__label{color:gray;font-size:13px!important}.blocks-table__placeholder-form{gap:16px!important}.components-popover.block-editor-block-switcher__popover .components-popover__content{min-width:274px!important}.rich-text [data-rich-text-placeholder]{pointer-events:none}.rich-text [data-rich-text-placeholder]:after{content:attr(data-rich-text-placeholder);opacity:.62}.editor-visual-editor__post-title-wrapper{margin-top:1.5rem;min-height:35px}.editor-visual-editor__post-title-wrapper .wp-block-post-title{font-size:20px!important;margin-bottom:0!important;line-height:1.5!important}.components-editor-notices__snackbar{bottom:54px;padding-left:24px;padding-right:24px;position:fixed;right:0;left:0} diff --git a/Sources/GutenbergKit/Gutenberg/assets/index-BpgbuIxr.js b/Sources/GutenbergKit/Gutenberg/assets/index-RZTgLxeV.js similarity index 97% rename from Sources/GutenbergKit/Gutenberg/assets/index-BpgbuIxr.js rename to Sources/GutenbergKit/Gutenberg/assets/index-RZTgLxeV.js index d427cd5e..dbed26c3 100644 --- a/Sources/GutenbergKit/Gutenberg/assets/index-BpgbuIxr.js +++ b/Sources/GutenbergKit/Gutenberg/assets/index-RZTgLxeV.js @@ -1,4 +1,4 @@ -var O5e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var If0=O5e((Rb0,W4)=>{function A5e(e,t){for(var n=0;no[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function o(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();var In=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function aee(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}),n}var cee={exports:{}},tx={},lee={exports:{}},d0={};/** +var O5e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var $f0=O5e((Eb0,W4)=>{function A5e(e,t){for(var n=0;no[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function o(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();var In=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function aee(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}),n}var cee={exports:{}},tx={},lee={exports:{}},d0={};/** * @license React * react.production.min.js * @@ -14,7 +14,7 @@ var O5e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var If0=O5e((Rb0 * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var L5e=O,j5e=Symbol.for("react.element"),P5e=Symbol.for("react.fragment"),I5e=Object.prototype.hasOwnProperty,D5e=L5e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,F5e={key:!0,ref:!0,__self:!0,__source:!0};function gee(e,t,n){var o,r={},s=null,i=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(i=t.ref);for(o in t)I5e.call(t,o)&&!F5e.hasOwnProperty(o)&&(r[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps,t)r[o]===void 0&&(r[o]=t[o]);return{$$typeof:j5e,type:e,key:s,ref:i,props:r,_owner:D5e.current}}tx.Fragment=P5e;tx.jsx=gee;tx.jsxs=gee;cee.exports=tx;var a=cee.exports;let Ai,ca,du,Yl;const zee=/<(\/)?(\w+)\s*(\/)?>/g;function a6(e,t,n,o,r){return{element:e,tokenStart:t,tokenLength:n,prevOffset:o,leadingTextStart:r,children:[]}}const z1=(e,t)=>{if(Ai=e,ca=0,du=[],Yl=[],zee.lastIndex=0,!$5e(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are React Elements");do;while(V5e(t));return O.createElement(O.Fragment,null,...du)},$5e=e=>{const t=typeof e=="object",n=t&&Object.values(e);return t&&n.length&&n.every(o=>O.isValidElement(o))};function V5e(e){const t=H5e(),[n,o,r,s]=t,i=Yl.length,c=r>ca?ca:null;if(!e[o])return c6(),!1;switch(n){case"no-more-tokens":if(i!==0){const{leadingTextStart:p,tokenStart:f}=Yl.pop();du.push(Ai.substr(p,f))}return c6(),!1;case"self-closed":return i===0?(c!==null&&du.push(Ai.substr(c,r-c)),du.push(e[o]),ca=r+s,!0):(PD(a6(e[o],r,s)),ca=r+s,!0);case"opener":return Yl.push(a6(e[o],r,s,r+s,c)),ca=r+s,!0;case"closer":if(i===1)return U5e(r),ca=r+s,!0;const l=Yl.pop(),u=Ai.substr(l.prevOffset,r-l.prevOffset);l.children.push(u),l.prevOffset=r+s;const d=a6(l.element,l.tokenStart,l.tokenLength,r+s);return d.children=l.children,PD(d),ca=r+s,!0;default:return c6(),!1}}function H5e(){const e=zee.exec(Ai);if(e===null)return["no-more-tokens"];const t=e.index,[n,o,r,s]=e,i=n.length;return s?["self-closed",r,t,i]:o?["closer",r,t,i]:["opener",r,t,i]}function c6(){const e=Ai.length-ca;e!==0&&du.push(Ai.substr(ca,e))}function PD(e){const{element:t,tokenStart:n,tokenLength:o,prevOffset:r,children:s}=e,i=Yl[Yl.length-1],c=Ai.substr(i.prevOffset,n-i.prevOffset);c&&i.children.push(c),i.children.push(O.cloneElement(t,null,...s)),i.prevOffset=r||n+o}function U5e(e){const{element:t,leadingTextStart:n,prevOffset:o,tokenStart:r,children:s}=Yl.pop(),i=e?Ai.substr(o,e-o):Ai.substr(o);i&&s.push(i),n!==null&&du.push(Ai.substr(n,r-n)),du.push(O.cloneElement(t,null,...s))}var Oee={exports:{}},us={},Aee={exports:{}},yee={};/** + */var L5e=O,j5e=Symbol.for("react.element"),P5e=Symbol.for("react.fragment"),I5e=Object.prototype.hasOwnProperty,D5e=L5e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,F5e={key:!0,ref:!0,__self:!0,__source:!0};function gee(e,t,n){var o,r={},s=null,i=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(i=t.ref);for(o in t)I5e.call(t,o)&&!F5e.hasOwnProperty(o)&&(r[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps,t)r[o]===void 0&&(r[o]=t[o]);return{$$typeof:j5e,type:e,key:s,ref:i,props:r,_owner:D5e.current}}tx.Fragment=P5e;tx.jsx=gee;tx.jsxs=gee;cee.exports=tx;var a=cee.exports;let Ai,ca,du,Yl;const zee=/<(\/)?(\w+)\s*(\/)?>/g;function a6(e,t,n,o,r){return{element:e,tokenStart:t,tokenLength:n,prevOffset:o,leadingTextStart:r,children:[]}}const z1=(e,t)=>{if(Ai=e,ca=0,du=[],Yl=[],zee.lastIndex=0,!$5e(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are React Elements");do;while(V5e(t));return O.createElement(O.Fragment,null,...du)},$5e=e=>{const t=typeof e=="object",n=t&&Object.values(e);return t&&n.length&&n.every(o=>O.isValidElement(o))};function V5e(e){const t=H5e(),[n,o,r,s]=t,i=Yl.length,c=r>ca?ca:null;if(!e[o])return c6(),!1;switch(n){case"no-more-tokens":if(i!==0){const{leadingTextStart:p,tokenStart:f}=Yl.pop();du.push(Ai.substr(p,f))}return c6(),!1;case"self-closed":return i===0?(c!==null&&du.push(Ai.substr(c,r-c)),du.push(e[o]),ca=r+s,!0):(PD(a6(e[o],r,s)),ca=r+s,!0);case"opener":return Yl.push(a6(e[o],r,s,r+s,c)),ca=r+s,!0;case"closer":if(i===1)return U5e(r),ca=r+s,!0;const l=Yl.pop(),u=Ai.substr(l.prevOffset,r-l.prevOffset);l.children.push(u),l.prevOffset=r+s;const d=a6(l.element,l.tokenStart,l.tokenLength,r+s);return d.children=l.children,PD(d),ca=r+s,!0;default:return c6(),!1}}function H5e(){const e=zee.exec(Ai);if(e===null)return["no-more-tokens"];const t=e.index,[n,o,r,s]=e,i=n.length;return s?["self-closed",r,t,i]:o?["closer",r,t,i]:["opener",r,t,i]}function c6(){const e=Ai.length-ca;e!==0&&du.push(Ai.substr(ca,e))}function PD(e){const{element:t,tokenStart:n,tokenLength:o,prevOffset:r,children:s}=e,i=Yl[Yl.length-1],c=Ai.substr(i.prevOffset,n-i.prevOffset);c&&i.children.push(c),i.children.push(O.cloneElement(t,null,...s)),i.prevOffset=r||n+o}function U5e(e){const{element:t,leadingTextStart:n,prevOffset:o,tokenStart:r,children:s}=Yl.pop(),i=e?Ai.substr(o,e-o):Ai.substr(o);i&&s.push(i),n!==null&&du.push(Ai.substr(n,r-n)),du.push(O.cloneElement(t,null,...s))}var Oee={exports:{}},ds={},Aee={exports:{}},yee={};/** * @license React * scheduler.production.min.js * @@ -30,32 +30,32 @@ var O5e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var If0=O5e((Rb0 * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var G5e=O,rs=X5e;function Le(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),JC=Object.prototype.hasOwnProperty,K5e=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ID={},DD={};function Y5e(e){return JC.call(DD,e)?!0:JC.call(ID,e)?!1:K5e.test(e)?DD[e]=!0:(ID[e]=!0,!1)}function Z5e(e,t,n,o){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Q5e(e,t,n,o){if(t===null||typeof t>"u"||Z5e(e,t,n,o))return!0;if(o)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ir(e,t,n,o,r,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var go={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){go[e]=new ir(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];go[t]=new ir(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){go[e]=new ir(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){go[e]=new ir(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){go[e]=new ir(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){go[e]=new ir(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){go[e]=new ir(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){go[e]=new ir(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){go[e]=new ir(e,5,!1,e.toLowerCase(),null,!1,!1)});var zE=/[\-:]([a-z])/g;function OE(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(zE,OE);go[t]=new ir(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(zE,OE);go[t]=new ir(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(zE,OE);go[t]=new ir(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){go[e]=new ir(e,1,!1,e.toLowerCase(),null,!1,!1)});go.xlinkHref=new ir("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){go[e]=new ir(e,1,!1,e.toLowerCase(),null,!0,!0)});function AE(e,t,n,o){var r=go.hasOwnProperty(t)?go[t]:null;(r!==null?r.type!==0:o||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),JC=Object.prototype.hasOwnProperty,K5e=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ID={},DD={};function Y5e(e){return JC.call(DD,e)?!0:JC.call(ID,e)?!1:K5e.test(e)?DD[e]=!0:(ID[e]=!0,!1)}function Z5e(e,t,n,o){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Q5e(e,t,n,o){if(t===null||typeof t>"u"||Z5e(e,t,n,o))return!0;if(o)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ir(e,t,n,o,r,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var go={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){go[e]=new ir(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];go[t]=new ir(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){go[e]=new ir(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){go[e]=new ir(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){go[e]=new ir(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){go[e]=new ir(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){go[e]=new ir(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){go[e]=new ir(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){go[e]=new ir(e,5,!1,e.toLowerCase(),null,!1,!1)});var zE=/[\-:]([a-z])/g;function OE(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(zE,OE);go[t]=new ir(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(zE,OE);go[t]=new ir(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(zE,OE);go[t]=new ir(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){go[e]=new ir(e,1,!1,e.toLowerCase(),null,!1,!1)});go.xlinkHref=new ir("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){go[e]=new ir(e,1,!1,e.toLowerCase(),null,!0,!0)});function AE(e,t,n,o){var r=go.hasOwnProperty(t)?go[t]:null;(r!==null?r.type!==0:o||!(2c||r[i]!==s[c]){var l=` -`+r[i].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=c);break}}}finally{u6=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ym(e):""}function J5e(e){switch(e.tag){case 5:return Ym(e.type);case 16:return Ym("Lazy");case 13:return Ym("Suspense");case 19:return Ym("SuspenseList");case 0:case 2:case 15:return e=d6(e.type,!1),e;case 11:return e=d6(e.type.render,!1),e;case 1:return e=d6(e.type,!0),e;default:return""}}function oR(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case db:return"Fragment";case ub:return"Portal";case eR:return"Profiler";case yE:return"StrictMode";case tR:return"Suspense";case nR:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _ee:return(e.displayName||"Context")+".Consumer";case xee:return(e._context.displayName||"Context")+".Provider";case vE:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xE:return t=e.displayName||null,t!==null?t:oR(e.type)||"Memo";case Fl:t=e._payload,e=e._init;try{return oR(e(t))}catch{}}return null}function exe(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return oR(t);case 8:return t===yE?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Cu(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function kee(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function txe(e){var t=kee(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(i){o=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(i){o=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function WO(e){e._valueTracker||(e._valueTracker=txe(e))}function qee(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=kee(e)?e.checked?"true":"false":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function T4(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function rR(e,t){var n=t.checked;return Kn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function $D(e,t){var n=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;n=Cu(t.value!=null?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function See(e,t){t=t.checked,t!=null&&AE(e,"checked",t,!1)}function sR(e,t){See(e,t);var n=Cu(t.value),o=t.type;if(n!=null)o==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?iR(e,t.type,n):t.hasOwnProperty("defaultValue")&&iR(e,t.type,Cu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function VD(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function iR(e,t,n){(t!=="number"||T4(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Zm=Array.isArray;function Lb(e,t,n,o){if(e=e.options,t){t={};for(var r=0;r"+t.valueOf().toString()+"",t=TO.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function og(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var zM={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},nxe=["Webkit","ms","Moz","O"];Object.keys(zM).forEach(function(e){nxe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),zM[t]=zM[e]})});function Tee(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||zM.hasOwnProperty(e)&&zM[e]?(""+t).trim():t+"px"}function Eee(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var o=n.indexOf("--")===0,r=Tee(n,t[n],o);n==="float"&&(n="cssFloat"),o?e.setProperty(n,r):e[n]=r}}var oxe=Kn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function lR(e,t){if(t){if(oxe[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Le(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Le(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Le(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Le(62))}}function uR(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var dR=null;function _E(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var pR=null,jb=null,Pb=null;function XD(e){if(e=Lz(e)){if(typeof pR!="function")throw Error(Le(280));var t=e.stateNode;t&&(t=ix(t),pR(e.stateNode,e.type,t))}}function Bee(e){jb?Pb?Pb.push(e):Pb=[e]:jb=e}function Nee(){if(jb){var e=jb,t=Pb;if(Pb=jb=null,XD(e),t)for(e=0;e>>=0,e===0?32:31-(bxe(e)/hxe|0)|0}var EO=64,BO=4194304;function Qm(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function L4(e,t){var n=e.pendingLanes;if(n===0)return 0;var o=0,r=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var c=i&~r;c!==0?o=Qm(c):(s&=i,s!==0&&(o=Qm(s)))}else i=n&~r,i!==0?o=Qm(i):s!==0&&(o=Qm(s));if(o===0)return 0;if(t!==0&&t!==o&&!(t&r)&&(r=o&-o,s=t&-t,r>=s||r===16&&(s&4194240)!==0))return t;if(o&4&&(o|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0n;n++)t.push(e);return t}function Bz(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-yi(t),e[t]=n}function zxe(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0=AM),nF=" ",oF=!1;function nte(e,t){switch(e){case"keyup":return Xxe.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ote(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pb=!1;function Kxe(e,t){switch(e){case"compositionend":return ote(t);case"keypress":return t.which!==32?null:(oF=!0,nF);case"textInput":return e=t.data,e===nF&&oF?null:e;default:return null}}function Yxe(e,t){if(pb)return e==="compositionend"||!TE&&nte(e,t)?(e=ete(),Sy=CE=Zl=null,pb=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=aF(n)}}function ate(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ate(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function cte(){for(var e=window,t=T4();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=T4(e.document)}return t}function EE(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function s_e(e){var t=cte(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ate(n.ownerDocument.documentElement,n)){if(o!==null&&EE(n)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var r=n.textContent.length,s=Math.min(o.start,r);o=o.end===void 0?s:Math.min(o.end,r),!e.extend&&s>o&&(r=o,o=s,s=r),r=cF(n,s);var i=cF(n,o);r&&i&&(e.rangeCount!==1||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(r.node,r.offset),e.removeAllRanges(),s>o?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,fb=null,gR=null,vM=null,zR=!1;function lF(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zR||fb==null||fb!==T4(o)||(o=fb,"selectionStart"in o&&EE(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),vM&&lg(vM,o)||(vM=o,o=I4(gR,"onSelect"),0mb||(e.current=_R[mb],_R[mb]=null,mb--)}function hn(e,t){mb++,_R[mb]=e.current,e.current=t}var Ru={},Io=cd(Ru),wr=cd(!1),Op=Ru;function d2(e,t){var n=e.type.contextTypes;if(!n)return Ru;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var r={},s;for(s in n)r[s]=t[s];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function kr(e){return e=e.childContextTypes,e!=null}function F4(){vn(wr),vn(Io)}function mF(e,t,n){if(Io.current!==Ru)throw Error(Le(168));hn(Io,t),hn(wr,n)}function Mte(e,t,n){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var r in o)if(!(r in t))throw Error(Le(108,exe(e)||"Unknown",r));return Kn({},n,o)}function $4(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ru,Op=Io.current,hn(Io,e),hn(wr,wr.current),!0}function MF(e,t,n){var o=e.stateNode;if(!o)throw Error(Le(169));n?(e=Mte(e,t,Op),o.__reactInternalMemoizedMergedChildContext=e,vn(wr),vn(Io),hn(Io,e)):vn(wr),hn(wr,n)}var zc=null,ax=!1,_6=!1;function gte(e){zc===null?zc=[e]:zc.push(e)}function M_e(e){ax=!0,gte(e)}function ld(){if(!_6&&zc!==null){_6=!0;var e=0,t=Y0;try{var n=zc;for(Y0=1;e>=i,r-=i,yc=1<<32-yi(t)+r|n<k?(q=w,w=null):q=w.sibling;var S=f(y,w,v[k],M);if(S===null){w===null&&(w=q);break}e&&w&&S.alternate===null&&t(y,w),x=s(S,x,k),_===null?A=S:_.sibling=S,_=S,w=q}if(k===v.length)return n(y,w),Bn&&Bd(y,k),A;if(w===null){for(;kk?(q=w,w=null):q=w.sibling;var C=f(y,w,S.value,M);if(C===null){w===null&&(w=q);break}e&&w&&C.alternate===null&&t(y,w),x=s(C,x,k),_===null?A=C:_.sibling=C,_=C,w=q}if(S.done)return n(y,w),Bn&&Bd(y,k),A;if(w===null){for(;!S.done;k++,S=v.next())S=p(y,S.value,M),S!==null&&(x=s(S,x,k),_===null?A=S:_.sibling=S,_=S);return Bn&&Bd(y,k),A}for(w=o(y,w);!S.done;k++,S=v.next())S=b(w,y,k,S.value,M),S!==null&&(e&&S.alternate!==null&&w.delete(S.key===null?k:S.key),x=s(S,x,k),_===null?A=S:_.sibling=S,_=S);return e&&w.forEach(function(T){return t(y,T)}),Bn&&Bd(y,k),A}function z(y,x,v,M){if(typeof v=="object"&&v!==null&&v.type===db&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case RO:e:{for(var A=v.key,_=x;_!==null;){if(_.key===A){if(A=v.type,A===db){if(_.tag===7){n(y,_.sibling),x=r(_,v.props.children),x.return=y,y=x;break e}}else if(_.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===Fl&&OF(A)===_.type){n(y,_.sibling),x=r(_,v.props),x.ref=zm(y,_,v),x.return=y,y=x;break e}n(y,_);break}else t(y,_);_=_.sibling}v.type===db?(x=ap(v.props.children,y.mode,M,v.key),x.return=y,y=x):(M=Ly(v.type,v.key,v.props,null,y.mode,M),M.ref=zm(y,x,v),M.return=y,y=M)}return i(y);case ub:e:{for(_=v.key;x!==null;){if(x.key===_)if(x.tag===4&&x.stateNode.containerInfo===v.containerInfo&&x.stateNode.implementation===v.implementation){n(y,x.sibling),x=r(x,v.children||[]),x.return=y,y=x;break e}else{n(y,x);break}else t(y,x);x=x.sibling}x=T6(v,y.mode,M),x.return=y,y=x}return i(y);case Fl:return _=v._init,z(y,x,_(v._payload),M)}if(Zm(v))return h(y,x,v,M);if(bm(v))return g(y,x,v,M);FO(y,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,x!==null&&x.tag===6?(n(y,x.sibling),x=r(x,v),x.return=y,y=x):(n(y,x),x=W6(v,y.mode,M),x.return=y,y=x),i(y)):n(y,x)}return z}var f2=yte(!0),vte=yte(!1),U4=cd(null),X4=null,zb=null,jE=null;function PE(){jE=zb=X4=null}function IE(e){var t=U4.current;vn(U4),e._currentValue=t}function qR(e,t,n){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function Db(e,t){X4=e,jE=zb=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(xr=!0),e.firstContext=null)}function Vs(e){var t=e._currentValue;if(jE!==e)if(e={context:e,memoizedValue:t,next:null},zb===null){if(X4===null)throw Error(Le(308));zb=e,X4.dependencies={lanes:0,firstContext:e}}else zb=zb.next=e;return t}var Zd=null;function DE(e){Zd===null?Zd=[e]:Zd.push(e)}function xte(e,t,n,o){var r=t.interleaved;return r===null?(n.next=n,DE(t)):(n.next=r.next,r.next=n),t.interleaved=n,Hc(e,o)}function Hc(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var $l=!1;function FE(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function _te(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Rc(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function mu(e,t,n){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,q0&2){var r=o.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),o.pending=t,Hc(e,n)}return r=o.interleaved,r===null?(t.next=t,DE(o)):(t.next=r.next,r.next=t),o.interleaved=t,Hc(e,n)}function Ry(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,kE(e,n)}}function AF(e,t){var n=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var r=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?r=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?r=s=t:s=s.next=t}else r=s=t;n={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:s,shared:o.shared,effects:o.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function G4(e,t,n,o){var r=e.updateQueue;$l=!1;var s=r.firstBaseUpdate,i=r.lastBaseUpdate,c=r.shared.pending;if(c!==null){r.shared.pending=null;var l=c,u=l.next;l.next=null,i===null?s=u:i.next=u,i=l;var d=e.alternate;d!==null&&(d=d.updateQueue,c=d.lastBaseUpdate,c!==i&&(c===null?d.firstBaseUpdate=u:c.next=u,d.lastBaseUpdate=l))}if(s!==null){var p=r.baseState;i=0,d=u=l=null,c=s;do{var f=c.lane,b=c.eventTime;if((o&f)===f){d!==null&&(d=d.next={eventTime:b,lane:0,tag:c.tag,payload:c.payload,callback:c.callback,next:null});e:{var h=e,g=c;switch(f=t,b=n,g.tag){case 1:if(h=g.payload,typeof h=="function"){p=h.call(b,p,f);break e}p=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h=="function"?h.call(b,p,f):h,f==null)break e;p=Kn({},p,f);break e;case 2:$l=!0}}c.callback!==null&&c.lane!==0&&(e.flags|=64,f=r.effects,f===null?r.effects=[c]:f.push(c))}else b={eventTime:b,lane:f,tag:c.tag,payload:c.payload,callback:c.callback,next:null},d===null?(u=d=b,l=p):d=d.next=b,i|=f;if(c=c.next,c===null){if(c=r.shared.pending,c===null)break;f=c,c=f.next,f.next=null,r.lastBaseUpdate=f,r.shared.pending=null}}while(!0);if(d===null&&(l=p),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=d,t=r.shared.interleaved,t!==null){r=t;do i|=r.lane,r=r.next;while(r!==t)}else s===null&&(r.shared.lanes=0);vp|=i,e.lanes=i,e.memoizedState=p}}function yF(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var o=k6.transition;k6.transition={};try{e(!1),t()}finally{Y0=n,k6.transition=o}}function Fte(){return Hs().memoizedState}function A_e(e,t,n){var o=gu(e);if(n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},$te(e))Vte(t,n);else if(n=xte(e,t,n,o),n!==null){var r=Zo();vi(n,e,o,r),Hte(n,t,o)}}function y_e(e,t,n){var o=gu(e),r={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if($te(e))Vte(t,r);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,c=s(i,n);if(r.hasEagerState=!0,r.eagerState=c,qi(c,i)){var l=t.interleaved;l===null?(r.next=r,DE(t)):(r.next=l.next,l.next=r),t.interleaved=r;return}}catch{}finally{}n=xte(e,t,r,o),n!==null&&(r=Zo(),vi(n,e,o,r),Hte(n,t,o))}}function $te(e){var t=e.alternate;return e===Xn||t!==null&&t===Xn}function Vte(e,t){xM=Y4=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Hte(e,t,n){if(n&4194240){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,kE(e,n)}}var Z4={readContext:Vs,useCallback:wo,useContext:wo,useEffect:wo,useImperativeHandle:wo,useInsertionEffect:wo,useLayoutEffect:wo,useMemo:wo,useReducer:wo,useRef:wo,useState:wo,useDebugValue:wo,useDeferredValue:wo,useTransition:wo,useMutableSource:wo,useSyncExternalStore:wo,useId:wo,unstable_isNewReconciler:!1},v_e={readContext:Vs,useCallback:function(e,t){return sa().memoizedState=[e,t===void 0?null:t],e},useContext:Vs,useEffect:xF,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ty(4194308,4,Lte.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ty(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ty(4,2,e,t)},useMemo:function(e,t){var n=sa();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=sa();return t=n!==void 0?n(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=A_e.bind(null,Xn,e),[o.memoizedState,e]},useRef:function(e){var t=sa();return e={current:e},t.memoizedState=e},useState:vF,useDebugValue:YE,useDeferredValue:function(e){return sa().memoizedState=e},useTransition:function(){var e=vF(!1),t=e[0];return e=O_e.bind(null,e[1]),sa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=Xn,r=sa();if(Bn){if(n===void 0)throw Error(Le(407));n=n()}else{if(n=t(),G1===null)throw Error(Le(349));yp&30||Ste(o,t,n)}r.memoizedState=n;var s={value:n,getSnapshot:t};return r.queue=s,xF(Rte.bind(null,o,s,e),[e]),o.flags|=2048,Mg(9,Cte.bind(null,o,s,n,t),void 0,null),n},useId:function(){var e=sa(),t=G1.identifierPrefix;if(Bn){var n=vc,o=yc;n=(o&~(1<<32-yi(o)-1)).toString(32)+n,t=":"+t+"R"+n,n=hg++,0")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=c);break}}}finally{u6=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ym(e):""}function J5e(e){switch(e.tag){case 5:return Ym(e.type);case 16:return Ym("Lazy");case 13:return Ym("Suspense");case 19:return Ym("SuspenseList");case 0:case 2:case 15:return e=d6(e.type,!1),e;case 11:return e=d6(e.type.render,!1),e;case 1:return e=d6(e.type,!0),e;default:return""}}function oR(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case db:return"Fragment";case ub:return"Portal";case eR:return"Profiler";case yE:return"StrictMode";case tR:return"Suspense";case nR:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _ee:return(e.displayName||"Context")+".Consumer";case xee:return(e._context.displayName||"Context")+".Provider";case vE:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xE:return t=e.displayName||null,t!==null?t:oR(e.type)||"Memo";case Fl:t=e._payload,e=e._init;try{return oR(e(t))}catch{}}return null}function exe(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return oR(t);case 8:return t===yE?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Cu(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function kee(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function txe(e){var t=kee(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(i){o=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(i){o=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function WO(e){e._valueTracker||(e._valueTracker=txe(e))}function qee(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=kee(e)?e.checked?"true":"false":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function T4(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function rR(e,t){var n=t.checked;return Kn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function $D(e,t){var n=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;n=Cu(t.value!=null?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function See(e,t){t=t.checked,t!=null&&AE(e,"checked",t,!1)}function sR(e,t){See(e,t);var n=Cu(t.value),o=t.type;if(n!=null)o==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?iR(e,t.type,n):t.hasOwnProperty("defaultValue")&&iR(e,t.type,Cu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function VD(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function iR(e,t,n){(t!=="number"||T4(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Zm=Array.isArray;function Lb(e,t,n,o){if(e=e.options,t){t={};for(var r=0;r"+t.valueOf().toString()+"",t=TO.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function og(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var zM={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},nxe=["Webkit","ms","Moz","O"];Object.keys(zM).forEach(function(e){nxe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),zM[t]=zM[e]})});function Tee(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||zM.hasOwnProperty(e)&&zM[e]?(""+t).trim():t+"px"}function Eee(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var o=n.indexOf("--")===0,r=Tee(n,t[n],o);n==="float"&&(n="cssFloat"),o?e.setProperty(n,r):e[n]=r}}var oxe=Kn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function lR(e,t){if(t){if(oxe[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Le(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Le(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Le(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Le(62))}}function uR(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var dR=null;function _E(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var pR=null,jb=null,Pb=null;function XD(e){if(e=Lz(e)){if(typeof pR!="function")throw Error(Le(280));var t=e.stateNode;t&&(t=ix(t),pR(e.stateNode,e.type,t))}}function Bee(e){jb?Pb?Pb.push(e):Pb=[e]:jb=e}function Nee(){if(jb){var e=jb,t=Pb;if(Pb=jb=null,XD(e),t)for(e=0;e>>=0,e===0?32:31-(bxe(e)/hxe|0)|0}var EO=64,BO=4194304;function Qm(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function L4(e,t){var n=e.pendingLanes;if(n===0)return 0;var o=0,r=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var c=i&~r;c!==0?o=Qm(c):(s&=i,s!==0&&(o=Qm(s)))}else i=n&~r,i!==0?o=Qm(i):s!==0&&(o=Qm(s));if(o===0)return 0;if(t!==0&&t!==o&&!(t&r)&&(r=o&-o,s=t&-t,r>=s||r===16&&(s&4194240)!==0))return t;if(o&4&&(o|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0n;n++)t.push(e);return t}function Bz(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-yi(t),e[t]=n}function zxe(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0=AM),nF=" ",oF=!1;function nte(e,t){switch(e){case"keyup":return Xxe.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ote(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pb=!1;function Kxe(e,t){switch(e){case"compositionend":return ote(t);case"keypress":return t.which!==32?null:(oF=!0,nF);case"textInput":return e=t.data,e===nF&&oF?null:e;default:return null}}function Yxe(e,t){if(pb)return e==="compositionend"||!TE&&nte(e,t)?(e=ete(),Sy=CE=Zl=null,pb=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=aF(n)}}function ate(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ate(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function cte(){for(var e=window,t=T4();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=T4(e.document)}return t}function EE(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function s_e(e){var t=cte(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ate(n.ownerDocument.documentElement,n)){if(o!==null&&EE(n)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var r=n.textContent.length,s=Math.min(o.start,r);o=o.end===void 0?s:Math.min(o.end,r),!e.extend&&s>o&&(r=o,o=s,s=r),r=cF(n,s);var i=cF(n,o);r&&i&&(e.rangeCount!==1||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(r.node,r.offset),e.removeAllRanges(),s>o?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,fb=null,gR=null,vM=null,zR=!1;function lF(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zR||fb==null||fb!==T4(o)||(o=fb,"selectionStart"in o&&EE(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),vM&&lg(vM,o)||(vM=o,o=I4(gR,"onSelect"),0mb||(e.current=_R[mb],_R[mb]=null,mb--)}function hn(e,t){mb++,_R[mb]=e.current,e.current=t}var Ru={},Io=cd(Ru),wr=cd(!1),Op=Ru;function d2(e,t){var n=e.type.contextTypes;if(!n)return Ru;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var r={},s;for(s in n)r[s]=t[s];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function kr(e){return e=e.childContextTypes,e!=null}function F4(){vn(wr),vn(Io)}function mF(e,t,n){if(Io.current!==Ru)throw Error(Le(168));hn(Io,t),hn(wr,n)}function Mte(e,t,n){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var r in o)if(!(r in t))throw Error(Le(108,exe(e)||"Unknown",r));return Kn({},n,o)}function $4(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ru,Op=Io.current,hn(Io,e),hn(wr,wr.current),!0}function MF(e,t,n){var o=e.stateNode;if(!o)throw Error(Le(169));n?(e=Mte(e,t,Op),o.__reactInternalMemoizedMergedChildContext=e,vn(wr),vn(Io),hn(Io,e)):vn(wr),hn(wr,n)}var zc=null,ax=!1,_6=!1;function gte(e){zc===null?zc=[e]:zc.push(e)}function M_e(e){ax=!0,gte(e)}function ld(){if(!_6&&zc!==null){_6=!0;var e=0,t=Y0;try{var n=zc;for(Y0=1;e>=i,r-=i,yc=1<<32-yi(t)+r|n<k?(q=w,w=null):q=w.sibling;var S=f(y,w,v[k],M);if(S===null){w===null&&(w=q);break}e&&w&&S.alternate===null&&t(y,w),x=s(S,x,k),_===null?A=S:_.sibling=S,_=S,w=q}if(k===v.length)return n(y,w),Bn&&Bd(y,k),A;if(w===null){for(;kk?(q=w,w=null):q=w.sibling;var C=f(y,w,S.value,M);if(C===null){w===null&&(w=q);break}e&&w&&C.alternate===null&&t(y,w),x=s(C,x,k),_===null?A=C:_.sibling=C,_=C,w=q}if(S.done)return n(y,w),Bn&&Bd(y,k),A;if(w===null){for(;!S.done;k++,S=v.next())S=p(y,S.value,M),S!==null&&(x=s(S,x,k),_===null?A=S:_.sibling=S,_=S);return Bn&&Bd(y,k),A}for(w=o(y,w);!S.done;k++,S=v.next())S=b(w,y,k,S.value,M),S!==null&&(e&&S.alternate!==null&&w.delete(S.key===null?k:S.key),x=s(S,x,k),_===null?A=S:_.sibling=S,_=S);return e&&w.forEach(function(T){return t(y,T)}),Bn&&Bd(y,k),A}function z(y,x,v,M){if(typeof v=="object"&&v!==null&&v.type===db&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case RO:e:{for(var A=v.key,_=x;_!==null;){if(_.key===A){if(A=v.type,A===db){if(_.tag===7){n(y,_.sibling),x=r(_,v.props.children),x.return=y,y=x;break e}}else if(_.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===Fl&&OF(A)===_.type){n(y,_.sibling),x=r(_,v.props),x.ref=zm(y,_,v),x.return=y,y=x;break e}n(y,_);break}else t(y,_);_=_.sibling}v.type===db?(x=ap(v.props.children,y.mode,M,v.key),x.return=y,y=x):(M=Ly(v.type,v.key,v.props,null,y.mode,M),M.ref=zm(y,x,v),M.return=y,y=M)}return i(y);case ub:e:{for(_=v.key;x!==null;){if(x.key===_)if(x.tag===4&&x.stateNode.containerInfo===v.containerInfo&&x.stateNode.implementation===v.implementation){n(y,x.sibling),x=r(x,v.children||[]),x.return=y,y=x;break e}else{n(y,x);break}else t(y,x);x=x.sibling}x=T6(v,y.mode,M),x.return=y,y=x}return i(y);case Fl:return _=v._init,z(y,x,_(v._payload),M)}if(Zm(v))return h(y,x,v,M);if(bm(v))return g(y,x,v,M);FO(y,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,x!==null&&x.tag===6?(n(y,x.sibling),x=r(x,v),x.return=y,y=x):(n(y,x),x=W6(v,y.mode,M),x.return=y,y=x),i(y)):n(y,x)}return z}var f2=yte(!0),vte=yte(!1),U4=cd(null),X4=null,zb=null,jE=null;function PE(){jE=zb=X4=null}function IE(e){var t=U4.current;vn(U4),e._currentValue=t}function qR(e,t,n){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function Db(e,t){X4=e,jE=zb=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(xr=!0),e.firstContext=null)}function Vs(e){var t=e._currentValue;if(jE!==e)if(e={context:e,memoizedValue:t,next:null},zb===null){if(X4===null)throw Error(Le(308));zb=e,X4.dependencies={lanes:0,firstContext:e}}else zb=zb.next=e;return t}var Zd=null;function DE(e){Zd===null?Zd=[e]:Zd.push(e)}function xte(e,t,n,o){var r=t.interleaved;return r===null?(n.next=n,DE(t)):(n.next=r.next,r.next=n),t.interleaved=n,Hc(e,o)}function Hc(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var $l=!1;function FE(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function _te(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Rc(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function mu(e,t,n){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,q0&2){var r=o.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),o.pending=t,Hc(e,n)}return r=o.interleaved,r===null?(t.next=t,DE(o)):(t.next=r.next,r.next=t),o.interleaved=t,Hc(e,n)}function Ry(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,kE(e,n)}}function AF(e,t){var n=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var r=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?r=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?r=s=t:s=s.next=t}else r=s=t;n={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:s,shared:o.shared,effects:o.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function G4(e,t,n,o){var r=e.updateQueue;$l=!1;var s=r.firstBaseUpdate,i=r.lastBaseUpdate,c=r.shared.pending;if(c!==null){r.shared.pending=null;var l=c,u=l.next;l.next=null,i===null?s=u:i.next=u,i=l;var d=e.alternate;d!==null&&(d=d.updateQueue,c=d.lastBaseUpdate,c!==i&&(c===null?d.firstBaseUpdate=u:c.next=u,d.lastBaseUpdate=l))}if(s!==null){var p=r.baseState;i=0,d=u=l=null,c=s;do{var f=c.lane,b=c.eventTime;if((o&f)===f){d!==null&&(d=d.next={eventTime:b,lane:0,tag:c.tag,payload:c.payload,callback:c.callback,next:null});e:{var h=e,g=c;switch(f=t,b=n,g.tag){case 1:if(h=g.payload,typeof h=="function"){p=h.call(b,p,f);break e}p=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h=="function"?h.call(b,p,f):h,f==null)break e;p=Kn({},p,f);break e;case 2:$l=!0}}c.callback!==null&&c.lane!==0&&(e.flags|=64,f=r.effects,f===null?r.effects=[c]:f.push(c))}else b={eventTime:b,lane:f,tag:c.tag,payload:c.payload,callback:c.callback,next:null},d===null?(u=d=b,l=p):d=d.next=b,i|=f;if(c=c.next,c===null){if(c=r.shared.pending,c===null)break;f=c,c=f.next,f.next=null,r.lastBaseUpdate=f,r.shared.pending=null}}while(!0);if(d===null&&(l=p),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=d,t=r.shared.interleaved,t!==null){r=t;do i|=r.lane,r=r.next;while(r!==t)}else s===null&&(r.shared.lanes=0);vp|=i,e.lanes=i,e.memoizedState=p}}function yF(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var o=k6.transition;k6.transition={};try{e(!1),t()}finally{Y0=n,k6.transition=o}}function Fte(){return Hs().memoizedState}function A_e(e,t,n){var o=gu(e);if(n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},$te(e))Vte(t,n);else if(n=xte(e,t,n,o),n!==null){var r=Zo();vi(n,e,o,r),Hte(n,t,o)}}function y_e(e,t,n){var o=gu(e),r={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if($te(e))Vte(t,r);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,c=s(i,n);if(r.hasEagerState=!0,r.eagerState=c,qi(c,i)){var l=t.interleaved;l===null?(r.next=r,DE(t)):(r.next=l.next,l.next=r),t.interleaved=r;return}}catch{}finally{}n=xte(e,t,r,o),n!==null&&(r=Zo(),vi(n,e,o,r),Hte(n,t,o))}}function $te(e){var t=e.alternate;return e===Xn||t!==null&&t===Xn}function Vte(e,t){xM=Y4=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Hte(e,t,n){if(n&4194240){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,kE(e,n)}}var Z4={readContext:Vs,useCallback:wo,useContext:wo,useEffect:wo,useImperativeHandle:wo,useInsertionEffect:wo,useLayoutEffect:wo,useMemo:wo,useReducer:wo,useRef:wo,useState:wo,useDebugValue:wo,useDeferredValue:wo,useTransition:wo,useMutableSource:wo,useSyncExternalStore:wo,useId:wo,unstable_isNewReconciler:!1},v_e={readContext:Vs,useCallback:function(e,t){return sa().memoizedState=[e,t===void 0?null:t],e},useContext:Vs,useEffect:xF,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ty(4194308,4,Lte.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ty(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ty(4,2,e,t)},useMemo:function(e,t){var n=sa();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=sa();return t=n!==void 0?n(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=A_e.bind(null,Xn,e),[o.memoizedState,e]},useRef:function(e){var t=sa();return e={current:e},t.memoizedState=e},useState:vF,useDebugValue:YE,useDeferredValue:function(e){return sa().memoizedState=e},useTransition:function(){var e=vF(!1),t=e[0];return e=O_e.bind(null,e[1]),sa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=Xn,r=sa();if(Bn){if(n===void 0)throw Error(Le(407));n=n()}else{if(n=t(),G1===null)throw Error(Le(349));yp&30||Ste(o,t,n)}r.memoizedState=n;var s={value:n,getSnapshot:t};return r.queue=s,xF(Rte.bind(null,o,s,e),[e]),o.flags|=2048,Mg(9,Cte.bind(null,o,s,n,t),void 0,null),n},useId:function(){var e=sa(),t=G1.identifierPrefix;if(Bn){var n=vc,o=yc;n=(o&~(1<<32-yi(o)-1)).toString(32)+n,t=":"+t+"R"+n,n=hg++,0<\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=i.createElement(n,{is:o.is}):(e=i.createElement(n),n==="select"&&(i=e,o.multiple?i.multiple=!0:o.size&&(i.size=o.size))):e=i.createElementNS(e,n),e[Ma]=t,e[pg]=o,t0e(e,t,!1,!1),t.stateNode=e;e:{switch(i=uR(n,o),n){case"dialog":An("cancel",e),An("close",e),r=o;break;case"iframe":case"object":case"embed":An("load",e),r=o;break;case"video":case"audio":for(r=0;rm2&&(t.flags|=128,o=!0,Om(s,!1),t.lanes=4194304)}else{if(!o)if(e=K4(i),e!==null){if(t.flags|=128,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Om(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!Bn)return ko(t),null}else 2*c1()-s.renderingStartTime>m2&&n!==1073741824&&(t.flags|=128,o=!0,Om(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=c1(),t.sibling=null,n=Dn.current,hn(Dn,o?n&1|2:n&1),t):(ko(t),null);case 22:case 23:return nB(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&t.mode&1?Hr&1073741824&&(ko(t),t.subtreeFlags&6&&(t.flags|=8192)):ko(t),null;case 24:return null;case 25:return null}throw Error(Le(156,t.tag))}function R_e(e,t){switch(NE(t),t.tag){case 1:return kr(t.type)&&F4(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return b2(),vn(wr),vn(Io),HE(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return VE(t),null;case 13:if(vn(Dn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Le(340));p2()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return vn(Dn),null;case 4:return b2(),null;case 10:return IE(t.type._context),null;case 22:case 23:return nB(),null;case 24:return null;default:return null}}var VO=!1,Ro=!1,W_e=typeof WeakSet=="function"?WeakSet:Set,dt=null;function Ob(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(o){Jn(e,t,o)}else n.current=null}function LR(e,t,n){try{n()}catch(o){Jn(e,t,o)}}var BF=!1;function T_e(e,t){if(OR=j4,e=cte(),EE(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var o=n.getSelection&&n.getSelection();if(o&&o.rangeCount!==0){n=o.anchorNode;var r=o.anchorOffset,s=o.focusNode;o=o.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,c=-1,l=-1,u=0,d=0,p=e,f=null;t:for(;;){for(var b;p!==n||r!==0&&p.nodeType!==3||(c=i+r),p!==s||o!==0&&p.nodeType!==3||(l=i+o),p.nodeType===3&&(i+=p.nodeValue.length),(b=p.firstChild)!==null;)f=p,p=b;for(;;){if(p===e)break t;if(f===n&&++u===r&&(c=i),f===s&&++d===o&&(l=i),(b=p.nextSibling)!==null)break;p=f,f=p.parentNode}p=b}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(AR={focusedElem:e,selectionRange:n},j4=!1,dt=t;dt!==null;)if(t=dt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,dt=e;else for(;dt!==null;){t=dt;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,z=h.memoizedState,y=t.stateNode,x=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:li(t.type,g),z);y.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Le(163))}}catch(M){Jn(t,t.return,M)}if(e=t.sibling,e!==null){e.return=t.return,dt=e;break}dt=t.return}return h=BF,BF=!1,h}function _M(e,t,n){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var r=o=o.next;do{if((r.tag&e)===e){var s=r.destroy;r.destroy=void 0,s!==void 0&&LR(t,n,s)}r=r.next}while(r!==o)}}function ux(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function jR(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function r0e(e){var t=e.alternate;t!==null&&(e.alternate=null,r0e(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ma],delete t[pg],delete t[xR],delete t[h_e],delete t[m_e])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function s0e(e){return e.tag===5||e.tag===3||e.tag===4}function NF(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||s0e(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function PR(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=D4));else if(o!==4&&(e=e.child,e!==null))for(PR(e,t,n),e=e.sibling;e!==null;)PR(e,t,n),e=e.sibling}function IR(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(IR(e,t,n),e=e.sibling;e!==null;)IR(e,t,n),e=e.sibling}var io=null,pi=!1;function Cl(e,t,n){for(n=n.child;n!==null;)i0e(e,t,n),n=n.sibling}function i0e(e,t,n){if(va&&typeof va.onCommitFiberUnmount=="function")try{va.onCommitFiberUnmount(nx,n)}catch{}switch(n.tag){case 5:Ro||Ob(n,t);case 6:var o=io,r=pi;io=null,Cl(e,t,n),io=o,pi=r,io!==null&&(pi?(e=io,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):io.removeChild(n.stateNode));break;case 18:io!==null&&(pi?(e=io,n=n.stateNode,e.nodeType===8?x6(e.parentNode,n):e.nodeType===1&&x6(e,n),ag(e)):x6(io,n.stateNode));break;case 4:o=io,r=pi,io=n.stateNode.containerInfo,pi=!0,Cl(e,t,n),io=o,pi=r;break;case 0:case 11:case 14:case 15:if(!Ro&&(o=n.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){r=o=o.next;do{var s=r,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&LR(n,t,i),r=r.next}while(r!==o)}Cl(e,t,n);break;case 1:if(!Ro&&(Ob(n,t),o=n.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(c){Jn(n,t,c)}Cl(e,t,n);break;case 21:Cl(e,t,n);break;case 22:n.mode&1?(Ro=(o=Ro)||n.memoizedState!==null,Cl(e,t,n),Ro=o):Cl(e,t,n);break;default:Cl(e,t,n)}}function LF(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new W_e),t.forEach(function(o){var r=F_e.bind(null,e,o);n.has(o)||(n.add(o),o.then(r,r))})}}function ai(e,t){var n=t.deletions;if(n!==null)for(var o=0;or&&(r=i),o&=~s}if(o=r,o=c1()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*B_e(o/1960))-o,10e?16:e,Ql===null)var o=!1;else{if(e=Ql,Ql=null,ev=0,q0&6)throw Error(Le(331));var r=q0;for(q0|=4,dt=e.current;dt!==null;){var s=dt,i=s.child;if(dt.flags&16){var c=s.deletions;if(c!==null){for(var l=0;lc1()-eB?ip(e,0):JE|=n),qr(e,t)}function b0e(e,t){t===0&&(e.mode&1?(t=BO,BO<<=1,!(BO&130023424)&&(BO=4194304)):t=1);var n=Zo();e=Hc(e,t),e!==null&&(Bz(e,t,n),qr(e,n))}function D_e(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),b0e(e,n)}function F_e(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(Le(314))}o!==null&&o.delete(t),b0e(e,n)}var h0e;h0e=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||wr.current)xr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return xr=!1,S_e(e,t,n);xr=!!(e.flags&131072)}else xr=!1,Bn&&t.flags&1048576&&zte(t,H4,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Ey(e,t),e=t.pendingProps;var r=d2(t,Io.current);Db(t,n),r=XE(null,t,o,e,r,n);var s=GE();return t.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,kr(o)?(s=!0,$4(t)):s=!1,t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,FE(t),r.updater=lx,t.stateNode=r,r._reactInternals=t,CR(t,o,e,n),t=TR(null,t,o,!0,s,n)):(t.tag=0,Bn&&s&&BE(t),Go(null,t,r,n),t=t.child),t;case 16:o=t.elementType;e:{switch(Ey(e,t),e=t.pendingProps,r=o._init,o=r(o._payload),t.type=o,r=t.tag=V_e(o),e=li(o,e),r){case 0:t=WR(null,t,o,e,n);break e;case 1:t=WF(null,t,o,e,n);break e;case 11:t=CF(null,t,o,e,n);break e;case 14:t=RF(null,t,o,li(o.type,e),n);break e}throw Error(Le(306,o,""))}return t;case 0:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:li(o,r),WR(e,t,o,r,n);case 1:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:li(o,r),WF(e,t,o,r,n);case 3:e:{if(Qte(t),e===null)throw Error(Le(387));o=t.pendingProps,s=t.memoizedState,r=s.element,_te(e,t),G4(t,o,null,n);var i=t.memoizedState;if(o=i.element,s.isDehydrated)if(s={element:o,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){r=h2(Error(Le(423)),t),t=TF(e,t,o,n,r);break e}else if(o!==r){r=h2(Error(Le(424)),t),t=TF(e,t,o,n,r);break e}else for(Kr=hu(t.stateNode.containerInfo.firstChild),Qr=t,Bn=!0,bi=null,n=vte(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(p2(),o===r){t=Uc(e,t,n);break e}Go(e,t,o,n)}t=t.child}return t;case 5:return wte(t),e===null&&kR(t),o=t.type,r=t.pendingProps,s=e!==null?e.memoizedProps:null,i=r.children,yR(o,r)?i=null:s!==null&&yR(o,s)&&(t.flags|=32),Zte(e,t),Go(e,t,i,n),t.child;case 6:return e===null&&kR(t),null;case 13:return Jte(e,t,n);case 4:return $E(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=f2(t,null,o,n):Go(e,t,o,n),t.child;case 11:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:li(o,r),CF(e,t,o,r,n);case 7:return Go(e,t,t.pendingProps,n),t.child;case 8:return Go(e,t,t.pendingProps.children,n),t.child;case 12:return Go(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,r=t.pendingProps,s=t.memoizedProps,i=r.value,hn(U4,o._currentValue),o._currentValue=i,s!==null)if(qi(s.value,i)){if(s.children===r.children&&!wr.current){t=Uc(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var c=s.dependencies;if(c!==null){i=s.child;for(var l=c.firstContext;l!==null;){if(l.context===o){if(s.tag===1){l=Rc(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),qR(s.return,n,t),c.lanes|=n;break}l=l.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(Le(341));i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),qR(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}Go(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,o=t.pendingProps.children,Db(t,n),r=Vs(r),o=o(r),t.flags|=1,Go(e,t,o,n),t.child;case 14:return o=t.type,r=li(o,t.pendingProps),r=li(o.type,r),RF(e,t,o,r,n);case 15:return Kte(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:li(o,r),Ey(e,t),t.tag=1,kr(o)?(e=!0,$4(t)):e=!1,Db(t,n),Ute(t,o,r),CR(t,o,r,n),TR(null,t,o,!0,e,n);case 19:return e0e(e,t,n);case 22:return Yte(e,t,n)}throw Error(Le(156,t.tag))};function m0e(e,t){return $ee(e,t)}function $_e(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Es(e,t,n,o){return new $_e(e,t,n,o)}function rB(e){return e=e.prototype,!(!e||!e.isReactComponent)}function V_e(e){if(typeof e=="function")return rB(e)?1:0;if(e!=null){if(e=e.$$typeof,e===vE)return 11;if(e===xE)return 14}return 2}function zu(e,t){var n=e.alternate;return n===null?(n=Es(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ly(e,t,n,o,r,s){var i=2;if(o=e,typeof e=="function")rB(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case db:return ap(n.children,r,s,t);case yE:i=8,r|=8;break;case eR:return e=Es(12,n,t,r|2),e.elementType=eR,e.lanes=s,e;case tR:return e=Es(13,n,t,r),e.elementType=tR,e.lanes=s,e;case nR:return e=Es(19,n,t,r),e.elementType=nR,e.lanes=s,e;case wee:return px(n,r,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case xee:i=10;break e;case _ee:i=9;break e;case vE:i=11;break e;case xE:i=14;break e;case Fl:i=16,o=null;break e}throw Error(Le(130,e==null?e:typeof e,""))}return t=Es(i,n,t,r),t.elementType=e,t.type=o,t.lanes=s,t}function ap(e,t,n,o){return e=Es(7,e,o,t),e.lanes=n,e}function px(e,t,n,o){return e=Es(22,e,o,t),e.elementType=wee,e.lanes=n,e.stateNode={isHidden:!1},e}function W6(e,t,n){return e=Es(6,e,null,t),e.lanes=n,e}function T6(e,t,n){return t=Es(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function H_e(e,t,n,o,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=f6(0),this.expirationTimes=f6(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=f6(0),this.identifierPrefix=o,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function sB(e,t,n,o,r,s,i,c,l){return e=new H_e(e,t,n,c,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Es(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},FE(s),e}function U_e(e,t,n){var o=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(O0e)}catch(e){console.error(e)}}O0e(),Oee.exports=us;var Qo=Oee.exports,A0e,HF=Qo;A0e=HF.createRoot,HF.hydrateRoot;const Z_e=e=>typeof e=="number"?!1:typeof e?.valueOf()=="string"||Array.isArray(e)?!e.length:!e,w1={OS:"web",select:e=>"web"in e?e.web:e.default,isWeb:!0};/*! +`+s.stack}return{value:e,source:t,stack:r,digest:null}}function C6(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function RR(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var w_e=typeof WeakMap=="function"?WeakMap:Map;function Xte(e,t,n){n=Rc(-1,n),n.tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){J4||(J4=!0,DR=o),RR(e,t)},n}function Gte(e,t,n){n=Rc(-1,n),n.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var r=t.value;n.payload=function(){return o(r)},n.callback=function(){RR(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){RR(e,t),typeof o!="function"&&(Mu===null?Mu=new Set([this]):Mu.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function kF(e,t,n){var o=e.pingCache;if(o===null){o=e.pingCache=new w_e;var r=new Set;o.set(t,r)}else r=o.get(t),r===void 0&&(r=new Set,o.set(t,r));r.has(n)||(r.add(n),e=I_e.bind(null,e,t,n),t.then(e,e))}function qF(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function SF(e,t,n,o,r){return e.mode&1?(e.flags|=65536,e.lanes=r,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Rc(-1,1),t.tag=2,mu(n,t,1))),n.lanes|=1),e)}var k_e=pl.ReactCurrentOwner,xr=!1;function Go(e,t,n,o){t.child=e===null?vte(t,null,n,o):f2(t,e.child,n,o)}function CF(e,t,n,o,r){n=n.render;var s=t.ref;return Db(t,r),o=XE(e,t,n,o,s,r),n=GE(),e!==null&&!xr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Uc(e,t,r)):(Bn&&n&&BE(t),t.flags|=1,Go(e,t,o,r),t.child)}function RF(e,t,n,o,r){if(e===null){var s=n.type;return typeof s=="function"&&!rB(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,Kte(e,t,s,o,r)):(e=Ly(n.type,null,o,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&r)){var i=s.memoizedProps;if(n=n.compare,n=n!==null?n:lg,n(i,o)&&e.ref===t.ref)return Uc(e,t,r)}return t.flags|=1,e=zu(s,o),e.ref=t.ref,e.return=t,t.child=e}function Kte(e,t,n,o,r){if(e!==null){var s=e.memoizedProps;if(lg(s,o)&&e.ref===t.ref)if(xr=!1,t.pendingProps=o=s,(e.lanes&r)!==0)e.flags&131072&&(xr=!0);else return t.lanes=e.lanes,Uc(e,t,r)}return WR(e,t,n,o,r)}function Yte(e,t,n){var o=t.pendingProps,r=o.children,s=e!==null?e.memoizedState:null;if(o.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},hn(Ab,Hr),Hr|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,hn(Ab,Hr),Hr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=s!==null?s.baseLanes:n,hn(Ab,Hr),Hr|=o}else s!==null?(o=s.baseLanes|n,t.memoizedState=null):o=n,hn(Ab,Hr),Hr|=o;return Go(e,t,r,n),t.child}function Zte(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function WR(e,t,n,o,r){var s=kr(n)?Op:Io.current;return s=d2(t,s),Db(t,r),n=XE(e,t,n,o,s,r),o=GE(),e!==null&&!xr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Uc(e,t,r)):(Bn&&o&&BE(t),t.flags|=1,Go(e,t,n,r),t.child)}function WF(e,t,n,o,r){if(kr(n)){var s=!0;$4(t)}else s=!1;if(Db(t,r),t.stateNode===null)Ey(e,t),Ute(t,n,o),CR(t,n,o,r),o=!0;else if(e===null){var i=t.stateNode,c=t.memoizedProps;i.props=c;var l=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=Vs(u):(u=kr(n)?Op:Io.current,u=d2(t,u));var d=n.getDerivedStateFromProps,p=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";p||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==o||l!==u)&&wF(t,i,o,u),$l=!1;var f=t.memoizedState;i.state=f,G4(t,o,i,r),l=t.memoizedState,c!==o||f!==l||wr.current||$l?(typeof d=="function"&&(SR(t,n,d,o),l=t.memoizedState),(c=$l||_F(t,n,c,o,f,l,u))?(p||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=l),i.props=o,i.state=l,i.context=u,o=c):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{i=t.stateNode,_te(e,t),c=t.memoizedProps,u=t.type===t.elementType?c:li(t.type,c),i.props=u,p=t.pendingProps,f=i.context,l=n.contextType,typeof l=="object"&&l!==null?l=Vs(l):(l=kr(n)?Op:Io.current,l=d2(t,l));var b=n.getDerivedStateFromProps;(d=typeof b=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==p||f!==l)&&wF(t,i,o,l),$l=!1,f=t.memoizedState,i.state=f,G4(t,o,i,r);var h=t.memoizedState;c!==p||f!==h||wr.current||$l?(typeof b=="function"&&(SR(t,n,b,o),h=t.memoizedState),(u=$l||_F(t,n,u,o,f,h,l)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(o,h,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(o,h,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=h),i.props=o,i.state=h,i.context=l,o=u):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),o=!1)}return TR(e,t,n,o,s,r)}function TR(e,t,n,o,r,s){Zte(e,t);var i=(t.flags&128)!==0;if(!o&&!i)return r&&MF(t,n,!1),Uc(e,t,s);o=t.stateNode,k_e.current=t;var c=i&&typeof n.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&i?(t.child=f2(t,e.child,null,s),t.child=f2(t,null,c,s)):Go(e,t,c,s),t.memoizedState=o.state,r&&MF(t,n,!0),t.child}function Qte(e){var t=e.stateNode;t.pendingContext?mF(e,t.pendingContext,t.pendingContext!==t.context):t.context&&mF(e,t.context,!1),$E(e,t.containerInfo)}function TF(e,t,n,o,r){return p2(),LE(r),t.flags|=256,Go(e,t,n,o),t.child}var ER={dehydrated:null,treeContext:null,retryLane:0};function BR(e){return{baseLanes:e,cachePool:null,transitions:null}}function Jte(e,t,n){var o=t.pendingProps,r=Dn.current,s=!1,i=(t.flags&128)!==0,c;if((c=i)||(c=e!==null&&e.memoizedState===null?!1:(r&2)!==0),c?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(r|=1),hn(Dn,r&1),e===null)return kR(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=o.children,e=o.fallback,s?(o=t.mode,s=t.child,i={mode:"hidden",children:i},!(o&1)&&s!==null?(s.childLanes=0,s.pendingProps=i):s=px(i,o,0,null),e=ap(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=BR(n),t.memoizedState=ER,e):ZE(t,i));if(r=e.memoizedState,r!==null&&(c=r.dehydrated,c!==null))return q_e(e,t,i,o,c,r,n);if(s){s=o.fallback,i=t.mode,r=e.child,c=r.sibling;var l={mode:"hidden",children:o.children};return!(i&1)&&t.child!==r?(o=t.child,o.childLanes=0,o.pendingProps=l,t.deletions=null):(o=zu(r,l),o.subtreeFlags=r.subtreeFlags&14680064),c!==null?s=zu(c,s):(s=ap(s,i,n,null),s.flags|=2),s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,i=e.child.memoizedState,i=i===null?BR(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~n,t.memoizedState=ER,o}return s=e.child,e=s.sibling,o=zu(s,{mode:"visible",children:o.children}),!(t.mode&1)&&(o.lanes=n),o.return=t,o.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function ZE(e,t){return t=px({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function $O(e,t,n,o){return o!==null&&LE(o),f2(t,e.child,null,n),e=ZE(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function q_e(e,t,n,o,r,s,i){if(n)return t.flags&256?(t.flags&=-257,o=C6(Error(Le(422))),$O(e,t,i,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=o.fallback,r=t.mode,o=px({mode:"visible",children:o.children},r,0,null),s=ap(s,r,i,null),s.flags|=2,o.return=t,s.return=t,o.sibling=s,t.child=o,t.mode&1&&f2(t,e.child,null,i),t.child.memoizedState=BR(i),t.memoizedState=ER,s);if(!(t.mode&1))return $O(e,t,i,null);if(r.data==="$!"){if(o=r.nextSibling&&r.nextSibling.dataset,o)var c=o.dgst;return o=c,s=Error(Le(419)),o=C6(s,o,void 0),$O(e,t,i,o)}if(c=(i&e.childLanes)!==0,xr||c){if(o=G1,o!==null){switch(i&-i){case 4:r=2;break;case 16:r=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:r=32;break;case 536870912:r=268435456;break;default:r=0}r=r&(o.suspendedLanes|i)?0:r,r!==0&&r!==s.retryLane&&(s.retryLane=r,Hc(e,r),vi(o,e,r,-1))}return oB(),o=C6(Error(Le(421))),$O(e,t,i,o)}return r.data==="$?"?(t.flags|=128,t.child=e.child,t=D_e.bind(null,e),r._reactRetry=t,null):(e=s.treeContext,Kr=hu(r.nextSibling),Qr=t,Bn=!0,bi=null,e!==null&&(ws[ks++]=yc,ws[ks++]=vc,ws[ks++]=Ap,yc=e.id,vc=e.overflow,Ap=t),t=ZE(t,o.children),t.flags|=4096,t)}function EF(e,t,n){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),qR(e.return,t,n)}function R6(e,t,n,o,r){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:r}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=o,s.tail=n,s.tailMode=r)}function e0e(e,t,n){var o=t.pendingProps,r=o.revealOrder,s=o.tail;if(Go(e,t,o.children,n),o=Dn.current,o&2)o=o&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&EF(e,n,t);else if(e.tag===19)EF(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(hn(Dn,o),!(t.mode&1))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&K4(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),R6(t,!1,r,n,s);break;case"backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&K4(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}R6(t,!0,n,null,s);break;case"together":R6(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ey(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Uc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),vp|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Le(153));if(t.child!==null){for(e=t.child,n=zu(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=zu(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function S_e(e,t,n){switch(t.tag){case 3:Qte(t),p2();break;case 5:wte(t);break;case 1:kr(t.type)&&$4(t);break;case 4:$E(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,r=t.memoizedProps.value;hn(U4,o._currentValue),o._currentValue=r;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(hn(Dn,Dn.current&1),t.flags|=128,null):n&t.child.childLanes?Jte(e,t,n):(hn(Dn,Dn.current&1),e=Uc(e,t,n),e!==null?e.sibling:null);hn(Dn,Dn.current&1);break;case 19:if(o=(n&t.childLanes)!==0,e.flags&128){if(o)return e0e(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),hn(Dn,Dn.current),o)break;return null;case 22:case 23:return t.lanes=0,Yte(e,t,n)}return Uc(e,t,n)}var t0e,NR,n0e,o0e;t0e=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};NR=function(){};n0e=function(e,t,n,o){var r=e.memoizedProps;if(r!==o){e=t.stateNode,Qd(xa.current);var s=null;switch(n){case"input":r=rR(e,r),o=rR(e,o),s=[];break;case"select":r=Kn({},r,{value:void 0}),o=Kn({},o,{value:void 0}),s=[];break;case"textarea":r=aR(e,r),o=aR(e,o),s=[];break;default:typeof r.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=D4)}lR(n,o);var i;n=null;for(u in r)if(!o.hasOwnProperty(u)&&r.hasOwnProperty(u)&&r[u]!=null)if(u==="style"){var c=r[u];for(i in c)c.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ng.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in o){var l=o[u];if(c=r?.[u],o.hasOwnProperty(u)&&l!==c&&(l!=null||c!=null))if(u==="style")if(c){for(i in c)!c.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&c[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(s||(s=[]),s.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,c=c?c.__html:void 0,l!=null&&c!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ng.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&An("scroll",e),s||c===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};o0e=function(e,t,n,o){n!==o&&(t.flags|=4)};function Om(e,t){if(!Bn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function ko(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,o=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,o|=r.subtreeFlags&14680064,o|=r.flags&14680064,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,o|=r.subtreeFlags,o|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=o,e.childLanes=n,t}function C_e(e,t,n){var o=t.pendingProps;switch(NE(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ko(t),null;case 1:return kr(t.type)&&F4(),ko(t),null;case 3:return o=t.stateNode,b2(),vn(wr),vn(Io),HE(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(DO(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,bi!==null&&(VR(bi),bi=null))),NR(e,t),ko(t),null;case 5:VE(t);var r=Qd(bg.current);if(n=t.type,e!==null&&t.stateNode!=null)n0e(e,t,n,o,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(Le(166));return ko(t),null}if(e=Qd(xa.current),DO(t)){o=t.stateNode,n=t.type;var s=t.memoizedProps;switch(o[Ma]=t,o[pg]=s,e=(t.mode&1)!==0,n){case"dialog":An("cancel",o),An("close",o);break;case"iframe":case"object":case"embed":An("load",o);break;case"video":case"audio":for(r=0;r<\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=i.createElement(n,{is:o.is}):(e=i.createElement(n),n==="select"&&(i=e,o.multiple?i.multiple=!0:o.size&&(i.size=o.size))):e=i.createElementNS(e,n),e[Ma]=t,e[pg]=o,t0e(e,t,!1,!1),t.stateNode=e;e:{switch(i=uR(n,o),n){case"dialog":An("cancel",e),An("close",e),r=o;break;case"iframe":case"object":case"embed":An("load",e),r=o;break;case"video":case"audio":for(r=0;rm2&&(t.flags|=128,o=!0,Om(s,!1),t.lanes=4194304)}else{if(!o)if(e=K4(i),e!==null){if(t.flags|=128,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Om(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!Bn)return ko(t),null}else 2*c1()-s.renderingStartTime>m2&&n!==1073741824&&(t.flags|=128,o=!0,Om(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=c1(),t.sibling=null,n=Dn.current,hn(Dn,o?n&1|2:n&1),t):(ko(t),null);case 22:case 23:return nB(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&t.mode&1?Hr&1073741824&&(ko(t),t.subtreeFlags&6&&(t.flags|=8192)):ko(t),null;case 24:return null;case 25:return null}throw Error(Le(156,t.tag))}function R_e(e,t){switch(NE(t),t.tag){case 1:return kr(t.type)&&F4(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return b2(),vn(wr),vn(Io),HE(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return VE(t),null;case 13:if(vn(Dn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Le(340));p2()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return vn(Dn),null;case 4:return b2(),null;case 10:return IE(t.type._context),null;case 22:case 23:return nB(),null;case 24:return null;default:return null}}var VO=!1,Ro=!1,W_e=typeof WeakSet=="function"?WeakSet:Set,dt=null;function Ob(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(o){Jn(e,t,o)}else n.current=null}function LR(e,t,n){try{n()}catch(o){Jn(e,t,o)}}var BF=!1;function T_e(e,t){if(OR=j4,e=cte(),EE(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var o=n.getSelection&&n.getSelection();if(o&&o.rangeCount!==0){n=o.anchorNode;var r=o.anchorOffset,s=o.focusNode;o=o.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,c=-1,l=-1,u=0,d=0,p=e,f=null;t:for(;;){for(var b;p!==n||r!==0&&p.nodeType!==3||(c=i+r),p!==s||o!==0&&p.nodeType!==3||(l=i+o),p.nodeType===3&&(i+=p.nodeValue.length),(b=p.firstChild)!==null;)f=p,p=b;for(;;){if(p===e)break t;if(f===n&&++u===r&&(c=i),f===s&&++d===o&&(l=i),(b=p.nextSibling)!==null)break;p=f,f=p.parentNode}p=b}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(AR={focusedElem:e,selectionRange:n},j4=!1,dt=t;dt!==null;)if(t=dt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,dt=e;else for(;dt!==null;){t=dt;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,z=h.memoizedState,y=t.stateNode,x=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:li(t.type,g),z);y.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Le(163))}}catch(M){Jn(t,t.return,M)}if(e=t.sibling,e!==null){e.return=t.return,dt=e;break}dt=t.return}return h=BF,BF=!1,h}function _M(e,t,n){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var r=o=o.next;do{if((r.tag&e)===e){var s=r.destroy;r.destroy=void 0,s!==void 0&&LR(t,n,s)}r=r.next}while(r!==o)}}function ux(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function jR(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function r0e(e){var t=e.alternate;t!==null&&(e.alternate=null,r0e(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ma],delete t[pg],delete t[xR],delete t[h_e],delete t[m_e])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function s0e(e){return e.tag===5||e.tag===3||e.tag===4}function NF(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||s0e(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function PR(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=D4));else if(o!==4&&(e=e.child,e!==null))for(PR(e,t,n),e=e.sibling;e!==null;)PR(e,t,n),e=e.sibling}function IR(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(IR(e,t,n),e=e.sibling;e!==null;)IR(e,t,n),e=e.sibling}var io=null,pi=!1;function Cl(e,t,n){for(n=n.child;n!==null;)i0e(e,t,n),n=n.sibling}function i0e(e,t,n){if(va&&typeof va.onCommitFiberUnmount=="function")try{va.onCommitFiberUnmount(nx,n)}catch{}switch(n.tag){case 5:Ro||Ob(n,t);case 6:var o=io,r=pi;io=null,Cl(e,t,n),io=o,pi=r,io!==null&&(pi?(e=io,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):io.removeChild(n.stateNode));break;case 18:io!==null&&(pi?(e=io,n=n.stateNode,e.nodeType===8?x6(e.parentNode,n):e.nodeType===1&&x6(e,n),ag(e)):x6(io,n.stateNode));break;case 4:o=io,r=pi,io=n.stateNode.containerInfo,pi=!0,Cl(e,t,n),io=o,pi=r;break;case 0:case 11:case 14:case 15:if(!Ro&&(o=n.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){r=o=o.next;do{var s=r,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&LR(n,t,i),r=r.next}while(r!==o)}Cl(e,t,n);break;case 1:if(!Ro&&(Ob(n,t),o=n.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(c){Jn(n,t,c)}Cl(e,t,n);break;case 21:Cl(e,t,n);break;case 22:n.mode&1?(Ro=(o=Ro)||n.memoizedState!==null,Cl(e,t,n),Ro=o):Cl(e,t,n);break;default:Cl(e,t,n)}}function LF(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new W_e),t.forEach(function(o){var r=F_e.bind(null,e,o);n.has(o)||(n.add(o),o.then(r,r))})}}function ai(e,t){var n=t.deletions;if(n!==null)for(var o=0;or&&(r=i),o&=~s}if(o=r,o=c1()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*B_e(o/1960))-o,10e?16:e,Ql===null)var o=!1;else{if(e=Ql,Ql=null,ev=0,q0&6)throw Error(Le(331));var r=q0;for(q0|=4,dt=e.current;dt!==null;){var s=dt,i=s.child;if(dt.flags&16){var c=s.deletions;if(c!==null){for(var l=0;lc1()-eB?ip(e,0):JE|=n),qr(e,t)}function b0e(e,t){t===0&&(e.mode&1?(t=BO,BO<<=1,!(BO&130023424)&&(BO=4194304)):t=1);var n=Zo();e=Hc(e,t),e!==null&&(Bz(e,t,n),qr(e,n))}function D_e(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),b0e(e,n)}function F_e(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(Le(314))}o!==null&&o.delete(t),b0e(e,n)}var h0e;h0e=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||wr.current)xr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return xr=!1,S_e(e,t,n);xr=!!(e.flags&131072)}else xr=!1,Bn&&t.flags&1048576&&zte(t,H4,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Ey(e,t),e=t.pendingProps;var r=d2(t,Io.current);Db(t,n),r=XE(null,t,o,e,r,n);var s=GE();return t.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,kr(o)?(s=!0,$4(t)):s=!1,t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,FE(t),r.updater=lx,t.stateNode=r,r._reactInternals=t,CR(t,o,e,n),t=TR(null,t,o,!0,s,n)):(t.tag=0,Bn&&s&&BE(t),Go(null,t,r,n),t=t.child),t;case 16:o=t.elementType;e:{switch(Ey(e,t),e=t.pendingProps,r=o._init,o=r(o._payload),t.type=o,r=t.tag=V_e(o),e=li(o,e),r){case 0:t=WR(null,t,o,e,n);break e;case 1:t=WF(null,t,o,e,n);break e;case 11:t=CF(null,t,o,e,n);break e;case 14:t=RF(null,t,o,li(o.type,e),n);break e}throw Error(Le(306,o,""))}return t;case 0:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:li(o,r),WR(e,t,o,r,n);case 1:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:li(o,r),WF(e,t,o,r,n);case 3:e:{if(Qte(t),e===null)throw Error(Le(387));o=t.pendingProps,s=t.memoizedState,r=s.element,_te(e,t),G4(t,o,null,n);var i=t.memoizedState;if(o=i.element,s.isDehydrated)if(s={element:o,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){r=h2(Error(Le(423)),t),t=TF(e,t,o,n,r);break e}else if(o!==r){r=h2(Error(Le(424)),t),t=TF(e,t,o,n,r);break e}else for(Kr=hu(t.stateNode.containerInfo.firstChild),Qr=t,Bn=!0,bi=null,n=vte(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(p2(),o===r){t=Uc(e,t,n);break e}Go(e,t,o,n)}t=t.child}return t;case 5:return wte(t),e===null&&kR(t),o=t.type,r=t.pendingProps,s=e!==null?e.memoizedProps:null,i=r.children,yR(o,r)?i=null:s!==null&&yR(o,s)&&(t.flags|=32),Zte(e,t),Go(e,t,i,n),t.child;case 6:return e===null&&kR(t),null;case 13:return Jte(e,t,n);case 4:return $E(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=f2(t,null,o,n):Go(e,t,o,n),t.child;case 11:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:li(o,r),CF(e,t,o,r,n);case 7:return Go(e,t,t.pendingProps,n),t.child;case 8:return Go(e,t,t.pendingProps.children,n),t.child;case 12:return Go(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,r=t.pendingProps,s=t.memoizedProps,i=r.value,hn(U4,o._currentValue),o._currentValue=i,s!==null)if(qi(s.value,i)){if(s.children===r.children&&!wr.current){t=Uc(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var c=s.dependencies;if(c!==null){i=s.child;for(var l=c.firstContext;l!==null;){if(l.context===o){if(s.tag===1){l=Rc(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),qR(s.return,n,t),c.lanes|=n;break}l=l.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(Le(341));i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),qR(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}Go(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,o=t.pendingProps.children,Db(t,n),r=Vs(r),o=o(r),t.flags|=1,Go(e,t,o,n),t.child;case 14:return o=t.type,r=li(o,t.pendingProps),r=li(o.type,r),RF(e,t,o,r,n);case 15:return Kte(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:li(o,r),Ey(e,t),t.tag=1,kr(o)?(e=!0,$4(t)):e=!1,Db(t,n),Ute(t,o,r),CR(t,o,r,n),TR(null,t,o,!0,e,n);case 19:return e0e(e,t,n);case 22:return Yte(e,t,n)}throw Error(Le(156,t.tag))};function m0e(e,t){return $ee(e,t)}function $_e(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bs(e,t,n,o){return new $_e(e,t,n,o)}function rB(e){return e=e.prototype,!(!e||!e.isReactComponent)}function V_e(e){if(typeof e=="function")return rB(e)?1:0;if(e!=null){if(e=e.$$typeof,e===vE)return 11;if(e===xE)return 14}return 2}function zu(e,t){var n=e.alternate;return n===null?(n=Bs(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ly(e,t,n,o,r,s){var i=2;if(o=e,typeof e=="function")rB(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case db:return ap(n.children,r,s,t);case yE:i=8,r|=8;break;case eR:return e=Bs(12,n,t,r|2),e.elementType=eR,e.lanes=s,e;case tR:return e=Bs(13,n,t,r),e.elementType=tR,e.lanes=s,e;case nR:return e=Bs(19,n,t,r),e.elementType=nR,e.lanes=s,e;case wee:return px(n,r,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case xee:i=10;break e;case _ee:i=9;break e;case vE:i=11;break e;case xE:i=14;break e;case Fl:i=16,o=null;break e}throw Error(Le(130,e==null?e:typeof e,""))}return t=Bs(i,n,t,r),t.elementType=e,t.type=o,t.lanes=s,t}function ap(e,t,n,o){return e=Bs(7,e,o,t),e.lanes=n,e}function px(e,t,n,o){return e=Bs(22,e,o,t),e.elementType=wee,e.lanes=n,e.stateNode={isHidden:!1},e}function W6(e,t,n){return e=Bs(6,e,null,t),e.lanes=n,e}function T6(e,t,n){return t=Bs(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function H_e(e,t,n,o,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=f6(0),this.expirationTimes=f6(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=f6(0),this.identifierPrefix=o,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function sB(e,t,n,o,r,s,i,c,l){return e=new H_e(e,t,n,c,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Bs(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},FE(s),e}function U_e(e,t,n){var o=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(O0e)}catch(e){console.error(e)}}O0e(),Oee.exports=ds;var Qo=Oee.exports,A0e,HF=Qo;A0e=HF.createRoot,HF.hydrateRoot;const Z_e=e=>typeof e=="number"?!1:typeof e?.valueOf()=="string"||Array.isArray(e)?!e.length:!e,w1={OS:"web",select:e=>"web"in e?e.web:e.default,isWeb:!0};/*! * is-plain-object * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. - */function UF(e){return Object.prototype.toString.call(e)==="[object Object]"}function Pz(e){var t,n;return UF(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(UF(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}var HR=function(e,t){return HR=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},HR(e,t)};function Q_e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");HR(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var i1=function(){return i1=Object.assign||function(t){for(var n,o=1,r=arguments.length;o0&&n>="0"&&n<="9"?"_"+n+o:""+n.toUpperCase()+o}function ov(e,t){return t===void 0&&(t={}),Mx(e,i1({delimiter:"",transform:y0e},t))}function nwe(e,t){return t===0?e.toLowerCase():y0e(e,t)}function lB(e,t){return t===void 0&&(t={}),ov(e,i1({transform:nwe},t))}function owe(e){return e.charAt(0).toUpperCase()+e.substr(1)}function rwe(e){return owe(e.toLowerCase())}function v0e(e,t){return t===void 0&&(t={}),Mx(e,i1({delimiter:" ",transform:rwe},t))}function swe(e,t){return t===void 0&&(t={}),Mx(e,i1({delimiter:"."},t))}function Us(e,t){return t===void 0&&(t={}),swe(e,i1({delimiter:"-"},t))}function iwe(e){return e.replace(/>/g,">")}const awe=/[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/;function x0e(e){return e.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi,"&")}function cwe(e){return e.replace(/"/g,""")}function _0e(e){return e.replace(/{typeof o=="string"&&o.trim()!==""&&(n+=o)}),O.createElement("div",{dangerouslySetInnerHTML:{__html:n},...t})}const{Provider:uwe,Consumer:dwe}=O.createContext(void 0),pwe=O.forwardRef(()=>null),fwe=new Set(["string","boolean","number"]),bwe=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),hwe=new Set(["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"]),mwe=new Set(["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),Mwe=new Set(["animation","animationIterationCount","baselineShift","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","cx","cy","fillOpacity","flexGrow","flexShrink","floodOpacity","fontWeight","gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","r","rx","ry","shapeImageThreshold","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","x","y","zIndex","zoom"]);function k0e(e,t){return t.some(n=>e.indexOf(n)===0)}function gwe(e){return e==="key"||e==="children"}function zwe(e,t){switch(e){case"style":return _we(t)}return t}const GF=["accentHeight","alignmentBaseline","arabicForm","baselineShift","capHeight","clipPath","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","dominantBaseline","enableBackground","fillOpacity","fillRule","floodColor","floodOpacity","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","horizAdvX","horizOriginX","imageRendering","letterSpacing","lightingColor","markerEnd","markerMid","markerStart","overlinePosition","overlineThickness","paintOrder","panose1","pointerEvents","renderingIntent","shapeRendering","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","textAnchor","textDecoration","textRendering","underlinePosition","underlineThickness","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","vHanging","vIdeographic","vMathematical","vectorEffect","vertAdvY","vertOriginX","vertOriginY","wordSpacing","writingMode","xmlnsXlink","xHeight"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{}),KF=["allowReorder","attributeName","attributeType","autoReverse","baseFrequency","baseProfile","calcMode","clipPathUnits","contentScriptType","contentStyleType","diffuseConstant","edgeMode","externalResourcesRequired","filterRes","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","suppressContentEditableWarning","suppressHydrationWarning","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{}),YF=["xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","xmlns:xlink"].reduce((e,t)=>(e[t.replace(":","").toLowerCase()]=t,e),{});function Owe(e){switch(e){case"htmlFor":return"for";case"className":return"class"}const t=e.toLowerCase();return KF[t]?KF[t]:GF[t]?Us(GF[t]):YF[t]?YF[t]:t}function Awe(e){return e.startsWith("--")?e:k0e(e,["ms","O","Moz","Webkit"])?"-"+Us(e):Us(e)}function ywe(e,t){return typeof t=="number"&&t!==0&&!Mwe.has(e)?t+"px":t}function No(e,t,n={}){if(e==null||e===!1)return"";if(Array.isArray(e))return qM(e,t,n);switch(typeof e){case"string":return UR(e);case"number":return e.toString()}const{type:o,props:r}=e;switch(o){case O.StrictMode:case O.Fragment:return qM(r.children,t,n);case C1:const{children:s,...i}=r;return ZF(Object.keys(i).length?"div":null,{...i,dangerouslySetInnerHTML:{__html:s}},t,n)}switch(typeof o){case"string":return ZF(o,r,t,n);case"function":return o.prototype&&typeof o.prototype.render=="function"?vwe(o,r,t,n):No(o(r,n),t,n)}switch(o&&o.$$typeof){case uwe.$$typeof:return qM(r.children,r.value,n);case dwe.$$typeof:return No(r.children(t||o._currentValue),t,n);case pwe.$$typeof:return No(o.render(r),t,n)}return""}function ZF(e,t,n,o={}){let r="";if(e==="textarea"&&t.hasOwnProperty("value")){r=qM(t.value,n,o);const{value:i,...c}=t;t=c}else t.dangerouslySetInnerHTML&&typeof t.dangerouslySetInnerHTML.__html=="string"?r=t.dangerouslySetInnerHTML.__html:typeof t.children<"u"&&(r=qM(t.children,n,o));if(!e)return r;const s=xwe(t);return bwe.has(e)?"<"+e+s+"/>":"<"+e+s+">"+r+""}function vwe(e,t,n,o={}){const r=new e(t,o);return typeof r.getChildContext=="function"&&Object.assign(o,r.getChildContext()),No(r.render(),n,o)}function qM(e,t,n={}){let o="";e=Array.isArray(e)?e:[e];for(let r=0;r=0),g.type){case"b":p=parseInt(p,10).toString(2);break;case"c":p=String.fromCharCode(parseInt(p,10));break;case"d":case"i":p=parseInt(p,10);break;case"j":p=JSON.stringify(p,null,g.width?parseInt(g.width):0);break;case"e":p=g.precision?parseFloat(p).toExponential(g.precision):parseFloat(p).toExponential();break;case"f":p=g.precision?parseFloat(p).toFixed(g.precision):parseFloat(p);break;case"g":p=g.precision?String(Number(p.toPrecision(g.precision))):parseFloat(p);break;case"o":p=(parseInt(p,10)>>>0).toString(8);break;case"s":p=String(p),p=g.precision?p.substring(0,g.precision):p;break;case"t":p=String(!!p),p=g.precision?p.substring(0,g.precision):p;break;case"T":p=Object.prototype.toString.call(p).slice(8,-1).toLowerCase(),p=g.precision?p.substring(0,g.precision):p;break;case"u":p=parseInt(p,10)>>>0;break;case"v":p=p.valueOf(),p=g.precision?p.substring(0,g.precision):p;break;case"x":p=(parseInt(p,10)>>>0).toString(16);break;case"X":p=(parseInt(p,10)>>>0).toString(16).toUpperCase();break}t.json.test(g.type)?f+=p:(t.number.test(g.type)&&(!v||g.sign)?(M=v?"+":"-",p=p.toString().replace(t.sign,"")):M="",y=g.pad_char?g.pad_char==="0"?"0":g.pad_char.charAt(1):" ",x=g.width-(M+p).length,z=g.width&&x>0?y.repeat(x):"",f+=g.align?M+p+z:y==="0"?M+z+p:z+M+p)}return f}var s=Object.create(null);function i(c){if(s[c])return s[c];for(var l=c,u,d=[],p=0;l;){if((u=t.text.exec(l))!==null)d.push(u[0]);else if((u=t.modulo.exec(l))!==null)d.push("%");else if((u=t.placeholder.exec(l))!==null){if(u[2]){p|=1;var f=[],b=u[2],h=[];if((h=t.key.exec(b))!==null)for(f.push(h[1]);(b=b.substring(h[0].length))!=="";)if((h=t.key_access.exec(b))!==null)f.push(h[1]);else if((h=t.index_access.exec(b))!==null)f.push(h[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");u[2]=f}else p|=2;if(p===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");d.push({placeholder:u[0],param_no:u[1],keys:u[2],sign:u[3],pad_char:u[4],align:u[5],width:u[6],precision:u[7],type:u[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");l=l.substring(u[0].length)}return s[c]=d}e.sprintf=n,e.vsprintf=o,typeof window<"u"&&(window.sprintf=n,window.vsprintf=o)})()})(q0e);const wwe=yo(q0e),kwe=ps(console.error);function le(e,...t){try{return wwe.sprintf(e,...t)}catch(n){return n instanceof Error&&kwe(`sprintf error: + */function UF(e){return Object.prototype.toString.call(e)==="[object Object]"}function Pz(e){var t,n;return UF(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(UF(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}var HR=function(e,t){return HR=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},HR(e,t)};function Q_e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");HR(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var i1=function(){return i1=Object.assign||function(t){for(var n,o=1,r=arguments.length;o0&&n>="0"&&n<="9"?"_"+n+o:""+n.toUpperCase()+o}function ov(e,t){return t===void 0&&(t={}),Mx(e,i1({delimiter:"",transform:y0e},t))}function nwe(e,t){return t===0?e.toLowerCase():y0e(e,t)}function lB(e,t){return t===void 0&&(t={}),ov(e,i1({transform:nwe},t))}function owe(e){return e.charAt(0).toUpperCase()+e.substr(1)}function rwe(e){return owe(e.toLowerCase())}function v0e(e,t){return t===void 0&&(t={}),Mx(e,i1({delimiter:" ",transform:rwe},t))}function swe(e,t){return t===void 0&&(t={}),Mx(e,i1({delimiter:"."},t))}function Us(e,t){return t===void 0&&(t={}),swe(e,i1({delimiter:"-"},t))}function iwe(e){return e.replace(/>/g,">")}const awe=/[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/;function x0e(e){return e.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi,"&")}function cwe(e){return e.replace(/"/g,""")}function _0e(e){return e.replace(/{typeof o=="string"&&o.trim()!==""&&(n+=o)}),O.createElement("div",{dangerouslySetInnerHTML:{__html:n},...t})}const{Provider:uwe,Consumer:dwe}=O.createContext(void 0),pwe=O.forwardRef(()=>null),fwe=new Set(["string","boolean","number"]),bwe=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),hwe=new Set(["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"]),mwe=new Set(["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),Mwe=new Set(["animation","animationIterationCount","baselineShift","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","cx","cy","fillOpacity","flexGrow","flexShrink","floodOpacity","fontWeight","gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","r","rx","ry","shapeImageThreshold","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","x","y","zIndex","zoom"]);function k0e(e,t){return t.some(n=>e.indexOf(n)===0)}function gwe(e){return e==="key"||e==="children"}function zwe(e,t){switch(e){case"style":return _we(t)}return t}const GF=["accentHeight","alignmentBaseline","arabicForm","baselineShift","capHeight","clipPath","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","dominantBaseline","enableBackground","fillOpacity","fillRule","floodColor","floodOpacity","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","horizAdvX","horizOriginX","imageRendering","letterSpacing","lightingColor","markerEnd","markerMid","markerStart","overlinePosition","overlineThickness","paintOrder","panose1","pointerEvents","renderingIntent","shapeRendering","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","textAnchor","textDecoration","textRendering","underlinePosition","underlineThickness","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","vHanging","vIdeographic","vMathematical","vectorEffect","vertAdvY","vertOriginX","vertOriginY","wordSpacing","writingMode","xmlnsXlink","xHeight"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{}),KF=["allowReorder","attributeName","attributeType","autoReverse","baseFrequency","baseProfile","calcMode","clipPathUnits","contentScriptType","contentStyleType","diffuseConstant","edgeMode","externalResourcesRequired","filterRes","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","suppressContentEditableWarning","suppressHydrationWarning","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{}),YF=["xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","xmlns:xlink"].reduce((e,t)=>(e[t.replace(":","").toLowerCase()]=t,e),{});function Owe(e){switch(e){case"htmlFor":return"for";case"className":return"class"}const t=e.toLowerCase();return KF[t]?KF[t]:GF[t]?Us(GF[t]):YF[t]?YF[t]:t}function Awe(e){return e.startsWith("--")?e:k0e(e,["ms","O","Moz","Webkit"])?"-"+Us(e):Us(e)}function ywe(e,t){return typeof t=="number"&&t!==0&&!Mwe.has(e)?t+"px":t}function No(e,t,n={}){if(e==null||e===!1)return"";if(Array.isArray(e))return qM(e,t,n);switch(typeof e){case"string":return UR(e);case"number":return e.toString()}const{type:o,props:r}=e;switch(o){case O.StrictMode:case O.Fragment:return qM(r.children,t,n);case C1:const{children:s,...i}=r;return ZF(Object.keys(i).length?"div":null,{...i,dangerouslySetInnerHTML:{__html:s}},t,n)}switch(typeof o){case"string":return ZF(o,r,t,n);case"function":return o.prototype&&typeof o.prototype.render=="function"?vwe(o,r,t,n):No(o(r,n),t,n)}switch(o&&o.$$typeof){case uwe.$$typeof:return qM(r.children,r.value,n);case dwe.$$typeof:return No(r.children(t||o._currentValue),t,n);case pwe.$$typeof:return No(o.render(r),t,n)}return""}function ZF(e,t,n,o={}){let r="";if(e==="textarea"&&t.hasOwnProperty("value")){r=qM(t.value,n,o);const{value:i,...c}=t;t=c}else t.dangerouslySetInnerHTML&&typeof t.dangerouslySetInnerHTML.__html=="string"?r=t.dangerouslySetInnerHTML.__html:typeof t.children<"u"&&(r=qM(t.children,n,o));if(!e)return r;const s=xwe(t);return bwe.has(e)?"<"+e+s+"/>":"<"+e+s+">"+r+""}function vwe(e,t,n,o={}){const r=new e(t,o);return typeof r.getChildContext=="function"&&Object.assign(o,r.getChildContext()),No(r.render(),n,o)}function qM(e,t,n={}){let o="";e=Array.isArray(e)?e:[e];for(let r=0;r=0),g.type){case"b":p=parseInt(p,10).toString(2);break;case"c":p=String.fromCharCode(parseInt(p,10));break;case"d":case"i":p=parseInt(p,10);break;case"j":p=JSON.stringify(p,null,g.width?parseInt(g.width):0);break;case"e":p=g.precision?parseFloat(p).toExponential(g.precision):parseFloat(p).toExponential();break;case"f":p=g.precision?parseFloat(p).toFixed(g.precision):parseFloat(p);break;case"g":p=g.precision?String(Number(p.toPrecision(g.precision))):parseFloat(p);break;case"o":p=(parseInt(p,10)>>>0).toString(8);break;case"s":p=String(p),p=g.precision?p.substring(0,g.precision):p;break;case"t":p=String(!!p),p=g.precision?p.substring(0,g.precision):p;break;case"T":p=Object.prototype.toString.call(p).slice(8,-1).toLowerCase(),p=g.precision?p.substring(0,g.precision):p;break;case"u":p=parseInt(p,10)>>>0;break;case"v":p=p.valueOf(),p=g.precision?p.substring(0,g.precision):p;break;case"x":p=(parseInt(p,10)>>>0).toString(16);break;case"X":p=(parseInt(p,10)>>>0).toString(16).toUpperCase();break}t.json.test(g.type)?f+=p:(t.number.test(g.type)&&(!v||g.sign)?(M=v?"+":"-",p=p.toString().replace(t.sign,"")):M="",y=g.pad_char?g.pad_char==="0"?"0":g.pad_char.charAt(1):" ",x=g.width-(M+p).length,z=g.width&&x>0?y.repeat(x):"",f+=g.align?M+p+z:y==="0"?M+z+p:z+M+p)}return f}var s=Object.create(null);function i(c){if(s[c])return s[c];for(var l=c,u,d=[],p=0;l;){if((u=t.text.exec(l))!==null)d.push(u[0]);else if((u=t.modulo.exec(l))!==null)d.push("%");else if((u=t.placeholder.exec(l))!==null){if(u[2]){p|=1;var f=[],b=u[2],h=[];if((h=t.key.exec(b))!==null)for(f.push(h[1]);(b=b.substring(h[0].length))!=="";)if((h=t.key_access.exec(b))!==null)f.push(h[1]);else if((h=t.index_access.exec(b))!==null)f.push(h[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");u[2]=f}else p|=2;if(p===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");d.push({placeholder:u[0],param_no:u[1],keys:u[2],sign:u[3],pad_char:u[4],align:u[5],width:u[6],precision:u[7],type:u[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");l=l.substring(u[0].length)}return s[c]=d}e.sprintf=n,e.vsprintf=o,typeof window<"u"&&(window.sprintf=n,window.vsprintf=o)})()})(q0e);const wwe=yo(q0e),kwe=fs(console.error);function le(e,...t){try{return wwe.sprintf(e,...t)}catch(n){return n instanceof Error&&kwe(`sprintf error: -`+n.toString()),e}}var XR,S0e,eM,C0e;XR={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1};S0e=["(","?"];eM={")":["("],":":["?","?:"]};C0e=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;function qwe(e){for(var t=[],n=[],o,r,s,i;o=e.match(C0e);){for(r=o[0],s=e.substr(0,o.index).trim(),s&&t.push(s);i=n.pop();){if(eM[r]){if(eM[r][0]===i){r=eM[r][1]||r;break}}else if(S0e.indexOf(i)>=0||XR[i]":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function Cwe(e,t){var n=[],o,r,s,i,c,l;for(o=0;o{const o=new uB({}),r=new Set,s=()=>{r.forEach(M=>M())},i=M=>(r.add(M),()=>r.delete(M)),c=(M="default")=>o.data[M],l=(M,A="default")=>{o.data[A]={...o.data[A],...M},o.data[A][""]={...JF[""],...o.data[A]?.[""]},delete o.pluralForms[A]},u=(M,A)=>{l(M,A),s()},d=(M,A="default")=>{o.data[A]={...o.data[A],...M,"":{...JF[""],...o.data[A]?.[""],...M?.[""]}},delete o.pluralForms[A],s()},p=(M,A)=>{o.data={},o.pluralForms={},u(M,A)},f=(M="default",A,_,w,k)=>(o.data[M]||l(void 0,M),o.dcnpgettext(M,A,_,w,k)),b=(M="default")=>M,h=(M,A)=>{let _=f(A,void 0,M);return n?(_=n.applyFilters("i18n.gettext",_,M,A),n.applyFilters("i18n.gettext_"+b(A),_,M,A)):_},g=(M,A,_)=>{let w=f(_,A,M);return n?(w=n.applyFilters("i18n.gettext_with_context",w,M,A,_),n.applyFilters("i18n.gettext_with_context_"+b(_),w,M,A,_)):w},z=(M,A,_,w)=>{let k=f(w,void 0,M,A,_);return n?(k=n.applyFilters("i18n.ngettext",k,M,A,_,w),n.applyFilters("i18n.ngettext_"+b(w),k,M,A,_,w)):k},y=(M,A,_,w,k)=>{let q=f(k,w,M,A,_);return n?(q=n.applyFilters("i18n.ngettext_with_context",q,M,A,_,w,k),n.applyFilters("i18n.ngettext_with_context_"+b(k),q,M,A,_,w,k)):q},x=()=>g("ltr","text direction")==="rtl",v=(M,A,_)=>{const w=A?A+""+M:M;let k=!!o.data?.[_??"default"]?.[w];return n&&(k=n.applyFilters("i18n.has_translation",k,M,A,_),k=n.applyFilters("i18n.has_translation_"+b(_),k,M,A,_)),k};if(n){const M=A=>{Ewe.test(A)&&s()};n.addAction("hookAdded","core/i18n",M),n.addAction("hookRemoved","core/i18n",M)}return{getLocaleData:c,setLocaleData:u,addLocaleData:d,resetLocaleData:p,subscribe:i,__:h,_x:g,_n:z,_nx:y,isRTL:x,hasTranslation:v}};function R0e(e){return typeof e!="string"||e===""?(console.error("The namespace must be a non-empty string."),!1):/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)?!0:(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)}function dB(e){return typeof e!="string"||e===""?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)?!0:(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)}function e$(e,t){return function(o,r,s,i=10){const c=e[t];if(!dB(o)||!R0e(r))return;if(typeof s!="function"){console.error("The hook callback must be a function.");return}if(typeof i!="number"){console.error("If specified, the hook priority must be a number.");return}const l={callback:s,priority:i,namespace:r};if(c[o]){const u=c[o].handlers;let d;for(d=u.length;d>0&&!(i>=u[d-1].priority);d--);d===u.length?u[d]=l:u.splice(d,0,l),c.__current.forEach(p=>{p.name===o&&p.currentIndex>=d&&p.currentIndex++})}else c[o]={handlers:[l],runs:0};o!=="hookAdded"&&e.doAction("hookAdded",o,r,s,i)}}function XO(e,t,n=!1){return function(r,s){const i=e[t];if(!dB(r)||!n&&!R0e(s))return;if(!i[r])return 0;let c=0;if(n)c=i[r].handlers.length,i[r]={runs:i[r].runs,handlers:[]};else{const l=i[r].handlers;for(let u=l.length-1;u>=0;u--)l[u].namespace===s&&(l.splice(u,1),c++,i.__current.forEach(d=>{d.name===r&&d.currentIndex>=u&&d.currentIndex--}))}return r!=="hookRemoved"&&e.doAction("hookRemoved",r,s),c}}function t$(e,t){return function(o,r){const s=e[t];return typeof r<"u"?o in s&&s[o].handlers.some(i=>i.namespace===r):o in s}}function n$(e,t,n=!1){return function(r,...s){const i=e[t];i[r]||(i[r]={handlers:[],runs:0}),i[r].runs++;const c=i[r].handlers;if(!c||!c.length)return n?s[0]:void 0;const l={name:r,currentIndex:0};for(i.__current.push(l);l.currentIndex"u"?typeof r.__current[0]<"u":r.__current[0]?o===r.__current[0].name:!1}}function s$(e,t){return function(o){const r=e[t];if(dB(o))return r[o]&&r[o].runs?r[o].runs:0}}class Nwe{constructor(){this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=e$(this,"actions"),this.addFilter=e$(this,"filters"),this.removeAction=XO(this,"actions"),this.removeFilter=XO(this,"filters"),this.hasAction=t$(this,"actions"),this.hasFilter=t$(this,"filters"),this.removeAllActions=XO(this,"actions",!0),this.removeAllFilters=XO(this,"filters",!0),this.doAction=n$(this,"actions"),this.applyFilters=n$(this,"filters",!0),this.currentAction=o$(this,"actions"),this.currentFilter=o$(this,"filters"),this.doingAction=r$(this,"actions"),this.doingFilter=r$(this,"filters"),this.didAction=s$(this,"actions"),this.didFilter=s$(this,"filters")}}function W0e(){return new Nwe}const T0e=W0e(),{addAction:i$,addFilter:r0,removeAction:a$,removeFilter:c$,hasAction:Vf0,hasFilter:E0e,removeAllActions:Hf0,removeAllFilters:Uf0,doAction:B0e,applyFilters:_n,currentAction:Xf0,currentFilter:Gf0,doingAction:Kf0,doingFilter:Yf0,didAction:Zf0,didFilter:Qf0,actions:Jf0,filters:eb0}=T0e,A1=Bwe(void 0,void 0,T0e);A1.getLocaleData.bind(A1);A1.setLocaleData.bind(A1);A1.resetLocaleData.bind(A1);A1.subscribe.bind(A1);const m=A1.__.bind(A1),Oe=A1._x.bind(A1),a0=A1._n.bind(A1);A1._nx.bind(A1);const ft=A1.isRTL.bind(A1);A1.hasTranslation.bind(A1);function Lwe(e){const t=(n,o)=>{const{headers:r={}}=n;for(const s in r)if(s.toLowerCase()==="x-wp-nonce"&&r[s]===t.nonce)return o(n);return o({...n,headers:{...r,"X-WP-Nonce":t.nonce}})};return t.nonce=e,t}const N0e=(e,t)=>{let n=e.path,o,r;return typeof e.namespace=="string"&&typeof e.endpoint=="string"&&(o=e.namespace.replace(/^\/|\/$/g,""),r=e.endpoint.replace(/^\//,""),r?n=o+"/"+r:n=o),delete e.namespace,delete e.endpoint,t({...e,path:n})},jwe=e=>(t,n)=>N0e(t,o=>{let r=o.url,s=o.path,i;return typeof s=="string"&&(i=e,e.indexOf("?")!==-1&&(s=s.replace("?","&")),s=s.replace(/^\//,""),typeof i=="string"&&i.indexOf("?")!==-1&&(s=s.replace("?","&")),r=i+s),n({...o,url:r})});function of(e){try{return new URL(e),!0}catch{return!1}}const Pwe=/^(mailto:)?[a-z0-9._%+-]+@[a-z0-9][a-z0-9.-]*\.[a-z]{2,63}$/i;function L0e(e){return Pwe.test(e)}function zx(e){const t=/^([^\s:]+:)/.exec(e);if(t)return t[1]}function pB(e){return e?/^[a-z\-.\+]+[0-9]*:$/i.test(e):!1}function fB(e){const t=/^[^\/\s:]+:(?:\/\/)?\/?([^\/\s#?]+)[\/#?]{0,1}\S*$/.exec(e);if(t)return t[1]}function Iwe(e){return e?/^[^\s#?]+$/.test(e):!1}function rf(e){const t=/^[^\/\s:]+:(?:\/\/)?[^\/\s#?]+[\/]([^\s#?]+)[#?]{0,1}\S*$/.exec(e);if(t)return t[1]}function Dwe(e){return e?/^[^\s#?]+$/.test(e):!1}function bB(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch{}if(t)return t}function Ox(e){let t="";const n=Object.entries(e);let o;for(;o=n.shift();){let[r,s]=o;if(Array.isArray(s)||s&&s.constructor===Object){const c=Object.entries(s).reverse();for(const[l,u]of c)n.unshift([`${r}[${l}]`,u])}else s!==void 0&&(s===null&&(s=""),t+="&"+[r,s].map(encodeURIComponent).join("="))}return t.substr(1)}function Fwe(e){return e?/^[^\s#?\/]+$/.test(e):!1}function $we(e){const t=rf(e),n=bB(e);let o="/";return t&&(o+=t),n&&(o+=`?${n}`),o}function Vwe(e){const t=/^\S+?(#[^\s\?]*)/.exec(e);if(t)return t[1]}function GR(e){return e?/^#[^\s#?\/]*$/.test(e):!1}function zg(e){try{return decodeURIComponent(e)}catch{return e}}function Hwe(e,t,n){const o=t.length,r=o-1;for(let s=0;s{const[o,r=""]=n.split("=").filter(Boolean).map(zg);if(o){const s=o.replace(/\]/g,"").split("[");Hwe(t,s,r)}return t},Object.create(null))}function wt(e="",t){if(!t||!Object.keys(t).length)return e;let n=e;const o=e.indexOf("?");return o!==-1&&(t=Object.assign(Ax(e),t),n=n.substr(0,o)),n+"?"+Ox(t)}function KR(e,t){return Ax(e)[t]}function l$(e,t){return KR(e,t)!==void 0}function rv(e,...t){const n=e.indexOf("?");if(n===-1)return e;const o=Ax(e),r=e.substr(0,n);t.forEach(i=>delete o[i]);const s=Ox(o);return s?r+"?"+s:r}const Uwe=/^(?:[a-z]+:|#|\?|\.|\/)/i;function sf(e){return e&&(e=e.trim(),!Uwe.test(e)&&!L0e(e)?"http://"+e:e)}function Iz(e){try{return decodeURI(e)}catch{return e}}function Dz(e,t=null){if(!e)return"";let n=e.replace(/^[a-z\-.\+]+[0-9]*:(\/\/)?/i,"").replace(/^www\./i,"");n.match(/^[^\/]+\/$/)&&(n=n.replace("/",""));const o=/\/([^\/?]+)\.(?:[\w]+)(?=\?|$)/;if(!t||n.length<=t||!n.match(o))return n;n=n.split("?")[0];const r=n.split("/"),s=r[r.length-1];if(s.length<=t)return"…"+n.slice(-t);const i=s.lastIndexOf("."),[c,l]=[s.slice(0,i),s.slice(i+1)],u=c.slice(-3)+"."+l;return s.slice(0,t-u.length-1)+"…"+u}var yx={exports:{}},j0e={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},P0e=Object.keys(j0e).join("|"),Xwe=new RegExp(P0e,"g"),Gwe=new RegExp(P0e,"");function Kwe(e){return j0e[e]}var I0e=function(e){return e.replace(Xwe,Kwe)},Ywe=function(e){return!!e.match(Gwe)};yx.exports=I0e;yx.exports.has=Ywe;yx.exports.remove=I0e;var Zwe=yx.exports;const Xs=yo(Zwe);function hB(e){return e?Xs(e).replace(/[\s\./]+/g,"-").replace(/[^\p{L}\p{N}_-]+/gu,"").toLowerCase().replace(/-+/g,"-").replace(/(^-+)|(-+$)/g,""):""}function Fz(e){let t;if(e){try{t=new URL(e,"http://example.com").pathname.split("/").pop()}catch{}if(t)return t}}function u$(e){const t=e.split("?"),n=t[1],o=t[0];return n?o+"?"+n.split("&").map(r=>r.split("=")).map(r=>r.map(decodeURIComponent)).sort((r,s)=>r[0].localeCompare(s[0])).map(r=>r.map(encodeURIComponent)).map(r=>r.join("=")).join("&"):o}function Qwe(e){const t=Object.fromEntries(Object.entries(e).map(([n,o])=>[u$(n),o]));return(n,o)=>{const{parse:r=!0}=n;let s=n.path;if(!s&&n.url){const{rest_route:l,...u}=Ax(n.url);typeof l=="string"&&(s=wt(l,u))}if(typeof s!="string")return o(n);const i=n.method||"GET",c=u$(s);if(i==="GET"&&t[c]){const l=t[c];return delete t[c],d$(l,!!r)}else if(i==="OPTIONS"&&t[i]&&t[i][c]){const l=t[i][c];return delete t[i][c],d$(l,!!r)}return o(n)}}function d$(e,t){return Promise.resolve(t?e.body:new window.Response(JSON.stringify(e.body),{status:200,statusText:"OK",headers:e.headers}))}const Jwe=({path:e,url:t,...n},o)=>({...n,url:t&&wt(t,o),path:e&&wt(e,o)}),p$=e=>e.json?e.json():Promise.reject(e),eke=e=>{if(!e)return{};const t=e.match(/<([^>]+)>; rel="next"/);return t?{next:t[1]}:{}},f$=e=>{const{next:t}=eke(e.headers.get("link"));return t},tke=e=>{const t=!!e.path&&e.path.indexOf("per_page=-1")!==-1,n=!!e.url&&e.url.indexOf("per_page=-1")!==-1;return t||n},D0e=async(e,t)=>{if(e.parse===!1||!tke(e))return t(e);const n=await ct({...Jwe(e,{per_page:100}),parse:!1}),o=await p$(n);if(!Array.isArray(o))return o;let r=f$(n);if(!r)return o;let s=[].concat(o);for(;r;){const i=await ct({...e,path:void 0,url:r,parse:!1}),c=await p$(i);s=s.concat(c),r=f$(i)}return s},nke=new Set(["PATCH","PUT","DELETE"]),oke="GET",rke=(e,t)=>{const{method:n=oke}=e;return nke.has(n.toUpperCase())&&(e={...e,headers:{...e.headers,"X-HTTP-Method-Override":n,"Content-Type":"application/json"},method:"POST"}),t(e)},ske=(e,t)=>(typeof e.url=="string"&&!l$(e.url,"_locale")&&(e.url=wt(e.url,{_locale:"user"})),typeof e.path=="string"&&!l$(e.path,"_locale")&&(e.path=wt(e.path,{_locale:"user"})),t(e)),ike=(e,t=!0)=>t?e.status===204?null:e.json?e.json():Promise.reject(e):e,ake=e=>{const t={code:"invalid_json",message:m("The response is not a valid JSON response.")};if(!e||!e.json)throw t;return e.json().catch(()=>{throw t})},F0e=(e,t=!0)=>Promise.resolve(ike(e,t)).catch(n=>mB(n,t));function mB(e,t=!0){if(!t)throw e;return ake(e).then(n=>{const o={code:"unknown_error",message:m("An unknown error occurred.")};throw n||o})}function cke(e){const t=!!e.method&&e.method==="POST";return(!!e.path&&e.path.indexOf("/wp/v2/media")!==-1||!!e.url&&e.url.indexOf("/wp/v2/media")!==-1)&&t}const lke=(e,t)=>{if(!cke(e))return t(e);let n=0;const o=5,r=s=>(n++,t({path:`/wp/v2/media/${s}/post-process`,method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch(()=>n{if(!s.headers)return Promise.reject(s);const i=s.headers.get("x-wp-upload-attachment-id");return s.status>=500&&s.status<600&&i?r(i).catch(()=>e.parse!==!1?Promise.reject({code:"post_process",message:m("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(s)):mB(s,e.parse)}).then(s=>F0e(s,e.parse))},uke=e=>(t,n)=>{if(typeof t.url=="string"){const o=KR(t.url,"wp_theme_preview");o===void 0?t.url=wt(t.url,{wp_theme_preview:e}):o===""&&(t.url=rv(t.url,"wp_theme_preview"))}if(typeof t.path=="string"){const o=KR(t.path,"wp_theme_preview");o===void 0?t.path=wt(t.path,{wp_theme_preview:e}):o===""&&(t.path=rv(t.path,"wp_theme_preview"))}return n(t)},dke={Accept:"application/json, */*;q=0.1"},pke={credentials:"include"},$0e=[ske,N0e,rke,D0e];function fke(e){$0e.unshift(e)}const V0e=e=>{if(e.status>=200&&e.status<300)return e;throw e},bke=e=>{const{url:t,path:n,data:o,parse:r=!0,...s}=e;let{body:i,headers:c}=e;return c={...dke,...c},o&&(i=JSON.stringify(o),c["Content-Type"]="application/json"),window.fetch(t||n||window.location.href,{...pke,...s,body:i,headers:c}).then(u=>Promise.resolve(u).then(V0e).catch(d=>mB(d,r)).then(d=>F0e(d,r)),u=>{throw u&&u.name==="AbortError"?u:{code:"fetch_error",message:m("You are probably offline.")}})};let H0e=bke;function hke(e){H0e=e}function ct(e){return $0e.reduceRight((n,o)=>r=>o(r,n),H0e)(e).catch(n=>n.code!=="rest_cookie_invalid_nonce"?Promise.reject(n):window.fetch(ct.nonceEndpoint).then(V0e).then(o=>o.text()).then(o=>(ct.nonceMiddleware.nonce=o,ct(e))))}ct.use=fke;ct.setFetchHandler=hke;ct.createNonceMiddleware=Lwe;ct.createPreloadingMiddleware=Qwe;ct.createRootURLMiddleware=jwe;ct.fetchAllMiddleware=D0e;ct.mediaUploadMiddleware=lke;ct.createThemePreviewMiddleware=uke;const b$=Object.create(null);function Re(e,t={}){const{since:n,version:o,alternative:r,plugin:s,link:i,hint:c}=t,l=s?` from ${s}`:"",u=n?` since version ${n}`:"",d=o?` and will be removed${l} in version ${o}`:"",p=r?` Please use ${r} instead.`:"",f=i?` See: ${i}`:"",b=c?` Note: ${c}`:"",h=`${e} is deprecated${u}${d}.${p}${f}${b}`;h in b$||(B0e("deprecated",e,t,h),console.warn(h),b$[h]=!0)}function Og(e){"@babel/helpers - typeof";return Og=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Og(e)}function mke(e,t){if(Og(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(Og(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mke(e){var t=mke(e,"string");return Og(t)=="symbol"?t:t+""}function gke(e,t,n){return(t=Mke(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function m$(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error($r(1));return n(U0e)(e,t)}if(typeof e!="function")throw new Error($r(2));var r=e,s=t,i=[],c=i,l=!1;function u(){c===i&&(c=i.slice())}function d(){if(l)throw new Error($r(3));return s}function p(g){if(typeof g!="function")throw new Error($r(4));if(l)throw new Error($r(5));var z=!0;return u(),c.push(g),function(){if(z){if(l)throw new Error($r(6));z=!1,u();var x=c.indexOf(g);c.splice(x,1),i=null}}}function f(g){if(!zke(g))throw new Error($r(7));if(typeof g.type>"u")throw new Error($r(8));if(l)throw new Error($r(9));try{l=!0,s=r(s,g)}finally{l=!1}for(var z=i=c,y=0;y1&&arguments[1]!==void 0?arguments[1]:this;this._map.forEach(function(s,i){i!==null&&Jd(i)==="object"&&(s=s[1]),n.call(r,s,i,o)})}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}]),e}(),wke=_ke;const ia=yo(wke);function kke(e){return!!e&&typeof e[Symbol.iterator]=="function"&&typeof e.next=="function"}var X0e={},cn={},vx={};Object.defineProperty(vx,"__esModule",{value:!0});var qke={all:Symbol("all"),error:Symbol("error"),fork:Symbol("fork"),join:Symbol("join"),race:Symbol("race"),call:Symbol("call"),cps:Symbol("cps"),subscribe:Symbol("subscribe")};vx.default=qke;Object.defineProperty(cn,"__esModule",{value:!0});cn.createChannel=cn.subscribe=cn.cps=cn.apply=cn.call=cn.invoke=cn.delay=cn.race=cn.join=cn.fork=cn.error=cn.all=void 0;var Ske=vx,Xa=Cke(Ske);function Cke(e){return e&&e.__esModule?e:{default:e}}cn.all=function(t){return{type:Xa.default.all,value:t}};cn.error=function(t){return{type:Xa.default.error,error:t}};cn.fork=function(t){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r1?n-1:0),r=1;r2?o-2:0),s=2;s1?n-1:0),r=1;r"u"?"undefined":Rke(t))==="object"&&!!t},all:function(t){return Mr.obj(t)&&t.type===Rl.default.all},error:function(t){return Mr.obj(t)&&t.type===Rl.default.error},array:Array.isArray,func:function(t){return typeof t=="function"},promise:function(t){return t&&Mr.func(t.then)},iterator:function(t){return t&&Mr.func(t.next)&&Mr.func(t.throw)},fork:function(t){return Mr.obj(t)&&t.type===Rl.default.fork},join:function(t){return Mr.obj(t)&&t.type===Rl.default.join},race:function(t){return Mr.obj(t)&&t.type===Rl.default.race},call:function(t){return Mr.obj(t)&&t.type===Rl.default.call},cps:function(t){return Mr.obj(t)&&t.type===Rl.default.cps},subscribe:function(t){return Mr.obj(t)&&t.type===Rl.default.subscribe},channel:function(t){return Mr.obj(t)&&Mr.func(t.subscribe)}};lh.default=Mr;Object.defineProperty(Gr,"__esModule",{value:!0});Gr.iterator=Gr.array=Gr.object=Gr.error=Gr.any=void 0;var Eke=lh,M2=Bke(Eke);function Bke(e){return e&&e.__esModule?e:{default:e}}var Nke=Gr.any=function(t,n,o,r){return r(t),!0},Lke=Gr.error=function(t,n,o,r,s){return M2.default.error(t)?(s(t.error),!0):!1},jke=Gr.object=function(t,n,o,r,s){if(!M2.default.all(t)||!M2.default.obj(t.value))return!1;var i={},c=Object.keys(t.value),l=0,u=!1,d=function(b,h){u||(i[b]=h,l++,l===c.length&&r(i))},p=function(b,h){u||(u=!0,s(h))};return c.map(function(f){o(t.value[f],function(b){return d(f,b)},function(b){return p(f,b)})}),!0},Pke=Gr.array=function(t,n,o,r,s){if(!M2.default.all(t)||!M2.default.array(t.value))return!1;var i=[],c=0,l=!1,u=function(f,b){l||(i[f]=b,c++,c===t.value.length&&r(i))},d=function(f,b){l||(l=!0,s(b))};return t.value.map(function(p,f){o(p,function(b){return u(f,b)},function(b){return d(f,b)})}),!0},Ike=Gr.iterator=function(t,n,o,r,s){return M2.default.iterator(t)?(o(t,n,s),!0):!1};Gr.default=[Lke,Ike,Pke,jke,Nke];Object.defineProperty(MB,"__esModule",{value:!0});var Dke=Gr,Fke=G0e(Dke),$ke=lh,Vke=G0e($ke);function G0e(e){return e&&e.__esModule?e:{default:e}}function O$(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t(c,l,u,d,p)=>{if(!a6e(c,s))return!1;const f=i(c);return Z0e(f)?f.then(d,p):d(f),!0}),o=(s,i)=>ZR(s)?(t(s),i(),!0):!1;n.push(o);const r=X0e.create(n);return s=>new Promise((i,c)=>r(s,l=>{ZR(l)&&t(l),i(l)},c))}function l6e(e={}){return t=>{const n=c6e(e,t.dispatch);return o=>r=>kke(r)?n(r):o(r)}}function Sn(e,t){return n=>{const o=e(n);return o.displayName=u6e(t,n),o}}const u6e=(e,t)=>{const n=t.displayName||t.name||"Component";return`${ov(e??"")}(${n})`},jr=(e,t,n)=>{let o,r,s=0,i,c,l,u=0,d=!1,p=!1,f=!0;n&&(d=!!n.leading,p="maxWait"in n,n.maxWait!==void 0&&(s=Math.max(n.maxWait,t)),f="trailing"in n?!!n.trailing:f);function b(C){const T=o,W=r;return o=void 0,r=void 0,u=C,i=e.apply(W,T),i}function h(C,T){c=setTimeout(C,T)}function g(){c!==void 0&&clearTimeout(c)}function z(C){return u=C,h(M,t),d?b(C):i}function y(C){return C-(l||0)}function x(C){const T=y(C),W=C-u,B=t-T;return p?Math.min(B,s-W):B}function v(C){const T=y(C),W=C-u;return l===void 0||T>=t||T<0||p&&W>=s}function M(){const C=Date.now();if(v(C))return _(C);h(M,x(C))}function A(){c=void 0}function _(C){return A(),f&&o?b(C):(o=r=void 0,i)}function w(){g(),u=0,A(),o=l=r=void 0}function k(){return q()?_(Date.now()):i}function q(){return c!==void 0}function S(...C){const T=Date.now(),W=v(T);if(o=C,r=this,l=T,W){if(!q())return z(l);if(p)return h(M,t),b(l)}return q()||h(M,t),i}return S.cancel=w,S.flush=k,S.pending=q,S},zB=(e,t,n)=>{let o=!0,r=!0;return n&&(o="leading"in n?!!n.leading:o,r="trailing"in n?!!n.trailing:r),jr(e,t,{leading:o,trailing:r,maxWait:t})};function g2(){const e=new Map,t=new Map;function n(o){const r=t.get(o);if(r)for(const s of r)s()}return{get(o){return e.get(o)},set(o,r){e.set(o,r),n(o)},delete(o){e.delete(o),n(o)},subscribe(o,r){let s=t.get(o);return s||(s=new Set,t.set(o,s)),s.add(r),()=>{s.delete(r),s.size===0&&t.delete(o)}}}}const Q0e=(e=!1)=>(...t)=>(...n)=>{const o=t.flat();return e&&o.reverse(),o.reduce((r,s)=>[s(...r)],n)[0]},Jl=Q0e(),v0=Q0e(!0);function OB(e){return Sn(t=>n=>e(n)?a.jsx(t,{...n}):null,"ifCondition")}function J0e(e,t){if(e===t)return!0;const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;let r=0;for(;r{if(n)return n;const o=f6e(e);return t?`${t}-${o}`:o},[e,n,t])}const b6e=Sn(e=>t=>{const n=He(e);return a.jsx(e,{...t,instanceId:n})},"instanceId"),h6e=Sn(e=>class extends O.Component{constructor(n){super(n),this.timeouts=[],this.setTimeout=this.setTimeout.bind(this),this.clearTimeout=this.clearTimeout.bind(this)}componentWillUnmount(){this.timeouts.forEach(clearTimeout)}setTimeout(n,o){const r=setTimeout(()=>{n(),this.clearTimeout(r)},o);return this.timeouts.push(r),r}clearTimeout(n){clearTimeout(n),this.timeouts=this.timeouts.filter(o=>o!==n)}render(){return a.jsx(e,{...this.props,setTimeout:this.setTimeout,clearTimeout:this.clearTimeout})}},"withSafeTimeout");function m6e(e){return[e?'[tabindex]:not([tabindex^="-"])':"[tabindex]","a[href]","button:not([disabled])",'input:not([type="hidden"]):not([disabled])',"select:not([disabled])","textarea:not([disabled])",'iframe:not([tabindex^="-"])',"object","embed","area[href]","[contenteditable]:not([contenteditable=false])"].join(",")}function ene(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}function M6e(e){const t=e.closest("map[name]");if(!t)return!1;const n=e.ownerDocument.querySelector('img[usemap="#'+t.name+'"]');return!!n&&ene(n)}function xx(e,{sequential:t=!1}={}){const n=e.querySelectorAll(m6e(t));return Array.from(n).filter(o=>{if(!ene(o))return!1;const{nodeName:r}=o;return r==="AREA"?M6e(o):!0})}const g6e=Object.freeze(Object.defineProperty({__proto__:null,find:xx},Symbol.toStringTag,{value:"Module"}));function QR(e){const t=e.getAttribute("tabindex");return t===null?0:parseInt(t,10)}function tne(e){return QR(e)!==-1}function z6e(){const e={};return function(n,o){const{nodeName:r,type:s,checked:i,name:c}=o;if(r!=="INPUT"||s!=="radio"||!c)return n.concat(o);const l=e.hasOwnProperty(c);if(!(i||!l))return n;if(l){const d=e[c];n=n.filter(p=>p!==d)}return e[c]=o,n.concat(o)}}function O6e(e,t){return{element:e,index:t}}function A6e(e){return e.element}function y6e(e,t){const n=QR(e.element),o=QR(t.element);return n===o?e.index-t.index:n-o}function AB(e){return e.filter(tne).map(O6e).sort(y6e).map(A6e).reduce(z6e(),[])}function v6e(e){return AB(xx(e))}function x6e(e){return AB(xx(e.ownerDocument.body)).reverse().find(t=>e.compareDocumentPosition(t)&e.DOCUMENT_POSITION_PRECEDING)}function _6e(e){return AB(xx(e.ownerDocument.body)).find(t=>e.compareDocumentPosition(t)&e.DOCUMENT_POSITION_FOLLOWING)}const w6e=Object.freeze(Object.defineProperty({__proto__:null,find:v6e,findNext:_6e,findPrevious:x6e,isTabbableIndex:tne},Symbol.toStringTag,{value:"Module"}));function jy(e){if(!e.collapsed){const s=Array.from(e.getClientRects());if(s.length===1)return s[0];const i=s.filter(({width:p})=>p>1);if(i.length===0)return e.getBoundingClientRect();if(i.length===1)return i[0];let{top:c,bottom:l,left:u,right:d}=i[0];for(const{top:p,bottom:f,left:b,right:h}of i)pl&&(l=f),bd&&(d=h);return new window.DOMRect(u,c,d-u,l-c)}const{startContainer:t}=e,{ownerDocument:n}=t;if(t.nodeName==="BR"){const{parentNode:s}=t,i=Array.from(s.childNodes).indexOf(t);e=n.createRange(),e.setStart(s,i),e.setEnd(s,i)}const o=e.getClientRects();if(o.length>1)return null;let r=o[0];if(!r||r.height===0){const s=n.createTextNode("​");e=e.cloneRange(),e.insertNode(s),r=e.getClientRects()[0],s.parentNode,s.parentNode.removeChild(s)}return r}function JR(e){const t=e.getSelection(),n=t.rangeCount?t.getRangeAt(0):null;return n?jy(n):null}function nne(e){e.defaultView;const t=e.defaultView.getSelection(),n=t.rangeCount?t.getRangeAt(0):null;return!!n&&!n.collapsed}function yB(e){return e?.nodeName==="INPUT"}function Wu(e){const t=["button","checkbox","hidden","file","radio","image","range","reset","submit","number","email","time"];return yB(e)&&e.type&&!t.includes(e.type)||e.nodeName==="TEXTAREA"||e.contentEditable==="true"}function k6e(e){if(!yB(e)&&!Wu(e))return!1;try{const{selectionStart:t,selectionEnd:n}=e;return t===null||t!==n}catch{return!0}}function q6e(e){return nne(e)||!!e.activeElement&&k6e(e.activeElement)}function S6e(e){return!!e.activeElement&&(yB(e.activeElement)||Wu(e.activeElement)||nne(e))}function sv(e){return e.ownerDocument.defaultView,e.ownerDocument.defaultView.getComputedStyle(e)}function Sr(e,t="vertical"){if(e){if((t==="vertical"||t==="all")&&e.scrollHeight>e.clientHeight){const{overflowY:n}=sv(e);if(/(auto|scroll)/.test(n))return e}if((t==="horizontal"||t==="all")&&e.scrollWidth>e.clientWidth){const{overflowX:n}=sv(e);if(/(auto|scroll)/.test(n))return e}return e.ownerDocument===e.parentNode?e:Sr(e.parentNode,t)}}function _x(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function C6e(e){if(_x(e))return e.selectionStart===0&&e.value.length===e.selectionEnd;if(!e.isContentEditable)return!0;const{ownerDocument:t}=e,{defaultView:n}=t,o=n.getSelection(),r=o.rangeCount?o.getRangeAt(0):null;if(!r)return!0;const{startContainer:s,endContainer:i,startOffset:c,endOffset:l}=r;if(s===e&&i===e&&c===0&&l===e.childNodes.length)return!0;e.lastChild;const u=i.nodeType===i.TEXT_NODE?i.data.length:i.childNodes.length;return y$(s,e,"firstChild")&&y$(i,e,"lastChild")&&c===0&&l===u}function y$(e,t,n){let o=t;do{if(e===o)return!0;o=o[n]}while(o);return!1}function one(e){if(!e)return!1;const{tagName:t}=e;return _x(e)||t==="BUTTON"||t==="SELECT"}function vB(e){return sv(e).direction==="rtl"}function R6e(e){const t=Array.from(e.getClientRects());if(!t.length)return;const n=Math.min(...t.map(({top:r})=>r));return Math.max(...t.map(({bottom:r})=>r))-n}function rne(e){const{anchorNode:t,focusNode:n,anchorOffset:o,focusOffset:r}=e,s=t.compareDocumentPosition(n);return s&t.DOCUMENT_POSITION_PRECEDING?!1:s&t.DOCUMENT_POSITION_FOLLOWING?!0:s===0?o<=r:!0}function W6e(e,t,n){if(e.caretRangeFromPoint)return e.caretRangeFromPoint(t,n);if(!e.caretPositionFromPoint)return null;const o=e.caretPositionFromPoint(t,n);if(!o)return null;const r=e.createRange();return r.setStart(o.offsetNode,o.offset),r.collapse(!0),r}function sne(e,t,n,o){const r=o.style.zIndex,s=o.style.position,{position:i="static"}=sv(o);i==="static"&&(o.style.position="relative"),o.style.zIndex="10000";const c=W6e(e,t,n);return o.style.zIndex=r,o.style.position=s,c}function ine(e,t,n){let o=n();return(!o||!o.startContainer||!e.contains(o.startContainer))&&(e.scrollIntoView(t),o=n(),!o||!o.startContainer||!e.contains(o.startContainer))?null:o}function ane(e,t,n=!1){if(_x(e)&&typeof e.selectionStart=="number")return e.selectionStart!==e.selectionEnd?!1:t?e.selectionStart===0:e.value.length===e.selectionStart;if(!e.isContentEditable)return!0;const{ownerDocument:o}=e,{defaultView:r}=o,s=r.getSelection();if(!s||!s.rangeCount)return!1;const i=s.getRangeAt(0),c=i.cloneRange(),l=rne(s),u=s.isCollapsed;u||c.collapse(!l);const d=jy(c),p=jy(i);if(!d||!p)return!1;const f=R6e(i);if(!u&&f&&f>d.height&&l===t)return!1;const b=vB(e)?!t:t,h=e.getBoundingClientRect(),g=b?h.left+1:h.right-1,z=t?h.top+1:h.bottom-1,y=ine(e,t,()=>sne(o,g,z,e));if(!y)return!1;const x=jy(y);if(!x)return!1;const v=t?"top":"bottom",M=b?"left":"right",A=x[v]-p[v],_=x[M]-d[M],w=Math.abs(A)<=1,k=Math.abs(_)<=1;return n?w:w&&k}function B6(e,t){return ane(e,t)}function v$(e,t){return ane(e,t,!0)}function T6e(e,t,n){const{ownerDocument:o}=e,r=vB(e)?!t:t,s=e.getBoundingClientRect();n===void 0?n=t?s.right-1:s.left+1:n<=s.left?n=s.left+1:n>=s.right&&(n=s.right-1);const i=r?s.bottom-1:s.top+1;return sne(o,n,i,e)}function cne(e,t,n){if(!e)return;if(e.focus(),_x(e)){if(typeof e.selectionStart!="number")return;t?(e.selectionStart=e.value.length,e.selectionEnd=e.value.length):(e.selectionStart=0,e.selectionEnd=0);return}const{ownerDocument:o}=e,{defaultView:r}=o,s=r.getSelection();if(!e.isContentEditable){s.removeAllRanges();return}const i=ine(e,t,()=>T6e(e,t,n));i&&(s.removeAllRanges(),s.addRange(i))}function lne(e,t){return cne(e,t,void 0)}function E6e(e,t,n){return cne(e,t,n?.left)}function une(e,t){t.parentNode,t.parentNode.insertBefore(e,t.nextSibling)}function kp(e){e.parentNode,e.parentNode.removeChild(e)}function B6e(e,t){e.parentNode,une(t,e.parentNode),kp(e)}function SM(e){const t=e.parentNode;for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}function x$(e,t){const n=e.ownerDocument.createElement(t);for(;e.firstChild;)n.appendChild(e.firstChild);return e.parentNode,e.parentNode.replaceChild(n,e),n}function ym(e,t){t.parentNode,t.parentNode.insertBefore(e,t),e.appendChild(t)}function wx(e){const{body:t}=document.implementation.createHTMLDocument("");t.innerHTML=e;const n=t.getElementsByTagName("*");let o=n.length;for(;o--;){const r=n[o];if(r.tagName==="SCRIPT")kp(r);else{let s=r.attributes.length;for(;s--;){const{name:i}=r.attributes[s];i.startsWith("on")&&r.removeAttribute(i)}}}return t.innerHTML}function Rr(e){e=wx(e);const t=document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body.textContent||""}function iv(e){switch(e.nodeType){case e.TEXT_NODE:return/^[ \f\n\r\t\v\u00a0]*$/.test(e.nodeValue||"");case e.ELEMENT_NODE:return e.hasAttributes()?!1:e.hasChildNodes()?Array.from(e.childNodes).every(iv):!0;default:return!0}}const CM={strong:{},em:{},s:{},del:{},ins:{},a:{attributes:["href","target","rel","id"]},code:{},abbr:{attributes:["title"]},sub:{},sup:{},br:{},small:{},q:{attributes:["cite"]},dfn:{attributes:["title"]},data:{attributes:["value"]},time:{attributes:["datetime"]},var:{},samp:{},kbd:{},i:{},b:{},u:{},mark:{},ruby:{},rt:{},rp:{},bdi:{attributes:["dir"]},bdo:{attributes:["dir"]},wbr:{},"#text":{}},N6e=["#text","br"];Object.keys(CM).filter(e=>!N6e.includes(e)).forEach(e=>{const{[e]:t,...n}=CM;CM[e].children=n});const L6e={audio:{attributes:["src","preload","autoplay","mediagroup","loop","muted"]},canvas:{attributes:["width","height"]},embed:{attributes:["src","type","width","height"]},img:{attributes:["alt","src","srcset","usemap","ismap","width","height"]},object:{attributes:["data","type","name","usemap","form","width","height"]},video:{attributes:["src","poster","preload","playsinline","autoplay","mediagroup","loop","muted","controls","width","height"]}},GO={...CM,...L6e};function kx(e){if(e!=="paste")return GO;const{u:t,abbr:n,data:o,time:r,wbr:s,bdi:i,bdo:c,...l}={...GO,ins:{children:GO.ins.children},del:{children:GO.del.children}};return l}function $b(e){const t=e.nodeName.toLowerCase();return kx().hasOwnProperty(t)||t==="span"}function dne(e){const t=e.nodeName.toLowerCase();return CM.hasOwnProperty(t)||t==="span"}function j6e(e){return!!e&&e.nodeType===e.ELEMENT_NODE}const P6e=()=>{};function tM(e,t,n,o){Array.from(e).forEach(r=>{const s=r.nodeName.toLowerCase();if(n.hasOwnProperty(s)&&(!n[s].isMatch||n[s].isMatch?.(r))){if(j6e(r)){const{attributes:i=[],classes:c=[],children:l,require:u=[],allowEmpty:d}=n[s];if(l&&!d&&iv(r)){kp(r);return}if(r.hasAttributes()&&(Array.from(r.attributes).forEach(({name:p})=>{p!=="class"&&!i.includes(p)&&r.removeAttribute(p)}),r.classList&&r.classList.length)){const p=c.map(f=>typeof f=="string"?b=>b===f:f instanceof RegExp?b=>f.test(b):P6e);Array.from(r.classList).forEach(f=>{p.some(b=>b(f))||r.classList.remove(f)}),r.classList.length||r.removeAttribute("class")}if(r.hasChildNodes()){if(l==="*")return;if(l)u.length&&!r.querySelector(u.join(","))?(tM(r.childNodes,t,n,o),SM(r)):r.parentNode&&r.parentNode.nodeName==="BODY"&&$b(r)?(tM(r.childNodes,t,n,o),Array.from(r.childNodes).some(p=>!$b(p))&&SM(r)):tM(r.childNodes,t,l,o);else for(;r.firstChild;)kp(r.firstChild)}}}else tM(r.childNodes,t,n,o),o&&!$b(r)&&r.nextElementSibling&&une(t.createElement("br"),r),SM(r)})}function e8(e,t,n){const o=document.implementation.createHTMLDocument("");return o.body.innerHTML=e,tM(o.body.childNodes,o,t,n),o.body.innerHTML}function av(e){const t=Array.from(e.files);return Array.from(e.items).forEach(n=>{const o=n.getAsFile();o&&!t.find(({name:r,type:s,size:i})=>r===o.name&&s===o.type&&i===o.size)&&t.push(o)}),t}const Nn={focusable:g6e,tabbable:w6e};function Et(e,t){const n=O.useRef();return O.useCallback(o=>{o?n.current=e(o):n.current&&n.current()},t)}function xB(){return Et(e=>{function t(n){const{key:o,shiftKey:r,target:s}=n;if(o!=="Tab")return;const i=r?"findPrevious":"findNext",c=Nn.tabbable[i](s)||null;if(s.contains(c)){n.preventDefault(),c?.focus();return}if(e.contains(c))return;const l=r?"append":"prepend",{ownerDocument:u}=e,d=u.createElement("div");d.tabIndex=-1,e[l](d),d.addEventListener("blur",()=>e.removeChild(d)),d.focus()}return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}},[])}var pne={exports:{}};/*! +`+n.toString()),e}}var XR,S0e,eM,C0e;XR={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1};S0e=["(","?"];eM={")":["("],":":["?","?:"]};C0e=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;function qwe(e){for(var t=[],n=[],o,r,s,i;o=e.match(C0e);){for(r=o[0],s=e.substr(0,o.index).trim(),s&&t.push(s);i=n.pop();){if(eM[r]){if(eM[r][0]===i){r=eM[r][1]||r;break}}else if(S0e.indexOf(i)>=0||XR[i]":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function Cwe(e,t){var n=[],o,r,s,i,c,l;for(o=0;o{const o=new uB({}),r=new Set,s=()=>{r.forEach(M=>M())},i=M=>(r.add(M),()=>r.delete(M)),c=(M="default")=>o.data[M],l=(M,A="default")=>{o.data[A]={...o.data[A],...M},o.data[A][""]={...JF[""],...o.data[A]?.[""]},delete o.pluralForms[A]},u=(M,A)=>{l(M,A),s()},d=(M,A="default")=>{o.data[A]={...o.data[A],...M,"":{...JF[""],...o.data[A]?.[""],...M?.[""]}},delete o.pluralForms[A],s()},p=(M,A)=>{o.data={},o.pluralForms={},u(M,A)},f=(M="default",A,_,w,k)=>(o.data[M]||l(void 0,M),o.dcnpgettext(M,A,_,w,k)),b=(M="default")=>M,h=(M,A)=>{let _=f(A,void 0,M);return n?(_=n.applyFilters("i18n.gettext",_,M,A),n.applyFilters("i18n.gettext_"+b(A),_,M,A)):_},g=(M,A,_)=>{let w=f(_,A,M);return n?(w=n.applyFilters("i18n.gettext_with_context",w,M,A,_),n.applyFilters("i18n.gettext_with_context_"+b(_),w,M,A,_)):w},z=(M,A,_,w)=>{let k=f(w,void 0,M,A,_);return n?(k=n.applyFilters("i18n.ngettext",k,M,A,_,w),n.applyFilters("i18n.ngettext_"+b(w),k,M,A,_,w)):k},y=(M,A,_,w,k)=>{let q=f(k,w,M,A,_);return n?(q=n.applyFilters("i18n.ngettext_with_context",q,M,A,_,w,k),n.applyFilters("i18n.ngettext_with_context_"+b(k),q,M,A,_,w,k)):q},x=()=>g("ltr","text direction")==="rtl",v=(M,A,_)=>{const w=A?A+""+M:M;let k=!!o.data?.[_??"default"]?.[w];return n&&(k=n.applyFilters("i18n.has_translation",k,M,A,_),k=n.applyFilters("i18n.has_translation_"+b(_),k,M,A,_)),k};if(n){const M=A=>{Ewe.test(A)&&s()};n.addAction("hookAdded","core/i18n",M),n.addAction("hookRemoved","core/i18n",M)}return{getLocaleData:c,setLocaleData:u,addLocaleData:d,resetLocaleData:p,subscribe:i,__:h,_x:g,_n:z,_nx:y,isRTL:x,hasTranslation:v}};function R0e(e){return typeof e!="string"||e===""?(console.error("The namespace must be a non-empty string."),!1):/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)?!0:(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)}function dB(e){return typeof e!="string"||e===""?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)?!0:(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)}function e$(e,t){return function(o,r,s,i=10){const c=e[t];if(!dB(o)||!R0e(r))return;if(typeof s!="function"){console.error("The hook callback must be a function.");return}if(typeof i!="number"){console.error("If specified, the hook priority must be a number.");return}const l={callback:s,priority:i,namespace:r};if(c[o]){const u=c[o].handlers;let d;for(d=u.length;d>0&&!(i>=u[d-1].priority);d--);d===u.length?u[d]=l:u.splice(d,0,l),c.__current.forEach(p=>{p.name===o&&p.currentIndex>=d&&p.currentIndex++})}else c[o]={handlers:[l],runs:0};o!=="hookAdded"&&e.doAction("hookAdded",o,r,s,i)}}function XO(e,t,n=!1){return function(r,s){const i=e[t];if(!dB(r)||!n&&!R0e(s))return;if(!i[r])return 0;let c=0;if(n)c=i[r].handlers.length,i[r]={runs:i[r].runs,handlers:[]};else{const l=i[r].handlers;for(let u=l.length-1;u>=0;u--)l[u].namespace===s&&(l.splice(u,1),c++,i.__current.forEach(d=>{d.name===r&&d.currentIndex>=u&&d.currentIndex--}))}return r!=="hookRemoved"&&e.doAction("hookRemoved",r,s),c}}function t$(e,t){return function(o,r){const s=e[t];return typeof r<"u"?o in s&&s[o].handlers.some(i=>i.namespace===r):o in s}}function n$(e,t,n=!1){return function(r,...s){const i=e[t];i[r]||(i[r]={handlers:[],runs:0}),i[r].runs++;const c=i[r].handlers;if(!c||!c.length)return n?s[0]:void 0;const l={name:r,currentIndex:0};for(i.__current.push(l);l.currentIndex"u"?typeof r.__current[0]<"u":r.__current[0]?o===r.__current[0].name:!1}}function s$(e,t){return function(o){const r=e[t];if(dB(o))return r[o]&&r[o].runs?r[o].runs:0}}class Nwe{constructor(){this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=e$(this,"actions"),this.addFilter=e$(this,"filters"),this.removeAction=XO(this,"actions"),this.removeFilter=XO(this,"filters"),this.hasAction=t$(this,"actions"),this.hasFilter=t$(this,"filters"),this.removeAllActions=XO(this,"actions",!0),this.removeAllFilters=XO(this,"filters",!0),this.doAction=n$(this,"actions"),this.applyFilters=n$(this,"filters",!0),this.currentAction=o$(this,"actions"),this.currentFilter=o$(this,"filters"),this.doingAction=r$(this,"actions"),this.doingFilter=r$(this,"filters"),this.didAction=s$(this,"actions"),this.didFilter=s$(this,"filters")}}function W0e(){return new Nwe}const T0e=W0e(),{addAction:i$,addFilter:r0,removeAction:a$,removeFilter:c$,hasAction:Xf0,hasFilter:E0e,removeAllActions:Gf0,removeAllFilters:Kf0,doAction:B0e,applyFilters:_n,currentAction:Yf0,currentFilter:Zf0,doingAction:Qf0,doingFilter:Jf0,didAction:eb0,didFilter:tb0,actions:nb0,filters:ob0}=T0e,A1=Bwe(void 0,void 0,T0e);A1.getLocaleData.bind(A1);A1.setLocaleData.bind(A1);A1.resetLocaleData.bind(A1);A1.subscribe.bind(A1);const m=A1.__.bind(A1),Oe=A1._x.bind(A1),a0=A1._n.bind(A1);A1._nx.bind(A1);const ft=A1.isRTL.bind(A1);A1.hasTranslation.bind(A1);function Lwe(e){const t=(n,o)=>{const{headers:r={}}=n;for(const s in r)if(s.toLowerCase()==="x-wp-nonce"&&r[s]===t.nonce)return o(n);return o({...n,headers:{...r,"X-WP-Nonce":t.nonce}})};return t.nonce=e,t}const N0e=(e,t)=>{let n=e.path,o,r;return typeof e.namespace=="string"&&typeof e.endpoint=="string"&&(o=e.namespace.replace(/^\/|\/$/g,""),r=e.endpoint.replace(/^\//,""),r?n=o+"/"+r:n=o),delete e.namespace,delete e.endpoint,t({...e,path:n})},jwe=e=>(t,n)=>N0e(t,o=>{let r=o.url,s=o.path,i;return typeof s=="string"&&(i=e,e.indexOf("?")!==-1&&(s=s.replace("?","&")),s=s.replace(/^\//,""),typeof i=="string"&&i.indexOf("?")!==-1&&(s=s.replace("?","&")),r=i+s),n({...o,url:r})});function of(e){try{return new URL(e),!0}catch{return!1}}const Pwe=/^(mailto:)?[a-z0-9._%+-]+@[a-z0-9][a-z0-9.-]*\.[a-z]{2,63}$/i;function L0e(e){return Pwe.test(e)}function zx(e){const t=/^([^\s:]+:)/.exec(e);if(t)return t[1]}function pB(e){return e?/^[a-z\-.\+]+[0-9]*:$/i.test(e):!1}function fB(e){const t=/^[^\/\s:]+:(?:\/\/)?\/?([^\/\s#?]+)[\/#?]{0,1}\S*$/.exec(e);if(t)return t[1]}function Iwe(e){return e?/^[^\s#?]+$/.test(e):!1}function rf(e){const t=/^[^\/\s:]+:(?:\/\/)?[^\/\s#?]+[\/]([^\s#?]+)[#?]{0,1}\S*$/.exec(e);if(t)return t[1]}function Dwe(e){return e?/^[^\s#?]+$/.test(e):!1}function bB(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch{}if(t)return t}function Ox(e){let t="";const n=Object.entries(e);let o;for(;o=n.shift();){let[r,s]=o;if(Array.isArray(s)||s&&s.constructor===Object){const c=Object.entries(s).reverse();for(const[l,u]of c)n.unshift([`${r}[${l}]`,u])}else s!==void 0&&(s===null&&(s=""),t+="&"+[r,s].map(encodeURIComponent).join("="))}return t.substr(1)}function Fwe(e){return e?/^[^\s#?\/]+$/.test(e):!1}function $we(e){const t=rf(e),n=bB(e);let o="/";return t&&(o+=t),n&&(o+=`?${n}`),o}function Vwe(e){const t=/^\S+?(#[^\s\?]*)/.exec(e);if(t)return t[1]}function GR(e){return e?/^#[^\s#?\/]*$/.test(e):!1}function zg(e){try{return decodeURIComponent(e)}catch{return e}}function Hwe(e,t,n){const o=t.length,r=o-1;for(let s=0;s{const[o,r=""]=n.split("=").filter(Boolean).map(zg);if(o){const s=o.replace(/\]/g,"").split("[");Hwe(t,s,r)}return t},Object.create(null))}function wt(e="",t){if(!t||!Object.keys(t).length)return e;let n=e;const o=e.indexOf("?");return o!==-1&&(t=Object.assign(Ax(e),t),n=n.substr(0,o)),n+"?"+Ox(t)}function KR(e,t){return Ax(e)[t]}function l$(e,t){return KR(e,t)!==void 0}function rv(e,...t){const n=e.indexOf("?");if(n===-1)return e;const o=Ax(e),r=e.substr(0,n);t.forEach(i=>delete o[i]);const s=Ox(o);return s?r+"?"+s:r}const Uwe=/^(?:[a-z]+:|#|\?|\.|\/)/i;function sf(e){return e&&(e=e.trim(),!Uwe.test(e)&&!L0e(e)?"http://"+e:e)}function Iz(e){try{return decodeURI(e)}catch{return e}}function Dz(e,t=null){if(!e)return"";let n=e.replace(/^[a-z\-.\+]+[0-9]*:(\/\/)?/i,"").replace(/^www\./i,"");n.match(/^[^\/]+\/$/)&&(n=n.replace("/",""));const o=/\/([^\/?]+)\.(?:[\w]+)(?=\?|$)/;if(!t||n.length<=t||!n.match(o))return n;n=n.split("?")[0];const r=n.split("/"),s=r[r.length-1];if(s.length<=t)return"…"+n.slice(-t);const i=s.lastIndexOf("."),[c,l]=[s.slice(0,i),s.slice(i+1)],u=c.slice(-3)+"."+l;return s.slice(0,t-u.length-1)+"…"+u}var yx={exports:{}},j0e={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},P0e=Object.keys(j0e).join("|"),Xwe=new RegExp(P0e,"g"),Gwe=new RegExp(P0e,"");function Kwe(e){return j0e[e]}var I0e=function(e){return e.replace(Xwe,Kwe)},Ywe=function(e){return!!e.match(Gwe)};yx.exports=I0e;yx.exports.has=Ywe;yx.exports.remove=I0e;var Zwe=yx.exports;const Xs=yo(Zwe);function hB(e){return e?Xs(e).replace(/[\s\./]+/g,"-").replace(/[^\p{L}\p{N}_-]+/gu,"").toLowerCase().replace(/-+/g,"-").replace(/(^-+)|(-+$)/g,""):""}function Fz(e){let t;if(e){try{t=new URL(e,"http://example.com").pathname.split("/").pop()}catch{}if(t)return t}}function u$(e){const t=e.split("?"),n=t[1],o=t[0];return n?o+"?"+n.split("&").map(r=>r.split("=")).map(r=>r.map(decodeURIComponent)).sort((r,s)=>r[0].localeCompare(s[0])).map(r=>r.map(encodeURIComponent)).map(r=>r.join("=")).join("&"):o}function Qwe(e){const t=Object.fromEntries(Object.entries(e).map(([n,o])=>[u$(n),o]));return(n,o)=>{const{parse:r=!0}=n;let s=n.path;if(!s&&n.url){const{rest_route:l,...u}=Ax(n.url);typeof l=="string"&&(s=wt(l,u))}if(typeof s!="string")return o(n);const i=n.method||"GET",c=u$(s);if(i==="GET"&&t[c]){const l=t[c];return delete t[c],d$(l,!!r)}else if(i==="OPTIONS"&&t[i]&&t[i][c]){const l=t[i][c];return delete t[i][c],d$(l,!!r)}return o(n)}}function d$(e,t){return Promise.resolve(t?e.body:new window.Response(JSON.stringify(e.body),{status:200,statusText:"OK",headers:e.headers}))}const Jwe=({path:e,url:t,...n},o)=>({...n,url:t&&wt(t,o),path:e&&wt(e,o)}),p$=e=>e.json?e.json():Promise.reject(e),eke=e=>{if(!e)return{};const t=e.match(/<([^>]+)>; rel="next"/);return t?{next:t[1]}:{}},f$=e=>{const{next:t}=eke(e.headers.get("link"));return t},tke=e=>{const t=!!e.path&&e.path.indexOf("per_page=-1")!==-1,n=!!e.url&&e.url.indexOf("per_page=-1")!==-1;return t||n},D0e=async(e,t)=>{if(e.parse===!1||!tke(e))return t(e);const n=await ct({...Jwe(e,{per_page:100}),parse:!1}),o=await p$(n);if(!Array.isArray(o))return o;let r=f$(n);if(!r)return o;let s=[].concat(o);for(;r;){const i=await ct({...e,path:void 0,url:r,parse:!1}),c=await p$(i);s=s.concat(c),r=f$(i)}return s},nke=new Set(["PATCH","PUT","DELETE"]),oke="GET",rke=(e,t)=>{const{method:n=oke}=e;return nke.has(n.toUpperCase())&&(e={...e,headers:{...e.headers,"X-HTTP-Method-Override":n,"Content-Type":"application/json"},method:"POST"}),t(e)},ske=(e,t)=>(typeof e.url=="string"&&!l$(e.url,"_locale")&&(e.url=wt(e.url,{_locale:"user"})),typeof e.path=="string"&&!l$(e.path,"_locale")&&(e.path=wt(e.path,{_locale:"user"})),t(e)),ike=(e,t=!0)=>t?e.status===204?null:e.json?e.json():Promise.reject(e):e,ake=e=>{const t={code:"invalid_json",message:m("The response is not a valid JSON response.")};if(!e||!e.json)throw t;return e.json().catch(()=>{throw t})},F0e=(e,t=!0)=>Promise.resolve(ike(e,t)).catch(n=>mB(n,t));function mB(e,t=!0){if(!t)throw e;return ake(e).then(n=>{const o={code:"unknown_error",message:m("An unknown error occurred.")};throw n||o})}function cke(e){const t=!!e.method&&e.method==="POST";return(!!e.path&&e.path.indexOf("/wp/v2/media")!==-1||!!e.url&&e.url.indexOf("/wp/v2/media")!==-1)&&t}const lke=(e,t)=>{if(!cke(e))return t(e);let n=0;const o=5,r=s=>(n++,t({path:`/wp/v2/media/${s}/post-process`,method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch(()=>n{if(!s.headers)return Promise.reject(s);const i=s.headers.get("x-wp-upload-attachment-id");return s.status>=500&&s.status<600&&i?r(i).catch(()=>e.parse!==!1?Promise.reject({code:"post_process",message:m("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(s)):mB(s,e.parse)}).then(s=>F0e(s,e.parse))},uke=e=>(t,n)=>{if(typeof t.url=="string"){const o=KR(t.url,"wp_theme_preview");o===void 0?t.url=wt(t.url,{wp_theme_preview:e}):o===""&&(t.url=rv(t.url,"wp_theme_preview"))}if(typeof t.path=="string"){const o=KR(t.path,"wp_theme_preview");o===void 0?t.path=wt(t.path,{wp_theme_preview:e}):o===""&&(t.path=rv(t.path,"wp_theme_preview"))}return n(t)},dke={Accept:"application/json, */*;q=0.1"},pke={credentials:"include"},$0e=[ske,N0e,rke,D0e];function fke(e){$0e.unshift(e)}const V0e=e=>{if(e.status>=200&&e.status<300)return e;throw e},bke=e=>{const{url:t,path:n,data:o,parse:r=!0,...s}=e;let{body:i,headers:c}=e;return c={...dke,...c},o&&(i=JSON.stringify(o),c["Content-Type"]="application/json"),window.fetch(t||n||window.location.href,{...pke,...s,body:i,headers:c}).then(u=>Promise.resolve(u).then(V0e).catch(d=>mB(d,r)).then(d=>F0e(d,r)),u=>{throw u&&u.name==="AbortError"?u:{code:"fetch_error",message:m("You are probably offline.")}})};let H0e=bke;function hke(e){H0e=e}function ct(e){return $0e.reduceRight((n,o)=>r=>o(r,n),H0e)(e).catch(n=>n.code!=="rest_cookie_invalid_nonce"?Promise.reject(n):window.fetch(ct.nonceEndpoint).then(V0e).then(o=>o.text()).then(o=>(ct.nonceMiddleware.nonce=o,ct(e))))}ct.use=fke;ct.setFetchHandler=hke;ct.createNonceMiddleware=Lwe;ct.createPreloadingMiddleware=Qwe;ct.createRootURLMiddleware=jwe;ct.fetchAllMiddleware=D0e;ct.mediaUploadMiddleware=lke;ct.createThemePreviewMiddleware=uke;const b$=Object.create(null);function Re(e,t={}){const{since:n,version:o,alternative:r,plugin:s,link:i,hint:c}=t,l=s?` from ${s}`:"",u=n?` since version ${n}`:"",d=o?` and will be removed${l} in version ${o}`:"",p=r?` Please use ${r} instead.`:"",f=i?` See: ${i}`:"",b=c?` Note: ${c}`:"",h=`${e} is deprecated${u}${d}.${p}${f}${b}`;h in b$||(B0e("deprecated",e,t,h),console.warn(h),b$[h]=!0)}function Og(e){"@babel/helpers - typeof";return Og=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Og(e)}function mke(e,t){if(Og(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(Og(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mke(e){var t=mke(e,"string");return Og(t)=="symbol"?t:t+""}function gke(e,t,n){return(t=Mke(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function m$(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error($r(1));return n(U0e)(e,t)}if(typeof e!="function")throw new Error($r(2));var r=e,s=t,i=[],c=i,l=!1;function u(){c===i&&(c=i.slice())}function d(){if(l)throw new Error($r(3));return s}function p(g){if(typeof g!="function")throw new Error($r(4));if(l)throw new Error($r(5));var z=!0;return u(),c.push(g),function(){if(z){if(l)throw new Error($r(6));z=!1,u();var x=c.indexOf(g);c.splice(x,1),i=null}}}function f(g){if(!zke(g))throw new Error($r(7));if(typeof g.type>"u")throw new Error($r(8));if(l)throw new Error($r(9));try{l=!0,s=r(s,g)}finally{l=!1}for(var z=i=c,y=0;y1&&arguments[1]!==void 0?arguments[1]:this;this._map.forEach(function(s,i){i!==null&&Jd(i)==="object"&&(s=s[1]),n.call(r,s,i,o)})}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}]),e}(),wke=_ke;const ia=yo(wke);function kke(e){return!!e&&typeof e[Symbol.iterator]=="function"&&typeof e.next=="function"}var X0e={},cn={},vx={};Object.defineProperty(vx,"__esModule",{value:!0});var qke={all:Symbol("all"),error:Symbol("error"),fork:Symbol("fork"),join:Symbol("join"),race:Symbol("race"),call:Symbol("call"),cps:Symbol("cps"),subscribe:Symbol("subscribe")};vx.default=qke;Object.defineProperty(cn,"__esModule",{value:!0});cn.createChannel=cn.subscribe=cn.cps=cn.apply=cn.call=cn.invoke=cn.delay=cn.race=cn.join=cn.fork=cn.error=cn.all=void 0;var Ske=vx,Xa=Cke(Ske);function Cke(e){return e&&e.__esModule?e:{default:e}}cn.all=function(t){return{type:Xa.default.all,value:t}};cn.error=function(t){return{type:Xa.default.error,error:t}};cn.fork=function(t){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r1?n-1:0),r=1;r2?o-2:0),s=2;s1?n-1:0),r=1;r"u"?"undefined":Rke(t))==="object"&&!!t},all:function(t){return Mr.obj(t)&&t.type===Rl.default.all},error:function(t){return Mr.obj(t)&&t.type===Rl.default.error},array:Array.isArray,func:function(t){return typeof t=="function"},promise:function(t){return t&&Mr.func(t.then)},iterator:function(t){return t&&Mr.func(t.next)&&Mr.func(t.throw)},fork:function(t){return Mr.obj(t)&&t.type===Rl.default.fork},join:function(t){return Mr.obj(t)&&t.type===Rl.default.join},race:function(t){return Mr.obj(t)&&t.type===Rl.default.race},call:function(t){return Mr.obj(t)&&t.type===Rl.default.call},cps:function(t){return Mr.obj(t)&&t.type===Rl.default.cps},subscribe:function(t){return Mr.obj(t)&&t.type===Rl.default.subscribe},channel:function(t){return Mr.obj(t)&&Mr.func(t.subscribe)}};lh.default=Mr;Object.defineProperty(Gr,"__esModule",{value:!0});Gr.iterator=Gr.array=Gr.object=Gr.error=Gr.any=void 0;var Eke=lh,M2=Bke(Eke);function Bke(e){return e&&e.__esModule?e:{default:e}}var Nke=Gr.any=function(t,n,o,r){return r(t),!0},Lke=Gr.error=function(t,n,o,r,s){return M2.default.error(t)?(s(t.error),!0):!1},jke=Gr.object=function(t,n,o,r,s){if(!M2.default.all(t)||!M2.default.obj(t.value))return!1;var i={},c=Object.keys(t.value),l=0,u=!1,d=function(b,h){u||(i[b]=h,l++,l===c.length&&r(i))},p=function(b,h){u||(u=!0,s(h))};return c.map(function(f){o(t.value[f],function(b){return d(f,b)},function(b){return p(f,b)})}),!0},Pke=Gr.array=function(t,n,o,r,s){if(!M2.default.all(t)||!M2.default.array(t.value))return!1;var i=[],c=0,l=!1,u=function(f,b){l||(i[f]=b,c++,c===t.value.length&&r(i))},d=function(f,b){l||(l=!0,s(b))};return t.value.map(function(p,f){o(p,function(b){return u(f,b)},function(b){return d(f,b)})}),!0},Ike=Gr.iterator=function(t,n,o,r,s){return M2.default.iterator(t)?(o(t,n,s),!0):!1};Gr.default=[Lke,Ike,Pke,jke,Nke];Object.defineProperty(MB,"__esModule",{value:!0});var Dke=Gr,Fke=G0e(Dke),$ke=lh,Vke=G0e($ke);function G0e(e){return e&&e.__esModule?e:{default:e}}function O$(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t(c,l,u,d,p)=>{if(!a6e(c,s))return!1;const f=i(c);return Z0e(f)?f.then(d,p):d(f),!0}),o=(s,i)=>ZR(s)?(t(s),i(),!0):!1;n.push(o);const r=X0e.create(n);return s=>new Promise((i,c)=>r(s,l=>{ZR(l)&&t(l),i(l)},c))}function l6e(e={}){return t=>{const n=c6e(e,t.dispatch);return o=>r=>kke(r)?n(r):o(r)}}function Sn(e,t){return n=>{const o=e(n);return o.displayName=u6e(t,n),o}}const u6e=(e,t)=>{const n=t.displayName||t.name||"Component";return`${ov(e??"")}(${n})`},jr=(e,t,n)=>{let o,r,s=0,i,c,l,u=0,d=!1,p=!1,f=!0;n&&(d=!!n.leading,p="maxWait"in n,n.maxWait!==void 0&&(s=Math.max(n.maxWait,t)),f="trailing"in n?!!n.trailing:f);function b(C){const T=o,W=r;return o=void 0,r=void 0,u=C,i=e.apply(W,T),i}function h(C,T){c=setTimeout(C,T)}function g(){c!==void 0&&clearTimeout(c)}function z(C){return u=C,h(M,t),d?b(C):i}function y(C){return C-(l||0)}function x(C){const T=y(C),W=C-u,B=t-T;return p?Math.min(B,s-W):B}function v(C){const T=y(C),W=C-u;return l===void 0||T>=t||T<0||p&&W>=s}function M(){const C=Date.now();if(v(C))return _(C);h(M,x(C))}function A(){c=void 0}function _(C){return A(),f&&o?b(C):(o=r=void 0,i)}function w(){g(),u=0,A(),o=l=r=void 0}function k(){return q()?_(Date.now()):i}function q(){return c!==void 0}function S(...C){const T=Date.now(),W=v(T);if(o=C,r=this,l=T,W){if(!q())return z(l);if(p)return h(M,t),b(l)}return q()||h(M,t),i}return S.cancel=w,S.flush=k,S.pending=q,S},zB=(e,t,n)=>{let o=!0,r=!0;return n&&(o="leading"in n?!!n.leading:o,r="trailing"in n?!!n.trailing:r),jr(e,t,{leading:o,trailing:r,maxWait:t})};function g2(){const e=new Map,t=new Map;function n(o){const r=t.get(o);if(r)for(const s of r)s()}return{get(o){return e.get(o)},set(o,r){e.set(o,r),n(o)},delete(o){e.delete(o),n(o)},subscribe(o,r){let s=t.get(o);return s||(s=new Set,t.set(o,s)),s.add(r),()=>{s.delete(r),s.size===0&&t.delete(o)}}}}const Q0e=(e=!1)=>(...t)=>(...n)=>{const o=t.flat();return e&&o.reverse(),o.reduce((r,s)=>[s(...r)],n)[0]},Jl=Q0e(),v0=Q0e(!0);function OB(e){return Sn(t=>n=>e(n)?a.jsx(t,{...n}):null,"ifCondition")}function J0e(e,t){if(e===t)return!0;const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;let r=0;for(;r{if(n)return n;const o=f6e(e);return t?`${t}-${o}`:o},[e,n,t])}const b6e=Sn(e=>t=>{const n=He(e);return a.jsx(e,{...t,instanceId:n})},"instanceId"),h6e=Sn(e=>class extends O.Component{constructor(n){super(n),this.timeouts=[],this.setTimeout=this.setTimeout.bind(this),this.clearTimeout=this.clearTimeout.bind(this)}componentWillUnmount(){this.timeouts.forEach(clearTimeout)}setTimeout(n,o){const r=setTimeout(()=>{n(),this.clearTimeout(r)},o);return this.timeouts.push(r),r}clearTimeout(n){clearTimeout(n),this.timeouts=this.timeouts.filter(o=>o!==n)}render(){return a.jsx(e,{...this.props,setTimeout:this.setTimeout,clearTimeout:this.clearTimeout})}},"withSafeTimeout");function m6e(e){return[e?'[tabindex]:not([tabindex^="-"])':"[tabindex]","a[href]","button:not([disabled])",'input:not([type="hidden"]):not([disabled])',"select:not([disabled])","textarea:not([disabled])",'iframe:not([tabindex^="-"])',"object","embed","area[href]","[contenteditable]:not([contenteditable=false])"].join(",")}function ene(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}function M6e(e){const t=e.closest("map[name]");if(!t)return!1;const n=e.ownerDocument.querySelector('img[usemap="#'+t.name+'"]');return!!n&&ene(n)}function xx(e,{sequential:t=!1}={}){const n=e.querySelectorAll(m6e(t));return Array.from(n).filter(o=>{if(!ene(o))return!1;const{nodeName:r}=o;return r==="AREA"?M6e(o):!0})}const g6e=Object.freeze(Object.defineProperty({__proto__:null,find:xx},Symbol.toStringTag,{value:"Module"}));function QR(e){const t=e.getAttribute("tabindex");return t===null?0:parseInt(t,10)}function tne(e){return QR(e)!==-1}function z6e(){const e={};return function(n,o){const{nodeName:r,type:s,checked:i,name:c}=o;if(r!=="INPUT"||s!=="radio"||!c)return n.concat(o);const l=e.hasOwnProperty(c);if(!(i||!l))return n;if(l){const d=e[c];n=n.filter(p=>p!==d)}return e[c]=o,n.concat(o)}}function O6e(e,t){return{element:e,index:t}}function A6e(e){return e.element}function y6e(e,t){const n=QR(e.element),o=QR(t.element);return n===o?e.index-t.index:n-o}function AB(e){return e.filter(tne).map(O6e).sort(y6e).map(A6e).reduce(z6e(),[])}function v6e(e){return AB(xx(e))}function x6e(e){return AB(xx(e.ownerDocument.body)).reverse().find(t=>e.compareDocumentPosition(t)&e.DOCUMENT_POSITION_PRECEDING)}function _6e(e){return AB(xx(e.ownerDocument.body)).find(t=>e.compareDocumentPosition(t)&e.DOCUMENT_POSITION_FOLLOWING)}const w6e=Object.freeze(Object.defineProperty({__proto__:null,find:v6e,findNext:_6e,findPrevious:x6e,isTabbableIndex:tne},Symbol.toStringTag,{value:"Module"}));function jy(e){if(!e.collapsed){const s=Array.from(e.getClientRects());if(s.length===1)return s[0];const i=s.filter(({width:p})=>p>1);if(i.length===0)return e.getBoundingClientRect();if(i.length===1)return i[0];let{top:c,bottom:l,left:u,right:d}=i[0];for(const{top:p,bottom:f,left:b,right:h}of i)pl&&(l=f),bd&&(d=h);return new window.DOMRect(u,c,d-u,l-c)}const{startContainer:t}=e,{ownerDocument:n}=t;if(t.nodeName==="BR"){const{parentNode:s}=t,i=Array.from(s.childNodes).indexOf(t);e=n.createRange(),e.setStart(s,i),e.setEnd(s,i)}const o=e.getClientRects();if(o.length>1)return null;let r=o[0];if(!r||r.height===0){const s=n.createTextNode("​");e=e.cloneRange(),e.insertNode(s),r=e.getClientRects()[0],s.parentNode,s.parentNode.removeChild(s)}return r}function JR(e){const t=e.getSelection(),n=t.rangeCount?t.getRangeAt(0):null;return n?jy(n):null}function nne(e){e.defaultView;const t=e.defaultView.getSelection(),n=t.rangeCount?t.getRangeAt(0):null;return!!n&&!n.collapsed}function yB(e){return e?.nodeName==="INPUT"}function Wu(e){const t=["button","checkbox","hidden","file","radio","image","range","reset","submit","number","email","time"];return yB(e)&&e.type&&!t.includes(e.type)||e.nodeName==="TEXTAREA"||e.contentEditable==="true"}function k6e(e){if(!yB(e)&&!Wu(e))return!1;try{const{selectionStart:t,selectionEnd:n}=e;return t===null||t!==n}catch{return!0}}function q6e(e){return nne(e)||!!e.activeElement&&k6e(e.activeElement)}function S6e(e){return!!e.activeElement&&(yB(e.activeElement)||Wu(e.activeElement)||nne(e))}function sv(e){return e.ownerDocument.defaultView,e.ownerDocument.defaultView.getComputedStyle(e)}function Sr(e,t="vertical"){if(e){if((t==="vertical"||t==="all")&&e.scrollHeight>e.clientHeight){const{overflowY:n}=sv(e);if(/(auto|scroll)/.test(n))return e}if((t==="horizontal"||t==="all")&&e.scrollWidth>e.clientWidth){const{overflowX:n}=sv(e);if(/(auto|scroll)/.test(n))return e}return e.ownerDocument===e.parentNode?e:Sr(e.parentNode,t)}}function _x(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function C6e(e){if(_x(e))return e.selectionStart===0&&e.value.length===e.selectionEnd;if(!e.isContentEditable)return!0;const{ownerDocument:t}=e,{defaultView:n}=t,o=n.getSelection(),r=o.rangeCount?o.getRangeAt(0):null;if(!r)return!0;const{startContainer:s,endContainer:i,startOffset:c,endOffset:l}=r;if(s===e&&i===e&&c===0&&l===e.childNodes.length)return!0;e.lastChild;const u=i.nodeType===i.TEXT_NODE?i.data.length:i.childNodes.length;return y$(s,e,"firstChild")&&y$(i,e,"lastChild")&&c===0&&l===u}function y$(e,t,n){let o=t;do{if(e===o)return!0;o=o[n]}while(o);return!1}function one(e){if(!e)return!1;const{tagName:t}=e;return _x(e)||t==="BUTTON"||t==="SELECT"}function vB(e){return sv(e).direction==="rtl"}function R6e(e){const t=Array.from(e.getClientRects());if(!t.length)return;const n=Math.min(...t.map(({top:r})=>r));return Math.max(...t.map(({bottom:r})=>r))-n}function rne(e){const{anchorNode:t,focusNode:n,anchorOffset:o,focusOffset:r}=e,s=t.compareDocumentPosition(n);return s&t.DOCUMENT_POSITION_PRECEDING?!1:s&t.DOCUMENT_POSITION_FOLLOWING?!0:s===0?o<=r:!0}function W6e(e,t,n){if(e.caretRangeFromPoint)return e.caretRangeFromPoint(t,n);if(!e.caretPositionFromPoint)return null;const o=e.caretPositionFromPoint(t,n);if(!o)return null;const r=e.createRange();return r.setStart(o.offsetNode,o.offset),r.collapse(!0),r}function sne(e,t,n,o){const r=o.style.zIndex,s=o.style.position,{position:i="static"}=sv(o);i==="static"&&(o.style.position="relative"),o.style.zIndex="10000";const c=W6e(e,t,n);return o.style.zIndex=r,o.style.position=s,c}function ine(e,t,n){let o=n();return(!o||!o.startContainer||!e.contains(o.startContainer))&&(e.scrollIntoView(t),o=n(),!o||!o.startContainer||!e.contains(o.startContainer))?null:o}function ane(e,t,n=!1){if(_x(e)&&typeof e.selectionStart=="number")return e.selectionStart!==e.selectionEnd?!1:t?e.selectionStart===0:e.value.length===e.selectionStart;if(!e.isContentEditable)return!0;const{ownerDocument:o}=e,{defaultView:r}=o,s=r.getSelection();if(!s||!s.rangeCount)return!1;const i=s.getRangeAt(0),c=i.cloneRange(),l=rne(s),u=s.isCollapsed;u||c.collapse(!l);const d=jy(c),p=jy(i);if(!d||!p)return!1;const f=R6e(i);if(!u&&f&&f>d.height&&l===t)return!1;const b=vB(e)?!t:t,h=e.getBoundingClientRect(),g=b?h.left+1:h.right-1,z=t?h.top+1:h.bottom-1,y=ine(e,t,()=>sne(o,g,z,e));if(!y)return!1;const x=jy(y);if(!x)return!1;const v=t?"top":"bottom",M=b?"left":"right",A=x[v]-p[v],_=x[M]-d[M],w=Math.abs(A)<=1,k=Math.abs(_)<=1;return n?w:w&&k}function B6(e,t){return ane(e,t)}function v$(e,t){return ane(e,t,!0)}function T6e(e,t,n){const{ownerDocument:o}=e,r=vB(e)?!t:t,s=e.getBoundingClientRect();n===void 0?n=t?s.right-1:s.left+1:n<=s.left?n=s.left+1:n>=s.right&&(n=s.right-1);const i=r?s.bottom-1:s.top+1;return sne(o,n,i,e)}function cne(e,t,n){if(!e)return;if(e.focus(),_x(e)){if(typeof e.selectionStart!="number")return;t?(e.selectionStart=e.value.length,e.selectionEnd=e.value.length):(e.selectionStart=0,e.selectionEnd=0);return}const{ownerDocument:o}=e,{defaultView:r}=o,s=r.getSelection();if(!e.isContentEditable){s.removeAllRanges();return}const i=ine(e,t,()=>T6e(e,t,n));i&&(s.removeAllRanges(),s.addRange(i))}function lne(e,t){return cne(e,t,void 0)}function E6e(e,t,n){return cne(e,t,n?.left)}function une(e,t){t.parentNode,t.parentNode.insertBefore(e,t.nextSibling)}function kp(e){e.parentNode,e.parentNode.removeChild(e)}function B6e(e,t){e.parentNode,une(t,e.parentNode),kp(e)}function SM(e){const t=e.parentNode;for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}function x$(e,t){const n=e.ownerDocument.createElement(t);for(;e.firstChild;)n.appendChild(e.firstChild);return e.parentNode,e.parentNode.replaceChild(n,e),n}function ym(e,t){t.parentNode,t.parentNode.insertBefore(e,t),e.appendChild(t)}function wx(e){const{body:t}=document.implementation.createHTMLDocument("");t.innerHTML=e;const n=t.getElementsByTagName("*");let o=n.length;for(;o--;){const r=n[o];if(r.tagName==="SCRIPT")kp(r);else{let s=r.attributes.length;for(;s--;){const{name:i}=r.attributes[s];i.startsWith("on")&&r.removeAttribute(i)}}}return t.innerHTML}function Rr(e){e=wx(e);const t=document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body.textContent||""}function iv(e){switch(e.nodeType){case e.TEXT_NODE:return/^[ \f\n\r\t\v\u00a0]*$/.test(e.nodeValue||"");case e.ELEMENT_NODE:return e.hasAttributes()?!1:e.hasChildNodes()?Array.from(e.childNodes).every(iv):!0;default:return!0}}const CM={strong:{},em:{},s:{},del:{},ins:{},a:{attributes:["href","target","rel","id"]},code:{},abbr:{attributes:["title"]},sub:{},sup:{},br:{},small:{},q:{attributes:["cite"]},dfn:{attributes:["title"]},data:{attributes:["value"]},time:{attributes:["datetime"]},var:{},samp:{},kbd:{},i:{},b:{},u:{},mark:{},ruby:{},rt:{},rp:{},bdi:{attributes:["dir"]},bdo:{attributes:["dir"]},wbr:{},"#text":{}},N6e=["#text","br"];Object.keys(CM).filter(e=>!N6e.includes(e)).forEach(e=>{const{[e]:t,...n}=CM;CM[e].children=n});const L6e={audio:{attributes:["src","preload","autoplay","mediagroup","loop","muted"]},canvas:{attributes:["width","height"]},embed:{attributes:["src","type","width","height"]},img:{attributes:["alt","src","srcset","usemap","ismap","width","height"]},object:{attributes:["data","type","name","usemap","form","width","height"]},video:{attributes:["src","poster","preload","playsinline","autoplay","mediagroup","loop","muted","controls","width","height"]}},GO={...CM,...L6e};function kx(e){if(e!=="paste")return GO;const{u:t,abbr:n,data:o,time:r,wbr:s,bdi:i,bdo:c,...l}={...GO,ins:{children:GO.ins.children},del:{children:GO.del.children}};return l}function $b(e){const t=e.nodeName.toLowerCase();return kx().hasOwnProperty(t)||t==="span"}function dne(e){const t=e.nodeName.toLowerCase();return CM.hasOwnProperty(t)||t==="span"}function j6e(e){return!!e&&e.nodeType===e.ELEMENT_NODE}const P6e=()=>{};function tM(e,t,n,o){Array.from(e).forEach(r=>{const s=r.nodeName.toLowerCase();if(n.hasOwnProperty(s)&&(!n[s].isMatch||n[s].isMatch?.(r))){if(j6e(r)){const{attributes:i=[],classes:c=[],children:l,require:u=[],allowEmpty:d}=n[s];if(l&&!d&&iv(r)){kp(r);return}if(r.hasAttributes()&&(Array.from(r.attributes).forEach(({name:p})=>{p!=="class"&&!i.includes(p)&&r.removeAttribute(p)}),r.classList&&r.classList.length)){const p=c.map(f=>typeof f=="string"?b=>b===f:f instanceof RegExp?b=>f.test(b):P6e);Array.from(r.classList).forEach(f=>{p.some(b=>b(f))||r.classList.remove(f)}),r.classList.length||r.removeAttribute("class")}if(r.hasChildNodes()){if(l==="*")return;if(l)u.length&&!r.querySelector(u.join(","))?(tM(r.childNodes,t,n,o),SM(r)):r.parentNode&&r.parentNode.nodeName==="BODY"&&$b(r)?(tM(r.childNodes,t,n,o),Array.from(r.childNodes).some(p=>!$b(p))&&SM(r)):tM(r.childNodes,t,l,o);else for(;r.firstChild;)kp(r.firstChild)}}}else tM(r.childNodes,t,n,o),o&&!$b(r)&&r.nextElementSibling&&une(t.createElement("br"),r),SM(r)})}function e8(e,t,n){const o=document.implementation.createHTMLDocument("");return o.body.innerHTML=e,tM(o.body.childNodes,o,t,n),o.body.innerHTML}function av(e){const t=Array.from(e.files);return Array.from(e.items).forEach(n=>{const o=n.getAsFile();o&&!t.find(({name:r,type:s,size:i})=>r===o.name&&s===o.type&&i===o.size)&&t.push(o)}),t}const Nn={focusable:g6e,tabbable:w6e};function Et(e,t){const n=O.useRef();return O.useCallback(o=>{o?n.current=e(o):n.current&&n.current()},t)}function xB(){return Et(e=>{function t(n){const{key:o,shiftKey:r,target:s}=n;if(o!=="Tab")return;const i=r?"findPrevious":"findNext",c=Nn.tabbable[i](s)||null;if(s.contains(c)){n.preventDefault(),c?.focus();return}if(e.contains(c))return;const l=r?"append":"prepend",{ownerDocument:u}=e,d=u.createElement("div");d.tabIndex=-1,e[l](d),d.addEventListener("blur",()=>e.removeChild(d)),d.focus()}return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}},[])}var pne={exports:{}};/*! * clipboard.js v2.0.11 * https://clipboardjs.com/ * * Licensed MIT © Zeno Rocha - */(function(e,t){(function(o,r){e.exports=r()})(In,function(){return function(){var n={686:function(s,i,c){c.d(i,{default:function(){return U}});var l=c(279),u=c.n(l),d=c(370),p=c.n(d),f=c(817),b=c.n(f);function h(X){try{return document.execCommand(X)}catch{return!1}}var g=function(Z){var ne=b()(Z);return h("cut"),ne},z=g;function y(X){var Z=document.documentElement.getAttribute("dir")==="rtl",ne=document.createElement("textarea");ne.style.fontSize="12pt",ne.style.border="0",ne.style.padding="0",ne.style.margin="0",ne.style.position="absolute",ne.style[Z?"right":"left"]="-9999px";var oe=window.pageYOffset||document.documentElement.scrollTop;return ne.style.top="".concat(oe,"px"),ne.setAttribute("readonly",""),ne.value=X,ne}var x=function(Z,ne){var oe=y(Z);ne.container.appendChild(oe);var Y=b()(oe);return h("copy"),oe.remove(),Y},v=function(Z){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},oe="";return typeof Z=="string"?oe=x(Z,ne):Z instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(Z?.type)?oe=x(Z.value,ne):(oe=b()(Z),h("copy")),oe},M=v;function A(X){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?A=function(ne){return typeof ne}:A=function(ne){return ne&&typeof Symbol=="function"&&ne.constructor===Symbol&&ne!==Symbol.prototype?"symbol":typeof ne},A(X)}var _=function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ne=Z.action,oe=ne===void 0?"copy":ne,Y=Z.container,ee=Z.target,ie=Z.text;if(oe!=="copy"&&oe!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(ee!==void 0)if(ee&&A(ee)==="object"&&ee.nodeType===1){if(oe==="copy"&&ee.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(oe==="cut"&&(ee.hasAttribute("readonly")||ee.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(ie)return M(ie,{container:Y});if(ee)return oe==="cut"?z(ee):M(ee,{container:Y})},w=_;function k(X){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?k=function(ne){return typeof ne}:k=function(ne){return ne&&typeof Symbol=="function"&&ne.constructor===Symbol&&ne!==Symbol.prototype?"symbol":typeof ne},k(X)}function q(X,Z){if(!(X instanceof Z))throw new TypeError("Cannot call a class as a function")}function S(X,Z){for(var ne=0;ne"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function I(X){return I=Object.setPrototypeOf?Object.getPrototypeOf:function(ne){return ne.__proto__||Object.getPrototypeOf(ne)},I(X)}function P(X,Z){var ne="data-clipboard-".concat(X);if(Z.hasAttribute(ne))return Z.getAttribute(ne)}var H=function(X){T(ne,X);var Z=B(ne);function ne(oe,Y){var ee;return q(this,ne),ee=Z.call(this),ee.resolveOptions(Y),ee.listenClick(oe),ee}return C(ne,[{key:"resolveOptions",value:function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof Y.action=="function"?Y.action:this.defaultAction,this.target=typeof Y.target=="function"?Y.target:this.defaultTarget,this.text=typeof Y.text=="function"?Y.text:this.defaultText,this.container=k(Y.container)==="object"?Y.container:document.body}},{key:"listenClick",value:function(Y){var ee=this;this.listener=p()(Y,"click",function(ie){return ee.onClick(ie)})}},{key:"onClick",value:function(Y){var ee=Y.delegateTarget||Y.currentTarget,ie=this.action(ee)||"copy",se=w({action:ie,container:this.container,target:this.target(ee),text:this.text(ee)});this.emit(se?"success":"error",{action:ie,text:se,trigger:ee,clearSelection:function(){ee&&ee.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(Y){return P("action",Y)}},{key:"defaultTarget",value:function(Y){var ee=P("target",Y);if(ee)return document.querySelector(ee)}},{key:"defaultText",value:function(Y){return P("text",Y)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(Y){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return M(Y,ee)}},{key:"cut",value:function(Y){return z(Y)}},{key:"isSupported",value:function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],ee=typeof Y=="string"?[Y]:Y,ie=!!document.queryCommandSupported;return ee.forEach(function(se){ie=ie&&!!document.queryCommandSupported(se)}),ie}}]),ne}(u()),U=H},828:function(s){var i=9;if(typeof Element<"u"&&!Element.prototype.matches){var c=Element.prototype;c.matches=c.matchesSelector||c.mozMatchesSelector||c.msMatchesSelector||c.oMatchesSelector||c.webkitMatchesSelector}function l(u,d){for(;u&&u.nodeType!==i;){if(typeof u.matches=="function"&&u.matches(d))return u;u=u.parentNode}}s.exports=l},438:function(s,i,c){var l=c(828);function u(f,b,h,g,z){var y=p.apply(this,arguments);return f.addEventListener(h,y,z),{destroy:function(){f.removeEventListener(h,y,z)}}}function d(f,b,h,g,z){return typeof f.addEventListener=="function"?u.apply(null,arguments):typeof h=="function"?u.bind(null,document).apply(null,arguments):(typeof f=="string"&&(f=document.querySelectorAll(f)),Array.prototype.map.call(f,function(y){return u(y,b,h,g,z)}))}function p(f,b,h,g){return function(z){z.delegateTarget=l(z.target,b),z.delegateTarget&&g.call(f,z)}}s.exports=d},879:function(s,i){i.node=function(c){return c!==void 0&&c instanceof HTMLElement&&c.nodeType===1},i.nodeList=function(c){var l=Object.prototype.toString.call(c);return c!==void 0&&(l==="[object NodeList]"||l==="[object HTMLCollection]")&&"length"in c&&(c.length===0||i.node(c[0]))},i.string=function(c){return typeof c=="string"||c instanceof String},i.fn=function(c){var l=Object.prototype.toString.call(c);return l==="[object Function]"}},370:function(s,i,c){var l=c(879),u=c(438);function d(h,g,z){if(!h&&!g&&!z)throw new Error("Missing required arguments");if(!l.string(g))throw new TypeError("Second argument must be a String");if(!l.fn(z))throw new TypeError("Third argument must be a Function");if(l.node(h))return p(h,g,z);if(l.nodeList(h))return f(h,g,z);if(l.string(h))return b(h,g,z);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function p(h,g,z){return h.addEventListener(g,z),{destroy:function(){h.removeEventListener(g,z)}}}function f(h,g,z){return Array.prototype.forEach.call(h,function(y){y.addEventListener(g,z)}),{destroy:function(){Array.prototype.forEach.call(h,function(y){y.removeEventListener(g,z)})}}}function b(h,g,z){return u(document.body,h,g,z)}s.exports=d},817:function(s){function i(c){var l;if(c.nodeName==="SELECT")c.focus(),l=c.value;else if(c.nodeName==="INPUT"||c.nodeName==="TEXTAREA"){var u=c.hasAttribute("readonly");u||c.setAttribute("readonly",""),c.select(),c.setSelectionRange(0,c.value.length),u||c.removeAttribute("readonly"),l=c.value}else{c.hasAttribute("contenteditable")&&c.focus();var d=window.getSelection(),p=document.createRange();p.selectNodeContents(c),d.removeAllRanges(),d.addRange(p),l=d.toString()}return l}s.exports=i},279:function(s){function i(){}i.prototype={on:function(c,l,u){var d=this.e||(this.e={});return(d[c]||(d[c]=[])).push({fn:l,ctx:u}),this},once:function(c,l,u){var d=this;function p(){d.off(c,p),l.apply(u,arguments)}return p._=l,this.on(c,p,u)},emit:function(c){var l=[].slice.call(arguments,1),u=((this.e||(this.e={}))[c]||[]).slice(),d=0,p=u.length;for(d;d{const s=new D6e(r,{text(){return typeof n.current=="function"?n.current():n.current||""}});return s.on("success",({clearSelection:i})=>{i(),o.current&&o.current()}),()=>{s.destroy()}},[])}function Ta(e=null){if(!e){if(typeof window>"u")return!1;e=window}const{platform:t}=e.navigator;return t.indexOf("Mac")!==-1||["iPad","iPhone"].includes(t)}const Si=8,qp=9,y1=13,Ea=27,qx=32,F6e=33,$6e=34,Ag=35,Vb=36,Bs=37,xi=38,Ns=39,Do=40,_a=46,V6e=121,ui="alt",la="ctrl",ep="meta",di="shift";function fne(e){return e.length<2?e.toUpperCase():e.charAt(0).toUpperCase()+e.slice(1)}function $z(e,t){return Object.fromEntries(Object.entries(e).map(([n,o])=>[n,t(o)]))}const Sx={primary:e=>e()?[ep]:[la],primaryShift:e=>e()?[di,ep]:[la,di],primaryAlt:e=>e()?[ui,ep]:[la,ui],secondary:e=>e()?[di,ui,ep]:[la,di,ui],access:e=>e()?[la,ui]:[di,ui],ctrl:()=>[la],alt:()=>[ui],ctrlShift:()=>[la,di],shift:()=>[di],shiftAlt:()=>[di,ui],undefined:()=>[]},H6e=$z(Sx,e=>(t,n=Ta)=>[...e(n),t.toLowerCase()].join("+")),bne=$z(Sx,e=>(t,n=Ta)=>{const o=n(),r={[ui]:o?"⌥":"Alt",[la]:o?"⌃":"Ctrl",[ep]:"⌘",[di]:o?"⇧":"Shift"};return[...e(n).reduce((i,c)=>{var l;const u=(l=r[c])!==null&&l!==void 0?l:c;return o?[...i,u]:[...i,u,"+"]},[]),fne(t)]}),Jo=$z(bne,e=>(t,n=Ta)=>e(t,n).join("")),hne=$z(Sx,e=>(t,n=Ta)=>{const o=n(),r={[di]:"Shift",[ep]:o?"Command":"Control",[la]:"Control",[ui]:o?"Option":"Alt",",":m("Comma"),".":m("Period"),"`":m("Backtick"),"~":m("Tilde")};return[...e(n),t].map(s=>{var i;return fne((i=r[s])!==null&&i!==void 0?i:s)}).join(o?" ":" + ")});function U6e(e){return[ui,la,ep,di].filter(t=>e[`${t}Key`])}const Fs=$z(Sx,e=>(t,n,o=Ta)=>{const r=e(o),s=U6e(t),i={Comma:",",Backslash:"\\",IntlRo:"\\",IntlYen:"\\"},c=r.filter(d=>!s.includes(d)),l=s.filter(d=>!r.includes(d));if(c.length>0||l.length>0)return!1;let u=t.key.toLowerCase();return n?(t.altKey&&n.length===1&&(u=String.fromCharCode(t.keyCode).toLowerCase()),t.shiftKey&&n.length===1&&i[t.code]&&(u=i[t.code]),n==="del"&&(n="delete"),u===n.toLowerCase()):r.includes(u)});function Cx(e="firstElement"){const t=O.useRef(e),n=r=>{r.focus({preventScroll:!0})},o=O.useRef();return O.useEffect(()=>{t.current=e},[e]),Et(r=>{var s;if(!(!r||t.current===!1)&&!r.contains((s=r.ownerDocument?.activeElement)!==null&&s!==void 0?s:null)){if(t.current==="firstElement"){o.current=setTimeout(()=>{const i=Nn.tabbable.find(r)[0];i&&n(i)},0);return}return n(r),()=>{o.current&&clearTimeout(o.current)}}},[])}let KO=null;function _B(e){const t=O.useRef(null),n=O.useRef(null),o=O.useRef(e);return O.useEffect(()=>{o.current=e},[e]),O.useCallback(r=>{if(r){if(t.current=r,n.current)return;n.current=r.ownerDocument.activeElement}else if(n.current){const i=t.current?.contains(t.current?.ownerDocument.activeElement);if(t.current?.isConnected&&!i){var s;(s=KO)!==null&&s!==void 0||(KO=n.current);return}o.current?o.current():(n.current.isConnected?n.current:KO)?.focus(),KO=null}},[])}const X6e=["button","submit"];function G6e(e){if(!(e instanceof window.HTMLElement))return!1;switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return X6e.includes(e.type)}return!1}function mne(e){const t=O.useRef(e);O.useEffect(()=>{t.current=e},[e]);const n=O.useRef(!1),o=O.useRef(),r=O.useCallback(()=>{clearTimeout(o.current)},[]);O.useEffect(()=>()=>r(),[]),O.useEffect(()=>{e||r()},[e,r]);const s=O.useCallback(c=>{const{type:l,target:u}=c;["mouseup","touchend"].includes(l)?n.current=!1:G6e(u)&&(n.current=!0)},[]),i=O.useCallback(c=>{if(c.persist(),n.current)return;const l=c.target.getAttribute("data-unstable-ignore-focus-outside-for-relatedtarget");l&&c.relatedTarget?.closest(l)||(o.current=setTimeout(()=>{if(!document.hasFocus()){c.preventDefault();return}typeof t.current=="function"&&t.current(c)},0))},[]);return{onFocus:r,onMouseDown:s,onMouseUp:s,onTouchStart:s,onTouchEnd:s,onBlur:i}}function YO(e,t){typeof e=="function"?e(t):e&&e.hasOwnProperty("current")&&(e.current=t)}function Gt(e){const t=O.useRef(),n=O.useRef(!1),o=O.useRef(!1),r=O.useRef([]),s=O.useRef(e);return s.current=e,O.useLayoutEffect(()=>{o.current===!1&&n.current===!0&&e.forEach((i,c)=>{const l=r.current[c];i!==l&&(YO(l,null),YO(i,t.current))}),r.current=e},e),O.useLayoutEffect(()=>{o.current=!1}),O.useCallback(i=>{YO(t,i),o.current=!0,n.current=i!==null;const c=i?s.current:r.current;for(const l of c)YO(l,i)},[])}function Mne(e){const t=O.useRef(),{constrainTabbing:n=e.focusOnMount!==!1}=e;O.useEffect(()=>{t.current=e},Object.values(e));const o=xB(),r=Cx(e.focusOnMount),s=_B(),i=mne(l=>{t.current?.__unstableOnClose?t.current.__unstableOnClose("focus-outside",l):t.current?.onClose&&t.current.onClose()}),c=O.useCallback(l=>{l&&l.addEventListener("keydown",u=>{u.keyCode===Ea&&!u.defaultPrevented&&t.current?.onClose&&(u.preventDefault(),t.current.onClose())})},[]);return[Gt([n?o:null,e.focusOnMount!==!1?s:null,e.focusOnMount!==!1?r:null,c]),{...i,tabIndex:-1}]}function wB({isDisabled:e=!1}={}){return Et(t=>{if(e)return;const n=t?.ownerDocument?.defaultView;if(!n)return;const o=[],r=()=>{t.childNodes.forEach(c=>{c instanceof n.HTMLElement&&(c.getAttribute("inert")||(c.setAttribute("inert","true"),o.push(()=>{c.removeAttribute("inert")})))})},s=jr(r,0,{leading:!0});r();const i=new window.MutationObserver(s);return i.observe(t,{childList:!0}),()=>{i&&i.disconnect(),s.cancel(),o.forEach(c=>c())}},[e])}const kB=typeof window<"u"?O.useLayoutEffect:O.useEffect;function gne({onDragStart:e,onDragMove:t,onDragEnd:n}){const[o,r]=O.useState(!1),s=O.useRef({onDragStart:e,onDragMove:t,onDragEnd:n});kB(()=>{s.current.onDragStart=e,s.current.onDragMove=t,s.current.onDragEnd=n},[e,t,n]);const i=O.useCallback(u=>s.current.onDragMove&&s.current.onDragMove(u),[]),c=O.useCallback(u=>{s.current.onDragEnd&&s.current.onDragEnd(u),document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",c),r(!1)},[]),l=O.useCallback(u=>{s.current.onDragStart&&s.current.onDragStart(u),document.addEventListener("mousemove",i),document.addEventListener("mouseup",c),r(!0)},[]);return O.useEffect(()=>()=>{o&&(document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",c))},[o]),{startDrag:l,endDrag:c,isDragging:o}}const w$=new Map;function K6e(e){if(!e)return null;let t=w$.get(e);return t||(typeof window<"u"&&typeof window.matchMedia=="function"?(t=window.matchMedia(e),w$.set(e,t),t):null)}function qB(e){const t=O.useMemo(()=>{const n=K6e(e);return{subscribe(o){return n?(n.addEventListener?.("change",o),()=>{n.removeEventListener?.("change",o)}):()=>{}},getValue(){var o;return(o=n?.matches)!==null&&o!==void 0?o:!1}}},[e]);return O.useSyncExternalStore(t.subscribe,t.getValue,()=>!1)}function t1(e){const t=O.useRef();return O.useEffect(()=>{t.current=e},[e]),t.current}const Zs=()=>qB("(prefers-reduced-motion: reduce)");function Y6e(e,t){const n={...e};return Object.entries(t).forEach(([o,r])=>{n[o]?n[o]={...n[o],to:r.to}:n[o]=r}),n}const k$=(e,t)=>{const n=e?.findIndex(({id:r})=>typeof r=="string"?r===t.id:Jr(r,t.id)),o=[...e];return n!==-1?o[n]={id:t.id,changes:Y6e(o[n].changes,t.changes)}:o.push(t),o};function Z6e(){let e=[],t=[],n=0;const o=()=>{e=e.slice(0,n||void 0),n=0},r=()=>{var i;const c=e.length===0?0:e.length-1;let l=(i=e[c])!==null&&i!==void 0?i:[];t.forEach(u=>{l=k$(l,u)}),t=[],e[c]=l},s=i=>!i.filter(({changes:l})=>Object.values(l).some(({from:u,to:d})=>typeof u!="function"&&typeof d!="function"&&!Jr(u,d))).length;return{addRecord(i,c=!1){const l=!i||s(i);if(c){if(l)return;i.forEach(u=>{t=k$(t,u)})}else{if(o(),t.length&&r(),l)return;e.push(i)}},undo(){t.length&&(o(),r());const i=e[e.length-1+n];if(i)return n-=1,i},redo(){const i=e[e.length+n];if(i)return n+=1,i},hasUndo(){return!!e[e.length-1+n]},hasRedo(){return!!e[e.length+n]}}}const q$={xhuge:1920,huge:1440,wide:1280,xlarge:1080,large:960,medium:782,small:600,mobile:480},Q6e={">=":"min-width","<":"max-width"},J6e={">=":(e,t)=>t>=e,"<":(e,t)=>t=")=>{const n=O.useContext(zne),o=!n&&`(${Q6e[t]}: ${q$[e]}px)`,r=qB(o||void 0);return n?J6e[t](q$[e],n):r};g0.__experimentalWidthProvider=zne.Provider;const eqe=e=>{let t;if(!e.contentBoxSize)t=[e.contentRect.width,e.contentRect.height];else if(e.contentBoxSize[0]){const r=e.contentBoxSize[0];t=[r.inlineSize,r.blockSize]}else{const r=e.contentBoxSize;t=[r.inlineSize,r.blockSize]}const[n,o]=t.map(r=>Math.round(r));return{width:n,height:o}},tqe={position:"absolute",top:0,left:0,right:0,bottom:0,pointerEvents:"none",opacity:0,overflow:"hidden",zIndex:-1};function nqe({onResize:e}){const t=O.useRef(null),n=O.useRef(e);return O.useLayoutEffect(()=>{n.current=e},[e]),O.useLayoutEffect(()=>{const o=t.current,r=new ResizeObserver(s=>{for(const i of s){const c=eqe(i);n.current(c)}});return r.observe(o),()=>{r.unobserve(o)}},[]),a.jsx("div",{ref:t,style:tqe,"aria-hidden":"true"})}function oqe(e,t){return e.width===t.width&&e.height===t.height}const S$={width:null,height:null};function Ci(){const[e,t]=O.useState(S$),n=O.useRef(S$),o=O.useCallback(s=>{oqe(n.current,s)||(n.current=s,t(s))},[]);return[a.jsx(nqe,{onResize:o}),e]}var rqe={exports:{}};(function(e){(function(t){e.exports?e.exports=t():window.idleCallbackShim=t()})(function(){var t,n,o,r,s=typeof window<"u"?window:typeof In!=null?In:this||{},i=s.cancelRequestAnimationFrame&&s.requestAnimationFrame||setTimeout,c=s.cancelRequestAnimationFrame||clearTimeout,l=[],u=0,d=!1,p=7,f=35,b=125,h=0,g=0,z=0,y={get didTimeout(){return!1},timeRemaining:function(){var T=p-(Date.now()-g);return T<0?0:T}},x=v(function(){p=22,b=66,f=0});function v(T){var W,B,N=99,E=function(){var L=Date.now()-B;L9?o=setTimeout(w,n):(n=0,w()))}function q(){var T,W,B,N=p>9?9:1;if(g=Date.now(),d=!1,o=null,u>2||g-n-50N;W++)T=l.shift(),z++,T&&T(y);l.length?k():u=0}function S(T){return h++,l.push(T),k(),h}function C(T){var W=T-1-z;l[W]&&(l[W]=null)}if(!s.requestIdleCallback||!s.cancelIdleCallback)s.requestIdleCallback=S,s.cancelIdleCallback=C,s.document&&document.addEventListener&&(s.addEventListener("scroll",A,!0),s.addEventListener("resize",A),document.addEventListener("focus",A,!0),document.addEventListener("mouseover",A,!0),["click","keypress","touchstart","mousedown"].forEach(function(T){document.addEventListener(T,A,{capture:!0,passive:!0})}),s.MutationObserver&&new MutationObserver(A).observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0}));else try{s.requestIdleCallback(function(){},{timeout:0})}catch{(function(W){var B,N;if(s.requestIdleCallback=function(E,L){return L&&typeof L.timeout=="number"?W(E,L.timeout):W(E)},s.IdleCallbackDeadline&&(B=IdleCallbackDeadline.prototype)){if(N=Object.getOwnPropertyDescriptor(B,"timeRemaining"),!N||!N.configurable||!N.get)return;Object.defineProperty(B,"timeRemaining",{value:function(){return N.get.call(this)},enumerable:!0,configurable:!0})}})(s.requestIdleCallback)}return{request:S,cancel:C}})})(rqe);function sqe(){return typeof window>"u"?e=>{setTimeout(()=>e(Date.now()),0)}:window.requestIdleCallback}const C$=sqe(),One=()=>{const e=new Map;let t=!1;const n=c=>{for(const[l,u]of e)if(e.delete(l),u(),typeof c=="number"||c.timeRemaining()<=0)break;if(e.size===0){t=!1;return}C$(n)};return{add:(c,l)=>{e.set(c,l),t||(t=!0,C$(n))},flush:c=>{const l=e.get(c);return l===void 0?!1:(e.delete(c),l(),!0)},cancel:c=>e.delete(c),reset:()=>{e.clear(),t=!1}}};function iqe(e,t){const n=[];for(let o=0;o{let s=iqe(e,o);s.length{Qo.flushSync(()=>{r(l=>[...l,...e.slice(c,c+n)])})});return()=>i.reset()},[e]),o}function aqe(e,t){if(e.length!==t.length)return!1;for(var n=0;njr(e,t??0,n),[e,t,n]);return O.useEffect(()=>()=>o.cancel(),[o]),o}function yne(e=""){const[t,n]=O.useState(e),[o,r]=O.useState(e),s=Uo(r,250);return O.useEffect(()=>{s(t)},[t,s]),[t,n,o]}function t8(e,t,n){const o=Ane(()=>zB(e,t??0,n),[e,t,n]);return O.useEffect(()=>()=>o.cancel(),[o]),o}function jf(e){const t=O.useRef();return t.current=e,t}function Rx({dropZoneElement:e,isDisabled:t,onDrop:n,onDragStart:o,onDragEnter:r,onDragLeave:s,onDragEnd:i,onDragOver:c}){const l=jf(n),u=jf(o),d=jf(r),p=jf(s),f=jf(i),b=jf(c);return Et(h=>{if(t)return;const g=e??h;let z=!1;const{ownerDocument:y}=g;function x(q){const{defaultView:S}=y;if(!q||!S||!(q instanceof S.HTMLElement)||!g.contains(q))return!1;let C=q;do if(C.dataset.isDropZone)return C===g;while(C=C.parentElement);return!1}function v(q){z||(z=!0,y.addEventListener("dragend",k),y.addEventListener("mousemove",k),u.current&&u.current(q))}function M(q){q.preventDefault(),!g.contains(q.relatedTarget)&&d.current&&d.current(q)}function A(q){!q.defaultPrevented&&b.current&&b.current(q),q.preventDefault()}function _(q){x(q.relatedTarget)||p.current&&p.current(q)}function w(q){q.defaultPrevented||(q.preventDefault(),q.dataTransfer&&q.dataTransfer.files.length,l.current&&l.current(q),k(q))}function k(q){z&&(z=!1,y.removeEventListener("dragend",k),y.removeEventListener("mousemove",k),f.current&&f.current(q))}return g.dataset.isDropZone="true",g.addEventListener("drop",w),g.addEventListener("dragenter",M),g.addEventListener("dragover",A),g.addEventListener("dragleave",_),y.addEventListener("dragenter",v),()=>{delete g.dataset.isDropZone,g.removeEventListener("drop",w),g.removeEventListener("dragenter",M),g.removeEventListener("dragover",A),g.removeEventListener("dragleave",_),y.removeEventListener("dragend",k),y.removeEventListener("mousemove",k),y.removeEventListener("dragenter",v)}},[t,e])}function vne(){return Et(e=>{const{ownerDocument:t}=e;if(!t)return;const{defaultView:n}=t;if(!n)return;function o(){t&&t.activeElement===e&&e.focus()}return n.addEventListener("blur",o),()=>{n.removeEventListener("blur",o)}},[])}const cqe=30;function lqe(e,t,n,o){var r,s;const i=(r=o?.initWindowSize)!==null&&r!==void 0?r:cqe,c=(s=o?.useWindowing)!==null&&s!==void 0?s:!0,[l,u]=O.useState({visibleItems:i,start:0,end:i,itemInView:d=>d>=0&&d<=i});return O.useLayoutEffect(()=>{if(!c)return;const d=Sr(e.current),p=b=>{var h;if(!d)return;const g=Math.ceil(d.clientHeight/t),z=b?g:(h=o?.windowOverscan)!==null&&h!==void 0?h:g,y=Math.floor(d.scrollTop/t),x=Math.max(0,y-z),v=Math.min(n-1,y+g+z);u(M=>{const A={visibleItems:g,start:x,end:v,itemInView:_=>x<=_&&_<=v};return M.start!==A.start||M.end!==A.end||M.visibleItems!==A.visibleItems?A:M})};p(!0);const f=jr(()=>{p()},16);return d?.addEventListener("scroll",f),d?.ownerDocument?.defaultView?.addEventListener("resize",f),d?.ownerDocument?.defaultView?.addEventListener("resize",f),()=>{d?.removeEventListener("scroll",f),d?.ownerDocument?.defaultView?.removeEventListener("resize",f)}},[t,e,n,o?.expandedState,o?.windowOverscan,c]),O.useLayoutEffect(()=>{if(!c)return;const d=Sr(e.current),p=f=>{switch(f.keyCode){case Vb:return d?.scrollTo({top:0});case Ag:return d?.scrollTo({top:n*t});case F6e:return d?.scrollTo({top:d.scrollTop-l.visibleItems*t});case $6e:return d?.scrollTo({top:d.scrollTop+l.visibleItems*t})}};return d?.ownerDocument?.defaultView?.addEventListener("keydown",p),()=>{d?.ownerDocument?.defaultView?.removeEventListener("keydown",p)}},[n,t,e,l.visibleItems,c,o?.expandedState]),[l,u]}function xne(e,t){const[n,o]=O.useMemo(()=>[r=>e.subscribe(t,r),()=>e.get(t)],[e,t]);return O.useSyncExternalStore(n,o,o)}function _ne(e){const t=Object.keys(e);return function(o={},r){const s={};let i=!1;for(const c of t){const l=e[c],u=o[c],d=l(u,r);s[c]=d,i=i||d!==u}return i?s:o}}function nt(e){const t=new WeakMap,n=(...o)=>{let r=t.get(n.registry);return r||(r=e(n.registry.select),t.set(n.registry,r)),r(...o)};return n.isRegistrySelector=!0,n}function N6(e){return e.isRegistryControl=!0,e}const uqe="@@data/SELECT",dqe="@@data/RESOLVE_SELECT",pqe="@@data/DISPATCH",fqe={[uqe]:N6(e=>({storeKey:t,selectorName:n,args:o})=>e.select(t)[n](...o)),[dqe]:N6(e=>({storeKey:t,selectorName:n,args:o})=>{const r=e.select(t)[n].hasResolver?"resolveSelect":"select";return e[r](t)[n](...o)}),[pqe]:N6(e=>({storeKey:t,actionName:n,args:o})=>e.dispatch(t)[n](...o))},bqe=["@wordpress/block-directory","@wordpress/block-editor","@wordpress/block-library","@wordpress/blocks","@wordpress/commands","@wordpress/components","@wordpress/core-commands","@wordpress/core-data","@wordpress/customize-widgets","@wordpress/data","@wordpress/edit-post","@wordpress/edit-site","@wordpress/edit-widgets","@wordpress/editor","@wordpress/format-library","@wordpress/interface","@wordpress/patterns","@wordpress/preferences","@wordpress/reusable-blocks","@wordpress/router","@wordpress/dataviews"],R$=[];let n8;try{n8=!globalThis.IS_WORDPRESS_CORE}catch{n8=!0}const ar=(e,t)=>{if(!bqe.includes(t))throw new Error(`You tried to opt-in to unstable APIs as module "${t}". This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will be removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on one of the next WordPress releases.`);if(!n8&&R$.includes(t))throw new Error(`You tried to opt-in to unstable APIs as module "${t}" which is already registered. This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will be removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on one of the next WordPress releases.`);return R$.push(t),{lock:hqe,unlock:mqe}};function hqe(e,t){if(!e)throw new Error("Cannot lock an undefined object.");RM in e||(e[RM]={}),wne.set(e[RM],t)}function mqe(e){if(!e)throw new Error("Cannot unlock an undefined object.");if(!(RM in e))throw new Error("Cannot unlock an object that was not locked before. ");return wne.get(e[RM])}const wne=new WeakMap,RM=Symbol("Private API ID"),{lock:nM,unlock:Pf}=ar("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/data"),Mqe=()=>e=>t=>Z0e(t)?t.then(n=>{if(n)return e(n)}):e(t),gqe=(e,t)=>()=>n=>o=>{const r=e.select(t).getCachedResolvers();return Object.entries(r).forEach(([i,c])=>{const l=e.stores[t]?.resolvers?.[i];!l||!l.shouldInvalidate||c.forEach((u,d)=>{u!==void 0&&(u.status!=="finished"&&u.status!=="error"||l.shouldInvalidate(o,...d)&&e.dispatch(t).invalidateResolution(i,d))})}),n(o)};function zqe(e){return()=>t=>n=>typeof n=="function"?n(e):t(n)}const Oqe=e=>t=>(n={},o)=>{const r=o[e];if(r===void 0)return n;const s=t(n[r],o);return s===n[r]?n:{...n,[r]:s}};function Pl(e){if(e==null)return[];const t=e.length;let n=t;for(;n>0&&e[n-1]===void 0;)n--;return n===t?e:e.slice(0,n)}const Aqe=Oqe("selectorName")((e=new ia,t)=>{switch(t.type){case"START_RESOLUTION":{const n=new ia(e);return n.set(Pl(t.args),{status:"resolving"}),n}case"FINISH_RESOLUTION":{const n=new ia(e);return n.set(Pl(t.args),{status:"finished"}),n}case"FAIL_RESOLUTION":{const n=new ia(e);return n.set(Pl(t.args),{status:"error",error:t.error}),n}case"START_RESOLUTIONS":{const n=new ia(e);for(const o of t.args)n.set(Pl(o),{status:"resolving"});return n}case"FINISH_RESOLUTIONS":{const n=new ia(e);for(const o of t.args)n.set(Pl(o),{status:"finished"});return n}case"FAIL_RESOLUTIONS":{const n=new ia(e);return t.args.forEach((o,r)=>{const s={status:"error",error:void 0},i=t.errors[r];i&&(s.error=i),n.set(Pl(o),s)}),n}case"INVALIDATE_RESOLUTION":{const n=new ia(e);return n.delete(Pl(t.args)),n}}return e}),yqe=(e={},t)=>{switch(t.type){case"INVALIDATE_RESOLUTION_FOR_STORE":return{};case"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR":{if(t.selectorName in e){const{[t.selectorName]:n,...o}=e;return o}return e}case"START_RESOLUTION":case"FINISH_RESOLUTION":case"FAIL_RESOLUTION":case"START_RESOLUTIONS":case"FINISH_RESOLUTIONS":case"FAIL_RESOLUTIONS":case"INVALIDATE_RESOLUTION":return Aqe(e,t)}return e};var L6={};function vqe(e){return[e]}function xqe(e){return!!e&&typeof e=="object"}function _qe(){var e={clear:function(){e.head=null}};return e}function W$(e,t,n){var o;if(e.length!==t.length)return!1;for(o=n;oArray.from(t._map.values()).some(n=>n[1]?.status==="resolving"))}const Tqe=at(e=>{const t={};return Object.values(e).forEach(n=>Array.from(n._map.values()).forEach(o=>{var r;const s=(r=o[1]?.status)!==null&&r!==void 0?r:"error";t[s]||(t[s]=0),t[s]++})),t},e=>[e]),Eqe=Object.freeze(Object.defineProperty({__proto__:null,countSelectorsByStatus:Tqe,getCachedResolvers:Rqe,getIsResolving:wqe,getResolutionError:Sqe,getResolutionState:cf,hasFinishedResolution:kqe,hasResolutionFailed:qqe,hasResolvingSelectors:Wqe,hasStartedResolution:kne,isResolving:Cqe},Symbol.toStringTag,{value:"Module"}));function qne(e,t){return{type:"START_RESOLUTION",selectorName:e,args:t}}function Sne(e,t){return{type:"FINISH_RESOLUTION",selectorName:e,args:t}}function Cne(e,t,n){return{type:"FAIL_RESOLUTION",selectorName:e,args:t,error:n}}function Bqe(e,t){return{type:"START_RESOLUTIONS",selectorName:e,args:t}}function Nqe(e,t){return{type:"FINISH_RESOLUTIONS",selectorName:e,args:t}}function Lqe(e,t,n){return{type:"FAIL_RESOLUTIONS",selectorName:e,args:t,errors:n}}function jqe(e,t){return{type:"INVALIDATE_RESOLUTION",selectorName:e,args:t}}function Pqe(){return{type:"INVALIDATE_RESOLUTION_FOR_STORE"}}function Iqe(e){return{type:"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR",selectorName:e}}const Dqe=Object.freeze(Object.defineProperty({__proto__:null,failResolution:Cne,failResolutions:Lqe,finishResolution:Sne,finishResolutions:Nqe,invalidateResolution:jqe,invalidateResolutionForStore:Pqe,invalidateResolutionForStoreSelector:Iqe,startResolution:qne,startResolutions:Bqe},Symbol.toStringTag,{value:"Module"})),j6=e=>{const t=[...e];for(let n=t.length-1;n>=0;n--)t[n]===void 0&&t.splice(n,1);return t},eu=(e,t)=>Object.fromEntries(Object.entries(e??{}).map(([n,o])=>[n,t(o,n)])),Fqe=(e,t)=>t instanceof Map?Object.fromEntries(t):t instanceof window.HTMLElement?null:t;function $qe(){const e={};return{isRunning(t,n){return e[t]&&e[t].get(j6(n))},clear(t,n){e[t]&&e[t].delete(j6(n))},markAsRunning(t,n){e[t]||(e[t]=new ia),e[t].set(j6(n),!0)}}}function T$(e){const t=new WeakMap;return{get(n,o){let r=t.get(n);return r||(r=e(n,o),t.set(n,r)),r}}}function er(e,t){const n={},o={},r={privateActions:n,registerPrivateActions:i=>{Object.assign(n,i)},privateSelectors:o,registerPrivateSelectors:i=>{Object.assign(o,i)}},s={name:e,instantiate:i=>{const c=new Set,l=t.reducer,d=Vqe(e,t,i,{registry:i,get dispatch(){return z},get select(){return w},get resolveSelect(){return T()}});nM(d,r);const p=$qe();function f(E){return(...L)=>Promise.resolve(d.dispatch(E(...L)))}const b={...eu(Dqe,f),...eu(t.actions,f)},h=T$(f),g=new Proxy(()=>{},{get:(E,L)=>{const I=n[L];return I?h.get(I,L):b[L]}}),z=new Proxy(g,{apply:(E,L,[I])=>d.dispatch(I)});nM(b,g);const y=t.resolvers?Xqe(t.resolvers):{};function x(E,L){E.isRegistrySelector&&(E.registry=i);const I=(...H)=>{H=o8(E,H);const U=d.__unstableOriginalGetState();return E.isRegistrySelector&&(E.registry=i),E(U.root,...H)};I.__unstableNormalizeArgs=E.__unstableNormalizeArgs;const P=y[L];return P?Gqe(I,L,P,d,p):(I.hasResolver=!1,I)}function v(E){const L=(...I)=>{const P=d.__unstableOriginalGetState(),H=I&&I[0],U=I&&I[1],X=t?.selectors?.[H];return H&&X&&(I[1]=o8(X,U)),E(P.metadata,...I)};return L.hasResolver=!1,L}const M={...eu(Eqe,v),...eu(t.selectors,x)},A=T$(x);for(const[E,L]of Object.entries(o))A.get(L,E);const _=new Proxy(()=>{},{get:(E,L)=>{const I=o[L];return I?A.get(I,L):M[L]}}),w=new Proxy(_,{apply:(E,L,[I])=>I(d.__unstableOriginalGetState())});nM(M,_);const k=Hqe(M,d),q=Uqe(M,d),S=()=>M,C=()=>b,T=()=>k,W=()=>q;d.__unstableOriginalGetState=d.getState,d.getState=()=>d.__unstableOriginalGetState().root;const B=d&&(E=>(c.add(E),()=>c.delete(E)));let N=d.__unstableOriginalGetState();return d.subscribe(()=>{const E=d.__unstableOriginalGetState(),L=E!==N;if(N=E,L)for(const I of c)I()}),{reducer:l,store:d,actions:b,selectors:M,resolvers:y,getSelectors:S,getResolveSelectors:T,getSuspendSelectors:W,getActions:C,subscribe:B}}};return nM(s,r),s}function Vqe(e,t,n,o){const r={...t.controls,...fqe},s=eu(r,p=>p.isRegistryControl?p(n):p),i=[gqe(n,e),Mqe,l6e(s),zqe(o)],c=[Ake(...i)];typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&c.push(window.__REDUX_DEVTOOLS_EXTENSION__({name:e,instanceId:e,serialize:{replacer:Fqe}}));const{reducer:l,initialState:u}=t,d=_ne({metadata:yqe,root:l});return U0e(d,{root:u},v0(c))}function Hqe(e,t){const{getIsResolving:n,hasStartedResolution:o,hasFinishedResolution:r,hasResolutionFailed:s,isResolving:i,getCachedResolvers:c,getResolutionState:l,getResolutionError:u,hasResolvingSelectors:d,countSelectorsByStatus:p,...f}=e;return eu(f,(b,h)=>b.hasResolver?(...g)=>new Promise((z,y)=>{const x=()=>e.hasFinishedResolution(h,g),v=w=>{if(e.hasResolutionFailed(h,g)){const q=e.getResolutionError(h,g);y(q)}else z(w)},M=()=>b.apply(null,g),A=M();if(x())return v(A);const _=t.subscribe(()=>{x()&&(_(),v(M()))})}):async(...g)=>b.apply(null,g))}function Uqe(e,t){return eu(e,(n,o)=>n.hasResolver?(...r)=>{const s=n.apply(null,r);if(e.hasFinishedResolution(o,r)){if(e.hasResolutionFailed(o,r))throw e.getResolutionError(o,r);return s}throw new Promise(i=>{const c=t.subscribe(()=>{e.hasFinishedResolution(o,r)&&(i(),c())})})}:n)}function Xqe(e){return eu(e,t=>t.fulfill?t:{...t,fulfill:t})}function Gqe(e,t,n,o,r){function s(c){const l=o.getState();if(r.isRunning(t,c)||typeof n.isFulfilled=="function"&&n.isFulfilled(l,...c))return;const{metadata:u}=o.__unstableOriginalGetState();kne(u,t,c)||(r.markAsRunning(t,c),setTimeout(async()=>{r.clear(t,c),o.dispatch(qne(t,c));try{const d=n.fulfill(...c);d&&await o.dispatch(d),o.dispatch(Sne(t,c))}catch(d){o.dispatch(Cne(t,c,d))}},0))}const i=(...c)=>(c=o8(e,c),s(c),e(...c));return i.hasResolver=!0,i}function o8(e,t){return e.__unstableNormalizeArgs&&typeof e.__unstableNormalizeArgs=="function"&&t?.length?e.__unstableNormalizeArgs(t):t}const Kqe={name:"core/data",instantiate(e){const t=o=>(r,...s)=>e.select(r)[o](...s),n=o=>(r,...s)=>e.dispatch(r)[o](...s);return{getSelectors(){return Object.fromEntries(["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"].map(o=>[o,t(o)]))},getActions(){return Object.fromEntries(["startResolution","finishResolution","invalidateResolution","invalidateResolutionForStore","invalidateResolutionForStoreSelector"].map(o=>[o,n(o)]))},subscribe(){return()=>()=>{}}}}};function E$(){let e=!1,t=!1;const n=new Set,o=()=>Array.from(n).forEach(r=>r());return{get isPaused(){return e},subscribe(r){return n.add(r),()=>n.delete(r)},pause(){e=!0},resume(){e=!1,t&&(t=!1,o())},emit(){if(e){t=!0;return}o()}}}function vm(e){return typeof e=="string"?e:e.name}function SB(e={},t=null){const n={},o=E$();let r=null;function s(){o.emit()}const i=(A,_)=>{if(!_)return o.subscribe(A);const w=vm(_),k=n[w];return k?k.subscribe(A):t?t.subscribe(A,_):o.subscribe(A)};function c(A){const _=vm(A);r?.add(_);const w=n[_];return w?w.getSelectors():t?.select(_)}function l(A,_){r=new Set;try{return A.call(this)}finally{_.current=Array.from(r),r=null}}function u(A){const _=vm(A);r?.add(_);const w=n[_];return w?w.getResolveSelectors():t&&t.resolveSelect(_)}function d(A){const _=vm(A);r?.add(_);const w=n[_];return w?w.getSuspendSelectors():t&&t.suspendSelect(_)}function p(A){const _=vm(A),w=n[_];return w?w.getActions():t&&t.dispatch(_)}function f(A){return Object.fromEntries(Object.entries(A).map(([_,w])=>typeof w!="function"?[_,w]:[_,function(){return x[_].apply(null,arguments)}]))}function b(A,_){if(n[A])return console.error('Store "'+A+'" is already registered.'),n[A];const w=_();if(typeof w.getSelectors!="function")throw new TypeError("store.getSelectors must be a function");if(typeof w.getActions!="function")throw new TypeError("store.getActions must be a function");if(typeof w.subscribe!="function")throw new TypeError("store.subscribe must be a function");w.emitter=E$();const k=w.subscribe;if(w.subscribe=q=>{const S=w.emitter.subscribe(q),C=k(()=>{if(w.emitter.isPaused){w.emitter.emit();return}q()});return()=>{C?.(),S?.()}},n[A]=w,w.subscribe(s),t)try{Pf(w.store).registerPrivateActions(Pf(t).privateActionsOf(A)),Pf(w.store).registerPrivateSelectors(Pf(t).privateSelectorsOf(A))}catch{}return w}function h(A){b(A.name,()=>A.instantiate(x))}function g(A,_){Re("wp.data.registerGenericStore",{since:"5.9",alternative:"wp.data.register( storeDescriptor )"}),b(A,()=>_)}function z(A,_){if(!_.reducer)throw new TypeError("Must specify store reducer");return b(A,()=>er(A,_).instantiate(x)).store}function y(A){if(o.isPaused){A();return}o.pause(),Object.values(n).forEach(_=>_.emitter.pause());try{A()}finally{o.resume(),Object.values(n).forEach(_=>_.emitter.resume())}}let x={batch:y,stores:n,namespaces:n,subscribe:i,select:c,resolveSelect:u,suspendSelect:d,dispatch:p,use:v,register:h,registerGenericStore:g,registerStore:z,__unstableMarkListeningStores:l};function v(A,_){if(A)return x={...x,...A(x,_)},x}x.register(Kqe);for(const[A,_]of Object.entries(e))x.register(er(A,_));t&&t.subscribe(s);const M=f(x);return nM(M,{privateActionsOf:A=>{try{return Pf(n[A].store).privateActions}catch{return{}}},privateSelectorsOf:A=>{try{return Pf(n[A].store).privateSelectors}catch{return{}}}}),M}const Ga=SB();var Yqe=function(t){return Zqe(t)&&!Qqe(t)};function Zqe(e){return!!e&&typeof e=="object"}function Qqe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||tSe(e)}var Jqe=typeof Symbol=="function"&&Symbol.for,eSe=Jqe?Symbol.for("react.element"):60103;function tSe(e){return e.$$typeof===eSe}function nSe(e){return Array.isArray(e)?[]:{}}function yg(e,t){return t.clone!==!1&&t.isMergeableObject(e)?z2(nSe(e),e,t):e}function oSe(e,t,n){return e.concat(t).map(function(o){return yg(o,n)})}function rSe(e,t){if(!t.customMerge)return z2;var n=t.customMerge(e);return typeof n=="function"?n:z2}function sSe(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function B$(e){return Object.keys(e).concat(sSe(e))}function Rne(e,t){try{return t in e}catch{return!1}}function iSe(e,t){return Rne(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function aSe(e,t,n){var o={};return n.isMergeableObject(e)&&B$(e).forEach(function(r){o[r]=yg(e[r],n)}),B$(t).forEach(function(r){iSe(e,r)||(Rne(e,r)&&n.isMergeableObject(t[r])?o[r]=rSe(r,n)(e[r],t[r],n):o[r]=yg(t[r],n))}),o}function z2(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||oSe,n.isMergeableObject=n.isMergeableObject||Yqe,n.cloneUnlessOtherwiseSpecified=yg;var o=Array.isArray(t),r=Array.isArray(e),s=o===r;return s?o?n.arrayMerge(e,t,n):aSe(e,t,n):yg(t,n)}z2.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(o,r){return z2(o,r,n)},{})};var cSe=z2,lSe=cSe;const Wne=yo(lSe),Tne=O.createContext(Ga),{Consumer:nb0,Provider:Ene}=Tne;function h0(){return O.useContext(Tne)}const Bne=O.createContext(!1),{Consumer:ob0,Provider:uSe}=Bne,Wx=uSe;function dSe(){return O.useContext(Bne)}const P6=One();function pSe(e,t){const n=e.select,o={};let r,s,i=!1,c,l;const u=new Map;function d(f){var b;return(b=e.stores[f]?.store?.getState?.())!==null&&b!==void 0?b:{}}const p=f=>{const b=[...f],h=new Set;function g(y){if(i)for(const _ of b)u.get(_)!==d(_)&&(i=!1);u.clear();const x=()=>{i=!1,y()},v=()=>{c?P6.add(o,x):x()},M=[];function A(_){M.push(e.subscribe(v,_))}for(const _ of b)A(_);return h.add(A),()=>{h.delete(A);for(const _ of M.values())_?.();P6.cancel(o)}}function z(y){for(const x of y)if(!b.includes(x)){b.push(x);for(const v of h)v(x)}}return{subscribe:g,updateStores:z}};return(f,b)=>{function h(){if(i&&f===r)return s;const z={current:null},y=e.__unstableMarkListeningStores(()=>f(n,e),z);if(l)l.updateStores(z.current);else{for(const x of z.current)u.set(x,d(x));l=p(z.current)}Jr(s,y)||(s=y),r=f,i=!0}function g(){return h(),s}return c&&!b&&(i=!1,P6.cancel(o)),h(),c=b,{subscribe:l.subscribe,getValue:g}}}function fSe(e){return h0().select(e)}function bSe(e,t,n){const o=h0(),r=dSe(),s=O.useMemo(()=>pSe(o),[o,e]),i=O.useCallback(t,n),{subscribe:c,getValue:l}=s(i,r),u=O.useSyncExternalStore(c,l,l);return O.useDebugValue(u),u}function D(e,t){const n=typeof e!="function",o=O.useRef(n);if(n!==o.current){const r=o.current?"static":"mapping",s=n?"static":"mapping";throw new Error(`Switching useSelect from ${r} to ${s} is not allowed`)}return n?fSe(e):bSe(!1,e,t)}const Xo=e=>Sn(t=>p6e(n=>{const r=D((s,i)=>e(s,n,i));return a.jsx(t,{...n,...r})}),"withSelect"),ae=e=>{const{dispatch:t}=h0();return e===void 0?t:t(e)},hSe=(e,t)=>{const n=h0(),o=O.useRef(e);return kB(()=>{o.current=e}),O.useMemo(()=>{const r=o.current(n.dispatch,n);return Object.fromEntries(Object.entries(r).map(([s,i])=>(typeof i!="function"&&console.warn(`Property ${s} returned from dispatchMap in useDispatchWithMap must be a function.`),[s,(...c)=>o.current(n.dispatch,n)[s](...c)])))},[n,...t])},Fi=e=>Sn(t=>n=>{const r=hSe((s,i)=>e(s,n,i),[]);return a.jsx(t,{...n,...r})},"withDispatch");function tr(e){return Ga.dispatch(e)}function V0(e){return Ga.select(e)}const zo=_ne,mSe=Ga.resolveSelect;Ga.suspendSelect;const MSe=Ga.subscribe;Ga.registerGenericStore;const gSe=Ga.registerStore;Ga.use;const Qs=Ga.register;var zSe=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var o,r,s;if(Array.isArray(t)){if(o=t.length,o!=n.length)return!1;for(r=o;r--!==0;)if(!e(t[r],n[r]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;for(r of t.entries())if(!e(r[1],n.get(r[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if(o=t.length,o!=n.length)return!1;for(r=o;r--!==0;)if(t[r]!==n[r])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(s=Object.keys(t),o=s.length,o!==Object.keys(n).length)return!1;for(r=o;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,s[r]))return!1;for(r=o;r--!==0;){var i=s[r];if(!e(t[i],n[i]))return!1}return!0}return t!==t&&n!==n};const J1=yo(zSe);function OSe(e,t){if(!e)return t;let n=!1;const o={};for(const r in t)J1(e[r],t[r])?o[r]=e[r]:(n=!0,o[r]=t[r]);if(!n)return e;for(const r in e)o.hasOwnProperty(r)||(o[r]=e[r]);return o}function Tu(e){return typeof e=="string"?e.split(","):Array.isArray(e)?e:null}const Nne=e=>t=>(n,o)=>n===void 0||e(o)?t(n,o):n,CB=e=>(...t)=>async({resolveSelect:n})=>{await n[e](...t)},N$=e=>t=>(n={},o)=>{const r=o[e];if(r===void 0)return n;const s=t(n[r],o);return s===n[r]?n:{...n,[r]:s}},Lne=e=>t=>(n,o)=>t(n,e(o));function ASe(e){const t=new WeakMap;return n=>{let o;return t.has(n)?o=t.get(n):(o=e(n),n!==null&&typeof n=="object"&&t.set(n,o)),o}}function ySe(e,t){return(e.rawAttributes||[]).includes(t)}function Tx(e,t,n){if(!e||typeof e!="object")return e;const o=Array.isArray(t)?t:t.split(".");return o.reduce((r,s,i)=>(r[s]===void 0&&(Number.isInteger(o[i+1])?r[s]=[]:r[s]={}),i===o.length-1&&(r[s]=n),r[s]),e),e}function vSe(e,t,n){if(!e||typeof e!="object"||typeof t!="string"&&!Array.isArray(t))return e;const o=Array.isArray(t)?t:t.split(".");let r=e;return o.forEach(s=>{r=r?.[s]}),r!==void 0?r:n}function xSe(e){return/^\s*\d+\s*$/.test(e)}const WM=["create","read","update","delete"];function RB(e){const t={};if(!e)return t;const n={create:"POST",read:"GET",update:"PUT",delete:"DELETE"};for(const[o,r]of Object.entries(n))t[o]=e.includes(r);return t}function Ex(e,t,n){return(typeof t=="object"?[e,t.kind,t.name,t.id]:[e,t,n]).filter(Boolean).join("/")}function jne(e,t,n){return{type:"RECEIVE_ITEMS",items:Array.isArray(e)?e:[e],persistedEdits:t,meta:n}}function _Se(e,t,n,o=!1){return{type:"REMOVE_ITEMS",itemIds:Array.isArray(n)?n:[n],kind:e,name:t,invalidateCache:o}}function wSe(e,t={},n,o){return{...jne(e,n,o),query:t}}function kSe(e){const t={stableKey:"",page:1,perPage:10,fields:null,include:null,context:"default"},n=Object.keys(e).sort();for(let s=0;s{x=x?.[v]}),Tx(g,y,x)}}else{if(!e.itemIsComplete[c]?.[b])return null;g=h}p.push(g)}return p}const Pne=at((e,t={})=>{let n=L$.get(e);if(n){const r=n.get(t);if(r!==void 0)return r}else n=new ia,L$.set(e,n);const o=qSe(e,t);return n.set(t,o),o});function Ine(e,t={}){var n;const{stableKey:o,context:r}=uh(t);return(n=e.queries?.[r]?.[o]?.meta?.totalItems)!==null&&n!==void 0?n:null}function SSe(e,t={}){var n;const{stableKey:o,context:r}=uh(t);return(n=e.queries?.[r]?.[o]?.meta?.totalPages)!==null&&n!==void 0?n:null}function CSe(e={},t){switch(t.type){case"ADD_FORMAT_TYPES":return{...e,...t.formatTypes.reduce((n,o)=>({...n,[o.name]:o}),{})};case"REMOVE_FORMAT_TYPES":return Object.fromEntries(Object.entries(e).filter(([n])=>!t.names.includes(n)))}return e}const RSe=zo({formatTypes:CSe}),WB=at(e=>Object.values(e.formatTypes),e=>[e.formatTypes]);function WSe(e,t){return e.formatTypes[t]}function TSe(e,t){const n=WB(e);return n.find(({className:o,tagName:r})=>o===null&&t===r)||n.find(({className:o,tagName:r})=>o===null&&r==="*")}function ESe(e,t){return WB(e).find(({className:n})=>n===null?!1:` ${t} `.indexOf(` ${n} `)>=0)}const BSe=Object.freeze(Object.defineProperty({__proto__:null,getFormatType:WSe,getFormatTypeForBareElement:TSe,getFormatTypeForClassName:ESe,getFormatTypes:WB},Symbol.toStringTag,{value:"Module"}));function NSe(e){return{type:"ADD_FORMAT_TYPES",formatTypes:Array.isArray(e)?e:[e]}}function LSe(e){return{type:"REMOVE_FORMAT_TYPES",names:Array.isArray(e)?e:[e]}}const jSe=Object.freeze(Object.defineProperty({__proto__:null,addFormatTypes:NSe,removeFormatTypes:LSe},Symbol.toStringTag,{value:"Module"})),PSe="core/rich-text",xc=er(PSe,{reducer:RSe,selectors:BSe,actions:jSe});Qs(xc);function cv(e,t){if(e===t)return!0;if(!e||!t||e.type!==t.type)return!1;const n=e.attributes,o=t.attributes;if(n===o)return!0;if(!n||!o)return!1;const r=Object.keys(n),s=Object.keys(o);if(r.length!==s.length)return!1;const i=r.length;for(let c=0;c{const r=t[o-1];if(r){const s=n.slice();s.forEach((i,c)=>{const l=r[c];cv(i,l)&&(s[c]=l)}),t[o]=s}}),{...e,formats:t}}function j$(e,t,n){return e=e.slice(),e[t]=n,e}function _i(e,t,n=e.start,o=e.end){const{formats:r,activeFormats:s}=e,i=r.slice();if(n===o){const c=i[n]?.find(({type:l})=>l===t.type);if(c){const l=i[n].indexOf(c);for(;i[n]&&i[n][l]===c;)i[n]=j$(i[n],l,t),n--;for(o++;i[o]&&i[o][l]===c;)i[o]=j$(i[o],l,t),o++}}else{let c=1/0;for(let l=n;ld!==t.type);const u=i[l].length;uc!==t.type)||[],t]})}function _c({implementation:e},t){return _c.body||(_c.body=e.createHTMLDocument("").body),_c.body.innerHTML=t,_c.body}const Ou="",Dne="\uFEFF";function TB(e,t=[]){const{formats:n,start:o,end:r,activeFormats:s}=e;if(o===void 0)return t;if(o===r){if(s)return s;const u=n[o-1]||t,d=n[o]||t;return u.lengthcv(p,f))||c.splice(d,1)}if(c.length===0)return t}return c||t}function Fne(e){return V0(xc).getFormatType(e)}function P$(e,t){if(t)return e;const n={};for(const o in e){let r=o;o.startsWith("data-disable-rich-text-")&&(r=o.slice(23)),n[r]=e[o]}return n}function ZO({type:e,tagName:t,attributes:n,unregisteredAttributes:o,object:r,boundaryClass:s,isEditableTree:i}){const c=Fne(e);let l={};if(s&&i&&(l["data-rich-text-format-boundary"]="true"),!c)return n&&(l={...n,...l}),{type:e,attributes:P$(l,i),object:r};l={...o,...l};for(const u in n){const d=c.attributes?c.attributes[u]:!1;d?l[d]=n[u]:l[u]=n[u]}return c.className&&(l.class?l.class=`${c.className} ${l.class}`:l.class=c.className),i&&c.contentEditable===!1&&(l.contenteditable="false"),{type:t||c.tagName,object:c.object,attributes:P$(l,i)}}function ISe(e,t,n){do if(e[n]!==t[n])return!1;while(n--);return!0}function $ne({value:e,preserveWhiteSpace:t,createEmpty:n,append:o,getLastChild:r,getParent:s,isText:i,getText:c,remove:l,appendText:u,onStartIndex:d,onEndIndex:p,isEditableTree:f,placeholder:b}){const{formats:h,replacements:g,text:z,start:y,end:x}=e,v=h.length+1,M=n(),A=TB(e),_=A[A.length-1];let w,k;o(M,"");for(let q=0;q1&&arguments[1]!==void 0?arguments[1]:{container:document.body},oe="";return typeof Z=="string"?oe=x(Z,ne):Z instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(Z?.type)?oe=x(Z.value,ne):(oe=b()(Z),h("copy")),oe},M=v;function A(X){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?A=function(ne){return typeof ne}:A=function(ne){return ne&&typeof Symbol=="function"&&ne.constructor===Symbol&&ne!==Symbol.prototype?"symbol":typeof ne},A(X)}var _=function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ne=Z.action,oe=ne===void 0?"copy":ne,Y=Z.container,ee=Z.target,ie=Z.text;if(oe!=="copy"&&oe!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(ee!==void 0)if(ee&&A(ee)==="object"&&ee.nodeType===1){if(oe==="copy"&&ee.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(oe==="cut"&&(ee.hasAttribute("readonly")||ee.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(ie)return M(ie,{container:Y});if(ee)return oe==="cut"?z(ee):M(ee,{container:Y})},w=_;function k(X){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?k=function(ne){return typeof ne}:k=function(ne){return ne&&typeof Symbol=="function"&&ne.constructor===Symbol&&ne!==Symbol.prototype?"symbol":typeof ne},k(X)}function q(X,Z){if(!(X instanceof Z))throw new TypeError("Cannot call a class as a function")}function S(X,Z){for(var ne=0;ne"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function I(X){return I=Object.setPrototypeOf?Object.getPrototypeOf:function(ne){return ne.__proto__||Object.getPrototypeOf(ne)},I(X)}function P(X,Z){var ne="data-clipboard-".concat(X);if(Z.hasAttribute(ne))return Z.getAttribute(ne)}var H=function(X){T(ne,X);var Z=B(ne);function ne(oe,Y){var ee;return q(this,ne),ee=Z.call(this),ee.resolveOptions(Y),ee.listenClick(oe),ee}return C(ne,[{key:"resolveOptions",value:function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof Y.action=="function"?Y.action:this.defaultAction,this.target=typeof Y.target=="function"?Y.target:this.defaultTarget,this.text=typeof Y.text=="function"?Y.text:this.defaultText,this.container=k(Y.container)==="object"?Y.container:document.body}},{key:"listenClick",value:function(Y){var ee=this;this.listener=p()(Y,"click",function(ie){return ee.onClick(ie)})}},{key:"onClick",value:function(Y){var ee=Y.delegateTarget||Y.currentTarget,ie=this.action(ee)||"copy",se=w({action:ie,container:this.container,target:this.target(ee),text:this.text(ee)});this.emit(se?"success":"error",{action:ie,text:se,trigger:ee,clearSelection:function(){ee&&ee.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(Y){return P("action",Y)}},{key:"defaultTarget",value:function(Y){var ee=P("target",Y);if(ee)return document.querySelector(ee)}},{key:"defaultText",value:function(Y){return P("text",Y)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(Y){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return M(Y,ee)}},{key:"cut",value:function(Y){return z(Y)}},{key:"isSupported",value:function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],ee=typeof Y=="string"?[Y]:Y,ie=!!document.queryCommandSupported;return ee.forEach(function(se){ie=ie&&!!document.queryCommandSupported(se)}),ie}}]),ne}(u()),U=H},828:function(s){var i=9;if(typeof Element<"u"&&!Element.prototype.matches){var c=Element.prototype;c.matches=c.matchesSelector||c.mozMatchesSelector||c.msMatchesSelector||c.oMatchesSelector||c.webkitMatchesSelector}function l(u,d){for(;u&&u.nodeType!==i;){if(typeof u.matches=="function"&&u.matches(d))return u;u=u.parentNode}}s.exports=l},438:function(s,i,c){var l=c(828);function u(f,b,h,g,z){var y=p.apply(this,arguments);return f.addEventListener(h,y,z),{destroy:function(){f.removeEventListener(h,y,z)}}}function d(f,b,h,g,z){return typeof f.addEventListener=="function"?u.apply(null,arguments):typeof h=="function"?u.bind(null,document).apply(null,arguments):(typeof f=="string"&&(f=document.querySelectorAll(f)),Array.prototype.map.call(f,function(y){return u(y,b,h,g,z)}))}function p(f,b,h,g){return function(z){z.delegateTarget=l(z.target,b),z.delegateTarget&&g.call(f,z)}}s.exports=d},879:function(s,i){i.node=function(c){return c!==void 0&&c instanceof HTMLElement&&c.nodeType===1},i.nodeList=function(c){var l=Object.prototype.toString.call(c);return c!==void 0&&(l==="[object NodeList]"||l==="[object HTMLCollection]")&&"length"in c&&(c.length===0||i.node(c[0]))},i.string=function(c){return typeof c=="string"||c instanceof String},i.fn=function(c){var l=Object.prototype.toString.call(c);return l==="[object Function]"}},370:function(s,i,c){var l=c(879),u=c(438);function d(h,g,z){if(!h&&!g&&!z)throw new Error("Missing required arguments");if(!l.string(g))throw new TypeError("Second argument must be a String");if(!l.fn(z))throw new TypeError("Third argument must be a Function");if(l.node(h))return p(h,g,z);if(l.nodeList(h))return f(h,g,z);if(l.string(h))return b(h,g,z);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function p(h,g,z){return h.addEventListener(g,z),{destroy:function(){h.removeEventListener(g,z)}}}function f(h,g,z){return Array.prototype.forEach.call(h,function(y){y.addEventListener(g,z)}),{destroy:function(){Array.prototype.forEach.call(h,function(y){y.removeEventListener(g,z)})}}}function b(h,g,z){return u(document.body,h,g,z)}s.exports=d},817:function(s){function i(c){var l;if(c.nodeName==="SELECT")c.focus(),l=c.value;else if(c.nodeName==="INPUT"||c.nodeName==="TEXTAREA"){var u=c.hasAttribute("readonly");u||c.setAttribute("readonly",""),c.select(),c.setSelectionRange(0,c.value.length),u||c.removeAttribute("readonly"),l=c.value}else{c.hasAttribute("contenteditable")&&c.focus();var d=window.getSelection(),p=document.createRange();p.selectNodeContents(c),d.removeAllRanges(),d.addRange(p),l=d.toString()}return l}s.exports=i},279:function(s){function i(){}i.prototype={on:function(c,l,u){var d=this.e||(this.e={});return(d[c]||(d[c]=[])).push({fn:l,ctx:u}),this},once:function(c,l,u){var d=this;function p(){d.off(c,p),l.apply(u,arguments)}return p._=l,this.on(c,p,u)},emit:function(c){var l=[].slice.call(arguments,1),u=((this.e||(this.e={}))[c]||[]).slice(),d=0,p=u.length;for(d;d{const s=new D6e(r,{text(){return typeof n.current=="function"?n.current():n.current||""}});return s.on("success",({clearSelection:i})=>{i(),o.current&&o.current()}),()=>{s.destroy()}},[])}function Ta(e=null){if(!e){if(typeof window>"u")return!1;e=window}const{platform:t}=e.navigator;return t.indexOf("Mac")!==-1||["iPad","iPhone"].includes(t)}const Si=8,qp=9,y1=13,Ea=27,qx=32,F6e=33,$6e=34,Ag=35,Vb=36,Ns=37,xi=38,Ls=39,Do=40,_a=46,V6e=121,ui="alt",la="ctrl",ep="meta",di="shift";function fne(e){return e.length<2?e.toUpperCase():e.charAt(0).toUpperCase()+e.slice(1)}function $z(e,t){return Object.fromEntries(Object.entries(e).map(([n,o])=>[n,t(o)]))}const Sx={primary:e=>e()?[ep]:[la],primaryShift:e=>e()?[di,ep]:[la,di],primaryAlt:e=>e()?[ui,ep]:[la,ui],secondary:e=>e()?[di,ui,ep]:[la,di,ui],access:e=>e()?[la,ui]:[di,ui],ctrl:()=>[la],alt:()=>[ui],ctrlShift:()=>[la,di],shift:()=>[di],shiftAlt:()=>[di,ui],undefined:()=>[]},H6e=$z(Sx,e=>(t,n=Ta)=>[...e(n),t.toLowerCase()].join("+")),bne=$z(Sx,e=>(t,n=Ta)=>{const o=n(),r={[ui]:o?"⌥":"Alt",[la]:o?"⌃":"Ctrl",[ep]:"⌘",[di]:o?"⇧":"Shift"};return[...e(n).reduce((i,c)=>{var l;const u=(l=r[c])!==null&&l!==void 0?l:c;return o?[...i,u]:[...i,u,"+"]},[]),fne(t)]}),Jo=$z(bne,e=>(t,n=Ta)=>e(t,n).join("")),hne=$z(Sx,e=>(t,n=Ta)=>{const o=n(),r={[di]:"Shift",[ep]:o?"Command":"Control",[la]:"Control",[ui]:o?"Option":"Alt",",":m("Comma"),".":m("Period"),"`":m("Backtick"),"~":m("Tilde")};return[...e(n),t].map(s=>{var i;return fne((i=r[s])!==null&&i!==void 0?i:s)}).join(o?" ":" + ")});function U6e(e){return[ui,la,ep,di].filter(t=>e[`${t}Key`])}const $s=$z(Sx,e=>(t,n,o=Ta)=>{const r=e(o),s=U6e(t),i={Comma:",",Backslash:"\\",IntlRo:"\\",IntlYen:"\\"},c=r.filter(d=>!s.includes(d)),l=s.filter(d=>!r.includes(d));if(c.length>0||l.length>0)return!1;let u=t.key.toLowerCase();return n?(t.altKey&&n.length===1&&(u=String.fromCharCode(t.keyCode).toLowerCase()),t.shiftKey&&n.length===1&&i[t.code]&&(u=i[t.code]),n==="del"&&(n="delete"),u===n.toLowerCase()):r.includes(u)});function Cx(e="firstElement"){const t=O.useRef(e),n=r=>{r.focus({preventScroll:!0})},o=O.useRef();return O.useEffect(()=>{t.current=e},[e]),Et(r=>{var s;if(!(!r||t.current===!1)&&!r.contains((s=r.ownerDocument?.activeElement)!==null&&s!==void 0?s:null)){if(t.current==="firstElement"){o.current=setTimeout(()=>{const i=Nn.tabbable.find(r)[0];i&&n(i)},0);return}return n(r),()=>{o.current&&clearTimeout(o.current)}}},[])}let KO=null;function _B(e){const t=O.useRef(null),n=O.useRef(null),o=O.useRef(e);return O.useEffect(()=>{o.current=e},[e]),O.useCallback(r=>{if(r){if(t.current=r,n.current)return;n.current=r.ownerDocument.activeElement}else if(n.current){const i=t.current?.contains(t.current?.ownerDocument.activeElement);if(t.current?.isConnected&&!i){var s;(s=KO)!==null&&s!==void 0||(KO=n.current);return}o.current?o.current():(n.current.isConnected?n.current:KO)?.focus(),KO=null}},[])}const X6e=["button","submit"];function G6e(e){if(!(e instanceof window.HTMLElement))return!1;switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return X6e.includes(e.type)}return!1}function mne(e){const t=O.useRef(e);O.useEffect(()=>{t.current=e},[e]);const n=O.useRef(!1),o=O.useRef(),r=O.useCallback(()=>{clearTimeout(o.current)},[]);O.useEffect(()=>()=>r(),[]),O.useEffect(()=>{e||r()},[e,r]);const s=O.useCallback(c=>{const{type:l,target:u}=c;["mouseup","touchend"].includes(l)?n.current=!1:G6e(u)&&(n.current=!0)},[]),i=O.useCallback(c=>{if(c.persist(),n.current)return;const l=c.target.getAttribute("data-unstable-ignore-focus-outside-for-relatedtarget");l&&c.relatedTarget?.closest(l)||(o.current=setTimeout(()=>{if(!document.hasFocus()){c.preventDefault();return}typeof t.current=="function"&&t.current(c)},0))},[]);return{onFocus:r,onMouseDown:s,onMouseUp:s,onTouchStart:s,onTouchEnd:s,onBlur:i}}function YO(e,t){typeof e=="function"?e(t):e&&e.hasOwnProperty("current")&&(e.current=t)}function Gt(e){const t=O.useRef(),n=O.useRef(!1),o=O.useRef(!1),r=O.useRef([]),s=O.useRef(e);return s.current=e,O.useLayoutEffect(()=>{o.current===!1&&n.current===!0&&e.forEach((i,c)=>{const l=r.current[c];i!==l&&(YO(l,null),YO(i,t.current))}),r.current=e},e),O.useLayoutEffect(()=>{o.current=!1}),O.useCallback(i=>{YO(t,i),o.current=!0,n.current=i!==null;const c=i?s.current:r.current;for(const l of c)YO(l,i)},[])}function Mne(e){const t=O.useRef(),{constrainTabbing:n=e.focusOnMount!==!1}=e;O.useEffect(()=>{t.current=e},Object.values(e));const o=xB(),r=Cx(e.focusOnMount),s=_B(),i=mne(l=>{t.current?.__unstableOnClose?t.current.__unstableOnClose("focus-outside",l):t.current?.onClose&&t.current.onClose()}),c=O.useCallback(l=>{l&&l.addEventListener("keydown",u=>{u.keyCode===Ea&&!u.defaultPrevented&&t.current?.onClose&&(u.preventDefault(),t.current.onClose())})},[]);return[Gt([n?o:null,e.focusOnMount!==!1?s:null,e.focusOnMount!==!1?r:null,c]),{...i,tabIndex:-1}]}function wB({isDisabled:e=!1}={}){return Et(t=>{if(e)return;const n=t?.ownerDocument?.defaultView;if(!n)return;const o=[],r=()=>{t.childNodes.forEach(c=>{c instanceof n.HTMLElement&&(c.getAttribute("inert")||(c.setAttribute("inert","true"),o.push(()=>{c.removeAttribute("inert")})))})},s=jr(r,0,{leading:!0});r();const i=new window.MutationObserver(s);return i.observe(t,{childList:!0}),()=>{i&&i.disconnect(),s.cancel(),o.forEach(c=>c())}},[e])}const kB=typeof window<"u"?O.useLayoutEffect:O.useEffect;function gne({onDragStart:e,onDragMove:t,onDragEnd:n}){const[o,r]=O.useState(!1),s=O.useRef({onDragStart:e,onDragMove:t,onDragEnd:n});kB(()=>{s.current.onDragStart=e,s.current.onDragMove=t,s.current.onDragEnd=n},[e,t,n]);const i=O.useCallback(u=>s.current.onDragMove&&s.current.onDragMove(u),[]),c=O.useCallback(u=>{s.current.onDragEnd&&s.current.onDragEnd(u),document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",c),r(!1)},[]),l=O.useCallback(u=>{s.current.onDragStart&&s.current.onDragStart(u),document.addEventListener("mousemove",i),document.addEventListener("mouseup",c),r(!0)},[]);return O.useEffect(()=>()=>{o&&(document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",c))},[o]),{startDrag:l,endDrag:c,isDragging:o}}const w$=new Map;function K6e(e){if(!e)return null;let t=w$.get(e);return t||(typeof window<"u"&&typeof window.matchMedia=="function"?(t=window.matchMedia(e),w$.set(e,t),t):null)}function qB(e){const t=O.useMemo(()=>{const n=K6e(e);return{subscribe(o){return n?(n.addEventListener?.("change",o),()=>{n.removeEventListener?.("change",o)}):()=>{}},getValue(){var o;return(o=n?.matches)!==null&&o!==void 0?o:!1}}},[e]);return O.useSyncExternalStore(t.subscribe,t.getValue,()=>!1)}function t1(e){const t=O.useRef();return O.useEffect(()=>{t.current=e},[e]),t.current}const Zs=()=>qB("(prefers-reduced-motion: reduce)");function Y6e(e,t){const n={...e};return Object.entries(t).forEach(([o,r])=>{n[o]?n[o]={...n[o],to:r.to}:n[o]=r}),n}const k$=(e,t)=>{const n=e?.findIndex(({id:r})=>typeof r=="string"?r===t.id:Jr(r,t.id)),o=[...e];return n!==-1?o[n]={id:t.id,changes:Y6e(o[n].changes,t.changes)}:o.push(t),o};function Z6e(){let e=[],t=[],n=0;const o=()=>{e=e.slice(0,n||void 0),n=0},r=()=>{var i;const c=e.length===0?0:e.length-1;let l=(i=e[c])!==null&&i!==void 0?i:[];t.forEach(u=>{l=k$(l,u)}),t=[],e[c]=l},s=i=>!i.filter(({changes:l})=>Object.values(l).some(({from:u,to:d})=>typeof u!="function"&&typeof d!="function"&&!Jr(u,d))).length;return{addRecord(i,c=!1){const l=!i||s(i);if(c){if(l)return;i.forEach(u=>{t=k$(t,u)})}else{if(o(),t.length&&r(),l)return;e.push(i)}},undo(){t.length&&(o(),r());const i=e[e.length-1+n];if(i)return n-=1,i},redo(){const i=e[e.length+n];if(i)return n+=1,i},hasUndo(){return!!e[e.length-1+n]},hasRedo(){return!!e[e.length+n]}}}const q$={xhuge:1920,huge:1440,wide:1280,xlarge:1080,large:960,medium:782,small:600,mobile:480},Q6e={">=":"min-width","<":"max-width"},J6e={">=":(e,t)=>t>=e,"<":(e,t)=>t=")=>{const n=O.useContext(zne),o=!n&&`(${Q6e[t]}: ${q$[e]}px)`,r=qB(o||void 0);return n?J6e[t](q$[e],n):r};g0.__experimentalWidthProvider=zne.Provider;const eqe=e=>{let t;if(!e.contentBoxSize)t=[e.contentRect.width,e.contentRect.height];else if(e.contentBoxSize[0]){const r=e.contentBoxSize[0];t=[r.inlineSize,r.blockSize]}else{const r=e.contentBoxSize;t=[r.inlineSize,r.blockSize]}const[n,o]=t.map(r=>Math.round(r));return{width:n,height:o}},tqe={position:"absolute",top:0,left:0,right:0,bottom:0,pointerEvents:"none",opacity:0,overflow:"hidden",zIndex:-1};function nqe({onResize:e}){const t=O.useRef(null),n=O.useRef(e);return O.useLayoutEffect(()=>{n.current=e},[e]),O.useLayoutEffect(()=>{const o=t.current,r=new ResizeObserver(s=>{for(const i of s){const c=eqe(i);n.current(c)}});return r.observe(o),()=>{r.unobserve(o)}},[]),a.jsx("div",{ref:t,style:tqe,"aria-hidden":"true"})}function oqe(e,t){return e.width===t.width&&e.height===t.height}const S$={width:null,height:null};function Ci(){const[e,t]=O.useState(S$),n=O.useRef(S$),o=O.useCallback(s=>{oqe(n.current,s)||(n.current=s,t(s))},[]);return[a.jsx(nqe,{onResize:o}),e]}var rqe={exports:{}};(function(e){(function(t){e.exports?e.exports=t():window.idleCallbackShim=t()})(function(){var t,n,o,r,s=typeof window<"u"?window:typeof In!=null?In:this||{},i=s.cancelRequestAnimationFrame&&s.requestAnimationFrame||setTimeout,c=s.cancelRequestAnimationFrame||clearTimeout,l=[],u=0,d=!1,p=7,f=35,b=125,h=0,g=0,z=0,y={get didTimeout(){return!1},timeRemaining:function(){var T=p-(Date.now()-g);return T<0?0:T}},x=v(function(){p=22,b=66,f=0});function v(T){var W,B,N=99,E=function(){var L=Date.now()-B;L9?o=setTimeout(w,n):(n=0,w()))}function q(){var T,W,B,N=p>9?9:1;if(g=Date.now(),d=!1,o=null,u>2||g-n-50N;W++)T=l.shift(),z++,T&&T(y);l.length?k():u=0}function S(T){return h++,l.push(T),k(),h}function C(T){var W=T-1-z;l[W]&&(l[W]=null)}if(!s.requestIdleCallback||!s.cancelIdleCallback)s.requestIdleCallback=S,s.cancelIdleCallback=C,s.document&&document.addEventListener&&(s.addEventListener("scroll",A,!0),s.addEventListener("resize",A),document.addEventListener("focus",A,!0),document.addEventListener("mouseover",A,!0),["click","keypress","touchstart","mousedown"].forEach(function(T){document.addEventListener(T,A,{capture:!0,passive:!0})}),s.MutationObserver&&new MutationObserver(A).observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0}));else try{s.requestIdleCallback(function(){},{timeout:0})}catch{(function(W){var B,N;if(s.requestIdleCallback=function(E,L){return L&&typeof L.timeout=="number"?W(E,L.timeout):W(E)},s.IdleCallbackDeadline&&(B=IdleCallbackDeadline.prototype)){if(N=Object.getOwnPropertyDescriptor(B,"timeRemaining"),!N||!N.configurable||!N.get)return;Object.defineProperty(B,"timeRemaining",{value:function(){return N.get.call(this)},enumerable:!0,configurable:!0})}})(s.requestIdleCallback)}return{request:S,cancel:C}})})(rqe);function sqe(){return typeof window>"u"?e=>{setTimeout(()=>e(Date.now()),0)}:window.requestIdleCallback}const C$=sqe(),One=()=>{const e=new Map;let t=!1;const n=c=>{for(const[l,u]of e)if(e.delete(l),u(),typeof c=="number"||c.timeRemaining()<=0)break;if(e.size===0){t=!1;return}C$(n)};return{add:(c,l)=>{e.set(c,l),t||(t=!0,C$(n))},flush:c=>{const l=e.get(c);return l===void 0?!1:(e.delete(c),l(),!0)},cancel:c=>e.delete(c),reset:()=>{e.clear(),t=!1}}};function iqe(e,t){const n=[];for(let o=0;o{let s=iqe(e,o);s.length{Qo.flushSync(()=>{r(l=>[...l,...e.slice(c,c+n)])})});return()=>i.reset()},[e]),o}function aqe(e,t){if(e.length!==t.length)return!1;for(var n=0;njr(e,t??0,n),[e,t,n]);return O.useEffect(()=>()=>o.cancel(),[o]),o}function yne(e=""){const[t,n]=O.useState(e),[o,r]=O.useState(e),s=Uo(r,250);return O.useEffect(()=>{s(t)},[t,s]),[t,n,o]}function t8(e,t,n){const o=Ane(()=>zB(e,t??0,n),[e,t,n]);return O.useEffect(()=>()=>o.cancel(),[o]),o}function jf(e){const t=O.useRef();return t.current=e,t}function Rx({dropZoneElement:e,isDisabled:t,onDrop:n,onDragStart:o,onDragEnter:r,onDragLeave:s,onDragEnd:i,onDragOver:c}){const l=jf(n),u=jf(o),d=jf(r),p=jf(s),f=jf(i),b=jf(c);return Et(h=>{if(t)return;const g=e??h;let z=!1;const{ownerDocument:y}=g;function x(q){const{defaultView:S}=y;if(!q||!S||!(q instanceof S.HTMLElement)||!g.contains(q))return!1;let C=q;do if(C.dataset.isDropZone)return C===g;while(C=C.parentElement);return!1}function v(q){z||(z=!0,y.addEventListener("dragend",k),y.addEventListener("mousemove",k),u.current&&u.current(q))}function M(q){q.preventDefault(),!g.contains(q.relatedTarget)&&d.current&&d.current(q)}function A(q){!q.defaultPrevented&&b.current&&b.current(q),q.preventDefault()}function _(q){x(q.relatedTarget)||p.current&&p.current(q)}function w(q){q.defaultPrevented||(q.preventDefault(),q.dataTransfer&&q.dataTransfer.files.length,l.current&&l.current(q),k(q))}function k(q){z&&(z=!1,y.removeEventListener("dragend",k),y.removeEventListener("mousemove",k),f.current&&f.current(q))}return g.dataset.isDropZone="true",g.addEventListener("drop",w),g.addEventListener("dragenter",M),g.addEventListener("dragover",A),g.addEventListener("dragleave",_),y.addEventListener("dragenter",v),()=>{delete g.dataset.isDropZone,g.removeEventListener("drop",w),g.removeEventListener("dragenter",M),g.removeEventListener("dragover",A),g.removeEventListener("dragleave",_),y.removeEventListener("dragend",k),y.removeEventListener("mousemove",k),y.removeEventListener("dragenter",v)}},[t,e])}function vne(){return Et(e=>{const{ownerDocument:t}=e;if(!t)return;const{defaultView:n}=t;if(!n)return;function o(){t&&t.activeElement===e&&e.focus()}return n.addEventListener("blur",o),()=>{n.removeEventListener("blur",o)}},[])}const cqe=30;function lqe(e,t,n,o){var r,s;const i=(r=o?.initWindowSize)!==null&&r!==void 0?r:cqe,c=(s=o?.useWindowing)!==null&&s!==void 0?s:!0,[l,u]=O.useState({visibleItems:i,start:0,end:i,itemInView:d=>d>=0&&d<=i});return O.useLayoutEffect(()=>{if(!c)return;const d=Sr(e.current),p=b=>{var h;if(!d)return;const g=Math.ceil(d.clientHeight/t),z=b?g:(h=o?.windowOverscan)!==null&&h!==void 0?h:g,y=Math.floor(d.scrollTop/t),x=Math.max(0,y-z),v=Math.min(n-1,y+g+z);u(M=>{const A={visibleItems:g,start:x,end:v,itemInView:_=>x<=_&&_<=v};return M.start!==A.start||M.end!==A.end||M.visibleItems!==A.visibleItems?A:M})};p(!0);const f=jr(()=>{p()},16);return d?.addEventListener("scroll",f),d?.ownerDocument?.defaultView?.addEventListener("resize",f),d?.ownerDocument?.defaultView?.addEventListener("resize",f),()=>{d?.removeEventListener("scroll",f),d?.ownerDocument?.defaultView?.removeEventListener("resize",f)}},[t,e,n,o?.expandedState,o?.windowOverscan,c]),O.useLayoutEffect(()=>{if(!c)return;const d=Sr(e.current),p=f=>{switch(f.keyCode){case Vb:return d?.scrollTo({top:0});case Ag:return d?.scrollTo({top:n*t});case F6e:return d?.scrollTo({top:d.scrollTop-l.visibleItems*t});case $6e:return d?.scrollTo({top:d.scrollTop+l.visibleItems*t})}};return d?.ownerDocument?.defaultView?.addEventListener("keydown",p),()=>{d?.ownerDocument?.defaultView?.removeEventListener("keydown",p)}},[n,t,e,l.visibleItems,c,o?.expandedState]),[l,u]}function xne(e,t){const[n,o]=O.useMemo(()=>[r=>e.subscribe(t,r),()=>e.get(t)],[e,t]);return O.useSyncExternalStore(n,o,o)}function _ne(e){const t=Object.keys(e);return function(o={},r){const s={};let i=!1;for(const c of t){const l=e[c],u=o[c],d=l(u,r);s[c]=d,i=i||d!==u}return i?s:o}}function nt(e){const t=new WeakMap,n=(...o)=>{let r=t.get(n.registry);return r||(r=e(n.registry.select),t.set(n.registry,r)),r(...o)};return n.isRegistrySelector=!0,n}function N6(e){return e.isRegistryControl=!0,e}const uqe="@@data/SELECT",dqe="@@data/RESOLVE_SELECT",pqe="@@data/DISPATCH",fqe={[uqe]:N6(e=>({storeKey:t,selectorName:n,args:o})=>e.select(t)[n](...o)),[dqe]:N6(e=>({storeKey:t,selectorName:n,args:o})=>{const r=e.select(t)[n].hasResolver?"resolveSelect":"select";return e[r](t)[n](...o)}),[pqe]:N6(e=>({storeKey:t,actionName:n,args:o})=>e.dispatch(t)[n](...o))},bqe=["@wordpress/block-directory","@wordpress/block-editor","@wordpress/block-library","@wordpress/blocks","@wordpress/commands","@wordpress/components","@wordpress/core-commands","@wordpress/core-data","@wordpress/customize-widgets","@wordpress/data","@wordpress/edit-post","@wordpress/edit-site","@wordpress/edit-widgets","@wordpress/editor","@wordpress/format-library","@wordpress/interface","@wordpress/patterns","@wordpress/preferences","@wordpress/reusable-blocks","@wordpress/router","@wordpress/dataviews"],R$=[];let n8;try{n8=!globalThis.IS_WORDPRESS_CORE}catch{n8=!0}const ar=(e,t)=>{if(!bqe.includes(t))throw new Error(`You tried to opt-in to unstable APIs as module "${t}". This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will be removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on one of the next WordPress releases.`);if(!n8&&R$.includes(t))throw new Error(`You tried to opt-in to unstable APIs as module "${t}" which is already registered. This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will be removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on one of the next WordPress releases.`);return R$.push(t),{lock:hqe,unlock:mqe}};function hqe(e,t){if(!e)throw new Error("Cannot lock an undefined object.");RM in e||(e[RM]={}),wne.set(e[RM],t)}function mqe(e){if(!e)throw new Error("Cannot unlock an undefined object.");if(!(RM in e))throw new Error("Cannot unlock an object that was not locked before. ");return wne.get(e[RM])}const wne=new WeakMap,RM=Symbol("Private API ID"),{lock:nM,unlock:Pf}=ar("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/data"),Mqe=()=>e=>t=>Z0e(t)?t.then(n=>{if(n)return e(n)}):e(t),gqe=(e,t)=>()=>n=>o=>{const r=e.select(t).getCachedResolvers();return Object.entries(r).forEach(([i,c])=>{const l=e.stores[t]?.resolvers?.[i];!l||!l.shouldInvalidate||c.forEach((u,d)=>{u!==void 0&&(u.status!=="finished"&&u.status!=="error"||l.shouldInvalidate(o,...d)&&e.dispatch(t).invalidateResolution(i,d))})}),n(o)};function zqe(e){return()=>t=>n=>typeof n=="function"?n(e):t(n)}const Oqe=e=>t=>(n={},o)=>{const r=o[e];if(r===void 0)return n;const s=t(n[r],o);return s===n[r]?n:{...n,[r]:s}};function Pl(e){if(e==null)return[];const t=e.length;let n=t;for(;n>0&&e[n-1]===void 0;)n--;return n===t?e:e.slice(0,n)}const Aqe=Oqe("selectorName")((e=new ia,t)=>{switch(t.type){case"START_RESOLUTION":{const n=new ia(e);return n.set(Pl(t.args),{status:"resolving"}),n}case"FINISH_RESOLUTION":{const n=new ia(e);return n.set(Pl(t.args),{status:"finished"}),n}case"FAIL_RESOLUTION":{const n=new ia(e);return n.set(Pl(t.args),{status:"error",error:t.error}),n}case"START_RESOLUTIONS":{const n=new ia(e);for(const o of t.args)n.set(Pl(o),{status:"resolving"});return n}case"FINISH_RESOLUTIONS":{const n=new ia(e);for(const o of t.args)n.set(Pl(o),{status:"finished"});return n}case"FAIL_RESOLUTIONS":{const n=new ia(e);return t.args.forEach((o,r)=>{const s={status:"error",error:void 0},i=t.errors[r];i&&(s.error=i),n.set(Pl(o),s)}),n}case"INVALIDATE_RESOLUTION":{const n=new ia(e);return n.delete(Pl(t.args)),n}}return e}),yqe=(e={},t)=>{switch(t.type){case"INVALIDATE_RESOLUTION_FOR_STORE":return{};case"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR":{if(t.selectorName in e){const{[t.selectorName]:n,...o}=e;return o}return e}case"START_RESOLUTION":case"FINISH_RESOLUTION":case"FAIL_RESOLUTION":case"START_RESOLUTIONS":case"FINISH_RESOLUTIONS":case"FAIL_RESOLUTIONS":case"INVALIDATE_RESOLUTION":return Aqe(e,t)}return e};var L6={};function vqe(e){return[e]}function xqe(e){return!!e&&typeof e=="object"}function _qe(){var e={clear:function(){e.head=null}};return e}function W$(e,t,n){var o;if(e.length!==t.length)return!1;for(o=n;oArray.from(t._map.values()).some(n=>n[1]?.status==="resolving"))}const Tqe=at(e=>{const t={};return Object.values(e).forEach(n=>Array.from(n._map.values()).forEach(o=>{var r;const s=(r=o[1]?.status)!==null&&r!==void 0?r:"error";t[s]||(t[s]=0),t[s]++})),t},e=>[e]),Eqe=Object.freeze(Object.defineProperty({__proto__:null,countSelectorsByStatus:Tqe,getCachedResolvers:Rqe,getIsResolving:wqe,getResolutionError:Sqe,getResolutionState:cf,hasFinishedResolution:kqe,hasResolutionFailed:qqe,hasResolvingSelectors:Wqe,hasStartedResolution:kne,isResolving:Cqe},Symbol.toStringTag,{value:"Module"}));function qne(e,t){return{type:"START_RESOLUTION",selectorName:e,args:t}}function Sne(e,t){return{type:"FINISH_RESOLUTION",selectorName:e,args:t}}function Cne(e,t,n){return{type:"FAIL_RESOLUTION",selectorName:e,args:t,error:n}}function Bqe(e,t){return{type:"START_RESOLUTIONS",selectorName:e,args:t}}function Nqe(e,t){return{type:"FINISH_RESOLUTIONS",selectorName:e,args:t}}function Lqe(e,t,n){return{type:"FAIL_RESOLUTIONS",selectorName:e,args:t,errors:n}}function jqe(e,t){return{type:"INVALIDATE_RESOLUTION",selectorName:e,args:t}}function Pqe(){return{type:"INVALIDATE_RESOLUTION_FOR_STORE"}}function Iqe(e){return{type:"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR",selectorName:e}}const Dqe=Object.freeze(Object.defineProperty({__proto__:null,failResolution:Cne,failResolutions:Lqe,finishResolution:Sne,finishResolutions:Nqe,invalidateResolution:jqe,invalidateResolutionForStore:Pqe,invalidateResolutionForStoreSelector:Iqe,startResolution:qne,startResolutions:Bqe},Symbol.toStringTag,{value:"Module"})),j6=e=>{const t=[...e];for(let n=t.length-1;n>=0;n--)t[n]===void 0&&t.splice(n,1);return t},eu=(e,t)=>Object.fromEntries(Object.entries(e??{}).map(([n,o])=>[n,t(o,n)])),Fqe=(e,t)=>t instanceof Map?Object.fromEntries(t):t instanceof window.HTMLElement?null:t;function $qe(){const e={};return{isRunning(t,n){return e[t]&&e[t].get(j6(n))},clear(t,n){e[t]&&e[t].delete(j6(n))},markAsRunning(t,n){e[t]||(e[t]=new ia),e[t].set(j6(n),!0)}}}function T$(e){const t=new WeakMap;return{get(n,o){let r=t.get(n);return r||(r=e(n,o),t.set(n,r)),r}}}function er(e,t){const n={},o={},r={privateActions:n,registerPrivateActions:i=>{Object.assign(n,i)},privateSelectors:o,registerPrivateSelectors:i=>{Object.assign(o,i)}},s={name:e,instantiate:i=>{const c=new Set,l=t.reducer,d=Vqe(e,t,i,{registry:i,get dispatch(){return z},get select(){return w},get resolveSelect(){return T()}});nM(d,r);const p=$qe();function f(E){return(...L)=>Promise.resolve(d.dispatch(E(...L)))}const b={...eu(Dqe,f),...eu(t.actions,f)},h=T$(f),g=new Proxy(()=>{},{get:(E,L)=>{const I=n[L];return I?h.get(I,L):b[L]}}),z=new Proxy(g,{apply:(E,L,[I])=>d.dispatch(I)});nM(b,g);const y=t.resolvers?Xqe(t.resolvers):{};function x(E,L){E.isRegistrySelector&&(E.registry=i);const I=(...H)=>{H=o8(E,H);const U=d.__unstableOriginalGetState();return E.isRegistrySelector&&(E.registry=i),E(U.root,...H)};I.__unstableNormalizeArgs=E.__unstableNormalizeArgs;const P=y[L];return P?Gqe(I,L,P,d,p):(I.hasResolver=!1,I)}function v(E){const L=(...I)=>{const P=d.__unstableOriginalGetState(),H=I&&I[0],U=I&&I[1],X=t?.selectors?.[H];return H&&X&&(I[1]=o8(X,U)),E(P.metadata,...I)};return L.hasResolver=!1,L}const M={...eu(Eqe,v),...eu(t.selectors,x)},A=T$(x);for(const[E,L]of Object.entries(o))A.get(L,E);const _=new Proxy(()=>{},{get:(E,L)=>{const I=o[L];return I?A.get(I,L):M[L]}}),w=new Proxy(_,{apply:(E,L,[I])=>I(d.__unstableOriginalGetState())});nM(M,_);const k=Hqe(M,d),q=Uqe(M,d),S=()=>M,C=()=>b,T=()=>k,W=()=>q;d.__unstableOriginalGetState=d.getState,d.getState=()=>d.__unstableOriginalGetState().root;const B=d&&(E=>(c.add(E),()=>c.delete(E)));let N=d.__unstableOriginalGetState();return d.subscribe(()=>{const E=d.__unstableOriginalGetState(),L=E!==N;if(N=E,L)for(const I of c)I()}),{reducer:l,store:d,actions:b,selectors:M,resolvers:y,getSelectors:S,getResolveSelectors:T,getSuspendSelectors:W,getActions:C,subscribe:B}}};return nM(s,r),s}function Vqe(e,t,n,o){const r={...t.controls,...fqe},s=eu(r,p=>p.isRegistryControl?p(n):p),i=[gqe(n,e),Mqe,l6e(s),zqe(o)],c=[Ake(...i)];typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&c.push(window.__REDUX_DEVTOOLS_EXTENSION__({name:e,instanceId:e,serialize:{replacer:Fqe}}));const{reducer:l,initialState:u}=t,d=_ne({metadata:yqe,root:l});return U0e(d,{root:u},v0(c))}function Hqe(e,t){const{getIsResolving:n,hasStartedResolution:o,hasFinishedResolution:r,hasResolutionFailed:s,isResolving:i,getCachedResolvers:c,getResolutionState:l,getResolutionError:u,hasResolvingSelectors:d,countSelectorsByStatus:p,...f}=e;return eu(f,(b,h)=>b.hasResolver?(...g)=>new Promise((z,y)=>{const x=()=>e.hasFinishedResolution(h,g),v=w=>{if(e.hasResolutionFailed(h,g)){const q=e.getResolutionError(h,g);y(q)}else z(w)},M=()=>b.apply(null,g),A=M();if(x())return v(A);const _=t.subscribe(()=>{x()&&(_(),v(M()))})}):async(...g)=>b.apply(null,g))}function Uqe(e,t){return eu(e,(n,o)=>n.hasResolver?(...r)=>{const s=n.apply(null,r);if(e.hasFinishedResolution(o,r)){if(e.hasResolutionFailed(o,r))throw e.getResolutionError(o,r);return s}throw new Promise(i=>{const c=t.subscribe(()=>{e.hasFinishedResolution(o,r)&&(i(),c())})})}:n)}function Xqe(e){return eu(e,t=>t.fulfill?t:{...t,fulfill:t})}function Gqe(e,t,n,o,r){function s(c){const l=o.getState();if(r.isRunning(t,c)||typeof n.isFulfilled=="function"&&n.isFulfilled(l,...c))return;const{metadata:u}=o.__unstableOriginalGetState();kne(u,t,c)||(r.markAsRunning(t,c),setTimeout(async()=>{r.clear(t,c),o.dispatch(qne(t,c));try{const d=n.fulfill(...c);d&&await o.dispatch(d),o.dispatch(Sne(t,c))}catch(d){o.dispatch(Cne(t,c,d))}},0))}const i=(...c)=>(c=o8(e,c),s(c),e(...c));return i.hasResolver=!0,i}function o8(e,t){return e.__unstableNormalizeArgs&&typeof e.__unstableNormalizeArgs=="function"&&t?.length?e.__unstableNormalizeArgs(t):t}const Kqe={name:"core/data",instantiate(e){const t=o=>(r,...s)=>e.select(r)[o](...s),n=o=>(r,...s)=>e.dispatch(r)[o](...s);return{getSelectors(){return Object.fromEntries(["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"].map(o=>[o,t(o)]))},getActions(){return Object.fromEntries(["startResolution","finishResolution","invalidateResolution","invalidateResolutionForStore","invalidateResolutionForStoreSelector"].map(o=>[o,n(o)]))},subscribe(){return()=>()=>{}}}}};function E$(){let e=!1,t=!1;const n=new Set,o=()=>Array.from(n).forEach(r=>r());return{get isPaused(){return e},subscribe(r){return n.add(r),()=>n.delete(r)},pause(){e=!0},resume(){e=!1,t&&(t=!1,o())},emit(){if(e){t=!0;return}o()}}}function vm(e){return typeof e=="string"?e:e.name}function SB(e={},t=null){const n={},o=E$();let r=null;function s(){o.emit()}const i=(A,_)=>{if(!_)return o.subscribe(A);const w=vm(_),k=n[w];return k?k.subscribe(A):t?t.subscribe(A,_):o.subscribe(A)};function c(A){const _=vm(A);r?.add(_);const w=n[_];return w?w.getSelectors():t?.select(_)}function l(A,_){r=new Set;try{return A.call(this)}finally{_.current=Array.from(r),r=null}}function u(A){const _=vm(A);r?.add(_);const w=n[_];return w?w.getResolveSelectors():t&&t.resolveSelect(_)}function d(A){const _=vm(A);r?.add(_);const w=n[_];return w?w.getSuspendSelectors():t&&t.suspendSelect(_)}function p(A){const _=vm(A),w=n[_];return w?w.getActions():t&&t.dispatch(_)}function f(A){return Object.fromEntries(Object.entries(A).map(([_,w])=>typeof w!="function"?[_,w]:[_,function(){return x[_].apply(null,arguments)}]))}function b(A,_){if(n[A])return console.error('Store "'+A+'" is already registered.'),n[A];const w=_();if(typeof w.getSelectors!="function")throw new TypeError("store.getSelectors must be a function");if(typeof w.getActions!="function")throw new TypeError("store.getActions must be a function");if(typeof w.subscribe!="function")throw new TypeError("store.subscribe must be a function");w.emitter=E$();const k=w.subscribe;if(w.subscribe=q=>{const S=w.emitter.subscribe(q),C=k(()=>{if(w.emitter.isPaused){w.emitter.emit();return}q()});return()=>{C?.(),S?.()}},n[A]=w,w.subscribe(s),t)try{Pf(w.store).registerPrivateActions(Pf(t).privateActionsOf(A)),Pf(w.store).registerPrivateSelectors(Pf(t).privateSelectorsOf(A))}catch{}return w}function h(A){b(A.name,()=>A.instantiate(x))}function g(A,_){Re("wp.data.registerGenericStore",{since:"5.9",alternative:"wp.data.register( storeDescriptor )"}),b(A,()=>_)}function z(A,_){if(!_.reducer)throw new TypeError("Must specify store reducer");return b(A,()=>er(A,_).instantiate(x)).store}function y(A){if(o.isPaused){A();return}o.pause(),Object.values(n).forEach(_=>_.emitter.pause());try{A()}finally{o.resume(),Object.values(n).forEach(_=>_.emitter.resume())}}let x={batch:y,stores:n,namespaces:n,subscribe:i,select:c,resolveSelect:u,suspendSelect:d,dispatch:p,use:v,register:h,registerGenericStore:g,registerStore:z,__unstableMarkListeningStores:l};function v(A,_){if(A)return x={...x,...A(x,_)},x}x.register(Kqe);for(const[A,_]of Object.entries(e))x.register(er(A,_));t&&t.subscribe(s);const M=f(x);return nM(M,{privateActionsOf:A=>{try{return Pf(n[A].store).privateActions}catch{return{}}},privateSelectorsOf:A=>{try{return Pf(n[A].store).privateSelectors}catch{return{}}}}),M}const Ga=SB();var Yqe=function(t){return Zqe(t)&&!Qqe(t)};function Zqe(e){return!!e&&typeof e=="object"}function Qqe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||tSe(e)}var Jqe=typeof Symbol=="function"&&Symbol.for,eSe=Jqe?Symbol.for("react.element"):60103;function tSe(e){return e.$$typeof===eSe}function nSe(e){return Array.isArray(e)?[]:{}}function yg(e,t){return t.clone!==!1&&t.isMergeableObject(e)?z2(nSe(e),e,t):e}function oSe(e,t,n){return e.concat(t).map(function(o){return yg(o,n)})}function rSe(e,t){if(!t.customMerge)return z2;var n=t.customMerge(e);return typeof n=="function"?n:z2}function sSe(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function B$(e){return Object.keys(e).concat(sSe(e))}function Rne(e,t){try{return t in e}catch{return!1}}function iSe(e,t){return Rne(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function aSe(e,t,n){var o={};return n.isMergeableObject(e)&&B$(e).forEach(function(r){o[r]=yg(e[r],n)}),B$(t).forEach(function(r){iSe(e,r)||(Rne(e,r)&&n.isMergeableObject(t[r])?o[r]=rSe(r,n)(e[r],t[r],n):o[r]=yg(t[r],n))}),o}function z2(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||oSe,n.isMergeableObject=n.isMergeableObject||Yqe,n.cloneUnlessOtherwiseSpecified=yg;var o=Array.isArray(t),r=Array.isArray(e),s=o===r;return s?o?n.arrayMerge(e,t,n):aSe(e,t,n):yg(t,n)}z2.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(o,r){return z2(o,r,n)},{})};var cSe=z2,lSe=cSe;const Wne=yo(lSe),Tne=O.createContext(Ga),{Consumer:sb0,Provider:Ene}=Tne;function h0(){return O.useContext(Tne)}const Bne=O.createContext(!1),{Consumer:ib0,Provider:uSe}=Bne,Wx=uSe;function dSe(){return O.useContext(Bne)}const P6=One();function pSe(e,t){const n=e.select,o={};let r,s,i=!1,c,l;const u=new Map;function d(f){var b;return(b=e.stores[f]?.store?.getState?.())!==null&&b!==void 0?b:{}}const p=f=>{const b=[...f],h=new Set;function g(y){if(i)for(const _ of b)u.get(_)!==d(_)&&(i=!1);u.clear();const x=()=>{i=!1,y()},v=()=>{c?P6.add(o,x):x()},M=[];function A(_){M.push(e.subscribe(v,_))}for(const _ of b)A(_);return h.add(A),()=>{h.delete(A);for(const _ of M.values())_?.();P6.cancel(o)}}function z(y){for(const x of y)if(!b.includes(x)){b.push(x);for(const v of h)v(x)}}return{subscribe:g,updateStores:z}};return(f,b)=>{function h(){if(i&&f===r)return s;const z={current:null},y=e.__unstableMarkListeningStores(()=>f(n,e),z);if(l)l.updateStores(z.current);else{for(const x of z.current)u.set(x,d(x));l=p(z.current)}Jr(s,y)||(s=y),r=f,i=!0}function g(){return h(),s}return c&&!b&&(i=!1,P6.cancel(o)),h(),c=b,{subscribe:l.subscribe,getValue:g}}}function fSe(e){return h0().select(e)}function bSe(e,t,n){const o=h0(),r=dSe(),s=O.useMemo(()=>pSe(o),[o,e]),i=O.useCallback(t,n),{subscribe:c,getValue:l}=s(i,r),u=O.useSyncExternalStore(c,l,l);return O.useDebugValue(u),u}function D(e,t){const n=typeof e!="function",o=O.useRef(n);if(n!==o.current){const r=o.current?"static":"mapping",s=n?"static":"mapping";throw new Error(`Switching useSelect from ${r} to ${s} is not allowed`)}return n?fSe(e):bSe(!1,e,t)}const Xo=e=>Sn(t=>p6e(n=>{const r=D((s,i)=>e(s,n,i));return a.jsx(t,{...n,...r})}),"withSelect"),ae=e=>{const{dispatch:t}=h0();return e===void 0?t:t(e)},hSe=(e,t)=>{const n=h0(),o=O.useRef(e);return kB(()=>{o.current=e}),O.useMemo(()=>{const r=o.current(n.dispatch,n);return Object.fromEntries(Object.entries(r).map(([s,i])=>(typeof i!="function"&&console.warn(`Property ${s} returned from dispatchMap in useDispatchWithMap must be a function.`),[s,(...c)=>o.current(n.dispatch,n)[s](...c)])))},[n,...t])},Fi=e=>Sn(t=>n=>{const r=hSe((s,i)=>e(s,n,i),[]);return a.jsx(t,{...n,...r})},"withDispatch");function tr(e){return Ga.dispatch(e)}function V0(e){return Ga.select(e)}const zo=_ne,mSe=Ga.resolveSelect;Ga.suspendSelect;const MSe=Ga.subscribe;Ga.registerGenericStore;const gSe=Ga.registerStore;Ga.use;const Qs=Ga.register;var zSe=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var o,r,s;if(Array.isArray(t)){if(o=t.length,o!=n.length)return!1;for(r=o;r--!==0;)if(!e(t[r],n[r]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;for(r of t.entries())if(!e(r[1],n.get(r[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if(o=t.length,o!=n.length)return!1;for(r=o;r--!==0;)if(t[r]!==n[r])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(s=Object.keys(t),o=s.length,o!==Object.keys(n).length)return!1;for(r=o;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,s[r]))return!1;for(r=o;r--!==0;){var i=s[r];if(!e(t[i],n[i]))return!1}return!0}return t!==t&&n!==n};const J1=yo(zSe);function OSe(e,t){if(!e)return t;let n=!1;const o={};for(const r in t)J1(e[r],t[r])?o[r]=e[r]:(n=!0,o[r]=t[r]);if(!n)return e;for(const r in e)o.hasOwnProperty(r)||(o[r]=e[r]);return o}function Tu(e){return typeof e=="string"?e.split(","):Array.isArray(e)?e:null}const Nne=e=>t=>(n,o)=>n===void 0||e(o)?t(n,o):n,CB=e=>(...t)=>async({resolveSelect:n})=>{await n[e](...t)},N$=e=>t=>(n={},o)=>{const r=o[e];if(r===void 0)return n;const s=t(n[r],o);return s===n[r]?n:{...n,[r]:s}},Lne=e=>t=>(n,o)=>t(n,e(o));function ASe(e){const t=new WeakMap;return n=>{let o;return t.has(n)?o=t.get(n):(o=e(n),n!==null&&typeof n=="object"&&t.set(n,o)),o}}function ySe(e,t){return(e.rawAttributes||[]).includes(t)}function Tx(e,t,n){if(!e||typeof e!="object")return e;const o=Array.isArray(t)?t:t.split(".");return o.reduce((r,s,i)=>(r[s]===void 0&&(Number.isInteger(o[i+1])?r[s]=[]:r[s]={}),i===o.length-1&&(r[s]=n),r[s]),e),e}function vSe(e,t,n){if(!e||typeof e!="object"||typeof t!="string"&&!Array.isArray(t))return e;const o=Array.isArray(t)?t:t.split(".");let r=e;return o.forEach(s=>{r=r?.[s]}),r!==void 0?r:n}function xSe(e){return/^\s*\d+\s*$/.test(e)}const WM=["create","read","update","delete"];function RB(e){const t={};if(!e)return t;const n={create:"POST",read:"GET",update:"PUT",delete:"DELETE"};for(const[o,r]of Object.entries(n))t[o]=e.includes(r);return t}function Ex(e,t,n){return(typeof t=="object"?[e,t.kind,t.name,t.id]:[e,t,n]).filter(Boolean).join("/")}function jne(e,t,n){return{type:"RECEIVE_ITEMS",items:Array.isArray(e)?e:[e],persistedEdits:t,meta:n}}function _Se(e,t,n,o=!1){return{type:"REMOVE_ITEMS",itemIds:Array.isArray(n)?n:[n],kind:e,name:t,invalidateCache:o}}function wSe(e,t={},n,o){return{...jne(e,n,o),query:t}}function kSe(e){const t={stableKey:"",page:1,perPage:10,fields:null,include:null,context:"default"},n=Object.keys(e).sort();for(let s=0;s{x=x?.[v]}),Tx(g,y,x)}}else{if(!e.itemIsComplete[c]?.[b])return null;g=h}p.push(g)}return p}const Pne=at((e,t={})=>{let n=L$.get(e);if(n){const r=n.get(t);if(r!==void 0)return r}else n=new ia,L$.set(e,n);const o=qSe(e,t);return n.set(t,o),o});function Ine(e,t={}){var n;const{stableKey:o,context:r}=uh(t);return(n=e.queries?.[r]?.[o]?.meta?.totalItems)!==null&&n!==void 0?n:null}function SSe(e,t={}){var n;const{stableKey:o,context:r}=uh(t);return(n=e.queries?.[r]?.[o]?.meta?.totalPages)!==null&&n!==void 0?n:null}function CSe(e={},t){switch(t.type){case"ADD_FORMAT_TYPES":return{...e,...t.formatTypes.reduce((n,o)=>({...n,[o.name]:o}),{})};case"REMOVE_FORMAT_TYPES":return Object.fromEntries(Object.entries(e).filter(([n])=>!t.names.includes(n)))}return e}const RSe=zo({formatTypes:CSe}),WB=at(e=>Object.values(e.formatTypes),e=>[e.formatTypes]);function WSe(e,t){return e.formatTypes[t]}function TSe(e,t){const n=WB(e);return n.find(({className:o,tagName:r})=>o===null&&t===r)||n.find(({className:o,tagName:r})=>o===null&&r==="*")}function ESe(e,t){return WB(e).find(({className:n})=>n===null?!1:` ${t} `.indexOf(` ${n} `)>=0)}const BSe=Object.freeze(Object.defineProperty({__proto__:null,getFormatType:WSe,getFormatTypeForBareElement:TSe,getFormatTypeForClassName:ESe,getFormatTypes:WB},Symbol.toStringTag,{value:"Module"}));function NSe(e){return{type:"ADD_FORMAT_TYPES",formatTypes:Array.isArray(e)?e:[e]}}function LSe(e){return{type:"REMOVE_FORMAT_TYPES",names:Array.isArray(e)?e:[e]}}const jSe=Object.freeze(Object.defineProperty({__proto__:null,addFormatTypes:NSe,removeFormatTypes:LSe},Symbol.toStringTag,{value:"Module"})),PSe="core/rich-text",xc=er(PSe,{reducer:RSe,selectors:BSe,actions:jSe});Qs(xc);function cv(e,t){if(e===t)return!0;if(!e||!t||e.type!==t.type)return!1;const n=e.attributes,o=t.attributes;if(n===o)return!0;if(!n||!o)return!1;const r=Object.keys(n),s=Object.keys(o);if(r.length!==s.length)return!1;const i=r.length;for(let c=0;c{const r=t[o-1];if(r){const s=n.slice();s.forEach((i,c)=>{const l=r[c];cv(i,l)&&(s[c]=l)}),t[o]=s}}),{...e,formats:t}}function j$(e,t,n){return e=e.slice(),e[t]=n,e}function _i(e,t,n=e.start,o=e.end){const{formats:r,activeFormats:s}=e,i=r.slice();if(n===o){const c=i[n]?.find(({type:l})=>l===t.type);if(c){const l=i[n].indexOf(c);for(;i[n]&&i[n][l]===c;)i[n]=j$(i[n],l,t),n--;for(o++;i[o]&&i[o][l]===c;)i[o]=j$(i[o],l,t),o++}}else{let c=1/0;for(let l=n;ld!==t.type);const u=i[l].length;uc!==t.type)||[],t]})}function _c({implementation:e},t){return _c.body||(_c.body=e.createHTMLDocument("").body),_c.body.innerHTML=t,_c.body}const Ou="",Dne="\uFEFF";function TB(e,t=[]){const{formats:n,start:o,end:r,activeFormats:s}=e;if(o===void 0)return t;if(o===r){if(s)return s;const u=n[o-1]||t,d=n[o]||t;return u.lengthcv(p,f))||c.splice(d,1)}if(c.length===0)return t}return c||t}function Fne(e){return V0(xc).getFormatType(e)}function P$(e,t){if(t)return e;const n={};for(const o in e){let r=o;o.startsWith("data-disable-rich-text-")&&(r=o.slice(23)),n[r]=e[o]}return n}function ZO({type:e,tagName:t,attributes:n,unregisteredAttributes:o,object:r,boundaryClass:s,isEditableTree:i}){const c=Fne(e);let l={};if(s&&i&&(l["data-rich-text-format-boundary"]="true"),!c)return n&&(l={...n,...l}),{type:e,attributes:P$(l,i),object:r};l={...o,...l};for(const u in n){const d=c.attributes?c.attributes[u]:!1;d?l[d]=n[u]:l[u]=n[u]}return c.className&&(l.class?l.class=`${c.className} ${l.class}`:l.class=c.className),i&&c.contentEditable===!1&&(l.contenteditable="false"),{type:t||c.tagName,object:c.object,attributes:P$(l,i)}}function ISe(e,t,n){do if(e[n]!==t[n])return!1;while(n--);return!0}function $ne({value:e,preserveWhiteSpace:t,createEmpty:n,append:o,getLastChild:r,getParent:s,isText:i,getText:c,remove:l,appendText:u,onStartIndex:d,onEndIndex:p,isEditableTree:f,placeholder:b}){const{formats:h,replacements:g,text:z,start:y,end:x}=e,v=h.length+1,M=n(),A=TB(e),_=A[A.length-1];let w,k;o(M,"");for(let q=0;q{if(W&&w&&ISe(T,w,N)){W=r(W);return}const{type:E,tagName:L,attributes:I,unregisteredAttributes:P}=B,H=f&&B===_,U=s(W),X=o(U,ZO({type:E,tagName:L,attributes:I,unregisteredAttributes:P,boundaryClass:H,isEditableTree:f}));i(W)&&c(W).length===0&&l(W),W=o(X,"")}),q===0&&(d&&y===0&&d(M,W),p&&x===0&&p(M,W)),S===Ou){const B=g[q];if(!B)continue;const{type:N,attributes:E,innerHTML:L}=B,I=Fne(N);!f&&N==="script"?(W=o(s(W),ZO({type:"script",isEditableTree:f})),o(W,{html:decodeURIComponent(E["data-rich-text-script"])})):I?.contentEditable===!1?(W=o(s(W),ZO({...B,isEditableTree:f,boundaryClass:y===q&&x===q+1})),L&&o(W,{html:L})):W=o(s(W),ZO({...B,object:!0,isEditableTree:f})),W=o(s(W),"")}else!t&&S===` `?(W=o(s(W),{type:"br",attributes:f?{"data-rich-text-line-break":"true"}:void 0,object:!0}),W=o(s(W),"")):i(W)?u(W,S):W=o(s(W),S);d&&y===q+1&&d(M,W),p&&x===q+1&&p(M,W),C&&q===z.length&&(o(s(W),Dne),b&&z.length===0&&o(s(W),{type:"span",attributes:{"data-rich-text-placeholder":b,style:"pointer-events:none;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;"}})),w=T,k=S}return M}function K1({value:e,preserveWhiteSpace:t}){const n=$ne({value:e,preserveWhiteSpace:t,createEmpty:DSe,append:$Se,getLastChild:FSe,getParent:HSe,isText:USe,getText:XSe,remove:GSe,appendText:VSe});return Vne(n.children)}function DSe(){return{}}function FSe({children:e}){return e&&e[e.length-1]}function $Se(e,t){return typeof t=="string"&&(t={text:t}),t.parent=e,e.children=e.children||[],e.children.push(t),t}function VSe(e,t){e.text+=t}function HSe({parent:e}){return e}function USe({text:e}){return typeof e=="string"}function XSe({text:e}){return e}function GSe(e){const t=e.parent.children.indexOf(e);return t!==-1&&e.parent.children.splice(t,1),e}function KSe({type:e,attributes:t,object:n,children:o}){let r="";for(const s in t)w0e(s)&&(r+=` ${s}="${gx(t[s])}"`);return n?`<${e}${r}>`:`<${e}${r}>${Vne(o)}`}function Vne(e=[]){return e.map(t=>t.html!==void 0?t.html:t.text===void 0?KSe(t):lwe(t.text)).join("")}function cp({text:e}){return e.replace(Ou,"")}function Hd(){return{formats:[],replacements:[],text:""}}function YSe({tagName:e,attributes:t}){let n;if(t&&t.class&&(n=V0(xc).getFormatTypeForClassName(t.class),n&&(t.class=` ${t.class} `.replace(` ${n.className} `," ").trim(),t.class||delete t.class)),n||(n=V0(xc).getFormatTypeForBareElement(e)),!n)return t?{type:e,attributes:t}:{type:e};if(n.__experimentalCreatePrepareEditableTree&&!n.__experimentalCreateOnChangeEditableValue)return null;if(!t)return{formatType:n,type:n.name,tagName:e};const o={},r={},s={...t};for(const i in n.attributes){const c=n.attributes[i];o[i]=s[c],delete s[c],typeof o[i]>"u"&&delete o[i]}for(const i in s)r[i]=t[i];return n.contentEditable===!1&&delete r.contenteditable,{formatType:n,type:n.name,tagName:e,attributes:o,unregisteredAttributes:r}}class un{#e;static empty(){return new un}static fromPlainText(t){return new un(m0({text:t}))}static fromHTMLString(t){return new un(m0({html:t}))}static fromHTMLElement(t,n={}){const{preserveWhiteSpace:o=!1}=n,r=o?t:Hne(t),s=new un(m0({element:r}));return Object.defineProperty(s,"originalHTML",{value:t.innerHTML}),s}constructor(t=Hd()){this.#e=t}toPlainText(){return cp(this.#e)}toHTMLString({preserveWhiteSpace:t}={}){return this.originalHTML||K1({value:this.#e,preserveWhiteSpace:t})}valueOf(){return this.toHTMLString()}toString(){return this.toHTMLString()}toJSON(){return this.toHTMLString()}get length(){return this.text.length}get formats(){return this.#e.formats}get replacements(){return this.#e.replacements}get text(){return this.#e.text}}for(const e of Object.getOwnPropertyNames(String.prototype))un.prototype.hasOwnProperty(e)||Object.defineProperty(un.prototype,e,{value(...t){return this.toHTMLString()[e](...t)}});function m0({element:e,text:t,html:n,range:o,__unstableIsEditableTree:r}={}){return n instanceof un?{text:n.text,formats:n.formats,replacements:n.replacements}:typeof t=="string"&&t.length>0?{formats:Array(t.length),replacements:Array(t.length),text:t}:(typeof n=="string"&&n.length>0&&(e=_c(document,n)),typeof e!="object"?Hd():Une({element:e,range:o,isEditableTree:r}))}function qd(e,t,n,o){if(!n)return;const{parentNode:r}=t,{startContainer:s,startOffset:i,endContainer:c,endOffset:l}=n,u=e.text.length;o.start!==void 0?e.start=u+o.start:t===s&&t.nodeType===t.TEXT_NODE?e.start=u+i:r===s&&t===s.childNodes[i]?e.start=u:r===s&&t===s.childNodes[i-1]?e.start=u+o.text.length:t===s&&(e.start=u),o.end!==void 0?e.end=u+o.end:t===c&&t.nodeType===t.TEXT_NODE?e.end=u+l:r===c&&t===c.childNodes[l-1]?e.end=u+o.text.length:r===c&&t===c.childNodes[l]?e.end=u:t===c&&(e.end=u+l)}function ZSe(e,t,n){if(!t)return;const{startContainer:o,endContainer:r}=t;let{startOffset:s,endOffset:i}=t;return e===o&&(s=n(e.nodeValue.slice(0,s)).length),e===r&&(i=n(e.nodeValue.slice(0,i)).length),{startContainer:o,startOffset:s,endContainer:r,endOffset:i}}function Hne(e,t=!0){const n=e.cloneNode(!0);return n.normalize(),Array.from(n.childNodes).forEach((o,r,s)=>{if(o.nodeType===o.TEXT_NODE){let i=o.nodeValue;/[\n\t\r\f]/.test(i)&&(i=i.replace(/[\n\t\r\f]+/g," ")),i.indexOf(" ")!==-1&&(i=i.replace(/ {2,}/g," ")),r===0&&i.startsWith(" ")?i=i.slice(1):t&&r===s.length-1&&i.endsWith(" ")&&(i=i.slice(0,-1)),o.nodeValue=i}else o.nodeType===o.ELEMENT_NODE&&Hne(o,!1)}),n}const QSe="\r";function I$(e){return e.replace(new RegExp(`[${Dne}${Ou}${QSe}]`,"gu"),"")}function Une({element:e,range:t,isEditableTree:n}){const o=Hd();if(!e)return o;if(!e.hasChildNodes())return qd(o,e,t,Hd()),o;const r=e.childNodes.length;for(let i=0;in===t)}function tCe({start:e,end:t,replacements:n,text:o}){if(!(e+1!==t||o[e]!==Ou))return n[e]}function lf({start:e,end:t}){if(!(e===void 0||t===void 0))return e===t}function r8({text:e}){return e.length===0}function nCe(e,t=""){return typeof t=="string"&&(t=m0({text:t})),dh(e.reduce((n,{formats:o,replacements:r,text:s})=>({formats:n.formats.concat(t.formats,o),replacements:n.replacements.concat(t.replacements,r),text:n.text+t.text+s})))}function Xne(e,t){if(t={name:e,...t},typeof t.name!="string"){window.console.error("Format names must be strings.");return}if(!/^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$/.test(t.name)){window.console.error("Format names must contain a namespace prefix, include only lowercase alphanumeric characters or dashes, and start with a letter. Example: my-plugin/my-custom-format");return}if(V0(xc).getFormatType(t.name)){window.console.error('Format "'+t.name+'" is already registered.');return}if(typeof t.tagName!="string"||t.tagName===""){window.console.error("Format tag names must be a string.");return}if((typeof t.className!="string"||t.className==="")&&t.className!==null){window.console.error("Format class names must be a string, or null to handle bare elements.");return}if(!/^[_a-zA-Z]+[a-zA-Z0-9_-]*$/.test(t.className)){window.console.error("A class name must begin with a letter, followed by any number of hyphens, underscores, letters, or numbers.");return}if(t.className===null){const n=V0(xc).getFormatTypeForBareElement(t.tagName);if(n&&n.name!=="core/unknown"){window.console.error(`Format "${n.name}" is already registered to handle bare tag name "${t.tagName}".`);return}}else{const n=V0(xc).getFormatTypeForClassName(t.className);if(n){window.console.error(`Format "${n.name}" is already registered to handle class name "${t.className}".`);return}}if(!("title"in t)||t.title===""){window.console.error('The format "'+t.name+'" must have a title.');return}if("keywords"in t&&t.keywords.length>3){window.console.error('The format "'+t.name+'" can have a maximum of 3 keywords.');return}if(typeof t.title!="string"){window.console.error("Format titles must be strings.");return}return tr(xc).addFormatTypes(t),t}function ud(e,t,n=e.start,o=e.end){const{formats:r,activeFormats:s}=e,i=r.slice();if(n===o){const c=i[n]?.find(({type:l})=>l===t);if(c){for(;i[n]?.find(l=>l===c);)I6(i,n,t),n--;for(o++;i[o]?.find(l=>l===c);)I6(i,o,t),o++}}else for(let c=n;cc!==t)||[]})}function I6(e,t,n){const o=e[t].filter(({type:r})=>r!==n);o.length?e[t]=o:delete e[t]}function Y1(e,t,n=e.start,o=e.end){const{formats:r,replacements:s,text:i}=e;typeof t=="string"&&(t=m0({text:t}));const c=n+t.text.length;return dh({formats:r.slice(0,n).concat(t.formats,r.slice(o)),replacements:s.slice(0,n).concat(t.replacements,s.slice(o)),text:i.slice(0,n)+t.text+i.slice(o),start:c,end:c})}function Ks(e,t,n){return Y1(e,m0(),t,n)}function oCe({formats:e,replacements:t,text:n,start:o,end:r},s,i){return n=n.replace(s,(c,...l)=>{const u=l[l.length-2];let d=i,p,f;return typeof d=="function"&&(d=i(c,...l)),typeof d=="object"?(p=d.formats,f=d.replacements,d=d.text):(p=Array(d.length),f=Array(d.length),e[u]&&(p=p.fill(e[u]))),e=e.slice(0,u).concat(p,e.slice(u+c.length)),t=t.slice(0,u).concat(f,t.slice(u+c.length)),o&&(o=r=u+d.length),d}),dh({formats:e,replacements:t,text:n,start:o,end:r})}function Gne(e,t,n,o){return Y1(e,{formats:[,],replacements:[t],text:Ou},n,o)}function O2(e,t=e.start,n=e.end){const{formats:o,replacements:r,text:s}=e;return t===void 0||n===void 0?{...e}:{formats:o.slice(t,n),replacements:r.slice(t,n),text:s.slice(t,n)}}function BB({formats:e,replacements:t,text:n,start:o,end:r},s){if(typeof s!="string")return rCe(...arguments);let i=0;return n.split(s).map(c=>{const l=i,u={formats:e.slice(l,l+c.length),replacements:t.slice(l,l+c.length),text:c};return i+=s.length+c.length,o!==void 0&&r!==void 0&&(o>=l&&ol&&(u.start=0),r>=l&&ri&&(u.end=c.length)),u})}function rCe({formats:e,replacements:t,text:n,start:o,end:r},s=o,i=r){if(o===void 0||r===void 0)return;const c={formats:e.slice(0,s),replacements:t.slice(0,s),text:n.slice(0,s)},l={formats:e.slice(i),replacements:t.slice(i),text:n.slice(i),start:0,end:0};return[c,l]}function Kne(e,t){return e===t||e&&t&&e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset}function s8(e,t,n){const o=e.parentNode;let r=0;for(;e=e.previousSibling;)r++;return n=[r,...n],o!==t&&(n=s8(o,t,n)),n}function D$(e,t){for(t=[...t];e&&t.length>1;)e=e.childNodes[t.shift()];return{node:e,offset:t[0]}}function sCe(e,t){if(t.html!==void 0)return e.innerHTML+=t.html;typeof t=="string"&&(t=e.ownerDocument.createTextNode(t));const{type:n,attributes:o}=t;if(n){t=e.ownerDocument.createElement(n);for(const r in o)t.setAttribute(r,o[r])}return e.appendChild(t)}function iCe(e,t){e.appendData(t)}function aCe({lastChild:e}){return e}function cCe({parentNode:e}){return e}function lCe(e){return e.nodeType===e.TEXT_NODE}function uCe({nodeValue:e}){return e}function dCe(e){return e.parentNode.removeChild(e)}function pCe({value:e,prepareEditableTree:t,isEditableTree:n=!0,placeholder:o,doc:r=document}){let s=[],i=[];return t&&(e={...e,formats:t(e)}),{body:$ne({value:e,createEmpty:()=>_c(r,""),append:sCe,getLastChild:aCe,getParent:cCe,isText:lCe,getText:uCe,remove:dCe,appendText:iCe,onStartIndex(u,d){s=s8(d,u,[d.nodeValue.length])},onEndIndex(u,d){i=s8(d,u,[d.nodeValue.length])},isEditableTree:n,placeholder:o}),selection:{startPath:s,endPath:i}}}function fCe({value:e,current:t,prepareEditableTree:n,__unstableDomOnly:o,placeholder:r}){const{body:s,selection:i}=pCe({value:e,prepareEditableTree:n,placeholder:r,doc:t.ownerDocument});Yne(s,t),e.start!==void 0&&!o&&bCe(i,t)}function Yne(e,t){let n=0,o;for(;o=e.firstChild;){const r=t.childNodes[n];if(!r)t.appendChild(o);else if(r.isEqualNode(o))e.removeChild(o);else if(r.nodeName!==o.nodeName||r.nodeType===r.TEXT_NODE&&r.data!==o.data)t.replaceChild(o,r);else{const s=r.attributes,i=o.attributes;if(s){let c=s.length;for(;c--;){const{name:l}=s[c];o.getAttribute(l)||r.removeAttribute(l)}}if(i)for(let c=0;c0){if(Kne(d,u.getRangeAt(0)))return;u.removeAllRanges()}u.addRange(d),p!==c.activeElement&&p instanceof l.HTMLElement&&p.focus()}function hCe(e){if(!(typeof document>"u")){if(document.readyState==="complete"||document.readyState==="interactive")return void e();document.addEventListener("DOMContentLoaded",e)}}function mCe(){const e=document.createElement("p");e.id="a11y-speak-intro-text",e.className="a11y-speak-intro-text",e.textContent=m("Notifications"),e.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),e.setAttribute("hidden","hidden");const{body:t}=document;return t&&t.appendChild(e),e}function F$(e="polite"){const t=document.createElement("div");t.id=`a11y-speak-${e}`,t.className="a11y-speak-region",t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true");const{body:n}=document;return n&&n.appendChild(t),t}function MCe(){const e=document.getElementsByClassName("a11y-speak-region"),t=document.getElementById("a11y-speak-intro-text");for(let n=0;n]+>/g," "),$$===e&&(e+=" "),$$=e,e}function zCe(){const e=document.getElementById("a11y-speak-intro-text"),t=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");e===null&&mCe(),t===null&&F$("assertive"),n===null&&F$("polite")}hCe(zCe);function At(e,t){MCe(),e=gCe(e);const n=document.getElementById("a11y-speak-intro-text"),o=document.getElementById("a11y-speak-assertive"),r=document.getElementById("a11y-speak-polite");o&&t==="assertive"?o.textContent=e:r&&(r.textContent=e),n&&n.removeAttribute("hidden")}function Ba(e,t){return EB(e,t.type)?(t.title&&At(le(m("%s removed."),t.title),"assertive"),ud(e,t.type)):(t.title&&At(le(m("%s applied."),t.title),"assertive"),_i(e,t))}function OCe(e,t,n,o){let r=e.startContainer;if(r.nodeType===r.TEXT_NODE&&e.startOffset===r.length&&r.nextSibling)for(r=r.nextSibling;r.firstChild;)r=r.firstChild;if(r.nodeType!==r.ELEMENT_NODE&&(r=r.parentElement),!r||r===t||!t.contains(r))return;const s=n+(o?"."+o:"");for(;r!==t;){if(r.matches(s))return r;r=r.parentElement}}function ACe(e,t){return{contextElement:t,getBoundingClientRect(){return t.contains(e.startContainer)?e.getBoundingClientRect():t.getBoundingClientRect()}}}function D6(e,t,n){if(!e)return;const{ownerDocument:o}=e,{defaultView:r}=o,s=r.getSelection();if(!s||!s.rangeCount)return;const i=s.getRangeAt(0);if(!i||!i.startContainer)return;const c=OCe(i,e,t,n);return c||ACe(i,e)}function Vz({editableContentElement:e,settings:t={}}){const{tagName:n,className:o,isActive:r}=t,[s,i]=O.useState(()=>D6(e,n,o)),c=t1(r);return O.useLayoutEffect(()=>{if(!e)return;function l(){i(D6(e,n,o))}function u(){p.addEventListener("selectionchange",l)}function d(){p.removeEventListener("selectionchange",l)}const{ownerDocument:p}=e;return(e===p.activeElement||!c&&r||c&&!r)&&(i(D6(e,n,o)),u()),e.addEventListener("focusin",u),e.addEventListener("focusout",d),()=>{d(),e.removeEventListener("focusin",u),e.removeEventListener("focusout",d)}},[e,n,o,r,c]),s}const yCe="pre-wrap",vCe="1px";function xCe(){return O.useCallback(e=>{e&&(e.style.whiteSpace=yCe,e.style.minWidth=vCe)},[])}function _Ce({record:e}){const t=O.useRef(),{activeFormats:n=[],replacements:o,start:r}=e.current,s=o[r];return O.useEffect(()=>{if((!n||!n.length)&&!s)return;const i="*[data-rich-text-format-boundary]",c=t.current.querySelector(i);if(!c)return;const{ownerDocument:l}=c,{defaultView:u}=l,p=u.getComputedStyle(c).color.replace(")",", 0.2)").replace("rgb","rgba"),f=`.rich-text:focus ${i}`,b=`background-color: ${p}`,h=`${f} {${b}}`,g="rich-text-boundary-style";let z=l.getElementById(g);z||(z=l.createElement("style"),z.id=g,l.head.appendChild(z)),z.innerHTML!==h&&(z.innerHTML=h)},[n,s]),t}const wCe=e=>t=>{function n(r){const{record:s,createRecord:i,handleChange:c}=e.current,{ownerDocument:l}=t,{defaultView:u}=l,{anchorNode:d,focusNode:p,isCollapsed:f}=u.getSelection(),b=t.contains(d)&&t.contains(p);if(f||!b)return;const h=O2(s.current),g=cp(h),z=K1({value:h});r.clipboardData.setData("text/plain",g),r.clipboardData.setData("text/html",z),r.clipboardData.setData("rich-text","true"),r.preventDefault(),r.type==="cut"&&c(Ks(i()))}const{defaultView:o}=t.ownerDocument;return o.addEventListener("copy",n),o.addEventListener("cut",n),()=>{o.removeEventListener("copy",n),o.removeEventListener("cut",n)}},kCe=()=>e=>{function t(o){const{target:r}=o;if(r===e||r.textContent&&r.isContentEditable)return;const{ownerDocument:s}=r,{defaultView:i}=s,c=i.getSelection();if(c.containsNode(r))return;const l=s.createRange(),u=r.isContentEditable?r:r.closest("[contenteditable]");l.selectNode(u),c.removeAllRanges(),c.addRange(l),o.preventDefault()}function n(o){o.relatedTarget&&!e.contains(o.relatedTarget)&&o.relatedTarget.tagName==="A"&&t(o)}return e.addEventListener("click",t),e.addEventListener("focusin",n),()=>{e.removeEventListener("click",t),e.removeEventListener("focusin",n)}},V$=[],qCe=e=>t=>{function n(o){const{keyCode:r,shiftKey:s,altKey:i,metaKey:c,ctrlKey:l}=o;if(s||i||c||l||r!==Bs&&r!==Ns)return;const{record:u,applyRecord:d,forceRender:p}=e.current,{text:f,formats:b,start:h,end:g,activeFormats:z=[]}=u.current,y=lf(u.current),{ownerDocument:x}=t,{defaultView:v}=x,{direction:M}=v.getComputedStyle(t),A=M==="rtl"?Ns:Bs,_=o.keyCode===A;if(y&&z.length===0&&(h===0&&_||g===f.length&&!_)||!y)return;const w=b[h-1]||V$,k=b[h]||V$,q=_?w:k,S=z.every((E,L)=>E===q[L]);let C=z.length;if(S?C{t.removeEventListener("keydown",n)}},SCe=e=>t=>{function n(o){const{keyCode:r}=o,{createRecord:s,handleChange:i}=e.current;if(o.defaultPrevented||r!==_a&&r!==Si)return;const c=s(),{start:l,end:u,text:d}=c;l===0&&u!==0&&u===d.length&&(i(Ks(c)),o.preventDefault())}return t.addEventListener("keydown",n),()=>{t.removeEventListener("keydown",n)}};function CCe({value:e,start:t,end:n,formats:o}){const r=Math.min(t,n),s=Math.max(t,n),i=e.formats[r-1]||[],c=e.formats[s]||[];for(e.activeFormats=o.map((l,u)=>{if(i[u]){if(cv(l,i[u]))return i[u]}else if(c[u]&&cv(l,c[u]))return c[u];return l});--n>=t;)e.activeFormats.length>0?e.formats[n]=e.activeFormats:delete e.formats[n];return e}const RCe=new Set(["insertParagraph","insertOrderedList","insertUnorderedList","insertHorizontalRule","insertLink"]),H$=[],Zne="data-rich-text-placeholder";function WCe(e){const t=e.getSelection(),{anchorNode:n,anchorOffset:o}=t;if(n.nodeType!==n.ELEMENT_NODE)return;const r=n.childNodes[o];!r||r.nodeType!==r.ELEMENT_NODE||!r.hasAttribute(Zne)||t.collapseToStart()}const TCe=e=>t=>{const{ownerDocument:n}=t,{defaultView:o}=n;let r=!1;function s(d){if(r)return;let p;d&&(p=d.inputType);const{record:f,applyRecord:b,createRecord:h,handleChange:g}=e.current;if(p&&(p.indexOf("format")===0||RCe.has(p))){b(f.current);return}const z=h(),{start:y,activeFormats:x=[]}=f.current,v=CCe({value:z,start:y,end:z.start,formats:x});g(v)}function i(){const{record:d,applyRecord:p,createRecord:f,onSelectionChange:b}=e.current;if(t.contentEditable!=="true")return;const{anchorNode:h,focusNode:g}=o.getSelection();if(!(t.contains(h)&&t.contains(g)&&n.activeElement.contains(t))||r)return;const{start:y,end:x,text:v}=f(),M=d.current;if(v!==M.text){s();return}if(y===M.start&&x===M.end){M.text.length===0&&y===0&&WCe(o);return}const A={...M,start:y,end:x,activeFormats:M._newActiveFormats,_newActiveFormats:void 0},_=TB(A,H$);A.activeFormats=_,d.current=A,p(A,{domOnly:!0}),b(y,x)}function c(){r=!0,n.removeEventListener("selectionchange",i),t.querySelector(`[${Zne}]`)?.remove()}function l(){r=!1,s({inputType:"insertText"}),n.addEventListener("selectionchange",i)}function u(){const{record:d,isSelected:p,onSelectionChange:f,applyRecord:b}=e.current;t.parentElement.closest('[contenteditable="true"]')||(p?b(d.current,{domOnly:!0}):d.current={...d.current,start:void 0,end:void 0,activeFormats:H$},f(d.current.start,d.current.end),window.queueMicrotask(i),n.addEventListener("selectionchange",i))}return t.addEventListener("input",s),t.addEventListener("compositionstart",c),t.addEventListener("compositionend",l),t.addEventListener("focus",u),()=>{t.removeEventListener("input",s),t.removeEventListener("compositionstart",c),t.removeEventListener("compositionend",l),t.removeEventListener("focus",u),n.removeEventListener("selectionchange",i)}},ECe=()=>e=>{const{ownerDocument:t}=e,{defaultView:n}=t,o=n?.getSelection();let r;function s(){return o.rangeCount?o.getRangeAt(0):null}function i(c){const l=c.type==="keydown"?"keyup":"pointerup";function u(){t.removeEventListener(l,d),t.removeEventListener("selectionchange",u),t.removeEventListener("input",u)}function d(){u(),!Kne(r,s())&&t.dispatchEvent(new Event("selectionchange"))}t.addEventListener(l,d),t.addEventListener("selectionchange",u),t.addEventListener("input",u),r=s()}return e.addEventListener("pointerdown",i),e.addEventListener("keydown",i),()=>{e.removeEventListener("pointerdown",i),e.removeEventListener("keydown",i)}},BCe=[wCe,kCe,qCe,SCe,TCe,ECe];function NCe(e){const t=O.useRef(e);t.current=e;const n=O.useMemo(()=>BCe.map(o=>o(t)),[t]);return Et(o=>{const r=n.map(s=>s(o));return()=>{r.forEach(s=>s())}},[n])}function Qne({value:e="",selectionStart:t,selectionEnd:n,placeholder:o,onSelectionChange:r,preserveWhiteSpace:s,onChange:i,__unstableDisableFormats:c,__unstableIsSelected:l,__unstableDependencies:u=[],__unstableAfterParse:d,__unstableBeforeSerialize:p,__unstableAddInvisibleFormats:f}){const b=h0(),[,h]=O.useReducer(()=>({})),g=O.useRef();function z(){const{ownerDocument:{defaultView:S}}=g.current,C=S.getSelection(),T=C.rangeCount>0?C.getRangeAt(0):null;return m0({element:g.current,range:T,__unstableIsEditableTree:!0})}function y(S,{domOnly:C}={}){fCe({value:S,current:g.current,prepareEditableTree:f,__unstableDomOnly:C,placeholder:o})}const x=O.useRef(e),v=O.useRef();function M(){x.current=e,v.current=e,e instanceof un||(v.current=e?un.fromHTMLString(e,{preserveWhiteSpace:s}):un.empty()),v.current={text:v.current.text,formats:v.current.formats,replacements:v.current.replacements},c&&(v.current.formats=Array(e.length),v.current.replacements=Array(e.length)),d&&(v.current.formats=d(v.current)),v.current.start=t,v.current.end=n}const A=O.useRef(!1);v.current?(t!==v.current.start||n!==v.current.end)&&(A.current=l,v.current={...v.current,start:t,end:n,activeFormats:void 0}):(A.current=l,M());function _(S){if(v.current=S,y(S),c)x.current=S.text;else{const N=p?p(S):S.formats;S={...S,formats:N},typeof e=="string"?x.current=K1({value:S,preserveWhiteSpace:s}):x.current=new un(S)}const{start:C,end:T,formats:W,text:B}=v.current;b.batch(()=>{r(C,T),i(x.current,{__unstableFormats:W,__unstableText:B})}),h()}function w(){M(),y(v.current)}const k=O.useRef(!1);O.useLayoutEffect(()=>{k.current&&e!==x.current&&(w(),h())},[e]),O.useLayoutEffect(()=>{A.current&&(g.current.ownerDocument.activeElement!==g.current&&g.current.focus(),y(v.current),A.current=!1)},[A.current]);const q=Gt([g,xCe(),_Ce({record:v}),NCe({record:v,handleChange:_,applyRecord:y,createRecord:z,isSelected:l,onSelectionChange:r,forceRender:h}),Et(()=>{w(),k.current=!0},[o,...u])]);return{value:v.current,getValue:()=>v.current,onChange:_,ref:q}}let QO;const LCe=new Uint8Array(16);function jCe(){if(!QO&&(QO=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!QO))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return QO(LCe)}const so=[];for(let e=0;e<256;++e)so.push((e+256).toString(16).slice(1));function PCe(e,t=0){return so[e[t+0]]+so[e[t+1]]+so[e[t+2]]+so[e[t+3]]+"-"+so[e[t+4]]+so[e[t+5]]+"-"+so[e[t+6]]+so[e[t+7]]+"-"+so[e[t+8]]+so[e[t+9]]+"-"+so[e[t+10]]+so[e[t+11]]+so[e[t+12]]+so[e[t+13]]+so[e[t+14]]+so[e[t+15]]}const ICe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),U$={randomUUID:ICe};function Xc(e,t,n){if(U$.randomUUID&&!t&&!e)return U$.randomUUID();e=e||{};const o=e.random||(e.rng||jCe)();return o[6]=o[6]&15|64,o[8]=o[8]&63|128,PCe(o)}let F6=null;function DCe(e,t){const n=[...e],o=[];for(;n.length;)o.push(n.splice(0,t));return o}async function FCe(e){F6===null&&(F6=(await ct({path:"/batch/v1",method:"OPTIONS"})).endpoints[0].args.requests.maxItems);const t=[];for(const n of DCe(e,F6)){const o=await ct({path:"/batch/v1",method:"POST",data:{validation:"require-all-validate",requests:n.map(s=>({path:s.path,body:s.data,method:s.method,headers:s.headers}))}});let r;o.failed?r=o.responses.map(s=>({error:s?.body})):r=o.responses.map(s=>{const i={};return s.status>=200&&s.status<300?i.output=s.body:i.error=s.body,i}),t.push(...r)}return t}function $Ce(e=FCe){let t=0,n=[];const o=new VCe;return{add(r){const s=++t;o.add(s);const i=c=>new Promise((l,u)=>{n.push({input:c,resolve:l,reject:u}),o.delete(s)});return typeof r=="function"?Promise.resolve(r(i)).finally(()=>{o.delete(s)}):i(r)},async run(){o.size&&await new Promise(i=>{const c=o.subscribe(()=>{o.size||(c(),i(void 0))})});let r;try{if(r=await e(n.map(({input:i})=>i)),r.length!==n.length)throw new Error("run: Array returned by processor must be same size as input array.")}catch(i){for(const{reject:c}of n)c(i);throw i}let s=!0;return r.forEach((i,c)=>{const l=n[c];if(i?.error)l?.reject(i.error),s=!1;else{var u;l?.resolve((u=i?.output)!==null&&u!==void 0?u:i)}}),n=[],s}}}class VCe{constructor(...t){this.set=new Set(...t),this.subscribers=new Set}get size(){return this.set.size}add(t){return this.set.add(t),this.subscribers.forEach(n=>n()),this}delete(t){const n=this.set.delete(t);return this.subscribers.forEach(o=>o()),n}subscribe(t){return this.subscribers.add(t),()=>{this.subscribers.delete(t)}}}const bo="core",Cr=()=>new Map,i8=e=>{const t=Cr();return e.forEach((n,o)=>{t.set(o,n)}),t},Fo=(e,t,n)=>{let o=e.get(t);return o===void 0&&e.set(t,o=n()),o},HCe=(e,t)=>{const n=[];for(const[o,r]of e)n.push(t(r,o));return n},UCe=(e,t)=>{for(const[n,o]of e)if(t(o,n))return!0;return!1},Eu=()=>new Set,$6=e=>e[e.length-1],XCe=(e,t)=>{for(let n=0;n{this.off(t,o),n(...r)};this.on(t,o)}off(t,n){const o=this._observers.get(t);o!==void 0&&(o.delete(n),o.size===0&&this._observers.delete(t))}emit(t,n){return Gc((this._observers.get(t)||Cr()).values()).forEach(o=>o(...n))}destroy(){this._observers=Cr()}}class Hz{constructor(){this._observers=Cr()}on(t,n){Fo(this._observers,t,Eu).add(n)}once(t,n){const o=(...r)=>{this.off(t,o),n(...r)};this.on(t,o)}off(t,n){const o=this._observers.get(t);o!==void 0&&(o.delete(n),o.size===0&&this._observers.delete(t))}emit(t,n){return Gc((this._observers.get(t)||Cr()).values()).forEach(o=>o(...n))}destroy(){this._observers=Cr()}}const Na=Math.floor,Py=Math.abs,YCe=Math.log10,NB=(e,t)=>ee>t?e:t,Jne=e=>e!==0?e<0:1/e<0,X$=1,G$=2,V6=4,H6=8,vg=32,Wc=64,es=128,Bx=31,a8=63,lp=127,ZCe=2147483647,e1e=Number.MAX_SAFE_INTEGER,QCe=Number.isInteger||(e=>typeof e=="number"&&isFinite(e)&&Na(e)===e),JCe=String.fromCharCode,eRe=e=>e.toLowerCase(),tRe=/^\s*/g,nRe=e=>e.replace(tRe,""),oRe=/([A-Z])/g,K$=(e,t)=>nRe(e.replace(oRe,n=>`${t}${eRe(n)}`)),rRe=e=>{const t=unescape(encodeURIComponent(e)),n=t.length,o=new Uint8Array(n);for(let r=0;rxg.encode(e),c8=xg?sRe:rRe;let TM=typeof TextDecoder>"u"?null:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});TM&&TM.decode(new Uint8Array).length===1&&(TM=null);class Uz{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[]}}const F1=()=>new Uz,iRe=e=>{let t=e.cpos;for(let n=0;n{const t=new Uint8Array(iRe(e));let n=0;for(let o=0;o{const n=e.cbuf.length;n-e.cpos{const n=e.cbuf.length;e.cpos===n&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(n*2),e.cpos=0),e.cbuf[e.cpos++]=t},_g=L1,Wt=(e,t)=>{for(;t>lp;)L1(e,es|lp&t),t=Na(t/128);L1(e,lp&t)},LB=(e,t)=>{const n=Jne(t);for(n&&(t=-t),L1(e,(t>a8?es:0)|(n?Wc:0)|a8&t),t=Na(t/64);t>0;)L1(e,(t>lp?es:0)|lp&t),t=Na(t/128)},l8=new Uint8Array(3e4),cRe=l8.length/3,lRe=(e,t)=>{if(t.length{const n=unescape(encodeURIComponent(t)),o=n.length;Wt(e,o);for(let r=0;r{const n=e.cbuf.length,o=e.cpos,r=NB(n-o,t.length),s=t.length-r;e.cbuf.set(t.subarray(0,r),o),e.cpos+=r,s>0&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(uf(n*2,s)),e.cbuf.set(t.subarray(r)),e.cpos=s)},Qn=(e,t)=>{Wt(e,t.byteLength),Nx(e,t)},jB=(e,t)=>{aRe(e,t);const n=new DataView(e.cbuf.buffer,e.cpos,t);return e.cpos+=t,n},dRe=(e,t)=>jB(e,4).setFloat32(0,t,!1),pRe=(e,t)=>jB(e,8).setFloat64(0,t,!1),fRe=(e,t)=>jB(e,8).setBigInt64(0,t,!1),Y$=new DataView(new ArrayBuffer(4)),bRe=e=>(Y$.setFloat32(0,e),Y$.getFloat32(0)===e),A2=(e,t)=>{switch(typeof t){case"string":L1(e,119),wa(e,t);break;case"number":QCe(t)&&Py(t)<=ZCe?(L1(e,125),LB(e,t)):bRe(t)?(L1(e,124),dRe(e,t)):(L1(e,123),pRe(e,t));break;case"bigint":L1(e,122),fRe(e,t);break;case"object":if(t===null)L1(e,126);else if(GCe(t)){L1(e,117),Wt(e,t.length);for(let n=0;n0&&Wt(this,this.count-1),this.count=1,this.w(this,t),this.s=t)}}const Q$=e=>{e.count>0&&(LB(e.encoder,e.count===1?e.s:-e.s),e.count>1&&Wt(e.encoder,e.count-2))};class Iy{constructor(){this.encoder=new Uz,this.s=0,this.count=0}write(t){this.s===t?this.count++:(Q$(this),this.count=1,this.s=t)}toUint8Array(){return Q$(this),Fn(this.encoder)}}const J$=e=>{if(e.count>0){const t=e.diff*2+(e.count===1?0:1);LB(e.encoder,t),e.count>1&&Wt(e.encoder,e.count-2)}};class U6{constructor(){this.encoder=new Uz,this.s=0,this.count=0,this.diff=0}write(t){this.diff===t-this.s?(this.s=t,this.count++):(J$(this),this.count=1,this.diff=t-this.s,this.s=t)}toUint8Array(){return J$(this),Fn(this.encoder)}}class hRe{constructor(){this.sarr=[],this.s="",this.lensE=new Iy}write(t){this.s+=t,this.s.length>19&&(this.sarr.push(this.s),this.s=""),this.lensE.write(t.length)}toUint8Array(){const t=new Uz;return this.sarr.push(this.s),this.s="",wa(t,this.sarr.join("")),Nx(t,this.lensE.toUint8Array()),Fn(t)}}const Ri=e=>new Error(e),ka=()=>{throw Ri("Method unimplemented")},La=()=>{throw Ri("Unexpected case")},t1e=Ri("Unexpected end of array"),n1e=Ri("Integer out of Range");class Lx{constructor(t){this.arr=t,this.pos=0}}const Ka=e=>new Lx(e),mRe=e=>e.pos!==e.arr.length,MRe=(e,t)=>{const n=new Uint8Array(e.arr.buffer,e.pos+e.arr.byteOffset,t);return e.pos+=t,n},P1=e=>MRe(e,Jt(e)),Sp=e=>e.arr[e.pos++],Jt=e=>{let t=0,n=1;const o=e.arr.length;for(;e.pose1e)throw n1e}throw t1e},PB=e=>{let t=e.arr[e.pos++],n=t&a8,o=64;const r=(t&Wc)>0?-1:1;if(!(t&es))return r*n;const s=e.arr.length;for(;e.pose1e)throw n1e}throw t1e},gRe=e=>{let t=Jt(e);if(t===0)return"";{let n=String.fromCodePoint(Sp(e));if(--t<100)for(;t--;)n+=String.fromCodePoint(Sp(e));else for(;t>0;){const o=t<1e4?t:1e4,r=e.arr.subarray(e.pos,e.pos+o);e.pos+=o,n+=String.fromCodePoint.apply(null,r),t-=o}return decodeURIComponent(escape(n))}},zRe=e=>TM.decode(P1(e)),Tc=TM?zRe:gRe,IB=(e,t)=>{const n=new DataView(e.arr.buffer,e.arr.byteOffset+e.pos,t);return e.pos+=t,n},ORe=e=>IB(e,4).getFloat32(0,!1),ARe=e=>IB(e,8).getFloat64(0,!1),yRe=e=>IB(e,8).getBigInt64(0,!1),vRe=[e=>{},e=>null,PB,ORe,ARe,yRe,e=>!1,e=>!0,Tc,e=>{const t=Jt(e),n={};for(let o=0;o{const t=Jt(e),n=[];for(let o=0;ovRe[127-Sp(e)](e);class eV extends Lx{constructor(t,n){super(t),this.reader=n,this.s=null,this.count=0}read(){return this.count===0&&(this.s=this.reader(this),mRe(this)?this.count=Jt(this)+1:this.count=-1),this.count--,this.s}}class Dy extends Lx{constructor(t){super(t),this.s=0,this.count=0}read(){if(this.count===0){this.s=PB(this);const t=Jne(this.s);this.count=1,t&&(this.s=-this.s,this.count=Jt(this)+2)}return this.count--,this.s}}class X6 extends Lx{constructor(t){super(t),this.s=0,this.count=0,this.diff=0}read(){if(this.count===0){const t=PB(this),n=t&1;this.diff=Na(t/2),this.count=1,n&&(this.count=Jt(this)+2)}return this.s+=this.diff,this.count--,this.s}}class xRe{constructor(t){this.decoder=new Dy(t),this.str=Tc(this.decoder),this.spos=0}read(){const t=this.spos+this.decoder.read(),n=this.str.slice(this.spos,t);return this.spos=t,n}}const _Re=crypto.getRandomValues.bind(crypto),wRe=Math.random,o1e=()=>_Re(new Uint32Array(1))[0],kRe="10000000-1000-4000-8000"+-1e11,r1e=()=>kRe.replace(/[018]/g,e=>(e^o1e()&15>>e/4).toString(16)),Kc=Date.now,v2=e=>new Promise(e);Promise.all.bind(Promise);const qRe=e=>Promise.reject(e),DB=e=>Promise.resolve(e),tV=e=>e===void 0?null:e;class SRe{constructor(){this.map=new Map}setItem(t,n){this.map.set(t,n)}getItem(t){return this.map.get(t)}}let s1e=new SRe,FB=!0;try{typeof localStorage<"u"&&localStorage&&(s1e=localStorage,FB=!1)}catch{}const i1e=s1e,CRe=e=>FB||addEventListener("storage",e),RRe=e=>FB||removeEventListener("storage",e),WRe=Object.assign,a1e=Object.keys,TRe=(e,t)=>{for(const n in e)t(e[n],n)},nV=e=>a1e(e).length,oV=e=>a1e(e).length,ERe=e=>{for(const t in e)return!1;return!0},BRe=(e,t)=>{for(const n in e)if(!t(e[n],n))return!1;return!0},c1e=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),NRe=(e,t)=>e===t||oV(e)===oV(t)&&BRe(e,(n,o)=>(n!==void 0||c1e(t,o))&&t[o]===n),$B=(e,t,n=0)=>{try{for(;n{},jRe=e=>e,PRe=(e,t)=>e===t,EM=(e,t)=>{if(e==null||t==null)return PRe(e,t);if(e.constructor!==t.constructor)return!1;if(e===t)return!0;switch(e.constructor){case ArrayBuffer:e=new Uint8Array(e),t=new Uint8Array(t);case Uint8Array:{if(e.byteLength!==t.byteLength)return!1;for(let n=0;nt.includes(e);var l1e={};const x2=typeof process<"u"&&process.release&&/node|io\.js/.test(process.release.name)&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]",u1e=typeof window<"u"&&typeof document<"u"&&!x2;let Qi;const DRe=()=>{if(Qi===void 0)if(x2){Qi=Cr();const e=process.argv;let t=null;for(let n=0;n{if(e.length!==0){const[t,n]=e.split("=");Qi.set(`--${K$(t,"-")}`,n),Qi.set(`-${K$(t,"-")}`,n)}})):Qi=Cr();return Qi},u8=e=>DRe().has(e),lv=e=>tV(x2?l1e[e.toUpperCase().replaceAll("-","_")]:i1e.getItem(e)),d1e=e=>u8("--"+e)||lv(e)!==null;d1e("production");const FRe=x2&&IRe(l1e.FORCE_COLOR,["true","1","2"]),$Re=FRe||!u8("--no-colors")&&!d1e("no-color")&&(!x2||process.stdout.isTTY)&&(!x2||u8("--color")||lv("COLORTERM")!==null||(lv("TERM")||"").includes("color")),p1e=e=>new Uint8Array(e),VRe=(e,t,n)=>new Uint8Array(e,t,n),HRe=e=>new Uint8Array(e),URe=e=>{let t="";for(let n=0;nBuffer.from(e.buffer,e.byteOffset,e.byteLength).toString("base64"),GRe=e=>{const t=atob(e),n=p1e(t.length);for(let o=0;o{const t=Buffer.from(e,"base64");return VRe(t.buffer,t.byteOffset,t.byteLength)},f1e=u1e?URe:XRe,VB=u1e?GRe:KRe,YRe=e=>{const t=p1e(e.byteLength);return t.set(e),t};class ZRe{constructor(t,n){this.left=t,this.right=n}}const ac=(e,t)=>new ZRe(e,t);typeof DOMParser<"u"&&new DOMParser;const QRe=e=>HCe(e,(t,n)=>`${n}:${t};`).join(""),JRe=JSON.stringify,fl=Symbol,Ls=fl(),Cp=fl(),b1e=fl(),HB=fl(),h1e=fl(),m1e=fl(),M1e=fl(),UB=fl(),jx=fl(),e8e=e=>{e.length===1&&e[0]?.constructor===Function&&(e=e[0]());const t=[],n=[];let o=0;for(;o0&&n.push(t.join(""));o{const n=rV[G6],o=lv("log"),r=o!==null&&(o==="*"||o==="true"||new RegExp(o,"gi").test(t));return G6=(G6+1)%rV.length,t+=": ",r?(...s)=>{s.length===1&&s[0]?.constructor===Function&&(s=s[0]());const i=Kc(),c=i-sV;sV=i,e(n,t,jx,...s.map(l=>{switch(l!=null&&l.constructor===Uint8Array&&(l=Array.from(l)),typeof l){case"string":case"symbol":return l;default:return JRe(l)}}),n," +"+c+"ms")}:LRe},n8e={[Ls]:ac("font-weight","bold"),[Cp]:ac("font-weight","normal"),[b1e]:ac("color","blue"),[h1e]:ac("color","green"),[HB]:ac("color","grey"),[m1e]:ac("color","red"),[M1e]:ac("color","purple"),[UB]:ac("color","orange"),[jx]:ac("color","black")},o8e=e=>{e.length===1&&e[0]?.constructor===Function&&(e=e[0]());const t=[],n=[],o=Cr();let r=[],s=0;for(;s0||l.length>0?(t.push("%c"+i),n.push(l)):t.push(i)}else break}}for(s>0&&(r=n,r.unshift(t.join("")));s{console.log(...r8e(e)),s8e.forEach(t=>t.print(e))},s8e=Eu(),i8e=e=>t8e(g1e,e),z1e=e=>({[Symbol.iterator](){return this},next:e}),a8e=(e,t)=>z1e(()=>{let n;do n=e.next();while(!n.done&&!t(n.value));return n}),K6=(e,t)=>z1e(()=>{const{done:n,value:o}=e.next();return{done:n,value:n?void 0:t(o)}});class XB{constructor(t,n){this.clock=t,this.len=n}}class Xz{constructor(){this.clients=new Map}}const O1e=(e,t,n)=>t.clients.forEach((o,r)=>{const s=e.doc.store.clients.get(r);for(let i=0;i{let n=0,o=e.length-1;for(;n<=o;){const r=Na((n+o)/2),s=e[r],i=s.clock;if(i<=t){if(t{const n=e.clients.get(t.client);return n!==void 0&&c8e(n,t.clock)!==null},GB=e=>{e.clients.forEach(t=>{t.sort((r,s)=>r.clock-s.clock);let n,o;for(n=1,o=1;n=s.clock?r.len=uf(r.len,s.clock+s.len-r.clock):(o{const t=new Xz;for(let n=0;n{if(!t.clients.has(r)){const s=o.slice();for(let i=n+1;i{Fo(e.clients,t,()=>[]).push(new XB(n,o))},u8e=()=>new Xz,d8e=e=>{const t=u8e();return e.clients.forEach((n,o)=>{const r=[];for(let s=0;s0&&t.clients.set(o,r)}),t},ph=(e,t)=>{Wt(e.restEncoder,t.clients.size),Gc(t.clients.entries()).sort((n,o)=>o[0]-n[0]).forEach(([n,o])=>{e.resetDsCurVal(),Wt(e.restEncoder,n);const r=o.length;Wt(e.restEncoder,r);for(let s=0;s{const t=new Xz,n=Jt(e.restDecoder);for(let o=0;o0){const i=Fo(t.clients,r,()=>[]);for(let c=0;c{const o=new Xz,r=Jt(e.restDecoder);for(let s=0;s0){const s=new Rp;return Wt(s.restEncoder,0),ph(s,o),s.toUint8Array()}return null},y1e=o1e;class fh extends KCe{constructor({guid:t=r1e(),collectionid:n=null,gc:o=!0,gcFilter:r=()=>!0,meta:s=null,autoLoad:i=!1,shouldLoad:c=!0}={}){super(),this.gc=o,this.gcFilter=r,this.clientID=y1e(),this.guid=t,this.collectionid=n,this.share=new Map,this.store=new W1e,this._transaction=null,this._transactionCleanups=[],this.subdocs=new Set,this._item=null,this.shouldLoad=c,this.autoLoad=i,this.meta=s,this.isLoaded=!1,this.isSynced=!1,this.isDestroyed=!1,this.whenLoaded=v2(u=>{this.on("load",()=>{this.isLoaded=!0,u(this)})});const l=()=>v2(u=>{const d=p=>{(p===void 0||p===!0)&&(this.off("sync",d),u())};this.on("sync",d)});this.on("sync",u=>{u===!1&&this.isSynced&&(this.whenSynced=l()),this.isSynced=u===void 0||u===!0,this.isSynced&&!this.isLoaded&&this.emit("load",[this])}),this.whenSynced=l()}load(){const t=this._item;t!==null&&!this.shouldLoad&&ln(t.parent.doc,n=>{n.subdocsLoaded.add(this)},null,!0),this.shouldLoad=!0}getSubdocs(){return this.subdocs}getSubdocGuids(){return new Set(Gc(this.subdocs).map(t=>t.guid))}transact(t,n=null){return ln(this,t,n)}get(t,n=ho){const o=Fo(this.share,t,()=>{const s=new n;return s._integrate(this,null),s}),r=o.constructor;if(n!==ho&&r!==n)if(r===ho){const s=new n;s._map=o._map,o._map.forEach(i=>{for(;i!==null;i=i.left)i.parent=s}),s._start=o._start;for(let i=s._start;i!==null;i=i.right)i.parent=s;return s._length=o._length,this.share.set(t,s),s._integrate(this,null),s}else throw new Error(`Type with the name ${t} has already been defined with a different constructor`);return o}getArray(t=""){return this.get(t,Ub)}getText(t=""){return this.get(t,k2)}getMap(t=""){return this.get(t,w2)}getXmlElement(t=""){return this.get(t,q2)}getXmlFragment(t=""){return this.get(t,Wp)}toJSON(){const t={};return this.share.forEach((n,o)=>{t[o]=n.toJSON()}),t}destroy(){this.isDestroyed=!0,Gc(this.subdocs).forEach(n=>n.destroy());const t=this._item;if(t!==null){this._item=null;const n=t.content;n.doc=new fh({guid:this.guid,...n.opts,shouldLoad:!1}),n.doc._item=t,ln(t.parent.doc,o=>{const r=n.doc;t.deleted||o.subdocsAdded.add(r),o.subdocsRemoved.add(this)},null,!0)}this.emit("destroyed",[!0]),this.emit("destroy",[this]),super.destroy()}}class v1e{constructor(t){this.restDecoder=t}resetDsCurVal(){}readDsClock(){return Jt(this.restDecoder)}readDsLen(){return Jt(this.restDecoder)}}class x1e extends v1e{readLeftID(){return M0(Jt(this.restDecoder),Jt(this.restDecoder))}readRightID(){return M0(Jt(this.restDecoder),Jt(this.restDecoder))}readClient(){return Jt(this.restDecoder)}readInfo(){return Sp(this.restDecoder)}readString(){return Tc(this.restDecoder)}readParentInfo(){return Jt(this.restDecoder)===1}readTypeRef(){return Jt(this.restDecoder)}readLen(){return Jt(this.restDecoder)}readAny(){return y2(this.restDecoder)}readBuf(){return YRe(P1(this.restDecoder))}readJSON(){return JSON.parse(Tc(this.restDecoder))}readKey(){return Tc(this.restDecoder)}}class p8e{constructor(t){this.dsCurrVal=0,this.restDecoder=t}resetDsCurVal(){this.dsCurrVal=0}readDsClock(){return this.dsCurrVal+=Jt(this.restDecoder),this.dsCurrVal}readDsLen(){const t=Jt(this.restDecoder)+1;return this.dsCurrVal+=t,t}}class _2 extends p8e{constructor(t){super(t),this.keys=[],Jt(t),this.keyClockDecoder=new X6(P1(t)),this.clientDecoder=new Dy(P1(t)),this.leftClockDecoder=new X6(P1(t)),this.rightClockDecoder=new X6(P1(t)),this.infoDecoder=new eV(P1(t),Sp),this.stringDecoder=new xRe(P1(t)),this.parentInfoDecoder=new eV(P1(t),Sp),this.typeRefDecoder=new Dy(P1(t)),this.lenDecoder=new Dy(P1(t))}readLeftID(){return new Hb(this.clientDecoder.read(),this.leftClockDecoder.read())}readRightID(){return new Hb(this.clientDecoder.read(),this.rightClockDecoder.read())}readClient(){return this.clientDecoder.read()}readInfo(){return this.infoDecoder.read()}readString(){return this.stringDecoder.read()}readParentInfo(){return this.parentInfoDecoder.read()===1}readTypeRef(){return this.typeRefDecoder.read()}readLen(){return this.lenDecoder.read()}readAny(){return y2(this.restDecoder)}readBuf(){return P1(this.restDecoder)}readJSON(){return y2(this.restDecoder)}readKey(){const t=this.keyClockDecoder.read();if(t{o=uf(o,t[0].id.clock);const r=ja(t,o);Wt(e.restEncoder,t.length-r),e.writeClient(n),Wt(e.restEncoder,o);const s=t[r];s.write(e,o-s.id.clock);for(let i=r+1;i{const o=new Map;n.forEach((r,s)=>{H1(t,s)>r&&o.set(s,r)}),Px(t).forEach((r,s)=>{n.has(s)||o.set(s,0)}),Wt(e.restEncoder,o.size),Gc(o.entries()).sort((r,s)=>s[0]-r[0]).forEach(([r,s])=>{f8e(e,t.clients.get(r),r,s)})},b8e=(e,t)=>{const n=Cr(),o=Jt(e.restDecoder);for(let r=0;r{const o=[];let r=Gc(n.keys()).sort((b,h)=>b-h);if(r.length===0)return null;const s=()=>{if(r.length===0)return null;let b=n.get(r[r.length-1]);for(;b.refs.length===b.i;)if(r.pop(),r.length>0)b=n.get(r[r.length-1]);else return null;return b};let i=s();if(i===null)return null;const c=new W1e,l=new Map,u=(b,h)=>{const g=l.get(b);(g==null||g>h)&&l.set(b,h)};let d=i.refs[i.i++];const p=new Map,f=()=>{for(const b of o){const h=b.id.client,g=n.get(h);g?(g.i--,c.clients.set(h,g.refs.slice(g.i)),n.delete(h),g.i=0,g.refs=[]):c.clients.set(h,[b]),r=r.filter(z=>z!==h)}o.length=0};for(;;){if(d.constructor!==Ws){const h=Fo(p,d.id.client,()=>H1(t,d.id.client))-d.id.clock;if(h<0)o.push(d),u(d.id.client,d.id.clock-1),f();else{const g=d.getMissing(e,t);if(g!==null){o.push(d);const z=n.get(g)||{refs:[],i:0};if(z.refs.length===z.i)u(g,H1(t,g)),f();else{d=z.refs[z.i++];continue}}else(h===0||h0)d=o.pop();else if(i!==null&&i.i0){const b=new Rp;return YB(b,c,new Map),Wt(b.restEncoder,0),{missing:l,update:b.toUint8Array()}}return null},m8e=(e,t)=>YB(e,t.doc.store,t.beforeState),M8e=(e,t,n,o=new _2(e))=>ln(t,r=>{r.local=!1;let s=!1;const i=r.doc,c=i.store,l=b8e(o,i),u=h8e(r,c,l),d=c.pendingStructs;if(d){for(const[f,b]of d.missing)if(bb)&&d.missing.set(f,b)}d.update=dv([d.update,u.update])}}else c.pendingStructs=u;const p=iV(o,r,c);if(c.pendingDs){const f=new _2(Ka(c.pendingDs));Jt(f.restDecoder);const b=iV(f,r,c);p&&b?c.pendingDs=dv([p,b]):c.pendingDs=p||b}else c.pendingDs=p;if(s){const f=c.pendingStructs.update;c.pendingStructs=null,k1e(r.doc,f)}},n,!1),k1e=(e,t,n,o=_2)=>{const r=Ka(t);M8e(r,e,n,new o(r))},q1e=(e,t,n)=>k1e(e,t,n,x1e),g8e=(e,t,n=new Map)=>{YB(e,t.store,n),ph(e,d8e(t.store))},z8e=(e,t=new Uint8Array([0]),n=new Rp)=>{const o=S1e(t);g8e(n,e,o);const r=[n.toUint8Array()];if(e.store.pendingDs&&r.push(e.store.pendingDs),e.store.pendingStructs&&r.push(E8e(e.store.pendingStructs.update,t)),r.length>1){if(n.constructor===Gz)return W8e(r.map((s,i)=>i===0?s:N8e(s)));if(n.constructor===Rp)return dv(r)}return r[0]},ZB=(e,t)=>z8e(e,t,new Gz),O8e=e=>{const t=new Map,n=Jt(e.restDecoder);for(let o=0;oO8e(new v1e(Ka(e))),C1e=(e,t)=>(Wt(e.restEncoder,t.size),Gc(t.entries()).sort((n,o)=>o[0]-n[0]).forEach(([n,o])=>{Wt(e.restEncoder,n),Wt(e.restEncoder,o)}),e),A8e=(e,t)=>C1e(e,Px(t.store)),y8e=(e,t=new w1e)=>(e instanceof Map?C1e(t,e):A8e(t,e),t.toUint8Array()),v8e=e=>y8e(e,new _1e);class x8e{constructor(){this.l=[]}}const aV=()=>new x8e,cV=(e,t)=>e.l.push(t),lV=(e,t)=>{const n=e.l,o=n.length;e.l=n.filter(r=>t!==r),o===e.l.length&&console.error("[yjs] Tried to remove event handler that doesn't exist.")},R1e=(e,t,n)=>$B(e.l,[t,n]);class Hb{constructor(t,n){this.client=t,this.clock=n}}const JO=(e,t)=>e===t||e!==null&&t!==null&&e.client===t.client&&e.clock===t.clock,M0=(e,t)=>new Hb(e,t),_8e=e=>{for(const[t,n]of e.doc.share.entries())if(n===e)return t;throw La()},tb=(e,t)=>t===void 0?!e.deleted:t.sv.has(e.id.client)&&(t.sv.get(e.id.client)||0)>e.id.clock&&!A1e(t.ds,e.id),d8=(e,t)=>{const n=Fo(e.meta,d8,Eu),o=e.doc.store;n.has(t)||(t.sv.forEach((r,s)=>{r{}),n.add(t))};class W1e{constructor(){this.clients=new Map,this.pendingStructs=null,this.pendingDs=null}}const Px=e=>{const t=new Map;return e.clients.forEach((n,o)=>{const r=n[n.length-1];t.set(o,r.id.clock+r.length)}),t},H1=(e,t)=>{const n=e.clients.get(t);if(n===void 0)return 0;const o=n[n.length-1];return o.id.clock+o.length},T1e=(e,t)=>{let n=e.clients.get(t.id.client);if(n===void 0)n=[],e.clients.set(t.id.client,n);else{const o=n[n.length-1];if(o.id.clock+o.length!==t.id.clock)throw La()}n.push(t)},ja=(e,t)=>{let n=0,o=e.length-1,r=e[o],s=r.id.clock;if(s===t)return o;let i=Na(t/(s+r.length-1)*o);for(;n<=o;){if(r=e[i],s=r.id.clock,s<=t){if(t{const n=e.clients.get(t.client);return n[ja(n,t.clock)]},Y6=w8e,p8=(e,t,n)=>{const o=ja(t,n),r=t[o];return r.id.clock{const n=e.doc.store.clients.get(t.client);return n[p8(e,n,t.clock)]},uV=(e,t,n)=>{const o=t.clients.get(n.client),r=ja(o,n.clock),s=o[r];return n.clock!==s.id.clock+s.length-1&&s.constructor!==Rs&&o.splice(r+1,0,Mv(e,s,n.clock-s.id.clock+1)),s},k8e=(e,t,n)=>{const o=e.clients.get(t.id.client);o[ja(o,t.id.clock)]=n},E1e=(e,t,n,o,r)=>{if(o===0)return;const s=n+o;let i=p8(e,t,n),c;do c=t[i++],st.deleteSet.clients.size===0&&!UCe(t.afterState,(n,o)=>t.beforeState.get(o)!==n)?!1:(GB(t.deleteSet),m8e(e,t),ph(e,t.deleteSet),!0),pV=(e,t,n)=>{const o=t._item;(o===null||o.id.clock<(e.beforeState.get(o.id.client)||0)&&!o.deleted)&&Fo(e.changed,t,Eu).add(n)},Fy=(e,t)=>{let n=e[t],o=e[t-1],r=t;for(;r>0;n=o,o=e[--r-1]){if(o.deleted===n.deleted&&o.constructor===n.constructor&&o.mergeWith(n)){n instanceof Wo&&n.parentSub!==null&&n.parent._map.get(n.parentSub)===n&&n.parent._map.set(n.parentSub,o);continue}break}const s=t-r;return s&&e.splice(t+1-s,s),s},S8e=(e,t,n)=>{for(const[o,r]of e.clients.entries()){const s=t.clients.get(o);for(let i=r.length-1;i>=0;i--){const c=r[i],l=c.clock+c.len;for(let u=ja(s,c.clock),d=s[u];u{e.clients.forEach((n,o)=>{const r=t.clients.get(o);for(let s=n.length-1;s>=0;s--){const i=n[s],c=NB(r.length-1,1+ja(r,i.clock+i.len-1));for(let l=c,u=r[l];l>0&&u.id.clock>=i.clock;u=r[l])l-=1+Fy(r,l)}})},B1e=(e,t)=>{if(tc.push(()=>{(u._item===null||!u._item.deleted)&&u._callObserver(n,l)})),c.push(()=>{n.changedParentTypes.forEach((l,u)=>{u._dEH.l.length>0&&(u._item===null||!u._item.deleted)&&(l=l.filter(d=>d.target._item===null||!d.target._item.deleted),l.forEach(d=>{d.currentTarget=u,d._path=null}),l.sort((d,p)=>d.path.length-p.path.length),R1e(u._dEH,l,n))})}),c.push(()=>o.emit("afterTransaction",[n,o])),$B(c,[]),n._needFormattingCleanup&&Y8e(n)}finally{o.gc&&S8e(s,r,o.gcFilter),C8e(s,r),n.afterState.forEach((d,p)=>{const f=n.beforeState.get(p)||0;if(f!==d){const b=r.clients.get(p),h=uf(ja(b,f),1);for(let g=b.length-1;g>=h;)g-=1+Fy(b,g)}});for(let d=i.length-1;d>=0;d--){const{client:p,clock:f}=i[d].id,b=r.clients.get(p),h=ja(b,f);h+11||h>0&&Fy(b,h)}if(!n.local&&n.afterState.get(o.clientID)!==n.beforeState.get(o.clientID)&&(g1e(UB,Ls,"[yjs] ",Cp,m1e,"Changed the client-id because another client seems to be using it."),o.clientID=y1e()),o.emit("afterTransactionCleanup",[n,o]),o._observers.has("update")){const d=new Gz;dV(d,n)&&o.emit("update",[d.toUint8Array(),n.origin,o,n])}if(o._observers.has("updateV2")){const d=new Rp;dV(d,n)&&o.emit("updateV2",[d.toUint8Array(),n.origin,o,n])}const{subdocsAdded:c,subdocsLoaded:l,subdocsRemoved:u}=n;(c.size>0||u.size>0||l.size>0)&&(c.forEach(d=>{d.clientID=o.clientID,d.collectionid==null&&(d.collectionid=o.collectionid),o.subdocs.add(d)}),u.forEach(d=>o.subdocs.delete(d)),o.emit("subdocs",[{loaded:l,added:c,removed:u},o,n]),u.forEach(d=>d.destroy())),e.length<=t+1?(o._transactionCleanups=[],o.emit("afterAllTransactions",[o,e])):B1e(e,t+1)}}},ln=(e,t,n=null,o=!0)=>{const r=e._transactionCleanups;let s=!1,i=null;e._transaction===null&&(s=!0,e._transaction=new q8e(e,n,o),r.push(e._transaction),r.length===1&&e.emit("beforeAllTransactions",[e]),e.emit("beforeTransaction",[e._transaction,e]));try{i=t(e._transaction)}finally{if(s){const c=e._transaction===r[0];e._transaction=null,c&&B1e(r,0)}}return i};function*R8e(e){const t=Jt(e.restDecoder);for(let n=0;ndv(e,x1e,Gz),T8e=(e,t)=>{if(e.constructor===Rs){const{client:n,clock:o}=e.id;return new Rs(M0(n,o+t),e.length-t)}else if(e.constructor===Ws){const{client:n,clock:o}=e.id;return new Ws(M0(n,o+t),e.length-t)}else{const n=e,{client:o,clock:r}=n.id;return new Wo(M0(o,r+t),null,M0(o,r+t-1),null,n.rightOrigin,n.parent,n.parentSub,n.content.splice(t))}},dv=(e,t=_2,n=Rp)=>{if(e.length===1)return e[0];const o=e.map(d=>new t(Ka(d)));let r=o.map(d=>new QB(d,!0)),s=null;const i=new n,c=new JB(i);for(;r=r.filter(f=>f.curr!==null),r.sort((f,b)=>{if(f.curr.id.client===b.curr.id.client){const h=f.curr.id.clock-b.curr.id.clock;return h===0?f.curr.constructor===b.curr.constructor?0:f.curr.constructor===Ws?1:-1:h}else return b.curr.id.client-f.curr.id.client}),r.length!==0;){const d=r[0],p=d.curr.id.client;if(s!==null){let f=d.curr,b=!1;for(;f!==null&&f.id.clock+f.length<=s.struct.id.clock+s.struct.length&&f.id.client>=s.struct.id.client;)f=d.next(),b=!0;if(f===null||f.id.client!==p||b&&f.id.clock>s.struct.id.clock+s.struct.length)continue;if(p!==s.struct.id.client)Gl(c,s.struct,s.offset),s={struct:f,offset:0},d.next();else if(s.struct.id.clock+s.struct.length0&&(s.struct.constructor===Ws?s.struct.length-=h:f=T8e(f,h)),s.struct.mergeWith(f)||(Gl(c,s.struct,s.offset),s={struct:f,offset:0},d.next())}}else s={struct:d.curr,offset:0},d.next();for(let f=d.curr;f!==null&&f.id.client===p&&f.id.clock===s.struct.id.clock+s.struct.length&&f.constructor!==Ws;f=d.next())Gl(c,s.struct,s.offset),s={struct:f,offset:0}}s!==null&&(Gl(c,s.struct,s.offset),s=null),eN(c);const l=o.map(d=>KB(d)),u=l8e(l);return ph(i,u),i.toUint8Array()},E8e=(e,t,n=_2,o=Rp)=>{const r=S1e(t),s=new o,i=new JB(s),c=new n(Ka(e)),l=new QB(c,!1);for(;l.curr;){const d=l.curr,p=d.id.client,f=r.get(p)||0;if(l.curr.constructor===Ws){l.next();continue}if(d.id.clock+d.length>f)for(Gl(i,d,uf(f-d.id.clock,0)),l.next();l.curr&&l.curr.id.client===p;)Gl(i,l.curr,0),l.next();else for(;l.curr&&l.curr.id.client===p&&l.curr.id.clock+l.curr.length<=f;)l.next()}eN(i);const u=KB(c);return ph(s,u),s.toUint8Array()},N1e=e=>{e.written>0&&(e.clientStructs.push({written:e.written,restEncoder:Fn(e.encoder.restEncoder)}),e.encoder.restEncoder=F1(),e.written=0)},Gl=(e,t,n)=>{e.written>0&&e.currClient!==t.id.client&&N1e(e),e.written===0&&(e.currClient=t.id.client,e.encoder.writeClient(t.id.client),Wt(e.encoder.restEncoder,t.id.clock+n)),t.write(e.encoder,n),e.written++},eN=e=>{N1e(e);const t=e.encoder.restEncoder;Wt(t,e.clientStructs.length);for(let n=0;n{const r=new n(Ka(e)),s=new QB(r,!1),i=new o,c=new JB(i);for(let u=s.curr;u!==null;u=s.next())Gl(c,t(u),0);eN(c);const l=KB(r);return ph(i,l),i.toUint8Array()},N8e=e=>B8e(e,jRe,_2,Gz),fV="You must not compute changes after the event-handler fired.";class Ix{constructor(t,n){this.target=t,this.currentTarget=t,this.transaction=n,this._changes=null,this._keys=null,this._delta=null,this._path=null}get path(){return this._path||(this._path=L8e(this.currentTarget,this.target))}deletes(t){return A1e(this.transaction.deleteSet,t.id)}get keys(){if(this._keys===null){if(this.transaction.doc._transactionCleanups.length===0)throw Ri(fV);const t=new Map,n=this.target;this.transaction.changed.get(n).forEach(r=>{if(r!==null){const s=n._map.get(r);let i,c;if(this.adds(s)){let l=s.left;for(;l!==null&&this.adds(l);)l=l.left;if(this.deletes(s))if(l!==null&&this.deletes(l))i="delete",c=$6(l.content.getContent());else return;else l!==null&&this.deletes(l)?(i="update",c=$6(l.content.getContent())):(i="add",c=void 0)}else if(this.deletes(s))i="delete",c=$6(s.content.getContent());else return;t.set(r,{action:i,oldValue:c})}}),this._keys=t}return this._keys}get delta(){return this.changes.delta}adds(t){return t.id.clock>=(this.transaction.beforeState.get(t.id.client)||0)}get changes(){let t=this._changes;if(t===null){if(this.transaction.doc._transactionCleanups.length===0)throw Ri(fV);const n=this.target,o=Eu(),r=Eu(),s=[];if(t={added:o,deleted:r,delta:s,keys:this.keys},this.transaction.changed.get(n).has(null)){let c=null;const l=()=>{c&&s.push(c)};for(let u=n._start;u!==null;u=u.right)u.deleted?this.deletes(u)&&!this.adds(u)&&((c===null||c.delete===void 0)&&(l(),c={delete:0}),c.delete+=u.length,r.add(u)):this.adds(u)?((c===null||c.insert===void 0)&&(l(),c={insert:[]}),c.insert=c.insert.concat(u.content.getContent()),o.add(u)):((c===null||c.retain===void 0)&&(l(),c={retain:0}),c.retain+=u.length);c!==null&&c.retain===void 0&&l()}this._changes=t}return t}}const L8e=(e,t)=>{const n=[];for(;t._item!==null&&t!==e;){if(t._item.parentSub!==null)n.unshift(t._item.parentSub);else{let o=0,r=t._item.parent._start;for(;r!==t._item&&r!==null;)!r.deleted&&r.countable&&(o+=r.length),r=r.right;n.unshift(o)}t=t._item.parent}return n},L1e=80;let tN=0;class j8e{constructor(t,n){t.marker=!0,this.p=t,this.index=n,this.timestamp=tN++}}const P8e=e=>{e.timestamp=tN++},j1e=(e,t,n)=>{e.p.marker=!1,e.p=t,t.marker=!0,e.index=n,e.timestamp=tN++},I8e=(e,t,n)=>{if(e.length>=L1e){const o=e.reduce((r,s)=>r.timestamp{if(e._start===null||t===0||e._searchMarker===null)return null;const n=e._searchMarker.length===0?null:e._searchMarker.reduce((s,i)=>Py(t-s.index)t;)o=o.left,!o.deleted&&o.countable&&(r-=o.length);for(;o.left!==null&&o.left.id.client===o.id.client&&o.left.id.clock+o.left.length===o.id.clock;)o=o.left,!o.deleted&&o.countable&&(r-=o.length);return n!==null&&Py(n.index-r){for(let o=e.length-1;o>=0;o--){const r=e[o];if(n>0){let s=r.p;for(s.marker=!1;s&&(s.deleted||!s.countable);)s=s.left,s&&!s.deleted&&s.countable&&(r.index-=s.length);if(s===null||s.marker===!0){e.splice(o,1);continue}r.p=s,s.marker=!0}(t0&&t===r.index)&&(r.index=uf(t,r.index+n))}},Fx=(e,t,n)=>{const o=e,r=t.changedParentTypes;for(;Fo(r,e,()=>[]).push(n),e._item!==null;)e=e._item.parent;R1e(o._eH,n,t)};class ho{constructor(){this._item=null,this._map=new Map,this._start=null,this.doc=null,this._length=0,this._eH=aV(),this._dEH=aV(),this._searchMarker=null}get parent(){return this._item?this._item.parent:null}_integrate(t,n){this.doc=t,this._item=n}_copy(){throw ka()}clone(){throw ka()}_write(t){}get _first(){let t=this._start;for(;t!==null&&t.deleted;)t=t.right;return t}_callObserver(t,n){!t.local&&this._searchMarker&&(this._searchMarker.length=0)}observe(t){cV(this._eH,t)}observeDeep(t){cV(this._dEH,t)}unobserve(t){lV(this._eH,t)}unobserveDeep(t){lV(this._dEH,t)}toJSON(){}}const P1e=(e,t,n)=>{t<0&&(t=e._length+t),n<0&&(n=e._length+n);let o=n-t;const r=[];let s=e._start;for(;s!==null&&o>0;){if(s.countable&&!s.deleted){const i=s.content.getContent();if(i.length<=t)t-=i.length;else{for(let c=t;c0;c++)r.push(i[c]),o--;t=0}}s=s.right}return r},I1e=e=>{const t=[];let n=e._start;for(;n!==null;){if(n.countable&&!n.deleted){const o=n.content.getContent();for(let r=0;r{let n=0,o=e._start;for(;o!==null;){if(o.countable&&!o.deleted){const r=o.content.getContent();for(let s=0;s{const n=[];return kg(e,(o,r)=>{n.push(t(o,r,e))}),n},D8e=e=>{let t=e._start,n=null,o=0;return{[Symbol.iterator](){return this},next:()=>{if(n===null){for(;t!==null&&t.deleted;)t=t.right;if(t===null)return{done:!0,value:void 0};n=t.content.getContent(),o=0,t=t.right}const r=n[o++];return n.length<=o&&(n=null),{done:!1,value:r}}}},F1e=(e,t)=>{const n=Dx(e,t);let o=e._start;for(n!==null&&(o=n.p,t-=n.index);o!==null;o=o.right)if(!o.deleted&&o.countable){if(t{let r=n;const s=e.doc,i=s.clientID,c=s.store,l=n===null?t._start:n.right;let u=[];const d=()=>{u.length>0&&(r=new Wo(M0(i,H1(c,i)),r,r&&r.lastId,l,l&&l.id,t,null,new Tp(u)),r.integrate(e,0),u=[])};o.forEach(p=>{if(p===null)u.push(p);else switch(p.constructor){case Number:case Object:case Boolean:case Array:case String:u.push(p);break;default:switch(d(),p.constructor){case Uint8Array:case ArrayBuffer:r=new Wo(M0(i,H1(c,i)),r,r&&r.lastId,l,l&&l.id,t,null,new Kz(new Uint8Array(p))),r.integrate(e,0);break;case fh:r=new Wo(M0(i,H1(c,i)),r,r&&r.lastId,l,l&&l.id,t,null,new Yz(p)),r.integrate(e,0);break;default:if(p instanceof ho)r=new Wo(M0(i,H1(c,i)),r,r&&r.lastId,l,l&&l.id,t,null,new bl(p)),r.integrate(e,0);else throw new Error("Unexpected content type in insert operation")}}}),d()},$1e=()=>Ri("Length exceeded!"),V1e=(e,t,n,o)=>{if(n>t._length)throw $1e();if(n===0)return t._searchMarker&&wg(t._searchMarker,n,o.length),pv(e,t,null,o);const r=n,s=Dx(t,n);let i=t._start;for(s!==null&&(i=s.p,n-=s.index,n===0&&(i=i.prev,n+=i&&i.countable&&!i.deleted?i.length:0));i!==null;i=i.right)if(!i.deleted&&i.countable){if(n<=i.length){n{let r=(t._searchMarker||[]).reduce((s,i)=>i.index>s.index?i:s,{index:0,p:t._start}).p;if(r)for(;r.right;)r=r.right;return pv(e,t,r,n)},H1e=(e,t,n,o)=>{if(o===0)return;const r=n,s=o,i=Dx(t,n);let c=t._start;for(i!==null&&(c=i.p,n-=i.index);c!==null&&n>0;c=c.right)!c.deleted&&c.countable&&(n0&&c!==null;)c.deleted||(o0)throw $1e();t._searchMarker&&wg(t._searchMarker,r,-s+o)},fv=(e,t,n)=>{const o=t._map.get(n);o!==void 0&&o.delete(e)},nN=(e,t,n,o)=>{const r=t._map.get(n)||null,s=e.doc,i=s.clientID;let c;if(o==null)c=new Tp([o]);else switch(o.constructor){case Number:case Object:case Boolean:case Array:case String:c=new Tp([o]);break;case Uint8Array:c=new Kz(o);break;case fh:c=new Yz(o);break;default:if(o instanceof ho)c=new bl(o);else throw new Error("Unexpected content type")}new Wo(M0(i,H1(s.store,i)),r,r&&r.lastId,null,null,t,n,c).integrate(e,0)},oN=(e,t)=>{const n=e._map.get(t);return n!==void 0&&!n.deleted?n.content.getContent()[n.length-1]:void 0},U1e=e=>{const t={};return e._map.forEach((n,o)=>{n.deleted||(t[o]=n.content.getContent()[n.length-1])}),t},X1e=(e,t)=>{const n=e._map.get(t);return n!==void 0&&!n.deleted},$8e=(e,t)=>{const n={};return e._map.forEach((o,r)=>{let s=o;for(;s!==null&&(!t.sv.has(s.id.client)||s.id.clock>=(t.sv.get(s.id.client)||0));)s=s.left;s!==null&&tb(s,t)&&(n[r]=s.content.getContent()[s.length-1])}),n},eA=e=>a8e(e.entries(),t=>!t[1].deleted);class V8e extends Ix{}class Ub extends ho{constructor(){super(),this._prelimContent=[],this._searchMarker=[]}static from(t){const n=new Ub;return n.push(t),n}_integrate(t,n){super._integrate(t,n),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new Ub}clone(){const t=new Ub;return t.insert(0,this.toArray().map(n=>n instanceof ho?n.clone():n)),t}get length(){return this._prelimContent===null?this._length:this._prelimContent.length}_callObserver(t,n){super._callObserver(t,n),Fx(this,t,new V8e(this,t))}insert(t,n){this.doc!==null?ln(this.doc,o=>{V1e(o,this,t,n)}):this._prelimContent.splice(t,0,...n)}push(t){this.doc!==null?ln(this.doc,n=>{F8e(n,this,t)}):this._prelimContent.push(...t)}unshift(t){this.insert(0,t)}delete(t,n=1){this.doc!==null?ln(this.doc,o=>{H1e(o,this,t,n)}):this._prelimContent.splice(t,n)}get(t){return F1e(this,t)}toArray(){return I1e(this)}slice(t=0,n=this.length){return P1e(this,t,n)}toJSON(){return this.map(t=>t instanceof ho?t.toJSON():t)}map(t){return D1e(this,t)}forEach(t){kg(this,t)}[Symbol.iterator](){return D8e(this)}_write(t){t.writeTypeRef(bWe)}}const H8e=e=>new Ub;class U8e extends Ix{constructor(t,n,o){super(t,n),this.keysChanged=o}}class w2 extends ho{constructor(t){super(),this._prelimContent=null,t===void 0?this._prelimContent=new Map:this._prelimContent=new Map(t)}_integrate(t,n){super._integrate(t,n),this._prelimContent.forEach((o,r)=>{this.set(r,o)}),this._prelimContent=null}_copy(){return new w2}clone(){const t=new w2;return this.forEach((n,o)=>{t.set(o,n instanceof ho?n.clone():n)}),t}_callObserver(t,n){Fx(this,t,new U8e(this,t,n))}toJSON(){const t={};return this._map.forEach((n,o)=>{if(!n.deleted){const r=n.content.getContent()[n.length-1];t[o]=r instanceof ho?r.toJSON():r}}),t}get size(){return[...eA(this._map)].length}keys(){return K6(eA(this._map),t=>t[0])}values(){return K6(eA(this._map),t=>t[1].content.getContent()[t[1].length-1])}entries(){return K6(eA(this._map),t=>[t[0],t[1].content.getContent()[t[1].length-1]])}forEach(t){this._map.forEach((n,o)=>{n.deleted||t(n.content.getContent()[n.length-1],o,this)})}[Symbol.iterator](){return this.entries()}delete(t){this.doc!==null?ln(this.doc,n=>{fv(n,this,t)}):this._prelimContent.delete(t)}set(t,n){return this.doc!==null?ln(this.doc,o=>{nN(o,this,t,n)}):this._prelimContent.set(t,n),n}get(t){return oN(this,t)}has(t){return X1e(this,t)}clear(){this.doc!==null?ln(this.doc,t=>{this.forEach(function(n,o,r){fv(t,r,o)})}):this._prelimContent.clear()}_write(t){t.writeTypeRef(hWe)}}const X8e=e=>new w2,tu=(e,t)=>e===t||typeof e=="object"&&typeof t=="object"&&e&&t&&NRe(e,t);class f8{constructor(t,n,o,r){this.left=t,this.right=n,this.index=o,this.currentAttributes=r}forward(){switch(this.right===null&&La(),this.right.content.constructor){case R1:this.right.deleted||bh(this.currentAttributes,this.right.content);break;default:this.right.deleted||(this.index+=this.right.length);break}this.left=this.right,this.right=this.right.right}}const bV=(e,t,n)=>{for(;t.right!==null&&n>0;){switch(t.right.content.constructor){case R1:t.right.deleted||bh(t.currentAttributes,t.right.content);break;default:t.right.deleted||(n{const r=new Map,s=o?Dx(t,n):null;if(s){const i=new f8(s.p.left,s.p,s.index,r);return bV(e,i,n-s.index)}else{const i=new f8(null,t._start,0,r);return bV(e,i,n)}},G1e=(e,t,n,o)=>{for(;n.right!==null&&(n.right.deleted===!0||n.right.content.constructor===R1&&tu(o.get(n.right.content.key),n.right.content.value));)n.right.deleted||o.delete(n.right.content.key),n.forward();const r=e.doc,s=r.clientID;o.forEach((i,c)=>{const l=n.left,u=n.right,d=new Wo(M0(s,H1(r.store,s)),l,l&&l.lastId,u,u&&u.id,t,null,new R1(c,i));d.integrate(e,0),n.right=d,n.forward()})},bh=(e,t)=>{const{key:n,value:o}=t;o===null?e.delete(n):e.set(n,o)},K1e=(e,t)=>{for(;e.right!==null;){if(!(e.right.deleted||e.right.content.constructor===R1&&tu(t[e.right.content.key]??null,e.right.content.value)))break;e.forward()}},Y1e=(e,t,n,o)=>{const r=e.doc,s=r.clientID,i=new Map;for(const c in o){const l=o[c],u=n.currentAttributes.get(c)??null;if(!tu(u,l)){i.set(c,u);const{left:d,right:p}=n;n.right=new Wo(M0(s,H1(r.store,s)),d,d&&d.lastId,p,p&&p.id,t,null,new R1(c,l)),n.right.integrate(e,0),n.forward()}}return i},Z6=(e,t,n,o,r)=>{n.currentAttributes.forEach((f,b)=>{r[b]===void 0&&(r[b]=null)});const s=e.doc,i=s.clientID;K1e(n,r);const c=Y1e(e,t,n,r),l=o.constructor===String?new Pa(o):o instanceof ho?new bl(o):new df(o);let{left:u,right:d,index:p}=n;t._searchMarker&&wg(t._searchMarker,n.index,l.getLength()),d=new Wo(M0(i,H1(s.store,i)),u,u&&u.lastId,d,d&&d.id,t,null,l),d.integrate(e,0),n.right=d,n.index=p,n.forward(),G1e(e,t,n,c)},hV=(e,t,n,o,r)=>{const s=e.doc,i=s.clientID;K1e(n,r);const c=Y1e(e,t,n,r);e:for(;n.right!==null&&(o>0||c.size>0&&(n.right.deleted||n.right.content.constructor===R1));){if(!n.right.deleted)switch(n.right.content.constructor){case R1:{const{key:l,value:u}=n.right.content,d=r[l];if(d!==void 0){if(tu(d,u))c.delete(l);else{if(o===0)break e;c.set(l,u)}n.right.delete(e)}else n.currentAttributes.set(l,u);break}default:o0){let l="";for(;o>0;o--)l+=` -`;n.right=new Wo(M0(i,H1(s.store,i)),n.left,n.left&&n.left.lastId,n.right,n.right&&n.right.id,t,null,new Pa(l)),n.right.integrate(e,0),n.forward()}G1e(e,t,n,c)},Z1e=(e,t,n,o,r)=>{let s=t;const i=Cr();for(;s&&(!s.countable||s.deleted);){if(!s.deleted&&s.content.constructor===R1){const u=s.content;i.set(u.key,u)}s=s.right}let c=0,l=!1;for(;t!==s;){if(n===t&&(l=!0),!t.deleted){const u=t.content;switch(u.constructor){case R1:{const{key:d,value:p}=u,f=o.get(d)??null;(i.get(d)!==u||f===p)&&(t.delete(e),c++,!l&&(r.get(d)??null)===p&&f!==p&&(f===null?r.delete(d):r.set(d,f))),!l&&!t.deleted&&bh(r,u);break}}}t=t.right}return c},G8e=(e,t)=>{for(;t&&t.right&&(t.right.deleted||!t.right.countable);)t=t.right;const n=new Set;for(;t&&(t.deleted||!t.countable);){if(!t.deleted&&t.content.constructor===R1){const o=t.content.key;n.has(o)?t.delete(e):n.add(o)}t=t.left}},K8e=e=>{let t=0;return ln(e.doc,n=>{let o=e._start,r=e._start,s=Cr();const i=i8(s);for(;r;){if(r.deleted===!1)switch(r.content.constructor){case R1:bh(i,r.content);break;default:t+=Z1e(n,o,r,s,i),s=i8(i),o=r;break}r=r.right}}),t},Y8e=e=>{const t=new Set,n=e.doc;for(const[o,r]of e.afterState.entries()){const s=e.beforeState.get(o)||0;r!==s&&E1e(e,n.store.clients.get(o),s,r,i=>{!i.deleted&&i.content.constructor===R1&&i.constructor!==Rs&&t.add(i.parent)})}ln(n,o=>{O1e(e,e.deleteSet,r=>{if(r instanceof Rs||!r.parent._hasFormatting||t.has(r.parent))return;const s=r.parent;r.content.constructor===R1?t.add(s):G8e(o,r)});for(const r of t)K8e(r)})},mV=(e,t,n)=>{const o=n,r=i8(t.currentAttributes),s=t.right;for(;n>0&&t.right!==null;){if(t.right.deleted===!1)switch(t.right.content.constructor){case bl:case df:case Pa:n{r===null?this.childListChanged=!0:this.keysChanged.add(r)})}get changes(){if(this._changes===null){const t={keys:this.keys,delta:this.delta,added:new Set,deleted:new Set};this._changes=t}return this._changes}get delta(){if(this._delta===null){const t=this.target.doc,n=[];ln(t,o=>{const r=new Map,s=new Map;let i=this.target._start,c=null;const l={};let u="",d=0,p=0;const f=()=>{if(c!==null){let b=null;switch(c){case"delete":p>0&&(b={delete:p}),p=0;break;case"insert":(typeof u=="object"||u.length>0)&&(b={insert:u},r.size>0&&(b.attributes={},r.forEach((h,g)=>{h!==null&&(b.attributes[g]=h)}))),u="";break;case"retain":d>0&&(b={retain:d},ERe(l)||(b.attributes=WRe({},l))),d=0;break}b&&n.push(b),c=null}};for(;i!==null;){switch(i.content.constructor){case bl:case df:this.adds(i)?this.deletes(i)||(f(),c="insert",u=i.content.getContent()[0],f()):this.deletes(i)?(c!=="delete"&&(f(),c="delete"),p+=1):i.deleted||(c!=="retain"&&(f(),c="retain"),d+=1);break;case Pa:this.adds(i)?this.deletes(i)||(c!=="insert"&&(f(),c="insert"),u+=i.content.str):this.deletes(i)?(c!=="delete"&&(f(),c="delete"),p+=i.length):i.deleted||(c!=="retain"&&(f(),c="retain"),d+=i.length);break;case R1:{const{key:b,value:h}=i.content;if(this.adds(i)){if(!this.deletes(i)){const g=r.get(b)??null;tu(g,h)?h!==null&&i.delete(o):(c==="retain"&&f(),tu(h,s.get(b)??null)?delete l[b]:l[b]=h)}}else if(this.deletes(i)){s.set(b,h);const g=r.get(b)??null;tu(g,h)||(c==="retain"&&f(),l[b]=g)}else if(!i.deleted){s.set(b,h);const g=l[b];g!==void 0&&(tu(g,h)?g!==null&&i.delete(o):(c==="retain"&&f(),h===null?delete l[b]:l[b]=h))}i.deleted||(c==="insert"&&f(),bh(r,i.content));break}}i=i.right}for(f();n.length>0;){const b=n[n.length-1];if(b.retain!==void 0&&b.attributes===void 0)n.pop();else break}}),this._delta=n}return this._delta}}class k2 extends ho{constructor(t){super(),this._pending=t!==void 0?[()=>this.insert(0,t)]:[],this._searchMarker=[],this._hasFormatting=!1}get length(){return this._length}_integrate(t,n){super._integrate(t,n);try{this._pending.forEach(o=>o())}catch(o){console.error(o)}this._pending=null}_copy(){return new k2}clone(){const t=new k2;return t.applyDelta(this.toDelta()),t}_callObserver(t,n){super._callObserver(t,n);const o=new Z8e(this,t,n);Fx(this,t,o),!t.local&&this._hasFormatting&&(t._needFormattingCleanup=!0)}toString(){let t="",n=this._start;for(;n!==null;)!n.deleted&&n.countable&&n.content.constructor===Pa&&(t+=n.content.str),n=n.right;return t}toJSON(){return this.toString()}applyDelta(t,{sanitize:n=!0}={}){this.doc!==null?ln(this.doc,o=>{const r=new f8(null,this._start,0,new Map);for(let s=0;s0)&&Z6(o,this,r,c,i.attributes||{})}else i.retain!==void 0?hV(o,this,r,i.retain,i.attributes||{}):i.delete!==void 0&&mV(o,r,i.delete)}}):this._pending.push(()=>this.applyDelta(t))}toDelta(t,n,o){const r=[],s=new Map,i=this.doc;let c="",l=this._start;function u(){if(c.length>0){const p={};let f=!1;s.forEach((h,g)=>{f=!0,p[g]=h});const b={insert:c};f&&(b.attributes=p),r.push(b),c=""}}const d=()=>{for(;l!==null;){if(tb(l,t)||n!==void 0&&tb(l,n))switch(l.content.constructor){case Pa:{const p=s.get("ychange");t!==void 0&&!tb(l,t)?(p===void 0||p.user!==l.id.client||p.type!=="removed")&&(u(),s.set("ychange",o?o("removed",l.id):{type:"removed"})):n!==void 0&&!tb(l,n)?(p===void 0||p.user!==l.id.client||p.type!=="added")&&(u(),s.set("ychange",o?o("added",l.id):{type:"added"})):p!==void 0&&(u(),s.delete("ychange")),c+=l.content.str;break}case bl:case df:{u();const p={insert:l.content.getContent()[0]};if(s.size>0){const f={};p.attributes=f,s.forEach((b,h)=>{f[h]=b})}r.push(p);break}case R1:tb(l,t)&&(u(),bh(s,l.content));break}l=l.right}u()};return t||n?ln(i,p=>{t&&d8(p,t),n&&d8(p,n),d()},"cleanup"):d(),r}insert(t,n,o){if(n.length<=0)return;const r=this.doc;r!==null?ln(r,s=>{const i=tA(s,this,t,!o);o||(o={},i.currentAttributes.forEach((c,l)=>{o[l]=c})),Z6(s,this,i,n,o)}):this._pending.push(()=>this.insert(t,n,o))}insertEmbed(t,n,o){const r=this.doc;r!==null?ln(r,s=>{const i=tA(s,this,t,!o);Z6(s,this,i,n,o||{})}):this._pending.push(()=>this.insertEmbed(t,n,o||{}))}delete(t,n){if(n===0)return;const o=this.doc;o!==null?ln(o,r=>{mV(r,tA(r,this,t,!0),n)}):this._pending.push(()=>this.delete(t,n))}format(t,n,o){if(n===0)return;const r=this.doc;r!==null?ln(r,s=>{const i=tA(s,this,t,!1);i.right!==null&&hV(s,this,i,n,o)}):this._pending.push(()=>this.format(t,n,o))}removeAttribute(t){this.doc!==null?ln(this.doc,n=>{fv(n,this,t)}):this._pending.push(()=>this.removeAttribute(t))}setAttribute(t,n){this.doc!==null?ln(this.doc,o=>{nN(o,this,t,n)}):this._pending.push(()=>this.setAttribute(t,n))}getAttribute(t){return oN(this,t)}getAttributes(){return U1e(this)}_write(t){t.writeTypeRef(mWe)}}const Q8e=e=>new k2;class Q6{constructor(t,n=()=>!0){this._filter=n,this._root=t,this._currentNode=t._start,this._firstCall=!0}[Symbol.iterator](){return this}next(){let t=this._currentNode,n=t&&t.content&&t.content.type;if(t!==null&&(!this._firstCall||t.deleted||!this._filter(n)))do if(n=t.content.type,!t.deleted&&(n.constructor===q2||n.constructor===Wp)&&n._start!==null)t=n._start;else for(;t!==null;)if(t.right!==null){t=t.right;break}else t.parent===this._root?t=null:t=t.parent._item;while(t!==null&&(t.deleted||!this._filter(t.content.type)));return this._firstCall=!1,t===null?{value:void 0,done:!0}:(this._currentNode=t,{value:t.content.type,done:!1})}}class Wp extends ho{constructor(){super(),this._prelimContent=[]}get firstChild(){const t=this._first;return t?t.content.getContent()[0]:null}_integrate(t,n){super._integrate(t,n),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new Wp}clone(){const t=new Wp;return t.insert(0,this.toArray().map(n=>n instanceof ho?n.clone():n)),t}get length(){return this._prelimContent===null?this._length:this._prelimContent.length}createTreeWalker(t){return new Q6(this,t)}querySelector(t){t=t.toUpperCase();const o=new Q6(this,r=>r.nodeName&&r.nodeName.toUpperCase()===t).next();return o.done?null:o.value}querySelectorAll(t){return t=t.toUpperCase(),Gc(new Q6(this,n=>n.nodeName&&n.nodeName.toUpperCase()===t))}_callObserver(t,n){Fx(this,t,new tWe(this,n,t))}toString(){return D1e(this,t=>t.toString()).join("")}toJSON(){return this.toString()}toDOM(t=document,n={},o){const r=t.createDocumentFragment();return o!==void 0&&o._createAssociation(r,this),kg(this,s=>{r.insertBefore(s.toDOM(t,n,o),null)}),r}insert(t,n){this.doc!==null?ln(this.doc,o=>{V1e(o,this,t,n)}):this._prelimContent.splice(t,0,...n)}insertAfter(t,n){if(this.doc!==null)ln(this.doc,o=>{const r=t&&t instanceof ho?t._item:t;pv(o,this,r,n)});else{const o=this._prelimContent,r=t===null?0:o.findIndex(s=>s===t)+1;if(r===0&&t!==null)throw Ri("Reference item not found");o.splice(r,0,...n)}}delete(t,n=1){this.doc!==null?ln(this.doc,o=>{H1e(o,this,t,n)}):this._prelimContent.splice(t,n)}toArray(){return I1e(this)}push(t){this.insert(this.length,t)}unshift(t){this.insert(0,t)}get(t){return F1e(this,t)}slice(t=0,n=this.length){return P1e(this,t,n)}forEach(t){kg(this,t)}_write(t){t.writeTypeRef(gWe)}}const J8e=e=>new Wp;class q2 extends Wp{constructor(t="UNDEFINED"){super(),this.nodeName=t,this._prelimAttrs=new Map}get nextSibling(){const t=this._item?this._item.next:null;return t?t.content.type:null}get prevSibling(){const t=this._item?this._item.prev:null;return t?t.content.type:null}_integrate(t,n){super._integrate(t,n),this._prelimAttrs.forEach((o,r)=>{this.setAttribute(r,o)}),this._prelimAttrs=null}_copy(){return new q2(this.nodeName)}clone(){const t=new q2(this.nodeName),n=this.getAttributes();return TRe(n,(o,r)=>{typeof o=="string"&&t.setAttribute(r,o)}),t.insert(0,this.toArray().map(o=>o instanceof ho?o.clone():o)),t}toString(){const t=this.getAttributes(),n=[],o=[];for(const c in t)o.push(c);o.sort();const r=o.length;for(let c=0;c0?" "+n.join(" "):"";return`<${s}${i}>${super.toString()}`}removeAttribute(t){this.doc!==null?ln(this.doc,n=>{fv(n,this,t)}):this._prelimAttrs.delete(t)}setAttribute(t,n){this.doc!==null?ln(this.doc,o=>{nN(o,this,t,n)}):this._prelimAttrs.set(t,n)}getAttribute(t){return oN(this,t)}hasAttribute(t){return X1e(this,t)}getAttributes(t){return t?$8e(this,t):U1e(this)}toDOM(t=document,n={},o){const r=t.createElement(this.nodeName),s=this.getAttributes();for(const i in s){const c=s[i];typeof c=="string"&&r.setAttribute(i,c)}return kg(this,i=>{r.appendChild(i.toDOM(t,n,o))}),o!==void 0&&o._createAssociation(r,this),r}_write(t){t.writeTypeRef(MWe),t.writeKey(this.nodeName)}}const eWe=e=>new q2(e.readKey());class tWe extends Ix{constructor(t,n,o){super(t,o),this.childListChanged=!1,this.attributesChanged=new Set,n.forEach(r=>{r===null?this.childListChanged=!0:this.attributesChanged.add(r)})}}class bv extends w2{constructor(t){super(),this.hookName=t}_copy(){return new bv(this.hookName)}clone(){const t=new bv(this.hookName);return this.forEach((n,o)=>{t.set(o,n)}),t}toDOM(t=document,n={},o){const r=n[this.hookName];let s;return r!==void 0?s=r.createDom(this):s=document.createElement(this.hookName),s.setAttribute("data-yjs-hook",this.hookName),o!==void 0&&o._createAssociation(s,this),s}_write(t){t.writeTypeRef(zWe),t.writeKey(this.hookName)}}const nWe=e=>new bv(e.readKey());class hv extends k2{get nextSibling(){const t=this._item?this._item.next:null;return t?t.content.type:null}get prevSibling(){const t=this._item?this._item.prev:null;return t?t.content.type:null}_copy(){return new hv}clone(){const t=new hv;return t.applyDelta(this.toDelta()),t}toDOM(t=document,n,o){const r=t.createTextNode(this.toString());return o!==void 0&&o._createAssociation(r,this),r}toString(){return this.toDelta().map(t=>{const n=[];for(const r in t.attributes){const s=[];for(const i in t.attributes[r])s.push({key:i,value:t.attributes[r][i]});s.sort((i,c)=>i.keyr.nodeName=0;r--)o+=``;return o}).join("")}toJSON(){return this.toString()}_write(t){t.writeTypeRef(OWe)}}const oWe=e=>new hv;class rN{constructor(t,n){this.id=t,this.length=n}get deleted(){throw ka()}mergeWith(t){return!1}write(t,n,o){throw ka()}integrate(t,n){throw ka()}}const rWe=0;class Rs extends rN{get deleted(){return!0}delete(){}mergeWith(t){return this.constructor!==t.constructor?!1:(this.length+=t.length,!0)}integrate(t,n){n>0&&(this.id.clock+=n,this.length-=n),T1e(t.doc.store,this)}write(t,n){t.writeInfo(rWe),t.writeLen(this.length-n)}getMissing(t,n){return null}}class Kz{constructor(t){this.content=t}getLength(){return 1}getContent(){return[this.content]}isCountable(){return!0}copy(){return new Kz(this.content)}splice(t){throw ka()}mergeWith(t){return!1}integrate(t,n){}delete(t){}gc(t){}write(t,n){t.writeBuf(this.content)}getRef(){return 3}}const sWe=e=>new Kz(e.readBuf());class qg{constructor(t){this.len=t}getLength(){return this.len}getContent(){return[]}isCountable(){return!1}copy(){return new qg(this.len)}splice(t){const n=new qg(this.len-t);return this.len=t,n}mergeWith(t){return this.len+=t.len,!0}integrate(t,n){uv(t.deleteSet,n.id.client,n.id.clock,this.len),n.markDeleted()}delete(t){}gc(t){}write(t,n){t.writeLen(this.len-n)}getRef(){return 1}}const iWe=e=>new qg(e.readLen()),Q1e=(e,t)=>new fh({guid:e,...t,shouldLoad:t.shouldLoad||t.autoLoad||!1});class Yz{constructor(t){t._item&&console.error("This document was already integrated as a sub-document. You should create a second instance instead with the same guid."),this.doc=t;const n={};this.opts=n,t.gc||(n.gc=!1),t.autoLoad&&(n.autoLoad=!0),t.meta!==null&&(n.meta=t.meta)}getLength(){return 1}getContent(){return[this.doc]}isCountable(){return!0}copy(){return new Yz(Q1e(this.doc.guid,this.opts))}splice(t){throw ka()}mergeWith(t){return!1}integrate(t,n){this.doc._item=n,t.subdocsAdded.add(this.doc),this.doc.shouldLoad&&t.subdocsLoaded.add(this.doc)}delete(t){t.subdocsAdded.has(this.doc)?t.subdocsAdded.delete(this.doc):t.subdocsRemoved.add(this.doc)}gc(t){}write(t,n){t.writeString(this.doc.guid),t.writeAny(this.opts)}getRef(){return 9}}const aWe=e=>new Yz(Q1e(e.readString(),e.readAny()));class df{constructor(t){this.embed=t}getLength(){return 1}getContent(){return[this.embed]}isCountable(){return!0}copy(){return new df(this.embed)}splice(t){throw ka()}mergeWith(t){return!1}integrate(t,n){}delete(t){}gc(t){}write(t,n){t.writeJSON(this.embed)}getRef(){return 5}}const cWe=e=>new df(e.readJSON());class R1{constructor(t,n){this.key=t,this.value=n}getLength(){return 1}getContent(){return[]}isCountable(){return!1}copy(){return new R1(this.key,this.value)}splice(t){throw ka()}mergeWith(t){return!1}integrate(t,n){const o=n.parent;o._searchMarker=null,o._hasFormatting=!0}delete(t){}gc(t){}write(t,n){t.writeKey(this.key),t.writeJSON(this.value)}getRef(){return 6}}const lWe=e=>new R1(e.readKey(),e.readJSON());class mv{constructor(t){this.arr=t}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new mv(this.arr)}splice(t){const n=new mv(this.arr.slice(t));return this.arr=this.arr.slice(0,t),n}mergeWith(t){return this.arr=this.arr.concat(t.arr),!0}integrate(t,n){}delete(t){}gc(t){}write(t,n){const o=this.arr.length;t.writeLen(o-n);for(let r=n;r{const t=e.readLen(),n=[];for(let o=0;o{const t=e.readLen(),n=[];for(let o=0;o=55296&&o<=56319&&(this.str=this.str.slice(0,t-1)+"�",n.str="�"+n.str.slice(1)),n}mergeWith(t){return this.str+=t.str,!0}integrate(t,n){}delete(t){}gc(t){}write(t,n){t.writeString(n===0?this.str:this.str.slice(n))}getRef(){return 4}}const pWe=e=>new Pa(e.readString()),fWe=[H8e,X8e,Q8e,eWe,J8e,nWe,oWe],bWe=0,hWe=1,mWe=2,MWe=3,gWe=4,zWe=5,OWe=6;class bl{constructor(t){this.type=t}getLength(){return 1}getContent(){return[this.type]}isCountable(){return!0}copy(){return new bl(this.type._copy())}splice(t){throw ka()}mergeWith(t){return!1}integrate(t,n){this.type._integrate(t.doc,n)}delete(t){let n=this.type._start;for(;n!==null;)n.deleted?n.id.clock<(t.beforeState.get(n.id.client)||0)&&t._mergeStructs.push(n):n.delete(t),n=n.right;this.type._map.forEach(o=>{o.deleted?o.id.clock<(t.beforeState.get(o.id.client)||0)&&t._mergeStructs.push(o):o.delete(t)}),t.changed.delete(this.type)}gc(t){let n=this.type._start;for(;n!==null;)n.gc(t,!0),n=n.right;this.type._start=null,this.type._map.forEach(o=>{for(;o!==null;)o.gc(t,!0),o=o.left}),this.type._map=new Map}write(t,n){this.type._write(t)}getRef(){return 7}}const AWe=e=>new bl(fWe[e.readTypeRef()](e)),Mv=(e,t,n)=>{const{client:o,clock:r}=t.id,s=new Wo(M0(o,r+n),t,M0(o,r+n-1),t.right,t.rightOrigin,t.parent,t.parentSub,t.content.splice(n));return t.deleted&&s.markDeleted(),t.keep&&(s.keep=!0),t.redone!==null&&(s.redone=M0(t.redone.client,t.redone.clock+n)),t.right=s,s.right!==null&&(s.right.left=s),e._mergeStructs.push(s),s.parentSub!==null&&s.right===null&&s.parent._map.set(s.parentSub,s),t.length=n,s};let Wo=class b8 extends rN{constructor(t,n,o,r,s,i,c,l){super(t,l.getLength()),this.origin=o,this.left=n,this.right=r,this.rightOrigin=s,this.parent=i,this.parentSub=c,this.redone=null,this.content=l,this.info=this.content.isCountable()?G$:0}set marker(t){(this.info&H6)>0!==t&&(this.info^=H6)}get marker(){return(this.info&H6)>0}get keep(){return(this.info&X$)>0}set keep(t){this.keep!==t&&(this.info^=X$)}get countable(){return(this.info&G$)>0}get deleted(){return(this.info&V6)>0}set deleted(t){this.deleted!==t&&(this.info^=V6)}markDeleted(){this.info|=V6}getMissing(t,n){if(this.origin&&this.origin.client!==this.id.client&&this.origin.clock>=H1(n,this.origin.client))return this.origin.client;if(this.rightOrigin&&this.rightOrigin.client!==this.id.client&&this.rightOrigin.clock>=H1(n,this.rightOrigin.client))return this.rightOrigin.client;if(this.parent&&this.parent.constructor===Hb&&this.id.client!==this.parent.client&&this.parent.clock>=H1(n,this.parent.client))return this.parent.client;if(this.origin&&(this.left=uV(t,n,this.origin),this.origin=this.left.lastId),this.rightOrigin&&(this.right=Bu(t,this.rightOrigin),this.rightOrigin=this.right.id),this.left&&this.left.constructor===Rs||this.right&&this.right.constructor===Rs)this.parent=null;else if(!this.parent)this.left&&this.left.constructor===b8&&(this.parent=this.left.parent,this.parentSub=this.left.parentSub),this.right&&this.right.constructor===b8&&(this.parent=this.right.parent,this.parentSub=this.right.parentSub);else if(this.parent.constructor===Hb){const o=Y6(n,this.parent);o.constructor===Rs?this.parent=null:this.parent=o.content.type}return null}integrate(t,n){if(n>0&&(this.id.clock+=n,this.left=uV(t,t.doc.store,M0(this.id.client,this.id.clock-1)),this.origin=this.left.lastId,this.content=this.content.splice(n),this.length-=n),this.parent){if(!this.left&&(!this.right||this.right.left!==null)||this.left&&this.left.right!==this.right){let o=this.left,r;if(o!==null)r=o.right;else if(this.parentSub!==null)for(r=this.parent._map.get(this.parentSub)||null;r!==null&&r.left!==null;)r=r.left;else r=this.parent._start;const s=new Set,i=new Set;for(;r!==null&&r!==this.right;){if(i.add(r),s.add(r),JO(this.origin,r.origin)){if(r.id.client{o.p===t&&(o.p=this,!this.deleted&&this.countable&&(o.index-=this.length))}),t.keep&&(this.keep=!0),this.right=t.right,this.right!==null&&(this.right.left=this),this.length+=t.length,!0}return!1}delete(t){if(!this.deleted){const n=this.parent;this.countable&&this.parentSub===null&&(n._length-=this.length),this.markDeleted(),uv(t.deleteSet,this.id.client,this.id.clock,this.length),pV(t,n,this.parentSub),this.content.delete(t)}}gc(t,n){if(!this.deleted)throw La();this.content.gc(t),n?k8e(t,this,new Rs(this.id,this.length)):this.content=new qg(this.length)}write(t,n){const o=n>0?M0(this.id.client,this.id.clock+n-1):this.origin,r=this.rightOrigin,s=this.parentSub,i=this.content.getRef()&Bx|(o===null?0:es)|(r===null?0:Wc)|(s===null?0:vg);if(t.writeInfo(i),o!==null&&t.writeLeftID(o),r!==null&&t.writeRightID(r),o===null&&r===null){const c=this.parent;if(c._item!==void 0){const l=c._item;if(l===null){const u=_8e(c);t.writeParentInfo(!0),t.writeString(u)}else t.writeParentInfo(!1),t.writeLeftID(l.id)}else c.constructor===String?(t.writeParentInfo(!0),t.writeString(c)):c.constructor===Hb?(t.writeParentInfo(!1),t.writeLeftID(c)):La();s!==null&&t.writeString(s)}this.content.write(t,n)}};const J1e=(e,t)=>yWe[t&Bx](e),yWe=[()=>{La()},iWe,uWe,sWe,pWe,cWe,lWe,AWe,dWe,aWe,()=>{La()}],vWe=10;class Ws extends rN{get deleted(){return!0}delete(){}mergeWith(t){return this.constructor!==t.constructor?!1:(this.length+=t.length,!0)}integrate(t,n){La()}write(t,n){t.writeInfo(vWe),Wt(t.restEncoder,this.length-n)}getMissing(t,n){return null}}const eoe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:{},toe="__ $YJS$ __";eoe[toe]===!0&&console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438");eoe[toe]=!0;const pf=e=>v2((t,n)=>{e.onerror=o=>n(new Error(o.target.error)),e.onsuccess=o=>t(o.target.result)}),xWe=(e,t)=>v2((n,o)=>{const r=indexedDB.open(e);r.onupgradeneeded=s=>t(s.target.result),r.onerror=s=>o(Ri(s.target.error)),r.onsuccess=s=>{const i=s.target.result;i.onversionchange=()=>{i.close()},n(i)}}),_We=e=>pf(indexedDB.deleteDatabase(e)),wWe=(e,t)=>t.forEach(n=>e.createObjectStore.apply(e,n)),oM=(e,t,n="readwrite")=>{const o=e.transaction(t,n);return t.map(r=>EWe(o,r))},noe=(e,t)=>pf(e.count(t)),kWe=(e,t)=>pf(e.get(t)),ooe=(e,t)=>pf(e.delete(t)),qWe=(e,t,n)=>pf(e.put(t,n)),h8=(e,t)=>pf(e.add(t)),SWe=(e,t,n)=>pf(e.getAll(t,n)),CWe=(e,t,n)=>{let o=null;return TWe(e,t,r=>(o=r,!1),n).then(()=>o)},RWe=(e,t=null)=>CWe(e,t,"prev"),WWe=(e,t)=>v2((n,o)=>{e.onerror=o,e.onsuccess=async r=>{const s=r.target.result;if(s===null||await t(s)===!1)return n();s.continue()}}),TWe=(e,t,n,o="next")=>WWe(e.openKeyCursor(t,o),r=>n(r.key)),EWe=(e,t)=>e.objectStore(t),BWe=(e,t)=>IDBKeyRange.upperBound(e,t),NWe=(e,t)=>IDBKeyRange.lowerBound(e,t),J6="custom",roe="updates",soe=500,ioe=(e,t=()=>{},n=()=>{})=>{const[o]=oM(e.db,[roe]);return SWe(o,NWe(e._dbref,!1)).then(r=>{e._destroyed||(t(o),ln(e.doc,()=>{r.forEach(s=>q1e(e.doc,s))},e,!1),n(o))}).then(()=>RWe(o).then(r=>{e._dbref=r+1})).then(()=>noe(o).then(r=>{e._dbsize=r})).then(()=>o)},LWe=(e,t=!0)=>ioe(e).then(n=>{(t||e._dbsize>=soe)&&h8(n,ZB(e.doc)).then(()=>ooe(n,BWe(e._dbref,!0))).then(()=>noe(n).then(o=>{e._dbsize=o}))});class jWe extends Hz{constructor(t,n){super(),this.doc=n,this.name=t,this._dbref=0,this._dbsize=0,this._destroyed=!1,this.db=null,this.synced=!1,this._db=xWe(t,o=>wWe(o,[["updates",{autoIncrement:!0}],["custom"]])),this.whenSynced=v2(o=>this.on("synced",()=>o(this))),this._db.then(o=>{this.db=o,ioe(this,i=>h8(i,ZB(n)),()=>{if(this._destroyed)return this;this.synced=!0,this.emit("synced",[this])})}),this._storeTimeout=1e3,this._storeTimeoutId=null,this._storeUpdate=(o,r)=>{if(this.db&&r!==this){const[s]=oM(this.db,[roe]);h8(s,o),++this._dbsize>=soe&&(this._storeTimeoutId!==null&&clearTimeout(this._storeTimeoutId),this._storeTimeoutId=setTimeout(()=>{LWe(this,!1),this._storeTimeoutId=null},this._storeTimeout))}},n.on("update",this._storeUpdate),this.destroy=this.destroy.bind(this),n.on("destroy",this.destroy)}destroy(){return this._storeTimeoutId&&clearTimeout(this._storeTimeoutId),this.doc.off("update",this._storeUpdate),this.doc.off("destroy",this.destroy),this._destroyed=!0,this._db.then(t=>{t.close()})}clearData(){return this.destroy().then(()=>{_We(this.name)})}get(t){return this._db.then(n=>{const[o]=oM(n,[J6],"readonly");return kWe(o,t)})}set(t,n){return this._db.then(o=>{const[r]=oM(o,[J6]);return qWe(r,n,t)})}del(t){return this._db.then(n=>{const[o]=oM(n,[J6]);return ooe(o,t)})}}function PWe(e,t,n){const o=`${t}-${e}`,r=new jWe(o,n);return new Promise(s=>{r.on("synced",()=>{s(()=>r.destroy())})})}const IWe=1200,DWe=2500,gv=3e4,m8=e=>{if(e.shouldConnect&&e.ws===null){const t=new WebSocket(e.url),n=e.binaryType;let o=null;n&&(t.binaryType=n),e.ws=t,e.connecting=!0,e.connected=!1,t.onmessage=i=>{e.lastMessageReceived=Kc();const c=i.data,l=typeof c=="string"?JSON.parse(c):c;l&&l.type==="pong"&&(clearTimeout(o),o=setTimeout(s,gv/2)),e.emit("message",[l,e])};const r=i=>{e.ws!==null&&(e.ws=null,e.connecting=!1,e.connected?(e.connected=!1,e.emit("disconnect",[{type:"disconnect",error:i},e])):e.unsuccessfulReconnects++,setTimeout(m8,NB(YCe(e.unsuccessfulReconnects+1)*IWe,DWe),e)),clearTimeout(o)},s=()=>{e.ws===t&&e.send({type:"ping"})};t.onclose=()=>r(null),t.onerror=i=>r(i),t.onopen=()=>{e.lastMessageReceived=Kc(),e.connecting=!1,e.connected=!0,e.unsuccessfulReconnects=0,e.emit("connect",[{type:"connect"},e]),o=setTimeout(s,gv/2)}}};class FWe extends Hz{constructor(t,{binaryType:n}={}){super(),this.url=t,this.ws=null,this.binaryType=n||null,this.connected=!1,this.connecting=!1,this.unsuccessfulReconnects=0,this.lastMessageReceived=0,this.shouldConnect=!0,this._checkInterval=setInterval(()=>{this.connected&&gvn.key===t&&this.onmessage!==null&&this.onmessage({data:VB(n.newValue||"")}),CRe(this._onChange)}postMessage(t){i1e.setItem(this.room,f1e(HRe(t)))}close(){RRe(this._onChange)}}const VWe=typeof BroadcastChannel>"u"?$We:BroadcastChannel,sN=e=>Fo(aoe,e,()=>{const t=Eu(),n=new VWe(e);return n.onmessage=o=>t.forEach(r=>r(o.data,"broadcastchannel")),{bc:n,subs:t}}),HWe=(e,t)=>(sN(e).subs.add(t),t),UWe=(e,t)=>{const n=sN(e),o=n.subs.delete(t);return o&&n.subs.size===0&&(n.bc.close(),aoe.delete(e)),o},XWe=(e,t,n=null)=>{const o=sN(e);o.bc.postMessage(t),o.subs.forEach(r=>r(t,n))},GWe=()=>{let e=!0;return(t,n)=>{if(e){e=!1;try{t()}finally{e=!0}}else n!==void 0&&n()}};function nA(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var coe={exports:{}};(function(e,t){(function(n){e.exports=n()})(function(){var n=Math.floor,o=Math.abs,r=Math.pow;return function(){function s(i,c,l){function u(f,b){if(!c[f]){if(!i[f]){var h=typeof nA=="function"&&nA;if(!b&&h)return h(f,!0);if(d)return d(f,!0);var g=new Error("Cannot find module '"+f+"'");throw g.code="MODULE_NOT_FOUND",g}var z=c[f]={exports:{}};i[f][0].call(z.exports,function(y){var x=i[f][1][y];return u(x||y)},z,z.exports,s,i,c,l)}return c[f].exports}for(var d=typeof nA=="function"&&nA,p=0;p>16,S[C++]=255&A>>8,S[C++]=255&A;return q===2&&(A=g[M.charCodeAt(_)]<<2|g[M.charCodeAt(_+1)]>>4,S[C++]=255&A),q===1&&(A=g[M.charCodeAt(_)]<<10|g[M.charCodeAt(_+1)]<<4|g[M.charCodeAt(_+2)]>>2,S[C++]=255&A>>8,S[C++]=255&A),S}function p(M){return h[63&M>>18]+h[63&M>>12]+h[63&M>>6]+h[63&M]}function f(M,A,_){for(var w,k=[],q=A;q<_;q+=3)w=(16711680&M[q]<<16)+(65280&M[q+1]<<8)+(255&M[q+2]),k.push(p(w));return k.join("")}function b(M){for(var A,_=M.length,w=_%3,k=[],q=16383,S=0,C=_-w;SC?C:S+q));return w===1?(A=M[_-1],k.push(h[A>>2]+h[63&A<<4]+"==")):w===2&&(A=(M[_-2]<<8)+M[_-1],k.push(h[A>>10]+h[63&A>>4]+h[63&A<<2]+"=")),k.join("")}c.byteLength=function(M){var A=l(M),_=A[0],w=A[1];return 3*(_+w)/4-w},c.toByteArray=d,c.fromByteArray=b;for(var h=[],g=[],z=typeof Uint8Array>"u"?Array:Uint8Array,y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",x=0,v=y.length;xR)throw new RangeError('The value "'+R+'" is invalid for option "size"')}function h(R,j,V){return b(R),0>=R||j===void 0?d(R):typeof V=="string"?d(R).fill(j,V):d(R).fill(j)}function g(R){return b(R),d(0>R?0:0|M(R))}function z(R,j){if((typeof j!="string"||j==="")&&(j="utf8"),!p.isEncoding(j))throw new TypeError("Unknown encoding: "+j);var V=0|A(R,j),de=d(V),ge=de.write(R,j);return ge!==V&&(de=de.slice(0,ge)),de}function y(R){for(var j=0>R.length?0:0|M(R.length),V=d(j),de=0;dej||R.byteLength=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|R}function A(R,j){if(p.isBuffer(R))return R.length;if(ArrayBuffer.isView(R)||G(R,ArrayBuffer))return R.byteLength;if(typeof R!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof R);var V=R.length,de=2>>1;case"base64":return K(R).length;default:if(ge)return de?-1:be(R).length;j=(""+j).toLowerCase(),ge=!0}}function _(R,j,V){var de=!1;if((j===void 0||0>j)&&(j=0),j>this.length||((V===void 0||V>this.length)&&(V=this.length),0>=V)||(V>>>=0,j>>>=0,V<=j))return"";for(R||(R="utf8");;)switch(R){case"hex":return U(this,j,V);case"utf8":case"utf-8":return L(this,j,V);case"ascii":return P(this,j,V);case"latin1":case"binary":return H(this,j,V);case"base64":return E(this,j,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X(this,j,V);default:if(de)throw new TypeError("Unknown encoding: "+R);R=(R+"").toLowerCase(),de=!0}}function w(R,j,V){var de=R[j];R[j]=R[V],R[V]=de}function k(R,j,V,de,ge){if(R.length===0)return-1;if(typeof V=="string"?(de=V,V=0):2147483647V&&(V=-2147483648),V=+V,re(V)&&(V=ge?0:R.length-1),0>V&&(V=R.length+V),V>=R.length){if(ge)return-1;V=R.length-1}else if(0>V)if(ge)V=0;else return-1;if(typeof j=="string"&&(j=p.from(j,de)),p.isBuffer(j))return j.length===0?-1:q(R,j,V,de,ge);if(typeof j=="number")return j&=255,typeof Uint8Array.prototype.indexOf=="function"?ge?Uint8Array.prototype.indexOf.call(R,j,V):Uint8Array.prototype.lastIndexOf.call(R,j,V):q(R,[j],V,de,ge);throw new TypeError("val must be string, number or Buffer")}function q(R,j,V,de,ge){function ve(Ue,Xe){return Ne===1?Ue[Xe]:Ue.readUInt16BE(Xe*Ne)}var Ne=1,et=R.length,mt=j.length;if(de!==void 0&&(de=(de+"").toLowerCase(),de==="ucs2"||de==="ucs-2"||de==="utf16le"||de==="utf-16le")){if(2>R.length||2>j.length)return-1;Ne=2,et/=2,mt/=2,V/=2}var Mt;if(ge){var Ke=-1;for(Mt=V;Mtet&&(V=et-mt),Mt=V;0<=Mt;Mt--){for(var Nt=!0,zt=0;ztge&&(de=ge)):de=ge;var ve=j.length;de>ve/2&&(de=ve/2);for(var Ne,et=0;etve&&(Ne=ve):et===2?(mt=R[ge+1],(192&mt)==128&&(Nt=(31&ve)<<6|63&mt,127Nt||57343Nt&&(Ne=Nt)))}Ne===null?(Ne=65533,et=1):65535>>10),Ne=56320|1023&Ne),de.push(Ne),ge+=et}return I(de)}function I(R){var j=R.length;if(j<=4096)return l.apply(String,R);for(var V="",de=0;dej)&&(j=0),(!V||0>V||V>de)&&(V=de);for(var ge="",ve=j;veR)throw new RangeError("offset is not uint");if(R+j>V)throw new RangeError("Trying to access beyond buffer length")}function ne(R,j,V,de,ge,ve){if(!p.isBuffer(R))throw new TypeError('"buffer" argument must be a Buffer instance');if(j>ge||jR.length)throw new RangeError("Index out of range")}function oe(R,j,V,de){if(V+de>R.length)throw new RangeError("Index out of range");if(0>V)throw new RangeError("Index out of range")}function Y(R,j,V,de,ge){return j=+j,V>>>=0,ge||oe(R,j,V,4),he.write(R,j,V,de,23,4),V+4}function ee(R,j,V,de,ge){return j=+j,V>>>=0,ge||oe(R,j,V,8),he.write(R,j,V,de,52,8),V+8}function ie(R){if(R=R.split("=")[0],R=R.trim().replace(Q,""),2>R.length)return"";for(;R.length%4!=0;)R+="=";return R}function se(R){return 16>R?"0"+R.toString(16):R.toString(16)}function be(R,j){j=j||1/0;for(var V,de=R.length,ge=null,ve=[],Ne=0;NeV){if(!ge){if(56319V){-1<(j-=3)&&ve.push(239,191,189),ge=V;continue}V=(ge-55296<<10|V-56320)+65536}else ge&&-1<(j-=3)&&ve.push(239,191,189);if(ge=null,128>V){if(0>(j-=1))break;ve.push(V)}else if(2048>V){if(0>(j-=2))break;ve.push(192|V>>6,128|63&V)}else if(65536>V){if(0>(j-=3))break;ve.push(224|V>>12,128|63&V>>6,128|63&V)}else if(1114112>V){if(0>(j-=4))break;ve.push(240|V>>18,128|63&V>>12,128|63&V>>6,128|63&V)}else throw new Error("Invalid code point")}return ve}function ye(R){for(var j=[],V=0;V(j-=2));++Ne)V=R.charCodeAt(Ne),de=V>>8,ge=V%256,ve.push(ge),ve.push(de);return ve}function K(R){return Me.toByteArray(ie(R))}function pe(R,j,V,de){for(var ge=0;ge=j.length||ge>=R.length);++ge)j[ge+V]=R[ge];return ge}function G(R,j){return R instanceof j||R!=null&&R.constructor!=null&&R.constructor.name!=null&&R.constructor.name===j.name}function re(R){return R!==R}var Me=s("base64-js"),he=s("ieee754");c.Buffer=p,c.SlowBuffer=function(R){return+R!=R&&(R=0),p.alloc(+R)},c.INSPECT_MAX_BYTES=50,c.kMaxLength=2147483647,p.TYPED_ARRAY_SUPPORT=function(){try{var R=new Uint8Array(1);return R.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},R.foo()===42}catch{return!1}}(),p.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(p.prototype,"parent",{enumerable:!0,get:function(){return p.isBuffer(this)?this.buffer:void 0}}),Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){return p.isBuffer(this)?this.byteOffset:void 0}}),typeof Symbol<"u"&&Symbol.species!=null&&p[Symbol.species]===p&&Object.defineProperty(p,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),p.poolSize=8192,p.from=function(R,j,V){return f(R,j,V)},p.prototype.__proto__=Uint8Array.prototype,p.__proto__=Uint8Array,p.alloc=function(R,j,V){return h(R,j,V)},p.allocUnsafe=function(R){return g(R)},p.allocUnsafeSlow=function(R){return g(R)},p.isBuffer=function(R){return R!=null&&R._isBuffer===!0&&R!==p.prototype},p.compare=function(R,j){if(G(R,Uint8Array)&&(R=p.from(R,R.offset,R.byteLength)),G(j,Uint8Array)&&(j=p.from(j,j.offset,j.byteLength)),!p.isBuffer(R)||!p.isBuffer(j))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(R===j)return 0;for(var V=R.length,de=j.length,ge=0,ve=u(V,de);gej&&(R+=" ... "),""},p.prototype.compare=function(R,j,V,de,ge){if(G(R,Uint8Array)&&(R=p.from(R,R.offset,R.byteLength)),!p.isBuffer(R))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof R);if(j===void 0&&(j=0),V===void 0&&(V=R?R.length:0),de===void 0&&(de=0),ge===void 0&&(ge=this.length),0>j||V>R.length||0>de||ge>this.length)throw new RangeError("out of range index");if(de>=ge&&j>=V)return 0;if(de>=ge)return-1;if(j>=V)return 1;if(j>>>=0,V>>>=0,de>>>=0,ge>>>=0,this===R)return 0;for(var ve=ge-de,Ne=V-j,et=u(ve,Ne),mt=this.slice(de,ge),Mt=R.slice(j,V),Ke=0;Ke>>=0,isFinite(V)?(V>>>=0,de===void 0&&(de="utf8")):(de=V,V=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ge=this.length-j;if((V===void 0||V>ge)&&(V=ge),0V||0>j)||j>this.length)throw new RangeError("Attempt to write outside buffer bounds");de||(de="utf8");for(var ve=!1;;)switch(de){case"hex":return S(this,R,j,V);case"utf8":case"utf-8":return C(this,R,j,V);case"ascii":return T(this,R,j,V);case"latin1":case"binary":return W(this,R,j,V);case"base64":return B(this,R,j,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,R,j,V);default:if(ve)throw new TypeError("Unknown encoding: "+de);de=(""+de).toLowerCase(),ve=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},p.prototype.slice=function(R,j){var V=this.length;R=~~R,j=j===void 0?V:~~j,0>R?(R+=V,0>R&&(R=0)):R>V&&(R=V),0>j?(j+=V,0>j&&(j=0)):j>V&&(j=V),j>>=0,j>>>=0,V||Z(R,j,this.length);for(var de=this[R],ge=1,ve=0;++ve>>=0,j>>>=0,V||Z(R,j,this.length);for(var de=this[R+--j],ge=1;0>>=0,j||Z(R,1,this.length),this[R]},p.prototype.readUInt16LE=function(R,j){return R>>>=0,j||Z(R,2,this.length),this[R]|this[R+1]<<8},p.prototype.readUInt16BE=function(R,j){return R>>>=0,j||Z(R,2,this.length),this[R]<<8|this[R+1]},p.prototype.readUInt32LE=function(R,j){return R>>>=0,j||Z(R,4,this.length),(this[R]|this[R+1]<<8|this[R+2]<<16)+16777216*this[R+3]},p.prototype.readUInt32BE=function(R,j){return R>>>=0,j||Z(R,4,this.length),16777216*this[R]+(this[R+1]<<16|this[R+2]<<8|this[R+3])},p.prototype.readIntLE=function(R,j,V){R>>>=0,j>>>=0,V||Z(R,j,this.length);for(var de=this[R],ge=1,ve=0;++ve=ge&&(de-=r(2,8*j)),de},p.prototype.readIntBE=function(R,j,V){R>>>=0,j>>>=0,V||Z(R,j,this.length);for(var de=j,ge=1,ve=this[R+--de];0=ge&&(ve-=r(2,8*j)),ve},p.prototype.readInt8=function(R,j){return R>>>=0,j||Z(R,1,this.length),128&this[R]?-1*(255-this[R]+1):this[R]},p.prototype.readInt16LE=function(R,j){R>>>=0,j||Z(R,2,this.length);var V=this[R]|this[R+1]<<8;return 32768&V?4294901760|V:V},p.prototype.readInt16BE=function(R,j){R>>>=0,j||Z(R,2,this.length);var V=this[R+1]|this[R]<<8;return 32768&V?4294901760|V:V},p.prototype.readInt32LE=function(R,j){return R>>>=0,j||Z(R,4,this.length),this[R]|this[R+1]<<8|this[R+2]<<16|this[R+3]<<24},p.prototype.readInt32BE=function(R,j){return R>>>=0,j||Z(R,4,this.length),this[R]<<24|this[R+1]<<16|this[R+2]<<8|this[R+3]},p.prototype.readFloatLE=function(R,j){return R>>>=0,j||Z(R,4,this.length),he.read(this,R,!0,23,4)},p.prototype.readFloatBE=function(R,j){return R>>>=0,j||Z(R,4,this.length),he.read(this,R,!1,23,4)},p.prototype.readDoubleLE=function(R,j){return R>>>=0,j||Z(R,8,this.length),he.read(this,R,!0,52,8)},p.prototype.readDoubleBE=function(R,j){return R>>>=0,j||Z(R,8,this.length),he.read(this,R,!1,52,8)},p.prototype.writeUIntLE=function(R,j,V,de){if(R=+R,j>>>=0,V>>>=0,!de){var ge=r(2,8*V)-1;ne(this,R,j,V,ge,0)}var ve=1,Ne=0;for(this[j]=255&R;++Ne>>=0,V>>>=0,!de){var ge=r(2,8*V)-1;ne(this,R,j,V,ge,0)}var ve=V-1,Ne=1;for(this[j+ve]=255&R;0<=--ve&&(Ne*=256);)this[j+ve]=255&R/Ne;return j+V},p.prototype.writeUInt8=function(R,j,V){return R=+R,j>>>=0,V||ne(this,R,j,1,255,0),this[j]=255&R,j+1},p.prototype.writeUInt16LE=function(R,j,V){return R=+R,j>>>=0,V||ne(this,R,j,2,65535,0),this[j]=255&R,this[j+1]=R>>>8,j+2},p.prototype.writeUInt16BE=function(R,j,V){return R=+R,j>>>=0,V||ne(this,R,j,2,65535,0),this[j]=R>>>8,this[j+1]=255&R,j+2},p.prototype.writeUInt32LE=function(R,j,V){return R=+R,j>>>=0,V||ne(this,R,j,4,4294967295,0),this[j+3]=R>>>24,this[j+2]=R>>>16,this[j+1]=R>>>8,this[j]=255&R,j+4},p.prototype.writeUInt32BE=function(R,j,V){return R=+R,j>>>=0,V||ne(this,R,j,4,4294967295,0),this[j]=R>>>24,this[j+1]=R>>>16,this[j+2]=R>>>8,this[j+3]=255&R,j+4},p.prototype.writeIntLE=function(R,j,V,de){if(R=+R,j>>>=0,!de){var ge=r(2,8*V-1);ne(this,R,j,V,ge-1,-ge)}var ve=0,Ne=1,et=0;for(this[j]=255&R;++veR&&et===0&&this[j+ve-1]!==0&&(et=1),this[j+ve]=255&(R/Ne>>0)-et;return j+V},p.prototype.writeIntBE=function(R,j,V,de){if(R=+R,j>>>=0,!de){var ge=r(2,8*V-1);ne(this,R,j,V,ge-1,-ge)}var ve=V-1,Ne=1,et=0;for(this[j+ve]=255&R;0<=--ve&&(Ne*=256);)0>R&&et===0&&this[j+ve+1]!==0&&(et=1),this[j+ve]=255&(R/Ne>>0)-et;return j+V},p.prototype.writeInt8=function(R,j,V){return R=+R,j>>>=0,V||ne(this,R,j,1,127,-128),0>R&&(R=255+R+1),this[j]=255&R,j+1},p.prototype.writeInt16LE=function(R,j,V){return R=+R,j>>>=0,V||ne(this,R,j,2,32767,-32768),this[j]=255&R,this[j+1]=R>>>8,j+2},p.prototype.writeInt16BE=function(R,j,V){return R=+R,j>>>=0,V||ne(this,R,j,2,32767,-32768),this[j]=R>>>8,this[j+1]=255&R,j+2},p.prototype.writeInt32LE=function(R,j,V){return R=+R,j>>>=0,V||ne(this,R,j,4,2147483647,-2147483648),this[j]=255&R,this[j+1]=R>>>8,this[j+2]=R>>>16,this[j+3]=R>>>24,j+4},p.prototype.writeInt32BE=function(R,j,V){return R=+R,j>>>=0,V||ne(this,R,j,4,2147483647,-2147483648),0>R&&(R=4294967295+R+1),this[j]=R>>>24,this[j+1]=R>>>16,this[j+2]=R>>>8,this[j+3]=255&R,j+4},p.prototype.writeFloatLE=function(R,j,V){return Y(this,R,j,!0,V)},p.prototype.writeFloatBE=function(R,j,V){return Y(this,R,j,!1,V)},p.prototype.writeDoubleLE=function(R,j,V){return ee(this,R,j,!0,V)},p.prototype.writeDoubleBE=function(R,j,V){return ee(this,R,j,!1,V)},p.prototype.copy=function(R,j,V,de){if(!p.isBuffer(R))throw new TypeError("argument should be a Buffer");if(V||(V=0),de||de===0||(de=this.length),j>=R.length&&(j=R.length),j||(j=0),0j)throw new RangeError("targetStart out of bounds");if(0>V||V>=this.length)throw new RangeError("Index out of range");if(0>de)throw new RangeError("sourceEnd out of bounds");de>this.length&&(de=this.length),R.length-jge||de==="latin1")&&(R=ge)}}else typeof R=="number"&&(R&=255);if(0>j||this.length>>=0,V=V===void 0?this.length:V>>>0,R||(R=0);var ve;if(typeof R=="number")for(ve=j;ve{g==="%%"||(b++,g==="%c"&&(h=b))}),p.splice(h,0,f)},c.save=function(p){try{p?c.storage.setItem("debug",p):c.storage.removeItem("debug")}catch{}},c.load=u,c.useColors=function(){return!!(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))||!(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&(typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&31<=parseInt(RegExp.$1,10)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},c.storage=function(){try{return localStorage}catch{}}(),c.destroy=(()=>{let p=!1;return()=>{p||(p=!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`."))}})(),c.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"],c.log=console.debug||console.log||(()=>{}),i.exports=s("./common")(c);const{formatters:d}=i.exports;d.j=function(p){try{return JSON.stringify(p)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}}}).call(this)}).call(this,s("_process"))},{"./common":5,_process:12}],5:[function(s,i){i.exports=function(c){function l(p){function f(...g){if(!f.enabled)return;const z=f,y=+new Date,x=y-(b||y);z.diff=x,z.prev=b,z.curr=y,b=y,g[0]=l.coerce(g[0]),typeof g[0]!="string"&&g.unshift("%O");let v=0;g[0]=g[0].replace(/%([a-zA-Z%])/g,(A,_)=>{if(A==="%%")return"%";v++;const w=l.formatters[_];if(typeof w=="function"){const k=g[v];A=w.call(z,k),g.splice(v,1),v--}return A}),l.formatArgs.call(z,g),(z.log||l.log).apply(z,g)}let b,h=null;return f.namespace=p,f.useColors=l.useColors(),f.color=l.selectColor(p),f.extend=u,f.destroy=l.destroy,Object.defineProperty(f,"enabled",{enumerable:!0,configurable:!1,get:()=>h===null?l.enabled(p):h,set:g=>{h=g}}),typeof l.init=="function"&&l.init(f),f}function u(p,f){const b=l(this.namespace+(typeof f>"u"?":":f)+p);return b.log=this.log,b}function d(p){return p.toString().substring(2,p.toString().length-2).replace(/\.\*\?$/,"*")}return l.debug=l,l.default=l,l.coerce=function(p){return p instanceof Error?p.stack||p.message:p},l.disable=function(){const p=[...l.names.map(d),...l.skips.map(d).map(f=>"-"+f)].join(",");return l.enable(""),p},l.enable=function(p){l.save(p),l.names=[],l.skips=[];let f;const b=(typeof p=="string"?p:"").split(/[\s,]+/),h=b.length;for(f=0;f{l[p]=c[p]}),l.names=[],l.skips=[],l.formatters={},l.selectColor=function(p){let f=0;for(let b=0;bB&&!E.warned){E.warned=!0;var L=new Error("Possible EventEmitter memory leak detected. "+E.length+" "+(C+" listeners added. Use emitter.setMaxListeners() to increase limit"));L.name="MaxListenersExceededWarning",L.emitter=S,L.type=C,L.count=E.length,c(L)}return S}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function b(S,C,T){var W={fired:!1,wrapFn:void 0,target:S,type:C,listener:T},B=f.bind(W);return B.listener=T,W.wrapFn=B,B}function h(S,C,T){var W=S._events;if(W===void 0)return[];var B=W[C];return B===void 0?[]:typeof B=="function"?T?[B.listener||B]:[B]:T?x(B):z(B,B.length)}function g(S){var C=this._events;if(C!==void 0){var T=C[S];if(typeof T=="function")return 1;if(T!==void 0)return T.length}return 0}function z(S,C){for(var T=Array(C),W=0;WS||k(S))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+S+".");q=S}}),l.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(S){if(typeof S!="number"||0>S||k(S))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+S+".");return this._maxListeners=S,this},l.prototype.getMaxListeners=function(){return d(this)},l.prototype.emit=function(S){for(var C=[],T=1;TB)return this;B===0?T.shift():y(T,B),T.length===1&&(W[S]=T[0]),W.removeListener!==void 0&&this.emit("removeListener",S,E||C)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(S){var C,T,W;if(T=this._events,T===void 0)return this;if(T.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):T[S]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete T[S]),this;if(arguments.length===0){var B,N=Object.keys(T);for(W=0;W"u")return null;var c={RTCPeerConnection:globalThis.RTCPeerConnection||globalThis.mozRTCPeerConnection||globalThis.webkitRTCPeerConnection,RTCSessionDescription:globalThis.RTCSessionDescription||globalThis.mozRTCSessionDescription||globalThis.webkitRTCSessionDescription,RTCIceCandidate:globalThis.RTCIceCandidate||globalThis.mozRTCIceCandidate||globalThis.webkitRTCIceCandidate};return c.RTCPeerConnection?c:null}},{}],9:[function(s,i,c){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */c.read=function(l,u,d,p,f){var b,h,g=8*f-p-1,z=(1<>1,x=-7,v=d?f-1:0,M=d?-1:1,A=l[u+v];for(v+=M,b=A&(1<<-x)-1,A>>=-x,x+=g;0>=-x,x+=p;0>1,_=f===23?r(2,-24)-r(2,-77):0,w=p?0:b-1,k=p?1:-1,q=0>u||u===0&&0>1/u?1:0;for(u=o(u),isNaN(u)||u===1/0?(g=isNaN(u)?1:0,h=M):(h=n(x(u)/y),1>u*(z=r(2,-h))&&(h--,z*=2),u+=1<=h+A?_/z:_*r(2,1-A),2<=u*z&&(h++,z/=2),h+A>=M?(g=0,h=M):1<=h+A?(g=(u*z-1)*r(2,f),h+=A):(g=u*r(2,A-1)*r(2,f),h=0));8<=f;l[d+w]=255&g,w+=k,g/=256,f-=8);for(h=h<=1.5*h?"s":"")}i.exports=function(f,b){b=b||{};var h=typeof f;if(h=="string"&&0 */let l;i.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window>"u"?c:window):u=>(l||(l=Promise.resolve())).then(u).catch(d=>setTimeout(()=>{throw d},0))}).call(this)}).call(this,typeof In>"u"?typeof self>"u"?typeof window>"u"?{}:window:self:In)},{}],14:[function(s,i){(function(c,l){(function(){var u=s("safe-buffer").Buffer,d=l.crypto||l.msCrypto;i.exports=d&&d.getRandomValues?function(p,f){if(p>4294967295)throw new RangeError("requested too many random bytes");var b=u.allocUnsafe(p);if(0"u"?typeof self>"u"?typeof window>"u"?{}:window:self:In)},{_process:12,"safe-buffer":30}],15:[function(s,i){function c(h,g){h.prototype=Object.create(g.prototype),h.prototype.constructor=h,h.__proto__=g}function l(h,g,z){function y(v,M,A){return typeof g=="string"?g:g(v,M,A)}z||(z=Error);var x=function(v){function M(A,_,w){return v.call(this,y(A,_,w))||this}return c(M,v),M}(z);x.prototype.name=z.name,x.prototype.code=h,b[h]=x}function u(h,g){if(Array.isArray(h)){var z=h.length;return h=h.map(function(y){return y+""}),2h.length)&&(z=h.length),h.substring(z-g.length,z)===g}function f(h,g,z){return typeof z!="number"&&(z=0),!(z+g.length>h.length)&&h.indexOf(g,z)!==-1}var b={};l("ERR_INVALID_OPT_VALUE",function(h,g){return'The value "'+g+'" is invalid for option "'+h+'"'},TypeError),l("ERR_INVALID_ARG_TYPE",function(h,g,z){var y;typeof g=="string"&&d(g,"not ")?(y="must not be",g=g.replace(/^not /,"")):y="must be";var x;if(p(h," argument"))x="The ".concat(h," ").concat(y," ").concat(u(g,"type"));else{var v=f(h,".")?"property":"argument";x='The "'.concat(h,'" ').concat(v," ").concat(y," ").concat(u(g,"type"))}return x+=". Received type ".concat(typeof z),x},TypeError),l("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),l("ERR_METHOD_NOT_IMPLEMENTED",function(h){return"The "+h+" method is not implemented"}),l("ERR_STREAM_PREMATURE_CLOSE","Premature close"),l("ERR_STREAM_DESTROYED",function(h){return"Cannot call "+h+" after a stream was destroyed"}),l("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),l("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),l("ERR_STREAM_WRITE_AFTER_END","write after end"),l("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),l("ERR_UNKNOWN_ENCODING",function(h){return"Unknown encoding: "+h},TypeError),l("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),i.exports.codes=b},{}],16:[function(s,i){(function(c){(function(){function l(y){return this instanceof l?(f.call(this,y),b.call(this,y),this.allowHalfOpen=!0,void(y&&(y.readable===!1&&(this.readable=!1),y.writable===!1&&(this.writable=!1),y.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",u))))):new l(y)}function u(){this._writableState.ended||c.nextTick(d,this)}function d(y){y.end()}var p=Object.keys||function(y){var x=[];for(var v in y)x.push(v);return x};i.exports=l;var f=s("./_stream_readable"),b=s("./_stream_writable");s("inherits")(l,f);for(var h,g=p(b.prototype),z=0;z>>1,Q|=Q>>>2,Q|=Q>>>4,Q|=Q>>>8,Q|=Q>>>16,Q++),Q}function x(Q,R){return 0>=Q||R.length===0&&R.ended?0:R.objectMode?1:Q===Q?(Q>R.highWaterMark&&(R.highWaterMark=y(Q)),Q<=R.length?Q:R.ended?R.length:(R.needReadable=!0,0)):R.flowing&&R.length?R.buffer.head.data.length:R.length}function v(Q,R){if(P("onEofChunk"),!R.ended){if(R.decoder){var j=R.decoder.end();j&&j.length&&(R.buffer.push(j),R.length+=R.objectMode?1:j.length)}R.ended=!0,R.sync?M(Q):(R.needReadable=!1,!R.emittedReadable&&(R.emittedReadable=!0,A(Q)))}}function M(Q){var R=Q._readableState;P("emitReadable",R.needReadable,R.emittedReadable),R.needReadable=!1,R.emittedReadable||(P("emitReadable",R.flowing),R.emittedReadable=!0,c.nextTick(A,Q))}function A(Q){var R=Q._readableState;P("emitReadable_",R.destroyed,R.length,R.ended),!R.destroyed&&(R.length||R.ended)&&(Q.emit("readable"),R.emittedReadable=!1),R.needReadable=!R.flowing&&!R.ended&&R.length<=R.highWaterMark,W(Q)}function _(Q,R){R.readingMore||(R.readingMore=!0,c.nextTick(w,Q,R))}function w(Q,R){for(;!R.reading&&!R.ended&&(R.length=R.length?(j=R.decoder?R.buffer.join(""):R.buffer.length===1?R.buffer.first():R.buffer.concat(R.length),R.buffer.clear()):j=R.buffer.consume(Q,R.decoder),j}function N(Q){var R=Q._readableState;P("endReadable",R.endEmitted),R.endEmitted||(R.ended=!0,c.nextTick(E,R,Q))}function E(Q,R){if(P("endReadableNT",Q.endEmitted,Q.length),!Q.endEmitted&&Q.length===0&&(Q.endEmitted=!0,R.readable=!1,R.emit("end"),Q.autoDestroy)){var j=R._writableState;(!j||j.autoDestroy&&j.finished)&&R.destroy()}}function L(Q,R){for(var j=0,V=Q.length;j=R.highWaterMark)||R.ended))return P("read: emitReadable",R.length,R.ended),R.length===0&&R.ended?N(this):M(this),null;if(Q=x(Q,R),Q===0&&R.ended)return R.length===0&&N(this),null;var V=R.needReadable;P("need readable",V),(R.length===0||R.length-Q"u"?typeof self>"u"?typeof window>"u"?{}:window:self:In)},{"../errors":15,"./_stream_duplex":16,"./internal/streams/async_iterator":21,"./internal/streams/buffer_list":22,"./internal/streams/destroy":23,"./internal/streams/from":25,"./internal/streams/state":27,"./internal/streams/stream":28,_process:12,buffer:3,events:7,inherits:10,"string_decoder/":31,util:2}],19:[function(s,i){function c(y,x){var v=this._transformState;v.transforming=!1;var M=v.writecb;if(M===null)return this.emit("error",new b);v.writechunk=null,v.writecb=null,x!=null&&this.push(x),M(y);var A=this._readableState;A.reading=!1,(A.needReadable||A.length"u"?typeof self>"u"?typeof window>"u"?{}:window:self:In)},{"../errors":15,"./_stream_duplex":16,"./internal/streams/destroy":23,"./internal/streams/state":27,"./internal/streams/stream":28,_process:12,buffer:3,inherits:10,"util-deprecate":32}],21:[function(s,i){(function(c){(function(){function l(k,q,S){return q in k?Object.defineProperty(k,q,{value:S,enumerable:!0,configurable:!0,writable:!0}):k[q]=S,k}function u(k,q){return{value:k,done:q}}function d(k){var q=k[g];if(q!==null){var S=k[A].read();S!==null&&(k[v]=null,k[g]=null,k[z]=null,q(u(S,!1)))}}function p(k){c.nextTick(d,k)}function f(k,q){return function(S,C){k.then(function(){return q[x]?void S(u(void 0,!0)):void q[M](S,C)},C)}}var b,h=s("./end-of-stream"),g=Symbol("lastResolve"),z=Symbol("lastReject"),y=Symbol("error"),x=Symbol("ended"),v=Symbol("lastPromise"),M=Symbol("handlePromise"),A=Symbol("stream"),_=Object.getPrototypeOf(function(){}),w=Object.setPrototypeOf((b={get stream(){return this[A]},next:function(){var k=this,q=this[y];if(q!==null)return Promise.reject(q);if(this[x])return Promise.resolve(u(void 0,!0));if(this[A].destroyed)return new Promise(function(W,B){c.nextTick(function(){k[y]?B(k[y]):W(u(void 0,!0))})});var S,C=this[v];if(C)S=new Promise(f(C,this));else{var T=this[A].read();if(T!==null)return Promise.resolve(u(T,!1));S=new Promise(this[M])}return this[v]=S,S}},l(b,Symbol.asyncIterator,function(){return this}),l(b,"return",function(){var k=this;return new Promise(function(q,S){k[A].destroy(null,function(C){return C?void S(C):void q(u(void 0,!0))})})}),b),_);i.exports=function(k){var q,S=Object.create(w,(q={},l(q,A,{value:k,writable:!0}),l(q,g,{value:null,writable:!0}),l(q,z,{value:null,writable:!0}),l(q,y,{value:null,writable:!0}),l(q,x,{value:k._readableState.endEmitted,writable:!0}),l(q,M,{value:function(C,T){var W=S[A].read();W?(S[v]=null,S[g]=null,S[z]=null,C(u(W,!1))):(S[g]=C,S[z]=T)},writable:!0}),q));return S[v]=null,h(k,function(C){if(C&&C.code!=="ERR_STREAM_PREMATURE_CLOSE"){var T=S[z];return T!==null&&(S[v]=null,S[g]=null,S[z]=null,T(C)),void(S[y]=C)}var W=S[g];W!==null&&(S[v]=null,S[g]=null,S[z]=null,W(u(void 0,!0))),S[x]=!0}),k.on("readable",p.bind(null,S)),S}}).call(this)}).call(this,s("_process"))},{"./end-of-stream":24,_process:12}],22:[function(s,i){function c(v,M){var A=Object.keys(v);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(v);M&&(_=_.filter(function(w){return Object.getOwnPropertyDescriptor(v,w).enumerable})),A.push.apply(A,_)}return A}function l(v){for(var M,A=1;A>>0),_=this.head,w=0;_;)b(_.data,A,w),w+=_.data.length,_=_.next;return A}},{key:"consume",value:function(M,A){var _;return Mk.length?k.length:M;if(w+=q===k.length?k:k.slice(0,M),M-=q,M===0){q===k.length?(++_,this.head=A.next?A.next:this.tail=null):(this.head=A,A.data=k.slice(q));break}++_}return this.length-=_,w}},{key:"_getBuffer",value:function(M){var A=g.allocUnsafe(M),_=this.head,w=1;for(_.data.copy(A),M-=_.data.length;_=_.next;){var k=_.data,q=M>k.length?k.length:M;if(k.copy(A,A.length-M,0,q),M-=q,M===0){q===k.length?(++w,this.head=_.next?_.next:this.tail=null):(this.head=_,_.data=k.slice(q));break}++w}return this.length-=w,A}},{key:x,value:function(M,A){return y(this,l({},A,{depth:0,customInspect:!1}))}}]),v}()},{buffer:3,util:2}],23:[function(s,i){(function(c){(function(){function l(p,f){d(p,f),u(p)}function u(p){p._writableState&&!p._writableState.emitClose||p._readableState&&!p._readableState.emitClose||p.emit("close")}function d(p,f){p.emit("error",f)}i.exports={destroy:function(p,f){var b=this,h=this._readableState&&this._readableState.destroyed,g=this._writableState&&this._writableState.destroyed;return h||g?(f?f(p):p&&(this._writableState?!this._writableState.errorEmitted&&(this._writableState.errorEmitted=!0,c.nextTick(d,this,p)):c.nextTick(d,this,p)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(p||null,function(z){!f&&z?b._writableState?b._writableState.errorEmitted?c.nextTick(u,b):(b._writableState.errorEmitted=!0,c.nextTick(l,b,z)):c.nextTick(l,b,z):f?(c.nextTick(u,b),f(z)):c.nextTick(u,b)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(p,f){var b=p._readableState,h=p._writableState;b&&b.autoDestroy||h&&h.autoDestroy?p.destroy(f):p.emit("error",f)}}}).call(this)}).call(this,s("_process"))},{_process:12}],24:[function(s,i){function c(f){var b=!1;return function(){if(!b){b=!0;for(var h=arguments.length,g=Array(h),z=0;zv.length)throw new z("streams");var _,w=v.map(function(k,q){var S=qb){var h=f?p:"highWaterMark";throw new l(h,b)}return n(b)}return u.objectMode?16:16384}}},{"../../../errors":15}],28:[function(s,i){i.exports=s("events").EventEmitter},{events:7}],29:[function(s,i,c){c=i.exports=s("./lib/_stream_readable.js"),c.Stream=c,c.Readable=c,c.Writable=s("./lib/_stream_writable.js"),c.Duplex=s("./lib/_stream_duplex.js"),c.Transform=s("./lib/_stream_transform.js"),c.PassThrough=s("./lib/_stream_passthrough.js"),c.finished=s("./lib/internal/streams/end-of-stream.js"),c.pipeline=s("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":16,"./lib/_stream_passthrough.js":17,"./lib/_stream_readable.js":18,"./lib/_stream_transform.js":19,"./lib/_stream_writable.js":20,"./lib/internal/streams/end-of-stream.js":24,"./lib/internal/streams/pipeline.js":26}],30:[function(s,i,c){function l(f,b){for(var h in f)b[h]=f[h]}function u(f,b,h){return p(f,b,h)}/*! safe-buffer. MIT License. Feross Aboukhadijeh */var d=s("buffer"),p=d.Buffer;p.from&&p.alloc&&p.allocUnsafe&&p.allocUnsafeSlow?i.exports=d:(l(d,c),c.Buffer=u),u.prototype=Object.create(p.prototype),l(p,u),u.from=function(f,b,h){if(typeof f=="number")throw new TypeError("Argument must not be a number");return p(f,b,h)},u.alloc=function(f,b,h){if(typeof f!="number")throw new TypeError("Argument must be a number");var g=p(f);return b===void 0?g.fill(0):typeof h=="string"?g.fill(b,h):g.fill(b),g},u.allocUnsafe=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return p(f)},u.allocUnsafeSlow=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return d.SlowBuffer(f)}},{buffer:3}],31:[function(s,i,c){function l(w){if(!w)return"utf8";for(var k;;)switch(w){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return w;default:if(k)return;w=(""+w).toLowerCase(),k=!0}}function u(w){var k=l(w);if(typeof k!="string"&&(A.isEncoding===_||!_(w)))throw new Error("Unknown encoding: "+w);return k||w}function d(w){this.encoding=u(w);var k;switch(this.encoding){case"utf16le":this.text=g,this.end=z,k=4;break;case"utf8":this.fillLast=h,k=4;break;case"base64":this.text=y,this.end=x,k=3;break;default:return this.write=v,void(this.end=M)}this.lastNeed=0,this.lastTotal=0,this.lastChar=A.allocUnsafe(k)}function p(w){return 127>=w?0:w>>5==6?2:w>>4==14?3:w>>3==30?4:w>>6==2?-1:-2}function f(w,k,q){var S=k.length-1;if(S=S)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1],q.slice(0,-1)}return q}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=w[w.length-1],w.toString("utf16le",k,w.length-1)}function z(w){var k=w&&w.length?this.write(w):"";if(this.lastNeed){var q=this.lastTotal-this.lastNeed;return k+this.lastChar.toString("utf16le",0,q)}return k}function y(w,k){var q=(w.length-k)%3;return q==0?w.toString("base64",k):(this.lastNeed=3-q,this.lastTotal=3,q==1?this.lastChar[0]=w[w.length-1]:(this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1]),w.toString("base64",k,w.length-q))}function x(w){var k=w&&w.length?this.write(w):"";return this.lastNeed?k+this.lastChar.toString("base64",0,3-this.lastNeed):k}function v(w){return w.toString(this.encoding)}function M(w){return w&&w.length?this.write(w):""}var A=s("safe-buffer").Buffer,_=A.isEncoding||function(w){switch(w=""+w,w&&w.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};c.StringDecoder=d,d.prototype.write=function(w){if(w.length===0)return"";var k,q;if(this.lastNeed){if(k=this.fillLast(w),k===void 0)return"";q=this.lastNeed,this.lastNeed=0}else q=0;return q"u"?typeof self>"u"?typeof window>"u"?{}:window:self:In)},{}],"/":[function(s,i){function c(x){return x.replace(/a=ice-options:trickle\s\n/g,"")}function l(x){console.warn(x)}/*! simple-peer. MIT License. Feross Aboukhadijeh */const u=s("debug")("simple-peer"),d=s("get-browser-rtc"),p=s("randombytes"),f=s("readable-stream"),b=s("queue-microtask"),h=s("err-code"),{Buffer:g}=s("buffer"),z=65536;class y extends f.Duplex{constructor(v){if(v=Object.assign({allowHalfOpen:!1},v),super(v),this._id=p(4).toString("hex").slice(0,7),this._debug("new peer %o",v),this.channelName=v.initiator?v.channelName||p(20).toString("hex"):null,this.initiator=v.initiator||!1,this.channelConfig=v.channelConfig||y.channelConfig,this.channelNegotiated=this.channelConfig.negotiated,this.config=Object.assign({},y.config,v.config),this.offerOptions=v.offerOptions||{},this.answerOptions=v.answerOptions||{},this.sdpTransform=v.sdpTransform||(M=>M),this.streams=v.streams||(v.stream?[v.stream]:[]),this.trickle=v.trickle===void 0||v.trickle,this.allowHalfTrickle=v.allowHalfTrickle!==void 0&&v.allowHalfTrickle,this.iceCompleteTimeout=v.iceCompleteTimeout||5e3,this.destroyed=!1,this.destroying=!1,this._connected=!1,this.remoteAddress=void 0,this.remoteFamily=void 0,this.remotePort=void 0,this.localAddress=void 0,this.localFamily=void 0,this.localPort=void 0,this._wrtc=v.wrtc&&typeof v.wrtc=="object"?v.wrtc:d(),!this._wrtc)throw h(typeof window>"u"?new Error("No WebRTC support: Specify `opts.wrtc` option in this environment"):new Error("No WebRTC support: Not a supported browser"),"ERR_WEBRTC_SUPPORT");this._pcReady=!1,this._channelReady=!1,this._iceComplete=!1,this._iceCompleteTimer=null,this._channel=null,this._pendingCandidates=[],this._isNegotiating=!1,this._firstNegotiation=!0,this._batchedNegotiation=!1,this._queuedNegotiation=!1,this._sendersAwaitingStable=[],this._senderMap=new Map,this._closingInterval=null,this._remoteTracks=[],this._remoteStreams=[],this._chunk=null,this._cb=null,this._interval=null;try{this._pc=new this._wrtc.RTCPeerConnection(this.config)}catch(M){return void this.destroy(h(M,"ERR_PC_CONSTRUCTOR"))}this._isReactNativeWebrtc=typeof this._pc._peerConnectionId=="number",this._pc.oniceconnectionstatechange=()=>{this._onIceStateChange()},this._pc.onicegatheringstatechange=()=>{this._onIceStateChange()},this._pc.onconnectionstatechange=()=>{this._onConnectionStateChange()},this._pc.onsignalingstatechange=()=>{this._onSignalingStateChange()},this._pc.onicecandidate=M=>{this._onIceCandidate(M)},typeof this._pc.peerIdentity=="object"&&this._pc.peerIdentity.catch(M=>{this.destroy(h(M,"ERR_PC_PEER_IDENTITY"))}),this.initiator||this.channelNegotiated?this._setupData({channel:this._pc.createDataChannel(this.channelName,this.channelConfig)}):this._pc.ondatachannel=M=>{this._setupData(M)},this.streams&&this.streams.forEach(M=>{this.addStream(M)}),this._pc.ontrack=M=>{this._onTrack(M)},this._debug("initial negotiation"),this._needsNegotiation(),this._onFinishBound=()=>{this._onFinish()},this.once("finish",this._onFinishBound)}get bufferSize(){return this._channel&&this._channel.bufferedAmount||0}get connected(){return this._connected&&this._channel.readyState==="open"}address(){return{port:this.localPort,family:this.localFamily,address:this.localAddress}}signal(v){if(!this.destroying){if(this.destroyed)throw h(new Error("cannot signal after peer is destroyed"),"ERR_DESTROYED");if(typeof v=="string")try{v=JSON.parse(v)}catch{v={}}this._debug("signal()"),v.renegotiate&&this.initiator&&(this._debug("got request to renegotiate"),this._needsNegotiation()),v.transceiverRequest&&this.initiator&&(this._debug("got request for transceiver"),this.addTransceiver(v.transceiverRequest.kind,v.transceiverRequest.init)),v.candidate&&(this._pc.remoteDescription&&this._pc.remoteDescription.type?this._addIceCandidate(v.candidate):this._pendingCandidates.push(v.candidate)),v.sdp&&this._pc.setRemoteDescription(new this._wrtc.RTCSessionDescription(v)).then(()=>{this.destroyed||(this._pendingCandidates.forEach(M=>{this._addIceCandidate(M)}),this._pendingCandidates=[],this._pc.remoteDescription.type==="offer"&&this._createAnswer())}).catch(M=>{this.destroy(h(M,"ERR_SET_REMOTE_DESCRIPTION"))}),v.sdp||v.candidate||v.renegotiate||v.transceiverRequest||this.destroy(h(new Error("signal() called with invalid signal data"),"ERR_SIGNALING"))}}_addIceCandidate(v){const M=new this._wrtc.RTCIceCandidate(v);this._pc.addIceCandidate(M).catch(A=>{!M.address||M.address.endsWith(".local")?l("Ignoring unsupported ICE candidate."):this.destroy(h(A,"ERR_ADD_ICE_CANDIDATE"))})}send(v){if(!this.destroying){if(this.destroyed)throw h(new Error("cannot send after peer is destroyed"),"ERR_DESTROYED");this._channel.send(v)}}addTransceiver(v,M){if(!this.destroying){if(this.destroyed)throw h(new Error("cannot addTransceiver after peer is destroyed"),"ERR_DESTROYED");if(this._debug("addTransceiver()"),this.initiator)try{this._pc.addTransceiver(v,M),this._needsNegotiation()}catch(A){this.destroy(h(A,"ERR_ADD_TRANSCEIVER"))}else this.emit("signal",{type:"transceiverRequest",transceiverRequest:{kind:v,init:M}})}}addStream(v){if(!this.destroying){if(this.destroyed)throw h(new Error("cannot addStream after peer is destroyed"),"ERR_DESTROYED");this._debug("addStream()"),v.getTracks().forEach(M=>{this.addTrack(M,v)})}}addTrack(v,M){if(this.destroying)return;if(this.destroyed)throw h(new Error("cannot addTrack after peer is destroyed"),"ERR_DESTROYED");this._debug("addTrack()");const A=this._senderMap.get(v)||new Map;let _=A.get(M);if(!_)_=this._pc.addTrack(v,M),A.set(M,_),this._senderMap.set(v,A),this._needsNegotiation();else throw _.removed?h(new Error("Track has been removed. You should enable/disable tracks that you want to re-add."),"ERR_SENDER_REMOVED"):h(new Error("Track has already been added to that stream."),"ERR_SENDER_ALREADY_ADDED")}replaceTrack(v,M,A){if(this.destroying)return;if(this.destroyed)throw h(new Error("cannot replaceTrack after peer is destroyed"),"ERR_DESTROYED");this._debug("replaceTrack()");const _=this._senderMap.get(v),w=_?_.get(A):null;if(!w)throw h(new Error("Cannot replace track that was never added."),"ERR_TRACK_NOT_ADDED");M&&this._senderMap.set(M,_),w.replaceTrack==null?this.destroy(h(new Error("replaceTrack is not supported in this browser"),"ERR_UNSUPPORTED_REPLACETRACK")):w.replaceTrack(M)}removeTrack(v,M){if(this.destroying)return;if(this.destroyed)throw h(new Error("cannot removeTrack after peer is destroyed"),"ERR_DESTROYED");this._debug("removeSender()");const A=this._senderMap.get(v),_=A?A.get(M):null;if(!_)throw h(new Error("Cannot remove track that was never added."),"ERR_TRACK_NOT_ADDED");try{_.removed=!0,this._pc.removeTrack(_)}catch(w){w.name==="NS_ERROR_UNEXPECTED"?this._sendersAwaitingStable.push(_):this.destroy(h(w,"ERR_REMOVE_TRACK"))}this._needsNegotiation()}removeStream(v){if(!this.destroying){if(this.destroyed)throw h(new Error("cannot removeStream after peer is destroyed"),"ERR_DESTROYED");this._debug("removeSenders()"),v.getTracks().forEach(M=>{this.removeTrack(M,v)})}}_needsNegotiation(){this._debug("_needsNegotiation"),this._batchedNegotiation||(this._batchedNegotiation=!0,b(()=>{this._batchedNegotiation=!1,this.initiator||!this._firstNegotiation?(this._debug("starting batched negotiation"),this.negotiate()):this._debug("non-initiator initial negotiation request discarded"),this._firstNegotiation=!1}))}negotiate(){if(!this.destroying){if(this.destroyed)throw h(new Error("cannot negotiate after peer is destroyed"),"ERR_DESTROYED");this.initiator?this._isNegotiating?(this._queuedNegotiation=!0,this._debug("already negotiating, queueing")):(this._debug("start negotiation"),setTimeout(()=>{this._createOffer()},0)):this._isNegotiating?(this._queuedNegotiation=!0,this._debug("already negotiating, queueing")):(this._debug("requesting negotiation from initiator"),this.emit("signal",{type:"renegotiate",renegotiate:!0})),this._isNegotiating=!0}}destroy(v){this._destroy(v,()=>{})}_destroy(v,M){this.destroyed||this.destroying||(this.destroying=!0,this._debug("destroying (error: %s)",v&&(v.message||v)),b(()=>{if(this.destroyed=!0,this.destroying=!1,this._debug("destroy (error: %s)",v&&(v.message||v)),this.readable=this.writable=!1,this._readableState.ended||this.push(null),this._writableState.finished||this.end(),this._connected=!1,this._pcReady=!1,this._channelReady=!1,this._remoteTracks=null,this._remoteStreams=null,this._senderMap=null,clearInterval(this._closingInterval),this._closingInterval=null,clearInterval(this._interval),this._interval=null,this._chunk=null,this._cb=null,this._onFinishBound&&this.removeListener("finish",this._onFinishBound),this._onFinishBound=null,this._channel){try{this._channel.close()}catch{}this._channel.onmessage=null,this._channel.onopen=null,this._channel.onclose=null,this._channel.onerror=null}if(this._pc){try{this._pc.close()}catch{}this._pc.oniceconnectionstatechange=null,this._pc.onicegatheringstatechange=null,this._pc.onsignalingstatechange=null,this._pc.onicecandidate=null,this._pc.ontrack=null,this._pc.ondatachannel=null}this._pc=null,this._channel=null,v&&this.emit("error",v),this.emit("close"),M()}))}_setupData(v){if(!v.channel)return this.destroy(h(new Error("Data channel event is missing `channel` property"),"ERR_DATA_CHANNEL"));this._channel=v.channel,this._channel.binaryType="arraybuffer",typeof this._channel.bufferedAmountLowThreshold=="number"&&(this._channel.bufferedAmountLowThreshold=z),this.channelName=this._channel.label,this._channel.onmessage=A=>{this._onChannelMessage(A)},this._channel.onbufferedamountlow=()=>{this._onChannelBufferedAmountLow()},this._channel.onopen=()=>{this._onChannelOpen()},this._channel.onclose=()=>{this._onChannelClose()},this._channel.onerror=A=>{const _=A.error instanceof Error?A.error:new Error(`Datachannel error: ${A.message} ${A.filename}:${A.lineno}:${A.colno}`);this.destroy(h(_,"ERR_DATA_CHANNEL"))};let M=!1;this._closingInterval=setInterval(()=>{this._channel&&this._channel.readyState==="closing"?(M&&this._onChannelClose(),M=!0):M=!1},5e3)}_read(){}_write(v,M,A){if(this.destroyed)return A(h(new Error("cannot write after peer is destroyed"),"ERR_DATA_CHANNEL"));if(this._connected){try{this.send(v)}catch(_){return this.destroy(h(_,"ERR_DATA_CHANNEL"))}this._channel.bufferedAmount>z?(this._debug("start backpressure: bufferedAmount %d",this._channel.bufferedAmount),this._cb=A):A(null)}else this._debug("write before connect"),this._chunk=v,this._cb=A}_onFinish(){if(!this.destroyed){const v=()=>{setTimeout(()=>this.destroy(),1e3)};this._connected?v():this.once("connect",v)}}_startIceCompleteTimeout(){this.destroyed||this._iceCompleteTimer||(this._debug("started iceComplete timeout"),this._iceCompleteTimer=setTimeout(()=>{this._iceComplete||(this._iceComplete=!0,this._debug("iceComplete timeout completed"),this.emit("iceTimeout"),this.emit("_iceComplete"))},this.iceCompleteTimeout))}_createOffer(){this.destroyed||this._pc.createOffer(this.offerOptions).then(v=>{if(this.destroyed)return;this.trickle||this.allowHalfTrickle||(v.sdp=c(v.sdp)),v.sdp=this.sdpTransform(v.sdp);const M=()=>{if(!this.destroyed){const A=this._pc.localDescription||v;this._debug("signal"),this.emit("signal",{type:A.type,sdp:A.sdp})}};this._pc.setLocalDescription(v).then(()=>{this._debug("createOffer success"),this.destroyed||(this.trickle||this._iceComplete?M():this.once("_iceComplete",M))}).catch(A=>{this.destroy(h(A,"ERR_SET_LOCAL_DESCRIPTION"))})}).catch(v=>{this.destroy(h(v,"ERR_CREATE_OFFER"))})}_requestMissingTransceivers(){this._pc.getTransceivers&&this._pc.getTransceivers().forEach(v=>{v.mid||!v.sender.track||v.requested||(v.requested=!0,this.addTransceiver(v.sender.track.kind))})}_createAnswer(){this.destroyed||this._pc.createAnswer(this.answerOptions).then(v=>{if(this.destroyed)return;this.trickle||this.allowHalfTrickle||(v.sdp=c(v.sdp)),v.sdp=this.sdpTransform(v.sdp);const M=()=>{if(!this.destroyed){const A=this._pc.localDescription||v;this._debug("signal"),this.emit("signal",{type:A.type,sdp:A.sdp}),this.initiator||this._requestMissingTransceivers()}};this._pc.setLocalDescription(v).then(()=>{this.destroyed||(this.trickle||this._iceComplete?M():this.once("_iceComplete",M))}).catch(A=>{this.destroy(h(A,"ERR_SET_LOCAL_DESCRIPTION"))})}).catch(v=>{this.destroy(h(v,"ERR_CREATE_ANSWER"))})}_onConnectionStateChange(){this.destroyed||this._pc.connectionState==="failed"&&this.destroy(h(new Error("Connection failed."),"ERR_CONNECTION_FAILURE"))}_onIceStateChange(){if(this.destroyed)return;const v=this._pc.iceConnectionState,M=this._pc.iceGatheringState;this._debug("iceStateChange (connection: %s) (gathering: %s)",v,M),this.emit("iceStateChange",v,M),(v==="connected"||v==="completed")&&(this._pcReady=!0,this._maybeReady()),v==="failed"&&this.destroy(h(new Error("Ice connection failed."),"ERR_ICE_CONNECTION_FAILURE")),v==="closed"&&this.destroy(h(new Error("Ice connection closed."),"ERR_ICE_CONNECTION_CLOSED"))}getStats(v){const M=A=>(Object.prototype.toString.call(A.values)==="[object Array]"&&A.values.forEach(_=>{Object.assign(A,_)}),A);this._pc.getStats.length===0||this._isReactNativeWebrtc?this._pc.getStats().then(A=>{const _=[];A.forEach(w=>{_.push(M(w))}),v(null,_)},A=>v(A)):0{if(this.destroyed)return;const _=[];A.result().forEach(w=>{const k={};w.names().forEach(q=>{k[q]=w.stat(q)}),k.id=w.id,k.type=w.type,k.timestamp=w.timestamp,_.push(M(k))}),v(null,_)},A=>v(A)):v(null,[])}_maybeReady(){if(this._debug("maybeReady pc %s channel %s",this._pcReady,this._channelReady),this._connected||this._connecting||!this._pcReady||!this._channelReady)return;this._connecting=!0;const v=()=>{this.destroyed||this.getStats((M,A)=>{if(this.destroyed)return;M&&(A=[]);const _={},w={},k={};let q=!1;A.forEach(C=>{(C.type==="remotecandidate"||C.type==="remote-candidate")&&(_[C.id]=C),(C.type==="localcandidate"||C.type==="local-candidate")&&(w[C.id]=C),(C.type==="candidatepair"||C.type==="candidate-pair")&&(k[C.id]=C)});const S=C=>{q=!0;let T=w[C.localCandidateId];T&&(T.ip||T.address)?(this.localAddress=T.ip||T.address,this.localPort=+T.port):T&&T.ipAddress?(this.localAddress=T.ipAddress,this.localPort=+T.portNumber):typeof C.googLocalAddress=="string"&&(T=C.googLocalAddress.split(":"),this.localAddress=T[0],this.localPort=+T[1]),this.localAddress&&(this.localFamily=this.localAddress.includes(":")?"IPv6":"IPv4");let W=_[C.remoteCandidateId];W&&(W.ip||W.address)?(this.remoteAddress=W.ip||W.address,this.remotePort=+W.port):W&&W.ipAddress?(this.remoteAddress=W.ipAddress,this.remotePort=+W.portNumber):typeof C.googRemoteAddress=="string"&&(W=C.googRemoteAddress.split(":"),this.remoteAddress=W[0],this.remotePort=+W[1]),this.remoteAddress&&(this.remoteFamily=this.remoteAddress.includes(":")?"IPv6":"IPv4"),this._debug("connect local: %s:%s remote: %s:%s",this.localAddress,this.localPort,this.remoteAddress,this.remotePort)};if(A.forEach(C=>{C.type==="transport"&&C.selectedCandidatePairId&&S(k[C.selectedCandidatePairId]),(C.type==="googCandidatePair"&&C.googActiveConnection==="true"||(C.type==="candidatepair"||C.type==="candidate-pair")&&C.selected)&&S(C)}),!q&&(!Object.keys(k).length||Object.keys(w).length))return void setTimeout(v,100);if(this._connecting=!1,this._connected=!0,this._chunk){try{this.send(this._chunk)}catch(T){return this.destroy(h(T,"ERR_DATA_CHANNEL"))}this._chunk=null,this._debug('sent chunk from "write before connect"');const C=this._cb;this._cb=null,C(null)}typeof this._channel.bufferedAmountLowThreshold!="number"&&(this._interval=setInterval(()=>this._onInterval(),150),this._interval.unref&&this._interval.unref()),this._debug("connect"),this.emit("connect")})};v()}_onInterval(){this._cb&&this._channel&&!(this._channel.bufferedAmount>z)&&this._onChannelBufferedAmountLow()}_onSignalingStateChange(){this.destroyed||(this._pc.signalingState==="stable"&&(this._isNegotiating=!1,this._debug("flushing sender queue",this._sendersAwaitingStable),this._sendersAwaitingStable.forEach(v=>{this._pc.removeTrack(v),this._queuedNegotiation=!0}),this._sendersAwaitingStable=[],this._queuedNegotiation?(this._debug("flushing negotiation queue"),this._queuedNegotiation=!1,this._needsNegotiation()):(this._debug("negotiated"),this.emit("negotiated"))),this._debug("signalingStateChange %s",this._pc.signalingState),this.emit("signalingStateChange",this._pc.signalingState))}_onIceCandidate(v){this.destroyed||(v.candidate&&this.trickle?this.emit("signal",{type:"candidate",candidate:{candidate:v.candidate.candidate,sdpMLineIndex:v.candidate.sdpMLineIndex,sdpMid:v.candidate.sdpMid}}):!v.candidate&&!this._iceComplete&&(this._iceComplete=!0,this.emit("_iceComplete")),v.candidate&&this._startIceCompleteTimeout())}_onChannelMessage(v){if(this.destroyed)return;let M=v.data;M instanceof ArrayBuffer&&(M=g.from(M)),this.push(M)}_onChannelBufferedAmountLow(){if(!this.destroyed&&this._cb){this._debug("ending backpressure: bufferedAmount %d",this._channel.bufferedAmount);const v=this._cb;this._cb=null,v(null)}}_onChannelOpen(){this._connected||this.destroyed||(this._debug("on channel open"),this._channelReady=!0,this._maybeReady())}_onChannelClose(){this.destroyed||(this._debug("on channel close"),this.destroy())}_onTrack(v){this.destroyed||v.streams.forEach(M=>{this._debug("on track"),this.emit("track",v.track,M),this._remoteTracks.push({track:v.track,stream:M}),this._remoteStreams.some(A=>A.id===M.id)||(this._remoteStreams.push(M),b(()=>{this._debug("on stream"),this.emit("stream",M)}))})}_debug(){const v=[].slice.call(arguments);v[0]="["+this._id+"] "+v[0],u.apply(null,v)}}y.WEBRTC_SUPPORT=!!d(),y.config={iceServers:[{urls:["stun:stun.l.google.com:19302","stun:global.stun.twilio.com:3478"]}],sdpSemantics:"unified-plan"},y.channelConfig={},i.exports=y},{buffer:3,debug:4,"err-code":6,"get-browser-rtc":8,"queue-microtask":13,randombytes:14,"readable-stream":29}]},{},[])("/")})})(coe);var KWe=coe.exports;const YWe=yo(KWe),iN=0,aN=1,loe=2,uoe=(e,t)=>{Wt(e,iN);const n=v8e(t);Qn(e,n)},doe=(e,t,n)=>{Wt(e,aN),Qn(e,ZB(t,n))},ZWe=(e,t,n)=>doe(t,n,P1(e)),poe=(e,t,n)=>{try{q1e(t,P1(e),n)}catch(o){console.error("Caught error while handling a Yjs update",o)}},QWe=(e,t)=>{Wt(e,loe),Qn(e,t)},JWe=poe,eTe=(e,t,n,o)=>{const r=Jt(e);switch(r){case iN:ZWe(e,t,n);break;case aN:poe(e,n,o);break;case loe:JWe(e,n,o);break;default:throw new Error("Unknown message type")}return r},eq=3e4;class tTe extends Hz{constructor(t){super(),this.doc=t,this.clientID=t.clientID,this.states=new Map,this.meta=new Map,this._checkInterval=setInterval(()=>{const n=Kc();this.getLocalState()!==null&&eq/2<=n-this.meta.get(this.clientID).lastUpdated&&this.setLocalState(this.getLocalState());const o=[];this.meta.forEach((r,s)=>{s!==this.clientID&&eq<=n-r.lastUpdated&&this.states.has(s)&&o.push(s)}),o.length>0&&M8(this,o,"timeout")},Na(eq/10)),t.on("destroy",()=>{this.destroy()}),this.setLocalState({})}destroy(){this.emit("destroy",[this]),this.setLocalState(null),super.destroy(),clearInterval(this._checkInterval)}getLocalState(){return this.states.get(this.clientID)||null}setLocalState(t){const n=this.clientID,o=this.meta.get(n),r=o===void 0?0:o.clock+1,s=this.states.get(n);t===null?this.states.delete(n):this.states.set(n,t),this.meta.set(n,{clock:r,lastUpdated:Kc()});const i=[],c=[],l=[],u=[];t===null?u.push(n):s==null?t!=null&&i.push(n):(c.push(n),EM(s,t)||l.push(n)),(i.length>0||l.length>0||u.length>0)&&this.emit("change",[{added:i,updated:l,removed:u},"local"]),this.emit("update",[{added:i,updated:c,removed:u},"local"])}setLocalStateField(t,n){const o=this.getLocalState();o!==null&&this.setLocalState({...o,[t]:n})}getStates(){return this.states}}const M8=(e,t,n)=>{const o=[];for(let r=0;r0&&(e.emit("change",[{added:[],updated:[],removed:o},n]),e.emit("update",[{added:[],updated:[],removed:o},n]))},zv=(e,t,n=e.states)=>{const o=t.length,r=F1();Wt(r,o);for(let s=0;s{const o=Ka(t),r=Kc(),s=[],i=[],c=[],l=[],u=Jt(o);for(let d=0;d0||c.length>0||l.length>0)&&e.emit("change",[{added:s,updated:c,removed:l},n]),(s.length>0||i.length>0||l.length>0)&&e.emit("update",[{added:s,updated:i,removed:l},n])},oTe=(e,t)=>{const n=c8(e).buffer,o=c8(t).buffer;return crypto.subtle.importKey("raw",n,"PBKDF2",!1,["deriveKey"]).then(r=>crypto.subtle.deriveKey({name:"PBKDF2",salt:o,iterations:1e5,hash:"SHA-256"},r,{name:"AES-GCM",length:256},!0,["encrypt","decrypt"]))},foe=(e,t)=>{if(!t)return DB(e);const n=crypto.getRandomValues(new Uint8Array(12));return crypto.subtle.encrypt({name:"AES-GCM",iv:n},t,e).then(o=>{const r=F1();return wa(r,"AES-GCM"),Qn(r,n),Qn(r,new Uint8Array(o)),Fn(r)})},rTe=(e,t)=>{const n=F1();return A2(n,e),foe(Fn(n),t)},boe=(e,t)=>{if(!t)return DB(e);const n=Ka(e);Tc(n)!=="AES-GCM"&&qRe(Ri("Unknown encryption algorithm"));const r=P1(n),s=P1(n);return crypto.subtle.decrypt({name:"AES-GCM",iv:r},t,s).then(i=>new Uint8Array(i))},hoe=(e,t)=>boe(e,t).then(n=>y2(Ka(new Uint8Array(n)))),U1=i8e("y-webrtc"),Xb=0,moe=3,Sg=1,cN=4,Cg=new Map,qa=new Map,Moe=e=>{let t=!0;e.webrtcConns.forEach(n=>{n.synced||(t=!1)}),(!t&&e.synced||t&&!e.synced)&&(e.synced=t,e.provider.emit("synced",[{synced:t}]),U1("synced ",Ls,e.name,Cp," with all peers"))},goe=(e,t,n)=>{const o=Ka(t),r=F1(),s=Jt(o);if(e===void 0)return null;const i=e.awareness,c=e.doc;let l=!1;switch(s){case Xb:{Wt(r,Xb);const u=eTe(o,r,c,e);u===aN&&!e.synced&&n(),u===iN&&(l=!0);break}case moe:Wt(r,Sg),Qn(r,zv(i,Array.from(i.getStates().keys()))),l=!0;break;case Sg:nTe(i,P1(o),e);break;case cN:{const u=Sp(o)===1,d=Tc(o);if(d!==e.peerId&&(e.bcConns.has(d)&&!u||!e.bcConns.has(d)&&u)){const p=[],f=[];u?(e.bcConns.add(d),f.push(d)):(e.bcConns.delete(d),p.push(d)),e.provider.emit("peers",[{added:f,removed:p,webrtcPeers:Array.from(e.webrtcConns.keys()),bcPeers:Array.from(e.bcConns)}]),zoe(e)}break}default:return console.error("Unable to compute message"),r}return l?r:null},sTe=(e,t)=>{const n=e.room;return U1("received message from ",Ls,e.remotePeerId,HB," (",n.name,")",Cp,jx),goe(n,t,()=>{e.synced=!0,U1("synced ",Ls,n.name,Cp," with ",Ls,e.remotePeerId),Moe(n)})},tq=(e,t)=>{U1("send message to ",Ls,e.remotePeerId,Cp,HB," (",e.room.name,")",jx);try{e.peer.send(Fn(t))}catch{}},iTe=(e,t)=>{U1("broadcast message in ",Ls,e.name,Cp),e.webrtcConns.forEach(n=>{try{n.peer.send(t)}catch{}})};class Ov{constructor(t,n,o,r){U1("establishing connection to ",Ls,o),this.room=r,this.remotePeerId=o,this.glareToken=void 0,this.closed=!1,this.connected=!1,this.synced=!1,this.peer=new YWe({initiator:n,...r.provider.peerOpts}),this.peer.on("signal",s=>{this.glareToken===void 0&&(this.glareToken=Date.now()+Math.random()),$x(t,r,{to:o,from:r.peerId,type:"signal",token:this.glareToken,signal:s})}),this.peer.on("connect",()=>{U1("connected to ",Ls,o),this.connected=!0;const i=r.provider.doc,c=r.awareness,l=F1();Wt(l,Xb),uoe(l,i),tq(this,l);const u=c.getStates();if(u.size>0){const d=F1();Wt(d,Sg),Qn(d,zv(c,Array.from(u.keys()))),tq(this,d)}}),this.peer.on("close",()=>{this.connected=!1,this.closed=!0,r.webrtcConns.has(this.remotePeerId)&&(r.webrtcConns.delete(this.remotePeerId),r.provider.emit("peers",[{removed:[this.remotePeerId],added:[],webrtcPeers:Array.from(r.webrtcConns.keys()),bcPeers:Array.from(r.bcConns)}])),Moe(r),this.peer.destroy(),U1("closed connection to ",Ls,o),g8(r)}),this.peer.on("error",s=>{U1("Error in connection to ",Ls,o,": ",s),g8(r)}),this.peer.on("data",s=>{const i=sTe(this,s);i!==null&&tq(this,i)})}destroy(){this.peer.destroy()}}const Vl=(e,t)=>foe(t,e.key).then(n=>e.mux(()=>XWe(e.name,n))),MV=(e,t)=>{e.bcconnected&&Vl(e,t),iTe(e,t)},g8=e=>{Cg.forEach(t=>{t.connected&&(t.send({type:"subscribe",topics:[e.name]}),e.webrtcConns.size{if(e.provider.filterBcConns){const t=F1();Wt(t,cN),_g(t,1),wa(t,e.peerId),Vl(e,Fn(t))}};class aTe{constructor(t,n,o,r){this.peerId=r1e(),this.doc=t,this.awareness=n.awareness,this.provider=n,this.synced=!1,this.name=o,this.key=r,this.webrtcConns=new Map,this.bcConns=new Set,this.mux=GWe(),this.bcconnected=!1,this._bcSubscriber=s=>boe(new Uint8Array(s),r).then(i=>this.mux(()=>{const c=goe(this,i,()=>{});c&&Vl(this,Fn(c))})),this._docUpdateHandler=(s,i)=>{const c=F1();Wt(c,Xb),QWe(c,s),MV(this,Fn(c))},this._awarenessUpdateHandler=({added:s,updated:i,removed:c},l)=>{const u=s.concat(i).concat(c),d=F1();Wt(d,Sg),Qn(d,zv(this.awareness,u)),MV(this,Fn(d))},this._beforeUnloadHandler=()=>{M8(this.awareness,[t.clientID],"window unload"),qa.forEach(s=>{s.disconnect()})},typeof window<"u"?window.addEventListener("beforeunload",this._beforeUnloadHandler):typeof process<"u"&&process.on("exit",this._beforeUnloadHandler)}connect(){this.doc.on("update",this._docUpdateHandler),this.awareness.on("update",this._awarenessUpdateHandler),g8(this);const t=this.name;HWe(t,this._bcSubscriber),this.bcconnected=!0,zoe(this);const n=F1();Wt(n,Xb),uoe(n,this.doc),Vl(this,Fn(n));const o=F1();Wt(o,Xb),doe(o,this.doc),Vl(this,Fn(o));const r=F1();Wt(r,moe),Vl(this,Fn(r));const s=F1();Wt(s,Sg),Qn(s,zv(this.awareness,[this.doc.clientID])),Vl(this,Fn(s))}disconnect(){Cg.forEach(n=>{n.connected&&n.send({type:"unsubscribe",topics:[this.name]})}),M8(this.awareness,[this.doc.clientID],"disconnect");const t=F1();Wt(t,cN),_g(t,0),wa(t,this.peerId),Vl(this,Fn(t)),UWe(this.name,this._bcSubscriber),this.bcconnected=!1,this.doc.off("update",this._docUpdateHandler),this.awareness.off("update",this._awarenessUpdateHandler),this.webrtcConns.forEach(n=>n.destroy())}destroy(){this.disconnect(),typeof window<"u"?window.removeEventListener("beforeunload",this._beforeUnloadHandler):typeof process<"u"&&process.off("exit",this._beforeUnloadHandler)}}const cTe=(e,t,n,o)=>{if(qa.has(n))throw Ri(`A Yjs Doc connected to room "${n}" already exists!`);const r=new aTe(e,t,n,o);return qa.set(n,r),r},$x=(e,t,n)=>{t.key?rTe(n,t.key).then(o=>{e.send({type:"publish",topic:t.name,data:f1e(o)})}):e.send({type:"publish",topic:t.name,data:n})};class Ooe extends FWe{constructor(t){super(t),this.providers=new Set,this.on("connect",()=>{U1(`connected (${t})`);const n=Array.from(qa.keys());this.send({type:"subscribe",topics:n}),qa.forEach(o=>$x(this,o,{type:"announce",from:o.peerId}))}),this.on("message",n=>{switch(n.type){case"publish":{const o=n.topic,r=qa.get(o);if(r==null||typeof o!="string")return;const s=i=>{const c=r.webrtcConns,l=r.peerId;if(i==null||i.from===l||i.to!==void 0&&i.to!==l||r.bcConns.has(i.from))return;const u=c.has(i.from)?()=>{}:()=>r.provider.emit("peers",[{removed:[],added:[i.from],webrtcPeers:Array.from(r.webrtcConns.keys()),bcPeers:Array.from(r.bcConns)}]);switch(i.type){case"announce":c.sizenew Ov(this,!0,i.from,r)),u());break;case"signal":if(i.signal.type==="offer"){const d=c.get(i.from);if(d){const p=i.token,f=d.glareToken;if(f&&f>p){U1("offer rejected: ",i.from);return}d.glareToken=void 0}}if(i.signal.type==="answer"){U1("offer answered by: ",i.from);const d=c.get(i.from);d.glareToken=void 0}i.to===l&&(Fo(c,i.from,()=>new Ov(this,!1,i.from,r)).peer.signal(i.signal),u());break}};r.key?typeof n.data=="string"&&hoe(VB(n.data),r.key).then(s):s(n.data)}}}),this.on("disconnect",()=>U1(`disconnect (${t})`))}}class lTe extends Hz{constructor(t,n,{signaling:o=["wss://y-webrtc-eu.fly.dev"],password:r=null,awareness:s=new tTe(n),maxConns:i=20+Na(wRe()*15),filterBcConns:c=!0,peerOpts:l={}}={}){super(),this.roomName=t,this.doc=n,this.filterBcConns=c,this.awareness=s,this.shouldConnect=!1,this.signalingUrls=o,this.signalingConns=[],this.maxConns=i,this.peerOpts=l,this.key=r?oTe(r,t):DB(null),this.room=null,this.key.then(u=>{this.room=cTe(n,this,t,u),this.shouldConnect?this.room.connect():this.room.disconnect()}),this.connect(),this.destroy=this.destroy.bind(this),n.on("destroy",this.destroy)}get connected(){return this.room!==null&&this.shouldConnect}connect(){this.shouldConnect=!0,this.signalingUrls.forEach(t=>{const n=Fo(Cg,t,()=>new Ooe(t));this.signalingConns.push(n),n.providers.add(this)}),this.room&&this.room.connect()}disconnect(){this.shouldConnect=!1,this.signalingConns.forEach(t=>{t.providers.delete(this),t.providers.size===0&&(t.destroy(),Cg.delete(t.url))}),this.room&&this.room.disconnect()}destroy(){this.doc.off("destroy",this.destroy),this.key.then(()=>{this.room.destroy(),qa.delete(this.roomName)}),super.destroy()}}function uTe(e,t){e.on("connect",()=>{U1(`connected (${t})`);const n=Array.from(qa.keys());e.send({type:"subscribe",topics:n}),qa.forEach(o=>$x(e,o,{type:"announce",from:o.peerId}))}),e.on("message",n=>{switch(n.type){case"publish":{const o=n.topic,r=qa.get(o);if(r===null||typeof o!="string"||r===void 0)return;const s=i=>{const c=r.webrtcConns,l=r.peerId;if(i===null||i.from===l||i.to!==void 0&&i.to!==l||r.bcConns.has(i.from))return;const u=c.has(i.from)?()=>{}:()=>r.provider.emit("peers",[{removed:[],added:[i.from],webrtcPeers:Array.from(r.webrtcConns.keys()),bcPeers:Array.from(r.bcConns)}]);switch(i.type){case"announce":c.sizenew Ov(e,!0,i.from,r)),u());break;case"signal":if(i.signal.type==="offer"){const d=c.get(i.from);if(d){const p=i.token,f=d.glareToken;if(f&&f>p){U1("offer rejected: ",i.from);return}d.glareToken=void 0}}if(i.signal.type==="answer"){U1("offer answered by: ",i.from);const d=c.get(i.from);d&&(d.glareToken=void 0)}i.to===l&&(Fo(c,i.from,()=>new Ov(e,!1,i.from,r)).peer.signal(i.signal),u());break}};r.key?typeof n.data=="string"&&hoe(VB(n.data),r.key).then(s):s(n.data)}}}),e.on("disconnect",()=>U1(`disconnect (${t})`))}function gV(e){if(e.shouldConnect&&e.ws===null){const t=Math.floor(1e5+Math.random()*9e5),n=e.url,o=new window.EventSource(wt(n,{subscriber_id:t,action:"gutenberg_signaling_server"}));let r=null;o.onmessage=l=>{e.lastMessageReceived=Date.now();const u=l.data;if(u){const d=JSON.parse(u);Array.isArray(d)&&d.forEach(s)}},e.ws=o,e.connecting=!0,e.connected=!1;const s=l=>{l&&l.type==="pong"&&(clearTimeout(r),r=setTimeout(c,Av/2)),e.emit("message",[l,e])},i=l=>{e.ws!==null&&(e.ws.close(),e.ws=null,e.connecting=!1,e.connected?(e.connected=!1,e.emit("disconnect",[{type:"disconnect",error:l},e])):e.unsuccessfulReconnects++),clearTimeout(r)},c=()=>{e.ws&&e.ws.readyState===window.EventSource.OPEN&&e.send({type:"ping"})};e.ws&&(e.ws.onclose=()=>{i(null)},e.ws.send=function(u){window.fetch(n,{body:new URLSearchParams({subscriber_id:t.toString(),action:"gutenberg_signaling_server",message:u}),method:"POST"}).catch(()=>{U1("Error sending to server with message: "+u)})}),o.onerror=()=>{},o.onopen=()=>{e.connected||o.readyState===window.EventSource.OPEN&&(e.lastMessageReceived=Date.now(),e.connecting=!1,e.connected=!0,e.unsuccessfulReconnects=0,e.emit("connect",[{type:"connect"},e]),r=setTimeout(c,Av/2))}}}const Av=3e4;class dTe extends Hz{constructor(t){super(),this.url=t,this.ws=null,this.binaryType=null,this.connected=!1,this.connecting=!1,this.unsuccessfulReconnects=0,this.lastMessageReceived=0,this.shouldConnect=!0,this._checkInterval=setInterval(()=>{this.connected&&Av{const n=Fo(Cg,t,t.startsWith("ws://")||t.startsWith("wss://")?()=>new Ooe(t):()=>new dTe(t));this.signalingConns.push(n),n.providers.add(this)}),this.room&&this.room.connect()}}function fTe({signaling:e,password:t}){return function(n,o,r){const s=`${o}-${n}`;return new pTe(s,r,{signaling:e,password:t}),Promise.resolve(()=>!0)}}const bTe=(e,t)=>{const n={},o={},r={};function s(u,d){n[u]=d}async function i(u,d,p){const f=new fh;r[u]=r[u]||{},r[u][d]=f;const b=()=>{const z=n[u].fromCRDTDoc(f);p(z)};f.on("update",b);const h=await e(d,u,f);t&&await t(d,u,f);const g=n[u].fetch;g&&g(d).then(z=>{f.transact(()=>{n[u].applyChangesToDoc(f,z)})}),o[u]=o[u]||{},o[u][d]=()=>{h(),f.off("update",b)}}async function c(u,d,p){const f=r[u][d];if(!f)throw"Error doc "+u+" "+d+" not found";f.transact(()=>{n[u].applyChangesToDoc(f,p)})}async function l(u,d){o?.[u]?.[d]&&o[u][d]()}return{register:s,bootstrap:i,update:c,discard:l}};let nq;function Rg(){return nq||(nq=bTe(PWe,fTe({signaling:[window?.wp?.ajax?.settings?.url],password:window?.__experimentalCollaborativeEditingSecret}))),nq}function hTe(e,t){return{type:"RECEIVE_USER_QUERY",users:Array.isArray(t)?t:[t],queryID:e}}function mTe(e){return{type:"RECEIVE_CURRENT_USER",currentUser:e}}function Aoe(e){return{type:"ADD_ENTITIES",entities:e}}function MTe(e,t,n,o,r=!1,s,i){e==="postType"&&(n=(Array.isArray(n)?n:[n]).map(l=>l.status==="auto-draft"?{...l,title:""}:l));let c;return o?c=wSe(n,o,s,i):c=jne(n,s,i),{...c,kind:e,name:t,invalidateCache:r}}function gTe(e){return{type:"RECEIVE_CURRENT_THEME",currentTheme:e}}function zTe(e){return{type:"RECEIVE_CURRENT_GLOBAL_STYLES_ID",id:e}}function OTe(e,t){return{type:"RECEIVE_THEME_GLOBAL_STYLES",stylesheet:e,globalStyles:t}}function ATe(e,t){return{type:"RECEIVE_THEME_GLOBAL_STYLE_VARIATIONS",stylesheet:e,variations:t}}function yTe(){return Re("wp.data.dispatch( 'core' ).receiveThemeSupports",{since:"5.9"}),{type:"DO_NOTHING"}}function vTe(e,t){return Re("wp.data.dispatch( 'core' ).receiveThemeGlobalStyleRevisions()",{since:"6.5.0",alternative:"wp.data.dispatch( 'core' ).receiveRevisions"}),{type:"RECEIVE_THEME_GLOBAL_STYLE_REVISIONS",currentId:e,revisions:t}}function xTe(e,t){return{type:"RECEIVE_EMBED_PREVIEW",url:e,preview:t}}const yoe=(e,t,n,o,{__unstableFetch:r=ct,throwOnError:s=!1}={})=>async({dispatch:i})=>{const l=(await i(Ya(e,t))).find(f=>f.kind===e&&f.name===t);let u,d=!1;if(!l)return;const p=await i.__unstableAcquireStoreLock(bo,["entities","records",e,t,n],{exclusive:!0});try{i({type:"DELETE_ENTITY_RECORD_START",kind:e,name:t,recordId:n});let f=!1;try{let b=`${l.baseURL}/${n}`;o&&(b=wt(b,o)),d=await r({path:b,method:"DELETE"}),await i(_Se(e,t,n,!0))}catch(b){f=!0,u=b}if(i({type:"DELETE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:n,error:u}),f&&s)throw u;return d}finally{i.__unstableReleaseStoreLock(p)}},_Te=(e,t,n,o,r={})=>({select:s,dispatch:i})=>{const c=s.getEntityConfig(e,t);if(!c)throw new Error(`The entity being edited (${e}, ${t}) does not have a loaded config.`);const{mergedEdits:l={}}=c,u=s.getRawEntityRecord(e,t,n),d=s.getEditedEntityRecord(e,t,n),p={kind:e,name:t,recordId:n,edits:Object.keys(o).reduce((f,b)=>{const h=u[b],g=d[b],z=l[b]?{...g,...o[b]}:o[b];return f[b]=J1(h,z)?void 0:z,f},{})};if(window.__experimentalEnableSync&&c.syncConfig){if(globalThis.IS_GUTENBERG_PLUGIN){const f=c.getSyncObjectId(n);Rg().update(c.syncObjectType+"--edit",f,p.edits)}}else r.undoIgnore||s.getUndoManager().addRecord([{id:{kind:e,name:t,recordId:n},changes:Object.keys(o).reduce((f,b)=>(f[b]={from:d[b],to:o[b]},f),{})}],r.isCached),i({type:"EDIT_ENTITY_RECORD",...p})},wTe=()=>({select:e,dispatch:t})=>{const n=e.getUndoManager().undo();n&&t({type:"UNDO",record:n})},kTe=()=>({select:e,dispatch:t})=>{const n=e.getUndoManager().redo();n&&t({type:"REDO",record:n})},qTe=()=>({select:e})=>{e.getUndoManager().addRecord()},voe=(e,t,n,{isAutosave:o=!1,__unstableFetch:r=ct,throwOnError:s=!1}={})=>async({select:i,resolveSelect:c,dispatch:l})=>{const d=(await l(Ya(e,t))).find(h=>h.kind===e&&h.name===t);if(!d)return;const p=d.key||Oo,f=n[p],b=await l.__unstableAcquireStoreLock(bo,["entities","records",e,t,f||Xc()],{exclusive:!0});try{for(const[y,x]of Object.entries(n))if(typeof x=="function"){const v=x(i.getEditedEntityRecord(e,t,f));l.editEntityRecord(e,t,f,{[y]:v},{undoIgnore:!0}),n[y]=v}l({type:"SAVE_ENTITY_RECORD_START",kind:e,name:t,recordId:f,isAutosave:o});let h,g,z=!1;try{const y=`${d.baseURL}${f?"/"+f:""}`,x=i.getRawEntityRecord(e,t,f);if(o){const v=i.getCurrentUser(),M=v?v.id:void 0,A=await c.getAutosave(x.type,x.id,M);let _={...x,...A,...n};if(_=Object.keys(_).reduce((w,k)=>(["title","excerpt","content","meta"].includes(k)&&(w[k]=_[k]),w),{status:_.status==="auto-draft"?"draft":void 0}),h=await r({path:`${y}/autosaves`,method:"POST",data:_}),x.id===h.id){let w={...x,..._,...h};w=Object.keys(w).reduce((k,q)=>(["title","excerpt","content"].includes(q)?k[q]=w[q]:q==="status"?k[q]=x.status==="auto-draft"&&w.status==="draft"?w.status:x.status:k[q]=x[q],k),{}),l.receiveEntityRecords(e,t,w,void 0,!0)}else l.receiveAutosaves(x.id,h)}else{let v=n;d.__unstablePrePersist&&(v={...v,...d.__unstablePrePersist(x,v)}),h=await r({path:y,method:f?"PUT":"POST",data:v}),l.receiveEntityRecords(e,t,h,void 0,!0,v)}}catch(y){z=!0,g=y}if(l({type:"SAVE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:f,error:g,isAutosave:o}),z&&s)throw g;return h}finally{l.__unstableReleaseStoreLock(b)}},STe=e=>async({dispatch:t})=>{const n=$Ce(),o={saveEntityRecord(i,c,l,u){return n.add(d=>t.saveEntityRecord(i,c,l,{...u,__unstableFetch:d}))},saveEditedEntityRecord(i,c,l,u){return n.add(d=>t.saveEditedEntityRecord(i,c,l,{...u,__unstableFetch:d}))},deleteEntityRecord(i,c,l,u,d){return n.add(p=>t.deleteEntityRecord(i,c,l,u,{...d,__unstableFetch:p}))}},r=e.map(i=>i(o)),[,...s]=await Promise.all([n.run(),...r]);return s},CTe=(e,t,n,o)=>async({select:r,dispatch:s})=>{if(!r.hasEditsForEntityRecord(e,t,n))return;const c=(await s(Ya(e,t))).find(p=>p.kind===e&&p.name===t);if(!c)return;const l=c.key||Oo,u=r.getEntityRecordNonTransientEdits(e,t,n),d={[l]:n,...u};return await s.saveEntityRecord(e,t,d,o)},RTe=(e,t,n,o,r)=>async({select:s,dispatch:i})=>{if(!s.hasEditsForEntityRecord(e,t,n))return;const c=s.getEntityRecordNonTransientEdits(e,t,n),l={};for(const f of o)Tx(l,f,vSe(c,f));const p=(await i(Ya(e,t))).find(f=>f.kind===e&&f.name===t)?.key||Oo;return n&&(l[p]=n),await i.saveEntityRecord(e,t,l,r)};function WTe(e){return Re("wp.data.dispatch( 'core' ).receiveUploadPermissions",{since:"5.9",alternative:"receiveUserPermission"}),xoe("create/media",e)}function xoe(e,t){return{type:"RECEIVE_USER_PERMISSION",key:e,isAllowed:t}}function TTe(e){return{type:"RECEIVE_USER_PERMISSIONS",permissions:e}}function ETe(e,t){return{type:"RECEIVE_AUTOSAVES",postId:e,autosaves:Array.isArray(t)?t:[t]}}function BTe(e){return{type:"RECEIVE_NAVIGATION_FALLBACK_ID",fallbackId:e}}function NTe(e,t){return{type:"RECEIVE_DEFAULT_TEMPLATE",query:e,templateId:t}}const LTe=(e,t,n,o,r,s=!1,i)=>async({dispatch:c})=>{const u=(await c(Ya(e,t))).find(p=>p.kind===e&&p.name===t),d=u&&u?.revisionKey?u.revisionKey:Oo;c({type:"RECEIVE_ITEM_REVISIONS",key:d,items:Array.isArray(o)?o:[o],recordKey:n,meta:i,query:r,kind:e,name:t,invalidateCache:s})},jTe=Object.freeze(Object.defineProperty({__proto__:null,__experimentalBatch:STe,__experimentalReceiveCurrentGlobalStylesId:zTe,__experimentalReceiveThemeBaseGlobalStyles:OTe,__experimentalReceiveThemeGlobalStyleVariations:ATe,__experimentalSaveSpecifiedEntityEdits:RTe,__unstableCreateUndoLevel:qTe,addEntities:Aoe,deleteEntityRecord:yoe,editEntityRecord:_Te,receiveAutosaves:ETe,receiveCurrentTheme:gTe,receiveCurrentUser:mTe,receiveDefaultTemplateId:NTe,receiveEmbedPreview:xTe,receiveEntityRecords:MTe,receiveNavigationFallbackId:BTe,receiveRevisions:LTe,receiveThemeGlobalStyleRevisions:vTe,receiveThemeSupports:yTe,receiveUploadPermissions:WTe,receiveUserPermission:xoe,receiveUserPermissions:TTe,receiveUserQuery:hTe,redo:kTe,saveEditedEntityRecord:CTe,saveEntityRecord:voe,undo:wTe},Symbol.toStringTag,{value:"Module"})),Oo="id",PTe=["title","excerpt","content"],_oe=[{label:m("Base"),kind:"root",name:"__unstableBase",baseURL:"/",baseURLParams:{_fields:["description","gmt_offset","home","name","site_icon","site_icon_url","site_logo","timezone_string","url"].join(",")},plural:"__unstableBases",syncConfig:{fetch:async()=>ct({path:"/"}),applyChangesToDoc:(e,t)=>{const n=e.getMap("document");Object.entries(t).forEach(([o,r])=>{n.get(o)!==r&&n.set(o,r)})},fromCRDTDoc:e=>e.getMap("document").toJSON()},syncObjectType:"root/base",getSyncObjectId:()=>"index"},{label:m("Post Type"),name:"postType",kind:"root",key:"slug",baseURL:"/wp/v2/types",baseURLParams:{context:"edit"},plural:"postTypes",syncConfig:{fetch:async e=>ct({path:`/wp/v2/types/${e}?context=edit`}),applyChangesToDoc:(e,t)=>{const n=e.getMap("document");Object.entries(t).forEach(([o,r])=>{n.get(o)!==r&&n.set(o,r)})},fromCRDTDoc:e=>e.getMap("document").toJSON()},syncObjectType:"root/postType",getSyncObjectId:e=>e},{name:"media",kind:"root",baseURL:"/wp/v2/media",baseURLParams:{context:"edit"},plural:"mediaItems",label:m("Media"),rawAttributes:["caption","title","description"],supportsPagination:!0},{name:"taxonomy",kind:"root",key:"slug",baseURL:"/wp/v2/taxonomies",baseURLParams:{context:"edit"},plural:"taxonomies",label:m("Taxonomy")},{name:"sidebar",kind:"root",baseURL:"/wp/v2/sidebars",baseURLParams:{context:"edit"},plural:"sidebars",transientEdits:{blocks:!0},label:m("Widget areas")},{name:"widget",kind:"root",baseURL:"/wp/v2/widgets",baseURLParams:{context:"edit"},plural:"widgets",transientEdits:{blocks:!0},label:m("Widgets")},{name:"widgetType",kind:"root",baseURL:"/wp/v2/widget-types",baseURLParams:{context:"edit"},plural:"widgetTypes",label:m("Widget types")},{label:m("User"),name:"user",kind:"root",baseURL:"/wp/v2/users",baseURLParams:{context:"edit"},plural:"users"},{name:"comment",kind:"root",baseURL:"/wp/v2/comments",baseURLParams:{context:"edit"},plural:"comments",label:m("Comment")},{name:"menu",kind:"root",baseURL:"/wp/v2/menus",baseURLParams:{context:"edit"},plural:"menus",label:m("Menu")},{name:"menuItem",kind:"root",baseURL:"/wp/v2/menu-items",baseURLParams:{context:"edit"},plural:"menuItems",label:m("Menu Item"),rawAttributes:["title"]},{name:"menuLocation",kind:"root",baseURL:"/wp/v2/menu-locations",baseURLParams:{context:"edit"},plural:"menuLocations",label:m("Menu Location"),key:"name"},{label:m("Global Styles"),name:"globalStyles",kind:"root",baseURL:"/wp/v2/global-styles",baseURLParams:{context:"edit"},plural:"globalStylesVariations",getTitle:e=>e?.title?.rendered||e?.title,getRevisionsUrl:(e,t)=>`/wp/v2/global-styles/${e}/revisions${t?"/"+t:""}`,supportsPagination:!0},{label:m("Themes"),name:"theme",kind:"root",baseURL:"/wp/v2/themes",baseURLParams:{context:"edit"},plural:"themes",key:"stylesheet"},{label:m("Plugins"),name:"plugin",kind:"root",baseURL:"/wp/v2/plugins",baseURLParams:{context:"edit"},plural:"plugins",key:"plugin"},{label:m("Status"),name:"status",kind:"root",baseURL:"/wp/v2/statuses",baseURLParams:{context:"edit"},plural:"statuses",key:"slug"}],woe=[{kind:"postType",loadEntities:FTe},{kind:"taxonomy",loadEntities:$Te},{kind:"root",name:"site",plural:"sites",loadEntities:VTe}],ITe=(e,t)=>{const n={};return e?.status==="auto-draft"&&(!t.status&&!n.status&&(n.status="draft"),(!t.title||t.title==="Auto Draft")&&!n.title&&(!e?.title||e?.title==="Auto Draft")&&(n.title="")),n},oq=new WeakMap;function DTe(e){const t={...e};for(const[n,o]of Object.entries(e))o instanceof un&&(t[n]=o.valueOf());return t}function koe(e){return e.map(t=>{const{innerBlocks:n,attributes:o,...r}=t;return{...r,attributes:DTe(o),innerBlocks:koe(n)}})}async function FTe(){const e=await ct({path:"/wp/v2/types?context=view"});return Object.entries(e??{}).map(([t,n])=>{var o;const r=["wp_template","wp_template_part"].includes(t),s=(o=n?.rest_namespace)!==null&&o!==void 0?o:"wp/v2";return{kind:"postType",baseURL:`/${s}/${n.rest_base}`,baseURLParams:{context:"edit"},name:t,label:n.name,transientEdits:{blocks:!0,selection:!0},mergedEdits:{meta:!0},rawAttributes:PTe,getTitle:i=>{var c;return i?.title?.rendered||i?.title||(r?v0e((c=i.slug)!==null&&c!==void 0?c:""):String(i.id))},__unstablePrePersist:r?void 0:ITe,__unstable_rest_base:n.rest_base,syncConfig:{fetch:async i=>ct({path:`/${s}/${n.rest_base}/${i}?context=edit`}),applyChangesToDoc:(i,c)=>{const l=i.getMap("document");Object.entries(c).forEach(([u,d])=>{typeof d!="function"&&(u==="blocks"&&(oq.has(d)||oq.set(d,koe(d)),d=oq.get(d)),l.get(u)!==d&&l.set(u,d))})},fromCRDTDoc:i=>i.getMap("document").toJSON()},syncObjectType:"postType/"+n.name,getSyncObjectId:i=>i,supportsPagination:!0,getRevisionsUrl:(i,c)=>`/${s}/${n.rest_base}/${i}/revisions${c?"/"+c:""}`,revisionKey:r?"wp_id":Oo}})}async function $Te(){const e=await ct({path:"/wp/v2/taxonomies?context=view"});return Object.entries(e??{}).map(([t,n])=>{var o;return{kind:"taxonomy",baseURL:`/${(o=n?.rest_namespace)!==null&&o!==void 0?o:"wp/v2"}/${n.rest_base}`,baseURLParams:{context:"edit"},name:t,label:n.name}})}async function VTe(){var e;const t={label:m("Site"),name:"site",kind:"root",baseURL:"/wp/v2/settings",syncConfig:{fetch:async()=>ct({path:"/wp/v2/settings"}),applyChangesToDoc:(r,s)=>{const i=r.getMap("document");Object.entries(s).forEach(([c,l])=>{i.get(c)!==l&&i.set(c,l)})},fromCRDTDoc:r=>r.getMap("document").toJSON()},syncObjectType:"root/site",getSyncObjectId:()=>"index",meta:{}},n=await ct({path:t.baseURL,method:"OPTIONS"}),o={};return Object.entries((e=n?.schema?.properties)!==null&&e!==void 0?e:{}).forEach(([r,s])=>{typeof s=="object"&&s.title&&(o[r]=s.title)}),[{...t,meta:{labels:o}}]}const S2=(e,t,n="get")=>{const o=e==="root"?"":ov(e),r=ov(t);return`${n}${o}${r}`};function zV(e){e.forEach(({syncObjectType:t,syncConfig:n})=>{Rg().register(t,n);const o={...n};delete o.fetch,Rg().register(t+"--edit",o)})}const Ya=(e,t)=>async({select:n,dispatch:o})=>{let r=n.getEntitiesConfig(e);const s=!!n.getEntityConfig(e,t);if(r?.length>0&&s)return window.__experimentalEnableSync&&globalThis.IS_GUTENBERG_PLUGIN&&zV(r),r;const i=woe.find(c=>!t||!c.name?c.kind===e:c.kind===e&&c.name===t);return i?(r=await i.loadEntities(),window.__experimentalEnableSync&&globalThis.IS_GUTENBERG_PLUGIN&&zV(r),o(Aoe(r)),r):[]};function qoe(e){const{query:t}=e;return t?uh(t).context:"default"}function HTe(e,t,n,o){var r;if(n===1&&o===-1)return t;const i=(n-1)*o,c=Math.max((r=e?.length)!==null&&r!==void 0?r:0,i+t.length),l=new Array(c);for(let u=0;u=i&&u!t.some(o=>Number.isInteger(o)?o===+n:o===n)))}function UTe(e={},t){switch(t.type){case"RECEIVE_ITEMS":{const n=qoe(t),o=t.key||Oo;return{...e,[n]:{...e[n],...t.items.reduce((r,s)=>{const i=s?.[o];return r[i]=OSe(e?.[n]?.[i],s),r},{})}}}case"REMOVE_ITEMS":return Object.fromEntries(Object.entries(e).map(([n,o])=>[n,Soe(o,t.itemIds)]))}return e}function XTe(e={},t){switch(t.type){case"RECEIVE_ITEMS":{const n=qoe(t),{query:o,key:r=Oo}=t,s=o?uh(o):{},i=!o||!Array.isArray(s.fields);return{...e,[n]:{...e[n],...t.items.reduce((c,l)=>{const u=l?.[r];return c[u]=e?.[n]?.[u]||i,c},{})}}}case"REMOVE_ITEMS":return Object.fromEntries(Object.entries(e).map(([n,o])=>[n,Soe(o,t.itemIds)]))}return e}const GTe=v0([Nne(e=>"query"in e),Lne(e=>e.query?{...e,...uh(e.query)}:e),N$("context"),N$("stableKey")])((e={},t)=>{const{type:n,page:o,perPage:r,key:s=Oo}=t;return n!=="RECEIVE_ITEMS"?e:{itemIds:HTe(e?.itemIds||[],t.items.map(i=>i?.[s]).filter(Boolean),o,r),meta:t.meta}}),KTe=(e={},t)=>{switch(t.type){case"RECEIVE_ITEMS":return GTe(e,t);case"REMOVE_ITEMS":const n=t.itemIds.reduce((o,r)=>(o[r]=!0,o),{});return Object.fromEntries(Object.entries(e).map(([o,r])=>[o,Object.fromEntries(Object.entries(r).map(([s,i])=>[s,{...i,itemIds:i.itemIds.filter(c=>!n[c])}]))]));default:return e}},OV=zo({items:UTe,itemIsComplete:XTe,queries:KTe});function YTe(e={},t){switch(t.type){case"RECEIVE_TERMS":return{...e,[t.taxonomy]:t.terms}}return e}function ZTe(e={byId:{},queries:{}},t){switch(t.type){case"RECEIVE_USER_QUERY":return{byId:{...e.byId,...t.users.reduce((n,o)=>({...n,[o.id]:o}),{})},queries:{...e.queries,[t.queryID]:t.users.map(n=>n.id)}}}return e}function QTe(e={},t){switch(t.type){case"RECEIVE_CURRENT_USER":return t.currentUser}return e}function JTe(e=[],t){switch(t.type){case"RECEIVE_TAXONOMIES":return t.taxonomies}return e}function eEe(e=void 0,t){switch(t.type){case"RECEIVE_CURRENT_THEME":return t.currentTheme.stylesheet}return e}function tEe(e=void 0,t){switch(t.type){case"RECEIVE_CURRENT_GLOBAL_STYLES_ID":return t.id}return e}function nEe(e={},t){switch(t.type){case"RECEIVE_THEME_GLOBAL_STYLES":return{...e,[t.stylesheet]:t.globalStyles}}return e}function oEe(e={},t){switch(t.type){case"RECEIVE_THEME_GLOBAL_STYLE_VARIATIONS":return{...e,[t.stylesheet]:t.variations}}return e}const rEe=e=>(t,n)=>{if(n.type==="UNDO"||n.type==="REDO"){const{record:o}=n;let r=t;return o.forEach(({id:{kind:s,name:i,recordId:c},changes:l})=>{r=e(r,{type:"EDIT_ENTITY_RECORD",kind:s,name:i,recordId:c,edits:Object.entries(l).reduce((u,[d,p])=>(u[d]=n.type==="UNDO"?p.from:p.to,u),{})})}),r}return e(t,n)};function sEe(e){return v0([rEe,Nne(t=>t.name&&t.kind&&t.name===e.name&&t.kind===e.kind),Lne(t=>({key:e.key||Oo,...t}))])(zo({queriedData:OV,edits:(t={},n)=>{var o;switch(n.type){case"RECEIVE_ITEMS":if(((o=n?.query?.context)!==null&&o!==void 0?o:"default")!=="default")return t;const s={...t};for(const c of n.items){const l=c?.[n.key],u=s[l];if(!u)continue;const d=Object.keys(u).reduce((p,f)=>{var b;return!J1(u[f],(b=c[f]?.raw)!==null&&b!==void 0?b:c[f])&&(!n.persistedEdits||!J1(u[f],n.persistedEdits[f]))&&(p[f]=u[f]),p},{});Object.keys(d).length?s[l]=d:delete s[l]}return s;case"EDIT_ENTITY_RECORD":const i={...t[n.recordId],...n.edits};return Object.keys(i).forEach(c=>{i[c]===void 0&&delete i[c]}),{...t,[n.recordId]:i}}return t},saving:(t={},n)=>{switch(n.type){case"SAVE_ENTITY_RECORD_START":case"SAVE_ENTITY_RECORD_FINISH":return{...t,[n.recordId]:{pending:n.type==="SAVE_ENTITY_RECORD_START",error:n.error,isAutosave:n.isAutosave}}}return t},deleting:(t={},n)=>{switch(n.type){case"DELETE_ENTITY_RECORD_START":case"DELETE_ENTITY_RECORD_FINISH":return{...t,[n.recordId]:{pending:n.type==="DELETE_ENTITY_RECORD_START",error:n.error}}}return t},revisions:(t={},n)=>{if(n.type==="RECEIVE_ITEM_REVISIONS"){const o=n.recordKey;delete n.recordKey;const r=OV(t[o],{...n,type:"RECEIVE_ITEMS"});return{...t,[o]:r}}return n.type==="REMOVE_ITEMS"?Object.fromEntries(Object.entries(t).filter(([o])=>!n.itemIds.some(r=>Number.isInteger(r)?r===+o:r===o))):t}}))}function iEe(e=_oe,t){switch(t.type){case"ADD_ENTITIES":return[...e,...t.entities]}return e}const aEe=(e={},t)=>{const n=iEe(e.config,t);let o=e.reducer;if(!o||n!==e.config){const s=n.reduce((i,c)=>{const{kind:l}=c;return i[l]||(i[l]=[]),i[l].push(c),i},{});o=zo(Object.entries(s).reduce((i,[c,l])=>{const u=zo(l.reduce((d,p)=>({...d,[p.name]:sEe(p)}),{}));return i[c]=u,i},{}))}const r=o(e.records,t);return r===e.records&&n===e.config&&o===e.reducer?e:{reducer:o,records:r,config:n}};function cEe(e=Z6e()){return e}function lEe(e={},t){switch(t.type){case"EDIT_ENTITY_RECORD":case"UNDO":case"REDO":return{}}return e}function uEe(e={},t){switch(t.type){case"RECEIVE_EMBED_PREVIEW":const{url:n,preview:o}=t;return{...e,[n]:o}}return e}function dEe(e={},t){switch(t.type){case"RECEIVE_USER_PERMISSION":return{...e,[t.key]:t.isAllowed};case"RECEIVE_USER_PERMISSIONS":return{...e,...t.permissions}}return e}function pEe(e={},t){switch(t.type){case"RECEIVE_AUTOSAVES":const{postId:n,autosaves:o}=t;return{...e,[n]:o}}return e}function fEe(e=[],t){switch(t.type){case"RECEIVE_BLOCK_PATTERNS":return t.patterns}return e}function bEe(e=[],t){switch(t.type){case"RECEIVE_BLOCK_PATTERN_CATEGORIES":return t.categories}return e}function hEe(e=[],t){switch(t.type){case"RECEIVE_USER_PATTERN_CATEGORIES":return t.patternCategories}return e}function mEe(e=null,t){switch(t.type){case"RECEIVE_NAVIGATION_FALLBACK_ID":return t.fallbackId}return e}function MEe(e={},t){switch(t.type){case"RECEIVE_THEME_GLOBAL_STYLE_REVISIONS":return{...e,[t.currentId]:t.revisions}}return e}function gEe(e={},t){switch(t.type){case"RECEIVE_DEFAULT_TEMPLATE":return{...e,[JSON.stringify(t.query)]:t.templateId}}return e}const zEe=zo({terms:YTe,users:ZTe,currentTheme:eEe,currentGlobalStylesId:tEe,currentUser:QTe,themeGlobalStyleVariations:oEe,themeBaseGlobalStyles:nEe,themeGlobalStyleRevisions:MEe,taxonomies:JTe,entities:aEe,editsReference:lEe,undoManager:cEe,embedPreviews:uEe,userPermissions:dEe,autosaves:pEe,blockPatterns:fEe,blockPatternCategories:bEe,userPatternCategories:hEe,navigationFallbackId:mEe,defaultTemplates:gEe}),OEe={},AEe=nt(e=>(t,n)=>e(bo).isResolving("getEmbedPreview",[n]));function yEe(e,t){Re("select( 'core' ).getAuthors()",{since:"5.9",alternative:"select( 'core' ).getUsers({ who: 'authors' })"});const n=wt("/wp/v2/users/?who=authors&per_page=100",t);return Coe(e,n)}function vEe(e){return e.currentUser}const Coe=at((e,t)=>{var n;return((n=e.users.queries[t])!==null&&n!==void 0?n:[]).map(r=>e.users.byId[r])},(e,t)=>[e.users.queries[t],e.users.byId]);function xEe(e,t){return Re("wp.data.select( 'core' ).getEntitiesByKind()",{since:"6.0",alternative:"wp.data.select( 'core' ).getEntitiesConfig()"}),Roe(e,t)}const Roe=at((e,t)=>e.entities.config.filter(n=>n.kind===t),(e,t)=>e.entities.config);function _Ee(e,t,n){return Re("wp.data.select( 'core' ).getEntity()",{since:"6.0",alternative:"wp.data.select( 'core' ).getEntityConfig()"}),hh(e,t,n)}function hh(e,t,n){return e.entities.config?.find(o=>o.kind===t&&o.name===n)}const ff=at((e,t,n,o,r)=>{var s;const i=e.entities.records?.[t]?.[n]?.queriedData;if(!i)return;const c=(s=r?.context)!==null&&s!==void 0?s:"default";if(r===void 0)return i.itemIsComplete[c]?.[o]?i.items[c][o]:void 0;const l=i.items[c]?.[o];if(l&&r._fields){var u;const d={},p=(u=Tu(r._fields))!==null&&u!==void 0?u:[];for(let f=0;f{h=h?.[g]}),Tx(d,b,h)}return d}return l},(e,t,n,o,r)=>{var s;const i=(s=r?.context)!==null&&s!==void 0?s:"default";return[e.entities.records?.[t]?.[n]?.queriedData?.items[i]?.[o],e.entities.records?.[t]?.[n]?.queriedData?.itemIsComplete[i]?.[o]]});ff.__unstableNormalizeArgs=e=>{const t=[...e],n=t?.[2];return t[2]=xSe(n)?Number(n):n,t};function wEe(e,t,n,o){return ff(e,t,n,o)}const Woe=at((e,t,n,o)=>{const r=ff(e,t,n,o);return r&&Object.keys(r).reduce((s,i)=>{if(ySe(hh(e,t,n),i)){var c;s[i]=(c=r[i]?.raw)!==null&&c!==void 0?c:r[i]}else s[i]=r[i];return s},{})},(e,t,n,o,r)=>{var s;const i=(s=r?.context)!==null&&s!==void 0?s:"default";return[e.entities.config,e.entities.records?.[t]?.[n]?.queriedData?.items[i]?.[o],e.entities.records?.[t]?.[n]?.queriedData?.itemIsComplete[i]?.[o]]});function kEe(e,t,n,o){return Array.isArray(Vx(e,t,n,o))}const Vx=(e,t,n,o)=>{const r=e.entities.records?.[t]?.[n]?.queriedData;return r?Pne(r,o):null},qEe=(e,t,n,o)=>{const r=e.entities.records?.[t]?.[n]?.queriedData;return r?Ine(r,o):null},SEe=(e,t,n,o)=>{const r=e.entities.records?.[t]?.[n]?.queriedData;if(!r)return null;if(o.per_page===-1)return 1;const s=Ine(r,o);return s&&(o.per_page?Math.ceil(s/o.per_page):SSe(r,o))},CEe=at(e=>{const{entities:{records:t}}=e,n=[];return Object.keys(t).forEach(o=>{Object.keys(t[o]).forEach(r=>{const s=Object.keys(t[o][r].edits).filter(i=>ff(e,o,r,i)&&Eoe(e,o,r,i));if(s.length){const i=hh(e,o,r);s.forEach(c=>{const l=Hx(e,o,r,c);n.push({key:l?l[i.key||Oo]:void 0,title:i?.getTitle?.(l)||"",name:r,kind:o})})}})}),n},e=>[e.entities.records]),REe=at(e=>{const{entities:{records:t}}=e,n=[];return Object.keys(t).forEach(o=>{Object.keys(t[o]).forEach(r=>{const s=Object.keys(t[o][r].saving).filter(i=>uN(e,o,r,i));if(s.length){const i=hh(e,o,r);s.forEach(c=>{const l=Hx(e,o,r,c);n.push({key:l?l[i.key||Oo]:void 0,title:i?.getTitle?.(l)||"",name:r,kind:o})})}})}),n},e=>[e.entities.records]);function lN(e,t,n,o){return e.entities.records?.[t]?.[n]?.edits?.[o]}const Toe=at((e,t,n,o)=>{const{transientEdits:r}=hh(e,t,n)||{},s=lN(e,t,n,o)||{};return r?Object.keys(s).reduce((i,c)=>(r[c]||(i[c]=s[c]),i),{}):s},(e,t,n,o)=>[e.entities.config,e.entities.records?.[t]?.[n]?.edits?.[o]]);function Eoe(e,t,n,o){return uN(e,t,n,o)||Object.keys(Toe(e,t,n,o)).length>0}const Hx=at((e,t,n,o)=>{const r=Woe(e,t,n,o),s=lN(e,t,n,o);return!r&&!s?!1:{...r,...s}},(e,t,n,o,r)=>{var s;const i=(s=r?.context)!==null&&s!==void 0?s:"default";return[e.entities.config,e.entities.records?.[t]?.[n]?.queriedData.items[i]?.[o],e.entities.records?.[t]?.[n]?.queriedData.itemIsComplete[i]?.[o],e.entities.records?.[t]?.[n]?.edits?.[o]]});function WEe(e,t,n,o){var r;const{pending:s,isAutosave:i}=(r=e.entities.records?.[t]?.[n]?.saving?.[o])!==null&&r!==void 0?r:{};return!!(s&&i)}function uN(e,t,n,o){var r;return(r=e.entities.records?.[t]?.[n]?.saving?.[o]?.pending)!==null&&r!==void 0?r:!1}function TEe(e,t,n,o){var r;return(r=e.entities.records?.[t]?.[n]?.deleting?.[o]?.pending)!==null&&r!==void 0?r:!1}function EEe(e,t,n,o){return e.entities.records?.[t]?.[n]?.saving?.[o]?.error}function BEe(e,t,n,o){return e.entities.records?.[t]?.[n]?.deleting?.[o]?.error}function NEe(e){Re("select( 'core' ).getUndoEdit()",{since:"6.3"})}function LEe(e){Re("select( 'core' ).getRedoEdit()",{since:"6.3"})}function jEe(e){return e.undoManager.hasUndo()}function PEe(e){return e.undoManager.hasRedo()}function Ux(e){return e.currentTheme?ff(e,"root","theme",e.currentTheme):null}function Boe(e){return e.currentGlobalStylesId}function IEe(e){var t;return(t=Ux(e)?.theme_supports)!==null&&t!==void 0?t:OEe}function DEe(e,t){return e.embedPreviews[t]}function FEe(e,t){const n=e.embedPreviews[t],o=''+t+"";return n?n.html===o:!1}function Noe(e,t,n,o){if(typeof n=="object"&&(!n.kind||!n.name))return!1;const s=Ex(t,n,o);return e.userPermissions[s]}function $Ee(e,t,n,o){return Re("wp.data.select( 'core' ).canUserEditEntityRecord()",{since:"6.7",alternative:"wp.data.select( 'core' ).canUser( 'update', { kind, name, id } )"}),Noe(e,"update",{kind:t,name:n,id:o})}function VEe(e,t,n){return e.autosaves[n]}function HEe(e,t,n,o){return o===void 0?void 0:e.autosaves[n]?.find(s=>s.author===o)}const UEe=nt(e=>(t,n,o)=>e(bo).hasFinishedResolution("getAutosaves",[n,o]));function XEe(e){return e.editsReference}function GEe(e,t){const n=Vx(e,"postType","wp_template",{"find-template":t});return n?.length?Hx(e,"postType","wp_template",n[0].id):null}function KEe(e){const t=Ux(e);return t?e.themeBaseGlobalStyles[t.stylesheet]:null}function YEe(e){const t=Ux(e);return t?e.themeGlobalStyleVariations[t.stylesheet]:null}function ZEe(e){return e.blockPatterns}function QEe(e){return e.blockPatternCategories}function JEe(e){return e.userPatternCategories}function eBe(e){Re("select( 'core' ).getCurrentThemeGlobalStylesRevisions()",{since:"6.5.0",alternative:"select( 'core' ).getRevisions( 'root', 'globalStyles', ${ recordKey } )"});const t=Boe(e);return t?e.themeGlobalStyleRevisions[t]:null}function tBe(e,t){return e.defaultTemplates[JSON.stringify(t)]}const nBe=(e,t,n,o,r)=>{const s=e.entities.records?.[t]?.[n]?.revisions?.[o];return s?Pne(s,r):null},oBe=at((e,t,n,o,r,s)=>{var i;const c=e.entities.records?.[t]?.[n]?.revisions?.[o];if(!c)return;const l=(i=s?.context)!==null&&i!==void 0?i:"default";if(s===void 0)return c.itemIsComplete[l]?.[r]?c.items[l][r]:void 0;const u=c.items[l]?.[r];if(u&&s._fields){var d;const p={},f=(d=Tu(s._fields))!==null&&d!==void 0?d:[];for(let b=0;b{g=g?.[z]}),Tx(p,h,g)}return p}return u},(e,t,n,o,r,s)=>{var i;const c=(i=s?.context)!==null&&i!==void 0?i:"default";return[e.entities.records?.[t]?.[n]?.revisions?.[o]?.items?.[c]?.[r],e.entities.records?.[t]?.[n]?.revisions?.[o]?.itemIsComplete?.[c]?.[r]]}),rBe=Object.freeze(Object.defineProperty({__proto__:null,__experimentalGetCurrentGlobalStylesId:Boe,__experimentalGetCurrentThemeBaseGlobalStyles:KEe,__experimentalGetCurrentThemeGlobalStylesVariations:YEe,__experimentalGetDirtyEntityRecords:CEe,__experimentalGetEntitiesBeingSaved:REe,__experimentalGetEntityRecordNoResolver:wEe,__experimentalGetTemplateForLink:GEe,canUser:Noe,canUserEditEntityRecord:$Ee,getAuthors:yEe,getAutosave:HEe,getAutosaves:VEe,getBlockPatternCategories:QEe,getBlockPatterns:ZEe,getCurrentTheme:Ux,getCurrentThemeGlobalStylesRevisions:eBe,getCurrentUser:vEe,getDefaultTemplateId:tBe,getEditedEntityRecord:Hx,getEmbedPreview:DEe,getEntitiesByKind:xEe,getEntitiesConfig:Roe,getEntity:_Ee,getEntityConfig:hh,getEntityRecord:ff,getEntityRecordEdits:lN,getEntityRecordNonTransientEdits:Toe,getEntityRecords:Vx,getEntityRecordsTotalItems:qEe,getEntityRecordsTotalPages:SEe,getLastEntityDeleteError:BEe,getLastEntitySaveError:EEe,getRawEntityRecord:Woe,getRedoEdit:LEe,getReferenceByDistinctEdits:XEe,getRevision:oBe,getRevisions:nBe,getThemeSupports:IEe,getUndoEdit:NEe,getUserPatternCategories:JEe,getUserQueryResults:Coe,hasEditsForEntityRecord:Eoe,hasEntityRecords:kEe,hasFetchedAutosaves:UEe,hasRedo:PEe,hasUndo:jEe,isAutosavingEntityRecord:WEe,isDeletingEntityRecord:TEe,isPreviewEmbedFallback:FEe,isRequestingEmbedPreview:AEe,isSavingEntityRecord:uN},Symbol.toStringTag,{value:"Module"}));function sBe(e){return e.undoManager}function iBe(e){return e.navigationFallbackId}const aBe=nt(e=>at((t,n)=>e(bo).getBlockPatterns().filter(({postTypes:o})=>!o||Array.isArray(o)&&o.includes(n)),()=>[e(bo).getBlockPatterns()])),Loe=nt(e=>at((t,n,o,r)=>(Array.isArray(r)?r:[r]).map(i=>({delete:e(bo).canUser("delete",{kind:n,name:o,id:i}),update:e(bo).canUser("update",{kind:n,name:o,id:i})})),t=>[t.userPermissions]));function cBe(e,t,n,o){return Loe(e,t,n,o)[0]}const lBe=Object.freeze(Object.defineProperty({__proto__:null,getBlockPatternsForPostType:aBe,getEntityRecordPermissions:cBe,getEntityRecordsPermissions:Loe,getNavigationFallbackId:iBe,getUndoManager:sBe},Symbol.toStringTag,{value:"Module"}));let If;function kt(e){if(typeof e!="string"||e.indexOf("&")===-1)return e;If===void 0&&(document.implementation&&document.implementation.createHTMLDocument?If=document.implementation.createHTMLDocument("").createElement("textarea"):If=document.createElement("textarea")),If.innerHTML=e;const t=If.textContent;return If.innerHTML="",t}async function uBe(e,t={},n={}){const o=t.isInitialSuggestions&&t.initialSuggestionsSearchOptions?{...t,...t.initialSuggestionsSearchOptions}:t,{type:r,subtype:s,page:i,perPage:c=t.isInitialSuggestions?3:20}=o,{disablePostFormats:l=!1}=n,u=[];(!r||r==="post")&&u.push(ct({path:wt("/wp/v2/search",{search:e,page:i,per_page:c,type:"post",subtype:s})}).then(f=>f.map(b=>({id:b.id,url:b.url,title:kt(b.title||"")||m("(no title)"),type:b.subtype||b.type,kind:"post-type"}))).catch(()=>[])),(!r||r==="term")&&u.push(ct({path:wt("/wp/v2/search",{search:e,page:i,per_page:c,type:"term",subtype:s})}).then(f=>f.map(b=>({id:b.id,url:b.url,title:kt(b.title||"")||m("(no title)"),type:b.subtype||b.type,kind:"taxonomy"}))).catch(()=>[])),!l&&(!r||r==="post-format")&&u.push(ct({path:wt("/wp/v2/search",{search:e,page:i,per_page:c,type:"post-format",subtype:s})}).then(f=>f.map(b=>({id:b.id,url:b.url,title:kt(b.title||"")||m("(no title)"),type:b.subtype||b.type,kind:"taxonomy"}))).catch(()=>[])),(!r||r==="attachment")&&u.push(ct({path:wt("/wp/v2/media",{search:e,page:i,per_page:c})}).then(f=>f.map(b=>({id:b.id,url:b.source_url,title:kt(b.title.rendered||"")||m("(no title)"),type:b.type,kind:"media"}))).catch(()=>[]));let p=(await Promise.all(u)).flat();return p=p.filter(f=>!!f.id),p=dBe(p,e),p=p.slice(0,c),p}function dBe(e,t){const n=AV(t),o={};for(const r of e)if(r.title){const s=AV(r.title),i=s.filter(c=>n.some(l=>c.includes(l)));o[r.id]=i.length/s.length}else o[r.id]=0;return e.sort((r,s)=>o[s.id]-o[r.id])}function AV(e){return e.toLowerCase().match(/[\p{L}\p{N}]+/gu)||[]}const rq=new Map,pBe=async(e,t={})=>{const n="/wp-block-editor/v1/url-details",o={url:sf(e)};if(!of(e))return Promise.reject(`${e} is not a valid URL.`);const r=zx(e);return!r||!pB(r)||!r.startsWith("http")||!/^https?:\/\/[^\/\s]/i.test(e)?Promise.reject(`${e} does not have a valid protocol. URLs must be "http" based`):rq.has(e)?rq.get(e):ct({path:wt(n,o),...t}).then(s=>(rq.set(e,s),s))};async function fBe(){const e=await ct({path:"/wp/v2/block-patterns/patterns"});return e?e.map(t=>Object.fromEntries(Object.entries(t).map(([n,o])=>[lB(n),o]))):[]}const bBe=e=>async({dispatch:t})=>{const n=wt("/wp/v2/users/?who=authors&per_page=100",e),o=await ct({path:n});t.receiveUserQuery(n,o)},hBe=()=>async({dispatch:e})=>{const t=await ct({path:"/wp/v2/users/me"});e.receiveCurrentUser(t)},joe=(e,t,n="",o)=>async({select:r,dispatch:s,registry:i})=>{const l=(await s(Ya(e,t))).find(d=>d.name===t&&d.kind===e);if(!l)return;const u=await s.__unstableAcquireStoreLock(bo,["entities","records",e,t,n],{exclusive:!1});try{if(window.__experimentalEnableSync&&l.syncConfig&&!o){if(globalThis.IS_GUTENBERG_PLUGIN){const d=l.getSyncObjectId(n);await Rg().bootstrap(l.syncObjectType,d,p=>{s.receiveEntityRecords(e,t,p,o)}),await Rg().bootstrap(l.syncObjectType+"--edit",d,p=>{s({type:"EDIT_ENTITY_RECORD",kind:e,name:t,recordId:n,edits:p,meta:{undo:void 0}})})}}else{o!==void 0&&o._fields&&(o={...o,_fields:[...new Set([...Tu(o._fields)||[],l.key||Oo])].join()});const d=wt(l.baseURL+(n?"/"+n:""),{...l.baseURLParams,...o});if(o!==void 0&&(o={...o,include:[n]},r.hasEntityRecords(e,t,o)))return;const p=await ct({path:d,parse:!1}),f=await p.json(),b=RB(p.headers?.get("allow")),h=[],g={};for(const z of WM)g[Ex(z,{kind:e,name:t,id:n})]=b[z],h.push([z,{kind:e,name:t,id:n}]);i.batch(()=>{s.receiveEntityRecords(e,t,f,o),s.receiveUserPermissions(g),s.finishResolutions("canUser",h)})}}finally{s.__unstableReleaseStoreLock(u)}},mBe=CB("getEntityRecord"),MBe=CB("getEntityRecord"),yv=(e,t,n={})=>async({dispatch:o,registry:r})=>{const i=(await o(Ya(e,t))).find(l=>l.name===t&&l.kind===e);if(!i)return;const c=await o.__unstableAcquireStoreLock(bo,["entities","records",e,t],{exclusive:!1});try{n._fields&&(n={...n,_fields:[...new Set([...Tu(n._fields)||[],i.key||Oo])].join()});const l=wt(i.baseURL,{...i.baseURLParams,...n});let u,d;if(i.supportsPagination&&n.per_page!==-1){const p=await ct({path:l,parse:!1});u=Object.values(await p.json()),d={totalItems:parseInt(p.headers.get("X-WP-Total")),totalPages:parseInt(p.headers.get("X-WP-TotalPages"))}}else u=Object.values(await ct({path:l})),d={totalItems:u.length,totalPages:1};n._fields&&(u=u.map(p=>(n._fields.split(",").forEach(f=>{p.hasOwnProperty(f)||(p[f]=void 0)}),p))),r.batch(()=>{if(o.receiveEntityRecords(e,t,u,n,!1,void 0,d),!n?._fields&&!n.context){const p=i.key||Oo,f=u.filter(z=>z?.[p]).map(z=>[e,t,z[p]]),b=u.filter(z=>z?.[p]).map(z=>({id:z[p],permissions:RB(z?._links?.self?.[0].targetHints.allow)})),h=[],g={};for(const z of b)for(const y of WM)h.push([y,{kind:e,name:t,id:z.id}]),g[Ex(y,{kind:e,name:t,id:z.id})]=z.permissions[y];o.receiveUserPermissions(g),o.finishResolutions("getEntityRecord",f),o.finishResolutions("canUser",h)}o.__unstableReleaseStoreLock(c)})}catch{o.__unstableReleaseStoreLock(c)}};yv.shouldInvalidate=(e,t,n)=>(e.type==="RECEIVE_ITEMS"||e.type==="REMOVE_ITEMS")&&e.invalidateCache&&t===e.kind&&n===e.name;const gBe=()=>async({dispatch:e,resolveSelect:t})=>{const n=await t.getEntityRecords("root","theme",{status:"active"});e.receiveCurrentTheme(n[0])},zBe=CB("getCurrentTheme"),OBe=e=>async({dispatch:t})=>{try{const n=await ct({path:wt("/oembed/1.0/proxy",{url:e})});t.receiveEmbedPreview(e,n)}catch{t.receiveEmbedPreview(e,!1)}},Poe=(e,t,n)=>async({dispatch:o,registry:r})=>{if(!WM.includes(e))throw new Error(`'${e}' is not a valid action.`);let s=null;if(typeof t=="object"){if(!t.kind||!t.name)throw new Error("The entity resource object is not valid.");const d=(await o(Ya(t.kind,t.name))).find(p=>p.name===t.name&&p.kind===t.kind);if(!d)return;s=d.baseURL+(t.id?"/"+t.id:"")}else s=`/wp/v2/${t}`+(n?"/"+n:"");const{hasStartedResolution:i}=r.select(bo);for(const u of WM){if(u===e)continue;if(i("canUser",[u,t,n]))return}let c;try{c=await ct({path:s,method:"OPTIONS",parse:!1})}catch{return}const l=RB(c.headers?.get("allow"));r.batch(()=>{for(const u of WM){const d=Ex(u,t,n);o.receiveUserPermission(d,l[u]),u!==e&&o.finishResolution("canUser",[u,t,n])}})},ABe=(e,t,n)=>async({dispatch:o})=>{await o(Poe("update",{kind:e,name:t,id:n}))},yBe=(e,t)=>async({dispatch:n,resolveSelect:o})=>{const{rest_base:r,rest_namespace:s="wp/v2"}=await o.getPostType(e),i=await ct({path:`/${s}/${r}/${t}/autosaves?context=edit`});i&&i.length&&n.receiveAutosaves(t,i)},vBe=(e,t)=>async({resolveSelect:n})=>{await n.getAutosaves(e,t)},Ioe=e=>async({dispatch:t,resolveSelect:n})=>{let o;try{o=await ct({url:wt(e,{"_wp-find-template":!0})}).then(({data:s})=>s)}catch{}if(!o)return;const r=await n.getEntityRecord("postType","wp_template",o.id);r&&t.receiveEntityRecords("postType","wp_template",[r],{"find-template":e})};Ioe.shouldInvalidate=e=>(e.type==="RECEIVE_ITEMS"||e.type==="REMOVE_ITEMS")&&e.invalidateCache&&e.kind==="postType"&&e.name==="wp_template";const xBe=()=>async({dispatch:e,resolveSelect:t})=>{const o=(await t.getEntityRecords("root","theme",{status:"active"}))?.[0]?._links?.["wp:user-global-styles"]?.[0]?.href;if(!o)return;const r=o.match(/\/(\d+)(?:\?|$)/),s=r?Number(r[1]):null;s&&e.__experimentalReceiveCurrentGlobalStylesId(s)},_Be=()=>async({resolveSelect:e,dispatch:t})=>{const n=await e.getCurrentTheme(),o=await ct({path:`/wp/v2/global-styles/themes/${n.stylesheet}`});t.__experimentalReceiveThemeBaseGlobalStyles(n.stylesheet,o)},wBe=()=>async({resolveSelect:e,dispatch:t})=>{const n=await e.getCurrentTheme(),o=await ct({path:`/wp/v2/global-styles/themes/${n.stylesheet}/variations`});t.__experimentalReceiveThemeGlobalStyleVariations(n.stylesheet,o)},Doe=()=>async({resolveSelect:e,dispatch:t})=>{const n=await e.__experimentalGetCurrentGlobalStylesId(),r=(n?await e.getEntityRecord("root","globalStyles",n):void 0)?._links?.["version-history"]?.[0]?.href;if(r){const i=(await ct({url:r}))?.map(c=>Object.fromEntries(Object.entries(c).map(([l,u])=>[lB(l),u])));t.receiveThemeGlobalStyleRevisions(n,i)}};Doe.shouldInvalidate=e=>e.type==="SAVE_ENTITY_RECORD_FINISH"&&e.kind==="root"&&!e.error&&e.name==="globalStyles";const kBe=()=>async({dispatch:e})=>{const t=await fBe();e({type:"RECEIVE_BLOCK_PATTERNS",patterns:t})},qBe=()=>async({dispatch:e})=>{const t=await ct({path:"/wp/v2/block-patterns/categories"});e({type:"RECEIVE_BLOCK_PATTERN_CATEGORIES",categories:t})},SBe=()=>async({dispatch:e,resolveSelect:t})=>{const o=(await t.getEntityRecords("taxonomy","wp_pattern_category",{per_page:-1,_fields:"id,name,description,slug",context:"view"}))?.map(r=>({...r,label:kt(r.name),name:r.slug}))||[];e({type:"RECEIVE_USER_PATTERN_CATEGORIES",patternCategories:o})},CBe=()=>async({dispatch:e,select:t})=>{const n=await ct({path:wt("/wp-block-editor/v1/navigation-fallback",{_embed:!0})}),o=n?._embedded?.self;if(e.receiveNavigationFallbackId(n?.id),o){const s=!t.getEntityRecord("postType","wp_navigation",n.id);e.receiveEntityRecords("postType","wp_navigation",o,void 0,s),e.finishResolution("getEntityRecord",["postType","wp_navigation",n.id])}},RBe=e=>async({dispatch:t})=>{const n=await ct({path:wt("/wp/v2/templates/lookup",e)});n?.id&&t.receiveDefaultTemplateId(e,n.id)},Foe=(e,t,n,o={})=>async({dispatch:r})=>{const i=(await r(Ya(e,t))).find(f=>f.name===t&&f.kind===e);if(!i)return;o._fields&&(o={...o,_fields:[...new Set([...Tu(o._fields)||[],i.revisionKey||Oo])].join()});const c=wt(i.getRevisionsUrl(n),o);let l,u;const d={},p=i.supportsPagination&&o.per_page!==-1;try{u=await ct({path:c,parse:!p})}catch{return}if(u&&(p?(l=Object.values(await u.json()),d.totalItems=parseInt(u.headers.get("X-WP-Total"))):l=Object.values(u),o._fields&&(l=l.map(f=>(o._fields.split(",").forEach(b=>{f.hasOwnProperty(b)||(f[b]=void 0)}),f))),r.receiveRevisions(e,t,n,l,o,!1,d),!o?._fields&&!o.context)){const f=i.key||Oo,b=l.filter(h=>h[f]).map(h=>[e,t,n,h[f]]);r.startResolutions("getRevision",b),r.finishResolutions("getRevision",b)}};Foe.shouldInvalidate=(e,t,n,o)=>e.type==="SAVE_ENTITY_RECORD_FINISH"&&n===e.name&&t===e.kind&&!e.error&&o===e.recordId;const WBe=(e,t,n,o,r)=>async({dispatch:s})=>{const c=(await s(Ya(e,t))).find(d=>d.name===t&&d.kind===e);if(!c)return;r!==void 0&&r._fields&&(r={...r,_fields:[...new Set([...Tu(r._fields)||[],c.revisionKey||Oo])].join()});const l=wt(c.getRevisionsUrl(n,o),r);let u;try{u=await ct({path:l})}catch{return}u&&s.receiveRevisions(e,t,n,u,r)},TBe=Object.freeze(Object.defineProperty({__proto__:null,__experimentalGetCurrentGlobalStylesId:xBe,__experimentalGetCurrentThemeBaseGlobalStyles:_Be,__experimentalGetCurrentThemeGlobalStylesVariations:wBe,__experimentalGetTemplateForLink:Ioe,canUser:Poe,canUserEditEntityRecord:ABe,getAuthors:bBe,getAutosave:vBe,getAutosaves:yBe,getBlockPatternCategories:qBe,getBlockPatterns:kBe,getCurrentTheme:gBe,getCurrentThemeGlobalStylesRevisions:Doe,getCurrentUser:hBe,getDefaultTemplateId:RBe,getEditedEntityRecord:MBe,getEmbedPreview:OBe,getEntityRecord:joe,getEntityRecords:yv,getNavigationFallbackId:CBe,getRawEntityRecord:mBe,getRevision:WBe,getRevisions:Foe,getThemeSupports:zBe,getUserPatternCategories:SBe},Symbol.toStringTag,{value:"Module"}));function yV(e,t){const n={...e};let o=n;for(const r of t)o.children={...o.children,[r]:{locks:[],children:{},...o.children[r]}},o=o.children[r];return n}function z8(e,t){let n=e;for(const o of t){const r=n.children[o];if(!r)return null;n=r}return n}function*EBe(e,t){let n=e;yield n;for(const o of t){const r=n.children[o];if(!r)break;yield r,n=r}}function*BBe(e){const t=Object.values(e.children);for(;t.length;){const n=t.pop();yield n,t.push(...Object.values(n.children))}}function vV({exclusive:e},t){return!!(e&&t.length||!e&&t.filter(n=>n.exclusive).length)}const NBe={requests:[],tree:{locks:[],children:{}}};function oA(e=NBe,t){switch(t.type){case"ENQUEUE_LOCK_REQUEST":{const{request:n}=t;return{...e,requests:[n,...e.requests]}}case"GRANT_LOCK_REQUEST":{const{lock:n,request:o}=t,{store:r,path:s}=o,i=[r,...s],c=yV(e.tree,i),l=z8(c,i);return l.locks=[...l.locks,n],{...e,requests:e.requests.filter(u=>u!==o),tree:c}}case"RELEASE_LOCK":{const{lock:n}=t,o=[n.store,...n.path],r=yV(e.tree,o),s=z8(r,o);return s.locks=s.locks.filter(i=>i!==n),{...e,tree:r}}}return e}function LBe(e){return e.requests}function jBe(e,t,n,{exclusive:o}){const r=[t,...n],s=e.tree;for(const c of EBe(s,r))if(vV({exclusive:o},c.locks))return!1;const i=z8(s,r);if(!i)return!0;for(const c of BBe(i))if(vV({exclusive:o},c.locks))return!1;return!0}function PBe(){let e=oA(void 0,{type:"@@INIT"});function t(){for(const r of LBe(e)){const{store:s,path:i,exclusive:c,notifyAcquired:l}=r;if(jBe(e,s,i,{exclusive:c})){const u={store:s,path:i,exclusive:c};e=oA(e,{type:"GRANT_LOCK_REQUEST",lock:u,request:r}),l(u)}}}function n(r,s,i){return new Promise(c=>{e=oA(e,{type:"ENQUEUE_LOCK_REQUEST",request:{store:r,path:s,exclusive:i,notifyAcquired:c}}),t()})}function o(r){e=oA(e,{type:"RELEASE_LOCK",lock:r}),t()}return{acquire:n,release:o}}function IBe(){const e=PBe();function t(o,r,{exclusive:s}){return()=>e.acquire(o,r,s)}function n(o){return()=>e.release(o)}return{__unstableAcquireStoreLock:t,__unstableReleaseStoreLock:n}}const{lock:rb0,unlock:$oe}=ar("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/core-data"),O8=O.createContext({});function A8({kind:e,type:t,id:n,children:o}){const r=O.useContext(O8),s=O.useMemo(()=>({...r,[e]:{...r?.[e],[t]:n}}),[r,e,t,n]);return a.jsx(O8.Provider,{value:s,children:o})}let Or=function(e){return e.Idle="IDLE",e.Resolving="RESOLVING",e.Error="ERROR",e.Success="SUCCESS",e}({});const DBe=["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"];function dN(e,t){return D((n,o)=>e(s=>FBe(n(s)),o),t)}const FBe=ps(e=>{const t={};for(const n in e)DBe.includes(n)||Object.defineProperty(t,n,{get:()=>(...o)=>{const r=e[n](...o),s=e.getResolutionState(n,o)?.status;let i;switch(s){case"resolving":i=Or.Resolving;break;case"finished":i=Or.Success;break;case"error":i=Or.Error;break;case void 0:i=Or.Idle;break}return{data:r,status:i,isResolving:i===Or.Resolving,hasStarted:i!==Or.Idle,hasResolved:i===Or.Success||i===Or.Error}}});return t}),xV={};function Voe(e,t,n,o={enabled:!0}){const{editEntityRecord:r,saveEditedEntityRecord:s}=ae(ce),i=O.useMemo(()=>({edit:(f,b={})=>r(e,t,n,f,b),save:(f={})=>s(e,t,n,{throwOnError:!0,...f})}),[r,e,t,n,s]),{editedRecord:c,hasEdits:l,edits:u}=D(f=>o.enabled?{editedRecord:f(ce).getEditedEntityRecord(e,t,n),hasEdits:f(ce).hasEditsForEntityRecord(e,t,n),edits:f(ce).getEntityRecordNonTransientEdits(e,t,n)}:{editedRecord:xV,hasEdits:!1,edits:xV},[e,t,n,o.enabled]),{data:d,...p}=dN(f=>o.enabled?f(ce).getEntityRecord(e,t,n):{data:null},[e,t,n,o.enabled]);return{record:d,editedRecord:c,hasEdits:l,edits:u,...p,...i}}const $Be=[];function Gb(e,t,n={},o={enabled:!0}){const r=wt("",n),{data:s,...i}=dN(u=>o.enabled?u(ce).getEntityRecords(e,t,n):{data:$Be},[e,t,r,o.enabled]),{totalItems:c,totalPages:l}=D(u=>o.enabled?{totalItems:u(ce).getEntityRecordsTotalItems(e,t,n),totalPages:u(ce).getEntityRecordsTotalPages(e,t,n)}:{totalItems:null,totalPages:null},[e,t,r,o.enabled]);return{records:s,totalItems:c,totalPages:l,...i}}const _V=new Set;function VBe(){return globalThis.SCRIPT_DEBUG===!0}function Xt(e){if(VBe()&&!_V.has(e)){console.warn(e);try{throw Error(e)}catch{}_V.add(e)}}function Hoe(e,t){const n=typeof e=="object",o=n?JSON.stringify(e):e;return n&&typeof t<"u"&&globalThis.SCRIPT_DEBUG===!0&&Xt("When 'resource' is an entity object, passing 'id' as a separate argument isn't supported."),dN(r=>{const s=n?!!e.id:!!t,{canUser:i}=r(ce),c=i("create",n?{kind:e.kind,name:e.name}:e);if(!s){const h=i("read",e),g=c.isResolving||h.isResolving,z=c.hasResolved&&h.hasResolved;let y=Or.Idle;return g?y=Or.Resolving:z&&(y=Or.Success),{status:y,isResolving:g,hasResolved:z,canCreate:c.hasResolved&&c.data,canRead:h.hasResolved&&h.data}}const l=i("read",e,t),u=i("update",e,t),d=i("delete",e,t),p=l.isResolving||c.isResolving||u.isResolving||d.isResolving,f=l.hasResolved&&c.hasResolved&&u.hasResolved&&d.hasResolved;let b=Or.Idle;return p?b=Or.Resolving:f&&(b=Or.Success),{status:b,isResolving:p,hasResolved:f,canRead:f&&l.data,canCreate:f&&c.data,canUpdate:f&&u.data,canDelete:f&&d.data}},[o,t])}var HBe={grad:.9,turn:360,rad:360/(2*Math.PI)},cc=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},D1=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},js=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},Uoe=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},wV=function(e){return{r:js(e.r,0,255),g:js(e.g,0,255),b:js(e.b,0,255),a:js(e.a)}},sq=function(e){return{r:D1(e.r),g:D1(e.g),b:D1(e.b),a:D1(e.a,3)}},UBe=/^#([0-9a-f]{3,8})$/i,rA=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Xoe=function(e){var t=e.r,n=e.g,o=e.b,r=e.a,s=Math.max(t,n,o),i=s-Math.min(t,n,o),c=i?s===t?(n-o)/i:s===n?2+(o-t)/i:4+(t-n)/i:0;return{h:60*(c<0?c+6:c),s:s?i/s*100:0,v:s/255*100,a:r}},Goe=function(e){var t=e.h,n=e.s,o=e.v,r=e.a;t=t/360*6,n/=100,o/=100;var s=Math.floor(t),i=o*(1-n),c=o*(1-(t-s)*n),l=o*(1-(1-t+s)*n),u=s%6;return{r:255*[o,c,i,i,l,o][u],g:255*[l,o,o,c,i,i][u],b:255*[i,i,l,o,o,c][u],a:r}},kV=function(e){return{h:Uoe(e.h),s:js(e.s,0,100),l:js(e.l,0,100),a:js(e.a)}},qV=function(e){return{h:D1(e.h),s:D1(e.s),l:D1(e.l),a:D1(e.a,3)}},SV=function(e){return Goe((n=(t=e).s,{h:t.h,s:(n*=((o=t.l)<50?o:100-o)/100)>0?2*n/(o+n)*100:0,v:o+n,a:t.a}));var t,n,o},BM=function(e){return{h:(t=Xoe(e)).h,s:(r=(200-(n=t.s))*(o=t.v)/100)>0&&r<200?n*o/100/(r<=100?r:200-r)*100:0,l:r/2,a:t.a};var t,n,o,r},XBe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,GBe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,KBe=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,YBe=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y8={string:[[function(e){var t=UBe.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?D1(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?D1(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=KBe.exec(e)||YBe.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:wV({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=XBe.exec(e)||GBe.exec(e);if(!t)return null;var n,o,r=kV({h:(n=t[1],o=t[2],o===void 0&&(o="deg"),Number(n)*(HBe[o]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return SV(r)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,o=e.b,r=e.a,s=r===void 0?1:r;return cc(t)&&cc(n)&&cc(o)?wV({r:Number(t),g:Number(n),b:Number(o),a:Number(s)}):null},"rgb"],[function(e){var t=e.h,n=e.s,o=e.l,r=e.a,s=r===void 0?1:r;if(!cc(t)||!cc(n)||!cc(o))return null;var i=kV({h:Number(t),s:Number(n),l:Number(o),a:Number(s)});return SV(i)},"hsl"],[function(e){var t=e.h,n=e.s,o=e.v,r=e.a,s=r===void 0?1:r;if(!cc(t)||!cc(n)||!cc(o))return null;var i=function(c){return{h:Uoe(c.h),s:js(c.s,0,100),v:js(c.v,0,100),a:js(c.a)}}({h:Number(t),s:Number(n),v:Number(o),a:Number(s)});return Goe(i)},"hsv"]]},CV=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=sq(this.rgba),n=t.r,o=t.g,r=t.b,i=(s=t.a)<1?rA(D1(255*s)):"","#"+rA(n)+rA(o)+rA(r)+i;var t,n,o,r,s,i},e.prototype.toRgb=function(){return sq(this.rgba)},e.prototype.toRgbString=function(){return t=sq(this.rgba),n=t.r,o=t.g,r=t.b,(s=t.a)<1?"rgba("+n+", "+o+", "+r+", "+s+")":"rgb("+n+", "+o+", "+r+")";var t,n,o,r,s},e.prototype.toHsl=function(){return qV(BM(this.rgba))},e.prototype.toHslString=function(){return t=qV(BM(this.rgba)),n=t.h,o=t.s,r=t.l,(s=t.a)<1?"hsla("+n+", "+o+"%, "+r+"%, "+s+")":"hsl("+n+", "+o+"%, "+r+"%)";var t,n,o,r,s},e.prototype.toHsv=function(){return t=Xoe(this.rgba),{h:D1(t.h),s:D1(t.s),v:D1(t.v),a:D1(t.a,3)};var t},e.prototype.invert=function(){return Tt({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),Tt(iq(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),Tt(iq(this.rgba,-t))},e.prototype.grayscale=function(){return Tt(iq(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),Tt(RV(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),Tt(RV(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?Tt({r:(n=this.rgba).r,g:n.g,b:n.b,a:t}):D1(this.rgba.a,3);var n},e.prototype.hue=function(t){var n=BM(this.rgba);return typeof t=="number"?Tt({h:t,s:n.s,l:n.l,a:n.a}):D1(n.h)},e.prototype.isEqual=function(t){return this.toHex()===Tt(t).toHex()},e}(),Tt=function(e){return e instanceof v8?e:new v8(e)},WV=[],fs=function(e){e.forEach(function(t){WV.indexOf(t)<0&&(t(v8,y8),WV.push(t))})};function bs(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},o={};for(var r in n)o[n[r]]=r;var s={};e.prototype.toName=function(i){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var c,l,u=o[this.toHex()];if(u)return u;if(i?.closest){var d=this.toRgb(),p=1/0,f="black";if(!s.length)for(var b in n)s[b]=new e(n[b]).toRgb();for(var h in n){var g=(c=d,l=s[h],Math.pow(c.r-l.r,2)+Math.pow(c.g-l.g,2)+Math.pow(c.b-l.b,2));gl?(c+.05)/(l+.05):(l+.05)/(c+.05),(o=2)===void 0&&(o=0),r===void 0&&(r=Math.pow(10,o)),Math.floor(r*n)/r+0},e.prototype.isReadable=function(t,n){return t===void 0&&(t="#FFF"),n===void 0&&(n={}),this.contrast(t)>=(c=(i=(o=n).size)===void 0?"normal":i,(s=(r=o.level)===void 0?"AA":r)==="AAA"&&c==="normal"?7:s==="AA"&&c==="large"?3:4.5);var o,r,s,i,c}}const Koe="block-default",x8=["attributes","supports","save","migrate","isEligible","apiVersion"],jd={"--wp--style--color--link":{value:["color","link"],support:["color","link"]},aspectRatio:{value:["dimensions","aspectRatio"],support:["dimensions","aspectRatio"],useEngine:!0},background:{value:["color","gradient"],support:["color","gradients"],useEngine:!0},backgroundColor:{value:["color","background"],support:["color","background"],requiresOptOut:!0,useEngine:!0},backgroundImage:{value:["background","backgroundImage"],support:["background","backgroundImage"],useEngine:!0},backgroundRepeat:{value:["background","backgroundRepeat"],support:["background","backgroundRepeat"],useEngine:!0},backgroundSize:{value:["background","backgroundSize"],support:["background","backgroundSize"],useEngine:!0},backgroundPosition:{value:["background","backgroundPosition"],support:["background","backgroundPosition"],useEngine:!0},borderColor:{value:["border","color"],support:["__experimentalBorder","color"],useEngine:!0},borderRadius:{value:["border","radius"],support:["__experimentalBorder","radius"],properties:{borderTopLeftRadius:"topLeft",borderTopRightRadius:"topRight",borderBottomLeftRadius:"bottomLeft",borderBottomRightRadius:"bottomRight"},useEngine:!0},borderStyle:{value:["border","style"],support:["__experimentalBorder","style"],useEngine:!0},borderWidth:{value:["border","width"],support:["__experimentalBorder","width"],useEngine:!0},borderTopColor:{value:["border","top","color"],support:["__experimentalBorder","color"],useEngine:!0},borderTopStyle:{value:["border","top","style"],support:["__experimentalBorder","style"],useEngine:!0},borderTopWidth:{value:["border","top","width"],support:["__experimentalBorder","width"],useEngine:!0},borderRightColor:{value:["border","right","color"],support:["__experimentalBorder","color"],useEngine:!0},borderRightStyle:{value:["border","right","style"],support:["__experimentalBorder","style"],useEngine:!0},borderRightWidth:{value:["border","right","width"],support:["__experimentalBorder","width"],useEngine:!0},borderBottomColor:{value:["border","bottom","color"],support:["__experimentalBorder","color"],useEngine:!0},borderBottomStyle:{value:["border","bottom","style"],support:["__experimentalBorder","style"],useEngine:!0},borderBottomWidth:{value:["border","bottom","width"],support:["__experimentalBorder","width"],useEngine:!0},borderLeftColor:{value:["border","left","color"],support:["__experimentalBorder","color"],useEngine:!0},borderLeftStyle:{value:["border","left","style"],support:["__experimentalBorder","style"],useEngine:!0},borderLeftWidth:{value:["border","left","width"],support:["__experimentalBorder","width"],useEngine:!0},color:{value:["color","text"],support:["color","text"],requiresOptOut:!0,useEngine:!0},columnCount:{value:["typography","textColumns"],support:["typography","textColumns"],useEngine:!0},filter:{value:["filter","duotone"],support:["filter","duotone"]},linkColor:{value:["elements","link","color","text"],support:["color","link"]},captionColor:{value:["elements","caption","color","text"],support:["color","caption"]},buttonColor:{value:["elements","button","color","text"],support:["color","button"]},buttonBackgroundColor:{value:["elements","button","color","background"],support:["color","button"]},headingColor:{value:["elements","heading","color","text"],support:["color","heading"]},headingBackgroundColor:{value:["elements","heading","color","background"],support:["color","heading"]},fontFamily:{value:["typography","fontFamily"],support:["typography","__experimentalFontFamily"],useEngine:!0},fontSize:{value:["typography","fontSize"],support:["typography","fontSize"],useEngine:!0},fontStyle:{value:["typography","fontStyle"],support:["typography","__experimentalFontStyle"],useEngine:!0},fontWeight:{value:["typography","fontWeight"],support:["typography","__experimentalFontWeight"],useEngine:!0},lineHeight:{value:["typography","lineHeight"],support:["typography","lineHeight"],useEngine:!0},margin:{value:["spacing","margin"],support:["spacing","margin"],properties:{marginTop:"top",marginRight:"right",marginBottom:"bottom",marginLeft:"left"},useEngine:!0},minHeight:{value:["dimensions","minHeight"],support:["dimensions","minHeight"],useEngine:!0},padding:{value:["spacing","padding"],support:["spacing","padding"],properties:{paddingTop:"top",paddingRight:"right",paddingBottom:"bottom",paddingLeft:"left"},useEngine:!0},textAlign:{value:["typography","textAlign"],support:["typography","textAlign"],useEngine:!1},textDecoration:{value:["typography","textDecoration"],support:["typography","__experimentalTextDecoration"],useEngine:!0},textTransform:{value:["typography","textTransform"],support:["typography","__experimentalTextTransform"],useEngine:!0},letterSpacing:{value:["typography","letterSpacing"],support:["typography","__experimentalLetterSpacing"],useEngine:!0},writingMode:{value:["typography","writingMode"],support:["typography","__experimentalWritingMode"],useEngine:!0},"--wp--style--root--padding":{value:["spacing","padding"],support:["spacing","padding"],properties:{"--wp--style--root--padding-top":"top","--wp--style--root--padding-right":"right","--wp--style--root--padding-bottom":"bottom","--wp--style--root--padding-left":"left"},rootOnly:!0}},ua={link:"a:where(:not(.wp-element-button))",heading:"h1, h2, h3, h4, h5, h6",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",button:".wp-element-button, .wp-block-button__link",caption:".wp-element-caption, .wp-block-audio figcaption, .wp-block-embed figcaption, .wp-block-gallery figcaption, .wp-block-image figcaption, .wp-block-table figcaption, .wp-block-video figcaption",cite:"cite"},QBe={"color.duotone":!0,"color.gradients":!0,"color.palette":!0,"dimensions.aspectRatios":!0,"typography.fontSizes":!0,"spacing.spacingSizes":!0},{lock:JBe,unlock:Nu}=ar("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/blocks"),TV={title:"block title",description:"block description",keywords:["block keyword"],styles:[{label:"block style label"}],variations:[{title:"block variation title",description:"block variation description",keywords:["block variation keyword"]}]};function vv(e){return e!==null&&typeof e=="object"}function eNe({textdomain:e,...t}){const n=["apiVersion","title","category","parent","ancestor","icon","description","keywords","attributes","providesContext","usesContext","selectors","supports","styles","example","variations","blockHooks","allowedBlocks"],o=Object.fromEntries(Object.entries(t).filter(([r])=>n.includes(r)));return e&&Object.keys(TV).forEach(r=>{o[r]&&(o[r]=_8(TV[r],o[r],e))}),o}function tNe(e,t){const n=vv(e)?e.name:e;if(typeof n!="string"){globalThis.SCRIPT_DEBUG===!0&&Xt("Block names must be strings.");return}if(!/^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$/.test(n)){globalThis.SCRIPT_DEBUG===!0&&Xt("Block names must contain a namespace prefix, include only lowercase alphanumeric characters or dashes, and start with a letter. Example: my-plugin/my-custom-block");return}if(V0($e).getBlockType(n)){globalThis.SCRIPT_DEBUG===!0&&Xt('Block "'+n+'" is already registered.');return}const{addBootstrappedBlockType:o,addUnprocessedBlockType:r}=Nu(tr($e));if(vv(e)){const s=eNe(e);o(n,s)}return r(n,t),V0($e).getBlockType(n)}function _8(e,t,n){return typeof e=="string"&&typeof t=="string"?Oe(t,e,n):Array.isArray(e)&&e.length&&Array.isArray(t)?t.map(o=>_8(e[0],o,n)):vv(e)&&Object.entries(e).length&&vv(t)?Object.keys(t).reduce((o,r)=>e[r]?(o[r]=_8(e[r],t[r],n),o):(o[r]=t[r],o),{}):t}function nNe(e){const t=V0($e).getBlockType(e);if(!t){globalThis.SCRIPT_DEBUG===!0&&Xt('Block "'+e+'" is not registered.');return}return tr($e).removeBlockTypes(e),t}function oNe(e){tr($e).setFreeformFallbackBlockName(e)}function Lu(){return V0($e).getFreeformFallbackBlockName()}function Yoe(){return V0($e).getGroupingBlockName()}function rNe(e){tr($e).setUnregisteredFallbackBlockName(e)}function Zz(){return V0($e).getUnregisteredFallbackBlockName()}function sNe(e){tr($e).setDefaultBlockName(e)}function iNe(e){tr($e).setGroupingBlockName(e)}function jn(){return V0($e).getDefaultBlockName()}function Dt(e){return V0($e)?.getBlockType(e)}function nr(){return V0($e).getBlockTypes()}function Zt(e,t,n){return V0($e).getBlockSupport(e,t,n)}function st(e,t,n){return V0($e).hasBlockSupport(e,t,n)}function dd(e){return e?.name==="core/block"}function mh(e){return e?.name==="core/template-part"}const Xx=(e,t)=>V0($e).getBlockVariations(e,t),aNe=e=>{const{name:t,label:n,usesContext:o,getValues:r,setValues:s,canUserEditValue:i,getFieldsList:c}=e,l=Nu(V0($e)).getBlockBindingsSource(t);if(l?.getValues){globalThis.SCRIPT_DEBUG===!0&&Xt('Block bindings source "'+t+'" is already registered.');return}if(!t){globalThis.SCRIPT_DEBUG===!0&&Xt("Block bindings source must contain a name.");return}if(typeof t!="string"){globalThis.SCRIPT_DEBUG===!0&&Xt("Block bindings source name must be a string.");return}if(/[A-Z]+/.test(t)){globalThis.SCRIPT_DEBUG===!0&&Xt("Block bindings source name must not contain uppercase characters.");return}if(!/^[a-z0-9/-]+$/.test(t)){globalThis.SCRIPT_DEBUG===!0&&Xt("Block bindings source name must contain only valid characters: lowercase characters, hyphens, or digits. Example: my-plugin/my-custom-source.");return}if(!/^[a-z0-9-]+\/[a-z0-9-]+$/.test(t)){globalThis.SCRIPT_DEBUG===!0&&Xt("Block bindings source name must contain a namespace and valid characters. Example: my-plugin/my-custom-source.");return}if(n&&l?.label){globalThis.SCRIPT_DEBUG===!0&&Xt('Block bindings "'+t+'" source label is already defined in the server.');return}if(!n&&!l?.label){globalThis.SCRIPT_DEBUG===!0&&Xt("Block bindings source must contain a label.");return}if(n&&typeof n!="string"){globalThis.SCRIPT_DEBUG===!0&&Xt("Block bindings source label must be a string.");return}if(o&&!Array.isArray(o)){globalThis.SCRIPT_DEBUG===!0&&Xt("Block bindings source usesContext must be an array.");return}if(r&&typeof r!="function"){globalThis.SCRIPT_DEBUG===!0&&Xt("Block bindings source getValues must be a function.");return}if(s&&typeof s!="function"){globalThis.SCRIPT_DEBUG===!0&&Xt("Block bindings source setValues must be a function.");return}if(i&&typeof i!="function"){globalThis.SCRIPT_DEBUG===!0&&Xt("Block bindings source canUserEditValue must be a function.");return}if(c&&typeof c!="function"){globalThis.SCRIPT_DEBUG===!0&&Xt("Block bindings source getFieldsList must be a function.");return}return Nu(tr($e)).addBlockBindingsSource(e)};function cNe(e){if(!Zoe(e)){globalThis.SCRIPT_DEBUG===!0&&Xt('Block bindings source "'+e+'" is not registered.');return}Nu(tr($e)).removeBlockBindingsSource(e)}function Zoe(e){return Nu(V0($e)).getBlockBindingsSource(e)}function lNe(){return Nu(V0($e)).getAllBlockBindingsSources()}fs([bs,bf]);const EV=["#191e23","#f8f9f9"];function Kb(e){var t;return Object.entries((t=Dt(e.name)?.attributes)!==null&&t!==void 0?t:{}).every(([n,o])=>{const r=e.attributes[n];return o.hasOwnProperty("default")?r===o.default:o.type==="rich-text"?!r?.length:r===void 0})}function Yc(e){return e.name===jn()&&Kb(e)}function Qoe(e){return!!e&&(typeof e=="string"||O.isValidElement(e)||typeof e=="function"||e instanceof O.Component)}function uNe(e){if(e=e||Koe,Qoe(e))return{src:e};if("background"in e){const t=Tt(e.background),n=r=>t.contrast(r),o=Math.max(...EV.map(n));return{...e,foreground:e.foreground?e.foreground:EV.find(r=>n(r)===o),shadowColor:t.alpha(.3).toRgbString()}}return e}function Qz(e){return typeof e=="string"?Dt(e):e}function pN(e,t,n="visual"){const{__experimentalLabel:o,title:r}=e,s=o&&o(t,{context:n});return s?s.toPlainText?s.toPlainText():Rr(s):r}function dNe(e,t,n,o="vertical"){const r=e?.title,s=e?pN(e,t,"accessibility"):"",i=n!==void 0,c=s&&s!==r;return i&&o==="vertical"?c?le(m("%1$s Block. Row %2$d. %3$s"),r,n,s):le(m("%1$s Block. Row %2$d"),r,n):i&&o==="horizontal"?c?le(m("%1$s Block. Column %2$d. %3$s"),r,n,s):le(m("%1$s Block. Column %2$d"),r,n):c?le(m("%1$s Block. %2$s"),r,s):le(m("%s Block"),r)}function Joe(e){if(e.default!==void 0)return e.default;if(e.type==="rich-text")return new un}function fN(e,t){const n=Dt(e);if(n===void 0)throw new Error(`Block type '${e}' is not registered.`);return Object.entries(n.attributes).reduce((o,[r,s])=>{const i=t[r];if(i!==void 0)s.type==="rich-text"?i instanceof un?o[r]=i:typeof i=="string"&&(o[r]=un.fromHTMLString(i)):s.type==="string"&&i instanceof un?o[r]=i.toHTMLString():o[r]=i;else{const c=Joe(s);c!==void 0&&(o[r]=c)}return["node","children"].indexOf(s.source)!==-1&&(typeof o[r]=="string"?o[r]=[o[r]]:Array.isArray(o[r])||(o[r]=[])),o},{})}function pNe(e,t){const n=Dt(e)?.attributes;return n?Object.keys(n).filter(r=>n[r]?.__experimentalRole===t):[]}function hf(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}const fNe=[{slug:"text",title:m("Text")},{slug:"media",title:m("Media")},{slug:"design",title:m("Design")},{slug:"widgets",title:m("Widgets")},{slug:"theme",title:m("Theme")},{slug:"embed",title:m("Embeds")},{slug:"reusable",title:m("Reusable blocks")}];function bN(e){return e.reduce((t,n)=>({...t,[n.name]:n}),{})}function xv(e){return e.reduce((t,n)=>(t.some(o=>o.name===n.name)||t.push(n),t),[])}function bNe(e={},t){switch(t.type){case"ADD_BOOTSTRAPPED_BLOCK_TYPE":const{name:n,blockType:o}=t,r=e[n];let s;return r?(r.blockHooks===void 0&&o.blockHooks&&(s={...r,...s,blockHooks:o.blockHooks}),r.allowedBlocks===void 0&&o.allowedBlocks&&(s={...r,...s,allowedBlocks:o.allowedBlocks})):(s=Object.fromEntries(Object.entries(o).filter(([,i])=>i!=null).map(([i,c])=>[lB(i),c])),s.name=n),s?{...e,[n]:s}:e;case"REMOVE_BLOCK_TYPES":return hf(e,t.names)}return e}function hNe(e={},t){switch(t.type){case"ADD_UNPROCESSED_BLOCK_TYPE":return{...e,[t.name]:t.blockType};case"REMOVE_BLOCK_TYPES":return hf(e,t.names)}return e}function mNe(e={},t){switch(t.type){case"ADD_BLOCK_TYPES":return{...e,...bN(t.blockTypes)};case"REMOVE_BLOCK_TYPES":return hf(e,t.names)}return e}function MNe(e={},t){var n;switch(t.type){case"ADD_BLOCK_TYPES":return{...e,...Object.fromEntries(Object.entries(bN(t.blockTypes)).map(([r,s])=>{var i,c;return[r,xv([...((i=s.styles)!==null&&i!==void 0?i:[]).map(l=>({...l,source:"block"})),...((c=e[s.name])!==null&&c!==void 0?c:[]).filter(({source:l})=>l!=="block")])]}))};case"ADD_BLOCK_STYLES":const o={};return t.blockNames.forEach(r=>{var s;o[r]=xv([...(s=e[r])!==null&&s!==void 0?s:[],...t.styles])}),{...e,...o};case"REMOVE_BLOCK_STYLES":return{...e,[t.blockName]:((n=e[t.blockName])!==null&&n!==void 0?n:[]).filter(r=>t.styleNames.indexOf(r.name)===-1)}}return e}function gNe(e={},t){var n,o;switch(t.type){case"ADD_BLOCK_TYPES":return{...e,...Object.fromEntries(Object.entries(bN(t.blockTypes)).map(([r,s])=>{var i,c;return[r,xv([...((i=s.variations)!==null&&i!==void 0?i:[]).map(l=>({...l,source:"block"})),...((c=e[s.name])!==null&&c!==void 0?c:[]).filter(({source:l})=>l!=="block")])]}))};case"ADD_BLOCK_VARIATIONS":return{...e,[t.blockName]:xv([...(n=e[t.blockName])!==null&&n!==void 0?n:[],...t.variations])};case"REMOVE_BLOCK_VARIATIONS":return{...e,[t.blockName]:((o=e[t.blockName])!==null&&o!==void 0?o:[]).filter(r=>t.variationNames.indexOf(r.name)===-1)}}return e}function Gx(e){return(t=null,n)=>{switch(n.type){case"REMOVE_BLOCK_TYPES":return n.names.indexOf(t)!==-1?null:t;case e:return n.name||null}return t}}const zNe=Gx("SET_DEFAULT_BLOCK_NAME"),ONe=Gx("SET_FREEFORM_FALLBACK_BLOCK_NAME"),ANe=Gx("SET_UNREGISTERED_FALLBACK_BLOCK_NAME"),yNe=Gx("SET_GROUPING_BLOCK_NAME");function vNe(e=fNe,t){switch(t.type){case"SET_CATEGORIES":const n=new Map;return(t.categories||[]).forEach(o=>{n.set(o.slug,o)}),[...n.values()];case"UPDATE_CATEGORY":{if(!t.category||!Object.keys(t.category).length)return e;if(e.find(({slug:r})=>r===t.slug))return e.map(r=>r.slug===t.slug?{...r,...t.category}:r)}}return e}function xNe(e={},t){switch(t.type){case"ADD_BLOCK_COLLECTION":return{...e,[t.namespace]:{title:t.title,icon:t.icon}};case"REMOVE_BLOCK_COLLECTION":return hf(e,t.namespace)}return e}function BV(e=[],t=[]){const n=Array.from(new Set(e.concat(t)));return n.length>0?n:void 0}function _Ne(e={},t){switch(t.type){case"ADD_BLOCK_BINDINGS_SOURCE":return{...e,[t.name]:{label:e[t.name]?.label||t.label,usesContext:BV(e[t.name]?.usesContext,t.usesContext),getValues:t.getValues,setValues:t.setValues,canUserEditValue:t.canUserEditValue,getFieldsList:t.getFieldsList}};case"ADD_BOOTSTRAPPED_BLOCK_BINDINGS_SOURCE":return{...e,[t.name]:{...e[t.name],label:t.label,usesContext:BV(e[t.name]?.usesContext,t.usesContext)}};case"REMOVE_BLOCK_BINDINGS_SOURCE":return hf(e,t.name)}return e}const wNe=zo({bootstrappedBlockTypes:bNe,unprocessedBlockTypes:hNe,blockTypes:mNe,blockStyles:MNe,blockVariations:gNe,defaultBlockName:zNe,freeformFallbackBlockName:ONe,unregisteredFallbackBlockName:ANe,groupingBlockName:yNe,categories:vNe,collections:xNe,blockBindingsSources:_Ne}),Wg=(e,t,n)=>{var o;const r=Array.isArray(t)?t:t.split(".");let s=e;return r.forEach(i=>{s=s?.[i]}),(o=s)!==null&&o!==void 0?o:n};function NV(e){return typeof e=="object"&&e.constructor===Object&&e!==null}function ere(e,t){return NV(e)&&NV(t)?Object.entries(t).every(([n,o])=>ere(e?.[n],o)):e===t}const tre=(e,t)=>typeof t=="string"?Jz(e,t):t,nre=at(e=>Object.values(e.blockTypes),e=>[e.blockTypes]);function Jz(e,t){return e.blockTypes[t]}function kNe(e,t){return e.blockStyles[t]}const hN=at((e,t,n)=>{const o=e.blockVariations[t];return!o||!n?o:o.filter(r=>(r.scope||["block","inserter"]).includes(n))},(e,t)=>[e.blockVariations[t]]);function qNe(e,t,n,o){const r=hN(e,t,o);if(!r)return r;const s=Jz(e,t),i=Object.keys(s?.attributes||{});let c,l=0;for(const u of r)if(Array.isArray(u.isActive)){const d=u.isActive.filter(b=>{const h=b.split(".")[0];return i.includes(h)}),p=d.length;if(p===0)continue;d.every(b=>{const h=Wg(u.attributes,b);if(h===void 0)return!1;let g=Wg(n,b);return g instanceof un&&(g=g.toHTMLString()),ere(g,h)})&&p>l&&(c=u,l=p)}else if(u.isActive?.(n,u.attributes))return c||u;return c}function SNe(e,t,n){const o=hN(e,t,n);return[...o].reverse().find(({isDefault:s})=>!!s)||o[0]}function CNe(e){return e.categories}function RNe(e){return e.collections}function WNe(e){return e.defaultBlockName}function TNe(e){return e.freeformFallbackBlockName}function ENe(e){return e.unregisteredFallbackBlockName}function BNe(e){return e.groupingBlockName}const mN=at((e,t)=>nre(e).filter(n=>n.parent?.includes(t)).map(({name:n})=>n),e=>[e.blockTypes]),ore=(e,t,n,o)=>{const r=tre(e,t);return r?.supports?Wg(r.supports,n,o):o};function rre(e,t,n,o){return!!ore(e,t,n,o)}function LV(e){return Xs(e??"").toLowerCase().trim()}function NNe(e,t,n=""){const o=tre(e,t),r=LV(n),s=i=>LV(i).includes(r);return s(o.title)||o.keywords?.some(s)||s(o.category)||typeof o.description=="string"&&s(o.description)}const LNe=(e,t)=>mN(e,t).length>0,jNe=(e,t)=>mN(e,t).some(n=>rre(e,n,"inserter",!0)),PNe=at((e,t)=>{const n=Jz(e,t);return n?Object.entries(n.attributes).some(([,{__experimentalRole:o}])=>o==="content"):!1},(e,t)=>[e.blockTypes[t]?.attributes]),INe=Object.freeze(Object.defineProperty({__proto__:null,__experimentalHasContentRoleAttribute:PNe,getActiveBlockVariation:qNe,getBlockStyles:kNe,getBlockSupport:ore,getBlockType:Jz,getBlockTypes:nre,getBlockVariations:hN,getCategories:CNe,getChildBlockNames:mN,getCollections:RNe,getDefaultBlockName:WNe,getDefaultBlockVariation:SNe,getFreeformFallbackBlockName:TNe,getGroupingBlockName:BNe,getUnregisteredFallbackBlockName:ENe,hasBlockSupport:rre,hasChildBlocks:LNe,hasChildBlocksWithInserterSupport:jNe,isMatchingSearchTerm:NNe},Symbol.toStringTag,{value:"Module"})),DNe=["background","backgroundColor","color","linkColor","captionColor","buttonColor","headingColor","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","padding","contentSize","wideSize","blockGap","textDecoration","textTransform","letterSpacing"];function jV(e,t,n){return e.filter(o=>!(o==="fontSize"&&n==="heading"||o==="textDecoration"&&!t&&n!=="link"||o==="textTransform"&&!t&&!(["heading","h1","h2","h3","h4","h5","h6"].includes(n)||n==="button"||n==="caption"||n==="text")||o==="letterSpacing"&&!t&&!(["heading","h1","h2","h3","h4","h5","h6"].includes(n)||n==="button"||n==="caption"||n==="text")||o==="textColumns"&&!t))}const FNe=at((e,t,n)=>{if(!t)return jV(DNe,t,n);const o=Jz(e,t);if(!o)return[];const r=[];return o?.supports?.spacing?.blockGap&&r.push("blockGap"),o?.supports?.shadow&&r.push("shadow"),Object.keys(jd).forEach(s=>{if(jd[s].support){if(jd[s].requiresOptOut&&jd[s].support[0]in o.supports&&Wg(o.supports,jd[s].support)!==!1){r.push(s);return}Wg(o.supports,jd[s].support,!1)&&r.push(s)}}),jV(r,t,n)},(e,t)=>[e.blockTypes[t]]);function $Ne(e,t){return e.bootstrappedBlockTypes[t]}function VNe(e){return e.unprocessedBlockTypes}function HNe(e){return e.blockBindingsSources}function UNe(e,t){return e.blockBindingsSources[t]}const XNe=Object.freeze(Object.defineProperty({__proto__:null,getAllBlockBindingsSources:HNe,getBlockBindingsSource:UNe,getBootstrappedBlockType:$Ne,getSupportedStyles:FNe,getUnprocessedBlockTypes:VNe},Symbol.toStringTag,{value:"Module"}));var sre={exports:{}},en={};/** +`}));continue}const u=YSe({tagName:l,attributes:JSe({element:c})});if(u?.formatType?.contentEditable===!1){delete u.formatType,qd(o,c,t,Hd()),Ld(o,{formats:[,],replacements:[{...u,innerHTML:c.innerHTML}],text:Ou});continue}u&&delete u.formatType;const d=Une({element:c,range:t,isEditableTree:n});if(qd(o,c,t,d),!u||c.getAttribute("data-rich-text-placeholder"))Ld(o,d);else if(d.text.length===0)u.attributes&&Ld(o,{formats:[,],replacements:[u],text:Ou});else{let p=function(f){if(p.formats===f)return p.newFormats;const b=f?[u,...f]:[u];return p.formats=f,p.newFormats=b,b};var s=p;p.newFormats=[u],Ld(o,{...d,formats:Array.from(d.formats,p)})}}return o}function JSe({element:e}){if(!e.hasAttributes())return;const t=e.attributes.length;let n;for(let o=0;on===t)}function tCe({start:e,end:t,replacements:n,text:o}){if(!(e+1!==t||o[e]!==Ou))return n[e]}function lf({start:e,end:t}){if(!(e===void 0||t===void 0))return e===t}function r8({text:e}){return e.length===0}function nCe(e,t=""){return typeof t=="string"&&(t=m0({text:t})),dh(e.reduce((n,{formats:o,replacements:r,text:s})=>({formats:n.formats.concat(t.formats,o),replacements:n.replacements.concat(t.replacements,r),text:n.text+t.text+s})))}function Xne(e,t){if(t={name:e,...t},typeof t.name!="string"){window.console.error("Format names must be strings.");return}if(!/^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$/.test(t.name)){window.console.error("Format names must contain a namespace prefix, include only lowercase alphanumeric characters or dashes, and start with a letter. Example: my-plugin/my-custom-format");return}if(V0(xc).getFormatType(t.name)){window.console.error('Format "'+t.name+'" is already registered.');return}if(typeof t.tagName!="string"||t.tagName===""){window.console.error("Format tag names must be a string.");return}if((typeof t.className!="string"||t.className==="")&&t.className!==null){window.console.error("Format class names must be a string, or null to handle bare elements.");return}if(!/^[_a-zA-Z]+[a-zA-Z0-9_-]*$/.test(t.className)){window.console.error("A class name must begin with a letter, followed by any number of hyphens, underscores, letters, or numbers.");return}if(t.className===null){const n=V0(xc).getFormatTypeForBareElement(t.tagName);if(n&&n.name!=="core/unknown"){window.console.error(`Format "${n.name}" is already registered to handle bare tag name "${t.tagName}".`);return}}else{const n=V0(xc).getFormatTypeForClassName(t.className);if(n){window.console.error(`Format "${n.name}" is already registered to handle class name "${t.className}".`);return}}if(!("title"in t)||t.title===""){window.console.error('The format "'+t.name+'" must have a title.');return}if("keywords"in t&&t.keywords.length>3){window.console.error('The format "'+t.name+'" can have a maximum of 3 keywords.');return}if(typeof t.title!="string"){window.console.error("Format titles must be strings.");return}return tr(xc).addFormatTypes(t),t}function ud(e,t,n=e.start,o=e.end){const{formats:r,activeFormats:s}=e,i=r.slice();if(n===o){const c=i[n]?.find(({type:l})=>l===t);if(c){for(;i[n]?.find(l=>l===c);)I6(i,n,t),n--;for(o++;i[o]?.find(l=>l===c);)I6(i,o,t),o++}}else for(let c=n;cc!==t)||[]})}function I6(e,t,n){const o=e[t].filter(({type:r})=>r!==n);o.length?e[t]=o:delete e[t]}function Y1(e,t,n=e.start,o=e.end){const{formats:r,replacements:s,text:i}=e;typeof t=="string"&&(t=m0({text:t}));const c=n+t.text.length;return dh({formats:r.slice(0,n).concat(t.formats,r.slice(o)),replacements:s.slice(0,n).concat(t.replacements,s.slice(o)),text:i.slice(0,n)+t.text+i.slice(o),start:c,end:c})}function Ks(e,t,n){return Y1(e,m0(),t,n)}function oCe({formats:e,replacements:t,text:n,start:o,end:r},s,i){return n=n.replace(s,(c,...l)=>{const u=l[l.length-2];let d=i,p,f;return typeof d=="function"&&(d=i(c,...l)),typeof d=="object"?(p=d.formats,f=d.replacements,d=d.text):(p=Array(d.length),f=Array(d.length),e[u]&&(p=p.fill(e[u]))),e=e.slice(0,u).concat(p,e.slice(u+c.length)),t=t.slice(0,u).concat(f,t.slice(u+c.length)),o&&(o=r=u+d.length),d}),dh({formats:e,replacements:t,text:n,start:o,end:r})}function Gne(e,t,n,o){return Y1(e,{formats:[,],replacements:[t],text:Ou},n,o)}function O2(e,t=e.start,n=e.end){const{formats:o,replacements:r,text:s}=e;return t===void 0||n===void 0?{...e}:{formats:o.slice(t,n),replacements:r.slice(t,n),text:s.slice(t,n)}}function BB({formats:e,replacements:t,text:n,start:o,end:r},s){if(typeof s!="string")return rCe(...arguments);let i=0;return n.split(s).map(c=>{const l=i,u={formats:e.slice(l,l+c.length),replacements:t.slice(l,l+c.length),text:c};return i+=s.length+c.length,o!==void 0&&r!==void 0&&(o>=l&&ol&&(u.start=0),r>=l&&ri&&(u.end=c.length)),u})}function rCe({formats:e,replacements:t,text:n,start:o,end:r},s=o,i=r){if(o===void 0||r===void 0)return;const c={formats:e.slice(0,s),replacements:t.slice(0,s),text:n.slice(0,s)},l={formats:e.slice(i),replacements:t.slice(i),text:n.slice(i),start:0,end:0};return[c,l]}function Kne(e,t){return e===t||e&&t&&e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset}function s8(e,t,n){const o=e.parentNode;let r=0;for(;e=e.previousSibling;)r++;return n=[r,...n],o!==t&&(n=s8(o,t,n)),n}function D$(e,t){for(t=[...t];e&&t.length>1;)e=e.childNodes[t.shift()];return{node:e,offset:t[0]}}function sCe(e,t){if(t.html!==void 0)return e.innerHTML+=t.html;typeof t=="string"&&(t=e.ownerDocument.createTextNode(t));const{type:n,attributes:o}=t;if(n){t=e.ownerDocument.createElement(n);for(const r in o)t.setAttribute(r,o[r])}return e.appendChild(t)}function iCe(e,t){e.appendData(t)}function aCe({lastChild:e}){return e}function cCe({parentNode:e}){return e}function lCe(e){return e.nodeType===e.TEXT_NODE}function uCe({nodeValue:e}){return e}function dCe(e){return e.parentNode.removeChild(e)}function pCe({value:e,prepareEditableTree:t,isEditableTree:n=!0,placeholder:o,doc:r=document}){let s=[],i=[];return t&&(e={...e,formats:t(e)}),{body:$ne({value:e,createEmpty:()=>_c(r,""),append:sCe,getLastChild:aCe,getParent:cCe,isText:lCe,getText:uCe,remove:dCe,appendText:iCe,onStartIndex(u,d){s=s8(d,u,[d.nodeValue.length])},onEndIndex(u,d){i=s8(d,u,[d.nodeValue.length])},isEditableTree:n,placeholder:o}),selection:{startPath:s,endPath:i}}}function fCe({value:e,current:t,prepareEditableTree:n,__unstableDomOnly:o,placeholder:r}){const{body:s,selection:i}=pCe({value:e,prepareEditableTree:n,placeholder:r,doc:t.ownerDocument});Yne(s,t),e.start!==void 0&&!o&&bCe(i,t)}function Yne(e,t){let n=0,o;for(;o=e.firstChild;){const r=t.childNodes[n];if(!r)t.appendChild(o);else if(r.isEqualNode(o))e.removeChild(o);else if(r.nodeName!==o.nodeName||r.nodeType===r.TEXT_NODE&&r.data!==o.data)t.replaceChild(o,r);else{const s=r.attributes,i=o.attributes;if(s){let c=s.length;for(;c--;){const{name:l}=s[c];o.getAttribute(l)||r.removeAttribute(l)}}if(i)for(let c=0;c0){if(Kne(d,u.getRangeAt(0)))return;u.removeAllRanges()}u.addRange(d),p!==c.activeElement&&p instanceof l.HTMLElement&&p.focus()}function hCe(e){if(!(typeof document>"u")){if(document.readyState==="complete"||document.readyState==="interactive")return void e();document.addEventListener("DOMContentLoaded",e)}}function mCe(){const e=document.createElement("p");e.id="a11y-speak-intro-text",e.className="a11y-speak-intro-text",e.textContent=m("Notifications"),e.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),e.setAttribute("hidden","hidden");const{body:t}=document;return t&&t.appendChild(e),e}function F$(e="polite"){const t=document.createElement("div");t.id=`a11y-speak-${e}`,t.className="a11y-speak-region",t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true");const{body:n}=document;return n&&n.appendChild(t),t}function MCe(){const e=document.getElementsByClassName("a11y-speak-region"),t=document.getElementById("a11y-speak-intro-text");for(let n=0;n]+>/g," "),$$===e&&(e+=" "),$$=e,e}function zCe(){const e=document.getElementById("a11y-speak-intro-text"),t=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");e===null&&mCe(),t===null&&F$("assertive"),n===null&&F$("polite")}hCe(zCe);function At(e,t){MCe(),e=gCe(e);const n=document.getElementById("a11y-speak-intro-text"),o=document.getElementById("a11y-speak-assertive"),r=document.getElementById("a11y-speak-polite");o&&t==="assertive"?o.textContent=e:r&&(r.textContent=e),n&&n.removeAttribute("hidden")}function Ba(e,t){return EB(e,t.type)?(t.title&&At(le(m("%s removed."),t.title),"assertive"),ud(e,t.type)):(t.title&&At(le(m("%s applied."),t.title),"assertive"),_i(e,t))}function OCe(e,t,n,o){let r=e.startContainer;if(r.nodeType===r.TEXT_NODE&&e.startOffset===r.length&&r.nextSibling)for(r=r.nextSibling;r.firstChild;)r=r.firstChild;if(r.nodeType!==r.ELEMENT_NODE&&(r=r.parentElement),!r||r===t||!t.contains(r))return;const s=n+(o?"."+o:"");for(;r!==t;){if(r.matches(s))return r;r=r.parentElement}}function ACe(e,t){return{contextElement:t,getBoundingClientRect(){return t.contains(e.startContainer)?e.getBoundingClientRect():t.getBoundingClientRect()}}}function D6(e,t,n){if(!e)return;const{ownerDocument:o}=e,{defaultView:r}=o,s=r.getSelection();if(!s||!s.rangeCount)return;const i=s.getRangeAt(0);if(!i||!i.startContainer)return;const c=OCe(i,e,t,n);return c||ACe(i,e)}function Vz({editableContentElement:e,settings:t={}}){const{tagName:n,className:o,isActive:r}=t,[s,i]=O.useState(()=>D6(e,n,o)),c=t1(r);return O.useLayoutEffect(()=>{if(!e)return;function l(){i(D6(e,n,o))}function u(){p.addEventListener("selectionchange",l)}function d(){p.removeEventListener("selectionchange",l)}const{ownerDocument:p}=e;return(e===p.activeElement||!c&&r||c&&!r)&&(i(D6(e,n,o)),u()),e.addEventListener("focusin",u),e.addEventListener("focusout",d),()=>{d(),e.removeEventListener("focusin",u),e.removeEventListener("focusout",d)}},[e,n,o,r,c]),s}const yCe="pre-wrap",vCe="1px";function xCe(){return O.useCallback(e=>{e&&(e.style.whiteSpace=yCe,e.style.minWidth=vCe)},[])}function _Ce({record:e}){const t=O.useRef(),{activeFormats:n=[],replacements:o,start:r}=e.current,s=o[r];return O.useEffect(()=>{if((!n||!n.length)&&!s)return;const i="*[data-rich-text-format-boundary]",c=t.current.querySelector(i);if(!c)return;const{ownerDocument:l}=c,{defaultView:u}=l,p=u.getComputedStyle(c).color.replace(")",", 0.2)").replace("rgb","rgba"),f=`.rich-text:focus ${i}`,b=`background-color: ${p}`,h=`${f} {${b}}`,g="rich-text-boundary-style";let z=l.getElementById(g);z||(z=l.createElement("style"),z.id=g,l.head.appendChild(z)),z.innerHTML!==h&&(z.innerHTML=h)},[n,s]),t}const wCe=e=>t=>{function n(r){const{record:s,createRecord:i,handleChange:c}=e.current,{ownerDocument:l}=t,{defaultView:u}=l,{anchorNode:d,focusNode:p,isCollapsed:f}=u.getSelection(),b=t.contains(d)&&t.contains(p);if(f||!b)return;const h=O2(s.current),g=cp(h),z=K1({value:h});r.clipboardData.setData("text/plain",g),r.clipboardData.setData("text/html",z),r.clipboardData.setData("rich-text","true"),r.preventDefault(),r.type==="cut"&&c(Ks(i()))}const{defaultView:o}=t.ownerDocument;return o.addEventListener("copy",n),o.addEventListener("cut",n),()=>{o.removeEventListener("copy",n),o.removeEventListener("cut",n)}},kCe=()=>e=>{function t(o){const{target:r}=o;if(r===e||r.textContent&&r.isContentEditable)return;const{ownerDocument:s}=r,{defaultView:i}=s,c=i.getSelection();if(c.containsNode(r))return;const l=s.createRange(),u=r.isContentEditable?r:r.closest("[contenteditable]");l.selectNode(u),c.removeAllRanges(),c.addRange(l),o.preventDefault()}function n(o){o.relatedTarget&&!e.contains(o.relatedTarget)&&o.relatedTarget.tagName==="A"&&t(o)}return e.addEventListener("click",t),e.addEventListener("focusin",n),()=>{e.removeEventListener("click",t),e.removeEventListener("focusin",n)}},V$=[],qCe=e=>t=>{function n(o){const{keyCode:r,shiftKey:s,altKey:i,metaKey:c,ctrlKey:l}=o;if(s||i||c||l||r!==Ns&&r!==Ls)return;const{record:u,applyRecord:d,forceRender:p}=e.current,{text:f,formats:b,start:h,end:g,activeFormats:z=[]}=u.current,y=lf(u.current),{ownerDocument:x}=t,{defaultView:v}=x,{direction:M}=v.getComputedStyle(t),A=M==="rtl"?Ls:Ns,_=o.keyCode===A;if(y&&z.length===0&&(h===0&&_||g===f.length&&!_)||!y)return;const w=b[h-1]||V$,k=b[h]||V$,q=_?w:k,S=z.every((E,L)=>E===q[L]);let C=z.length;if(S?C{t.removeEventListener("keydown",n)}},SCe=e=>t=>{function n(o){const{keyCode:r}=o,{createRecord:s,handleChange:i}=e.current;if(o.defaultPrevented||r!==_a&&r!==Si)return;const c=s(),{start:l,end:u,text:d}=c;l===0&&u!==0&&u===d.length&&(i(Ks(c)),o.preventDefault())}return t.addEventListener("keydown",n),()=>{t.removeEventListener("keydown",n)}};function CCe({value:e,start:t,end:n,formats:o}){const r=Math.min(t,n),s=Math.max(t,n),i=e.formats[r-1]||[],c=e.formats[s]||[];for(e.activeFormats=o.map((l,u)=>{if(i[u]){if(cv(l,i[u]))return i[u]}else if(c[u]&&cv(l,c[u]))return c[u];return l});--n>=t;)e.activeFormats.length>0?e.formats[n]=e.activeFormats:delete e.formats[n];return e}const RCe=new Set(["insertParagraph","insertOrderedList","insertUnorderedList","insertHorizontalRule","insertLink"]),H$=[],Zne="data-rich-text-placeholder";function WCe(e){const t=e.getSelection(),{anchorNode:n,anchorOffset:o}=t;if(n.nodeType!==n.ELEMENT_NODE)return;const r=n.childNodes[o];!r||r.nodeType!==r.ELEMENT_NODE||!r.hasAttribute(Zne)||t.collapseToStart()}const TCe=e=>t=>{const{ownerDocument:n}=t,{defaultView:o}=n;let r=!1;function s(d){if(r)return;let p;d&&(p=d.inputType);const{record:f,applyRecord:b,createRecord:h,handleChange:g}=e.current;if(p&&(p.indexOf("format")===0||RCe.has(p))){b(f.current);return}const z=h(),{start:y,activeFormats:x=[]}=f.current,v=CCe({value:z,start:y,end:z.start,formats:x});g(v)}function i(){const{record:d,applyRecord:p,createRecord:f,onSelectionChange:b}=e.current;if(t.contentEditable!=="true")return;const{anchorNode:h,focusNode:g}=o.getSelection();if(!(t.contains(h)&&t.contains(g)&&n.activeElement.contains(t))||r)return;const{start:y,end:x,text:v}=f(),M=d.current;if(v!==M.text){s();return}if(y===M.start&&x===M.end){M.text.length===0&&y===0&&WCe(o);return}const A={...M,start:y,end:x,activeFormats:M._newActiveFormats,_newActiveFormats:void 0},_=TB(A,H$);A.activeFormats=_,d.current=A,p(A,{domOnly:!0}),b(y,x)}function c(){r=!0,n.removeEventListener("selectionchange",i),t.querySelector(`[${Zne}]`)?.remove()}function l(){r=!1,s({inputType:"insertText"}),n.addEventListener("selectionchange",i)}function u(){const{record:d,isSelected:p,onSelectionChange:f,applyRecord:b}=e.current;t.parentElement.closest('[contenteditable="true"]')||(p?b(d.current,{domOnly:!0}):d.current={...d.current,start:void 0,end:void 0,activeFormats:H$},f(d.current.start,d.current.end),window.queueMicrotask(i),n.addEventListener("selectionchange",i))}return t.addEventListener("input",s),t.addEventListener("compositionstart",c),t.addEventListener("compositionend",l),t.addEventListener("focus",u),()=>{t.removeEventListener("input",s),t.removeEventListener("compositionstart",c),t.removeEventListener("compositionend",l),t.removeEventListener("focus",u),n.removeEventListener("selectionchange",i)}},ECe=()=>e=>{const{ownerDocument:t}=e,{defaultView:n}=t,o=n?.getSelection();let r;function s(){return o.rangeCount?o.getRangeAt(0):null}function i(c){const l=c.type==="keydown"?"keyup":"pointerup";function u(){t.removeEventListener(l,d),t.removeEventListener("selectionchange",u),t.removeEventListener("input",u)}function d(){u(),!Kne(r,s())&&t.dispatchEvent(new Event("selectionchange"))}t.addEventListener(l,d),t.addEventListener("selectionchange",u),t.addEventListener("input",u),r=s()}return e.addEventListener("pointerdown",i),e.addEventListener("keydown",i),()=>{e.removeEventListener("pointerdown",i),e.removeEventListener("keydown",i)}},BCe=[wCe,kCe,qCe,SCe,TCe,ECe];function NCe(e){const t=O.useRef(e);t.current=e;const n=O.useMemo(()=>BCe.map(o=>o(t)),[t]);return Et(o=>{const r=n.map(s=>s(o));return()=>{r.forEach(s=>s())}},[n])}function Qne({value:e="",selectionStart:t,selectionEnd:n,placeholder:o,onSelectionChange:r,preserveWhiteSpace:s,onChange:i,__unstableDisableFormats:c,__unstableIsSelected:l,__unstableDependencies:u=[],__unstableAfterParse:d,__unstableBeforeSerialize:p,__unstableAddInvisibleFormats:f}){const b=h0(),[,h]=O.useReducer(()=>({})),g=O.useRef();function z(){const{ownerDocument:{defaultView:S}}=g.current,C=S.getSelection(),T=C.rangeCount>0?C.getRangeAt(0):null;return m0({element:g.current,range:T,__unstableIsEditableTree:!0})}function y(S,{domOnly:C}={}){fCe({value:S,current:g.current,prepareEditableTree:f,__unstableDomOnly:C,placeholder:o})}const x=O.useRef(e),v=O.useRef();function M(){x.current=e,v.current=e,e instanceof un||(v.current=e?un.fromHTMLString(e,{preserveWhiteSpace:s}):un.empty()),v.current={text:v.current.text,formats:v.current.formats,replacements:v.current.replacements},c&&(v.current.formats=Array(e.length),v.current.replacements=Array(e.length)),d&&(v.current.formats=d(v.current)),v.current.start=t,v.current.end=n}const A=O.useRef(!1);v.current?(t!==v.current.start||n!==v.current.end)&&(A.current=l,v.current={...v.current,start:t,end:n,activeFormats:void 0}):(A.current=l,M());function _(S){if(v.current=S,y(S),c)x.current=S.text;else{const N=p?p(S):S.formats;S={...S,formats:N},typeof e=="string"?x.current=K1({value:S,preserveWhiteSpace:s}):x.current=new un(S)}const{start:C,end:T,formats:W,text:B}=v.current;b.batch(()=>{r(C,T),i(x.current,{__unstableFormats:W,__unstableText:B})}),h()}function w(){M(),y(v.current)}const k=O.useRef(!1);O.useLayoutEffect(()=>{k.current&&e!==x.current&&(w(),h())},[e]),O.useLayoutEffect(()=>{A.current&&(g.current.ownerDocument.activeElement!==g.current&&g.current.focus(),y(v.current),A.current=!1)},[A.current]);const q=Gt([g,xCe(),_Ce({record:v}),NCe({record:v,handleChange:_,applyRecord:y,createRecord:z,isSelected:l,onSelectionChange:r,forceRender:h}),Et(()=>{w(),k.current=!0},[o,...u])]);return{value:v.current,getValue:()=>v.current,onChange:_,ref:q}}let QO;const LCe=new Uint8Array(16);function jCe(){if(!QO&&(QO=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!QO))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return QO(LCe)}const so=[];for(let e=0;e<256;++e)so.push((e+256).toString(16).slice(1));function PCe(e,t=0){return so[e[t+0]]+so[e[t+1]]+so[e[t+2]]+so[e[t+3]]+"-"+so[e[t+4]]+so[e[t+5]]+"-"+so[e[t+6]]+so[e[t+7]]+"-"+so[e[t+8]]+so[e[t+9]]+"-"+so[e[t+10]]+so[e[t+11]]+so[e[t+12]]+so[e[t+13]]+so[e[t+14]]+so[e[t+15]]}const ICe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),U$={randomUUID:ICe};function Xc(e,t,n){if(U$.randomUUID&&!t&&!e)return U$.randomUUID();e=e||{};const o=e.random||(e.rng||jCe)();return o[6]=o[6]&15|64,o[8]=o[8]&63|128,PCe(o)}let F6=null;function DCe(e,t){const n=[...e],o=[];for(;n.length;)o.push(n.splice(0,t));return o}async function FCe(e){F6===null&&(F6=(await ct({path:"/batch/v1",method:"OPTIONS"})).endpoints[0].args.requests.maxItems);const t=[];for(const n of DCe(e,F6)){const o=await ct({path:"/batch/v1",method:"POST",data:{validation:"require-all-validate",requests:n.map(s=>({path:s.path,body:s.data,method:s.method,headers:s.headers}))}});let r;o.failed?r=o.responses.map(s=>({error:s?.body})):r=o.responses.map(s=>{const i={};return s.status>=200&&s.status<300?i.output=s.body:i.error=s.body,i}),t.push(...r)}return t}function $Ce(e=FCe){let t=0,n=[];const o=new VCe;return{add(r){const s=++t;o.add(s);const i=c=>new Promise((l,u)=>{n.push({input:c,resolve:l,reject:u}),o.delete(s)});return typeof r=="function"?Promise.resolve(r(i)).finally(()=>{o.delete(s)}):i(r)},async run(){o.size&&await new Promise(i=>{const c=o.subscribe(()=>{o.size||(c(),i(void 0))})});let r;try{if(r=await e(n.map(({input:i})=>i)),r.length!==n.length)throw new Error("run: Array returned by processor must be same size as input array.")}catch(i){for(const{reject:c}of n)c(i);throw i}let s=!0;return r.forEach((i,c)=>{const l=n[c];if(i?.error)l?.reject(i.error),s=!1;else{var u;l?.resolve((u=i?.output)!==null&&u!==void 0?u:i)}}),n=[],s}}}class VCe{constructor(...t){this.set=new Set(...t),this.subscribers=new Set}get size(){return this.set.size}add(t){return this.set.add(t),this.subscribers.forEach(n=>n()),this}delete(t){const n=this.set.delete(t);return this.subscribers.forEach(o=>o()),n}subscribe(t){return this.subscribers.add(t),()=>{this.subscribers.delete(t)}}}const bo="core",Cr=()=>new Map,i8=e=>{const t=Cr();return e.forEach((n,o)=>{t.set(o,n)}),t},Fo=(e,t,n)=>{let o=e.get(t);return o===void 0&&e.set(t,o=n()),o},HCe=(e,t)=>{const n=[];for(const[o,r]of e)n.push(t(r,o));return n},UCe=(e,t)=>{for(const[n,o]of e)if(t(o,n))return!0;return!1},Eu=()=>new Set,$6=e=>e[e.length-1],XCe=(e,t)=>{for(let n=0;n{this.off(t,o),n(...r)};this.on(t,o)}off(t,n){const o=this._observers.get(t);o!==void 0&&(o.delete(n),o.size===0&&this._observers.delete(t))}emit(t,n){return Gc((this._observers.get(t)||Cr()).values()).forEach(o=>o(...n))}destroy(){this._observers=Cr()}}class Hz{constructor(){this._observers=Cr()}on(t,n){Fo(this._observers,t,Eu).add(n)}once(t,n){const o=(...r)=>{this.off(t,o),n(...r)};this.on(t,o)}off(t,n){const o=this._observers.get(t);o!==void 0&&(o.delete(n),o.size===0&&this._observers.delete(t))}emit(t,n){return Gc((this._observers.get(t)||Cr()).values()).forEach(o=>o(...n))}destroy(){this._observers=Cr()}}const Na=Math.floor,Py=Math.abs,YCe=Math.log10,NB=(e,t)=>ee>t?e:t,Jne=e=>e!==0?e<0:1/e<0,X$=1,G$=2,V6=4,H6=8,vg=32,Wc=64,es=128,Bx=31,a8=63,lp=127,ZCe=2147483647,e1e=Number.MAX_SAFE_INTEGER,QCe=Number.isInteger||(e=>typeof e=="number"&&isFinite(e)&&Na(e)===e),JCe=String.fromCharCode,eRe=e=>e.toLowerCase(),tRe=/^\s*/g,nRe=e=>e.replace(tRe,""),oRe=/([A-Z])/g,K$=(e,t)=>nRe(e.replace(oRe,n=>`${t}${eRe(n)}`)),rRe=e=>{const t=unescape(encodeURIComponent(e)),n=t.length,o=new Uint8Array(n);for(let r=0;rxg.encode(e),c8=xg?sRe:rRe;let TM=typeof TextDecoder>"u"?null:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});TM&&TM.decode(new Uint8Array).length===1&&(TM=null);class Uz{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[]}}const F1=()=>new Uz,iRe=e=>{let t=e.cpos;for(let n=0;n{const t=new Uint8Array(iRe(e));let n=0;for(let o=0;o{const n=e.cbuf.length;n-e.cpos{const n=e.cbuf.length;e.cpos===n&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(n*2),e.cpos=0),e.cbuf[e.cpos++]=t},_g=L1,Wt=(e,t)=>{for(;t>lp;)L1(e,es|lp&t),t=Na(t/128);L1(e,lp&t)},LB=(e,t)=>{const n=Jne(t);for(n&&(t=-t),L1(e,(t>a8?es:0)|(n?Wc:0)|a8&t),t=Na(t/64);t>0;)L1(e,(t>lp?es:0)|lp&t),t=Na(t/128)},l8=new Uint8Array(3e4),cRe=l8.length/3,lRe=(e,t)=>{if(t.length{const n=unescape(encodeURIComponent(t)),o=n.length;Wt(e,o);for(let r=0;r{const n=e.cbuf.length,o=e.cpos,r=NB(n-o,t.length),s=t.length-r;e.cbuf.set(t.subarray(0,r),o),e.cpos+=r,s>0&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(uf(n*2,s)),e.cbuf.set(t.subarray(r)),e.cpos=s)},Qn=(e,t)=>{Wt(e,t.byteLength),Nx(e,t)},jB=(e,t)=>{aRe(e,t);const n=new DataView(e.cbuf.buffer,e.cpos,t);return e.cpos+=t,n},dRe=(e,t)=>jB(e,4).setFloat32(0,t,!1),pRe=(e,t)=>jB(e,8).setFloat64(0,t,!1),fRe=(e,t)=>jB(e,8).setBigInt64(0,t,!1),Y$=new DataView(new ArrayBuffer(4)),bRe=e=>(Y$.setFloat32(0,e),Y$.getFloat32(0)===e),A2=(e,t)=>{switch(typeof t){case"string":L1(e,119),wa(e,t);break;case"number":QCe(t)&&Py(t)<=ZCe?(L1(e,125),LB(e,t)):bRe(t)?(L1(e,124),dRe(e,t)):(L1(e,123),pRe(e,t));break;case"bigint":L1(e,122),fRe(e,t);break;case"object":if(t===null)L1(e,126);else if(GCe(t)){L1(e,117),Wt(e,t.length);for(let n=0;n0&&Wt(this,this.count-1),this.count=1,this.w(this,t),this.s=t)}}const Q$=e=>{e.count>0&&(LB(e.encoder,e.count===1?e.s:-e.s),e.count>1&&Wt(e.encoder,e.count-2))};class Iy{constructor(){this.encoder=new Uz,this.s=0,this.count=0}write(t){this.s===t?this.count++:(Q$(this),this.count=1,this.s=t)}toUint8Array(){return Q$(this),Fn(this.encoder)}}const J$=e=>{if(e.count>0){const t=e.diff*2+(e.count===1?0:1);LB(e.encoder,t),e.count>1&&Wt(e.encoder,e.count-2)}};class U6{constructor(){this.encoder=new Uz,this.s=0,this.count=0,this.diff=0}write(t){this.diff===t-this.s?(this.s=t,this.count++):(J$(this),this.count=1,this.diff=t-this.s,this.s=t)}toUint8Array(){return J$(this),Fn(this.encoder)}}class hRe{constructor(){this.sarr=[],this.s="",this.lensE=new Iy}write(t){this.s+=t,this.s.length>19&&(this.sarr.push(this.s),this.s=""),this.lensE.write(t.length)}toUint8Array(){const t=new Uz;return this.sarr.push(this.s),this.s="",wa(t,this.sarr.join("")),Nx(t,this.lensE.toUint8Array()),Fn(t)}}const Ri=e=>new Error(e),ka=()=>{throw Ri("Method unimplemented")},La=()=>{throw Ri("Unexpected case")},t1e=Ri("Unexpected end of array"),n1e=Ri("Integer out of Range");class Lx{constructor(t){this.arr=t,this.pos=0}}const Ka=e=>new Lx(e),mRe=e=>e.pos!==e.arr.length,MRe=(e,t)=>{const n=new Uint8Array(e.arr.buffer,e.pos+e.arr.byteOffset,t);return e.pos+=t,n},P1=e=>MRe(e,Jt(e)),Sp=e=>e.arr[e.pos++],Jt=e=>{let t=0,n=1;const o=e.arr.length;for(;e.pose1e)throw n1e}throw t1e},PB=e=>{let t=e.arr[e.pos++],n=t&a8,o=64;const r=(t&Wc)>0?-1:1;if(!(t&es))return r*n;const s=e.arr.length;for(;e.pose1e)throw n1e}throw t1e},gRe=e=>{let t=Jt(e);if(t===0)return"";{let n=String.fromCodePoint(Sp(e));if(--t<100)for(;t--;)n+=String.fromCodePoint(Sp(e));else for(;t>0;){const o=t<1e4?t:1e4,r=e.arr.subarray(e.pos,e.pos+o);e.pos+=o,n+=String.fromCodePoint.apply(null,r),t-=o}return decodeURIComponent(escape(n))}},zRe=e=>TM.decode(P1(e)),Tc=TM?zRe:gRe,IB=(e,t)=>{const n=new DataView(e.arr.buffer,e.arr.byteOffset+e.pos,t);return e.pos+=t,n},ORe=e=>IB(e,4).getFloat32(0,!1),ARe=e=>IB(e,8).getFloat64(0,!1),yRe=e=>IB(e,8).getBigInt64(0,!1),vRe=[e=>{},e=>null,PB,ORe,ARe,yRe,e=>!1,e=>!0,Tc,e=>{const t=Jt(e),n={};for(let o=0;o{const t=Jt(e),n=[];for(let o=0;ovRe[127-Sp(e)](e);class eV extends Lx{constructor(t,n){super(t),this.reader=n,this.s=null,this.count=0}read(){return this.count===0&&(this.s=this.reader(this),mRe(this)?this.count=Jt(this)+1:this.count=-1),this.count--,this.s}}class Dy extends Lx{constructor(t){super(t),this.s=0,this.count=0}read(){if(this.count===0){this.s=PB(this);const t=Jne(this.s);this.count=1,t&&(this.s=-this.s,this.count=Jt(this)+2)}return this.count--,this.s}}class X6 extends Lx{constructor(t){super(t),this.s=0,this.count=0,this.diff=0}read(){if(this.count===0){const t=PB(this),n=t&1;this.diff=Na(t/2),this.count=1,n&&(this.count=Jt(this)+2)}return this.s+=this.diff,this.count--,this.s}}class xRe{constructor(t){this.decoder=new Dy(t),this.str=Tc(this.decoder),this.spos=0}read(){const t=this.spos+this.decoder.read(),n=this.str.slice(this.spos,t);return this.spos=t,n}}const _Re=crypto.getRandomValues.bind(crypto),wRe=Math.random,o1e=()=>_Re(new Uint32Array(1))[0],kRe="10000000-1000-4000-8000"+-1e11,r1e=()=>kRe.replace(/[018]/g,e=>(e^o1e()&15>>e/4).toString(16)),Kc=Date.now,v2=e=>new Promise(e);Promise.all.bind(Promise);const qRe=e=>Promise.reject(e),DB=e=>Promise.resolve(e),tV=e=>e===void 0?null:e;class SRe{constructor(){this.map=new Map}setItem(t,n){this.map.set(t,n)}getItem(t){return this.map.get(t)}}let s1e=new SRe,FB=!0;try{typeof localStorage<"u"&&localStorage&&(s1e=localStorage,FB=!1)}catch{}const i1e=s1e,CRe=e=>FB||addEventListener("storage",e),RRe=e=>FB||removeEventListener("storage",e),WRe=Object.assign,a1e=Object.keys,TRe=(e,t)=>{for(const n in e)t(e[n],n)},nV=e=>a1e(e).length,oV=e=>a1e(e).length,ERe=e=>{for(const t in e)return!1;return!0},BRe=(e,t)=>{for(const n in e)if(!t(e[n],n))return!1;return!0},c1e=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),NRe=(e,t)=>e===t||oV(e)===oV(t)&&BRe(e,(n,o)=>(n!==void 0||c1e(t,o))&&t[o]===n),$B=(e,t,n=0)=>{try{for(;n{},jRe=e=>e,PRe=(e,t)=>e===t,EM=(e,t)=>{if(e==null||t==null)return PRe(e,t);if(e.constructor!==t.constructor)return!1;if(e===t)return!0;switch(e.constructor){case ArrayBuffer:e=new Uint8Array(e),t=new Uint8Array(t);case Uint8Array:{if(e.byteLength!==t.byteLength)return!1;for(let n=0;nt.includes(e);var l1e={};const x2=typeof process<"u"&&process.release&&/node|io\.js/.test(process.release.name)&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]",u1e=typeof window<"u"&&typeof document<"u"&&!x2;let Qi;const DRe=()=>{if(Qi===void 0)if(x2){Qi=Cr();const e=process.argv;let t=null;for(let n=0;n{if(e.length!==0){const[t,n]=e.split("=");Qi.set(`--${K$(t,"-")}`,n),Qi.set(`-${K$(t,"-")}`,n)}})):Qi=Cr();return Qi},u8=e=>DRe().has(e),lv=e=>tV(x2?l1e[e.toUpperCase().replaceAll("-","_")]:i1e.getItem(e)),d1e=e=>u8("--"+e)||lv(e)!==null;d1e("production");const FRe=x2&&IRe(l1e.FORCE_COLOR,["true","1","2"]),$Re=FRe||!u8("--no-colors")&&!d1e("no-color")&&(!x2||process.stdout.isTTY)&&(!x2||u8("--color")||lv("COLORTERM")!==null||(lv("TERM")||"").includes("color")),p1e=e=>new Uint8Array(e),VRe=(e,t,n)=>new Uint8Array(e,t,n),HRe=e=>new Uint8Array(e),URe=e=>{let t="";for(let n=0;nBuffer.from(e.buffer,e.byteOffset,e.byteLength).toString("base64"),GRe=e=>{const t=atob(e),n=p1e(t.length);for(let o=0;o{const t=Buffer.from(e,"base64");return VRe(t.buffer,t.byteOffset,t.byteLength)},f1e=u1e?URe:XRe,VB=u1e?GRe:KRe,YRe=e=>{const t=p1e(e.byteLength);return t.set(e),t};class ZRe{constructor(t,n){this.left=t,this.right=n}}const ac=(e,t)=>new ZRe(e,t);typeof DOMParser<"u"&&new DOMParser;const QRe=e=>HCe(e,(t,n)=>`${n}:${t};`).join(""),JRe=JSON.stringify,fl=Symbol,js=fl(),Cp=fl(),b1e=fl(),HB=fl(),h1e=fl(),m1e=fl(),M1e=fl(),UB=fl(),jx=fl(),e8e=e=>{e.length===1&&e[0]?.constructor===Function&&(e=e[0]());const t=[],n=[];let o=0;for(;o0&&n.push(t.join(""));o{const n=rV[G6],o=lv("log"),r=o!==null&&(o==="*"||o==="true"||new RegExp(o,"gi").test(t));return G6=(G6+1)%rV.length,t+=": ",r?(...s)=>{s.length===1&&s[0]?.constructor===Function&&(s=s[0]());const i=Kc(),c=i-sV;sV=i,e(n,t,jx,...s.map(l=>{switch(l!=null&&l.constructor===Uint8Array&&(l=Array.from(l)),typeof l){case"string":case"symbol":return l;default:return JRe(l)}}),n," +"+c+"ms")}:LRe},n8e={[js]:ac("font-weight","bold"),[Cp]:ac("font-weight","normal"),[b1e]:ac("color","blue"),[h1e]:ac("color","green"),[HB]:ac("color","grey"),[m1e]:ac("color","red"),[M1e]:ac("color","purple"),[UB]:ac("color","orange"),[jx]:ac("color","black")},o8e=e=>{e.length===1&&e[0]?.constructor===Function&&(e=e[0]());const t=[],n=[],o=Cr();let r=[],s=0;for(;s0||l.length>0?(t.push("%c"+i),n.push(l)):t.push(i)}else break}}for(s>0&&(r=n,r.unshift(t.join("")));s{console.log(...r8e(e)),s8e.forEach(t=>t.print(e))},s8e=Eu(),i8e=e=>t8e(g1e,e),z1e=e=>({[Symbol.iterator](){return this},next:e}),a8e=(e,t)=>z1e(()=>{let n;do n=e.next();while(!n.done&&!t(n.value));return n}),K6=(e,t)=>z1e(()=>{const{done:n,value:o}=e.next();return{done:n,value:n?void 0:t(o)}});class XB{constructor(t,n){this.clock=t,this.len=n}}class Xz{constructor(){this.clients=new Map}}const O1e=(e,t,n)=>t.clients.forEach((o,r)=>{const s=e.doc.store.clients.get(r);for(let i=0;i{let n=0,o=e.length-1;for(;n<=o;){const r=Na((n+o)/2),s=e[r],i=s.clock;if(i<=t){if(t{const n=e.clients.get(t.client);return n!==void 0&&c8e(n,t.clock)!==null},GB=e=>{e.clients.forEach(t=>{t.sort((r,s)=>r.clock-s.clock);let n,o;for(n=1,o=1;n=s.clock?r.len=uf(r.len,s.clock+s.len-r.clock):(o{const t=new Xz;for(let n=0;n{if(!t.clients.has(r)){const s=o.slice();for(let i=n+1;i{Fo(e.clients,t,()=>[]).push(new XB(n,o))},u8e=()=>new Xz,d8e=e=>{const t=u8e();return e.clients.forEach((n,o)=>{const r=[];for(let s=0;s0&&t.clients.set(o,r)}),t},ph=(e,t)=>{Wt(e.restEncoder,t.clients.size),Gc(t.clients.entries()).sort((n,o)=>o[0]-n[0]).forEach(([n,o])=>{e.resetDsCurVal(),Wt(e.restEncoder,n);const r=o.length;Wt(e.restEncoder,r);for(let s=0;s{const t=new Xz,n=Jt(e.restDecoder);for(let o=0;o0){const i=Fo(t.clients,r,()=>[]);for(let c=0;c{const o=new Xz,r=Jt(e.restDecoder);for(let s=0;s0){const s=new Rp;return Wt(s.restEncoder,0),ph(s,o),s.toUint8Array()}return null},y1e=o1e;class fh extends KCe{constructor({guid:t=r1e(),collectionid:n=null,gc:o=!0,gcFilter:r=()=>!0,meta:s=null,autoLoad:i=!1,shouldLoad:c=!0}={}){super(),this.gc=o,this.gcFilter=r,this.clientID=y1e(),this.guid=t,this.collectionid=n,this.share=new Map,this.store=new W1e,this._transaction=null,this._transactionCleanups=[],this.subdocs=new Set,this._item=null,this.shouldLoad=c,this.autoLoad=i,this.meta=s,this.isLoaded=!1,this.isSynced=!1,this.isDestroyed=!1,this.whenLoaded=v2(u=>{this.on("load",()=>{this.isLoaded=!0,u(this)})});const l=()=>v2(u=>{const d=p=>{(p===void 0||p===!0)&&(this.off("sync",d),u())};this.on("sync",d)});this.on("sync",u=>{u===!1&&this.isSynced&&(this.whenSynced=l()),this.isSynced=u===void 0||u===!0,this.isSynced&&!this.isLoaded&&this.emit("load",[this])}),this.whenSynced=l()}load(){const t=this._item;t!==null&&!this.shouldLoad&&ln(t.parent.doc,n=>{n.subdocsLoaded.add(this)},null,!0),this.shouldLoad=!0}getSubdocs(){return this.subdocs}getSubdocGuids(){return new Set(Gc(this.subdocs).map(t=>t.guid))}transact(t,n=null){return ln(this,t,n)}get(t,n=ho){const o=Fo(this.share,t,()=>{const s=new n;return s._integrate(this,null),s}),r=o.constructor;if(n!==ho&&r!==n)if(r===ho){const s=new n;s._map=o._map,o._map.forEach(i=>{for(;i!==null;i=i.left)i.parent=s}),s._start=o._start;for(let i=s._start;i!==null;i=i.right)i.parent=s;return s._length=o._length,this.share.set(t,s),s._integrate(this,null),s}else throw new Error(`Type with the name ${t} has already been defined with a different constructor`);return o}getArray(t=""){return this.get(t,Ub)}getText(t=""){return this.get(t,k2)}getMap(t=""){return this.get(t,w2)}getXmlElement(t=""){return this.get(t,q2)}getXmlFragment(t=""){return this.get(t,Wp)}toJSON(){const t={};return this.share.forEach((n,o)=>{t[o]=n.toJSON()}),t}destroy(){this.isDestroyed=!0,Gc(this.subdocs).forEach(n=>n.destroy());const t=this._item;if(t!==null){this._item=null;const n=t.content;n.doc=new fh({guid:this.guid,...n.opts,shouldLoad:!1}),n.doc._item=t,ln(t.parent.doc,o=>{const r=n.doc;t.deleted||o.subdocsAdded.add(r),o.subdocsRemoved.add(this)},null,!0)}this.emit("destroyed",[!0]),this.emit("destroy",[this]),super.destroy()}}class v1e{constructor(t){this.restDecoder=t}resetDsCurVal(){}readDsClock(){return Jt(this.restDecoder)}readDsLen(){return Jt(this.restDecoder)}}class x1e extends v1e{readLeftID(){return M0(Jt(this.restDecoder),Jt(this.restDecoder))}readRightID(){return M0(Jt(this.restDecoder),Jt(this.restDecoder))}readClient(){return Jt(this.restDecoder)}readInfo(){return Sp(this.restDecoder)}readString(){return Tc(this.restDecoder)}readParentInfo(){return Jt(this.restDecoder)===1}readTypeRef(){return Jt(this.restDecoder)}readLen(){return Jt(this.restDecoder)}readAny(){return y2(this.restDecoder)}readBuf(){return YRe(P1(this.restDecoder))}readJSON(){return JSON.parse(Tc(this.restDecoder))}readKey(){return Tc(this.restDecoder)}}class p8e{constructor(t){this.dsCurrVal=0,this.restDecoder=t}resetDsCurVal(){this.dsCurrVal=0}readDsClock(){return this.dsCurrVal+=Jt(this.restDecoder),this.dsCurrVal}readDsLen(){const t=Jt(this.restDecoder)+1;return this.dsCurrVal+=t,t}}class _2 extends p8e{constructor(t){super(t),this.keys=[],Jt(t),this.keyClockDecoder=new X6(P1(t)),this.clientDecoder=new Dy(P1(t)),this.leftClockDecoder=new X6(P1(t)),this.rightClockDecoder=new X6(P1(t)),this.infoDecoder=new eV(P1(t),Sp),this.stringDecoder=new xRe(P1(t)),this.parentInfoDecoder=new eV(P1(t),Sp),this.typeRefDecoder=new Dy(P1(t)),this.lenDecoder=new Dy(P1(t))}readLeftID(){return new Hb(this.clientDecoder.read(),this.leftClockDecoder.read())}readRightID(){return new Hb(this.clientDecoder.read(),this.rightClockDecoder.read())}readClient(){return this.clientDecoder.read()}readInfo(){return this.infoDecoder.read()}readString(){return this.stringDecoder.read()}readParentInfo(){return this.parentInfoDecoder.read()===1}readTypeRef(){return this.typeRefDecoder.read()}readLen(){return this.lenDecoder.read()}readAny(){return y2(this.restDecoder)}readBuf(){return P1(this.restDecoder)}readJSON(){return y2(this.restDecoder)}readKey(){const t=this.keyClockDecoder.read();if(t{o=uf(o,t[0].id.clock);const r=ja(t,o);Wt(e.restEncoder,t.length-r),e.writeClient(n),Wt(e.restEncoder,o);const s=t[r];s.write(e,o-s.id.clock);for(let i=r+1;i{const o=new Map;n.forEach((r,s)=>{H1(t,s)>r&&o.set(s,r)}),Px(t).forEach((r,s)=>{n.has(s)||o.set(s,0)}),Wt(e.restEncoder,o.size),Gc(o.entries()).sort((r,s)=>s[0]-r[0]).forEach(([r,s])=>{f8e(e,t.clients.get(r),r,s)})},b8e=(e,t)=>{const n=Cr(),o=Jt(e.restDecoder);for(let r=0;r{const o=[];let r=Gc(n.keys()).sort((b,h)=>b-h);if(r.length===0)return null;const s=()=>{if(r.length===0)return null;let b=n.get(r[r.length-1]);for(;b.refs.length===b.i;)if(r.pop(),r.length>0)b=n.get(r[r.length-1]);else return null;return b};let i=s();if(i===null)return null;const c=new W1e,l=new Map,u=(b,h)=>{const g=l.get(b);(g==null||g>h)&&l.set(b,h)};let d=i.refs[i.i++];const p=new Map,f=()=>{for(const b of o){const h=b.id.client,g=n.get(h);g?(g.i--,c.clients.set(h,g.refs.slice(g.i)),n.delete(h),g.i=0,g.refs=[]):c.clients.set(h,[b]),r=r.filter(z=>z!==h)}o.length=0};for(;;){if(d.constructor!==Ts){const h=Fo(p,d.id.client,()=>H1(t,d.id.client))-d.id.clock;if(h<0)o.push(d),u(d.id.client,d.id.clock-1),f();else{const g=d.getMissing(e,t);if(g!==null){o.push(d);const z=n.get(g)||{refs:[],i:0};if(z.refs.length===z.i)u(g,H1(t,g)),f();else{d=z.refs[z.i++];continue}}else(h===0||h0)d=o.pop();else if(i!==null&&i.i0){const b=new Rp;return YB(b,c,new Map),Wt(b.restEncoder,0),{missing:l,update:b.toUint8Array()}}return null},m8e=(e,t)=>YB(e,t.doc.store,t.beforeState),M8e=(e,t,n,o=new _2(e))=>ln(t,r=>{r.local=!1;let s=!1;const i=r.doc,c=i.store,l=b8e(o,i),u=h8e(r,c,l),d=c.pendingStructs;if(d){for(const[f,b]of d.missing)if(bb)&&d.missing.set(f,b)}d.update=dv([d.update,u.update])}}else c.pendingStructs=u;const p=iV(o,r,c);if(c.pendingDs){const f=new _2(Ka(c.pendingDs));Jt(f.restDecoder);const b=iV(f,r,c);p&&b?c.pendingDs=dv([p,b]):c.pendingDs=p||b}else c.pendingDs=p;if(s){const f=c.pendingStructs.update;c.pendingStructs=null,k1e(r.doc,f)}},n,!1),k1e=(e,t,n,o=_2)=>{const r=Ka(t);M8e(r,e,n,new o(r))},q1e=(e,t,n)=>k1e(e,t,n,x1e),g8e=(e,t,n=new Map)=>{YB(e,t.store,n),ph(e,d8e(t.store))},z8e=(e,t=new Uint8Array([0]),n=new Rp)=>{const o=S1e(t);g8e(n,e,o);const r=[n.toUint8Array()];if(e.store.pendingDs&&r.push(e.store.pendingDs),e.store.pendingStructs&&r.push(E8e(e.store.pendingStructs.update,t)),r.length>1){if(n.constructor===Gz)return W8e(r.map((s,i)=>i===0?s:N8e(s)));if(n.constructor===Rp)return dv(r)}return r[0]},ZB=(e,t)=>z8e(e,t,new Gz),O8e=e=>{const t=new Map,n=Jt(e.restDecoder);for(let o=0;oO8e(new v1e(Ka(e))),C1e=(e,t)=>(Wt(e.restEncoder,t.size),Gc(t.entries()).sort((n,o)=>o[0]-n[0]).forEach(([n,o])=>{Wt(e.restEncoder,n),Wt(e.restEncoder,o)}),e),A8e=(e,t)=>C1e(e,Px(t.store)),y8e=(e,t=new w1e)=>(e instanceof Map?C1e(t,e):A8e(t,e),t.toUint8Array()),v8e=e=>y8e(e,new _1e);class x8e{constructor(){this.l=[]}}const aV=()=>new x8e,cV=(e,t)=>e.l.push(t),lV=(e,t)=>{const n=e.l,o=n.length;e.l=n.filter(r=>t!==r),o===e.l.length&&console.error("[yjs] Tried to remove event handler that doesn't exist.")},R1e=(e,t,n)=>$B(e.l,[t,n]);class Hb{constructor(t,n){this.client=t,this.clock=n}}const JO=(e,t)=>e===t||e!==null&&t!==null&&e.client===t.client&&e.clock===t.clock,M0=(e,t)=>new Hb(e,t),_8e=e=>{for(const[t,n]of e.doc.share.entries())if(n===e)return t;throw La()},tb=(e,t)=>t===void 0?!e.deleted:t.sv.has(e.id.client)&&(t.sv.get(e.id.client)||0)>e.id.clock&&!A1e(t.ds,e.id),d8=(e,t)=>{const n=Fo(e.meta,d8,Eu),o=e.doc.store;n.has(t)||(t.sv.forEach((r,s)=>{r{}),n.add(t))};class W1e{constructor(){this.clients=new Map,this.pendingStructs=null,this.pendingDs=null}}const Px=e=>{const t=new Map;return e.clients.forEach((n,o)=>{const r=n[n.length-1];t.set(o,r.id.clock+r.length)}),t},H1=(e,t)=>{const n=e.clients.get(t);if(n===void 0)return 0;const o=n[n.length-1];return o.id.clock+o.length},T1e=(e,t)=>{let n=e.clients.get(t.id.client);if(n===void 0)n=[],e.clients.set(t.id.client,n);else{const o=n[n.length-1];if(o.id.clock+o.length!==t.id.clock)throw La()}n.push(t)},ja=(e,t)=>{let n=0,o=e.length-1,r=e[o],s=r.id.clock;if(s===t)return o;let i=Na(t/(s+r.length-1)*o);for(;n<=o;){if(r=e[i],s=r.id.clock,s<=t){if(t{const n=e.clients.get(t.client);return n[ja(n,t.clock)]},Y6=w8e,p8=(e,t,n)=>{const o=ja(t,n),r=t[o];return r.id.clock{const n=e.doc.store.clients.get(t.client);return n[p8(e,n,t.clock)]},uV=(e,t,n)=>{const o=t.clients.get(n.client),r=ja(o,n.clock),s=o[r];return n.clock!==s.id.clock+s.length-1&&s.constructor!==Ws&&o.splice(r+1,0,Mv(e,s,n.clock-s.id.clock+1)),s},k8e=(e,t,n)=>{const o=e.clients.get(t.id.client);o[ja(o,t.id.clock)]=n},E1e=(e,t,n,o,r)=>{if(o===0)return;const s=n+o;let i=p8(e,t,n),c;do c=t[i++],st.deleteSet.clients.size===0&&!UCe(t.afterState,(n,o)=>t.beforeState.get(o)!==n)?!1:(GB(t.deleteSet),m8e(e,t),ph(e,t.deleteSet),!0),pV=(e,t,n)=>{const o=t._item;(o===null||o.id.clock<(e.beforeState.get(o.id.client)||0)&&!o.deleted)&&Fo(e.changed,t,Eu).add(n)},Fy=(e,t)=>{let n=e[t],o=e[t-1],r=t;for(;r>0;n=o,o=e[--r-1]){if(o.deleted===n.deleted&&o.constructor===n.constructor&&o.mergeWith(n)){n instanceof Wo&&n.parentSub!==null&&n.parent._map.get(n.parentSub)===n&&n.parent._map.set(n.parentSub,o);continue}break}const s=t-r;return s&&e.splice(t+1-s,s),s},S8e=(e,t,n)=>{for(const[o,r]of e.clients.entries()){const s=t.clients.get(o);for(let i=r.length-1;i>=0;i--){const c=r[i],l=c.clock+c.len;for(let u=ja(s,c.clock),d=s[u];u{e.clients.forEach((n,o)=>{const r=t.clients.get(o);for(let s=n.length-1;s>=0;s--){const i=n[s],c=NB(r.length-1,1+ja(r,i.clock+i.len-1));for(let l=c,u=r[l];l>0&&u.id.clock>=i.clock;u=r[l])l-=1+Fy(r,l)}})},B1e=(e,t)=>{if(tc.push(()=>{(u._item===null||!u._item.deleted)&&u._callObserver(n,l)})),c.push(()=>{n.changedParentTypes.forEach((l,u)=>{u._dEH.l.length>0&&(u._item===null||!u._item.deleted)&&(l=l.filter(d=>d.target._item===null||!d.target._item.deleted),l.forEach(d=>{d.currentTarget=u,d._path=null}),l.sort((d,p)=>d.path.length-p.path.length),R1e(u._dEH,l,n))})}),c.push(()=>o.emit("afterTransaction",[n,o])),$B(c,[]),n._needFormattingCleanup&&Y8e(n)}finally{o.gc&&S8e(s,r,o.gcFilter),C8e(s,r),n.afterState.forEach((d,p)=>{const f=n.beforeState.get(p)||0;if(f!==d){const b=r.clients.get(p),h=uf(ja(b,f),1);for(let g=b.length-1;g>=h;)g-=1+Fy(b,g)}});for(let d=i.length-1;d>=0;d--){const{client:p,clock:f}=i[d].id,b=r.clients.get(p),h=ja(b,f);h+11||h>0&&Fy(b,h)}if(!n.local&&n.afterState.get(o.clientID)!==n.beforeState.get(o.clientID)&&(g1e(UB,js,"[yjs] ",Cp,m1e,"Changed the client-id because another client seems to be using it."),o.clientID=y1e()),o.emit("afterTransactionCleanup",[n,o]),o._observers.has("update")){const d=new Gz;dV(d,n)&&o.emit("update",[d.toUint8Array(),n.origin,o,n])}if(o._observers.has("updateV2")){const d=new Rp;dV(d,n)&&o.emit("updateV2",[d.toUint8Array(),n.origin,o,n])}const{subdocsAdded:c,subdocsLoaded:l,subdocsRemoved:u}=n;(c.size>0||u.size>0||l.size>0)&&(c.forEach(d=>{d.clientID=o.clientID,d.collectionid==null&&(d.collectionid=o.collectionid),o.subdocs.add(d)}),u.forEach(d=>o.subdocs.delete(d)),o.emit("subdocs",[{loaded:l,added:c,removed:u},o,n]),u.forEach(d=>d.destroy())),e.length<=t+1?(o._transactionCleanups=[],o.emit("afterAllTransactions",[o,e])):B1e(e,t+1)}}},ln=(e,t,n=null,o=!0)=>{const r=e._transactionCleanups;let s=!1,i=null;e._transaction===null&&(s=!0,e._transaction=new q8e(e,n,o),r.push(e._transaction),r.length===1&&e.emit("beforeAllTransactions",[e]),e.emit("beforeTransaction",[e._transaction,e]));try{i=t(e._transaction)}finally{if(s){const c=e._transaction===r[0];e._transaction=null,c&&B1e(r,0)}}return i};function*R8e(e){const t=Jt(e.restDecoder);for(let n=0;ndv(e,x1e,Gz),T8e=(e,t)=>{if(e.constructor===Ws){const{client:n,clock:o}=e.id;return new Ws(M0(n,o+t),e.length-t)}else if(e.constructor===Ts){const{client:n,clock:o}=e.id;return new Ts(M0(n,o+t),e.length-t)}else{const n=e,{client:o,clock:r}=n.id;return new Wo(M0(o,r+t),null,M0(o,r+t-1),null,n.rightOrigin,n.parent,n.parentSub,n.content.splice(t))}},dv=(e,t=_2,n=Rp)=>{if(e.length===1)return e[0];const o=e.map(d=>new t(Ka(d)));let r=o.map(d=>new QB(d,!0)),s=null;const i=new n,c=new JB(i);for(;r=r.filter(f=>f.curr!==null),r.sort((f,b)=>{if(f.curr.id.client===b.curr.id.client){const h=f.curr.id.clock-b.curr.id.clock;return h===0?f.curr.constructor===b.curr.constructor?0:f.curr.constructor===Ts?1:-1:h}else return b.curr.id.client-f.curr.id.client}),r.length!==0;){const d=r[0],p=d.curr.id.client;if(s!==null){let f=d.curr,b=!1;for(;f!==null&&f.id.clock+f.length<=s.struct.id.clock+s.struct.length&&f.id.client>=s.struct.id.client;)f=d.next(),b=!0;if(f===null||f.id.client!==p||b&&f.id.clock>s.struct.id.clock+s.struct.length)continue;if(p!==s.struct.id.client)Gl(c,s.struct,s.offset),s={struct:f,offset:0},d.next();else if(s.struct.id.clock+s.struct.length0&&(s.struct.constructor===Ts?s.struct.length-=h:f=T8e(f,h)),s.struct.mergeWith(f)||(Gl(c,s.struct,s.offset),s={struct:f,offset:0},d.next())}}else s={struct:d.curr,offset:0},d.next();for(let f=d.curr;f!==null&&f.id.client===p&&f.id.clock===s.struct.id.clock+s.struct.length&&f.constructor!==Ts;f=d.next())Gl(c,s.struct,s.offset),s={struct:f,offset:0}}s!==null&&(Gl(c,s.struct,s.offset),s=null),eN(c);const l=o.map(d=>KB(d)),u=l8e(l);return ph(i,u),i.toUint8Array()},E8e=(e,t,n=_2,o=Rp)=>{const r=S1e(t),s=new o,i=new JB(s),c=new n(Ka(e)),l=new QB(c,!1);for(;l.curr;){const d=l.curr,p=d.id.client,f=r.get(p)||0;if(l.curr.constructor===Ts){l.next();continue}if(d.id.clock+d.length>f)for(Gl(i,d,uf(f-d.id.clock,0)),l.next();l.curr&&l.curr.id.client===p;)Gl(i,l.curr,0),l.next();else for(;l.curr&&l.curr.id.client===p&&l.curr.id.clock+l.curr.length<=f;)l.next()}eN(i);const u=KB(c);return ph(s,u),s.toUint8Array()},N1e=e=>{e.written>0&&(e.clientStructs.push({written:e.written,restEncoder:Fn(e.encoder.restEncoder)}),e.encoder.restEncoder=F1(),e.written=0)},Gl=(e,t,n)=>{e.written>0&&e.currClient!==t.id.client&&N1e(e),e.written===0&&(e.currClient=t.id.client,e.encoder.writeClient(t.id.client),Wt(e.encoder.restEncoder,t.id.clock+n)),t.write(e.encoder,n),e.written++},eN=e=>{N1e(e);const t=e.encoder.restEncoder;Wt(t,e.clientStructs.length);for(let n=0;n{const r=new n(Ka(e)),s=new QB(r,!1),i=new o,c=new JB(i);for(let u=s.curr;u!==null;u=s.next())Gl(c,t(u),0);eN(c);const l=KB(r);return ph(i,l),i.toUint8Array()},N8e=e=>B8e(e,jRe,_2,Gz),fV="You must not compute changes after the event-handler fired.";class Ix{constructor(t,n){this.target=t,this.currentTarget=t,this.transaction=n,this._changes=null,this._keys=null,this._delta=null,this._path=null}get path(){return this._path||(this._path=L8e(this.currentTarget,this.target))}deletes(t){return A1e(this.transaction.deleteSet,t.id)}get keys(){if(this._keys===null){if(this.transaction.doc._transactionCleanups.length===0)throw Ri(fV);const t=new Map,n=this.target;this.transaction.changed.get(n).forEach(r=>{if(r!==null){const s=n._map.get(r);let i,c;if(this.adds(s)){let l=s.left;for(;l!==null&&this.adds(l);)l=l.left;if(this.deletes(s))if(l!==null&&this.deletes(l))i="delete",c=$6(l.content.getContent());else return;else l!==null&&this.deletes(l)?(i="update",c=$6(l.content.getContent())):(i="add",c=void 0)}else if(this.deletes(s))i="delete",c=$6(s.content.getContent());else return;t.set(r,{action:i,oldValue:c})}}),this._keys=t}return this._keys}get delta(){return this.changes.delta}adds(t){return t.id.clock>=(this.transaction.beforeState.get(t.id.client)||0)}get changes(){let t=this._changes;if(t===null){if(this.transaction.doc._transactionCleanups.length===0)throw Ri(fV);const n=this.target,o=Eu(),r=Eu(),s=[];if(t={added:o,deleted:r,delta:s,keys:this.keys},this.transaction.changed.get(n).has(null)){let c=null;const l=()=>{c&&s.push(c)};for(let u=n._start;u!==null;u=u.right)u.deleted?this.deletes(u)&&!this.adds(u)&&((c===null||c.delete===void 0)&&(l(),c={delete:0}),c.delete+=u.length,r.add(u)):this.adds(u)?((c===null||c.insert===void 0)&&(l(),c={insert:[]}),c.insert=c.insert.concat(u.content.getContent()),o.add(u)):((c===null||c.retain===void 0)&&(l(),c={retain:0}),c.retain+=u.length);c!==null&&c.retain===void 0&&l()}this._changes=t}return t}}const L8e=(e,t)=>{const n=[];for(;t._item!==null&&t!==e;){if(t._item.parentSub!==null)n.unshift(t._item.parentSub);else{let o=0,r=t._item.parent._start;for(;r!==t._item&&r!==null;)!r.deleted&&r.countable&&(o+=r.length),r=r.right;n.unshift(o)}t=t._item.parent}return n},L1e=80;let tN=0;class j8e{constructor(t,n){t.marker=!0,this.p=t,this.index=n,this.timestamp=tN++}}const P8e=e=>{e.timestamp=tN++},j1e=(e,t,n)=>{e.p.marker=!1,e.p=t,t.marker=!0,e.index=n,e.timestamp=tN++},I8e=(e,t,n)=>{if(e.length>=L1e){const o=e.reduce((r,s)=>r.timestamp{if(e._start===null||t===0||e._searchMarker===null)return null;const n=e._searchMarker.length===0?null:e._searchMarker.reduce((s,i)=>Py(t-s.index)t;)o=o.left,!o.deleted&&o.countable&&(r-=o.length);for(;o.left!==null&&o.left.id.client===o.id.client&&o.left.id.clock+o.left.length===o.id.clock;)o=o.left,!o.deleted&&o.countable&&(r-=o.length);return n!==null&&Py(n.index-r){for(let o=e.length-1;o>=0;o--){const r=e[o];if(n>0){let s=r.p;for(s.marker=!1;s&&(s.deleted||!s.countable);)s=s.left,s&&!s.deleted&&s.countable&&(r.index-=s.length);if(s===null||s.marker===!0){e.splice(o,1);continue}r.p=s,s.marker=!0}(t0&&t===r.index)&&(r.index=uf(t,r.index+n))}},Fx=(e,t,n)=>{const o=e,r=t.changedParentTypes;for(;Fo(r,e,()=>[]).push(n),e._item!==null;)e=e._item.parent;R1e(o._eH,n,t)};class ho{constructor(){this._item=null,this._map=new Map,this._start=null,this.doc=null,this._length=0,this._eH=aV(),this._dEH=aV(),this._searchMarker=null}get parent(){return this._item?this._item.parent:null}_integrate(t,n){this.doc=t,this._item=n}_copy(){throw ka()}clone(){throw ka()}_write(t){}get _first(){let t=this._start;for(;t!==null&&t.deleted;)t=t.right;return t}_callObserver(t,n){!t.local&&this._searchMarker&&(this._searchMarker.length=0)}observe(t){cV(this._eH,t)}observeDeep(t){cV(this._dEH,t)}unobserve(t){lV(this._eH,t)}unobserveDeep(t){lV(this._dEH,t)}toJSON(){}}const P1e=(e,t,n)=>{t<0&&(t=e._length+t),n<0&&(n=e._length+n);let o=n-t;const r=[];let s=e._start;for(;s!==null&&o>0;){if(s.countable&&!s.deleted){const i=s.content.getContent();if(i.length<=t)t-=i.length;else{for(let c=t;c0;c++)r.push(i[c]),o--;t=0}}s=s.right}return r},I1e=e=>{const t=[];let n=e._start;for(;n!==null;){if(n.countable&&!n.deleted){const o=n.content.getContent();for(let r=0;r{let n=0,o=e._start;for(;o!==null;){if(o.countable&&!o.deleted){const r=o.content.getContent();for(let s=0;s{const n=[];return kg(e,(o,r)=>{n.push(t(o,r,e))}),n},D8e=e=>{let t=e._start,n=null,o=0;return{[Symbol.iterator](){return this},next:()=>{if(n===null){for(;t!==null&&t.deleted;)t=t.right;if(t===null)return{done:!0,value:void 0};n=t.content.getContent(),o=0,t=t.right}const r=n[o++];return n.length<=o&&(n=null),{done:!1,value:r}}}},F1e=(e,t)=>{const n=Dx(e,t);let o=e._start;for(n!==null&&(o=n.p,t-=n.index);o!==null;o=o.right)if(!o.deleted&&o.countable){if(t{let r=n;const s=e.doc,i=s.clientID,c=s.store,l=n===null?t._start:n.right;let u=[];const d=()=>{u.length>0&&(r=new Wo(M0(i,H1(c,i)),r,r&&r.lastId,l,l&&l.id,t,null,new Tp(u)),r.integrate(e,0),u=[])};o.forEach(p=>{if(p===null)u.push(p);else switch(p.constructor){case Number:case Object:case Boolean:case Array:case String:u.push(p);break;default:switch(d(),p.constructor){case Uint8Array:case ArrayBuffer:r=new Wo(M0(i,H1(c,i)),r,r&&r.lastId,l,l&&l.id,t,null,new Kz(new Uint8Array(p))),r.integrate(e,0);break;case fh:r=new Wo(M0(i,H1(c,i)),r,r&&r.lastId,l,l&&l.id,t,null,new Yz(p)),r.integrate(e,0);break;default:if(p instanceof ho)r=new Wo(M0(i,H1(c,i)),r,r&&r.lastId,l,l&&l.id,t,null,new bl(p)),r.integrate(e,0);else throw new Error("Unexpected content type in insert operation")}}}),d()},$1e=()=>Ri("Length exceeded!"),V1e=(e,t,n,o)=>{if(n>t._length)throw $1e();if(n===0)return t._searchMarker&&wg(t._searchMarker,n,o.length),pv(e,t,null,o);const r=n,s=Dx(t,n);let i=t._start;for(s!==null&&(i=s.p,n-=s.index,n===0&&(i=i.prev,n+=i&&i.countable&&!i.deleted?i.length:0));i!==null;i=i.right)if(!i.deleted&&i.countable){if(n<=i.length){n{let r=(t._searchMarker||[]).reduce((s,i)=>i.index>s.index?i:s,{index:0,p:t._start}).p;if(r)for(;r.right;)r=r.right;return pv(e,t,r,n)},H1e=(e,t,n,o)=>{if(o===0)return;const r=n,s=o,i=Dx(t,n);let c=t._start;for(i!==null&&(c=i.p,n-=i.index);c!==null&&n>0;c=c.right)!c.deleted&&c.countable&&(n0&&c!==null;)c.deleted||(o0)throw $1e();t._searchMarker&&wg(t._searchMarker,r,-s+o)},fv=(e,t,n)=>{const o=t._map.get(n);o!==void 0&&o.delete(e)},nN=(e,t,n,o)=>{const r=t._map.get(n)||null,s=e.doc,i=s.clientID;let c;if(o==null)c=new Tp([o]);else switch(o.constructor){case Number:case Object:case Boolean:case Array:case String:c=new Tp([o]);break;case Uint8Array:c=new Kz(o);break;case fh:c=new Yz(o);break;default:if(o instanceof ho)c=new bl(o);else throw new Error("Unexpected content type")}new Wo(M0(i,H1(s.store,i)),r,r&&r.lastId,null,null,t,n,c).integrate(e,0)},oN=(e,t)=>{const n=e._map.get(t);return n!==void 0&&!n.deleted?n.content.getContent()[n.length-1]:void 0},U1e=e=>{const t={};return e._map.forEach((n,o)=>{n.deleted||(t[o]=n.content.getContent()[n.length-1])}),t},X1e=(e,t)=>{const n=e._map.get(t);return n!==void 0&&!n.deleted},$8e=(e,t)=>{const n={};return e._map.forEach((o,r)=>{let s=o;for(;s!==null&&(!t.sv.has(s.id.client)||s.id.clock>=(t.sv.get(s.id.client)||0));)s=s.left;s!==null&&tb(s,t)&&(n[r]=s.content.getContent()[s.length-1])}),n},eA=e=>a8e(e.entries(),t=>!t[1].deleted);class V8e extends Ix{}class Ub extends ho{constructor(){super(),this._prelimContent=[],this._searchMarker=[]}static from(t){const n=new Ub;return n.push(t),n}_integrate(t,n){super._integrate(t,n),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new Ub}clone(){const t=new Ub;return t.insert(0,this.toArray().map(n=>n instanceof ho?n.clone():n)),t}get length(){return this._prelimContent===null?this._length:this._prelimContent.length}_callObserver(t,n){super._callObserver(t,n),Fx(this,t,new V8e(this,t))}insert(t,n){this.doc!==null?ln(this.doc,o=>{V1e(o,this,t,n)}):this._prelimContent.splice(t,0,...n)}push(t){this.doc!==null?ln(this.doc,n=>{F8e(n,this,t)}):this._prelimContent.push(...t)}unshift(t){this.insert(0,t)}delete(t,n=1){this.doc!==null?ln(this.doc,o=>{H1e(o,this,t,n)}):this._prelimContent.splice(t,n)}get(t){return F1e(this,t)}toArray(){return I1e(this)}slice(t=0,n=this.length){return P1e(this,t,n)}toJSON(){return this.map(t=>t instanceof ho?t.toJSON():t)}map(t){return D1e(this,t)}forEach(t){kg(this,t)}[Symbol.iterator](){return D8e(this)}_write(t){t.writeTypeRef(bWe)}}const H8e=e=>new Ub;class U8e extends Ix{constructor(t,n,o){super(t,n),this.keysChanged=o}}class w2 extends ho{constructor(t){super(),this._prelimContent=null,t===void 0?this._prelimContent=new Map:this._prelimContent=new Map(t)}_integrate(t,n){super._integrate(t,n),this._prelimContent.forEach((o,r)=>{this.set(r,o)}),this._prelimContent=null}_copy(){return new w2}clone(){const t=new w2;return this.forEach((n,o)=>{t.set(o,n instanceof ho?n.clone():n)}),t}_callObserver(t,n){Fx(this,t,new U8e(this,t,n))}toJSON(){const t={};return this._map.forEach((n,o)=>{if(!n.deleted){const r=n.content.getContent()[n.length-1];t[o]=r instanceof ho?r.toJSON():r}}),t}get size(){return[...eA(this._map)].length}keys(){return K6(eA(this._map),t=>t[0])}values(){return K6(eA(this._map),t=>t[1].content.getContent()[t[1].length-1])}entries(){return K6(eA(this._map),t=>[t[0],t[1].content.getContent()[t[1].length-1]])}forEach(t){this._map.forEach((n,o)=>{n.deleted||t(n.content.getContent()[n.length-1],o,this)})}[Symbol.iterator](){return this.entries()}delete(t){this.doc!==null?ln(this.doc,n=>{fv(n,this,t)}):this._prelimContent.delete(t)}set(t,n){return this.doc!==null?ln(this.doc,o=>{nN(o,this,t,n)}):this._prelimContent.set(t,n),n}get(t){return oN(this,t)}has(t){return X1e(this,t)}clear(){this.doc!==null?ln(this.doc,t=>{this.forEach(function(n,o,r){fv(t,r,o)})}):this._prelimContent.clear()}_write(t){t.writeTypeRef(hWe)}}const X8e=e=>new w2,tu=(e,t)=>e===t||typeof e=="object"&&typeof t=="object"&&e&&t&&NRe(e,t);class f8{constructor(t,n,o,r){this.left=t,this.right=n,this.index=o,this.currentAttributes=r}forward(){switch(this.right===null&&La(),this.right.content.constructor){case R1:this.right.deleted||bh(this.currentAttributes,this.right.content);break;default:this.right.deleted||(this.index+=this.right.length);break}this.left=this.right,this.right=this.right.right}}const bV=(e,t,n)=>{for(;t.right!==null&&n>0;){switch(t.right.content.constructor){case R1:t.right.deleted||bh(t.currentAttributes,t.right.content);break;default:t.right.deleted||(n{const r=new Map,s=o?Dx(t,n):null;if(s){const i=new f8(s.p.left,s.p,s.index,r);return bV(e,i,n-s.index)}else{const i=new f8(null,t._start,0,r);return bV(e,i,n)}},G1e=(e,t,n,o)=>{for(;n.right!==null&&(n.right.deleted===!0||n.right.content.constructor===R1&&tu(o.get(n.right.content.key),n.right.content.value));)n.right.deleted||o.delete(n.right.content.key),n.forward();const r=e.doc,s=r.clientID;o.forEach((i,c)=>{const l=n.left,u=n.right,d=new Wo(M0(s,H1(r.store,s)),l,l&&l.lastId,u,u&&u.id,t,null,new R1(c,i));d.integrate(e,0),n.right=d,n.forward()})},bh=(e,t)=>{const{key:n,value:o}=t;o===null?e.delete(n):e.set(n,o)},K1e=(e,t)=>{for(;e.right!==null;){if(!(e.right.deleted||e.right.content.constructor===R1&&tu(t[e.right.content.key]??null,e.right.content.value)))break;e.forward()}},Y1e=(e,t,n,o)=>{const r=e.doc,s=r.clientID,i=new Map;for(const c in o){const l=o[c],u=n.currentAttributes.get(c)??null;if(!tu(u,l)){i.set(c,u);const{left:d,right:p}=n;n.right=new Wo(M0(s,H1(r.store,s)),d,d&&d.lastId,p,p&&p.id,t,null,new R1(c,l)),n.right.integrate(e,0),n.forward()}}return i},Z6=(e,t,n,o,r)=>{n.currentAttributes.forEach((f,b)=>{r[b]===void 0&&(r[b]=null)});const s=e.doc,i=s.clientID;K1e(n,r);const c=Y1e(e,t,n,r),l=o.constructor===String?new Pa(o):o instanceof ho?new bl(o):new df(o);let{left:u,right:d,index:p}=n;t._searchMarker&&wg(t._searchMarker,n.index,l.getLength()),d=new Wo(M0(i,H1(s.store,i)),u,u&&u.lastId,d,d&&d.id,t,null,l),d.integrate(e,0),n.right=d,n.index=p,n.forward(),G1e(e,t,n,c)},hV=(e,t,n,o,r)=>{const s=e.doc,i=s.clientID;K1e(n,r);const c=Y1e(e,t,n,r);e:for(;n.right!==null&&(o>0||c.size>0&&(n.right.deleted||n.right.content.constructor===R1));){if(!n.right.deleted)switch(n.right.content.constructor){case R1:{const{key:l,value:u}=n.right.content,d=r[l];if(d!==void 0){if(tu(d,u))c.delete(l);else{if(o===0)break e;c.set(l,u)}n.right.delete(e)}else n.currentAttributes.set(l,u);break}default:o0){let l="";for(;o>0;o--)l+=` +`;n.right=new Wo(M0(i,H1(s.store,i)),n.left,n.left&&n.left.lastId,n.right,n.right&&n.right.id,t,null,new Pa(l)),n.right.integrate(e,0),n.forward()}G1e(e,t,n,c)},Z1e=(e,t,n,o,r)=>{let s=t;const i=Cr();for(;s&&(!s.countable||s.deleted);){if(!s.deleted&&s.content.constructor===R1){const u=s.content;i.set(u.key,u)}s=s.right}let c=0,l=!1;for(;t!==s;){if(n===t&&(l=!0),!t.deleted){const u=t.content;switch(u.constructor){case R1:{const{key:d,value:p}=u,f=o.get(d)??null;(i.get(d)!==u||f===p)&&(t.delete(e),c++,!l&&(r.get(d)??null)===p&&f!==p&&(f===null?r.delete(d):r.set(d,f))),!l&&!t.deleted&&bh(r,u);break}}}t=t.right}return c},G8e=(e,t)=>{for(;t&&t.right&&(t.right.deleted||!t.right.countable);)t=t.right;const n=new Set;for(;t&&(t.deleted||!t.countable);){if(!t.deleted&&t.content.constructor===R1){const o=t.content.key;n.has(o)?t.delete(e):n.add(o)}t=t.left}},K8e=e=>{let t=0;return ln(e.doc,n=>{let o=e._start,r=e._start,s=Cr();const i=i8(s);for(;r;){if(r.deleted===!1)switch(r.content.constructor){case R1:bh(i,r.content);break;default:t+=Z1e(n,o,r,s,i),s=i8(i),o=r;break}r=r.right}}),t},Y8e=e=>{const t=new Set,n=e.doc;for(const[o,r]of e.afterState.entries()){const s=e.beforeState.get(o)||0;r!==s&&E1e(e,n.store.clients.get(o),s,r,i=>{!i.deleted&&i.content.constructor===R1&&i.constructor!==Ws&&t.add(i.parent)})}ln(n,o=>{O1e(e,e.deleteSet,r=>{if(r instanceof Ws||!r.parent._hasFormatting||t.has(r.parent))return;const s=r.parent;r.content.constructor===R1?t.add(s):G8e(o,r)});for(const r of t)K8e(r)})},mV=(e,t,n)=>{const o=n,r=i8(t.currentAttributes),s=t.right;for(;n>0&&t.right!==null;){if(t.right.deleted===!1)switch(t.right.content.constructor){case bl:case df:case Pa:n{r===null?this.childListChanged=!0:this.keysChanged.add(r)})}get changes(){if(this._changes===null){const t={keys:this.keys,delta:this.delta,added:new Set,deleted:new Set};this._changes=t}return this._changes}get delta(){if(this._delta===null){const t=this.target.doc,n=[];ln(t,o=>{const r=new Map,s=new Map;let i=this.target._start,c=null;const l={};let u="",d=0,p=0;const f=()=>{if(c!==null){let b=null;switch(c){case"delete":p>0&&(b={delete:p}),p=0;break;case"insert":(typeof u=="object"||u.length>0)&&(b={insert:u},r.size>0&&(b.attributes={},r.forEach((h,g)=>{h!==null&&(b.attributes[g]=h)}))),u="";break;case"retain":d>0&&(b={retain:d},ERe(l)||(b.attributes=WRe({},l))),d=0;break}b&&n.push(b),c=null}};for(;i!==null;){switch(i.content.constructor){case bl:case df:this.adds(i)?this.deletes(i)||(f(),c="insert",u=i.content.getContent()[0],f()):this.deletes(i)?(c!=="delete"&&(f(),c="delete"),p+=1):i.deleted||(c!=="retain"&&(f(),c="retain"),d+=1);break;case Pa:this.adds(i)?this.deletes(i)||(c!=="insert"&&(f(),c="insert"),u+=i.content.str):this.deletes(i)?(c!=="delete"&&(f(),c="delete"),p+=i.length):i.deleted||(c!=="retain"&&(f(),c="retain"),d+=i.length);break;case R1:{const{key:b,value:h}=i.content;if(this.adds(i)){if(!this.deletes(i)){const g=r.get(b)??null;tu(g,h)?h!==null&&i.delete(o):(c==="retain"&&f(),tu(h,s.get(b)??null)?delete l[b]:l[b]=h)}}else if(this.deletes(i)){s.set(b,h);const g=r.get(b)??null;tu(g,h)||(c==="retain"&&f(),l[b]=g)}else if(!i.deleted){s.set(b,h);const g=l[b];g!==void 0&&(tu(g,h)?g!==null&&i.delete(o):(c==="retain"&&f(),h===null?delete l[b]:l[b]=h))}i.deleted||(c==="insert"&&f(),bh(r,i.content));break}}i=i.right}for(f();n.length>0;){const b=n[n.length-1];if(b.retain!==void 0&&b.attributes===void 0)n.pop();else break}}),this._delta=n}return this._delta}}class k2 extends ho{constructor(t){super(),this._pending=t!==void 0?[()=>this.insert(0,t)]:[],this._searchMarker=[],this._hasFormatting=!1}get length(){return this._length}_integrate(t,n){super._integrate(t,n);try{this._pending.forEach(o=>o())}catch(o){console.error(o)}this._pending=null}_copy(){return new k2}clone(){const t=new k2;return t.applyDelta(this.toDelta()),t}_callObserver(t,n){super._callObserver(t,n);const o=new Z8e(this,t,n);Fx(this,t,o),!t.local&&this._hasFormatting&&(t._needFormattingCleanup=!0)}toString(){let t="",n=this._start;for(;n!==null;)!n.deleted&&n.countable&&n.content.constructor===Pa&&(t+=n.content.str),n=n.right;return t}toJSON(){return this.toString()}applyDelta(t,{sanitize:n=!0}={}){this.doc!==null?ln(this.doc,o=>{const r=new f8(null,this._start,0,new Map);for(let s=0;s0)&&Z6(o,this,r,c,i.attributes||{})}else i.retain!==void 0?hV(o,this,r,i.retain,i.attributes||{}):i.delete!==void 0&&mV(o,r,i.delete)}}):this._pending.push(()=>this.applyDelta(t))}toDelta(t,n,o){const r=[],s=new Map,i=this.doc;let c="",l=this._start;function u(){if(c.length>0){const p={};let f=!1;s.forEach((h,g)=>{f=!0,p[g]=h});const b={insert:c};f&&(b.attributes=p),r.push(b),c=""}}const d=()=>{for(;l!==null;){if(tb(l,t)||n!==void 0&&tb(l,n))switch(l.content.constructor){case Pa:{const p=s.get("ychange");t!==void 0&&!tb(l,t)?(p===void 0||p.user!==l.id.client||p.type!=="removed")&&(u(),s.set("ychange",o?o("removed",l.id):{type:"removed"})):n!==void 0&&!tb(l,n)?(p===void 0||p.user!==l.id.client||p.type!=="added")&&(u(),s.set("ychange",o?o("added",l.id):{type:"added"})):p!==void 0&&(u(),s.delete("ychange")),c+=l.content.str;break}case bl:case df:{u();const p={insert:l.content.getContent()[0]};if(s.size>0){const f={};p.attributes=f,s.forEach((b,h)=>{f[h]=b})}r.push(p);break}case R1:tb(l,t)&&(u(),bh(s,l.content));break}l=l.right}u()};return t||n?ln(i,p=>{t&&d8(p,t),n&&d8(p,n),d()},"cleanup"):d(),r}insert(t,n,o){if(n.length<=0)return;const r=this.doc;r!==null?ln(r,s=>{const i=tA(s,this,t,!o);o||(o={},i.currentAttributes.forEach((c,l)=>{o[l]=c})),Z6(s,this,i,n,o)}):this._pending.push(()=>this.insert(t,n,o))}insertEmbed(t,n,o){const r=this.doc;r!==null?ln(r,s=>{const i=tA(s,this,t,!o);Z6(s,this,i,n,o||{})}):this._pending.push(()=>this.insertEmbed(t,n,o||{}))}delete(t,n){if(n===0)return;const o=this.doc;o!==null?ln(o,r=>{mV(r,tA(r,this,t,!0),n)}):this._pending.push(()=>this.delete(t,n))}format(t,n,o){if(n===0)return;const r=this.doc;r!==null?ln(r,s=>{const i=tA(s,this,t,!1);i.right!==null&&hV(s,this,i,n,o)}):this._pending.push(()=>this.format(t,n,o))}removeAttribute(t){this.doc!==null?ln(this.doc,n=>{fv(n,this,t)}):this._pending.push(()=>this.removeAttribute(t))}setAttribute(t,n){this.doc!==null?ln(this.doc,o=>{nN(o,this,t,n)}):this._pending.push(()=>this.setAttribute(t,n))}getAttribute(t){return oN(this,t)}getAttributes(){return U1e(this)}_write(t){t.writeTypeRef(mWe)}}const Q8e=e=>new k2;class Q6{constructor(t,n=()=>!0){this._filter=n,this._root=t,this._currentNode=t._start,this._firstCall=!0}[Symbol.iterator](){return this}next(){let t=this._currentNode,n=t&&t.content&&t.content.type;if(t!==null&&(!this._firstCall||t.deleted||!this._filter(n)))do if(n=t.content.type,!t.deleted&&(n.constructor===q2||n.constructor===Wp)&&n._start!==null)t=n._start;else for(;t!==null;)if(t.right!==null){t=t.right;break}else t.parent===this._root?t=null:t=t.parent._item;while(t!==null&&(t.deleted||!this._filter(t.content.type)));return this._firstCall=!1,t===null?{value:void 0,done:!0}:(this._currentNode=t,{value:t.content.type,done:!1})}}class Wp extends ho{constructor(){super(),this._prelimContent=[]}get firstChild(){const t=this._first;return t?t.content.getContent()[0]:null}_integrate(t,n){super._integrate(t,n),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new Wp}clone(){const t=new Wp;return t.insert(0,this.toArray().map(n=>n instanceof ho?n.clone():n)),t}get length(){return this._prelimContent===null?this._length:this._prelimContent.length}createTreeWalker(t){return new Q6(this,t)}querySelector(t){t=t.toUpperCase();const o=new Q6(this,r=>r.nodeName&&r.nodeName.toUpperCase()===t).next();return o.done?null:o.value}querySelectorAll(t){return t=t.toUpperCase(),Gc(new Q6(this,n=>n.nodeName&&n.nodeName.toUpperCase()===t))}_callObserver(t,n){Fx(this,t,new tWe(this,n,t))}toString(){return D1e(this,t=>t.toString()).join("")}toJSON(){return this.toString()}toDOM(t=document,n={},o){const r=t.createDocumentFragment();return o!==void 0&&o._createAssociation(r,this),kg(this,s=>{r.insertBefore(s.toDOM(t,n,o),null)}),r}insert(t,n){this.doc!==null?ln(this.doc,o=>{V1e(o,this,t,n)}):this._prelimContent.splice(t,0,...n)}insertAfter(t,n){if(this.doc!==null)ln(this.doc,o=>{const r=t&&t instanceof ho?t._item:t;pv(o,this,r,n)});else{const o=this._prelimContent,r=t===null?0:o.findIndex(s=>s===t)+1;if(r===0&&t!==null)throw Ri("Reference item not found");o.splice(r,0,...n)}}delete(t,n=1){this.doc!==null?ln(this.doc,o=>{H1e(o,this,t,n)}):this._prelimContent.splice(t,n)}toArray(){return I1e(this)}push(t){this.insert(this.length,t)}unshift(t){this.insert(0,t)}get(t){return F1e(this,t)}slice(t=0,n=this.length){return P1e(this,t,n)}forEach(t){kg(this,t)}_write(t){t.writeTypeRef(gWe)}}const J8e=e=>new Wp;class q2 extends Wp{constructor(t="UNDEFINED"){super(),this.nodeName=t,this._prelimAttrs=new Map}get nextSibling(){const t=this._item?this._item.next:null;return t?t.content.type:null}get prevSibling(){const t=this._item?this._item.prev:null;return t?t.content.type:null}_integrate(t,n){super._integrate(t,n),this._prelimAttrs.forEach((o,r)=>{this.setAttribute(r,o)}),this._prelimAttrs=null}_copy(){return new q2(this.nodeName)}clone(){const t=new q2(this.nodeName),n=this.getAttributes();return TRe(n,(o,r)=>{typeof o=="string"&&t.setAttribute(r,o)}),t.insert(0,this.toArray().map(o=>o instanceof ho?o.clone():o)),t}toString(){const t=this.getAttributes(),n=[],o=[];for(const c in t)o.push(c);o.sort();const r=o.length;for(let c=0;c0?" "+n.join(" "):"";return`<${s}${i}>${super.toString()}`}removeAttribute(t){this.doc!==null?ln(this.doc,n=>{fv(n,this,t)}):this._prelimAttrs.delete(t)}setAttribute(t,n){this.doc!==null?ln(this.doc,o=>{nN(o,this,t,n)}):this._prelimAttrs.set(t,n)}getAttribute(t){return oN(this,t)}hasAttribute(t){return X1e(this,t)}getAttributes(t){return t?$8e(this,t):U1e(this)}toDOM(t=document,n={},o){const r=t.createElement(this.nodeName),s=this.getAttributes();for(const i in s){const c=s[i];typeof c=="string"&&r.setAttribute(i,c)}return kg(this,i=>{r.appendChild(i.toDOM(t,n,o))}),o!==void 0&&o._createAssociation(r,this),r}_write(t){t.writeTypeRef(MWe),t.writeKey(this.nodeName)}}const eWe=e=>new q2(e.readKey());class tWe extends Ix{constructor(t,n,o){super(t,o),this.childListChanged=!1,this.attributesChanged=new Set,n.forEach(r=>{r===null?this.childListChanged=!0:this.attributesChanged.add(r)})}}class bv extends w2{constructor(t){super(),this.hookName=t}_copy(){return new bv(this.hookName)}clone(){const t=new bv(this.hookName);return this.forEach((n,o)=>{t.set(o,n)}),t}toDOM(t=document,n={},o){const r=n[this.hookName];let s;return r!==void 0?s=r.createDom(this):s=document.createElement(this.hookName),s.setAttribute("data-yjs-hook",this.hookName),o!==void 0&&o._createAssociation(s,this),s}_write(t){t.writeTypeRef(zWe),t.writeKey(this.hookName)}}const nWe=e=>new bv(e.readKey());class hv extends k2{get nextSibling(){const t=this._item?this._item.next:null;return t?t.content.type:null}get prevSibling(){const t=this._item?this._item.prev:null;return t?t.content.type:null}_copy(){return new hv}clone(){const t=new hv;return t.applyDelta(this.toDelta()),t}toDOM(t=document,n,o){const r=t.createTextNode(this.toString());return o!==void 0&&o._createAssociation(r,this),r}toString(){return this.toDelta().map(t=>{const n=[];for(const r in t.attributes){const s=[];for(const i in t.attributes[r])s.push({key:i,value:t.attributes[r][i]});s.sort((i,c)=>i.keyr.nodeName=0;r--)o+=``;return o}).join("")}toJSON(){return this.toString()}_write(t){t.writeTypeRef(OWe)}}const oWe=e=>new hv;class rN{constructor(t,n){this.id=t,this.length=n}get deleted(){throw ka()}mergeWith(t){return!1}write(t,n,o){throw ka()}integrate(t,n){throw ka()}}const rWe=0;class Ws extends rN{get deleted(){return!0}delete(){}mergeWith(t){return this.constructor!==t.constructor?!1:(this.length+=t.length,!0)}integrate(t,n){n>0&&(this.id.clock+=n,this.length-=n),T1e(t.doc.store,this)}write(t,n){t.writeInfo(rWe),t.writeLen(this.length-n)}getMissing(t,n){return null}}class Kz{constructor(t){this.content=t}getLength(){return 1}getContent(){return[this.content]}isCountable(){return!0}copy(){return new Kz(this.content)}splice(t){throw ka()}mergeWith(t){return!1}integrate(t,n){}delete(t){}gc(t){}write(t,n){t.writeBuf(this.content)}getRef(){return 3}}const sWe=e=>new Kz(e.readBuf());class qg{constructor(t){this.len=t}getLength(){return this.len}getContent(){return[]}isCountable(){return!1}copy(){return new qg(this.len)}splice(t){const n=new qg(this.len-t);return this.len=t,n}mergeWith(t){return this.len+=t.len,!0}integrate(t,n){uv(t.deleteSet,n.id.client,n.id.clock,this.len),n.markDeleted()}delete(t){}gc(t){}write(t,n){t.writeLen(this.len-n)}getRef(){return 1}}const iWe=e=>new qg(e.readLen()),Q1e=(e,t)=>new fh({guid:e,...t,shouldLoad:t.shouldLoad||t.autoLoad||!1});class Yz{constructor(t){t._item&&console.error("This document was already integrated as a sub-document. You should create a second instance instead with the same guid."),this.doc=t;const n={};this.opts=n,t.gc||(n.gc=!1),t.autoLoad&&(n.autoLoad=!0),t.meta!==null&&(n.meta=t.meta)}getLength(){return 1}getContent(){return[this.doc]}isCountable(){return!0}copy(){return new Yz(Q1e(this.doc.guid,this.opts))}splice(t){throw ka()}mergeWith(t){return!1}integrate(t,n){this.doc._item=n,t.subdocsAdded.add(this.doc),this.doc.shouldLoad&&t.subdocsLoaded.add(this.doc)}delete(t){t.subdocsAdded.has(this.doc)?t.subdocsAdded.delete(this.doc):t.subdocsRemoved.add(this.doc)}gc(t){}write(t,n){t.writeString(this.doc.guid),t.writeAny(this.opts)}getRef(){return 9}}const aWe=e=>new Yz(Q1e(e.readString(),e.readAny()));class df{constructor(t){this.embed=t}getLength(){return 1}getContent(){return[this.embed]}isCountable(){return!0}copy(){return new df(this.embed)}splice(t){throw ka()}mergeWith(t){return!1}integrate(t,n){}delete(t){}gc(t){}write(t,n){t.writeJSON(this.embed)}getRef(){return 5}}const cWe=e=>new df(e.readJSON());class R1{constructor(t,n){this.key=t,this.value=n}getLength(){return 1}getContent(){return[]}isCountable(){return!1}copy(){return new R1(this.key,this.value)}splice(t){throw ka()}mergeWith(t){return!1}integrate(t,n){const o=n.parent;o._searchMarker=null,o._hasFormatting=!0}delete(t){}gc(t){}write(t,n){t.writeKey(this.key),t.writeJSON(this.value)}getRef(){return 6}}const lWe=e=>new R1(e.readKey(),e.readJSON());class mv{constructor(t){this.arr=t}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new mv(this.arr)}splice(t){const n=new mv(this.arr.slice(t));return this.arr=this.arr.slice(0,t),n}mergeWith(t){return this.arr=this.arr.concat(t.arr),!0}integrate(t,n){}delete(t){}gc(t){}write(t,n){const o=this.arr.length;t.writeLen(o-n);for(let r=n;r{const t=e.readLen(),n=[];for(let o=0;o{const t=e.readLen(),n=[];for(let o=0;o=55296&&o<=56319&&(this.str=this.str.slice(0,t-1)+"�",n.str="�"+n.str.slice(1)),n}mergeWith(t){return this.str+=t.str,!0}integrate(t,n){}delete(t){}gc(t){}write(t,n){t.writeString(n===0?this.str:this.str.slice(n))}getRef(){return 4}}const pWe=e=>new Pa(e.readString()),fWe=[H8e,X8e,Q8e,eWe,J8e,nWe,oWe],bWe=0,hWe=1,mWe=2,MWe=3,gWe=4,zWe=5,OWe=6;class bl{constructor(t){this.type=t}getLength(){return 1}getContent(){return[this.type]}isCountable(){return!0}copy(){return new bl(this.type._copy())}splice(t){throw ka()}mergeWith(t){return!1}integrate(t,n){this.type._integrate(t.doc,n)}delete(t){let n=this.type._start;for(;n!==null;)n.deleted?n.id.clock<(t.beforeState.get(n.id.client)||0)&&t._mergeStructs.push(n):n.delete(t),n=n.right;this.type._map.forEach(o=>{o.deleted?o.id.clock<(t.beforeState.get(o.id.client)||0)&&t._mergeStructs.push(o):o.delete(t)}),t.changed.delete(this.type)}gc(t){let n=this.type._start;for(;n!==null;)n.gc(t,!0),n=n.right;this.type._start=null,this.type._map.forEach(o=>{for(;o!==null;)o.gc(t,!0),o=o.left}),this.type._map=new Map}write(t,n){this.type._write(t)}getRef(){return 7}}const AWe=e=>new bl(fWe[e.readTypeRef()](e)),Mv=(e,t,n)=>{const{client:o,clock:r}=t.id,s=new Wo(M0(o,r+n),t,M0(o,r+n-1),t.right,t.rightOrigin,t.parent,t.parentSub,t.content.splice(n));return t.deleted&&s.markDeleted(),t.keep&&(s.keep=!0),t.redone!==null&&(s.redone=M0(t.redone.client,t.redone.clock+n)),t.right=s,s.right!==null&&(s.right.left=s),e._mergeStructs.push(s),s.parentSub!==null&&s.right===null&&s.parent._map.set(s.parentSub,s),t.length=n,s};let Wo=class b8 extends rN{constructor(t,n,o,r,s,i,c,l){super(t,l.getLength()),this.origin=o,this.left=n,this.right=r,this.rightOrigin=s,this.parent=i,this.parentSub=c,this.redone=null,this.content=l,this.info=this.content.isCountable()?G$:0}set marker(t){(this.info&H6)>0!==t&&(this.info^=H6)}get marker(){return(this.info&H6)>0}get keep(){return(this.info&X$)>0}set keep(t){this.keep!==t&&(this.info^=X$)}get countable(){return(this.info&G$)>0}get deleted(){return(this.info&V6)>0}set deleted(t){this.deleted!==t&&(this.info^=V6)}markDeleted(){this.info|=V6}getMissing(t,n){if(this.origin&&this.origin.client!==this.id.client&&this.origin.clock>=H1(n,this.origin.client))return this.origin.client;if(this.rightOrigin&&this.rightOrigin.client!==this.id.client&&this.rightOrigin.clock>=H1(n,this.rightOrigin.client))return this.rightOrigin.client;if(this.parent&&this.parent.constructor===Hb&&this.id.client!==this.parent.client&&this.parent.clock>=H1(n,this.parent.client))return this.parent.client;if(this.origin&&(this.left=uV(t,n,this.origin),this.origin=this.left.lastId),this.rightOrigin&&(this.right=Bu(t,this.rightOrigin),this.rightOrigin=this.right.id),this.left&&this.left.constructor===Ws||this.right&&this.right.constructor===Ws)this.parent=null;else if(!this.parent)this.left&&this.left.constructor===b8&&(this.parent=this.left.parent,this.parentSub=this.left.parentSub),this.right&&this.right.constructor===b8&&(this.parent=this.right.parent,this.parentSub=this.right.parentSub);else if(this.parent.constructor===Hb){const o=Y6(n,this.parent);o.constructor===Ws?this.parent=null:this.parent=o.content.type}return null}integrate(t,n){if(n>0&&(this.id.clock+=n,this.left=uV(t,t.doc.store,M0(this.id.client,this.id.clock-1)),this.origin=this.left.lastId,this.content=this.content.splice(n),this.length-=n),this.parent){if(!this.left&&(!this.right||this.right.left!==null)||this.left&&this.left.right!==this.right){let o=this.left,r;if(o!==null)r=o.right;else if(this.parentSub!==null)for(r=this.parent._map.get(this.parentSub)||null;r!==null&&r.left!==null;)r=r.left;else r=this.parent._start;const s=new Set,i=new Set;for(;r!==null&&r!==this.right;){if(i.add(r),s.add(r),JO(this.origin,r.origin)){if(r.id.client{o.p===t&&(o.p=this,!this.deleted&&this.countable&&(o.index-=this.length))}),t.keep&&(this.keep=!0),this.right=t.right,this.right!==null&&(this.right.left=this),this.length+=t.length,!0}return!1}delete(t){if(!this.deleted){const n=this.parent;this.countable&&this.parentSub===null&&(n._length-=this.length),this.markDeleted(),uv(t.deleteSet,this.id.client,this.id.clock,this.length),pV(t,n,this.parentSub),this.content.delete(t)}}gc(t,n){if(!this.deleted)throw La();this.content.gc(t),n?k8e(t,this,new Ws(this.id,this.length)):this.content=new qg(this.length)}write(t,n){const o=n>0?M0(this.id.client,this.id.clock+n-1):this.origin,r=this.rightOrigin,s=this.parentSub,i=this.content.getRef()&Bx|(o===null?0:es)|(r===null?0:Wc)|(s===null?0:vg);if(t.writeInfo(i),o!==null&&t.writeLeftID(o),r!==null&&t.writeRightID(r),o===null&&r===null){const c=this.parent;if(c._item!==void 0){const l=c._item;if(l===null){const u=_8e(c);t.writeParentInfo(!0),t.writeString(u)}else t.writeParentInfo(!1),t.writeLeftID(l.id)}else c.constructor===String?(t.writeParentInfo(!0),t.writeString(c)):c.constructor===Hb?(t.writeParentInfo(!1),t.writeLeftID(c)):La();s!==null&&t.writeString(s)}this.content.write(t,n)}};const J1e=(e,t)=>yWe[t&Bx](e),yWe=[()=>{La()},iWe,uWe,sWe,pWe,cWe,lWe,AWe,dWe,aWe,()=>{La()}],vWe=10;class Ts extends rN{get deleted(){return!0}delete(){}mergeWith(t){return this.constructor!==t.constructor?!1:(this.length+=t.length,!0)}integrate(t,n){La()}write(t,n){t.writeInfo(vWe),Wt(t.restEncoder,this.length-n)}getMissing(t,n){return null}}const eoe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:{},toe="__ $YJS$ __";eoe[toe]===!0&&console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438");eoe[toe]=!0;const pf=e=>v2((t,n)=>{e.onerror=o=>n(new Error(o.target.error)),e.onsuccess=o=>t(o.target.result)}),xWe=(e,t)=>v2((n,o)=>{const r=indexedDB.open(e);r.onupgradeneeded=s=>t(s.target.result),r.onerror=s=>o(Ri(s.target.error)),r.onsuccess=s=>{const i=s.target.result;i.onversionchange=()=>{i.close()},n(i)}}),_We=e=>pf(indexedDB.deleteDatabase(e)),wWe=(e,t)=>t.forEach(n=>e.createObjectStore.apply(e,n)),oM=(e,t,n="readwrite")=>{const o=e.transaction(t,n);return t.map(r=>EWe(o,r))},noe=(e,t)=>pf(e.count(t)),kWe=(e,t)=>pf(e.get(t)),ooe=(e,t)=>pf(e.delete(t)),qWe=(e,t,n)=>pf(e.put(t,n)),h8=(e,t)=>pf(e.add(t)),SWe=(e,t,n)=>pf(e.getAll(t,n)),CWe=(e,t,n)=>{let o=null;return TWe(e,t,r=>(o=r,!1),n).then(()=>o)},RWe=(e,t=null)=>CWe(e,t,"prev"),WWe=(e,t)=>v2((n,o)=>{e.onerror=o,e.onsuccess=async r=>{const s=r.target.result;if(s===null||await t(s)===!1)return n();s.continue()}}),TWe=(e,t,n,o="next")=>WWe(e.openKeyCursor(t,o),r=>n(r.key)),EWe=(e,t)=>e.objectStore(t),BWe=(e,t)=>IDBKeyRange.upperBound(e,t),NWe=(e,t)=>IDBKeyRange.lowerBound(e,t),J6="custom",roe="updates",soe=500,ioe=(e,t=()=>{},n=()=>{})=>{const[o]=oM(e.db,[roe]);return SWe(o,NWe(e._dbref,!1)).then(r=>{e._destroyed||(t(o),ln(e.doc,()=>{r.forEach(s=>q1e(e.doc,s))},e,!1),n(o))}).then(()=>RWe(o).then(r=>{e._dbref=r+1})).then(()=>noe(o).then(r=>{e._dbsize=r})).then(()=>o)},LWe=(e,t=!0)=>ioe(e).then(n=>{(t||e._dbsize>=soe)&&h8(n,ZB(e.doc)).then(()=>ooe(n,BWe(e._dbref,!0))).then(()=>noe(n).then(o=>{e._dbsize=o}))});class jWe extends Hz{constructor(t,n){super(),this.doc=n,this.name=t,this._dbref=0,this._dbsize=0,this._destroyed=!1,this.db=null,this.synced=!1,this._db=xWe(t,o=>wWe(o,[["updates",{autoIncrement:!0}],["custom"]])),this.whenSynced=v2(o=>this.on("synced",()=>o(this))),this._db.then(o=>{this.db=o,ioe(this,i=>h8(i,ZB(n)),()=>{if(this._destroyed)return this;this.synced=!0,this.emit("synced",[this])})}),this._storeTimeout=1e3,this._storeTimeoutId=null,this._storeUpdate=(o,r)=>{if(this.db&&r!==this){const[s]=oM(this.db,[roe]);h8(s,o),++this._dbsize>=soe&&(this._storeTimeoutId!==null&&clearTimeout(this._storeTimeoutId),this._storeTimeoutId=setTimeout(()=>{LWe(this,!1),this._storeTimeoutId=null},this._storeTimeout))}},n.on("update",this._storeUpdate),this.destroy=this.destroy.bind(this),n.on("destroy",this.destroy)}destroy(){return this._storeTimeoutId&&clearTimeout(this._storeTimeoutId),this.doc.off("update",this._storeUpdate),this.doc.off("destroy",this.destroy),this._destroyed=!0,this._db.then(t=>{t.close()})}clearData(){return this.destroy().then(()=>{_We(this.name)})}get(t){return this._db.then(n=>{const[o]=oM(n,[J6],"readonly");return kWe(o,t)})}set(t,n){return this._db.then(o=>{const[r]=oM(o,[J6]);return qWe(r,n,t)})}del(t){return this._db.then(n=>{const[o]=oM(n,[J6]);return ooe(o,t)})}}function PWe(e,t,n){const o=`${t}-${e}`,r=new jWe(o,n);return new Promise(s=>{r.on("synced",()=>{s(()=>r.destroy())})})}const IWe=1200,DWe=2500,gv=3e4,m8=e=>{if(e.shouldConnect&&e.ws===null){const t=new WebSocket(e.url),n=e.binaryType;let o=null;n&&(t.binaryType=n),e.ws=t,e.connecting=!0,e.connected=!1,t.onmessage=i=>{e.lastMessageReceived=Kc();const c=i.data,l=typeof c=="string"?JSON.parse(c):c;l&&l.type==="pong"&&(clearTimeout(o),o=setTimeout(s,gv/2)),e.emit("message",[l,e])};const r=i=>{e.ws!==null&&(e.ws=null,e.connecting=!1,e.connected?(e.connected=!1,e.emit("disconnect",[{type:"disconnect",error:i},e])):e.unsuccessfulReconnects++,setTimeout(m8,NB(YCe(e.unsuccessfulReconnects+1)*IWe,DWe),e)),clearTimeout(o)},s=()=>{e.ws===t&&e.send({type:"ping"})};t.onclose=()=>r(null),t.onerror=i=>r(i),t.onopen=()=>{e.lastMessageReceived=Kc(),e.connecting=!1,e.connected=!0,e.unsuccessfulReconnects=0,e.emit("connect",[{type:"connect"},e]),o=setTimeout(s,gv/2)}}};class FWe extends Hz{constructor(t,{binaryType:n}={}){super(),this.url=t,this.ws=null,this.binaryType=n||null,this.connected=!1,this.connecting=!1,this.unsuccessfulReconnects=0,this.lastMessageReceived=0,this.shouldConnect=!0,this._checkInterval=setInterval(()=>{this.connected&&gvn.key===t&&this.onmessage!==null&&this.onmessage({data:VB(n.newValue||"")}),CRe(this._onChange)}postMessage(t){i1e.setItem(this.room,f1e(HRe(t)))}close(){RRe(this._onChange)}}const VWe=typeof BroadcastChannel>"u"?$We:BroadcastChannel,sN=e=>Fo(aoe,e,()=>{const t=Eu(),n=new VWe(e);return n.onmessage=o=>t.forEach(r=>r(o.data,"broadcastchannel")),{bc:n,subs:t}}),HWe=(e,t)=>(sN(e).subs.add(t),t),UWe=(e,t)=>{const n=sN(e),o=n.subs.delete(t);return o&&n.subs.size===0&&(n.bc.close(),aoe.delete(e)),o},XWe=(e,t,n=null)=>{const o=sN(e);o.bc.postMessage(t),o.subs.forEach(r=>r(t,n))},GWe=()=>{let e=!0;return(t,n)=>{if(e){e=!1;try{t()}finally{e=!0}}else n!==void 0&&n()}};function nA(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var coe={exports:{}};(function(e,t){(function(n){e.exports=n()})(function(){var n=Math.floor,o=Math.abs,r=Math.pow;return function(){function s(i,c,l){function u(f,b){if(!c[f]){if(!i[f]){var h=typeof nA=="function"&&nA;if(!b&&h)return h(f,!0);if(d)return d(f,!0);var g=new Error("Cannot find module '"+f+"'");throw g.code="MODULE_NOT_FOUND",g}var z=c[f]={exports:{}};i[f][0].call(z.exports,function(y){var x=i[f][1][y];return u(x||y)},z,z.exports,s,i,c,l)}return c[f].exports}for(var d=typeof nA=="function"&&nA,p=0;p>16,S[C++]=255&A>>8,S[C++]=255&A;return q===2&&(A=g[M.charCodeAt(_)]<<2|g[M.charCodeAt(_+1)]>>4,S[C++]=255&A),q===1&&(A=g[M.charCodeAt(_)]<<10|g[M.charCodeAt(_+1)]<<4|g[M.charCodeAt(_+2)]>>2,S[C++]=255&A>>8,S[C++]=255&A),S}function p(M){return h[63&M>>18]+h[63&M>>12]+h[63&M>>6]+h[63&M]}function f(M,A,_){for(var w,k=[],q=A;q<_;q+=3)w=(16711680&M[q]<<16)+(65280&M[q+1]<<8)+(255&M[q+2]),k.push(p(w));return k.join("")}function b(M){for(var A,_=M.length,w=_%3,k=[],q=16383,S=0,C=_-w;SC?C:S+q));return w===1?(A=M[_-1],k.push(h[A>>2]+h[63&A<<4]+"==")):w===2&&(A=(M[_-2]<<8)+M[_-1],k.push(h[A>>10]+h[63&A>>4]+h[63&A<<2]+"=")),k.join("")}c.byteLength=function(M){var A=l(M),_=A[0],w=A[1];return 3*(_+w)/4-w},c.toByteArray=d,c.fromByteArray=b;for(var h=[],g=[],z=typeof Uint8Array>"u"?Array:Uint8Array,y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",x=0,v=y.length;xR)throw new RangeError('The value "'+R+'" is invalid for option "size"')}function h(R,j,V){return b(R),0>=R||j===void 0?d(R):typeof V=="string"?d(R).fill(j,V):d(R).fill(j)}function g(R){return b(R),d(0>R?0:0|M(R))}function z(R,j){if((typeof j!="string"||j==="")&&(j="utf8"),!p.isEncoding(j))throw new TypeError("Unknown encoding: "+j);var V=0|A(R,j),de=d(V),ge=de.write(R,j);return ge!==V&&(de=de.slice(0,ge)),de}function y(R){for(var j=0>R.length?0:0|M(R.length),V=d(j),de=0;dej||R.byteLength=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|R}function A(R,j){if(p.isBuffer(R))return R.length;if(ArrayBuffer.isView(R)||G(R,ArrayBuffer))return R.byteLength;if(typeof R!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof R);var V=R.length,de=2>>1;case"base64":return K(R).length;default:if(ge)return de?-1:be(R).length;j=(""+j).toLowerCase(),ge=!0}}function _(R,j,V){var de=!1;if((j===void 0||0>j)&&(j=0),j>this.length||((V===void 0||V>this.length)&&(V=this.length),0>=V)||(V>>>=0,j>>>=0,V<=j))return"";for(R||(R="utf8");;)switch(R){case"hex":return U(this,j,V);case"utf8":case"utf-8":return L(this,j,V);case"ascii":return P(this,j,V);case"latin1":case"binary":return H(this,j,V);case"base64":return E(this,j,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X(this,j,V);default:if(de)throw new TypeError("Unknown encoding: "+R);R=(R+"").toLowerCase(),de=!0}}function w(R,j,V){var de=R[j];R[j]=R[V],R[V]=de}function k(R,j,V,de,ge){if(R.length===0)return-1;if(typeof V=="string"?(de=V,V=0):2147483647V&&(V=-2147483648),V=+V,re(V)&&(V=ge?0:R.length-1),0>V&&(V=R.length+V),V>=R.length){if(ge)return-1;V=R.length-1}else if(0>V)if(ge)V=0;else return-1;if(typeof j=="string"&&(j=p.from(j,de)),p.isBuffer(j))return j.length===0?-1:q(R,j,V,de,ge);if(typeof j=="number")return j&=255,typeof Uint8Array.prototype.indexOf=="function"?ge?Uint8Array.prototype.indexOf.call(R,j,V):Uint8Array.prototype.lastIndexOf.call(R,j,V):q(R,[j],V,de,ge);throw new TypeError("val must be string, number or Buffer")}function q(R,j,V,de,ge){function ve(Ue,Xe){return Ne===1?Ue[Xe]:Ue.readUInt16BE(Xe*Ne)}var Ne=1,et=R.length,mt=j.length;if(de!==void 0&&(de=(de+"").toLowerCase(),de==="ucs2"||de==="ucs-2"||de==="utf16le"||de==="utf-16le")){if(2>R.length||2>j.length)return-1;Ne=2,et/=2,mt/=2,V/=2}var Mt;if(ge){var Ke=-1;for(Mt=V;Mtet&&(V=et-mt),Mt=V;0<=Mt;Mt--){for(var Nt=!0,zt=0;ztge&&(de=ge)):de=ge;var ve=j.length;de>ve/2&&(de=ve/2);for(var Ne,et=0;etve&&(Ne=ve):et===2?(mt=R[ge+1],(192&mt)==128&&(Nt=(31&ve)<<6|63&mt,127Nt||57343Nt&&(Ne=Nt)))}Ne===null?(Ne=65533,et=1):65535>>10),Ne=56320|1023&Ne),de.push(Ne),ge+=et}return I(de)}function I(R){var j=R.length;if(j<=4096)return l.apply(String,R);for(var V="",de=0;dej)&&(j=0),(!V||0>V||V>de)&&(V=de);for(var ge="",ve=j;veR)throw new RangeError("offset is not uint");if(R+j>V)throw new RangeError("Trying to access beyond buffer length")}function ne(R,j,V,de,ge,ve){if(!p.isBuffer(R))throw new TypeError('"buffer" argument must be a Buffer instance');if(j>ge||jR.length)throw new RangeError("Index out of range")}function oe(R,j,V,de){if(V+de>R.length)throw new RangeError("Index out of range");if(0>V)throw new RangeError("Index out of range")}function Y(R,j,V,de,ge){return j=+j,V>>>=0,ge||oe(R,j,V,4),he.write(R,j,V,de,23,4),V+4}function ee(R,j,V,de,ge){return j=+j,V>>>=0,ge||oe(R,j,V,8),he.write(R,j,V,de,52,8),V+8}function ie(R){if(R=R.split("=")[0],R=R.trim().replace(Q,""),2>R.length)return"";for(;R.length%4!=0;)R+="=";return R}function se(R){return 16>R?"0"+R.toString(16):R.toString(16)}function be(R,j){j=j||1/0;for(var V,de=R.length,ge=null,ve=[],Ne=0;NeV){if(!ge){if(56319V){-1<(j-=3)&&ve.push(239,191,189),ge=V;continue}V=(ge-55296<<10|V-56320)+65536}else ge&&-1<(j-=3)&&ve.push(239,191,189);if(ge=null,128>V){if(0>(j-=1))break;ve.push(V)}else if(2048>V){if(0>(j-=2))break;ve.push(192|V>>6,128|63&V)}else if(65536>V){if(0>(j-=3))break;ve.push(224|V>>12,128|63&V>>6,128|63&V)}else if(1114112>V){if(0>(j-=4))break;ve.push(240|V>>18,128|63&V>>12,128|63&V>>6,128|63&V)}else throw new Error("Invalid code point")}return ve}function ye(R){for(var j=[],V=0;V(j-=2));++Ne)V=R.charCodeAt(Ne),de=V>>8,ge=V%256,ve.push(ge),ve.push(de);return ve}function K(R){return Me.toByteArray(ie(R))}function pe(R,j,V,de){for(var ge=0;ge=j.length||ge>=R.length);++ge)j[ge+V]=R[ge];return ge}function G(R,j){return R instanceof j||R!=null&&R.constructor!=null&&R.constructor.name!=null&&R.constructor.name===j.name}function re(R){return R!==R}var Me=s("base64-js"),he=s("ieee754");c.Buffer=p,c.SlowBuffer=function(R){return+R!=R&&(R=0),p.alloc(+R)},c.INSPECT_MAX_BYTES=50,c.kMaxLength=2147483647,p.TYPED_ARRAY_SUPPORT=function(){try{var R=new Uint8Array(1);return R.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},R.foo()===42}catch{return!1}}(),p.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(p.prototype,"parent",{enumerable:!0,get:function(){return p.isBuffer(this)?this.buffer:void 0}}),Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){return p.isBuffer(this)?this.byteOffset:void 0}}),typeof Symbol<"u"&&Symbol.species!=null&&p[Symbol.species]===p&&Object.defineProperty(p,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),p.poolSize=8192,p.from=function(R,j,V){return f(R,j,V)},p.prototype.__proto__=Uint8Array.prototype,p.__proto__=Uint8Array,p.alloc=function(R,j,V){return h(R,j,V)},p.allocUnsafe=function(R){return g(R)},p.allocUnsafeSlow=function(R){return g(R)},p.isBuffer=function(R){return R!=null&&R._isBuffer===!0&&R!==p.prototype},p.compare=function(R,j){if(G(R,Uint8Array)&&(R=p.from(R,R.offset,R.byteLength)),G(j,Uint8Array)&&(j=p.from(j,j.offset,j.byteLength)),!p.isBuffer(R)||!p.isBuffer(j))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(R===j)return 0;for(var V=R.length,de=j.length,ge=0,ve=u(V,de);gej&&(R+=" ... "),""},p.prototype.compare=function(R,j,V,de,ge){if(G(R,Uint8Array)&&(R=p.from(R,R.offset,R.byteLength)),!p.isBuffer(R))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof R);if(j===void 0&&(j=0),V===void 0&&(V=R?R.length:0),de===void 0&&(de=0),ge===void 0&&(ge=this.length),0>j||V>R.length||0>de||ge>this.length)throw new RangeError("out of range index");if(de>=ge&&j>=V)return 0;if(de>=ge)return-1;if(j>=V)return 1;if(j>>>=0,V>>>=0,de>>>=0,ge>>>=0,this===R)return 0;for(var ve=ge-de,Ne=V-j,et=u(ve,Ne),mt=this.slice(de,ge),Mt=R.slice(j,V),Ke=0;Ke>>=0,isFinite(V)?(V>>>=0,de===void 0&&(de="utf8")):(de=V,V=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ge=this.length-j;if((V===void 0||V>ge)&&(V=ge),0V||0>j)||j>this.length)throw new RangeError("Attempt to write outside buffer bounds");de||(de="utf8");for(var ve=!1;;)switch(de){case"hex":return S(this,R,j,V);case"utf8":case"utf-8":return C(this,R,j,V);case"ascii":return T(this,R,j,V);case"latin1":case"binary":return W(this,R,j,V);case"base64":return B(this,R,j,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,R,j,V);default:if(ve)throw new TypeError("Unknown encoding: "+de);de=(""+de).toLowerCase(),ve=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},p.prototype.slice=function(R,j){var V=this.length;R=~~R,j=j===void 0?V:~~j,0>R?(R+=V,0>R&&(R=0)):R>V&&(R=V),0>j?(j+=V,0>j&&(j=0)):j>V&&(j=V),j>>=0,j>>>=0,V||Z(R,j,this.length);for(var de=this[R],ge=1,ve=0;++ve>>=0,j>>>=0,V||Z(R,j,this.length);for(var de=this[R+--j],ge=1;0>>=0,j||Z(R,1,this.length),this[R]},p.prototype.readUInt16LE=function(R,j){return R>>>=0,j||Z(R,2,this.length),this[R]|this[R+1]<<8},p.prototype.readUInt16BE=function(R,j){return R>>>=0,j||Z(R,2,this.length),this[R]<<8|this[R+1]},p.prototype.readUInt32LE=function(R,j){return R>>>=0,j||Z(R,4,this.length),(this[R]|this[R+1]<<8|this[R+2]<<16)+16777216*this[R+3]},p.prototype.readUInt32BE=function(R,j){return R>>>=0,j||Z(R,4,this.length),16777216*this[R]+(this[R+1]<<16|this[R+2]<<8|this[R+3])},p.prototype.readIntLE=function(R,j,V){R>>>=0,j>>>=0,V||Z(R,j,this.length);for(var de=this[R],ge=1,ve=0;++ve=ge&&(de-=r(2,8*j)),de},p.prototype.readIntBE=function(R,j,V){R>>>=0,j>>>=0,V||Z(R,j,this.length);for(var de=j,ge=1,ve=this[R+--de];0=ge&&(ve-=r(2,8*j)),ve},p.prototype.readInt8=function(R,j){return R>>>=0,j||Z(R,1,this.length),128&this[R]?-1*(255-this[R]+1):this[R]},p.prototype.readInt16LE=function(R,j){R>>>=0,j||Z(R,2,this.length);var V=this[R]|this[R+1]<<8;return 32768&V?4294901760|V:V},p.prototype.readInt16BE=function(R,j){R>>>=0,j||Z(R,2,this.length);var V=this[R+1]|this[R]<<8;return 32768&V?4294901760|V:V},p.prototype.readInt32LE=function(R,j){return R>>>=0,j||Z(R,4,this.length),this[R]|this[R+1]<<8|this[R+2]<<16|this[R+3]<<24},p.prototype.readInt32BE=function(R,j){return R>>>=0,j||Z(R,4,this.length),this[R]<<24|this[R+1]<<16|this[R+2]<<8|this[R+3]},p.prototype.readFloatLE=function(R,j){return R>>>=0,j||Z(R,4,this.length),he.read(this,R,!0,23,4)},p.prototype.readFloatBE=function(R,j){return R>>>=0,j||Z(R,4,this.length),he.read(this,R,!1,23,4)},p.prototype.readDoubleLE=function(R,j){return R>>>=0,j||Z(R,8,this.length),he.read(this,R,!0,52,8)},p.prototype.readDoubleBE=function(R,j){return R>>>=0,j||Z(R,8,this.length),he.read(this,R,!1,52,8)},p.prototype.writeUIntLE=function(R,j,V,de){if(R=+R,j>>>=0,V>>>=0,!de){var ge=r(2,8*V)-1;ne(this,R,j,V,ge,0)}var ve=1,Ne=0;for(this[j]=255&R;++Ne>>=0,V>>>=0,!de){var ge=r(2,8*V)-1;ne(this,R,j,V,ge,0)}var ve=V-1,Ne=1;for(this[j+ve]=255&R;0<=--ve&&(Ne*=256);)this[j+ve]=255&R/Ne;return j+V},p.prototype.writeUInt8=function(R,j,V){return R=+R,j>>>=0,V||ne(this,R,j,1,255,0),this[j]=255&R,j+1},p.prototype.writeUInt16LE=function(R,j,V){return R=+R,j>>>=0,V||ne(this,R,j,2,65535,0),this[j]=255&R,this[j+1]=R>>>8,j+2},p.prototype.writeUInt16BE=function(R,j,V){return R=+R,j>>>=0,V||ne(this,R,j,2,65535,0),this[j]=R>>>8,this[j+1]=255&R,j+2},p.prototype.writeUInt32LE=function(R,j,V){return R=+R,j>>>=0,V||ne(this,R,j,4,4294967295,0),this[j+3]=R>>>24,this[j+2]=R>>>16,this[j+1]=R>>>8,this[j]=255&R,j+4},p.prototype.writeUInt32BE=function(R,j,V){return R=+R,j>>>=0,V||ne(this,R,j,4,4294967295,0),this[j]=R>>>24,this[j+1]=R>>>16,this[j+2]=R>>>8,this[j+3]=255&R,j+4},p.prototype.writeIntLE=function(R,j,V,de){if(R=+R,j>>>=0,!de){var ge=r(2,8*V-1);ne(this,R,j,V,ge-1,-ge)}var ve=0,Ne=1,et=0;for(this[j]=255&R;++veR&&et===0&&this[j+ve-1]!==0&&(et=1),this[j+ve]=255&(R/Ne>>0)-et;return j+V},p.prototype.writeIntBE=function(R,j,V,de){if(R=+R,j>>>=0,!de){var ge=r(2,8*V-1);ne(this,R,j,V,ge-1,-ge)}var ve=V-1,Ne=1,et=0;for(this[j+ve]=255&R;0<=--ve&&(Ne*=256);)0>R&&et===0&&this[j+ve+1]!==0&&(et=1),this[j+ve]=255&(R/Ne>>0)-et;return j+V},p.prototype.writeInt8=function(R,j,V){return R=+R,j>>>=0,V||ne(this,R,j,1,127,-128),0>R&&(R=255+R+1),this[j]=255&R,j+1},p.prototype.writeInt16LE=function(R,j,V){return R=+R,j>>>=0,V||ne(this,R,j,2,32767,-32768),this[j]=255&R,this[j+1]=R>>>8,j+2},p.prototype.writeInt16BE=function(R,j,V){return R=+R,j>>>=0,V||ne(this,R,j,2,32767,-32768),this[j]=R>>>8,this[j+1]=255&R,j+2},p.prototype.writeInt32LE=function(R,j,V){return R=+R,j>>>=0,V||ne(this,R,j,4,2147483647,-2147483648),this[j]=255&R,this[j+1]=R>>>8,this[j+2]=R>>>16,this[j+3]=R>>>24,j+4},p.prototype.writeInt32BE=function(R,j,V){return R=+R,j>>>=0,V||ne(this,R,j,4,2147483647,-2147483648),0>R&&(R=4294967295+R+1),this[j]=R>>>24,this[j+1]=R>>>16,this[j+2]=R>>>8,this[j+3]=255&R,j+4},p.prototype.writeFloatLE=function(R,j,V){return Y(this,R,j,!0,V)},p.prototype.writeFloatBE=function(R,j,V){return Y(this,R,j,!1,V)},p.prototype.writeDoubleLE=function(R,j,V){return ee(this,R,j,!0,V)},p.prototype.writeDoubleBE=function(R,j,V){return ee(this,R,j,!1,V)},p.prototype.copy=function(R,j,V,de){if(!p.isBuffer(R))throw new TypeError("argument should be a Buffer");if(V||(V=0),de||de===0||(de=this.length),j>=R.length&&(j=R.length),j||(j=0),0j)throw new RangeError("targetStart out of bounds");if(0>V||V>=this.length)throw new RangeError("Index out of range");if(0>de)throw new RangeError("sourceEnd out of bounds");de>this.length&&(de=this.length),R.length-jge||de==="latin1")&&(R=ge)}}else typeof R=="number"&&(R&=255);if(0>j||this.length>>=0,V=V===void 0?this.length:V>>>0,R||(R=0);var ve;if(typeof R=="number")for(ve=j;ve{g==="%%"||(b++,g==="%c"&&(h=b))}),p.splice(h,0,f)},c.save=function(p){try{p?c.storage.setItem("debug",p):c.storage.removeItem("debug")}catch{}},c.load=u,c.useColors=function(){return!!(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))||!(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&(typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&31<=parseInt(RegExp.$1,10)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},c.storage=function(){try{return localStorage}catch{}}(),c.destroy=(()=>{let p=!1;return()=>{p||(p=!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`."))}})(),c.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"],c.log=console.debug||console.log||(()=>{}),i.exports=s("./common")(c);const{formatters:d}=i.exports;d.j=function(p){try{return JSON.stringify(p)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}}}).call(this)}).call(this,s("_process"))},{"./common":5,_process:12}],5:[function(s,i){i.exports=function(c){function l(p){function f(...g){if(!f.enabled)return;const z=f,y=+new Date,x=y-(b||y);z.diff=x,z.prev=b,z.curr=y,b=y,g[0]=l.coerce(g[0]),typeof g[0]!="string"&&g.unshift("%O");let v=0;g[0]=g[0].replace(/%([a-zA-Z%])/g,(A,_)=>{if(A==="%%")return"%";v++;const w=l.formatters[_];if(typeof w=="function"){const k=g[v];A=w.call(z,k),g.splice(v,1),v--}return A}),l.formatArgs.call(z,g),(z.log||l.log).apply(z,g)}let b,h=null;return f.namespace=p,f.useColors=l.useColors(),f.color=l.selectColor(p),f.extend=u,f.destroy=l.destroy,Object.defineProperty(f,"enabled",{enumerable:!0,configurable:!1,get:()=>h===null?l.enabled(p):h,set:g=>{h=g}}),typeof l.init=="function"&&l.init(f),f}function u(p,f){const b=l(this.namespace+(typeof f>"u"?":":f)+p);return b.log=this.log,b}function d(p){return p.toString().substring(2,p.toString().length-2).replace(/\.\*\?$/,"*")}return l.debug=l,l.default=l,l.coerce=function(p){return p instanceof Error?p.stack||p.message:p},l.disable=function(){const p=[...l.names.map(d),...l.skips.map(d).map(f=>"-"+f)].join(",");return l.enable(""),p},l.enable=function(p){l.save(p),l.names=[],l.skips=[];let f;const b=(typeof p=="string"?p:"").split(/[\s,]+/),h=b.length;for(f=0;f{l[p]=c[p]}),l.names=[],l.skips=[],l.formatters={},l.selectColor=function(p){let f=0;for(let b=0;bB&&!E.warned){E.warned=!0;var L=new Error("Possible EventEmitter memory leak detected. "+E.length+" "+(C+" listeners added. Use emitter.setMaxListeners() to increase limit"));L.name="MaxListenersExceededWarning",L.emitter=S,L.type=C,L.count=E.length,c(L)}return S}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function b(S,C,T){var W={fired:!1,wrapFn:void 0,target:S,type:C,listener:T},B=f.bind(W);return B.listener=T,W.wrapFn=B,B}function h(S,C,T){var W=S._events;if(W===void 0)return[];var B=W[C];return B===void 0?[]:typeof B=="function"?T?[B.listener||B]:[B]:T?x(B):z(B,B.length)}function g(S){var C=this._events;if(C!==void 0){var T=C[S];if(typeof T=="function")return 1;if(T!==void 0)return T.length}return 0}function z(S,C){for(var T=Array(C),W=0;WS||k(S))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+S+".");q=S}}),l.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(S){if(typeof S!="number"||0>S||k(S))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+S+".");return this._maxListeners=S,this},l.prototype.getMaxListeners=function(){return d(this)},l.prototype.emit=function(S){for(var C=[],T=1;TB)return this;B===0?T.shift():y(T,B),T.length===1&&(W[S]=T[0]),W.removeListener!==void 0&&this.emit("removeListener",S,E||C)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(S){var C,T,W;if(T=this._events,T===void 0)return this;if(T.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):T[S]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete T[S]),this;if(arguments.length===0){var B,N=Object.keys(T);for(W=0;W"u")return null;var c={RTCPeerConnection:globalThis.RTCPeerConnection||globalThis.mozRTCPeerConnection||globalThis.webkitRTCPeerConnection,RTCSessionDescription:globalThis.RTCSessionDescription||globalThis.mozRTCSessionDescription||globalThis.webkitRTCSessionDescription,RTCIceCandidate:globalThis.RTCIceCandidate||globalThis.mozRTCIceCandidate||globalThis.webkitRTCIceCandidate};return c.RTCPeerConnection?c:null}},{}],9:[function(s,i,c){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */c.read=function(l,u,d,p,f){var b,h,g=8*f-p-1,z=(1<>1,x=-7,v=d?f-1:0,M=d?-1:1,A=l[u+v];for(v+=M,b=A&(1<<-x)-1,A>>=-x,x+=g;0>=-x,x+=p;0>1,_=f===23?r(2,-24)-r(2,-77):0,w=p?0:b-1,k=p?1:-1,q=0>u||u===0&&0>1/u?1:0;for(u=o(u),isNaN(u)||u===1/0?(g=isNaN(u)?1:0,h=M):(h=n(x(u)/y),1>u*(z=r(2,-h))&&(h--,z*=2),u+=1<=h+A?_/z:_*r(2,1-A),2<=u*z&&(h++,z/=2),h+A>=M?(g=0,h=M):1<=h+A?(g=(u*z-1)*r(2,f),h+=A):(g=u*r(2,A-1)*r(2,f),h=0));8<=f;l[d+w]=255&g,w+=k,g/=256,f-=8);for(h=h<=1.5*h?"s":"")}i.exports=function(f,b){b=b||{};var h=typeof f;if(h=="string"&&0 */let l;i.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window>"u"?c:window):u=>(l||(l=Promise.resolve())).then(u).catch(d=>setTimeout(()=>{throw d},0))}).call(this)}).call(this,typeof In>"u"?typeof self>"u"?typeof window>"u"?{}:window:self:In)},{}],14:[function(s,i){(function(c,l){(function(){var u=s("safe-buffer").Buffer,d=l.crypto||l.msCrypto;i.exports=d&&d.getRandomValues?function(p,f){if(p>4294967295)throw new RangeError("requested too many random bytes");var b=u.allocUnsafe(p);if(0"u"?typeof self>"u"?typeof window>"u"?{}:window:self:In)},{_process:12,"safe-buffer":30}],15:[function(s,i){function c(h,g){h.prototype=Object.create(g.prototype),h.prototype.constructor=h,h.__proto__=g}function l(h,g,z){function y(v,M,A){return typeof g=="string"?g:g(v,M,A)}z||(z=Error);var x=function(v){function M(A,_,w){return v.call(this,y(A,_,w))||this}return c(M,v),M}(z);x.prototype.name=z.name,x.prototype.code=h,b[h]=x}function u(h,g){if(Array.isArray(h)){var z=h.length;return h=h.map(function(y){return y+""}),2h.length)&&(z=h.length),h.substring(z-g.length,z)===g}function f(h,g,z){return typeof z!="number"&&(z=0),!(z+g.length>h.length)&&h.indexOf(g,z)!==-1}var b={};l("ERR_INVALID_OPT_VALUE",function(h,g){return'The value "'+g+'" is invalid for option "'+h+'"'},TypeError),l("ERR_INVALID_ARG_TYPE",function(h,g,z){var y;typeof g=="string"&&d(g,"not ")?(y="must not be",g=g.replace(/^not /,"")):y="must be";var x;if(p(h," argument"))x="The ".concat(h," ").concat(y," ").concat(u(g,"type"));else{var v=f(h,".")?"property":"argument";x='The "'.concat(h,'" ').concat(v," ").concat(y," ").concat(u(g,"type"))}return x+=". Received type ".concat(typeof z),x},TypeError),l("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),l("ERR_METHOD_NOT_IMPLEMENTED",function(h){return"The "+h+" method is not implemented"}),l("ERR_STREAM_PREMATURE_CLOSE","Premature close"),l("ERR_STREAM_DESTROYED",function(h){return"Cannot call "+h+" after a stream was destroyed"}),l("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),l("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),l("ERR_STREAM_WRITE_AFTER_END","write after end"),l("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),l("ERR_UNKNOWN_ENCODING",function(h){return"Unknown encoding: "+h},TypeError),l("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),i.exports.codes=b},{}],16:[function(s,i){(function(c){(function(){function l(y){return this instanceof l?(f.call(this,y),b.call(this,y),this.allowHalfOpen=!0,void(y&&(y.readable===!1&&(this.readable=!1),y.writable===!1&&(this.writable=!1),y.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",u))))):new l(y)}function u(){this._writableState.ended||c.nextTick(d,this)}function d(y){y.end()}var p=Object.keys||function(y){var x=[];for(var v in y)x.push(v);return x};i.exports=l;var f=s("./_stream_readable"),b=s("./_stream_writable");s("inherits")(l,f);for(var h,g=p(b.prototype),z=0;z>>1,Q|=Q>>>2,Q|=Q>>>4,Q|=Q>>>8,Q|=Q>>>16,Q++),Q}function x(Q,R){return 0>=Q||R.length===0&&R.ended?0:R.objectMode?1:Q===Q?(Q>R.highWaterMark&&(R.highWaterMark=y(Q)),Q<=R.length?Q:R.ended?R.length:(R.needReadable=!0,0)):R.flowing&&R.length?R.buffer.head.data.length:R.length}function v(Q,R){if(P("onEofChunk"),!R.ended){if(R.decoder){var j=R.decoder.end();j&&j.length&&(R.buffer.push(j),R.length+=R.objectMode?1:j.length)}R.ended=!0,R.sync?M(Q):(R.needReadable=!1,!R.emittedReadable&&(R.emittedReadable=!0,A(Q)))}}function M(Q){var R=Q._readableState;P("emitReadable",R.needReadable,R.emittedReadable),R.needReadable=!1,R.emittedReadable||(P("emitReadable",R.flowing),R.emittedReadable=!0,c.nextTick(A,Q))}function A(Q){var R=Q._readableState;P("emitReadable_",R.destroyed,R.length,R.ended),!R.destroyed&&(R.length||R.ended)&&(Q.emit("readable"),R.emittedReadable=!1),R.needReadable=!R.flowing&&!R.ended&&R.length<=R.highWaterMark,W(Q)}function _(Q,R){R.readingMore||(R.readingMore=!0,c.nextTick(w,Q,R))}function w(Q,R){for(;!R.reading&&!R.ended&&(R.length=R.length?(j=R.decoder?R.buffer.join(""):R.buffer.length===1?R.buffer.first():R.buffer.concat(R.length),R.buffer.clear()):j=R.buffer.consume(Q,R.decoder),j}function N(Q){var R=Q._readableState;P("endReadable",R.endEmitted),R.endEmitted||(R.ended=!0,c.nextTick(E,R,Q))}function E(Q,R){if(P("endReadableNT",Q.endEmitted,Q.length),!Q.endEmitted&&Q.length===0&&(Q.endEmitted=!0,R.readable=!1,R.emit("end"),Q.autoDestroy)){var j=R._writableState;(!j||j.autoDestroy&&j.finished)&&R.destroy()}}function L(Q,R){for(var j=0,V=Q.length;j=R.highWaterMark)||R.ended))return P("read: emitReadable",R.length,R.ended),R.length===0&&R.ended?N(this):M(this),null;if(Q=x(Q,R),Q===0&&R.ended)return R.length===0&&N(this),null;var V=R.needReadable;P("need readable",V),(R.length===0||R.length-Q"u"?typeof self>"u"?typeof window>"u"?{}:window:self:In)},{"../errors":15,"./_stream_duplex":16,"./internal/streams/async_iterator":21,"./internal/streams/buffer_list":22,"./internal/streams/destroy":23,"./internal/streams/from":25,"./internal/streams/state":27,"./internal/streams/stream":28,_process:12,buffer:3,events:7,inherits:10,"string_decoder/":31,util:2}],19:[function(s,i){function c(y,x){var v=this._transformState;v.transforming=!1;var M=v.writecb;if(M===null)return this.emit("error",new b);v.writechunk=null,v.writecb=null,x!=null&&this.push(x),M(y);var A=this._readableState;A.reading=!1,(A.needReadable||A.length"u"?typeof self>"u"?typeof window>"u"?{}:window:self:In)},{"../errors":15,"./_stream_duplex":16,"./internal/streams/destroy":23,"./internal/streams/state":27,"./internal/streams/stream":28,_process:12,buffer:3,inherits:10,"util-deprecate":32}],21:[function(s,i){(function(c){(function(){function l(k,q,S){return q in k?Object.defineProperty(k,q,{value:S,enumerable:!0,configurable:!0,writable:!0}):k[q]=S,k}function u(k,q){return{value:k,done:q}}function d(k){var q=k[g];if(q!==null){var S=k[A].read();S!==null&&(k[v]=null,k[g]=null,k[z]=null,q(u(S,!1)))}}function p(k){c.nextTick(d,k)}function f(k,q){return function(S,C){k.then(function(){return q[x]?void S(u(void 0,!0)):void q[M](S,C)},C)}}var b,h=s("./end-of-stream"),g=Symbol("lastResolve"),z=Symbol("lastReject"),y=Symbol("error"),x=Symbol("ended"),v=Symbol("lastPromise"),M=Symbol("handlePromise"),A=Symbol("stream"),_=Object.getPrototypeOf(function(){}),w=Object.setPrototypeOf((b={get stream(){return this[A]},next:function(){var k=this,q=this[y];if(q!==null)return Promise.reject(q);if(this[x])return Promise.resolve(u(void 0,!0));if(this[A].destroyed)return new Promise(function(W,B){c.nextTick(function(){k[y]?B(k[y]):W(u(void 0,!0))})});var S,C=this[v];if(C)S=new Promise(f(C,this));else{var T=this[A].read();if(T!==null)return Promise.resolve(u(T,!1));S=new Promise(this[M])}return this[v]=S,S}},l(b,Symbol.asyncIterator,function(){return this}),l(b,"return",function(){var k=this;return new Promise(function(q,S){k[A].destroy(null,function(C){return C?void S(C):void q(u(void 0,!0))})})}),b),_);i.exports=function(k){var q,S=Object.create(w,(q={},l(q,A,{value:k,writable:!0}),l(q,g,{value:null,writable:!0}),l(q,z,{value:null,writable:!0}),l(q,y,{value:null,writable:!0}),l(q,x,{value:k._readableState.endEmitted,writable:!0}),l(q,M,{value:function(C,T){var W=S[A].read();W?(S[v]=null,S[g]=null,S[z]=null,C(u(W,!1))):(S[g]=C,S[z]=T)},writable:!0}),q));return S[v]=null,h(k,function(C){if(C&&C.code!=="ERR_STREAM_PREMATURE_CLOSE"){var T=S[z];return T!==null&&(S[v]=null,S[g]=null,S[z]=null,T(C)),void(S[y]=C)}var W=S[g];W!==null&&(S[v]=null,S[g]=null,S[z]=null,W(u(void 0,!0))),S[x]=!0}),k.on("readable",p.bind(null,S)),S}}).call(this)}).call(this,s("_process"))},{"./end-of-stream":24,_process:12}],22:[function(s,i){function c(v,M){var A=Object.keys(v);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(v);M&&(_=_.filter(function(w){return Object.getOwnPropertyDescriptor(v,w).enumerable})),A.push.apply(A,_)}return A}function l(v){for(var M,A=1;A>>0),_=this.head,w=0;_;)b(_.data,A,w),w+=_.data.length,_=_.next;return A}},{key:"consume",value:function(M,A){var _;return Mk.length?k.length:M;if(w+=q===k.length?k:k.slice(0,M),M-=q,M===0){q===k.length?(++_,this.head=A.next?A.next:this.tail=null):(this.head=A,A.data=k.slice(q));break}++_}return this.length-=_,w}},{key:"_getBuffer",value:function(M){var A=g.allocUnsafe(M),_=this.head,w=1;for(_.data.copy(A),M-=_.data.length;_=_.next;){var k=_.data,q=M>k.length?k.length:M;if(k.copy(A,A.length-M,0,q),M-=q,M===0){q===k.length?(++w,this.head=_.next?_.next:this.tail=null):(this.head=_,_.data=k.slice(q));break}++w}return this.length-=w,A}},{key:x,value:function(M,A){return y(this,l({},A,{depth:0,customInspect:!1}))}}]),v}()},{buffer:3,util:2}],23:[function(s,i){(function(c){(function(){function l(p,f){d(p,f),u(p)}function u(p){p._writableState&&!p._writableState.emitClose||p._readableState&&!p._readableState.emitClose||p.emit("close")}function d(p,f){p.emit("error",f)}i.exports={destroy:function(p,f){var b=this,h=this._readableState&&this._readableState.destroyed,g=this._writableState&&this._writableState.destroyed;return h||g?(f?f(p):p&&(this._writableState?!this._writableState.errorEmitted&&(this._writableState.errorEmitted=!0,c.nextTick(d,this,p)):c.nextTick(d,this,p)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(p||null,function(z){!f&&z?b._writableState?b._writableState.errorEmitted?c.nextTick(u,b):(b._writableState.errorEmitted=!0,c.nextTick(l,b,z)):c.nextTick(l,b,z):f?(c.nextTick(u,b),f(z)):c.nextTick(u,b)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(p,f){var b=p._readableState,h=p._writableState;b&&b.autoDestroy||h&&h.autoDestroy?p.destroy(f):p.emit("error",f)}}}).call(this)}).call(this,s("_process"))},{_process:12}],24:[function(s,i){function c(f){var b=!1;return function(){if(!b){b=!0;for(var h=arguments.length,g=Array(h),z=0;zv.length)throw new z("streams");var _,w=v.map(function(k,q){var S=qb){var h=f?p:"highWaterMark";throw new l(h,b)}return n(b)}return u.objectMode?16:16384}}},{"../../../errors":15}],28:[function(s,i){i.exports=s("events").EventEmitter},{events:7}],29:[function(s,i,c){c=i.exports=s("./lib/_stream_readable.js"),c.Stream=c,c.Readable=c,c.Writable=s("./lib/_stream_writable.js"),c.Duplex=s("./lib/_stream_duplex.js"),c.Transform=s("./lib/_stream_transform.js"),c.PassThrough=s("./lib/_stream_passthrough.js"),c.finished=s("./lib/internal/streams/end-of-stream.js"),c.pipeline=s("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":16,"./lib/_stream_passthrough.js":17,"./lib/_stream_readable.js":18,"./lib/_stream_transform.js":19,"./lib/_stream_writable.js":20,"./lib/internal/streams/end-of-stream.js":24,"./lib/internal/streams/pipeline.js":26}],30:[function(s,i,c){function l(f,b){for(var h in f)b[h]=f[h]}function u(f,b,h){return p(f,b,h)}/*! safe-buffer. MIT License. Feross Aboukhadijeh */var d=s("buffer"),p=d.Buffer;p.from&&p.alloc&&p.allocUnsafe&&p.allocUnsafeSlow?i.exports=d:(l(d,c),c.Buffer=u),u.prototype=Object.create(p.prototype),l(p,u),u.from=function(f,b,h){if(typeof f=="number")throw new TypeError("Argument must not be a number");return p(f,b,h)},u.alloc=function(f,b,h){if(typeof f!="number")throw new TypeError("Argument must be a number");var g=p(f);return b===void 0?g.fill(0):typeof h=="string"?g.fill(b,h):g.fill(b),g},u.allocUnsafe=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return p(f)},u.allocUnsafeSlow=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return d.SlowBuffer(f)}},{buffer:3}],31:[function(s,i,c){function l(w){if(!w)return"utf8";for(var k;;)switch(w){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return w;default:if(k)return;w=(""+w).toLowerCase(),k=!0}}function u(w){var k=l(w);if(typeof k!="string"&&(A.isEncoding===_||!_(w)))throw new Error("Unknown encoding: "+w);return k||w}function d(w){this.encoding=u(w);var k;switch(this.encoding){case"utf16le":this.text=g,this.end=z,k=4;break;case"utf8":this.fillLast=h,k=4;break;case"base64":this.text=y,this.end=x,k=3;break;default:return this.write=v,void(this.end=M)}this.lastNeed=0,this.lastTotal=0,this.lastChar=A.allocUnsafe(k)}function p(w){return 127>=w?0:w>>5==6?2:w>>4==14?3:w>>3==30?4:w>>6==2?-1:-2}function f(w,k,q){var S=k.length-1;if(S=S)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1],q.slice(0,-1)}return q}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=w[w.length-1],w.toString("utf16le",k,w.length-1)}function z(w){var k=w&&w.length?this.write(w):"";if(this.lastNeed){var q=this.lastTotal-this.lastNeed;return k+this.lastChar.toString("utf16le",0,q)}return k}function y(w,k){var q=(w.length-k)%3;return q==0?w.toString("base64",k):(this.lastNeed=3-q,this.lastTotal=3,q==1?this.lastChar[0]=w[w.length-1]:(this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1]),w.toString("base64",k,w.length-q))}function x(w){var k=w&&w.length?this.write(w):"";return this.lastNeed?k+this.lastChar.toString("base64",0,3-this.lastNeed):k}function v(w){return w.toString(this.encoding)}function M(w){return w&&w.length?this.write(w):""}var A=s("safe-buffer").Buffer,_=A.isEncoding||function(w){switch(w=""+w,w&&w.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};c.StringDecoder=d,d.prototype.write=function(w){if(w.length===0)return"";var k,q;if(this.lastNeed){if(k=this.fillLast(w),k===void 0)return"";q=this.lastNeed,this.lastNeed=0}else q=0;return q"u"?typeof self>"u"?typeof window>"u"?{}:window:self:In)},{}],"/":[function(s,i){function c(x){return x.replace(/a=ice-options:trickle\s\n/g,"")}function l(x){console.warn(x)}/*! simple-peer. MIT License. Feross Aboukhadijeh */const u=s("debug")("simple-peer"),d=s("get-browser-rtc"),p=s("randombytes"),f=s("readable-stream"),b=s("queue-microtask"),h=s("err-code"),{Buffer:g}=s("buffer"),z=65536;class y extends f.Duplex{constructor(v){if(v=Object.assign({allowHalfOpen:!1},v),super(v),this._id=p(4).toString("hex").slice(0,7),this._debug("new peer %o",v),this.channelName=v.initiator?v.channelName||p(20).toString("hex"):null,this.initiator=v.initiator||!1,this.channelConfig=v.channelConfig||y.channelConfig,this.channelNegotiated=this.channelConfig.negotiated,this.config=Object.assign({},y.config,v.config),this.offerOptions=v.offerOptions||{},this.answerOptions=v.answerOptions||{},this.sdpTransform=v.sdpTransform||(M=>M),this.streams=v.streams||(v.stream?[v.stream]:[]),this.trickle=v.trickle===void 0||v.trickle,this.allowHalfTrickle=v.allowHalfTrickle!==void 0&&v.allowHalfTrickle,this.iceCompleteTimeout=v.iceCompleteTimeout||5e3,this.destroyed=!1,this.destroying=!1,this._connected=!1,this.remoteAddress=void 0,this.remoteFamily=void 0,this.remotePort=void 0,this.localAddress=void 0,this.localFamily=void 0,this.localPort=void 0,this._wrtc=v.wrtc&&typeof v.wrtc=="object"?v.wrtc:d(),!this._wrtc)throw h(typeof window>"u"?new Error("No WebRTC support: Specify `opts.wrtc` option in this environment"):new Error("No WebRTC support: Not a supported browser"),"ERR_WEBRTC_SUPPORT");this._pcReady=!1,this._channelReady=!1,this._iceComplete=!1,this._iceCompleteTimer=null,this._channel=null,this._pendingCandidates=[],this._isNegotiating=!1,this._firstNegotiation=!0,this._batchedNegotiation=!1,this._queuedNegotiation=!1,this._sendersAwaitingStable=[],this._senderMap=new Map,this._closingInterval=null,this._remoteTracks=[],this._remoteStreams=[],this._chunk=null,this._cb=null,this._interval=null;try{this._pc=new this._wrtc.RTCPeerConnection(this.config)}catch(M){return void this.destroy(h(M,"ERR_PC_CONSTRUCTOR"))}this._isReactNativeWebrtc=typeof this._pc._peerConnectionId=="number",this._pc.oniceconnectionstatechange=()=>{this._onIceStateChange()},this._pc.onicegatheringstatechange=()=>{this._onIceStateChange()},this._pc.onconnectionstatechange=()=>{this._onConnectionStateChange()},this._pc.onsignalingstatechange=()=>{this._onSignalingStateChange()},this._pc.onicecandidate=M=>{this._onIceCandidate(M)},typeof this._pc.peerIdentity=="object"&&this._pc.peerIdentity.catch(M=>{this.destroy(h(M,"ERR_PC_PEER_IDENTITY"))}),this.initiator||this.channelNegotiated?this._setupData({channel:this._pc.createDataChannel(this.channelName,this.channelConfig)}):this._pc.ondatachannel=M=>{this._setupData(M)},this.streams&&this.streams.forEach(M=>{this.addStream(M)}),this._pc.ontrack=M=>{this._onTrack(M)},this._debug("initial negotiation"),this._needsNegotiation(),this._onFinishBound=()=>{this._onFinish()},this.once("finish",this._onFinishBound)}get bufferSize(){return this._channel&&this._channel.bufferedAmount||0}get connected(){return this._connected&&this._channel.readyState==="open"}address(){return{port:this.localPort,family:this.localFamily,address:this.localAddress}}signal(v){if(!this.destroying){if(this.destroyed)throw h(new Error("cannot signal after peer is destroyed"),"ERR_DESTROYED");if(typeof v=="string")try{v=JSON.parse(v)}catch{v={}}this._debug("signal()"),v.renegotiate&&this.initiator&&(this._debug("got request to renegotiate"),this._needsNegotiation()),v.transceiverRequest&&this.initiator&&(this._debug("got request for transceiver"),this.addTransceiver(v.transceiverRequest.kind,v.transceiverRequest.init)),v.candidate&&(this._pc.remoteDescription&&this._pc.remoteDescription.type?this._addIceCandidate(v.candidate):this._pendingCandidates.push(v.candidate)),v.sdp&&this._pc.setRemoteDescription(new this._wrtc.RTCSessionDescription(v)).then(()=>{this.destroyed||(this._pendingCandidates.forEach(M=>{this._addIceCandidate(M)}),this._pendingCandidates=[],this._pc.remoteDescription.type==="offer"&&this._createAnswer())}).catch(M=>{this.destroy(h(M,"ERR_SET_REMOTE_DESCRIPTION"))}),v.sdp||v.candidate||v.renegotiate||v.transceiverRequest||this.destroy(h(new Error("signal() called with invalid signal data"),"ERR_SIGNALING"))}}_addIceCandidate(v){const M=new this._wrtc.RTCIceCandidate(v);this._pc.addIceCandidate(M).catch(A=>{!M.address||M.address.endsWith(".local")?l("Ignoring unsupported ICE candidate."):this.destroy(h(A,"ERR_ADD_ICE_CANDIDATE"))})}send(v){if(!this.destroying){if(this.destroyed)throw h(new Error("cannot send after peer is destroyed"),"ERR_DESTROYED");this._channel.send(v)}}addTransceiver(v,M){if(!this.destroying){if(this.destroyed)throw h(new Error("cannot addTransceiver after peer is destroyed"),"ERR_DESTROYED");if(this._debug("addTransceiver()"),this.initiator)try{this._pc.addTransceiver(v,M),this._needsNegotiation()}catch(A){this.destroy(h(A,"ERR_ADD_TRANSCEIVER"))}else this.emit("signal",{type:"transceiverRequest",transceiverRequest:{kind:v,init:M}})}}addStream(v){if(!this.destroying){if(this.destroyed)throw h(new Error("cannot addStream after peer is destroyed"),"ERR_DESTROYED");this._debug("addStream()"),v.getTracks().forEach(M=>{this.addTrack(M,v)})}}addTrack(v,M){if(this.destroying)return;if(this.destroyed)throw h(new Error("cannot addTrack after peer is destroyed"),"ERR_DESTROYED");this._debug("addTrack()");const A=this._senderMap.get(v)||new Map;let _=A.get(M);if(!_)_=this._pc.addTrack(v,M),A.set(M,_),this._senderMap.set(v,A),this._needsNegotiation();else throw _.removed?h(new Error("Track has been removed. You should enable/disable tracks that you want to re-add."),"ERR_SENDER_REMOVED"):h(new Error("Track has already been added to that stream."),"ERR_SENDER_ALREADY_ADDED")}replaceTrack(v,M,A){if(this.destroying)return;if(this.destroyed)throw h(new Error("cannot replaceTrack after peer is destroyed"),"ERR_DESTROYED");this._debug("replaceTrack()");const _=this._senderMap.get(v),w=_?_.get(A):null;if(!w)throw h(new Error("Cannot replace track that was never added."),"ERR_TRACK_NOT_ADDED");M&&this._senderMap.set(M,_),w.replaceTrack==null?this.destroy(h(new Error("replaceTrack is not supported in this browser"),"ERR_UNSUPPORTED_REPLACETRACK")):w.replaceTrack(M)}removeTrack(v,M){if(this.destroying)return;if(this.destroyed)throw h(new Error("cannot removeTrack after peer is destroyed"),"ERR_DESTROYED");this._debug("removeSender()");const A=this._senderMap.get(v),_=A?A.get(M):null;if(!_)throw h(new Error("Cannot remove track that was never added."),"ERR_TRACK_NOT_ADDED");try{_.removed=!0,this._pc.removeTrack(_)}catch(w){w.name==="NS_ERROR_UNEXPECTED"?this._sendersAwaitingStable.push(_):this.destroy(h(w,"ERR_REMOVE_TRACK"))}this._needsNegotiation()}removeStream(v){if(!this.destroying){if(this.destroyed)throw h(new Error("cannot removeStream after peer is destroyed"),"ERR_DESTROYED");this._debug("removeSenders()"),v.getTracks().forEach(M=>{this.removeTrack(M,v)})}}_needsNegotiation(){this._debug("_needsNegotiation"),this._batchedNegotiation||(this._batchedNegotiation=!0,b(()=>{this._batchedNegotiation=!1,this.initiator||!this._firstNegotiation?(this._debug("starting batched negotiation"),this.negotiate()):this._debug("non-initiator initial negotiation request discarded"),this._firstNegotiation=!1}))}negotiate(){if(!this.destroying){if(this.destroyed)throw h(new Error("cannot negotiate after peer is destroyed"),"ERR_DESTROYED");this.initiator?this._isNegotiating?(this._queuedNegotiation=!0,this._debug("already negotiating, queueing")):(this._debug("start negotiation"),setTimeout(()=>{this._createOffer()},0)):this._isNegotiating?(this._queuedNegotiation=!0,this._debug("already negotiating, queueing")):(this._debug("requesting negotiation from initiator"),this.emit("signal",{type:"renegotiate",renegotiate:!0})),this._isNegotiating=!0}}destroy(v){this._destroy(v,()=>{})}_destroy(v,M){this.destroyed||this.destroying||(this.destroying=!0,this._debug("destroying (error: %s)",v&&(v.message||v)),b(()=>{if(this.destroyed=!0,this.destroying=!1,this._debug("destroy (error: %s)",v&&(v.message||v)),this.readable=this.writable=!1,this._readableState.ended||this.push(null),this._writableState.finished||this.end(),this._connected=!1,this._pcReady=!1,this._channelReady=!1,this._remoteTracks=null,this._remoteStreams=null,this._senderMap=null,clearInterval(this._closingInterval),this._closingInterval=null,clearInterval(this._interval),this._interval=null,this._chunk=null,this._cb=null,this._onFinishBound&&this.removeListener("finish",this._onFinishBound),this._onFinishBound=null,this._channel){try{this._channel.close()}catch{}this._channel.onmessage=null,this._channel.onopen=null,this._channel.onclose=null,this._channel.onerror=null}if(this._pc){try{this._pc.close()}catch{}this._pc.oniceconnectionstatechange=null,this._pc.onicegatheringstatechange=null,this._pc.onsignalingstatechange=null,this._pc.onicecandidate=null,this._pc.ontrack=null,this._pc.ondatachannel=null}this._pc=null,this._channel=null,v&&this.emit("error",v),this.emit("close"),M()}))}_setupData(v){if(!v.channel)return this.destroy(h(new Error("Data channel event is missing `channel` property"),"ERR_DATA_CHANNEL"));this._channel=v.channel,this._channel.binaryType="arraybuffer",typeof this._channel.bufferedAmountLowThreshold=="number"&&(this._channel.bufferedAmountLowThreshold=z),this.channelName=this._channel.label,this._channel.onmessage=A=>{this._onChannelMessage(A)},this._channel.onbufferedamountlow=()=>{this._onChannelBufferedAmountLow()},this._channel.onopen=()=>{this._onChannelOpen()},this._channel.onclose=()=>{this._onChannelClose()},this._channel.onerror=A=>{const _=A.error instanceof Error?A.error:new Error(`Datachannel error: ${A.message} ${A.filename}:${A.lineno}:${A.colno}`);this.destroy(h(_,"ERR_DATA_CHANNEL"))};let M=!1;this._closingInterval=setInterval(()=>{this._channel&&this._channel.readyState==="closing"?(M&&this._onChannelClose(),M=!0):M=!1},5e3)}_read(){}_write(v,M,A){if(this.destroyed)return A(h(new Error("cannot write after peer is destroyed"),"ERR_DATA_CHANNEL"));if(this._connected){try{this.send(v)}catch(_){return this.destroy(h(_,"ERR_DATA_CHANNEL"))}this._channel.bufferedAmount>z?(this._debug("start backpressure: bufferedAmount %d",this._channel.bufferedAmount),this._cb=A):A(null)}else this._debug("write before connect"),this._chunk=v,this._cb=A}_onFinish(){if(!this.destroyed){const v=()=>{setTimeout(()=>this.destroy(),1e3)};this._connected?v():this.once("connect",v)}}_startIceCompleteTimeout(){this.destroyed||this._iceCompleteTimer||(this._debug("started iceComplete timeout"),this._iceCompleteTimer=setTimeout(()=>{this._iceComplete||(this._iceComplete=!0,this._debug("iceComplete timeout completed"),this.emit("iceTimeout"),this.emit("_iceComplete"))},this.iceCompleteTimeout))}_createOffer(){this.destroyed||this._pc.createOffer(this.offerOptions).then(v=>{if(this.destroyed)return;this.trickle||this.allowHalfTrickle||(v.sdp=c(v.sdp)),v.sdp=this.sdpTransform(v.sdp);const M=()=>{if(!this.destroyed){const A=this._pc.localDescription||v;this._debug("signal"),this.emit("signal",{type:A.type,sdp:A.sdp})}};this._pc.setLocalDescription(v).then(()=>{this._debug("createOffer success"),this.destroyed||(this.trickle||this._iceComplete?M():this.once("_iceComplete",M))}).catch(A=>{this.destroy(h(A,"ERR_SET_LOCAL_DESCRIPTION"))})}).catch(v=>{this.destroy(h(v,"ERR_CREATE_OFFER"))})}_requestMissingTransceivers(){this._pc.getTransceivers&&this._pc.getTransceivers().forEach(v=>{v.mid||!v.sender.track||v.requested||(v.requested=!0,this.addTransceiver(v.sender.track.kind))})}_createAnswer(){this.destroyed||this._pc.createAnswer(this.answerOptions).then(v=>{if(this.destroyed)return;this.trickle||this.allowHalfTrickle||(v.sdp=c(v.sdp)),v.sdp=this.sdpTransform(v.sdp);const M=()=>{if(!this.destroyed){const A=this._pc.localDescription||v;this._debug("signal"),this.emit("signal",{type:A.type,sdp:A.sdp}),this.initiator||this._requestMissingTransceivers()}};this._pc.setLocalDescription(v).then(()=>{this.destroyed||(this.trickle||this._iceComplete?M():this.once("_iceComplete",M))}).catch(A=>{this.destroy(h(A,"ERR_SET_LOCAL_DESCRIPTION"))})}).catch(v=>{this.destroy(h(v,"ERR_CREATE_ANSWER"))})}_onConnectionStateChange(){this.destroyed||this._pc.connectionState==="failed"&&this.destroy(h(new Error("Connection failed."),"ERR_CONNECTION_FAILURE"))}_onIceStateChange(){if(this.destroyed)return;const v=this._pc.iceConnectionState,M=this._pc.iceGatheringState;this._debug("iceStateChange (connection: %s) (gathering: %s)",v,M),this.emit("iceStateChange",v,M),(v==="connected"||v==="completed")&&(this._pcReady=!0,this._maybeReady()),v==="failed"&&this.destroy(h(new Error("Ice connection failed."),"ERR_ICE_CONNECTION_FAILURE")),v==="closed"&&this.destroy(h(new Error("Ice connection closed."),"ERR_ICE_CONNECTION_CLOSED"))}getStats(v){const M=A=>(Object.prototype.toString.call(A.values)==="[object Array]"&&A.values.forEach(_=>{Object.assign(A,_)}),A);this._pc.getStats.length===0||this._isReactNativeWebrtc?this._pc.getStats().then(A=>{const _=[];A.forEach(w=>{_.push(M(w))}),v(null,_)},A=>v(A)):0{if(this.destroyed)return;const _=[];A.result().forEach(w=>{const k={};w.names().forEach(q=>{k[q]=w.stat(q)}),k.id=w.id,k.type=w.type,k.timestamp=w.timestamp,_.push(M(k))}),v(null,_)},A=>v(A)):v(null,[])}_maybeReady(){if(this._debug("maybeReady pc %s channel %s",this._pcReady,this._channelReady),this._connected||this._connecting||!this._pcReady||!this._channelReady)return;this._connecting=!0;const v=()=>{this.destroyed||this.getStats((M,A)=>{if(this.destroyed)return;M&&(A=[]);const _={},w={},k={};let q=!1;A.forEach(C=>{(C.type==="remotecandidate"||C.type==="remote-candidate")&&(_[C.id]=C),(C.type==="localcandidate"||C.type==="local-candidate")&&(w[C.id]=C),(C.type==="candidatepair"||C.type==="candidate-pair")&&(k[C.id]=C)});const S=C=>{q=!0;let T=w[C.localCandidateId];T&&(T.ip||T.address)?(this.localAddress=T.ip||T.address,this.localPort=+T.port):T&&T.ipAddress?(this.localAddress=T.ipAddress,this.localPort=+T.portNumber):typeof C.googLocalAddress=="string"&&(T=C.googLocalAddress.split(":"),this.localAddress=T[0],this.localPort=+T[1]),this.localAddress&&(this.localFamily=this.localAddress.includes(":")?"IPv6":"IPv4");let W=_[C.remoteCandidateId];W&&(W.ip||W.address)?(this.remoteAddress=W.ip||W.address,this.remotePort=+W.port):W&&W.ipAddress?(this.remoteAddress=W.ipAddress,this.remotePort=+W.portNumber):typeof C.googRemoteAddress=="string"&&(W=C.googRemoteAddress.split(":"),this.remoteAddress=W[0],this.remotePort=+W[1]),this.remoteAddress&&(this.remoteFamily=this.remoteAddress.includes(":")?"IPv6":"IPv4"),this._debug("connect local: %s:%s remote: %s:%s",this.localAddress,this.localPort,this.remoteAddress,this.remotePort)};if(A.forEach(C=>{C.type==="transport"&&C.selectedCandidatePairId&&S(k[C.selectedCandidatePairId]),(C.type==="googCandidatePair"&&C.googActiveConnection==="true"||(C.type==="candidatepair"||C.type==="candidate-pair")&&C.selected)&&S(C)}),!q&&(!Object.keys(k).length||Object.keys(w).length))return void setTimeout(v,100);if(this._connecting=!1,this._connected=!0,this._chunk){try{this.send(this._chunk)}catch(T){return this.destroy(h(T,"ERR_DATA_CHANNEL"))}this._chunk=null,this._debug('sent chunk from "write before connect"');const C=this._cb;this._cb=null,C(null)}typeof this._channel.bufferedAmountLowThreshold!="number"&&(this._interval=setInterval(()=>this._onInterval(),150),this._interval.unref&&this._interval.unref()),this._debug("connect"),this.emit("connect")})};v()}_onInterval(){this._cb&&this._channel&&!(this._channel.bufferedAmount>z)&&this._onChannelBufferedAmountLow()}_onSignalingStateChange(){this.destroyed||(this._pc.signalingState==="stable"&&(this._isNegotiating=!1,this._debug("flushing sender queue",this._sendersAwaitingStable),this._sendersAwaitingStable.forEach(v=>{this._pc.removeTrack(v),this._queuedNegotiation=!0}),this._sendersAwaitingStable=[],this._queuedNegotiation?(this._debug("flushing negotiation queue"),this._queuedNegotiation=!1,this._needsNegotiation()):(this._debug("negotiated"),this.emit("negotiated"))),this._debug("signalingStateChange %s",this._pc.signalingState),this.emit("signalingStateChange",this._pc.signalingState))}_onIceCandidate(v){this.destroyed||(v.candidate&&this.trickle?this.emit("signal",{type:"candidate",candidate:{candidate:v.candidate.candidate,sdpMLineIndex:v.candidate.sdpMLineIndex,sdpMid:v.candidate.sdpMid}}):!v.candidate&&!this._iceComplete&&(this._iceComplete=!0,this.emit("_iceComplete")),v.candidate&&this._startIceCompleteTimeout())}_onChannelMessage(v){if(this.destroyed)return;let M=v.data;M instanceof ArrayBuffer&&(M=g.from(M)),this.push(M)}_onChannelBufferedAmountLow(){if(!this.destroyed&&this._cb){this._debug("ending backpressure: bufferedAmount %d",this._channel.bufferedAmount);const v=this._cb;this._cb=null,v(null)}}_onChannelOpen(){this._connected||this.destroyed||(this._debug("on channel open"),this._channelReady=!0,this._maybeReady())}_onChannelClose(){this.destroyed||(this._debug("on channel close"),this.destroy())}_onTrack(v){this.destroyed||v.streams.forEach(M=>{this._debug("on track"),this.emit("track",v.track,M),this._remoteTracks.push({track:v.track,stream:M}),this._remoteStreams.some(A=>A.id===M.id)||(this._remoteStreams.push(M),b(()=>{this._debug("on stream"),this.emit("stream",M)}))})}_debug(){const v=[].slice.call(arguments);v[0]="["+this._id+"] "+v[0],u.apply(null,v)}}y.WEBRTC_SUPPORT=!!d(),y.config={iceServers:[{urls:["stun:stun.l.google.com:19302","stun:global.stun.twilio.com:3478"]}],sdpSemantics:"unified-plan"},y.channelConfig={},i.exports=y},{buffer:3,debug:4,"err-code":6,"get-browser-rtc":8,"queue-microtask":13,randombytes:14,"readable-stream":29}]},{},[])("/")})})(coe);var KWe=coe.exports;const YWe=yo(KWe),iN=0,aN=1,loe=2,uoe=(e,t)=>{Wt(e,iN);const n=v8e(t);Qn(e,n)},doe=(e,t,n)=>{Wt(e,aN),Qn(e,ZB(t,n))},ZWe=(e,t,n)=>doe(t,n,P1(e)),poe=(e,t,n)=>{try{q1e(t,P1(e),n)}catch(o){console.error("Caught error while handling a Yjs update",o)}},QWe=(e,t)=>{Wt(e,loe),Qn(e,t)},JWe=poe,eTe=(e,t,n,o)=>{const r=Jt(e);switch(r){case iN:ZWe(e,t,n);break;case aN:poe(e,n,o);break;case loe:JWe(e,n,o);break;default:throw new Error("Unknown message type")}return r},eq=3e4;class tTe extends Hz{constructor(t){super(),this.doc=t,this.clientID=t.clientID,this.states=new Map,this.meta=new Map,this._checkInterval=setInterval(()=>{const n=Kc();this.getLocalState()!==null&&eq/2<=n-this.meta.get(this.clientID).lastUpdated&&this.setLocalState(this.getLocalState());const o=[];this.meta.forEach((r,s)=>{s!==this.clientID&&eq<=n-r.lastUpdated&&this.states.has(s)&&o.push(s)}),o.length>0&&M8(this,o,"timeout")},Na(eq/10)),t.on("destroy",()=>{this.destroy()}),this.setLocalState({})}destroy(){this.emit("destroy",[this]),this.setLocalState(null),super.destroy(),clearInterval(this._checkInterval)}getLocalState(){return this.states.get(this.clientID)||null}setLocalState(t){const n=this.clientID,o=this.meta.get(n),r=o===void 0?0:o.clock+1,s=this.states.get(n);t===null?this.states.delete(n):this.states.set(n,t),this.meta.set(n,{clock:r,lastUpdated:Kc()});const i=[],c=[],l=[],u=[];t===null?u.push(n):s==null?t!=null&&i.push(n):(c.push(n),EM(s,t)||l.push(n)),(i.length>0||l.length>0||u.length>0)&&this.emit("change",[{added:i,updated:l,removed:u},"local"]),this.emit("update",[{added:i,updated:c,removed:u},"local"])}setLocalStateField(t,n){const o=this.getLocalState();o!==null&&this.setLocalState({...o,[t]:n})}getStates(){return this.states}}const M8=(e,t,n)=>{const o=[];for(let r=0;r0&&(e.emit("change",[{added:[],updated:[],removed:o},n]),e.emit("update",[{added:[],updated:[],removed:o},n]))},zv=(e,t,n=e.states)=>{const o=t.length,r=F1();Wt(r,o);for(let s=0;s{const o=Ka(t),r=Kc(),s=[],i=[],c=[],l=[],u=Jt(o);for(let d=0;d0||c.length>0||l.length>0)&&e.emit("change",[{added:s,updated:c,removed:l},n]),(s.length>0||i.length>0||l.length>0)&&e.emit("update",[{added:s,updated:i,removed:l},n])},oTe=(e,t)=>{const n=c8(e).buffer,o=c8(t).buffer;return crypto.subtle.importKey("raw",n,"PBKDF2",!1,["deriveKey"]).then(r=>crypto.subtle.deriveKey({name:"PBKDF2",salt:o,iterations:1e5,hash:"SHA-256"},r,{name:"AES-GCM",length:256},!0,["encrypt","decrypt"]))},foe=(e,t)=>{if(!t)return DB(e);const n=crypto.getRandomValues(new Uint8Array(12));return crypto.subtle.encrypt({name:"AES-GCM",iv:n},t,e).then(o=>{const r=F1();return wa(r,"AES-GCM"),Qn(r,n),Qn(r,new Uint8Array(o)),Fn(r)})},rTe=(e,t)=>{const n=F1();return A2(n,e),foe(Fn(n),t)},boe=(e,t)=>{if(!t)return DB(e);const n=Ka(e);Tc(n)!=="AES-GCM"&&qRe(Ri("Unknown encryption algorithm"));const r=P1(n),s=P1(n);return crypto.subtle.decrypt({name:"AES-GCM",iv:r},t,s).then(i=>new Uint8Array(i))},hoe=(e,t)=>boe(e,t).then(n=>y2(Ka(new Uint8Array(n)))),U1=i8e("y-webrtc"),Xb=0,moe=3,Sg=1,cN=4,Cg=new Map,qa=new Map,Moe=e=>{let t=!0;e.webrtcConns.forEach(n=>{n.synced||(t=!1)}),(!t&&e.synced||t&&!e.synced)&&(e.synced=t,e.provider.emit("synced",[{synced:t}]),U1("synced ",js,e.name,Cp," with all peers"))},goe=(e,t,n)=>{const o=Ka(t),r=F1(),s=Jt(o);if(e===void 0)return null;const i=e.awareness,c=e.doc;let l=!1;switch(s){case Xb:{Wt(r,Xb);const u=eTe(o,r,c,e);u===aN&&!e.synced&&n(),u===iN&&(l=!0);break}case moe:Wt(r,Sg),Qn(r,zv(i,Array.from(i.getStates().keys()))),l=!0;break;case Sg:nTe(i,P1(o),e);break;case cN:{const u=Sp(o)===1,d=Tc(o);if(d!==e.peerId&&(e.bcConns.has(d)&&!u||!e.bcConns.has(d)&&u)){const p=[],f=[];u?(e.bcConns.add(d),f.push(d)):(e.bcConns.delete(d),p.push(d)),e.provider.emit("peers",[{added:f,removed:p,webrtcPeers:Array.from(e.webrtcConns.keys()),bcPeers:Array.from(e.bcConns)}]),zoe(e)}break}default:return console.error("Unable to compute message"),r}return l?r:null},sTe=(e,t)=>{const n=e.room;return U1("received message from ",js,e.remotePeerId,HB," (",n.name,")",Cp,jx),goe(n,t,()=>{e.synced=!0,U1("synced ",js,n.name,Cp," with ",js,e.remotePeerId),Moe(n)})},tq=(e,t)=>{U1("send message to ",js,e.remotePeerId,Cp,HB," (",e.room.name,")",jx);try{e.peer.send(Fn(t))}catch{}},iTe=(e,t)=>{U1("broadcast message in ",js,e.name,Cp),e.webrtcConns.forEach(n=>{try{n.peer.send(t)}catch{}})};class Ov{constructor(t,n,o,r){U1("establishing connection to ",js,o),this.room=r,this.remotePeerId=o,this.glareToken=void 0,this.closed=!1,this.connected=!1,this.synced=!1,this.peer=new YWe({initiator:n,...r.provider.peerOpts}),this.peer.on("signal",s=>{this.glareToken===void 0&&(this.glareToken=Date.now()+Math.random()),$x(t,r,{to:o,from:r.peerId,type:"signal",token:this.glareToken,signal:s})}),this.peer.on("connect",()=>{U1("connected to ",js,o),this.connected=!0;const i=r.provider.doc,c=r.awareness,l=F1();Wt(l,Xb),uoe(l,i),tq(this,l);const u=c.getStates();if(u.size>0){const d=F1();Wt(d,Sg),Qn(d,zv(c,Array.from(u.keys()))),tq(this,d)}}),this.peer.on("close",()=>{this.connected=!1,this.closed=!0,r.webrtcConns.has(this.remotePeerId)&&(r.webrtcConns.delete(this.remotePeerId),r.provider.emit("peers",[{removed:[this.remotePeerId],added:[],webrtcPeers:Array.from(r.webrtcConns.keys()),bcPeers:Array.from(r.bcConns)}])),Moe(r),this.peer.destroy(),U1("closed connection to ",js,o),g8(r)}),this.peer.on("error",s=>{U1("Error in connection to ",js,o,": ",s),g8(r)}),this.peer.on("data",s=>{const i=sTe(this,s);i!==null&&tq(this,i)})}destroy(){this.peer.destroy()}}const Vl=(e,t)=>foe(t,e.key).then(n=>e.mux(()=>XWe(e.name,n))),MV=(e,t)=>{e.bcconnected&&Vl(e,t),iTe(e,t)},g8=e=>{Cg.forEach(t=>{t.connected&&(t.send({type:"subscribe",topics:[e.name]}),e.webrtcConns.size{if(e.provider.filterBcConns){const t=F1();Wt(t,cN),_g(t,1),wa(t,e.peerId),Vl(e,Fn(t))}};class aTe{constructor(t,n,o,r){this.peerId=r1e(),this.doc=t,this.awareness=n.awareness,this.provider=n,this.synced=!1,this.name=o,this.key=r,this.webrtcConns=new Map,this.bcConns=new Set,this.mux=GWe(),this.bcconnected=!1,this._bcSubscriber=s=>boe(new Uint8Array(s),r).then(i=>this.mux(()=>{const c=goe(this,i,()=>{});c&&Vl(this,Fn(c))})),this._docUpdateHandler=(s,i)=>{const c=F1();Wt(c,Xb),QWe(c,s),MV(this,Fn(c))},this._awarenessUpdateHandler=({added:s,updated:i,removed:c},l)=>{const u=s.concat(i).concat(c),d=F1();Wt(d,Sg),Qn(d,zv(this.awareness,u)),MV(this,Fn(d))},this._beforeUnloadHandler=()=>{M8(this.awareness,[t.clientID],"window unload"),qa.forEach(s=>{s.disconnect()})},typeof window<"u"?window.addEventListener("beforeunload",this._beforeUnloadHandler):typeof process<"u"&&process.on("exit",this._beforeUnloadHandler)}connect(){this.doc.on("update",this._docUpdateHandler),this.awareness.on("update",this._awarenessUpdateHandler),g8(this);const t=this.name;HWe(t,this._bcSubscriber),this.bcconnected=!0,zoe(this);const n=F1();Wt(n,Xb),uoe(n,this.doc),Vl(this,Fn(n));const o=F1();Wt(o,Xb),doe(o,this.doc),Vl(this,Fn(o));const r=F1();Wt(r,moe),Vl(this,Fn(r));const s=F1();Wt(s,Sg),Qn(s,zv(this.awareness,[this.doc.clientID])),Vl(this,Fn(s))}disconnect(){Cg.forEach(n=>{n.connected&&n.send({type:"unsubscribe",topics:[this.name]})}),M8(this.awareness,[this.doc.clientID],"disconnect");const t=F1();Wt(t,cN),_g(t,0),wa(t,this.peerId),Vl(this,Fn(t)),UWe(this.name,this._bcSubscriber),this.bcconnected=!1,this.doc.off("update",this._docUpdateHandler),this.awareness.off("update",this._awarenessUpdateHandler),this.webrtcConns.forEach(n=>n.destroy())}destroy(){this.disconnect(),typeof window<"u"?window.removeEventListener("beforeunload",this._beforeUnloadHandler):typeof process<"u"&&process.off("exit",this._beforeUnloadHandler)}}const cTe=(e,t,n,o)=>{if(qa.has(n))throw Ri(`A Yjs Doc connected to room "${n}" already exists!`);const r=new aTe(e,t,n,o);return qa.set(n,r),r},$x=(e,t,n)=>{t.key?rTe(n,t.key).then(o=>{e.send({type:"publish",topic:t.name,data:f1e(o)})}):e.send({type:"publish",topic:t.name,data:n})};class Ooe extends FWe{constructor(t){super(t),this.providers=new Set,this.on("connect",()=>{U1(`connected (${t})`);const n=Array.from(qa.keys());this.send({type:"subscribe",topics:n}),qa.forEach(o=>$x(this,o,{type:"announce",from:o.peerId}))}),this.on("message",n=>{switch(n.type){case"publish":{const o=n.topic,r=qa.get(o);if(r==null||typeof o!="string")return;const s=i=>{const c=r.webrtcConns,l=r.peerId;if(i==null||i.from===l||i.to!==void 0&&i.to!==l||r.bcConns.has(i.from))return;const u=c.has(i.from)?()=>{}:()=>r.provider.emit("peers",[{removed:[],added:[i.from],webrtcPeers:Array.from(r.webrtcConns.keys()),bcPeers:Array.from(r.bcConns)}]);switch(i.type){case"announce":c.sizenew Ov(this,!0,i.from,r)),u());break;case"signal":if(i.signal.type==="offer"){const d=c.get(i.from);if(d){const p=i.token,f=d.glareToken;if(f&&f>p){U1("offer rejected: ",i.from);return}d.glareToken=void 0}}if(i.signal.type==="answer"){U1("offer answered by: ",i.from);const d=c.get(i.from);d.glareToken=void 0}i.to===l&&(Fo(c,i.from,()=>new Ov(this,!1,i.from,r)).peer.signal(i.signal),u());break}};r.key?typeof n.data=="string"&&hoe(VB(n.data),r.key).then(s):s(n.data)}}}),this.on("disconnect",()=>U1(`disconnect (${t})`))}}class lTe extends Hz{constructor(t,n,{signaling:o=["wss://y-webrtc-eu.fly.dev"],password:r=null,awareness:s=new tTe(n),maxConns:i=20+Na(wRe()*15),filterBcConns:c=!0,peerOpts:l={}}={}){super(),this.roomName=t,this.doc=n,this.filterBcConns=c,this.awareness=s,this.shouldConnect=!1,this.signalingUrls=o,this.signalingConns=[],this.maxConns=i,this.peerOpts=l,this.key=r?oTe(r,t):DB(null),this.room=null,this.key.then(u=>{this.room=cTe(n,this,t,u),this.shouldConnect?this.room.connect():this.room.disconnect()}),this.connect(),this.destroy=this.destroy.bind(this),n.on("destroy",this.destroy)}get connected(){return this.room!==null&&this.shouldConnect}connect(){this.shouldConnect=!0,this.signalingUrls.forEach(t=>{const n=Fo(Cg,t,()=>new Ooe(t));this.signalingConns.push(n),n.providers.add(this)}),this.room&&this.room.connect()}disconnect(){this.shouldConnect=!1,this.signalingConns.forEach(t=>{t.providers.delete(this),t.providers.size===0&&(t.destroy(),Cg.delete(t.url))}),this.room&&this.room.disconnect()}destroy(){this.doc.off("destroy",this.destroy),this.key.then(()=>{this.room.destroy(),qa.delete(this.roomName)}),super.destroy()}}function uTe(e,t){e.on("connect",()=>{U1(`connected (${t})`);const n=Array.from(qa.keys());e.send({type:"subscribe",topics:n}),qa.forEach(o=>$x(e,o,{type:"announce",from:o.peerId}))}),e.on("message",n=>{switch(n.type){case"publish":{const o=n.topic,r=qa.get(o);if(r===null||typeof o!="string"||r===void 0)return;const s=i=>{const c=r.webrtcConns,l=r.peerId;if(i===null||i.from===l||i.to!==void 0&&i.to!==l||r.bcConns.has(i.from))return;const u=c.has(i.from)?()=>{}:()=>r.provider.emit("peers",[{removed:[],added:[i.from],webrtcPeers:Array.from(r.webrtcConns.keys()),bcPeers:Array.from(r.bcConns)}]);switch(i.type){case"announce":c.sizenew Ov(e,!0,i.from,r)),u());break;case"signal":if(i.signal.type==="offer"){const d=c.get(i.from);if(d){const p=i.token,f=d.glareToken;if(f&&f>p){U1("offer rejected: ",i.from);return}d.glareToken=void 0}}if(i.signal.type==="answer"){U1("offer answered by: ",i.from);const d=c.get(i.from);d&&(d.glareToken=void 0)}i.to===l&&(Fo(c,i.from,()=>new Ov(e,!1,i.from,r)).peer.signal(i.signal),u());break}};r.key?typeof n.data=="string"&&hoe(VB(n.data),r.key).then(s):s(n.data)}}}),e.on("disconnect",()=>U1(`disconnect (${t})`))}function gV(e){if(e.shouldConnect&&e.ws===null){const t=Math.floor(1e5+Math.random()*9e5),n=e.url,o=new window.EventSource(wt(n,{subscriber_id:t,action:"gutenberg_signaling_server"}));let r=null;o.onmessage=l=>{e.lastMessageReceived=Date.now();const u=l.data;if(u){const d=JSON.parse(u);Array.isArray(d)&&d.forEach(s)}},e.ws=o,e.connecting=!0,e.connected=!1;const s=l=>{l&&l.type==="pong"&&(clearTimeout(r),r=setTimeout(c,Av/2)),e.emit("message",[l,e])},i=l=>{e.ws!==null&&(e.ws.close(),e.ws=null,e.connecting=!1,e.connected?(e.connected=!1,e.emit("disconnect",[{type:"disconnect",error:l},e])):e.unsuccessfulReconnects++),clearTimeout(r)},c=()=>{e.ws&&e.ws.readyState===window.EventSource.OPEN&&e.send({type:"ping"})};e.ws&&(e.ws.onclose=()=>{i(null)},e.ws.send=function(u){window.fetch(n,{body:new URLSearchParams({subscriber_id:t.toString(),action:"gutenberg_signaling_server",message:u}),method:"POST"}).catch(()=>{U1("Error sending to server with message: "+u)})}),o.onerror=()=>{},o.onopen=()=>{e.connected||o.readyState===window.EventSource.OPEN&&(e.lastMessageReceived=Date.now(),e.connecting=!1,e.connected=!0,e.unsuccessfulReconnects=0,e.emit("connect",[{type:"connect"},e]),r=setTimeout(c,Av/2))}}}const Av=3e4;class dTe extends Hz{constructor(t){super(),this.url=t,this.ws=null,this.binaryType=null,this.connected=!1,this.connecting=!1,this.unsuccessfulReconnects=0,this.lastMessageReceived=0,this.shouldConnect=!0,this._checkInterval=setInterval(()=>{this.connected&&Av{const n=Fo(Cg,t,t.startsWith("ws://")||t.startsWith("wss://")?()=>new Ooe(t):()=>new dTe(t));this.signalingConns.push(n),n.providers.add(this)}),this.room&&this.room.connect()}}function fTe({signaling:e,password:t}){return function(n,o,r){const s=`${o}-${n}`;return new pTe(s,r,{signaling:e,password:t}),Promise.resolve(()=>!0)}}const bTe=(e,t)=>{const n={},o={},r={};function s(u,d){n[u]=d}async function i(u,d,p){const f=new fh;r[u]=r[u]||{},r[u][d]=f;const b=()=>{const z=n[u].fromCRDTDoc(f);p(z)};f.on("update",b);const h=await e(d,u,f);t&&await t(d,u,f);const g=n[u].fetch;g&&g(d).then(z=>{f.transact(()=>{n[u].applyChangesToDoc(f,z)})}),o[u]=o[u]||{},o[u][d]=()=>{h(),f.off("update",b)}}async function c(u,d,p){const f=r[u][d];if(!f)throw"Error doc "+u+" "+d+" not found";f.transact(()=>{n[u].applyChangesToDoc(f,p)})}async function l(u,d){o?.[u]?.[d]&&o[u][d]()}return{register:s,bootstrap:i,update:c,discard:l}};let nq;function Rg(){return nq||(nq=bTe(PWe,fTe({signaling:[window?.wp?.ajax?.settings?.url],password:window?.__experimentalCollaborativeEditingSecret}))),nq}function hTe(e,t){return{type:"RECEIVE_USER_QUERY",users:Array.isArray(t)?t:[t],queryID:e}}function mTe(e){return{type:"RECEIVE_CURRENT_USER",currentUser:e}}function Aoe(e){return{type:"ADD_ENTITIES",entities:e}}function MTe(e,t,n,o,r=!1,s,i){e==="postType"&&(n=(Array.isArray(n)?n:[n]).map(l=>l.status==="auto-draft"?{...l,title:""}:l));let c;return o?c=wSe(n,o,s,i):c=jne(n,s,i),{...c,kind:e,name:t,invalidateCache:r}}function gTe(e){return{type:"RECEIVE_CURRENT_THEME",currentTheme:e}}function zTe(e){return{type:"RECEIVE_CURRENT_GLOBAL_STYLES_ID",id:e}}function OTe(e,t){return{type:"RECEIVE_THEME_GLOBAL_STYLES",stylesheet:e,globalStyles:t}}function ATe(e,t){return{type:"RECEIVE_THEME_GLOBAL_STYLE_VARIATIONS",stylesheet:e,variations:t}}function yTe(){return Re("wp.data.dispatch( 'core' ).receiveThemeSupports",{since:"5.9"}),{type:"DO_NOTHING"}}function vTe(e,t){return Re("wp.data.dispatch( 'core' ).receiveThemeGlobalStyleRevisions()",{since:"6.5.0",alternative:"wp.data.dispatch( 'core' ).receiveRevisions"}),{type:"RECEIVE_THEME_GLOBAL_STYLE_REVISIONS",currentId:e,revisions:t}}function xTe(e,t){return{type:"RECEIVE_EMBED_PREVIEW",url:e,preview:t}}const yoe=(e,t,n,o,{__unstableFetch:r=ct,throwOnError:s=!1}={})=>async({dispatch:i})=>{const l=(await i(Ya(e,t))).find(f=>f.kind===e&&f.name===t);let u,d=!1;if(!l)return;const p=await i.__unstableAcquireStoreLock(bo,["entities","records",e,t,n],{exclusive:!0});try{i({type:"DELETE_ENTITY_RECORD_START",kind:e,name:t,recordId:n});let f=!1;try{let b=`${l.baseURL}/${n}`;o&&(b=wt(b,o)),d=await r({path:b,method:"DELETE"}),await i(_Se(e,t,n,!0))}catch(b){f=!0,u=b}if(i({type:"DELETE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:n,error:u}),f&&s)throw u;return d}finally{i.__unstableReleaseStoreLock(p)}},_Te=(e,t,n,o,r={})=>({select:s,dispatch:i})=>{const c=s.getEntityConfig(e,t);if(!c)throw new Error(`The entity being edited (${e}, ${t}) does not have a loaded config.`);const{mergedEdits:l={}}=c,u=s.getRawEntityRecord(e,t,n),d=s.getEditedEntityRecord(e,t,n),p={kind:e,name:t,recordId:n,edits:Object.keys(o).reduce((f,b)=>{const h=u[b],g=d[b],z=l[b]?{...g,...o[b]}:o[b];return f[b]=J1(h,z)?void 0:z,f},{})};if(window.__experimentalEnableSync&&c.syncConfig){if(globalThis.IS_GUTENBERG_PLUGIN){const f=c.getSyncObjectId(n);Rg().update(c.syncObjectType+"--edit",f,p.edits)}}else r.undoIgnore||s.getUndoManager().addRecord([{id:{kind:e,name:t,recordId:n},changes:Object.keys(o).reduce((f,b)=>(f[b]={from:d[b],to:o[b]},f),{})}],r.isCached),i({type:"EDIT_ENTITY_RECORD",...p})},wTe=()=>({select:e,dispatch:t})=>{const n=e.getUndoManager().undo();n&&t({type:"UNDO",record:n})},kTe=()=>({select:e,dispatch:t})=>{const n=e.getUndoManager().redo();n&&t({type:"REDO",record:n})},qTe=()=>({select:e})=>{e.getUndoManager().addRecord()},voe=(e,t,n,{isAutosave:o=!1,__unstableFetch:r=ct,throwOnError:s=!1}={})=>async({select:i,resolveSelect:c,dispatch:l})=>{const d=(await l(Ya(e,t))).find(h=>h.kind===e&&h.name===t);if(!d)return;const p=d.key||Oo,f=n[p],b=await l.__unstableAcquireStoreLock(bo,["entities","records",e,t,f||Xc()],{exclusive:!0});try{for(const[y,x]of Object.entries(n))if(typeof x=="function"){const v=x(i.getEditedEntityRecord(e,t,f));l.editEntityRecord(e,t,f,{[y]:v},{undoIgnore:!0}),n[y]=v}l({type:"SAVE_ENTITY_RECORD_START",kind:e,name:t,recordId:f,isAutosave:o});let h,g,z=!1;try{const y=`${d.baseURL}${f?"/"+f:""}`,x=i.getRawEntityRecord(e,t,f);if(o){const v=i.getCurrentUser(),M=v?v.id:void 0,A=await c.getAutosave(x.type,x.id,M);let _={...x,...A,...n};if(_=Object.keys(_).reduce((w,k)=>(["title","excerpt","content","meta"].includes(k)&&(w[k]=_[k]),w),{status:_.status==="auto-draft"?"draft":void 0}),h=await r({path:`${y}/autosaves`,method:"POST",data:_}),x.id===h.id){let w={...x,..._,...h};w=Object.keys(w).reduce((k,q)=>(["title","excerpt","content"].includes(q)?k[q]=w[q]:q==="status"?k[q]=x.status==="auto-draft"&&w.status==="draft"?w.status:x.status:k[q]=x[q],k),{}),l.receiveEntityRecords(e,t,w,void 0,!0)}else l.receiveAutosaves(x.id,h)}else{let v=n;d.__unstablePrePersist&&(v={...v,...d.__unstablePrePersist(x,v)}),h=await r({path:y,method:f?"PUT":"POST",data:v}),l.receiveEntityRecords(e,t,h,void 0,!0,v)}}catch(y){z=!0,g=y}if(l({type:"SAVE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:f,error:g,isAutosave:o}),z&&s)throw g;return h}finally{l.__unstableReleaseStoreLock(b)}},STe=e=>async({dispatch:t})=>{const n=$Ce(),o={saveEntityRecord(i,c,l,u){return n.add(d=>t.saveEntityRecord(i,c,l,{...u,__unstableFetch:d}))},saveEditedEntityRecord(i,c,l,u){return n.add(d=>t.saveEditedEntityRecord(i,c,l,{...u,__unstableFetch:d}))},deleteEntityRecord(i,c,l,u,d){return n.add(p=>t.deleteEntityRecord(i,c,l,u,{...d,__unstableFetch:p}))}},r=e.map(i=>i(o)),[,...s]=await Promise.all([n.run(),...r]);return s},CTe=(e,t,n,o)=>async({select:r,dispatch:s})=>{if(!r.hasEditsForEntityRecord(e,t,n))return;const c=(await s(Ya(e,t))).find(p=>p.kind===e&&p.name===t);if(!c)return;const l=c.key||Oo,u=r.getEntityRecordNonTransientEdits(e,t,n),d={[l]:n,...u};return await s.saveEntityRecord(e,t,d,o)},RTe=(e,t,n,o,r)=>async({select:s,dispatch:i})=>{if(!s.hasEditsForEntityRecord(e,t,n))return;const c=s.getEntityRecordNonTransientEdits(e,t,n),l={};for(const f of o)Tx(l,f,vSe(c,f));const p=(await i(Ya(e,t))).find(f=>f.kind===e&&f.name===t)?.key||Oo;return n&&(l[p]=n),await i.saveEntityRecord(e,t,l,r)};function WTe(e){return Re("wp.data.dispatch( 'core' ).receiveUploadPermissions",{since:"5.9",alternative:"receiveUserPermission"}),xoe("create/media",e)}function xoe(e,t){return{type:"RECEIVE_USER_PERMISSION",key:e,isAllowed:t}}function TTe(e){return{type:"RECEIVE_USER_PERMISSIONS",permissions:e}}function ETe(e,t){return{type:"RECEIVE_AUTOSAVES",postId:e,autosaves:Array.isArray(t)?t:[t]}}function BTe(e){return{type:"RECEIVE_NAVIGATION_FALLBACK_ID",fallbackId:e}}function NTe(e,t){return{type:"RECEIVE_DEFAULT_TEMPLATE",query:e,templateId:t}}const LTe=(e,t,n,o,r,s=!1,i)=>async({dispatch:c})=>{const u=(await c(Ya(e,t))).find(p=>p.kind===e&&p.name===t),d=u&&u?.revisionKey?u.revisionKey:Oo;c({type:"RECEIVE_ITEM_REVISIONS",key:d,items:Array.isArray(o)?o:[o],recordKey:n,meta:i,query:r,kind:e,name:t,invalidateCache:s})},jTe=Object.freeze(Object.defineProperty({__proto__:null,__experimentalBatch:STe,__experimentalReceiveCurrentGlobalStylesId:zTe,__experimentalReceiveThemeBaseGlobalStyles:OTe,__experimentalReceiveThemeGlobalStyleVariations:ATe,__experimentalSaveSpecifiedEntityEdits:RTe,__unstableCreateUndoLevel:qTe,addEntities:Aoe,deleteEntityRecord:yoe,editEntityRecord:_Te,receiveAutosaves:ETe,receiveCurrentTheme:gTe,receiveCurrentUser:mTe,receiveDefaultTemplateId:NTe,receiveEmbedPreview:xTe,receiveEntityRecords:MTe,receiveNavigationFallbackId:BTe,receiveRevisions:LTe,receiveThemeGlobalStyleRevisions:vTe,receiveThemeSupports:yTe,receiveUploadPermissions:WTe,receiveUserPermission:xoe,receiveUserPermissions:TTe,receiveUserQuery:hTe,redo:kTe,saveEditedEntityRecord:CTe,saveEntityRecord:voe,undo:wTe},Symbol.toStringTag,{value:"Module"})),Oo="id",PTe=["title","excerpt","content"],_oe=[{label:m("Base"),kind:"root",name:"__unstableBase",baseURL:"/",baseURLParams:{_fields:["description","gmt_offset","home","name","site_icon","site_icon_url","site_logo","timezone_string","url"].join(",")},plural:"__unstableBases",syncConfig:{fetch:async()=>ct({path:"/"}),applyChangesToDoc:(e,t)=>{const n=e.getMap("document");Object.entries(t).forEach(([o,r])=>{n.get(o)!==r&&n.set(o,r)})},fromCRDTDoc:e=>e.getMap("document").toJSON()},syncObjectType:"root/base",getSyncObjectId:()=>"index"},{label:m("Post Type"),name:"postType",kind:"root",key:"slug",baseURL:"/wp/v2/types",baseURLParams:{context:"edit"},plural:"postTypes",syncConfig:{fetch:async e=>ct({path:`/wp/v2/types/${e}?context=edit`}),applyChangesToDoc:(e,t)=>{const n=e.getMap("document");Object.entries(t).forEach(([o,r])=>{n.get(o)!==r&&n.set(o,r)})},fromCRDTDoc:e=>e.getMap("document").toJSON()},syncObjectType:"root/postType",getSyncObjectId:e=>e},{name:"media",kind:"root",baseURL:"/wp/v2/media",baseURLParams:{context:"edit"},plural:"mediaItems",label:m("Media"),rawAttributes:["caption","title","description"],supportsPagination:!0},{name:"taxonomy",kind:"root",key:"slug",baseURL:"/wp/v2/taxonomies",baseURLParams:{context:"edit"},plural:"taxonomies",label:m("Taxonomy")},{name:"sidebar",kind:"root",baseURL:"/wp/v2/sidebars",baseURLParams:{context:"edit"},plural:"sidebars",transientEdits:{blocks:!0},label:m("Widget areas")},{name:"widget",kind:"root",baseURL:"/wp/v2/widgets",baseURLParams:{context:"edit"},plural:"widgets",transientEdits:{blocks:!0},label:m("Widgets")},{name:"widgetType",kind:"root",baseURL:"/wp/v2/widget-types",baseURLParams:{context:"edit"},plural:"widgetTypes",label:m("Widget types")},{label:m("User"),name:"user",kind:"root",baseURL:"/wp/v2/users",baseURLParams:{context:"edit"},plural:"users"},{name:"comment",kind:"root",baseURL:"/wp/v2/comments",baseURLParams:{context:"edit"},plural:"comments",label:m("Comment")},{name:"menu",kind:"root",baseURL:"/wp/v2/menus",baseURLParams:{context:"edit"},plural:"menus",label:m("Menu")},{name:"menuItem",kind:"root",baseURL:"/wp/v2/menu-items",baseURLParams:{context:"edit"},plural:"menuItems",label:m("Menu Item"),rawAttributes:["title"]},{name:"menuLocation",kind:"root",baseURL:"/wp/v2/menu-locations",baseURLParams:{context:"edit"},plural:"menuLocations",label:m("Menu Location"),key:"name"},{label:m("Global Styles"),name:"globalStyles",kind:"root",baseURL:"/wp/v2/global-styles",baseURLParams:{context:"edit"},plural:"globalStylesVariations",getTitle:e=>e?.title?.rendered||e?.title,getRevisionsUrl:(e,t)=>`/wp/v2/global-styles/${e}/revisions${t?"/"+t:""}`,supportsPagination:!0},{label:m("Themes"),name:"theme",kind:"root",baseURL:"/wp/v2/themes",baseURLParams:{context:"edit"},plural:"themes",key:"stylesheet"},{label:m("Plugins"),name:"plugin",kind:"root",baseURL:"/wp/v2/plugins",baseURLParams:{context:"edit"},plural:"plugins",key:"plugin"},{label:m("Status"),name:"status",kind:"root",baseURL:"/wp/v2/statuses",baseURLParams:{context:"edit"},plural:"statuses",key:"slug"}],woe=[{kind:"postType",loadEntities:FTe},{kind:"taxonomy",loadEntities:$Te},{kind:"root",name:"site",plural:"sites",loadEntities:VTe}],ITe=(e,t)=>{const n={};return e?.status==="auto-draft"&&(!t.status&&!n.status&&(n.status="draft"),(!t.title||t.title==="Auto Draft")&&!n.title&&(!e?.title||e?.title==="Auto Draft")&&(n.title="")),n},oq=new WeakMap;function DTe(e){const t={...e};for(const[n,o]of Object.entries(e))o instanceof un&&(t[n]=o.valueOf());return t}function koe(e){return e.map(t=>{const{innerBlocks:n,attributes:o,...r}=t;return{...r,attributes:DTe(o),innerBlocks:koe(n)}})}async function FTe(){const e=await ct({path:"/wp/v2/types?context=view"});return Object.entries(e??{}).map(([t,n])=>{var o;const r=["wp_template","wp_template_part"].includes(t),s=(o=n?.rest_namespace)!==null&&o!==void 0?o:"wp/v2";return{kind:"postType",baseURL:`/${s}/${n.rest_base}`,baseURLParams:{context:"edit"},name:t,label:n.name,transientEdits:{blocks:!0,selection:!0},mergedEdits:{meta:!0},rawAttributes:PTe,getTitle:i=>{var c;return i?.title?.rendered||i?.title||(r?v0e((c=i.slug)!==null&&c!==void 0?c:""):String(i.id))},__unstablePrePersist:r?void 0:ITe,__unstable_rest_base:n.rest_base,syncConfig:{fetch:async i=>ct({path:`/${s}/${n.rest_base}/${i}?context=edit`}),applyChangesToDoc:(i,c)=>{const l=i.getMap("document");Object.entries(c).forEach(([u,d])=>{typeof d!="function"&&(u==="blocks"&&(oq.has(d)||oq.set(d,koe(d)),d=oq.get(d)),l.get(u)!==d&&l.set(u,d))})},fromCRDTDoc:i=>i.getMap("document").toJSON()},syncObjectType:"postType/"+n.name,getSyncObjectId:i=>i,supportsPagination:!0,getRevisionsUrl:(i,c)=>`/${s}/${n.rest_base}/${i}/revisions${c?"/"+c:""}`,revisionKey:r?"wp_id":Oo}})}async function $Te(){const e=await ct({path:"/wp/v2/taxonomies?context=view"});return Object.entries(e??{}).map(([t,n])=>{var o;return{kind:"taxonomy",baseURL:`/${(o=n?.rest_namespace)!==null&&o!==void 0?o:"wp/v2"}/${n.rest_base}`,baseURLParams:{context:"edit"},name:t,label:n.name}})}async function VTe(){var e;const t={label:m("Site"),name:"site",kind:"root",baseURL:"/wp/v2/settings",syncConfig:{fetch:async()=>ct({path:"/wp/v2/settings"}),applyChangesToDoc:(r,s)=>{const i=r.getMap("document");Object.entries(s).forEach(([c,l])=>{i.get(c)!==l&&i.set(c,l)})},fromCRDTDoc:r=>r.getMap("document").toJSON()},syncObjectType:"root/site",getSyncObjectId:()=>"index",meta:{}},n=await ct({path:t.baseURL,method:"OPTIONS"}),o={};return Object.entries((e=n?.schema?.properties)!==null&&e!==void 0?e:{}).forEach(([r,s])=>{typeof s=="object"&&s.title&&(o[r]=s.title)}),[{...t,meta:{labels:o}}]}const S2=(e,t,n="get")=>{const o=e==="root"?"":ov(e),r=ov(t);return`${n}${o}${r}`};function zV(e){e.forEach(({syncObjectType:t,syncConfig:n})=>{Rg().register(t,n);const o={...n};delete o.fetch,Rg().register(t+"--edit",o)})}const Ya=(e,t)=>async({select:n,dispatch:o})=>{let r=n.getEntitiesConfig(e);const s=!!n.getEntityConfig(e,t);if(r?.length>0&&s)return window.__experimentalEnableSync&&globalThis.IS_GUTENBERG_PLUGIN&&zV(r),r;const i=woe.find(c=>!t||!c.name?c.kind===e:c.kind===e&&c.name===t);return i?(r=await i.loadEntities(),window.__experimentalEnableSync&&globalThis.IS_GUTENBERG_PLUGIN&&zV(r),o(Aoe(r)),r):[]};function qoe(e){const{query:t}=e;return t?uh(t).context:"default"}function HTe(e,t,n,o){var r;if(n===1&&o===-1)return t;const i=(n-1)*o,c=Math.max((r=e?.length)!==null&&r!==void 0?r:0,i+t.length),l=new Array(c);for(let u=0;u=i&&u!t.some(o=>Number.isInteger(o)?o===+n:o===n)))}function UTe(e={},t){switch(t.type){case"RECEIVE_ITEMS":{const n=qoe(t),o=t.key||Oo;return{...e,[n]:{...e[n],...t.items.reduce((r,s)=>{const i=s?.[o];return r[i]=OSe(e?.[n]?.[i],s),r},{})}}}case"REMOVE_ITEMS":return Object.fromEntries(Object.entries(e).map(([n,o])=>[n,Soe(o,t.itemIds)]))}return e}function XTe(e={},t){switch(t.type){case"RECEIVE_ITEMS":{const n=qoe(t),{query:o,key:r=Oo}=t,s=o?uh(o):{},i=!o||!Array.isArray(s.fields);return{...e,[n]:{...e[n],...t.items.reduce((c,l)=>{const u=l?.[r];return c[u]=e?.[n]?.[u]||i,c},{})}}}case"REMOVE_ITEMS":return Object.fromEntries(Object.entries(e).map(([n,o])=>[n,Soe(o,t.itemIds)]))}return e}const GTe=v0([Nne(e=>"query"in e),Lne(e=>e.query?{...e,...uh(e.query)}:e),N$("context"),N$("stableKey")])((e={},t)=>{const{type:n,page:o,perPage:r,key:s=Oo}=t;return n!=="RECEIVE_ITEMS"?e:{itemIds:HTe(e?.itemIds||[],t.items.map(i=>i?.[s]).filter(Boolean),o,r),meta:t.meta}}),KTe=(e={},t)=>{switch(t.type){case"RECEIVE_ITEMS":return GTe(e,t);case"REMOVE_ITEMS":const n=t.itemIds.reduce((o,r)=>(o[r]=!0,o),{});return Object.fromEntries(Object.entries(e).map(([o,r])=>[o,Object.fromEntries(Object.entries(r).map(([s,i])=>[s,{...i,itemIds:i.itemIds.filter(c=>!n[c])}]))]));default:return e}},OV=zo({items:UTe,itemIsComplete:XTe,queries:KTe});function YTe(e={},t){switch(t.type){case"RECEIVE_TERMS":return{...e,[t.taxonomy]:t.terms}}return e}function ZTe(e={byId:{},queries:{}},t){switch(t.type){case"RECEIVE_USER_QUERY":return{byId:{...e.byId,...t.users.reduce((n,o)=>({...n,[o.id]:o}),{})},queries:{...e.queries,[t.queryID]:t.users.map(n=>n.id)}}}return e}function QTe(e={},t){switch(t.type){case"RECEIVE_CURRENT_USER":return t.currentUser}return e}function JTe(e=[],t){switch(t.type){case"RECEIVE_TAXONOMIES":return t.taxonomies}return e}function eEe(e=void 0,t){switch(t.type){case"RECEIVE_CURRENT_THEME":return t.currentTheme.stylesheet}return e}function tEe(e=void 0,t){switch(t.type){case"RECEIVE_CURRENT_GLOBAL_STYLES_ID":return t.id}return e}function nEe(e={},t){switch(t.type){case"RECEIVE_THEME_GLOBAL_STYLES":return{...e,[t.stylesheet]:t.globalStyles}}return e}function oEe(e={},t){switch(t.type){case"RECEIVE_THEME_GLOBAL_STYLE_VARIATIONS":return{...e,[t.stylesheet]:t.variations}}return e}const rEe=e=>(t,n)=>{if(n.type==="UNDO"||n.type==="REDO"){const{record:o}=n;let r=t;return o.forEach(({id:{kind:s,name:i,recordId:c},changes:l})=>{r=e(r,{type:"EDIT_ENTITY_RECORD",kind:s,name:i,recordId:c,edits:Object.entries(l).reduce((u,[d,p])=>(u[d]=n.type==="UNDO"?p.from:p.to,u),{})})}),r}return e(t,n)};function sEe(e){return v0([rEe,Nne(t=>t.name&&t.kind&&t.name===e.name&&t.kind===e.kind),Lne(t=>({key:e.key||Oo,...t}))])(zo({queriedData:OV,edits:(t={},n)=>{var o;switch(n.type){case"RECEIVE_ITEMS":if(((o=n?.query?.context)!==null&&o!==void 0?o:"default")!=="default")return t;const s={...t};for(const c of n.items){const l=c?.[n.key],u=s[l];if(!u)continue;const d=Object.keys(u).reduce((p,f)=>{var b;return!J1(u[f],(b=c[f]?.raw)!==null&&b!==void 0?b:c[f])&&(!n.persistedEdits||!J1(u[f],n.persistedEdits[f]))&&(p[f]=u[f]),p},{});Object.keys(d).length?s[l]=d:delete s[l]}return s;case"EDIT_ENTITY_RECORD":const i={...t[n.recordId],...n.edits};return Object.keys(i).forEach(c=>{i[c]===void 0&&delete i[c]}),{...t,[n.recordId]:i}}return t},saving:(t={},n)=>{switch(n.type){case"SAVE_ENTITY_RECORD_START":case"SAVE_ENTITY_RECORD_FINISH":return{...t,[n.recordId]:{pending:n.type==="SAVE_ENTITY_RECORD_START",error:n.error,isAutosave:n.isAutosave}}}return t},deleting:(t={},n)=>{switch(n.type){case"DELETE_ENTITY_RECORD_START":case"DELETE_ENTITY_RECORD_FINISH":return{...t,[n.recordId]:{pending:n.type==="DELETE_ENTITY_RECORD_START",error:n.error}}}return t},revisions:(t={},n)=>{if(n.type==="RECEIVE_ITEM_REVISIONS"){const o=n.recordKey;delete n.recordKey;const r=OV(t[o],{...n,type:"RECEIVE_ITEMS"});return{...t,[o]:r}}return n.type==="REMOVE_ITEMS"?Object.fromEntries(Object.entries(t).filter(([o])=>!n.itemIds.some(r=>Number.isInteger(r)?r===+o:r===o))):t}}))}function iEe(e=_oe,t){switch(t.type){case"ADD_ENTITIES":return[...e,...t.entities]}return e}const aEe=(e={},t)=>{const n=iEe(e.config,t);let o=e.reducer;if(!o||n!==e.config){const s=n.reduce((i,c)=>{const{kind:l}=c;return i[l]||(i[l]=[]),i[l].push(c),i},{});o=zo(Object.entries(s).reduce((i,[c,l])=>{const u=zo(l.reduce((d,p)=>({...d,[p.name]:sEe(p)}),{}));return i[c]=u,i},{}))}const r=o(e.records,t);return r===e.records&&n===e.config&&o===e.reducer?e:{reducer:o,records:r,config:n}};function cEe(e=Z6e()){return e}function lEe(e={},t){switch(t.type){case"EDIT_ENTITY_RECORD":case"UNDO":case"REDO":return{}}return e}function uEe(e={},t){switch(t.type){case"RECEIVE_EMBED_PREVIEW":const{url:n,preview:o}=t;return{...e,[n]:o}}return e}function dEe(e={},t){switch(t.type){case"RECEIVE_USER_PERMISSION":return{...e,[t.key]:t.isAllowed};case"RECEIVE_USER_PERMISSIONS":return{...e,...t.permissions}}return e}function pEe(e={},t){switch(t.type){case"RECEIVE_AUTOSAVES":const{postId:n,autosaves:o}=t;return{...e,[n]:o}}return e}function fEe(e=[],t){switch(t.type){case"RECEIVE_BLOCK_PATTERNS":return t.patterns}return e}function bEe(e=[],t){switch(t.type){case"RECEIVE_BLOCK_PATTERN_CATEGORIES":return t.categories}return e}function hEe(e=[],t){switch(t.type){case"RECEIVE_USER_PATTERN_CATEGORIES":return t.patternCategories}return e}function mEe(e=null,t){switch(t.type){case"RECEIVE_NAVIGATION_FALLBACK_ID":return t.fallbackId}return e}function MEe(e={},t){switch(t.type){case"RECEIVE_THEME_GLOBAL_STYLE_REVISIONS":return{...e,[t.currentId]:t.revisions}}return e}function gEe(e={},t){switch(t.type){case"RECEIVE_DEFAULT_TEMPLATE":return{...e,[JSON.stringify(t.query)]:t.templateId}}return e}const zEe=zo({terms:YTe,users:ZTe,currentTheme:eEe,currentGlobalStylesId:tEe,currentUser:QTe,themeGlobalStyleVariations:oEe,themeBaseGlobalStyles:nEe,themeGlobalStyleRevisions:MEe,taxonomies:JTe,entities:aEe,editsReference:lEe,undoManager:cEe,embedPreviews:uEe,userPermissions:dEe,autosaves:pEe,blockPatterns:fEe,blockPatternCategories:bEe,userPatternCategories:hEe,navigationFallbackId:mEe,defaultTemplates:gEe}),OEe={},AEe=nt(e=>(t,n)=>e(bo).isResolving("getEmbedPreview",[n]));function yEe(e,t){Re("select( 'core' ).getAuthors()",{since:"5.9",alternative:"select( 'core' ).getUsers({ who: 'authors' })"});const n=wt("/wp/v2/users/?who=authors&per_page=100",t);return Coe(e,n)}function vEe(e){return e.currentUser}const Coe=at((e,t)=>{var n;return((n=e.users.queries[t])!==null&&n!==void 0?n:[]).map(r=>e.users.byId[r])},(e,t)=>[e.users.queries[t],e.users.byId]);function xEe(e,t){return Re("wp.data.select( 'core' ).getEntitiesByKind()",{since:"6.0",alternative:"wp.data.select( 'core' ).getEntitiesConfig()"}),Roe(e,t)}const Roe=at((e,t)=>e.entities.config.filter(n=>n.kind===t),(e,t)=>e.entities.config);function _Ee(e,t,n){return Re("wp.data.select( 'core' ).getEntity()",{since:"6.0",alternative:"wp.data.select( 'core' ).getEntityConfig()"}),hh(e,t,n)}function hh(e,t,n){return e.entities.config?.find(o=>o.kind===t&&o.name===n)}const ff=at((e,t,n,o,r)=>{var s;const i=e.entities.records?.[t]?.[n]?.queriedData;if(!i)return;const c=(s=r?.context)!==null&&s!==void 0?s:"default";if(r===void 0)return i.itemIsComplete[c]?.[o]?i.items[c][o]:void 0;const l=i.items[c]?.[o];if(l&&r._fields){var u;const d={},p=(u=Tu(r._fields))!==null&&u!==void 0?u:[];for(let f=0;f{h=h?.[g]}),Tx(d,b,h)}return d}return l},(e,t,n,o,r)=>{var s;const i=(s=r?.context)!==null&&s!==void 0?s:"default";return[e.entities.records?.[t]?.[n]?.queriedData?.items[i]?.[o],e.entities.records?.[t]?.[n]?.queriedData?.itemIsComplete[i]?.[o]]});ff.__unstableNormalizeArgs=e=>{const t=[...e],n=t?.[2];return t[2]=xSe(n)?Number(n):n,t};function wEe(e,t,n,o){return ff(e,t,n,o)}const Woe=at((e,t,n,o)=>{const r=ff(e,t,n,o);return r&&Object.keys(r).reduce((s,i)=>{if(ySe(hh(e,t,n),i)){var c;s[i]=(c=r[i]?.raw)!==null&&c!==void 0?c:r[i]}else s[i]=r[i];return s},{})},(e,t,n,o,r)=>{var s;const i=(s=r?.context)!==null&&s!==void 0?s:"default";return[e.entities.config,e.entities.records?.[t]?.[n]?.queriedData?.items[i]?.[o],e.entities.records?.[t]?.[n]?.queriedData?.itemIsComplete[i]?.[o]]});function kEe(e,t,n,o){return Array.isArray(Vx(e,t,n,o))}const Vx=(e,t,n,o)=>{const r=e.entities.records?.[t]?.[n]?.queriedData;return r?Pne(r,o):null},qEe=(e,t,n,o)=>{const r=e.entities.records?.[t]?.[n]?.queriedData;return r?Ine(r,o):null},SEe=(e,t,n,o)=>{const r=e.entities.records?.[t]?.[n]?.queriedData;if(!r)return null;if(o.per_page===-1)return 1;const s=Ine(r,o);return s&&(o.per_page?Math.ceil(s/o.per_page):SSe(r,o))},CEe=at(e=>{const{entities:{records:t}}=e,n=[];return Object.keys(t).forEach(o=>{Object.keys(t[o]).forEach(r=>{const s=Object.keys(t[o][r].edits).filter(i=>ff(e,o,r,i)&&Eoe(e,o,r,i));if(s.length){const i=hh(e,o,r);s.forEach(c=>{const l=Hx(e,o,r,c);n.push({key:l?l[i.key||Oo]:void 0,title:i?.getTitle?.(l)||"",name:r,kind:o})})}})}),n},e=>[e.entities.records]),REe=at(e=>{const{entities:{records:t}}=e,n=[];return Object.keys(t).forEach(o=>{Object.keys(t[o]).forEach(r=>{const s=Object.keys(t[o][r].saving).filter(i=>uN(e,o,r,i));if(s.length){const i=hh(e,o,r);s.forEach(c=>{const l=Hx(e,o,r,c);n.push({key:l?l[i.key||Oo]:void 0,title:i?.getTitle?.(l)||"",name:r,kind:o})})}})}),n},e=>[e.entities.records]);function lN(e,t,n,o){return e.entities.records?.[t]?.[n]?.edits?.[o]}const Toe=at((e,t,n,o)=>{const{transientEdits:r}=hh(e,t,n)||{},s=lN(e,t,n,o)||{};return r?Object.keys(s).reduce((i,c)=>(r[c]||(i[c]=s[c]),i),{}):s},(e,t,n,o)=>[e.entities.config,e.entities.records?.[t]?.[n]?.edits?.[o]]);function Eoe(e,t,n,o){return uN(e,t,n,o)||Object.keys(Toe(e,t,n,o)).length>0}const Hx=at((e,t,n,o)=>{const r=Woe(e,t,n,o),s=lN(e,t,n,o);return!r&&!s?!1:{...r,...s}},(e,t,n,o,r)=>{var s;const i=(s=r?.context)!==null&&s!==void 0?s:"default";return[e.entities.config,e.entities.records?.[t]?.[n]?.queriedData.items[i]?.[o],e.entities.records?.[t]?.[n]?.queriedData.itemIsComplete[i]?.[o],e.entities.records?.[t]?.[n]?.edits?.[o]]});function WEe(e,t,n,o){var r;const{pending:s,isAutosave:i}=(r=e.entities.records?.[t]?.[n]?.saving?.[o])!==null&&r!==void 0?r:{};return!!(s&&i)}function uN(e,t,n,o){var r;return(r=e.entities.records?.[t]?.[n]?.saving?.[o]?.pending)!==null&&r!==void 0?r:!1}function TEe(e,t,n,o){var r;return(r=e.entities.records?.[t]?.[n]?.deleting?.[o]?.pending)!==null&&r!==void 0?r:!1}function EEe(e,t,n,o){return e.entities.records?.[t]?.[n]?.saving?.[o]?.error}function BEe(e,t,n,o){return e.entities.records?.[t]?.[n]?.deleting?.[o]?.error}function NEe(e){Re("select( 'core' ).getUndoEdit()",{since:"6.3"})}function LEe(e){Re("select( 'core' ).getRedoEdit()",{since:"6.3"})}function jEe(e){return e.undoManager.hasUndo()}function PEe(e){return e.undoManager.hasRedo()}function Ux(e){return e.currentTheme?ff(e,"root","theme",e.currentTheme):null}function Boe(e){return e.currentGlobalStylesId}function IEe(e){var t;return(t=Ux(e)?.theme_supports)!==null&&t!==void 0?t:OEe}function DEe(e,t){return e.embedPreviews[t]}function FEe(e,t){const n=e.embedPreviews[t],o=''+t+"";return n?n.html===o:!1}function Noe(e,t,n,o){if(typeof n=="object"&&(!n.kind||!n.name))return!1;const s=Ex(t,n,o);return e.userPermissions[s]}function $Ee(e,t,n,o){return Re("wp.data.select( 'core' ).canUserEditEntityRecord()",{since:"6.7",alternative:"wp.data.select( 'core' ).canUser( 'update', { kind, name, id } )"}),Noe(e,"update",{kind:t,name:n,id:o})}function VEe(e,t,n){return e.autosaves[n]}function HEe(e,t,n,o){return o===void 0?void 0:e.autosaves[n]?.find(s=>s.author===o)}const UEe=nt(e=>(t,n,o)=>e(bo).hasFinishedResolution("getAutosaves",[n,o]));function XEe(e){return e.editsReference}function GEe(e,t){const n=Vx(e,"postType","wp_template",{"find-template":t});return n?.length?Hx(e,"postType","wp_template",n[0].id):null}function KEe(e){const t=Ux(e);return t?e.themeBaseGlobalStyles[t.stylesheet]:null}function YEe(e){const t=Ux(e);return t?e.themeGlobalStyleVariations[t.stylesheet]:null}function ZEe(e){return e.blockPatterns}function QEe(e){return e.blockPatternCategories}function JEe(e){return e.userPatternCategories}function eBe(e){Re("select( 'core' ).getCurrentThemeGlobalStylesRevisions()",{since:"6.5.0",alternative:"select( 'core' ).getRevisions( 'root', 'globalStyles', ${ recordKey } )"});const t=Boe(e);return t?e.themeGlobalStyleRevisions[t]:null}function tBe(e,t){return e.defaultTemplates[JSON.stringify(t)]}const nBe=(e,t,n,o,r)=>{const s=e.entities.records?.[t]?.[n]?.revisions?.[o];return s?Pne(s,r):null},oBe=at((e,t,n,o,r,s)=>{var i;const c=e.entities.records?.[t]?.[n]?.revisions?.[o];if(!c)return;const l=(i=s?.context)!==null&&i!==void 0?i:"default";if(s===void 0)return c.itemIsComplete[l]?.[r]?c.items[l][r]:void 0;const u=c.items[l]?.[r];if(u&&s._fields){var d;const p={},f=(d=Tu(s._fields))!==null&&d!==void 0?d:[];for(let b=0;b{g=g?.[z]}),Tx(p,h,g)}return p}return u},(e,t,n,o,r,s)=>{var i;const c=(i=s?.context)!==null&&i!==void 0?i:"default";return[e.entities.records?.[t]?.[n]?.revisions?.[o]?.items?.[c]?.[r],e.entities.records?.[t]?.[n]?.revisions?.[o]?.itemIsComplete?.[c]?.[r]]}),rBe=Object.freeze(Object.defineProperty({__proto__:null,__experimentalGetCurrentGlobalStylesId:Boe,__experimentalGetCurrentThemeBaseGlobalStyles:KEe,__experimentalGetCurrentThemeGlobalStylesVariations:YEe,__experimentalGetDirtyEntityRecords:CEe,__experimentalGetEntitiesBeingSaved:REe,__experimentalGetEntityRecordNoResolver:wEe,__experimentalGetTemplateForLink:GEe,canUser:Noe,canUserEditEntityRecord:$Ee,getAuthors:yEe,getAutosave:HEe,getAutosaves:VEe,getBlockPatternCategories:QEe,getBlockPatterns:ZEe,getCurrentTheme:Ux,getCurrentThemeGlobalStylesRevisions:eBe,getCurrentUser:vEe,getDefaultTemplateId:tBe,getEditedEntityRecord:Hx,getEmbedPreview:DEe,getEntitiesByKind:xEe,getEntitiesConfig:Roe,getEntity:_Ee,getEntityConfig:hh,getEntityRecord:ff,getEntityRecordEdits:lN,getEntityRecordNonTransientEdits:Toe,getEntityRecords:Vx,getEntityRecordsTotalItems:qEe,getEntityRecordsTotalPages:SEe,getLastEntityDeleteError:BEe,getLastEntitySaveError:EEe,getRawEntityRecord:Woe,getRedoEdit:LEe,getReferenceByDistinctEdits:XEe,getRevision:oBe,getRevisions:nBe,getThemeSupports:IEe,getUndoEdit:NEe,getUserPatternCategories:JEe,getUserQueryResults:Coe,hasEditsForEntityRecord:Eoe,hasEntityRecords:kEe,hasFetchedAutosaves:UEe,hasRedo:PEe,hasUndo:jEe,isAutosavingEntityRecord:WEe,isDeletingEntityRecord:TEe,isPreviewEmbedFallback:FEe,isRequestingEmbedPreview:AEe,isSavingEntityRecord:uN},Symbol.toStringTag,{value:"Module"}));function sBe(e){return e.undoManager}function iBe(e){return e.navigationFallbackId}const aBe=nt(e=>at((t,n)=>e(bo).getBlockPatterns().filter(({postTypes:o})=>!o||Array.isArray(o)&&o.includes(n)),()=>[e(bo).getBlockPatterns()])),Loe=nt(e=>at((t,n,o,r)=>(Array.isArray(r)?r:[r]).map(i=>({delete:e(bo).canUser("delete",{kind:n,name:o,id:i}),update:e(bo).canUser("update",{kind:n,name:o,id:i})})),t=>[t.userPermissions]));function cBe(e,t,n,o){return Loe(e,t,n,o)[0]}const lBe=Object.freeze(Object.defineProperty({__proto__:null,getBlockPatternsForPostType:aBe,getEntityRecordPermissions:cBe,getEntityRecordsPermissions:Loe,getNavigationFallbackId:iBe,getUndoManager:sBe},Symbol.toStringTag,{value:"Module"}));let If;function kt(e){if(typeof e!="string"||e.indexOf("&")===-1)return e;If===void 0&&(document.implementation&&document.implementation.createHTMLDocument?If=document.implementation.createHTMLDocument("").createElement("textarea"):If=document.createElement("textarea")),If.innerHTML=e;const t=If.textContent;return If.innerHTML="",t}async function uBe(e,t={},n={}){const o=t.isInitialSuggestions&&t.initialSuggestionsSearchOptions?{...t,...t.initialSuggestionsSearchOptions}:t,{type:r,subtype:s,page:i,perPage:c=t.isInitialSuggestions?3:20}=o,{disablePostFormats:l=!1}=n,u=[];(!r||r==="post")&&u.push(ct({path:wt("/wp/v2/search",{search:e,page:i,per_page:c,type:"post",subtype:s})}).then(f=>f.map(b=>({id:b.id,url:b.url,title:kt(b.title||"")||m("(no title)"),type:b.subtype||b.type,kind:"post-type"}))).catch(()=>[])),(!r||r==="term")&&u.push(ct({path:wt("/wp/v2/search",{search:e,page:i,per_page:c,type:"term",subtype:s})}).then(f=>f.map(b=>({id:b.id,url:b.url,title:kt(b.title||"")||m("(no title)"),type:b.subtype||b.type,kind:"taxonomy"}))).catch(()=>[])),!l&&(!r||r==="post-format")&&u.push(ct({path:wt("/wp/v2/search",{search:e,page:i,per_page:c,type:"post-format",subtype:s})}).then(f=>f.map(b=>({id:b.id,url:b.url,title:kt(b.title||"")||m("(no title)"),type:b.subtype||b.type,kind:"taxonomy"}))).catch(()=>[])),(!r||r==="attachment")&&u.push(ct({path:wt("/wp/v2/media",{search:e,page:i,per_page:c})}).then(f=>f.map(b=>({id:b.id,url:b.source_url,title:kt(b.title.rendered||"")||m("(no title)"),type:b.type,kind:"media"}))).catch(()=>[]));let p=(await Promise.all(u)).flat();return p=p.filter(f=>!!f.id),p=dBe(p,e),p=p.slice(0,c),p}function dBe(e,t){const n=AV(t),o={};for(const r of e)if(r.title){const s=AV(r.title),i=s.filter(c=>n.some(l=>c.includes(l)));o[r.id]=i.length/s.length}else o[r.id]=0;return e.sort((r,s)=>o[s.id]-o[r.id])}function AV(e){return e.toLowerCase().match(/[\p{L}\p{N}]+/gu)||[]}const rq=new Map,pBe=async(e,t={})=>{const n="/wp-block-editor/v1/url-details",o={url:sf(e)};if(!of(e))return Promise.reject(`${e} is not a valid URL.`);const r=zx(e);return!r||!pB(r)||!r.startsWith("http")||!/^https?:\/\/[^\/\s]/i.test(e)?Promise.reject(`${e} does not have a valid protocol. URLs must be "http" based`):rq.has(e)?rq.get(e):ct({path:wt(n,o),...t}).then(s=>(rq.set(e,s),s))};async function fBe(){const e=await ct({path:"/wp/v2/block-patterns/patterns"});return e?e.map(t=>Object.fromEntries(Object.entries(t).map(([n,o])=>[lB(n),o]))):[]}const bBe=e=>async({dispatch:t})=>{const n=wt("/wp/v2/users/?who=authors&per_page=100",e),o=await ct({path:n});t.receiveUserQuery(n,o)},hBe=()=>async({dispatch:e})=>{const t=await ct({path:"/wp/v2/users/me"});e.receiveCurrentUser(t)},joe=(e,t,n="",o)=>async({select:r,dispatch:s,registry:i})=>{const l=(await s(Ya(e,t))).find(d=>d.name===t&&d.kind===e);if(!l)return;const u=await s.__unstableAcquireStoreLock(bo,["entities","records",e,t,n],{exclusive:!1});try{if(window.__experimentalEnableSync&&l.syncConfig&&!o){if(globalThis.IS_GUTENBERG_PLUGIN){const d=l.getSyncObjectId(n);await Rg().bootstrap(l.syncObjectType,d,p=>{s.receiveEntityRecords(e,t,p,o)}),await Rg().bootstrap(l.syncObjectType+"--edit",d,p=>{s({type:"EDIT_ENTITY_RECORD",kind:e,name:t,recordId:n,edits:p,meta:{undo:void 0}})})}}else{o!==void 0&&o._fields&&(o={...o,_fields:[...new Set([...Tu(o._fields)||[],l.key||Oo])].join()});const d=wt(l.baseURL+(n?"/"+n:""),{...l.baseURLParams,...o});if(o!==void 0&&(o={...o,include:[n]},r.hasEntityRecords(e,t,o)))return;const p=await ct({path:d,parse:!1}),f=await p.json(),b=RB(p.headers?.get("allow")),h=[],g={};for(const z of WM)g[Ex(z,{kind:e,name:t,id:n})]=b[z],h.push([z,{kind:e,name:t,id:n}]);i.batch(()=>{s.receiveEntityRecords(e,t,f,o),s.receiveUserPermissions(g),s.finishResolutions("canUser",h)})}}finally{s.__unstableReleaseStoreLock(u)}},mBe=CB("getEntityRecord"),MBe=CB("getEntityRecord"),yv=(e,t,n={})=>async({dispatch:o,registry:r})=>{const i=(await o(Ya(e,t))).find(l=>l.name===t&&l.kind===e);if(!i)return;const c=await o.__unstableAcquireStoreLock(bo,["entities","records",e,t],{exclusive:!1});try{n._fields&&(n={...n,_fields:[...new Set([...Tu(n._fields)||[],i.key||Oo])].join()});const l=wt(i.baseURL,{...i.baseURLParams,...n});let u,d;if(i.supportsPagination&&n.per_page!==-1){const p=await ct({path:l,parse:!1});u=Object.values(await p.json()),d={totalItems:parseInt(p.headers.get("X-WP-Total")),totalPages:parseInt(p.headers.get("X-WP-TotalPages"))}}else u=Object.values(await ct({path:l})),d={totalItems:u.length,totalPages:1};n._fields&&(u=u.map(p=>(n._fields.split(",").forEach(f=>{p.hasOwnProperty(f)||(p[f]=void 0)}),p))),r.batch(()=>{if(o.receiveEntityRecords(e,t,u,n,!1,void 0,d),!n?._fields&&!n.context){const p=i.key||Oo,f=u.filter(z=>z?.[p]).map(z=>[e,t,z[p]]),b=u.filter(z=>z?.[p]).map(z=>({id:z[p],permissions:RB(z?._links?.self?.[0].targetHints.allow)})),h=[],g={};for(const z of b)for(const y of WM)h.push([y,{kind:e,name:t,id:z.id}]),g[Ex(y,{kind:e,name:t,id:z.id})]=z.permissions[y];o.receiveUserPermissions(g),o.finishResolutions("getEntityRecord",f),o.finishResolutions("canUser",h)}o.__unstableReleaseStoreLock(c)})}catch{o.__unstableReleaseStoreLock(c)}};yv.shouldInvalidate=(e,t,n)=>(e.type==="RECEIVE_ITEMS"||e.type==="REMOVE_ITEMS")&&e.invalidateCache&&t===e.kind&&n===e.name;const gBe=()=>async({dispatch:e,resolveSelect:t})=>{const n=await t.getEntityRecords("root","theme",{status:"active"});e.receiveCurrentTheme(n[0])},zBe=CB("getCurrentTheme"),OBe=e=>async({dispatch:t})=>{try{const n=await ct({path:wt("/oembed/1.0/proxy",{url:e})});t.receiveEmbedPreview(e,n)}catch{t.receiveEmbedPreview(e,!1)}},Poe=(e,t,n)=>async({dispatch:o,registry:r})=>{if(!WM.includes(e))throw new Error(`'${e}' is not a valid action.`);let s=null;if(typeof t=="object"){if(!t.kind||!t.name)throw new Error("The entity resource object is not valid.");const d=(await o(Ya(t.kind,t.name))).find(p=>p.name===t.name&&p.kind===t.kind);if(!d)return;s=d.baseURL+(t.id?"/"+t.id:"")}else s=`/wp/v2/${t}`+(n?"/"+n:"");const{hasStartedResolution:i}=r.select(bo);for(const u of WM){if(u===e)continue;if(i("canUser",[u,t,n]))return}let c;try{c=await ct({path:s,method:"OPTIONS",parse:!1})}catch{return}const l=RB(c.headers?.get("allow"));r.batch(()=>{for(const u of WM){const d=Ex(u,t,n);o.receiveUserPermission(d,l[u]),u!==e&&o.finishResolution("canUser",[u,t,n])}})},ABe=(e,t,n)=>async({dispatch:o})=>{await o(Poe("update",{kind:e,name:t,id:n}))},yBe=(e,t)=>async({dispatch:n,resolveSelect:o})=>{const{rest_base:r,rest_namespace:s="wp/v2"}=await o.getPostType(e),i=await ct({path:`/${s}/${r}/${t}/autosaves?context=edit`});i&&i.length&&n.receiveAutosaves(t,i)},vBe=(e,t)=>async({resolveSelect:n})=>{await n.getAutosaves(e,t)},Ioe=e=>async({dispatch:t,resolveSelect:n})=>{let o;try{o=await ct({url:wt(e,{"_wp-find-template":!0})}).then(({data:s})=>s)}catch{}if(!o)return;const r=await n.getEntityRecord("postType","wp_template",o.id);r&&t.receiveEntityRecords("postType","wp_template",[r],{"find-template":e})};Ioe.shouldInvalidate=e=>(e.type==="RECEIVE_ITEMS"||e.type==="REMOVE_ITEMS")&&e.invalidateCache&&e.kind==="postType"&&e.name==="wp_template";const xBe=()=>async({dispatch:e,resolveSelect:t})=>{const o=(await t.getEntityRecords("root","theme",{status:"active"}))?.[0]?._links?.["wp:user-global-styles"]?.[0]?.href;if(!o)return;const r=o.match(/\/(\d+)(?:\?|$)/),s=r?Number(r[1]):null;s&&e.__experimentalReceiveCurrentGlobalStylesId(s)},_Be=()=>async({resolveSelect:e,dispatch:t})=>{const n=await e.getCurrentTheme(),o=await ct({path:`/wp/v2/global-styles/themes/${n.stylesheet}`});t.__experimentalReceiveThemeBaseGlobalStyles(n.stylesheet,o)},wBe=()=>async({resolveSelect:e,dispatch:t})=>{const n=await e.getCurrentTheme(),o=await ct({path:`/wp/v2/global-styles/themes/${n.stylesheet}/variations`});t.__experimentalReceiveThemeGlobalStyleVariations(n.stylesheet,o)},Doe=()=>async({resolveSelect:e,dispatch:t})=>{const n=await e.__experimentalGetCurrentGlobalStylesId(),r=(n?await e.getEntityRecord("root","globalStyles",n):void 0)?._links?.["version-history"]?.[0]?.href;if(r){const i=(await ct({url:r}))?.map(c=>Object.fromEntries(Object.entries(c).map(([l,u])=>[lB(l),u])));t.receiveThemeGlobalStyleRevisions(n,i)}};Doe.shouldInvalidate=e=>e.type==="SAVE_ENTITY_RECORD_FINISH"&&e.kind==="root"&&!e.error&&e.name==="globalStyles";const kBe=()=>async({dispatch:e})=>{const t=await fBe();e({type:"RECEIVE_BLOCK_PATTERNS",patterns:t})},qBe=()=>async({dispatch:e})=>{const t=await ct({path:"/wp/v2/block-patterns/categories"});e({type:"RECEIVE_BLOCK_PATTERN_CATEGORIES",categories:t})},SBe=()=>async({dispatch:e,resolveSelect:t})=>{const o=(await t.getEntityRecords("taxonomy","wp_pattern_category",{per_page:-1,_fields:"id,name,description,slug",context:"view"}))?.map(r=>({...r,label:kt(r.name),name:r.slug}))||[];e({type:"RECEIVE_USER_PATTERN_CATEGORIES",patternCategories:o})},CBe=()=>async({dispatch:e,select:t})=>{const n=await ct({path:wt("/wp-block-editor/v1/navigation-fallback",{_embed:!0})}),o=n?._embedded?.self;if(e.receiveNavigationFallbackId(n?.id),o){const s=!t.getEntityRecord("postType","wp_navigation",n.id);e.receiveEntityRecords("postType","wp_navigation",o,void 0,s),e.finishResolution("getEntityRecord",["postType","wp_navigation",n.id])}},RBe=e=>async({dispatch:t})=>{const n=await ct({path:wt("/wp/v2/templates/lookup",e)});n?.id&&t.receiveDefaultTemplateId(e,n.id)},Foe=(e,t,n,o={})=>async({dispatch:r})=>{const i=(await r(Ya(e,t))).find(f=>f.name===t&&f.kind===e);if(!i)return;o._fields&&(o={...o,_fields:[...new Set([...Tu(o._fields)||[],i.revisionKey||Oo])].join()});const c=wt(i.getRevisionsUrl(n),o);let l,u;const d={},p=i.supportsPagination&&o.per_page!==-1;try{u=await ct({path:c,parse:!p})}catch{return}if(u&&(p?(l=Object.values(await u.json()),d.totalItems=parseInt(u.headers.get("X-WP-Total"))):l=Object.values(u),o._fields&&(l=l.map(f=>(o._fields.split(",").forEach(b=>{f.hasOwnProperty(b)||(f[b]=void 0)}),f))),r.receiveRevisions(e,t,n,l,o,!1,d),!o?._fields&&!o.context)){const f=i.key||Oo,b=l.filter(h=>h[f]).map(h=>[e,t,n,h[f]]);r.startResolutions("getRevision",b),r.finishResolutions("getRevision",b)}};Foe.shouldInvalidate=(e,t,n,o)=>e.type==="SAVE_ENTITY_RECORD_FINISH"&&n===e.name&&t===e.kind&&!e.error&&o===e.recordId;const WBe=(e,t,n,o,r)=>async({dispatch:s})=>{const c=(await s(Ya(e,t))).find(d=>d.name===t&&d.kind===e);if(!c)return;r!==void 0&&r._fields&&(r={...r,_fields:[...new Set([...Tu(r._fields)||[],c.revisionKey||Oo])].join()});const l=wt(c.getRevisionsUrl(n,o),r);let u;try{u=await ct({path:l})}catch{return}u&&s.receiveRevisions(e,t,n,u,r)},TBe=Object.freeze(Object.defineProperty({__proto__:null,__experimentalGetCurrentGlobalStylesId:xBe,__experimentalGetCurrentThemeBaseGlobalStyles:_Be,__experimentalGetCurrentThemeGlobalStylesVariations:wBe,__experimentalGetTemplateForLink:Ioe,canUser:Poe,canUserEditEntityRecord:ABe,getAuthors:bBe,getAutosave:vBe,getAutosaves:yBe,getBlockPatternCategories:qBe,getBlockPatterns:kBe,getCurrentTheme:gBe,getCurrentThemeGlobalStylesRevisions:Doe,getCurrentUser:hBe,getDefaultTemplateId:RBe,getEditedEntityRecord:MBe,getEmbedPreview:OBe,getEntityRecord:joe,getEntityRecords:yv,getNavigationFallbackId:CBe,getRawEntityRecord:mBe,getRevision:WBe,getRevisions:Foe,getThemeSupports:zBe,getUserPatternCategories:SBe},Symbol.toStringTag,{value:"Module"}));function yV(e,t){const n={...e};let o=n;for(const r of t)o.children={...o.children,[r]:{locks:[],children:{},...o.children[r]}},o=o.children[r];return n}function z8(e,t){let n=e;for(const o of t){const r=n.children[o];if(!r)return null;n=r}return n}function*EBe(e,t){let n=e;yield n;for(const o of t){const r=n.children[o];if(!r)break;yield r,n=r}}function*BBe(e){const t=Object.values(e.children);for(;t.length;){const n=t.pop();yield n,t.push(...Object.values(n.children))}}function vV({exclusive:e},t){return!!(e&&t.length||!e&&t.filter(n=>n.exclusive).length)}const NBe={requests:[],tree:{locks:[],children:{}}};function oA(e=NBe,t){switch(t.type){case"ENQUEUE_LOCK_REQUEST":{const{request:n}=t;return{...e,requests:[n,...e.requests]}}case"GRANT_LOCK_REQUEST":{const{lock:n,request:o}=t,{store:r,path:s}=o,i=[r,...s],c=yV(e.tree,i),l=z8(c,i);return l.locks=[...l.locks,n],{...e,requests:e.requests.filter(u=>u!==o),tree:c}}case"RELEASE_LOCK":{const{lock:n}=t,o=[n.store,...n.path],r=yV(e.tree,o),s=z8(r,o);return s.locks=s.locks.filter(i=>i!==n),{...e,tree:r}}}return e}function LBe(e){return e.requests}function jBe(e,t,n,{exclusive:o}){const r=[t,...n],s=e.tree;for(const c of EBe(s,r))if(vV({exclusive:o},c.locks))return!1;const i=z8(s,r);if(!i)return!0;for(const c of BBe(i))if(vV({exclusive:o},c.locks))return!1;return!0}function PBe(){let e=oA(void 0,{type:"@@INIT"});function t(){for(const r of LBe(e)){const{store:s,path:i,exclusive:c,notifyAcquired:l}=r;if(jBe(e,s,i,{exclusive:c})){const u={store:s,path:i,exclusive:c};e=oA(e,{type:"GRANT_LOCK_REQUEST",lock:u,request:r}),l(u)}}}function n(r,s,i){return new Promise(c=>{e=oA(e,{type:"ENQUEUE_LOCK_REQUEST",request:{store:r,path:s,exclusive:i,notifyAcquired:c}}),t()})}function o(r){e=oA(e,{type:"RELEASE_LOCK",lock:r}),t()}return{acquire:n,release:o}}function IBe(){const e=PBe();function t(o,r,{exclusive:s}){return()=>e.acquire(o,r,s)}function n(o){return()=>e.release(o)}return{__unstableAcquireStoreLock:t,__unstableReleaseStoreLock:n}}const{lock:ab0,unlock:$oe}=ar("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/core-data"),O8=O.createContext({});function A8({kind:e,type:t,id:n,children:o}){const r=O.useContext(O8),s=O.useMemo(()=>({...r,[e]:{...r?.[e],[t]:n}}),[r,e,t,n]);return a.jsx(O8.Provider,{value:s,children:o})}let Or=function(e){return e.Idle="IDLE",e.Resolving="RESOLVING",e.Error="ERROR",e.Success="SUCCESS",e}({});const DBe=["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"];function dN(e,t){return D((n,o)=>e(s=>FBe(n(s)),o),t)}const FBe=fs(e=>{const t={};for(const n in e)DBe.includes(n)||Object.defineProperty(t,n,{get:()=>(...o)=>{const r=e[n](...o),s=e.getResolutionState(n,o)?.status;let i;switch(s){case"resolving":i=Or.Resolving;break;case"finished":i=Or.Success;break;case"error":i=Or.Error;break;case void 0:i=Or.Idle;break}return{data:r,status:i,isResolving:i===Or.Resolving,hasStarted:i!==Or.Idle,hasResolved:i===Or.Success||i===Or.Error}}});return t}),xV={};function Voe(e,t,n,o={enabled:!0}){const{editEntityRecord:r,saveEditedEntityRecord:s}=ae(ce),i=O.useMemo(()=>({edit:(f,b={})=>r(e,t,n,f,b),save:(f={})=>s(e,t,n,{throwOnError:!0,...f})}),[r,e,t,n,s]),{editedRecord:c,hasEdits:l,edits:u}=D(f=>o.enabled?{editedRecord:f(ce).getEditedEntityRecord(e,t,n),hasEdits:f(ce).hasEditsForEntityRecord(e,t,n),edits:f(ce).getEntityRecordNonTransientEdits(e,t,n)}:{editedRecord:xV,hasEdits:!1,edits:xV},[e,t,n,o.enabled]),{data:d,...p}=dN(f=>o.enabled?f(ce).getEntityRecord(e,t,n):{data:null},[e,t,n,o.enabled]);return{record:d,editedRecord:c,hasEdits:l,edits:u,...p,...i}}const $Be=[];function Gb(e,t,n={},o={enabled:!0}){const r=wt("",n),{data:s,...i}=dN(u=>o.enabled?u(ce).getEntityRecords(e,t,n):{data:$Be},[e,t,r,o.enabled]),{totalItems:c,totalPages:l}=D(u=>o.enabled?{totalItems:u(ce).getEntityRecordsTotalItems(e,t,n),totalPages:u(ce).getEntityRecordsTotalPages(e,t,n)}:{totalItems:null,totalPages:null},[e,t,r,o.enabled]);return{records:s,totalItems:c,totalPages:l,...i}}const _V=new Set;function VBe(){return globalThis.SCRIPT_DEBUG===!0}function Xt(e){if(VBe()&&!_V.has(e)){console.warn(e);try{throw Error(e)}catch{}_V.add(e)}}function Hoe(e,t){const n=typeof e=="object",o=n?JSON.stringify(e):e;return n&&typeof t<"u"&&globalThis.SCRIPT_DEBUG===!0&&Xt("When 'resource' is an entity object, passing 'id' as a separate argument isn't supported."),dN(r=>{const s=n?!!e.id:!!t,{canUser:i}=r(ce),c=i("create",n?{kind:e.kind,name:e.name}:e);if(!s){const h=i("read",e),g=c.isResolving||h.isResolving,z=c.hasResolved&&h.hasResolved;let y=Or.Idle;return g?y=Or.Resolving:z&&(y=Or.Success),{status:y,isResolving:g,hasResolved:z,canCreate:c.hasResolved&&c.data,canRead:h.hasResolved&&h.data}}const l=i("read",e,t),u=i("update",e,t),d=i("delete",e,t),p=l.isResolving||c.isResolving||u.isResolving||d.isResolving,f=l.hasResolved&&c.hasResolved&&u.hasResolved&&d.hasResolved;let b=Or.Idle;return p?b=Or.Resolving:f&&(b=Or.Success),{status:b,isResolving:p,hasResolved:f,canRead:f&&l.data,canCreate:f&&c.data,canUpdate:f&&u.data,canDelete:f&&d.data}},[o,t])}var HBe={grad:.9,turn:360,rad:360/(2*Math.PI)},cc=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},D1=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Ps=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},Uoe=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},wV=function(e){return{r:Ps(e.r,0,255),g:Ps(e.g,0,255),b:Ps(e.b,0,255),a:Ps(e.a)}},sq=function(e){return{r:D1(e.r),g:D1(e.g),b:D1(e.b),a:D1(e.a,3)}},UBe=/^#([0-9a-f]{3,8})$/i,rA=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Xoe=function(e){var t=e.r,n=e.g,o=e.b,r=e.a,s=Math.max(t,n,o),i=s-Math.min(t,n,o),c=i?s===t?(n-o)/i:s===n?2+(o-t)/i:4+(t-n)/i:0;return{h:60*(c<0?c+6:c),s:s?i/s*100:0,v:s/255*100,a:r}},Goe=function(e){var t=e.h,n=e.s,o=e.v,r=e.a;t=t/360*6,n/=100,o/=100;var s=Math.floor(t),i=o*(1-n),c=o*(1-(t-s)*n),l=o*(1-(1-t+s)*n),u=s%6;return{r:255*[o,c,i,i,l,o][u],g:255*[l,o,o,c,i,i][u],b:255*[i,i,l,o,o,c][u],a:r}},kV=function(e){return{h:Uoe(e.h),s:Ps(e.s,0,100),l:Ps(e.l,0,100),a:Ps(e.a)}},qV=function(e){return{h:D1(e.h),s:D1(e.s),l:D1(e.l),a:D1(e.a,3)}},SV=function(e){return Goe((n=(t=e).s,{h:t.h,s:(n*=((o=t.l)<50?o:100-o)/100)>0?2*n/(o+n)*100:0,v:o+n,a:t.a}));var t,n,o},BM=function(e){return{h:(t=Xoe(e)).h,s:(r=(200-(n=t.s))*(o=t.v)/100)>0&&r<200?n*o/100/(r<=100?r:200-r)*100:0,l:r/2,a:t.a};var t,n,o,r},XBe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,GBe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,KBe=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,YBe=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y8={string:[[function(e){var t=UBe.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?D1(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?D1(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=KBe.exec(e)||YBe.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:wV({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=XBe.exec(e)||GBe.exec(e);if(!t)return null;var n,o,r=kV({h:(n=t[1],o=t[2],o===void 0&&(o="deg"),Number(n)*(HBe[o]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return SV(r)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,o=e.b,r=e.a,s=r===void 0?1:r;return cc(t)&&cc(n)&&cc(o)?wV({r:Number(t),g:Number(n),b:Number(o),a:Number(s)}):null},"rgb"],[function(e){var t=e.h,n=e.s,o=e.l,r=e.a,s=r===void 0?1:r;if(!cc(t)||!cc(n)||!cc(o))return null;var i=kV({h:Number(t),s:Number(n),l:Number(o),a:Number(s)});return SV(i)},"hsl"],[function(e){var t=e.h,n=e.s,o=e.v,r=e.a,s=r===void 0?1:r;if(!cc(t)||!cc(n)||!cc(o))return null;var i=function(c){return{h:Uoe(c.h),s:Ps(c.s,0,100),v:Ps(c.v,0,100),a:Ps(c.a)}}({h:Number(t),s:Number(n),v:Number(o),a:Number(s)});return Goe(i)},"hsv"]]},CV=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=sq(this.rgba),n=t.r,o=t.g,r=t.b,i=(s=t.a)<1?rA(D1(255*s)):"","#"+rA(n)+rA(o)+rA(r)+i;var t,n,o,r,s,i},e.prototype.toRgb=function(){return sq(this.rgba)},e.prototype.toRgbString=function(){return t=sq(this.rgba),n=t.r,o=t.g,r=t.b,(s=t.a)<1?"rgba("+n+", "+o+", "+r+", "+s+")":"rgb("+n+", "+o+", "+r+")";var t,n,o,r,s},e.prototype.toHsl=function(){return qV(BM(this.rgba))},e.prototype.toHslString=function(){return t=qV(BM(this.rgba)),n=t.h,o=t.s,r=t.l,(s=t.a)<1?"hsla("+n+", "+o+"%, "+r+"%, "+s+")":"hsl("+n+", "+o+"%, "+r+"%)";var t,n,o,r,s},e.prototype.toHsv=function(){return t=Xoe(this.rgba),{h:D1(t.h),s:D1(t.s),v:D1(t.v),a:D1(t.a,3)};var t},e.prototype.invert=function(){return Tt({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),Tt(iq(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),Tt(iq(this.rgba,-t))},e.prototype.grayscale=function(){return Tt(iq(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),Tt(RV(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),Tt(RV(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?Tt({r:(n=this.rgba).r,g:n.g,b:n.b,a:t}):D1(this.rgba.a,3);var n},e.prototype.hue=function(t){var n=BM(this.rgba);return typeof t=="number"?Tt({h:t,s:n.s,l:n.l,a:n.a}):D1(n.h)},e.prototype.isEqual=function(t){return this.toHex()===Tt(t).toHex()},e}(),Tt=function(e){return e instanceof v8?e:new v8(e)},WV=[],bs=function(e){e.forEach(function(t){WV.indexOf(t)<0&&(t(v8,y8),WV.push(t))})};function hs(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},o={};for(var r in n)o[n[r]]=r;var s={};e.prototype.toName=function(i){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var c,l,u=o[this.toHex()];if(u)return u;if(i?.closest){var d=this.toRgb(),p=1/0,f="black";if(!s.length)for(var b in n)s[b]=new e(n[b]).toRgb();for(var h in n){var g=(c=d,l=s[h],Math.pow(c.r-l.r,2)+Math.pow(c.g-l.g,2)+Math.pow(c.b-l.b,2));gl?(c+.05)/(l+.05):(l+.05)/(c+.05),(o=2)===void 0&&(o=0),r===void 0&&(r=Math.pow(10,o)),Math.floor(r*n)/r+0},e.prototype.isReadable=function(t,n){return t===void 0&&(t="#FFF"),n===void 0&&(n={}),this.contrast(t)>=(c=(i=(o=n).size)===void 0?"normal":i,(s=(r=o.level)===void 0?"AA":r)==="AAA"&&c==="normal"?7:s==="AA"&&c==="large"?3:4.5);var o,r,s,i,c}}const Koe="block-default",x8=["attributes","supports","save","migrate","isEligible","apiVersion"],jd={"--wp--style--color--link":{value:["color","link"],support:["color","link"]},aspectRatio:{value:["dimensions","aspectRatio"],support:["dimensions","aspectRatio"],useEngine:!0},background:{value:["color","gradient"],support:["color","gradients"],useEngine:!0},backgroundColor:{value:["color","background"],support:["color","background"],requiresOptOut:!0,useEngine:!0},backgroundImage:{value:["background","backgroundImage"],support:["background","backgroundImage"],useEngine:!0},backgroundRepeat:{value:["background","backgroundRepeat"],support:["background","backgroundRepeat"],useEngine:!0},backgroundSize:{value:["background","backgroundSize"],support:["background","backgroundSize"],useEngine:!0},backgroundPosition:{value:["background","backgroundPosition"],support:["background","backgroundPosition"],useEngine:!0},borderColor:{value:["border","color"],support:["__experimentalBorder","color"],useEngine:!0},borderRadius:{value:["border","radius"],support:["__experimentalBorder","radius"],properties:{borderTopLeftRadius:"topLeft",borderTopRightRadius:"topRight",borderBottomLeftRadius:"bottomLeft",borderBottomRightRadius:"bottomRight"},useEngine:!0},borderStyle:{value:["border","style"],support:["__experimentalBorder","style"],useEngine:!0},borderWidth:{value:["border","width"],support:["__experimentalBorder","width"],useEngine:!0},borderTopColor:{value:["border","top","color"],support:["__experimentalBorder","color"],useEngine:!0},borderTopStyle:{value:["border","top","style"],support:["__experimentalBorder","style"],useEngine:!0},borderTopWidth:{value:["border","top","width"],support:["__experimentalBorder","width"],useEngine:!0},borderRightColor:{value:["border","right","color"],support:["__experimentalBorder","color"],useEngine:!0},borderRightStyle:{value:["border","right","style"],support:["__experimentalBorder","style"],useEngine:!0},borderRightWidth:{value:["border","right","width"],support:["__experimentalBorder","width"],useEngine:!0},borderBottomColor:{value:["border","bottom","color"],support:["__experimentalBorder","color"],useEngine:!0},borderBottomStyle:{value:["border","bottom","style"],support:["__experimentalBorder","style"],useEngine:!0},borderBottomWidth:{value:["border","bottom","width"],support:["__experimentalBorder","width"],useEngine:!0},borderLeftColor:{value:["border","left","color"],support:["__experimentalBorder","color"],useEngine:!0},borderLeftStyle:{value:["border","left","style"],support:["__experimentalBorder","style"],useEngine:!0},borderLeftWidth:{value:["border","left","width"],support:["__experimentalBorder","width"],useEngine:!0},color:{value:["color","text"],support:["color","text"],requiresOptOut:!0,useEngine:!0},columnCount:{value:["typography","textColumns"],support:["typography","textColumns"],useEngine:!0},filter:{value:["filter","duotone"],support:["filter","duotone"]},linkColor:{value:["elements","link","color","text"],support:["color","link"]},captionColor:{value:["elements","caption","color","text"],support:["color","caption"]},buttonColor:{value:["elements","button","color","text"],support:["color","button"]},buttonBackgroundColor:{value:["elements","button","color","background"],support:["color","button"]},headingColor:{value:["elements","heading","color","text"],support:["color","heading"]},headingBackgroundColor:{value:["elements","heading","color","background"],support:["color","heading"]},fontFamily:{value:["typography","fontFamily"],support:["typography","__experimentalFontFamily"],useEngine:!0},fontSize:{value:["typography","fontSize"],support:["typography","fontSize"],useEngine:!0},fontStyle:{value:["typography","fontStyle"],support:["typography","__experimentalFontStyle"],useEngine:!0},fontWeight:{value:["typography","fontWeight"],support:["typography","__experimentalFontWeight"],useEngine:!0},lineHeight:{value:["typography","lineHeight"],support:["typography","lineHeight"],useEngine:!0},margin:{value:["spacing","margin"],support:["spacing","margin"],properties:{marginTop:"top",marginRight:"right",marginBottom:"bottom",marginLeft:"left"},useEngine:!0},minHeight:{value:["dimensions","minHeight"],support:["dimensions","minHeight"],useEngine:!0},padding:{value:["spacing","padding"],support:["spacing","padding"],properties:{paddingTop:"top",paddingRight:"right",paddingBottom:"bottom",paddingLeft:"left"},useEngine:!0},textAlign:{value:["typography","textAlign"],support:["typography","textAlign"],useEngine:!1},textDecoration:{value:["typography","textDecoration"],support:["typography","__experimentalTextDecoration"],useEngine:!0},textTransform:{value:["typography","textTransform"],support:["typography","__experimentalTextTransform"],useEngine:!0},letterSpacing:{value:["typography","letterSpacing"],support:["typography","__experimentalLetterSpacing"],useEngine:!0},writingMode:{value:["typography","writingMode"],support:["typography","__experimentalWritingMode"],useEngine:!0},"--wp--style--root--padding":{value:["spacing","padding"],support:["spacing","padding"],properties:{"--wp--style--root--padding-top":"top","--wp--style--root--padding-right":"right","--wp--style--root--padding-bottom":"bottom","--wp--style--root--padding-left":"left"},rootOnly:!0}},ua={link:"a:where(:not(.wp-element-button))",heading:"h1, h2, h3, h4, h5, h6",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",button:".wp-element-button, .wp-block-button__link",caption:".wp-element-caption, .wp-block-audio figcaption, .wp-block-embed figcaption, .wp-block-gallery figcaption, .wp-block-image figcaption, .wp-block-table figcaption, .wp-block-video figcaption",cite:"cite"},QBe={"color.duotone":!0,"color.gradients":!0,"color.palette":!0,"dimensions.aspectRatios":!0,"typography.fontSizes":!0,"spacing.spacingSizes":!0},{lock:JBe,unlock:Nu}=ar("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/blocks"),TV={title:"block title",description:"block description",keywords:["block keyword"],styles:[{label:"block style label"}],variations:[{title:"block variation title",description:"block variation description",keywords:["block variation keyword"]}]};function vv(e){return e!==null&&typeof e=="object"}function eNe({textdomain:e,...t}){const n=["apiVersion","title","category","parent","ancestor","icon","description","keywords","attributes","providesContext","usesContext","selectors","supports","styles","example","variations","blockHooks","allowedBlocks"],o=Object.fromEntries(Object.entries(t).filter(([r])=>n.includes(r)));return e&&Object.keys(TV).forEach(r=>{o[r]&&(o[r]=_8(TV[r],o[r],e))}),o}function tNe(e,t){const n=vv(e)?e.name:e;if(typeof n!="string"){globalThis.SCRIPT_DEBUG===!0&&Xt("Block names must be strings.");return}if(!/^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$/.test(n)){globalThis.SCRIPT_DEBUG===!0&&Xt("Block names must contain a namespace prefix, include only lowercase alphanumeric characters or dashes, and start with a letter. Example: my-plugin/my-custom-block");return}if(V0($e).getBlockType(n)){globalThis.SCRIPT_DEBUG===!0&&Xt('Block "'+n+'" is already registered.');return}const{addBootstrappedBlockType:o,addUnprocessedBlockType:r}=Nu(tr($e));if(vv(e)){const s=eNe(e);o(n,s)}return r(n,t),V0($e).getBlockType(n)}function _8(e,t,n){return typeof e=="string"&&typeof t=="string"?Oe(t,e,n):Array.isArray(e)&&e.length&&Array.isArray(t)?t.map(o=>_8(e[0],o,n)):vv(e)&&Object.entries(e).length&&vv(t)?Object.keys(t).reduce((o,r)=>e[r]?(o[r]=_8(e[r],t[r],n),o):(o[r]=t[r],o),{}):t}function nNe(e){const t=V0($e).getBlockType(e);if(!t){globalThis.SCRIPT_DEBUG===!0&&Xt('Block "'+e+'" is not registered.');return}return tr($e).removeBlockTypes(e),t}function oNe(e){tr($e).setFreeformFallbackBlockName(e)}function Lu(){return V0($e).getFreeformFallbackBlockName()}function Yoe(){return V0($e).getGroupingBlockName()}function rNe(e){tr($e).setUnregisteredFallbackBlockName(e)}function Zz(){return V0($e).getUnregisteredFallbackBlockName()}function sNe(e){tr($e).setDefaultBlockName(e)}function iNe(e){tr($e).setGroupingBlockName(e)}function jn(){return V0($e).getDefaultBlockName()}function Dt(e){return V0($e)?.getBlockType(e)}function nr(){return V0($e).getBlockTypes()}function Zt(e,t,n){return V0($e).getBlockSupport(e,t,n)}function st(e,t,n){return V0($e).hasBlockSupport(e,t,n)}function dd(e){return e?.name==="core/block"}function mh(e){return e?.name==="core/template-part"}const Xx=(e,t)=>V0($e).getBlockVariations(e,t),aNe=e=>{const{name:t,label:n,usesContext:o,getValues:r,setValues:s,canUserEditValue:i,getFieldsList:c}=e,l=Nu(V0($e)).getBlockBindingsSource(t);if(l?.getValues){globalThis.SCRIPT_DEBUG===!0&&Xt('Block bindings source "'+t+'" is already registered.');return}if(!t){globalThis.SCRIPT_DEBUG===!0&&Xt("Block bindings source must contain a name.");return}if(typeof t!="string"){globalThis.SCRIPT_DEBUG===!0&&Xt("Block bindings source name must be a string.");return}if(/[A-Z]+/.test(t)){globalThis.SCRIPT_DEBUG===!0&&Xt("Block bindings source name must not contain uppercase characters.");return}if(!/^[a-z0-9/-]+$/.test(t)){globalThis.SCRIPT_DEBUG===!0&&Xt("Block bindings source name must contain only valid characters: lowercase characters, hyphens, or digits. Example: my-plugin/my-custom-source.");return}if(!/^[a-z0-9-]+\/[a-z0-9-]+$/.test(t)){globalThis.SCRIPT_DEBUG===!0&&Xt("Block bindings source name must contain a namespace and valid characters. Example: my-plugin/my-custom-source.");return}if(n&&l?.label){globalThis.SCRIPT_DEBUG===!0&&Xt('Block bindings "'+t+'" source label is already defined in the server.');return}if(!n&&!l?.label){globalThis.SCRIPT_DEBUG===!0&&Xt("Block bindings source must contain a label.");return}if(n&&typeof n!="string"){globalThis.SCRIPT_DEBUG===!0&&Xt("Block bindings source label must be a string.");return}if(o&&!Array.isArray(o)){globalThis.SCRIPT_DEBUG===!0&&Xt("Block bindings source usesContext must be an array.");return}if(r&&typeof r!="function"){globalThis.SCRIPT_DEBUG===!0&&Xt("Block bindings source getValues must be a function.");return}if(s&&typeof s!="function"){globalThis.SCRIPT_DEBUG===!0&&Xt("Block bindings source setValues must be a function.");return}if(i&&typeof i!="function"){globalThis.SCRIPT_DEBUG===!0&&Xt("Block bindings source canUserEditValue must be a function.");return}if(c&&typeof c!="function"){globalThis.SCRIPT_DEBUG===!0&&Xt("Block bindings source getFieldsList must be a function.");return}return Nu(tr($e)).addBlockBindingsSource(e)};function cNe(e){if(!Zoe(e)){globalThis.SCRIPT_DEBUG===!0&&Xt('Block bindings source "'+e+'" is not registered.');return}Nu(tr($e)).removeBlockBindingsSource(e)}function Zoe(e){return Nu(V0($e)).getBlockBindingsSource(e)}function lNe(){return Nu(V0($e)).getAllBlockBindingsSources()}bs([hs,bf]);const EV=["#191e23","#f8f9f9"];function Kb(e){var t;return Object.entries((t=Dt(e.name)?.attributes)!==null&&t!==void 0?t:{}).every(([n,o])=>{const r=e.attributes[n];return o.hasOwnProperty("default")?r===o.default:o.type==="rich-text"?!r?.length:r===void 0})}function Yc(e){return e.name===jn()&&Kb(e)}function Qoe(e){return!!e&&(typeof e=="string"||O.isValidElement(e)||typeof e=="function"||e instanceof O.Component)}function uNe(e){if(e=e||Koe,Qoe(e))return{src:e};if("background"in e){const t=Tt(e.background),n=r=>t.contrast(r),o=Math.max(...EV.map(n));return{...e,foreground:e.foreground?e.foreground:EV.find(r=>n(r)===o),shadowColor:t.alpha(.3).toRgbString()}}return e}function Qz(e){return typeof e=="string"?Dt(e):e}function pN(e,t,n="visual"){const{__experimentalLabel:o,title:r}=e,s=o&&o(t,{context:n});return s?s.toPlainText?s.toPlainText():Rr(s):r}function dNe(e,t,n,o="vertical"){const r=e?.title,s=e?pN(e,t,"accessibility"):"",i=n!==void 0,c=s&&s!==r;return i&&o==="vertical"?c?le(m("%1$s Block. Row %2$d. %3$s"),r,n,s):le(m("%1$s Block. Row %2$d"),r,n):i&&o==="horizontal"?c?le(m("%1$s Block. Column %2$d. %3$s"),r,n,s):le(m("%1$s Block. Column %2$d"),r,n):c?le(m("%1$s Block. %2$s"),r,s):le(m("%s Block"),r)}function Joe(e){if(e.default!==void 0)return e.default;if(e.type==="rich-text")return new un}function fN(e,t){const n=Dt(e);if(n===void 0)throw new Error(`Block type '${e}' is not registered.`);return Object.entries(n.attributes).reduce((o,[r,s])=>{const i=t[r];if(i!==void 0)s.type==="rich-text"?i instanceof un?o[r]=i:typeof i=="string"&&(o[r]=un.fromHTMLString(i)):s.type==="string"&&i instanceof un?o[r]=i.toHTMLString():o[r]=i;else{const c=Joe(s);c!==void 0&&(o[r]=c)}return["node","children"].indexOf(s.source)!==-1&&(typeof o[r]=="string"?o[r]=[o[r]]:Array.isArray(o[r])||(o[r]=[])),o},{})}function pNe(e,t){const n=Dt(e)?.attributes;return n?Object.keys(n).filter(r=>n[r]?.__experimentalRole===t):[]}function hf(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}const fNe=[{slug:"text",title:m("Text")},{slug:"media",title:m("Media")},{slug:"design",title:m("Design")},{slug:"widgets",title:m("Widgets")},{slug:"theme",title:m("Theme")},{slug:"embed",title:m("Embeds")},{slug:"reusable",title:m("Reusable blocks")}];function bN(e){return e.reduce((t,n)=>({...t,[n.name]:n}),{})}function xv(e){return e.reduce((t,n)=>(t.some(o=>o.name===n.name)||t.push(n),t),[])}function bNe(e={},t){switch(t.type){case"ADD_BOOTSTRAPPED_BLOCK_TYPE":const{name:n,blockType:o}=t,r=e[n];let s;return r?(r.blockHooks===void 0&&o.blockHooks&&(s={...r,...s,blockHooks:o.blockHooks}),r.allowedBlocks===void 0&&o.allowedBlocks&&(s={...r,...s,allowedBlocks:o.allowedBlocks})):(s=Object.fromEntries(Object.entries(o).filter(([,i])=>i!=null).map(([i,c])=>[lB(i),c])),s.name=n),s?{...e,[n]:s}:e;case"REMOVE_BLOCK_TYPES":return hf(e,t.names)}return e}function hNe(e={},t){switch(t.type){case"ADD_UNPROCESSED_BLOCK_TYPE":return{...e,[t.name]:t.blockType};case"REMOVE_BLOCK_TYPES":return hf(e,t.names)}return e}function mNe(e={},t){switch(t.type){case"ADD_BLOCK_TYPES":return{...e,...bN(t.blockTypes)};case"REMOVE_BLOCK_TYPES":return hf(e,t.names)}return e}function MNe(e={},t){var n;switch(t.type){case"ADD_BLOCK_TYPES":return{...e,...Object.fromEntries(Object.entries(bN(t.blockTypes)).map(([r,s])=>{var i,c;return[r,xv([...((i=s.styles)!==null&&i!==void 0?i:[]).map(l=>({...l,source:"block"})),...((c=e[s.name])!==null&&c!==void 0?c:[]).filter(({source:l})=>l!=="block")])]}))};case"ADD_BLOCK_STYLES":const o={};return t.blockNames.forEach(r=>{var s;o[r]=xv([...(s=e[r])!==null&&s!==void 0?s:[],...t.styles])}),{...e,...o};case"REMOVE_BLOCK_STYLES":return{...e,[t.blockName]:((n=e[t.blockName])!==null&&n!==void 0?n:[]).filter(r=>t.styleNames.indexOf(r.name)===-1)}}return e}function gNe(e={},t){var n,o;switch(t.type){case"ADD_BLOCK_TYPES":return{...e,...Object.fromEntries(Object.entries(bN(t.blockTypes)).map(([r,s])=>{var i,c;return[r,xv([...((i=s.variations)!==null&&i!==void 0?i:[]).map(l=>({...l,source:"block"})),...((c=e[s.name])!==null&&c!==void 0?c:[]).filter(({source:l})=>l!=="block")])]}))};case"ADD_BLOCK_VARIATIONS":return{...e,[t.blockName]:xv([...(n=e[t.blockName])!==null&&n!==void 0?n:[],...t.variations])};case"REMOVE_BLOCK_VARIATIONS":return{...e,[t.blockName]:((o=e[t.blockName])!==null&&o!==void 0?o:[]).filter(r=>t.variationNames.indexOf(r.name)===-1)}}return e}function Gx(e){return(t=null,n)=>{switch(n.type){case"REMOVE_BLOCK_TYPES":return n.names.indexOf(t)!==-1?null:t;case e:return n.name||null}return t}}const zNe=Gx("SET_DEFAULT_BLOCK_NAME"),ONe=Gx("SET_FREEFORM_FALLBACK_BLOCK_NAME"),ANe=Gx("SET_UNREGISTERED_FALLBACK_BLOCK_NAME"),yNe=Gx("SET_GROUPING_BLOCK_NAME");function vNe(e=fNe,t){switch(t.type){case"SET_CATEGORIES":const n=new Map;return(t.categories||[]).forEach(o=>{n.set(o.slug,o)}),[...n.values()];case"UPDATE_CATEGORY":{if(!t.category||!Object.keys(t.category).length)return e;if(e.find(({slug:r})=>r===t.slug))return e.map(r=>r.slug===t.slug?{...r,...t.category}:r)}}return e}function xNe(e={},t){switch(t.type){case"ADD_BLOCK_COLLECTION":return{...e,[t.namespace]:{title:t.title,icon:t.icon}};case"REMOVE_BLOCK_COLLECTION":return hf(e,t.namespace)}return e}function BV(e=[],t=[]){const n=Array.from(new Set(e.concat(t)));return n.length>0?n:void 0}function _Ne(e={},t){switch(t.type){case"ADD_BLOCK_BINDINGS_SOURCE":return{...e,[t.name]:{label:e[t.name]?.label||t.label,usesContext:BV(e[t.name]?.usesContext,t.usesContext),getValues:t.getValues,setValues:t.setValues,canUserEditValue:t.canUserEditValue,getFieldsList:t.getFieldsList}};case"ADD_BOOTSTRAPPED_BLOCK_BINDINGS_SOURCE":return{...e,[t.name]:{...e[t.name],label:t.label,usesContext:BV(e[t.name]?.usesContext,t.usesContext)}};case"REMOVE_BLOCK_BINDINGS_SOURCE":return hf(e,t.name)}return e}const wNe=zo({bootstrappedBlockTypes:bNe,unprocessedBlockTypes:hNe,blockTypes:mNe,blockStyles:MNe,blockVariations:gNe,defaultBlockName:zNe,freeformFallbackBlockName:ONe,unregisteredFallbackBlockName:ANe,groupingBlockName:yNe,categories:vNe,collections:xNe,blockBindingsSources:_Ne}),Wg=(e,t,n)=>{var o;const r=Array.isArray(t)?t:t.split(".");let s=e;return r.forEach(i=>{s=s?.[i]}),(o=s)!==null&&o!==void 0?o:n};function NV(e){return typeof e=="object"&&e.constructor===Object&&e!==null}function ere(e,t){return NV(e)&&NV(t)?Object.entries(t).every(([n,o])=>ere(e?.[n],o)):e===t}const tre=(e,t)=>typeof t=="string"?Jz(e,t):t,nre=at(e=>Object.values(e.blockTypes),e=>[e.blockTypes]);function Jz(e,t){return e.blockTypes[t]}function kNe(e,t){return e.blockStyles[t]}const hN=at((e,t,n)=>{const o=e.blockVariations[t];return!o||!n?o:o.filter(r=>(r.scope||["block","inserter"]).includes(n))},(e,t)=>[e.blockVariations[t]]);function qNe(e,t,n,o){const r=hN(e,t,o);if(!r)return r;const s=Jz(e,t),i=Object.keys(s?.attributes||{});let c,l=0;for(const u of r)if(Array.isArray(u.isActive)){const d=u.isActive.filter(b=>{const h=b.split(".")[0];return i.includes(h)}),p=d.length;if(p===0)continue;d.every(b=>{const h=Wg(u.attributes,b);if(h===void 0)return!1;let g=Wg(n,b);return g instanceof un&&(g=g.toHTMLString()),ere(g,h)})&&p>l&&(c=u,l=p)}else if(u.isActive?.(n,u.attributes))return c||u;return c}function SNe(e,t,n){const o=hN(e,t,n);return[...o].reverse().find(({isDefault:s})=>!!s)||o[0]}function CNe(e){return e.categories}function RNe(e){return e.collections}function WNe(e){return e.defaultBlockName}function TNe(e){return e.freeformFallbackBlockName}function ENe(e){return e.unregisteredFallbackBlockName}function BNe(e){return e.groupingBlockName}const mN=at((e,t)=>nre(e).filter(n=>n.parent?.includes(t)).map(({name:n})=>n),e=>[e.blockTypes]),ore=(e,t,n,o)=>{const r=tre(e,t);return r?.supports?Wg(r.supports,n,o):o};function rre(e,t,n,o){return!!ore(e,t,n,o)}function LV(e){return Xs(e??"").toLowerCase().trim()}function NNe(e,t,n=""){const o=tre(e,t),r=LV(n),s=i=>LV(i).includes(r);return s(o.title)||o.keywords?.some(s)||s(o.category)||typeof o.description=="string"&&s(o.description)}const LNe=(e,t)=>mN(e,t).length>0,jNe=(e,t)=>mN(e,t).some(n=>rre(e,n,"inserter",!0)),PNe=at((e,t)=>{const n=Jz(e,t);return n?Object.entries(n.attributes).some(([,{__experimentalRole:o}])=>o==="content"):!1},(e,t)=>[e.blockTypes[t]?.attributes]),INe=Object.freeze(Object.defineProperty({__proto__:null,__experimentalHasContentRoleAttribute:PNe,getActiveBlockVariation:qNe,getBlockStyles:kNe,getBlockSupport:ore,getBlockType:Jz,getBlockTypes:nre,getBlockVariations:hN,getCategories:CNe,getChildBlockNames:mN,getCollections:RNe,getDefaultBlockName:WNe,getDefaultBlockVariation:SNe,getFreeformFallbackBlockName:TNe,getGroupingBlockName:BNe,getUnregisteredFallbackBlockName:ENe,hasBlockSupport:rre,hasChildBlocks:LNe,hasChildBlocksWithInserterSupport:jNe,isMatchingSearchTerm:NNe},Symbol.toStringTag,{value:"Module"})),DNe=["background","backgroundColor","color","linkColor","captionColor","buttonColor","headingColor","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","padding","contentSize","wideSize","blockGap","textDecoration","textTransform","letterSpacing"];function jV(e,t,n){return e.filter(o=>!(o==="fontSize"&&n==="heading"||o==="textDecoration"&&!t&&n!=="link"||o==="textTransform"&&!t&&!(["heading","h1","h2","h3","h4","h5","h6"].includes(n)||n==="button"||n==="caption"||n==="text")||o==="letterSpacing"&&!t&&!(["heading","h1","h2","h3","h4","h5","h6"].includes(n)||n==="button"||n==="caption"||n==="text")||o==="textColumns"&&!t))}const FNe=at((e,t,n)=>{if(!t)return jV(DNe,t,n);const o=Jz(e,t);if(!o)return[];const r=[];return o?.supports?.spacing?.blockGap&&r.push("blockGap"),o?.supports?.shadow&&r.push("shadow"),Object.keys(jd).forEach(s=>{if(jd[s].support){if(jd[s].requiresOptOut&&jd[s].support[0]in o.supports&&Wg(o.supports,jd[s].support)!==!1){r.push(s);return}Wg(o.supports,jd[s].support,!1)&&r.push(s)}}),jV(r,t,n)},(e,t)=>[e.blockTypes[t]]);function $Ne(e,t){return e.bootstrappedBlockTypes[t]}function VNe(e){return e.unprocessedBlockTypes}function HNe(e){return e.blockBindingsSources}function UNe(e,t){return e.blockBindingsSources[t]}const XNe=Object.freeze(Object.defineProperty({__proto__:null,getAllBlockBindingsSources:HNe,getBlockBindingsSource:UNe,getBootstrappedBlockType:$Ne,getSupportedStyles:FNe,getUnprocessedBlockTypes:VNe},Symbol.toStringTag,{value:"Module"}));var sre={exports:{}},en={};/** * @license React * react-is.production.min.js * @@ -127,7 +127,7 @@ Content generated by \`save\` function: Content retrieved from post body: -%s`,r.name,r,s,e.originalContent),[i,o.getItems()]}function Ore(e,t){const n={...t};if(e==="core/cover-image"&&(e="core/cover"),(e==="core/text"||e==="core/cover-text")&&(e="core/paragraph"),e&&e.indexOf("core/social-link-")===0&&(n.service=e.substring(17),e="core/social-link"),e&&e.indexOf("core-embed/")===0){const o=e.substring(11),r={speaker:"speaker-deck",polldaddy:"crowdsignal"};n.providerNameSlug=o in r?r[o]:o,["amazon-kindle","wordpress"].includes(o)||(n.responsive=!0),e="core/embed"}if(e==="core/post-comment-author"&&(e="core/comment-author-name"),e==="core/post-comment-content"&&(e="core/comment-content"),e==="core/post-comment-date"&&(e="core/comment-date"),e==="core/comments-query-loop"){e="core/comments";const{className:o=""}=n;o.includes("wp-block-comments-query-loop")||(n.className=["wp-block-comments-query-loop",o].join(" "))}if(e==="core/post-comments"&&(e="core/comments",n.legacy=!0),t.layout?.type==="grid"&&typeof t.layout?.columnCount=="string"&&(n.layout={...n.layout,columnCount:parseInt(t.layout.columnCount,10)}),typeof t.style?.layout?.columnSpan=="string"){const o=parseInt(t.style.layout.columnSpan,10);n.style={...n.style,layout:{...n.style.layout,columnSpan:isNaN(o)?void 0:o}}}if(typeof t.style?.layout?.rowSpan=="string"){const o=parseInt(t.style.layout.rowSpan,10);n.style={...n.style,layout:{...n.style.layout,rowSpan:isNaN(o)?void 0:o}}}if(globalThis.IS_GUTENBERG_PLUGIN&&n.metadata?.bindings&&(e==="core/paragraph"||e==="core/heading"||e==="core/image"||e==="core/button")&&n.metadata.bindings.__default?.source!=="core/pattern-overrides"){const o=["content","url","title","id","alt","text","linkTarget"];let r=!1;o.forEach(s=>{n.metadata.bindings[s]?.source==="core/pattern-overrides"&&(r=!0,n.metadata={...n.metadata,bindings:{...n.metadata.bindings}},delete n.metadata.bindings[s])}),r&&(n.metadata.bindings.__default={source:"core/pattern-overrides"})}return[e,n]}function c7e(e,t){for(var n=t.split("."),o;o=n.shift();){if(!(o in e))return;e=e[o]}return e}var l7e=function(){var e;return function(){return e||(e=document.implementation.createHTMLDocument("")),e}}();function vN(e,t){if(t){if(typeof e=="string"){var n=l7e();n.body.innerHTML=e,e=n.body}if(typeof t=="function")return t(e);if(Object===t.constructor)return Object.keys(t).reduce(function(o,r){var s=t[r];return o[r]=vN(e,s),o},{})}}function xN(e,t){var n,o;return arguments.length===1?(n=e,o=void 0):(n=t,o=e),function(r){var s=r;if(o&&(s=r.querySelector(o)),s)return c7e(s,n)}}function u7e(e,t){var n,o;return arguments.length===1?(n=e,o=void 0):(n=t,o=e),function(r){var s=xN(o,"attributes")(r);if(s&&Object.prototype.hasOwnProperty.call(s,n))return s[n].value}}function d7e(e){return xN(e,"textContent")}function p7e(e,t){return function(n){var o=n.querySelectorAll(e);return[].map.call(o,function(r){return vN(r,t)})}}function f7e(e){return Re("wp.blocks.children.getChildrenArray",{since:"6.1",version:"6.3",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),e}function b7e(...e){Re("wp.blocks.children.concat",{since:"6.1",version:"6.3",alternative:"wp.richText.concat",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"});const t=[];for(let n=0;n{let n=t;return e&&(n=t.querySelector(e)),n?_N(n.childNodes):[]}}const q8={concat:b7e,getChildrenArray:f7e,fromDOM:_N,toHTML:h7e,matcher:Are};function m7e(e){const t={};for(let n=0;n{let n=t;e&&(n=t.querySelector(e));try{return yre(n)}catch{return null}}}function g7e(e,t){return n=>{let o=n;if(e&&(o=n.querySelector(e)),!o)return"";if(t){let r="";const s=o.children.length;for(let i=0;in=>{const o=e?n.querySelector(e):n;return o?un.fromHTMLElement(o,{preserveWhiteSpace:t}):un.empty()},O7e=e=>t=>e(t)!==void 0;function A7e(e,t){switch(t){case"rich-text":return e instanceof un;case"string":return typeof e=="string";case"boolean":return typeof e=="boolean";case"object":return!!e&&e.constructor===Object;case"null":return e===null;case"array":return Array.isArray(e);case"integer":case"number":return typeof e=="number"}return!0}function y7e(e,t){return t.some(n=>A7e(e,n))}function v7e(e,t,n,o,r){let s;switch(t.source){case void 0:s=o?o[e]:void 0;break;case"raw":s=r;break;case"attribute":case"property":case"html":case"text":case"rich-text":case"children":case"node":case"query":case"tag":s=wN(n,t);break}return(!x7e(s,t.type)||!_7e(s,t.enum))&&(s=void 0),s===void 0&&(s=Joe(t)),s}function x7e(e,t){return t===void 0||y7e(e,Array.isArray(t)?t:[t])}function _7e(e,t){return!Array.isArray(t)||t.includes(e)}const vre=ps(e=>{switch(e.source){case"attribute":{let n=u7e(e.selector,e.attribute);return e.type==="boolean"&&(n=O7e(n)),n}case"html":return g7e(e.selector,e.multiline);case"text":return d7e(e.selector);case"rich-text":return z7e(e.selector,e.__unstablePreserveWhiteSpace);case"children":return Are(e.selector);case"node":return M7e(e.selector);case"query":const t=Object.fromEntries(Object.entries(e.query).map(([n,o])=>[n,vre(o)]));return p7e(e.selector,t);case"tag":{const n=xN(e.selector,"nodeName");return o=>n(o)?.toLowerCase()}default:console.error(`Unknown source type "${e.source}"`)}});function xre(e){return vN(e,t=>t)}function wN(e,t){return vre(t)(xre(e))}function Zc(e,t,n={}){var o;const r=xre(t),s=Qz(e),i=Object.fromEntries(Object.entries((o=s.attributes)!==null&&o!==void 0?o:{}).map(([c,l])=>[c,v7e(c,l,r,n,t)]));return _n("blocks.getBlockAttributes",i,s,t,n)}const w7e={type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"};function UV(e){const t=wN(`
${e}
`,w7e);return t?t.trim().split(/\s+/):[]}function k7e(e,t,n){if(!st(t,"customClassName",!0))return e;const o={...e},{className:r,...s}=o,i=mf(t,s),c=UV(i),u=UV(n).filter(d=>!c.includes(d));return u.length?o.className=u.join(" "):i&&delete o.className,o}function kv(e,t){const n=k7e(e.attributes,t,e.originalContent);return{...e,attributes:n}}function q7e(){return!1}function S7e(e,t,n){const o=t.attrs,{deprecated:r}=n;if(!r||!r.length)return e;for(let s=0;s_re(d,t)).filter(d=>!!d),i=me(n.blockName,Zc(o,n.innerHTML,n.attrs),s);i.originalContent=n.innerHTML;const c=T7e(i,o),{validationIssues:l}=c,u=S7e(c,n,o);return u.isValid||(u.__unstableBlockSource=e),!c.isValid&&u.isValid&&!t?.__unstableSkipMigrationLogs?(console.groupCollapsed("Updated Block: %s",o.name),console.info(`Block successfully updated for \`%s\` (%o). +%s`,r.name,r,s,e.originalContent),[i,o.getItems()]}function Ore(e,t){const n={...t};if(e==="core/cover-image"&&(e="core/cover"),(e==="core/text"||e==="core/cover-text")&&(e="core/paragraph"),e&&e.indexOf("core/social-link-")===0&&(n.service=e.substring(17),e="core/social-link"),e&&e.indexOf("core-embed/")===0){const o=e.substring(11),r={speaker:"speaker-deck",polldaddy:"crowdsignal"};n.providerNameSlug=o in r?r[o]:o,["amazon-kindle","wordpress"].includes(o)||(n.responsive=!0),e="core/embed"}if(e==="core/post-comment-author"&&(e="core/comment-author-name"),e==="core/post-comment-content"&&(e="core/comment-content"),e==="core/post-comment-date"&&(e="core/comment-date"),e==="core/comments-query-loop"){e="core/comments";const{className:o=""}=n;o.includes("wp-block-comments-query-loop")||(n.className=["wp-block-comments-query-loop",o].join(" "))}if(e==="core/post-comments"&&(e="core/comments",n.legacy=!0),t.layout?.type==="grid"&&typeof t.layout?.columnCount=="string"&&(n.layout={...n.layout,columnCount:parseInt(t.layout.columnCount,10)}),typeof t.style?.layout?.columnSpan=="string"){const o=parseInt(t.style.layout.columnSpan,10);n.style={...n.style,layout:{...n.style.layout,columnSpan:isNaN(o)?void 0:o}}}if(typeof t.style?.layout?.rowSpan=="string"){const o=parseInt(t.style.layout.rowSpan,10);n.style={...n.style,layout:{...n.style.layout,rowSpan:isNaN(o)?void 0:o}}}if(globalThis.IS_GUTENBERG_PLUGIN&&n.metadata?.bindings&&(e==="core/paragraph"||e==="core/heading"||e==="core/image"||e==="core/button")&&n.metadata.bindings.__default?.source!=="core/pattern-overrides"){const o=["content","url","title","id","alt","text","linkTarget"];let r=!1;o.forEach(s=>{n.metadata.bindings[s]?.source==="core/pattern-overrides"&&(r=!0,n.metadata={...n.metadata,bindings:{...n.metadata.bindings}},delete n.metadata.bindings[s])}),r&&(n.metadata.bindings.__default={source:"core/pattern-overrides"})}return[e,n]}function c7e(e,t){for(var n=t.split("."),o;o=n.shift();){if(!(o in e))return;e=e[o]}return e}var l7e=function(){var e;return function(){return e||(e=document.implementation.createHTMLDocument("")),e}}();function vN(e,t){if(t){if(typeof e=="string"){var n=l7e();n.body.innerHTML=e,e=n.body}if(typeof t=="function")return t(e);if(Object===t.constructor)return Object.keys(t).reduce(function(o,r){var s=t[r];return o[r]=vN(e,s),o},{})}}function xN(e,t){var n,o;return arguments.length===1?(n=e,o=void 0):(n=t,o=e),function(r){var s=r;if(o&&(s=r.querySelector(o)),s)return c7e(s,n)}}function u7e(e,t){var n,o;return arguments.length===1?(n=e,o=void 0):(n=t,o=e),function(r){var s=xN(o,"attributes")(r);if(s&&Object.prototype.hasOwnProperty.call(s,n))return s[n].value}}function d7e(e){return xN(e,"textContent")}function p7e(e,t){return function(n){var o=n.querySelectorAll(e);return[].map.call(o,function(r){return vN(r,t)})}}function f7e(e){return Re("wp.blocks.children.getChildrenArray",{since:"6.1",version:"6.3",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),e}function b7e(...e){Re("wp.blocks.children.concat",{since:"6.1",version:"6.3",alternative:"wp.richText.concat",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"});const t=[];for(let n=0;n{let n=t;return e&&(n=t.querySelector(e)),n?_N(n.childNodes):[]}}const q8={concat:b7e,getChildrenArray:f7e,fromDOM:_N,toHTML:h7e,matcher:Are};function m7e(e){const t={};for(let n=0;n{let n=t;e&&(n=t.querySelector(e));try{return yre(n)}catch{return null}}}function g7e(e,t){return n=>{let o=n;if(e&&(o=n.querySelector(e)),!o)return"";if(t){let r="";const s=o.children.length;for(let i=0;in=>{const o=e?n.querySelector(e):n;return o?un.fromHTMLElement(o,{preserveWhiteSpace:t}):un.empty()},O7e=e=>t=>e(t)!==void 0;function A7e(e,t){switch(t){case"rich-text":return e instanceof un;case"string":return typeof e=="string";case"boolean":return typeof e=="boolean";case"object":return!!e&&e.constructor===Object;case"null":return e===null;case"array":return Array.isArray(e);case"integer":case"number":return typeof e=="number"}return!0}function y7e(e,t){return t.some(n=>A7e(e,n))}function v7e(e,t,n,o,r){let s;switch(t.source){case void 0:s=o?o[e]:void 0;break;case"raw":s=r;break;case"attribute":case"property":case"html":case"text":case"rich-text":case"children":case"node":case"query":case"tag":s=wN(n,t);break}return(!x7e(s,t.type)||!_7e(s,t.enum))&&(s=void 0),s===void 0&&(s=Joe(t)),s}function x7e(e,t){return t===void 0||y7e(e,Array.isArray(t)?t:[t])}function _7e(e,t){return!Array.isArray(t)||t.includes(e)}const vre=fs(e=>{switch(e.source){case"attribute":{let n=u7e(e.selector,e.attribute);return e.type==="boolean"&&(n=O7e(n)),n}case"html":return g7e(e.selector,e.multiline);case"text":return d7e(e.selector);case"rich-text":return z7e(e.selector,e.__unstablePreserveWhiteSpace);case"children":return Are(e.selector);case"node":return M7e(e.selector);case"query":const t=Object.fromEntries(Object.entries(e.query).map(([n,o])=>[n,vre(o)]));return p7e(e.selector,t);case"tag":{const n=xN(e.selector,"nodeName");return o=>n(o)?.toLowerCase()}default:console.error(`Unknown source type "${e.source}"`)}});function xre(e){return vN(e,t=>t)}function wN(e,t){return vre(t)(xre(e))}function Zc(e,t,n={}){var o;const r=xre(t),s=Qz(e),i=Object.fromEntries(Object.entries((o=s.attributes)!==null&&o!==void 0?o:{}).map(([c,l])=>[c,v7e(c,l,r,n,t)]));return _n("blocks.getBlockAttributes",i,s,t,n)}const w7e={type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"};function UV(e){const t=wN(`
${e}
`,w7e);return t?t.trim().split(/\s+/):[]}function k7e(e,t,n){if(!st(t,"customClassName",!0))return e;const o={...e},{className:r,...s}=o,i=mf(t,s),c=UV(i),u=UV(n).filter(d=>!c.includes(d));return u.length?o.className=u.join(" "):i&&delete o.className,o}function kv(e,t){const n=k7e(e.attributes,t,e.originalContent);return{...e,attributes:n}}function q7e(){return!1}function S7e(e,t,n){const o=t.attrs,{deprecated:r}=n;if(!r||!r.length)return e;for(let s=0;s_re(d,t)).filter(d=>!!d),i=me(n.blockName,Zc(o,n.innerHTML,n.attrs),s);i.originalContent=n.innerHTML;const c=T7e(i,o),{validationIssues:l}=c,u=S7e(c,n,o);return u.isValid||(u.__unstableBlockSource=e),!c.isValid&&u.isValid&&!t?.__unstableSkipMigrationLogs?(console.groupCollapsed("Updated Block: %s",o.name),console.info(`Block successfully updated for \`%s\` (%o). New content generated by \`save\` function: @@ -135,7 +135,7 @@ New content generated by \`save\` function: Content retrieved from post body: -%s`,o.name,o,mf(o,u.attributes),u.originalContent),console.groupEnd()):!c.isValid&&!u.isValid&&l.forEach(({log:d,args:p})=>d(...p)),u}function Yn(e,t){return fre(e).reduce((n,o)=>{const r=_re(o,t);return r&&n.push(r),n},[])}function wre(){return Ys("from").filter(({type:e})=>e==="raw").map(e=>e.isMatch?e:{...e,isMatch:t=>e.selector&&t.matches(e.selector)})}function kre(e,t){const n=document.implementation.createHTMLDocument("");return n.body.innerHTML=e,Array.from(n.body.children).flatMap(o=>{const r=Ia(wre(),({isMatch:c})=>c(o));if(!r)return w1.isNative?Yn(`${o.outerHTML}`):me("core/html",Zc("core/html",o.outerHTML));const{transform:s,blockName:i}=r;if(s){const c=s(o,t);return o.hasAttribute("class")&&(c.attributes.className=o.getAttribute("class")),c}return me(i,Zc(i,o.outerHTML))})}function i_(e,t={}){const n=document.implementation.createHTMLDocument(""),o=document.implementation.createHTMLDocument(""),r=n.body,s=o.body;for(r.innerHTML=e;r.firstChild;){const i=r.firstChild;i.nodeType===i.TEXT_NODE?iv(i)?r.removeChild(i):((!s.lastChild||s.lastChild.nodeName!=="P")&&s.appendChild(o.createElement("P")),s.lastChild.appendChild(i)):i.nodeType===i.ELEMENT_NODE?i.nodeName==="BR"?(i.nextSibling&&i.nextSibling.nodeName==="BR"&&(s.appendChild(o.createElement("P")),r.removeChild(i.nextSibling)),s.lastChild&&s.lastChild.nodeName==="P"&&s.lastChild.hasChildNodes()?s.lastChild.appendChild(i):r.removeChild(i)):i.nodeName==="P"?iv(i)&&!t.raw?r.removeChild(i):s.appendChild(i):$b(i)?((!s.lastChild||s.lastChild.nodeName!=="P")&&s.appendChild(o.createElement("P")),s.lastChild.appendChild(i)):s.appendChild(i):r.removeChild(i)}return s.innerHTML}function qre(e,t){if(e.nodeType!==e.COMMENT_NODE||e.nodeValue!=="nextpage"&&e.nodeValue.indexOf("more")!==0)return;const n=E7e(e,t);if(!e.parentNode||e.parentNode.nodeName!=="P")B6e(e,n);else{const o=Array.from(e.parentNode.childNodes),r=o.indexOf(e),s=e.parentNode.parentNode||t.body,i=(c,l)=>(c||(c=t.createElement("p")),c.appendChild(l),c);[o.slice(0,r).reduce(i,null),n,o.slice(r+1).reduce(i,null)].forEach(c=>c&&s.insertBefore(c,e.parentNode)),kp(e.parentNode)}}function E7e(e,t){if(e.nodeValue==="nextpage")return N7e(t);const n=e.nodeValue.slice(4).trim();let o=e,r=!1;for(;o=o.nextSibling;)if(o.nodeType===o.COMMENT_NODE&&o.nodeValue==="noteaser"){r=!0,kp(o);break}return B7e(n,r,t)}function B7e(e,t,n){const o=n.createElement("wp-block");return o.dataset.block="core/more",e&&(o.dataset.customText=e),t&&(o.dataset.noTeaser=""),o}function N7e(e){const t=e.createElement("wp-block");return t.dataset.block="core/nextpage",t}function XV(e){return e.nodeName==="OL"||e.nodeName==="UL"}function L7e(e){return Array.from(e.childNodes).map(({nodeValue:t=""})=>t).join("")}function Sre(e){if(!XV(e))return;const t=e,n=e.previousElementSibling;if(n&&n.nodeName===e.nodeName&&t.children.length===1){for(;t.firstChild;)n.appendChild(t.firstChild);t.parentNode.removeChild(t)}const o=e.parentNode;if(o&&o.nodeName==="LI"&&o.children.length===1&&!/\S/.test(L7e(o))){const r=o,s=r.previousElementSibling,i=r.parentNode;s&&(s.appendChild(t),i.removeChild(r))}if(o&&XV(o)){const r=e.previousElementSibling;r?r.appendChild(e):SM(e)}}function Cre(e){return t=>{t.nodeName==="BLOCKQUOTE"&&(t.innerHTML=i_(t.innerHTML,e))}}function j7e(e,t){var n;const o=e.nodeName.toLowerCase();return o==="figcaption"||dne(e)?!1:o in((n=t?.figure?.children)!==null&&n!==void 0?n:{})}function P7e(e,t){var n;return e.nodeName.toLowerCase()in((n=t?.figure?.children?.a?.children)!==null&&n!==void 0?n:{})}function pq(e,t=e){const n=e.ownerDocument.createElement("figure");t.parentNode.insertBefore(n,t),n.appendChild(e)}function Rre(e,t,n){if(!j7e(e,n))return;let o=e;const r=e.parentNode;P7e(e,n)&&r.nodeName==="A"&&r.childNodes.length===1&&(o=e.parentNode);const s=o.closest("p,div");s?e.classList?(e.classList.contains("alignright")||e.classList.contains("alignleft")||e.classList.contains("aligncenter")||!s.textContent.trim())&&pq(o,s):pq(o,s):pq(o)}function kN(e,t,n=0){const o=Bg(e);o.lastIndex=n;const r=o.exec(t);if(!r)return;if(r[1]==="["&&r[7]==="]")return kN(e,t,o.lastIndex);const s={index:r.index,content:r[0],shortcode:qN(r)};return r[1]&&(s.content=s.content.slice(1),s.index++),r[7]&&(s.content=s.content.slice(0,-1)),s}function I7e(e,t,n){return t.replace(Bg(e),function(o,r,s,i,c,l,u,d){if(r==="["&&d==="]")return o;const p=n(qN(arguments));return p||p===""?r+p+d:o})}function D7e(e){return new SN(e).string()}function Bg(e){return new RegExp("\\[(\\[?)("+e+")(?![\\w-])([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*(?:\\[(?!\\/\\2\\])[^\\[]*)*)(\\[\\/\\2\\]))?)(\\]?)","g")}const GV=ps(e=>{const t={},n=[],o=/([\w-]+)\s*=\s*"([^"]*)"(?:\s|$)|([\w-]+)\s*=\s*'([^']*)'(?:\s|$)|([\w-]+)\s*=\s*([^\s'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|'([^']*)'(?:\s|$)|(\S+)(?:\s|$)/g;e=e.replace(/[\u00a0\u200b]/g," ");let r;for(;r=o.exec(e);)r[1]?t[r[1].toLowerCase()]=r[2]:r[3]?t[r[3].toLowerCase()]=r[4]:r[5]?t[r[5].toLowerCase()]=r[6]:r[7]?n.push(r[7]):r[8]?n.push(r[8]):r[9]&&n.push(r[9]);return{named:t,numeric:n}});function qN(e){let t;return e[4]?t="self-closing":e[6]?t="closed":t="single",new SN({tag:e[2],attrs:e[3],type:t,content:e[5]})}const SN=Object.assign(function(e){const{tag:t,attrs:n,type:o,content:r}=e||{};if(Object.assign(this,{tag:t,type:o,content:r}),this.attrs={named:{},numeric:[]},!n)return;const s=["named","numeric"];typeof n=="string"?this.attrs=GV(n):n.length===s.length&&s.every((i,c)=>i===n[c])?this.attrs=n:Object.entries(n).forEach(([i,c])=>{this.set(i,c)})},{next:kN,replace:I7e,string:D7e,regexp:Bg,attrs:GV,fromMatch:qN});Object.assign(SN.prototype,{get(e){return this.attrs[typeof e=="number"?"numeric":"named"][e]},set(e,t){return this.attrs[typeof e=="number"?"numeric":"named"][e]=t,this},string(){let e="["+this.tag;return this.attrs.numeric.forEach(t=>{/\s/.test(t)?e+=' "'+t+'"':e+=" "+t}),Object.entries(this.attrs.named).forEach(([t,n])=>{e+=" "+t+'="'+n+'"'}),this.type==="single"?e+"]":this.type==="self-closing"?e+" /]":(e+="]",this.content&&(e+=this.content),e+"[/"+this.tag+"]")}});const KV=e=>Array.isArray(e)?e:[e],YV=/(\n|

)\s*$/,ZV=/^\s*(\n|<\/p>)/;function yb(e,t=0,n=[]){const o=Ys("from"),r=Ia(o,u=>n.indexOf(u.blockName)===-1&&u.type==="shortcode"&&KV(u.tag).some(d=>Bg(d).test(e)));if(!r)return[e];const i=KV(r.tag).find(u=>Bg(u).test(e));let c;const l=t;if(c=kN(i,e,t)){t=c.index+c.content.length;const u=e.substr(0,c.index),d=e.substr(t);if(!c.shortcode.content?.includes("<")&&!(YV.test(u)&&ZV.test(d)))return yb(e,t);if(r.isMatch&&!r.isMatch(c.shortcode.attrs))return yb(e,l,[...n,r.blockName]);let p=[];if(typeof r.transform=="function")p=[].concat(r.transform(c.shortcode.attrs,c)),p=p.map(f=>(f.originalContent=c.shortcode.content,kv(f,Dt(f.name))));else{const f=Object.fromEntries(Object.entries(r.attributes).filter(([,z])=>z.shortcode).map(([z,y])=>[z,y.shortcode(c.shortcode.attrs,c)])),b=Dt(r.blockName);if(!b)return[e];const h={...b,attributes:r.attributes};let g=me(r.blockName,Zc(h,c.shortcode.content,f));g.originalContent=c.shortcode.content,g=kv(g,h),p=[g]}return[...yb(u.replace(YV,"")),...p,...yb(d.replace(ZV,""))]}return[e]}function F7e(e,t){const o={phrasingContentSchema:kx(t),isPaste:t==="paste"},r=e.map(({isMatch:l,blockName:u,schema:d})=>{const p=st(u,"anchor");return d=typeof d=="function"?d(o):d,!p&&!l?d:d?Object.fromEntries(Object.entries(d).map(([f,b])=>{let h=b.attributes||[];return p&&(h=[...h,"id"]),[f,{...b,attributes:h,isMatch:l||void 0}]})):{}});function s(l,u,d){switch(d){case"children":return l==="*"||u==="*"?"*":{...l,...u};case"attributes":case"require":return[...l||[],...u||[]];case"isMatch":return!l||!u?void 0:(...p)=>l(...p)||u(...p)}}function i(l,u){for(const d in u)l[d]=l[d]?s(l[d],u[d],d):{...u[d]};return l}function c(l,u){for(const d in u)l[d]=l[d]?i(l[d],u[d]):{...u[d]};return l}return r.reduce(c,{})}function Wre(e){return F7e(wre(),e)}function $7e(e){return!/<(?!br[ />])/i.test(e)}function Tre(e,t,n,o){Array.from(e).forEach(r=>{Tre(r.childNodes,t,n,o),t.forEach(s=>{n.contains(r)&&s(r,n,o)})})}function up(e,t=[],n){const o=document.implementation.createHTMLDocument("");return o.body.innerHTML=e,Tre(o.body.childNodes,t,o,n),o.body.innerHTML}function qv(e,t){const n=e[`${t}Sibling`];if(n&&$b(n))return n;const{parentNode:o}=e;if(!(!o||!$b(o)))return qv(o,t)}function Ere(e){e.nodeType===e.COMMENT_NODE&&kp(e)}function V7e(e,t){if(dne(e))return!0;if(!t)return!1;const n=e.nodeName.toLowerCase();return[["ul","li","ol"],["h1","h2","h3","h4","h5","h6"]].some(r=>[n,t].filter(s=>!r.includes(s)).length===0)}function Bre(e,t){return e.every(n=>V7e(n,t)&&Bre(Array.from(n.children),t))}function H7e(e){return e.nodeName==="BR"&&e.previousSibling&&e.previousSibling.nodeName==="BR"}function U7e(e,t){const n=document.implementation.createHTMLDocument("");n.body.innerHTML=e;const o=Array.from(n.body.children);return!o.some(H7e)&&Bre(o,t)}function Nre(e,t){if(e.nodeName==="SPAN"&&e.style){const{fontWeight:n,fontStyle:o,textDecorationLine:r,textDecoration:s,verticalAlign:i}=e.style;(n==="bold"||n==="700")&&ym(t.createElement("strong"),e),o==="italic"&&ym(t.createElement("em"),e),(r==="line-through"||s.includes("line-through"))&&ym(t.createElement("s"),e),i==="super"?ym(t.createElement("sup"),e):i==="sub"&&ym(t.createElement("sub"),e)}else e.nodeName==="B"?e=x$(e,"strong"):e.nodeName==="I"?e=x$(e,"em"):e.nodeName==="A"&&(e.target&&e.target.toLowerCase()==="_blank"?e.rel="noreferrer noopener":(e.removeAttribute("target"),e.removeAttribute("rel")),e.name&&!e.id&&(e.id=e.name),e.id&&!e.ownerDocument.querySelector(`[href="#${e.id}"]`)&&e.removeAttribute("id"))}function Lre(e){e.nodeName!=="SCRIPT"&&e.nodeName!=="NOSCRIPT"&&e.nodeName!=="TEMPLATE"&&e.nodeName!=="STYLE"||e.parentNode.removeChild(e)}function jre(e){if(e.nodeType!==e.ELEMENT_NODE)return;const t=e.getAttribute("style");if(!t||!t.includes("mso-list"))return;t.split(";").reduce((o,r)=>{const[s,i]=r.split(":");return s&&i&&(o[s.trim().toLowerCase()]=i.trim().toLowerCase()),o},{})["mso-list"]==="ignore"&&e.remove()}function fq(e){return e.nodeName==="OL"||e.nodeName==="UL"}function X7e(e,t){if(e.nodeName!=="P")return;const n=e.getAttribute("style");if(!n||!n.includes("mso-list"))return;const o=e.previousElementSibling;if(!o||!fq(o)){const d=e.textContent.trim().slice(0,1),p=/[1iIaA]/.test(d),f=t.createElement(p?"ol":"ul");p&&f.setAttribute("type",d),e.parentNode.insertBefore(f,e)}const r=e.previousElementSibling,s=r.nodeName,i=t.createElement("li");let c=r;i.innerHTML=up(e.innerHTML,[jre]);const l=/mso-list\s*:[^;]+level([0-9]+)/i.exec(n);let u=l&&parseInt(l[1],10)-1||0;for(;u--;)c=c.lastChild||c,fq(c)&&(c=c.lastChild||c);fq(c)||(c=c.appendChild(t.createElement(s))),c.appendChild(i),e.parentNode.removeChild(e)}const Sv={};function Qc(e){const t=window.URL.createObjectURL(e);return Sv[t]=e,t}function Pre(e){return Sv[e]}function Ire(e){return Pre(e)?.type.split("/")[0]}function S8(e){Sv[e]&&window.URL.revokeObjectURL(e),delete Sv[e]}function n1(e){return!e||!e.indexOf?!1:e.indexOf("blob:")===0}function QV(e,t,n=""){if(!e||!t)return;const o=new window.Blob([t],{type:n}),r=window.URL.createObjectURL(o),s=document.createElement("a");s.href=r,s.download=e,s.style.display="none",document.body.appendChild(s),s.click(),document.body.removeChild(s),window.URL.revokeObjectURL(r)}function G7e(e){if(e.nodeName==="IMG"){if(e.src.indexOf("file:")===0&&(e.src=""),e.src.indexOf("data:")===0){const[t,n]=e.src.split(","),[o]=t.slice(5).split(";");if(!n||!o){e.src="";return}let r;try{r=atob(n)}catch{e.src="";return}const s=new Uint8Array(r.length);for(let l=0;l (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex:

foo
",type:"boolean"},emoji:{defaultValue:!1,description:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,description:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `` and ``",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including ``, `` and `` tags",type:"boolean"},metadata:{defaultValue:!1,description:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,description:"Split adjacent blockquote blocks",type:"boolean"}};if(M===!1)return JSON.parse(JSON.stringify(A));var _={};for(var w in A)A.hasOwnProperty(w)&&(_[w]=A[w].defaultValue);return _}function n(){var M=t(!0),A={};for(var _ in M)M.hasOwnProperty(_)&&(A[_]=!0);return A}var o={},r={},s={},i=t(!0),c="vanilla",l={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:t(!0),allOn:n()};o.helper={},o.extensions={},o.setOption=function(M,A){return i[M]=A,this},o.getOption=function(M){return i[M]},o.getOptions=function(){return i},o.resetOptions=function(){i=t(!0)},o.setFlavor=function(M){if(!l.hasOwnProperty(M))throw Error(M+" flavor was not found");o.resetOptions();var A=l[M];c=M;for(var _ in A)A.hasOwnProperty(_)&&(i[_]=A[_])},o.getFlavor=function(){return c},o.getFlavorOptions=function(M){if(l.hasOwnProperty(M))return l[M]},o.getDefaultOptions=function(M){return t(M)},o.subParser=function(M,A){if(o.helper.isString(M))if(typeof A<"u")r[M]=A;else{if(r.hasOwnProperty(M))return r[M];throw Error("SubParser named "+M+" not registered!")}},o.extension=function(M,A){if(!o.helper.isString(M))throw Error("Extension 'name' must be a string");if(M=o.helper.stdExtName(M),o.helper.isUndefined(A)){if(!s.hasOwnProperty(M))throw Error("Extension named "+M+" is not registered!");return s[M]}else{typeof A=="function"&&(A=A()),o.helper.isArray(A)||(A=[A]);var _=u(A,M);if(_.valid)s[M]=A;else throw Error(_.error)}},o.getAllExtensions=function(){return s},o.removeExtension=function(M){delete s[M]},o.resetExtensions=function(){s={}};function u(M,A){var _=A?"Error in "+A+" extension->":"Error in unnamed extension",w={valid:!0,error:""};o.helper.isArray(M)||(M=[M]);for(var k=0;k"u"},o.helper.forEach=function(M,A){if(o.helper.isUndefined(M))throw new Error("obj param is required");if(o.helper.isUndefined(A))throw new Error("callback param is required");if(!o.helper.isFunction(A))throw new Error("callback param must be a function/closure");if(typeof M.forEach=="function")M.forEach(A);else if(o.helper.isArray(M))for(var _=0;_").replace(/&/g,"&")};var p=function(M,A,_,w){var k=w||"",q=k.indexOf("g")>-1,S=new RegExp(A+"|"+_,"g"+k.replace(/g/g,"")),C=new RegExp(A,k.replace(/g/g,"")),T=[],W,B,N,E,L;do for(W=0;N=S.exec(M);)if(C.test(N[0]))W++||(B=S.lastIndex,E=B-N[0].length);else if(W&&!--W){L=N.index+N[0].length;var I={left:{start:E,end:B},match:{start:B,end:N.index},right:{start:N.index,end:L},wholeMatch:{start:E,end:L}};if(T.push(I),!q)return T}while(W&&(S.lastIndex=B));return T};o.helper.matchRecursiveRegExp=function(M,A,_,w){for(var k=p(M,A,_,w),q=[],S=0;S0){var W=[];S[0].wholeMatch.start!==0&&W.push(M.slice(0,S[0].wholeMatch.start));for(var B=0;B=0?w+(_||0):w},o.helper.splitAtIndex=function(M,A){if(!o.helper.isString(M))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[M.substring(0,A),M.substring(A)]},o.helper.encodeEmailAddress=function(M){var A=[function(_){return"&#"+_.charCodeAt(0)+";"},function(_){return"&#x"+_.charCodeAt(0).toString(16)+";"},function(_){return _}];return M=M.replace(/./g,function(_){if(_==="@")_=A[Math.floor(Math.random()*2)](_);else{var w=Math.random();_=w>.9?A[2](_):w>.45?A[1](_):A[0](_)}return _}),M},o.helper.padEnd=function(A,_,w){return _=_>>0,w=String(w||" "),A.length>_?String(A):(_=_-A.length,_>w.length&&(w+=w.repeat(_/w.length)),String(A)+w.slice(0,_))},typeof console>"u"&&(console={warn:function(M){alert(M)},log:function(M){alert(M)},error:function(M){throw M}}),o.helper.regexes={asteriskDashAndColon:/([*_:~])/g},o.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️‍♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴‍♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱‍♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇‍♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷‍♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯‍♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁‍🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨‍👦",family_man_boy_boy:"👨‍👦‍👦",family_man_girl:"👨‍👧",family_man_girl_boy:"👨‍👧‍👦",family_man_girl_girl:"👨‍👧‍👧",family_man_man_boy:"👨‍👨‍👦",family_man_man_boy_boy:"👨‍👨‍👦‍👦",family_man_man_girl:"👨‍👨‍👧",family_man_man_girl_boy:"👨‍👨‍👧‍👦",family_man_man_girl_girl:"👨‍👨‍👧‍👧",family_man_woman_boy_boy:"👨‍👩‍👦‍👦",family_man_woman_girl:"👨‍👩‍👧",family_man_woman_girl_boy:"👨‍👩‍👧‍👦",family_man_woman_girl_girl:"👨‍👩‍👧‍👧",family_woman_boy:"👩‍👦",family_woman_boy_boy:"👩‍👦‍👦",family_woman_girl:"👩‍👧",family_woman_girl_boy:"👩‍👧‍👦",family_woman_girl_girl:"👩‍👧‍👧",family_woman_woman_boy:"👩‍👩‍👦",family_woman_woman_boy_boy:"👩‍👩‍👦‍👦",family_woman_woman_girl:"👩‍👩‍👧",family_woman_woman_girl_boy:"👩‍👩‍👧‍👦",family_woman_woman_girl_girl:"👩‍👩‍👧‍👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️‍♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍‍♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️‍♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂‍♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇‍♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨‍🎨",man_astronaut:"👨‍🚀",man_cartwheeling:"🤸‍♂️",man_cook:"👨‍🍳",man_dancing:"🕺",man_facepalming:"🤦‍♂️",man_factory_worker:"👨‍🏭",man_farmer:"👨‍🌾",man_firefighter:"👨‍🚒",man_health_worker:"👨‍⚕️",man_in_tuxedo:"🤵",man_judge:"👨‍⚖️",man_juggling:"🤹‍♂️",man_mechanic:"👨‍🔧",man_office_worker:"👨‍💼",man_pilot:"👨‍✈️",man_playing_handball:"🤾‍♂️",man_playing_water_polo:"🤽‍♂️",man_scientist:"👨‍🔬",man_shrugging:"🤷‍♂️",man_singer:"👨‍🎤",man_student:"👨‍🎓",man_teacher:"👨‍🏫",man_technologist:"👨‍💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆‍♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼‍♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵‍♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅‍♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆‍♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮‍♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎‍♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️‍🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋‍♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣‍♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃‍♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄‍♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊‍♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁‍♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶‍♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️‍♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩‍🎨",woman_astronaut:"👩‍🚀",woman_cartwheeling:"🤸‍♀️",woman_cook:"👩‍🍳",woman_facepalming:"🤦‍♀️",woman_factory_worker:"👩‍🏭",woman_farmer:"👩‍🌾",woman_firefighter:"👩‍🚒",woman_health_worker:"👩‍⚕️",woman_judge:"👩‍⚖️",woman_juggling:"🤹‍♀️",woman_mechanic:"👩‍🔧",woman_office_worker:"👩‍💼",woman_pilot:"👩‍✈️",woman_playing_handball:"🤾‍♀️",woman_playing_water_polo:"🤽‍♀️",woman_scientist:"👩‍🔬",woman_shrugging:"🤷‍♀️",woman_singer:"👩‍🎤",woman_student:"👩‍🎓",woman_teacher:"👩‍🏫",woman_technologist:"👩‍💻",woman_with_turban:"👳‍♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼‍♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:':octocat:',showdown:`S`},o.Converter=function(M){var A={},_=[],w=[],k={},q=c,S={parsed:{},raw:"",format:""};C();function C(){M=M||{};for(var E in i)i.hasOwnProperty(E)&&(A[E]=i[E]);if(typeof M=="object")for(var L in M)M.hasOwnProperty(L)&&(A[L]=M[L]);else throw Error("Converter expects the passed parameter to be an object, but "+typeof M+" was passed instead.");A.extensions&&o.helper.forEach(A.extensions,T)}function T(E,L){if(L=L||null,o.helper.isString(E))if(E=o.helper.stdExtName(E),L=E,o.extensions[E]){console.warn("DEPRECATION WARNING: "+E+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),W(o.extensions[E],E);return}else if(!o.helper.isUndefined(s[E]))E=s[E];else throw Error('Extension "'+E+'" could not be loaded. It was either not found or is not a valid extension.');typeof E=="function"&&(E=E()),o.helper.isArray(E)||(E=[E]);var I=u(E,L);if(!I.valid)throw Error(I.error);for(var P=0;Pd(...p)),u}function Yn(e,t){return fre(e).reduce((n,o)=>{const r=_re(o,t);return r&&n.push(r),n},[])}function wre(){return Ys("from").filter(({type:e})=>e==="raw").map(e=>e.isMatch?e:{...e,isMatch:t=>e.selector&&t.matches(e.selector)})}function kre(e,t){const n=document.implementation.createHTMLDocument("");return n.body.innerHTML=e,Array.from(n.body.children).flatMap(o=>{const r=Ia(wre(),({isMatch:c})=>c(o));if(!r)return w1.isNative?Yn(`${o.outerHTML}`):me("core/html",Zc("core/html",o.outerHTML));const{transform:s,blockName:i}=r;if(s){const c=s(o,t);return o.hasAttribute("class")&&(c.attributes.className=o.getAttribute("class")),c}return me(i,Zc(i,o.outerHTML))})}function i_(e,t={}){const n=document.implementation.createHTMLDocument(""),o=document.implementation.createHTMLDocument(""),r=n.body,s=o.body;for(r.innerHTML=e;r.firstChild;){const i=r.firstChild;i.nodeType===i.TEXT_NODE?iv(i)?r.removeChild(i):((!s.lastChild||s.lastChild.nodeName!=="P")&&s.appendChild(o.createElement("P")),s.lastChild.appendChild(i)):i.nodeType===i.ELEMENT_NODE?i.nodeName==="BR"?(i.nextSibling&&i.nextSibling.nodeName==="BR"&&(s.appendChild(o.createElement("P")),r.removeChild(i.nextSibling)),s.lastChild&&s.lastChild.nodeName==="P"&&s.lastChild.hasChildNodes()?s.lastChild.appendChild(i):r.removeChild(i)):i.nodeName==="P"?iv(i)&&!t.raw?r.removeChild(i):s.appendChild(i):$b(i)?((!s.lastChild||s.lastChild.nodeName!=="P")&&s.appendChild(o.createElement("P")),s.lastChild.appendChild(i)):s.appendChild(i):r.removeChild(i)}return s.innerHTML}function qre(e,t){if(e.nodeType!==e.COMMENT_NODE||e.nodeValue!=="nextpage"&&e.nodeValue.indexOf("more")!==0)return;const n=E7e(e,t);if(!e.parentNode||e.parentNode.nodeName!=="P")B6e(e,n);else{const o=Array.from(e.parentNode.childNodes),r=o.indexOf(e),s=e.parentNode.parentNode||t.body,i=(c,l)=>(c||(c=t.createElement("p")),c.appendChild(l),c);[o.slice(0,r).reduce(i,null),n,o.slice(r+1).reduce(i,null)].forEach(c=>c&&s.insertBefore(c,e.parentNode)),kp(e.parentNode)}}function E7e(e,t){if(e.nodeValue==="nextpage")return N7e(t);const n=e.nodeValue.slice(4).trim();let o=e,r=!1;for(;o=o.nextSibling;)if(o.nodeType===o.COMMENT_NODE&&o.nodeValue==="noteaser"){r=!0,kp(o);break}return B7e(n,r,t)}function B7e(e,t,n){const o=n.createElement("wp-block");return o.dataset.block="core/more",e&&(o.dataset.customText=e),t&&(o.dataset.noTeaser=""),o}function N7e(e){const t=e.createElement("wp-block");return t.dataset.block="core/nextpage",t}function XV(e){return e.nodeName==="OL"||e.nodeName==="UL"}function L7e(e){return Array.from(e.childNodes).map(({nodeValue:t=""})=>t).join("")}function Sre(e){if(!XV(e))return;const t=e,n=e.previousElementSibling;if(n&&n.nodeName===e.nodeName&&t.children.length===1){for(;t.firstChild;)n.appendChild(t.firstChild);t.parentNode.removeChild(t)}const o=e.parentNode;if(o&&o.nodeName==="LI"&&o.children.length===1&&!/\S/.test(L7e(o))){const r=o,s=r.previousElementSibling,i=r.parentNode;s&&(s.appendChild(t),i.removeChild(r))}if(o&&XV(o)){const r=e.previousElementSibling;r?r.appendChild(e):SM(e)}}function Cre(e){return t=>{t.nodeName==="BLOCKQUOTE"&&(t.innerHTML=i_(t.innerHTML,e))}}function j7e(e,t){var n;const o=e.nodeName.toLowerCase();return o==="figcaption"||dne(e)?!1:o in((n=t?.figure?.children)!==null&&n!==void 0?n:{})}function P7e(e,t){var n;return e.nodeName.toLowerCase()in((n=t?.figure?.children?.a?.children)!==null&&n!==void 0?n:{})}function pq(e,t=e){const n=e.ownerDocument.createElement("figure");t.parentNode.insertBefore(n,t),n.appendChild(e)}function Rre(e,t,n){if(!j7e(e,n))return;let o=e;const r=e.parentNode;P7e(e,n)&&r.nodeName==="A"&&r.childNodes.length===1&&(o=e.parentNode);const s=o.closest("p,div");s?e.classList?(e.classList.contains("alignright")||e.classList.contains("alignleft")||e.classList.contains("aligncenter")||!s.textContent.trim())&&pq(o,s):pq(o,s):pq(o)}function kN(e,t,n=0){const o=Bg(e);o.lastIndex=n;const r=o.exec(t);if(!r)return;if(r[1]==="["&&r[7]==="]")return kN(e,t,o.lastIndex);const s={index:r.index,content:r[0],shortcode:qN(r)};return r[1]&&(s.content=s.content.slice(1),s.index++),r[7]&&(s.content=s.content.slice(0,-1)),s}function I7e(e,t,n){return t.replace(Bg(e),function(o,r,s,i,c,l,u,d){if(r==="["&&d==="]")return o;const p=n(qN(arguments));return p||p===""?r+p+d:o})}function D7e(e){return new SN(e).string()}function Bg(e){return new RegExp("\\[(\\[?)("+e+")(?![\\w-])([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*(?:\\[(?!\\/\\2\\])[^\\[]*)*)(\\[\\/\\2\\]))?)(\\]?)","g")}const GV=fs(e=>{const t={},n=[],o=/([\w-]+)\s*=\s*"([^"]*)"(?:\s|$)|([\w-]+)\s*=\s*'([^']*)'(?:\s|$)|([\w-]+)\s*=\s*([^\s'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|'([^']*)'(?:\s|$)|(\S+)(?:\s|$)/g;e=e.replace(/[\u00a0\u200b]/g," ");let r;for(;r=o.exec(e);)r[1]?t[r[1].toLowerCase()]=r[2]:r[3]?t[r[3].toLowerCase()]=r[4]:r[5]?t[r[5].toLowerCase()]=r[6]:r[7]?n.push(r[7]):r[8]?n.push(r[8]):r[9]&&n.push(r[9]);return{named:t,numeric:n}});function qN(e){let t;return e[4]?t="self-closing":e[6]?t="closed":t="single",new SN({tag:e[2],attrs:e[3],type:t,content:e[5]})}const SN=Object.assign(function(e){const{tag:t,attrs:n,type:o,content:r}=e||{};if(Object.assign(this,{tag:t,type:o,content:r}),this.attrs={named:{},numeric:[]},!n)return;const s=["named","numeric"];typeof n=="string"?this.attrs=GV(n):n.length===s.length&&s.every((i,c)=>i===n[c])?this.attrs=n:Object.entries(n).forEach(([i,c])=>{this.set(i,c)})},{next:kN,replace:I7e,string:D7e,regexp:Bg,attrs:GV,fromMatch:qN});Object.assign(SN.prototype,{get(e){return this.attrs[typeof e=="number"?"numeric":"named"][e]},set(e,t){return this.attrs[typeof e=="number"?"numeric":"named"][e]=t,this},string(){let e="["+this.tag;return this.attrs.numeric.forEach(t=>{/\s/.test(t)?e+=' "'+t+'"':e+=" "+t}),Object.entries(this.attrs.named).forEach(([t,n])=>{e+=" "+t+'="'+n+'"'}),this.type==="single"?e+"]":this.type==="self-closing"?e+" /]":(e+="]",this.content&&(e+=this.content),e+"[/"+this.tag+"]")}});const KV=e=>Array.isArray(e)?e:[e],YV=/(\n|

)\s*$/,ZV=/^\s*(\n|<\/p>)/;function yb(e,t=0,n=[]){const o=Ys("from"),r=Ia(o,u=>n.indexOf(u.blockName)===-1&&u.type==="shortcode"&&KV(u.tag).some(d=>Bg(d).test(e)));if(!r)return[e];const i=KV(r.tag).find(u=>Bg(u).test(e));let c;const l=t;if(c=kN(i,e,t)){t=c.index+c.content.length;const u=e.substr(0,c.index),d=e.substr(t);if(!c.shortcode.content?.includes("<")&&!(YV.test(u)&&ZV.test(d)))return yb(e,t);if(r.isMatch&&!r.isMatch(c.shortcode.attrs))return yb(e,l,[...n,r.blockName]);let p=[];if(typeof r.transform=="function")p=[].concat(r.transform(c.shortcode.attrs,c)),p=p.map(f=>(f.originalContent=c.shortcode.content,kv(f,Dt(f.name))));else{const f=Object.fromEntries(Object.entries(r.attributes).filter(([,z])=>z.shortcode).map(([z,y])=>[z,y.shortcode(c.shortcode.attrs,c)])),b=Dt(r.blockName);if(!b)return[e];const h={...b,attributes:r.attributes};let g=me(r.blockName,Zc(h,c.shortcode.content,f));g.originalContent=c.shortcode.content,g=kv(g,h),p=[g]}return[...yb(u.replace(YV,"")),...p,...yb(d.replace(ZV,""))]}return[e]}function F7e(e,t){const o={phrasingContentSchema:kx(t),isPaste:t==="paste"},r=e.map(({isMatch:l,blockName:u,schema:d})=>{const p=st(u,"anchor");return d=typeof d=="function"?d(o):d,!p&&!l?d:d?Object.fromEntries(Object.entries(d).map(([f,b])=>{let h=b.attributes||[];return p&&(h=[...h,"id"]),[f,{...b,attributes:h,isMatch:l||void 0}]})):{}});function s(l,u,d){switch(d){case"children":return l==="*"||u==="*"?"*":{...l,...u};case"attributes":case"require":return[...l||[],...u||[]];case"isMatch":return!l||!u?void 0:(...p)=>l(...p)||u(...p)}}function i(l,u){for(const d in u)l[d]=l[d]?s(l[d],u[d],d):{...u[d]};return l}function c(l,u){for(const d in u)l[d]=l[d]?i(l[d],u[d]):{...u[d]};return l}return r.reduce(c,{})}function Wre(e){return F7e(wre(),e)}function $7e(e){return!/<(?!br[ />])/i.test(e)}function Tre(e,t,n,o){Array.from(e).forEach(r=>{Tre(r.childNodes,t,n,o),t.forEach(s=>{n.contains(r)&&s(r,n,o)})})}function up(e,t=[],n){const o=document.implementation.createHTMLDocument("");return o.body.innerHTML=e,Tre(o.body.childNodes,t,o,n),o.body.innerHTML}function qv(e,t){const n=e[`${t}Sibling`];if(n&&$b(n))return n;const{parentNode:o}=e;if(!(!o||!$b(o)))return qv(o,t)}function Ere(e){e.nodeType===e.COMMENT_NODE&&kp(e)}function V7e(e,t){if(dne(e))return!0;if(!t)return!1;const n=e.nodeName.toLowerCase();return[["ul","li","ol"],["h1","h2","h3","h4","h5","h6"]].some(r=>[n,t].filter(s=>!r.includes(s)).length===0)}function Bre(e,t){return e.every(n=>V7e(n,t)&&Bre(Array.from(n.children),t))}function H7e(e){return e.nodeName==="BR"&&e.previousSibling&&e.previousSibling.nodeName==="BR"}function U7e(e,t){const n=document.implementation.createHTMLDocument("");n.body.innerHTML=e;const o=Array.from(n.body.children);return!o.some(H7e)&&Bre(o,t)}function Nre(e,t){if(e.nodeName==="SPAN"&&e.style){const{fontWeight:n,fontStyle:o,textDecorationLine:r,textDecoration:s,verticalAlign:i}=e.style;(n==="bold"||n==="700")&&ym(t.createElement("strong"),e),o==="italic"&&ym(t.createElement("em"),e),(r==="line-through"||s.includes("line-through"))&&ym(t.createElement("s"),e),i==="super"?ym(t.createElement("sup"),e):i==="sub"&&ym(t.createElement("sub"),e)}else e.nodeName==="B"?e=x$(e,"strong"):e.nodeName==="I"?e=x$(e,"em"):e.nodeName==="A"&&(e.target&&e.target.toLowerCase()==="_blank"?e.rel="noreferrer noopener":(e.removeAttribute("target"),e.removeAttribute("rel")),e.name&&!e.id&&(e.id=e.name),e.id&&!e.ownerDocument.querySelector(`[href="#${e.id}"]`)&&e.removeAttribute("id"))}function Lre(e){e.nodeName!=="SCRIPT"&&e.nodeName!=="NOSCRIPT"&&e.nodeName!=="TEMPLATE"&&e.nodeName!=="STYLE"||e.parentNode.removeChild(e)}function jre(e){if(e.nodeType!==e.ELEMENT_NODE)return;const t=e.getAttribute("style");if(!t||!t.includes("mso-list"))return;t.split(";").reduce((o,r)=>{const[s,i]=r.split(":");return s&&i&&(o[s.trim().toLowerCase()]=i.trim().toLowerCase()),o},{})["mso-list"]==="ignore"&&e.remove()}function fq(e){return e.nodeName==="OL"||e.nodeName==="UL"}function X7e(e,t){if(e.nodeName!=="P")return;const n=e.getAttribute("style");if(!n||!n.includes("mso-list"))return;const o=e.previousElementSibling;if(!o||!fq(o)){const d=e.textContent.trim().slice(0,1),p=/[1iIaA]/.test(d),f=t.createElement(p?"ol":"ul");p&&f.setAttribute("type",d),e.parentNode.insertBefore(f,e)}const r=e.previousElementSibling,s=r.nodeName,i=t.createElement("li");let c=r;i.innerHTML=up(e.innerHTML,[jre]);const l=/mso-list\s*:[^;]+level([0-9]+)/i.exec(n);let u=l&&parseInt(l[1],10)-1||0;for(;u--;)c=c.lastChild||c,fq(c)&&(c=c.lastChild||c);fq(c)||(c=c.appendChild(t.createElement(s))),c.appendChild(i),e.parentNode.removeChild(e)}const Sv={};function Qc(e){const t=window.URL.createObjectURL(e);return Sv[t]=e,t}function Pre(e){return Sv[e]}function Ire(e){return Pre(e)?.type.split("/")[0]}function S8(e){Sv[e]&&window.URL.revokeObjectURL(e),delete Sv[e]}function n1(e){return!e||!e.indexOf?!1:e.indexOf("blob:")===0}function QV(e,t,n=""){if(!e||!t)return;const o=new window.Blob([t],{type:n}),r=window.URL.createObjectURL(o),s=document.createElement("a");s.href=r,s.download=e,s.style.display="none",document.body.appendChild(s),s.click(),document.body.removeChild(s),window.URL.revokeObjectURL(r)}function G7e(e){if(e.nodeName==="IMG"){if(e.src.indexOf("file:")===0&&(e.src=""),e.src.indexOf("data:")===0){const[t,n]=e.src.split(","),[o]=t.slice(5).split(";");if(!n||!o){e.src="";return}let r;try{r=atob(n)}catch{e.src="";return}const s=new Uint8Array(r.length);for(let l=0;l (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex:

foo
",type:"boolean"},emoji:{defaultValue:!1,description:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,description:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `` and ``",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including ``, `` and `` tags",type:"boolean"},metadata:{defaultValue:!1,description:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,description:"Split adjacent blockquote blocks",type:"boolean"}};if(M===!1)return JSON.parse(JSON.stringify(A));var _={};for(var w in A)A.hasOwnProperty(w)&&(_[w]=A[w].defaultValue);return _}function n(){var M=t(!0),A={};for(var _ in M)M.hasOwnProperty(_)&&(A[_]=!0);return A}var o={},r={},s={},i=t(!0),c="vanilla",l={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:t(!0),allOn:n()};o.helper={},o.extensions={},o.setOption=function(M,A){return i[M]=A,this},o.getOption=function(M){return i[M]},o.getOptions=function(){return i},o.resetOptions=function(){i=t(!0)},o.setFlavor=function(M){if(!l.hasOwnProperty(M))throw Error(M+" flavor was not found");o.resetOptions();var A=l[M];c=M;for(var _ in A)A.hasOwnProperty(_)&&(i[_]=A[_])},o.getFlavor=function(){return c},o.getFlavorOptions=function(M){if(l.hasOwnProperty(M))return l[M]},o.getDefaultOptions=function(M){return t(M)},o.subParser=function(M,A){if(o.helper.isString(M))if(typeof A<"u")r[M]=A;else{if(r.hasOwnProperty(M))return r[M];throw Error("SubParser named "+M+" not registered!")}},o.extension=function(M,A){if(!o.helper.isString(M))throw Error("Extension 'name' must be a string");if(M=o.helper.stdExtName(M),o.helper.isUndefined(A)){if(!s.hasOwnProperty(M))throw Error("Extension named "+M+" is not registered!");return s[M]}else{typeof A=="function"&&(A=A()),o.helper.isArray(A)||(A=[A]);var _=u(A,M);if(_.valid)s[M]=A;else throw Error(_.error)}},o.getAllExtensions=function(){return s},o.removeExtension=function(M){delete s[M]},o.resetExtensions=function(){s={}};function u(M,A){var _=A?"Error in "+A+" extension->":"Error in unnamed extension",w={valid:!0,error:""};o.helper.isArray(M)||(M=[M]);for(var k=0;k"u"},o.helper.forEach=function(M,A){if(o.helper.isUndefined(M))throw new Error("obj param is required");if(o.helper.isUndefined(A))throw new Error("callback param is required");if(!o.helper.isFunction(A))throw new Error("callback param must be a function/closure");if(typeof M.forEach=="function")M.forEach(A);else if(o.helper.isArray(M))for(var _=0;_").replace(/&/g,"&")};var p=function(M,A,_,w){var k=w||"",q=k.indexOf("g")>-1,S=new RegExp(A+"|"+_,"g"+k.replace(/g/g,"")),C=new RegExp(A,k.replace(/g/g,"")),T=[],W,B,N,E,L;do for(W=0;N=S.exec(M);)if(C.test(N[0]))W++||(B=S.lastIndex,E=B-N[0].length);else if(W&&!--W){L=N.index+N[0].length;var I={left:{start:E,end:B},match:{start:B,end:N.index},right:{start:N.index,end:L},wholeMatch:{start:E,end:L}};if(T.push(I),!q)return T}while(W&&(S.lastIndex=B));return T};o.helper.matchRecursiveRegExp=function(M,A,_,w){for(var k=p(M,A,_,w),q=[],S=0;S0){var W=[];S[0].wholeMatch.start!==0&&W.push(M.slice(0,S[0].wholeMatch.start));for(var B=0;B=0?w+(_||0):w},o.helper.splitAtIndex=function(M,A){if(!o.helper.isString(M))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[M.substring(0,A),M.substring(A)]},o.helper.encodeEmailAddress=function(M){var A=[function(_){return"&#"+_.charCodeAt(0)+";"},function(_){return"&#x"+_.charCodeAt(0).toString(16)+";"},function(_){return _}];return M=M.replace(/./g,function(_){if(_==="@")_=A[Math.floor(Math.random()*2)](_);else{var w=Math.random();_=w>.9?A[2](_):w>.45?A[1](_):A[0](_)}return _}),M},o.helper.padEnd=function(A,_,w){return _=_>>0,w=String(w||" "),A.length>_?String(A):(_=_-A.length,_>w.length&&(w+=w.repeat(_/w.length)),String(A)+w.slice(0,_))},typeof console>"u"&&(console={warn:function(M){alert(M)},log:function(M){alert(M)},error:function(M){throw M}}),o.helper.regexes={asteriskDashAndColon:/([*_:~])/g},o.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️‍♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴‍♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱‍♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇‍♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷‍♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯‍♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁‍🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨‍👦",family_man_boy_boy:"👨‍👦‍👦",family_man_girl:"👨‍👧",family_man_girl_boy:"👨‍👧‍👦",family_man_girl_girl:"👨‍👧‍👧",family_man_man_boy:"👨‍👨‍👦",family_man_man_boy_boy:"👨‍👨‍👦‍👦",family_man_man_girl:"👨‍👨‍👧",family_man_man_girl_boy:"👨‍👨‍👧‍👦",family_man_man_girl_girl:"👨‍👨‍👧‍👧",family_man_woman_boy_boy:"👨‍👩‍👦‍👦",family_man_woman_girl:"👨‍👩‍👧",family_man_woman_girl_boy:"👨‍👩‍👧‍👦",family_man_woman_girl_girl:"👨‍👩‍👧‍👧",family_woman_boy:"👩‍👦",family_woman_boy_boy:"👩‍👦‍👦",family_woman_girl:"👩‍👧",family_woman_girl_boy:"👩‍👧‍👦",family_woman_girl_girl:"👩‍👧‍👧",family_woman_woman_boy:"👩‍👩‍👦",family_woman_woman_boy_boy:"👩‍👩‍👦‍👦",family_woman_woman_girl:"👩‍👩‍👧",family_woman_woman_girl_boy:"👩‍👩‍👧‍👦",family_woman_woman_girl_girl:"👩‍👩‍👧‍👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️‍♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍‍♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️‍♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂‍♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇‍♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨‍🎨",man_astronaut:"👨‍🚀",man_cartwheeling:"🤸‍♂️",man_cook:"👨‍🍳",man_dancing:"🕺",man_facepalming:"🤦‍♂️",man_factory_worker:"👨‍🏭",man_farmer:"👨‍🌾",man_firefighter:"👨‍🚒",man_health_worker:"👨‍⚕️",man_in_tuxedo:"🤵",man_judge:"👨‍⚖️",man_juggling:"🤹‍♂️",man_mechanic:"👨‍🔧",man_office_worker:"👨‍💼",man_pilot:"👨‍✈️",man_playing_handball:"🤾‍♂️",man_playing_water_polo:"🤽‍♂️",man_scientist:"👨‍🔬",man_shrugging:"🤷‍♂️",man_singer:"👨‍🎤",man_student:"👨‍🎓",man_teacher:"👨‍🏫",man_technologist:"👨‍💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆‍♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼‍♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵‍♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅‍♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆‍♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮‍♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎‍♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️‍🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋‍♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣‍♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃‍♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄‍♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊‍♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁‍♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶‍♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️‍♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩‍🎨",woman_astronaut:"👩‍🚀",woman_cartwheeling:"🤸‍♀️",woman_cook:"👩‍🍳",woman_facepalming:"🤦‍♀️",woman_factory_worker:"👩‍🏭",woman_farmer:"👩‍🌾",woman_firefighter:"👩‍🚒",woman_health_worker:"👩‍⚕️",woman_judge:"👩‍⚖️",woman_juggling:"🤹‍♀️",woman_mechanic:"👩‍🔧",woman_office_worker:"👩‍💼",woman_pilot:"👩‍✈️",woman_playing_handball:"🤾‍♀️",woman_playing_water_polo:"🤽‍♀️",woman_scientist:"👩‍🔬",woman_shrugging:"🤷‍♀️",woman_singer:"👩‍🎤",woman_student:"👩‍🎓",woman_teacher:"👩‍🏫",woman_technologist:"👩‍💻",woman_with_turban:"👳‍♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼‍♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:':octocat:',showdown:`S`},o.Converter=function(M){var A={},_=[],w=[],k={},q=c,S={parsed:{},raw:"",format:""};C();function C(){M=M||{};for(var E in i)i.hasOwnProperty(E)&&(A[E]=i[E]);if(typeof M=="object")for(var L in M)M.hasOwnProperty(L)&&(A[L]=M[L]);else throw Error("Converter expects the passed parameter to be an object, but "+typeof M+" was passed instead.");A.extensions&&o.helper.forEach(A.extensions,T)}function T(E,L){if(L=L||null,o.helper.isString(E))if(E=o.helper.stdExtName(E),L=E,o.extensions[E]){console.warn("DEPRECATION WARNING: "+E+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),W(o.extensions[E],E);return}else if(!o.helper.isUndefined(s[E]))E=s[E];else throw Error('Extension "'+E+'" could not be loaded. It was either not found or is not a valid extension.');typeof E=="function"&&(E=E()),o.helper.isArray(E)||(E=[E]);var I=u(E,L);if(!I.valid)throw Error(I.error);for(var P=0;P"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Jje:Qje;zse.useSyncExternalStore=R2.useSyncExternalStore!==void 0?R2.useSyncExternalStore:ePe;gse.exports=zse;var tPe=gse.exports;const nPe=yo(tPe);var{useSyncExternalStore:oPe}=nPe,rPe=()=>()=>{};function on(e,t=ise){const n=O.useCallback(r=>e?Mse(e,null,r):rPe(),[e]),o=()=>{const r=typeof t=="string"?t:null,s=typeof t=="function"?t:null,i=e?.getState();if(s)return s(i);if(i&&r&&Pu(i,r))return i[r]};return oPe(n,o,o)}function yn(e,t,n,o){const r=Pu(t,n)?t[n]:void 0,s=o?t[o]:void 0,i=fse({value:r,setValue:s});X0(()=>e1(e,[n],(c,l)=>{const{value:u,setValue:d}=i.current;d&&c[n]!==l[n]&&c[n]!==u&&d(c[n])}),[e,n]),X0(()=>{if(r!==void 0)return e.setState(n,r),jg(e,[n],()=>{r!==void 0&&e.setState(n,r)})})}function $i(e,t){const[n,o]=O.useState(()=>e(t));X0(()=>FN(n),[n]);const r=O.useCallback(c=>on(n,c),[n]),s=O.useMemo(()=>Ve(_e({},n),{useState:r}),[n,r]),i=It(()=>{o(c=>e(_e(_e({},t),c.getState())))});return[s,i]}function sPe(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function iPe(e){const t=e.map((o,r)=>[r,o]);let n=!1;return t.sort(([o,r],[s,i])=>{const c=r.element,l=i.element;return c===l||!c||!l?0:sPe(c,l)?(o>s&&(n=!0),-1):(or):e}function aPe(e){var t;const n=e.find(s=>!!s.element),o=[...e].reverse().find(s=>!!s.element);let r=(t=n?.element)==null?void 0:t.parentElement;for(;r&&o?.element;){if(o&&r.contains(o.element))return r;r=r.parentElement}return Zn(r).body}function cPe(e){return e?.__unstablePrivateStore}function Ose(e={}){var t;e.store;const n=(t=e.store)==null?void 0:t.getState(),o=qt(e.items,n?.items,e.defaultItems,[]),r=new Map(o.map(f=>[f.id,f])),s={items:o,renderedItems:qt(n?.renderedItems,[])},i=cPe(e.store),c=Vo({items:o,renderedItems:s.renderedItems},i),l=Vo(s,e.store),u=f=>{const b=iPe(f);c.setState("renderedItems",b),l.setState("renderedItems",b)};V1(l,()=>FN(c)),V1(c,()=>jg(c,["items"],f=>{l.setState("items",f.items)})),V1(c,()=>jg(c,["renderedItems"],f=>{let b=!0,h=requestAnimationFrame(()=>{const{renderedItems:x}=l.getState();f.renderedItems!==x&&u(f.renderedItems)});if(typeof IntersectionObserver!="function")return()=>cancelAnimationFrame(h);const g=()=>{if(b){b=!1;return}cancelAnimationFrame(h),h=requestAnimationFrame(()=>u(f.renderedItems))},z=aPe(f.renderedItems),y=new IntersectionObserver(g,{root:z});for(const x of f.renderedItems)x.element&&y.observe(x.element);return()=>{cancelAnimationFrame(h),y.disconnect()}}));const d=(f,b,h=!1)=>{let g;return b(y=>{const x=y.findIndex(({id:M})=>M===f.id),v=y.slice();if(x!==-1){g=y[x];const M=Pt(Pt({},g),f);v[x]=M,r.set(f.id,M)}else v.push(f),r.set(f.id,f);return v}),()=>{b(y=>{if(!g)return h&&r.delete(f.id),y.filter(({id:M})=>M!==f.id);const x=y.findIndex(({id:M})=>M===f.id);if(x===-1)return y;const v=y.slice();return v[x]=g,r.set(f.id,g),v})}},p=f=>d(f,b=>c.setState("items",b),!0);return S0(Pt({},l),{registerItem:p,renderItem:f=>$o(p(f),d(f,b=>c.setState("renderedItems",b))),item:f=>{if(!f)return null;let b=r.get(f);if(!b){const{items:h}=l.getState();b=h.find(g=>g.id===f),b&&r.set(f,b)}return b||null},__unstablePrivateStore:c})}function lPe(e,t,n){return Iu(t,[n.store]),yn(e,n,"items","setItems"),e}function Ase(e){return Array.isArray(e)?e:typeof e<"u"?[e]:[]}function W8(e){const t=[];for(const n of e)t.push(...n);return t}function rM(e){return e.slice().reverse()}var uPe={id:null};function ta(e,t){return e.find(n=>t?!n.disabled&&n.id!==t:!n.disabled)}function dPe(e,t){return e.filter(n=>t?!n.disabled&&n.id!==t:!n.disabled)}function pPe(e){if(e==="vertical")return"horizontal";if(e==="horizontal")return"vertical"}function aH(e,t){return e.filter(n=>n.rowId===t)}function fPe(e,t,n=!1){const o=e.findIndex(r=>r.id===t);return[...e.slice(o+1),...n?[uPe]:[],...e.slice(0,o)]}function T8(e){const t=[];for(const n of e){const o=t.find(r=>{var s;return((s=r[0])==null?void 0:s.rowId)===n.rowId});o?o.push(n):t.push([n])}return t}function yse(e){let t=0;for(const{length:n}of e)n>t&&(t=n);return t}function bPe(e){return{id:"__EMPTY_ITEM__",disabled:!0,rowId:e}}function cH(e,t,n){const o=yse(e);for(const r of e)for(let s=0;se1(i,["renderedItems","activeId"],l=>{i.setState("activeId",u=>{var d;return u!==void 0?u:(d=ta(l.renderedItems))==null?void 0:d.id})}));const c=(l,u,d,p)=>{var f,b;const{activeId:h,rtl:g,focusLoop:z,focusWrap:y,includesBaseElement:x}=i.getState(),A=g&&u!=="vertical"?rM(l):l;if(h==null)return(f=ta(A))==null?void 0:f.id;const _=A.find(N=>N.id===h);if(!_)return(b=ta(A))==null?void 0:b.id;const w=!!_.rowId,k=A.indexOf(_),q=A.slice(k+1),S=aH(q,_.rowId);if(p!==void 0){const N=dPe(S,h),E=N.slice(p)[0]||N[N.length-1];return E?.id}const C=pPe(w?u||"horizontal":u),T=z&&z!==C,W=w&&y&&y!==C;if(d=d||!w&&T&&x,T){const N=W&&!d?A:aH(A,_.rowId),E=fPe(N,h,d),L=ta(E,h);return L?.id}if(W){const N=ta(d?S:q,h);return d?N?.id||null:N?.id}const B=ta(S,h);return!B&&d?null:B?.id};return S0(Pt(Pt({},o),i),{setBaseElement:l=>i.setState("baseElement",l),setActiveId:l=>i.setState("activeId",l),move:l=>{l!==void 0&&(i.setState("activeId",l),i.setState("moves",u=>u+1))},first:()=>{var l;return(l=ta(i.getState().renderedItems))==null?void 0:l.id},last:()=>{var l;return(l=ta(rM(i.getState().renderedItems)))==null?void 0:l.id},next:l=>{const{renderedItems:u,orientation:d}=i.getState();return c(u,d,!1,l)},previous:l=>{var u;const{renderedItems:d,orientation:p,includesBaseElement:f}=i.getState(),h=!!!((u=ta(d))!=null&&u.rowId)&&f;return c(rM(d),p,h,l)},down:l=>{const{activeId:u,renderedItems:d,focusShift:p,focusLoop:f,includesBaseElement:b}=i.getState(),h=p&&!l,g=lH(W8(cH(T8(d),u,h)));return c(g,"vertical",f&&f!=="horizontal"&&b,l)},up:l=>{const{activeId:u,renderedItems:d,focusShift:p,includesBaseElement:f}=i.getState(),b=p&&!l,h=lH(rM(W8(cH(T8(d),u,b))));return c(h,"vertical",f,l)}})}function Oh(e,t,n){return e=lPe(e,t,n),yn(e,n,"activeId","setActiveId"),yn(e,n,"includesBaseElement"),yn(e,n,"virtualFocus"),yn(e,n,"orientation"),yn(e,n,"rtl"),yn(e,n,"focusLoop"),yn(e,n,"focusWrap"),yn(e,n,"focusShift"),e}function vse(e={}){const[t,n]=$i(zh,e);return Oh(t,n,e)}function xse(e={}){const t=c3(e.store,C2(e.disclosure,["contentElement","disclosureElement"])),n=t?.getState(),o=qt(e.open,n?.open,e.defaultOpen,!1),r=qt(e.animated,n?.animated,!1),s={open:o,animated:r,animating:!!r&&o,mounted:o,contentElement:qt(n?.contentElement,null),disclosureElement:qt(n?.disclosureElement,null)},i=Vo(s,t);return V1(i,()=>e1(i,["animated","animating"],c=>{c.animated||i.setState("animating",!1)})),V1(i,()=>Mse(i,["open"],()=>{i.getState().animated&&i.setState("animating",!0)})),V1(i,()=>e1(i,["open","animating"],c=>{i.setState("mounted",c.open||c.animating)})),S0(Pt({},i),{disclosure:e.disclosure,setOpen:c=>i.setState("open",c),show:()=>i.setState("open",!0),hide:()=>i.setState("open",!1),toggle:()=>i.setState("open",c=>!c),stopAnimation:()=>i.setState("animating",!1),setContentElement:c=>i.setState("contentElement",c),setDisclosureElement:c=>i.setState("disclosureElement",c)})}function _se(e,t,n){return Iu(t,[n.store,n.disclosure]),yn(e,n,"open","setOpen"),yn(e,n,"mounted","setMounted"),yn(e,n,"animated"),Object.assign(e,{disclosure:n.disclosure})}function wse(e={}){const[t,n]=$i(xse,e);return _se(t,n,e)}function kse(e={}){return xse(e)}function qse(e,t,n){return _se(e,t,n)}function hPe(e={}){const[t,n]=$i(kse,e);return qse(t,n,e)}function Sse(e={}){var t=e,{popover:n}=t,o=o3(t,["popover"]);const r=c3(o.store,C2(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),s=r?.getState(),i=kse(S0(Pt({},o),{store:r})),c=qt(o.placement,s?.placement,"bottom"),l=S0(Pt({},i.getState()),{placement:c,currentPlacement:c,anchorElement:qt(s?.anchorElement,null),popoverElement:qt(s?.popoverElement,null),arrowElement:qt(s?.arrowElement,null),rendered:Symbol("rendered")}),u=Vo(l,i,r);return S0(Pt(Pt({},i),u),{setAnchorElement:d=>u.setState("anchorElement",d),setPopoverElement:d=>u.setState("popoverElement",d),setArrowElement:d=>u.setState("arrowElement",d),render:()=>u.setState("rendered",Symbol("rendered"))})}function Cse(e,t,n){return Iu(t,[n.popover]),yn(e,n,"placement"),qse(e,t,n)}var l3=cr();l3.useContext;l3.useScopedContext;var $N=l3.useProviderContext,mPe=l3.ContextProvider,MPe=l3.ScopedContextProvider,VN=cr([mPe],[MPe]),l_=VN.useProviderContext,gPe=VN.ContextProvider,HN=VN.ScopedContextProvider,zPe=O.createContext(void 0),OPe=O.createContext(void 0),u3=cr([gPe],[HN]),APe=u3.useContext;u3.useScopedContext;var u_=u3.useProviderContext,UN=u3.ContextProvider,d3=u3.ScopedContextProvider;O.createContext(void 0);var Rse=cr([UN,fd],[d3,gf]),yPe=Rse.useContext,Wse=Rse.useProviderContext;O.createContext(void 0);O.createContext(!1);var vPe="div",Tse=_t(function(t){var n=t,{store:o}=n,r=xt(n,["store"]);const s=u_();return o=o||s,r=Ve(_e({},r),{ref:Cn(o?.setAnchorElement,r.ref)}),r});yt(function(t){const n=Tse(t);return vt(vPe,n)});var xPe={id:null};function _Pe(e,t,n=!1){const o=e.findIndex(r=>r.id===t);return[...e.slice(o+1),...n?[xPe]:[],...e.slice(0,o)]}function wPe(e,t){return e.find(n=>!n.disabled)}function Kl(e,t){return t&&e.item(t)||null}function kPe(e){const t=[];for(const n of e){const o=t.find(r=>{var s;return((s=r[0])==null?void 0:s.rowId)===n.rowId});o?o.push(n):t.push([n])}return t}function qPe(e,t=!1){if(Ml(e))e.setSelectionRange(t?e.value.length:0,e.value.length);else if(e.isContentEditable){const n=Zn(e).getSelection();n?.selectAllChildren(e),t&&n?.collapseToEnd()}}var E8=Symbol("FOCUS_SILENTLY");function SPe(e){e[E8]=!0,e.focus({preventScroll:!0})}function CPe(e){const t=e[E8];return delete e[E8],t}function NM(e,t,n){return!(!t||t===n||!e.item(t.id))}var Ese=O.createContext(!0),XN="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], summary, iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function RPe(e){return Number.parseInt(e.getAttribute("tabindex")||"0",10)<0}function Ca(e){return!(!e.matches(XN)||!ase(e)||e.closest("[inert]"))}function Wv(e){if(!Ca(e)||RPe(e))return!1;if(!("form"in e)||!e.form||e.checked||e.type!=="radio")return!0;const t=e.form.elements.namedItem(e.name);if(!t||!("length"in t))return!0;const n=ml(e);return!n||n===e||!("form"in n)||n.form!==e.form||n.name!==e.name}function GN(e,t){const n=Array.from(e.querySelectorAll(XN));t&&n.unshift(e);const o=n.filter(Ca);return o.forEach((r,s)=>{if(TN(r)&&r.contentDocument){const i=r.contentDocument.body;o.splice(s,1,...GN(i))}}),o}function p3(e,t,n){const o=Array.from(e.querySelectorAll(XN)),r=o.filter(Wv);return t&&Wv(e)&&r.unshift(e),r.forEach((s,i)=>{if(TN(s)&&s.contentDocument){const c=s.contentDocument.body,l=p3(c,!1,n);r.splice(i,1,...l)}}),!r.length&&n?o:r}function WPe(e,t,n){const[o]=p3(e,t,n);return o||null}function TPe(e,t,n,o){const r=ml(e),s=GN(e,t),i=s.indexOf(r);return s.slice(i+1).find(Wv)||null||null||null}function hq(e,t){return TPe(document.body,!1)}function EPe(e,t,n,o){const r=ml(e),s=GN(e,t).reverse(),i=s.indexOf(r);return s.slice(i+1).find(Wv)||null||null||null}function uH(e,t){return EPe(document.body,!1)}function Tv(e){const t=ml(e);if(!t)return!1;if(t===e)return!0;const n=t.getAttribute("aria-activedescendant");return n?n===e.id:!1}function Au(e){const t=ml(e);if(!t)return!1;if(u1(e,t))return!0;const n=t.getAttribute("aria-activedescendant");return!n||!("id"in e)?!1:n===e.id?!0:!!e.querySelector(`#${CSS.escape(n)}`)}function Bse(e){!Au(e)&&Ca(e)&&e.focus()}function BPe(e){var t;const n=(t=e.getAttribute("tabindex"))!=null?t:"";e.setAttribute("data-tabindex",n),e.setAttribute("tabindex","-1")}function NPe(e,t){const n=p3(e,t);for(const o of n)BPe(o)}function LPe(e){const t=e.querySelectorAll("[data-tabindex]"),n=o=>{const r=o.getAttribute("data-tabindex");o.removeAttribute("data-tabindex"),r?o.setAttribute("tabindex",r):o.removeAttribute("tabindex")};e.hasAttribute("data-tabindex")&&n(e);for(const o of t)n(o)}function jPe(e,t){"scrollIntoView"in e?(e.focus({preventScroll:!0}),e.scrollIntoView(Pt({block:"nearest",inline:"nearest"},t))):e.focus()}var PPe="div",dH=NN(),IPe=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"];function DPe(e){const{tagName:t,readOnly:n,type:o}=e;return t==="TEXTAREA"&&!n||t==="SELECT"&&!n?!0:t==="INPUT"&&!n?IPe.includes(o):!!(e.isContentEditable||e.getAttribute("role")==="combobox"&&e.dataset.name)}function FPe(e){return"labels"in e?e.labels:null}function pH(e){return e.tagName.toLowerCase()==="input"&&e.type?e.type==="radio"||e.type==="checkbox":!1}function $Pe(e){return e?e==="button"||e==="summary"||e==="input"||e==="select"||e==="textarea"||e==="a":!0}function VPe(e){return e?e==="button"||e==="input"||e==="select"||e==="textarea":!0}function HPe(e,t,n,o,r){return e?t?n&&!o?-1:void 0:n?r:r||0:r}function mq(e,t){return It(n=>{e?.(n),!n.defaultPrevented&&t&&(n.stopPropagation(),n.preventDefault())})}var KN=!0;function UPe(e){const t=e.target;t&&"hasAttribute"in t&&(t.hasAttribute("data-focus-visible")||(KN=!1))}function XPe(e){e.metaKey||e.ctrlKey||e.altKey||(KN=!0)}var Ah=_t(function(t){var n=t,{focusable:o=!0,accessibleWhenDisabled:r,autoFocus:s,onFocusVisible:i}=n,c=xt(n,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);const l=O.useRef(null);O.useEffect(()=>{o&&(lo("mousedown",UPe,!0),lo("keydown",XPe,!0))},[o]),dH&&O.useEffect(()=>{if(!o)return;const E=l.current;if(!E||!pH(E))return;const L=FPe(E);if(!L)return;const I=()=>queueMicrotask(()=>E.focus());for(const P of L)P.addEventListener("mouseup",I);return()=>{for(const P of L)P.removeEventListener("mouseup",I)}},[o]);const u=o&&hl(c),d=!!u&&!r,[p,f]=O.useState(!1);O.useEffect(()=>{o&&d&&p&&f(!1)},[o,d,p]),O.useEffect(()=>{if(!o||!p)return;const E=l.current;if(!E||typeof IntersectionObserver>"u")return;const L=new IntersectionObserver(()=>{Ca(E)||f(!1)});return L.observe(E),()=>L.disconnect()},[o,p]);const b=mq(c.onKeyPressCapture,u),h=mq(c.onMouseDownCapture,u),g=mq(c.onClickCapture,u),z=c.onMouseDown,y=It(E=>{if(z?.(E),E.defaultPrevented||!o)return;const L=E.currentTarget;if(!dH||lse(E)||!Jc(L)&&!pH(L))return;let I=!1;const P=()=>{I=!0},H={capture:!0,once:!0};L.addEventListener("focusin",P,H),Zb(L,"mouseup",()=>{L.removeEventListener("focusin",P,!0),!I&&Bse(L)})}),x=(E,L)=>{if(L&&(E.currentTarget=L),!o)return;const I=E.currentTarget;I&&Tv(I)&&(i?.(E),!E.defaultPrevented&&f(!0))},v=c.onKeyDownCapture,M=It(E=>{if(v?.(E),E.defaultPrevented||!o||p||E.metaKey||E.altKey||E.ctrlKey||!vr(E))return;const L=E.currentTarget;Zb(L,"focusout",()=>x(E,L))}),A=c.onFocusCapture,_=It(E=>{if(A?.(E),E.defaultPrevented||!o)return;if(!vr(E)){f(!1);return}const L=E.currentTarget,I=()=>x(E,L);KN||DPe(E.target)?Zb(E.target,"focusout",I):f(!1)}),w=c.onBlur,k=It(E=>{w?.(E),o&&nb(E)&&f(!1)}),q=O.useContext(Ese),S=It(E=>{o&&s&&E&&q&&queueMicrotask(()=>{Tv(E)||Ca(E)&&E.focus()})}),C=r3(l),T=o&&$Pe(C),W=o&&VPe(C),B=c.style,N=O.useMemo(()=>d?_e({pointerEvents:"none"},B):B,[d,B]);return c=Ve(_e({"data-focus-visible":o&&p||void 0,"data-autofocus":s||void 0,"aria-disabled":u||void 0},c),{ref:Cn(l,S,c.ref),style:N,tabIndex:HPe(o,d,T,W,c.tabIndex),disabled:W&&d?!0:void 0,contentEditable:u?void 0:c.contentEditable,onKeyPressCapture:b,onClickCapture:g,onMouseDownCapture:h,onMouseDown:y,onKeyDownCapture:M,onFocusCapture:_,onBlur:k}),Ir(c)});yt(function(t){const n=Ah(t);return vt(PPe,n)});var GPe="div";function KPe(e){return e.some(t=>!!t.rowId)}function YPe(e){const t=e.target;return t&&!Ml(t)?!1:e.key.length===1&&!e.ctrlKey&&!e.metaKey}function ZPe(e){return e.key==="Shift"||e.key==="Control"||e.key==="Alt"||e.key==="Meta"}function fH(e,t,n){return It(o=>{var r;if(t?.(o),o.defaultPrevented||o.isPropagationStopped()||!vr(o)||ZPe(o)||YPe(o))return;const s=e.getState(),i=(r=Kl(e,s.activeId))==null?void 0:r.element;if(!i)return;const c=o,l=xt(c,["view"]),u=n?.current;i!==u&&i.focus(),Nje(i,o.type,l)||o.preventDefault(),o.currentTarget.contains(i)&&o.stopPropagation()})}function QPe(e){return wPe(W8(rM(kPe(e))))}function JPe(e){const[t,n]=O.useState(!1),o=O.useCallback(()=>n(!0),[]),r=e.useState(s=>Kl(e,s.activeId));return O.useEffect(()=>{const s=r?.element;t&&s&&(n(!1),s.focus({preventScroll:!0}))},[r,t]),o}var yh=_t(function(t){var n=t,{store:o,composite:r=!0,focusOnMove:s=r,moveOnKeyPress:i=!0}=n,c=xt(n,["store","composite","focusOnMove","moveOnKeyPress"]);const l=$je();o=o||l,F0(o,!1);const u=O.useRef(null),d=O.useRef(null),p=JPe(o),f=o.useState("moves"),[,b]=bse(r?o.setBaseElement:null);O.useEffect(()=>{var W;if(!o||!f||!r||!s)return;const{activeId:B}=o.getState(),N=(W=Kl(o,B))==null?void 0:W.element;N&&jPe(N)},[o,f,r,s]),X0(()=>{if(!o||!f||!r)return;const{baseElement:W,activeId:B}=o.getState();if(!(B===null)||!W)return;const E=d.current;d.current=null,E&&Df(E,{relatedTarget:W}),Tv(W)||W.focus()},[o,f,r]);const h=o.useState("activeId"),g=o.useState("virtualFocus");X0(()=>{var W;if(!o||!r||!g)return;const B=d.current;if(d.current=null,!B)return;const E=((W=Kl(o,h))==null?void 0:W.element)||ml(B);E!==B&&Df(B,{relatedTarget:E})},[o,h,g,r]);const z=fH(o,c.onKeyDownCapture,d),y=fH(o,c.onKeyUpCapture,d),x=c.onFocusCapture,v=It(W=>{if(x?.(W),W.defaultPrevented||!o)return;const{virtualFocus:B}=o.getState();if(!B)return;const N=W.relatedTarget,E=CPe(W.currentTarget);vr(W)&&E&&(W.stopPropagation(),d.current=N)}),M=c.onFocus,A=It(W=>{if(M?.(W),W.defaultPrevented||!r||!o)return;const{relatedTarget:B}=W,{virtualFocus:N}=o.getState();N?vr(W)&&!NM(o,B)&&queueMicrotask(p):vr(W)&&o.setActiveId(null)}),_=c.onBlurCapture,w=It(W=>{var B;if(_?.(W),W.defaultPrevented||!o)return;const{virtualFocus:N,activeId:E}=o.getState();if(!N)return;const L=(B=Kl(o,E))==null?void 0:B.element,I=W.relatedTarget,P=NM(o,I),H=d.current;d.current=null,vr(W)&&P?(I===L?H&&H!==I&&Df(H,W):L?Df(L,W):H&&Df(H,W),W.stopPropagation()):!NM(o,W.target)&&L&&Df(L,W)}),k=c.onKeyDown,q=O1(i),S=It(W=>{var B;if(k?.(W),W.defaultPrevented||!o||!vr(W))return;const{orientation:N,items:E,renderedItems:L,activeId:I}=o.getState(),P=Kl(o,I);if((B=P?.element)!=null&&B.isConnected)return;const H=N!=="horizontal",U=N!=="vertical",X=KPe(L);if((W.key==="ArrowLeft"||W.key==="ArrowRight"||W.key==="Home"||W.key==="End")&&Ml(W.currentTarget))return;const Y={ArrowUp:(X||H)&&(()=>{if(X){const ee=E&&QPe(E);return ee?.id}return o?.last()}),ArrowRight:(X||U)&&o.first,ArrowDown:(X||H)&&o.first,ArrowLeft:(X||U)&&o.last,Home:o.first,End:o.last,PageUp:o.first,PageDown:o.last}[W.key];if(Y){const ee=Y();if(ee!==void 0){if(!q(W))return;W.preventDefault(),o.move(ee)}}});c=rn(c,W=>a.jsx(fd,{value:o,children:W}),[o]);const C=o.useState(W=>{var B;if(o&&r&&W.virtualFocus)return(B=Kl(o,W.activeId))==null?void 0:B.id});c=Ve(_e({"aria-activedescendant":C},c),{ref:Cn(u,b,c.ref),onKeyDownCapture:z,onKeyUpCapture:y,onFocusCapture:v,onFocus:A,onBlurCapture:w,onKeyDown:S});const T=o.useState(W=>r&&(W.virtualFocus||W.activeId===null));return c=Ah(_e({focusable:T},c)),c}),e9e=yt(function(t){const n=yh(t);return vt(GPe,n)}),t9e="button";function bH(e){if(!e.isTrusted)return!1;const t=e.currentTarget;return e.key==="Enter"?Jc(t)||t.tagName==="SUMMARY"||t.tagName==="A":e.key===" "?Jc(t)||t.tagName==="SUMMARY"||t.tagName==="INPUT"||t.tagName==="SELECT":!1}var n9e=Symbol("command"),d_=_t(function(t){var n=t,{clickOnEnter:o=!0,clickOnSpace:r=!0}=n,s=xt(n,["clickOnEnter","clickOnSpace"]);const i=O.useRef(null),c=r3(i),l=s.type,[u,d]=O.useState(()=>!!c&&Jc({tagName:c,type:l}));O.useEffect(()=>{i.current&&d(Jc(i.current))},[]);const[p,f]=O.useState(!1),b=O.useRef(!1),h=hl(s),[g,z]=hse(s,n9e,!0),y=s.onKeyDown,x=It(A=>{y?.(A);const _=A.currentTarget;if(A.defaultPrevented||g||h||!vr(A)||Ml(_)||_.isContentEditable)return;const w=o&&A.key==="Enter",k=r&&A.key===" ",q=A.key==="Enter"&&!o,S=A.key===" "&&!r;if(q||S){A.preventDefault();return}if(w||k){const C=bH(A);if(w){if(!C){A.preventDefault();const T=A,W=xt(T,["view"]),B=()=>nH(_,W);Tje()?Zb(_,"keyup",B):queueMicrotask(B)}}else k&&(b.current=!0,C||(A.preventDefault(),f(!0)))}}),v=s.onKeyUp,M=It(A=>{if(v?.(A),A.defaultPrevented||g||h||A.metaKey)return;const _=r&&A.key===" ";if(b.current&&_&&(b.current=!1,!bH(A))){A.preventDefault(),f(!1);const w=A.currentTarget,k=A,q=xt(k,["view"]);queueMicrotask(()=>nH(w,q))}});return s=Ve(_e(_e({"data-active":p||void 0,type:u?"button":void 0},z),s),{ref:Cn(i,s.ref),onKeyDown:x,onKeyUp:M}),s=Ah(s),s});yt(function(t){const n=d_(t);return vt(t9e,n)});var Nse="button",Lse=_t(function(t){const n=O.useRef(null),o=r3(n,Nse),[r,s]=O.useState(()=>!!o&&Jc({tagName:o,type:t.type}));return O.useEffect(()=>{n.current&&s(Jc(n.current))},[]),t=Ve(_e({role:!r&&o!=="a"?"button":void 0},t),{ref:Cn(n,t.ref)}),t=d_(t),t});yt(function(t){const n=Lse(t);return vt(Nse,n)});var o9e="button",r9e=Symbol("disclosure"),jse=_t(function(t){var n=t,{store:o,toggleOnClick:r=!0}=n,s=xt(n,["store","toggleOnClick"]);const i=$N();o=o||i,F0(o,!1);const c=O.useRef(null),[l,u]=O.useState(!1),d=o.useState("disclosureElement"),p=o.useState("open");O.useEffect(()=>{let x=d===c.current;d?.isConnected||(o?.setDisclosureElement(c.current),x=!0),u(p&&x)},[d,o,p]);const f=s.onClick,b=O1(r),[h,g]=hse(s,r9e,!0),z=It(x=>{f?.(x),!x.defaultPrevented&&(h||b(x)&&(o?.setDisclosureElement(x.currentTarget),o?.toggle()))}),y=o.useState("contentElement");return s=Ve(_e(_e({"aria-expanded":l,"aria-controls":y?.id},g),s),{ref:Cn(c,s.ref),onClick:z}),s=Lse(s),s});yt(function(t){const n=jse(t);return vt(o9e,n)});var s9e="button",Pse=_t(function(t){var n=t,{store:o}=n,r=xt(n,["store"]);const s=l_();o=o||s,F0(o,!1);const i=o.useState("contentElement");return r=_e({"aria-haspopup":c_(i,"dialog")},r),r=jse(_e({store:o},r)),r});yt(function(t){const n=Pse(t);return vt(s9e,n)});var Ise=O.createContext(void 0),i9e="div",Dse=_t(function(t){const n=O.useContext(Ise),o=Dr(t.id);return X0(()=>(n?.(o),()=>n?.(void 0)),[n,o]),t=_e({id:o,"aria-hidden":!0},t),Ir(t)});yt(function(t){const n=Dse(t);return vt(i9e,n)});var a9e="div",Fse=_t(function(t){var n=t,o=xt(n,["store"]);return o=Dse(o),o}),c9e=yt(function(t){const n=Fse(t);return vt(a9e,n)}),l9e="div",$se=_t(function(t){const[n,o]=O.useState();return t=rn(t,r=>a.jsx(Ise.Provider,{value:o,children:r}),[]),t=_e({role:"group","aria-labelledby":n},t),Ir(t)});yt(function(t){const n=$se(t);return vt(l9e,n)});var u9e="div",Vse=_t(function(t){var n=t,o=xt(n,["store"]);return o=$se(o),o}),d9e=yt(function(t){const n=Vse(t);return vt(u9e,n)}),Hse=O.createContext(!1),p9e="span",f9e=a.jsx("svg",{display:"block",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,viewBox:"0 0 16 16",height:"1em",width:"1em",children:a.jsx("polyline",{points:"4,8 7,12 12,4"})});function b9e(e){return e.checked?e.children||f9e:typeof e.children=="function"?e.children:null}var YN=_t(function(t){var n=t,{store:o,checked:r}=n,s=xt(n,["store","checked"]);const i=O.useContext(Hse);r=r??i;const c=b9e({checked:r,children:s.children});return s=Ve(_e({"aria-hidden":!0},s),{children:c,style:_e({width:"1em",height:"1em",pointerEvents:"none"},s.style)}),Ir(s)});yt(function(t){const n=YN(t);return vt(p9e,n)});var h9e="div";function Use(e){const t=e.relatedTarget;return t?.nodeType===Node.ELEMENT_NODE?t:null}function m9e(e){const t=Use(e);return t?u1(e.currentTarget,t):!1}var B8=Symbol("composite-hover");function M9e(e){let t=Use(e);if(!t)return!1;do{if(Pu(t,B8)&&t[B8])return!0;t=t.parentElement}while(t);return!1}var ZN=_t(function(t){var n=t,{store:o,focusOnHover:r=!0,blurOnHoverEnd:s=!!r}=n,i=xt(n,["store","focusOnHover","blurOnHoverEnd"]);const c=a3();o=o||c,F0(o,!1);const l=IN(),u=i.onMouseMove,d=O1(r),p=It(z=>{if(u?.(z),!z.defaultPrevented&&l()&&d(z)){if(!Au(z.currentTarget)){const y=o?.getState().baseElement;y&&!Tv(y)&&y.focus()}o?.setActiveId(z.currentTarget.id)}}),f=i.onMouseLeave,b=O1(s),h=It(z=>{var y;f?.(z),!z.defaultPrevented&&l()&&(m9e(z)||M9e(z)||d(z)&&b(z)&&(o?.setActiveId(null),(y=o?.getState().baseElement)==null||y.focus()))}),g=O.useCallback(z=>{z&&(z[B8]=!0)},[]);return i=Ve(_e({},i),{ref:Cn(g,i.ref),onMouseMove:p,onMouseLeave:h}),Ir(i)}),g9e=Za(yt(function(t){const n=ZN(t);return vt(h9e,n)})),z9e="div",QN=_t(function(t){var n=t,{store:o,shouldRegisterItem:r=!0,getItem:s=ise,element:i}=n,c=xt(n,["store","shouldRegisterItem","getItem","element"]);const l=Ije();o=o||l;const u=Dr(c.id),d=O.useRef(i);return O.useEffect(()=>{const p=d.current;if(!u||!p||!r)return;const f=s({id:u,element:p});return o?.renderItem(f)},[u,r,s,o]),c=Ve(_e({},c),{ref:Cn(d,c.ref)}),Ir(c)});yt(function(t){const n=QN(t);return vt(z9e,n)});var O9e="button";function A9e(e){return R8(e)?!0:e.tagName==="INPUT"&&!Jc(e)}function y9e(e,t=!1){const n=e.clientHeight,{top:o}=e.getBoundingClientRect(),r=Math.max(n*.875,n-40)*1.5,s=t?n-r+o:r+o;return e.tagName==="HTML"?s+e.scrollTop:s}function v9e(e,t=!1){const{top:n}=e.getBoundingClientRect();return t?n+e.clientHeight:n}function hH(e,t,n,o=!1){var r;if(!t||!n)return;const{renderedItems:s}=t.getState(),i=cse(e);if(!i)return;const c=y9e(i,o);let l,u;for(let d=0;d=0){u!==void 0&&u{if(r)return r;if(P&&g?.baseElement&&g.baseElement===P.baseElement)return g.id}),x=hl(p)&&!p.accessibleWhenDisabled,v=O.useCallback(P=>{const H=Ve(_e({},P),{id:b||P.id,rowId:z,disabled:!!x});return l?l(H):H},[b,z,x,l]),M=p.onFocus,A=O.useRef(!1),_=It(P=>{if(M?.(P),P.defaultPrevented||lse(P)||!b||!o||x9e(P,o))return;const{virtualFocus:H,baseElement:U}=o.getState();if(o.setActiveId(b),R8(P.currentTarget)&&qPe(P.currentTarget),!H||!vr(P)||A9e(P.currentTarget)||!U?.isConnected)return;NN()&&P.currentTarget.hasAttribute("data-autofocus")&&P.currentTarget.scrollIntoView({block:"nearest",inline:"nearest"}),A.current=!0,P.relatedTarget===U||NM(o,P.relatedTarget)?SPe(U):U.focus()}),w=p.onBlurCapture,k=It(P=>{if(w?.(P),P.defaultPrevented)return;const H=o?.getState();H?.virtualFocus&&A.current&&(A.current=!1,P.preventDefault(),P.stopPropagation())}),q=p.onKeyDown,S=O1(s),C=O1(i),T=It(P=>{if(q?.(P),P.defaultPrevented||!vr(P)||!o)return;const{currentTarget:H}=P,U=o.getState(),X=o.item(b),Z=!!X?.rowId,ne=U.orientation!=="horizontal",oe=U.orientation!=="vertical",Y=()=>!!(Z||oe||!U.baseElement||!Ml(U.baseElement)),ie={ArrowUp:(Z||ne)&&o.up,ArrowRight:(Z||oe)&&o.next,ArrowDown:(Z||ne)&&o.down,ArrowLeft:(Z||oe)&&o.previous,Home:()=>{if(Y())return!Z||P.ctrlKey?o?.first():o?.previous(-1)},End:()=>{if(Y())return!Z||P.ctrlKey?o?.last():o?.next(-1)},PageUp:()=>hH(H,o,o?.up,!0),PageDown:()=>hH(H,o,o?.down)}[P.key];if(ie){if(R8(H)){const be=Rje(H),ye=oe&&P.key==="ArrowLeft",xe=oe&&P.key==="ArrowRight",K=ne&&P.key==="ArrowUp",pe=ne&&P.key==="ArrowDown";if(xe||pe){const{length:G}=Cje(H);if(be.end!==G)return}else if((ye||K)&&be.start!==0)return}const se=ie();if(S(P)||se!==void 0){if(!C(P))return;P.preventDefault(),o.move(se)}}}),W=on(o,P=>P?.baseElement||void 0),B=O.useMemo(()=>({id:b,baseElement:W}),[b,W]);p=rn(p,P=>a.jsx(Vje.Provider,{value:B,children:P}),[B]);const N=on(o,P=>!!P&&P.activeId===b),E=on(o,P=>{if(u!=null)return u;if(P&&g?.ariaSetSize&&g.baseElement===P.baseElement)return g.ariaSetSize}),L=on(o,P=>{if(d!=null)return d;if(!P||!g?.ariaPosInSet||g.baseElement!==P.baseElement)return;const H=P.renderedItems.filter(U=>U.rowId===z);return g.ariaPosInSet+H.findIndex(U=>U.id===b)}),I=on(o,P=>P?.renderedItems.length?P.virtualFocus?!1:c?!0:P.activeId===b:!0);return p=Ve(_e({id:b,"data-active-item":N||void 0},p),{ref:Cn(h,p.ref),tabIndex:I?p.tabIndex:-1,onFocus:_,onBlurCapture:k,onKeyDown:T}),p=d_(p),p=QN(Ve(_e({store:o},p),{getItem:v,shouldRegisterItem:b?p.shouldRegisterItem:!1})),Ir(Ve(_e({},p),{"aria-setsize":E,"aria-posinset":L}))}),N8=Za(yt(function(t){const n=vh(t);return vt(O9e,n)})),_9e="div";function mH(e,t){const n=setTimeout(t,e);return()=>clearTimeout(n)}function w9e(e){let t=requestAnimationFrame(()=>{t=requestAnimationFrame(e)});return()=>cancelAnimationFrame(t)}function MH(...e){return e.join(", ").split(", ").reduce((t,n)=>{const o=n.endsWith("ms")?1:1e3,r=Number.parseFloat(n||"0s")*o;return r>t?r:t},0)}function p_(e,t,n){return!n&&t!==!1&&(!e||!!t)}var f_=_t(function(t){var n=t,{store:o,alwaysVisible:r}=n,s=xt(n,["store","alwaysVisible"]);const i=$N();o=o||i,F0(o,!1);const c=O.useRef(null),l=Dr(s.id),[u,d]=O.useState(null),p=o.useState("open"),f=o.useState("mounted"),b=o.useState("animated"),h=o.useState("contentElement"),g=on(o.disclosure,"contentElement");X0(()=>{c.current&&o?.setContentElement(c.current)},[o]),X0(()=>{let v;return o?.setState("animated",M=>(v=M,!0)),()=>{v!==void 0&&o?.setState("animated",v)}},[o]),X0(()=>{if(b){if(!h?.isConnected){d(null);return}return w9e(()=>{d(p?"enter":f?"leave":null)})}},[b,h,p,f]),X0(()=>{if(!o||!b)return;const v=()=>o?.setState("animating",!1),M=()=>Qo.flushSync(v);if(!u||!h){v();return}if(u==="leave"&&p||u==="enter"&&!p)return;if(typeof b=="number")return mH(b,M);const{transitionDuration:A,animationDuration:_,transitionDelay:w,animationDelay:k}=getComputedStyle(h),{transitionDuration:q="0",animationDuration:S="0",transitionDelay:C="0",animationDelay:T="0"}=g?getComputedStyle(g):{},W=MH(w,k,C,T),B=MH(A,_,q,S),N=W+B;if(!N){u==="enter"&&o.setState("animated",!1),v();return}const E=1e3/60,L=Math.max(N-E,0);return mH(L,M)},[o,b,h,g,p,u]),s=rn(s,v=>a.jsx(HN,{value:o,children:v}),[o]);const z=p_(f,s.hidden,r),y=s.style,x=O.useMemo(()=>z?Ve(_e({},y),{display:"none"}):y,[z,y]);return s=Ve(_e({id:l,"data-open":p||void 0,"data-enter":u==="enter"||void 0,"data-leave":u==="leave"||void 0,hidden:z},s),{ref:Cn(l?o.setContentElement:null,c,s.ref),style:x}),Ir(s)}),k9e=yt(function(t){const n=f_(t);return vt(_9e,n)});yt(function(t){var n=t,{unmountOnHide:o}=n,r=xt(n,["unmountOnHide"]);const s=$N(),i=r.store||s;return on(i,l=>!o||l?.mounted)===!1?null:a.jsx(k9e,_e({},r))});function Xse(e,...t){if(!e)return!1;const n=e.getAttribute("data-backdrop");return n==null?!1:n===""||n==="true"||!t.length?!0:t.some(o=>n===o)}var Mq=new WeakMap;function f3(e,t,n){Mq.has(e)||Mq.set(e,new Map);const o=Mq.get(e),r=o.get(t);if(!r)return o.set(t,n()),()=>{var c;(c=o.get(t))==null||c(),o.delete(t)};const s=n(),i=()=>{s(),r(),o.delete(t)};return o.set(t,i),()=>{o.get(t)===i&&(s(),o.set(t,r))}}function JN(e,t,n){return f3(e,t,()=>{const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{r==null?e.removeAttribute(t):e.setAttribute(t,r)}})}function Bp(e,t,n){return f3(e,t,()=>{const r=t in e,s=e[t];return e[t]=n,()=>{r?e[t]=s:delete e[t]}})}function L8(e,t){return e?f3(e,"style",()=>{const o=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=o}}):()=>{}}function q9e(e,t,n){return e?f3(e,t,()=>{const r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{r?e.style.setProperty(t,r):e.style.removeProperty(t)}}):()=>{}}var S9e=["SCRIPT","STYLE"];function j8(e){return`__ariakit-dialog-snapshot-${e}`}function C9e(e,t){const n=Zn(t),o=j8(e);if(!n.body[o])return!0;do{if(t===n.body)return!1;if(t[o])return!0;if(!t.parentElement)return!1;t=t.parentElement}while(!0)}function R9e(e,t,n){return S9e.includes(t.tagName)||!C9e(e,t)?!1:!n.some(o=>o&&u1(t,o))}function eL(e,t,n,o){for(let r of t){if(!r?.isConnected)continue;const s=t.some(l=>!l||l===r?!1:l.contains(r)),i=Zn(r),c=r;for(;r.parentElement&&r!==i.body;){if(o?.(r.parentElement,c),!s)for(const l of r.parentElement.children)R9e(e,l,t)&&n(l,c);r=r.parentElement}}}function W9e(e,t){const{body:n}=Zn(t[0]),o=[];return eL(e,t,s=>{o.push(Bp(s,j8(e),!0))}),$o(Bp(n,j8(e),!0),()=>{for(const s of o)s()})}function W2(e="",t=!1){return`__ariakit-dialog-${t?"ancestor":"outside"}${e?`-${e}`:""}`}function T9e(e,t=""){return $o(Bp(e,W2(),!0),Bp(e,W2(t),!0))}function Gse(e,t=""){return $o(Bp(e,W2("",!0),!0),Bp(e,W2(t,!0),!0))}function tL(e,t){const n=W2(t,!0);if(e[n])return!0;const o=W2(t);do{if(e[o])return!0;if(!e.parentElement)return!1;e=e.parentElement}while(!0)}function gH(e,t){const n=[],o=t.map(s=>s?.id);return eL(e,t,s=>{Xse(s,...o)||n.unshift(T9e(s,e))},(s,i)=>{i.hasAttribute("data-dialog")&&i.id!==e||n.unshift(Gse(s,e))}),()=>{for(const s of n)s()}}var E9e="div",B9e=["a","button","details","dialog","div","form","h1","h2","h3","h4","h5","h6","header","img","input","label","li","nav","ol","p","section","select","span","summary","textarea","ul","svg"];_t(function(t){return t});var Pg=yt(function(t){return vt(E9e,t)});Object.assign(Pg,B9e.reduce((e,t)=>(e[t]=yt(function(o){return vt(t,o)}),e),{}));function N9e({store:e,backdrop:t,alwaysVisible:n,hidden:o}){const r=O.useRef(null),s=wse({disclosure:e}),i=e.useState("contentElement");X0(()=>{const u=r.current,d=i;u&&d&&(u.style.zIndex=getComputedStyle(d).zIndex)},[i]),X0(()=>{const u=i?.id;if(!u)return;const d=r.current;if(d)return Gse(d,u)},[i]);const c=f_({ref:r,store:s,role:"presentation","data-backdrop":i?.id||"",alwaysVisible:n,hidden:o??void 0,style:{position:"fixed",top:0,right:0,bottom:0,left:0}});if(!t)return null;if(O.isValidElement(t))return a.jsx(Pg,Ve(_e({},c),{render:t}));const l=typeof t!="boolean"?t:"div";return a.jsx(Pg,Ve(_e({},c),{render:a.jsx(l,{})}))}function L9e(e){return JN(e,"aria-hidden","true")}function Kse(){return"inert"in HTMLElement.prototype}function Yse(e,t){if(!("style"in e))return Vy;if(Kse())return Bp(e,"inert",!0);const o=p3(e,!0).map(r=>{if(t?.some(i=>i&&u1(i,r)))return Vy;const s=f3(r,"focus",()=>(r.focus=Vy,()=>{delete r.focus}));return $o(JN(r,"tabindex","-1"),s)});return $o(...o,L9e(e),L8(e,{pointerEvents:"none",userSelect:"none",cursor:"default"}))}function j9e(e,t){const n=[],o=t.map(s=>s?.id);return eL(e,t,s=>{Xse(s,...o)||n.unshift(Yse(s,t))},s=>{s.hasAttribute("role")&&(t.some(i=>i&&u1(i,s))||n.unshift(JN(s,"role","none")))}),()=>{for(const s of n)s()}}function P9e({attribute:e,contentId:t,contentElement:n,enabled:o}){const[r,s]=jN(),i=O.useCallback(()=>{if(!o||!n)return!1;const{body:c}=Zn(n),l=c.getAttribute(e);return!l||l===t},[r,o,n,e,t]);return O.useEffect(()=>{if(!o||!t||!n)return;const{body:c}=Zn(n);if(i())return c.setAttribute(e,t),()=>c.removeAttribute(e);const l=new MutationObserver(()=>Qo.flushSync(s));return l.observe(c,{attributeFilter:[e]}),()=>l.disconnect()},[r,o,t,n,i,e]),i}function I9e(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function D9e(e,t,n){const o=P9e({attribute:"data-dialog-prevent-body-scroll",contentElement:e,contentId:t,enabled:n});O.useEffect(()=>{if(!o()||!e)return;const r=Zn(e),s=qje(e),{documentElement:i,body:c}=r,l=i.style.getPropertyValue("--scrollbar-width"),u=l?Number.parseInt(l):s.innerWidth-i.clientWidth,d=()=>q9e(i,"--scrollbar-width",`${u}px`),p=I9e(i),f=()=>L8(c,{overflow:"hidden",[p]:`${u}px`}),b=()=>{var g,z;const{scrollX:y,scrollY:x,visualViewport:v}=s,M=(g=v?.offsetLeft)!=null?g:0,A=(z=v?.offsetTop)!=null?z:0,_=L8(c,{position:"fixed",overflow:"hidden",top:`${-(x-Math.floor(A))}px`,left:`${-(y-Math.floor(M))}px`,right:"0",[p]:`${u}px`});return()=>{_(),s.scrollTo({left:y,top:x,behavior:"instant"})}},h=BN()&&!Eje();return $o(d(),h?b():f())},[o,e])}var zH=O.createContext({});function F9e(e){const t=O.useContext(zH),[n,o]=O.useState([]),r=O.useCallback(c=>{var l;return o(u=>[...u,c]),$o((l=t.add)==null?void 0:l.call(t,c),()=>{o(u=>u.filter(d=>d!==c))})},[t]);X0(()=>e1(e,["open","contentElement"],c=>{var l;if(c.open&&c.contentElement)return(l=t.add)==null?void 0:l.call(t,e)}),[e,t]);const s=O.useMemo(()=>({store:e,add:r}),[e,r]);return{wrapElement:O.useCallback(c=>a.jsx(zH.Provider,{value:s,children:c}),[s]),nestedDialogs:n}}function $9e(e){const t=O.useRef();return O.useEffect(()=>{if(!e){t.current=null;return}return lo("mousedown",o=>{t.current=o.target},!0)},[e]),t}function V9e(e){return e.tagName==="HTML"?!0:u1(Zn(e).body,e)}function H9e(e,t){if(!e)return!1;if(u1(e,t))return!0;const n=t.getAttribute("aria-activedescendant");if(n){const o=Zn(e).getElementById(n);if(o)return u1(e,o)}return!1}function U9e(e,t){if(!("clientY"in e))return!1;const n=t.getBoundingClientRect();return n.width===0||n.height===0?!1:n.top<=e.clientY&&e.clientY<=n.top+n.height&&n.left<=e.clientX&&e.clientX<=n.left+n.width}function gq({store:e,type:t,listener:n,capture:o,domReady:r}){const s=It(n),i=e.useState("open"),c=O.useRef(!1);X0(()=>{if(!i||!r)return;const{contentElement:l}=e.getState();if(!l)return;const u=()=>{c.current=!0};return l.addEventListener("focusin",u,!0),()=>l.removeEventListener("focusin",u,!0)},[e,i,r]),O.useEffect(()=>i?lo(t,u=>{const{contentElement:d,disclosureElement:p}=e.getState(),f=u.target;!d||!f||!V9e(f)||u1(d,f)||H9e(p,f)||f.hasAttribute("data-focus-trap")||U9e(u,d)||c.current&&!tL(f,d.id)||s(u)},o):void 0,[i,o])}function zq(e,t){return typeof e=="function"?e(t):!!e}function X9e(e,t,n){const o=e.useState("open"),r=$9e(o),s={store:e,domReady:n,capture:!0};gq(Ve(_e({},s),{type:"click",listener:i=>{const{contentElement:c}=e.getState(),l=r.current;l&&ase(l)&&tL(l,c?.id)&&zq(t,i)&&e.hide()}})),gq(Ve(_e({},s),{type:"focusin",listener:i=>{const{contentElement:c}=e.getState();c&&i.target!==Zn(c)&&zq(t,i)&&e.hide()}})),gq(Ve(_e({},s),{type:"contextmenu",listener:i=>{zq(t,i)&&e.hide()}}))}function G9e(e,t){const o=Zn(e).createElement("button");return o.type="button",o.tabIndex=-1,o.textContent="Dismiss popup",Object.assign(o.style,{border:"0px",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0px",position:"absolute",whiteSpace:"nowrap",width:"1px"}),o.addEventListener("click",t),e.prepend(o),()=>{o.removeEventListener("click",t),o.remove()}}var K9e="div",Zse=_t(function(t){var n=t,{autoFocusOnShow:o=!0}=n,r=xt(n,["autoFocusOnShow"]);return r=rn(r,s=>a.jsx(Ese.Provider,{value:o,children:s}),[o]),r});yt(function(t){const n=Zse(t);return vt(K9e,n)});var OH=O.createContext(0);function Y9e({level:e,children:t}){const n=O.useContext(OH),o=Math.max(Math.min(e||n+1,6),1);return a.jsx(OH.Provider,{value:o,children:t})}var Z9e="span",Qse=_t(function(t){return t=Ve(_e({},t),{style:_e({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},t.style)}),t});yt(function(t){const n=Qse(t);return vt(Z9e,n)});var Q9e="span",J9e=_t(function(t){return t=Ve(_e({"data-focus-trap":"",tabIndex:0,"aria-hidden":!0},t),{style:_e({position:"fixed",top:0,left:0},t.style)}),t=Qse(t),t}),aA=yt(function(t){const n=J9e(t);return vt(Q9e,n)}),AH=O.createContext(null),eIe="div";function tIe(e){return Zn(e).body}function nIe(e,t){return t?typeof t=="function"?t(e):t:Zn(e).createElement("div")}function oIe(e="id"){return`${e?`${e}-`:""}${Math.random().toString(36).substr(2,6)}`}function Wl(e){queueMicrotask(()=>{e?.focus()})}var Jse=_t(function(t){var n=t,{preserveTabOrder:o,preserveTabOrderAnchor:r,portalElement:s,portalRef:i,portal:c=!0}=n,l=xt(n,["preserveTabOrder","preserveTabOrderAnchor","portalElement","portalRef","portal"]);const u=O.useRef(null),d=Cn(u,l.ref),p=O.useContext(AH),[f,b]=O.useState(null),[h,g]=O.useState(null),z=O.useRef(null),y=O.useRef(null),x=O.useRef(null),v=O.useRef(null);return X0(()=>{const M=u.current;if(!M||!c){b(null);return}const A=nIe(M,s);if(!A){b(null);return}const _=A.isConnected;if(_||(p||tIe(M)).appendChild(A),A.id||(A.id=M.id?`portal/${M.id}`:oIe()),b(A),C8(i,A),!_)return()=>{A.remove(),C8(i,null)}},[c,s,p,i]),X0(()=>{if(!c||!o||!r)return;const A=Zn(r).createElement("span");return A.style.position="fixed",r.insertAdjacentElement("afterend",A),g(A),()=>{A.remove(),g(null)}},[c,o,r]),O.useEffect(()=>{if(!f||!o)return;let M=0;const A=_=>{if(!nb(_))return;const w=_.type==="focusin";if(cancelAnimationFrame(M),w)return LPe(f);M=requestAnimationFrame(()=>{NPe(f,!0)})};return f.addEventListener("focusin",A,!0),f.addEventListener("focusout",A,!0),()=>{cancelAnimationFrame(M),f.removeEventListener("focusin",A,!0),f.removeEventListener("focusout",A,!0)}},[f,o]),l=rn(l,M=>{if(M=a.jsx(AH.Provider,{value:f||p,children:M}),!c)return M;if(!f)return a.jsx("span",{ref:d,id:l.id,style:{position:"fixed"},hidden:!0});M=a.jsxs(a.Fragment,{children:[o&&f&&a.jsx(aA,{ref:y,className:"__focus-trap-inner-before",onFocus:_=>{nb(_,f)?Wl(hq()):Wl(z.current)}}),M,o&&f&&a.jsx(aA,{ref:x,className:"__focus-trap-inner-after",onFocus:_=>{nb(_,f)?Wl(uH()):Wl(v.current)}})]}),f&&(M=Qo.createPortal(M,f));let A=a.jsxs(a.Fragment,{children:[o&&f&&a.jsx(aA,{ref:z,className:"__focus-trap-outer-before",onFocus:_=>{!(_.relatedTarget===v.current)&&nb(_,f)?Wl(y.current):Wl(uH())}}),o&&a.jsx("span",{"aria-owns":f?.id,style:{position:"fixed"}}),o&&f&&a.jsx(aA,{ref:v,className:"__focus-trap-outer-after",onFocus:_=>{if(nb(_,f))Wl(x.current);else{const w=hq();if(w===y.current){requestAnimationFrame(()=>{var k;return(k=hq())==null?void 0:k.focus()});return}Wl(w)}}})]});return h&&o&&(A=Qo.createPortal(A,h)),a.jsxs(a.Fragment,{children:[A,M]})},[f,p,c,l.id,o,h]),l=Ve(_e({},l),{ref:d}),l});yt(function(t){const n=Jse(t);return vt(eIe,n)});var rIe="div",yH=NN();function sIe(e){const t=ml();return!t||e&&u1(e,t)?!1:!!Ca(t)}function vH(e,t=!1){if(!e)return null;const n="current"in e?e.current:e;return n?t?Ca(n)?n:null:n:null}var eie=_t(function(t){var n=t,{store:o,open:r,onClose:s,focusable:i=!0,modal:c=!0,portal:l=!!c,backdrop:u=!!c,hideOnEscape:d=!0,hideOnInteractOutside:p=!0,getPersistentElements:f,preventBodyScroll:b=!!c,autoFocusOnShow:h=!0,autoFocusOnHide:g=!0,initialFocus:z,finalFocus:y,unmountOnHide:x,unstable_treeSnapshotKey:v}=n,M=xt(n,["store","open","onClose","focusable","modal","portal","backdrop","hideOnEscape","hideOnInteractOutside","getPersistentElements","preventBodyScroll","autoFocusOnShow","autoFocusOnHide","initialFocus","finalFocus","unmountOnHide","unstable_treeSnapshotKey"]);const A=l_(),_=O.useRef(null),w=hPe({store:o||A,open:r,setOpen(he){if(he)return;const Q=_.current;if(!Q)return;const R=new Event("close",{bubbles:!1,cancelable:!0});s&&Q.addEventListener("close",s,{once:!0}),Q.dispatchEvent(R),R.defaultPrevented&&w.setOpen(!0)}}),{portalRef:k,domReady:q}=PN(l,M.portalRef),S=M.preserveTabOrder,C=w.useState(he=>S&&!c&&he.mounted),T=Dr(M.id),W=w.useState("open"),B=w.useState("mounted"),N=w.useState("contentElement"),E=p_(B,M.hidden,M.alwaysVisible);D9e(N,T,b&&!E),X9e(w,p,q);const{wrapElement:L,nestedDialogs:I}=F9e(w);M=rn(M,L,[L]),X0(()=>{if(!W)return;const he=_.current,Q=ml(he,!0);Q&&Q.tagName!=="BODY"&&(he&&u1(he,Q)||w.setDisclosureElement(Q))},[w,W]),yH&&O.useEffect(()=>{if(!B)return;const{disclosureElement:he}=w.getState();if(!he||!Jc(he))return;const Q=()=>{let R=!1;const j=()=>{R=!0},V={capture:!0,once:!0};he.addEventListener("focusin",j,V),Zb(he,"mouseup",()=>{he.removeEventListener("focusin",j,!0),!R&&Bse(he)})};return he.addEventListener("mousedown",Q),()=>{he.removeEventListener("mousedown",Q)}},[w,B]),O.useEffect(()=>{if(!c||!B||!q)return;const he=_.current;if(!(!he||he.querySelector("[data-dialog-dismiss]")))return G9e(he,w.hide)},[w,c,B,q]),X0(()=>{if(!Kse()||W||!B||!q)return;const he=_.current;if(he)return Yse(he)},[W,B,q]);const P=W&&q;X0(()=>{if(!T||!P)return;const he=_.current;return W9e(T,[he])},[T,P,v]);const H=It(f);X0(()=>{if(!T||!P)return;const{disclosureElement:he}=w.getState(),Q=_.current,R=H()||[],j=[Q,...R,...I.map(V=>V.getState().contentElement)];return c?$o(gH(T,j),j9e(T,j)):gH(T,[he,...j])},[T,w,P,H,I,c,v]);const U=!!h,X=O1(h),[Z,ne]=O.useState(!1);O.useEffect(()=>{if(!W||!U||!q||!N?.isConnected)return;const he=vH(z,!0)||N.querySelector("[data-autofocus=true],[autofocus]")||WPe(N,!0,l&&C)||N,Q=Ca(he);X(Q?he:null)&&(ne(!0),queueMicrotask(()=>{he.focus(),yH&&he.scrollIntoView({block:"nearest",inline:"nearest"})}))},[W,U,q,N,z,l,C,X]);const oe=!!g,Y=O1(g),[ee,ie]=O.useState(!1);O.useEffect(()=>{if(W)return ie(!0),()=>ie(!1)},[W]);const se=O.useCallback((he,Q=!0)=>{const{disclosureElement:R}=w.getState();if(sIe(he))return;let j=vH(y)||R;if(j?.id){const de=Zn(j),ge=`[aria-activedescendant="${j.id}"]`,ve=de.querySelector(ge);ve&&(j=ve)}if(j&&!Ca(j)){const de=j.closest("[data-dialog]");if(de?.id){const ge=Zn(de),ve=`[aria-controls~="${de.id}"]`,Ne=ge.querySelector(ve);Ne&&(j=Ne)}}const V=j&&Ca(j);if(!V&&Q){requestAnimationFrame(()=>se(he,!1));return}Y(V?j:null)&&V&&j?.focus()},[w,y,Y]),be=O.useRef(!1);X0(()=>{if(W||!ee||!oe)return;const he=_.current;be.current=!0,se(he)},[W,ee,q,oe,se]),O.useEffect(()=>{if(!ee||!oe)return;const he=_.current;return()=>{if(be.current){be.current=!1;return}se(he)}},[ee,oe,se]);const ye=O1(d);O.useEffect(()=>!q||!B?void 0:lo("keydown",Q=>{if(Q.key!=="Escape"||Q.defaultPrevented)return;const R=_.current;if(!R||tL(R))return;const j=Q.target;if(!j)return;const{disclosureElement:V}=w.getState();!!(j.tagName==="BODY"||u1(R,j)||!V||u1(V,j))&&ye(Q)&&w.hide()},!0),[w,q,B,ye]),M=rn(M,he=>a.jsx(Y9e,{level:c?1:void 0,children:he}),[c]);const xe=M.hidden,K=M.alwaysVisible;M=rn(M,he=>u?a.jsxs(a.Fragment,{children:[a.jsx(N9e,{store:w,backdrop:u,hidden:xe,alwaysVisible:K}),he]}):he,[w,u,xe,K]);const[pe,G]=O.useState(),[re,Me]=O.useState();return M=rn(M,he=>a.jsx(HN,{value:w,children:a.jsx(zPe.Provider,{value:G,children:a.jsx(OPe.Provider,{value:Me,children:he})})}),[w]),M=Ve(_e({id:T,"data-dialog":"",role:"dialog",tabIndex:i?-1:void 0,"aria-labelledby":pe,"aria-describedby":re},M),{ref:Cn(_,M.ref)}),M=Zse(Ve(_e({},M),{autoFocusOnShow:Z})),M=f_(_e({store:w},M)),M=Ah(Ve(_e({},M),{focusable:i})),M=Jse(Ve(_e({portal:l},M),{portalRef:k,preserveTabOrder:C})),M});function xh(e,t=l_){return yt(function(o){const r=t(),s=o.store||r;return on(s,c=>!o.unmountOnHide||c?.mounted||!!o.open)?a.jsx(e,_e({},o)):null})}xh(yt(function(t){const n=eie(t);return vt(rIe,n)}),l_);const Aa=Math.min,Xr=Math.max,Ev=Math.round,cA=Math.floor,Du=e=>({x:e,y:e}),iIe={left:"right",right:"left",bottom:"top",top:"bottom"},aIe={start:"end",end:"start"};function P8(e,t,n){return Xr(e,Aa(t,n))}function Fu(e,t){return typeof e=="function"?e(t):e}function el(e){return e.split("-")[0]}function _h(e){return e.split("-")[1]}function nL(e){return e==="x"?"y":"x"}function oL(e){return e==="y"?"height":"width"}function $u(e){return["top","bottom"].includes(el(e))?"y":"x"}function rL(e){return nL($u(e))}function cIe(e,t,n){n===void 0&&(n=!1);const o=_h(e),r=rL(e),s=oL(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Bv(i)),[i,Bv(i)]}function lIe(e){const t=Bv(e);return[I8(e),t,I8(t)]}function I8(e){return e.replace(/start|end/g,t=>aIe[t])}function uIe(e,t,n){const o=["left","right"],r=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?s:i;default:return[]}}function dIe(e,t,n,o){const r=_h(e);let s=uIe(el(e),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(I8)))),s}function Bv(e){return e.replace(/left|right|bottom|top/g,t=>iIe[t])}function pIe(e){return{top:0,right:0,bottom:0,left:0,...e}}function tie(e){return typeof e!="number"?pIe(e):{top:e,right:e,bottom:e,left:e}}function Nv(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function xH(e,t,n){let{reference:o,floating:r}=e;const s=$u(t),i=rL(t),c=oL(i),l=el(t),u=s==="y",d=o.x+o.width/2-r.width/2,p=o.y+o.height/2-r.height/2,f=o[c]/2-r[c]/2;let b;switch(l){case"top":b={x:d,y:o.y-r.height};break;case"bottom":b={x:d,y:o.y+o.height};break;case"right":b={x:o.x+o.width,y:p};break;case"left":b={x:o.x-r.width,y:p};break;default:b={x:o.x,y:o.y}}switch(_h(t)){case"start":b[i]-=f*(n&&u?-1:1);break;case"end":b[i]+=f*(n&&u?-1:1);break}return b}const fIe=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}=n,c=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:p}=xH(u,o,l),f=o,b={},h=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:i,elements:c,middlewareData:l}=t,{element:u,padding:d=0}=Fu(e,t)||{};if(u==null)return{};const p=tie(d),f={x:n,y:o},b=rL(r),h=oL(b),g=await i.getDimensions(u),z=b==="y",y=z?"top":"left",x=z?"bottom":"right",v=z?"clientHeight":"clientWidth",M=s.reference[h]+s.reference[b]-f[b]-s.floating[h],A=f[b]-s.reference[b],_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let w=_?_[v]:0;(!w||!await(i.isElement==null?void 0:i.isElement(_)))&&(w=c.floating[v]||s.floating[h]);const k=M/2-A/2,q=w/2-g[h]/2-1,S=Aa(p[y],q),C=Aa(p[x],q),T=S,W=w-g[h]-C,B=w/2-g[h]/2+k,N=P8(T,B,W),E=!l.arrow&&_h(r)!=null&&B!==N&&s.reference[h]/2-(BB<=0)){var C,T;const B=(((C=s.flip)==null?void 0:C.index)||0)+1,N=w[B];if(N)return{data:{index:B,overflows:S},reset:{placement:N}};let E=(T=S.filter(L=>L.overflows[0]<=0).sort((L,I)=>L.overflows[1]-I.overflows[1])[0])==null?void 0:T.placement;if(!E)switch(b){case"bestFit":{var W;const L=(W=S.filter(I=>{if(_){const P=$u(I.placement);return P===x||P==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(P=>P>0).reduce((P,H)=>P+H,0)]).sort((I,P)=>I[1]-P[1])[0])==null?void 0:W[0];L&&(E=L);break}case"initialPlacement":E=c;break}if(r!==E)return{reset:{placement:E}}}return{}}}};async function mIe(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=el(n),c=_h(n),l=$u(n)==="y",u=["left","top"].includes(i)?-1:1,d=s&&l?-1:1,p=Fu(t,e);let{mainAxis:f,crossAxis:b,alignmentAxis:h}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return c&&typeof h=="number"&&(b=c==="end"?h*-1:h),l?{x:b*d,y:f*u}:{x:f*u,y:b*d}}const MIe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:i,middlewareData:c}=t,l=await mIe(t,e);return i===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:i}}}}},gIe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:c={fn:z=>{let{x:y,y:x}=z;return{x:y,y:x}}},...l}=Fu(e,t),u={x:n,y:o},d=await sL(t,l),p=$u(el(r)),f=nL(p);let b=u[f],h=u[p];if(s){const z=f==="y"?"top":"left",y=f==="y"?"bottom":"right",x=b+d[z],v=b-d[y];b=P8(x,b,v)}if(i){const z=p==="y"?"top":"left",y=p==="y"?"bottom":"right",x=h+d[z],v=h-d[y];h=P8(x,h,v)}const g=c.fn({...t,[f]:b,[p]:h});return{...g,data:{x:g.x-n,y:g.y-o}}}}},zIe=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:i}=t,{offset:c=0,mainAxis:l=!0,crossAxis:u=!0}=Fu(e,t),d={x:n,y:o},p=$u(r),f=nL(p);let b=d[f],h=d[p];const g=Fu(c,t),z=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const v=f==="y"?"height":"width",M=s.reference[f]-s.floating[v]+z.mainAxis,A=s.reference[f]+s.reference[v]-z.mainAxis;bA&&(b=A)}if(u){var y,x;const v=f==="y"?"width":"height",M=["top","left"].includes(el(r)),A=s.reference[p]-s.floating[v]+(M&&((y=i.offset)==null?void 0:y[p])||0)+(M?0:z.crossAxis),_=s.reference[p]+s.reference[v]+(M?0:((x=i.offset)==null?void 0:x[p])||0)-(M?z.crossAxis:0);h_&&(h=_)}return{[f]:b,[p]:h}}}},OIe=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:s}=t,{apply:i=()=>{},...c}=Fu(e,t),l=await sL(t,c),u=el(n),d=_h(n),p=$u(n)==="y",{width:f,height:b}=o.floating;let h,g;u==="top"||u==="bottom"?(h=u,g=d===(await(r.isRTL==null?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(g=u,h=d==="end"?"top":"bottom");const z=b-l.top-l.bottom,y=f-l.left-l.right,x=Aa(b-l[h],z),v=Aa(f-l[g],y),M=!t.middlewareData.shift;let A=x,_=v;if(p?_=d||M?Aa(v,y):y:A=d||M?Aa(x,z):z,M&&!d){const k=Xr(l.left,0),q=Xr(l.right,0),S=Xr(l.top,0),C=Xr(l.bottom,0);p?_=f-2*(k!==0||q!==0?k+q:Xr(l.left,l.right)):A=b-2*(S!==0||C!==0?S+C:Xr(l.top,l.bottom))}await i({...t,availableWidth:_,availableHeight:A});const w=await r.getDimensions(s.floating);return f!==w.width||b!==w.height?{reset:{rects:!0}}:{}}}};function wh(e){return nie(e)?(e.nodeName||"").toLowerCase():"#document"}function ts(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function gl(e){var t;return(t=(nie(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function nie(e){return e instanceof Node||e instanceof ts(e).Node}function Wi(e){return e instanceof Element||e instanceof ts(e).Element}function Da(e){return e instanceof HTMLElement||e instanceof ts(e).HTMLElement}function _H(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ts(e).ShadowRoot}function b3(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Ti(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function AIe(e){return["table","td","th"].includes(wh(e))}function b_(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function iL(e){const t=aL(),n=Wi(e)?Ti(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function yIe(e){let t=Vu(e);for(;Da(t)&&!T2(t);){if(iL(t))return t;if(b_(t))return null;t=Vu(t)}return null}function aL(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function T2(e){return["html","body","#document"].includes(wh(e))}function Ti(e){return ts(e).getComputedStyle(e)}function h_(e){return Wi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Vu(e){if(wh(e)==="html")return e;const t=e.assignedSlot||e.parentNode||_H(e)&&e.host||gl(e);return _H(t)?t.host:t}function oie(e){const t=Vu(e);return T2(t)?e.ownerDocument?e.ownerDocument.body:e.body:Da(t)&&b3(t)?t:oie(t)}function Ig(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=oie(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),i=ts(r);if(s){const c=D8(i);return t.concat(i,i.visualViewport||[],b3(r)?r:[],c&&n?Ig(c):[])}return t.concat(r,Ig(r,[],n))}function D8(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function rie(e){const t=Ti(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Da(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o,c=Ev(n)!==s||Ev(o)!==i;return c&&(n=s,o=i),{width:n,height:o,$:c}}function cL(e){return Wi(e)?e:e.contextElement}function Qb(e){const t=cL(e);if(!Da(t))return Du(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=rie(t);let i=(s?Ev(n.width):n.width)/o,c=(s?Ev(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const vIe=Du(0);function sie(e){const t=ts(e);return!aL()||!t.visualViewport?vIe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function xIe(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ts(e)?!1:t}function Np(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=cL(e);let i=Du(1);t&&(o?Wi(o)&&(i=Qb(o)):i=Qb(e));const c=xIe(s,n,o)?sie(s):Du(0);let l=(r.left+c.x)/i.x,u=(r.top+c.y)/i.y,d=r.width/i.x,p=r.height/i.y;if(s){const f=ts(s),b=o&&Wi(o)?ts(o):o;let h=f,g=D8(h);for(;g&&o&&b!==h;){const z=Qb(g),y=g.getBoundingClientRect(),x=Ti(g),v=y.left+(g.clientLeft+parseFloat(x.paddingLeft))*z.x,M=y.top+(g.clientTop+parseFloat(x.paddingTop))*z.y;l*=z.x,u*=z.y,d*=z.x,p*=z.y,l+=v,u+=M,h=ts(g),g=D8(h)}}return Nv({width:d,height:p,x:l,y:u})}function _Ie(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",i=gl(o),c=t?b_(t.floating):!1;if(o===i||c&&s)return n;let l={scrollLeft:0,scrollTop:0},u=Du(1);const d=Du(0),p=Da(o);if((p||!p&&!s)&&((wh(o)!=="body"||b3(i))&&(l=h_(o)),Da(o))){const f=Np(o);u=Qb(o),d.x=f.x+o.clientLeft,d.y=f.y+o.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x,y:n.y*u.y-l.scrollTop*u.y+d.y}}function wIe(e){return Array.from(e.getClientRects())}function iie(e){return Np(gl(e)).left+h_(e).scrollLeft}function kIe(e){const t=gl(e),n=h_(e),o=e.ownerDocument.body,r=Xr(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=Xr(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+iie(e);const c=-n.scrollTop;return Ti(o).direction==="rtl"&&(i+=Xr(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:i,y:c}}function qIe(e,t){const n=ts(e),o=gl(e),r=n.visualViewport;let s=o.clientWidth,i=o.clientHeight,c=0,l=0;if(r){s=r.width,i=r.height;const u=aL();(!u||u&&t==="fixed")&&(c=r.offsetLeft,l=r.offsetTop)}return{width:s,height:i,x:c,y:l}}function SIe(e,t){const n=Np(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=Da(e)?Qb(e):Du(1),i=e.clientWidth*s.x,c=e.clientHeight*s.y,l=r*s.x,u=o*s.y;return{width:i,height:c,x:l,y:u}}function wH(e,t,n){let o;if(t==="viewport")o=qIe(e,n);else if(t==="document")o=kIe(gl(e));else if(Wi(t))o=SIe(t,n);else{const r=sie(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return Nv(o)}function aie(e,t){const n=Vu(e);return n===t||!Wi(n)||T2(n)?!1:Ti(n).position==="fixed"||aie(n,t)}function CIe(e,t){const n=t.get(e);if(n)return n;let o=Ig(e,[],!1).filter(c=>Wi(c)&&wh(c)!=="body"),r=null;const s=Ti(e).position==="fixed";let i=s?Vu(e):e;for(;Wi(i)&&!T2(i);){const c=Ti(i),l=iL(i);!l&&c.position==="fixed"&&(r=null),(s?!l&&!r:!l&&c.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||b3(i)&&!l&&aie(e,i))?o=o.filter(d=>d!==i):r=c,i=Vu(i)}return t.set(e,o),o}function RIe(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?b_(t)?[]:CIe(t,this._c):[].concat(n),o],c=i[0],l=i.reduce((u,d)=>{const p=wH(t,d,r);return u.top=Xr(p.top,u.top),u.right=Aa(p.right,u.right),u.bottom=Aa(p.bottom,u.bottom),u.left=Xr(p.left,u.left),u},wH(t,c,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function WIe(e){const{width:t,height:n}=rie(e);return{width:t,height:n}}function TIe(e,t,n){const o=Da(t),r=gl(t),s=n==="fixed",i=Np(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const l=Du(0);if(o||!o&&!s)if((wh(t)!=="body"||b3(r))&&(c=h_(t)),o){const p=Np(t,!0,s,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else r&&(l.x=iie(r));const u=i.left+c.scrollLeft-l.x,d=i.top+c.scrollTop-l.y;return{x:u,y:d,width:i.width,height:i.height}}function Oq(e){return Ti(e).position==="static"}function kH(e,t){return!Da(e)||Ti(e).position==="fixed"?null:t?t(e):e.offsetParent}function cie(e,t){const n=ts(e);if(b_(e))return n;if(!Da(e)){let r=Vu(e);for(;r&&!T2(r);){if(Wi(r)&&!Oq(r))return r;r=Vu(r)}return n}let o=kH(e,t);for(;o&&AIe(o)&&Oq(o);)o=kH(o,t);return o&&T2(o)&&Oq(o)&&!iL(o)?n:o||yIe(e)||n}const EIe=async function(e){const t=this.getOffsetParent||cie,n=this.getDimensions,o=await n(e.floating);return{reference:TIe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function BIe(e){return Ti(e).direction==="rtl"}const NIe={convertOffsetParentRelativeRectToViewportRelativeRect:_Ie,getDocumentElement:gl,getClippingRect:RIe,getOffsetParent:cie,getElementRects:EIe,getClientRects:wIe,getDimensions:WIe,getScale:Qb,isElement:Wi,isRTL:BIe};function LIe(e,t){let n=null,o;const r=gl(e);function s(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function i(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),s();const{left:u,top:d,width:p,height:f}=e.getBoundingClientRect();if(c||t(),!p||!f)return;const b=cA(d),h=cA(r.clientWidth-(u+p)),g=cA(r.clientHeight-(d+f)),z=cA(u),x={rootMargin:-b+"px "+-h+"px "+-g+"px "+-z+"px",threshold:Xr(0,Aa(1,l))||1};let v=!0;function M(A){const _=A[0].intersectionRatio;if(_!==l){if(!v)return i();_?i(!1,_):o=setTimeout(()=>{i(!1,1e-7)},1e3)}v=!1}try{n=new IntersectionObserver(M,{...x,root:r.ownerDocument})}catch{n=new IntersectionObserver(M,x)}n.observe(e)}return i(!0),s}function lie(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=cL(e),d=r||s?[...u?Ig(u):[],...Ig(t)]:[];d.forEach(y=>{r&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const p=u&&c?LIe(u,n):null;let f=-1,b=null;i&&(b=new ResizeObserver(y=>{let[x]=y;x&&x.target===u&&b&&(b.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var v;(v=b)==null||v.observe(t)})),n()}),u&&!l&&b.observe(u),b.observe(t));let h,g=l?Np(e):null;l&&z();function z(){const y=Np(e);g&&(y.x!==g.x||y.y!==g.y||y.width!==g.width||y.height!==g.height)&&n(),g=y,h=requestAnimationFrame(z)}return n(),()=>{var y;d.forEach(x=>{r&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),p?.(),(y=b)==null||y.disconnect(),b=null,l&&cancelAnimationFrame(h)}}const uie=MIe,die=gIe,pie=hIe,fie=OIe,F8=bIe,bie=zIe,hie=(e,t,n)=>{const o=new Map,r={platform:NIe,...n},s={...r.platform,_c:o};return fIe(e,t,{...r,platform:s})};var jIe="div";function qH(e=0,t=0,n=0,o=0){if(typeof DOMRect=="function")return new DOMRect(e,t,n,o);const r={x:e,y:t,width:n,height:o,top:t,right:e+n,bottom:t+o,left:e};return Ve(_e({},r),{toJSON:()=>r})}function PIe(e){if(!e)return qH();const{x:t,y:n,width:o,height:r}=e;return qH(t,n,o,r)}function IIe(e,t){return{contextElement:e||void 0,getBoundingClientRect:()=>{const o=e,r=t?.(o);return r||!o?PIe(r):o.getBoundingClientRect()}}}function DIe(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function SH(e){const t=window.devicePixelRatio||1;return Math.round(e*t)/t}function FIe(e,t){return uie(({placement:n})=>{var o;const r=(e?.clientHeight||0)/2,s=typeof t.gutter=="number"?t.gutter+r:(o=t.gutter)!=null?o:r;return{crossAxis:!!n.split("-")[1]?void 0:t.shift,mainAxis:s,alignmentAxis:t.shift}})}function $Ie(e){if(e.flip===!1)return;const t=typeof e.flip=="string"?e.flip.split(" "):void 0;return F0(!t||t.every(DIe),!1),pie({padding:e.overflowPadding,fallbackPlacements:t})}function VIe(e){if(!(!e.slide&&!e.overlap))return die({mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:bie()})}function HIe(e){return fie({padding:e.overflowPadding,apply({elements:t,availableWidth:n,availableHeight:o,rects:r}){const s=t.floating,i=Math.round(r.reference.width);n=Math.floor(n),o=Math.floor(o),s.style.setProperty("--popover-anchor-width",`${i}px`),s.style.setProperty("--popover-available-width",`${n}px`),s.style.setProperty("--popover-available-height",`${o}px`),e.sameWidth&&(s.style.width=`${i}px`),e.fitViewport&&(s.style.maxWidth=`${n}px`,s.style.maxHeight=`${o}px`)}})}function UIe(e,t){if(e)return F8({element:e,padding:t.arrowPadding})}var lL=_t(function(t){var n=t,{store:o,modal:r=!1,portal:s=!!r,preserveTabOrder:i=!0,autoFocusOnShow:c=!0,wrapperProps:l,fixed:u=!1,flip:d=!0,shift:p=0,slide:f=!0,overlap:b=!1,sameWidth:h=!1,fitViewport:g=!1,gutter:z,arrowPadding:y=4,overflowPadding:x=8,getAnchorRect:v,updatePosition:M}=n,A=xt(n,["store","modal","portal","preserveTabOrder","autoFocusOnShow","wrapperProps","fixed","flip","shift","slide","overlap","sameWidth","fitViewport","gutter","arrowPadding","overflowPadding","getAnchorRect","updatePosition"]);const _=u_();o=o||_,F0(o,!1);const w=o.useState("arrowElement"),k=o.useState("anchorElement"),q=o.useState("disclosureElement"),S=o.useState("popoverElement"),C=o.useState("contentElement"),T=o.useState("placement"),W=o.useState("mounted"),B=o.useState("rendered"),N=O.useRef(null),[E,L]=O.useState(!1),{portalRef:I,domReady:P}=PN(s,A.portalRef),H=It(v),U=It(M),X=!!M;X0(()=>{if(!S?.isConnected)return;S.style.setProperty("--popover-overflow-padding",`${x}px`);const ne=IIe(k,H),oe=async()=>{if(!W)return;w||(N.current=N.current||document.createElement("div"));const ie=w||N.current,se=[FIe(ie,{gutter:z,shift:p}),$Ie({flip:d,overflowPadding:x}),VIe({slide:f,shift:p,overlap:b,overflowPadding:x}),UIe(ie,{arrowPadding:y}),HIe({sameWidth:h,fitViewport:g,overflowPadding:x})],be=await hie(ne,S,{placement:T,strategy:u?"fixed":"absolute",middleware:se});o?.setState("currentPlacement",be.placement),L(!0);const ye=SH(be.x),xe=SH(be.y);if(Object.assign(S.style,{top:"0",left:"0",transform:`translate3d(${ye}px,${xe}px,0)`}),ie&&be.middlewareData.arrow){const{x:K,y:pe}=be.middlewareData.arrow,G=be.placement.split("-")[0],re=ie.clientWidth/2,Me=ie.clientHeight/2,he=K!=null?K+re:-re,Q=pe!=null?pe+Me:-Me;S.style.setProperty("--popover-transform-origin",{top:`${he}px calc(100% + ${Me}px)`,bottom:`${he}px ${-Me}px`,left:`calc(100% + ${re}px) ${Q}px`,right:`${-re}px ${Q}px`}[G]),Object.assign(ie.style,{left:K!=null?`${K}px`:"",top:pe!=null?`${pe}px`:"",[G]:"100%"})}},ee=lie(ne,S,async()=>{X?(await U({updatePosition:oe}),L(!0)):await oe()},{elementResize:typeof ResizeObserver=="function"});return()=>{L(!1),ee()}},[o,B,S,w,k,S,T,W,P,u,d,p,f,b,h,g,z,y,x,H,X,U]),X0(()=>{if(!W||!P||!S?.isConnected||!C?.isConnected)return;const ne=()=>{S.style.zIndex=getComputedStyle(C).zIndex};ne();let oe=requestAnimationFrame(()=>{oe=requestAnimationFrame(ne)});return()=>cancelAnimationFrame(oe)},[W,P,S,C]);const Z=u?"fixed":"absolute";return A=rn(A,ne=>a.jsx("div",Ve(_e({},l),{style:_e({position:Z,top:0,left:0,width:"max-content"},l?.style),ref:o?.setPopoverElement,children:ne})),[o,Z,l]),A=rn(A,ne=>a.jsx(d3,{value:o,children:ne}),[o]),A=Ve(_e({"data-placing":!E||void 0},A),{style:_e({position:"relative"},A.style)}),A=eie(Ve(_e({store:o,modal:r,portal:s,preserveTabOrder:i,preserveTabOrderAnchor:q||k,autoFocusOnShow:E&&c},A),{portalRef:I})),A});xh(yt(function(t){const n=lL(t);return vt(jIe,n)}),u_);var XIe="div",GIe=_t(function(t){var n=t,{store:o,"aria-setsize":r,"aria-posinset":s}=n,i=xt(n,["store","aria-setsize","aria-posinset"]);const c=a3();o=o||c,F0(o,!1);const l=Dr(i.id),u=o.useState(p=>p.baseElement||void 0),d=O.useMemo(()=>({id:l,baseElement:u,ariaSetSize:r,ariaPosInSet:s}),[l,u,r,s]);return i=rn(i,p=>a.jsx(mse.Provider,{value:d,children:p}),[d]),i=_e({id:l},i),Ir(i)}),KIe=yt(function(t){const n=GIe(t);return vt(XIe,n)}),YIe="hr",mie=_t(function(t){var n=t,{orientation:o="horizontal"}=n,r=xt(n,["orientation"]);return r=_e({role:"separator","aria-orientation":o},r),r});yt(function(t){const n=mie(t);return vt(YIe,n)});var ZIe="hr",Mie=_t(function(t){var n=t,{store:o}=n,r=xt(n,["store"]);const s=a3();o=o||s,F0(o,!1);const i=o.useState(c=>c.orientation==="horizontal"?"vertical":"horizontal");return r=mie(Ve(_e({},r),{orientation:i})),r});yt(function(t){const n=Mie(t);return vt(ZIe,n)});function QIe(e={}){var t;e.store;const n=(t=e.store)==null?void 0:t.getState(),o={value:qt(e.value,n?.value,e.defaultValue,!1)},r=Vo(o,e.store);return S0(Pt({},r),{setValue:s=>r.setState("value",s)})}function JIe(e,t,n){return Iu(t,[n.store]),yn(e,n,"value","setValue"),e}function eDe(e={}){const[t,n]=$i(QIe,e);return JIe(t,n,e)}var tDe=cr(),nDe=tDe.useContext,gie="input";function CH(e,t){t?e.indeterminate=!0:e.indeterminate&&(e.indeterminate=!1)}function oDe(e,t){return e==="input"&&(!t||t==="checkbox")}function RH(e){return Array.isArray(e)?e.toString():e}var zie=_t(function(t){var n=t,{store:o,name:r,value:s,checked:i,defaultChecked:c}=n,l=xt(n,["store","name","value","checked","defaultChecked"]);const u=nDe();o=o||u;const[d,p]=O.useState(c??!1),f=on(o,q=>{if(i!==void 0)return i;if(q?.value===void 0)return d;if(s!=null){if(Array.isArray(q.value)){const S=RH(s);return q.value.includes(S)}return q.value===s}return Array.isArray(q.value)?!1:typeof q.value=="boolean"?q.value:!1}),b=O.useRef(null),h=r3(b,gie),g=oDe(h,l.type),z=f?f==="mixed":void 0,y=f==="mixed"?!1:f,x=hl(l),[v,M]=jN();O.useEffect(()=>{const q=b.current;q&&(CH(q,z),!g&&(q.checked=y,r!==void 0&&(q.name=r),s!==void 0&&(q.value=`${s}`)))},[v,z,g,y,r,s]);const A=l.onChange,_=It(q=>{if(x){q.stopPropagation(),q.preventDefault();return}if(CH(q.currentTarget,z),g||(q.currentTarget.checked=!q.currentTarget.checked,M()),A?.(q),q.defaultPrevented)return;const S=q.currentTarget.checked;p(S),o?.setValue(C=>{if(s==null)return S;const T=RH(s);return Array.isArray(C)?S?C.includes(T)?C:[...C,T]:C.filter(W=>W!==T):C===T?!1:T})}),w=l.onClick,k=It(q=>{w?.(q),!q.defaultPrevented&&(g||_(q))});return l=rn(l,q=>a.jsx(Hse.Provider,{value:y,children:q}),[y]),l=Ve(_e({role:g?void 0:"checkbox",type:g?"checkbox":void 0,"aria-checked":f},l),{ref:Cn(b,l.ref),onChange:_,onClick:k}),l=d_(_e({clickOnEnter:!g},l)),Ir(_e({name:g?r:void 0,value:g?s:void 0,checked:y},l))});yt(function(t){const n=zie(t);return vt(gie,n)});var uL=cr([fd],[gf]),rDe=uL.useContext,sDe=uL.useProviderContext,iDe=uL.ScopedContextProvider,Oie="input";function aDe(e,t){if(t!==void 0)return e!=null&&t!=null?t===e:!!t}function cDe(e,t){return e==="input"&&(!t||t==="radio")}var Aie=_t(function(t){var n=t,{store:o,name:r,value:s,checked:i}=n,c=xt(n,["store","name","value","checked"]);const l=rDe();o=o||l;const u=Dr(c.id),d=O.useRef(null),p=on(o,w=>i??aDe(s,w?.value));O.useEffect(()=>{!u||!p||o?.getState().activeId===u||o?.setActiveId(u)},[o,p,u]);const f=c.onChange,b=r3(d,Oie),h=cDe(b,c.type),g=hl(c),[z,y]=jN();O.useEffect(()=>{const w=d.current;w&&(h||(p!==void 0&&(w.checked=p),r!==void 0&&(w.name=r),s!==void 0&&(w.value=`${s}`)))},[z,h,p,r,s]);const x=It(w=>{if(g){w.preventDefault(),w.stopPropagation();return}h||(w.currentTarget.checked=!0,y()),f?.(w),!w.defaultPrevented&&o?.setValue(s)}),v=c.onClick,M=It(w=>{v?.(w),!w.defaultPrevented&&(h||x(w))}),A=c.onFocus,_=It(w=>{if(A?.(w),w.defaultPrevented||!h||!o)return;const{moves:k,activeId:q}=o.getState();k&&(u&&q!==u||x(w))});return c=Ve(_e({id:u,role:h?void 0:"radio",type:h?"radio":void 0,"aria-checked":p},c),{ref:Cn(d,c.ref),onChange:x,onClick:M,onFocus:_}),c=vh(_e({store:o,clickOnEnter:!h},c)),Ir(_e({name:h?r:void 0,value:h?s:void 0,checked:p},c))}),yie=Za(yt(function(t){const n=Aie(t);return vt(Oie,n)})),lDe="div",wc="";function Aq(){wc=""}function uDe(e){const t=e.target;return t&&Ml(t)?!1:e.key===" "&&wc.length?!0:e.key.length===1&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&/^[\p{Letter}\p{Number}]$/u.test(e.key)}function dDe(e,t){if(vr(e))return!0;const n=e.target;return n?t.some(r=>r.element===n):!1}function pDe(e){return e.filter(t=>!t.disabled)}function Hy(e,t){var n;const o=((n=e.element)==null?void 0:n.textContent)||e.children||"value"in e&&e.value;return o?Oje(o).trim().toLowerCase().startsWith(t.toLowerCase()):!1}function fDe(e,t,n){if(!n)return e;const o=e.find(r=>r.id===n);return!o||!Hy(o,t)||wc!==t&&Hy(o,wc)?e:(wc=t,_Pe(e.filter(r=>Hy(r,wc)),n).filter(r=>r.id!==n))}var h3=_t(function(t){var n=t,{store:o,typeahead:r=!0}=n,s=xt(n,["store","typeahead"]);const i=a3();o=o||i,F0(o,!1);const c=s.onKeyDownCapture,l=O.useRef(0),u=It(d=>{if(c?.(d),d.defaultPrevented||!r||!o)return;const{renderedItems:p,items:f,activeId:b}=o.getState();if(!uDe(d))return Aq();let h=pDe(p.length?p:f);if(!dDe(d,h))return Aq();d.preventDefault(),window.clearTimeout(l.current),l.current=window.setTimeout(()=>{wc=""},500);const g=d.key.toLowerCase();wc+=g,h=fDe(h,g,b);const z=h.find(y=>Hy(y,wc));z?o.move(z.id):Aq()});return s=Ve(_e({},s),{onKeyDownCapture:u}),Ir(s)}),bDe=yt(function(t){const n=h3(t);return vt(lDe,n)});function hDe(e={}){var t=o3(e,[]),n;const o=(n=t.store)==null?void 0:n.getState(),r=zh(S0(Pt({},t),{focusLoop:qt(t.focusLoop,o?.focusLoop,!0)})),s=S0(Pt({},r.getState()),{value:qt(t.value,o?.value,t.defaultValue,null)}),i=Vo(s,r,t.store);return S0(Pt(Pt({},r),i),{setValue:c=>i.setState("value",c)})}function mDe(e,t,n){return e=Oh(e,t,n),yn(e,n,"value","setValue"),e}function vie(e={}){const[t,n]=$i(hDe,e);return mDe(t,n,e)}var MDe="div",gDe=_t(function(t){var n=t,{store:o}=n,r=xt(n,["store"]);const s=sDe();return o=o||s,F0(o,!1),r=rn(r,i=>a.jsx(iDe,{value:o,children:i}),[o]),r=_e({role:"radiogroup"},r),r=yh(_e({store:o},r)),r}),xie=yt(function(t){const n=gDe(t);return vt(MDe,n)}),zDe="span",ODe={top:"4,10 8,6 12,10",right:"6,4 10,8 6,12",bottom:"4,6 8,10 12,6",left:"10,4 6,8 10,12"},_ie=_t(function(t){var n=t,{store:o,placement:r}=n,s=xt(n,["store","placement"]);const i=APe();o=o||i,F0(o,!1);const l=o.useState(p=>r||p.placement).split("-")[0],u=ODe[l],d=O.useMemo(()=>a.jsx("svg",{display:"block",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,viewBox:"0 0 16 16",height:"1em",width:"1em",children:a.jsx("polyline",{points:u})}),[u]);return s=Ve(_e({children:d,"aria-hidden":!0},s),{style:_e({width:"1em",height:"1em",pointerEvents:"none"},s.style)}),Ir(s)});yt(function(t){const n=_ie(t);return vt(zDe,n)});var ADe="button",dL=_t(function(t){var n=t,{store:o}=n,r=xt(n,["store"]);const s=u_();o=o||s,F0(o,!1);const i=r.onClick,c=It(l=>{o?.setAnchorElement(l.currentTarget),i?.(l)});return r=rn(r,l=>a.jsx(d3,{value:o,children:l}),[o]),r=Ve(_e({},r),{onClick:c}),r=Tse(_e({store:o},r)),r=Pse(_e({store:o},r)),r});yt(function(t){const n=dL(t);return vt(ADe,n)});var wie=cr([fd],[gf]),yDe=wie.useContext,vDe=wie.useScopedContext;O.createContext(void 0);var m3=cr([UN],[d3]);m3.useContext;m3.useScopedContext;var pL=m3.useProviderContext,kie=m3.ContextProvider,fL=m3.ScopedContextProvider,M3=cr([fd,kie],[gf,fL]),qie=M3.useContext,bL=M3.useScopedContext,m_=M3.useProviderContext,xDe=M3.ContextProvider,_De=M3.ScopedContextProvider,Sie=O.createContext(void 0);function Cie(e={}){var t;const n=(t=e.store)==null?void 0:t.getState(),o=Sse(S0(Pt({},e),{placement:qt(e.placement,n?.placement,"bottom")})),r=qt(e.timeout,n?.timeout,500),s=S0(Pt({},o.getState()),{timeout:r,showTimeout:qt(e.showTimeout,n?.showTimeout),hideTimeout:qt(e.hideTimeout,n?.hideTimeout),autoFocusOnShow:qt(n?.autoFocusOnShow,!1)}),i=Vo(s,o,e.store);return S0(Pt(Pt({},o),i),{setAutoFocusOnShow:c=>i.setState("autoFocusOnShow",c)})}function Rie(e,t,n){return yn(e,n,"timeout"),yn(e,n,"showTimeout"),yn(e,n,"hideTimeout"),Cse(e,t,n)}function wDe(e={}){var t=e,{combobox:n,parent:o,menubar:r}=t,s=o3(t,["combobox","parent","menubar"]);const i=!!r&&!o,c=c3(s.store,Hje(o,["values"]),C2(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),l=c.getState(),u=zh(S0(Pt({},s),{store:c,orientation:qt(s.orientation,l.orientation,"vertical")})),d=Cie(S0(Pt({},s),{store:c,placement:qt(s.placement,l.placement,"bottom-start"),timeout:qt(s.timeout,l.timeout,i?0:150),hideTimeout:qt(s.hideTimeout,l.hideTimeout,0)})),p=S0(Pt(Pt({},u.getState()),d.getState()),{initialFocus:qt(l.initialFocus,"container"),values:qt(s.values,l.values,s.defaultValues,{})}),f=Vo(p,u,d,c);return V1(f,()=>e1(f,["mounted"],b=>{b.mounted||f.setState("activeId",null)})),V1(f,()=>e1(o,["orientation"],b=>{f.setState("placement",b.orientation==="vertical"?"right-start":"bottom-start")})),S0(Pt(Pt(Pt({},u),d),f),{combobox:n,parent:o,menubar:r,hideAll:()=>{d.hide(),o?.hideAll()},setInitialFocus:b=>f.setState("initialFocus",b),setValues:b=>f.setState("values",b),setValue:(b,h)=>{b!=="__proto__"&&b!=="constructor"&&(Array.isArray(b)||f.setState("values",g=>{const z=g[b],y=sse(h,z);return y===z?g:S0(Pt({},g),{[b]:y!==void 0&&y})}))}})}function kDe(e,t,n){return Iu(t,[n.combobox,n.parent,n.menubar]),yn(e,n,"values","setValues"),Object.assign(Rie(Oh(e,t,n),t,n),{combobox:n.combobox,parent:n.parent,menubar:n.menubar})}function qDe(e={}){const t=qie(),n=yDe(),o=Wse();e=Ve(_e({},e),{parent:e.parent!==void 0?e.parent:t,menubar:e.menubar!==void 0?e.menubar:n,combobox:e.combobox!==void 0?e.combobox:o});const[r,s]=$i(wDe,e);return kDe(r,s,e)}var SDe="div";function CDe(e){var t=e,{store:n}=t,o=xt(t,["store"]);const[r,s]=O.useState(void 0),i=o["aria-label"],c=on(n,"disclosureElement"),l=on(n,"contentElement");return O.useEffect(()=>{const u=c;if(!u)return;const d=l;if(!d)return;i||d.hasAttribute("aria-label")?s(void 0):u.id&&s(u.id)},[i,c,l]),r}var Wie=_t(function(t){var n=t,{store:o,alwaysVisible:r,composite:s}=n,i=xt(n,["store","alwaysVisible","composite"]);const c=m_();o=o||c,F0(o,!1);const l=o.parent,u=o.menubar,d=!!l,p=Dr(i.id),f=i.onKeyDown,b=o.useState(w=>w.placement.split("-")[0]),h=o.useState(w=>w.orientation==="both"?void 0:w.orientation),g=h!=="vertical",z=on(u,w=>!!w&&w.orientation!=="vertical"),y=It(w=>{if(f?.(w),!w.defaultPrevented){if(d||u&&!g){const q={ArrowRight:()=>b==="left"&&!g,ArrowLeft:()=>b==="right"&&!g,ArrowUp:()=>b==="bottom"&&g,ArrowDown:()=>b==="top"&&g}[w.key];if(q?.())return w.stopPropagation(),w.preventDefault(),o?.hide()}if(u){const q={ArrowRight:()=>{if(z)return u.next()},ArrowLeft:()=>{if(z)return u.previous()},ArrowDown:()=>{if(!z)return u.next()},ArrowUp:()=>{if(!z)return u.previous()}}[w.key],S=q?.();S!==void 0&&(w.stopPropagation(),w.preventDefault(),u.move(S))}}});i=rn(i,w=>a.jsx(_De,{value:o,children:w}),[o]);const x=CDe(_e({store:o},i)),v=o.useState("mounted"),M=p_(v,i.hidden,r),A=M?Ve(_e({},i.style),{display:"none"}):i.style;i=Ve(_e({id:p,"aria-labelledby":x,hidden:M},i),{ref:Cn(p?o.setContentElement:null,i.ref),style:A,onKeyDown:y});const _=!!o.combobox;return s=s??!_,s&&(i=_e({role:"menu","aria-orientation":h},i)),i=yh(_e({store:o,composite:s},i)),i=h3(_e({store:o,typeahead:!_},i)),i});yt(function(t){const n=Wie(t);return vt(SDe,n)});function yq(e){return[e.clientX,e.clientY]}function WH(e,t){const[n,o]=e;let r=!1;const s=t.length;for(let i=s,c=0,l=i-1;c=f&&o0&&(o===f?o>b&&(r=!r):r=!r)}}else if(dd&&o<=f){if(h===0)return!0;h<0&&(o===f?o=p&&n<=u||n>=u&&n<=p))return!0}return r}function RDe(e,t){const{top:n,right:o,bottom:r,left:s}=t,[i,c]=e,l=io?"right":null,u=cr?"bottom":null;return[l,u]}function TH(e,t){const n=e.getBoundingClientRect(),{top:o,right:r,bottom:s,left:i}=n,[c,l]=RDe(t,n),u=[t];return c?(l!=="top"&&u.push([c==="left"?i:r,o]),u.push([c==="left"?r:i,o]),u.push([c==="left"?r:i,s]),l!=="bottom"&&u.push([c==="left"?i:r,s])):l==="top"?(u.push([i,o]),u.push([i,s]),u.push([r,s]),u.push([r,o])):(u.push([i,s]),u.push([i,o]),u.push([r,o]),u.push([r,s])),u}var WDe="div";function Tie(e,t,n,o){return Au(t)?!0:e?!!(u1(t,e)||n&&u1(n,e)||o?.some(r=>Tie(e,r,n))):!1}function TDe(e){var t=e,{store:n}=t,o=xt(t,["store"]);const[r,s]=O.useState(!1),i=n.useState("mounted");O.useEffect(()=>{i||s(!1)},[i]);const c=o.onFocus,l=It(d=>{c?.(d),!d.defaultPrevented&&s(!0)}),u=O.useRef(null);return O.useEffect(()=>e1(n,["anchorElement"],d=>{u.current=d.anchorElement}),[]),o=Ve(_e({autoFocusOnHide:r,finalFocus:u},o),{onFocus:l}),o}var EH=O.createContext(null),hL=_t(function(t){var n=t,{store:o,modal:r=!1,portal:s=!!r,hideOnEscape:i=!0,hideOnHoverOutside:c=!0,disablePointerEventsOnApproach:l=!!c}=n,u=xt(n,["store","modal","portal","hideOnEscape","hideOnHoverOutside","disablePointerEventsOnApproach"]);const d=pL();o=o||d,F0(o,!1);const p=O.useRef(null),[f,b]=O.useState([]),h=O.useRef(0),g=O.useRef(null),{portalRef:z,domReady:y}=PN(s,u.portalRef),x=IN(),v=!!c,M=O1(c),A=!!l,_=O1(l),w=o.useState("open"),k=o.useState("mounted");O.useEffect(()=>{if(!y||!k||!v&&!A)return;const W=p.current;return W?$o(lo("mousemove",N=>{if(!o||!x())return;const{anchorElement:E,hideTimeout:L,timeout:I}=o.getState(),P=g.current,[H]=N.composedPath(),U=E;if(Tie(H,W,U,f)){g.current=H&&U&&u1(U,H)?yq(N):null,window.clearTimeout(h.current),h.current=0;return}if(!h.current){if(P){const X=yq(N),Z=TH(W,P);if(WH(X,Z)){if(g.current=X,!_(N))return;N.preventDefault(),N.stopPropagation();return}}M(N)&&(h.current=window.setTimeout(()=>{h.current=0,o?.hide()},L??I))}},!0),()=>clearTimeout(h.current)):void 0},[o,x,y,k,v,A,f,_,M]),O.useEffect(()=>{if(!y||!k||!A)return;const W=B=>{const N=p.current;if(!N)return;const E=g.current;if(!E)return;const L=TH(N,E);if(WH(yq(B),L)){if(!_(B))return;B.preventDefault(),B.stopPropagation()}};return $o(lo("mouseenter",W,!0),lo("mouseover",W,!0),lo("mouseout",W,!0),lo("mouseleave",W,!0))},[y,k,A,_]),O.useEffect(()=>{y&&(w||o?.setAutoFocusOnShow(!1))},[o,y,w]);const q=fse(w);O.useEffect(()=>{if(y)return()=>{q.current||o?.setAutoFocusOnShow(!1)}},[o,y]);const S=O.useContext(EH);X0(()=>{if(r||!s||!k||!y)return;const W=p.current;if(W)return S?.(W)},[r,s,k,y]);const C=O.useCallback(W=>{b(N=>[...N,W]);const B=S?.(W);return()=>{b(N=>N.filter(E=>E!==W)),B?.()}},[S]);u=rn(u,W=>a.jsx(fL,{value:o,children:a.jsx(EH.Provider,{value:C,children:W})}),[o,C]),u=Ve(_e({},u),{ref:Cn(p,u.ref)}),u=TDe(_e({store:o},u));const T=o.useState(W=>r||W.autoFocusOnShow);return u=lL(Ve(_e({store:o,modal:r,portal:s,autoFocusOnShow:T},u),{portalRef:z,hideOnEscape(W){return Lg(i,W)?!1:(requestAnimationFrame(()=>{requestAnimationFrame(()=>{o?.hide()})}),!0)}})),u});xh(yt(function(t){const n=hL(t);return vt(WDe,n)}),pL);var EDe="div",BDe=_t(function(t){var n=t,{store:o,modal:r=!1,portal:s=!!r,hideOnEscape:i=!0,autoFocusOnShow:c=!0,hideOnHoverOutside:l,alwaysVisible:u}=n,d=xt(n,["store","modal","portal","hideOnEscape","autoFocusOnShow","hideOnHoverOutside","alwaysVisible"]);const p=m_();o=o||p,F0(o,!1);const f=O.useRef(null),b=o.parent,h=o.menubar,g=!!b,z=!!h&&!g;d=Ve(_e({},d),{ref:Cn(f,d.ref)});const y=Wie(_e({store:o,alwaysVisible:u},d)),{"aria-labelledby":x}=y;d=xt(y,["aria-labelledby"]);const[M,A]=O.useState(),_=o.useState("autoFocusOnShow"),w=o.useState("initialFocus"),k=o.useState("baseElement"),q=o.useState("renderedItems");O.useEffect(()=>{let E=!1;return A(L=>{var I,P,H;if(E||!_)return;if((I=L?.current)!=null&&I.isConnected)return L;const U=O.createRef();switch(w){case"first":U.current=((P=q.find(X=>!X.disabled&&X.element))==null?void 0:P.element)||null;break;case"last":U.current=((H=[...q].reverse().find(X=>!X.disabled&&X.element))==null?void 0:H.element)||null;break;default:U.current=k}return U}),()=>{E=!0}},[o,_,w,q,k]);const S=g?!1:r,C=!!c,T=!!M||!!d.initialFocus||!!S,W=on(o.combobox||o,"contentElement"),B=on(b?.combobox||b,"contentElement"),N=O.useMemo(()=>{if(!B||!W)return;const E=W.getAttribute("role"),L=B.getAttribute("role");if(!((L==="menu"||L==="menubar")&&E==="menu"))return B},[W,B]);return N!==void 0&&(d=_e({preserveTabOrderAnchor:N},d)),d=hL(Ve(_e({store:o,alwaysVisible:u,initialFocus:M,autoFocusOnShow:C?T&&c:_||!!S},d),{hideOnEscape(E){return Lg(i,E)?!1:(o?.hideAll(),!0)},hideOnHoverOutside(E){const L=o?.getState().disclosureElement;return(typeof l=="function"?l(E):l??(g?!0:z?L?!Au(L):!0:!1))?E.defaultPrevented||!g||!L||(Bje(L,"mouseout",E),!Au(L))?!0:(requestAnimationFrame(()=>{Au(L)||o?.hide()}),!1):!1},modal:S,portal:s,backdrop:g?!1:d.backdrop})),d=_e({"aria-labelledby":x},d),d}),NDe=xh(yt(function(t){const n=BDe(t);return vt(EDe,n)}),m_),LDe="a",mL=_t(function(t){var n=t,{store:o,showOnHover:r=!0}=n,s=xt(n,["store","showOnHover"]);const i=pL();o=o||i,F0(o,!1);const c=hl(s),l=O.useRef(0);O.useEffect(()=>()=>window.clearTimeout(l.current),[]),O.useEffect(()=>lo("mouseleave",y=>{if(!o)return;const{anchorElement:x}=o.getState();x&&y.target===x&&(window.clearTimeout(l.current),l.current=0)},!0),[o]);const u=s.onMouseMove,d=O1(r),p=IN(),f=It(z=>{if(u?.(z),c||!o||z.defaultPrevented||l.current||!p()||!d(z))return;const y=z.currentTarget;o.setAnchorElement(y),o.setDisclosureElement(y);const{showTimeout:x,timeout:v}=o.getState(),M=()=>{l.current=0,p()&&(o?.setAnchorElement(y),o?.show(),queueMicrotask(()=>{o?.setDisclosureElement(y)}))},A=x??v;A===0?M():l.current=window.setTimeout(M,A)}),b=s.onClick,h=It(z=>{b?.(z),o&&(window.clearTimeout(l.current),l.current=0)}),g=O.useCallback(z=>{if(!o)return;const{anchorElement:y}=o.getState();y?.isConnected||o.setAnchorElement(z)},[o]);return s=Ve(_e({},s),{ref:Cn(g,s.ref),onMouseMove:f,onClick:h}),s=Ah(s),s});yt(function(t){const n=mL(t);return vt(LDe,n)});var jDe="button";function PDe(e,t){return{ArrowDown:t==="bottom"||t==="top"?"first":!1,ArrowUp:t==="bottom"||t==="top"?"last":!1,ArrowRight:t==="right"?"first":!1,ArrowLeft:t==="left"?"first":!1}[e.key]}function BH(e,t){return!!e?.some(n=>!n.element||n.element===t?!1:n.element.getAttribute("aria-expanded")==="true")}var IDe=_t(function(t){var n=t,{store:o,focusable:r,accessibleWhenDisabled:s,showOnHover:i}=n,c=xt(n,["store","focusable","accessibleWhenDisabled","showOnHover"]);const l=m_();o=o||l,F0(o,!1);const u=O.useRef(null),d=o.parent,p=o.menubar,f=!!d,b=!!p&&!f,h=hl(c),g=()=>{const C=u.current;C&&(o?.setDisclosureElement(C),o?.setAnchorElement(C),o?.show())},z=c.onFocus,y=It(C=>{if(z?.(C),h||C.defaultPrevented||(o?.setAutoFocusOnShow(!1),o?.setActiveId(null),!p)||!b)return;const{items:T}=p.getState();BH(T,C.currentTarget)&&g()}),x=o.useState(C=>C.placement.split("-")[0]),v=c.onKeyDown,M=It(C=>{if(v?.(C),h||C.defaultPrevented)return;const T=PDe(C,x);T&&(C.preventDefault(),g(),o?.setAutoFocusOnShow(!0),o?.setInitialFocus(T))}),A=c.onClick,_=It(C=>{if(A?.(C),C.defaultPrevented||!o)return;const T=!C.detail,{open:W}=o.getState();(!W||T)&&((!f||T)&&o.setAutoFocusOnShow(!0),o.setInitialFocus(T?"first":"container")),f&&g()});c=rn(c,C=>a.jsx(xDe,{value:o,children:C}),[o]),f&&(c=Ve(_e({},c),{render:a.jsx(Pg.div,{render:c.render})}));const w=Dr(c.id),k=on(d?.combobox||d,"contentElement"),q=f||b?EN(k,"menuitem"):void 0,S=o.useState("contentElement");return c=Ve(_e({id:w,role:q,"aria-haspopup":c_(S,"menu")},c),{ref:Cn(u,c.ref),onFocus:y,onKeyDown:M,onClick:_}),c=mL(Ve(_e({store:o,focusable:r,accessibleWhenDisabled:s},c),{showOnHover:C=>{if(!(()=>{if(typeof i=="function")return i(C);if(i!=null)return i;if(f)return!0;if(!p)return!1;const{items:N}=p.getState();return b&&BH(N)})())return!1;const B=b?p:d;return B&&B.setActiveId(C.currentTarget.id),!0}})),c=dL(_e({store:o,toggleOnClick:!f,focusable:r,accessibleWhenDisabled:s},c)),c=h3(_e({store:o,typeahead:b},c)),c}),DDe=yt(function(t){const n=IDe(t);return vt(jDe,n)}),FDe="div",$De=_t(function(t){return t=Fse(t),t}),VDe=yt(function(t){const n=$De(t);return vt(FDe,n)}),HDe="div",UDe=_t(function(t){return t=Vse(t),t}),XDe=yt(function(t){const n=UDe(t);return vt(HDe,n)}),GDe="span",KDe=_t(function(t){var n=t,{store:o,checked:r}=n,s=xt(n,["store","checked"]);const i=O.useContext(Sie);return r=r??i,s=YN(Ve(_e({},s),{checked:r})),s}),Eie=yt(function(t){const n=KDe(t);return vt(GDe,n)}),YDe="div";function ZDe(e,t,n){var o;if(!e)return!1;if(Au(e))return!0;const r=t?.find(l=>{var u;return l.element===n?!1:((u=l.element)==null?void 0:u.getAttribute("aria-expanded"))==="true"}),s=(o=r?.element)==null?void 0:o.getAttribute("aria-controls");if(!s)return!1;const c=Zn(e).getElementById(s);return c?Au(c)?!0:!!c.querySelector("[role=menuitem][aria-expanded=true]"):!1}var ML=_t(function(t){var n=t,{store:o,hideOnClick:r=!0,preventScrollOnKeyDown:s=!0,focusOnHover:i,blurOnHoverEnd:c}=n,l=xt(n,["store","hideOnClick","preventScrollOnKeyDown","focusOnHover","blurOnHoverEnd"]);const u=bL(!0),d=vDe();o=o||u||d,F0(o,!1);const p=l.onClick,f=O1(r),b="hideAll"in o?o.hideAll:void 0,h=!!b,g=It(x=>{p?.(x),!(x.defaultPrevented||dse(x)||use(x)||!b||x.currentTarget.getAttribute("aria-haspopup")==="menu")&&f(x)&&b()}),z=on(o,x=>"contentElement"in x?x.contentElement:null),y=EN(z,"menuitem");return l=Ve(_e({role:y},l),{onClick:g}),l=vh(_e({store:o,preventScrollOnKeyDown:s},l)),l=ZN(Ve(_e({store:o},l),{focusOnHover(x){const v=()=>typeof i=="function"?i(x):i??!0;if(!o||!v())return!1;const{baseElement:M,items:A}=o.getState();return h?(x.currentTarget.hasAttribute("aria-expanded")&&x.currentTarget.focus(),!0):ZDe(M,A,x.currentTarget)?(x.currentTarget.focus(),!0):!1},blurOnHoverEnd(x){return typeof c=="function"?c(x):c??h}})),l}),QDe=Za(yt(function(t){const n=ML(t);return vt(YDe,n)})),JDe="div";function eFe(e){return Array.isArray(e)?e.toString():e}function vq(e,t,n){if(t===void 0)return Array.isArray(e)?e:!!n;const o=eFe(t);return Array.isArray(e)?n?e.includes(o)?e:[...e,o]:e.filter(r=>r!==o):n?o:e===o?!1:e}var tFe=_t(function(t){var n=t,{store:o,name:r,value:s,checked:i,defaultChecked:c,hideOnClick:l=!1}=n,u=xt(n,["store","name","value","checked","defaultChecked","hideOnClick"]);const d=bL();o=o||d,F0(o,!1);const p=pse(c);O.useEffect(()=>{o?.setValue(r,(b=[])=>p?vq(b,s,!0):b)},[o,r,s,p]),O.useEffect(()=>{i!==void 0&&o?.setValue(r,b=>vq(b,s,i))},[o,r,s,i]);const f=eDe({value:o.useState(b=>b.values[r]),setValue(b){o?.setValue(r,()=>{if(i===void 0)return b;const h=vq(b,s,i);return!Array.isArray(h)||!Array.isArray(b)?h:Mje(b,h)?b:h})}});return u=_e({role:"menuitemcheckbox"},u),u=zie(_e({store:f,name:r,value:s,checked:i},u)),u=ML(_e({store:o,hideOnClick:l},u)),u}),nFe=Za(yt(function(t){const n=tFe(t);return vt(JDe,n)})),oFe="div";function xq(e,t,n){return n===void 0?e:n?t:e}var rFe=_t(function(t){var n=t,{store:o,name:r,value:s,checked:i,onChange:c,hideOnClick:l=!1}=n,u=xt(n,["store","name","value","checked","onChange","hideOnClick"]);const d=bL();o=o||d,F0(o,!1);const p=pse(u.defaultChecked);O.useEffect(()=>{o?.setValue(r,(b=!1)=>xq(b,s,p))},[o,r,s,p]),O.useEffect(()=>{i!==void 0&&o?.setValue(r,b=>xq(b,s,i))},[o,r,s,i]);const f=o.useState(b=>b.values[r]===s);return u=rn(u,b=>a.jsx(Sie.Provider,{value:!!f,children:b}),[f]),u=_e({role:"menuitemradio"},u),u=Aie(_e({name:r,value:s,checked:f,onChange(b){if(c?.(b),b.defaultPrevented)return;const h=b.currentTarget;o?.setValue(r,g=>xq(g,s,i??h.checked))}},u)),u=ML(_e({store:o,hideOnClick:l},u)),u}),sFe=Za(yt(function(t){const n=rFe(t);return vt(oFe,n)})),iFe="hr",aFe=_t(function(t){var n=t,{store:o}=n,r=xt(n,["store"]);const s=qie();return o=o||s,r=Mie(_e({store:o},r)),r}),cFe=yt(function(t){const n=aFe(t);return vt(iFe,n)});function lFe(e={}){var t;const n=(t=e.store)==null?void 0:t.getState(),o=Cie(S0(Pt({},e),{placement:qt(e.placement,n?.placement,"top"),hideTimeout:qt(e.hideTimeout,n?.hideTimeout,0)})),r=S0(Pt({},o.getState()),{type:qt(e.type,n?.type,"description"),skipTimeout:qt(e.skipTimeout,n?.skipTimeout,300)}),s=Vo(r,o,e.store);return Pt(Pt({},o),s)}function uFe(e,t,n){return yn(e,n,"type"),yn(e,n,"skipTimeout"),Rie(e,t,n)}function dFe(e={}){const[t,n]=$i(lFe,e);return uFe(t,n,e)}var Bie=cr([kie],[fL]),gL=Bie.useProviderContext,pFe=Bie.ScopedContextProvider,fFe="div",bFe=_t(function(t){var n=t,{store:o,portal:r=!0,gutter:s=8,preserveTabOrder:i=!1,hideOnHoverOutside:c=!0,hideOnInteractOutside:l=!0}=n,u=xt(n,["store","portal","gutter","preserveTabOrder","hideOnHoverOutside","hideOnInteractOutside"]);const d=gL();o=o||d,F0(o,!1),u=rn(u,f=>a.jsx(pFe,{value:o,children:f}),[o]);const p=o.useState(f=>f.type==="description"?"tooltip":"none");return u=_e({role:p},u),u=hL(Ve(_e({},u),{store:o,portal:r,gutter:s,preserveTabOrder:i,hideOnHoverOutside(f){if(Lg(c,f))return!1;const b=o?.getState().anchorElement;return b?!("focusVisible"in b.dataset):!0},hideOnInteractOutside:f=>{if(Lg(l,f))return!1;const b=o?.getState().anchorElement;return b?!u1(b,f.target):!0}})),u}),hFe=xh(yt(function(t){const n=bFe(t);return vt(fFe,n)}),gL),mFe="div",Ud=Vo({activeStore:null});function NH(e){return()=>{const{activeStore:t}=Ud.getState();t===e&&Ud.setState("activeStore",null)}}var MFe=_t(function(t){var n=t,{store:o,showOnHover:r=!0}=n,s=xt(n,["store","showOnHover"]);const i=gL();o=o||i,F0(o,!1);const c=O.useRef(!1);O.useEffect(()=>e1(o,["mounted"],z=>{z.mounted||(c.current=!1)}),[o]),O.useEffect(()=>{if(o)return $o(NH(o),e1(o,["mounted","skipTimeout"],z=>{if(!o)return;if(z.mounted){const{activeStore:x}=Ud.getState();return x!==o&&x?.hide(),Ud.setState("activeStore",o)}const y=setTimeout(NH(o),z.skipTimeout);return()=>clearTimeout(y)}))},[o]);const l=s.onMouseEnter,u=It(z=>{l?.(z),c.current=!0}),d=s.onFocusVisible,p=It(z=>{d?.(z),!z.defaultPrevented&&(o?.setAnchorElement(z.currentTarget),o?.show())}),f=s.onBlur,b=It(z=>{if(f?.(z),z.defaultPrevented)return;const{activeStore:y}=Ud.getState();c.current=!1,y===o&&Ud.setState("activeStore",null)}),h=o.useState("type"),g=o.useState(z=>{var y;return(y=z.contentElement)==null?void 0:y.id});return s=Ve(_e({"aria-labelledby":h==="label"?g:void 0},s),{onMouseEnter:u,onFocusVisible:p,onBlur:b}),s=mL(_e({store:o,showOnHover(z){if(!c.current||Lg(r,z))return!1;const{activeStore:y}=Ud.getState();return y?(o?.show(),!1):!0}},s)),s}),gFe=yt(function(t){const n=MFe(t);return vt(mFe,n)});function zFe(e={}){var t;const n=(t=e.store)==null?void 0:t.getState();return zh(S0(Pt({},e),{orientation:qt(e.orientation,n?.orientation,"horizontal"),focusLoop:qt(e.focusLoop,n?.focusLoop,!0)}))}function OFe(e,t,n){return Oh(e,t,n)}function Nie(e={}){const[t,n]=$i(zFe,e);return OFe(t,n,e)}var zL=cr([fd],[gf]),AFe=zL.useContext,yFe=zL.useProviderContext,vFe=zL.ScopedContextProvider,xFe="div",_Fe=_t(function(t){var n=t,{store:o,orientation:r,virtualFocus:s,focusLoop:i,rtl:c}=n,l=xt(n,["store","orientation","virtualFocus","focusLoop","rtl"]);const u=yFe();o=o||u;const d=Nie({store:o,orientation:r,virtualFocus:s,focusLoop:i,rtl:c}),p=d.useState(f=>f.orientation==="both"?void 0:f.orientation);return l=rn(l,f=>a.jsx(vFe,{value:d,children:f}),[d]),l=_e({role:"toolbar","aria-orientation":p},l),l=yh(_e({store:d},l)),l}),wFe=yt(function(t){const n=_Fe(t);return vt(xFe,n)}),kFe="button",qFe=_t(function(t){var n=t,{store:o}=n,r=xt(n,["store"]);const s=AFe();return o=o||s,r=vh(_e({store:o},r)),r}),SFe=Za(yt(function(t){const n=qFe(t);return vt(kFe,n)})),M_=cr([UN,fd],[d3,gf]),OL=M_.useContext,CFe=M_.useScopedContext,g_=M_.useProviderContext,Lie=M_.ScopedContextProvider,jie=O.createContext(!1),LH=O.createContext(null);function Pie(e={}){var t=e,{composite:n,combobox:o}=t,r=o3(t,["composite","combobox"]);const s=["items","renderedItems","moves","orientation","virtualFocus","includesBaseElement","baseElement","focusLoop","focusShift","focusWrap"],i=c3(r.store,C2(n,s),C2(o,s)),c=i?.getState(),l=zh(S0(Pt({},r),{store:i,includesBaseElement:qt(r.includesBaseElement,c?.includesBaseElement,!1),orientation:qt(r.orientation,c?.orientation,"horizontal"),focusLoop:qt(r.focusLoop,c?.focusLoop,!0)})),u=Ose(),d=S0(Pt({},l.getState()),{selectedId:qt(r.selectedId,c?.selectedId,r.defaultSelectedId),selectOnMove:qt(r.selectOnMove,c?.selectOnMove,!0)}),p=Vo(d,l,i);V1(p,()=>e1(p,["moves"],()=>{const{activeId:b,selectOnMove:h}=p.getState();if(!h||!b)return;const g=l.item(b);g&&(g.dimmed||g.disabled||p.setState("selectedId",g.id))})),V1(p,()=>jg(p,["selectedId"],(b,h)=>{n&&b.selectedId===h.selectedId||p.setState("activeId",b.selectedId)})),V1(p,()=>e1(p,["selectedId","renderedItems"],b=>{if(b.selectedId!==void 0)return;const{activeId:h,renderedItems:g}=p.getState(),z=l.item(h);if(z&&!z.disabled&&!z.dimmed)p.setState("selectedId",z.id);else{const y=g.find(x=>!x.disabled&&!x.dimmed);p.setState("selectedId",y?.id)}})),V1(p,()=>e1(p,["renderedItems"],b=>{const h=b.renderedItems;if(h.length)return e1(u,["renderedItems"],g=>{const z=g.renderedItems;z.some(x=>!x.tabId)&&z.forEach((x,v)=>{if(x.tabId)return;const M=h[v];M&&u.renderItem(S0(Pt({},x),{tabId:M.id}))})})}));let f=null;return V1(p,()=>{const b=()=>{f=p.getState().selectedId},h=()=>{p.setState("selectedId",f)};if(n&&"setSelectElement"in n)return $o(e1(n,["value"],b),e1(n,["open"],h));if(o)return $o(e1(o,["selectedValue"],b),e1(o,["open"],h))}),S0(Pt(Pt({},l),p),{panels:u,setSelectedId:b=>p.setState("selectedId",b),select:b=>{p.setState("selectedId",b),l.move(b)}})}function RFe(e,t,n){Iu(t,[n.composite,n.combobox]),e=Oh(e,t,n),yn(e,n,"selectedId","setSelectedId"),yn(e,n,"selectOnMove");const[o,r]=$i(()=>e.panels,{});return Iu(r,[e,r]),Object.assign(O.useMemo(()=>Ve(_e({},e),{panels:o}),[e,o]),{composite:n.composite,combobox:n.combobox})}function WFe(e={}){const t=yPe(),n=OL()||t;e=Ve(_e({},e),{composite:e.composite!==void 0?e.composite:n,combobox:e.combobox!==void 0?e.combobox:t});const[o,r]=$i(Pie,e);return RFe(o,r,e)}var AL=cr([fd],[gf]),TFe=AL.useScopedContext,Iie=AL.useProviderContext,Die=AL.ScopedContextProvider,EFe="button",BFe=_t(function(t){var n=t,{store:o,getItem:r}=n,s=xt(n,["store","getItem"]),i;const c=TFe();o=o||c,F0(o,!1);const l=Dr(),u=s.id||l,d=hl(s),p=O.useCallback(_=>{const w=Ve(_e({},_),{dimmed:d});return r?r(w):w},[d,r]),f=s.onClick,b=It(_=>{f?.(_),!_.defaultPrevented&&o?.setSelectedId(u)}),h=o.panels.useState(_=>{var w;return(w=_.items.find(k=>k.tabId===u))==null?void 0:w.id}),g=l?s.shouldRegisterItem:!1,z=o.useState(_=>!!u&&_.activeId===u),y=o.useState(_=>!!u&&_.selectedId===u),x=o.useState(_=>!!o.item(_.activeId)),v=z||y&&!x,M=y||((i=s.accessibleWhenDisabled)!=null?i:!0);if(on(o.combobox||o.composite,"virtualFocus")&&(s=Ve(_e({},s),{tabIndex:-1})),s=Ve(_e({id:u,role:"tab","aria-selected":y,"aria-controls":h||void 0},s),{onClick:b}),o.composite){const _={id:u,accessibleWhenDisabled:M,store:o.composite,shouldRegisterItem:v&&g,render:s.render};s=Ve(_e({},s),{render:a.jsx(N8,Ve(_e({},_),{render:o.combobox&&o.composite!==o.combobox?a.jsx(N8,Ve(_e({},_),{store:o.combobox})):_.render}))})}return s=vh(Ve(_e({store:o},s),{accessibleWhenDisabled:M,getItem:p,shouldRegisterItem:g})),s}),NFe=Za(yt(function(t){const n=BFe(t);return vt(EFe,n)})),LFe="div",jFe=_t(function(t){var n=t,{store:o}=n,r=xt(n,["store"]);const s=Iie();o=o||s,F0(o,!1);const i=o.useState(c=>c.orientation==="both"?void 0:c.orientation);return r=rn(r,c=>a.jsx(Die,{value:o,children:c}),[o]),o.composite&&(r=_e({focusable:!1},r)),r=_e({role:"tablist","aria-orientation":i},r),r=yh(_e({store:o},r)),r}),PFe=yt(function(t){const n=jFe(t);return vt(LFe,n)}),IFe="div",DFe=_t(function(t){var n=t,{store:o,unmountOnHide:r,tabId:s,getItem:i}=n,c=xt(n,["store","unmountOnHide","tabId","getItem"]);const l=Iie();o=o||l,F0(o,!1);const u=O.useRef(null),d=Dr(c.id),[p,f]=O.useState(!1);O.useEffect(()=>{const M=u.current;if(!M)return;const A=p3(M);f(!!A.length)},[]);const b=O.useCallback(M=>{const A=Ve(_e({},M),{id:d||M.id,tabId:s});return i?i(A):A},[d,s,i]),h=c.onKeyDown,g=It(M=>{if(h?.(M),M.defaultPrevented||!o?.composite)return;const A=o.getState(),_=Pie(Ve(_e({},A),{activeId:A.selectedId}));_.setState("renderedItems",A.renderedItems);const k={ArrowLeft:_.previous,ArrowRight:_.next,Home:_.first,End:_.last}[M.key];if(!k)return;const q=k();q&&(M.preventDefault(),o.move(q))});c=rn(c,M=>a.jsx(Die,{value:o,children:M}),[o]);const z=o.panels.useState(()=>{var M;return s||((M=o?.panels.item(d))==null?void 0:M.tabId)}),y=o.useState(M=>!!z&&M.selectedId===z),x=wse({open:y}),v=x.useState("mounted");return c=Ve(_e({id:d,role:"tabpanel","aria-labelledby":z||void 0},c),{children:r&&!v?null:c.children,ref:Cn(u,c.ref),onKeyDown:g}),c=Ah(_e({focusable:!o.composite&&!p},c)),c=f_(_e({store:x},c)),c=QN(Ve(_e({store:o.panels},c),{getItem:b})),c}),FFe=yt(function(t){const n=DFe(t);return vt(IFe,n)});function $Fe(e={}){var t=e,{combobox:n}=t,o=o3(t,["combobox"]);const r=c3(o.store,C2(n,["value","items","renderedItems","baseElement","arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),s=r.getState(),i=zh(S0(Pt({},o),{store:r,virtualFocus:qt(o.virtualFocus,s.virtualFocus,!0),includesBaseElement:qt(o.includesBaseElement,s.includesBaseElement,!1),activeId:qt(o.activeId,s.activeId,o.defaultActiveId,null),orientation:qt(o.orientation,s.orientation,"vertical")})),c=Sse(S0(Pt({},o),{store:r,placement:qt(o.placement,s.placement,"bottom-start")})),l=new String(""),u=S0(Pt(Pt({},i.getState()),c.getState()),{value:qt(o.value,s.value,o.defaultValue,l),setValueOnMove:qt(o.setValueOnMove,s.setValueOnMove,!1),labelElement:qt(s.labelElement,null),selectElement:qt(s.selectElement,null),listElement:qt(s.listElement,null)}),d=Vo(u,i,c,r);return V1(d,()=>e1(d,["value","items"],p=>{if(p.value!==l||!p.items.length)return;const f=p.items.find(b=>!b.disabled&&b.value!=null);f?.value!=null&&d.setState("value",f.value)})),V1(d,()=>e1(d,["mounted"],p=>{p.mounted||d.setState("activeId",u.activeId)})),V1(d,()=>e1(d,["mounted","items","value"],p=>{if(n||p.mounted)return;const f=Ase(p.value),b=f[f.length-1];if(b==null)return;const h=p.items.find(g=>!g.disabled&&g.value===b);h&&d.setState("activeId",h.id)})),V1(d,()=>jg(d,["setValueOnMove","moves"],p=>{const{mounted:f,value:b,activeId:h}=d.getState();if(!p.setValueOnMove&&f||Array.isArray(b)||!p.moves||!h)return;const g=i.item(h);!g||g.disabled||g.value==null||d.setState("value",g.value)})),S0(Pt(Pt(Pt({},i),c),d),{combobox:n,setValue:p=>d.setState("value",p),setLabelElement:p=>d.setState("labelElement",p),setSelectElement:p=>d.setState("selectElement",p),setListElement:p=>d.setState("listElement",p)})}function VFe(e,t,n){return Iu(t,[n.combobox]),yn(e,n,"value","setValue"),yn(e,n,"setValueOnMove"),Object.assign(Cse(Oh(e,t,n),t,n),{combobox:n.combobox})}function HFe(e={}){const t=Wse();e=Ve(_e({},e),{combobox:e.combobox!==void 0?e.combobox:t});const[n,o]=$i($Fe,e);return VFe(n,o,e)}var UFe="span",XFe=_t(function(t){var n=t,{store:o}=n,r=xt(n,["store"]);const s=OL();return o=o||s,r=_ie(_e({store:o},r)),r}),GFe=yt(function(t){const n=XFe(t);return vt(UFe,n)}),KFe="button";function YFe(e){return Array.from(e.selectedOptions).map(t=>t.value)}function lA(e,t){return()=>{const n=t();if(!n)return;let o=0,r=e.item(n);const s=r;for(;r&&r.value==null;){const i=t(++o);if(!i)return;if(r=e.item(i),r===s)break}return r?.id}}var ZFe=_t(function(t){var n=t,{store:o,name:r,form:s,required:i,showOnKeyDown:c=!0,moveOnKeyDown:l=!0,toggleOnPress:u=!0,toggleOnClick:d=u}=n,p=xt(n,["store","name","form","required","showOnKeyDown","moveOnKeyDown","toggleOnPress","toggleOnClick"]);const f=g_();o=o||f,F0(o,!1);const b=p.onKeyDown,h=O1(c),g=O1(l),y=o.useState("placement").split("-")[0],x=o.useState("value"),v=Array.isArray(x),M=It(N=>{var E;if(b?.(N),N.defaultPrevented||!o)return;const{orientation:L,items:I,activeId:P}=o.getState(),H=L!=="horizontal",U=L!=="vertical",X=!!((E=I.find(be=>!be.disabled&&be.value!=null))!=null&&E.rowId),ne={ArrowUp:(X||H)&&lA(o,o.up),ArrowRight:(X||U)&&lA(o,o.next),ArrowDown:(X||H)&&lA(o,o.down),ArrowLeft:(X||U)&&lA(o,o.previous)}[N.key];ne&&g(N)&&(N.preventDefault(),o.move(ne()));const oe=y==="top"||y==="bottom";({ArrowDown:oe,ArrowUp:oe,ArrowLeft:y==="left",ArrowRight:y==="right"})[N.key]&&h(N)&&(N.preventDefault(),o.move(P),Zb(N.currentTarget,"keyup",o.show))});p=rn(p,N=>a.jsx(Lie,{value:o,children:N}),[o]);const[A,_]=O.useState(!1),w=O.useRef(!1);O.useEffect(()=>{const N=w.current;w.current=!1,!N&&_(!1)},[x]);const k=o.useState(N=>{var E;return(E=N.labelElement)==null?void 0:E.id}),q=p["aria-label"],S=p["aria-labelledby"]||k,C=o.useState(N=>{if(r)return N.items}),T=O.useMemo(()=>[...new Set(C?.map(N=>N.value).filter(N=>N!=null))],[C]);p=rn(p,N=>r?a.jsxs(a.Fragment,{children:[a.jsxs("select",{style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},tabIndex:-1,"aria-hidden":!0,"aria-label":q,"aria-labelledby":S,name:r,form:s,required:i,value:x,multiple:v,onFocus:()=>{var E;return(E=o?.getState().selectElement)==null?void 0:E.focus()},onChange:E=>{w.current=!0,_(!0),o?.setValue(v?YFe(E.target):E.target.value)},children:[Ase(x).map(E=>E==null||T.includes(E)?null:a.jsx("option",{value:E,children:E},E)),T.map(E=>a.jsx("option",{value:E,children:E},E))]}),N]}):N,[o,q,S,r,s,i,x,v,T]);const W=a.jsxs(a.Fragment,{children:[x,a.jsx(GFe,{})]}),B=o.useState("contentElement");return p=Ve(_e({role:"combobox","aria-autocomplete":"none","aria-labelledby":k,"aria-haspopup":c_(B,"listbox"),"data-autofill":A||void 0,"data-name":r,children:W},p),{ref:Cn(o.setSelectElement,p.ref),onKeyDown:M}),p=dL(_e({store:o,toggleOnClick:d},p)),p=h3(_e({store:o},p)),p}),QFe=yt(function(t){const n=ZFe(t);return vt(KFe,n)}),JFe="span",e$e=_t(function(t){var n=t,{store:o,checked:r}=n,s=xt(n,["store","checked"]);const i=O.useContext(jie);return r=r??i,s=YN(Ve(_e({},s),{checked:r})),s}),t$e=yt(function(t){const n=e$e(t);return vt(JFe,n)}),n$e="div";function o$e(e,t){if(t!=null)return e==null?!1:Array.isArray(e)?e.includes(t):e===t}var r$e=_t(function(t){var n=t,{store:o,value:r,getItem:s,hideOnClick:i,setValueOnClick:c=r!=null,preventScrollOnKeyDown:l=!0,focusOnHover:u=!0}=n,d=xt(n,["store","value","getItem","hideOnClick","setValueOnClick","preventScrollOnKeyDown","focusOnHover"]),p;const f=CFe();o=o||f,F0(o,!1);const b=Dr(d.id),h=hl(d),g=O.useCallback(q=>{const S=Ve(_e({},q),{value:h?void 0:r,children:r});return s?s(S):S},[h,r,s]),z=o.useState(q=>Array.isArray(q.value));i=i??(r!=null&&!z);const y=d.onClick,x=O1(c),v=O1(i),M=It(q=>{y?.(q),!q.defaultPrevented&&(dse(q)||use(q)||(x(q)&&r!=null&&o?.setValue(S=>Array.isArray(S)?S.includes(r)?S.filter(C=>C!==r):[...S,r]:r),v(q)&&o?.hide()))}),A=o.useState(q=>o$e(q.value,r));d=rn(d,q=>a.jsx(jie.Provider,{value:A??!1,children:q}),[A]);const _=o.useState("listElement"),w=o.useState(q=>r==null||q.value==null||q.activeId!==b&&o?.item(q.activeId)?!1:Array.isArray(q.value)?q.value[q.value.length-1]===r:q.value===r);d=Ve(_e({id:b,role:EN(_),"aria-selected":A,children:r},d),{autoFocus:(p=d.autoFocus)!=null?p:w,onClick:M}),d=vh(_e({store:o,getItem:g,preventScrollOnKeyDown:l},d));const k=O1(u);return d=ZN(Ve(_e({store:o},d),{focusOnHover(q){if(!k(q))return!1;const S=o?.getState();return!!S?.open}})),d}),s$e=Za(yt(function(t){const n=r$e(t);return vt(n$e,n)})),i$e="div",a$e=_t(function(t){var n=t,{store:o}=n,r=xt(n,["store"]);const s=g_();o=o||s,F0(o,!1);const i=Dr(r.id),c=r.onClick,l=It(u=>{c?.(u),!u.defaultPrevented&&queueMicrotask(()=>{const d=o?.getState().selectElement;d?.focus()})});return r=Ve(_e({id:i},r),{ref:Cn(o.setLabelElement,r.ref),onClick:l,style:_e({cursor:"default"},r.style)}),Ir(r)}),c$e=Za(yt(function(t){const n=a$e(t);return vt(i$e,n)})),l$e="div",jH=O.createContext(null),Fie=_t(function(t){var n=t,{store:o,resetOnEscape:r=!0,hideOnEnter:s=!0,focusOnMove:i=!0,composite:c,alwaysVisible:l}=n,u=xt(n,["store","resetOnEscape","hideOnEnter","focusOnMove","composite","alwaysVisible"]);const d=OL();o=o||d,F0(o,!1);const p=Dr(u.id),f=o.useState("value"),b=Array.isArray(f),[h,g]=O.useState(f),z=o.useState("mounted");O.useEffect(()=>{z||g(f)},[z,f]),r=r&&!b;const y=u.onKeyDown,x=O1(r),v=O1(s),M=It(X=>{y?.(X),!X.defaultPrevented&&(X.key==="Escape"&&x(X)&&o?.setValue(h),(X.key===" "||X.key==="Enter")&&vr(X)&&v(X)&&(X.preventDefault(),o?.hide()))}),A=O.useContext(LH),_=O.useState(),[w,k]=A||_,q=O.useMemo(()=>[w,k],[w]),[S,C]=O.useState(null),T=O.useContext(jH);O.useEffect(()=>{if(T)return T(o),()=>T(null)},[T,o]),u=rn(u,X=>a.jsx(Lie,{value:o,children:a.jsx(jH.Provider,{value:C,children:a.jsx(LH.Provider,{value:q,children:X})})}),[o,q]);const W=!!o.combobox;c=c??(!W&&S!==o);const[B,N]=bse(c?o.setListElement:null),E=Lje(B,"role",u.role),I=(c||(E==="listbox"||E==="menu"||E==="tree"||E==="grid"))&&b||void 0,P=p_(z,u.hidden,l),H=P?Ve(_e({},u.style),{display:"none"}):u.style;c&&(u=_e({role:"listbox","aria-multiselectable":I},u));const U=o.useState(X=>{var Z;return w||((Z=X.labelElement)==null?void 0:Z.id)});return u=Ve(_e({id:p,"aria-labelledby":U,hidden:P},u),{ref:Cn(N,u.ref),style:H,onKeyDown:M}),u=yh(Ve(_e({store:o},u),{composite:c})),u=h3(_e({store:o,typeahead:!W},u)),u});yt(function(t){const n=Fie(t);return vt(l$e,n)});var u$e="div",d$e=_t(function(t){var n=t,{store:o,alwaysVisible:r}=n,s=xt(n,["store","alwaysVisible"]);const i=g_();return o=o||i,s=Fie(_e({store:o,alwaysVisible:r},s)),s=lL(_e({store:o,alwaysVisible:r},s)),s}),p$e=xh(yt(function(t){const n=d$e(t);return vt(u$e,n)}),g_);const $8=O.createContext(void 0),kh=()=>O.useContext($8),f$e=O.forwardRef(function(t,n){const o=kh();return a.jsx(d9e,{store:o?.store,...t,ref:n})}),b$e=O.forwardRef(function(t,n){const o=kh();return a.jsx(c9e,{store:o?.store,...t,ref:n})}),h$e=O.forwardRef(function(t,n){const o=kh();return a.jsx(g9e,{store:o?.store,...t,ref:n})}),m$e=O.forwardRef(function(t,n){const o=kh();return a.jsx(N8,{store:o?.store,...t,ref:n})}),M$e=O.forwardRef(function(t,n){const o=kh();return a.jsx(KIe,{store:o?.store,...t,ref:n})}),g$e=O.forwardRef(function(t,n){const o=kh();return a.jsx(bDe,{store:o?.store,...t,ref:n})}),hi=Object.assign(O.forwardRef(function({activeId:t,defaultActiveId:n,setActiveId:o,focusLoop:r=!1,focusWrap:s=!1,focusShift:i=!1,virtualFocus:c=!1,orientation:l="both",rtl:u=!1,children:d,disabled:p=!1,store:f,...b},h){const g=vse({activeId:t,defaultActiveId:n,setActiveId:o,focusLoop:r,focusWrap:s,focusShift:i,virtualFocus:c,orientation:l,rtl:u}),z=f||g,y=O.useMemo(()=>({store:z}),[z]);return a.jsx(e9e,{disabled:p,store:z,...b,ref:h,children:a.jsx($8.Provider,{value:y,children:d})})}),{Group:Object.assign(f$e,{displayName:"Composite.Group"}),GroupLabel:Object.assign(b$e,{displayName:"Composite.GroupLabel"}),Item:Object.assign(m$e,{displayName:"Composite.Item"}),Row:Object.assign(M$e,{displayName:"Composite.Row"}),Hover:Object.assign(h$e,{displayName:"Composite.Hover"}),Typeahead:Object.assign(g$e,{displayName:"Composite.Typeahead"}),Context:Object.assign($8,{displayName:"Composite.Context"})});function $ie(e){const{shortcut:t,className:n}=e;if(!t)return null;let o,r;return typeof t=="string"&&(o=t),t!==null&&typeof t=="object"&&(o=t.display,r=t.ariaLabel),a.jsx("span",{className:n,"aria-label":r,children:o})}const z$e={bottom:"bottom",top:"top","middle left":"left","middle right":"right","bottom left":"bottom-end","bottom center":"bottom","bottom right":"bottom-start","top left":"top-end","top center":"top","top right":"top-start","middle left left":"left","middle left right":"left","middle left bottom":"left-end","middle left top":"left-start","middle right left":"right","middle right right":"right","middle right bottom":"right-end","middle right top":"right-start","bottom left left":"bottom-end","bottom left right":"bottom-end","bottom left bottom":"bottom-end","bottom left top":"bottom-end","bottom center left":"bottom","bottom center right":"bottom","bottom center bottom":"bottom","bottom center top":"bottom","bottom right left":"bottom-start","bottom right right":"bottom-start","bottom right bottom":"bottom-start","bottom right top":"bottom-start","top left left":"top-end","top left right":"top-end","top left bottom":"top-end","top left top":"top-end","top center left":"top","top center right":"top","top center bottom":"top","top center top":"top","top right left":"top-start","top right right":"top-start","top right bottom":"top-start","top right top":"top-start",middle:"bottom","middle center":"bottom","middle center bottom":"bottom","middle center left":"bottom","middle center right":"bottom","middle center top":"bottom"},z_=e=>{var t;return(t=z$e[e])!==null&&t!==void 0?t:"bottom"},O$e={top:{originX:.5,originY:1},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},right:{originX:0,originY:.5},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},bottom:{originX:.5,originY:0},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},left:{originX:1,originY:.5},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1},overlay:{originX:.5,originY:.5}},A$e=e=>{const t=e.startsWith("top")||e.startsWith("bottom")?"translateY":"translateX",n=e.startsWith("top")||e.startsWith("left")?1:-1;return{style:O$e[e],initial:{opacity:0,scale:0,[t]:`${2*n}em`},animate:{opacity:1,scale:1,[t]:0},transition:{duration:.1,ease:[0,0,.2,1]}}};function y$e(e){return!!e?.top}function v$e(e){return!!e?.current}const x$e=({anchor:e,anchorRef:t,anchorRect:n,getAnchorRect:o,fallbackReferenceElement:r})=>{var s;let i=null;return e?i=e:y$e(t)?i={getBoundingClientRect(){const c=t.top.getBoundingClientRect(),l=t.bottom.getBoundingClientRect();return new window.DOMRect(c.x,c.y,c.width,l.bottom-c.top)}}:v$e(t)?i=t.current:t?i=t:n?i={getBoundingClientRect(){return n}}:o?i={getBoundingClientRect(){var c,l,u,d;const p=o(r);return new window.DOMRect((c=p.x)!==null&&c!==void 0?c:p.left,(l=p.y)!==null&&l!==void 0?l:p.top,(u=p.width)!==null&&u!==void 0?u:p.right-p.left,(d=p.height)!==null&&d!==void 0?d:p.bottom-p.top)}}:r&&(i=r.parentElement),(s=i)!==null&&s!==void 0?s:null},PH=e=>e===null||Number.isNaN(e)?void 0:Math.round(e),IH=O.createContext({isNestedInTooltip:!1}),_$e=700,w$e={isNestedInTooltip:!0};function k$e(e,t){const{children:n,className:o,delay:r=_$e,hideOnClick:s=!0,placement:i,position:c,shortcut:l,text:u,...d}=e,{isNestedInTooltip:p}=O.useContext(IH),f=He(W1,"tooltip"),b=u||l?f:void 0,h=O.Children.count(n)===1;let g;i!==void 0?g=i:c!==void 0&&(g=z_(c),Re("`position` prop in wp.components.tooltip",{since:"6.4",alternative:"`placement` prop"})),g=g||"bottom";const z=dFe({placement:g,showTimeout:r}),y=on(z,"mounted");if(p)return h?a.jsx(Pg,{...d,render:n}):n;function x(v){return b&&y?O.cloneElement(v,{"aria-describedby":b}):v}return a.jsxs(IH.Provider,{value:w$e,children:[a.jsx(gFe,{onClick:s?z.hide:void 0,store:z,render:h?x(n):void 0,ref:t,children:h?void 0:n}),h&&(u||l)&&a.jsxs(hFe,{...d,className:$("components-tooltip",o),unmountOnHide:!0,gutter:4,id:b,overflowPadding:.5,store:z,children:[u,l&&a.jsx($ie,{className:u?"components-tooltip__shortcut":"",shortcut:l})]})]})}const W1=O.forwardRef(k$e);function xs(e){return e!=null}function q$e(e){const t=e==="";return!xs(e)||t}function S$e(e=[],t){var n;return(n=e.find(xs))!==null&&n!==void 0?n:t}const C$e=e=>parseFloat(e),_m=e=>typeof e=="string"?C$e(e):e,DH={initial:void 0,fallback:""};function O_(e,t=DH){const{initial:n,fallback:o}={...DH,...t},[r,s]=O.useState(e),i=xs(e);O.useEffect(()=>{i&&r&&s(void 0)},[i,r]);const c=S$e([e,r,n],o),l=O.useCallback(u=>{i||s(u)},[i]);return[c,l]}function yL(e,t){const n=O.useRef(!1);O.useEffect(()=>{if(n.current)return e();n.current=!0},t),O.useEffect(()=>()=>{n.current=!1},[])}function g3({defaultValue:e,onChange:t,value:n}){const o=typeof n<"u",r=o?n:e,[s,i]=O.useState(r),c=o?n:s;let l;return o&&typeof t=="function"?l=t:!o&&typeof t=="function"?l=u=>{t(u),i(u)}:l=i,[c,l]}var R$e=!1;function W$e(e){if(e.sheet)return e.sheet;for(var t=0;t0?co(qh,--Wr):0,E2--,m1===10&&(E2=1,y_--),m1}function ns(){return m1=Wr2||Fg(m1)>3?"":" "}function H$e(e,t){for(;--t&&ns()&&!(m1<48||m1>102||m1>57&&m1<65||m1>70&&m1<97););return z3(e,Uy()+(t<6&&Ra()==32&&ns()==32))}function H8(e){for(;ns();)switch(m1){case e:return Wr;case 34:case 39:e!==34&&e!==39&&H8(m1);break;case 40:e===41&&H8(e);break;case 92:ns();break}return Wr}function U$e(e,t){for(;ns()&&e+m1!==57;)if(e+m1===84&&Ra()===47)break;return"/*"+z3(t,Wr-1)+"*"+A_(e===47?e:ns())}function X$e(e){for(;!Fg(Ra());)ns();return z3(e,Wr)}function G$e(e){return Kie(Gy("",null,null,null,[""],e=Gie(e),0,[0],e))}function Gy(e,t,n,o,r,s,i,c,l){for(var u=0,d=0,p=i,f=0,b=0,h=0,g=1,z=1,y=1,x=0,v="",M=r,A=s,_=o,w=v;z;)switch(h=x,x=ns()){case 40:if(h!=108&&co(w,p-1)==58){V8(w+=I0(Xy(x),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:w+=Xy(x);break;case 9:case 10:case 13:case 32:w+=V$e(h);break;case 92:w+=H$e(Uy()-1,7);continue;case 47:switch(Ra()){case 42:case 47:uA(K$e(U$e(ns(),Uy()),t,n),l);break;default:w+="/"}break;case 123*g:c[u++]=ba(w)*y;case 125*g:case 59:case 0:switch(x){case 0:case 125:z=0;case 59+d:y==-1&&(w=I0(w,/\f/g,"")),b>0&&ba(w)-p&&uA(b>32?$H(w+";",o,n,p-1):$H(I0(w," ","")+";",o,n,p-2),l);break;case 59:w+=";";default:if(uA(_=FH(w,t,n,u,d,r,c,v,M=[],A=[],p),s),x===123)if(d===0)Gy(w,t,_,_,M,s,p,c,A);else switch(f===99&&co(w,3)===110?100:f){case 100:case 108:case 109:case 115:Gy(e,_,_,o&&uA(FH(e,_,_,0,0,r,c,v,r,M=[],p),A),r,A,p,c,o?M:A);break;default:Gy(w,_,_,_,[""],A,0,c,A)}}u=d=b=0,g=y=1,v=w="",p=i;break;case 58:p=1+ba(w),b=h;default:if(g<1){if(x==123)--g;else if(x==125&&g++==0&&$$e()==125)continue}switch(w+=A_(x),x*g){case 38:y=d>0?1:(w+="\f",-1);break;case 44:c[u++]=(ba(w)-1)*y,y=1;break;case 64:Ra()===45&&(w+=Xy(ns())),f=Ra(),d=p=ba(v=w+=X$e(Uy())),x++;break;case 45:h===45&&ba(w)==2&&(g=0)}}return s}function FH(e,t,n,o,r,s,i,c,l,u,d){for(var p=r-1,f=r===0?s:[""],b=_L(f),h=0,g=0,z=0;h0?f[y]+" "+x:I0(x,/&\f/g,f[y])))&&(l[z++]=v);return v_(e,t,n,r===0?vL:c,l,u,d)}function K$e(e,t,n){return v_(e,t,n,Vie,A_(F$e()),Dg(e,2,-2),0)}function $H(e,t,n,o){return v_(e,t,n,xL,Dg(e,0,o),Dg(e,o+1,-1),o)}function Jb(e,t){for(var n="",o=_L(e),r=0;r6)switch(co(e,t+1)){case 109:if(co(e,t+4)!==45)break;case 102:return I0(e,/(.+:)(.+)-([^]+)/,"$1"+P0+"$2-$3$1"+Lv+(co(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~V8(e,"stretch")?Zie(I0(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(co(e,t+1)!==115)break;case 6444:switch(co(e,ba(e)-3-(~V8(e,"!important")&&10))){case 107:return I0(e,":",":"+P0)+e;case 101:return I0(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+P0+(co(e,14)===45?"inline-":"")+"box$3$1"+P0+"$2$3$1"+So+"$2box$3")+e}break;case 5936:switch(co(e,t+11)){case 114:return P0+e+So+I0(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return P0+e+So+I0(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return P0+e+So+I0(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return P0+e+So+e+e}return e}var rVe=function(t,n,o,r){if(t.length>-1&&!t.return)switch(t.type){case xL:t.return=Zie(t.value,t.length);break;case Hie:return Jb([wm(t,{value:I0(t.value,"@","@"+P0)})],r);case vL:if(t.length)return D$e(t.props,function(s){switch(I$e(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Jb([wm(t,{props:[I0(s,/:(read-\w+)/,":"+Lv+"$1")]})],r);case"::placeholder":return Jb([wm(t,{props:[I0(s,/:(plac\w+)/,":"+P0+"input-$1")]}),wm(t,{props:[I0(s,/:(plac\w+)/,":"+Lv+"$1")]}),wm(t,{props:[I0(s,/:(plac\w+)/,So+"input-$1")]})],r)}return""})}},sVe=[rVe],wL=function(t){var n=t.key;if(n==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(g){var z=g.getAttribute("data-emotion");z.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var r=t.stylisPlugins||sVe,s={},i,c=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var z=g.getAttribute("data-emotion").split(" "),y=1;y"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Jje:Qje;zse.useSyncExternalStore=R2.useSyncExternalStore!==void 0?R2.useSyncExternalStore:ePe;gse.exports=zse;var tPe=gse.exports;const nPe=yo(tPe);var{useSyncExternalStore:oPe}=nPe,rPe=()=>()=>{};function on(e,t=ise){const n=O.useCallback(r=>e?Mse(e,null,r):rPe(),[e]),o=()=>{const r=typeof t=="string"?t:null,s=typeof t=="function"?t:null,i=e?.getState();if(s)return s(i);if(i&&r&&Pu(i,r))return i[r]};return oPe(n,o,o)}function yn(e,t,n,o){const r=Pu(t,n)?t[n]:void 0,s=o?t[o]:void 0,i=fse({value:r,setValue:s});X0(()=>e1(e,[n],(c,l)=>{const{value:u,setValue:d}=i.current;d&&c[n]!==l[n]&&c[n]!==u&&d(c[n])}),[e,n]),X0(()=>{if(r!==void 0)return e.setState(n,r),jg(e,[n],()=>{r!==void 0&&e.setState(n,r)})})}function $i(e,t){const[n,o]=O.useState(()=>e(t));X0(()=>FN(n),[n]);const r=O.useCallback(c=>on(n,c),[n]),s=O.useMemo(()=>Ve(_e({},n),{useState:r}),[n,r]),i=It(()=>{o(c=>e(_e(_e({},t),c.getState())))});return[s,i]}function sPe(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function iPe(e){const t=e.map((o,r)=>[r,o]);let n=!1;return t.sort(([o,r],[s,i])=>{const c=r.element,l=i.element;return c===l||!c||!l?0:sPe(c,l)?(o>s&&(n=!0),-1):(or):e}function aPe(e){var t;const n=e.find(s=>!!s.element),o=[...e].reverse().find(s=>!!s.element);let r=(t=n?.element)==null?void 0:t.parentElement;for(;r&&o?.element;){if(o&&r.contains(o.element))return r;r=r.parentElement}return Zn(r).body}function cPe(e){return e?.__unstablePrivateStore}function Ose(e={}){var t;e.store;const n=(t=e.store)==null?void 0:t.getState(),o=qt(e.items,n?.items,e.defaultItems,[]),r=new Map(o.map(f=>[f.id,f])),s={items:o,renderedItems:qt(n?.renderedItems,[])},i=cPe(e.store),c=Vo({items:o,renderedItems:s.renderedItems},i),l=Vo(s,e.store),u=f=>{const b=iPe(f);c.setState("renderedItems",b),l.setState("renderedItems",b)};V1(l,()=>FN(c)),V1(c,()=>jg(c,["items"],f=>{l.setState("items",f.items)})),V1(c,()=>jg(c,["renderedItems"],f=>{let b=!0,h=requestAnimationFrame(()=>{const{renderedItems:x}=l.getState();f.renderedItems!==x&&u(f.renderedItems)});if(typeof IntersectionObserver!="function")return()=>cancelAnimationFrame(h);const g=()=>{if(b){b=!1;return}cancelAnimationFrame(h),h=requestAnimationFrame(()=>u(f.renderedItems))},z=aPe(f.renderedItems),y=new IntersectionObserver(g,{root:z});for(const x of f.renderedItems)x.element&&y.observe(x.element);return()=>{cancelAnimationFrame(h),y.disconnect()}}));const d=(f,b,h=!1)=>{let g;return b(y=>{const x=y.findIndex(({id:M})=>M===f.id),v=y.slice();if(x!==-1){g=y[x];const M=Pt(Pt({},g),f);v[x]=M,r.set(f.id,M)}else v.push(f),r.set(f.id,f);return v}),()=>{b(y=>{if(!g)return h&&r.delete(f.id),y.filter(({id:M})=>M!==f.id);const x=y.findIndex(({id:M})=>M===f.id);if(x===-1)return y;const v=y.slice();return v[x]=g,r.set(f.id,g),v})}},p=f=>d(f,b=>c.setState("items",b),!0);return S0(Pt({},l),{registerItem:p,renderItem:f=>$o(p(f),d(f,b=>c.setState("renderedItems",b))),item:f=>{if(!f)return null;let b=r.get(f);if(!b){const{items:h}=l.getState();b=h.find(g=>g.id===f),b&&r.set(f,b)}return b||null},__unstablePrivateStore:c})}function lPe(e,t,n){return Iu(t,[n.store]),yn(e,n,"items","setItems"),e}function Ase(e){return Array.isArray(e)?e:typeof e<"u"?[e]:[]}function W8(e){const t=[];for(const n of e)t.push(...n);return t}function rM(e){return e.slice().reverse()}var uPe={id:null};function ta(e,t){return e.find(n=>t?!n.disabled&&n.id!==t:!n.disabled)}function dPe(e,t){return e.filter(n=>t?!n.disabled&&n.id!==t:!n.disabled)}function pPe(e){if(e==="vertical")return"horizontal";if(e==="horizontal")return"vertical"}function aH(e,t){return e.filter(n=>n.rowId===t)}function fPe(e,t,n=!1){const o=e.findIndex(r=>r.id===t);return[...e.slice(o+1),...n?[uPe]:[],...e.slice(0,o)]}function T8(e){const t=[];for(const n of e){const o=t.find(r=>{var s;return((s=r[0])==null?void 0:s.rowId)===n.rowId});o?o.push(n):t.push([n])}return t}function yse(e){let t=0;for(const{length:n}of e)n>t&&(t=n);return t}function bPe(e){return{id:"__EMPTY_ITEM__",disabled:!0,rowId:e}}function cH(e,t,n){const o=yse(e);for(const r of e)for(let s=0;se1(i,["renderedItems","activeId"],l=>{i.setState("activeId",u=>{var d;return u!==void 0?u:(d=ta(l.renderedItems))==null?void 0:d.id})}));const c=(l,u,d,p)=>{var f,b;const{activeId:h,rtl:g,focusLoop:z,focusWrap:y,includesBaseElement:x}=i.getState(),A=g&&u!=="vertical"?rM(l):l;if(h==null)return(f=ta(A))==null?void 0:f.id;const _=A.find(N=>N.id===h);if(!_)return(b=ta(A))==null?void 0:b.id;const w=!!_.rowId,k=A.indexOf(_),q=A.slice(k+1),S=aH(q,_.rowId);if(p!==void 0){const N=dPe(S,h),E=N.slice(p)[0]||N[N.length-1];return E?.id}const C=pPe(w?u||"horizontal":u),T=z&&z!==C,W=w&&y&&y!==C;if(d=d||!w&&T&&x,T){const N=W&&!d?A:aH(A,_.rowId),E=fPe(N,h,d),L=ta(E,h);return L?.id}if(W){const N=ta(d?S:q,h);return d?N?.id||null:N?.id}const B=ta(S,h);return!B&&d?null:B?.id};return S0(Pt(Pt({},o),i),{setBaseElement:l=>i.setState("baseElement",l),setActiveId:l=>i.setState("activeId",l),move:l=>{l!==void 0&&(i.setState("activeId",l),i.setState("moves",u=>u+1))},first:()=>{var l;return(l=ta(i.getState().renderedItems))==null?void 0:l.id},last:()=>{var l;return(l=ta(rM(i.getState().renderedItems)))==null?void 0:l.id},next:l=>{const{renderedItems:u,orientation:d}=i.getState();return c(u,d,!1,l)},previous:l=>{var u;const{renderedItems:d,orientation:p,includesBaseElement:f}=i.getState(),h=!!!((u=ta(d))!=null&&u.rowId)&&f;return c(rM(d),p,h,l)},down:l=>{const{activeId:u,renderedItems:d,focusShift:p,focusLoop:f,includesBaseElement:b}=i.getState(),h=p&&!l,g=lH(W8(cH(T8(d),u,h)));return c(g,"vertical",f&&f!=="horizontal"&&b,l)},up:l=>{const{activeId:u,renderedItems:d,focusShift:p,includesBaseElement:f}=i.getState(),b=p&&!l,h=lH(rM(W8(cH(T8(d),u,b))));return c(h,"vertical",f,l)}})}function Oh(e,t,n){return e=lPe(e,t,n),yn(e,n,"activeId","setActiveId"),yn(e,n,"includesBaseElement"),yn(e,n,"virtualFocus"),yn(e,n,"orientation"),yn(e,n,"rtl"),yn(e,n,"focusLoop"),yn(e,n,"focusWrap"),yn(e,n,"focusShift"),e}function vse(e={}){const[t,n]=$i(zh,e);return Oh(t,n,e)}function xse(e={}){const t=c3(e.store,C2(e.disclosure,["contentElement","disclosureElement"])),n=t?.getState(),o=qt(e.open,n?.open,e.defaultOpen,!1),r=qt(e.animated,n?.animated,!1),s={open:o,animated:r,animating:!!r&&o,mounted:o,contentElement:qt(n?.contentElement,null),disclosureElement:qt(n?.disclosureElement,null)},i=Vo(s,t);return V1(i,()=>e1(i,["animated","animating"],c=>{c.animated||i.setState("animating",!1)})),V1(i,()=>Mse(i,["open"],()=>{i.getState().animated&&i.setState("animating",!0)})),V1(i,()=>e1(i,["open","animating"],c=>{i.setState("mounted",c.open||c.animating)})),S0(Pt({},i),{disclosure:e.disclosure,setOpen:c=>i.setState("open",c),show:()=>i.setState("open",!0),hide:()=>i.setState("open",!1),toggle:()=>i.setState("open",c=>!c),stopAnimation:()=>i.setState("animating",!1),setContentElement:c=>i.setState("contentElement",c),setDisclosureElement:c=>i.setState("disclosureElement",c)})}function _se(e,t,n){return Iu(t,[n.store,n.disclosure]),yn(e,n,"open","setOpen"),yn(e,n,"mounted","setMounted"),yn(e,n,"animated"),Object.assign(e,{disclosure:n.disclosure})}function wse(e={}){const[t,n]=$i(xse,e);return _se(t,n,e)}function kse(e={}){return xse(e)}function qse(e,t,n){return _se(e,t,n)}function hPe(e={}){const[t,n]=$i(kse,e);return qse(t,n,e)}function Sse(e={}){var t=e,{popover:n}=t,o=o3(t,["popover"]);const r=c3(o.store,C2(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),s=r?.getState(),i=kse(S0(Pt({},o),{store:r})),c=qt(o.placement,s?.placement,"bottom"),l=S0(Pt({},i.getState()),{placement:c,currentPlacement:c,anchorElement:qt(s?.anchorElement,null),popoverElement:qt(s?.popoverElement,null),arrowElement:qt(s?.arrowElement,null),rendered:Symbol("rendered")}),u=Vo(l,i,r);return S0(Pt(Pt({},i),u),{setAnchorElement:d=>u.setState("anchorElement",d),setPopoverElement:d=>u.setState("popoverElement",d),setArrowElement:d=>u.setState("arrowElement",d),render:()=>u.setState("rendered",Symbol("rendered"))})}function Cse(e,t,n){return Iu(t,[n.popover]),yn(e,n,"placement"),qse(e,t,n)}var l3=cr();l3.useContext;l3.useScopedContext;var $N=l3.useProviderContext,mPe=l3.ContextProvider,MPe=l3.ScopedContextProvider,VN=cr([mPe],[MPe]),l_=VN.useProviderContext,gPe=VN.ContextProvider,HN=VN.ScopedContextProvider,zPe=O.createContext(void 0),OPe=O.createContext(void 0),u3=cr([gPe],[HN]),APe=u3.useContext;u3.useScopedContext;var u_=u3.useProviderContext,UN=u3.ContextProvider,d3=u3.ScopedContextProvider;O.createContext(void 0);var Rse=cr([UN,fd],[d3,gf]),yPe=Rse.useContext,Wse=Rse.useProviderContext;O.createContext(void 0);O.createContext(!1);var vPe="div",Tse=_t(function(t){var n=t,{store:o}=n,r=xt(n,["store"]);const s=u_();return o=o||s,r=Ve(_e({},r),{ref:Cn(o?.setAnchorElement,r.ref)}),r});yt(function(t){const n=Tse(t);return vt(vPe,n)});var xPe={id:null};function _Pe(e,t,n=!1){const o=e.findIndex(r=>r.id===t);return[...e.slice(o+1),...n?[xPe]:[],...e.slice(0,o)]}function wPe(e,t){return e.find(n=>!n.disabled)}function Kl(e,t){return t&&e.item(t)||null}function kPe(e){const t=[];for(const n of e){const o=t.find(r=>{var s;return((s=r[0])==null?void 0:s.rowId)===n.rowId});o?o.push(n):t.push([n])}return t}function qPe(e,t=!1){if(Ml(e))e.setSelectionRange(t?e.value.length:0,e.value.length);else if(e.isContentEditable){const n=Zn(e).getSelection();n?.selectAllChildren(e),t&&n?.collapseToEnd()}}var E8=Symbol("FOCUS_SILENTLY");function SPe(e){e[E8]=!0,e.focus({preventScroll:!0})}function CPe(e){const t=e[E8];return delete e[E8],t}function NM(e,t,n){return!(!t||t===n||!e.item(t.id))}var Ese=O.createContext(!0),XN="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], summary, iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function RPe(e){return Number.parseInt(e.getAttribute("tabindex")||"0",10)<0}function Ca(e){return!(!e.matches(XN)||!ase(e)||e.closest("[inert]"))}function Wv(e){if(!Ca(e)||RPe(e))return!1;if(!("form"in e)||!e.form||e.checked||e.type!=="radio")return!0;const t=e.form.elements.namedItem(e.name);if(!t||!("length"in t))return!0;const n=ml(e);return!n||n===e||!("form"in n)||n.form!==e.form||n.name!==e.name}function GN(e,t){const n=Array.from(e.querySelectorAll(XN));t&&n.unshift(e);const o=n.filter(Ca);return o.forEach((r,s)=>{if(TN(r)&&r.contentDocument){const i=r.contentDocument.body;o.splice(s,1,...GN(i))}}),o}function p3(e,t,n){const o=Array.from(e.querySelectorAll(XN)),r=o.filter(Wv);return t&&Wv(e)&&r.unshift(e),r.forEach((s,i)=>{if(TN(s)&&s.contentDocument){const c=s.contentDocument.body,l=p3(c,!1,n);r.splice(i,1,...l)}}),!r.length&&n?o:r}function WPe(e,t,n){const[o]=p3(e,t,n);return o||null}function TPe(e,t,n,o){const r=ml(e),s=GN(e,t),i=s.indexOf(r);return s.slice(i+1).find(Wv)||null||null||null}function hq(e,t){return TPe(document.body,!1)}function EPe(e,t,n,o){const r=ml(e),s=GN(e,t).reverse(),i=s.indexOf(r);return s.slice(i+1).find(Wv)||null||null||null}function uH(e,t){return EPe(document.body,!1)}function Tv(e){const t=ml(e);if(!t)return!1;if(t===e)return!0;const n=t.getAttribute("aria-activedescendant");return n?n===e.id:!1}function Au(e){const t=ml(e);if(!t)return!1;if(u1(e,t))return!0;const n=t.getAttribute("aria-activedescendant");return!n||!("id"in e)?!1:n===e.id?!0:!!e.querySelector(`#${CSS.escape(n)}`)}function Bse(e){!Au(e)&&Ca(e)&&e.focus()}function BPe(e){var t;const n=(t=e.getAttribute("tabindex"))!=null?t:"";e.setAttribute("data-tabindex",n),e.setAttribute("tabindex","-1")}function NPe(e,t){const n=p3(e,t);for(const o of n)BPe(o)}function LPe(e){const t=e.querySelectorAll("[data-tabindex]"),n=o=>{const r=o.getAttribute("data-tabindex");o.removeAttribute("data-tabindex"),r?o.setAttribute("tabindex",r):o.removeAttribute("tabindex")};e.hasAttribute("data-tabindex")&&n(e);for(const o of t)n(o)}function jPe(e,t){"scrollIntoView"in e?(e.focus({preventScroll:!0}),e.scrollIntoView(Pt({block:"nearest",inline:"nearest"},t))):e.focus()}var PPe="div",dH=NN(),IPe=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"];function DPe(e){const{tagName:t,readOnly:n,type:o}=e;return t==="TEXTAREA"&&!n||t==="SELECT"&&!n?!0:t==="INPUT"&&!n?IPe.includes(o):!!(e.isContentEditable||e.getAttribute("role")==="combobox"&&e.dataset.name)}function FPe(e){return"labels"in e?e.labels:null}function pH(e){return e.tagName.toLowerCase()==="input"&&e.type?e.type==="radio"||e.type==="checkbox":!1}function $Pe(e){return e?e==="button"||e==="summary"||e==="input"||e==="select"||e==="textarea"||e==="a":!0}function VPe(e){return e?e==="button"||e==="input"||e==="select"||e==="textarea":!0}function HPe(e,t,n,o,r){return e?t?n&&!o?-1:void 0:n?r:r||0:r}function mq(e,t){return It(n=>{e?.(n),!n.defaultPrevented&&t&&(n.stopPropagation(),n.preventDefault())})}var KN=!0;function UPe(e){const t=e.target;t&&"hasAttribute"in t&&(t.hasAttribute("data-focus-visible")||(KN=!1))}function XPe(e){e.metaKey||e.ctrlKey||e.altKey||(KN=!0)}var Ah=_t(function(t){var n=t,{focusable:o=!0,accessibleWhenDisabled:r,autoFocus:s,onFocusVisible:i}=n,c=xt(n,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);const l=O.useRef(null);O.useEffect(()=>{o&&(lo("mousedown",UPe,!0),lo("keydown",XPe,!0))},[o]),dH&&O.useEffect(()=>{if(!o)return;const E=l.current;if(!E||!pH(E))return;const L=FPe(E);if(!L)return;const I=()=>queueMicrotask(()=>E.focus());for(const P of L)P.addEventListener("mouseup",I);return()=>{for(const P of L)P.removeEventListener("mouseup",I)}},[o]);const u=o&&hl(c),d=!!u&&!r,[p,f]=O.useState(!1);O.useEffect(()=>{o&&d&&p&&f(!1)},[o,d,p]),O.useEffect(()=>{if(!o||!p)return;const E=l.current;if(!E||typeof IntersectionObserver>"u")return;const L=new IntersectionObserver(()=>{Ca(E)||f(!1)});return L.observe(E),()=>L.disconnect()},[o,p]);const b=mq(c.onKeyPressCapture,u),h=mq(c.onMouseDownCapture,u),g=mq(c.onClickCapture,u),z=c.onMouseDown,y=It(E=>{if(z?.(E),E.defaultPrevented||!o)return;const L=E.currentTarget;if(!dH||lse(E)||!Jc(L)&&!pH(L))return;let I=!1;const P=()=>{I=!0},H={capture:!0,once:!0};L.addEventListener("focusin",P,H),Zb(L,"mouseup",()=>{L.removeEventListener("focusin",P,!0),!I&&Bse(L)})}),x=(E,L)=>{if(L&&(E.currentTarget=L),!o)return;const I=E.currentTarget;I&&Tv(I)&&(i?.(E),!E.defaultPrevented&&f(!0))},v=c.onKeyDownCapture,M=It(E=>{if(v?.(E),E.defaultPrevented||!o||p||E.metaKey||E.altKey||E.ctrlKey||!vr(E))return;const L=E.currentTarget;Zb(L,"focusout",()=>x(E,L))}),A=c.onFocusCapture,_=It(E=>{if(A?.(E),E.defaultPrevented||!o)return;if(!vr(E)){f(!1);return}const L=E.currentTarget,I=()=>x(E,L);KN||DPe(E.target)?Zb(E.target,"focusout",I):f(!1)}),w=c.onBlur,k=It(E=>{w?.(E),o&&nb(E)&&f(!1)}),q=O.useContext(Ese),S=It(E=>{o&&s&&E&&q&&queueMicrotask(()=>{Tv(E)||Ca(E)&&E.focus()})}),C=r3(l),T=o&&$Pe(C),W=o&&VPe(C),B=c.style,N=O.useMemo(()=>d?_e({pointerEvents:"none"},B):B,[d,B]);return c=Ve(_e({"data-focus-visible":o&&p||void 0,"data-autofocus":s||void 0,"aria-disabled":u||void 0},c),{ref:Cn(l,S,c.ref),style:N,tabIndex:HPe(o,d,T,W,c.tabIndex),disabled:W&&d?!0:void 0,contentEditable:u?void 0:c.contentEditable,onKeyPressCapture:b,onClickCapture:g,onMouseDownCapture:h,onMouseDown:y,onKeyDownCapture:M,onFocusCapture:_,onBlur:k}),Ir(c)});yt(function(t){const n=Ah(t);return vt(PPe,n)});var GPe="div";function KPe(e){return e.some(t=>!!t.rowId)}function YPe(e){const t=e.target;return t&&!Ml(t)?!1:e.key.length===1&&!e.ctrlKey&&!e.metaKey}function ZPe(e){return e.key==="Shift"||e.key==="Control"||e.key==="Alt"||e.key==="Meta"}function fH(e,t,n){return It(o=>{var r;if(t?.(o),o.defaultPrevented||o.isPropagationStopped()||!vr(o)||ZPe(o)||YPe(o))return;const s=e.getState(),i=(r=Kl(e,s.activeId))==null?void 0:r.element;if(!i)return;const c=o,l=xt(c,["view"]),u=n?.current;i!==u&&i.focus(),Nje(i,o.type,l)||o.preventDefault(),o.currentTarget.contains(i)&&o.stopPropagation()})}function QPe(e){return wPe(W8(rM(kPe(e))))}function JPe(e){const[t,n]=O.useState(!1),o=O.useCallback(()=>n(!0),[]),r=e.useState(s=>Kl(e,s.activeId));return O.useEffect(()=>{const s=r?.element;t&&s&&(n(!1),s.focus({preventScroll:!0}))},[r,t]),o}var yh=_t(function(t){var n=t,{store:o,composite:r=!0,focusOnMove:s=r,moveOnKeyPress:i=!0}=n,c=xt(n,["store","composite","focusOnMove","moveOnKeyPress"]);const l=$je();o=o||l,F0(o,!1);const u=O.useRef(null),d=O.useRef(null),p=JPe(o),f=o.useState("moves"),[,b]=bse(r?o.setBaseElement:null);O.useEffect(()=>{var W;if(!o||!f||!r||!s)return;const{activeId:B}=o.getState(),N=(W=Kl(o,B))==null?void 0:W.element;N&&jPe(N)},[o,f,r,s]),X0(()=>{if(!o||!f||!r)return;const{baseElement:W,activeId:B}=o.getState();if(!(B===null)||!W)return;const E=d.current;d.current=null,E&&Df(E,{relatedTarget:W}),Tv(W)||W.focus()},[o,f,r]);const h=o.useState("activeId"),g=o.useState("virtualFocus");X0(()=>{var W;if(!o||!r||!g)return;const B=d.current;if(d.current=null,!B)return;const E=((W=Kl(o,h))==null?void 0:W.element)||ml(B);E!==B&&Df(B,{relatedTarget:E})},[o,h,g,r]);const z=fH(o,c.onKeyDownCapture,d),y=fH(o,c.onKeyUpCapture,d),x=c.onFocusCapture,v=It(W=>{if(x?.(W),W.defaultPrevented||!o)return;const{virtualFocus:B}=o.getState();if(!B)return;const N=W.relatedTarget,E=CPe(W.currentTarget);vr(W)&&E&&(W.stopPropagation(),d.current=N)}),M=c.onFocus,A=It(W=>{if(M?.(W),W.defaultPrevented||!r||!o)return;const{relatedTarget:B}=W,{virtualFocus:N}=o.getState();N?vr(W)&&!NM(o,B)&&queueMicrotask(p):vr(W)&&o.setActiveId(null)}),_=c.onBlurCapture,w=It(W=>{var B;if(_?.(W),W.defaultPrevented||!o)return;const{virtualFocus:N,activeId:E}=o.getState();if(!N)return;const L=(B=Kl(o,E))==null?void 0:B.element,I=W.relatedTarget,P=NM(o,I),H=d.current;d.current=null,vr(W)&&P?(I===L?H&&H!==I&&Df(H,W):L?Df(L,W):H&&Df(H,W),W.stopPropagation()):!NM(o,W.target)&&L&&Df(L,W)}),k=c.onKeyDown,q=O1(i),S=It(W=>{var B;if(k?.(W),W.defaultPrevented||!o||!vr(W))return;const{orientation:N,items:E,renderedItems:L,activeId:I}=o.getState(),P=Kl(o,I);if((B=P?.element)!=null&&B.isConnected)return;const H=N!=="horizontal",U=N!=="vertical",X=KPe(L);if((W.key==="ArrowLeft"||W.key==="ArrowRight"||W.key==="Home"||W.key==="End")&&Ml(W.currentTarget))return;const Y={ArrowUp:(X||H)&&(()=>{if(X){const ee=E&&QPe(E);return ee?.id}return o?.last()}),ArrowRight:(X||U)&&o.first,ArrowDown:(X||H)&&o.first,ArrowLeft:(X||U)&&o.last,Home:o.first,End:o.last,PageUp:o.first,PageDown:o.last}[W.key];if(Y){const ee=Y();if(ee!==void 0){if(!q(W))return;W.preventDefault(),o.move(ee)}}});c=rn(c,W=>a.jsx(fd,{value:o,children:W}),[o]);const C=o.useState(W=>{var B;if(o&&r&&W.virtualFocus)return(B=Kl(o,W.activeId))==null?void 0:B.id});c=Ve(_e({"aria-activedescendant":C},c),{ref:Cn(u,b,c.ref),onKeyDownCapture:z,onKeyUpCapture:y,onFocusCapture:v,onFocus:A,onBlurCapture:w,onKeyDown:S});const T=o.useState(W=>r&&(W.virtualFocus||W.activeId===null));return c=Ah(_e({focusable:T},c)),c}),e9e=yt(function(t){const n=yh(t);return vt(GPe,n)}),t9e="button";function bH(e){if(!e.isTrusted)return!1;const t=e.currentTarget;return e.key==="Enter"?Jc(t)||t.tagName==="SUMMARY"||t.tagName==="A":e.key===" "?Jc(t)||t.tagName==="SUMMARY"||t.tagName==="INPUT"||t.tagName==="SELECT":!1}var n9e=Symbol("command"),d_=_t(function(t){var n=t,{clickOnEnter:o=!0,clickOnSpace:r=!0}=n,s=xt(n,["clickOnEnter","clickOnSpace"]);const i=O.useRef(null),c=r3(i),l=s.type,[u,d]=O.useState(()=>!!c&&Jc({tagName:c,type:l}));O.useEffect(()=>{i.current&&d(Jc(i.current))},[]);const[p,f]=O.useState(!1),b=O.useRef(!1),h=hl(s),[g,z]=hse(s,n9e,!0),y=s.onKeyDown,x=It(A=>{y?.(A);const _=A.currentTarget;if(A.defaultPrevented||g||h||!vr(A)||Ml(_)||_.isContentEditable)return;const w=o&&A.key==="Enter",k=r&&A.key===" ",q=A.key==="Enter"&&!o,S=A.key===" "&&!r;if(q||S){A.preventDefault();return}if(w||k){const C=bH(A);if(w){if(!C){A.preventDefault();const T=A,W=xt(T,["view"]),B=()=>nH(_,W);Tje()?Zb(_,"keyup",B):queueMicrotask(B)}}else k&&(b.current=!0,C||(A.preventDefault(),f(!0)))}}),v=s.onKeyUp,M=It(A=>{if(v?.(A),A.defaultPrevented||g||h||A.metaKey)return;const _=r&&A.key===" ";if(b.current&&_&&(b.current=!1,!bH(A))){A.preventDefault(),f(!1);const w=A.currentTarget,k=A,q=xt(k,["view"]);queueMicrotask(()=>nH(w,q))}});return s=Ve(_e(_e({"data-active":p||void 0,type:u?"button":void 0},z),s),{ref:Cn(i,s.ref),onKeyDown:x,onKeyUp:M}),s=Ah(s),s});yt(function(t){const n=d_(t);return vt(t9e,n)});var Nse="button",Lse=_t(function(t){const n=O.useRef(null),o=r3(n,Nse),[r,s]=O.useState(()=>!!o&&Jc({tagName:o,type:t.type}));return O.useEffect(()=>{n.current&&s(Jc(n.current))},[]),t=Ve(_e({role:!r&&o!=="a"?"button":void 0},t),{ref:Cn(n,t.ref)}),t=d_(t),t});yt(function(t){const n=Lse(t);return vt(Nse,n)});var o9e="button",r9e=Symbol("disclosure"),jse=_t(function(t){var n=t,{store:o,toggleOnClick:r=!0}=n,s=xt(n,["store","toggleOnClick"]);const i=$N();o=o||i,F0(o,!1);const c=O.useRef(null),[l,u]=O.useState(!1),d=o.useState("disclosureElement"),p=o.useState("open");O.useEffect(()=>{let x=d===c.current;d?.isConnected||(o?.setDisclosureElement(c.current),x=!0),u(p&&x)},[d,o,p]);const f=s.onClick,b=O1(r),[h,g]=hse(s,r9e,!0),z=It(x=>{f?.(x),!x.defaultPrevented&&(h||b(x)&&(o?.setDisclosureElement(x.currentTarget),o?.toggle()))}),y=o.useState("contentElement");return s=Ve(_e(_e({"aria-expanded":l,"aria-controls":y?.id},g),s),{ref:Cn(c,s.ref),onClick:z}),s=Lse(s),s});yt(function(t){const n=jse(t);return vt(o9e,n)});var s9e="button",Pse=_t(function(t){var n=t,{store:o}=n,r=xt(n,["store"]);const s=l_();o=o||s,F0(o,!1);const i=o.useState("contentElement");return r=_e({"aria-haspopup":c_(i,"dialog")},r),r=jse(_e({store:o},r)),r});yt(function(t){const n=Pse(t);return vt(s9e,n)});var Ise=O.createContext(void 0),i9e="div",Dse=_t(function(t){const n=O.useContext(Ise),o=Dr(t.id);return X0(()=>(n?.(o),()=>n?.(void 0)),[n,o]),t=_e({id:o,"aria-hidden":!0},t),Ir(t)});yt(function(t){const n=Dse(t);return vt(i9e,n)});var a9e="div",Fse=_t(function(t){var n=t,o=xt(n,["store"]);return o=Dse(o),o}),c9e=yt(function(t){const n=Fse(t);return vt(a9e,n)}),l9e="div",$se=_t(function(t){const[n,o]=O.useState();return t=rn(t,r=>a.jsx(Ise.Provider,{value:o,children:r}),[]),t=_e({role:"group","aria-labelledby":n},t),Ir(t)});yt(function(t){const n=$se(t);return vt(l9e,n)});var u9e="div",Vse=_t(function(t){var n=t,o=xt(n,["store"]);return o=$se(o),o}),d9e=yt(function(t){const n=Vse(t);return vt(u9e,n)}),Hse=O.createContext(!1),p9e="span",f9e=a.jsx("svg",{display:"block",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,viewBox:"0 0 16 16",height:"1em",width:"1em",children:a.jsx("polyline",{points:"4,8 7,12 12,4"})});function b9e(e){return e.checked?e.children||f9e:typeof e.children=="function"?e.children:null}var YN=_t(function(t){var n=t,{store:o,checked:r}=n,s=xt(n,["store","checked"]);const i=O.useContext(Hse);r=r??i;const c=b9e({checked:r,children:s.children});return s=Ve(_e({"aria-hidden":!0},s),{children:c,style:_e({width:"1em",height:"1em",pointerEvents:"none"},s.style)}),Ir(s)});yt(function(t){const n=YN(t);return vt(p9e,n)});var h9e="div";function Use(e){const t=e.relatedTarget;return t?.nodeType===Node.ELEMENT_NODE?t:null}function m9e(e){const t=Use(e);return t?u1(e.currentTarget,t):!1}var B8=Symbol("composite-hover");function M9e(e){let t=Use(e);if(!t)return!1;do{if(Pu(t,B8)&&t[B8])return!0;t=t.parentElement}while(t);return!1}var ZN=_t(function(t){var n=t,{store:o,focusOnHover:r=!0,blurOnHoverEnd:s=!!r}=n,i=xt(n,["store","focusOnHover","blurOnHoverEnd"]);const c=a3();o=o||c,F0(o,!1);const l=IN(),u=i.onMouseMove,d=O1(r),p=It(z=>{if(u?.(z),!z.defaultPrevented&&l()&&d(z)){if(!Au(z.currentTarget)){const y=o?.getState().baseElement;y&&!Tv(y)&&y.focus()}o?.setActiveId(z.currentTarget.id)}}),f=i.onMouseLeave,b=O1(s),h=It(z=>{var y;f?.(z),!z.defaultPrevented&&l()&&(m9e(z)||M9e(z)||d(z)&&b(z)&&(o?.setActiveId(null),(y=o?.getState().baseElement)==null||y.focus()))}),g=O.useCallback(z=>{z&&(z[B8]=!0)},[]);return i=Ve(_e({},i),{ref:Cn(g,i.ref),onMouseMove:p,onMouseLeave:h}),Ir(i)}),g9e=Za(yt(function(t){const n=ZN(t);return vt(h9e,n)})),z9e="div",QN=_t(function(t){var n=t,{store:o,shouldRegisterItem:r=!0,getItem:s=ise,element:i}=n,c=xt(n,["store","shouldRegisterItem","getItem","element"]);const l=Ije();o=o||l;const u=Dr(c.id),d=O.useRef(i);return O.useEffect(()=>{const p=d.current;if(!u||!p||!r)return;const f=s({id:u,element:p});return o?.renderItem(f)},[u,r,s,o]),c=Ve(_e({},c),{ref:Cn(d,c.ref)}),Ir(c)});yt(function(t){const n=QN(t);return vt(z9e,n)});var O9e="button";function A9e(e){return R8(e)?!0:e.tagName==="INPUT"&&!Jc(e)}function y9e(e,t=!1){const n=e.clientHeight,{top:o}=e.getBoundingClientRect(),r=Math.max(n*.875,n-40)*1.5,s=t?n-r+o:r+o;return e.tagName==="HTML"?s+e.scrollTop:s}function v9e(e,t=!1){const{top:n}=e.getBoundingClientRect();return t?n+e.clientHeight:n}function hH(e,t,n,o=!1){var r;if(!t||!n)return;const{renderedItems:s}=t.getState(),i=cse(e);if(!i)return;const c=y9e(i,o);let l,u;for(let d=0;d=0){u!==void 0&&u{if(r)return r;if(P&&g?.baseElement&&g.baseElement===P.baseElement)return g.id}),x=hl(p)&&!p.accessibleWhenDisabled,v=O.useCallback(P=>{const H=Ve(_e({},P),{id:b||P.id,rowId:z,disabled:!!x});return l?l(H):H},[b,z,x,l]),M=p.onFocus,A=O.useRef(!1),_=It(P=>{if(M?.(P),P.defaultPrevented||lse(P)||!b||!o||x9e(P,o))return;const{virtualFocus:H,baseElement:U}=o.getState();if(o.setActiveId(b),R8(P.currentTarget)&&qPe(P.currentTarget),!H||!vr(P)||A9e(P.currentTarget)||!U?.isConnected)return;NN()&&P.currentTarget.hasAttribute("data-autofocus")&&P.currentTarget.scrollIntoView({block:"nearest",inline:"nearest"}),A.current=!0,P.relatedTarget===U||NM(o,P.relatedTarget)?SPe(U):U.focus()}),w=p.onBlurCapture,k=It(P=>{if(w?.(P),P.defaultPrevented)return;const H=o?.getState();H?.virtualFocus&&A.current&&(A.current=!1,P.preventDefault(),P.stopPropagation())}),q=p.onKeyDown,S=O1(s),C=O1(i),T=It(P=>{if(q?.(P),P.defaultPrevented||!vr(P)||!o)return;const{currentTarget:H}=P,U=o.getState(),X=o.item(b),Z=!!X?.rowId,ne=U.orientation!=="horizontal",oe=U.orientation!=="vertical",Y=()=>!!(Z||oe||!U.baseElement||!Ml(U.baseElement)),ie={ArrowUp:(Z||ne)&&o.up,ArrowRight:(Z||oe)&&o.next,ArrowDown:(Z||ne)&&o.down,ArrowLeft:(Z||oe)&&o.previous,Home:()=>{if(Y())return!Z||P.ctrlKey?o?.first():o?.previous(-1)},End:()=>{if(Y())return!Z||P.ctrlKey?o?.last():o?.next(-1)},PageUp:()=>hH(H,o,o?.up,!0),PageDown:()=>hH(H,o,o?.down)}[P.key];if(ie){if(R8(H)){const be=Rje(H),ye=oe&&P.key==="ArrowLeft",xe=oe&&P.key==="ArrowRight",K=ne&&P.key==="ArrowUp",pe=ne&&P.key==="ArrowDown";if(xe||pe){const{length:G}=Cje(H);if(be.end!==G)return}else if((ye||K)&&be.start!==0)return}const se=ie();if(S(P)||se!==void 0){if(!C(P))return;P.preventDefault(),o.move(se)}}}),W=on(o,P=>P?.baseElement||void 0),B=O.useMemo(()=>({id:b,baseElement:W}),[b,W]);p=rn(p,P=>a.jsx(Vje.Provider,{value:B,children:P}),[B]);const N=on(o,P=>!!P&&P.activeId===b),E=on(o,P=>{if(u!=null)return u;if(P&&g?.ariaSetSize&&g.baseElement===P.baseElement)return g.ariaSetSize}),L=on(o,P=>{if(d!=null)return d;if(!P||!g?.ariaPosInSet||g.baseElement!==P.baseElement)return;const H=P.renderedItems.filter(U=>U.rowId===z);return g.ariaPosInSet+H.findIndex(U=>U.id===b)}),I=on(o,P=>P?.renderedItems.length?P.virtualFocus?!1:c?!0:P.activeId===b:!0);return p=Ve(_e({id:b,"data-active-item":N||void 0},p),{ref:Cn(h,p.ref),tabIndex:I?p.tabIndex:-1,onFocus:_,onBlurCapture:k,onKeyDown:T}),p=d_(p),p=QN(Ve(_e({store:o},p),{getItem:v,shouldRegisterItem:b?p.shouldRegisterItem:!1})),Ir(Ve(_e({},p),{"aria-setsize":E,"aria-posinset":L}))}),N8=Za(yt(function(t){const n=vh(t);return vt(O9e,n)})),_9e="div";function mH(e,t){const n=setTimeout(t,e);return()=>clearTimeout(n)}function w9e(e){let t=requestAnimationFrame(()=>{t=requestAnimationFrame(e)});return()=>cancelAnimationFrame(t)}function MH(...e){return e.join(", ").split(", ").reduce((t,n)=>{const o=n.endsWith("ms")?1:1e3,r=Number.parseFloat(n||"0s")*o;return r>t?r:t},0)}function p_(e,t,n){return!n&&t!==!1&&(!e||!!t)}var f_=_t(function(t){var n=t,{store:o,alwaysVisible:r}=n,s=xt(n,["store","alwaysVisible"]);const i=$N();o=o||i,F0(o,!1);const c=O.useRef(null),l=Dr(s.id),[u,d]=O.useState(null),p=o.useState("open"),f=o.useState("mounted"),b=o.useState("animated"),h=o.useState("contentElement"),g=on(o.disclosure,"contentElement");X0(()=>{c.current&&o?.setContentElement(c.current)},[o]),X0(()=>{let v;return o?.setState("animated",M=>(v=M,!0)),()=>{v!==void 0&&o?.setState("animated",v)}},[o]),X0(()=>{if(b){if(!h?.isConnected){d(null);return}return w9e(()=>{d(p?"enter":f?"leave":null)})}},[b,h,p,f]),X0(()=>{if(!o||!b)return;const v=()=>o?.setState("animating",!1),M=()=>Qo.flushSync(v);if(!u||!h){v();return}if(u==="leave"&&p||u==="enter"&&!p)return;if(typeof b=="number")return mH(b,M);const{transitionDuration:A,animationDuration:_,transitionDelay:w,animationDelay:k}=getComputedStyle(h),{transitionDuration:q="0",animationDuration:S="0",transitionDelay:C="0",animationDelay:T="0"}=g?getComputedStyle(g):{},W=MH(w,k,C,T),B=MH(A,_,q,S),N=W+B;if(!N){u==="enter"&&o.setState("animated",!1),v();return}const E=1e3/60,L=Math.max(N-E,0);return mH(L,M)},[o,b,h,g,p,u]),s=rn(s,v=>a.jsx(HN,{value:o,children:v}),[o]);const z=p_(f,s.hidden,r),y=s.style,x=O.useMemo(()=>z?Ve(_e({},y),{display:"none"}):y,[z,y]);return s=Ve(_e({id:l,"data-open":p||void 0,"data-enter":u==="enter"||void 0,"data-leave":u==="leave"||void 0,hidden:z},s),{ref:Cn(l?o.setContentElement:null,c,s.ref),style:x}),Ir(s)}),k9e=yt(function(t){const n=f_(t);return vt(_9e,n)});yt(function(t){var n=t,{unmountOnHide:o}=n,r=xt(n,["unmountOnHide"]);const s=$N(),i=r.store||s;return on(i,l=>!o||l?.mounted)===!1?null:a.jsx(k9e,_e({},r))});function Xse(e,...t){if(!e)return!1;const n=e.getAttribute("data-backdrop");return n==null?!1:n===""||n==="true"||!t.length?!0:t.some(o=>n===o)}var Mq=new WeakMap;function f3(e,t,n){Mq.has(e)||Mq.set(e,new Map);const o=Mq.get(e),r=o.get(t);if(!r)return o.set(t,n()),()=>{var c;(c=o.get(t))==null||c(),o.delete(t)};const s=n(),i=()=>{s(),r(),o.delete(t)};return o.set(t,i),()=>{o.get(t)===i&&(s(),o.set(t,r))}}function JN(e,t,n){return f3(e,t,()=>{const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{r==null?e.removeAttribute(t):e.setAttribute(t,r)}})}function Bp(e,t,n){return f3(e,t,()=>{const r=t in e,s=e[t];return e[t]=n,()=>{r?e[t]=s:delete e[t]}})}function L8(e,t){return e?f3(e,"style",()=>{const o=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=o}}):()=>{}}function q9e(e,t,n){return e?f3(e,t,()=>{const r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{r?e.style.setProperty(t,r):e.style.removeProperty(t)}}):()=>{}}var S9e=["SCRIPT","STYLE"];function j8(e){return`__ariakit-dialog-snapshot-${e}`}function C9e(e,t){const n=Zn(t),o=j8(e);if(!n.body[o])return!0;do{if(t===n.body)return!1;if(t[o])return!0;if(!t.parentElement)return!1;t=t.parentElement}while(!0)}function R9e(e,t,n){return S9e.includes(t.tagName)||!C9e(e,t)?!1:!n.some(o=>o&&u1(t,o))}function eL(e,t,n,o){for(let r of t){if(!r?.isConnected)continue;const s=t.some(l=>!l||l===r?!1:l.contains(r)),i=Zn(r),c=r;for(;r.parentElement&&r!==i.body;){if(o?.(r.parentElement,c),!s)for(const l of r.parentElement.children)R9e(e,l,t)&&n(l,c);r=r.parentElement}}}function W9e(e,t){const{body:n}=Zn(t[0]),o=[];return eL(e,t,s=>{o.push(Bp(s,j8(e),!0))}),$o(Bp(n,j8(e),!0),()=>{for(const s of o)s()})}function W2(e="",t=!1){return`__ariakit-dialog-${t?"ancestor":"outside"}${e?`-${e}`:""}`}function T9e(e,t=""){return $o(Bp(e,W2(),!0),Bp(e,W2(t),!0))}function Gse(e,t=""){return $o(Bp(e,W2("",!0),!0),Bp(e,W2(t,!0),!0))}function tL(e,t){const n=W2(t,!0);if(e[n])return!0;const o=W2(t);do{if(e[o])return!0;if(!e.parentElement)return!1;e=e.parentElement}while(!0)}function gH(e,t){const n=[],o=t.map(s=>s?.id);return eL(e,t,s=>{Xse(s,...o)||n.unshift(T9e(s,e))},(s,i)=>{i.hasAttribute("data-dialog")&&i.id!==e||n.unshift(Gse(s,e))}),()=>{for(const s of n)s()}}var E9e="div",B9e=["a","button","details","dialog","div","form","h1","h2","h3","h4","h5","h6","header","img","input","label","li","nav","ol","p","section","select","span","summary","textarea","ul","svg"];_t(function(t){return t});var Pg=yt(function(t){return vt(E9e,t)});Object.assign(Pg,B9e.reduce((e,t)=>(e[t]=yt(function(o){return vt(t,o)}),e),{}));function N9e({store:e,backdrop:t,alwaysVisible:n,hidden:o}){const r=O.useRef(null),s=wse({disclosure:e}),i=e.useState("contentElement");X0(()=>{const u=r.current,d=i;u&&d&&(u.style.zIndex=getComputedStyle(d).zIndex)},[i]),X0(()=>{const u=i?.id;if(!u)return;const d=r.current;if(d)return Gse(d,u)},[i]);const c=f_({ref:r,store:s,role:"presentation","data-backdrop":i?.id||"",alwaysVisible:n,hidden:o??void 0,style:{position:"fixed",top:0,right:0,bottom:0,left:0}});if(!t)return null;if(O.isValidElement(t))return a.jsx(Pg,Ve(_e({},c),{render:t}));const l=typeof t!="boolean"?t:"div";return a.jsx(Pg,Ve(_e({},c),{render:a.jsx(l,{})}))}function L9e(e){return JN(e,"aria-hidden","true")}function Kse(){return"inert"in HTMLElement.prototype}function Yse(e,t){if(!("style"in e))return Vy;if(Kse())return Bp(e,"inert",!0);const o=p3(e,!0).map(r=>{if(t?.some(i=>i&&u1(i,r)))return Vy;const s=f3(r,"focus",()=>(r.focus=Vy,()=>{delete r.focus}));return $o(JN(r,"tabindex","-1"),s)});return $o(...o,L9e(e),L8(e,{pointerEvents:"none",userSelect:"none",cursor:"default"}))}function j9e(e,t){const n=[],o=t.map(s=>s?.id);return eL(e,t,s=>{Xse(s,...o)||n.unshift(Yse(s,t))},s=>{s.hasAttribute("role")&&(t.some(i=>i&&u1(i,s))||n.unshift(JN(s,"role","none")))}),()=>{for(const s of n)s()}}function P9e({attribute:e,contentId:t,contentElement:n,enabled:o}){const[r,s]=jN(),i=O.useCallback(()=>{if(!o||!n)return!1;const{body:c}=Zn(n),l=c.getAttribute(e);return!l||l===t},[r,o,n,e,t]);return O.useEffect(()=>{if(!o||!t||!n)return;const{body:c}=Zn(n);if(i())return c.setAttribute(e,t),()=>c.removeAttribute(e);const l=new MutationObserver(()=>Qo.flushSync(s));return l.observe(c,{attributeFilter:[e]}),()=>l.disconnect()},[r,o,t,n,i,e]),i}function I9e(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function D9e(e,t,n){const o=P9e({attribute:"data-dialog-prevent-body-scroll",contentElement:e,contentId:t,enabled:n});O.useEffect(()=>{if(!o()||!e)return;const r=Zn(e),s=qje(e),{documentElement:i,body:c}=r,l=i.style.getPropertyValue("--scrollbar-width"),u=l?Number.parseInt(l):s.innerWidth-i.clientWidth,d=()=>q9e(i,"--scrollbar-width",`${u}px`),p=I9e(i),f=()=>L8(c,{overflow:"hidden",[p]:`${u}px`}),b=()=>{var g,z;const{scrollX:y,scrollY:x,visualViewport:v}=s,M=(g=v?.offsetLeft)!=null?g:0,A=(z=v?.offsetTop)!=null?z:0,_=L8(c,{position:"fixed",overflow:"hidden",top:`${-(x-Math.floor(A))}px`,left:`${-(y-Math.floor(M))}px`,right:"0",[p]:`${u}px`});return()=>{_(),s.scrollTo({left:y,top:x,behavior:"instant"})}},h=BN()&&!Eje();return $o(d(),h?b():f())},[o,e])}var zH=O.createContext({});function F9e(e){const t=O.useContext(zH),[n,o]=O.useState([]),r=O.useCallback(c=>{var l;return o(u=>[...u,c]),$o((l=t.add)==null?void 0:l.call(t,c),()=>{o(u=>u.filter(d=>d!==c))})},[t]);X0(()=>e1(e,["open","contentElement"],c=>{var l;if(c.open&&c.contentElement)return(l=t.add)==null?void 0:l.call(t,e)}),[e,t]);const s=O.useMemo(()=>({store:e,add:r}),[e,r]);return{wrapElement:O.useCallback(c=>a.jsx(zH.Provider,{value:s,children:c}),[s]),nestedDialogs:n}}function $9e(e){const t=O.useRef();return O.useEffect(()=>{if(!e){t.current=null;return}return lo("mousedown",o=>{t.current=o.target},!0)},[e]),t}function V9e(e){return e.tagName==="HTML"?!0:u1(Zn(e).body,e)}function H9e(e,t){if(!e)return!1;if(u1(e,t))return!0;const n=t.getAttribute("aria-activedescendant");if(n){const o=Zn(e).getElementById(n);if(o)return u1(e,o)}return!1}function U9e(e,t){if(!("clientY"in e))return!1;const n=t.getBoundingClientRect();return n.width===0||n.height===0?!1:n.top<=e.clientY&&e.clientY<=n.top+n.height&&n.left<=e.clientX&&e.clientX<=n.left+n.width}function gq({store:e,type:t,listener:n,capture:o,domReady:r}){const s=It(n),i=e.useState("open"),c=O.useRef(!1);X0(()=>{if(!i||!r)return;const{contentElement:l}=e.getState();if(!l)return;const u=()=>{c.current=!0};return l.addEventListener("focusin",u,!0),()=>l.removeEventListener("focusin",u,!0)},[e,i,r]),O.useEffect(()=>i?lo(t,u=>{const{contentElement:d,disclosureElement:p}=e.getState(),f=u.target;!d||!f||!V9e(f)||u1(d,f)||H9e(p,f)||f.hasAttribute("data-focus-trap")||U9e(u,d)||c.current&&!tL(f,d.id)||s(u)},o):void 0,[i,o])}function zq(e,t){return typeof e=="function"?e(t):!!e}function X9e(e,t,n){const o=e.useState("open"),r=$9e(o),s={store:e,domReady:n,capture:!0};gq(Ve(_e({},s),{type:"click",listener:i=>{const{contentElement:c}=e.getState(),l=r.current;l&&ase(l)&&tL(l,c?.id)&&zq(t,i)&&e.hide()}})),gq(Ve(_e({},s),{type:"focusin",listener:i=>{const{contentElement:c}=e.getState();c&&i.target!==Zn(c)&&zq(t,i)&&e.hide()}})),gq(Ve(_e({},s),{type:"contextmenu",listener:i=>{zq(t,i)&&e.hide()}}))}function G9e(e,t){const o=Zn(e).createElement("button");return o.type="button",o.tabIndex=-1,o.textContent="Dismiss popup",Object.assign(o.style,{border:"0px",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0px",position:"absolute",whiteSpace:"nowrap",width:"1px"}),o.addEventListener("click",t),e.prepend(o),()=>{o.removeEventListener("click",t),o.remove()}}var K9e="div",Zse=_t(function(t){var n=t,{autoFocusOnShow:o=!0}=n,r=xt(n,["autoFocusOnShow"]);return r=rn(r,s=>a.jsx(Ese.Provider,{value:o,children:s}),[o]),r});yt(function(t){const n=Zse(t);return vt(K9e,n)});var OH=O.createContext(0);function Y9e({level:e,children:t}){const n=O.useContext(OH),o=Math.max(Math.min(e||n+1,6),1);return a.jsx(OH.Provider,{value:o,children:t})}var Z9e="span",Qse=_t(function(t){return t=Ve(_e({},t),{style:_e({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},t.style)}),t});yt(function(t){const n=Qse(t);return vt(Z9e,n)});var Q9e="span",J9e=_t(function(t){return t=Ve(_e({"data-focus-trap":"",tabIndex:0,"aria-hidden":!0},t),{style:_e({position:"fixed",top:0,left:0},t.style)}),t=Qse(t),t}),aA=yt(function(t){const n=J9e(t);return vt(Q9e,n)}),AH=O.createContext(null),eIe="div";function tIe(e){return Zn(e).body}function nIe(e,t){return t?typeof t=="function"?t(e):t:Zn(e).createElement("div")}function oIe(e="id"){return`${e?`${e}-`:""}${Math.random().toString(36).substr(2,6)}`}function Wl(e){queueMicrotask(()=>{e?.focus()})}var Jse=_t(function(t){var n=t,{preserveTabOrder:o,preserveTabOrderAnchor:r,portalElement:s,portalRef:i,portal:c=!0}=n,l=xt(n,["preserveTabOrder","preserveTabOrderAnchor","portalElement","portalRef","portal"]);const u=O.useRef(null),d=Cn(u,l.ref),p=O.useContext(AH),[f,b]=O.useState(null),[h,g]=O.useState(null),z=O.useRef(null),y=O.useRef(null),x=O.useRef(null),v=O.useRef(null);return X0(()=>{const M=u.current;if(!M||!c){b(null);return}const A=nIe(M,s);if(!A){b(null);return}const _=A.isConnected;if(_||(p||tIe(M)).appendChild(A),A.id||(A.id=M.id?`portal/${M.id}`:oIe()),b(A),C8(i,A),!_)return()=>{A.remove(),C8(i,null)}},[c,s,p,i]),X0(()=>{if(!c||!o||!r)return;const A=Zn(r).createElement("span");return A.style.position="fixed",r.insertAdjacentElement("afterend",A),g(A),()=>{A.remove(),g(null)}},[c,o,r]),O.useEffect(()=>{if(!f||!o)return;let M=0;const A=_=>{if(!nb(_))return;const w=_.type==="focusin";if(cancelAnimationFrame(M),w)return LPe(f);M=requestAnimationFrame(()=>{NPe(f,!0)})};return f.addEventListener("focusin",A,!0),f.addEventListener("focusout",A,!0),()=>{cancelAnimationFrame(M),f.removeEventListener("focusin",A,!0),f.removeEventListener("focusout",A,!0)}},[f,o]),l=rn(l,M=>{if(M=a.jsx(AH.Provider,{value:f||p,children:M}),!c)return M;if(!f)return a.jsx("span",{ref:d,id:l.id,style:{position:"fixed"},hidden:!0});M=a.jsxs(a.Fragment,{children:[o&&f&&a.jsx(aA,{ref:y,className:"__focus-trap-inner-before",onFocus:_=>{nb(_,f)?Wl(hq()):Wl(z.current)}}),M,o&&f&&a.jsx(aA,{ref:x,className:"__focus-trap-inner-after",onFocus:_=>{nb(_,f)?Wl(uH()):Wl(v.current)}})]}),f&&(M=Qo.createPortal(M,f));let A=a.jsxs(a.Fragment,{children:[o&&f&&a.jsx(aA,{ref:z,className:"__focus-trap-outer-before",onFocus:_=>{!(_.relatedTarget===v.current)&&nb(_,f)?Wl(y.current):Wl(uH())}}),o&&a.jsx("span",{"aria-owns":f?.id,style:{position:"fixed"}}),o&&f&&a.jsx(aA,{ref:v,className:"__focus-trap-outer-after",onFocus:_=>{if(nb(_,f))Wl(x.current);else{const w=hq();if(w===y.current){requestAnimationFrame(()=>{var k;return(k=hq())==null?void 0:k.focus()});return}Wl(w)}}})]});return h&&o&&(A=Qo.createPortal(A,h)),a.jsxs(a.Fragment,{children:[A,M]})},[f,p,c,l.id,o,h]),l=Ve(_e({},l),{ref:d}),l});yt(function(t){const n=Jse(t);return vt(eIe,n)});var rIe="div",yH=NN();function sIe(e){const t=ml();return!t||e&&u1(e,t)?!1:!!Ca(t)}function vH(e,t=!1){if(!e)return null;const n="current"in e?e.current:e;return n?t?Ca(n)?n:null:n:null}var eie=_t(function(t){var n=t,{store:o,open:r,onClose:s,focusable:i=!0,modal:c=!0,portal:l=!!c,backdrop:u=!!c,hideOnEscape:d=!0,hideOnInteractOutside:p=!0,getPersistentElements:f,preventBodyScroll:b=!!c,autoFocusOnShow:h=!0,autoFocusOnHide:g=!0,initialFocus:z,finalFocus:y,unmountOnHide:x,unstable_treeSnapshotKey:v}=n,M=xt(n,["store","open","onClose","focusable","modal","portal","backdrop","hideOnEscape","hideOnInteractOutside","getPersistentElements","preventBodyScroll","autoFocusOnShow","autoFocusOnHide","initialFocus","finalFocus","unmountOnHide","unstable_treeSnapshotKey"]);const A=l_(),_=O.useRef(null),w=hPe({store:o||A,open:r,setOpen(he){if(he)return;const Q=_.current;if(!Q)return;const R=new Event("close",{bubbles:!1,cancelable:!0});s&&Q.addEventListener("close",s,{once:!0}),Q.dispatchEvent(R),R.defaultPrevented&&w.setOpen(!0)}}),{portalRef:k,domReady:q}=PN(l,M.portalRef),S=M.preserveTabOrder,C=w.useState(he=>S&&!c&&he.mounted),T=Dr(M.id),W=w.useState("open"),B=w.useState("mounted"),N=w.useState("contentElement"),E=p_(B,M.hidden,M.alwaysVisible);D9e(N,T,b&&!E),X9e(w,p,q);const{wrapElement:L,nestedDialogs:I}=F9e(w);M=rn(M,L,[L]),X0(()=>{if(!W)return;const he=_.current,Q=ml(he,!0);Q&&Q.tagName!=="BODY"&&(he&&u1(he,Q)||w.setDisclosureElement(Q))},[w,W]),yH&&O.useEffect(()=>{if(!B)return;const{disclosureElement:he}=w.getState();if(!he||!Jc(he))return;const Q=()=>{let R=!1;const j=()=>{R=!0},V={capture:!0,once:!0};he.addEventListener("focusin",j,V),Zb(he,"mouseup",()=>{he.removeEventListener("focusin",j,!0),!R&&Bse(he)})};return he.addEventListener("mousedown",Q),()=>{he.removeEventListener("mousedown",Q)}},[w,B]),O.useEffect(()=>{if(!c||!B||!q)return;const he=_.current;if(!(!he||he.querySelector("[data-dialog-dismiss]")))return G9e(he,w.hide)},[w,c,B,q]),X0(()=>{if(!Kse()||W||!B||!q)return;const he=_.current;if(he)return Yse(he)},[W,B,q]);const P=W&&q;X0(()=>{if(!T||!P)return;const he=_.current;return W9e(T,[he])},[T,P,v]);const H=It(f);X0(()=>{if(!T||!P)return;const{disclosureElement:he}=w.getState(),Q=_.current,R=H()||[],j=[Q,...R,...I.map(V=>V.getState().contentElement)];return c?$o(gH(T,j),j9e(T,j)):gH(T,[he,...j])},[T,w,P,H,I,c,v]);const U=!!h,X=O1(h),[Z,ne]=O.useState(!1);O.useEffect(()=>{if(!W||!U||!q||!N?.isConnected)return;const he=vH(z,!0)||N.querySelector("[data-autofocus=true],[autofocus]")||WPe(N,!0,l&&C)||N,Q=Ca(he);X(Q?he:null)&&(ne(!0),queueMicrotask(()=>{he.focus(),yH&&he.scrollIntoView({block:"nearest",inline:"nearest"})}))},[W,U,q,N,z,l,C,X]);const oe=!!g,Y=O1(g),[ee,ie]=O.useState(!1);O.useEffect(()=>{if(W)return ie(!0),()=>ie(!1)},[W]);const se=O.useCallback((he,Q=!0)=>{const{disclosureElement:R}=w.getState();if(sIe(he))return;let j=vH(y)||R;if(j?.id){const de=Zn(j),ge=`[aria-activedescendant="${j.id}"]`,ve=de.querySelector(ge);ve&&(j=ve)}if(j&&!Ca(j)){const de=j.closest("[data-dialog]");if(de?.id){const ge=Zn(de),ve=`[aria-controls~="${de.id}"]`,Ne=ge.querySelector(ve);Ne&&(j=Ne)}}const V=j&&Ca(j);if(!V&&Q){requestAnimationFrame(()=>se(he,!1));return}Y(V?j:null)&&V&&j?.focus()},[w,y,Y]),be=O.useRef(!1);X0(()=>{if(W||!ee||!oe)return;const he=_.current;be.current=!0,se(he)},[W,ee,q,oe,se]),O.useEffect(()=>{if(!ee||!oe)return;const he=_.current;return()=>{if(be.current){be.current=!1;return}se(he)}},[ee,oe,se]);const ye=O1(d);O.useEffect(()=>!q||!B?void 0:lo("keydown",Q=>{if(Q.key!=="Escape"||Q.defaultPrevented)return;const R=_.current;if(!R||tL(R))return;const j=Q.target;if(!j)return;const{disclosureElement:V}=w.getState();!!(j.tagName==="BODY"||u1(R,j)||!V||u1(V,j))&&ye(Q)&&w.hide()},!0),[w,q,B,ye]),M=rn(M,he=>a.jsx(Y9e,{level:c?1:void 0,children:he}),[c]);const xe=M.hidden,K=M.alwaysVisible;M=rn(M,he=>u?a.jsxs(a.Fragment,{children:[a.jsx(N9e,{store:w,backdrop:u,hidden:xe,alwaysVisible:K}),he]}):he,[w,u,xe,K]);const[pe,G]=O.useState(),[re,Me]=O.useState();return M=rn(M,he=>a.jsx(HN,{value:w,children:a.jsx(zPe.Provider,{value:G,children:a.jsx(OPe.Provider,{value:Me,children:he})})}),[w]),M=Ve(_e({id:T,"data-dialog":"",role:"dialog",tabIndex:i?-1:void 0,"aria-labelledby":pe,"aria-describedby":re},M),{ref:Cn(_,M.ref)}),M=Zse(Ve(_e({},M),{autoFocusOnShow:Z})),M=f_(_e({store:w},M)),M=Ah(Ve(_e({},M),{focusable:i})),M=Jse(Ve(_e({portal:l},M),{portalRef:k,preserveTabOrder:C})),M});function xh(e,t=l_){return yt(function(o){const r=t(),s=o.store||r;return on(s,c=>!o.unmountOnHide||c?.mounted||!!o.open)?a.jsx(e,_e({},o)):null})}xh(yt(function(t){const n=eie(t);return vt(rIe,n)}),l_);const Aa=Math.min,Xr=Math.max,Ev=Math.round,cA=Math.floor,Du=e=>({x:e,y:e}),iIe={left:"right",right:"left",bottom:"top",top:"bottom"},aIe={start:"end",end:"start"};function P8(e,t,n){return Xr(e,Aa(t,n))}function Fu(e,t){return typeof e=="function"?e(t):e}function el(e){return e.split("-")[0]}function _h(e){return e.split("-")[1]}function nL(e){return e==="x"?"y":"x"}function oL(e){return e==="y"?"height":"width"}function $u(e){return["top","bottom"].includes(el(e))?"y":"x"}function rL(e){return nL($u(e))}function cIe(e,t,n){n===void 0&&(n=!1);const o=_h(e),r=rL(e),s=oL(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Bv(i)),[i,Bv(i)]}function lIe(e){const t=Bv(e);return[I8(e),t,I8(t)]}function I8(e){return e.replace(/start|end/g,t=>aIe[t])}function uIe(e,t,n){const o=["left","right"],r=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?s:i;default:return[]}}function dIe(e,t,n,o){const r=_h(e);let s=uIe(el(e),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(I8)))),s}function Bv(e){return e.replace(/left|right|bottom|top/g,t=>iIe[t])}function pIe(e){return{top:0,right:0,bottom:0,left:0,...e}}function tie(e){return typeof e!="number"?pIe(e):{top:e,right:e,bottom:e,left:e}}function Nv(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function xH(e,t,n){let{reference:o,floating:r}=e;const s=$u(t),i=rL(t),c=oL(i),l=el(t),u=s==="y",d=o.x+o.width/2-r.width/2,p=o.y+o.height/2-r.height/2,f=o[c]/2-r[c]/2;let b;switch(l){case"top":b={x:d,y:o.y-r.height};break;case"bottom":b={x:d,y:o.y+o.height};break;case"right":b={x:o.x+o.width,y:p};break;case"left":b={x:o.x-r.width,y:p};break;default:b={x:o.x,y:o.y}}switch(_h(t)){case"start":b[i]-=f*(n&&u?-1:1);break;case"end":b[i]+=f*(n&&u?-1:1);break}return b}const fIe=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}=n,c=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:p}=xH(u,o,l),f=o,b={},h=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:i,elements:c,middlewareData:l}=t,{element:u,padding:d=0}=Fu(e,t)||{};if(u==null)return{};const p=tie(d),f={x:n,y:o},b=rL(r),h=oL(b),g=await i.getDimensions(u),z=b==="y",y=z?"top":"left",x=z?"bottom":"right",v=z?"clientHeight":"clientWidth",M=s.reference[h]+s.reference[b]-f[b]-s.floating[h],A=f[b]-s.reference[b],_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let w=_?_[v]:0;(!w||!await(i.isElement==null?void 0:i.isElement(_)))&&(w=c.floating[v]||s.floating[h]);const k=M/2-A/2,q=w/2-g[h]/2-1,S=Aa(p[y],q),C=Aa(p[x],q),T=S,W=w-g[h]-C,B=w/2-g[h]/2+k,N=P8(T,B,W),E=!l.arrow&&_h(r)!=null&&B!==N&&s.reference[h]/2-(BB<=0)){var C,T;const B=(((C=s.flip)==null?void 0:C.index)||0)+1,N=w[B];if(N)return{data:{index:B,overflows:S},reset:{placement:N}};let E=(T=S.filter(L=>L.overflows[0]<=0).sort((L,I)=>L.overflows[1]-I.overflows[1])[0])==null?void 0:T.placement;if(!E)switch(b){case"bestFit":{var W;const L=(W=S.filter(I=>{if(_){const P=$u(I.placement);return P===x||P==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(P=>P>0).reduce((P,H)=>P+H,0)]).sort((I,P)=>I[1]-P[1])[0])==null?void 0:W[0];L&&(E=L);break}case"initialPlacement":E=c;break}if(r!==E)return{reset:{placement:E}}}return{}}}};async function mIe(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=el(n),c=_h(n),l=$u(n)==="y",u=["left","top"].includes(i)?-1:1,d=s&&l?-1:1,p=Fu(t,e);let{mainAxis:f,crossAxis:b,alignmentAxis:h}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return c&&typeof h=="number"&&(b=c==="end"?h*-1:h),l?{x:b*d,y:f*u}:{x:f*u,y:b*d}}const MIe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:i,middlewareData:c}=t,l=await mIe(t,e);return i===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:i}}}}},gIe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:c={fn:z=>{let{x:y,y:x}=z;return{x:y,y:x}}},...l}=Fu(e,t),u={x:n,y:o},d=await sL(t,l),p=$u(el(r)),f=nL(p);let b=u[f],h=u[p];if(s){const z=f==="y"?"top":"left",y=f==="y"?"bottom":"right",x=b+d[z],v=b-d[y];b=P8(x,b,v)}if(i){const z=p==="y"?"top":"left",y=p==="y"?"bottom":"right",x=h+d[z],v=h-d[y];h=P8(x,h,v)}const g=c.fn({...t,[f]:b,[p]:h});return{...g,data:{x:g.x-n,y:g.y-o}}}}},zIe=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:i}=t,{offset:c=0,mainAxis:l=!0,crossAxis:u=!0}=Fu(e,t),d={x:n,y:o},p=$u(r),f=nL(p);let b=d[f],h=d[p];const g=Fu(c,t),z=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const v=f==="y"?"height":"width",M=s.reference[f]-s.floating[v]+z.mainAxis,A=s.reference[f]+s.reference[v]-z.mainAxis;bA&&(b=A)}if(u){var y,x;const v=f==="y"?"width":"height",M=["top","left"].includes(el(r)),A=s.reference[p]-s.floating[v]+(M&&((y=i.offset)==null?void 0:y[p])||0)+(M?0:z.crossAxis),_=s.reference[p]+s.reference[v]+(M?0:((x=i.offset)==null?void 0:x[p])||0)-(M?z.crossAxis:0);h_&&(h=_)}return{[f]:b,[p]:h}}}},OIe=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:s}=t,{apply:i=()=>{},...c}=Fu(e,t),l=await sL(t,c),u=el(n),d=_h(n),p=$u(n)==="y",{width:f,height:b}=o.floating;let h,g;u==="top"||u==="bottom"?(h=u,g=d===(await(r.isRTL==null?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(g=u,h=d==="end"?"top":"bottom");const z=b-l.top-l.bottom,y=f-l.left-l.right,x=Aa(b-l[h],z),v=Aa(f-l[g],y),M=!t.middlewareData.shift;let A=x,_=v;if(p?_=d||M?Aa(v,y):y:A=d||M?Aa(x,z):z,M&&!d){const k=Xr(l.left,0),q=Xr(l.right,0),S=Xr(l.top,0),C=Xr(l.bottom,0);p?_=f-2*(k!==0||q!==0?k+q:Xr(l.left,l.right)):A=b-2*(S!==0||C!==0?S+C:Xr(l.top,l.bottom))}await i({...t,availableWidth:_,availableHeight:A});const w=await r.getDimensions(s.floating);return f!==w.width||b!==w.height?{reset:{rects:!0}}:{}}}};function wh(e){return nie(e)?(e.nodeName||"").toLowerCase():"#document"}function ts(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function gl(e){var t;return(t=(nie(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function nie(e){return e instanceof Node||e instanceof ts(e).Node}function Wi(e){return e instanceof Element||e instanceof ts(e).Element}function Da(e){return e instanceof HTMLElement||e instanceof ts(e).HTMLElement}function _H(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ts(e).ShadowRoot}function b3(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Ti(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function AIe(e){return["table","td","th"].includes(wh(e))}function b_(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function iL(e){const t=aL(),n=Wi(e)?Ti(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function yIe(e){let t=Vu(e);for(;Da(t)&&!T2(t);){if(iL(t))return t;if(b_(t))return null;t=Vu(t)}return null}function aL(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function T2(e){return["html","body","#document"].includes(wh(e))}function Ti(e){return ts(e).getComputedStyle(e)}function h_(e){return Wi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Vu(e){if(wh(e)==="html")return e;const t=e.assignedSlot||e.parentNode||_H(e)&&e.host||gl(e);return _H(t)?t.host:t}function oie(e){const t=Vu(e);return T2(t)?e.ownerDocument?e.ownerDocument.body:e.body:Da(t)&&b3(t)?t:oie(t)}function Ig(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=oie(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),i=ts(r);if(s){const c=D8(i);return t.concat(i,i.visualViewport||[],b3(r)?r:[],c&&n?Ig(c):[])}return t.concat(r,Ig(r,[],n))}function D8(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function rie(e){const t=Ti(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Da(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o,c=Ev(n)!==s||Ev(o)!==i;return c&&(n=s,o=i),{width:n,height:o,$:c}}function cL(e){return Wi(e)?e:e.contextElement}function Qb(e){const t=cL(e);if(!Da(t))return Du(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=rie(t);let i=(s?Ev(n.width):n.width)/o,c=(s?Ev(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const vIe=Du(0);function sie(e){const t=ts(e);return!aL()||!t.visualViewport?vIe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function xIe(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ts(e)?!1:t}function Np(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=cL(e);let i=Du(1);t&&(o?Wi(o)&&(i=Qb(o)):i=Qb(e));const c=xIe(s,n,o)?sie(s):Du(0);let l=(r.left+c.x)/i.x,u=(r.top+c.y)/i.y,d=r.width/i.x,p=r.height/i.y;if(s){const f=ts(s),b=o&&Wi(o)?ts(o):o;let h=f,g=D8(h);for(;g&&o&&b!==h;){const z=Qb(g),y=g.getBoundingClientRect(),x=Ti(g),v=y.left+(g.clientLeft+parseFloat(x.paddingLeft))*z.x,M=y.top+(g.clientTop+parseFloat(x.paddingTop))*z.y;l*=z.x,u*=z.y,d*=z.x,p*=z.y,l+=v,u+=M,h=ts(g),g=D8(h)}}return Nv({width:d,height:p,x:l,y:u})}function _Ie(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",i=gl(o),c=t?b_(t.floating):!1;if(o===i||c&&s)return n;let l={scrollLeft:0,scrollTop:0},u=Du(1);const d=Du(0),p=Da(o);if((p||!p&&!s)&&((wh(o)!=="body"||b3(i))&&(l=h_(o)),Da(o))){const f=Np(o);u=Qb(o),d.x=f.x+o.clientLeft,d.y=f.y+o.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x,y:n.y*u.y-l.scrollTop*u.y+d.y}}function wIe(e){return Array.from(e.getClientRects())}function iie(e){return Np(gl(e)).left+h_(e).scrollLeft}function kIe(e){const t=gl(e),n=h_(e),o=e.ownerDocument.body,r=Xr(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=Xr(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+iie(e);const c=-n.scrollTop;return Ti(o).direction==="rtl"&&(i+=Xr(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:i,y:c}}function qIe(e,t){const n=ts(e),o=gl(e),r=n.visualViewport;let s=o.clientWidth,i=o.clientHeight,c=0,l=0;if(r){s=r.width,i=r.height;const u=aL();(!u||u&&t==="fixed")&&(c=r.offsetLeft,l=r.offsetTop)}return{width:s,height:i,x:c,y:l}}function SIe(e,t){const n=Np(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=Da(e)?Qb(e):Du(1),i=e.clientWidth*s.x,c=e.clientHeight*s.y,l=r*s.x,u=o*s.y;return{width:i,height:c,x:l,y:u}}function wH(e,t,n){let o;if(t==="viewport")o=qIe(e,n);else if(t==="document")o=kIe(gl(e));else if(Wi(t))o=SIe(t,n);else{const r=sie(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return Nv(o)}function aie(e,t){const n=Vu(e);return n===t||!Wi(n)||T2(n)?!1:Ti(n).position==="fixed"||aie(n,t)}function CIe(e,t){const n=t.get(e);if(n)return n;let o=Ig(e,[],!1).filter(c=>Wi(c)&&wh(c)!=="body"),r=null;const s=Ti(e).position==="fixed";let i=s?Vu(e):e;for(;Wi(i)&&!T2(i);){const c=Ti(i),l=iL(i);!l&&c.position==="fixed"&&(r=null),(s?!l&&!r:!l&&c.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||b3(i)&&!l&&aie(e,i))?o=o.filter(d=>d!==i):r=c,i=Vu(i)}return t.set(e,o),o}function RIe(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?b_(t)?[]:CIe(t,this._c):[].concat(n),o],c=i[0],l=i.reduce((u,d)=>{const p=wH(t,d,r);return u.top=Xr(p.top,u.top),u.right=Aa(p.right,u.right),u.bottom=Aa(p.bottom,u.bottom),u.left=Xr(p.left,u.left),u},wH(t,c,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function WIe(e){const{width:t,height:n}=rie(e);return{width:t,height:n}}function TIe(e,t,n){const o=Da(t),r=gl(t),s=n==="fixed",i=Np(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const l=Du(0);if(o||!o&&!s)if((wh(t)!=="body"||b3(r))&&(c=h_(t)),o){const p=Np(t,!0,s,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else r&&(l.x=iie(r));const u=i.left+c.scrollLeft-l.x,d=i.top+c.scrollTop-l.y;return{x:u,y:d,width:i.width,height:i.height}}function Oq(e){return Ti(e).position==="static"}function kH(e,t){return!Da(e)||Ti(e).position==="fixed"?null:t?t(e):e.offsetParent}function cie(e,t){const n=ts(e);if(b_(e))return n;if(!Da(e)){let r=Vu(e);for(;r&&!T2(r);){if(Wi(r)&&!Oq(r))return r;r=Vu(r)}return n}let o=kH(e,t);for(;o&&AIe(o)&&Oq(o);)o=kH(o,t);return o&&T2(o)&&Oq(o)&&!iL(o)?n:o||yIe(e)||n}const EIe=async function(e){const t=this.getOffsetParent||cie,n=this.getDimensions,o=await n(e.floating);return{reference:TIe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function BIe(e){return Ti(e).direction==="rtl"}const NIe={convertOffsetParentRelativeRectToViewportRelativeRect:_Ie,getDocumentElement:gl,getClippingRect:RIe,getOffsetParent:cie,getElementRects:EIe,getClientRects:wIe,getDimensions:WIe,getScale:Qb,isElement:Wi,isRTL:BIe};function LIe(e,t){let n=null,o;const r=gl(e);function s(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function i(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),s();const{left:u,top:d,width:p,height:f}=e.getBoundingClientRect();if(c||t(),!p||!f)return;const b=cA(d),h=cA(r.clientWidth-(u+p)),g=cA(r.clientHeight-(d+f)),z=cA(u),x={rootMargin:-b+"px "+-h+"px "+-g+"px "+-z+"px",threshold:Xr(0,Aa(1,l))||1};let v=!0;function M(A){const _=A[0].intersectionRatio;if(_!==l){if(!v)return i();_?i(!1,_):o=setTimeout(()=>{i(!1,1e-7)},1e3)}v=!1}try{n=new IntersectionObserver(M,{...x,root:r.ownerDocument})}catch{n=new IntersectionObserver(M,x)}n.observe(e)}return i(!0),s}function lie(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=cL(e),d=r||s?[...u?Ig(u):[],...Ig(t)]:[];d.forEach(y=>{r&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const p=u&&c?LIe(u,n):null;let f=-1,b=null;i&&(b=new ResizeObserver(y=>{let[x]=y;x&&x.target===u&&b&&(b.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var v;(v=b)==null||v.observe(t)})),n()}),u&&!l&&b.observe(u),b.observe(t));let h,g=l?Np(e):null;l&&z();function z(){const y=Np(e);g&&(y.x!==g.x||y.y!==g.y||y.width!==g.width||y.height!==g.height)&&n(),g=y,h=requestAnimationFrame(z)}return n(),()=>{var y;d.forEach(x=>{r&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),p?.(),(y=b)==null||y.disconnect(),b=null,l&&cancelAnimationFrame(h)}}const uie=MIe,die=gIe,pie=hIe,fie=OIe,F8=bIe,bie=zIe,hie=(e,t,n)=>{const o=new Map,r={platform:NIe,...n},s={...r.platform,_c:o};return fIe(e,t,{...r,platform:s})};var jIe="div";function qH(e=0,t=0,n=0,o=0){if(typeof DOMRect=="function")return new DOMRect(e,t,n,o);const r={x:e,y:t,width:n,height:o,top:t,right:e+n,bottom:t+o,left:e};return Ve(_e({},r),{toJSON:()=>r})}function PIe(e){if(!e)return qH();const{x:t,y:n,width:o,height:r}=e;return qH(t,n,o,r)}function IIe(e,t){return{contextElement:e||void 0,getBoundingClientRect:()=>{const o=e,r=t?.(o);return r||!o?PIe(r):o.getBoundingClientRect()}}}function DIe(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function SH(e){const t=window.devicePixelRatio||1;return Math.round(e*t)/t}function FIe(e,t){return uie(({placement:n})=>{var o;const r=(e?.clientHeight||0)/2,s=typeof t.gutter=="number"?t.gutter+r:(o=t.gutter)!=null?o:r;return{crossAxis:!!n.split("-")[1]?void 0:t.shift,mainAxis:s,alignmentAxis:t.shift}})}function $Ie(e){if(e.flip===!1)return;const t=typeof e.flip=="string"?e.flip.split(" "):void 0;return F0(!t||t.every(DIe),!1),pie({padding:e.overflowPadding,fallbackPlacements:t})}function VIe(e){if(!(!e.slide&&!e.overlap))return die({mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:bie()})}function HIe(e){return fie({padding:e.overflowPadding,apply({elements:t,availableWidth:n,availableHeight:o,rects:r}){const s=t.floating,i=Math.round(r.reference.width);n=Math.floor(n),o=Math.floor(o),s.style.setProperty("--popover-anchor-width",`${i}px`),s.style.setProperty("--popover-available-width",`${n}px`),s.style.setProperty("--popover-available-height",`${o}px`),e.sameWidth&&(s.style.width=`${i}px`),e.fitViewport&&(s.style.maxWidth=`${n}px`,s.style.maxHeight=`${o}px`)}})}function UIe(e,t){if(e)return F8({element:e,padding:t.arrowPadding})}var lL=_t(function(t){var n=t,{store:o,modal:r=!1,portal:s=!!r,preserveTabOrder:i=!0,autoFocusOnShow:c=!0,wrapperProps:l,fixed:u=!1,flip:d=!0,shift:p=0,slide:f=!0,overlap:b=!1,sameWidth:h=!1,fitViewport:g=!1,gutter:z,arrowPadding:y=4,overflowPadding:x=8,getAnchorRect:v,updatePosition:M}=n,A=xt(n,["store","modal","portal","preserveTabOrder","autoFocusOnShow","wrapperProps","fixed","flip","shift","slide","overlap","sameWidth","fitViewport","gutter","arrowPadding","overflowPadding","getAnchorRect","updatePosition"]);const _=u_();o=o||_,F0(o,!1);const w=o.useState("arrowElement"),k=o.useState("anchorElement"),q=o.useState("disclosureElement"),S=o.useState("popoverElement"),C=o.useState("contentElement"),T=o.useState("placement"),W=o.useState("mounted"),B=o.useState("rendered"),N=O.useRef(null),[E,L]=O.useState(!1),{portalRef:I,domReady:P}=PN(s,A.portalRef),H=It(v),U=It(M),X=!!M;X0(()=>{if(!S?.isConnected)return;S.style.setProperty("--popover-overflow-padding",`${x}px`);const ne=IIe(k,H),oe=async()=>{if(!W)return;w||(N.current=N.current||document.createElement("div"));const ie=w||N.current,se=[FIe(ie,{gutter:z,shift:p}),$Ie({flip:d,overflowPadding:x}),VIe({slide:f,shift:p,overlap:b,overflowPadding:x}),UIe(ie,{arrowPadding:y}),HIe({sameWidth:h,fitViewport:g,overflowPadding:x})],be=await hie(ne,S,{placement:T,strategy:u?"fixed":"absolute",middleware:se});o?.setState("currentPlacement",be.placement),L(!0);const ye=SH(be.x),xe=SH(be.y);if(Object.assign(S.style,{top:"0",left:"0",transform:`translate3d(${ye}px,${xe}px,0)`}),ie&&be.middlewareData.arrow){const{x:K,y:pe}=be.middlewareData.arrow,G=be.placement.split("-")[0],re=ie.clientWidth/2,Me=ie.clientHeight/2,he=K!=null?K+re:-re,Q=pe!=null?pe+Me:-Me;S.style.setProperty("--popover-transform-origin",{top:`${he}px calc(100% + ${Me}px)`,bottom:`${he}px ${-Me}px`,left:`calc(100% + ${re}px) ${Q}px`,right:`${-re}px ${Q}px`}[G]),Object.assign(ie.style,{left:K!=null?`${K}px`:"",top:pe!=null?`${pe}px`:"",[G]:"100%"})}},ee=lie(ne,S,async()=>{X?(await U({updatePosition:oe}),L(!0)):await oe()},{elementResize:typeof ResizeObserver=="function"});return()=>{L(!1),ee()}},[o,B,S,w,k,S,T,W,P,u,d,p,f,b,h,g,z,y,x,H,X,U]),X0(()=>{if(!W||!P||!S?.isConnected||!C?.isConnected)return;const ne=()=>{S.style.zIndex=getComputedStyle(C).zIndex};ne();let oe=requestAnimationFrame(()=>{oe=requestAnimationFrame(ne)});return()=>cancelAnimationFrame(oe)},[W,P,S,C]);const Z=u?"fixed":"absolute";return A=rn(A,ne=>a.jsx("div",Ve(_e({},l),{style:_e({position:Z,top:0,left:0,width:"max-content"},l?.style),ref:o?.setPopoverElement,children:ne})),[o,Z,l]),A=rn(A,ne=>a.jsx(d3,{value:o,children:ne}),[o]),A=Ve(_e({"data-placing":!E||void 0},A),{style:_e({position:"relative"},A.style)}),A=eie(Ve(_e({store:o,modal:r,portal:s,preserveTabOrder:i,preserveTabOrderAnchor:q||k,autoFocusOnShow:E&&c},A),{portalRef:I})),A});xh(yt(function(t){const n=lL(t);return vt(jIe,n)}),u_);var XIe="div",GIe=_t(function(t){var n=t,{store:o,"aria-setsize":r,"aria-posinset":s}=n,i=xt(n,["store","aria-setsize","aria-posinset"]);const c=a3();o=o||c,F0(o,!1);const l=Dr(i.id),u=o.useState(p=>p.baseElement||void 0),d=O.useMemo(()=>({id:l,baseElement:u,ariaSetSize:r,ariaPosInSet:s}),[l,u,r,s]);return i=rn(i,p=>a.jsx(mse.Provider,{value:d,children:p}),[d]),i=_e({id:l},i),Ir(i)}),KIe=yt(function(t){const n=GIe(t);return vt(XIe,n)}),YIe="hr",mie=_t(function(t){var n=t,{orientation:o="horizontal"}=n,r=xt(n,["orientation"]);return r=_e({role:"separator","aria-orientation":o},r),r});yt(function(t){const n=mie(t);return vt(YIe,n)});var ZIe="hr",Mie=_t(function(t){var n=t,{store:o}=n,r=xt(n,["store"]);const s=a3();o=o||s,F0(o,!1);const i=o.useState(c=>c.orientation==="horizontal"?"vertical":"horizontal");return r=mie(Ve(_e({},r),{orientation:i})),r});yt(function(t){const n=Mie(t);return vt(ZIe,n)});function QIe(e={}){var t;e.store;const n=(t=e.store)==null?void 0:t.getState(),o={value:qt(e.value,n?.value,e.defaultValue,!1)},r=Vo(o,e.store);return S0(Pt({},r),{setValue:s=>r.setState("value",s)})}function JIe(e,t,n){return Iu(t,[n.store]),yn(e,n,"value","setValue"),e}function eDe(e={}){const[t,n]=$i(QIe,e);return JIe(t,n,e)}var tDe=cr(),nDe=tDe.useContext,gie="input";function CH(e,t){t?e.indeterminate=!0:e.indeterminate&&(e.indeterminate=!1)}function oDe(e,t){return e==="input"&&(!t||t==="checkbox")}function RH(e){return Array.isArray(e)?e.toString():e}var zie=_t(function(t){var n=t,{store:o,name:r,value:s,checked:i,defaultChecked:c}=n,l=xt(n,["store","name","value","checked","defaultChecked"]);const u=nDe();o=o||u;const[d,p]=O.useState(c??!1),f=on(o,q=>{if(i!==void 0)return i;if(q?.value===void 0)return d;if(s!=null){if(Array.isArray(q.value)){const S=RH(s);return q.value.includes(S)}return q.value===s}return Array.isArray(q.value)?!1:typeof q.value=="boolean"?q.value:!1}),b=O.useRef(null),h=r3(b,gie),g=oDe(h,l.type),z=f?f==="mixed":void 0,y=f==="mixed"?!1:f,x=hl(l),[v,M]=jN();O.useEffect(()=>{const q=b.current;q&&(CH(q,z),!g&&(q.checked=y,r!==void 0&&(q.name=r),s!==void 0&&(q.value=`${s}`)))},[v,z,g,y,r,s]);const A=l.onChange,_=It(q=>{if(x){q.stopPropagation(),q.preventDefault();return}if(CH(q.currentTarget,z),g||(q.currentTarget.checked=!q.currentTarget.checked,M()),A?.(q),q.defaultPrevented)return;const S=q.currentTarget.checked;p(S),o?.setValue(C=>{if(s==null)return S;const T=RH(s);return Array.isArray(C)?S?C.includes(T)?C:[...C,T]:C.filter(W=>W!==T):C===T?!1:T})}),w=l.onClick,k=It(q=>{w?.(q),!q.defaultPrevented&&(g||_(q))});return l=rn(l,q=>a.jsx(Hse.Provider,{value:y,children:q}),[y]),l=Ve(_e({role:g?void 0:"checkbox",type:g?"checkbox":void 0,"aria-checked":f},l),{ref:Cn(b,l.ref),onChange:_,onClick:k}),l=d_(_e({clickOnEnter:!g},l)),Ir(_e({name:g?r:void 0,value:g?s:void 0,checked:y},l))});yt(function(t){const n=zie(t);return vt(gie,n)});var uL=cr([fd],[gf]),rDe=uL.useContext,sDe=uL.useProviderContext,iDe=uL.ScopedContextProvider,Oie="input";function aDe(e,t){if(t!==void 0)return e!=null&&t!=null?t===e:!!t}function cDe(e,t){return e==="input"&&(!t||t==="radio")}var Aie=_t(function(t){var n=t,{store:o,name:r,value:s,checked:i}=n,c=xt(n,["store","name","value","checked"]);const l=rDe();o=o||l;const u=Dr(c.id),d=O.useRef(null),p=on(o,w=>i??aDe(s,w?.value));O.useEffect(()=>{!u||!p||o?.getState().activeId===u||o?.setActiveId(u)},[o,p,u]);const f=c.onChange,b=r3(d,Oie),h=cDe(b,c.type),g=hl(c),[z,y]=jN();O.useEffect(()=>{const w=d.current;w&&(h||(p!==void 0&&(w.checked=p),r!==void 0&&(w.name=r),s!==void 0&&(w.value=`${s}`)))},[z,h,p,r,s]);const x=It(w=>{if(g){w.preventDefault(),w.stopPropagation();return}h||(w.currentTarget.checked=!0,y()),f?.(w),!w.defaultPrevented&&o?.setValue(s)}),v=c.onClick,M=It(w=>{v?.(w),!w.defaultPrevented&&(h||x(w))}),A=c.onFocus,_=It(w=>{if(A?.(w),w.defaultPrevented||!h||!o)return;const{moves:k,activeId:q}=o.getState();k&&(u&&q!==u||x(w))});return c=Ve(_e({id:u,role:h?void 0:"radio",type:h?"radio":void 0,"aria-checked":p},c),{ref:Cn(d,c.ref),onChange:x,onClick:M,onFocus:_}),c=vh(_e({store:o,clickOnEnter:!h},c)),Ir(_e({name:h?r:void 0,value:h?s:void 0,checked:p},c))}),yie=Za(yt(function(t){const n=Aie(t);return vt(Oie,n)})),lDe="div",wc="";function Aq(){wc=""}function uDe(e){const t=e.target;return t&&Ml(t)?!1:e.key===" "&&wc.length?!0:e.key.length===1&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&/^[\p{Letter}\p{Number}]$/u.test(e.key)}function dDe(e,t){if(vr(e))return!0;const n=e.target;return n?t.some(r=>r.element===n):!1}function pDe(e){return e.filter(t=>!t.disabled)}function Hy(e,t){var n;const o=((n=e.element)==null?void 0:n.textContent)||e.children||"value"in e&&e.value;return o?Oje(o).trim().toLowerCase().startsWith(t.toLowerCase()):!1}function fDe(e,t,n){if(!n)return e;const o=e.find(r=>r.id===n);return!o||!Hy(o,t)||wc!==t&&Hy(o,wc)?e:(wc=t,_Pe(e.filter(r=>Hy(r,wc)),n).filter(r=>r.id!==n))}var h3=_t(function(t){var n=t,{store:o,typeahead:r=!0}=n,s=xt(n,["store","typeahead"]);const i=a3();o=o||i,F0(o,!1);const c=s.onKeyDownCapture,l=O.useRef(0),u=It(d=>{if(c?.(d),d.defaultPrevented||!r||!o)return;const{renderedItems:p,items:f,activeId:b}=o.getState();if(!uDe(d))return Aq();let h=pDe(p.length?p:f);if(!dDe(d,h))return Aq();d.preventDefault(),window.clearTimeout(l.current),l.current=window.setTimeout(()=>{wc=""},500);const g=d.key.toLowerCase();wc+=g,h=fDe(h,g,b);const z=h.find(y=>Hy(y,wc));z?o.move(z.id):Aq()});return s=Ve(_e({},s),{onKeyDownCapture:u}),Ir(s)}),bDe=yt(function(t){const n=h3(t);return vt(lDe,n)});function hDe(e={}){var t=o3(e,[]),n;const o=(n=t.store)==null?void 0:n.getState(),r=zh(S0(Pt({},t),{focusLoop:qt(t.focusLoop,o?.focusLoop,!0)})),s=S0(Pt({},r.getState()),{value:qt(t.value,o?.value,t.defaultValue,null)}),i=Vo(s,r,t.store);return S0(Pt(Pt({},r),i),{setValue:c=>i.setState("value",c)})}function mDe(e,t,n){return e=Oh(e,t,n),yn(e,n,"value","setValue"),e}function vie(e={}){const[t,n]=$i(hDe,e);return mDe(t,n,e)}var MDe="div",gDe=_t(function(t){var n=t,{store:o}=n,r=xt(n,["store"]);const s=sDe();return o=o||s,F0(o,!1),r=rn(r,i=>a.jsx(iDe,{value:o,children:i}),[o]),r=_e({role:"radiogroup"},r),r=yh(_e({store:o},r)),r}),xie=yt(function(t){const n=gDe(t);return vt(MDe,n)}),zDe="span",ODe={top:"4,10 8,6 12,10",right:"6,4 10,8 6,12",bottom:"4,6 8,10 12,6",left:"10,4 6,8 10,12"},_ie=_t(function(t){var n=t,{store:o,placement:r}=n,s=xt(n,["store","placement"]);const i=APe();o=o||i,F0(o,!1);const l=o.useState(p=>r||p.placement).split("-")[0],u=ODe[l],d=O.useMemo(()=>a.jsx("svg",{display:"block",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,viewBox:"0 0 16 16",height:"1em",width:"1em",children:a.jsx("polyline",{points:u})}),[u]);return s=Ve(_e({children:d,"aria-hidden":!0},s),{style:_e({width:"1em",height:"1em",pointerEvents:"none"},s.style)}),Ir(s)});yt(function(t){const n=_ie(t);return vt(zDe,n)});var ADe="button",dL=_t(function(t){var n=t,{store:o}=n,r=xt(n,["store"]);const s=u_();o=o||s,F0(o,!1);const i=r.onClick,c=It(l=>{o?.setAnchorElement(l.currentTarget),i?.(l)});return r=rn(r,l=>a.jsx(d3,{value:o,children:l}),[o]),r=Ve(_e({},r),{onClick:c}),r=Tse(_e({store:o},r)),r=Pse(_e({store:o},r)),r});yt(function(t){const n=dL(t);return vt(ADe,n)});var wie=cr([fd],[gf]),yDe=wie.useContext,vDe=wie.useScopedContext;O.createContext(void 0);var m3=cr([UN],[d3]);m3.useContext;m3.useScopedContext;var pL=m3.useProviderContext,kie=m3.ContextProvider,fL=m3.ScopedContextProvider,M3=cr([fd,kie],[gf,fL]),qie=M3.useContext,bL=M3.useScopedContext,m_=M3.useProviderContext,xDe=M3.ContextProvider,_De=M3.ScopedContextProvider,Sie=O.createContext(void 0);function Cie(e={}){var t;const n=(t=e.store)==null?void 0:t.getState(),o=Sse(S0(Pt({},e),{placement:qt(e.placement,n?.placement,"bottom")})),r=qt(e.timeout,n?.timeout,500),s=S0(Pt({},o.getState()),{timeout:r,showTimeout:qt(e.showTimeout,n?.showTimeout),hideTimeout:qt(e.hideTimeout,n?.hideTimeout),autoFocusOnShow:qt(n?.autoFocusOnShow,!1)}),i=Vo(s,o,e.store);return S0(Pt(Pt({},o),i),{setAutoFocusOnShow:c=>i.setState("autoFocusOnShow",c)})}function Rie(e,t,n){return yn(e,n,"timeout"),yn(e,n,"showTimeout"),yn(e,n,"hideTimeout"),Cse(e,t,n)}function wDe(e={}){var t=e,{combobox:n,parent:o,menubar:r}=t,s=o3(t,["combobox","parent","menubar"]);const i=!!r&&!o,c=c3(s.store,Hje(o,["values"]),C2(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),l=c.getState(),u=zh(S0(Pt({},s),{store:c,orientation:qt(s.orientation,l.orientation,"vertical")})),d=Cie(S0(Pt({},s),{store:c,placement:qt(s.placement,l.placement,"bottom-start"),timeout:qt(s.timeout,l.timeout,i?0:150),hideTimeout:qt(s.hideTimeout,l.hideTimeout,0)})),p=S0(Pt(Pt({},u.getState()),d.getState()),{initialFocus:qt(l.initialFocus,"container"),values:qt(s.values,l.values,s.defaultValues,{})}),f=Vo(p,u,d,c);return V1(f,()=>e1(f,["mounted"],b=>{b.mounted||f.setState("activeId",null)})),V1(f,()=>e1(o,["orientation"],b=>{f.setState("placement",b.orientation==="vertical"?"right-start":"bottom-start")})),S0(Pt(Pt(Pt({},u),d),f),{combobox:n,parent:o,menubar:r,hideAll:()=>{d.hide(),o?.hideAll()},setInitialFocus:b=>f.setState("initialFocus",b),setValues:b=>f.setState("values",b),setValue:(b,h)=>{b!=="__proto__"&&b!=="constructor"&&(Array.isArray(b)||f.setState("values",g=>{const z=g[b],y=sse(h,z);return y===z?g:S0(Pt({},g),{[b]:y!==void 0&&y})}))}})}function kDe(e,t,n){return Iu(t,[n.combobox,n.parent,n.menubar]),yn(e,n,"values","setValues"),Object.assign(Rie(Oh(e,t,n),t,n),{combobox:n.combobox,parent:n.parent,menubar:n.menubar})}function qDe(e={}){const t=qie(),n=yDe(),o=Wse();e=Ve(_e({},e),{parent:e.parent!==void 0?e.parent:t,menubar:e.menubar!==void 0?e.menubar:n,combobox:e.combobox!==void 0?e.combobox:o});const[r,s]=$i(wDe,e);return kDe(r,s,e)}var SDe="div";function CDe(e){var t=e,{store:n}=t,o=xt(t,["store"]);const[r,s]=O.useState(void 0),i=o["aria-label"],c=on(n,"disclosureElement"),l=on(n,"contentElement");return O.useEffect(()=>{const u=c;if(!u)return;const d=l;if(!d)return;i||d.hasAttribute("aria-label")?s(void 0):u.id&&s(u.id)},[i,c,l]),r}var Wie=_t(function(t){var n=t,{store:o,alwaysVisible:r,composite:s}=n,i=xt(n,["store","alwaysVisible","composite"]);const c=m_();o=o||c,F0(o,!1);const l=o.parent,u=o.menubar,d=!!l,p=Dr(i.id),f=i.onKeyDown,b=o.useState(w=>w.placement.split("-")[0]),h=o.useState(w=>w.orientation==="both"?void 0:w.orientation),g=h!=="vertical",z=on(u,w=>!!w&&w.orientation!=="vertical"),y=It(w=>{if(f?.(w),!w.defaultPrevented){if(d||u&&!g){const q={ArrowRight:()=>b==="left"&&!g,ArrowLeft:()=>b==="right"&&!g,ArrowUp:()=>b==="bottom"&&g,ArrowDown:()=>b==="top"&&g}[w.key];if(q?.())return w.stopPropagation(),w.preventDefault(),o?.hide()}if(u){const q={ArrowRight:()=>{if(z)return u.next()},ArrowLeft:()=>{if(z)return u.previous()},ArrowDown:()=>{if(!z)return u.next()},ArrowUp:()=>{if(!z)return u.previous()}}[w.key],S=q?.();S!==void 0&&(w.stopPropagation(),w.preventDefault(),u.move(S))}}});i=rn(i,w=>a.jsx(_De,{value:o,children:w}),[o]);const x=CDe(_e({store:o},i)),v=o.useState("mounted"),M=p_(v,i.hidden,r),A=M?Ve(_e({},i.style),{display:"none"}):i.style;i=Ve(_e({id:p,"aria-labelledby":x,hidden:M},i),{ref:Cn(p?o.setContentElement:null,i.ref),style:A,onKeyDown:y});const _=!!o.combobox;return s=s??!_,s&&(i=_e({role:"menu","aria-orientation":h},i)),i=yh(_e({store:o,composite:s},i)),i=h3(_e({store:o,typeahead:!_},i)),i});yt(function(t){const n=Wie(t);return vt(SDe,n)});function yq(e){return[e.clientX,e.clientY]}function WH(e,t){const[n,o]=e;let r=!1;const s=t.length;for(let i=s,c=0,l=i-1;c=f&&o0&&(o===f?o>b&&(r=!r):r=!r)}}else if(dd&&o<=f){if(h===0)return!0;h<0&&(o===f?o=p&&n<=u||n>=u&&n<=p))return!0}return r}function RDe(e,t){const{top:n,right:o,bottom:r,left:s}=t,[i,c]=e,l=io?"right":null,u=cr?"bottom":null;return[l,u]}function TH(e,t){const n=e.getBoundingClientRect(),{top:o,right:r,bottom:s,left:i}=n,[c,l]=RDe(t,n),u=[t];return c?(l!=="top"&&u.push([c==="left"?i:r,o]),u.push([c==="left"?r:i,o]),u.push([c==="left"?r:i,s]),l!=="bottom"&&u.push([c==="left"?i:r,s])):l==="top"?(u.push([i,o]),u.push([i,s]),u.push([r,s]),u.push([r,o])):(u.push([i,s]),u.push([i,o]),u.push([r,o]),u.push([r,s])),u}var WDe="div";function Tie(e,t,n,o){return Au(t)?!0:e?!!(u1(t,e)||n&&u1(n,e)||o?.some(r=>Tie(e,r,n))):!1}function TDe(e){var t=e,{store:n}=t,o=xt(t,["store"]);const[r,s]=O.useState(!1),i=n.useState("mounted");O.useEffect(()=>{i||s(!1)},[i]);const c=o.onFocus,l=It(d=>{c?.(d),!d.defaultPrevented&&s(!0)}),u=O.useRef(null);return O.useEffect(()=>e1(n,["anchorElement"],d=>{u.current=d.anchorElement}),[]),o=Ve(_e({autoFocusOnHide:r,finalFocus:u},o),{onFocus:l}),o}var EH=O.createContext(null),hL=_t(function(t){var n=t,{store:o,modal:r=!1,portal:s=!!r,hideOnEscape:i=!0,hideOnHoverOutside:c=!0,disablePointerEventsOnApproach:l=!!c}=n,u=xt(n,["store","modal","portal","hideOnEscape","hideOnHoverOutside","disablePointerEventsOnApproach"]);const d=pL();o=o||d,F0(o,!1);const p=O.useRef(null),[f,b]=O.useState([]),h=O.useRef(0),g=O.useRef(null),{portalRef:z,domReady:y}=PN(s,u.portalRef),x=IN(),v=!!c,M=O1(c),A=!!l,_=O1(l),w=o.useState("open"),k=o.useState("mounted");O.useEffect(()=>{if(!y||!k||!v&&!A)return;const W=p.current;return W?$o(lo("mousemove",N=>{if(!o||!x())return;const{anchorElement:E,hideTimeout:L,timeout:I}=o.getState(),P=g.current,[H]=N.composedPath(),U=E;if(Tie(H,W,U,f)){g.current=H&&U&&u1(U,H)?yq(N):null,window.clearTimeout(h.current),h.current=0;return}if(!h.current){if(P){const X=yq(N),Z=TH(W,P);if(WH(X,Z)){if(g.current=X,!_(N))return;N.preventDefault(),N.stopPropagation();return}}M(N)&&(h.current=window.setTimeout(()=>{h.current=0,o?.hide()},L??I))}},!0),()=>clearTimeout(h.current)):void 0},[o,x,y,k,v,A,f,_,M]),O.useEffect(()=>{if(!y||!k||!A)return;const W=B=>{const N=p.current;if(!N)return;const E=g.current;if(!E)return;const L=TH(N,E);if(WH(yq(B),L)){if(!_(B))return;B.preventDefault(),B.stopPropagation()}};return $o(lo("mouseenter",W,!0),lo("mouseover",W,!0),lo("mouseout",W,!0),lo("mouseleave",W,!0))},[y,k,A,_]),O.useEffect(()=>{y&&(w||o?.setAutoFocusOnShow(!1))},[o,y,w]);const q=fse(w);O.useEffect(()=>{if(y)return()=>{q.current||o?.setAutoFocusOnShow(!1)}},[o,y]);const S=O.useContext(EH);X0(()=>{if(r||!s||!k||!y)return;const W=p.current;if(W)return S?.(W)},[r,s,k,y]);const C=O.useCallback(W=>{b(N=>[...N,W]);const B=S?.(W);return()=>{b(N=>N.filter(E=>E!==W)),B?.()}},[S]);u=rn(u,W=>a.jsx(fL,{value:o,children:a.jsx(EH.Provider,{value:C,children:W})}),[o,C]),u=Ve(_e({},u),{ref:Cn(p,u.ref)}),u=TDe(_e({store:o},u));const T=o.useState(W=>r||W.autoFocusOnShow);return u=lL(Ve(_e({store:o,modal:r,portal:s,autoFocusOnShow:T},u),{portalRef:z,hideOnEscape(W){return Lg(i,W)?!1:(requestAnimationFrame(()=>{requestAnimationFrame(()=>{o?.hide()})}),!0)}})),u});xh(yt(function(t){const n=hL(t);return vt(WDe,n)}),pL);var EDe="div",BDe=_t(function(t){var n=t,{store:o,modal:r=!1,portal:s=!!r,hideOnEscape:i=!0,autoFocusOnShow:c=!0,hideOnHoverOutside:l,alwaysVisible:u}=n,d=xt(n,["store","modal","portal","hideOnEscape","autoFocusOnShow","hideOnHoverOutside","alwaysVisible"]);const p=m_();o=o||p,F0(o,!1);const f=O.useRef(null),b=o.parent,h=o.menubar,g=!!b,z=!!h&&!g;d=Ve(_e({},d),{ref:Cn(f,d.ref)});const y=Wie(_e({store:o,alwaysVisible:u},d)),{"aria-labelledby":x}=y;d=xt(y,["aria-labelledby"]);const[M,A]=O.useState(),_=o.useState("autoFocusOnShow"),w=o.useState("initialFocus"),k=o.useState("baseElement"),q=o.useState("renderedItems");O.useEffect(()=>{let E=!1;return A(L=>{var I,P,H;if(E||!_)return;if((I=L?.current)!=null&&I.isConnected)return L;const U=O.createRef();switch(w){case"first":U.current=((P=q.find(X=>!X.disabled&&X.element))==null?void 0:P.element)||null;break;case"last":U.current=((H=[...q].reverse().find(X=>!X.disabled&&X.element))==null?void 0:H.element)||null;break;default:U.current=k}return U}),()=>{E=!0}},[o,_,w,q,k]);const S=g?!1:r,C=!!c,T=!!M||!!d.initialFocus||!!S,W=on(o.combobox||o,"contentElement"),B=on(b?.combobox||b,"contentElement"),N=O.useMemo(()=>{if(!B||!W)return;const E=W.getAttribute("role"),L=B.getAttribute("role");if(!((L==="menu"||L==="menubar")&&E==="menu"))return B},[W,B]);return N!==void 0&&(d=_e({preserveTabOrderAnchor:N},d)),d=hL(Ve(_e({store:o,alwaysVisible:u,initialFocus:M,autoFocusOnShow:C?T&&c:_||!!S},d),{hideOnEscape(E){return Lg(i,E)?!1:(o?.hideAll(),!0)},hideOnHoverOutside(E){const L=o?.getState().disclosureElement;return(typeof l=="function"?l(E):l??(g?!0:z?L?!Au(L):!0:!1))?E.defaultPrevented||!g||!L||(Bje(L,"mouseout",E),!Au(L))?!0:(requestAnimationFrame(()=>{Au(L)||o?.hide()}),!1):!1},modal:S,portal:s,backdrop:g?!1:d.backdrop})),d=_e({"aria-labelledby":x},d),d}),NDe=xh(yt(function(t){const n=BDe(t);return vt(EDe,n)}),m_),LDe="a",mL=_t(function(t){var n=t,{store:o,showOnHover:r=!0}=n,s=xt(n,["store","showOnHover"]);const i=pL();o=o||i,F0(o,!1);const c=hl(s),l=O.useRef(0);O.useEffect(()=>()=>window.clearTimeout(l.current),[]),O.useEffect(()=>lo("mouseleave",y=>{if(!o)return;const{anchorElement:x}=o.getState();x&&y.target===x&&(window.clearTimeout(l.current),l.current=0)},!0),[o]);const u=s.onMouseMove,d=O1(r),p=IN(),f=It(z=>{if(u?.(z),c||!o||z.defaultPrevented||l.current||!p()||!d(z))return;const y=z.currentTarget;o.setAnchorElement(y),o.setDisclosureElement(y);const{showTimeout:x,timeout:v}=o.getState(),M=()=>{l.current=0,p()&&(o?.setAnchorElement(y),o?.show(),queueMicrotask(()=>{o?.setDisclosureElement(y)}))},A=x??v;A===0?M():l.current=window.setTimeout(M,A)}),b=s.onClick,h=It(z=>{b?.(z),o&&(window.clearTimeout(l.current),l.current=0)}),g=O.useCallback(z=>{if(!o)return;const{anchorElement:y}=o.getState();y?.isConnected||o.setAnchorElement(z)},[o]);return s=Ve(_e({},s),{ref:Cn(g,s.ref),onMouseMove:f,onClick:h}),s=Ah(s),s});yt(function(t){const n=mL(t);return vt(LDe,n)});var jDe="button";function PDe(e,t){return{ArrowDown:t==="bottom"||t==="top"?"first":!1,ArrowUp:t==="bottom"||t==="top"?"last":!1,ArrowRight:t==="right"?"first":!1,ArrowLeft:t==="left"?"first":!1}[e.key]}function BH(e,t){return!!e?.some(n=>!n.element||n.element===t?!1:n.element.getAttribute("aria-expanded")==="true")}var IDe=_t(function(t){var n=t,{store:o,focusable:r,accessibleWhenDisabled:s,showOnHover:i}=n,c=xt(n,["store","focusable","accessibleWhenDisabled","showOnHover"]);const l=m_();o=o||l,F0(o,!1);const u=O.useRef(null),d=o.parent,p=o.menubar,f=!!d,b=!!p&&!f,h=hl(c),g=()=>{const C=u.current;C&&(o?.setDisclosureElement(C),o?.setAnchorElement(C),o?.show())},z=c.onFocus,y=It(C=>{if(z?.(C),h||C.defaultPrevented||(o?.setAutoFocusOnShow(!1),o?.setActiveId(null),!p)||!b)return;const{items:T}=p.getState();BH(T,C.currentTarget)&&g()}),x=o.useState(C=>C.placement.split("-")[0]),v=c.onKeyDown,M=It(C=>{if(v?.(C),h||C.defaultPrevented)return;const T=PDe(C,x);T&&(C.preventDefault(),g(),o?.setAutoFocusOnShow(!0),o?.setInitialFocus(T))}),A=c.onClick,_=It(C=>{if(A?.(C),C.defaultPrevented||!o)return;const T=!C.detail,{open:W}=o.getState();(!W||T)&&((!f||T)&&o.setAutoFocusOnShow(!0),o.setInitialFocus(T?"first":"container")),f&&g()});c=rn(c,C=>a.jsx(xDe,{value:o,children:C}),[o]),f&&(c=Ve(_e({},c),{render:a.jsx(Pg.div,{render:c.render})}));const w=Dr(c.id),k=on(d?.combobox||d,"contentElement"),q=f||b?EN(k,"menuitem"):void 0,S=o.useState("contentElement");return c=Ve(_e({id:w,role:q,"aria-haspopup":c_(S,"menu")},c),{ref:Cn(u,c.ref),onFocus:y,onKeyDown:M,onClick:_}),c=mL(Ve(_e({store:o,focusable:r,accessibleWhenDisabled:s},c),{showOnHover:C=>{if(!(()=>{if(typeof i=="function")return i(C);if(i!=null)return i;if(f)return!0;if(!p)return!1;const{items:N}=p.getState();return b&&BH(N)})())return!1;const B=b?p:d;return B&&B.setActiveId(C.currentTarget.id),!0}})),c=dL(_e({store:o,toggleOnClick:!f,focusable:r,accessibleWhenDisabled:s},c)),c=h3(_e({store:o,typeahead:b},c)),c}),DDe=yt(function(t){const n=IDe(t);return vt(jDe,n)}),FDe="div",$De=_t(function(t){return t=Fse(t),t}),VDe=yt(function(t){const n=$De(t);return vt(FDe,n)}),HDe="div",UDe=_t(function(t){return t=Vse(t),t}),XDe=yt(function(t){const n=UDe(t);return vt(HDe,n)}),GDe="span",KDe=_t(function(t){var n=t,{store:o,checked:r}=n,s=xt(n,["store","checked"]);const i=O.useContext(Sie);return r=r??i,s=YN(Ve(_e({},s),{checked:r})),s}),Eie=yt(function(t){const n=KDe(t);return vt(GDe,n)}),YDe="div";function ZDe(e,t,n){var o;if(!e)return!1;if(Au(e))return!0;const r=t?.find(l=>{var u;return l.element===n?!1:((u=l.element)==null?void 0:u.getAttribute("aria-expanded"))==="true"}),s=(o=r?.element)==null?void 0:o.getAttribute("aria-controls");if(!s)return!1;const c=Zn(e).getElementById(s);return c?Au(c)?!0:!!c.querySelector("[role=menuitem][aria-expanded=true]"):!1}var ML=_t(function(t){var n=t,{store:o,hideOnClick:r=!0,preventScrollOnKeyDown:s=!0,focusOnHover:i,blurOnHoverEnd:c}=n,l=xt(n,["store","hideOnClick","preventScrollOnKeyDown","focusOnHover","blurOnHoverEnd"]);const u=bL(!0),d=vDe();o=o||u||d,F0(o,!1);const p=l.onClick,f=O1(r),b="hideAll"in o?o.hideAll:void 0,h=!!b,g=It(x=>{p?.(x),!(x.defaultPrevented||dse(x)||use(x)||!b||x.currentTarget.getAttribute("aria-haspopup")==="menu")&&f(x)&&b()}),z=on(o,x=>"contentElement"in x?x.contentElement:null),y=EN(z,"menuitem");return l=Ve(_e({role:y},l),{onClick:g}),l=vh(_e({store:o,preventScrollOnKeyDown:s},l)),l=ZN(Ve(_e({store:o},l),{focusOnHover(x){const v=()=>typeof i=="function"?i(x):i??!0;if(!o||!v())return!1;const{baseElement:M,items:A}=o.getState();return h?(x.currentTarget.hasAttribute("aria-expanded")&&x.currentTarget.focus(),!0):ZDe(M,A,x.currentTarget)?(x.currentTarget.focus(),!0):!1},blurOnHoverEnd(x){return typeof c=="function"?c(x):c??h}})),l}),QDe=Za(yt(function(t){const n=ML(t);return vt(YDe,n)})),JDe="div";function eFe(e){return Array.isArray(e)?e.toString():e}function vq(e,t,n){if(t===void 0)return Array.isArray(e)?e:!!n;const o=eFe(t);return Array.isArray(e)?n?e.includes(o)?e:[...e,o]:e.filter(r=>r!==o):n?o:e===o?!1:e}var tFe=_t(function(t){var n=t,{store:o,name:r,value:s,checked:i,defaultChecked:c,hideOnClick:l=!1}=n,u=xt(n,["store","name","value","checked","defaultChecked","hideOnClick"]);const d=bL();o=o||d,F0(o,!1);const p=pse(c);O.useEffect(()=>{o?.setValue(r,(b=[])=>p?vq(b,s,!0):b)},[o,r,s,p]),O.useEffect(()=>{i!==void 0&&o?.setValue(r,b=>vq(b,s,i))},[o,r,s,i]);const f=eDe({value:o.useState(b=>b.values[r]),setValue(b){o?.setValue(r,()=>{if(i===void 0)return b;const h=vq(b,s,i);return!Array.isArray(h)||!Array.isArray(b)?h:Mje(b,h)?b:h})}});return u=_e({role:"menuitemcheckbox"},u),u=zie(_e({store:f,name:r,value:s,checked:i},u)),u=ML(_e({store:o,hideOnClick:l},u)),u}),nFe=Za(yt(function(t){const n=tFe(t);return vt(JDe,n)})),oFe="div";function xq(e,t,n){return n===void 0?e:n?t:e}var rFe=_t(function(t){var n=t,{store:o,name:r,value:s,checked:i,onChange:c,hideOnClick:l=!1}=n,u=xt(n,["store","name","value","checked","onChange","hideOnClick"]);const d=bL();o=o||d,F0(o,!1);const p=pse(u.defaultChecked);O.useEffect(()=>{o?.setValue(r,(b=!1)=>xq(b,s,p))},[o,r,s,p]),O.useEffect(()=>{i!==void 0&&o?.setValue(r,b=>xq(b,s,i))},[o,r,s,i]);const f=o.useState(b=>b.values[r]===s);return u=rn(u,b=>a.jsx(Sie.Provider,{value:!!f,children:b}),[f]),u=_e({role:"menuitemradio"},u),u=Aie(_e({name:r,value:s,checked:f,onChange(b){if(c?.(b),b.defaultPrevented)return;const h=b.currentTarget;o?.setValue(r,g=>xq(g,s,i??h.checked))}},u)),u=ML(_e({store:o,hideOnClick:l},u)),u}),sFe=Za(yt(function(t){const n=rFe(t);return vt(oFe,n)})),iFe="hr",aFe=_t(function(t){var n=t,{store:o}=n,r=xt(n,["store"]);const s=qie();return o=o||s,r=Mie(_e({store:o},r)),r}),cFe=yt(function(t){const n=aFe(t);return vt(iFe,n)});function lFe(e={}){var t;const n=(t=e.store)==null?void 0:t.getState(),o=Cie(S0(Pt({},e),{placement:qt(e.placement,n?.placement,"top"),hideTimeout:qt(e.hideTimeout,n?.hideTimeout,0)})),r=S0(Pt({},o.getState()),{type:qt(e.type,n?.type,"description"),skipTimeout:qt(e.skipTimeout,n?.skipTimeout,300)}),s=Vo(r,o,e.store);return Pt(Pt({},o),s)}function uFe(e,t,n){return yn(e,n,"type"),yn(e,n,"skipTimeout"),Rie(e,t,n)}function dFe(e={}){const[t,n]=$i(lFe,e);return uFe(t,n,e)}var Bie=cr([kie],[fL]),gL=Bie.useProviderContext,pFe=Bie.ScopedContextProvider,fFe="div",bFe=_t(function(t){var n=t,{store:o,portal:r=!0,gutter:s=8,preserveTabOrder:i=!1,hideOnHoverOutside:c=!0,hideOnInteractOutside:l=!0}=n,u=xt(n,["store","portal","gutter","preserveTabOrder","hideOnHoverOutside","hideOnInteractOutside"]);const d=gL();o=o||d,F0(o,!1),u=rn(u,f=>a.jsx(pFe,{value:o,children:f}),[o]);const p=o.useState(f=>f.type==="description"?"tooltip":"none");return u=_e({role:p},u),u=hL(Ve(_e({},u),{store:o,portal:r,gutter:s,preserveTabOrder:i,hideOnHoverOutside(f){if(Lg(c,f))return!1;const b=o?.getState().anchorElement;return b?!("focusVisible"in b.dataset):!0},hideOnInteractOutside:f=>{if(Lg(l,f))return!1;const b=o?.getState().anchorElement;return b?!u1(b,f.target):!0}})),u}),hFe=xh(yt(function(t){const n=bFe(t);return vt(fFe,n)}),gL),mFe="div",Ud=Vo({activeStore:null});function NH(e){return()=>{const{activeStore:t}=Ud.getState();t===e&&Ud.setState("activeStore",null)}}var MFe=_t(function(t){var n=t,{store:o,showOnHover:r=!0}=n,s=xt(n,["store","showOnHover"]);const i=gL();o=o||i,F0(o,!1);const c=O.useRef(!1);O.useEffect(()=>e1(o,["mounted"],z=>{z.mounted||(c.current=!1)}),[o]),O.useEffect(()=>{if(o)return $o(NH(o),e1(o,["mounted","skipTimeout"],z=>{if(!o)return;if(z.mounted){const{activeStore:x}=Ud.getState();return x!==o&&x?.hide(),Ud.setState("activeStore",o)}const y=setTimeout(NH(o),z.skipTimeout);return()=>clearTimeout(y)}))},[o]);const l=s.onMouseEnter,u=It(z=>{l?.(z),c.current=!0}),d=s.onFocusVisible,p=It(z=>{d?.(z),!z.defaultPrevented&&(o?.setAnchorElement(z.currentTarget),o?.show())}),f=s.onBlur,b=It(z=>{if(f?.(z),z.defaultPrevented)return;const{activeStore:y}=Ud.getState();c.current=!1,y===o&&Ud.setState("activeStore",null)}),h=o.useState("type"),g=o.useState(z=>{var y;return(y=z.contentElement)==null?void 0:y.id});return s=Ve(_e({"aria-labelledby":h==="label"?g:void 0},s),{onMouseEnter:u,onFocusVisible:p,onBlur:b}),s=mL(_e({store:o,showOnHover(z){if(!c.current||Lg(r,z))return!1;const{activeStore:y}=Ud.getState();return y?(o?.show(),!1):!0}},s)),s}),gFe=yt(function(t){const n=MFe(t);return vt(mFe,n)});function zFe(e={}){var t;const n=(t=e.store)==null?void 0:t.getState();return zh(S0(Pt({},e),{orientation:qt(e.orientation,n?.orientation,"horizontal"),focusLoop:qt(e.focusLoop,n?.focusLoop,!0)}))}function OFe(e,t,n){return Oh(e,t,n)}function Nie(e={}){const[t,n]=$i(zFe,e);return OFe(t,n,e)}var zL=cr([fd],[gf]),AFe=zL.useContext,yFe=zL.useProviderContext,vFe=zL.ScopedContextProvider,xFe="div",_Fe=_t(function(t){var n=t,{store:o,orientation:r,virtualFocus:s,focusLoop:i,rtl:c}=n,l=xt(n,["store","orientation","virtualFocus","focusLoop","rtl"]);const u=yFe();o=o||u;const d=Nie({store:o,orientation:r,virtualFocus:s,focusLoop:i,rtl:c}),p=d.useState(f=>f.orientation==="both"?void 0:f.orientation);return l=rn(l,f=>a.jsx(vFe,{value:d,children:f}),[d]),l=_e({role:"toolbar","aria-orientation":p},l),l=yh(_e({store:d},l)),l}),wFe=yt(function(t){const n=_Fe(t);return vt(xFe,n)}),kFe="button",qFe=_t(function(t){var n=t,{store:o}=n,r=xt(n,["store"]);const s=AFe();return o=o||s,r=vh(_e({store:o},r)),r}),SFe=Za(yt(function(t){const n=qFe(t);return vt(kFe,n)})),M_=cr([UN,fd],[d3,gf]),OL=M_.useContext,CFe=M_.useScopedContext,g_=M_.useProviderContext,Lie=M_.ScopedContextProvider,jie=O.createContext(!1),LH=O.createContext(null);function Pie(e={}){var t=e,{composite:n,combobox:o}=t,r=o3(t,["composite","combobox"]);const s=["items","renderedItems","moves","orientation","virtualFocus","includesBaseElement","baseElement","focusLoop","focusShift","focusWrap"],i=c3(r.store,C2(n,s),C2(o,s)),c=i?.getState(),l=zh(S0(Pt({},r),{store:i,includesBaseElement:qt(r.includesBaseElement,c?.includesBaseElement,!1),orientation:qt(r.orientation,c?.orientation,"horizontal"),focusLoop:qt(r.focusLoop,c?.focusLoop,!0)})),u=Ose(),d=S0(Pt({},l.getState()),{selectedId:qt(r.selectedId,c?.selectedId,r.defaultSelectedId),selectOnMove:qt(r.selectOnMove,c?.selectOnMove,!0)}),p=Vo(d,l,i);V1(p,()=>e1(p,["moves"],()=>{const{activeId:b,selectOnMove:h}=p.getState();if(!h||!b)return;const g=l.item(b);g&&(g.dimmed||g.disabled||p.setState("selectedId",g.id))})),V1(p,()=>jg(p,["selectedId"],(b,h)=>{n&&b.selectedId===h.selectedId||p.setState("activeId",b.selectedId)})),V1(p,()=>e1(p,["selectedId","renderedItems"],b=>{if(b.selectedId!==void 0)return;const{activeId:h,renderedItems:g}=p.getState(),z=l.item(h);if(z&&!z.disabled&&!z.dimmed)p.setState("selectedId",z.id);else{const y=g.find(x=>!x.disabled&&!x.dimmed);p.setState("selectedId",y?.id)}})),V1(p,()=>e1(p,["renderedItems"],b=>{const h=b.renderedItems;if(h.length)return e1(u,["renderedItems"],g=>{const z=g.renderedItems;z.some(x=>!x.tabId)&&z.forEach((x,v)=>{if(x.tabId)return;const M=h[v];M&&u.renderItem(S0(Pt({},x),{tabId:M.id}))})})}));let f=null;return V1(p,()=>{const b=()=>{f=p.getState().selectedId},h=()=>{p.setState("selectedId",f)};if(n&&"setSelectElement"in n)return $o(e1(n,["value"],b),e1(n,["open"],h));if(o)return $o(e1(o,["selectedValue"],b),e1(o,["open"],h))}),S0(Pt(Pt({},l),p),{panels:u,setSelectedId:b=>p.setState("selectedId",b),select:b=>{p.setState("selectedId",b),l.move(b)}})}function RFe(e,t,n){Iu(t,[n.composite,n.combobox]),e=Oh(e,t,n),yn(e,n,"selectedId","setSelectedId"),yn(e,n,"selectOnMove");const[o,r]=$i(()=>e.panels,{});return Iu(r,[e,r]),Object.assign(O.useMemo(()=>Ve(_e({},e),{panels:o}),[e,o]),{composite:n.composite,combobox:n.combobox})}function WFe(e={}){const t=yPe(),n=OL()||t;e=Ve(_e({},e),{composite:e.composite!==void 0?e.composite:n,combobox:e.combobox!==void 0?e.combobox:t});const[o,r]=$i(Pie,e);return RFe(o,r,e)}var AL=cr([fd],[gf]),TFe=AL.useScopedContext,Iie=AL.useProviderContext,Die=AL.ScopedContextProvider,EFe="button",BFe=_t(function(t){var n=t,{store:o,getItem:r}=n,s=xt(n,["store","getItem"]),i;const c=TFe();o=o||c,F0(o,!1);const l=Dr(),u=s.id||l,d=hl(s),p=O.useCallback(_=>{const w=Ve(_e({},_),{dimmed:d});return r?r(w):w},[d,r]),f=s.onClick,b=It(_=>{f?.(_),!_.defaultPrevented&&o?.setSelectedId(u)}),h=o.panels.useState(_=>{var w;return(w=_.items.find(k=>k.tabId===u))==null?void 0:w.id}),g=l?s.shouldRegisterItem:!1,z=o.useState(_=>!!u&&_.activeId===u),y=o.useState(_=>!!u&&_.selectedId===u),x=o.useState(_=>!!o.item(_.activeId)),v=z||y&&!x,M=y||((i=s.accessibleWhenDisabled)!=null?i:!0);if(on(o.combobox||o.composite,"virtualFocus")&&(s=Ve(_e({},s),{tabIndex:-1})),s=Ve(_e({id:u,role:"tab","aria-selected":y,"aria-controls":h||void 0},s),{onClick:b}),o.composite){const _={id:u,accessibleWhenDisabled:M,store:o.composite,shouldRegisterItem:v&&g,render:s.render};s=Ve(_e({},s),{render:a.jsx(N8,Ve(_e({},_),{render:o.combobox&&o.composite!==o.combobox?a.jsx(N8,Ve(_e({},_),{store:o.combobox})):_.render}))})}return s=vh(Ve(_e({store:o},s),{accessibleWhenDisabled:M,getItem:p,shouldRegisterItem:g})),s}),NFe=Za(yt(function(t){const n=BFe(t);return vt(EFe,n)})),LFe="div",jFe=_t(function(t){var n=t,{store:o}=n,r=xt(n,["store"]);const s=Iie();o=o||s,F0(o,!1);const i=o.useState(c=>c.orientation==="both"?void 0:c.orientation);return r=rn(r,c=>a.jsx(Die,{value:o,children:c}),[o]),o.composite&&(r=_e({focusable:!1},r)),r=_e({role:"tablist","aria-orientation":i},r),r=yh(_e({store:o},r)),r}),PFe=yt(function(t){const n=jFe(t);return vt(LFe,n)}),IFe="div",DFe=_t(function(t){var n=t,{store:o,unmountOnHide:r,tabId:s,getItem:i}=n,c=xt(n,["store","unmountOnHide","tabId","getItem"]);const l=Iie();o=o||l,F0(o,!1);const u=O.useRef(null),d=Dr(c.id),[p,f]=O.useState(!1);O.useEffect(()=>{const M=u.current;if(!M)return;const A=p3(M);f(!!A.length)},[]);const b=O.useCallback(M=>{const A=Ve(_e({},M),{id:d||M.id,tabId:s});return i?i(A):A},[d,s,i]),h=c.onKeyDown,g=It(M=>{if(h?.(M),M.defaultPrevented||!o?.composite)return;const A=o.getState(),_=Pie(Ve(_e({},A),{activeId:A.selectedId}));_.setState("renderedItems",A.renderedItems);const k={ArrowLeft:_.previous,ArrowRight:_.next,Home:_.first,End:_.last}[M.key];if(!k)return;const q=k();q&&(M.preventDefault(),o.move(q))});c=rn(c,M=>a.jsx(Die,{value:o,children:M}),[o]);const z=o.panels.useState(()=>{var M;return s||((M=o?.panels.item(d))==null?void 0:M.tabId)}),y=o.useState(M=>!!z&&M.selectedId===z),x=wse({open:y}),v=x.useState("mounted");return c=Ve(_e({id:d,role:"tabpanel","aria-labelledby":z||void 0},c),{children:r&&!v?null:c.children,ref:Cn(u,c.ref),onKeyDown:g}),c=Ah(_e({focusable:!o.composite&&!p},c)),c=f_(_e({store:x},c)),c=QN(Ve(_e({store:o.panels},c),{getItem:b})),c}),FFe=yt(function(t){const n=DFe(t);return vt(IFe,n)});function $Fe(e={}){var t=e,{combobox:n}=t,o=o3(t,["combobox"]);const r=c3(o.store,C2(n,["value","items","renderedItems","baseElement","arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),s=r.getState(),i=zh(S0(Pt({},o),{store:r,virtualFocus:qt(o.virtualFocus,s.virtualFocus,!0),includesBaseElement:qt(o.includesBaseElement,s.includesBaseElement,!1),activeId:qt(o.activeId,s.activeId,o.defaultActiveId,null),orientation:qt(o.orientation,s.orientation,"vertical")})),c=Sse(S0(Pt({},o),{store:r,placement:qt(o.placement,s.placement,"bottom-start")})),l=new String(""),u=S0(Pt(Pt({},i.getState()),c.getState()),{value:qt(o.value,s.value,o.defaultValue,l),setValueOnMove:qt(o.setValueOnMove,s.setValueOnMove,!1),labelElement:qt(s.labelElement,null),selectElement:qt(s.selectElement,null),listElement:qt(s.listElement,null)}),d=Vo(u,i,c,r);return V1(d,()=>e1(d,["value","items"],p=>{if(p.value!==l||!p.items.length)return;const f=p.items.find(b=>!b.disabled&&b.value!=null);f?.value!=null&&d.setState("value",f.value)})),V1(d,()=>e1(d,["mounted"],p=>{p.mounted||d.setState("activeId",u.activeId)})),V1(d,()=>e1(d,["mounted","items","value"],p=>{if(n||p.mounted)return;const f=Ase(p.value),b=f[f.length-1];if(b==null)return;const h=p.items.find(g=>!g.disabled&&g.value===b);h&&d.setState("activeId",h.id)})),V1(d,()=>jg(d,["setValueOnMove","moves"],p=>{const{mounted:f,value:b,activeId:h}=d.getState();if(!p.setValueOnMove&&f||Array.isArray(b)||!p.moves||!h)return;const g=i.item(h);!g||g.disabled||g.value==null||d.setState("value",g.value)})),S0(Pt(Pt(Pt({},i),c),d),{combobox:n,setValue:p=>d.setState("value",p),setLabelElement:p=>d.setState("labelElement",p),setSelectElement:p=>d.setState("selectElement",p),setListElement:p=>d.setState("listElement",p)})}function VFe(e,t,n){return Iu(t,[n.combobox]),yn(e,n,"value","setValue"),yn(e,n,"setValueOnMove"),Object.assign(Cse(Oh(e,t,n),t,n),{combobox:n.combobox})}function HFe(e={}){const t=Wse();e=Ve(_e({},e),{combobox:e.combobox!==void 0?e.combobox:t});const[n,o]=$i($Fe,e);return VFe(n,o,e)}var UFe="span",XFe=_t(function(t){var n=t,{store:o}=n,r=xt(n,["store"]);const s=OL();return o=o||s,r=_ie(_e({store:o},r)),r}),GFe=yt(function(t){const n=XFe(t);return vt(UFe,n)}),KFe="button";function YFe(e){return Array.from(e.selectedOptions).map(t=>t.value)}function lA(e,t){return()=>{const n=t();if(!n)return;let o=0,r=e.item(n);const s=r;for(;r&&r.value==null;){const i=t(++o);if(!i)return;if(r=e.item(i),r===s)break}return r?.id}}var ZFe=_t(function(t){var n=t,{store:o,name:r,form:s,required:i,showOnKeyDown:c=!0,moveOnKeyDown:l=!0,toggleOnPress:u=!0,toggleOnClick:d=u}=n,p=xt(n,["store","name","form","required","showOnKeyDown","moveOnKeyDown","toggleOnPress","toggleOnClick"]);const f=g_();o=o||f,F0(o,!1);const b=p.onKeyDown,h=O1(c),g=O1(l),y=o.useState("placement").split("-")[0],x=o.useState("value"),v=Array.isArray(x),M=It(N=>{var E;if(b?.(N),N.defaultPrevented||!o)return;const{orientation:L,items:I,activeId:P}=o.getState(),H=L!=="horizontal",U=L!=="vertical",X=!!((E=I.find(be=>!be.disabled&&be.value!=null))!=null&&E.rowId),ne={ArrowUp:(X||H)&&lA(o,o.up),ArrowRight:(X||U)&&lA(o,o.next),ArrowDown:(X||H)&&lA(o,o.down),ArrowLeft:(X||U)&&lA(o,o.previous)}[N.key];ne&&g(N)&&(N.preventDefault(),o.move(ne()));const oe=y==="top"||y==="bottom";({ArrowDown:oe,ArrowUp:oe,ArrowLeft:y==="left",ArrowRight:y==="right"})[N.key]&&h(N)&&(N.preventDefault(),o.move(P),Zb(N.currentTarget,"keyup",o.show))});p=rn(p,N=>a.jsx(Lie,{value:o,children:N}),[o]);const[A,_]=O.useState(!1),w=O.useRef(!1);O.useEffect(()=>{const N=w.current;w.current=!1,!N&&_(!1)},[x]);const k=o.useState(N=>{var E;return(E=N.labelElement)==null?void 0:E.id}),q=p["aria-label"],S=p["aria-labelledby"]||k,C=o.useState(N=>{if(r)return N.items}),T=O.useMemo(()=>[...new Set(C?.map(N=>N.value).filter(N=>N!=null))],[C]);p=rn(p,N=>r?a.jsxs(a.Fragment,{children:[a.jsxs("select",{style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},tabIndex:-1,"aria-hidden":!0,"aria-label":q,"aria-labelledby":S,name:r,form:s,required:i,value:x,multiple:v,onFocus:()=>{var E;return(E=o?.getState().selectElement)==null?void 0:E.focus()},onChange:E=>{w.current=!0,_(!0),o?.setValue(v?YFe(E.target):E.target.value)},children:[Ase(x).map(E=>E==null||T.includes(E)?null:a.jsx("option",{value:E,children:E},E)),T.map(E=>a.jsx("option",{value:E,children:E},E))]}),N]}):N,[o,q,S,r,s,i,x,v,T]);const W=a.jsxs(a.Fragment,{children:[x,a.jsx(GFe,{})]}),B=o.useState("contentElement");return p=Ve(_e({role:"combobox","aria-autocomplete":"none","aria-labelledby":k,"aria-haspopup":c_(B,"listbox"),"data-autofill":A||void 0,"data-name":r,children:W},p),{ref:Cn(o.setSelectElement,p.ref),onKeyDown:M}),p=dL(_e({store:o,toggleOnClick:d},p)),p=h3(_e({store:o},p)),p}),QFe=yt(function(t){const n=ZFe(t);return vt(KFe,n)}),JFe="span",e$e=_t(function(t){var n=t,{store:o,checked:r}=n,s=xt(n,["store","checked"]);const i=O.useContext(jie);return r=r??i,s=YN(Ve(_e({},s),{checked:r})),s}),t$e=yt(function(t){const n=e$e(t);return vt(JFe,n)}),n$e="div";function o$e(e,t){if(t!=null)return e==null?!1:Array.isArray(e)?e.includes(t):e===t}var r$e=_t(function(t){var n=t,{store:o,value:r,getItem:s,hideOnClick:i,setValueOnClick:c=r!=null,preventScrollOnKeyDown:l=!0,focusOnHover:u=!0}=n,d=xt(n,["store","value","getItem","hideOnClick","setValueOnClick","preventScrollOnKeyDown","focusOnHover"]),p;const f=CFe();o=o||f,F0(o,!1);const b=Dr(d.id),h=hl(d),g=O.useCallback(q=>{const S=Ve(_e({},q),{value:h?void 0:r,children:r});return s?s(S):S},[h,r,s]),z=o.useState(q=>Array.isArray(q.value));i=i??(r!=null&&!z);const y=d.onClick,x=O1(c),v=O1(i),M=It(q=>{y?.(q),!q.defaultPrevented&&(dse(q)||use(q)||(x(q)&&r!=null&&o?.setValue(S=>Array.isArray(S)?S.includes(r)?S.filter(C=>C!==r):[...S,r]:r),v(q)&&o?.hide()))}),A=o.useState(q=>o$e(q.value,r));d=rn(d,q=>a.jsx(jie.Provider,{value:A??!1,children:q}),[A]);const _=o.useState("listElement"),w=o.useState(q=>r==null||q.value==null||q.activeId!==b&&o?.item(q.activeId)?!1:Array.isArray(q.value)?q.value[q.value.length-1]===r:q.value===r);d=Ve(_e({id:b,role:EN(_),"aria-selected":A,children:r},d),{autoFocus:(p=d.autoFocus)!=null?p:w,onClick:M}),d=vh(_e({store:o,getItem:g,preventScrollOnKeyDown:l},d));const k=O1(u);return d=ZN(Ve(_e({store:o},d),{focusOnHover(q){if(!k(q))return!1;const S=o?.getState();return!!S?.open}})),d}),s$e=Za(yt(function(t){const n=r$e(t);return vt(n$e,n)})),i$e="div",a$e=_t(function(t){var n=t,{store:o}=n,r=xt(n,["store"]);const s=g_();o=o||s,F0(o,!1);const i=Dr(r.id),c=r.onClick,l=It(u=>{c?.(u),!u.defaultPrevented&&queueMicrotask(()=>{const d=o?.getState().selectElement;d?.focus()})});return r=Ve(_e({id:i},r),{ref:Cn(o.setLabelElement,r.ref),onClick:l,style:_e({cursor:"default"},r.style)}),Ir(r)}),c$e=Za(yt(function(t){const n=a$e(t);return vt(i$e,n)})),l$e="div",jH=O.createContext(null),Fie=_t(function(t){var n=t,{store:o,resetOnEscape:r=!0,hideOnEnter:s=!0,focusOnMove:i=!0,composite:c,alwaysVisible:l}=n,u=xt(n,["store","resetOnEscape","hideOnEnter","focusOnMove","composite","alwaysVisible"]);const d=OL();o=o||d,F0(o,!1);const p=Dr(u.id),f=o.useState("value"),b=Array.isArray(f),[h,g]=O.useState(f),z=o.useState("mounted");O.useEffect(()=>{z||g(f)},[z,f]),r=r&&!b;const y=u.onKeyDown,x=O1(r),v=O1(s),M=It(X=>{y?.(X),!X.defaultPrevented&&(X.key==="Escape"&&x(X)&&o?.setValue(h),(X.key===" "||X.key==="Enter")&&vr(X)&&v(X)&&(X.preventDefault(),o?.hide()))}),A=O.useContext(LH),_=O.useState(),[w,k]=A||_,q=O.useMemo(()=>[w,k],[w]),[S,C]=O.useState(null),T=O.useContext(jH);O.useEffect(()=>{if(T)return T(o),()=>T(null)},[T,o]),u=rn(u,X=>a.jsx(Lie,{value:o,children:a.jsx(jH.Provider,{value:C,children:a.jsx(LH.Provider,{value:q,children:X})})}),[o,q]);const W=!!o.combobox;c=c??(!W&&S!==o);const[B,N]=bse(c?o.setListElement:null),E=Lje(B,"role",u.role),I=(c||(E==="listbox"||E==="menu"||E==="tree"||E==="grid"))&&b||void 0,P=p_(z,u.hidden,l),H=P?Ve(_e({},u.style),{display:"none"}):u.style;c&&(u=_e({role:"listbox","aria-multiselectable":I},u));const U=o.useState(X=>{var Z;return w||((Z=X.labelElement)==null?void 0:Z.id)});return u=Ve(_e({id:p,"aria-labelledby":U,hidden:P},u),{ref:Cn(N,u.ref),style:H,onKeyDown:M}),u=yh(Ve(_e({store:o},u),{composite:c})),u=h3(_e({store:o,typeahead:!W},u)),u});yt(function(t){const n=Fie(t);return vt(l$e,n)});var u$e="div",d$e=_t(function(t){var n=t,{store:o,alwaysVisible:r}=n,s=xt(n,["store","alwaysVisible"]);const i=g_();return o=o||i,s=Fie(_e({store:o,alwaysVisible:r},s)),s=lL(_e({store:o,alwaysVisible:r},s)),s}),p$e=xh(yt(function(t){const n=d$e(t);return vt(u$e,n)}),g_);const $8=O.createContext(void 0),kh=()=>O.useContext($8),f$e=O.forwardRef(function(t,n){const o=kh();return a.jsx(d9e,{store:o?.store,...t,ref:n})}),b$e=O.forwardRef(function(t,n){const o=kh();return a.jsx(c9e,{store:o?.store,...t,ref:n})}),h$e=O.forwardRef(function(t,n){const o=kh();return a.jsx(g9e,{store:o?.store,...t,ref:n})}),m$e=O.forwardRef(function(t,n){const o=kh();return a.jsx(N8,{store:o?.store,...t,ref:n})}),M$e=O.forwardRef(function(t,n){const o=kh();return a.jsx(KIe,{store:o?.store,...t,ref:n})}),g$e=O.forwardRef(function(t,n){const o=kh();return a.jsx(bDe,{store:o?.store,...t,ref:n})}),hi=Object.assign(O.forwardRef(function({activeId:t,defaultActiveId:n,setActiveId:o,focusLoop:r=!1,focusWrap:s=!1,focusShift:i=!1,virtualFocus:c=!1,orientation:l="both",rtl:u=!1,children:d,disabled:p=!1,store:f,...b},h){const g=vse({activeId:t,defaultActiveId:n,setActiveId:o,focusLoop:r,focusWrap:s,focusShift:i,virtualFocus:c,orientation:l,rtl:u}),z=f||g,y=O.useMemo(()=>({store:z}),[z]);return a.jsx(e9e,{disabled:p,store:z,...b,ref:h,children:a.jsx($8.Provider,{value:y,children:d})})}),{Group:Object.assign(f$e,{displayName:"Composite.Group"}),GroupLabel:Object.assign(b$e,{displayName:"Composite.GroupLabel"}),Item:Object.assign(m$e,{displayName:"Composite.Item"}),Row:Object.assign(M$e,{displayName:"Composite.Row"}),Hover:Object.assign(h$e,{displayName:"Composite.Hover"}),Typeahead:Object.assign(g$e,{displayName:"Composite.Typeahead"}),Context:Object.assign($8,{displayName:"Composite.Context"})});function $ie(e){const{shortcut:t,className:n}=e;if(!t)return null;let o,r;return typeof t=="string"&&(o=t),t!==null&&typeof t=="object"&&(o=t.display,r=t.ariaLabel),a.jsx("span",{className:n,"aria-label":r,children:o})}const z$e={bottom:"bottom",top:"top","middle left":"left","middle right":"right","bottom left":"bottom-end","bottom center":"bottom","bottom right":"bottom-start","top left":"top-end","top center":"top","top right":"top-start","middle left left":"left","middle left right":"left","middle left bottom":"left-end","middle left top":"left-start","middle right left":"right","middle right right":"right","middle right bottom":"right-end","middle right top":"right-start","bottom left left":"bottom-end","bottom left right":"bottom-end","bottom left bottom":"bottom-end","bottom left top":"bottom-end","bottom center left":"bottom","bottom center right":"bottom","bottom center bottom":"bottom","bottom center top":"bottom","bottom right left":"bottom-start","bottom right right":"bottom-start","bottom right bottom":"bottom-start","bottom right top":"bottom-start","top left left":"top-end","top left right":"top-end","top left bottom":"top-end","top left top":"top-end","top center left":"top","top center right":"top","top center bottom":"top","top center top":"top","top right left":"top-start","top right right":"top-start","top right bottom":"top-start","top right top":"top-start",middle:"bottom","middle center":"bottom","middle center bottom":"bottom","middle center left":"bottom","middle center right":"bottom","middle center top":"bottom"},z_=e=>{var t;return(t=z$e[e])!==null&&t!==void 0?t:"bottom"},O$e={top:{originX:.5,originY:1},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},right:{originX:0,originY:.5},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},bottom:{originX:.5,originY:0},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},left:{originX:1,originY:.5},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1},overlay:{originX:.5,originY:.5}},A$e=e=>{const t=e.startsWith("top")||e.startsWith("bottom")?"translateY":"translateX",n=e.startsWith("top")||e.startsWith("left")?1:-1;return{style:O$e[e],initial:{opacity:0,scale:0,[t]:`${2*n}em`},animate:{opacity:1,scale:1,[t]:0},transition:{duration:.1,ease:[0,0,.2,1]}}};function y$e(e){return!!e?.top}function v$e(e){return!!e?.current}const x$e=({anchor:e,anchorRef:t,anchorRect:n,getAnchorRect:o,fallbackReferenceElement:r})=>{var s;let i=null;return e?i=e:y$e(t)?i={getBoundingClientRect(){const c=t.top.getBoundingClientRect(),l=t.bottom.getBoundingClientRect();return new window.DOMRect(c.x,c.y,c.width,l.bottom-c.top)}}:v$e(t)?i=t.current:t?i=t:n?i={getBoundingClientRect(){return n}}:o?i={getBoundingClientRect(){var c,l,u,d;const p=o(r);return new window.DOMRect((c=p.x)!==null&&c!==void 0?c:p.left,(l=p.y)!==null&&l!==void 0?l:p.top,(u=p.width)!==null&&u!==void 0?u:p.right-p.left,(d=p.height)!==null&&d!==void 0?d:p.bottom-p.top)}}:r&&(i=r.parentElement),(s=i)!==null&&s!==void 0?s:null},PH=e=>e===null||Number.isNaN(e)?void 0:Math.round(e),IH=O.createContext({isNestedInTooltip:!1}),_$e=700,w$e={isNestedInTooltip:!0};function k$e(e,t){const{children:n,className:o,delay:r=_$e,hideOnClick:s=!0,placement:i,position:c,shortcut:l,text:u,...d}=e,{isNestedInTooltip:p}=O.useContext(IH),f=He(W1,"tooltip"),b=u||l?f:void 0,h=O.Children.count(n)===1;let g;i!==void 0?g=i:c!==void 0&&(g=z_(c),Re("`position` prop in wp.components.tooltip",{since:"6.4",alternative:"`placement` prop"})),g=g||"bottom";const z=dFe({placement:g,showTimeout:r}),y=on(z,"mounted");if(p)return h?a.jsx(Pg,{...d,render:n}):n;function x(v){return b&&y?O.cloneElement(v,{"aria-describedby":b}):v}return a.jsxs(IH.Provider,{value:w$e,children:[a.jsx(gFe,{onClick:s?z.hide:void 0,store:z,render:h?x(n):void 0,ref:t,children:h?void 0:n}),h&&(u||l)&&a.jsxs(hFe,{...d,className:$("components-tooltip",o),unmountOnHide:!0,gutter:4,id:b,overflowPadding:.5,store:z,children:[u,l&&a.jsx($ie,{className:u?"components-tooltip__shortcut":"",shortcut:l})]})]})}const W1=O.forwardRef(k$e);function _s(e){return e!=null}function q$e(e){const t=e==="";return!_s(e)||t}function S$e(e=[],t){var n;return(n=e.find(_s))!==null&&n!==void 0?n:t}const C$e=e=>parseFloat(e),_m=e=>typeof e=="string"?C$e(e):e,DH={initial:void 0,fallback:""};function O_(e,t=DH){const{initial:n,fallback:o}={...DH,...t},[r,s]=O.useState(e),i=_s(e);O.useEffect(()=>{i&&r&&s(void 0)},[i,r]);const c=S$e([e,r,n],o),l=O.useCallback(u=>{i||s(u)},[i]);return[c,l]}function yL(e,t){const n=O.useRef(!1);O.useEffect(()=>{if(n.current)return e();n.current=!0},t),O.useEffect(()=>()=>{n.current=!1},[])}function g3({defaultValue:e,onChange:t,value:n}){const o=typeof n<"u",r=o?n:e,[s,i]=O.useState(r),c=o?n:s;let l;return o&&typeof t=="function"?l=t:!o&&typeof t=="function"?l=u=>{t(u),i(u)}:l=i,[c,l]}var R$e=!1;function W$e(e){if(e.sheet)return e.sheet;for(var t=0;t0?co(qh,--Wr):0,E2--,m1===10&&(E2=1,y_--),m1}function ns(){return m1=Wr2||Fg(m1)>3?"":" "}function H$e(e,t){for(;--t&&ns()&&!(m1<48||m1>102||m1>57&&m1<65||m1>70&&m1<97););return z3(e,Uy()+(t<6&&Ra()==32&&ns()==32))}function H8(e){for(;ns();)switch(m1){case e:return Wr;case 34:case 39:e!==34&&e!==39&&H8(m1);break;case 40:e===41&&H8(e);break;case 92:ns();break}return Wr}function U$e(e,t){for(;ns()&&e+m1!==57;)if(e+m1===84&&Ra()===47)break;return"/*"+z3(t,Wr-1)+"*"+A_(e===47?e:ns())}function X$e(e){for(;!Fg(Ra());)ns();return z3(e,Wr)}function G$e(e){return Kie(Gy("",null,null,null,[""],e=Gie(e),0,[0],e))}function Gy(e,t,n,o,r,s,i,c,l){for(var u=0,d=0,p=i,f=0,b=0,h=0,g=1,z=1,y=1,x=0,v="",M=r,A=s,_=o,w=v;z;)switch(h=x,x=ns()){case 40:if(h!=108&&co(w,p-1)==58){V8(w+=I0(Xy(x),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:w+=Xy(x);break;case 9:case 10:case 13:case 32:w+=V$e(h);break;case 92:w+=H$e(Uy()-1,7);continue;case 47:switch(Ra()){case 42:case 47:uA(K$e(U$e(ns(),Uy()),t,n),l);break;default:w+="/"}break;case 123*g:c[u++]=ba(w)*y;case 125*g:case 59:case 0:switch(x){case 0:case 125:z=0;case 59+d:y==-1&&(w=I0(w,/\f/g,"")),b>0&&ba(w)-p&&uA(b>32?$H(w+";",o,n,p-1):$H(I0(w," ","")+";",o,n,p-2),l);break;case 59:w+=";";default:if(uA(_=FH(w,t,n,u,d,r,c,v,M=[],A=[],p),s),x===123)if(d===0)Gy(w,t,_,_,M,s,p,c,A);else switch(f===99&&co(w,3)===110?100:f){case 100:case 108:case 109:case 115:Gy(e,_,_,o&&uA(FH(e,_,_,0,0,r,c,v,r,M=[],p),A),r,A,p,c,o?M:A);break;default:Gy(w,_,_,_,[""],A,0,c,A)}}u=d=b=0,g=y=1,v=w="",p=i;break;case 58:p=1+ba(w),b=h;default:if(g<1){if(x==123)--g;else if(x==125&&g++==0&&$$e()==125)continue}switch(w+=A_(x),x*g){case 38:y=d>0?1:(w+="\f",-1);break;case 44:c[u++]=(ba(w)-1)*y,y=1;break;case 64:Ra()===45&&(w+=Xy(ns())),f=Ra(),d=p=ba(v=w+=X$e(Uy())),x++;break;case 45:h===45&&ba(w)==2&&(g=0)}}return s}function FH(e,t,n,o,r,s,i,c,l,u,d){for(var p=r-1,f=r===0?s:[""],b=_L(f),h=0,g=0,z=0;h0?f[y]+" "+x:I0(x,/&\f/g,f[y])))&&(l[z++]=v);return v_(e,t,n,r===0?vL:c,l,u,d)}function K$e(e,t,n){return v_(e,t,n,Vie,A_(F$e()),Dg(e,2,-2),0)}function $H(e,t,n,o){return v_(e,t,n,xL,Dg(e,0,o),Dg(e,o+1,-1),o)}function Jb(e,t){for(var n="",o=_L(e),r=0;r6)switch(co(e,t+1)){case 109:if(co(e,t+4)!==45)break;case 102:return I0(e,/(.+:)(.+)-([^]+)/,"$1"+P0+"$2-$3$1"+Lv+(co(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~V8(e,"stretch")?Zie(I0(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(co(e,t+1)!==115)break;case 6444:switch(co(e,ba(e)-3-(~V8(e,"!important")&&10))){case 107:return I0(e,":",":"+P0)+e;case 101:return I0(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+P0+(co(e,14)===45?"inline-":"")+"box$3$1"+P0+"$2$3$1"+So+"$2box$3")+e}break;case 5936:switch(co(e,t+11)){case 114:return P0+e+So+I0(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return P0+e+So+I0(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return P0+e+So+I0(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return P0+e+So+e+e}return e}var rVe=function(t,n,o,r){if(t.length>-1&&!t.return)switch(t.type){case xL:t.return=Zie(t.value,t.length);break;case Hie:return Jb([wm(t,{value:I0(t.value,"@","@"+P0)})],r);case vL:if(t.length)return D$e(t.props,function(s){switch(I$e(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Jb([wm(t,{props:[I0(s,/:(read-\w+)/,":"+Lv+"$1")]})],r);case"::placeholder":return Jb([wm(t,{props:[I0(s,/:(plac\w+)/,":"+P0+"input-$1")]}),wm(t,{props:[I0(s,/:(plac\w+)/,":"+Lv+"$1")]}),wm(t,{props:[I0(s,/:(plac\w+)/,So+"input-$1")]})],r)}return""})}},sVe=[rVe],wL=function(t){var n=t.key;if(n==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(g){var z=g.getAttribute("data-emotion");z.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var r=t.stylisPlugins||sVe,s={},i,c=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var z=g.getAttribute("data-emotion").split(" "),y=1;y=4;++o,r-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var mVe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},MVe=!1,gVe=/[A-Z]|^ms/g,zVe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,oae=function(t){return t.charCodeAt(1)===45},HH=function(t){return t!=null&&typeof t!="boolean"},_q=Yie(function(e){return oae(e)?e:e.replace(gVe,"-$&").toLowerCase()}),UH=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(zVe,function(o,r,s){return ha={name:r,styles:s,next:ha},r})}return mVe[t]!==1&&!oae(t)&&typeof n=="number"&&n!==0?n+"px":n},OVe="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Vg(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return ha={name:r.name,styles:r.styles,next:ha},r.name;var s=n;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)ha={name:i.name,styles:i.styles,next:ha},i=i.next;var c=s.styles+";";return c}return AVe(e,t,n)}case"function":{if(e!==void 0){var l=ha,u=n(e);return ha=l,Vg(e,t,u)}break}}var d=n;if(t==null)return d;var p=t[d];return p!==void 0?p:d}function AVe(e,t,n){var o="";if(Array.isArray(n))for(var r=0;rtypeof e<"u"&&e!==null&&["name","styles"].every(t=>typeof e[t]<"u"),x0=()=>{const e=wVe();return O.useCallback((...n)=>{if(e===null)throw new Error("The `useCx` hook should be only used within a valid Emotion Cache Context");return WVe(...n.map(o=>TVe(o)?(RL(e,o,!1),`${e.key}-${o.name}`):o))},[e])},B_={name:"kv6lnz",styles:"box-sizing:border-box;*,*::before,*::after{box-sizing:inherit;}"};let wq;fs([bs]);function EVe(){if(!(typeof document>"u")){if(!wq){const e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),wq=e}return wq}}function BVe(e){return typeof e!="string"?!1:Tt(e).isValid()}function NVe(e){if(typeof e!="string")return"";if(BVe(e))return e;if(!e.includes("var(")||typeof document>"u")return"";const t=EVe();if(!t)return"";t.style.background=e;const n=window?.getComputedStyle(t).background;return t.style.background="",n||""}const LVe=ps(NVe);function jVe(e){const t=LVe(e);return Tt(t).isLight()?"#000000":"#ffffff"}function PVe(e){return jVe(e)==="#000000"?"dark":"light"}const YH=new RegExp(/-left/g),ZH=new RegExp(/-right/g),QH=new RegExp(/Left/g),JH=new RegExp(/Right/g);function IVe(e){return e==="left"?"right":e==="right"?"left":YH.test(e)?e.replace(YH,"-right"):ZH.test(e)?e.replace(ZH,"-left"):QH.test(e)?e.replace(QH,"Right"):JH.test(e)?e.replace(JH,"Left"):e}const DVe=(e={})=>Object.fromEntries(Object.entries(e).map(([t,n])=>[IVe(t),n]));function dn(e={},t){return()=>t?ft()?ke(t,"",""):ke(e,"",""):ft()?ke(DVe(e),"",""):ke(e,"","")}dn.watch=()=>ft();const FVe={"default.fontFamily":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif","default.fontSize":"13px","helpText.fontSize":"12px",mobileTextMinFontSize:"16px"};function wi(e){var t;return(t=FVe[e])!==null&&t!==void 0?t:""}const $Ve={huge:"1440px",wide:"1280px","x-large":"1080px",large:"960px",medium:"782px",small:"600px",mobile:"480px","zoomed-in":"280px"},VVe=e=>`@media (min-width: ${$Ve[e]})`,HVe="4px";function Ce(e){if(typeof e>"u")return;if(!e)return"0";const t=typeof e=="number"?e:Number(e);return typeof window<"u"&&window.CSS?.supports?.("margin",e.toString())||Number.isNaN(t)?e.toString():`calc(${HVe} * ${e})`}const Ky="#fff",na={900:"#1e1e1e",800:"#2f2f2f",700:"#757575",600:"#949494",400:"#ccc",300:"#ddd",200:"#e0e0e0",100:"#f0f0f0"},UVe={yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},oa={accent:"var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))",accentDarker10:"var(--wp-components-color-accent-darker-10, var(--wp-admin-theme-color-darker-10, #2145e6))",accentDarker20:"var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6))",accentInverted:`var(--wp-components-color-accent-inverted, ${Ky})`,background:`var(--wp-components-color-background, ${Ky})`,foreground:`var(--wp-components-color-foreground, ${na[900]})`,foregroundInverted:`var(--wp-components-color-foreground-inverted, ${Ky})`,gray:{900:`var(--wp-components-color-foreground, ${na[900]})`,800:`var(--wp-components-color-gray-800, ${na[800]})`,700:`var(--wp-components-color-gray-700, ${na[700]})`,600:`var(--wp-components-color-gray-600, ${na[600]})`,400:`var(--wp-components-color-gray-400, ${na[400]})`,300:`var(--wp-components-color-gray-300, ${na[300]})`,200:`var(--wp-components-color-gray-200, ${na[200]})`,100:`var(--wp-components-color-gray-100, ${na[100]})`}},XVe={background:oa.background,backgroundDisabled:oa.gray[100],border:oa.gray[600],borderHover:oa.gray[700],borderFocus:oa.accent,borderDisabled:oa.gray[400],textDisabled:oa.gray[600],darkGrayPlaceholder:`color-mix(in srgb, ${oa.foreground}, transparent 38%)`,lightGrayPlaceholder:`color-mix(in srgb, ${oa.background}, transparent 35%)`},qe=Object.freeze({gray:na,white:Ky,alert:UVe,theme:oa,ui:XVe}),km="36px",Yy={controlSurfaceColor:qe.white,controlTextActiveColor:qe.theme.accent,controlPaddingX:12,controlPaddingXSmall:8,controlPaddingXLarge:12*1.3334,controlBackgroundColor:qe.white,controlBoxShadow:"transparent",controlBoxShadowFocus:`0 0 0 0.5px ${qe.theme.accent}`,controlDestructiveBorderColor:qe.alert.red,controlHeight:km,controlHeightXSmall:`calc( ${km} * 0.6 )`,controlHeightSmall:`calc( ${km} * 0.8 )`,controlHeightLarge:`calc( ${km} * 1.2 )`,controlHeightXLarge:`calc( ${km} * 1.4 )`},GVe={toggleGroupControlBackgroundColor:Yy.controlBackgroundColor,toggleGroupControlBorderColor:qe.ui.border,toggleGroupControlBackdropBackgroundColor:Yy.controlSurfaceColor,toggleGroupControlBackdropBorderColor:qe.ui.border,toggleGroupControlButtonColorActive:Yy.controlBackgroundColor},Se=Object.assign({},Yy,GVe,{colorDivider:"rgba(0, 0, 0, 0.1)",colorScrollbarThumb:"rgba(0, 0, 0, 0.2)",colorScrollbarThumbHover:"rgba(0, 0, 0, 0.5)",colorScrollbarTrack:"rgba(0, 0, 0, 0.04)",elevationIntensity:1,radiusXSmall:"1px",radiusSmall:"2px",radiusMedium:"4px",radiusLarge:"8px",radiusFull:"9999px",radiusRound:"50%",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px",spinnerSize:16,fontSize:"13px",fontSizeH1:"calc(2.44 * 13px)",fontSizeH2:"calc(1.95 * 13px)",fontSizeH3:"calc(1.56 * 13px)",fontSizeH4:"calc(1.25 * 13px)",fontSizeH5:"13px",fontSizeH6:"calc(0.8 * 13px)",fontSizeInputMobile:"16px",fontSizeMobile:"15px",fontSizeSmall:"calc(0.92 * 13px)",fontSizeXSmall:"calc(0.75 * 13px)",fontLineHeightBase:"1.4",fontWeight:"normal",fontWeightHeading:"600",gridBase:"4px",cardBorderRadius:"2px",cardPaddingXSmall:`${Ce(2)}`,cardPaddingSmall:`${Ce(4)}`,cardPaddingMedium:`${Ce(4)} ${Ce(6)}`,cardPaddingLarge:`${Ce(6)} ${Ce(8)}`,elevationXSmall:"0 0.7px 1px rgba(0, 0, 0, 0.1), 0 1.2px 1.7px -0.2px rgba(0, 0, 0, 0.1), 0 2.3px 3.3px -0.5px rgba(0, 0, 0, 0.1)",elevationSmall:"0 0.7px 1px 0 rgba(0, 0, 0, 0.12), 0 2.2px 3.7px -0.2px rgba(0, 0, 0, 0.12), 0 5.3px 7.3px -0.5px rgba(0, 0, 0, 0.12)",elevationMedium:"0 0.7px 1px 0 rgba(0, 0, 0, 0.14), 0 4.2px 5.7px -0.2px rgba(0, 0, 0, 0.14), 0 7.3px 9.3px -0.5px rgba(0, 0, 0, 0.14)",elevationLarge:"0 0.7px 1px rgba(0, 0, 0, 0.15), 0 2.7px 3.8px -0.2px rgba(0, 0, 0, 0.15), 0 5.5px 7.8px -0.3px rgba(0, 0, 0, 0.15), 0.1px 11.5px 16.4px -0.5px rgba(0, 0, 0, 0.15)",surfaceBackgroundColor:qe.white,surfaceBackgroundSubtleColor:"#F3F3F3",surfaceBackgroundTintColor:"#F5F5F5",surfaceBorderColor:"rgba(0, 0, 0, 0.1)",surfaceBorderBoldColor:"rgba(0, 0, 0, 0.15)",surfaceBorderSubtleColor:"rgba(0, 0, 0, 0.05)",surfaceBackgroundTertiaryColor:qe.white,surfaceColor:qe.white,transitionDuration:"200ms",transitionDurationFast:"160ms",transitionDurationFaster:"120ms",transitionDurationFastest:"100ms",transitionTimingFunction:"cubic-bezier(0.08, 0.52, 0.52, 1)",transitionTimingFunctionControl:"cubic-bezier(0.12, 0.8, 0.32, 1)"}),rae={name:"9amh4a",styles:"font-size:11px;font-weight:500;line-height:1.4;text-transform:uppercase"},TL=O.createContext({}),sae=()=>O.useContext(TL);function KVe({value:e}){const t=sae(),n=O.useRef(e);return yL(()=>{J1(n.current,e)&&n.current!==e&&globalThis.SCRIPT_DEBUG===!0&&Xt(`Please memoize your context: ${JSON.stringify(e)}`)},[e]),O.useMemo(()=>Wne(t??{},e??{},{isMergeableObject:Pz}),[t,e])}const YVe=({children:e,value:t})=>{const n=KVe({value:t});return a.jsx(TL.Provider,{value:n,children:e})},O3=O.memo(YVe),ZVe="data-wp-component",QVe="data-wp-c16t",vb="__contextSystemKey__";function JVe(e){return`components-${Us(e)}`}const iae=ps(JVe);function Qt(e,t){return cae(e,t,{forwardsRef:!0})}function aae(e,t){return cae(e,t)}function cae(e,t,n){const o=n?.forwardsRef?O.forwardRef(e):e;typeof t>"u"&&globalThis.SCRIPT_DEBUG===!0&&Xt("contextConnect: Please provide a namespace");let r=o[vb]||[t];return Array.isArray(t)&&(r=[...r,...t]),typeof t=="string"&&(r=[...r,t]),Object.assign(o,{[vb]:[...new Set(r)],displayName:t,selector:`.${iae(t)}`})}function eU(e){if(!e)return[];let t=[];return e[vb]&&(t=e[vb]),e.type&&e.type[vb]&&(t=e.type[vb]),t}function lae(e,t){return e?typeof t=="string"?eU(e).includes(t):Array.isArray(t)?t.some(n=>eU(e).includes(n)):!1:!1}function eHe(e){return{[ZVe]:e}}function tHe(){return{[QVe]:!0}}function Ut(e,t){const n=sae();typeof t>"u"&&globalThis.SCRIPT_DEBUG===!0&&Xt("useContextSystem: Please provide a namespace");const o=n?.[t]||{},r={...tHe(),...eHe(t)},{_overrides:s,...i}=o,c=Object.entries(i).length?Object.assign({},i,e):e,u=x0()(iae(t),e.className),d=typeof c.renderChildren=="function"?c.renderChildren(c):c.children;for(const p in c)r[p]=c[p];for(const p in s)r[p]=s[p];return d!==void 0&&(r.children=d),r.className=u,r}const nHe={border:0,clip:"rect(1px, 1px, 1px, 1px)",WebkitClipPath:"inset( 50% )",clipPath:"inset( 50% )",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",wordWrap:"normal"};var oHe=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,rHe=Yie(function(e){return oHe.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),sHe=rHe,iHe=function(t){return t!=="theme"},tU=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?sHe:iHe},nU=function(t,n,o){var r;if(n){var s=n.shouldForwardProp;r=t.__emotion_forwardProp&&s?function(i){return t.__emotion_forwardProp(i)&&s(i)}:s}return typeof r!="function"&&o&&(r=t.__emotion_forwardProp),r},aHe=!1,cHe=function(t){var n=t.cache,o=t.serialized,r=t.isStringTag;return nae(n,o,r),xVe(function(){return RL(n,o,r)}),null},we=function e(t,n){var o=t.__emotion_real===t,r=o&&t.__emotion_base||t,s,i;n!==void 0&&(s=n.label,i=n.target);var c=nU(t,n,o),l=c||tU(r),u=!l("as");return function(){var d=arguments,p=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&p.push("label:"+s+";"),d[0]==null||d[0].raw===void 0)p.push.apply(p,d);else{p.push(d[0][0]);for(var f=d.length,b=1;b-1?n:void 0}const hHe=({size:e=92})=>ke("direction:ltr;display:grid;grid-template-columns:repeat( 3, 1fr );grid-template-rows:repeat( 3, 1fr );box-sizing:border-box;width:",e,"px;aspect-ratio:1;border-radius:",Se.radiusMedium,";outline:none;","");var mHe={name:"e0dnmk",styles:"cursor:pointer"};const MHe=we("div",{target:"e1r95csn3"})(hHe," border:1px solid transparent;",e=>e.disablePointerEvents?ke("",""):mHe,";"),gHe=we("div",{target:"e1r95csn2"})({name:"1fbxn64",styles:"grid-column:1/-1;box-sizing:border-box;display:grid;grid-template-columns:repeat( 3, 1fr )"}),Zy=we("span",{target:"e1r95csn1"})({name:"e2kws5",styles:"position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;margin:0;padding:0;appearance:none;border:none;outline:none"}),oU=6,zHe=we("span",{target:"e1r95csn0"})("display:block;contain:strict;box-sizing:border-box;width:",oU,"px;aspect-ratio:1;margin:auto;color:",qe.theme.gray[400],";border:",oU/2,"px solid currentColor;",Zy,"[data-active-item] &{color:",qe.gray[900],";transform:scale( calc( 5 / 3 ) );}",Zy,":not([data-active-item]):hover &{color:",qe.theme.accent,";}",Zy,"[data-focus-visible] &{outline:1px solid ",qe.theme.accent,";outline-offset:1px;}@media not ( prefers-reduced-motion ){transition-property:color,transform;transition-duration:120ms;transition-timing-function:linear;}");function OHe({id:e,value:t,...n}){return a.jsx(W1,{text:pHe[t],children:a.jsxs(hi.Item,{id:e,render:a.jsx(Zy,{...n,role:"gridcell"}),children:[a.jsx(Kt,{children:t}),a.jsx(zHe,{role:"presentation"})]})})}const sM=24,iM=7,rU=(sM-3*iM)/2,AHe=2,yHe=4;function vHe({className:e,disablePointerEvents:t=!0,size:n,width:o,height:r,style:s={},value:i="center",...c}){var l,u;return a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${sM} ${sM}`,width:(l=n??o)!==null&&l!==void 0?l:sM,height:(u=n??r)!==null&&u!==void 0?u:sM,role:"presentation",className:$("component-alignment-matrix-control-icon",e),style:{pointerEvents:t?"none":void 0,...s},...c,children:EL.map((d,p)=>{const f=bHe(i)===p?yHe:AHe;return a.jsx($1,{x:rU+p%3*iM+(iM-f)/2,y:rU+Math.floor(p/3)*iM+(iM-f)/2,width:f,height:f,fill:"currentColor"},d)})})}function dae({className:e,id:t,label:n=m("Alignment Matrix Control"),defaultValue:o="center center",value:r,onChange:s,width:i=92,...c}){const l=He(dae,"alignment-matrix-control",t),u=O.useCallback(p=>{const f=fHe(l,p);f&&s?.(f)},[l,s]),d=$("component-alignment-matrix-control",e);return a.jsx(hi,{defaultActiveId:kq(l,o),activeId:kq(l,r),setActiveId:u,rtl:ft(),render:a.jsx(MHe,{...c,"aria-label":n,className:d,id:l,role:"grid",size:i}),children:uae.map((p,f)=>a.jsx(hi.Row,{render:a.jsx(gHe,{role:"row"}),children:p.map(b=>a.jsx(OHe,{id:kq(l,b),value:b},b))},f))})}const sU=Object.assign(dae,{Icon:Object.assign(vHe,{displayName:"AlignmentMatrixControl.Icon"})});function xHe(e){return e==="appear"?"top":"left"}function pae(e){if(e.type==="loading")return"components-animate__loading";const{type:t,origin:n=xHe(t)}=e;if(t==="appear"){const[o,r="center"]=n.split(" ");return $("components-animate__appear",{["is-from-"+r]:r!=="center",["is-from-"+o]:o!=="middle"})}if(t==="slide-in")return $("components-animate__slide-in","is-from-"+n)}const NL=O.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),B2=O.createContext({}),N_=O.createContext(null),LL=typeof window<"u",jL=LL?O.useLayoutEffect:O.useEffect,fae=O.createContext({strict:!1}),L_=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),_He="framerAppearId",bae="data-"+L_(_He),wHe={skipAnimations:!1,useManualTiming:!1};function kHe(e){let t=new Set,n=new Set,o=!1,r=!1;const s=new WeakSet;let i={delta:0,timestamp:0,isProcessing:!1};function c(u){s.has(u)&&(l.schedule(u),e()),u(i)}const l={schedule:(u,d=!1,p=!1)=>{const b=p&&o?t:n;return d&&s.add(u),b.has(u)||b.add(u),u},cancel:u=>{n.delete(u),s.delete(u)},process:u=>{if(i=u,o){r=!0;return}o=!0,[t,n]=[n,t],n.clear(),t.forEach(c),o=!1,r&&(r=!1,l.process(u))}};return l}const dA=["read","resolveKeyframes","update","preRender","render","postRender"],qHe=40;function hae(e,t){let n=!1,o=!0;const r={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,i=dA.reduce((y,x)=>(y[x]=kHe(s),y),{}),{read:c,resolveKeyframes:l,update:u,preRender:d,render:p,postRender:f}=i,b=()=>{const y=performance.now();n=!1,r.delta=o?1e3/60:Math.max(Math.min(y-r.timestamp,qHe),1),r.timestamp=y,r.isProcessing=!0,c.process(r),l.process(r),u.process(r),d.process(r),p.process(r),f.process(r),r.isProcessing=!1,n&&t&&(o=!1,e(b))},h=()=>{n=!0,o=!0,r.isProcessing||e(b)};return{schedule:dA.reduce((y,x)=>{const v=i[x];return y[x]=(M,A=!1,_=!1)=>(n||h(),v.schedule(M,A,_)),y},{}),cancel:y=>{for(let x=0;x{p&&p.update(n,l)});const b=n[bae],h=O.useRef(!!b&&!window.MotionHandoffIsComplete&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,b)));return jL(()=>{p&&(p.updateFeatures(),PL.render(p.render),h.current&&p.animationState&&p.animationState.animateChanges())}),O.useEffect(()=>{p&&(!h.current&&p.animationState&&p.animationState.animateChanges(),h.current=!1,iU||(iU=!0,queueMicrotask(CHe)))}),p}function CHe(){window.MotionHandoffIsComplete=!0}function RHe(e,t,n,o){const{layoutId:r,layout:s,drag:i,dragConstraints:c,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Mae(e.parent)),e.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!i||c&&xb(c),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:o,layoutScroll:l,layoutRoot:u})}function Mae(e){if(e)return e.options.allowProjection!==!1?e.projection:Mae(e.parent)}function WHe(e,t,n){return O.useCallback(o=>{o&&e.mount&&e.mount(o),t&&(o?t.mount(o):t.unmount()),n&&(typeof n=="function"?n(o):xb(n)&&(n.current=o))},[t])}function Hg(e){return typeof e=="string"||Array.isArray(e)}function Ug(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const IL=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],DL=["initial",...IL];function j_(e){return Ug(e.animate)||DL.some(t=>Hg(e[t]))}function gae(e){return!!(j_(e)||e.variants)}function THe(e,t){if(j_(e)){const{initial:n,animate:o}=e;return{initial:n===!1||Hg(n)?n:void 0,animate:Hg(o)?o:void 0}}return e.inherit!==!1?t:{}}function EHe(e){const{initial:t,animate:n}=THe(e,O.useContext(B2));return O.useMemo(()=>({initial:t,animate:n}),[aU(t),aU(n)])}function aU(e){return Array.isArray(e)?e.join(" "):e}const cU={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},N2={};for(const e in cU)N2[e]={isEnabled:t=>cU[e].some(n=>!!t[n])};function BHe(e){for(const t in e)N2[t]={...N2[t],...e[t]}}const Xg=O.createContext({}),NHe=Symbol.for("motionComponentSymbol"),Lo=e=>e;let U8=Lo;function LHe({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:o,Component:r}){e&&BHe(e);function s(c,l){let u;const d={...O.useContext(NL),...c,layoutId:jHe(c)},{isStatic:p}=d,f=EHe(c),b=o(c,p);if(!p&&LL){PHe();const h=IHe(d);u=h.MeasureLayout,f.visualElement=SHe(r,b,d,t,h.ProjectionNode)}return a.jsxs(B2.Provider,{value:f,children:[u&&f.visualElement?a.jsx(u,{visualElement:f.visualElement,...d}):null,n(r,c,WHe(b,f.visualElement,l),b,p,f.visualElement)]})}const i=O.forwardRef(s);return i[NHe]=r,i}function jHe({layoutId:e}){const t=O.useContext(Xg).id;return t&&e!==void 0?t+"-"+e:e}function PHe(e,t){O.useContext(fae).strict}function IHe(e){const{drag:t,layout:n}=N2;if(!t&&!n)return{};const o={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function DHe(e){function t(o,r={}){return LHe(e(o,r))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(o,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const FHe=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function FL(e){return typeof e!="string"||e.includes("-")?!1:!!(FHe.indexOf(e)>-1||/[A-Z]/u.test(e))}const jv={};function $He(e){Object.assign(jv,e)}const A3=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],bd=new Set(A3);function zae(e,{layout:t,layoutId:n}){return bd.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!jv[e]||e==="opacity")}const To=e=>!!(e&&e.getVelocity),Oae=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Hu=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},jM={...Sh,transform:e=>Hu(0,1,e)},pA={...Sh,default:1},PM=e=>Math.round(e*1e5)/1e5,$L=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,VHe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,HHe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function y3(e){return typeof e=="string"}function UHe(e){return e==null}const v3=e=>({test:t=>y3(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Il=v3("deg"),Wa=v3("%"),jt=v3("px"),XHe=v3("vh"),GHe=v3("vw"),lU={...Wa,parse:e=>Wa.parse(e)/100,transform:e=>Wa.transform(e*100)},uU={...Sh,transform:Math.round},VL={borderWidth:jt,borderTopWidth:jt,borderRightWidth:jt,borderBottomWidth:jt,borderLeftWidth:jt,borderRadius:jt,radius:jt,borderTopLeftRadius:jt,borderTopRightRadius:jt,borderBottomRightRadius:jt,borderBottomLeftRadius:jt,width:jt,maxWidth:jt,height:jt,maxHeight:jt,size:jt,top:jt,right:jt,bottom:jt,left:jt,padding:jt,paddingTop:jt,paddingRight:jt,paddingBottom:jt,paddingLeft:jt,margin:jt,marginTop:jt,marginRight:jt,marginBottom:jt,marginLeft:jt,rotate:Il,rotateX:Il,rotateY:Il,rotateZ:Il,scale:pA,scaleX:pA,scaleY:pA,scaleZ:pA,skew:Il,skewX:Il,skewY:Il,distance:jt,translateX:jt,translateY:jt,translateZ:jt,x:jt,y:jt,z:jt,perspective:jt,transformPerspective:jt,opacity:jM,originX:lU,originY:lU,originZ:jt,zIndex:uU,backgroundPositionX:jt,backgroundPositionY:jt,fillOpacity:jM,strokeOpacity:jM,numOctaves:uU},KHe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},YHe=A3.length;function ZHe(e,t,n){let o="",r=!0;for(let s=0;st=>typeof t=="string"&&t.startsWith(e),yae=Aae("--"),QHe=Aae("var(--"),HL=e=>QHe(e)?JHe.test(e.split("/*")[0].trim()):!1,JHe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function UL(e,t,n){const{style:o,vars:r,transformOrigin:s}=e;let i=!1,c=!1;for(const l in t){const u=t[l];if(bd.has(l)){i=!0;continue}else if(yae(l)){r[l]=u;continue}else{const d=Oae(u,VL[l]);l.startsWith("origin")?(c=!0,s[l]=d):o[l]=d}}if(t.transform||(i||n?o.transform=ZHe(t,e.transform,n):o.transform&&(o.transform="none")),c){const{originX:l="50%",originY:u="50%",originZ:d=0}=s;o.transformOrigin=`${l} ${u} ${d}`}}const XL=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function vae(e,t,n){for(const o in t)!To(t[o])&&!zae(o,n)&&(e[o]=t[o])}function eUe({transformTemplate:e},t){return O.useMemo(()=>{const n=XL();return UL(n,t,e),Object.assign({},n.vars,n.style)},[t])}function tUe(e,t){const n=e.style||{},o={};return vae(o,n,e),Object.assign(o,eUe(e,t)),o}function nUe(e,t){const n={},o=tUe(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const oUe=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Pv(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||oUe.has(e)}let xae=e=>!Pv(e);function rUe(e){e&&(xae=t=>t.startsWith("on")?!Pv(t):e(t))}try{rUe(require("@emotion/is-prop-valid").default)}catch{}function sUe(e,t,n){const o={};for(const r in e)r==="values"&&typeof e.values=="object"||(xae(r)||n===!0&&Pv(r)||!t&&!Pv(r)||e.draggable&&r.startsWith("onDrag"))&&(o[r]=e[r]);return o}function dU(e,t,n){return typeof e=="string"?e:jt.transform(t+n*e)}function iUe(e,t,n){const o=dU(t,e.x,e.width),r=dU(n,e.y,e.height);return`${o} ${r}`}const aUe={offset:"stroke-dashoffset",array:"stroke-dasharray"},cUe={offset:"strokeDashoffset",array:"strokeDasharray"};function lUe(e,t,n=1,o=0,r=!0){e.pathLength=1;const s=r?aUe:cUe;e[s.offset]=jt.transform(-o);const i=jt.transform(t),c=jt.transform(n);e[s.array]=`${i} ${c}`}function GL(e,{attrX:t,attrY:n,attrScale:o,originX:r,originY:s,pathLength:i,pathSpacing:c=1,pathOffset:l=0,...u},d,p){if(UL(e,u,p),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:b,dimensions:h}=e;f.transform&&(h&&(b.transform=f.transform),delete f.transform),h&&(r!==void 0||s!==void 0||b.transform)&&(b.transformOrigin=iUe(h,r!==void 0?r:.5,s!==void 0?s:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),o!==void 0&&(f.scale=o),i!==void 0&&lUe(f,i,c,l,!1)}const _ae=()=>({...XL(),attrs:{}}),KL=e=>typeof e=="string"&&e.toLowerCase()==="svg";function uUe(e,t,n,o){const r=O.useMemo(()=>{const s=_ae();return GL(s,t,KL(o),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};vae(s,e.style,e),r.style={...s,...r.style}}return r}function dUe(e=!1){return(n,o,r,{latestValues:s},i)=>{const l=(FL(n)?uUe:nUe)(o,s,i,n),u=sUe(o,typeof n=="string",e),d=n!==O.Fragment?{...u,...l,ref:r}:{},{children:p}=o,f=O.useMemo(()=>To(p)?p.get():p,[p]);return O.createElement(n,{...d,children:f})}}function wae(e,{style:t,vars:n},o,r){Object.assign(e.style,t,r&&r.getProjectionStyles(o));for(const s in n)e.style.setProperty(s,n[s])}const kae=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function qae(e,t,n,o){wae(e,t,void 0,o);for(const r in t.attrs)e.setAttribute(kae.has(r)?r:L_(r),t.attrs[r])}function YL(e,t,n){var o;const{style:r}=e,s={};for(const i in r)(To(r[i])||t.style&&To(t.style[i])||zae(i,e)||((o=n?.getValue(i))===null||o===void 0?void 0:o.liveStyle)!==void 0)&&(s[i]=r[i]);return n&&r&&typeof r.willChange=="string"&&(n.applyWillChange=!1),s}function Sae(e,t,n){const o=YL(e,t,n);for(const r in e)if(To(e[r])||To(t[r])){const s=A3.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;o[s]=e[r]}return o}function pU(e){const t=[{},{}];return e?.values.forEach((n,o)=>{t[0][o]=n.get(),t[1][o]=n.getVelocity()}),t}function ZL(e,t,n,o){if(typeof t=="function"){const[r,s]=pU(o);t=t(n!==void 0?n:e.custom,r,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,s]=pU(o);t=t(n!==void 0?n:e.custom,r,s)}return t}function QL(e){const t=O.useRef(null);return t.current===null&&(t.current=e()),t.current}const X8=e=>Array.isArray(e),pUe=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),fUe=e=>X8(e)?e[e.length-1]||0:e;function Qy(e){const t=To(e)?e.get():e;return pUe(t)?t.toValue():t}const Cae=new Set(["opacity","clipPath","filter","transform"]);function Rae(e){if(bd.has(e))return"transform";if(Cae.has(e))return L_(e)}function P_(e,t){e.indexOf(t)===-1&&e.push(t)}function I_(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function bUe({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:o},r,s,i,c){const l={latestValues:mUe(r,s,i,c?!1:e,t),renderState:n()};return o&&(l.mount=u=>o(r,u,l)),l}const Wae=e=>(t,n)=>{const o=O.useContext(B2),r=O.useContext(N_),s=()=>bUe(e,t,o,r,n);return n?s():QL(s)};function hUe(e,t){const n=Rae(t);n&&P_(e,n)}function fU(e,t,n){const o=Array.isArray(t)?t:[t];for(let r=0;r{for(const x in z){let v=z[x];if(Array.isArray(v)){const M=h?v.length-1:0;v=v[M]}v!==null&&(i[x]=v)}for(const x in y)i[x]=y[x]}),l&&(p&&d!==!1&&!Ug(p)&&fU(e,p,z=>{for(const y in z)hUe(c,y)}),c.length&&(i.willChange=c.join(","))),i}const{schedule:K0,cancel:tl,state:ao,steps:qq}=hae(typeof requestAnimationFrame<"u"?requestAnimationFrame:Lo,!0),MUe={useVisualState:Wae({scrapeMotionValuesFromProps:Sae,createRenderState:_ae,onMount:(e,t,{renderState:n,latestValues:o})=>{K0.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),K0.render(()=>{GL(n,o,KL(t.tagName),e.transformTemplate),qae(t,n)})}})},gUe={useVisualState:Wae({applyWillChange:!0,scrapeMotionValuesFromProps:YL,createRenderState:XL})};function zUe(e,{forwardMotionProps:t=!1},n,o){return{...FL(e)?MUe:gUe,preloadedFeatures:n,useRender:dUe(t),createVisualElement:o,Component:e}}function kc(e,t,n,o={passive:!0}){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n)}const Tae=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function D_(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const OUe=e=>t=>Tae(t)&&e(t,D_(t));function Bc(e,t,n,o){return kc(e,t,OUe(n),o)}const AUe=(e,t)=>n=>t(e(n)),Nc=(...e)=>e.reduce(AUe);function Eae(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const bU=Eae("dragHorizontal"),hU=Eae("dragVertical");function Bae(e){let t=!1;if(e==="y")t=hU();else if(e==="x")t=bU();else{const n=bU(),o=hU();n&&o?t=()=>{n(),o()}:(n&&n(),o&&o())}return t}function Nae(){const e=Bae(!0);return e?(e(),!1):!0}class hd{constructor(t){this.isMounted=!1,this.node=t}update(){}}function mU(e,t){const n=t?"pointerenter":"pointerleave",o=t?"onHoverStart":"onHoverEnd",r=(s,i)=>{if(s.pointerType==="touch"||Nae())return;const c=e.getProps();e.animationState&&c.whileHover&&e.animationState.setActive("whileHover",t);const l=c[o];l&&K0.postRender(()=>l(s,i))};return Bc(e.current,n,r,{passive:!e.getProps()[o]})}class yUe extends hd{mount(){this.unmount=Nc(mU(this.node,!0),mU(this.node,!1))}unmount(){}}class vUe extends hd{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Nc(kc(this.node.current,"focus",()=>this.onFocus()),kc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Lae=(e,t)=>t?e===t?!0:Lae(e,t.parentElement):!1;function Sq(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,D_(n))}class xUe extends hd{constructor(){super(...arguments),this.removeStartListeners=Lo,this.removeEndListeners=Lo,this.removeAccessibleListeners=Lo,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const o=this.node.getProps(),s=Bc(window,"pointerup",(c,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:d,globalTapTarget:p}=this.node.getProps(),f=!p&&!Lae(this.node.current,c.target)?d:u;f&&K0.update(()=>f(c,l))},{passive:!(o.onTap||o.onPointerUp)}),i=Bc(window,"pointercancel",(c,l)=>this.cancelPress(c,l),{passive:!(o.onTapCancel||o.onPointerCancel)});this.removeEndListeners=Nc(s,i),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=s=>{if(s.key!=="Enter"||this.isPressing)return;const i=c=>{c.key!=="Enter"||!this.checkPressEnd()||Sq("up",(l,u)=>{const{onTap:d}=this.node.getProps();d&&K0.postRender(()=>d(l,u))})};this.removeEndListeners(),this.removeEndListeners=kc(this.node.current,"keyup",i),Sq("down",(c,l)=>{this.startPress(c,l)})},n=kc(this.node.current,"keydown",t),o=()=>{this.isPressing&&Sq("cancel",(s,i)=>this.cancelPress(s,i))},r=kc(this.node.current,"blur",o);this.removeAccessibleListeners=Nc(n,r)}}startPress(t,n){this.isPressing=!0;const{onTapStart:o,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),o&&K0.postRender(()=>o(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Nae()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:o}=this.node.getProps();o&&K0.postRender(()=>o(t,n))}mount(){const t=this.node.getProps(),n=Bc(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),o=kc(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Nc(n,o)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const G8=new WeakMap,Cq=new WeakMap,_Ue=e=>{const t=G8.get(e.target);t&&t(e)},wUe=e=>{e.forEach(_Ue)};function kUe({root:e,...t}){const n=e||document;Cq.has(n)||Cq.set(n,{});const o=Cq.get(n),r=JSON.stringify(t);return o[r]||(o[r]=new IntersectionObserver(wUe,{root:e,...t})),o[r]}function qUe(e,t,n){const o=kUe(t);return G8.set(e,n),o.observe(e),()=>{G8.delete(e),o.unobserve(e)}}const SUe={some:0,all:1};class CUe extends hd{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:o,amount:r="some",once:s}=t,i={root:n?n.current:void 0,rootMargin:o,threshold:typeof r=="number"?r:SUe[r]},c=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:p}=this.node.getProps(),f=u?d:p;f&&f(l)};return qUe(this.node.current,i,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(RUe(t,n))&&this.startObserver()}unmount(){}}function RUe({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const WUe={inView:{Feature:CUe},tap:{Feature:xUe},focus:{Feature:vUe},hover:{Feature:yUe}};function jae(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let o=0;oe*1e3,jc=e=>e/1e3,TUe={type:"spring",stiffness:500,damping:25,restSpeed:10},EUe=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),BUe={type:"keyframes",duration:.8},NUe={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},LUe=(e,{keyframes:t})=>t.length>2?BUe:bd.has(e)?e.startsWith("scale")?EUe(t[1]):TUe:NUe;function jUe({when:e,delay:t,delayChildren:n,staggerChildren:o,staggerDirection:r,repeat:s,repeatType:i,repeatDelay:c,from:l,elapsed:u,...d}){return!!Object.keys(d).length}function JL(e,t){return e[t]||e.default||e}const PUe=e=>e!==null;function $_(e,{repeat:t,repeatType:n="loop"},o){const r=e.filter(PUe),s=t&&n!=="loop"&&t%2===1?0:r.length-1;return!s||o===void 0?r[s]:o}let Jy;function IUe(){Jy=void 0}const yu={now:()=>(Jy===void 0&&yu.set(ao.isProcessing||wHe.useManualTiming?ao.timestamp:performance.now()),Jy),set:e=>{Jy=e,queueMicrotask(IUe)}},Pae=e=>/^0[^.\s]+$/u.test(e);function DUe(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Pae(e):!0}const Iae=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),FUe=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function $Ue(e){const t=FUe.exec(e);if(!t)return[,];const[,n,o,r]=t;return[`--${n??o}`,r]}function Dae(e,t,n=1){const[o,r]=$Ue(e);if(!o)return;const s=window.getComputedStyle(t).getPropertyValue(o);if(s){const i=s.trim();return Iae(i)?parseFloat(i):i}return HL(r)?Dae(r,t,n+1):r}const VUe=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),MU=e=>e===Sh||e===jt,gU=(e,t)=>parseFloat(e.split(", ")[t]),zU=(e,t)=>(n,{transform:o})=>{if(o==="none"||!o)return 0;const r=o.match(/^matrix3d\((.+)\)$/u);if(r)return gU(r[1],t);{const s=o.match(/^matrix\((.+)\)$/u);return s?gU(s[1],e):0}},HUe=new Set(["x","y","z"]),UUe=A3.filter(e=>!HUe.has(e));function XUe(e){const t=[];return UUe.forEach(n=>{const o=e.getValue(n);o!==void 0&&(t.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))}),t}const L2={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:zU(4,13),y:zU(5,14)};L2.translateX=L2.x;L2.translateY=L2.y;const Fae=e=>t=>t.test(e),GUe={test:e=>e==="auto",parse:e=>e},$ae=[Sh,jt,Wa,Il,GHe,XHe,GUe],OU=e=>$ae.find(Fae(e)),dp=new Set;let K8=!1,Y8=!1;function Vae(){if(Y8){const e=Array.from(dp).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),n=new Map;t.forEach(o=>{const r=XUe(o);r.length&&(n.set(o,r),o.render())}),e.forEach(o=>o.measureInitialState()),t.forEach(o=>{o.render();const r=n.get(o);r&&r.forEach(([s,i])=>{var c;(c=o.getValue(s))===null||c===void 0||c.set(i)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Y8=!1,K8=!1,dp.forEach(e=>e.complete()),dp.clear()}function Hae(){dp.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Y8=!0)})}function KUe(){Hae(),Vae()}class e7{constructor(t,n,o,r,s,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=o,this.motionValue=r,this.element=s,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(dp.add(this),K8||(K8=!0,K0.read(Hae),K0.resolveKeyframes(Vae))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:o,motionValue:r}=this;for(let s=0;sn=>!!(y3(n)&&HHe.test(n)&&n.startsWith(e)||t&&!UHe(n)&&Object.prototype.hasOwnProperty.call(n,t)),Uae=(e,t,n)=>o=>{if(!y3(o))return o;const[r,s,i,c]=o.match($L);return{[e]:parseFloat(r),[t]:parseFloat(s),[n]:parseFloat(i),alpha:c!==void 0?parseFloat(c):1}},YUe=e=>Hu(0,255,e),Rq={...Sh,transform:e=>Math.round(YUe(e))},tp={test:t7("rgb","red"),parse:Uae("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:o=1})=>"rgba("+Rq.transform(e)+", "+Rq.transform(t)+", "+Rq.transform(n)+", "+PM(jM.transform(o))+")"};function ZUe(e){let t="",n="",o="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),o=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),o=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,o+=o,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}}const Z8={test:t7("#"),parse:ZUe,transform:tp.transform},_b={test:t7("hsl","hue"),parse:Uae("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+Wa.transform(PM(t))+", "+Wa.transform(PM(n))+", "+PM(jM.transform(o))+")"},Co={test:e=>tp.test(e)||Z8.test(e)||_b.test(e),parse:e=>tp.test(e)?tp.parse(e):_b.test(e)?_b.parse(e):Z8.parse(e),transform:e=>y3(e)?e:e.hasOwnProperty("red")?tp.transform(e):_b.transform(e)};function QUe(e){var t,n;return isNaN(e)&&y3(e)&&(((t=e.match($L))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(VHe))===null||n===void 0?void 0:n.length)||0)>0}const Xae="number",Gae="color",JUe="var",eXe="var(",AU="${}",tXe=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Gg(e){const t=e.toString(),n=[],o={color:[],number:[],var:[]},r=[];let s=0;const c=t.replace(tXe,l=>(Co.test(l)?(o.color.push(s),r.push(Gae),n.push(Co.parse(l))):l.startsWith(eXe)?(o.var.push(s),r.push(JUe),n.push(l)):(o.number.push(s),r.push(Xae),n.push(parseFloat(l))),++s,AU)).split(AU);return{values:n,split:c,indexes:o,types:r}}function Kae(e){return Gg(e).values}function Yae(e){const{split:t,types:n}=Gg(e),o=t.length;return r=>{let s="";for(let i=0;itypeof e=="number"?0:e;function oXe(e){const t=Kae(e);return Yae(e)(t.map(nXe))}const Uu={test:QUe,parse:Kae,createTransformer:Yae,getAnimatableNone:oXe},rXe=new Set(["brightness","contrast","saturate","opacity"]);function sXe(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[o]=n.match($L)||[];if(!o)return e;const r=n.replace(o,"");let s=rXe.has(t)?1:0;return o!==n&&(s*=100),t+"("+s+r+")"}const iXe=/\b([a-z-]*)\(.*?\)/gu,Q8={...Uu,getAnimatableNone:e=>{const t=e.match(iXe);return t?t.map(sXe).join(" "):e}},aXe={...VL,color:Co,backgroundColor:Co,outlineColor:Co,fill:Co,stroke:Co,borderColor:Co,borderTopColor:Co,borderRightColor:Co,borderBottomColor:Co,borderLeftColor:Co,filter:Q8,WebkitFilter:Q8},n7=e=>aXe[e];function Zae(e,t){let n=n7(e);return n!==Q8&&(n=Uu),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const cXe=new Set(["auto","none","0"]);function lXe(e,t,n){let o=0,r;for(;o{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function Jae(e){let t;return()=>(t===void 0&&(t=e()),t)}const yU=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Uu.test(e)||e==="0")&&!e.startsWith("url("));function uXe(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n{this.resolveFinishedPromise=t})}}function tce(e,t){return t?e*(1e3/t):0}const pXe=5;function nce(e,t,n){const o=Math.max(t-pXe,0);return tce(n-e(o),t-o)}const Wq=.001,fXe=.01,bXe=10,hXe=.05,mXe=1;function MXe({duration:e=800,bounce:t=.25,velocity:n=0,mass:o=1}){let r,s,i=1-t;i=Hu(hXe,mXe,i),e=Hu(fXe,bXe,jc(e)),i<1?(r=u=>{const d=u*i,p=d*e,f=d-n,b=J8(u,i),h=Math.exp(-p);return Wq-f/b*h},s=u=>{const p=u*i*e,f=p*n+n,b=Math.pow(i,2)*Math.pow(u,2)*e,h=Math.exp(-p),g=J8(Math.pow(u,2),i);return(-r(u)+Wq>0?-1:1)*((f-b)*h)/g}):(r=u=>{const d=Math.exp(-u*e),p=(u-n)*e+1;return-Wq+d*p},s=u=>{const d=Math.exp(-u*e),p=(n-u)*(e*e);return d*p});const c=5/e,l=zXe(r,s,c);if(e=Lc(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*o;return{stiffness:u,damping:i*2*Math.sqrt(o*u),duration:e}}}const gXe=12;function zXe(e,t,n){let o=n;for(let r=1;re[n]!==void 0)}function yXe(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!vU(e,AXe)&&vU(e,OXe)){const n=MXe(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function oce({keyframes:e,restDelta:t,restSpeed:n,...o}){const r=e[0],s=e[e.length-1],i={done:!1,value:r},{stiffness:c,damping:l,mass:u,duration:d,velocity:p,isResolvedFromDuration:f}=yXe({...o,velocity:-jc(o.velocity||0)}),b=p||0,h=l/(2*Math.sqrt(c*u)),g=s-r,z=jc(Math.sqrt(c/u)),y=Math.abs(g)<5;n||(n=y?.01:2),t||(t=y?.005:.5);let x;if(h<1){const v=J8(z,h);x=M=>{const A=Math.exp(-h*z*M);return s-A*((b+h*z*g)/v*Math.sin(v*M)+g*Math.cos(v*M))}}else if(h===1)x=v=>s-Math.exp(-z*v)*(g+(b+z*g)*v);else{const v=z*Math.sqrt(h*h-1);x=M=>{const A=Math.exp(-h*z*M),_=Math.min(v*M,300);return s-A*((b+h*z*g)*Math.sinh(_)+v*g*Math.cosh(_))/v}}return{calculatedDuration:f&&d||null,next:v=>{const M=x(v);if(f)i.done=v>=d;else{let A=0;h<1&&(A=v===0?Lc(b):nce(x,v,M));const _=Math.abs(A)<=n,w=Math.abs(s-M)<=t;i.done=_&&w}return i.value=i.done?s:M,i}}}function xU({keyframes:e,velocity:t=0,power:n=.8,timeConstant:o=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:i,min:c,max:l,restDelta:u=.5,restSpeed:d}){const p=e[0],f={done:!1,value:p},b=k=>c!==void 0&&kl,h=k=>c===void 0?l:l===void 0||Math.abs(c-k)-g*Math.exp(-k/o),v=k=>y+x(k),M=k=>{const q=x(k),S=v(k);f.done=Math.abs(q)<=u,f.value=f.done?y:S};let A,_;const w=k=>{b(f.value)&&(A=k,_=oce({keyframes:[f.value,h(f.value)],velocity:nce(v,k,f.value),damping:r,stiffness:s,restDelta:u,restSpeed:d}))};return w(0),{calculatedDuration:null,next:k=>{let q=!1;return!_&&A===void 0&&(q=!0,M(k),w(k)),A!==void 0&&k>=A?_.next(k-A):(!q&&M(k),f)}}}const rce=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,vXe=1e-7,xXe=12;function _Xe(e,t,n,o,r){let s,i,c=0;do i=t+(n-t)/2,s=rce(i,o,r)-e,s>0?n=i:t=i;while(Math.abs(s)>vXe&&++c_Xe(s,0,1,e,n);return s=>s===0||s===1?s:rce(r(s),t,o)}const wXe=x3(.42,0,1,1),kXe=x3(0,0,.58,1),sce=x3(.42,0,.58,1),qXe=e=>Array.isArray(e)&&typeof e[0]!="number",ice=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ace=e=>t=>1-e(1-t),o7=e=>1-Math.sin(Math.acos(e)),cce=ace(o7),SXe=ice(o7),lce=x3(.33,1.53,.69,.99),r7=ace(lce),CXe=ice(r7),RXe=e=>(e*=2)<1?.5*r7(e):.5*(2-Math.pow(2,-10*(e-1))),_U={linear:Lo,easeIn:wXe,easeInOut:sce,easeOut:kXe,circIn:o7,circInOut:SXe,circOut:cce,backIn:r7,backInOut:CXe,backOut:lce,anticipate:RXe},wU=e=>{if(Array.isArray(e)){U8(e.length===4);const[t,n,o,r]=e;return x3(t,n,o,r)}else if(typeof e=="string")return U8(_U[e]!==void 0),_U[e];return e},Kg=(e,t,n)=>{const o=t-e;return o===0?1:(n-e)/o},$n=(e,t,n)=>e+(t-e)*n;function Tq(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function WXe({hue:e,saturation:t,lightness:n,alpha:o}){e/=360,t/=100,n/=100;let r=0,s=0,i=0;if(!t)r=s=i=n;else{const c=n<.5?n*(1+t):n+t-n*t,l=2*n-c;r=Tq(l,c,e+1/3),s=Tq(l,c,e),i=Tq(l,c,e-1/3)}return{red:Math.round(r*255),green:Math.round(s*255),blue:Math.round(i*255),alpha:o}}function Iv(e,t){return n=>n>0?t:e}const Eq=(e,t,n)=>{const o=e*e,r=n*(t*t-o)+o;return r<0?0:Math.sqrt(r)},TXe=[Z8,tp,_b],EXe=e=>TXe.find(t=>t.test(e));function kU(e){const t=EXe(e);if(!t)return!1;let n=t.parse(e);return t===_b&&(n=WXe(n)),n}const qU=(e,t)=>{const n=kU(e),o=kU(t);if(!n||!o)return Iv(e,t);const r={...n};return s=>(r.red=Eq(n.red,o.red,s),r.green=Eq(n.green,o.green,s),r.blue=Eq(n.blue,o.blue,s),r.alpha=$n(n.alpha,o.alpha,s),tp.transform(r))},eW=new Set(["none","hidden"]);function BXe(e,t){return eW.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function NXe(e,t){return n=>$n(e,t,n)}function s7(e){return typeof e=="number"?NXe:typeof e=="string"?HL(e)?Iv:Co.test(e)?qU:PXe:Array.isArray(e)?uce:typeof e=="object"?Co.test(e)?qU:LXe:Iv}function uce(e,t){const n=[...e],o=n.length,r=e.map((s,i)=>s7(s)(s,t[i]));return s=>{for(let i=0;i{for(const s in o)n[s]=o[s](r);return n}}function jXe(e,t){var n;const o=[],r={color:0,var:0,number:0};for(let s=0;s{const n=Uu.createTransformer(t),o=Gg(e),r=Gg(t);return o.indexes.var.length===r.indexes.var.length&&o.indexes.color.length===r.indexes.color.length&&o.indexes.number.length>=r.indexes.number.length?eW.has(e)&&!r.values.length||eW.has(t)&&!o.values.length?BXe(e,t):Nc(uce(jXe(o,r),r.values),n):Iv(e,t)};function dce(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?$n(e,t,n):s7(e)(e,t)}function IXe(e,t,n){const o=[],r=n||dce,s=e.length-1;for(let i=0;it[0];if(s===2&&e[0]===e[1])return()=>t[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const i=IXe(t,o,r),c=i.length,l=u=>{let d=0;if(c>1)for(;dl(Hu(e[0],e[s-1],u)):l}function FXe(e,t){const n=e[e.length-1];for(let o=1;o<=t;o++){const r=Kg(0,t,o);e.push($n(n,1,r))}}function $Xe(e){const t=[0];return FXe(t,e.length-1),t}function VXe(e,t){return e.map(n=>n*t)}function HXe(e,t){return e.map(()=>t||sce).splice(0,e.length-1)}function Dv({duration:e=300,keyframes:t,times:n,ease:o="easeInOut"}){const r=qXe(o)?o.map(wU):wU(o),s={done:!1,value:t[0]},i=VXe(n&&n.length===t.length?n:$Xe(t),e),c=DXe(i,t,{ease:Array.isArray(r)?r:HXe(t,r)});return{calculatedDuration:e,next:l=>(s.value=c(l),s.done=l>=e,s)}}const SU=2e4;function UXe(e){let t=0;const n=50;let o=e.next(t);for(;!o.done&&t=SU?1/0:t}const XXe=e=>{const t=({timestamp:n})=>e(n);return{start:()=>K0.update(t,!0),stop:()=>tl(t),now:()=>ao.isProcessing?ao.timestamp:yu.now()}},GXe={decay:xU,inertia:xU,tween:Dv,keyframes:Dv,spring:oce},KXe=e=>e/100;class i7 extends ece{constructor({KeyframeResolver:t=e7,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:o,motionValue:r,keyframes:s}=this.options,i=(c,l)=>this.onKeyframesResolved(c,l);o&&r&&r.owner?this.resolver=r.owner.resolveKeyframes(s,i,o,r):this.resolver=new t(s,i,o,r),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:o=0,repeatDelay:r=0,repeatType:s,velocity:i=0}=this.options,c=GXe[n]||Dv;let l,u;c!==Dv&&typeof t[0]!="number"&&(l=Nc(KXe,dce(t[0],t[1])),t=[0,100]);const d=c({...this.options,keyframes:t});s==="mirror"&&(u=c({...this.options,keyframes:[...t].reverse(),velocity:-i})),d.calculatedDuration===null&&(d.calculatedDuration=UXe(d));const{calculatedDuration:p}=d,f=p+r,b=f*(o+1)-r;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:p,resolvedDuration:f,totalDuration:b}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:o}=this;if(!o){const{keyframes:k}=this.options;return{done:!0,value:k[k.length-1]}}const{finalKeyframe:r,generator:s,mirroredGenerator:i,mapPercentToKeyframes:c,keyframes:l,calculatedDuration:u,totalDuration:d,resolvedDuration:p}=o;if(this.startTime===null)return s.next(0);const{delay:f,repeat:b,repeatType:h,repeatDelay:g,onUpdate:z}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const y=this.currentTime-f*(this.speed>=0?1:-1),x=this.speed>=0?y<0:y>d;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let v=this.currentTime,M=s;if(b){const k=Math.min(this.currentTime,d)/p;let q=Math.floor(k),S=k%1;!S&&k>=1&&(S=1),S===1&&q--,q=Math.min(q,b+1),!!(q%2)&&(h==="reverse"?(S=1-S,g&&(S-=g/p)):h==="mirror"&&(M=i)),v=Hu(0,1,S)*p}const A=x?{done:!1,value:l[0]}:M.next(v);c&&(A.value=c(A.value));let{done:_}=A;!x&&u!==null&&(_=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const w=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&_);return w&&r!==void 0&&(A.value=$_(l,this.options,r)),z&&z(A.value),w&&this.finish(),A}get duration(){const{resolved:t}=this;return t?jc(t.calculatedDuration):0}get time(){return jc(this.currentTime)}set time(t){t=Lc(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=jc(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=XXe,onPlay:n}=this.options;this.driver||(this.driver=t(r=>this.tick(r))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=o),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const pce=e=>Array.isArray(e)&&typeof e[0]=="number";function fce(e){return!!(!e||typeof e=="string"&&e in a7||pce(e)||Array.isArray(e)&&e.every(fce))}const aM=([e,t,n,o])=>`cubic-bezier(${e}, ${t}, ${n}, ${o})`,a7={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:aM([0,.65,.55,1]),circOut:aM([.55,0,1,.45]),backIn:aM([.31,.01,.66,-.59]),backOut:aM([.33,1.53,.69,.99])};function YXe(e){return bce(e)||a7.easeOut}function bce(e){if(e)return pce(e)?aM(e):Array.isArray(e)?e.map(YXe):a7[e]}function ZXe(e,t,n,{delay:o=0,duration:r=300,repeat:s=0,repeatType:i="loop",ease:c,times:l}={}){const u={[t]:n};l&&(u.offset=l);const d=bce(c);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:o,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:i==="reverse"?"alternate":"normal"})}const QXe=Jae(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Fv=10,JXe=2e4;function eGe(e){return e.type==="spring"||!fce(e.ease)}function tGe(e,t){const n=new i7({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let o={done:!1,value:e[0]};const r=[];let s=0;for(;!o.done&&sthis.onKeyframesResolved(s,i),n,o),this.resolver.scheduleResolve()}initPlayback(t,n){var o;let{duration:r=300,times:s,ease:i,type:c,motionValue:l,name:u}=this.options;if(!(!((o=l.owner)===null||o===void 0)&&o.current))return!1;if(eGe(this.options)){const{onComplete:p,onUpdate:f,motionValue:b,...h}=this.options,g=tGe(t,h);t=g.keyframes,t.length===1&&(t[1]=t[0]),r=g.duration,s=g.times,i=g.ease,c="keyframes"}const d=ZXe(l.owner.current,u,t,{...this.options,duration:r,times:s,ease:i});return d.startTime=yu.now(),this.pendingTimeline?(d.timeline=this.pendingTimeline,this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:p}=this.options;l.set($_(t,this.options,n)),p&&p(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:s,type:c,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return jc(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return jc(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:o}=n;o.currentTime=Lc(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:o}=n;o.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Lo;const{animation:o}=n;o.timeline=t,o.onfinish=null}return Lo}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:o,duration:r,type:s,ease:i,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:d,onComplete:p,...f}=this.options,b=new i7({...f,keyframes:o,duration:r,type:s,ease:i,times:c,isGenerator:!0}),h=Lc(this.time);u.setWithVelocity(b.sample(h-Fv).value,b.sample(h).value,Fv)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:o,repeatDelay:r,repeatType:s,damping:i,type:c}=t;return QXe()&&o&&Cae.has(o)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!r&&s!=="mirror"&&i!==0&&c!=="inertia"}}function nGe(e,t){let n;const o=()=>{const{currentTime:r}=t,i=(r===null?0:r.value)/100;n!==i&&e(i),n=i};return K0.update(o,!0),()=>tl(o)}const oGe=Jae(()=>window.ScrollTimeline!==void 0);class rGe{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let o=0;o{if(oGe()&&o.attachTimeline)o.attachTimeline(t);else return o.pause(),nGe(r=>{o.time=o.duration*r},t)});return()=>{n.forEach((o,r)=>{o&&o(),this.animations[r].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get duration(){let t=0;for(let n=0;nn[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const c7=(e,t,n,o={},r,s,i)=>c=>{const l=JL(o,e)||{},u=l.delay||o.delay||0;let{elapsed:d=0}=o;d=d-Lc(u);let p={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-d,onUpdate:b=>{t.set(b),l.onUpdate&&l.onUpdate(b)},onComplete:()=>{c(),l.onComplete&&l.onComplete(),i&&i()},onStop:i,name:e,motionValue:t,element:s?void 0:r};jUe(l)||(p={...p,...LUe(e,p)}),p.duration&&(p.duration=Lc(p.duration)),p.repeatDelay&&(p.repeatDelay=Lc(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let f=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(p.duration=0,p.delay===0&&(f=!0)),f&&!s&&t.get()!==void 0){const b=$_(p.keyframes,l);if(b!==void 0)return K0.update(()=>{p.onUpdate(b),p.onComplete()}),new rGe([])}return!s&&CU.supports(p)?new CU(p):new i7(p)};class l7{constructor(){this.subscriptions=[]}add(t){return P_(this.subscriptions,t),()=>I_(this.subscriptions,t)}notify(t,n,o){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,o);else for(let s=0;s!isNaN(parseFloat(e));class hce{constructor(t,n={}){this.version="11.3.24",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(o,r=!0)=>{const s=yu.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=yu.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=sGe(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new l7);const o=this.events[t].add(n);return t==="change"?()=>{o(),K0.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,o){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=yu.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>RU)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,RU);return tce(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Yg(e,t){return new hce(e,t)}function iGe(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Yg(n))}function aGe(e,t){const n=F_(e,t);let{transitionEnd:o={},transition:r={},...s}=n||{};s={...s,...o};for(const i in s){const c=fUe(s[i]);iGe(e,i,c)}}function mce(e){return e.getProps()[bae]}class cGe extends hce{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(t){const n=Rae(t);if(!n)return;const o=this.counts.get(n)||0;this.counts.set(n,o+1),o===0&&(this.output.push(n),this.update());let r=!1;return()=>{if(r)return;r=!0;const s=this.counts.get(n)-1;this.counts.set(n,s),s===0&&(I_(this.output,n),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}function lGe(e){return!!(To(e)&&e.add)}function tW(e,t){var n;if(!e.applyWillChange)return;let o=e.getValue("willChange");if(!o&&!(!((n=e.props.style)===null||n===void 0)&&n.willChange)&&(o=new cGe("auto"),e.addValue("willChange",o)),lGe(o))return o.add(t)}function uGe({protectedKeys:e,needsAnimating:t},n){const o=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,o}function Mce(e,t,{delay:n=0,transitionOverride:o,type:r}={}){var s;let{transition:i=e.getDefaultTransition(),transitionEnd:c,...l}=t;o&&(i=o);const u=[],d=r&&e.animationState&&e.animationState.getState()[r];for(const p in l){const f=e.getValue(p,(s=e.latestValues[p])!==null&&s!==void 0?s:null),b=l[p];if(b===void 0||d&&uGe(d,p))continue;const h={delay:n,elapsed:0,...JL(i||{},p)};let g=!1;if(window.MotionHandoffAnimation){const y=mce(e);if(y){const x=window.MotionHandoffAnimation(y,p,K0);x!==null&&(h.elapsed=x,g=!0)}}f.start(c7(p,f,b,e.shouldReduceMotion&&bd.has(p)?{type:!1}:h,e,g,tW(e,p)));const z=f.animation;z&&u.push(z)}return c&&Promise.all(u).then(()=>{K0.update(()=>{c&&aGe(e,c)})}),u}function nW(e,t,n={}){var o;const r=F_(e,t,n.type==="exit"?(o=e.presenceContext)===null||o===void 0?void 0:o.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const i=r?()=>Promise.all(Mce(e,r,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:p,staggerDirection:f}=s;return dGe(e,t,d+u,p,f,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[u,d]=l==="beforeChildren"?[i,c]:[c,i];return u().then(()=>d())}else return Promise.all([i(),c(n.delay)])}function dGe(e,t,n=0,o=0,r=1,s){const i=[],c=(e.variantChildren.size-1)*o,l=r===1?(u=0)=>u*o:(u=0)=>c-u*o;return Array.from(e.variantChildren).sort(pGe).forEach((u,d)=>{u.notify("AnimationStart",t),i.push(nW(u,t,{...s,delay:n+l(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(i)}function pGe(e,t){return e.sortNodePosition(t)}function fGe(e,t,n={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){const r=t.map(s=>nW(e,s,n));o=Promise.all(r)}else if(typeof t=="string")o=nW(e,t,n);else{const r=typeof t=="function"?F_(e,t,n.custom):t;o=Promise.all(Mce(e,r,n))}return o.then(()=>{e.notify("AnimationComplete",t)})}const bGe=[...IL].reverse(),hGe=IL.length;function mGe(e){return t=>Promise.all(t.map(({animation:n,options:o})=>fGe(e,n,o)))}function MGe(e){let t=mGe(e),n=WU(),o=!0;const r=l=>(u,d)=>{var p;const f=F_(e,d,l==="exit"?(p=e.presenceContext)===null||p===void 0?void 0:p.custom:void 0);if(f){const{transition:b,transitionEnd:h,...g}=f;u={...u,...g,...h}}return u};function s(l){t=l(e)}function i(l){const u=e.getProps(),d=e.getVariantContext(!0)||{},p=[],f=new Set;let b={},h=1/0;for(let z=0;zh&&M,q=!1;const S=Array.isArray(v)?v:[v];let C=S.reduce(r(y),{});A===!1&&(C={});const{prevResolvedValues:T={}}=x,W={...T,...C},B=N=>{k=!0,f.has(N)&&(q=!0,f.delete(N)),x.needsAnimating[N]=!0;const E=e.getValue(N);E&&(E.liveStyle=!1)};for(const N in W){const E=C[N],L=T[N];if(b.hasOwnProperty(N))continue;let I=!1;X8(E)&&X8(L)?I=!jae(E,L):I=E!==L,I?E!=null?B(N):f.add(N):E!==void 0&&f.has(N)?B(N):x.protectedKeys[N]=!0}x.prevProp=v,x.prevResolvedValues=C,x.isActive&&(b={...b,...C}),o&&e.blockInitialAnimation&&(k=!1),k&&(!_||q)&&p.push(...S.map(N=>({animation:N,options:{type:y}})))}if(f.size){const z={};f.forEach(y=>{const x=e.getBaseTarget(y),v=e.getValue(y);v&&(v.liveStyle=!0),z[y]=x??null}),p.push({animation:z})}let g=!!p.length;return o&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(g=!1),o=!1,g?t(p):Promise.resolve()}function c(l,u){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(f=>{var b;return(b=f.animationState)===null||b===void 0?void 0:b.setActive(l,u)}),n[l].isActive=u;const p=i(l);for(const f in n)n[f].protectedKeys={};return p}return{animateChanges:i,setActive:c,setAnimateFunction:s,getState:()=>n,reset:()=>{n=WU(),o=!0}}}function gGe(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!jae(t,e):!1}function Sd(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function WU(){return{animate:Sd(!0),whileInView:Sd(),whileHover:Sd(),whileTap:Sd(),whileDrag:Sd(),whileFocus:Sd(),exit:Sd()}}class zGe extends hd{constructor(t){super(t),t.animationState||(t.animationState=MGe(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ug(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let OGe=0;class AGe extends hd{constructor(){super(...arguments),this.id=OGe++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const yGe={animation:{Feature:zGe},exit:{Feature:AGe}},TU=(e,t)=>Math.abs(e-t);function vGe(e,t){const n=TU(e.x,t.x),o=TU(e.y,t.y);return Math.sqrt(n**2+o**2)}class gce{constructor(t,n,{transformPagePoint:o,contextWindow:r,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=Nq(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,b=vGe(p.offset,{x:0,y:0})>=3;if(!f&&!b)return;const{point:h}=p,{timestamp:g}=ao;this.history.push({...h,timestamp:g});const{onStart:z,onMove:y}=this.handlers;f||(z&&z(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,p)},this.handlePointerMove=(p,f)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=Bq(f,this.transformPagePoint),K0.update(this.updatePoint,!0)},this.handlePointerUp=(p,f)=>{this.end();const{onEnd:b,onSessionEnd:h,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const z=Nq(p.type==="pointercancel"?this.lastMoveEventInfo:Bq(f,this.transformPagePoint),this.history);this.startEvent&&b&&b(p,z),h&&h(p,z)},!Tae(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=o,this.contextWindow=r||window;const i=D_(t),c=Bq(i,this.transformPagePoint),{point:l}=c,{timestamp:u}=ao;this.history=[{...l,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,Nq(c,this.history)),this.removeListeners=Nc(Bc(this.contextWindow,"pointermove",this.handlePointerMove),Bc(this.contextWindow,"pointerup",this.handlePointerUp),Bc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),tl(this.updatePoint)}}function Bq(e,t){return t?{point:t(e.point)}:e}function EU(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Nq({point:e},t){return{point:e,delta:EU(e,zce(t)),offset:EU(e,xGe(t)),velocity:_Ge(t,.1)}}function xGe(e){return e[0]}function zce(e){return e[e.length-1]}function _Ge(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;const r=zce(e);for(;n>=0&&(o=e[n],!(r.timestamp-o.timestamp>Lc(t)));)n--;if(!o)return{x:0,y:0};const s=jc(r.timestamp-o.timestamp);if(s===0)return{x:0,y:0};const i={x:(r.x-o.x)/s,y:(r.y-o.y)/s};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}const Oce=1e-4,wGe=1-Oce,kGe=1+Oce,Ace=.01,qGe=0-Ace,SGe=0+Ace;function ss(e){return e.max-e.min}function CGe(e,t,n){return Math.abs(e-t)<=n}function BU(e,t,n,o=.5){e.origin=o,e.originPoint=$n(t.min,t.max,e.origin),e.scale=ss(n)/ss(t),e.translate=$n(n.min,n.max,e.origin)-e.originPoint,(e.scale>=wGe&&e.scale<=kGe||isNaN(e.scale))&&(e.scale=1),(e.translate>=qGe&&e.translate<=SGe||isNaN(e.translate))&&(e.translate=0)}function IM(e,t,n,o){BU(e.x,t.x,n.x,o?o.originX:void 0),BU(e.y,t.y,n.y,o?o.originY:void 0)}function NU(e,t,n){e.min=n.min+t.min,e.max=e.min+ss(t)}function RGe(e,t,n){NU(e.x,t.x,n.x),NU(e.y,t.y,n.y)}function LU(e,t,n){e.min=t.min-n.min,e.max=e.min+ss(t)}function DM(e,t,n){LU(e.x,t.x,n.x),LU(e.y,t.y,n.y)}function WGe(e,{min:t,max:n},o){return t!==void 0&&en&&(e=o?$n(n,e,o.max):Math.min(e,n)),e}function jU(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function TGe(e,{top:t,left:n,bottom:o,right:r}){return{x:jU(e.x,n,r),y:jU(e.y,t,o)}}function PU(e,t){let n=t.min-e.min,o=t.max-e.max;return t.max-t.mino?n=Kg(t.min,t.max-o,e.min):o>r&&(n=Kg(e.min,e.max-r,t.min)),Hu(0,1,n)}function NGe(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const oW=.35;function LGe(e=oW){return e===!1?e=0:e===!0&&(e=oW),{x:IU(e,"left","right"),y:IU(e,"top","bottom")}}function IU(e,t,n){return{min:DU(e,t),max:DU(e,n)}}function DU(e,t){return typeof e=="number"?e:e[t]||0}const FU=()=>({translate:0,scale:1,origin:0,originPoint:0}),wb=()=>({x:FU(),y:FU()}),$U=()=>({min:0,max:0}),s1=()=>({x:$U(),y:$U()});function vs(e){return[e("x"),e("y")]}function yce({top:e,left:t,right:n,bottom:o}){return{x:{min:t,max:n},y:{min:e,max:o}}}function jGe({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function PGe(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}function Lq(e){return e===void 0||e===1}function rW({scale:e,scaleX:t,scaleY:n}){return!Lq(e)||!Lq(t)||!Lq(n)}function Pd(e){return rW(e)||vce(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function vce(e){return VU(e.x)||VU(e.y)}function VU(e){return e&&e!=="0%"}function $v(e,t,n){const o=e-n,r=t*o;return n+r}function HU(e,t,n,o,r){return r!==void 0&&(e=$v(e,r,o)),$v(e,n,o)+t}function sW(e,t=0,n=1,o,r){e.min=HU(e.min,t,n,o,r),e.max=HU(e.max,t,n,o,r)}function xce(e,{x:t,y:n}){sW(e.x,t.translate,t.scale,t.originPoint),sW(e.y,n.translate,n.scale,n.originPoint)}const UU=.999999999999,XU=1.0000000000001;function IGe(e,t,n,o=!1){const r=n.length;if(!r)return;t.x=t.y=1;let s,i;for(let c=0;cUU&&(t.x=1),t.yUU&&(t.y=1)}function kb(e,t){e.min=e.min+t,e.max=e.max+t}function GU(e,t,n,o,r=.5){const s=$n(e.min,e.max,r);sW(e,t,n,s,o)}function qb(e,t){GU(e.x,t.x,t.scaleX,t.scale,t.originX),GU(e.y,t.y,t.scaleY,t.scale,t.originY)}function _ce(e,t){return yce(PGe(e.getBoundingClientRect(),t))}function DGe(e,t,n){const o=_ce(e,n),{scroll:r}=t;return r&&(kb(o.x,r.offset.x),kb(o.y,r.offset.y)),o}const wce=({current:e})=>e?e.ownerDocument.defaultView:null,FGe=new WeakMap;class $Ge{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=s1(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const r=d=>{const{dragSnapToOrigin:p}=this.getProps();p?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(D_(d,"page").point)},s=(d,p)=>{var f;const{drag:b,dragPropagation:h,onDragStart:g}=this.getProps();if(b&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Bae(b),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),vs(y=>{let x=this.getAxisMotionValue(y).get()||0;if(Wa.test(x)){const{projection:v}=this.visualElement;if(v&&v.layout){const M=v.layout.layoutBox[y];M&&(x=ss(M)*(parseFloat(x)/100))}}this.originPoint[y]=x}),g&&K0.postRender(()=>g(d,p)),(f=this.removeWillChange)===null||f===void 0||f.call(this),this.removeWillChange=tW(this.visualElement,"transform");const{animationState:z}=this.visualElement;z&&z.setActive("whileDrag",!0)},i=(d,p)=>{const{dragPropagation:f,dragDirectionLock:b,onDirectionLock:h,onDrag:g}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:z}=p;if(b&&this.currentDirection===null){this.currentDirection=VGe(z),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",p.point,z),this.updateAxis("y",p.point,z),this.visualElement.render(),g&&g(d,p)},c=(d,p)=>this.stop(d,p),l=()=>vs(d=>{var p;return this.getAnimationState(d)==="paused"&&((p=this.getAxisMotionValue(d).animation)===null||p===void 0?void 0:p.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new gce(t,{onSessionStart:r,onStart:s,onMove:i,onSessionEnd:c,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:wce(this.visualElement)})}stop(t,n){var o;(o=this.removeWillChange)===null||o===void 0||o.call(this);const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&K0.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,o){const{drag:r}=this.getProps();if(!o||!fA(t,r,this.currentDirection))return;const s=this.getAxisMotionValue(t);let i=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(i=WGe(i,this.constraints[t],this.elastic[t])),s.set(i)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:o}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&xb(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=TGe(r.layoutBox,n):this.constraints=!1,this.elastic=LGe(o),s!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&vs(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=NGe(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!xb(t))return!1;const o=t.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const s=DGe(o,r.root,this.visualElement.getTransformPagePoint());let i=EGe(r.layout.layoutBox,s);if(n){const c=n(jGe(i));this.hasMutatedConstraints=!!c,c&&(i=yce(c))}return i}startAnimation(t){const{drag:n,dragMomentum:o,dragElastic:r,dragTransition:s,dragSnapToOrigin:i,onDragTransitionEnd:c}=this.getProps(),l=this.constraints||{},u=vs(d=>{if(!fA(d,n,this.currentDirection))return;let p=l&&l[d]||{};i&&(p={min:0,max:0});const f=r?200:1e6,b=r?40:1e7,h={type:"inertia",velocity:o?t[d]:0,bounceStiffness:f,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...s,...p};return this.startAxisValueAnimation(d,h)});return Promise.all(u).then(c)}startAxisValueAnimation(t,n){const o=this.getAxisMotionValue(t);return o.start(c7(t,o,0,n,this.visualElement,!1,tW(this.visualElement,t)))}stopAnimation(){vs(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){vs(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,o=this.visualElement.getProps(),r=o[n];return r||this.visualElement.getValue(t,(o.initial?o.initial[t]:void 0)||0)}snapToCursor(t){vs(n=>{const{drag:o}=this.getProps();if(!fA(n,o,this.currentDirection))return;const{projection:r}=this.visualElement,s=this.getAxisMotionValue(n);if(r&&r.layout){const{min:i,max:c}=r.layout.layoutBox[n];s.set(t[n]-$n(i,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!xb(n)||!o||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};vs(i=>{const c=this.getAxisMotionValue(i);if(c&&this.constraints!==!1){const l=c.get();r[i]=BGe({min:l,max:l},this.constraints[i])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),vs(i=>{if(!fA(i,t,null))return;const c=this.getAxisMotionValue(i),{min:l,max:u}=this.constraints[i];c.set($n(l,u,r[i]))})}addListeners(){if(!this.visualElement.current)return;FGe.set(this.visualElement,this);const t=this.visualElement.current,n=Bc(t,"pointerdown",l=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),o=()=>{const{dragConstraints:l}=this.getProps();xb(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,s=r.addEventListener("measure",o);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),K0.read(o);const i=kc(window,"resize",()=>this.scalePositionWithinConstraints()),c=r.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(vs(d=>{const p=this.getAxisMotionValue(d);p&&(this.originPoint[d]+=l[d].translate,p.set(p.get()+l[d].translate))}),this.visualElement.render())});return()=>{i(),n(),s(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:o=!1,dragPropagation:r=!1,dragConstraints:s=!1,dragElastic:i=oW,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:o,dragPropagation:r,dragConstraints:s,dragElastic:i,dragMomentum:c}}}function fA(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function VGe(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class HGe extends hd{constructor(t){super(t),this.removeGroupControls=Lo,this.removeListeners=Lo,this.controls=new $Ge(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Lo}unmount(){this.removeGroupControls(),this.removeListeners()}}const KU=e=>(t,n)=>{e&&K0.postRender(()=>e(t,n))};class UGe extends hd{constructor(){super(...arguments),this.removePointerDownListener=Lo}onPointerDown(t){this.session=new gce(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:wce(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:o,onPanEnd:r}=this.node.getProps();return{onSessionStart:KU(t),onStart:KU(n),onMove:o,onEnd:(s,i)=>{delete this.session,r&&K0.postRender(()=>r(s,i))}}}mount(){this.removePointerDownListener=Bc(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function XGe(){const e=O.useContext(N_);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:o}=e,r=O.useId();O.useEffect(()=>o(r),[]);const s=O.useCallback(()=>n&&n(r),[r,n]);return!t&&n?[!1,s]:[!0]}const e4={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function YU(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const qm={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(jt.test(e))e=parseFloat(e);else return e;const n=YU(e,t.target.x),o=YU(e,t.target.y);return`${n}% ${o}%`}},GGe={correct:(e,{treeScale:t,projectionDelta:n})=>{const o=e,r=Uu.parse(e);if(r.length>5)return o;const s=Uu.createTransformer(e),i=typeof r[0]!="number"?1:0,c=n.x.scale*t.x,l=n.y.scale*t.y;r[0+i]/=c,r[1+i]/=l;const u=$n(c,l,.5);return typeof r[2+i]=="number"&&(r[2+i]/=u),typeof r[3+i]=="number"&&(r[3+i]/=u),s(r)}};class KGe extends O.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o,layoutId:r}=this.props,{projection:s}=t;$He(YGe),s&&(n.group&&n.group.add(s),o&&o.register&&r&&o.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),e4.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:o,drag:r,isPresent:s}=this.props,i=o.projection;return i&&(i.isPresent=s,r||t.layoutDependency!==n||n===void 0?i.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?i.promote():i.relegate()||K0.postRender(()=>{const c=i.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),PL.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),o&&o.deregister&&o.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function kce(e){const[t,n]=XGe(),o=O.useContext(Xg);return a.jsx(KGe,{...e,layoutGroup:o,switchLayoutGroup:O.useContext(mae),isPresent:t,safeToRemove:n})}const YGe={borderRadius:{...qm,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:qm,borderTopRightRadius:qm,borderBottomLeftRadius:qm,borderBottomRightRadius:qm,boxShadow:GGe},qce=["TopLeft","TopRight","BottomLeft","BottomRight"],ZGe=qce.length,ZU=e=>typeof e=="string"?parseFloat(e):e,QU=e=>typeof e=="number"||jt.test(e);function QGe(e,t,n,o,r,s){r?(e.opacity=$n(0,n.opacity!==void 0?n.opacity:1,JGe(o)),e.opacityExit=$n(t.opacity!==void 0?t.opacity:1,0,eKe(o))):s&&(e.opacity=$n(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,o));for(let i=0;iot?1:n(Kg(e,t,o))}function eX(e,t){e.min=t.min,e.max=t.max}function ys(e,t){eX(e.x,t.x),eX(e.y,t.y)}function tX(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function nX(e,t,n,o,r){return e-=t,e=$v(e,1/n,o),r!==void 0&&(e=$v(e,1/r,o)),e}function tKe(e,t=0,n=1,o=.5,r,s=e,i=e){if(Wa.test(t)&&(t=parseFloat(t),t=$n(i.min,i.max,t/100)-i.min),typeof t!="number")return;let c=$n(s.min,s.max,o);e===s&&(c-=t),e.min=nX(e.min,t,n,c,r),e.max=nX(e.max,t,n,c,r)}function oX(e,t,[n,o,r],s,i){tKe(e,t[n],t[o],t[r],t.scale,s,i)}const nKe=["x","scaleX","originX"],oKe=["y","scaleY","originY"];function rX(e,t,n,o){oX(e.x,t,nKe,n?n.x:void 0,o?o.x:void 0),oX(e.y,t,oKe,n?n.y:void 0,o?o.y:void 0)}function sX(e){return e.translate===0&&e.scale===1}function Cce(e){return sX(e.x)&&sX(e.y)}function iX(e,t){return e.min===t.min&&e.max===t.max}function rKe(e,t){return iX(e.x,t.x)&&iX(e.y,t.y)}function aX(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Rce(e,t){return aX(e.x,t.x)&&aX(e.y,t.y)}function cX(e){return ss(e.x)/ss(e.y)}function lX(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class sKe{constructor(){this.members=[]}add(t){P_(this.members,t),t.scheduleRender()}remove(t){if(I_(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(r=>t===r);if(n===0)return!1;let o;for(let r=n;r>=0;r--){const s=this.members[r];if(s.isPresent!==!1){o=s;break}}return o?(this.promote(o),!0):!1}promote(t,n){const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,n&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;r===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:o}=t;n.onExitComplete&&n.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function iKe(e,t,n){let o="";const r=e.x.translate/t.x,s=e.y.translate/t.y,i=n?.z||0;if((r||s||i)&&(o=`translate3d(${r}px, ${s}px, ${i}px) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:p,rotateY:f,skewX:b,skewY:h}=n;u&&(o=`perspective(${u}px) ${o}`),d&&(o+=`rotate(${d}deg) `),p&&(o+=`rotateX(${p}deg) `),f&&(o+=`rotateY(${f}deg) `),b&&(o+=`skewX(${b}deg) `),h&&(o+=`skewY(${h}deg) `)}const c=e.x.scale*t.x,l=e.y.scale*t.y;return(c!==1||l!==1)&&(o+=`scale(${c}, ${l})`),o||"none"}const aKe=(e,t)=>e.depth-t.depth;class cKe{constructor(){this.children=[],this.isDirty=!1}add(t){P_(this.children,t),this.isDirty=!0}remove(t){I_(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(aKe),this.isDirty=!1,this.children.forEach(t)}}function lKe(e,t){const n=yu.now(),o=({timestamp:r})=>{const s=r-n;s>=t&&(tl(o),e(s-t))};return K0.read(o,!0),()=>tl(o)}function uKe(e){return e instanceof SVGElement&&e.tagName!=="svg"}function dKe(e,t,n){const o=To(e)?e:Yg(e);return o.start(c7("",o,t,n)),o.animation}const Id={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},cM=typeof window<"u"&&window.MotionDebug!==void 0,jq=["","X","Y","Z"],pKe={visibility:"hidden"},uX=1e3;let fKe=0;function Pq(e,t,n,o){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),o&&(o[e]=0))}function Wce(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return!1;const{visualElement:t}=e.options;return t?window.MotionHasOptimisedTransformAnimation(mce(t))?!0:e.parent&&!e.parent.hasCheckedOptimisedAppear?Wce(e.parent):!1:!1}function Tce({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(i={},c=t?.()){this.id=fKe++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,cM&&(Id.totalNodes=Id.resolvedTargetDeltas=Id.recalculatedProjection=0),this.nodes.forEach(mKe),this.nodes.forEach(AKe),this.nodes.forEach(yKe),this.nodes.forEach(MKe),cM&&window.MotionDebug.record(Id)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(i,()=>{this.root.updateBlockedByResize=!0,p&&p(),p=lKe(f,250),e4.hasAnimatedSinceResize&&(e4.hasAnimatedSinceResize=!1,this.nodes.forEach(pX))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:f,hasRelativeTargetChanged:b,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||d.getDefaultTransition()||kKe,{onLayoutAnimationStart:z,onLayoutAnimationComplete:y}=d.getProps(),x=!this.targetLayout||!Rce(this.targetLayout,h)||b,v=!f&&b;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||f&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(p,v);const M={...JL(g,"layout"),onPlay:z,onComplete:y};(d.shouldReduceMotion||this.options.layoutRoot)&&(M.delay=0,M.type=!1),this.startAnimation(M)}else f||pX(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,tl(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(vKe),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionHandoffCancelAll&&Wce(this)&&window.MotionHandoffCancelAll(),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const A=M/1e3;fX(p.x,i.x,A),fX(p.y,i.y,A),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(DM(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),_Ke(this.relativeTarget,this.relativeTargetOrigin,f,A),v&&rKe(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=s1()),ys(v,this.relativeTarget)),g&&(this.animationValues=d,QGe(d,u,this.latestValues,A,x,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(tl(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=K0.update(()=>{e4.hasAnimatedSinceResize=!0,this.currentAnimation=dKe(0,uX,{...i,onUpdate:c=>{this.mixTargetDelta(c),i.onUpdate&&i.onUpdate(c)},onComplete:()=>{i.onComplete&&i.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(uX),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:c,target:l,layout:u,latestValues:d}=i;if(!(!c||!l||!u)){if(this!==i&&this.layout&&u&&Ece(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||s1();const p=ss(this.layout.layoutBox.x);l.x.min=i.target.x.min,l.x.max=l.x.min+p;const f=ss(this.layout.layoutBox.y);l.y.min=i.target.y.min,l.y.max=l.y.min+f}ys(c,l),qb(c,d),IM(this.projectionDeltaWithTransform,this.layoutCorrected,c,d)}}registerSharedNode(i,c){this.sharedNodes.has(i)||this.sharedNodes.set(i,new sKe),this.sharedNodes.get(i).add(c);const u=c.options.initialPromotionConfig;c.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(c):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){var i;const{layoutId:c}=this.options;return c?((i=this.getStack())===null||i===void 0?void 0:i.lead)||this:this}getPrevLead(){var i;const{layoutId:c}=this.options;return c?(i=this.getStack())===null||i===void 0?void 0:i.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:c,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),i&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let c=!1;const{latestValues:l}=i;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(c=!0),!c)return;const u={};l.z&&Pq("z",i,u,this.animationValues);for(let d=0;d{var c;return(c=i.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(dX),this.root.sharedNodes.clear()}}}function bKe(e){e.updateLayout()}function hKe(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:r}=e.layout,{animationType:s}=e.options,i=n.source!==e.layout.source;s==="size"?vs(p=>{const f=i?n.measuredBox[p]:n.layoutBox[p],b=ss(f);f.min=o[p].min,f.max=f.min+b}):Ece(s,n.layoutBox,o)&&vs(p=>{const f=i?n.measuredBox[p]:n.layoutBox[p],b=ss(o[p]);f.max=f.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+b)});const c=wb();IM(c,o,n.layoutBox);const l=wb();i?IM(l,e.applyTransform(r,!0),n.measuredBox):IM(l,o,n.layoutBox);const u=!Cce(c);let d=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:f,layout:b}=p;if(f&&b){const h=s1();DM(h,n.layoutBox,f.layoutBox);const g=s1();DM(g,o,b.layoutBox),Rce(h,g)||(d=!0),p.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=h,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:n,delta:l,layoutDelta:c,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:o}=e.options;o&&o()}e.options.transition=void 0}function mKe(e){cM&&Id.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function MKe(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function gKe(e){e.clearSnapshot()}function dX(e){e.clearMeasurements()}function zKe(e){e.isLayoutDirty=!1}function OKe(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function pX(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function AKe(e){e.resolveTargetDelta()}function yKe(e){e.calcProjection()}function vKe(e){e.resetSkewAndRotation()}function xKe(e){e.removeLeadSnapshot()}function fX(e,t,n){e.translate=$n(t.translate,0,n),e.scale=$n(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function bX(e,t,n,o){e.min=$n(t.min,n.min,o),e.max=$n(t.max,n.max,o)}function _Ke(e,t,n,o){bX(e.x,t.x,n.x,o),bX(e.y,t.y,n.y,o)}function wKe(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const kKe={duration:.45,ease:[.4,0,.1,1]},hX=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),mX=hX("applewebkit/")&&!hX("chrome/")?Math.round:Lo;function MX(e){e.min=mX(e.min),e.max=mX(e.max)}function qKe(e){MX(e.x),MX(e.y)}function Ece(e,t,n){return e==="position"||e==="preserve-aspect"&&!CGe(cX(t),cX(n),.2)}function SKe(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const CKe=Tce({attachResizeListener:(e,t)=>kc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Iq={current:void 0},Bce=Tce({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Iq.current){const e=new CKe({});e.mount(window),e.setOptions({layoutScroll:!0}),Iq.current=e}return Iq.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),RKe={pan:{Feature:UGe},drag:{Feature:HGe,ProjectionNode:Bce,MeasureLayout:kce}},iW={current:null},Nce={current:!1};function WKe(){if(Nce.current=!0,!!LL)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>iW.current=e.matches;e.addListener(t),t()}else iW.current=!1}function TKe(e,t,n){for(const o in t){const r=t[o],s=n[o];if(To(r))e.addValue(o,r);else if(To(s))e.addValue(o,Yg(r,{owner:e}));else if(s!==r)if(e.hasValue(o)){const i=e.getValue(o);i.liveStyle===!0?i.jump(r):i.hasAnimated||i.set(r)}else{const i=e.getStaticValue(o);e.addValue(o,Yg(i!==void 0?i:r,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const gX=new WeakMap,EKe=[...$ae,Co,Uu],BKe=e=>EKe.find(Fae(e)),zX=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],NKe=DL.length;class LKe{scrapeMotionValuesFromProps(t,n,o){return{}}constructor({parent:t,props:n,presenceContext:o,reducedMotionConfig:r,blockInitialAnimation:s,visualState:i},c={}){this.applyWillChange=!1,this.resolveKeyframes=(f,b,h,g)=>new this.KeyframeResolver(f,b,h,g,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=e7,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,K0.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=i;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=c,this.blockInitialAnimation=!!s,this.isControllingVariants=j_(n),this.isVariantNode=gae(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in p){const b=p[f];l[f]!==void 0&&To(b)&&b.set(l[f],!1)}}mount(t){this.current=t,gX.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,o)=>this.bindToMotionValue(o,n)),Nce.current||WKe(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:iW.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){gX.delete(this.current),this.projection&&this.projection.unmount(),tl(this.notifyUpdate),tl(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){const o=bd.has(t),r=n.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&K0.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{r(),s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in N2){const n=N2[t];if(!n)continue;const{isEnabled:o,Feature:r}=n;if(!this.features[t]&&r&&o(this.props)&&(this.features[t]=new r(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):s1()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let o=0;on.variantChildren.delete(t)}addValue(t,n){const o=this.values.get(t);n!==o&&(o&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let o=this.values.get(t);return o===void 0&&n!==void 0&&(o=Yg(n===null?void 0:n,{owner:this}),this.addValue(t,o)),o}readValue(t,n){var o;let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(o=this.getBaseTargetFromProps(this.props,t))!==null&&o!==void 0?o:this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Iae(r)||Pae(r))?r=parseFloat(r):!BKe(r)&&Uu.test(n)&&(r=Zae(t,n)),this.setBaseTarget(t,To(r)?r.get():r)),To(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:o}=this.props;let r;if(typeof o=="string"||typeof o=="object"){const i=ZL(this.props,o,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);i&&(r=i[t])}if(o&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!To(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new l7),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Lce extends LKe{constructor(){super(...arguments),this.KeyframeResolver=Qae}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:o}){delete n[t],delete o[t]}}function jKe(e){return window.getComputedStyle(e)}class PKe extends Lce{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=wae}readValueFromInstance(t,n){if(bd.has(n)){const o=n7(n);return o&&o.default||0}else{const o=jKe(t),r=(yae(n)?o.getPropertyValue(n):o[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return _ce(t,n)}build(t,n,o){UL(t,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,o){return YL(t,n,o)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;To(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class IKe extends Lce{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=s1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(bd.has(n)){const o=n7(n);return o&&o.default||0}return n=kae.has(n)?n:L_(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,o){return Sae(t,n,o)}build(t,n,o){GL(t,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,o,r){qae(t,n,o,r)}mount(t){this.isSVGTag=KL(t.tagName),super.mount(t)}}const DKe=(e,t)=>FL(e)?new IKe(t):new PKe(t,{allowProjection:e!==O.Fragment}),FKe={layout:{ProjectionNode:Bce,MeasureLayout:kce}},$Ke={...yGe,...WUe,...RKe,...FKe},Hn=DHe((e,t)=>zUe(e,t,$Ke,DKe));class VKe extends O.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function HKe({children:e,isPresent:t}){const n=O.useId(),o=O.useRef(null),r=O.useRef({width:0,height:0,top:0,left:0}),{nonce:s}=O.useContext(NL);return O.useInsertionEffect(()=>{const{width:i,height:c,top:l,left:u}=r.current;if(t||!o.current||!i||!c)return;o.current.dataset.motionPopId=n;const d=document.createElement("style");return s&&(d.nonce=s),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(` + */var to=typeof Symbol=="function"&&Symbol.for,kL=to?Symbol.for("react.element"):60103,qL=to?Symbol.for("react.portal"):60106,x_=to?Symbol.for("react.fragment"):60107,__=to?Symbol.for("react.strict_mode"):60108,w_=to?Symbol.for("react.profiler"):60114,k_=to?Symbol.for("react.provider"):60109,q_=to?Symbol.for("react.context"):60110,SL=to?Symbol.for("react.async_mode"):60111,S_=to?Symbol.for("react.concurrent_mode"):60111,C_=to?Symbol.for("react.forward_ref"):60112,R_=to?Symbol.for("react.suspense"):60113,iVe=to?Symbol.for("react.suspense_list"):60120,W_=to?Symbol.for("react.memo"):60115,T_=to?Symbol.for("react.lazy"):60116,aVe=to?Symbol.for("react.block"):60121,cVe=to?Symbol.for("react.fundamental"):60117,lVe=to?Symbol.for("react.responder"):60118,uVe=to?Symbol.for("react.scope"):60119;function ms(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case kL:switch(e=e.type,e){case SL:case S_:case x_:case w_:case __:case R_:return e;default:switch(e=e&&e.$$typeof,e){case q_:case C_:case T_:case W_:case k_:return e;default:return t}}case qL:return t}}}function Jie(e){return ms(e)===S_}tn.AsyncMode=SL;tn.ConcurrentMode=S_;tn.ContextConsumer=q_;tn.ContextProvider=k_;tn.Element=kL;tn.ForwardRef=C_;tn.Fragment=x_;tn.Lazy=T_;tn.Memo=W_;tn.Portal=qL;tn.Profiler=w_;tn.StrictMode=__;tn.Suspense=R_;tn.isAsyncMode=function(e){return Jie(e)||ms(e)===SL};tn.isConcurrentMode=Jie;tn.isContextConsumer=function(e){return ms(e)===q_};tn.isContextProvider=function(e){return ms(e)===k_};tn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===kL};tn.isForwardRef=function(e){return ms(e)===C_};tn.isFragment=function(e){return ms(e)===x_};tn.isLazy=function(e){return ms(e)===T_};tn.isMemo=function(e){return ms(e)===W_};tn.isPortal=function(e){return ms(e)===qL};tn.isProfiler=function(e){return ms(e)===w_};tn.isStrictMode=function(e){return ms(e)===__};tn.isSuspense=function(e){return ms(e)===R_};tn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===x_||e===S_||e===w_||e===__||e===R_||e===iVe||typeof e=="object"&&e!==null&&(e.$$typeof===T_||e.$$typeof===W_||e.$$typeof===k_||e.$$typeof===q_||e.$$typeof===C_||e.$$typeof===cVe||e.$$typeof===lVe||e.$$typeof===uVe||e.$$typeof===aVe)};tn.typeOf=ms;Qie.exports=tn;var dVe=Qie.exports,eae=dVe,pVe={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},fVe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},tae={};tae[eae.ForwardRef]=pVe;tae[eae.Memo]=fVe;var bVe=!0;function CL(e,t,n){var o="";return n.split(" ").forEach(function(r){e[r]!==void 0?t.push(e[r]+";"):o+=r+" "}),o}var nae=function(t,n,o){var r=t.key+"-"+n.name;(o===!1||bVe===!1)&&t.registered[r]===void 0&&(t.registered[r]=n.styles)},RL=function(t,n,o){nae(t,n,o);var r=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+r:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function hVe(e){for(var t=0,n,o=0,r=e.length;r>=4;++o,r-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var mVe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},MVe=!1,gVe=/[A-Z]|^ms/g,zVe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,oae=function(t){return t.charCodeAt(1)===45},HH=function(t){return t!=null&&typeof t!="boolean"},_q=Yie(function(e){return oae(e)?e:e.replace(gVe,"-$&").toLowerCase()}),UH=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(zVe,function(o,r,s){return ha={name:r,styles:s,next:ha},r})}return mVe[t]!==1&&!oae(t)&&typeof n=="number"&&n!==0?n+"px":n},OVe="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Vg(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return ha={name:r.name,styles:r.styles,next:ha},r.name;var s=n;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)ha={name:i.name,styles:i.styles,next:ha},i=i.next;var c=s.styles+";";return c}return AVe(e,t,n)}case"function":{if(e!==void 0){var l=ha,u=n(e);return ha=l,Vg(e,t,u)}break}}var d=n;if(t==null)return d;var p=t[d];return p!==void 0?p:d}function AVe(e,t,n){var o="";if(Array.isArray(n))for(var r=0;rtypeof e<"u"&&e!==null&&["name","styles"].every(t=>typeof e[t]<"u"),x0=()=>{const e=wVe();return O.useCallback((...n)=>{if(e===null)throw new Error("The `useCx` hook should be only used within a valid Emotion Cache Context");return WVe(...n.map(o=>TVe(o)?(RL(e,o,!1),`${e.key}-${o.name}`):o))},[e])},B_={name:"kv6lnz",styles:"box-sizing:border-box;*,*::before,*::after{box-sizing:inherit;}"};let wq;bs([hs]);function EVe(){if(!(typeof document>"u")){if(!wq){const e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),wq=e}return wq}}function BVe(e){return typeof e!="string"?!1:Tt(e).isValid()}function NVe(e){if(typeof e!="string")return"";if(BVe(e))return e;if(!e.includes("var(")||typeof document>"u")return"";const t=EVe();if(!t)return"";t.style.background=e;const n=window?.getComputedStyle(t).background;return t.style.background="",n||""}const LVe=fs(NVe);function jVe(e){const t=LVe(e);return Tt(t).isLight()?"#000000":"#ffffff"}function PVe(e){return jVe(e)==="#000000"?"dark":"light"}const YH=new RegExp(/-left/g),ZH=new RegExp(/-right/g),QH=new RegExp(/Left/g),JH=new RegExp(/Right/g);function IVe(e){return e==="left"?"right":e==="right"?"left":YH.test(e)?e.replace(YH,"-right"):ZH.test(e)?e.replace(ZH,"-left"):QH.test(e)?e.replace(QH,"Right"):JH.test(e)?e.replace(JH,"Left"):e}const DVe=(e={})=>Object.fromEntries(Object.entries(e).map(([t,n])=>[IVe(t),n]));function dn(e={},t){return()=>t?ft()?ke(t,"",""):ke(e,"",""):ft()?ke(DVe(e),"",""):ke(e,"","")}dn.watch=()=>ft();const FVe={"default.fontFamily":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif","default.fontSize":"13px","helpText.fontSize":"12px",mobileTextMinFontSize:"16px"};function wi(e){var t;return(t=FVe[e])!==null&&t!==void 0?t:""}const $Ve={huge:"1440px",wide:"1280px","x-large":"1080px",large:"960px",medium:"782px",small:"600px",mobile:"480px","zoomed-in":"280px"},VVe=e=>`@media (min-width: ${$Ve[e]})`,HVe="4px";function Ce(e){if(typeof e>"u")return;if(!e)return"0";const t=typeof e=="number"?e:Number(e);return typeof window<"u"&&window.CSS?.supports?.("margin",e.toString())||Number.isNaN(t)?e.toString():`calc(${HVe} * ${e})`}const Ky="#fff",na={900:"#1e1e1e",800:"#2f2f2f",700:"#757575",600:"#949494",400:"#ccc",300:"#ddd",200:"#e0e0e0",100:"#f0f0f0"},UVe={yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},oa={accent:"var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))",accentDarker10:"var(--wp-components-color-accent-darker-10, var(--wp-admin-theme-color-darker-10, #2145e6))",accentDarker20:"var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6))",accentInverted:`var(--wp-components-color-accent-inverted, ${Ky})`,background:`var(--wp-components-color-background, ${Ky})`,foreground:`var(--wp-components-color-foreground, ${na[900]})`,foregroundInverted:`var(--wp-components-color-foreground-inverted, ${Ky})`,gray:{900:`var(--wp-components-color-foreground, ${na[900]})`,800:`var(--wp-components-color-gray-800, ${na[800]})`,700:`var(--wp-components-color-gray-700, ${na[700]})`,600:`var(--wp-components-color-gray-600, ${na[600]})`,400:`var(--wp-components-color-gray-400, ${na[400]})`,300:`var(--wp-components-color-gray-300, ${na[300]})`,200:`var(--wp-components-color-gray-200, ${na[200]})`,100:`var(--wp-components-color-gray-100, ${na[100]})`}},XVe={background:oa.background,backgroundDisabled:oa.gray[100],border:oa.gray[600],borderHover:oa.gray[700],borderFocus:oa.accent,borderDisabled:oa.gray[400],textDisabled:oa.gray[600],darkGrayPlaceholder:`color-mix(in srgb, ${oa.foreground}, transparent 38%)`,lightGrayPlaceholder:`color-mix(in srgb, ${oa.background}, transparent 35%)`},qe=Object.freeze({gray:na,white:Ky,alert:UVe,theme:oa,ui:XVe}),km="36px",Yy={controlSurfaceColor:qe.white,controlTextActiveColor:qe.theme.accent,controlPaddingX:12,controlPaddingXSmall:8,controlPaddingXLarge:12*1.3334,controlBackgroundColor:qe.white,controlBoxShadow:"transparent",controlBoxShadowFocus:`0 0 0 0.5px ${qe.theme.accent}`,controlDestructiveBorderColor:qe.alert.red,controlHeight:km,controlHeightXSmall:`calc( ${km} * 0.6 )`,controlHeightSmall:`calc( ${km} * 0.8 )`,controlHeightLarge:`calc( ${km} * 1.2 )`,controlHeightXLarge:`calc( ${km} * 1.4 )`},GVe={toggleGroupControlBackgroundColor:Yy.controlBackgroundColor,toggleGroupControlBorderColor:qe.ui.border,toggleGroupControlBackdropBackgroundColor:Yy.controlSurfaceColor,toggleGroupControlBackdropBorderColor:qe.ui.border,toggleGroupControlButtonColorActive:Yy.controlBackgroundColor},Se=Object.assign({},Yy,GVe,{colorDivider:"rgba(0, 0, 0, 0.1)",colorScrollbarThumb:"rgba(0, 0, 0, 0.2)",colorScrollbarThumbHover:"rgba(0, 0, 0, 0.5)",colorScrollbarTrack:"rgba(0, 0, 0, 0.04)",elevationIntensity:1,radiusXSmall:"1px",radiusSmall:"2px",radiusMedium:"4px",radiusLarge:"8px",radiusFull:"9999px",radiusRound:"50%",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px",spinnerSize:16,fontSize:"13px",fontSizeH1:"calc(2.44 * 13px)",fontSizeH2:"calc(1.95 * 13px)",fontSizeH3:"calc(1.56 * 13px)",fontSizeH4:"calc(1.25 * 13px)",fontSizeH5:"13px",fontSizeH6:"calc(0.8 * 13px)",fontSizeInputMobile:"16px",fontSizeMobile:"15px",fontSizeSmall:"calc(0.92 * 13px)",fontSizeXSmall:"calc(0.75 * 13px)",fontLineHeightBase:"1.4",fontWeight:"normal",fontWeightHeading:"600",gridBase:"4px",cardBorderRadius:"2px",cardPaddingXSmall:`${Ce(2)}`,cardPaddingSmall:`${Ce(4)}`,cardPaddingMedium:`${Ce(4)} ${Ce(6)}`,cardPaddingLarge:`${Ce(6)} ${Ce(8)}`,elevationXSmall:"0 0.7px 1px rgba(0, 0, 0, 0.1), 0 1.2px 1.7px -0.2px rgba(0, 0, 0, 0.1), 0 2.3px 3.3px -0.5px rgba(0, 0, 0, 0.1)",elevationSmall:"0 0.7px 1px 0 rgba(0, 0, 0, 0.12), 0 2.2px 3.7px -0.2px rgba(0, 0, 0, 0.12), 0 5.3px 7.3px -0.5px rgba(0, 0, 0, 0.12)",elevationMedium:"0 0.7px 1px 0 rgba(0, 0, 0, 0.14), 0 4.2px 5.7px -0.2px rgba(0, 0, 0, 0.14), 0 7.3px 9.3px -0.5px rgba(0, 0, 0, 0.14)",elevationLarge:"0 0.7px 1px rgba(0, 0, 0, 0.15), 0 2.7px 3.8px -0.2px rgba(0, 0, 0, 0.15), 0 5.5px 7.8px -0.3px rgba(0, 0, 0, 0.15), 0.1px 11.5px 16.4px -0.5px rgba(0, 0, 0, 0.15)",surfaceBackgroundColor:qe.white,surfaceBackgroundSubtleColor:"#F3F3F3",surfaceBackgroundTintColor:"#F5F5F5",surfaceBorderColor:"rgba(0, 0, 0, 0.1)",surfaceBorderBoldColor:"rgba(0, 0, 0, 0.15)",surfaceBorderSubtleColor:"rgba(0, 0, 0, 0.05)",surfaceBackgroundTertiaryColor:qe.white,surfaceColor:qe.white,transitionDuration:"200ms",transitionDurationFast:"160ms",transitionDurationFaster:"120ms",transitionDurationFastest:"100ms",transitionTimingFunction:"cubic-bezier(0.08, 0.52, 0.52, 1)",transitionTimingFunctionControl:"cubic-bezier(0.12, 0.8, 0.32, 1)"}),rae={name:"9amh4a",styles:"font-size:11px;font-weight:500;line-height:1.4;text-transform:uppercase"},TL=O.createContext({}),sae=()=>O.useContext(TL);function KVe({value:e}){const t=sae(),n=O.useRef(e);return yL(()=>{J1(n.current,e)&&n.current!==e&&globalThis.SCRIPT_DEBUG===!0&&Xt(`Please memoize your context: ${JSON.stringify(e)}`)},[e]),O.useMemo(()=>Wne(t??{},e??{},{isMergeableObject:Pz}),[t,e])}const YVe=({children:e,value:t})=>{const n=KVe({value:t});return a.jsx(TL.Provider,{value:n,children:e})},O3=O.memo(YVe),ZVe="data-wp-component",QVe="data-wp-c16t",vb="__contextSystemKey__";function JVe(e){return`components-${Us(e)}`}const iae=fs(JVe);function Qt(e,t){return cae(e,t,{forwardsRef:!0})}function aae(e,t){return cae(e,t)}function cae(e,t,n){const o=n?.forwardsRef?O.forwardRef(e):e;typeof t>"u"&&globalThis.SCRIPT_DEBUG===!0&&Xt("contextConnect: Please provide a namespace");let r=o[vb]||[t];return Array.isArray(t)&&(r=[...r,...t]),typeof t=="string"&&(r=[...r,t]),Object.assign(o,{[vb]:[...new Set(r)],displayName:t,selector:`.${iae(t)}`})}function eU(e){if(!e)return[];let t=[];return e[vb]&&(t=e[vb]),e.type&&e.type[vb]&&(t=e.type[vb]),t}function lae(e,t){return e?typeof t=="string"?eU(e).includes(t):Array.isArray(t)?t.some(n=>eU(e).includes(n)):!1:!1}function eHe(e){return{[ZVe]:e}}function tHe(){return{[QVe]:!0}}function Ut(e,t){const n=sae();typeof t>"u"&&globalThis.SCRIPT_DEBUG===!0&&Xt("useContextSystem: Please provide a namespace");const o=n?.[t]||{},r={...tHe(),...eHe(t)},{_overrides:s,...i}=o,c=Object.entries(i).length?Object.assign({},i,e):e,u=x0()(iae(t),e.className),d=typeof c.renderChildren=="function"?c.renderChildren(c):c.children;for(const p in c)r[p]=c[p];for(const p in s)r[p]=s[p];return d!==void 0&&(r.children=d),r.className=u,r}const nHe={border:0,clip:"rect(1px, 1px, 1px, 1px)",WebkitClipPath:"inset( 50% )",clipPath:"inset( 50% )",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",wordWrap:"normal"};var oHe=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,rHe=Yie(function(e){return oHe.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),sHe=rHe,iHe=function(t){return t!=="theme"},tU=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?sHe:iHe},nU=function(t,n,o){var r;if(n){var s=n.shouldForwardProp;r=t.__emotion_forwardProp&&s?function(i){return t.__emotion_forwardProp(i)&&s(i)}:s}return typeof r!="function"&&o&&(r=t.__emotion_forwardProp),r},aHe=!1,cHe=function(t){var n=t.cache,o=t.serialized,r=t.isStringTag;return nae(n,o,r),xVe(function(){return RL(n,o,r)}),null},we=function e(t,n){var o=t.__emotion_real===t,r=o&&t.__emotion_base||t,s,i;n!==void 0&&(s=n.label,i=n.target);var c=nU(t,n,o),l=c||tU(r),u=!l("as");return function(){var d=arguments,p=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&p.push("label:"+s+";"),d[0]==null||d[0].raw===void 0)p.push.apply(p,d);else{p.push(d[0][0]);for(var f=d.length,b=1;b-1?n:void 0}const hHe=({size:e=92})=>ke("direction:ltr;display:grid;grid-template-columns:repeat( 3, 1fr );grid-template-rows:repeat( 3, 1fr );box-sizing:border-box;width:",e,"px;aspect-ratio:1;border-radius:",Se.radiusMedium,";outline:none;","");var mHe={name:"e0dnmk",styles:"cursor:pointer"};const MHe=we("div",{target:"e1r95csn3"})(hHe," border:1px solid transparent;",e=>e.disablePointerEvents?ke("",""):mHe,";"),gHe=we("div",{target:"e1r95csn2"})({name:"1fbxn64",styles:"grid-column:1/-1;box-sizing:border-box;display:grid;grid-template-columns:repeat( 3, 1fr )"}),Zy=we("span",{target:"e1r95csn1"})({name:"e2kws5",styles:"position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;margin:0;padding:0;appearance:none;border:none;outline:none"}),oU=6,zHe=we("span",{target:"e1r95csn0"})("display:block;contain:strict;box-sizing:border-box;width:",oU,"px;aspect-ratio:1;margin:auto;color:",qe.theme.gray[400],";border:",oU/2,"px solid currentColor;",Zy,"[data-active-item] &{color:",qe.gray[900],";transform:scale( calc( 5 / 3 ) );}",Zy,":not([data-active-item]):hover &{color:",qe.theme.accent,";}",Zy,"[data-focus-visible] &{outline:1px solid ",qe.theme.accent,";outline-offset:1px;}@media not ( prefers-reduced-motion ){transition-property:color,transform;transition-duration:120ms;transition-timing-function:linear;}");function OHe({id:e,value:t,...n}){return a.jsx(W1,{text:pHe[t],children:a.jsxs(hi.Item,{id:e,render:a.jsx(Zy,{...n,role:"gridcell"}),children:[a.jsx(Kt,{children:t}),a.jsx(zHe,{role:"presentation"})]})})}const sM=24,iM=7,rU=(sM-3*iM)/2,AHe=2,yHe=4;function vHe({className:e,disablePointerEvents:t=!0,size:n,width:o,height:r,style:s={},value:i="center",...c}){var l,u;return a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${sM} ${sM}`,width:(l=n??o)!==null&&l!==void 0?l:sM,height:(u=n??r)!==null&&u!==void 0?u:sM,role:"presentation",className:$("component-alignment-matrix-control-icon",e),style:{pointerEvents:t?"none":void 0,...s},...c,children:EL.map((d,p)=>{const f=bHe(i)===p?yHe:AHe;return a.jsx($1,{x:rU+p%3*iM+(iM-f)/2,y:rU+Math.floor(p/3)*iM+(iM-f)/2,width:f,height:f,fill:"currentColor"},d)})})}function dae({className:e,id:t,label:n=m("Alignment Matrix Control"),defaultValue:o="center center",value:r,onChange:s,width:i=92,...c}){const l=He(dae,"alignment-matrix-control",t),u=O.useCallback(p=>{const f=fHe(l,p);f&&s?.(f)},[l,s]),d=$("component-alignment-matrix-control",e);return a.jsx(hi,{defaultActiveId:kq(l,o),activeId:kq(l,r),setActiveId:u,rtl:ft(),render:a.jsx(MHe,{...c,"aria-label":n,className:d,id:l,role:"grid",size:i}),children:uae.map((p,f)=>a.jsx(hi.Row,{render:a.jsx(gHe,{role:"row"}),children:p.map(b=>a.jsx(OHe,{id:kq(l,b),value:b},b))},f))})}const sU=Object.assign(dae,{Icon:Object.assign(vHe,{displayName:"AlignmentMatrixControl.Icon"})});function xHe(e){return e==="appear"?"top":"left"}function pae(e){if(e.type==="loading")return"components-animate__loading";const{type:t,origin:n=xHe(t)}=e;if(t==="appear"){const[o,r="center"]=n.split(" ");return $("components-animate__appear",{["is-from-"+r]:r!=="center",["is-from-"+o]:o!=="middle"})}if(t==="slide-in")return $("components-animate__slide-in","is-from-"+n)}const NL=O.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),B2=O.createContext({}),N_=O.createContext(null),LL=typeof window<"u",jL=LL?O.useLayoutEffect:O.useEffect,fae=O.createContext({strict:!1}),L_=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),_He="framerAppearId",bae="data-"+L_(_He),wHe={skipAnimations:!1,useManualTiming:!1};function kHe(e){let t=new Set,n=new Set,o=!1,r=!1;const s=new WeakSet;let i={delta:0,timestamp:0,isProcessing:!1};function c(u){s.has(u)&&(l.schedule(u),e()),u(i)}const l={schedule:(u,d=!1,p=!1)=>{const b=p&&o?t:n;return d&&s.add(u),b.has(u)||b.add(u),u},cancel:u=>{n.delete(u),s.delete(u)},process:u=>{if(i=u,o){r=!0;return}o=!0,[t,n]=[n,t],n.clear(),t.forEach(c),o=!1,r&&(r=!1,l.process(u))}};return l}const dA=["read","resolveKeyframes","update","preRender","render","postRender"],qHe=40;function hae(e,t){let n=!1,o=!0;const r={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,i=dA.reduce((y,x)=>(y[x]=kHe(s),y),{}),{read:c,resolveKeyframes:l,update:u,preRender:d,render:p,postRender:f}=i,b=()=>{const y=performance.now();n=!1,r.delta=o?1e3/60:Math.max(Math.min(y-r.timestamp,qHe),1),r.timestamp=y,r.isProcessing=!0,c.process(r),l.process(r),u.process(r),d.process(r),p.process(r),f.process(r),r.isProcessing=!1,n&&t&&(o=!1,e(b))},h=()=>{n=!0,o=!0,r.isProcessing||e(b)};return{schedule:dA.reduce((y,x)=>{const v=i[x];return y[x]=(M,A=!1,_=!1)=>(n||h(),v.schedule(M,A,_)),y},{}),cancel:y=>{for(let x=0;x{p&&p.update(n,l)});const b=n[bae],h=O.useRef(!!b&&!window.MotionHandoffIsComplete&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,b)));return jL(()=>{p&&(p.updateFeatures(),PL.render(p.render),h.current&&p.animationState&&p.animationState.animateChanges())}),O.useEffect(()=>{p&&(!h.current&&p.animationState&&p.animationState.animateChanges(),h.current=!1,iU||(iU=!0,queueMicrotask(CHe)))}),p}function CHe(){window.MotionHandoffIsComplete=!0}function RHe(e,t,n,o){const{layoutId:r,layout:s,drag:i,dragConstraints:c,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Mae(e.parent)),e.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!i||c&&xb(c),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:o,layoutScroll:l,layoutRoot:u})}function Mae(e){if(e)return e.options.allowProjection!==!1?e.projection:Mae(e.parent)}function WHe(e,t,n){return O.useCallback(o=>{o&&e.mount&&e.mount(o),t&&(o?t.mount(o):t.unmount()),n&&(typeof n=="function"?n(o):xb(n)&&(n.current=o))},[t])}function Hg(e){return typeof e=="string"||Array.isArray(e)}function Ug(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const IL=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],DL=["initial",...IL];function j_(e){return Ug(e.animate)||DL.some(t=>Hg(e[t]))}function gae(e){return!!(j_(e)||e.variants)}function THe(e,t){if(j_(e)){const{initial:n,animate:o}=e;return{initial:n===!1||Hg(n)?n:void 0,animate:Hg(o)?o:void 0}}return e.inherit!==!1?t:{}}function EHe(e){const{initial:t,animate:n}=THe(e,O.useContext(B2));return O.useMemo(()=>({initial:t,animate:n}),[aU(t),aU(n)])}function aU(e){return Array.isArray(e)?e.join(" "):e}const cU={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},N2={};for(const e in cU)N2[e]={isEnabled:t=>cU[e].some(n=>!!t[n])};function BHe(e){for(const t in e)N2[t]={...N2[t],...e[t]}}const Xg=O.createContext({}),NHe=Symbol.for("motionComponentSymbol"),Lo=e=>e;let U8=Lo;function LHe({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:o,Component:r}){e&&BHe(e);function s(c,l){let u;const d={...O.useContext(NL),...c,layoutId:jHe(c)},{isStatic:p}=d,f=EHe(c),b=o(c,p);if(!p&&LL){PHe();const h=IHe(d);u=h.MeasureLayout,f.visualElement=SHe(r,b,d,t,h.ProjectionNode)}return a.jsxs(B2.Provider,{value:f,children:[u&&f.visualElement?a.jsx(u,{visualElement:f.visualElement,...d}):null,n(r,c,WHe(b,f.visualElement,l),b,p,f.visualElement)]})}const i=O.forwardRef(s);return i[NHe]=r,i}function jHe({layoutId:e}){const t=O.useContext(Xg).id;return t&&e!==void 0?t+"-"+e:e}function PHe(e,t){O.useContext(fae).strict}function IHe(e){const{drag:t,layout:n}=N2;if(!t&&!n)return{};const o={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function DHe(e){function t(o,r={}){return LHe(e(o,r))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(o,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const FHe=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function FL(e){return typeof e!="string"||e.includes("-")?!1:!!(FHe.indexOf(e)>-1||/[A-Z]/u.test(e))}const jv={};function $He(e){Object.assign(jv,e)}const A3=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],bd=new Set(A3);function zae(e,{layout:t,layoutId:n}){return bd.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!jv[e]||e==="opacity")}const To=e=>!!(e&&e.getVelocity),Oae=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Hu=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},jM={...Sh,transform:e=>Hu(0,1,e)},pA={...Sh,default:1},PM=e=>Math.round(e*1e5)/1e5,$L=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,VHe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,HHe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function y3(e){return typeof e=="string"}function UHe(e){return e==null}const v3=e=>({test:t=>y3(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Il=v3("deg"),Wa=v3("%"),jt=v3("px"),XHe=v3("vh"),GHe=v3("vw"),lU={...Wa,parse:e=>Wa.parse(e)/100,transform:e=>Wa.transform(e*100)},uU={...Sh,transform:Math.round},VL={borderWidth:jt,borderTopWidth:jt,borderRightWidth:jt,borderBottomWidth:jt,borderLeftWidth:jt,borderRadius:jt,radius:jt,borderTopLeftRadius:jt,borderTopRightRadius:jt,borderBottomRightRadius:jt,borderBottomLeftRadius:jt,width:jt,maxWidth:jt,height:jt,maxHeight:jt,size:jt,top:jt,right:jt,bottom:jt,left:jt,padding:jt,paddingTop:jt,paddingRight:jt,paddingBottom:jt,paddingLeft:jt,margin:jt,marginTop:jt,marginRight:jt,marginBottom:jt,marginLeft:jt,rotate:Il,rotateX:Il,rotateY:Il,rotateZ:Il,scale:pA,scaleX:pA,scaleY:pA,scaleZ:pA,skew:Il,skewX:Il,skewY:Il,distance:jt,translateX:jt,translateY:jt,translateZ:jt,x:jt,y:jt,z:jt,perspective:jt,transformPerspective:jt,opacity:jM,originX:lU,originY:lU,originZ:jt,zIndex:uU,backgroundPositionX:jt,backgroundPositionY:jt,fillOpacity:jM,strokeOpacity:jM,numOctaves:uU},KHe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},YHe=A3.length;function ZHe(e,t,n){let o="",r=!0;for(let s=0;st=>typeof t=="string"&&t.startsWith(e),yae=Aae("--"),QHe=Aae("var(--"),HL=e=>QHe(e)?JHe.test(e.split("/*")[0].trim()):!1,JHe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function UL(e,t,n){const{style:o,vars:r,transformOrigin:s}=e;let i=!1,c=!1;for(const l in t){const u=t[l];if(bd.has(l)){i=!0;continue}else if(yae(l)){r[l]=u;continue}else{const d=Oae(u,VL[l]);l.startsWith("origin")?(c=!0,s[l]=d):o[l]=d}}if(t.transform||(i||n?o.transform=ZHe(t,e.transform,n):o.transform&&(o.transform="none")),c){const{originX:l="50%",originY:u="50%",originZ:d=0}=s;o.transformOrigin=`${l} ${u} ${d}`}}const XL=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function vae(e,t,n){for(const o in t)!To(t[o])&&!zae(o,n)&&(e[o]=t[o])}function eUe({transformTemplate:e},t){return O.useMemo(()=>{const n=XL();return UL(n,t,e),Object.assign({},n.vars,n.style)},[t])}function tUe(e,t){const n=e.style||{},o={};return vae(o,n,e),Object.assign(o,eUe(e,t)),o}function nUe(e,t){const n={},o=tUe(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const oUe=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Pv(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||oUe.has(e)}let xae=e=>!Pv(e);function rUe(e){e&&(xae=t=>t.startsWith("on")?!Pv(t):e(t))}try{rUe(require("@emotion/is-prop-valid").default)}catch{}function sUe(e,t,n){const o={};for(const r in e)r==="values"&&typeof e.values=="object"||(xae(r)||n===!0&&Pv(r)||!t&&!Pv(r)||e.draggable&&r.startsWith("onDrag"))&&(o[r]=e[r]);return o}function dU(e,t,n){return typeof e=="string"?e:jt.transform(t+n*e)}function iUe(e,t,n){const o=dU(t,e.x,e.width),r=dU(n,e.y,e.height);return`${o} ${r}`}const aUe={offset:"stroke-dashoffset",array:"stroke-dasharray"},cUe={offset:"strokeDashoffset",array:"strokeDasharray"};function lUe(e,t,n=1,o=0,r=!0){e.pathLength=1;const s=r?aUe:cUe;e[s.offset]=jt.transform(-o);const i=jt.transform(t),c=jt.transform(n);e[s.array]=`${i} ${c}`}function GL(e,{attrX:t,attrY:n,attrScale:o,originX:r,originY:s,pathLength:i,pathSpacing:c=1,pathOffset:l=0,...u},d,p){if(UL(e,u,p),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:b,dimensions:h}=e;f.transform&&(h&&(b.transform=f.transform),delete f.transform),h&&(r!==void 0||s!==void 0||b.transform)&&(b.transformOrigin=iUe(h,r!==void 0?r:.5,s!==void 0?s:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),o!==void 0&&(f.scale=o),i!==void 0&&lUe(f,i,c,l,!1)}const _ae=()=>({...XL(),attrs:{}}),KL=e=>typeof e=="string"&&e.toLowerCase()==="svg";function uUe(e,t,n,o){const r=O.useMemo(()=>{const s=_ae();return GL(s,t,KL(o),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};vae(s,e.style,e),r.style={...s,...r.style}}return r}function dUe(e=!1){return(n,o,r,{latestValues:s},i)=>{const l=(FL(n)?uUe:nUe)(o,s,i,n),u=sUe(o,typeof n=="string",e),d=n!==O.Fragment?{...u,...l,ref:r}:{},{children:p}=o,f=O.useMemo(()=>To(p)?p.get():p,[p]);return O.createElement(n,{...d,children:f})}}function wae(e,{style:t,vars:n},o,r){Object.assign(e.style,t,r&&r.getProjectionStyles(o));for(const s in n)e.style.setProperty(s,n[s])}const kae=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function qae(e,t,n,o){wae(e,t,void 0,o);for(const r in t.attrs)e.setAttribute(kae.has(r)?r:L_(r),t.attrs[r])}function YL(e,t,n){var o;const{style:r}=e,s={};for(const i in r)(To(r[i])||t.style&&To(t.style[i])||zae(i,e)||((o=n?.getValue(i))===null||o===void 0?void 0:o.liveStyle)!==void 0)&&(s[i]=r[i]);return n&&r&&typeof r.willChange=="string"&&(n.applyWillChange=!1),s}function Sae(e,t,n){const o=YL(e,t,n);for(const r in e)if(To(e[r])||To(t[r])){const s=A3.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;o[s]=e[r]}return o}function pU(e){const t=[{},{}];return e?.values.forEach((n,o)=>{t[0][o]=n.get(),t[1][o]=n.getVelocity()}),t}function ZL(e,t,n,o){if(typeof t=="function"){const[r,s]=pU(o);t=t(n!==void 0?n:e.custom,r,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,s]=pU(o);t=t(n!==void 0?n:e.custom,r,s)}return t}function QL(e){const t=O.useRef(null);return t.current===null&&(t.current=e()),t.current}const X8=e=>Array.isArray(e),pUe=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),fUe=e=>X8(e)?e[e.length-1]||0:e;function Qy(e){const t=To(e)?e.get():e;return pUe(t)?t.toValue():t}const Cae=new Set(["opacity","clipPath","filter","transform"]);function Rae(e){if(bd.has(e))return"transform";if(Cae.has(e))return L_(e)}function P_(e,t){e.indexOf(t)===-1&&e.push(t)}function I_(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function bUe({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:o},r,s,i,c){const l={latestValues:mUe(r,s,i,c?!1:e,t),renderState:n()};return o&&(l.mount=u=>o(r,u,l)),l}const Wae=e=>(t,n)=>{const o=O.useContext(B2),r=O.useContext(N_),s=()=>bUe(e,t,o,r,n);return n?s():QL(s)};function hUe(e,t){const n=Rae(t);n&&P_(e,n)}function fU(e,t,n){const o=Array.isArray(t)?t:[t];for(let r=0;r{for(const x in z){let v=z[x];if(Array.isArray(v)){const M=h?v.length-1:0;v=v[M]}v!==null&&(i[x]=v)}for(const x in y)i[x]=y[x]}),l&&(p&&d!==!1&&!Ug(p)&&fU(e,p,z=>{for(const y in z)hUe(c,y)}),c.length&&(i.willChange=c.join(","))),i}const{schedule:K0,cancel:tl,state:ao,steps:qq}=hae(typeof requestAnimationFrame<"u"?requestAnimationFrame:Lo,!0),MUe={useVisualState:Wae({scrapeMotionValuesFromProps:Sae,createRenderState:_ae,onMount:(e,t,{renderState:n,latestValues:o})=>{K0.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),K0.render(()=>{GL(n,o,KL(t.tagName),e.transformTemplate),qae(t,n)})}})},gUe={useVisualState:Wae({applyWillChange:!0,scrapeMotionValuesFromProps:YL,createRenderState:XL})};function zUe(e,{forwardMotionProps:t=!1},n,o){return{...FL(e)?MUe:gUe,preloadedFeatures:n,useRender:dUe(t),createVisualElement:o,Component:e}}function kc(e,t,n,o={passive:!0}){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n)}const Tae=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function D_(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const OUe=e=>t=>Tae(t)&&e(t,D_(t));function Bc(e,t,n,o){return kc(e,t,OUe(n),o)}const AUe=(e,t)=>n=>t(e(n)),Nc=(...e)=>e.reduce(AUe);function Eae(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const bU=Eae("dragHorizontal"),hU=Eae("dragVertical");function Bae(e){let t=!1;if(e==="y")t=hU();else if(e==="x")t=bU();else{const n=bU(),o=hU();n&&o?t=()=>{n(),o()}:(n&&n(),o&&o())}return t}function Nae(){const e=Bae(!0);return e?(e(),!1):!0}class hd{constructor(t){this.isMounted=!1,this.node=t}update(){}}function mU(e,t){const n=t?"pointerenter":"pointerleave",o=t?"onHoverStart":"onHoverEnd",r=(s,i)=>{if(s.pointerType==="touch"||Nae())return;const c=e.getProps();e.animationState&&c.whileHover&&e.animationState.setActive("whileHover",t);const l=c[o];l&&K0.postRender(()=>l(s,i))};return Bc(e.current,n,r,{passive:!e.getProps()[o]})}class yUe extends hd{mount(){this.unmount=Nc(mU(this.node,!0),mU(this.node,!1))}unmount(){}}class vUe extends hd{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Nc(kc(this.node.current,"focus",()=>this.onFocus()),kc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Lae=(e,t)=>t?e===t?!0:Lae(e,t.parentElement):!1;function Sq(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,D_(n))}class xUe extends hd{constructor(){super(...arguments),this.removeStartListeners=Lo,this.removeEndListeners=Lo,this.removeAccessibleListeners=Lo,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const o=this.node.getProps(),s=Bc(window,"pointerup",(c,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:d,globalTapTarget:p}=this.node.getProps(),f=!p&&!Lae(this.node.current,c.target)?d:u;f&&K0.update(()=>f(c,l))},{passive:!(o.onTap||o.onPointerUp)}),i=Bc(window,"pointercancel",(c,l)=>this.cancelPress(c,l),{passive:!(o.onTapCancel||o.onPointerCancel)});this.removeEndListeners=Nc(s,i),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=s=>{if(s.key!=="Enter"||this.isPressing)return;const i=c=>{c.key!=="Enter"||!this.checkPressEnd()||Sq("up",(l,u)=>{const{onTap:d}=this.node.getProps();d&&K0.postRender(()=>d(l,u))})};this.removeEndListeners(),this.removeEndListeners=kc(this.node.current,"keyup",i),Sq("down",(c,l)=>{this.startPress(c,l)})},n=kc(this.node.current,"keydown",t),o=()=>{this.isPressing&&Sq("cancel",(s,i)=>this.cancelPress(s,i))},r=kc(this.node.current,"blur",o);this.removeAccessibleListeners=Nc(n,r)}}startPress(t,n){this.isPressing=!0;const{onTapStart:o,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),o&&K0.postRender(()=>o(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Nae()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:o}=this.node.getProps();o&&K0.postRender(()=>o(t,n))}mount(){const t=this.node.getProps(),n=Bc(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),o=kc(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Nc(n,o)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const G8=new WeakMap,Cq=new WeakMap,_Ue=e=>{const t=G8.get(e.target);t&&t(e)},wUe=e=>{e.forEach(_Ue)};function kUe({root:e,...t}){const n=e||document;Cq.has(n)||Cq.set(n,{});const o=Cq.get(n),r=JSON.stringify(t);return o[r]||(o[r]=new IntersectionObserver(wUe,{root:e,...t})),o[r]}function qUe(e,t,n){const o=kUe(t);return G8.set(e,n),o.observe(e),()=>{G8.delete(e),o.unobserve(e)}}const SUe={some:0,all:1};class CUe extends hd{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:o,amount:r="some",once:s}=t,i={root:n?n.current:void 0,rootMargin:o,threshold:typeof r=="number"?r:SUe[r]},c=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:p}=this.node.getProps(),f=u?d:p;f&&f(l)};return qUe(this.node.current,i,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(RUe(t,n))&&this.startObserver()}unmount(){}}function RUe({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const WUe={inView:{Feature:CUe},tap:{Feature:xUe},focus:{Feature:vUe},hover:{Feature:yUe}};function jae(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let o=0;oe*1e3,jc=e=>e/1e3,TUe={type:"spring",stiffness:500,damping:25,restSpeed:10},EUe=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),BUe={type:"keyframes",duration:.8},NUe={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},LUe=(e,{keyframes:t})=>t.length>2?BUe:bd.has(e)?e.startsWith("scale")?EUe(t[1]):TUe:NUe;function jUe({when:e,delay:t,delayChildren:n,staggerChildren:o,staggerDirection:r,repeat:s,repeatType:i,repeatDelay:c,from:l,elapsed:u,...d}){return!!Object.keys(d).length}function JL(e,t){return e[t]||e.default||e}const PUe=e=>e!==null;function $_(e,{repeat:t,repeatType:n="loop"},o){const r=e.filter(PUe),s=t&&n!=="loop"&&t%2===1?0:r.length-1;return!s||o===void 0?r[s]:o}let Jy;function IUe(){Jy=void 0}const yu={now:()=>(Jy===void 0&&yu.set(ao.isProcessing||wHe.useManualTiming?ao.timestamp:performance.now()),Jy),set:e=>{Jy=e,queueMicrotask(IUe)}},Pae=e=>/^0[^.\s]+$/u.test(e);function DUe(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Pae(e):!0}const Iae=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),FUe=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function $Ue(e){const t=FUe.exec(e);if(!t)return[,];const[,n,o,r]=t;return[`--${n??o}`,r]}function Dae(e,t,n=1){const[o,r]=$Ue(e);if(!o)return;const s=window.getComputedStyle(t).getPropertyValue(o);if(s){const i=s.trim();return Iae(i)?parseFloat(i):i}return HL(r)?Dae(r,t,n+1):r}const VUe=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),MU=e=>e===Sh||e===jt,gU=(e,t)=>parseFloat(e.split(", ")[t]),zU=(e,t)=>(n,{transform:o})=>{if(o==="none"||!o)return 0;const r=o.match(/^matrix3d\((.+)\)$/u);if(r)return gU(r[1],t);{const s=o.match(/^matrix\((.+)\)$/u);return s?gU(s[1],e):0}},HUe=new Set(["x","y","z"]),UUe=A3.filter(e=>!HUe.has(e));function XUe(e){const t=[];return UUe.forEach(n=>{const o=e.getValue(n);o!==void 0&&(t.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))}),t}const L2={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:zU(4,13),y:zU(5,14)};L2.translateX=L2.x;L2.translateY=L2.y;const Fae=e=>t=>t.test(e),GUe={test:e=>e==="auto",parse:e=>e},$ae=[Sh,jt,Wa,Il,GHe,XHe,GUe],OU=e=>$ae.find(Fae(e)),dp=new Set;let K8=!1,Y8=!1;function Vae(){if(Y8){const e=Array.from(dp).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),n=new Map;t.forEach(o=>{const r=XUe(o);r.length&&(n.set(o,r),o.render())}),e.forEach(o=>o.measureInitialState()),t.forEach(o=>{o.render();const r=n.get(o);r&&r.forEach(([s,i])=>{var c;(c=o.getValue(s))===null||c===void 0||c.set(i)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Y8=!1,K8=!1,dp.forEach(e=>e.complete()),dp.clear()}function Hae(){dp.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Y8=!0)})}function KUe(){Hae(),Vae()}class e7{constructor(t,n,o,r,s,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=o,this.motionValue=r,this.element=s,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(dp.add(this),K8||(K8=!0,K0.read(Hae),K0.resolveKeyframes(Vae))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:o,motionValue:r}=this;for(let s=0;sn=>!!(y3(n)&&HHe.test(n)&&n.startsWith(e)||t&&!UHe(n)&&Object.prototype.hasOwnProperty.call(n,t)),Uae=(e,t,n)=>o=>{if(!y3(o))return o;const[r,s,i,c]=o.match($L);return{[e]:parseFloat(r),[t]:parseFloat(s),[n]:parseFloat(i),alpha:c!==void 0?parseFloat(c):1}},YUe=e=>Hu(0,255,e),Rq={...Sh,transform:e=>Math.round(YUe(e))},tp={test:t7("rgb","red"),parse:Uae("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:o=1})=>"rgba("+Rq.transform(e)+", "+Rq.transform(t)+", "+Rq.transform(n)+", "+PM(jM.transform(o))+")"};function ZUe(e){let t="",n="",o="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),o=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),o=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,o+=o,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}}const Z8={test:t7("#"),parse:ZUe,transform:tp.transform},_b={test:t7("hsl","hue"),parse:Uae("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+Wa.transform(PM(t))+", "+Wa.transform(PM(n))+", "+PM(jM.transform(o))+")"},Co={test:e=>tp.test(e)||Z8.test(e)||_b.test(e),parse:e=>tp.test(e)?tp.parse(e):_b.test(e)?_b.parse(e):Z8.parse(e),transform:e=>y3(e)?e:e.hasOwnProperty("red")?tp.transform(e):_b.transform(e)};function QUe(e){var t,n;return isNaN(e)&&y3(e)&&(((t=e.match($L))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(VHe))===null||n===void 0?void 0:n.length)||0)>0}const Xae="number",Gae="color",JUe="var",eXe="var(",AU="${}",tXe=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Gg(e){const t=e.toString(),n=[],o={color:[],number:[],var:[]},r=[];let s=0;const c=t.replace(tXe,l=>(Co.test(l)?(o.color.push(s),r.push(Gae),n.push(Co.parse(l))):l.startsWith(eXe)?(o.var.push(s),r.push(JUe),n.push(l)):(o.number.push(s),r.push(Xae),n.push(parseFloat(l))),++s,AU)).split(AU);return{values:n,split:c,indexes:o,types:r}}function Kae(e){return Gg(e).values}function Yae(e){const{split:t,types:n}=Gg(e),o=t.length;return r=>{let s="";for(let i=0;itypeof e=="number"?0:e;function oXe(e){const t=Kae(e);return Yae(e)(t.map(nXe))}const Uu={test:QUe,parse:Kae,createTransformer:Yae,getAnimatableNone:oXe},rXe=new Set(["brightness","contrast","saturate","opacity"]);function sXe(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[o]=n.match($L)||[];if(!o)return e;const r=n.replace(o,"");let s=rXe.has(t)?1:0;return o!==n&&(s*=100),t+"("+s+r+")"}const iXe=/\b([a-z-]*)\(.*?\)/gu,Q8={...Uu,getAnimatableNone:e=>{const t=e.match(iXe);return t?t.map(sXe).join(" "):e}},aXe={...VL,color:Co,backgroundColor:Co,outlineColor:Co,fill:Co,stroke:Co,borderColor:Co,borderTopColor:Co,borderRightColor:Co,borderBottomColor:Co,borderLeftColor:Co,filter:Q8,WebkitFilter:Q8},n7=e=>aXe[e];function Zae(e,t){let n=n7(e);return n!==Q8&&(n=Uu),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const cXe=new Set(["auto","none","0"]);function lXe(e,t,n){let o=0,r;for(;o{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function Jae(e){let t;return()=>(t===void 0&&(t=e()),t)}const yU=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Uu.test(e)||e==="0")&&!e.startsWith("url("));function uXe(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n{this.resolveFinishedPromise=t})}}function tce(e,t){return t?e*(1e3/t):0}const pXe=5;function nce(e,t,n){const o=Math.max(t-pXe,0);return tce(n-e(o),t-o)}const Wq=.001,fXe=.01,bXe=10,hXe=.05,mXe=1;function MXe({duration:e=800,bounce:t=.25,velocity:n=0,mass:o=1}){let r,s,i=1-t;i=Hu(hXe,mXe,i),e=Hu(fXe,bXe,jc(e)),i<1?(r=u=>{const d=u*i,p=d*e,f=d-n,b=J8(u,i),h=Math.exp(-p);return Wq-f/b*h},s=u=>{const p=u*i*e,f=p*n+n,b=Math.pow(i,2)*Math.pow(u,2)*e,h=Math.exp(-p),g=J8(Math.pow(u,2),i);return(-r(u)+Wq>0?-1:1)*((f-b)*h)/g}):(r=u=>{const d=Math.exp(-u*e),p=(u-n)*e+1;return-Wq+d*p},s=u=>{const d=Math.exp(-u*e),p=(n-u)*(e*e);return d*p});const c=5/e,l=zXe(r,s,c);if(e=Lc(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*o;return{stiffness:u,damping:i*2*Math.sqrt(o*u),duration:e}}}const gXe=12;function zXe(e,t,n){let o=n;for(let r=1;re[n]!==void 0)}function yXe(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!vU(e,AXe)&&vU(e,OXe)){const n=MXe(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function oce({keyframes:e,restDelta:t,restSpeed:n,...o}){const r=e[0],s=e[e.length-1],i={done:!1,value:r},{stiffness:c,damping:l,mass:u,duration:d,velocity:p,isResolvedFromDuration:f}=yXe({...o,velocity:-jc(o.velocity||0)}),b=p||0,h=l/(2*Math.sqrt(c*u)),g=s-r,z=jc(Math.sqrt(c/u)),y=Math.abs(g)<5;n||(n=y?.01:2),t||(t=y?.005:.5);let x;if(h<1){const v=J8(z,h);x=M=>{const A=Math.exp(-h*z*M);return s-A*((b+h*z*g)/v*Math.sin(v*M)+g*Math.cos(v*M))}}else if(h===1)x=v=>s-Math.exp(-z*v)*(g+(b+z*g)*v);else{const v=z*Math.sqrt(h*h-1);x=M=>{const A=Math.exp(-h*z*M),_=Math.min(v*M,300);return s-A*((b+h*z*g)*Math.sinh(_)+v*g*Math.cosh(_))/v}}return{calculatedDuration:f&&d||null,next:v=>{const M=x(v);if(f)i.done=v>=d;else{let A=0;h<1&&(A=v===0?Lc(b):nce(x,v,M));const _=Math.abs(A)<=n,w=Math.abs(s-M)<=t;i.done=_&&w}return i.value=i.done?s:M,i}}}function xU({keyframes:e,velocity:t=0,power:n=.8,timeConstant:o=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:i,min:c,max:l,restDelta:u=.5,restSpeed:d}){const p=e[0],f={done:!1,value:p},b=k=>c!==void 0&&kl,h=k=>c===void 0?l:l===void 0||Math.abs(c-k)-g*Math.exp(-k/o),v=k=>y+x(k),M=k=>{const q=x(k),S=v(k);f.done=Math.abs(q)<=u,f.value=f.done?y:S};let A,_;const w=k=>{b(f.value)&&(A=k,_=oce({keyframes:[f.value,h(f.value)],velocity:nce(v,k,f.value),damping:r,stiffness:s,restDelta:u,restSpeed:d}))};return w(0),{calculatedDuration:null,next:k=>{let q=!1;return!_&&A===void 0&&(q=!0,M(k),w(k)),A!==void 0&&k>=A?_.next(k-A):(!q&&M(k),f)}}}const rce=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,vXe=1e-7,xXe=12;function _Xe(e,t,n,o,r){let s,i,c=0;do i=t+(n-t)/2,s=rce(i,o,r)-e,s>0?n=i:t=i;while(Math.abs(s)>vXe&&++c_Xe(s,0,1,e,n);return s=>s===0||s===1?s:rce(r(s),t,o)}const wXe=x3(.42,0,1,1),kXe=x3(0,0,.58,1),sce=x3(.42,0,.58,1),qXe=e=>Array.isArray(e)&&typeof e[0]!="number",ice=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ace=e=>t=>1-e(1-t),o7=e=>1-Math.sin(Math.acos(e)),cce=ace(o7),SXe=ice(o7),lce=x3(.33,1.53,.69,.99),r7=ace(lce),CXe=ice(r7),RXe=e=>(e*=2)<1?.5*r7(e):.5*(2-Math.pow(2,-10*(e-1))),_U={linear:Lo,easeIn:wXe,easeInOut:sce,easeOut:kXe,circIn:o7,circInOut:SXe,circOut:cce,backIn:r7,backInOut:CXe,backOut:lce,anticipate:RXe},wU=e=>{if(Array.isArray(e)){U8(e.length===4);const[t,n,o,r]=e;return x3(t,n,o,r)}else if(typeof e=="string")return U8(_U[e]!==void 0),_U[e];return e},Kg=(e,t,n)=>{const o=t-e;return o===0?1:(n-e)/o},$n=(e,t,n)=>e+(t-e)*n;function Tq(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function WXe({hue:e,saturation:t,lightness:n,alpha:o}){e/=360,t/=100,n/=100;let r=0,s=0,i=0;if(!t)r=s=i=n;else{const c=n<.5?n*(1+t):n+t-n*t,l=2*n-c;r=Tq(l,c,e+1/3),s=Tq(l,c,e),i=Tq(l,c,e-1/3)}return{red:Math.round(r*255),green:Math.round(s*255),blue:Math.round(i*255),alpha:o}}function Iv(e,t){return n=>n>0?t:e}const Eq=(e,t,n)=>{const o=e*e,r=n*(t*t-o)+o;return r<0?0:Math.sqrt(r)},TXe=[Z8,tp,_b],EXe=e=>TXe.find(t=>t.test(e));function kU(e){const t=EXe(e);if(!t)return!1;let n=t.parse(e);return t===_b&&(n=WXe(n)),n}const qU=(e,t)=>{const n=kU(e),o=kU(t);if(!n||!o)return Iv(e,t);const r={...n};return s=>(r.red=Eq(n.red,o.red,s),r.green=Eq(n.green,o.green,s),r.blue=Eq(n.blue,o.blue,s),r.alpha=$n(n.alpha,o.alpha,s),tp.transform(r))},eW=new Set(["none","hidden"]);function BXe(e,t){return eW.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function NXe(e,t){return n=>$n(e,t,n)}function s7(e){return typeof e=="number"?NXe:typeof e=="string"?HL(e)?Iv:Co.test(e)?qU:PXe:Array.isArray(e)?uce:typeof e=="object"?Co.test(e)?qU:LXe:Iv}function uce(e,t){const n=[...e],o=n.length,r=e.map((s,i)=>s7(s)(s,t[i]));return s=>{for(let i=0;i{for(const s in o)n[s]=o[s](r);return n}}function jXe(e,t){var n;const o=[],r={color:0,var:0,number:0};for(let s=0;s{const n=Uu.createTransformer(t),o=Gg(e),r=Gg(t);return o.indexes.var.length===r.indexes.var.length&&o.indexes.color.length===r.indexes.color.length&&o.indexes.number.length>=r.indexes.number.length?eW.has(e)&&!r.values.length||eW.has(t)&&!o.values.length?BXe(e,t):Nc(uce(jXe(o,r),r.values),n):Iv(e,t)};function dce(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?$n(e,t,n):s7(e)(e,t)}function IXe(e,t,n){const o=[],r=n||dce,s=e.length-1;for(let i=0;it[0];if(s===2&&e[0]===e[1])return()=>t[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const i=IXe(t,o,r),c=i.length,l=u=>{let d=0;if(c>1)for(;dl(Hu(e[0],e[s-1],u)):l}function FXe(e,t){const n=e[e.length-1];for(let o=1;o<=t;o++){const r=Kg(0,t,o);e.push($n(n,1,r))}}function $Xe(e){const t=[0];return FXe(t,e.length-1),t}function VXe(e,t){return e.map(n=>n*t)}function HXe(e,t){return e.map(()=>t||sce).splice(0,e.length-1)}function Dv({duration:e=300,keyframes:t,times:n,ease:o="easeInOut"}){const r=qXe(o)?o.map(wU):wU(o),s={done:!1,value:t[0]},i=VXe(n&&n.length===t.length?n:$Xe(t),e),c=DXe(i,t,{ease:Array.isArray(r)?r:HXe(t,r)});return{calculatedDuration:e,next:l=>(s.value=c(l),s.done=l>=e,s)}}const SU=2e4;function UXe(e){let t=0;const n=50;let o=e.next(t);for(;!o.done&&t=SU?1/0:t}const XXe=e=>{const t=({timestamp:n})=>e(n);return{start:()=>K0.update(t,!0),stop:()=>tl(t),now:()=>ao.isProcessing?ao.timestamp:yu.now()}},GXe={decay:xU,inertia:xU,tween:Dv,keyframes:Dv,spring:oce},KXe=e=>e/100;class i7 extends ece{constructor({KeyframeResolver:t=e7,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:o,motionValue:r,keyframes:s}=this.options,i=(c,l)=>this.onKeyframesResolved(c,l);o&&r&&r.owner?this.resolver=r.owner.resolveKeyframes(s,i,o,r):this.resolver=new t(s,i,o,r),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:o=0,repeatDelay:r=0,repeatType:s,velocity:i=0}=this.options,c=GXe[n]||Dv;let l,u;c!==Dv&&typeof t[0]!="number"&&(l=Nc(KXe,dce(t[0],t[1])),t=[0,100]);const d=c({...this.options,keyframes:t});s==="mirror"&&(u=c({...this.options,keyframes:[...t].reverse(),velocity:-i})),d.calculatedDuration===null&&(d.calculatedDuration=UXe(d));const{calculatedDuration:p}=d,f=p+r,b=f*(o+1)-r;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:p,resolvedDuration:f,totalDuration:b}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:o}=this;if(!o){const{keyframes:k}=this.options;return{done:!0,value:k[k.length-1]}}const{finalKeyframe:r,generator:s,mirroredGenerator:i,mapPercentToKeyframes:c,keyframes:l,calculatedDuration:u,totalDuration:d,resolvedDuration:p}=o;if(this.startTime===null)return s.next(0);const{delay:f,repeat:b,repeatType:h,repeatDelay:g,onUpdate:z}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const y=this.currentTime-f*(this.speed>=0?1:-1),x=this.speed>=0?y<0:y>d;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let v=this.currentTime,M=s;if(b){const k=Math.min(this.currentTime,d)/p;let q=Math.floor(k),S=k%1;!S&&k>=1&&(S=1),S===1&&q--,q=Math.min(q,b+1),!!(q%2)&&(h==="reverse"?(S=1-S,g&&(S-=g/p)):h==="mirror"&&(M=i)),v=Hu(0,1,S)*p}const A=x?{done:!1,value:l[0]}:M.next(v);c&&(A.value=c(A.value));let{done:_}=A;!x&&u!==null&&(_=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const w=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&_);return w&&r!==void 0&&(A.value=$_(l,this.options,r)),z&&z(A.value),w&&this.finish(),A}get duration(){const{resolved:t}=this;return t?jc(t.calculatedDuration):0}get time(){return jc(this.currentTime)}set time(t){t=Lc(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=jc(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=XXe,onPlay:n}=this.options;this.driver||(this.driver=t(r=>this.tick(r))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=o),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const pce=e=>Array.isArray(e)&&typeof e[0]=="number";function fce(e){return!!(!e||typeof e=="string"&&e in a7||pce(e)||Array.isArray(e)&&e.every(fce))}const aM=([e,t,n,o])=>`cubic-bezier(${e}, ${t}, ${n}, ${o})`,a7={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:aM([0,.65,.55,1]),circOut:aM([.55,0,1,.45]),backIn:aM([.31,.01,.66,-.59]),backOut:aM([.33,1.53,.69,.99])};function YXe(e){return bce(e)||a7.easeOut}function bce(e){if(e)return pce(e)?aM(e):Array.isArray(e)?e.map(YXe):a7[e]}function ZXe(e,t,n,{delay:o=0,duration:r=300,repeat:s=0,repeatType:i="loop",ease:c,times:l}={}){const u={[t]:n};l&&(u.offset=l);const d=bce(c);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:o,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:i==="reverse"?"alternate":"normal"})}const QXe=Jae(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Fv=10,JXe=2e4;function eGe(e){return e.type==="spring"||!fce(e.ease)}function tGe(e,t){const n=new i7({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let o={done:!1,value:e[0]};const r=[];let s=0;for(;!o.done&&sthis.onKeyframesResolved(s,i),n,o),this.resolver.scheduleResolve()}initPlayback(t,n){var o;let{duration:r=300,times:s,ease:i,type:c,motionValue:l,name:u}=this.options;if(!(!((o=l.owner)===null||o===void 0)&&o.current))return!1;if(eGe(this.options)){const{onComplete:p,onUpdate:f,motionValue:b,...h}=this.options,g=tGe(t,h);t=g.keyframes,t.length===1&&(t[1]=t[0]),r=g.duration,s=g.times,i=g.ease,c="keyframes"}const d=ZXe(l.owner.current,u,t,{...this.options,duration:r,times:s,ease:i});return d.startTime=yu.now(),this.pendingTimeline?(d.timeline=this.pendingTimeline,this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:p}=this.options;l.set($_(t,this.options,n)),p&&p(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:s,type:c,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return jc(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return jc(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:o}=n;o.currentTime=Lc(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:o}=n;o.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Lo;const{animation:o}=n;o.timeline=t,o.onfinish=null}return Lo}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:o,duration:r,type:s,ease:i,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:d,onComplete:p,...f}=this.options,b=new i7({...f,keyframes:o,duration:r,type:s,ease:i,times:c,isGenerator:!0}),h=Lc(this.time);u.setWithVelocity(b.sample(h-Fv).value,b.sample(h).value,Fv)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:o,repeatDelay:r,repeatType:s,damping:i,type:c}=t;return QXe()&&o&&Cae.has(o)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!r&&s!=="mirror"&&i!==0&&c!=="inertia"}}function nGe(e,t){let n;const o=()=>{const{currentTime:r}=t,i=(r===null?0:r.value)/100;n!==i&&e(i),n=i};return K0.update(o,!0),()=>tl(o)}const oGe=Jae(()=>window.ScrollTimeline!==void 0);class rGe{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let o=0;o{if(oGe()&&o.attachTimeline)o.attachTimeline(t);else return o.pause(),nGe(r=>{o.time=o.duration*r},t)});return()=>{n.forEach((o,r)=>{o&&o(),this.animations[r].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get duration(){let t=0;for(let n=0;nn[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const c7=(e,t,n,o={},r,s,i)=>c=>{const l=JL(o,e)||{},u=l.delay||o.delay||0;let{elapsed:d=0}=o;d=d-Lc(u);let p={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-d,onUpdate:b=>{t.set(b),l.onUpdate&&l.onUpdate(b)},onComplete:()=>{c(),l.onComplete&&l.onComplete(),i&&i()},onStop:i,name:e,motionValue:t,element:s?void 0:r};jUe(l)||(p={...p,...LUe(e,p)}),p.duration&&(p.duration=Lc(p.duration)),p.repeatDelay&&(p.repeatDelay=Lc(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let f=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(p.duration=0,p.delay===0&&(f=!0)),f&&!s&&t.get()!==void 0){const b=$_(p.keyframes,l);if(b!==void 0)return K0.update(()=>{p.onUpdate(b),p.onComplete()}),new rGe([])}return!s&&CU.supports(p)?new CU(p):new i7(p)};class l7{constructor(){this.subscriptions=[]}add(t){return P_(this.subscriptions,t),()=>I_(this.subscriptions,t)}notify(t,n,o){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,o);else for(let s=0;s!isNaN(parseFloat(e));class hce{constructor(t,n={}){this.version="11.3.24",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(o,r=!0)=>{const s=yu.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=yu.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=sGe(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new l7);const o=this.events[t].add(n);return t==="change"?()=>{o(),K0.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,o){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=yu.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>RU)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,RU);return tce(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Yg(e,t){return new hce(e,t)}function iGe(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Yg(n))}function aGe(e,t){const n=F_(e,t);let{transitionEnd:o={},transition:r={},...s}=n||{};s={...s,...o};for(const i in s){const c=fUe(s[i]);iGe(e,i,c)}}function mce(e){return e.getProps()[bae]}class cGe extends hce{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(t){const n=Rae(t);if(!n)return;const o=this.counts.get(n)||0;this.counts.set(n,o+1),o===0&&(this.output.push(n),this.update());let r=!1;return()=>{if(r)return;r=!0;const s=this.counts.get(n)-1;this.counts.set(n,s),s===0&&(I_(this.output,n),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}function lGe(e){return!!(To(e)&&e.add)}function tW(e,t){var n;if(!e.applyWillChange)return;let o=e.getValue("willChange");if(!o&&!(!((n=e.props.style)===null||n===void 0)&&n.willChange)&&(o=new cGe("auto"),e.addValue("willChange",o)),lGe(o))return o.add(t)}function uGe({protectedKeys:e,needsAnimating:t},n){const o=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,o}function Mce(e,t,{delay:n=0,transitionOverride:o,type:r}={}){var s;let{transition:i=e.getDefaultTransition(),transitionEnd:c,...l}=t;o&&(i=o);const u=[],d=r&&e.animationState&&e.animationState.getState()[r];for(const p in l){const f=e.getValue(p,(s=e.latestValues[p])!==null&&s!==void 0?s:null),b=l[p];if(b===void 0||d&&uGe(d,p))continue;const h={delay:n,elapsed:0,...JL(i||{},p)};let g=!1;if(window.MotionHandoffAnimation){const y=mce(e);if(y){const x=window.MotionHandoffAnimation(y,p,K0);x!==null&&(h.elapsed=x,g=!0)}}f.start(c7(p,f,b,e.shouldReduceMotion&&bd.has(p)?{type:!1}:h,e,g,tW(e,p)));const z=f.animation;z&&u.push(z)}return c&&Promise.all(u).then(()=>{K0.update(()=>{c&&aGe(e,c)})}),u}function nW(e,t,n={}){var o;const r=F_(e,t,n.type==="exit"?(o=e.presenceContext)===null||o===void 0?void 0:o.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const i=r?()=>Promise.all(Mce(e,r,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:p,staggerDirection:f}=s;return dGe(e,t,d+u,p,f,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[u,d]=l==="beforeChildren"?[i,c]:[c,i];return u().then(()=>d())}else return Promise.all([i(),c(n.delay)])}function dGe(e,t,n=0,o=0,r=1,s){const i=[],c=(e.variantChildren.size-1)*o,l=r===1?(u=0)=>u*o:(u=0)=>c-u*o;return Array.from(e.variantChildren).sort(pGe).forEach((u,d)=>{u.notify("AnimationStart",t),i.push(nW(u,t,{...s,delay:n+l(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(i)}function pGe(e,t){return e.sortNodePosition(t)}function fGe(e,t,n={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){const r=t.map(s=>nW(e,s,n));o=Promise.all(r)}else if(typeof t=="string")o=nW(e,t,n);else{const r=typeof t=="function"?F_(e,t,n.custom):t;o=Promise.all(Mce(e,r,n))}return o.then(()=>{e.notify("AnimationComplete",t)})}const bGe=[...IL].reverse(),hGe=IL.length;function mGe(e){return t=>Promise.all(t.map(({animation:n,options:o})=>fGe(e,n,o)))}function MGe(e){let t=mGe(e),n=WU(),o=!0;const r=l=>(u,d)=>{var p;const f=F_(e,d,l==="exit"?(p=e.presenceContext)===null||p===void 0?void 0:p.custom:void 0);if(f){const{transition:b,transitionEnd:h,...g}=f;u={...u,...g,...h}}return u};function s(l){t=l(e)}function i(l){const u=e.getProps(),d=e.getVariantContext(!0)||{},p=[],f=new Set;let b={},h=1/0;for(let z=0;zh&&M,q=!1;const S=Array.isArray(v)?v:[v];let C=S.reduce(r(y),{});A===!1&&(C={});const{prevResolvedValues:T={}}=x,W={...T,...C},B=N=>{k=!0,f.has(N)&&(q=!0,f.delete(N)),x.needsAnimating[N]=!0;const E=e.getValue(N);E&&(E.liveStyle=!1)};for(const N in W){const E=C[N],L=T[N];if(b.hasOwnProperty(N))continue;let I=!1;X8(E)&&X8(L)?I=!jae(E,L):I=E!==L,I?E!=null?B(N):f.add(N):E!==void 0&&f.has(N)?B(N):x.protectedKeys[N]=!0}x.prevProp=v,x.prevResolvedValues=C,x.isActive&&(b={...b,...C}),o&&e.blockInitialAnimation&&(k=!1),k&&(!_||q)&&p.push(...S.map(N=>({animation:N,options:{type:y}})))}if(f.size){const z={};f.forEach(y=>{const x=e.getBaseTarget(y),v=e.getValue(y);v&&(v.liveStyle=!0),z[y]=x??null}),p.push({animation:z})}let g=!!p.length;return o&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(g=!1),o=!1,g?t(p):Promise.resolve()}function c(l,u){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(f=>{var b;return(b=f.animationState)===null||b===void 0?void 0:b.setActive(l,u)}),n[l].isActive=u;const p=i(l);for(const f in n)n[f].protectedKeys={};return p}return{animateChanges:i,setActive:c,setAnimateFunction:s,getState:()=>n,reset:()=>{n=WU(),o=!0}}}function gGe(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!jae(t,e):!1}function Sd(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function WU(){return{animate:Sd(!0),whileInView:Sd(),whileHover:Sd(),whileTap:Sd(),whileDrag:Sd(),whileFocus:Sd(),exit:Sd()}}class zGe extends hd{constructor(t){super(t),t.animationState||(t.animationState=MGe(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ug(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let OGe=0;class AGe extends hd{constructor(){super(...arguments),this.id=OGe++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const yGe={animation:{Feature:zGe},exit:{Feature:AGe}},TU=(e,t)=>Math.abs(e-t);function vGe(e,t){const n=TU(e.x,t.x),o=TU(e.y,t.y);return Math.sqrt(n**2+o**2)}class gce{constructor(t,n,{transformPagePoint:o,contextWindow:r,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=Nq(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,b=vGe(p.offset,{x:0,y:0})>=3;if(!f&&!b)return;const{point:h}=p,{timestamp:g}=ao;this.history.push({...h,timestamp:g});const{onStart:z,onMove:y}=this.handlers;f||(z&&z(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,p)},this.handlePointerMove=(p,f)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=Bq(f,this.transformPagePoint),K0.update(this.updatePoint,!0)},this.handlePointerUp=(p,f)=>{this.end();const{onEnd:b,onSessionEnd:h,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const z=Nq(p.type==="pointercancel"?this.lastMoveEventInfo:Bq(f,this.transformPagePoint),this.history);this.startEvent&&b&&b(p,z),h&&h(p,z)},!Tae(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=o,this.contextWindow=r||window;const i=D_(t),c=Bq(i,this.transformPagePoint),{point:l}=c,{timestamp:u}=ao;this.history=[{...l,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,Nq(c,this.history)),this.removeListeners=Nc(Bc(this.contextWindow,"pointermove",this.handlePointerMove),Bc(this.contextWindow,"pointerup",this.handlePointerUp),Bc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),tl(this.updatePoint)}}function Bq(e,t){return t?{point:t(e.point)}:e}function EU(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Nq({point:e},t){return{point:e,delta:EU(e,zce(t)),offset:EU(e,xGe(t)),velocity:_Ge(t,.1)}}function xGe(e){return e[0]}function zce(e){return e[e.length-1]}function _Ge(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;const r=zce(e);for(;n>=0&&(o=e[n],!(r.timestamp-o.timestamp>Lc(t)));)n--;if(!o)return{x:0,y:0};const s=jc(r.timestamp-o.timestamp);if(s===0)return{x:0,y:0};const i={x:(r.x-o.x)/s,y:(r.y-o.y)/s};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}const Oce=1e-4,wGe=1-Oce,kGe=1+Oce,Ace=.01,qGe=0-Ace,SGe=0+Ace;function is(e){return e.max-e.min}function CGe(e,t,n){return Math.abs(e-t)<=n}function BU(e,t,n,o=.5){e.origin=o,e.originPoint=$n(t.min,t.max,e.origin),e.scale=is(n)/is(t),e.translate=$n(n.min,n.max,e.origin)-e.originPoint,(e.scale>=wGe&&e.scale<=kGe||isNaN(e.scale))&&(e.scale=1),(e.translate>=qGe&&e.translate<=SGe||isNaN(e.translate))&&(e.translate=0)}function IM(e,t,n,o){BU(e.x,t.x,n.x,o?o.originX:void 0),BU(e.y,t.y,n.y,o?o.originY:void 0)}function NU(e,t,n){e.min=n.min+t.min,e.max=e.min+is(t)}function RGe(e,t,n){NU(e.x,t.x,n.x),NU(e.y,t.y,n.y)}function LU(e,t,n){e.min=t.min-n.min,e.max=e.min+is(t)}function DM(e,t,n){LU(e.x,t.x,n.x),LU(e.y,t.y,n.y)}function WGe(e,{min:t,max:n},o){return t!==void 0&&en&&(e=o?$n(n,e,o.max):Math.min(e,n)),e}function jU(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function TGe(e,{top:t,left:n,bottom:o,right:r}){return{x:jU(e.x,n,r),y:jU(e.y,t,o)}}function PU(e,t){let n=t.min-e.min,o=t.max-e.max;return t.max-t.mino?n=Kg(t.min,t.max-o,e.min):o>r&&(n=Kg(e.min,e.max-r,t.min)),Hu(0,1,n)}function NGe(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const oW=.35;function LGe(e=oW){return e===!1?e=0:e===!0&&(e=oW),{x:IU(e,"left","right"),y:IU(e,"top","bottom")}}function IU(e,t,n){return{min:DU(e,t),max:DU(e,n)}}function DU(e,t){return typeof e=="number"?e:e[t]||0}const FU=()=>({translate:0,scale:1,origin:0,originPoint:0}),wb=()=>({x:FU(),y:FU()}),$U=()=>({min:0,max:0}),s1=()=>({x:$U(),y:$U()});function xs(e){return[e("x"),e("y")]}function yce({top:e,left:t,right:n,bottom:o}){return{x:{min:t,max:n},y:{min:e,max:o}}}function jGe({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function PGe(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}function Lq(e){return e===void 0||e===1}function rW({scale:e,scaleX:t,scaleY:n}){return!Lq(e)||!Lq(t)||!Lq(n)}function Pd(e){return rW(e)||vce(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function vce(e){return VU(e.x)||VU(e.y)}function VU(e){return e&&e!=="0%"}function $v(e,t,n){const o=e-n,r=t*o;return n+r}function HU(e,t,n,o,r){return r!==void 0&&(e=$v(e,r,o)),$v(e,n,o)+t}function sW(e,t=0,n=1,o,r){e.min=HU(e.min,t,n,o,r),e.max=HU(e.max,t,n,o,r)}function xce(e,{x:t,y:n}){sW(e.x,t.translate,t.scale,t.originPoint),sW(e.y,n.translate,n.scale,n.originPoint)}const UU=.999999999999,XU=1.0000000000001;function IGe(e,t,n,o=!1){const r=n.length;if(!r)return;t.x=t.y=1;let s,i;for(let c=0;cUU&&(t.x=1),t.yUU&&(t.y=1)}function kb(e,t){e.min=e.min+t,e.max=e.max+t}function GU(e,t,n,o,r=.5){const s=$n(e.min,e.max,r);sW(e,t,n,s,o)}function qb(e,t){GU(e.x,t.x,t.scaleX,t.scale,t.originX),GU(e.y,t.y,t.scaleY,t.scale,t.originY)}function _ce(e,t){return yce(PGe(e.getBoundingClientRect(),t))}function DGe(e,t,n){const o=_ce(e,n),{scroll:r}=t;return r&&(kb(o.x,r.offset.x),kb(o.y,r.offset.y)),o}const wce=({current:e})=>e?e.ownerDocument.defaultView:null,FGe=new WeakMap;class $Ge{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=s1(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const r=d=>{const{dragSnapToOrigin:p}=this.getProps();p?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(D_(d,"page").point)},s=(d,p)=>{var f;const{drag:b,dragPropagation:h,onDragStart:g}=this.getProps();if(b&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Bae(b),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),xs(y=>{let x=this.getAxisMotionValue(y).get()||0;if(Wa.test(x)){const{projection:v}=this.visualElement;if(v&&v.layout){const M=v.layout.layoutBox[y];M&&(x=is(M)*(parseFloat(x)/100))}}this.originPoint[y]=x}),g&&K0.postRender(()=>g(d,p)),(f=this.removeWillChange)===null||f===void 0||f.call(this),this.removeWillChange=tW(this.visualElement,"transform");const{animationState:z}=this.visualElement;z&&z.setActive("whileDrag",!0)},i=(d,p)=>{const{dragPropagation:f,dragDirectionLock:b,onDirectionLock:h,onDrag:g}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:z}=p;if(b&&this.currentDirection===null){this.currentDirection=VGe(z),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",p.point,z),this.updateAxis("y",p.point,z),this.visualElement.render(),g&&g(d,p)},c=(d,p)=>this.stop(d,p),l=()=>xs(d=>{var p;return this.getAnimationState(d)==="paused"&&((p=this.getAxisMotionValue(d).animation)===null||p===void 0?void 0:p.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new gce(t,{onSessionStart:r,onStart:s,onMove:i,onSessionEnd:c,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:wce(this.visualElement)})}stop(t,n){var o;(o=this.removeWillChange)===null||o===void 0||o.call(this);const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&K0.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,o){const{drag:r}=this.getProps();if(!o||!fA(t,r,this.currentDirection))return;const s=this.getAxisMotionValue(t);let i=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(i=WGe(i,this.constraints[t],this.elastic[t])),s.set(i)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:o}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&xb(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=TGe(r.layoutBox,n):this.constraints=!1,this.elastic=LGe(o),s!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&xs(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=NGe(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!xb(t))return!1;const o=t.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const s=DGe(o,r.root,this.visualElement.getTransformPagePoint());let i=EGe(r.layout.layoutBox,s);if(n){const c=n(jGe(i));this.hasMutatedConstraints=!!c,c&&(i=yce(c))}return i}startAnimation(t){const{drag:n,dragMomentum:o,dragElastic:r,dragTransition:s,dragSnapToOrigin:i,onDragTransitionEnd:c}=this.getProps(),l=this.constraints||{},u=xs(d=>{if(!fA(d,n,this.currentDirection))return;let p=l&&l[d]||{};i&&(p={min:0,max:0});const f=r?200:1e6,b=r?40:1e7,h={type:"inertia",velocity:o?t[d]:0,bounceStiffness:f,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...s,...p};return this.startAxisValueAnimation(d,h)});return Promise.all(u).then(c)}startAxisValueAnimation(t,n){const o=this.getAxisMotionValue(t);return o.start(c7(t,o,0,n,this.visualElement,!1,tW(this.visualElement,t)))}stopAnimation(){xs(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){xs(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,o=this.visualElement.getProps(),r=o[n];return r||this.visualElement.getValue(t,(o.initial?o.initial[t]:void 0)||0)}snapToCursor(t){xs(n=>{const{drag:o}=this.getProps();if(!fA(n,o,this.currentDirection))return;const{projection:r}=this.visualElement,s=this.getAxisMotionValue(n);if(r&&r.layout){const{min:i,max:c}=r.layout.layoutBox[n];s.set(t[n]-$n(i,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!xb(n)||!o||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};xs(i=>{const c=this.getAxisMotionValue(i);if(c&&this.constraints!==!1){const l=c.get();r[i]=BGe({min:l,max:l},this.constraints[i])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),xs(i=>{if(!fA(i,t,null))return;const c=this.getAxisMotionValue(i),{min:l,max:u}=this.constraints[i];c.set($n(l,u,r[i]))})}addListeners(){if(!this.visualElement.current)return;FGe.set(this.visualElement,this);const t=this.visualElement.current,n=Bc(t,"pointerdown",l=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),o=()=>{const{dragConstraints:l}=this.getProps();xb(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,s=r.addEventListener("measure",o);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),K0.read(o);const i=kc(window,"resize",()=>this.scalePositionWithinConstraints()),c=r.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(xs(d=>{const p=this.getAxisMotionValue(d);p&&(this.originPoint[d]+=l[d].translate,p.set(p.get()+l[d].translate))}),this.visualElement.render())});return()=>{i(),n(),s(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:o=!1,dragPropagation:r=!1,dragConstraints:s=!1,dragElastic:i=oW,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:o,dragPropagation:r,dragConstraints:s,dragElastic:i,dragMomentum:c}}}function fA(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function VGe(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class HGe extends hd{constructor(t){super(t),this.removeGroupControls=Lo,this.removeListeners=Lo,this.controls=new $Ge(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Lo}unmount(){this.removeGroupControls(),this.removeListeners()}}const KU=e=>(t,n)=>{e&&K0.postRender(()=>e(t,n))};class UGe extends hd{constructor(){super(...arguments),this.removePointerDownListener=Lo}onPointerDown(t){this.session=new gce(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:wce(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:o,onPanEnd:r}=this.node.getProps();return{onSessionStart:KU(t),onStart:KU(n),onMove:o,onEnd:(s,i)=>{delete this.session,r&&K0.postRender(()=>r(s,i))}}}mount(){this.removePointerDownListener=Bc(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function XGe(){const e=O.useContext(N_);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:o}=e,r=O.useId();O.useEffect(()=>o(r),[]);const s=O.useCallback(()=>n&&n(r),[r,n]);return!t&&n?[!1,s]:[!0]}const e4={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function YU(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const qm={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(jt.test(e))e=parseFloat(e);else return e;const n=YU(e,t.target.x),o=YU(e,t.target.y);return`${n}% ${o}%`}},GGe={correct:(e,{treeScale:t,projectionDelta:n})=>{const o=e,r=Uu.parse(e);if(r.length>5)return o;const s=Uu.createTransformer(e),i=typeof r[0]!="number"?1:0,c=n.x.scale*t.x,l=n.y.scale*t.y;r[0+i]/=c,r[1+i]/=l;const u=$n(c,l,.5);return typeof r[2+i]=="number"&&(r[2+i]/=u),typeof r[3+i]=="number"&&(r[3+i]/=u),s(r)}};class KGe extends O.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o,layoutId:r}=this.props,{projection:s}=t;$He(YGe),s&&(n.group&&n.group.add(s),o&&o.register&&r&&o.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),e4.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:o,drag:r,isPresent:s}=this.props,i=o.projection;return i&&(i.isPresent=s,r||t.layoutDependency!==n||n===void 0?i.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?i.promote():i.relegate()||K0.postRender(()=>{const c=i.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),PL.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),o&&o.deregister&&o.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function kce(e){const[t,n]=XGe(),o=O.useContext(Xg);return a.jsx(KGe,{...e,layoutGroup:o,switchLayoutGroup:O.useContext(mae),isPresent:t,safeToRemove:n})}const YGe={borderRadius:{...qm,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:qm,borderTopRightRadius:qm,borderBottomLeftRadius:qm,borderBottomRightRadius:qm,boxShadow:GGe},qce=["TopLeft","TopRight","BottomLeft","BottomRight"],ZGe=qce.length,ZU=e=>typeof e=="string"?parseFloat(e):e,QU=e=>typeof e=="number"||jt.test(e);function QGe(e,t,n,o,r,s){r?(e.opacity=$n(0,n.opacity!==void 0?n.opacity:1,JGe(o)),e.opacityExit=$n(t.opacity!==void 0?t.opacity:1,0,eKe(o))):s&&(e.opacity=$n(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,o));for(let i=0;iot?1:n(Kg(e,t,o))}function eX(e,t){e.min=t.min,e.max=t.max}function vs(e,t){eX(e.x,t.x),eX(e.y,t.y)}function tX(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function nX(e,t,n,o,r){return e-=t,e=$v(e,1/n,o),r!==void 0&&(e=$v(e,1/r,o)),e}function tKe(e,t=0,n=1,o=.5,r,s=e,i=e){if(Wa.test(t)&&(t=parseFloat(t),t=$n(i.min,i.max,t/100)-i.min),typeof t!="number")return;let c=$n(s.min,s.max,o);e===s&&(c-=t),e.min=nX(e.min,t,n,c,r),e.max=nX(e.max,t,n,c,r)}function oX(e,t,[n,o,r],s,i){tKe(e,t[n],t[o],t[r],t.scale,s,i)}const nKe=["x","scaleX","originX"],oKe=["y","scaleY","originY"];function rX(e,t,n,o){oX(e.x,t,nKe,n?n.x:void 0,o?o.x:void 0),oX(e.y,t,oKe,n?n.y:void 0,o?o.y:void 0)}function sX(e){return e.translate===0&&e.scale===1}function Cce(e){return sX(e.x)&&sX(e.y)}function iX(e,t){return e.min===t.min&&e.max===t.max}function rKe(e,t){return iX(e.x,t.x)&&iX(e.y,t.y)}function aX(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Rce(e,t){return aX(e.x,t.x)&&aX(e.y,t.y)}function cX(e){return is(e.x)/is(e.y)}function lX(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class sKe{constructor(){this.members=[]}add(t){P_(this.members,t),t.scheduleRender()}remove(t){if(I_(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(r=>t===r);if(n===0)return!1;let o;for(let r=n;r>=0;r--){const s=this.members[r];if(s.isPresent!==!1){o=s;break}}return o?(this.promote(o),!0):!1}promote(t,n){const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,n&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;r===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:o}=t;n.onExitComplete&&n.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function iKe(e,t,n){let o="";const r=e.x.translate/t.x,s=e.y.translate/t.y,i=n?.z||0;if((r||s||i)&&(o=`translate3d(${r}px, ${s}px, ${i}px) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:p,rotateY:f,skewX:b,skewY:h}=n;u&&(o=`perspective(${u}px) ${o}`),d&&(o+=`rotate(${d}deg) `),p&&(o+=`rotateX(${p}deg) `),f&&(o+=`rotateY(${f}deg) `),b&&(o+=`skewX(${b}deg) `),h&&(o+=`skewY(${h}deg) `)}const c=e.x.scale*t.x,l=e.y.scale*t.y;return(c!==1||l!==1)&&(o+=`scale(${c}, ${l})`),o||"none"}const aKe=(e,t)=>e.depth-t.depth;class cKe{constructor(){this.children=[],this.isDirty=!1}add(t){P_(this.children,t),this.isDirty=!0}remove(t){I_(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(aKe),this.isDirty=!1,this.children.forEach(t)}}function lKe(e,t){const n=yu.now(),o=({timestamp:r})=>{const s=r-n;s>=t&&(tl(o),e(s-t))};return K0.read(o,!0),()=>tl(o)}function uKe(e){return e instanceof SVGElement&&e.tagName!=="svg"}function dKe(e,t,n){const o=To(e)?e:Yg(e);return o.start(c7("",o,t,n)),o.animation}const Id={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},cM=typeof window<"u"&&window.MotionDebug!==void 0,jq=["","X","Y","Z"],pKe={visibility:"hidden"},uX=1e3;let fKe=0;function Pq(e,t,n,o){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),o&&(o[e]=0))}function Wce(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return!1;const{visualElement:t}=e.options;return t?window.MotionHasOptimisedTransformAnimation(mce(t))?!0:e.parent&&!e.parent.hasCheckedOptimisedAppear?Wce(e.parent):!1:!1}function Tce({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(i={},c=t?.()){this.id=fKe++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,cM&&(Id.totalNodes=Id.resolvedTargetDeltas=Id.recalculatedProjection=0),this.nodes.forEach(mKe),this.nodes.forEach(AKe),this.nodes.forEach(yKe),this.nodes.forEach(MKe),cM&&window.MotionDebug.record(Id)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(i,()=>{this.root.updateBlockedByResize=!0,p&&p(),p=lKe(f,250),e4.hasAnimatedSinceResize&&(e4.hasAnimatedSinceResize=!1,this.nodes.forEach(pX))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:f,hasRelativeTargetChanged:b,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||d.getDefaultTransition()||kKe,{onLayoutAnimationStart:z,onLayoutAnimationComplete:y}=d.getProps(),x=!this.targetLayout||!Rce(this.targetLayout,h)||b,v=!f&&b;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||f&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(p,v);const M={...JL(g,"layout"),onPlay:z,onComplete:y};(d.shouldReduceMotion||this.options.layoutRoot)&&(M.delay=0,M.type=!1),this.startAnimation(M)}else f||pX(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,tl(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(vKe),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionHandoffCancelAll&&Wce(this)&&window.MotionHandoffCancelAll(),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const A=M/1e3;fX(p.x,i.x,A),fX(p.y,i.y,A),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(DM(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),_Ke(this.relativeTarget,this.relativeTargetOrigin,f,A),v&&rKe(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=s1()),vs(v,this.relativeTarget)),g&&(this.animationValues=d,QGe(d,u,this.latestValues,A,x,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(tl(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=K0.update(()=>{e4.hasAnimatedSinceResize=!0,this.currentAnimation=dKe(0,uX,{...i,onUpdate:c=>{this.mixTargetDelta(c),i.onUpdate&&i.onUpdate(c)},onComplete:()=>{i.onComplete&&i.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(uX),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:c,target:l,layout:u,latestValues:d}=i;if(!(!c||!l||!u)){if(this!==i&&this.layout&&u&&Ece(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||s1();const p=is(this.layout.layoutBox.x);l.x.min=i.target.x.min,l.x.max=l.x.min+p;const f=is(this.layout.layoutBox.y);l.y.min=i.target.y.min,l.y.max=l.y.min+f}vs(c,l),qb(c,d),IM(this.projectionDeltaWithTransform,this.layoutCorrected,c,d)}}registerSharedNode(i,c){this.sharedNodes.has(i)||this.sharedNodes.set(i,new sKe),this.sharedNodes.get(i).add(c);const u=c.options.initialPromotionConfig;c.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(c):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){var i;const{layoutId:c}=this.options;return c?((i=this.getStack())===null||i===void 0?void 0:i.lead)||this:this}getPrevLead(){var i;const{layoutId:c}=this.options;return c?(i=this.getStack())===null||i===void 0?void 0:i.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:c,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),i&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let c=!1;const{latestValues:l}=i;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(c=!0),!c)return;const u={};l.z&&Pq("z",i,u,this.animationValues);for(let d=0;d{var c;return(c=i.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(dX),this.root.sharedNodes.clear()}}}function bKe(e){e.updateLayout()}function hKe(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:r}=e.layout,{animationType:s}=e.options,i=n.source!==e.layout.source;s==="size"?xs(p=>{const f=i?n.measuredBox[p]:n.layoutBox[p],b=is(f);f.min=o[p].min,f.max=f.min+b}):Ece(s,n.layoutBox,o)&&xs(p=>{const f=i?n.measuredBox[p]:n.layoutBox[p],b=is(o[p]);f.max=f.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+b)});const c=wb();IM(c,o,n.layoutBox);const l=wb();i?IM(l,e.applyTransform(r,!0),n.measuredBox):IM(l,o,n.layoutBox);const u=!Cce(c);let d=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:f,layout:b}=p;if(f&&b){const h=s1();DM(h,n.layoutBox,f.layoutBox);const g=s1();DM(g,o,b.layoutBox),Rce(h,g)||(d=!0),p.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=h,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:n,delta:l,layoutDelta:c,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:o}=e.options;o&&o()}e.options.transition=void 0}function mKe(e){cM&&Id.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function MKe(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function gKe(e){e.clearSnapshot()}function dX(e){e.clearMeasurements()}function zKe(e){e.isLayoutDirty=!1}function OKe(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function pX(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function AKe(e){e.resolveTargetDelta()}function yKe(e){e.calcProjection()}function vKe(e){e.resetSkewAndRotation()}function xKe(e){e.removeLeadSnapshot()}function fX(e,t,n){e.translate=$n(t.translate,0,n),e.scale=$n(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function bX(e,t,n,o){e.min=$n(t.min,n.min,o),e.max=$n(t.max,n.max,o)}function _Ke(e,t,n,o){bX(e.x,t.x,n.x,o),bX(e.y,t.y,n.y,o)}function wKe(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const kKe={duration:.45,ease:[.4,0,.1,1]},hX=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),mX=hX("applewebkit/")&&!hX("chrome/")?Math.round:Lo;function MX(e){e.min=mX(e.min),e.max=mX(e.max)}function qKe(e){MX(e.x),MX(e.y)}function Ece(e,t,n){return e==="position"||e==="preserve-aspect"&&!CGe(cX(t),cX(n),.2)}function SKe(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const CKe=Tce({attachResizeListener:(e,t)=>kc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Iq={current:void 0},Bce=Tce({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Iq.current){const e=new CKe({});e.mount(window),e.setOptions({layoutScroll:!0}),Iq.current=e}return Iq.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),RKe={pan:{Feature:UGe},drag:{Feature:HGe,ProjectionNode:Bce,MeasureLayout:kce}},iW={current:null},Nce={current:!1};function WKe(){if(Nce.current=!0,!!LL)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>iW.current=e.matches;e.addListener(t),t()}else iW.current=!1}function TKe(e,t,n){for(const o in t){const r=t[o],s=n[o];if(To(r))e.addValue(o,r);else if(To(s))e.addValue(o,Yg(r,{owner:e}));else if(s!==r)if(e.hasValue(o)){const i=e.getValue(o);i.liveStyle===!0?i.jump(r):i.hasAnimated||i.set(r)}else{const i=e.getStaticValue(o);e.addValue(o,Yg(i!==void 0?i:r,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const gX=new WeakMap,EKe=[...$ae,Co,Uu],BKe=e=>EKe.find(Fae(e)),zX=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],NKe=DL.length;class LKe{scrapeMotionValuesFromProps(t,n,o){return{}}constructor({parent:t,props:n,presenceContext:o,reducedMotionConfig:r,blockInitialAnimation:s,visualState:i},c={}){this.applyWillChange=!1,this.resolveKeyframes=(f,b,h,g)=>new this.KeyframeResolver(f,b,h,g,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=e7,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,K0.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=i;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=c,this.blockInitialAnimation=!!s,this.isControllingVariants=j_(n),this.isVariantNode=gae(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in p){const b=p[f];l[f]!==void 0&&To(b)&&b.set(l[f],!1)}}mount(t){this.current=t,gX.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,o)=>this.bindToMotionValue(o,n)),Nce.current||WKe(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:iW.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){gX.delete(this.current),this.projection&&this.projection.unmount(),tl(this.notifyUpdate),tl(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){const o=bd.has(t),r=n.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&K0.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{r(),s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in N2){const n=N2[t];if(!n)continue;const{isEnabled:o,Feature:r}=n;if(!this.features[t]&&r&&o(this.props)&&(this.features[t]=new r(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):s1()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let o=0;on.variantChildren.delete(t)}addValue(t,n){const o=this.values.get(t);n!==o&&(o&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let o=this.values.get(t);return o===void 0&&n!==void 0&&(o=Yg(n===null?void 0:n,{owner:this}),this.addValue(t,o)),o}readValue(t,n){var o;let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(o=this.getBaseTargetFromProps(this.props,t))!==null&&o!==void 0?o:this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Iae(r)||Pae(r))?r=parseFloat(r):!BKe(r)&&Uu.test(n)&&(r=Zae(t,n)),this.setBaseTarget(t,To(r)?r.get():r)),To(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:o}=this.props;let r;if(typeof o=="string"||typeof o=="object"){const i=ZL(this.props,o,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);i&&(r=i[t])}if(o&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!To(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new l7),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Lce extends LKe{constructor(){super(...arguments),this.KeyframeResolver=Qae}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:o}){delete n[t],delete o[t]}}function jKe(e){return window.getComputedStyle(e)}class PKe extends Lce{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=wae}readValueFromInstance(t,n){if(bd.has(n)){const o=n7(n);return o&&o.default||0}else{const o=jKe(t),r=(yae(n)?o.getPropertyValue(n):o[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return _ce(t,n)}build(t,n,o){UL(t,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,o){return YL(t,n,o)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;To(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class IKe extends Lce{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=s1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(bd.has(n)){const o=n7(n);return o&&o.default||0}return n=kae.has(n)?n:L_(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,o){return Sae(t,n,o)}build(t,n,o){GL(t,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,o,r){qae(t,n,o,r)}mount(t){this.isSVGTag=KL(t.tagName),super.mount(t)}}const DKe=(e,t)=>FL(e)?new IKe(t):new PKe(t,{allowProjection:e!==O.Fragment}),FKe={layout:{ProjectionNode:Bce,MeasureLayout:kce}},$Ke={...yGe,...WUe,...RKe,...FKe},Hn=DHe((e,t)=>zUe(e,t,$Ke,DKe));class VKe extends O.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function HKe({children:e,isPresent:t}){const n=O.useId(),o=O.useRef(null),r=O.useRef({width:0,height:0,top:0,left:0}),{nonce:s}=O.useContext(NL);return O.useInsertionEffect(()=>{const{width:i,height:c,top:l,left:u}=r.current;if(t||!o.current||!i||!c)return;o.current.dataset.motionPopId=n;const d=document.createElement("style");return s&&(d.nonce=s),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${i}px !important; @@ -296,18 +296,18 @@ ${r}`)}function eje(e){return e.replace(/(^|\n)•( +)/g,"$1*$2")}function tje(e top: ${l}px !important; left: ${u}px !important; } - `),()=>{document.head.removeChild(d)}},[t]),a.jsx(VKe,{isPresent:t,childRef:o,sizeRef:r,children:O.cloneElement(e,{ref:o})})}const UKe=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:r,presenceAffectsLayout:s,mode:i})=>{const c=QL(XKe),l=O.useId(),u=O.useMemo(()=>({id:l,initial:t,isPresent:n,custom:r,onExitComplete:d=>{c.set(d,!0);for(const p of c.values())if(!p)return;o&&o()},register:d=>(c.set(d,!1),()=>c.delete(d))}),s?[Math.random()]:[n]);return O.useMemo(()=>{c.forEach((d,p)=>c.set(p,!1))},[n]),O.useEffect(()=>{!n&&!c.size&&o&&o()},[n]),i==="popLayout"&&(e=a.jsx(HKe,{isPresent:n,children:e})),a.jsx(N_.Provider,{value:u,children:e})};function XKe(){return new Map}const bA=e=>e.key||"";function OX(e){const t=[];return O.Children.forEach(e,n=>{O.isValidElement(n)&&t.push(n)}),t}const Lp=({children:e,exitBeforeEnter:t,custom:n,initial:o=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync"})=>{const c=O.useMemo(()=>OX(e),[e]),l=c.map(bA),u=O.useRef(!0),d=O.useRef(c),p=QL(()=>new Map),[f,b]=O.useState(c),[h,g]=O.useState(c);jL(()=>{u.current=!1,d.current=c;for(let x=0;x{const v=bA(x),M=c===h||l.includes(v),A=()=>{if(p.has(v))p.set(v,!0);else return;let _=!0;p.forEach(w=>{w||(_=!1)}),_&&(y?.(),g(d.current),r&&r())};return a.jsx(UKe,{isPresent:M,initial:!u.current||o?void 0:!1,custom:M?void 0:n,presenceAffectsLayout:s,mode:i,onExitComplete:M?void 0:A,children:x},v)})})},GKe=O.createContext(null);function KKe(){const e=O.useRef(!1);return jL(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function YKe(){const e=KKe(),[t,n]=O.useState(0),o=O.useCallback(()=>{e.current&&n(t+1)},[t]);return[O.useCallback(()=>K0.postRender(o),[o]),t]}const ZKe=e=>!e.isLayoutDirty&&e.willUpdate(!1);function AX(){const e=new Set,t=new WeakMap,n=()=>e.forEach(ZKe);return{add:o=>{e.add(o),t.set(o,o.addEventListener("willUpdate",n))},remove:o=>{e.delete(o);const r=t.get(o);r&&(r(),t.delete(o)),n()},dirty:n}}const jce=e=>e===!0,QKe=e=>jce(e===!0)||e==="id",JKe=({children:e,id:t,inherit:n=!0})=>{const o=O.useContext(Xg),r=O.useContext(GKe),[s,i]=YKe(),c=O.useRef(null),l=o.id||r;c.current===null&&(QKe(n)&&l&&(t=t?l+"-"+t:l),c.current={id:t,group:jce(n)&&o.group||AX()});const u=O.useMemo(()=>({...c.current,forceRender:s}),[i]);return a.jsx(Xg.Provider,{value:u,children:e})},Dq=["40em","52em","64em"],eYe=(e={})=>{const{defaultIndex:t=0}=e;if(typeof t!="number")throw new TypeError(`Default breakpoint index should be a number. Got: ${t}, ${typeof t}`);if(t<0||t>Dq.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${Dq.length} breakpoints, got index ${t}`);const[n,o]=O.useState(t);return O.useEffect(()=>{const r=()=>Dq.filter(i=>typeof window<"u"?window.matchMedia(`screen and (min-width: ${i})`).matches:!1).length,s=()=>{const i=r();n!==i&&o(i)};return s(),typeof window<"u"&&window.addEventListener("resize",s),()=>{typeof window<"u"&&window.removeEventListener("resize",s)}},[n]),n};function aW(e,t={}){const n=eYe(t);if(!Array.isArray(e)&&typeof e!="function")return e;const o=e||[];return o[n>=o.length?o.length-1:n]}const tYe={name:"zjik7",styles:"display:flex"},nYe={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},oYe={name:"82a6rk",styles:"flex:1"},rYe={name:"13nosa1",styles:">*{min-height:0;}"},sYe={name:"1pwxzk4",styles:">*{min-width:0;}"};function iYe(e){const{isReversed:t,...n}=e;return typeof t<"u"?(Re("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...n,direction:t?"row-reverse":"row"}):n}function Pce(e){const{align:t,className:n,direction:o="row",expanded:r=!0,gap:s=2,justify:i="space-between",wrap:c=!1,...l}=Ut(iYe(e),"Flex"),u=Array.isArray(o)?o:[o],d=aW(u),p=typeof d=="string"&&!!d.includes("column"),f=x0(),b=O.useMemo(()=>{const h=ke({alignItems:t??(p?"normal":"center"),flexDirection:d,flexWrap:c?"wrap":void 0,gap:Ce(s),justifyContent:i,height:p&&r?"100%":void 0,width:!p&&r?"100%":void 0},"","");return f(tYe,h,p?rYe:sYe,n)},[t,n,f,d,r,s,p,i,c]);return{...l,className:b,isColumn:p}}const Ice=O.createContext({flexItemDisplay:void 0}),aYe=()=>O.useContext(Ice);function cYe(e,t){const{children:n,isColumn:o,...r}=Pce(e);return a.jsx(Ice.Provider,{value:{flexItemDisplay:o?"block":void 0},children:a.jsx(C0,{...r,ref:t,children:n})})}const Q0=Qt(cYe,"Flex");function Dce(e){const{className:t,display:n,isBlock:o=!1,...r}=Ut(e,"FlexItem"),s={},i=aYe().flexItemDisplay;s.Base=ke({display:n||i},"","");const l=x0()(nYe,s.Base,o&&oYe,t);return{...r,className:l}}function lYe(e,t){const n=Dce(e);return a.jsx(C0,{...n,ref:t})}const Ht=Qt(lYe,"FlexItem");function uYe(e){const t=Ut(e,"FlexBlock");return Dce({isBlock:!0,...t})}function dYe(e,t){const n=uYe(e);return a.jsx(C0,{...n,ref:t})}const Vi=Qt(dYe,"FlexBlock"),hr=e=>typeof e<"u"&&e!==null;function pYe(e){const{className:t,margin:n,marginBottom:o=2,marginLeft:r,marginRight:s,marginTop:i,marginX:c,marginY:l,padding:u,paddingBottom:d,paddingLeft:p,paddingRight:f,paddingTop:b,paddingX:h,paddingY:g,...z}=Ut(e,"Spacer"),x=x0()(hr(n)&&ke("margin:",Ce(n),";",""),hr(l)&&ke("margin-bottom:",Ce(l),";margin-top:",Ce(l),";",""),hr(c)&&ke("margin-left:",Ce(c),";margin-right:",Ce(c),";",""),hr(i)&&ke("margin-top:",Ce(i),";",""),hr(o)&&ke("margin-bottom:",Ce(o),";",""),hr(r)&&dn({marginLeft:Ce(r)})(),hr(s)&&dn({marginRight:Ce(s)})(),hr(u)&&ke("padding:",Ce(u),";",""),hr(g)&&ke("padding-bottom:",Ce(g),";padding-top:",Ce(g),";",""),hr(h)&&ke("padding-left:",Ce(h),";padding-right:",Ce(h),";",""),hr(b)&&ke("padding-top:",Ce(b),";",""),hr(d)&&ke("padding-bottom:",Ce(d),";",""),hr(p)&&dn({paddingLeft:Ce(p)})(),hr(f)&&dn({paddingRight:Ce(f)})(),t);return{...z,className:x}}function fYe(e,t){const n=pYe(e);return a.jsx(C0,{...n,ref:t})}const or=Qt(fYe,"Spacer");function bYe({icon:e,size:t=24,...n},o){return O.cloneElement(e,{width:t,height:t,...n,ref:o})}const t0=O.forwardRef(bYe),u7=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M2 12c0 3.6 2.4 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.5 0-4.5-1.5-4.5-4s2-4.5 4.5-4.5h3.5V6H8c-3.6 0-6 2.4-6 6zm19.5-1h-8v1.5h8V11zm0 5h-8v1.5h8V16zm0-10h-8v1.5h8V6z"})}),hYe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5 5.5V8H20V5.5H22.5V4H20V1.5H18.5V4H16V5.5H18.5ZM13.9624 4H6C4.89543 4 4 4.89543 4 6V18C4 19.1046 4.89543 20 6 20H18C19.1046 20 20 19.1046 20 18V10.0391H18.5V18C18.5 18.2761 18.2761 18.5 18 18.5H10L10 10.4917L16.4589 10.5139L16.4641 9.01389L5.5 8.97618V6C5.5 5.72386 5.72386 5.5 6 5.5H13.9624V4ZM5.5 10.4762V18C5.5 18.2761 5.72386 18.5 6 18.5H8.5L8.5 10.4865L5.5 10.4762Z"})}),V_=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})}),mYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M4 12.8h16v-1.5H4v1.5zm0 7h12.4v-1.5H4v1.5zM4 4.3v1.5h16V4.3H4z"})}),_3=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})}),H_=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"})}),w3=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})}),MYe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M11.934 7.406a1 1 0 0 0 .914.594H19a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h5.764a.5.5 0 0 1 .447.276l.723 1.63Zm1.064-1.216a.5.5 0 0 0 .462.31H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5.764a2 2 0 0 1 1.789 1.106l.445 1.084ZM8.5 10.5h7V12h-7v-1.5Zm7 3.5h-7v1.5h7V14Z"})}),gYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z"})}),yX=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"})}),cW=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"})}),zYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"})}),Fce=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z"})}),$ce=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"})}),U_=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"})}),Vce=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z"})}),Hce=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"})}),OYe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M14.5 17.5H9.5V16H14.5V17.5Z M14.5 8H9.5V6.5H14.5V8Z M7 3.5H17C18.1046 3.5 19 4.39543 19 5.5V9C19 10.1046 18.1046 11 17 11H7C5.89543 11 5 10.1046 5 9V5.5C5 4.39543 5.89543 3.5 7 3.5ZM17 5H7C6.72386 5 6.5 5.22386 6.5 5.5V9C6.5 9.27614 6.72386 9.5 7 9.5H17C17.2761 9.5 17.5 9.27614 17.5 9V5.5C17.5 5.22386 17.2761 5 17 5Z M7 13H17C18.1046 13 19 13.8954 19 15V18.5C19 19.6046 18.1046 20.5 17 20.5H7C5.89543 20.5 5 19.6046 5 18.5V15C5 13.8954 5.89543 13 7 13ZM17 14.5H7C6.72386 14.5 6.5 14.7239 6.5 15V18.5C6.5 18.7761 6.72386 19 7 19H17C17.2761 19 17.5 18.7761 17.5 18.5V15C17.5 14.7239 17.2761 14.5 17 14.5Z"})}),Uce=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"})}),AYe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.5h12a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5ZM4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6Zm4 10h2v-1.5H8V16Zm5 0h-2v-1.5h2V16Zm1 0h2v-1.5h-2V16Z"})}),d7=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"})}),no=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})}),md=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})}),Fa=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})}),X_=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})}),Ei=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})}),jp=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})}),G_=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})}),yYe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M20 6H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h16c.3 0 .5.2.5.5v9zM10 10H8v2h2v-2zm-5 2h2v-2H5v2zm8-2h-2v2h2v-2zm-5 6h8v-2H8v2zm6-4h2v-2h-2v2zm3 0h2v-2h-2v2zm0 4h2v-2h-2v2zM5 16h2v-2H5v2z"})}),Ch=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})}),zl=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})}),vYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-4v-2.4L14 14l1-1-3-3-3 3 1 1 1.2-1.2v2.4H7.7c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4H9l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8 0 1-.8 1.8-1.7 1.8z"})}),xYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-9c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4h1.3l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8-.1 1-.9 1.8-1.8 1.8z"})}),p7=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"})}),Xce=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",clipRule:"evenodd"})}),_Ye=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3zm-5.1 7.6c-2.5 0-4.6-2.1-4.6-4.6 0-.3.1-1 .8-2.3.5-.9 1.1-1.9 2-3.1.7-.9 1.3-1.7 1.8-2.3.7.8 1.3 1.6 1.8 2.3.8 1.1 1.5 2.2 2 3.1.7 1.3.8 2 .8 2.3 0 2.5-2.1 4.6-4.6 4.6z"})}),wYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"})}),kYe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 7.5h-5v10h5v-10Zm1.5 0v10H19a.5.5 0 0 0 .5-.5V8a.5.5 0 0 0-.5-.5h-2.5ZM6 7.5h2.5v10H6a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5ZM6 6h13a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2Z"})}),k3=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"})}),Gce=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.625 5.5h9.75c.069 0 .125.056.125.125v9.75a.125.125 0 0 1-.125.125h-9.75a.125.125 0 0 1-.125-.125v-9.75c0-.069.056-.125.125-.125ZM4 5.625C4 4.728 4.728 4 5.625 4h9.75C16.273 4 17 4.728 17 5.625v9.75c0 .898-.727 1.625-1.625 1.625h-9.75A1.625 1.625 0 0 1 4 15.375v-9.75Zm14.5 11.656v-9H20v9C20 18.8 18.77 20 17.251 20H6.25v-1.5h11.001c.69 0 1.249-.528 1.249-1.219Z"})}),Kce=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"})}),Yce=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})}),qYe=a.jsxs(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx(J,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z",fillRule:"evenodd",clipRule:"evenodd"}),a.jsx(J,{d:"M15 15V15C15 13.8954 14.1046 13 13 13L11 13C9.89543 13 9 13.8954 9 15V15",fillRule:"evenodd",clipRule:"evenodd"}),a.jsx(ese,{cx:"12",cy:"9",r:"2",fillRule:"evenodd",clipRule:"evenodd"})]}),SYe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M6.68822 16.625L5.5 17.8145L5.5 5.5L18.5 5.5L18.5 16.625L6.68822 16.625ZM7.31 18.125L19 18.125C19.5523 18.125 20 17.6773 20 17.125L20 5C20 4.44772 19.5523 4 19 4H5C4.44772 4 4 4.44772 4 5V19.5247C4 19.8173 4.16123 20.086 4.41935 20.2237C4.72711 20.3878 5.10601 20.3313 5.35252 20.0845L7.31 18.125ZM16 9.99997H8V8.49997H16V9.99997ZM8 14H13V12.5H8V14Z"})}),CYe=a.jsx(te,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M6.68822 10.625L6.24878 11.0649L5.5 11.8145L5.5 5.5L12.5 5.5V8L14 6.5V5C14 4.44772 13.5523 4 13 4H5C4.44772 4 4 4.44771 4 5V13.5247C4 13.8173 4.16123 14.086 4.41935 14.2237C4.72711 14.3878 5.10601 14.3313 5.35252 14.0845L7.31 12.125H8.375L9.875 10.625H7.31H6.68822ZM14.5605 10.4983L11.6701 13.75H16.9975C17.9963 13.75 18.7796 14.1104 19.3553 14.7048C19.9095 15.2771 20.2299 16.0224 20.4224 16.7443C20.7645 18.0276 20.7543 19.4618 20.7487 20.2544C20.7481 20.345 20.7475 20.4272 20.7475 20.4999L19.2475 20.5001C19.2475 20.4191 19.248 20.3319 19.2484 20.2394V20.2394C19.2526 19.4274 19.259 18.2035 18.973 17.1307C18.8156 16.5401 18.586 16.0666 18.2778 15.7483C17.9909 15.4521 17.5991 15.25 16.9975 15.25H11.8106L14.5303 17.9697L13.4696 19.0303L8.96956 14.5303L13.4394 9.50171L14.5605 10.4983Z"})}),RYe=a.jsx(te,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"m6.249 11.065.44-.44h3.186l-1.5 1.5H7.31l-1.957 1.96A.792.792 0 0 1 4 13.524V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v1.5L12.5 8V5.5h-7v6.315l.749-.75ZM20 19.75H7v-1.5h13v1.5Zm0-12.653-8.967 9.064L8 17l.867-2.935L17.833 5 20 7.097Z"})}),f7=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"})}),Zce=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M18 20v-2h2v-1.5H7.75a.25.25 0 0 1-.25-.25V4H6v2H4v1.5h2v8.75c0 .966.784 1.75 1.75 1.75h8.75v2H18ZM9.273 7.5h6.977a.25.25 0 0 1 .25.25v6.977H18V7.75A1.75 1.75 0 0 0 16.25 6H9.273v1.5Z"})}),WYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4zm.8-4l.7.7 2-2V12h1V9.2l2 2 .7-.7-2-2H12v-1H9.2l2-2-.7-.7-2 2V4h-1v2.8l-2-2-.7.7 2 2H4v1h2.8l-2 2z"})}),Fq=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"})}),TYe=a.jsxs(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx(J,{d:"M4 16h10v1.5H4V16Zm0-4.5h16V13H4v-1.5ZM10 7h10v1.5H10V7Z",fillRule:"evenodd",clipRule:"evenodd"}),a.jsx(J,{d:"m4 5.25 4 2.5-4 2.5v-5Z"})]}),vX=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm8 4a4 4 0 0 0 4-4H8a4 4 0 0 0 4 4Z"})}),K_=a.jsx(te,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z"})}),Qce=a.jsx(te,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.5 18.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h2.5v13zm10-.5c0 .3-.2.5-.5.5h-8v-13h8c.3 0 .5.2.5.5v12z"})}),Jce=a.jsx(te,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z"})}),EYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M18 11.3l-1-1.1-4 4V3h-1.5v11.3L7 10.2l-1 1.1 6.2 5.8 5.8-5.8zm.5 3.7v3.5h-13V15H4v5h16v-5h-1.5z"})}),nl=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})}),Pp=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})}),b7=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z"})}),BYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M12 4 4 19h16L12 4zm0 3.2 5.5 10.3H12V7.2z"})}),NYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M14.7 11.3c1-.6 1.5-1.6 1.5-3 0-2.3-1.3-3.4-4-3.4H7v14h5.8c1.4 0 2.5-.3 3.3-1 .8-.7 1.2-1.7 1.2-2.9.1-1.9-.8-3.1-2.6-3.7zm-5.1-4h2.3c.6 0 1.1.1 1.4.4.3.3.5.7.5 1.2s-.2 1-.5 1.2c-.3.3-.8.4-1.4.4H9.6V7.3zm4.6 9c-.4.3-1 .4-1.7.4H9.6v-3.9h2.9c.7 0 1.3.2 1.7.5.4.3.6.8.6 1.5s-.2 1.2-.6 1.5z"})}),LYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"})}),jYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-8-3.5l3 3-3 3 1 1 4-4-4-4-1 1z"})}),PYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM20.0303 9.03033L17.0607 12L20.0303 14.9697L18.9697 16.0303L15.4697 12.5303L14.9393 12L15.4697 11.4697L18.9697 7.96967L20.0303 9.03033Z"})}),IYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M12.5 5L10 19h1.9l2.5-14z"})}),ele=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})}),DYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M4 8.8h8.9V7.2H4v1.6zm0 7h8.9v-1.5H4v1.5zM18 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"})}),Zg=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM5 6.7V10h1V5.3L3.8 6l.4 1 .8-.3zm-.4 5.7c-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-1c.3-.6.8-1.4.9-2.1.1-.3 0-.8-.2-1.1-.5-.6-1.3-.5-1.7-.4z"})}),FYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M3.8 15.8h8.9v-1.5H3.8v1.5zm0-7h8.9V7.2H3.8v1.6zm14.7-2.1V10h1V5.3l-2.2.7.3 1 .9-.3zm1.2 6.1c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5H20v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3 0-.8-.3-1.1z"})}),$Ye=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:a.jsx(J,{d:"M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM14 14l5-4-5-4v8z"})}),VYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M11 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.2-.4-.2-.9-.3-1.6-.3-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.2 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.4.1-.6 0-.7-.1zM9.2 16c-.2.3-.5.6-.9.8-.3.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.6-3.9c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"})}),tle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-4-4.6l-4 4 4 4 1-1-3-3 3-3-1-1z"})}),nle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM15.4697 14.9697L18.4393 12L15.4697 9.03033L16.5303 7.96967L20.0303 11.4697L20.5607 12L20.0303 12.5303L16.5303 16.0303L15.4697 14.9697Z"})}),ole=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"})}),HYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M7 18v1h10v-1H7zm5-2c1.5 0 2.6-.4 3.4-1.2.8-.8 1.1-2 1.1-3.5V5H15v5.8c0 1.2-.2 2.1-.6 2.8-.4.7-1.2 1-2.4 1s-2-.3-2.4-1c-.4-.7-.6-1.6-.6-2.8V5H7.5v6.2c0 1.5.4 2.7 1.1 3.5.8.9 1.9 1.3 3.4 1.3z"})}),UYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"})}),Vv=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"})}),rle=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M16.375 4.5H4.625a.125.125 0 0 0-.125.125v8.254l2.859-1.54a.75.75 0 0 1 .68-.016l2.384 1.142 2.89-2.074a.75.75 0 0 1 .874 0l2.313 1.66V4.625a.125.125 0 0 0-.125-.125Zm.125 9.398-2.75-1.975-2.813 2.02a.75.75 0 0 1-.76.067l-2.444-1.17L4.5 14.583v1.792c0 .069.056.125.125.125h11.75a.125.125 0 0 0 .125-.125v-2.477ZM4.625 3C3.728 3 3 3.728 3 4.625v11.75C3 17.273 3.728 18 4.625 18h11.75c.898 0 1.625-.727 1.625-1.625V4.625C18 3.728 17.273 3 16.375 3H4.625ZM20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z",fillRule:"evenodd",clipRule:"evenodd"})}),sle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"})}),q3=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"})}),Of=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"})}),XYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M17.6 7c-.6.9-1.5 1.7-2.6 2v1h2v7h2V7h-1.4zM11 11H7V7H5v10h2v-4h4v4h2V7h-2v4z"})}),GYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M9 11.1H5v-4H3v10h2v-4h4v4h2v-10H9v4zm8 4c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6v1.5h8v-2H17z"})}),KYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.3 1.7c-.4-.4-1-.7-1.6-.8v-.1c.6-.2 1.1-.5 1.5-.9.3-.4.5-.8.5-1.3 0-.4-.1-.8-.3-1.1-.2-.3-.5-.6-.8-.8-.4-.2-.8-.4-1.2-.5-.6-.1-1.1-.2-1.6-.2-.6 0-1.3.1-1.8.3s-1.1.5-1.6.9l1.2 1.4c.4-.2.7-.4 1.1-.6.3-.2.7-.3 1.1-.3.4 0 .8.1 1.1.3.3.2.4.5.4.8 0 .4-.2.7-.6.9-.7.3-1.5.5-2.2.4v1.6c.5 0 1 0 1.5.1.3.1.7.2 1 .3.2.1.4.2.5.4s.1.4.1.6c0 .3-.2.7-.5.8-.4.2-.9.3-1.4.3s-1-.1-1.4-.3c-.4-.2-.8-.4-1.2-.7L13 15.6c.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.6 0 1.1-.1 1.6-.2.4-.1.9-.2 1.3-.5.4-.2.7-.5.9-.9.2-.4.3-.8.3-1.2 0-.6-.3-1.1-.7-1.5z"})}),YYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z"})}),ZYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.7 1.2c-.2-.3-.5-.7-.8-.9-.3-.3-.7-.5-1.1-.6-.5-.1-.9-.2-1.4-.2-.2 0-.5.1-.7.1-.2.1-.5.1-.7.2l.1-1.9h4.3V7H14l-.3 5 1 .6.5-.2.4-.1c.1-.1.3-.1.4-.1h.5c.5 0 1 .1 1.4.4.4.2.6.7.6 1.1 0 .4-.2.8-.6 1.1-.4.3-.9.4-1.4.4-.4 0-.9-.1-1.3-.3-.4-.2-.7-.4-1.1-.7 0 0-1.1 1.4-1 1.5.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.5 0 1-.1 1.5-.3s.9-.4 1.3-.7c.4-.3.7-.7.9-1.1s.3-.9.3-1.4-.1-1-.3-1.4z"})}),QYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M20.7 12.4c-.2-.3-.4-.6-.7-.9s-.6-.5-1-.6c-.4-.2-.8-.2-1.2-.2-.5 0-.9.1-1.3.3s-.8.5-1.2.8c0-.5 0-.9.2-1.4l.6-.9c.2-.2.5-.4.8-.5.6-.2 1.3-.2 1.9 0 .3.1.6.3.8.5 0 0 1.3-1.3 1.3-1.4-.4-.3-.9-.6-1.4-.8-.6-.2-1.3-.3-2-.3-.6 0-1.1.1-1.7.4-.5.2-1 .5-1.4.9-.4.4-.8 1-1 1.6-.3.7-.4 1.5-.4 2.3s.1 1.5.3 2.1c.2.6.6 1.1 1 1.5.4.4.9.7 1.4.9 1 .3 2 .3 3 0 .4-.1.8-.3 1.2-.6.3-.3.6-.6.8-1 .2-.5.3-.9.3-1.4s-.1-.9-.3-1.3zm-2 2.1c-.1.2-.3.4-.4.5-.1.1-.3.2-.5.2-.2.1-.4.1-.6.1-.2.1-.5 0-.7-.1-.2 0-.3-.2-.5-.3-.1-.2-.3-.4-.4-.6-.2-.3-.3-.7-.3-1 .3-.3.6-.5 1-.7.3-.1.7-.2 1-.2.4 0 .8.1 1.1.3.3.3.4.7.4 1.1 0 .2 0 .5-.1.7zM9 11H5V7H3v10h2v-4h4v4h2V7H9v4z"})}),JYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M6 5V18.5911L12 13.8473L18 18.5911V5H6Z"})}),eZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"})}),ile=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})}),tZe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M4.8 11.4H2.1V9H1v6h1.1v-2.6h2.7V15h1.1V9H4.8v2.4zm1.9-1.3h1.7V15h1.1v-4.9h1.7V9H6.7v1.1zM16.2 9l-1.5 2.7L13.3 9h-.9l-.8 6h1.1l.5-4 1.5 2.8 1.5-2.8.5 4h1.1L17 9h-.8zm3.8 5V9h-1.1v6h3.6v-1H20z"})}),Qg=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})}),nZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})}),Y_=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})}),Z_=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M12.5 15v5H11v-5H4V9h7V4h1.5v5h7v6h-7Z"})}),Q_=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})}),h7=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"})}),m7=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M4 4H5.5V20H4V4ZM7 10L17 10V14L7 14V10ZM20 4H18.5V20H20V4Z"})}),oZe=a.jsxs(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[a.jsx(J,{d:"m16 15.5h-8v-1.5h8zm-7.5-2.5h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm-9-3h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2z"}),a.jsx(J,{d:"m18.5 6.5h-13a.5.5 0 0 0 -.5.5v9.5a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-9.5a.5.5 0 0 0 -.5-.5zm-13-1.5h13a2 2 0 0 1 2 2v9.5a2 2 0 0 1 -2 2h-13a2 2 0 0 1 -2-2v-9.5a2 2 0 0 1 2-2z"})]}),J_=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"m6.734 16.106 2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.158 1.093-1.028-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734Z"})}),rZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M17.5 10h-1.7l-3.7 10.5h1.7l.9-2.6h3.9l.9 2.6h1.7L17.5 10zm-2.2 6.3 1.4-4 1.4 4h-2.8zm-4.8-3.8c1.6-1.8 2.9-3.6 3.7-5.7H16V5.2h-5.8V3H8.8v2.2H3v1.5h9.6c-.7 1.6-1.8 3.1-3.1 4.6C8.6 10.2 7.8 9 7.2 8H5.6c.6 1.4 1.7 2.9 2.9 4.4l-2.4 2.4c-.3.4-.7.8-1.1 1.2l1 1 1.2-1.2c.8-.8 1.6-1.5 2.3-2.3.8.9 1.7 1.7 2.5 2.5l.6-1.5c-.7-.6-1.4-1.3-2.1-2z"})}),Af=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})}),sZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",d:"M5 11.25h3v1.5H5v-1.5zm5.5 0h3v1.5h-3v-1.5zm8.5 0h-3v1.5h3v-1.5z",clipRule:"evenodd"})}),iZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",d:"M5.25 11.25h1.5v1.5h-1.5v-1.5zm3 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5zm1.5 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5z",clipRule:"evenodd"})}),aZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M5 11.25h14v1.5H5z"})}),Qa=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})}),Xu=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"})}),ew=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"})}),cZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M12 11v1.5h8V11h-8zm-6-1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})}),M7=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"})}),t4=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zm-2.8 0H9.8V7c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3z"})}),lZe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zM9.8 7c0-1.2 1-2.2 2.2-2.2 1.2 0 2.2 1 2.2 2.2v3H9.8V7zm6.7 11.5h-9v-7h9v7z"})}),uZe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 11h-.2V9c0-1.5-1.2-2.8-2.8-2.8S9.2 7.5 9.2 9v2H9c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1h6c.6 0 1-.4 1-1v-4c0-.6-.4-1-1-1zm-1.8 0h-2.5V9c0-.7.6-1.2 1.2-1.2s1.2.6 1.2 1.2v2z"})}),dZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M11 14.5l1.1 1.1 3-3 .5-.5-.6-.6-3-3-1 1 1.7 1.7H5v1.5h7.7L11 14.5zM16.8 5h-7c-1.1 0-2 .9-2 2v1.5h1.5V7c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v10c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5v-1.5H7.8V17c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2z"})}),ale=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M18.1823 11.6392C18.1823 13.0804 17.0139 14.2487 15.5727 14.2487C14.3579 14.2487 13.335 13.4179 13.0453 12.2922L13.0377 12.2625L13.0278 12.2335L12.3985 10.377L12.3942 10.3785C11.8571 8.64997 10.246 7.39405 8.33961 7.39405C5.99509 7.39405 4.09448 9.29465 4.09448 11.6392C4.09448 13.9837 5.99509 15.8843 8.33961 15.8843C8.88499 15.8843 9.40822 15.781 9.88943 15.5923L9.29212 14.0697C8.99812 14.185 8.67729 14.2487 8.33961 14.2487C6.89838 14.2487 5.73003 13.0804 5.73003 11.6392C5.73003 10.1979 6.89838 9.02959 8.33961 9.02959C9.55444 9.02959 10.5773 9.86046 10.867 10.9862L10.8772 10.9836L11.4695 12.7311C11.9515 14.546 13.6048 15.8843 15.5727 15.8843C17.9172 15.8843 19.8178 13.9837 19.8178 11.6392C19.8178 9.29465 17.9172 7.39404 15.5727 7.39404C15.0287 7.39404 14.5066 7.4968 14.0264 7.6847L14.6223 9.20781C14.9158 9.093 15.2358 9.02959 15.5727 9.02959C17.0139 9.02959 18.1823 10.1979 18.1823 11.6392Z"})}),pZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M12 9c-.8 0-1.5.7-1.5 1.5S11.2 12 12 12s1.5-.7 1.5-1.5S12.8 9 12 9zm0-5c-3.6 0-6.5 2.8-6.5 6.2 0 .8.3 1.8.9 3.1.5 1.1 1.2 2.3 2 3.6.7 1 3 3.8 3.2 3.9l.4.5.4-.5c.2-.2 2.6-2.9 3.2-3.9.8-1.2 1.5-2.5 2-3.6.6-1.3.9-2.3.9-3.1C18.5 6.8 15.6 4 12 4zm4.3 8.7c-.5 1-1.1 2.2-1.9 3.4-.5.7-1.7 2.2-2.4 3-.7-.8-1.9-2.3-2.4-3-.8-1.2-1.4-2.3-1.9-3.3-.6-1.4-.7-2.2-.7-2.5 0-2.6 2.2-4.7 5-4.7s5 2.1 5 4.7c0 .2-.1 1-.7 2.4z"})}),g7=a.jsxs(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[a.jsx(J,{d:"m7 6.5 4 2.5-4 2.5z"}),a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"})]}),fZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M3 6v11.5h8V6H3Zm11 3h7V7.5h-7V9Zm7 3.5h-7V11h7v1.5ZM14 16h7v-1.5h-7V16Z"})}),cle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"})}),xX=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"})}),bZe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"})}),Ol=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})}),hZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M19.75 9c0-1.257-.565-2.197-1.39-2.858-.797-.64-1.827-1.017-2.815-1.247-1.802-.42-3.703-.403-4.383-.396L11 4.5V6l.177-.001c.696-.006 2.416-.02 4.028.356.887.207 1.67.518 2.216.957.52.416.829.945.829 1.688 0 .592-.167.966-.407 1.23-.255.281-.656.508-1.236.674-1.19.34-2.82.346-4.607.346h-.077c-1.692 0-3.527 0-4.942.404-.732.209-1.424.545-1.935 1.108-.526.579-.796 1.33-.796 2.238 0 1.257.565 2.197 1.39 2.858.797.64 1.827 1.017 2.815 1.247 1.802.42 3.703.403 4.383.396L13 19.5h.714V22L18 18.5 13.714 15v3H13l-.177.001c-.696.006-2.416.02-4.028-.356-.887-.207-1.67-.518-2.216-.957-.52-.416-.829-.945-.829-1.688 0-.592.167-.966.407-1.23.255-.281.656-.508 1.237-.674 1.189-.34 2.819-.346 4.606-.346h.077c1.692 0 3.527 0 4.941-.404.732-.209 1.425-.545 1.936-1.108.526-.579.796-1.33.796-2.238z"})}),S3=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"})}),mZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5A6.5 6.5 0 0 1 6.93 7.931l9.139 9.138A6.473 6.473 0 0 1 12 18.5Zm5.123-2.498a6.5 6.5 0 0 0-9.124-9.124l9.124 9.124ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Z"})}),MZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12-9.8c.4 0 .8-.3.9-.7l1.1-3h3.6l.5 1.7h1.9L13 9h-2.2l-3.4 9.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12H20V6c0-1.1-.9-2-2-2zm-6 7l1.4 3.9h-2.7L12 11z"})}),gZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M17.5 9V6a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v3H8V6a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v3h1.5Zm0 6.5V18a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-2.5H8V18a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-2.5h1.5ZM4 13h16v-1.5H4V13Z"})}),lle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M12.5 14.5h-1V16h1c2.2 0 4-1.8 4-4s-1.8-4-4-4h-1v1.5h1c1.4 0 2.5 1.1 2.5 2.5s-1.1 2.5-2.5 2.5zm-4 1.5v-1.5h-1C6.1 14.5 5 13.4 5 12s1.1-2.5 2.5-2.5h1V8h-1c-2.2 0-4 1.8-4 4s1.8 4 4 4h1zm-1-3.2h5v-1.5h-5v1.5zM18 4H9c-1.1 0-2 .9-2 2v.5h1.5V6c0-.3.2-.5.5-.5h9c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5v-.5H7v.5c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2z"})}),Ja=a.jsxs(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[a.jsx(J,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),a.jsx(J,{d:"M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"})]}),zZe=a.jsxs(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[a.jsx(J,{d:"M14.5 5.5h-7V7h7V5.5ZM7.5 9h7v1.5h-7V9Zm7 3.5h-7V14h7v-1.5Z"}),a.jsx(J,{d:"M16 2H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2ZM6 3.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V4a.5.5 0 0 1 .5-.5Z"}),a.jsx(J,{d:"M20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z"})]}),ule=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"})}),OZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm8 4a4 4 0 0 1-4-4h4V8a4 4 0 0 1 0 8Z"})}),dle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z"})}),ple=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z"})}),fle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z"})}),ble=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"})}),AZe=a.jsx(te,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M10.97 10.159a3.382 3.382 0 0 0-2.857.955l1.724 1.723-2.836 2.913L7 17h1.25l2.913-2.837 1.723 1.723a3.38 3.38 0 0 0 .606-.825c.33-.63.446-1.343.35-2.032L17 10.695 13.305 7l-2.334 3.159Z"})}),yZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"})}),is=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})}),hle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"})}),z7=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M10 4.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm2.25 7.5v-1A2.75 2.75 0 0011 8.25H7A2.75 2.75 0 004.25 11v1h1.5v-1c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v1h1.5zM4 20h9v-1.5H4V20zm16-4H4v-1.5h16V16z",fillRule:"evenodd",clipRule:"evenodd"})}),O7=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M20 4H4v1.5h16V4zm-2 9h-3c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3zM4 9.5h9V8H4v1.5zM9 13H6c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3z",fillRule:"evenodd",clipRule:"evenodd"})}),vZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M4 6h12V4.5H4V6Zm16 4.5H4V9h16v1.5ZM4 15h16v-1.5H4V15Zm0 4.5h16V18H4v1.5Z"})}),xZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M14 10.1V4c0-.6-.4-1-1-1H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1zm-1.5-.5H6.7l-1.2 1.2V4.5h7v5.1zM19 12h-8c-.6 0-1 .4-1 1v6.1c0 .6.4 1 1 1h5.7l1.8 1.8c.1.2.4.3.6.3.1 0 .2 0 .3-.1.4-.1.6-.5.6-.8V13c0-.6-.4-1-1-1zm-.5 7.8l-1.2-1.2h-5.8v-5.1h7v6.3z"})}),mle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-2.2 6.6H7l1.6-2.2c.3-.4.5-.7.6-.9.1-.2.2-.4.2-.5 0-.2-.1-.3-.1-.4-.1-.1-.2-.1-.4-.1s-.4 0-.6.1c-.3.1-.5.3-.7.4l-.2.2-.2-1.2.1-.1c.3-.2.5-.3.8-.4.3-.1.6-.1.9-.1.3 0 .6.1.9.2.2.1.4.3.6.5.1.2.2.5.2.7 0 .3-.1.6-.2.9-.1.3-.4.7-.7 1.1l-.5.6h1.6v1.2z"})}),_Ze=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-.5 6.6H6.7l-1.2 1.2v-6.3h7v5.1z"})}),A7=a.jsxs(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[a.jsx(J,{d:"M11.696 13.972c.356-.546.599-.958.728-1.235a1.79 1.79 0 00.203-.783c0-.264-.077-.47-.23-.618-.148-.153-.354-.23-.618-.23-.295 0-.569.07-.82.212a3.413 3.413 0 00-.738.571l-.147-1.188c.289-.234.59-.41.903-.526.313-.117.66-.175 1.041-.175.375 0 .695.08.959.24.264.153.46.362.59.626.135.265.203.556.203.876 0 .362-.08.734-.24 1.115-.154.381-.427.87-.82 1.466l-.756 1.152H14v1.106h-4l1.696-2.609z"}),a.jsx(J,{d:"M19.5 7h-15v12a.5.5 0 00.5.5h14a.5.5 0 00.5-.5V7zM3 7V5a2 2 0 012-2h14a2 2 0 012 2v14a2 2 0 01-2 2H5a2 2 0 01-2-2V7z"})]}),wZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M8.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H4v-3h4.001ZM4 20h9v-1.5H4V20Zm16-4H4v-1.5h16V16ZM13.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H9v-3h4.001Z"})}),Mle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"})}),y7=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M18 5.5H6a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5V6a.5.5 0 0 0-.5-.5ZM6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm1 5h1.5v1.5H7V9Zm1.5 4.5H7V15h1.5v-1.5ZM10 9h7v1.5h-7V9Zm7 4.5h-7V15h7v-1.5Z"})}),kZe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M8.1 12.3c.1.1.3.3.5.3.2.1.4.1.6.1.2 0 .4 0 .6-.1.2-.1.4-.2.5-.3l3-3c.3-.3.5-.7.5-1.1 0-.4-.2-.8-.5-1.1L9.7 3.5c-.1-.2-.3-.3-.5-.3H5c-.4 0-.8.4-.8.8v4.2c0 .2.1.4.2.5l3.7 3.6zM5.8 4.8h3.1l3.4 3.4v.1l-3 3 .5.5-.7-.5-3.3-3.4V4.8zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"})}),gle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"})}),zle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"})}),qZe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 16.5h6V15H7v1.5zm4-4h6V11h-6v1.5zM9 11H7v1.5h2V11zm6 5.5h2V15h-2v1.5z"})}),SZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm11.53-1.47-1.06-1.06L11 12.94l-1.47-1.47-1.06 1.06L11 15.06l4.53-4.53Z"})}),CZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"})}),RZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"})}),WZe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"})}),Ole=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M4 13.5h6v-3H4v3zm8 0h3v-3h-3v3zm5-3v3h3v-3h-3z"})}),Ale=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M5 13.5h3v-3H5v3zm5 0h3v-3h-3v3zM17 9l-1 1 2 2-2 2 1 1 3-3-3-3z"})}),yle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M4 13.5h6v-3H4v3zm8.2-2.5.8-.3V14h1V9.3l-2.2.7.4 1zm7.1-1.2c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3-.1-.8-.3-1.1z"})}),vle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M16 10.5v3h3v-3h-3zm-5 3h3v-3h-3v3zM7 9l-3 3 3 3 1-1-2-2 2-2-1-1z"})}),TZe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M13 6v6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H13zm-9 6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H4v6z"})}),xle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"})}),EZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"m13.955 20.748 8-17.5-.91-.416L19.597 6H13.5v1.5h5.411l-1.6 3.5H13.5v1.5h3.126l-1.6 3.5H13.5l.028 1.5h.812l-1.295 2.832.91.416ZM17.675 16l-.686 1.5h4.539L21.5 16h-3.825Zm2.286-5-.686 1.5H21.5V11h-1.54ZM2 12c0 3.58 2.42 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.48 0-4.5-1.52-4.5-4S5.52 7.5 8 7.5h3.5V6H8c-3.58 0-6 2.42-6 6Z"})}),tw=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M7 11.5h10V13H7z"})}),BZe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M7 18h4.5v1.5h-7v-7H6V17L17 6h-4.5V4.5h7v7H18V7L7 18Z"})}),_le=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z"})}),Gu=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})}),NZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"})}),wle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M5 10.2h-.8v1.5H5c1.9 0 3.8.8 5.1 2.1 1.4 1.4 2.1 3.2 2.1 5.1v.8h1.5V19c0-2.3-.9-4.5-2.6-6.2-1.6-1.6-3.8-2.6-6.1-2.6zm10.4-1.6C12.6 5.8 8.9 4.2 5 4.2h-.8v1.5H5c3.5 0 6.9 1.4 9.4 3.9s3.9 5.8 3.9 9.4v.8h1.5V19c0-3.9-1.6-7.6-4.4-10.4zM4 20h3v-3H4v3z"})}),nw=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})}),LZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm9 1V8h-1.5v3.5h-2V13H13Z"})}),jZe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M4.5 12.5v4H3V7h1.5v3.987h15V7H21v9.5h-1.5v-4h-15Z"})}),kle=a.jsxs(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[a.jsx(J,{d:"m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"}),a.jsx(J,{d:"m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"})]}),PZe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"})}),qle=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M9 11.8l6.1-4.5c.1.4.4.7.9.7h2c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-2c-.6 0-1 .4-1 1v.4l-6.4 4.8c-.2-.1-.4-.2-.6-.2H6c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h2c.2 0 .4-.1.6-.2l6.4 4.8v.4c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1h-2c-.5 0-.8.3-.9.7L9 12.2v-.4z"})}),Sle=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M16 4.2v1.5h2.5v12.5H16v1.5h4V4.2h-4zM4.2 19.8h4v-1.5H5.8V5.8h2.5V4.2h-4l-.1 15.6zm5.1-3.1l1.4.6 4-10-1.4-.6-4 10z"})}),IZe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/SVG",children:a.jsx(J,{d:"M17.192 6.75L15.47 5.03l1.06-1.06 3.537 3.53-3.537 3.53-1.06-1.06 1.723-1.72h-3.19c-.602 0-.993.202-1.28.498-.309.319-.538.792-.695 1.383-.13.488-.222 1.023-.296 1.508-.034.664-.116 1.413-.303 2.117-.193.721-.513 1.467-1.068 2.04-.575.594-1.359.954-2.357.954H4v-1.5h4.003c.601 0 .993-.202 1.28-.498.308-.319.538-.792.695-1.383.149-.557.216-1.093.288-1.662l.039-.31a9.653 9.653 0 0 1 .272-1.653c.193-.722.513-1.467 1.067-2.04.576-.594 1.36-.954 2.358-.954h3.19zM8.004 6.75c.8 0 1.46.23 1.988.628a6.24 6.24 0 0 0-.684 1.396 1.725 1.725 0 0 0-.024-.026c-.287-.296-.679-.498-1.28-.498H4v-1.5h4.003zM12.699 14.726c-.161.459-.38.94-.684 1.396.527.397 1.188.628 1.988.628h3.19l-1.722 1.72 1.06 1.06L20.067 16l-3.537-3.53-1.06 1.06 1.723 1.72h-3.19c-.602 0-.993-.202-1.28-.498a1.96 1.96 0 0 1-.024-.026z"})}),DZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 1.5c4.1 0 7.5 3.4 7.5 7.5v.1c-1.4-.8-3.3-1.7-3.4-1.8-.2-.1-.5-.1-.8.1l-2.9 2.1L9 11.3c-.2-.1-.4 0-.6.1l-3.7 2.2c-.1-.5-.2-1-.2-1.5 0-4.2 3.4-7.6 7.5-7.6zm0 15c-3.1 0-5.7-1.9-6.9-4.5l3.7-2.2 3.5 1.2c.2.1.5 0 .7-.1l2.9-2.1c.8.4 2.5 1.2 3.5 1.9-.9 3.3-3.9 5.8-7.4 5.8z"})}),Cle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z"})}),FZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",d:"M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",clipRule:"evenodd"})}),$Ze=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"})}),VZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M5 4h14v11H5V4Zm11 16H8v-1.5h8V20Z"})}),Rle=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M20 12a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 0 1-6.5 6.5v-13a6.5 6.5 0 0 1 6.5 6.5Z"})}),v7=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M16 5.5H8V4h8v1.5ZM16 20H8v-1.5h8V20ZM5 9h14v6H5V9Z"})}),HZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M16.9 18.3l.8-1.2c.4-.6.7-1.2.9-1.6.2-.4.3-.8.3-1.2 0-.3-.1-.7-.2-1-.1-.3-.4-.5-.6-.7-.3-.2-.6-.3-1-.3s-.8.1-1.1.2c-.3.1-.7.3-1 .6l.2 1.3c.3-.3.5-.5.8-.6s.6-.2.9-.2c.3 0 .5.1.7.2.2.2.2.4.2.7 0 .3-.1.5-.2.8-.1.3-.4.7-.8 1.3L15 19.4h4.3v-1.2h-2.4zM14.1 7.2h-2L9.5 11 6.9 7.2h-2l3.6 5.3L4.7 18h2l2.7-4 2.7 4h2l-3.8-5.5 3.8-5.3z"})}),UZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M16.9 10.3l.8-1.3c.4-.6.7-1.2.9-1.6.2-.4.3-.8.3-1.2 0-.3-.1-.7-.2-1-.2-.2-.4-.4-.7-.6-.3-.2-.6-.3-1-.3s-.8.1-1.1.2c-.3.1-.7.3-1 .6l.1 1.3c.3-.3.5-.5.8-.6s.6-.2.9-.2c.3 0 .5.1.7.2.2.2.2.4.2.7 0 .3-.1.5-.2.8-.1.3-.4.7-.8 1.3l-1.8 2.8h4.3v-1.2h-2.2zm-2.8-3.1h-2L9.5 11 6.9 7.2h-2l3.6 5.3L4.7 18h2l2.7-4 2.7 4h2l-3.8-5.5 3.8-5.3z"})}),Wle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M5 17.7c.4.5.8.9 1.2 1.2l1.1-1.4c-.4-.3-.7-.6-1-1L5 17.7zM5 6.3l1.4 1.1c.3-.4.6-.7 1-1L6.3 5c-.5.4-.9.8-1.3 1.3zm.1 7.8l-1.7.5c.2.6.4 1.1.7 1.6l1.5-.8c-.2-.4-.4-.8-.5-1.3zM4.8 12v-.7L3 11.1v1.8l1.7-.2c.1-.2.1-.5.1-.7zm3 7.9c.5.3 1.1.5 1.6.7l.5-1.7c-.5-.1-.9-.3-1.3-.5l-.8 1.5zM19 6.3c-.4-.5-.8-.9-1.2-1.2l-1.1 1.4c.4.3.7.6 1 1L19 6.3zm-.1 3.6l1.7-.5c-.2-.6-.4-1.1-.7-1.6l-1.5.8c.2.4.4.8.5 1.3zM5.6 8.6l-1.5-.8c-.3.5-.5 1-.7 1.6l1.7.5c.1-.5.3-.9.5-1.3zm2.2-4.5l.8 1.5c.4-.2.8-.4 1.3-.5l-.5-1.7c-.6.2-1.1.4-1.6.7zm8.8 13.5l1.1 1.4c.5-.4.9-.8 1.2-1.2l-1.4-1.1c-.2.3-.5.6-.9.9zm1.8-2.2l1.5.8c.3-.5.5-1.1.7-1.6l-1.7-.5c-.1.5-.3.9-.5 1.3zm2.6-4.3l-1.7.2v1.4l1.7.2V12v-.9zM11.1 3l.2 1.7h1.4l.2-1.7h-1.8zm3 2.1c.5.1.9.3 1.3.5l.8-1.5c-.5-.3-1.1-.5-1.6-.7l-.5 1.7zM12 19.2h-.7l-.2 1.8h1.8l-.2-1.7c-.2-.1-.5-.1-.7-.1zm2.1-.3l.5 1.7c.6-.2 1.1-.4 1.6-.7l-.8-1.5c-.4.2-.8.4-1.3.5z"})}),XZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:a.jsx(J,{d:"M14.08 12.864V9.216h3.648V7.424H14.08V3.776h-1.728v3.648H8.64v1.792h3.712v3.648zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm0 5.12H1.28v3.84H6.4V6.4zm0 5.12H1.28v3.84H6.4v-3.84zM19.2 1.28H7.68v14.08H19.2V1.28z"})}),GZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:a.jsx(J,{d:"M6.4 3.776v3.648H2.752v1.792H6.4v3.648h1.728V9.216h3.712V7.424H8.128V3.776zM0 17.92V0h20.48v17.92H0zM12.8 1.28H1.28v14.08H12.8V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.12h-5.12v3.84h5.12V6.4zm0 5.12h-5.12v3.84h5.12v-3.84z"})}),KZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:a.jsx(J,{d:"M6.4 9.98L7.68 8.7v-.256L6.4 7.164V9.98zm6.4-1.532l1.28-1.28V9.92L12.8 8.64v-.192zm7.68 9.472V0H0v17.92h20.48zm-1.28-2.56h-5.12v-1.024l-.256.256-1.024-1.024v1.792H7.68v-1.792l-1.024 1.024-.256-.256v1.024H1.28V1.28H6.4v2.368l.704-.704.576.576V1.216h5.12V3.52l.96-.96.32.32V1.216h5.12V15.36zm-5.76-2.112l-3.136-3.136-3.264 3.264-1.536-1.536 3.264-3.264L5.632 5.44l1.536-1.536 3.136 3.136 3.2-3.2 1.536 1.536-3.2 3.2 3.136 3.136-1.536 1.536z"})}),Tle=a.jsxs(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M20 9.484h-8.889v-1.5H20v1.5Zm0 7h-4.889v-1.5H20v1.5Zm-14 .032a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 1a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),a.jsx(J,{d:"M13 15.516a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM8 8.484a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})]}),YZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:a.jsx(J,{d:"M13.824 10.176h-2.88v-2.88H9.536v2.88h-2.88v1.344h2.88v2.88h1.408v-2.88h2.88zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm6.4 0H7.68v3.84h5.12V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.056H1.28v9.024H19.2V6.336z"})}),ZZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:a.jsx(J,{d:"M6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84zM6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84z"})}),QZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:a.jsx(J,{d:"M17.728 11.456L14.592 8.32l3.2-3.2-1.536-1.536-3.2 3.2L9.92 3.648 8.384 5.12l3.2 3.2-3.264 3.264 1.536 1.536 3.264-3.264 3.136 3.136 1.472-1.536zM0 17.92V0h20.48v17.92H0zm19.2-6.4h-.448l-1.28-1.28H19.2V6.4h-1.792l1.28-1.28h.512V1.28H1.28v3.84h6.208l1.28 1.28H1.28v3.84h7.424l-1.28 1.28H1.28v3.84H19.2v-3.84z"})}),JZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M4 6v11.5h16V6H4zm1.5 1.5h6V11h-6V7.5zm0 8.5v-3.5h6V16h-6zm13 0H13v-3.5h5.5V16zM13 11V7.5h5.5V11H13z"})}),x7=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})}),Rh=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})}),eQe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M6.08 10.103h2.914L9.657 12h1.417L8.23 4H6.846L4 12h1.417l.663-1.897Zm1.463-4.137.994 2.857h-2l1.006-2.857ZM11 16H4v-1.5h7V16Zm1 0h8v-1.5h-8V16Zm-4 4H4v-1.5h4V20Zm7-1.5V20H9v-1.5h6Z"})}),Ele=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",d:"M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})}),Ble=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})}),Nle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})}),_X=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z"})}),tQe=a.jsxs(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[a.jsx(J,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),a.jsx(J,{d:"m16.5 19.5h-9v-1.5h9z"})]}),nQe=a.jsxs(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[a.jsx(J,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),a.jsx(J,{d:"m4.5 7.5v9h1.5v-9z"}),a.jsx(J,{d:"m18 7.5v9h1.5v-9z"})]}),oQe=a.jsxs(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[a.jsx(J,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),a.jsx(J,{d:"m4.5 16.5v-9h1.5v9z"})]}),rQe=a.jsxs(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[a.jsx(J,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),a.jsx(J,{d:"m18 16.5v-9h1.5v9z"})]}),sQe=a.jsxs(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[a.jsx(J,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),a.jsx(J,{d:"m16.5 6h-9v-1.5h9z"})]}),iQe=a.jsxs(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[a.jsx(J,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),a.jsx(J,{d:"m7.5 6h9v-1.5h-9z"}),a.jsx(J,{d:"m7.5 19.5h9v-1.5h-9z"})]}),aQe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M12.9 6h-2l-4 11h1.9l1.1-3h4.2l1.1 3h1.9L12.9 6zm-2.5 6.5l1.5-4.9 1.7 4.9h-3.2z"})}),cQe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M8.2 14.4h3.9L13 17h1.7L11 6.5H9.3L5.6 17h1.7l.9-2.6zm2-5.5 1.4 4H8.8l1.4-4zm7.4 7.5-1.3.8.8 1.4H5.5V20h14.3l-2.2-3.6z"})}),lQe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M7 5.6v1.7l2.6.9v3.9L7 13v1.7L17.5 11V9.3L7 5.6zm4.2 6V8.8l4 1.4-4 1.4zm-5.7 5.6V5.5H4v14.3l3.6-2.2-.8-1.3-1.3.9z"})}),wX=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"})}),Jg=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"m4 5.5h2v6.5h1.5v-6.5h2v-1.5h-5.5zm16 10.5h-16v-1.5h16zm-7 4h-9v-1.5h9z"})}),uQe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"})}),C3=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"})}),Lle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"})}),dQe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M18 4h-7c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7zm-5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h1V9H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-1h-1.5v1z"})}),FM=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8h1.5c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1z"})}),Wh=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{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"})}),ow=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z"})}),lW=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"})}),pQe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:a.jsx(J,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"})}),fQe={name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"},_7="…",np={auto:"auto",head:"head",middle:"middle",tail:"tail",none:"none"},bQe={ellipsis:_7,ellipsizeMode:np.auto,limit:0,numberOfLines:0};function hQe(e,t,n,o){if(typeof e!="string")return"";const r=e.length,s=~~t,i=~~n,c=xs(o)?o:_7;return s===0&&i===0||s>=r||i>=r||s+i>=r?e:i===0?e.slice(0,s)+c:e.slice(0,s)+c+e.slice(r-i)}function mQe(e="",t){const n={...bQe,...t},{ellipsis:o,ellipsizeMode:r,limit:s}=n;if(r===np.none)return e;let i,c;switch(r){case np.head:i=0,c=s;break;case np.middle:i=Math.floor(s/2),c=Math.floor(s/2);break;default:i=s,c=0}return r!==np.auto?hQe(e,i,c,o):e}function jle(e){const{className:t,children:n,ellipsis:o=_7,ellipsizeMode:r=np.auto,limit:s=0,numberOfLines:i=0,...c}=Ut(e,"Truncate"),l=x0();let u;typeof n=="string"?u=n:typeof n=="number"&&(u=n.toString());const d=u?mQe(u,{ellipsis:o,ellipsizeMode:r,limit:s,numberOfLines:i}):n,p=!!u&&r===np.auto,f=O.useMemo(()=>l(p&&!i&&fQe,p&&!!i&&ke(i===1?"word-break: break-all;":""," -webkit-box-orient:vertical;-webkit-line-clamp:",i,";display:-webkit-box;overflow:hidden;",""),t),[t,l,i,p]);return{...c,className:f,children:d}}function MQe(e,t){const n=jle(e);return a.jsx(C0,{as:"span",...n,ref:t})}const Ho=Qt(MQe,"Truncate"),Ple=ke("color:",qe.gray[900],";line-height:",Se.fontLineHeightBase,";margin:0;text-wrap:balance;text-wrap:pretty;",""),Ile={name:"4zleql",styles:"display:block"},gQe=ke("color:",qe.alert.green,";",""),Dle=ke("color:",qe.alert.red,";",""),Fle=ke("color:",qe.gray[700],";",""),$le=ke("mark{background:",qe.alert.yellow,";border-radius:",Se.radiusSmall,";box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset,0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset;}",""),zQe={name:"50zrmy",styles:"text-transform:uppercase"},OQe=Object.freeze(Object.defineProperty({__proto__:null,Text:Ple,block:Ile,destructive:Dle,highlighterText:$le,muted:Fle,positive:gQe,upperCase:zQe},Symbol.toStringTag,{value:"Module"}));var Vle={exports:{}};(function(e){e.exports=function(t){var n={};function o(r){if(n[r])return n[r].exports;var s=n[r]={exports:{},id:r,loaded:!1};return t[r].call(s.exports,s,s.exports,o),s.loaded=!0,s.exports}return o.m=t,o.c=n,o.p="",o(0)}([function(t,n,o){t.exports=o(1)},function(t,n,o){Object.defineProperty(n,"__esModule",{value:!0});var r=o(2);Object.defineProperty(n,"combineChunks",{enumerable:!0,get:function(){return r.combineChunks}}),Object.defineProperty(n,"fillInChunks",{enumerable:!0,get:function(){return r.fillInChunks}}),Object.defineProperty(n,"findAll",{enumerable:!0,get:function(){return r.findAll}}),Object.defineProperty(n,"findChunks",{enumerable:!0,get:function(){return r.findChunks}})},function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.findAll=function(u){var d=u.autoEscape,p=u.caseSensitive,f=p===void 0?!1:p,b=u.findChunks,h=b===void 0?r:b,g=u.sanitize,z=u.searchWords,y=u.textToHighlight;return s({chunksToHighlight:o({chunks:h({autoEscape:d,caseSensitive:f,sanitize:g,searchWords:z,textToHighlight:y})}),totalLength:y?y.length:0})};var o=n.combineChunks=function(u){var d=u.chunks;return d=d.sort(function(p,f){return p.start-f.start}).reduce(function(p,f){if(p.length===0)return[f];var b=p.pop();if(f.start<=b.end){var h=Math.max(b.end,f.end);p.push({highlight:!1,start:b.start,end:h})}else p.push(b,f);return p},[]),d},r=function(u){var d=u.autoEscape,p=u.caseSensitive,f=u.sanitize,b=f===void 0?i:f,h=u.searchWords,g=u.textToHighlight;return g=b(g),h.filter(function(z){return z}).reduce(function(z,y){y=b(y),d&&(y=c(y));for(var x=new RegExp(y,p?"g":"gi"),v=void 0;v=x.exec(g);){var M=v.index,A=x.lastIndex;A>M&&z.push({highlight:!1,start:M,end:A}),v.index===x.lastIndex&&x.lastIndex++}return z},[])};n.findChunks=r;var s=n.fillInChunks=function(u){var d=u.chunksToHighlight,p=u.totalLength,f=[],b=function(z,y,x){y-z>0&&f.push({start:z,end:y,highlight:x})};if(d.length===0)b(0,p,!1);else{var h=0;d.forEach(function(g){b(h,g.start,!1),b(g.start,g.end,!0),h=g.end}),b(h,p,!1)}return f};function i(l){return l}function c(l){return l.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}}])})(Vle);var AQe=Vle.exports;const yQe=e=>{const t={};for(const n in e)t[n.toLowerCase()]=e[n];return t},vQe=ps(yQe);function xQe({activeClassName:e="",activeIndex:t=-1,activeStyle:n,autoEscape:o,caseSensitive:r=!1,children:s,findChunks:i,highlightClassName:c="",highlightStyle:l={},highlightTag:u="mark",sanitize:d,searchWords:p=[],unhighlightClassName:f="",unhighlightStyle:b}){if(!s)return null;if(typeof s!="string")return s;const h=s,g=AQe.findAll({autoEscape:o,caseSensitive:r,findChunks:i,sanitize:d,searchWords:p,textToHighlight:h}),z=u;let y=-1,x="",v;return g.map((A,_)=>{const w=h.substr(A.start,A.end-A.start);if(A.highlight){y++;let k;typeof c=="object"?r?k=c[w]:(c=vQe(c),k=c[w.toLowerCase()]):k=c;const q=y===+t;x=`${k} ${q?e:""}`,v=q===!0&&n!==null?Object.assign({},l,n):l;const S={children:w,className:x,key:_,style:v};return typeof z!="string"&&(S.highlightIndex=y),O.createElement(z,S)}return O.createElement("span",{children:w,className:f,key:_,style:b})})}const uW=13,kX={body:uW,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20},_Qe=[1,2,3,4,5,6].flatMap(e=>[e,e.toString()]);function w7(e=uW){if(e in kX)return w7(kX[e]);if(typeof e!="number"){const n=parseFloat(e);if(Number.isNaN(n))return e;e=n}return`calc(${`(${e} / ${uW})`} * ${Se.fontSize})`}function wQe(e=3){if(!_Qe.includes(e))return w7(e);const t=`fontSizeH${e}`;return Se[t]}function kQe(e,t){if(t)return t;if(!e)return;let n=`calc(${Se.controlHeight} + ${Ce(2)})`;switch(e){case"large":n=`calc(${Se.controlHeightLarge} + ${Ce(2)})`;break;case"small":n=`calc(${Se.controlHeightSmall} + ${Ce(2)})`;break;case"xSmall":n=`calc(${Se.controlHeightXSmall} + ${Ce(2)})`;break}return n}var qQe={name:"50zrmy",styles:"text-transform:uppercase"};function Hle(e){const{adjustLineHeightForInnerControls:t,align:n,children:o,className:r,color:s,ellipsizeMode:i,isDestructive:c=!1,display:l,highlightEscape:u=!1,highlightCaseSensitive:d=!1,highlightWords:p,highlightSanitize:f,isBlock:b=!1,letterSpacing:h,lineHeight:g,optimizeReadabilityFor:z,size:y,truncate:x=!1,upperCase:v=!1,variant:M,weight:A=Se.fontWeight,..._}=Ut(e,"Text");let w=o;const k=Array.isArray(p),q=y==="caption";if(k){if(typeof o!="string")throw new TypeError("`children` of `Text` must only be `string` types when `highlightWords` is defined");w=xQe({autoEscape:u,children:o,caseSensitive:d,searchWords:p,sanitize:f})}const S=x0(),C=O.useMemo(()=>{const N={},E=kQe(t,g);if(N.Base=ke({color:s,display:l,fontSize:w7(y),fontWeight:A,lineHeight:E,letterSpacing:h,textAlign:n},"",""),N.upperCase=qQe,N.optimalTextColor=null,z){const L=PVe(z)==="dark";N.optimalTextColor=ke(L?{color:qe.gray[900]}:{color:qe.white},"","")}return S(Ple,N.Base,N.optimalTextColor,c&&Dle,!!k&&$le,b&&Ile,q&&Fle,M&&OQe[M],v&&N.upperCase,r)},[t,n,r,s,S,l,b,q,c,k,h,g,z,y,v,M,A]);let T;x===!0&&(T="auto"),x===!1&&(T="none");const W={..._,className:C,children:o,ellipsizeMode:i||T},B=jle(W);return!x&&Array.isArray(o)&&(w=O.Children.map(o,N=>typeof N!="object"||N===null||!("props"in N)?N:lae(N,["Link"])?O.cloneElement(N,{size:N.props.size||"inherit"}):N)),{...B,children:x?B.children:w}}function SQe(e,t){const n=Hle(e);return a.jsx(C0,{as:"span",...n,ref:t})}const l0=Qt(SQe,"Text"),Ule=we("span",{target:"em5sgkm8"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),Xle=we("span",{target:"em5sgkm7"})({name:"jgf79h",styles:"align-items:center;align-self:stretch;box-sizing:border-box;display:flex"}),CQe=({disabled:e,isBorderless:t})=>t?"transparent":e?qe.ui.borderDisabled:qe.ui.border,R3=we("div",{target:"em5sgkm6"})("&&&{box-sizing:border-box;border-color:",CQe,";border-radius:inherit;border-style:solid;border-width:1px;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",dn({paddingLeft:2}),";}"),RQe=we(Q0,{target:"em5sgkm5"})("box-sizing:border-box;position:relative;border-radius:",Se.radiusSmall,";padding-top:0;&:focus-within:not( :has( :is( ",Ule,", ",Xle," ):focus-within ) ){",R3,"{border-color:",qe.ui.borderFocus,";box-shadow:",Se.controlBoxShadowFocus,";outline:2px solid transparent;outline-offset:-2px;}}"),WQe=({disabled:e})=>{const t=e?qe.ui.backgroundDisabled:qe.ui.background;return ke({backgroundColor:t},"","")};var TQe={name:"1d3w5wq",styles:"width:100%"};const EQe=({__unstableInputWidth:e,labelPosition:t})=>e?t==="side"?"":ke(t==="edge"?{flex:`0 0 ${e}`}:{width:e},"",""):TQe,BQe=we("div",{target:"em5sgkm4"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",WQe," ",EQe,";"),NQe=({disabled:e})=>e?ke({color:qe.ui.textDisabled},"",""):"",k7=({inputSize:e})=>{const t={default:"13px",small:"11px",compact:"13px","__unstable-large":"13px"},n=t[e]||t.default,o="16px";return n?ke("font-size:",o,";@media ( min-width: 600px ){font-size:",n,";}",""):""},Gle=({inputSize:e,__next40pxDefaultSize:t})=>{const n={default:{height:40,lineHeight:1,minHeight:40,paddingLeft:Se.controlPaddingX,paddingRight:Se.controlPaddingX},small:{height:24,lineHeight:1,minHeight:24,paddingLeft:Se.controlPaddingXSmall,paddingRight:Se.controlPaddingXSmall},compact:{height:32,lineHeight:1,minHeight:32,paddingLeft:Se.controlPaddingXSmall,paddingRight:Se.controlPaddingXSmall},"__unstable-large":{height:40,lineHeight:1,minHeight:40,paddingLeft:Se.controlPaddingX,paddingRight:Se.controlPaddingX}};return t||(n.default=n.compact),n[e]||n.default},LQe=e=>ke(Gle(e),"",""),jQe=({paddingInlineStart:e,paddingInlineEnd:t})=>ke({paddingInlineStart:e,paddingInlineEnd:t},"",""),PQe=({isDragging:e,dragCursor:t})=>{let n,o;return e&&(n=ke("cursor:",t,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}","")),e&&t&&(o=ke("&:active{cursor:",t,";}","")),ke(n," ",o,";","")},rw=we("input",{target:"em5sgkm3"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",qe.theme.foreground,";display:block;font-family:inherit;margin:0;outline:none;width:100%;",PQe," ",NQe," ",k7," ",LQe," ",jQe," &::-webkit-input-placeholder{line-height:normal;}}"),IQe=we(l0,{target:"em5sgkm2"})("&&&{",rae,";box-sizing:border-box;display:block;padding-top:0;padding-bottom:0;max-width:100%;z-index:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}"),DQe=e=>a.jsx(IQe,{...e,as:"label"}),Kle=we(Ht,{target:"em5sgkm1"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"}),FQe=({variant:e="default",size:t,__next40pxDefaultSize:n,isPrefix:o})=>{const{paddingLeft:r}=Gle({inputSize:t,__next40pxDefaultSize:n}),s=o?"paddingInlineStart":"paddingInlineEnd";return ke(e==="default"?{[s]:r}:{display:"flex",[s]:r-4},"","")},Yle=we("div",{target:"em5sgkm0"})(FQe,";");function $Qe({disabled:e=!1,isBorderless:t=!1}){return a.jsx(R3,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:e,isBorderless:t})}const VQe=O.memo($Qe);function HQe({children:e,hideLabelFromVision:t,htmlFor:n,...o}){return e?t?a.jsx(Kt,{as:"label",htmlFor:n,children:e}):a.jsx(Kle,{children:a.jsx(DQe,{htmlFor:n,...o,children:e})}):null}function Md(e){const{__next36pxDefaultSize:t,__next40pxDefaultSize:n,...o}=e;return{...o,__next40pxDefaultSize:n??t}}function UQe(e){const n=`input-base-control-${He(Zle)}`;return e||n}function XQe(e){const t={};switch(e){case"top":t.direction="column",t.expanded=!1,t.gap=0;break;case"bottom":t.direction="column-reverse",t.expanded=!1,t.gap=0;break;case"edge":t.justify="space-between";break}return t}function Zle(e,t){const{__next40pxDefaultSize:n,__unstableInputWidth:o,children:r,className:s,disabled:i=!1,hideLabelFromVision:c=!1,labelPosition:l,id:u,isBorderless:d=!1,label:p,prefix:f,size:b="default",suffix:h,...g}=Md(Ut(e,"InputBase")),z=UQe(u),y=c||!p,x=O.useMemo(()=>({InputControlPrefixWrapper:{__next40pxDefaultSize:n,size:b},InputControlSuffixWrapper:{__next40pxDefaultSize:n,size:b}}),[n,b]);return a.jsxs(RQe,{...g,...XQe(l),className:s,gap:2,ref:t,children:[a.jsx(HQe,{className:"components-input-control__label",hideLabelFromVision:c,labelPosition:l,htmlFor:z,children:p}),a.jsxs(BQe,{__unstableInputWidth:o,className:"components-input-control__container",disabled:i,hideLabel:y,labelPosition:l,children:[a.jsxs(O3,{value:x,children:[f&&a.jsx(Ule,{className:"components-input-control__prefix",children:f}),r,h&&a.jsx(Xle,{className:"components-input-control__suffix",children:h})]}),a.jsx(VQe,{disabled:i,isBorderless:d})]})]})}const q7=Qt(Zle,"InputBase");function GQe(e,t,n){return Math.max(t,Math.min(e,n))}const Eo={toVector(e,t){return e===void 0&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function qX(e,t,n){return t===0||Math.abs(t)===1/0?Math.pow(e,n*5):e*t*n/(t+n*e)}function SX(e,t,n,o=.15){return o===0?GQe(e,t,n):en?+qX(e-n,n-t,o)+n:e}function KQe(e,[t,n],[o,r]){const[[s,i],[c,l]]=e;return[SX(t,s,i,o),SX(n,c,l,r)]}function YQe(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZQe(e){var t=YQe(e,"string");return typeof t=="symbol"?t:String(t)}function zr(e,t,n){return t=ZQe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function Un(e){for(var t=1;t{var n,o;return t.target===e.currentTarget||((n=e.currentTarget)===null||n===void 0||(o=n.contains)===null||o===void 0?void 0:o.call(n,t.target))})}function sJe(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function eue(e){return sw(e)?sJe(e)[0]:e}function iJe(e){return rJe(e).map(t=>t.identifier)}function $q(e){const t=eue(e);return sw(e)?t.identifier:t.pointerId}function WX(e){const t=eue(e);return[t.clientX,t.clientY]}function aJe(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:o,metaKey:r,ctrlKey:s}=e;Object.assign(t,{shiftKey:n,altKey:o,metaKey:r,ctrlKey:s})}return t}function Hv(e,...t){return typeof e=="function"?e(...t):e}function cJe(){}function lJe(...e){return e.length===0?cJe:e.length===1?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function TX(e,t){return Object.assign({},t,e||{})}const uJe=32;class dJe{constructor(t,n,o){this.ctrl=t,this.args=n,this.key=o,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:n,ingKey:o,args:r}=this;n[o]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=r,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const n=this.state,o=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=t.target,n.currentTarget=t.currentTarget,n.lastOffset=o.from?Hv(o.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=t.timeStamp)}computeValues(t){const n=this.state;n._values=t,n.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:n,config:o,shared:r}=this;n.args=this.args;let s=0;if(t&&(n.event=t,o.preventDefault&&t.cancelable&&n.event.preventDefault(),n.type=t.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,aJe(t)),r.down=r.pressed=r.buttons%2===1||r.touches>0,s=t.timeStamp-n.timeStamp,n.timeStamp=t.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const _=n._delta.map(Math.abs);Eo.addTo(n._distance,_)}this.axisIntent&&this.axisIntent(t);const[i,c]=n._movement,[l,u]=o.threshold,{_step:d,values:p}=n;if(o.hasCustomTransform?(d[0]===!1&&(d[0]=Math.abs(i)>=l&&p[0]),d[1]===!1&&(d[1]=Math.abs(c)>=u&&p[1])):(d[0]===!1&&(d[0]=Math.abs(i)>=l&&Math.sign(i)*l),d[1]===!1&&(d[1]=Math.abs(c)>=u&&Math.sign(c)*u)),n.intentional=d[0]!==!1||d[1]!==!1,!n.intentional)return;const f=[0,0];if(o.hasCustomTransform){const[_,w]=p;f[0]=d[0]!==!1?_-d[0]:0,f[1]=d[1]!==!1?w-d[1]:0}else f[0]=d[0]!==!1?i-d[0]:0,f[1]=d[1]!==!1?c-d[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(f);const b=n.offset,h=n._active&&!n._blocked||n.active;h&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=r[this.ingKey]=n._active,t&&(n.first&&("bounds"in o&&(n._bounds=Hv(o.bounds,n)),this.setup&&this.setup()),n.movement=f,this.computeOffset()));const[g,z]=n.offset,[[y,x],[v,M]]=n._bounds;n.overflow=[gx?1:0,zM?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const A=n._active?o.rubberband||[0,0]:[0,0];if(n.offset=KQe(n._bounds,n.offset,A),n.delta=Eo.sub(n.offset,b),this.computeMovement(),h&&(!n.last||s>uJe)){n.delta=Eo.sub(n.offset,b);const _=n.delta.map(Math.abs);Eo.addTo(n.distance,_),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&s>0&&(n.velocity=[_[0]/s,_[1]/s],n.timeDelta=s)}}emit(){const t=this.state,n=this.shared,o=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!o.triggerAllEvents)return;const r=this.handler(Un(Un(Un({},n),t),{},{[this.aliasKey]:t.values}));r!==void 0&&(t.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function pJe([e,t],n){const o=Math.abs(e),r=Math.abs(t);if(o>r&&o>n)return"x";if(r>o&&r>n)return"y"}class fJe extends dJe{constructor(...t){super(...t),zr(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=Eo.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Eo.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const n=this.state,o=this.config;if(!n.axis&&t){const r=typeof o.axisThreshold=="object"?o.axisThreshold[Jle(t)]:o.axisThreshold;n.axis=pJe(n._movement,r)}n._blocked=(o.lockDirection||!!o.axis)&&!n.axis||!!o.axis&&o.axis!==n.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const bJe=e=>e,EX=.15,tue={enabled(e=!0){return e},eventOptions(e,t,n){return Un(Un({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[EX,EX];case!1:return[0,0];default:return Eo.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return Eo.toVector(e)},transform(e,t,n){const o=e||n.shared.transform;return this.hasCustomTransform=!!o,o||bJe},threshold(e){return Eo.toVector(e,0)}},hJe=0,W3=Un(Un({},tue),{},{axis(e,t,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(e=hJe){return e},bounds(e={}){if(typeof e=="function")return s=>W3.bounds(e(s));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:o=-1/0,bottom:r=1/0}=e;return[[t,n],[o,r]]}}),BX={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};class mJe extends fJe{constructor(...t){super(...t),zr(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const n=t._bounds.getBoundingClientRect(),o=t.currentTarget.getBoundingClientRect(),r={left:n.left-o.left+t.offset[0],right:n.right-o.right+t.offset[0],top:n.top-o.top+t.offset[1],bottom:n.bottom-o.bottom+t.offset[1]};t._bounds=W3.bounds(r)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const n=this.config,o=this.state;if(t.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(t.buttons):n.pointerButtons!==-1&&n.pointerButtons!==t.buttons))return;const r=this.ctrl.setEventIds(t);n.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(r&&r.size>1&&o._pointerActive)&&(this.start(t),this.setupPointer(t),o._pointerId=$q(t),o._pointerActive=!0,this.computeValues(WX(t)),this.computeInitial(),n.preventScrollAxis&&Jle(t)!=="mouse"?(o._active=!1,this.setupScrollPrevention(t)):n.delay>0?(this.setupDelayTrigger(t),n.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const n=this.state,o=this.config;if(!n._pointerActive)return;const r=$q(t);if(n._pointerId!==void 0&&r!==n._pointerId)return;const s=WX(t);if(document.pointerLockElement===t.target?n._delta=[t.movementX,t.movementY]:(n._delta=Eo.sub(s,n._values),this.computeValues(s)),Eo.addTo(n._movement,n._delta),this.compute(t),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(t);return}if(o.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===o.preventScrollAxis||o.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch{}const n=this.state,o=this.config;if(!n._active||!n._pointerActive)return;const r=$q(t);if(n._pointerId!==void 0&&r!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[s,i]=n._distance;if(n.tap=s<=o.tapsThreshold&&i<=o.tapsThreshold,n.tap&&o.filterTaps)n._force=!0;else{const[c,l]=n._delta,[u,d]=n._movement,[p,f]=o.swipe.velocity,[b,h]=o.swipe.distance,g=o.swipe.duration;if(n.elapsedTimep&&Math.abs(u)>b&&(n.swipe[0]=Math.sign(c)),y>f&&Math.abs(d)>h&&(n.swipe[1]=Math.sign(l))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const n=this.config,o=n.device;n.pointerLock&&t.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,o,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,o,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,o,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,MJe(t);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const n=BX[t.key];if(n){const o=this.state,r=t.shiftKey?10:t.altKey?.1:1;this.start(t),o._delta=n(this.config.keyboardDisplacement,r),o._keyboardActive=!0,Eo.addTo(o._movement,o._delta),this.compute(t),this.emit()}}keyUp(t){t.key in BX&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const n=this.config.device;t(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(n,"change",this.pointerMove.bind(this)),t(n,"end",this.pointerUp.bind(this)),t(n,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function MJe(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const T3=typeof window<"u"&&window.document&&window.document.createElement;function nue(){return T3&&"ontouchstart"in window}function gJe(){return nue()||T3&&window.navigator.maxTouchPoints>1}function zJe(){return T3&&"onpointerdown"in window}function OJe(){return T3&&"exitPointerLock"in window.document}function AJe(){try{return"constructor"in GestureEvent}catch{return!1}}const ks={isBrowser:T3,gesture:AJe(),touch:nue(),touchscreen:gJe(),pointer:zJe(),pointerLock:OJe()},yJe=250,vJe=180,xJe=.5,_Je=50,wJe=250,kJe=10,NX={mouse:0,touch:0,pen:8},qJe=Un(Un({},W3),{},{device(e,t,{pointer:{touch:n=!1,lock:o=!1,mouse:r=!1}={}}){return this.pointerLock=o&&ks.pointerLock,ks.touch&&n?"touch":this.pointerLock?"mouse":ks.pointer&&!r?"pointer":ks.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&e?yJe:void 0,!(!ks.touchscreen||n===!1))return e||(n!==void 0?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:o=1,keys:r=!0}={}}){return this.pointerButtons=o,this.keys=r,!this.pointerLock&&this.device==="pointer"&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:o=3,axis:r=void 0}){const s=Eo.toVector(e,n?o:r?1:0);return this.filterTaps=n,this.tapsThreshold=o,s},swipe({velocity:e=xJe,distance:t=_Je,duration:n=wJe}={}){return{velocity:this.transform(Eo.toVector(e)),distance:this.transform(Eo.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return vJe;case!1:return 0;default:return e}},axisThreshold(e){return e?Un(Un({},NX),e):NX},keyboardDisplacement(e=kJe){return e}});Un(Un({},tue),{},{device(e,t,{shared:n,pointer:{touch:o=!1}={}}){if(n.target&&!ks.touch&&ks.gesture)return"gesture";if(ks.touch&&o)return"touch";if(ks.touchscreen){if(ks.pointer)return"pointer";if(ks.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:o={}}){const r=i=>{const c=TX(Hv(n,i),{min:-1/0,max:1/0});return[c.min,c.max]},s=i=>{const c=TX(Hv(o,i),{min:-1/0,max:1/0});return[c.min,c.max]};return typeof n!="function"&&typeof o!="function"?[r(),s()]:i=>[r(i),s(i)]},threshold(e,t,n){return this.lockDirection=n.axis==="lock",Eo.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});Un(Un({},W3),{},{mouseOnly:(e=!0)=>e});Un(Un({},W3),{},{mouseOnly:(e=!0)=>e});const oue=new Map,dW=new Map;function SJe(e){oue.set(e.key,e.engine),dW.set(e.key,e.resolver)}const CJe={key:"drag",engine:mJe,resolver:qJe};function RJe(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,s;for(s=0;s=0)&&(n[r]=e[r]);return n}function WJe(e,t){if(e==null)return{};var n=RJe(e,t),o,r;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}const TJe={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=ks.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},EJe=["target","eventOptions","window","enabled","transform"];function n4(e={},t){const n={};for(const[o,r]of Object.entries(t))switch(typeof r){case"function":n[o]=r.call(n,e[o],o,e);break;case"object":n[o]=n4(e[o],r);break;case"boolean":r&&(n[o]=e[o]);break}return n}function BJe(e,t,n={}){const o=e,{target:r,eventOptions:s,window:i,enabled:c,transform:l}=o,u=WJe(o,EJe);if(n.shared=n4({target:r,eventOptions:s,window:i,enabled:c,transform:l},TJe),t){const d=dW.get(t);n[t]=n4(Un({shared:n.shared},u),d)}else for(const d in u){const p=dW.get(d);p&&(n[d]=n4(Un({shared:n.shared},u[d]),p))}return n}class rue{constructor(t,n){zr(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=n}add(t,n,o,r,s){const i=this._listeners,c=oJe(n,o),l=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},u=Un(Un({},l),s);t.addEventListener(c,r,u);const d=()=>{t.removeEventListener(c,r,u),i.delete(d)};return i.add(d),d}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class NJe{constructor(){zr(this,"_timeouts",new Map)}add(t,n,o=140,...r){this.remove(t),this._timeouts.set(t,window.setTimeout(n,o,...r))}remove(t){const n=this._timeouts.get(t);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(t=>void window.clearTimeout(t)),this._timeouts.clear()}}let LJe=class{constructor(t){zr(this,"gestures",new Set),zr(this,"_targetEventStore",new rue(this)),zr(this,"gestureEventStores",{}),zr(this,"gestureTimeoutStores",{}),zr(this,"handlers",{}),zr(this,"config",{}),zr(this,"pointerIds",new Set),zr(this,"touchIds",new Set),zr(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),jJe(this,t)}setEventIds(t){if(sw(t))return this.touchIds=new Set(iJe(t)),this.touchIds;if("pointerId"in t)return t.type==="pointerup"||t.type==="pointercancel"?this.pointerIds.delete(t.pointerId):t.type==="pointerdown"&&this.pointerIds.add(t.pointerId),this.pointerIds}applyHandlers(t,n){this.handlers=t,this.nativeHandlers=n}applyConfig(t,n){this.config=BJe(t,n,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){const n=this.config.shared,o={};let r;if(!(n.target&&(r=n.target(),!r))){if(n.enabled){for(const i of this.gestures){const c=this.config[i],l=LX(o,c.eventOptions,!!r);if(c.enabled){const u=oue.get(i);new u(this,t,i).bind(l)}}const s=LX(o,n.eventOptions,!!r);for(const i in this.nativeHandlers)s(i,"",c=>this.nativeHandlers[i](Un(Un({},this.state.shared),{},{event:c,args:t})),void 0,!0)}for(const s in o)o[s]=lJe(...o[s]);if(!r)return o;for(const s in o){const{device:i,capture:c,passive:l}=nJe(s);this._targetEventStore.add(r,i,"",o[s],{capture:c,passive:l})}}}};function Ff(e,t){e.gestures.add(t),e.gestureEventStores[t]=new rue(e,t),e.gestureTimeoutStores[t]=new NJe}function jJe(e,t){t.drag&&Ff(e,"drag"),t.wheel&&Ff(e,"wheel"),t.scroll&&Ff(e,"scroll"),t.move&&Ff(e,"move"),t.pinch&&Ff(e,"pinch"),t.hover&&Ff(e,"hover")}const LX=(e,t,n)=>(o,r,s,i={},c=!1)=>{var l,u;const d=(l=i.capture)!==null&&l!==void 0?l:t.capture,p=(u=i.passive)!==null&&u!==void 0?u:t.passive;let f=c?o:eJe(o,r,d);n&&p&&(f+="Passive"),e[f]=e[f]||[],e[f].push(s)};function PJe(e,t={},n,o){const r=G0.useMemo(()=>new LJe(e),[]);if(r.applyHandlers(e,o),r.applyConfig(t,n),G0.useEffect(r.effect.bind(r)),G0.useEffect(()=>r.clean.bind(r),[]),t.target===void 0)return r.bind.bind(r)}function IJe(e,t){return SJe(CJe),PJe({drag:e},t||{},"drag")}function DJe(e){let t="ns-resize";switch(e){case"n":case"s":t="ns-resize";break;case"e":case"w":t="ew-resize";break}return t}function FJe(e,t){const n=DJe(t);return O.useEffect(()=>{e?document.documentElement.style.cursor=n:document.documentElement.style.cursor=null},[e,n]),n}function $Je(e){const t=O.useRef(e.value),[n,o]=O.useState({}),r=n.value!==void 0?n.value:e.value;return O.useLayoutEffect(()=>{const{current:c}=t;t.current=e.value,n.value!==void 0&&!n.isStale?o({...n,isStale:!0}):n.isStale&&e.value!==c&&o({})},[e.value,n]),{value:r,onBlur:c=>{o({}),e.onBlur?.(c)},onChange:(c,l)=>{o(u=>Object.assign(u,{value:c,isStale:!1})),e.onChange(c,l)}}}const VJe=e=>e,pW={error:null,initialValue:"",isDirty:!1,isDragEnabled:!1,isDragging:!1,isPressEnterToChange:!1,value:""},sue="CHANGE",iw="COMMIT",iue="CONTROL",aue="DRAG_END",cue="DRAG_START",lue="DRAG",uue="INVALIDATE",aw="PRESS_DOWN",due="PRESS_ENTER",ez="PRESS_UP",pue="RESET";function HJe(e=pW){const{value:t}=e;return{...pW,...e,initialValue:t}}function UJe(e){return(t,n)=>{const o={...t};switch(n.type){case iue:return o.value=n.payload.value,o.isDirty=!1,o._event=void 0,o;case ez:o.isDirty=!1;break;case aw:o.isDirty=!1;break;case cue:o.isDragging=!0;break;case aue:o.isDragging=!1;break;case sue:o.error=null,o.value=n.payload.value,t.isPressEnterToChange&&(o.isDirty=!0);break;case iw:o.value=n.payload.value,o.isDirty=!1;break;case pue:o.error=null,o.isDirty=!1,o.value=n.payload.value||t.initialValue;break;case uue:o.error=n.payload.error;break}return o._event=n.payload.event,e(o,n)}}function XJe(e=VJe,t=pW,n){const[o,r]=O.useReducer(UJe(e),HJe(t)),s=M=>(A,_)=>{r({type:M,payload:{value:A,event:_}})},i=M=>A=>{r({type:M,payload:{event:A}})},c=M=>A=>{r({type:M,payload:A})},l=s(sue),u=(M,A)=>r({type:uue,payload:{error:M,event:A}}),d=s(pue),p=s(iw),f=c(cue),b=c(lue),h=c(aue),g=i(ez),z=i(aw),y=i(due),x=O.useRef(o),v=O.useRef({value:t.value,onChangeHandler:n});return O.useLayoutEffect(()=>{x.current=o,v.current={value:t.value,onChangeHandler:n}}),O.useLayoutEffect(()=>{if(x.current._event!==void 0&&o.value!==v.current.value&&!o.isDirty){var M;v.current.onChangeHandler((M=o.value)!==null&&M!==void 0?M:"",{event:x.current._event})}},[o.value,o.isDirty]),O.useLayoutEffect(()=>{if(t.value!==x.current.value&&!x.current.isDirty){var M;r({type:iue,payload:{value:(M=t.value)!==null&&M!==void 0?M:""}})}},[t.value]),{change:l,commit:p,dispatch:r,drag:b,dragEnd:h,dragStart:f,invalidate:u,pressDown:z,pressEnter:y,pressUp:g,reset:d,state:o}}function E3(e){return t=>{const{isComposing:n}="nativeEvent"in t?t.nativeEvent:t;n||t.keyCode===229||e(t)}}const Cd=()=>{};function GJe({disabled:e=!1,dragDirection:t="n",dragThreshold:n=10,id:o,isDragEnabled:r=!1,isPressEnterToChange:s=!1,onBlur:i=Cd,onChange:c=Cd,onDrag:l=Cd,onDragEnd:u=Cd,onDragStart:d=Cd,onKeyDown:p=Cd,onValidate:f=Cd,size:b="default",stateReducer:h=v=>v,value:g,type:z,...y},x){const{state:v,change:M,commit:A,drag:_,dragEnd:w,dragStart:k,invalidate:q,pressDown:S,pressEnter:C,pressUp:T,reset:W}=XJe(h,{isDragEnabled:r,value:g,isPressEnterToChange:s},c),{value:B,isDragging:N,isDirty:E}=v,L=O.useRef(!1),I=FJe(N,t),P=Y=>{i(Y),(E||!Y.target.validity.valid)&&(L.current=!0,U(Y))},H=Y=>{const ee=Y.target.value;M(ee,Y)},U=Y=>{const ee=Y.currentTarget.value;try{f(ee),A(ee,Y)}catch(ie){q(ie,Y)}},X=Y=>{const{key:ee}=Y;switch(p(Y),ee){case"ArrowUp":T(Y);break;case"ArrowDown":S(Y);break;case"Enter":C(Y),s&&(Y.preventDefault(),U(Y));break;case"Escape":s&&E&&(Y.preventDefault(),W(g,Y));break}},Z=IJe(Y=>{const{distance:ee,dragging:ie,event:se,target:be}=Y;if(Y.event={...Y.event,target:be},!!ee){if(se.stopPropagation(),!ie){u(Y),w(Y);return}l(Y),_(Y),N||(d(Y),k(Y))}},{axis:t==="e"||t==="w"?"x":"y",threshold:n,enabled:r,pointer:{capture:!1}}),ne=r?Z():{};let oe;return z==="number"&&(oe=Y=>{y.onMouseDown?.(Y),Y.currentTarget!==Y.currentTarget.ownerDocument.activeElement&&Y.currentTarget.focus()}),a.jsx(rw,{...y,...ne,className:"components-input-control__input",disabled:e,dragCursor:I,isDragging:N,id:o,onBlur:P,onChange:H,onKeyDown:E3(X),onMouseDown:oe,ref:x,inputSize:b,value:B??"",type:z})}const KJe=O.forwardRef(GJe),fue=we("div",{target:"ej5x27r4"})("font-family:",wi("default.fontFamily"),";font-size:",wi("default.fontSize"),";",B_,";"),YJe=({__nextHasNoMarginBottom:e=!1})=>!e&&ke("margin-bottom:",Ce(2),";",""),bue=we("div",{target:"ej5x27r3"})(YJe," .components-panel__row &{margin-bottom:inherit;}"),hue=ke(rae,";display:block;margin-bottom:",Ce(2),";padding:0;",""),Ip=we("label",{target:"ej5x27r2"})(hue,";");var ZJe={name:"11yad0w",styles:"margin-bottom:revert"};const QJe=({__nextHasNoMarginBottom:e=!1})=>!e&&ZJe,tz=we("p",{target:"ej5x27r1"})("margin-top:",Ce(2),";margin-bottom:0;font-size:",wi("helpText.fontSize"),";font-style:normal;color:",qe.gray[700],";",QJe,";"),JJe=we("span",{target:"ej5x27r0"})(hue,";"),eet=e=>{const{__nextHasNoMarginBottom:t=!1,__associatedWPComponentName:n="BaseControl",id:o,label:r,hideLabelFromVision:s=!1,help:i,className:c,children:l}=Ut(e,"BaseControl");return t||Re(`Bottom margin styles for wp.components.${n}`,{since:"6.7",version:"7.0",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."}),a.jsxs(fue,{className:c,children:[a.jsxs(bue,{className:"components-base-control__field",__nextHasNoMarginBottom:t,children:[r&&o&&(s?a.jsx(Kt,{as:"label",htmlFor:o,children:r}):a.jsx(Ip,{className:"components-base-control__label",htmlFor:o,children:r})),r&&!o&&(s?a.jsx(Kt,{as:"label",children:r}):a.jsx(mue,{children:r})),l]}),!!i&&a.jsx(tz,{id:o?o+"__help":void 0,className:"components-base-control__help",__nextHasNoMarginBottom:t,children:i})]})},tet=(e,t)=>{const{className:n,children:o,...r}=e;return a.jsx(JJe,{ref:t,...r,className:$("components-base-control__label",n),children:o})},mue=O.forwardRef(tet),z0=Object.assign(aae(eet,"BaseControl"),{VisualLabel:mue}),Vq=()=>{};function net(e){const n=`inspector-input-control-${He(Ps)}`;return e||n}function oet(e,t){const{__next40pxDefaultSize:n,__unstableStateReducer:o=S=>S,__unstableInputWidth:r,className:s,disabled:i=!1,help:c,hideLabelFromVision:l=!1,id:u,isPressEnterToChange:d=!1,label:p,labelPosition:f="top",onChange:b=Vq,onValidate:h=Vq,onKeyDown:g=Vq,prefix:z,size:y="default",style:x,suffix:v,value:M,...A}=Md(e),_=net(u),w=$("components-input-control",s),k=$Je({value:M,onBlur:A.onBlur,onChange:b}),q=c?{"aria-describedby":`${_}__help`}:{};return a.jsx(z0,{className:w,help:c,id:_,__nextHasNoMarginBottom:!0,children:a.jsx(q7,{__next40pxDefaultSize:n,__unstableInputWidth:r,disabled:i,gap:3,hideLabelFromVision:l,id:_,justify:"left",label:p,labelPosition:f,prefix:z,size:y,style:x,suffix:v,children:a.jsx(KJe,{...A,...q,__next40pxDefaultSize:n,className:"components-input-control__input",disabled:i,id:_,isPressEnterToChange:d,onKeyDown:g,onValidate:h,paddingInlineStart:z?Ce(1):void 0,paddingInlineEnd:v?Ce(1):void 0,ref:t,size:y,stateReducer:o,...k})})})}const Ps=O.forwardRef(oet);function jX({icon:e,className:t,size:n=20,style:o={},...r}){const s=["dashicon","dashicons","dashicons-"+e,t].filter(Boolean).join(" "),c={...n!=20?{fontSize:`${n}px`,width:`${n}px`,height:`${n}px`}:{},...o};return a.jsx("span",{className:s,style:c,...r})}function xn({icon:e=null,size:t=typeof e=="string"?20:24,...n}){if(typeof e=="string")return a.jsx(jX,{icon:e,size:t,...n});if(O.isValidElement(e)&&jX===e.type)return O.cloneElement(e,{...n});if(typeof e=="function")return O.createElement(e,{size:t,...n});if(e&&(e.type==="svg"||e.type===te)){const o={...e.props,width:t,height:t,...n};return a.jsx(te,{...o})}return O.isValidElement(e)?O.cloneElement(e,{size:t,...n}):e}const ret=["onMouseDown","onClick"];function set({__experimentalIsFocusable:e,isDefault:t,isPrimary:n,isSecondary:o,isTertiary:r,isLink:s,isPressed:i,isSmall:c,size:l,variant:u,describedBy:d,...p}){let f=l,b=u;const h={accessibleWhenDisabled:e,"aria-pressed":i,description:d};if(c){var g;(g=f)!==null&&g!==void 0||(f="small")}if(n){var z;(z=b)!==null&&z!==void 0||(b="primary")}if(r){var y;(y=b)!==null&&y!==void 0||(b="tertiary")}if(o){var x;(x=b)!==null&&x!==void 0||(b="secondary")}if(t){var v;Re("wp.components.Button `isDefault` prop",{since:"5.4",alternative:'variant="secondary"'}),(v=b)!==null&&v!==void 0||(b="secondary")}if(s){var M;(M=b)!==null&&M!==void 0||(b="link")}return{...h,...p,size:f,variant:b}}function iet(e,t){const{__next40pxDefaultSize:n,accessibleWhenDisabled:o,isBusy:r,isDestructive:s,className:i,disabled:c,icon:l,iconPosition:u="left",iconSize:d,showTooltip:p,tooltipPosition:f,shortcut:b,label:h,children:g,size:z="default",text:y,variant:x,description:v,...M}=set(e),{href:A,target:_,"aria-checked":w,"aria-pressed":k,"aria-selected":q,...S}="href"in M?M:{href:void 0,target:void 0,...M},C=He(fe,"components-button__description"),T=typeof g=="string"&&!!g||Array.isArray(g)&&g?.[0]&&g[0]!==null&&g?.[0]?.props?.className!=="components-tooltip",B=$("components-button",i,{"is-next-40px-default-size":n,"is-secondary":x==="secondary","is-primary":x==="primary","is-small":z==="small","is-compact":z==="compact","is-tertiary":x==="tertiary","is-pressed":[!0,"true","mixed"].includes(k),"is-pressed-mixed":k==="mixed","is-busy":r,"is-link":x==="link","is-destructive":s,"has-text":!!l&&(T||y),"has-icon":!!l}),N=c&&!o,E=A!==void 0&&!c?"a":"button",L=E==="button"?{type:"button",disabled:N,"aria-checked":w,"aria-pressed":k,"aria-selected":q}:{},I=E==="a"?{href:A,target:_}:{},P={};if(c&&o){L["aria-disabled"]=!0,I["aria-disabled"]=!0;for(const ee of ret)P[ee]=ie=>{ie&&(ie.stopPropagation(),ie.preventDefault())}}const H=!N&&(p&&!!h||!!b||!!h&&!g?.length&&p!==!1),U=v?C:void 0,X=S["aria-describedby"]||U,Z={className:B,"aria-label":S["aria-label"]||h,"aria-describedby":X,ref:t},ne=a.jsxs(a.Fragment,{children:[l&&u==="left"&&a.jsx(xn,{icon:l,size:d}),y&&a.jsx(a.Fragment,{children:y}),g,l&&u==="right"&&a.jsx(xn,{icon:l,size:d})]}),oe=E==="a"?a.jsx("a",{...I,...S,...P,...Z,children:ne}):a.jsx("button",{...L,...S,...P,...Z,children:ne}),Y=H?{text:g?.length&&v?v:h,shortcut:b,placement:f&&z_(f)}:{};return a.jsxs(a.Fragment,{children:[a.jsx(W1,{...Y,children:oe}),v&&a.jsx(Kt,{children:a.jsx("span",{id:U,children:v})})]})}const fe=O.forwardRef(iet);var aet={name:"euqsgg",styles:"input[type='number']::-webkit-outer-spin-button,input[type='number']::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}input[type='number']{-moz-appearance:textfield;}"};const cet=({hideHTMLArrows:e})=>e?aet:"",uet=we(Ps,{target:"ep09it41"})(cet,";"),PX=we(fe,{target:"ep09it40"})("&&&&&{color:",qe.theme.accent,";}"),det=ke("width:",Ce(5),";min-width:",Ce(5),";height:",Ce(5),";",""),pet={smallSpinButtons:det};function e2(e){const t=Number(e);return isNaN(t)?0:t}function IX(...e){return e.reduce((t,n)=>t+e2(n),0)}function fet(...e){return e.reduce((t,n,o)=>{const r=e2(n);return o===0?r:t-r},0)}function bet(e){const t=(e+"").split(".");return t[1]!==void 0?t[1].length:0}function S7(e,t,n){const o=e2(e);return Math.max(t,Math.min(o,n))}function DX(e=0,t=1/0,n=1/0,o=1){const r=e2(e),s=e2(o),i=bet(o),c=Math.round(r/s)*s,l=S7(c,t,n);return i?e2(l.toFixed(i)):l}const het={bottom:{align:"flex-end",justify:"center"},bottomLeft:{align:"flex-end",justify:"flex-start"},bottomRight:{align:"flex-end",justify:"flex-end"},center:{align:"center",justify:"center"},edge:{align:"center",justify:"space-between"},left:{align:"center",justify:"flex-start"},right:{align:"center",justify:"flex-end"},stretch:{align:"stretch"},top:{align:"flex-start",justify:"center"},topLeft:{align:"flex-start",justify:"flex-start"},topRight:{align:"flex-start",justify:"flex-end"}},met={bottom:{justify:"flex-end",align:"center"},bottomLeft:{justify:"flex-end",align:"flex-start"},bottomRight:{justify:"flex-end",align:"flex-end"},center:{justify:"center",align:"center"},edge:{justify:"space-between",align:"center"},left:{justify:"center",align:"flex-start"},right:{justify:"center",align:"flex-end"},stretch:{align:"stretch"},top:{justify:"flex-start",align:"center"},topLeft:{justify:"flex-start",align:"flex-start"},topRight:{justify:"flex-start",align:"flex-end"}};function Met(e,t="row"){if(!xs(e))return{};const o=t==="column"?met:het;return e in o?o[e]:{align:e}}function Mue(e){return typeof e=="string"?[e]:O.Children.toArray(e).filter(t=>O.isValidElement(t))}function gue(e){const{alignment:t="edge",children:n,direction:o,spacing:r=2,...s}=Ut(e,"HStack"),i=Met(t,o),u={children:Mue(n).map((f,b)=>{if(lae(f,["Spacer"])){const g=f,z=g.key||`hstack-${b}`;return a.jsx(Ht,{isBlock:!0,...g.props},z)}return f}),direction:o,justify:"center",...i,...s,gap:r},{isColumn:d,...p}=Pce(u);return p}function get(e,t){const n=gue(e);return a.jsx(C0,{...n,ref:t})}const Je=Qt(get,"HStack"),zet=()=>{};function Oet(e,t){const{__unstableStateReducer:n,className:o,dragDirection:r="n",hideHTMLArrows:s=!1,spinControls:i=s?"none":"native",isDragEnabled:c=!0,isShiftStepEnabled:l=!0,label:u,max:d=1/0,min:p=-1/0,required:f=!1,shiftStep:b=10,step:h=1,spinFactor:g=1,type:z="number",value:y,size:x="default",suffix:v,onChange:M=zet,...A}=Md(e);s&&Re("wp.components.NumberControl hideHTMLArrows prop ",{alternative:'spinControls="none"',since:"6.2",version:"6.3"});const _=O.useRef(),w=Gt([_,t]),k=h==="any",q=k?1:_m(h),S=_m(g)*q,C=DX(0,p,d,q),T=(H,U)=>k?""+Math.min(d,Math.max(p,_m(H))):""+DX(H,p,d,U??q),W=z==="number"?"off":void 0,B=$("components-number-control",o),E=x0()(x==="small"&&pet.smallSpinButtons),L=(H,U,X)=>{X?.preventDefault();const Z=X?.shiftKey&&l,ne=Z?_m(b)*S:S;let oe=q$e(H)?C:H;return U==="up"?oe=IX(oe,ne):U==="down"&&(oe=fet(oe,ne)),T(oe,Z?ne:void 0)},I=(H,U)=>{const X={...H},{type:Z,payload:ne}=U,oe=ne.event,Y=X.value;if((Z===ez||Z===aw)&&(X.value=L(Y,Z===ez?"up":"down",oe)),Z===lue&&c){const[ee,ie]=ne.delta,se=ne.shiftKey&&l,be=se?_m(b)*S:S;let ye,xe;switch(r){case"n":xe=ie,ye=-1;break;case"e":xe=ee,ye=ft()?-1:1;break;case"s":xe=ie,ye=1;break;case"w":xe=ee,ye=ft()?1:-1;break}if(xe!==0){xe=Math.ceil(Math.abs(xe))*Math.sign(xe);const K=xe*be*ye;X.value=T(IX(Y,K),se?be:void 0)}}if(Z===due||Z===iw){const ee=f===!1&&Y==="";X.value=ee?Y:T(Y)}return X},P=H=>U=>M(String(L(y,H,U)),{event:{...U,target:_.current}});return a.jsx(uet,{autoComplete:W,inputMode:"numeric",...A,className:B,dragDirection:r,hideHTMLArrows:i!=="native",isDragEnabled:c,label:u,max:d,min:p,ref:w,required:f,step:h,type:z,value:y,__unstableStateReducer:(H,U)=>{var X;const Z=I(H,U);return(X=n?.(Z,U))!==null&&X!==void 0?X:Z},size:x,suffix:i==="custom"?a.jsxs(a.Fragment,{children:[v,a.jsx(or,{marginBottom:0,marginRight:2,children:a.jsxs(Je,{spacing:1,children:[a.jsx(PX,{className:E,icon:is,size:"small",label:m("Increment"),onClick:P("up")}),a.jsx(PX,{className:E,icon:tw,size:"small",label:m("Decrement"),onClick:P("down")})]})})]}):v,onChange:M})}const T1=O.forwardRef(Oet),FX=32,$X=6,Aet=we("div",{target:"eln3bjz3"})("border-radius:",Se.radiusRound,";border:",Se.borderWidth," solid ",qe.ui.border,";box-sizing:border-box;cursor:grab;height:",FX,"px;overflow:hidden;width:",FX,"px;:active{cursor:grabbing;}"),yet=we("div",{target:"eln3bjz2"})({name:"1r307gh",styles:"box-sizing:border-box;position:relative;width:100%;height:100%;:focus-visible{outline:none;}"}),vet=we("div",{target:"eln3bjz1"})("background:",qe.theme.accent,";border-radius:",Se.radiusRound,";box-sizing:border-box;display:block;left:50%;top:4px;transform:translateX( -50% );position:absolute;width:",$X,"px;height:",$X,"px;"),xet=we(l0,{target:"eln3bjz0"})("color:",qe.theme.accent,";margin-right:",Ce(3),";");function _et({value:e,onChange:t,...n}){const o=O.useRef(null),r=O.useRef(),s=O.useRef(),i=()=>{if(o.current===null)return;const d=o.current.getBoundingClientRect();r.current={x:d.x+d.width/2,y:d.y+d.height/2}},c=d=>{if(d!==void 0&&(d.preventDefault(),d.target?.focus(),r.current!==void 0&&t!==void 0)){const{x:p,y:f}=r.current;t(wet(p,f,d.clientX,d.clientY))}},{startDrag:l,isDragging:u}=gne({onDragStart:d=>{i(),c(d)},onDragMove:c,onDragEnd:c});return O.useEffect(()=>{u?(s.current===void 0&&(s.current=document.body.style.cursor),document.body.style.cursor="grabbing"):(document.body.style.cursor=s.current||"",s.current=void 0)},[u]),a.jsx(Aet,{ref:o,onMouseDown:l,className:"components-angle-picker-control__angle-circle",...n,children:a.jsx(yet,{style:e?{transform:`rotate(${e}deg)`}:void 0,className:"components-angle-picker-control__angle-circle-indicator-wrapper",tabIndex:-1,children:a.jsx(vet,{className:"components-angle-picker-control__angle-circle-indicator"})})})}function wet(e,t,n,o){const r=o-t,s=n-e,i=Math.atan2(r,s),c=Math.round(i*(180/Math.PI))+90;return c<0?360+c:c}function ket(e,t){const{className:n,label:o=m("Angle"),onChange:r,value:s,...i}=e,c=f=>{if(r===void 0)return;const b=f!==void 0&&f!==""?parseInt(f,10):0;r(b)},l=$("components-angle-picker-control",n),u=a.jsx(xet,{children:"°"}),[d,p]=ft()?[u,null]:[null,u];return a.jsxs(Q0,{...i,ref:t,className:l,gap:2,children:[a.jsx(Vi,{children:a.jsx(T1,{label:o,className:"components-angle-picker-control__input-field",max:360,min:0,onChange:c,size:"__unstable-large",step:"1",value:s,spinControls:"none",prefix:d,suffix:p})}),a.jsx(or,{marginBottom:"1",marginTop:"auto",children:a.jsx(_et,{"aria-hidden":"true",value:s,onChange:r})})]})}const qet=O.forwardRef(ket),Cet=new RegExp(/[\u007e\u00ad\u2053\u207b\u208b\u2212\p{Pd}]/gu),VX=e=>Xs(e).toLocaleLowerCase().replace(Cet,"-");function Ret(e){var t;let n=(t=e?.toString?.())!==null&&t!==void 0?t:"";return n=n.replace(/['\u2019]/,""),Us(n,{splitRegexp:[/(?!(?:1ST|2ND|3RD|[4-9]TH)(?![a-z]))([a-z0-9])([A-Z])/g,/(?!(?:1st|2nd|3rd|[4-9]th)(?![a-z]))([0-9])([a-z])/g,/([A-Za-z])([0-9])/g,/([A-Z])([A-Z][a-z])/g]})}function nz(e){return e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}function Wet(e,t=[],n=10){const o=[];for(let r=0;re.test(Xs(l)))&&(o.push(s),o.length===n))break}return o}function Tet(e){return t=>{const[n,o]=O.useState([]);return O.useLayoutEffect(()=>{const{options:r,isDebounced:s}=e,i=jr(()=>{const l=Promise.resolve(typeof r=="function"?r(t):r).then(u=>{if(l.canceled)return;const d=u.map((f,b)=>({key:`${e.name}-${b}`,value:f,label:e.getOptionLabel(f),keywords:e.getOptionKeywords?e.getOptionKeywords(f):[],isDisabled:e.isOptionDisabled?e.isOptionDisabled(f):!1})),p=new RegExp("(?:\\b|\\s|^)"+nz(t),"i");o(Wet(p,d))});return l},s?250:0),c=i();return()=>{i.cancel(),c&&(c.canceled=!0)}},[t]),[n]}}var o4=typeof document<"u"?O.useLayoutEffect:O.useEffect;function Uv(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!Uv(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!Uv(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function zue(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function HX(e,t){const n=zue(e);return Math.round(t*n)/n}function UX(e){const t=O.useRef(e);return o4(()=>{t.current=e}),t}function Eet(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:i}={},transform:c=!0,whileElementsMounted:l,open:u}=e,[d,p]=O.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,b]=O.useState(o);Uv(f,o)||b(o);const[h,g]=O.useState(null),[z,y]=O.useState(null),x=O.useCallback(L=>{L!==_.current&&(_.current=L,g(L))},[]),v=O.useCallback(L=>{L!==w.current&&(w.current=L,y(L))},[]),M=s||h,A=i||z,_=O.useRef(null),w=O.useRef(null),k=O.useRef(d),q=l!=null,S=UX(l),C=UX(r),T=O.useCallback(()=>{if(!_.current||!w.current)return;const L={placement:t,strategy:n,middleware:f};C.current&&(L.platform=C.current),hie(_.current,w.current,L).then(I=>{const P={...I,isPositioned:!0};W.current&&!Uv(k.current,P)&&(k.current=P,Qo.flushSync(()=>{p(P)}))})},[f,t,n,C]);o4(()=>{u===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,p(L=>({...L,isPositioned:!1})))},[u]);const W=O.useRef(!1);o4(()=>(W.current=!0,()=>{W.current=!1}),[]),o4(()=>{if(M&&(_.current=M),A&&(w.current=A),M&&A){if(S.current)return S.current(M,A,T);T()}},[M,A,T,S,q]);const B=O.useMemo(()=>({reference:_,floating:w,setReference:x,setFloating:v}),[x,v]),N=O.useMemo(()=>({reference:M,floating:A}),[M,A]),E=O.useMemo(()=>{const L={position:n,left:0,top:0};if(!N.floating)return L;const I=HX(N.floating,d.x),P=HX(N.floating,d.y);return c?{...L,transform:"translate("+I+"px, "+P+"px)",...zue(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:I,top:P}},[n,c,N.floating,d.x,d.y]);return O.useMemo(()=>({...d,update:T,refs:B,elements:N,floatingStyles:E}),[d,T,B,N,E])}const Bet=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?F8({element:o.current,padding:r}).fn(n):{}:o?F8({element:o,padding:r}).fn(n):{}}}},Net=(e,t)=>({...uie(e),options:[e,t]}),Let=(e,t)=>({...die(e),options:[e,t]}),jet=(e,t)=>({...bie(e),options:[e,t]}),Pet=(e,t)=>({...pie(e),options:[e,t]}),Oue=(e,t)=>({...fie(e),options:[e,t]}),Iet=(e,t)=>({...Bet(e),options:[e,t]});let XX=0;function GX(e){const t=document.scrollingElement||document.body;e&&(XX=t.scrollTop);const n=e?"add":"remove";t.classList[n]("lockscroll"),document.documentElement.classList[n]("lockscroll"),e||(t.scrollTop=XX)}let hA=0;function Det(){return O.useEffect(()=>(hA===0&&GX(!0),++hA,()=>{hA===1&&GX(!1),--hA}),[]),null}const Fet={registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>[],subscribe:()=>()=>{}},cw=O.createContext(Fet),$et=e=>{const{getSlot:t,subscribe:n}=O.useContext(cw);return O.useSyncExternalStore(n,()=>t(e),()=>t(e))};function Vet({name:e,children:t}){const{registerFill:n,unregisterFill:o}=O.useContext(cw),r=$et(e),s=O.useRef({name:e,children:t});return O.useLayoutEffect(()=>{const i=s.current;return n(e,i),()=>o(e,i)},[]),O.useLayoutEffect(()=>{s.current.children=t,r&&r.forceUpdate()},[t]),O.useLayoutEffect(()=>{e!==s.current.name&&(o(s.current.name,s.current),s.current.name=e,n(e,s.current))},[e]),null}function KX(e){return typeof e=="function"}class Het extends O.Component{constructor(t){super(t),this.isUnmounted=!1}componentDidMount(){const{registerSlot:t}=this.props;this.isUnmounted=!1,t(this.props.name,this)}componentWillUnmount(){const{unregisterSlot:t}=this.props;this.isUnmounted=!0,t(this.props.name,this)}componentDidUpdate(t){const{name:n,unregisterSlot:o,registerSlot:r}=this.props;t.name!==n&&(o(t.name,this),r(n,this))}forceUpdate(){this.isUnmounted||super.forceUpdate()}render(){var t;const{children:n,name:o,fillProps:r={},getFills:s}=this.props,i=((t=s(o,this))!==null&&t!==void 0?t:[]).map(c=>{const l=KX(c.children)?c.children(r):c.children;return O.Children.map(l,(u,d)=>{if(!u||typeof u=="string")return u;let p=d;return typeof u=="object"&&"key"in u&&u?.key&&(p=u.key),O.cloneElement(u,{key:p})})}).filter(c=>!Z_e(c));return a.jsx(a.Fragment,{children:KX(n)?n(i):i})}}const Uet=e=>a.jsx(cw.Consumer,{children:({registerSlot:t,unregisterSlot:n,getFills:o})=>a.jsx(Het,{...e,registerSlot:t,unregisterSlot:n,getFills:o})}),Xet={slots:g2(),fills:g2(),registerSlot:()=>{globalThis.SCRIPT_DEBUG===!0&&Xt("Components must be wrapped within `SlotFillProvider`. See https://developer.wordpress.org/block-editor/components/slot-fill/")},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},isDefault:!0},B3=O.createContext(Xet);function Aue(e){const t=O.useContext(B3),n=xne(t.slots,e),o=O.useMemo(()=>({updateSlot:r=>t.updateSlot(e,r),unregisterSlot:r=>t.unregisterSlot(e,r),registerFill:r=>t.registerFill(e,r),unregisterFill:r=>t.unregisterFill(e,r)}),[e,t]);return{...n,...o}}const YX=new Set,Hq=new WeakMap,Get=e=>{if(Hq.has(e))return Hq.get(e);let t=Xc().replace(/[0-9]/g,"");for(;YX.has(t);)t=Xc().replace(/[0-9]/g,"");YX.add(t);const n=wL({container:e,key:t});return Hq.set(e,n),n};function yf(e){const{children:t,document:n}=e;if(!n)return null;const o=Get(n.head);return a.jsx(_Ve,{value:o,children:t})}function Ket(){const[,e]=O.useState({}),t=O.useRef(!0);return O.useEffect(()=>(t.current=!0,()=>{t.current=!1}),[]),()=>{t.current&&e({})}}function Yet(e){var t;const{name:n,children:o}=e,{registerFill:r,unregisterFill:s,...i}=Aue(n),c=Ket(),l=O.useRef({rerender:c});if(O.useEffect(()=>(r(l),()=>{s(l)}),[r,s]),!i.ref||!i.ref.current)return null;const u=a.jsx(yf,{document:i.ref.current.ownerDocument,children:typeof o=="function"?o((t=i.fillProps)!==null&&t!==void 0?t:{}):o});return Qo.createPortal(u,i.ref.current)}function Zet(e,t){const{name:n,fillProps:o={},as:r,children:s,...i}=e,{registerSlot:c,unregisterSlot:l,...u}=O.useContext(B3),d=O.useRef(null);return O.useLayoutEffect(()=>(c(n,d,o),()=>{l(n,d)}),[c,l,n]),O.useLayoutEffect(()=>{u.updateSlot(n,o)}),a.jsx(C0,{as:r,ref:Gt([t,d]),...i})}const Qet=O.forwardRef(Zet);function Jet(){const e=g2(),t=g2();return{slots:e,fills:t,registerSlot:(c,l,u)=>{const d=e.get(c);e.set(c,{...d,ref:l||d?.ref,fillProps:u||d?.fillProps||{}})},updateSlot:(c,l)=>{const u=e.get(c);if(!u||Jr(u.fillProps,l))return;u.fillProps=l;const d=t.get(c);d&&d.forEach(p=>p.current.rerender())},unregisterSlot:(c,l)=>{e.get(c)?.ref===l&&e.delete(c)},registerFill:(c,l)=>{t.set(c,[...t.get(c)||[],l])},unregisterFill:(c,l)=>{const u=t.get(c);u&&t.set(c,u.filter(d=>d!==l))}}}function ett({children:e}){const[t]=O.useState(Jet);return a.jsx(B3.Provider,{value:t,children:e})}function ttt(){const e={},t={};let n=[];function o(f,b){const h=e[f];e[f]=b,d(),u(f),h&&h.forceUpdate()}function r(f,b){t[f]=[...t[f]||[],b],u(f)}function s(f,b){e[f]===b&&(delete e[f],d())}function i(f,b){var h;t[f]=(h=t[f]?.filter(g=>g!==b))!==null&&h!==void 0?h:[],u(f)}function c(f){return e[f]}function l(f,b){return e[f]!==b?[]:t[f]}function u(f){const b=c(f);b&&b.forceUpdate()}function d(){n.forEach(f=>f())}function p(f){return n.push(f),()=>{n=n.filter(b=>b!==f)}}return{registerSlot:o,unregisterSlot:s,registerFill:r,unregisterFill:i,getSlot:c,getFills:l,subscribe:p}}function ntt({children:e}){const[t]=O.useState(ttt);return a.jsx(cw.Provider,{value:t,children:e})}function j1(e){const t=O.useContext(B3);return xne(t.fills,e)}function Th(e){return a.jsxs(a.Fragment,{children:[a.jsx(Vet,{...e}),a.jsx(Yet,{...e})]})}function ott(e,t){const{bubblesVirtually:n,...o}=e;return n?a.jsx(Qet,{...o,ref:t}):a.jsx(Uet,{...o})}const Dp=O.forwardRef(ott);function rtt({children:e,passthrough:t=!1}){return!O.useContext(B3).isDefault&&t?a.jsx(a.Fragment,{children:e}):a.jsx(ntt,{children:a.jsx(ett,{children:e})})}function _0(e){const t=typeof e=="symbol"?e.description:e,n=r=>a.jsx(Th,{name:e,...r});n.displayName=`${t}Fill`;const o=r=>a.jsx(Dp,{name:e,...r});return o.displayName=`${t}Slot`,o.__unstableName=e,{Fill:n,Slot:o}}const stt=e=>{const t=Symbol(e),n=_0(t);return{privateKey:t,...n}};function itt(){return[{name:"overlay",fn({rects:e}){return e.reference}},Oue({apply({rects:e,elements:t}){var n;const{firstElementChild:o}=(n=t.floating)!==null&&n!==void 0?n:{};o instanceof HTMLElement&&Object.assign(o.style,{width:`${e.reference.width}px`,height:`${e.reference.height}px`})}})]}const yue="Popover",att=()=>a.jsxs(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:"components-popover__triangle",role:"presentation",children:[a.jsx(J,{className:"components-popover__triangle-bg",d:"M 0 0 L 50 50 L 100 0"}),a.jsx(J,{className:"components-popover__triangle-border",d:"M 0 0 L 50 50 L 100 0",vectorEffect:"non-scaling-stroke"})]}),vue=O.createContext(void 0),ZX="components-popover__fallback-container",ctt=()=>{let e=document.body.querySelector("."+ZX);return e||(e=document.createElement("div"),e.className=ZX,document.body.append(e)),e},ltt=(e,t)=>{const{animate:n=!0,headerTitle:o,constrainTabbing:r,onClose:s,children:i,className:c,noArrow:l=!0,position:u,placement:d="bottom-start",offset:p=0,focusOnMount:f="firstElement",anchor:b,expandOnMobile:h,onFocusOutside:g,__unstableSlotName:z=yue,flip:y=!0,resize:x=!0,shift:v=!1,inline:M=!1,variant:A,style:_,__unstableForcePosition:w,anchorRef:k,anchorRect:q,getAnchorRect:S,isAlternate:C,...T}=Ut(e,"Popover");let W=y,B=x;w!==void 0&&(Re("`__unstableForcePosition` prop in wp.components.Popover",{since:"6.1",version:"6.3",alternative:"`flip={ false }` and `resize={ false }`"}),W=!w,B=!w),k!==void 0&&Re("`anchorRef` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),q!==void 0&&Re("`anchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),S!==void 0&&Re("`getAnchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"});const N=C?"toolbar":A;C!==void 0&&Re("`isAlternate` prop in wp.components.Popover",{since:"6.2",alternative:"`variant` prop with the `'toolbar'` value"});const E=O.useRef(null),[L,I]=O.useState(null),P=O.useCallback(ot=>{I(ot)},[]),H=g0("medium","<"),U=h&&H,X=!U&&!l,Z=u?z_(u):d,ne=[...d==="overlay"?itt():[],Net(p),W&&Pet(),B&&Oue({apply(ot){var Ct;const{firstElementChild:n0}=(Ct=xe.floating.current)!==null&&Ct!==void 0?Ct:{};n0 instanceof HTMLElement&&Object.assign(n0.style,{maxHeight:`${ot.availableHeight}px`,overflow:"auto"})}}),v&&Let({crossAxis:!0,limiter:jet(),padding:1}),Iet({element:E})],oe=O.useContext(vue)||z,Y=Aue(oe);let ee;(s||g)&&(ee=(ot,Ct)=>{ot==="focus-outside"&&g?g(Ct):s&&s()});const[ie,se]=Mne({constrainTabbing:r,focusOnMount:f,__unstableOnClose:ee,onClose:ee}),{x:be,y:ye,refs:xe,strategy:K,update:pe,placement:G,middlewareData:{arrow:re}}=Eet({placement:Z==="overlay"?void 0:Z,middleware:ne,whileElementsMounted:(ot,Ct,n0)=>lie(ot,Ct,n0,{layoutShift:!1,animationFrame:!0})}),Me=O.useCallback(ot=>{E.current=ot,pe()},[pe]),he=k?.top,Q=k?.bottom,R=k?.startContainer,j=k?.current;O.useLayoutEffect(()=>{const ot=x$e({anchor:b,anchorRef:k,anchorRect:q,getAnchorRect:S,fallbackReferenceElement:L});xe.setReference(ot)},[b,k,he,Q,R,j,q,S,L,xe]);const V=Gt([xe.setFloating,ie,t]),de=U?void 0:{position:K,top:0,left:0,x:PH(be),y:PH(ye)},ge=Zs(),ve=n&&!U&&!ge,[Ne,et]=O.useState(!1),{style:mt,...Mt}=O.useMemo(()=>A$e(G),[G]),Ke=ve?{style:{..._,...mt,...de},onAnimationComplete:()=>et(!0),...Mt}:{animate:!1,style:{..._,...de}},Nt=(!ve||Ne)&&be!==null&&ye!==null;let zt=a.jsxs(Hn.div,{className:$(c,{"is-expanded":U,"is-positioned":Nt,[`is-${N==="toolbar"?"alternate":N}`]:N}),...Ke,...T,ref:V,...se,tabIndex:-1,children:[U&&a.jsx(Det,{}),U&&a.jsxs("div",{className:"components-popover__header",children:[a.jsx("span",{className:"components-popover__header-title",children:o}),a.jsx(fe,{className:"components-popover__close",icon:Ch,onClick:s})]}),a.jsx("div",{className:"components-popover__content",children:i}),X&&a.jsx("div",{ref:Me,className:["components-popover__arrow",`is-${G.split("-")[0]}`].join(" "),style:{left:typeof re?.x<"u"&&Number.isFinite(re.x)?`${re.x}px`:"",top:typeof re?.y<"u"&&Number.isFinite(re.y)?`${re.y}px`:""},children:a.jsx(att,{})})]});const Ue=Y.ref&&!M,Xe=k||q||b;return Ue?zt=a.jsx(Th,{name:oe,children:zt}):M||(zt=Qo.createPortal(a.jsx(yf,{document,children:zt}),ctt())),Xe?zt:a.jsxs(a.Fragment,{children:[a.jsx("span",{ref:P}),zt]})},Mn=Qt(ltt,"Popover");function utt({name:e=yue},t){return a.jsx(Dp,{bubblesVirtually:!0,name:e,className:"popover-slot",ref:t})}Mn.Slot=O.forwardRef(utt);Mn.__unstableSlotNameProvider=vue.Provider;function QX({items:e,onSelect:t,selectedIndex:n,instanceId:o,listBoxId:r,className:s,Component:i="div"}){return a.jsx(i,{id:r,role:"listbox",className:"components-autocomplete__results",children:e.map((c,l)=>a.jsx(fe,{id:`components-autocomplete-item-${o}-${c.key}`,role:"option","aria-selected":l===n,accessibleWhenDisabled:!0,disabled:c.isDisabled,className:$("components-autocomplete__result",s,{"is-selected":l===n}),variant:l===n?"primary":void 0,onClick:()=>t(c),children:c.label},c.key))})}function dtt(e){var t;const n=(t=e.useItems)!==null&&t!==void 0?t:Tet(e);function o({filterValue:r,instanceId:s,listBoxId:i,className:c,selectedIndex:l,onChangeOptions:u,onSelect:d,onReset:p,reset:f,contentRef:b}){const[h]=n(r),g=Vz({editableContentElement:b.current}),[z,y]=O.useState(!1),x=O.useRef(null),v=Gt([x,Et(_=>{b.current&&y(_.ownerDocument!==b.current.ownerDocument)},[b])]);ptt(x,f);const M=Uo(At,500);function A(_){M&&(_.length?M(le(r?a0("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",_.length):a0("Initial %d result loaded. Type to filter all available results. Use up and down arrow keys to navigate.","Initial %d results loaded. Type to filter all available results. Use up and down arrow keys to navigate.",_.length),_.length),"assertive"):M(m("No results."),"assertive"))}return O.useLayoutEffect(()=>{u(h),A(h)},[h]),h.length===0?null:a.jsxs(a.Fragment,{children:[a.jsx(Mn,{focusOnMount:!1,onClose:p,placement:"top-start",className:"components-autocomplete__popover",anchor:g,ref:v,children:a.jsx(QX,{items:h,onSelect:d,selectedIndex:l,instanceId:s,listBoxId:i,className:c})}),b.current&&z&&Qo.createPortal(a.jsx(QX,{items:h,onSelect:d,selectedIndex:l,instanceId:s,listBoxId:i,className:c,Component:Kt}),b.current.ownerDocument.body)]})}return o}function ptt(e,t){O.useEffect(()=>{const n=o=>{!e.current||e.current.contains(o.target)||t(o)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}},[t])}const Xv=e=>{if(e===null)return"";switch(typeof e){case"string":case"number":return e.toString();case"boolean":return"";case"object":{if(e instanceof Array)return e.map(Xv).join("");if("props"in e)return Xv(e.props.children);break}default:return""}return""},JX=[];function xue({record:e,onChange:t,onReplace:n,completers:o,contentRef:r}){const s=He(xue),[i,c]=O.useState(0),[l,u]=O.useState(JX),[d,p]=O.useState(""),[f,b]=O.useState(null),[h,g]=O.useState(null),z=O.useRef(!1);function y(W){if(f===null)return;const B=e.start,N=B-f.triggerPrefix.length-d.length,E=m0({html:No(W)});t(Y1(e,E,N,B))}function x(W){const{getOptionCompletion:B}=f||{};if(!W.isDisabled){if(B){const N=B(W.value,d),L=(I=>I!==null&&typeof I=="object"&&"action"in I&&I.action!==void 0&&"value"in I&&I.value!==void 0)(N)?N:{action:"insert-at-caret",value:N};if(L.action==="replace"){n([L.value]);return}else L.action==="insert-at-caret"&&y(L.value)}v()}}function v(){c(0),u(JX),p(""),b(null),g(null)}function M(W){c(W.length===l.length?i:0),u(W)}function A(W){if(z.current=W.key==="Backspace",!!f&&l.length!==0&&!W.defaultPrevented){switch(W.key){case"ArrowUp":{const B=(i===0?l.length:i)-1;c(B),Ta()&&At(Xv(l[B].label),"assertive");break}case"ArrowDown":{const B=(i+1)%l.length;c(B),Ta()&&At(Xv(l[B].label),"assertive");break}case"Escape":b(null),g(null),W.preventDefault();break;case"Enter":x(l[i]);break;case"ArrowLeft":case"ArrowRight":v();return;default:return}W.preventDefault()}}const _=O.useMemo(()=>lf(e)?cp(O2(e,0)):"",[e]);O.useEffect(()=>{if(!_){f&&v();return}const W=o.reduce((ie,se)=>{const be=_.lastIndexOf(se.triggerPrefix),ye=ie!==null?_.lastIndexOf(ie.triggerPrefix):-1;return be>ye?se:ie},null);if(!W){f&&v();return}const{allowContext:B,triggerPrefix:N}=W,E=_.lastIndexOf(N),L=_.slice(E+N.length);if(L.length>50)return;const P=l.length===0,H=L.split(/\s/),U=H.length===1,X=z.current&&H.length<=3;if(P&&!(X||U)){f&&v();return}const Z=cp(O2(e,void 0,cp(e).length));if(B&&!B(_.slice(0,E),Z)){f&&v();return}if(/^\s/.test(L)||/\s\s+$/.test(L)){f&&v();return}if(!/[\u0000-\uFFFF]*$/.test(L)){f&&v();return}const ne=nz(W.triggerPrefix),oe=Xs(_),Y=oe.slice(oe.lastIndexOf(W.triggerPrefix)).match(new RegExp(`${ne}([\0-￿]*)$`)),ee=Y&&Y[1];b(W),g(()=>W!==f?dtt(W):h),p(ee===null?"":ee)},[_]);const{key:w=""}=l[i]||{},{className:k}=f||{},q=!!f&&l.length>0,S=q?`components-autocomplete-listbox-${s}`:void 0,C=q?`components-autocomplete-item-${s}-${w}`:null,T=e.start!==void 0;return{listBoxId:S,activeId:C,onKeyDown:E3(A),popover:T&&h&&a.jsx(h,{className:k,filterValue:d,instanceId:s,listBoxId:S,selectedIndex:i,onChangeOptions:M,onSelect:x,value:e,contentRef:r,reset:v})}}function ftt(e){const t=O.useRef(new Set);return t.current.add(e),t.current.size>2&&t.current.delete(Array.from(t.current)[0]),Array.from(t.current)[0]}function btt(e){const t=O.useRef(null),n=O.useRef(),{record:o}=e,r=ftt(o),{popover:s,listBoxId:i,activeId:c,onKeyDown:l}=xue({...e,contentRef:t});n.current=l;const u=Gt([t,Et(p=>{function f(b){n.current?.(b)}return p.addEventListener("keydown",f),()=>{p.removeEventListener("keydown",f)}},[])]);return o.text!==r?.text?{ref:u,children:s,"aria-autocomplete":i?"list":void 0,"aria-owns":i,"aria-activedescendant":c}:{ref:u}}const htt=ke("",""),mtt=()=>ke("flex:1;",dn({marginRight:"24px"})(),";",""),Mtt={name:"bjn8wh",styles:"position:relative"},gtt=e=>ke("position:absolute;top:",e==="__unstable-large"?"8px":"3px",";",dn({right:0})()," line-height:0;",""),mA=e=>{const{color:t=qe.gray[200],style:n="solid",width:o=Se.borderWidth}=e||{},r=o!==Se.borderWidth?`clamp(1px, ${o}, 10px)`:o;return`${t} ${!!o&&o!=="0"||!!t?n||"solid":n} ${r}`},ztt=(e,t)=>ke("position:absolute;top:",t==="__unstable-large"?"20px":"15px",";right:",t==="__unstable-large"?"39px":"29px",";bottom:",t==="__unstable-large"?"20px":"15px",";left:",t==="__unstable-large"?"39px":"29px",";border-top:",mA(e?.top),";border-bottom:",mA(e?.bottom),";",dn({borderLeft:mA(e?.left)})()," ",dn({borderRight:mA(e?.right)})(),";",""),Ott=e=>ke("position:relative;flex:1;width:",e==="__unstable-large"?void 0:"80%",";",""),Att={name:"1nwbfnf",styles:"grid-column:span 2;margin:0 auto"},ytt=()=>ke(dn({marginLeft:"auto"})(),";","");function vtt(e){const{className:t,size:n="default",...o}=Ut(e,"BorderBoxControlLinkedButton"),r=x0(),s=O.useMemo(()=>r(gtt(n),t),[t,r,n]);return{...o,className:s}}const xtt=(e,t)=>{const{className:n,isLinked:o,...r}=vtt(e),s=m(o?"Unlink sides":"Link sides");return a.jsx(W1,{text:s,children:a.jsx(C0,{className:n,children:a.jsx(fe,{...r,size:"small",icon:o?Qa:Xu,iconSize:24,"aria-label":s,ref:t})})})},_tt=Qt(xtt,"BorderBoxControlLinkedButton");function wtt(e){const{className:t,value:n,size:o="default",...r}=Ut(e,"BorderBoxControlVisualizer"),s=x0(),i=O.useMemo(()=>s(ztt(n,o),t),[s,t,n,o]);return{...r,className:i,value:n}}const ktt=(e,t)=>{const{value:n,...o}=wtt(e);return a.jsx(C0,{...o,ref:t})},qtt=Qt(ktt,"BorderBoxControlVisualizer"),Stt=({isBlock:e,isDeselectable:t,size:n})=>ke("background:",qe.ui.background,";border:1px solid transparent;border-radius:",Se.radiusSmall,";display:inline-flex;min-width:0;position:relative;",Ttt(n)," ",!t&&Ctt(e),";",""),Ctt=e=>{const t=ke("border-color:",qe.ui.border,";","");return ke(e&&t," &:hover{border-color:",qe.ui.borderHover,";}&:focus-within{border-color:",qe.ui.borderFocus,";box-shadow:",Se.controlBoxShadowFocus,";z-index:1;outline:2px solid transparent;outline-offset:-2px;}","")};var Rtt={name:"1aqh2c7",styles:"min-height:40px;padding:3px"},Wtt={name:"1ndywgm",styles:"min-height:36px;padding:2px"};const Ttt=e=>({default:Wtt,"__unstable-large":Rtt})[e],Ett={name:"7whenc",styles:"display:flex;width:100%"},Btt=we("div",{target:"eakva830"})({name:"zjik7",styles:"display:flex"}),C7=O.createContext({}),Ntt=()=>O.useContext(C7);function _ue(e){const t=O.useRef(!0),n=t1(e),o=O.useRef(!1);O.useEffect(()=>{t.current&&(t.current=!1)},[]);const r=o.current||!t.current&&n!==e;return O.useEffect(()=>{o.current=r},[r]),r?{value:e??"",defaultValue:void 0}:{value:void 0,defaultValue:e}}function Ltt({children:e,isAdaptiveWidth:t,label:n,onChange:o,size:r,value:s,id:i,...c},l){const u=He(wue,"toggle-group-control-as-radio-group"),d=i||u,{value:p,defaultValue:f}=_ue(s),h=vie({defaultValue:f,value:p,setValue:o?x=>{o(x??void 0)}:void 0}),g=on(h,"value"),z=h.setValue,y=O.useMemo(()=>({baseId:d,isBlock:!t,size:r,value:g,setValue:z}),[d,t,r,g,z]);return a.jsx(C7.Provider,{value:y,children:a.jsx(xie,{store:h,"aria-label":n,render:a.jsx(C0,{}),...c,id:d,ref:l,children:e})})}const wue=O.forwardRef(Ltt);function jtt({children:e,isAdaptiveWidth:t,label:n,onChange:o,size:r,value:s,id:i,...c},l){const u=He(kue,"toggle-group-control-as-button-group"),d=i||u,{value:p,defaultValue:f}=_ue(s),[b,h]=g3({defaultValue:f,value:p,onChange:o}),g=O.useMemo(()=>({baseId:d,value:b,setValue:h,isBlock:!t,isDeselectable:!0,size:r}),[d,b,h,t,r]);return a.jsx(C7.Provider,{value:g,children:a.jsx(C0,{"aria-label":n,...c,ref:l,role:"group",children:e})})}const kue=O.forwardRef(jtt);function Ptt(e,t){const{__nextHasNoMarginBottom:n=!1,__next40pxDefaultSize:o=!1,className:r,isAdaptiveWidth:s=!1,isBlock:i=!1,isDeselectable:c=!1,label:l,hideLabelFromVision:u=!1,help:d,onChange:p,size:f="default",value:b,children:h,...g}=Ut(e,"ToggleGroupControl"),z=He(wn,"toggle-group-control"),y=o&&f==="default"?"__unstable-large":f,x=x0(),v=O.useMemo(()=>x(Stt({isBlock:i,isDeselectable:c,size:y}),i&&Ett,r),[r,x,i,c,y]),M=c?kue:wue;return a.jsxs(z0,{help:d,__nextHasNoMarginBottom:n,__associatedWPComponentName:"ToggleGroupControl",children:[!u&&a.jsx(Btt,{children:a.jsx(z0.VisualLabel,{children:l})}),a.jsx(M,{...g,className:v,isAdaptiveWidth:s,label:l,onChange:p,ref:t,size:y,value:b,children:a.jsx(JKe,{id:z,children:h})})]})}const wn=Qt(Ptt,"ToggleGroupControl"),Itt=we("div",{target:"et6ln9s1"})({name:"sln1fl",styles:"display:inline-flex;max-width:100%;min-width:0;position:relative"}),que={name:"82a6rk",styles:"flex:1"},Sue=({isDeselectable:e,isIcon:t,isPressed:n,size:o})=>ke("align-items:center;appearance:none;background:transparent;border:none;border-radius:",Se.radiusXSmall,";color:",qe.gray[700],";fill:currentColor;cursor:pointer;display:flex;font-family:inherit;height:100%;justify-content:center;line-height:100%;outline:none;padding:0 12px;position:relative;text-align:center;@media not ( prefers-reduced-motion ){transition:background ",Se.transitionDurationFast," linear,color ",Se.transitionDurationFast," linear,font-weight 60ms linear;}user-select:none;width:100%;z-index:2;&::-moz-focus-inner{border:0;}&[disabled]{opacity:0.4;cursor:default;}&:active{background:",Se.toggleGroupControlBackgroundColor,";}",e&&Ftt," ",t&&Vtt({size:o})," ",n&&Dtt,";",""),Dtt=ke("color:",qe.white,";&:active{background:transparent;}",""),Ftt=ke("color:",qe.gray[900],";&:focus{box-shadow:inset 0 0 0 1px ",qe.white,",0 0 0 ",Se.borderWidthFocus," ",qe.theme.accent,";outline:2px solid transparent;}",""),$tt=we("div",{target:"et6ln9s0"})("display:flex;font-size:",Se.fontSize,";line-height:1;"),Vtt=({size:e="default"})=>{const t={default:"30px","__unstable-large":"32px"};return ke("color:",qe.gray[900],";height:",t[e],";aspect-ratio:1;padding-left:0;padding-right:0;","")},Cue=ke("background:",qe.gray[900],";border-radius:",Se.radiusXSmall,";position:absolute;inset:0;z-index:1;outline:2px solid transparent;outline-offset:-3px;",""),Htt=Object.freeze(Object.defineProperty({__proto__:null,ButtonContentView:$tt,LabelView:Itt,backdropView:Cue,buttonView:Sue,labelBlock:que},Symbol.toStringTag,{value:"Module"})),{ButtonContentView:eG,LabelView:Utt}=Htt,Xtt={duration:0},Gtt="toggle-group-backdrop-shared-layout-id",Ktt=({showTooltip:e,text:t,children:n})=>e&&t?a.jsx(W1,{text:t,placement:"top",children:n}):a.jsx(a.Fragment,{children:n});function Rue(e,t){const n=Zs(),o=Ntt(),r=He(Rue,o.baseId||"toggle-group-control-option-base"),s=Ut({...e,id:r},"ToggleGroupControlOptionBase"),{isBlock:i=!1,isDeselectable:c=!1,size:l="default"}=o,{className:u,isIcon:d=!1,value:p,children:f,showTooltip:b=!1,onFocus:h,disabled:g,...z}=s,y=o.value===p,x=x0(),v=O.useMemo(()=>x(i&&que),[x,i]),M=O.useMemo(()=>x(Sue({isDeselectable:c,isIcon:d,isPressed:y,size:l}),u),[x,c,d,y,l,u]),A=O.useMemo(()=>x(Cue),[x]),_=()=>{c&&y?o.setValue(void 0):o.setValue(p)},w={...z,className:M,"data-value":p,ref:t};return a.jsxs(Utt,{className:v,children:[a.jsx(Ktt,{showTooltip:b,text:z["aria-label"],children:c?a.jsx("button",{...w,disabled:g,onFocus:h,"aria-pressed":y,type:"button",onClick:_,children:a.jsx(eG,{children:f})}):a.jsx(yie,{disabled:g,render:a.jsx("button",{type:"button",...w,onFocus:k=>{h?.(k),!k.defaultPrevented&&o.setValue(p)}}),value:p,children:a.jsx(eG,{children:f})})}),y?a.jsx(Hn.div,{layout:!0,layoutRoot:!0,children:a.jsx(Hn.div,{className:A,transition:n?Xtt:void 0,role:"presentation",layoutId:Gtt})}):null]})}const Wue=Qt(Rue,"ToggleGroupControlOptionBase");function Ytt(e,t){const{label:n,...o}=e,r=o["aria-label"]||n;return a.jsx(Wue,{...o,"aria-label":r,ref:t,children:n})}const W0=O.forwardRef(Ytt);function Ztt(e,t){const{icon:n,label:o,...r}=e;return a.jsx(Wue,{...r,isIcon:!0,"aria-label":o,showTooltip:!0,ref:t,children:a.jsx(xn,{icon:n})})}const Bi=O.forwardRef(Ztt),Qtt=[{label:m("Solid"),icon:aZe,value:"solid"},{label:m("Dashed"),icon:sZe,value:"dashed"},{label:m("Dotted"),icon:iZe,value:"dotted"}];function Jtt({onChange:e,...t},n){return a.jsx(wn,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,ref:n,isDeselectable:!0,onChange:o=>{e?.(o)},...t,children:Qtt.map(o=>a.jsx(Bi,{value:o.value,icon:o.icon,label:o.label},o.value))})}const e0t=Qt(Jtt,"BorderControlStylePicker");function t0t(e,t){const{className:n,colorValue:o,...r}=e;return a.jsx("span",{className:$("component-color-indicator",n),style:{background:o},ref:t,...r})}const vf=O.forwardRef(t0t),n0t=(e,t)=>{const{renderContent:n,renderToggle:o,className:r,contentClassName:s,expandOnMobile:i,headerTitle:c,focusOnMount:l,popoverProps:u,onClose:d,onToggle:p,style:f,open:b,defaultOpen:h,position:g,variant:z}=Ut(e,"Dropdown");g!==void 0&&Re("`position` prop in wp.components.Dropdown",{since:"6.2",alternative:"`popoverProps.placement` prop",hint:"Note that the `position` prop will override any values passed through the `popoverProps.placement` prop."});const[y,x]=O.useState(null),v=O.useRef(),[M,A]=g3({defaultValue:h,value:b,onChange:p});function _(){if(!v.current)return;const{ownerDocument:S}=v.current,C=S?.activeElement?.closest('[role="dialog"]');!v.current.contains(S.activeElement)&&(!C||C.contains(v.current))&&w()}function w(){d?.(),A(!1)}const k={isOpen:!!M,onToggle:()=>A(!M),onClose:w},q=!!u?.anchor||!!u?.anchorRef||!!u?.getAnchorRect||!!u?.anchorRect;return a.jsxs("div",{className:r,ref:Gt([v,t,x]),tabIndex:-1,style:f,children:[o(k),M&&a.jsx(Mn,{position:g,onClose:w,onFocusOutside:_,expandOnMobile:i,headerTitle:c,focusOnMount:l,offset:13,anchor:q?void 0:y,variant:z,...u,className:$("components-dropdown__content",u?.className,s),children:n(k)})]})},B0=Qt(n0t,"Dropdown");function o0t(e,t){const n=Ut(e,"InputControlSuffixWrapper");return a.jsx(Yle,{...n,ref:t})}const r0t=Qt(o0t,"InputControlSuffixWrapper"),s0t=({disabled:e})=>e?ke("color:",qe.ui.textDisabled,";cursor:default;",""):"";var i0t={name:"1lv1yo7",styles:"display:inline-flex"};const a0t=({variant:e})=>e==="minimal"?i0t:"",c0t=we(q7,{target:"e1mv6sxx3"})("color:",qe.theme.foreground,";cursor:pointer;",s0t," ",a0t,";"),l0t=({__next40pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{if(t)return;const o={default:{height:40,minHeight:40,paddingTop:0,paddingBottom:0},small:{height:24,minHeight:24,paddingTop:0,paddingBottom:0},compact:{height:32,minHeight:32,paddingTop:0,paddingBottom:0},"__unstable-large":{height:40,minHeight:40,paddingTop:0,paddingBottom:0}};e||(o.default=o.compact);const r=o[n]||o.default;return ke(r,"","")},$M=18,u0t=({__next40pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{const o={default:Se.controlPaddingX,small:Se.controlPaddingXSmall,compact:Se.controlPaddingXSmall,"__unstable-large":Se.controlPaddingX};e||(o.default=o.compact);const r=o[n]||o.default;return dn({paddingLeft:r,paddingRight:r+$M,...t?{paddingTop:r,paddingBottom:r}:{}})},d0t=({multiple:e})=>({overflow:e?"auto":"hidden"});var p0t={name:"n1jncc",styles:"field-sizing:content"};const f0t=({variant:e})=>e==="minimal"?p0t:"",b0t=we("select",{target:"e1mv6sxx2"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:currentColor;cursor:inherit;display:block;font-family:inherit;margin:0;width:100%;max-width:none;white-space:nowrap;text-overflow:ellipsis;",k7,";",l0t,";",u0t,";",d0t," ",f0t,";}"),h0t=we("div",{target:"e1mv6sxx1"})("margin-inline-end:",Ce(-1),";line-height:0;path{fill:currentColor;}"),m0t=we(r0t,{target:"e1mv6sxx0"})("position:absolute;pointer-events:none;",dn({right:0}),";"),Tue=()=>a.jsx(m0t,{children:a.jsx(h0t,{children:a.jsx(t0,{icon:md,size:$M})})});function M0t(e){const n=`inspector-select-control-${He(i0)}`;return e||n}function g0t({options:e}){return e.map(({id:t,label:n,value:o,...r},s)=>{const i=t||`${n}-${o}-${s}`;return a.jsx("option",{value:o,...r,children:n},i)})}function z0t(e,t){const{className:n,disabled:o=!1,help:r,hideLabelFromVision:s,id:i,label:c,multiple:l=!1,onChange:u,options:d=[],size:p="default",value:f,labelPosition:b="top",children:h,prefix:g,suffix:z,variant:y="default",__next40pxDefaultSize:x=!1,__nextHasNoMarginBottom:v=!1,...M}=Md(e),A=M0t(i),_=r?`${A}__help`:void 0;if(!d?.length&&!h)return null;const w=q=>{if(e.multiple){const C=Array.from(q.target.options).filter(({selected:T})=>T).map(({value:T})=>T);e.onChange?.(C,{event:q});return}e.onChange?.(q.target.value,{event:q})},k=$("components-select-control",n);return a.jsx(z0,{help:r,id:A,__nextHasNoMarginBottom:v,__associatedWPComponentName:"SelectControl",children:a.jsx(c0t,{className:k,disabled:o,hideLabelFromVision:s,id:A,isBorderless:y==="minimal",label:c,size:p,suffix:z||!l&&a.jsx(Tue,{}),prefix:g,labelPosition:b,__unstableInputWidth:y==="minimal"?"auto":void 0,variant:y,__next40pxDefaultSize:x,children:a.jsx(b0t,{...M,__next40pxDefaultSize:x,"aria-describedby":_,className:"components-select-control__input",disabled:o,id:A,multiple:l,onChange:w,ref:t,selectSize:p,value:f,variant:y,children:h||a.jsx(g0t,{options:d})})})})}const i0=O.forwardRef(z0t);function r4(e,t,n){return typeof e!="number"?null:parseFloat(`${S7(e,t,n)}`)}function O0t(e){const{min:t,max:n,value:o,initial:r}=e,[s,i]=O_(r4(o,t,n),{initial:r4(r??null,t,n),fallback:null}),c=O.useCallback(l=>{i(l===null?null:r4(l,t,n))},[t,n,i]);return[s,c]}const j2=30,P2=4,R7=()=>ke({height:j2,minHeight:j2},"",""),vu=12,A0t=({__next40pxDefaultSize:e})=>!e&&ke({minHeight:j2},"",""),y0t=we("div",{target:"e1epgpqk14"})("-webkit-tap-highlight-color:transparent;align-items:center;display:flex;justify-content:flex-start;padding:0;position:relative;touch-action:none;width:100%;min-height:40px;",A0t,";"),v0t=({color:e=qe.ui.borderFocus})=>ke({color:e},"",""),x0t=({marks:e,__nextHasNoMarginBottom:t})=>t?"":ke({marginBottom:e?16:void 0},"",""),_0t=we("div",{target:"e1epgpqk13"})("display:block;flex:1;position:relative;width:100%;",v0t,";",R7,";",x0t,";"),w0t=we("span",{target:"e1epgpqk12"})("display:flex;margin-top:",P2,"px;",dn({marginRight:6}),";"),k0t=we("span",{target:"e1epgpqk11"})("display:flex;margin-top:",P2,"px;",dn({marginLeft:6}),";"),q0t=({disabled:e,railColor:t})=>{let n=t||"";return e&&(n=qe.ui.backgroundDisabled),ke({background:n},"","")},S0t=we("span",{target:"e1epgpqk10"})("background-color:",qe.gray[300],";left:0;pointer-events:none;right:0;display:block;height:",P2,"px;position:absolute;margin-top:",(j2-P2)/2,"px;top:0;border-radius:",Se.radiusFull,";",q0t,";"),C0t=({disabled:e,trackColor:t})=>{let n=t||"currentColor";return e&&(n=qe.gray[400]),ke({background:n},"","")},R0t=we("span",{target:"e1epgpqk9"})("background-color:currentColor;border-radius:",Se.radiusFull,";height:",P2,"px;pointer-events:none;display:block;position:absolute;margin-top:",(j2-P2)/2,"px;top:0;",C0t,";"),W0t=we("span",{target:"e1epgpqk8"})({name:"l7tjj5",styles:"display:block;pointer-events:none;position:relative;width:100%;user-select:none"}),T0t=({disabled:e,isFilled:t})=>{let n=t?"currentColor":qe.gray[300];return e&&(n=qe.gray[400]),ke({backgroundColor:n},"","")},E0t=we("span",{target:"e1epgpqk7"})("height:",vu,"px;left:0;position:absolute;top:9px;width:1px;",T0t,";"),B0t=({isFilled:e})=>ke({color:e?qe.gray[700]:qe.gray[300]},"",""),N0t=we("span",{target:"e1epgpqk6"})("color:",qe.gray[300],";font-size:11px;position:absolute;top:22px;white-space:nowrap;",dn({left:0}),";",dn({transform:"translateX( -50% )"},{transform:"translateX( 50% )"}),";",B0t,";"),Eue=({disabled:e})=>e?ke("background-color:",qe.gray[400],";",""):ke("background-color:",qe.theme.accent,";",""),L0t=we("span",{target:"e1epgpqk5"})("align-items:center;display:flex;height:",vu,"px;justify-content:center;margin-top:",(j2-vu)/2,"px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:",vu,"px;border-radius:",Se.radiusRound,";",Eue,";",dn({marginLeft:-10}),";",dn({transform:"translateX( 4.5px )"},{transform:"translateX( -4.5px )"}),";"),j0t=({isFocused:e})=>e?ke("&::before{content:' ';position:absolute;background-color:",qe.theme.accent,";opacity:0.4;border-radius:",Se.radiusRound,";height:",vu+8,"px;width:",vu+8,"px;top:-4px;left:-4px;}",""):"",P0t=we("span",{target:"e1epgpqk4"})("align-items:center;border-radius:",Se.radiusRound,";height:100%;outline:0;position:absolute;user-select:none;width:100%;",Eue,";",j0t,";"),I0t=we("input",{target:"e1epgpqk3"})("box-sizing:border-box;cursor:pointer;display:block;height:100%;left:0;margin:0 -",vu/2,"px;opacity:0;outline:none;position:absolute;right:0;top:0;width:calc( 100% + ",vu,"px );"),D0t=({show:e})=>ke({opacity:e?1:0},"","");var F0t={name:"1cypxip",styles:"top:-80%"},$0t={name:"1lr98c4",styles:"bottom:-80%"};const V0t=({position:e})=>e==="bottom"?$0t:F0t,H0t=we("span",{target:"e1epgpqk2"})("background:rgba( 0, 0, 0, 0.8 );border-radius:",Se.radiusSmall,";color:white;display:inline-block;font-size:12px;min-width:32px;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;text-align:center;user-select:none;line-height:1.4;@media not ( prefers-reduced-motion ){transition:opacity 120ms ease;}",D0t,";",V0t,";",dn({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),";"),U0t=we(T1,{target:"e1epgpqk1"})("display:inline-block;font-size:13px;margin-top:0;input[type='number']&{",R7,";}",dn({marginLeft:`${Ce(4)} !important`}),";"),X0t=we("span",{target:"e1epgpqk0"})("display:block;margin-top:0;button,button.is-small{margin-left:0;",R7,";}",dn({marginLeft:8}),";");function G0t(e,t){const{describedBy:n,label:o,value:r,...s}=e;return a.jsx(I0t,{...s,"aria-describedby":n,"aria-label":o,"aria-hidden":!1,ref:t,tabIndex:0,type:"range",value:r})}const K0t=O.forwardRef(G0t);function Y0t(e){const{className:t,isFilled:n=!1,label:o,style:r={},...s}=e,i=$("components-range-control__mark",n&&"is-filled",t),c=$("components-range-control__mark-label",n&&"is-filled");return a.jsxs(a.Fragment,{children:[a.jsx(E0t,{...s,"aria-hidden":"true",className:i,isFilled:n,style:r}),o&&a.jsx(N0t,{"aria-hidden":"true",className:c,isFilled:n,style:r,children:o})]})}function Z0t(e){const{disabled:t=!1,marks:n=!1,min:o=0,max:r=100,step:s=1,value:i=0,...c}=e;return a.jsxs(a.Fragment,{children:[a.jsx(S0t,{disabled:t,...c}),n&&a.jsx(Q0t,{disabled:t,marks:n,min:o,max:r,step:s,value:i})]})}function Q0t(e){const{disabled:t=!1,marks:n=!1,min:o=0,max:r=100,step:s=1,value:i=0}=e,l=J0t({marks:n,min:o,max:r,step:s==="any"?1:s,value:i});return a.jsx(W0t,{"aria-hidden":"true",className:"components-range-control__marks",children:l.map(u=>O.createElement(Y0t,{...u,key:u.key,"aria-hidden":"true",disabled:t}))})}function J0t({marks:e,min:t=0,max:n=100,step:o=1,value:r=0}){if(!e)return[];const s=n-t;if(!Array.isArray(e)){e=[];const c=1+Math.round(s/o);for(;c>e.push({value:o*e.length+t}););}const i=[];return e.forEach((c,l)=>{if(c.valuen)return;const u=`mark-${l}`,d=c.value<=r,p=`${(c.value-t)/s*100}%`,f={[ft()?"right":"left"]:p};i.push({...c,isFilled:d,key:u,style:f})}),i}function ent(e){const{className:t,inputRef:n,tooltipPosition:o,show:r=!1,style:s={},value:i=0,renderTooltipContent:c=b=>b,zIndex:l=100,...u}=e,d=tnt({inputRef:n,tooltipPosition:o}),p=$("components-simple-tooltip",t),f={...s,zIndex:l};return a.jsx(H0t,{...u,"aria-hidden":r,className:p,position:d,show:r,role:"tooltip",style:f,children:c(i)})}function tnt({inputRef:e,tooltipPosition:t}){const[n,o]=O.useState(),r=O.useCallback(()=>{e&&e.current&&o(t)},[t,e]);return O.useEffect(()=>{r()},[r]),O.useEffect(()=>(window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)})),n}const Sm=()=>{};function nnt({resetFallbackValue:e,initialPosition:t}){return e!==void 0?Number.isNaN(e)?null:e:t!==void 0?Number.isNaN(t)?null:t:null}function Bue(e,t){const{__nextHasNoMarginBottom:n=!1,afterIcon:o,allowReset:r=!1,beforeIcon:s,className:i,color:c=qe.theme.accent,currentInput:l,disabled:u=!1,help:d,hideLabelFromVision:p=!1,initialPosition:f,isShiftStepEnabled:b=!0,label:h,marks:g=!1,max:z=100,min:y=0,onBlur:x=Sm,onChange:v=Sm,onFocus:M=Sm,onMouseLeave:A=Sm,onMouseMove:_=Sm,railColor:w,renderTooltipContent:k=Ke=>Ke,resetFallbackValue:q,__next40pxDefaultSize:S=!1,shiftStep:C=10,showTooltip:T,step:W=1,trackColor:B,value:N,withInputField:E=!0,...L}=e,[I,P]=O0t({min:y,max:z,value:N??null,initial:f}),H=O.useRef(!1);let U=T,X=E;W==="any"&&(U=!1,X=!1);const[Z,ne]=O.useState(U),[oe,Y]=O.useState(!1),ee=O.useRef(),ie=ee.current?.matches(":focus"),se=!u&&oe,be=I===null,xe=be?"":I!==void 0?I:l,K=be?(z-y)/2+y:I,pe=be?50:(I-y)/(z-y)*100,G=`${S7(pe,0,100)}%`,re=$("components-range-control",i),Me=$("components-range-control__wrapper",!!g&&"is-marked"),he=He(Bue,"inspector-range-control"),Q=d?`${he}__help`:void 0,R=U!==!1&&Number.isFinite(I),j=Ke=>{const Nt=parseFloat(Ke.target.value);P(Nt),v(Nt)},V=Ke=>{let Nt=parseFloat(Ke);P(Nt),isNaN(Nt)?r&&(H.current=!0):((Ntz)&&(Nt=r4(Nt,y,z)),v(Nt),H.current=!1)},de=()=>{H.current&&(ge(),H.current=!1)},ge=()=>{const Ke=Number.isNaN(q)?null:q??null;P(Ke),v(Ke??void 0)},ve=()=>ne(!0),Ne=()=>ne(!1),et=Ke=>{x(Ke),Y(!1),Ne()},mt=Ke=>{M(Ke),Y(!0),ve()},Mt={[ft()?"right":"left"]:G};return a.jsx(z0,{__nextHasNoMarginBottom:n,__associatedWPComponentName:"RangeControl",className:re,label:h,hideLabelFromVision:p,id:`${he}`,help:d,children:a.jsxs(y0t,{className:"components-range-control__root",__next40pxDefaultSize:S,children:[s&&a.jsx(w0t,{children:a.jsx(xn,{icon:s})}),a.jsxs(_0t,{__nextHasNoMarginBottom:n,className:Me,color:c,marks:!!g,children:[a.jsx(K0t,{...L,className:"components-range-control__slider",describedBy:Q,disabled:u,id:`${he}`,label:h,max:z,min:y,onBlur:et,onChange:j,onFocus:mt,onMouseMove:_,onMouseLeave:A,ref:Gt([ee,t]),step:W,value:xe??void 0}),a.jsx(Z0t,{"aria-hidden":!0,disabled:u,marks:g,max:z,min:y,railColor:w,step:W,value:K}),a.jsx(R0t,{"aria-hidden":!0,className:"components-range-control__track",disabled:u,style:{width:G},trackColor:B}),a.jsx(L0t,{className:"components-range-control__thumb-wrapper",style:Mt,disabled:u,children:a.jsx(P0t,{"aria-hidden":!0,isFocused:se,disabled:u})}),R&&a.jsx(ent,{className:"components-range-control__tooltip",inputRef:ee,tooltipPosition:"bottom",renderTooltipContent:k,show:ie||Z,style:Mt,value:I})]}),o&&a.jsx(k0t,{children:a.jsx(xn,{icon:o})}),X&&a.jsx(U0t,{"aria-label":h,className:"components-range-control__number",disabled:u,inputMode:"decimal",isShiftStepEnabled:b,max:z,min:y,onBlur:de,onChange:V,shiftStep:C,size:S?"__unstable-large":"default",__unstableInputWidth:Ce(S?20:16),step:W,value:xe}),r&&a.jsx(X0t,{children:a.jsx(fe,{className:"components-range-control__reset",accessibleWhenDisabled:!u,disabled:u||I===nnt({resetFallbackValue:q,initialPosition:f}),variant:"secondary",size:"small",onClick:ge,children:m("Reset")})})]})})}const T0=O.forwardRef(Bue),ont=we(T1,{target:"ez9hsf47"})("width:",Ce(24),";"),rnt=we(i0,{target:"ez9hsf46"})("margin-left:",Ce(-2),";width:5em;"),snt=we(T0,{target:"ez9hsf45"})("flex:1;margin-right:",Ce(2),";"),int=` + `),()=>{document.head.removeChild(d)}},[t]),a.jsx(VKe,{isPresent:t,childRef:o,sizeRef:r,children:O.cloneElement(e,{ref:o})})}const UKe=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:r,presenceAffectsLayout:s,mode:i})=>{const c=QL(XKe),l=O.useId(),u=O.useMemo(()=>({id:l,initial:t,isPresent:n,custom:r,onExitComplete:d=>{c.set(d,!0);for(const p of c.values())if(!p)return;o&&o()},register:d=>(c.set(d,!1),()=>c.delete(d))}),s?[Math.random()]:[n]);return O.useMemo(()=>{c.forEach((d,p)=>c.set(p,!1))},[n]),O.useEffect(()=>{!n&&!c.size&&o&&o()},[n]),i==="popLayout"&&(e=a.jsx(HKe,{isPresent:n,children:e})),a.jsx(N_.Provider,{value:u,children:e})};function XKe(){return new Map}const bA=e=>e.key||"";function OX(e){const t=[];return O.Children.forEach(e,n=>{O.isValidElement(n)&&t.push(n)}),t}const Lp=({children:e,exitBeforeEnter:t,custom:n,initial:o=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync"})=>{const c=O.useMemo(()=>OX(e),[e]),l=c.map(bA),u=O.useRef(!0),d=O.useRef(c),p=QL(()=>new Map),[f,b]=O.useState(c),[h,g]=O.useState(c);jL(()=>{u.current=!1,d.current=c;for(let x=0;x{const v=bA(x),M=c===h||l.includes(v),A=()=>{if(p.has(v))p.set(v,!0);else return;let _=!0;p.forEach(w=>{w||(_=!1)}),_&&(y?.(),g(d.current),r&&r())};return a.jsx(UKe,{isPresent:M,initial:!u.current||o?void 0:!1,custom:M?void 0:n,presenceAffectsLayout:s,mode:i,onExitComplete:M?void 0:A,children:x},v)})})},GKe=O.createContext(null);function KKe(){const e=O.useRef(!1);return jL(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function YKe(){const e=KKe(),[t,n]=O.useState(0),o=O.useCallback(()=>{e.current&&n(t+1)},[t]);return[O.useCallback(()=>K0.postRender(o),[o]),t]}const ZKe=e=>!e.isLayoutDirty&&e.willUpdate(!1);function AX(){const e=new Set,t=new WeakMap,n=()=>e.forEach(ZKe);return{add:o=>{e.add(o),t.set(o,o.addEventListener("willUpdate",n))},remove:o=>{e.delete(o);const r=t.get(o);r&&(r(),t.delete(o)),n()},dirty:n}}const jce=e=>e===!0,QKe=e=>jce(e===!0)||e==="id",JKe=({children:e,id:t,inherit:n=!0})=>{const o=O.useContext(Xg),r=O.useContext(GKe),[s,i]=YKe(),c=O.useRef(null),l=o.id||r;c.current===null&&(QKe(n)&&l&&(t=t?l+"-"+t:l),c.current={id:t,group:jce(n)&&o.group||AX()});const u=O.useMemo(()=>({...c.current,forceRender:s}),[i]);return a.jsx(Xg.Provider,{value:u,children:e})},Dq=["40em","52em","64em"],eYe=(e={})=>{const{defaultIndex:t=0}=e;if(typeof t!="number")throw new TypeError(`Default breakpoint index should be a number. Got: ${t}, ${typeof t}`);if(t<0||t>Dq.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${Dq.length} breakpoints, got index ${t}`);const[n,o]=O.useState(t);return O.useEffect(()=>{const r=()=>Dq.filter(i=>typeof window<"u"?window.matchMedia(`screen and (min-width: ${i})`).matches:!1).length,s=()=>{const i=r();n!==i&&o(i)};return s(),typeof window<"u"&&window.addEventListener("resize",s),()=>{typeof window<"u"&&window.removeEventListener("resize",s)}},[n]),n};function aW(e,t={}){const n=eYe(t);if(!Array.isArray(e)&&typeof e!="function")return e;const o=e||[];return o[n>=o.length?o.length-1:n]}const tYe={name:"zjik7",styles:"display:flex"},nYe={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},oYe={name:"82a6rk",styles:"flex:1"},rYe={name:"13nosa1",styles:">*{min-height:0;}"},sYe={name:"1pwxzk4",styles:">*{min-width:0;}"};function iYe(e){const{isReversed:t,...n}=e;return typeof t<"u"?(Re("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...n,direction:t?"row-reverse":"row"}):n}function Pce(e){const{align:t,className:n,direction:o="row",expanded:r=!0,gap:s=2,justify:i="space-between",wrap:c=!1,...l}=Ut(iYe(e),"Flex"),u=Array.isArray(o)?o:[o],d=aW(u),p=typeof d=="string"&&!!d.includes("column"),f=x0(),b=O.useMemo(()=>{const h=ke({alignItems:t??(p?"normal":"center"),flexDirection:d,flexWrap:c?"wrap":void 0,gap:Ce(s),justifyContent:i,height:p&&r?"100%":void 0,width:!p&&r?"100%":void 0},"","");return f(tYe,h,p?rYe:sYe,n)},[t,n,f,d,r,s,p,i,c]);return{...l,className:b,isColumn:p}}const Ice=O.createContext({flexItemDisplay:void 0}),aYe=()=>O.useContext(Ice);function cYe(e,t){const{children:n,isColumn:o,...r}=Pce(e);return a.jsx(Ice.Provider,{value:{flexItemDisplay:o?"block":void 0},children:a.jsx(C0,{...r,ref:t,children:n})})}const Q0=Qt(cYe,"Flex");function Dce(e){const{className:t,display:n,isBlock:o=!1,...r}=Ut(e,"FlexItem"),s={},i=aYe().flexItemDisplay;s.Base=ke({display:n||i},"","");const l=x0()(nYe,s.Base,o&&oYe,t);return{...r,className:l}}function lYe(e,t){const n=Dce(e);return a.jsx(C0,{...n,ref:t})}const Ht=Qt(lYe,"FlexItem");function uYe(e){const t=Ut(e,"FlexBlock");return Dce({isBlock:!0,...t})}function dYe(e,t){const n=uYe(e);return a.jsx(C0,{...n,ref:t})}const Vi=Qt(dYe,"FlexBlock"),hr=e=>typeof e<"u"&&e!==null;function pYe(e){const{className:t,margin:n,marginBottom:o=2,marginLeft:r,marginRight:s,marginTop:i,marginX:c,marginY:l,padding:u,paddingBottom:d,paddingLeft:p,paddingRight:f,paddingTop:b,paddingX:h,paddingY:g,...z}=Ut(e,"Spacer"),x=x0()(hr(n)&&ke("margin:",Ce(n),";",""),hr(l)&&ke("margin-bottom:",Ce(l),";margin-top:",Ce(l),";",""),hr(c)&&ke("margin-left:",Ce(c),";margin-right:",Ce(c),";",""),hr(i)&&ke("margin-top:",Ce(i),";",""),hr(o)&&ke("margin-bottom:",Ce(o),";",""),hr(r)&&dn({marginLeft:Ce(r)})(),hr(s)&&dn({marginRight:Ce(s)})(),hr(u)&&ke("padding:",Ce(u),";",""),hr(g)&&ke("padding-bottom:",Ce(g),";padding-top:",Ce(g),";",""),hr(h)&&ke("padding-left:",Ce(h),";padding-right:",Ce(h),";",""),hr(b)&&ke("padding-top:",Ce(b),";",""),hr(d)&&ke("padding-bottom:",Ce(d),";",""),hr(p)&&dn({paddingLeft:Ce(p)})(),hr(f)&&dn({paddingRight:Ce(f)})(),t);return{...z,className:x}}function fYe(e,t){const n=pYe(e);return a.jsx(C0,{...n,ref:t})}const or=Qt(fYe,"Spacer");function bYe({icon:e,size:t=24,...n},o){return O.cloneElement(e,{width:t,height:t,...n,ref:o})}const t0=O.forwardRef(bYe),u7=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M2 12c0 3.6 2.4 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.5 0-4.5-1.5-4.5-4s2-4.5 4.5-4.5h3.5V6H8c-3.6 0-6 2.4-6 6zm19.5-1h-8v1.5h8V11zm0 5h-8v1.5h8V16zm0-10h-8v1.5h8V6z"})}),hYe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5 5.5V8H20V5.5H22.5V4H20V1.5H18.5V4H16V5.5H18.5ZM13.9624 4H6C4.89543 4 4 4.89543 4 6V18C4 19.1046 4.89543 20 6 20H18C19.1046 20 20 19.1046 20 18V10.0391H18.5V18C18.5 18.2761 18.2761 18.5 18 18.5H10L10 10.4917L16.4589 10.5139L16.4641 9.01389L5.5 8.97618V6C5.5 5.72386 5.72386 5.5 6 5.5H13.9624V4ZM5.5 10.4762V18C5.5 18.2761 5.72386 18.5 6 18.5H8.5L8.5 10.4865L5.5 10.4762Z"})}),V_=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})}),mYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M4 12.8h16v-1.5H4v1.5zm0 7h12.4v-1.5H4v1.5zM4 4.3v1.5h16V4.3H4z"})}),_3=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})}),H_=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"})}),w3=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})}),MYe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M11.934 7.406a1 1 0 0 0 .914.594H19a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h5.764a.5.5 0 0 1 .447.276l.723 1.63Zm1.064-1.216a.5.5 0 0 0 .462.31H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5.764a2 2 0 0 1 1.789 1.106l.445 1.084ZM8.5 10.5h7V12h-7v-1.5Zm7 3.5h-7v1.5h7V14Z"})}),gYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z"})}),yX=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"})}),cW=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"})}),zYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"})}),Fce=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z"})}),$ce=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"})}),U_=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"})}),Vce=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z"})}),Hce=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"})}),OYe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M14.5 17.5H9.5V16H14.5V17.5Z M14.5 8H9.5V6.5H14.5V8Z M7 3.5H17C18.1046 3.5 19 4.39543 19 5.5V9C19 10.1046 18.1046 11 17 11H7C5.89543 11 5 10.1046 5 9V5.5C5 4.39543 5.89543 3.5 7 3.5ZM17 5H7C6.72386 5 6.5 5.22386 6.5 5.5V9C6.5 9.27614 6.72386 9.5 7 9.5H17C17.2761 9.5 17.5 9.27614 17.5 9V5.5C17.5 5.22386 17.2761 5 17 5Z M7 13H17C18.1046 13 19 13.8954 19 15V18.5C19 19.6046 18.1046 20.5 17 20.5H7C5.89543 20.5 5 19.6046 5 18.5V15C5 13.8954 5.89543 13 7 13ZM17 14.5H7C6.72386 14.5 6.5 14.7239 6.5 15V18.5C6.5 18.7761 6.72386 19 7 19H17C17.2761 19 17.5 18.7761 17.5 18.5V15C17.5 14.7239 17.2761 14.5 17 14.5Z"})}),Uce=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"})}),AYe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.5h12a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5ZM4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6Zm4 10h2v-1.5H8V16Zm5 0h-2v-1.5h2V16Zm1 0h2v-1.5h-2V16Z"})}),d7=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"})}),no=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})}),md=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})}),Fa=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})}),X_=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})}),Ei=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})}),jp=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})}),G_=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})}),yYe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M20 6H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h16c.3 0 .5.2.5.5v9zM10 10H8v2h2v-2zm-5 2h2v-2H5v2zm8-2h-2v2h2v-2zm-5 6h8v-2H8v2zm6-4h2v-2h-2v2zm3 0h2v-2h-2v2zm0 4h2v-2h-2v2zM5 16h2v-2H5v2z"})}),Ch=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})}),zl=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})}),vYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-4v-2.4L14 14l1-1-3-3-3 3 1 1 1.2-1.2v2.4H7.7c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4H9l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8 0 1-.8 1.8-1.7 1.8z"})}),xYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-9c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4h1.3l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8-.1 1-.9 1.8-1.8 1.8z"})}),p7=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"})}),Xce=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",clipRule:"evenodd"})}),_Ye=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3zm-5.1 7.6c-2.5 0-4.6-2.1-4.6-4.6 0-.3.1-1 .8-2.3.5-.9 1.1-1.9 2-3.1.7-.9 1.3-1.7 1.8-2.3.7.8 1.3 1.6 1.8 2.3.8 1.1 1.5 2.2 2 3.1.7 1.3.8 2 .8 2.3 0 2.5-2.1 4.6-4.6 4.6z"})}),wYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"})}),kYe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 7.5h-5v10h5v-10Zm1.5 0v10H19a.5.5 0 0 0 .5-.5V8a.5.5 0 0 0-.5-.5h-2.5ZM6 7.5h2.5v10H6a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5ZM6 6h13a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2Z"})}),k3=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"})}),Gce=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.625 5.5h9.75c.069 0 .125.056.125.125v9.75a.125.125 0 0 1-.125.125h-9.75a.125.125 0 0 1-.125-.125v-9.75c0-.069.056-.125.125-.125ZM4 5.625C4 4.728 4.728 4 5.625 4h9.75C16.273 4 17 4.728 17 5.625v9.75c0 .898-.727 1.625-1.625 1.625h-9.75A1.625 1.625 0 0 1 4 15.375v-9.75Zm14.5 11.656v-9H20v9C20 18.8 18.77 20 17.251 20H6.25v-1.5h11.001c.69 0 1.249-.528 1.249-1.219Z"})}),Kce=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"})}),Yce=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})}),qYe=a.jsxs(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx(J,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z",fillRule:"evenodd",clipRule:"evenodd"}),a.jsx(J,{d:"M15 15V15C15 13.8954 14.1046 13 13 13L11 13C9.89543 13 9 13.8954 9 15V15",fillRule:"evenodd",clipRule:"evenodd"}),a.jsx(ese,{cx:"12",cy:"9",r:"2",fillRule:"evenodd",clipRule:"evenodd"})]}),SYe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M6.68822 16.625L5.5 17.8145L5.5 5.5L18.5 5.5L18.5 16.625L6.68822 16.625ZM7.31 18.125L19 18.125C19.5523 18.125 20 17.6773 20 17.125L20 5C20 4.44772 19.5523 4 19 4H5C4.44772 4 4 4.44772 4 5V19.5247C4 19.8173 4.16123 20.086 4.41935 20.2237C4.72711 20.3878 5.10601 20.3313 5.35252 20.0845L7.31 18.125ZM16 9.99997H8V8.49997H16V9.99997ZM8 14H13V12.5H8V14Z"})}),CYe=a.jsx(te,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M6.68822 10.625L6.24878 11.0649L5.5 11.8145L5.5 5.5L12.5 5.5V8L14 6.5V5C14 4.44772 13.5523 4 13 4H5C4.44772 4 4 4.44771 4 5V13.5247C4 13.8173 4.16123 14.086 4.41935 14.2237C4.72711 14.3878 5.10601 14.3313 5.35252 14.0845L7.31 12.125H8.375L9.875 10.625H7.31H6.68822ZM14.5605 10.4983L11.6701 13.75H16.9975C17.9963 13.75 18.7796 14.1104 19.3553 14.7048C19.9095 15.2771 20.2299 16.0224 20.4224 16.7443C20.7645 18.0276 20.7543 19.4618 20.7487 20.2544C20.7481 20.345 20.7475 20.4272 20.7475 20.4999L19.2475 20.5001C19.2475 20.4191 19.248 20.3319 19.2484 20.2394V20.2394C19.2526 19.4274 19.259 18.2035 18.973 17.1307C18.8156 16.5401 18.586 16.0666 18.2778 15.7483C17.9909 15.4521 17.5991 15.25 16.9975 15.25H11.8106L14.5303 17.9697L13.4696 19.0303L8.96956 14.5303L13.4394 9.50171L14.5605 10.4983Z"})}),RYe=a.jsx(te,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"m6.249 11.065.44-.44h3.186l-1.5 1.5H7.31l-1.957 1.96A.792.792 0 0 1 4 13.524V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v1.5L12.5 8V5.5h-7v6.315l.749-.75ZM20 19.75H7v-1.5h13v1.5Zm0-12.653-8.967 9.064L8 17l.867-2.935L17.833 5 20 7.097Z"})}),f7=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"})}),Zce=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M18 20v-2h2v-1.5H7.75a.25.25 0 0 1-.25-.25V4H6v2H4v1.5h2v8.75c0 .966.784 1.75 1.75 1.75h8.75v2H18ZM9.273 7.5h6.977a.25.25 0 0 1 .25.25v6.977H18V7.75A1.75 1.75 0 0 0 16.25 6H9.273v1.5Z"})}),WYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4zm.8-4l.7.7 2-2V12h1V9.2l2 2 .7-.7-2-2H12v-1H9.2l2-2-.7-.7-2 2V4h-1v2.8l-2-2-.7.7 2 2H4v1h2.8l-2 2z"})}),Fq=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"})}),TYe=a.jsxs(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx(J,{d:"M4 16h10v1.5H4V16Zm0-4.5h16V13H4v-1.5ZM10 7h10v1.5H10V7Z",fillRule:"evenodd",clipRule:"evenodd"}),a.jsx(J,{d:"m4 5.25 4 2.5-4 2.5v-5Z"})]}),vX=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm8 4a4 4 0 0 0 4-4H8a4 4 0 0 0 4 4Z"})}),K_=a.jsx(te,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z"})}),Qce=a.jsx(te,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.5 18.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h2.5v13zm10-.5c0 .3-.2.5-.5.5h-8v-13h8c.3 0 .5.2.5.5v12z"})}),Jce=a.jsx(te,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z"})}),EYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M18 11.3l-1-1.1-4 4V3h-1.5v11.3L7 10.2l-1 1.1 6.2 5.8 5.8-5.8zm.5 3.7v3.5h-13V15H4v5h16v-5h-1.5z"})}),nl=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})}),Pp=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})}),b7=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z"})}),BYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M12 4 4 19h16L12 4zm0 3.2 5.5 10.3H12V7.2z"})}),NYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M14.7 11.3c1-.6 1.5-1.6 1.5-3 0-2.3-1.3-3.4-4-3.4H7v14h5.8c1.4 0 2.5-.3 3.3-1 .8-.7 1.2-1.7 1.2-2.9.1-1.9-.8-3.1-2.6-3.7zm-5.1-4h2.3c.6 0 1.1.1 1.4.4.3.3.5.7.5 1.2s-.2 1-.5 1.2c-.3.3-.8.4-1.4.4H9.6V7.3zm4.6 9c-.4.3-1 .4-1.7.4H9.6v-3.9h2.9c.7 0 1.3.2 1.7.5.4.3.6.8.6 1.5s-.2 1.2-.6 1.5z"})}),LYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"})}),jYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-8-3.5l3 3-3 3 1 1 4-4-4-4-1 1z"})}),PYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM20.0303 9.03033L17.0607 12L20.0303 14.9697L18.9697 16.0303L15.4697 12.5303L14.9393 12L15.4697 11.4697L18.9697 7.96967L20.0303 9.03033Z"})}),IYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M12.5 5L10 19h1.9l2.5-14z"})}),ele=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})}),DYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M4 8.8h8.9V7.2H4v1.6zm0 7h8.9v-1.5H4v1.5zM18 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"})}),Zg=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM5 6.7V10h1V5.3L3.8 6l.4 1 .8-.3zm-.4 5.7c-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-1c.3-.6.8-1.4.9-2.1.1-.3 0-.8-.2-1.1-.5-.6-1.3-.5-1.7-.4z"})}),FYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M3.8 15.8h8.9v-1.5H3.8v1.5zm0-7h8.9V7.2H3.8v1.6zm14.7-2.1V10h1V5.3l-2.2.7.3 1 .9-.3zm1.2 6.1c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5H20v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3 0-.8-.3-1.1z"})}),$Ye=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:a.jsx(J,{d:"M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM14 14l5-4-5-4v8z"})}),VYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M11 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.2-.4-.2-.9-.3-1.6-.3-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.2 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.4.1-.6 0-.7-.1zM9.2 16c-.2.3-.5.6-.9.8-.3.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.6-3.9c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"})}),tle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-4-4.6l-4 4 4 4 1-1-3-3 3-3-1-1z"})}),nle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM15.4697 14.9697L18.4393 12L15.4697 9.03033L16.5303 7.96967L20.0303 11.4697L20.5607 12L20.0303 12.5303L16.5303 16.0303L15.4697 14.9697Z"})}),ole=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"})}),HYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M7 18v1h10v-1H7zm5-2c1.5 0 2.6-.4 3.4-1.2.8-.8 1.1-2 1.1-3.5V5H15v5.8c0 1.2-.2 2.1-.6 2.8-.4.7-1.2 1-2.4 1s-2-.3-2.4-1c-.4-.7-.6-1.6-.6-2.8V5H7.5v6.2c0 1.5.4 2.7 1.1 3.5.8.9 1.9 1.3 3.4 1.3z"})}),UYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"})}),Vv=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"})}),rle=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M16.375 4.5H4.625a.125.125 0 0 0-.125.125v8.254l2.859-1.54a.75.75 0 0 1 .68-.016l2.384 1.142 2.89-2.074a.75.75 0 0 1 .874 0l2.313 1.66V4.625a.125.125 0 0 0-.125-.125Zm.125 9.398-2.75-1.975-2.813 2.02a.75.75 0 0 1-.76.067l-2.444-1.17L4.5 14.583v1.792c0 .069.056.125.125.125h11.75a.125.125 0 0 0 .125-.125v-2.477ZM4.625 3C3.728 3 3 3.728 3 4.625v11.75C3 17.273 3.728 18 4.625 18h11.75c.898 0 1.625-.727 1.625-1.625V4.625C18 3.728 17.273 3 16.375 3H4.625ZM20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z",fillRule:"evenodd",clipRule:"evenodd"})}),sle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"})}),q3=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"})}),Of=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"})}),XYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M17.6 7c-.6.9-1.5 1.7-2.6 2v1h2v7h2V7h-1.4zM11 11H7V7H5v10h2v-4h4v4h2V7h-2v4z"})}),GYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M9 11.1H5v-4H3v10h2v-4h4v4h2v-10H9v4zm8 4c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6v1.5h8v-2H17z"})}),KYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.3 1.7c-.4-.4-1-.7-1.6-.8v-.1c.6-.2 1.1-.5 1.5-.9.3-.4.5-.8.5-1.3 0-.4-.1-.8-.3-1.1-.2-.3-.5-.6-.8-.8-.4-.2-.8-.4-1.2-.5-.6-.1-1.1-.2-1.6-.2-.6 0-1.3.1-1.8.3s-1.1.5-1.6.9l1.2 1.4c.4-.2.7-.4 1.1-.6.3-.2.7-.3 1.1-.3.4 0 .8.1 1.1.3.3.2.4.5.4.8 0 .4-.2.7-.6.9-.7.3-1.5.5-2.2.4v1.6c.5 0 1 0 1.5.1.3.1.7.2 1 .3.2.1.4.2.5.4s.1.4.1.6c0 .3-.2.7-.5.8-.4.2-.9.3-1.4.3s-1-.1-1.4-.3c-.4-.2-.8-.4-1.2-.7L13 15.6c.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.6 0 1.1-.1 1.6-.2.4-.1.9-.2 1.3-.5.4-.2.7-.5.9-.9.2-.4.3-.8.3-1.2 0-.6-.3-1.1-.7-1.5z"})}),YYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z"})}),ZYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.7 1.2c-.2-.3-.5-.7-.8-.9-.3-.3-.7-.5-1.1-.6-.5-.1-.9-.2-1.4-.2-.2 0-.5.1-.7.1-.2.1-.5.1-.7.2l.1-1.9h4.3V7H14l-.3 5 1 .6.5-.2.4-.1c.1-.1.3-.1.4-.1h.5c.5 0 1 .1 1.4.4.4.2.6.7.6 1.1 0 .4-.2.8-.6 1.1-.4.3-.9.4-1.4.4-.4 0-.9-.1-1.3-.3-.4-.2-.7-.4-1.1-.7 0 0-1.1 1.4-1 1.5.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.5 0 1-.1 1.5-.3s.9-.4 1.3-.7c.4-.3.7-.7.9-1.1s.3-.9.3-1.4-.1-1-.3-1.4z"})}),QYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M20.7 12.4c-.2-.3-.4-.6-.7-.9s-.6-.5-1-.6c-.4-.2-.8-.2-1.2-.2-.5 0-.9.1-1.3.3s-.8.5-1.2.8c0-.5 0-.9.2-1.4l.6-.9c.2-.2.5-.4.8-.5.6-.2 1.3-.2 1.9 0 .3.1.6.3.8.5 0 0 1.3-1.3 1.3-1.4-.4-.3-.9-.6-1.4-.8-.6-.2-1.3-.3-2-.3-.6 0-1.1.1-1.7.4-.5.2-1 .5-1.4.9-.4.4-.8 1-1 1.6-.3.7-.4 1.5-.4 2.3s.1 1.5.3 2.1c.2.6.6 1.1 1 1.5.4.4.9.7 1.4.9 1 .3 2 .3 3 0 .4-.1.8-.3 1.2-.6.3-.3.6-.6.8-1 .2-.5.3-.9.3-1.4s-.1-.9-.3-1.3zm-2 2.1c-.1.2-.3.4-.4.5-.1.1-.3.2-.5.2-.2.1-.4.1-.6.1-.2.1-.5 0-.7-.1-.2 0-.3-.2-.5-.3-.1-.2-.3-.4-.4-.6-.2-.3-.3-.7-.3-1 .3-.3.6-.5 1-.7.3-.1.7-.2 1-.2.4 0 .8.1 1.1.3.3.3.4.7.4 1.1 0 .2 0 .5-.1.7zM9 11H5V7H3v10h2v-4h4v4h2V7H9v4z"})}),JYe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M6 5V18.5911L12 13.8473L18 18.5911V5H6Z"})}),eZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"})}),ile=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})}),tZe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M4.8 11.4H2.1V9H1v6h1.1v-2.6h2.7V15h1.1V9H4.8v2.4zm1.9-1.3h1.7V15h1.1v-4.9h1.7V9H6.7v1.1zM16.2 9l-1.5 2.7L13.3 9h-.9l-.8 6h1.1l.5-4 1.5 2.8 1.5-2.8.5 4h1.1L17 9h-.8zm3.8 5V9h-1.1v6h3.6v-1H20z"})}),Qg=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})}),nZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})}),Y_=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})}),Z_=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M12.5 15v5H11v-5H4V9h7V4h1.5v5h7v6h-7Z"})}),Q_=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})}),h7=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"})}),m7=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M4 4H5.5V20H4V4ZM7 10L17 10V14L7 14V10ZM20 4H18.5V20H20V4Z"})}),oZe=a.jsxs(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[a.jsx(J,{d:"m16 15.5h-8v-1.5h8zm-7.5-2.5h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm-9-3h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2z"}),a.jsx(J,{d:"m18.5 6.5h-13a.5.5 0 0 0 -.5.5v9.5a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-9.5a.5.5 0 0 0 -.5-.5zm-13-1.5h13a2 2 0 0 1 2 2v9.5a2 2 0 0 1 -2 2h-13a2 2 0 0 1 -2-2v-9.5a2 2 0 0 1 2-2z"})]}),J_=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"m6.734 16.106 2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.158 1.093-1.028-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734Z"})}),rZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M17.5 10h-1.7l-3.7 10.5h1.7l.9-2.6h3.9l.9 2.6h1.7L17.5 10zm-2.2 6.3 1.4-4 1.4 4h-2.8zm-4.8-3.8c1.6-1.8 2.9-3.6 3.7-5.7H16V5.2h-5.8V3H8.8v2.2H3v1.5h9.6c-.7 1.6-1.8 3.1-3.1 4.6C8.6 10.2 7.8 9 7.2 8H5.6c.6 1.4 1.7 2.9 2.9 4.4l-2.4 2.4c-.3.4-.7.8-1.1 1.2l1 1 1.2-1.2c.8-.8 1.6-1.5 2.3-2.3.8.9 1.7 1.7 2.5 2.5l.6-1.5c-.7-.6-1.4-1.3-2.1-2z"})}),Af=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})}),sZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",d:"M5 11.25h3v1.5H5v-1.5zm5.5 0h3v1.5h-3v-1.5zm8.5 0h-3v1.5h3v-1.5z",clipRule:"evenodd"})}),iZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",d:"M5.25 11.25h1.5v1.5h-1.5v-1.5zm3 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5zm1.5 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5z",clipRule:"evenodd"})}),aZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M5 11.25h14v1.5H5z"})}),Qa=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})}),Xu=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"})}),ew=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"})}),cZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M12 11v1.5h8V11h-8zm-6-1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})}),M7=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"})}),t4=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zm-2.8 0H9.8V7c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3z"})}),lZe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zM9.8 7c0-1.2 1-2.2 2.2-2.2 1.2 0 2.2 1 2.2 2.2v3H9.8V7zm6.7 11.5h-9v-7h9v7z"})}),uZe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 11h-.2V9c0-1.5-1.2-2.8-2.8-2.8S9.2 7.5 9.2 9v2H9c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1h6c.6 0 1-.4 1-1v-4c0-.6-.4-1-1-1zm-1.8 0h-2.5V9c0-.7.6-1.2 1.2-1.2s1.2.6 1.2 1.2v2z"})}),dZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M11 14.5l1.1 1.1 3-3 .5-.5-.6-.6-3-3-1 1 1.7 1.7H5v1.5h7.7L11 14.5zM16.8 5h-7c-1.1 0-2 .9-2 2v1.5h1.5V7c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v10c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5v-1.5H7.8V17c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2z"})}),ale=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M18.1823 11.6392C18.1823 13.0804 17.0139 14.2487 15.5727 14.2487C14.3579 14.2487 13.335 13.4179 13.0453 12.2922L13.0377 12.2625L13.0278 12.2335L12.3985 10.377L12.3942 10.3785C11.8571 8.64997 10.246 7.39405 8.33961 7.39405C5.99509 7.39405 4.09448 9.29465 4.09448 11.6392C4.09448 13.9837 5.99509 15.8843 8.33961 15.8843C8.88499 15.8843 9.40822 15.781 9.88943 15.5923L9.29212 14.0697C8.99812 14.185 8.67729 14.2487 8.33961 14.2487C6.89838 14.2487 5.73003 13.0804 5.73003 11.6392C5.73003 10.1979 6.89838 9.02959 8.33961 9.02959C9.55444 9.02959 10.5773 9.86046 10.867 10.9862L10.8772 10.9836L11.4695 12.7311C11.9515 14.546 13.6048 15.8843 15.5727 15.8843C17.9172 15.8843 19.8178 13.9837 19.8178 11.6392C19.8178 9.29465 17.9172 7.39404 15.5727 7.39404C15.0287 7.39404 14.5066 7.4968 14.0264 7.6847L14.6223 9.20781C14.9158 9.093 15.2358 9.02959 15.5727 9.02959C17.0139 9.02959 18.1823 10.1979 18.1823 11.6392Z"})}),pZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M12 9c-.8 0-1.5.7-1.5 1.5S11.2 12 12 12s1.5-.7 1.5-1.5S12.8 9 12 9zm0-5c-3.6 0-6.5 2.8-6.5 6.2 0 .8.3 1.8.9 3.1.5 1.1 1.2 2.3 2 3.6.7 1 3 3.8 3.2 3.9l.4.5.4-.5c.2-.2 2.6-2.9 3.2-3.9.8-1.2 1.5-2.5 2-3.6.6-1.3.9-2.3.9-3.1C18.5 6.8 15.6 4 12 4zm4.3 8.7c-.5 1-1.1 2.2-1.9 3.4-.5.7-1.7 2.2-2.4 3-.7-.8-1.9-2.3-2.4-3-.8-1.2-1.4-2.3-1.9-3.3-.6-1.4-.7-2.2-.7-2.5 0-2.6 2.2-4.7 5-4.7s5 2.1 5 4.7c0 .2-.1 1-.7 2.4z"})}),g7=a.jsxs(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[a.jsx(J,{d:"m7 6.5 4 2.5-4 2.5z"}),a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"})]}),fZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M3 6v11.5h8V6H3Zm11 3h7V7.5h-7V9Zm7 3.5h-7V11h7v1.5ZM14 16h7v-1.5h-7V16Z"})}),cle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"})}),xX=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"})}),bZe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"})}),Ol=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})}),hZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M19.75 9c0-1.257-.565-2.197-1.39-2.858-.797-.64-1.827-1.017-2.815-1.247-1.802-.42-3.703-.403-4.383-.396L11 4.5V6l.177-.001c.696-.006 2.416-.02 4.028.356.887.207 1.67.518 2.216.957.52.416.829.945.829 1.688 0 .592-.167.966-.407 1.23-.255.281-.656.508-1.236.674-1.19.34-2.82.346-4.607.346h-.077c-1.692 0-3.527 0-4.942.404-.732.209-1.424.545-1.935 1.108-.526.579-.796 1.33-.796 2.238 0 1.257.565 2.197 1.39 2.858.797.64 1.827 1.017 2.815 1.247 1.802.42 3.703.403 4.383.396L13 19.5h.714V22L18 18.5 13.714 15v3H13l-.177.001c-.696.006-2.416.02-4.028-.356-.887-.207-1.67-.518-2.216-.957-.52-.416-.829-.945-.829-1.688 0-.592.167-.966.407-1.23.255-.281.656-.508 1.237-.674 1.189-.34 2.819-.346 4.606-.346h.077c1.692 0 3.527 0 4.941-.404.732-.209 1.425-.545 1.936-1.108.526-.579.796-1.33.796-2.238z"})}),S3=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"})}),mZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5A6.5 6.5 0 0 1 6.93 7.931l9.139 9.138A6.473 6.473 0 0 1 12 18.5Zm5.123-2.498a6.5 6.5 0 0 0-9.124-9.124l9.124 9.124ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Z"})}),MZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12-9.8c.4 0 .8-.3.9-.7l1.1-3h3.6l.5 1.7h1.9L13 9h-2.2l-3.4 9.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12H20V6c0-1.1-.9-2-2-2zm-6 7l1.4 3.9h-2.7L12 11z"})}),gZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M17.5 9V6a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v3H8V6a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v3h1.5Zm0 6.5V18a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-2.5H8V18a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-2.5h1.5ZM4 13h16v-1.5H4V13Z"})}),lle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M12.5 14.5h-1V16h1c2.2 0 4-1.8 4-4s-1.8-4-4-4h-1v1.5h1c1.4 0 2.5 1.1 2.5 2.5s-1.1 2.5-2.5 2.5zm-4 1.5v-1.5h-1C6.1 14.5 5 13.4 5 12s1.1-2.5 2.5-2.5h1V8h-1c-2.2 0-4 1.8-4 4s1.8 4 4 4h1zm-1-3.2h5v-1.5h-5v1.5zM18 4H9c-1.1 0-2 .9-2 2v.5h1.5V6c0-.3.2-.5.5-.5h9c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5v-.5H7v.5c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2z"})}),Ja=a.jsxs(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[a.jsx(J,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),a.jsx(J,{d:"M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"})]}),zZe=a.jsxs(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[a.jsx(J,{d:"M14.5 5.5h-7V7h7V5.5ZM7.5 9h7v1.5h-7V9Zm7 3.5h-7V14h7v-1.5Z"}),a.jsx(J,{d:"M16 2H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2ZM6 3.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V4a.5.5 0 0 1 .5-.5Z"}),a.jsx(J,{d:"M20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z"})]}),ule=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"})}),OZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm8 4a4 4 0 0 1-4-4h4V8a4 4 0 0 1 0 8Z"})}),dle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z"})}),ple=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z"})}),fle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z"})}),ble=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"})}),AZe=a.jsx(te,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M10.97 10.159a3.382 3.382 0 0 0-2.857.955l1.724 1.723-2.836 2.913L7 17h1.25l2.913-2.837 1.723 1.723a3.38 3.38 0 0 0 .606-.825c.33-.63.446-1.343.35-2.032L17 10.695 13.305 7l-2.334 3.159Z"})}),yZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"})}),as=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})}),hle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"})}),z7=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M10 4.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm2.25 7.5v-1A2.75 2.75 0 0011 8.25H7A2.75 2.75 0 004.25 11v1h1.5v-1c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v1h1.5zM4 20h9v-1.5H4V20zm16-4H4v-1.5h16V16z",fillRule:"evenodd",clipRule:"evenodd"})}),O7=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M20 4H4v1.5h16V4zm-2 9h-3c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3zM4 9.5h9V8H4v1.5zM9 13H6c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3z",fillRule:"evenodd",clipRule:"evenodd"})}),vZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M4 6h12V4.5H4V6Zm16 4.5H4V9h16v1.5ZM4 15h16v-1.5H4V15Zm0 4.5h16V18H4v1.5Z"})}),xZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M14 10.1V4c0-.6-.4-1-1-1H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1zm-1.5-.5H6.7l-1.2 1.2V4.5h7v5.1zM19 12h-8c-.6 0-1 .4-1 1v6.1c0 .6.4 1 1 1h5.7l1.8 1.8c.1.2.4.3.6.3.1 0 .2 0 .3-.1.4-.1.6-.5.6-.8V13c0-.6-.4-1-1-1zm-.5 7.8l-1.2-1.2h-5.8v-5.1h7v6.3z"})}),mle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-2.2 6.6H7l1.6-2.2c.3-.4.5-.7.6-.9.1-.2.2-.4.2-.5 0-.2-.1-.3-.1-.4-.1-.1-.2-.1-.4-.1s-.4 0-.6.1c-.3.1-.5.3-.7.4l-.2.2-.2-1.2.1-.1c.3-.2.5-.3.8-.4.3-.1.6-.1.9-.1.3 0 .6.1.9.2.2.1.4.3.6.5.1.2.2.5.2.7 0 .3-.1.6-.2.9-.1.3-.4.7-.7 1.1l-.5.6h1.6v1.2z"})}),_Ze=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-.5 6.6H6.7l-1.2 1.2v-6.3h7v5.1z"})}),A7=a.jsxs(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[a.jsx(J,{d:"M11.696 13.972c.356-.546.599-.958.728-1.235a1.79 1.79 0 00.203-.783c0-.264-.077-.47-.23-.618-.148-.153-.354-.23-.618-.23-.295 0-.569.07-.82.212a3.413 3.413 0 00-.738.571l-.147-1.188c.289-.234.59-.41.903-.526.313-.117.66-.175 1.041-.175.375 0 .695.08.959.24.264.153.46.362.59.626.135.265.203.556.203.876 0 .362-.08.734-.24 1.115-.154.381-.427.87-.82 1.466l-.756 1.152H14v1.106h-4l1.696-2.609z"}),a.jsx(J,{d:"M19.5 7h-15v12a.5.5 0 00.5.5h14a.5.5 0 00.5-.5V7zM3 7V5a2 2 0 012-2h14a2 2 0 012 2v14a2 2 0 01-2 2H5a2 2 0 01-2-2V7z"})]}),wZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M8.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H4v-3h4.001ZM4 20h9v-1.5H4V20Zm16-4H4v-1.5h16V16ZM13.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H9v-3h4.001Z"})}),Mle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"})}),y7=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M18 5.5H6a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5V6a.5.5 0 0 0-.5-.5ZM6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm1 5h1.5v1.5H7V9Zm1.5 4.5H7V15h1.5v-1.5ZM10 9h7v1.5h-7V9Zm7 4.5h-7V15h7v-1.5Z"})}),kZe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M8.1 12.3c.1.1.3.3.5.3.2.1.4.1.6.1.2 0 .4 0 .6-.1.2-.1.4-.2.5-.3l3-3c.3-.3.5-.7.5-1.1 0-.4-.2-.8-.5-1.1L9.7 3.5c-.1-.2-.3-.3-.5-.3H5c-.4 0-.8.4-.8.8v4.2c0 .2.1.4.2.5l3.7 3.6zM5.8 4.8h3.1l3.4 3.4v.1l-3 3 .5.5-.7-.5-3.3-3.4V4.8zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"})}),gle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"})}),zle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"})}),qZe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 16.5h6V15H7v1.5zm4-4h6V11h-6v1.5zM9 11H7v1.5h2V11zm6 5.5h2V15h-2v1.5z"})}),SZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm11.53-1.47-1.06-1.06L11 12.94l-1.47-1.47-1.06 1.06L11 15.06l4.53-4.53Z"})}),CZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"})}),RZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"})}),WZe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"})}),Ole=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M4 13.5h6v-3H4v3zm8 0h3v-3h-3v3zm5-3v3h3v-3h-3z"})}),Ale=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M5 13.5h3v-3H5v3zm5 0h3v-3h-3v3zM17 9l-1 1 2 2-2 2 1 1 3-3-3-3z"})}),yle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M4 13.5h6v-3H4v3zm8.2-2.5.8-.3V14h1V9.3l-2.2.7.4 1zm7.1-1.2c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3-.1-.8-.3-1.1z"})}),vle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M16 10.5v3h3v-3h-3zm-5 3h3v-3h-3v3zM7 9l-3 3 3 3 1-1-2-2 2-2-1-1z"})}),TZe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M13 6v6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H13zm-9 6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H4v6z"})}),xle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"})}),EZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"m13.955 20.748 8-17.5-.91-.416L19.597 6H13.5v1.5h5.411l-1.6 3.5H13.5v1.5h3.126l-1.6 3.5H13.5l.028 1.5h.812l-1.295 2.832.91.416ZM17.675 16l-.686 1.5h4.539L21.5 16h-3.825Zm2.286-5-.686 1.5H21.5V11h-1.54ZM2 12c0 3.58 2.42 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.48 0-4.5-1.52-4.5-4S5.52 7.5 8 7.5h3.5V6H8c-3.58 0-6 2.42-6 6Z"})}),tw=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M7 11.5h10V13H7z"})}),BZe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M7 18h4.5v1.5h-7v-7H6V17L17 6h-4.5V4.5h7v7H18V7L7 18Z"})}),_le=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z"})}),Gu=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})}),NZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"})}),wle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M5 10.2h-.8v1.5H5c1.9 0 3.8.8 5.1 2.1 1.4 1.4 2.1 3.2 2.1 5.1v.8h1.5V19c0-2.3-.9-4.5-2.6-6.2-1.6-1.6-3.8-2.6-6.1-2.6zm10.4-1.6C12.6 5.8 8.9 4.2 5 4.2h-.8v1.5H5c3.5 0 6.9 1.4 9.4 3.9s3.9 5.8 3.9 9.4v.8h1.5V19c0-3.9-1.6-7.6-4.4-10.4zM4 20h3v-3H4v3z"})}),nw=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})}),LZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm9 1V8h-1.5v3.5h-2V13H13Z"})}),jZe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M4.5 12.5v4H3V7h1.5v3.987h15V7H21v9.5h-1.5v-4h-15Z"})}),kle=a.jsxs(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[a.jsx(J,{d:"m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"}),a.jsx(J,{d:"m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"})]}),PZe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"})}),qle=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M9 11.8l6.1-4.5c.1.4.4.7.9.7h2c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-2c-.6 0-1 .4-1 1v.4l-6.4 4.8c-.2-.1-.4-.2-.6-.2H6c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h2c.2 0 .4-.1.6-.2l6.4 4.8v.4c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1h-2c-.5 0-.8.3-.9.7L9 12.2v-.4z"})}),Sle=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M16 4.2v1.5h2.5v12.5H16v1.5h4V4.2h-4zM4.2 19.8h4v-1.5H5.8V5.8h2.5V4.2h-4l-.1 15.6zm5.1-3.1l1.4.6 4-10-1.4-.6-4 10z"})}),IZe=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/SVG",children:a.jsx(J,{d:"M17.192 6.75L15.47 5.03l1.06-1.06 3.537 3.53-3.537 3.53-1.06-1.06 1.723-1.72h-3.19c-.602 0-.993.202-1.28.498-.309.319-.538.792-.695 1.383-.13.488-.222 1.023-.296 1.508-.034.664-.116 1.413-.303 2.117-.193.721-.513 1.467-1.068 2.04-.575.594-1.359.954-2.357.954H4v-1.5h4.003c.601 0 .993-.202 1.28-.498.308-.319.538-.792.695-1.383.149-.557.216-1.093.288-1.662l.039-.31a9.653 9.653 0 0 1 .272-1.653c.193-.722.513-1.467 1.067-2.04.576-.594 1.36-.954 2.358-.954h3.19zM8.004 6.75c.8 0 1.46.23 1.988.628a6.24 6.24 0 0 0-.684 1.396 1.725 1.725 0 0 0-.024-.026c-.287-.296-.679-.498-1.28-.498H4v-1.5h4.003zM12.699 14.726c-.161.459-.38.94-.684 1.396.527.397 1.188.628 1.988.628h3.19l-1.722 1.72 1.06 1.06L20.067 16l-3.537-3.53-1.06 1.06 1.723 1.72h-3.19c-.602 0-.993-.202-1.28-.498a1.96 1.96 0 0 1-.024-.026z"})}),DZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 1.5c4.1 0 7.5 3.4 7.5 7.5v.1c-1.4-.8-3.3-1.7-3.4-1.8-.2-.1-.5-.1-.8.1l-2.9 2.1L9 11.3c-.2-.1-.4 0-.6.1l-3.7 2.2c-.1-.5-.2-1-.2-1.5 0-4.2 3.4-7.6 7.5-7.6zm0 15c-3.1 0-5.7-1.9-6.9-4.5l3.7-2.2 3.5 1.2c.2.1.5 0 .7-.1l2.9-2.1c.8.4 2.5 1.2 3.5 1.9-.9 3.3-3.9 5.8-7.4 5.8z"})}),Cle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z"})}),FZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",d:"M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",clipRule:"evenodd"})}),$Ze=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"})}),VZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M5 4h14v11H5V4Zm11 16H8v-1.5h8V20Z"})}),Rle=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M20 12a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 0 1-6.5 6.5v-13a6.5 6.5 0 0 1 6.5 6.5Z"})}),v7=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M16 5.5H8V4h8v1.5ZM16 20H8v-1.5h8V20ZM5 9h14v6H5V9Z"})}),HZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M16.9 18.3l.8-1.2c.4-.6.7-1.2.9-1.6.2-.4.3-.8.3-1.2 0-.3-.1-.7-.2-1-.1-.3-.4-.5-.6-.7-.3-.2-.6-.3-1-.3s-.8.1-1.1.2c-.3.1-.7.3-1 .6l.2 1.3c.3-.3.5-.5.8-.6s.6-.2.9-.2c.3 0 .5.1.7.2.2.2.2.4.2.7 0 .3-.1.5-.2.8-.1.3-.4.7-.8 1.3L15 19.4h4.3v-1.2h-2.4zM14.1 7.2h-2L9.5 11 6.9 7.2h-2l3.6 5.3L4.7 18h2l2.7-4 2.7 4h2l-3.8-5.5 3.8-5.3z"})}),UZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M16.9 10.3l.8-1.3c.4-.6.7-1.2.9-1.6.2-.4.3-.8.3-1.2 0-.3-.1-.7-.2-1-.2-.2-.4-.4-.7-.6-.3-.2-.6-.3-1-.3s-.8.1-1.1.2c-.3.1-.7.3-1 .6l.1 1.3c.3-.3.5-.5.8-.6s.6-.2.9-.2c.3 0 .5.1.7.2.2.2.2.4.2.7 0 .3-.1.5-.2.8-.1.3-.4.7-.8 1.3l-1.8 2.8h4.3v-1.2h-2.2zm-2.8-3.1h-2L9.5 11 6.9 7.2h-2l3.6 5.3L4.7 18h2l2.7-4 2.7 4h2l-3.8-5.5 3.8-5.3z"})}),Wle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M5 17.7c.4.5.8.9 1.2 1.2l1.1-1.4c-.4-.3-.7-.6-1-1L5 17.7zM5 6.3l1.4 1.1c.3-.4.6-.7 1-1L6.3 5c-.5.4-.9.8-1.3 1.3zm.1 7.8l-1.7.5c.2.6.4 1.1.7 1.6l1.5-.8c-.2-.4-.4-.8-.5-1.3zM4.8 12v-.7L3 11.1v1.8l1.7-.2c.1-.2.1-.5.1-.7zm3 7.9c.5.3 1.1.5 1.6.7l.5-1.7c-.5-.1-.9-.3-1.3-.5l-.8 1.5zM19 6.3c-.4-.5-.8-.9-1.2-1.2l-1.1 1.4c.4.3.7.6 1 1L19 6.3zm-.1 3.6l1.7-.5c-.2-.6-.4-1.1-.7-1.6l-1.5.8c.2.4.4.8.5 1.3zM5.6 8.6l-1.5-.8c-.3.5-.5 1-.7 1.6l1.7.5c.1-.5.3-.9.5-1.3zm2.2-4.5l.8 1.5c.4-.2.8-.4 1.3-.5l-.5-1.7c-.6.2-1.1.4-1.6.7zm8.8 13.5l1.1 1.4c.5-.4.9-.8 1.2-1.2l-1.4-1.1c-.2.3-.5.6-.9.9zm1.8-2.2l1.5.8c.3-.5.5-1.1.7-1.6l-1.7-.5c-.1.5-.3.9-.5 1.3zm2.6-4.3l-1.7.2v1.4l1.7.2V12v-.9zM11.1 3l.2 1.7h1.4l.2-1.7h-1.8zm3 2.1c.5.1.9.3 1.3.5l.8-1.5c-.5-.3-1.1-.5-1.6-.7l-.5 1.7zM12 19.2h-.7l-.2 1.8h1.8l-.2-1.7c-.2-.1-.5-.1-.7-.1zm2.1-.3l.5 1.7c.6-.2 1.1-.4 1.6-.7l-.8-1.5c-.4.2-.8.4-1.3.5z"})}),XZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:a.jsx(J,{d:"M14.08 12.864V9.216h3.648V7.424H14.08V3.776h-1.728v3.648H8.64v1.792h3.712v3.648zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm0 5.12H1.28v3.84H6.4V6.4zm0 5.12H1.28v3.84H6.4v-3.84zM19.2 1.28H7.68v14.08H19.2V1.28z"})}),GZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:a.jsx(J,{d:"M6.4 3.776v3.648H2.752v1.792H6.4v3.648h1.728V9.216h3.712V7.424H8.128V3.776zM0 17.92V0h20.48v17.92H0zM12.8 1.28H1.28v14.08H12.8V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.12h-5.12v3.84h5.12V6.4zm0 5.12h-5.12v3.84h5.12v-3.84z"})}),KZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:a.jsx(J,{d:"M6.4 9.98L7.68 8.7v-.256L6.4 7.164V9.98zm6.4-1.532l1.28-1.28V9.92L12.8 8.64v-.192zm7.68 9.472V0H0v17.92h20.48zm-1.28-2.56h-5.12v-1.024l-.256.256-1.024-1.024v1.792H7.68v-1.792l-1.024 1.024-.256-.256v1.024H1.28V1.28H6.4v2.368l.704-.704.576.576V1.216h5.12V3.52l.96-.96.32.32V1.216h5.12V15.36zm-5.76-2.112l-3.136-3.136-3.264 3.264-1.536-1.536 3.264-3.264L5.632 5.44l1.536-1.536 3.136 3.136 3.2-3.2 1.536 1.536-3.2 3.2 3.136 3.136-1.536 1.536z"})}),Tle=a.jsxs(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M20 9.484h-8.889v-1.5H20v1.5Zm0 7h-4.889v-1.5H20v1.5Zm-14 .032a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 1a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),a.jsx(J,{d:"M13 15.516a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM8 8.484a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})]}),YZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:a.jsx(J,{d:"M13.824 10.176h-2.88v-2.88H9.536v2.88h-2.88v1.344h2.88v2.88h1.408v-2.88h2.88zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm6.4 0H7.68v3.84h5.12V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.056H1.28v9.024H19.2V6.336z"})}),ZZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:a.jsx(J,{d:"M6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84zM6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84z"})}),QZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:a.jsx(J,{d:"M17.728 11.456L14.592 8.32l3.2-3.2-1.536-1.536-3.2 3.2L9.92 3.648 8.384 5.12l3.2 3.2-3.264 3.264 1.536 1.536 3.264-3.264 3.136 3.136 1.472-1.536zM0 17.92V0h20.48v17.92H0zm19.2-6.4h-.448l-1.28-1.28H19.2V6.4h-1.792l1.28-1.28h.512V1.28H1.28v3.84h6.208l1.28 1.28H1.28v3.84h7.424l-1.28 1.28H1.28v3.84H19.2v-3.84z"})}),JZe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M4 6v11.5h16V6H4zm1.5 1.5h6V11h-6V7.5zm0 8.5v-3.5h6V16h-6zm13 0H13v-3.5h5.5V16zM13 11V7.5h5.5V11H13z"})}),x7=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})}),Rh=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})}),eQe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M6.08 10.103h2.914L9.657 12h1.417L8.23 4H6.846L4 12h1.417l.663-1.897Zm1.463-4.137.994 2.857h-2l1.006-2.857ZM11 16H4v-1.5h7V16Zm1 0h8v-1.5h-8V16Zm-4 4H4v-1.5h4V20Zm7-1.5V20H9v-1.5h6Z"})}),Ele=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",d:"M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})}),Ble=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})}),Nle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})}),_X=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z"})}),tQe=a.jsxs(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[a.jsx(J,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),a.jsx(J,{d:"m16.5 19.5h-9v-1.5h9z"})]}),nQe=a.jsxs(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[a.jsx(J,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),a.jsx(J,{d:"m4.5 7.5v9h1.5v-9z"}),a.jsx(J,{d:"m18 7.5v9h1.5v-9z"})]}),oQe=a.jsxs(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[a.jsx(J,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),a.jsx(J,{d:"m4.5 16.5v-9h1.5v9z"})]}),rQe=a.jsxs(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[a.jsx(J,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),a.jsx(J,{d:"m18 16.5v-9h1.5v9z"})]}),sQe=a.jsxs(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[a.jsx(J,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),a.jsx(J,{d:"m16.5 6h-9v-1.5h9z"})]}),iQe=a.jsxs(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[a.jsx(J,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),a.jsx(J,{d:"m7.5 6h9v-1.5h-9z"}),a.jsx(J,{d:"m7.5 19.5h9v-1.5h-9z"})]}),aQe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M12.9 6h-2l-4 11h1.9l1.1-3h4.2l1.1 3h1.9L12.9 6zm-2.5 6.5l1.5-4.9 1.7 4.9h-3.2z"})}),cQe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M8.2 14.4h3.9L13 17h1.7L11 6.5H9.3L5.6 17h1.7l.9-2.6zm2-5.5 1.4 4H8.8l1.4-4zm7.4 7.5-1.3.8.8 1.4H5.5V20h14.3l-2.2-3.6z"})}),lQe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M7 5.6v1.7l2.6.9v3.9L7 13v1.7L17.5 11V9.3L7 5.6zm4.2 6V8.8l4 1.4-4 1.4zm-5.7 5.6V5.5H4v14.3l3.6-2.2-.8-1.3-1.3.9z"})}),wX=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"})}),Jg=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"m4 5.5h2v6.5h1.5v-6.5h2v-1.5h-5.5zm16 10.5h-16v-1.5h16zm-7 4h-9v-1.5h9z"})}),uQe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"})}),C3=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"})}),Lle=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"})}),dQe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M18 4h-7c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7zm-5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h1V9H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-1h-1.5v1z"})}),FM=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8h1.5c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1z"})}),Wh=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{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"})}),ow=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z"})}),lW=a.jsx(te,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"})}),pQe=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:a.jsx(J,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"})}),fQe={name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"},_7="…",np={auto:"auto",head:"head",middle:"middle",tail:"tail",none:"none"},bQe={ellipsis:_7,ellipsizeMode:np.auto,limit:0,numberOfLines:0};function hQe(e,t,n,o){if(typeof e!="string")return"";const r=e.length,s=~~t,i=~~n,c=_s(o)?o:_7;return s===0&&i===0||s>=r||i>=r||s+i>=r?e:i===0?e.slice(0,s)+c:e.slice(0,s)+c+e.slice(r-i)}function mQe(e="",t){const n={...bQe,...t},{ellipsis:o,ellipsizeMode:r,limit:s}=n;if(r===np.none)return e;let i,c;switch(r){case np.head:i=0,c=s;break;case np.middle:i=Math.floor(s/2),c=Math.floor(s/2);break;default:i=s,c=0}return r!==np.auto?hQe(e,i,c,o):e}function jle(e){const{className:t,children:n,ellipsis:o=_7,ellipsizeMode:r=np.auto,limit:s=0,numberOfLines:i=0,...c}=Ut(e,"Truncate"),l=x0();let u;typeof n=="string"?u=n:typeof n=="number"&&(u=n.toString());const d=u?mQe(u,{ellipsis:o,ellipsizeMode:r,limit:s,numberOfLines:i}):n,p=!!u&&r===np.auto,f=O.useMemo(()=>l(p&&!i&&fQe,p&&!!i&&ke(i===1?"word-break: break-all;":""," -webkit-box-orient:vertical;-webkit-line-clamp:",i,";display:-webkit-box;overflow:hidden;",""),t),[t,l,i,p]);return{...c,className:f,children:d}}function MQe(e,t){const n=jle(e);return a.jsx(C0,{as:"span",...n,ref:t})}const Ho=Qt(MQe,"Truncate"),Ple=ke("color:",qe.gray[900],";line-height:",Se.fontLineHeightBase,";margin:0;text-wrap:balance;text-wrap:pretty;",""),Ile={name:"4zleql",styles:"display:block"},gQe=ke("color:",qe.alert.green,";",""),Dle=ke("color:",qe.alert.red,";",""),Fle=ke("color:",qe.gray[700],";",""),$le=ke("mark{background:",qe.alert.yellow,";border-radius:",Se.radiusSmall,";box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset,0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset;}",""),zQe={name:"50zrmy",styles:"text-transform:uppercase"},OQe=Object.freeze(Object.defineProperty({__proto__:null,Text:Ple,block:Ile,destructive:Dle,highlighterText:$le,muted:Fle,positive:gQe,upperCase:zQe},Symbol.toStringTag,{value:"Module"}));var Vle={exports:{}};(function(e){e.exports=function(t){var n={};function o(r){if(n[r])return n[r].exports;var s=n[r]={exports:{},id:r,loaded:!1};return t[r].call(s.exports,s,s.exports,o),s.loaded=!0,s.exports}return o.m=t,o.c=n,o.p="",o(0)}([function(t,n,o){t.exports=o(1)},function(t,n,o){Object.defineProperty(n,"__esModule",{value:!0});var r=o(2);Object.defineProperty(n,"combineChunks",{enumerable:!0,get:function(){return r.combineChunks}}),Object.defineProperty(n,"fillInChunks",{enumerable:!0,get:function(){return r.fillInChunks}}),Object.defineProperty(n,"findAll",{enumerable:!0,get:function(){return r.findAll}}),Object.defineProperty(n,"findChunks",{enumerable:!0,get:function(){return r.findChunks}})},function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.findAll=function(u){var d=u.autoEscape,p=u.caseSensitive,f=p===void 0?!1:p,b=u.findChunks,h=b===void 0?r:b,g=u.sanitize,z=u.searchWords,y=u.textToHighlight;return s({chunksToHighlight:o({chunks:h({autoEscape:d,caseSensitive:f,sanitize:g,searchWords:z,textToHighlight:y})}),totalLength:y?y.length:0})};var o=n.combineChunks=function(u){var d=u.chunks;return d=d.sort(function(p,f){return p.start-f.start}).reduce(function(p,f){if(p.length===0)return[f];var b=p.pop();if(f.start<=b.end){var h=Math.max(b.end,f.end);p.push({highlight:!1,start:b.start,end:h})}else p.push(b,f);return p},[]),d},r=function(u){var d=u.autoEscape,p=u.caseSensitive,f=u.sanitize,b=f===void 0?i:f,h=u.searchWords,g=u.textToHighlight;return g=b(g),h.filter(function(z){return z}).reduce(function(z,y){y=b(y),d&&(y=c(y));for(var x=new RegExp(y,p?"g":"gi"),v=void 0;v=x.exec(g);){var M=v.index,A=x.lastIndex;A>M&&z.push({highlight:!1,start:M,end:A}),v.index===x.lastIndex&&x.lastIndex++}return z},[])};n.findChunks=r;var s=n.fillInChunks=function(u){var d=u.chunksToHighlight,p=u.totalLength,f=[],b=function(z,y,x){y-z>0&&f.push({start:z,end:y,highlight:x})};if(d.length===0)b(0,p,!1);else{var h=0;d.forEach(function(g){b(h,g.start,!1),b(g.start,g.end,!0),h=g.end}),b(h,p,!1)}return f};function i(l){return l}function c(l){return l.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}}])})(Vle);var AQe=Vle.exports;const yQe=e=>{const t={};for(const n in e)t[n.toLowerCase()]=e[n];return t},vQe=fs(yQe);function xQe({activeClassName:e="",activeIndex:t=-1,activeStyle:n,autoEscape:o,caseSensitive:r=!1,children:s,findChunks:i,highlightClassName:c="",highlightStyle:l={},highlightTag:u="mark",sanitize:d,searchWords:p=[],unhighlightClassName:f="",unhighlightStyle:b}){if(!s)return null;if(typeof s!="string")return s;const h=s,g=AQe.findAll({autoEscape:o,caseSensitive:r,findChunks:i,sanitize:d,searchWords:p,textToHighlight:h}),z=u;let y=-1,x="",v;return g.map((A,_)=>{const w=h.substr(A.start,A.end-A.start);if(A.highlight){y++;let k;typeof c=="object"?r?k=c[w]:(c=vQe(c),k=c[w.toLowerCase()]):k=c;const q=y===+t;x=`${k} ${q?e:""}`,v=q===!0&&n!==null?Object.assign({},l,n):l;const S={children:w,className:x,key:_,style:v};return typeof z!="string"&&(S.highlightIndex=y),O.createElement(z,S)}return O.createElement("span",{children:w,className:f,key:_,style:b})})}const uW=13,kX={body:uW,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20},_Qe=[1,2,3,4,5,6].flatMap(e=>[e,e.toString()]);function w7(e=uW){if(e in kX)return w7(kX[e]);if(typeof e!="number"){const n=parseFloat(e);if(Number.isNaN(n))return e;e=n}return`calc(${`(${e} / ${uW})`} * ${Se.fontSize})`}function wQe(e=3){if(!_Qe.includes(e))return w7(e);const t=`fontSizeH${e}`;return Se[t]}function kQe(e,t){if(t)return t;if(!e)return;let n=`calc(${Se.controlHeight} + ${Ce(2)})`;switch(e){case"large":n=`calc(${Se.controlHeightLarge} + ${Ce(2)})`;break;case"small":n=`calc(${Se.controlHeightSmall} + ${Ce(2)})`;break;case"xSmall":n=`calc(${Se.controlHeightXSmall} + ${Ce(2)})`;break}return n}var qQe={name:"50zrmy",styles:"text-transform:uppercase"};function Hle(e){const{adjustLineHeightForInnerControls:t,align:n,children:o,className:r,color:s,ellipsizeMode:i,isDestructive:c=!1,display:l,highlightEscape:u=!1,highlightCaseSensitive:d=!1,highlightWords:p,highlightSanitize:f,isBlock:b=!1,letterSpacing:h,lineHeight:g,optimizeReadabilityFor:z,size:y,truncate:x=!1,upperCase:v=!1,variant:M,weight:A=Se.fontWeight,..._}=Ut(e,"Text");let w=o;const k=Array.isArray(p),q=y==="caption";if(k){if(typeof o!="string")throw new TypeError("`children` of `Text` must only be `string` types when `highlightWords` is defined");w=xQe({autoEscape:u,children:o,caseSensitive:d,searchWords:p,sanitize:f})}const S=x0(),C=O.useMemo(()=>{const N={},E=kQe(t,g);if(N.Base=ke({color:s,display:l,fontSize:w7(y),fontWeight:A,lineHeight:E,letterSpacing:h,textAlign:n},"",""),N.upperCase=qQe,N.optimalTextColor=null,z){const L=PVe(z)==="dark";N.optimalTextColor=ke(L?{color:qe.gray[900]}:{color:qe.white},"","")}return S(Ple,N.Base,N.optimalTextColor,c&&Dle,!!k&&$le,b&&Ile,q&&Fle,M&&OQe[M],v&&N.upperCase,r)},[t,n,r,s,S,l,b,q,c,k,h,g,z,y,v,M,A]);let T;x===!0&&(T="auto"),x===!1&&(T="none");const W={..._,className:C,children:o,ellipsizeMode:i||T},B=jle(W);return!x&&Array.isArray(o)&&(w=O.Children.map(o,N=>typeof N!="object"||N===null||!("props"in N)?N:lae(N,["Link"])?O.cloneElement(N,{size:N.props.size||"inherit"}):N)),{...B,children:x?B.children:w}}function SQe(e,t){const n=Hle(e);return a.jsx(C0,{as:"span",...n,ref:t})}const l0=Qt(SQe,"Text"),Ule=we("span",{target:"em5sgkm8"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),Xle=we("span",{target:"em5sgkm7"})({name:"jgf79h",styles:"align-items:center;align-self:stretch;box-sizing:border-box;display:flex"}),CQe=({disabled:e,isBorderless:t})=>t?"transparent":e?qe.ui.borderDisabled:qe.ui.border,R3=we("div",{target:"em5sgkm6"})("&&&{box-sizing:border-box;border-color:",CQe,";border-radius:inherit;border-style:solid;border-width:1px;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",dn({paddingLeft:2}),";}"),RQe=we(Q0,{target:"em5sgkm5"})("box-sizing:border-box;position:relative;border-radius:",Se.radiusSmall,";padding-top:0;&:focus-within:not( :has( :is( ",Ule,", ",Xle," ):focus-within ) ){",R3,"{border-color:",qe.ui.borderFocus,";box-shadow:",Se.controlBoxShadowFocus,";outline:2px solid transparent;outline-offset:-2px;}}"),WQe=({disabled:e})=>{const t=e?qe.ui.backgroundDisabled:qe.ui.background;return ke({backgroundColor:t},"","")};var TQe={name:"1d3w5wq",styles:"width:100%"};const EQe=({__unstableInputWidth:e,labelPosition:t})=>e?t==="side"?"":ke(t==="edge"?{flex:`0 0 ${e}`}:{width:e},"",""):TQe,BQe=we("div",{target:"em5sgkm4"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",WQe," ",EQe,";"),NQe=({disabled:e})=>e?ke({color:qe.ui.textDisabled},"",""):"",k7=({inputSize:e})=>{const t={default:"13px",small:"11px",compact:"13px","__unstable-large":"13px"},n=t[e]||t.default,o="16px";return n?ke("font-size:",o,";@media ( min-width: 600px ){font-size:",n,";}",""):""},Gle=({inputSize:e,__next40pxDefaultSize:t})=>{const n={default:{height:40,lineHeight:1,minHeight:40,paddingLeft:Se.controlPaddingX,paddingRight:Se.controlPaddingX},small:{height:24,lineHeight:1,minHeight:24,paddingLeft:Se.controlPaddingXSmall,paddingRight:Se.controlPaddingXSmall},compact:{height:32,lineHeight:1,minHeight:32,paddingLeft:Se.controlPaddingXSmall,paddingRight:Se.controlPaddingXSmall},"__unstable-large":{height:40,lineHeight:1,minHeight:40,paddingLeft:Se.controlPaddingX,paddingRight:Se.controlPaddingX}};return t||(n.default=n.compact),n[e]||n.default},LQe=e=>ke(Gle(e),"",""),jQe=({paddingInlineStart:e,paddingInlineEnd:t})=>ke({paddingInlineStart:e,paddingInlineEnd:t},"",""),PQe=({isDragging:e,dragCursor:t})=>{let n,o;return e&&(n=ke("cursor:",t,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}","")),e&&t&&(o=ke("&:active{cursor:",t,";}","")),ke(n," ",o,";","")},rw=we("input",{target:"em5sgkm3"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",qe.theme.foreground,";display:block;font-family:inherit;margin:0;outline:none;width:100%;",PQe," ",NQe," ",k7," ",LQe," ",jQe," &::-webkit-input-placeholder{line-height:normal;}}"),IQe=we(l0,{target:"em5sgkm2"})("&&&{",rae,";box-sizing:border-box;display:block;padding-top:0;padding-bottom:0;max-width:100%;z-index:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}"),DQe=e=>a.jsx(IQe,{...e,as:"label"}),Kle=we(Ht,{target:"em5sgkm1"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"}),FQe=({variant:e="default",size:t,__next40pxDefaultSize:n,isPrefix:o})=>{const{paddingLeft:r}=Gle({inputSize:t,__next40pxDefaultSize:n}),s=o?"paddingInlineStart":"paddingInlineEnd";return ke(e==="default"?{[s]:r}:{display:"flex",[s]:r-4},"","")},Yle=we("div",{target:"em5sgkm0"})(FQe,";");function $Qe({disabled:e=!1,isBorderless:t=!1}){return a.jsx(R3,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:e,isBorderless:t})}const VQe=O.memo($Qe);function HQe({children:e,hideLabelFromVision:t,htmlFor:n,...o}){return e?t?a.jsx(Kt,{as:"label",htmlFor:n,children:e}):a.jsx(Kle,{children:a.jsx(DQe,{htmlFor:n,...o,children:e})}):null}function Md(e){const{__next36pxDefaultSize:t,__next40pxDefaultSize:n,...o}=e;return{...o,__next40pxDefaultSize:n??t}}function UQe(e){const n=`input-base-control-${He(Zle)}`;return e||n}function XQe(e){const t={};switch(e){case"top":t.direction="column",t.expanded=!1,t.gap=0;break;case"bottom":t.direction="column-reverse",t.expanded=!1,t.gap=0;break;case"edge":t.justify="space-between";break}return t}function Zle(e,t){const{__next40pxDefaultSize:n,__unstableInputWidth:o,children:r,className:s,disabled:i=!1,hideLabelFromVision:c=!1,labelPosition:l,id:u,isBorderless:d=!1,label:p,prefix:f,size:b="default",suffix:h,...g}=Md(Ut(e,"InputBase")),z=UQe(u),y=c||!p,x=O.useMemo(()=>({InputControlPrefixWrapper:{__next40pxDefaultSize:n,size:b},InputControlSuffixWrapper:{__next40pxDefaultSize:n,size:b}}),[n,b]);return a.jsxs(RQe,{...g,...XQe(l),className:s,gap:2,ref:t,children:[a.jsx(HQe,{className:"components-input-control__label",hideLabelFromVision:c,labelPosition:l,htmlFor:z,children:p}),a.jsxs(BQe,{__unstableInputWidth:o,className:"components-input-control__container",disabled:i,hideLabel:y,labelPosition:l,children:[a.jsxs(O3,{value:x,children:[f&&a.jsx(Ule,{className:"components-input-control__prefix",children:f}),r,h&&a.jsx(Xle,{className:"components-input-control__suffix",children:h})]}),a.jsx(VQe,{disabled:i,isBorderless:d})]})]})}const q7=Qt(Zle,"InputBase");function GQe(e,t,n){return Math.max(t,Math.min(e,n))}const Eo={toVector(e,t){return e===void 0&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function qX(e,t,n){return t===0||Math.abs(t)===1/0?Math.pow(e,n*5):e*t*n/(t+n*e)}function SX(e,t,n,o=.15){return o===0?GQe(e,t,n):en?+qX(e-n,n-t,o)+n:e}function KQe(e,[t,n],[o,r]){const[[s,i],[c,l]]=e;return[SX(t,s,i,o),SX(n,c,l,r)]}function YQe(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZQe(e){var t=YQe(e,"string");return typeof t=="symbol"?t:String(t)}function zr(e,t,n){return t=ZQe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function Un(e){for(var t=1;t{var n,o;return t.target===e.currentTarget||((n=e.currentTarget)===null||n===void 0||(o=n.contains)===null||o===void 0?void 0:o.call(n,t.target))})}function sJe(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function eue(e){return sw(e)?sJe(e)[0]:e}function iJe(e){return rJe(e).map(t=>t.identifier)}function $q(e){const t=eue(e);return sw(e)?t.identifier:t.pointerId}function WX(e){const t=eue(e);return[t.clientX,t.clientY]}function aJe(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:o,metaKey:r,ctrlKey:s}=e;Object.assign(t,{shiftKey:n,altKey:o,metaKey:r,ctrlKey:s})}return t}function Hv(e,...t){return typeof e=="function"?e(...t):e}function cJe(){}function lJe(...e){return e.length===0?cJe:e.length===1?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function TX(e,t){return Object.assign({},t,e||{})}const uJe=32;class dJe{constructor(t,n,o){this.ctrl=t,this.args=n,this.key=o,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:n,ingKey:o,args:r}=this;n[o]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=r,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const n=this.state,o=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=t.target,n.currentTarget=t.currentTarget,n.lastOffset=o.from?Hv(o.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=t.timeStamp)}computeValues(t){const n=this.state;n._values=t,n.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:n,config:o,shared:r}=this;n.args=this.args;let s=0;if(t&&(n.event=t,o.preventDefault&&t.cancelable&&n.event.preventDefault(),n.type=t.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,aJe(t)),r.down=r.pressed=r.buttons%2===1||r.touches>0,s=t.timeStamp-n.timeStamp,n.timeStamp=t.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const _=n._delta.map(Math.abs);Eo.addTo(n._distance,_)}this.axisIntent&&this.axisIntent(t);const[i,c]=n._movement,[l,u]=o.threshold,{_step:d,values:p}=n;if(o.hasCustomTransform?(d[0]===!1&&(d[0]=Math.abs(i)>=l&&p[0]),d[1]===!1&&(d[1]=Math.abs(c)>=u&&p[1])):(d[0]===!1&&(d[0]=Math.abs(i)>=l&&Math.sign(i)*l),d[1]===!1&&(d[1]=Math.abs(c)>=u&&Math.sign(c)*u)),n.intentional=d[0]!==!1||d[1]!==!1,!n.intentional)return;const f=[0,0];if(o.hasCustomTransform){const[_,w]=p;f[0]=d[0]!==!1?_-d[0]:0,f[1]=d[1]!==!1?w-d[1]:0}else f[0]=d[0]!==!1?i-d[0]:0,f[1]=d[1]!==!1?c-d[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(f);const b=n.offset,h=n._active&&!n._blocked||n.active;h&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=r[this.ingKey]=n._active,t&&(n.first&&("bounds"in o&&(n._bounds=Hv(o.bounds,n)),this.setup&&this.setup()),n.movement=f,this.computeOffset()));const[g,z]=n.offset,[[y,x],[v,M]]=n._bounds;n.overflow=[gx?1:0,zM?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const A=n._active?o.rubberband||[0,0]:[0,0];if(n.offset=KQe(n._bounds,n.offset,A),n.delta=Eo.sub(n.offset,b),this.computeMovement(),h&&(!n.last||s>uJe)){n.delta=Eo.sub(n.offset,b);const _=n.delta.map(Math.abs);Eo.addTo(n.distance,_),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&s>0&&(n.velocity=[_[0]/s,_[1]/s],n.timeDelta=s)}}emit(){const t=this.state,n=this.shared,o=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!o.triggerAllEvents)return;const r=this.handler(Un(Un(Un({},n),t),{},{[this.aliasKey]:t.values}));r!==void 0&&(t.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function pJe([e,t],n){const o=Math.abs(e),r=Math.abs(t);if(o>r&&o>n)return"x";if(r>o&&r>n)return"y"}class fJe extends dJe{constructor(...t){super(...t),zr(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=Eo.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Eo.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const n=this.state,o=this.config;if(!n.axis&&t){const r=typeof o.axisThreshold=="object"?o.axisThreshold[Jle(t)]:o.axisThreshold;n.axis=pJe(n._movement,r)}n._blocked=(o.lockDirection||!!o.axis)&&!n.axis||!!o.axis&&o.axis!==n.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const bJe=e=>e,EX=.15,tue={enabled(e=!0){return e},eventOptions(e,t,n){return Un(Un({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[EX,EX];case!1:return[0,0];default:return Eo.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return Eo.toVector(e)},transform(e,t,n){const o=e||n.shared.transform;return this.hasCustomTransform=!!o,o||bJe},threshold(e){return Eo.toVector(e,0)}},hJe=0,W3=Un(Un({},tue),{},{axis(e,t,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(e=hJe){return e},bounds(e={}){if(typeof e=="function")return s=>W3.bounds(e(s));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:o=-1/0,bottom:r=1/0}=e;return[[t,n],[o,r]]}}),BX={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};class mJe extends fJe{constructor(...t){super(...t),zr(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const n=t._bounds.getBoundingClientRect(),o=t.currentTarget.getBoundingClientRect(),r={left:n.left-o.left+t.offset[0],right:n.right-o.right+t.offset[0],top:n.top-o.top+t.offset[1],bottom:n.bottom-o.bottom+t.offset[1]};t._bounds=W3.bounds(r)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const n=this.config,o=this.state;if(t.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(t.buttons):n.pointerButtons!==-1&&n.pointerButtons!==t.buttons))return;const r=this.ctrl.setEventIds(t);n.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(r&&r.size>1&&o._pointerActive)&&(this.start(t),this.setupPointer(t),o._pointerId=$q(t),o._pointerActive=!0,this.computeValues(WX(t)),this.computeInitial(),n.preventScrollAxis&&Jle(t)!=="mouse"?(o._active=!1,this.setupScrollPrevention(t)):n.delay>0?(this.setupDelayTrigger(t),n.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const n=this.state,o=this.config;if(!n._pointerActive)return;const r=$q(t);if(n._pointerId!==void 0&&r!==n._pointerId)return;const s=WX(t);if(document.pointerLockElement===t.target?n._delta=[t.movementX,t.movementY]:(n._delta=Eo.sub(s,n._values),this.computeValues(s)),Eo.addTo(n._movement,n._delta),this.compute(t),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(t);return}if(o.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===o.preventScrollAxis||o.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch{}const n=this.state,o=this.config;if(!n._active||!n._pointerActive)return;const r=$q(t);if(n._pointerId!==void 0&&r!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[s,i]=n._distance;if(n.tap=s<=o.tapsThreshold&&i<=o.tapsThreshold,n.tap&&o.filterTaps)n._force=!0;else{const[c,l]=n._delta,[u,d]=n._movement,[p,f]=o.swipe.velocity,[b,h]=o.swipe.distance,g=o.swipe.duration;if(n.elapsedTimep&&Math.abs(u)>b&&(n.swipe[0]=Math.sign(c)),y>f&&Math.abs(d)>h&&(n.swipe[1]=Math.sign(l))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const n=this.config,o=n.device;n.pointerLock&&t.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,o,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,o,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,o,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,MJe(t);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const n=BX[t.key];if(n){const o=this.state,r=t.shiftKey?10:t.altKey?.1:1;this.start(t),o._delta=n(this.config.keyboardDisplacement,r),o._keyboardActive=!0,Eo.addTo(o._movement,o._delta),this.compute(t),this.emit()}}keyUp(t){t.key in BX&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const n=this.config.device;t(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(n,"change",this.pointerMove.bind(this)),t(n,"end",this.pointerUp.bind(this)),t(n,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function MJe(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const T3=typeof window<"u"&&window.document&&window.document.createElement;function nue(){return T3&&"ontouchstart"in window}function gJe(){return nue()||T3&&window.navigator.maxTouchPoints>1}function zJe(){return T3&&"onpointerdown"in window}function OJe(){return T3&&"exitPointerLock"in window.document}function AJe(){try{return"constructor"in GestureEvent}catch{return!1}}const qs={isBrowser:T3,gesture:AJe(),touch:nue(),touchscreen:gJe(),pointer:zJe(),pointerLock:OJe()},yJe=250,vJe=180,xJe=.5,_Je=50,wJe=250,kJe=10,NX={mouse:0,touch:0,pen:8},qJe=Un(Un({},W3),{},{device(e,t,{pointer:{touch:n=!1,lock:o=!1,mouse:r=!1}={}}){return this.pointerLock=o&&qs.pointerLock,qs.touch&&n?"touch":this.pointerLock?"mouse":qs.pointer&&!r?"pointer":qs.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&e?yJe:void 0,!(!qs.touchscreen||n===!1))return e||(n!==void 0?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:o=1,keys:r=!0}={}}){return this.pointerButtons=o,this.keys=r,!this.pointerLock&&this.device==="pointer"&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:o=3,axis:r=void 0}){const s=Eo.toVector(e,n?o:r?1:0);return this.filterTaps=n,this.tapsThreshold=o,s},swipe({velocity:e=xJe,distance:t=_Je,duration:n=wJe}={}){return{velocity:this.transform(Eo.toVector(e)),distance:this.transform(Eo.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return vJe;case!1:return 0;default:return e}},axisThreshold(e){return e?Un(Un({},NX),e):NX},keyboardDisplacement(e=kJe){return e}});Un(Un({},tue),{},{device(e,t,{shared:n,pointer:{touch:o=!1}={}}){if(n.target&&!qs.touch&&qs.gesture)return"gesture";if(qs.touch&&o)return"touch";if(qs.touchscreen){if(qs.pointer)return"pointer";if(qs.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:o={}}){const r=i=>{const c=TX(Hv(n,i),{min:-1/0,max:1/0});return[c.min,c.max]},s=i=>{const c=TX(Hv(o,i),{min:-1/0,max:1/0});return[c.min,c.max]};return typeof n!="function"&&typeof o!="function"?[r(),s()]:i=>[r(i),s(i)]},threshold(e,t,n){return this.lockDirection=n.axis==="lock",Eo.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});Un(Un({},W3),{},{mouseOnly:(e=!0)=>e});Un(Un({},W3),{},{mouseOnly:(e=!0)=>e});const oue=new Map,dW=new Map;function SJe(e){oue.set(e.key,e.engine),dW.set(e.key,e.resolver)}const CJe={key:"drag",engine:mJe,resolver:qJe};function RJe(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,s;for(s=0;s=0)&&(n[r]=e[r]);return n}function WJe(e,t){if(e==null)return{};var n=RJe(e,t),o,r;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}const TJe={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=qs.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},EJe=["target","eventOptions","window","enabled","transform"];function n4(e={},t){const n={};for(const[o,r]of Object.entries(t))switch(typeof r){case"function":n[o]=r.call(n,e[o],o,e);break;case"object":n[o]=n4(e[o],r);break;case"boolean":r&&(n[o]=e[o]);break}return n}function BJe(e,t,n={}){const o=e,{target:r,eventOptions:s,window:i,enabled:c,transform:l}=o,u=WJe(o,EJe);if(n.shared=n4({target:r,eventOptions:s,window:i,enabled:c,transform:l},TJe),t){const d=dW.get(t);n[t]=n4(Un({shared:n.shared},u),d)}else for(const d in u){const p=dW.get(d);p&&(n[d]=n4(Un({shared:n.shared},u[d]),p))}return n}class rue{constructor(t,n){zr(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=n}add(t,n,o,r,s){const i=this._listeners,c=oJe(n,o),l=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},u=Un(Un({},l),s);t.addEventListener(c,r,u);const d=()=>{t.removeEventListener(c,r,u),i.delete(d)};return i.add(d),d}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class NJe{constructor(){zr(this,"_timeouts",new Map)}add(t,n,o=140,...r){this.remove(t),this._timeouts.set(t,window.setTimeout(n,o,...r))}remove(t){const n=this._timeouts.get(t);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(t=>void window.clearTimeout(t)),this._timeouts.clear()}}let LJe=class{constructor(t){zr(this,"gestures",new Set),zr(this,"_targetEventStore",new rue(this)),zr(this,"gestureEventStores",{}),zr(this,"gestureTimeoutStores",{}),zr(this,"handlers",{}),zr(this,"config",{}),zr(this,"pointerIds",new Set),zr(this,"touchIds",new Set),zr(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),jJe(this,t)}setEventIds(t){if(sw(t))return this.touchIds=new Set(iJe(t)),this.touchIds;if("pointerId"in t)return t.type==="pointerup"||t.type==="pointercancel"?this.pointerIds.delete(t.pointerId):t.type==="pointerdown"&&this.pointerIds.add(t.pointerId),this.pointerIds}applyHandlers(t,n){this.handlers=t,this.nativeHandlers=n}applyConfig(t,n){this.config=BJe(t,n,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){const n=this.config.shared,o={};let r;if(!(n.target&&(r=n.target(),!r))){if(n.enabled){for(const i of this.gestures){const c=this.config[i],l=LX(o,c.eventOptions,!!r);if(c.enabled){const u=oue.get(i);new u(this,t,i).bind(l)}}const s=LX(o,n.eventOptions,!!r);for(const i in this.nativeHandlers)s(i,"",c=>this.nativeHandlers[i](Un(Un({},this.state.shared),{},{event:c,args:t})),void 0,!0)}for(const s in o)o[s]=lJe(...o[s]);if(!r)return o;for(const s in o){const{device:i,capture:c,passive:l}=nJe(s);this._targetEventStore.add(r,i,"",o[s],{capture:c,passive:l})}}}};function Ff(e,t){e.gestures.add(t),e.gestureEventStores[t]=new rue(e,t),e.gestureTimeoutStores[t]=new NJe}function jJe(e,t){t.drag&&Ff(e,"drag"),t.wheel&&Ff(e,"wheel"),t.scroll&&Ff(e,"scroll"),t.move&&Ff(e,"move"),t.pinch&&Ff(e,"pinch"),t.hover&&Ff(e,"hover")}const LX=(e,t,n)=>(o,r,s,i={},c=!1)=>{var l,u;const d=(l=i.capture)!==null&&l!==void 0?l:t.capture,p=(u=i.passive)!==null&&u!==void 0?u:t.passive;let f=c?o:eJe(o,r,d);n&&p&&(f+="Passive"),e[f]=e[f]||[],e[f].push(s)};function PJe(e,t={},n,o){const r=G0.useMemo(()=>new LJe(e),[]);if(r.applyHandlers(e,o),r.applyConfig(t,n),G0.useEffect(r.effect.bind(r)),G0.useEffect(()=>r.clean.bind(r),[]),t.target===void 0)return r.bind.bind(r)}function IJe(e,t){return SJe(CJe),PJe({drag:e},t||{},"drag")}function DJe(e){let t="ns-resize";switch(e){case"n":case"s":t="ns-resize";break;case"e":case"w":t="ew-resize";break}return t}function FJe(e,t){const n=DJe(t);return O.useEffect(()=>{e?document.documentElement.style.cursor=n:document.documentElement.style.cursor=null},[e,n]),n}function $Je(e){const t=O.useRef(e.value),[n,o]=O.useState({}),r=n.value!==void 0?n.value:e.value;return O.useLayoutEffect(()=>{const{current:c}=t;t.current=e.value,n.value!==void 0&&!n.isStale?o({...n,isStale:!0}):n.isStale&&e.value!==c&&o({})},[e.value,n]),{value:r,onBlur:c=>{o({}),e.onBlur?.(c)},onChange:(c,l)=>{o(u=>Object.assign(u,{value:c,isStale:!1})),e.onChange(c,l)}}}const VJe=e=>e,pW={error:null,initialValue:"",isDirty:!1,isDragEnabled:!1,isDragging:!1,isPressEnterToChange:!1,value:""},sue="CHANGE",iw="COMMIT",iue="CONTROL",aue="DRAG_END",cue="DRAG_START",lue="DRAG",uue="INVALIDATE",aw="PRESS_DOWN",due="PRESS_ENTER",ez="PRESS_UP",pue="RESET";function HJe(e=pW){const{value:t}=e;return{...pW,...e,initialValue:t}}function UJe(e){return(t,n)=>{const o={...t};switch(n.type){case iue:return o.value=n.payload.value,o.isDirty=!1,o._event=void 0,o;case ez:o.isDirty=!1;break;case aw:o.isDirty=!1;break;case cue:o.isDragging=!0;break;case aue:o.isDragging=!1;break;case sue:o.error=null,o.value=n.payload.value,t.isPressEnterToChange&&(o.isDirty=!0);break;case iw:o.value=n.payload.value,o.isDirty=!1;break;case pue:o.error=null,o.isDirty=!1,o.value=n.payload.value||t.initialValue;break;case uue:o.error=n.payload.error;break}return o._event=n.payload.event,e(o,n)}}function XJe(e=VJe,t=pW,n){const[o,r]=O.useReducer(UJe(e),HJe(t)),s=M=>(A,_)=>{r({type:M,payload:{value:A,event:_}})},i=M=>A=>{r({type:M,payload:{event:A}})},c=M=>A=>{r({type:M,payload:A})},l=s(sue),u=(M,A)=>r({type:uue,payload:{error:M,event:A}}),d=s(pue),p=s(iw),f=c(cue),b=c(lue),h=c(aue),g=i(ez),z=i(aw),y=i(due),x=O.useRef(o),v=O.useRef({value:t.value,onChangeHandler:n});return O.useLayoutEffect(()=>{x.current=o,v.current={value:t.value,onChangeHandler:n}}),O.useLayoutEffect(()=>{if(x.current._event!==void 0&&o.value!==v.current.value&&!o.isDirty){var M;v.current.onChangeHandler((M=o.value)!==null&&M!==void 0?M:"",{event:x.current._event})}},[o.value,o.isDirty]),O.useLayoutEffect(()=>{if(t.value!==x.current.value&&!x.current.isDirty){var M;r({type:iue,payload:{value:(M=t.value)!==null&&M!==void 0?M:""}})}},[t.value]),{change:l,commit:p,dispatch:r,drag:b,dragEnd:h,dragStart:f,invalidate:u,pressDown:z,pressEnter:y,pressUp:g,reset:d,state:o}}function E3(e){return t=>{const{isComposing:n}="nativeEvent"in t?t.nativeEvent:t;n||t.keyCode===229||e(t)}}const Cd=()=>{};function GJe({disabled:e=!1,dragDirection:t="n",dragThreshold:n=10,id:o,isDragEnabled:r=!1,isPressEnterToChange:s=!1,onBlur:i=Cd,onChange:c=Cd,onDrag:l=Cd,onDragEnd:u=Cd,onDragStart:d=Cd,onKeyDown:p=Cd,onValidate:f=Cd,size:b="default",stateReducer:h=v=>v,value:g,type:z,...y},x){const{state:v,change:M,commit:A,drag:_,dragEnd:w,dragStart:k,invalidate:q,pressDown:S,pressEnter:C,pressUp:T,reset:W}=XJe(h,{isDragEnabled:r,value:g,isPressEnterToChange:s},c),{value:B,isDragging:N,isDirty:E}=v,L=O.useRef(!1),I=FJe(N,t),P=Y=>{i(Y),(E||!Y.target.validity.valid)&&(L.current=!0,U(Y))},H=Y=>{const ee=Y.target.value;M(ee,Y)},U=Y=>{const ee=Y.currentTarget.value;try{f(ee),A(ee,Y)}catch(ie){q(ie,Y)}},X=Y=>{const{key:ee}=Y;switch(p(Y),ee){case"ArrowUp":T(Y);break;case"ArrowDown":S(Y);break;case"Enter":C(Y),s&&(Y.preventDefault(),U(Y));break;case"Escape":s&&E&&(Y.preventDefault(),W(g,Y));break}},Z=IJe(Y=>{const{distance:ee,dragging:ie,event:se,target:be}=Y;if(Y.event={...Y.event,target:be},!!ee){if(se.stopPropagation(),!ie){u(Y),w(Y);return}l(Y),_(Y),N||(d(Y),k(Y))}},{axis:t==="e"||t==="w"?"x":"y",threshold:n,enabled:r,pointer:{capture:!1}}),ne=r?Z():{};let oe;return z==="number"&&(oe=Y=>{y.onMouseDown?.(Y),Y.currentTarget!==Y.currentTarget.ownerDocument.activeElement&&Y.currentTarget.focus()}),a.jsx(rw,{...y,...ne,className:"components-input-control__input",disabled:e,dragCursor:I,isDragging:N,id:o,onBlur:P,onChange:H,onKeyDown:E3(X),onMouseDown:oe,ref:x,inputSize:b,value:B??"",type:z})}const KJe=O.forwardRef(GJe),fue=we("div",{target:"ej5x27r4"})("font-family:",wi("default.fontFamily"),";font-size:",wi("default.fontSize"),";",B_,";"),YJe=({__nextHasNoMarginBottom:e=!1})=>!e&&ke("margin-bottom:",Ce(2),";",""),bue=we("div",{target:"ej5x27r3"})(YJe," .components-panel__row &{margin-bottom:inherit;}"),hue=ke(rae,";display:block;margin-bottom:",Ce(2),";padding:0;",""),Ip=we("label",{target:"ej5x27r2"})(hue,";");var ZJe={name:"11yad0w",styles:"margin-bottom:revert"};const QJe=({__nextHasNoMarginBottom:e=!1})=>!e&&ZJe,tz=we("p",{target:"ej5x27r1"})("margin-top:",Ce(2),";margin-bottom:0;font-size:",wi("helpText.fontSize"),";font-style:normal;color:",qe.gray[700],";",QJe,";"),JJe=we("span",{target:"ej5x27r0"})(hue,";"),eet=e=>{const{__nextHasNoMarginBottom:t=!1,__associatedWPComponentName:n="BaseControl",id:o,label:r,hideLabelFromVision:s=!1,help:i,className:c,children:l}=Ut(e,"BaseControl");return t||Re(`Bottom margin styles for wp.components.${n}`,{since:"6.7",version:"7.0",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."}),a.jsxs(fue,{className:c,children:[a.jsxs(bue,{className:"components-base-control__field",__nextHasNoMarginBottom:t,children:[r&&o&&(s?a.jsx(Kt,{as:"label",htmlFor:o,children:r}):a.jsx(Ip,{className:"components-base-control__label",htmlFor:o,children:r})),r&&!o&&(s?a.jsx(Kt,{as:"label",children:r}):a.jsx(mue,{children:r})),l]}),!!i&&a.jsx(tz,{id:o?o+"__help":void 0,className:"components-base-control__help",__nextHasNoMarginBottom:t,children:i})]})},tet=(e,t)=>{const{className:n,children:o,...r}=e;return a.jsx(JJe,{ref:t,...r,className:$("components-base-control__label",n),children:o})},mue=O.forwardRef(tet),z0=Object.assign(aae(eet,"BaseControl"),{VisualLabel:mue}),Vq=()=>{};function net(e){const n=`inspector-input-control-${He(Is)}`;return e||n}function oet(e,t){const{__next40pxDefaultSize:n,__unstableStateReducer:o=S=>S,__unstableInputWidth:r,className:s,disabled:i=!1,help:c,hideLabelFromVision:l=!1,id:u,isPressEnterToChange:d=!1,label:p,labelPosition:f="top",onChange:b=Vq,onValidate:h=Vq,onKeyDown:g=Vq,prefix:z,size:y="default",style:x,suffix:v,value:M,...A}=Md(e),_=net(u),w=$("components-input-control",s),k=$Je({value:M,onBlur:A.onBlur,onChange:b}),q=c?{"aria-describedby":`${_}__help`}:{};return a.jsx(z0,{className:w,help:c,id:_,__nextHasNoMarginBottom:!0,children:a.jsx(q7,{__next40pxDefaultSize:n,__unstableInputWidth:r,disabled:i,gap:3,hideLabelFromVision:l,id:_,justify:"left",label:p,labelPosition:f,prefix:z,size:y,style:x,suffix:v,children:a.jsx(KJe,{...A,...q,__next40pxDefaultSize:n,className:"components-input-control__input",disabled:i,id:_,isPressEnterToChange:d,onKeyDown:g,onValidate:h,paddingInlineStart:z?Ce(1):void 0,paddingInlineEnd:v?Ce(1):void 0,ref:t,size:y,stateReducer:o,...k})})})}const Is=O.forwardRef(oet);function jX({icon:e,className:t,size:n=20,style:o={},...r}){const s=["dashicon","dashicons","dashicons-"+e,t].filter(Boolean).join(" "),c={...n!=20?{fontSize:`${n}px`,width:`${n}px`,height:`${n}px`}:{},...o};return a.jsx("span",{className:s,style:c,...r})}function xn({icon:e=null,size:t=typeof e=="string"?20:24,...n}){if(typeof e=="string")return a.jsx(jX,{icon:e,size:t,...n});if(O.isValidElement(e)&&jX===e.type)return O.cloneElement(e,{...n});if(typeof e=="function")return O.createElement(e,{size:t,...n});if(e&&(e.type==="svg"||e.type===te)){const o={...e.props,width:t,height:t,...n};return a.jsx(te,{...o})}return O.isValidElement(e)?O.cloneElement(e,{size:t,...n}):e}const ret=["onMouseDown","onClick"];function set({__experimentalIsFocusable:e,isDefault:t,isPrimary:n,isSecondary:o,isTertiary:r,isLink:s,isPressed:i,isSmall:c,size:l,variant:u,describedBy:d,...p}){let f=l,b=u;const h={accessibleWhenDisabled:e,"aria-pressed":i,description:d};if(c){var g;(g=f)!==null&&g!==void 0||(f="small")}if(n){var z;(z=b)!==null&&z!==void 0||(b="primary")}if(r){var y;(y=b)!==null&&y!==void 0||(b="tertiary")}if(o){var x;(x=b)!==null&&x!==void 0||(b="secondary")}if(t){var v;Re("wp.components.Button `isDefault` prop",{since:"5.4",alternative:'variant="secondary"'}),(v=b)!==null&&v!==void 0||(b="secondary")}if(s){var M;(M=b)!==null&&M!==void 0||(b="link")}return{...h,...p,size:f,variant:b}}function iet(e,t){const{__next40pxDefaultSize:n,accessibleWhenDisabled:o,isBusy:r,isDestructive:s,className:i,disabled:c,icon:l,iconPosition:u="left",iconSize:d,showTooltip:p,tooltipPosition:f,shortcut:b,label:h,children:g,size:z="default",text:y,variant:x,description:v,...M}=set(e),{href:A,target:_,"aria-checked":w,"aria-pressed":k,"aria-selected":q,...S}="href"in M?M:{href:void 0,target:void 0,...M},C=He(fe,"components-button__description"),T=typeof g=="string"&&!!g||Array.isArray(g)&&g?.[0]&&g[0]!==null&&g?.[0]?.props?.className!=="components-tooltip",B=$("components-button",i,{"is-next-40px-default-size":n,"is-secondary":x==="secondary","is-primary":x==="primary","is-small":z==="small","is-compact":z==="compact","is-tertiary":x==="tertiary","is-pressed":[!0,"true","mixed"].includes(k),"is-pressed-mixed":k==="mixed","is-busy":r,"is-link":x==="link","is-destructive":s,"has-text":!!l&&(T||y),"has-icon":!!l}),N=c&&!o,E=A!==void 0&&!c?"a":"button",L=E==="button"?{type:"button",disabled:N,"aria-checked":w,"aria-pressed":k,"aria-selected":q}:{},I=E==="a"?{href:A,target:_}:{},P={};if(c&&o){L["aria-disabled"]=!0,I["aria-disabled"]=!0;for(const ee of ret)P[ee]=ie=>{ie&&(ie.stopPropagation(),ie.preventDefault())}}const H=!N&&(p&&!!h||!!b||!!h&&!g?.length&&p!==!1),U=v?C:void 0,X=S["aria-describedby"]||U,Z={className:B,"aria-label":S["aria-label"]||h,"aria-describedby":X,ref:t},ne=a.jsxs(a.Fragment,{children:[l&&u==="left"&&a.jsx(xn,{icon:l,size:d}),y&&a.jsx(a.Fragment,{children:y}),g,l&&u==="right"&&a.jsx(xn,{icon:l,size:d})]}),oe=E==="a"?a.jsx("a",{...I,...S,...P,...Z,children:ne}):a.jsx("button",{...L,...S,...P,...Z,children:ne}),Y=H?{text:g?.length&&v?v:h,shortcut:b,placement:f&&z_(f)}:{};return a.jsxs(a.Fragment,{children:[a.jsx(W1,{...Y,children:oe}),v&&a.jsx(Kt,{children:a.jsx("span",{id:U,children:v})})]})}const fe=O.forwardRef(iet);var aet={name:"euqsgg",styles:"input[type='number']::-webkit-outer-spin-button,input[type='number']::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}input[type='number']{-moz-appearance:textfield;}"};const cet=({hideHTMLArrows:e})=>e?aet:"",uet=we(Is,{target:"ep09it41"})(cet,";"),PX=we(fe,{target:"ep09it40"})("&&&&&{color:",qe.theme.accent,";}"),det=ke("width:",Ce(5),";min-width:",Ce(5),";height:",Ce(5),";",""),pet={smallSpinButtons:det};function e2(e){const t=Number(e);return isNaN(t)?0:t}function IX(...e){return e.reduce((t,n)=>t+e2(n),0)}function fet(...e){return e.reduce((t,n,o)=>{const r=e2(n);return o===0?r:t-r},0)}function bet(e){const t=(e+"").split(".");return t[1]!==void 0?t[1].length:0}function S7(e,t,n){const o=e2(e);return Math.max(t,Math.min(o,n))}function DX(e=0,t=1/0,n=1/0,o=1){const r=e2(e),s=e2(o),i=bet(o),c=Math.round(r/s)*s,l=S7(c,t,n);return i?e2(l.toFixed(i)):l}const het={bottom:{align:"flex-end",justify:"center"},bottomLeft:{align:"flex-end",justify:"flex-start"},bottomRight:{align:"flex-end",justify:"flex-end"},center:{align:"center",justify:"center"},edge:{align:"center",justify:"space-between"},left:{align:"center",justify:"flex-start"},right:{align:"center",justify:"flex-end"},stretch:{align:"stretch"},top:{align:"flex-start",justify:"center"},topLeft:{align:"flex-start",justify:"flex-start"},topRight:{align:"flex-start",justify:"flex-end"}},met={bottom:{justify:"flex-end",align:"center"},bottomLeft:{justify:"flex-end",align:"flex-start"},bottomRight:{justify:"flex-end",align:"flex-end"},center:{justify:"center",align:"center"},edge:{justify:"space-between",align:"center"},left:{justify:"center",align:"flex-start"},right:{justify:"center",align:"flex-end"},stretch:{align:"stretch"},top:{justify:"flex-start",align:"center"},topLeft:{justify:"flex-start",align:"flex-start"},topRight:{justify:"flex-start",align:"flex-end"}};function Met(e,t="row"){if(!_s(e))return{};const o=t==="column"?met:het;return e in o?o[e]:{align:e}}function Mue(e){return typeof e=="string"?[e]:O.Children.toArray(e).filter(t=>O.isValidElement(t))}function gue(e){const{alignment:t="edge",children:n,direction:o,spacing:r=2,...s}=Ut(e,"HStack"),i=Met(t,o),u={children:Mue(n).map((f,b)=>{if(lae(f,["Spacer"])){const g=f,z=g.key||`hstack-${b}`;return a.jsx(Ht,{isBlock:!0,...g.props},z)}return f}),direction:o,justify:"center",...i,...s,gap:r},{isColumn:d,...p}=Pce(u);return p}function get(e,t){const n=gue(e);return a.jsx(C0,{...n,ref:t})}const Je=Qt(get,"HStack"),zet=()=>{};function Oet(e,t){const{__unstableStateReducer:n,className:o,dragDirection:r="n",hideHTMLArrows:s=!1,spinControls:i=s?"none":"native",isDragEnabled:c=!0,isShiftStepEnabled:l=!0,label:u,max:d=1/0,min:p=-1/0,required:f=!1,shiftStep:b=10,step:h=1,spinFactor:g=1,type:z="number",value:y,size:x="default",suffix:v,onChange:M=zet,...A}=Md(e);s&&Re("wp.components.NumberControl hideHTMLArrows prop ",{alternative:'spinControls="none"',since:"6.2",version:"6.3"});const _=O.useRef(),w=Gt([_,t]),k=h==="any",q=k?1:_m(h),S=_m(g)*q,C=DX(0,p,d,q),T=(H,U)=>k?""+Math.min(d,Math.max(p,_m(H))):""+DX(H,p,d,U??q),W=z==="number"?"off":void 0,B=$("components-number-control",o),E=x0()(x==="small"&&pet.smallSpinButtons),L=(H,U,X)=>{X?.preventDefault();const Z=X?.shiftKey&&l,ne=Z?_m(b)*S:S;let oe=q$e(H)?C:H;return U==="up"?oe=IX(oe,ne):U==="down"&&(oe=fet(oe,ne)),T(oe,Z?ne:void 0)},I=(H,U)=>{const X={...H},{type:Z,payload:ne}=U,oe=ne.event,Y=X.value;if((Z===ez||Z===aw)&&(X.value=L(Y,Z===ez?"up":"down",oe)),Z===lue&&c){const[ee,ie]=ne.delta,se=ne.shiftKey&&l,be=se?_m(b)*S:S;let ye,xe;switch(r){case"n":xe=ie,ye=-1;break;case"e":xe=ee,ye=ft()?-1:1;break;case"s":xe=ie,ye=1;break;case"w":xe=ee,ye=ft()?1:-1;break}if(xe!==0){xe=Math.ceil(Math.abs(xe))*Math.sign(xe);const K=xe*be*ye;X.value=T(IX(Y,K),se?be:void 0)}}if(Z===due||Z===iw){const ee=f===!1&&Y==="";X.value=ee?Y:T(Y)}return X},P=H=>U=>M(String(L(y,H,U)),{event:{...U,target:_.current}});return a.jsx(uet,{autoComplete:W,inputMode:"numeric",...A,className:B,dragDirection:r,hideHTMLArrows:i!=="native",isDragEnabled:c,label:u,max:d,min:p,ref:w,required:f,step:h,type:z,value:y,__unstableStateReducer:(H,U)=>{var X;const Z=I(H,U);return(X=n?.(Z,U))!==null&&X!==void 0?X:Z},size:x,suffix:i==="custom"?a.jsxs(a.Fragment,{children:[v,a.jsx(or,{marginBottom:0,marginRight:2,children:a.jsxs(Je,{spacing:1,children:[a.jsx(PX,{className:E,icon:as,size:"small",label:m("Increment"),onClick:P("up")}),a.jsx(PX,{className:E,icon:tw,size:"small",label:m("Decrement"),onClick:P("down")})]})})]}):v,onChange:M})}const T1=O.forwardRef(Oet),FX=32,$X=6,Aet=we("div",{target:"eln3bjz3"})("border-radius:",Se.radiusRound,";border:",Se.borderWidth," solid ",qe.ui.border,";box-sizing:border-box;cursor:grab;height:",FX,"px;overflow:hidden;width:",FX,"px;:active{cursor:grabbing;}"),yet=we("div",{target:"eln3bjz2"})({name:"1r307gh",styles:"box-sizing:border-box;position:relative;width:100%;height:100%;:focus-visible{outline:none;}"}),vet=we("div",{target:"eln3bjz1"})("background:",qe.theme.accent,";border-radius:",Se.radiusRound,";box-sizing:border-box;display:block;left:50%;top:4px;transform:translateX( -50% );position:absolute;width:",$X,"px;height:",$X,"px;"),xet=we(l0,{target:"eln3bjz0"})("color:",qe.theme.accent,";margin-right:",Ce(3),";");function _et({value:e,onChange:t,...n}){const o=O.useRef(null),r=O.useRef(),s=O.useRef(),i=()=>{if(o.current===null)return;const d=o.current.getBoundingClientRect();r.current={x:d.x+d.width/2,y:d.y+d.height/2}},c=d=>{if(d!==void 0&&(d.preventDefault(),d.target?.focus(),r.current!==void 0&&t!==void 0)){const{x:p,y:f}=r.current;t(wet(p,f,d.clientX,d.clientY))}},{startDrag:l,isDragging:u}=gne({onDragStart:d=>{i(),c(d)},onDragMove:c,onDragEnd:c});return O.useEffect(()=>{u?(s.current===void 0&&(s.current=document.body.style.cursor),document.body.style.cursor="grabbing"):(document.body.style.cursor=s.current||"",s.current=void 0)},[u]),a.jsx(Aet,{ref:o,onMouseDown:l,className:"components-angle-picker-control__angle-circle",...n,children:a.jsx(yet,{style:e?{transform:`rotate(${e}deg)`}:void 0,className:"components-angle-picker-control__angle-circle-indicator-wrapper",tabIndex:-1,children:a.jsx(vet,{className:"components-angle-picker-control__angle-circle-indicator"})})})}function wet(e,t,n,o){const r=o-t,s=n-e,i=Math.atan2(r,s),c=Math.round(i*(180/Math.PI))+90;return c<0?360+c:c}function ket(e,t){const{className:n,label:o=m("Angle"),onChange:r,value:s,...i}=e,c=f=>{if(r===void 0)return;const b=f!==void 0&&f!==""?parseInt(f,10):0;r(b)},l=$("components-angle-picker-control",n),u=a.jsx(xet,{children:"°"}),[d,p]=ft()?[u,null]:[null,u];return a.jsxs(Q0,{...i,ref:t,className:l,gap:2,children:[a.jsx(Vi,{children:a.jsx(T1,{label:o,className:"components-angle-picker-control__input-field",max:360,min:0,onChange:c,size:"__unstable-large",step:"1",value:s,spinControls:"none",prefix:d,suffix:p})}),a.jsx(or,{marginBottom:"1",marginTop:"auto",children:a.jsx(_et,{"aria-hidden":"true",value:s,onChange:r})})]})}const qet=O.forwardRef(ket),Cet=new RegExp(/[\u007e\u00ad\u2053\u207b\u208b\u2212\p{Pd}]/gu),VX=e=>Xs(e).toLocaleLowerCase().replace(Cet,"-");function Ret(e){var t;let n=(t=e?.toString?.())!==null&&t!==void 0?t:"";return n=n.replace(/['\u2019]/,""),Us(n,{splitRegexp:[/(?!(?:1ST|2ND|3RD|[4-9]TH)(?![a-z]))([a-z0-9])([A-Z])/g,/(?!(?:1st|2nd|3rd|[4-9]th)(?![a-z]))([0-9])([a-z])/g,/([A-Za-z])([0-9])/g,/([A-Z])([A-Z][a-z])/g]})}function nz(e){return e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}function Wet(e,t=[],n=10){const o=[];for(let r=0;re.test(Xs(l)))&&(o.push(s),o.length===n))break}return o}function Tet(e){return t=>{const[n,o]=O.useState([]);return O.useLayoutEffect(()=>{const{options:r,isDebounced:s}=e,i=jr(()=>{const l=Promise.resolve(typeof r=="function"?r(t):r).then(u=>{if(l.canceled)return;const d=u.map((f,b)=>({key:`${e.name}-${b}`,value:f,label:e.getOptionLabel(f),keywords:e.getOptionKeywords?e.getOptionKeywords(f):[],isDisabled:e.isOptionDisabled?e.isOptionDisabled(f):!1})),p=new RegExp("(?:\\b|\\s|^)"+nz(t),"i");o(Wet(p,d))});return l},s?250:0),c=i();return()=>{i.cancel(),c&&(c.canceled=!0)}},[t]),[n]}}var o4=typeof document<"u"?O.useLayoutEffect:O.useEffect;function Uv(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!Uv(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!Uv(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function zue(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function HX(e,t){const n=zue(e);return Math.round(t*n)/n}function UX(e){const t=O.useRef(e);return o4(()=>{t.current=e}),t}function Eet(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:i}={},transform:c=!0,whileElementsMounted:l,open:u}=e,[d,p]=O.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,b]=O.useState(o);Uv(f,o)||b(o);const[h,g]=O.useState(null),[z,y]=O.useState(null),x=O.useCallback(L=>{L!==_.current&&(_.current=L,g(L))},[]),v=O.useCallback(L=>{L!==w.current&&(w.current=L,y(L))},[]),M=s||h,A=i||z,_=O.useRef(null),w=O.useRef(null),k=O.useRef(d),q=l!=null,S=UX(l),C=UX(r),T=O.useCallback(()=>{if(!_.current||!w.current)return;const L={placement:t,strategy:n,middleware:f};C.current&&(L.platform=C.current),hie(_.current,w.current,L).then(I=>{const P={...I,isPositioned:!0};W.current&&!Uv(k.current,P)&&(k.current=P,Qo.flushSync(()=>{p(P)}))})},[f,t,n,C]);o4(()=>{u===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,p(L=>({...L,isPositioned:!1})))},[u]);const W=O.useRef(!1);o4(()=>(W.current=!0,()=>{W.current=!1}),[]),o4(()=>{if(M&&(_.current=M),A&&(w.current=A),M&&A){if(S.current)return S.current(M,A,T);T()}},[M,A,T,S,q]);const B=O.useMemo(()=>({reference:_,floating:w,setReference:x,setFloating:v}),[x,v]),N=O.useMemo(()=>({reference:M,floating:A}),[M,A]),E=O.useMemo(()=>{const L={position:n,left:0,top:0};if(!N.floating)return L;const I=HX(N.floating,d.x),P=HX(N.floating,d.y);return c?{...L,transform:"translate("+I+"px, "+P+"px)",...zue(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:I,top:P}},[n,c,N.floating,d.x,d.y]);return O.useMemo(()=>({...d,update:T,refs:B,elements:N,floatingStyles:E}),[d,T,B,N,E])}const Bet=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?F8({element:o.current,padding:r}).fn(n):{}:o?F8({element:o,padding:r}).fn(n):{}}}},Net=(e,t)=>({...uie(e),options:[e,t]}),Let=(e,t)=>({...die(e),options:[e,t]}),jet=(e,t)=>({...bie(e),options:[e,t]}),Pet=(e,t)=>({...pie(e),options:[e,t]}),Oue=(e,t)=>({...fie(e),options:[e,t]}),Iet=(e,t)=>({...Bet(e),options:[e,t]});let XX=0;function GX(e){const t=document.scrollingElement||document.body;e&&(XX=t.scrollTop);const n=e?"add":"remove";t.classList[n]("lockscroll"),document.documentElement.classList[n]("lockscroll"),e||(t.scrollTop=XX)}let hA=0;function Det(){return O.useEffect(()=>(hA===0&&GX(!0),++hA,()=>{hA===1&&GX(!1),--hA}),[]),null}const Fet={registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>[],subscribe:()=>()=>{}},cw=O.createContext(Fet),$et=e=>{const{getSlot:t,subscribe:n}=O.useContext(cw);return O.useSyncExternalStore(n,()=>t(e),()=>t(e))};function Vet({name:e,children:t}){const{registerFill:n,unregisterFill:o}=O.useContext(cw),r=$et(e),s=O.useRef({name:e,children:t});return O.useLayoutEffect(()=>{const i=s.current;return n(e,i),()=>o(e,i)},[]),O.useLayoutEffect(()=>{s.current.children=t,r&&r.forceUpdate()},[t]),O.useLayoutEffect(()=>{e!==s.current.name&&(o(s.current.name,s.current),s.current.name=e,n(e,s.current))},[e]),null}function KX(e){return typeof e=="function"}class Het extends O.Component{constructor(t){super(t),this.isUnmounted=!1}componentDidMount(){const{registerSlot:t}=this.props;this.isUnmounted=!1,t(this.props.name,this)}componentWillUnmount(){const{unregisterSlot:t}=this.props;this.isUnmounted=!0,t(this.props.name,this)}componentDidUpdate(t){const{name:n,unregisterSlot:o,registerSlot:r}=this.props;t.name!==n&&(o(t.name,this),r(n,this))}forceUpdate(){this.isUnmounted||super.forceUpdate()}render(){var t;const{children:n,name:o,fillProps:r={},getFills:s}=this.props,i=((t=s(o,this))!==null&&t!==void 0?t:[]).map(c=>{const l=KX(c.children)?c.children(r):c.children;return O.Children.map(l,(u,d)=>{if(!u||typeof u=="string")return u;let p=d;return typeof u=="object"&&"key"in u&&u?.key&&(p=u.key),O.cloneElement(u,{key:p})})}).filter(c=>!Z_e(c));return a.jsx(a.Fragment,{children:KX(n)?n(i):i})}}const Uet=e=>a.jsx(cw.Consumer,{children:({registerSlot:t,unregisterSlot:n,getFills:o})=>a.jsx(Het,{...e,registerSlot:t,unregisterSlot:n,getFills:o})}),Xet={slots:g2(),fills:g2(),registerSlot:()=>{globalThis.SCRIPT_DEBUG===!0&&Xt("Components must be wrapped within `SlotFillProvider`. See https://developer.wordpress.org/block-editor/components/slot-fill/")},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},isDefault:!0},B3=O.createContext(Xet);function Aue(e){const t=O.useContext(B3),n=xne(t.slots,e),o=O.useMemo(()=>({updateSlot:r=>t.updateSlot(e,r),unregisterSlot:r=>t.unregisterSlot(e,r),registerFill:r=>t.registerFill(e,r),unregisterFill:r=>t.unregisterFill(e,r)}),[e,t]);return{...n,...o}}const YX=new Set,Hq=new WeakMap,Get=e=>{if(Hq.has(e))return Hq.get(e);let t=Xc().replace(/[0-9]/g,"");for(;YX.has(t);)t=Xc().replace(/[0-9]/g,"");YX.add(t);const n=wL({container:e,key:t});return Hq.set(e,n),n};function yf(e){const{children:t,document:n}=e;if(!n)return null;const o=Get(n.head);return a.jsx(_Ve,{value:o,children:t})}function Ket(){const[,e]=O.useState({}),t=O.useRef(!0);return O.useEffect(()=>(t.current=!0,()=>{t.current=!1}),[]),()=>{t.current&&e({})}}function Yet(e){var t;const{name:n,children:o}=e,{registerFill:r,unregisterFill:s,...i}=Aue(n),c=Ket(),l=O.useRef({rerender:c});if(O.useEffect(()=>(r(l),()=>{s(l)}),[r,s]),!i.ref||!i.ref.current)return null;const u=a.jsx(yf,{document:i.ref.current.ownerDocument,children:typeof o=="function"?o((t=i.fillProps)!==null&&t!==void 0?t:{}):o});return Qo.createPortal(u,i.ref.current)}function Zet(e,t){const{name:n,fillProps:o={},as:r,children:s,...i}=e,{registerSlot:c,unregisterSlot:l,...u}=O.useContext(B3),d=O.useRef(null);return O.useLayoutEffect(()=>(c(n,d,o),()=>{l(n,d)}),[c,l,n]),O.useLayoutEffect(()=>{u.updateSlot(n,o)}),a.jsx(C0,{as:r,ref:Gt([t,d]),...i})}const Qet=O.forwardRef(Zet);function Jet(){const e=g2(),t=g2();return{slots:e,fills:t,registerSlot:(c,l,u)=>{const d=e.get(c);e.set(c,{...d,ref:l||d?.ref,fillProps:u||d?.fillProps||{}})},updateSlot:(c,l)=>{const u=e.get(c);if(!u||Jr(u.fillProps,l))return;u.fillProps=l;const d=t.get(c);d&&d.forEach(p=>p.current.rerender())},unregisterSlot:(c,l)=>{e.get(c)?.ref===l&&e.delete(c)},registerFill:(c,l)=>{t.set(c,[...t.get(c)||[],l])},unregisterFill:(c,l)=>{const u=t.get(c);u&&t.set(c,u.filter(d=>d!==l))}}}function ett({children:e}){const[t]=O.useState(Jet);return a.jsx(B3.Provider,{value:t,children:e})}function ttt(){const e={},t={};let n=[];function o(f,b){const h=e[f];e[f]=b,d(),u(f),h&&h.forceUpdate()}function r(f,b){t[f]=[...t[f]||[],b],u(f)}function s(f,b){e[f]===b&&(delete e[f],d())}function i(f,b){var h;t[f]=(h=t[f]?.filter(g=>g!==b))!==null&&h!==void 0?h:[],u(f)}function c(f){return e[f]}function l(f,b){return e[f]!==b?[]:t[f]}function u(f){const b=c(f);b&&b.forceUpdate()}function d(){n.forEach(f=>f())}function p(f){return n.push(f),()=>{n=n.filter(b=>b!==f)}}return{registerSlot:o,unregisterSlot:s,registerFill:r,unregisterFill:i,getSlot:c,getFills:l,subscribe:p}}function ntt({children:e}){const[t]=O.useState(ttt);return a.jsx(cw.Provider,{value:t,children:e})}function j1(e){const t=O.useContext(B3);return xne(t.fills,e)}function Th(e){return a.jsxs(a.Fragment,{children:[a.jsx(Vet,{...e}),a.jsx(Yet,{...e})]})}function ott(e,t){const{bubblesVirtually:n,...o}=e;return n?a.jsx(Qet,{...o,ref:t}):a.jsx(Uet,{...o})}const Dp=O.forwardRef(ott);function rtt({children:e,passthrough:t=!1}){return!O.useContext(B3).isDefault&&t?a.jsx(a.Fragment,{children:e}):a.jsx(ntt,{children:a.jsx(ett,{children:e})})}function _0(e){const t=typeof e=="symbol"?e.description:e,n=r=>a.jsx(Th,{name:e,...r});n.displayName=`${t}Fill`;const o=r=>a.jsx(Dp,{name:e,...r});return o.displayName=`${t}Slot`,o.__unstableName=e,{Fill:n,Slot:o}}const stt=e=>{const t=Symbol(e),n=_0(t);return{privateKey:t,...n}};function itt(){return[{name:"overlay",fn({rects:e}){return e.reference}},Oue({apply({rects:e,elements:t}){var n;const{firstElementChild:o}=(n=t.floating)!==null&&n!==void 0?n:{};o instanceof HTMLElement&&Object.assign(o.style,{width:`${e.reference.width}px`,height:`${e.reference.height}px`})}})]}const yue="Popover",att=()=>a.jsxs(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:"components-popover__triangle",role:"presentation",children:[a.jsx(J,{className:"components-popover__triangle-bg",d:"M 0 0 L 50 50 L 100 0"}),a.jsx(J,{className:"components-popover__triangle-border",d:"M 0 0 L 50 50 L 100 0",vectorEffect:"non-scaling-stroke"})]}),vue=O.createContext(void 0),ZX="components-popover__fallback-container",ctt=()=>{let e=document.body.querySelector("."+ZX);return e||(e=document.createElement("div"),e.className=ZX,document.body.append(e)),e},ltt=(e,t)=>{const{animate:n=!0,headerTitle:o,constrainTabbing:r,onClose:s,children:i,className:c,noArrow:l=!0,position:u,placement:d="bottom-start",offset:p=0,focusOnMount:f="firstElement",anchor:b,expandOnMobile:h,onFocusOutside:g,__unstableSlotName:z=yue,flip:y=!0,resize:x=!0,shift:v=!1,inline:M=!1,variant:A,style:_,__unstableForcePosition:w,anchorRef:k,anchorRect:q,getAnchorRect:S,isAlternate:C,...T}=Ut(e,"Popover");let W=y,B=x;w!==void 0&&(Re("`__unstableForcePosition` prop in wp.components.Popover",{since:"6.1",version:"6.3",alternative:"`flip={ false }` and `resize={ false }`"}),W=!w,B=!w),k!==void 0&&Re("`anchorRef` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),q!==void 0&&Re("`anchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),S!==void 0&&Re("`getAnchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"});const N=C?"toolbar":A;C!==void 0&&Re("`isAlternate` prop in wp.components.Popover",{since:"6.2",alternative:"`variant` prop with the `'toolbar'` value"});const E=O.useRef(null),[L,I]=O.useState(null),P=O.useCallback(ot=>{I(ot)},[]),H=g0("medium","<"),U=h&&H,X=!U&&!l,Z=u?z_(u):d,ne=[...d==="overlay"?itt():[],Net(p),W&&Pet(),B&&Oue({apply(ot){var Ct;const{firstElementChild:n0}=(Ct=xe.floating.current)!==null&&Ct!==void 0?Ct:{};n0 instanceof HTMLElement&&Object.assign(n0.style,{maxHeight:`${ot.availableHeight}px`,overflow:"auto"})}}),v&&Let({crossAxis:!0,limiter:jet(),padding:1}),Iet({element:E})],oe=O.useContext(vue)||z,Y=Aue(oe);let ee;(s||g)&&(ee=(ot,Ct)=>{ot==="focus-outside"&&g?g(Ct):s&&s()});const[ie,se]=Mne({constrainTabbing:r,focusOnMount:f,__unstableOnClose:ee,onClose:ee}),{x:be,y:ye,refs:xe,strategy:K,update:pe,placement:G,middlewareData:{arrow:re}}=Eet({placement:Z==="overlay"?void 0:Z,middleware:ne,whileElementsMounted:(ot,Ct,n0)=>lie(ot,Ct,n0,{layoutShift:!1,animationFrame:!0})}),Me=O.useCallback(ot=>{E.current=ot,pe()},[pe]),he=k?.top,Q=k?.bottom,R=k?.startContainer,j=k?.current;O.useLayoutEffect(()=>{const ot=x$e({anchor:b,anchorRef:k,anchorRect:q,getAnchorRect:S,fallbackReferenceElement:L});xe.setReference(ot)},[b,k,he,Q,R,j,q,S,L,xe]);const V=Gt([xe.setFloating,ie,t]),de=U?void 0:{position:K,top:0,left:0,x:PH(be),y:PH(ye)},ge=Zs(),ve=n&&!U&&!ge,[Ne,et]=O.useState(!1),{style:mt,...Mt}=O.useMemo(()=>A$e(G),[G]),Ke=ve?{style:{..._,...mt,...de},onAnimationComplete:()=>et(!0),...Mt}:{animate:!1,style:{..._,...de}},Nt=(!ve||Ne)&&be!==null&&ye!==null;let zt=a.jsxs(Hn.div,{className:$(c,{"is-expanded":U,"is-positioned":Nt,[`is-${N==="toolbar"?"alternate":N}`]:N}),...Ke,...T,ref:V,...se,tabIndex:-1,children:[U&&a.jsx(Det,{}),U&&a.jsxs("div",{className:"components-popover__header",children:[a.jsx("span",{className:"components-popover__header-title",children:o}),a.jsx(fe,{className:"components-popover__close",icon:Ch,onClick:s})]}),a.jsx("div",{className:"components-popover__content",children:i}),X&&a.jsx("div",{ref:Me,className:["components-popover__arrow",`is-${G.split("-")[0]}`].join(" "),style:{left:typeof re?.x<"u"&&Number.isFinite(re.x)?`${re.x}px`:"",top:typeof re?.y<"u"&&Number.isFinite(re.y)?`${re.y}px`:""},children:a.jsx(att,{})})]});const Ue=Y.ref&&!M,Xe=k||q||b;return Ue?zt=a.jsx(Th,{name:oe,children:zt}):M||(zt=Qo.createPortal(a.jsx(yf,{document,children:zt}),ctt())),Xe?zt:a.jsxs(a.Fragment,{children:[a.jsx("span",{ref:P}),zt]})},Mn=Qt(ltt,"Popover");function utt({name:e=yue},t){return a.jsx(Dp,{bubblesVirtually:!0,name:e,className:"popover-slot",ref:t})}Mn.Slot=O.forwardRef(utt);Mn.__unstableSlotNameProvider=vue.Provider;function QX({items:e,onSelect:t,selectedIndex:n,instanceId:o,listBoxId:r,className:s,Component:i="div"}){return a.jsx(i,{id:r,role:"listbox",className:"components-autocomplete__results",children:e.map((c,l)=>a.jsx(fe,{id:`components-autocomplete-item-${o}-${c.key}`,role:"option","aria-selected":l===n,accessibleWhenDisabled:!0,disabled:c.isDisabled,className:$("components-autocomplete__result",s,{"is-selected":l===n}),variant:l===n?"primary":void 0,onClick:()=>t(c),children:c.label},c.key))})}function dtt(e){var t;const n=(t=e.useItems)!==null&&t!==void 0?t:Tet(e);function o({filterValue:r,instanceId:s,listBoxId:i,className:c,selectedIndex:l,onChangeOptions:u,onSelect:d,onReset:p,reset:f,contentRef:b}){const[h]=n(r),g=Vz({editableContentElement:b.current}),[z,y]=O.useState(!1),x=O.useRef(null),v=Gt([x,Et(_=>{b.current&&y(_.ownerDocument!==b.current.ownerDocument)},[b])]);ptt(x,f);const M=Uo(At,500);function A(_){M&&(_.length?M(le(r?a0("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",_.length):a0("Initial %d result loaded. Type to filter all available results. Use up and down arrow keys to navigate.","Initial %d results loaded. Type to filter all available results. Use up and down arrow keys to navigate.",_.length),_.length),"assertive"):M(m("No results."),"assertive"))}return O.useLayoutEffect(()=>{u(h),A(h)},[h]),h.length===0?null:a.jsxs(a.Fragment,{children:[a.jsx(Mn,{focusOnMount:!1,onClose:p,placement:"top-start",className:"components-autocomplete__popover",anchor:g,ref:v,children:a.jsx(QX,{items:h,onSelect:d,selectedIndex:l,instanceId:s,listBoxId:i,className:c})}),b.current&&z&&Qo.createPortal(a.jsx(QX,{items:h,onSelect:d,selectedIndex:l,instanceId:s,listBoxId:i,className:c,Component:Kt}),b.current.ownerDocument.body)]})}return o}function ptt(e,t){O.useEffect(()=>{const n=o=>{!e.current||e.current.contains(o.target)||t(o)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}},[t])}const Xv=e=>{if(e===null)return"";switch(typeof e){case"string":case"number":return e.toString();case"boolean":return"";case"object":{if(e instanceof Array)return e.map(Xv).join("");if("props"in e)return Xv(e.props.children);break}default:return""}return""},JX=[];function xue({record:e,onChange:t,onReplace:n,completers:o,contentRef:r}){const s=He(xue),[i,c]=O.useState(0),[l,u]=O.useState(JX),[d,p]=O.useState(""),[f,b]=O.useState(null),[h,g]=O.useState(null),z=O.useRef(!1);function y(W){if(f===null)return;const B=e.start,N=B-f.triggerPrefix.length-d.length,E=m0({html:No(W)});t(Y1(e,E,N,B))}function x(W){const{getOptionCompletion:B}=f||{};if(!W.isDisabled){if(B){const N=B(W.value,d),L=(I=>I!==null&&typeof I=="object"&&"action"in I&&I.action!==void 0&&"value"in I&&I.value!==void 0)(N)?N:{action:"insert-at-caret",value:N};if(L.action==="replace"){n([L.value]);return}else L.action==="insert-at-caret"&&y(L.value)}v()}}function v(){c(0),u(JX),p(""),b(null),g(null)}function M(W){c(W.length===l.length?i:0),u(W)}function A(W){if(z.current=W.key==="Backspace",!!f&&l.length!==0&&!W.defaultPrevented){switch(W.key){case"ArrowUp":{const B=(i===0?l.length:i)-1;c(B),Ta()&&At(Xv(l[B].label),"assertive");break}case"ArrowDown":{const B=(i+1)%l.length;c(B),Ta()&&At(Xv(l[B].label),"assertive");break}case"Escape":b(null),g(null),W.preventDefault();break;case"Enter":x(l[i]);break;case"ArrowLeft":case"ArrowRight":v();return;default:return}W.preventDefault()}}const _=O.useMemo(()=>lf(e)?cp(O2(e,0)):"",[e]);O.useEffect(()=>{if(!_){f&&v();return}const W=o.reduce((ie,se)=>{const be=_.lastIndexOf(se.triggerPrefix),ye=ie!==null?_.lastIndexOf(ie.triggerPrefix):-1;return be>ye?se:ie},null);if(!W){f&&v();return}const{allowContext:B,triggerPrefix:N}=W,E=_.lastIndexOf(N),L=_.slice(E+N.length);if(L.length>50)return;const P=l.length===0,H=L.split(/\s/),U=H.length===1,X=z.current&&H.length<=3;if(P&&!(X||U)){f&&v();return}const Z=cp(O2(e,void 0,cp(e).length));if(B&&!B(_.slice(0,E),Z)){f&&v();return}if(/^\s/.test(L)||/\s\s+$/.test(L)){f&&v();return}if(!/[\u0000-\uFFFF]*$/.test(L)){f&&v();return}const ne=nz(W.triggerPrefix),oe=Xs(_),Y=oe.slice(oe.lastIndexOf(W.triggerPrefix)).match(new RegExp(`${ne}([\0-￿]*)$`)),ee=Y&&Y[1];b(W),g(()=>W!==f?dtt(W):h),p(ee===null?"":ee)},[_]);const{key:w=""}=l[i]||{},{className:k}=f||{},q=!!f&&l.length>0,S=q?`components-autocomplete-listbox-${s}`:void 0,C=q?`components-autocomplete-item-${s}-${w}`:null,T=e.start!==void 0;return{listBoxId:S,activeId:C,onKeyDown:E3(A),popover:T&&h&&a.jsx(h,{className:k,filterValue:d,instanceId:s,listBoxId:S,selectedIndex:i,onChangeOptions:M,onSelect:x,value:e,contentRef:r,reset:v})}}function ftt(e){const t=O.useRef(new Set);return t.current.add(e),t.current.size>2&&t.current.delete(Array.from(t.current)[0]),Array.from(t.current)[0]}function btt(e){const t=O.useRef(null),n=O.useRef(),{record:o}=e,r=ftt(o),{popover:s,listBoxId:i,activeId:c,onKeyDown:l}=xue({...e,contentRef:t});n.current=l;const u=Gt([t,Et(p=>{function f(b){n.current?.(b)}return p.addEventListener("keydown",f),()=>{p.removeEventListener("keydown",f)}},[])]);return o.text!==r?.text?{ref:u,children:s,"aria-autocomplete":i?"list":void 0,"aria-owns":i,"aria-activedescendant":c}:{ref:u}}const htt=ke("",""),mtt=()=>ke("flex:1;",dn({marginRight:"24px"})(),";",""),Mtt={name:"bjn8wh",styles:"position:relative"},gtt=e=>ke("position:absolute;top:",e==="__unstable-large"?"8px":"3px",";",dn({right:0})()," line-height:0;",""),mA=e=>{const{color:t=qe.gray[200],style:n="solid",width:o=Se.borderWidth}=e||{},r=o!==Se.borderWidth?`clamp(1px, ${o}, 10px)`:o;return`${t} ${!!o&&o!=="0"||!!t?n||"solid":n} ${r}`},ztt=(e,t)=>ke("position:absolute;top:",t==="__unstable-large"?"20px":"15px",";right:",t==="__unstable-large"?"39px":"29px",";bottom:",t==="__unstable-large"?"20px":"15px",";left:",t==="__unstable-large"?"39px":"29px",";border-top:",mA(e?.top),";border-bottom:",mA(e?.bottom),";",dn({borderLeft:mA(e?.left)})()," ",dn({borderRight:mA(e?.right)})(),";",""),Ott=e=>ke("position:relative;flex:1;width:",e==="__unstable-large"?void 0:"80%",";",""),Att={name:"1nwbfnf",styles:"grid-column:span 2;margin:0 auto"},ytt=()=>ke(dn({marginLeft:"auto"})(),";","");function vtt(e){const{className:t,size:n="default",...o}=Ut(e,"BorderBoxControlLinkedButton"),r=x0(),s=O.useMemo(()=>r(gtt(n),t),[t,r,n]);return{...o,className:s}}const xtt=(e,t)=>{const{className:n,isLinked:o,...r}=vtt(e),s=m(o?"Unlink sides":"Link sides");return a.jsx(W1,{text:s,children:a.jsx(C0,{className:n,children:a.jsx(fe,{...r,size:"small",icon:o?Qa:Xu,iconSize:24,"aria-label":s,ref:t})})})},_tt=Qt(xtt,"BorderBoxControlLinkedButton");function wtt(e){const{className:t,value:n,size:o="default",...r}=Ut(e,"BorderBoxControlVisualizer"),s=x0(),i=O.useMemo(()=>s(ztt(n,o),t),[s,t,n,o]);return{...r,className:i,value:n}}const ktt=(e,t)=>{const{value:n,...o}=wtt(e);return a.jsx(C0,{...o,ref:t})},qtt=Qt(ktt,"BorderBoxControlVisualizer"),Stt=({isBlock:e,isDeselectable:t,size:n})=>ke("background:",qe.ui.background,";border:1px solid transparent;border-radius:",Se.radiusSmall,";display:inline-flex;min-width:0;position:relative;",Ttt(n)," ",!t&&Ctt(e),";",""),Ctt=e=>{const t=ke("border-color:",qe.ui.border,";","");return ke(e&&t," &:hover{border-color:",qe.ui.borderHover,";}&:focus-within{border-color:",qe.ui.borderFocus,";box-shadow:",Se.controlBoxShadowFocus,";z-index:1;outline:2px solid transparent;outline-offset:-2px;}","")};var Rtt={name:"1aqh2c7",styles:"min-height:40px;padding:3px"},Wtt={name:"1ndywgm",styles:"min-height:36px;padding:2px"};const Ttt=e=>({default:Wtt,"__unstable-large":Rtt})[e],Ett={name:"7whenc",styles:"display:flex;width:100%"},Btt=we("div",{target:"eakva830"})({name:"zjik7",styles:"display:flex"}),C7=O.createContext({}),Ntt=()=>O.useContext(C7);function _ue(e){const t=O.useRef(!0),n=t1(e),o=O.useRef(!1);O.useEffect(()=>{t.current&&(t.current=!1)},[]);const r=o.current||!t.current&&n!==e;return O.useEffect(()=>{o.current=r},[r]),r?{value:e??"",defaultValue:void 0}:{value:void 0,defaultValue:e}}function Ltt({children:e,isAdaptiveWidth:t,label:n,onChange:o,size:r,value:s,id:i,...c},l){const u=He(wue,"toggle-group-control-as-radio-group"),d=i||u,{value:p,defaultValue:f}=_ue(s),h=vie({defaultValue:f,value:p,setValue:o?x=>{o(x??void 0)}:void 0}),g=on(h,"value"),z=h.setValue,y=O.useMemo(()=>({baseId:d,isBlock:!t,size:r,value:g,setValue:z}),[d,t,r,g,z]);return a.jsx(C7.Provider,{value:y,children:a.jsx(xie,{store:h,"aria-label":n,render:a.jsx(C0,{}),...c,id:d,ref:l,children:e})})}const wue=O.forwardRef(Ltt);function jtt({children:e,isAdaptiveWidth:t,label:n,onChange:o,size:r,value:s,id:i,...c},l){const u=He(kue,"toggle-group-control-as-button-group"),d=i||u,{value:p,defaultValue:f}=_ue(s),[b,h]=g3({defaultValue:f,value:p,onChange:o}),g=O.useMemo(()=>({baseId:d,value:b,setValue:h,isBlock:!t,isDeselectable:!0,size:r}),[d,b,h,t,r]);return a.jsx(C7.Provider,{value:g,children:a.jsx(C0,{"aria-label":n,...c,ref:l,role:"group",children:e})})}const kue=O.forwardRef(jtt);function Ptt(e,t){const{__nextHasNoMarginBottom:n=!1,__next40pxDefaultSize:o=!1,className:r,isAdaptiveWidth:s=!1,isBlock:i=!1,isDeselectable:c=!1,label:l,hideLabelFromVision:u=!1,help:d,onChange:p,size:f="default",value:b,children:h,...g}=Ut(e,"ToggleGroupControl"),z=He(wn,"toggle-group-control"),y=o&&f==="default"?"__unstable-large":f,x=x0(),v=O.useMemo(()=>x(Stt({isBlock:i,isDeselectable:c,size:y}),i&&Ett,r),[r,x,i,c,y]),M=c?kue:wue;return a.jsxs(z0,{help:d,__nextHasNoMarginBottom:n,__associatedWPComponentName:"ToggleGroupControl",children:[!u&&a.jsx(Btt,{children:a.jsx(z0.VisualLabel,{children:l})}),a.jsx(M,{...g,className:v,isAdaptiveWidth:s,label:l,onChange:p,ref:t,size:y,value:b,children:a.jsx(JKe,{id:z,children:h})})]})}const wn=Qt(Ptt,"ToggleGroupControl"),Itt=we("div",{target:"et6ln9s1"})({name:"sln1fl",styles:"display:inline-flex;max-width:100%;min-width:0;position:relative"}),que={name:"82a6rk",styles:"flex:1"},Sue=({isDeselectable:e,isIcon:t,isPressed:n,size:o})=>ke("align-items:center;appearance:none;background:transparent;border:none;border-radius:",Se.radiusXSmall,";color:",qe.gray[700],";fill:currentColor;cursor:pointer;display:flex;font-family:inherit;height:100%;justify-content:center;line-height:100%;outline:none;padding:0 12px;position:relative;text-align:center;@media not ( prefers-reduced-motion ){transition:background ",Se.transitionDurationFast," linear,color ",Se.transitionDurationFast," linear,font-weight 60ms linear;}user-select:none;width:100%;z-index:2;&::-moz-focus-inner{border:0;}&[disabled]{opacity:0.4;cursor:default;}&:active{background:",Se.toggleGroupControlBackgroundColor,";}",e&&Ftt," ",t&&Vtt({size:o})," ",n&&Dtt,";",""),Dtt=ke("color:",qe.white,";&:active{background:transparent;}",""),Ftt=ke("color:",qe.gray[900],";&:focus{box-shadow:inset 0 0 0 1px ",qe.white,",0 0 0 ",Se.borderWidthFocus," ",qe.theme.accent,";outline:2px solid transparent;}",""),$tt=we("div",{target:"et6ln9s0"})("display:flex;font-size:",Se.fontSize,";line-height:1;"),Vtt=({size:e="default"})=>{const t={default:"30px","__unstable-large":"32px"};return ke("color:",qe.gray[900],";height:",t[e],";aspect-ratio:1;padding-left:0;padding-right:0;","")},Cue=ke("background:",qe.gray[900],";border-radius:",Se.radiusXSmall,";position:absolute;inset:0;z-index:1;outline:2px solid transparent;outline-offset:-3px;",""),Htt=Object.freeze(Object.defineProperty({__proto__:null,ButtonContentView:$tt,LabelView:Itt,backdropView:Cue,buttonView:Sue,labelBlock:que},Symbol.toStringTag,{value:"Module"})),{ButtonContentView:eG,LabelView:Utt}=Htt,Xtt={duration:0},Gtt="toggle-group-backdrop-shared-layout-id",Ktt=({showTooltip:e,text:t,children:n})=>e&&t?a.jsx(W1,{text:t,placement:"top",children:n}):a.jsx(a.Fragment,{children:n});function Rue(e,t){const n=Zs(),o=Ntt(),r=He(Rue,o.baseId||"toggle-group-control-option-base"),s=Ut({...e,id:r},"ToggleGroupControlOptionBase"),{isBlock:i=!1,isDeselectable:c=!1,size:l="default"}=o,{className:u,isIcon:d=!1,value:p,children:f,showTooltip:b=!1,onFocus:h,disabled:g,...z}=s,y=o.value===p,x=x0(),v=O.useMemo(()=>x(i&&que),[x,i]),M=O.useMemo(()=>x(Sue({isDeselectable:c,isIcon:d,isPressed:y,size:l}),u),[x,c,d,y,l,u]),A=O.useMemo(()=>x(Cue),[x]),_=()=>{c&&y?o.setValue(void 0):o.setValue(p)},w={...z,className:M,"data-value":p,ref:t};return a.jsxs(Utt,{className:v,children:[a.jsx(Ktt,{showTooltip:b,text:z["aria-label"],children:c?a.jsx("button",{...w,disabled:g,onFocus:h,"aria-pressed":y,type:"button",onClick:_,children:a.jsx(eG,{children:f})}):a.jsx(yie,{disabled:g,render:a.jsx("button",{type:"button",...w,onFocus:k=>{h?.(k),!k.defaultPrevented&&o.setValue(p)}}),value:p,children:a.jsx(eG,{children:f})})}),y?a.jsx(Hn.div,{layout:!0,layoutRoot:!0,children:a.jsx(Hn.div,{className:A,transition:n?Xtt:void 0,role:"presentation",layoutId:Gtt})}):null]})}const Wue=Qt(Rue,"ToggleGroupControlOptionBase");function Ytt(e,t){const{label:n,...o}=e,r=o["aria-label"]||n;return a.jsx(Wue,{...o,"aria-label":r,ref:t,children:n})}const W0=O.forwardRef(Ytt);function Ztt(e,t){const{icon:n,label:o,...r}=e;return a.jsx(Wue,{...r,isIcon:!0,"aria-label":o,showTooltip:!0,ref:t,children:a.jsx(xn,{icon:n})})}const Bi=O.forwardRef(Ztt),Qtt=[{label:m("Solid"),icon:aZe,value:"solid"},{label:m("Dashed"),icon:sZe,value:"dashed"},{label:m("Dotted"),icon:iZe,value:"dotted"}];function Jtt({onChange:e,...t},n){return a.jsx(wn,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,ref:n,isDeselectable:!0,onChange:o=>{e?.(o)},...t,children:Qtt.map(o=>a.jsx(Bi,{value:o.value,icon:o.icon,label:o.label},o.value))})}const e0t=Qt(Jtt,"BorderControlStylePicker");function t0t(e,t){const{className:n,colorValue:o,...r}=e;return a.jsx("span",{className:$("component-color-indicator",n),style:{background:o},ref:t,...r})}const vf=O.forwardRef(t0t),n0t=(e,t)=>{const{renderContent:n,renderToggle:o,className:r,contentClassName:s,expandOnMobile:i,headerTitle:c,focusOnMount:l,popoverProps:u,onClose:d,onToggle:p,style:f,open:b,defaultOpen:h,position:g,variant:z}=Ut(e,"Dropdown");g!==void 0&&Re("`position` prop in wp.components.Dropdown",{since:"6.2",alternative:"`popoverProps.placement` prop",hint:"Note that the `position` prop will override any values passed through the `popoverProps.placement` prop."});const[y,x]=O.useState(null),v=O.useRef(),[M,A]=g3({defaultValue:h,value:b,onChange:p});function _(){if(!v.current)return;const{ownerDocument:S}=v.current,C=S?.activeElement?.closest('[role="dialog"]');!v.current.contains(S.activeElement)&&(!C||C.contains(v.current))&&w()}function w(){d?.(),A(!1)}const k={isOpen:!!M,onToggle:()=>A(!M),onClose:w},q=!!u?.anchor||!!u?.anchorRef||!!u?.getAnchorRect||!!u?.anchorRect;return a.jsxs("div",{className:r,ref:Gt([v,t,x]),tabIndex:-1,style:f,children:[o(k),M&&a.jsx(Mn,{position:g,onClose:w,onFocusOutside:_,expandOnMobile:i,headerTitle:c,focusOnMount:l,offset:13,anchor:q?void 0:y,variant:z,...u,className:$("components-dropdown__content",u?.className,s),children:n(k)})]})},B0=Qt(n0t,"Dropdown");function o0t(e,t){const n=Ut(e,"InputControlSuffixWrapper");return a.jsx(Yle,{...n,ref:t})}const r0t=Qt(o0t,"InputControlSuffixWrapper"),s0t=({disabled:e})=>e?ke("color:",qe.ui.textDisabled,";cursor:default;",""):"";var i0t={name:"1lv1yo7",styles:"display:inline-flex"};const a0t=({variant:e})=>e==="minimal"?i0t:"",c0t=we(q7,{target:"e1mv6sxx3"})("color:",qe.theme.foreground,";cursor:pointer;",s0t," ",a0t,";"),l0t=({__next40pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{if(t)return;const o={default:{height:40,minHeight:40,paddingTop:0,paddingBottom:0},small:{height:24,minHeight:24,paddingTop:0,paddingBottom:0},compact:{height:32,minHeight:32,paddingTop:0,paddingBottom:0},"__unstable-large":{height:40,minHeight:40,paddingTop:0,paddingBottom:0}};e||(o.default=o.compact);const r=o[n]||o.default;return ke(r,"","")},$M=18,u0t=({__next40pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{const o={default:Se.controlPaddingX,small:Se.controlPaddingXSmall,compact:Se.controlPaddingXSmall,"__unstable-large":Se.controlPaddingX};e||(o.default=o.compact);const r=o[n]||o.default;return dn({paddingLeft:r,paddingRight:r+$M,...t?{paddingTop:r,paddingBottom:r}:{}})},d0t=({multiple:e})=>({overflow:e?"auto":"hidden"});var p0t={name:"n1jncc",styles:"field-sizing:content"};const f0t=({variant:e})=>e==="minimal"?p0t:"",b0t=we("select",{target:"e1mv6sxx2"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:currentColor;cursor:inherit;display:block;font-family:inherit;margin:0;width:100%;max-width:none;white-space:nowrap;text-overflow:ellipsis;",k7,";",l0t,";",u0t,";",d0t," ",f0t,";}"),h0t=we("div",{target:"e1mv6sxx1"})("margin-inline-end:",Ce(-1),";line-height:0;path{fill:currentColor;}"),m0t=we(r0t,{target:"e1mv6sxx0"})("position:absolute;pointer-events:none;",dn({right:0}),";"),Tue=()=>a.jsx(m0t,{children:a.jsx(h0t,{children:a.jsx(t0,{icon:md,size:$M})})});function M0t(e){const n=`inspector-select-control-${He(i0)}`;return e||n}function g0t({options:e}){return e.map(({id:t,label:n,value:o,...r},s)=>{const i=t||`${n}-${o}-${s}`;return a.jsx("option",{value:o,...r,children:n},i)})}function z0t(e,t){const{className:n,disabled:o=!1,help:r,hideLabelFromVision:s,id:i,label:c,multiple:l=!1,onChange:u,options:d=[],size:p="default",value:f,labelPosition:b="top",children:h,prefix:g,suffix:z,variant:y="default",__next40pxDefaultSize:x=!1,__nextHasNoMarginBottom:v=!1,...M}=Md(e),A=M0t(i),_=r?`${A}__help`:void 0;if(!d?.length&&!h)return null;const w=q=>{if(e.multiple){const C=Array.from(q.target.options).filter(({selected:T})=>T).map(({value:T})=>T);e.onChange?.(C,{event:q});return}e.onChange?.(q.target.value,{event:q})},k=$("components-select-control",n);return a.jsx(z0,{help:r,id:A,__nextHasNoMarginBottom:v,__associatedWPComponentName:"SelectControl",children:a.jsx(c0t,{className:k,disabled:o,hideLabelFromVision:s,id:A,isBorderless:y==="minimal",label:c,size:p,suffix:z||!l&&a.jsx(Tue,{}),prefix:g,labelPosition:b,__unstableInputWidth:y==="minimal"?"auto":void 0,variant:y,__next40pxDefaultSize:x,children:a.jsx(b0t,{...M,__next40pxDefaultSize:x,"aria-describedby":_,className:"components-select-control__input",disabled:o,id:A,multiple:l,onChange:w,ref:t,selectSize:p,value:f,variant:y,children:h||a.jsx(g0t,{options:d})})})})}const i0=O.forwardRef(z0t);function r4(e,t,n){return typeof e!="number"?null:parseFloat(`${S7(e,t,n)}`)}function O0t(e){const{min:t,max:n,value:o,initial:r}=e,[s,i]=O_(r4(o,t,n),{initial:r4(r??null,t,n),fallback:null}),c=O.useCallback(l=>{i(l===null?null:r4(l,t,n))},[t,n,i]);return[s,c]}const j2=30,P2=4,R7=()=>ke({height:j2,minHeight:j2},"",""),vu=12,A0t=({__next40pxDefaultSize:e})=>!e&&ke({minHeight:j2},"",""),y0t=we("div",{target:"e1epgpqk14"})("-webkit-tap-highlight-color:transparent;align-items:center;display:flex;justify-content:flex-start;padding:0;position:relative;touch-action:none;width:100%;min-height:40px;",A0t,";"),v0t=({color:e=qe.ui.borderFocus})=>ke({color:e},"",""),x0t=({marks:e,__nextHasNoMarginBottom:t})=>t?"":ke({marginBottom:e?16:void 0},"",""),_0t=we("div",{target:"e1epgpqk13"})("display:block;flex:1;position:relative;width:100%;",v0t,";",R7,";",x0t,";"),w0t=we("span",{target:"e1epgpqk12"})("display:flex;margin-top:",P2,"px;",dn({marginRight:6}),";"),k0t=we("span",{target:"e1epgpqk11"})("display:flex;margin-top:",P2,"px;",dn({marginLeft:6}),";"),q0t=({disabled:e,railColor:t})=>{let n=t||"";return e&&(n=qe.ui.backgroundDisabled),ke({background:n},"","")},S0t=we("span",{target:"e1epgpqk10"})("background-color:",qe.gray[300],";left:0;pointer-events:none;right:0;display:block;height:",P2,"px;position:absolute;margin-top:",(j2-P2)/2,"px;top:0;border-radius:",Se.radiusFull,";",q0t,";"),C0t=({disabled:e,trackColor:t})=>{let n=t||"currentColor";return e&&(n=qe.gray[400]),ke({background:n},"","")},R0t=we("span",{target:"e1epgpqk9"})("background-color:currentColor;border-radius:",Se.radiusFull,";height:",P2,"px;pointer-events:none;display:block;position:absolute;margin-top:",(j2-P2)/2,"px;top:0;",C0t,";"),W0t=we("span",{target:"e1epgpqk8"})({name:"l7tjj5",styles:"display:block;pointer-events:none;position:relative;width:100%;user-select:none"}),T0t=({disabled:e,isFilled:t})=>{let n=t?"currentColor":qe.gray[300];return e&&(n=qe.gray[400]),ke({backgroundColor:n},"","")},E0t=we("span",{target:"e1epgpqk7"})("height:",vu,"px;left:0;position:absolute;top:9px;width:1px;",T0t,";"),B0t=({isFilled:e})=>ke({color:e?qe.gray[700]:qe.gray[300]},"",""),N0t=we("span",{target:"e1epgpqk6"})("color:",qe.gray[300],";font-size:11px;position:absolute;top:22px;white-space:nowrap;",dn({left:0}),";",dn({transform:"translateX( -50% )"},{transform:"translateX( 50% )"}),";",B0t,";"),Eue=({disabled:e})=>e?ke("background-color:",qe.gray[400],";",""):ke("background-color:",qe.theme.accent,";",""),L0t=we("span",{target:"e1epgpqk5"})("align-items:center;display:flex;height:",vu,"px;justify-content:center;margin-top:",(j2-vu)/2,"px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:",vu,"px;border-radius:",Se.radiusRound,";",Eue,";",dn({marginLeft:-10}),";",dn({transform:"translateX( 4.5px )"},{transform:"translateX( -4.5px )"}),";"),j0t=({isFocused:e})=>e?ke("&::before{content:' ';position:absolute;background-color:",qe.theme.accent,";opacity:0.4;border-radius:",Se.radiusRound,";height:",vu+8,"px;width:",vu+8,"px;top:-4px;left:-4px;}",""):"",P0t=we("span",{target:"e1epgpqk4"})("align-items:center;border-radius:",Se.radiusRound,";height:100%;outline:0;position:absolute;user-select:none;width:100%;",Eue,";",j0t,";"),I0t=we("input",{target:"e1epgpqk3"})("box-sizing:border-box;cursor:pointer;display:block;height:100%;left:0;margin:0 -",vu/2,"px;opacity:0;outline:none;position:absolute;right:0;top:0;width:calc( 100% + ",vu,"px );"),D0t=({show:e})=>ke({opacity:e?1:0},"","");var F0t={name:"1cypxip",styles:"top:-80%"},$0t={name:"1lr98c4",styles:"bottom:-80%"};const V0t=({position:e})=>e==="bottom"?$0t:F0t,H0t=we("span",{target:"e1epgpqk2"})("background:rgba( 0, 0, 0, 0.8 );border-radius:",Se.radiusSmall,";color:white;display:inline-block;font-size:12px;min-width:32px;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;text-align:center;user-select:none;line-height:1.4;@media not ( prefers-reduced-motion ){transition:opacity 120ms ease;}",D0t,";",V0t,";",dn({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),";"),U0t=we(T1,{target:"e1epgpqk1"})("display:inline-block;font-size:13px;margin-top:0;input[type='number']&{",R7,";}",dn({marginLeft:`${Ce(4)} !important`}),";"),X0t=we("span",{target:"e1epgpqk0"})("display:block;margin-top:0;button,button.is-small{margin-left:0;",R7,";}",dn({marginLeft:8}),";");function G0t(e,t){const{describedBy:n,label:o,value:r,...s}=e;return a.jsx(I0t,{...s,"aria-describedby":n,"aria-label":o,"aria-hidden":!1,ref:t,tabIndex:0,type:"range",value:r})}const K0t=O.forwardRef(G0t);function Y0t(e){const{className:t,isFilled:n=!1,label:o,style:r={},...s}=e,i=$("components-range-control__mark",n&&"is-filled",t),c=$("components-range-control__mark-label",n&&"is-filled");return a.jsxs(a.Fragment,{children:[a.jsx(E0t,{...s,"aria-hidden":"true",className:i,isFilled:n,style:r}),o&&a.jsx(N0t,{"aria-hidden":"true",className:c,isFilled:n,style:r,children:o})]})}function Z0t(e){const{disabled:t=!1,marks:n=!1,min:o=0,max:r=100,step:s=1,value:i=0,...c}=e;return a.jsxs(a.Fragment,{children:[a.jsx(S0t,{disabled:t,...c}),n&&a.jsx(Q0t,{disabled:t,marks:n,min:o,max:r,step:s,value:i})]})}function Q0t(e){const{disabled:t=!1,marks:n=!1,min:o=0,max:r=100,step:s=1,value:i=0}=e,l=J0t({marks:n,min:o,max:r,step:s==="any"?1:s,value:i});return a.jsx(W0t,{"aria-hidden":"true",className:"components-range-control__marks",children:l.map(u=>O.createElement(Y0t,{...u,key:u.key,"aria-hidden":"true",disabled:t}))})}function J0t({marks:e,min:t=0,max:n=100,step:o=1,value:r=0}){if(!e)return[];const s=n-t;if(!Array.isArray(e)){e=[];const c=1+Math.round(s/o);for(;c>e.push({value:o*e.length+t}););}const i=[];return e.forEach((c,l)=>{if(c.valuen)return;const u=`mark-${l}`,d=c.value<=r,p=`${(c.value-t)/s*100}%`,f={[ft()?"right":"left"]:p};i.push({...c,isFilled:d,key:u,style:f})}),i}function ent(e){const{className:t,inputRef:n,tooltipPosition:o,show:r=!1,style:s={},value:i=0,renderTooltipContent:c=b=>b,zIndex:l=100,...u}=e,d=tnt({inputRef:n,tooltipPosition:o}),p=$("components-simple-tooltip",t),f={...s,zIndex:l};return a.jsx(H0t,{...u,"aria-hidden":r,className:p,position:d,show:r,role:"tooltip",style:f,children:c(i)})}function tnt({inputRef:e,tooltipPosition:t}){const[n,o]=O.useState(),r=O.useCallback(()=>{e&&e.current&&o(t)},[t,e]);return O.useEffect(()=>{r()},[r]),O.useEffect(()=>(window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)})),n}const Sm=()=>{};function nnt({resetFallbackValue:e,initialPosition:t}){return e!==void 0?Number.isNaN(e)?null:e:t!==void 0?Number.isNaN(t)?null:t:null}function Bue(e,t){const{__nextHasNoMarginBottom:n=!1,afterIcon:o,allowReset:r=!1,beforeIcon:s,className:i,color:c=qe.theme.accent,currentInput:l,disabled:u=!1,help:d,hideLabelFromVision:p=!1,initialPosition:f,isShiftStepEnabled:b=!0,label:h,marks:g=!1,max:z=100,min:y=0,onBlur:x=Sm,onChange:v=Sm,onFocus:M=Sm,onMouseLeave:A=Sm,onMouseMove:_=Sm,railColor:w,renderTooltipContent:k=Ke=>Ke,resetFallbackValue:q,__next40pxDefaultSize:S=!1,shiftStep:C=10,showTooltip:T,step:W=1,trackColor:B,value:N,withInputField:E=!0,...L}=e,[I,P]=O0t({min:y,max:z,value:N??null,initial:f}),H=O.useRef(!1);let U=T,X=E;W==="any"&&(U=!1,X=!1);const[Z,ne]=O.useState(U),[oe,Y]=O.useState(!1),ee=O.useRef(),ie=ee.current?.matches(":focus"),se=!u&&oe,be=I===null,xe=be?"":I!==void 0?I:l,K=be?(z-y)/2+y:I,pe=be?50:(I-y)/(z-y)*100,G=`${S7(pe,0,100)}%`,re=$("components-range-control",i),Me=$("components-range-control__wrapper",!!g&&"is-marked"),he=He(Bue,"inspector-range-control"),Q=d?`${he}__help`:void 0,R=U!==!1&&Number.isFinite(I),j=Ke=>{const Nt=parseFloat(Ke.target.value);P(Nt),v(Nt)},V=Ke=>{let Nt=parseFloat(Ke);P(Nt),isNaN(Nt)?r&&(H.current=!0):((Ntz)&&(Nt=r4(Nt,y,z)),v(Nt),H.current=!1)},de=()=>{H.current&&(ge(),H.current=!1)},ge=()=>{const Ke=Number.isNaN(q)?null:q??null;P(Ke),v(Ke??void 0)},ve=()=>ne(!0),Ne=()=>ne(!1),et=Ke=>{x(Ke),Y(!1),Ne()},mt=Ke=>{M(Ke),Y(!0),ve()},Mt={[ft()?"right":"left"]:G};return a.jsx(z0,{__nextHasNoMarginBottom:n,__associatedWPComponentName:"RangeControl",className:re,label:h,hideLabelFromVision:p,id:`${he}`,help:d,children:a.jsxs(y0t,{className:"components-range-control__root",__next40pxDefaultSize:S,children:[s&&a.jsx(w0t,{children:a.jsx(xn,{icon:s})}),a.jsxs(_0t,{__nextHasNoMarginBottom:n,className:Me,color:c,marks:!!g,children:[a.jsx(K0t,{...L,className:"components-range-control__slider",describedBy:Q,disabled:u,id:`${he}`,label:h,max:z,min:y,onBlur:et,onChange:j,onFocus:mt,onMouseMove:_,onMouseLeave:A,ref:Gt([ee,t]),step:W,value:xe??void 0}),a.jsx(Z0t,{"aria-hidden":!0,disabled:u,marks:g,max:z,min:y,railColor:w,step:W,value:K}),a.jsx(R0t,{"aria-hidden":!0,className:"components-range-control__track",disabled:u,style:{width:G},trackColor:B}),a.jsx(L0t,{className:"components-range-control__thumb-wrapper",style:Mt,disabled:u,children:a.jsx(P0t,{"aria-hidden":!0,isFocused:se,disabled:u})}),R&&a.jsx(ent,{className:"components-range-control__tooltip",inputRef:ee,tooltipPosition:"bottom",renderTooltipContent:k,show:ie||Z,style:Mt,value:I})]}),o&&a.jsx(k0t,{children:a.jsx(xn,{icon:o})}),X&&a.jsx(U0t,{"aria-label":h,className:"components-range-control__number",disabled:u,inputMode:"decimal",isShiftStepEnabled:b,max:z,min:y,onBlur:de,onChange:V,shiftStep:C,size:S?"__unstable-large":"default",__unstableInputWidth:Ce(S?20:16),step:W,value:xe}),r&&a.jsx(X0t,{children:a.jsx(fe,{className:"components-range-control__reset",accessibleWhenDisabled:!u,disabled:u||I===nnt({resetFallbackValue:q,initialPosition:f}),variant:"secondary",size:"small",onClick:ge,children:m("Reset")})})]})})}const T0=O.forwardRef(Bue),ont=we(T1,{target:"ez9hsf47"})("width:",Ce(24),";"),rnt=we(i0,{target:"ez9hsf46"})("margin-left:",Ce(-2),";width:5em;"),snt=we(T0,{target:"ez9hsf45"})("flex:1;margin-right:",Ce(2),";"),int=` .react-colorful__interactive { width: calc( 100% - ${Ce(2)} ); margin-left: ${Ce(1)}; -}`,ant=we("div",{target:"ez9hsf44"})("padding-top:",Ce(2),";padding-right:0;padding-left:0;padding-bottom:0;"),cnt=we(Je,{target:"ez9hsf43"})("padding-left:",Ce(4),";padding-right:",Ce(4),";"),lnt=we(Q0,{target:"ez9hsf42"})("padding-top:",Ce(4),";padding-left:",Ce(4),";padding-right:",Ce(3),";padding-bottom:",Ce(5),";"),unt=we("div",{target:"ez9hsf41"})(B_,";width:216px;.react-colorful{display:flex;flex-direction:column;align-items:center;width:216px;height:auto;}.react-colorful__saturation{width:100%;border-radius:0;height:216px;margin-bottom:",Ce(4),";border-bottom:none;}.react-colorful__hue,.react-colorful__alpha{width:184px;height:16px;border-radius:",Se.radiusFull,";margin-bottom:",Ce(2),";}.react-colorful__pointer{height:16px;width:16px;border:none;box-shadow:0 0 2px 0 rgba( 0, 0, 0, 0.25 );outline:2px solid transparent;}.react-colorful__pointer-fill{box-shadow:inset 0 0 0 ",Se.borderWidthFocus," #fff;}",int,";"),dnt=we(fe,{target:"ez9hsf40"})("&&&&&{min-width:",Ce(6),";padding:0;>svg{margin-right:0;}}"),pnt=e=>{const{color:t,colorType:n}=e,[o,r]=O.useState(null),s=O.useRef(),i=af(()=>{switch(n){case"hsl":return t.toHslString();case"rgb":return t.toRgbString();default:case"hex":return t.toHex()}},()=>{s.current&&clearTimeout(s.current),r(t.toHex()),s.current=setTimeout(()=>{r(null),s.current=void 0},3e3)});return O.useEffect(()=>()=>{s.current&&clearTimeout(s.current)},[]),a.jsx(W1,{delay:0,hideOnClick:!1,text:o===t.toHex()?m("Copied!"):m("Copy"),children:a.jsx(dnt,{size:"small",ref:i,icon:k3,showTooltip:!1})})};function fnt(e,t){const n=Ut(e,"InputControlPrefixWrapper");return a.jsx(Yle,{...n,isPrefix:!0,ref:t})}const Fp=Qt(fnt,"InputControlPrefixWrapper"),ou=({min:e,max:t,label:n,abbreviation:o,onChange:r,value:s})=>{const i=c=>{if(!c){r(0);return}if(typeof c=="string"){r(parseInt(c,10));return}r(c)};return a.jsxs(Je,{spacing:4,children:[a.jsx(ont,{min:e,max:t,label:n,hideLabelFromVision:!0,value:s,onChange:i,prefix:a.jsx(Fp,{children:a.jsx(l0,{color:qe.theme.accent,lineHeight:1,children:o})}),spinControls:"none",size:"__unstable-large"}),a.jsx(snt,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:n,hideLabelFromVision:!0,min:e,max:t,value:s,onChange:r,withInputField:!1})]})},bnt=({color:e,onChange:t,enableAlpha:n})=>{const{r:o,g:r,b:s,a:i}=e.toRgb();return a.jsxs(a.Fragment,{children:[a.jsx(ou,{min:0,max:255,label:"Red",abbreviation:"R",value:o,onChange:c=>t(Tt({r:c,g:r,b:s,a:i}))}),a.jsx(ou,{min:0,max:255,label:"Green",abbreviation:"G",value:r,onChange:c=>t(Tt({r:o,g:c,b:s,a:i}))}),a.jsx(ou,{min:0,max:255,label:"Blue",abbreviation:"B",value:s,onChange:c=>t(Tt({r:o,g:r,b:c,a:i}))}),n&&a.jsx(ou,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(i*100),onChange:c=>t(Tt({r:o,g:r,b:s,a:c/100}))})]})},hnt=({color:e,onChange:t,enableAlpha:n})=>{const o=O.useMemo(()=>e.toHsl(),[e]),[r,s]=O.useState({...o}),i=e.isEqual(Tt(r));O.useEffect(()=>{i||s(o)},[o,i]);const c=i?r:o,l=u=>{const d=Tt({...c,...u});e.isEqual(d)?s(p=>({...p,...u})):t(d)};return a.jsxs(a.Fragment,{children:[a.jsx(ou,{min:0,max:359,label:"Hue",abbreviation:"H",value:c.h,onChange:u=>{l({h:u})}}),a.jsx(ou,{min:0,max:100,label:"Saturation",abbreviation:"S",value:c.s,onChange:u=>{l({s:u})}}),a.jsx(ou,{min:0,max:100,label:"Lightness",abbreviation:"L",value:c.l,onChange:u=>{l({l:u})}}),n&&a.jsx(ou,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*c.a),onChange:u=>{l({a:u/100})}})]})},mnt=({color:e,onChange:t,enableAlpha:n})=>{const o=s=>{if(!s)return;const i=s.startsWith("#")?s:"#"+s;t(Tt(i))},r=(s,i)=>{if(i.payload?.event?.nativeEvent?.inputType!=="insertFromPaste")return{...s};const l=s.value?.startsWith("#")?s.value.slice(1).toUpperCase():s.value?.toUpperCase();return{...s,value:l}};return a.jsx(Ps,{prefix:a.jsx(Fp,{children:a.jsx(l0,{color:qe.theme.accent,lineHeight:1,children:"#"})}),value:e.toHex().slice(1).toUpperCase(),onChange:o,maxLength:n?9:7,label:m("Hex color"),hideLabelFromVision:!0,size:"__unstable-large",__unstableStateReducer:r,__unstableInputWidth:"9em"})},Mnt=({colorType:e,color:t,onChange:n,enableAlpha:o})=>{const r={color:t,onChange:n,enableAlpha:o};switch(e){case"hsl":return a.jsx(hnt,{...r});case"rgb":return a.jsx(bnt,{...r});default:case"hex":return a.jsx(mnt,{...r})}};function Eh(){return(Eh=Object.assign||function(e){for(var t=1;t=0||(r[n]=e[n]);return r}function fW(e){var t=O.useRef(e),n=O.useRef(function(o){t.current&&t.current(o)});return t.current=e,n.current}var I2=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:z.buttons>0)&&r.current?s(tG(r.current,z,c.current)):g(!1)},h=function(){return g(!1)};function g(z){var y=l.current,x=bW(r.current),v=z?x.addEventListener:x.removeEventListener;v(y?"touchmove":"mousemove",b),v(y?"touchend":"mouseup",h)}return[function(z){var y=z.nativeEvent,x=r.current;if(x&&(nG(y),!function(M,A){return A&&!VM(M)}(y,l.current)&&x)){if(VM(y)){l.current=!0;var v=y.changedTouches||[];v.length&&(c.current=v[0].identifier)}x.focus(),s(tG(x,y,c.current)),g(!0)}},function(z){var y=z.which||z.keyCode;y<37||y>40||(z.preventDefault(),i({left:y===39?.05:y===37?-.05:0,top:y===40?.05:y===38?-.05:0}))},g]},[i,s]),d=u[0],p=u[1],f=u[2];return O.useEffect(function(){return f},[f]),G0.createElement("div",Eh({},o,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:r,onKeyDown:p,tabIndex:0,role:"slider"}))}),N3=function(e){return e.filter(Boolean).join(" ")},E7=function(e){var t=e.color,n=e.left,o=e.top,r=o===void 0?.5:o,s=N3(["react-colorful__pointer",e.className]);return G0.createElement("div",{className:s,style:{top:100*r+"%",left:100*n+"%"}},G0.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},Yo=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Nue=function(e){var t=e.s,n=e.v,o=e.a,r=(200-t)*n/100;return{h:Yo(e.h),s:Yo(r>0&&r<200?t*n/100/(r<=100?r:200-r)*100:0),l:Yo(r/2),a:Yo(o,2)}},hW=function(e){var t=Nue(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Uq=function(e){var t=Nue(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},Lue=function(e){var t=e.h,n=e.s,o=e.v,r=e.a;t=t/360*6,n/=100,o/=100;var s=Math.floor(t),i=o*(1-n),c=o*(1-(t-s)*n),l=o*(1-(1-t+s)*n),u=s%6;return{r:Yo(255*[o,c,i,i,l,o][u]),g:Yo(255*[l,o,o,c,i,i][u]),b:Yo(255*[i,i,l,o,o,c][u]),a:Yo(r,2)}},jue=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?znt({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},gnt=jue,znt=function(e){var t=e.r,n=e.g,o=e.b,r=e.a,s=Math.max(t,n,o),i=s-Math.min(t,n,o),c=i?s===t?(n-o)/i:s===n?2+(o-t)/i:4+(t-n)/i:0;return{h:Yo(60*(c<0?c+6:c)),s:Yo(s?i/s*100:0),v:Yo(s/255*100),a:r}},Pue=G0.memo(function(e){var t=e.hue,n=e.onChange,o=N3(["react-colorful__hue",e.className]);return G0.createElement("div",{className:o},G0.createElement(T7,{onMove:function(r){n({h:360*r.left})},onKey:function(r){n({h:I2(t+360*r.left,0,360)})},"aria-label":"Hue","aria-valuenow":Yo(t),"aria-valuemax":"360","aria-valuemin":"0"},G0.createElement(E7,{className:"react-colorful__hue-pointer",left:t/360,color:hW({h:t,s:100,v:100,a:1})})))}),Iue=G0.memo(function(e){var t=e.hsva,n=e.onChange,o={backgroundColor:hW({h:t.h,s:100,v:100,a:1})};return G0.createElement("div",{className:"react-colorful__saturation",style:o},G0.createElement(T7,{onMove:function(r){n({s:100*r.left,v:100-100*r.top})},onKey:function(r){n({s:I2(t.s+100*r.left,0,100),v:I2(t.v-100*r.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Yo(t.s)+"%, Brightness "+Yo(t.v)+"%"},G0.createElement(E7,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:hW(t)})))}),Ont=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},Due=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")};function Fue(e,t,n){var o=fW(n),r=O.useState(function(){return e.toHsva(t)}),s=r[0],i=r[1],c=O.useRef({color:t,hsva:s});O.useEffect(function(){if(!e.equal(t,c.current.color)){var u=e.toHsva(t);c.current={hsva:u,color:t},i(u)}},[t,e]),O.useEffect(function(){var u;Ont(s,c.current.hsva)||e.equal(u=e.fromHsva(s),c.current.color)||(c.current={hsva:s,color:u},o(u))},[s,e,o]);var l=O.useCallback(function(u){i(function(d){return Object.assign({},d,u)})},[]);return[s,l]}var Ant=typeof window<"u"?O.useLayoutEffect:O.useEffect,ynt=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},oG=new Map,$ue=function(e){Ant(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!oG.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,oG.set(t,n);var o=ynt();o&&n.setAttribute("nonce",o),t.head.appendChild(n)}},[])},vnt=function(e){var t=e.className,n=e.colorModel,o=e.color,r=o===void 0?n.defaultColor:o,s=e.onChange,i=W7(e,["className","colorModel","color","onChange"]),c=O.useRef(null);$ue(c);var l=Fue(n,r,s),u=l[0],d=l[1],p=N3(["react-colorful",t]);return G0.createElement("div",Eh({},i,{ref:c,className:p}),G0.createElement(Iue,{hsva:u,onChange:d}),G0.createElement(Pue,{hue:u.h,onChange:d,className:"react-colorful__last-control"}))},xnt=function(e){var t=e.className,n=e.hsva,o=e.onChange,r={backgroundImage:"linear-gradient(90deg, "+Uq(Object.assign({},n,{a:0}))+", "+Uq(Object.assign({},n,{a:1}))+")"},s=N3(["react-colorful__alpha",t]),i=Yo(100*n.a);return G0.createElement("div",{className:s},G0.createElement("div",{className:"react-colorful__alpha-gradient",style:r}),G0.createElement(T7,{onMove:function(c){o({a:c.left})},onKey:function(c){o({a:I2(n.a+c.left)})},"aria-label":"Alpha","aria-valuetext":i+"%","aria-valuenow":i,"aria-valuemin":"0","aria-valuemax":"100"},G0.createElement(E7,{className:"react-colorful__alpha-pointer",left:n.a,color:Uq(n)})))},_nt=function(e){var t=e.className,n=e.colorModel,o=e.color,r=o===void 0?n.defaultColor:o,s=e.onChange,i=W7(e,["className","colorModel","color","onChange"]),c=O.useRef(null);$ue(c);var l=Fue(n,r,s),u=l[0],d=l[1],p=N3(["react-colorful",t]);return G0.createElement("div",Eh({},i,{ref:c,className:p}),G0.createElement(Iue,{hsva:u,onChange:d}),G0.createElement(Pue,{hue:u.h,onChange:d}),G0.createElement(xnt,{hsva:u,onChange:d,className:"react-colorful__last-control"}))},wnt={defaultColor:"rgba(0, 0, 0, 1)",toHsva:jue,fromHsva:function(e){var t=Lue(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:Due},knt=function(e){return G0.createElement(_nt,Eh({},e,{colorModel:wnt}))},qnt={defaultColor:"rgb(0, 0, 0)",toHsva:gnt,fromHsva:function(e){var t=Lue(e);return"rgb("+t.r+", "+t.g+", "+t.b+")"},equal:Due},Snt=function(e){return G0.createElement(vnt,Eh({},e,{colorModel:qnt}))};const Cnt=({color:e,enableAlpha:t,onChange:n})=>{const o=t?knt:Snt,r=O.useMemo(()=>e.toRgbString(),[e]);return a.jsx(o,{color:r,onChange:s=>{n(Tt(s))},onPointerDown:({currentTarget:s,pointerId:i})=>{s.setPointerCapture(i)},onPointerUp:({currentTarget:s,pointerId:i})=>{s.releasePointerCapture(i)}})};fs([bs]);const Rnt=[{label:"RGB",value:"rgb"},{label:"HSL",value:"hsl"},{label:"Hex",value:"hex"}],Wnt=(e,t)=>{const{enableAlpha:n=!1,color:o,onChange:r,defaultValue:s="#fff",copyFormat:i,...c}=Ut(e,"ColorPicker"),[l,u]=g3({onChange:r,value:o,defaultValue:s}),d=O.useMemo(()=>Tt(l||""),[l]),p=Uo(u),f=O.useCallback(g=>{p(g.toHex())},[p]),[b,h]=O.useState(i||"hex");return a.jsxs(unt,{ref:t,...c,children:[a.jsx(Cnt,{onChange:f,color:d,enableAlpha:n}),a.jsxs(ant,{children:[a.jsxs(cnt,{justify:"space-between",children:[a.jsx(rnt,{__nextHasNoMarginBottom:!0,options:Rnt,value:b,onChange:g=>h(g),label:m("Color format"),hideLabelFromVision:!0,variant:"minimal"}),a.jsx(pnt,{color:d,colorType:i||b})]}),a.jsx(lnt,{direction:"column",gap:2,children:a.jsx(Mnt,{colorType:b,color:d,onChange:f,enableAlpha:n})})]})]})},Tnt=Qt(Wnt,"ColorPicker");function Ent(e){return typeof e.onChangeComplete<"u"||typeof e.disableAlpha<"u"||typeof e.color?.hex=="string"}function Bnt(e){if(e!==void 0){if(typeof e=="string")return e;if(e.hex)return e.hex}}const Nnt=ps(e=>{const t=Tt(e),n=t.toHex(),o=t.toRgb(),r=t.toHsv(),s=t.toHsl();return{hex:n,rgb:o,hsv:r,hsl:s,source:"hex",oldHue:s.h}});function Lnt(e){const{onChangeComplete:t}=e,n=O.useCallback(o=>{t(Nnt(o))},[t]);return Ent(e)?{color:Bnt(e.color),enableAlpha:!e.disableAlpha,onChange:n}:{...e,color:e.color,enableAlpha:e.enableAlpha,onChange:e.onChange}}const B7=e=>a.jsx(Tnt,{...Lnt(e)}),lw=O.createContext({});function jnt(e,t){const{isPressed:n,...o}=e;return a.jsx(fe,{...o,"aria-pressed":n,ref:t})}const Pnt=O.forwardRef(jnt);function Int(e,t){const{id:n,isSelected:o,...r}=e,{setActiveId:s,activeId:i}=O.useContext(lw);return O.useEffect(()=>{o&&!i&&window.setTimeout(()=>s?.(n),0)},[o,s,i,n]),a.jsx(hi.Item,{render:a.jsx(fe,{...r,role:"option","aria-selected":!!o,ref:t}),id:n})}const Dnt=O.forwardRef(Int);function Vue({className:e,isSelected:t,selectedIconProps:n={},tooltipText:o,...r}){const{baseId:s,setActiveId:i}=O.useContext(lw),l={id:He(Vue,s||"components-circular-option-picker__option"),className:"components-circular-option-picker__option",...r},d=i!==void 0?a.jsx(Dnt,{...l,isSelected:t}):a.jsx(Pnt,{...l,isPressed:t});return a.jsxs("div",{className:$(e,"components-circular-option-picker__option-wrapper"),children:[o?a.jsx(W1,{text:o,children:d}):d,t&&a.jsx(t0,{icon:no,...n})]})}function Fnt({className:e,options:t,...n}){const o="aria-label"in n||"aria-labelledby"in n?"group":void 0;return a.jsx("div",{...n,role:o,className:$("components-circular-option-picker__option-group","components-circular-option-picker__swatches",e),children:t})}function $nt({buttonProps:e,className:t,dropdownProps:n,linkText:o}){return a.jsx(B0,{className:$("components-circular-option-picker__dropdown-link-action",t),renderToggle:({isOpen:r,onToggle:s})=>a.jsx(fe,{"aria-expanded":r,"aria-haspopup":"true",onClick:s,variant:"link",...e,children:o}),...n})}function Vnt({className:e,children:t,...n}){return a.jsx(fe,{className:$("components-circular-option-picker__clear",e),variant:"tertiary",...n,children:t})}function Hnt(e){const{actions:t,options:n,baseId:o,className:r,loop:s=!0,children:i,...c}=e,[l,u]=O.useState(void 0),d=O.useMemo(()=>({baseId:o,activeId:l,setActiveId:u}),[o,l,u]);return a.jsx("div",{className:r,children:a.jsxs(lw.Provider,{value:d,children:[a.jsx(hi,{...c,id:o,focusLoop:s,rtl:ft(),role:"listbox",activeId:l,setActiveId:u,children:n}),i,t]})})}function Unt(e){const{actions:t,options:n,children:o,baseId:r,...s}=e,i=O.useMemo(()=>({baseId:r}),[r]);return a.jsx("div",{...s,id:r,children:a.jsxs(lw.Provider,{value:i,children:[n,o,t]})})}function uo(e){const{asButtons:t,actions:n,options:o,children:r,className:s,...i}=e,c=He(uo,"components-circular-option-picker",i.id),l=t?Unt:Hnt,u=n?a.jsx("div",{className:"components-circular-option-picker__custom-clear-wrapper",children:n}):void 0,d=a.jsx("div",{className:"components-circular-option-picker__swatches",children:o});return a.jsx(l,{...i,baseId:c,className:$("components-circular-option-picker",s),actions:u,options:d,children:r})}uo.Option=Vue;uo.OptionGroup=Fnt;uo.ButtonAction=Vnt;uo.DropdownLinkAction=$nt;function Xnt(e){const{expanded:t=!1,alignment:n="stretch",...o}=Ut(e,"VStack");return gue({direction:"column",expanded:t,alignment:n,...o})}function Gnt(e,t){const n=Xnt(e);return a.jsx(C0,{...n,ref:t})}const Ye=Qt(Gnt,"VStack");function Knt(e){const{as:t,level:n=2,color:o=qe.gray[900],isBlock:r=!0,weight:s=Se.fontWeightHeading,...i}=Ut(e,"Heading"),c=t||`h${n}`,l={};return typeof c=="string"&&c[0]!=="h"&&(l.role="heading",l["aria-level"]=typeof n=="string"?parseInt(n):n),{...Hle({color:o,isBlock:r,weight:s,size:wQe(n),...i}),...l,as:c}}function Ynt(e,t){const n=Knt(e);return a.jsx(C0,{...n,ref:t})}const ec=Qt(Ynt,"Heading"),Hue=we(ec,{target:"ev9wop70"})({name:"13lxv2o",styles:"text-transform:uppercase;line-height:24px;font-weight:500;&&&{font-size:11px;margin-bottom:0;}"}),Znt=({paddingSize:e="small"})=>{if(e==="none")return;const t={small:Ce(2),medium:Ce(4)};return ke("padding:",t[e]||t.small,";","")},Qnt=we("div",{target:"eovvns30"})("margin-left:",Ce(-2),";margin-right:",Ce(-2),";&:first-of-type{margin-top:",Ce(-2),";}&:last-of-type{margin-bottom:",Ce(-2),";}",Znt,";");function Jnt(e,t){const{paddingSize:n="small",...o}=Ut(e,"DropdownContentWrapper");return a.jsx(Qnt,{...o,paddingSize:n,ref:t})}const Ni=Qt(Jnt,"DropdownContentWrapper");fs([bs,bf]);const Uue=e=>{const t=/var\(/.test(e??""),n=/color-mix\(/.test(e??"");return!t&&!n},e1t=(e,t=[],n=!1)=>{if(!e)return"";const o=e?Uue(e):!1,r=o?Tt(e).toHex():e,s=n?t:[{colors:t}];for(const{colors:i}of s)for(const{name:c,color:l}of i){const u=o?Tt(l).toHex():l;if(r===u)return c}return m("Custom")},t1t=e=>Array.isArray(e.colors)&&!("color"in e),Xue=e=>e.length>0&&e.every(t=>t1t(t)),n1t=(e,t)=>{if(!e||!t||Uue(e))return e;const{ownerDocument:n}=t,{defaultView:o}=n,r=o?.getComputedStyle(t).backgroundColor;return r?Tt(r).toHex():e};fs([bs,bf]);function Gue({className:e,clearColor:t,colors:n,onChange:o,value:r,...s}){const i=O.useMemo(()=>n.map(({color:c,name:l},u)=>{const d=Tt(c),p=r===c;return a.jsx(uo.Option,{isSelected:p,selectedIconProps:p?{fill:d.contrast()>d.contrast("#000")?"#fff":"#000"}:{},tooltipText:l||le(m("Color code: %s"),c),style:{backgroundColor:c,color:c},onClick:p?t:()=>o(c,u),"aria-label":l?le(m("Color: %s"),l):le(m("Color code: %s"),c)},`${c}-${u}`)}),[n,r,o,t]);return a.jsx(uo.OptionGroup,{className:e,options:i,...s})}function Kue({className:e,clearColor:t,colors:n,onChange:o,value:r,headingLevel:s}){const i=He(Kue,"color-palette");return n.length===0?null:a.jsx(Ye,{spacing:3,className:e,children:n.map(({name:c,colors:l},u)=>{const d=`${i}-${u}`;return a.jsxs(Ye,{spacing:2,children:[a.jsx(Hue,{id:d,level:s,children:c}),a.jsx(Gue,{clearColor:t,colors:l,onChange:p=>o(p,u),value:r,"aria-labelledby":d})]},u)})})}function Yue({isRenderedInSidebar:e,popoverProps:t,...n}){const o=O.useMemo(()=>({shift:!0,resize:!1,...e?{placement:"left-start",offset:34}:{placement:"bottom",offset:8},...t}),[e,t]);return a.jsx(B0,{contentClassName:"components-color-palette__custom-color-dropdown-content",popoverProps:o,...n})}function o1t(e,t){const{asButtons:n,loop:o,clearable:r=!0,colors:s=[],disableCustomColors:i=!1,enableAlpha:c=!1,onChange:l,value:u,__experimentalIsRenderedInSidebar:d=!1,headingLevel:p=2,"aria-label":f,"aria-labelledby":b,...h}=e,[g,z]=O.useState(u),y=O.useCallback(()=>l(void 0),[l]),x=O.useCallback(T=>{z(n1t(u,T))},[u]),v=Xue(s),M=O.useMemo(()=>e1t(u,s,v),[u,s,v]),A=()=>a.jsx(Ni,{paddingSize:"none",children:a.jsx(B7,{color:g,onChange:T=>l(T),enableAlpha:c})}),_=u?.startsWith("#"),w=u?.replace(/^var\((.+)\)$/,"$1"),k=w?le(m('Custom color picker. The currently selected color is called "%1$s" and has a value of "%2$s".'),M,w):m("Custom color picker."),q={clearColor:y,onChange:l,value:u},S=!!r&&a.jsx(uo.ButtonAction,{onClick:y,children:m("Clear")});let C;if(n)C={asButtons:!0};else{const T={asButtons:!1,loop:o};f?C={...T,"aria-label":f}:b?C={...T,"aria-labelledby":b}:C={...T,"aria-label":m("Custom color picker.")}}return a.jsxs(Ye,{spacing:3,ref:t,...h,children:[!i&&a.jsx(Yue,{isRenderedInSidebar:d,renderContent:A,renderToggle:({isOpen:T,onToggle:W})=>a.jsxs(Ye,{className:"components-color-palette__custom-color-wrapper",spacing:0,children:[a.jsx("button",{ref:x,className:"components-color-palette__custom-color-button","aria-expanded":T,"aria-haspopup":"true",onClick:W,"aria-label":k,style:{background:u},type:"button"}),a.jsxs(Ye,{className:"components-color-palette__custom-color-text-wrapper",spacing:.5,children:[a.jsx(Ho,{className:"components-color-palette__custom-color-name",children:u?M:m("No color selected")}),a.jsx(Ho,{className:$("components-color-palette__custom-color-value",{"components-color-palette__custom-color-value--is-hex":_}),children:w})]})]})}),(s.length>0||S)&&a.jsx(uo,{...C,actions:S,options:v?a.jsx(Kue,{...q,headingLevel:p,colors:s,value:u}):a.jsx(Gue,{...q,colors:s,value:u})})]})}const uw=O.forwardRef(o1t),N7=we(T1,{target:"e1bagdl32"})("&&&{input{display:block;width:100%;}",R3,"{transition:box-shadow 0.1s linear;}}"),Zue=({selectSize:e})=>({small:ke("box-sizing:border-box;padding:2px 1px;width:20px;font-size:8px;line-height:1;letter-spacing:-0.5px;text-transform:uppercase;text-align-last:center;&:not( :disabled ){color:",qe.gray[800],";}",""),default:ke("box-sizing:border-box;min-width:24px;max-width:48px;height:24px;margin-inline-end:",Ce(2),";padding:",Ce(1),";font-size:13px;line-height:1;text-align-last:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;field-sizing:content;&:not( :disabled ){color:",qe.theme.accent,";}","")})[e],r1t=we("div",{target:"e1bagdl31"})("&&&{pointer-events:none;",Zue,";color:",qe.gray[900],";}"),s1t=({selectSize:e="default"})=>({small:ke("height:100%;border:1px solid transparent;transition:box-shadow 0.1s linear,border 0.1s linear;",dn({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," &:not(:disabled):hover{background-color:",qe.gray[100],";}&:focus{border:1px solid ",qe.ui.borderFocus,";box-shadow:inset 0 0 0 ",Se.borderWidth+" "+qe.ui.borderFocus,";outline-offset:0;outline:2px solid transparent;z-index:1;}",""),default:ke("display:flex;justify-content:center;align-items:center;&:where( :not( :disabled ) ):hover{box-shadow:0 0 0 ",Se.borderWidth+" "+qe.ui.borderFocus,";outline:",Se.borderWidth," solid transparent;}&:focus{box-shadow:0 0 0 ",Se.borderWidthFocus+" "+qe.ui.borderFocus,";outline:",Se.borderWidthFocus," solid transparent;}","")})[e],Que=we("select",{target:"e1bagdl30"})("&&&{appearance:none;background:transparent;border-radius:",Se.radiusXSmall,";border:none;display:block;outline:none;margin:0;min-height:auto;font-family:inherit;",Zue,";",s1t,";&:not( :disabled ){cursor:pointer;}}"),i1t=ke("box-shadow:inset ",Se.controlBoxShadowFocus,";",""),a1t=ke("border:0;padding:0;margin:0;",B_,";",""),c1t=()=>ke(N7,"{flex:1 1 40%;}&& ",Que,"{min-height:0;}",""),l1t=ke(N7,"{flex:0 0 auto;}",""),u1t=e=>ke("height:",e==="__unstable-large"?"40px":"30px",";",""),d1t=ke("background:#fff;&&>button{aspect-ratio:1;padding:0;display:flex;align-items:center;justify-content:center;",dn({borderRadius:"2px 0 0 2px"},{borderRadius:"0 2px 2px 0"})()," border:",Se.borderWidth," solid ",qe.ui.border,";&:focus,&:hover:not( :disabled ){",i1t," border-color:",qe.ui.borderFocus,";z-index:1;position:relative;}}",""),p1t=e=>{const{color:t,style:n}=e||{},o=n&&n!=="none"?qe.gray[300]:void 0;return ke("border-style:",n==="none"?"solid":n,";border-color:",t||o,";","")},f1t=(e,t)=>{const{style:n}=e||{};return ke("border-radius:",Se.radiusFull,";border:2px solid transparent;",n?p1t(e):void 0," width:",t==="__unstable-large"?"24px":"22px",";height:",t==="__unstable-large"?"24px":"22px",";padding:",t==="__unstable-large"?"2px":"1px",";&>span{height:",Ce(4),";width:",Ce(4),`;background:linear-gradient( +}`,ant=we("div",{target:"ez9hsf44"})("padding-top:",Ce(2),";padding-right:0;padding-left:0;padding-bottom:0;"),cnt=we(Je,{target:"ez9hsf43"})("padding-left:",Ce(4),";padding-right:",Ce(4),";"),lnt=we(Q0,{target:"ez9hsf42"})("padding-top:",Ce(4),";padding-left:",Ce(4),";padding-right:",Ce(3),";padding-bottom:",Ce(5),";"),unt=we("div",{target:"ez9hsf41"})(B_,";width:216px;.react-colorful{display:flex;flex-direction:column;align-items:center;width:216px;height:auto;}.react-colorful__saturation{width:100%;border-radius:0;height:216px;margin-bottom:",Ce(4),";border-bottom:none;}.react-colorful__hue,.react-colorful__alpha{width:184px;height:16px;border-radius:",Se.radiusFull,";margin-bottom:",Ce(2),";}.react-colorful__pointer{height:16px;width:16px;border:none;box-shadow:0 0 2px 0 rgba( 0, 0, 0, 0.25 );outline:2px solid transparent;}.react-colorful__pointer-fill{box-shadow:inset 0 0 0 ",Se.borderWidthFocus," #fff;}",int,";"),dnt=we(fe,{target:"ez9hsf40"})("&&&&&{min-width:",Ce(6),";padding:0;>svg{margin-right:0;}}"),pnt=e=>{const{color:t,colorType:n}=e,[o,r]=O.useState(null),s=O.useRef(),i=af(()=>{switch(n){case"hsl":return t.toHslString();case"rgb":return t.toRgbString();default:case"hex":return t.toHex()}},()=>{s.current&&clearTimeout(s.current),r(t.toHex()),s.current=setTimeout(()=>{r(null),s.current=void 0},3e3)});return O.useEffect(()=>()=>{s.current&&clearTimeout(s.current)},[]),a.jsx(W1,{delay:0,hideOnClick:!1,text:o===t.toHex()?m("Copied!"):m("Copy"),children:a.jsx(dnt,{size:"small",ref:i,icon:k3,showTooltip:!1})})};function fnt(e,t){const n=Ut(e,"InputControlPrefixWrapper");return a.jsx(Yle,{...n,isPrefix:!0,ref:t})}const Fp=Qt(fnt,"InputControlPrefixWrapper"),ou=({min:e,max:t,label:n,abbreviation:o,onChange:r,value:s})=>{const i=c=>{if(!c){r(0);return}if(typeof c=="string"){r(parseInt(c,10));return}r(c)};return a.jsxs(Je,{spacing:4,children:[a.jsx(ont,{min:e,max:t,label:n,hideLabelFromVision:!0,value:s,onChange:i,prefix:a.jsx(Fp,{children:a.jsx(l0,{color:qe.theme.accent,lineHeight:1,children:o})}),spinControls:"none",size:"__unstable-large"}),a.jsx(snt,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:n,hideLabelFromVision:!0,min:e,max:t,value:s,onChange:r,withInputField:!1})]})},bnt=({color:e,onChange:t,enableAlpha:n})=>{const{r:o,g:r,b:s,a:i}=e.toRgb();return a.jsxs(a.Fragment,{children:[a.jsx(ou,{min:0,max:255,label:"Red",abbreviation:"R",value:o,onChange:c=>t(Tt({r:c,g:r,b:s,a:i}))}),a.jsx(ou,{min:0,max:255,label:"Green",abbreviation:"G",value:r,onChange:c=>t(Tt({r:o,g:c,b:s,a:i}))}),a.jsx(ou,{min:0,max:255,label:"Blue",abbreviation:"B",value:s,onChange:c=>t(Tt({r:o,g:r,b:c,a:i}))}),n&&a.jsx(ou,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(i*100),onChange:c=>t(Tt({r:o,g:r,b:s,a:c/100}))})]})},hnt=({color:e,onChange:t,enableAlpha:n})=>{const o=O.useMemo(()=>e.toHsl(),[e]),[r,s]=O.useState({...o}),i=e.isEqual(Tt(r));O.useEffect(()=>{i||s(o)},[o,i]);const c=i?r:o,l=u=>{const d=Tt({...c,...u});e.isEqual(d)?s(p=>({...p,...u})):t(d)};return a.jsxs(a.Fragment,{children:[a.jsx(ou,{min:0,max:359,label:"Hue",abbreviation:"H",value:c.h,onChange:u=>{l({h:u})}}),a.jsx(ou,{min:0,max:100,label:"Saturation",abbreviation:"S",value:c.s,onChange:u=>{l({s:u})}}),a.jsx(ou,{min:0,max:100,label:"Lightness",abbreviation:"L",value:c.l,onChange:u=>{l({l:u})}}),n&&a.jsx(ou,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*c.a),onChange:u=>{l({a:u/100})}})]})},mnt=({color:e,onChange:t,enableAlpha:n})=>{const o=s=>{if(!s)return;const i=s.startsWith("#")?s:"#"+s;t(Tt(i))},r=(s,i)=>{if(i.payload?.event?.nativeEvent?.inputType!=="insertFromPaste")return{...s};const l=s.value?.startsWith("#")?s.value.slice(1).toUpperCase():s.value?.toUpperCase();return{...s,value:l}};return a.jsx(Is,{prefix:a.jsx(Fp,{children:a.jsx(l0,{color:qe.theme.accent,lineHeight:1,children:"#"})}),value:e.toHex().slice(1).toUpperCase(),onChange:o,maxLength:n?9:7,label:m("Hex color"),hideLabelFromVision:!0,size:"__unstable-large",__unstableStateReducer:r,__unstableInputWidth:"9em"})},Mnt=({colorType:e,color:t,onChange:n,enableAlpha:o})=>{const r={color:t,onChange:n,enableAlpha:o};switch(e){case"hsl":return a.jsx(hnt,{...r});case"rgb":return a.jsx(bnt,{...r});default:case"hex":return a.jsx(mnt,{...r})}};function Eh(){return(Eh=Object.assign||function(e){for(var t=1;t=0||(r[n]=e[n]);return r}function fW(e){var t=O.useRef(e),n=O.useRef(function(o){t.current&&t.current(o)});return t.current=e,n.current}var I2=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:z.buttons>0)&&r.current?s(tG(r.current,z,c.current)):g(!1)},h=function(){return g(!1)};function g(z){var y=l.current,x=bW(r.current),v=z?x.addEventListener:x.removeEventListener;v(y?"touchmove":"mousemove",b),v(y?"touchend":"mouseup",h)}return[function(z){var y=z.nativeEvent,x=r.current;if(x&&(nG(y),!function(M,A){return A&&!VM(M)}(y,l.current)&&x)){if(VM(y)){l.current=!0;var v=y.changedTouches||[];v.length&&(c.current=v[0].identifier)}x.focus(),s(tG(x,y,c.current)),g(!0)}},function(z){var y=z.which||z.keyCode;y<37||y>40||(z.preventDefault(),i({left:y===39?.05:y===37?-.05:0,top:y===40?.05:y===38?-.05:0}))},g]},[i,s]),d=u[0],p=u[1],f=u[2];return O.useEffect(function(){return f},[f]),G0.createElement("div",Eh({},o,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:r,onKeyDown:p,tabIndex:0,role:"slider"}))}),N3=function(e){return e.filter(Boolean).join(" ")},E7=function(e){var t=e.color,n=e.left,o=e.top,r=o===void 0?.5:o,s=N3(["react-colorful__pointer",e.className]);return G0.createElement("div",{className:s,style:{top:100*r+"%",left:100*n+"%"}},G0.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},Yo=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Nue=function(e){var t=e.s,n=e.v,o=e.a,r=(200-t)*n/100;return{h:Yo(e.h),s:Yo(r>0&&r<200?t*n/100/(r<=100?r:200-r)*100:0),l:Yo(r/2),a:Yo(o,2)}},hW=function(e){var t=Nue(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Uq=function(e){var t=Nue(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},Lue=function(e){var t=e.h,n=e.s,o=e.v,r=e.a;t=t/360*6,n/=100,o/=100;var s=Math.floor(t),i=o*(1-n),c=o*(1-(t-s)*n),l=o*(1-(1-t+s)*n),u=s%6;return{r:Yo(255*[o,c,i,i,l,o][u]),g:Yo(255*[l,o,o,c,i,i][u]),b:Yo(255*[i,i,l,o,o,c][u]),a:Yo(r,2)}},jue=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?znt({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},gnt=jue,znt=function(e){var t=e.r,n=e.g,o=e.b,r=e.a,s=Math.max(t,n,o),i=s-Math.min(t,n,o),c=i?s===t?(n-o)/i:s===n?2+(o-t)/i:4+(t-n)/i:0;return{h:Yo(60*(c<0?c+6:c)),s:Yo(s?i/s*100:0),v:Yo(s/255*100),a:r}},Pue=G0.memo(function(e){var t=e.hue,n=e.onChange,o=N3(["react-colorful__hue",e.className]);return G0.createElement("div",{className:o},G0.createElement(T7,{onMove:function(r){n({h:360*r.left})},onKey:function(r){n({h:I2(t+360*r.left,0,360)})},"aria-label":"Hue","aria-valuenow":Yo(t),"aria-valuemax":"360","aria-valuemin":"0"},G0.createElement(E7,{className:"react-colorful__hue-pointer",left:t/360,color:hW({h:t,s:100,v:100,a:1})})))}),Iue=G0.memo(function(e){var t=e.hsva,n=e.onChange,o={backgroundColor:hW({h:t.h,s:100,v:100,a:1})};return G0.createElement("div",{className:"react-colorful__saturation",style:o},G0.createElement(T7,{onMove:function(r){n({s:100*r.left,v:100-100*r.top})},onKey:function(r){n({s:I2(t.s+100*r.left,0,100),v:I2(t.v-100*r.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Yo(t.s)+"%, Brightness "+Yo(t.v)+"%"},G0.createElement(E7,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:hW(t)})))}),Ont=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},Due=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")};function Fue(e,t,n){var o=fW(n),r=O.useState(function(){return e.toHsva(t)}),s=r[0],i=r[1],c=O.useRef({color:t,hsva:s});O.useEffect(function(){if(!e.equal(t,c.current.color)){var u=e.toHsva(t);c.current={hsva:u,color:t},i(u)}},[t,e]),O.useEffect(function(){var u;Ont(s,c.current.hsva)||e.equal(u=e.fromHsva(s),c.current.color)||(c.current={hsva:s,color:u},o(u))},[s,e,o]);var l=O.useCallback(function(u){i(function(d){return Object.assign({},d,u)})},[]);return[s,l]}var Ant=typeof window<"u"?O.useLayoutEffect:O.useEffect,ynt=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},oG=new Map,$ue=function(e){Ant(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!oG.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,oG.set(t,n);var o=ynt();o&&n.setAttribute("nonce",o),t.head.appendChild(n)}},[])},vnt=function(e){var t=e.className,n=e.colorModel,o=e.color,r=o===void 0?n.defaultColor:o,s=e.onChange,i=W7(e,["className","colorModel","color","onChange"]),c=O.useRef(null);$ue(c);var l=Fue(n,r,s),u=l[0],d=l[1],p=N3(["react-colorful",t]);return G0.createElement("div",Eh({},i,{ref:c,className:p}),G0.createElement(Iue,{hsva:u,onChange:d}),G0.createElement(Pue,{hue:u.h,onChange:d,className:"react-colorful__last-control"}))},xnt=function(e){var t=e.className,n=e.hsva,o=e.onChange,r={backgroundImage:"linear-gradient(90deg, "+Uq(Object.assign({},n,{a:0}))+", "+Uq(Object.assign({},n,{a:1}))+")"},s=N3(["react-colorful__alpha",t]),i=Yo(100*n.a);return G0.createElement("div",{className:s},G0.createElement("div",{className:"react-colorful__alpha-gradient",style:r}),G0.createElement(T7,{onMove:function(c){o({a:c.left})},onKey:function(c){o({a:I2(n.a+c.left)})},"aria-label":"Alpha","aria-valuetext":i+"%","aria-valuenow":i,"aria-valuemin":"0","aria-valuemax":"100"},G0.createElement(E7,{className:"react-colorful__alpha-pointer",left:n.a,color:Uq(n)})))},_nt=function(e){var t=e.className,n=e.colorModel,o=e.color,r=o===void 0?n.defaultColor:o,s=e.onChange,i=W7(e,["className","colorModel","color","onChange"]),c=O.useRef(null);$ue(c);var l=Fue(n,r,s),u=l[0],d=l[1],p=N3(["react-colorful",t]);return G0.createElement("div",Eh({},i,{ref:c,className:p}),G0.createElement(Iue,{hsva:u,onChange:d}),G0.createElement(Pue,{hue:u.h,onChange:d}),G0.createElement(xnt,{hsva:u,onChange:d,className:"react-colorful__last-control"}))},wnt={defaultColor:"rgba(0, 0, 0, 1)",toHsva:jue,fromHsva:function(e){var t=Lue(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:Due},knt=function(e){return G0.createElement(_nt,Eh({},e,{colorModel:wnt}))},qnt={defaultColor:"rgb(0, 0, 0)",toHsva:gnt,fromHsva:function(e){var t=Lue(e);return"rgb("+t.r+", "+t.g+", "+t.b+")"},equal:Due},Snt=function(e){return G0.createElement(vnt,Eh({},e,{colorModel:qnt}))};const Cnt=({color:e,enableAlpha:t,onChange:n})=>{const o=t?knt:Snt,r=O.useMemo(()=>e.toRgbString(),[e]);return a.jsx(o,{color:r,onChange:s=>{n(Tt(s))},onPointerDown:({currentTarget:s,pointerId:i})=>{s.setPointerCapture(i)},onPointerUp:({currentTarget:s,pointerId:i})=>{s.releasePointerCapture(i)}})};bs([hs]);const Rnt=[{label:"RGB",value:"rgb"},{label:"HSL",value:"hsl"},{label:"Hex",value:"hex"}],Wnt=(e,t)=>{const{enableAlpha:n=!1,color:o,onChange:r,defaultValue:s="#fff",copyFormat:i,...c}=Ut(e,"ColorPicker"),[l,u]=g3({onChange:r,value:o,defaultValue:s}),d=O.useMemo(()=>Tt(l||""),[l]),p=Uo(u),f=O.useCallback(g=>{p(g.toHex())},[p]),[b,h]=O.useState(i||"hex");return a.jsxs(unt,{ref:t,...c,children:[a.jsx(Cnt,{onChange:f,color:d,enableAlpha:n}),a.jsxs(ant,{children:[a.jsxs(cnt,{justify:"space-between",children:[a.jsx(rnt,{__nextHasNoMarginBottom:!0,options:Rnt,value:b,onChange:g=>h(g),label:m("Color format"),hideLabelFromVision:!0,variant:"minimal"}),a.jsx(pnt,{color:d,colorType:i||b})]}),a.jsx(lnt,{direction:"column",gap:2,children:a.jsx(Mnt,{colorType:b,color:d,onChange:f,enableAlpha:n})})]})]})},Tnt=Qt(Wnt,"ColorPicker");function Ent(e){return typeof e.onChangeComplete<"u"||typeof e.disableAlpha<"u"||typeof e.color?.hex=="string"}function Bnt(e){if(e!==void 0){if(typeof e=="string")return e;if(e.hex)return e.hex}}const Nnt=fs(e=>{const t=Tt(e),n=t.toHex(),o=t.toRgb(),r=t.toHsv(),s=t.toHsl();return{hex:n,rgb:o,hsv:r,hsl:s,source:"hex",oldHue:s.h}});function Lnt(e){const{onChangeComplete:t}=e,n=O.useCallback(o=>{t(Nnt(o))},[t]);return Ent(e)?{color:Bnt(e.color),enableAlpha:!e.disableAlpha,onChange:n}:{...e,color:e.color,enableAlpha:e.enableAlpha,onChange:e.onChange}}const B7=e=>a.jsx(Tnt,{...Lnt(e)}),lw=O.createContext({});function jnt(e,t){const{isPressed:n,...o}=e;return a.jsx(fe,{...o,"aria-pressed":n,ref:t})}const Pnt=O.forwardRef(jnt);function Int(e,t){const{id:n,isSelected:o,...r}=e,{setActiveId:s,activeId:i}=O.useContext(lw);return O.useEffect(()=>{o&&!i&&window.setTimeout(()=>s?.(n),0)},[o,s,i,n]),a.jsx(hi.Item,{render:a.jsx(fe,{...r,role:"option","aria-selected":!!o,ref:t}),id:n})}const Dnt=O.forwardRef(Int);function Vue({className:e,isSelected:t,selectedIconProps:n={},tooltipText:o,...r}){const{baseId:s,setActiveId:i}=O.useContext(lw),l={id:He(Vue,s||"components-circular-option-picker__option"),className:"components-circular-option-picker__option",...r},d=i!==void 0?a.jsx(Dnt,{...l,isSelected:t}):a.jsx(Pnt,{...l,isPressed:t});return a.jsxs("div",{className:$(e,"components-circular-option-picker__option-wrapper"),children:[o?a.jsx(W1,{text:o,children:d}):d,t&&a.jsx(t0,{icon:no,...n})]})}function Fnt({className:e,options:t,...n}){const o="aria-label"in n||"aria-labelledby"in n?"group":void 0;return a.jsx("div",{...n,role:o,className:$("components-circular-option-picker__option-group","components-circular-option-picker__swatches",e),children:t})}function $nt({buttonProps:e,className:t,dropdownProps:n,linkText:o}){return a.jsx(B0,{className:$("components-circular-option-picker__dropdown-link-action",t),renderToggle:({isOpen:r,onToggle:s})=>a.jsx(fe,{"aria-expanded":r,"aria-haspopup":"true",onClick:s,variant:"link",...e,children:o}),...n})}function Vnt({className:e,children:t,...n}){return a.jsx(fe,{className:$("components-circular-option-picker__clear",e),variant:"tertiary",...n,children:t})}function Hnt(e){const{actions:t,options:n,baseId:o,className:r,loop:s=!0,children:i,...c}=e,[l,u]=O.useState(void 0),d=O.useMemo(()=>({baseId:o,activeId:l,setActiveId:u}),[o,l,u]);return a.jsx("div",{className:r,children:a.jsxs(lw.Provider,{value:d,children:[a.jsx(hi,{...c,id:o,focusLoop:s,rtl:ft(),role:"listbox",activeId:l,setActiveId:u,children:n}),i,t]})})}function Unt(e){const{actions:t,options:n,children:o,baseId:r,...s}=e,i=O.useMemo(()=>({baseId:r}),[r]);return a.jsx("div",{...s,id:r,children:a.jsxs(lw.Provider,{value:i,children:[n,o,t]})})}function uo(e){const{asButtons:t,actions:n,options:o,children:r,className:s,...i}=e,c=He(uo,"components-circular-option-picker",i.id),l=t?Unt:Hnt,u=n?a.jsx("div",{className:"components-circular-option-picker__custom-clear-wrapper",children:n}):void 0,d=a.jsx("div",{className:"components-circular-option-picker__swatches",children:o});return a.jsx(l,{...i,baseId:c,className:$("components-circular-option-picker",s),actions:u,options:d,children:r})}uo.Option=Vue;uo.OptionGroup=Fnt;uo.ButtonAction=Vnt;uo.DropdownLinkAction=$nt;function Xnt(e){const{expanded:t=!1,alignment:n="stretch",...o}=Ut(e,"VStack");return gue({direction:"column",expanded:t,alignment:n,...o})}function Gnt(e,t){const n=Xnt(e);return a.jsx(C0,{...n,ref:t})}const Ye=Qt(Gnt,"VStack");function Knt(e){const{as:t,level:n=2,color:o=qe.gray[900],isBlock:r=!0,weight:s=Se.fontWeightHeading,...i}=Ut(e,"Heading"),c=t||`h${n}`,l={};return typeof c=="string"&&c[0]!=="h"&&(l.role="heading",l["aria-level"]=typeof n=="string"?parseInt(n):n),{...Hle({color:o,isBlock:r,weight:s,size:wQe(n),...i}),...l,as:c}}function Ynt(e,t){const n=Knt(e);return a.jsx(C0,{...n,ref:t})}const ec=Qt(Ynt,"Heading"),Hue=we(ec,{target:"ev9wop70"})({name:"13lxv2o",styles:"text-transform:uppercase;line-height:24px;font-weight:500;&&&{font-size:11px;margin-bottom:0;}"}),Znt=({paddingSize:e="small"})=>{if(e==="none")return;const t={small:Ce(2),medium:Ce(4)};return ke("padding:",t[e]||t.small,";","")},Qnt=we("div",{target:"eovvns30"})("margin-left:",Ce(-2),";margin-right:",Ce(-2),";&:first-of-type{margin-top:",Ce(-2),";}&:last-of-type{margin-bottom:",Ce(-2),";}",Znt,";");function Jnt(e,t){const{paddingSize:n="small",...o}=Ut(e,"DropdownContentWrapper");return a.jsx(Qnt,{...o,paddingSize:n,ref:t})}const Ni=Qt(Jnt,"DropdownContentWrapper");bs([hs,bf]);const Uue=e=>{const t=/var\(/.test(e??""),n=/color-mix\(/.test(e??"");return!t&&!n},e1t=(e,t=[],n=!1)=>{if(!e)return"";const o=e?Uue(e):!1,r=o?Tt(e).toHex():e,s=n?t:[{colors:t}];for(const{colors:i}of s)for(const{name:c,color:l}of i){const u=o?Tt(l).toHex():l;if(r===u)return c}return m("Custom")},t1t=e=>Array.isArray(e.colors)&&!("color"in e),Xue=e=>e.length>0&&e.every(t=>t1t(t)),n1t=(e,t)=>{if(!e||!t||Uue(e))return e;const{ownerDocument:n}=t,{defaultView:o}=n,r=o?.getComputedStyle(t).backgroundColor;return r?Tt(r).toHex():e};bs([hs,bf]);function Gue({className:e,clearColor:t,colors:n,onChange:o,value:r,...s}){const i=O.useMemo(()=>n.map(({color:c,name:l},u)=>{const d=Tt(c),p=r===c;return a.jsx(uo.Option,{isSelected:p,selectedIconProps:p?{fill:d.contrast()>d.contrast("#000")?"#fff":"#000"}:{},tooltipText:l||le(m("Color code: %s"),c),style:{backgroundColor:c,color:c},onClick:p?t:()=>o(c,u),"aria-label":l?le(m("Color: %s"),l):le(m("Color code: %s"),c)},`${c}-${u}`)}),[n,r,o,t]);return a.jsx(uo.OptionGroup,{className:e,options:i,...s})}function Kue({className:e,clearColor:t,colors:n,onChange:o,value:r,headingLevel:s}){const i=He(Kue,"color-palette");return n.length===0?null:a.jsx(Ye,{spacing:3,className:e,children:n.map(({name:c,colors:l},u)=>{const d=`${i}-${u}`;return a.jsxs(Ye,{spacing:2,children:[a.jsx(Hue,{id:d,level:s,children:c}),a.jsx(Gue,{clearColor:t,colors:l,onChange:p=>o(p,u),value:r,"aria-labelledby":d})]},u)})})}function Yue({isRenderedInSidebar:e,popoverProps:t,...n}){const o=O.useMemo(()=>({shift:!0,resize:!1,...e?{placement:"left-start",offset:34}:{placement:"bottom",offset:8},...t}),[e,t]);return a.jsx(B0,{contentClassName:"components-color-palette__custom-color-dropdown-content",popoverProps:o,...n})}function o1t(e,t){const{asButtons:n,loop:o,clearable:r=!0,colors:s=[],disableCustomColors:i=!1,enableAlpha:c=!1,onChange:l,value:u,__experimentalIsRenderedInSidebar:d=!1,headingLevel:p=2,"aria-label":f,"aria-labelledby":b,...h}=e,[g,z]=O.useState(u),y=O.useCallback(()=>l(void 0),[l]),x=O.useCallback(T=>{z(n1t(u,T))},[u]),v=Xue(s),M=O.useMemo(()=>e1t(u,s,v),[u,s,v]),A=()=>a.jsx(Ni,{paddingSize:"none",children:a.jsx(B7,{color:g,onChange:T=>l(T),enableAlpha:c})}),_=u?.startsWith("#"),w=u?.replace(/^var\((.+)\)$/,"$1"),k=w?le(m('Custom color picker. The currently selected color is called "%1$s" and has a value of "%2$s".'),M,w):m("Custom color picker."),q={clearColor:y,onChange:l,value:u},S=!!r&&a.jsx(uo.ButtonAction,{onClick:y,children:m("Clear")});let C;if(n)C={asButtons:!0};else{const T={asButtons:!1,loop:o};f?C={...T,"aria-label":f}:b?C={...T,"aria-labelledby":b}:C={...T,"aria-label":m("Custom color picker.")}}return a.jsxs(Ye,{spacing:3,ref:t,...h,children:[!i&&a.jsx(Yue,{isRenderedInSidebar:d,renderContent:A,renderToggle:({isOpen:T,onToggle:W})=>a.jsxs(Ye,{className:"components-color-palette__custom-color-wrapper",spacing:0,children:[a.jsx("button",{ref:x,className:"components-color-palette__custom-color-button","aria-expanded":T,"aria-haspopup":"true",onClick:W,"aria-label":k,style:{background:u},type:"button"}),a.jsxs(Ye,{className:"components-color-palette__custom-color-text-wrapper",spacing:.5,children:[a.jsx(Ho,{className:"components-color-palette__custom-color-name",children:u?M:m("No color selected")}),a.jsx(Ho,{className:$("components-color-palette__custom-color-value",{"components-color-palette__custom-color-value--is-hex":_}),children:w})]})]})}),(s.length>0||S)&&a.jsx(uo,{...C,actions:S,options:v?a.jsx(Kue,{...q,headingLevel:p,colors:s,value:u}):a.jsx(Gue,{...q,colors:s,value:u})})]})}const uw=O.forwardRef(o1t),N7=we(T1,{target:"e1bagdl32"})("&&&{input{display:block;width:100%;}",R3,"{transition:box-shadow 0.1s linear;}}"),Zue=({selectSize:e})=>({small:ke("box-sizing:border-box;padding:2px 1px;width:20px;font-size:8px;line-height:1;letter-spacing:-0.5px;text-transform:uppercase;text-align-last:center;&:not( :disabled ){color:",qe.gray[800],";}",""),default:ke("box-sizing:border-box;min-width:24px;max-width:48px;height:24px;margin-inline-end:",Ce(2),";padding:",Ce(1),";font-size:13px;line-height:1;text-align-last:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;field-sizing:content;&:not( :disabled ){color:",qe.theme.accent,";}","")})[e],r1t=we("div",{target:"e1bagdl31"})("&&&{pointer-events:none;",Zue,";color:",qe.gray[900],";}"),s1t=({selectSize:e="default"})=>({small:ke("height:100%;border:1px solid transparent;transition:box-shadow 0.1s linear,border 0.1s linear;",dn({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," &:not(:disabled):hover{background-color:",qe.gray[100],";}&:focus{border:1px solid ",qe.ui.borderFocus,";box-shadow:inset 0 0 0 ",Se.borderWidth+" "+qe.ui.borderFocus,";outline-offset:0;outline:2px solid transparent;z-index:1;}",""),default:ke("display:flex;justify-content:center;align-items:center;&:where( :not( :disabled ) ):hover{box-shadow:0 0 0 ",Se.borderWidth+" "+qe.ui.borderFocus,";outline:",Se.borderWidth," solid transparent;}&:focus{box-shadow:0 0 0 ",Se.borderWidthFocus+" "+qe.ui.borderFocus,";outline:",Se.borderWidthFocus," solid transparent;}","")})[e],Que=we("select",{target:"e1bagdl30"})("&&&{appearance:none;background:transparent;border-radius:",Se.radiusXSmall,";border:none;display:block;outline:none;margin:0;min-height:auto;font-family:inherit;",Zue,";",s1t,";&:not( :disabled ){cursor:pointer;}}"),i1t=ke("box-shadow:inset ",Se.controlBoxShadowFocus,";",""),a1t=ke("border:0;padding:0;margin:0;",B_,";",""),c1t=()=>ke(N7,"{flex:1 1 40%;}&& ",Que,"{min-height:0;}",""),l1t=ke(N7,"{flex:0 0 auto;}",""),u1t=e=>ke("height:",e==="__unstable-large"?"40px":"30px",";",""),d1t=ke("background:#fff;&&>button{aspect-ratio:1;padding:0;display:flex;align-items:center;justify-content:center;",dn({borderRadius:"2px 0 0 2px"},{borderRadius:"0 2px 2px 0"})()," border:",Se.borderWidth," solid ",qe.ui.border,";&:focus,&:hover:not( :disabled ){",i1t," border-color:",qe.ui.borderFocus,";z-index:1;position:relative;}}",""),p1t=e=>{const{color:t,style:n}=e||{},o=n&&n!=="none"?qe.gray[300]:void 0;return ke("border-style:",n==="none"?"solid":n,";border-color:",t||o,";","")},f1t=(e,t)=>{const{style:n}=e||{};return ke("border-radius:",Se.radiusFull,";border:2px solid transparent;",n?p1t(e):void 0," width:",t==="__unstable-large"?"24px":"22px",";height:",t==="__unstable-large"?"24px":"22px",";padding:",t==="__unstable-large"?"2px":"1px",";&>span{height:",Ce(4),";width:",Ce(4),`;background:linear-gradient( -45deg, transparent 48%, rgb( 0 0 0 / 20% ) 48%, rgb( 0 0 0 / 20% ) 52%, transparent 52% );}`,"")},b1t=28,h1t=12,m1t=ke("width:",b1t*6+h1t*5,"px;>div:first-of-type>",Ip,"{margin-bottom:0;}&& ",Ip,"+button:not( .has-text ){min-width:24px;padding:0;}",""),M1t=ke("",""),g1t=ke("",""),z1t=ke("justify-content:center;width:100%;&&{border-top:",Se.borderWidth," solid ",qe.gray[400],";border-top-left-radius:0;border-top-right-radius:0;height:40px;}",""),O1t=()=>ke("flex:1 1 60%;",dn({marginRight:Ce(3)})(),";",""),ma={px:{value:"px",label:"px",a11yLabel:m("Pixels (px)"),step:1},"%":{value:"%",label:"%",a11yLabel:m("Percent (%)"),step:.1},em:{value:"em",label:"em",a11yLabel:Oe("ems","Relative to parent font size (em)"),step:.01},rem:{value:"rem",label:"rem",a11yLabel:Oe("rems","Relative to root font size (rem)"),step:.01},vw:{value:"vw",label:"vw",a11yLabel:m("Viewport width (vw)"),step:.1},vh:{value:"vh",label:"vh",a11yLabel:m("Viewport height (vh)"),step:.1},vmin:{value:"vmin",label:"vmin",a11yLabel:m("Viewport smallest dimension (vmin)"),step:.1},vmax:{value:"vmax",label:"vmax",a11yLabel:m("Viewport largest dimension (vmax)"),step:.1},ch:{value:"ch",label:"ch",a11yLabel:m("Width of the zero (0) character (ch)"),step:.01},ex:{value:"ex",label:"ex",a11yLabel:m("x-height of the font (ex)"),step:.01},cm:{value:"cm",label:"cm",a11yLabel:m("Centimeters (cm)"),step:.001},mm:{value:"mm",label:"mm",a11yLabel:m("Millimeters (mm)"),step:.1},in:{value:"in",label:"in",a11yLabel:m("Inches (in)"),step:.001},pc:{value:"pc",label:"pc",a11yLabel:m("Picas (pc)"),step:1},pt:{value:"pt",label:"pt",a11yLabel:m("Points (pt)"),step:1},svw:{value:"svw",label:"svw",a11yLabel:m("Small viewport width (svw)"),step:.1},svh:{value:"svh",label:"svh",a11yLabel:m("Small viewport height (svh)"),step:.1},svi:{value:"svi",label:"svi",a11yLabel:m("Small viewport width or height (svi)"),step:.1},svb:{value:"svb",label:"svb",a11yLabel:m("Small viewport width or height (svb)"),step:.1},svmin:{value:"svmin",label:"svmin",a11yLabel:m("Small viewport smallest dimension (svmin)"),step:.1},lvw:{value:"lvw",label:"lvw",a11yLabel:m("Large viewport width (lvw)"),step:.1},lvh:{value:"lvh",label:"lvh",a11yLabel:m("Large viewport height (lvh)"),step:.1},lvi:{value:"lvi",label:"lvi",a11yLabel:m("Large viewport width or height (lvi)"),step:.1},lvb:{value:"lvb",label:"lvb",a11yLabel:m("Large viewport width or height (lvb)"),step:.1},lvmin:{value:"lvmin",label:"lvmin",a11yLabel:m("Large viewport smallest dimension (lvmin)"),step:.1},dvw:{value:"dvw",label:"dvw",a11yLabel:m("Dynamic viewport width (dvw)"),step:.1},dvh:{value:"dvh",label:"dvh",a11yLabel:m("Dynamic viewport height (dvh)"),step:.1},dvi:{value:"dvi",label:"dvi",a11yLabel:m("Dynamic viewport width or height (dvi)"),step:.1},dvb:{value:"dvb",label:"dvb",a11yLabel:m("Dynamic viewport width or height (dvb)"),step:.1},dvmin:{value:"dvmin",label:"dvmin",a11yLabel:m("Dynamic viewport smallest dimension (dvmin)"),step:.1},dvmax:{value:"dvmax",label:"dvmax",a11yLabel:m("Dynamic viewport largest dimension (dvmax)"),step:.1},svmax:{value:"svmax",label:"svmax",a11yLabel:m("Small viewport largest dimension (svmax)"),step:.1},lvmax:{value:"lvmax",label:"lvmax",a11yLabel:m("Large viewport largest dimension (lvmax)"),step:.1}},Gv=Object.values(ma),Jue=[ma.px,ma["%"],ma.em,ma.rem,ma.vw,ma.vh],A1t=ma.px;function ede(e,t,n){const o=t?`${e??""}${t}`:e;return y0(o,n)}function L7(e){return Array.isArray(e)&&!!e.length}function y0(e,t=Gv){let n,o;if(typeof e<"u"||e===null){n=`${e}`.trim();const c=parseFloat(n);o=isFinite(c)?c:void 0}const s=n?.match(/[\d.\-\+]*\s*(.*)/)?.[1]?.toLowerCase();let i;return L7(t)?i=t.find(l=>l.value===s)?.value:i=A1t.value,[o,i]}function y1t(e,t,n,o){const[r,s]=y0(e,t),i=r??n;let c=s||o;return!c&&L7(t)&&(c=t[0].value),[i,c]}function v1t(e=[],t){return Array.isArray(t)?t.filter(n=>e.includes(n.value)):[]}const Fr=({units:e=Gv,availableUnits:t=[],defaultValues:n})=>{const o=v1t(t,e);return n&&o.forEach((r,s)=>{if(n[r.value]){const[i]=y0(n[r.value]);o[s].default=i}}),o};function x1t(e,t,n=Gv){const o=Array.isArray(n)?[...n]:[],[,r]=ede(e,t,Gv);return r&&!o.some(s=>s.value===r)&&ma[r]&&o.unshift(ma[r]),o}function _1t(e){const{border:t,className:n,colors:o=[],enableAlpha:r=!1,enableStyle:s=!0,onChange:i,previousStyleSelection:c,size:l="default",__experimentalIsRenderedInSidebar:u=!1,...d}=Ut(e,"BorderControlDropdown"),[p]=y0(t?.width),f=p===0,b=w=>{const k=t?.style==="none"?c:t?.style,q=f&&w?"1px":t?.width;i({color:w,style:k,width:q})},h=w=>{const k=f&&w?"1px":t?.width;i({...t,style:w,width:k})},g=()=>{i({...t,color:void 0,style:void 0})},z=x0(),y=O.useMemo(()=>z(d1t,n),[n,z]),x=O.useMemo(()=>z(g1t),[z]),v=O.useMemo(()=>z(f1t(t,l)),[t,z,l]),M=O.useMemo(()=>z(m1t),[z]),A=O.useMemo(()=>z(M1t),[z]),_=O.useMemo(()=>z(z1t),[z]);return{...d,border:t,className:y,colors:o,enableAlpha:r,enableStyle:s,indicatorClassName:x,indicatorWrapperClassName:v,onColorChange:b,onStyleChange:h,onReset:g,popoverContentClassName:A,popoverControlsClassName:M,resetButtonClassName:_,size:l,__experimentalIsRenderedInSidebar:u}}const MA=e=>e.replace(/^var\((.+)\)$/,"$1"),w1t=(e,t)=>{if(!(!e||!t)){if(Xue(t)){let n;return t.some(o=>o.colors.some(r=>r.color===e?(n=r,!0):!1)),n}return t.find(n=>n.color===e)}},k1t=(e,t,n,o)=>{if(o){if(t){const r=MA(t.color);return n?le('Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s". The currently selected style is "%3$s".',t.name,r,n):le('Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s".',t.name,r)}if(e){const r=MA(e);return n?le('Border color and style picker. The currently selected color has a value of "%1$s". The currently selected style is "%2$s".',r,n):le('Border color and style picker. The currently selected color has a value of "%1$s".',r)}return m("Border color and style picker.")}return t?le('Border color picker. The currently selected color is called "%1$s" and has a value of "%2$s".',t.name,MA(t.color)):e?le('Border color picker. The currently selected color has a value of "%1$s".',MA(e)):m("Border color picker.")},q1t=(e,t)=>{const{__experimentalIsRenderedInSidebar:n,border:o,colors:r,disableCustomColors:s,enableAlpha:i,enableStyle:c,indicatorClassName:l,indicatorWrapperClassName:u,isStyleSettable:d,onReset:p,onColorChange:f,onStyleChange:b,popoverContentClassName:h,popoverControlsClassName:g,resetButtonClassName:z,showDropdownHeader:y,size:x,__unstablePopoverProps:v,...M}=_1t(e),{color:A,style:_}=o||{},w=w1t(A,r),k=k1t(A,w,_,c),q=A||_&&_!=="none",S=n?"bottom left":void 0,C=({onToggle:W})=>a.jsx(fe,{onClick:W,variant:"tertiary","aria-label":k,tooltipPosition:S,label:m("Border color and style picker"),showTooltip:!0,__next40pxDefaultSize:x==="__unstable-large",children:a.jsx("span",{className:u,children:a.jsx(vf,{className:l,colorValue:A})})}),T=({onClose:W})=>a.jsxs(a.Fragment,{children:[a.jsx(Ni,{paddingSize:"medium",children:a.jsxs(Ye,{className:g,spacing:6,children:[y?a.jsxs(Je,{children:[a.jsx(Ip,{children:m("Border color")}),a.jsx(fe,{size:"small",label:m("Close border color"),icon:zl,onClick:W})]}):void 0,a.jsx(uw,{className:h,value:A,onChange:f,colors:r,disableCustomColors:s,__experimentalIsRenderedInSidebar:n,clearable:!1,enableAlpha:i}),c&&d&&a.jsx(e0t,{label:m("Style"),value:_,onChange:b})]})}),q&&a.jsx(Ni,{paddingSize:"none",children:a.jsx(fe,{className:z,variant:"tertiary",onClick:()=>{p(),W()},children:m("Reset")})})]});return a.jsx(B0,{renderToggle:C,renderContent:T,popoverProps:{...v},...M,ref:t})},S1t=Qt(q1t,"BorderControlDropdown");function C1t({className:e,isUnitSelectTabbable:t=!0,onChange:n,size:o="default",unit:r="px",units:s=Jue,...i},c){if(!L7(s)||s?.length===1)return a.jsx(r1t,{className:"components-unit-control__unit-label",selectSize:o,children:r});const l=d=>{const{value:p}=d.target,f=s.find(b=>b.value===p);n?.(p,{event:d,data:f})},u=$("components-unit-control__select",e);return a.jsx(Que,{ref:c,className:u,onChange:l,selectSize:o,tabIndex:t?void 0:-1,value:r,...i,children:s.map(d=>a.jsx("option",{value:d.value,children:d.label},d.value))})}const R1t=O.forwardRef(C1t);function W1t(e,t){const{__unstableStateReducer:n,autoComplete:o="off",children:r,className:s,disabled:i=!1,disableUnits:c=!1,isPressEnterToChange:l=!1,isResetValueOnUnitChange:u=!1,isUnitSelectTabbable:d=!0,label:p,onChange:f,onUnitChange:b,size:h="default",unit:g,units:z=Jue,value:y,onFocus:x,...v}=Md(e);"unit"in e&&Re("UnitControl unit prop",{since:"5.6",hint:"The unit should be provided within the `value` prop.",version:"6.2"});const M=y??void 0,[A,_]=O.useMemo(()=>{const P=x1t(M,g,z),[{value:H=""}={},...U]=P,X=U.reduce((Z,{value:ne})=>{const oe=nz(ne?.substring(0,1)||"");return Z.includes(oe)?Z:`${Z}|${oe}`},nz(H.substring(0,1)));return[P,new RegExp(`^(?:${X})$`,"i")]},[M,g,z]),[w,k]=ede(M,g,A),[q,S]=O_(A.length===1?A[0].value:g,{initial:k,fallback:""});O.useEffect(()=>{k!==void 0&&S(k)},[k,S]);const C=$("components-unit-control","components-unit-control-wrapper",s),T=(P,H)=>{if(P===""||typeof P>"u"||P===null){f?.("",H);return}const U=y1t(P,A,w,q).join("");f?.(U,H)},W=(P,H)=>{const{data:U}=H;let X=`${w??""}${P}`;u&&U?.default!==void 0&&(X=`${U.default}${P}`),f?.(X,H),b?.(P,H),S(P)};let B;!c&&d&&A.length&&(B=P=>{v.onKeyDown?.(P),!P.metaKey&&!P.ctrlKey&&_.test(P.key)&&N.current?.focus()});const N=O.useRef(null),E=c?null:a.jsx(R1t,{ref:N,"aria-label":m("Select unit"),disabled:i,isUnitSelectTabbable:d,onChange:W,size:["small","compact"].includes(h)||h==="default"&&!v.__next40pxDefaultSize?"small":"default",unit:q,units:A,onFocus:x,onBlur:e.onBlur});let L=v.step;if(!L&&A){var I;L=(I=A.find(H=>H.value===q)?.step)!==null&&I!==void 0?I:1}return a.jsx(N7,{...v,autoComplete:o,className:C,disabled:i,spinControls:"none",isPressEnterToChange:l,label:p,onKeyDown:B,onChange:T,ref:t,size:h,suffix:E,type:l?"text":"number",value:w??"",step:L,onFocus:x,__unstableStateReducer:n})}const H0=O.forwardRef(W1t),rG=e=>{const t=e?.width!==void 0&&e.width!=="",n=e?.color!==void 0;return t||n};function T1t(e){const{className:t,colors:n=[],isCompact:o,onChange:r,enableAlpha:s=!0,enableStyle:i=!0,shouldSanitizeBorder:c=!0,size:l="default",value:u,width:d,__experimentalIsRenderedInSidebar:p=!1,__next40pxDefaultSize:f,...b}=Ut(e,"BorderControl"),h=l==="default"&&f?"__unstable-large":l,[g,z]=y0(u?.width),y=z||"px",x=g===0,[v,M]=O.useState(),[A,_]=O.useState(),w=c?rG(u):!0,k=O.useCallback(E=>{if(c&&!rG(E)){r(void 0);return}r(E)},[r,c]),q=O.useCallback(E=>{const L=E===""?void 0:E,[I]=y0(E),P=I===0,H={...u,width:L};P&&!x&&(M(u?.color),_(u?.style),H.color=void 0,H.style="none"),!P&&x&&(H.color===void 0&&(H.color=v),H.style==="none"&&(H.style=A)),k(H)},[u,x,v,A,k]),S=O.useCallback(E=>{q(`${E}${y}`)},[q,y]),C=x0(),T=O.useMemo(()=>C(a1t,t),[t,C]);let W=d;o&&(W=l==="__unstable-large"?"116px":"90px");const B=O.useMemo(()=>{const E=!!W&&l1t,L=u1t(h);return C(c1t(),E,L)},[W,C,h]),N=O.useMemo(()=>C(O1t()),[C]);return{...b,className:T,colors:n,enableAlpha:s,enableStyle:i,innerWrapperClassName:B,inputWidth:W,isStyleSettable:w,onBorderChange:k,onSliderChange:S,onWidthChange:q,previousStyleSelection:A,sliderClassName:N,value:u,widthUnit:y,widthValue:g,size:h,__experimentalIsRenderedInSidebar:p,__next40pxDefaultSize:f}}const E1t=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?a.jsx(Kt,{as:"legend",children:t}):a.jsx(Ip,{as:"legend",children:t}):null},B1t=(e,t)=>{const{__next40pxDefaultSize:n=!1,colors:o,disableCustomColors:r,disableUnits:s,enableAlpha:i,enableStyle:c,hideLabelFromVision:l,innerWrapperClassName:u,inputWidth:d,isStyleSettable:p,label:f,onBorderChange:b,onSliderChange:h,onWidthChange:g,placeholder:z,__unstablePopoverProps:y,previousStyleSelection:x,showDropdownHeader:v,size:M,sliderClassName:A,value:_,widthUnit:w,widthValue:k,withSlider:q,__experimentalIsRenderedInSidebar:S,...C}=T1t(e);return a.jsxs(C0,{as:"fieldset",...C,ref:t,children:[a.jsx(E1t,{label:f,hideLabelFromVision:l}),a.jsxs(Je,{spacing:4,className:u,children:[a.jsx(H0,{prefix:a.jsx(or,{marginRight:1,marginBottom:0,children:a.jsx(S1t,{border:_,colors:o,__unstablePopoverProps:y,disableCustomColors:r,enableAlpha:i,enableStyle:c,isStyleSettable:p,onChange:b,previousStyleSelection:x,showDropdownHeader:v,__experimentalIsRenderedInSidebar:S,size:M})}),label:m("Border width"),hideLabelFromVision:!0,min:0,onChange:g,value:_?.width||"",placeholder:z,disableUnits:s,__unstableInputWidth:d,size:M}),q&&a.jsx(T0,{__nextHasNoMarginBottom:!0,label:m("Border width"),hideLabelFromVision:!0,className:A,initialPosition:0,max:100,min:0,onChange:h,step:["px","%"].includes(w)?1:.1,value:k||void 0,withInputField:!1,__next40pxDefaultSize:n})]})]})},lM=Qt(B1t,"BorderControl"),N1t={bottom:{alignItems:"flex-end",justifyContent:"center"},bottomLeft:{alignItems:"flex-start",justifyContent:"flex-end"},bottomRight:{alignItems:"flex-end",justifyContent:"flex-end"},center:{alignItems:"center",justifyContent:"center"},spaced:{alignItems:"center",justifyContent:"space-between"},left:{alignItems:"center",justifyContent:"flex-start"},right:{alignItems:"center",justifyContent:"flex-end"},stretch:{alignItems:"stretch"},top:{alignItems:"flex-start",justifyContent:"center"},topLeft:{alignItems:"flex-start",justifyContent:"flex-start"},topRight:{alignItems:"flex-start",justifyContent:"flex-end"}};function L1t(e){return e?N1t[e]:{}}function j1t(e){const{align:t,alignment:n,className:o,columnGap:r,columns:s=2,gap:i=3,isInline:c=!1,justify:l,rowGap:u,rows:d,templateColumns:p,templateRows:f,...b}=Ut(e,"Grid"),h=Array.isArray(s)?s:[s],g=aW(h),z=Array.isArray(d)?d:[d],y=aW(z),x=p||!!s&&`repeat( ${g}, 1fr )`,v=f||!!d&&`repeat( ${y}, 1fr )`,M=x0(),A=O.useMemo(()=>{const _=L1t(n),w=ke({alignItems:t,display:c?"inline-grid":"grid",gap:`calc( ${Se.gridBase} * ${i} )`,gridTemplateColumns:x||void 0,gridTemplateRows:v||void 0,gridRowGap:u,gridColumnGap:r,justifyContent:l,verticalAlign:c?"middle":void 0,..._},"","");return M(w,o)},[t,n,o,r,M,i,x,v,c,l,u]);return{...b,className:A}}function P1t(e,t){const n=j1t(e);return a.jsx(C0,{...n,ref:t})}const dw=Qt(P1t,"Grid");function I1t(e){const{className:t,colors:n=[],enableAlpha:o=!1,enableStyle:r=!0,size:s="default",__experimentalIsRenderedInSidebar:i=!1,...c}=Ut(e,"BorderBoxControlSplitControls"),l=x0(),u=O.useMemo(()=>l(Ott(s),t),[l,t,s]),d=O.useMemo(()=>l(Att,t),[l,t]),p=O.useMemo(()=>l(ytt(),t),[l,t]);return{...c,centeredClassName:d,className:u,colors:n,enableAlpha:o,enableStyle:r,rightAlignedClassName:p,size:s,__experimentalIsRenderedInSidebar:i}}const D1t=(e,t)=>{const{centeredClassName:n,colors:o,disableCustomColors:r,enableAlpha:s,enableStyle:i,onChange:c,popoverPlacement:l,popoverOffset:u,rightAlignedClassName:d,size:p="default",value:f,__experimentalIsRenderedInSidebar:b,...h}=I1t(e),[g,z]=O.useState(null),y=O.useMemo(()=>l?{placement:l,offset:u,anchor:g,shift:!0}:void 0,[l,u,g]),x={colors:o,disableCustomColors:r,enableAlpha:s,enableStyle:i,isCompact:!0,__experimentalIsRenderedInSidebar:b,size:p},v=Gt([z,t]);return a.jsxs(dw,{...h,ref:v,gap:4,children:[a.jsx(qtt,{value:f,size:p}),a.jsx(lM,{className:n,hideLabelFromVision:!0,label:m("Top border"),onChange:M=>c(M,"top"),__unstablePopoverProps:y,value:f?.top,...x}),a.jsx(lM,{hideLabelFromVision:!0,label:m("Left border"),onChange:M=>c(M,"left"),__unstablePopoverProps:y,value:f?.left,...x}),a.jsx(lM,{className:d,hideLabelFromVision:!0,label:m("Right border"),onChange:M=>c(M,"right"),__unstablePopoverProps:y,value:f?.right,...x}),a.jsx(lM,{className:n,hideLabelFromVision:!0,label:m("Bottom border"),onChange:M=>c(M,"bottom"),__unstablePopoverProps:y,value:f?.bottom,...x})]})},F1t=Qt(D1t,"BorderBoxControlSplitControls"),$1t=/^([\d.\-+]*)\s*(fr|cm|mm|Q|in|pc|pt|px|em|ex|ch|rem|lh|vw|vh|vmin|vmax|%|cap|ic|rlh|vi|vb|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx|svw|lvw|dvw|svh|lvh|dvh|svi|lvi|dvi|svb|lvb|dvb|svmin|lvmin|dvmin|svmax|lvmax|dvmax)?$/;function V1t(e){const n=e.trim().match($1t);if(!n)return[void 0,void 0];const[,o,r]=n;let s=parseFloat(o);return s=Number.isNaN(s)?void 0:s,[s,r]}const pw=["top","right","bottom","left"],tde=["color","style","width"],D2=e=>e?!tde.some(t=>e[t]!==void 0):!0,H1t=e=>e?Ku(e)?!pw.every(n=>D2(e[n])):!D2(e):!1,U1t=e=>e?tde.every(t=>e[t]!==void 0):!1,Ku=(e={})=>Object.keys(e).some(t=>pw.indexOf(t)!==-1),Xq=e=>{if(!Ku(e))return!1;const t=pw.map(n=>Y1t(e?.[n]));return!t.every(n=>n===t[0])},X1t=e=>{if(!(!e||D2(e)))return{top:e,right:e,bottom:e,left:e}},G1t=(e,t)=>{const n={};return e.color!==t.color&&(n.color=t.color),e.style!==t.style&&(n.style=t.style),e.width!==t.width&&(n.width=t.width),n},K1t=e=>{if(!e)return;const t=[],n=[],o=[];pw.forEach(c=>{t.push(e[c]?.color),n.push(e[c]?.style),o.push(e[c]?.width)});const r=t.every(c=>c===t[0]),s=n.every(c=>c===n[0]),i=o.every(c=>c===o[0]);return{color:r?t[0]:void 0,style:s?n[0]:void 0,width:i?o[0]:Z1t(o)}},Y1t=(e,t)=>{if(D2(e))return t;const{color:n,style:o,width:r}={},{color:s=n,style:i=o,width:c=r}=e;return[c,!!c&&c!=="0"||!!s?i||"solid":i,s].filter(Boolean).join(" ")},Z1t=e=>{const n=e.map(o=>o===void 0?void 0:V1t(`${o}`)[1]).filter(o=>o!==void 0);return Q1t(n)};function Q1t(e){if(e.length===0)return;const t={};let n=0,o;return e.forEach(r=>{t[r]=t[r]===void 0?1:t[r]+1,t[r]>n&&(o=r,n=t[r])}),o}function J1t(e){const{className:t,colors:n=[],onChange:o,enableAlpha:r=!1,enableStyle:s=!0,size:i="default",value:c,__experimentalIsRenderedInSidebar:l=!1,__next40pxDefaultSize:u,...d}=Ut(e,"BorderBoxControl"),p=i==="default"&&u?"__unstable-large":i,f=Xq(c),b=Ku(c),h=b?K1t(c):c,g=b?c:X1t(c),z=!isNaN(parseFloat(`${h?.width}`)),[y,x]=O.useState(!f),v=()=>x(!y),M=S=>{if(!S)return o(void 0);if(!f||U1t(S))return o(D2(S)?void 0:S);const C=G1t(h,S),T={top:{...c?.top,...C},right:{...c?.right,...C},bottom:{...c?.bottom,...C},left:{...c?.left,...C}};if(Xq(T))return o(T);const W=D2(T.top)?void 0:T.top;o(W)},A=(S,C)=>{const T={...g,[C]:S};Xq(T)?o(T):o(S)},_=x0(),w=O.useMemo(()=>_(htt,t),[_,t]),k=O.useMemo(()=>_(mtt()),[_]),q=O.useMemo(()=>_(Mtt),[_]);return{...d,className:w,colors:n,disableUnits:f&&!z,enableAlpha:r,enableStyle:s,hasMixedBorders:f,isLinked:y,linkedControlClassName:k,onLinkedChange:M,onSplitChange:A,toggleLinked:v,linkedValue:h,size:p,splitValue:g,wrapperClassName:q,__experimentalIsRenderedInSidebar:l}}const eot=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?a.jsx(Kt,{as:"label",children:t}):a.jsx(Ip,{children:t}):null},tot=(e,t)=>{const{className:n,colors:o,disableCustomColors:r,disableUnits:s,enableAlpha:i,enableStyle:c,hasMixedBorders:l,hideLabelFromVision:u,isLinked:d,label:p,linkedControlClassName:f,linkedValue:b,onLinkedChange:h,onSplitChange:g,popoverPlacement:z,popoverOffset:y,size:x,splitValue:v,toggleLinked:M,wrapperClassName:A,__experimentalIsRenderedInSidebar:_,...w}=J1t(e),[k,q]=O.useState(null),S=O.useMemo(()=>z?{placement:z,offset:y,anchor:k,shift:!0}:void 0,[z,y,k]),C=Gt([q,t]);return a.jsxs(C0,{className:n,...w,ref:C,children:[a.jsx(eot,{label:p,hideLabelFromVision:u}),a.jsxs(C0,{className:A,children:[d?a.jsx(lM,{className:f,colors:o,disableUnits:s,disableCustomColors:r,enableAlpha:i,enableStyle:c,onChange:h,placeholder:l?m("Mixed"):void 0,__unstablePopoverProps:S,shouldSanitizeBorder:!1,value:b,withSlider:!0,width:x==="__unstable-large"?"116px":"110px",__experimentalIsRenderedInSidebar:_,size:x}):a.jsx(F1t,{colors:o,disableCustomColors:r,enableAlpha:i,enableStyle:c,onChange:g,popoverPlacement:z,popoverOffset:y,value:v,__experimentalIsRenderedInSidebar:_,size:x}),a.jsx(_tt,{onClick:M,isLinked:d,size:x})]})]})},not=Qt(tot,"BorderBoxControl"),oot=we("span",{target:"e1j5nr4z8"})({name:"1w884gc",styles:"box-sizing:border-box;display:block;width:24px;height:24px;position:relative;padding:4px"}),rot=we("span",{target:"e1j5nr4z7"})({name:"i6vjox",styles:"box-sizing:border-box;display:block;position:relative;width:100%;height:100%"}),sot=({isFocused:e})=>ke({backgroundColor:"currentColor",opacity:e?1:.3},"",""),nde=we("span",{target:"e1j5nr4z6"})("box-sizing:border-box;display:block;pointer-events:none;position:absolute;",sot,";"),ode=we(nde,{target:"e1j5nr4z5"})({name:"1k2w39q",styles:"bottom:3px;top:3px;width:2px"}),rde=we(nde,{target:"e1j5nr4z4"})({name:"1q9b07k",styles:"height:2px;left:3px;right:3px"}),iot=we(rde,{target:"e1j5nr4z3"})({name:"abcix4",styles:"top:0"}),aot=we(ode,{target:"e1j5nr4z2"})({name:"1wf8jf",styles:"right:0"}),cot=we(rde,{target:"e1j5nr4z1"})({name:"8tapst",styles:"bottom:0"}),lot=we(ode,{target:"e1j5nr4z0"})({name:"1ode3cm",styles:"left:0"}),uot=24;function dot({size:e=24,side:t="all",sides:n,...o}){const r=p=>n?.length&&!n.includes(p),s=p=>r(p)?!1:t==="all"||t===p,i=s("top")||s("vertical"),c=s("right")||s("horizontal"),l=s("bottom")||s("vertical"),u=s("left")||s("horizontal"),d=e/uot;return a.jsx(oot,{style:{transform:`scale(${d})`},...o,children:a.jsxs(rot,{children:[a.jsx(iot,{isFocused:i}),a.jsx(aot,{isFocused:c}),a.jsx(cot,{isFocused:l}),a.jsx(lot,{isFocused:u})]})})}const j7=we(H0,{target:"e1jovhle5"})({name:"1ejyr19",styles:"max-width:90px"}),P7=we(Je,{target:"e1jovhle4"})({name:"1j1lmoi",styles:"grid-column:1/span 3"}),pot=we(fe,{target:"e1jovhle3"})({name:"tkya7b",styles:"grid-area:1/2;justify-self:end"}),fot=we("div",{target:"e1jovhle2"})({name:"1dfa8al",styles:"grid-area:1/3;justify-self:end"}),I7=we(dot,{target:"e1jovhle1"})({name:"ou8xsw",styles:"flex:0 0 auto"}),D7=we(T0,{target:"e1jovhle0"})("width:100%;margin-inline-end:",Ce(2),";"),F2={px:{max:300,step:1},"%":{max:100,step:1},vw:{max:100,step:1},vh:{max:100,step:1},em:{max:10,step:.1},rm:{max:10,step:.1},svw:{max:100,step:1},lvw:{max:100,step:1},dvw:{max:100,step:1},svh:{max:100,step:1},lvh:{max:100,step:1},dvh:{max:100,step:1},vi:{max:100,step:1},svi:{max:100,step:1},lvi:{max:100,step:1},dvi:{max:100,step:1},vb:{max:100,step:1},svb:{max:100,step:1},lvb:{max:100,step:1},dvb:{max:100,step:1},vmin:{max:100,step:1},svmin:{max:100,step:1},lvmin:{max:100,step:1},dvmin:{max:100,step:1},vmax:{max:100,step:1},svmax:{max:100,step:1},lvmax:{max:100,step:1},dvmax:{max:100,step:1}},Pc={all:m("All sides"),top:m("Top side"),bottom:m("Bottom side"),left:m("Left side"),right:m("Right side"),mixed:m("Mixed"),vertical:m("Top and bottom sides"),horizontal:m("Left and right sides")},Gq={top:void 0,right:void 0,bottom:void 0,left:void 0},$p=["top","right","bottom","left"];function mW(e){return e.sort((t,n)=>e.filter(o=>o===t).length-e.filter(o=>o===n).length).pop()}function sde(e={},t,n=$p){const r=hot(n).map(d=>y0(e[d])),s=r.map(d=>{var p;return(p=d[0])!==null&&p!==void 0?p:""}),i=r.map(d=>d[1]),c=s.every(d=>d===s[0])?s[0]:"";let l;if(typeof c=="number")l=mW(i);else{var u;l=(u=bot(t))!==null&&u!==void 0?u:mW(i)}return[c,l].join("")}function bot(e){if(!e||typeof e!="object")return;const t=Object.values(e).filter(Boolean);return mW(t)}function ide(e={},t,n=$p){const o=sde(e,t,n);return isNaN(parseFloat(o))}function ade(e){return e!==void 0&&Object.values(e).filter(t=>!!t&&/\d/.test(t)).length>0}function sG(e,t){let n="all";return e||(n=t?"vertical":"top"),n}function hot(e){const t=[];if(!e?.length)return $p;if(e.includes("vertical"))t.push("top","bottom");else if(e.includes("horizontal"))t.push("left","right");else{const n=$p.filter(o=>e.includes(o));t.push(...n)}return t}function iG(e,t,n){const o={...e};return n?.length?n.forEach(r=>{r==="vertical"?(o.top=t,o.bottom=t):r==="horizontal"?(o.left=t,o.right=t):o[r]=t}):$p.forEach(r=>o[r]=t),o}const aG=()=>{};function cde({__next40pxDefaultSize:e,onChange:t=aG,onFocus:n=aG,values:o,sides:r,selectedUnits:s,setSelectedUnits:i,...c}){var l,u;const d=He(cde,"box-control-input-all"),p=sde(o,s,r),b=ade(o)&&ide(o,s,r),h=b?Pc.mixed:void 0,[g,z]=y0(p),y=A=>{n(A,{side:"all"})},x=A=>{const w=A!==void 0&&!isNaN(parseFloat(A))?A:void 0,k=iG(o,w,r);t(k)},v=A=>{x(A!==void 0?[A,z].join(""):void 0)},M=A=>{const _=iG(s,A,r);i(_)};return a.jsxs(Je,{children:[a.jsx(j7,{...c,__next40pxDefaultSize:e,className:"component-box-control__unit-control",disableUnits:b,id:d,isPressEnterToChange:!0,value:p,onChange:x,onUnitChange:M,onFocus:y,placeholder:h,label:Pc.all,hideLabelFromVision:!0}),a.jsx(D7,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,"aria-controls":d,label:Pc.all,hideLabelFromVision:!0,onChange:v,min:0,max:(l=F2[z??"px"]?.max)!==null&&l!==void 0?l:10,step:(u=F2[z??"px"]?.step)!==null&&u!==void 0?u:.1,value:g??0,withInputField:!1})]})}const cG=()=>{};function lde({__next40pxDefaultSize:e,onChange:t=cG,onFocus:n=cG,values:o,selectedUnits:r,setSelectedUnits:s,sides:i,...c}){const l=He(lde,"box-control-input"),u=h=>g=>{n(g,{side:h})},d=h=>{t(h)},p=(h,g,z)=>{const y={...o},v=g!==void 0&&!isNaN(parseFloat(g))?g:void 0;if(y[h]=v,z?.event.altKey)switch(h){case"top":y.bottom=v;break;case"bottom":y.top=v;break;case"left":y.right=v;break;case"right":y.left=v;break}d(y)},f=h=>g=>{const z={...r};z[h]=g,s(z)},b=i?.length?$p.filter(h=>i.includes(h)):$p;return a.jsx(a.Fragment,{children:b.map(h=>{var g,z;const[y,x]=y0(o[h]),v=o[h]?x:r[h],M=[l,h].join("-");return a.jsxs(P7,{expanded:!0,children:[a.jsx(I7,{side:h,sides:i}),a.jsx(W1,{placement:"top-end",text:Pc[h],children:a.jsx(j7,{...c,__next40pxDefaultSize:e,className:"component-box-control__unit-control",id:M,isPressEnterToChange:!0,value:[y,v].join(""),onChange:(A,_)=>p(h,A,_),onUnitChange:f(h),onFocus:u(h),label:Pc[h],hideLabelFromVision:!0})}),a.jsx(D7,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,"aria-controls":M,label:Pc[h],hideLabelFromVision:!0,onChange:A=>{p(h,A!==void 0?[A,v].join(""):void 0)},min:0,max:(g=F2[v??"px"]?.max)!==null&&g!==void 0?g:10,step:(z=F2[v??"px"]?.step)!==null&&z!==void 0?z:.1,value:y??0,withInputField:!1})]},`box-control-${h}`)})})}const lG=["vertical","horizontal"];function ude({__next40pxDefaultSize:e,onChange:t,onFocus:n,values:o,selectedUnits:r,setSelectedUnits:s,sides:i,...c}){const l=He(ude,"box-control-input"),u=b=>h=>{n&&n(h,{side:b})},d=(b,h)=>{if(!t)return;const g={...o},y=h!==void 0&&!isNaN(parseFloat(h))?h:void 0;b==="vertical"&&(g.top=y,g.bottom=y),b==="horizontal"&&(g.left=y,g.right=y),t(g)},p=b=>h=>{const g={...r};b==="vertical"&&(g.top=h,g.bottom=h),b==="horizontal"&&(g.left=h,g.right=h),s(g)},f=i?.length?lG.filter(b=>i.includes(b)):lG;return a.jsx(a.Fragment,{children:f.map(b=>{var h,g;const[z,y]=y0(b==="vertical"?o.top:o.left),x=b==="vertical"?r.top:r.left,v=[l,b].join("-");return a.jsxs(P7,{children:[a.jsx(I7,{side:b,sides:i}),a.jsx(W1,{placement:"top-end",text:Pc[b],children:O.createElement(j7,{...c,__next40pxDefaultSize:e,className:"component-box-control__unit-control",id:v,isPressEnterToChange:!0,value:[z,x??y].join(""),onChange:M=>d(b,M),onUnitChange:p(b),onFocus:u(b),label:Pc[b],hideLabelFromVision:!0,key:b})}),a.jsx(D7,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,"aria-controls":v,label:Pc[b],hideLabelFromVision:!0,onChange:M=>d(b,M!==void 0?[M,x??y].join(""):void 0),min:0,max:(h=F2[x??"px"]?.max)!==null&&h!==void 0?h:10,step:(g=F2[x??"px"]?.step)!==null&&g!==void 0?g:.1,value:z??0,withInputField:!1})]},b)})})}function mot({isLinked:e,...t}){const n=m(e?"Unlink sides":"Link sides");return a.jsx(W1,{text:n,children:a.jsx(fe,{...t,className:"component-box-control__linked-button",size:"small",icon:e?Qa:Xu,iconSize:24,"aria-label":n})})}const Mot={min:0},got=()=>{};function zot(e){const t=He(s4,"inspector-box-control");return e||t}function s4({__next40pxDefaultSize:e=!1,id:t,inputProps:n=Mot,onChange:o=got,label:r=m("Box Control"),values:s,units:i,sides:c,splitOnAxis:l=!1,allowReset:u=!0,resetValues:d=Gq,onMouseOver:p,onMouseOut:f}){const[b,h]=O_(s,{fallback:Gq}),g=b||Gq,z=ade(s),y=c?.length===1,[x,v]=O.useState(z),[M,A]=O.useState(!z||!ide(g)||y),[_,w]=O.useState(sG(M,l)),[k,q]=O.useState({top:y0(s?.top)[1],right:y0(s?.right)[1],bottom:y0(s?.bottom)[1],left:y0(s?.left)[1]}),S=zot(t),C=`${S}-heading`,T=()=>{A(!M),w(sG(!M,l))},W=(L,{side:I})=>{w(I)},B=L=>{o(L),h(L),v(!0)},N=()=>{o(d),h(d),q(d),v(!1)},E={...n,onChange:B,onFocus:W,isLinked:M,units:i,selectedUnits:k,setSelectedUnits:q,sides:c,values:g,onMouseOver:p,onMouseOut:f,__next40pxDefaultSize:e};return a.jsxs(dw,{id:S,columns:3,templateColumns:"1fr min-content min-content",role:"group","aria-labelledby":C,children:[a.jsx(z0.VisualLabel,{id:C,children:r}),M&&a.jsxs(P7,{children:[a.jsx(I7,{side:_,sides:c}),a.jsx(cde,{...E})]}),!y&&a.jsx(fot,{children:a.jsx(mot,{onClick:T,isLinked:M})}),!M&&l&&a.jsx(ude,{...E}),!M&&!l&&a.jsx(lde,{...E}),u&&a.jsx(pot,{className:"component-box-control__reset-button",variant:"secondary",size:"small",onClick:N,disabled:!x,children:m("Reset")})]})}function Oot(e,t){const{className:n,...o}=e,r=$("components-button-group",n);return a.jsx("div",{ref:t,role:"group",className:r,...o})}const Bh=O.forwardRef(Oot),Aot={name:"12ip69d",styles:"background:transparent;display:block;margin:0!important;pointer-events:none;position:absolute;will-change:box-shadow"};function gA(e){const t=`rgba(0, 0, 0, ${e/20})`;return`0 ${e}px ${e*2}px 0 - ${t}`}function yot(e){const{active:t,borderRadius:n="inherit",className:o,focus:r,hover:s,isInteractive:i=!1,offset:c=0,value:l=0,...u}=Ut(e,"Elevation"),d=x0(),p=O.useMemo(()=>{let f=xs(s)?s:l*2,b=xs(t)?t:l/2;i||(f=xs(s)?s:void 0,b=xs(t)?t:void 0);const h=`box-shadow ${Se.transitionDuration} ${Se.transitionTimingFunction}`,g={};return g.Base=ke({borderRadius:n,bottom:c,boxShadow:gA(l),opacity:Se.elevationIntensity,left:c,right:c,top:c},ke("@media not ( prefers-reduced-motion ){transition:",h,";}",""),"",""),xs(f)&&(g.hover=ke("*:hover>&{box-shadow:",gA(f),";}","")),xs(b)&&(g.active=ke("*:active>&{box-shadow:",gA(b),";}","")),xs(r)&&(g.focus=ke("*:focus>&{box-shadow:",gA(r),";}","")),d(Aot,g.Base,g.hover,g.focus,g.active,o)},[t,n,o,d,r,s,i,c,l]);return{...u,className:p,"aria-hidden":!0}}function vot(e,t){const n=yot(e);return a.jsx(C0,{...n,ref:t})}const uG=Qt(vot,"Elevation"),uM=`calc(${Se.cardBorderRadius} - 1px)`,xot=ke("box-shadow:0 0 0 1px ",Se.surfaceBorderColor,";outline:none;",""),_ot={name:"1showjb",styles:"border-bottom:1px solid;box-sizing:border-box;&:last-child{border-bottom:none;}"},wot={name:"13udsys",styles:"height:100%"},kot={name:"6ywzd",styles:"box-sizing:border-box;height:auto;max-height:100%"},dde=ke("&:first-of-type{border-top-left-radius:",uM,";border-top-right-radius:",uM,";}&:last-of-type{border-bottom-left-radius:",uM,";border-bottom-right-radius:",uM,";}",""),qot=ke("border-color:",Se.colorDivider,";",""),Sot={name:"1t90u8d",styles:"box-shadow:none"},Cot={name:"1e1ncky",styles:"border:none"},Rot=ke("border-radius:",uM,";",""),dG=ke("padding:",Se.cardPaddingXSmall,";",""),pde={large:ke("padding:",Se.cardPaddingLarge,";",""),medium:ke("padding:",Se.cardPaddingMedium,";",""),small:ke("padding:",Se.cardPaddingSmall,";",""),xSmall:dG,extraSmall:dG},fde=ke("background-color:",qe.ui.backgroundDisabled,";",""),Wot=ke("background-color:",Se.surfaceColor,";color:",qe.gray[900],";position:relative;","");Se.surfaceBackgroundColor;function Tot({borderBottom:e,borderLeft:t,borderRight:n,borderTop:o}){const r=`1px solid ${Se.surfaceBorderColor}`;return ke({borderBottom:e?r:void 0,borderLeft:t?r:void 0,borderRight:n?r:void 0,borderTop:o?r:void 0},"","")}const Eot=ke("",""),Bot=ke("background:",Se.surfaceBackgroundTintColor,";",""),Not=ke("background:",Se.surfaceBackgroundTertiaryColor,";",""),bde=e=>[e,e].join(" "),Lot=e=>["90deg",[Se.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),jot=e=>[[Se.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),Pot=e=>[`linear-gradient( ${Lot(e)} ) center`,`linear-gradient( ${jot(e)} ) center`,Se.surfaceBorderBoldColor].join(","),Iot=(e,t)=>ke("background:",Pot(t),";background-size:",bde(e),";",""),Dot=[`${Se.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(","),Fot=["90deg",`${Se.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(","),$ot=[`linear-gradient( ${Dot} )`,`linear-gradient( ${Fot} )`].join(","),Vot=e=>ke("background:",Se.surfaceBackgroundColor,";background-image:",$ot,";background-size:",bde(e),";",""),Hot=(e,t,n)=>{switch(e){case"dotted":return Iot(t,n);case"grid":return Vot(t);case"primary":return Eot;case"secondary":return Bot;case"tertiary":return Not}};function Uot(e){const{backgroundSize:t=12,borderBottom:n=!1,borderLeft:o=!1,borderRight:r=!1,borderTop:s=!1,className:i,variant:c="primary",...l}=Ut(e,"Surface"),u=x0(),d=O.useMemo(()=>{const p={borders:Tot({borderBottom:n,borderLeft:o,borderRight:r,borderTop:s})};return u(Wot,p.borders,Hot(c,`${t}px`,`${t-1}px`),i)},[t,n,o,r,s,i,u,c]);return{...l,className:d}}function Xot({elevation:e,isElevated:t,...n}){const o={...n};let r=e;if(t){var s;Re("Card isElevated prop",{since:"5.9",alternative:"elevation"}),(s=r)!==null&&s!==void 0||(r=2)}return typeof r<"u"&&(o.elevation=r),o}function Got(e){const{className:t,elevation:n=0,isBorderless:o=!1,isRounded:r=!0,size:s="medium",...i}=Ut(Xot(e),"Card"),c=x0(),l=O.useMemo(()=>c(xot,o&&Sot,r&&Rot,t),[t,c,o,r]);return{...Uot({...i,className:l}),elevation:n,isBorderless:o,isRounded:r,size:s}}function Kot(e,t){const{children:n,elevation:o,isBorderless:r,isRounded:s,size:i,...c}=Got(e),l=s?Se.cardBorderRadius:0,u=x0(),d=O.useMemo(()=>u(ke({borderRadius:l},"","")),[u,l]),p=O.useMemo(()=>{const f={size:i,isBorderless:r};return{CardBody:f,CardHeader:f,CardFooter:f}},[r,i]);return a.jsx(O3,{value:p,children:a.jsxs(C0,{...c,ref:t,children:[a.jsx(C0,{className:u(wot),children:n}),a.jsx(uG,{className:d,isInteractive:!1,value:o?1:0}),a.jsx(uG,{className:d,isInteractive:!1,value:o})]})})}const pG=Qt(Kot,"Card"),Yot=ke("@media only screen and ( min-device-width: 40em ){&::-webkit-scrollbar{height:12px;width:12px;}&::-webkit-scrollbar-track{background-color:transparent;}&::-webkit-scrollbar-track{background:",Se.colorScrollbarTrack,";border-radius:8px;}&::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:",Se.colorScrollbarThumb,";border:2px solid rgba( 0, 0, 0, 0 );border-radius:7px;}&:hover::-webkit-scrollbar-thumb{background-color:",Se.colorScrollbarThumbHover,";}}",""),Zot={name:"13udsys",styles:"height:100%"},Qot={name:"7zq9w",styles:"scroll-behavior:smooth"},Jot={name:"q33xhg",styles:"overflow-x:auto;overflow-y:hidden"},ert={name:"103x71s",styles:"overflow-x:hidden;overflow-y:auto"},trt={name:"umwchj",styles:"overflow-y:auto"};function nrt(e){const{className:t,scrollDirection:n="y",smoothScroll:o=!1,...r}=Ut(e,"Scrollable"),s=x0(),i=O.useMemo(()=>s(Zot,Yot,o&&Qot,n==="x"&&Jot,n==="y"&&ert,n==="auto"&&trt,t),[t,s,n,o]);return{...r,className:i}}function ort(e,t){const n=nrt(e);return a.jsx(C0,{...n,ref:t})}const rrt=Qt(ort,"Scrollable");function srt(e){const{className:t,isScrollable:n=!1,isShady:o=!1,size:r="medium",...s}=Ut(e,"CardBody"),i=x0(),c=O.useMemo(()=>i(kot,dde,pde[r],o&&fde,"components-card__body",t),[t,i,o,r]);return{...s,className:c,isScrollable:n}}function irt(e,t){const{isScrollable:n,...o}=srt(e);return n?a.jsx(rrt,{...o,ref:t}):a.jsx(C0,{...o,ref:t})}const fG=Qt(irt,"CardBody");function art(e){const{className:t,isBorderless:n=!1,isShady:o=!1,size:r="medium",...s}=Ut(e,"CardHeader"),i=x0(),c=O.useMemo(()=>i(_ot,dde,qot,pde[r],n&&Cot,o&&fde,"components-card__header",t),[t,i,n,o,r]);return{...s,className:c}}function crt(e,t){const n=art(e);return a.jsx(Q0,{...n,ref:t})}const lrt=Qt(crt,"CardHeader");function Bo(e){const{__nextHasNoMarginBottom:t,label:n,className:o,heading:r,checked:s,indeterminate:i,help:c,id:l,onChange:u,...d}=e;r&&Re("`heading` prop in `CheckboxControl`",{alternative:"a separate element to implement a heading",since:"5.8"});const[p,f]=O.useState(!1),[b,h]=O.useState(!1),g=Et(x=>{x&&(x.indeterminate=!!i,f(x.matches(":checked")),h(x.matches(":indeterminate")))},[s,i]),z=He(Bo,"inspector-checkbox-control",l),y=x=>u(x.target.checked);return a.jsx(z0,{__nextHasNoMarginBottom:t,__associatedWPComponentName:"CheckboxControl",label:r,id:z,help:c&&a.jsx("span",{className:"components-checkbox-control__help",children:c}),className:$("components-checkbox-control",o),children:a.jsxs(Je,{spacing:0,justify:"start",alignment:"top",children:[a.jsxs("span",{className:"components-checkbox-control__input-container",children:[a.jsx("input",{ref:g,id:z,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:y,checked:s,"aria-describedby":c?z+"__help":void 0,...d}),b?a.jsx(t0,{icon:tw,className:"components-checkbox-control__indeterminate",role:"presentation"}):null,p?a.jsx(t0,{icon:no,className:"components-checkbox-control__checked",role:"presentation"}):null]}),n&&a.jsx("label",{className:"components-checkbox-control__label",htmlFor:z,children:n})]})})}const urt=e=>ke("font-size:",wi("default.fontSize"),";font-family:inherit;appearance:none;border:1px solid transparent;cursor:pointer;background:none;text-align:start;text-decoration:",e==="a"?"none":void 0,";svg,path{fill:currentColor;}&:hover{color:",qe.theme.accent,";}&:focus{box-shadow:none;outline:none;}&:focus-visible{box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ",qe.theme.accent,";outline:2px solid transparent;outline-offset:0;}",""),drt={name:"1bcj5ek",styles:"width:100%;display:block"},prt={name:"150ruhm",styles:"box-sizing:border-box;width:100%;display:block;margin:0;color:inherit"},frt=ke("border:1px solid ",Se.surfaceBorderColor,";",""),brt=ke(">*:not( marquee )>*{border-bottom:1px solid ",Se.surfaceBorderColor,";}>*:last-of-type>*:not( :focus ){border-bottom-color:transparent;}",""),ob=Se.radiusSmall,hrt=ke("border-radius:",ob,";",""),mrt=ke("border-radius:",ob,";>*:first-of-type>*{border-top-left-radius:",ob,";border-top-right-radius:",ob,";}>*:last-of-type>*{border-bottom-left-radius:",ob,";border-bottom-right-radius:",ob,";}",""),F7=`calc(${Se.fontSize} * ${Se.fontLineHeightBase})`,Mrt=`calc((${Se.controlHeight} - ${F7} - 2px) / 2)`,grt=`calc((${Se.controlHeightSmall} - ${F7} - 2px) / 2)`,zrt=`calc((${Se.controlHeightLarge} - ${F7} - 2px) / 2)`,bG={small:ke("padding:",grt," ",Se.controlPaddingXSmall,"px;",""),medium:ke("padding:",Mrt," ",Se.controlPaddingX,"px;",""),large:ke("padding:",zrt," ",Se.controlPaddingXLarge,"px;","")},hde=O.createContext({size:"medium"}),mde=()=>O.useContext(hde);function Ort(e){const{as:t,className:n,onClick:o,role:r="listitem",size:s,...i}=Ut(e,"Item"),{spacedAround:c,size:l}=mde(),u=s||l,d=t||(typeof o<"u"?"button":"div"),p=x0(),f=O.useMemo(()=>p((d==="button"||d==="a")&&urt(d),bG[u]||bG.medium,prt,c&&hrt,n),[d,n,p,u,c]),b=p(drt);return{as:d,className:f,onClick:o,wrapperClassName:b,role:r,...i}}function Art(e,t){const{role:n,wrapperClassName:o,...r}=Ort(e);return a.jsx("div",{role:n,className:o,children:a.jsx(C0,{...r,ref:t})})}const fw=Qt(Art,"Item");function yrt(e){const{className:t,isBordered:n=!1,isRounded:o=!0,isSeparated:r=!1,role:s="list",...i}=Ut(e,"ItemGroup"),l=x0()(n&&frt,r&&brt,o&&mrt,t);return{isBordered:n,className:l,role:s,isSeparated:r,...i}}function vrt(e,t){const{isBordered:n,isSeparated:o,size:r,...s}=yrt(e),{size:i}=mde(),u={spacedAround:!n&&!o,size:r||i};return a.jsx(hde.Provider,{value:u,children:a.jsx(C0,{...s,ref:t})})}const Yu=Qt(vrt,"ItemGroup"),Mde=10,xrt=0,_rt=5,hG=Mde;function MW(e){return Math.max(0,Math.min(100,e))}function wrt(e,t,n,o=xrt){const r=e[t].position,s=Math.min(r,n),i=Math.max(r,n);return e.some(({position:c},l)=>l!==t&&(Math.abs(c-n)i.position>t),r={color:n,position:t},s=e.slice();return s.splice(o-1,0,r),s}function qrt(e,t){return e.filter((n,o)=>o!==t)}function gde(e,t,n){const o=e.slice();return o[t]=n,o}function Kq(e,t,n){if(wrt(e,t,n))return e;const o={...e[t],position:n};return gde(e,t,o)}function zde(e,t,n){const o={...e[t],color:n};return gde(e,t,o)}function Srt(e,t,n){const o=e.findIndex(r=>r.position===t);return zde(e,o,n)}function Ode(e,t){if(!t)return;const{x:n,width:o}=t.getBoundingClientRect(),r=e-n;return Math.round(MW(r*100/o))}function Ade({isOpen:e,position:t,color:n,...o}){const s=`components-custom-gradient-picker__control-point-button-description-${He(Ade)}`;return a.jsxs(a.Fragment,{children:[a.jsx(fe,{"aria-label":le(m("Gradient control point at position %1$s%% with color code %2$s."),t,n),"aria-describedby":s,"aria-haspopup":"true","aria-expanded":e,className:$("components-custom-gradient-picker__control-point-button",{"is-active":e}),...o}),a.jsx(Kt,{id:s,children:m("Use your left or right arrow keys or drag and drop with the mouse to change the gradient position. Press the button to change the color or remove the control point.")})]})}function yde({isRenderedInSidebar:e,className:t,...n}){const o=O.useMemo(()=>({placement:"bottom",offset:8,resize:!1}),[]),r=$("components-custom-gradient-picker__control-point-dropdown",t);return a.jsx(Yue,{isRenderedInSidebar:e,popoverProps:o,className:r,...n})}function gW({disableRemove:e,disableAlpha:t,gradientPickerDomRef:n,ignoreMarkerPosition:o,value:r,onChange:s,onStartControlPointChange:i,onStopControlPointChange:c,__experimentalIsRenderedInSidebar:l}){const u=O.useRef(),d=b=>{if(u.current===void 0||n.current===null)return;const h=Ode(b.clientX,n.current),{initialPosition:g,index:z,significantMoveHappened:y}=u.current;!y&&Math.abs(g-h)>=_rt&&(u.current.significantMoveHappened=!0),s(Kq(r,z,h))},p=()=>{window&&window.removeEventListener&&u.current&&u.current.listenersActivated&&(window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",p),c(),u.current.listenersActivated=!1)},f=O.useRef();return f.current=p,O.useEffect(()=>()=>{f.current?.()},[]),a.jsx(a.Fragment,{children:r.map((b,h)=>{const g=b?.position;return o!==g&&a.jsx(yde,{isRenderedInSidebar:l,onClose:c,renderToggle:({isOpen:z,onToggle:y})=>a.jsx(Ade,{onClick:()=>{u.current&&u.current.significantMoveHappened||(z?c():i(),y())},onMouseDown:()=>{window&&window.addEventListener&&(u.current={initialPosition:g,index:h,significantMoveHappened:!1,listenersActivated:!0},i(),window.addEventListener("mousemove",d),window.addEventListener("mouseup",p))},onKeyDown:x=>{x.code==="ArrowLeft"?(x.stopPropagation(),s(Kq(r,h,MW(b.position-hG)))):x.code==="ArrowRight"&&(x.stopPropagation(),s(Kq(r,h,MW(b.position+hG))))},isOpen:z,position:b.position,color:b.color},h),renderContent:({onClose:z})=>a.jsxs(Ni,{paddingSize:"none",children:[a.jsx(B7,{enableAlpha:!t,color:b.color,onChange:y=>{s(zde(r,h,Tt(y).toRgbString()))}}),!e&&r.length>2&&a.jsx(Je,{className:"components-custom-gradient-picker__remove-control-point-wrapper",alignment:"center",children:a.jsx(fe,{onClick:()=>{s(qrt(r,h)),z()},variant:"link",children:m("Remove Control Point")})})]}),style:{left:`${b.position}%`,transform:"translateX( -50% )"}},h)})})}function Crt({value:e,onChange:t,onOpenInserter:n,onCloseInserter:o,insertPosition:r,disableAlpha:s,__experimentalIsRenderedInSidebar:i}){const[c,l]=O.useState(!1);return a.jsx(yde,{isRenderedInSidebar:i,className:"components-custom-gradient-picker__inserter",onClose:()=>{o()},renderToggle:({isOpen:u,onToggle:d})=>a.jsx(fe,{"aria-expanded":u,"aria-haspopup":"true",onClick:()=>{u?o():(l(!1),n()),d()},className:"components-custom-gradient-picker__insert-point-dropdown",icon:is}),renderContent:()=>a.jsx(Ni,{paddingSize:"none",children:a.jsx(B7,{enableAlpha:!s,onChange:u=>{c?t(Srt(e,r,Tt(u).toRgbString())):(t(krt(e,r,Tt(u).toRgbString())),l(!0))}})}),style:r!==null?{left:`${r}%`,transform:"translateX( -50% )"}:void 0})}gW.InsertPoint=Crt;const Rrt=(e,t)=>{switch(t.type){case"MOVE_INSERTER":if(e.id==="IDLE"||e.id==="MOVING_INSERTER")return{id:"MOVING_INSERTER",insertPosition:t.insertPosition};break;case"STOP_INSERTER_MOVE":if(e.id==="MOVING_INSERTER")return{id:"IDLE"};break;case"OPEN_INSERTER":if(e.id==="MOVING_INSERTER")return{id:"INSERTING_CONTROL_POINT",insertPosition:e.insertPosition};break;case"CLOSE_INSERTER":if(e.id==="INSERTING_CONTROL_POINT")return{id:"IDLE"};break;case"START_CONTROL_CHANGE":if(e.id==="IDLE")return{id:"MOVING_CONTROL_POINT"};break;case"STOP_CONTROL_CHANGE":if(e.id==="MOVING_CONTROL_POINT")return{id:"IDLE"};break}return e},Wrt={id:"IDLE"};function vde({background:e,hasGradient:t,value:n,onChange:o,disableInserter:r=!1,disableAlpha:s=!1,__experimentalIsRenderedInSidebar:i=!1}){const c=O.useRef(null),[l,u]=O.useReducer(Rrt,Wrt),d=h=>{if(!c.current)return;const g=Ode(h.clientX,c.current);if(n.some(({position:z})=>Math.abs(g-z){u({type:"STOP_INSERTER_MOVE"})},f=l.id==="MOVING_INSERTER",b=l.id==="INSERTING_CONTROL_POINT";return a.jsxs("div",{className:$("components-custom-gradient-picker__gradient-bar",{"has-gradient":t}),onMouseEnter:d,onMouseMove:d,onMouseLeave:p,children:[a.jsx("div",{className:"components-custom-gradient-picker__gradient-bar-background",style:{background:e,opacity:t?1:.4}}),a.jsxs("div",{ref:c,className:"components-custom-gradient-picker__markers-container",children:[!r&&(f||b)&&a.jsx(gW.InsertPoint,{__experimentalIsRenderedInSidebar:i,disableAlpha:s,insertPosition:l.insertPosition,value:n,onChange:o,onOpenInserter:()=>{u({type:"OPEN_INSERTER"})},onCloseInserter:()=>{u({type:"CLOSE_INSERTER"})}}),a.jsx(gW,{__experimentalIsRenderedInSidebar:i,disableAlpha:s,disableRemove:r,gradientPickerDomRef:c,ignoreMarkerPosition:b?l.insertPosition:void 0,value:n,onChange:o,onStartControlPointChange:()=>{u({type:"START_CONTROL_CHANGE"})},onStopControlPointChange:()=>{u({type:"STOP_CONTROL_CHANGE"})}})]})]})}var zW={},xde={};xde.parse=function(){var e={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},t="";function n(L){var I=new Error(t+": "+L);throw I.source=t,I}function o(){var L=r();return t.length>0&&n("Invalid input not EOF"),L}function r(){return v(s)}function s(){return i("linear-gradient",e.linearGradient,l)||i("repeating-linear-gradient",e.repeatingLinearGradient,l)||i("radial-gradient",e.radialGradient,p)||i("repeating-radial-gradient",e.repeatingRadialGradient,p)}function i(L,I,P){return c(I,function(H){var U=P();return U&&(N(e.comma)||n("Missing comma before color stops")),{type:L,orientation:U,colorStops:v(M)}})}function c(L,I){var P=N(L);if(P)return N(e.startCall)||n("Missing ("),result=I(P),N(e.endCall)||n("Missing )"),result}function l(){return u()||d()}function u(){return B("directional",e.sideOrCorner,1)}function d(){return B("angular",e.angleValue,1)}function p(){var L,I=f(),P;return I&&(L=[],L.push(I),P=t,N(e.comma)&&(I=f(),I?L.push(I):t=P)),L}function f(){var L=b()||h();if(L)L.at=z();else{var I=y();I&&(L={type:"default-radial",at:I})}return L}function b(){var L=B("shape",/^(circle)/i,0);return L&&(L.style=W()||g()),L}function h(){var L=B("shape",/^(ellipse)/i,0);return L&&(L.style=C()||g()),L}function g(){return B("extent-keyword",e.extentKeywords,1)}function z(){if(B("position",/^at/,0)){var L=y();return L||n("Missing positioning value"),L}}function y(){var L=x();if(L.x||L.y)return{type:"position",value:L}}function x(){return{x:C(),y:C()}}function v(L){var I=L(),P=[];if(I)for(P.push(I);N(e.comma);)I=L(),I?P.push(I):n("One extra comma");return P}function M(){var L=A();return L||n("Expected color definition"),L.length=C(),L}function A(){return w()||q()||k()||_()}function _(){return B("literal",e.literalColor,0)}function w(){return B("hex",e.hexColor,1)}function k(){return c(e.rgbColor,function(){return{type:"rgb",value:v(S)}})}function q(){return c(e.rgbaColor,function(){return{type:"rgba",value:v(S)}})}function S(){return N(e.number)[1]}function C(){return B("%",e.percentageValue,1)||T()||W()}function T(){return B("position-keyword",e.positionKeywords,1)}function W(){return B("px",e.pixelValue,1)||B("em",e.emValue,1)}function B(L,I,P){var H=N(I);if(H)return{type:L,value:H[P]}}function N(L){var I,P;return P=/^[\n\r\t\s]+/.exec(t),P&&E(P[0].length),I=L.exec(t),I&&E(I[0].length),I}function E(L){t=t.substr(L)}return function(L){return t=L.toString(),o()}}();zW.parse=(xde||{}).parse;const mG="linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)",Trt=180,_de={type:"angular",value:"90"},Ert=[{value:"linear-gradient",label:m("Linear")},{value:"radial-gradient",label:m("Radial")}],Brt={top:0,"top right":45,"right top":45,right:90,"right bottom":135,"bottom right":135,bottom:180,"bottom left":225,"left bottom":225,left:270,"top left":315,"left top":315};function Nrt({type:e,value:t}){return e==="literal"?t:e==="hex"?`#${t}`:`${e}(${t.join(",")})`}function Lrt(e){if(!e)return"";const{value:t,type:n}=e;return`${t}${n}`}function jrt({type:e,value:t,length:n}){return`${Nrt({type:e,value:t})} ${Lrt(n)}`}function Prt(e){if(!(Array.isArray(e)||!e||e.type!=="angular"))return`${e.value}deg`}function oz({type:e,orientation:t,colorStops:n}){const o=Prt(t),r=n.sort((s,i)=>{const c=l=>l?.length?.value===void 0?0:parseInt(l.length.value);return c(s)-c(i)}).map(jrt);return`${e}(${[o,...r].filter(Boolean).join(",")})`}fs([bs]);function Irt(e){return oz({type:"linear-gradient",orientation:_de,colorStops:e.colorStops})}function Drt(e){return e.length===void 0||e.length.type!=="%"}function Frt(e){let t,n=!!e;const o=e??mG;try{t=zW.parse(o)[0]}catch(r){console.warn("wp.components.CustomGradientPicker failed to parse the gradient with error",r),t=zW.parse(mG)[0],n=!1}if(!Array.isArray(t.orientation)&&t.orientation?.type==="directional"&&(t.orientation={type:"angular",value:Brt[t.orientation.value].toString()}),t.colorStops.some(Drt)){const{colorStops:r}=t,s=100/(r.length-1);r.forEach((i,c)=>{i.length={value:`${s*c}`,type:"%"}})}return{gradientAST:t,hasGradient:n}}function $rt(e,t){return{...e,colorStops:t.map(({position:n,color:o})=>{const{r,g:s,b:i,a:c}=Tt(o).toRgb();return{length:{type:"%",value:n?.toString()},type:c<1?"rgba":"rgb",value:c<1?[`${r}`,`${s}`,`${i}`,`${c}`]:[`${r}`,`${s}`,`${i}`]}})}}function Vrt(e){switch(e.type){case"hex":return`#${e.value}`;case"literal":return e.value;case"rgb":case"rgba":return`${e.type}(${e.value.join(",")})`;default:return"transparent"}}const Hrt=we(Vi,{target:"e10bzpgi1"})({name:"1gvx10y",styles:"flex-grow:5"}),Urt=we(Vi,{target:"e10bzpgi0"})({name:"1gvx10y",styles:"flex-grow:5"}),Xrt=({gradientAST:e,hasGradient:t,onChange:n})=>{var o;const r=(o=e?.orientation?.value)!==null&&o!==void 0?o:Trt,s=i=>{n(oz({...e,orientation:{type:"angular",value:`${i}`}}))};return a.jsx(qet,{onChange:s,value:t?r:""})},Grt=({gradientAST:e,hasGradient:t,onChange:n})=>{const{type:o}=e,r=()=>{n(oz({...e,orientation:e.orientation?void 0:_de,type:"linear-gradient"}))},s=()=>{const{orientation:c,...l}=e;n(oz({...l,type:"radial-gradient"}))},i=c=>{c==="linear-gradient"&&r(),c==="radial-gradient"&&s()};return a.jsx(i0,{__nextHasNoMarginBottom:!0,className:"components-custom-gradient-picker__type-picker",label:m("Type"),labelPosition:"top",onChange:i,options:Ert,size:"__unstable-large",value:t?o:void 0})};function Krt({value:e,onChange:t,__experimentalIsRenderedInSidebar:n=!1}){const{gradientAST:o,hasGradient:r}=Frt(e),s=Irt(o),i=o.colorStops.map(c=>({color:Vrt(c),position:parseInt(c.length.value)}));return a.jsxs(Ye,{spacing:4,className:"components-custom-gradient-picker",children:[a.jsx(vde,{__experimentalIsRenderedInSidebar:n,background:s,hasGradient:r,value:i,onChange:c=>{t(oz($rt(o,c)))}}),a.jsxs(Q0,{gap:3,className:"components-custom-gradient-picker__ui-line",children:[a.jsx(Hrt,{children:a.jsx(Grt,{gradientAST:o,hasGradient:r,onChange:t})}),a.jsx(Urt,{children:o.type==="linear-gradient"&&a.jsx(Xrt,{gradientAST:o,hasGradient:r,onChange:t})})]})]})}const Yrt=e=>Array.isArray(e.gradients)&&!("gradient"in e),Zrt=e=>e.length>0&&e.every(t=>Yrt(t));function wde({className:e,clearGradient:t,gradients:n,onChange:o,value:r,...s}){const i=O.useMemo(()=>n.map(({gradient:c,name:l,slug:u},d)=>a.jsx(uo.Option,{value:c,isSelected:r===c,tooltipText:l||le(m("Gradient code: %s"),c),style:{color:"rgba( 0,0,0,0 )",background:c},onClick:r===c?t:()=>o(c,d),"aria-label":l?le(m("Gradient: %s"),l):le(m("Gradient code: %s"),c)},u)),[n,r,o,t]);return a.jsx(uo.OptionGroup,{className:e,options:i,...s})}function kde({className:e,clearGradient:t,gradients:n,onChange:o,value:r,headingLevel:s}){const i=He(kde);return a.jsx(Ye,{spacing:3,className:e,children:n.map(({name:c,gradients:l},u)=>{const d=`color-palette-${i}-${u}`;return a.jsxs(Ye,{spacing:2,children:[a.jsx(Hue,{level:s,id:d,children:c}),a.jsx(wde,{clearGradient:t,gradients:l,onChange:p=>o(p,u),value:r,"aria-labelledby":d})]},u)})})}function Qrt(e){const{asButtons:t,loop:n,actions:o,headingLevel:r,"aria-label":s,"aria-labelledby":i,...c}=e,l=Zrt(e.gradients)?a.jsx(kde,{headingLevel:r,...c}):a.jsx(wde,{...c});let u;if(t)u={asButtons:!0};else{const d={asButtons:!1,loop:n};s?u={...d,"aria-label":s}:i?u={...d,"aria-labelledby":i}:u={...d,"aria-label":m("Custom color picker.")}}return a.jsx(uo,{...u,actions:o,options:l})}function Jrt({className:e,gradients:t=[],onChange:n,value:o,clearable:r=!0,disableCustomGradients:s=!1,__experimentalIsRenderedInSidebar:i,headingLevel:c=2,...l}){const u=O.useCallback(()=>n(void 0),[n]);return a.jsxs(Ye,{spacing:t.length?4:0,children:[!s&&a.jsx(Krt,{__experimentalIsRenderedInSidebar:i,value:o,onChange:n}),(t.length>0||r)&&a.jsx(Qrt,{...l,className:e,clearGradient:u,gradients:t,onChange:n,value:o,actions:r&&!s&&a.jsx(uo.ButtonAction,{onClick:u,children:m("Clear")}),headingLevel:c})]})}const est=()=>{},tst=["menuitem","menuitemradio","menuitemcheckbox"];function nst(e,t,n){const o=e+n;return o<0?t+o:o>=t?o-t:o}class ost extends O.Component{constructor(t){super(t),this.onKeyDown=this.onKeyDown.bind(this),this.bindContainer=this.bindContainer.bind(this),this.getFocusableContext=this.getFocusableContext.bind(this),this.getFocusableIndex=this.getFocusableIndex.bind(this)}componentDidMount(){this.container&&this.container.addEventListener("keydown",this.onKeyDown)}componentWillUnmount(){this.container&&this.container.removeEventListener("keydown",this.onKeyDown)}bindContainer(t){const{forwardedRef:n}=this.props;this.container=t,typeof n=="function"?n(t):n&&"current"in n&&(n.current=t)}getFocusableContext(t){if(!this.container)return null;const{onlyBrowserTabstops:n}=this.props,r=(n?Nn.tabbable:Nn.focusable).find(this.container),s=this.getFocusableIndex(r,t);return s>-1&&t?{index:s,target:t,focusables:r}:null}getFocusableIndex(t,n){return t.indexOf(n)}onKeyDown(t){this.props.onKeyDown&&this.props.onKeyDown(t);const{getFocusableContext:n}=this,{cycle:o=!0,eventToOffset:r,onNavigate:s=est,stopNavigationEvents:i}=this.props,c=r(t);if(c!==void 0&&i){t.stopImmediatePropagation();const b=t.target?.getAttribute("role");!!b&&tst.includes(b)&&t.preventDefault()}if(!c)return;const l=t.target?.ownerDocument?.activeElement;if(!l)return;const u=n(l);if(!u)return;const{index:d,focusables:p}=u,f=o?nst(d,p.length,c):d+c;f>=0&&fa.jsx(ost,{...e,forwardedRef:t});qde.displayName="NavigableContainer";const rst=O.forwardRef(qde);function sst({role:e="menu",orientation:t="vertical",...n},o){const r=s=>{const{code:i}=s;let c=["ArrowDown"],l=["ArrowUp"];if(t==="horizontal"&&(c=["ArrowRight"],l=["ArrowLeft"]),t==="both"&&(c=["ArrowRight","ArrowDown"],l=["ArrowLeft","ArrowUp"]),c.includes(i))return 1;if(l.includes(i))return-1;if(["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(i))return 0};return a.jsx(rst,{ref:o,stopNavigationEvents:!0,onlyBrowserTabstops:!1,role:e,"aria-orientation":e!=="presentation"&&(t==="vertical"||t==="horizontal")?t:void 0,eventToOffset:r,...n})}const xf=O.forwardRef(sst);function Yq(e={},t={}){const n={...e,...t};return t.className&&e.className&&(n.className=$(t.className,e.className)),n}function MG(e){return typeof e=="function"}function ist(e){const{children:t,className:n,controls:o,icon:r=cle,label:s,popoverProps:i,toggleProps:c,menuProps:l,disableOpenOnArrowDown:u=!1,text:d,noIcons:p,open:f,defaultOpen:b,onToggle:h,variant:g}=Ut(e,"DropdownMenu");if(!o?.length&&!MG(t))return null;let z;o?.length&&(z=o,Array.isArray(z[0])||(z=[o]));const y=Yq({className:"components-dropdown-menu__popover",variant:g},i);return a.jsx(B0,{className:n,popoverProps:y,renderToggle:({isOpen:x,onToggle:v})=>{var M;const A=q=>{u||!x&&q.code==="ArrowDown"&&(q.preventDefault(),v())},{as:_=fe,...w}=c??{},k=Yq({className:$("components-dropdown-menu__toggle",{"is-opened":x})},w);return a.jsx(_,{...k,icon:r,onClick:q=>{v(),k.onClick&&k.onClick(q)},onKeyDown:q=>{A(q),k.onKeyDown&&k.onKeyDown(q)},"aria-haspopup":"true","aria-expanded":x,label:s,text:d,showTooltip:(M=c?.showTooltip)!==null&&M!==void 0?M:!0,children:k.children})},renderContent:x=>{const v=Yq({"aria-label":s,className:$("components-dropdown-menu__menu",{"no-icons":p})},l);return a.jsxs(xf,{...v,role:"menu",children:[MG(t)?t(x):null,z?.flatMap((M,A)=>M.map((_,w)=>a.jsx(fe,{onClick:k=>{k.stopPropagation(),x.onClose(),_.onClick&&_.onClick()},className:$("components-dropdown-menu__menu-item",{"has-separator":A>0&&w===0,"is-active":_.isActive,"is-icon-only":!_.title}),icon:_.icon,label:_.label,"aria-checked":_.role==="menuitemcheckbox"||_.role==="menuitemradio"?_.isActive:void 0,role:_.role==="menuitemcheckbox"||_.role==="menuitemradio"?_.role:"menuitem",accessibleWhenDisabled:!0,disabled:_.isDisabled,children:_.title},[A,w].join())))]})},open:f,defaultOpen:b,onToggle:h})}const E1=aae(ist,"DropdownMenu"),ast=({__next40pxDefaultSize:e})=>!e&&ke("height:28px;padding-left:",Ce(1),";padding-right:",Ce(1),";",""),cst=we(Q0,{target:"evuatpg0"})("height:38px;padding-left:",Ce(2),";padding-right:",Ce(2),";",ast,";");function lst(e,t){const{value:n,isExpanded:o,instanceId:r,selectedSuggestionIndex:s,className:i,onChange:c,onFocus:l,onBlur:u,...d}=e,[p,f]=O.useState(!1),b=n?n.length+1:0,h=y=>{c&&c({value:y.target.value})},g=y=>{f(!0),l?.(y)},z=y=>{f(!1),u?.(y)};return a.jsx("input",{ref:t,id:`components-form-token-input-${r}`,type:"text",...d,value:n||"",onChange:h,onFocus:g,onBlur:z,size:b,className:$(i,"components-form-token-field__input"),autoComplete:"off",role:"combobox","aria-expanded":o,"aria-autocomplete":"list","aria-owns":o?`components-form-token-suggestions-${r}`:void 0,"aria-activedescendant":p&&s!==-1&&o?`components-form-token-suggestions-${r}-${s}`:void 0,"aria-describedby":`components-form-token-suggestions-howto-${r}`})}const Sde=O.forwardRef(lst),ust=e=>{e.preventDefault()};function Cde({selectedIndex:e,scrollIntoView:t,match:n,onHover:o,onSelect:r,suggestions:s=[],displayTransform:i,instanceId:c,__experimentalRenderItem:l}){const u=Et(b=>(e>-1&&t&&b.children[e]&&b.children[e].scrollIntoView({behavior:"instant",block:"nearest",inline:"nearest"}),()=>{}),[e,t]),d=b=>()=>{o?.(b)},p=b=>()=>{r?.(b)},f=b=>{const h=i(n).toLocaleLowerCase();if(h.length===0)return null;const g=i(b),z=g.toLocaleLowerCase().indexOf(h);return{suggestionBeforeMatch:g.substring(0,z),suggestionMatch:g.substring(z,z+h.length),suggestionAfterMatch:g.substring(z+h.length)}};return a.jsx("ul",{ref:u,className:"components-form-token-field__suggestions-list",id:`components-form-token-suggestions-${c}`,role:"listbox",children:s.map((b,h)=>{const g=f(b),z=h===e,y=typeof b=="object"&&b?.disabled,x=typeof b=="object"&&"value"in b?b?.value:i(b),v=$("components-form-token-field__suggestion",{"is-selected":z});let M;return typeof l=="function"?M=l({item:b}):g?M=a.jsxs("span",{"aria-label":i(b),children:[g.suggestionBeforeMatch,a.jsx("strong",{className:"components-form-token-field__suggestion-match",children:g.suggestionMatch}),g.suggestionAfterMatch]}):M=i(b),a.jsx("li",{id:`components-form-token-suggestions-${c}-${h}`,role:"option",className:v,onMouseDown:ust,onClick:p(b),onMouseEnter:d(b),"aria-selected":h===e,"aria-disabled":y,children:M},x)})})}const dst=Sn(e=>t=>{const[n,o]=O.useState(void 0),r=O.useCallback(s=>o(()=>s?.handleFocusOutside?s.handleFocusOutside.bind(s):void 0),[]);return a.jsx("div",{...mne(n),children:a.jsx(e,{ref:r,...t})})},"withFocusOutside"),pst=()=>{},fst=dst(class extends O.Component{handleFocusOutside(e){this.props.onFocusOutside(e)}render(){return this.props.children}}),zA=(e,t)=>e===null?-1:t.indexOf(e);function Nh(e){var t;const{__nextHasNoMarginBottom:n=!1,__next40pxDefaultSize:o=!1,value:r,label:s,options:i,onChange:c,onFilterValueChange:l=pst,hideLabelFromVision:u,help:d,allowReset:p=!0,className:f,messages:b={selected:m("Item selected.")},__experimentalRenderItem:h,expandOnFocus:g=!0}=Md(e),[z,y]=g3({value:r,onChange:c}),x=i.find(oe=>oe.value===z),v=(t=x?.label)!==null&&t!==void 0?t:"",M=He(Nh,"combobox-control"),[A,_]=O.useState(x||null),[w,k]=O.useState(!1),[q,S]=O.useState(!1),[C,T]=O.useState(""),W=O.useRef(null),B=O.useMemo(()=>{const oe=[],Y=[],ee=VX(C);return i.forEach(ie=>{const se=VX(ie.label).indexOf(ee);se===0?oe.push(ie):se>0&&Y.push(ie)}),oe.concat(Y)},[C,i]),N=oe=>{oe.disabled||(y(oe.value),At(b.selected,"assertive"),_(oe),T(""),k(!1))},E=(oe=1)=>{let ee=zA(A,B)+oe;ee<0?ee=B.length-1:ee>=B.length&&(ee=0),_(B[ee]),k(!0)},L=E3(oe=>{let Y=!1;if(!oe.defaultPrevented){switch(oe.code){case"Enter":A&&(N(A),Y=!0);break;case"ArrowUp":E(-1),Y=!0;break;case"ArrowDown":E(1),Y=!0;break;case"Escape":k(!1),_(null),Y=!0;break}Y&&oe.preventDefault()}}),I=()=>{S(!1)},P=()=>{S(!0),g&&k(!0),l(""),T("")},H=()=>{k(!0)},U=()=>{k(!1)},X=oe=>{const Y=oe.value;T(Y),l(Y),q&&k(!0)},Z=()=>{y(null),W.current?.focus()},ne=oe=>{oe.stopPropagation()};return O.useEffect(()=>{const oe=B.length>0,Y=zA(A,B)>0;oe&&!Y&&_(B[0])},[B,A]),O.useEffect(()=>{const oe=B.length>0;if(w){const Y=oe?le(a0("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",B.length),B.length):m("No results.");At(Y,"polite")}},[B,w]),a.jsx(fst,{onFocusOutside:U,children:a.jsx(z0,{__nextHasNoMarginBottom:n,__associatedWPComponentName:"ComboboxControl",className:$(f,"components-combobox-control"),label:s,id:`components-form-token-input-${M}`,hideLabelFromVision:u,help:d,children:a.jsxs("div",{className:"components-combobox-control__suggestions-container",tabIndex:-1,onKeyDown:L,children:[a.jsxs(cst,{__next40pxDefaultSize:o,children:[a.jsx(Vi,{children:a.jsx(Sde,{className:"components-combobox-control__input",instanceId:M,ref:W,value:w?C:v,onFocus:P,onBlur:I,onClick:H,isExpanded:w,selectedSuggestionIndex:zA(A,B),onChange:X})}),p&&a.jsx(Ht,{children:a.jsx(fe,{className:"components-combobox-control__reset",icon:zl,disabled:!z,onClick:Z,onKeyDown:ne,label:m("Reset")})})]}),w&&a.jsx(Cde,{instanceId:M,match:{label:C,value:""},displayTransform:oe=>oe.label,suggestions:B,selectedIndex:zA(A,B),onHover:_,onSelect:N,scrollIntoView:!0,__experimentalRenderItem:h})]})})})}function bst({focusLoop:e=!1,focusWrap:t=!1,focusShift:n=!1,virtualFocus:o=!1,orientation:r="both",rtl:s=!1,...i}={}){return vse({focusLoop:e,focusWrap:t,focusShift:n,virtualFocus:o,orientation:r,rtl:s,...i})}const hst=new Set(["alert","status","log","marquee","timer"]),Rde=[];function mst(e){const t=Array.from(document.body.children),n=[];Rde.push(n);for(const o of t)o!==e&&Mst(o)&&(o.setAttribute("aria-hidden","true"),n.push(o))}function Mst(e){const t=e.getAttribute("role");return!(e.tagName==="SCRIPT"||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||t&&hst.has(t))}function gst(){const e=Rde.pop();if(e)for(const t of e)t.removeAttribute("aria-hidden")}const gG=O.createContext(new Set),Cm=new Map;function zst(e,t){const{bodyOpenClassName:n="modal-open",role:o="dialog",title:r=null,focusOnMount:s=!0,shouldCloseOnEsc:i=!0,shouldCloseOnClickOutside:c=!0,isDismissible:l=!0,aria:u={labelledby:void 0,describedby:void 0},onRequestClose:d,icon:p,closeButtonLabel:f,children:b,style:h,overlayClassName:g,className:z,contentLabel:y,onKeyDown:x,isFullScreen:v=!1,size:M,headerActions:A=null,__experimentalHideHeader:_=!1}=e,w=O.useRef(),k=He(fn),q=r?`components-modal-header-${k}`:u.labelledby,S=Cx(s==="firstContentElement"?"firstElement":s),C=xB(),T=_B(),W=O.useRef(null),B=O.useRef(null),[N,E]=O.useState(!1),[L,I]=O.useState(!1);let P;v||M==="fill"?P="is-full-screen":M&&(P=`has-size-${M}`);const H=O.useCallback(()=>{if(!W.current)return;const se=Sr(W.current);W.current===se?I(!0):I(!1)},[W]);O.useEffect(()=>(mst(w.current),()=>gst()),[]);const U=O.useRef();O.useEffect(()=>{U.current=d},[d]);const X=O.useContext(gG),[Z]=O.useState(()=>new Set);O.useEffect(()=>{X.add(U);for(const se of X)se!==U&&se.current?.();return()=>{for(const se of Z)se.current?.();X.delete(U)}},[X,Z]),O.useEffect(()=>{var se;const be=n,ye=1+((se=Cm.get(be))!==null&&se!==void 0?se:0);return Cm.set(be,ye),document.body.classList.add(n),()=>{const xe=Cm.get(be)-1;xe===0?(document.body.classList.remove(be),Cm.delete(be)):Cm.set(be,xe)}},[n]),O.useLayoutEffect(()=>{if(!window.ResizeObserver||!B.current)return;const se=new ResizeObserver(H);return se.observe(B.current),H(),()=>{se.disconnect()}},[H,B]);function ne(se){i&&(se.code==="Escape"||se.key==="Escape")&&!se.defaultPrevented&&(se.preventDefault(),d&&d(se))}const oe=O.useCallback(se=>{var be;const ye=(be=se?.currentTarget?.scrollTop)!==null&&be!==void 0?be:-1;!N&&ye>0?E(!0):N&&ye<=0&&E(!1)},[N]);let Y=null;const ee={onPointerDown:se=>{se.target===se.currentTarget&&(Y=se.target,se.preventDefault())},onPointerUp:({target:se,button:be})=>{const ye=se===Y;Y=null,be===0&&ye&&d()}},ie=a.jsx("div",{ref:Gt([w,t]),className:$("components-modal__screen-overlay",g),onKeyDown:E3(ne),...c?ee:{},children:a.jsx(yf,{document,children:a.jsx("div",{className:$("components-modal__frame",P,z),style:h,ref:Gt([C,T,s!=="firstContentElement"?S:null]),role:o,"aria-label":y,"aria-labelledby":y?void 0:q,"aria-describedby":u.describedby,tabIndex:-1,onKeyDown:x,children:a.jsxs("div",{className:$("components-modal__content",{"hide-header":_,"is-scrollable":L,"has-scrolled-content":N}),role:"document",onScroll:oe,ref:W,"aria-label":L?m("Scrollable section"):void 0,tabIndex:L?0:void 0,children:[!_&&a.jsxs("div",{className:"components-modal__header",children:[a.jsxs("div",{className:"components-modal__header-heading-container",children:[p&&a.jsx("span",{className:"components-modal__icon-container","aria-hidden":!0,children:p}),r&&a.jsx("h1",{id:q,className:"components-modal__header-heading",children:r})]}),A,l&&a.jsx(fe,{onClick:d,icon:Ch,label:f||m("Close")})]}),a.jsx("div",{ref:Gt([B,s==="firstContentElement"?S:null]),children:b})]})})})});return Qo.createPortal(a.jsx(gG.Provider,{value:Z,children:ie}),document.body)}const fn=O.forwardRef(zst),Ost={name:"7g5ii0",styles:"&&{z-index:1000001;}"},Ast=(e,t)=>{const{isOpen:n,onConfirm:o,onCancel:r,children:s,confirmButtonText:i,cancelButtonText:c,...l}=Ut(e,"ConfirmDialog"),d=x0()(Ost),p=O.useRef(),f=O.useRef(),[b,h]=O.useState(),[g,z]=O.useState();O.useEffect(()=>{const A=typeof n<"u";h(A?n:!0),z(!A)},[n]);const y=O.useCallback(A=>_=>{A?.(_),g&&h(!1)},[g,h]),x=O.useCallback(A=>{!(A.target===p.current||A.target===f.current)&&A.key==="Enter"&&y(o)(A)},[y,o]),v=c??m("Cancel"),M=i??m("OK");return a.jsx(a.Fragment,{children:b&&a.jsx(fn,{onRequestClose:y(r),onKeyDown:x,closeButtonLabel:v,isDismissible:!0,ref:t,overlayClassName:d,__experimentalHideHeader:!0,...l,children:a.jsxs(Ye,{spacing:8,children:[a.jsx(l0,{children:s}),a.jsxs(Q0,{direction:"row",justify:"flex-end",children:[a.jsx(fe,{__next40pxDefaultSize:!0,ref:p,variant:"tertiary",onClick:y(r),children:v}),a.jsx(fe,{__next40pxDefaultSize:!0,ref:f,variant:"primary",onClick:y(o),children:M})]})]})})})},bw=Qt(Ast,"ConfirmDialog"),OW={SLIDE_AMOUNT:"2px",DURATION:"400ms",EASING:"cubic-bezier( 0.16, 1, 0.3, 1 )"},qs={compact:Se.controlPaddingXSmall,small:Se.controlPaddingXSmall,default:Se.controlPaddingX},yst=(e,t)=>{const n={compact:{[t]:32,paddingInlineStart:qs.compact,paddingInlineEnd:qs.compact+$M},default:{[t]:40,paddingInlineStart:qs.default,paddingInlineEnd:qs.default+$M},small:{[t]:24,paddingInlineStart:qs.small,paddingInlineEnd:qs.small+$M}};return n[e]||n.default},vst=e=>{const n={compact:{paddingInlineStart:qs.compact,paddingInlineEnd:qs.compact-6},default:{paddingInlineStart:qs.default,paddingInlineEnd:qs.default-6},small:{paddingInlineStart:qs.small,paddingInlineEnd:qs.small-6}};return n[e]||n.default},xst=we(QFe,{shouldForwardProp:e=>e!=="hasCustomRenderProp",target:"e1p3eej77"})(({size:e,hasCustomRenderProp:t})=>ke("display:block;background-color:",qe.theme.background,";border:none;color:",qe.theme.foreground,";cursor:pointer;font-family:inherit;text-align:start;user-select:none;width:100%;&[data-focus-visible]{outline:none;}",yst(e,t?"minHeight":"height")," ",!t&&Wde," ",k7({inputSize:e}),";",""),""),_st=E_({"0%":{opacity:0,transform:`translateY(-${OW.SLIDE_AMOUNT})`},"100%":{opacity:1,transform:"translateY(0)"}}),wst=we(p$e,{target:"e1p3eej76"})("display:flex;flex-direction:column;background-color:",qe.theme.background,";border-radius:",Se.radiusSmall,";border:1px solid ",qe.theme.foreground,";z-index:1000000;max-height:min( var( --popover-available-height, 400px ), 400px );overflow:auto;overscroll-behavior:contain;min-width:min-content;&[data-open]{@media not ( prefers-reduced-motion ){animation-duration:",OW.DURATION,";animation-timing-function:",OW.EASING,";animation-name:",_st,";will-change:transform,opacity;}}&[data-focus-visible]{outline:none;}"),kst=we(s$e,{target:"e1p3eej75"})(({size:e})=>ke("cursor:default;display:flex;align-items:center;justify-content:space-between;font-size:",Se.fontSize,";line-height:28px;padding-block:",Ce(2),";scroll-margin:",Ce(1),";user-select:none;&[aria-disabled='true']{cursor:not-allowed;}&[data-active-item]{background-color:",qe.theme.gray[300],";}",vst(e),";",""),""),Wde={name:"1h52dri",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap"},qst=we("div",{target:"e1p3eej74"})(Wde,";"),Sst=we("span",{target:"e1p3eej73"})("color:",qe.theme.gray[600],";margin-inline-start:",Ce(2),";"),Tde=we("div",{target:"e1p3eej72"})("display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;flex:1;column-gap:",Ce(4),";"),Cst=we("span",{target:"e1p3eej71"})("color:",qe.theme.gray[600],";text-align:initial;line-height:",Se.fontLineHeightBase,";padding-inline-end:",Ce(1),";margin-block:",Ce(1),";"),Rst=we(t$e,{target:"e1p3eej70"})("display:flex;align-items:center;margin-inline-start:",Ce(2),";align-self:start;margin-block-start:2px;font-size:0;",Tde,"~&,&:not(:empty){font-size:24px;}"),Ede=O.createContext(void 0);function Wst(e){return(Array.isArray(e)?e.length===0:e==null)?m("Select an item"):Array.isArray(e)?e.length===1?e[0]:le(m("%s items selected"),e.length):e}const Tst=({renderSelectedValue:e,size:t="default",store:n,...o})=>{const{value:r}=on(n),s=O.useMemo(()=>e??Wst,[e]);return a.jsx(xst,{...o,size:t,hasCustomRenderProp:!!e,store:n,children:s(r)})};function Est(e){const{children:t,hideLabelFromVision:n=!1,label:o,size:r,store:s,className:i,isLegacy:c=!1,...l}=e,u=O.useCallback(p=>{c&&p.stopPropagation()},[c]),d=O.useMemo(()=>({store:s,size:r}),[s,r]);return a.jsxs("div",{className:i,children:[a.jsx(c$e,{store:s,render:n?a.jsx(Kt,{}):a.jsx(z0.VisualLabel,{as:"div"}),children:o}),a.jsxs(q7,{__next40pxDefaultSize:!0,size:r,suffix:a.jsx(Tue,{}),children:[a.jsx(Tst,{...l,size:r,store:s,showOnKeyDown:!c}),a.jsx(wst,{gutter:12,store:s,sameWidth:!0,slide:!1,onKeyDown:u,flip:!c,children:a.jsx(Ede.Provider,{value:d,children:t})})]})]})}function Bde({children:e,...t}){var n;const o=O.useContext(Ede);return a.jsxs(kst,{store:o?.store,size:(n=o?.size)!==null&&n!==void 0?n:"default",...t,children:[e??t.value,a.jsx(Rst,{children:a.jsx(t0,{icon:no})})]})}Bde.displayName="CustomSelectControlV2.Item";function Bst({__experimentalShowSelectedHint:e,...t}){return{showSelectedHint:e,...t}}function zG({__experimentalHint:e,...t}){return{hint:e,...t}}function Nst(e,t){return t||le(m("Currently selected: %s"),e)}function Lh(e){const{__next40pxDefaultSize:t=!1,describedBy:n,options:o,onChange:r,size:s="default",value:i,className:c,showSelectedHint:l=!1,...u}=Bst(e),d=He(Lh,"custom-select-control__description"),p=HFe({async setValue(z){const y=o.find(M=>M.name===z);if(!r||!y)return;await Promise.resolve();const x=p.getState(),v={highlightedIndex:x.renderedItems.findIndex(M=>M.value===z),inputValue:"",isOpen:x.open,selectedItem:y,type:""};r(v)},value:i?.name,defaultValue:o[0]?.name}),f=o.map(zG).map(({name:z,key:y,hint:x,style:v,className:M})=>{const A=a.jsxs(Tde,{children:[a.jsx("span",{children:z}),a.jsx(Cst,{className:"components-custom-select-control__item-hint",children:x})]});return a.jsx(Bde,{value:z,children:x?A:z,style:v,className:$(M,"components-custom-select-control__item",{"has-hint":x})},y)}),{value:b}=p.getState(),h=()=>{const z=o?.map(zG)?.find(({name:y})=>b===y)?.hint;return a.jsxs(qst,{children:[b,z&&a.jsx(Sst,{className:"components-custom-select-control__hint",children:z})]})},g=t&&s==="default"||s==="__unstable-large"?"default":!t&&s==="default"?"compact":s;return a.jsxs(a.Fragment,{children:[a.jsx(Est,{"aria-describedby":d,renderSelectedValue:l?h:void 0,size:g,store:p,className:$("components-custom-select-control",c),isLegacy:!0,...u,children:f}),a.jsx(Kt,{children:a.jsx("span",{id:d,children:Nst(b,n)})})]})}function mn(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Vp(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function Lst(e,t){const n=mn(e);return isNaN(t)?Vp(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function Kv(e,t){const n=mn(e);if(isNaN(t))return Vp(e,NaN);if(!t)return n;const o=n.getDate(),r=Vp(e,n.getTime());r.setMonth(n.getMonth()+t+1,0);const s=r.getDate();return o>=s?r:(n.setFullYear(r.getFullYear(),r.getMonth(),o),n)}let jst={};function Nde(){return jst}function dM(e,t){const n=Nde(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,r=mn(e),s=r.getDay(),i=(s+o;const s=r?+n:+o,i=r?o:n;i.setHours(0,0,0,0);let c=1;const l=[];for(;+i<=s;)l.push(mn(i)),i.setDate(i.getDate()+c),i.setHours(0,0,0,0);return r?l.reverse():l}function Dst(e,t){const n=mn(e.start),o=mn(e.end);let r=+n>+o;const s=r?+n:+o,i=r?o:n;i.setHours(0,0,0,0),i.setDate(1);let c=1;const l=[];for(;+i<=s;)l.push(mn(i)),i.setMonth(i.getMonth()+c);return r?l.reverse():l}function Fst(e,t){const n=mn(e.start),o=mn(e.end);let r=+n>+o;const s=dM(r?o:n,t),i=dM(r?n:o,t);s.setHours(15),i.setHours(15);const c=+i.getTime();let l=s,u=t?.step??1;if(!u)return[];u<0&&(u=-u,r=!r);const d=[];for(;+l<=c;)l.setHours(0),d.push(mn(l)),l=Ist(l,u),l.setHours(15);return r?d.reverse():d}function AG(e){const t=mn(e);return t.setDate(1),t.setHours(0,0,0,0),t}function $st(e,t){const n=Nde(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,r=mn(e),s=r.getDay(),i=(so.getTime()}function Ust(e,t){const n=mn(e),o=mn(t);return+n<+o}function Yv(e,t){const n=mn(e),o=mn(t);return+n==+o}function jde(e,t){const n=mn(e),o=n.getFullYear(),r=n.getDate(),s=Vp(e,0);s.setFullYear(o,t,15),s.setHours(0,0,0,0);const i=Vst(s);return n.setMonth(t,Math.min(r,i)),n}function Xst(e,t){let n=mn(e);return isNaN(+n)?Vp(e,NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=jde(n,t.month)),t.date!=null&&n.setDate(t.date),t.hours!=null&&n.setHours(t.hours),t.minutes!=null&&n.setMinutes(t.minutes),t.seconds!=null&&n.setSeconds(t.seconds),t.milliseconds!=null&&n.setMilliseconds(t.milliseconds),n)}function Gst(e,t){const n=mn(e);return isNaN(+n)?Vp(e,NaN):(n.setFullYear(t),n)}function Kst(){return Pst(Date.now())}function Yst(e,t){return Kv(e,-t)}function Zst(e,t){return Lde(e,-t)}var yG;(function(e){e[e.JANUARY=0]="JANUARY",e[e.FEBRUARY=1]="FEBRUARY",e[e.MARCH=2]="MARCH",e[e.APRIL=3]="APRIL",e[e.MAY=4]="MAY",e[e.JUNE=5]="JUNE",e[e.JULY=6]="JULY",e[e.AUGUST=7]="AUGUST",e[e.SEPTEMBER=8]="SEPTEMBER",e[e.OCTOBER=9]="OCTOBER",e[e.NOVEMBER=10]="NOVEMBER",e[e.DECEMBER=11]="DECEMBER"})(yG||(yG={}));var AW;(function(e){e[e.SUNDAY=0]="SUNDAY",e[e.MONDAY=1]="MONDAY",e[e.TUESDAY=2]="TUESDAY",e[e.WEDNESDAY=3]="WEDNESDAY",e[e.THURSDAY=4]="THURSDAY",e[e.FRIDAY=5]="FRIDAY",e[e.SATURDAY=6]="SATURDAY"})(AW||(AW={}));var Qst=function(e,t,n){return(Yv(e,t)||Hst(e,t))&&(Yv(e,n)||Ust(e,n))},vG=function(e){return Xst(e,{hours:0,minutes:0,seconds:0,milliseconds:0})},Jst=function(e){var t=e===void 0?{}:e,n=t.weekStartsOn,o=n===void 0?AW.SUNDAY:n,r=t.viewing,s=r===void 0?new Date:r,i=t.selected,c=i===void 0?[]:i,l=t.numberOfMonths,u=l===void 0?1:l,d=O.useState(s),p=d[0],f=d[1],b=O.useCallback(function(){return f(Kst())},[f]),h=O.useCallback(function(N){return f(function(E){return jde(E,N)})},[]),g=O.useCallback(function(){return f(function(N){return Yst(N,1)})},[]),z=O.useCallback(function(){return f(function(N){return Kv(N,1)})},[]),y=O.useCallback(function(N){return f(function(E){return Gst(E,N)})},[]),x=O.useCallback(function(){return f(function(N){return Zst(N,1)})},[]),v=O.useCallback(function(){return f(function(N){return Lde(N,1)})},[]),M=O.useState(c.map(vG)),A=M[0],_=M[1],w=function(){return _([])},k=O.useCallback(function(N){return A.findIndex(function(E){return Yv(E,N)})>-1},[A]),q=O.useCallback(function(N,E){_(E?Array.isArray(N)?N:[N]:function(L){return L.concat(Array.isArray(N)?N:[N])})},[]),S=O.useCallback(function(N){return _(function(E){return Array.isArray(N)?E.filter(function(L){return!N.map(function(I){return I.getTime()}).includes(L.getTime())}):E.filter(function(L){return!Yv(L,N)})})},[]),C=O.useCallback(function(N,E){return k(N)?S(N):q(N,E)},[S,k,q]),T=O.useCallback(function(N,E,L){_(L?OA({start:N,end:E}):function(I){return I.concat(OA({start:N,end:E}))})},[]),W=O.useCallback(function(N,E){_(function(L){return L.filter(function(I){return!OA({start:N,end:E}).map(function(P){return P.getTime()}).includes(I.getTime())})})},[]),B=O.useMemo(function(){return Dst({start:AG(p),end:OG(Kv(p,u-1))}).map(function(N){return Fst({start:AG(N),end:OG(N)},{weekStartsOn:o}).map(function(E){return OA({start:dM(E,{weekStartsOn:o}),end:$st(E,{weekStartsOn:o})})})})},[p,o,u]);return{clearTime:vG,inRange:Qst,viewing:p,setViewing:f,viewToday:b,viewMonth:h,viewPreviousMonth:g,viewNextMonth:z,viewYear:y,viewPreviousYear:x,viewNextYear:v,selected:A,setSelected:_,clearSelected:w,isSelected:k,select:q,deselect:S,toggle:C,selectRange:T,deselectRange:W,calendar:B}};function kn(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function as(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function yW(e,t){const n=kn(e);return isNaN(t)?as(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function i4(e,t){const n=kn(e);if(isNaN(t))return as(e,NaN);if(!t)return n;const o=n.getDate(),r=as(e,n.getTime());r.setMonth(n.getMonth()+t+1,0);const s=r.getDate();return o>=s?r:(n.setFullYear(r.getFullYear(),r.getMonth(),o),n)}const Pde=6048e5,eit=864e5,Ide=6e4,Dde=36e5;let tit={};function L3(){return tit}function $2(e,t){const n=L3(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,r=kn(e),s=r.getDay(),i=(s=r.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function fi(e){const t=kn(e);return t.setHours(0,0,0,0),t}function xG(e){const t=kn(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function nit(e,t){const n=fi(e),o=fi(t),r=+n-xG(n),s=+o-xG(o);return Math.round((r-s)/eit)}function oit(e){const t=Fde(e),n=as(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Zv(n)}function $de(e,t){const n=t*7;return yW(e,n)}function _G(e,t){const n=fi(e),o=fi(t);return+n==+o}function rit(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function sit(e){if(!rit(e)&&typeof e!="number")return!1;const t=kn(e);return!isNaN(Number(t))}function iit(e){const t=kn(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function wG(e){const t=kn(e);return t.setSeconds(0,0),t}function kG(e){const t=kn(e);return t.setDate(1),t.setHours(0,0,0,0),t}function ait(e){const t=kn(e),n=as(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function cit(e,t){const n=L3(),o=n.weekStartsOn??n.locale?.options?.weekStartsOn??0,r=kn(e),s=r.getDay(),i=(s{let o;const r=lit[e];return typeof r=="string"?o=r:t===1?o=r.one:o=r.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};function Zq(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const dit={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},pit={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},fit={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},bit={date:Zq({formats:dit,defaultWidth:"full"}),time:Zq({formats:pit,defaultWidth:"full"}),dateTime:Zq({formats:fit,defaultWidth:"full"})},hit={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},mit=(e,t,n,o)=>hit[e];function Rm(e){return(t,n)=>{const o=n?.context?String(n.context):"standalone";let r;if(o==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,c=n?.width?String(n.width):i;r=e.formattingValues[c]||e.formattingValues[i]}else{const i=e.defaultWidth,c=n?.width?String(n.width):e.defaultWidth;r=e.values[c]||e.values[i]}const s=e.argumentCallback?e.argumentCallback(t):t;return r[s]}}const Mit={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},git={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},zit={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Oit={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Ait={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},yit={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},vit=(e,t)=>{const n=Number(e),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},xit={ordinalNumber:vit,era:Rm({values:Mit,defaultWidth:"wide"}),quarter:Rm({values:git,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Rm({values:zit,defaultWidth:"wide"}),day:Rm({values:Oit,defaultWidth:"wide"}),dayPeriod:Rm({values:Ait,defaultWidth:"wide",formattingValues:yit,defaultFormattingWidth:"wide"})};function Wm(e){return(t,n={})=>{const o=n.width,r=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],s=t.match(r);if(!s)return null;const i=s[0],c=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(c)?wit(c,p=>p.test(i)):_it(c,p=>p.test(i));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const d=t.slice(i.length);return{value:u,rest:d}}}function _it(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function wit(e,t){for(let n=0;n{const o=t.match(e.matchPattern);if(!o)return null;const r=o[0],s=t.match(e.parsePattern);if(!s)return null;let i=e.valueCallback?e.valueCallback(s[0]):s[0];i=n.valueCallback?n.valueCallback(i):i;const c=t.slice(r.length);return{value:i,rest:c}}}const qit=/^(\d+)(th|st|nd|rd)?/i,Sit=/\d+/i,Cit={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Rit={any:[/^b/i,/^(a|c)/i]},Wit={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Tit={any:[/1/i,/2/i,/3/i,/4/i]},Eit={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Bit={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Nit={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Lit={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},jit={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Pit={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Iit={ordinalNumber:kit({matchPattern:qit,parsePattern:Sit,valueCallback:e=>parseInt(e,10)}),era:Wm({matchPatterns:Cit,defaultMatchWidth:"wide",parsePatterns:Rit,defaultParseWidth:"any"}),quarter:Wm({matchPatterns:Wit,defaultMatchWidth:"wide",parsePatterns:Tit,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Wm({matchPatterns:Eit,defaultMatchWidth:"wide",parsePatterns:Bit,defaultParseWidth:"any"}),day:Wm({matchPatterns:Nit,defaultMatchWidth:"wide",parsePatterns:Lit,defaultParseWidth:"any"}),dayPeriod:Wm({matchPatterns:jit,defaultMatchWidth:"any",parsePatterns:Pit,defaultParseWidth:"any"})},Dit={code:"en-US",formatDistance:uit,formatLong:bit,formatRelative:mit,localize:xit,match:Iit,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Fit(e){const t=kn(e);return nit(t,ait(t))+1}function $it(e){const t=kn(e),n=+Zv(t)-+oit(t);return Math.round(n/Pde)+1}function Vde(e,t){const n=kn(e),o=n.getFullYear(),r=L3(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=as(e,0);i.setFullYear(o+1,0,s),i.setHours(0,0,0,0);const c=$2(i,t),l=as(e,0);l.setFullYear(o,0,s),l.setHours(0,0,0,0);const u=$2(l,t);return n.getTime()>=c.getTime()?o+1:n.getTime()>=u.getTime()?o:o-1}function Vit(e,t){const n=L3(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,r=Vde(e,t),s=as(e,0);return s.setFullYear(r,0,o),s.setHours(0,0,0,0),$2(s,t)}function Hit(e,t){const n=kn(e),o=+$2(n,t)-+Vit(n,t);return Math.round(o/Pde)+1}function U0(e,t){const n=e<0?"-":"",o=Math.abs(e).toString().padStart(t,"0");return n+o}const Tl={y(e,t){const n=e.getFullYear(),o=n>0?n:1-n;return U0(t==="yy"?o%100:o,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):U0(n+1,2)},d(e,t){return U0(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return U0(e.getHours()%12||12,t.length)},H(e,t){return U0(e.getHours(),t.length)},m(e,t){return U0(e.getMinutes(),t.length)},s(e,t){return U0(e.getSeconds(),t.length)},S(e,t){const n=t.length,o=e.getMilliseconds(),r=Math.trunc(o*Math.pow(10,n-3));return U0(r,t.length)}},$f={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},qG={G:function(e,t,n){const o=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"});case"GGGGG":return n.era(o,{width:"narrow"});case"GGGG":default:return n.era(o,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const o=e.getFullYear(),r=o>0?o:1-o;return n.ordinalNumber(r,{unit:"year"})}return Tl.y(e,t)},Y:function(e,t,n,o){const r=Vde(e,o),s=r>0?r:1-r;if(t==="YY"){const i=s%100;return U0(i,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):U0(s,t.length)},R:function(e,t){const n=Fde(e);return U0(n,t.length)},u:function(e,t){const n=e.getFullYear();return U0(n,t.length)},Q:function(e,t,n){const o=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return U0(o,2);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,n){const o=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return U0(o,2);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,n){const o=e.getMonth();switch(t){case"M":case"MM":return Tl.M(e,t);case"Mo":return n.ordinalNumber(o+1,{unit:"month"});case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,n){const o=e.getMonth();switch(t){case"L":return String(o+1);case"LL":return U0(o+1,2);case"Lo":return n.ordinalNumber(o+1,{unit:"month"});case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,n,o){const r=Hit(e,o);return t==="wo"?n.ordinalNumber(r,{unit:"week"}):U0(r,t.length)},I:function(e,t,n){const o=$it(e);return t==="Io"?n.ordinalNumber(o,{unit:"week"}):U0(o,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Tl.d(e,t)},D:function(e,t,n){const o=Fit(e);return t==="Do"?n.ordinalNumber(o,{unit:"dayOfYear"}):U0(o,t.length)},E:function(e,t,n){const o=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"});case"EEEE":default:return n.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,n,o){const r=e.getDay(),s=(r-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return U0(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});case"eeee":default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,o){const r=e.getDay(),s=(r-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return U0(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});case"cccc":default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){const o=e.getDay(),r=o===0?7:o;switch(t){case"i":return String(r);case"ii":return U0(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(o,{width:"short",context:"formatting"});case"iiii":default:return n.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const o=e.getHours();let r;switch(o===12?r=$f.noon:o===0?r=$f.midnight:r=o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){const o=e.getHours();let r;switch(o>=17?r=$f.evening:o>=12?r=$f.afternoon:o>=4?r=$f.morning:r=$f.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let o=e.getHours()%12;return o===0&&(o=12),n.ordinalNumber(o,{unit:"hour"})}return Tl.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Tl.H(e,t)},K:function(e,t,n){const o=e.getHours()%12;return t==="Ko"?n.ordinalNumber(o,{unit:"hour"}):U0(o,t.length)},k:function(e,t,n){let o=e.getHours();return o===0&&(o=24),t==="ko"?n.ordinalNumber(o,{unit:"hour"}):U0(o,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Tl.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Tl.s(e,t)},S:function(e,t){return Tl.S(e,t)},X:function(e,t,n){const o=e.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return CG(o);case"XXXX":case"XX":return Dd(o);case"XXXXX":case"XXX":default:return Dd(o,":")}},x:function(e,t,n){const o=e.getTimezoneOffset();switch(t){case"x":return CG(o);case"xxxx":case"xx":return Dd(o);case"xxxxx":case"xxx":default:return Dd(o,":")}},O:function(e,t,n){const o=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+SG(o,":");case"OOOO":default:return"GMT"+Dd(o,":")}},z:function(e,t,n){const o=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+SG(o,":");case"zzzz":default:return"GMT"+Dd(o,":")}},t:function(e,t,n){const o=Math.trunc(e.getTime()/1e3);return U0(o,t.length)},T:function(e,t,n){const o=e.getTime();return U0(o,t.length)}};function SG(e,t=""){const n=e>0?"-":"+",o=Math.abs(e),r=Math.trunc(o/60),s=o%60;return s===0?n+String(r):n+String(r)+t+U0(s,2)}function CG(e,t){return e%60===0?(e>0?"-":"+")+U0(Math.abs(e)/60,2):Dd(e,t)}function Dd(e,t=""){const n=e>0?"-":"+",o=Math.abs(e),r=U0(Math.trunc(o/60),2),s=U0(o%60,2);return n+r+t+s}const RG=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Hde=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Uit=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],o=n[1],r=n[2];if(!r)return RG(e,t);let s;switch(o){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",RG(o,t)).replace("{{time}}",Hde(r,t))},Xit={p:Hde,P:Uit},Git=/^D+$/,Kit=/^Y+$/,Yit=["D","DD","YY","YYYY"];function Zit(e){return Git.test(e)}function Qit(e){return Kit.test(e)}function Jit(e,t,n){const o=eat(e,t,n);if(console.warn(o),Yit.includes(e))throw new RangeError(o)}function eat(e,t,n){const o=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${o} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const tat=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,nat=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,oat=/^'([^]*?)'?$/,rat=/''/g,sat=/[a-zA-Z]/;function Vr(e,t,n){const o=L3(),r=o.locale??Dit,s=o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=o.weekStartsOn??o.locale?.options?.weekStartsOn??0,c=kn(e);if(!sit(c))throw new RangeError("Invalid time value");let l=t.match(nat).map(d=>{const p=d[0];if(p==="p"||p==="P"){const f=Xit[p];return f(d,r.formatLong)}return d}).join("").match(tat).map(d=>{if(d==="''")return{isToken:!1,value:"'"};const p=d[0];if(p==="'")return{isToken:!1,value:iat(d)};if(qG[p])return{isToken:!0,value:d};if(p.match(sat))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:d}});r.localize.preprocessor&&(l=r.localize.preprocessor(c,l));const u={firstWeekContainsDate:s,weekStartsOn:i,locale:r};return l.map(d=>{if(!d.isToken)return d.value;const p=d.value;(Qit(p)||Zit(p))&&Jit(p,t,String(e));const f=qG[p[0]];return f(c,p,r.localize,u)}).join("")}function iat(e){const t=e.match(oat);return t?t[1].replace(rat,"'"):e}function aat(e){const t=kn(e),n=t.getFullYear(),o=t.getMonth(),r=as(e,0);return r.setFullYear(n,o+1,0),r.setHours(0,0,0,0),r.getDate()}function cat(e,t){const n=kn(e),o=kn(t);return+n==+o}function WG(e,t){const n=kn(e),o=kn(t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}function lat(e,t){const o=fat(e);let r;if(o.date){const l=bat(o.date,2);r=hat(l.restDateString,l.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);const s=r.getTime();let i=0,c;if(o.time&&(i=mat(o.time),isNaN(i)))return new Date(NaN);if(o.timezone){if(c=Mat(o.timezone),isNaN(c))return new Date(NaN)}else{const l=new Date(s+i),u=new Date(0);return u.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),u.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),u}return new Date(s+i+c)}const AA={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},uat=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,dat=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,pat=/^([+-])(\d{2})(?::?(\d{2}))?$/;function fat(e){const t={},n=e.split(AA.dateTimeDelimiter);let o;if(n.length>2)return t;if(/:/.test(n[0])?o=n[0]:(t.date=n[0],o=n[1],AA.timeZoneDelimiter.test(t.date)&&(t.date=e.split(AA.timeZoneDelimiter)[0],o=e.substr(t.date.length,e.length))),o){const r=AA.timezone.exec(o);r?(t.time=o.replace(r[1],""),t.timezone=r[1]):t.time=o}return t}function bat(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),o=e.match(n);if(!o)return{year:NaN,restDateString:""};const r=o[1]?parseInt(o[1]):null,s=o[2]?parseInt(o[2]):null;return{year:s===null?r:s*100,restDateString:e.slice((o[1]||o[2]).length)}}function hat(e,t){if(t===null)return new Date(NaN);const n=e.match(uat);if(!n)return new Date(NaN);const o=!!n[4],r=Tm(n[1]),s=Tm(n[2])-1,i=Tm(n[3]),c=Tm(n[4]),l=Tm(n[5])-1;if(o)return yat(t,c,l)?gat(t,c,l):new Date(NaN);{const u=new Date(0);return!Oat(t,s,i)||!Aat(t,r)?new Date(NaN):(u.setUTCFullYear(t,s,Math.max(r,i)),u)}}function Tm(e){return e?parseInt(e):1}function mat(e){const t=e.match(dat);if(!t)return NaN;const n=Qq(t[1]),o=Qq(t[2]),r=Qq(t[3]);return vat(n,o,r)?n*Dde+o*Ide+r*1e3:NaN}function Qq(e){return e&&parseFloat(e.replace(",","."))||0}function Mat(e){if(e==="Z")return 0;const t=e.match(pat);if(!t)return 0;const n=t[1]==="+"?-1:1,o=parseInt(t[2]),r=t[3]&&parseInt(t[3])||0;return xat(o,r)?n*(o*Dde+r*Ide):NaN}function gat(e,t,n){const o=new Date(0);o.setUTCFullYear(e,0,4);const r=o.getUTCDay()||7,s=(t-1)*7+n+1-r;return o.setUTCDate(o.getUTCDate()+s),o}const zat=[31,null,31,30,31,30,31,31,30,31,30,31];function Ude(e){return e%400===0||e%4===0&&e%100!==0}function Oat(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(zat[t]||(Ude(e)?29:28))}function Aat(e,t){return t>=1&&t<=(Ude(e)?366:365)}function yat(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function vat(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function xat(e,t){return t>=0&&t<=59}function Xde(e,t){const n=kn(e),o=n.getFullYear(),r=n.getDate(),s=as(e,0);s.setFullYear(o,t,15),s.setHours(0,0,0,0);const i=aat(s);return n.setMonth(t,Math.min(r,i)),n}function TG(e,t){let n=kn(e);return isNaN(+n)?as(e,NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=Xde(n,t.month)),t.date!=null&&n.setDate(t.date),t.hours!=null&&n.setHours(t.hours),t.minutes!=null&&n.setMinutes(t.minutes),t.seconds!=null&&n.setSeconds(t.seconds),t.milliseconds!=null&&n.setMilliseconds(t.milliseconds),n)}function Jq(e,t){return i4(e,-t)}function _at(e,t){return $de(e,-t)}//! moment.js + ${t}`}function yot(e){const{active:t,borderRadius:n="inherit",className:o,focus:r,hover:s,isInteractive:i=!1,offset:c=0,value:l=0,...u}=Ut(e,"Elevation"),d=x0(),p=O.useMemo(()=>{let f=_s(s)?s:l*2,b=_s(t)?t:l/2;i||(f=_s(s)?s:void 0,b=_s(t)?t:void 0);const h=`box-shadow ${Se.transitionDuration} ${Se.transitionTimingFunction}`,g={};return g.Base=ke({borderRadius:n,bottom:c,boxShadow:gA(l),opacity:Se.elevationIntensity,left:c,right:c,top:c},ke("@media not ( prefers-reduced-motion ){transition:",h,";}",""),"",""),_s(f)&&(g.hover=ke("*:hover>&{box-shadow:",gA(f),";}","")),_s(b)&&(g.active=ke("*:active>&{box-shadow:",gA(b),";}","")),_s(r)&&(g.focus=ke("*:focus>&{box-shadow:",gA(r),";}","")),d(Aot,g.Base,g.hover,g.focus,g.active,o)},[t,n,o,d,r,s,i,c,l]);return{...u,className:p,"aria-hidden":!0}}function vot(e,t){const n=yot(e);return a.jsx(C0,{...n,ref:t})}const uG=Qt(vot,"Elevation"),uM=`calc(${Se.cardBorderRadius} - 1px)`,xot=ke("box-shadow:0 0 0 1px ",Se.surfaceBorderColor,";outline:none;",""),_ot={name:"1showjb",styles:"border-bottom:1px solid;box-sizing:border-box;&:last-child{border-bottom:none;}"},wot={name:"13udsys",styles:"height:100%"},kot={name:"6ywzd",styles:"box-sizing:border-box;height:auto;max-height:100%"},dde=ke("&:first-of-type{border-top-left-radius:",uM,";border-top-right-radius:",uM,";}&:last-of-type{border-bottom-left-radius:",uM,";border-bottom-right-radius:",uM,";}",""),qot=ke("border-color:",Se.colorDivider,";",""),Sot={name:"1t90u8d",styles:"box-shadow:none"},Cot={name:"1e1ncky",styles:"border:none"},Rot=ke("border-radius:",uM,";",""),dG=ke("padding:",Se.cardPaddingXSmall,";",""),pde={large:ke("padding:",Se.cardPaddingLarge,";",""),medium:ke("padding:",Se.cardPaddingMedium,";",""),small:ke("padding:",Se.cardPaddingSmall,";",""),xSmall:dG,extraSmall:dG},fde=ke("background-color:",qe.ui.backgroundDisabled,";",""),Wot=ke("background-color:",Se.surfaceColor,";color:",qe.gray[900],";position:relative;","");Se.surfaceBackgroundColor;function Tot({borderBottom:e,borderLeft:t,borderRight:n,borderTop:o}){const r=`1px solid ${Se.surfaceBorderColor}`;return ke({borderBottom:e?r:void 0,borderLeft:t?r:void 0,borderRight:n?r:void 0,borderTop:o?r:void 0},"","")}const Eot=ke("",""),Bot=ke("background:",Se.surfaceBackgroundTintColor,";",""),Not=ke("background:",Se.surfaceBackgroundTertiaryColor,";",""),bde=e=>[e,e].join(" "),Lot=e=>["90deg",[Se.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),jot=e=>[[Se.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),Pot=e=>[`linear-gradient( ${Lot(e)} ) center`,`linear-gradient( ${jot(e)} ) center`,Se.surfaceBorderBoldColor].join(","),Iot=(e,t)=>ke("background:",Pot(t),";background-size:",bde(e),";",""),Dot=[`${Se.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(","),Fot=["90deg",`${Se.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(","),$ot=[`linear-gradient( ${Dot} )`,`linear-gradient( ${Fot} )`].join(","),Vot=e=>ke("background:",Se.surfaceBackgroundColor,";background-image:",$ot,";background-size:",bde(e),";",""),Hot=(e,t,n)=>{switch(e){case"dotted":return Iot(t,n);case"grid":return Vot(t);case"primary":return Eot;case"secondary":return Bot;case"tertiary":return Not}};function Uot(e){const{backgroundSize:t=12,borderBottom:n=!1,borderLeft:o=!1,borderRight:r=!1,borderTop:s=!1,className:i,variant:c="primary",...l}=Ut(e,"Surface"),u=x0(),d=O.useMemo(()=>{const p={borders:Tot({borderBottom:n,borderLeft:o,borderRight:r,borderTop:s})};return u(Wot,p.borders,Hot(c,`${t}px`,`${t-1}px`),i)},[t,n,o,r,s,i,u,c]);return{...l,className:d}}function Xot({elevation:e,isElevated:t,...n}){const o={...n};let r=e;if(t){var s;Re("Card isElevated prop",{since:"5.9",alternative:"elevation"}),(s=r)!==null&&s!==void 0||(r=2)}return typeof r<"u"&&(o.elevation=r),o}function Got(e){const{className:t,elevation:n=0,isBorderless:o=!1,isRounded:r=!0,size:s="medium",...i}=Ut(Xot(e),"Card"),c=x0(),l=O.useMemo(()=>c(xot,o&&Sot,r&&Rot,t),[t,c,o,r]);return{...Uot({...i,className:l}),elevation:n,isBorderless:o,isRounded:r,size:s}}function Kot(e,t){const{children:n,elevation:o,isBorderless:r,isRounded:s,size:i,...c}=Got(e),l=s?Se.cardBorderRadius:0,u=x0(),d=O.useMemo(()=>u(ke({borderRadius:l},"","")),[u,l]),p=O.useMemo(()=>{const f={size:i,isBorderless:r};return{CardBody:f,CardHeader:f,CardFooter:f}},[r,i]);return a.jsx(O3,{value:p,children:a.jsxs(C0,{...c,ref:t,children:[a.jsx(C0,{className:u(wot),children:n}),a.jsx(uG,{className:d,isInteractive:!1,value:o?1:0}),a.jsx(uG,{className:d,isInteractive:!1,value:o})]})})}const pG=Qt(Kot,"Card"),Yot=ke("@media only screen and ( min-device-width: 40em ){&::-webkit-scrollbar{height:12px;width:12px;}&::-webkit-scrollbar-track{background-color:transparent;}&::-webkit-scrollbar-track{background:",Se.colorScrollbarTrack,";border-radius:8px;}&::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:",Se.colorScrollbarThumb,";border:2px solid rgba( 0, 0, 0, 0 );border-radius:7px;}&:hover::-webkit-scrollbar-thumb{background-color:",Se.colorScrollbarThumbHover,";}}",""),Zot={name:"13udsys",styles:"height:100%"},Qot={name:"7zq9w",styles:"scroll-behavior:smooth"},Jot={name:"q33xhg",styles:"overflow-x:auto;overflow-y:hidden"},ert={name:"103x71s",styles:"overflow-x:hidden;overflow-y:auto"},trt={name:"umwchj",styles:"overflow-y:auto"};function nrt(e){const{className:t,scrollDirection:n="y",smoothScroll:o=!1,...r}=Ut(e,"Scrollable"),s=x0(),i=O.useMemo(()=>s(Zot,Yot,o&&Qot,n==="x"&&Jot,n==="y"&&ert,n==="auto"&&trt,t),[t,s,n,o]);return{...r,className:i}}function ort(e,t){const n=nrt(e);return a.jsx(C0,{...n,ref:t})}const rrt=Qt(ort,"Scrollable");function srt(e){const{className:t,isScrollable:n=!1,isShady:o=!1,size:r="medium",...s}=Ut(e,"CardBody"),i=x0(),c=O.useMemo(()=>i(kot,dde,pde[r],o&&fde,"components-card__body",t),[t,i,o,r]);return{...s,className:c,isScrollable:n}}function irt(e,t){const{isScrollable:n,...o}=srt(e);return n?a.jsx(rrt,{...o,ref:t}):a.jsx(C0,{...o,ref:t})}const fG=Qt(irt,"CardBody");function art(e){const{className:t,isBorderless:n=!1,isShady:o=!1,size:r="medium",...s}=Ut(e,"CardHeader"),i=x0(),c=O.useMemo(()=>i(_ot,dde,qot,pde[r],n&&Cot,o&&fde,"components-card__header",t),[t,i,n,o,r]);return{...s,className:c}}function crt(e,t){const n=art(e);return a.jsx(Q0,{...n,ref:t})}const lrt=Qt(crt,"CardHeader");function Bo(e){const{__nextHasNoMarginBottom:t,label:n,className:o,heading:r,checked:s,indeterminate:i,help:c,id:l,onChange:u,...d}=e;r&&Re("`heading` prop in `CheckboxControl`",{alternative:"a separate element to implement a heading",since:"5.8"});const[p,f]=O.useState(!1),[b,h]=O.useState(!1),g=Et(x=>{x&&(x.indeterminate=!!i,f(x.matches(":checked")),h(x.matches(":indeterminate")))},[s,i]),z=He(Bo,"inspector-checkbox-control",l),y=x=>u(x.target.checked);return a.jsx(z0,{__nextHasNoMarginBottom:t,__associatedWPComponentName:"CheckboxControl",label:r,id:z,help:c&&a.jsx("span",{className:"components-checkbox-control__help",children:c}),className:$("components-checkbox-control",o),children:a.jsxs(Je,{spacing:0,justify:"start",alignment:"top",children:[a.jsxs("span",{className:"components-checkbox-control__input-container",children:[a.jsx("input",{ref:g,id:z,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:y,checked:s,"aria-describedby":c?z+"__help":void 0,...d}),b?a.jsx(t0,{icon:tw,className:"components-checkbox-control__indeterminate",role:"presentation"}):null,p?a.jsx(t0,{icon:no,className:"components-checkbox-control__checked",role:"presentation"}):null]}),n&&a.jsx("label",{className:"components-checkbox-control__label",htmlFor:z,children:n})]})})}const urt=e=>ke("font-size:",wi("default.fontSize"),";font-family:inherit;appearance:none;border:1px solid transparent;cursor:pointer;background:none;text-align:start;text-decoration:",e==="a"?"none":void 0,";svg,path{fill:currentColor;}&:hover{color:",qe.theme.accent,";}&:focus{box-shadow:none;outline:none;}&:focus-visible{box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ",qe.theme.accent,";outline:2px solid transparent;outline-offset:0;}",""),drt={name:"1bcj5ek",styles:"width:100%;display:block"},prt={name:"150ruhm",styles:"box-sizing:border-box;width:100%;display:block;margin:0;color:inherit"},frt=ke("border:1px solid ",Se.surfaceBorderColor,";",""),brt=ke(">*:not( marquee )>*{border-bottom:1px solid ",Se.surfaceBorderColor,";}>*:last-of-type>*:not( :focus ){border-bottom-color:transparent;}",""),ob=Se.radiusSmall,hrt=ke("border-radius:",ob,";",""),mrt=ke("border-radius:",ob,";>*:first-of-type>*{border-top-left-radius:",ob,";border-top-right-radius:",ob,";}>*:last-of-type>*{border-bottom-left-radius:",ob,";border-bottom-right-radius:",ob,";}",""),F7=`calc(${Se.fontSize} * ${Se.fontLineHeightBase})`,Mrt=`calc((${Se.controlHeight} - ${F7} - 2px) / 2)`,grt=`calc((${Se.controlHeightSmall} - ${F7} - 2px) / 2)`,zrt=`calc((${Se.controlHeightLarge} - ${F7} - 2px) / 2)`,bG={small:ke("padding:",grt," ",Se.controlPaddingXSmall,"px;",""),medium:ke("padding:",Mrt," ",Se.controlPaddingX,"px;",""),large:ke("padding:",zrt," ",Se.controlPaddingXLarge,"px;","")},hde=O.createContext({size:"medium"}),mde=()=>O.useContext(hde);function Ort(e){const{as:t,className:n,onClick:o,role:r="listitem",size:s,...i}=Ut(e,"Item"),{spacedAround:c,size:l}=mde(),u=s||l,d=t||(typeof o<"u"?"button":"div"),p=x0(),f=O.useMemo(()=>p((d==="button"||d==="a")&&urt(d),bG[u]||bG.medium,prt,c&&hrt,n),[d,n,p,u,c]),b=p(drt);return{as:d,className:f,onClick:o,wrapperClassName:b,role:r,...i}}function Art(e,t){const{role:n,wrapperClassName:o,...r}=Ort(e);return a.jsx("div",{role:n,className:o,children:a.jsx(C0,{...r,ref:t})})}const fw=Qt(Art,"Item");function yrt(e){const{className:t,isBordered:n=!1,isRounded:o=!0,isSeparated:r=!1,role:s="list",...i}=Ut(e,"ItemGroup"),l=x0()(n&&frt,r&&brt,o&&mrt,t);return{isBordered:n,className:l,role:s,isSeparated:r,...i}}function vrt(e,t){const{isBordered:n,isSeparated:o,size:r,...s}=yrt(e),{size:i}=mde(),u={spacedAround:!n&&!o,size:r||i};return a.jsx(hde.Provider,{value:u,children:a.jsx(C0,{...s,ref:t})})}const Yu=Qt(vrt,"ItemGroup"),Mde=10,xrt=0,_rt=5,hG=Mde;function MW(e){return Math.max(0,Math.min(100,e))}function wrt(e,t,n,o=xrt){const r=e[t].position,s=Math.min(r,n),i=Math.max(r,n);return e.some(({position:c},l)=>l!==t&&(Math.abs(c-n)i.position>t),r={color:n,position:t},s=e.slice();return s.splice(o-1,0,r),s}function qrt(e,t){return e.filter((n,o)=>o!==t)}function gde(e,t,n){const o=e.slice();return o[t]=n,o}function Kq(e,t,n){if(wrt(e,t,n))return e;const o={...e[t],position:n};return gde(e,t,o)}function zde(e,t,n){const o={...e[t],color:n};return gde(e,t,o)}function Srt(e,t,n){const o=e.findIndex(r=>r.position===t);return zde(e,o,n)}function Ode(e,t){if(!t)return;const{x:n,width:o}=t.getBoundingClientRect(),r=e-n;return Math.round(MW(r*100/o))}function Ade({isOpen:e,position:t,color:n,...o}){const s=`components-custom-gradient-picker__control-point-button-description-${He(Ade)}`;return a.jsxs(a.Fragment,{children:[a.jsx(fe,{"aria-label":le(m("Gradient control point at position %1$s%% with color code %2$s."),t,n),"aria-describedby":s,"aria-haspopup":"true","aria-expanded":e,className:$("components-custom-gradient-picker__control-point-button",{"is-active":e}),...o}),a.jsx(Kt,{id:s,children:m("Use your left or right arrow keys or drag and drop with the mouse to change the gradient position. Press the button to change the color or remove the control point.")})]})}function yde({isRenderedInSidebar:e,className:t,...n}){const o=O.useMemo(()=>({placement:"bottom",offset:8,resize:!1}),[]),r=$("components-custom-gradient-picker__control-point-dropdown",t);return a.jsx(Yue,{isRenderedInSidebar:e,popoverProps:o,className:r,...n})}function gW({disableRemove:e,disableAlpha:t,gradientPickerDomRef:n,ignoreMarkerPosition:o,value:r,onChange:s,onStartControlPointChange:i,onStopControlPointChange:c,__experimentalIsRenderedInSidebar:l}){const u=O.useRef(),d=b=>{if(u.current===void 0||n.current===null)return;const h=Ode(b.clientX,n.current),{initialPosition:g,index:z,significantMoveHappened:y}=u.current;!y&&Math.abs(g-h)>=_rt&&(u.current.significantMoveHappened=!0),s(Kq(r,z,h))},p=()=>{window&&window.removeEventListener&&u.current&&u.current.listenersActivated&&(window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",p),c(),u.current.listenersActivated=!1)},f=O.useRef();return f.current=p,O.useEffect(()=>()=>{f.current?.()},[]),a.jsx(a.Fragment,{children:r.map((b,h)=>{const g=b?.position;return o!==g&&a.jsx(yde,{isRenderedInSidebar:l,onClose:c,renderToggle:({isOpen:z,onToggle:y})=>a.jsx(Ade,{onClick:()=>{u.current&&u.current.significantMoveHappened||(z?c():i(),y())},onMouseDown:()=>{window&&window.addEventListener&&(u.current={initialPosition:g,index:h,significantMoveHappened:!1,listenersActivated:!0},i(),window.addEventListener("mousemove",d),window.addEventListener("mouseup",p))},onKeyDown:x=>{x.code==="ArrowLeft"?(x.stopPropagation(),s(Kq(r,h,MW(b.position-hG)))):x.code==="ArrowRight"&&(x.stopPropagation(),s(Kq(r,h,MW(b.position+hG))))},isOpen:z,position:b.position,color:b.color},h),renderContent:({onClose:z})=>a.jsxs(Ni,{paddingSize:"none",children:[a.jsx(B7,{enableAlpha:!t,color:b.color,onChange:y=>{s(zde(r,h,Tt(y).toRgbString()))}}),!e&&r.length>2&&a.jsx(Je,{className:"components-custom-gradient-picker__remove-control-point-wrapper",alignment:"center",children:a.jsx(fe,{onClick:()=>{s(qrt(r,h)),z()},variant:"link",children:m("Remove Control Point")})})]}),style:{left:`${b.position}%`,transform:"translateX( -50% )"}},h)})})}function Crt({value:e,onChange:t,onOpenInserter:n,onCloseInserter:o,insertPosition:r,disableAlpha:s,__experimentalIsRenderedInSidebar:i}){const[c,l]=O.useState(!1);return a.jsx(yde,{isRenderedInSidebar:i,className:"components-custom-gradient-picker__inserter",onClose:()=>{o()},renderToggle:({isOpen:u,onToggle:d})=>a.jsx(fe,{"aria-expanded":u,"aria-haspopup":"true",onClick:()=>{u?o():(l(!1),n()),d()},className:"components-custom-gradient-picker__insert-point-dropdown",icon:as}),renderContent:()=>a.jsx(Ni,{paddingSize:"none",children:a.jsx(B7,{enableAlpha:!s,onChange:u=>{c?t(Srt(e,r,Tt(u).toRgbString())):(t(krt(e,r,Tt(u).toRgbString())),l(!0))}})}),style:r!==null?{left:`${r}%`,transform:"translateX( -50% )"}:void 0})}gW.InsertPoint=Crt;const Rrt=(e,t)=>{switch(t.type){case"MOVE_INSERTER":if(e.id==="IDLE"||e.id==="MOVING_INSERTER")return{id:"MOVING_INSERTER",insertPosition:t.insertPosition};break;case"STOP_INSERTER_MOVE":if(e.id==="MOVING_INSERTER")return{id:"IDLE"};break;case"OPEN_INSERTER":if(e.id==="MOVING_INSERTER")return{id:"INSERTING_CONTROL_POINT",insertPosition:e.insertPosition};break;case"CLOSE_INSERTER":if(e.id==="INSERTING_CONTROL_POINT")return{id:"IDLE"};break;case"START_CONTROL_CHANGE":if(e.id==="IDLE")return{id:"MOVING_CONTROL_POINT"};break;case"STOP_CONTROL_CHANGE":if(e.id==="MOVING_CONTROL_POINT")return{id:"IDLE"};break}return e},Wrt={id:"IDLE"};function vde({background:e,hasGradient:t,value:n,onChange:o,disableInserter:r=!1,disableAlpha:s=!1,__experimentalIsRenderedInSidebar:i=!1}){const c=O.useRef(null),[l,u]=O.useReducer(Rrt,Wrt),d=h=>{if(!c.current)return;const g=Ode(h.clientX,c.current);if(n.some(({position:z})=>Math.abs(g-z){u({type:"STOP_INSERTER_MOVE"})},f=l.id==="MOVING_INSERTER",b=l.id==="INSERTING_CONTROL_POINT";return a.jsxs("div",{className:$("components-custom-gradient-picker__gradient-bar",{"has-gradient":t}),onMouseEnter:d,onMouseMove:d,onMouseLeave:p,children:[a.jsx("div",{className:"components-custom-gradient-picker__gradient-bar-background",style:{background:e,opacity:t?1:.4}}),a.jsxs("div",{ref:c,className:"components-custom-gradient-picker__markers-container",children:[!r&&(f||b)&&a.jsx(gW.InsertPoint,{__experimentalIsRenderedInSidebar:i,disableAlpha:s,insertPosition:l.insertPosition,value:n,onChange:o,onOpenInserter:()=>{u({type:"OPEN_INSERTER"})},onCloseInserter:()=>{u({type:"CLOSE_INSERTER"})}}),a.jsx(gW,{__experimentalIsRenderedInSidebar:i,disableAlpha:s,disableRemove:r,gradientPickerDomRef:c,ignoreMarkerPosition:b?l.insertPosition:void 0,value:n,onChange:o,onStartControlPointChange:()=>{u({type:"START_CONTROL_CHANGE"})},onStopControlPointChange:()=>{u({type:"STOP_CONTROL_CHANGE"})}})]})]})}var zW={},xde={};xde.parse=function(){var e={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},t="";function n(L){var I=new Error(t+": "+L);throw I.source=t,I}function o(){var L=r();return t.length>0&&n("Invalid input not EOF"),L}function r(){return v(s)}function s(){return i("linear-gradient",e.linearGradient,l)||i("repeating-linear-gradient",e.repeatingLinearGradient,l)||i("radial-gradient",e.radialGradient,p)||i("repeating-radial-gradient",e.repeatingRadialGradient,p)}function i(L,I,P){return c(I,function(H){var U=P();return U&&(N(e.comma)||n("Missing comma before color stops")),{type:L,orientation:U,colorStops:v(M)}})}function c(L,I){var P=N(L);if(P)return N(e.startCall)||n("Missing ("),result=I(P),N(e.endCall)||n("Missing )"),result}function l(){return u()||d()}function u(){return B("directional",e.sideOrCorner,1)}function d(){return B("angular",e.angleValue,1)}function p(){var L,I=f(),P;return I&&(L=[],L.push(I),P=t,N(e.comma)&&(I=f(),I?L.push(I):t=P)),L}function f(){var L=b()||h();if(L)L.at=z();else{var I=y();I&&(L={type:"default-radial",at:I})}return L}function b(){var L=B("shape",/^(circle)/i,0);return L&&(L.style=W()||g()),L}function h(){var L=B("shape",/^(ellipse)/i,0);return L&&(L.style=C()||g()),L}function g(){return B("extent-keyword",e.extentKeywords,1)}function z(){if(B("position",/^at/,0)){var L=y();return L||n("Missing positioning value"),L}}function y(){var L=x();if(L.x||L.y)return{type:"position",value:L}}function x(){return{x:C(),y:C()}}function v(L){var I=L(),P=[];if(I)for(P.push(I);N(e.comma);)I=L(),I?P.push(I):n("One extra comma");return P}function M(){var L=A();return L||n("Expected color definition"),L.length=C(),L}function A(){return w()||q()||k()||_()}function _(){return B("literal",e.literalColor,0)}function w(){return B("hex",e.hexColor,1)}function k(){return c(e.rgbColor,function(){return{type:"rgb",value:v(S)}})}function q(){return c(e.rgbaColor,function(){return{type:"rgba",value:v(S)}})}function S(){return N(e.number)[1]}function C(){return B("%",e.percentageValue,1)||T()||W()}function T(){return B("position-keyword",e.positionKeywords,1)}function W(){return B("px",e.pixelValue,1)||B("em",e.emValue,1)}function B(L,I,P){var H=N(I);if(H)return{type:L,value:H[P]}}function N(L){var I,P;return P=/^[\n\r\t\s]+/.exec(t),P&&E(P[0].length),I=L.exec(t),I&&E(I[0].length),I}function E(L){t=t.substr(L)}return function(L){return t=L.toString(),o()}}();zW.parse=(xde||{}).parse;const mG="linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)",Trt=180,_de={type:"angular",value:"90"},Ert=[{value:"linear-gradient",label:m("Linear")},{value:"radial-gradient",label:m("Radial")}],Brt={top:0,"top right":45,"right top":45,right:90,"right bottom":135,"bottom right":135,bottom:180,"bottom left":225,"left bottom":225,left:270,"top left":315,"left top":315};function Nrt({type:e,value:t}){return e==="literal"?t:e==="hex"?`#${t}`:`${e}(${t.join(",")})`}function Lrt(e){if(!e)return"";const{value:t,type:n}=e;return`${t}${n}`}function jrt({type:e,value:t,length:n}){return`${Nrt({type:e,value:t})} ${Lrt(n)}`}function Prt(e){if(!(Array.isArray(e)||!e||e.type!=="angular"))return`${e.value}deg`}function oz({type:e,orientation:t,colorStops:n}){const o=Prt(t),r=n.sort((s,i)=>{const c=l=>l?.length?.value===void 0?0:parseInt(l.length.value);return c(s)-c(i)}).map(jrt);return`${e}(${[o,...r].filter(Boolean).join(",")})`}bs([hs]);function Irt(e){return oz({type:"linear-gradient",orientation:_de,colorStops:e.colorStops})}function Drt(e){return e.length===void 0||e.length.type!=="%"}function Frt(e){let t,n=!!e;const o=e??mG;try{t=zW.parse(o)[0]}catch(r){console.warn("wp.components.CustomGradientPicker failed to parse the gradient with error",r),t=zW.parse(mG)[0],n=!1}if(!Array.isArray(t.orientation)&&t.orientation?.type==="directional"&&(t.orientation={type:"angular",value:Brt[t.orientation.value].toString()}),t.colorStops.some(Drt)){const{colorStops:r}=t,s=100/(r.length-1);r.forEach((i,c)=>{i.length={value:`${s*c}`,type:"%"}})}return{gradientAST:t,hasGradient:n}}function $rt(e,t){return{...e,colorStops:t.map(({position:n,color:o})=>{const{r,g:s,b:i,a:c}=Tt(o).toRgb();return{length:{type:"%",value:n?.toString()},type:c<1?"rgba":"rgb",value:c<1?[`${r}`,`${s}`,`${i}`,`${c}`]:[`${r}`,`${s}`,`${i}`]}})}}function Vrt(e){switch(e.type){case"hex":return`#${e.value}`;case"literal":return e.value;case"rgb":case"rgba":return`${e.type}(${e.value.join(",")})`;default:return"transparent"}}const Hrt=we(Vi,{target:"e10bzpgi1"})({name:"1gvx10y",styles:"flex-grow:5"}),Urt=we(Vi,{target:"e10bzpgi0"})({name:"1gvx10y",styles:"flex-grow:5"}),Xrt=({gradientAST:e,hasGradient:t,onChange:n})=>{var o;const r=(o=e?.orientation?.value)!==null&&o!==void 0?o:Trt,s=i=>{n(oz({...e,orientation:{type:"angular",value:`${i}`}}))};return a.jsx(qet,{onChange:s,value:t?r:""})},Grt=({gradientAST:e,hasGradient:t,onChange:n})=>{const{type:o}=e,r=()=>{n(oz({...e,orientation:e.orientation?void 0:_de,type:"linear-gradient"}))},s=()=>{const{orientation:c,...l}=e;n(oz({...l,type:"radial-gradient"}))},i=c=>{c==="linear-gradient"&&r(),c==="radial-gradient"&&s()};return a.jsx(i0,{__nextHasNoMarginBottom:!0,className:"components-custom-gradient-picker__type-picker",label:m("Type"),labelPosition:"top",onChange:i,options:Ert,size:"__unstable-large",value:t?o:void 0})};function Krt({value:e,onChange:t,__experimentalIsRenderedInSidebar:n=!1}){const{gradientAST:o,hasGradient:r}=Frt(e),s=Irt(o),i=o.colorStops.map(c=>({color:Vrt(c),position:parseInt(c.length.value)}));return a.jsxs(Ye,{spacing:4,className:"components-custom-gradient-picker",children:[a.jsx(vde,{__experimentalIsRenderedInSidebar:n,background:s,hasGradient:r,value:i,onChange:c=>{t(oz($rt(o,c)))}}),a.jsxs(Q0,{gap:3,className:"components-custom-gradient-picker__ui-line",children:[a.jsx(Hrt,{children:a.jsx(Grt,{gradientAST:o,hasGradient:r,onChange:t})}),a.jsx(Urt,{children:o.type==="linear-gradient"&&a.jsx(Xrt,{gradientAST:o,hasGradient:r,onChange:t})})]})]})}const Yrt=e=>Array.isArray(e.gradients)&&!("gradient"in e),Zrt=e=>e.length>0&&e.every(t=>Yrt(t));function wde({className:e,clearGradient:t,gradients:n,onChange:o,value:r,...s}){const i=O.useMemo(()=>n.map(({gradient:c,name:l,slug:u},d)=>a.jsx(uo.Option,{value:c,isSelected:r===c,tooltipText:l||le(m("Gradient code: %s"),c),style:{color:"rgba( 0,0,0,0 )",background:c},onClick:r===c?t:()=>o(c,d),"aria-label":l?le(m("Gradient: %s"),l):le(m("Gradient code: %s"),c)},u)),[n,r,o,t]);return a.jsx(uo.OptionGroup,{className:e,options:i,...s})}function kde({className:e,clearGradient:t,gradients:n,onChange:o,value:r,headingLevel:s}){const i=He(kde);return a.jsx(Ye,{spacing:3,className:e,children:n.map(({name:c,gradients:l},u)=>{const d=`color-palette-${i}-${u}`;return a.jsxs(Ye,{spacing:2,children:[a.jsx(Hue,{level:s,id:d,children:c}),a.jsx(wde,{clearGradient:t,gradients:l,onChange:p=>o(p,u),value:r,"aria-labelledby":d})]},u)})})}function Qrt(e){const{asButtons:t,loop:n,actions:o,headingLevel:r,"aria-label":s,"aria-labelledby":i,...c}=e,l=Zrt(e.gradients)?a.jsx(kde,{headingLevel:r,...c}):a.jsx(wde,{...c});let u;if(t)u={asButtons:!0};else{const d={asButtons:!1,loop:n};s?u={...d,"aria-label":s}:i?u={...d,"aria-labelledby":i}:u={...d,"aria-label":m("Custom color picker.")}}return a.jsx(uo,{...u,actions:o,options:l})}function Jrt({className:e,gradients:t=[],onChange:n,value:o,clearable:r=!0,disableCustomGradients:s=!1,__experimentalIsRenderedInSidebar:i,headingLevel:c=2,...l}){const u=O.useCallback(()=>n(void 0),[n]);return a.jsxs(Ye,{spacing:t.length?4:0,children:[!s&&a.jsx(Krt,{__experimentalIsRenderedInSidebar:i,value:o,onChange:n}),(t.length>0||r)&&a.jsx(Qrt,{...l,className:e,clearGradient:u,gradients:t,onChange:n,value:o,actions:r&&!s&&a.jsx(uo.ButtonAction,{onClick:u,children:m("Clear")}),headingLevel:c})]})}const est=()=>{},tst=["menuitem","menuitemradio","menuitemcheckbox"];function nst(e,t,n){const o=e+n;return o<0?t+o:o>=t?o-t:o}class ost extends O.Component{constructor(t){super(t),this.onKeyDown=this.onKeyDown.bind(this),this.bindContainer=this.bindContainer.bind(this),this.getFocusableContext=this.getFocusableContext.bind(this),this.getFocusableIndex=this.getFocusableIndex.bind(this)}componentDidMount(){this.container&&this.container.addEventListener("keydown",this.onKeyDown)}componentWillUnmount(){this.container&&this.container.removeEventListener("keydown",this.onKeyDown)}bindContainer(t){const{forwardedRef:n}=this.props;this.container=t,typeof n=="function"?n(t):n&&"current"in n&&(n.current=t)}getFocusableContext(t){if(!this.container)return null;const{onlyBrowserTabstops:n}=this.props,r=(n?Nn.tabbable:Nn.focusable).find(this.container),s=this.getFocusableIndex(r,t);return s>-1&&t?{index:s,target:t,focusables:r}:null}getFocusableIndex(t,n){return t.indexOf(n)}onKeyDown(t){this.props.onKeyDown&&this.props.onKeyDown(t);const{getFocusableContext:n}=this,{cycle:o=!0,eventToOffset:r,onNavigate:s=est,stopNavigationEvents:i}=this.props,c=r(t);if(c!==void 0&&i){t.stopImmediatePropagation();const b=t.target?.getAttribute("role");!!b&&tst.includes(b)&&t.preventDefault()}if(!c)return;const l=t.target?.ownerDocument?.activeElement;if(!l)return;const u=n(l);if(!u)return;const{index:d,focusables:p}=u,f=o?nst(d,p.length,c):d+c;f>=0&&fa.jsx(ost,{...e,forwardedRef:t});qde.displayName="NavigableContainer";const rst=O.forwardRef(qde);function sst({role:e="menu",orientation:t="vertical",...n},o){const r=s=>{const{code:i}=s;let c=["ArrowDown"],l=["ArrowUp"];if(t==="horizontal"&&(c=["ArrowRight"],l=["ArrowLeft"]),t==="both"&&(c=["ArrowRight","ArrowDown"],l=["ArrowLeft","ArrowUp"]),c.includes(i))return 1;if(l.includes(i))return-1;if(["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(i))return 0};return a.jsx(rst,{ref:o,stopNavigationEvents:!0,onlyBrowserTabstops:!1,role:e,"aria-orientation":e!=="presentation"&&(t==="vertical"||t==="horizontal")?t:void 0,eventToOffset:r,...n})}const xf=O.forwardRef(sst);function Yq(e={},t={}){const n={...e,...t};return t.className&&e.className&&(n.className=$(t.className,e.className)),n}function MG(e){return typeof e=="function"}function ist(e){const{children:t,className:n,controls:o,icon:r=cle,label:s,popoverProps:i,toggleProps:c,menuProps:l,disableOpenOnArrowDown:u=!1,text:d,noIcons:p,open:f,defaultOpen:b,onToggle:h,variant:g}=Ut(e,"DropdownMenu");if(!o?.length&&!MG(t))return null;let z;o?.length&&(z=o,Array.isArray(z[0])||(z=[o]));const y=Yq({className:"components-dropdown-menu__popover",variant:g},i);return a.jsx(B0,{className:n,popoverProps:y,renderToggle:({isOpen:x,onToggle:v})=>{var M;const A=q=>{u||!x&&q.code==="ArrowDown"&&(q.preventDefault(),v())},{as:_=fe,...w}=c??{},k=Yq({className:$("components-dropdown-menu__toggle",{"is-opened":x})},w);return a.jsx(_,{...k,icon:r,onClick:q=>{v(),k.onClick&&k.onClick(q)},onKeyDown:q=>{A(q),k.onKeyDown&&k.onKeyDown(q)},"aria-haspopup":"true","aria-expanded":x,label:s,text:d,showTooltip:(M=c?.showTooltip)!==null&&M!==void 0?M:!0,children:k.children})},renderContent:x=>{const v=Yq({"aria-label":s,className:$("components-dropdown-menu__menu",{"no-icons":p})},l);return a.jsxs(xf,{...v,role:"menu",children:[MG(t)?t(x):null,z?.flatMap((M,A)=>M.map((_,w)=>a.jsx(fe,{onClick:k=>{k.stopPropagation(),x.onClose(),_.onClick&&_.onClick()},className:$("components-dropdown-menu__menu-item",{"has-separator":A>0&&w===0,"is-active":_.isActive,"is-icon-only":!_.title}),icon:_.icon,label:_.label,"aria-checked":_.role==="menuitemcheckbox"||_.role==="menuitemradio"?_.isActive:void 0,role:_.role==="menuitemcheckbox"||_.role==="menuitemradio"?_.role:"menuitem",accessibleWhenDisabled:!0,disabled:_.isDisabled,children:_.title},[A,w].join())))]})},open:f,defaultOpen:b,onToggle:h})}const E1=aae(ist,"DropdownMenu"),ast=({__next40pxDefaultSize:e})=>!e&&ke("height:28px;padding-left:",Ce(1),";padding-right:",Ce(1),";",""),cst=we(Q0,{target:"evuatpg0"})("height:38px;padding-left:",Ce(2),";padding-right:",Ce(2),";",ast,";");function lst(e,t){const{value:n,isExpanded:o,instanceId:r,selectedSuggestionIndex:s,className:i,onChange:c,onFocus:l,onBlur:u,...d}=e,[p,f]=O.useState(!1),b=n?n.length+1:0,h=y=>{c&&c({value:y.target.value})},g=y=>{f(!0),l?.(y)},z=y=>{f(!1),u?.(y)};return a.jsx("input",{ref:t,id:`components-form-token-input-${r}`,type:"text",...d,value:n||"",onChange:h,onFocus:g,onBlur:z,size:b,className:$(i,"components-form-token-field__input"),autoComplete:"off",role:"combobox","aria-expanded":o,"aria-autocomplete":"list","aria-owns":o?`components-form-token-suggestions-${r}`:void 0,"aria-activedescendant":p&&s!==-1&&o?`components-form-token-suggestions-${r}-${s}`:void 0,"aria-describedby":`components-form-token-suggestions-howto-${r}`})}const Sde=O.forwardRef(lst),ust=e=>{e.preventDefault()};function Cde({selectedIndex:e,scrollIntoView:t,match:n,onHover:o,onSelect:r,suggestions:s=[],displayTransform:i,instanceId:c,__experimentalRenderItem:l}){const u=Et(b=>(e>-1&&t&&b.children[e]&&b.children[e].scrollIntoView({behavior:"instant",block:"nearest",inline:"nearest"}),()=>{}),[e,t]),d=b=>()=>{o?.(b)},p=b=>()=>{r?.(b)},f=b=>{const h=i(n).toLocaleLowerCase();if(h.length===0)return null;const g=i(b),z=g.toLocaleLowerCase().indexOf(h);return{suggestionBeforeMatch:g.substring(0,z),suggestionMatch:g.substring(z,z+h.length),suggestionAfterMatch:g.substring(z+h.length)}};return a.jsx("ul",{ref:u,className:"components-form-token-field__suggestions-list",id:`components-form-token-suggestions-${c}`,role:"listbox",children:s.map((b,h)=>{const g=f(b),z=h===e,y=typeof b=="object"&&b?.disabled,x=typeof b=="object"&&"value"in b?b?.value:i(b),v=$("components-form-token-field__suggestion",{"is-selected":z});let M;return typeof l=="function"?M=l({item:b}):g?M=a.jsxs("span",{"aria-label":i(b),children:[g.suggestionBeforeMatch,a.jsx("strong",{className:"components-form-token-field__suggestion-match",children:g.suggestionMatch}),g.suggestionAfterMatch]}):M=i(b),a.jsx("li",{id:`components-form-token-suggestions-${c}-${h}`,role:"option",className:v,onMouseDown:ust,onClick:p(b),onMouseEnter:d(b),"aria-selected":h===e,"aria-disabled":y,children:M},x)})})}const dst=Sn(e=>t=>{const[n,o]=O.useState(void 0),r=O.useCallback(s=>o(()=>s?.handleFocusOutside?s.handleFocusOutside.bind(s):void 0),[]);return a.jsx("div",{...mne(n),children:a.jsx(e,{ref:r,...t})})},"withFocusOutside"),pst=()=>{},fst=dst(class extends O.Component{handleFocusOutside(e){this.props.onFocusOutside(e)}render(){return this.props.children}}),zA=(e,t)=>e===null?-1:t.indexOf(e);function Nh(e){var t;const{__nextHasNoMarginBottom:n=!1,__next40pxDefaultSize:o=!1,value:r,label:s,options:i,onChange:c,onFilterValueChange:l=pst,hideLabelFromVision:u,help:d,allowReset:p=!0,className:f,messages:b={selected:m("Item selected.")},__experimentalRenderItem:h,expandOnFocus:g=!0}=Md(e),[z,y]=g3({value:r,onChange:c}),x=i.find(oe=>oe.value===z),v=(t=x?.label)!==null&&t!==void 0?t:"",M=He(Nh,"combobox-control"),[A,_]=O.useState(x||null),[w,k]=O.useState(!1),[q,S]=O.useState(!1),[C,T]=O.useState(""),W=O.useRef(null),B=O.useMemo(()=>{const oe=[],Y=[],ee=VX(C);return i.forEach(ie=>{const se=VX(ie.label).indexOf(ee);se===0?oe.push(ie):se>0&&Y.push(ie)}),oe.concat(Y)},[C,i]),N=oe=>{oe.disabled||(y(oe.value),At(b.selected,"assertive"),_(oe),T(""),k(!1))},E=(oe=1)=>{let ee=zA(A,B)+oe;ee<0?ee=B.length-1:ee>=B.length&&(ee=0),_(B[ee]),k(!0)},L=E3(oe=>{let Y=!1;if(!oe.defaultPrevented){switch(oe.code){case"Enter":A&&(N(A),Y=!0);break;case"ArrowUp":E(-1),Y=!0;break;case"ArrowDown":E(1),Y=!0;break;case"Escape":k(!1),_(null),Y=!0;break}Y&&oe.preventDefault()}}),I=()=>{S(!1)},P=()=>{S(!0),g&&k(!0),l(""),T("")},H=()=>{k(!0)},U=()=>{k(!1)},X=oe=>{const Y=oe.value;T(Y),l(Y),q&&k(!0)},Z=()=>{y(null),W.current?.focus()},ne=oe=>{oe.stopPropagation()};return O.useEffect(()=>{const oe=B.length>0,Y=zA(A,B)>0;oe&&!Y&&_(B[0])},[B,A]),O.useEffect(()=>{const oe=B.length>0;if(w){const Y=oe?le(a0("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",B.length),B.length):m("No results.");At(Y,"polite")}},[B,w]),a.jsx(fst,{onFocusOutside:U,children:a.jsx(z0,{__nextHasNoMarginBottom:n,__associatedWPComponentName:"ComboboxControl",className:$(f,"components-combobox-control"),label:s,id:`components-form-token-input-${M}`,hideLabelFromVision:u,help:d,children:a.jsxs("div",{className:"components-combobox-control__suggestions-container",tabIndex:-1,onKeyDown:L,children:[a.jsxs(cst,{__next40pxDefaultSize:o,children:[a.jsx(Vi,{children:a.jsx(Sde,{className:"components-combobox-control__input",instanceId:M,ref:W,value:w?C:v,onFocus:P,onBlur:I,onClick:H,isExpanded:w,selectedSuggestionIndex:zA(A,B),onChange:X})}),p&&a.jsx(Ht,{children:a.jsx(fe,{className:"components-combobox-control__reset",icon:zl,disabled:!z,onClick:Z,onKeyDown:ne,label:m("Reset")})})]}),w&&a.jsx(Cde,{instanceId:M,match:{label:C,value:""},displayTransform:oe=>oe.label,suggestions:B,selectedIndex:zA(A,B),onHover:_,onSelect:N,scrollIntoView:!0,__experimentalRenderItem:h})]})})})}function bst({focusLoop:e=!1,focusWrap:t=!1,focusShift:n=!1,virtualFocus:o=!1,orientation:r="both",rtl:s=!1,...i}={}){return vse({focusLoop:e,focusWrap:t,focusShift:n,virtualFocus:o,orientation:r,rtl:s,...i})}const hst=new Set(["alert","status","log","marquee","timer"]),Rde=[];function mst(e){const t=Array.from(document.body.children),n=[];Rde.push(n);for(const o of t)o!==e&&Mst(o)&&(o.setAttribute("aria-hidden","true"),n.push(o))}function Mst(e){const t=e.getAttribute("role");return!(e.tagName==="SCRIPT"||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||t&&hst.has(t))}function gst(){const e=Rde.pop();if(e)for(const t of e)t.removeAttribute("aria-hidden")}const gG=O.createContext(new Set),Cm=new Map;function zst(e,t){const{bodyOpenClassName:n="modal-open",role:o="dialog",title:r=null,focusOnMount:s=!0,shouldCloseOnEsc:i=!0,shouldCloseOnClickOutside:c=!0,isDismissible:l=!0,aria:u={labelledby:void 0,describedby:void 0},onRequestClose:d,icon:p,closeButtonLabel:f,children:b,style:h,overlayClassName:g,className:z,contentLabel:y,onKeyDown:x,isFullScreen:v=!1,size:M,headerActions:A=null,__experimentalHideHeader:_=!1}=e,w=O.useRef(),k=He(fn),q=r?`components-modal-header-${k}`:u.labelledby,S=Cx(s==="firstContentElement"?"firstElement":s),C=xB(),T=_B(),W=O.useRef(null),B=O.useRef(null),[N,E]=O.useState(!1),[L,I]=O.useState(!1);let P;v||M==="fill"?P="is-full-screen":M&&(P=`has-size-${M}`);const H=O.useCallback(()=>{if(!W.current)return;const se=Sr(W.current);W.current===se?I(!0):I(!1)},[W]);O.useEffect(()=>(mst(w.current),()=>gst()),[]);const U=O.useRef();O.useEffect(()=>{U.current=d},[d]);const X=O.useContext(gG),[Z]=O.useState(()=>new Set);O.useEffect(()=>{X.add(U);for(const se of X)se!==U&&se.current?.();return()=>{for(const se of Z)se.current?.();X.delete(U)}},[X,Z]),O.useEffect(()=>{var se;const be=n,ye=1+((se=Cm.get(be))!==null&&se!==void 0?se:0);return Cm.set(be,ye),document.body.classList.add(n),()=>{const xe=Cm.get(be)-1;xe===0?(document.body.classList.remove(be),Cm.delete(be)):Cm.set(be,xe)}},[n]),O.useLayoutEffect(()=>{if(!window.ResizeObserver||!B.current)return;const se=new ResizeObserver(H);return se.observe(B.current),H(),()=>{se.disconnect()}},[H,B]);function ne(se){i&&(se.code==="Escape"||se.key==="Escape")&&!se.defaultPrevented&&(se.preventDefault(),d&&d(se))}const oe=O.useCallback(se=>{var be;const ye=(be=se?.currentTarget?.scrollTop)!==null&&be!==void 0?be:-1;!N&&ye>0?E(!0):N&&ye<=0&&E(!1)},[N]);let Y=null;const ee={onPointerDown:se=>{se.target===se.currentTarget&&(Y=se.target,se.preventDefault())},onPointerUp:({target:se,button:be})=>{const ye=se===Y;Y=null,be===0&&ye&&d()}},ie=a.jsx("div",{ref:Gt([w,t]),className:$("components-modal__screen-overlay",g),onKeyDown:E3(ne),...c?ee:{},children:a.jsx(yf,{document,children:a.jsx("div",{className:$("components-modal__frame",P,z),style:h,ref:Gt([C,T,s!=="firstContentElement"?S:null]),role:o,"aria-label":y,"aria-labelledby":y?void 0:q,"aria-describedby":u.describedby,tabIndex:-1,onKeyDown:x,children:a.jsxs("div",{className:$("components-modal__content",{"hide-header":_,"is-scrollable":L,"has-scrolled-content":N}),role:"document",onScroll:oe,ref:W,"aria-label":L?m("Scrollable section"):void 0,tabIndex:L?0:void 0,children:[!_&&a.jsxs("div",{className:"components-modal__header",children:[a.jsxs("div",{className:"components-modal__header-heading-container",children:[p&&a.jsx("span",{className:"components-modal__icon-container","aria-hidden":!0,children:p}),r&&a.jsx("h1",{id:q,className:"components-modal__header-heading",children:r})]}),A,l&&a.jsx(fe,{onClick:d,icon:Ch,label:f||m("Close")})]}),a.jsx("div",{ref:Gt([B,s==="firstContentElement"?S:null]),children:b})]})})})});return Qo.createPortal(a.jsx(gG.Provider,{value:Z,children:ie}),document.body)}const fn=O.forwardRef(zst),Ost={name:"7g5ii0",styles:"&&{z-index:1000001;}"},Ast=(e,t)=>{const{isOpen:n,onConfirm:o,onCancel:r,children:s,confirmButtonText:i,cancelButtonText:c,...l}=Ut(e,"ConfirmDialog"),d=x0()(Ost),p=O.useRef(),f=O.useRef(),[b,h]=O.useState(),[g,z]=O.useState();O.useEffect(()=>{const A=typeof n<"u";h(A?n:!0),z(!A)},[n]);const y=O.useCallback(A=>_=>{A?.(_),g&&h(!1)},[g,h]),x=O.useCallback(A=>{!(A.target===p.current||A.target===f.current)&&A.key==="Enter"&&y(o)(A)},[y,o]),v=c??m("Cancel"),M=i??m("OK");return a.jsx(a.Fragment,{children:b&&a.jsx(fn,{onRequestClose:y(r),onKeyDown:x,closeButtonLabel:v,isDismissible:!0,ref:t,overlayClassName:d,__experimentalHideHeader:!0,...l,children:a.jsxs(Ye,{spacing:8,children:[a.jsx(l0,{children:s}),a.jsxs(Q0,{direction:"row",justify:"flex-end",children:[a.jsx(fe,{__next40pxDefaultSize:!0,ref:p,variant:"tertiary",onClick:y(r),children:v}),a.jsx(fe,{__next40pxDefaultSize:!0,ref:f,variant:"primary",onClick:y(o),children:M})]})]})})})},bw=Qt(Ast,"ConfirmDialog"),OW={SLIDE_AMOUNT:"2px",DURATION:"400ms",EASING:"cubic-bezier( 0.16, 1, 0.3, 1 )"},Ss={compact:Se.controlPaddingXSmall,small:Se.controlPaddingXSmall,default:Se.controlPaddingX},yst=(e,t)=>{const n={compact:{[t]:32,paddingInlineStart:Ss.compact,paddingInlineEnd:Ss.compact+$M},default:{[t]:40,paddingInlineStart:Ss.default,paddingInlineEnd:Ss.default+$M},small:{[t]:24,paddingInlineStart:Ss.small,paddingInlineEnd:Ss.small+$M}};return n[e]||n.default},vst=e=>{const n={compact:{paddingInlineStart:Ss.compact,paddingInlineEnd:Ss.compact-6},default:{paddingInlineStart:Ss.default,paddingInlineEnd:Ss.default-6},small:{paddingInlineStart:Ss.small,paddingInlineEnd:Ss.small-6}};return n[e]||n.default},xst=we(QFe,{shouldForwardProp:e=>e!=="hasCustomRenderProp",target:"e1p3eej77"})(({size:e,hasCustomRenderProp:t})=>ke("display:block;background-color:",qe.theme.background,";border:none;color:",qe.theme.foreground,";cursor:pointer;font-family:inherit;text-align:start;user-select:none;width:100%;&[data-focus-visible]{outline:none;}",yst(e,t?"minHeight":"height")," ",!t&&Wde," ",k7({inputSize:e}),";",""),""),_st=E_({"0%":{opacity:0,transform:`translateY(-${OW.SLIDE_AMOUNT})`},"100%":{opacity:1,transform:"translateY(0)"}}),wst=we(p$e,{target:"e1p3eej76"})("display:flex;flex-direction:column;background-color:",qe.theme.background,";border-radius:",Se.radiusSmall,";border:1px solid ",qe.theme.foreground,";z-index:1000000;max-height:min( var( --popover-available-height, 400px ), 400px );overflow:auto;overscroll-behavior:contain;min-width:min-content;&[data-open]{@media not ( prefers-reduced-motion ){animation-duration:",OW.DURATION,";animation-timing-function:",OW.EASING,";animation-name:",_st,";will-change:transform,opacity;}}&[data-focus-visible]{outline:none;}"),kst=we(s$e,{target:"e1p3eej75"})(({size:e})=>ke("cursor:default;display:flex;align-items:center;justify-content:space-between;font-size:",Se.fontSize,";line-height:28px;padding-block:",Ce(2),";scroll-margin:",Ce(1),";user-select:none;&[aria-disabled='true']{cursor:not-allowed;}&[data-active-item]{background-color:",qe.theme.gray[300],";}",vst(e),";",""),""),Wde={name:"1h52dri",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap"},qst=we("div",{target:"e1p3eej74"})(Wde,";"),Sst=we("span",{target:"e1p3eej73"})("color:",qe.theme.gray[600],";margin-inline-start:",Ce(2),";"),Tde=we("div",{target:"e1p3eej72"})("display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;flex:1;column-gap:",Ce(4),";"),Cst=we("span",{target:"e1p3eej71"})("color:",qe.theme.gray[600],";text-align:initial;line-height:",Se.fontLineHeightBase,";padding-inline-end:",Ce(1),";margin-block:",Ce(1),";"),Rst=we(t$e,{target:"e1p3eej70"})("display:flex;align-items:center;margin-inline-start:",Ce(2),";align-self:start;margin-block-start:2px;font-size:0;",Tde,"~&,&:not(:empty){font-size:24px;}"),Ede=O.createContext(void 0);function Wst(e){return(Array.isArray(e)?e.length===0:e==null)?m("Select an item"):Array.isArray(e)?e.length===1?e[0]:le(m("%s items selected"),e.length):e}const Tst=({renderSelectedValue:e,size:t="default",store:n,...o})=>{const{value:r}=on(n),s=O.useMemo(()=>e??Wst,[e]);return a.jsx(xst,{...o,size:t,hasCustomRenderProp:!!e,store:n,children:s(r)})};function Est(e){const{children:t,hideLabelFromVision:n=!1,label:o,size:r,store:s,className:i,isLegacy:c=!1,...l}=e,u=O.useCallback(p=>{c&&p.stopPropagation()},[c]),d=O.useMemo(()=>({store:s,size:r}),[s,r]);return a.jsxs("div",{className:i,children:[a.jsx(c$e,{store:s,render:n?a.jsx(Kt,{}):a.jsx(z0.VisualLabel,{as:"div"}),children:o}),a.jsxs(q7,{__next40pxDefaultSize:!0,size:r,suffix:a.jsx(Tue,{}),children:[a.jsx(Tst,{...l,size:r,store:s,showOnKeyDown:!c}),a.jsx(wst,{gutter:12,store:s,sameWidth:!0,slide:!1,onKeyDown:u,flip:!c,children:a.jsx(Ede.Provider,{value:d,children:t})})]})]})}function Bde({children:e,...t}){var n;const o=O.useContext(Ede);return a.jsxs(kst,{store:o?.store,size:(n=o?.size)!==null&&n!==void 0?n:"default",...t,children:[e??t.value,a.jsx(Rst,{children:a.jsx(t0,{icon:no})})]})}Bde.displayName="CustomSelectControlV2.Item";function Bst({__experimentalShowSelectedHint:e,...t}){return{showSelectedHint:e,...t}}function zG({__experimentalHint:e,...t}){return{hint:e,...t}}function Nst(e,t){return t||le(m("Currently selected: %s"),e)}function Lh(e){const{__next40pxDefaultSize:t=!1,describedBy:n,options:o,onChange:r,size:s="default",value:i,className:c,showSelectedHint:l=!1,...u}=Bst(e),d=He(Lh,"custom-select-control__description"),p=HFe({async setValue(z){const y=o.find(M=>M.name===z);if(!r||!y)return;await Promise.resolve();const x=p.getState(),v={highlightedIndex:x.renderedItems.findIndex(M=>M.value===z),inputValue:"",isOpen:x.open,selectedItem:y,type:""};r(v)},value:i?.name,defaultValue:o[0]?.name}),f=o.map(zG).map(({name:z,key:y,hint:x,style:v,className:M})=>{const A=a.jsxs(Tde,{children:[a.jsx("span",{children:z}),a.jsx(Cst,{className:"components-custom-select-control__item-hint",children:x})]});return a.jsx(Bde,{value:z,children:x?A:z,style:v,className:$(M,"components-custom-select-control__item",{"has-hint":x})},y)}),{value:b}=p.getState(),h=()=>{const z=o?.map(zG)?.find(({name:y})=>b===y)?.hint;return a.jsxs(qst,{children:[b,z&&a.jsx(Sst,{className:"components-custom-select-control__hint",children:z})]})},g=t&&s==="default"||s==="__unstable-large"?"default":!t&&s==="default"?"compact":s;return a.jsxs(a.Fragment,{children:[a.jsx(Est,{"aria-describedby":d,renderSelectedValue:l?h:void 0,size:g,store:p,className:$("components-custom-select-control",c),isLegacy:!0,...u,children:f}),a.jsx(Kt,{children:a.jsx("span",{id:d,children:Nst(b,n)})})]})}function mn(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Vp(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function Lst(e,t){const n=mn(e);return isNaN(t)?Vp(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function Kv(e,t){const n=mn(e);if(isNaN(t))return Vp(e,NaN);if(!t)return n;const o=n.getDate(),r=Vp(e,n.getTime());r.setMonth(n.getMonth()+t+1,0);const s=r.getDate();return o>=s?r:(n.setFullYear(r.getFullYear(),r.getMonth(),o),n)}let jst={};function Nde(){return jst}function dM(e,t){const n=Nde(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,r=mn(e),s=r.getDay(),i=(s+o;const s=r?+n:+o,i=r?o:n;i.setHours(0,0,0,0);let c=1;const l=[];for(;+i<=s;)l.push(mn(i)),i.setDate(i.getDate()+c),i.setHours(0,0,0,0);return r?l.reverse():l}function Dst(e,t){const n=mn(e.start),o=mn(e.end);let r=+n>+o;const s=r?+n:+o,i=r?o:n;i.setHours(0,0,0,0),i.setDate(1);let c=1;const l=[];for(;+i<=s;)l.push(mn(i)),i.setMonth(i.getMonth()+c);return r?l.reverse():l}function Fst(e,t){const n=mn(e.start),o=mn(e.end);let r=+n>+o;const s=dM(r?o:n,t),i=dM(r?n:o,t);s.setHours(15),i.setHours(15);const c=+i.getTime();let l=s,u=t?.step??1;if(!u)return[];u<0&&(u=-u,r=!r);const d=[];for(;+l<=c;)l.setHours(0),d.push(mn(l)),l=Ist(l,u),l.setHours(15);return r?d.reverse():d}function AG(e){const t=mn(e);return t.setDate(1),t.setHours(0,0,0,0),t}function $st(e,t){const n=Nde(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,r=mn(e),s=r.getDay(),i=(so.getTime()}function Ust(e,t){const n=mn(e),o=mn(t);return+n<+o}function Yv(e,t){const n=mn(e),o=mn(t);return+n==+o}function jde(e,t){const n=mn(e),o=n.getFullYear(),r=n.getDate(),s=Vp(e,0);s.setFullYear(o,t,15),s.setHours(0,0,0,0);const i=Vst(s);return n.setMonth(t,Math.min(r,i)),n}function Xst(e,t){let n=mn(e);return isNaN(+n)?Vp(e,NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=jde(n,t.month)),t.date!=null&&n.setDate(t.date),t.hours!=null&&n.setHours(t.hours),t.minutes!=null&&n.setMinutes(t.minutes),t.seconds!=null&&n.setSeconds(t.seconds),t.milliseconds!=null&&n.setMilliseconds(t.milliseconds),n)}function Gst(e,t){const n=mn(e);return isNaN(+n)?Vp(e,NaN):(n.setFullYear(t),n)}function Kst(){return Pst(Date.now())}function Yst(e,t){return Kv(e,-t)}function Zst(e,t){return Lde(e,-t)}var yG;(function(e){e[e.JANUARY=0]="JANUARY",e[e.FEBRUARY=1]="FEBRUARY",e[e.MARCH=2]="MARCH",e[e.APRIL=3]="APRIL",e[e.MAY=4]="MAY",e[e.JUNE=5]="JUNE",e[e.JULY=6]="JULY",e[e.AUGUST=7]="AUGUST",e[e.SEPTEMBER=8]="SEPTEMBER",e[e.OCTOBER=9]="OCTOBER",e[e.NOVEMBER=10]="NOVEMBER",e[e.DECEMBER=11]="DECEMBER"})(yG||(yG={}));var AW;(function(e){e[e.SUNDAY=0]="SUNDAY",e[e.MONDAY=1]="MONDAY",e[e.TUESDAY=2]="TUESDAY",e[e.WEDNESDAY=3]="WEDNESDAY",e[e.THURSDAY=4]="THURSDAY",e[e.FRIDAY=5]="FRIDAY",e[e.SATURDAY=6]="SATURDAY"})(AW||(AW={}));var Qst=function(e,t,n){return(Yv(e,t)||Hst(e,t))&&(Yv(e,n)||Ust(e,n))},vG=function(e){return Xst(e,{hours:0,minutes:0,seconds:0,milliseconds:0})},Jst=function(e){var t=e===void 0?{}:e,n=t.weekStartsOn,o=n===void 0?AW.SUNDAY:n,r=t.viewing,s=r===void 0?new Date:r,i=t.selected,c=i===void 0?[]:i,l=t.numberOfMonths,u=l===void 0?1:l,d=O.useState(s),p=d[0],f=d[1],b=O.useCallback(function(){return f(Kst())},[f]),h=O.useCallback(function(N){return f(function(E){return jde(E,N)})},[]),g=O.useCallback(function(){return f(function(N){return Yst(N,1)})},[]),z=O.useCallback(function(){return f(function(N){return Kv(N,1)})},[]),y=O.useCallback(function(N){return f(function(E){return Gst(E,N)})},[]),x=O.useCallback(function(){return f(function(N){return Zst(N,1)})},[]),v=O.useCallback(function(){return f(function(N){return Lde(N,1)})},[]),M=O.useState(c.map(vG)),A=M[0],_=M[1],w=function(){return _([])},k=O.useCallback(function(N){return A.findIndex(function(E){return Yv(E,N)})>-1},[A]),q=O.useCallback(function(N,E){_(E?Array.isArray(N)?N:[N]:function(L){return L.concat(Array.isArray(N)?N:[N])})},[]),S=O.useCallback(function(N){return _(function(E){return Array.isArray(N)?E.filter(function(L){return!N.map(function(I){return I.getTime()}).includes(L.getTime())}):E.filter(function(L){return!Yv(L,N)})})},[]),C=O.useCallback(function(N,E){return k(N)?S(N):q(N,E)},[S,k,q]),T=O.useCallback(function(N,E,L){_(L?OA({start:N,end:E}):function(I){return I.concat(OA({start:N,end:E}))})},[]),W=O.useCallback(function(N,E){_(function(L){return L.filter(function(I){return!OA({start:N,end:E}).map(function(P){return P.getTime()}).includes(I.getTime())})})},[]),B=O.useMemo(function(){return Dst({start:AG(p),end:OG(Kv(p,u-1))}).map(function(N){return Fst({start:AG(N),end:OG(N)},{weekStartsOn:o}).map(function(E){return OA({start:dM(E,{weekStartsOn:o}),end:$st(E,{weekStartsOn:o})})})})},[p,o,u]);return{clearTime:vG,inRange:Qst,viewing:p,setViewing:f,viewToday:b,viewMonth:h,viewPreviousMonth:g,viewNextMonth:z,viewYear:y,viewPreviousYear:x,viewNextYear:v,selected:A,setSelected:_,clearSelected:w,isSelected:k,select:q,deselect:S,toggle:C,selectRange:T,deselectRange:W,calendar:B}};function kn(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function cs(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function yW(e,t){const n=kn(e);return isNaN(t)?cs(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function i4(e,t){const n=kn(e);if(isNaN(t))return cs(e,NaN);if(!t)return n;const o=n.getDate(),r=cs(e,n.getTime());r.setMonth(n.getMonth()+t+1,0);const s=r.getDate();return o>=s?r:(n.setFullYear(r.getFullYear(),r.getMonth(),o),n)}const Pde=6048e5,eit=864e5,Ide=6e4,Dde=36e5;let tit={};function L3(){return tit}function $2(e,t){const n=L3(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,r=kn(e),s=r.getDay(),i=(s=r.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function fi(e){const t=kn(e);return t.setHours(0,0,0,0),t}function xG(e){const t=kn(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function nit(e,t){const n=fi(e),o=fi(t),r=+n-xG(n),s=+o-xG(o);return Math.round((r-s)/eit)}function oit(e){const t=Fde(e),n=cs(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Zv(n)}function $de(e,t){const n=t*7;return yW(e,n)}function _G(e,t){const n=fi(e),o=fi(t);return+n==+o}function rit(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function sit(e){if(!rit(e)&&typeof e!="number")return!1;const t=kn(e);return!isNaN(Number(t))}function iit(e){const t=kn(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function wG(e){const t=kn(e);return t.setSeconds(0,0),t}function kG(e){const t=kn(e);return t.setDate(1),t.setHours(0,0,0,0),t}function ait(e){const t=kn(e),n=cs(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function cit(e,t){const n=L3(),o=n.weekStartsOn??n.locale?.options?.weekStartsOn??0,r=kn(e),s=r.getDay(),i=(s{let o;const r=lit[e];return typeof r=="string"?o=r:t===1?o=r.one:o=r.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};function Zq(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const dit={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},pit={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},fit={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},bit={date:Zq({formats:dit,defaultWidth:"full"}),time:Zq({formats:pit,defaultWidth:"full"}),dateTime:Zq({formats:fit,defaultWidth:"full"})},hit={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},mit=(e,t,n,o)=>hit[e];function Rm(e){return(t,n)=>{const o=n?.context?String(n.context):"standalone";let r;if(o==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,c=n?.width?String(n.width):i;r=e.formattingValues[c]||e.formattingValues[i]}else{const i=e.defaultWidth,c=n?.width?String(n.width):e.defaultWidth;r=e.values[c]||e.values[i]}const s=e.argumentCallback?e.argumentCallback(t):t;return r[s]}}const Mit={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},git={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},zit={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Oit={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Ait={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},yit={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},vit=(e,t)=>{const n=Number(e),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},xit={ordinalNumber:vit,era:Rm({values:Mit,defaultWidth:"wide"}),quarter:Rm({values:git,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Rm({values:zit,defaultWidth:"wide"}),day:Rm({values:Oit,defaultWidth:"wide"}),dayPeriod:Rm({values:Ait,defaultWidth:"wide",formattingValues:yit,defaultFormattingWidth:"wide"})};function Wm(e){return(t,n={})=>{const o=n.width,r=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],s=t.match(r);if(!s)return null;const i=s[0],c=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(c)?wit(c,p=>p.test(i)):_it(c,p=>p.test(i));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const d=t.slice(i.length);return{value:u,rest:d}}}function _it(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function wit(e,t){for(let n=0;n{const o=t.match(e.matchPattern);if(!o)return null;const r=o[0],s=t.match(e.parsePattern);if(!s)return null;let i=e.valueCallback?e.valueCallback(s[0]):s[0];i=n.valueCallback?n.valueCallback(i):i;const c=t.slice(r.length);return{value:i,rest:c}}}const qit=/^(\d+)(th|st|nd|rd)?/i,Sit=/\d+/i,Cit={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Rit={any:[/^b/i,/^(a|c)/i]},Wit={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Tit={any:[/1/i,/2/i,/3/i,/4/i]},Eit={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Bit={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Nit={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Lit={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},jit={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Pit={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Iit={ordinalNumber:kit({matchPattern:qit,parsePattern:Sit,valueCallback:e=>parseInt(e,10)}),era:Wm({matchPatterns:Cit,defaultMatchWidth:"wide",parsePatterns:Rit,defaultParseWidth:"any"}),quarter:Wm({matchPatterns:Wit,defaultMatchWidth:"wide",parsePatterns:Tit,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Wm({matchPatterns:Eit,defaultMatchWidth:"wide",parsePatterns:Bit,defaultParseWidth:"any"}),day:Wm({matchPatterns:Nit,defaultMatchWidth:"wide",parsePatterns:Lit,defaultParseWidth:"any"}),dayPeriod:Wm({matchPatterns:jit,defaultMatchWidth:"any",parsePatterns:Pit,defaultParseWidth:"any"})},Dit={code:"en-US",formatDistance:uit,formatLong:bit,formatRelative:mit,localize:xit,match:Iit,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Fit(e){const t=kn(e);return nit(t,ait(t))+1}function $it(e){const t=kn(e),n=+Zv(t)-+oit(t);return Math.round(n/Pde)+1}function Vde(e,t){const n=kn(e),o=n.getFullYear(),r=L3(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=cs(e,0);i.setFullYear(o+1,0,s),i.setHours(0,0,0,0);const c=$2(i,t),l=cs(e,0);l.setFullYear(o,0,s),l.setHours(0,0,0,0);const u=$2(l,t);return n.getTime()>=c.getTime()?o+1:n.getTime()>=u.getTime()?o:o-1}function Vit(e,t){const n=L3(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,r=Vde(e,t),s=cs(e,0);return s.setFullYear(r,0,o),s.setHours(0,0,0,0),$2(s,t)}function Hit(e,t){const n=kn(e),o=+$2(n,t)-+Vit(n,t);return Math.round(o/Pde)+1}function U0(e,t){const n=e<0?"-":"",o=Math.abs(e).toString().padStart(t,"0");return n+o}const Tl={y(e,t){const n=e.getFullYear(),o=n>0?n:1-n;return U0(t==="yy"?o%100:o,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):U0(n+1,2)},d(e,t){return U0(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return U0(e.getHours()%12||12,t.length)},H(e,t){return U0(e.getHours(),t.length)},m(e,t){return U0(e.getMinutes(),t.length)},s(e,t){return U0(e.getSeconds(),t.length)},S(e,t){const n=t.length,o=e.getMilliseconds(),r=Math.trunc(o*Math.pow(10,n-3));return U0(r,t.length)}},$f={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},qG={G:function(e,t,n){const o=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"});case"GGGGG":return n.era(o,{width:"narrow"});case"GGGG":default:return n.era(o,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const o=e.getFullYear(),r=o>0?o:1-o;return n.ordinalNumber(r,{unit:"year"})}return Tl.y(e,t)},Y:function(e,t,n,o){const r=Vde(e,o),s=r>0?r:1-r;if(t==="YY"){const i=s%100;return U0(i,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):U0(s,t.length)},R:function(e,t){const n=Fde(e);return U0(n,t.length)},u:function(e,t){const n=e.getFullYear();return U0(n,t.length)},Q:function(e,t,n){const o=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return U0(o,2);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,n){const o=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return U0(o,2);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,n){const o=e.getMonth();switch(t){case"M":case"MM":return Tl.M(e,t);case"Mo":return n.ordinalNumber(o+1,{unit:"month"});case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,n){const o=e.getMonth();switch(t){case"L":return String(o+1);case"LL":return U0(o+1,2);case"Lo":return n.ordinalNumber(o+1,{unit:"month"});case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,n,o){const r=Hit(e,o);return t==="wo"?n.ordinalNumber(r,{unit:"week"}):U0(r,t.length)},I:function(e,t,n){const o=$it(e);return t==="Io"?n.ordinalNumber(o,{unit:"week"}):U0(o,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Tl.d(e,t)},D:function(e,t,n){const o=Fit(e);return t==="Do"?n.ordinalNumber(o,{unit:"dayOfYear"}):U0(o,t.length)},E:function(e,t,n){const o=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"});case"EEEE":default:return n.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,n,o){const r=e.getDay(),s=(r-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return U0(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});case"eeee":default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,o){const r=e.getDay(),s=(r-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return U0(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});case"cccc":default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){const o=e.getDay(),r=o===0?7:o;switch(t){case"i":return String(r);case"ii":return U0(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(o,{width:"short",context:"formatting"});case"iiii":default:return n.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const o=e.getHours();let r;switch(o===12?r=$f.noon:o===0?r=$f.midnight:r=o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){const o=e.getHours();let r;switch(o>=17?r=$f.evening:o>=12?r=$f.afternoon:o>=4?r=$f.morning:r=$f.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let o=e.getHours()%12;return o===0&&(o=12),n.ordinalNumber(o,{unit:"hour"})}return Tl.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Tl.H(e,t)},K:function(e,t,n){const o=e.getHours()%12;return t==="Ko"?n.ordinalNumber(o,{unit:"hour"}):U0(o,t.length)},k:function(e,t,n){let o=e.getHours();return o===0&&(o=24),t==="ko"?n.ordinalNumber(o,{unit:"hour"}):U0(o,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Tl.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Tl.s(e,t)},S:function(e,t){return Tl.S(e,t)},X:function(e,t,n){const o=e.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return CG(o);case"XXXX":case"XX":return Dd(o);case"XXXXX":case"XXX":default:return Dd(o,":")}},x:function(e,t,n){const o=e.getTimezoneOffset();switch(t){case"x":return CG(o);case"xxxx":case"xx":return Dd(o);case"xxxxx":case"xxx":default:return Dd(o,":")}},O:function(e,t,n){const o=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+SG(o,":");case"OOOO":default:return"GMT"+Dd(o,":")}},z:function(e,t,n){const o=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+SG(o,":");case"zzzz":default:return"GMT"+Dd(o,":")}},t:function(e,t,n){const o=Math.trunc(e.getTime()/1e3);return U0(o,t.length)},T:function(e,t,n){const o=e.getTime();return U0(o,t.length)}};function SG(e,t=""){const n=e>0?"-":"+",o=Math.abs(e),r=Math.trunc(o/60),s=o%60;return s===0?n+String(r):n+String(r)+t+U0(s,2)}function CG(e,t){return e%60===0?(e>0?"-":"+")+U0(Math.abs(e)/60,2):Dd(e,t)}function Dd(e,t=""){const n=e>0?"-":"+",o=Math.abs(e),r=U0(Math.trunc(o/60),2),s=U0(o%60,2);return n+r+t+s}const RG=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Hde=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Uit=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],o=n[1],r=n[2];if(!r)return RG(e,t);let s;switch(o){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",RG(o,t)).replace("{{time}}",Hde(r,t))},Xit={p:Hde,P:Uit},Git=/^D+$/,Kit=/^Y+$/,Yit=["D","DD","YY","YYYY"];function Zit(e){return Git.test(e)}function Qit(e){return Kit.test(e)}function Jit(e,t,n){const o=eat(e,t,n);if(console.warn(o),Yit.includes(e))throw new RangeError(o)}function eat(e,t,n){const o=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${o} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const tat=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,nat=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,oat=/^'([^]*?)'?$/,rat=/''/g,sat=/[a-zA-Z]/;function Vr(e,t,n){const o=L3(),r=o.locale??Dit,s=o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=o.weekStartsOn??o.locale?.options?.weekStartsOn??0,c=kn(e);if(!sit(c))throw new RangeError("Invalid time value");let l=t.match(nat).map(d=>{const p=d[0];if(p==="p"||p==="P"){const f=Xit[p];return f(d,r.formatLong)}return d}).join("").match(tat).map(d=>{if(d==="''")return{isToken:!1,value:"'"};const p=d[0];if(p==="'")return{isToken:!1,value:iat(d)};if(qG[p])return{isToken:!0,value:d};if(p.match(sat))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:d}});r.localize.preprocessor&&(l=r.localize.preprocessor(c,l));const u={firstWeekContainsDate:s,weekStartsOn:i,locale:r};return l.map(d=>{if(!d.isToken)return d.value;const p=d.value;(Qit(p)||Zit(p))&&Jit(p,t,String(e));const f=qG[p[0]];return f(c,p,r.localize,u)}).join("")}function iat(e){const t=e.match(oat);return t?t[1].replace(rat,"'"):e}function aat(e){const t=kn(e),n=t.getFullYear(),o=t.getMonth(),r=cs(e,0);return r.setFullYear(n,o+1,0),r.setHours(0,0,0,0),r.getDate()}function cat(e,t){const n=kn(e),o=kn(t);return+n==+o}function WG(e,t){const n=kn(e),o=kn(t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}function lat(e,t){const o=fat(e);let r;if(o.date){const l=bat(o.date,2);r=hat(l.restDateString,l.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);const s=r.getTime();let i=0,c;if(o.time&&(i=mat(o.time),isNaN(i)))return new Date(NaN);if(o.timezone){if(c=Mat(o.timezone),isNaN(c))return new Date(NaN)}else{const l=new Date(s+i),u=new Date(0);return u.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),u.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),u}return new Date(s+i+c)}const AA={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},uat=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,dat=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,pat=/^([+-])(\d{2})(?::?(\d{2}))?$/;function fat(e){const t={},n=e.split(AA.dateTimeDelimiter);let o;if(n.length>2)return t;if(/:/.test(n[0])?o=n[0]:(t.date=n[0],o=n[1],AA.timeZoneDelimiter.test(t.date)&&(t.date=e.split(AA.timeZoneDelimiter)[0],o=e.substr(t.date.length,e.length))),o){const r=AA.timezone.exec(o);r?(t.time=o.replace(r[1],""),t.timezone=r[1]):t.time=o}return t}function bat(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),o=e.match(n);if(!o)return{year:NaN,restDateString:""};const r=o[1]?parseInt(o[1]):null,s=o[2]?parseInt(o[2]):null;return{year:s===null?r:s*100,restDateString:e.slice((o[1]||o[2]).length)}}function hat(e,t){if(t===null)return new Date(NaN);const n=e.match(uat);if(!n)return new Date(NaN);const o=!!n[4],r=Tm(n[1]),s=Tm(n[2])-1,i=Tm(n[3]),c=Tm(n[4]),l=Tm(n[5])-1;if(o)return yat(t,c,l)?gat(t,c,l):new Date(NaN);{const u=new Date(0);return!Oat(t,s,i)||!Aat(t,r)?new Date(NaN):(u.setUTCFullYear(t,s,Math.max(r,i)),u)}}function Tm(e){return e?parseInt(e):1}function mat(e){const t=e.match(dat);if(!t)return NaN;const n=Qq(t[1]),o=Qq(t[2]),r=Qq(t[3]);return vat(n,o,r)?n*Dde+o*Ide+r*1e3:NaN}function Qq(e){return e&&parseFloat(e.replace(",","."))||0}function Mat(e){if(e==="Z")return 0;const t=e.match(pat);if(!t)return 0;const n=t[1]==="+"?-1:1,o=parseInt(t[2]),r=t[3]&&parseInt(t[3])||0;return xat(o,r)?n*(o*Dde+r*Ide):NaN}function gat(e,t,n){const o=new Date(0);o.setUTCFullYear(e,0,4);const r=o.getUTCDay()||7,s=(t-1)*7+n+1-r;return o.setUTCDate(o.getUTCDate()+s),o}const zat=[31,null,31,30,31,30,31,31,30,31,30,31];function Ude(e){return e%400===0||e%4===0&&e%100!==0}function Oat(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(zat[t]||(Ude(e)?29:28))}function Aat(e,t){return t>=1&&t<=(Ude(e)?366:365)}function yat(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function vat(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function xat(e,t){return t>=0&&t<=59}function Xde(e,t){const n=kn(e),o=n.getFullYear(),r=n.getDate(),s=cs(e,0);s.setFullYear(o,t,15),s.setHours(0,0,0,0);const i=aat(s);return n.setMonth(t,Math.min(r,i)),n}function TG(e,t){let n=kn(e);return isNaN(+n)?cs(e,NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=Xde(n,t.month)),t.date!=null&&n.setDate(t.date),t.hours!=null&&n.setHours(t.hours),t.minutes!=null&&n.setMinutes(t.minutes),t.seconds!=null&&n.setSeconds(t.seconds),t.milliseconds!=null&&n.setMilliseconds(t.milliseconds),n)}function Jq(e,t){return i4(e,-t)}function _at(e,t){return $de(e,-t)}//! moment.js //! version : 2.30.1 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT @@ -315,7 +315,7 @@ ${r}`)}function eje(e){return e.replace(/(^|\n)•( +)/g,"$1*$2")}function tje(e var Gde;function Pe(){return Gde.apply(null,arguments)}function wat(e){Gde=e}function Li(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function pp(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function E0(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function $7(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(E0(e,t))return!1;return!0}function gr(e){return e===void 0}function ol(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function j3(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Kde(e,t){var n=[],o,r=e.length;for(o=0;o>>0,o;for(o=0;o0)for(n=0;n=0;return(s?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+o}var X7=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,yA=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,tS={},t2={};function St(e,t,n,o){var r=o;typeof o=="string"&&(r=function(){return this[o]()}),e&&(t2[e]=r),t&&(t2[t[0]]=function(){return $a(r.apply(this,arguments),t[1],t[2])}),n&&(t2[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function Rat(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Wat(e){var t=e.match(X7),n,o;for(n=0,o=t.length;n=0&&yA.test(e);)e=e.replace(yA,o),yA.lastIndex=0,n-=1;return e}var Tat={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Eat(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(X7).map(function(o){return o==="MMMM"||o==="MM"||o==="DD"||o==="dddd"?o.slice(1):o}).join(""),this._longDateFormat[e])}var Bat="Invalid date";function Nat(){return this._invalidDate}var Lat="%d",jat=/\d{1,2}/;function Pat(e){return this._ordinal.replace("%d",e)}var Iat={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Dat(e,t,n,o){var r=this._relativeTime[n];return nc(r)?r(e,t,n,o):r.replace(/%d/i,e)}function Fat(e,t){var n=this._relativeTime[e>0?"future":"past"];return nc(n)?n(t):n.replace(/%s/i,t)}var NG={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ti(e){return typeof e=="string"?NG[e]||NG[e.toLowerCase()]:void 0}function G7(e){var t={},n,o;for(o in e)E0(e,o)&&(n=ti(o),n&&(t[n]=e[o]));return t}var $at={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Vat(e){var t=[],n;for(n in e)E0(e,n)&&t.push({unit:n,priority:$at[n]});return t.sort(function(o,r){return o.priority-r.priority}),t}var Jde=/\d/,ms=/\d\d/,epe=/\d{3}/,K7=/\d{4}/,mw=/[+-]?\d{6}/,Rn=/\d\d?/,tpe=/\d\d\d\d?/,npe=/\d\d\d\d\d\d?/,Mw=/\d{1,3}/,Y7=/\d{1,4}/,gw=/[+-]?\d{1,6}/,jh=/\d+/,zw=/[+-]?\d+/,Hat=/Z|[+-]\d\d:?\d\d/gi,Ow=/Z|[+-]\d\d(?::?\d\d)?/gi,Uat=/[+-]?\d+(\.\d{1,3})?/,I3=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Ph=/^[1-9]\d?/,Z7=/^([1-9]\d|\d)/,Qv;Qv={};function ut(e,t,n){Qv[e]=nc(t)?t:function(o,r){return o&&n?n:t}}function Xat(e,t){return E0(Qv,e)?Qv[e](t._strict,t._locale):new RegExp(Gat(e))}function Gat(e){return Ic(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,o,r,s){return n||o||r||s}))}function Ic(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Ss(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function f0(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Ss(t)),n}var wW={};function an(e,t){var n,o=t,r;for(typeof e=="string"&&(e=[e]),ol(t)&&(o=function(s,i){i[t]=f0(s)}),r=e.length,n=0;n68?1900:2e3)};var ope=Ih("FullYear",!0);function Qat(){return Aw(this.year())}function Ih(e,t){return function(n){return n!=null?(rpe(this,e,n),Pe.updateOffset(this,t),this):rz(this,e)}}function rz(e,t){if(!e.isValid())return NaN;var n=e._d,o=e._isUTC;switch(t){case"Milliseconds":return o?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return o?n.getUTCSeconds():n.getSeconds();case"Minutes":return o?n.getUTCMinutes():n.getMinutes();case"Hours":return o?n.getUTCHours():n.getHours();case"Date":return o?n.getUTCDate():n.getDate();case"Day":return o?n.getUTCDay():n.getDay();case"Month":return o?n.getUTCMonth():n.getMonth();case"FullYear":return o?n.getUTCFullYear():n.getFullYear();default:return NaN}}function rpe(e,t,n){var o,r,s,i,c;if(!(!e.isValid()||isNaN(n))){switch(o=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?o.setUTCMilliseconds(n):o.setMilliseconds(n));case"Seconds":return void(r?o.setUTCSeconds(n):o.setSeconds(n));case"Minutes":return void(r?o.setUTCMinutes(n):o.setMinutes(n));case"Hours":return void(r?o.setUTCHours(n):o.setHours(n));case"Date":return void(r?o.setUTCDate(n):o.setDate(n));case"FullYear":break;default:return}s=n,i=e.month(),c=e.date(),c=c===29&&i===1&&!Aw(s)?28:c,r?o.setUTCFullYear(s,i,c):o.setFullYear(s,i,c)}}function Jat(e){return e=ti(e),nc(this[e])?this[e]():this}function ect(e,t){if(typeof e=="object"){e=G7(e);var n=Vat(e),o,r=n.length;for(o=0;o=0?(c=new Date(e+400,t,n,o,r,s,i),isFinite(c.getFullYear())&&c.setFullYear(e)):c=new Date(e,t,n,o,r,s,i),c}function sz(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Jv(e,t,n){var o=7+t-n,r=(7+sz(e,0,o).getUTCDay()-t)%7;return-r+o-1}function upe(e,t,n,o,r){var s=(7+n-o)%7,i=Jv(e,o,r),c=1+7*(t-1)+s+i,l,u;return c<=0?(l=e-1,u=HM(l)+c):c>HM(e)?(l=e+1,u=c-HM(e)):(l=e,u=c),{year:l,dayOfYear:u}}function iz(e,t,n){var o=Jv(e.year(),t,n),r=Math.floor((e.dayOfYear()-o-1)/7)+1,s,i;return r<1?(i=e.year()-1,s=r+Dc(i,t,n)):r>Dc(e.year(),t,n)?(s=r-Dc(e.year(),t,n),i=e.year()+1):(i=e.year(),s=r),{week:s,year:i}}function Dc(e,t,n){var o=Jv(e,t,n),r=Jv(e+1,t,n);return(HM(e)-o+r)/7}St("w",["ww",2],"wo","week");St("W",["WW",2],"Wo","isoWeek");ut("w",Rn,Ph);ut("ww",Rn,ms);ut("W",Rn,Ph);ut("WW",Rn,ms);D3(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=f0(e)});function fct(e){return iz(e,this._week.dow,this._week.doy).week}var bct={dow:0,doy:6};function hct(){return this._week.dow}function mct(){return this._week.doy}function Mct(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function gct(e){var t=iz(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}St("d",0,"do","day");St("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});St("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});St("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});St("e",0,0,"weekday");St("E",0,0,"isoWeekday");ut("d",Rn);ut("e",Rn);ut("E",Rn);ut("dd",function(e,t){return t.weekdaysMinRegex(e)});ut("ddd",function(e,t){return t.weekdaysShortRegex(e)});ut("dddd",function(e,t){return t.weekdaysRegex(e)});D3(["dd","ddd","dddd"],function(e,t,n,o){var r=n._locale.weekdaysParse(e,o,n._strict);r!=null?t.d=r:o0(n).invalidWeekday=e});D3(["d","e","E"],function(e,t,n,o){t[o]=f0(e)});function zct(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Oct(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function J7(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Act="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),dpe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),yct="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),vct=I3,xct=I3,_ct=I3;function wct(e,t){var n=Li(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?J7(n,this._week.dow):e?n[e.day()]:n}function kct(e){return e===!0?J7(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function qct(e){return e===!0?J7(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Sct(e,t,n){var o,r,s,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)s=tc([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(s,"").toLocaleLowerCase();return n?t==="dddd"?(r=a1.call(this._weekdaysParse,i),r!==-1?r:null):t==="ddd"?(r=a1.call(this._shortWeekdaysParse,i),r!==-1?r:null):(r=a1.call(this._minWeekdaysParse,i),r!==-1?r:null):t==="dddd"?(r=a1.call(this._weekdaysParse,i),r!==-1||(r=a1.call(this._shortWeekdaysParse,i),r!==-1)?r:(r=a1.call(this._minWeekdaysParse,i),r!==-1?r:null)):t==="ddd"?(r=a1.call(this._shortWeekdaysParse,i),r!==-1||(r=a1.call(this._weekdaysParse,i),r!==-1)?r:(r=a1.call(this._minWeekdaysParse,i),r!==-1?r:null)):(r=a1.call(this._minWeekdaysParse,i),r!==-1||(r=a1.call(this._weekdaysParse,i),r!==-1)?r:(r=a1.call(this._shortWeekdaysParse,i),r!==-1?r:null))}function Cct(e,t,n){var o,r,s;if(this._weekdaysParseExact)return Sct.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(r=tc([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[o]=new RegExp(s.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[o].test(e))return o;if(n&&t==="ddd"&&this._shortWeekdaysParse[o].test(e))return o;if(n&&t==="dd"&&this._minWeekdaysParse[o].test(e))return o;if(!n&&this._weekdaysParse[o].test(e))return o}}function Rct(e){if(!this.isValid())return e!=null?this:NaN;var t=rz(this,"Day");return e!=null?(e=zct(e,this.localeData()),this.add(e-t,"d")):t}function Wct(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Tct(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Oct(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Ect(e){return this._weekdaysParseExact?(E0(this,"_weekdaysRegex")||ej.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(E0(this,"_weekdaysRegex")||(this._weekdaysRegex=vct),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Bct(e){return this._weekdaysParseExact?(E0(this,"_weekdaysRegex")||ej.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(E0(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=xct),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Nct(e){return this._weekdaysParseExact?(E0(this,"_weekdaysRegex")||ej.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(E0(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=_ct),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ej(){function e(d,p){return p.length-d.length}var t=[],n=[],o=[],r=[],s,i,c,l,u;for(s=0;s<7;s++)i=tc([2e3,1]).day(s),c=Ic(this.weekdaysMin(i,"")),l=Ic(this.weekdaysShort(i,"")),u=Ic(this.weekdays(i,"")),t.push(c),n.push(l),o.push(u),r.push(c),r.push(l),r.push(u);t.sort(e),n.sort(e),o.sort(e),r.sort(e),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function tj(){return this.hours()%12||12}function Lct(){return this.hours()||24}St("H",["HH",2],0,"hour");St("h",["hh",2],0,tj);St("k",["kk",2],0,Lct);St("hmm",0,0,function(){return""+tj.apply(this)+$a(this.minutes(),2)});St("hmmss",0,0,function(){return""+tj.apply(this)+$a(this.minutes(),2)+$a(this.seconds(),2)});St("Hmm",0,0,function(){return""+this.hours()+$a(this.minutes(),2)});St("Hmmss",0,0,function(){return""+this.hours()+$a(this.minutes(),2)+$a(this.seconds(),2)});function ppe(e,t){St(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}ppe("a",!0);ppe("A",!1);function fpe(e,t){return t._meridiemParse}ut("a",fpe);ut("A",fpe);ut("H",Rn,Z7);ut("h",Rn,Ph);ut("k",Rn,Ph);ut("HH",Rn,ms);ut("hh",Rn,ms);ut("kk",Rn,ms);ut("hmm",tpe);ut("hmmss",npe);ut("Hmm",tpe);ut("Hmmss",npe);an(["H","HH"],q1);an(["k","kk"],function(e,t,n){var o=f0(e);t[q1]=o===24?0:o});an(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});an(["h","hh"],function(e,t,n){t[q1]=f0(e),o0(n).bigHour=!0});an("hmm",function(e,t,n){var o=e.length-2;t[q1]=f0(e.substr(0,o)),t[zi]=f0(e.substr(o)),o0(n).bigHour=!0});an("hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[q1]=f0(e.substr(0,o)),t[zi]=f0(e.substr(o,2)),t[Sc]=f0(e.substr(r)),o0(n).bigHour=!0});an("Hmm",function(e,t,n){var o=e.length-2;t[q1]=f0(e.substr(0,o)),t[zi]=f0(e.substr(o))});an("Hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[q1]=f0(e.substr(0,o)),t[zi]=f0(e.substr(o,2)),t[Sc]=f0(e.substr(r))});function jct(e){return(e+"").toLowerCase().charAt(0)==="p"}var Pct=/[ap]\.?m?\.?/i,Ict=Ih("Hours",!0);function Dct(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var bpe={calendar:Sat,longDateFormat:Tat,invalidDate:Bat,ordinal:Lat,dayOfMonthOrdinalParse:jat,relativeTime:Iat,months:nct,monthsShort:spe,week:bct,weekdays:Act,weekdaysMin:yct,weekdaysShort:dpe,meridiemParse:Pct},En={},Em={},az;function Fct(e,t){var n,o=Math.min(e.length,t.length);for(n=0;n0;){if(r=yw(s.slice(0,n).join("-")),r)return r;if(o&&o.length>=n&&Fct(s,o)>=n-1)break;n--}t++}return az}function Vct(e){return!!(e&&e.match("^[^/\\\\]*$"))}function yw(e){var t=null,n;if(En[e]===void 0&&typeof W4<"u"&&W4&&W4.exports&&Vct(e))try{t=az._abbr,n=require,n("./locale/"+e),xu(t)}catch{En[e]=null}return En[e]}function xu(e,t){var n;return e&&(gr(t)?n=Al(e):n=nj(e,t),n?az=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),az._abbr}function nj(e,t){if(t!==null){var n,o=bpe;if(t.abbr=e,En[e]!=null)Zde("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=En[e]._config;else if(t.parentLocale!=null)if(En[t.parentLocale]!=null)o=En[t.parentLocale]._config;else if(n=yw(t.parentLocale),n!=null)o=n._config;else return Em[t.parentLocale]||(Em[t.parentLocale]=[]),Em[t.parentLocale].push({name:e,config:t}),null;return En[e]=new U7(xW(o,t)),Em[e]&&Em[e].forEach(function(r){nj(r.name,r.config)}),xu(e),En[e]}else return delete En[e],null}function Hct(e,t){if(t!=null){var n,o,r=bpe;En[e]!=null&&En[e].parentLocale!=null?En[e].set(xW(En[e]._config,t)):(o=yw(e),o!=null&&(r=o._config),t=xW(r,t),o==null&&(t.abbr=e),n=new U7(t),n.parentLocale=En[e],En[e]=n),xu(e)}else En[e]!=null&&(En[e].parentLocale!=null?(En[e]=En[e].parentLocale,e===xu()&&xu(e)):En[e]!=null&&delete En[e]);return En[e]}function Al(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return az;if(!Li(e)){if(t=yw(e),t)return t;e=[e]}return $ct(e)}function Uct(){return _W(En)}function oj(e){var t,n=e._a;return n&&o0(e).overflow===-2&&(t=n[qc]<0||n[qc]>11?qc:n[ga]<1||n[ga]>Q7(n[jo],n[qc])?ga:n[q1]<0||n[q1]>24||n[q1]===24&&(n[zi]!==0||n[Sc]!==0||n[op]!==0)?q1:n[zi]<0||n[zi]>59?zi:n[Sc]<0||n[Sc]>59?Sc:n[op]<0||n[op]>999?op:-1,o0(e)._overflowDayOfYear&&(tga)&&(t=ga),o0(e)._overflowWeeks&&t===-1&&(t=Yat),o0(e)._overflowWeekday&&t===-1&&(t=Zat),o0(e).overflow=t),e}var Xct=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Gct=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Kct=/Z|[+-]\d\d(?::?\d\d)?/,vA=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],nS=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Yct=/^\/?Date\((-?\d+)/i,Zct=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Qct={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function hpe(e){var t,n,o=e._i,r=Xct.exec(o)||Gct.exec(o),s,i,c,l,u=vA.length,d=nS.length;if(r){for(o0(e).iso=!0,t=0,n=u;tHM(i)||e._dayOfYear===0)&&(o0(e)._overflowDayOfYear=!0),n=sz(i,0,e._dayOfYear),e._a[qc]=n.getUTCMonth(),e._a[ga]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[q1]===24&&e._a[zi]===0&&e._a[Sc]===0&&e._a[op]===0&&(e._nextDay=!0,e._a[q1]=0),e._d=(e._useUTC?sz:pct).apply(null,o),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[q1]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==s&&(o0(e).weekdayMismatch=!0)}}function ilt(e){var t,n,o,r,s,i,c,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(s=1,i=4,n=rb(t.GG,e._a[jo],iz(qn(),1,4).year),o=rb(t.W,1),r=rb(t.E,1),(r<1||r>7)&&(l=!0)):(s=e._locale._week.dow,i=e._locale._week.doy,u=iz(qn(),s,i),n=rb(t.gg,e._a[jo],u.year),o=rb(t.w,u.week),t.d!=null?(r=t.d,(r<0||r>6)&&(l=!0)):t.e!=null?(r=t.e+s,(t.e<0||t.e>6)&&(l=!0)):r=s),o<1||o>Dc(n,s,i)?o0(e)._overflowWeeks=!0:l!=null?o0(e)._overflowWeekday=!0:(c=upe(n,o,r,s,i),e._a[jo]=c.year,e._dayOfYear=c.dayOfYear)}Pe.ISO_8601=function(){};Pe.RFC_2822=function(){};function sj(e){if(e._f===Pe.ISO_8601){hpe(e);return}if(e._f===Pe.RFC_2822){mpe(e);return}e._a=[],o0(e).empty=!0;var t=""+e._i,n,o,r,s,i,c=t.length,l=0,u,d;for(r=Qde(e._f,e._locale).match(X7)||[],d=r.length,n=0;n0&&o0(e).unusedInput.push(i),t=t.slice(t.indexOf(o)+o.length),l+=o.length),t2[s]?(o?o0(e).empty=!1:o0(e).unusedTokens.push(s),Kat(s,o,e)):e._strict&&!o&&o0(e).unusedTokens.push(s);o0(e).charsLeftOver=c-l,t.length>0&&o0(e).unusedInput.push(t),e._a[q1]<=12&&o0(e).bigHour===!0&&e._a[q1]>0&&(o0(e).bigHour=void 0),o0(e).parsedDateParts=e._a.slice(0),o0(e).meridiem=e._meridiem,e._a[q1]=alt(e._locale,e._a[q1],e._meridiem),u=o0(e).era,u!==null&&(e._a[jo]=e._locale.erasConvertYear(u,e._a[jo])),rj(e),oj(e)}function alt(e,t,n){var o;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(o=e.isPM(n),o&&t<12&&(t+=12),!o&&t===12&&(t=0)),t)}function clt(e){var t,n,o,r,s,i,c=!1,l=e._f.length;if(l===0){o0(e).invalidFormat=!0,e._d=new Date(NaN);return}for(r=0;rthis?this:e:hw()});function zpe(e,t){var n,o;if(t.length===1&&Li(t[0])&&(t=t[0]),!t.length)return qn();for(n=t[0],o=1;othis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Slt(){if(!gr(this._isDSTShifted))return this._isDSTShifted;var e={},t;return H7(e,this),e=Mpe(e),e._a?(t=e._isUTC?tc(e._a):qn(e._a),this._isDSTShifted=this.isValid()&&Olt(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Clt(){return this.isValid()?!this._isUTC:!1}function Rlt(){return this.isValid()?this._isUTC:!1}function Ape(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Wlt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Tlt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Hi(e,t){var n=e,o=null,r,s,i;return c4(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:ol(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(o=Wlt.exec(e))?(r=o[1]==="-"?-1:1,n={y:0,d:f0(o[ga])*r,h:f0(o[q1])*r,m:f0(o[zi])*r,s:f0(o[Sc])*r,ms:f0(kW(o[op]*1e3))*r}):(o=Tlt.exec(e))?(r=o[1]==="-"?-1:1,n={y:Rd(o[2],r),M:Rd(o[3],r),w:Rd(o[4],r),d:Rd(o[5],r),h:Rd(o[6],r),m:Rd(o[7],r),s:Rd(o[8],r)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(i=Elt(qn(n.from),qn(n.to)),n={},n.ms=i.milliseconds,n.M=i.months),s=new vw(n),c4(e)&&E0(e,"_locale")&&(s._locale=e._locale),c4(e)&&E0(e,"_isValid")&&(s._isValid=e._isValid),s}Hi.fn=vw.prototype;Hi.invalid=zlt;function Rd(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function jG(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Elt(e,t){var n;return e.isValid()&&t.isValid()?(t=aj(t,e),e.isBefore(t)?n=jG(e,t):(n=jG(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function ype(e,t){return function(n,o){var r,s;return o!==null&&!isNaN(+o)&&(Zde(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=n,n=o,o=s),r=Hi(n,o),vpe(this,r,e),this}}function vpe(e,t,n,o){var r=t._milliseconds,s=kW(t._days),i=kW(t._months);e.isValid()&&(o=o??!0,i&&ape(e,rz(e,"Month")+i*n),s&&rpe(e,"Date",rz(e,"Date")+s*n),r&&e._d.setTime(e._d.valueOf()+r*n),o&&Pe.updateOffset(e,s||i))}var Blt=ype(1,"add"),Nlt=ype(-1,"subtract");function xpe(e){return typeof e=="string"||e instanceof String}function Llt(e){return ji(e)||j3(e)||xpe(e)||ol(e)||Plt(e)||jlt(e)||e===null||e===void 0}function jlt(e){var t=pp(e)&&!$7(e),n=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,s,i=o.length;for(r=0;rn.valueOf():n.valueOf()9999?a4(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):nc(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",a4(n,"Z")):a4(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Jlt(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,o,r,s;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',o=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",s=t+'[")]',this.format(n+o+r+s)}function eut(e){e||(e=this.isUtc()?Pe.defaultFormatUtc:Pe.defaultFormat);var t=a4(this,e);return this.localeData().postformat(t)}function tut(e,t){return this.isValid()&&(ji(e)&&e.isValid()||qn(e).isValid())?Hi({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function nut(e){return this.from(qn(),e)}function out(e,t){return this.isValid()&&(ji(e)&&e.isValid()||qn(e).isValid())?Hi({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function rut(e){return this.to(qn(),e)}function _pe(e){var t;return e===void 0?this._locale._abbr:(t=Al(e),t!=null&&(this._locale=t),this)}var wpe=ei("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function kpe(){return this._locale}var e5=1e3,n2=60*e5,t5=60*n2,qpe=(365*400+97)*24*t5;function o2(e,t){return(e%t+t)%t}function Spe(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-qpe:new Date(e,t,n).valueOf()}function Cpe(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-qpe:Date.UTC(e,t,n)}function sut(e){var t,n;if(e=ti(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Cpe:Spe,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=o2(t+(this._isUTC?0:this.utcOffset()*n2),t5);break;case"minute":t=this._d.valueOf(),t-=o2(t,n2);break;case"second":t=this._d.valueOf(),t-=o2(t,e5);break}return this._d.setTime(t),Pe.updateOffset(this,!0),this}function iut(e){var t,n;if(e=ti(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Cpe:Spe,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=t5-o2(t+(this._isUTC?0:this.utcOffset()*n2),t5)-1;break;case"minute":t=this._d.valueOf(),t+=n2-o2(t,n2)-1;break;case"second":t=this._d.valueOf(),t+=e5-o2(t,e5)-1;break}return this._d.setTime(t),Pe.updateOffset(this,!0),this}function aut(){return this._d.valueOf()-(this._offset||0)*6e4}function cut(){return Math.floor(this.valueOf()/1e3)}function lut(){return new Date(this.valueOf())}function uut(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function dut(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function put(){return this.isValid()?this.toISOString():null}function fut(){return V7(this)}function but(){return ru({},o0(this))}function hut(){return o0(this).overflow}function mut(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}St("N",0,0,"eraAbbr");St("NN",0,0,"eraAbbr");St("NNN",0,0,"eraAbbr");St("NNNN",0,0,"eraName");St("NNNNN",0,0,"eraNarrow");St("y",["y",1],"yo","eraYear");St("y",["yy",2],0,"eraYear");St("y",["yyy",3],0,"eraYear");St("y",["yyyy",4],0,"eraYear");ut("N",cj);ut("NN",cj);ut("NNN",cj);ut("NNNN",kut);ut("NNNNN",qut);an(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,o){var r=n._locale.erasParse(e,o,n._strict);r?o0(n).era=r:o0(n).invalidEra=e});ut("y",jh);ut("yy",jh);ut("yyy",jh);ut("yyyy",jh);ut("yo",Sut);an(["y","yy","yyy","yyyy"],jo);an(["yo"],function(e,t,n,o){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[jo]=n._locale.eraYearOrdinalParse(e,r):t[jo]=parseInt(e,10)});function Mut(e,t){var n,o,r,s=this._eras||Al("en")._eras;for(n=0,o=s.length;n=0)return s[o]}function zut(e,t){var n=e.since<=e.until?1:-1;return t===void 0?Pe(e.since).year():Pe(e.since).year()+(t-e.offset)*n}function Out(){var e,t,n,o=this.localeData().eras();for(e=0,t=o.length;es&&(t=s),Nut.call(this,e,t,n,o,r))}function Nut(e,t,n,o,r){var s=upe(e,t,n,o,r),i=sz(s.year,0,s.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}St("Q",0,"Qo","quarter");ut("Q",Jde);an("Q",function(e,t){t[qc]=(f0(e)-1)*3});function Lut(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}St("D",["DD",2],"Do","date");ut("D",Rn,Ph);ut("DD",Rn,ms);ut("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});an(["D","DD"],ga);an("Do",function(e,t){t[ga]=f0(e.match(Rn)[0])});var Wpe=Ih("Date",!0);St("DDD",["DDDD",3],"DDDo","dayOfYear");ut("DDD",Mw);ut("DDDD",epe);an(["DDD","DDDD"],function(e,t,n){n._dayOfYear=f0(e)});function jut(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}St("m",["mm",2],0,"minute");ut("m",Rn,Z7);ut("mm",Rn,ms);an(["m","mm"],zi);var Put=Ih("Minutes",!1);St("s",["ss",2],0,"second");ut("s",Rn,Z7);ut("ss",Rn,ms);an(["s","ss"],Sc);var Iut=Ih("Seconds",!1);St("S",0,0,function(){return~~(this.millisecond()/100)});St(0,["SS",2],0,function(){return~~(this.millisecond()/10)});St(0,["SSS",3],0,"millisecond");St(0,["SSSS",4],0,function(){return this.millisecond()*10});St(0,["SSSSS",5],0,function(){return this.millisecond()*100});St(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});St(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});St(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});St(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ut("S",Mw,Jde);ut("SS",Mw,ms);ut("SSS",Mw,epe);var su,Tpe;for(su="SSSS";su.length<=9;su+="S")ut(su,jh);function Dut(e,t){t[op]=f0(("0."+e)*1e3)}for(su="S";su.length<=9;su+="S")an(su,Dut);Tpe=Ih("Milliseconds",!1);St("z",0,0,"zoneAbbr");St("zz",0,0,"zoneName");function Fut(){return this._isUTC?"UTC":""}function $ut(){return this._isUTC?"Coordinated Universal Time":""}var je=P3.prototype;je.add=Blt;je.calendar=Flt;je.clone=$lt;je.diff=Ylt;je.endOf=iut;je.format=eut;je.from=tut;je.fromNow=nut;je.to=out;je.toNow=rut;je.get=Jat;je.invalidAt=hut;je.isAfter=Vlt;je.isBefore=Hlt;je.isBetween=Ult;je.isSame=Xlt;je.isSameOrAfter=Glt;je.isSameOrBefore=Klt;je.isValid=fut;je.lang=wpe;je.locale=_pe;je.localeData=kpe;je.max=flt;je.min=plt;je.parsingFlags=but;je.set=ect;je.startOf=sut;je.subtract=Nlt;je.toArray=uut;je.toObject=dut;je.toDate=lut;je.toISOString=Qlt;je.inspect=Jlt;typeof Symbol<"u"&&Symbol.for!=null&&(je[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});je.toJSON=put;je.toString=Zlt;je.unix=cut;je.valueOf=aut;je.creationData=mut;je.eraName=Out;je.eraNarrow=Aut;je.eraAbbr=yut;je.eraYear=vut;je.year=ope;je.isLeapYear=Qat;je.weekYear=Cut;je.isoWeekYear=Rut;je.quarter=je.quarters=Lut;je.month=cpe;je.daysInMonth=lct;je.week=je.weeks=Mct;je.isoWeek=je.isoWeeks=gct;je.weeksInYear=Eut;je.weeksInWeekYear=But;je.isoWeeksInYear=Wut;je.isoWeeksInISOWeekYear=Tut;je.date=Wpe;je.day=je.days=Rct;je.weekday=Wct;je.isoWeekday=Tct;je.dayOfYear=jut;je.hour=je.hours=Ict;je.minute=je.minutes=Put;je.second=je.seconds=Iut;je.millisecond=je.milliseconds=Tpe;je.utcOffset=ylt;je.utc=xlt;je.local=_lt;je.parseZone=wlt;je.hasAlignedHourOffset=klt;je.isDST=qlt;je.isLocal=Clt;je.isUtcOffset=Rlt;je.isUtc=Ape;je.isUTC=Ape;je.zoneAbbr=Fut;je.zoneName=$ut;je.dates=ei("dates accessor is deprecated. Use date instead.",Wpe);je.months=ei("months accessor is deprecated. Use month instead",cpe);je.years=ei("years accessor is deprecated. Use year instead",ope);je.zone=ei("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vlt);je.isDSTShifted=ei("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Slt);function Vut(e){return qn(e*1e3)}function Hut(){return qn.apply(null,arguments).parseZone()}function Epe(e){return e}var N0=U7.prototype;N0.calendar=Cat;N0.longDateFormat=Eat;N0.invalidDate=Nat;N0.ordinal=Pat;N0.preparse=Epe;N0.postformat=Epe;N0.relativeTime=Dat;N0.pastFuture=Fat;N0.set=qat;N0.eras=Mut;N0.erasParse=gut;N0.erasConvertYear=zut;N0.erasAbbrRegex=_ut;N0.erasNameRegex=xut;N0.erasNarrowRegex=wut;N0.months=sct;N0.monthsShort=ict;N0.monthsParse=cct;N0.monthsRegex=dct;N0.monthsShortRegex=uct;N0.week=fct;N0.firstDayOfYear=mct;N0.firstDayOfWeek=hct;N0.weekdays=wct;N0.weekdaysMin=qct;N0.weekdaysShort=kct;N0.weekdaysParse=Cct;N0.weekdaysRegex=Ect;N0.weekdaysShortRegex=Bct;N0.weekdaysMinRegex=Nct;N0.isPM=jct;N0.meridiem=Dct;function n5(e,t,n,o){var r=Al(),s=tc().set(o,t);return r[n](s,e)}function Bpe(e,t,n){if(ol(e)&&(t=e,e=void 0),e=e||"",t!=null)return n5(e,t,n,"month");var o,r=[];for(o=0;o<12;o++)r[o]=n5(e,o,n,"month");return r}function uj(e,t,n,o){typeof e=="boolean"?(ol(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,ol(t)&&(n=t,t=void 0),t=t||"");var r=Al(),s=e?r._week.dow:0,i,c=[];if(n!=null)return n5(t,(n+s)%7,o,"day");for(i=0;i<7;i++)c[i]=n5(t,(i+s)%7,o,"day");return c}function Uut(e,t){return Bpe(e,t,"months")}function Xut(e,t){return Bpe(e,t,"monthsShort")}function Gut(e,t,n){return uj(e,t,n,"weekdays")}function Kut(e,t,n){return uj(e,t,n,"weekdaysShort")}function Yut(e,t,n){return uj(e,t,n,"weekdaysMin")}xu("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=f0(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});Pe.lang=ei("moment.lang is deprecated. Use moment.locale instead.",xu);Pe.langData=ei("moment.langData is deprecated. Use moment.localeData instead.",Al);var lc=Math.abs;function Zut(){var e=this._data;return this._milliseconds=lc(this._milliseconds),this._days=lc(this._days),this._months=lc(this._months),e.milliseconds=lc(e.milliseconds),e.seconds=lc(e.seconds),e.minutes=lc(e.minutes),e.hours=lc(e.hours),e.months=lc(e.months),e.years=lc(e.years),this}function Npe(e,t,n,o){var r=Hi(t,n);return e._milliseconds+=o*r._milliseconds,e._days+=o*r._days,e._months+=o*r._months,e._bubble()}function Qut(e,t){return Npe(this,e,t,1)}function Jut(e,t){return Npe(this,e,t,-1)}function PG(e){return e<0?Math.floor(e):Math.ceil(e)}function edt(){var e=this._milliseconds,t=this._days,n=this._months,o=this._data,r,s,i,c,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=PG(SW(n)+t)*864e5,t=0,n=0),o.milliseconds=e%1e3,r=Ss(e/1e3),o.seconds=r%60,s=Ss(r/60),o.minutes=s%60,i=Ss(s/60),o.hours=i%24,t+=Ss(i/24),l=Ss(Lpe(t)),n+=l,t-=PG(SW(l)),c=Ss(n/12),n%=12,o.days=t,o.months=n,o.years=c,this}function Lpe(e){return e*4800/146097}function SW(e){return e*146097/4800}function tdt(e){if(!this.isValid())return NaN;var t,n,o=this._milliseconds;if(e=ti(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+o/864e5,n=this._months+Lpe(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(SW(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return t*24+o/36e5;case"minute":return t*1440+o/6e4;case"second":return t*86400+o/1e3;case"millisecond":return Math.floor(t*864e5)+o;default:throw new Error("Unknown unit "+e)}}function yl(e){return function(){return this.as(e)}}var jpe=yl("ms"),ndt=yl("s"),odt=yl("m"),rdt=yl("h"),sdt=yl("d"),idt=yl("w"),adt=yl("M"),cdt=yl("Q"),ldt=yl("y"),udt=jpe;function ddt(){return Hi(this)}function pdt(e){return e=ti(e),this.isValid()?this[e+"s"]():NaN}function _f(e){return function(){return this.isValid()?this._data[e]:NaN}}var fdt=_f("milliseconds"),bdt=_f("seconds"),hdt=_f("minutes"),mdt=_f("hours"),Mdt=_f("days"),gdt=_f("months"),zdt=_f("years");function Odt(){return Ss(this.days()/7)}var Mc=Math.round,Sb={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Adt(e,t,n,o,r){return r.relativeTime(t||1,!!n,e,o)}function ydt(e,t,n,o){var r=Hi(e).abs(),s=Mc(r.as("s")),i=Mc(r.as("m")),c=Mc(r.as("h")),l=Mc(r.as("d")),u=Mc(r.as("M")),d=Mc(r.as("w")),p=Mc(r.as("y")),f=s<=n.ss&&["s",s]||s0,f[4]=o,Adt.apply(null,f)}function vdt(e){return e===void 0?Mc:typeof e=="function"?(Mc=e,!0):!1}function xdt(e,t){return Sb[e]===void 0?!1:t===void 0?Sb[e]:(Sb[e]=t,e==="s"&&(Sb.ss=t-1),!0)}function _dt(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,o=Sb,r,s;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(o=Object.assign({},Sb,t),t.s!=null&&t.ss==null&&(o.ss=t.s-1)),r=this.localeData(),s=ydt(this,!n,o,r),n&&(s=r.pastFuture(+this,s)),r.postformat(s)}var oS=Math.abs;function Vf(e){return(e>0)-(e<0)||+e}function _w(){if(!this.isValid())return this.localeData().invalidDate();var e=oS(this._milliseconds)/1e3,t=oS(this._days),n=oS(this._months),o,r,s,i,c=this.asSeconds(),l,u,d,p;return c?(o=Ss(e/60),r=Ss(o/60),e%=60,o%=60,s=Ss(n/12),n%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=c<0?"-":"",u=Vf(this._months)!==Vf(c)?"-":"",d=Vf(this._days)!==Vf(c)?"-":"",p=Vf(this._milliseconds)!==Vf(c)?"-":"",l+"P"+(s?u+s+"Y":"")+(n?u+n+"M":"")+(t?d+t+"D":"")+(r||o||e?"T":"")+(r?p+r+"H":"")+(o?p+o+"M":"")+(e?p+i+"S":"")):"P0D"}var w0=vw.prototype;w0.isValid=glt;w0.abs=Zut;w0.add=Qut;w0.subtract=Jut;w0.as=tdt;w0.asMilliseconds=jpe;w0.asSeconds=ndt;w0.asMinutes=odt;w0.asHours=rdt;w0.asDays=sdt;w0.asWeeks=idt;w0.asMonths=adt;w0.asQuarters=cdt;w0.asYears=ldt;w0.valueOf=udt;w0._bubble=edt;w0.clone=ddt;w0.get=pdt;w0.milliseconds=fdt;w0.seconds=bdt;w0.minutes=hdt;w0.hours=mdt;w0.days=Mdt;w0.weeks=Odt;w0.months=gdt;w0.years=zdt;w0.humanize=_dt;w0.toISOString=_w;w0.toString=_w;w0.toJSON=_w;w0.locale=_pe;w0.localeData=kpe;w0.toIsoString=ei("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",_w);w0.lang=wpe;St("X",0,0,"unix");St("x",0,0,"valueOf");ut("x",zw);ut("X",Uat);an("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});an("x",function(e,t,n){n._d=new Date(f0(e))});//! moment.js +`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var BG={};function Zde(e,t){Pe.deprecationHandler!=null&&Pe.deprecationHandler(e,t),BG[e]||(Yde(t),BG[e]=!0)}Pe.suppressDeprecationWarnings=!1;Pe.deprecationHandler=null;function nc(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function qat(e){var t,n;for(n in e)E0(e,n)&&(t=e[n],nc(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function xW(e,t){var n=ru({},e),o;for(o in t)E0(t,o)&&(pp(e[o])&&pp(t[o])?(n[o]={},ru(n[o],e[o]),ru(n[o],t[o])):t[o]!=null?n[o]=t[o]:delete n[o]);for(o in e)E0(e,o)&&!E0(t,o)&&pp(e[o])&&(n[o]=ru({},n[o]));return n}function U7(e){e!=null&&this.set(e)}var _W;Object.keys?_W=Object.keys:_W=function(e){var t,n=[];for(t in e)E0(e,t)&&n.push(t);return n};var Sat={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Cat(e,t,n){var o=this._calendar[e]||this._calendar.sameElse;return nc(o)?o.call(t,n):o}function $a(e,t,n){var o=""+Math.abs(e),r=t-o.length,s=e>=0;return(s?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+o}var X7=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,yA=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,tS={},t2={};function St(e,t,n,o){var r=o;typeof o=="string"&&(r=function(){return this[o]()}),e&&(t2[e]=r),t&&(t2[t[0]]=function(){return $a(r.apply(this,arguments),t[1],t[2])}),n&&(t2[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function Rat(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Wat(e){var t=e.match(X7),n,o;for(n=0,o=t.length;n=0&&yA.test(e);)e=e.replace(yA,o),yA.lastIndex=0,n-=1;return e}var Tat={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Eat(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(X7).map(function(o){return o==="MMMM"||o==="MM"||o==="DD"||o==="dddd"?o.slice(1):o}).join(""),this._longDateFormat[e])}var Bat="Invalid date";function Nat(){return this._invalidDate}var Lat="%d",jat=/\d{1,2}/;function Pat(e){return this._ordinal.replace("%d",e)}var Iat={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Dat(e,t,n,o){var r=this._relativeTime[n];return nc(r)?r(e,t,n,o):r.replace(/%d/i,e)}function Fat(e,t){var n=this._relativeTime[e>0?"future":"past"];return nc(n)?n(t):n.replace(/%s/i,t)}var NG={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ti(e){return typeof e=="string"?NG[e]||NG[e.toLowerCase()]:void 0}function G7(e){var t={},n,o;for(o in e)E0(e,o)&&(n=ti(o),n&&(t[n]=e[o]));return t}var $at={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Vat(e){var t=[],n;for(n in e)E0(e,n)&&t.push({unit:n,priority:$at[n]});return t.sort(function(o,r){return o.priority-r.priority}),t}var Jde=/\d/,Ms=/\d\d/,epe=/\d{3}/,K7=/\d{4}/,mw=/[+-]?\d{6}/,Rn=/\d\d?/,tpe=/\d\d\d\d?/,npe=/\d\d\d\d\d\d?/,Mw=/\d{1,3}/,Y7=/\d{1,4}/,gw=/[+-]?\d{1,6}/,jh=/\d+/,zw=/[+-]?\d+/,Hat=/Z|[+-]\d\d:?\d\d/gi,Ow=/Z|[+-]\d\d(?::?\d\d)?/gi,Uat=/[+-]?\d+(\.\d{1,3})?/,I3=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Ph=/^[1-9]\d?/,Z7=/^([1-9]\d|\d)/,Qv;Qv={};function ut(e,t,n){Qv[e]=nc(t)?t:function(o,r){return o&&n?n:t}}function Xat(e,t){return E0(Qv,e)?Qv[e](t._strict,t._locale):new RegExp(Gat(e))}function Gat(e){return Ic(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,o,r,s){return n||o||r||s}))}function Ic(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Cs(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function f0(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Cs(t)),n}var wW={};function an(e,t){var n,o=t,r;for(typeof e=="string"&&(e=[e]),ol(t)&&(o=function(s,i){i[t]=f0(s)}),r=e.length,n=0;n68?1900:2e3)};var ope=Ih("FullYear",!0);function Qat(){return Aw(this.year())}function Ih(e,t){return function(n){return n!=null?(rpe(this,e,n),Pe.updateOffset(this,t),this):rz(this,e)}}function rz(e,t){if(!e.isValid())return NaN;var n=e._d,o=e._isUTC;switch(t){case"Milliseconds":return o?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return o?n.getUTCSeconds():n.getSeconds();case"Minutes":return o?n.getUTCMinutes():n.getMinutes();case"Hours":return o?n.getUTCHours():n.getHours();case"Date":return o?n.getUTCDate():n.getDate();case"Day":return o?n.getUTCDay():n.getDay();case"Month":return o?n.getUTCMonth():n.getMonth();case"FullYear":return o?n.getUTCFullYear():n.getFullYear();default:return NaN}}function rpe(e,t,n){var o,r,s,i,c;if(!(!e.isValid()||isNaN(n))){switch(o=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?o.setUTCMilliseconds(n):o.setMilliseconds(n));case"Seconds":return void(r?o.setUTCSeconds(n):o.setSeconds(n));case"Minutes":return void(r?o.setUTCMinutes(n):o.setMinutes(n));case"Hours":return void(r?o.setUTCHours(n):o.setHours(n));case"Date":return void(r?o.setUTCDate(n):o.setDate(n));case"FullYear":break;default:return}s=n,i=e.month(),c=e.date(),c=c===29&&i===1&&!Aw(s)?28:c,r?o.setUTCFullYear(s,i,c):o.setFullYear(s,i,c)}}function Jat(e){return e=ti(e),nc(this[e])?this[e]():this}function ect(e,t){if(typeof e=="object"){e=G7(e);var n=Vat(e),o,r=n.length;for(o=0;o=0?(c=new Date(e+400,t,n,o,r,s,i),isFinite(c.getFullYear())&&c.setFullYear(e)):c=new Date(e,t,n,o,r,s,i),c}function sz(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Jv(e,t,n){var o=7+t-n,r=(7+sz(e,0,o).getUTCDay()-t)%7;return-r+o-1}function upe(e,t,n,o,r){var s=(7+n-o)%7,i=Jv(e,o,r),c=1+7*(t-1)+s+i,l,u;return c<=0?(l=e-1,u=HM(l)+c):c>HM(e)?(l=e+1,u=c-HM(e)):(l=e,u=c),{year:l,dayOfYear:u}}function iz(e,t,n){var o=Jv(e.year(),t,n),r=Math.floor((e.dayOfYear()-o-1)/7)+1,s,i;return r<1?(i=e.year()-1,s=r+Dc(i,t,n)):r>Dc(e.year(),t,n)?(s=r-Dc(e.year(),t,n),i=e.year()+1):(i=e.year(),s=r),{week:s,year:i}}function Dc(e,t,n){var o=Jv(e,t,n),r=Jv(e+1,t,n);return(HM(e)-o+r)/7}St("w",["ww",2],"wo","week");St("W",["WW",2],"Wo","isoWeek");ut("w",Rn,Ph);ut("ww",Rn,Ms);ut("W",Rn,Ph);ut("WW",Rn,Ms);D3(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=f0(e)});function fct(e){return iz(e,this._week.dow,this._week.doy).week}var bct={dow:0,doy:6};function hct(){return this._week.dow}function mct(){return this._week.doy}function Mct(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function gct(e){var t=iz(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}St("d",0,"do","day");St("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});St("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});St("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});St("e",0,0,"weekday");St("E",0,0,"isoWeekday");ut("d",Rn);ut("e",Rn);ut("E",Rn);ut("dd",function(e,t){return t.weekdaysMinRegex(e)});ut("ddd",function(e,t){return t.weekdaysShortRegex(e)});ut("dddd",function(e,t){return t.weekdaysRegex(e)});D3(["dd","ddd","dddd"],function(e,t,n,o){var r=n._locale.weekdaysParse(e,o,n._strict);r!=null?t.d=r:o0(n).invalidWeekday=e});D3(["d","e","E"],function(e,t,n,o){t[o]=f0(e)});function zct(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Oct(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function J7(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Act="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),dpe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),yct="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),vct=I3,xct=I3,_ct=I3;function wct(e,t){var n=Li(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?J7(n,this._week.dow):e?n[e.day()]:n}function kct(e){return e===!0?J7(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function qct(e){return e===!0?J7(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Sct(e,t,n){var o,r,s,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)s=tc([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(s,"").toLocaleLowerCase();return n?t==="dddd"?(r=a1.call(this._weekdaysParse,i),r!==-1?r:null):t==="ddd"?(r=a1.call(this._shortWeekdaysParse,i),r!==-1?r:null):(r=a1.call(this._minWeekdaysParse,i),r!==-1?r:null):t==="dddd"?(r=a1.call(this._weekdaysParse,i),r!==-1||(r=a1.call(this._shortWeekdaysParse,i),r!==-1)?r:(r=a1.call(this._minWeekdaysParse,i),r!==-1?r:null)):t==="ddd"?(r=a1.call(this._shortWeekdaysParse,i),r!==-1||(r=a1.call(this._weekdaysParse,i),r!==-1)?r:(r=a1.call(this._minWeekdaysParse,i),r!==-1?r:null)):(r=a1.call(this._minWeekdaysParse,i),r!==-1||(r=a1.call(this._weekdaysParse,i),r!==-1)?r:(r=a1.call(this._shortWeekdaysParse,i),r!==-1?r:null))}function Cct(e,t,n){var o,r,s;if(this._weekdaysParseExact)return Sct.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(r=tc([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[o]=new RegExp(s.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[o].test(e))return o;if(n&&t==="ddd"&&this._shortWeekdaysParse[o].test(e))return o;if(n&&t==="dd"&&this._minWeekdaysParse[o].test(e))return o;if(!n&&this._weekdaysParse[o].test(e))return o}}function Rct(e){if(!this.isValid())return e!=null?this:NaN;var t=rz(this,"Day");return e!=null?(e=zct(e,this.localeData()),this.add(e-t,"d")):t}function Wct(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Tct(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Oct(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Ect(e){return this._weekdaysParseExact?(E0(this,"_weekdaysRegex")||ej.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(E0(this,"_weekdaysRegex")||(this._weekdaysRegex=vct),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Bct(e){return this._weekdaysParseExact?(E0(this,"_weekdaysRegex")||ej.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(E0(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=xct),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Nct(e){return this._weekdaysParseExact?(E0(this,"_weekdaysRegex")||ej.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(E0(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=_ct),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ej(){function e(d,p){return p.length-d.length}var t=[],n=[],o=[],r=[],s,i,c,l,u;for(s=0;s<7;s++)i=tc([2e3,1]).day(s),c=Ic(this.weekdaysMin(i,"")),l=Ic(this.weekdaysShort(i,"")),u=Ic(this.weekdays(i,"")),t.push(c),n.push(l),o.push(u),r.push(c),r.push(l),r.push(u);t.sort(e),n.sort(e),o.sort(e),r.sort(e),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function tj(){return this.hours()%12||12}function Lct(){return this.hours()||24}St("H",["HH",2],0,"hour");St("h",["hh",2],0,tj);St("k",["kk",2],0,Lct);St("hmm",0,0,function(){return""+tj.apply(this)+$a(this.minutes(),2)});St("hmmss",0,0,function(){return""+tj.apply(this)+$a(this.minutes(),2)+$a(this.seconds(),2)});St("Hmm",0,0,function(){return""+this.hours()+$a(this.minutes(),2)});St("Hmmss",0,0,function(){return""+this.hours()+$a(this.minutes(),2)+$a(this.seconds(),2)});function ppe(e,t){St(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}ppe("a",!0);ppe("A",!1);function fpe(e,t){return t._meridiemParse}ut("a",fpe);ut("A",fpe);ut("H",Rn,Z7);ut("h",Rn,Ph);ut("k",Rn,Ph);ut("HH",Rn,Ms);ut("hh",Rn,Ms);ut("kk",Rn,Ms);ut("hmm",tpe);ut("hmmss",npe);ut("Hmm",tpe);ut("Hmmss",npe);an(["H","HH"],q1);an(["k","kk"],function(e,t,n){var o=f0(e);t[q1]=o===24?0:o});an(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});an(["h","hh"],function(e,t,n){t[q1]=f0(e),o0(n).bigHour=!0});an("hmm",function(e,t,n){var o=e.length-2;t[q1]=f0(e.substr(0,o)),t[zi]=f0(e.substr(o)),o0(n).bigHour=!0});an("hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[q1]=f0(e.substr(0,o)),t[zi]=f0(e.substr(o,2)),t[Sc]=f0(e.substr(r)),o0(n).bigHour=!0});an("Hmm",function(e,t,n){var o=e.length-2;t[q1]=f0(e.substr(0,o)),t[zi]=f0(e.substr(o))});an("Hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[q1]=f0(e.substr(0,o)),t[zi]=f0(e.substr(o,2)),t[Sc]=f0(e.substr(r))});function jct(e){return(e+"").toLowerCase().charAt(0)==="p"}var Pct=/[ap]\.?m?\.?/i,Ict=Ih("Hours",!0);function Dct(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var bpe={calendar:Sat,longDateFormat:Tat,invalidDate:Bat,ordinal:Lat,dayOfMonthOrdinalParse:jat,relativeTime:Iat,months:nct,monthsShort:spe,week:bct,weekdays:Act,weekdaysMin:yct,weekdaysShort:dpe,meridiemParse:Pct},En={},Em={},az;function Fct(e,t){var n,o=Math.min(e.length,t.length);for(n=0;n0;){if(r=yw(s.slice(0,n).join("-")),r)return r;if(o&&o.length>=n&&Fct(s,o)>=n-1)break;n--}t++}return az}function Vct(e){return!!(e&&e.match("^[^/\\\\]*$"))}function yw(e){var t=null,n;if(En[e]===void 0&&typeof W4<"u"&&W4&&W4.exports&&Vct(e))try{t=az._abbr,n=require,n("./locale/"+e),xu(t)}catch{En[e]=null}return En[e]}function xu(e,t){var n;return e&&(gr(t)?n=Al(e):n=nj(e,t),n?az=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),az._abbr}function nj(e,t){if(t!==null){var n,o=bpe;if(t.abbr=e,En[e]!=null)Zde("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=En[e]._config;else if(t.parentLocale!=null)if(En[t.parentLocale]!=null)o=En[t.parentLocale]._config;else if(n=yw(t.parentLocale),n!=null)o=n._config;else return Em[t.parentLocale]||(Em[t.parentLocale]=[]),Em[t.parentLocale].push({name:e,config:t}),null;return En[e]=new U7(xW(o,t)),Em[e]&&Em[e].forEach(function(r){nj(r.name,r.config)}),xu(e),En[e]}else return delete En[e],null}function Hct(e,t){if(t!=null){var n,o,r=bpe;En[e]!=null&&En[e].parentLocale!=null?En[e].set(xW(En[e]._config,t)):(o=yw(e),o!=null&&(r=o._config),t=xW(r,t),o==null&&(t.abbr=e),n=new U7(t),n.parentLocale=En[e],En[e]=n),xu(e)}else En[e]!=null&&(En[e].parentLocale!=null?(En[e]=En[e].parentLocale,e===xu()&&xu(e)):En[e]!=null&&delete En[e]);return En[e]}function Al(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return az;if(!Li(e)){if(t=yw(e),t)return t;e=[e]}return $ct(e)}function Uct(){return _W(En)}function oj(e){var t,n=e._a;return n&&o0(e).overflow===-2&&(t=n[qc]<0||n[qc]>11?qc:n[ga]<1||n[ga]>Q7(n[jo],n[qc])?ga:n[q1]<0||n[q1]>24||n[q1]===24&&(n[zi]!==0||n[Sc]!==0||n[op]!==0)?q1:n[zi]<0||n[zi]>59?zi:n[Sc]<0||n[Sc]>59?Sc:n[op]<0||n[op]>999?op:-1,o0(e)._overflowDayOfYear&&(tga)&&(t=ga),o0(e)._overflowWeeks&&t===-1&&(t=Yat),o0(e)._overflowWeekday&&t===-1&&(t=Zat),o0(e).overflow=t),e}var Xct=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Gct=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Kct=/Z|[+-]\d\d(?::?\d\d)?/,vA=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],nS=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Yct=/^\/?Date\((-?\d+)/i,Zct=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Qct={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function hpe(e){var t,n,o=e._i,r=Xct.exec(o)||Gct.exec(o),s,i,c,l,u=vA.length,d=nS.length;if(r){for(o0(e).iso=!0,t=0,n=u;tHM(i)||e._dayOfYear===0)&&(o0(e)._overflowDayOfYear=!0),n=sz(i,0,e._dayOfYear),e._a[qc]=n.getUTCMonth(),e._a[ga]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[q1]===24&&e._a[zi]===0&&e._a[Sc]===0&&e._a[op]===0&&(e._nextDay=!0,e._a[q1]=0),e._d=(e._useUTC?sz:pct).apply(null,o),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[q1]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==s&&(o0(e).weekdayMismatch=!0)}}function ilt(e){var t,n,o,r,s,i,c,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(s=1,i=4,n=rb(t.GG,e._a[jo],iz(qn(),1,4).year),o=rb(t.W,1),r=rb(t.E,1),(r<1||r>7)&&(l=!0)):(s=e._locale._week.dow,i=e._locale._week.doy,u=iz(qn(),s,i),n=rb(t.gg,e._a[jo],u.year),o=rb(t.w,u.week),t.d!=null?(r=t.d,(r<0||r>6)&&(l=!0)):t.e!=null?(r=t.e+s,(t.e<0||t.e>6)&&(l=!0)):r=s),o<1||o>Dc(n,s,i)?o0(e)._overflowWeeks=!0:l!=null?o0(e)._overflowWeekday=!0:(c=upe(n,o,r,s,i),e._a[jo]=c.year,e._dayOfYear=c.dayOfYear)}Pe.ISO_8601=function(){};Pe.RFC_2822=function(){};function sj(e){if(e._f===Pe.ISO_8601){hpe(e);return}if(e._f===Pe.RFC_2822){mpe(e);return}e._a=[],o0(e).empty=!0;var t=""+e._i,n,o,r,s,i,c=t.length,l=0,u,d;for(r=Qde(e._f,e._locale).match(X7)||[],d=r.length,n=0;n0&&o0(e).unusedInput.push(i),t=t.slice(t.indexOf(o)+o.length),l+=o.length),t2[s]?(o?o0(e).empty=!1:o0(e).unusedTokens.push(s),Kat(s,o,e)):e._strict&&!o&&o0(e).unusedTokens.push(s);o0(e).charsLeftOver=c-l,t.length>0&&o0(e).unusedInput.push(t),e._a[q1]<=12&&o0(e).bigHour===!0&&e._a[q1]>0&&(o0(e).bigHour=void 0),o0(e).parsedDateParts=e._a.slice(0),o0(e).meridiem=e._meridiem,e._a[q1]=alt(e._locale,e._a[q1],e._meridiem),u=o0(e).era,u!==null&&(e._a[jo]=e._locale.erasConvertYear(u,e._a[jo])),rj(e),oj(e)}function alt(e,t,n){var o;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(o=e.isPM(n),o&&t<12&&(t+=12),!o&&t===12&&(t=0)),t)}function clt(e){var t,n,o,r,s,i,c=!1,l=e._f.length;if(l===0){o0(e).invalidFormat=!0,e._d=new Date(NaN);return}for(r=0;rthis?this:e:hw()});function zpe(e,t){var n,o;if(t.length===1&&Li(t[0])&&(t=t[0]),!t.length)return qn();for(n=t[0],o=1;othis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Slt(){if(!gr(this._isDSTShifted))return this._isDSTShifted;var e={},t;return H7(e,this),e=Mpe(e),e._a?(t=e._isUTC?tc(e._a):qn(e._a),this._isDSTShifted=this.isValid()&&Olt(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Clt(){return this.isValid()?!this._isUTC:!1}function Rlt(){return this.isValid()?this._isUTC:!1}function Ape(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Wlt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Tlt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Hi(e,t){var n=e,o=null,r,s,i;return c4(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:ol(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(o=Wlt.exec(e))?(r=o[1]==="-"?-1:1,n={y:0,d:f0(o[ga])*r,h:f0(o[q1])*r,m:f0(o[zi])*r,s:f0(o[Sc])*r,ms:f0(kW(o[op]*1e3))*r}):(o=Tlt.exec(e))?(r=o[1]==="-"?-1:1,n={y:Rd(o[2],r),M:Rd(o[3],r),w:Rd(o[4],r),d:Rd(o[5],r),h:Rd(o[6],r),m:Rd(o[7],r),s:Rd(o[8],r)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(i=Elt(qn(n.from),qn(n.to)),n={},n.ms=i.milliseconds,n.M=i.months),s=new vw(n),c4(e)&&E0(e,"_locale")&&(s._locale=e._locale),c4(e)&&E0(e,"_isValid")&&(s._isValid=e._isValid),s}Hi.fn=vw.prototype;Hi.invalid=zlt;function Rd(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function jG(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Elt(e,t){var n;return e.isValid()&&t.isValid()?(t=aj(t,e),e.isBefore(t)?n=jG(e,t):(n=jG(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function ype(e,t){return function(n,o){var r,s;return o!==null&&!isNaN(+o)&&(Zde(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=n,n=o,o=s),r=Hi(n,o),vpe(this,r,e),this}}function vpe(e,t,n,o){var r=t._milliseconds,s=kW(t._days),i=kW(t._months);e.isValid()&&(o=o??!0,i&&ape(e,rz(e,"Month")+i*n),s&&rpe(e,"Date",rz(e,"Date")+s*n),r&&e._d.setTime(e._d.valueOf()+r*n),o&&Pe.updateOffset(e,s||i))}var Blt=ype(1,"add"),Nlt=ype(-1,"subtract");function xpe(e){return typeof e=="string"||e instanceof String}function Llt(e){return ji(e)||j3(e)||xpe(e)||ol(e)||Plt(e)||jlt(e)||e===null||e===void 0}function jlt(e){var t=pp(e)&&!$7(e),n=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,s,i=o.length;for(r=0;rn.valueOf():n.valueOf()9999?a4(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):nc(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",a4(n,"Z")):a4(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Jlt(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,o,r,s;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',o=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",s=t+'[")]',this.format(n+o+r+s)}function eut(e){e||(e=this.isUtc()?Pe.defaultFormatUtc:Pe.defaultFormat);var t=a4(this,e);return this.localeData().postformat(t)}function tut(e,t){return this.isValid()&&(ji(e)&&e.isValid()||qn(e).isValid())?Hi({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function nut(e){return this.from(qn(),e)}function out(e,t){return this.isValid()&&(ji(e)&&e.isValid()||qn(e).isValid())?Hi({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function rut(e){return this.to(qn(),e)}function _pe(e){var t;return e===void 0?this._locale._abbr:(t=Al(e),t!=null&&(this._locale=t),this)}var wpe=ei("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function kpe(){return this._locale}var e5=1e3,n2=60*e5,t5=60*n2,qpe=(365*400+97)*24*t5;function o2(e,t){return(e%t+t)%t}function Spe(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-qpe:new Date(e,t,n).valueOf()}function Cpe(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-qpe:Date.UTC(e,t,n)}function sut(e){var t,n;if(e=ti(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Cpe:Spe,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=o2(t+(this._isUTC?0:this.utcOffset()*n2),t5);break;case"minute":t=this._d.valueOf(),t-=o2(t,n2);break;case"second":t=this._d.valueOf(),t-=o2(t,e5);break}return this._d.setTime(t),Pe.updateOffset(this,!0),this}function iut(e){var t,n;if(e=ti(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Cpe:Spe,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=t5-o2(t+(this._isUTC?0:this.utcOffset()*n2),t5)-1;break;case"minute":t=this._d.valueOf(),t+=n2-o2(t,n2)-1;break;case"second":t=this._d.valueOf(),t+=e5-o2(t,e5)-1;break}return this._d.setTime(t),Pe.updateOffset(this,!0),this}function aut(){return this._d.valueOf()-(this._offset||0)*6e4}function cut(){return Math.floor(this.valueOf()/1e3)}function lut(){return new Date(this.valueOf())}function uut(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function dut(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function put(){return this.isValid()?this.toISOString():null}function fut(){return V7(this)}function but(){return ru({},o0(this))}function hut(){return o0(this).overflow}function mut(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}St("N",0,0,"eraAbbr");St("NN",0,0,"eraAbbr");St("NNN",0,0,"eraAbbr");St("NNNN",0,0,"eraName");St("NNNNN",0,0,"eraNarrow");St("y",["y",1],"yo","eraYear");St("y",["yy",2],0,"eraYear");St("y",["yyy",3],0,"eraYear");St("y",["yyyy",4],0,"eraYear");ut("N",cj);ut("NN",cj);ut("NNN",cj);ut("NNNN",kut);ut("NNNNN",qut);an(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,o){var r=n._locale.erasParse(e,o,n._strict);r?o0(n).era=r:o0(n).invalidEra=e});ut("y",jh);ut("yy",jh);ut("yyy",jh);ut("yyyy",jh);ut("yo",Sut);an(["y","yy","yyy","yyyy"],jo);an(["yo"],function(e,t,n,o){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[jo]=n._locale.eraYearOrdinalParse(e,r):t[jo]=parseInt(e,10)});function Mut(e,t){var n,o,r,s=this._eras||Al("en")._eras;for(n=0,o=s.length;n=0)return s[o]}function zut(e,t){var n=e.since<=e.until?1:-1;return t===void 0?Pe(e.since).year():Pe(e.since).year()+(t-e.offset)*n}function Out(){var e,t,n,o=this.localeData().eras();for(e=0,t=o.length;es&&(t=s),Nut.call(this,e,t,n,o,r))}function Nut(e,t,n,o,r){var s=upe(e,t,n,o,r),i=sz(s.year,0,s.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}St("Q",0,"Qo","quarter");ut("Q",Jde);an("Q",function(e,t){t[qc]=(f0(e)-1)*3});function Lut(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}St("D",["DD",2],"Do","date");ut("D",Rn,Ph);ut("DD",Rn,Ms);ut("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});an(["D","DD"],ga);an("Do",function(e,t){t[ga]=f0(e.match(Rn)[0])});var Wpe=Ih("Date",!0);St("DDD",["DDDD",3],"DDDo","dayOfYear");ut("DDD",Mw);ut("DDDD",epe);an(["DDD","DDDD"],function(e,t,n){n._dayOfYear=f0(e)});function jut(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}St("m",["mm",2],0,"minute");ut("m",Rn,Z7);ut("mm",Rn,Ms);an(["m","mm"],zi);var Put=Ih("Minutes",!1);St("s",["ss",2],0,"second");ut("s",Rn,Z7);ut("ss",Rn,Ms);an(["s","ss"],Sc);var Iut=Ih("Seconds",!1);St("S",0,0,function(){return~~(this.millisecond()/100)});St(0,["SS",2],0,function(){return~~(this.millisecond()/10)});St(0,["SSS",3],0,"millisecond");St(0,["SSSS",4],0,function(){return this.millisecond()*10});St(0,["SSSSS",5],0,function(){return this.millisecond()*100});St(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});St(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});St(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});St(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ut("S",Mw,Jde);ut("SS",Mw,Ms);ut("SSS",Mw,epe);var su,Tpe;for(su="SSSS";su.length<=9;su+="S")ut(su,jh);function Dut(e,t){t[op]=f0(("0."+e)*1e3)}for(su="S";su.length<=9;su+="S")an(su,Dut);Tpe=Ih("Milliseconds",!1);St("z",0,0,"zoneAbbr");St("zz",0,0,"zoneName");function Fut(){return this._isUTC?"UTC":""}function $ut(){return this._isUTC?"Coordinated Universal Time":""}var je=P3.prototype;je.add=Blt;je.calendar=Flt;je.clone=$lt;je.diff=Ylt;je.endOf=iut;je.format=eut;je.from=tut;je.fromNow=nut;je.to=out;je.toNow=rut;je.get=Jat;je.invalidAt=hut;je.isAfter=Vlt;je.isBefore=Hlt;je.isBetween=Ult;je.isSame=Xlt;je.isSameOrAfter=Glt;je.isSameOrBefore=Klt;je.isValid=fut;je.lang=wpe;je.locale=_pe;je.localeData=kpe;je.max=flt;je.min=plt;je.parsingFlags=but;je.set=ect;je.startOf=sut;je.subtract=Nlt;je.toArray=uut;je.toObject=dut;je.toDate=lut;je.toISOString=Qlt;je.inspect=Jlt;typeof Symbol<"u"&&Symbol.for!=null&&(je[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});je.toJSON=put;je.toString=Zlt;je.unix=cut;je.valueOf=aut;je.creationData=mut;je.eraName=Out;je.eraNarrow=Aut;je.eraAbbr=yut;je.eraYear=vut;je.year=ope;je.isLeapYear=Qat;je.weekYear=Cut;je.isoWeekYear=Rut;je.quarter=je.quarters=Lut;je.month=cpe;je.daysInMonth=lct;je.week=je.weeks=Mct;je.isoWeek=je.isoWeeks=gct;je.weeksInYear=Eut;je.weeksInWeekYear=But;je.isoWeeksInYear=Wut;je.isoWeeksInISOWeekYear=Tut;je.date=Wpe;je.day=je.days=Rct;je.weekday=Wct;je.isoWeekday=Tct;je.dayOfYear=jut;je.hour=je.hours=Ict;je.minute=je.minutes=Put;je.second=je.seconds=Iut;je.millisecond=je.milliseconds=Tpe;je.utcOffset=ylt;je.utc=xlt;je.local=_lt;je.parseZone=wlt;je.hasAlignedHourOffset=klt;je.isDST=qlt;je.isLocal=Clt;je.isUtcOffset=Rlt;je.isUtc=Ape;je.isUTC=Ape;je.zoneAbbr=Fut;je.zoneName=$ut;je.dates=ei("dates accessor is deprecated. Use date instead.",Wpe);je.months=ei("months accessor is deprecated. Use month instead",cpe);je.years=ei("years accessor is deprecated. Use year instead",ope);je.zone=ei("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vlt);je.isDSTShifted=ei("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Slt);function Vut(e){return qn(e*1e3)}function Hut(){return qn.apply(null,arguments).parseZone()}function Epe(e){return e}var N0=U7.prototype;N0.calendar=Cat;N0.longDateFormat=Eat;N0.invalidDate=Nat;N0.ordinal=Pat;N0.preparse=Epe;N0.postformat=Epe;N0.relativeTime=Dat;N0.pastFuture=Fat;N0.set=qat;N0.eras=Mut;N0.erasParse=gut;N0.erasConvertYear=zut;N0.erasAbbrRegex=_ut;N0.erasNameRegex=xut;N0.erasNarrowRegex=wut;N0.months=sct;N0.monthsShort=ict;N0.monthsParse=cct;N0.monthsRegex=dct;N0.monthsShortRegex=uct;N0.week=fct;N0.firstDayOfYear=mct;N0.firstDayOfWeek=hct;N0.weekdays=wct;N0.weekdaysMin=qct;N0.weekdaysShort=kct;N0.weekdaysParse=Cct;N0.weekdaysRegex=Ect;N0.weekdaysShortRegex=Bct;N0.weekdaysMinRegex=Nct;N0.isPM=jct;N0.meridiem=Dct;function n5(e,t,n,o){var r=Al(),s=tc().set(o,t);return r[n](s,e)}function Bpe(e,t,n){if(ol(e)&&(t=e,e=void 0),e=e||"",t!=null)return n5(e,t,n,"month");var o,r=[];for(o=0;o<12;o++)r[o]=n5(e,o,n,"month");return r}function uj(e,t,n,o){typeof e=="boolean"?(ol(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,ol(t)&&(n=t,t=void 0),t=t||"");var r=Al(),s=e?r._week.dow:0,i,c=[];if(n!=null)return n5(t,(n+s)%7,o,"day");for(i=0;i<7;i++)c[i]=n5(t,(i+s)%7,o,"day");return c}function Uut(e,t){return Bpe(e,t,"months")}function Xut(e,t){return Bpe(e,t,"monthsShort")}function Gut(e,t,n){return uj(e,t,n,"weekdays")}function Kut(e,t,n){return uj(e,t,n,"weekdaysShort")}function Yut(e,t,n){return uj(e,t,n,"weekdaysMin")}xu("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=f0(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});Pe.lang=ei("moment.lang is deprecated. Use moment.locale instead.",xu);Pe.langData=ei("moment.langData is deprecated. Use moment.localeData instead.",Al);var lc=Math.abs;function Zut(){var e=this._data;return this._milliseconds=lc(this._milliseconds),this._days=lc(this._days),this._months=lc(this._months),e.milliseconds=lc(e.milliseconds),e.seconds=lc(e.seconds),e.minutes=lc(e.minutes),e.hours=lc(e.hours),e.months=lc(e.months),e.years=lc(e.years),this}function Npe(e,t,n,o){var r=Hi(t,n);return e._milliseconds+=o*r._milliseconds,e._days+=o*r._days,e._months+=o*r._months,e._bubble()}function Qut(e,t){return Npe(this,e,t,1)}function Jut(e,t){return Npe(this,e,t,-1)}function PG(e){return e<0?Math.floor(e):Math.ceil(e)}function edt(){var e=this._milliseconds,t=this._days,n=this._months,o=this._data,r,s,i,c,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=PG(SW(n)+t)*864e5,t=0,n=0),o.milliseconds=e%1e3,r=Cs(e/1e3),o.seconds=r%60,s=Cs(r/60),o.minutes=s%60,i=Cs(s/60),o.hours=i%24,t+=Cs(i/24),l=Cs(Lpe(t)),n+=l,t-=PG(SW(l)),c=Cs(n/12),n%=12,o.days=t,o.months=n,o.years=c,this}function Lpe(e){return e*4800/146097}function SW(e){return e*146097/4800}function tdt(e){if(!this.isValid())return NaN;var t,n,o=this._milliseconds;if(e=ti(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+o/864e5,n=this._months+Lpe(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(SW(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return t*24+o/36e5;case"minute":return t*1440+o/6e4;case"second":return t*86400+o/1e3;case"millisecond":return Math.floor(t*864e5)+o;default:throw new Error("Unknown unit "+e)}}function yl(e){return function(){return this.as(e)}}var jpe=yl("ms"),ndt=yl("s"),odt=yl("m"),rdt=yl("h"),sdt=yl("d"),idt=yl("w"),adt=yl("M"),cdt=yl("Q"),ldt=yl("y"),udt=jpe;function ddt(){return Hi(this)}function pdt(e){return e=ti(e),this.isValid()?this[e+"s"]():NaN}function _f(e){return function(){return this.isValid()?this._data[e]:NaN}}var fdt=_f("milliseconds"),bdt=_f("seconds"),hdt=_f("minutes"),mdt=_f("hours"),Mdt=_f("days"),gdt=_f("months"),zdt=_f("years");function Odt(){return Cs(this.days()/7)}var Mc=Math.round,Sb={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Adt(e,t,n,o,r){return r.relativeTime(t||1,!!n,e,o)}function ydt(e,t,n,o){var r=Hi(e).abs(),s=Mc(r.as("s")),i=Mc(r.as("m")),c=Mc(r.as("h")),l=Mc(r.as("d")),u=Mc(r.as("M")),d=Mc(r.as("w")),p=Mc(r.as("y")),f=s<=n.ss&&["s",s]||s0,f[4]=o,Adt.apply(null,f)}function vdt(e){return e===void 0?Mc:typeof e=="function"?(Mc=e,!0):!1}function xdt(e,t){return Sb[e]===void 0?!1:t===void 0?Sb[e]:(Sb[e]=t,e==="s"&&(Sb.ss=t-1),!0)}function _dt(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,o=Sb,r,s;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(o=Object.assign({},Sb,t),t.s!=null&&t.ss==null&&(o.ss=t.s-1)),r=this.localeData(),s=ydt(this,!n,o,r),n&&(s=r.pastFuture(+this,s)),r.postformat(s)}var oS=Math.abs;function Vf(e){return(e>0)-(e<0)||+e}function _w(){if(!this.isValid())return this.localeData().invalidDate();var e=oS(this._milliseconds)/1e3,t=oS(this._days),n=oS(this._months),o,r,s,i,c=this.asSeconds(),l,u,d,p;return c?(o=Cs(e/60),r=Cs(o/60),e%=60,o%=60,s=Cs(n/12),n%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=c<0?"-":"",u=Vf(this._months)!==Vf(c)?"-":"",d=Vf(this._days)!==Vf(c)?"-":"",p=Vf(this._milliseconds)!==Vf(c)?"-":"",l+"P"+(s?u+s+"Y":"")+(n?u+n+"M":"")+(t?d+t+"D":"")+(r||o||e?"T":"")+(r?p+r+"H":"")+(o?p+o+"M":"")+(e?p+i+"S":"")):"P0D"}var w0=vw.prototype;w0.isValid=glt;w0.abs=Zut;w0.add=Qut;w0.subtract=Jut;w0.as=tdt;w0.asMilliseconds=jpe;w0.asSeconds=ndt;w0.asMinutes=odt;w0.asHours=rdt;w0.asDays=sdt;w0.asWeeks=idt;w0.asMonths=adt;w0.asQuarters=cdt;w0.asYears=ldt;w0.valueOf=udt;w0._bubble=edt;w0.clone=ddt;w0.get=pdt;w0.milliseconds=fdt;w0.seconds=bdt;w0.minutes=hdt;w0.hours=mdt;w0.days=Mdt;w0.weeks=Odt;w0.months=gdt;w0.years=zdt;w0.humanize=_dt;w0.toISOString=_w;w0.toString=_w;w0.toJSON=_w;w0.locale=_pe;w0.localeData=kpe;w0.toIsoString=ei("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",_w);w0.lang=wpe;St("X",0,0,"unix");St("x",0,0,"valueOf");ut("x",zw);ut("X",Uat);an("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});an("x",function(e,t,n){n._d=new Date(f0(e))});//! moment.js Pe.version="2.30.1";wat(qn);Pe.fn=je;Pe.min=blt;Pe.max=hlt;Pe.now=mlt;Pe.utc=tc;Pe.unix=Vut;Pe.months=Uut;Pe.isDate=j3;Pe.locale=xu;Pe.invalid=hw;Pe.duration=Hi;Pe.isMoment=ji;Pe.weekdays=Gut;Pe.parseZone=Hut;Pe.localeData=Al;Pe.isDuration=c4;Pe.monthsShort=Xut;Pe.weekdaysMin=Yut;Pe.defineLocale=nj;Pe.updateLocale=Hct;Pe.locales=Uct;Pe.weekdaysShort=Kut;Pe.normalizeUnits=ti;Pe.relativeTimeRounding=vdt;Pe.relativeTimeThreshold=xdt;Pe.calendarFormat=Dlt;Pe.prototype=je;Pe.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const wdt=Object.freeze(Object.defineProperty({__proto__:null,default:Pe},Symbol.toStringTag,{value:"Module"}));var Ppe={exports:{}};const kdt=aee(wdt);(function(e){//! moment-timezone.js //! version : 0.5.45 //! Copyright (c) JS Foundation and other contributors @@ -351,12 +351,12 @@ Pe.version="2.30.1";wat(qn);Pe.fn=je;Pe.min=blt;Pe.max=hlt;Pe.now=mlt;Pe.utc=tc; } `,";");function RW(e){return typeof e=="string"?new Date(e):kn(e)}function $G(e,t){return t?(e%12+12)%24:e%12}function Gdt(e){return e%12||12}function WW(e){return(t,n)=>{const o={...t};return(n.type===iw||n.type===ez||n.type===aw)&&o.value!==void 0&&(o.value=o.value.toString().padStart(e,"0")),o}}function Dpe(e){var t;const n=(t=e.target?.ownerDocument.defaultView?.HTMLInputElement)!==null&&t!==void 0?t:HTMLInputElement;return e.target instanceof n?e.target.validity.valid:!1}const rp="yyyy-MM-dd'T'HH:mm:ss";function Kdt({currentDate:e,onChange:t,events:n=[],isInvalidDate:o,onMonthPreviewed:r,startOfWeek:s=0}){const i=e?RW(e):new Date,{calendar:c,viewing:l,setSelected:u,setViewing:d,isSelected:p,viewPreviousMonth:f,viewNextMonth:b}=Jst({selected:[fi(i)],viewing:fi(i),weekStartsOn:s}),[h,g]=O.useState(fi(i)),[z,y]=O.useState(!1),[x,v]=O.useState(e);return e!==x&&(v(e),u([fi(i)]),d(fi(i)),g(fi(i))),a.jsxs(Fdt,{className:"components-datetime__date",role:"application","aria-label":m("Calendar"),children:[a.jsxs($dt,{children:[a.jsx(fe,{icon:ft()?cW:yX,variant:"tertiary","aria-label":m("View previous month"),onClick:()=>{f(),g(Jq(h,1)),r?.(Vr(Jq(l,1),rp))}}),a.jsxs(Vdt,{level:3,children:[a.jsx("strong",{children:po("F",l,-l.getTimezoneOffset())})," ",po("Y",l,-l.getTimezoneOffset())]}),a.jsx(fe,{icon:ft()?yX:cW,variant:"tertiary","aria-label":m("View next month"),onClick:()=>{b(),g(i4(h,1)),r?.(Vr(i4(l,1),rp))}})]}),a.jsxs(Hdt,{onFocus:()=>y(!0),onBlur:()=>y(!1),children:[c[0][0].map(M=>a.jsx(Udt,{children:po("D",M,-M.getTimezoneOffset())},M.toString())),c[0].map(M=>M.map((A,_)=>WG(A,l)?a.jsx(Ydt,{day:A,column:_+1,isSelected:p(A),isFocusable:cat(A,h),isFocusAllowed:z,isToday:_G(A,new Date),isInvalid:o?o(A):!1,numEvents:n.filter(w=>_G(w.date,A)).length,onClick:()=>{u([A]),g(A),t?.(Vr(new Date(A.getFullYear(),A.getMonth(),A.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),rp))},onKeyDown:w=>{let k;w.key==="ArrowLeft"&&(k=yW(A,ft()?1:-1)),w.key==="ArrowRight"&&(k=yW(A,ft()?-1:1)),w.key==="ArrowUp"&&(k=_at(A,1)),w.key==="ArrowDown"&&(k=$de(A,1)),w.key==="PageUp"&&(k=Jq(A,1)),w.key==="PageDown"&&(k=i4(A,1)),w.key==="Home"&&(k=$2(A)),w.key==="End"&&(k=fi(cit(A))),k&&(w.preventDefault(),g(k),WG(k,l)||(d(k),r?.(Vr(k,rp))))}},A.toString()):null))]})]})}function Ydt({day:e,column:t,isSelected:n,isFocusable:o,isFocusAllowed:r,isToday:s,isInvalid:i,numEvents:c,onClick:l,onKeyDown:u}){const d=O.useRef();return O.useEffect(()=>{d.current&&o&&r&&d.current.focus()},[o]),a.jsx(Xdt,{ref:d,className:"components-datetime__date__day",disabled:i,tabIndex:o?0:-1,"aria-label":Zdt(e,n,c),column:t,isSelected:n,isToday:s,hasEvents:c>0,onClick:l,onKeyDown:u,children:po("j",e,-e.getTimezoneOffset())})}function Zdt(e,t,n){const{formats:o}=vl(),r=po(o.date,e,-e.getTimezoneOffset());return t&&n>0?le(a0("%1$s. Selected. There is %2$d event","%1$s. Selected. There are %2$d events",n),r,n):t?le(m("%1$s. Selected"),r):n>0?le(a0("%1$s. There is %2$d event","%1$s. There are %2$d events",n),r,n):r}const Qdt=we("div",{target:"evcr2319"})("box-sizing:border-box;font-size:",Se.fontSize,";"),TW=we("fieldset",{target:"evcr2318"})("border:0;margin:0 0 ",Ce(2*2)," 0;padding:0;&:last-child{margin-bottom:0;}"),Jdt=we("div",{target:"evcr2317"})({name:"pd0mhc",styles:"direction:ltr;display:flex"}),qw=ke("&&& ",rw,"{padding-left:",Ce(2),";padding-right:",Ce(2),";text-align:center;}",""),ept=we(T1,{target:"evcr2316"})(qw," width:",Ce(9),";&&& ",rw,"{padding-right:0;}&&& ",R3,"{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;}"),tpt=we("span",{target:"evcr2315"})("border-top:",Se.borderWidth," solid ",qe.gray[700],";border-bottom:",Se.borderWidth," solid ",qe.gray[700],";font-size:",Se.fontSize,`;line-height:calc( `,Se.controlHeight," - ",Se.borderWidth,` * 2 - );display:inline-block;`),npt=we(T1,{target:"evcr2314"})(qw," width:",Ce(9),";&&& ",rw,"{padding-left:0;}&&& ",R3,"{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0;}"),opt=we("div",{target:"evcr2313"})({name:"1ff36h2",styles:"flex-grow:1"}),rpt=we(T1,{target:"evcr2312"})(qw," width:",Ce(9),";"),spt=we(T1,{target:"evcr2311"})(qw," width:",Ce(14),";"),VG=we("div",{target:"evcr2310"})({name:"ebu3jh",styles:"text-decoration:underline dotted"}),ipt=()=>{const{timezone:e}=vl(),t=-1*(new Date().getTimezoneOffset()/60);if(Number(e.offset)===t)return null;const n=Number(e.offset)>=0?"+":"",o=e.abbr!==""&&isNaN(Number(e.abbr))?e.abbr:`UTC${n}${e.offsetFormatted}`,r=e.string.replace("_"," "),s=e.string==="UTC"?m("Coordinated Universal Time"):`(${o}) ${r}`;return r.trim().length===0?a.jsx(VG,{className:"components-datetime__timezone",children:o}):a.jsx(W1,{placement:"top",text:s,children:a.jsx(VG,{className:"components-datetime__timezone",children:o})})};function Fpe({value:e,defaultValue:t,is12Hour:n,label:o,minutesProps:r,onChange:s}){const[i={hours:new Date().getHours(),minutes:new Date().getMinutes()},c]=g3({value:e,onChange:s,defaultValue:t}),l=f(i.hours),u=Gdt(i.hours),d=h=>(g,{event:z})=>{if(!Dpe(z))return;const y=Number(g);c({...i,[h]:h==="hours"&&n?$G(y,l==="PM"):y})},p=h=>()=>{l!==h&&c({...i,hours:$G(u,h==="PM")})};function f(h){return h<12?"AM":"PM"}const b=o?TW:O.Fragment;return a.jsxs(b,{children:[o&&a.jsx(z0.VisualLabel,{as:"legend",children:o}),a.jsxs(Je,{alignment:"left",expanded:!1,children:[a.jsxs(Jdt,{className:"components-datetime__time-field components-datetime__time-field-time",children:[a.jsx(ept,{className:"components-datetime__time-field-hours-input",label:m("Hours"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:String(n?u:i.hours).padStart(2,"0"),step:1,min:n?1:0,max:n?12:23,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:d("hours"),__unstableStateReducer:WW(2)}),a.jsx(tpt,{className:"components-datetime__time-separator","aria-hidden":"true",children:":"}),a.jsx(npt,{className:$("components-datetime__time-field-minutes-input",r?.className),label:m("Minutes"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:String(i.minutes).padStart(2,"0"),step:1,min:0,max:59,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:(...h)=>{d("minutes")(...h),r?.onChange?.(...h)},__unstableStateReducer:WW(2),...r})]}),n&&a.jsxs(wn,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,isBlock:!0,label:m("Select AM or PM"),hideLabelFromVision:!0,value:l,onChange:h=>{p(h)()},children:[a.jsx(W0,{value:"AM",label:m("AM")}),a.jsx(W0,{value:"PM",label:m("PM")})]})]})]})}const apt=["dmy","mdy","ymd"];function F3({is12Hour:e,currentTime:t,onChange:n,dateOrder:o,hideLabelFromVision:r=!1}){const[s,i]=O.useState(()=>t?wG(RW(t)):new Date);O.useEffect(()=>{i(t?wG(RW(t)):new Date)},[t]);const c=[{value:"01",label:m("January")},{value:"02",label:m("February")},{value:"03",label:m("March")},{value:"04",label:m("April")},{value:"05",label:m("May")},{value:"06",label:m("June")},{value:"07",label:m("July")},{value:"08",label:m("August")},{value:"09",label:m("September")},{value:"10",label:m("October")},{value:"11",label:m("November")},{value:"12",label:m("December")}],{day:l,month:u,year:d,minutes:p,hours:f}=O.useMemo(()=>({day:Vr(s,"dd"),month:Vr(s,"MM"),year:Vr(s,"yyyy"),minutes:Vr(s,"mm"),hours:Vr(s,"HH"),am:Vr(s,"a")}),[s]),b=A=>(w,{event:k})=>{if(!Dpe(k))return;const q=Number(w),S=TG(s,{[A]:q});i(S),n?.(Vr(S,rp))},h=({hours:A,minutes:_})=>{const w=TG(s,{hours:A,minutes:_});i(w),n?.(Vr(w,rp))},g=a.jsx(rpt,{className:"components-datetime__time-field components-datetime__time-field-day",label:m("Day"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:l,step:1,min:1,max:31,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:b("date")},"day"),z=a.jsx(opt,{children:a.jsx(i0,{className:"components-datetime__time-field components-datetime__time-field-month",label:m("Month"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,value:u,options:c,onChange:A=>{const _=Xde(s,Number(A)-1);i(_),n?.(Vr(_,rp))}})},"month"),y=a.jsx(spt,{className:"components-datetime__time-field components-datetime__time-field-year",label:m("Year"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:d,step:1,min:1,max:9999,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:b("year"),__unstableStateReducer:WW(4)},"year"),x=e?"mdy":"dmy",M=(o&&apt.includes(o)?o:x).split("").map(A=>{switch(A){case"d":return g;case"m":return z;case"y":return y;default:return null}});return a.jsxs(Qdt,{className:"components-datetime__time",children:[a.jsxs(TW,{children:[r?a.jsx(Kt,{as:"legend",children:m("Time")}):a.jsx(z0.VisualLabel,{as:"legend",className:"components-datetime__time-legend",children:m("Time")}),a.jsxs(Je,{className:"components-datetime__time-wrapper",children:[a.jsx(Fpe,{value:{hours:Number(f),minutes:Number(p)},is12Hour:e,onChange:h}),a.jsx(or,{}),a.jsx(ipt,{})]})]}),a.jsxs(TW,{children:[r?a.jsx(Kt,{as:"legend",children:m("Date")}):a.jsx(z0.VisualLabel,{as:"legend",className:"components-datetime__time-legend",children:m("Date")}),a.jsx(Je,{className:"components-datetime__time-wrapper",children:M})]})]})}F3.TimeInput=Fpe;Object.assign(F3.TimeInput,{displayName:"TimePicker.TimeInput"});const cpt=we(Ye,{target:"e1p5onf00"})({name:"1khn195",styles:"box-sizing:border-box"}),lpt=()=>{};function upt({currentDate:e,is12Hour:t,dateOrder:n,isInvalidDate:o,onMonthPreviewed:r=lpt,onChange:s,events:i,startOfWeek:c},l){return a.jsx(cpt,{ref:l,className:"components-datetime",spacing:4,children:a.jsxs(a.Fragment,{children:[a.jsx(F3,{currentTime:e,onChange:s,is12Hour:t,dateOrder:n}),a.jsx(Kdt,{currentDate:e,onChange:s,isInvalidDate:o,events:i,onMonthPreviewed:r,startOfWeek:c})]})})}const dpt=O.forwardRef(upt),ppt={name:"u2jump",styles:"position:relative;pointer-events:none;&::after{content:'';position:absolute;top:0;right:0;bottom:0;left:0;}*{pointer-events:none;}"},$pe=O.createContext(!1),{Consumer:fpt,Provider:bpt}=$pe;function rr({className:e,children:t,isDisabled:n=!0,...o}){const r=x0();return a.jsx(bpt,{value:n,children:a.jsx("div",{inert:n?"true":void 0,className:n?r(ppt,e,"components-disabled"):void 0,...o,children:t})})}rr.Context=$pe;rr.Consumer=fpt;const hpt="components-draggable__invisible-drag-image",mpt="components-draggable__clone",sS=0,HG="is-dragging-components-draggable";function Vpe({children:e,onDragStart:t,onDragOver:n,onDragEnd:o,appendToOwnerDocument:r=!1,cloneClassname:s,elementId:i,transferData:c,__experimentalTransferDataType:l="text",__experimentalDragComponent:u}){const d=O.useRef(null),p=O.useRef(()=>{});function f(h){h.preventDefault(),p.current(),o&&o(h)}function b(h){const{ownerDocument:g}=h.target;h.dataTransfer.setData(l,JSON.stringify(c));const z=g.createElement("div");z.style.top="0",z.style.left="0";const y=g.createElement("div");typeof h.dataTransfer.setDragImage=="function"&&(y.classList.add(hpt),g.body.appendChild(y),h.dataTransfer.setDragImage(y,0,0)),z.classList.add(mpt),s&&z.classList.add(s);let x=0,v=0;if(d.current){x=h.clientX,v=h.clientY,z.style.transform=`translate( ${x}px, ${v}px )`;const k=g.createElement("div");k.innerHTML=d.current.innerHTML,z.appendChild(k),g.body.appendChild(z)}else{const k=g.getElementById(i),q=k.getBoundingClientRect(),S=k.parentNode,C=q.top,T=q.left;z.style.width=`${q.width+sS*2}px`;const W=k.cloneNode(!0);W.id=`clone-${i}`,x=T-sS,v=C-sS,z.style.transform=`translate( ${x}px, ${v}px )`,Array.from(W.querySelectorAll("iframe")).forEach(B=>B.parentNode?.removeChild(B)),z.appendChild(W),r?g.body.appendChild(z):S?.appendChild(z)}let M=h.clientX,A=h.clientY;function _(k){if(M===k.clientX&&A===k.clientY)return;const q=x+k.clientX-M,S=v+k.clientY-A;z.style.transform=`translate( ${q}px, ${S}px )`,M=k.clientX,A=k.clientY,x=q,v=S,n&&n(k)}const w=zB(_,16);g.addEventListener("dragover",w),g.body.classList.add(HG),t&&t(h),p.current=()=>{z&&z.parentNode&&z.parentNode.removeChild(z),y&&y.parentNode&&y.parentNode.removeChild(y),g.body.classList.remove(HG),g.removeEventListener("dragover",w)}}return O.useEffect(()=>()=>{p.current()},[]),a.jsxs(a.Fragment,{children:[e({onDraggableStart:b,onDraggableEnd:f}),u&&a.jsx("div",{className:"components-draggable-drag-component-root",style:{display:"none"},ref:d,children:u})]})}function Sw({className:e,label:t,onFilesDrop:n,onHTMLDrop:o,onDrop:r,...s}){const[i,c]=O.useState(),[l,u]=O.useState(),[d,p]=O.useState(),f=Rx({onDrop(h){const g=h.dataTransfer?av(h.dataTransfer):[],z=h.dataTransfer?.getData("text/html");z&&o?o(z):g.length&&n?n(g):r&&r(h)},onDragStart(h){c(!0);let g="default";h.dataTransfer?.types.includes("text/html")?g="html":(h.dataTransfer?.types.includes("Files")||(h.dataTransfer?av(h.dataTransfer):[]).length>0)&&(g="file"),p(g)},onDragEnd(){c(!1),p(void 0)},onDragEnter(){u(!0)},onDragLeave(){u(!1)}}),b=$("components-drop-zone",e,{"is-active":(i||l)&&(d==="file"&&n||d==="html"&&o||d==="default"&&r),"has-dragged-out":!l,"is-dragging-over-document":i,"is-dragging-over-element":l,[`is-dragging-${d}`]:!!d});return a.jsx("div",{...s,ref:f,className:b,children:a.jsx("div",{className:"components-drop-zone__content",children:a.jsxs("div",{className:"components-drop-zone__content-inner",children:[a.jsx(t0,{icon:Wh,className:"components-drop-zone__content-icon"}),a.jsx("span",{className:"components-drop-zone__content-text",children:t||m("Drop files to upload")})]})})})}function Hpe({label:e,value:t,colors:n,disableCustomColors:o,enableAlpha:r,onChange:s}){const[i,c]=O.useState(!1),l=He(Hpe,"color-list-picker-option"),u=`${l}__label`,d=`${l}__content`;return a.jsxs(a.Fragment,{children:[a.jsx(fe,{className:"components-color-list-picker__swatch-button",onClick:()=>c(p=>!p),"aria-expanded":i,"aria-controls":d,children:a.jsxs(Je,{justify:"flex-start",spacing:2,children:[t?a.jsx(vf,{colorValue:t,className:"components-color-list-picker__swatch-color"}):a.jsx(xn,{icon:Wle}),a.jsx("span",{id:u,children:e})]})}),a.jsx("div",{role:"group",id:d,"aria-labelledby":u,"aria-hidden":!i,children:i&&a.jsx(uw,{"aria-label":m("Color options"),className:"components-color-list-picker__color-picker",colors:n,value:t,clearable:!1,onChange:s,disableCustomColors:o,enableAlpha:r})})]})}function Mpt({colors:e,labels:t,value:n=[],disableCustomColors:o,enableAlpha:r,onChange:s}){return a.jsx("div",{className:"components-color-list-picker",children:t.map((i,c)=>a.jsx(Hpe,{label:i,value:n[c],colors:e,disableCustomColors:o,enableAlpha:r,onChange:l=>{const u=n.slice();u[c]=l,s(u)}},c))})}fs([bs]);function gpt(e){return!e||e.length<2?["#000","#fff"]:e.map(({color:t})=>({color:t,brightness:Tt(t).brightness()})).reduce(([t,n],o)=>[o.brightness<=t.brightness?o:t,o.brightness>=n.brightness?o:n],[{brightness:1,color:""},{brightness:0,color:""}]).map(({color:t})=>t)}function pj(e=[],t="90deg"){const n=100/e.length,o=e.map((r,s)=>`${r} ${s*n}%, ${r} ${(s+1)*n}%`).join(", ");return`linear-gradient( ${t}, ${o} )`}function zpt(e){return e.map((t,n)=>({position:n*100/(e.length-1),color:t}))}function Opt(e=[]){return e.map(({color:t})=>t)}const Apt=["#333","#CCC"];function ypt({value:e,onChange:t}){const n=!!e,o=n?e:Apt,r=pj(o),s=zpt(o);return a.jsx(vde,{disableInserter:!0,background:r,hasGradient:n,value:s,onChange:i=>{const c=Opt(i);t(c)}})}function Upe({asButtons:e,loop:t,clearable:n=!0,unsetable:o=!0,colorPalette:r,duotonePalette:s,disableCustomColors:i,disableCustomDuotone:c,value:l,onChange:u,"aria-label":d,"aria-labelledby":p,...f}){const[b,h]=O.useMemo(()=>gpt(r),[r]),g=l==="unset",z=m("Unset"),y=a.jsx(uo.Option,{value:"unset",isSelected:g,tooltipText:z,"aria-label":z,className:"components-duotone-picker__color-indicator",onClick:()=>{u(g?void 0:"unset")}},"unset"),x=s.map(({colors:A,slug:_,name:w})=>{const k={background:pj(A,"135deg"),color:"transparent"},q=w??le(m("Duotone code: %s"),_),S=w?le(m("Duotone: %s"),w):q,C=J1(A,l);return a.jsx(uo.Option,{value:A,isSelected:C,"aria-label":S,tooltipText:q,style:k,onClick:()=>{u(C?void 0:A)}},_)});let v;if(e)v={asButtons:!0};else{const A={asButtons:!1,loop:t};d?v={...A,"aria-label":d}:p?v={...A,"aria-labelledby":p}:v={...A,"aria-label":m("Custom color picker.")}}const M=o?[y,...x]:x;return a.jsx(uo,{...f,...v,options:M,actions:!!n&&a.jsx(uo.ButtonAction,{onClick:()=>u(void 0),children:m("Clear")}),children:a.jsx(or,{paddingTop:M.length===0?0:4,children:a.jsxs(Ye,{spacing:3,children:[!i&&!c&&a.jsx(ypt,{value:g?void 0:l,onChange:u}),!c&&a.jsx(Mpt,{labels:[m("Shadows"),m("Highlights")],colors:r,value:g?void 0:l,disableCustomColors:i,enableAlpha:!0,onChange:A=>{A[0]||(A[0]=b),A[1]||(A[1]=h);const _=A.length>=2?A:void 0;u(_)}})]})})})}function Xpe({values:e}){return e?a.jsx(vf,{colorValue:pj(e,"135deg")}):a.jsx(xn,{icon:Wle})}function vpt(e,t){const{href:n,children:o,className:r,rel:s="",...i}=e,c=[...new Set([...s.split(" "),"external","noreferrer","noopener"].filter(Boolean))].join(" "),l=$("components-external-link",r),u=!!n?.startsWith("#"),d=p=>{u&&p.preventDefault(),e.onClick&&e.onClick(p)};return a.jsxs("a",{...i,className:l,href:n,onClick:d,target:"_blank",rel:c,ref:t,children:[a.jsx("span",{className:"components-external-link__contents",children:o}),a.jsx("span",{className:"components-external-link__icon","aria-label":m("(opens in a new tab)"),children:"↗"})]})}const S1=O.forwardRef(vpt),o5={width:200,height:170},xpt=["avi","mpg","mpeg","mov","mp4","m4v","ogg","ogv","webm","wmv"];function _pt(e=""){const t=e.split(".");return t[t.length-1]}function wpt(e=""){return e?e.startsWith("data:video/")||xpt.includes(_pt(e)):!1}function UG(e){return Math.round(e*100)}const kpt=we("div",{target:"eeew7dm8"})({name:"jqnsxy",styles:"background-color:transparent;display:flex;text-align:center;width:100%"}),qpt=we("div",{target:"eeew7dm7"})("align-items:center;border-radius:",Se.radiusSmall,";cursor:pointer;display:inline-flex;justify-content:center;margin:auto;position:relative;height:100%;&:after{border-radius:inherit;bottom:0;box-shadow:inset 0 0 0 1px rgba( 0, 0, 0, 0.1 );content:'';left:0;pointer-events:none;position:absolute;right:0;top:0;}img,video{border-radius:inherit;box-sizing:border-box;display:block;height:auto;margin:0;max-height:100%;max-width:100%;pointer-events:none;user-select:none;width:auto;}"),Spt=we("div",{target:"eeew7dm6"})("background:",qe.gray[100],";border-radius:inherit;box-sizing:border-box;height:",o5.height,"px;max-width:280px;min-width:",o5.width,"px;width:100%;"),Cpt=we(H0,{target:"eeew7dm5"})({name:"1d3w5wq",styles:"width:100%"});var Rpt={name:"1mn7kwb",styles:"padding-bottom:1em"};const Wpt=({__nextHasNoMarginBottom:e})=>e?void 0:Rpt;var Tpt={name:"1mn7kwb",styles:"padding-bottom:1em"};const Ept=({hasHelpText:e=!1})=>e?Tpt:void 0,Bpt=we(Q0,{target:"eeew7dm4"})("max-width:320px;padding-top:1em;",Ept," ",Wpt,";"),Npt=we("div",{target:"eeew7dm3"})("left:50%;overflow:hidden;pointer-events:none;position:absolute;top:50%;transform:translate3d( -50%, -50%, 0 );z-index:1;@media not ( prefers-reduced-motion ){transition:opacity 100ms linear;}opacity:",({showOverlay:e})=>e?1:0,";"),Gpe=we("div",{target:"eeew7dm2"})({name:"1yzbo24",styles:"background:rgba( 255, 255, 255, 0.4 );backdrop-filter:blur( 16px ) saturate( 180% );position:absolute;transform:translateZ( 0 )"}),XG=we(Gpe,{target:"eeew7dm1"})({name:"1sw8ur",styles:"height:1px;left:1px;right:1px"}),GG=we(Gpe,{target:"eeew7dm0"})({name:"188vg4t",styles:"width:1px;top:1px;bottom:1px"}),Lpt=0,jpt=100,Ppt=()=>{};function Ipt({__nextHasNoMarginBottom:e,hasHelpText:t,onChange:n=Ppt,point:o={x:.5,y:.5}}){const r=UG(o.x),s=UG(o.y),i=(c,l)=>{if(c===void 0)return;const u=parseInt(c,10);isNaN(u)||n({...o,[l]:u/100})};return a.jsxs(Bpt,{className:"focal-point-picker__controls",__nextHasNoMarginBottom:e,hasHelpText:t,gap:4,children:[a.jsx(KG,{label:m("Left"),"aria-label":m("Focal point left position"),value:[r,"%"].join(""),onChange:c=>i(c,"x"),dragDirection:"e"}),a.jsx(KG,{label:m("Top"),"aria-label":m("Focal point top position"),value:[s,"%"].join(""),onChange:c=>i(c,"y"),dragDirection:"s"})]})}function KG(e){return a.jsx(Cpt,{__next40pxDefaultSize:!0,className:"focal-point-picker__controls-position-unit-control",labelPosition:"top",max:jpt,min:Lpt,units:[{value:"%",label:"%"}],...e})}const Dpt=we("div",{target:"e19snlhg0"})("background-color:transparent;cursor:grab;height:40px;margin:-20px 0 0 -20px;position:absolute;user-select:none;width:40px;will-change:transform;z-index:10000;background:rgba( 255, 255, 255, 0.4 );border:1px solid rgba( 255, 255, 255, 0.4 );border-radius:",Se.radiusRound,";backdrop-filter:blur( 16px ) saturate( 180% );box-shadow:rgb( 0 0 0 / 10% ) 0px 0px 8px;@media not ( prefers-reduced-motion ){transition:transform 100ms linear;}",({isDragging:e})=>e&&` + );display:inline-block;`),npt=we(T1,{target:"evcr2314"})(qw," width:",Ce(9),";&&& ",rw,"{padding-left:0;}&&& ",R3,"{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0;}"),opt=we("div",{target:"evcr2313"})({name:"1ff36h2",styles:"flex-grow:1"}),rpt=we(T1,{target:"evcr2312"})(qw," width:",Ce(9),";"),spt=we(T1,{target:"evcr2311"})(qw," width:",Ce(14),";"),VG=we("div",{target:"evcr2310"})({name:"ebu3jh",styles:"text-decoration:underline dotted"}),ipt=()=>{const{timezone:e}=vl(),t=-1*(new Date().getTimezoneOffset()/60);if(Number(e.offset)===t)return null;const n=Number(e.offset)>=0?"+":"",o=e.abbr!==""&&isNaN(Number(e.abbr))?e.abbr:`UTC${n}${e.offsetFormatted}`,r=e.string.replace("_"," "),s=e.string==="UTC"?m("Coordinated Universal Time"):`(${o}) ${r}`;return r.trim().length===0?a.jsx(VG,{className:"components-datetime__timezone",children:o}):a.jsx(W1,{placement:"top",text:s,children:a.jsx(VG,{className:"components-datetime__timezone",children:o})})};function Fpe({value:e,defaultValue:t,is12Hour:n,label:o,minutesProps:r,onChange:s}){const[i={hours:new Date().getHours(),minutes:new Date().getMinutes()},c]=g3({value:e,onChange:s,defaultValue:t}),l=f(i.hours),u=Gdt(i.hours),d=h=>(g,{event:z})=>{if(!Dpe(z))return;const y=Number(g);c({...i,[h]:h==="hours"&&n?$G(y,l==="PM"):y})},p=h=>()=>{l!==h&&c({...i,hours:$G(u,h==="PM")})};function f(h){return h<12?"AM":"PM"}const b=o?TW:O.Fragment;return a.jsxs(b,{children:[o&&a.jsx(z0.VisualLabel,{as:"legend",children:o}),a.jsxs(Je,{alignment:"left",expanded:!1,children:[a.jsxs(Jdt,{className:"components-datetime__time-field components-datetime__time-field-time",children:[a.jsx(ept,{className:"components-datetime__time-field-hours-input",label:m("Hours"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:String(n?u:i.hours).padStart(2,"0"),step:1,min:n?1:0,max:n?12:23,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:d("hours"),__unstableStateReducer:WW(2)}),a.jsx(tpt,{className:"components-datetime__time-separator","aria-hidden":"true",children:":"}),a.jsx(npt,{className:$("components-datetime__time-field-minutes-input",r?.className),label:m("Minutes"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:String(i.minutes).padStart(2,"0"),step:1,min:0,max:59,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:(...h)=>{d("minutes")(...h),r?.onChange?.(...h)},__unstableStateReducer:WW(2),...r})]}),n&&a.jsxs(wn,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,isBlock:!0,label:m("Select AM or PM"),hideLabelFromVision:!0,value:l,onChange:h=>{p(h)()},children:[a.jsx(W0,{value:"AM",label:m("AM")}),a.jsx(W0,{value:"PM",label:m("PM")})]})]})]})}const apt=["dmy","mdy","ymd"];function F3({is12Hour:e,currentTime:t,onChange:n,dateOrder:o,hideLabelFromVision:r=!1}){const[s,i]=O.useState(()=>t?wG(RW(t)):new Date);O.useEffect(()=>{i(t?wG(RW(t)):new Date)},[t]);const c=[{value:"01",label:m("January")},{value:"02",label:m("February")},{value:"03",label:m("March")},{value:"04",label:m("April")},{value:"05",label:m("May")},{value:"06",label:m("June")},{value:"07",label:m("July")},{value:"08",label:m("August")},{value:"09",label:m("September")},{value:"10",label:m("October")},{value:"11",label:m("November")},{value:"12",label:m("December")}],{day:l,month:u,year:d,minutes:p,hours:f}=O.useMemo(()=>({day:Vr(s,"dd"),month:Vr(s,"MM"),year:Vr(s,"yyyy"),minutes:Vr(s,"mm"),hours:Vr(s,"HH"),am:Vr(s,"a")}),[s]),b=A=>(w,{event:k})=>{if(!Dpe(k))return;const q=Number(w),S=TG(s,{[A]:q});i(S),n?.(Vr(S,rp))},h=({hours:A,minutes:_})=>{const w=TG(s,{hours:A,minutes:_});i(w),n?.(Vr(w,rp))},g=a.jsx(rpt,{className:"components-datetime__time-field components-datetime__time-field-day",label:m("Day"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:l,step:1,min:1,max:31,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:b("date")},"day"),z=a.jsx(opt,{children:a.jsx(i0,{className:"components-datetime__time-field components-datetime__time-field-month",label:m("Month"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,value:u,options:c,onChange:A=>{const _=Xde(s,Number(A)-1);i(_),n?.(Vr(_,rp))}})},"month"),y=a.jsx(spt,{className:"components-datetime__time-field components-datetime__time-field-year",label:m("Year"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:d,step:1,min:1,max:9999,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:b("year"),__unstableStateReducer:WW(4)},"year"),x=e?"mdy":"dmy",M=(o&&apt.includes(o)?o:x).split("").map(A=>{switch(A){case"d":return g;case"m":return z;case"y":return y;default:return null}});return a.jsxs(Qdt,{className:"components-datetime__time",children:[a.jsxs(TW,{children:[r?a.jsx(Kt,{as:"legend",children:m("Time")}):a.jsx(z0.VisualLabel,{as:"legend",className:"components-datetime__time-legend",children:m("Time")}),a.jsxs(Je,{className:"components-datetime__time-wrapper",children:[a.jsx(Fpe,{value:{hours:Number(f),minutes:Number(p)},is12Hour:e,onChange:h}),a.jsx(or,{}),a.jsx(ipt,{})]})]}),a.jsxs(TW,{children:[r?a.jsx(Kt,{as:"legend",children:m("Date")}):a.jsx(z0.VisualLabel,{as:"legend",className:"components-datetime__time-legend",children:m("Date")}),a.jsx(Je,{className:"components-datetime__time-wrapper",children:M})]})]})}F3.TimeInput=Fpe;Object.assign(F3.TimeInput,{displayName:"TimePicker.TimeInput"});const cpt=we(Ye,{target:"e1p5onf00"})({name:"1khn195",styles:"box-sizing:border-box"}),lpt=()=>{};function upt({currentDate:e,is12Hour:t,dateOrder:n,isInvalidDate:o,onMonthPreviewed:r=lpt,onChange:s,events:i,startOfWeek:c},l){return a.jsx(cpt,{ref:l,className:"components-datetime",spacing:4,children:a.jsxs(a.Fragment,{children:[a.jsx(F3,{currentTime:e,onChange:s,is12Hour:t,dateOrder:n}),a.jsx(Kdt,{currentDate:e,onChange:s,isInvalidDate:o,events:i,onMonthPreviewed:r,startOfWeek:c})]})})}const dpt=O.forwardRef(upt),ppt={name:"u2jump",styles:"position:relative;pointer-events:none;&::after{content:'';position:absolute;top:0;right:0;bottom:0;left:0;}*{pointer-events:none;}"},$pe=O.createContext(!1),{Consumer:fpt,Provider:bpt}=$pe;function rr({className:e,children:t,isDisabled:n=!0,...o}){const r=x0();return a.jsx(bpt,{value:n,children:a.jsx("div",{inert:n?"true":void 0,className:n?r(ppt,e,"components-disabled"):void 0,...o,children:t})})}rr.Context=$pe;rr.Consumer=fpt;const hpt="components-draggable__invisible-drag-image",mpt="components-draggable__clone",sS=0,HG="is-dragging-components-draggable";function Vpe({children:e,onDragStart:t,onDragOver:n,onDragEnd:o,appendToOwnerDocument:r=!1,cloneClassname:s,elementId:i,transferData:c,__experimentalTransferDataType:l="text",__experimentalDragComponent:u}){const d=O.useRef(null),p=O.useRef(()=>{});function f(h){h.preventDefault(),p.current(),o&&o(h)}function b(h){const{ownerDocument:g}=h.target;h.dataTransfer.setData(l,JSON.stringify(c));const z=g.createElement("div");z.style.top="0",z.style.left="0";const y=g.createElement("div");typeof h.dataTransfer.setDragImage=="function"&&(y.classList.add(hpt),g.body.appendChild(y),h.dataTransfer.setDragImage(y,0,0)),z.classList.add(mpt),s&&z.classList.add(s);let x=0,v=0;if(d.current){x=h.clientX,v=h.clientY,z.style.transform=`translate( ${x}px, ${v}px )`;const k=g.createElement("div");k.innerHTML=d.current.innerHTML,z.appendChild(k),g.body.appendChild(z)}else{const k=g.getElementById(i),q=k.getBoundingClientRect(),S=k.parentNode,C=q.top,T=q.left;z.style.width=`${q.width+sS*2}px`;const W=k.cloneNode(!0);W.id=`clone-${i}`,x=T-sS,v=C-sS,z.style.transform=`translate( ${x}px, ${v}px )`,Array.from(W.querySelectorAll("iframe")).forEach(B=>B.parentNode?.removeChild(B)),z.appendChild(W),r?g.body.appendChild(z):S?.appendChild(z)}let M=h.clientX,A=h.clientY;function _(k){if(M===k.clientX&&A===k.clientY)return;const q=x+k.clientX-M,S=v+k.clientY-A;z.style.transform=`translate( ${q}px, ${S}px )`,M=k.clientX,A=k.clientY,x=q,v=S,n&&n(k)}const w=zB(_,16);g.addEventListener("dragover",w),g.body.classList.add(HG),t&&t(h),p.current=()=>{z&&z.parentNode&&z.parentNode.removeChild(z),y&&y.parentNode&&y.parentNode.removeChild(y),g.body.classList.remove(HG),g.removeEventListener("dragover",w)}}return O.useEffect(()=>()=>{p.current()},[]),a.jsxs(a.Fragment,{children:[e({onDraggableStart:b,onDraggableEnd:f}),u&&a.jsx("div",{className:"components-draggable-drag-component-root",style:{display:"none"},ref:d,children:u})]})}function Sw({className:e,label:t,onFilesDrop:n,onHTMLDrop:o,onDrop:r,...s}){const[i,c]=O.useState(),[l,u]=O.useState(),[d,p]=O.useState(),f=Rx({onDrop(h){const g=h.dataTransfer?av(h.dataTransfer):[],z=h.dataTransfer?.getData("text/html");z&&o?o(z):g.length&&n?n(g):r&&r(h)},onDragStart(h){c(!0);let g="default";h.dataTransfer?.types.includes("text/html")?g="html":(h.dataTransfer?.types.includes("Files")||(h.dataTransfer?av(h.dataTransfer):[]).length>0)&&(g="file"),p(g)},onDragEnd(){c(!1),p(void 0)},onDragEnter(){u(!0)},onDragLeave(){u(!1)}}),b=$("components-drop-zone",e,{"is-active":(i||l)&&(d==="file"&&n||d==="html"&&o||d==="default"&&r),"has-dragged-out":!l,"is-dragging-over-document":i,"is-dragging-over-element":l,[`is-dragging-${d}`]:!!d});return a.jsx("div",{...s,ref:f,className:b,children:a.jsx("div",{className:"components-drop-zone__content",children:a.jsxs("div",{className:"components-drop-zone__content-inner",children:[a.jsx(t0,{icon:Wh,className:"components-drop-zone__content-icon"}),a.jsx("span",{className:"components-drop-zone__content-text",children:t||m("Drop files to upload")})]})})})}function Hpe({label:e,value:t,colors:n,disableCustomColors:o,enableAlpha:r,onChange:s}){const[i,c]=O.useState(!1),l=He(Hpe,"color-list-picker-option"),u=`${l}__label`,d=`${l}__content`;return a.jsxs(a.Fragment,{children:[a.jsx(fe,{className:"components-color-list-picker__swatch-button",onClick:()=>c(p=>!p),"aria-expanded":i,"aria-controls":d,children:a.jsxs(Je,{justify:"flex-start",spacing:2,children:[t?a.jsx(vf,{colorValue:t,className:"components-color-list-picker__swatch-color"}):a.jsx(xn,{icon:Wle}),a.jsx("span",{id:u,children:e})]})}),a.jsx("div",{role:"group",id:d,"aria-labelledby":u,"aria-hidden":!i,children:i&&a.jsx(uw,{"aria-label":m("Color options"),className:"components-color-list-picker__color-picker",colors:n,value:t,clearable:!1,onChange:s,disableCustomColors:o,enableAlpha:r})})]})}function Mpt({colors:e,labels:t,value:n=[],disableCustomColors:o,enableAlpha:r,onChange:s}){return a.jsx("div",{className:"components-color-list-picker",children:t.map((i,c)=>a.jsx(Hpe,{label:i,value:n[c],colors:e,disableCustomColors:o,enableAlpha:r,onChange:l=>{const u=n.slice();u[c]=l,s(u)}},c))})}bs([hs]);function gpt(e){return!e||e.length<2?["#000","#fff"]:e.map(({color:t})=>({color:t,brightness:Tt(t).brightness()})).reduce(([t,n],o)=>[o.brightness<=t.brightness?o:t,o.brightness>=n.brightness?o:n],[{brightness:1,color:""},{brightness:0,color:""}]).map(({color:t})=>t)}function pj(e=[],t="90deg"){const n=100/e.length,o=e.map((r,s)=>`${r} ${s*n}%, ${r} ${(s+1)*n}%`).join(", ");return`linear-gradient( ${t}, ${o} )`}function zpt(e){return e.map((t,n)=>({position:n*100/(e.length-1),color:t}))}function Opt(e=[]){return e.map(({color:t})=>t)}const Apt=["#333","#CCC"];function ypt({value:e,onChange:t}){const n=!!e,o=n?e:Apt,r=pj(o),s=zpt(o);return a.jsx(vde,{disableInserter:!0,background:r,hasGradient:n,value:s,onChange:i=>{const c=Opt(i);t(c)}})}function Upe({asButtons:e,loop:t,clearable:n=!0,unsetable:o=!0,colorPalette:r,duotonePalette:s,disableCustomColors:i,disableCustomDuotone:c,value:l,onChange:u,"aria-label":d,"aria-labelledby":p,...f}){const[b,h]=O.useMemo(()=>gpt(r),[r]),g=l==="unset",z=m("Unset"),y=a.jsx(uo.Option,{value:"unset",isSelected:g,tooltipText:z,"aria-label":z,className:"components-duotone-picker__color-indicator",onClick:()=>{u(g?void 0:"unset")}},"unset"),x=s.map(({colors:A,slug:_,name:w})=>{const k={background:pj(A,"135deg"),color:"transparent"},q=w??le(m("Duotone code: %s"),_),S=w?le(m("Duotone: %s"),w):q,C=J1(A,l);return a.jsx(uo.Option,{value:A,isSelected:C,"aria-label":S,tooltipText:q,style:k,onClick:()=>{u(C?void 0:A)}},_)});let v;if(e)v={asButtons:!0};else{const A={asButtons:!1,loop:t};d?v={...A,"aria-label":d}:p?v={...A,"aria-labelledby":p}:v={...A,"aria-label":m("Custom color picker.")}}const M=o?[y,...x]:x;return a.jsx(uo,{...f,...v,options:M,actions:!!n&&a.jsx(uo.ButtonAction,{onClick:()=>u(void 0),children:m("Clear")}),children:a.jsx(or,{paddingTop:M.length===0?0:4,children:a.jsxs(Ye,{spacing:3,children:[!i&&!c&&a.jsx(ypt,{value:g?void 0:l,onChange:u}),!c&&a.jsx(Mpt,{labels:[m("Shadows"),m("Highlights")],colors:r,value:g?void 0:l,disableCustomColors:i,enableAlpha:!0,onChange:A=>{A[0]||(A[0]=b),A[1]||(A[1]=h);const _=A.length>=2?A:void 0;u(_)}})]})})})}function Xpe({values:e}){return e?a.jsx(vf,{colorValue:pj(e,"135deg")}):a.jsx(xn,{icon:Wle})}function vpt(e,t){const{href:n,children:o,className:r,rel:s="",...i}=e,c=[...new Set([...s.split(" "),"external","noreferrer","noopener"].filter(Boolean))].join(" "),l=$("components-external-link",r),u=!!n?.startsWith("#"),d=p=>{u&&p.preventDefault(),e.onClick&&e.onClick(p)};return a.jsxs("a",{...i,className:l,href:n,onClick:d,target:"_blank",rel:c,ref:t,children:[a.jsx("span",{className:"components-external-link__contents",children:o}),a.jsx("span",{className:"components-external-link__icon","aria-label":m("(opens in a new tab)"),children:"↗"})]})}const S1=O.forwardRef(vpt),o5={width:200,height:170},xpt=["avi","mpg","mpeg","mov","mp4","m4v","ogg","ogv","webm","wmv"];function _pt(e=""){const t=e.split(".");return t[t.length-1]}function wpt(e=""){return e?e.startsWith("data:video/")||xpt.includes(_pt(e)):!1}function UG(e){return Math.round(e*100)}const kpt=we("div",{target:"eeew7dm8"})({name:"jqnsxy",styles:"background-color:transparent;display:flex;text-align:center;width:100%"}),qpt=we("div",{target:"eeew7dm7"})("align-items:center;border-radius:",Se.radiusSmall,";cursor:pointer;display:inline-flex;justify-content:center;margin:auto;position:relative;height:100%;&:after{border-radius:inherit;bottom:0;box-shadow:inset 0 0 0 1px rgba( 0, 0, 0, 0.1 );content:'';left:0;pointer-events:none;position:absolute;right:0;top:0;}img,video{border-radius:inherit;box-sizing:border-box;display:block;height:auto;margin:0;max-height:100%;max-width:100%;pointer-events:none;user-select:none;width:auto;}"),Spt=we("div",{target:"eeew7dm6"})("background:",qe.gray[100],";border-radius:inherit;box-sizing:border-box;height:",o5.height,"px;max-width:280px;min-width:",o5.width,"px;width:100%;"),Cpt=we(H0,{target:"eeew7dm5"})({name:"1d3w5wq",styles:"width:100%"});var Rpt={name:"1mn7kwb",styles:"padding-bottom:1em"};const Wpt=({__nextHasNoMarginBottom:e})=>e?void 0:Rpt;var Tpt={name:"1mn7kwb",styles:"padding-bottom:1em"};const Ept=({hasHelpText:e=!1})=>e?Tpt:void 0,Bpt=we(Q0,{target:"eeew7dm4"})("max-width:320px;padding-top:1em;",Ept," ",Wpt,";"),Npt=we("div",{target:"eeew7dm3"})("left:50%;overflow:hidden;pointer-events:none;position:absolute;top:50%;transform:translate3d( -50%, -50%, 0 );z-index:1;@media not ( prefers-reduced-motion ){transition:opacity 100ms linear;}opacity:",({showOverlay:e})=>e?1:0,";"),Gpe=we("div",{target:"eeew7dm2"})({name:"1yzbo24",styles:"background:rgba( 255, 255, 255, 0.4 );backdrop-filter:blur( 16px ) saturate( 180% );position:absolute;transform:translateZ( 0 )"}),XG=we(Gpe,{target:"eeew7dm1"})({name:"1sw8ur",styles:"height:1px;left:1px;right:1px"}),GG=we(Gpe,{target:"eeew7dm0"})({name:"188vg4t",styles:"width:1px;top:1px;bottom:1px"}),Lpt=0,jpt=100,Ppt=()=>{};function Ipt({__nextHasNoMarginBottom:e,hasHelpText:t,onChange:n=Ppt,point:o={x:.5,y:.5}}){const r=UG(o.x),s=UG(o.y),i=(c,l)=>{if(c===void 0)return;const u=parseInt(c,10);isNaN(u)||n({...o,[l]:u/100})};return a.jsxs(Bpt,{className:"focal-point-picker__controls",__nextHasNoMarginBottom:e,hasHelpText:t,gap:4,children:[a.jsx(KG,{label:m("Left"),"aria-label":m("Focal point left position"),value:[r,"%"].join(""),onChange:c=>i(c,"x"),dragDirection:"e"}),a.jsx(KG,{label:m("Top"),"aria-label":m("Focal point top position"),value:[s,"%"].join(""),onChange:c=>i(c,"y"),dragDirection:"s"})]})}function KG(e){return a.jsx(Cpt,{__next40pxDefaultSize:!0,className:"focal-point-picker__controls-position-unit-control",labelPosition:"top",max:jpt,min:Lpt,units:[{value:"%",label:"%"}],...e})}const Dpt=we("div",{target:"e19snlhg0"})("background-color:transparent;cursor:grab;height:40px;margin:-20px 0 0 -20px;position:absolute;user-select:none;width:40px;will-change:transform;z-index:10000;background:rgba( 255, 255, 255, 0.4 );border:1px solid rgba( 255, 255, 255, 0.4 );border-radius:",Se.radiusRound,";backdrop-filter:blur( 16px ) saturate( 180% );box-shadow:rgb( 0 0 0 / 10% ) 0px 0px 8px;@media not ( prefers-reduced-motion ){transition:transform 100ms linear;}",({isDragging:e})=>e&&` box-shadow: rgb( 0 0 0 / 12% ) 0px 0px 10px; transform: scale( 1.1 ); cursor: grabbing; - `,";");function Fpt({left:e="50%",top:t="50%",...n}){const o={left:e,top:t};return a.jsx(Dpt,{...n,className:"components-focal-point-picker__icon_container",style:o})}function $pt({bounds:e,...t}){return a.jsxs(Npt,{...t,className:"components-focal-point-picker__grid",style:{width:e.width,height:e.height},children:[a.jsx(XG,{style:{top:"33%"}}),a.jsx(XG,{style:{top:"66%"}}),a.jsx(GG,{style:{left:"33%"}}),a.jsx(GG,{style:{left:"66%"}})]})}function Vpt({alt:e,autoPlay:t,src:n,onLoad:o,mediaRef:r,muted:s=!0,...i}){return n?wpt(n)?a.jsx("video",{...i,autoPlay:t,className:"components-focal-point-picker__media components-focal-point-picker__media--video",loop:!0,muted:s,onLoadedData:o,ref:r,src:n}):a.jsx("img",{...i,alt:e,className:"components-focal-point-picker__media components-focal-point-picker__media--image",onLoad:o,ref:r,src:n}):a.jsx(Spt,{className:"components-focal-point-picker__media components-focal-point-picker__media--placeholder",ref:r,...i})}const Hpt=600;function Cw({__nextHasNoMarginBottom:e,autoPlay:t=!0,className:n,help:o,label:r,onChange:s,onDrag:i,onDragEnd:c,onDragStart:l,resolvePoint:u,url:d,value:p={x:.5,y:.5},...f}){const[b,h]=O.useState(p),[g,z]=O.useState(!1),{startDrag:y,endDrag:x,isDragging:v}=gne({onDragStart:L=>{_.current?.focus();const I=S(L);I&&(l?.(I,L),h(I))},onDragMove:L=>{L.preventDefault();const I=S(L);I&&(i?.(I,L),h(I))},onDragEnd:()=>{c?.(),s?.(b)}}),{x:M,y:A}=v?b:p,_=O.useRef(null),[w,k]=O.useState(o5),q=O.useRef(()=>{if(!_.current)return;const{clientWidth:L,clientHeight:I}=_.current;k(L>0&&I>0?{width:L,height:I}:{...o5})});O.useEffect(()=>{const L=q.current;if(!_.current)return;const{defaultView:I}=_.current.ownerDocument;return I?.addEventListener("resize",L),()=>I?.removeEventListener("resize",L)},[]),kB(()=>void q.current(),[]);const S=({clientX:L,clientY:I,shiftKey:P})=>{if(!_.current)return;const{top:H,left:U}=_.current.getBoundingClientRect();let X=(L-U)/w.width,Z=(I-H)/w.height;return P&&(X=Math.round(X/.1)*.1,Z=Math.round(Z/.1)*.1),C({x:X,y:Z})},C=L=>{var I;const P=(I=u?.(L))!==null&&I!==void 0?I:L;P.x=Math.max(0,Math.min(P.x,1)),P.y=Math.max(0,Math.min(P.y,1));const H=U=>Math.round(U*100)/100;return{x:H(P.x),y:H(P.y)}},T=L=>{const{code:I,shiftKey:P}=L;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(I))return;L.preventDefault();const H={x:M,y:A},U=P?.1:.01,X=I==="ArrowUp"||I==="ArrowLeft"?-1*U:U,Z=I==="ArrowUp"||I==="ArrowDown"?"y":"x";H[Z]=H[Z]+X,s?.(C(H))},W={left:M!==void 0?M*w.width:.5*w.width,top:A!==void 0?A*w.height:.5*w.height},B=$("components-focal-point-picker-control",n),E=`inspector-focal-point-picker-control-${He(Cw)}`;return yL(()=>{z(!0);const L=window.setTimeout(()=>{z(!1)},Hpt);return()=>window.clearTimeout(L)},[M,A]),a.jsxs(z0,{...f,__nextHasNoMarginBottom:e,__associatedWPComponentName:"FocalPointPicker",label:r,id:E,help:o,className:B,children:[a.jsx(kpt,{className:"components-focal-point-picker-wrapper",children:a.jsxs(qpt,{className:"components-focal-point-picker",onKeyDown:T,onMouseDown:y,onBlur:()=>{v&&x()},ref:_,role:"button",tabIndex:-1,children:[a.jsx($pt,{bounds:w,showOverlay:g}),a.jsx(Vpt,{alt:m("Media preview"),autoPlay:t,onLoad:q.current,src:d}),a.jsx(Fpt,{...W,isDragging:v})]})}),a.jsx(Ipt,{__nextHasNoMarginBottom:e,hasHelpText:!!o,point:{x:M,y:A},onChange:L=>{s?.(C(L))}})]})}function Upt(e){return/^[\d\.]+(px|em|rem|vw|vh|%|svw|lvw|dvw|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax)?$/i.test(String(e))}function Kpe(e){const[t,...n]=e;if(!t)return null;const[,o]=y0(t.size);return n.every(s=>{const[,i]=y0(s.size);return i===o})?o:null}const Xpt=we("fieldset",{target:"e8tqeku4"})({name:"1t1ytme",styles:"border:0;margin:0;padding:0"}),Gpt=we(Je,{target:"e8tqeku3"})("height:",Ce(4),";"),Kpt=we(fe,{target:"e8tqeku2"})("margin-top:",Ce(-1),";"),Ypt=we(z0.VisualLabel,{target:"e8tqeku1"})("display:flex;gap:",Ce(1),";justify-content:flex-start;margin-bottom:0;"),Zpt=we("span",{target:"e8tqeku0"})("color:",qe.gray[700],";"),YG={key:"default",name:m("Default"),value:void 0},iS={key:"custom",name:m("Custom")},Qpt=e=>{var t;const{__next40pxDefaultSize:n,fontSizes:o,value:r,disableCustomFontSizes:s,size:i,onChange:c,onSelectCustom:l}=e,u=!!Kpe(o),d=[YG,...o.map(f=>{let b;if(u){const[h]=y0(f.size);h!==void 0&&(b=String(h))}else Upt(f.size)&&(b=String(f.size));return{key:f.slug,name:f.name||f.slug,value:f.size,hint:b}}),...s?[]:[iS]],p=r?(t=d.find(f=>f.value===r))!==null&&t!==void 0?t:iS:YG;return a.jsx(Lh,{__next40pxDefaultSize:n,className:"components-font-size-picker__select",label:m("Font size"),hideLabelFromVision:!0,describedBy:le(m("Currently selected font size: %s"),p.name),options:d,value:p,showSelectedHint:!0,onChange:({selectedItem:f})=>{f===iS?l():c(f.value)},size:i})},Jpt=[m("S"),m("M"),m("L"),m("XL"),m("XXL")],Ype=[m("Small"),m("Medium"),m("Large"),m("Extra Large"),m("Extra Extra Large")],eft=e=>{const{fontSizes:t,value:n,__next40pxDefaultSize:o,size:r,onChange:s}=e;return a.jsx(wn,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:o,label:m("Font size"),hideLabelFromVision:!0,value:n,onChange:s,isBlock:!0,size:r,children:t.map((i,c)=>a.jsx(W0,{value:i.size,label:Jpt[c],"aria-label":i.name||Ype[c],showTooltip:!0},i.slug))})},tft=["px","em","rem","vw","vh"],nft=5,oft=(e,t)=>{const{__next40pxDefaultSize:n=!1,fallbackFontSize:o,fontSizes:r=[],disableCustomFontSizes:s=!1,onChange:i,size:c="default",units:l=tft,value:u,withSlider:d=!1,withReset:p=!0}=e,f=Fr({availableUnits:l}),b=r.find(k=>k.size===u),h=!!u&&!b,[g,z]=O.useState(h);let y;!s&&g?y="custom":y=r.length>nft?"select":"togglegroup";const x=O.useMemo(()=>{switch(y){case"custom":return m("Custom");case"togglegroup":if(b)return b.name||Ype[r.indexOf(b)];break;case"select":const k=Kpe(r);if(k)return`(${k})`;break}return""},[y,b,r]);if(r.length===0&&s)return null;const v=typeof u=="string"||typeof r[0]?.size=="string",[M,A]=y0(u,f),_=!!A&&["em","rem","vw","vh"].includes(A),w=u===void 0;return a.jsxs(Xpt,{ref:t,className:"components-font-size-picker",children:[a.jsx(Kt,{as:"legend",children:m("Font size")}),a.jsx(or,{children:a.jsxs(Gpt,{className:"components-font-size-picker__header",children:[a.jsxs(Ypt,{"aria-label":`${m("Size")} ${x||""}`,children:[m("Size"),x&&a.jsx(Zpt,{className:"components-font-size-picker__header__hint",children:x})]}),!s&&a.jsx(Kpt,{label:m(y==="custom"?"Use size preset":"Set custom size"),icon:kle,onClick:()=>z(!g),isPressed:y==="custom",size:"small"})]})}),a.jsxs("div",{children:[y==="select"&&a.jsx(Qpt,{__next40pxDefaultSize:n,fontSizes:r,value:u,disableCustomFontSizes:s,size:c,onChange:k=>{k===void 0?i?.(void 0):i?.(v?k:Number(k),r.find(q=>q.size===k))},onSelectCustom:()=>z(!0)}),y==="togglegroup"&&a.jsx(eft,{fontSizes:r,value:u,__next40pxDefaultSize:n,size:c,onChange:k=>{k===void 0?i?.(void 0):i?.(v?k:Number(k),r.find(q=>q.size===k))}}),y==="custom"&&a.jsxs(Q0,{className:"components-font-size-picker__custom-size-control",children:[a.jsx(Ht,{isBlock:!0,children:a.jsx(H0,{__next40pxDefaultSize:n,label:m("Custom"),labelPosition:"top",hideLabelFromVision:!0,value:u,onChange:k=>{z(!0),i?.(k===void 0?void 0:v?k:parseInt(k,10))},size:c,units:v?f:[],min:0})}),d&&a.jsx(Ht,{isBlock:!0,children:a.jsx(or,{marginX:2,marginBottom:0,children:a.jsx(T0,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:n,className:"components-font-size-picker__custom-input",label:m("Custom Size"),hideLabelFromVision:!0,value:M,initialPosition:o,withInputField:!1,onChange:k=>{z(!0),i?.(k===void 0?void 0:v?k+(A??"px"):k)},min:0,max:_?10:100,step:_?.1:1})})}),p&&a.jsx(Ht,{children:a.jsx(fe,{disabled:w,accessibleWhenDisabled:!0,onClick:()=>{i?.(void 0)},variant:"secondary",__next40pxDefaultSize:!0,size:c==="__unstable-large"||e.__next40pxDefaultSize?"default":"small",children:m("Reset")})})]})]})]})},rft=O.forwardRef(oft);function r5({accept:e,children:t,multiple:n=!1,onChange:o,onClick:r,render:s,...i}){const c=O.useRef(null),l=()=>{c.current?.click()},u=s?s({openFileDialog:l}):a.jsx(fe,{onClick:l,...i,children:t});return a.jsxs("div",{className:"components-form-file-upload",children:[u,a.jsx("input",{type:"file",ref:c,multiple:n,style:{display:"none"},accept:e,onChange:o,onClick:r,"data-testid":"form-file-upload-input"})]})}const sft=()=>{};function ift(e,t){const{className:n,checked:o,id:r,disabled:s,onChange:i=sft,...c}=e,l=$("components-form-toggle",n,{"is-checked":o,"is-disabled":s});return a.jsxs("span",{className:l,children:[a.jsx("input",{className:"components-form-toggle__input",id:r,type:"checkbox",checked:o,onChange:i,disabled:s,...c,ref:t}),a.jsx("span",{className:"components-form-toggle__track"}),a.jsx("span",{className:"components-form-toggle__thumb"})]})}const aft=O.forwardRef(ift),cft=()=>{};function Zpe({value:e,status:t,title:n,displayTransform:o,isBorderless:r=!1,disabled:s=!1,onClickRemove:i=cft,onMouseEnter:c,onMouseLeave:l,messages:u,termPosition:d,termsCount:p}){const f=He(Zpe),b=$("components-form-token-field__token",{"is-error":t==="error","is-success":t==="success","is-validating":t==="validating","is-borderless":r,"is-disabled":s}),h=()=>i({value:e}),g=o(e),z=le(m("%1$s (%2$s of %3$s)"),g,d,p);return a.jsxs("span",{className:b,onMouseEnter:c,onMouseLeave:l,title:n,children:[a.jsxs("span",{className:"components-form-token-field__token-text",id:`components-form-token-field__token-text-${f}`,children:[a.jsx(Kt,{as:"span",children:z}),a.jsx("span",{"aria-hidden":"true",children:g})]}),a.jsx(fe,{className:"components-form-token-field__remove-token",icon:zl,onClick:s?void 0:h,disabled:s,label:u.remove,"aria-describedby":`components-form-token-field__token-text-${f}`})]})}const lft=({__next40pxDefaultSize:e,hasTokens:t})=>!e&&ke("padding-top:",Ce(t?1:.5),";padding-bottom:",Ce(t?1:.5),";",""),uft=we(Q0,{target:"ehq8nmi0"})("padding:7px;",B_," ",lft,";"),dft=e=>e;function wf(e){const{autoCapitalize:t,autoComplete:n,maxLength:o,placeholder:r,label:s=m("Add item"),className:i,suggestions:c=[],maxSuggestions:l=100,value:u=[],displayTransform:d=dft,saveTransform:p=We=>We.trim(),onChange:f=()=>{},onInputChange:b=()=>{},onFocus:h=void 0,isBorderless:g=!1,disabled:z=!1,tokenizeOnSpace:y=!1,messages:x={added:m("Item added."),removed:m("Item removed."),remove:m("Remove item"),__experimentalInvalid:m("Invalid item")},__experimentalRenderItem:v,__experimentalExpandOnFocus:M=!1,__experimentalValidateInput:A=()=>!0,__experimentalShowHowTo:_=!0,__next40pxDefaultSize:w=!1,__experimentalAutoSelectFirstMatch:k=!1,__nextHasNoMarginBottom:q=!1,tokenizeOnBlur:S=!1}=Md(e);q||Re("Bottom margin styles for wp.components.FormTokenField",{since:"6.7",version:"7.0",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."});const C=He(wf),[T,W]=O.useState(""),[B,N]=O.useState(0),[E,L]=O.useState(!1),[I,P]=O.useState(!1),[H,U]=O.useState(-1),[X,Z]=O.useState(!1),ne=t1(c),oe=t1(u),Y=O.useRef(null),ee=O.useRef(null),ie=Uo(At,500);O.useEffect(()=>{E&&!be()&&se()},[E]),O.useEffect(()=>{const We=!Jr(c,ne||[]);(We||u!==oe)&&f1(We)},[c,ne,u,oe]),O.useEffect(()=>{f1()},[T]),O.useEffect(()=>{f1()},[k]),z&&E&&(L(!1),W(""));function se(){Y.current?.focus()}function be(){return Y.current===Y.current?.ownerDocument.activeElement}function ye(We){be()||We.target===ee.current?(L(!0),P(M||I)):L(!1),typeof h=="function"&&h(We)}function xe(We){if(k0()&&A(T))L(!1),S&&k0()&&Xe(T);else{if(W(""),N(0),L(!1),M){const rt=We.relatedTarget===ee.current;P(rt)}else P(!1);U(-1),Z(!1)}}function K(We){let rt=!1;if(!We.defaultPrevented){switch(We.key){case"Backspace":rt=R(Ke);break;case"Enter":rt=zt();break;case"ArrowLeft":rt=j();break;case"ArrowUp":rt=de();break;case"ArrowRight":rt=V();break;case"ArrowDown":rt=ge();break;case"Delete":rt=R(Nt);break;case"Space":y&&(rt=zt());break;case"Escape":rt=ve(We);break}rt&&We.preventDefault()}}function pe(We){let rt=!1;switch(We.key){case",":rt=Ne();break}rt&&We.preventDefault()}function G(We){We.target===ee.current&&E&&We.preventDefault()}function re(We){ot(We.value),se()}function Me(We){const rt=n0().indexOf(We);rt>=0&&(U(rt),Z(!1))}function he(We){Xe(We)}function Q(We){const rt=We.value,Ft=y?/[ ,\t]+/:/[,\t]+/,s0=rt.split(Ft),nn=s0[s0.length-1]||"";s0.length>1&&Ue(s0.slice(0,-1)),W(nn),b(nn)}function R(We){let rt=!1;return be()&&Ot()&&(We(),rt=!0),rt}function j(){let We=!1;return Ot()&&(mt(),We=!0),We}function V(){let We=!1;return Ot()&&(Mt(),We=!0),We}function de(){return U(We=>(We===0?n0(T,c,u,l,p).length:We)-1),Z(!0),!0}function ge(){return U(We=>(We+1)%n0(T,c,u,l,p).length),Z(!0),!0}function ve(We){return We.target instanceof HTMLInputElement&&(W(We.target.value),P(!1),U(-1),Z(!1)),!0}function Ne(){return k0()&&Xe(T),!0}function et(We){N(u.length-Math.max(We,-1)-1)}function mt(){N(We=>Math.min(We+1,u.length))}function Mt(){N(We=>Math.max(We-1,0))}function Ke(){const We=p1()-1;We>-1&&ot(u[We])}function Nt(){const We=p1();We!B1(Ft)))];if(rt.length>0){const Ft=[...u];Ft.splice(p1(),0,...rt),f(Ft)}}function Xe(We){if(!A(We)){At(x.__experimentalInvalid,"assertive");return}Ue([We]),At(x.added,"assertive"),W(""),U(-1),Z(!1),P(!M),E&&!S&&se()}function ot(We){const rt=u.filter(Ft=>Ct(Ft)!==Ct(We));f(rt),At(x.removed,"assertive")}function Ct(We){return typeof We=="object"?We.value:We}function n0(We=T,rt=c,Ft=u,s0=l,nn=p){let j0=nn(We);const r1=[],As=[],br=Ft.map(b1=>typeof b1=="string"?b1:b1.value);return j0.length===0?rt=rt.filter(b1=>!br.includes(b1)):(j0=j0.toLocaleLowerCase(),rt.forEach(b1=>{const Yi=b1.toLocaleLowerCase().indexOf(j0);br.indexOf(b1)===-1&&(Yi===0?r1.push(b1):Yi>0&&As.push(b1))}),rt=r1.concat(As)),rt.slice(0,s0)}function o1(){if(H!==-1)return n0()[H]}function B1(We){return u.some(rt=>Ct(We)===Ct(rt))}function p1(){return u.length-B}function Ot(){return T.length===0}function k0(){return p(T).length>0}function f1(We=!0){const rt=T.trim().length>1,Ft=n0(T),s0=Ft.length>0,nn=be()&&M;if(P(nn||rt&&s0),We&&(k&&rt&&s0?(U(0),Z(!0)):(U(-1),Z(!1))),rt){const j0=s0?le(a0("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",Ft.length),Ft.length):m("No results.");ie(j0,"assertive")}}function dr(){const We=u.map(pr);return We.splice(p1(),0,si()),We}function pr(We,rt,Ft){const s0=Ct(We),nn=typeof We!="string"?We.status:void 0,j0=rt+1,r1=Ft.length;return a.jsx(Ht,{children:a.jsx(Zpe,{value:s0,status:nn,title:typeof We!="string"?We.title:void 0,displayTransform:d,onClickRemove:re,isBorderless:typeof We!="string"&&We.isBorderless||g,onMouseEnter:typeof We!="string"?We.onMouseEnter:void 0,onMouseLeave:typeof We!="string"?We.onMouseLeave:void 0,disabled:nn!=="error"&&z,messages:x,termsCount:r1,termPosition:j0})},"token-"+s0)}function si(){const We={instanceId:C,autoCapitalize:t,autoComplete:n,placeholder:u.length===0?r:"",disabled:z,value:T,onBlur:xe,isExpanded:I,selectedSuggestionIndex:H};return a.jsx(Sde,{...We,onChange:o&&u.length>=o?void 0:Q,ref:Y},"input")}const fr=$(i,"components-form-token-field__input-container",{"is-active":E,"is-disabled":z});let N1={className:"components-form-token-field",tabIndex:-1};const pt=n0();return z||(N1=Object.assign({},N1,{onKeyDown:E3(K),onKeyPress:pe,onFocus:ye})),a.jsxs("div",{...N1,children:[s&&a.jsx(Ip,{htmlFor:`components-form-token-input-${C}`,className:"components-form-token-field__label",children:s}),a.jsxs("div",{ref:ee,className:fr,tabIndex:-1,onMouseDown:G,onTouchStart:G,children:[a.jsx(uft,{justify:"flex-start",align:"center",gap:1,wrap:!0,__next40pxDefaultSize:w,hasTokens:!!u.length,children:dr()}),I&&a.jsx(Cde,{instanceId:C,match:p(T),displayTransform:d,suggestions:pt,selectedIndex:H,scrollIntoView:X,onHover:Me,onSelect:he,__experimentalRenderItem:v})]}),!q&&a.jsx(or,{marginBottom:2}),_&&a.jsx(tz,{id:`components-form-token-suggestions-howto-${C}`,className:"components-form-token-field__help",__nextHasNoMarginBottom:q,children:m(y?"Separate with commas, spaces, or the Enter key.":"Separate with commas or the Enter key.")})]})}function Yt(e){const{children:t,className:n="",label:o,hideSeparator:r}=e,s=He(Yt);if(!O.Children.count(t))return null;const i=`components-menu-group-label-${s}`,c=$(n,"components-menu-group",{"has-hidden-separator":r});return a.jsxs("div",{className:c,children:[o&&a.jsx("div",{className:"components-menu-group__label",id:i,"aria-hidden":"true",children:o}),a.jsx("div",{role:"group","aria-labelledby":o?i:void 0,children:t})]})}function pft(e,t){let{children:n,info:o,className:r,icon:s,iconPosition:i="right",shortcut:c,isSelected:l,role:u="menuitem",suffix:d,...p}=e;return r=$("components-menu-item__button",r),o&&(n=a.jsxs("span",{className:"components-menu-item__info-wrapper",children:[a.jsx("span",{className:"components-menu-item__item",children:n}),a.jsx("span",{className:"components-menu-item__info",children:o})]})),s&&typeof s!="string"&&(s=O.cloneElement(s,{className:$("components-menu-items__item-icon",{"has-icon-right":i==="right"})})),a.jsxs(fe,{ref:t,"aria-checked":u==="menuitemcheckbox"||u==="menuitemradio"?l:void 0,role:u,icon:i==="left"?s:void 0,className:r,...p,children:[a.jsx("span",{className:"components-menu-item__item",children:n}),!d&&a.jsx($ie,{className:"components-menu-item__shortcut",shortcut:c}),!d&&s&&i==="right"&&a.jsx(xn,{icon:s}),d]})}const tt=O.forwardRef(pft),fft=()=>{};function Hp({choices:e=[],onHover:t=fft,onSelect:n,value:o}){return a.jsx(a.Fragment,{children:e.map(r=>{const s=o===r.value;return a.jsx(tt,{role:"menuitemradio",disabled:r.disabled,icon:s?no:null,info:r.info,isSelected:s,shortcut:r.shortcut,className:"components-menu-items-choice",onClick:()=>{s||n(r.value)},onMouseEnter:()=>t(r.value),onMouseLeave:()=>t(null),"aria-label":r["aria-label"],children:r.label},r.value)})})}const bft=Sn(e=>t=>a.jsx(e,{...t,speak:At,debouncedSpeak:Uo(At,500)}),"withSpokenMessages"),hft=({size:e})=>Ce(e==="compact"?1:2),mft=we("div",{target:"effl84m1"})("display:flex;padding-inline-end:",hft,";svg{fill:currentColor;}"),Mft=we(Ps,{target:"effl84m0"})("input[type='search']{&::-webkit-search-decoration,&::-webkit-search-cancel-button,&::-webkit-search-results-button,&::-webkit-search-results-decoration{-webkit-appearance:none;}}&:not( :focus-within ){--wp-components-color-background:",qe.theme.gray[100],";}");function gft({searchRef:e,value:t,onChange:n,onClose:o}){if(!o&&!t)return a.jsx(t0,{icon:nw});const r=()=>{n(""),e.current?.focus()};return a.jsx(fe,{size:"small",icon:zl,label:m(o?"Close search":"Reset search"),onClick:o??r})}function zft({__nextHasNoMarginBottom:e=!1,className:t,onChange:n,value:o,label:r=m("Search"),placeholder:s=m("Search"),hideLabelFromVision:i=!0,onClose:c,size:l="default",...u},d){delete u.disabled;const p=O.useRef(null),f=He(xl,"components-search-control"),b=O.useMemo(()=>({BaseControl:{_overrides:{__nextHasNoMarginBottom:e},__associatedWPComponentName:"SearchControl"},InputBase:{isBorderless:!0}}),[e]);return a.jsx(O3,{value:b,children:a.jsx(Mft,{__next40pxDefaultSize:!0,id:f,hideLabelFromVision:i,label:r,ref:Gt([p,d]),type:"search",size:l,className:$("components-search-control",t),onChange:h=>n(h??""),autoComplete:"off",placeholder:s,value:o??"",suffix:a.jsx(mft,{size:l,children:a.jsx(gft,{searchRef:p,value:o,onChange:n,onClose:c})}),...u})})}const xl=O.forwardRef(zft);function Oft(e){for(var t=[],n=0;n=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||i===95){r+=e[s++];continue}break}if(!r)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:r}),n=s;continue}if(o==="("){var c=1,l="",s=n+1;if(e[s]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s)?(?!\?)/g,o=0,r=n.exec(e.source);r;)t.push({name:r[1]||o++,prefix:"",suffix:"",modifier:"",pattern:""}),r=n.exec(e.source);return e}function _ft(e,t,n){var o=e.map(function(r){return Jpe(r,t,n).source});return new RegExp("(?:".concat(o.join("|"),")"),Qpe(n))}function wft(e,t,n){return kft(Aft(e,n),t,n)}function kft(e,t,n){n===void 0&&(n={});for(var o=n.strict,r=o===void 0?!1:o,s=n.start,i=s===void 0?!0:s,c=n.end,l=c===void 0?!0:c,u=n.encode,d=u===void 0?function(S){return S}:u,p=n.delimiter,f=p===void 0?"/#?":p,b=n.endsWith,h=b===void 0?"":b,g="[".concat(sb(h),"]|$"),z="[".concat(sb(f),"]"),y=i?"^":"",x=0,v=e;x-1:k===void 0;r||(y+="(?:".concat(z,"(?=").concat(g,"))?")),q||(y+="(?=".concat(z,"|").concat(g,")"))}return new RegExp(y,Qpe(n))}function Jpe(e,t,n){return e instanceof RegExp?xft(e,t):Array.isArray(e)?_ft(e,t,n):wft(e,t,n)}function efe(e,t){return yft(t,{decode:decodeURIComponent})(e)}function qft(e,t){for(const n of t){const o=efe(e,n.path);if(o)return{params:o.params,id:n.id}}}function Sft(e,t){if(!e.startsWith("/"))return;const n=e.split("/");let o;for(;n.length>1&&o===void 0;){n.pop();const r=n.join("/")===""?"/":n.join("/");t.find(s=>efe(r,s.path)!==!1)&&(o=r)}return o}const Cft={location:{},goTo:()=>{},goBack:()=>{},goToParent:()=>{},addScreen:()=>{},removeScreen:()=>{},params:{}},fj=O.createContext(Cft),Rft={name:"xpkswc",styles:"overflow-x:hidden;contain:content"},Wft=E_({"0%":{opacity:0,transform:"translateX( 50px )"},"100%":{opacity:1,transform:"none"}}),Tft=E_({"0%":{opacity:0,transform:"translateX( -50px )"},"100%":{opacity:1,transform:"none"}}),Eft=({isInitial:e,isBack:t,isRTL:n})=>e&&!t?void 0:ke("animation-duration:0.14s;animation-timing-function:ease-in-out;will-change:transform,opacity;animation-name:",n&&t||!n&&!t?Wft:Tft,";@media ( prefers-reduced-motion ){animation-duration:0s;}",""),Bft=e=>ke("overflow-x:auto;max-height:100%;",Eft(e),";","");function Nft({screens:e},t){return e.some(n=>n.path===t.path)?(globalThis.SCRIPT_DEBUG===!0&&Xt(`Navigator: a screen with path ${t.path} already exists. -The screen with id ${t.id} will not be added.`),e):[...e,t]}function Lft({screens:e},t){return e.filter(n=>n.id!==t.id)}function tfe(e,t,n={}){var o;const{focusSelectors:r}=e,s={...e.currentLocation,isInitial:!1},{isBack:i=!1,skipFocus:c=!1,replace:l,focusTargetSelector:u,...d}=n;if(s.path===t)return{currentLocation:s,focusSelectors:r};let p;function f(){var h;return p=(h=p)!==null&&h!==void 0?h:new Map(e.focusSelectors),p}u&&s.path&&f().set(s.path,u);let b;return r.get(t)&&(i&&(b=r.get(t)),f().delete(t)),{currentLocation:{...d,path:t,isBack:i,hasRestoredFocus:!1,focusTargetSelector:b,skipFocus:c},focusSelectors:(o=p)!==null&&o!==void 0?o:r}}function jft(e,t={}){const{screens:n,focusSelectors:o}=e,r={...e.currentLocation,isInitial:!1},s=r.path;if(s===void 0)return{currentLocation:r,focusSelectors:o};const i=Sft(s,n);return i===void 0?{currentLocation:r,focusSelectors:o}:tfe(e,i,{...t,isBack:!0})}function Pft(e,t){let{screens:n,currentLocation:o,matchedPath:r,focusSelectors:s,...i}=e;switch(t.type){case"add":n=Nft(e,t.screen);break;case"remove":n=Lft(e,t.screen);break;case"goto":({currentLocation:o,focusSelectors:s}=tfe(e,t.path,t.options));break;case"gotoparent":({currentLocation:o,focusSelectors:s}=jft(e,t.options));break}if(n===e.screens&&o===e.currentLocation)return e;const c=o.path;return r=c!==void 0?qft(c,n):void 0,r&&e.matchedPath&&r.id===e.matchedPath.id&&Jr(r.params,e.matchedPath.params)&&(r=e.matchedPath),{...i,screens:n,currentLocation:o,matchedPath:r,focusSelectors:s}}function Ift(e,t){const{initialPath:n,children:o,className:r,...s}=Ut(e,"NavigatorProvider"),[i,c]=O.useReducer(Pft,n,h=>({screens:[],currentLocation:{path:h,isInitial:!0},matchedPath:void 0,focusSelectors:new Map,initialPath:n})),l=O.useMemo(()=>({goBack:h=>c({type:"gotoparent",options:h}),goTo:(h,g)=>c({type:"goto",path:h,options:g}),goToParent:h=>{Re("wp.components.useNavigator().goToParent",{since:"6.7",alternative:"wp.components.useNavigator().goBack"}),c({type:"gotoparent",options:h})},addScreen:h=>c({type:"add",screen:h}),removeScreen:h=>c({type:"remove",screen:h})}),[]),{currentLocation:u,matchedPath:d}=i,p=O.useMemo(()=>{var h;return{location:u,params:(h=d?.params)!==null&&h!==void 0?h:{},match:d?.id,...l}},[u,d,l]),f=x0(),b=O.useMemo(()=>f(Rft,r),[r,f]);return a.jsx(C0,{ref:t,className:b,...s,children:a.jsx(fj.Provider,{value:p,children:o})})}const nfe=Qt(Ift,"NavigatorProvider");function Dft(e,t){const n=O.useId(),{children:o,className:r,path:s,...i}=Ut(e,"NavigatorScreen"),{location:c,match:l,addScreen:u,removeScreen:d}=O.useContext(fj),p=l===n,f=O.useRef(null);O.useEffect(()=>{const A={id:n,path:gx(s)};return u(A),()=>d(A)},[n,s,u,d]);const b=ft(),{isInitial:h,isBack:g}=c,z=x0(),y=O.useMemo(()=>z(Bft({isInitial:h,isBack:g,isRTL:b}),r),[r,z,h,g,b]),x=O.useRef(c);O.useEffect(()=>{x.current=c},[c]);const v=c.isInitial&&!c.isBack;O.useEffect(()=>{if(v||!p||!f.current||x.current.hasRestoredFocus||c.skipFocus)return;const A=f.current.ownerDocument.activeElement;if(f.current.contains(A))return;let _=null;if(c.isBack&&c.focusTargetSelector&&(_=f.current.querySelector(c.focusTargetSelector)),!_){const[w]=Nn.tabbable.find(f.current);_=w??f.current}x.current.hasRestoredFocus=!0,_.focus()},[v,p,c.isBack,c.focusTargetSelector,c.skipFocus]);const M=Gt([t,f]);return p?a.jsx(C0,{ref:M,className:y,...i,children:o}):null}const s5=Qt(Dft,"NavigatorScreen");function ofe(){const{location:e,params:t,goTo:n,goBack:o,goToParent:r}=O.useContext(fj);return{location:e,goTo:n,goBack:o,goToParent:r,params:t}}const Fft=(e,t)=>`[${e}="${t}"]`;function $ft(e){const{path:t,onClick:n,as:o=fe,attributeName:r="id",...s}=Ut(e,"NavigatorButton"),i=gx(t),{goTo:c}=ofe(),l=O.useCallback(u=>{u.preventDefault(),c(i,{focusTargetSelector:Fft(r,i)}),n?.(u)},[c,n,r,i]);return{as:o,onClick:l,...s,[r]:i}}function Vft(e,t){const n=$ft(e);return a.jsx(C0,{ref:t,...n})}const rfe=Qt(Vft,"NavigatorButton");function Hft(e){const{onClick:t,as:n=fe,...o}=Ut(e,"NavigatorBackButton"),{goBack:r}=ofe(),s=O.useCallback(i=>{i.preventDefault(),r(),t?.(i)},[r,t]);return{as:n,onClick:s,...o}}function Uft(e,t){const n=Hft(e);return a.jsx(C0,{ref:t,...n})}const sfe=Qt(Uft,"NavigatorBackButton"),ZG=()=>{};function Xft(e,t){const n=typeof e=="string"?e:No(e);O.useEffect(()=>{n&&At(n,t)},[n,t])}function Gft(e){switch(e){case"success":case"warning":case"info":return"polite";default:return"assertive"}}function Kft(e){switch(e){case"warning":return m("Warning notice");case"info":return m("Information notice");case"error":return m("Error notice");default:return m("Notice")}}function $s({className:e,status:t="info",children:n,spokenMessage:o=n,onRemove:r=ZG,isDismissible:s=!0,actions:i=[],politeness:c=Gft(t),__unstableHTML:l,onDismiss:u=ZG}){Xft(o,c);const d=$(e,"components-notice","is-"+t,{"is-dismissible":s});l&&typeof n=="string"&&(n=a.jsx(C1,{children:n}));const p=()=>{u(),r()};return a.jsxs("div",{className:d,children:[a.jsx(Kt,{children:Kft(t)}),a.jsxs("div",{className:"components-notice__content",children:[n,a.jsx("div",{className:"components-notice__actions",children:i.map(({className:f,label:b,isPrimary:h,variant:g,noDefaultClasses:z=!1,onClick:y,url:x},v)=>{let M=g;return g!=="primary"&&!z&&(M=x?"link":"secondary"),typeof M>"u"&&h&&(M="primary"),a.jsx(fe,{href:x,variant:M,onClick:x?void 0:y,className:$("components-notice__action",f),children:b},v)})})]}),s&&a.jsx(fe,{className:"components-notice__dismiss",icon:Ch,label:m("Close"),onClick:p})]})}const Yft=()=>{};function EW({notices:e,onRemove:t=Yft,className:n,children:o}){const r=s=>()=>t(s);return n=$("components-notice-list",n),a.jsxs("div",{className:n,children:[o,[...e].reverse().map(s=>{const{content:i,...c}=s;return O.createElement($s,{...c,key:s.id,onRemove:r(s.id)},s.content)})]})}function Zft({label:e,children:t}){return a.jsxs("div",{className:"components-panel__header",children:[e&&a.jsx("h2",{children:e}),t]})}function Qft({header:e,className:t,children:n},o){const r=$(t,"components-panel");return a.jsxs("div",{className:r,ref:o,children:[e&&a.jsx(Zft,{label:e}),n]})}const Jft=O.forwardRef(Qft),ebt=()=>{};function tbt(e,t){const{buttonProps:n={},children:o,className:r,icon:s,initialOpen:i,onToggle:c=ebt,opened:l,title:u,scrollAfterOpen:d=!0}=e,[p,f]=O_(l,{initial:i===void 0?!0:i,fallback:!1}),b=O.useRef(null),h=Zs()?"auto":"smooth",g=x=>{x.preventDefault();const v=!p;f(v),c(v)},z=O.useRef();z.current=d,yL(()=>{p&&z.current&&b.current?.scrollIntoView&&b.current.scrollIntoView({inline:"nearest",block:"nearest",behavior:h})},[p,h]);const y=$("components-panel__body",r,{"is-opened":p});return a.jsxs("div",{className:y,ref:Gt([b,t]),children:[a.jsx(nbt,{icon:s,isOpened:!!p,onClick:g,title:u,...n}),typeof o=="function"?o({opened:!!p}):p&&o]})}const nbt=O.forwardRef(({isOpened:e,icon:t,title:n,...o},r)=>n?a.jsx("h2",{className:"components-panel__body-title",children:a.jsxs(fe,{className:"components-panel__body-toggle","aria-expanded":e,ref:r,...o,children:[a.jsx("span",{"aria-hidden":"true",children:a.jsx(xn,{className:"components-panel__arrow",icon:e?G_:md})}),n,t&&a.jsx(xn,{icon:t,className:"components-panel__icon",size:20})]})}):null),De=O.forwardRef(tbt);function obt({className:e,children:t},n){return a.jsx("div",{className:$("components-panel__row",e),ref:n,children:t})}const $3=O.forwardRef(obt),rbt=a.jsx(te,{className:"components-placeholder__illustration",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none",children:a.jsx(J,{vectorEffect:"non-scaling-stroke",d:"M60 60 0 0"})});function D0(e){const{icon:t,children:n,label:o,instructions:r,className:s,notices:i,preview:c,isColumnLayout:l,withIllustration:u,...d}=e,[p,{width:f}]=Ci();let b;typeof f=="number"&&(b={"is-large":f>=480,"is-medium":f>=160&&f<480,"is-small":f<160});const h=$("components-placeholder",s,b,u?"has-illustration":null),g=$("components-placeholder__fieldset",{"is-column-layout":l});return O.useEffect(()=>{r&&At(r)},[r]),a.jsxs("div",{...d,className:h,children:[u?rbt:null,p,i,c&&a.jsx("div",{className:"components-placeholder__preview",children:c}),a.jsxs("div",{className:"components-placeholder__label",children:[a.jsx(xn,{icon:t}),o]}),!!r&&a.jsx("div",{className:"components-placeholder__instructions",children:r}),a.jsx("div",{className:g,children:n})]})}const sbt=e=>e.every(t=>t.parent!==null);function ife(e){const t=e.map(r=>({children:[],parent:null,...r,id:String(r.id)}));if(!sbt(t))return t;const n=t.reduce((r,s)=>{const{parent:i}=s;return r[i]||(r[i]=[]),r[i].push(s),r},{}),o=r=>r.map(s=>{const i=n[s.id];return{...s,children:i&&i.length?o(i):[]}});return o(n[0]||[])}const ibt={BaseControl:{_overrides:{__associatedWPComponentName:"TreeSelect"}}};function afe(e,t=0){return e.flatMap(n=>[{value:n.id,label:" ".repeat(t*3)+kt(n.name)},...afe(n.children||[],t+1)])}function bj(e){const{label:t,noOptionLabel:n,onChange:o,selectedId:r,tree:s=[],...i}=Md(e),c=O.useMemo(()=>[n&&{value:"",label:n},...afe(s)].filter(l=>!!l),[n,s]);return a.jsx(O3,{value:ibt,children:a.jsx(i0,{label:t,options:c,onChange:o,value:r,...i})})}function abt({__next40pxDefaultSize:e,label:t,noOptionLabel:n,authorList:o,selectedAuthorId:r,onChange:s}){if(!o)return null;const i=ife(o);return a.jsx(bj,{label:t,noOptionLabel:n,onChange:s,tree:i,selectedId:r!==void 0?String(r):void 0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e})}function cbt({__next40pxDefaultSize:e,label:t,noOptionLabel:n,categoriesList:o,selectedCategoryId:r,onChange:s,...i}){const c=O.useMemo(()=>ife(o),[o]);return a.jsx(bj,{label:t,noOptionLabel:n,onChange:s,tree:c,selectedId:r!==void 0?String(r):void 0,...i,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e})}const lbt=1,ubt=100,dbt=20;function pbt(e){return"categoriesList"in e}function fbt(e){return"categorySuggestions"in e}function bbt({authorList:e,selectedAuthorId:t,numberOfItems:n,order:o,orderBy:r,maxItems:s=ubt,minItems:i=lbt,onAuthorChange:c,onNumberOfItemsChange:l,onOrderChange:u,onOrderByChange:d,...p}){return a.jsx(Ye,{spacing:"4",className:"components-query-controls",children:[u&&d&&a.jsx(i0,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:m("Order by"),value:r===void 0||o===void 0?void 0:`${r}/${o}`,options:[{label:m("Newest to oldest"),value:"date/desc"},{label:m("Oldest to newest"),value:"date/asc"},{label:m("A → Z"),value:"title/asc"},{label:m("Z → A"),value:"title/desc"}],onChange:f=>{if(typeof f!="string")return;const[b,h]=f.split("/");h!==o&&u(h),b!==r&&d(b)}},"query-controls-order-select"),pbt(p)&&p.categoriesList&&p.onCategoryChange&&a.jsx(cbt,{__next40pxDefaultSize:!0,categoriesList:p.categoriesList,label:m("Category"),noOptionLabel:Oe("All","categories"),selectedCategoryId:p.selectedCategoryId,onChange:p.onCategoryChange},"query-controls-category-select"),fbt(p)&&p.categorySuggestions&&p.onCategoryChange&&a.jsx(wf,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:m("Categories"),value:p.selectedCategories&&p.selectedCategories.map(f=>({id:f.id,value:f.name||f.value})),suggestions:Object.keys(p.categorySuggestions),onChange:p.onCategoryChange,maxSuggestions:dbt},"query-controls-categories-select"),c&&a.jsx(abt,{__next40pxDefaultSize:!0,authorList:e,label:m("Author"),noOptionLabel:Oe("All","authors"),selectedAuthorId:t,onChange:c},"query-controls-author-select"),l&&a.jsx(T0,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:m("Number of items"),value:n,onChange:l,min:i,max:s,required:!0},"query-controls-range-control")]})}const cfe=O.createContext({store:void 0,disabled:void 0});function hbt({value:e,children:t,...n},o){const{store:r,disabled:s}=O.useContext(cfe),i=on(r,"value"),c=i!==void 0&&i===e;return a.jsx(yie,{disabled:s,store:r,ref:o,value:e,render:a.jsx(fe,{variant:c?"primary":"secondary",...n}),children:t||e})}const mbt=O.forwardRef(hbt);function Mbt({label:e,checked:t,defaultChecked:n,disabled:o,onChange:r,children:s,...i},c){const l=vie({value:t,defaultValue:n,setValue:d=>{r?.(d??void 0)}}),u=O.useMemo(()=>({store:l,disabled:o}),[l,o]);return a.jsx(cfe.Provider,{value:u,children:a.jsx(xie,{store:l,render:a.jsx(Bh,{children:s}),"aria-label":e,ref:c,...i})})}const gbt=O.forwardRef(Mbt);function QG(e,t){return`${e}-${t}-option-description`}function aS(e,t){return`${e}-${t}`}function JG(e){return`${e}__help`}function kf(e){const{label:t,className:n,selected:o,help:r,onChange:s,hideLabelFromVision:i,options:c=[],id:l,...u}=e,d=He(kf,"inspector-radio-control",l),p=f=>s(f.target.value);return c?.length?a.jsxs("fieldset",{id:d,className:$(n,"components-radio-control"),"aria-describedby":r?JG(d):void 0,children:[i?a.jsx(Kt,{as:"legend",children:t}):a.jsx(z0.VisualLabel,{as:"legend",children:t}),a.jsx(Ye,{spacing:3,className:$("components-radio-control__group-wrapper",{"has-help":!!r}),children:c.map((f,b)=>a.jsxs("div",{className:"components-radio-control__option",children:[a.jsx("input",{id:aS(d,b),className:"components-radio-control__input",type:"radio",name:d,value:f.value,onChange:p,checked:f.value===o,"aria-describedby":f.description?QG(d,b):void 0,...u}),a.jsx("label",{className:"components-radio-control__label",htmlFor:aS(d,b),children:f.label}),f.description?a.jsx(tz,{__nextHasNoMarginBottom:!0,id:QG(d,b),className:"components-radio-control__option-description",children:f.description}):null]},aS(d,b)))}),!!r&&a.jsx(tz,{__nextHasNoMarginBottom:!0,id:JG(d),className:"components-base-control__help",children:r})]}):null}var zbt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(o[s]=r[s])},e(t,n)};return function(t,n){e(t,n);function o(){this.constructor=t}t.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),h1=function(){return h1=Object.assign||function(e){for(var t,n=1,o=arguments.length;n"u"?void 0:Number(o),maxHeight:typeof r>"u"?void 0:Number(r),minWidth:typeof s>"u"?void 0:Number(s),minHeight:typeof i>"u"?void 0:Number(i)}},wbt=function(e){return Array.isArray(e)?e:[e,e]},kbt=["as","ref","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],rK="__resizable_base__",qbt=function(e){ybt(t,e);function t(n){var o,r,s,i,c=e.call(this,n)||this;return c.ratio=1,c.resizable=null,c.parentLeft=0,c.parentTop=0,c.resizableLeft=0,c.resizableRight=0,c.resizableTop=0,c.resizableBottom=0,c.targetLeft=0,c.targetTop=0,c.appendBase=function(){if(!c.resizable||!c.window)return null;var l=c.parentNode;if(!l)return null;var u=c.window.document.createElement("div");return u.style.width="100%",u.style.height="100%",u.style.position="absolute",u.style.transform="scale(0, 0)",u.style.left="0",u.style.flex="0 0 100%",u.classList?u.classList.add(rK):u.className+=rK,l.appendChild(u),u},c.removeBase=function(l){var u=c.parentNode;u&&u.removeChild(l)},c.state={isResizing:!1,width:(r=(o=c.propsSize)===null||o===void 0?void 0:o.width)!==null&&r!==void 0?r:"auto",height:(i=(s=c.propsSize)===null||s===void 0?void 0:s.height)!==null&&i!==void 0?i:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},c.onResizeStart=c.onResizeStart.bind(c),c.onMouseMove=c.onMouseMove.bind(c),c.onMouseUp=c.onMouseUp.bind(c),c}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||vbt},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var n=0,o=0;if(this.resizable&&this.window){var r=this.resizable.offsetWidth,s=this.resizable.offsetHeight,i=this.resizable.style.position;i!=="relative"&&(this.resizable.style.position="relative"),n=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:r,o=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:s,this.resizable.style.position=i}return{width:n,height:o}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var n=this,o=this.props.size,r=function(c){var l;if(typeof n.state[c]>"u"||n.state[c]==="auto")return"auto";if(n.propsSize&&n.propsSize[c]&&(!((l=n.propsSize[c])===null||l===void 0)&&l.toString().endsWith("%"))){if(n.state[c].toString().endsWith("%"))return n.state[c].toString();var u=n.getParentSize(),d=Number(n.state[c].toString().replace("px","")),p=d/u[c]*100;return p+"%"}return cS(n.state[c])},s=o&&typeof o.width<"u"&&!this.state.isResizing?cS(o.width):r("width"),i=o&&typeof o.height<"u"&&!this.state.isResizing?cS(o.height):r("height");return{width:s,height:i}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var n=this.appendBase();if(!n)return{width:0,height:0};var o=!1,r=this.parentNode.style.flexWrap;r!=="wrap"&&(o=!0,this.parentNode.style.flexWrap="wrap"),n.style.position="relative",n.style.minWidth="100%",n.style.minHeight="100%";var s={width:n.offsetWidth,height:n.offsetHeight};return o&&(this.parentNode.style.flexWrap=r),this.removeBase(n),s},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var n=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:n.flexBasis!=="auto"?n.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(n,o){var r=this.propsSize&&this.propsSize[o];return this.state[o]==="auto"&&this.state.original[o]===n&&(typeof r>"u"||r==="auto")?"auto":n},t.prototype.calculateNewMaxFromBoundary=function(n,o){var r=this.props.boundsByDirection,s=this.state.direction,i=r&&Hf("left",s),c=r&&Hf("top",s),l,u;if(this.props.bounds==="parent"){var d=this.parentNode;d&&(l=i?this.resizableRight-this.parentLeft:d.offsetWidth+(this.parentLeft-this.resizableLeft),u=c?this.resizableBottom-this.parentTop:d.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(l=i?this.resizableRight:this.window.innerWidth-this.resizableLeft,u=c?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(l=i?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),u=c?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return l&&Number.isFinite(l)&&(n=n&&n"u"?10:s.width,p=typeof r.width>"u"||r.width<0?n:r.width,f=typeof s.height>"u"?10:s.height,b=typeof r.height>"u"||r.height<0?o:r.height,h=l||0,g=u||0;if(c){var z=(f-h)*this.ratio+g,y=(b-h)*this.ratio+g,x=(d-g)/this.ratio+h,v=(p-g)/this.ratio+h,M=Math.max(d,z),A=Math.min(p,y),_=Math.max(f,x),w=Math.min(b,v);n=_A(n,M,A),o=_A(o,_,w)}else n=_A(n,d,p),o=_A(o,f,b);return{newWidth:n,newHeight:o}},t.prototype.setBoundingClientRect=function(){if(this.props.bounds==="parent"){var n=this.parentNode;if(n){var o=n.getBoundingClientRect();this.parentLeft=o.left,this.parentTop=o.top}}if(this.props.bounds&&typeof this.props.bounds!="string"){var r=this.props.bounds.getBoundingClientRect();this.targetLeft=r.left,this.targetTop=r.top}if(this.resizable){var s=this.resizable.getBoundingClientRect(),i=s.left,c=s.top,l=s.right,u=s.bottom;this.resizableLeft=i,this.resizableRight=l,this.resizableTop=c,this.resizableBottom=u}},t.prototype.onResizeStart=function(n,o){if(!(!this.resizable||!this.window)){var r=0,s=0;if(n.nativeEvent&&xbt(n.nativeEvent)?(r=n.nativeEvent.clientX,s=n.nativeEvent.clientY):n.nativeEvent&&wA(n.nativeEvent)&&(r=n.nativeEvent.touches[0].clientX,s=n.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var i=this.props.onResizeStart(n,o,this.resizable);if(i===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var c,l=this.window.getComputedStyle(this.resizable);if(l.flexBasis!=="auto"){var u=this.parentNode;if(u){var d=this.window.getComputedStyle(u).flexDirection;this.flexDir=d.startsWith("row")?"row":"column",c=l.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var p={original:{x:r,y:s,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:aa(aa({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(n.target).cursor||"auto"}),direction:o,flexBasis:c};this.setState(p)}},t.prototype.onMouseMove=function(n){var o=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&wA(n))try{n.preventDefault(),n.stopPropagation()}catch{}var r=this.props,s=r.maxWidth,i=r.maxHeight,c=r.minWidth,l=r.minHeight,u=wA(n)?n.touches[0].clientX:n.clientX,d=wA(n)?n.touches[0].clientY:n.clientY,p=this.state,f=p.direction,b=p.original,h=p.width,g=p.height,z=this.getParentSize(),y=_bt(z,this.window.innerWidth,this.window.innerHeight,s,i,c,l);s=y.maxWidth,i=y.maxHeight,c=y.minWidth,l=y.minHeight;var x=this.calculateNewSizeFromDirection(u,d),v=x.newHeight,M=x.newWidth,A=this.calculateNewMaxFromBoundary(s,i);this.props.snap&&this.props.snap.x&&(M=oK(M,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(v=oK(v,this.props.snap.y,this.props.snapGap));var _=this.calculateNewSizeFromAspectRatio(M,v,{width:A.maxWidth,height:A.maxHeight},{width:c,height:l});if(M=_.newWidth,v=_.newHeight,this.props.grid){var w=nK(M,this.props.grid[0]),k=nK(v,this.props.grid[1]),q=this.props.snapGap||0,S=q===0||Math.abs(w-M)<=q?w:M,C=q===0||Math.abs(k-v)<=q?k:v;M=S,v=C}var T={width:M-b.width,height:v-b.height};if(h&&typeof h=="string"){if(h.endsWith("%")){var W=M/z.width*100;M=W+"%"}else if(h.endsWith("vw")){var B=M/this.window.innerWidth*100;M=B+"vw"}else if(h.endsWith("vh")){var N=M/this.window.innerHeight*100;M=N+"vh"}}if(g&&typeof g=="string"){if(g.endsWith("%")){var W=v/z.height*100;v=W+"%"}else if(g.endsWith("vw")){var B=v/this.window.innerWidth*100;v=B+"vw"}else if(g.endsWith("vh")){var N=v/this.window.innerHeight*100;v=N+"vh"}}var E={width:this.createSizeForCssProperty(M,"width"),height:this.createSizeForCssProperty(v,"height")};this.flexDir==="row"?E.flexBasis=E.width:this.flexDir==="column"&&(E.flexBasis=E.height);var L=this.state.width!==E.width,I=this.state.height!==E.height,P=this.state.flexBasis!==E.flexBasis,H=L||I||P;H&&Qo.flushSync(function(){o.setState(E)}),this.props.onResize&&H&&this.props.onResize(n,f,this.resizable,T)}},t.prototype.onMouseUp=function(n){var o,r,s=this.state,i=s.isResizing,c=s.direction,l=s.original;if(!(!i||!this.resizable)){var u={width:this.size.width-l.width,height:this.size.height-l.height};this.props.onResizeStop&&this.props.onResizeStop(n,c,this.resizable,u),this.props.size&&this.setState({width:(o=this.props.size.width)!==null&&o!==void 0?o:"auto",height:(r=this.props.size.height)!==null&&r!==void 0?r:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:aa(aa({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(n){var o,r;this.setState({width:(o=n.width)!==null&&o!==void 0?o:"auto",height:(r=n.height)!==null&&r!==void 0?r:"auto"})},t.prototype.renderResizer=function(){var n=this,o=this.props,r=o.enable,s=o.handleStyles,i=o.handleClasses,c=o.handleWrapperStyle,l=o.handleWrapperClass,u=o.handleComponent;if(!r)return null;var d=Object.keys(r).map(function(p){return r[p]!==!1?O.createElement(Abt,{key:p,direction:p,onResizeStart:n.onResizeStart,replaceStyles:s&&s[p],className:i&&i[p]},u&&u[p]?u[p]:null):null});return O.createElement("div",{className:l,style:c},d)},t.prototype.render=function(){var n=this,o=Object.keys(this.props).reduce(function(i,c){return kbt.indexOf(c)!==-1||(i[c]=n.props[c]),i},{}),r=aa(aa(aa({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(r.flexBasis=this.state.flexBasis);var s=this.props.as||"div";return O.createElement(s,aa({style:r,className:this.props.className},o,{ref:function(i){i&&(n.resizable=i)}}),this.state.isResizing&&O.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(O.PureComponent);const Sbt=()=>{},fp={bottom:"bottom",corner:"corner"};function Cbt({axis:e,fadeTimeout:t=180,onResize:n=Sbt,position:o=fp.bottom,showPx:r=!1}){const[s,i]=Ci(),c=!!e,[l,u]=O.useState(!1),[d,p]=O.useState(!1),{width:f,height:b}=i,h=O.useRef(b),g=O.useRef(f),z=O.useRef(),y=O.useCallback(()=>{const v=()=>{c||(u(!1),p(!1))};z.current&&window.clearTimeout(z.current),z.current=window.setTimeout(v,t)},[t,c]);return O.useEffect(()=>{if(!(f!==null||b!==null))return;const M=f!==g.current,A=b!==h.current;if(!(!M&&!A)){if(f&&!g.current&&b&&!h.current){g.current=f,h.current=b;return}M&&(u(!0),g.current=f),A&&(p(!0),h.current=b),n({width:f,height:b}),y()}},[f,b,n,y]),{label:Rbt({axis:e,height:b,moveX:l,moveY:d,position:o,showPx:r,width:f}),resizeListener:s}}function Rbt({axis:e,height:t,moveX:n=!1,moveY:o=!1,position:r=fp.bottom,showPx:s=!1,width:i}){if(!n&&!o)return;if(r===fp.corner)return`${i} x ${t}`;const c=s?" px":"";if(e){if(e==="x"&&n)return`${i}${c}`;if(e==="y"&&o)return`${t}${c}`}if(n&&o)return`${i} x ${t}`;if(n)return`${i}${c}`;if(o)return`${t}${c}`}const Wbt=we("div",{target:"e1wq7y4k3"})({name:"1cd7zoc",styles:"bottom:0;box-sizing:border-box;left:0;pointer-events:none;position:absolute;right:0;top:0"}),Tbt=we("div",{target:"e1wq7y4k2"})({name:"ajymcs",styles:"align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;opacity:0;pointer-events:none;transition:opacity 120ms linear"}),Ebt=we("div",{target:"e1wq7y4k1"})("background:",qe.theme.foreground,";border-radius:",Se.radiusSmall,";box-sizing:border-box;font-family:",wi("default.fontFamily"),";font-size:12px;color:",qe.theme.foregroundInverted,";padding:4px 8px;position:relative;"),Bbt=we(l0,{target:"e1wq7y4k0"})("&&&{color:",qe.theme.foregroundInverted,";display:block;font-size:13px;line-height:1.4;white-space:nowrap;}"),u4=4,Nbt=u4*2.5;function Lbt({label:e,position:t=fp.corner,zIndex:n=1e3,...o},r){const s=!!e,i=t===fp.bottom,c=t===fp.corner;if(!s)return null;let l={opacity:s?1:void 0,zIndex:n},u={};return i&&(l={...l,position:"absolute",bottom:Nbt*-1,left:"50%",transform:"translate(-50%, 0)"},u={transform:"translate(0, 100%)"}),c&&(l={...l,position:"absolute",top:u4,right:ft()?void 0:u4,left:ft()?u4:void 0}),a.jsx(Tbt,{"aria-hidden":"true",className:"components-resizable-tooltip__tooltip-wrapper",ref:r,style:l,...o,children:a.jsx(Ebt,{className:"components-resizable-tooltip__tooltip",style:u,children:a.jsx(Bbt,{as:"span",children:e})})})}const jbt=O.forwardRef(Lbt),Pbt=()=>{};function Ibt({axis:e,className:t,fadeTimeout:n=180,isVisible:o=!0,labelRef:r,onResize:s=Pbt,position:i=fp.bottom,showPx:c=!0,zIndex:l=1e3,...u},d){const{label:p,resizeListener:f}=Cbt({axis:e,fadeTimeout:n,onResize:s,showPx:c,position:i});if(!o)return null;const b=$("components-resize-tooltip",t);return a.jsxs(Wbt,{"aria-hidden":"true",className:b,ref:d,...u,children:[f,a.jsx(jbt,{"aria-hidden":u["aria-hidden"],label:p,position:i,ref:r,zIndex:l})]})}const Dbt=O.forwardRef(Ibt),El="components-resizable-box__handle",qA="components-resizable-box__side-handle",SA="components-resizable-box__corner-handle",Fbt={top:$(El,qA,"components-resizable-box__handle-top"),right:$(El,qA,"components-resizable-box__handle-right"),bottom:$(El,qA,"components-resizable-box__handle-bottom"),left:$(El,qA,"components-resizable-box__handle-left"),topLeft:$(El,SA,"components-resizable-box__handle-top","components-resizable-box__handle-left"),topRight:$(El,SA,"components-resizable-box__handle-top","components-resizable-box__handle-right"),bottomRight:$(El,SA,"components-resizable-box__handle-bottom","components-resizable-box__handle-right"),bottomLeft:$(El,SA,"components-resizable-box__handle-bottom","components-resizable-box__handle-left")},Bl={width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0},$bt={top:Bl,right:Bl,bottom:Bl,left:Bl,topLeft:Bl,topRight:Bl,bottomRight:Bl,bottomLeft:Bl};function Vbt({className:e,children:t,showHandle:n=!0,__experimentalShowTooltip:o=!1,__experimentalTooltipProps:r={},...s},i){return a.jsxs(qbt,{className:$("components-resizable-box__container",n&&"has-show-handle",e),handleClasses:Fbt,handleStyles:$bt,ref:i,...s,children:[t,o&&a.jsx(Dbt,{...r})]})}const Ui=O.forwardRef(Vbt),Hbt=function(){const{MutationObserver:e}=window;if(!e||!document.body||!window.parent)return;function t(){const r=document.body.getBoundingClientRect();window.parent.postMessage({action:"resize",width:r.width,height:r.height},"*")}new e(t).observe(document.body,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),window.addEventListener("load",t,!0);function o(r){r.style&&["width","height","minHeight","maxHeight"].forEach(function(s){/^\\d+(vw|vh|svw|lvw|dvw|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax)$/.test(r.style[s])&&(r.style[s]="")})}Array.prototype.forEach.call(document.querySelectorAll("[style]"),o),Array.prototype.forEach.call(document.styleSheets,function(r){Array.prototype.forEach.call(r.cssRules||r.rules,o)}),document.body.style.position="absolute",document.body.style.width="100%",document.body.setAttribute("data-resizable-iframe-connected",""),t(),window.addEventListener("resize",t,!0)},Ubt=` + `,";");function Fpt({left:e="50%",top:t="50%",...n}){const o={left:e,top:t};return a.jsx(Dpt,{...n,className:"components-focal-point-picker__icon_container",style:o})}function $pt({bounds:e,...t}){return a.jsxs(Npt,{...t,className:"components-focal-point-picker__grid",style:{width:e.width,height:e.height},children:[a.jsx(XG,{style:{top:"33%"}}),a.jsx(XG,{style:{top:"66%"}}),a.jsx(GG,{style:{left:"33%"}}),a.jsx(GG,{style:{left:"66%"}})]})}function Vpt({alt:e,autoPlay:t,src:n,onLoad:o,mediaRef:r,muted:s=!0,...i}){return n?wpt(n)?a.jsx("video",{...i,autoPlay:t,className:"components-focal-point-picker__media components-focal-point-picker__media--video",loop:!0,muted:s,onLoadedData:o,ref:r,src:n}):a.jsx("img",{...i,alt:e,className:"components-focal-point-picker__media components-focal-point-picker__media--image",onLoad:o,ref:r,src:n}):a.jsx(Spt,{className:"components-focal-point-picker__media components-focal-point-picker__media--placeholder",ref:r,...i})}const Hpt=600;function Cw({__nextHasNoMarginBottom:e,autoPlay:t=!0,className:n,help:o,label:r,onChange:s,onDrag:i,onDragEnd:c,onDragStart:l,resolvePoint:u,url:d,value:p={x:.5,y:.5},...f}){const[b,h]=O.useState(p),[g,z]=O.useState(!1),{startDrag:y,endDrag:x,isDragging:v}=gne({onDragStart:L=>{_.current?.focus();const I=S(L);I&&(l?.(I,L),h(I))},onDragMove:L=>{L.preventDefault();const I=S(L);I&&(i?.(I,L),h(I))},onDragEnd:()=>{c?.(),s?.(b)}}),{x:M,y:A}=v?b:p,_=O.useRef(null),[w,k]=O.useState(o5),q=O.useRef(()=>{if(!_.current)return;const{clientWidth:L,clientHeight:I}=_.current;k(L>0&&I>0?{width:L,height:I}:{...o5})});O.useEffect(()=>{const L=q.current;if(!_.current)return;const{defaultView:I}=_.current.ownerDocument;return I?.addEventListener("resize",L),()=>I?.removeEventListener("resize",L)},[]),kB(()=>void q.current(),[]);const S=({clientX:L,clientY:I,shiftKey:P})=>{if(!_.current)return;const{top:H,left:U}=_.current.getBoundingClientRect();let X=(L-U)/w.width,Z=(I-H)/w.height;return P&&(X=Math.round(X/.1)*.1,Z=Math.round(Z/.1)*.1),C({x:X,y:Z})},C=L=>{var I;const P=(I=u?.(L))!==null&&I!==void 0?I:L;P.x=Math.max(0,Math.min(P.x,1)),P.y=Math.max(0,Math.min(P.y,1));const H=U=>Math.round(U*100)/100;return{x:H(P.x),y:H(P.y)}},T=L=>{const{code:I,shiftKey:P}=L;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(I))return;L.preventDefault();const H={x:M,y:A},U=P?.1:.01,X=I==="ArrowUp"||I==="ArrowLeft"?-1*U:U,Z=I==="ArrowUp"||I==="ArrowDown"?"y":"x";H[Z]=H[Z]+X,s?.(C(H))},W={left:M!==void 0?M*w.width:.5*w.width,top:A!==void 0?A*w.height:.5*w.height},B=$("components-focal-point-picker-control",n),E=`inspector-focal-point-picker-control-${He(Cw)}`;return yL(()=>{z(!0);const L=window.setTimeout(()=>{z(!1)},Hpt);return()=>window.clearTimeout(L)},[M,A]),a.jsxs(z0,{...f,__nextHasNoMarginBottom:e,__associatedWPComponentName:"FocalPointPicker",label:r,id:E,help:o,className:B,children:[a.jsx(kpt,{className:"components-focal-point-picker-wrapper",children:a.jsxs(qpt,{className:"components-focal-point-picker",onKeyDown:T,onMouseDown:y,onBlur:()=>{v&&x()},ref:_,role:"button",tabIndex:-1,children:[a.jsx($pt,{bounds:w,showOverlay:g}),a.jsx(Vpt,{alt:m("Media preview"),autoPlay:t,onLoad:q.current,src:d}),a.jsx(Fpt,{...W,isDragging:v})]})}),a.jsx(Ipt,{__nextHasNoMarginBottom:e,hasHelpText:!!o,point:{x:M,y:A},onChange:L=>{s?.(C(L))}})]})}function Upt(e){return/^[\d\.]+(px|em|rem|vw|vh|%|svw|lvw|dvw|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax)?$/i.test(String(e))}function Kpe(e){const[t,...n]=e;if(!t)return null;const[,o]=y0(t.size);return n.every(s=>{const[,i]=y0(s.size);return i===o})?o:null}const Xpt=we("fieldset",{target:"e8tqeku4"})({name:"1t1ytme",styles:"border:0;margin:0;padding:0"}),Gpt=we(Je,{target:"e8tqeku3"})("height:",Ce(4),";"),Kpt=we(fe,{target:"e8tqeku2"})("margin-top:",Ce(-1),";"),Ypt=we(z0.VisualLabel,{target:"e8tqeku1"})("display:flex;gap:",Ce(1),";justify-content:flex-start;margin-bottom:0;"),Zpt=we("span",{target:"e8tqeku0"})("color:",qe.gray[700],";"),YG={key:"default",name:m("Default"),value:void 0},iS={key:"custom",name:m("Custom")},Qpt=e=>{var t;const{__next40pxDefaultSize:n,fontSizes:o,value:r,disableCustomFontSizes:s,size:i,onChange:c,onSelectCustom:l}=e,u=!!Kpe(o),d=[YG,...o.map(f=>{let b;if(u){const[h]=y0(f.size);h!==void 0&&(b=String(h))}else Upt(f.size)&&(b=String(f.size));return{key:f.slug,name:f.name||f.slug,value:f.size,hint:b}}),...s?[]:[iS]],p=r?(t=d.find(f=>f.value===r))!==null&&t!==void 0?t:iS:YG;return a.jsx(Lh,{__next40pxDefaultSize:n,className:"components-font-size-picker__select",label:m("Font size"),hideLabelFromVision:!0,describedBy:le(m("Currently selected font size: %s"),p.name),options:d,value:p,showSelectedHint:!0,onChange:({selectedItem:f})=>{f===iS?l():c(f.value)},size:i})},Jpt=[m("S"),m("M"),m("L"),m("XL"),m("XXL")],Ype=[m("Small"),m("Medium"),m("Large"),m("Extra Large"),m("Extra Extra Large")],eft=e=>{const{fontSizes:t,value:n,__next40pxDefaultSize:o,size:r,onChange:s}=e;return a.jsx(wn,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:o,label:m("Font size"),hideLabelFromVision:!0,value:n,onChange:s,isBlock:!0,size:r,children:t.map((i,c)=>a.jsx(W0,{value:i.size,label:Jpt[c],"aria-label":i.name||Ype[c],showTooltip:!0},i.slug))})},tft=["px","em","rem","vw","vh"],nft=5,oft=(e,t)=>{const{__next40pxDefaultSize:n=!1,fallbackFontSize:o,fontSizes:r=[],disableCustomFontSizes:s=!1,onChange:i,size:c="default",units:l=tft,value:u,withSlider:d=!1,withReset:p=!0}=e,f=Fr({availableUnits:l}),b=r.find(k=>k.size===u),h=!!u&&!b,[g,z]=O.useState(h);let y;!s&&g?y="custom":y=r.length>nft?"select":"togglegroup";const x=O.useMemo(()=>{switch(y){case"custom":return m("Custom");case"togglegroup":if(b)return b.name||Ype[r.indexOf(b)];break;case"select":const k=Kpe(r);if(k)return`(${k})`;break}return""},[y,b,r]);if(r.length===0&&s)return null;const v=typeof u=="string"||typeof r[0]?.size=="string",[M,A]=y0(u,f),_=!!A&&["em","rem","vw","vh"].includes(A),w=u===void 0;return a.jsxs(Xpt,{ref:t,className:"components-font-size-picker",children:[a.jsx(Kt,{as:"legend",children:m("Font size")}),a.jsx(or,{children:a.jsxs(Gpt,{className:"components-font-size-picker__header",children:[a.jsxs(Ypt,{"aria-label":`${m("Size")} ${x||""}`,children:[m("Size"),x&&a.jsx(Zpt,{className:"components-font-size-picker__header__hint",children:x})]}),!s&&a.jsx(Kpt,{label:m(y==="custom"?"Use size preset":"Set custom size"),icon:kle,onClick:()=>z(!g),isPressed:y==="custom",size:"small"})]})}),a.jsxs("div",{children:[y==="select"&&a.jsx(Qpt,{__next40pxDefaultSize:n,fontSizes:r,value:u,disableCustomFontSizes:s,size:c,onChange:k=>{k===void 0?i?.(void 0):i?.(v?k:Number(k),r.find(q=>q.size===k))},onSelectCustom:()=>z(!0)}),y==="togglegroup"&&a.jsx(eft,{fontSizes:r,value:u,__next40pxDefaultSize:n,size:c,onChange:k=>{k===void 0?i?.(void 0):i?.(v?k:Number(k),r.find(q=>q.size===k))}}),y==="custom"&&a.jsxs(Q0,{className:"components-font-size-picker__custom-size-control",children:[a.jsx(Ht,{isBlock:!0,children:a.jsx(H0,{__next40pxDefaultSize:n,label:m("Custom"),labelPosition:"top",hideLabelFromVision:!0,value:u,onChange:k=>{z(!0),i?.(k===void 0?void 0:v?k:parseInt(k,10))},size:c,units:v?f:[],min:0})}),d&&a.jsx(Ht,{isBlock:!0,children:a.jsx(or,{marginX:2,marginBottom:0,children:a.jsx(T0,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:n,className:"components-font-size-picker__custom-input",label:m("Custom Size"),hideLabelFromVision:!0,value:M,initialPosition:o,withInputField:!1,onChange:k=>{z(!0),i?.(k===void 0?void 0:v?k+(A??"px"):k)},min:0,max:_?10:100,step:_?.1:1})})}),p&&a.jsx(Ht,{children:a.jsx(fe,{disabled:w,accessibleWhenDisabled:!0,onClick:()=>{i?.(void 0)},variant:"secondary",__next40pxDefaultSize:!0,size:c==="__unstable-large"||e.__next40pxDefaultSize?"default":"small",children:m("Reset")})})]})]})]})},rft=O.forwardRef(oft);function r5({accept:e,children:t,multiple:n=!1,onChange:o,onClick:r,render:s,...i}){const c=O.useRef(null),l=()=>{c.current?.click()},u=s?s({openFileDialog:l}):a.jsx(fe,{onClick:l,...i,children:t});return a.jsxs("div",{className:"components-form-file-upload",children:[u,a.jsx("input",{type:"file",ref:c,multiple:n,style:{display:"none"},accept:e,onChange:o,onClick:r,"data-testid":"form-file-upload-input"})]})}const sft=()=>{};function ift(e,t){const{className:n,checked:o,id:r,disabled:s,onChange:i=sft,...c}=e,l=$("components-form-toggle",n,{"is-checked":o,"is-disabled":s});return a.jsxs("span",{className:l,children:[a.jsx("input",{className:"components-form-toggle__input",id:r,type:"checkbox",checked:o,onChange:i,disabled:s,...c,ref:t}),a.jsx("span",{className:"components-form-toggle__track"}),a.jsx("span",{className:"components-form-toggle__thumb"})]})}const aft=O.forwardRef(ift),cft=()=>{};function Zpe({value:e,status:t,title:n,displayTransform:o,isBorderless:r=!1,disabled:s=!1,onClickRemove:i=cft,onMouseEnter:c,onMouseLeave:l,messages:u,termPosition:d,termsCount:p}){const f=He(Zpe),b=$("components-form-token-field__token",{"is-error":t==="error","is-success":t==="success","is-validating":t==="validating","is-borderless":r,"is-disabled":s}),h=()=>i({value:e}),g=o(e),z=le(m("%1$s (%2$s of %3$s)"),g,d,p);return a.jsxs("span",{className:b,onMouseEnter:c,onMouseLeave:l,title:n,children:[a.jsxs("span",{className:"components-form-token-field__token-text",id:`components-form-token-field__token-text-${f}`,children:[a.jsx(Kt,{as:"span",children:z}),a.jsx("span",{"aria-hidden":"true",children:g})]}),a.jsx(fe,{className:"components-form-token-field__remove-token",icon:zl,onClick:s?void 0:h,disabled:s,label:u.remove,"aria-describedby":`components-form-token-field__token-text-${f}`})]})}const lft=({__next40pxDefaultSize:e,hasTokens:t})=>!e&&ke("padding-top:",Ce(t?1:.5),";padding-bottom:",Ce(t?1:.5),";",""),uft=we(Q0,{target:"ehq8nmi0"})("padding:7px;",B_," ",lft,";"),dft=e=>e;function wf(e){const{autoCapitalize:t,autoComplete:n,maxLength:o,placeholder:r,label:s=m("Add item"),className:i,suggestions:c=[],maxSuggestions:l=100,value:u=[],displayTransform:d=dft,saveTransform:p=We=>We.trim(),onChange:f=()=>{},onInputChange:b=()=>{},onFocus:h=void 0,isBorderless:g=!1,disabled:z=!1,tokenizeOnSpace:y=!1,messages:x={added:m("Item added."),removed:m("Item removed."),remove:m("Remove item"),__experimentalInvalid:m("Invalid item")},__experimentalRenderItem:v,__experimentalExpandOnFocus:M=!1,__experimentalValidateInput:A=()=>!0,__experimentalShowHowTo:_=!0,__next40pxDefaultSize:w=!1,__experimentalAutoSelectFirstMatch:k=!1,__nextHasNoMarginBottom:q=!1,tokenizeOnBlur:S=!1}=Md(e);q||Re("Bottom margin styles for wp.components.FormTokenField",{since:"6.7",version:"7.0",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."});const C=He(wf),[T,W]=O.useState(""),[B,N]=O.useState(0),[E,L]=O.useState(!1),[I,P]=O.useState(!1),[H,U]=O.useState(-1),[X,Z]=O.useState(!1),ne=t1(c),oe=t1(u),Y=O.useRef(null),ee=O.useRef(null),ie=Uo(At,500);O.useEffect(()=>{E&&!be()&&se()},[E]),O.useEffect(()=>{const We=!Jr(c,ne||[]);(We||u!==oe)&&f1(We)},[c,ne,u,oe]),O.useEffect(()=>{f1()},[T]),O.useEffect(()=>{f1()},[k]),z&&E&&(L(!1),W(""));function se(){Y.current?.focus()}function be(){return Y.current===Y.current?.ownerDocument.activeElement}function ye(We){be()||We.target===ee.current?(L(!0),P(M||I)):L(!1),typeof h=="function"&&h(We)}function xe(We){if(k0()&&A(T))L(!1),S&&k0()&&Xe(T);else{if(W(""),N(0),L(!1),M){const rt=We.relatedTarget===ee.current;P(rt)}else P(!1);U(-1),Z(!1)}}function K(We){let rt=!1;if(!We.defaultPrevented){switch(We.key){case"Backspace":rt=R(Ke);break;case"Enter":rt=zt();break;case"ArrowLeft":rt=j();break;case"ArrowUp":rt=de();break;case"ArrowRight":rt=V();break;case"ArrowDown":rt=ge();break;case"Delete":rt=R(Nt);break;case"Space":y&&(rt=zt());break;case"Escape":rt=ve(We);break}rt&&We.preventDefault()}}function pe(We){let rt=!1;switch(We.key){case",":rt=Ne();break}rt&&We.preventDefault()}function G(We){We.target===ee.current&&E&&We.preventDefault()}function re(We){ot(We.value),se()}function Me(We){const rt=n0().indexOf(We);rt>=0&&(U(rt),Z(!1))}function he(We){Xe(We)}function Q(We){const rt=We.value,Ft=y?/[ ,\t]+/:/[,\t]+/,s0=rt.split(Ft),nn=s0[s0.length-1]||"";s0.length>1&&Ue(s0.slice(0,-1)),W(nn),b(nn)}function R(We){let rt=!1;return be()&&Ot()&&(We(),rt=!0),rt}function j(){let We=!1;return Ot()&&(mt(),We=!0),We}function V(){let We=!1;return Ot()&&(Mt(),We=!0),We}function de(){return U(We=>(We===0?n0(T,c,u,l,p).length:We)-1),Z(!0),!0}function ge(){return U(We=>(We+1)%n0(T,c,u,l,p).length),Z(!0),!0}function ve(We){return We.target instanceof HTMLInputElement&&(W(We.target.value),P(!1),U(-1),Z(!1)),!0}function Ne(){return k0()&&Xe(T),!0}function et(We){N(u.length-Math.max(We,-1)-1)}function mt(){N(We=>Math.min(We+1,u.length))}function Mt(){N(We=>Math.max(We-1,0))}function Ke(){const We=p1()-1;We>-1&&ot(u[We])}function Nt(){const We=p1();We!B1(Ft)))];if(rt.length>0){const Ft=[...u];Ft.splice(p1(),0,...rt),f(Ft)}}function Xe(We){if(!A(We)){At(x.__experimentalInvalid,"assertive");return}Ue([We]),At(x.added,"assertive"),W(""),U(-1),Z(!1),P(!M),E&&!S&&se()}function ot(We){const rt=u.filter(Ft=>Ct(Ft)!==Ct(We));f(rt),At(x.removed,"assertive")}function Ct(We){return typeof We=="object"?We.value:We}function n0(We=T,rt=c,Ft=u,s0=l,nn=p){let j0=nn(We);const r1=[],ys=[],br=Ft.map(b1=>typeof b1=="string"?b1:b1.value);return j0.length===0?rt=rt.filter(b1=>!br.includes(b1)):(j0=j0.toLocaleLowerCase(),rt.forEach(b1=>{const Yi=b1.toLocaleLowerCase().indexOf(j0);br.indexOf(b1)===-1&&(Yi===0?r1.push(b1):Yi>0&&ys.push(b1))}),rt=r1.concat(ys)),rt.slice(0,s0)}function o1(){if(H!==-1)return n0()[H]}function B1(We){return u.some(rt=>Ct(We)===Ct(rt))}function p1(){return u.length-B}function Ot(){return T.length===0}function k0(){return p(T).length>0}function f1(We=!0){const rt=T.trim().length>1,Ft=n0(T),s0=Ft.length>0,nn=be()&&M;if(P(nn||rt&&s0),We&&(k&&rt&&s0?(U(0),Z(!0)):(U(-1),Z(!1))),rt){const j0=s0?le(a0("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",Ft.length),Ft.length):m("No results.");ie(j0,"assertive")}}function dr(){const We=u.map(pr);return We.splice(p1(),0,si()),We}function pr(We,rt,Ft){const s0=Ct(We),nn=typeof We!="string"?We.status:void 0,j0=rt+1,r1=Ft.length;return a.jsx(Ht,{children:a.jsx(Zpe,{value:s0,status:nn,title:typeof We!="string"?We.title:void 0,displayTransform:d,onClickRemove:re,isBorderless:typeof We!="string"&&We.isBorderless||g,onMouseEnter:typeof We!="string"?We.onMouseEnter:void 0,onMouseLeave:typeof We!="string"?We.onMouseLeave:void 0,disabled:nn!=="error"&&z,messages:x,termsCount:r1,termPosition:j0})},"token-"+s0)}function si(){const We={instanceId:C,autoCapitalize:t,autoComplete:n,placeholder:u.length===0?r:"",disabled:z,value:T,onBlur:xe,isExpanded:I,selectedSuggestionIndex:H};return a.jsx(Sde,{...We,onChange:o&&u.length>=o?void 0:Q,ref:Y},"input")}const fr=$(i,"components-form-token-field__input-container",{"is-active":E,"is-disabled":z});let N1={className:"components-form-token-field",tabIndex:-1};const pt=n0();return z||(N1=Object.assign({},N1,{onKeyDown:E3(K),onKeyPress:pe,onFocus:ye})),a.jsxs("div",{...N1,children:[s&&a.jsx(Ip,{htmlFor:`components-form-token-input-${C}`,className:"components-form-token-field__label",children:s}),a.jsxs("div",{ref:ee,className:fr,tabIndex:-1,onMouseDown:G,onTouchStart:G,children:[a.jsx(uft,{justify:"flex-start",align:"center",gap:1,wrap:!0,__next40pxDefaultSize:w,hasTokens:!!u.length,children:dr()}),I&&a.jsx(Cde,{instanceId:C,match:p(T),displayTransform:d,suggestions:pt,selectedIndex:H,scrollIntoView:X,onHover:Me,onSelect:he,__experimentalRenderItem:v})]}),!q&&a.jsx(or,{marginBottom:2}),_&&a.jsx(tz,{id:`components-form-token-suggestions-howto-${C}`,className:"components-form-token-field__help",__nextHasNoMarginBottom:q,children:m(y?"Separate with commas, spaces, or the Enter key.":"Separate with commas or the Enter key.")})]})}function Yt(e){const{children:t,className:n="",label:o,hideSeparator:r}=e,s=He(Yt);if(!O.Children.count(t))return null;const i=`components-menu-group-label-${s}`,c=$(n,"components-menu-group",{"has-hidden-separator":r});return a.jsxs("div",{className:c,children:[o&&a.jsx("div",{className:"components-menu-group__label",id:i,"aria-hidden":"true",children:o}),a.jsx("div",{role:"group","aria-labelledby":o?i:void 0,children:t})]})}function pft(e,t){let{children:n,info:o,className:r,icon:s,iconPosition:i="right",shortcut:c,isSelected:l,role:u="menuitem",suffix:d,...p}=e;return r=$("components-menu-item__button",r),o&&(n=a.jsxs("span",{className:"components-menu-item__info-wrapper",children:[a.jsx("span",{className:"components-menu-item__item",children:n}),a.jsx("span",{className:"components-menu-item__info",children:o})]})),s&&typeof s!="string"&&(s=O.cloneElement(s,{className:$("components-menu-items__item-icon",{"has-icon-right":i==="right"})})),a.jsxs(fe,{ref:t,"aria-checked":u==="menuitemcheckbox"||u==="menuitemradio"?l:void 0,role:u,icon:i==="left"?s:void 0,className:r,...p,children:[a.jsx("span",{className:"components-menu-item__item",children:n}),!d&&a.jsx($ie,{className:"components-menu-item__shortcut",shortcut:c}),!d&&s&&i==="right"&&a.jsx(xn,{icon:s}),d]})}const tt=O.forwardRef(pft),fft=()=>{};function Hp({choices:e=[],onHover:t=fft,onSelect:n,value:o}){return a.jsx(a.Fragment,{children:e.map(r=>{const s=o===r.value;return a.jsx(tt,{role:"menuitemradio",disabled:r.disabled,icon:s?no:null,info:r.info,isSelected:s,shortcut:r.shortcut,className:"components-menu-items-choice",onClick:()=>{s||n(r.value)},onMouseEnter:()=>t(r.value),onMouseLeave:()=>t(null),"aria-label":r["aria-label"],children:r.label},r.value)})})}const bft=Sn(e=>t=>a.jsx(e,{...t,speak:At,debouncedSpeak:Uo(At,500)}),"withSpokenMessages"),hft=({size:e})=>Ce(e==="compact"?1:2),mft=we("div",{target:"effl84m1"})("display:flex;padding-inline-end:",hft,";svg{fill:currentColor;}"),Mft=we(Is,{target:"effl84m0"})("input[type='search']{&::-webkit-search-decoration,&::-webkit-search-cancel-button,&::-webkit-search-results-button,&::-webkit-search-results-decoration{-webkit-appearance:none;}}&:not( :focus-within ){--wp-components-color-background:",qe.theme.gray[100],";}");function gft({searchRef:e,value:t,onChange:n,onClose:o}){if(!o&&!t)return a.jsx(t0,{icon:nw});const r=()=>{n(""),e.current?.focus()};return a.jsx(fe,{size:"small",icon:zl,label:m(o?"Close search":"Reset search"),onClick:o??r})}function zft({__nextHasNoMarginBottom:e=!1,className:t,onChange:n,value:o,label:r=m("Search"),placeholder:s=m("Search"),hideLabelFromVision:i=!0,onClose:c,size:l="default",...u},d){delete u.disabled;const p=O.useRef(null),f=He(xl,"components-search-control"),b=O.useMemo(()=>({BaseControl:{_overrides:{__nextHasNoMarginBottom:e},__associatedWPComponentName:"SearchControl"},InputBase:{isBorderless:!0}}),[e]);return a.jsx(O3,{value:b,children:a.jsx(Mft,{__next40pxDefaultSize:!0,id:f,hideLabelFromVision:i,label:r,ref:Gt([p,d]),type:"search",size:l,className:$("components-search-control",t),onChange:h=>n(h??""),autoComplete:"off",placeholder:s,value:o??"",suffix:a.jsx(mft,{size:l,children:a.jsx(gft,{searchRef:p,value:o,onChange:n,onClose:c})}),...u})})}const xl=O.forwardRef(zft);function Oft(e){for(var t=[],n=0;n=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||i===95){r+=e[s++];continue}break}if(!r)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:r}),n=s;continue}if(o==="("){var c=1,l="",s=n+1;if(e[s]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s)?(?!\?)/g,o=0,r=n.exec(e.source);r;)t.push({name:r[1]||o++,prefix:"",suffix:"",modifier:"",pattern:""}),r=n.exec(e.source);return e}function _ft(e,t,n){var o=e.map(function(r){return Jpe(r,t,n).source});return new RegExp("(?:".concat(o.join("|"),")"),Qpe(n))}function wft(e,t,n){return kft(Aft(e,n),t,n)}function kft(e,t,n){n===void 0&&(n={});for(var o=n.strict,r=o===void 0?!1:o,s=n.start,i=s===void 0?!0:s,c=n.end,l=c===void 0?!0:c,u=n.encode,d=u===void 0?function(S){return S}:u,p=n.delimiter,f=p===void 0?"/#?":p,b=n.endsWith,h=b===void 0?"":b,g="[".concat(sb(h),"]|$"),z="[".concat(sb(f),"]"),y=i?"^":"",x=0,v=e;x-1:k===void 0;r||(y+="(?:".concat(z,"(?=").concat(g,"))?")),q||(y+="(?=".concat(z,"|").concat(g,")"))}return new RegExp(y,Qpe(n))}function Jpe(e,t,n){return e instanceof RegExp?xft(e,t):Array.isArray(e)?_ft(e,t,n):wft(e,t,n)}function efe(e,t){return yft(t,{decode:decodeURIComponent})(e)}function qft(e,t){for(const n of t){const o=efe(e,n.path);if(o)return{params:o.params,id:n.id}}}function Sft(e,t){if(!e.startsWith("/"))return;const n=e.split("/");let o;for(;n.length>1&&o===void 0;){n.pop();const r=n.join("/")===""?"/":n.join("/");t.find(s=>efe(r,s.path)!==!1)&&(o=r)}return o}const Cft={location:{},goTo:()=>{},goBack:()=>{},goToParent:()=>{},addScreen:()=>{},removeScreen:()=>{},params:{}},fj=O.createContext(Cft),Rft={name:"xpkswc",styles:"overflow-x:hidden;contain:content"},Wft=E_({"0%":{opacity:0,transform:"translateX( 50px )"},"100%":{opacity:1,transform:"none"}}),Tft=E_({"0%":{opacity:0,transform:"translateX( -50px )"},"100%":{opacity:1,transform:"none"}}),Eft=({isInitial:e,isBack:t,isRTL:n})=>e&&!t?void 0:ke("animation-duration:0.14s;animation-timing-function:ease-in-out;will-change:transform,opacity;animation-name:",n&&t||!n&&!t?Wft:Tft,";@media ( prefers-reduced-motion ){animation-duration:0s;}",""),Bft=e=>ke("overflow-x:auto;max-height:100%;",Eft(e),";","");function Nft({screens:e},t){return e.some(n=>n.path===t.path)?(globalThis.SCRIPT_DEBUG===!0&&Xt(`Navigator: a screen with path ${t.path} already exists. +The screen with id ${t.id} will not be added.`),e):[...e,t]}function Lft({screens:e},t){return e.filter(n=>n.id!==t.id)}function tfe(e,t,n={}){var o;const{focusSelectors:r}=e,s={...e.currentLocation,isInitial:!1},{isBack:i=!1,skipFocus:c=!1,replace:l,focusTargetSelector:u,...d}=n;if(s.path===t)return{currentLocation:s,focusSelectors:r};let p;function f(){var h;return p=(h=p)!==null&&h!==void 0?h:new Map(e.focusSelectors),p}u&&s.path&&f().set(s.path,u);let b;return r.get(t)&&(i&&(b=r.get(t)),f().delete(t)),{currentLocation:{...d,path:t,isBack:i,hasRestoredFocus:!1,focusTargetSelector:b,skipFocus:c},focusSelectors:(o=p)!==null&&o!==void 0?o:r}}function jft(e,t={}){const{screens:n,focusSelectors:o}=e,r={...e.currentLocation,isInitial:!1},s=r.path;if(s===void 0)return{currentLocation:r,focusSelectors:o};const i=Sft(s,n);return i===void 0?{currentLocation:r,focusSelectors:o}:tfe(e,i,{...t,isBack:!0})}function Pft(e,t){let{screens:n,currentLocation:o,matchedPath:r,focusSelectors:s,...i}=e;switch(t.type){case"add":n=Nft(e,t.screen);break;case"remove":n=Lft(e,t.screen);break;case"goto":({currentLocation:o,focusSelectors:s}=tfe(e,t.path,t.options));break;case"gotoparent":({currentLocation:o,focusSelectors:s}=jft(e,t.options));break}if(n===e.screens&&o===e.currentLocation)return e;const c=o.path;return r=c!==void 0?qft(c,n):void 0,r&&e.matchedPath&&r.id===e.matchedPath.id&&Jr(r.params,e.matchedPath.params)&&(r=e.matchedPath),{...i,screens:n,currentLocation:o,matchedPath:r,focusSelectors:s}}function Ift(e,t){const{initialPath:n,children:o,className:r,...s}=Ut(e,"NavigatorProvider"),[i,c]=O.useReducer(Pft,n,h=>({screens:[],currentLocation:{path:h,isInitial:!0},matchedPath:void 0,focusSelectors:new Map,initialPath:n})),l=O.useMemo(()=>({goBack:h=>c({type:"gotoparent",options:h}),goTo:(h,g)=>c({type:"goto",path:h,options:g}),goToParent:h=>{Re("wp.components.useNavigator().goToParent",{since:"6.7",alternative:"wp.components.useNavigator().goBack"}),c({type:"gotoparent",options:h})},addScreen:h=>c({type:"add",screen:h}),removeScreen:h=>c({type:"remove",screen:h})}),[]),{currentLocation:u,matchedPath:d}=i,p=O.useMemo(()=>{var h;return{location:u,params:(h=d?.params)!==null&&h!==void 0?h:{},match:d?.id,...l}},[u,d,l]),f=x0(),b=O.useMemo(()=>f(Rft,r),[r,f]);return a.jsx(C0,{ref:t,className:b,...s,children:a.jsx(fj.Provider,{value:p,children:o})})}const nfe=Qt(Ift,"NavigatorProvider");function Dft(e,t){const n=O.useId(),{children:o,className:r,path:s,...i}=Ut(e,"NavigatorScreen"),{location:c,match:l,addScreen:u,removeScreen:d}=O.useContext(fj),p=l===n,f=O.useRef(null);O.useEffect(()=>{const A={id:n,path:gx(s)};return u(A),()=>d(A)},[n,s,u,d]);const b=ft(),{isInitial:h,isBack:g}=c,z=x0(),y=O.useMemo(()=>z(Bft({isInitial:h,isBack:g,isRTL:b}),r),[r,z,h,g,b]),x=O.useRef(c);O.useEffect(()=>{x.current=c},[c]);const v=c.isInitial&&!c.isBack;O.useEffect(()=>{if(v||!p||!f.current||x.current.hasRestoredFocus||c.skipFocus)return;const A=f.current.ownerDocument.activeElement;if(f.current.contains(A))return;let _=null;if(c.isBack&&c.focusTargetSelector&&(_=f.current.querySelector(c.focusTargetSelector)),!_){const[w]=Nn.tabbable.find(f.current);_=w??f.current}x.current.hasRestoredFocus=!0,_.focus()},[v,p,c.isBack,c.focusTargetSelector,c.skipFocus]);const M=Gt([t,f]);return p?a.jsx(C0,{ref:M,className:y,...i,children:o}):null}const s5=Qt(Dft,"NavigatorScreen");function ofe(){const{location:e,params:t,goTo:n,goBack:o,goToParent:r}=O.useContext(fj);return{location:e,goTo:n,goBack:o,goToParent:r,params:t}}const Fft=(e,t)=>`[${e}="${t}"]`;function $ft(e){const{path:t,onClick:n,as:o=fe,attributeName:r="id",...s}=Ut(e,"NavigatorButton"),i=gx(t),{goTo:c}=ofe(),l=O.useCallback(u=>{u.preventDefault(),c(i,{focusTargetSelector:Fft(r,i)}),n?.(u)},[c,n,r,i]);return{as:o,onClick:l,...s,[r]:i}}function Vft(e,t){const n=$ft(e);return a.jsx(C0,{ref:t,...n})}const rfe=Qt(Vft,"NavigatorButton");function Hft(e){const{onClick:t,as:n=fe,...o}=Ut(e,"NavigatorBackButton"),{goBack:r}=ofe(),s=O.useCallback(i=>{i.preventDefault(),r(),t?.(i)},[r,t]);return{as:n,onClick:s,...o}}function Uft(e,t){const n=Hft(e);return a.jsx(C0,{ref:t,...n})}const sfe=Qt(Uft,"NavigatorBackButton"),ZG=()=>{};function Xft(e,t){const n=typeof e=="string"?e:No(e);O.useEffect(()=>{n&&At(n,t)},[n,t])}function Gft(e){switch(e){case"success":case"warning":case"info":return"polite";default:return"assertive"}}function Kft(e){switch(e){case"warning":return m("Warning notice");case"info":return m("Information notice");case"error":return m("Error notice");default:return m("Notice")}}function os({className:e,status:t="info",children:n,spokenMessage:o=n,onRemove:r=ZG,isDismissible:s=!0,actions:i=[],politeness:c=Gft(t),__unstableHTML:l,onDismiss:u=ZG}){Xft(o,c);const d=$(e,"components-notice","is-"+t,{"is-dismissible":s});l&&typeof n=="string"&&(n=a.jsx(C1,{children:n}));const p=()=>{u(),r()};return a.jsxs("div",{className:d,children:[a.jsx(Kt,{children:Kft(t)}),a.jsxs("div",{className:"components-notice__content",children:[n,a.jsx("div",{className:"components-notice__actions",children:i.map(({className:f,label:b,isPrimary:h,variant:g,noDefaultClasses:z=!1,onClick:y,url:x},v)=>{let M=g;return g!=="primary"&&!z&&(M=x?"link":"secondary"),typeof M>"u"&&h&&(M="primary"),a.jsx(fe,{href:x,variant:M,onClick:x?void 0:y,className:$("components-notice__action",f),children:b},v)})})]}),s&&a.jsx(fe,{className:"components-notice__dismiss",icon:Ch,label:m("Close"),onClick:p})]})}const Yft=()=>{};function EW({notices:e,onRemove:t=Yft,className:n,children:o}){const r=s=>()=>t(s);return n=$("components-notice-list",n),a.jsxs("div",{className:n,children:[o,[...e].reverse().map(s=>{const{content:i,...c}=s;return O.createElement(os,{...c,key:s.id,onRemove:r(s.id)},s.content)})]})}function Zft({label:e,children:t}){return a.jsxs("div",{className:"components-panel__header",children:[e&&a.jsx("h2",{children:e}),t]})}function Qft({header:e,className:t,children:n},o){const r=$(t,"components-panel");return a.jsxs("div",{className:r,ref:o,children:[e&&a.jsx(Zft,{label:e}),n]})}const Jft=O.forwardRef(Qft),ebt=()=>{};function tbt(e,t){const{buttonProps:n={},children:o,className:r,icon:s,initialOpen:i,onToggle:c=ebt,opened:l,title:u,scrollAfterOpen:d=!0}=e,[p,f]=O_(l,{initial:i===void 0?!0:i,fallback:!1}),b=O.useRef(null),h=Zs()?"auto":"smooth",g=x=>{x.preventDefault();const v=!p;f(v),c(v)},z=O.useRef();z.current=d,yL(()=>{p&&z.current&&b.current?.scrollIntoView&&b.current.scrollIntoView({inline:"nearest",block:"nearest",behavior:h})},[p,h]);const y=$("components-panel__body",r,{"is-opened":p});return a.jsxs("div",{className:y,ref:Gt([b,t]),children:[a.jsx(nbt,{icon:s,isOpened:!!p,onClick:g,title:u,...n}),typeof o=="function"?o({opened:!!p}):p&&o]})}const nbt=O.forwardRef(({isOpened:e,icon:t,title:n,...o},r)=>n?a.jsx("h2",{className:"components-panel__body-title",children:a.jsxs(fe,{className:"components-panel__body-toggle","aria-expanded":e,ref:r,...o,children:[a.jsx("span",{"aria-hidden":"true",children:a.jsx(xn,{className:"components-panel__arrow",icon:e?G_:md})}),n,t&&a.jsx(xn,{icon:t,className:"components-panel__icon",size:20})]})}):null),De=O.forwardRef(tbt);function obt({className:e,children:t},n){return a.jsx("div",{className:$("components-panel__row",e),ref:n,children:t})}const $3=O.forwardRef(obt),rbt=a.jsx(te,{className:"components-placeholder__illustration",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none",children:a.jsx(J,{vectorEffect:"non-scaling-stroke",d:"M60 60 0 0"})});function D0(e){const{icon:t,children:n,label:o,instructions:r,className:s,notices:i,preview:c,isColumnLayout:l,withIllustration:u,...d}=e,[p,{width:f}]=Ci();let b;typeof f=="number"&&(b={"is-large":f>=480,"is-medium":f>=160&&f<480,"is-small":f<160});const h=$("components-placeholder",s,b,u?"has-illustration":null),g=$("components-placeholder__fieldset",{"is-column-layout":l});return O.useEffect(()=>{r&&At(r)},[r]),a.jsxs("div",{...d,className:h,children:[u?rbt:null,p,i,c&&a.jsx("div",{className:"components-placeholder__preview",children:c}),a.jsxs("div",{className:"components-placeholder__label",children:[a.jsx(xn,{icon:t}),o]}),!!r&&a.jsx("div",{className:"components-placeholder__instructions",children:r}),a.jsx("div",{className:g,children:n})]})}const sbt=e=>e.every(t=>t.parent!==null);function ife(e){const t=e.map(r=>({children:[],parent:null,...r,id:String(r.id)}));if(!sbt(t))return t;const n=t.reduce((r,s)=>{const{parent:i}=s;return r[i]||(r[i]=[]),r[i].push(s),r},{}),o=r=>r.map(s=>{const i=n[s.id];return{...s,children:i&&i.length?o(i):[]}});return o(n[0]||[])}const ibt={BaseControl:{_overrides:{__associatedWPComponentName:"TreeSelect"}}};function afe(e,t=0){return e.flatMap(n=>[{value:n.id,label:" ".repeat(t*3)+kt(n.name)},...afe(n.children||[],t+1)])}function bj(e){const{label:t,noOptionLabel:n,onChange:o,selectedId:r,tree:s=[],...i}=Md(e),c=O.useMemo(()=>[n&&{value:"",label:n},...afe(s)].filter(l=>!!l),[n,s]);return a.jsx(O3,{value:ibt,children:a.jsx(i0,{label:t,options:c,onChange:o,value:r,...i})})}function abt({__next40pxDefaultSize:e,label:t,noOptionLabel:n,authorList:o,selectedAuthorId:r,onChange:s}){if(!o)return null;const i=ife(o);return a.jsx(bj,{label:t,noOptionLabel:n,onChange:s,tree:i,selectedId:r!==void 0?String(r):void 0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e})}function cbt({__next40pxDefaultSize:e,label:t,noOptionLabel:n,categoriesList:o,selectedCategoryId:r,onChange:s,...i}){const c=O.useMemo(()=>ife(o),[o]);return a.jsx(bj,{label:t,noOptionLabel:n,onChange:s,tree:c,selectedId:r!==void 0?String(r):void 0,...i,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e})}const lbt=1,ubt=100,dbt=20;function pbt(e){return"categoriesList"in e}function fbt(e){return"categorySuggestions"in e}function bbt({authorList:e,selectedAuthorId:t,numberOfItems:n,order:o,orderBy:r,maxItems:s=ubt,minItems:i=lbt,onAuthorChange:c,onNumberOfItemsChange:l,onOrderChange:u,onOrderByChange:d,...p}){return a.jsx(Ye,{spacing:"4",className:"components-query-controls",children:[u&&d&&a.jsx(i0,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:m("Order by"),value:r===void 0||o===void 0?void 0:`${r}/${o}`,options:[{label:m("Newest to oldest"),value:"date/desc"},{label:m("Oldest to newest"),value:"date/asc"},{label:m("A → Z"),value:"title/asc"},{label:m("Z → A"),value:"title/desc"}],onChange:f=>{if(typeof f!="string")return;const[b,h]=f.split("/");h!==o&&u(h),b!==r&&d(b)}},"query-controls-order-select"),pbt(p)&&p.categoriesList&&p.onCategoryChange&&a.jsx(cbt,{__next40pxDefaultSize:!0,categoriesList:p.categoriesList,label:m("Category"),noOptionLabel:Oe("All","categories"),selectedCategoryId:p.selectedCategoryId,onChange:p.onCategoryChange},"query-controls-category-select"),fbt(p)&&p.categorySuggestions&&p.onCategoryChange&&a.jsx(wf,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:m("Categories"),value:p.selectedCategories&&p.selectedCategories.map(f=>({id:f.id,value:f.name||f.value})),suggestions:Object.keys(p.categorySuggestions),onChange:p.onCategoryChange,maxSuggestions:dbt},"query-controls-categories-select"),c&&a.jsx(abt,{__next40pxDefaultSize:!0,authorList:e,label:m("Author"),noOptionLabel:Oe("All","authors"),selectedAuthorId:t,onChange:c},"query-controls-author-select"),l&&a.jsx(T0,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:m("Number of items"),value:n,onChange:l,min:i,max:s,required:!0},"query-controls-range-control")]})}const cfe=O.createContext({store:void 0,disabled:void 0});function hbt({value:e,children:t,...n},o){const{store:r,disabled:s}=O.useContext(cfe),i=on(r,"value"),c=i!==void 0&&i===e;return a.jsx(yie,{disabled:s,store:r,ref:o,value:e,render:a.jsx(fe,{variant:c?"primary":"secondary",...n}),children:t||e})}const mbt=O.forwardRef(hbt);function Mbt({label:e,checked:t,defaultChecked:n,disabled:o,onChange:r,children:s,...i},c){const l=vie({value:t,defaultValue:n,setValue:d=>{r?.(d??void 0)}}),u=O.useMemo(()=>({store:l,disabled:o}),[l,o]);return a.jsx(cfe.Provider,{value:u,children:a.jsx(xie,{store:l,render:a.jsx(Bh,{children:s}),"aria-label":e,ref:c,...i})})}const gbt=O.forwardRef(Mbt);function QG(e,t){return`${e}-${t}-option-description`}function aS(e,t){return`${e}-${t}`}function JG(e){return`${e}__help`}function kf(e){const{label:t,className:n,selected:o,help:r,onChange:s,hideLabelFromVision:i,options:c=[],id:l,...u}=e,d=He(kf,"inspector-radio-control",l),p=f=>s(f.target.value);return c?.length?a.jsxs("fieldset",{id:d,className:$(n,"components-radio-control"),"aria-describedby":r?JG(d):void 0,children:[i?a.jsx(Kt,{as:"legend",children:t}):a.jsx(z0.VisualLabel,{as:"legend",children:t}),a.jsx(Ye,{spacing:3,className:$("components-radio-control__group-wrapper",{"has-help":!!r}),children:c.map((f,b)=>a.jsxs("div",{className:"components-radio-control__option",children:[a.jsx("input",{id:aS(d,b),className:"components-radio-control__input",type:"radio",name:d,value:f.value,onChange:p,checked:f.value===o,"aria-describedby":f.description?QG(d,b):void 0,...u}),a.jsx("label",{className:"components-radio-control__label",htmlFor:aS(d,b),children:f.label}),f.description?a.jsx(tz,{__nextHasNoMarginBottom:!0,id:QG(d,b),className:"components-radio-control__option-description",children:f.description}):null]},aS(d,b)))}),!!r&&a.jsx(tz,{__nextHasNoMarginBottom:!0,id:JG(d),className:"components-base-control__help",children:r})]}):null}var zbt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(o[s]=r[s])},e(t,n)};return function(t,n){e(t,n);function o(){this.constructor=t}t.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),h1=function(){return h1=Object.assign||function(e){for(var t,n=1,o=arguments.length;n"u"?void 0:Number(o),maxHeight:typeof r>"u"?void 0:Number(r),minWidth:typeof s>"u"?void 0:Number(s),minHeight:typeof i>"u"?void 0:Number(i)}},wbt=function(e){return Array.isArray(e)?e:[e,e]},kbt=["as","ref","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],rK="__resizable_base__",qbt=function(e){ybt(t,e);function t(n){var o,r,s,i,c=e.call(this,n)||this;return c.ratio=1,c.resizable=null,c.parentLeft=0,c.parentTop=0,c.resizableLeft=0,c.resizableRight=0,c.resizableTop=0,c.resizableBottom=0,c.targetLeft=0,c.targetTop=0,c.appendBase=function(){if(!c.resizable||!c.window)return null;var l=c.parentNode;if(!l)return null;var u=c.window.document.createElement("div");return u.style.width="100%",u.style.height="100%",u.style.position="absolute",u.style.transform="scale(0, 0)",u.style.left="0",u.style.flex="0 0 100%",u.classList?u.classList.add(rK):u.className+=rK,l.appendChild(u),u},c.removeBase=function(l){var u=c.parentNode;u&&u.removeChild(l)},c.state={isResizing:!1,width:(r=(o=c.propsSize)===null||o===void 0?void 0:o.width)!==null&&r!==void 0?r:"auto",height:(i=(s=c.propsSize)===null||s===void 0?void 0:s.height)!==null&&i!==void 0?i:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},c.onResizeStart=c.onResizeStart.bind(c),c.onMouseMove=c.onMouseMove.bind(c),c.onMouseUp=c.onMouseUp.bind(c),c}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||vbt},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var n=0,o=0;if(this.resizable&&this.window){var r=this.resizable.offsetWidth,s=this.resizable.offsetHeight,i=this.resizable.style.position;i!=="relative"&&(this.resizable.style.position="relative"),n=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:r,o=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:s,this.resizable.style.position=i}return{width:n,height:o}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var n=this,o=this.props.size,r=function(c){var l;if(typeof n.state[c]>"u"||n.state[c]==="auto")return"auto";if(n.propsSize&&n.propsSize[c]&&(!((l=n.propsSize[c])===null||l===void 0)&&l.toString().endsWith("%"))){if(n.state[c].toString().endsWith("%"))return n.state[c].toString();var u=n.getParentSize(),d=Number(n.state[c].toString().replace("px","")),p=d/u[c]*100;return p+"%"}return cS(n.state[c])},s=o&&typeof o.width<"u"&&!this.state.isResizing?cS(o.width):r("width"),i=o&&typeof o.height<"u"&&!this.state.isResizing?cS(o.height):r("height");return{width:s,height:i}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var n=this.appendBase();if(!n)return{width:0,height:0};var o=!1,r=this.parentNode.style.flexWrap;r!=="wrap"&&(o=!0,this.parentNode.style.flexWrap="wrap"),n.style.position="relative",n.style.minWidth="100%",n.style.minHeight="100%";var s={width:n.offsetWidth,height:n.offsetHeight};return o&&(this.parentNode.style.flexWrap=r),this.removeBase(n),s},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var n=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:n.flexBasis!=="auto"?n.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(n,o){var r=this.propsSize&&this.propsSize[o];return this.state[o]==="auto"&&this.state.original[o]===n&&(typeof r>"u"||r==="auto")?"auto":n},t.prototype.calculateNewMaxFromBoundary=function(n,o){var r=this.props.boundsByDirection,s=this.state.direction,i=r&&Hf("left",s),c=r&&Hf("top",s),l,u;if(this.props.bounds==="parent"){var d=this.parentNode;d&&(l=i?this.resizableRight-this.parentLeft:d.offsetWidth+(this.parentLeft-this.resizableLeft),u=c?this.resizableBottom-this.parentTop:d.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(l=i?this.resizableRight:this.window.innerWidth-this.resizableLeft,u=c?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(l=i?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),u=c?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return l&&Number.isFinite(l)&&(n=n&&n"u"?10:s.width,p=typeof r.width>"u"||r.width<0?n:r.width,f=typeof s.height>"u"?10:s.height,b=typeof r.height>"u"||r.height<0?o:r.height,h=l||0,g=u||0;if(c){var z=(f-h)*this.ratio+g,y=(b-h)*this.ratio+g,x=(d-g)/this.ratio+h,v=(p-g)/this.ratio+h,M=Math.max(d,z),A=Math.min(p,y),_=Math.max(f,x),w=Math.min(b,v);n=_A(n,M,A),o=_A(o,_,w)}else n=_A(n,d,p),o=_A(o,f,b);return{newWidth:n,newHeight:o}},t.prototype.setBoundingClientRect=function(){if(this.props.bounds==="parent"){var n=this.parentNode;if(n){var o=n.getBoundingClientRect();this.parentLeft=o.left,this.parentTop=o.top}}if(this.props.bounds&&typeof this.props.bounds!="string"){var r=this.props.bounds.getBoundingClientRect();this.targetLeft=r.left,this.targetTop=r.top}if(this.resizable){var s=this.resizable.getBoundingClientRect(),i=s.left,c=s.top,l=s.right,u=s.bottom;this.resizableLeft=i,this.resizableRight=l,this.resizableTop=c,this.resizableBottom=u}},t.prototype.onResizeStart=function(n,o){if(!(!this.resizable||!this.window)){var r=0,s=0;if(n.nativeEvent&&xbt(n.nativeEvent)?(r=n.nativeEvent.clientX,s=n.nativeEvent.clientY):n.nativeEvent&&wA(n.nativeEvent)&&(r=n.nativeEvent.touches[0].clientX,s=n.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var i=this.props.onResizeStart(n,o,this.resizable);if(i===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var c,l=this.window.getComputedStyle(this.resizable);if(l.flexBasis!=="auto"){var u=this.parentNode;if(u){var d=this.window.getComputedStyle(u).flexDirection;this.flexDir=d.startsWith("row")?"row":"column",c=l.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var p={original:{x:r,y:s,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:aa(aa({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(n.target).cursor||"auto"}),direction:o,flexBasis:c};this.setState(p)}},t.prototype.onMouseMove=function(n){var o=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&wA(n))try{n.preventDefault(),n.stopPropagation()}catch{}var r=this.props,s=r.maxWidth,i=r.maxHeight,c=r.minWidth,l=r.minHeight,u=wA(n)?n.touches[0].clientX:n.clientX,d=wA(n)?n.touches[0].clientY:n.clientY,p=this.state,f=p.direction,b=p.original,h=p.width,g=p.height,z=this.getParentSize(),y=_bt(z,this.window.innerWidth,this.window.innerHeight,s,i,c,l);s=y.maxWidth,i=y.maxHeight,c=y.minWidth,l=y.minHeight;var x=this.calculateNewSizeFromDirection(u,d),v=x.newHeight,M=x.newWidth,A=this.calculateNewMaxFromBoundary(s,i);this.props.snap&&this.props.snap.x&&(M=oK(M,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(v=oK(v,this.props.snap.y,this.props.snapGap));var _=this.calculateNewSizeFromAspectRatio(M,v,{width:A.maxWidth,height:A.maxHeight},{width:c,height:l});if(M=_.newWidth,v=_.newHeight,this.props.grid){var w=nK(M,this.props.grid[0]),k=nK(v,this.props.grid[1]),q=this.props.snapGap||0,S=q===0||Math.abs(w-M)<=q?w:M,C=q===0||Math.abs(k-v)<=q?k:v;M=S,v=C}var T={width:M-b.width,height:v-b.height};if(h&&typeof h=="string"){if(h.endsWith("%")){var W=M/z.width*100;M=W+"%"}else if(h.endsWith("vw")){var B=M/this.window.innerWidth*100;M=B+"vw"}else if(h.endsWith("vh")){var N=M/this.window.innerHeight*100;M=N+"vh"}}if(g&&typeof g=="string"){if(g.endsWith("%")){var W=v/z.height*100;v=W+"%"}else if(g.endsWith("vw")){var B=v/this.window.innerWidth*100;v=B+"vw"}else if(g.endsWith("vh")){var N=v/this.window.innerHeight*100;v=N+"vh"}}var E={width:this.createSizeForCssProperty(M,"width"),height:this.createSizeForCssProperty(v,"height")};this.flexDir==="row"?E.flexBasis=E.width:this.flexDir==="column"&&(E.flexBasis=E.height);var L=this.state.width!==E.width,I=this.state.height!==E.height,P=this.state.flexBasis!==E.flexBasis,H=L||I||P;H&&Qo.flushSync(function(){o.setState(E)}),this.props.onResize&&H&&this.props.onResize(n,f,this.resizable,T)}},t.prototype.onMouseUp=function(n){var o,r,s=this.state,i=s.isResizing,c=s.direction,l=s.original;if(!(!i||!this.resizable)){var u={width:this.size.width-l.width,height:this.size.height-l.height};this.props.onResizeStop&&this.props.onResizeStop(n,c,this.resizable,u),this.props.size&&this.setState({width:(o=this.props.size.width)!==null&&o!==void 0?o:"auto",height:(r=this.props.size.height)!==null&&r!==void 0?r:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:aa(aa({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(n){var o,r;this.setState({width:(o=n.width)!==null&&o!==void 0?o:"auto",height:(r=n.height)!==null&&r!==void 0?r:"auto"})},t.prototype.renderResizer=function(){var n=this,o=this.props,r=o.enable,s=o.handleStyles,i=o.handleClasses,c=o.handleWrapperStyle,l=o.handleWrapperClass,u=o.handleComponent;if(!r)return null;var d=Object.keys(r).map(function(p){return r[p]!==!1?O.createElement(Abt,{key:p,direction:p,onResizeStart:n.onResizeStart,replaceStyles:s&&s[p],className:i&&i[p]},u&&u[p]?u[p]:null):null});return O.createElement("div",{className:l,style:c},d)},t.prototype.render=function(){var n=this,o=Object.keys(this.props).reduce(function(i,c){return kbt.indexOf(c)!==-1||(i[c]=n.props[c]),i},{}),r=aa(aa(aa({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(r.flexBasis=this.state.flexBasis);var s=this.props.as||"div";return O.createElement(s,aa({style:r,className:this.props.className},o,{ref:function(i){i&&(n.resizable=i)}}),this.state.isResizing&&O.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(O.PureComponent);const Sbt=()=>{},fp={bottom:"bottom",corner:"corner"};function Cbt({axis:e,fadeTimeout:t=180,onResize:n=Sbt,position:o=fp.bottom,showPx:r=!1}){const[s,i]=Ci(),c=!!e,[l,u]=O.useState(!1),[d,p]=O.useState(!1),{width:f,height:b}=i,h=O.useRef(b),g=O.useRef(f),z=O.useRef(),y=O.useCallback(()=>{const v=()=>{c||(u(!1),p(!1))};z.current&&window.clearTimeout(z.current),z.current=window.setTimeout(v,t)},[t,c]);return O.useEffect(()=>{if(!(f!==null||b!==null))return;const M=f!==g.current,A=b!==h.current;if(!(!M&&!A)){if(f&&!g.current&&b&&!h.current){g.current=f,h.current=b;return}M&&(u(!0),g.current=f),A&&(p(!0),h.current=b),n({width:f,height:b}),y()}},[f,b,n,y]),{label:Rbt({axis:e,height:b,moveX:l,moveY:d,position:o,showPx:r,width:f}),resizeListener:s}}function Rbt({axis:e,height:t,moveX:n=!1,moveY:o=!1,position:r=fp.bottom,showPx:s=!1,width:i}){if(!n&&!o)return;if(r===fp.corner)return`${i} x ${t}`;const c=s?" px":"";if(e){if(e==="x"&&n)return`${i}${c}`;if(e==="y"&&o)return`${t}${c}`}if(n&&o)return`${i} x ${t}`;if(n)return`${i}${c}`;if(o)return`${t}${c}`}const Wbt=we("div",{target:"e1wq7y4k3"})({name:"1cd7zoc",styles:"bottom:0;box-sizing:border-box;left:0;pointer-events:none;position:absolute;right:0;top:0"}),Tbt=we("div",{target:"e1wq7y4k2"})({name:"ajymcs",styles:"align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;opacity:0;pointer-events:none;transition:opacity 120ms linear"}),Ebt=we("div",{target:"e1wq7y4k1"})("background:",qe.theme.foreground,";border-radius:",Se.radiusSmall,";box-sizing:border-box;font-family:",wi("default.fontFamily"),";font-size:12px;color:",qe.theme.foregroundInverted,";padding:4px 8px;position:relative;"),Bbt=we(l0,{target:"e1wq7y4k0"})("&&&{color:",qe.theme.foregroundInverted,";display:block;font-size:13px;line-height:1.4;white-space:nowrap;}"),u4=4,Nbt=u4*2.5;function Lbt({label:e,position:t=fp.corner,zIndex:n=1e3,...o},r){const s=!!e,i=t===fp.bottom,c=t===fp.corner;if(!s)return null;let l={opacity:s?1:void 0,zIndex:n},u={};return i&&(l={...l,position:"absolute",bottom:Nbt*-1,left:"50%",transform:"translate(-50%, 0)"},u={transform:"translate(0, 100%)"}),c&&(l={...l,position:"absolute",top:u4,right:ft()?void 0:u4,left:ft()?u4:void 0}),a.jsx(Tbt,{"aria-hidden":"true",className:"components-resizable-tooltip__tooltip-wrapper",ref:r,style:l,...o,children:a.jsx(Ebt,{className:"components-resizable-tooltip__tooltip",style:u,children:a.jsx(Bbt,{as:"span",children:e})})})}const jbt=O.forwardRef(Lbt),Pbt=()=>{};function Ibt({axis:e,className:t,fadeTimeout:n=180,isVisible:o=!0,labelRef:r,onResize:s=Pbt,position:i=fp.bottom,showPx:c=!0,zIndex:l=1e3,...u},d){const{label:p,resizeListener:f}=Cbt({axis:e,fadeTimeout:n,onResize:s,showPx:c,position:i});if(!o)return null;const b=$("components-resize-tooltip",t);return a.jsxs(Wbt,{"aria-hidden":"true",className:b,ref:d,...u,children:[f,a.jsx(jbt,{"aria-hidden":u["aria-hidden"],label:p,position:i,ref:r,zIndex:l})]})}const Dbt=O.forwardRef(Ibt),El="components-resizable-box__handle",qA="components-resizable-box__side-handle",SA="components-resizable-box__corner-handle",Fbt={top:$(El,qA,"components-resizable-box__handle-top"),right:$(El,qA,"components-resizable-box__handle-right"),bottom:$(El,qA,"components-resizable-box__handle-bottom"),left:$(El,qA,"components-resizable-box__handle-left"),topLeft:$(El,SA,"components-resizable-box__handle-top","components-resizable-box__handle-left"),topRight:$(El,SA,"components-resizable-box__handle-top","components-resizable-box__handle-right"),bottomRight:$(El,SA,"components-resizable-box__handle-bottom","components-resizable-box__handle-right"),bottomLeft:$(El,SA,"components-resizable-box__handle-bottom","components-resizable-box__handle-left")},Bl={width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0},$bt={top:Bl,right:Bl,bottom:Bl,left:Bl,topLeft:Bl,topRight:Bl,bottomRight:Bl,bottomLeft:Bl};function Vbt({className:e,children:t,showHandle:n=!0,__experimentalShowTooltip:o=!1,__experimentalTooltipProps:r={},...s},i){return a.jsxs(qbt,{className:$("components-resizable-box__container",n&&"has-show-handle",e),handleClasses:Fbt,handleStyles:$bt,ref:i,...s,children:[t,o&&a.jsx(Dbt,{...r})]})}const Ui=O.forwardRef(Vbt),Hbt=function(){const{MutationObserver:e}=window;if(!e||!document.body||!window.parent)return;function t(){const r=document.body.getBoundingClientRect();window.parent.postMessage({action:"resize",width:r.width,height:r.height},"*")}new e(t).observe(document.body,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),window.addEventListener("load",t,!0);function o(r){r.style&&["width","height","minHeight","maxHeight"].forEach(function(s){/^\\d+(vw|vh|svw|lvw|dvw|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax)$/.test(r.style[s])&&(r.style[s]="")})}Array.prototype.forEach.call(document.querySelectorAll("[style]"),o),Array.prototype.forEach.call(document.styleSheets,function(r){Array.prototype.forEach.call(r.cssRules||r.rules,o)}),document.body.style.position="absolute",document.body.style.width="100%",document.body.setAttribute("data-resizable-iframe-connected",""),t(),window.addEventListener("resize",t,!0)},Ubt=` body { margin: 0; } @@ -384,14 +384,14 @@ The screen with id ${t.id} will not be added.`),e):[...e,t]}function Lft({screen to { transform: rotate(360deg); } - `,e2t=we("svg",{target:"ea4tfvq2"})("width:",Se.spinnerSize,"px;height:",Se.spinnerSize,"px;display:inline-block;margin:5px 11px 0;position:relative;color:",qe.theme.accent,";overflow:visible;opacity:1;background-color:transparent;"),ufe={name:"9s4963",styles:"fill:transparent;stroke-width:1.5px"},t2t=we("circle",{target:"ea4tfvq1"})(ufe,";stroke:",qe.gray[300],";"),n2t=we("path",{target:"ea4tfvq0"})(ufe,";stroke:currentColor;stroke-linecap:round;transform-origin:50% 50%;animation:1.4s linear infinite both ",Jbt,";");function o2t({className:e,...t},n){return a.jsxs(e2t,{className:$("components-spinner",e),viewBox:"0 0 100 100",width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",role:"presentation",focusable:"false",...t,ref:n,children:[a.jsx(t2t,{cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),a.jsx(n2t,{d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"})]})}const u0=O.forwardRef(o2t);function r2t(e,t){const{__nextHasNoMarginBottom:n,__next40pxDefaultSize:o=!1,label:r,hideLabelFromVision:s,value:i,help:c,id:l,className:u,onChange:d,type:p="text",...f}=e,b=He($t,"inspector-text-control",l),h=g=>d(g.target.value);return a.jsx(z0,{__nextHasNoMarginBottom:n,__associatedWPComponentName:"TextControl",label:r,hideLabelFromVision:s,id:b,help:c,className:u,children:a.jsx("input",{className:$("components-text-control__input",{"is-next-40px-default-size":o}),type:p,id:b,value:i,onChange:h,"aria-describedby":c?b+"__help":void 0,ref:t,...f})})}const $t=O.forwardRef(r2t),s2t=ke("box-shadow:0 0 0 transparent;border-radius:",Se.radiusSmall,";border:",Se.borderWidth," solid ",qe.ui.border,";@media not ( prefers-reduced-motion ){transition:box-shadow 0.1s linear;}",""),i2t=ke("border-color:",qe.theme.accent,";box-shadow:0 0 0 calc( ",Se.borderWidthFocus," - ",Se.borderWidth," ) ",qe.theme.accent,";outline:2px solid transparent;",""),a2t=we("textarea",{target:"e1w5nnrk0"})("width:100%;display:block;font-family:",wi("default.fontFamily"),";line-height:20px;padding:9px 11px;",s2t,";font-size:",wi("mobileTextMinFontSize"),";",VVe("small"),"{font-size:",wi("default.fontSize"),";}&:focus{",i2t,";}&::-webkit-input-placeholder{color:",qe.ui.darkGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",qe.ui.darkGrayPlaceholder,";}&:-ms-input-placeholder{color:",qe.ui.darkGrayPlaceholder,";}.is-dark-theme &{&::-webkit-input-placeholder{color:",qe.ui.lightGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",qe.ui.lightGrayPlaceholder,";}&:-ms-input-placeholder{color:",qe.ui.lightGrayPlaceholder,";}}");function c2t(e,t){const{__nextHasNoMarginBottom:n,label:o,hideLabelFromVision:r,value:s,help:i,onChange:c,rows:l=4,className:u,...d}=e,f=`inspector-textarea-control-${He(Pi)}`,b=h=>c(h.target.value);return a.jsx(z0,{__nextHasNoMarginBottom:n,__associatedWPComponentName:"TextareaControl",label:o,hideLabelFromVision:r,id:f,help:i,className:u,children:a.jsx(a2t,{className:"components-textarea-control__input",id:f,rows:l,onChange:b,"aria-describedby":i?f+"__help":void 0,value:s,ref:t,...d})})}const Pi=O.forwardRef(c2t),l2t=e=>{const{text:t="",highlight:n=""}=e,o=n.trim();if(!o)return a.jsx(a.Fragment,{children:t});const r=new RegExp(`(${nz(o)})`,"gi");return z1(t.replace(r,"$&"),{mark:a.jsx("mark",{})})};function u2t(e){const{children:t}=e;return a.jsxs("div",{className:"components-tip",children:[a.jsx(t0,{icon:uQe}),a.jsx("p",{children:t})]})}function d2t({__nextHasNoMarginBottom:e,label:t,checked:n,help:o,className:r,onChange:s,disabled:i},c){function l(g){s(g.target.checked)}const d=`inspector-toggle-control-${He(Be)}`,f=x0()("components-toggle-control",r,!e&&ke({marginBottom:Ce(3)},"",""));e||Re("Bottom margin styles for wp.components.ToggleControl",{since:"6.7",version:"7.0",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."});let b,h;return o&&(typeof o=="function"?n!==void 0&&(h=o(n)):h=o,h&&(b=d+"__help")),a.jsx(z0,{id:d,help:h&&a.jsx("span",{className:"components-toggle-control__help",children:h}),className:f,__nextHasNoMarginBottom:!0,children:a.jsxs(Je,{justify:"flex-start",spacing:2,children:[a.jsx(aft,{id:d,checked:n,onChange:l,"aria-describedby":b,disabled:i,ref:c}),a.jsx(Vi,{as:"label",htmlFor:d,className:$("components-toggle-control__label",{"is-disabled":i}),children:t})]})})}const Be=O.forwardRef(d2t),Zu=O.createContext(void 0);function p2t({children:e,as:t,...n},o){const r=O.useContext(Zu),s=typeof e=="function";if(!s&&!t)return globalThis.SCRIPT_DEBUG===!0&&Xt("`ToolbarItem` is a generic headless component. You must pass either a `children` prop as a function or an `as` prop as a component. See https://developer.wordpress.org/block-editor/components/toolbar-item/"),null;const i={...n,ref:o,"data-toolbar-item":!0};if(!r)return t?a.jsx(t,{...i,children:e}):s?e(i):null;const c=s?e:t&&a.jsx(t,{children:e});return a.jsx(SFe,{accessibleWhenDisabled:!0,...i,store:r,render:c})}const Ko=O.forwardRef(p2t),f2t=({children:e,className:t})=>a.jsx("div",{className:t,children:e});function b2t({isDisabled:e,...t}){return{disabled:e,...t}}function h2t(e,t){const{children:n,className:o,containerClassName:r,extraProps:s,isActive:i,title:c,...l}=b2t(e);return O.useContext(Zu)?a.jsx(Ko,{className:$("components-toolbar-button",o),...s,...l,ref:t,children:d=>a.jsx(fe,{label:c,isPressed:i,...d,children:n})}):a.jsx(f2t,{className:r,children:a.jsx(fe,{ref:t,icon:l.icon,label:c,shortcut:l.shortcut,"data-subscript":l.subscript,onClick:d=>{d.stopPropagation(),l.onClick&&l.onClick(d)},className:$("components-toolbar__control",o),isPressed:i,accessibleWhenDisabled:!0,"data-toolbar-item":!0,...s,...l,children:n})})}const bt=O.forwardRef(h2t),m2t=({className:e,children:t,...n})=>a.jsx("div",{className:e,...n,children:t});function M2t({controls:e=[],toggleProps:t,...n}){const o=O.useContext(Zu),r=s=>a.jsx(E1,{controls:e,toggleProps:{...s,"data-toolbar-item":!0},...n});return o?a.jsx(Ko,{...t,children:r}):r(t)}function g2t(e){return Array.isArray(e)&&Array.isArray(e[0])}function c0({controls:e=[],children:t,className:n,isCollapsed:o,title:r,...s}){const i=O.useContext(Zu);if((!e||!e.length)&&!t)return null;const c=$(i?"components-toolbar-group":"components-toolbar",n);let l;return g2t(e)?l=e:l=[e],o?a.jsx(M2t,{label:r,controls:l,className:c,children:t,...s}):a.jsxs(m2t,{className:c,...s,children:[l?.flatMap((u,d)=>u.map((p,f)=>a.jsx(bt,{containerClassName:d>0&&f===0?"has-left-divider":void 0,...p},[d,f].join()))),t]})}function z2t({label:e,...t},n){const o=Nie({focusLoop:!0,rtl:ft()});return a.jsx(Zu.Provider,{value:o,children:a.jsx(wFe,{ref:n,"aria-label":e,store:o,...t})})}const O2t=O.forwardRef(z2t);function A2t({className:e,label:t,variant:n,...o},r){const s=n!==void 0,i=O.useMemo(()=>s?{}:{DropdownMenu:{variant:"toolbar"},Dropdown:{variant:"toolbar"}},[s]);if(!t){Re("Using Toolbar without label prop",{since:"5.6",alternative:"ToolbarGroup component",link:"https://developer.wordpress.org/block-editor/components/toolbar/"});const{title:l,...u}=o;return a.jsx(c0,{isCollapsed:!1,...u,className:e})}const c=$("components-accessible-toolbar",e,n&&`is-${n}`);return a.jsx(O3,{value:i,children:a.jsx(O2t,{className:c,label:t,ref:r,...o})})}const y2t=O.forwardRef(A2t);function v2t(e,t){return O.useContext(Zu)?a.jsx(Ko,{ref:t,...e.toggleProps,children:o=>a.jsx(E1,{...e,popoverProps:{...e.popoverProps},toggleProps:o})}):a.jsx(E1,{...e})}const _l=O.forwardRef(v2t),bp={columns:e=>ke("grid-template-columns:",`repeat( ${e}, minmax(0, 1fr) )`,";",""),spacing:ke("column-gap:",Ce(4),";row-gap:",Ce(4),";",""),item:{fullWidth:{name:"18iuzk9",styles:"grid-column:1/-1"}}},x2t=e=>ke(bp.columns(e)," ",bp.spacing," border-top:",Se.borderWidth," solid ",qe.gray[300],";margin-top:-1px;padding:",Ce(4),";",""),_2t=e=>ke(">div:not( :first-of-type ){display:grid;",bp.columns(e)," ",bp.spacing," ",bp.item.fullWidth,";}",""),w2t={name:"huufmu",styles:">div:not( :first-of-type ){display:none;}"},k2t=ke(bp.item.fullWidth," gap:",Ce(2),";.components-dropdown-menu{margin:",Ce(-1)," 0;line-height:0;}&&&& .components-dropdown-menu__toggle{padding:0;min-width:",Ce(6),";}",""),q2t={name:"1pmxm02",styles:"font-size:inherit;font-weight:500;line-height:normal;&&{margin:0;}"},S2t=ke(bp.item.fullWidth,"&>div,&>fieldset{padding-bottom:0;margin-bottom:0;max-width:100%;}&& ",fue,"{margin-bottom:0;",bue,":last-child{margin-bottom:0;}}",tz,"{margin-bottom:0;}&& ",Kle,"{label{line-height:1.4em;}}",""),C2t={name:"eivff4",styles:"display:none"},R2t={name:"16gsvie",styles:"min-width:200px"},dfe=we("span",{target:"ews648u0"})("color:",qe.theme.accentDarker10,";font-size:11px;font-weight:500;line-height:1.4;",dn({marginLeft:Ce(3)})," text-transform:uppercase;"),W2t=ke("color:",qe.gray[900],";&&[aria-disabled='true']{color:",qe.gray[700],";opacity:1;&:hover{color:",qe.gray[700],";}",dfe,"{opacity:0.3;}}",""),Nm=()=>{},cz=O.createContext({menuItems:{default:{},optional:{}},hasMenuItems:!1,isResetting:!1,shouldRenderPlaceholderItems:!1,registerPanelItem:Nm,deregisterPanelItem:Nm,flagItemCustomization:Nm,registerResetAllFilter:Nm,deregisterResetAllFilter:Nm,areAllOptionalControlsHidden:!0}),pfe=()=>O.useContext(cz);function T2t(e){const{className:t,headingLevel:n=2,...o}=Ut(e,"ToolsPanelHeader"),r=x0(),s=O.useMemo(()=>r(k2t,t),[t,r]),i=O.useMemo(()=>r(R2t),[r]),c=O.useMemo(()=>r(q2t),[r]),l=O.useMemo(()=>r(W2t),[r]),{menuItems:u,hasMenuItems:d,areAllOptionalControlsHidden:p}=pfe();return{...o,areAllOptionalControlsHidden:p,defaultControlsItemClassName:l,dropdownMenuClassName:i,hasMenuItems:d,headingClassName:c,headingLevel:n,menuItems:u,className:s}}const E2t=({itemClassName:e,items:t,toggleItem:n})=>{if(!t.length)return null;const o=a.jsx(dfe,{"aria-hidden":!0,children:m("Reset")});return a.jsx(a.Fragment,{children:t.map(([r,s])=>s?a.jsx(tt,{className:e,role:"menuitem",label:le(m("Reset %s"),r),onClick:()=>{n(r),At(le(m("%s reset to default"),r),"assertive")},suffix:o,children:r},r):a.jsx(tt,{icon:no,className:e,role:"menuitemcheckbox",isSelected:!0,"aria-disabled":!0,children:r},r))})},B2t=({items:e,toggleItem:t})=>e.length?a.jsx(a.Fragment,{children:e.map(([n,o])=>{const r=le(m(o?"Hide and reset %s":"Show %s"),n);return a.jsx(tt,{icon:o?no:null,isSelected:o,label:r,onClick:()=>{At(le(m(o?"%s hidden and reset to default":"%s is now visible"),n),"assertive"),t(n)},role:"menuitemcheckbox",children:n},n)})}):null,N2t=(e,t)=>{const{areAllOptionalControlsHidden:n,defaultControlsItemClassName:o,dropdownMenuClassName:r,hasMenuItems:s,headingClassName:i,headingLevel:c=2,label:l,menuItems:u,resetAll:d,toggleItem:p,dropdownMenuProps:f,...b}=T2t(e);if(!l)return null;const h=Object.entries(u?.default||{}),g=Object.entries(u?.optional||{}),z=n?is:Ol,y=le(Oe("%s options","Button label to reveal tool panel options"),l),x=n?m("All options are currently hidden"):void 0,v=[...h,...g].some(([,M])=>M);return a.jsxs(Je,{...b,ref:t,children:[a.jsx(ec,{level:c,className:i,children:l}),s&&a.jsx(E1,{...f,icon:z,label:y,menuProps:{className:r},toggleProps:{size:"small",description:x},children:()=>a.jsxs(a.Fragment,{children:[a.jsxs(Yt,{label:l,children:[a.jsx(E2t,{items:h,toggleItem:p,itemClassName:o}),a.jsx(B2t,{items:g,toggleItem:p})]}),a.jsx(Yt,{children:a.jsx(tt,{"aria-disabled":!v,variant:"tertiary",onClick:()=>{v&&(d(),At(m("All options reset"),"assertive"))},children:m("Reset all")})})]})})]})},L2t=Qt(N2t,"ToolsPanelHeader"),sK=2,iK=({panelItems:e,shouldReset:t,currentMenuItems:n,menuItemOrder:o})=>{const r={default:{},optional:{}},s={default:{},optional:{}};return e.forEach(({hasValue:i,isShownByDefault:c,label:l})=>{const u=c?"default":"optional",d=n?.[u]?.[l],p=d||i();r[u][l]=t?!1:p}),o.forEach(i=>{r.default.hasOwnProperty(i)&&(s.default[i]=r.default[i]),r.optional.hasOwnProperty(i)&&(s.optional[i]=r.optional[i])}),Object.keys(r.default).forEach(i=>{s.default.hasOwnProperty(i)||(s.default[i]=r.default[i])}),Object.keys(r.optional).forEach(i=>{s.optional.hasOwnProperty(i)||(s.optional[i]=r.optional[i])}),s},lS=e=>e&&Object.keys(e).length===0;function j2t(e){const{className:t,headingLevel:n=2,resetAll:o,panelId:r,hasInnerWrapper:s=!1,shouldRenderPlaceholderItems:i=!1,__experimentalFirstVisibleItemClass:c,__experimentalLastVisibleItemClass:l,...u}=Ut(e,"ToolsPanel"),d=O.useRef(!1),p=d.current;O.useEffect(()=>{p&&(d.current=!1)},[p]);const[f,b]=O.useState([]),[h,g]=O.useState([]),[z,y]=O.useState([]),x=O.useCallback(P=>{b(H=>{const U=[...H],X=U.findIndex(Z=>Z.label===P.label);return X!==-1&&U.splice(X,1),[...U,P]}),g(H=>H.includes(P.label)?H:[...H,P.label])},[b,g]),v=O.useCallback(P=>{b(H=>{const U=[...H],X=U.findIndex(Z=>Z.label===P);return X!==-1&&U.splice(X,1),U})},[b]),M=O.useCallback(P=>{y(H=>[...H,P])},[y]),A=O.useCallback(P=>{y(H=>H.filter(U=>U!==P))},[y]),[_,w]=O.useState({default:{},optional:{}});O.useEffect(()=>{w(P=>iK({panelItems:f,shouldReset:!1,currentMenuItems:P,menuItemOrder:h}))},[f,w,h]);const k=O.useCallback((P,H,U="default")=>{w(X=>({...X,[U]:{...X[U],[H]:P}}))},[w]),[q,S]=O.useState(!1);O.useEffect(()=>{if(lS(_?.default)&&!lS(_?.optional)){const P=!Object.entries(_.optional).some(([,H])=>H);S(P)}},[_,S]);const C=x0(),T=O.useMemo(()=>{const P=s&&_2t(sK),H=lS(_?.default)&&q&&w2t;return C(x2t(sK),P,H,t)},[q,t,C,s,_]),W=O.useCallback(P=>{const H=f.find(Z=>Z.label===P);if(!H)return;const U=H.isShownByDefault?"default":"optional",X={..._,[U]:{..._[U],[P]:!_[U][P]}};w(X)},[_,f,w]),B=O.useCallback(()=>{typeof o=="function"&&(d.current=!0,o(z));const P=iK({panelItems:f,menuItemOrder:h,shouldReset:!0});w(P)},[f,z,o,w,h]),N=P=>{const H=_.optional||{};return P.find(X=>X.isShownByDefault||!!H[X.label])?.label},E=N(f),L=N([...f].reverse()),I=O.useMemo(()=>({areAllOptionalControlsHidden:q,deregisterPanelItem:v,deregisterResetAllFilter:A,firstDisplayedItem:E,flagItemCustomization:k,hasMenuItems:!!f.length,isResetting:d.current,lastDisplayedItem:L,menuItems:_,panelId:r,registerPanelItem:x,registerResetAllFilter:M,shouldRenderPlaceholderItems:i,__experimentalFirstVisibleItemClass:c,__experimentalLastVisibleItemClass:l}),[q,v,A,E,k,L,_,r,f,M,x,i,c,l]);return{...u,headingLevel:n,panelContext:I,resetAllItems:B,toggleItem:W,className:T}}const P2t=(e,t)=>{const{children:n,label:o,panelContext:r,resetAllItems:s,toggleItem:i,headingLevel:c,dropdownMenuProps:l,...u}=j2t(e);return a.jsx(dw,{...u,columns:2,ref:t,children:a.jsxs(cz.Provider,{value:r,children:[a.jsx(L2t,{label:o,resetAll:s,toggleItem:i,headingLevel:c,dropdownMenuProps:l}),n]})})},Tr=Qt(P2t,"ToolsPanel"),I2t=()=>{};function D2t(e){const{className:t,hasValue:n,isShownByDefault:o=!1,label:r,panelId:s,resetAllFilter:i=I2t,onDeselect:c,onSelect:l,...u}=Ut(e,"ToolsPanelItem"),{panelId:d,menuItems:p,registerResetAllFilter:f,deregisterResetAllFilter:b,registerPanelItem:h,deregisterPanelItem:g,flagItemCustomization:z,isResetting:y,shouldRenderPlaceholderItems:x,firstDisplayedItem:v,lastDisplayedItem:M,__experimentalFirstVisibleItemClass:A,__experimentalLastVisibleItemClass:_}=pfe(),w=O.useCallback(n,[s]),k=O.useCallback(i,[s]),q=t1(d),S=d===s||d===null;O.useLayoutEffect(()=>(S&&q!==null&&h({hasValue:w,isShownByDefault:o,label:r,panelId:s}),()=>{(q===null&&d||d===s)&&g(r)}),[d,S,o,r,w,s,q,h,g]),O.useEffect(()=>(S&&f(k),()=>{S&&b(k)}),[f,b,k,S]);const C=o?"default":"optional",T=p?.[C]?.[r],W=t1(T),B=p?.[C]?.[r]!==void 0,N=n();O.useEffect(()=>{!o&&!N||z(N,r,C)},[N,C,r,z,o]),O.useEffect(()=>{!B||y||!S||(T&&!N&&!W&&l?.(),!T&&N&&W&&c?.())},[S,T,B,y,N,W,l,c]);const E=o?p?.[C]?.[r]!==void 0:T,L=x0(),I=O.useMemo(()=>{const P=x&&!E;return L(S2t,P&&C2t,!P&&t,v===r&&A,M===r&&_)},[E,x,t,L,v,M,A,_,r]);return{...u,isShown:E,shouldRenderPlaceholder:x,className:I}}const F2t=(e,t)=>{const{children:n,isShown:o,shouldRenderPlaceholder:r,...s}=D2t(e);return o?a.jsx(C0,{...s,ref:t,children:n}):r?a.jsx(C0,{...s,ref:t}):null},Rt=Qt(F2t,"ToolsPanelItem"),ffe=O.createContext(void 0),$2t=()=>O.useContext(ffe),V2t=ffe.Provider;function H2t({children:e}){const[t,n]=O.useState(),o=O.useMemo(()=>({lastFocusedElement:t,setLastFocusedElement:n}),[t]);return a.jsx(V2t,{value:o,children:e})}function U2t({children:e,level:t,positionInSet:n,setSize:o,isExpanded:r,...s},i){return a.jsx("tr",{...s,ref:i,role:"row","aria-level":t,"aria-posinset":n,"aria-setsize":o,"aria-expanded":r,children:e})}const bfe=O.forwardRef(U2t),X2t=O.forwardRef(function({children:t,as:n,...o},r){const s=O.useRef(),i=r||s,{lastFocusedElement:c,setLastFocusedElement:l}=$2t();let u;c&&(u=c===("current"in i?i.current:void 0)?0:-1);const p={ref:i,tabIndex:u,onFocus:f=>l?.(f.target),...o};return typeof t=="function"?t(p):n?a.jsx(n,{...p,children:t}):null});function G2t({children:e,...t},n){return a.jsx(X2t,{ref:n,...t,children:e})}const BW=O.forwardRef(G2t);function K2t({children:e,withoutGridItem:t=!1,...n},o){return a.jsx("td",{...n,role:"gridcell",children:t?a.jsx(a.Fragment,{children:e}):a.jsx(BW,{ref:o,children:e})})}const d4=O.forwardRef(K2t);function Lm(e){return Nn.focusable.find(e,{sequential:!0}).filter(n=>n.closest('[role="row"]')===e)}function Y2t({children:e,onExpandRow:t=()=>{},onCollapseRow:n=()=>{},onFocusRow:o=()=>{},applicationAriaLabel:r,...s},i){const c=O.useCallback(l=>{const{keyCode:u,metaKey:d,ctrlKey:p,altKey:f}=l;if(d||p||f||![xi,Do,Bs,Ns,Vb,Ag].includes(u))return;l.stopPropagation();const{activeElement:h}=document,{currentTarget:g}=l;if(!h||!g.contains(h))return;const z=h.closest('[role="row"]');if(!z)return;const y=Lm(z),x=y.indexOf(h),v=x===0,M=v&&(z.getAttribute("data-expanded")==="false"||z.getAttribute("aria-expanded")==="false")&&u===Ns;if([Bs,Ns].includes(u)){let _;if(u===Bs?_=Math.max(0,x-1):_=Math.min(x+1,y.length-1),v){if(u===Bs){var A;if(z.getAttribute("data-expanded")==="true"||z.getAttribute("aria-expanded")==="true"){n(z),l.preventDefault();return}const w=Math.max(parseInt((A=z?.getAttribute("aria-level"))!==null&&A!==void 0?A:"1",10)-1,1),k=Array.from(g.querySelectorAll('[role="row"]'));let q=z;const S=k.indexOf(z);for(let C=S;C>=0;C--){const T=k[C].getAttribute("aria-level");if(T!==null&&parseInt(T,10)===w){q=k[C];break}}Lm(q)?.[0]?.focus()}if(u===Ns){if(z.getAttribute("data-expanded")==="false"||z.getAttribute("aria-expanded")==="false"){t(z),l.preventDefault();return}const w=Lm(z);w.length>0&&w[_]?.focus()}l.preventDefault();return}if(M)return;y[_].focus(),l.preventDefault()}else if([xi,Do].includes(u)){const _=Array.from(g.querySelectorAll('[role="row"]')),w=_.indexOf(z);let k;if(u===xi?k=Math.max(0,w-1):k=Math.min(w+1,_.length-1),k===w){l.preventDefault();return}const q=Lm(_[k]);if(!q||!q.length){l.preventDefault();return}const S=Math.min(x,q.length-1);q[S].focus(),o(l,z,_[k]),l.preventDefault()}else if([Vb,Ag].includes(u)){const _=Array.from(g.querySelectorAll('[role="row"]')),w=_.indexOf(z);let k;if(u===Vb?k=0:k=_.length-1,k===w){l.preventDefault();return}const q=Lm(_[k]);if(!q||!q.length){l.preventDefault();return}const S=Math.min(x,q.length-1);q[S].focus(),o(l,z,_[k]),l.preventDefault()}},[t,n,o]);return a.jsx(H2t,{children:a.jsx("div",{role:"application","aria-label":r,children:a.jsx("table",{...s,role:"treegrid",onKeyDown:c,ref:i,children:a.jsx("tbody",{children:e})})})})}const Z2t=O.forwardRef(Y2t),hfe=we("div",{target:"ebn2ljm1"})("&:not( :first-of-type ){",({offsetAmount:e})=>ke({marginInlineStart:e},"",""),";}",({zIndex:e})=>ke({zIndex:e},"",""),";");var Q2t={name:"rs0gp6",styles:"grid-row-start:1;grid-column-start:1"};const J2t=we("div",{target:"ebn2ljm0"})("display:inline-grid;grid-auto-flow:column;position:relative;&>",hfe,"{position:relative;justify-self:start;",({isLayered:e})=>e?Q2t:void 0,";}");function eht(e,t){const{children:n,className:o,isLayered:r=!0,isReversed:s=!1,offset:i=0,...c}=Ut(e,"ZStack"),l=Mue(n),u=l.length-1,d=l.map((p,f)=>{const b=s?u-f:f,h=r?i*f:i,g=O.isValidElement(p)?p.key:f;return a.jsx(hfe,{offsetAmount:h,zIndex:b,children:p},g)});return a.jsx(J2t,{...c,className:o,isLayered:r,ref:t,children:d})}const mfe=Qt(eht,"ZStack"),tht={previous:[{modifier:"ctrlShift",character:"`"},{modifier:"ctrlShift",character:"~"},{modifier:"access",character:"p"}],next:[{modifier:"ctrl",character:"`"},{modifier:"access",character:"n"}]};function nht(e=tht){const t=O.useRef(null),[n,o]=O.useState(!1);function r(i){var c;const l=Array.from((c=t.current?.querySelectorAll('[role="region"][tabindex="-1"]'))!==null&&c!==void 0?c:[]);if(!l.length)return;let u=l[0];const d=t.current?.ownerDocument?.activeElement?.closest('[role="region"][tabindex="-1"]'),p=d?l.indexOf(d):-1;if(p!==-1){let f=p+i;f=f===-1?l.length-1:f,f=f===l.length?0:f,u=l[f]}u.focus(),o(!0)}const s=Et(i=>{function c(){o(!1)}return i.addEventListener("click",c),()=>{i.removeEventListener("click",c)}},[o]);return{ref:Gt([t,s]),className:n?"is-focusing-regions":"",onKeyDown(i){e.previous.some(({modifier:c,character:l})=>Fs[c](i,l))?r(-1):e.next.some(({modifier:c,character:l})=>Fs[c](i,l))&&r(1)}}}const oht=Sn(e=>function(n){const o=xB();return a.jsx("div",{ref:o,tabIndex:-1,children:a.jsx(e,{...n})})},"withConstrainedTabbing"),rht=16;function gd(e){return Sn(t=>{const n="core/with-filters/"+e;let o;function r(){o===void 0&&(o=_n(e,t))}class s extends O.Component{constructor(u){super(u),r()}componentDidMount(){s.instances.push(this),s.instances.length===1&&(i$("hookRemoved",n,c),i$("hookAdded",n,c))}componentWillUnmount(){s.instances=s.instances.filter(u=>u!==this),s.instances.length===0&&(a$("hookRemoved",n),a$("hookAdded",n))}render(){return a.jsx(o,{...this.props})}}s.instances=[];const i=jr(()=>{o=_n(e,t),s.instances.forEach(l=>{l.forceUpdate()})},rht);function c(l){l===e&&i()}return s},"withFilters")}function sht(e){return e instanceof O.Component||typeof e=="function"}const iht=Sn(e=>{const t=({onFocusReturn:n}={})=>o=>s=>{const i=_B(n);return a.jsx("div",{ref:i,children:a.jsx(o,{...s})})};if(sht(e)){const n=e;return t()(n)}return t(e)},"withFocusReturn"),aht=Sn(e=>{function t(r,s){const[i,c]=O.useState([]),l=O.useMemo(()=>{const d=p=>{const f=p.id?p:{...p,id:Xc()};c(b=>[...b,f])};return{createNotice:d,createErrorNotice:p=>{d({status:"error",content:p})},removeNotice:p=>{c(f=>f.filter(b=>b.id!==p))},removeAllNotices:()=>{c([])}}},[]),u={...r,noticeList:i,noticeOperations:l,noticeUI:i.length>0&&a.jsx(EW,{className:"components-with-notices-ui",notices:i,onRemove:l.removeNotice})};return n?a.jsx(e,{...u,ref:s}):a.jsx(e,{...u})}let n;const{render:o}=e;return typeof o=="function"?(n=!0,O.forwardRef(t)):t},"withNotices"),Cb={SCALE_AMOUNT_OUTER:.82,SCALE_AMOUNT_CONTENT:.9,DURATION:{IN:"400ms",OUT:"200ms"},EASING:"cubic-bezier(0.33, 0, 0, 1)"},Mfe=Ce(1),cht=Ce(2),hj=Ce(3),lht=qe.theme.gray[300],uht=qe.theme.gray[200],mj=qe.theme.gray[700],dht=qe.theme.gray[100],gfe=qe.theme.foreground,pht=`0 0 0 ${Se.borderWidth} ${lht}, ${Se.elevationXSmall}`,fht=`0 0 0 ${Se.borderWidth} ${gfe}`,zfe="minmax( 0, max-content ) 1fr",bht=we("div",{target:"e1kdzosf14"})("position:relative;background-color:",qe.ui.background,";border-radius:",Se.radiusMedium,";",e=>ke("box-shadow:",e.variant==="toolbar"?fht:pht,";","")," overflow:hidden;@media not ( prefers-reduced-motion ){transition-property:transform,opacity;transition-timing-function:",Cb.EASING,";transition-duration:",Cb.DURATION.IN,";will-change:transform,opacity;opacity:0;&:has( [data-enter] ){opacity:1;}&:has( [data-leave] ){transition-duration:",Cb.DURATION.OUT,";}&:has( [data-side='bottom'] ),&:has( [data-side='top'] ){transform:scaleY( ",Cb.SCALE_AMOUNT_OUTER," );}&:has( [data-side='bottom'] ){transform-origin:top;}&:has( [data-side='top'] ){transform-origin:bottom;}&:has( [data-enter][data-side='bottom'] ),&:has( [data-enter][data-side='top'] ),&:has( [data-leave][data-side='bottom'] ),&:has( [data-leave][data-side='top'] ){transform:scaleY( 1 );}}"),V2=we("div",{target:"e1kdzosf13"})("position:relative;z-index:1000000;display:grid;grid-template-columns:",zfe,";grid-template-rows:auto;box-sizing:border-box;min-width:160px;max-width:320px;max-height:var( --popover-available-height );padding:",Mfe,`;overscroll-behavior:contain;overflow:auto;outline:2px solid transparent!important;@media not ( prefers-reduced-motion ){transition:inherit;transform-origin:inherit;&[data-side='bottom'],&[data-side='top']{transform:scaleY( + `,e2t=we("svg",{target:"ea4tfvq2"})("width:",Se.spinnerSize,"px;height:",Se.spinnerSize,"px;display:inline-block;margin:5px 11px 0;position:relative;color:",qe.theme.accent,";overflow:visible;opacity:1;background-color:transparent;"),ufe={name:"9s4963",styles:"fill:transparent;stroke-width:1.5px"},t2t=we("circle",{target:"ea4tfvq1"})(ufe,";stroke:",qe.gray[300],";"),n2t=we("path",{target:"ea4tfvq0"})(ufe,";stroke:currentColor;stroke-linecap:round;transform-origin:50% 50%;animation:1.4s linear infinite both ",Jbt,";");function o2t({className:e,...t},n){return a.jsxs(e2t,{className:$("components-spinner",e),viewBox:"0 0 100 100",width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",role:"presentation",focusable:"false",...t,ref:n,children:[a.jsx(t2t,{cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),a.jsx(n2t,{d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"})]})}const u0=O.forwardRef(o2t);function r2t(e,t){const{__nextHasNoMarginBottom:n,__next40pxDefaultSize:o=!1,label:r,hideLabelFromVision:s,value:i,help:c,id:l,className:u,onChange:d,type:p="text",...f}=e,b=He($t,"inspector-text-control",l),h=g=>d(g.target.value);return a.jsx(z0,{__nextHasNoMarginBottom:n,__associatedWPComponentName:"TextControl",label:r,hideLabelFromVision:s,id:b,help:c,className:u,children:a.jsx("input",{className:$("components-text-control__input",{"is-next-40px-default-size":o}),type:p,id:b,value:i,onChange:h,"aria-describedby":c?b+"__help":void 0,ref:t,...f})})}const $t=O.forwardRef(r2t),s2t=ke("box-shadow:0 0 0 transparent;border-radius:",Se.radiusSmall,";border:",Se.borderWidth," solid ",qe.ui.border,";@media not ( prefers-reduced-motion ){transition:box-shadow 0.1s linear;}",""),i2t=ke("border-color:",qe.theme.accent,";box-shadow:0 0 0 calc( ",Se.borderWidthFocus," - ",Se.borderWidth," ) ",qe.theme.accent,";outline:2px solid transparent;",""),a2t=we("textarea",{target:"e1w5nnrk0"})("width:100%;display:block;font-family:",wi("default.fontFamily"),";line-height:20px;padding:9px 11px;",s2t,";font-size:",wi("mobileTextMinFontSize"),";",VVe("small"),"{font-size:",wi("default.fontSize"),";}&:focus{",i2t,";}&::-webkit-input-placeholder{color:",qe.ui.darkGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",qe.ui.darkGrayPlaceholder,";}&:-ms-input-placeholder{color:",qe.ui.darkGrayPlaceholder,";}.is-dark-theme &{&::-webkit-input-placeholder{color:",qe.ui.lightGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",qe.ui.lightGrayPlaceholder,";}&:-ms-input-placeholder{color:",qe.ui.lightGrayPlaceholder,";}}");function c2t(e,t){const{__nextHasNoMarginBottom:n,label:o,hideLabelFromVision:r,value:s,help:i,onChange:c,rows:l=4,className:u,...d}=e,f=`inspector-textarea-control-${He(Pi)}`,b=h=>c(h.target.value);return a.jsx(z0,{__nextHasNoMarginBottom:n,__associatedWPComponentName:"TextareaControl",label:o,hideLabelFromVision:r,id:f,help:i,className:u,children:a.jsx(a2t,{className:"components-textarea-control__input",id:f,rows:l,onChange:b,"aria-describedby":i?f+"__help":void 0,value:s,ref:t,...d})})}const Pi=O.forwardRef(c2t),l2t=e=>{const{text:t="",highlight:n=""}=e,o=n.trim();if(!o)return a.jsx(a.Fragment,{children:t});const r=new RegExp(`(${nz(o)})`,"gi");return z1(t.replace(r,"$&"),{mark:a.jsx("mark",{})})};function u2t(e){const{children:t}=e;return a.jsxs("div",{className:"components-tip",children:[a.jsx(t0,{icon:uQe}),a.jsx("p",{children:t})]})}function d2t({__nextHasNoMarginBottom:e,label:t,checked:n,help:o,className:r,onChange:s,disabled:i},c){function l(g){s(g.target.checked)}const d=`inspector-toggle-control-${He(Be)}`,f=x0()("components-toggle-control",r,!e&&ke({marginBottom:Ce(3)},"",""));e||Re("Bottom margin styles for wp.components.ToggleControl",{since:"6.7",version:"7.0",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."});let b,h;return o&&(typeof o=="function"?n!==void 0&&(h=o(n)):h=o,h&&(b=d+"__help")),a.jsx(z0,{id:d,help:h&&a.jsx("span",{className:"components-toggle-control__help",children:h}),className:f,__nextHasNoMarginBottom:!0,children:a.jsxs(Je,{justify:"flex-start",spacing:2,children:[a.jsx(aft,{id:d,checked:n,onChange:l,"aria-describedby":b,disabled:i,ref:c}),a.jsx(Vi,{as:"label",htmlFor:d,className:$("components-toggle-control__label",{"is-disabled":i}),children:t})]})})}const Be=O.forwardRef(d2t),Zu=O.createContext(void 0);function p2t({children:e,as:t,...n},o){const r=O.useContext(Zu),s=typeof e=="function";if(!s&&!t)return globalThis.SCRIPT_DEBUG===!0&&Xt("`ToolbarItem` is a generic headless component. You must pass either a `children` prop as a function or an `as` prop as a component. See https://developer.wordpress.org/block-editor/components/toolbar-item/"),null;const i={...n,ref:o,"data-toolbar-item":!0};if(!r)return t?a.jsx(t,{...i,children:e}):s?e(i):null;const c=s?e:t&&a.jsx(t,{children:e});return a.jsx(SFe,{accessibleWhenDisabled:!0,...i,store:r,render:c})}const Ko=O.forwardRef(p2t),f2t=({children:e,className:t})=>a.jsx("div",{className:t,children:e});function b2t({isDisabled:e,...t}){return{disabled:e,...t}}function h2t(e,t){const{children:n,className:o,containerClassName:r,extraProps:s,isActive:i,title:c,...l}=b2t(e);return O.useContext(Zu)?a.jsx(Ko,{className:$("components-toolbar-button",o),...s,...l,ref:t,children:d=>a.jsx(fe,{label:c,isPressed:i,...d,children:n})}):a.jsx(f2t,{className:r,children:a.jsx(fe,{ref:t,icon:l.icon,label:c,shortcut:l.shortcut,"data-subscript":l.subscript,onClick:d=>{d.stopPropagation(),l.onClick&&l.onClick(d)},className:$("components-toolbar__control",o),isPressed:i,accessibleWhenDisabled:!0,"data-toolbar-item":!0,...s,...l,children:n})})}const bt=O.forwardRef(h2t),m2t=({className:e,children:t,...n})=>a.jsx("div",{className:e,...n,children:t});function M2t({controls:e=[],toggleProps:t,...n}){const o=O.useContext(Zu),r=s=>a.jsx(E1,{controls:e,toggleProps:{...s,"data-toolbar-item":!0},...n});return o?a.jsx(Ko,{...t,children:r}):r(t)}function g2t(e){return Array.isArray(e)&&Array.isArray(e[0])}function c0({controls:e=[],children:t,className:n,isCollapsed:o,title:r,...s}){const i=O.useContext(Zu);if((!e||!e.length)&&!t)return null;const c=$(i?"components-toolbar-group":"components-toolbar",n);let l;return g2t(e)?l=e:l=[e],o?a.jsx(M2t,{label:r,controls:l,className:c,children:t,...s}):a.jsxs(m2t,{className:c,...s,children:[l?.flatMap((u,d)=>u.map((p,f)=>a.jsx(bt,{containerClassName:d>0&&f===0?"has-left-divider":void 0,...p},[d,f].join()))),t]})}function z2t({label:e,...t},n){const o=Nie({focusLoop:!0,rtl:ft()});return a.jsx(Zu.Provider,{value:o,children:a.jsx(wFe,{ref:n,"aria-label":e,store:o,...t})})}const O2t=O.forwardRef(z2t);function A2t({className:e,label:t,variant:n,...o},r){const s=n!==void 0,i=O.useMemo(()=>s?{}:{DropdownMenu:{variant:"toolbar"},Dropdown:{variant:"toolbar"}},[s]);if(!t){Re("Using Toolbar without label prop",{since:"5.6",alternative:"ToolbarGroup component",link:"https://developer.wordpress.org/block-editor/components/toolbar/"});const{title:l,...u}=o;return a.jsx(c0,{isCollapsed:!1,...u,className:e})}const c=$("components-accessible-toolbar",e,n&&`is-${n}`);return a.jsx(O3,{value:i,children:a.jsx(O2t,{className:c,label:t,ref:r,...o})})}const y2t=O.forwardRef(A2t);function v2t(e,t){return O.useContext(Zu)?a.jsx(Ko,{ref:t,...e.toggleProps,children:o=>a.jsx(E1,{...e,popoverProps:{...e.popoverProps},toggleProps:o})}):a.jsx(E1,{...e})}const _l=O.forwardRef(v2t),bp={columns:e=>ke("grid-template-columns:",`repeat( ${e}, minmax(0, 1fr) )`,";",""),spacing:ke("column-gap:",Ce(4),";row-gap:",Ce(4),";",""),item:{fullWidth:{name:"18iuzk9",styles:"grid-column:1/-1"}}},x2t=e=>ke(bp.columns(e)," ",bp.spacing," border-top:",Se.borderWidth," solid ",qe.gray[300],";margin-top:-1px;padding:",Ce(4),";",""),_2t=e=>ke(">div:not( :first-of-type ){display:grid;",bp.columns(e)," ",bp.spacing," ",bp.item.fullWidth,";}",""),w2t={name:"huufmu",styles:">div:not( :first-of-type ){display:none;}"},k2t=ke(bp.item.fullWidth," gap:",Ce(2),";.components-dropdown-menu{margin:",Ce(-1)," 0;line-height:0;}&&&& .components-dropdown-menu__toggle{padding:0;min-width:",Ce(6),";}",""),q2t={name:"1pmxm02",styles:"font-size:inherit;font-weight:500;line-height:normal;&&{margin:0;}"},S2t=ke(bp.item.fullWidth,"&>div,&>fieldset{padding-bottom:0;margin-bottom:0;max-width:100%;}&& ",fue,"{margin-bottom:0;",bue,":last-child{margin-bottom:0;}}",tz,"{margin-bottom:0;}&& ",Kle,"{label{line-height:1.4em;}}",""),C2t={name:"eivff4",styles:"display:none"},R2t={name:"16gsvie",styles:"min-width:200px"},dfe=we("span",{target:"ews648u0"})("color:",qe.theme.accentDarker10,";font-size:11px;font-weight:500;line-height:1.4;",dn({marginLeft:Ce(3)})," text-transform:uppercase;"),W2t=ke("color:",qe.gray[900],";&&[aria-disabled='true']{color:",qe.gray[700],";opacity:1;&:hover{color:",qe.gray[700],";}",dfe,"{opacity:0.3;}}",""),Nm=()=>{},cz=O.createContext({menuItems:{default:{},optional:{}},hasMenuItems:!1,isResetting:!1,shouldRenderPlaceholderItems:!1,registerPanelItem:Nm,deregisterPanelItem:Nm,flagItemCustomization:Nm,registerResetAllFilter:Nm,deregisterResetAllFilter:Nm,areAllOptionalControlsHidden:!0}),pfe=()=>O.useContext(cz);function T2t(e){const{className:t,headingLevel:n=2,...o}=Ut(e,"ToolsPanelHeader"),r=x0(),s=O.useMemo(()=>r(k2t,t),[t,r]),i=O.useMemo(()=>r(R2t),[r]),c=O.useMemo(()=>r(q2t),[r]),l=O.useMemo(()=>r(W2t),[r]),{menuItems:u,hasMenuItems:d,areAllOptionalControlsHidden:p}=pfe();return{...o,areAllOptionalControlsHidden:p,defaultControlsItemClassName:l,dropdownMenuClassName:i,hasMenuItems:d,headingClassName:c,headingLevel:n,menuItems:u,className:s}}const E2t=({itemClassName:e,items:t,toggleItem:n})=>{if(!t.length)return null;const o=a.jsx(dfe,{"aria-hidden":!0,children:m("Reset")});return a.jsx(a.Fragment,{children:t.map(([r,s])=>s?a.jsx(tt,{className:e,role:"menuitem",label:le(m("Reset %s"),r),onClick:()=>{n(r),At(le(m("%s reset to default"),r),"assertive")},suffix:o,children:r},r):a.jsx(tt,{icon:no,className:e,role:"menuitemcheckbox",isSelected:!0,"aria-disabled":!0,children:r},r))})},B2t=({items:e,toggleItem:t})=>e.length?a.jsx(a.Fragment,{children:e.map(([n,o])=>{const r=le(m(o?"Hide and reset %s":"Show %s"),n);return a.jsx(tt,{icon:o?no:null,isSelected:o,label:r,onClick:()=>{At(le(m(o?"%s hidden and reset to default":"%s is now visible"),n),"assertive"),t(n)},role:"menuitemcheckbox",children:n},n)})}):null,N2t=(e,t)=>{const{areAllOptionalControlsHidden:n,defaultControlsItemClassName:o,dropdownMenuClassName:r,hasMenuItems:s,headingClassName:i,headingLevel:c=2,label:l,menuItems:u,resetAll:d,toggleItem:p,dropdownMenuProps:f,...b}=T2t(e);if(!l)return null;const h=Object.entries(u?.default||{}),g=Object.entries(u?.optional||{}),z=n?as:Ol,y=le(Oe("%s options","Button label to reveal tool panel options"),l),x=n?m("All options are currently hidden"):void 0,v=[...h,...g].some(([,M])=>M);return a.jsxs(Je,{...b,ref:t,children:[a.jsx(ec,{level:c,className:i,children:l}),s&&a.jsx(E1,{...f,icon:z,label:y,menuProps:{className:r},toggleProps:{size:"small",description:x},children:()=>a.jsxs(a.Fragment,{children:[a.jsxs(Yt,{label:l,children:[a.jsx(E2t,{items:h,toggleItem:p,itemClassName:o}),a.jsx(B2t,{items:g,toggleItem:p})]}),a.jsx(Yt,{children:a.jsx(tt,{"aria-disabled":!v,variant:"tertiary",onClick:()=>{v&&(d(),At(m("All options reset"),"assertive"))},children:m("Reset all")})})]})})]})},L2t=Qt(N2t,"ToolsPanelHeader"),sK=2,iK=({panelItems:e,shouldReset:t,currentMenuItems:n,menuItemOrder:o})=>{const r={default:{},optional:{}},s={default:{},optional:{}};return e.forEach(({hasValue:i,isShownByDefault:c,label:l})=>{const u=c?"default":"optional",d=n?.[u]?.[l],p=d||i();r[u][l]=t?!1:p}),o.forEach(i=>{r.default.hasOwnProperty(i)&&(s.default[i]=r.default[i]),r.optional.hasOwnProperty(i)&&(s.optional[i]=r.optional[i])}),Object.keys(r.default).forEach(i=>{s.default.hasOwnProperty(i)||(s.default[i]=r.default[i])}),Object.keys(r.optional).forEach(i=>{s.optional.hasOwnProperty(i)||(s.optional[i]=r.optional[i])}),s},lS=e=>e&&Object.keys(e).length===0;function j2t(e){const{className:t,headingLevel:n=2,resetAll:o,panelId:r,hasInnerWrapper:s=!1,shouldRenderPlaceholderItems:i=!1,__experimentalFirstVisibleItemClass:c,__experimentalLastVisibleItemClass:l,...u}=Ut(e,"ToolsPanel"),d=O.useRef(!1),p=d.current;O.useEffect(()=>{p&&(d.current=!1)},[p]);const[f,b]=O.useState([]),[h,g]=O.useState([]),[z,y]=O.useState([]),x=O.useCallback(P=>{b(H=>{const U=[...H],X=U.findIndex(Z=>Z.label===P.label);return X!==-1&&U.splice(X,1),[...U,P]}),g(H=>H.includes(P.label)?H:[...H,P.label])},[b,g]),v=O.useCallback(P=>{b(H=>{const U=[...H],X=U.findIndex(Z=>Z.label===P);return X!==-1&&U.splice(X,1),U})},[b]),M=O.useCallback(P=>{y(H=>[...H,P])},[y]),A=O.useCallback(P=>{y(H=>H.filter(U=>U!==P))},[y]),[_,w]=O.useState({default:{},optional:{}});O.useEffect(()=>{w(P=>iK({panelItems:f,shouldReset:!1,currentMenuItems:P,menuItemOrder:h}))},[f,w,h]);const k=O.useCallback((P,H,U="default")=>{w(X=>({...X,[U]:{...X[U],[H]:P}}))},[w]),[q,S]=O.useState(!1);O.useEffect(()=>{if(lS(_?.default)&&!lS(_?.optional)){const P=!Object.entries(_.optional).some(([,H])=>H);S(P)}},[_,S]);const C=x0(),T=O.useMemo(()=>{const P=s&&_2t(sK),H=lS(_?.default)&&q&&w2t;return C(x2t(sK),P,H,t)},[q,t,C,s,_]),W=O.useCallback(P=>{const H=f.find(Z=>Z.label===P);if(!H)return;const U=H.isShownByDefault?"default":"optional",X={..._,[U]:{..._[U],[P]:!_[U][P]}};w(X)},[_,f,w]),B=O.useCallback(()=>{typeof o=="function"&&(d.current=!0,o(z));const P=iK({panelItems:f,menuItemOrder:h,shouldReset:!0});w(P)},[f,z,o,w,h]),N=P=>{const H=_.optional||{};return P.find(X=>X.isShownByDefault||!!H[X.label])?.label},E=N(f),L=N([...f].reverse()),I=O.useMemo(()=>({areAllOptionalControlsHidden:q,deregisterPanelItem:v,deregisterResetAllFilter:A,firstDisplayedItem:E,flagItemCustomization:k,hasMenuItems:!!f.length,isResetting:d.current,lastDisplayedItem:L,menuItems:_,panelId:r,registerPanelItem:x,registerResetAllFilter:M,shouldRenderPlaceholderItems:i,__experimentalFirstVisibleItemClass:c,__experimentalLastVisibleItemClass:l}),[q,v,A,E,k,L,_,r,f,M,x,i,c,l]);return{...u,headingLevel:n,panelContext:I,resetAllItems:B,toggleItem:W,className:T}}const P2t=(e,t)=>{const{children:n,label:o,panelContext:r,resetAllItems:s,toggleItem:i,headingLevel:c,dropdownMenuProps:l,...u}=j2t(e);return a.jsx(dw,{...u,columns:2,ref:t,children:a.jsxs(cz.Provider,{value:r,children:[a.jsx(L2t,{label:o,resetAll:s,toggleItem:i,headingLevel:c,dropdownMenuProps:l}),n]})})},Tr=Qt(P2t,"ToolsPanel"),I2t=()=>{};function D2t(e){const{className:t,hasValue:n,isShownByDefault:o=!1,label:r,panelId:s,resetAllFilter:i=I2t,onDeselect:c,onSelect:l,...u}=Ut(e,"ToolsPanelItem"),{panelId:d,menuItems:p,registerResetAllFilter:f,deregisterResetAllFilter:b,registerPanelItem:h,deregisterPanelItem:g,flagItemCustomization:z,isResetting:y,shouldRenderPlaceholderItems:x,firstDisplayedItem:v,lastDisplayedItem:M,__experimentalFirstVisibleItemClass:A,__experimentalLastVisibleItemClass:_}=pfe(),w=O.useCallback(n,[s]),k=O.useCallback(i,[s]),q=t1(d),S=d===s||d===null;O.useLayoutEffect(()=>(S&&q!==null&&h({hasValue:w,isShownByDefault:o,label:r,panelId:s}),()=>{(q===null&&d||d===s)&&g(r)}),[d,S,o,r,w,s,q,h,g]),O.useEffect(()=>(S&&f(k),()=>{S&&b(k)}),[f,b,k,S]);const C=o?"default":"optional",T=p?.[C]?.[r],W=t1(T),B=p?.[C]?.[r]!==void 0,N=n();O.useEffect(()=>{!o&&!N||z(N,r,C)},[N,C,r,z,o]),O.useEffect(()=>{!B||y||!S||(T&&!N&&!W&&l?.(),!T&&N&&W&&c?.())},[S,T,B,y,N,W,l,c]);const E=o?p?.[C]?.[r]!==void 0:T,L=x0(),I=O.useMemo(()=>{const P=x&&!E;return L(S2t,P&&C2t,!P&&t,v===r&&A,M===r&&_)},[E,x,t,L,v,M,A,_,r]);return{...u,isShown:E,shouldRenderPlaceholder:x,className:I}}const F2t=(e,t)=>{const{children:n,isShown:o,shouldRenderPlaceholder:r,...s}=D2t(e);return o?a.jsx(C0,{...s,ref:t,children:n}):r?a.jsx(C0,{...s,ref:t}):null},Rt=Qt(F2t,"ToolsPanelItem"),ffe=O.createContext(void 0),$2t=()=>O.useContext(ffe),V2t=ffe.Provider;function H2t({children:e}){const[t,n]=O.useState(),o=O.useMemo(()=>({lastFocusedElement:t,setLastFocusedElement:n}),[t]);return a.jsx(V2t,{value:o,children:e})}function U2t({children:e,level:t,positionInSet:n,setSize:o,isExpanded:r,...s},i){return a.jsx("tr",{...s,ref:i,role:"row","aria-level":t,"aria-posinset":n,"aria-setsize":o,"aria-expanded":r,children:e})}const bfe=O.forwardRef(U2t),X2t=O.forwardRef(function({children:t,as:n,...o},r){const s=O.useRef(),i=r||s,{lastFocusedElement:c,setLastFocusedElement:l}=$2t();let u;c&&(u=c===("current"in i?i.current:void 0)?0:-1);const p={ref:i,tabIndex:u,onFocus:f=>l?.(f.target),...o};return typeof t=="function"?t(p):n?a.jsx(n,{...p,children:t}):null});function G2t({children:e,...t},n){return a.jsx(X2t,{ref:n,...t,children:e})}const BW=O.forwardRef(G2t);function K2t({children:e,withoutGridItem:t=!1,...n},o){return a.jsx("td",{...n,role:"gridcell",children:t?a.jsx(a.Fragment,{children:e}):a.jsx(BW,{ref:o,children:e})})}const d4=O.forwardRef(K2t);function Lm(e){return Nn.focusable.find(e,{sequential:!0}).filter(n=>n.closest('[role="row"]')===e)}function Y2t({children:e,onExpandRow:t=()=>{},onCollapseRow:n=()=>{},onFocusRow:o=()=>{},applicationAriaLabel:r,...s},i){const c=O.useCallback(l=>{const{keyCode:u,metaKey:d,ctrlKey:p,altKey:f}=l;if(d||p||f||![xi,Do,Ns,Ls,Vb,Ag].includes(u))return;l.stopPropagation();const{activeElement:h}=document,{currentTarget:g}=l;if(!h||!g.contains(h))return;const z=h.closest('[role="row"]');if(!z)return;const y=Lm(z),x=y.indexOf(h),v=x===0,M=v&&(z.getAttribute("data-expanded")==="false"||z.getAttribute("aria-expanded")==="false")&&u===Ls;if([Ns,Ls].includes(u)){let _;if(u===Ns?_=Math.max(0,x-1):_=Math.min(x+1,y.length-1),v){if(u===Ns){var A;if(z.getAttribute("data-expanded")==="true"||z.getAttribute("aria-expanded")==="true"){n(z),l.preventDefault();return}const w=Math.max(parseInt((A=z?.getAttribute("aria-level"))!==null&&A!==void 0?A:"1",10)-1,1),k=Array.from(g.querySelectorAll('[role="row"]'));let q=z;const S=k.indexOf(z);for(let C=S;C>=0;C--){const T=k[C].getAttribute("aria-level");if(T!==null&&parseInt(T,10)===w){q=k[C];break}}Lm(q)?.[0]?.focus()}if(u===Ls){if(z.getAttribute("data-expanded")==="false"||z.getAttribute("aria-expanded")==="false"){t(z),l.preventDefault();return}const w=Lm(z);w.length>0&&w[_]?.focus()}l.preventDefault();return}if(M)return;y[_].focus(),l.preventDefault()}else if([xi,Do].includes(u)){const _=Array.from(g.querySelectorAll('[role="row"]')),w=_.indexOf(z);let k;if(u===xi?k=Math.max(0,w-1):k=Math.min(w+1,_.length-1),k===w){l.preventDefault();return}const q=Lm(_[k]);if(!q||!q.length){l.preventDefault();return}const S=Math.min(x,q.length-1);q[S].focus(),o(l,z,_[k]),l.preventDefault()}else if([Vb,Ag].includes(u)){const _=Array.from(g.querySelectorAll('[role="row"]')),w=_.indexOf(z);let k;if(u===Vb?k=0:k=_.length-1,k===w){l.preventDefault();return}const q=Lm(_[k]);if(!q||!q.length){l.preventDefault();return}const S=Math.min(x,q.length-1);q[S].focus(),o(l,z,_[k]),l.preventDefault()}},[t,n,o]);return a.jsx(H2t,{children:a.jsx("div",{role:"application","aria-label":r,children:a.jsx("table",{...s,role:"treegrid",onKeyDown:c,ref:i,children:a.jsx("tbody",{children:e})})})})}const Z2t=O.forwardRef(Y2t),hfe=we("div",{target:"ebn2ljm1"})("&:not( :first-of-type ){",({offsetAmount:e})=>ke({marginInlineStart:e},"",""),";}",({zIndex:e})=>ke({zIndex:e},"",""),";");var Q2t={name:"rs0gp6",styles:"grid-row-start:1;grid-column-start:1"};const J2t=we("div",{target:"ebn2ljm0"})("display:inline-grid;grid-auto-flow:column;position:relative;&>",hfe,"{position:relative;justify-self:start;",({isLayered:e})=>e?Q2t:void 0,";}");function eht(e,t){const{children:n,className:o,isLayered:r=!0,isReversed:s=!1,offset:i=0,...c}=Ut(e,"ZStack"),l=Mue(n),u=l.length-1,d=l.map((p,f)=>{const b=s?u-f:f,h=r?i*f:i,g=O.isValidElement(p)?p.key:f;return a.jsx(hfe,{offsetAmount:h,zIndex:b,children:p},g)});return a.jsx(J2t,{...c,className:o,isLayered:r,ref:t,children:d})}const mfe=Qt(eht,"ZStack"),tht={previous:[{modifier:"ctrlShift",character:"`"},{modifier:"ctrlShift",character:"~"},{modifier:"access",character:"p"}],next:[{modifier:"ctrl",character:"`"},{modifier:"access",character:"n"}]};function nht(e=tht){const t=O.useRef(null),[n,o]=O.useState(!1);function r(i){var c;const l=Array.from((c=t.current?.querySelectorAll('[role="region"][tabindex="-1"]'))!==null&&c!==void 0?c:[]);if(!l.length)return;let u=l[0];const d=t.current?.ownerDocument?.activeElement?.closest('[role="region"][tabindex="-1"]'),p=d?l.indexOf(d):-1;if(p!==-1){let f=p+i;f=f===-1?l.length-1:f,f=f===l.length?0:f,u=l[f]}u.focus(),o(!0)}const s=Et(i=>{function c(){o(!1)}return i.addEventListener("click",c),()=>{i.removeEventListener("click",c)}},[o]);return{ref:Gt([t,s]),className:n?"is-focusing-regions":"",onKeyDown(i){e.previous.some(({modifier:c,character:l})=>$s[c](i,l))?r(-1):e.next.some(({modifier:c,character:l})=>$s[c](i,l))&&r(1)}}}const oht=Sn(e=>function(n){const o=xB();return a.jsx("div",{ref:o,tabIndex:-1,children:a.jsx(e,{...n})})},"withConstrainedTabbing"),rht=16;function gd(e){return Sn(t=>{const n="core/with-filters/"+e;let o;function r(){o===void 0&&(o=_n(e,t))}class s extends O.Component{constructor(u){super(u),r()}componentDidMount(){s.instances.push(this),s.instances.length===1&&(i$("hookRemoved",n,c),i$("hookAdded",n,c))}componentWillUnmount(){s.instances=s.instances.filter(u=>u!==this),s.instances.length===0&&(a$("hookRemoved",n),a$("hookAdded",n))}render(){return a.jsx(o,{...this.props})}}s.instances=[];const i=jr(()=>{o=_n(e,t),s.instances.forEach(l=>{l.forceUpdate()})},rht);function c(l){l===e&&i()}return s},"withFilters")}function sht(e){return e instanceof O.Component||typeof e=="function"}const iht=Sn(e=>{const t=({onFocusReturn:n}={})=>o=>s=>{const i=_B(n);return a.jsx("div",{ref:i,children:a.jsx(o,{...s})})};if(sht(e)){const n=e;return t()(n)}return t(e)},"withFocusReturn"),aht=Sn(e=>{function t(r,s){const[i,c]=O.useState([]),l=O.useMemo(()=>{const d=p=>{const f=p.id?p:{...p,id:Xc()};c(b=>[...b,f])};return{createNotice:d,createErrorNotice:p=>{d({status:"error",content:p})},removeNotice:p=>{c(f=>f.filter(b=>b.id!==p))},removeAllNotices:()=>{c([])}}},[]),u={...r,noticeList:i,noticeOperations:l,noticeUI:i.length>0&&a.jsx(EW,{className:"components-with-notices-ui",notices:i,onRemove:l.removeNotice})};return n?a.jsx(e,{...u,ref:s}):a.jsx(e,{...u})}let n;const{render:o}=e;return typeof o=="function"?(n=!0,O.forwardRef(t)):t},"withNotices"),Cb={SCALE_AMOUNT_OUTER:.82,SCALE_AMOUNT_CONTENT:.9,DURATION:{IN:"400ms",OUT:"200ms"},EASING:"cubic-bezier(0.33, 0, 0, 1)"},Mfe=Ce(1),cht=Ce(2),hj=Ce(3),lht=qe.theme.gray[300],uht=qe.theme.gray[200],mj=qe.theme.gray[700],dht=qe.theme.gray[100],gfe=qe.theme.foreground,pht=`0 0 0 ${Se.borderWidth} ${lht}, ${Se.elevationXSmall}`,fht=`0 0 0 ${Se.borderWidth} ${gfe}`,zfe="minmax( 0, max-content ) 1fr",bht=we("div",{target:"e1kdzosf14"})("position:relative;background-color:",qe.ui.background,";border-radius:",Se.radiusMedium,";",e=>ke("box-shadow:",e.variant==="toolbar"?fht:pht,";","")," overflow:hidden;@media not ( prefers-reduced-motion ){transition-property:transform,opacity;transition-timing-function:",Cb.EASING,";transition-duration:",Cb.DURATION.IN,";will-change:transform,opacity;opacity:0;&:has( [data-enter] ){opacity:1;}&:has( [data-leave] ){transition-duration:",Cb.DURATION.OUT,";}&:has( [data-side='bottom'] ),&:has( [data-side='top'] ){transform:scaleY( ",Cb.SCALE_AMOUNT_OUTER," );}&:has( [data-side='bottom'] ){transform-origin:top;}&:has( [data-side='top'] ){transform-origin:bottom;}&:has( [data-enter][data-side='bottom'] ),&:has( [data-enter][data-side='top'] ),&:has( [data-leave][data-side='bottom'] ),&:has( [data-leave][data-side='top'] ){transform:scaleY( 1 );}}"),V2=we("div",{target:"e1kdzosf13"})("position:relative;z-index:1000000;display:grid;grid-template-columns:",zfe,";grid-template-rows:auto;box-sizing:border-box;min-width:160px;max-width:320px;max-height:var( --popover-available-height );padding:",Mfe,`;overscroll-behavior:contain;overflow:auto;outline:2px solid transparent!important;@media not ( prefers-reduced-motion ){transition:inherit;transform-origin:inherit;&[data-side='bottom'],&[data-side='top']{transform:scaleY( calc( 1 / `,Cb.SCALE_AMOUNT_OUTER,` * `,Cb.SCALE_AMOUNT_CONTENT,` ) );}&[data-enter][data-side='bottom'],&[data-enter][data-side='top'],&[data-leave][data-side='bottom'],&[data-leave][data-side='top']{transform:scaleY( 1 );}}`),Mj=ke("all:unset;position:relative;min-height:",Ce(10),";box-sizing:border-box;grid-column:1/-1;display:grid;grid-template-columns:",zfe,";align-items:center;@supports ( grid-template-columns: subgrid ){grid-template-columns:subgrid;}font-size:",wi("default.fontSize"),";font-family:inherit;font-weight:normal;line-height:20px;color:",qe.theme.foreground,";border-radius:",Se.radiusSmall,";padding-block:",cht,";padding-inline:",hj,";scroll-margin:",Mfe,";user-select:none;outline:none;&[aria-disabled='true']{color:",qe.ui.textDisabled,`;cursor:not-allowed;}&[data-active-item]:not( [data-focus-visible] ):not( [aria-disabled='true'] - ){background-color:`,qe.theme.accent,";color:",qe.white,";}&[data-focus-visible]{box-shadow:0 0 0 1.5px ",qe.theme.accent,";outline:2px solid transparent;}&:active,&[data-active]{}",V2,':not(:focus) &:not(:focus)[aria-expanded="true"]{background-color:',dht,";color:",qe.theme.foreground,";}svg{fill:currentColor;}",""),hht=we(QDe,{target:"e1kdzosf12"})(Mj,";"),NW=we(nFe,{target:"e1kdzosf11"})(Mj,";"),LW=we(sFe,{target:"e1kdzosf10"})(Mj,";"),gj=we("span",{target:"e1kdzosf9"})("grid-column:1;",NW,">&,",LW,">&{min-width:",Ce(6),";}",NW,">&,",LW,">&,&:not( :empty ){margin-inline-end:",Ce(2),";}display:flex;align-items:center;justify-content:center;color:",mj,";[data-active-item]:not( [data-focus-visible] )>&,[aria-disabled='true']>&{color:inherit;}"),zj=we("div",{target:"e1kdzosf8"})("grid-column:2;display:flex;align-items:center;justify-content:space-between;gap:",Ce(3),";pointer-events:none;"),Oj=we("div",{target:"e1kdzosf7"})("flex:1;display:inline-flex;flex-direction:column;gap:",Ce(1),";"),Aj=we("span",{target:"e1kdzosf6"})("flex:0 1 fit-content;min-width:0;width:fit-content;display:flex;align-items:center;justify-content:center;gap:",Ce(3),";color:",mj,";[data-active-item]:not( [data-focus-visible] ) *:not(",V2,") &,[aria-disabled='true'] *:not(",V2,") &{color:inherit;}"),mht=we(XDe,{target:"e1kdzosf5"})({name:"49aokf",styles:"display:contents"}),Mht=we(VDe,{target:"e1kdzosf4"})("grid-column:1/-1;padding-block-start:",Ce(3),";padding-block-end:",Ce(2),";padding-inline:",hj,";"),ght=we(cFe,{target:"e1kdzosf3"})("grid-column:1/-1;border:none;height:",Se.borderWidth,";background-color:",e=>e.variant==="toolbar"?gfe:uht,";margin-block:",Ce(2),";margin-inline:",hj,";outline:2px solid transparent;"),zht=we(xn,{target:"e1kdzosf2"})("width:",Ce(1.5),";",dn({transform:"scaleX(1)"},{transform:"scaleX(-1)"}),";"),Oht=we(Ho,{target:"e1kdzosf1"})("font-size:",wi("default.fontSize"),";line-height:20px;color:inherit;"),Aht=we(Ho,{target:"e1kdzosf0"})("font-size:",wi("helpText.fontSize"),";line-height:16px;color:",mj,";word-break:break-all;[data-active-item]:not( [data-focus-visible] ) *:not( ",V2," ) &,[aria-disabled='true'] *:not( ",V2," ) &{color:inherit;}"),rl=O.createContext(void 0);function yj({onBlur:e}){const[t,n]=O.useState(!1);return{"data-focus-visible":t||void 0,onFocusVisible:()=>{Qo.flushSync(()=>n(!0))},onBlur:o=>{e?.(o),n(!1)}}}const Ofe=O.forwardRef(function({prefix:t,suffix:n,children:o,onBlur:r,hideOnClick:s=!0,...i},c){const l=yj({onBlur:r}),u=O.useContext(rl);return a.jsxs(hht,{ref:c,...i,...l,accessibleWhenDisabled:!0,hideOnClick:s,store:u?.store,children:[a.jsx(gj,{children:t}),a.jsxs(zj,{children:[a.jsx(Oj,{children:o}),n&&a.jsx(Aj,{children:n})]})]})}),yht=O.forwardRef(function({suffix:t,children:n,onBlur:o,hideOnClick:r=!1,...s},i){const c=yj({onBlur:o}),l=O.useContext(rl);return a.jsxs(NW,{ref:i,...s,...c,accessibleWhenDisabled:!0,hideOnClick:r,store:l?.store,children:[a.jsx(Eie,{store:l?.store,render:a.jsx(gj,{}),style:{width:"auto",height:"auto"},children:a.jsx(t0,{icon:no,size:24})}),a.jsxs(zj,{children:[a.jsx(Oj,{children:n}),t&&a.jsx(Aj,{children:t})]})]})}),vht=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(ese,{cx:12,cy:12,r:3})}),xht=O.forwardRef(function({suffix:t,children:n,onBlur:o,hideOnClick:r=!1,...s},i){const c=yj({onBlur:o}),l=O.useContext(rl);return a.jsxs(LW,{ref:i,...s,...c,accessibleWhenDisabled:!0,hideOnClick:r,store:l?.store,children:[a.jsx(Eie,{store:l?.store,render:a.jsx(gj,{}),style:{width:"auto",height:"auto"},children:a.jsx(t0,{icon:vht,size:24})}),a.jsxs(zj,{children:[a.jsx(Oj,{children:n}),t&&a.jsx(Aj,{children:t})]})]})}),_ht=O.forwardRef(function(t,n){const o=O.useContext(rl);return a.jsx(mht,{ref:n,...t,store:o?.store})}),wht=O.forwardRef(function(t,n){const o=O.useContext(rl);return a.jsx(Mht,{ref:n,render:a.jsx(l0,{upperCase:!0,variant:"muted",size:"11px",weight:500,lineHeight:"16px"}),...t,store:o?.store})}),kht=O.forwardRef(function(t,n){const o=O.useContext(rl);return a.jsx(ght,{ref:n,...t,store:o?.store,variant:o?.variant})}),qht=O.forwardRef(function(t,n){return a.jsx(Oht,{numberOfLines:1,ref:n,...t})}),Sht=O.forwardRef(function(t,n){return a.jsx(Aht,{numberOfLines:2,ref:n,...t})}),Cht=(e,t)=>{var n;const{open:o,defaultOpen:r=!1,onOpenChange:s,placement:i,trigger:c,gutter:l,children:u,shift:d,modal:p=!0,variant:f,...b}=Ut(e,"DropdownMenu"),h=O.useContext(rl),g=ft()?"rtl":"ltr";let z=(n=e.placement)!==null&&n!==void 0?n:h?.store?"right-start":"bottom-start";g==="rtl"&&(/right/.test(z)?z=z.replace("right","left"):/left/.test(z)&&(z=z.replace("left","right")));const y=qDe({parent:h?.store,open:o,defaultOpen:r,placement:z,focusLoop:!0,setOpen(_){s?.(_)},rtl:g==="rtl"}),x=O.useMemo(()=>({store:y,variant:f}),[y,f]),v=on(y,"currentPlacement").split("-")[0];y.parent&&!(O.isValidElement(c)&&Ofe===c.type)&&console.warn("For nested DropdownMenus, the `trigger` should always be a `DropdownMenuItem`.");const M=O.useCallback(_=>(_.preventDefault(),!0),[]),A=O.useMemo(()=>({dir:g,style:{direction:g}}),[g]);return a.jsxs(a.Fragment,{children:[a.jsx(DDe,{ref:t,store:y,render:y.parent?O.cloneElement(c,{suffix:a.jsxs(a.Fragment,{children:[c.props.suffix,a.jsx(zht,{"aria-hidden":"true",icon:jp,size:24,preserveAspectRatio:"xMidYMid slice"})]})}):c}),a.jsx(NDe,{...b,modal:p,store:y,gutter:l??(y.parent?0:8),shift:d??(y.parent?-4:0),hideOnHoverOutside:!1,"data-side":v,wrapperProps:A,hideOnEscape:M,unmountOnHide:!0,render:_=>a.jsx(bht,{variant:f,children:a.jsx(V2,{..._})}),children:a.jsx(rl.Provider,{value:x,children:u})})]})},Rht=Object.assign(Qt(Cht,"DropdownMenu"),{Context:Object.assign(rl,{displayName:"DropdownMenuV2.Context"}),Item:Object.assign(Ofe,{displayName:"DropdownMenuV2.Item"}),RadioItem:Object.assign(xht,{displayName:"DropdownMenuV2.RadioItem"}),CheckboxItem:Object.assign(yht,{displayName:"DropdownMenuV2.CheckboxItem"}),Group:Object.assign(_ht,{displayName:"DropdownMenuV2.Group"}),GroupLabel:Object.assign(wht,{displayName:"DropdownMenuV2.GroupLabel"}),Separator:Object.assign(kht,{displayName:"DropdownMenuV2.Separator"}),ItemLabel:Object.assign(qht,{displayName:"DropdownMenuV2.ItemLabel"}),ItemHelpText:Object.assign(Sht,{displayName:"DropdownMenuV2.ItemHelpText"})}),Wht=({colors:e})=>{const t=Object.entries(e.gray||{}).map(([n,o])=>`--wp-components-color-gray-${n}: ${o};`).join("");return[ke("--wp-components-color-accent:",e.accent,";--wp-components-color-accent-darker-10:",e.accentDarker10,";--wp-components-color-accent-darker-20:",e.accentDarker20,";--wp-components-color-accent-inverted:",e.accentInverted,";--wp-components-color-background:",e.background,";--wp-components-color-foreground:",e.foreground,";--wp-components-color-foreground-inverted:",e.foregroundInverted,";",t,";","")]},Tht=we("div",{target:"e1krjpvb0"})({name:"1a3idx0",styles:"color:var( --wp-components-color-foreground, currentColor )"});fs([bs,bf]);function Eht(e){Bht(e);const t={...jht(e.accent),...Pht(e.background)};return Lht(Nht(e,t)),{colors:t}}function Bht(e){for(const[t,n]of Object.entries(e))typeof n<"u"&&!Tt(n).isValid()&&globalThis.SCRIPT_DEBUG===!0&&Xt(`wp.components.Theme: "${n}" is not a valid color value for the '${t}' prop.`)}function Nht(e,t){const n=e.background||qe.white,o=e.accent||"#3858e9",r=t.foreground||qe.gray[900],s=t.gray||qe.gray;return{accent:Tt(n).isReadable(o)?void 0:`The background color ("${n}") does not have sufficient contrast against the accent color ("${o}").`,foreground:Tt(n).isReadable(r)?void 0:`The background color provided ("${n}") does not have sufficient contrast against the standard foreground colors.`,grays:Tt(n).contrast(s[600])>=3&&Tt(n).contrast(s[700])>=4.5?void 0:`The background color provided ("${n}") cannot generate a set of grayscale foreground colors with sufficient contrast. Try adjusting the color to be lighter or darker.`}}function Lht(e){for(const t of Object.values(e))t&&globalThis.SCRIPT_DEBUG===!0&&Xt("wp.components.Theme: "+t)}function jht(e){return e?{accent:e,accentDarker10:Tt(e).darken(.1).toHex(),accentDarker20:Tt(e).darken(.2).toHex(),accentInverted:jW(e)}:{}}function Pht(e){if(!e)return{};const t=jW(e);return{background:e,foreground:t,foregroundInverted:jW(t),gray:Iht(e,t)}}function jW(e){return Tt(e).isDark()?qe.white:qe.gray[900]}function Iht(e,t){const n={100:.06,200:.121,300:.132,400:.2,600:.42,700:.543,800:.821},o=.884,r=Tt(e).isDark()?"lighten":"darken",s=Math.abs(Tt(e).toHsl().l-Tt(t).toHsl().l)/100,i={};return Object.entries(n).forEach(([c,l])=>{i[parseInt(c)]=Tt(e)[r](l/o*s).toHex()}),i}function Dht({accent:e,background:t,className:n,...o}){const r=x0(),s=O.useMemo(()=>r(...Wht(Eht({accent:e,background:t})),n),[e,t,n,r]);return a.jsx(Tht,{className:s,...o})}const vj=O.createContext(void 0),xj=()=>O.useContext(vj),Fht=we("div",{target:"enfox0g2"})("position:relative;display:flex;align-items:stretch;flex-direction:row;text-align:center;&[aria-orientation='vertical']{flex-direction:column;text-align:start;}@media not ( prefers-reduced-motion: reduce ){&.is-animation-enabled::after{transition-property:left,top,width,height;transition-duration:0.2s;transition-timing-function:ease-out;}}&::after{content:'';position:absolute;pointer-events:none;outline:2px solid transparent;outline-offset:-1px;}&:not( [aria-orientation='vertical'] )::after{bottom:0;left:var( --indicator-left );width:var( --indicator-width );height:0;border-bottom:var( --wp-admin-border-width-focus ) solid ",qe.theme.accent,";}&[aria-orientation='vertical']::after{z-index:-1;left:0;width:100%;top:var( --indicator-top );height:var( --indicator-height );background-color:",qe.theme.gray[100],";}"),$ht=we(NFe,{target:"enfox0g1"})("&{display:inline-flex;align-items:center;position:relative;border-radius:0;min-height:",Ce(12),";height:auto;background:transparent;border:none;box-shadow:none;cursor:pointer;line-height:1.2;padding:",Ce(4),";margin-left:0;font-weight:500;text-align:inherit;hyphens:auto;color:",qe.theme.foreground,";&[aria-disabled='true']{cursor:default;color:",qe.ui.textDisabled,";}&:not( [aria-disabled='true'] ):hover{color:",qe.theme.accent,";}&:focus:not( :disabled ){position:relative;box-shadow:none;outline:none;}&::before{content:'';position:absolute;top:",Ce(3),";right:",Ce(3),";bottom:",Ce(3),";left:",Ce(3),";pointer-events:none;outline:var( --wp-admin-border-width-focus ) solid ",qe.theme.accent,";border-radius:",Se.radiusSmall,";opacity:0;@media not ( prefers-reduced-motion ){transition:opacity 0.1s linear;}}&:focus-visible::before{opacity:1;}}[aria-orientation='vertical'] &{min-height:",Ce(10),";}"),Vht=we(FFe,{target:"enfox0g0"})("&:focus{box-shadow:none;outline:none;}&:focus-visible{box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ",qe.theme.accent,";outline:2px solid transparent;outline-offset:0;}"),Hht=O.forwardRef(function({children:t,tabId:n,disabled:o,render:r,...s},i){const c=xj();if(!c)return globalThis.SCRIPT_DEBUG===!0&&Xt("`Tabs.Tab` must be wrapped in a `Tabs` component."),null;const{store:l,instanceId:u}=c,d=`${u}-${n}`;return a.jsx($ht,{ref:i,store:l,id:d,disabled:o,render:r,...s,children:t})});function Afe(e){const t=O.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return O.useInsertionEffect(()=>{t.current=e}),O.useCallback((...n)=>t.current?.(...n),[])}function Uht(e,t,{fireOnElementInit:n=!0}={}){const o=Afe(t),r=O.useRef(),s=O.useRef();O.useEffect(()=>{if(e===r.current)return;r.current=e,s.current||(s.current=new ResizeObserver(c=>{r.current&&o(r.current,c)}));const{current:i}=s;return e&&(n&&o(e),i.observe(e)),()=>{r.current&&i.unobserve(r.current)}},[n,o,e])}const Xht={left:0,top:0,width:0,height:0};function Ght(e){return{left:Math.max(e.offsetLeft-1,0),top:Math.max(e.offsetTop-1,0),width:parseFloat(getComputedStyle(e).width),height:parseFloat(getComputedStyle(e).height)}}function Kht(e){const[t,n]=O.useState(Xht);return Uht(e,o=>n(Ght(o))),t}function Yht(e,t){const n=O.useRef(e),o=Afe(t);O.useEffect(()=>{n.current!==e&&(o({previousValue:n.current}),n.current=e)},[o,e])}const Zht=O.forwardRef(function({children:t,...n},o){const r=xj(),s=on(r?.store),i=s?.selectedId,c=Kht(r?.store.item(i)?.element),[l,u]=O.useState(!1);if(Yht(i,({previousValue:g})=>g&&u(!0)),!r||!s)return globalThis.SCRIPT_DEBUG===!0&&Xt("`Tabs.TabList` must be wrapped in a `Tabs` component."),null;const{store:d}=r,{activeId:p,selectOnMove:f}=s,{setActiveId:b}=d,h=()=>{f&&i!==p&&b(i)};return a.jsx(PFe,{ref:o,store:d,render:a.jsx(Fht,{onTransitionEnd:g=>{g.pseudoElement==="::after"&&u(!1)}}),onBlur:h,...n,style:{"--indicator-left":`${c.left}px`,"--indicator-top":`${c.top}px`,"--indicator-width":`${c.width}px`,"--indicator-height":`${c.height}px`,...n.style},className:$(l?"is-animation-enabled":"",n.className),children:t})}),Qht=O.forwardRef(function({children:t,tabId:n,focusable:o=!0,...r},s){const i=xj(),c=on(i?.store,"selectedId");if(!i)return globalThis.SCRIPT_DEBUG===!0&&Xt("`Tabs.TabPanel` must be wrapped in a `Tabs` component."),null;const{store:l,instanceId:u}=i,d=`${u}-${n}`;return a.jsx(Vht,{ref:s,store:l,id:`${d}-view`,tabId:d,focusable:o,...r,children:c===d&&t})});function Dh({selectOnMove:e=!0,defaultTabId:t,orientation:n="horizontal",onSelect:o,children:r,selectedTabId:s}){const i=He(Dh,"tabs"),c=WFe({selectOnMove:e,orientation:n,defaultSelectedId:t&&`${i}-${t}`,setSelectedId:v=>{const M=typeof v=="string"?v.replace(`${i}-`,""):v;o?.(M)},selectedId:s&&`${i}-${s}`}),l=s!==void 0,{items:u,selectedId:d,activeId:p}=on(c),{setSelectedId:f,setActiveId:b}=c,h=O.useRef(!1);u.length>0&&(h.current=!0);const g=u.find(v=>v.id===d),z=u.find(v=>!v.dimmed),y=u.find(v=>v.id===`${i}-${t}`);O.useLayoutEffect(()=>{if(!l&&!(t&&!y)&&!u.find(v=>v.id===d)){if(y&&!y.dimmed){f(y?.id);return}z?f(z.id):h.current&&f(null)}},[z,y,t,l,u,d,f]),O.useLayoutEffect(()=>{if(g?.dimmed){if(l){f(null);return}if(y&&!y.dimmed){f(y.id);return}z&&f(z.id)}},[z,y,l,g?.dimmed,f]),O.useLayoutEffect(()=>{l&&h.current&&s&&!g&&f(null)},[l,g,s,f]),O.useEffect(()=>{s===null&&!p&&z?.id&&b(z.id)},[s,p,z?.id,b]),O.useEffect(()=>{l&&requestAnimationFrame(()=>{const v=u?.[0]?.element?.ownerDocument.activeElement;!v||!u.some(M=>v===M.element)||p!==v.id&&b(v.id)})},[p,l,u,b]);const x=O.useMemo(()=>({store:c,instanceId:i}),[c,i]);return a.jsx(vj.Provider,{value:x,children:r})}Dh.TabList=Zht;Dh.Tab=Hht;Dh.TabPanel=Qht;Dh.Context=vj;const{lock:Jht,unlock:cb0}=ar("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/components"),L0={};Jht(L0,{CompositeV2:hi,CompositeGroupV2:hi.Group,CompositeItemV2:hi.Item,CompositeRowV2:hi.Row,CompositeTypeaheadV2:hi.Typeahead,CompositeHoverV2:hi.Hover,useCompositeStoreV2:bst,__experimentalPopoverLegacyPositionToPlacement:z_,createPrivateSlotFill:stt,ComponentsContext:TL,Tabs:Dh,Theme:Dht,DropdownMenuV2:Rht,kebabCase:Ret});const{lock:emt,unlock:Fe}=ar("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/block-editor");fs([bs,bf]);const{kebabCase:tmt}=Fe(L0),Up=(e,t,n)=>{if(t){const o=e?.find(r=>r.slug===t);if(o)return o}return{color:n}},yfe=(e,t)=>e?.find(n=>n.color===t);function lt(e,t){if(!(!e||!t))return`has-${tmt(t)}-${e}`}function nmt(e,t){const n=Tt(t),o=({color:s})=>n.contrast(s),r=Math.max(...e.map(o));return e.find(s=>o(s)===r).color}const Xp=O.createContext({});function V3({value:e,children:t}){const n=O.useContext(Xp),o=O.useMemo(()=>({...n,...e}),[n,e]);return a.jsx(Xp.Provider,{value:o,children:t})}const omt={},rmt=e=>{const{name:t}=e,n=Dt(t);if(!n)return null;const o=n.edit||n.save;return a.jsx(o,{...e})},aK=gd("editor.BlockEdit")(rmt),smt=e=>{const{attributes:t={},name:n}=e,o=Dt(n),r=O.useContext(Xp),s=O.useMemo(()=>o&&o.usesContext?Object.fromEntries(Object.entries(r).filter(([l])=>o.usesContext.includes(l))):omt,[o,r]);if(!o)return null;if(o.apiVersion>1)return a.jsx(aK,{...e,context:s});const i=st(o,"className",!0)?_v(n):null,c=$(i,t.className,e.className);return a.jsx(aK,{...e,context:s,className:c})},imt={insertUsage:{}},PW={alignWide:!1,supportsLayout:!0,colors:[{name:m("Black"),slug:"black",color:"#000000"},{name:m("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:m("White"),slug:"white",color:"#ffffff"},{name:m("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:m("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:m("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:m("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:m("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:m("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:m("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:m("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:m("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:Oe("Small","font size name"),size:13,slug:"small"},{name:Oe("Normal","font size name"),size:16,slug:"normal"},{name:Oe("Medium","font size name"),size:20,slug:"medium"},{name:Oe("Large","font size name"),size:36,slug:"large"},{name:Oe("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:m("Thumbnail")},{slug:"medium",name:m("Medium")},{slug:"large",name:m("Large")},{slug:"full",name:m("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,canLockBlocks:!0,enableOpenverseMediaCategory:!0,clearBlockSelection:!0,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__unstableIsPreviewMode:!1,blockInspectorAnimation:{animationParent:"core/navigation","core/navigation":{enterDirection:"leftToRight"},"core/navigation-submenu":{enterDirection:"rightToLeft"},"core/navigation-link":{enterDirection:"rightToLeft"},"core/search":{enterDirection:"rightToLeft"},"core/social-links":{enterDirection:"rightToLeft"},"core/page-list":{enterDirection:"rightToLeft"},"core/spacer":{enterDirection:"rightToLeft"},"core/home-link":{enterDirection:"rightToLeft"},"core/site-title":{enterDirection:"rightToLeft"},"core/site-logo":{enterDirection:"rightToLeft"}},generateAnchors:!1,gradients:[{name:m("Vivid cyan blue to vivid purple"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:m("Light green cyan to vivid green cyan"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:m("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:m("Luminous vivid orange to vivid red"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:m("Very light gray to cyan bluish gray"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:m("Cool to warm spectrum"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:m("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:m("Blush bordeaux"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:m("Luminous dusk"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:m("Pale ocean"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:m("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:m("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}],__unstableResolvedAssets:{styles:[],scripts:[]}};function IW(e,t,n){return[...e.slice(0,n),...Array.isArray(t)?t:[t],...e.slice(n)]}function uS(e,t,n,o=1){const r=[...e];return r.splice(t,o),IW(r,e.slice(t,t+o),n)}const amt=e=>e;function UM(e,t=""){const n=new Map,o=[];return n.set(t,o),e.forEach(r=>{const{clientId:s,innerBlocks:i}=r;o.push(s),UM(i,s).forEach((c,l)=>{n.set(l,c)})}),n}function p4(e,t=""){const n=[],o=[[t,e]];for(;o.length;){const[r,s]=o.shift();s.forEach(({innerBlocks:i,...c})=>{n.push([c.clientId,r]),i?.length&&o.push([c.clientId,i])})}return n}function vfe(e,t=amt){const n=[],o=[...e];for(;o.length;){const{innerBlocks:r,...s}=o.shift();o.push(...r),n.push([s.clientId,t(s)])}return n}function cmt(e){const t={},n=[...e];for(;n.length;){const{innerBlocks:o,...r}=n.shift();n.push(...o),t[r.clientId]=!0}return t}function DW(e){return vfe(e,t=>{const{attributes:n,...o}=t;return o})}function FW(e){return vfe(e,t=>t.attributes)}function lmt(e,t){return J1(Object.keys(e),Object.keys(t))}function umt(e,t){return e.type==="UPDATE_BLOCK_ATTRIBUTES"&&t!==void 0&&t.type==="UPDATE_BLOCK_ATTRIBUTES"&&J1(e.clientIds,t.clientIds)&&lmt(e.attributes,t.attributes)}function $W(e,t){const n=e.tree,o=[...t],r=[...t];for(;o.length;){const s=o.shift();o.push(...s.innerBlocks),r.push(...s.innerBlocks)}for(const s of r)n.set(s.clientId,{});for(const s of r)n.set(s.clientId,Object.assign(n.get(s.clientId),{...e.byClientId.get(s.clientId),attributes:e.attributes.get(s.clientId),innerBlocks:s.innerBlocks.map(i=>n.get(i.clientId))}))}function uc(e,t,n=!1){const o=e.tree,r=new Set([]),s=new Set;for(const i of t){let c=n?i:e.parents.get(i);do if(e.controlledInnerBlocks[c]){s.add(c);break}else r.add(c),c=e.parents.get(c);while(c!==void 0)}for(const i of r)o.set(i,{...o.get(i)});for(const i of r)o.get(i).innerBlocks=(e.order.get(i)||[]).map(c=>o.get(c));for(const i of s)o.set("controlled||"+i,{innerBlocks:(e.order.get(i)||[]).map(c=>o.get(c))})}const dmt=e=>(t={},n)=>{const o=e(t,n);if(o===t)return t;switch(o.tree=t.tree?t.tree:new Map,n.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{o.tree=new Map(o.tree),$W(o,n.blocks),uc(o,n.rootClientId?[n.rootClientId]:[""],!0);break}case"UPDATE_BLOCK":o.tree=new Map(o.tree),o.tree.set(n.clientId,{...o.tree.get(n.clientId),...o.byClientId.get(n.clientId),attributes:o.attributes.get(n.clientId)}),uc(o,[n.clientId],!1);break;case"SYNC_DERIVED_BLOCK_ATTRIBUTES":case"UPDATE_BLOCK_ATTRIBUTES":{o.tree=new Map(o.tree),n.clientIds.forEach(s=>{o.tree.set(s,{...o.tree.get(s),attributes:o.attributes.get(s)})}),uc(o,n.clientIds,!1);break}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const s=cmt(n.blocks);o.tree=new Map(o.tree),n.replacedClientIds.forEach(c=>{o.tree.delete(c),s[c]||o.tree.delete("controlled||"+c)}),$W(o,n.blocks),uc(o,n.blocks.map(c=>c.clientId),!1);const i=[];for(const c of n.clientIds){const l=t.parents.get(c);l!==void 0&&(l===""||o.byClientId.get(l))&&i.push(l)}uc(o,i,!0);break}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":const r=[];for(const s of n.clientIds){const i=t.parents.get(s);i!==void 0&&(i===""||o.byClientId.get(i))&&r.push(i)}o.tree=new Map(o.tree),n.removedClientIds.forEach(s=>{o.tree.delete(s),o.tree.delete("controlled||"+s)}),uc(o,r,!0);break;case"MOVE_BLOCKS_TO_POSITION":{const s=[];n.fromRootClientId?s.push(n.fromRootClientId):s.push(""),n.toRootClientId&&s.push(n.toRootClientId),o.tree=new Map(o.tree),uc(o,s,!0);break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{const s=[n.rootClientId?n.rootClientId:""];o.tree=new Map(o.tree),uc(o,s,!0);break}case"SAVE_REUSABLE_BLOCK_SUCCESS":{const s=[];o.attributes.forEach((i,c)=>{o.byClientId.get(c).name==="core/block"&&i.ref===n.updatedId&&s.push(c)}),o.tree=new Map(o.tree),s.forEach(i=>{o.tree.set(i,{...o.byClientId.get(i),attributes:o.attributes.get(i),innerBlocks:o.tree.get(i).innerBlocks})}),uc(o,s,!1)}}return o};function pmt(e){let t,n=!1,o;return(r,s)=>{let i=e(r,s),c;if(s.type==="SET_EXPLICIT_PERSISTENT"){var l;o=s.isPersistentChange,c=(l=r.isPersistentChange)!==null&&l!==void 0?l:!0}if(o!==void 0)return c=o,c===i.isPersistentChange?i:{...i,isPersistentChange:c};const u=s.type==="MARK_LAST_CHANGE_AS_PERSISTENT"||n;if(r===i&&!u){var d;return n=s.type==="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT",c=(d=r?.isPersistentChange)!==null&&d!==void 0?d:!0,r.isPersistentChange===c?r:{...i,isPersistentChange:c}}return i={...i,isPersistentChange:u?!n:!umt(s,t)},t=s,n=s.type==="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT",i}}function fmt(e){const t=new Set(["RECEIVE_BLOCKS"]);return(n,o)=>{const r=e(n,o);return r!==n&&(r.isIgnoredChange=t.has(o.type)),r}}const bmt=e=>(t,n)=>{const o=r=>{let s=r;for(let i=0;i(t,n)=>{if(n.type==="RESET_BLOCKS"){const o={...t,byClientId:new Map(DW(n.blocks)),attributes:new Map(FW(n.blocks)),order:UM(n.blocks),parents:new Map(p4(n.blocks)),controlledInnerBlocks:{}};return o.tree=new Map(t?.tree),$W(o,n.blocks),o.tree.set("",{innerBlocks:n.blocks.map(r=>o.tree.get(r.clientId))}),o}return e(t,n)},mmt=e=>(t,n)=>{if(n.type!=="REPLACE_INNER_BLOCKS")return e(t,n);const o={};if(Object.keys(t.controlledInnerBlocks).length){const i=[...n.blocks];for(;i.length;){const{innerBlocks:c,...l}=i.shift();i.push(...c),t.controlledInnerBlocks[l.clientId]&&(o[l.clientId]=!0)}}let r=t;t.order.get(n.rootClientId)&&(r=e(r,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:o,clientIds:t.order.get(n.rootClientId)}));let s=r;if(n.blocks.length){s=e(s,{...n,type:"INSERT_BLOCKS",index:0});const i=new Map(s.order);Object.keys(o).forEach(c=>{t.order.get(c)&&i.set(c,t.order.get(c))}),s.order=i,s.tree=new Map(s.tree),Object.keys(o).forEach(c=>{const l=`controlled||${c}`;t.tree.has(l)&&s.tree.set(l,t.tree.get(l))})}return s},Mmt=e=>(t,n)=>{if(t&&n.type==="SAVE_REUSABLE_BLOCK_SUCCESS"){const{id:o,updatedId:r}=n;if(o===r)return t;t={...t},t.attributes=new Map(t.attributes),t.attributes.forEach((s,i)=>{const{name:c}=t.byClientId.get(i);c==="core/block"&&s.ref===o&&t.attributes.set(i,{...s,ref:r})})}return e(t,n)},gmt=e=>(t,n)=>{if(n.type==="SET_HAS_CONTROLLED_INNER_BLOCKS"){const o=e(t,{type:"REPLACE_INNER_BLOCKS",rootClientId:n.clientId,blocks:[]});return e(o,n)}return e(t,n)},zmt=Jl(zo,Mmt,dmt,bmt,mmt,hmt,pmt,fmt,gmt)({byClientId(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const n=new Map(e);return DW(t.blocks).forEach(([o,r])=>{n.set(o,r)}),n}case"UPDATE_BLOCK":{if(!e.has(t.clientId))return e;const{attributes:n,...o}=t.updates;if(Object.values(o).length===0)return e;const r=new Map(e);return r.set(t.clientId,{...e.get(t.clientId),...o}),r}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{if(!t.blocks)return e;const n=new Map(e);return t.replacedClientIds.forEach(o=>{n.delete(o)}),DW(t.blocks).forEach(([o,r])=>{n.set(o,r)}),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach(o=>{n.delete(o)}),n}}return e},attributes(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const o=new Map(e);return FW(t.blocks).forEach(([r,s])=>{o.set(r,s)}),o}case"UPDATE_BLOCK":{if(!e.get(t.clientId)||!t.updates.attributes)return e;const o=new Map(e);return o.set(t.clientId,{...e.get(t.clientId),...t.updates.attributes}),o}case"SYNC_DERIVED_BLOCK_ATTRIBUTES":case"UPDATE_BLOCK_ATTRIBUTES":{if(t.clientIds.every(s=>!e.get(s)))return e;let o=!1;const r=new Map(e);for(const s of t.clientIds){var n;const i=Object.entries(t.uniqueByBlock?t.attributes[s]:(n=t.attributes)!==null&&n!==void 0?n:{});if(i.length===0)continue;let c=!1;const l=e.get(s),u={};i.forEach(([d,p])=>{l[d]!==p&&(c=!0,u[d]=p)}),o=o||c,c&&r.set(s,{...l,...u})}return o?r:e}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{if(!t.blocks)return e;const o=new Map(e);return t.replacedClientIds.forEach(r=>{o.delete(r)}),FW(t.blocks).forEach(([r,s])=>{o.set(r,s)}),o}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const o=new Map(e);return t.removedClientIds.forEach(r=>{o.delete(r)}),o}}return e},order(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":{var n;const r=UM(t.blocks),s=new Map(e);return r.forEach((i,c)=>{c!==""&&s.set(c,i)}),s.set("",((n=e.get(""))!==null&&n!==void 0?n:[]).concat(r[""])),s}case"INSERT_BLOCKS":{const{rootClientId:r=""}=t,s=e.get(r)||[],i=UM(t.blocks,r),{index:c=s.length}=t,l=new Map(e);return i.forEach((u,d)=>{l.set(d,u)}),l.set(r,IW(s,i.get(r),c)),l}case"MOVE_BLOCKS_TO_POSITION":{var o;const{fromRootClientId:r="",toRootClientId:s="",clientIds:i}=t,{index:c=e.get(s).length}=t;if(r===s){const d=e.get(s).indexOf(i[0]),p=new Map(e);return p.set(s,uS(e.get(s),d,c,i.length)),p}const l=new Map(e);return l.set(r,(o=e.get(r)?.filter(u=>!i.includes(u)))!==null&&o!==void 0?o:[]),l.set(s,IW(e.get(s),i,c)),l}case"MOVE_BLOCKS_UP":{const{clientIds:r,rootClientId:s=""}=t,i=r[0],c=e.get(s);if(!c.length||i===c[0])return e;const l=c.indexOf(i),u=new Map(e);return u.set(s,uS(c,l,l-1,r.length)),u}case"MOVE_BLOCKS_DOWN":{const{clientIds:r,rootClientId:s=""}=t,i=r[0],c=r[r.length-1],l=e.get(s);if(!l.length||c===l[l.length-1])return e;const u=l.indexOf(i),d=new Map(e);return d.set(s,uS(l,u,u+1,r.length)),d}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const{clientIds:r}=t;if(!t.blocks)return e;const s=UM(t.blocks),i=new Map(e);return t.replacedClientIds.forEach(c=>{i.delete(c)}),s.forEach((c,l)=>{l!==""&&i.set(l,c)}),i.forEach((c,l)=>{const u=Object.values(c).reduce((d,p)=>p===r[0]?[...d,...s.get("")]:(r.indexOf(p)===-1&&d.push(p),d),[]);i.set(l,u)}),i}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const r=new Map(e);return t.removedClientIds.forEach(s=>{r.delete(s)}),r.forEach((s,i)=>{var c;const l=(c=s?.filter(u=>!t.removedClientIds.includes(u)))!==null&&c!==void 0?c:[];l.length!==s.length&&r.set(i,l)}),r}}return e},parents(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":{const n=new Map(e);return p4(t.blocks).forEach(([o,r])=>{n.set(o,r)}),n}case"INSERT_BLOCKS":{const n=new Map(e);return p4(t.blocks,t.rootClientId||"").forEach(([o,r])=>{n.set(o,r)}),n}case"MOVE_BLOCKS_TO_POSITION":{const n=new Map(e);return t.clientIds.forEach(o=>{n.set(o,t.toRootClientId||"")}),n}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.replacedClientIds.forEach(o=>{n.delete(o)}),p4(t.blocks,e.get(t.clientIds[0])).forEach(([o,r])=>{n.set(o,r)}),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach(o=>{n.delete(o)}),n}}return e},controlledInnerBlocks(e={},{type:t,clientId:n,hasControlledInnerBlocks:o}){return t==="SET_HAS_CONTROLLED_INNER_BLOCKS"?{...e,[n]:o}:e}});function Omt(e=!1,t){switch(t.type){case"HIDE_BLOCK_INTERFACE":return!0;case"SHOW_BLOCK_INTERFACE":return!1}return e}function Amt(e=!1,t){switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e}function ymt(e=!1,t){switch(t.type){case"START_DRAGGING":return!0;case"STOP_DRAGGING":return!1}return e}function vmt(e=[],t){switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e}function xmt(e={},t){return t.type==="SET_BLOCK_VISIBILITY"?{...e,...t.updates}:e}function cK(e={},t){switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return!t.updateSelection||!t.blocks.length?e:{clientId:t.blocks[0].clientId};case"REMOVE_BLOCKS":return!t.clientIds||!t.clientIds.length||t.clientIds.indexOf(e.clientId)===-1?e:{};case"REPLACE_BLOCKS":{if(t.clientIds.indexOf(e.clientId)===-1)return e;const n=t.blocks[t.indexToSelect]||t.blocks[t.blocks.length-1];return n?n.clientId===e.clientId?e:{clientId:n.clientId}:{}}}return e}function _mt(e={},t){switch(t.type){case"SELECTION_CHANGE":return t.clientId?{selectionStart:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset},selectionEnd:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.endOffset}}:{selectionStart:t.start||e.selectionStart,selectionEnd:t.end||e.selectionEnd};case"RESET_SELECTION":const{selectionStart:r,selectionEnd:s}=t;return{selectionStart:r,selectionEnd:s};case"MULTI_SELECT":const{start:i,end:c}=t;return i===e.selectionStart?.clientId&&c===e.selectionEnd?.clientId?e:{selectionStart:{clientId:i},selectionEnd:{clientId:c}};case"RESET_BLOCKS":const l=e?.selectionStart?.clientId,u=e?.selectionEnd?.clientId;if(!l&&!u)return e;if(!t.blocks.some(d=>d.clientId===l))return{selectionStart:{},selectionEnd:{}};if(!t.blocks.some(d=>d.clientId===u))return{...e,selectionEnd:e.selectionStart}}const n=cK(e.selectionStart,t),o=cK(e.selectionEnd,t);return n===e.selectionStart&&o===e.selectionEnd?e:{selectionStart:n,selectionEnd:o}}function wmt(e=!1,t){switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e}function kmt(e=!0,t){switch(t.type){case"TOGGLE_SELECTION":return t.isSelectionEnabled}return e}function qmt(e=!1,t){switch(t.type){case"DISPLAY_BLOCK_REMOVAL_PROMPT":const{clientIds:n,selectPrevious:o,message:r}=t;return{clientIds:n,selectPrevious:o,message:r};case"CLEAR_BLOCK_REMOVAL_PROMPT":return!1}return e}function Smt(e=!1,t){switch(t.type){case"SET_BLOCK_REMOVAL_RULES":return t.rules}return e}function Cmt(e=null,t){return t.type==="REPLACE_BLOCKS"&&t.initialPosition!==void 0||["MULTI_SELECT","SELECT_BLOCK","RESET_SELECTION","INSERT_BLOCKS","REPLACE_INNER_BLOCKS"].includes(t.type)?t.initialPosition:e}function Rmt(e={},t){if(t.type==="TOGGLE_BLOCK_MODE"){const{clientId:n}=t;return{...e,[n]:e[n]&&e[n]==="html"?"visual":"html"}}return e}function Wmt(e=null,t){switch(t.type){case"SHOW_INSERTION_POINT":{const{rootClientId:n,index:o,__unstableWithInserter:r,operation:s,nearestSide:i}=t,c={rootClientId:n,index:o,__unstableWithInserter:r,operation:s,nearestSide:i};return J1(e,c)?e:c}case"HIDE_INSERTION_POINT":case"CLEAR_SELECTED_BLOCK":case"SELECT_BLOCK":return null}return e}function Tmt(e={isValid:!0},t){switch(t.type){case"SET_TEMPLATE_VALIDITY":return{...e,isValid:t.isValid}}return e}function Emt(e=PW,t){switch(t.type){case"UPDATE_SETTINGS":return t.reset?{...PW,...t.settings}:{...e,...t.settings}}return e}function Bmt(e=imt,t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":{const n=t.blocks.reduce((o,r)=>{const{attributes:s,name:i}=r;let c=i;const l=V0($e).getActiveBlockVariation(i,s);return l?.name&&(c+="/"+l.name),i==="core/block"&&(c+="/"+s.ref),{...o,[c]:{time:t.time,count:o[c]?o[c].count+1:1}}},e.insertUsage);return{...e,insertUsage:n}}}return e}const Nmt=(e={},t)=>{switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object.fromEntries(Object.entries(e).filter(([n])=>!t.clientIds.includes(n)));case"UPDATE_BLOCK_LIST_SETTINGS":{const n=typeof t.clientId=="string"?{[t.clientId]:t.settings}:t.clientId;for(const r in n)n[r]?J1(e[r],n[r])&&delete n[r]:e[r]||delete n[r];if(Object.keys(n).length===0)return e;const o={...e,...n};for(const r in n)n[r]||delete o[r];return o}}return e};function Lmt(e="edit",t){return t.type==="INSERT_BLOCKS"&&e==="navigation"?"edit":t.type==="SET_EDITOR_MODE"?t.mode:e}function jmt(e=null,t){return t.type==="SET_BLOCK_MOVING_MODE"?t.hasBlockMovingClientId:t.type==="SET_EDITOR_MODE"?null:e}function Pmt(e=null,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return{[t.clientId]:t.updates.attributes};case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce((n,o)=>({...n,[o]:t.uniqueByBlock?t.attributes[o]:t.attributes}),{})}return e}function Imt(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":const{clientId:n,isHighlighted:o}=t;return o?n:e===n?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e}function Dmt(e=null,t){switch(t.type){case"SET_BLOCK_EXPANDED_IN_LIST_VIEW":return t.clientId;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e}function Fmt(e={},t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":if(!t.blocks.length)return e;const n=t.blocks.map(r=>r.clientId),o=t.meta?.source;return{clientIds:n,source:o};case"RESET_BLOCKS":return{}}return e}function $mt(e="",t){return t.type==="SET_TEMPORARILY_EDITING_AS_BLOCKS"?t.temporarilyEditingAsBlocks:e}function Vmt(e="",t){return t.type==="SET_TEMPORARILY_EDITING_AS_BLOCKS"?t.focusModeToRevert:e}function Hmt(e=new Map,t){switch(t.type){case"SET_BLOCK_EDITING_MODE":return new Map(e).set(t.clientId,t.mode);case"UNSET_BLOCK_EDITING_MODE":{const n=new Map(e);return n.delete(t.clientId),n}case"RESET_BLOCKS":return e.has("")?new Map().set("",e.get("")):e}return e}function Umt(e=null,t){if(t.type==="SET_OPENED_BLOCK_SETTINGS_MENU"){var n;return(n=t?.clientId)!==null&&n!==void 0?n:null}return e}function Xmt(e=new Map,t){switch(t.type){case"SET_STYLE_OVERRIDE":return new Map(e).set(t.id,t.style);case"DELETE_STYLE_OVERRIDE":{const n=new Map(e);return n.delete(t.id),n}}return e}function Gmt(e=[],t){switch(t.type){case"REGISTER_INSERTER_MEDIA_CATEGORY":return[...e,t.category]}return e}function Kmt(e=!1,t){switch(t.type){case"LAST_FOCUS":return t.lastFocus}return e}function Ymt(e=!1,t){switch(t.type){case"HOVER_BLOCK":return t.clientId}return e}const Zmt=zo({blocks:zmt,isDragging:ymt,isTyping:Amt,isBlockInterfaceHidden:Omt,draggedBlocks:vmt,selection:_mt,isMultiSelecting:wmt,isSelectionEnabled:kmt,initialPosition:Cmt,blocksMode:Rmt,blockListSettings:Nmt,insertionPoint:Wmt,template:Tmt,settings:Emt,preferences:Bmt,lastBlockAttributesChange:Pmt,lastFocus:Kmt,editorMode:Lmt,hasBlockMovingClientId:jmt,expandedBlock:Dmt,highlightedBlock:Imt,lastBlockInserted:Fmt,temporarilyEditingAsBlocks:$mt,temporarilyEditingFocusModeRevert:Vmt,blockVisibility:xmt,blockEditingModes:Hmt,styleOverrides:Xmt,removalPromptData:qmt,blockRemovalRules:Smt,openedBlockSettingsMenu:Umt,registeredInserterMediaCategories:Gmt,hoveredBlockClientId:Ymt});function Qmt(e){return(t,n)=>{const o=e(t,n);return t?(o.automaticChangeStatus=t.automaticChangeStatus,n.type==="MARK_AUTOMATIC_CHANGE"?{...o,automaticChangeStatus:"pending"}:n.type==="MARK_AUTOMATIC_CHANGE_FINAL"&&t.automaticChangeStatus==="pending"?{...o,automaticChangeStatus:"final"}:o.blocks===t.blocks&&o.selection===t.selection||o.automaticChangeStatus!=="final"&&o.selection!==t.selection?o:{...o,automaticChangeStatus:void 0}):o}}const Jmt=Qmt(Zmt),Rw=Symbol("globalStylesDataKey"),xfe=Symbol("globalStylesLinks"),H2=Symbol("selectBlockPatternsKey"),_j=Symbol("reusableBlocksSelect"),_fe=Symbol("sectionRootClientIdKey"),v1="core/block-editor",wfe=Symbol("withRootClientId"),lK=new WeakMap,uK=new WeakMap;function eMt(e){const t=Yn(e.content,{__unstableSkipMigrationLogs:!0});return t.length===1&&(t[0].attributes={...t[0].attributes,metadata:{...t[0].attributes.metadata||{},categories:e.categories,patternName:e.name,name:t[0].attributes.metadata?.name||e.title}}),{...e,blocks:t}}function kfe(e){let t=lK.get(e);return t||(t=eMt(e),lK.set(e,t)),t}function VW(e){let t=uK.get(e);return t||(t=fre(e.content),t=t.filter(n=>n.blockName!==null),uK.set(e,t)),t}const ib=(e,t,n=null)=>typeof e=="boolean"?e:Array.isArray(e)?e.includes("core/post-content")&&t===null?!0:e.includes(t):n,qfe=(e,t)=>{if(typeof t=="boolean")return t;const n=[...e];for(;n.length>0;){const o=n.shift();if(!ib(t,o.name||o.blockName,!0))return!1;o.innerBlocks?.forEach(s=>{n.push(s)})}return!0},Ww=e=>t=>[t.settings.__experimentalBlockPatterns,t.settings.__experimentalUserPatternCategories,t.settings.__experimentalReusableBlocks,t.settings[H2]?.(e),t.blockPatterns,Fe(e(v1)).getReusableBlocks()];function Fh(e,t){return[e.blockListSettings[t],e.blocks.byClientId.get(t),e.settings.allowedBlockTypes,e.settings.templateLock,e.blockEditingModes]}const tMt=(e,t,n)=>(o,r)=>{let s,i;if(typeof e=="function"?(s=e(o),i=e(r)):(s=o[e],i=r[e]),s>i)return n==="asc"?1:-1;if(i>s)return n==="asc"?-1:1;const c=t.findIndex(u=>u===o),l=t.findIndex(u=>u===r);return c>l?1:l>c?-1:0};function H3(e,t,n="asc"){return e.concat().sort(tMt(t,e,n))}const X1={user:"user",theme:"theme",directory:"directory"},i5={full:"fully",unsynced:"unsynced"},a5={name:"allPatterns",label:Oe("All","patterns")},U3={name:"myPatterns",label:m("My patterns")};function Sfe(e,t,n){const o=e.name.startsWith("core/block"),r=e.source==="core"||e.source?.startsWith("pattern-directory");return!!(t===X1.theme&&(o||r)||t===X1.directory&&(o||!r)||t===X1.user&&e.type!==X1.user||n===i5.full&&e.syncStatus!==""||n===i5.unsynced&&e.syncStatus!=="unsynced"&&o)}function Vt(e,t,n){t=Array.isArray(t)?[...t]:[t],e=Array.isArray(e)?[...e]:{...e};const o=t.pop();let r=e;for(const s of t){const i=r[s];r=r[s]=Array.isArray(i)?[...i]:{...i}}return r[o]=n,e}const R0=(e,t,n)=>{var o;const r=Array.isArray(t)?t:t.split(".");let s=e;return r.forEach(i=>{s=s?.[i]}),(o=s)!==null&&o!==void 0?o:n},nMt=["color","border","dimensions","typography","spacing"],oMt={"color.palette":e=>e.colors,"color.gradients":e=>e.gradients,"color.custom":e=>e.disableCustomColors===void 0?void 0:!e.disableCustomColors,"color.customGradient":e=>e.disableCustomGradients===void 0?void 0:!e.disableCustomGradients,"typography.fontSizes":e=>e.fontSizes,"typography.customFontSize":e=>e.disableCustomFontSizes===void 0?void 0:!e.disableCustomFontSizes,"typography.lineHeight":e=>e.enableCustomLineHeight,"spacing.units":e=>{if(e.enableCustomUnits!==void 0)return e.enableCustomUnits===!0?["px","em","rem","vh","vw","%"]:e.enableCustomUnits},"spacing.padding":e=>e.enableCustomSpacing},rMt={"border.customColor":"border.color","border.customStyle":"border.style","border.customWidth":"border.width","typography.customFontStyle":"typography.fontStyle","typography.customFontWeight":"typography.fontWeight","typography.customLetterSpacing":"typography.letterSpacing","typography.customTextDecorations":"typography.textDecoration","typography.customTextTransforms":"typography.textTransform","border.customRadius":"border.radius","spacing.customMargin":"spacing.margin","spacing.customPadding":"spacing.padding","typography.customLineHeight":"typography.lineHeight"},sMt=e=>rMt[e]||e;function iMt(e,t,...n){const o=cs(e,t),r=[];if(t){let s=t;do{const i=cs(e,s);st(i,"__experimentalSettings",!1)&&r.push(s)}while(s=e.blocks.parents.get(s))}return n.map(s=>{if(nMt.includes(s)){console.warn("Top level useSetting paths are disabled. Please use a subpath to query the information needed.");return}let i=_n("blockEditor.useSetting.before",void 0,s,t,o);if(i!==void 0)return i;const c=sMt(s);for(const b of r){var l;const h=$h(e,b);if(i=(l=R0(h.settings?.blocks?.[o],c))!==null&&l!==void 0?l:R0(h.settings,c),i!==void 0)break}const u=Z3(e);if(i===void 0&&o&&(i=R0(u.__experimentalFeatures?.blocks?.[o],c)),i===void 0&&(i=R0(u.__experimentalFeatures,c)),i!==void 0){if(QBe[c]){var d,p;return(d=(p=i.custom)!==null&&p!==void 0?p:i.theme)!==null&&d!==void 0?d:i.default}return i}const f=oMt[c]?.(u);return f!==void 0?f:c==="typography.dropCap"?!0:void 0})}function aMt(e){return e.isBlockInterfaceHidden}function cMt(e){return e?.lastBlockInserted?.clientIds}function lMt(e,t){return e.blocks.byClientId.get(t)}const uMt=(e,t)=>{const n=o=>wl(e,o)==="disabled"&&Er(e,o).every(n);return Er(e,t).every(n)};function Cfe(e,t){const n=Er(e,t),o=[];for(const r of n){const s=Cfe(e,r);wl(e,r)!=="disabled"?o.push({clientId:r,innerBlocks:s}):o.push(...s)}return o}const dMt=at(Cfe,e=>[e.blocks.order,e.blockEditingModes,e.settings.templateLock,e.blockListSettings]),pMt=at((e,t,n=!1)=>Qu(e,t,n).filter(o=>wl(e,o)!=="disabled"),e=>[e.blocks.parents,e.blockEditingModes,e.settings.templateLock,e.blockListSettings]);function fMt(e){return e.removalPromptData}function bMt(e){return e.blockRemovalRules}function hMt(e){return e.openedBlockSettingsMenu}const mMt=at(e=>{const n=X3(e).reduce((o,r,s)=>(o[r]=s,o),{});return[...e.styleOverrides].sort((o,r)=>{var s,i;const[,{clientId:c}]=o,[,{clientId:l}]=r,u=(s=n[c])!==null&&s!==void 0?s:-1,d=(i=n[l])!==null&&i!==void 0?i:-1;return u-d})},e=>[e.blocks.order,e.styleOverrides]);function MMt(e){return e.registeredInserterMediaCategories}const gMt=at(e=>{const{settings:{inserterMediaCategories:t,allowedMimeTypes:n,enableOpenverseMediaCategory:o},registeredInserterMediaCategories:r}=e;if(!t&&!r.length||!n)return;const s=t?.map(({name:c})=>c)||[];return[...t||[],...(r||[]).filter(({name:c})=>!s.includes(c))].filter(c=>!o&&c.name==="openverse"?!1:Object.values(n).some(l=>l.startsWith(`${c.mediaType}/`)))},e=>[e.settings.inserterMediaCategories,e.settings.allowedMimeTypes,e.settings.enableOpenverseMediaCategory,e.registeredInserterMediaCategories]),zMt=nt(e=>at((t,n=null)=>{const{getAllPatterns:o}=Fe(e(v1)),r=o(),{allowedBlockTypes:s}=Z3(t);return r.some(i=>{const{inserter:c=!0}=i;if(!c)return!1;const l=VW(i);return qfe(l,s)&&l.every(({name:u})=>Y3(t,u,n))})},(t,n)=>[...Ww(e)(t),...Fh(t,n)]));function Rfe(e,t=[]){return{name:`core/block/${e.id}`,id:e.id,type:X1.user,title:e.title.raw,categories:e.wp_pattern_category.map(n=>{const o=t.find(({id:r})=>r===n);return o?o.slug:n}),content:e.content.raw,syncStatus:e.wp_pattern_sync_status}}const OMt=nt(e=>at((t,n)=>{var o,r;if(n?.startsWith("core/block/")){const s=parseInt(n.slice(11),10),i=Fe(e(v1)).getReusableBlocks().find(({id:c})=>c===s);return i?Rfe(i,t.settings.__experimentalUserPatternCategories):null}return[...(o=t.settings.__experimentalBlockPatterns)!==null&&o!==void 0?o:[],...(r=t.settings[H2]?.(e))!==null&&r!==void 0?r:[]].find(({name:s})=>s===n)},(t,n)=>n?.startsWith("core/block/")?[Fe(e(v1)).getReusableBlocks(),t.settings.__experimentalReusableBlocks]:[t.settings.__experimentalBlockPatterns,t.settings[H2]?.(e)])),AMt=nt(e=>at(t=>{var n,o;return[...Fe(e(v1)).getReusableBlocks().map(r=>Rfe(r,t.settings.__experimentalUserPatternCategories)),...(n=t.settings.__experimentalBlockPatterns)!==null&&n!==void 0?n:[],...(o=t.settings[H2]?.(e))!==null&&o!==void 0?o:[]].filter((r,s,i)=>s===i.findIndex(c=>r.name===c.name))},Ww(e))),yMt=nt(e=>at(t=>{const n=t.settings[H2],o=t.settings[_j];return(n?n(e)===void 0:!1)||(o?o(e)===void 0:!1)},Ww(e))),vMt=[],xMt=nt(e=>t=>{var n;const o=t.settings[_j];return o?o(e):(n=t.settings.__experimentalReusableBlocks)!==null&&n!==void 0?n:vMt});function _Mt(e){return e.lastFocus}function wMt(e){return e.isDragging}function kMt(e){return e.expandedBlock}const Wfe=at((e,t)=>{let n=t,o;for(;n=e.blocks.parents.get(n);)(cs(e,n)==="core/block"||Uh(e,n)==="contentOnly")&&(o=n);return o},e=>[e.blocks.parents,e.blockListSettings]);function Tfe(e){return e.temporarilyEditingAsBlocks}function Efe(e){return e.temporarilyEditingFocusModeRevert}const qMt=at((e,t)=>t.reduce((n,o)=>(n[o]=e.blocks.attributes.get(o)?.style,n),{}),(e,t)=>[...t.map(n=>e.blocks.attributes.get(n)?.style)]);function SMt(e){return e.editorMode==="zoom-out"}function Tw(e){return e.settings?.[_fe]}const Bfe=Object.freeze(Object.defineProperty({__proto__:null,getAllPatterns:AMt,getBlockRemovalRules:bMt,getBlockSettings:iMt,getBlockStyles:qMt,getBlockWithoutAttributes:lMt,getContentLockingParent:Wfe,getEnabledBlockParents:pMt,getEnabledClientIdsTree:dMt,getExpandedBlock:kMt,getInserterMediaCategories:gMt,getLastFocus:_Mt,getLastInsertedBlocksClientIds:cMt,getOpenedBlockSettingsMenu:hMt,getPatternBySlug:OMt,getRegisteredInserterMediaCategories:MMt,getRemovalPromptData:fMt,getReusableBlocks:xMt,getSectionRootClientId:Tw,getStyleOverrides:mMt,getTemporarilyEditingAsBlocks:Tfe,getTemporarilyEditingFocusModeToRevert:Efe,hasAllowedPatterns:zMt,isBlockInterfaceHidden:aMt,isBlockSubtreeDisabled:uMt,isDragging:wMt,isResolvingPatterns:yMt,isZoomOutMode:SMt},Symbol.toStringTag,{value:"Module"})),CMt=3600*1e3,RMt=24*3600*1e3,WMt=7*24*3600*1e3,mo=[],TMt=new Set,EMt={};function cs(e,t){const n=e.blocks.byClientId.get(t);return n?n.name:null}function BMt(e,t){const n=e.blocks.byClientId.get(t);return!!n&&n.isValid}function $h(e,t){return e.blocks.byClientId.get(t)?e.blocks.attributes.get(t):null}function sl(e,t){return e.blocks.byClientId.has(t)?e.blocks.tree.get(t):null}const NMt=at((e,t)=>{const n=e.blocks.byClientId.get(t);return n?{...n,attributes:$h(e,t)}:null},(e,t)=>[e.blocks.byClientId.get(t),e.blocks.attributes.get(t)]);function LMt(e,t){const n=!t||!Bw(e,t)?t||"":"controlled||"+t;return e.blocks.tree.get(n)?.innerBlocks||mo}const Nfe=at((e,t)=>(Re("wp.data.select( 'core/block-editor' ).__unstableGetClientIdWithClientIdsTree",{since:"6.3",version:"6.5"}),{clientId:t,innerBlocks:Lfe(e,t)}),e=>[e.blocks.order]),Lfe=at((e,t="")=>(Re("wp.data.select( 'core/block-editor' ).__unstableGetClientIdsTree",{since:"6.3",version:"6.5"}),Er(e,t).map(n=>Nfe(e,n))),e=>[e.blocks.order]),jfe=at((e,t)=>{t=Array.isArray(t)?[...t]:[t];const n=[];for(const r of t){const s=e.blocks.order.get(r);s&&n.push(...s)}let o=0;for(;o[e.blocks.order]),X3=e=>jfe(e,""),jMt=at((e,t)=>{const n=X3(e);if(!t)return n.length;let o=0;for(const r of n)e.blocks.byClientId.get(r).name===t&&o++;return o},e=>[e.blocks.order,e.blocks.byClientId]),Pfe=at((e,t)=>{if(!t)return mo;const n=Array.isArray(t)?t:[t],r=X3(e).filter(s=>{const i=e.blocks.byClientId.get(s);return n.includes(i.name)});return r.length>0?r:mo},e=>[e.blocks.order,e.blocks.byClientId]);function PMt(e,t){return Re("wp.data.select( 'core/block-editor' ).__experimentalGetGlobalBlocksByName",{since:"6.5",alternative:"wp.data.select( 'core/block-editor' ).getBlocksByName"}),Pfe(e,t)}const c5=at((e,t)=>(Array.isArray(t)?t:[t]).map(n=>sl(e,n)),(e,t)=>(Array.isArray(t)?t:[t]).map(n=>e.blocks.tree.get(n))),IMt=at((e,t)=>c5(e,t).filter(Boolean).map(n=>n.name),(e,t)=>c5(e,t));function DMt(e,t){return Er(e,t).length}function G3(e){return e.selection.selectionStart}function K3(e){return e.selection.selectionEnd}function FMt(e){return e.selection.selectionStart.clientId}function $Mt(e){return e.selection.selectionEnd.clientId}function VMt(e){const t=zd(e).length;return t||(e.selection.selectionStart.clientId?1:0)}function HMt(e){const{selectionStart:t,selectionEnd:n}=e.selection;return!!t.clientId&&t.clientId===n.clientId}function Vh(e){const{selectionStart:t,selectionEnd:n}=e.selection,{clientId:o}=t;return!o||o!==n.clientId?null:o}function UMt(e){const t=Vh(e);return t?sl(e,t):null}function Ao(e,t){var n;return(n=e.blocks.parents.get(t))!==null&&n!==void 0?n:null}const Qu=at((e,t,n=!1)=>{const o=[];let r=t;for(;r=e.blocks.parents.get(r);)o.push(r);return o.length?n?o:o.reverse():mo},e=>[e.blocks.parents]),wj=at((e,t,n,o=!1)=>{const r=Qu(e,t,o),s=Array.isArray(n)?i=>n.includes(i):i=>n===i;return r.filter(i=>s(cs(e,i)))},e=>[e.blocks.parents]);function XMt(e,t){let n=t,o;do o=n,n=e.blocks.parents.get(n);while(n);return o}function GMt(e,t){const n=Vh(e),o=[...Qu(e,t),t],r=[...Qu(e,n),n];let s;const i=Math.min(o.length,r.length);for(let c=0;c{const{selectionStart:t,selectionEnd:n}=e.selection;if(!t.clientId||!n.clientId)return mo;if(t.clientId===n.clientId)return[t.clientId];const o=Ao(e,t.clientId);if(o===null)return mo;const r=Er(e,o),s=r.indexOf(t.clientId),i=r.indexOf(n.clientId);return s>i?r.slice(i,s+1):r.slice(s,i+1)},e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]);function zd(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?mo:Hh(e)}const QMt=at(e=>{const t=zd(e);return t.length?t.map(n=>sl(e,n)):mo},e=>[...Hh.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]);function qj(e){return zd(e)[0]||null}function Ife(e){const t=zd(e);return t[t.length-1]||null}function JMt(e,t){return qj(e)===t}function Dfe(e,t){return zd(e).indexOf(t)!==-1}const egt=at((e,t)=>{let n=t,o=!1;for(;n&&!o;)n=Ao(e,n),o=Dfe(e,n);return o},e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]);function tgt(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:t.clientId||null}function ngt(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:n.clientId||null}function ogt(e){const t=G3(e),n=K3(e);return!t.attributeKey&&!n.attributeKey&&typeof t.offset>"u"&&typeof n.offset>"u"}function rgt(e){const t=G3(e),n=K3(e);return!!t&&!!n&&t.clientId===n.clientId&&t.attributeKey===n.attributeKey&&t.offset===n.offset}function sgt(e){return Hh(e).some(t=>{const n=cs(e,t);return!Dt(n).merge})}function igt(e,t){const n=G3(e),o=K3(e);if(n.clientId===o.clientId||!n.attributeKey||!o.attributeKey||typeof n.offset>"u"||typeof o.offset>"u")return!1;const r=Ao(e,n.clientId),s=Ao(e,o.clientId);if(r!==s)return!1;const i=Er(e,r),c=i.indexOf(n.clientId),l=i.indexOf(o.clientId);let u,d;c>l?(u=o,d=n):(u=n,d=o);const p=t?d.clientId:u.clientId,f=t?u.clientId:d.clientId,b=cs(e,p);if(!Dt(b).merge)return!1;const g=sl(e,f);if(g.name===b)return!0;const z=l1(g,b);return z&&z.length}const agt=e=>{const t=G3(e),n=K3(e);if(t.clientId===n.clientId||!t.attributeKey||!n.attributeKey||typeof t.offset>"u"||typeof n.offset>"u")return mo;const o=Ao(e,t.clientId),r=Ao(e,n.clientId);if(o!==r)return mo;const s=Er(e,o),i=s.indexOf(t.clientId),c=s.indexOf(n.clientId),[l,u]=i>c?[n,t]:[t,n],d=sl(e,l.clientId),p=sl(e,u.clientId),f=d.attributes[l.attributeKey],b=p.attributes[u.attributeKey];let h=m0({html:f}),g=m0({html:b});return h=Ks(h,0,l.offset),g=Ks(g,u.offset,g.text.length),[{...d,attributes:{...d.attributes,[l.attributeKey]:K1({value:h})}},{...p,attributes:{...p.attributes,[u.attributeKey]:K1({value:g})}}]};function Er(e,t){return e.blocks.order.get(t||"")||mo}function Ffe(e,t){const n=Ao(e,t);return Er(e,n).indexOf(t)}function $fe(e,t){const{selectionStart:n,selectionEnd:o}=e.selection;return n.clientId!==o.clientId?!1:n.clientId===t}function Vfe(e,t,n=!1){const o=Hh(e);return o.length?n?o.some(r=>Qu(e,r,!0).includes(t)):o.some(r=>Ao(e,r)===t):!1}function Hfe(e,t,n=!1){return Er(e,t).some(o=>Sj(e,o)||n&&Hfe(e,o,n))}function cgt(e,t){if(!t)return!1;const n=zd(e),o=n.indexOf(t);return o>-1&&oSj(e,o)):!1}function mgt(){return Re('wp.data.select( "core/block-editor" ).isCaretWithinFormattedText',{since:"6.1",version:"6.3"}),!1}const Mgt=at(e=>{let t,n;const{insertionPoint:o,selection:{selectionEnd:r}}=e;if(o!==null)return o;const{clientId:s}=r;return s?(t=Ao(e,s)||void 0,n=Ffe(e,r.clientId)+1):n=Er(e).length,{rootClientId:t,index:n}},e=>[e.insertionPoint,e.selection.selectionEnd.clientId,e.blocks.parents,e.blocks.order]);function ggt(e){return e.insertionPoint!==null}function zgt(e){return e.template.isValid}function Ogt(e){return e.settings.template}function Uh(e,t){var n;if(!t){var o;return(o=e.settings.templateLock)!==null&&o!==void 0?o:!1}return(n=Ej(e,t)?.templateLock)!==null&&n!==void 0?n:!1}const hp=(e,t,n=null)=>{let o;if(t&&typeof t=="object"?(o=t,t=o.name):o=Dt(t),!o)return!1;const{allowedBlockTypes:r}=Z3(e);if(!ib(r,t,!0)||!!Uh(e,n)||wl(e,n??"")==="disabled")return!1;const c=Ej(e,n);if(n&&c===void 0)return!1;const l=cs(e,n),d=Dt(l)?.allowedBlocks;let p=ib(d,t);if(p!==!1){const y=c?.allowedBlocks,x=ib(y,t);x!==null&&(p=x)}const f=o.parent,b=ib(f,l);let h=!0;const g=o.ancestor;g&&(h=[n,...Qu(e,n)].some(x=>ib(g,cs(e,x))));const z=h&&(p===null&&b===null||p===!0||b===!0);return z&&_n("blockEditor.__unstableCanInsertBlockType",z,o,n,{getBlock:sl.bind(null,e),getBlockParentsByBlockName:wj.bind(null,e)})},Y3=at(hp,(e,t,n)=>Fh(e,n));function Agt(e,t,n=null){return t.every(o=>Y3(e,cs(e,o),n))}function Cj(e,t){const n=$h(e,t);if(n===null)return!0;if(n.lock?.remove!==void 0)return!n.lock.remove;const o=Ao(e,t);return Uh(e,o)?!1:wl(e,o)!=="disabled"}function Xfe(e,t){return t.every(n=>Cj(e,n))}function Gfe(e,t){const n=$h(e,t);if(n===null)return!0;if(n.lock?.move!==void 0)return!n.lock.move;const o=Ao(e,t);return Uh(e,o)==="all"?!1:wl(e,o)!=="disabled"}function ygt(e,t){return t.every(n=>Gfe(e,n))}function Kfe(e,t){const n=$h(e,t);if(n===null)return!0;const{lock:o}=n;return!o?.edit}function vgt(e,t){return st(t,"lock",!0)?!!e.settings?.canLockBlocks:!1}function Rj(e,t){var n;return(n=e.preferences.insertUsage?.[t])!==null&&n!==void 0?n:null}const Ew=(e,t,n)=>st(t,"inserter",!0)?hp(e,t.name,n):!1,xgt=(e,t)=>n=>{const o=`${t.id}/${n.name}`,{time:r,count:s=0}=Rj(e,o)||{};return{...t,id:o,icon:n.icon||t.icon,title:n.title||t.title,description:n.description||t.description,category:n.category||t.category,example:n.hasOwnProperty("example")?n.example:t.example,initialAttributes:{...t.initialAttributes,...n.attributes},innerBlocks:n.innerBlocks,keywords:n.keywords||t.keywords,frecency:Wj(r,s)}},Wj=(e,t)=>{if(!e)return t;const n=Date.now()-e;switch(!0){case nn=>{const o=n.name;let r=!1;st(n.name,"multiple",!0)||(r=c5(e,X3(e)).some(({name:u})=>u===n.name));const{time:s,count:i=0}=Rj(e,o)||{},c={id:o,name:n.name,title:n.title,icon:n.icon,isDisabled:r,frecency:Wj(s,i)};if(t==="transform")return c;const l=Xx(n.name,"inserter");return{...c,initialAttributes:{},description:n.description,category:n.category,keywords:n.keywords,variations:l,example:n.example,utility:1}},_gt=nt(e=>at((t,n=null,o=EMt)=>{const r=b=>{const h=b.wp_pattern_sync_status?Gu:{src:Gu,foreground:"var(--wp-block-synced-color)"},g=`core/block/${b.id}`,{time:z,count:y=0}=Rj(t,g)||{},x=Wj(z,y);return{id:g,name:"core/block",initialAttributes:{ref:b.id},title:b.title?.raw,icon:h,category:"reusable",keywords:["reusable"],isDisabled:!1,utility:1,frecency:x,content:b.content?.raw,syncStatus:b.wp_pattern_sync_status}},s=hp(t,"core/block",n)?Fe(e(v1)).getReusableBlocks().map(r):[],i=Yfe(t,{buildScope:"inserter"});let c=nr().filter(b=>st(b,"inserter",!0)).map(i);o[wfe]?c=c.reduce((b,h)=>{for(h.rootClientId=n??"";!hp(t,h.name,h.rootClientId);)if(h.rootClientId){const g=Ao(t,h.rootClientId);h.rootClientId=g}else{let g;try{g=Tw(t)}catch{}g&&hp(t,h.name,g)?h.rootClientId=g:delete h.rootClientId;break}return h.hasOwnProperty("rootClientId")&&b.push(h),b},[]):c=c.filter(b=>Ew(t,b,n));const l=c.reduce((b,h)=>{const{variations:g=[]}=h;if(g.some(({isDefault:z})=>z)||b.push(h),g.length){const z=xgt(t,h);b.push(...g.map(z))}return b},[]),u=(b,h)=>{const{core:g,noncore:z}=b;return(h.name.startsWith("core/")?g:z).push(h),b},{core:d,noncore:p}=l.reduce(u,{core:[],noncore:[]});return[...[...d,...p],...s]},(t,n)=>[nr(),Fe(e(v1)).getReusableBlocks(),t.blocks.order,t.preferences.insertUsage,...Fh(t,n)])),wgt=at((e,t,n=null)=>{const o=Array.isArray(t)?t:[t],r=Yfe(e,{buildScope:"transform"}),s=nr().filter(l=>Ew(e,l,n)).map(r),i=Object.fromEntries(Object.entries(s).map(([,l])=>[l.name,l])),c=dre(o).reduce((l,u)=>(i[u?.name]&&l.push(i[u.name]),l),[]);return H3(c,l=>i[l.name].frecency,"desc")},(e,t,n)=>[nr(),e.preferences.insertUsage,...Fh(e,n)]),kgt=nt(e=>(t,n=null)=>nr().some(s=>Ew(t,s,n))?!0:hp(t,"core/block",n)&&Fe(e(v1)).getReusableBlocks().length>0),HW=nt(e=>at((t,n=null)=>{if(!n)return;const o=nr().filter(s=>Ew(t,s,n));return hp(t,"core/block",n)&&Fe(e(v1)).getReusableBlocks().length>0&&o.push("core/block"),o},(t,n)=>[nr(),Fe(e(v1)).getReusableBlocks(),...Fh(t,n)])),qgt=at((e,t=null)=>(Re('wp.data.select( "core/block-editor" ).__experimentalGetAllowedBlocks',{alternative:'wp.data.select( "core/block-editor" ).getAllowedBlocks',since:"6.2",version:"6.4"}),HW(e,t)),(e,t)=>HW.getDependants(e,t));function Zfe(e,t=null){var n;if(!t)return;const{defaultBlock:o,directInsert:r}=(n=e.blockListSettings[t])!==null&&n!==void 0?n:{};if(!(!o||!r))return o}function Sgt(e,t=null){return Re('wp.data.select( "core/block-editor" ).__experimentalGetDirectInsertBlock',{alternative:'wp.data.select( "core/block-editor" ).getDirectInsertBlock',since:"6.3",version:"6.4"}),Zfe(e,t)}const Cgt=nt(e=>(t,n)=>{const o=Fe(e(v1)).getPatternBySlug(n);return o?kfe(o):null}),Tj=e=>(t,n)=>[...Ww(e)(t),...Fh(t,n)],Rgt=nt(e=>at((t,n=null)=>{const{getAllPatterns:o}=Fe(e(v1)),r=o(),{allowedBlockTypes:s}=Z3(t);return r.filter(({inserter:u=!0})=>!!u).map(u=>({...u,get blocks(){return kfe(u).blocks}})).filter(u=>qfe(VW(u),s)).filter(u=>VW(u).every(({blockName:d})=>Y3(t,d,n)))},Tj(e))),Wgt=nt(e=>at((t,n,o=null)=>{if(!n)return mo;const r=e(v1).__experimentalGetAllowedPatterns(o),s=Array.isArray(n)?n:[n],i=r.filter(c=>c?.blockTypes?.some?.(l=>s.includes(l)));return i.length===0?mo:i},(t,n,o)=>Tj(e)(t,o))),Tgt=nt(e=>(Re('wp.data.select( "core/block-editor" ).__experimentalGetPatternsByBlockTypes',{alternative:'wp.data.select( "core/block-editor" ).getPatternsByBlockTypes',since:"6.2",version:"6.4"}),e(v1).getPatternsByBlockTypes)),Egt=nt(e=>at((t,n,o=null)=>{if(!n||n.some(({clientId:s,innerBlocks:i})=>i.length||Bw(t,s)))return mo;const r=Array.from(new Set(n.map(({name:s})=>s)));return e(v1).getPatternsByBlockTypes(r,o)},(t,n,o)=>Tj(e)(t,o)));function Ej(e,t){return e.blockListSettings[t]}function Z3(e){return e.settings}function Bgt(e){return e.blocks.isPersistentChange}const Ngt=at((e,t=[])=>t.reduce((n,o)=>e.blockListSettings[o]?{...n,[o]:e.blockListSettings[o]}:n,{}),e=>[e.blockListSettings]),Lgt=nt(e=>at((t,n)=>{Re("wp.data.select( 'core/block-editor' ).__experimentalGetReusableBlockTitle",{since:"6.6",version:"6.8"});const o=Fe(e(v1)).getReusableBlocks().find(r=>r.id===n);return o?o.title?.raw:null},()=>[Fe(e(v1)).getReusableBlocks()]));function jgt(e){return e.blocks.isIgnoredChange}function Pgt(e){return e.lastBlockAttributesChange}function Igt(e){return e.editorMode==="navigation"}function Bj(e){return e.editorMode}function Dgt(e){return e.hasBlockMovingClientId}function Fgt(e){return!!e.automaticChangeStatus}function $gt(e,t){return e.highlightedBlock===t}function Bw(e,t){return!!e.blocks.controlledInnerBlocks[t]}const Vgt=at((e,t)=>{if(!t.length)return null;const n=Vh(e);if(t.includes(cs(e,n)))return n;const o=zd(e),r=wj(e,n||o[0],t);return r?r[r.length-1]:null},(e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]);function Hgt(e,t,n){const{lastBlockInserted:o}=e;return o.clientIds?.includes(t)&&o.source===n}function Ugt(e,t){var n;return(n=e.blockVisibility?.[t])!==null&&n!==void 0?n:!0}function Xgt(e){return e.hoveredBlockClientId}const Ggt=at(e=>{const t=new Set(Object.keys(e.blockVisibility).filter(n=>e.blockVisibility[n]));return t.size===0?TMt:t},e=>[e.blockVisibility]);function Qfe(e,t){if(wl(e,t)!=="default")return!1;if(!Kfe(e,t))return!0;const n=Bj(e);if(n==="zoom-out"){const s=Tw(e);if(s){if(Er(e,s)?.includes(t))return!0}else if(t&&!Ao(e,t))return!0}const o=st(cs(e,t),"__experimentalDisableBlockOverlay",!1);return(n==="navigation"||(o?!1:Bw(e,t)))&&!$fe(e,t)&&!Vfe(e,t,!0)}function Kgt(e,t){let n=e.blocks.parents.get(t);for(;n;){if(Qfe(e,n))return!0;n=e.blocks.parents.get(n)}return!1}const wl=nt(e=>(t,n="")=>{if(n===null&&(n=""),Bj(t)==="zoom-out"){const l=Tw(t);if(n==="")return l?"disabled":"contentOnly";if(n===l)return"contentOnly";if(!Er(t,l)?.includes(n))return"disabled"}const r=t.blockEditingModes.get(n);if(r)return r;if(!n)return"default";const s=Ao(t,n);if(Uh(t,s)==="contentOnly"){const l=cs(t,n);return e($e).__experimentalHasContentRoleAttribute(l)?"contentOnly":"disabled"}const c=wl(t,s);return c==="contentOnly"?"default":c}),Ygt=nt(e=>(t,n="")=>{const o=n||Vh(t);if(!o)return!1;const{getGroupingBlockName:r}=e($e),s=sl(t,o),i=r();return s&&(s.name===i||Dt(s.name)?.transforms?.ungroup)&&!!s.innerBlocks.length&&Cj(t,o)}),Zgt=nt(e=>(t,n=mo)=>{const{getGroupingBlockName:o}=e($e),r=o(),s=n?.length?n:Hh(t),i=s?.length?Ao(t,s[0]):void 0;return Y3(t,r,i)&&s.length&&Xfe(t,s)}),Qgt=(e,t)=>(Re("wp.data.select( 'core/block-editor' ).__unstableGetContentLockingParent",{since:"6.1",version:"6.7"}),Wfe(e,t));function Jgt(e){return Re("wp.data.select( 'core/block-editor' ).__unstableGetTemporarilyEditingAsBlocks",{since:"6.1",version:"6.7"}),Tfe(e)}function ezt(e){return Re("wp.data.select( 'core/block-editor' ).__unstableGetTemporarilyEditingFocusModeToRevert",{since:"6.5",version:"6.7"}),Efe(e)}const tzt=Object.freeze(Object.defineProperty({__proto__:null,__experimentalGetActiveBlockIdByBlockNames:Vgt,__experimentalGetAllowedBlocks:qgt,__experimentalGetAllowedPatterns:Rgt,__experimentalGetBlockListSettingsForBlocks:Ngt,__experimentalGetDirectInsertBlock:Sgt,__experimentalGetGlobalBlocksByName:PMt,__experimentalGetLastBlockAttributeChanges:Pgt,__experimentalGetParsedPattern:Cgt,__experimentalGetPatternTransformItems:Egt,__experimentalGetPatternsByBlockTypes:Tgt,__experimentalGetReusableBlockTitle:Lgt,__unstableGetBlockWithoutInnerBlocks:NMt,__unstableGetClientIdWithClientIdsTree:Nfe,__unstableGetClientIdsTree:Lfe,__unstableGetContentLockingParent:Qgt,__unstableGetEditorMode:Bj,__unstableGetSelectedBlocksWithPartialSelection:agt,__unstableGetTemporarilyEditingAsBlocks:Jgt,__unstableGetTemporarilyEditingFocusModeToRevert:ezt,__unstableGetVisibleBlocks:Ggt,__unstableHasActiveBlockOverlayActive:Qfe,__unstableIsFullySelected:ogt,__unstableIsLastBlockChangeIgnored:jgt,__unstableIsSelectionCollapsed:rgt,__unstableIsSelectionMergeable:igt,__unstableIsWithinBlockOverlay:Kgt,__unstableSelectionHasUnmergeableBlock:sgt,areInnerBlocksControlled:Bw,canEditBlock:Kfe,canInsertBlockType:Y3,canInsertBlocks:Agt,canLockBlockType:vgt,canMoveBlock:Gfe,canMoveBlocks:ygt,canRemoveBlock:Cj,canRemoveBlocks:Xfe,didAutomaticChange:Fgt,getAdjacentBlockClientId:kj,getAllowedBlocks:HW,getBlock:sl,getBlockAttributes:$h,getBlockCount:DMt,getBlockEditingMode:wl,getBlockHierarchyRootClientId:XMt,getBlockIndex:Ffe,getBlockInsertionPoint:Mgt,getBlockListSettings:Ej,getBlockMode:pgt,getBlockName:cs,getBlockNamesByClientId:IMt,getBlockOrder:Er,getBlockParents:Qu,getBlockParentsByBlockName:wj,getBlockRootClientId:Ao,getBlockSelectionEnd:$Mt,getBlockSelectionStart:FMt,getBlockTransformItems:wgt,getBlocks:LMt,getBlocksByClientId:c5,getBlocksByName:Pfe,getClientIdsOfDescendants:jfe,getClientIdsWithDescendants:X3,getDirectInsertBlock:Zfe,getDraggedBlockClientIds:bgt,getFirstMultiSelectedBlockClientId:qj,getGlobalBlockCount:jMt,getHoveredBlockClientId:Xgt,getInserterItems:_gt,getLastMultiSelectedBlockClientId:Ife,getLowestCommonAncestorWithSelectedBlock:GMt,getMultiSelectedBlockClientIds:zd,getMultiSelectedBlocks:QMt,getMultiSelectedBlocksEndClientId:ngt,getMultiSelectedBlocksStartClientId:tgt,getNextBlockClientId:YMt,getPatternsByBlockTypes:Wgt,getPreviousBlockClientId:KMt,getSelectedBlock:UMt,getSelectedBlockClientId:Vh,getSelectedBlockClientIds:Hh,getSelectedBlockCount:VMt,getSelectedBlocksInitialCaretPosition:ZMt,getSelectionEnd:K3,getSelectionStart:G3,getSettings:Z3,getTemplate:Ogt,getTemplateLock:Uh,hasBlockMovingClientId:Dgt,hasDraggedInnerBlock:Hfe,hasInserterItems:kgt,hasMultiSelection:lgt,hasSelectedBlock:HMt,hasSelectedInnerBlock:Vfe,isAncestorBeingDragged:hgt,isAncestorMultiSelected:egt,isBlockBeingDragged:Sj,isBlockHighlighted:$gt,isBlockInsertionPointVisible:ggt,isBlockMultiSelected:Dfe,isBlockSelected:$fe,isBlockValid:BMt,isBlockVisible:Ugt,isBlockWithinSelection:cgt,isCaretWithinFormattedText:mgt,isDraggingBlocks:Ufe,isFirstMultiSelectedBlock:JMt,isGroupable:Zgt,isLastBlockChangePersistent:Bgt,isMultiSelecting:ugt,isNavigationMode:Igt,isSelectionEnabled:dgt,isTyping:fgt,isUngroupable:Ygt,isValidTemplate:zgt,wasBlockJustInserted:Hgt},Symbol.toStringTag,{value:"Module"})),nzt=e=>Array.isArray(e)?e:[e],ozt=["inserterMediaCategories","blockInspectorAnimation"];function Jfe(e,{stripExperimentalSettings:t=!1,reset:n=!1}={}){let o=e;if(t&&w1.OS==="web"){o={};for(const r in e)ozt.includes(r)||(o[r]=e[r])}return{type:"UPDATE_SETTINGS",settings:o,reset:n}}function rzt(){return{type:"HIDE_BLOCK_INTERFACE"}}function szt(){return{type:"SHOW_BLOCK_INTERFACE"}}const ebe=(e,t=!0,n=!1)=>({select:o,dispatch:r,registry:s})=>{if(!e||!e.length||(e=nzt(e),!o.canRemoveBlocks(e)))return;const c=!n&&o.getBlockRemovalRules();if(c){let u=function(b){const h=[],g=[...b];for(;g.length;){const{innerBlocks:z,...y}=g.shift();g.push(...z),h.push(y)}return h};var l=u;const d=e.map(o.getBlock),p=u(d);let f;for(const b of c)if(f=b.callback(p),f){r(izt(e,t,f));return}}t&&r.selectPreviousBlock(e[0],t),s.batch(()=>{r({type:"REMOVE_BLOCKS",clientIds:e}),r(tbe())})},tbe=()=>({select:e,dispatch:t})=>{if(e.getBlockCount()>0)return;const{__unstableHasCustomAppender:o}=e.getSettings();o||t.insertDefaultBlock()};function izt(e,t,n){return{type:"DISPLAY_BLOCK_REMOVAL_PROMPT",clientIds:e,selectPrevious:t,message:n}}function azt(){return{type:"CLEAR_BLOCK_REMOVAL_PROMPT"}}function czt(e=!1){return{type:"SET_BLOCK_REMOVAL_RULES",rules:e}}function lzt(e){return{type:"SET_OPENED_BLOCK_SETTINGS_MENU",clientId:e}}function uzt(e,t){return{type:"SET_STYLE_OVERRIDE",id:e,style:t}}function dzt(e){return{type:"DELETE_STYLE_OVERRIDE",id:e}}function pzt(e=null){return{type:"LAST_FOCUS",lastFocus:e}}function fzt(e){return({select:t,dispatch:n,registry:o})=>{const r=Fe(o.select(F)).getTemporarilyEditingFocusModeToRevert();n.__unstableMarkNextChangeAsNotPersistent(),n.updateBlockAttributes(e,{templateLock:"contentOnly"}),n.updateBlockListSettings(e,{...t.getBlockListSettings(e),templateLock:"contentOnly"}),n.updateSettings({focusMode:r}),n.__unstableSetTemporarilyEditingAsBlocks()}}function bzt(){return{type:"START_DRAGGING"}}function hzt(){return{type:"STOP_DRAGGING"}}function mzt(e){return{type:"SET_BLOCK_EXPANDED_IN_LIST_VIEW",clientId:e}}const Mzt=e=>({select:t,dispatch:n})=>{n.selectBlock(e),n.__unstableMarkNextChangeAsNotPersistent(),n.updateBlockAttributes(e,{templateLock:void 0}),n.updateBlockListSettings(e,{...t.getBlockListSettings(e),templateLock:!1});const o=t.getSettings().focusMode;n.updateSettings({focusMode:!0}),n.__unstableSetTemporarilyEditingAsBlocks(e,o)},nbe=Object.freeze(Object.defineProperty({__proto__:null,__experimentalUpdateSettings:Jfe,clearBlockRemovalPrompt:azt,deleteStyleOverride:dzt,ensureDefaultBlock:tbe,expandBlock:mzt,hideBlockInterface:rzt,modifyContentLockBlock:Mzt,privateRemoveBlocks:ebe,setBlockRemovalRules:czt,setLastFocus:pzt,setOpenedBlockSettingsMenu:lzt,setStyleOverride:uzt,showBlockInterface:szt,startDragging:bzt,stopDragging:hzt,stopEditingAsBlocks:fzt},Symbol.toStringTag,{value:"Module"})),gzt=e=>t=>(n={},o)=>{const r=o[e];if(r===void 0)return n;const s=t(n[r],o);return s===n[r]?n:{...n,[r]:s}},zzt=gzt("context")((e=[],t)=>{switch(t.type){case"CREATE_NOTICE":return[...e.filter(({id:n})=>n!==t.notice.id),t.notice];case"REMOVE_NOTICE":return e.filter(({id:n})=>n!==t.id);case"REMOVE_NOTICES":return e.filter(({id:n})=>!t.ids.includes(n));case"REMOVE_ALL_NOTICES":return e.filter(({type:n})=>n!==t.noticeType)}return e}),Q3="global",Ozt="info";let Azt=0;function J3(e=Ozt,t,n={}){const{speak:o=!0,isDismissible:r=!0,context:s=Q3,id:i=`${s}${++Azt}`,actions:c=[],type:l="default",__unstableHTML:u,icon:d=null,explicitDismiss:p=!1,onDismiss:f}=n;return t=String(t),{type:"CREATE_NOTICE",context:s,notice:{id:i,status:e,content:t,spokenMessage:o?t:null,__unstableHTML:u,isDismissible:r,actions:c,type:l,icon:d,explicitDismiss:p,onDismiss:f}}}function yzt(e,t){return J3("success",e,t)}function vzt(e,t){return J3("info",e,t)}function xzt(e,t){return J3("error",e,t)}function _zt(e,t){return J3("warning",e,t)}function wzt(e,t=Q3){return{type:"REMOVE_NOTICE",id:e,context:t}}function kzt(e="default",t=Q3){return{type:"REMOVE_ALL_NOTICES",noticeType:e,context:t}}function qzt(e,t=Q3){return{type:"REMOVE_NOTICES",ids:e,context:t}}const Szt=Object.freeze(Object.defineProperty({__proto__:null,createErrorNotice:xzt,createInfoNotice:vzt,createNotice:J3,createSuccessNotice:yzt,createWarningNotice:_zt,removeAllNotices:kzt,removeNotice:wzt,removeNotices:qzt},Symbol.toStringTag,{value:"Module"})),Czt=[];function Rzt(e,t=Q3){return e[t]||Czt}const Wzt=Object.freeze(Object.defineProperty({__proto__:null,getNotices:Rzt},Symbol.toStringTag,{value:"Module"})),Ze=er("core/notices",{reducer:zzt,actions:Szt,selectors:Wzt});Qs(Ze);const Gp="†";function Nj(e){if(e)return Object.keys(e).find(t=>{const n=e[t];return(typeof n=="string"||n instanceof un)&&n.toString().indexOf(Gp)!==-1})}function dK(e){for(const[t,n]of Object.entries(e.attributes))if(n.source==="rich-text"||n.source==="html")return t}const U2=e=>Array.isArray(e)?e:[e],Tzt=e=>({dispatch:t})=>{t({type:"RESET_BLOCKS",blocks:e}),t(obe(e))},obe=e=>({select:t,dispatch:n})=>{const o=t.getTemplate(),r=t.getTemplateLock(),s=!o||r!=="all"||Ure(e,o),i=t.isValidTemplate();if(s!==i)return n.setTemplateValidity(s),s};function Ezt(e,t,n){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:n}}function Bzt(e){return Re('wp.data.dispatch( "core/block-editor" ).receiveBlocks',{since:"5.9",alternative:"resetBlocks or insertBlocks"}),{type:"RECEIVE_BLOCKS",blocks:e}}function Nzt(e,t,n=!1){return{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:U2(e),attributes:t,uniqueByBlock:n}}function Lzt(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function jzt(e,t=0){return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function Pzt(e){return{type:"HOVER_BLOCK",clientId:e}}const Izt=(e,t=!1)=>({select:n,dispatch:o})=>{const r=n.getPreviousBlockClientId(e);if(r)o.selectBlock(r,-1);else if(t){const s=n.getBlockRootClientId(e);s&&o.selectBlock(s,-1)}},Dzt=e=>({select:t,dispatch:n})=>{const o=t.getNextBlockClientId(e);o&&n.selectBlock(o)};function Fzt(){return{type:"START_MULTI_SELECT"}}function $zt(){return{type:"STOP_MULTI_SELECT"}}const Vzt=(e,t,n=0)=>({select:o,dispatch:r})=>{const s=o.getBlockRootClientId(e),i=o.getBlockRootClientId(t);if(s!==i)return;r({type:"MULTI_SELECT",start:e,end:t,initialPosition:n});const c=o.getSelectedBlockCount();At(le(a0("%s block selected.","%s blocks selected.",c),c),"assertive")};function Hzt(){return{type:"CLEAR_SELECTED_BLOCK"}}function Uzt(e=!0){return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}const rbe=(e,t,n,o=0,r)=>({select:s,dispatch:i,registry:c})=>{e=U2(e),t=U2(t);const l=s.getBlockRootClientId(e[0]);for(let u=0;u{i({type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n,initialPosition:o,meta:r}),i.ensureDefaultBlock()})};function Xzt(e,t){return rbe(e,t)}const sbe=e=>(t,n)=>({select:o,dispatch:r})=>{o.canMoveBlocks(t)&&r({type:e,clientIds:U2(t),rootClientId:n})},Gzt=sbe("MOVE_BLOCKS_DOWN"),Kzt=sbe("MOVE_BLOCKS_UP"),ibe=(e,t="",n="",o)=>({select:r,dispatch:s})=>{r.canMoveBlocks(e)&&(t!==n&&(!r.canRemoveBlocks(e)||!r.canInsertBlocks(e,n))||s({type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:o}))};function Yzt(e,t="",n="",o){return ibe([e],t,n,o)}function Zzt(e,t,n,o,r){return abe([e],t,n,o,0,r)}const abe=(e,t,n,o=!0,r=0,s)=>({select:i,dispatch:c})=>{r!==null&&typeof r=="object"&&(s=r,r=0,Re("meta argument in wp.data.dispatch('core/block-editor')",{since:"5.8",hint:"The meta argument is now the 6th argument of the function"})),e=U2(e);const l=[];for(const u of e)i.canInsertBlockType(u.name,n)&&l.push(u);l.length&&c({type:"INSERT_BLOCKS",blocks:l,index:t,rootClientId:n,time:Date.now(),updateSelection:o,initialPosition:o?r:null,meta:s})};function Qzt(e,t,n={}){const{__unstableWithInserter:o,operation:r,nearestSide:s}=n;return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t,__unstableWithInserter:o,operation:r,nearestSide:s}}const Jzt=()=>({select:e,dispatch:t})=>{e.isBlockInsertionPointVisible()&&t({type:"HIDE_INSERTION_POINT"})};function e3t(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}const t3t=()=>({select:e,dispatch:t})=>{t({type:"SYNCHRONIZE_TEMPLATE"});const n=e.getBlocks(),o=e.getTemplate(),r=Ng(n,o);t.resetBlocks(r)},n3t=e=>({registry:t,select:n,dispatch:o})=>{const r=n.getSelectionStart(),s=n.getSelectionEnd();if(r.clientId===s.clientId)return;if(!r.attributeKey||!s.attributeKey||typeof r.offset>"u"||typeof s.offset>"u")return!1;const i=n.getBlockRootClientId(r.clientId),c=n.getBlockRootClientId(s.clientId);if(i!==c)return;const l=n.getBlockOrder(i),u=l.indexOf(r.clientId),d=l.indexOf(s.clientId);let p,f;u>d?(p=s,f=r):(p=r,f=s);const b=e?f:p,h=n.getBlock(b.clientId),g=Dt(h.name);if(!g.merge)return;const z=p,y=f,x=n.getBlock(z.clientId),v=n.getBlock(y.clientId),M=x.attributes[z.attributeKey],A=v.attributes[y.attributeKey];let _=m0({html:M}),w=m0({html:A});_=Ks(_,z.offset,_.text.length),w=Y1(w,Gp,0,y.offset);const k=pn(x,{[z.attributeKey]:K1({value:_})}),q=pn(v,{[y.attributeKey]:K1({value:w})}),S=e?k:q,C=x.name===v.name?[S]:l1(S,g.name);if(!C||!C.length)return;let T;if(e){const U=C.pop();T=g.merge(U.attributes,q.attributes)}else{const U=C.shift();T=g.merge(k.attributes,U.attributes)}const W=Nj(T),B=T[W],N=m0({html:B}),E=N.text.indexOf(Gp),L=Ks(N,E,E+1),I=K1({value:L});T[W]=I;const P=n.getSelectedBlockClientIds(),H=[...e?C:[],{...h,attributes:{...h.attributes,...T}},...e?[]:C];t.batch(()=>{o.selectionChange(h.clientId,W,E,E),o.replaceBlocks(P,H,0,n.getSelectedBlocksInitialCaretPosition())})},o3t=(e=[])=>({registry:t,select:n,dispatch:o})=>{const r=n.getSelectionStart(),s=n.getSelectionEnd(),i=n.getBlockRootClientId(r.clientId),c=n.getBlockRootClientId(s.clientId);if(i!==c)return;const l=n.getBlockOrder(i),u=l.indexOf(r.clientId),d=l.indexOf(s.clientId);let p,f;u>d?(p=s,f=r):(p=r,f=s);const b=p,h=f,g=n.getBlock(b.clientId),z=n.getBlock(h.clientId),y=Dt(g.name),x=Dt(z.name),v=typeof b.attributeKey=="string"?b.attributeKey:dK(y),M=typeof h.attributeKey=="string"?h.attributeKey:dK(x),A=n.getBlockAttributes(b.clientId);if(A?.metadata?.bindings?.[v]){if(e.length){const{createWarningNotice:Z}=t.dispatch(Ze);Z(m("Blocks can't be inserted into other blocks with bindings"),{type:"snackbar"});return}o.insertAfterBlock(b.clientId);return}if(!v||!M||typeof r.offset>"u"||typeof s.offset>"u")return;if(b.clientId===h.clientId&&v===M&&b.offset===h.offset){if(e.length){if(Yc(g)){o.replaceBlocks([b.clientId],e,e.length-1,-1);return}}else if(!n.getBlockOrder(b.clientId).length){let Z=function(){const oe=jn();return n.canInsertBlockType(oe,i)?me(oe):me(n.getBlockName(b.clientId))};var X=Z;const ne=A[v].length;if(b.offset===0&&ne){o.insertBlocks([Z()],n.getBlockIndex(b.clientId),i,!1);return}if(b.offset===ne){o.insertBlocks([Z()],n.getBlockIndex(b.clientId)+1,i);return}}}const w=g.attributes[v],k=z.attributes[M];let q=m0({html:w}),S=m0({html:k});q=Ks(q,b.offset,q.text.length),S=Ks(S,0,h.offset);let C={...g,innerBlocks:g.clientId===z.clientId?[]:g.innerBlocks,attributes:{...g.attributes,[v]:K1({value:q})}},T={...z,clientId:g.clientId===z.clientId?me(z.name).clientId:z.clientId,attributes:{...z.attributes,[M]:K1({value:S})}};const W=jn();if(g.clientId===z.clientId&&W&&T.name!==W&&n.canInsertBlockType(W,i)){const Z=l1(T,W);Z?.length===1&&(T=Z[0])}if(!e.length){o.replaceBlocks(n.getSelectedBlockClientIds(),[C,T]);return}let B;const N=[],E=[...e],L=E.shift(),I=Dt(C.name),P=I.merge&&L.name===I.name?[L]:l1(L,I.name);if(P?.length){const Z=P.shift();C={...C,attributes:{...C.attributes,...I.merge(C.attributes,Z.attributes)}},N.push(C),B={clientId:C.clientId,attributeKey:v,offset:m0({html:C.attributes[v]}).text.length},E.unshift(...P)}else Kb(C)||N.push(C),N.push(L);const H=E.pop(),U=Dt(T.name);if(E.length&&N.push(...E),H){const Z=U.merge&&U.name===H.name?[H]:l1(H,U.name);if(Z?.length){const ne=Z.pop();N.push({...T,attributes:{...T.attributes,...U.merge(ne.attributes,T.attributes)}}),N.push(...Z),B={clientId:T.clientId,attributeKey:M,offset:m0({html:ne.attributes[M]}).text.length}}else N.push(H),Kb(T)||N.push(T)}else Kb(T)||N.push(T);t.batch(()=>{o.replaceBlocks(n.getSelectedBlockClientIds(),N,N.length-1,0),B&&o.selectionChange(B.clientId,B.attributeKey,B.offset,B.offset)})},r3t=()=>({select:e,dispatch:t})=>{const n=e.getSelectionStart(),o=e.getSelectionEnd();t.selectionChange({start:{clientId:n.clientId},end:{clientId:o.clientId}})},s3t=(e,t)=>({registry:n,select:o,dispatch:r})=>{const s=e,i=t,c=o.getBlock(s),l=Dt(c.name);if(!l)return;const u=o.getBlock(i);if(!l.merge&&Zt(c.name,"__experimentalOnMerge")){const A=l1(u,l.name);if(A?.length!==1){r.selectBlock(c.clientId);return}const[_]=A;if(_.innerBlocks.length<1){r.selectBlock(c.clientId);return}n.batch(()=>{r.insertBlocks(_.innerBlocks,void 0,s),r.removeBlock(i),r.selectBlock(_.innerBlocks[0].clientId);const w=o.getNextBlockClientId(s);if(w&&o.getBlockName(s)===o.getBlockName(w)){const k=o.getBlockAttributes(s),q=o.getBlockAttributes(w);Object.keys(k).every(S=>k[S]===q[S])&&(r.moveBlocksToPosition(o.getBlockOrder(w),w,s),r.removeBlock(w,!1))}});return}if(Yc(c)){r.removeBlock(s,o.isBlockSelected(s));return}if(Yc(u)){r.removeBlock(i,o.isBlockSelected(i));return}if(!l.merge){r.selectBlock(c.clientId);return}const d=Dt(u.name),{clientId:p,attributeKey:f,offset:b}=o.getSelectionStart(),g=(p===s?l:d).attributes[f],z=(p===s||p===i)&&f!==void 0&&b!==void 0&&!!g;g||(typeof f=="number"?window.console.error(`RichText needs an identifier prop that is the block attribute key of the attribute it controls. Its type is expected to be a string, but was ${typeof f}`):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));const y=pn(c),x=pn(u);if(z){const A=p===s?y:x,_=A.attributes[f],w=Y1(m0({html:_}),Gp,b,b);A.attributes[f]=K1({value:w})}const v=c.name===u.name?[x]:l1(x,c.name);if(!v||!v.length)return;const M=l.merge(y.attributes,v[0].attributes);if(z){const A=Nj(M),_=M[A],w=m0({html:_}),k=w.text.indexOf(Gp),q=Ks(w,k,k+1),S=K1({value:q});M[A]=S,r.selectionChange(c.clientId,A,k,k)}r.replaceBlocks([c.clientId,u.clientId],[{...c,attributes:{...c.attributes,...M}},...v.slice(1)],0)},cbe=(e,t=!0)=>ebe(e,t);function i3t(e,t){return cbe([e],t)}function a3t(e,t,n=!1,o=0){return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,initialPosition:n?o:null,time:Date.now()}}function c3t(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function l3t(){return{type:"START_TYPING"}}function u3t(){return{type:"STOP_TYPING"}}function d3t(e=[]){return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function p3t(){return{type:"STOP_DRAGGING_BLOCKS"}}function f3t(){return Re('wp.data.dispatch( "core/block-editor" ).enterFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function b3t(){return Re('wp.data.dispatch( "core/block-editor" ).exitFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function h3t(e,t,n,o){return typeof e=="string"?{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:o}:{type:"SELECTION_CHANGE",...e}}const m3t=(e,t,n)=>({dispatch:o})=>{const r=jn();if(!r)return;const s=me(r,e);return o.insertBlock(s,n,t)};function M3t(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function g3t(e){return Jfe(e,{stripExperimentalSettings:!0})}function z3t(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function O3t(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function A3t(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}const y3t=()=>({dispatch:e})=>{e({type:"MARK_AUTOMATIC_CHANGE"});const{requestIdleCallback:t=n=>setTimeout(n,100)}=window;t(()=>{e({type:"MARK_AUTOMATIC_CHANGE_FINAL"})})},v3t=(e=!0)=>({dispatch:t})=>{t.__unstableSetEditorMode(e?"navigation":"edit")},x3t=e=>({dispatch:t,select:n})=>{if(e==="zoom-out"){const o=n.getBlockSelectionStart(),r=n.getSectionRootClientId();if(o){let s;if(r){const i=n.getBlockOrder(r);i?.includes(o)?s=o:s=n.getBlockParents(o).find(c=>i.includes(c))}else s=n.getBlockHierarchyRootClientId(o);s?t.selectBlock(s):t.clearSelectedBlock()}}t({type:"SET_EDITOR_MODE",mode:e}),e==="navigation"?At(m("You are currently in navigation mode. Navigate blocks using the Tab key and Arrow keys. Use Left and Right Arrow keys to move between nesting levels. To exit navigation mode and edit the selected block, press Enter.")):e==="edit"?At(m("You are currently in edit mode. To return to the navigation mode, press Escape.")):e==="zoom-out"&&At(m("You are currently in zoom-out mode."))},_3t=(e=null)=>({dispatch:t})=>{t({type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e}),e&&At(m("Use the Tab key and Arrow keys to choose new block location. Use Left and Right Arrow keys to move between nesting levels. Once location is selected press Enter or Space to move the block."))},w3t=(e,t=!0)=>({select:n,dispatch:o})=>{if(!e||!e.length)return;const r=n.getBlocksByClientId(e);if(r.some(d=>!d)||r.map(d=>d.name).some(d=>!st(d,"multiple",!0)))return;const i=n.getBlockRootClientId(e[0]),c=U2(e),l=n.getBlockIndex(c[c.length-1]),u=r.map(d=>lre(d));return o.insertBlocks(u,l+1,i,t),u.length>1&&t&&o.multiSelect(u[0].clientId,u[u.length-1].clientId),u.map(d=>d.clientId)},k3t=e=>({select:t,dispatch:n})=>{if(!e)return;const o=t.getBlockRootClientId(e);if(t.getTemplateLock(o))return;const s=t.getBlockIndex(e),i=o?t.getDirectInsertBlock(o):null;if(!i)return n.insertDefaultBlock({},o,s);const c={};if(i.attributesToCopy){const u=t.getBlockAttributes(e);i.attributesToCopy.forEach(d=>{u[d]&&(c[d]=u[d])})}const l=me(i.name,{...i.attributes,...c});return n.insertBlock(l,s,o)},q3t=e=>({select:t,dispatch:n})=>{if(!e)return;const o=t.getBlockRootClientId(e);if(t.getTemplateLock(o))return;const s=t.getBlockIndex(e),i=o?t.getDirectInsertBlock(o):null;if(!i)return n.insertDefaultBlock({},o,s+1);const c={};if(i.attributesToCopy){const u=t.getBlockAttributes(e);i.attributesToCopy.forEach(d=>{u[d]&&(c[d]=u[d])})}const l=me(i.name,{...i.attributes,...c});return n.insertBlock(l,s+1,o)};function UW(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}const S3t=e=>async({dispatch:t})=>{t(UW(e,!0)),await new Promise(n=>setTimeout(n,150)),t(UW(e,!1))};function C3t(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}function R3t(e){return{type:"SET_BLOCK_VISIBILITY",updates:e}}function W3t(e,t){return{type:"SET_TEMPORARILY_EDITING_AS_BLOCKS",temporarilyEditingAsBlocks:e,focusModeToRevert:t}}const T3t=e=>({select:t,dispatch:n})=>{if(!e||typeof e!="object"){console.error("Category should be an `InserterMediaCategory` object.");return}if(!e.name){console.error("Category should have a `name` that should be unique among all media categories.");return}if(!e.labels?.name){console.error("Category should have a `labels.name`.");return}if(!["image","audio","video"].includes(e.mediaType)){console.error("Category should have `mediaType` property that is one of `image|audio|video`.");return}if(!e.fetch||typeof e.fetch!="function"){console.error("Category should have a `fetch` function defined with the following signature `(InserterMediaRequest) => Promise`.");return}const o=t.getRegisteredInserterMediaCategories();if(o.some(({name:r})=>r===e.name)){console.error(`A category is already registered with the same name: "${e.name}".`);return}if(o.some(({labels:{name:r}={}})=>r===e.labels?.name)){console.error(`A category is already registered with the same labels.name: "${e.labels.name}".`);return}n({type:"REGISTER_INSERTER_MEDIA_CATEGORY",category:{...e,isExternalResource:!0}})};function E3t(e="",t){return{type:"SET_BLOCK_EDITING_MODE",clientId:e,mode:t}}function B3t(e=""){return{type:"UNSET_BLOCK_EDITING_MODE",clientId:e}}const N3t=Object.freeze(Object.defineProperty({__proto__:null,__unstableDeleteSelection:n3t,__unstableExpandSelection:r3t,__unstableMarkAutomaticChange:y3t,__unstableMarkLastChangeAsPersistent:O3t,__unstableMarkNextChangeAsNotPersistent:A3t,__unstableSaveReusableBlock:z3t,__unstableSetEditorMode:x3t,__unstableSetTemporarilyEditingAsBlocks:W3t,__unstableSplitSelection:o3t,clearSelectedBlock:Hzt,duplicateBlocks:w3t,enterFormattedText:f3t,exitFormattedText:b3t,flashBlock:S3t,hideInsertionPoint:Jzt,hoverBlock:Pzt,insertAfterBlock:q3t,insertBeforeBlock:k3t,insertBlock:Zzt,insertBlocks:abe,insertDefaultBlock:m3t,mergeBlocks:s3t,moveBlockToPosition:Yzt,moveBlocksDown:Gzt,moveBlocksToPosition:ibe,moveBlocksUp:Kzt,multiSelect:Vzt,receiveBlocks:Bzt,registerInserterMediaCategory:T3t,removeBlock:i3t,removeBlocks:cbe,replaceBlock:Xzt,replaceBlocks:rbe,replaceInnerBlocks:a3t,resetBlocks:Tzt,resetSelection:Ezt,selectBlock:jzt,selectNextBlock:Dzt,selectPreviousBlock:Izt,selectionChange:h3t,setBlockEditingMode:E3t,setBlockMovingClientId:_3t,setBlockVisibility:R3t,setHasControlledInnerBlocks:C3t,setNavigationMode:v3t,setTemplateValidity:e3t,showInsertionPoint:Qzt,startDraggingBlocks:d3t,startMultiSelect:Fzt,startTyping:l3t,stopDraggingBlocks:p3t,stopMultiSelect:$zt,stopTyping:u3t,synchronizeTemplate:t3t,toggleBlockHighlight:UW,toggleBlockMode:c3t,toggleSelection:Uzt,unsetBlockEditingMode:B3t,updateBlock:Lzt,updateBlockAttributes:Nzt,updateBlockListSettings:M3t,updateSettings:g3t,validateBlocksToTemplate:obe},Symbol.toStringTag,{value:"Module"})),Nw={reducer:Jmt,selectors:tzt,actions:N3t},F=er(v1,{...Nw,persist:["preferences"]}),lbe=gSe(v1,{...Nw,persist:["preferences"]});Fe(lbe).registerPrivateActions(nbe);Fe(lbe).registerPrivateSelectors(Bfe);Fe(F).registerPrivateActions(nbe);Fe(F).registerPrivateSelectors(Bfe);function Gn({className:e,actions:t,children:n,secondaryActions:o}){return a.jsx("div",{style:{display:"contents",all:"initial"},children:a.jsx("div",{className:$(e,"block-editor-warning"),children:a.jsxs("div",{className:"block-editor-warning__contents",children:[a.jsx("p",{className:"block-editor-warning__message",children:n}),(O.Children.count(t)>0||o)&&a.jsxs("div",{className:"block-editor-warning__actions",children:[O.Children.count(t)>0&&O.Children.map(t,(r,s)=>a.jsx("span",{className:"block-editor-warning__action",children:r},s)),o&&a.jsx(E1,{className:"block-editor-warning__secondary",icon:Ol,label:m("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0,children:()=>a.jsx(Yt,{children:o.map((r,s)=>a.jsx(tt,{onClick:r.onClick,children:r.title},s))})})]})]})})})}function L3t({originalBlockClientId:e,name:t,onReplace:n}){const{selectBlock:o}=ae(F),r=Dt(t);return a.jsxs(Gn,{actions:[a.jsx(fe,{__next40pxDefaultSize:!1,variant:"secondary",onClick:()=>o(e),children:m("Find original")},"find-original"),a.jsx(fe,{__next40pxDefaultSize:!1,variant:"secondary",onClick:()=>n([]),children:m("Remove")},"remove")],children:[a.jsxs("strong",{children:[r?.title,": "]}),m("This block can only be used once.")]})}const lz=O.createContext({});function j3t({mayDisplayControls:e,mayDisplayParentControls:t,blockEditingMode:n,isPreviewMode:o,...r}){const{name:s,isSelected:i,clientId:c,attributes:l={},__unstableLayoutClassNames:u}=r,{layout:d=null,metadata:p={}}=l,{bindings:f}=p,b=st(s,"layout",!1)||st(s,"__experimentalLayout",!1),{originalBlockClientId:h}=O.useContext(lz);return a.jsxs(Qre,{value:O.useMemo(()=>({name:s,isSelected:i,clientId:c,layout:b?d:null,__unstableLayoutClassNames:u,[n3]:e,[RN]:t,[Gre]:n,[WN]:f,[Kre]:o}),[s,i,c,b,d,u,e,t,n,f,o]),children:[a.jsx(smt,{...r}),h&&a.jsx(L3t,{originalBlockClientId:h,name:s,onReplace:r.onReplace})]})}function O0(...e){const{clientId:t=null}=eo();return D(n=>Fe(n(F)).getBlockSettings(t,...e),[t,...e])}const{kebabCase:P3t}=Fe(L0),pK=([e,...t])=>e.toUpperCase()+t.join(""),I3t=()=>Sn(e=>t=>{const[n,o,r]=O0("color.palette.custom","color.palette.theme","color.palette.default"),s=O.useMemo(()=>[...n||[],...o||[],...r||[]],[n,o,r]);return a.jsx(e,{...t,colors:s})},"withEditorColorPalette");function D3t(e,t){const n=e.reduce((o,r)=>({...o,...typeof r=="string"?{[r]:P3t(r)}:r}),{});return v0([t,o=>class extends O.Component{constructor(r){super(r),this.setters=this.createSetters(),this.colorUtils={getMostReadableColor:this.getMostReadableColor.bind(this)},this.state={}}getMostReadableColor(r){const{colors:s}=this.props;return nmt(s,r)}createSetters(){return Object.keys(n).reduce((r,s)=>{const i=pK(s),c=`custom${i}`;return r[`set${i}`]=this.createSetColor(s,c),r},{})}createSetColor(r,s){return i=>{const c=yfe(this.props.colors,i);this.props.setAttributes({[r]:c&&c.slug?c.slug:void 0,[s]:c&&c.slug?void 0:i})}}static getDerivedStateFromProps({attributes:r,colors:s},i){return Object.entries(n).reduce((c,[l,u])=>{const d=Up(s,r[l],r[`custom${pK(l)}`]),p=i[l];return p?.color===d.color&&p?c[l]=p:c[l]={...d,class:lt(u,d.slug)},c},{})}render(){return a.jsx(o,{...this.props,colors:void 0,...this.state,...this.setters,colorUtils:this.colorUtils})}}])}function eO(...e){const t=I3t();return Sn(D3t(e,t),"withColors")}function lr(e){if(e)return`has-${e}-gradient-background`}function ube(e,t){const n=e?.find(o=>o.slug===t);return n&&n.gradient}function F3t(e,t){return e?.find(o=>o.gradient===t)}function $3t(e,t){const n=F3t(e,t);return n&&n.slug}function Lw({gradientAttribute:e="gradient",customGradientAttribute:t="customGradient"}={}){const{clientId:n}=eo(),[o,r,s]=O0("color.gradients.custom","color.gradients.theme","color.gradients.default"),i=O.useMemo(()=>[...o||[],...r||[],...s||[]],[o,r,s]),{gradient:c,customGradient:l}=D(b=>{const{getBlockAttributes:h}=b(F),g=h(n)||{};return{customGradient:g[t],gradient:g[e]}},[n,e,t]),{updateBlockAttributes:u}=ae(F),d=O.useCallback(b=>{const h=$3t(i,b);if(h){u(n,{[e]:h,[t]:void 0});return}u(n,{[e]:void 0,[t]:b})},[i,n,u]),p=lr(c);let f;return c?f=ube(i,c):f=l,{gradientClass:p,gradientValue:f,setGradient:d}}const{kebabCase:V3t}=Fe(L0),H3t=(e,t,n)=>{if(t){const o=e?.find(({slug:r})=>r===t);if(o)return o}return{size:n}};function l5(e){if(e)return`has-${V3t(e)}-font-size`}const U3t="1600px",X3t="320px",G3t=1,K3t=.25,Y3t=.75,Z3t="14px";function Q3t({minimumFontSize:e,maximumFontSize:t,fontSize:n,minimumViewportWidth:o=X3t,maximumViewportWidth:r=U3t,scaleFactor:s=G3t,minimumFontSizeLimit:i}){if(i=hc(i)?i:Z3t,n){const v=hc(n);if(!v?.unit)return null;const M=hc(i,{coerceTo:v.unit});if(M?.value&&!e&&!t&&v?.value<=M?.value)return null;if(t||(t=`${v.value}${v.unit}`),!e){const A=v.unit==="px"?v.value:v.value*16,_=Math.min(Math.max(1-.075*Math.log2(A),K3t),Y3t),w=pM(v.value*_,3);M?.value&&wt(e===f?void 0:f)}const l=n.find(f=>f.align===e);function u(){return l?l.icon:ft()?w3:_3}const d=i?c0:_l,p=i?{isCollapsed:s}:{toggleProps:{description:r},popoverProps:eOt};return a.jsx(d,{icon:u(),label:o,controls:n.map(f=>{const{align:b}=f;return{...f,isActive:e===b,role:s?"menuitemradio":void 0,onClick:c(b)}}),...p})}const gn=e=>a.jsx(dbe,{...e,isToolbar:!1}),uz=e=>a.jsx(dbe,{...e,isToolbar:!0}),tOt=e=>e.name||"",nOt=e=>e.title,oOt=e=>e.description||"",rOt=e=>e.keywords||[],sOt=e=>e.category,iOt=()=>null,aOt=[/([\p{Ll}\p{Lo}\p{N}])([\p{Lu}\p{Lt}])/gu,/([\p{Lu}\p{Lt}])([\p{Lu}\p{Lt}][\p{Ll}\p{Lo}])/gu],cOt=/(\p{C}|\p{P}|\p{S})+/giu,dS=new Map,pS=new Map;function Lj(e=""){if(dS.has(e))return dS.get(e);const t=Mx(e,{splitRegexp:aOt,stripRegexp:cOt}).split(" ").filter(Boolean);return dS.set(e,t),t}function u5(e=""){if(pS.has(e))return pS.get(e);let t=Xs(e);return t=t.replace(/^\//,""),t=t.toLowerCase(),pS.set(e,t),t}const jw=(e="")=>Lj(u5(e)),lOt=(e,t)=>e.filter(n=>!jw(t).some(o=>o.includes(n))),pbe=(e,t,n,o)=>jw(o).length===0?e:jj(e,o,{getCategory:i=>t.find(({slug:c})=>c===i.category)?.title,getCollection:i=>n[i.name.split("/")[0]]?.title}),jj=(e=[],t="",n={})=>{if(jw(t).length===0)return e;const r=e.map(s=>[s,uOt(s,t,n)]).filter(([,s])=>s>0);return r.sort(([,s],[,i])=>i-s),r.map(([s])=>s)};function uOt(e,t,n={}){const{getName:o=tOt,getTitle:r=nOt,getDescription:s=oOt,getKeywords:i=rOt,getCategory:c=sOt,getCollection:l=iOt}=n,u=o(e),d=r(e),p=s(e),f=i(e),b=c(e),h=l(e),g=u5(t),z=u5(d);let y=0;if(g===z)y+=30;else if(z.startsWith(g))y+=20;else{const x=[u,d,p,...f,b,h].join(" "),v=Lj(g);lOt(v,x).length===0&&(y+=10)}if(y!==0&&u.startsWith("core/")){const x=u!==e.id;y+=x?1:2}return y}const Pw=(e,t,n)=>{const o=O.useMemo(()=>({[wfe]:!n}),[n]),[r]=D(l=>[l(F).getInserterItems(e,o)],[e,o]),[s,i]=D(l=>{const{getCategories:u,getCollections:d}=l($e);return[u(),d()]},[]),c=O.useCallback(({name:l,initialAttributes:u,innerBlocks:d,syncStatus:p,content:f,rootClientId:b},h)=>{const g=p==="unsynced"?Yn(f,{__unstableSkipMigrationLogs:!0}):me(l,u,ju(d));t(g,void 0,h,b)},[t]);return[r,s,i,c]};function dOt({icon:e,showColors:t=!1,className:n,context:o}){e?.src==="block-default"&&(e={src:U_});const r=a.jsx(xn,{icon:e&&e.src?e.src:e,context:o}),s=t?{backgroundColor:e&&e.background,color:e&&e.foreground}:{};return a.jsx("span",{style:s,className:$("block-editor-block-icon",n,{"has-colors":t}),children:r})}const b0=O.memo(dOt),fbe=(e,t)=>(t&&e.sort(({id:n},{id:o})=>{let r=t.indexOf(n),s=t.indexOf(o);return r<0&&(r=t.length),s<0&&(s=t.length),r-s}),e),pOt=()=>{},fOt=9;function bOt(){return{name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems(e){const{rootClientId:t,selectedBlockName:n,prioritizedBlocks:o}=D(u=>{const{getSelectedBlockClientId:d,getBlockName:p,getBlockListSettings:f,getBlockRootClientId:b}=u(F),h=d(),g=b(h);return{selectedBlockName:h?p(h):null,rootClientId:g,prioritizedBlocks:f(g)?.prioritizedInserterBlocks}},[]),[r,s,i]=Pw(t,pOt,!0),c=O.useMemo(()=>(e.trim()?pbe(r,s,i,e):fbe(H3(r,"frecency","desc"),o)).filter(d=>d.name!==n).slice(0,fOt),[e,n,r,s,i,o]);return[O.useMemo(()=>c.map(u=>{const{title:d,icon:p,isDisabled:f}=u;return{key:`block-${u.id}`,value:u,label:a.jsxs(a.Fragment,{children:[a.jsx(b0,{icon:p,showColors:!0},"icon"),d]}),isDisabled:f}}),[c])]},allowContext(e,t){return!(/\S/.test(e)||/\S/.test(t))},getOptionCompletion(e){const{name:t,initialAttributes:n,innerBlocks:o,syncStatus:r,content:s}=e;return{action:"replace",value:r==="unsynced"?Yn(s,{__unstableSkipMigrationLogs:!0}):me(t,n,ju(o))}}}}const hOt=bOt(),mOt=10;function MOt(){return{name:"links",className:"block-editor-autocompleters__link",triggerPrefix:"[[",options:async e=>{let t=await ct({path:wt("/wp/v2/search",{per_page:mOt,search:e,type:"post",order_by:"menu_order"})});return t=t.filter(n=>n.title!==""),t},getOptionKeywords(e){return[...e.title.split(/\s+/)]},getOptionLabel(e){return a.jsxs(a.Fragment,{children:[a.jsx(t0,{icon:e.subtype==="page"?Ja:hle},"icon"),e.title]})},getOptionCompletion(e){return a.jsx("a",{href:e.url,children:e.title})}}}const gOt=MOt(),zOt=[];function OOt({completers:e=zOt}){const{name:t}=eo();return O.useMemo(()=>{let n=[...e,gOt];return(t===jn()||Zt(t,"__experimentalSlashInserter",!1))&&(n=[...n,hOt]),E0e("editor.Autocomplete.completers")&&(n===e&&(n=n.map(o=>({...o}))),n=_n("editor.Autocomplete.completers",n,t)),n},[e,t])}function AOt(e){return btt({...e,completers:OOt(e)})}const Ju={default:{name:"default",slug:"flow",className:"is-layout-flow",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}}],spacingStyles:[{selector:" > :first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},constrained:{name:"constrained",slug:"constrained",className:"is-layout-constrained",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > :where(:not(.alignleft):not(.alignright):not(.alignfull))",rules:{"max-width":"var(--wp--style--global--content-size)","margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > .alignwide",rules:{"max-width":"var(--wp--style--global--wide-size)"}}],spacingStyles:[{selector:" > :first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},flex:{name:"flex",slug:"flex",className:"is-layout-flex",displayMode:"flex",baseStyles:[{selector:"",rules:{"flex-wrap":"wrap","align-items":"center"}},{selector:" > :is(*, div)",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]},grid:{name:"grid",slug:"grid",className:"is-layout-grid",displayMode:"grid",baseStyles:[{selector:" > :is(*, div)",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]}};function pa(e,t=""){return e.split(",").map(n=>`${n}${t?` ${t}`:""}`).join(",")}function Iw(e,t=Ju,n,o){let r="";return t?.[n]?.spacingStyles?.length&&o&&t[n].spacingStyles.forEach(s=>{r+=`${pa(e,s.selector.trim())} { `,r+=Object.entries(s.rules).map(([i,c])=>`${i}: ${c||o}`).join("; "),r+="; }"}),r}function bbe(e){const{contentSize:t,wideSize:n,type:o="default"}=e,r={},s=/^(?!0)\d+(px|em|rem|vw|vh|%|svw|lvw|dvw|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax)?$/i;return s.test(t)&&o==="constrained"&&(r.none=le(m("Max %s wide"),t)),s.test(n)&&(r.wide=le(m("Max %s wide"),n)),r}const hbe=8,X2=["top","right","bottom","left"],yOt={top:void 0,right:void 0,bottom:void 0,left:void 0},Xd={custom:_X,axial:_X,horizontal:nQe,vertical:iQe,top:sQe,right:rQe,bottom:tQe,left:oQe},za={default:m("Spacing control"),top:m("Top"),bottom:m("Bottom"),left:m("Left"),right:m("Right"),mixed:m("Mixed"),vertical:m("Vertical"),horizontal:m("Horizontal"),axial:m("Horizontal & vertical"),custom:m("Custom")},mp={axial:"axial",top:"top",right:"right",bottom:"bottom",left:"left",custom:"custom"};function sp(e){return e?.includes?e==="0"||e.includes("var:preset|spacing|"):!1}function fM(e,t){if(!sp(e))return e;const n=mbe(e);return t.find(r=>String(r.slug)===n)?.size}function Dw(e,t){if(!e||sp(e)||e==="0")return e;const n=t.find(o=>String(o.size)===String(e));return n?.slug?`var:preset|spacing|${n.slug}`:e}function G2(e){if(!e)return;const t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--${t[1]})`:e}function mbe(e){if(!e)return;if(e==="0"||e==="default")return e;const t=e.match(/var:preset\|spacing\|(.+)/);return t?t[1]:void 0}function vOt(e,t){if(e===void 0)return 0;const n=parseFloat(e,10)===0?"0":mbe(e),o=t.findIndex(r=>String(r.slug)===n);return o!==-1?o:NaN}function d5(e,t){if(!e||!e.length)return!1;const n=e.includes("horizontal")||e.includes("left")&&e.includes("right"),o=e.includes("vertical")||e.includes("top")&&e.includes("bottom");return t==="horizontal"?n:t==="vertical"?o:n||o}function xOt(e){if(!e||!e.length)return{};const t={},n=d5(e,"horizontal"),o=d5(e,"vertical");n&&o?t.axial={label:za.axial,icon:Xd.axial}:n?t.axial={label:za.horizontal,icon:Xd.horizontal}:o&&(t.axial={label:za.vertical,icon:Xd.vertical});let r=0;return X2.forEach(s=>{e.includes(s)&&(r+=1,t[s]={label:za[s],icon:Xd[s]})}),r>1&&(t.custom={label:za.custom,icon:Xd.custom}),t}function _Ot(e=[]){const t={top:0,right:0,bottom:0,left:0};return e.forEach(n=>t[n]+=1),(t.top+t.bottom)%2===0&&(t.left+t.right)%2===0}function wOt(e={},t){const{top:n,right:o,bottom:r,left:s}=e,i=[n,o,r,s].filter(Boolean),c=n===r&&s===o&&(!!n||!!s),l=!i.length&&_Ot(t);if(d5(t)&&(c||l))return mp.axial;if(i.length===1){let u;return Object.entries(e).some(([d,p])=>(u=d,p!==void 0)),u}return t?.length===1&&!i.length?t[0]:mp.custom}function kOt(e){if(!e)return null;const t=typeof e=="string";return{top:t?e:e?.top,left:t?e:e?.left}}function _r(e,t="0"){const n=kOt(e);if(!n)return null;const o=G2(n?.top)||t,r=G2(n?.left)||t;return o===r?o:`${o} ${r}`}const qOt={left:"flex-start",right:"flex-end",center:"center","space-between":"space-between"},fK={left:"flex-start",right:"flex-end",center:"center",stretch:"stretch"},XW={top:"flex-start",center:"center",bottom:"flex-end",stretch:"stretch","space-between":"space-between"},SOt=["wrap","nowrap"],COt={name:"flex",label:m("Flex"),inspectorControls:function({layout:t={},onChange:n,layoutBlockSupport:o={}}){const{allowOrientation:r=!0}=o;return a.jsxs(a.Fragment,{children:[a.jsxs(Q0,{children:[a.jsx(Ht,{children:a.jsx(bK,{layout:t,onChange:n})}),a.jsx(Ht,{children:r&&a.jsx(EOt,{layout:t,onChange:n})})]}),a.jsx(TOt,{layout:t,onChange:n})]})},toolBarControls:function({layout:t={},onChange:n,layoutBlockSupport:o}){if(o?.allowSwitching)return null;const{allowVerticalAlignment:r=!0}=o;return a.jsxs(Ie,{group:"block",__experimentalShareWithChildBlocks:!0,children:[a.jsx(bK,{layout:t,onChange:n,isToolbar:!0}),r&&a.jsx(ROt,{layout:t,onChange:n,isToolbar:!0})]})},getLayoutStyle:function({selector:t,layout:n,style:o,blockName:r,hasBlockGapSupport:s,layoutDefinitions:i=Ju}){const{orientation:c="horizontal"}=n,l=o?.spacing?.blockGap&&!Z1(r,"spacing","blockGap")?_r(o?.spacing?.blockGap,"0.5em"):void 0,u=qOt[n.justifyContent],d=SOt.includes(n.flexWrap)?n.flexWrap:"wrap",p=XW[n.verticalAlignment],f=fK[n.justifyContent]||fK.left;let b="";const h=[];return d&&d!=="wrap"&&h.push(`flex-wrap: ${d}`),c==="horizontal"?(p&&h.push(`align-items: ${p}`),u&&h.push(`justify-content: ${u}`)):(p&&h.push(`justify-content: ${p}`),h.push("flex-direction: column"),h.push(`align-items: ${f}`)),h.length&&(b=`${pa(t)} { + ){background-color:`,qe.theme.accent,";color:",qe.white,";}&[data-focus-visible]{box-shadow:0 0 0 1.5px ",qe.theme.accent,";outline:2px solid transparent;}&:active,&[data-active]{}",V2,':not(:focus) &:not(:focus)[aria-expanded="true"]{background-color:',dht,";color:",qe.theme.foreground,";}svg{fill:currentColor;}",""),hht=we(QDe,{target:"e1kdzosf12"})(Mj,";"),NW=we(nFe,{target:"e1kdzosf11"})(Mj,";"),LW=we(sFe,{target:"e1kdzosf10"})(Mj,";"),gj=we("span",{target:"e1kdzosf9"})("grid-column:1;",NW,">&,",LW,">&{min-width:",Ce(6),";}",NW,">&,",LW,">&,&:not( :empty ){margin-inline-end:",Ce(2),";}display:flex;align-items:center;justify-content:center;color:",mj,";[data-active-item]:not( [data-focus-visible] )>&,[aria-disabled='true']>&{color:inherit;}"),zj=we("div",{target:"e1kdzosf8"})("grid-column:2;display:flex;align-items:center;justify-content:space-between;gap:",Ce(3),";pointer-events:none;"),Oj=we("div",{target:"e1kdzosf7"})("flex:1;display:inline-flex;flex-direction:column;gap:",Ce(1),";"),Aj=we("span",{target:"e1kdzosf6"})("flex:0 1 fit-content;min-width:0;width:fit-content;display:flex;align-items:center;justify-content:center;gap:",Ce(3),";color:",mj,";[data-active-item]:not( [data-focus-visible] ) *:not(",V2,") &,[aria-disabled='true'] *:not(",V2,") &{color:inherit;}"),mht=we(XDe,{target:"e1kdzosf5"})({name:"49aokf",styles:"display:contents"}),Mht=we(VDe,{target:"e1kdzosf4"})("grid-column:1/-1;padding-block-start:",Ce(3),";padding-block-end:",Ce(2),";padding-inline:",hj,";"),ght=we(cFe,{target:"e1kdzosf3"})("grid-column:1/-1;border:none;height:",Se.borderWidth,";background-color:",e=>e.variant==="toolbar"?gfe:uht,";margin-block:",Ce(2),";margin-inline:",hj,";outline:2px solid transparent;"),zht=we(xn,{target:"e1kdzosf2"})("width:",Ce(1.5),";",dn({transform:"scaleX(1)"},{transform:"scaleX(-1)"}),";"),Oht=we(Ho,{target:"e1kdzosf1"})("font-size:",wi("default.fontSize"),";line-height:20px;color:inherit;"),Aht=we(Ho,{target:"e1kdzosf0"})("font-size:",wi("helpText.fontSize"),";line-height:16px;color:",mj,";word-break:break-all;[data-active-item]:not( [data-focus-visible] ) *:not( ",V2," ) &,[aria-disabled='true'] *:not( ",V2," ) &{color:inherit;}"),rl=O.createContext(void 0);function yj({onBlur:e}){const[t,n]=O.useState(!1);return{"data-focus-visible":t||void 0,onFocusVisible:()=>{Qo.flushSync(()=>n(!0))},onBlur:o=>{e?.(o),n(!1)}}}const Ofe=O.forwardRef(function({prefix:t,suffix:n,children:o,onBlur:r,hideOnClick:s=!0,...i},c){const l=yj({onBlur:r}),u=O.useContext(rl);return a.jsxs(hht,{ref:c,...i,...l,accessibleWhenDisabled:!0,hideOnClick:s,store:u?.store,children:[a.jsx(gj,{children:t}),a.jsxs(zj,{children:[a.jsx(Oj,{children:o}),n&&a.jsx(Aj,{children:n})]})]})}),yht=O.forwardRef(function({suffix:t,children:n,onBlur:o,hideOnClick:r=!1,...s},i){const c=yj({onBlur:o}),l=O.useContext(rl);return a.jsxs(NW,{ref:i,...s,...c,accessibleWhenDisabled:!0,hideOnClick:r,store:l?.store,children:[a.jsx(Eie,{store:l?.store,render:a.jsx(gj,{}),style:{width:"auto",height:"auto"},children:a.jsx(t0,{icon:no,size:24})}),a.jsxs(zj,{children:[a.jsx(Oj,{children:n}),t&&a.jsx(Aj,{children:t})]})]})}),vht=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(ese,{cx:12,cy:12,r:3})}),xht=O.forwardRef(function({suffix:t,children:n,onBlur:o,hideOnClick:r=!1,...s},i){const c=yj({onBlur:o}),l=O.useContext(rl);return a.jsxs(LW,{ref:i,...s,...c,accessibleWhenDisabled:!0,hideOnClick:r,store:l?.store,children:[a.jsx(Eie,{store:l?.store,render:a.jsx(gj,{}),style:{width:"auto",height:"auto"},children:a.jsx(t0,{icon:vht,size:24})}),a.jsxs(zj,{children:[a.jsx(Oj,{children:n}),t&&a.jsx(Aj,{children:t})]})]})}),_ht=O.forwardRef(function(t,n){const o=O.useContext(rl);return a.jsx(mht,{ref:n,...t,store:o?.store})}),wht=O.forwardRef(function(t,n){const o=O.useContext(rl);return a.jsx(Mht,{ref:n,render:a.jsx(l0,{upperCase:!0,variant:"muted",size:"11px",weight:500,lineHeight:"16px"}),...t,store:o?.store})}),kht=O.forwardRef(function(t,n){const o=O.useContext(rl);return a.jsx(ght,{ref:n,...t,store:o?.store,variant:o?.variant})}),qht=O.forwardRef(function(t,n){return a.jsx(Oht,{numberOfLines:1,ref:n,...t})}),Sht=O.forwardRef(function(t,n){return a.jsx(Aht,{numberOfLines:2,ref:n,...t})}),Cht=(e,t)=>{var n;const{open:o,defaultOpen:r=!1,onOpenChange:s,placement:i,trigger:c,gutter:l,children:u,shift:d,modal:p=!0,variant:f,...b}=Ut(e,"DropdownMenu"),h=O.useContext(rl),g=ft()?"rtl":"ltr";let z=(n=e.placement)!==null&&n!==void 0?n:h?.store?"right-start":"bottom-start";g==="rtl"&&(/right/.test(z)?z=z.replace("right","left"):/left/.test(z)&&(z=z.replace("left","right")));const y=qDe({parent:h?.store,open:o,defaultOpen:r,placement:z,focusLoop:!0,setOpen(_){s?.(_)},rtl:g==="rtl"}),x=O.useMemo(()=>({store:y,variant:f}),[y,f]),v=on(y,"currentPlacement").split("-")[0];y.parent&&!(O.isValidElement(c)&&Ofe===c.type)&&console.warn("For nested DropdownMenus, the `trigger` should always be a `DropdownMenuItem`.");const M=O.useCallback(_=>(_.preventDefault(),!0),[]),A=O.useMemo(()=>({dir:g,style:{direction:g}}),[g]);return a.jsxs(a.Fragment,{children:[a.jsx(DDe,{ref:t,store:y,render:y.parent?O.cloneElement(c,{suffix:a.jsxs(a.Fragment,{children:[c.props.suffix,a.jsx(zht,{"aria-hidden":"true",icon:jp,size:24,preserveAspectRatio:"xMidYMid slice"})]})}):c}),a.jsx(NDe,{...b,modal:p,store:y,gutter:l??(y.parent?0:8),shift:d??(y.parent?-4:0),hideOnHoverOutside:!1,"data-side":v,wrapperProps:A,hideOnEscape:M,unmountOnHide:!0,render:_=>a.jsx(bht,{variant:f,children:a.jsx(V2,{..._})}),children:a.jsx(rl.Provider,{value:x,children:u})})]})},Rht=Object.assign(Qt(Cht,"DropdownMenu"),{Context:Object.assign(rl,{displayName:"DropdownMenuV2.Context"}),Item:Object.assign(Ofe,{displayName:"DropdownMenuV2.Item"}),RadioItem:Object.assign(xht,{displayName:"DropdownMenuV2.RadioItem"}),CheckboxItem:Object.assign(yht,{displayName:"DropdownMenuV2.CheckboxItem"}),Group:Object.assign(_ht,{displayName:"DropdownMenuV2.Group"}),GroupLabel:Object.assign(wht,{displayName:"DropdownMenuV2.GroupLabel"}),Separator:Object.assign(kht,{displayName:"DropdownMenuV2.Separator"}),ItemLabel:Object.assign(qht,{displayName:"DropdownMenuV2.ItemLabel"}),ItemHelpText:Object.assign(Sht,{displayName:"DropdownMenuV2.ItemHelpText"})}),Wht=({colors:e})=>{const t=Object.entries(e.gray||{}).map(([n,o])=>`--wp-components-color-gray-${n}: ${o};`).join("");return[ke("--wp-components-color-accent:",e.accent,";--wp-components-color-accent-darker-10:",e.accentDarker10,";--wp-components-color-accent-darker-20:",e.accentDarker20,";--wp-components-color-accent-inverted:",e.accentInverted,";--wp-components-color-background:",e.background,";--wp-components-color-foreground:",e.foreground,";--wp-components-color-foreground-inverted:",e.foregroundInverted,";",t,";","")]},Tht=we("div",{target:"e1krjpvb0"})({name:"1a3idx0",styles:"color:var( --wp-components-color-foreground, currentColor )"});bs([hs,bf]);function Eht(e){Bht(e);const t={...jht(e.accent),...Pht(e.background)};return Lht(Nht(e,t)),{colors:t}}function Bht(e){for(const[t,n]of Object.entries(e))typeof n<"u"&&!Tt(n).isValid()&&globalThis.SCRIPT_DEBUG===!0&&Xt(`wp.components.Theme: "${n}" is not a valid color value for the '${t}' prop.`)}function Nht(e,t){const n=e.background||qe.white,o=e.accent||"#3858e9",r=t.foreground||qe.gray[900],s=t.gray||qe.gray;return{accent:Tt(n).isReadable(o)?void 0:`The background color ("${n}") does not have sufficient contrast against the accent color ("${o}").`,foreground:Tt(n).isReadable(r)?void 0:`The background color provided ("${n}") does not have sufficient contrast against the standard foreground colors.`,grays:Tt(n).contrast(s[600])>=3&&Tt(n).contrast(s[700])>=4.5?void 0:`The background color provided ("${n}") cannot generate a set of grayscale foreground colors with sufficient contrast. Try adjusting the color to be lighter or darker.`}}function Lht(e){for(const t of Object.values(e))t&&globalThis.SCRIPT_DEBUG===!0&&Xt("wp.components.Theme: "+t)}function jht(e){return e?{accent:e,accentDarker10:Tt(e).darken(.1).toHex(),accentDarker20:Tt(e).darken(.2).toHex(),accentInverted:jW(e)}:{}}function Pht(e){if(!e)return{};const t=jW(e);return{background:e,foreground:t,foregroundInverted:jW(t),gray:Iht(e,t)}}function jW(e){return Tt(e).isDark()?qe.white:qe.gray[900]}function Iht(e,t){const n={100:.06,200:.121,300:.132,400:.2,600:.42,700:.543,800:.821},o=.884,r=Tt(e).isDark()?"lighten":"darken",s=Math.abs(Tt(e).toHsl().l-Tt(t).toHsl().l)/100,i={};return Object.entries(n).forEach(([c,l])=>{i[parseInt(c)]=Tt(e)[r](l/o*s).toHex()}),i}function Dht({accent:e,background:t,className:n,...o}){const r=x0(),s=O.useMemo(()=>r(...Wht(Eht({accent:e,background:t})),n),[e,t,n,r]);return a.jsx(Tht,{className:s,...o})}const vj=O.createContext(void 0),xj=()=>O.useContext(vj),Fht=we("div",{target:"enfox0g2"})("position:relative;display:flex;align-items:stretch;flex-direction:row;text-align:center;&[aria-orientation='vertical']{flex-direction:column;text-align:start;}@media not ( prefers-reduced-motion: reduce ){&.is-animation-enabled::after{transition-property:left,top,width,height;transition-duration:0.2s;transition-timing-function:ease-out;}}&::after{content:'';position:absolute;pointer-events:none;outline:2px solid transparent;outline-offset:-1px;}&:not( [aria-orientation='vertical'] )::after{bottom:0;left:var( --indicator-left );width:var( --indicator-width );height:0;border-bottom:var( --wp-admin-border-width-focus ) solid ",qe.theme.accent,";}&[aria-orientation='vertical']::after{z-index:-1;left:0;width:100%;top:var( --indicator-top );height:var( --indicator-height );background-color:",qe.theme.gray[100],";}"),$ht=we(NFe,{target:"enfox0g1"})("&{display:inline-flex;align-items:center;position:relative;border-radius:0;min-height:",Ce(12),";height:auto;background:transparent;border:none;box-shadow:none;cursor:pointer;line-height:1.2;padding:",Ce(4),";margin-left:0;font-weight:500;text-align:inherit;hyphens:auto;color:",qe.theme.foreground,";&[aria-disabled='true']{cursor:default;color:",qe.ui.textDisabled,";}&:not( [aria-disabled='true'] ):hover{color:",qe.theme.accent,";}&:focus:not( :disabled ){position:relative;box-shadow:none;outline:none;}&::before{content:'';position:absolute;top:",Ce(3),";right:",Ce(3),";bottom:",Ce(3),";left:",Ce(3),";pointer-events:none;outline:var( --wp-admin-border-width-focus ) solid ",qe.theme.accent,";border-radius:",Se.radiusSmall,";opacity:0;@media not ( prefers-reduced-motion ){transition:opacity 0.1s linear;}}&:focus-visible::before{opacity:1;}}[aria-orientation='vertical'] &{min-height:",Ce(10),";}"),Vht=we(FFe,{target:"enfox0g0"})("&:focus{box-shadow:none;outline:none;}&:focus-visible{box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ",qe.theme.accent,";outline:2px solid transparent;outline-offset:0;}"),Hht=O.forwardRef(function({children:t,tabId:n,disabled:o,render:r,...s},i){const c=xj();if(!c)return globalThis.SCRIPT_DEBUG===!0&&Xt("`Tabs.Tab` must be wrapped in a `Tabs` component."),null;const{store:l,instanceId:u}=c,d=`${u}-${n}`;return a.jsx($ht,{ref:i,store:l,id:d,disabled:o,render:r,...s,children:t})});function Afe(e){const t=O.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return O.useInsertionEffect(()=>{t.current=e}),O.useCallback((...n)=>t.current?.(...n),[])}function Uht(e,t,{fireOnElementInit:n=!0}={}){const o=Afe(t),r=O.useRef(),s=O.useRef();O.useEffect(()=>{if(e===r.current)return;r.current=e,s.current||(s.current=new ResizeObserver(c=>{r.current&&o(r.current,c)}));const{current:i}=s;return e&&(n&&o(e),i.observe(e)),()=>{r.current&&i.unobserve(r.current)}},[n,o,e])}const Xht={left:0,top:0,width:0,height:0};function Ght(e){return{left:Math.max(e.offsetLeft-1,0),top:Math.max(e.offsetTop-1,0),width:parseFloat(getComputedStyle(e).width),height:parseFloat(getComputedStyle(e).height)}}function Kht(e){const[t,n]=O.useState(Xht);return Uht(e,o=>n(Ght(o))),t}function Yht(e,t){const n=O.useRef(e),o=Afe(t);O.useEffect(()=>{n.current!==e&&(o({previousValue:n.current}),n.current=e)},[o,e])}const Zht=O.forwardRef(function({children:t,...n},o){const r=xj(),s=on(r?.store),i=s?.selectedId,c=Kht(r?.store.item(i)?.element),[l,u]=O.useState(!1);if(Yht(i,({previousValue:g})=>g&&u(!0)),!r||!s)return globalThis.SCRIPT_DEBUG===!0&&Xt("`Tabs.TabList` must be wrapped in a `Tabs` component."),null;const{store:d}=r,{activeId:p,selectOnMove:f}=s,{setActiveId:b}=d,h=()=>{f&&i!==p&&b(i)};return a.jsx(PFe,{ref:o,store:d,render:a.jsx(Fht,{onTransitionEnd:g=>{g.pseudoElement==="::after"&&u(!1)}}),onBlur:h,...n,style:{"--indicator-left":`${c.left}px`,"--indicator-top":`${c.top}px`,"--indicator-width":`${c.width}px`,"--indicator-height":`${c.height}px`,...n.style},className:$(l?"is-animation-enabled":"",n.className),children:t})}),Qht=O.forwardRef(function({children:t,tabId:n,focusable:o=!0,...r},s){const i=xj(),c=on(i?.store,"selectedId");if(!i)return globalThis.SCRIPT_DEBUG===!0&&Xt("`Tabs.TabPanel` must be wrapped in a `Tabs` component."),null;const{store:l,instanceId:u}=i,d=`${u}-${n}`;return a.jsx(Vht,{ref:s,store:l,id:`${d}-view`,tabId:d,focusable:o,...r,children:c===d&&t})});function Dh({selectOnMove:e=!0,defaultTabId:t,orientation:n="horizontal",onSelect:o,children:r,selectedTabId:s}){const i=He(Dh,"tabs"),c=WFe({selectOnMove:e,orientation:n,defaultSelectedId:t&&`${i}-${t}`,setSelectedId:v=>{const M=typeof v=="string"?v.replace(`${i}-`,""):v;o?.(M)},selectedId:s&&`${i}-${s}`}),l=s!==void 0,{items:u,selectedId:d,activeId:p}=on(c),{setSelectedId:f,setActiveId:b}=c,h=O.useRef(!1);u.length>0&&(h.current=!0);const g=u.find(v=>v.id===d),z=u.find(v=>!v.dimmed),y=u.find(v=>v.id===`${i}-${t}`);O.useLayoutEffect(()=>{if(!l&&!(t&&!y)&&!u.find(v=>v.id===d)){if(y&&!y.dimmed){f(y?.id);return}z?f(z.id):h.current&&f(null)}},[z,y,t,l,u,d,f]),O.useLayoutEffect(()=>{if(g?.dimmed){if(l){f(null);return}if(y&&!y.dimmed){f(y.id);return}z&&f(z.id)}},[z,y,l,g?.dimmed,f]),O.useLayoutEffect(()=>{l&&h.current&&s&&!g&&f(null)},[l,g,s,f]),O.useEffect(()=>{s===null&&!p&&z?.id&&b(z.id)},[s,p,z?.id,b]),O.useEffect(()=>{l&&requestAnimationFrame(()=>{const v=u?.[0]?.element?.ownerDocument.activeElement;!v||!u.some(M=>v===M.element)||p!==v.id&&b(v.id)})},[p,l,u,b]);const x=O.useMemo(()=>({store:c,instanceId:i}),[c,i]);return a.jsx(vj.Provider,{value:x,children:r})}Dh.TabList=Zht;Dh.Tab=Hht;Dh.TabPanel=Qht;Dh.Context=vj;const{lock:Jht,unlock:db0}=ar("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/components"),L0={};Jht(L0,{CompositeV2:hi,CompositeGroupV2:hi.Group,CompositeItemV2:hi.Item,CompositeRowV2:hi.Row,CompositeTypeaheadV2:hi.Typeahead,CompositeHoverV2:hi.Hover,useCompositeStoreV2:bst,__experimentalPopoverLegacyPositionToPlacement:z_,createPrivateSlotFill:stt,ComponentsContext:TL,Tabs:Dh,Theme:Dht,DropdownMenuV2:Rht,kebabCase:Ret});const{lock:emt,unlock:Fe}=ar("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/block-editor");bs([hs,bf]);const{kebabCase:tmt}=Fe(L0),Up=(e,t,n)=>{if(t){const o=e?.find(r=>r.slug===t);if(o)return o}return{color:n}},yfe=(e,t)=>e?.find(n=>n.color===t);function lt(e,t){if(!(!e||!t))return`has-${tmt(t)}-${e}`}function nmt(e,t){const n=Tt(t),o=({color:s})=>n.contrast(s),r=Math.max(...e.map(o));return e.find(s=>o(s)===r).color}const Xp=O.createContext({});function V3({value:e,children:t}){const n=O.useContext(Xp),o=O.useMemo(()=>({...n,...e}),[n,e]);return a.jsx(Xp.Provider,{value:o,children:t})}const omt={},rmt=e=>{const{name:t}=e,n=Dt(t);if(!n)return null;const o=n.edit||n.save;return a.jsx(o,{...e})},aK=gd("editor.BlockEdit")(rmt),smt=e=>{const{attributes:t={},name:n}=e,o=Dt(n),r=O.useContext(Xp),s=O.useMemo(()=>o&&o.usesContext?Object.fromEntries(Object.entries(r).filter(([l])=>o.usesContext.includes(l))):omt,[o,r]);if(!o)return null;if(o.apiVersion>1)return a.jsx(aK,{...e,context:s});const i=st(o,"className",!0)?_v(n):null,c=$(i,t.className,e.className);return a.jsx(aK,{...e,context:s,className:c})},imt={insertUsage:{}},PW={alignWide:!1,supportsLayout:!0,colors:[{name:m("Black"),slug:"black",color:"#000000"},{name:m("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:m("White"),slug:"white",color:"#ffffff"},{name:m("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:m("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:m("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:m("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:m("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:m("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:m("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:m("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:m("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:Oe("Small","font size name"),size:13,slug:"small"},{name:Oe("Normal","font size name"),size:16,slug:"normal"},{name:Oe("Medium","font size name"),size:20,slug:"medium"},{name:Oe("Large","font size name"),size:36,slug:"large"},{name:Oe("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:m("Thumbnail")},{slug:"medium",name:m("Medium")},{slug:"large",name:m("Large")},{slug:"full",name:m("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,canLockBlocks:!0,enableOpenverseMediaCategory:!0,clearBlockSelection:!0,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__unstableIsPreviewMode:!1,blockInspectorAnimation:{animationParent:"core/navigation","core/navigation":{enterDirection:"leftToRight"},"core/navigation-submenu":{enterDirection:"rightToLeft"},"core/navigation-link":{enterDirection:"rightToLeft"},"core/search":{enterDirection:"rightToLeft"},"core/social-links":{enterDirection:"rightToLeft"},"core/page-list":{enterDirection:"rightToLeft"},"core/spacer":{enterDirection:"rightToLeft"},"core/home-link":{enterDirection:"rightToLeft"},"core/site-title":{enterDirection:"rightToLeft"},"core/site-logo":{enterDirection:"rightToLeft"}},generateAnchors:!1,gradients:[{name:m("Vivid cyan blue to vivid purple"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:m("Light green cyan to vivid green cyan"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:m("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:m("Luminous vivid orange to vivid red"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:m("Very light gray to cyan bluish gray"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:m("Cool to warm spectrum"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:m("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:m("Blush bordeaux"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:m("Luminous dusk"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:m("Pale ocean"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:m("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:m("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}],__unstableResolvedAssets:{styles:[],scripts:[]}};function IW(e,t,n){return[...e.slice(0,n),...Array.isArray(t)?t:[t],...e.slice(n)]}function uS(e,t,n,o=1){const r=[...e];return r.splice(t,o),IW(r,e.slice(t,t+o),n)}const amt=e=>e;function UM(e,t=""){const n=new Map,o=[];return n.set(t,o),e.forEach(r=>{const{clientId:s,innerBlocks:i}=r;o.push(s),UM(i,s).forEach((c,l)=>{n.set(l,c)})}),n}function p4(e,t=""){const n=[],o=[[t,e]];for(;o.length;){const[r,s]=o.shift();s.forEach(({innerBlocks:i,...c})=>{n.push([c.clientId,r]),i?.length&&o.push([c.clientId,i])})}return n}function vfe(e,t=amt){const n=[],o=[...e];for(;o.length;){const{innerBlocks:r,...s}=o.shift();o.push(...r),n.push([s.clientId,t(s)])}return n}function cmt(e){const t={},n=[...e];for(;n.length;){const{innerBlocks:o,...r}=n.shift();n.push(...o),t[r.clientId]=!0}return t}function DW(e){return vfe(e,t=>{const{attributes:n,...o}=t;return o})}function FW(e){return vfe(e,t=>t.attributes)}function lmt(e,t){return J1(Object.keys(e),Object.keys(t))}function umt(e,t){return e.type==="UPDATE_BLOCK_ATTRIBUTES"&&t!==void 0&&t.type==="UPDATE_BLOCK_ATTRIBUTES"&&J1(e.clientIds,t.clientIds)&&lmt(e.attributes,t.attributes)}function $W(e,t){const n=e.tree,o=[...t],r=[...t];for(;o.length;){const s=o.shift();o.push(...s.innerBlocks),r.push(...s.innerBlocks)}for(const s of r)n.set(s.clientId,{});for(const s of r)n.set(s.clientId,Object.assign(n.get(s.clientId),{...e.byClientId.get(s.clientId),attributes:e.attributes.get(s.clientId),innerBlocks:s.innerBlocks.map(i=>n.get(i.clientId))}))}function uc(e,t,n=!1){const o=e.tree,r=new Set([]),s=new Set;for(const i of t){let c=n?i:e.parents.get(i);do if(e.controlledInnerBlocks[c]){s.add(c);break}else r.add(c),c=e.parents.get(c);while(c!==void 0)}for(const i of r)o.set(i,{...o.get(i)});for(const i of r)o.get(i).innerBlocks=(e.order.get(i)||[]).map(c=>o.get(c));for(const i of s)o.set("controlled||"+i,{innerBlocks:(e.order.get(i)||[]).map(c=>o.get(c))})}const dmt=e=>(t={},n)=>{const o=e(t,n);if(o===t)return t;switch(o.tree=t.tree?t.tree:new Map,n.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{o.tree=new Map(o.tree),$W(o,n.blocks),uc(o,n.rootClientId?[n.rootClientId]:[""],!0);break}case"UPDATE_BLOCK":o.tree=new Map(o.tree),o.tree.set(n.clientId,{...o.tree.get(n.clientId),...o.byClientId.get(n.clientId),attributes:o.attributes.get(n.clientId)}),uc(o,[n.clientId],!1);break;case"SYNC_DERIVED_BLOCK_ATTRIBUTES":case"UPDATE_BLOCK_ATTRIBUTES":{o.tree=new Map(o.tree),n.clientIds.forEach(s=>{o.tree.set(s,{...o.tree.get(s),attributes:o.attributes.get(s)})}),uc(o,n.clientIds,!1);break}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const s=cmt(n.blocks);o.tree=new Map(o.tree),n.replacedClientIds.forEach(c=>{o.tree.delete(c),s[c]||o.tree.delete("controlled||"+c)}),$W(o,n.blocks),uc(o,n.blocks.map(c=>c.clientId),!1);const i=[];for(const c of n.clientIds){const l=t.parents.get(c);l!==void 0&&(l===""||o.byClientId.get(l))&&i.push(l)}uc(o,i,!0);break}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":const r=[];for(const s of n.clientIds){const i=t.parents.get(s);i!==void 0&&(i===""||o.byClientId.get(i))&&r.push(i)}o.tree=new Map(o.tree),n.removedClientIds.forEach(s=>{o.tree.delete(s),o.tree.delete("controlled||"+s)}),uc(o,r,!0);break;case"MOVE_BLOCKS_TO_POSITION":{const s=[];n.fromRootClientId?s.push(n.fromRootClientId):s.push(""),n.toRootClientId&&s.push(n.toRootClientId),o.tree=new Map(o.tree),uc(o,s,!0);break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{const s=[n.rootClientId?n.rootClientId:""];o.tree=new Map(o.tree),uc(o,s,!0);break}case"SAVE_REUSABLE_BLOCK_SUCCESS":{const s=[];o.attributes.forEach((i,c)=>{o.byClientId.get(c).name==="core/block"&&i.ref===n.updatedId&&s.push(c)}),o.tree=new Map(o.tree),s.forEach(i=>{o.tree.set(i,{...o.byClientId.get(i),attributes:o.attributes.get(i),innerBlocks:o.tree.get(i).innerBlocks})}),uc(o,s,!1)}}return o};function pmt(e){let t,n=!1,o;return(r,s)=>{let i=e(r,s),c;if(s.type==="SET_EXPLICIT_PERSISTENT"){var l;o=s.isPersistentChange,c=(l=r.isPersistentChange)!==null&&l!==void 0?l:!0}if(o!==void 0)return c=o,c===i.isPersistentChange?i:{...i,isPersistentChange:c};const u=s.type==="MARK_LAST_CHANGE_AS_PERSISTENT"||n;if(r===i&&!u){var d;return n=s.type==="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT",c=(d=r?.isPersistentChange)!==null&&d!==void 0?d:!0,r.isPersistentChange===c?r:{...i,isPersistentChange:c}}return i={...i,isPersistentChange:u?!n:!umt(s,t)},t=s,n=s.type==="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT",i}}function fmt(e){const t=new Set(["RECEIVE_BLOCKS"]);return(n,o)=>{const r=e(n,o);return r!==n&&(r.isIgnoredChange=t.has(o.type)),r}}const bmt=e=>(t,n)=>{const o=r=>{let s=r;for(let i=0;i(t,n)=>{if(n.type==="RESET_BLOCKS"){const o={...t,byClientId:new Map(DW(n.blocks)),attributes:new Map(FW(n.blocks)),order:UM(n.blocks),parents:new Map(p4(n.blocks)),controlledInnerBlocks:{}};return o.tree=new Map(t?.tree),$W(o,n.blocks),o.tree.set("",{innerBlocks:n.blocks.map(r=>o.tree.get(r.clientId))}),o}return e(t,n)},mmt=e=>(t,n)=>{if(n.type!=="REPLACE_INNER_BLOCKS")return e(t,n);const o={};if(Object.keys(t.controlledInnerBlocks).length){const i=[...n.blocks];for(;i.length;){const{innerBlocks:c,...l}=i.shift();i.push(...c),t.controlledInnerBlocks[l.clientId]&&(o[l.clientId]=!0)}}let r=t;t.order.get(n.rootClientId)&&(r=e(r,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:o,clientIds:t.order.get(n.rootClientId)}));let s=r;if(n.blocks.length){s=e(s,{...n,type:"INSERT_BLOCKS",index:0});const i=new Map(s.order);Object.keys(o).forEach(c=>{t.order.get(c)&&i.set(c,t.order.get(c))}),s.order=i,s.tree=new Map(s.tree),Object.keys(o).forEach(c=>{const l=`controlled||${c}`;t.tree.has(l)&&s.tree.set(l,t.tree.get(l))})}return s},Mmt=e=>(t,n)=>{if(t&&n.type==="SAVE_REUSABLE_BLOCK_SUCCESS"){const{id:o,updatedId:r}=n;if(o===r)return t;t={...t},t.attributes=new Map(t.attributes),t.attributes.forEach((s,i)=>{const{name:c}=t.byClientId.get(i);c==="core/block"&&s.ref===o&&t.attributes.set(i,{...s,ref:r})})}return e(t,n)},gmt=e=>(t,n)=>{if(n.type==="SET_HAS_CONTROLLED_INNER_BLOCKS"){const o=e(t,{type:"REPLACE_INNER_BLOCKS",rootClientId:n.clientId,blocks:[]});return e(o,n)}return e(t,n)},zmt=Jl(zo,Mmt,dmt,bmt,mmt,hmt,pmt,fmt,gmt)({byClientId(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const n=new Map(e);return DW(t.blocks).forEach(([o,r])=>{n.set(o,r)}),n}case"UPDATE_BLOCK":{if(!e.has(t.clientId))return e;const{attributes:n,...o}=t.updates;if(Object.values(o).length===0)return e;const r=new Map(e);return r.set(t.clientId,{...e.get(t.clientId),...o}),r}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{if(!t.blocks)return e;const n=new Map(e);return t.replacedClientIds.forEach(o=>{n.delete(o)}),DW(t.blocks).forEach(([o,r])=>{n.set(o,r)}),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach(o=>{n.delete(o)}),n}}return e},attributes(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const o=new Map(e);return FW(t.blocks).forEach(([r,s])=>{o.set(r,s)}),o}case"UPDATE_BLOCK":{if(!e.get(t.clientId)||!t.updates.attributes)return e;const o=new Map(e);return o.set(t.clientId,{...e.get(t.clientId),...t.updates.attributes}),o}case"SYNC_DERIVED_BLOCK_ATTRIBUTES":case"UPDATE_BLOCK_ATTRIBUTES":{if(t.clientIds.every(s=>!e.get(s)))return e;let o=!1;const r=new Map(e);for(const s of t.clientIds){var n;const i=Object.entries(t.uniqueByBlock?t.attributes[s]:(n=t.attributes)!==null&&n!==void 0?n:{});if(i.length===0)continue;let c=!1;const l=e.get(s),u={};i.forEach(([d,p])=>{l[d]!==p&&(c=!0,u[d]=p)}),o=o||c,c&&r.set(s,{...l,...u})}return o?r:e}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{if(!t.blocks)return e;const o=new Map(e);return t.replacedClientIds.forEach(r=>{o.delete(r)}),FW(t.blocks).forEach(([r,s])=>{o.set(r,s)}),o}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const o=new Map(e);return t.removedClientIds.forEach(r=>{o.delete(r)}),o}}return e},order(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":{var n;const r=UM(t.blocks),s=new Map(e);return r.forEach((i,c)=>{c!==""&&s.set(c,i)}),s.set("",((n=e.get(""))!==null&&n!==void 0?n:[]).concat(r[""])),s}case"INSERT_BLOCKS":{const{rootClientId:r=""}=t,s=e.get(r)||[],i=UM(t.blocks,r),{index:c=s.length}=t,l=new Map(e);return i.forEach((u,d)=>{l.set(d,u)}),l.set(r,IW(s,i.get(r),c)),l}case"MOVE_BLOCKS_TO_POSITION":{var o;const{fromRootClientId:r="",toRootClientId:s="",clientIds:i}=t,{index:c=e.get(s).length}=t;if(r===s){const d=e.get(s).indexOf(i[0]),p=new Map(e);return p.set(s,uS(e.get(s),d,c,i.length)),p}const l=new Map(e);return l.set(r,(o=e.get(r)?.filter(u=>!i.includes(u)))!==null&&o!==void 0?o:[]),l.set(s,IW(e.get(s),i,c)),l}case"MOVE_BLOCKS_UP":{const{clientIds:r,rootClientId:s=""}=t,i=r[0],c=e.get(s);if(!c.length||i===c[0])return e;const l=c.indexOf(i),u=new Map(e);return u.set(s,uS(c,l,l-1,r.length)),u}case"MOVE_BLOCKS_DOWN":{const{clientIds:r,rootClientId:s=""}=t,i=r[0],c=r[r.length-1],l=e.get(s);if(!l.length||c===l[l.length-1])return e;const u=l.indexOf(i),d=new Map(e);return d.set(s,uS(l,u,u+1,r.length)),d}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const{clientIds:r}=t;if(!t.blocks)return e;const s=UM(t.blocks),i=new Map(e);return t.replacedClientIds.forEach(c=>{i.delete(c)}),s.forEach((c,l)=>{l!==""&&i.set(l,c)}),i.forEach((c,l)=>{const u=Object.values(c).reduce((d,p)=>p===r[0]?[...d,...s.get("")]:(r.indexOf(p)===-1&&d.push(p),d),[]);i.set(l,u)}),i}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const r=new Map(e);return t.removedClientIds.forEach(s=>{r.delete(s)}),r.forEach((s,i)=>{var c;const l=(c=s?.filter(u=>!t.removedClientIds.includes(u)))!==null&&c!==void 0?c:[];l.length!==s.length&&r.set(i,l)}),r}}return e},parents(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":{const n=new Map(e);return p4(t.blocks).forEach(([o,r])=>{n.set(o,r)}),n}case"INSERT_BLOCKS":{const n=new Map(e);return p4(t.blocks,t.rootClientId||"").forEach(([o,r])=>{n.set(o,r)}),n}case"MOVE_BLOCKS_TO_POSITION":{const n=new Map(e);return t.clientIds.forEach(o=>{n.set(o,t.toRootClientId||"")}),n}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.replacedClientIds.forEach(o=>{n.delete(o)}),p4(t.blocks,e.get(t.clientIds[0])).forEach(([o,r])=>{n.set(o,r)}),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach(o=>{n.delete(o)}),n}}return e},controlledInnerBlocks(e={},{type:t,clientId:n,hasControlledInnerBlocks:o}){return t==="SET_HAS_CONTROLLED_INNER_BLOCKS"?{...e,[n]:o}:e}});function Omt(e=!1,t){switch(t.type){case"HIDE_BLOCK_INTERFACE":return!0;case"SHOW_BLOCK_INTERFACE":return!1}return e}function Amt(e=!1,t){switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e}function ymt(e=!1,t){switch(t.type){case"START_DRAGGING":return!0;case"STOP_DRAGGING":return!1}return e}function vmt(e=[],t){switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e}function xmt(e={},t){return t.type==="SET_BLOCK_VISIBILITY"?{...e,...t.updates}:e}function cK(e={},t){switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return!t.updateSelection||!t.blocks.length?e:{clientId:t.blocks[0].clientId};case"REMOVE_BLOCKS":return!t.clientIds||!t.clientIds.length||t.clientIds.indexOf(e.clientId)===-1?e:{};case"REPLACE_BLOCKS":{if(t.clientIds.indexOf(e.clientId)===-1)return e;const n=t.blocks[t.indexToSelect]||t.blocks[t.blocks.length-1];return n?n.clientId===e.clientId?e:{clientId:n.clientId}:{}}}return e}function _mt(e={},t){switch(t.type){case"SELECTION_CHANGE":return t.clientId?{selectionStart:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset},selectionEnd:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.endOffset}}:{selectionStart:t.start||e.selectionStart,selectionEnd:t.end||e.selectionEnd};case"RESET_SELECTION":const{selectionStart:r,selectionEnd:s}=t;return{selectionStart:r,selectionEnd:s};case"MULTI_SELECT":const{start:i,end:c}=t;return i===e.selectionStart?.clientId&&c===e.selectionEnd?.clientId?e:{selectionStart:{clientId:i},selectionEnd:{clientId:c}};case"RESET_BLOCKS":const l=e?.selectionStart?.clientId,u=e?.selectionEnd?.clientId;if(!l&&!u)return e;if(!t.blocks.some(d=>d.clientId===l))return{selectionStart:{},selectionEnd:{}};if(!t.blocks.some(d=>d.clientId===u))return{...e,selectionEnd:e.selectionStart}}const n=cK(e.selectionStart,t),o=cK(e.selectionEnd,t);return n===e.selectionStart&&o===e.selectionEnd?e:{selectionStart:n,selectionEnd:o}}function wmt(e=!1,t){switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e}function kmt(e=!0,t){switch(t.type){case"TOGGLE_SELECTION":return t.isSelectionEnabled}return e}function qmt(e=!1,t){switch(t.type){case"DISPLAY_BLOCK_REMOVAL_PROMPT":const{clientIds:n,selectPrevious:o,message:r}=t;return{clientIds:n,selectPrevious:o,message:r};case"CLEAR_BLOCK_REMOVAL_PROMPT":return!1}return e}function Smt(e=!1,t){switch(t.type){case"SET_BLOCK_REMOVAL_RULES":return t.rules}return e}function Cmt(e=null,t){return t.type==="REPLACE_BLOCKS"&&t.initialPosition!==void 0||["MULTI_SELECT","SELECT_BLOCK","RESET_SELECTION","INSERT_BLOCKS","REPLACE_INNER_BLOCKS"].includes(t.type)?t.initialPosition:e}function Rmt(e={},t){if(t.type==="TOGGLE_BLOCK_MODE"){const{clientId:n}=t;return{...e,[n]:e[n]&&e[n]==="html"?"visual":"html"}}return e}function Wmt(e=null,t){switch(t.type){case"SHOW_INSERTION_POINT":{const{rootClientId:n,index:o,__unstableWithInserter:r,operation:s,nearestSide:i}=t,c={rootClientId:n,index:o,__unstableWithInserter:r,operation:s,nearestSide:i};return J1(e,c)?e:c}case"HIDE_INSERTION_POINT":case"CLEAR_SELECTED_BLOCK":case"SELECT_BLOCK":return null}return e}function Tmt(e={isValid:!0},t){switch(t.type){case"SET_TEMPLATE_VALIDITY":return{...e,isValid:t.isValid}}return e}function Emt(e=PW,t){switch(t.type){case"UPDATE_SETTINGS":return t.reset?{...PW,...t.settings}:{...e,...t.settings}}return e}function Bmt(e=imt,t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":{const n=t.blocks.reduce((o,r)=>{const{attributes:s,name:i}=r;let c=i;const l=V0($e).getActiveBlockVariation(i,s);return l?.name&&(c+="/"+l.name),i==="core/block"&&(c+="/"+s.ref),{...o,[c]:{time:t.time,count:o[c]?o[c].count+1:1}}},e.insertUsage);return{...e,insertUsage:n}}}return e}const Nmt=(e={},t)=>{switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object.fromEntries(Object.entries(e).filter(([n])=>!t.clientIds.includes(n)));case"UPDATE_BLOCK_LIST_SETTINGS":{const n=typeof t.clientId=="string"?{[t.clientId]:t.settings}:t.clientId;for(const r in n)n[r]?J1(e[r],n[r])&&delete n[r]:e[r]||delete n[r];if(Object.keys(n).length===0)return e;const o={...e,...n};for(const r in n)n[r]||delete o[r];return o}}return e};function Lmt(e="edit",t){return t.type==="INSERT_BLOCKS"&&e==="navigation"?"edit":t.type==="SET_EDITOR_MODE"?t.mode:e}function jmt(e=null,t){return t.type==="SET_BLOCK_MOVING_MODE"?t.hasBlockMovingClientId:t.type==="SET_EDITOR_MODE"?null:e}function Pmt(e=null,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return{[t.clientId]:t.updates.attributes};case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce((n,o)=>({...n,[o]:t.uniqueByBlock?t.attributes[o]:t.attributes}),{})}return e}function Imt(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":const{clientId:n,isHighlighted:o}=t;return o?n:e===n?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e}function Dmt(e=null,t){switch(t.type){case"SET_BLOCK_EXPANDED_IN_LIST_VIEW":return t.clientId;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e}function Fmt(e={},t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":if(!t.blocks.length)return e;const n=t.blocks.map(r=>r.clientId),o=t.meta?.source;return{clientIds:n,source:o};case"RESET_BLOCKS":return{}}return e}function $mt(e="",t){return t.type==="SET_TEMPORARILY_EDITING_AS_BLOCKS"?t.temporarilyEditingAsBlocks:e}function Vmt(e="",t){return t.type==="SET_TEMPORARILY_EDITING_AS_BLOCKS"?t.focusModeToRevert:e}function Hmt(e=new Map,t){switch(t.type){case"SET_BLOCK_EDITING_MODE":return new Map(e).set(t.clientId,t.mode);case"UNSET_BLOCK_EDITING_MODE":{const n=new Map(e);return n.delete(t.clientId),n}case"RESET_BLOCKS":return e.has("")?new Map().set("",e.get("")):e}return e}function Umt(e=null,t){if(t.type==="SET_OPENED_BLOCK_SETTINGS_MENU"){var n;return(n=t?.clientId)!==null&&n!==void 0?n:null}return e}function Xmt(e=new Map,t){switch(t.type){case"SET_STYLE_OVERRIDE":return new Map(e).set(t.id,t.style);case"DELETE_STYLE_OVERRIDE":{const n=new Map(e);return n.delete(t.id),n}}return e}function Gmt(e=[],t){switch(t.type){case"REGISTER_INSERTER_MEDIA_CATEGORY":return[...e,t.category]}return e}function Kmt(e=!1,t){switch(t.type){case"LAST_FOCUS":return t.lastFocus}return e}function Ymt(e=!1,t){switch(t.type){case"HOVER_BLOCK":return t.clientId}return e}const Zmt=zo({blocks:zmt,isDragging:ymt,isTyping:Amt,isBlockInterfaceHidden:Omt,draggedBlocks:vmt,selection:_mt,isMultiSelecting:wmt,isSelectionEnabled:kmt,initialPosition:Cmt,blocksMode:Rmt,blockListSettings:Nmt,insertionPoint:Wmt,template:Tmt,settings:Emt,preferences:Bmt,lastBlockAttributesChange:Pmt,lastFocus:Kmt,editorMode:Lmt,hasBlockMovingClientId:jmt,expandedBlock:Dmt,highlightedBlock:Imt,lastBlockInserted:Fmt,temporarilyEditingAsBlocks:$mt,temporarilyEditingFocusModeRevert:Vmt,blockVisibility:xmt,blockEditingModes:Hmt,styleOverrides:Xmt,removalPromptData:qmt,blockRemovalRules:Smt,openedBlockSettingsMenu:Umt,registeredInserterMediaCategories:Gmt,hoveredBlockClientId:Ymt});function Qmt(e){return(t,n)=>{const o=e(t,n);return t?(o.automaticChangeStatus=t.automaticChangeStatus,n.type==="MARK_AUTOMATIC_CHANGE"?{...o,automaticChangeStatus:"pending"}:n.type==="MARK_AUTOMATIC_CHANGE_FINAL"&&t.automaticChangeStatus==="pending"?{...o,automaticChangeStatus:"final"}:o.blocks===t.blocks&&o.selection===t.selection||o.automaticChangeStatus!=="final"&&o.selection!==t.selection?o:{...o,automaticChangeStatus:void 0}):o}}const Jmt=Qmt(Zmt),Rw=Symbol("globalStylesDataKey"),xfe=Symbol("globalStylesLinks"),H2=Symbol("selectBlockPatternsKey"),_j=Symbol("reusableBlocksSelect"),_fe=Symbol("sectionRootClientIdKey"),v1="core/block-editor",wfe=Symbol("withRootClientId"),lK=new WeakMap,uK=new WeakMap;function eMt(e){const t=Yn(e.content,{__unstableSkipMigrationLogs:!0});return t.length===1&&(t[0].attributes={...t[0].attributes,metadata:{...t[0].attributes.metadata||{},categories:e.categories,patternName:e.name,name:t[0].attributes.metadata?.name||e.title}}),{...e,blocks:t}}function kfe(e){let t=lK.get(e);return t||(t=eMt(e),lK.set(e,t)),t}function VW(e){let t=uK.get(e);return t||(t=fre(e.content),t=t.filter(n=>n.blockName!==null),uK.set(e,t)),t}const ib=(e,t,n=null)=>typeof e=="boolean"?e:Array.isArray(e)?e.includes("core/post-content")&&t===null?!0:e.includes(t):n,qfe=(e,t)=>{if(typeof t=="boolean")return t;const n=[...e];for(;n.length>0;){const o=n.shift();if(!ib(t,o.name||o.blockName,!0))return!1;o.innerBlocks?.forEach(s=>{n.push(s)})}return!0},Ww=e=>t=>[t.settings.__experimentalBlockPatterns,t.settings.__experimentalUserPatternCategories,t.settings.__experimentalReusableBlocks,t.settings[H2]?.(e),t.blockPatterns,Fe(e(v1)).getReusableBlocks()];function Fh(e,t){return[e.blockListSettings[t],e.blocks.byClientId.get(t),e.settings.allowedBlockTypes,e.settings.templateLock,e.blockEditingModes]}const tMt=(e,t,n)=>(o,r)=>{let s,i;if(typeof e=="function"?(s=e(o),i=e(r)):(s=o[e],i=r[e]),s>i)return n==="asc"?1:-1;if(i>s)return n==="asc"?-1:1;const c=t.findIndex(u=>u===o),l=t.findIndex(u=>u===r);return c>l?1:l>c?-1:0};function H3(e,t,n="asc"){return e.concat().sort(tMt(t,e,n))}const X1={user:"user",theme:"theme",directory:"directory"},i5={full:"fully",unsynced:"unsynced"},a5={name:"allPatterns",label:Oe("All","patterns")},U3={name:"myPatterns",label:m("My patterns")};function Sfe(e,t,n){const o=e.name.startsWith("core/block"),r=e.source==="core"||e.source?.startsWith("pattern-directory");return!!(t===X1.theme&&(o||r)||t===X1.directory&&(o||!r)||t===X1.user&&e.type!==X1.user||n===i5.full&&e.syncStatus!==""||n===i5.unsynced&&e.syncStatus!=="unsynced"&&o)}function Vt(e,t,n){t=Array.isArray(t)?[...t]:[t],e=Array.isArray(e)?[...e]:{...e};const o=t.pop();let r=e;for(const s of t){const i=r[s];r=r[s]=Array.isArray(i)?[...i]:{...i}}return r[o]=n,e}const R0=(e,t,n)=>{var o;const r=Array.isArray(t)?t:t.split(".");let s=e;return r.forEach(i=>{s=s?.[i]}),(o=s)!==null&&o!==void 0?o:n},nMt=["color","border","dimensions","typography","spacing"],oMt={"color.palette":e=>e.colors,"color.gradients":e=>e.gradients,"color.custom":e=>e.disableCustomColors===void 0?void 0:!e.disableCustomColors,"color.customGradient":e=>e.disableCustomGradients===void 0?void 0:!e.disableCustomGradients,"typography.fontSizes":e=>e.fontSizes,"typography.customFontSize":e=>e.disableCustomFontSizes===void 0?void 0:!e.disableCustomFontSizes,"typography.lineHeight":e=>e.enableCustomLineHeight,"spacing.units":e=>{if(e.enableCustomUnits!==void 0)return e.enableCustomUnits===!0?["px","em","rem","vh","vw","%"]:e.enableCustomUnits},"spacing.padding":e=>e.enableCustomSpacing},rMt={"border.customColor":"border.color","border.customStyle":"border.style","border.customWidth":"border.width","typography.customFontStyle":"typography.fontStyle","typography.customFontWeight":"typography.fontWeight","typography.customLetterSpacing":"typography.letterSpacing","typography.customTextDecorations":"typography.textDecoration","typography.customTextTransforms":"typography.textTransform","border.customRadius":"border.radius","spacing.customMargin":"spacing.margin","spacing.customPadding":"spacing.padding","typography.customLineHeight":"typography.lineHeight"},sMt=e=>rMt[e]||e;function iMt(e,t,...n){const o=ls(e,t),r=[];if(t){let s=t;do{const i=ls(e,s);st(i,"__experimentalSettings",!1)&&r.push(s)}while(s=e.blocks.parents.get(s))}return n.map(s=>{if(nMt.includes(s)){console.warn("Top level useSetting paths are disabled. Please use a subpath to query the information needed.");return}let i=_n("blockEditor.useSetting.before",void 0,s,t,o);if(i!==void 0)return i;const c=sMt(s);for(const b of r){var l;const h=$h(e,b);if(i=(l=R0(h.settings?.blocks?.[o],c))!==null&&l!==void 0?l:R0(h.settings,c),i!==void 0)break}const u=Z3(e);if(i===void 0&&o&&(i=R0(u.__experimentalFeatures?.blocks?.[o],c)),i===void 0&&(i=R0(u.__experimentalFeatures,c)),i!==void 0){if(QBe[c]){var d,p;return(d=(p=i.custom)!==null&&p!==void 0?p:i.theme)!==null&&d!==void 0?d:i.default}return i}const f=oMt[c]?.(u);return f!==void 0?f:c==="typography.dropCap"?!0:void 0})}function aMt(e){return e.isBlockInterfaceHidden}function cMt(e){return e?.lastBlockInserted?.clientIds}function lMt(e,t){return e.blocks.byClientId.get(t)}const uMt=(e,t)=>{const n=o=>wl(e,o)==="disabled"&&Er(e,o).every(n);return Er(e,t).every(n)};function Cfe(e,t){const n=Er(e,t),o=[];for(const r of n){const s=Cfe(e,r);wl(e,r)!=="disabled"?o.push({clientId:r,innerBlocks:s}):o.push(...s)}return o}const dMt=at(Cfe,e=>[e.blocks.order,e.blockEditingModes,e.settings.templateLock,e.blockListSettings]),pMt=at((e,t,n=!1)=>Qu(e,t,n).filter(o=>wl(e,o)!=="disabled"),e=>[e.blocks.parents,e.blockEditingModes,e.settings.templateLock,e.blockListSettings]);function fMt(e){return e.removalPromptData}function bMt(e){return e.blockRemovalRules}function hMt(e){return e.openedBlockSettingsMenu}const mMt=at(e=>{const n=X3(e).reduce((o,r,s)=>(o[r]=s,o),{});return[...e.styleOverrides].sort((o,r)=>{var s,i;const[,{clientId:c}]=o,[,{clientId:l}]=r,u=(s=n[c])!==null&&s!==void 0?s:-1,d=(i=n[l])!==null&&i!==void 0?i:-1;return u-d})},e=>[e.blocks.order,e.styleOverrides]);function MMt(e){return e.registeredInserterMediaCategories}const gMt=at(e=>{const{settings:{inserterMediaCategories:t,allowedMimeTypes:n,enableOpenverseMediaCategory:o},registeredInserterMediaCategories:r}=e;if(!t&&!r.length||!n)return;const s=t?.map(({name:c})=>c)||[];return[...t||[],...(r||[]).filter(({name:c})=>!s.includes(c))].filter(c=>!o&&c.name==="openverse"?!1:Object.values(n).some(l=>l.startsWith(`${c.mediaType}/`)))},e=>[e.settings.inserterMediaCategories,e.settings.allowedMimeTypes,e.settings.enableOpenverseMediaCategory,e.registeredInserterMediaCategories]),zMt=nt(e=>at((t,n=null)=>{const{getAllPatterns:o}=Fe(e(v1)),r=o(),{allowedBlockTypes:s}=Z3(t);return r.some(i=>{const{inserter:c=!0}=i;if(!c)return!1;const l=VW(i);return qfe(l,s)&&l.every(({name:u})=>Y3(t,u,n))})},(t,n)=>[...Ww(e)(t),...Fh(t,n)]));function Rfe(e,t=[]){return{name:`core/block/${e.id}`,id:e.id,type:X1.user,title:e.title.raw,categories:e.wp_pattern_category.map(n=>{const o=t.find(({id:r})=>r===n);return o?o.slug:n}),content:e.content.raw,syncStatus:e.wp_pattern_sync_status}}const OMt=nt(e=>at((t,n)=>{var o,r;if(n?.startsWith("core/block/")){const s=parseInt(n.slice(11),10),i=Fe(e(v1)).getReusableBlocks().find(({id:c})=>c===s);return i?Rfe(i,t.settings.__experimentalUserPatternCategories):null}return[...(o=t.settings.__experimentalBlockPatterns)!==null&&o!==void 0?o:[],...(r=t.settings[H2]?.(e))!==null&&r!==void 0?r:[]].find(({name:s})=>s===n)},(t,n)=>n?.startsWith("core/block/")?[Fe(e(v1)).getReusableBlocks(),t.settings.__experimentalReusableBlocks]:[t.settings.__experimentalBlockPatterns,t.settings[H2]?.(e)])),AMt=nt(e=>at(t=>{var n,o;return[...Fe(e(v1)).getReusableBlocks().map(r=>Rfe(r,t.settings.__experimentalUserPatternCategories)),...(n=t.settings.__experimentalBlockPatterns)!==null&&n!==void 0?n:[],...(o=t.settings[H2]?.(e))!==null&&o!==void 0?o:[]].filter((r,s,i)=>s===i.findIndex(c=>r.name===c.name))},Ww(e))),yMt=nt(e=>at(t=>{const n=t.settings[H2],o=t.settings[_j];return(n?n(e)===void 0:!1)||(o?o(e)===void 0:!1)},Ww(e))),vMt=[],xMt=nt(e=>t=>{var n;const o=t.settings[_j];return o?o(e):(n=t.settings.__experimentalReusableBlocks)!==null&&n!==void 0?n:vMt});function _Mt(e){return e.lastFocus}function wMt(e){return e.isDragging}function kMt(e){return e.expandedBlock}const Wfe=at((e,t)=>{let n=t,o;for(;n=e.blocks.parents.get(n);)(ls(e,n)==="core/block"||Uh(e,n)==="contentOnly")&&(o=n);return o},e=>[e.blocks.parents,e.blockListSettings]);function Tfe(e){return e.temporarilyEditingAsBlocks}function Efe(e){return e.temporarilyEditingFocusModeRevert}const qMt=at((e,t)=>t.reduce((n,o)=>(n[o]=e.blocks.attributes.get(o)?.style,n),{}),(e,t)=>[...t.map(n=>e.blocks.attributes.get(n)?.style)]);function SMt(e){return e.editorMode==="zoom-out"}function Tw(e){return e.settings?.[_fe]}const Bfe=Object.freeze(Object.defineProperty({__proto__:null,getAllPatterns:AMt,getBlockRemovalRules:bMt,getBlockSettings:iMt,getBlockStyles:qMt,getBlockWithoutAttributes:lMt,getContentLockingParent:Wfe,getEnabledBlockParents:pMt,getEnabledClientIdsTree:dMt,getExpandedBlock:kMt,getInserterMediaCategories:gMt,getLastFocus:_Mt,getLastInsertedBlocksClientIds:cMt,getOpenedBlockSettingsMenu:hMt,getPatternBySlug:OMt,getRegisteredInserterMediaCategories:MMt,getRemovalPromptData:fMt,getReusableBlocks:xMt,getSectionRootClientId:Tw,getStyleOverrides:mMt,getTemporarilyEditingAsBlocks:Tfe,getTemporarilyEditingFocusModeToRevert:Efe,hasAllowedPatterns:zMt,isBlockInterfaceHidden:aMt,isBlockSubtreeDisabled:uMt,isDragging:wMt,isResolvingPatterns:yMt,isZoomOutMode:SMt},Symbol.toStringTag,{value:"Module"})),CMt=3600*1e3,RMt=24*3600*1e3,WMt=7*24*3600*1e3,mo=[],TMt=new Set,EMt={};function ls(e,t){const n=e.blocks.byClientId.get(t);return n?n.name:null}function BMt(e,t){const n=e.blocks.byClientId.get(t);return!!n&&n.isValid}function $h(e,t){return e.blocks.byClientId.get(t)?e.blocks.attributes.get(t):null}function sl(e,t){return e.blocks.byClientId.has(t)?e.blocks.tree.get(t):null}const NMt=at((e,t)=>{const n=e.blocks.byClientId.get(t);return n?{...n,attributes:$h(e,t)}:null},(e,t)=>[e.blocks.byClientId.get(t),e.blocks.attributes.get(t)]);function LMt(e,t){const n=!t||!Bw(e,t)?t||"":"controlled||"+t;return e.blocks.tree.get(n)?.innerBlocks||mo}const Nfe=at((e,t)=>(Re("wp.data.select( 'core/block-editor' ).__unstableGetClientIdWithClientIdsTree",{since:"6.3",version:"6.5"}),{clientId:t,innerBlocks:Lfe(e,t)}),e=>[e.blocks.order]),Lfe=at((e,t="")=>(Re("wp.data.select( 'core/block-editor' ).__unstableGetClientIdsTree",{since:"6.3",version:"6.5"}),Er(e,t).map(n=>Nfe(e,n))),e=>[e.blocks.order]),jfe=at((e,t)=>{t=Array.isArray(t)?[...t]:[t];const n=[];for(const r of t){const s=e.blocks.order.get(r);s&&n.push(...s)}let o=0;for(;o[e.blocks.order]),X3=e=>jfe(e,""),jMt=at((e,t)=>{const n=X3(e);if(!t)return n.length;let o=0;for(const r of n)e.blocks.byClientId.get(r).name===t&&o++;return o},e=>[e.blocks.order,e.blocks.byClientId]),Pfe=at((e,t)=>{if(!t)return mo;const n=Array.isArray(t)?t:[t],r=X3(e).filter(s=>{const i=e.blocks.byClientId.get(s);return n.includes(i.name)});return r.length>0?r:mo},e=>[e.blocks.order,e.blocks.byClientId]);function PMt(e,t){return Re("wp.data.select( 'core/block-editor' ).__experimentalGetGlobalBlocksByName",{since:"6.5",alternative:"wp.data.select( 'core/block-editor' ).getBlocksByName"}),Pfe(e,t)}const c5=at((e,t)=>(Array.isArray(t)?t:[t]).map(n=>sl(e,n)),(e,t)=>(Array.isArray(t)?t:[t]).map(n=>e.blocks.tree.get(n))),IMt=at((e,t)=>c5(e,t).filter(Boolean).map(n=>n.name),(e,t)=>c5(e,t));function DMt(e,t){return Er(e,t).length}function G3(e){return e.selection.selectionStart}function K3(e){return e.selection.selectionEnd}function FMt(e){return e.selection.selectionStart.clientId}function $Mt(e){return e.selection.selectionEnd.clientId}function VMt(e){const t=zd(e).length;return t||(e.selection.selectionStart.clientId?1:0)}function HMt(e){const{selectionStart:t,selectionEnd:n}=e.selection;return!!t.clientId&&t.clientId===n.clientId}function Vh(e){const{selectionStart:t,selectionEnd:n}=e.selection,{clientId:o}=t;return!o||o!==n.clientId?null:o}function UMt(e){const t=Vh(e);return t?sl(e,t):null}function Ao(e,t){var n;return(n=e.blocks.parents.get(t))!==null&&n!==void 0?n:null}const Qu=at((e,t,n=!1)=>{const o=[];let r=t;for(;r=e.blocks.parents.get(r);)o.push(r);return o.length?n?o:o.reverse():mo},e=>[e.blocks.parents]),wj=at((e,t,n,o=!1)=>{const r=Qu(e,t,o),s=Array.isArray(n)?i=>n.includes(i):i=>n===i;return r.filter(i=>s(ls(e,i)))},e=>[e.blocks.parents]);function XMt(e,t){let n=t,o;do o=n,n=e.blocks.parents.get(n);while(n);return o}function GMt(e,t){const n=Vh(e),o=[...Qu(e,t),t],r=[...Qu(e,n),n];let s;const i=Math.min(o.length,r.length);for(let c=0;c{const{selectionStart:t,selectionEnd:n}=e.selection;if(!t.clientId||!n.clientId)return mo;if(t.clientId===n.clientId)return[t.clientId];const o=Ao(e,t.clientId);if(o===null)return mo;const r=Er(e,o),s=r.indexOf(t.clientId),i=r.indexOf(n.clientId);return s>i?r.slice(i,s+1):r.slice(s,i+1)},e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]);function zd(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?mo:Hh(e)}const QMt=at(e=>{const t=zd(e);return t.length?t.map(n=>sl(e,n)):mo},e=>[...Hh.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]);function qj(e){return zd(e)[0]||null}function Ife(e){const t=zd(e);return t[t.length-1]||null}function JMt(e,t){return qj(e)===t}function Dfe(e,t){return zd(e).indexOf(t)!==-1}const egt=at((e,t)=>{let n=t,o=!1;for(;n&&!o;)n=Ao(e,n),o=Dfe(e,n);return o},e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]);function tgt(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:t.clientId||null}function ngt(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:n.clientId||null}function ogt(e){const t=G3(e),n=K3(e);return!t.attributeKey&&!n.attributeKey&&typeof t.offset>"u"&&typeof n.offset>"u"}function rgt(e){const t=G3(e),n=K3(e);return!!t&&!!n&&t.clientId===n.clientId&&t.attributeKey===n.attributeKey&&t.offset===n.offset}function sgt(e){return Hh(e).some(t=>{const n=ls(e,t);return!Dt(n).merge})}function igt(e,t){const n=G3(e),o=K3(e);if(n.clientId===o.clientId||!n.attributeKey||!o.attributeKey||typeof n.offset>"u"||typeof o.offset>"u")return!1;const r=Ao(e,n.clientId),s=Ao(e,o.clientId);if(r!==s)return!1;const i=Er(e,r),c=i.indexOf(n.clientId),l=i.indexOf(o.clientId);let u,d;c>l?(u=o,d=n):(u=n,d=o);const p=t?d.clientId:u.clientId,f=t?u.clientId:d.clientId,b=ls(e,p);if(!Dt(b).merge)return!1;const g=sl(e,f);if(g.name===b)return!0;const z=l1(g,b);return z&&z.length}const agt=e=>{const t=G3(e),n=K3(e);if(t.clientId===n.clientId||!t.attributeKey||!n.attributeKey||typeof t.offset>"u"||typeof n.offset>"u")return mo;const o=Ao(e,t.clientId),r=Ao(e,n.clientId);if(o!==r)return mo;const s=Er(e,o),i=s.indexOf(t.clientId),c=s.indexOf(n.clientId),[l,u]=i>c?[n,t]:[t,n],d=sl(e,l.clientId),p=sl(e,u.clientId),f=d.attributes[l.attributeKey],b=p.attributes[u.attributeKey];let h=m0({html:f}),g=m0({html:b});return h=Ks(h,0,l.offset),g=Ks(g,u.offset,g.text.length),[{...d,attributes:{...d.attributes,[l.attributeKey]:K1({value:h})}},{...p,attributes:{...p.attributes,[u.attributeKey]:K1({value:g})}}]};function Er(e,t){return e.blocks.order.get(t||"")||mo}function Ffe(e,t){const n=Ao(e,t);return Er(e,n).indexOf(t)}function $fe(e,t){const{selectionStart:n,selectionEnd:o}=e.selection;return n.clientId!==o.clientId?!1:n.clientId===t}function Vfe(e,t,n=!1){const o=Hh(e);return o.length?n?o.some(r=>Qu(e,r,!0).includes(t)):o.some(r=>Ao(e,r)===t):!1}function Hfe(e,t,n=!1){return Er(e,t).some(o=>Sj(e,o)||n&&Hfe(e,o,n))}function cgt(e,t){if(!t)return!1;const n=zd(e),o=n.indexOf(t);return o>-1&&oSj(e,o)):!1}function mgt(){return Re('wp.data.select( "core/block-editor" ).isCaretWithinFormattedText',{since:"6.1",version:"6.3"}),!1}const Mgt=at(e=>{let t,n;const{insertionPoint:o,selection:{selectionEnd:r}}=e;if(o!==null)return o;const{clientId:s}=r;return s?(t=Ao(e,s)||void 0,n=Ffe(e,r.clientId)+1):n=Er(e).length,{rootClientId:t,index:n}},e=>[e.insertionPoint,e.selection.selectionEnd.clientId,e.blocks.parents,e.blocks.order]);function ggt(e){return e.insertionPoint!==null}function zgt(e){return e.template.isValid}function Ogt(e){return e.settings.template}function Uh(e,t){var n;if(!t){var o;return(o=e.settings.templateLock)!==null&&o!==void 0?o:!1}return(n=Ej(e,t)?.templateLock)!==null&&n!==void 0?n:!1}const hp=(e,t,n=null)=>{let o;if(t&&typeof t=="object"?(o=t,t=o.name):o=Dt(t),!o)return!1;const{allowedBlockTypes:r}=Z3(e);if(!ib(r,t,!0)||!!Uh(e,n)||wl(e,n??"")==="disabled")return!1;const c=Ej(e,n);if(n&&c===void 0)return!1;const l=ls(e,n),d=Dt(l)?.allowedBlocks;let p=ib(d,t);if(p!==!1){const y=c?.allowedBlocks,x=ib(y,t);x!==null&&(p=x)}const f=o.parent,b=ib(f,l);let h=!0;const g=o.ancestor;g&&(h=[n,...Qu(e,n)].some(x=>ib(g,ls(e,x))));const z=h&&(p===null&&b===null||p===!0||b===!0);return z&&_n("blockEditor.__unstableCanInsertBlockType",z,o,n,{getBlock:sl.bind(null,e),getBlockParentsByBlockName:wj.bind(null,e)})},Y3=at(hp,(e,t,n)=>Fh(e,n));function Agt(e,t,n=null){return t.every(o=>Y3(e,ls(e,o),n))}function Cj(e,t){const n=$h(e,t);if(n===null)return!0;if(n.lock?.remove!==void 0)return!n.lock.remove;const o=Ao(e,t);return Uh(e,o)?!1:wl(e,o)!=="disabled"}function Xfe(e,t){return t.every(n=>Cj(e,n))}function Gfe(e,t){const n=$h(e,t);if(n===null)return!0;if(n.lock?.move!==void 0)return!n.lock.move;const o=Ao(e,t);return Uh(e,o)==="all"?!1:wl(e,o)!=="disabled"}function ygt(e,t){return t.every(n=>Gfe(e,n))}function Kfe(e,t){const n=$h(e,t);if(n===null)return!0;const{lock:o}=n;return!o?.edit}function vgt(e,t){return st(t,"lock",!0)?!!e.settings?.canLockBlocks:!1}function Rj(e,t){var n;return(n=e.preferences.insertUsage?.[t])!==null&&n!==void 0?n:null}const Ew=(e,t,n)=>st(t,"inserter",!0)?hp(e,t.name,n):!1,xgt=(e,t)=>n=>{const o=`${t.id}/${n.name}`,{time:r,count:s=0}=Rj(e,o)||{};return{...t,id:o,icon:n.icon||t.icon,title:n.title||t.title,description:n.description||t.description,category:n.category||t.category,example:n.hasOwnProperty("example")?n.example:t.example,initialAttributes:{...t.initialAttributes,...n.attributes},innerBlocks:n.innerBlocks,keywords:n.keywords||t.keywords,frecency:Wj(r,s)}},Wj=(e,t)=>{if(!e)return t;const n=Date.now()-e;switch(!0){case nn=>{const o=n.name;let r=!1;st(n.name,"multiple",!0)||(r=c5(e,X3(e)).some(({name:u})=>u===n.name));const{time:s,count:i=0}=Rj(e,o)||{},c={id:o,name:n.name,title:n.title,icon:n.icon,isDisabled:r,frecency:Wj(s,i)};if(t==="transform")return c;const l=Xx(n.name,"inserter");return{...c,initialAttributes:{},description:n.description,category:n.category,keywords:n.keywords,variations:l,example:n.example,utility:1}},_gt=nt(e=>at((t,n=null,o=EMt)=>{const r=b=>{const h=b.wp_pattern_sync_status?Gu:{src:Gu,foreground:"var(--wp-block-synced-color)"},g=`core/block/${b.id}`,{time:z,count:y=0}=Rj(t,g)||{},x=Wj(z,y);return{id:g,name:"core/block",initialAttributes:{ref:b.id},title:b.title?.raw,icon:h,category:"reusable",keywords:["reusable"],isDisabled:!1,utility:1,frecency:x,content:b.content?.raw,syncStatus:b.wp_pattern_sync_status}},s=hp(t,"core/block",n)?Fe(e(v1)).getReusableBlocks().map(r):[],i=Yfe(t,{buildScope:"inserter"});let c=nr().filter(b=>st(b,"inserter",!0)).map(i);o[wfe]?c=c.reduce((b,h)=>{for(h.rootClientId=n??"";!hp(t,h.name,h.rootClientId);)if(h.rootClientId){const g=Ao(t,h.rootClientId);h.rootClientId=g}else{let g;try{g=Tw(t)}catch{}g&&hp(t,h.name,g)?h.rootClientId=g:delete h.rootClientId;break}return h.hasOwnProperty("rootClientId")&&b.push(h),b},[]):c=c.filter(b=>Ew(t,b,n));const l=c.reduce((b,h)=>{const{variations:g=[]}=h;if(g.some(({isDefault:z})=>z)||b.push(h),g.length){const z=xgt(t,h);b.push(...g.map(z))}return b},[]),u=(b,h)=>{const{core:g,noncore:z}=b;return(h.name.startsWith("core/")?g:z).push(h),b},{core:d,noncore:p}=l.reduce(u,{core:[],noncore:[]});return[...[...d,...p],...s]},(t,n)=>[nr(),Fe(e(v1)).getReusableBlocks(),t.blocks.order,t.preferences.insertUsage,...Fh(t,n)])),wgt=at((e,t,n=null)=>{const o=Array.isArray(t)?t:[t],r=Yfe(e,{buildScope:"transform"}),s=nr().filter(l=>Ew(e,l,n)).map(r),i=Object.fromEntries(Object.entries(s).map(([,l])=>[l.name,l])),c=dre(o).reduce((l,u)=>(i[u?.name]&&l.push(i[u.name]),l),[]);return H3(c,l=>i[l.name].frecency,"desc")},(e,t,n)=>[nr(),e.preferences.insertUsage,...Fh(e,n)]),kgt=nt(e=>(t,n=null)=>nr().some(s=>Ew(t,s,n))?!0:hp(t,"core/block",n)&&Fe(e(v1)).getReusableBlocks().length>0),HW=nt(e=>at((t,n=null)=>{if(!n)return;const o=nr().filter(s=>Ew(t,s,n));return hp(t,"core/block",n)&&Fe(e(v1)).getReusableBlocks().length>0&&o.push("core/block"),o},(t,n)=>[nr(),Fe(e(v1)).getReusableBlocks(),...Fh(t,n)])),qgt=at((e,t=null)=>(Re('wp.data.select( "core/block-editor" ).__experimentalGetAllowedBlocks',{alternative:'wp.data.select( "core/block-editor" ).getAllowedBlocks',since:"6.2",version:"6.4"}),HW(e,t)),(e,t)=>HW.getDependants(e,t));function Zfe(e,t=null){var n;if(!t)return;const{defaultBlock:o,directInsert:r}=(n=e.blockListSettings[t])!==null&&n!==void 0?n:{};if(!(!o||!r))return o}function Sgt(e,t=null){return Re('wp.data.select( "core/block-editor" ).__experimentalGetDirectInsertBlock',{alternative:'wp.data.select( "core/block-editor" ).getDirectInsertBlock',since:"6.3",version:"6.4"}),Zfe(e,t)}const Cgt=nt(e=>(t,n)=>{const o=Fe(e(v1)).getPatternBySlug(n);return o?kfe(o):null}),Tj=e=>(t,n)=>[...Ww(e)(t),...Fh(t,n)],Rgt=nt(e=>at((t,n=null)=>{const{getAllPatterns:o}=Fe(e(v1)),r=o(),{allowedBlockTypes:s}=Z3(t);return r.filter(({inserter:u=!0})=>!!u).map(u=>({...u,get blocks(){return kfe(u).blocks}})).filter(u=>qfe(VW(u),s)).filter(u=>VW(u).every(({blockName:d})=>Y3(t,d,n)))},Tj(e))),Wgt=nt(e=>at((t,n,o=null)=>{if(!n)return mo;const r=e(v1).__experimentalGetAllowedPatterns(o),s=Array.isArray(n)?n:[n],i=r.filter(c=>c?.blockTypes?.some?.(l=>s.includes(l)));return i.length===0?mo:i},(t,n,o)=>Tj(e)(t,o))),Tgt=nt(e=>(Re('wp.data.select( "core/block-editor" ).__experimentalGetPatternsByBlockTypes',{alternative:'wp.data.select( "core/block-editor" ).getPatternsByBlockTypes',since:"6.2",version:"6.4"}),e(v1).getPatternsByBlockTypes)),Egt=nt(e=>at((t,n,o=null)=>{if(!n||n.some(({clientId:s,innerBlocks:i})=>i.length||Bw(t,s)))return mo;const r=Array.from(new Set(n.map(({name:s})=>s)));return e(v1).getPatternsByBlockTypes(r,o)},(t,n,o)=>Tj(e)(t,o)));function Ej(e,t){return e.blockListSettings[t]}function Z3(e){return e.settings}function Bgt(e){return e.blocks.isPersistentChange}const Ngt=at((e,t=[])=>t.reduce((n,o)=>e.blockListSettings[o]?{...n,[o]:e.blockListSettings[o]}:n,{}),e=>[e.blockListSettings]),Lgt=nt(e=>at((t,n)=>{Re("wp.data.select( 'core/block-editor' ).__experimentalGetReusableBlockTitle",{since:"6.6",version:"6.8"});const o=Fe(e(v1)).getReusableBlocks().find(r=>r.id===n);return o?o.title?.raw:null},()=>[Fe(e(v1)).getReusableBlocks()]));function jgt(e){return e.blocks.isIgnoredChange}function Pgt(e){return e.lastBlockAttributesChange}function Igt(e){return e.editorMode==="navigation"}function Bj(e){return e.editorMode}function Dgt(e){return e.hasBlockMovingClientId}function Fgt(e){return!!e.automaticChangeStatus}function $gt(e,t){return e.highlightedBlock===t}function Bw(e,t){return!!e.blocks.controlledInnerBlocks[t]}const Vgt=at((e,t)=>{if(!t.length)return null;const n=Vh(e);if(t.includes(ls(e,n)))return n;const o=zd(e),r=wj(e,n||o[0],t);return r?r[r.length-1]:null},(e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]);function Hgt(e,t,n){const{lastBlockInserted:o}=e;return o.clientIds?.includes(t)&&o.source===n}function Ugt(e,t){var n;return(n=e.blockVisibility?.[t])!==null&&n!==void 0?n:!0}function Xgt(e){return e.hoveredBlockClientId}const Ggt=at(e=>{const t=new Set(Object.keys(e.blockVisibility).filter(n=>e.blockVisibility[n]));return t.size===0?TMt:t},e=>[e.blockVisibility]);function Qfe(e,t){if(wl(e,t)!=="default")return!1;if(!Kfe(e,t))return!0;const n=Bj(e);if(n==="zoom-out"){const s=Tw(e);if(s){if(Er(e,s)?.includes(t))return!0}else if(t&&!Ao(e,t))return!0}const o=st(ls(e,t),"__experimentalDisableBlockOverlay",!1);return(n==="navigation"||(o?!1:Bw(e,t)))&&!$fe(e,t)&&!Vfe(e,t,!0)}function Kgt(e,t){let n=e.blocks.parents.get(t);for(;n;){if(Qfe(e,n))return!0;n=e.blocks.parents.get(n)}return!1}const wl=nt(e=>(t,n="")=>{if(n===null&&(n=""),Bj(t)==="zoom-out"){const l=Tw(t);if(n==="")return l?"disabled":"contentOnly";if(n===l)return"contentOnly";if(!Er(t,l)?.includes(n))return"disabled"}const r=t.blockEditingModes.get(n);if(r)return r;if(!n)return"default";const s=Ao(t,n);if(Uh(t,s)==="contentOnly"){const l=ls(t,n);return e($e).__experimentalHasContentRoleAttribute(l)?"contentOnly":"disabled"}const c=wl(t,s);return c==="contentOnly"?"default":c}),Ygt=nt(e=>(t,n="")=>{const o=n||Vh(t);if(!o)return!1;const{getGroupingBlockName:r}=e($e),s=sl(t,o),i=r();return s&&(s.name===i||Dt(s.name)?.transforms?.ungroup)&&!!s.innerBlocks.length&&Cj(t,o)}),Zgt=nt(e=>(t,n=mo)=>{const{getGroupingBlockName:o}=e($e),r=o(),s=n?.length?n:Hh(t),i=s?.length?Ao(t,s[0]):void 0;return Y3(t,r,i)&&s.length&&Xfe(t,s)}),Qgt=(e,t)=>(Re("wp.data.select( 'core/block-editor' ).__unstableGetContentLockingParent",{since:"6.1",version:"6.7"}),Wfe(e,t));function Jgt(e){return Re("wp.data.select( 'core/block-editor' ).__unstableGetTemporarilyEditingAsBlocks",{since:"6.1",version:"6.7"}),Tfe(e)}function ezt(e){return Re("wp.data.select( 'core/block-editor' ).__unstableGetTemporarilyEditingFocusModeToRevert",{since:"6.5",version:"6.7"}),Efe(e)}const tzt=Object.freeze(Object.defineProperty({__proto__:null,__experimentalGetActiveBlockIdByBlockNames:Vgt,__experimentalGetAllowedBlocks:qgt,__experimentalGetAllowedPatterns:Rgt,__experimentalGetBlockListSettingsForBlocks:Ngt,__experimentalGetDirectInsertBlock:Sgt,__experimentalGetGlobalBlocksByName:PMt,__experimentalGetLastBlockAttributeChanges:Pgt,__experimentalGetParsedPattern:Cgt,__experimentalGetPatternTransformItems:Egt,__experimentalGetPatternsByBlockTypes:Tgt,__experimentalGetReusableBlockTitle:Lgt,__unstableGetBlockWithoutInnerBlocks:NMt,__unstableGetClientIdWithClientIdsTree:Nfe,__unstableGetClientIdsTree:Lfe,__unstableGetContentLockingParent:Qgt,__unstableGetEditorMode:Bj,__unstableGetSelectedBlocksWithPartialSelection:agt,__unstableGetTemporarilyEditingAsBlocks:Jgt,__unstableGetTemporarilyEditingFocusModeToRevert:ezt,__unstableGetVisibleBlocks:Ggt,__unstableHasActiveBlockOverlayActive:Qfe,__unstableIsFullySelected:ogt,__unstableIsLastBlockChangeIgnored:jgt,__unstableIsSelectionCollapsed:rgt,__unstableIsSelectionMergeable:igt,__unstableIsWithinBlockOverlay:Kgt,__unstableSelectionHasUnmergeableBlock:sgt,areInnerBlocksControlled:Bw,canEditBlock:Kfe,canInsertBlockType:Y3,canInsertBlocks:Agt,canLockBlockType:vgt,canMoveBlock:Gfe,canMoveBlocks:ygt,canRemoveBlock:Cj,canRemoveBlocks:Xfe,didAutomaticChange:Fgt,getAdjacentBlockClientId:kj,getAllowedBlocks:HW,getBlock:sl,getBlockAttributes:$h,getBlockCount:DMt,getBlockEditingMode:wl,getBlockHierarchyRootClientId:XMt,getBlockIndex:Ffe,getBlockInsertionPoint:Mgt,getBlockListSettings:Ej,getBlockMode:pgt,getBlockName:ls,getBlockNamesByClientId:IMt,getBlockOrder:Er,getBlockParents:Qu,getBlockParentsByBlockName:wj,getBlockRootClientId:Ao,getBlockSelectionEnd:$Mt,getBlockSelectionStart:FMt,getBlockTransformItems:wgt,getBlocks:LMt,getBlocksByClientId:c5,getBlocksByName:Pfe,getClientIdsOfDescendants:jfe,getClientIdsWithDescendants:X3,getDirectInsertBlock:Zfe,getDraggedBlockClientIds:bgt,getFirstMultiSelectedBlockClientId:qj,getGlobalBlockCount:jMt,getHoveredBlockClientId:Xgt,getInserterItems:_gt,getLastMultiSelectedBlockClientId:Ife,getLowestCommonAncestorWithSelectedBlock:GMt,getMultiSelectedBlockClientIds:zd,getMultiSelectedBlocks:QMt,getMultiSelectedBlocksEndClientId:ngt,getMultiSelectedBlocksStartClientId:tgt,getNextBlockClientId:YMt,getPatternsByBlockTypes:Wgt,getPreviousBlockClientId:KMt,getSelectedBlock:UMt,getSelectedBlockClientId:Vh,getSelectedBlockClientIds:Hh,getSelectedBlockCount:VMt,getSelectedBlocksInitialCaretPosition:ZMt,getSelectionEnd:K3,getSelectionStart:G3,getSettings:Z3,getTemplate:Ogt,getTemplateLock:Uh,hasBlockMovingClientId:Dgt,hasDraggedInnerBlock:Hfe,hasInserterItems:kgt,hasMultiSelection:lgt,hasSelectedBlock:HMt,hasSelectedInnerBlock:Vfe,isAncestorBeingDragged:hgt,isAncestorMultiSelected:egt,isBlockBeingDragged:Sj,isBlockHighlighted:$gt,isBlockInsertionPointVisible:ggt,isBlockMultiSelected:Dfe,isBlockSelected:$fe,isBlockValid:BMt,isBlockVisible:Ugt,isBlockWithinSelection:cgt,isCaretWithinFormattedText:mgt,isDraggingBlocks:Ufe,isFirstMultiSelectedBlock:JMt,isGroupable:Zgt,isLastBlockChangePersistent:Bgt,isMultiSelecting:ugt,isNavigationMode:Igt,isSelectionEnabled:dgt,isTyping:fgt,isUngroupable:Ygt,isValidTemplate:zgt,wasBlockJustInserted:Hgt},Symbol.toStringTag,{value:"Module"})),nzt=e=>Array.isArray(e)?e:[e],ozt=["inserterMediaCategories","blockInspectorAnimation"];function Jfe(e,{stripExperimentalSettings:t=!1,reset:n=!1}={}){let o=e;if(t&&w1.OS==="web"){o={};for(const r in e)ozt.includes(r)||(o[r]=e[r])}return{type:"UPDATE_SETTINGS",settings:o,reset:n}}function rzt(){return{type:"HIDE_BLOCK_INTERFACE"}}function szt(){return{type:"SHOW_BLOCK_INTERFACE"}}const ebe=(e,t=!0,n=!1)=>({select:o,dispatch:r,registry:s})=>{if(!e||!e.length||(e=nzt(e),!o.canRemoveBlocks(e)))return;const c=!n&&o.getBlockRemovalRules();if(c){let u=function(b){const h=[],g=[...b];for(;g.length;){const{innerBlocks:z,...y}=g.shift();g.push(...z),h.push(y)}return h};var l=u;const d=e.map(o.getBlock),p=u(d);let f;for(const b of c)if(f=b.callback(p),f){r(izt(e,t,f));return}}t&&r.selectPreviousBlock(e[0],t),s.batch(()=>{r({type:"REMOVE_BLOCKS",clientIds:e}),r(tbe())})},tbe=()=>({select:e,dispatch:t})=>{if(e.getBlockCount()>0)return;const{__unstableHasCustomAppender:o}=e.getSettings();o||t.insertDefaultBlock()};function izt(e,t,n){return{type:"DISPLAY_BLOCK_REMOVAL_PROMPT",clientIds:e,selectPrevious:t,message:n}}function azt(){return{type:"CLEAR_BLOCK_REMOVAL_PROMPT"}}function czt(e=!1){return{type:"SET_BLOCK_REMOVAL_RULES",rules:e}}function lzt(e){return{type:"SET_OPENED_BLOCK_SETTINGS_MENU",clientId:e}}function uzt(e,t){return{type:"SET_STYLE_OVERRIDE",id:e,style:t}}function dzt(e){return{type:"DELETE_STYLE_OVERRIDE",id:e}}function pzt(e=null){return{type:"LAST_FOCUS",lastFocus:e}}function fzt(e){return({select:t,dispatch:n,registry:o})=>{const r=Fe(o.select(F)).getTemporarilyEditingFocusModeToRevert();n.__unstableMarkNextChangeAsNotPersistent(),n.updateBlockAttributes(e,{templateLock:"contentOnly"}),n.updateBlockListSettings(e,{...t.getBlockListSettings(e),templateLock:"contentOnly"}),n.updateSettings({focusMode:r}),n.__unstableSetTemporarilyEditingAsBlocks()}}function bzt(){return{type:"START_DRAGGING"}}function hzt(){return{type:"STOP_DRAGGING"}}function mzt(e){return{type:"SET_BLOCK_EXPANDED_IN_LIST_VIEW",clientId:e}}const Mzt=e=>({select:t,dispatch:n})=>{n.selectBlock(e),n.__unstableMarkNextChangeAsNotPersistent(),n.updateBlockAttributes(e,{templateLock:void 0}),n.updateBlockListSettings(e,{...t.getBlockListSettings(e),templateLock:!1});const o=t.getSettings().focusMode;n.updateSettings({focusMode:!0}),n.__unstableSetTemporarilyEditingAsBlocks(e,o)},nbe=Object.freeze(Object.defineProperty({__proto__:null,__experimentalUpdateSettings:Jfe,clearBlockRemovalPrompt:azt,deleteStyleOverride:dzt,ensureDefaultBlock:tbe,expandBlock:mzt,hideBlockInterface:rzt,modifyContentLockBlock:Mzt,privateRemoveBlocks:ebe,setBlockRemovalRules:czt,setLastFocus:pzt,setOpenedBlockSettingsMenu:lzt,setStyleOverride:uzt,showBlockInterface:szt,startDragging:bzt,stopDragging:hzt,stopEditingAsBlocks:fzt},Symbol.toStringTag,{value:"Module"})),gzt=e=>t=>(n={},o)=>{const r=o[e];if(r===void 0)return n;const s=t(n[r],o);return s===n[r]?n:{...n,[r]:s}},zzt=gzt("context")((e=[],t)=>{switch(t.type){case"CREATE_NOTICE":return[...e.filter(({id:n})=>n!==t.notice.id),t.notice];case"REMOVE_NOTICE":return e.filter(({id:n})=>n!==t.id);case"REMOVE_NOTICES":return e.filter(({id:n})=>!t.ids.includes(n));case"REMOVE_ALL_NOTICES":return e.filter(({type:n})=>n!==t.noticeType)}return e}),Q3="global",Ozt="info";let Azt=0;function J3(e=Ozt,t,n={}){const{speak:o=!0,isDismissible:r=!0,context:s=Q3,id:i=`${s}${++Azt}`,actions:c=[],type:l="default",__unstableHTML:u,icon:d=null,explicitDismiss:p=!1,onDismiss:f}=n;return t=String(t),{type:"CREATE_NOTICE",context:s,notice:{id:i,status:e,content:t,spokenMessage:o?t:null,__unstableHTML:u,isDismissible:r,actions:c,type:l,icon:d,explicitDismiss:p,onDismiss:f}}}function yzt(e,t){return J3("success",e,t)}function vzt(e,t){return J3("info",e,t)}function xzt(e,t){return J3("error",e,t)}function _zt(e,t){return J3("warning",e,t)}function wzt(e,t=Q3){return{type:"REMOVE_NOTICE",id:e,context:t}}function kzt(e="default",t=Q3){return{type:"REMOVE_ALL_NOTICES",noticeType:e,context:t}}function qzt(e,t=Q3){return{type:"REMOVE_NOTICES",ids:e,context:t}}const Szt=Object.freeze(Object.defineProperty({__proto__:null,createErrorNotice:xzt,createInfoNotice:vzt,createNotice:J3,createSuccessNotice:yzt,createWarningNotice:_zt,removeAllNotices:kzt,removeNotice:wzt,removeNotices:qzt},Symbol.toStringTag,{value:"Module"})),Czt=[];function Rzt(e,t=Q3){return e[t]||Czt}const Wzt=Object.freeze(Object.defineProperty({__proto__:null,getNotices:Rzt},Symbol.toStringTag,{value:"Module"})),Ze=er("core/notices",{reducer:zzt,actions:Szt,selectors:Wzt});Qs(Ze);const Gp="†";function Nj(e){if(e)return Object.keys(e).find(t=>{const n=e[t];return(typeof n=="string"||n instanceof un)&&n.toString().indexOf(Gp)!==-1})}function dK(e){for(const[t,n]of Object.entries(e.attributes))if(n.source==="rich-text"||n.source==="html")return t}const U2=e=>Array.isArray(e)?e:[e],Tzt=e=>({dispatch:t})=>{t({type:"RESET_BLOCKS",blocks:e}),t(obe(e))},obe=e=>({select:t,dispatch:n})=>{const o=t.getTemplate(),r=t.getTemplateLock(),s=!o||r!=="all"||Ure(e,o),i=t.isValidTemplate();if(s!==i)return n.setTemplateValidity(s),s};function Ezt(e,t,n){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:n}}function Bzt(e){return Re('wp.data.dispatch( "core/block-editor" ).receiveBlocks',{since:"5.9",alternative:"resetBlocks or insertBlocks"}),{type:"RECEIVE_BLOCKS",blocks:e}}function Nzt(e,t,n=!1){return{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:U2(e),attributes:t,uniqueByBlock:n}}function Lzt(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function jzt(e,t=0){return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function Pzt(e){return{type:"HOVER_BLOCK",clientId:e}}const Izt=(e,t=!1)=>({select:n,dispatch:o})=>{const r=n.getPreviousBlockClientId(e);if(r)o.selectBlock(r,-1);else if(t){const s=n.getBlockRootClientId(e);s&&o.selectBlock(s,-1)}},Dzt=e=>({select:t,dispatch:n})=>{const o=t.getNextBlockClientId(e);o&&n.selectBlock(o)};function Fzt(){return{type:"START_MULTI_SELECT"}}function $zt(){return{type:"STOP_MULTI_SELECT"}}const Vzt=(e,t,n=0)=>({select:o,dispatch:r})=>{const s=o.getBlockRootClientId(e),i=o.getBlockRootClientId(t);if(s!==i)return;r({type:"MULTI_SELECT",start:e,end:t,initialPosition:n});const c=o.getSelectedBlockCount();At(le(a0("%s block selected.","%s blocks selected.",c),c),"assertive")};function Hzt(){return{type:"CLEAR_SELECTED_BLOCK"}}function Uzt(e=!0){return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}const rbe=(e,t,n,o=0,r)=>({select:s,dispatch:i,registry:c})=>{e=U2(e),t=U2(t);const l=s.getBlockRootClientId(e[0]);for(let u=0;u{i({type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n,initialPosition:o,meta:r}),i.ensureDefaultBlock()})};function Xzt(e,t){return rbe(e,t)}const sbe=e=>(t,n)=>({select:o,dispatch:r})=>{o.canMoveBlocks(t)&&r({type:e,clientIds:U2(t),rootClientId:n})},Gzt=sbe("MOVE_BLOCKS_DOWN"),Kzt=sbe("MOVE_BLOCKS_UP"),ibe=(e,t="",n="",o)=>({select:r,dispatch:s})=>{r.canMoveBlocks(e)&&(t!==n&&(!r.canRemoveBlocks(e)||!r.canInsertBlocks(e,n))||s({type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:o}))};function Yzt(e,t="",n="",o){return ibe([e],t,n,o)}function Zzt(e,t,n,o,r){return abe([e],t,n,o,0,r)}const abe=(e,t,n,o=!0,r=0,s)=>({select:i,dispatch:c})=>{r!==null&&typeof r=="object"&&(s=r,r=0,Re("meta argument in wp.data.dispatch('core/block-editor')",{since:"5.8",hint:"The meta argument is now the 6th argument of the function"})),e=U2(e);const l=[];for(const u of e)i.canInsertBlockType(u.name,n)&&l.push(u);l.length&&c({type:"INSERT_BLOCKS",blocks:l,index:t,rootClientId:n,time:Date.now(),updateSelection:o,initialPosition:o?r:null,meta:s})};function Qzt(e,t,n={}){const{__unstableWithInserter:o,operation:r,nearestSide:s}=n;return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t,__unstableWithInserter:o,operation:r,nearestSide:s}}const Jzt=()=>({select:e,dispatch:t})=>{e.isBlockInsertionPointVisible()&&t({type:"HIDE_INSERTION_POINT"})};function e3t(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}const t3t=()=>({select:e,dispatch:t})=>{t({type:"SYNCHRONIZE_TEMPLATE"});const n=e.getBlocks(),o=e.getTemplate(),r=Ng(n,o);t.resetBlocks(r)},n3t=e=>({registry:t,select:n,dispatch:o})=>{const r=n.getSelectionStart(),s=n.getSelectionEnd();if(r.clientId===s.clientId)return;if(!r.attributeKey||!s.attributeKey||typeof r.offset>"u"||typeof s.offset>"u")return!1;const i=n.getBlockRootClientId(r.clientId),c=n.getBlockRootClientId(s.clientId);if(i!==c)return;const l=n.getBlockOrder(i),u=l.indexOf(r.clientId),d=l.indexOf(s.clientId);let p,f;u>d?(p=s,f=r):(p=r,f=s);const b=e?f:p,h=n.getBlock(b.clientId),g=Dt(h.name);if(!g.merge)return;const z=p,y=f,x=n.getBlock(z.clientId),v=n.getBlock(y.clientId),M=x.attributes[z.attributeKey],A=v.attributes[y.attributeKey];let _=m0({html:M}),w=m0({html:A});_=Ks(_,z.offset,_.text.length),w=Y1(w,Gp,0,y.offset);const k=pn(x,{[z.attributeKey]:K1({value:_})}),q=pn(v,{[y.attributeKey]:K1({value:w})}),S=e?k:q,C=x.name===v.name?[S]:l1(S,g.name);if(!C||!C.length)return;let T;if(e){const U=C.pop();T=g.merge(U.attributes,q.attributes)}else{const U=C.shift();T=g.merge(k.attributes,U.attributes)}const W=Nj(T),B=T[W],N=m0({html:B}),E=N.text.indexOf(Gp),L=Ks(N,E,E+1),I=K1({value:L});T[W]=I;const P=n.getSelectedBlockClientIds(),H=[...e?C:[],{...h,attributes:{...h.attributes,...T}},...e?[]:C];t.batch(()=>{o.selectionChange(h.clientId,W,E,E),o.replaceBlocks(P,H,0,n.getSelectedBlocksInitialCaretPosition())})},o3t=(e=[])=>({registry:t,select:n,dispatch:o})=>{const r=n.getSelectionStart(),s=n.getSelectionEnd(),i=n.getBlockRootClientId(r.clientId),c=n.getBlockRootClientId(s.clientId);if(i!==c)return;const l=n.getBlockOrder(i),u=l.indexOf(r.clientId),d=l.indexOf(s.clientId);let p,f;u>d?(p=s,f=r):(p=r,f=s);const b=p,h=f,g=n.getBlock(b.clientId),z=n.getBlock(h.clientId),y=Dt(g.name),x=Dt(z.name),v=typeof b.attributeKey=="string"?b.attributeKey:dK(y),M=typeof h.attributeKey=="string"?h.attributeKey:dK(x),A=n.getBlockAttributes(b.clientId);if(A?.metadata?.bindings?.[v]){if(e.length){const{createWarningNotice:Z}=t.dispatch(Ze);Z(m("Blocks can't be inserted into other blocks with bindings"),{type:"snackbar"});return}o.insertAfterBlock(b.clientId);return}if(!v||!M||typeof r.offset>"u"||typeof s.offset>"u")return;if(b.clientId===h.clientId&&v===M&&b.offset===h.offset){if(e.length){if(Yc(g)){o.replaceBlocks([b.clientId],e,e.length-1,-1);return}}else if(!n.getBlockOrder(b.clientId).length){let Z=function(){const oe=jn();return n.canInsertBlockType(oe,i)?me(oe):me(n.getBlockName(b.clientId))};var X=Z;const ne=A[v].length;if(b.offset===0&&ne){o.insertBlocks([Z()],n.getBlockIndex(b.clientId),i,!1);return}if(b.offset===ne){o.insertBlocks([Z()],n.getBlockIndex(b.clientId)+1,i);return}}}const w=g.attributes[v],k=z.attributes[M];let q=m0({html:w}),S=m0({html:k});q=Ks(q,b.offset,q.text.length),S=Ks(S,0,h.offset);let C={...g,innerBlocks:g.clientId===z.clientId?[]:g.innerBlocks,attributes:{...g.attributes,[v]:K1({value:q})}},T={...z,clientId:g.clientId===z.clientId?me(z.name).clientId:z.clientId,attributes:{...z.attributes,[M]:K1({value:S})}};const W=jn();if(g.clientId===z.clientId&&W&&T.name!==W&&n.canInsertBlockType(W,i)){const Z=l1(T,W);Z?.length===1&&(T=Z[0])}if(!e.length){o.replaceBlocks(n.getSelectedBlockClientIds(),[C,T]);return}let B;const N=[],E=[...e],L=E.shift(),I=Dt(C.name),P=I.merge&&L.name===I.name?[L]:l1(L,I.name);if(P?.length){const Z=P.shift();C={...C,attributes:{...C.attributes,...I.merge(C.attributes,Z.attributes)}},N.push(C),B={clientId:C.clientId,attributeKey:v,offset:m0({html:C.attributes[v]}).text.length},E.unshift(...P)}else Kb(C)||N.push(C),N.push(L);const H=E.pop(),U=Dt(T.name);if(E.length&&N.push(...E),H){const Z=U.merge&&U.name===H.name?[H]:l1(H,U.name);if(Z?.length){const ne=Z.pop();N.push({...T,attributes:{...T.attributes,...U.merge(ne.attributes,T.attributes)}}),N.push(...Z),B={clientId:T.clientId,attributeKey:M,offset:m0({html:ne.attributes[M]}).text.length}}else N.push(H),Kb(T)||N.push(T)}else Kb(T)||N.push(T);t.batch(()=>{o.replaceBlocks(n.getSelectedBlockClientIds(),N,N.length-1,0),B&&o.selectionChange(B.clientId,B.attributeKey,B.offset,B.offset)})},r3t=()=>({select:e,dispatch:t})=>{const n=e.getSelectionStart(),o=e.getSelectionEnd();t.selectionChange({start:{clientId:n.clientId},end:{clientId:o.clientId}})},s3t=(e,t)=>({registry:n,select:o,dispatch:r})=>{const s=e,i=t,c=o.getBlock(s),l=Dt(c.name);if(!l)return;const u=o.getBlock(i);if(!l.merge&&Zt(c.name,"__experimentalOnMerge")){const A=l1(u,l.name);if(A?.length!==1){r.selectBlock(c.clientId);return}const[_]=A;if(_.innerBlocks.length<1){r.selectBlock(c.clientId);return}n.batch(()=>{r.insertBlocks(_.innerBlocks,void 0,s),r.removeBlock(i),r.selectBlock(_.innerBlocks[0].clientId);const w=o.getNextBlockClientId(s);if(w&&o.getBlockName(s)===o.getBlockName(w)){const k=o.getBlockAttributes(s),q=o.getBlockAttributes(w);Object.keys(k).every(S=>k[S]===q[S])&&(r.moveBlocksToPosition(o.getBlockOrder(w),w,s),r.removeBlock(w,!1))}});return}if(Yc(c)){r.removeBlock(s,o.isBlockSelected(s));return}if(Yc(u)){r.removeBlock(i,o.isBlockSelected(i));return}if(!l.merge){r.selectBlock(c.clientId);return}const d=Dt(u.name),{clientId:p,attributeKey:f,offset:b}=o.getSelectionStart(),g=(p===s?l:d).attributes[f],z=(p===s||p===i)&&f!==void 0&&b!==void 0&&!!g;g||(typeof f=="number"?window.console.error(`RichText needs an identifier prop that is the block attribute key of the attribute it controls. Its type is expected to be a string, but was ${typeof f}`):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));const y=pn(c),x=pn(u);if(z){const A=p===s?y:x,_=A.attributes[f],w=Y1(m0({html:_}),Gp,b,b);A.attributes[f]=K1({value:w})}const v=c.name===u.name?[x]:l1(x,c.name);if(!v||!v.length)return;const M=l.merge(y.attributes,v[0].attributes);if(z){const A=Nj(M),_=M[A],w=m0({html:_}),k=w.text.indexOf(Gp),q=Ks(w,k,k+1),S=K1({value:q});M[A]=S,r.selectionChange(c.clientId,A,k,k)}r.replaceBlocks([c.clientId,u.clientId],[{...c,attributes:{...c.attributes,...M}},...v.slice(1)],0)},cbe=(e,t=!0)=>ebe(e,t);function i3t(e,t){return cbe([e],t)}function a3t(e,t,n=!1,o=0){return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,initialPosition:n?o:null,time:Date.now()}}function c3t(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function l3t(){return{type:"START_TYPING"}}function u3t(){return{type:"STOP_TYPING"}}function d3t(e=[]){return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function p3t(){return{type:"STOP_DRAGGING_BLOCKS"}}function f3t(){return Re('wp.data.dispatch( "core/block-editor" ).enterFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function b3t(){return Re('wp.data.dispatch( "core/block-editor" ).exitFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function h3t(e,t,n,o){return typeof e=="string"?{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:o}:{type:"SELECTION_CHANGE",...e}}const m3t=(e,t,n)=>({dispatch:o})=>{const r=jn();if(!r)return;const s=me(r,e);return o.insertBlock(s,n,t)};function M3t(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function g3t(e){return Jfe(e,{stripExperimentalSettings:!0})}function z3t(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function O3t(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function A3t(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}const y3t=()=>({dispatch:e})=>{e({type:"MARK_AUTOMATIC_CHANGE"});const{requestIdleCallback:t=n=>setTimeout(n,100)}=window;t(()=>{e({type:"MARK_AUTOMATIC_CHANGE_FINAL"})})},v3t=(e=!0)=>({dispatch:t})=>{t.__unstableSetEditorMode(e?"navigation":"edit")},x3t=e=>({dispatch:t,select:n})=>{if(e==="zoom-out"){const o=n.getBlockSelectionStart(),r=n.getSectionRootClientId();if(o){let s;if(r){const i=n.getBlockOrder(r);i?.includes(o)?s=o:s=n.getBlockParents(o).find(c=>i.includes(c))}else s=n.getBlockHierarchyRootClientId(o);s?t.selectBlock(s):t.clearSelectedBlock()}}t({type:"SET_EDITOR_MODE",mode:e}),e==="navigation"?At(m("You are currently in navigation mode. Navigate blocks using the Tab key and Arrow keys. Use Left and Right Arrow keys to move between nesting levels. To exit navigation mode and edit the selected block, press Enter.")):e==="edit"?At(m("You are currently in edit mode. To return to the navigation mode, press Escape.")):e==="zoom-out"&&At(m("You are currently in zoom-out mode."))},_3t=(e=null)=>({dispatch:t})=>{t({type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e}),e&&At(m("Use the Tab key and Arrow keys to choose new block location. Use Left and Right Arrow keys to move between nesting levels. Once location is selected press Enter or Space to move the block."))},w3t=(e,t=!0)=>({select:n,dispatch:o})=>{if(!e||!e.length)return;const r=n.getBlocksByClientId(e);if(r.some(d=>!d)||r.map(d=>d.name).some(d=>!st(d,"multiple",!0)))return;const i=n.getBlockRootClientId(e[0]),c=U2(e),l=n.getBlockIndex(c[c.length-1]),u=r.map(d=>lre(d));return o.insertBlocks(u,l+1,i,t),u.length>1&&t&&o.multiSelect(u[0].clientId,u[u.length-1].clientId),u.map(d=>d.clientId)},k3t=e=>({select:t,dispatch:n})=>{if(!e)return;const o=t.getBlockRootClientId(e);if(t.getTemplateLock(o))return;const s=t.getBlockIndex(e),i=o?t.getDirectInsertBlock(o):null;if(!i)return n.insertDefaultBlock({},o,s);const c={};if(i.attributesToCopy){const u=t.getBlockAttributes(e);i.attributesToCopy.forEach(d=>{u[d]&&(c[d]=u[d])})}const l=me(i.name,{...i.attributes,...c});return n.insertBlock(l,s,o)},q3t=e=>({select:t,dispatch:n})=>{if(!e)return;const o=t.getBlockRootClientId(e);if(t.getTemplateLock(o))return;const s=t.getBlockIndex(e),i=o?t.getDirectInsertBlock(o):null;if(!i)return n.insertDefaultBlock({},o,s+1);const c={};if(i.attributesToCopy){const u=t.getBlockAttributes(e);i.attributesToCopy.forEach(d=>{u[d]&&(c[d]=u[d])})}const l=me(i.name,{...i.attributes,...c});return n.insertBlock(l,s+1,o)};function UW(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}const S3t=e=>async({dispatch:t})=>{t(UW(e,!0)),await new Promise(n=>setTimeout(n,150)),t(UW(e,!1))};function C3t(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}function R3t(e){return{type:"SET_BLOCK_VISIBILITY",updates:e}}function W3t(e,t){return{type:"SET_TEMPORARILY_EDITING_AS_BLOCKS",temporarilyEditingAsBlocks:e,focusModeToRevert:t}}const T3t=e=>({select:t,dispatch:n})=>{if(!e||typeof e!="object"){console.error("Category should be an `InserterMediaCategory` object.");return}if(!e.name){console.error("Category should have a `name` that should be unique among all media categories.");return}if(!e.labels?.name){console.error("Category should have a `labels.name`.");return}if(!["image","audio","video"].includes(e.mediaType)){console.error("Category should have `mediaType` property that is one of `image|audio|video`.");return}if(!e.fetch||typeof e.fetch!="function"){console.error("Category should have a `fetch` function defined with the following signature `(InserterMediaRequest) => Promise`.");return}const o=t.getRegisteredInserterMediaCategories();if(o.some(({name:r})=>r===e.name)){console.error(`A category is already registered with the same name: "${e.name}".`);return}if(o.some(({labels:{name:r}={}})=>r===e.labels?.name)){console.error(`A category is already registered with the same labels.name: "${e.labels.name}".`);return}n({type:"REGISTER_INSERTER_MEDIA_CATEGORY",category:{...e,isExternalResource:!0}})};function E3t(e="",t){return{type:"SET_BLOCK_EDITING_MODE",clientId:e,mode:t}}function B3t(e=""){return{type:"UNSET_BLOCK_EDITING_MODE",clientId:e}}const N3t=Object.freeze(Object.defineProperty({__proto__:null,__unstableDeleteSelection:n3t,__unstableExpandSelection:r3t,__unstableMarkAutomaticChange:y3t,__unstableMarkLastChangeAsPersistent:O3t,__unstableMarkNextChangeAsNotPersistent:A3t,__unstableSaveReusableBlock:z3t,__unstableSetEditorMode:x3t,__unstableSetTemporarilyEditingAsBlocks:W3t,__unstableSplitSelection:o3t,clearSelectedBlock:Hzt,duplicateBlocks:w3t,enterFormattedText:f3t,exitFormattedText:b3t,flashBlock:S3t,hideInsertionPoint:Jzt,hoverBlock:Pzt,insertAfterBlock:q3t,insertBeforeBlock:k3t,insertBlock:Zzt,insertBlocks:abe,insertDefaultBlock:m3t,mergeBlocks:s3t,moveBlockToPosition:Yzt,moveBlocksDown:Gzt,moveBlocksToPosition:ibe,moveBlocksUp:Kzt,multiSelect:Vzt,receiveBlocks:Bzt,registerInserterMediaCategory:T3t,removeBlock:i3t,removeBlocks:cbe,replaceBlock:Xzt,replaceBlocks:rbe,replaceInnerBlocks:a3t,resetBlocks:Tzt,resetSelection:Ezt,selectBlock:jzt,selectNextBlock:Dzt,selectPreviousBlock:Izt,selectionChange:h3t,setBlockEditingMode:E3t,setBlockMovingClientId:_3t,setBlockVisibility:R3t,setHasControlledInnerBlocks:C3t,setNavigationMode:v3t,setTemplateValidity:e3t,showInsertionPoint:Qzt,startDraggingBlocks:d3t,startMultiSelect:Fzt,startTyping:l3t,stopDraggingBlocks:p3t,stopMultiSelect:$zt,stopTyping:u3t,synchronizeTemplate:t3t,toggleBlockHighlight:UW,toggleBlockMode:c3t,toggleSelection:Uzt,unsetBlockEditingMode:B3t,updateBlock:Lzt,updateBlockAttributes:Nzt,updateBlockListSettings:M3t,updateSettings:g3t,validateBlocksToTemplate:obe},Symbol.toStringTag,{value:"Module"})),Nw={reducer:Jmt,selectors:tzt,actions:N3t},F=er(v1,{...Nw,persist:["preferences"]}),lbe=gSe(v1,{...Nw,persist:["preferences"]});Fe(lbe).registerPrivateActions(nbe);Fe(lbe).registerPrivateSelectors(Bfe);Fe(F).registerPrivateActions(nbe);Fe(F).registerPrivateSelectors(Bfe);function Gn({className:e,actions:t,children:n,secondaryActions:o}){return a.jsx("div",{style:{display:"contents",all:"initial"},children:a.jsx("div",{className:$(e,"block-editor-warning"),children:a.jsxs("div",{className:"block-editor-warning__contents",children:[a.jsx("p",{className:"block-editor-warning__message",children:n}),(O.Children.count(t)>0||o)&&a.jsxs("div",{className:"block-editor-warning__actions",children:[O.Children.count(t)>0&&O.Children.map(t,(r,s)=>a.jsx("span",{className:"block-editor-warning__action",children:r},s)),o&&a.jsx(E1,{className:"block-editor-warning__secondary",icon:Ol,label:m("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0,children:()=>a.jsx(Yt,{children:o.map((r,s)=>a.jsx(tt,{onClick:r.onClick,children:r.title},s))})})]})]})})})}function L3t({originalBlockClientId:e,name:t,onReplace:n}){const{selectBlock:o}=ae(F),r=Dt(t);return a.jsxs(Gn,{actions:[a.jsx(fe,{__next40pxDefaultSize:!1,variant:"secondary",onClick:()=>o(e),children:m("Find original")},"find-original"),a.jsx(fe,{__next40pxDefaultSize:!1,variant:"secondary",onClick:()=>n([]),children:m("Remove")},"remove")],children:[a.jsxs("strong",{children:[r?.title,": "]}),m("This block can only be used once.")]})}const lz=O.createContext({});function j3t({mayDisplayControls:e,mayDisplayParentControls:t,blockEditingMode:n,isPreviewMode:o,...r}){const{name:s,isSelected:i,clientId:c,attributes:l={},__unstableLayoutClassNames:u}=r,{layout:d=null,metadata:p={}}=l,{bindings:f}=p,b=st(s,"layout",!1)||st(s,"__experimentalLayout",!1),{originalBlockClientId:h}=O.useContext(lz);return a.jsxs(Qre,{value:O.useMemo(()=>({name:s,isSelected:i,clientId:c,layout:b?d:null,__unstableLayoutClassNames:u,[n3]:e,[RN]:t,[Gre]:n,[WN]:f,[Kre]:o}),[s,i,c,b,d,u,e,t,n,f,o]),children:[a.jsx(smt,{...r}),h&&a.jsx(L3t,{originalBlockClientId:h,name:s,onReplace:r.onReplace})]})}function O0(...e){const{clientId:t=null}=eo();return D(n=>Fe(n(F)).getBlockSettings(t,...e),[t,...e])}const{kebabCase:P3t}=Fe(L0),pK=([e,...t])=>e.toUpperCase()+t.join(""),I3t=()=>Sn(e=>t=>{const[n,o,r]=O0("color.palette.custom","color.palette.theme","color.palette.default"),s=O.useMemo(()=>[...n||[],...o||[],...r||[]],[n,o,r]);return a.jsx(e,{...t,colors:s})},"withEditorColorPalette");function D3t(e,t){const n=e.reduce((o,r)=>({...o,...typeof r=="string"?{[r]:P3t(r)}:r}),{});return v0([t,o=>class extends O.Component{constructor(r){super(r),this.setters=this.createSetters(),this.colorUtils={getMostReadableColor:this.getMostReadableColor.bind(this)},this.state={}}getMostReadableColor(r){const{colors:s}=this.props;return nmt(s,r)}createSetters(){return Object.keys(n).reduce((r,s)=>{const i=pK(s),c=`custom${i}`;return r[`set${i}`]=this.createSetColor(s,c),r},{})}createSetColor(r,s){return i=>{const c=yfe(this.props.colors,i);this.props.setAttributes({[r]:c&&c.slug?c.slug:void 0,[s]:c&&c.slug?void 0:i})}}static getDerivedStateFromProps({attributes:r,colors:s},i){return Object.entries(n).reduce((c,[l,u])=>{const d=Up(s,r[l],r[`custom${pK(l)}`]),p=i[l];return p?.color===d.color&&p?c[l]=p:c[l]={...d,class:lt(u,d.slug)},c},{})}render(){return a.jsx(o,{...this.props,colors:void 0,...this.state,...this.setters,colorUtils:this.colorUtils})}}])}function eO(...e){const t=I3t();return Sn(D3t(e,t),"withColors")}function lr(e){if(e)return`has-${e}-gradient-background`}function ube(e,t){const n=e?.find(o=>o.slug===t);return n&&n.gradient}function F3t(e,t){return e?.find(o=>o.gradient===t)}function $3t(e,t){const n=F3t(e,t);return n&&n.slug}function Lw({gradientAttribute:e="gradient",customGradientAttribute:t="customGradient"}={}){const{clientId:n}=eo(),[o,r,s]=O0("color.gradients.custom","color.gradients.theme","color.gradients.default"),i=O.useMemo(()=>[...o||[],...r||[],...s||[]],[o,r,s]),{gradient:c,customGradient:l}=D(b=>{const{getBlockAttributes:h}=b(F),g=h(n)||{};return{customGradient:g[t],gradient:g[e]}},[n,e,t]),{updateBlockAttributes:u}=ae(F),d=O.useCallback(b=>{const h=$3t(i,b);if(h){u(n,{[e]:h,[t]:void 0});return}u(n,{[e]:void 0,[t]:b})},[i,n,u]),p=lr(c);let f;return c?f=ube(i,c):f=l,{gradientClass:p,gradientValue:f,setGradient:d}}const{kebabCase:V3t}=Fe(L0),H3t=(e,t,n)=>{if(t){const o=e?.find(({slug:r})=>r===t);if(o)return o}return{size:n}};function l5(e){if(e)return`has-${V3t(e)}-font-size`}const U3t="1600px",X3t="320px",G3t=1,K3t=.25,Y3t=.75,Z3t="14px";function Q3t({minimumFontSize:e,maximumFontSize:t,fontSize:n,minimumViewportWidth:o=X3t,maximumViewportWidth:r=U3t,scaleFactor:s=G3t,minimumFontSizeLimit:i}){if(i=hc(i)?i:Z3t,n){const v=hc(n);if(!v?.unit)return null;const M=hc(i,{coerceTo:v.unit});if(M?.value&&!e&&!t&&v?.value<=M?.value)return null;if(t||(t=`${v.value}${v.unit}`),!e){const A=v.unit==="px"?v.value:v.value*16,_=Math.min(Math.max(1-.075*Math.log2(A),K3t),Y3t),w=pM(v.value*_,3);M?.value&&wt(e===f?void 0:f)}const l=n.find(f=>f.align===e);function u(){return l?l.icon:ft()?w3:_3}const d=i?c0:_l,p=i?{isCollapsed:s}:{toggleProps:{description:r},popoverProps:eOt};return a.jsx(d,{icon:u(),label:o,controls:n.map(f=>{const{align:b}=f;return{...f,isActive:e===b,role:s?"menuitemradio":void 0,onClick:c(b)}}),...p})}const gn=e=>a.jsx(dbe,{...e,isToolbar:!1}),uz=e=>a.jsx(dbe,{...e,isToolbar:!0}),tOt=e=>e.name||"",nOt=e=>e.title,oOt=e=>e.description||"",rOt=e=>e.keywords||[],sOt=e=>e.category,iOt=()=>null,aOt=[/([\p{Ll}\p{Lo}\p{N}])([\p{Lu}\p{Lt}])/gu,/([\p{Lu}\p{Lt}])([\p{Lu}\p{Lt}][\p{Ll}\p{Lo}])/gu],cOt=/(\p{C}|\p{P}|\p{S})+/giu,dS=new Map,pS=new Map;function Lj(e=""){if(dS.has(e))return dS.get(e);const t=Mx(e,{splitRegexp:aOt,stripRegexp:cOt}).split(" ").filter(Boolean);return dS.set(e,t),t}function u5(e=""){if(pS.has(e))return pS.get(e);let t=Xs(e);return t=t.replace(/^\//,""),t=t.toLowerCase(),pS.set(e,t),t}const jw=(e="")=>Lj(u5(e)),lOt=(e,t)=>e.filter(n=>!jw(t).some(o=>o.includes(n))),pbe=(e,t,n,o)=>jw(o).length===0?e:jj(e,o,{getCategory:i=>t.find(({slug:c})=>c===i.category)?.title,getCollection:i=>n[i.name.split("/")[0]]?.title}),jj=(e=[],t="",n={})=>{if(jw(t).length===0)return e;const r=e.map(s=>[s,uOt(s,t,n)]).filter(([,s])=>s>0);return r.sort(([,s],[,i])=>i-s),r.map(([s])=>s)};function uOt(e,t,n={}){const{getName:o=tOt,getTitle:r=nOt,getDescription:s=oOt,getKeywords:i=rOt,getCategory:c=sOt,getCollection:l=iOt}=n,u=o(e),d=r(e),p=s(e),f=i(e),b=c(e),h=l(e),g=u5(t),z=u5(d);let y=0;if(g===z)y+=30;else if(z.startsWith(g))y+=20;else{const x=[u,d,p,...f,b,h].join(" "),v=Lj(g);lOt(v,x).length===0&&(y+=10)}if(y!==0&&u.startsWith("core/")){const x=u!==e.id;y+=x?1:2}return y}const Pw=(e,t,n)=>{const o=O.useMemo(()=>({[wfe]:!n}),[n]),[r]=D(l=>[l(F).getInserterItems(e,o)],[e,o]),[s,i]=D(l=>{const{getCategories:u,getCollections:d}=l($e);return[u(),d()]},[]),c=O.useCallback(({name:l,initialAttributes:u,innerBlocks:d,syncStatus:p,content:f,rootClientId:b},h)=>{const g=p==="unsynced"?Yn(f,{__unstableSkipMigrationLogs:!0}):me(l,u,ju(d));t(g,void 0,h,b)},[t]);return[r,s,i,c]};function dOt({icon:e,showColors:t=!1,className:n,context:o}){e?.src==="block-default"&&(e={src:U_});const r=a.jsx(xn,{icon:e&&e.src?e.src:e,context:o}),s=t?{backgroundColor:e&&e.background,color:e&&e.foreground}:{};return a.jsx("span",{style:s,className:$("block-editor-block-icon",n,{"has-colors":t}),children:r})}const b0=O.memo(dOt),fbe=(e,t)=>(t&&e.sort(({id:n},{id:o})=>{let r=t.indexOf(n),s=t.indexOf(o);return r<0&&(r=t.length),s<0&&(s=t.length),r-s}),e),pOt=()=>{},fOt=9;function bOt(){return{name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems(e){const{rootClientId:t,selectedBlockName:n,prioritizedBlocks:o}=D(u=>{const{getSelectedBlockClientId:d,getBlockName:p,getBlockListSettings:f,getBlockRootClientId:b}=u(F),h=d(),g=b(h);return{selectedBlockName:h?p(h):null,rootClientId:g,prioritizedBlocks:f(g)?.prioritizedInserterBlocks}},[]),[r,s,i]=Pw(t,pOt,!0),c=O.useMemo(()=>(e.trim()?pbe(r,s,i,e):fbe(H3(r,"frecency","desc"),o)).filter(d=>d.name!==n).slice(0,fOt),[e,n,r,s,i,o]);return[O.useMemo(()=>c.map(u=>{const{title:d,icon:p,isDisabled:f}=u;return{key:`block-${u.id}`,value:u,label:a.jsxs(a.Fragment,{children:[a.jsx(b0,{icon:p,showColors:!0},"icon"),d]}),isDisabled:f}}),[c])]},allowContext(e,t){return!(/\S/.test(e)||/\S/.test(t))},getOptionCompletion(e){const{name:t,initialAttributes:n,innerBlocks:o,syncStatus:r,content:s}=e;return{action:"replace",value:r==="unsynced"?Yn(s,{__unstableSkipMigrationLogs:!0}):me(t,n,ju(o))}}}}const hOt=bOt(),mOt=10;function MOt(){return{name:"links",className:"block-editor-autocompleters__link",triggerPrefix:"[[",options:async e=>{let t=await ct({path:wt("/wp/v2/search",{per_page:mOt,search:e,type:"post",order_by:"menu_order"})});return t=t.filter(n=>n.title!==""),t},getOptionKeywords(e){return[...e.title.split(/\s+/)]},getOptionLabel(e){return a.jsxs(a.Fragment,{children:[a.jsx(t0,{icon:e.subtype==="page"?Ja:hle},"icon"),e.title]})},getOptionCompletion(e){return a.jsx("a",{href:e.url,children:e.title})}}}const gOt=MOt(),zOt=[];function OOt({completers:e=zOt}){const{name:t}=eo();return O.useMemo(()=>{let n=[...e,gOt];return(t===jn()||Zt(t,"__experimentalSlashInserter",!1))&&(n=[...n,hOt]),E0e("editor.Autocomplete.completers")&&(n===e&&(n=n.map(o=>({...o}))),n=_n("editor.Autocomplete.completers",n,t)),n},[e,t])}function AOt(e){return btt({...e,completers:OOt(e)})}const Ju={default:{name:"default",slug:"flow",className:"is-layout-flow",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}}],spacingStyles:[{selector:" > :first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},constrained:{name:"constrained",slug:"constrained",className:"is-layout-constrained",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > :where(:not(.alignleft):not(.alignright):not(.alignfull))",rules:{"max-width":"var(--wp--style--global--content-size)","margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > .alignwide",rules:{"max-width":"var(--wp--style--global--wide-size)"}}],spacingStyles:[{selector:" > :first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},flex:{name:"flex",slug:"flex",className:"is-layout-flex",displayMode:"flex",baseStyles:[{selector:"",rules:{"flex-wrap":"wrap","align-items":"center"}},{selector:" > :is(*, div)",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]},grid:{name:"grid",slug:"grid",className:"is-layout-grid",displayMode:"grid",baseStyles:[{selector:" > :is(*, div)",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]}};function pa(e,t=""){return e.split(",").map(n=>`${n}${t?` ${t}`:""}`).join(",")}function Iw(e,t=Ju,n,o){let r="";return t?.[n]?.spacingStyles?.length&&o&&t[n].spacingStyles.forEach(s=>{r+=`${pa(e,s.selector.trim())} { `,r+=Object.entries(s.rules).map(([i,c])=>`${i}: ${c||o}`).join("; "),r+="; }"}),r}function bbe(e){const{contentSize:t,wideSize:n,type:o="default"}=e,r={},s=/^(?!0)\d+(px|em|rem|vw|vh|%|svw|lvw|dvw|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax)?$/i;return s.test(t)&&o==="constrained"&&(r.none=le(m("Max %s wide"),t)),s.test(n)&&(r.wide=le(m("Max %s wide"),n)),r}const hbe=8,X2=["top","right","bottom","left"],yOt={top:void 0,right:void 0,bottom:void 0,left:void 0},Xd={custom:_X,axial:_X,horizontal:nQe,vertical:iQe,top:sQe,right:rQe,bottom:tQe,left:oQe},za={default:m("Spacing control"),top:m("Top"),bottom:m("Bottom"),left:m("Left"),right:m("Right"),mixed:m("Mixed"),vertical:m("Vertical"),horizontal:m("Horizontal"),axial:m("Horizontal & vertical"),custom:m("Custom")},mp={axial:"axial",top:"top",right:"right",bottom:"bottom",left:"left",custom:"custom"};function sp(e){return e?.includes?e==="0"||e.includes("var:preset|spacing|"):!1}function fM(e,t){if(!sp(e))return e;const n=mbe(e);return t.find(r=>String(r.slug)===n)?.size}function Dw(e,t){if(!e||sp(e)||e==="0")return e;const n=t.find(o=>String(o.size)===String(e));return n?.slug?`var:preset|spacing|${n.slug}`:e}function G2(e){if(!e)return;const t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--${t[1]})`:e}function mbe(e){if(!e)return;if(e==="0"||e==="default")return e;const t=e.match(/var:preset\|spacing\|(.+)/);return t?t[1]:void 0}function vOt(e,t){if(e===void 0)return 0;const n=parseFloat(e,10)===0?"0":mbe(e),o=t.findIndex(r=>String(r.slug)===n);return o!==-1?o:NaN}function d5(e,t){if(!e||!e.length)return!1;const n=e.includes("horizontal")||e.includes("left")&&e.includes("right"),o=e.includes("vertical")||e.includes("top")&&e.includes("bottom");return t==="horizontal"?n:t==="vertical"?o:n||o}function xOt(e){if(!e||!e.length)return{};const t={},n=d5(e,"horizontal"),o=d5(e,"vertical");n&&o?t.axial={label:za.axial,icon:Xd.axial}:n?t.axial={label:za.horizontal,icon:Xd.horizontal}:o&&(t.axial={label:za.vertical,icon:Xd.vertical});let r=0;return X2.forEach(s=>{e.includes(s)&&(r+=1,t[s]={label:za[s],icon:Xd[s]})}),r>1&&(t.custom={label:za.custom,icon:Xd.custom}),t}function _Ot(e=[]){const t={top:0,right:0,bottom:0,left:0};return e.forEach(n=>t[n]+=1),(t.top+t.bottom)%2===0&&(t.left+t.right)%2===0}function wOt(e={},t){const{top:n,right:o,bottom:r,left:s}=e,i=[n,o,r,s].filter(Boolean),c=n===r&&s===o&&(!!n||!!s),l=!i.length&&_Ot(t);if(d5(t)&&(c||l))return mp.axial;if(i.length===1){let u;return Object.entries(e).some(([d,p])=>(u=d,p!==void 0)),u}return t?.length===1&&!i.length?t[0]:mp.custom}function kOt(e){if(!e)return null;const t=typeof e=="string";return{top:t?e:e?.top,left:t?e:e?.left}}function _r(e,t="0"){const n=kOt(e);if(!n)return null;const o=G2(n?.top)||t,r=G2(n?.left)||t;return o===r?o:`${o} ${r}`}const qOt={left:"flex-start",right:"flex-end",center:"center","space-between":"space-between"},fK={left:"flex-start",right:"flex-end",center:"center",stretch:"stretch"},XW={top:"flex-start",center:"center",bottom:"flex-end",stretch:"stretch","space-between":"space-between"},SOt=["wrap","nowrap"],COt={name:"flex",label:m("Flex"),inspectorControls:function({layout:t={},onChange:n,layoutBlockSupport:o={}}){const{allowOrientation:r=!0}=o;return a.jsxs(a.Fragment,{children:[a.jsxs(Q0,{children:[a.jsx(Ht,{children:a.jsx(bK,{layout:t,onChange:n})}),a.jsx(Ht,{children:r&&a.jsx(EOt,{layout:t,onChange:n})})]}),a.jsx(TOt,{layout:t,onChange:n})]})},toolBarControls:function({layout:t={},onChange:n,layoutBlockSupport:o}){if(o?.allowSwitching)return null;const{allowVerticalAlignment:r=!0}=o;return a.jsxs(Ie,{group:"block",__experimentalShareWithChildBlocks:!0,children:[a.jsx(bK,{layout:t,onChange:n,isToolbar:!0}),r&&a.jsx(ROt,{layout:t,onChange:n,isToolbar:!0})]})},getLayoutStyle:function({selector:t,layout:n,style:o,blockName:r,hasBlockGapSupport:s,layoutDefinitions:i=Ju}){const{orientation:c="horizontal"}=n,l=o?.spacing?.blockGap&&!Z1(r,"spacing","blockGap")?_r(o?.spacing?.blockGap,"0.5em"):void 0,u=qOt[n.justifyContent],d=SOt.includes(n.flexWrap)?n.flexWrap:"wrap",p=XW[n.verticalAlignment],f=fK[n.justifyContent]||fK.left;let b="";const h=[];return d&&d!=="wrap"&&h.push(`flex-wrap: ${d}`),c==="horizontal"?(p&&h.push(`align-items: ${p}`),u&&h.push(`justify-content: ${u}`)):(p&&h.push(`justify-content: ${p}`),h.push("flex-direction: column"),h.push(`align-items: ${f}`)),h.length&&(b=`${pa(t)} { ${h.join("; ")}; }`),s&&l&&(b+=Iw(t,i,"flex",l)),b},getOrientation(e){const{orientation:t="horizontal"}=e;return t},getAlignments(){return[]}};function ROt({layout:e,onChange:t,isToolbar:n=!1}){const{orientation:o="horizontal"}=e,r=o==="horizontal"?XW.center:XW.top,{verticalAlignment:s=r}=e,i=l=>{t({...e,verticalAlignment:l})};if(n)return a.jsx(_me,{onChange:i,value:s,controls:o==="horizontal"?["top","center","bottom","stretch"]:["top","center","bottom","space-between"]});const c=[{value:"flex-start",label:m("Align items top")},{value:"center",label:m("Align items center")},{value:"flex-end",label:m("Align items bottom")}];return a.jsxs("fieldset",{className:"block-editor-hooks__flex-layout-vertical-alignment-control",children:[a.jsx("legend",{children:m("Vertical alignment")}),a.jsx("div",{children:c.map((l,u,d)=>a.jsx(fe,{__next40pxDefaultSize:!1,label:d,icon:u,isPressed:s===l,onClick:()=>i(l)},l))})]})}const WOt={placement:"bottom-start"};function bK({layout:e,onChange:t,isToolbar:n=!1}){const{justifyContent:o="left",orientation:r="horizontal"}=e,s=l=>{t({...e,justifyContent:l})},i=["left","center","right"];if(r==="horizontal"?i.push("space-between"):i.push("stretch"),n)return a.jsx(Gme,{allowedControls:i,value:o,onChange:s,popoverProps:WOt});const c=[{value:"left",icon:Y_,label:m("Justify items left")},{value:"center",icon:Z_,label:m("Justify items center")},{value:"right",icon:Q_,label:m("Justify items right")}];return r==="horizontal"?c.push({value:"space-between",icon:h7,label:m("Space between items")}):c.push({value:"stretch",icon:m7,label:m("Stretch items")}),a.jsx(wn,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:m("Justification"),value:o,onChange:s,className:"block-editor-hooks__flex-layout-justification-controls",children:c.map(({value:l,icon:u,label:d})=>a.jsx(Bi,{value:l,icon:u,label:d},l))})}function TOt({layout:e,onChange:t}){const{flexWrap:n="wrap"}=e;return a.jsx(Be,{__nextHasNoMarginBottom:!0,label:m("Allow to wrap to multiple lines"),onChange:o=>{t({...e,flexWrap:o?"wrap":"nowrap"})},checked:n==="wrap"})}function EOt({layout:e,onChange:t}){const{orientation:n="horizontal",verticalAlignment:o,justifyContent:r}=e;return a.jsxs(wn,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:"block-editor-hooks__flex-layout-orientation-controls",label:m("Orientation"),value:n,onChange:s=>{let i=o,c=r;return s==="horizontal"?(o==="space-between"&&(i="center"),r==="stretch"&&(c="left")):(o==="stretch"&&(i="top"),r==="space-between"&&(c="left")),t({...e,orientation:s,verticalAlignment:i,justifyContent:c})},children:[a.jsx(Bi,{icon:cW,value:"horizontal",label:m("Horizontal")}),a.jsx(Bi,{icon:gYe,value:"vertical",label:m("Vertical")})]})}const BOt={name:"default",label:m("Flow"),inspectorControls:function(){return null},toolBarControls:function(){return null},getLayoutStyle:function({selector:t,style:n,blockName:o,hasBlockGapSupport:r,layoutDefinitions:s=Ju}){const i=_r(n?.spacing?.blockGap);let c="";Z1(o,"spacing","blockGap")||(i?.top?c=_r(i?.top):typeof i=="string"&&(c=_r(i)));let l="";return r&&c&&(l+=Iw(t,s,"default",c)),l},getOrientation(){return"vertical"},getAlignments(e,t){const n=bbe(e);if(e.alignments!==void 0)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map(r=>({name:r,info:n[r]}));const o=[{name:"left"},{name:"center"},{name:"right"}];if(!t){const{contentSize:r,wideSize:s}=e;r&&o.unshift({name:"full"}),s&&o.unshift({name:"wide",info:n.wide})}return o.unshift({name:"none",info:n.none}),o}},hK="var:",NOt="|",LOt="--",GW=(e,t)=>{let n=e;return t.forEach(o=>{n=n?.[o]}),n};function zn(e,t,n,o){const r=GW(e,n);return r?[{selector:t?.selector,key:o,value:dz(r)}]:[]}function Pj(e,t,n,o,r=["top","right","bottom","left"]){const s=GW(e,n);if(!s)return[];const i=[];if(typeof s=="string")i.push({selector:t?.selector,key:o.default,value:s});else{const c=r.reduce((l,u)=>{const d=dz(GW(s,[u]));return d&&l.push({selector:t?.selector,key:o?.individual.replace("%s",Mbe(u)),value:d}),l},[]);i.push(...c)}return i}function dz(e){return typeof e=="string"&&e.startsWith(hK)?`var(--wp--${e.slice(hK.length).split(NOt).map(n=>Us(n,{splitRegexp:[/([a-z0-9])([A-Z])/g,/([0-9])([a-z])/g,/([A-Za-z])([0-9])/g,/([A-Z])([A-Z][a-z])/g]})).join(LOt)})`:e}function Mbe(e){const[t,...n]=e;return t.toUpperCase()+n.join("")}function jOt(e){const[t,...n]=e;return t.toLowerCase()+n.map(Mbe).join("")}function POt(e){try{return decodeURI(e)}catch{return e}}function Fw(e){return(t,n)=>zn(t,n,e,jOt(e))}function $w(e){return(t,n)=>["color","style","width"].flatMap(o=>Fw(["border",e,o])(t,n))}const IOt={name:"color",generate:Fw(["border","color"])},DOt={name:"radius",generate:(e,t)=>Pj(e,t,["border","radius"],{default:"borderRadius",individual:"border%sRadius"},["topLeft","topRight","bottomLeft","bottomRight"])},FOt={name:"style",generate:Fw(["border","style"])},$Ot={name:"width",generate:Fw(["border","width"])},VOt={name:"borderTop",generate:$w("top")},HOt={name:"borderRight",generate:$w("right")},UOt={name:"borderBottom",generate:$w("bottom")},XOt={name:"borderLeft",generate:$w("left")},GOt=[IOt,FOt,$Ot,DOt,VOt,HOt,UOt,XOt],KOt={name:"background",generate:(e,t)=>zn(e,t,["color","background"],"backgroundColor")},YOt={name:"gradient",generate:(e,t)=>zn(e,t,["color","gradient"],"background")},ZOt={name:"text",generate:(e,t)=>zn(e,t,["color","text"],"color")},QOt=[ZOt,YOt,KOt],JOt={name:"minHeight",generate:(e,t)=>zn(e,t,["dimensions","minHeight"],"minHeight")},eAt={name:"aspectRatio",generate:(e,t)=>zn(e,t,["dimensions","aspectRatio"],"aspectRatio")},tAt=[JOt,eAt],nAt={name:"backgroundImage",generate:(e,t)=>{const n=e?.background?.backgroundImage;return typeof n=="object"&&n?.url?[{selector:t.selector,key:"backgroundImage",value:`url( '${encodeURI(POt(n.url))}' )`}]:zn(e,t,["background","backgroundImage"],"backgroundImage")}},oAt={name:"backgroundPosition",generate:(e,t)=>zn(e,t,["background","backgroundPosition"],"backgroundPosition")},rAt={name:"backgroundRepeat",generate:(e,t)=>zn(e,t,["background","backgroundRepeat"],"backgroundRepeat")},sAt={name:"backgroundSize",generate:(e,t)=>zn(e,t,["background","backgroundSize"],"backgroundSize")},iAt={name:"backgroundAttachment",generate:(e,t)=>zn(e,t,["background","backgroundAttachment"],"backgroundAttachment")},aAt=[nAt,oAt,rAt,sAt,iAt],cAt={name:"shadow",generate:(e,t)=>zn(e,t,["shadow"],"boxShadow")},lAt=[cAt],uAt={name:"color",generate:(e,t,n=["outline","color"],o="outlineColor")=>zn(e,t,n,o)},dAt={name:"offset",generate:(e,t,n=["outline","offset"],o="outlineOffset")=>zn(e,t,n,o)},pAt={name:"style",generate:(e,t,n=["outline","style"],o="outlineStyle")=>zn(e,t,n,o)},fAt={name:"width",generate:(e,t,n=["outline","width"],o="outlineWidth")=>zn(e,t,n,o)},bAt=[uAt,pAt,dAt,fAt],hAt={name:"padding",generate:(e,t)=>Pj(e,t,["spacing","padding"],{default:"padding",individual:"padding%s"})},mAt={name:"margin",generate:(e,t)=>Pj(e,t,["spacing","margin"],{default:"margin",individual:"margin%s"})},MAt=[mAt,hAt],gAt={name:"fontSize",generate:(e,t)=>zn(e,t,["typography","fontSize"],"fontSize")},zAt={name:"fontStyle",generate:(e,t)=>zn(e,t,["typography","fontStyle"],"fontStyle")},OAt={name:"fontWeight",generate:(e,t)=>zn(e,t,["typography","fontWeight"],"fontWeight")},AAt={name:"fontFamily",generate:(e,t)=>zn(e,t,["typography","fontFamily"],"fontFamily")},yAt={name:"letterSpacing",generate:(e,t)=>zn(e,t,["typography","letterSpacing"],"letterSpacing")},vAt={name:"lineHeight",generate:(e,t)=>zn(e,t,["typography","lineHeight"],"lineHeight")},xAt={name:"textColumns",generate:(e,t)=>zn(e,t,["typography","textColumns"],"columnCount")},_At={name:"textDecoration",generate:(e,t)=>zn(e,t,["typography","textDecoration"],"textDecoration")},wAt={name:"textTransform",generate:(e,t)=>zn(e,t,["typography","textTransform"],"textTransform")},kAt={name:"writingMode",generate:(e,t)=>zn(e,t,["typography","writingMode"],"writingMode")},qAt=[AAt,gAt,zAt,OAt,yAt,vAt,xAt,_At,wAt,kAt],SAt=[...GOt,...QOt,...tAt,...bAt,...MAt,...qAt,...lAt,...aAt];function fS(e,t={}){const n=Vw(e,t);if(!t?.selector){const s=[];return n.forEach(i=>{s.push(`${Us(i.key)}: ${i.value};`)}),s.join(" ")}const o=n.reduce((s,i)=>{const{selector:c}=i;return c&&(s[c]||(s[c]=[]),s[c].push(i)),s},{});return Object.keys(o).reduce((s,i)=>(s.push(`${i} { ${o[i].map(c=>`${Us(c.key)}: ${c.value};`).join(" ")} }`),s),[]).join(` `)}function Vw(e,t={}){const n=[];return SAt.forEach(o=>{typeof o.generate=="function"&&n.push(...o.generate(e,t))}),n}const CAt={name:"constrained",label:m("Constrained"),inspectorControls:function({layout:t,onChange:n,layoutBlockSupport:o={}}){const{wideSize:r,contentSize:s,justifyContent:i="center"}=t,{allowJustification:c=!0,allowCustomContentAndWideSize:l=!0}=o,u=b=>{n({...t,justifyContent:b})},d=[{value:"left",icon:Y_,label:m("Justify items left")},{value:"center",icon:Z_,label:m("Justify items center")},{value:"right",icon:Q_,label:m("Justify items right")}],[p]=O0("spacing.units"),f=Fr({availableUnits:p||["%","px","em","rem","vw"]});return a.jsxs(a.Fragment,{children:[l&&a.jsxs("div",{className:"block-editor-hooks__layout-controls-units",children:[a.jsx(H0,{__next40pxDefaultSize:!0,className:"block-editor-hooks__layout-controls-unit-input",label:m("Content width"),labelPosition:"top",value:s||r||"",onChange:b=>{b=0>parseFloat(b)?"0":b,n({...t,contentSize:b})},units:f,prefix:a.jsx(Fp,{variant:"icon",children:a.jsx(t0,{icon:H_})})}),a.jsx(H0,{__next40pxDefaultSize:!0,className:"block-editor-hooks__layout-controls-unit-input",label:m("Wide width"),labelPosition:"top",value:r||s||"",onChange:b=>{b=0>parseFloat(b)?"0":b,n({...t,wideSize:b})},units:f,prefix:a.jsx(Fp,{variant:"icon",children:a.jsx(t0,{icon:v7})})}),a.jsx("p",{className:"block-editor-hooks__layout-controls-helptext",children:m("Customize the width for all elements that are assigned to the center or wide columns.")})]}),c&&a.jsx(wn,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:m("Justification"),value:i,onChange:u,children:d.map(({value:b,icon:h,label:g})=>a.jsx(Bi,{value:b,icon:h,label:g},b))})]})},toolBarControls:function({layout:t={},onChange:n,layoutBlockSupport:o}){const{allowJustification:r=!0}=o;return r?a.jsx(Ie,{group:"block",__experimentalShareWithChildBlocks:!0,children:a.jsx(WAt,{layout:t,onChange:n})}):null},getLayoutStyle:function({selector:t,layout:n={},style:o,blockName:r,hasBlockGapSupport:s,layoutDefinitions:i=Ju}){const{contentSize:c,wideSize:l,justifyContent:u}=n,d=_r(o?.spacing?.blockGap);let p="";Z1(r,"spacing","blockGap")||(d?.top?p=_r(d?.top):typeof d=="string"&&(p=_r(d)));const f=u==="left"?"0 !important":"auto !important",b=u==="right"?"0 !important":"auto !important";let h=c||l?` @@ -416,14 +416,14 @@ The screen with id ${t.id} will not be added.`),e):[...e,t]}function Lft({screen ${pa(t,"> .alignfull")} { margin-left: calc(${y} * -1); } - `}}),s&&p&&(h+=Iw(t,i,"constrained",p)),h},getOrientation(){return"vertical"},getAlignments(e){const t=bbe(e);if(e.alignments!==void 0)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map(s=>({name:s,info:t[s]}));const{contentSize:n,wideSize:o}=e,r=[{name:"left"},{name:"center"},{name:"right"}];return n&&r.unshift({name:"full"}),o&&r.unshift({name:"wide",info:t.wide}),r.unshift({name:"none",info:t.none}),r}},RAt={placement:"bottom-start"};function WAt({layout:e,onChange:t}){const{justifyContent:n="center"}=e,o=s=>{t({...e,justifyContent:s})},r=["left","center","right"];return a.jsx(Gme,{allowedControls:r,value:n,onChange:o,popoverProps:RAt})}const TAt={px:600,"%":100,vw:100,vh:100,em:38,rem:38,svw:100,lvw:100,dvw:100,svh:100,lvh:100,dvh:100,vi:100,svi:100,lvi:100,dvi:100,vb:100,svb:100,lvb:100,dvb:100,vmin:100,svmin:100,lvmin:100,dvmin:100,vmax:100,svmax:100,lvmax:100,dvmax:100},EAt=[{value:"px",label:"px",default:0},{value:"rem",label:"rem",default:0},{value:"em",label:"em",default:0}],BAt={name:"grid",label:m("Grid"),inspectorControls:function({layout:t={},onChange:n,layoutBlockSupport:o={}}){const{allowSizingOnChildren:r=!1}=o,s=window.__experimentalEnableGridInteractivity||t?.columnCount,i=window.__experimentalEnableGridInteractivity||!t?.columnCount;return a.jsxs(a.Fragment,{children:[a.jsx(jAt,{layout:t,onChange:n}),s&&a.jsx(LAt,{layout:t,onChange:n,allowSizingOnChildren:r}),i&&a.jsx(NAt,{layout:t,onChange:n})]})},toolBarControls:function(){return null},getLayoutStyle:function({selector:t,layout:n,style:o,blockName:r,hasBlockGapSupport:s,layoutDefinitions:i=Ju}){const{minimumColumnWidth:c=null,columnCount:l=null,rowCount:u=null}=n,d=o?.spacing?.blockGap&&!Z1(r,"spacing","blockGap")?_r(o?.spacing?.blockGap,"0.5em"):void 0;let p="";const f=[];if(c&&l>0){const b=`max(${c}, ( 100% - (${d||"1.2rem"}*${l-1}) ) / ${l})`;f.push(`grid-template-columns: repeat(auto-fill, minmax(${b}, 1fr))`,"container-type: inline-size"),u&&f.push(`grid-template-rows: repeat(${u}, minmax(1rem, auto))`)}else l?(f.push(`grid-template-columns: repeat(${l}, minmax(0, 1fr))`),u&&f.push(`grid-template-rows: repeat(${u}, minmax(1rem, auto))`)):f.push(`grid-template-columns: repeat(auto-fill, minmax(min(${c||"12rem"}, 100%), 1fr))`,"container-type: inline-size");return f.length&&(p=`${pa(t)} { ${f.join("; ")}; }`),s&&d&&(p+=Iw(t,i,"grid",d)),p},getOrientation(){return"horizontal"},getAlignments(){return[]}};function NAt({layout:e,onChange:t}){const{minimumColumnWidth:n,columnCount:o,isManualPlacement:r}=e,i=n||(r||o?null:"12rem"),[c,l="rem"]=y0(i),u=p=>{t({...e,minimumColumnWidth:[p,l].join("")})},d=p=>{let f;["em","rem"].includes(p)&&l==="px"?f=(c/16).toFixed(2)+p:["em","rem"].includes(l)&&p==="px"&&(f=Math.round(c*16)+p),t({...e,minimumColumnWidth:f})};return a.jsxs("fieldset",{children:[a.jsx(z0.VisualLabel,{as:"legend",children:m("Minimum column width")}),a.jsxs(Q0,{gap:4,children:[a.jsx(Ht,{isBlock:!0,children:a.jsx(H0,{size:"__unstable-large",onChange:p=>{t({...e,minimumColumnWidth:p===""?void 0:p})},onUnitChange:d,value:i,units:EAt,min:0,label:m("Minimum column width"),hideLabelFromVision:!0})}),a.jsx(Ht,{isBlock:!0,children:a.jsx(T0,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,onChange:u,value:c||0,min:0,max:TAt[l]||600,withInputField:!1,label:m("Minimum column width"),hideLabelFromVision:!0})})]})]})}function LAt({layout:e,onChange:t,allowSizingOnChildren:n}){const o=window.__experimentalEnableGridInteractivity?void 0:3,{columnCount:r=o,rowCount:s,isManualPlacement:i}=e;return a.jsx(a.Fragment,{children:a.jsxs("fieldset",{children:[(!window.__experimentalEnableGridInteractivity||!i)&&a.jsx(z0.VisualLabel,{as:"legend",children:m("Columns")}),a.jsxs(Q0,{gap:4,children:[a.jsx(Ht,{isBlock:!0,children:a.jsx(T1,{size:"__unstable-large",onChange:c=>{if(window.__experimentalEnableGridInteractivity){const u=c===""?i?1:void 0:parseInt(c,10);t({...e,columnCount:u})}else{const l=c===""?1:parseInt(c,10);t({...e,columnCount:l})}},value:r,min:0,label:m("Columns"),hideLabelFromVision:!window.__experimentalEnableGridInteractivity||!i})}),a.jsx(Ht,{isBlock:!0,children:window.__experimentalEnableGridInteractivity&&n&&i?a.jsx(T1,{size:"__unstable-large",onChange:c=>{const l=c===""?1:parseInt(c,10);t({...e,rowCount:l})},value:s,min:0,label:m("Rows")}):a.jsx(T0,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,value:r??0,onChange:c=>t({...e,columnCount:c}),min:0,max:16,withInputField:!1,label:m("Columns"),hideLabelFromVision:!0})})]})]})})}function jAt({layout:e,onChange:t}){const{columnCount:n,rowCount:o,minimumColumnWidth:r,isManualPlacement:s}=e,[i,c]=O.useState(n||3),[l,u]=O.useState(o),[d,p]=O.useState(r||"12rem"),f=s||n&&!window.__experimentalEnableGridInteractivity?"manual":"auto",b=g=>{g==="manual"?p(r||"12rem"):(c(n||3),u(o)),t({...e,columnCount:g==="manual"?i:null,rowCount:g==="manual"&&window.__experimentalEnableGridInteractivity?l:void 0,isManualPlacement:g==="manual"&&window.__experimentalEnableGridInteractivity?!0:void 0,minimumColumnWidth:g==="auto"?d:null})},h=m(f==="manual"?"Grid items can be manually placed in any position on the grid.":"Grid items are placed automatically depending on their order.");return a.jsxs(wn,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:m("Grid item position"),value:f,onChange:b,isBlock:!0,help:window.__experimentalEnableGridInteractivity?h:void 0,children:[a.jsx(W0,{value:"auto",label:m("Auto")},"auto"),a.jsx(W0,{value:"manual",label:m("Manual")},"manual")]})}const gbe=[BOt,COt,CAt,BAt];function Kp(e="default"){return gbe.find(t=>t.name===e)}function PAt(){return gbe}const zbe={type:"default"},Obe=O.createContext(zbe),IAt=Obe.Provider;function Hw(){return O.useContext(Obe)}function DAt({layout:e={},css:t,...n}){const o=Kp(e.type),[r]=O0("spacing.blockGap"),s=r!==null;if(o){if(t)return a.jsx("style",{children:t});const i=o.getLayoutStyle?.({hasBlockGapSupport:s,layout:e,...n});if(i)return a.jsx("style",{children:i})}return null}const CA=[],mK=["none","left","center","right","wide","full"],FAt=["wide","full"];function Ij(e=mK){e.includes("none")||(e=["none",...e]);const t=e.length===1&&e[0]==="none",[n,o,r]=D(l=>{var u;if(t)return[!1,!1,!1];const d=l(F).getSettings();return[(u=d.alignWide)!==null&&u!==void 0?u:!1,d.supportsLayout,d.__unstableIsBlockBasedTheme]},[t]),s=Hw();if(t)return CA;const i=Kp(s?.type);if(o){const u=i.getAlignments(s,r).filter(d=>e.includes(d.name));return u.length===1&&u[0].name==="none"?CA:u}if(i.name!=="default"&&i.name!=="constrained")return CA;const c=e.filter(l=>s.alignments?s.alignments.includes(l):!n&&FAt.includes(l)?!1:mK.includes(l)).map(l=>({name:l}));return c.length===1&&c[0].name==="none"?CA:c}const RA={none:{icon:H_,title:Oe("None","Alignment option")},left:{icon:ple,title:m("Align left")},center:{icon:dle,title:m("Align center")},right:{icon:fle,title:m("Align right")},wide:{icon:v7,title:m("Wide width")},full:{icon:VZe,title:m("Full width")}},$At="none";function Abe({value:e,onChange:t,controls:n,isToolbar:o,isCollapsed:r=!0}){const s=Ij(n);if(!!!s.length)return null;function c(b){t([e,"none"].includes(b)?void 0:b)}const l=RA[e],u=RA[$At],d=o?c0:_l,p={icon:l?l.icon:u.icon,label:m("Align")},f=o?{isCollapsed:r,controls:s.map(({name:b})=>({...RA[b],isActive:e===b||!e&&b==="none",role:r?"menuitemradio":void 0,onClick:()=>c(b)}))}:{toggleProps:{description:m("Change alignment")},children:({onClose:b})=>a.jsx(a.Fragment,{children:a.jsx(Yt,{className:"block-editor-block-alignment-control__menu-group",children:s.map(({name:h,info:g})=>{const{icon:z,title:y}=RA[h],x=h===e||!e&&h==="none";return a.jsx(tt,{icon:z,iconPosition:"left",className:$("components-dropdown-menu__menu-item",{"is-active":x}),isSelected:x,onClick:()=>{c(h),b()},role:"menuitemradio",info:g,children:y},h)})})})};return a.jsx(d,{...p,...f})}const VAt=e=>a.jsx(Abe,{...e,isToolbar:!1}),HAt=e=>a.jsx(Abe,{...e,isToolbar:!0});function UAt({isActive:e,label:t=m("Toggle full height"),onToggle:n,isDisabled:o}){return a.jsx(bt,{isActive:e,icon:Vv,label:t,onClick:()=>n(!e),disabled:o})}const XAt=()=>{};function GAt(e){const{label:t=m("Change matrix alignment"),onChange:n=XAt,value:o="center",isDisabled:r}=e,s=a.jsx(sU.Icon,{value:o});return a.jsx(B0,{popoverProps:{placement:"bottom-start"},renderToggle:({onToggle:i,isOpen:c})=>{const l=u=>{!c&&u.keyCode===Do&&(u.preventDefault(),i())};return a.jsx(bt,{onClick:i,"aria-haspopup":"true","aria-expanded":c,onKeyDown:l,label:t,icon:s,showTooltip:!0,disabled:r})},renderContent:()=>a.jsx(sU,{hasFocusBorder:!1,onChange:n,value:o})})}function ed({clientId:e,maximumLength:t,context:n}){const o=D(r=>{if(!e)return null;const{getBlockName:s,getBlockAttributes:i}=r(F),{getBlockType:c,getActiveBlockVariation:l}=r($e),u=s(e),d=c(u);if(!d)return null;const p=i(e),f=pN(d,p,n);return f!==d.title?f:l(u,p)?.title||d.title},[e,n]);if(!o)return null;if(t&&t>0&&o.length>t){const r="...";return o.slice(0,t-r.length)+r}return o}function p5({clientId:e,maximumLength:t,context:n}){return ed({clientId:e,maximumLength:t,context:n})}const Dj=O.createContext({refsMap:g2()});function KAt({children:e}){const t=O.useMemo(()=>({refsMap:g2()}),[]);return a.jsx(Dj.Provider,{value:t,children:e})}function YAt(e){const{refsMap:t}=O.useContext(Dj);return Et(n=>(t.set(e,n),()=>t.delete(e)),[e])}function bS(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Fj(e,t){const{refsMap:n}=O.useContext(Dj);O.useLayoutEffect(()=>{bS(t,n.get(e));const o=n.subscribe(e,()=>bS(t,n.get(e)));return()=>{o(),bS(t,null)}},[n,e,t])}function ls(e){const[t,n]=O.useState(null);return Fj(e,n),t}function ybe(e){var t,n;if(!e)return null;const o=(t=Array.from(document.querySelectorAll('iframe[name="editor-canvas"]').values()).find(r=>(r.contentDocument||r.contentWindow.document)===e.ownerDocument))!==null&&t!==void 0?t:e;return(n=o?.closest('[role="region"]'))!==null&&n!==void 0?n:o}function ZAt({rootLabelText:e}){const{selectBlock:t,clearSelectedBlock:n}=ae(F),{clientId:o,parents:r,hasSelection:s}=D(l=>{const{getSelectionStart:u,getSelectedBlockClientId:d,getEnabledBlockParents:p}=Fe(l(F)),f=d();return{parents:p(f),clientId:f,hasSelection:!!u().clientId}},[]),i=e||m("Document"),c=O.useRef();return Fj(o,c),a.jsxs("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":m("Block breadcrumb"),children:[a.jsxs("li",{className:s?void 0:"block-editor-block-breadcrumb__current","aria-current":s?void 0:"true",children:[s&&a.jsx(fe,{__next40pxDefaultSize:!1,className:"block-editor-block-breadcrumb__button",variant:"tertiary",onClick:()=>{const l=c.current?.closest(".editor-styles-wrapper");n(),ybe(l)?.focus()},children:i}),!s&&i,!!o&&a.jsx(t0,{icon:jp,className:"block-editor-block-breadcrumb__separator"})]}),r.map(l=>a.jsxs("li",{children:[a.jsx(fe,{__next40pxDefaultSize:!1,className:"block-editor-block-breadcrumb__button",variant:"tertiary",onClick:()=>t(l),children:a.jsx(p5,{clientId:l,maximumLength:35})}),a.jsx(t0,{icon:jp,className:"block-editor-block-breadcrumb__separator"})]},l)),!!o&&a.jsx("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true",children:a.jsx(p5,{clientId:o,maximumLength:35})})]})}var Uw={},$j={};Object.defineProperty($j,"__esModule",{value:!0});$j.default=vbe;function vbe(){}vbe.prototype={diff:function(t,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=o.callback;typeof o=="function"&&(r=o,o={}),this.options=o;var s=this;function i(g){return r?(setTimeout(function(){r(void 0,g)},0),!0):g}t=this.castInput(t),n=this.castInput(n),t=this.removeEmpty(this.tokenize(t)),n=this.removeEmpty(this.tokenize(n));var c=n.length,l=t.length,u=1,d=c+l,p=[{newPos:-1,components:[]}],f=this.extractCommon(p[0],n,t,0);if(p[0].newPos+1>=c&&f+1>=l)return i([{value:this.join(n),count:n.length}]);function b(){for(var g=-1*u;g<=u;g+=2){var z=void 0,y=p[g-1],x=p[g+1],v=(x?x.newPos:0)-g;y&&(p[g-1]=void 0);var M=y&&y.newPos+1=c&&v+1>=l)return i(QAt(s,z.components,n,t,s.useLongestToken));p[g]=z}u++}if(r)(function g(){setTimeout(function(){if(u>d)return r();b()||g()},0)})();else for(;u<=d;){var h=b();if(h)return h}},pushComponent:function(t,n,o){var r=t[t.length-1];r&&r.added===n&&r.removed===o?t[t.length-1]={count:r.count+1,added:n,removed:o}:t.push({count:1,added:n,removed:o})},extractCommon:function(t,n,o,r){for(var s=n.length,i=o.length,c=t.newPos,l=c-r,u=0;c+1b.length?g:b}),u.value=e.join(d)}else u.value=e.join(n.slice(c,c+u.count));c+=u.count,u.added||(l+=u.count)}}var f=t[i-1];return i>1&&typeof f.value=="string"&&(f.added||f.removed)&&e.equals("",f.value)&&(t[i-2].value+=f.value,t.pop()),t}function JAt(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(Uw,"__esModule",{value:!0});var eyt=Uw.diffChars=oyt;Uw.characterDiff=void 0;var tyt=nyt($j);function nyt(e){return e&&e.__esModule?e:{default:e}}var xbe=new tyt.default;Uw.characterDiff=xbe;function oyt(e,t,n){return xbe.diff(e,t,n)}function MK({title:e,rawContent:t,renderedContent:n,action:o,actionText:r,className:s}){return a.jsxs("div",{className:s,children:[a.jsxs("div",{className:"block-editor-block-compare__content",children:[a.jsx("h2",{className:"block-editor-block-compare__heading",children:e}),a.jsx("div",{className:"block-editor-block-compare__html",children:t}),a.jsx("div",{className:"block-editor-block-compare__preview edit-post-visual-editor",children:a.jsx(C1,{children:wx(n)})})]}),a.jsx("div",{className:"block-editor-block-compare__action",children:a.jsx(fe,{__next40pxDefaultSize:!1,variant:"secondary",tabIndex:"0",onClick:o,children:r})})]})}function ryt({block:e,onKeep:t,onConvert:n,convertor:o,convertButtonText:r}){function s(u,d){return eyt(u,d).map((f,b)=>{const h=$({"block-editor-block-compare__added":f.added,"block-editor-block-compare__removed":f.removed});return a.jsx("span",{className:h,children:f.value},b)})}function i(u){return(Array.isArray(u)?u:[u]).map(f=>mf(f.name,f.attributes,f.innerBlocks)).join("")}const c=i(o(e)),l=s(e.originalContent,c);return a.jsxs("div",{className:"block-editor-block-compare__wrapper",children:[a.jsx(MK,{title:m("Current"),className:"block-editor-block-compare__current",action:t,actionText:m("Convert to HTML"),rawContent:e.originalContent,renderedContent:e.originalContent}),a.jsx(MK,{title:m("After Conversion"),className:"block-editor-block-compare__converted",action:n,actionText:r,rawContent:l,renderedContent:c})]})}const gK=e=>e3({HTML:e.originalContent});function syt({clientId:e}){const{block:t,canInsertHTMLBlock:n,canInsertClassicBlock:o}=D(d=>{const{canInsertBlockType:p,getBlock:f,getBlockRootClientId:b}=d(F),h=b(e);return{block:f(e),canInsertHTMLBlock:p("core/html",h),canInsertClassicBlock:p("core/freeform",h)}},[e]),{replaceBlock:r}=ae(F),[s,i]=O.useState(!1),c=O.useCallback(()=>i(!1),[]),l=O.useMemo(()=>({toClassic(){const d=me("core/freeform",{content:t.originalContent});return r(t.clientId,d)},toHTML(){const d=me("core/html",{content:t.originalContent});return r(t.clientId,d)},toBlocks(){const d=gK(t);return r(t.clientId,d)},toRecoveredBlock(){const d=me(t.name,t.attributes,t.innerBlocks);return r(t.clientId,d)}}),[t,r]),u=O.useMemo(()=>[{title:Oe("Resolve","imperative verb"),onClick:()=>i(!0)},n&&{title:m("Convert to HTML"),onClick:l.toHTML},o&&{title:m("Convert to Classic Block"),onClick:l.toClassic}].filter(Boolean),[n,o,l]);return a.jsxs(a.Fragment,{children:[a.jsx(Gn,{actions:[a.jsx(fe,{__next40pxDefaultSize:!1,onClick:l.toRecoveredBlock,variant:"primary",children:m("Attempt recovery")},"recover")],secondaryActions:u,children:m("Block contains unexpected or invalid content.")}),s&&a.jsx(fn,{title:m("Resolve Block"),onRequestClose:c,className:"block-editor-block-compare",children:a.jsx(ryt,{block:t,onKeep:l.toHTML,onConvert:l.toBlocks,convertor:gK,convertButtonText:m("Convert to Blocks")})})]})}const iyt=a.jsx(Gn,{className:"block-editor-block-list__block-crash-warning",children:m("This block has encountered an error and cannot be previewed.")}),ayt=()=>iyt;class cyt extends O.Component{constructor(){super(...arguments),this.state={hasError:!1}}componentDidCatch(){this.setState({hasError:!0})}render(){return this.state.hasError?this.props.fallback:this.props.children}}var _be={},Vj={},wbe={exports:{}},lyt="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",uyt=lyt,dyt=uyt;function kbe(){}function qbe(){}qbe.resetWarningCache=kbe;var pyt=function(){function e(o,r,s,i,c,l){if(l!==dyt){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={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:qbe,resetWarningCache:kbe};return n.PropTypes=n,n};wbe.exports=pyt();var fyt=wbe.exports,KW={exports:{}};/*! + `}}),s&&p&&(h+=Iw(t,i,"constrained",p)),h},getOrientation(){return"vertical"},getAlignments(e){const t=bbe(e);if(e.alignments!==void 0)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map(s=>({name:s,info:t[s]}));const{contentSize:n,wideSize:o}=e,r=[{name:"left"},{name:"center"},{name:"right"}];return n&&r.unshift({name:"full"}),o&&r.unshift({name:"wide",info:t.wide}),r.unshift({name:"none",info:t.none}),r}},RAt={placement:"bottom-start"};function WAt({layout:e,onChange:t}){const{justifyContent:n="center"}=e,o=s=>{t({...e,justifyContent:s})},r=["left","center","right"];return a.jsx(Gme,{allowedControls:r,value:n,onChange:o,popoverProps:RAt})}const TAt={px:600,"%":100,vw:100,vh:100,em:38,rem:38,svw:100,lvw:100,dvw:100,svh:100,lvh:100,dvh:100,vi:100,svi:100,lvi:100,dvi:100,vb:100,svb:100,lvb:100,dvb:100,vmin:100,svmin:100,lvmin:100,dvmin:100,vmax:100,svmax:100,lvmax:100,dvmax:100},EAt=[{value:"px",label:"px",default:0},{value:"rem",label:"rem",default:0},{value:"em",label:"em",default:0}],BAt={name:"grid",label:m("Grid"),inspectorControls:function({layout:t={},onChange:n,layoutBlockSupport:o={}}){const{allowSizingOnChildren:r=!1}=o,s=window.__experimentalEnableGridInteractivity||t?.columnCount,i=window.__experimentalEnableGridInteractivity||!t?.columnCount;return a.jsxs(a.Fragment,{children:[a.jsx(jAt,{layout:t,onChange:n}),s&&a.jsx(LAt,{layout:t,onChange:n,allowSizingOnChildren:r}),i&&a.jsx(NAt,{layout:t,onChange:n})]})},toolBarControls:function(){return null},getLayoutStyle:function({selector:t,layout:n,style:o,blockName:r,hasBlockGapSupport:s,layoutDefinitions:i=Ju}){const{minimumColumnWidth:c=null,columnCount:l=null,rowCount:u=null}=n,d=o?.spacing?.blockGap&&!Z1(r,"spacing","blockGap")?_r(o?.spacing?.blockGap,"0.5em"):void 0;let p="";const f=[];if(c&&l>0){const b=`max(${c}, ( 100% - (${d||"1.2rem"}*${l-1}) ) / ${l})`;f.push(`grid-template-columns: repeat(auto-fill, minmax(${b}, 1fr))`,"container-type: inline-size"),u&&f.push(`grid-template-rows: repeat(${u}, minmax(1rem, auto))`)}else l?(f.push(`grid-template-columns: repeat(${l}, minmax(0, 1fr))`),u&&f.push(`grid-template-rows: repeat(${u}, minmax(1rem, auto))`)):f.push(`grid-template-columns: repeat(auto-fill, minmax(min(${c||"12rem"}, 100%), 1fr))`,"container-type: inline-size");return f.length&&(p=`${pa(t)} { ${f.join("; ")}; }`),s&&d&&(p+=Iw(t,i,"grid",d)),p},getOrientation(){return"horizontal"},getAlignments(){return[]}};function NAt({layout:e,onChange:t}){const{minimumColumnWidth:n,columnCount:o,isManualPlacement:r}=e,i=n||(r||o?null:"12rem"),[c,l="rem"]=y0(i),u=p=>{t({...e,minimumColumnWidth:[p,l].join("")})},d=p=>{let f;["em","rem"].includes(p)&&l==="px"?f=(c/16).toFixed(2)+p:["em","rem"].includes(l)&&p==="px"&&(f=Math.round(c*16)+p),t({...e,minimumColumnWidth:f})};return a.jsxs("fieldset",{children:[a.jsx(z0.VisualLabel,{as:"legend",children:m("Minimum column width")}),a.jsxs(Q0,{gap:4,children:[a.jsx(Ht,{isBlock:!0,children:a.jsx(H0,{size:"__unstable-large",onChange:p=>{t({...e,minimumColumnWidth:p===""?void 0:p})},onUnitChange:d,value:i,units:EAt,min:0,label:m("Minimum column width"),hideLabelFromVision:!0})}),a.jsx(Ht,{isBlock:!0,children:a.jsx(T0,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,onChange:u,value:c||0,min:0,max:TAt[l]||600,withInputField:!1,label:m("Minimum column width"),hideLabelFromVision:!0})})]})]})}function LAt({layout:e,onChange:t,allowSizingOnChildren:n}){const o=window.__experimentalEnableGridInteractivity?void 0:3,{columnCount:r=o,rowCount:s,isManualPlacement:i}=e;return a.jsx(a.Fragment,{children:a.jsxs("fieldset",{children:[(!window.__experimentalEnableGridInteractivity||!i)&&a.jsx(z0.VisualLabel,{as:"legend",children:m("Columns")}),a.jsxs(Q0,{gap:4,children:[a.jsx(Ht,{isBlock:!0,children:a.jsx(T1,{size:"__unstable-large",onChange:c=>{if(window.__experimentalEnableGridInteractivity){const u=c===""?i?1:void 0:parseInt(c,10);t({...e,columnCount:u})}else{const l=c===""?1:parseInt(c,10);t({...e,columnCount:l})}},value:r,min:0,label:m("Columns"),hideLabelFromVision:!window.__experimentalEnableGridInteractivity||!i})}),a.jsx(Ht,{isBlock:!0,children:window.__experimentalEnableGridInteractivity&&n&&i?a.jsx(T1,{size:"__unstable-large",onChange:c=>{const l=c===""?1:parseInt(c,10);t({...e,rowCount:l})},value:s,min:0,label:m("Rows")}):a.jsx(T0,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,value:r??0,onChange:c=>t({...e,columnCount:c}),min:0,max:16,withInputField:!1,label:m("Columns"),hideLabelFromVision:!0})})]})]})})}function jAt({layout:e,onChange:t}){const{columnCount:n,rowCount:o,minimumColumnWidth:r,isManualPlacement:s}=e,[i,c]=O.useState(n||3),[l,u]=O.useState(o),[d,p]=O.useState(r||"12rem"),f=s||n&&!window.__experimentalEnableGridInteractivity?"manual":"auto",b=g=>{g==="manual"?p(r||"12rem"):(c(n||3),u(o)),t({...e,columnCount:g==="manual"?i:null,rowCount:g==="manual"&&window.__experimentalEnableGridInteractivity?l:void 0,isManualPlacement:g==="manual"&&window.__experimentalEnableGridInteractivity?!0:void 0,minimumColumnWidth:g==="auto"?d:null})},h=m(f==="manual"?"Grid items can be manually placed in any position on the grid.":"Grid items are placed automatically depending on their order.");return a.jsxs(wn,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:m("Grid item position"),value:f,onChange:b,isBlock:!0,help:window.__experimentalEnableGridInteractivity?h:void 0,children:[a.jsx(W0,{value:"auto",label:m("Auto")},"auto"),a.jsx(W0,{value:"manual",label:m("Manual")},"manual")]})}const gbe=[BOt,COt,CAt,BAt];function Kp(e="default"){return gbe.find(t=>t.name===e)}function PAt(){return gbe}const zbe={type:"default"},Obe=O.createContext(zbe),IAt=Obe.Provider;function Hw(){return O.useContext(Obe)}function DAt({layout:e={},css:t,...n}){const o=Kp(e.type),[r]=O0("spacing.blockGap"),s=r!==null;if(o){if(t)return a.jsx("style",{children:t});const i=o.getLayoutStyle?.({hasBlockGapSupport:s,layout:e,...n});if(i)return a.jsx("style",{children:i})}return null}const CA=[],mK=["none","left","center","right","wide","full"],FAt=["wide","full"];function Ij(e=mK){e.includes("none")||(e=["none",...e]);const t=e.length===1&&e[0]==="none",[n,o,r]=D(l=>{var u;if(t)return[!1,!1,!1];const d=l(F).getSettings();return[(u=d.alignWide)!==null&&u!==void 0?u:!1,d.supportsLayout,d.__unstableIsBlockBasedTheme]},[t]),s=Hw();if(t)return CA;const i=Kp(s?.type);if(o){const u=i.getAlignments(s,r).filter(d=>e.includes(d.name));return u.length===1&&u[0].name==="none"?CA:u}if(i.name!=="default"&&i.name!=="constrained")return CA;const c=e.filter(l=>s.alignments?s.alignments.includes(l):!n&&FAt.includes(l)?!1:mK.includes(l)).map(l=>({name:l}));return c.length===1&&c[0].name==="none"?CA:c}const RA={none:{icon:H_,title:Oe("None","Alignment option")},left:{icon:ple,title:m("Align left")},center:{icon:dle,title:m("Align center")},right:{icon:fle,title:m("Align right")},wide:{icon:v7,title:m("Wide width")},full:{icon:VZe,title:m("Full width")}},$At="none";function Abe({value:e,onChange:t,controls:n,isToolbar:o,isCollapsed:r=!0}){const s=Ij(n);if(!!!s.length)return null;function c(b){t([e,"none"].includes(b)?void 0:b)}const l=RA[e],u=RA[$At],d=o?c0:_l,p={icon:l?l.icon:u.icon,label:m("Align")},f=o?{isCollapsed:r,controls:s.map(({name:b})=>({...RA[b],isActive:e===b||!e&&b==="none",role:r?"menuitemradio":void 0,onClick:()=>c(b)}))}:{toggleProps:{description:m("Change alignment")},children:({onClose:b})=>a.jsx(a.Fragment,{children:a.jsx(Yt,{className:"block-editor-block-alignment-control__menu-group",children:s.map(({name:h,info:g})=>{const{icon:z,title:y}=RA[h],x=h===e||!e&&h==="none";return a.jsx(tt,{icon:z,iconPosition:"left",className:$("components-dropdown-menu__menu-item",{"is-active":x}),isSelected:x,onClick:()=>{c(h),b()},role:"menuitemradio",info:g,children:y},h)})})})};return a.jsx(d,{...p,...f})}const VAt=e=>a.jsx(Abe,{...e,isToolbar:!1}),HAt=e=>a.jsx(Abe,{...e,isToolbar:!0});function UAt({isActive:e,label:t=m("Toggle full height"),onToggle:n,isDisabled:o}){return a.jsx(bt,{isActive:e,icon:Vv,label:t,onClick:()=>n(!e),disabled:o})}const XAt=()=>{};function GAt(e){const{label:t=m("Change matrix alignment"),onChange:n=XAt,value:o="center",isDisabled:r}=e,s=a.jsx(sU.Icon,{value:o});return a.jsx(B0,{popoverProps:{placement:"bottom-start"},renderToggle:({onToggle:i,isOpen:c})=>{const l=u=>{!c&&u.keyCode===Do&&(u.preventDefault(),i())};return a.jsx(bt,{onClick:i,"aria-haspopup":"true","aria-expanded":c,onKeyDown:l,label:t,icon:s,showTooltip:!0,disabled:r})},renderContent:()=>a.jsx(sU,{hasFocusBorder:!1,onChange:n,value:o})})}function ed({clientId:e,maximumLength:t,context:n}){const o=D(r=>{if(!e)return null;const{getBlockName:s,getBlockAttributes:i}=r(F),{getBlockType:c,getActiveBlockVariation:l}=r($e),u=s(e),d=c(u);if(!d)return null;const p=i(e),f=pN(d,p,n);return f!==d.title?f:l(u,p)?.title||d.title},[e,n]);if(!o)return null;if(t&&t>0&&o.length>t){const r="...";return o.slice(0,t-r.length)+r}return o}function p5({clientId:e,maximumLength:t,context:n}){return ed({clientId:e,maximumLength:t,context:n})}const Dj=O.createContext({refsMap:g2()});function KAt({children:e}){const t=O.useMemo(()=>({refsMap:g2()}),[]);return a.jsx(Dj.Provider,{value:t,children:e})}function YAt(e){const{refsMap:t}=O.useContext(Dj);return Et(n=>(t.set(e,n),()=>t.delete(e)),[e])}function bS(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Fj(e,t){const{refsMap:n}=O.useContext(Dj);O.useLayoutEffect(()=>{bS(t,n.get(e));const o=n.subscribe(e,()=>bS(t,n.get(e)));return()=>{o(),bS(t,null)}},[n,e,t])}function us(e){const[t,n]=O.useState(null);return Fj(e,n),t}function ybe(e){var t,n;if(!e)return null;const o=(t=Array.from(document.querySelectorAll('iframe[name="editor-canvas"]').values()).find(r=>(r.contentDocument||r.contentWindow.document)===e.ownerDocument))!==null&&t!==void 0?t:e;return(n=o?.closest('[role="region"]'))!==null&&n!==void 0?n:o}function ZAt({rootLabelText:e}){const{selectBlock:t,clearSelectedBlock:n}=ae(F),{clientId:o,parents:r,hasSelection:s}=D(l=>{const{getSelectionStart:u,getSelectedBlockClientId:d,getEnabledBlockParents:p}=Fe(l(F)),f=d();return{parents:p(f),clientId:f,hasSelection:!!u().clientId}},[]),i=e||m("Document"),c=O.useRef();return Fj(o,c),a.jsxs("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":m("Block breadcrumb"),children:[a.jsxs("li",{className:s?void 0:"block-editor-block-breadcrumb__current","aria-current":s?void 0:"true",children:[s&&a.jsx(fe,{__next40pxDefaultSize:!1,className:"block-editor-block-breadcrumb__button",variant:"tertiary",onClick:()=>{const l=c.current?.closest(".editor-styles-wrapper");n(),ybe(l)?.focus()},children:i}),!s&&i,!!o&&a.jsx(t0,{icon:jp,className:"block-editor-block-breadcrumb__separator"})]}),r.map(l=>a.jsxs("li",{children:[a.jsx(fe,{__next40pxDefaultSize:!1,className:"block-editor-block-breadcrumb__button",variant:"tertiary",onClick:()=>t(l),children:a.jsx(p5,{clientId:l,maximumLength:35})}),a.jsx(t0,{icon:jp,className:"block-editor-block-breadcrumb__separator"})]},l)),!!o&&a.jsx("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true",children:a.jsx(p5,{clientId:o,maximumLength:35})})]})}var Uw={},$j={};Object.defineProperty($j,"__esModule",{value:!0});$j.default=vbe;function vbe(){}vbe.prototype={diff:function(t,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=o.callback;typeof o=="function"&&(r=o,o={}),this.options=o;var s=this;function i(g){return r?(setTimeout(function(){r(void 0,g)},0),!0):g}t=this.castInput(t),n=this.castInput(n),t=this.removeEmpty(this.tokenize(t)),n=this.removeEmpty(this.tokenize(n));var c=n.length,l=t.length,u=1,d=c+l,p=[{newPos:-1,components:[]}],f=this.extractCommon(p[0],n,t,0);if(p[0].newPos+1>=c&&f+1>=l)return i([{value:this.join(n),count:n.length}]);function b(){for(var g=-1*u;g<=u;g+=2){var z=void 0,y=p[g-1],x=p[g+1],v=(x?x.newPos:0)-g;y&&(p[g-1]=void 0);var M=y&&y.newPos+1=c&&v+1>=l)return i(QAt(s,z.components,n,t,s.useLongestToken));p[g]=z}u++}if(r)(function g(){setTimeout(function(){if(u>d)return r();b()||g()},0)})();else for(;u<=d;){var h=b();if(h)return h}},pushComponent:function(t,n,o){var r=t[t.length-1];r&&r.added===n&&r.removed===o?t[t.length-1]={count:r.count+1,added:n,removed:o}:t.push({count:1,added:n,removed:o})},extractCommon:function(t,n,o,r){for(var s=n.length,i=o.length,c=t.newPos,l=c-r,u=0;c+1b.length?g:b}),u.value=e.join(d)}else u.value=e.join(n.slice(c,c+u.count));c+=u.count,u.added||(l+=u.count)}}var f=t[i-1];return i>1&&typeof f.value=="string"&&(f.added||f.removed)&&e.equals("",f.value)&&(t[i-2].value+=f.value,t.pop()),t}function JAt(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(Uw,"__esModule",{value:!0});var eyt=Uw.diffChars=oyt;Uw.characterDiff=void 0;var tyt=nyt($j);function nyt(e){return e&&e.__esModule?e:{default:e}}var xbe=new tyt.default;Uw.characterDiff=xbe;function oyt(e,t,n){return xbe.diff(e,t,n)}function MK({title:e,rawContent:t,renderedContent:n,action:o,actionText:r,className:s}){return a.jsxs("div",{className:s,children:[a.jsxs("div",{className:"block-editor-block-compare__content",children:[a.jsx("h2",{className:"block-editor-block-compare__heading",children:e}),a.jsx("div",{className:"block-editor-block-compare__html",children:t}),a.jsx("div",{className:"block-editor-block-compare__preview edit-post-visual-editor",children:a.jsx(C1,{children:wx(n)})})]}),a.jsx("div",{className:"block-editor-block-compare__action",children:a.jsx(fe,{__next40pxDefaultSize:!1,variant:"secondary",tabIndex:"0",onClick:o,children:r})})]})}function ryt({block:e,onKeep:t,onConvert:n,convertor:o,convertButtonText:r}){function s(u,d){return eyt(u,d).map((f,b)=>{const h=$({"block-editor-block-compare__added":f.added,"block-editor-block-compare__removed":f.removed});return a.jsx("span",{className:h,children:f.value},b)})}function i(u){return(Array.isArray(u)?u:[u]).map(f=>mf(f.name,f.attributes,f.innerBlocks)).join("")}const c=i(o(e)),l=s(e.originalContent,c);return a.jsxs("div",{className:"block-editor-block-compare__wrapper",children:[a.jsx(MK,{title:m("Current"),className:"block-editor-block-compare__current",action:t,actionText:m("Convert to HTML"),rawContent:e.originalContent,renderedContent:e.originalContent}),a.jsx(MK,{title:m("After Conversion"),className:"block-editor-block-compare__converted",action:n,actionText:r,rawContent:l,renderedContent:c})]})}const gK=e=>e3({HTML:e.originalContent});function syt({clientId:e}){const{block:t,canInsertHTMLBlock:n,canInsertClassicBlock:o}=D(d=>{const{canInsertBlockType:p,getBlock:f,getBlockRootClientId:b}=d(F),h=b(e);return{block:f(e),canInsertHTMLBlock:p("core/html",h),canInsertClassicBlock:p("core/freeform",h)}},[e]),{replaceBlock:r}=ae(F),[s,i]=O.useState(!1),c=O.useCallback(()=>i(!1),[]),l=O.useMemo(()=>({toClassic(){const d=me("core/freeform",{content:t.originalContent});return r(t.clientId,d)},toHTML(){const d=me("core/html",{content:t.originalContent});return r(t.clientId,d)},toBlocks(){const d=gK(t);return r(t.clientId,d)},toRecoveredBlock(){const d=me(t.name,t.attributes,t.innerBlocks);return r(t.clientId,d)}}),[t,r]),u=O.useMemo(()=>[{title:Oe("Resolve","imperative verb"),onClick:()=>i(!0)},n&&{title:m("Convert to HTML"),onClick:l.toHTML},o&&{title:m("Convert to Classic Block"),onClick:l.toClassic}].filter(Boolean),[n,o,l]);return a.jsxs(a.Fragment,{children:[a.jsx(Gn,{actions:[a.jsx(fe,{__next40pxDefaultSize:!1,onClick:l.toRecoveredBlock,variant:"primary",children:m("Attempt recovery")},"recover")],secondaryActions:u,children:m("Block contains unexpected or invalid content.")}),s&&a.jsx(fn,{title:m("Resolve Block"),onRequestClose:c,className:"block-editor-block-compare",children:a.jsx(ryt,{block:t,onKeep:l.toHTML,onConvert:l.toBlocks,convertor:gK,convertButtonText:m("Convert to Blocks")})})]})}const iyt=a.jsx(Gn,{className:"block-editor-block-list__block-crash-warning",children:m("This block has encountered an error and cannot be previewed.")}),ayt=()=>iyt;class cyt extends O.Component{constructor(){super(...arguments),this.state={hasError:!1}}componentDidCatch(){this.setState({hasError:!0})}render(){return this.state.hasError?this.props.fallback:this.props.children}}var _be={},Vj={},wbe={exports:{}},lyt="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",uyt=lyt,dyt=uyt;function kbe(){}function qbe(){}qbe.resetWarningCache=kbe;var pyt=function(){function e(o,r,s,i,c,l){if(l!==dyt){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={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:qbe,resetWarningCache:kbe};return n.PropTypes=n,n};wbe.exports=pyt();var fyt=wbe.exports,KW={exports:{}};/*! autosize 4.0.4 license: MIT http://www.jacklmoore.com/autosize -*/(function(e,t){(function(n,o){o(e,t)})(In,function(n,o){var r=typeof Map=="function"?new Map:function(){var d=[],p=[];return{has:function(b){return d.indexOf(b)>-1},get:function(b){return p[d.indexOf(b)]},set:function(b,h){d.indexOf(b)===-1&&(d.push(b),p.push(h))},delete:function(b){var h=d.indexOf(b);h>-1&&(d.splice(h,1),p.splice(h,1))}}}(),s=function(p){return new Event(p,{bubbles:!0})};try{new Event("test")}catch{s=function(f){var b=document.createEvent("Event");return b.initEvent(f,!0,!1),b}}function i(d){if(!d||!d.nodeName||d.nodeName!=="TEXTAREA"||r.has(d))return;var p=null,f=null,b=null;function h(){var A=window.getComputedStyle(d,null);A.resize==="vertical"?d.style.resize="none":A.resize==="both"&&(d.style.resize="horizontal"),A.boxSizing==="content-box"?p=-(parseFloat(A.paddingTop)+parseFloat(A.paddingBottom)):p=parseFloat(A.borderTopWidth)+parseFloat(A.borderBottomWidth),isNaN(p)&&(p=0),x()}function g(A){{var _=d.style.width;d.style.width="0px",d.offsetWidth,d.style.width=_}d.style.overflowY=A}function z(A){for(var _=[];A&&A.parentNode&&A.parentNode instanceof Element;)A.parentNode.scrollTop&&_.push({node:A.parentNode,scrollTop:A.parentNode.scrollTop}),A=A.parentNode;return _}function y(){if(d.scrollHeight!==0){var A=z(d),_=document.documentElement&&document.documentElement.scrollTop;d.style.height="",d.style.height=d.scrollHeight+p+"px",f=d.clientWidth,A.forEach(function(w){w.node.scrollTop=w.scrollTop}),_&&(document.documentElement.scrollTop=_)}}function x(){y();var A=Math.round(parseFloat(d.style.height)),_=window.getComputedStyle(d,null),w=_.boxSizing==="content-box"?Math.round(parseFloat(_.height)):d.offsetHeight;if(w"u"||typeof window.getComputedStyle!="function"?(u=function(p){return p},u.destroy=function(d){return d},u.update=function(d){return d}):(u=function(p,f){return p&&Array.prototype.forEach.call(p.length?p:[p],function(b){return i(b)}),p},u.destroy=function(d){return d&&Array.prototype.forEach.call(d.length?d:[d],c),d},u.update=function(d){return d&&Array.prototype.forEach.call(d.length?d:[d],l),d}),o.default=u,n.exports=o.default})})(KW,KW.exports);var byt=KW.exports,hyt=function(e,t,n){return n=window.getComputedStyle,(n?n(e):e.currentStyle)[t.replace(/-(\w)/gi,function(o,r){return r.toUpperCase()})]},myt=hyt,hS=myt;function Myt(e){var t=hS(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var o=e.style.lineHeight;e.style.lineHeight=t+"em",t=hS(e,"line-height"),n=parseFloat(t,10),o?e.style.lineHeight=o:delete e.style.lineHeight}if(t.indexOf("pt")!==-1?(n*=4,n/=3):t.indexOf("mm")!==-1?(n*=96,n/=25.4):t.indexOf("cm")!==-1?(n*=96,n/=2.54):t.indexOf("in")!==-1?n*=96:t.indexOf("pc")!==-1&&(n*=16),n=Math.round(n),t==="normal"){var r=e.nodeName,s=document.createElement(r);s.innerHTML=" ",r.toUpperCase()==="TEXTAREA"&&s.setAttribute("rows","1");var i=hS(e,"font-size");s.style.fontSize=i,s.style.padding="0px",s.style.border="0px";var c=document.body;c.appendChild(s);var l=s.offsetHeight;n=l,c.removeChild(s)}return n}var gyt=Myt,zyt=In&&In.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)n.hasOwnProperty(o)&&(t[o]=n[o])};return function(t,n){e(t,n);function o(){this.constructor=t}t.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),YW=In&&In.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;ni(F).getBlock(e),[e]),{updateBlock:r}=ae(F),s=()=>{const i=Dt(o.name);if(!i)return;const c=Zc(i,t,o.attributes),l=t||mf(i,c),[u]=t?Eg({...o,attributes:c,originalContent:l}):[!0];r(e,{attributes:c,originalContent:l,isValid:u}),t||n(l)};return O.useEffect(()=>{n(s_(o))},[o]),a.jsx(Hj,{className:"block-editor-block-list__block-html-textarea",value:t,onBlur:s,onChange:i=>n(i.target.value)})}var Uj=nO(),e0=e=>tO(e,Uj),Xj=nO();e0.write=e=>tO(e,Xj);var Xw=nO();e0.onStart=e=>tO(e,Xw);var Gj=nO();e0.onFrame=e=>tO(e,Gj);var Kj=nO();e0.onFinish=e=>tO(e,Kj);var r2=[];e0.setTimeout=(e,t)=>{const n=e0.now()+t,o=()=>{const s=r2.findIndex(i=>i.cancel==o);~s&&r2.splice(s,1),au-=~s?1:0},r={time:n,handler:e,cancel:o};return r2.splice(Sbe(n),0,r),au+=1,Cbe(),r};var Sbe=e=>~(~r2.findIndex(t=>t.time>e)||~r2.length);e0.cancel=e=>{Xw.delete(e),Gj.delete(e),Kj.delete(e),Uj.delete(e),Xj.delete(e)};e0.sync=e=>{ZW=!0,e0.batchedUpdates(e),ZW=!1};e0.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function o(...r){t=r,e0.onStart(n)}return o.handler=e,o.cancel=()=>{Xw.delete(n),t=null},o};var Yj=typeof window<"u"?window.requestAnimationFrame:()=>{};e0.use=e=>Yj=e;e0.now=typeof performance<"u"?()=>performance.now():Date.now;e0.batchedUpdates=e=>e();e0.catch=console.error;e0.frameLoop="always";e0.advance=()=>{e0.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Wbe()};var iu=-1,au=0,ZW=!1;function tO(e,t){ZW?(t.delete(e),e(0)):(t.add(e),Cbe())}function Cbe(){iu<0&&(iu=0,e0.frameLoop!=="demand"&&Yj(Rbe))}function _yt(){iu=-1}function Rbe(){~iu&&(Yj(Rbe),e0.batchedUpdates(Wbe))}function Wbe(){const e=iu;iu=e0.now();const t=Sbe(iu);if(t&&(Tbe(r2.splice(0,t),n=>n.handler()),au-=t),!au){_yt();return}Xw.flush(),Uj.flush(e?Math.min(64,iu-e):16.667),Gj.flush(),Xj.flush(),Kj.flush()}function nO(){let e=new Set,t=e;return{add(n){au+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return au-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,au-=t.size,Tbe(t,o=>o(n)&&e.add(o)),au+=e.size,t=e)}}}function Tbe(e,t){e.forEach(n=>{try{t(n)}catch(o){e0.catch(o)}})}var wyt=Object.defineProperty,kyt=(e,t)=>{for(var n in t)wyt(e,n,{get:t[n],enumerable:!0})},Ii={};kyt(Ii,{assign:()=>Syt,colors:()=>wu,createStringInterpolator:()=>Qj,skipAnimation:()=>Bbe,to:()=>Ebe,willAdvance:()=>Jj});function QW(){}var qyt=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ge={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function gc(e,t){if(Ge.arr(e)){if(!Ge.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function il(e,t,n){if(Ge.arr(e)){for(let o=0;oGe.und(e)?[]:Ge.arr(e)?e:[e];function XM(e,t){if(e.size){const n=Array.from(e);e.clear(),Vn(n,t)}}var bM=(e,...t)=>XM(e,n=>n(...t)),Zj=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Qj,Ebe,wu=null,Bbe=!1,Jj=QW,Syt=e=>{e.to&&(Ebe=e.to),e.now&&(e0.now=e.now),e.colors!==void 0&&(wu=e.colors),e.skipAnimation!=null&&(Bbe=e.skipAnimation),e.createStringInterpolator&&(Qj=e.createStringInterpolator),e.requestAnimationFrame&&e0.use(e.requestAnimationFrame),e.batchedUpdates&&(e0.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Jj=e.willAdvance),e.frameLoop&&(e0.frameLoop=e.frameLoop)},GM=new Set,Ts=[],mS=[],b5=0,Gw={get idle(){return!GM.size&&!Ts.length},start(e){b5>e.priority?(GM.add(e),e0.onStart(Cyt)):(Nbe(e),e0(JW))},advance:JW,sort(e){if(b5)e0.onFrame(()=>Gw.sort(e));else{const t=Ts.indexOf(e);~t&&(Ts.splice(t,1),Lbe(e))}},clear(){Ts=[],GM.clear()}};function Cyt(){GM.forEach(Nbe),GM.clear(),e0(JW)}function Nbe(e){Ts.includes(e)||Lbe(e)}function Lbe(e){Ts.splice(Ryt(Ts,t=>t.priority>e.priority),0,e)}function JW(e){const t=mS;for(let n=0;n0}function Ryt(e,t){const n=e.findIndex(t);return n<0?e.length:n}var Wyt=(e,t,n)=>Math.min(Math.max(n,e),t),Tyt={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Oi="[-+]?\\d*\\.?\\d+",h5=Oi+"%";function Kw(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Eyt=new RegExp("rgb"+Kw(Oi,Oi,Oi)),Byt=new RegExp("rgba"+Kw(Oi,Oi,Oi,Oi)),Nyt=new RegExp("hsl"+Kw(Oi,h5,h5)),Lyt=new RegExp("hsla"+Kw(Oi,h5,h5,Oi)),jyt=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Pyt=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Iyt=/^#([0-9a-fA-F]{6})$/,Dyt=/^#([0-9a-fA-F]{8})$/;function Fyt(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Iyt.exec(e))?parseInt(t[1]+"ff",16)>>>0:wu&&wu[e]!==void 0?wu[e]:(t=Eyt.exec(e))?(Uf(t[1])<<24|Uf(t[2])<<16|Uf(t[3])<<8|255)>>>0:(t=Byt.exec(e))?(Uf(t[1])<<24|Uf(t[2])<<16|Uf(t[3])<<8|yK(t[4]))>>>0:(t=jyt.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Dyt.exec(e))?parseInt(t[1],16)>>>0:(t=Pyt.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Nyt.exec(e))?(OK(AK(t[1]),TA(t[2]),TA(t[3]))|255)>>>0:(t=Lyt.exec(e))?(OK(AK(t[1]),TA(t[2]),TA(t[3]))|yK(t[4]))>>>0:null}function MS(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function OK(e,t,n){const o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,s=MS(r,o,e+1/3),i=MS(r,o,e),c=MS(r,o,e-1/3);return Math.round(s*255)<<24|Math.round(i*255)<<16|Math.round(c*255)<<8}function Uf(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function AK(e){return(parseFloat(e)%360+360)%360/360}function yK(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function TA(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function vK(e){let t=Fyt(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,o=(t&16711680)>>>16,r=(t&65280)>>>8,s=(t&255)/255;return`rgba(${n}, ${o}, ${r}, ${s})`}var pz=(e,t,n)=>{if(Ge.fun(e))return e;if(Ge.arr(e))return pz({range:e,output:t,extrapolate:n});if(Ge.str(e.output[0]))return Qj(e);const o=e,r=o.output,s=o.range||[0,1],i=o.extrapolateLeft||o.extrapolate||"extend",c=o.extrapolateRight||o.extrapolate||"extend",l=o.easing||(u=>u);return u=>{const d=Vyt(u,s);return $yt(u,s[d],s[d+1],r[d],r[d+1],l,i,c,o.map)}};function $yt(e,t,n,o,r,s,i,c,l){let u=l?l(e):e;if(un){if(c==="identity")return u;c==="clamp"&&(u=n)}return o===r?o:t===n?e<=t?o:r:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=s(u),o===-1/0?u=-u:r===1/0?u=u+o:u=u*(r-o)+o,u)}function Vyt(e,t){for(var n=1;n=e);++n);return n-1}var Hyt=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const o=n*e,r=t==="end"?Math.floor(o):Math.ceil(o);return Wyt(0,1,r/e)},m5=1.70158,EA=m5*1.525,xK=m5+1,_K=2*Math.PI/3,wK=2*Math.PI/4.5,BA=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,Uyt={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>xK*e*e*e-m5*e*e,easeOutBack:e=>1+xK*Math.pow(e-1,3)+m5*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((EA+1)*2*e-EA)/2:(Math.pow(2*e-2,2)*((EA+1)*(e*2-2)+EA)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*_K),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*_K)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*wK))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*wK)/2+1,easeInBounce:e=>1-BA(1-e),easeOutBounce:BA,easeInOutBounce:e=>e<.5?(1-BA(1-2*e))/2:(1+BA(2*e-1))/2,steps:Hyt},fz=Symbol.for("FluidValue.get"),K2=Symbol.for("FluidValue.observers"),Cs=e=>!!(e&&e[fz]),Ar=e=>e&&e[fz]?e[fz]():e,kK=e=>e[K2]||null;function Xyt(e,t){e.eventObserved?e.eventObserved(t):e(t)}function bz(e,t){const n=e[K2];n&&n.forEach(o=>{Xyt(o,t)})}var jbe=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Gyt(this,e)}},Gyt=(e,t)=>Pbe(e,fz,t);function oO(e,t){if(e[fz]){let n=e[K2];n||Pbe(e,K2,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function hz(e,t){const n=e[K2];if(n&&n.has(t)){const o=n.size-1;o?n.delete(t):e[K2]=null,e.observerRemoved&&e.observerRemoved(o,t)}}var Pbe=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),f4=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Kyt=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,qK=new RegExp(`(${f4.source})(%|[a-z]+)`,"i"),Yyt=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Yw=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Ibe=e=>{const[t,n]=Zyt(e);if(!t||Zj())return e;const o=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(o)return o.trim();if(n&&n.startsWith("--")){const r=window.getComputedStyle(document.documentElement).getPropertyValue(n);return r||e}else{if(n&&Yw.test(n))return Ibe(n);if(n)return n}return e},Zyt=e=>{const t=Yw.exec(e);if(!t)return[,];const[,n,o]=t;return[n,o]},gS,Qyt=(e,t,n,o,r)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(o)}, ${r})`,Dbe=e=>{gS||(gS=wu?new RegExp(`(${Object.keys(wu).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(s=>Ar(s).replace(Yw,Ibe).replace(Kyt,vK).replace(gS,vK)),n=t.map(s=>s.match(f4).map(Number)),r=n[0].map((s,i)=>n.map(c=>{if(!(i in c))throw Error('The arity of each "output" value must be equal');return c[i]})).map(s=>pz({...e,output:s}));return s=>{const i=!qK.test(t[0])&&t.find(l=>qK.test(l))?.replace(f4,"");let c=0;return t[0].replace(f4,()=>`${r[c++](s)}${i||""}`).replace(Yyt,Qyt)}},Fbe="react-spring: ",$be=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${Fbe}once requires a function parameter`);return(...o)=>{n||(t(...o),n=!0)}},Jyt=$be(console.warn);function e4t(){Jyt(`${Fbe}The "interpolate" function is deprecated in v9 (use "to" instead)`)}$be(console.warn);function Zw(e){return Ge.str(e)&&(e[0]=="#"||/\d/.test(e)||!Zj()&&Yw.test(e)||e in(wu||{}))}var Vbe=Zj()?O.useEffect:O.useLayoutEffect,t4t=()=>{const e=O.useRef(!1);return Vbe(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function n4t(){const e=O.useState()[1],t=t4t();return()=>{t.current&&e(Math.random())}}function o4t(e,t){const[n]=O.useState(()=>({inputs:t,result:e()})),o=O.useRef(),r=o.current;let s=r;return s?t&&s.inputs&&r4t(t,s.inputs)||(s={inputs:t,result:e()}):s=n,O.useEffect(()=>{o.current=s,r==n&&(n.inputs=n.result=void 0)},[s]),s.result}function r4t(e,t){if(e.length!==t.length)return!1;for(let n=0;nO.useEffect(e,i4t),i4t=[],mz=Symbol.for("Animated:node"),a4t=e=>!!e&&e[mz]===e,fa=e=>e&&e[mz],eP=(e,t)=>qyt(e,mz,t),Qw=e=>e&&e[mz]&&e[mz].getPayload(),Hbe=class{constructor(){eP(this,this)}getPayload(){return this.payload||[]}},rO=class extends Hbe{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Ge.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new rO(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Ge.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Ge.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Mz=class extends rO{constructor(e){super(0),this._string=null,this._toString=pz({output:[e,e]})}static create(e){return new Mz(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(Ge.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=pz({output:[this.getValue(),e]})),this._value=0,super.reset()}},M5={dependencies:null},Jw=class extends Hbe{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return il(this.source,(n,o)=>{a4t(n)?t[o]=n.getValue(e):Cs(n)?t[o]=Ar(n):e||(t[o]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Vn(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return il(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){M5.dependencies&&Cs(e)&&M5.dependencies.add(e);const t=Qw(e);t&&Vn(t,n=>this.add(n))}},Ube=class extends Jw{constructor(e){super(e)}static create(e){return new Ube(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,o)=>n.setValue(e[o])).some(Boolean):(super.setValue(e.map(c4t)),!0)}};function c4t(e){return(Zw(e)?Mz:rO).create(e)}function eT(e){const t=fa(e);return t?t.constructor:Ge.arr(e)?Ube:Zw(e)?Mz:rO}var SK=(e,t)=>{const n=!Ge.fun(e)||e.prototype&&e.prototype.isReactComponent;return O.forwardRef((o,r)=>{const s=O.useRef(null),i=n&&O.useCallback(h=>{s.current=d4t(r,h)},[r]),[c,l]=u4t(o,t),u=n4t(),d=()=>{const h=s.current;if(n&&!h)return;(h?t.applyAnimatedValues(h,c.getValue(!0)):!1)===!1&&u()},p=new l4t(d,l),f=O.useRef();Vbe(()=>(f.current=p,Vn(l,h=>oO(h,p)),()=>{f.current&&(Vn(f.current.deps,h=>hz(h,f.current)),e0.cancel(f.current.update))})),O.useEffect(d,[]),s4t(()=>()=>{const h=f.current;Vn(h.deps,g=>hz(g,h))});const b=t.getComponentProps(c.getValue());return O.createElement(e,{...b,ref:i})})},l4t=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&e0.write(this.update)}};function u4t(e,t){const n=new Set;return M5.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Jw(e),M5.dependencies=null,[e,n]}function d4t(e,t){return e&&(Ge.fun(e)?e(t):e.current=t),t}var CK=Symbol.for("AnimatedComponent"),p4t=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=r=>new Jw(r),getComponentProps:o=r=>r}={})=>{const r={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:o},s=i=>{const c=RK(i)||"Anonymous";return Ge.str(i)?i=s[i]||(s[i]=SK(i,r)):i=i[CK]||(i[CK]=SK(i,r)),i.displayName=`Animated(${c})`,i};return il(e,(i,c)=>{Ge.arr(e)&&(c=RK(i)),s[c]=s(i)}),{animated:s}},RK=e=>Ge.str(e)?e:e&&Ge.str(e.displayName)?e.displayName:Ge.fun(e)&&e.name||null;function Gd(e,...t){return Ge.fun(e)?e(...t):e}var KM=(e,t)=>e===!0||!!(t&&e&&(Ge.fun(e)?e(t):Is(e).includes(t))),Xbe=(e,t)=>Ge.obj(e)?t&&e[t]:e,Gbe=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,f4t=e=>e,Kbe=(e,t=f4t)=>{let n=b4t;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const o={};for(const r of n){const s=t(e[r],r);Ge.und(s)||(o[r]=s)}return o},b4t=["config","onProps","onStart","onChange","onPause","onResume","onRest"],h4t={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function m4t(e){const t={};let n=0;if(il(e,(o,r)=>{h4t[r]||(t[r]=o,n++)}),n)return t}function Ybe(e){const t=m4t(e);if(t){const n={to:t};return il(e,(o,r)=>r in t||(n[r]=o)),n}return{...e}}function gz(e){return e=Ar(e),Ge.arr(e)?e.map(gz):Zw(e)?Ii.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function tT(e){return Ge.fun(e)||Ge.arr(e)&&Ge.obj(e[0])}var M4t={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},nT={...M4t.default,mass:1,damping:1,easing:Uyt.linear,clamp:!1},g4t=class{constructor(){this.velocity=0,Object.assign(this,nT)}};function z4t(e,t,n){n&&(n={...n},WK(n,t),t={...n,...t}),WK(e,t),Object.assign(e,t);for(const i in nT)e[i]==null&&(e[i]=nT[i]);let{frequency:o,damping:r}=e;const{mass:s}=e;return Ge.und(o)||(o<.01&&(o=.01),r<0&&(r=0),e.tension=Math.pow(2*Math.PI/o,2)*s,e.friction=4*Math.PI*r*s/o),e}function WK(e,t){if(!Ge.und(t.decay))e.duration=void 0;else{const n=!Ge.und(t.tension)||!Ge.und(t.friction);(n||!Ge.und(t.frequency)||!Ge.und(t.damping)||!Ge.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var TK=[],O4t=class{constructor(){this.changed=!1,this.values=TK,this.toValues=null,this.fromValues=TK,this.config=new g4t,this.immediate=!1}};function Zbe(e,{key:t,props:n,defaultProps:o,state:r,actions:s}){return new Promise((i,c)=>{let l,u,d=KM(n.cancel??o?.cancel,t);if(d)b();else{Ge.und(n.pause)||(r.paused=KM(n.pause,t));let h=o?.pause;h!==!0&&(h=r.paused||KM(h,t)),l=Gd(n.delay||0,t),h?(r.resumeQueue.add(f),s.pause()):(s.resume(),f())}function p(){r.resumeQueue.add(f),r.timeouts.delete(u),u.cancel(),l=u.time-e0.now()}function f(){l>0&&!Ii.skipAnimation?(r.delayed=!0,u=e0.setTimeout(b,l),r.pauseQueue.add(p),r.timeouts.add(u)):b()}function b(){r.delayed&&(r.delayed=!1),r.pauseQueue.delete(p),r.timeouts.delete(u),e<=(r.cancelId||0)&&(d=!0);try{s.start({...n,callId:e,cancel:d},i)}catch(h){c(h)}}})}var tP=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?s2(e.get()):t.every(n=>n.noop)?Qbe(e.get()):mi(e.get(),t.every(n=>n.finished)),Qbe=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),mi=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),s2=e=>({value:e,cancelled:!0,finished:!1});function Jbe(e,t,n,o){const{callId:r,parentId:s,onRest:i}=t,{asyncTo:c,promise:l}=n;return!s&&e===c&&!t.reset?l:n.promise=(async()=>{n.asyncId=r,n.asyncTo=e;const u=Kbe(t,(z,y)=>y==="onRest"?void 0:z);let d,p;const f=new Promise((z,y)=>(d=z,p=y)),b=z=>{const y=r<=(n.cancelId||0)&&s2(o)||r!==n.asyncId&&mi(o,!1);if(y)throw z.result=y,p(z),z},h=(z,y)=>{const x=new EK,v=new BK;return(async()=>{if(Ii.skipAnimation)throw zz(n),v.result=mi(o,!1),p(v),v;b(x);const M=Ge.obj(z)?{...z}:{...y,to:z};M.parentId=r,il(u,(_,w)=>{Ge.und(M[w])&&(M[w]=_)});const A=await o.start(M);return b(x),n.paused&&await new Promise(_=>{n.resumeQueue.add(_)}),A})()};let g;if(Ii.skipAnimation)return zz(n),mi(o,!1);try{let z;Ge.arr(e)?z=(async y=>{for(const x of y)await h(x)})(e):z=Promise.resolve(e(h,o.stop.bind(o))),await Promise.all([z.then(d),f]),g=mi(o.get(),!0,!1)}catch(z){if(z instanceof EK)g=z.result;else if(z instanceof BK)g=z.result;else throw z}finally{r==n.asyncId&&(n.asyncId=s,n.asyncTo=s?c:void 0,n.promise=s?l:void 0)}return Ge.fun(i)&&e0.batchedUpdates(()=>{i(g,o,o.item)}),g})()}function zz(e,t){XM(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var EK=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},BK=class extends Error{constructor(){super("SkipAnimationSignal")}},oT=e=>e instanceof nP,A4t=1,nP=class extends jbe{constructor(){super(...arguments),this.id=A4t++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=fa(this);return e&&e.getValue()}to(...e){return Ii.to(this,e)}interpolate(...e){return e4t(),Ii.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){bz(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Gw.sort(this),bz(this,{type:"priority",parent:this,priority:e})}},Yp=Symbol.for("SpringPhase"),e2e=1,rT=2,sT=4,zS=e=>(e[Yp]&e2e)>0,Nl=e=>(e[Yp]&rT)>0,Pm=e=>(e[Yp]&sT)>0,NK=(e,t)=>t?e[Yp]|=rT|e2e:e[Yp]&=~rT,LK=(e,t)=>t?e[Yp]|=sT:e[Yp]&=~sT,y4t=class extends nP{constructor(e,t){if(super(),this.animation=new O4t,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Ge.und(e)||!Ge.und(t)){const n=Ge.obj(e)?{...e}:{...t,from:e};Ge.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Nl(this)||this._state.asyncTo)||Pm(this)}get goal(){return Ar(this.animation.to)}get velocity(){const e=fa(this);return e instanceof rO?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return zS(this)}get isAnimating(){return Nl(this)}get isPaused(){return Pm(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const o=this.animation;let{toValues:r}=o;const{config:s}=o,i=Qw(o.to);!i&&Cs(o.to)&&(r=Is(Ar(o.to))),o.values.forEach((u,d)=>{if(u.done)return;const p=u.constructor==Mz?1:i?i[d].lastPosition:r[d];let f=o.immediate,b=p;if(!f){if(b=u.lastPosition,s.tension<=0){u.done=!0;return}let h=u.elapsedTime+=e;const g=o.fromValues[d],z=u.v0!=null?u.v0:u.v0=Ge.arr(s.velocity)?s.velocity[d]:s.velocity;let y;const x=s.precision||(g==p?.005:Math.min(1,Math.abs(p-g)*.001));if(Ge.und(s.duration))if(s.decay){const v=s.decay===!0?.998:s.decay,M=Math.exp(-(1-v)*h);b=g+z/(1-v)*(1-M),f=Math.abs(u.lastPosition-b)<=x,y=z*M}else{y=u.lastVelocity==null?z:u.lastVelocity;const v=s.restVelocity||x/10,M=s.clamp?0:s.bounce,A=!Ge.und(M),_=g==p?u.v0>0:gv,!(!w&&(f=Math.abs(p-b)<=x,f)));++C){A&&(k=b==p||b>p==_,k&&(y=-y*M,b=p));const T=-s.tension*1e-6*(b-p),W=-s.friction*.001*y,B=(T+W)/s.mass;y=y+B*q,b=b+y*q}}else{let v=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,u.durationProgress>0&&(u.elapsedTime=s.duration*u.durationProgress,h=u.elapsedTime+=e)),v=(s.progress||0)+h/this._memoizedDuration,v=v>1?1:v<0?0:v,u.durationProgress=v),b=g+s.easing(v)*(p-g),y=(b-u.lastPosition)/e,f=v==1}u.lastVelocity=y,Number.isNaN(b)&&(console.warn("Got NaN while animating:",this),f=!0)}i&&!i[d].done&&(f=!1),f?u.done=!0:t=!1,u.setValue(b,s.round)&&(n=!0)});const c=fa(this),l=c.getValue();if(t){const u=Ar(o.to);(l!==u||n)&&!s.decay?(c.setValue(u),this._onChange(u)):n&&s.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return e0.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Nl(this)){const{to:e,config:t}=this.animation;e0.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Ge.und(e)?(n=this.queue||[],this.queue=[]):n=[Ge.obj(e)?e:{...t,to:e}],Promise.all(n.map(o=>this._update(o))).then(o=>tP(this,o))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),zz(this._state,e&&this._lastCallId),e0.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:o}=e;n=Ge.obj(n)?n[t]:n,(n==null||tT(n))&&(n=void 0),o=Ge.obj(o)?o[t]:o,o==null&&(o=void 0);const r={to:n,from:o};return zS(this)||(e.reverse&&([n,o]=[o,n]),o=Ar(o),Ge.und(o)?fa(this)||this._set(n):this._set(o)),r}_update({...e},t){const{key:n,defaultProps:o}=this;e.default&&Object.assign(o,Kbe(e,(i,c)=>/^on/.test(c)?Xbe(i,n):i)),PK(this,e,"onProps"),Dm(this,"onProps",e,this);const r=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const s=this._state;return Zbe(++this._lastCallId,{key:n,props:e,defaultProps:o,state:s,actions:{pause:()=>{Pm(this)||(LK(this,!0),bM(s.pauseQueue),Dm(this,"onPause",mi(this,Im(this,this.animation.to)),this))},resume:()=>{Pm(this)&&(LK(this,!1),Nl(this)&&this._resume(),bM(s.resumeQueue),Dm(this,"onResume",mi(this,Im(this,this.animation.to)),this))},start:this._merge.bind(this,r)}}).then(i=>{if(e.loop&&i.finished&&!(t&&i.noop)){const c=t2e(e);if(c)return this._update(c,!0)}return i})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(s2(this));const o=!Ge.und(e.to),r=!Ge.und(e.from);if(o||r)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(s2(this));const{key:s,defaultProps:i,animation:c}=this,{to:l,from:u}=c;let{to:d=l,from:p=u}=e;r&&!o&&(!t.default||Ge.und(d))&&(d=p),t.reverse&&([d,p]=[p,d]);const f=!gc(p,u);f&&(c.from=p),p=Ar(p);const b=!gc(d,l);b&&this._focus(d);const h=tT(t.to),{config:g}=c,{decay:z,velocity:y}=g;(o||r)&&(g.velocity=0),t.config&&!h&&z4t(g,Gd(t.config,s),t.config!==i.config?Gd(i.config,s):void 0);let x=fa(this);if(!x||Ge.und(d))return n(mi(this,!0));const v=Ge.und(t.reset)?r&&!t.default:!Ge.und(p)&&KM(t.reset,s),M=v?p:this.get(),A=gz(d),_=Ge.num(A)||Ge.arr(A)||Zw(A),w=!h&&(!_||KM(i.immediate||t.immediate,s));if(b){const C=eT(d);if(C!==x.constructor)if(w)x=this._set(A);else throw Error(`Cannot animate between ${x.constructor.name} and ${C.name}, as the "to" prop suggests`)}const k=x.constructor;let q=Cs(d),S=!1;if(!q){const C=v||!zS(this)&&f;(b||C)&&(S=gc(gz(M),A),q=!S),(!gc(c.immediate,w)&&!w||!gc(g.decay,z)||!gc(g.velocity,y))&&(q=!0)}if(S&&Nl(this)&&(c.changed&&!v?q=!0:q||this._stop(l)),!h&&((q||Cs(l))&&(c.values=x.getPayload(),c.toValues=Cs(d)?null:k==Mz?[1]:Is(A)),c.immediate!=w&&(c.immediate=w,!w&&!v&&this._set(l)),q)){const{onRest:C}=c;Vn(v4t,W=>PK(this,t,W));const T=mi(this,Im(this,l));bM(this._pendingCalls,T),this._pendingCalls.add(n),c.changed&&e0.batchedUpdates(()=>{c.changed=!v,C?.(T,this),v?Gd(i.onRest,T):c.onStart?.(T,this)})}v&&this._set(M),h?n(Jbe(t.to,t,this._state,this)):q?this._start():Nl(this)&&!b?this._pendingCalls.add(n):n(Qbe(M))}_focus(e){const t=this.animation;e!==t.to&&(kK(this)&&this._detach(),t.to=e,kK(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Cs(t)&&(oO(t,this),oT(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Cs(e)&&hz(e,this)}_set(e,t=!0){const n=Ar(e);if(!Ge.und(n)){const o=fa(this);if(!o||!gc(n,o.getValue())){const r=eT(n);!o||o.constructor!=r?eP(this,r.create(n)):o.setValue(n),o&&e0.batchedUpdates(()=>{this._onChange(n,t)})}}return fa(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Dm(this,"onStart",mi(this,Im(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Gd(this.animation.onChange,e,this)),Gd(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;fa(this).reset(Ar(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Nl(this)||(NK(this,!0),Pm(this)||this._resume())}_resume(){Ii.skipAnimation?this.finish():Gw.start(this)}_stop(e,t){if(Nl(this)){NK(this,!1);const n=this.animation;Vn(n.values,r=>{r.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),bz(this,{type:"idle",parent:this});const o=t?s2(this.get()):mi(this.get(),Im(this,e??n.to));bM(this._pendingCalls,o),n.changed&&(n.changed=!1,Dm(this,"onRest",o,this))}}};function Im(e,t){const n=gz(t),o=gz(e.get());return gc(o,n)}function t2e(e,t=e.loop,n=e.to){const o=Gd(t);if(o){const r=o!==!0&&Ybe(o),s=(r||e).reverse,i=!r||r.reset;return iT({...e,loop:t,default:!1,pause:void 0,to:!s||tT(n)?n:void 0,from:i?e.from:void 0,reset:i,...r})}}function iT(e){const{to:t,from:n}=e=Ybe(e),o=new Set;return Ge.obj(t)&&jK(t,o),Ge.obj(n)&&jK(n,o),e.keys=o.size?Array.from(o):null,e}function jK(e,t){il(e,(n,o)=>n!=null&&t.add(o))}var v4t=["onStart","onRest","onChange","onPause","onResume"];function PK(e,t,n){e.animation[n]=t[n]!==Gbe(t,n)?Xbe(t[n],e.key):void 0}function Dm(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var x4t=["onStart","onChange","onRest"],_4t=1,w4t=class{constructor(e,t){this.id=_4t++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];Ge.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(iT(e)),this}start(e){let{queue:t}=this;return e?t=Is(e).map(iT):this.queue=[],this._flush?this._flush(this,t):(o2e(this,t),k4t(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Vn(Is(t),o=>n[o].stop(!!e))}else zz(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(Ge.und(e))this.start({pause:!0});else{const t=this.springs;Vn(Is(e),n=>t[n].pause())}return this}resume(e){if(Ge.und(e))this.start({pause:!1});else{const t=this.springs;Vn(Is(e),n=>t[n].resume())}return this}each(e){il(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,o=this._active.size>0,r=this._changed.size>0;(o&&!this._started||r&&!this._started)&&(this._started=!0,XM(e,([c,l])=>{l.value=this.get(),c(l,this,this._item)}));const s=!o&&this._started,i=r||s&&n.size?this.get():null;r&&t.size&&XM(t,([c,l])=>{l.value=i,c(l,this,this._item)}),s&&(this._started=!1,XM(n,([c,l])=>{l.value=i,c(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;e0.onFrame(this._onFrame)}};function k4t(e,t){return Promise.all(t.map(n=>n2e(e,n))).then(n=>tP(e,n))}async function n2e(e,t,n){const{keys:o,to:r,from:s,loop:i,onRest:c,onResolve:l}=t,u=Ge.obj(t.default)&&t.default;i&&(t.loop=!1),r===!1&&(t.to=null),s===!1&&(t.from=null);const d=Ge.arr(r)||Ge.fun(r)?r:void 0;d?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):Vn(x4t,g=>{const z=t[g];if(Ge.fun(z)){const y=e._events[g];t[g]=({finished:x,cancelled:v})=>{const M=y.get(z);M?(x||(M.finished=!1),v&&(M.cancelled=!0)):y.set(z,{value:null,finished:x||!1,cancelled:v||!1})},u&&(u[g]=t[g])}});const p=e._state;t.pause===!p.paused?(p.paused=t.pause,bM(t.pause?p.pauseQueue:p.resumeQueue)):p.paused&&(t.pause=!0);const f=(o||Object.keys(e.springs)).map(g=>e.springs[g].start(t)),b=t.cancel===!0||Gbe(t,"cancel")===!0;(d||b&&p.asyncId)&&f.push(Zbe(++e._lastAsyncId,{props:t,state:p,actions:{pause:QW,resume:QW,start(g,z){b?(zz(p,e._lastAsyncId),z(s2(e))):(g.onRest=c,z(Jbe(d,g,p,e)))}}})),p.paused&&await new Promise(g=>{p.resumeQueue.add(g)});const h=tP(e,await Promise.all(f));if(i&&h.finished&&!(n&&h.noop)){const g=t2e(t,i,r);if(g)return o2e(e,[g]),n2e(e,g,!0)}return l&&e0.batchedUpdates(()=>l(h,e,e.item)),h}function q4t(e,t){const n=new y4t;return n.key=e,t&&oO(n,t),n}function S4t(e,t,n){t.keys&&Vn(t.keys,o=>{(e[o]||(e[o]=n(o)))._prepareNode(t)})}function o2e(e,t){Vn(t,n=>{S4t(e.springs,n,o=>q4t(o,e))})}var oP=({children:e,...t})=>{const n=O.useContext(g5),o=t.pause||!!n.pause,r=t.immediate||!!n.immediate;t=o4t(()=>({pause:o,immediate:r}),[o,r]);const{Provider:s}=g5;return O.createElement(s,{value:t},e)},g5=C4t(oP,{});oP.Provider=g5.Provider;oP.Consumer=g5.Consumer;function C4t(e,t){return Object.assign(e,O.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var R4t=class extends nP{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=pz(...t);const n=this._get(),o=eT(n);eP(this,o.create(n))}advance(e){const t=this._get(),n=this.get();gc(t,n)||(fa(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&IK(this._active)&&OS(this)}_get(){const e=Ge.arr(this.source)?this.source.map(Ar):Is(Ar(this.source));return this.calc(...e)}_start(){this.idle&&!IK(this._active)&&(this.idle=!1,Vn(Qw(this),e=>{e.done=!1}),Ii.skipAnimation?(e0.batchedUpdates(()=>this.advance()),OS(this)):Gw.start(this))}_attach(){let e=1;Vn(Is(this.source),t=>{Cs(t)&&oO(t,this),oT(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Vn(Is(this.source),e=>{Cs(e)&&hz(e,this)}),this._active.clear(),OS(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Is(this.source).reduce((t,n)=>Math.max(t,(oT(n)?n.priority:0)+1),0))}};function W4t(e){return e.idle!==!1}function IK(e){return!e.size||Array.from(e).every(W4t)}function OS(e){e.idle||(e.idle=!0,Vn(Qw(e),t=>{t.done=!0}),bz(e,{type:"idle",parent:e}))}Ii.assign({createStringInterpolator:Dbe,to:(e,t)=>new R4t(e,t)});var r2e=/^--/;function T4t(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!r2e.test(e)&&!(YM.hasOwnProperty(e)&&YM[e])?t+"px":(""+t).trim()}var DK={};function E4t(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:o,children:r,scrollTop:s,scrollLeft:i,viewBox:c,...l}=t,u=Object.values(l),d=Object.keys(l).map(p=>n||e.hasAttribute(p)?p:DK[p]||(DK[p]=p.replace(/([A-Z])/g,f=>"-"+f.toLowerCase())));r!==void 0&&(e.textContent=r);for(const p in o)if(o.hasOwnProperty(p)){const f=T4t(p,o[p]);r2e.test(p)?e.style.setProperty(p,f):e.style[p]=f}d.forEach((p,f)=>{e.setAttribute(p,u[f])}),s!==void 0&&(e.scrollTop=s),i!==void 0&&(e.scrollLeft=i),c!==void 0&&e.setAttribute("viewBox",c)}var YM={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},B4t=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),N4t=["Webkit","Ms","Moz","O"];YM=Object.keys(YM).reduce((e,t)=>(N4t.forEach(n=>e[B4t(n,t)]=e[t]),e),YM);var L4t=/^(matrix|translate|scale|rotate|skew)/,j4t=/^(translate)/,P4t=/^(rotate|skew)/,AS=(e,t)=>Ge.num(e)&&e!==0?e+t:e,b4=(e,t)=>Ge.arr(e)?e.every(n=>b4(n,t)):Ge.num(e)?e===t:parseFloat(e)===t,I4t=class extends Jw{constructor({x:e,y:t,z:n,...o}){const r=[],s=[];(e||t||n)&&(r.push([e||0,t||0,n||0]),s.push(i=>[`translate3d(${i.map(c=>AS(c,"px")).join(",")})`,b4(i,0)])),il(o,(i,c)=>{if(c==="transform")r.push([i||""]),s.push(l=>[l,l===""]);else if(L4t.test(c)){if(delete o[c],Ge.und(i))return;const l=j4t.test(c)?"px":P4t.test(c)?"deg":"";r.push(Is(i)),s.push(c==="rotate3d"?([u,d,p,f])=>[`rotate3d(${u},${d},${p},${AS(f,l)})`,b4(f,0)]:u=>[`${c}(${u.map(d=>AS(d,l)).join(",")})`,b4(u,c.startsWith("scale")?1:0)])}}),r.length&&(o.transform=new D4t(r,s)),super(o)}},D4t=class extends jbe{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Vn(this.inputs,(n,o)=>{const r=Ar(n[0]),[s,i]=this.transforms[o](Ge.arr(r)?r:n.map(Ar));e+=" "+s,t=t&&i}),t?"none":e}observerAdded(e){e==1&&Vn(this.inputs,t=>Vn(t,n=>Cs(n)&&oO(n,this)))}observerRemoved(e){e==0&&Vn(this.inputs,t=>Vn(t,n=>Cs(n)&&hz(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),bz(this,e)}},F4t=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Ii.assign({batchedUpdates:Qo.unstable_batchedUpdates,createStringInterpolator:Dbe,colors:Tyt});var $4t=p4t(F4t,{applyAnimatedValues:E4t,createAnimatedStyle:e=>new I4t(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),V4t=$4t.animated;const H4t=200;function FK(e){return{top:e.offsetTop,left:e.offsetLeft}}function s2e({triggerAnimationOnChange:e,clientId:t}){const n=O.useRef(),{isTyping:o,getGlobalBlockCount:r,isBlockSelected:s,isFirstMultiSelectedBlock:i,isBlockMultiSelected:c,isAncestorMultiSelected:l}=D(F),{previous:u,prevRect:d}=O.useMemo(()=>({previous:n.current&&FK(n.current),prevRect:n.current&&n.current.getBoundingClientRect()}),[e]);return O.useLayoutEffect(()=>{if(!u||!n.current)return;const p=Sr(n.current),f=s(t),b=f||i(t);function h(){if(b&&d){const w=n.current.getBoundingClientRect().top-d.top;w&&(p.scrollTop+=w)}}if(window.matchMedia("(prefers-reduced-motion: reduce)").matches||o()||r()>H4t){h();return}const y=f||c(t)||l(t)?"1":"",x=new w4t({x:0,y:0,config:{mass:5,tension:2e3,friction:200},onChange({value:_}){if(!n.current)return;let{x:w,y:k}=_;w=Math.round(w),k=Math.round(k);const q=w===0&&k===0;n.current.style.transformOrigin="center center",n.current.style.transform=q?null:`translate3d(${w}px,${k}px,0)`,n.current.style.zIndex=y,h()}});n.current.style.transform=void 0;const v=FK(n.current),M=Math.round(u.left-v.left),A=Math.round(u.top-v.top);return x.start({x:0,y:0,from:{x:M,y:A}}),()=>{x.stop(),x.set({x:0,y:0})}},[u,d,t,o,r,s,i,c,l]),n}const z5=".block-editor-block-list__block",U4t=".block-list-appender",X4t=".block-editor-button-block-appender";function i2e(e,t){return e.closest(z5)===t.closest(z5)}function ZM(e,t){return t.closest([z5,U4t,X4t].join(","))===e}function QM(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(!e)return;const n=e.closest(z5);if(n)return n.id.slice(6)}function a2e(e,t){const n=Math.min(e.left,t.left),o=Math.max(e.right,t.right),r=Math.max(e.bottom,t.bottom),s=Math.min(e.top,t.top);return new window.DOMRectReadOnly(n,s,o-n,r-s)}function G4t(e){const t=e.ownerDocument.defaultView;if(!t||e.classList.contains("components-visually-hidden"))return!1;const n=e.getBoundingClientRect();if(n.width===0||n.height===0)return!1;if(e.checkVisibility)return e.checkVisibility?.({opacityProperty:!0,contentVisibilityAuto:!0,visibilityProperty:!0});const o=t.getComputedStyle(e);return!(o.display==="none"||o.visibility==="hidden"||o.opacity==="0")}function h4(e){const t=e.ownerDocument.defaultView;if(!t)return new window.DOMRectReadOnly;let n=e.getBoundingClientRect();const o=[e];let r;for(;r=o.pop();)for(const c of r.children)if(G4t(c)){const l=c.getBoundingClientRect();n=a2e(n,l),o.push(c)}const s=Math.max(n.left,0),i=Math.min(n.right,t.innerWidth);return n=new window.DOMRectReadOnly(s,n.top,i-s,n.height),n}function K4t({clientId:e,initialPosition:t}){const n=O.useRef(),{isBlockSelected:o,isMultiSelecting:r,__unstableGetEditorMode:s}=D(F);return O.useEffect(()=>{if(!o(e)||r()||s()==="zoom-out"||t==null||!n.current)return;const{ownerDocument:i}=n.current;if(ZM(n.current,i.activeElement))return;const c=Nn.tabbable.find(n.current).filter(d=>Wu(d)),l=t===-1,u=c[l?c.length-1:0]||n.current;if(!ZM(n.current,u)){i.defaultView.getSelection().removeAllRanges(),n.current.focus();return}if(!n.current.getAttribute("contenteditable")){const d=Nn.tabbable.findNext(n.current);if(d&&ZM(n.current,d)&&one(d)){d.focus();return}}lne(u,l)},[t,e]),n}function Y4t({clientId:e}){const{hoverBlock:t}=ae(F);function n(o){if(o.defaultPrevented)return;const r=o.type==="mouseover"?"add":"remove";o.preventDefault(),o.currentTarget.classList[r]("is-hovered"),t(r==="add"?e:null)}return Et(o=>(o.addEventListener("mouseout",n),o.addEventListener("mouseover",n),()=>{o.removeEventListener("mouseout",n),o.removeEventListener("mouseover",n),o.classList.remove("is-hovered"),t(null)}),[])}function Z4t(e){const{isBlockSelected:t}=D(F),{selectBlock:n,selectionChange:o}=ae(F);return Et(r=>{function s(i){if(!r.parentElement.closest('[contenteditable="true"]')){if(t(e)){i.target.isContentEditable||o(e);return}ZM(r,i.target)&&n(e)}}return r.addEventListener("focusin",s),()=>{r.removeEventListener("focusin",s)}},[t,n])}function Q4t({clientId:e,isSelected:t}){const{getBlockRootClientId:n,getBlockIndex:o}=D(F),{insertAfterBlock:r,removeBlock:s}=ae(F);return Et(i=>{if(!t)return;function c(u){const{keyCode:d,target:p}=u;d!==y1&&d!==Si&&d!==_a||p!==i||Wu(p)||(u.preventDefault(),d===y1?r(e):s(e))}function l(u){u.preventDefault()}return i.addEventListener("keydown",c),i.addEventListener("dragstart",l),()=>{i.removeEventListener("keydown",c),i.removeEventListener("dragstart",l)}},[e,t,n,o,r,s])}function J4t(e){const{isNavigationMode:t,isBlockSelected:n}=D(F),{setNavigationMode:o,selectBlock:r}=ae(F);return Et(s=>{function i(c){t()&&!c.defaultPrevented&&(c.preventDefault(),n(e)?o(!1):r(e))}return s.addEventListener("mousedown",i),()=>{s.removeEventListener("mousedown",i)}},[e,t,n,o])}function evt({editorMode:e}){const{__unstableSetEditorMode:t}=Fe(ae(F));return Et(n=>{if(e!=="zoom-out")return;function o(r){r.defaultPrevented||(r.preventDefault(),t("edit"))}return n.addEventListener("dblclick",o),()=>{n.removeEventListener("dblclick",o)}},[e,t])}function tvt(){const e=O.useContext(Whe);return Et(t=>{if(e)return e.observe(t),()=>{e.unobserve(t)}},[e])}function nvt({isSelected:e}){const t=Zs();return Et(n=>{if(e){const{ownerDocument:o}=n,{defaultView:r}=o;if(!r.IntersectionObserver)return;const s=new r.IntersectionObserver(i=>{i[0].isIntersecting||n.scrollIntoView({behavior:t?"instant":"smooth"}),s.disconnect()});return s.observe(n),()=>{s.disconnect()}}},[e])}function c2e({clientId:e="",isEnabled:t=!0}={}){const{getEnabledClientIdsTree:n}=Fe(D(F));return Et(o=>{if(!t)return;const r=()=>{n(e).forEach(({clientId:i})=>{const c=o.querySelector(`[data-block="${i}"]`);c&&(c.classList.remove("has-editable-outline"),c.offsetWidth,c.classList.add("has-editable-outline"))})},s=i=>{(i.target===o||i.target.classList.contains("is-root-container"))&&(i.defaultPrevented||(i.preventDefault(),r()))};return o.addEventListener("click",s),()=>o.removeEventListener("click",s)},[t])}function rP(e){if(e.includes(" "))return!1;const n=zx(e),o=pB(n),r=ovt(e),s=e?.startsWith("www."),i=e?.startsWith("#")&&GR(e);return o||s||i||r}function ovt(e,t=6){const n=e.split(/[?#]/)[0];return new RegExp(`(?<=\\S)\\.(?:[a-zA-Z_]{2,${t}})(?:\\/|$)`).test(n)}const ek={"core/paragraph":["content"],"core/heading":["content"],"core/image":["id","url","title","alt"],"core/button":["url","text","linkTarget","rel"]},l2e="__default";function rvt(e,t){if(t?.[l2e]?.source==="core/pattern-overrides"){const n=ek[e],o={};for(const r of n){const s=t[r]?t[r]:{source:"core/pattern-overrides"};o[r]=s}return o}return t}function tk(e){return e in ek}function aT(e,t){return tk(e)&&ek[e].includes(t)}function svt(e){return ek[e]}const ivt=Sn(e=>t=>{const n=h0(),o=O.useContext(Xp),r=D(b=>Fe(b($e)).getAllBlockBindingsSources()),{name:s,clientId:i}=t,c=!!t.context["pattern/overrides"],l=t.attributes.metadata?.bindings?.[l2e]?.source==="core/pattern-overrides",u=O.useMemo(()=>rvt(s,t.attributes.metadata?.bindings),[t.attributes.metadata?.bindings,s]),d=D(()=>{if(!u)return;const b={},h=new Map;for(const[g,z]of Object.entries(u)){const{source:y,args:x}=z,v=r[y];!v||!aT(s,g)||h.set(v,{...h.get(v),[g]:{args:x}})}if(h.size)for(const[g,z]of h){const y={};if(g.usesContext?.length)for(const v of g.usesContext)y[v]=o[v];let x={};g.getValues?x=g.getValues({registry:n,context:y,clientId:i,bindings:z}):Object.keys(z).forEach(v=>{x[v]=z[v].args?.key||g.label});for(const[v,M]of Object.entries(x))v==="url"&&(!M||!rP(M))?b[v]=null:b[v]=M}return b},[u,s,i,o,n,r]),{setAttributes:p}=t,f=O.useCallback(b=>{n.batch(()=>{if(!u){p(b);return}const h={...b},g=new Map;for(const[z,y]of Object.entries(h)){if(!u[z]||!aT(s,z))continue;const x=u[z],v=r[x?.source];v?.setValues&&(g.set(v,{...g.get(v),[z]:{args:x.args,newValue:y}}),delete h[z])}if(g.size)for(const[z,y]of g){const x={};if(z.usesContext?.length)for(const v of z.usesContext)x[v]=o[v];z.setValues({registry:n,context:x,clientId:i,bindings:y})}!(l&&c)&&Object.keys(h).length&&(l&&(delete h?.caption,delete h?.href),p(h))})},[n,u,s,i,o,p,r,l,c]);return a.jsx(a.Fragment,{children:a.jsx(e,{...t,attributes:{...t.attributes,...d},setAttributes:f})})},"withBlockBindingSupport");function avt(e,t){return tk(t)?{...e,edit:ivt(e.edit)}:e}r0("blocks.registerBlockType","core/editor/custom-sources-backwards-compatibility/shim-attribute-source",avt);function ze(e={},{__unstableIsHtml:t}={}){const{clientId:n,className:o,wrapperProps:r={},isAligned:s,index:i,mode:c,name:l,blockApiVersion:u,blockTitle:d,editorMode:p,isSelected:f,isSubtreeDisabled:b,hasOverlay:h,initialPosition:g,blockEditingMode:z,isHighlighted:y,isMultiSelected:x,isPartiallySelected:v,isReusable:M,isDragging:A,hasChildSelected:_,isBlockMovingMode:w,canInsertMovingBlock:k,isEditingDisabled:q,hasEditableOutline:S,isTemporarilyEditingAsBlocks:C,defaultClassName:T,templateLock:W}=O.useContext(lz),B=le(m("Block: %s"),d),N=c==="html"&&!t?"-visual":"",E=Gt([e.ref,K4t({clientId:n,initialPosition:g}),YAt(n),Z4t(n),Q4t({clientId:n,isSelected:f}),J4t(n),evt({editorMode:p}),Y4t({clientId:n}),tvt(),s2e({triggerAnimationOnChange:i,clientId:n}),wB({isDisabled:!h}),c2e({clientId:n,isEnabled:l==="core/block"||W==="contentOnly"}),nvt({isSelected:f})]),L=eo(),P=!!L[WN]&&tk(l)?{"--wp-admin-theme-color":"var(--wp-block-synced-color)","--wp-admin-theme-color--rgb":"var(--wp-block-synced-color--rgb)"}:{};u<2&&n===L.clientId&&globalThis.SCRIPT_DEBUG===!0&&Xt(`Block type "${l}" must support API version 2 or higher to work correctly with "useBlockProps" method.`);let H=!1;return(r?.style?.marginTop?.charAt(0)==="-"||r?.style?.marginBottom?.charAt(0)==="-"||r?.style?.marginLeft?.charAt(0)==="-"||r?.style?.marginRight?.charAt(0)==="-")&&(H=!0),{tabIndex:z==="disabled"?-1:0,...r,...e,ref:E,id:`block-${n}${N}`,role:"document","aria-label":B,"data-block":n,"data-type":l,"data-title":d,inert:b?"true":void 0,className:$("block-editor-block-list__block",{"wp-block":!s,"has-block-overlay":h,"is-selected":f,"is-highlighted":y,"is-multi-selected":x,"is-partially-selected":v,"is-reusable":M,"is-dragging":A,"has-child-selected":_,"is-block-moving-mode":w,"can-insert-moving-block":k,"is-editing-disabled":q,"has-editable-outline":S,"has-negative-margin":H,"is-content-locked-temporarily-editing-as-blocks":C},o,e.className,r.className,T),style:{...r.style,...e.style,...P}}}ze.save=wv;function cvt(e,t){const n={...e,...t};return e?.hasOwnProperty("className")&&t?.hasOwnProperty("className")&&(n.className=$(e.className,t.className)),e?.hasOwnProperty("style")&&t?.hasOwnProperty("style")&&(n.style={...e.style,...t.style}),n}function NA({children:e,isHtml:t,...n}){return a.jsx("div",{...ze(n,{__unstableIsHtml:t}),children:e})}function cT({block:{__unstableBlockSource:e},mode:t,isLocked:n,canRemove:o,clientId:r,isSelected:s,isSelectionEnabled:i,className:c,__unstableLayoutClassNames:l,name:u,isValid:d,attributes:p,wrapperProps:f,setAttributes:b,onReplace:h,onInsertBlocksAfter:g,onMerge:z,toggleSelection:y}){var x;const{mayDisplayControls:v,mayDisplayParentControls:M,themeSupportsLayout:A,..._}=O.useContext(lz),{removeBlock:w}=ae(F),k=O.useCallback(()=>w(r),[r,w]),q=Hw()||{};let S=a.jsx(j3t,{name:u,isSelected:s,attributes:p,setAttributes:b,insertBlocksAfter:n?void 0:g,onReplace:o?h:void 0,onRemove:o?k:void 0,mergeBlocks:o?z:void 0,clientId:r,isSelectionEnabled:i,toggleSelection:y,__unstableLayoutClassNames:l,__unstableParentLayout:Object.keys(q).length?q:void 0,mayDisplayControls:v,mayDisplayParentControls:M,blockEditingMode:_.blockEditingMode,isPreviewMode:_.isPreviewMode});const C=Dt(u);C?.getEditWrapperProps&&(f=cvt(f,C.getEditWrapperProps(p)));const T=f&&!!f["data-align"]&&!A,W=c?.includes("is-position-sticky");T&&(S=a.jsx("div",{className:$("wp-block",W&&c),"data-align":f["data-align"],children:S}));let B;if(d)t==="html"?B=a.jsxs(a.Fragment,{children:[a.jsx("div",{style:{display:"none"},children:S}),a.jsx(NA,{isHtml:!0,children:a.jsx(xyt,{clientId:r})})]}):C?.apiVersion>1?B=S:B=a.jsx(NA,{children:S});else{const I=e?Tg(e):mf(C,p);B=a.jsxs(NA,{className:"has-warning",children:[a.jsx(syt,{clientId:r}),a.jsx(C1,{children:wx(I)})]})}const{"data-align":N,...E}=(x=f)!==null&&x!==void 0?x:{},L={...E,className:$(E.className,N&&A&&`align${N}`,!(N&&W)&&c)};return a.jsx(lz.Provider,{value:{wrapperProps:L,isAligned:T,..._},children:a.jsx(cyt,{fallback:a.jsx(NA,{className:"has-warning",children:a.jsx(ayt,{})}),children:B})})}const lvt=Fi((e,t,n)=>{const{updateBlockAttributes:o,insertBlocks:r,mergeBlocks:s,replaceBlocks:i,toggleSelection:c,__unstableMarkLastChangeAsPersistent:l,moveBlocksToPosition:u,removeBlock:d,selectBlock:p}=e(F);return{setAttributes(f){const{getMultiSelectedBlockClientIds:b}=n.select(F),h=b(),{clientId:g}=t,z=h.length?h:[g];o(z,f)},onInsertBlocks(f,b){const{rootClientId:h}=t;r(f,b,h)},onInsertBlocksAfter(f){const{clientId:b,rootClientId:h}=t,{getBlockIndex:g}=n.select(F),z=g(b);r(f,z+1,h)},onMerge(f){const{clientId:b,rootClientId:h}=t,{getPreviousBlockClientId:g,getNextBlockClientId:z,getBlock:y,getBlockAttributes:x,getBlockName:v,getBlockOrder:M,getBlockIndex:A,getBlockRootClientId:_,canInsertBlockType:w}=n.select(F);function k(){const S=y(b),C=jn();if(v(b)!==C){const T=l1(S,C);T&&T.length&&i(b,T)}else if(Yc(S)){const T=z(b);T&&n.batch(()=>{d(b),p(T)})}}function q(S,C=!0){const T=_(S),W=M(S),[B]=W;W.length===1&&Kb(y(B))?d(S):n.batch(()=>{if(w(v(B),T))u([B],S,T,A(S));else{const N=l1(y(B),jn());N&&N.length&&N.every(E=>w(E.name,T))?(r(N,A(S),T,C),d(B,!1)):k()}!M(S).length&&Kb(y(S))&&d(S,!1)})}if(f){if(h){const C=z(h);if(C)if(v(h)===v(C)){const T=x(h),W=x(C);if(Object.keys(T).every(B=>T[B]===W[B])){n.batch(()=>{u(M(C),C,h),d(C,!1)});return}}else{s(h,C);return}}const S=z(b);if(!S)return;M(S).length?q(S,!1):s(b,S)}else{const S=g(b);if(S)s(S,b);else if(h){const C=g(h);if(C&&v(h)===v(C)){const T=x(h),W=x(C);if(Object.keys(T).every(B=>T[B]===W[B])){n.batch(()=>{u(M(h),h,C),d(h,!1)});return}}q(h)}else k()}},onReplace(f,b,h){f.length&&!Yc(f[f.length-1])&&l();const g=f?.length===1&&Array.isArray(f[0])?f[0]:f;i([t.clientId],g,b,h)},toggleSelection(f){c(f)}}});cT=v0(lvt,gd("editor.BlockListBlock"))(cT);function uvt(e){const{clientId:t,rootClientId:n}=e,o=D(ee=>{const{isBlockSelected:ie,getBlockMode:se,isSelectionEnabled:be,getTemplateLock:ye,getBlockWithoutAttributes:xe,getBlockAttributes:K,canRemoveBlock:pe,canMoveBlock:G,getSettings:re,getTemporarilyEditingAsBlocks:Me,getBlockEditingMode:he,getBlockName:Q,isFirstMultiSelectedBlock:R,getMultiSelectedBlockClientIds:j,hasSelectedInnerBlock:V,getBlocksByName:de,getBlockIndex:ge,isBlockMultiSelected:ve,isBlockSubtreeDisabled:Ne,isBlockHighlighted:et,__unstableIsFullySelected:mt,__unstableSelectionHasUnmergeableBlock:Mt,isBlockBeingDragged:Ke,isDragging:Nt,hasBlockMovingClientId:zt,canInsertBlockType:Ue,__unstableHasActiveBlockOverlayActive:Xe,__unstableGetEditorMode:ot,getSelectedBlocksInitialCaretPosition:Ct}=Fe(ee(F)),n0=xe(t);if(!n0)return;const{hasBlockSupport:o1,getActiveBlockVariation:B1}=ee($e),p1=K(t),{name:Ot,isValid:k0}=n0,f1=Dt(Ot),{supportsLayout:dr,__unstableIsPreviewMode:pr}=re(),si=f1?.apiVersion>1,fr={isPreviewMode:pr,blockWithoutAttributes:n0,name:Ot,attributes:p1,isValid:k0,themeSupportsLayout:dr,index:ge(t),isReusable:dd(f1),className:si?p1.className:void 0,defaultClassName:si?_v(Ot):void 0,blockTitle:f1?.title};if(pr)return fr;const N1=ie(t),pt=pe(t),We=G(t),rt=B1(Ot,p1),Ft=ve(t),nn=V(t,!0),j0=zt(),r1=he(t),br=st(Ot,"multiple",!0)?[]:de(Ot),b1=br.length&&br[0]!==t,Yi=ot();return{...fr,mode:se(t),isSelectionEnabled:be(),isLocked:!!ye(n),templateLock:ye(t),canRemove:pt,canMove:We,isSelected:N1,isTemporarilyEditingAsBlocks:Me()===t,blockEditingMode:r1,mayDisplayControls:N1||R(t)&&j().every(Tn=>Q(Tn)===Ot),mayDisplayParentControls:o1(Q(t),"__experimentalExposeControlsToChildren",!1)&&V(t),blockApiVersion:f1?.apiVersion||1,blockTitle:rt?.title||f1?.title,editorMode:Yi,isSubtreeDisabled:r1==="disabled"&&Ne(t),hasOverlay:Xe(t)&&!Nt(),initialPosition:N1&&(Yi==="edit"||Yi==="zoom-out")?Ct():void 0,isHighlighted:et(t),isMultiSelected:Ft,isPartiallySelected:Ft&&!mt()&&!Mt(),isDragging:Ke(t),hasChildSelected:nn,isBlockMovingMode:!!j0,canInsertMovingBlock:j0&&Ue(Q(j0),n),isEditingDisabled:r1==="disabled",hasEditableOutline:r1!=="disabled"&&he(n)==="disabled",originalBlockClientId:b1?br[0]:!1}},[t,n]),{isPreviewMode:r,mode:s="visual",isSelectionEnabled:i=!1,isLocked:c=!1,canRemove:l=!1,canMove:u=!1,blockWithoutAttributes:d,name:p,attributes:f,isValid:b,isSelected:h=!1,themeSupportsLayout:g,isTemporarilyEditingAsBlocks:z,blockEditingMode:y,editorMode:x,mayDisplayControls:v,mayDisplayParentControls:M,index:A,blockApiVersion:_,blockTitle:w,isSubtreeDisabled:k,hasOverlay:q,initialPosition:S,isHighlighted:C,isMultiSelected:T,isPartiallySelected:W,isReusable:B,isDragging:N,hasChildSelected:E,isBlockMovingMode:L,canInsertMovingBlock:I,templateLock:P,isEditingDisabled:H,hasEditableOutline:U,className:X,defaultClassName:Z,originalBlockClientId:ne}=o,oe=O.useMemo(()=>({...d,attributes:f}),[d,f]);if(!o)return null;const Y={isPreviewMode:r,clientId:t,className:X,index:A,mode:s,name:p,blockApiVersion:_,blockTitle:w,isSelected:h,isSubtreeDisabled:k,hasOverlay:q,initialPosition:S,blockEditingMode:y,editorMode:x,isHighlighted:C,isMultiSelected:T,isPartiallySelected:W,isReusable:B,isDragging:N,hasChildSelected:E,isBlockMovingMode:L,canInsertMovingBlock:I,templateLock:P,isEditingDisabled:H,hasEditableOutline:U,isTemporarilyEditingAsBlocks:z,defaultClassName:Z,mayDisplayControls:v,mayDisplayParentControls:M,originalBlockClientId:ne,themeSupportsLayout:g};return a.jsx(lz.Provider,{value:Y,children:a.jsx(cT,{...e,mode:s,isSelectionEnabled:i,isLocked:c,canRemove:l,canMove:u,block:oe,name:p,attributes:f,isValid:b,isSelected:h})})}const dvt=O.memo(uvt),$K=[z1(m("While writing, you can press / to quickly insert new blocks."),{kbd:a.jsx("kbd",{})}),z1(m("Indent a list by pressing space at the beginning of a line."),{kbd:a.jsx("kbd",{})}),z1(m("Outdent a list by pressing backspace at the beginning of a line."),{kbd:a.jsx("kbd",{})}),m("Drag files into the editor to automatically insert media blocks."),m("Change a block's type by pressing the block icon on the toolbar.")];function pvt(){const[e]=O.useState(Math.floor(Math.random()*$K.length));return a.jsx(u2t,{children:$K[e]})}function sP({title:e,icon:t,description:n,blockType:o,className:r}){o&&(Re("`blockType` property in `BlockCard component`",{since:"5.7",alternative:"`title, icon and description` properties"}),{title:e,icon:t,description:n}=o);const{parentNavBlockClientId:s}=D(c=>{const{getSelectedBlockClientId:l,getBlockParentsByBlockName:u}=c(F),d=l();return{parentNavBlockClientId:u(d,"core/navigation",!0)[0]}},[]),{selectBlock:i}=ae(F);return a.jsxs("div",{className:$("block-editor-block-card",r),children:[s&&a.jsx(fe,{onClick:()=>i(s),label:m("Go to parent Navigation block"),style:{minWidth:24,padding:0},icon:ft()?Ei:Fa,size:"small"}),a.jsx(b0,{icon:t,showColors:!0}),a.jsxs(Ye,{spacing:1,children:[a.jsx("h2",{className:"block-editor-block-card__title",children:e}),n&&a.jsx(l0,{className:"block-editor-block-card__description",children:n})]})]})}function fvt(e,t,n){if(!n)return t;let o=e.get(t);return o||(o=SB({},t),o.registerStore(v1,Nw),e.set(t,o)),o}const bvt=Sn(e=>({useSubRegistry:t=!0,...n})=>{const o=h0(),[r]=O.useState(()=>new WeakMap),s=fvt(r,o,t);return s===o?a.jsx(e,{registry:o,...n}):a.jsx(Ene,{value:s,children:a.jsx(e,{registry:s,...n})})},"withRegistryProvider"),VK=()=>{};function u2e({clientId:e=null,value:t,selection:n,onChange:o=VK,onInput:r=VK}){const s=h0(),{resetBlocks:i,resetSelection:c,replaceInnerBlocks:l,setHasControlledInnerBlocks:u,__unstableMarkNextChangeAsNotPersistent:d}=s.dispatch(F),{getBlockName:p,getBlocks:f,getSelectionStart:b,getSelectionEnd:h}=s.select(F),g=D(w=>!e||w(F).areInnerBlocksControlled(e),[e]),z=O.useRef({incoming:null,outgoing:[]}),y=O.useRef(!1),x=()=>{t&&(d(),e?s.batch(()=>{u(e,!0);const w=t.map(k=>pn(k));y.current&&(z.current.incoming=w),d(),l(e,w)}):(y.current&&(z.current.incoming=t),i(t)))},v=()=>{d(),e?(u(e,!1),d(),l(e,[])):i([])},M=O.useRef(r),A=O.useRef(o);O.useEffect(()=>{M.current=r,A.current=o},[r,o]),O.useEffect(()=>{z.current.outgoing.includes(t)?z.current.outgoing[z.current.outgoing.length-1]===t&&(z.current.outgoing=[]):f(e)!==t&&(z.current.outgoing=[],x(),n&&c(n.selectionStart,n.selectionEnd,n.initialPosition))},[t,e]);const _=O.useRef(!1);O.useEffect(()=>{if(!_.current){_.current=!0;return}g||(z.current.outgoing=[],x())},[g]),O.useEffect(()=>{const{getSelectedBlocksInitialCaretPosition:w,isLastBlockChangePersistent:k,__unstableIsLastBlockChangeIgnored:q,areInnerBlocksControlled:S}=s.select(F);let C=f(e),T=k(),W=!1;y.current=!0;const B=s.subscribe(()=>{if(e!==null&&p(e)===null||!(!e||S(e)))return;const E=k(),L=f(e),I=L!==C;if(C=L,I&&(z.current.incoming||q())){z.current.incoming=null,T=E;return}(I||W&&!I&&E&&!T)&&(T=E,z.current.outgoing.push(C),(T?A.current:M.current)(C,{selection:{selectionStart:b(),selectionEnd:h(),initialPosition:w()}})),W=I},F);return()=>{y.current=!1,B()}},[s,e]),O.useEffect(()=>()=>{v()},[])}function hvt(e={},t){switch(t.type){case"REGISTER_SHORTCUT":return{...e,[t.name]:{category:t.category,keyCombination:t.keyCombination,aliases:t.aliases,description:t.description}};case"UNREGISTER_SHORTCUT":const{[t.name]:n,...o}=e;return o}return e}function mvt({name:e,category:t,description:n,keyCombination:o,aliases:r}){return{type:"REGISTER_SHORTCUT",name:e,category:t,keyCombination:o,aliases:r,description:n}}function Mvt(e){return{type:"UNREGISTER_SHORTCUT",name:e}}const gvt=Object.freeze(Object.defineProperty({__proto__:null,registerShortcut:mvt,unregisterShortcut:Mvt},Symbol.toStringTag,{value:"Module"})),zvt=[],Ovt={display:Jo,raw:H6e,ariaLabel:hne};function d2e(e,t){return e?e.modifier?Ovt[t][e.modifier](e.character):e.character:null}function iP(e,t){return e[t]?e[t].keyCombination:null}function Avt(e,t,n="display"){const o=iP(e,t);return d2e(o,n)}function yvt(e,t){return e[t]?e[t].description:null}function p2e(e,t){return e[t]&&e[t].aliases?e[t].aliases:zvt}const f2e=at((e,t)=>[iP(e,t),...p2e(e,t)].filter(Boolean),(e,t)=>[e[t]]),vvt=at((e,t)=>f2e(e,t).map(n=>d2e(n,"raw")),(e,t)=>[e[t]]),xvt=at((e,t)=>Object.entries(e).filter(([,n])=>n.category===t).map(([n])=>n),e=>[e]),_vt=Object.freeze(Object.defineProperty({__proto__:null,getAllShortcutKeyCombinations:f2e,getAllShortcutRawKeyCombinations:vvt,getCategoryShortcuts:xvt,getShortcutAliases:p2e,getShortcutDescription:yvt,getShortcutKeyCombination:iP,getShortcutRepresentation:Avt},Symbol.toStringTag,{value:"Module"})),wvt="core/keyboard-shortcuts",Br=er(wvt,{reducer:hvt,actions:gvt,selectors:_vt});Qs(Br);function nk(){const{getAllShortcutKeyCombinations:e}=D(Br);function t(n,o){return e(n).some(({modifier:r,character:s})=>Fs[r](o,s))}return t}const hM=new Set,HK=e=>{for(const t of hM)t(e)},kvt=O.createContext({add:e=>{hM.size===0&&document.addEventListener("keydown",HK),hM.add(e)},delete:e=>{hM.delete(e),hM.size===0&&document.removeEventListener("keydown",HK)}});function Ur(e,t,{isDisabled:n=!1}={}){const o=O.useContext(kvt),r=nk(),s=O.useRef();O.useEffect(()=>{s.current=t},[t]),O.useEffect(()=>{if(n)return;function i(c){r(e,c)&&s.current(c)}return o.add(i),()=>{o.delete(i)}},[e,n,o])}function b2e(){return null}function qvt(){const{registerShortcut:e}=ae(Br);return O.useEffect(()=>{e({name:"core/block-editor/duplicate",category:"block",description:m("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:m("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:m("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:m("Insert a new block after the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"y"}}),e({name:"core/block-editor/delete-multi-selection",category:"block",description:m("Delete selection."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:m("Select all text when typing. Press again to select all blocks."),keyCombination:{modifier:"primary",character:"a"}}),e({name:"core/block-editor/unselect",category:"selection",description:m("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/multi-text-selection",category:"selection",description:m("Select text across multiple blocks."),keyCombination:{modifier:"shift",character:"arrow"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:m("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:m("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:m("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}}),e({name:"core/block-editor/collapse-list-view",category:"list-view",description:m("Collapse all other items."),keyCombination:{modifier:"alt",character:"l"}}),e({name:"core/block-editor/group",category:"block",description:m("Create a group block from the selected multiple blocks."),keyCombination:{modifier:"primary",character:"g"}})},[e]),null}b2e.Register=qvt;const ok=bvt(e=>{const{children:t,settings:n,stripExperimentalSettings:o=!1}=e,{__experimentalUpdateSettings:r}=Fe(ae(F));return O.useEffect(()=>{r({...n,__internalIsInitialized:!0},{stripExperimentalSettings:o,reset:!0})},[n,o,r]),u2e(e),a.jsxs(rtt,{passthrough:!0,children:[!n?.__unstableIsPreviewMode&&a.jsx(b2e.Register,{}),a.jsx(KAt,{children:t})]})}),Svt=e=>a.jsx(ok,{...e,stripExperimentalSettings:!0,children:e.children});function aP(){const{getSettings:e,hasSelectedBlock:t,hasMultiSelection:n}=D(F),{clearSelectedBlock:o}=ae(F),{clearBlockSelection:r}=e();return Et(s=>{if(!r)return;function i(c){!t()&&!n()||c.target===s&&o()}return s.addEventListener("mousedown",i),()=>{s.removeEventListener("mousedown",i)}},[t,n,o,r])}function Cvt(e){const{isMultiSelecting:t,getMultiSelectedBlockClientIds:n,hasMultiSelection:o,getSelectedBlockClientId:r,getSelectedBlocksInitialCaretPosition:s,__unstableIsFullySelected:i}=e(F);return{isMultiSelecting:t(),multiSelectedBlockClientIds:n(),hasMultiSelection:o(),selectedBlockClientId:r(),initialPosition:s(),isFullSelection:i()}}function Rvt(){const{initialPosition:e,isMultiSelecting:t,multiSelectedBlockClientIds:n,hasMultiSelection:o,selectedBlockClientId:r,isFullSelection:s}=D(Cvt,[]);return Et(i=>{const{ownerDocument:c}=i,{defaultView:l}=c;if(e==null||!o||t)return;const{length:u}=n;u<2||s&&(i.contentEditable=!0,i.focus(),l.getSelection().removeAllRanges())},[o,t,n,r,e,s])}function Wvt(){const e=O.useRef(),t=O.useRef(),n=O.useRef(),{hasMultiSelection:o,getSelectedBlockClientId:r,getBlockCount:s}=D(F),{setNavigationMode:i,setLastFocus:c}=Fe(ae(F)),l=D(y=>y(F).isNavigationMode(),[]),{getLastFocus:u}=Fe(D(F)),d=l?void 0:"0",p=O.useRef();function f(y){if(p.current)p.current=null;else if(o())e.current.focus();else if(r())u()?.current?u().current.focus():e.current.querySelector(`[data-block="${r()}"]`).focus();else{i(!0);const x=e.current.ownerDocument===y.target.ownerDocument?e.current:e.current.ownerDocument.defaultView.frameElement,v=y.target.compareDocumentPosition(x)&y.target.DOCUMENT_POSITION_FOLLOWING,M=Nn.tabbable.find(e.current);M.length&&(v?M[0]:M[M.length-1]).focus()}}const b=a.jsx("div",{ref:t,tabIndex:d,onFocus:f}),h=a.jsx("div",{ref:n,tabIndex:d,onFocus:f}),g=Et(y=>{function x(w){if(w.defaultPrevented)return;if(w.keyCode===Ea&&!o()){w.preventDefault(),i(!0);return}if(w.keyCode!==qp)return;const k=w.shiftKey,q=k?"findPrevious":"findNext";if(!o()&&!r()){w.target===y&&i(!0);return}const S=Nn.tabbable[q](w.target),C=w.target.closest("[data-block]"),T=C&&S&&(i2e(C,S)||ZM(C,S));if(one(S)&&T)return;const W=k?t:n;p.current=!0,W.current.focus({preventScroll:!0})}function v(w){c({...u(),current:w.target});const{ownerDocument:k}=y;!w.relatedTarget&&k.activeElement===k.body&&s()===0&&y.focus()}function M(w){if(w.keyCode!==qp||w.target?.getAttribute("role")==="region"||e.current===w.target)return;const q=w.shiftKey?"findPrevious":"findNext",S=Nn.tabbable[q](w.target);(S===t.current||S===n.current)&&(w.preventDefault(),S.focus({preventScroll:!0}))}const{ownerDocument:A}=y,{defaultView:_}=A;return _.addEventListener("keydown",M),y.addEventListener("keydown",x),y.addEventListener("focusout",v),()=>{_.removeEventListener("keydown",M),y.removeEventListener("keydown",x),y.removeEventListener("focusout",v)}},[]),z=Gt([e,g]);return[b,z,h]}function Tvt(e){const t="",n=e.indexOf(t);if(n>-1)e=e.substring(n+t.length);else return e;const r=e.indexOf("");return r>-1&&(e=e.substring(0,r)),e}function Evt(e){const t="";return e.startsWith(t)?e.slice(t.length):e}function cP({clipboardData:e}){let t="",n="";try{t=e.getData("text/plain"),n=e.getData("text/html")}catch{return}n=Tvt(n),n=Evt(n);const o=av(e);return o.length&&!Bvt(o,n)?{files:o}:{html:n,plainText:t,files:[]}}function Bvt(e,t){if(t&&e?.length===1&&e[0].type.indexOf("image/")===0){const n=/<\s*img\b/gi;if(t.match(n)?.length!==1)return!0;const o=/<\s*img\b[^>]*\bsrc="file:\/\//i;if(t.match(o))return!0}return!1}const h2e=Symbol("requiresWrapperOnCopy");function m2e(e,t,n){let o=t;const[r]=t;if(r&&n.select($e).getBlockType(r.name)[h2e]){const{getBlockRootClientId:c,getBlockName:l,getBlockAttributes:u}=n.select(F),d=c(r.clientId),p=l(d);p&&(o=me(p,u(d),o))}const s=Pr(o);e.clipboardData.setData("text/plain",Lvt(s)),e.clipboardData.setData("text/html",s)}function Nvt(e,t){const{plainText:n,html:o,files:r}=cP(e);let s=[];if(r.length){const i=Ys("from");s=r.reduce((c,l)=>{const u=Ia(i,d=>d.type==="files"&&d.isMatch([l]));return u&&c.push(u.transform([l])),c},[]).flat()}else s=Mf({HTML:o,plainText:n,mode:"BLOCKS",canUserUseUnfilteredHTML:t});return s}function Lvt(e){return e=e.replace(/
/g,` +*/(function(e,t){(function(n,o){o(e,t)})(In,function(n,o){var r=typeof Map=="function"?new Map:function(){var d=[],p=[];return{has:function(b){return d.indexOf(b)>-1},get:function(b){return p[d.indexOf(b)]},set:function(b,h){d.indexOf(b)===-1&&(d.push(b),p.push(h))},delete:function(b){var h=d.indexOf(b);h>-1&&(d.splice(h,1),p.splice(h,1))}}}(),s=function(p){return new Event(p,{bubbles:!0})};try{new Event("test")}catch{s=function(f){var b=document.createEvent("Event");return b.initEvent(f,!0,!1),b}}function i(d){if(!d||!d.nodeName||d.nodeName!=="TEXTAREA"||r.has(d))return;var p=null,f=null,b=null;function h(){var A=window.getComputedStyle(d,null);A.resize==="vertical"?d.style.resize="none":A.resize==="both"&&(d.style.resize="horizontal"),A.boxSizing==="content-box"?p=-(parseFloat(A.paddingTop)+parseFloat(A.paddingBottom)):p=parseFloat(A.borderTopWidth)+parseFloat(A.borderBottomWidth),isNaN(p)&&(p=0),x()}function g(A){{var _=d.style.width;d.style.width="0px",d.offsetWidth,d.style.width=_}d.style.overflowY=A}function z(A){for(var _=[];A&&A.parentNode&&A.parentNode instanceof Element;)A.parentNode.scrollTop&&_.push({node:A.parentNode,scrollTop:A.parentNode.scrollTop}),A=A.parentNode;return _}function y(){if(d.scrollHeight!==0){var A=z(d),_=document.documentElement&&document.documentElement.scrollTop;d.style.height="",d.style.height=d.scrollHeight+p+"px",f=d.clientWidth,A.forEach(function(w){w.node.scrollTop=w.scrollTop}),_&&(document.documentElement.scrollTop=_)}}function x(){y();var A=Math.round(parseFloat(d.style.height)),_=window.getComputedStyle(d,null),w=_.boxSizing==="content-box"?Math.round(parseFloat(_.height)):d.offsetHeight;if(w"u"||typeof window.getComputedStyle!="function"?(u=function(p){return p},u.destroy=function(d){return d},u.update=function(d){return d}):(u=function(p,f){return p&&Array.prototype.forEach.call(p.length?p:[p],function(b){return i(b)}),p},u.destroy=function(d){return d&&Array.prototype.forEach.call(d.length?d:[d],c),d},u.update=function(d){return d&&Array.prototype.forEach.call(d.length?d:[d],l),d}),o.default=u,n.exports=o.default})})(KW,KW.exports);var byt=KW.exports,hyt=function(e,t,n){return n=window.getComputedStyle,(n?n(e):e.currentStyle)[t.replace(/-(\w)/gi,function(o,r){return r.toUpperCase()})]},myt=hyt,hS=myt;function Myt(e){var t=hS(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var o=e.style.lineHeight;e.style.lineHeight=t+"em",t=hS(e,"line-height"),n=parseFloat(t,10),o?e.style.lineHeight=o:delete e.style.lineHeight}if(t.indexOf("pt")!==-1?(n*=4,n/=3):t.indexOf("mm")!==-1?(n*=96,n/=25.4):t.indexOf("cm")!==-1?(n*=96,n/=2.54):t.indexOf("in")!==-1?n*=96:t.indexOf("pc")!==-1&&(n*=16),n=Math.round(n),t==="normal"){var r=e.nodeName,s=document.createElement(r);s.innerHTML=" ",r.toUpperCase()==="TEXTAREA"&&s.setAttribute("rows","1");var i=hS(e,"font-size");s.style.fontSize=i,s.style.padding="0px",s.style.border="0px";var c=document.body;c.appendChild(s);var l=s.offsetHeight;n=l,c.removeChild(s)}return n}var gyt=Myt,zyt=In&&In.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)n.hasOwnProperty(o)&&(t[o]=n[o])};return function(t,n){e(t,n);function o(){this.constructor=t}t.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),YW=In&&In.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;ni(F).getBlock(e),[e]),{updateBlock:r}=ae(F),s=()=>{const i=Dt(o.name);if(!i)return;const c=Zc(i,t,o.attributes),l=t||mf(i,c),[u]=t?Eg({...o,attributes:c,originalContent:l}):[!0];r(e,{attributes:c,originalContent:l,isValid:u}),t||n(l)};return O.useEffect(()=>{n(s_(o))},[o]),a.jsx(Hj,{className:"block-editor-block-list__block-html-textarea",value:t,onBlur:s,onChange:i=>n(i.target.value)})}var Uj=nO(),e0=e=>tO(e,Uj),Xj=nO();e0.write=e=>tO(e,Xj);var Xw=nO();e0.onStart=e=>tO(e,Xw);var Gj=nO();e0.onFrame=e=>tO(e,Gj);var Kj=nO();e0.onFinish=e=>tO(e,Kj);var r2=[];e0.setTimeout=(e,t)=>{const n=e0.now()+t,o=()=>{const s=r2.findIndex(i=>i.cancel==o);~s&&r2.splice(s,1),au-=~s?1:0},r={time:n,handler:e,cancel:o};return r2.splice(Sbe(n),0,r),au+=1,Cbe(),r};var Sbe=e=>~(~r2.findIndex(t=>t.time>e)||~r2.length);e0.cancel=e=>{Xw.delete(e),Gj.delete(e),Kj.delete(e),Uj.delete(e),Xj.delete(e)};e0.sync=e=>{ZW=!0,e0.batchedUpdates(e),ZW=!1};e0.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function o(...r){t=r,e0.onStart(n)}return o.handler=e,o.cancel=()=>{Xw.delete(n),t=null},o};var Yj=typeof window<"u"?window.requestAnimationFrame:()=>{};e0.use=e=>Yj=e;e0.now=typeof performance<"u"?()=>performance.now():Date.now;e0.batchedUpdates=e=>e();e0.catch=console.error;e0.frameLoop="always";e0.advance=()=>{e0.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Wbe()};var iu=-1,au=0,ZW=!1;function tO(e,t){ZW?(t.delete(e),e(0)):(t.add(e),Cbe())}function Cbe(){iu<0&&(iu=0,e0.frameLoop!=="demand"&&Yj(Rbe))}function _yt(){iu=-1}function Rbe(){~iu&&(Yj(Rbe),e0.batchedUpdates(Wbe))}function Wbe(){const e=iu;iu=e0.now();const t=Sbe(iu);if(t&&(Tbe(r2.splice(0,t),n=>n.handler()),au-=t),!au){_yt();return}Xw.flush(),Uj.flush(e?Math.min(64,iu-e):16.667),Gj.flush(),Xj.flush(),Kj.flush()}function nO(){let e=new Set,t=e;return{add(n){au+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return au-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,au-=t.size,Tbe(t,o=>o(n)&&e.add(o)),au+=e.size,t=e)}}}function Tbe(e,t){e.forEach(n=>{try{t(n)}catch(o){e0.catch(o)}})}var wyt=Object.defineProperty,kyt=(e,t)=>{for(var n in t)wyt(e,n,{get:t[n],enumerable:!0})},Ii={};kyt(Ii,{assign:()=>Syt,colors:()=>wu,createStringInterpolator:()=>Qj,skipAnimation:()=>Bbe,to:()=>Ebe,willAdvance:()=>Jj});function QW(){}var qyt=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ge={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function gc(e,t){if(Ge.arr(e)){if(!Ge.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function il(e,t,n){if(Ge.arr(e)){for(let o=0;oGe.und(e)?[]:Ge.arr(e)?e:[e];function XM(e,t){if(e.size){const n=Array.from(e);e.clear(),Vn(n,t)}}var bM=(e,...t)=>XM(e,n=>n(...t)),Zj=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Qj,Ebe,wu=null,Bbe=!1,Jj=QW,Syt=e=>{e.to&&(Ebe=e.to),e.now&&(e0.now=e.now),e.colors!==void 0&&(wu=e.colors),e.skipAnimation!=null&&(Bbe=e.skipAnimation),e.createStringInterpolator&&(Qj=e.createStringInterpolator),e.requestAnimationFrame&&e0.use(e.requestAnimationFrame),e.batchedUpdates&&(e0.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Jj=e.willAdvance),e.frameLoop&&(e0.frameLoop=e.frameLoop)},GM=new Set,Es=[],mS=[],b5=0,Gw={get idle(){return!GM.size&&!Es.length},start(e){b5>e.priority?(GM.add(e),e0.onStart(Cyt)):(Nbe(e),e0(JW))},advance:JW,sort(e){if(b5)e0.onFrame(()=>Gw.sort(e));else{const t=Es.indexOf(e);~t&&(Es.splice(t,1),Lbe(e))}},clear(){Es=[],GM.clear()}};function Cyt(){GM.forEach(Nbe),GM.clear(),e0(JW)}function Nbe(e){Es.includes(e)||Lbe(e)}function Lbe(e){Es.splice(Ryt(Es,t=>t.priority>e.priority),0,e)}function JW(e){const t=mS;for(let n=0;n0}function Ryt(e,t){const n=e.findIndex(t);return n<0?e.length:n}var Wyt=(e,t,n)=>Math.min(Math.max(n,e),t),Tyt={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Oi="[-+]?\\d*\\.?\\d+",h5=Oi+"%";function Kw(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Eyt=new RegExp("rgb"+Kw(Oi,Oi,Oi)),Byt=new RegExp("rgba"+Kw(Oi,Oi,Oi,Oi)),Nyt=new RegExp("hsl"+Kw(Oi,h5,h5)),Lyt=new RegExp("hsla"+Kw(Oi,h5,h5,Oi)),jyt=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Pyt=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Iyt=/^#([0-9a-fA-F]{6})$/,Dyt=/^#([0-9a-fA-F]{8})$/;function Fyt(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Iyt.exec(e))?parseInt(t[1]+"ff",16)>>>0:wu&&wu[e]!==void 0?wu[e]:(t=Eyt.exec(e))?(Uf(t[1])<<24|Uf(t[2])<<16|Uf(t[3])<<8|255)>>>0:(t=Byt.exec(e))?(Uf(t[1])<<24|Uf(t[2])<<16|Uf(t[3])<<8|yK(t[4]))>>>0:(t=jyt.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Dyt.exec(e))?parseInt(t[1],16)>>>0:(t=Pyt.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Nyt.exec(e))?(OK(AK(t[1]),TA(t[2]),TA(t[3]))|255)>>>0:(t=Lyt.exec(e))?(OK(AK(t[1]),TA(t[2]),TA(t[3]))|yK(t[4]))>>>0:null}function MS(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function OK(e,t,n){const o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,s=MS(r,o,e+1/3),i=MS(r,o,e),c=MS(r,o,e-1/3);return Math.round(s*255)<<24|Math.round(i*255)<<16|Math.round(c*255)<<8}function Uf(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function AK(e){return(parseFloat(e)%360+360)%360/360}function yK(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function TA(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function vK(e){let t=Fyt(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,o=(t&16711680)>>>16,r=(t&65280)>>>8,s=(t&255)/255;return`rgba(${n}, ${o}, ${r}, ${s})`}var pz=(e,t,n)=>{if(Ge.fun(e))return e;if(Ge.arr(e))return pz({range:e,output:t,extrapolate:n});if(Ge.str(e.output[0]))return Qj(e);const o=e,r=o.output,s=o.range||[0,1],i=o.extrapolateLeft||o.extrapolate||"extend",c=o.extrapolateRight||o.extrapolate||"extend",l=o.easing||(u=>u);return u=>{const d=Vyt(u,s);return $yt(u,s[d],s[d+1],r[d],r[d+1],l,i,c,o.map)}};function $yt(e,t,n,o,r,s,i,c,l){let u=l?l(e):e;if(un){if(c==="identity")return u;c==="clamp"&&(u=n)}return o===r?o:t===n?e<=t?o:r:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=s(u),o===-1/0?u=-u:r===1/0?u=u+o:u=u*(r-o)+o,u)}function Vyt(e,t){for(var n=1;n=e);++n);return n-1}var Hyt=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const o=n*e,r=t==="end"?Math.floor(o):Math.ceil(o);return Wyt(0,1,r/e)},m5=1.70158,EA=m5*1.525,xK=m5+1,_K=2*Math.PI/3,wK=2*Math.PI/4.5,BA=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,Uyt={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>xK*e*e*e-m5*e*e,easeOutBack:e=>1+xK*Math.pow(e-1,3)+m5*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((EA+1)*2*e-EA)/2:(Math.pow(2*e-2,2)*((EA+1)*(e*2-2)+EA)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*_K),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*_K)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*wK))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*wK)/2+1,easeInBounce:e=>1-BA(1-e),easeOutBounce:BA,easeInOutBounce:e=>e<.5?(1-BA(1-2*e))/2:(1+BA(2*e-1))/2,steps:Hyt},fz=Symbol.for("FluidValue.get"),K2=Symbol.for("FluidValue.observers"),Rs=e=>!!(e&&e[fz]),Ar=e=>e&&e[fz]?e[fz]():e,kK=e=>e[K2]||null;function Xyt(e,t){e.eventObserved?e.eventObserved(t):e(t)}function bz(e,t){const n=e[K2];n&&n.forEach(o=>{Xyt(o,t)})}var jbe=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Gyt(this,e)}},Gyt=(e,t)=>Pbe(e,fz,t);function oO(e,t){if(e[fz]){let n=e[K2];n||Pbe(e,K2,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function hz(e,t){const n=e[K2];if(n&&n.has(t)){const o=n.size-1;o?n.delete(t):e[K2]=null,e.observerRemoved&&e.observerRemoved(o,t)}}var Pbe=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),f4=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Kyt=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,qK=new RegExp(`(${f4.source})(%|[a-z]+)`,"i"),Yyt=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Yw=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Ibe=e=>{const[t,n]=Zyt(e);if(!t||Zj())return e;const o=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(o)return o.trim();if(n&&n.startsWith("--")){const r=window.getComputedStyle(document.documentElement).getPropertyValue(n);return r||e}else{if(n&&Yw.test(n))return Ibe(n);if(n)return n}return e},Zyt=e=>{const t=Yw.exec(e);if(!t)return[,];const[,n,o]=t;return[n,o]},gS,Qyt=(e,t,n,o,r)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(o)}, ${r})`,Dbe=e=>{gS||(gS=wu?new RegExp(`(${Object.keys(wu).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(s=>Ar(s).replace(Yw,Ibe).replace(Kyt,vK).replace(gS,vK)),n=t.map(s=>s.match(f4).map(Number)),r=n[0].map((s,i)=>n.map(c=>{if(!(i in c))throw Error('The arity of each "output" value must be equal');return c[i]})).map(s=>pz({...e,output:s}));return s=>{const i=!qK.test(t[0])&&t.find(l=>qK.test(l))?.replace(f4,"");let c=0;return t[0].replace(f4,()=>`${r[c++](s)}${i||""}`).replace(Yyt,Qyt)}},Fbe="react-spring: ",$be=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${Fbe}once requires a function parameter`);return(...o)=>{n||(t(...o),n=!0)}},Jyt=$be(console.warn);function e4t(){Jyt(`${Fbe}The "interpolate" function is deprecated in v9 (use "to" instead)`)}$be(console.warn);function Zw(e){return Ge.str(e)&&(e[0]=="#"||/\d/.test(e)||!Zj()&&Yw.test(e)||e in(wu||{}))}var Vbe=Zj()?O.useEffect:O.useLayoutEffect,t4t=()=>{const e=O.useRef(!1);return Vbe(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function n4t(){const e=O.useState()[1],t=t4t();return()=>{t.current&&e(Math.random())}}function o4t(e,t){const[n]=O.useState(()=>({inputs:t,result:e()})),o=O.useRef(),r=o.current;let s=r;return s?t&&s.inputs&&r4t(t,s.inputs)||(s={inputs:t,result:e()}):s=n,O.useEffect(()=>{o.current=s,r==n&&(n.inputs=n.result=void 0)},[s]),s.result}function r4t(e,t){if(e.length!==t.length)return!1;for(let n=0;nO.useEffect(e,i4t),i4t=[],mz=Symbol.for("Animated:node"),a4t=e=>!!e&&e[mz]===e,fa=e=>e&&e[mz],eP=(e,t)=>qyt(e,mz,t),Qw=e=>e&&e[mz]&&e[mz].getPayload(),Hbe=class{constructor(){eP(this,this)}getPayload(){return this.payload||[]}},rO=class extends Hbe{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Ge.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new rO(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Ge.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Ge.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Mz=class extends rO{constructor(e){super(0),this._string=null,this._toString=pz({output:[e,e]})}static create(e){return new Mz(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(Ge.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=pz({output:[this.getValue(),e]})),this._value=0,super.reset()}},M5={dependencies:null},Jw=class extends Hbe{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return il(this.source,(n,o)=>{a4t(n)?t[o]=n.getValue(e):Rs(n)?t[o]=Ar(n):e||(t[o]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Vn(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return il(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){M5.dependencies&&Rs(e)&&M5.dependencies.add(e);const t=Qw(e);t&&Vn(t,n=>this.add(n))}},Ube=class extends Jw{constructor(e){super(e)}static create(e){return new Ube(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,o)=>n.setValue(e[o])).some(Boolean):(super.setValue(e.map(c4t)),!0)}};function c4t(e){return(Zw(e)?Mz:rO).create(e)}function eT(e){const t=fa(e);return t?t.constructor:Ge.arr(e)?Ube:Zw(e)?Mz:rO}var SK=(e,t)=>{const n=!Ge.fun(e)||e.prototype&&e.prototype.isReactComponent;return O.forwardRef((o,r)=>{const s=O.useRef(null),i=n&&O.useCallback(h=>{s.current=d4t(r,h)},[r]),[c,l]=u4t(o,t),u=n4t(),d=()=>{const h=s.current;if(n&&!h)return;(h?t.applyAnimatedValues(h,c.getValue(!0)):!1)===!1&&u()},p=new l4t(d,l),f=O.useRef();Vbe(()=>(f.current=p,Vn(l,h=>oO(h,p)),()=>{f.current&&(Vn(f.current.deps,h=>hz(h,f.current)),e0.cancel(f.current.update))})),O.useEffect(d,[]),s4t(()=>()=>{const h=f.current;Vn(h.deps,g=>hz(g,h))});const b=t.getComponentProps(c.getValue());return O.createElement(e,{...b,ref:i})})},l4t=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&e0.write(this.update)}};function u4t(e,t){const n=new Set;return M5.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Jw(e),M5.dependencies=null,[e,n]}function d4t(e,t){return e&&(Ge.fun(e)?e(t):e.current=t),t}var CK=Symbol.for("AnimatedComponent"),p4t=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=r=>new Jw(r),getComponentProps:o=r=>r}={})=>{const r={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:o},s=i=>{const c=RK(i)||"Anonymous";return Ge.str(i)?i=s[i]||(s[i]=SK(i,r)):i=i[CK]||(i[CK]=SK(i,r)),i.displayName=`Animated(${c})`,i};return il(e,(i,c)=>{Ge.arr(e)&&(c=RK(i)),s[c]=s(i)}),{animated:s}},RK=e=>Ge.str(e)?e:e&&Ge.str(e.displayName)?e.displayName:Ge.fun(e)&&e.name||null;function Gd(e,...t){return Ge.fun(e)?e(...t):e}var KM=(e,t)=>e===!0||!!(t&&e&&(Ge.fun(e)?e(t):Ds(e).includes(t))),Xbe=(e,t)=>Ge.obj(e)?t&&e[t]:e,Gbe=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,f4t=e=>e,Kbe=(e,t=f4t)=>{let n=b4t;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const o={};for(const r of n){const s=t(e[r],r);Ge.und(s)||(o[r]=s)}return o},b4t=["config","onProps","onStart","onChange","onPause","onResume","onRest"],h4t={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function m4t(e){const t={};let n=0;if(il(e,(o,r)=>{h4t[r]||(t[r]=o,n++)}),n)return t}function Ybe(e){const t=m4t(e);if(t){const n={to:t};return il(e,(o,r)=>r in t||(n[r]=o)),n}return{...e}}function gz(e){return e=Ar(e),Ge.arr(e)?e.map(gz):Zw(e)?Ii.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function tT(e){return Ge.fun(e)||Ge.arr(e)&&Ge.obj(e[0])}var M4t={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},nT={...M4t.default,mass:1,damping:1,easing:Uyt.linear,clamp:!1},g4t=class{constructor(){this.velocity=0,Object.assign(this,nT)}};function z4t(e,t,n){n&&(n={...n},WK(n,t),t={...n,...t}),WK(e,t),Object.assign(e,t);for(const i in nT)e[i]==null&&(e[i]=nT[i]);let{frequency:o,damping:r}=e;const{mass:s}=e;return Ge.und(o)||(o<.01&&(o=.01),r<0&&(r=0),e.tension=Math.pow(2*Math.PI/o,2)*s,e.friction=4*Math.PI*r*s/o),e}function WK(e,t){if(!Ge.und(t.decay))e.duration=void 0;else{const n=!Ge.und(t.tension)||!Ge.und(t.friction);(n||!Ge.und(t.frequency)||!Ge.und(t.damping)||!Ge.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var TK=[],O4t=class{constructor(){this.changed=!1,this.values=TK,this.toValues=null,this.fromValues=TK,this.config=new g4t,this.immediate=!1}};function Zbe(e,{key:t,props:n,defaultProps:o,state:r,actions:s}){return new Promise((i,c)=>{let l,u,d=KM(n.cancel??o?.cancel,t);if(d)b();else{Ge.und(n.pause)||(r.paused=KM(n.pause,t));let h=o?.pause;h!==!0&&(h=r.paused||KM(h,t)),l=Gd(n.delay||0,t),h?(r.resumeQueue.add(f),s.pause()):(s.resume(),f())}function p(){r.resumeQueue.add(f),r.timeouts.delete(u),u.cancel(),l=u.time-e0.now()}function f(){l>0&&!Ii.skipAnimation?(r.delayed=!0,u=e0.setTimeout(b,l),r.pauseQueue.add(p),r.timeouts.add(u)):b()}function b(){r.delayed&&(r.delayed=!1),r.pauseQueue.delete(p),r.timeouts.delete(u),e<=(r.cancelId||0)&&(d=!0);try{s.start({...n,callId:e,cancel:d},i)}catch(h){c(h)}}})}var tP=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?s2(e.get()):t.every(n=>n.noop)?Qbe(e.get()):mi(e.get(),t.every(n=>n.finished)),Qbe=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),mi=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),s2=e=>({value:e,cancelled:!0,finished:!1});function Jbe(e,t,n,o){const{callId:r,parentId:s,onRest:i}=t,{asyncTo:c,promise:l}=n;return!s&&e===c&&!t.reset?l:n.promise=(async()=>{n.asyncId=r,n.asyncTo=e;const u=Kbe(t,(z,y)=>y==="onRest"?void 0:z);let d,p;const f=new Promise((z,y)=>(d=z,p=y)),b=z=>{const y=r<=(n.cancelId||0)&&s2(o)||r!==n.asyncId&&mi(o,!1);if(y)throw z.result=y,p(z),z},h=(z,y)=>{const x=new EK,v=new BK;return(async()=>{if(Ii.skipAnimation)throw zz(n),v.result=mi(o,!1),p(v),v;b(x);const M=Ge.obj(z)?{...z}:{...y,to:z};M.parentId=r,il(u,(_,w)=>{Ge.und(M[w])&&(M[w]=_)});const A=await o.start(M);return b(x),n.paused&&await new Promise(_=>{n.resumeQueue.add(_)}),A})()};let g;if(Ii.skipAnimation)return zz(n),mi(o,!1);try{let z;Ge.arr(e)?z=(async y=>{for(const x of y)await h(x)})(e):z=Promise.resolve(e(h,o.stop.bind(o))),await Promise.all([z.then(d),f]),g=mi(o.get(),!0,!1)}catch(z){if(z instanceof EK)g=z.result;else if(z instanceof BK)g=z.result;else throw z}finally{r==n.asyncId&&(n.asyncId=s,n.asyncTo=s?c:void 0,n.promise=s?l:void 0)}return Ge.fun(i)&&e0.batchedUpdates(()=>{i(g,o,o.item)}),g})()}function zz(e,t){XM(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var EK=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},BK=class extends Error{constructor(){super("SkipAnimationSignal")}},oT=e=>e instanceof nP,A4t=1,nP=class extends jbe{constructor(){super(...arguments),this.id=A4t++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=fa(this);return e&&e.getValue()}to(...e){return Ii.to(this,e)}interpolate(...e){return e4t(),Ii.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){bz(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Gw.sort(this),bz(this,{type:"priority",parent:this,priority:e})}},Yp=Symbol.for("SpringPhase"),e2e=1,rT=2,sT=4,zS=e=>(e[Yp]&e2e)>0,Nl=e=>(e[Yp]&rT)>0,Pm=e=>(e[Yp]&sT)>0,NK=(e,t)=>t?e[Yp]|=rT|e2e:e[Yp]&=~rT,LK=(e,t)=>t?e[Yp]|=sT:e[Yp]&=~sT,y4t=class extends nP{constructor(e,t){if(super(),this.animation=new O4t,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Ge.und(e)||!Ge.und(t)){const n=Ge.obj(e)?{...e}:{...t,from:e};Ge.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Nl(this)||this._state.asyncTo)||Pm(this)}get goal(){return Ar(this.animation.to)}get velocity(){const e=fa(this);return e instanceof rO?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return zS(this)}get isAnimating(){return Nl(this)}get isPaused(){return Pm(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const o=this.animation;let{toValues:r}=o;const{config:s}=o,i=Qw(o.to);!i&&Rs(o.to)&&(r=Ds(Ar(o.to))),o.values.forEach((u,d)=>{if(u.done)return;const p=u.constructor==Mz?1:i?i[d].lastPosition:r[d];let f=o.immediate,b=p;if(!f){if(b=u.lastPosition,s.tension<=0){u.done=!0;return}let h=u.elapsedTime+=e;const g=o.fromValues[d],z=u.v0!=null?u.v0:u.v0=Ge.arr(s.velocity)?s.velocity[d]:s.velocity;let y;const x=s.precision||(g==p?.005:Math.min(1,Math.abs(p-g)*.001));if(Ge.und(s.duration))if(s.decay){const v=s.decay===!0?.998:s.decay,M=Math.exp(-(1-v)*h);b=g+z/(1-v)*(1-M),f=Math.abs(u.lastPosition-b)<=x,y=z*M}else{y=u.lastVelocity==null?z:u.lastVelocity;const v=s.restVelocity||x/10,M=s.clamp?0:s.bounce,A=!Ge.und(M),_=g==p?u.v0>0:gv,!(!w&&(f=Math.abs(p-b)<=x,f)));++C){A&&(k=b==p||b>p==_,k&&(y=-y*M,b=p));const T=-s.tension*1e-6*(b-p),W=-s.friction*.001*y,B=(T+W)/s.mass;y=y+B*q,b=b+y*q}}else{let v=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,u.durationProgress>0&&(u.elapsedTime=s.duration*u.durationProgress,h=u.elapsedTime+=e)),v=(s.progress||0)+h/this._memoizedDuration,v=v>1?1:v<0?0:v,u.durationProgress=v),b=g+s.easing(v)*(p-g),y=(b-u.lastPosition)/e,f=v==1}u.lastVelocity=y,Number.isNaN(b)&&(console.warn("Got NaN while animating:",this),f=!0)}i&&!i[d].done&&(f=!1),f?u.done=!0:t=!1,u.setValue(b,s.round)&&(n=!0)});const c=fa(this),l=c.getValue();if(t){const u=Ar(o.to);(l!==u||n)&&!s.decay?(c.setValue(u),this._onChange(u)):n&&s.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return e0.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Nl(this)){const{to:e,config:t}=this.animation;e0.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Ge.und(e)?(n=this.queue||[],this.queue=[]):n=[Ge.obj(e)?e:{...t,to:e}],Promise.all(n.map(o=>this._update(o))).then(o=>tP(this,o))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),zz(this._state,e&&this._lastCallId),e0.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:o}=e;n=Ge.obj(n)?n[t]:n,(n==null||tT(n))&&(n=void 0),o=Ge.obj(o)?o[t]:o,o==null&&(o=void 0);const r={to:n,from:o};return zS(this)||(e.reverse&&([n,o]=[o,n]),o=Ar(o),Ge.und(o)?fa(this)||this._set(n):this._set(o)),r}_update({...e},t){const{key:n,defaultProps:o}=this;e.default&&Object.assign(o,Kbe(e,(i,c)=>/^on/.test(c)?Xbe(i,n):i)),PK(this,e,"onProps"),Dm(this,"onProps",e,this);const r=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const s=this._state;return Zbe(++this._lastCallId,{key:n,props:e,defaultProps:o,state:s,actions:{pause:()=>{Pm(this)||(LK(this,!0),bM(s.pauseQueue),Dm(this,"onPause",mi(this,Im(this,this.animation.to)),this))},resume:()=>{Pm(this)&&(LK(this,!1),Nl(this)&&this._resume(),bM(s.resumeQueue),Dm(this,"onResume",mi(this,Im(this,this.animation.to)),this))},start:this._merge.bind(this,r)}}).then(i=>{if(e.loop&&i.finished&&!(t&&i.noop)){const c=t2e(e);if(c)return this._update(c,!0)}return i})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(s2(this));const o=!Ge.und(e.to),r=!Ge.und(e.from);if(o||r)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(s2(this));const{key:s,defaultProps:i,animation:c}=this,{to:l,from:u}=c;let{to:d=l,from:p=u}=e;r&&!o&&(!t.default||Ge.und(d))&&(d=p),t.reverse&&([d,p]=[p,d]);const f=!gc(p,u);f&&(c.from=p),p=Ar(p);const b=!gc(d,l);b&&this._focus(d);const h=tT(t.to),{config:g}=c,{decay:z,velocity:y}=g;(o||r)&&(g.velocity=0),t.config&&!h&&z4t(g,Gd(t.config,s),t.config!==i.config?Gd(i.config,s):void 0);let x=fa(this);if(!x||Ge.und(d))return n(mi(this,!0));const v=Ge.und(t.reset)?r&&!t.default:!Ge.und(p)&&KM(t.reset,s),M=v?p:this.get(),A=gz(d),_=Ge.num(A)||Ge.arr(A)||Zw(A),w=!h&&(!_||KM(i.immediate||t.immediate,s));if(b){const C=eT(d);if(C!==x.constructor)if(w)x=this._set(A);else throw Error(`Cannot animate between ${x.constructor.name} and ${C.name}, as the "to" prop suggests`)}const k=x.constructor;let q=Rs(d),S=!1;if(!q){const C=v||!zS(this)&&f;(b||C)&&(S=gc(gz(M),A),q=!S),(!gc(c.immediate,w)&&!w||!gc(g.decay,z)||!gc(g.velocity,y))&&(q=!0)}if(S&&Nl(this)&&(c.changed&&!v?q=!0:q||this._stop(l)),!h&&((q||Rs(l))&&(c.values=x.getPayload(),c.toValues=Rs(d)?null:k==Mz?[1]:Ds(A)),c.immediate!=w&&(c.immediate=w,!w&&!v&&this._set(l)),q)){const{onRest:C}=c;Vn(v4t,W=>PK(this,t,W));const T=mi(this,Im(this,l));bM(this._pendingCalls,T),this._pendingCalls.add(n),c.changed&&e0.batchedUpdates(()=>{c.changed=!v,C?.(T,this),v?Gd(i.onRest,T):c.onStart?.(T,this)})}v&&this._set(M),h?n(Jbe(t.to,t,this._state,this)):q?this._start():Nl(this)&&!b?this._pendingCalls.add(n):n(Qbe(M))}_focus(e){const t=this.animation;e!==t.to&&(kK(this)&&this._detach(),t.to=e,kK(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Rs(t)&&(oO(t,this),oT(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Rs(e)&&hz(e,this)}_set(e,t=!0){const n=Ar(e);if(!Ge.und(n)){const o=fa(this);if(!o||!gc(n,o.getValue())){const r=eT(n);!o||o.constructor!=r?eP(this,r.create(n)):o.setValue(n),o&&e0.batchedUpdates(()=>{this._onChange(n,t)})}}return fa(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Dm(this,"onStart",mi(this,Im(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Gd(this.animation.onChange,e,this)),Gd(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;fa(this).reset(Ar(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Nl(this)||(NK(this,!0),Pm(this)||this._resume())}_resume(){Ii.skipAnimation?this.finish():Gw.start(this)}_stop(e,t){if(Nl(this)){NK(this,!1);const n=this.animation;Vn(n.values,r=>{r.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),bz(this,{type:"idle",parent:this});const o=t?s2(this.get()):mi(this.get(),Im(this,e??n.to));bM(this._pendingCalls,o),n.changed&&(n.changed=!1,Dm(this,"onRest",o,this))}}};function Im(e,t){const n=gz(t),o=gz(e.get());return gc(o,n)}function t2e(e,t=e.loop,n=e.to){const o=Gd(t);if(o){const r=o!==!0&&Ybe(o),s=(r||e).reverse,i=!r||r.reset;return iT({...e,loop:t,default:!1,pause:void 0,to:!s||tT(n)?n:void 0,from:i?e.from:void 0,reset:i,...r})}}function iT(e){const{to:t,from:n}=e=Ybe(e),o=new Set;return Ge.obj(t)&&jK(t,o),Ge.obj(n)&&jK(n,o),e.keys=o.size?Array.from(o):null,e}function jK(e,t){il(e,(n,o)=>n!=null&&t.add(o))}var v4t=["onStart","onRest","onChange","onPause","onResume"];function PK(e,t,n){e.animation[n]=t[n]!==Gbe(t,n)?Xbe(t[n],e.key):void 0}function Dm(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var x4t=["onStart","onChange","onRest"],_4t=1,w4t=class{constructor(e,t){this.id=_4t++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];Ge.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(iT(e)),this}start(e){let{queue:t}=this;return e?t=Ds(e).map(iT):this.queue=[],this._flush?this._flush(this,t):(o2e(this,t),k4t(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Vn(Ds(t),o=>n[o].stop(!!e))}else zz(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(Ge.und(e))this.start({pause:!0});else{const t=this.springs;Vn(Ds(e),n=>t[n].pause())}return this}resume(e){if(Ge.und(e))this.start({pause:!1});else{const t=this.springs;Vn(Ds(e),n=>t[n].resume())}return this}each(e){il(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,o=this._active.size>0,r=this._changed.size>0;(o&&!this._started||r&&!this._started)&&(this._started=!0,XM(e,([c,l])=>{l.value=this.get(),c(l,this,this._item)}));const s=!o&&this._started,i=r||s&&n.size?this.get():null;r&&t.size&&XM(t,([c,l])=>{l.value=i,c(l,this,this._item)}),s&&(this._started=!1,XM(n,([c,l])=>{l.value=i,c(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;e0.onFrame(this._onFrame)}};function k4t(e,t){return Promise.all(t.map(n=>n2e(e,n))).then(n=>tP(e,n))}async function n2e(e,t,n){const{keys:o,to:r,from:s,loop:i,onRest:c,onResolve:l}=t,u=Ge.obj(t.default)&&t.default;i&&(t.loop=!1),r===!1&&(t.to=null),s===!1&&(t.from=null);const d=Ge.arr(r)||Ge.fun(r)?r:void 0;d?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):Vn(x4t,g=>{const z=t[g];if(Ge.fun(z)){const y=e._events[g];t[g]=({finished:x,cancelled:v})=>{const M=y.get(z);M?(x||(M.finished=!1),v&&(M.cancelled=!0)):y.set(z,{value:null,finished:x||!1,cancelled:v||!1})},u&&(u[g]=t[g])}});const p=e._state;t.pause===!p.paused?(p.paused=t.pause,bM(t.pause?p.pauseQueue:p.resumeQueue)):p.paused&&(t.pause=!0);const f=(o||Object.keys(e.springs)).map(g=>e.springs[g].start(t)),b=t.cancel===!0||Gbe(t,"cancel")===!0;(d||b&&p.asyncId)&&f.push(Zbe(++e._lastAsyncId,{props:t,state:p,actions:{pause:QW,resume:QW,start(g,z){b?(zz(p,e._lastAsyncId),z(s2(e))):(g.onRest=c,z(Jbe(d,g,p,e)))}}})),p.paused&&await new Promise(g=>{p.resumeQueue.add(g)});const h=tP(e,await Promise.all(f));if(i&&h.finished&&!(n&&h.noop)){const g=t2e(t,i,r);if(g)return o2e(e,[g]),n2e(e,g,!0)}return l&&e0.batchedUpdates(()=>l(h,e,e.item)),h}function q4t(e,t){const n=new y4t;return n.key=e,t&&oO(n,t),n}function S4t(e,t,n){t.keys&&Vn(t.keys,o=>{(e[o]||(e[o]=n(o)))._prepareNode(t)})}function o2e(e,t){Vn(t,n=>{S4t(e.springs,n,o=>q4t(o,e))})}var oP=({children:e,...t})=>{const n=O.useContext(g5),o=t.pause||!!n.pause,r=t.immediate||!!n.immediate;t=o4t(()=>({pause:o,immediate:r}),[o,r]);const{Provider:s}=g5;return O.createElement(s,{value:t},e)},g5=C4t(oP,{});oP.Provider=g5.Provider;oP.Consumer=g5.Consumer;function C4t(e,t){return Object.assign(e,O.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var R4t=class extends nP{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=pz(...t);const n=this._get(),o=eT(n);eP(this,o.create(n))}advance(e){const t=this._get(),n=this.get();gc(t,n)||(fa(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&IK(this._active)&&OS(this)}_get(){const e=Ge.arr(this.source)?this.source.map(Ar):Ds(Ar(this.source));return this.calc(...e)}_start(){this.idle&&!IK(this._active)&&(this.idle=!1,Vn(Qw(this),e=>{e.done=!1}),Ii.skipAnimation?(e0.batchedUpdates(()=>this.advance()),OS(this)):Gw.start(this))}_attach(){let e=1;Vn(Ds(this.source),t=>{Rs(t)&&oO(t,this),oT(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Vn(Ds(this.source),e=>{Rs(e)&&hz(e,this)}),this._active.clear(),OS(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Ds(this.source).reduce((t,n)=>Math.max(t,(oT(n)?n.priority:0)+1),0))}};function W4t(e){return e.idle!==!1}function IK(e){return!e.size||Array.from(e).every(W4t)}function OS(e){e.idle||(e.idle=!0,Vn(Qw(e),t=>{t.done=!0}),bz(e,{type:"idle",parent:e}))}Ii.assign({createStringInterpolator:Dbe,to:(e,t)=>new R4t(e,t)});var r2e=/^--/;function T4t(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!r2e.test(e)&&!(YM.hasOwnProperty(e)&&YM[e])?t+"px":(""+t).trim()}var DK={};function E4t(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:o,children:r,scrollTop:s,scrollLeft:i,viewBox:c,...l}=t,u=Object.values(l),d=Object.keys(l).map(p=>n||e.hasAttribute(p)?p:DK[p]||(DK[p]=p.replace(/([A-Z])/g,f=>"-"+f.toLowerCase())));r!==void 0&&(e.textContent=r);for(const p in o)if(o.hasOwnProperty(p)){const f=T4t(p,o[p]);r2e.test(p)?e.style.setProperty(p,f):e.style[p]=f}d.forEach((p,f)=>{e.setAttribute(p,u[f])}),s!==void 0&&(e.scrollTop=s),i!==void 0&&(e.scrollLeft=i),c!==void 0&&e.setAttribute("viewBox",c)}var YM={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},B4t=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),N4t=["Webkit","Ms","Moz","O"];YM=Object.keys(YM).reduce((e,t)=>(N4t.forEach(n=>e[B4t(n,t)]=e[t]),e),YM);var L4t=/^(matrix|translate|scale|rotate|skew)/,j4t=/^(translate)/,P4t=/^(rotate|skew)/,AS=(e,t)=>Ge.num(e)&&e!==0?e+t:e,b4=(e,t)=>Ge.arr(e)?e.every(n=>b4(n,t)):Ge.num(e)?e===t:parseFloat(e)===t,I4t=class extends Jw{constructor({x:e,y:t,z:n,...o}){const r=[],s=[];(e||t||n)&&(r.push([e||0,t||0,n||0]),s.push(i=>[`translate3d(${i.map(c=>AS(c,"px")).join(",")})`,b4(i,0)])),il(o,(i,c)=>{if(c==="transform")r.push([i||""]),s.push(l=>[l,l===""]);else if(L4t.test(c)){if(delete o[c],Ge.und(i))return;const l=j4t.test(c)?"px":P4t.test(c)?"deg":"";r.push(Ds(i)),s.push(c==="rotate3d"?([u,d,p,f])=>[`rotate3d(${u},${d},${p},${AS(f,l)})`,b4(f,0)]:u=>[`${c}(${u.map(d=>AS(d,l)).join(",")})`,b4(u,c.startsWith("scale")?1:0)])}}),r.length&&(o.transform=new D4t(r,s)),super(o)}},D4t=class extends jbe{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Vn(this.inputs,(n,o)=>{const r=Ar(n[0]),[s,i]=this.transforms[o](Ge.arr(r)?r:n.map(Ar));e+=" "+s,t=t&&i}),t?"none":e}observerAdded(e){e==1&&Vn(this.inputs,t=>Vn(t,n=>Rs(n)&&oO(n,this)))}observerRemoved(e){e==0&&Vn(this.inputs,t=>Vn(t,n=>Rs(n)&&hz(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),bz(this,e)}},F4t=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Ii.assign({batchedUpdates:Qo.unstable_batchedUpdates,createStringInterpolator:Dbe,colors:Tyt});var $4t=p4t(F4t,{applyAnimatedValues:E4t,createAnimatedStyle:e=>new I4t(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),V4t=$4t.animated;const H4t=200;function FK(e){return{top:e.offsetTop,left:e.offsetLeft}}function s2e({triggerAnimationOnChange:e,clientId:t}){const n=O.useRef(),{isTyping:o,getGlobalBlockCount:r,isBlockSelected:s,isFirstMultiSelectedBlock:i,isBlockMultiSelected:c,isAncestorMultiSelected:l}=D(F),{previous:u,prevRect:d}=O.useMemo(()=>({previous:n.current&&FK(n.current),prevRect:n.current&&n.current.getBoundingClientRect()}),[e]);return O.useLayoutEffect(()=>{if(!u||!n.current)return;const p=Sr(n.current),f=s(t),b=f||i(t);function h(){if(b&&d){const w=n.current.getBoundingClientRect().top-d.top;w&&(p.scrollTop+=w)}}if(window.matchMedia("(prefers-reduced-motion: reduce)").matches||o()||r()>H4t){h();return}const y=f||c(t)||l(t)?"1":"",x=new w4t({x:0,y:0,config:{mass:5,tension:2e3,friction:200},onChange({value:_}){if(!n.current)return;let{x:w,y:k}=_;w=Math.round(w),k=Math.round(k);const q=w===0&&k===0;n.current.style.transformOrigin="center center",n.current.style.transform=q?null:`translate3d(${w}px,${k}px,0)`,n.current.style.zIndex=y,h()}});n.current.style.transform=void 0;const v=FK(n.current),M=Math.round(u.left-v.left),A=Math.round(u.top-v.top);return x.start({x:0,y:0,from:{x:M,y:A}}),()=>{x.stop(),x.set({x:0,y:0})}},[u,d,t,o,r,s,i,c,l]),n}const z5=".block-editor-block-list__block",U4t=".block-list-appender",X4t=".block-editor-button-block-appender";function i2e(e,t){return e.closest(z5)===t.closest(z5)}function ZM(e,t){return t.closest([z5,U4t,X4t].join(","))===e}function QM(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(!e)return;const n=e.closest(z5);if(n)return n.id.slice(6)}function a2e(e,t){const n=Math.min(e.left,t.left),o=Math.max(e.right,t.right),r=Math.max(e.bottom,t.bottom),s=Math.min(e.top,t.top);return new window.DOMRectReadOnly(n,s,o-n,r-s)}function G4t(e){const t=e.ownerDocument.defaultView;if(!t||e.classList.contains("components-visually-hidden"))return!1;const n=e.getBoundingClientRect();if(n.width===0||n.height===0)return!1;if(e.checkVisibility)return e.checkVisibility?.({opacityProperty:!0,contentVisibilityAuto:!0,visibilityProperty:!0});const o=t.getComputedStyle(e);return!(o.display==="none"||o.visibility==="hidden"||o.opacity==="0")}function h4(e){const t=e.ownerDocument.defaultView;if(!t)return new window.DOMRectReadOnly;let n=e.getBoundingClientRect();const o=[e];let r;for(;r=o.pop();)for(const c of r.children)if(G4t(c)){const l=c.getBoundingClientRect();n=a2e(n,l),o.push(c)}const s=Math.max(n.left,0),i=Math.min(n.right,t.innerWidth);return n=new window.DOMRectReadOnly(s,n.top,i-s,n.height),n}function K4t({clientId:e,initialPosition:t}){const n=O.useRef(),{isBlockSelected:o,isMultiSelecting:r,__unstableGetEditorMode:s}=D(F);return O.useEffect(()=>{if(!o(e)||r()||s()==="zoom-out"||t==null||!n.current)return;const{ownerDocument:i}=n.current;if(ZM(n.current,i.activeElement))return;const c=Nn.tabbable.find(n.current).filter(d=>Wu(d)),l=t===-1,u=c[l?c.length-1:0]||n.current;if(!ZM(n.current,u)){i.defaultView.getSelection().removeAllRanges(),n.current.focus();return}if(!n.current.getAttribute("contenteditable")){const d=Nn.tabbable.findNext(n.current);if(d&&ZM(n.current,d)&&one(d)){d.focus();return}}lne(u,l)},[t,e]),n}function Y4t({clientId:e}){const{hoverBlock:t}=ae(F);function n(o){if(o.defaultPrevented)return;const r=o.type==="mouseover"?"add":"remove";o.preventDefault(),o.currentTarget.classList[r]("is-hovered"),t(r==="add"?e:null)}return Et(o=>(o.addEventListener("mouseout",n),o.addEventListener("mouseover",n),()=>{o.removeEventListener("mouseout",n),o.removeEventListener("mouseover",n),o.classList.remove("is-hovered"),t(null)}),[])}function Z4t(e){const{isBlockSelected:t}=D(F),{selectBlock:n,selectionChange:o}=ae(F);return Et(r=>{function s(i){if(!r.parentElement.closest('[contenteditable="true"]')){if(t(e)){i.target.isContentEditable||o(e);return}ZM(r,i.target)&&n(e)}}return r.addEventListener("focusin",s),()=>{r.removeEventListener("focusin",s)}},[t,n])}function Q4t({clientId:e,isSelected:t}){const{getBlockRootClientId:n,getBlockIndex:o}=D(F),{insertAfterBlock:r,removeBlock:s}=ae(F);return Et(i=>{if(!t)return;function c(u){const{keyCode:d,target:p}=u;d!==y1&&d!==Si&&d!==_a||p!==i||Wu(p)||(u.preventDefault(),d===y1?r(e):s(e))}function l(u){u.preventDefault()}return i.addEventListener("keydown",c),i.addEventListener("dragstart",l),()=>{i.removeEventListener("keydown",c),i.removeEventListener("dragstart",l)}},[e,t,n,o,r,s])}function J4t(e){const{isNavigationMode:t,isBlockSelected:n}=D(F),{setNavigationMode:o,selectBlock:r}=ae(F);return Et(s=>{function i(c){t()&&!c.defaultPrevented&&(c.preventDefault(),n(e)?o(!1):r(e))}return s.addEventListener("mousedown",i),()=>{s.removeEventListener("mousedown",i)}},[e,t,n,o])}function evt({editorMode:e}){const{__unstableSetEditorMode:t}=Fe(ae(F));return Et(n=>{if(e!=="zoom-out")return;function o(r){r.defaultPrevented||(r.preventDefault(),t("edit"))}return n.addEventListener("dblclick",o),()=>{n.removeEventListener("dblclick",o)}},[e,t])}function tvt(){const e=O.useContext(Whe);return Et(t=>{if(e)return e.observe(t),()=>{e.unobserve(t)}},[e])}function nvt({isSelected:e}){const t=Zs();return Et(n=>{if(e){const{ownerDocument:o}=n,{defaultView:r}=o;if(!r.IntersectionObserver)return;const s=new r.IntersectionObserver(i=>{i[0].isIntersecting||n.scrollIntoView({behavior:t?"instant":"smooth"}),s.disconnect()});return s.observe(n),()=>{s.disconnect()}}},[e])}function c2e({clientId:e="",isEnabled:t=!0}={}){const{getEnabledClientIdsTree:n}=Fe(D(F));return Et(o=>{if(!t)return;const r=()=>{n(e).forEach(({clientId:i})=>{const c=o.querySelector(`[data-block="${i}"]`);c&&(c.classList.remove("has-editable-outline"),c.offsetWidth,c.classList.add("has-editable-outline"))})},s=i=>{(i.target===o||i.target.classList.contains("is-root-container"))&&(i.defaultPrevented||(i.preventDefault(),r()))};return o.addEventListener("click",s),()=>o.removeEventListener("click",s)},[t])}function rP(e){if(e.includes(" "))return!1;const n=zx(e),o=pB(n),r=ovt(e),s=e?.startsWith("www."),i=e?.startsWith("#")&&GR(e);return o||s||i||r}function ovt(e,t=6){const n=e.split(/[?#]/)[0];return new RegExp(`(?<=\\S)\\.(?:[a-zA-Z_]{2,${t}})(?:\\/|$)`).test(n)}const ek={"core/paragraph":["content"],"core/heading":["content"],"core/image":["id","url","title","alt"],"core/button":["url","text","linkTarget","rel"]},l2e="__default";function rvt(e,t){if(t?.[l2e]?.source==="core/pattern-overrides"){const n=ek[e],o={};for(const r of n){const s=t[r]?t[r]:{source:"core/pattern-overrides"};o[r]=s}return o}return t}function tk(e){return e in ek}function aT(e,t){return tk(e)&&ek[e].includes(t)}function svt(e){return ek[e]}const ivt=Sn(e=>t=>{const n=h0(),o=O.useContext(Xp),r=D(b=>Fe(b($e)).getAllBlockBindingsSources()),{name:s,clientId:i}=t,c=!!t.context["pattern/overrides"],l=t.attributes.metadata?.bindings?.[l2e]?.source==="core/pattern-overrides",u=O.useMemo(()=>rvt(s,t.attributes.metadata?.bindings),[t.attributes.metadata?.bindings,s]),d=D(()=>{if(!u)return;const b={},h=new Map;for(const[g,z]of Object.entries(u)){const{source:y,args:x}=z,v=r[y];!v||!aT(s,g)||h.set(v,{...h.get(v),[g]:{args:x}})}if(h.size)for(const[g,z]of h){const y={};if(g.usesContext?.length)for(const v of g.usesContext)y[v]=o[v];let x={};g.getValues?x=g.getValues({registry:n,context:y,clientId:i,bindings:z}):Object.keys(z).forEach(v=>{x[v]=z[v].args?.key||g.label});for(const[v,M]of Object.entries(x))v==="url"&&(!M||!rP(M))?b[v]=null:b[v]=M}return b},[u,s,i,o,n,r]),{setAttributes:p}=t,f=O.useCallback(b=>{n.batch(()=>{if(!u){p(b);return}const h={...b},g=new Map;for(const[z,y]of Object.entries(h)){if(!u[z]||!aT(s,z))continue;const x=u[z],v=r[x?.source];v?.setValues&&(g.set(v,{...g.get(v),[z]:{args:x.args,newValue:y}}),delete h[z])}if(g.size)for(const[z,y]of g){const x={};if(z.usesContext?.length)for(const v of z.usesContext)x[v]=o[v];z.setValues({registry:n,context:x,clientId:i,bindings:y})}!(l&&c)&&Object.keys(h).length&&(l&&(delete h?.caption,delete h?.href),p(h))})},[n,u,s,i,o,p,r,l,c]);return a.jsx(a.Fragment,{children:a.jsx(e,{...t,attributes:{...t.attributes,...d},setAttributes:f})})},"withBlockBindingSupport");function avt(e,t){return tk(t)?{...e,edit:ivt(e.edit)}:e}r0("blocks.registerBlockType","core/editor/custom-sources-backwards-compatibility/shim-attribute-source",avt);function ze(e={},{__unstableIsHtml:t}={}){const{clientId:n,className:o,wrapperProps:r={},isAligned:s,index:i,mode:c,name:l,blockApiVersion:u,blockTitle:d,editorMode:p,isSelected:f,isSubtreeDisabled:b,hasOverlay:h,initialPosition:g,blockEditingMode:z,isHighlighted:y,isMultiSelected:x,isPartiallySelected:v,isReusable:M,isDragging:A,hasChildSelected:_,isBlockMovingMode:w,canInsertMovingBlock:k,isEditingDisabled:q,hasEditableOutline:S,isTemporarilyEditingAsBlocks:C,defaultClassName:T,templateLock:W}=O.useContext(lz),B=le(m("Block: %s"),d),N=c==="html"&&!t?"-visual":"",E=Gt([e.ref,K4t({clientId:n,initialPosition:g}),YAt(n),Z4t(n),Q4t({clientId:n,isSelected:f}),J4t(n),evt({editorMode:p}),Y4t({clientId:n}),tvt(),s2e({triggerAnimationOnChange:i,clientId:n}),wB({isDisabled:!h}),c2e({clientId:n,isEnabled:l==="core/block"||W==="contentOnly"}),nvt({isSelected:f})]),L=eo(),P=!!L[WN]&&tk(l)?{"--wp-admin-theme-color":"var(--wp-block-synced-color)","--wp-admin-theme-color--rgb":"var(--wp-block-synced-color--rgb)"}:{};u<2&&n===L.clientId&&globalThis.SCRIPT_DEBUG===!0&&Xt(`Block type "${l}" must support API version 2 or higher to work correctly with "useBlockProps" method.`);let H=!1;return(r?.style?.marginTop?.charAt(0)==="-"||r?.style?.marginBottom?.charAt(0)==="-"||r?.style?.marginLeft?.charAt(0)==="-"||r?.style?.marginRight?.charAt(0)==="-")&&(H=!0),{tabIndex:z==="disabled"?-1:0,...r,...e,ref:E,id:`block-${n}${N}`,role:"document","aria-label":B,"data-block":n,"data-type":l,"data-title":d,inert:b?"true":void 0,className:$("block-editor-block-list__block",{"wp-block":!s,"has-block-overlay":h,"is-selected":f,"is-highlighted":y,"is-multi-selected":x,"is-partially-selected":v,"is-reusable":M,"is-dragging":A,"has-child-selected":_,"is-block-moving-mode":w,"can-insert-moving-block":k,"is-editing-disabled":q,"has-editable-outline":S,"has-negative-margin":H,"is-content-locked-temporarily-editing-as-blocks":C},o,e.className,r.className,T),style:{...r.style,...e.style,...P}}}ze.save=wv;function cvt(e,t){const n={...e,...t};return e?.hasOwnProperty("className")&&t?.hasOwnProperty("className")&&(n.className=$(e.className,t.className)),e?.hasOwnProperty("style")&&t?.hasOwnProperty("style")&&(n.style={...e.style,...t.style}),n}function NA({children:e,isHtml:t,...n}){return a.jsx("div",{...ze(n,{__unstableIsHtml:t}),children:e})}function cT({block:{__unstableBlockSource:e},mode:t,isLocked:n,canRemove:o,clientId:r,isSelected:s,isSelectionEnabled:i,className:c,__unstableLayoutClassNames:l,name:u,isValid:d,attributes:p,wrapperProps:f,setAttributes:b,onReplace:h,onInsertBlocksAfter:g,onMerge:z,toggleSelection:y}){var x;const{mayDisplayControls:v,mayDisplayParentControls:M,themeSupportsLayout:A,..._}=O.useContext(lz),{removeBlock:w}=ae(F),k=O.useCallback(()=>w(r),[r,w]),q=Hw()||{};let S=a.jsx(j3t,{name:u,isSelected:s,attributes:p,setAttributes:b,insertBlocksAfter:n?void 0:g,onReplace:o?h:void 0,onRemove:o?k:void 0,mergeBlocks:o?z:void 0,clientId:r,isSelectionEnabled:i,toggleSelection:y,__unstableLayoutClassNames:l,__unstableParentLayout:Object.keys(q).length?q:void 0,mayDisplayControls:v,mayDisplayParentControls:M,blockEditingMode:_.blockEditingMode,isPreviewMode:_.isPreviewMode});const C=Dt(u);C?.getEditWrapperProps&&(f=cvt(f,C.getEditWrapperProps(p)));const T=f&&!!f["data-align"]&&!A,W=c?.includes("is-position-sticky");T&&(S=a.jsx("div",{className:$("wp-block",W&&c),"data-align":f["data-align"],children:S}));let B;if(d)t==="html"?B=a.jsxs(a.Fragment,{children:[a.jsx("div",{style:{display:"none"},children:S}),a.jsx(NA,{isHtml:!0,children:a.jsx(xyt,{clientId:r})})]}):C?.apiVersion>1?B=S:B=a.jsx(NA,{children:S});else{const I=e?Tg(e):mf(C,p);B=a.jsxs(NA,{className:"has-warning",children:[a.jsx(syt,{clientId:r}),a.jsx(C1,{children:wx(I)})]})}const{"data-align":N,...E}=(x=f)!==null&&x!==void 0?x:{},L={...E,className:$(E.className,N&&A&&`align${N}`,!(N&&W)&&c)};return a.jsx(lz.Provider,{value:{wrapperProps:L,isAligned:T,..._},children:a.jsx(cyt,{fallback:a.jsx(NA,{className:"has-warning",children:a.jsx(ayt,{})}),children:B})})}const lvt=Fi((e,t,n)=>{const{updateBlockAttributes:o,insertBlocks:r,mergeBlocks:s,replaceBlocks:i,toggleSelection:c,__unstableMarkLastChangeAsPersistent:l,moveBlocksToPosition:u,removeBlock:d,selectBlock:p}=e(F);return{setAttributes(f){const{getMultiSelectedBlockClientIds:b}=n.select(F),h=b(),{clientId:g}=t,z=h.length?h:[g];o(z,f)},onInsertBlocks(f,b){const{rootClientId:h}=t;r(f,b,h)},onInsertBlocksAfter(f){const{clientId:b,rootClientId:h}=t,{getBlockIndex:g}=n.select(F),z=g(b);r(f,z+1,h)},onMerge(f){const{clientId:b,rootClientId:h}=t,{getPreviousBlockClientId:g,getNextBlockClientId:z,getBlock:y,getBlockAttributes:x,getBlockName:v,getBlockOrder:M,getBlockIndex:A,getBlockRootClientId:_,canInsertBlockType:w}=n.select(F);function k(){const S=y(b),C=jn();if(v(b)!==C){const T=l1(S,C);T&&T.length&&i(b,T)}else if(Yc(S)){const T=z(b);T&&n.batch(()=>{d(b),p(T)})}}function q(S,C=!0){const T=_(S),W=M(S),[B]=W;W.length===1&&Kb(y(B))?d(S):n.batch(()=>{if(w(v(B),T))u([B],S,T,A(S));else{const N=l1(y(B),jn());N&&N.length&&N.every(E=>w(E.name,T))?(r(N,A(S),T,C),d(B,!1)):k()}!M(S).length&&Kb(y(S))&&d(S,!1)})}if(f){if(h){const C=z(h);if(C)if(v(h)===v(C)){const T=x(h),W=x(C);if(Object.keys(T).every(B=>T[B]===W[B])){n.batch(()=>{u(M(C),C,h),d(C,!1)});return}}else{s(h,C);return}}const S=z(b);if(!S)return;M(S).length?q(S,!1):s(b,S)}else{const S=g(b);if(S)s(S,b);else if(h){const C=g(h);if(C&&v(h)===v(C)){const T=x(h),W=x(C);if(Object.keys(T).every(B=>T[B]===W[B])){n.batch(()=>{u(M(h),h,C),d(h,!1)});return}}q(h)}else k()}},onReplace(f,b,h){f.length&&!Yc(f[f.length-1])&&l();const g=f?.length===1&&Array.isArray(f[0])?f[0]:f;i([t.clientId],g,b,h)},toggleSelection(f){c(f)}}});cT=v0(lvt,gd("editor.BlockListBlock"))(cT);function uvt(e){const{clientId:t,rootClientId:n}=e,o=D(ee=>{const{isBlockSelected:ie,getBlockMode:se,isSelectionEnabled:be,getTemplateLock:ye,getBlockWithoutAttributes:xe,getBlockAttributes:K,canRemoveBlock:pe,canMoveBlock:G,getSettings:re,getTemporarilyEditingAsBlocks:Me,getBlockEditingMode:he,getBlockName:Q,isFirstMultiSelectedBlock:R,getMultiSelectedBlockClientIds:j,hasSelectedInnerBlock:V,getBlocksByName:de,getBlockIndex:ge,isBlockMultiSelected:ve,isBlockSubtreeDisabled:Ne,isBlockHighlighted:et,__unstableIsFullySelected:mt,__unstableSelectionHasUnmergeableBlock:Mt,isBlockBeingDragged:Ke,isDragging:Nt,hasBlockMovingClientId:zt,canInsertBlockType:Ue,__unstableHasActiveBlockOverlayActive:Xe,__unstableGetEditorMode:ot,getSelectedBlocksInitialCaretPosition:Ct}=Fe(ee(F)),n0=xe(t);if(!n0)return;const{hasBlockSupport:o1,getActiveBlockVariation:B1}=ee($e),p1=K(t),{name:Ot,isValid:k0}=n0,f1=Dt(Ot),{supportsLayout:dr,__unstableIsPreviewMode:pr}=re(),si=f1?.apiVersion>1,fr={isPreviewMode:pr,blockWithoutAttributes:n0,name:Ot,attributes:p1,isValid:k0,themeSupportsLayout:dr,index:ge(t),isReusable:dd(f1),className:si?p1.className:void 0,defaultClassName:si?_v(Ot):void 0,blockTitle:f1?.title};if(pr)return fr;const N1=ie(t),pt=pe(t),We=G(t),rt=B1(Ot,p1),Ft=ve(t),nn=V(t,!0),j0=zt(),r1=he(t),br=st(Ot,"multiple",!0)?[]:de(Ot),b1=br.length&&br[0]!==t,Yi=ot();return{...fr,mode:se(t),isSelectionEnabled:be(),isLocked:!!ye(n),templateLock:ye(t),canRemove:pt,canMove:We,isSelected:N1,isTemporarilyEditingAsBlocks:Me()===t,blockEditingMode:r1,mayDisplayControls:N1||R(t)&&j().every(Tn=>Q(Tn)===Ot),mayDisplayParentControls:o1(Q(t),"__experimentalExposeControlsToChildren",!1)&&V(t),blockApiVersion:f1?.apiVersion||1,blockTitle:rt?.title||f1?.title,editorMode:Yi,isSubtreeDisabled:r1==="disabled"&&Ne(t),hasOverlay:Xe(t)&&!Nt(),initialPosition:N1&&(Yi==="edit"||Yi==="zoom-out")?Ct():void 0,isHighlighted:et(t),isMultiSelected:Ft,isPartiallySelected:Ft&&!mt()&&!Mt(),isDragging:Ke(t),hasChildSelected:nn,isBlockMovingMode:!!j0,canInsertMovingBlock:j0&&Ue(Q(j0),n),isEditingDisabled:r1==="disabled",hasEditableOutline:r1!=="disabled"&&he(n)==="disabled",originalBlockClientId:b1?br[0]:!1}},[t,n]),{isPreviewMode:r,mode:s="visual",isSelectionEnabled:i=!1,isLocked:c=!1,canRemove:l=!1,canMove:u=!1,blockWithoutAttributes:d,name:p,attributes:f,isValid:b,isSelected:h=!1,themeSupportsLayout:g,isTemporarilyEditingAsBlocks:z,blockEditingMode:y,editorMode:x,mayDisplayControls:v,mayDisplayParentControls:M,index:A,blockApiVersion:_,blockTitle:w,isSubtreeDisabled:k,hasOverlay:q,initialPosition:S,isHighlighted:C,isMultiSelected:T,isPartiallySelected:W,isReusable:B,isDragging:N,hasChildSelected:E,isBlockMovingMode:L,canInsertMovingBlock:I,templateLock:P,isEditingDisabled:H,hasEditableOutline:U,className:X,defaultClassName:Z,originalBlockClientId:ne}=o,oe=O.useMemo(()=>({...d,attributes:f}),[d,f]);if(!o)return null;const Y={isPreviewMode:r,clientId:t,className:X,index:A,mode:s,name:p,blockApiVersion:_,blockTitle:w,isSelected:h,isSubtreeDisabled:k,hasOverlay:q,initialPosition:S,blockEditingMode:y,editorMode:x,isHighlighted:C,isMultiSelected:T,isPartiallySelected:W,isReusable:B,isDragging:N,hasChildSelected:E,isBlockMovingMode:L,canInsertMovingBlock:I,templateLock:P,isEditingDisabled:H,hasEditableOutline:U,isTemporarilyEditingAsBlocks:z,defaultClassName:Z,mayDisplayControls:v,mayDisplayParentControls:M,originalBlockClientId:ne,themeSupportsLayout:g};return a.jsx(lz.Provider,{value:Y,children:a.jsx(cT,{...e,mode:s,isSelectionEnabled:i,isLocked:c,canRemove:l,canMove:u,block:oe,name:p,attributes:f,isValid:b,isSelected:h})})}const dvt=O.memo(uvt),$K=[z1(m("While writing, you can press / to quickly insert new blocks."),{kbd:a.jsx("kbd",{})}),z1(m("Indent a list by pressing space at the beginning of a line."),{kbd:a.jsx("kbd",{})}),z1(m("Outdent a list by pressing backspace at the beginning of a line."),{kbd:a.jsx("kbd",{})}),m("Drag files into the editor to automatically insert media blocks."),m("Change a block's type by pressing the block icon on the toolbar.")];function pvt(){const[e]=O.useState(Math.floor(Math.random()*$K.length));return a.jsx(u2t,{children:$K[e]})}function sP({title:e,icon:t,description:n,blockType:o,className:r}){o&&(Re("`blockType` property in `BlockCard component`",{since:"5.7",alternative:"`title, icon and description` properties"}),{title:e,icon:t,description:n}=o);const{parentNavBlockClientId:s}=D(c=>{const{getSelectedBlockClientId:l,getBlockParentsByBlockName:u}=c(F),d=l();return{parentNavBlockClientId:u(d,"core/navigation",!0)[0]}},[]),{selectBlock:i}=ae(F);return a.jsxs("div",{className:$("block-editor-block-card",r),children:[s&&a.jsx(fe,{onClick:()=>i(s),label:m("Go to parent Navigation block"),style:{minWidth:24,padding:0},icon:ft()?Ei:Fa,size:"small"}),a.jsx(b0,{icon:t,showColors:!0}),a.jsxs(Ye,{spacing:1,children:[a.jsx("h2",{className:"block-editor-block-card__title",children:e}),n&&a.jsx(l0,{className:"block-editor-block-card__description",children:n})]})]})}function fvt(e,t,n){if(!n)return t;let o=e.get(t);return o||(o=SB({},t),o.registerStore(v1,Nw),e.set(t,o)),o}const bvt=Sn(e=>({useSubRegistry:t=!0,...n})=>{const o=h0(),[r]=O.useState(()=>new WeakMap),s=fvt(r,o,t);return s===o?a.jsx(e,{registry:o,...n}):a.jsx(Ene,{value:s,children:a.jsx(e,{registry:s,...n})})},"withRegistryProvider"),VK=()=>{};function u2e({clientId:e=null,value:t,selection:n,onChange:o=VK,onInput:r=VK}){const s=h0(),{resetBlocks:i,resetSelection:c,replaceInnerBlocks:l,setHasControlledInnerBlocks:u,__unstableMarkNextChangeAsNotPersistent:d}=s.dispatch(F),{getBlockName:p,getBlocks:f,getSelectionStart:b,getSelectionEnd:h}=s.select(F),g=D(w=>!e||w(F).areInnerBlocksControlled(e),[e]),z=O.useRef({incoming:null,outgoing:[]}),y=O.useRef(!1),x=()=>{t&&(d(),e?s.batch(()=>{u(e,!0);const w=t.map(k=>pn(k));y.current&&(z.current.incoming=w),d(),l(e,w)}):(y.current&&(z.current.incoming=t),i(t)))},v=()=>{d(),e?(u(e,!1),d(),l(e,[])):i([])},M=O.useRef(r),A=O.useRef(o);O.useEffect(()=>{M.current=r,A.current=o},[r,o]),O.useEffect(()=>{z.current.outgoing.includes(t)?z.current.outgoing[z.current.outgoing.length-1]===t&&(z.current.outgoing=[]):f(e)!==t&&(z.current.outgoing=[],x(),n&&c(n.selectionStart,n.selectionEnd,n.initialPosition))},[t,e]);const _=O.useRef(!1);O.useEffect(()=>{if(!_.current){_.current=!0;return}g||(z.current.outgoing=[],x())},[g]),O.useEffect(()=>{const{getSelectedBlocksInitialCaretPosition:w,isLastBlockChangePersistent:k,__unstableIsLastBlockChangeIgnored:q,areInnerBlocksControlled:S}=s.select(F);let C=f(e),T=k(),W=!1;y.current=!0;const B=s.subscribe(()=>{if(e!==null&&p(e)===null||!(!e||S(e)))return;const E=k(),L=f(e),I=L!==C;if(C=L,I&&(z.current.incoming||q())){z.current.incoming=null,T=E;return}(I||W&&!I&&E&&!T)&&(T=E,z.current.outgoing.push(C),(T?A.current:M.current)(C,{selection:{selectionStart:b(),selectionEnd:h(),initialPosition:w()}})),W=I},F);return()=>{y.current=!1,B()}},[s,e]),O.useEffect(()=>()=>{v()},[])}function hvt(e={},t){switch(t.type){case"REGISTER_SHORTCUT":return{...e,[t.name]:{category:t.category,keyCombination:t.keyCombination,aliases:t.aliases,description:t.description}};case"UNREGISTER_SHORTCUT":const{[t.name]:n,...o}=e;return o}return e}function mvt({name:e,category:t,description:n,keyCombination:o,aliases:r}){return{type:"REGISTER_SHORTCUT",name:e,category:t,keyCombination:o,aliases:r,description:n}}function Mvt(e){return{type:"UNREGISTER_SHORTCUT",name:e}}const gvt=Object.freeze(Object.defineProperty({__proto__:null,registerShortcut:mvt,unregisterShortcut:Mvt},Symbol.toStringTag,{value:"Module"})),zvt=[],Ovt={display:Jo,raw:H6e,ariaLabel:hne};function d2e(e,t){return e?e.modifier?Ovt[t][e.modifier](e.character):e.character:null}function iP(e,t){return e[t]?e[t].keyCombination:null}function Avt(e,t,n="display"){const o=iP(e,t);return d2e(o,n)}function yvt(e,t){return e[t]?e[t].description:null}function p2e(e,t){return e[t]&&e[t].aliases?e[t].aliases:zvt}const f2e=at((e,t)=>[iP(e,t),...p2e(e,t)].filter(Boolean),(e,t)=>[e[t]]),vvt=at((e,t)=>f2e(e,t).map(n=>d2e(n,"raw")),(e,t)=>[e[t]]),xvt=at((e,t)=>Object.entries(e).filter(([,n])=>n.category===t).map(([n])=>n),e=>[e]),_vt=Object.freeze(Object.defineProperty({__proto__:null,getAllShortcutKeyCombinations:f2e,getAllShortcutRawKeyCombinations:vvt,getCategoryShortcuts:xvt,getShortcutAliases:p2e,getShortcutDescription:yvt,getShortcutKeyCombination:iP,getShortcutRepresentation:Avt},Symbol.toStringTag,{value:"Module"})),wvt="core/keyboard-shortcuts",Br=er(wvt,{reducer:hvt,actions:gvt,selectors:_vt});Qs(Br);function nk(){const{getAllShortcutKeyCombinations:e}=D(Br);function t(n,o){return e(n).some(({modifier:r,character:s})=>$s[r](o,s))}return t}const hM=new Set,HK=e=>{for(const t of hM)t(e)},kvt=O.createContext({add:e=>{hM.size===0&&document.addEventListener("keydown",HK),hM.add(e)},delete:e=>{hM.delete(e),hM.size===0&&document.removeEventListener("keydown",HK)}});function Ur(e,t,{isDisabled:n=!1}={}){const o=O.useContext(kvt),r=nk(),s=O.useRef();O.useEffect(()=>{s.current=t},[t]),O.useEffect(()=>{if(n)return;function i(c){r(e,c)&&s.current(c)}return o.add(i),()=>{o.delete(i)}},[e,n,o])}function b2e(){return null}function qvt(){const{registerShortcut:e}=ae(Br);return O.useEffect(()=>{e({name:"core/block-editor/duplicate",category:"block",description:m("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:m("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:m("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:m("Insert a new block after the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"y"}}),e({name:"core/block-editor/delete-multi-selection",category:"block",description:m("Delete selection."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:m("Select all text when typing. Press again to select all blocks."),keyCombination:{modifier:"primary",character:"a"}}),e({name:"core/block-editor/unselect",category:"selection",description:m("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/multi-text-selection",category:"selection",description:m("Select text across multiple blocks."),keyCombination:{modifier:"shift",character:"arrow"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:m("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:m("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:m("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}}),e({name:"core/block-editor/collapse-list-view",category:"list-view",description:m("Collapse all other items."),keyCombination:{modifier:"alt",character:"l"}}),e({name:"core/block-editor/group",category:"block",description:m("Create a group block from the selected multiple blocks."),keyCombination:{modifier:"primary",character:"g"}})},[e]),null}b2e.Register=qvt;const ok=bvt(e=>{const{children:t,settings:n,stripExperimentalSettings:o=!1}=e,{__experimentalUpdateSettings:r}=Fe(ae(F));return O.useEffect(()=>{r({...n,__internalIsInitialized:!0},{stripExperimentalSettings:o,reset:!0})},[n,o,r]),u2e(e),a.jsxs(rtt,{passthrough:!0,children:[!n?.__unstableIsPreviewMode&&a.jsx(b2e.Register,{}),a.jsx(KAt,{children:t})]})}),Svt=e=>a.jsx(ok,{...e,stripExperimentalSettings:!0,children:e.children});function aP(){const{getSettings:e,hasSelectedBlock:t,hasMultiSelection:n}=D(F),{clearSelectedBlock:o}=ae(F),{clearBlockSelection:r}=e();return Et(s=>{if(!r)return;function i(c){!t()&&!n()||c.target===s&&o()}return s.addEventListener("mousedown",i),()=>{s.removeEventListener("mousedown",i)}},[t,n,o,r])}function Cvt(e){const{isMultiSelecting:t,getMultiSelectedBlockClientIds:n,hasMultiSelection:o,getSelectedBlockClientId:r,getSelectedBlocksInitialCaretPosition:s,__unstableIsFullySelected:i}=e(F);return{isMultiSelecting:t(),multiSelectedBlockClientIds:n(),hasMultiSelection:o(),selectedBlockClientId:r(),initialPosition:s(),isFullSelection:i()}}function Rvt(){const{initialPosition:e,isMultiSelecting:t,multiSelectedBlockClientIds:n,hasMultiSelection:o,selectedBlockClientId:r,isFullSelection:s}=D(Cvt,[]);return Et(i=>{const{ownerDocument:c}=i,{defaultView:l}=c;if(e==null||!o||t)return;const{length:u}=n;u<2||s&&(i.contentEditable=!0,i.focus(),l.getSelection().removeAllRanges())},[o,t,n,r,e,s])}function Wvt(){const e=O.useRef(),t=O.useRef(),n=O.useRef(),{hasMultiSelection:o,getSelectedBlockClientId:r,getBlockCount:s}=D(F),{setNavigationMode:i,setLastFocus:c}=Fe(ae(F)),l=D(y=>y(F).isNavigationMode(),[]),{getLastFocus:u}=Fe(D(F)),d=l?void 0:"0",p=O.useRef();function f(y){if(p.current)p.current=null;else if(o())e.current.focus();else if(r())u()?.current?u().current.focus():e.current.querySelector(`[data-block="${r()}"]`).focus();else{i(!0);const x=e.current.ownerDocument===y.target.ownerDocument?e.current:e.current.ownerDocument.defaultView.frameElement,v=y.target.compareDocumentPosition(x)&y.target.DOCUMENT_POSITION_FOLLOWING,M=Nn.tabbable.find(e.current);M.length&&(v?M[0]:M[M.length-1]).focus()}}const b=a.jsx("div",{ref:t,tabIndex:d,onFocus:f}),h=a.jsx("div",{ref:n,tabIndex:d,onFocus:f}),g=Et(y=>{function x(w){if(w.defaultPrevented)return;if(w.keyCode===Ea&&!o()){w.preventDefault(),i(!0);return}if(w.keyCode!==qp)return;const k=w.shiftKey,q=k?"findPrevious":"findNext";if(!o()&&!r()){w.target===y&&i(!0);return}const S=Nn.tabbable[q](w.target),C=w.target.closest("[data-block]"),T=C&&S&&(i2e(C,S)||ZM(C,S));if(one(S)&&T)return;const W=k?t:n;p.current=!0,W.current.focus({preventScroll:!0})}function v(w){c({...u(),current:w.target});const{ownerDocument:k}=y;!w.relatedTarget&&k.activeElement===k.body&&s()===0&&y.focus()}function M(w){if(w.keyCode!==qp||w.target?.getAttribute("role")==="region"||e.current===w.target)return;const q=w.shiftKey?"findPrevious":"findNext",S=Nn.tabbable[q](w.target);(S===t.current||S===n.current)&&(w.preventDefault(),S.focus({preventScroll:!0}))}const{ownerDocument:A}=y,{defaultView:_}=A;return _.addEventListener("keydown",M),y.addEventListener("keydown",x),y.addEventListener("focusout",v),()=>{_.removeEventListener("keydown",M),y.removeEventListener("keydown",x),y.removeEventListener("focusout",v)}},[]),z=Gt([e,g]);return[b,z,h]}function Tvt(e){const t="",n=e.indexOf(t);if(n>-1)e=e.substring(n+t.length);else return e;const r=e.indexOf("");return r>-1&&(e=e.substring(0,r)),e}function Evt(e){const t="";return e.startsWith(t)?e.slice(t.length):e}function cP({clipboardData:e}){let t="",n="";try{t=e.getData("text/plain"),n=e.getData("text/html")}catch{return}n=Tvt(n),n=Evt(n);const o=av(e);return o.length&&!Bvt(o,n)?{files:o}:{html:n,plainText:t,files:[]}}function Bvt(e,t){if(t&&e?.length===1&&e[0].type.indexOf("image/")===0){const n=/<\s*img\b/gi;if(t.match(n)?.length!==1)return!0;const o=/<\s*img\b[^>]*\bsrc="file:\/\//i;if(t.match(o))return!0}return!1}const h2e=Symbol("requiresWrapperOnCopy");function m2e(e,t,n){let o=t;const[r]=t;if(r&&n.select($e).getBlockType(r.name)[h2e]){const{getBlockRootClientId:c,getBlockName:l,getBlockAttributes:u}=n.select(F),d=c(r.clientId),p=l(d);p&&(o=me(p,u(d),o))}const s=Pr(o);e.clipboardData.setData("text/plain",Lvt(s)),e.clipboardData.setData("text/html",s)}function Nvt(e,t){const{plainText:n,html:o,files:r}=cP(e);let s=[];if(r.length){const i=Ys("from");s=r.reduce((c,l)=>{const u=Ia(i,d=>d.type==="files"&&d.isMatch([l]));return u&&c.push(u.transform([l])),c},[]).flat()}else s=Mf({HTML:o,plainText:n,mode:"BLOCKS",canUserUseUnfilteredHTML:t});return s}function Lvt(e){return e=e.replace(/
/g,` `),Rr(e).trim().replace(/\n\n+/g,` -`)}function Oz(e){const{defaultView:t}=e,{anchorNode:n,focusNode:o}=t.getSelection();if(!n||!o)return;const r=(n.nodeType===n.ELEMENT_NODE?n:n.parentElement).closest("[contenteditable]");if(r&&r.contains(o))return r}function jvt(e,t,n){const o=t===xi||t===Do,{tagName:r}=e,s=e.getAttribute("type");return o&&!n?r==="INPUT"?!["date","datetime-local","month","number","range","time","week"].includes(s):!0:r==="INPUT"?["button","checkbox","number","color","file","image","radio","reset","submit"].includes(s):r!=="TEXTAREA"}function yS(e,t,n,o){let r=Nn.focusable.find(n);t&&r.reverse(),r=r.slice(r.indexOf(e)+1);let s;o&&(s=e.getBoundingClientRect());function i(c){if(!c.closest("[inert]")&&!(c.children.length===1&&i2e(c,c.firstElementChild)&&c.firstElementChild.getAttribute("contenteditable")==="true")){if(!Nn.tabbable.isTabbableIndex(c)||c.isContentEditable&&c.contentEditable!=="true")return!1;if(o){const l=c.getBoundingClientRect();if(l.left>=s.right||l.right<=s.left)return!1}return!0}}return r.find(i)}function Pvt(){const{getMultiSelectedBlocksStartClientId:e,getMultiSelectedBlocksEndClientId:t,getSettings:n,hasMultiSelection:o,__unstableIsFullySelected:r}=D(F),{selectBlock:s}=ae(F);return Et(i=>{let c;function l(){c=null}function u(p,f){const b=yS(p,f,i);return b&&QM(b)}function d(p){if(p.defaultPrevented)return;const{keyCode:f,shiftKey:b,ctrlKey:h,altKey:g,metaKey:z}=p,y=f===xi,x=f===Do,v=f===Bs,M=f===Ns,A=y||v,_=v||M,w=y||x,k=_||w,q=b||h||g||z,S=w?v$:B6,{ownerDocument:C}=i,{defaultView:T}=C;if(!k)return;if(o()){if(b||!r())return;p.preventDefault(),A?s(e()):s(t(),-1);return}const W=C.activeElement===i?Oz(C):p.target;if(!jvt(W,f,q))return;w?c||(c=JR(T)):c=null;const B=vB(W)?!A:A,{keepCaretInsideBlock:N}=n();if(b)u(W,A)&&S(W,A)&&(i.contentEditable=!0,i.focus());else if(w&&v$(W,A)&&(!g||B6(W,B))&&!N){i.contentEditable=!1;const E=yS(W,A,i,!0);E&&(E6e(E,g?!A:A,g?void 0:c),p.preventDefault())}else if(_&&T.getSelection().isCollapsed&&B6(W,B)&&!N){i.contentEditable=!1;const E=yS(W,B,i);lne(E,A),p.preventDefault()}}return i.addEventListener("mousedown",l),i.addEventListener("keydown",d),()=>{i.removeEventListener("mousedown",l),i.removeEventListener("keydown",d)}},[])}function Ivt(){const{getBlockOrder:e,getSelectedBlockClientIds:t,getBlockRootClientId:n}=D(F),{multiSelect:o,selectBlock:r}=ae(F),s=nk();return Et(i=>{function c(l){if(!s("core/block-editor/select-all",l))return;const u=Oz(i.ownerDocument),d=t();if(u&&!d.length)return;if(u&&d.length<2&&!C6e(u)){if(i===i.ownerDocument.activeElement){l.preventDefault(),i.ownerDocument.defaultView.getSelection().selectAllChildren(u);return}return}l.preventDefault();const[p]=d,f=n(p),b=e(f);if(d.length===b.length){f&&(i.ownerDocument.defaultView.getSelection().removeAllRanges(),i.contentEditable="false",r(f));return}o(b[0],b[b.length-1])}return i.addEventListener("keydown",c),()=>{i.removeEventListener("keydown",c)}},[])}function UK(e,t){e.contentEditable=t,t&&e.focus()}function Dvt(){const{startMultiSelect:e,stopMultiSelect:t}=ae(F),{isSelectionEnabled:n,hasSelectedBlock:o,isDraggingBlocks:r,isMultiSelecting:s}=D(F);return Et(i=>{const{ownerDocument:c}=i,{defaultView:l}=c;let u,d;function p(){t(),l.removeEventListener("mouseup",p),d=l.requestAnimationFrame(()=>{if(!o())return;UK(i,!1);const b=l.getSelection();if(b.rangeCount){const h=b.getRangeAt(0),{commonAncestorContainer:g}=h,z=h.cloneRange();u.contains(g)&&(u.focus(),b.removeAllRanges(),b.addRange(z))}})}function f({buttons:b,target:h,relatedTarget:g}){h.contains(g)||r()||b===1&&(s()||i!==h&&h.getAttribute("contenteditable")==="true"&&n()&&(u=h,e(),l.addEventListener("mouseup",p),UK(i,!0)))}return i.addEventListener("mouseout",f),()=>{i.removeEventListener("mouseout",f),l.removeEventListener("mouseup",p),l.cancelAnimationFrame(d)}},[e,t,n,o])}function Fvt(e){const{anchorNode:t,anchorOffset:n}=e;return t.nodeType===t.TEXT_NODE||n===0?t:t.childNodes[n-1]}function $vt(e){const{focusNode:t,focusOffset:n}=e;if(t.nodeType===t.TEXT_NODE||n===t.childNodes.length)return t;if(n===0&&rne(e)){var o;return(o=t.previousSibling)!==null&&o!==void 0?o:t.parentElement}return t.childNodes[n]}function Vvt(e,t){let n=0;for(;e[n]===t[n];)n++;return n}function vS(e,t){e.contentEditable!==String(t)&&(e.contentEditable=t,t&&e.focus())}function XK(e){return(e.nodeType===e.ELEMENT_NODE?e:e.parentElement)?.closest("[data-wp-block-attribute-key]")}function Hvt(){const{multiSelect:e,selectBlock:t,selectionChange:n}=ae(F),{getBlockParents:o,getBlockSelectionStart:r,isMultiSelecting:s,getSelectedBlockClientId:i}=D(F);return Et(c=>{const{ownerDocument:l}=c,{defaultView:u}=l;function d(p){const f=u.getSelection();if(!f.rangeCount)return;const b=Fvt(f),h=$vt(f);if(!c.contains(b)||!c.contains(h))return;const g=p.shiftKey&&p.type==="mouseup";if(f.isCollapsed&&!g){if(c.contentEditable==="true"&&!s()){vS(c,!1);let A=b.nodeType===b.ELEMENT_NODE?b:b.parentElement;A=A?.closest("[contenteditable]"),A?.focus()}return}let z=QM(b),y=QM(h);if(g){const A=r(),_=QM(p.target),w=_!==y;(z===y&&f.isCollapsed||!y||w)&&(y=_),z!==A&&(z=A)}if(z===void 0&&y===void 0){vS(c,!1);return}if(vS(c,!!(z&&y)),z===y)s()?e(z,z):i()!==z&&t(z);else{const A=[...o(z),z],_=[...o(y),y],w=Vvt(A,_);if(A[w]!==z||_[w]!==y){e(A[w],_[w]);return}const k=XK(b),q=XK(h);if(k&&q){var v,M;const S=f.getRangeAt(0),C=m0({element:k,range:S,__unstableIsEditableTree:!0}),T=m0({element:q,range:S,__unstableIsEditableTree:!0}),W=(v=C.start)!==null&&v!==void 0?v:C.end,B=(M=T.start)!==null&&M!==void 0?M:T.end;n({start:{clientId:z,attributeKey:k.dataset.wpBlockAttributeKey,offset:W},end:{clientId:y,attributeKey:q.dataset.wpBlockAttributeKey,offset:B}})}else e(z,y)}}return l.addEventListener("selectionchange",d),u.addEventListener("mouseup",d),()=>{l.removeEventListener("selectionchange",d),u.removeEventListener("mouseup",d)}},[e,t,n,o])}function Uvt(){const{selectBlock:e}=ae(F),{isSelectionEnabled:t,getBlockSelectionStart:n,hasMultiSelection:o}=D(F);return Et(r=>{function s(i){if(!t()||i.button!==0)return;const c=n(),l=QM(i.target);i.shiftKey?c!==l&&(r.contentEditable=!0,r.focus()):o()&&e(l)}return r.addEventListener("mousedown",s),()=>{r.removeEventListener("mousedown",s)}},[e,t,n,o])}function Xvt(){const{__unstableIsFullySelected:e,getSelectedBlockClientIds:t,getSelectedBlockClientId:n,__unstableIsSelectionMergeable:o,hasMultiSelection:r,getBlockName:s,canInsertBlockType:i,getBlockRootClientId:c,getSelectionStart:l,getSelectionEnd:u,getBlockAttributes:d}=D(F),{replaceBlocks:p,__unstableSplitSelection:f,removeBlocks:b,__unstableDeleteSelection:h,__unstableExpandSelection:g,__unstableMarkAutomaticChange:z}=ae(F);return Et(y=>{function x(A){if(y.contentEditable==="true"){const _=y.ownerDocument.defaultView.getSelection(),w=_.rangeCount?_.getRangeAt(0):null,k=Oz(y.ownerDocument);k?(y.contentEditable=!1,k.focus(),_.removeAllRanges(),w&&_.addRange(w)):A.preventDefault()}}function v(A){if(!A.defaultPrevented){if(!r()){const{ownerDocument:_}=y;if(y===_.activeElement&&(A.key==="End"||A.key==="Home")){const w=Oz(_),k=_.defaultView.getSelection();k.selectAllChildren(w);const q=A.key==="End"?"collapseToEnd":"collapseToStart";k[q](),A.preventDefault();return}if(A.keyCode===y1){if(A.shiftKey||e())return;const w=n(),k=s(w),q=l(),S=u();if(q.attributeKey===S.attributeKey){const C=d(w)[q.attributeKey],T=Ys("from").filter(({type:B})=>B==="enter"),W=Ia(T,B=>B.regExp.test(C));if(W){p(w,W.transform({content:C})),z();return}}if(!st(k,"splitting",!1)&&!A.__deprecatedOnSplit)return;i(k,c(w))&&(f(),A.preventDefault())}return}A.keyCode===y1?(y.contentEditable=!1,A.preventDefault(),e()?p(t(),me(jn())):f()):A.keyCode===Si||A.keyCode===_a?(y.contentEditable=!1,A.preventDefault(),e()?b(t()):o()?h(A.keyCode===_a):g()):A.key.length===1&&!(A.metaKey||A.ctrlKey)&&(y.contentEditable=!1,o()?h(A.keyCode===_a):(A.preventDefault(),y.ownerDocument.defaultView.getSelection().removeAllRanges()))}}function M(A){r()&&(y.contentEditable=!1,o()?h():(A.preventDefault(),y.ownerDocument.defaultView.getSelection().removeAllRanges()))}return y.addEventListener("beforeinput",x),y.addEventListener("keydown",v),y.addEventListener("compositionstart",M),()=>{y.removeEventListener("beforeinput",x),y.removeEventListener("keydown",v),y.removeEventListener("compositionstart",M)}},[])}function lP(){const{getBlockName:e}=D(F),{getBlockType:t}=D($e),{createSuccessNotice:n}=ae(Ze);return O.useCallback((o,r)=>{let s="";if(r.length===1){const i=r[0],c=t(e(i))?.title;s=le(m(o==="copy"?'Copied "%s" to clipboard.':'Moved "%s" to clipboard.'),c)}else s=le(o==="copy"?a0("Copied %d block to clipboard.","Copied %d blocks to clipboard.",r.length):a0("Moved %d block to clipboard.","Moved %d blocks to clipboard.",r.length),r.length);n(s,{type:"snackbar"})},[])}function Gvt(){const e=h0(),{getBlocksByClientId:t,getSelectedBlockClientIds:n,hasMultiSelection:o,getSettings:r,getBlockName:s,__unstableIsFullySelected:i,__unstableIsSelectionCollapsed:c,__unstableIsSelectionMergeable:l,__unstableGetSelectedBlocksWithPartialSelection:u,canInsertBlockType:d,getBlockRootClientId:p}=D(F),{flashBlock:f,removeBlocks:b,replaceBlocks:h,__unstableDeleteSelection:g,__unstableExpandSelection:z,__unstableSplitSelection:y}=ae(F),x=lP();return Et(v=>{function M(A){if(A.defaultPrevented)return;const _=n();if(_.length===0)return;if(!o()){const{target:C}=A,{ownerDocument:T}=C;if(A.type==="copy"||A.type==="cut"?q6e(T):S6e(T)&&!T.activeElement.isContentEditable)return}const{activeElement:w}=A.target.ownerDocument;if(!v.contains(w))return;const k=l(),q=c()||i(),S=!q&&!k;if(A.type==="copy"||A.type==="cut")if(A.preventDefault(),_.length===1&&f(_[0]),S)z();else{x(A.type,_);let C;if(q)C=t(_);else{const[T,W]=u(),B=t(_.slice(1,_.length-1));C=[T,...B,W]}m2e(A,C,e)}if(A.type==="cut")q&&!S?b(_):(A.target.ownerDocument.activeElement.contentEditable=!1,g());else if(A.type==="paste"){const{__experimentalCanUserUseUnfilteredHTML:C}=r();if(A.clipboardData.getData("rich-text")==="true")return;const{plainText:W,html:B,files:N}=cP(A),E=i();let L=[];if(N.length){const U=Ys("from");L=N.reduce((X,Z)=>{const ne=Ia(U,oe=>oe.type==="files"&&oe.isMatch([Z]));return ne&&X.push(ne.transform([Z])),X},[]).flat()}else L=Mf({HTML:B,plainText:W,mode:E?"BLOCKS":"AUTO",canUserUseUnfilteredHTML:C});if(typeof L=="string")return;if(E){h(_,L,L.length-1,-1),A.preventDefault();return}if(!o()&&!st(s(_[0]),"splitting",!1)&&!A.__deprecatedOnSplit)return;const[I]=_,P=p(I),H=[];for(const U of L)if(d(U.name,P))H.push(U);else{const X=s(P),Z=U.name!==X?l1(U,X):[U];if(!Z)return;for(const ne of Z)for(const oe of ne.innerBlocks)H.push(oe)}y(H),A.preventDefault()}}return v.ownerDocument.addEventListener("copy",M),v.ownerDocument.addEventListener("cut",M),v.ownerDocument.addEventListener("paste",M),()=>{v.ownerDocument.removeEventListener("copy",M),v.ownerDocument.removeEventListener("cut",M),v.ownerDocument.removeEventListener("paste",M)}},[])}function Kvt(){return Et(e=>{function t(o){if(o.target!==e)return;const{ownerDocument:r}=e,{defaultView:s}=r,c=Object.getPrototypeOf(o).constructor.name,l=s[c],u=Oz(r);if(!u||u===e)return;const d={};for(const b in o)d[b]=o[b];d.bubbles=!1;const p=new l(o.type,d);!u.dispatchEvent(p)&&o.preventDefault()}const n=["beforeinput","input","compositionstart","compositionend","compositionupdate","keydown"];return n.forEach(o=>{e.addEventListener(o,t)}),()=>{n.forEach(o=>{e.removeEventListener(o,t)})}},[])}function M2e(){const[e,t,n]=Wvt(),o=D(r=>r(F).hasMultiSelection(),[]);return[e,Gt([t,Gvt(),Xvt(),Dvt(),Hvt(),Uvt(),Rvt(),Ivt(),Pvt(),Et(r=>{if(r.tabIndex=0,!!o)return r.classList.add("has-multi-selection"),r.setAttribute("aria-label",m("Multiple selected blocks")),()=>{r.classList.remove("has-multi-selection"),r.removeAttribute("aria-label")}},[o]),Kvt()]),n]}function Yvt({children:e,...t},n){const[o,r,s]=M2e();return a.jsxs(a.Fragment,{children:[o,a.jsx("div",{...t,ref:Gt([r,n]),className:$(t.className,"block-editor-writing-flow"),children:e}),s]})}const Zvt=O.forwardRef(Yvt);let LA=null;function Qvt(){return LA||(LA=Array.from(document.styleSheets).reduce((e,t)=>{try{t.cssRules}catch{return e}const{ownerNode:n,cssRules:o}=t;if(n===null||!o||n.id==="wp-reset-editor-styles-css"||!n.id)return e;function r(s){return Array.from(s).find(({selectorText:i,conditionText:c,cssRules:l})=>c?r(l):i&&(i.includes(".editor-styles-wrapper")||i.includes(".wp-block")))}if(r(o)){const s=n.tagName==="STYLE";if(s){const i=n.id.replace("-inline-css","-css"),c=document.getElementById(i);c&&e.push(c.cloneNode(!0))}if(e.push(n.cloneNode(!0)),!s){const i=n.id.replace("-css","-inline-css"),c=document.getElementById(i);c&&e.push(c.cloneNode(!0))}}return e},[]),LA)}function g2e(e,t,n){const o={};for(const i in e)o[i]=e[i];if(e instanceof n.contentDocument.defaultView.MouseEvent){const i=n.getBoundingClientRect();o.clientX+=i.left,o.clientY+=i.top}const r=new t(e.type,o);o.defaultPrevented&&r.preventDefault(),!n.dispatchEvent(r)&&e.preventDefault()}function Jvt(e){return Et(()=>{const{defaultView:t}=e;if(!t)return;const{frameElement:n}=t,o=e.documentElement,r=["dragover","mousemove"],s={};for(const i of r)s[i]=c=>{const u=Object.getPrototypeOf(c).constructor.name,d=window[u];g2e(c,d,n)},o.addEventListener(i,s[i]);return()=>{for(const i of r)o.removeEventListener(i,s[i])}})}function e5t({contentRef:e,children:t,tabIndex:n=0,scale:o=1,frameSize:r=0,readonly:s,forwardedRef:i,title:c=m("Editor canvas"),...l}){const{resolvedAssets:u,isPreviewMode:d}=D(oe=>{const{getSettings:Y}=oe(F),ee=Y();return{resolvedAssets:ee.__unstableResolvedAssets,isPreviewMode:ee.__unstableIsPreviewMode}},[]),{styles:p="",scripts:f=""}=u,[b,h]=O.useState(),g=O.useRef(),[z,y]=O.useState([]),x=aP(),[v,M,A]=M2e(),[_,{height:w}]=Ci(),[k,{width:q}]=Ci(),S=Et(oe=>{oe._load=()=>{h(oe.contentDocument)};let Y;function ee(se){se.preventDefault()}function ie(){const{contentDocument:se,ownerDocument:be}=oe,{documentElement:ye}=se;Y=se,ye.classList.add("block-editor-iframe__html"),x(ye),y(Array.from(be.body.classList).filter(xe=>xe.startsWith("admin-color-")||xe.startsWith("post-type-")||xe==="wp-embed-responsive")),se.dir=be.dir;for(const xe of Qvt())se.getElementById(xe.id)||(se.head.appendChild(xe.cloneNode(!0)),d||console.warn(`${xe.id} was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe.`,xe));Y.addEventListener("dragover",ee,!1),Y.addEventListener("drop",ee,!1)}return oe.addEventListener("load",ie),()=>{delete oe._load,oe.removeEventListener("load",ie),Y?.removeEventListener("dragover",ee),Y?.removeEventListener("drop",ee)}},[]),[C,T]=O.useState(),W=Et(oe=>{const Y=oe.ownerDocument.defaultView;T(Y.innerHeight);const ee=()=>{T(Y.innerHeight)};return Y.addEventListener("resize",ee),()=>{Y.removeEventListener("resize",ee)}},[]),[B,N]=O.useState(),E=Et(oe=>{const Y=oe.ownerDocument.defaultView;N(Y.innerWidth);const ee=()=>{N(Y.innerWidth)};return Y.addEventListener("resize",ee),()=>{Y.removeEventListener("resize",ee)}},[]),L=o!==1;O.useEffect(()=>{L||(g.current=q)},[q,L]);const I=wB({isDisabled:!s}),P=Gt([Jvt(b),e,x,M,I,L?W:null]),H=` +`)}function Oz(e){const{defaultView:t}=e,{anchorNode:n,focusNode:o}=t.getSelection();if(!n||!o)return;const r=(n.nodeType===n.ELEMENT_NODE?n:n.parentElement).closest("[contenteditable]");if(r&&r.contains(o))return r}function jvt(e,t,n){const o=t===xi||t===Do,{tagName:r}=e,s=e.getAttribute("type");return o&&!n?r==="INPUT"?!["date","datetime-local","month","number","range","time","week"].includes(s):!0:r==="INPUT"?["button","checkbox","number","color","file","image","radio","reset","submit"].includes(s):r!=="TEXTAREA"}function yS(e,t,n,o){let r=Nn.focusable.find(n);t&&r.reverse(),r=r.slice(r.indexOf(e)+1);let s;o&&(s=e.getBoundingClientRect());function i(c){if(!c.closest("[inert]")&&!(c.children.length===1&&i2e(c,c.firstElementChild)&&c.firstElementChild.getAttribute("contenteditable")==="true")){if(!Nn.tabbable.isTabbableIndex(c)||c.isContentEditable&&c.contentEditable!=="true")return!1;if(o){const l=c.getBoundingClientRect();if(l.left>=s.right||l.right<=s.left)return!1}return!0}}return r.find(i)}function Pvt(){const{getMultiSelectedBlocksStartClientId:e,getMultiSelectedBlocksEndClientId:t,getSettings:n,hasMultiSelection:o,__unstableIsFullySelected:r}=D(F),{selectBlock:s}=ae(F);return Et(i=>{let c;function l(){c=null}function u(p,f){const b=yS(p,f,i);return b&&QM(b)}function d(p){if(p.defaultPrevented)return;const{keyCode:f,shiftKey:b,ctrlKey:h,altKey:g,metaKey:z}=p,y=f===xi,x=f===Do,v=f===Ns,M=f===Ls,A=y||v,_=v||M,w=y||x,k=_||w,q=b||h||g||z,S=w?v$:B6,{ownerDocument:C}=i,{defaultView:T}=C;if(!k)return;if(o()){if(b||!r())return;p.preventDefault(),A?s(e()):s(t(),-1);return}const W=C.activeElement===i?Oz(C):p.target;if(!jvt(W,f,q))return;w?c||(c=JR(T)):c=null;const B=vB(W)?!A:A,{keepCaretInsideBlock:N}=n();if(b)u(W,A)&&S(W,A)&&(i.contentEditable=!0,i.focus());else if(w&&v$(W,A)&&(!g||B6(W,B))&&!N){i.contentEditable=!1;const E=yS(W,A,i,!0);E&&(E6e(E,g?!A:A,g?void 0:c),p.preventDefault())}else if(_&&T.getSelection().isCollapsed&&B6(W,B)&&!N){i.contentEditable=!1;const E=yS(W,B,i);lne(E,A),p.preventDefault()}}return i.addEventListener("mousedown",l),i.addEventListener("keydown",d),()=>{i.removeEventListener("mousedown",l),i.removeEventListener("keydown",d)}},[])}function Ivt(){const{getBlockOrder:e,getSelectedBlockClientIds:t,getBlockRootClientId:n}=D(F),{multiSelect:o,selectBlock:r}=ae(F),s=nk();return Et(i=>{function c(l){if(!s("core/block-editor/select-all",l))return;const u=Oz(i.ownerDocument),d=t();if(u&&!d.length)return;if(u&&d.length<2&&!C6e(u)){if(i===i.ownerDocument.activeElement){l.preventDefault(),i.ownerDocument.defaultView.getSelection().selectAllChildren(u);return}return}l.preventDefault();const[p]=d,f=n(p),b=e(f);if(d.length===b.length){f&&(i.ownerDocument.defaultView.getSelection().removeAllRanges(),i.contentEditable="false",r(f));return}o(b[0],b[b.length-1])}return i.addEventListener("keydown",c),()=>{i.removeEventListener("keydown",c)}},[])}function UK(e,t){e.contentEditable=t,t&&e.focus()}function Dvt(){const{startMultiSelect:e,stopMultiSelect:t}=ae(F),{isSelectionEnabled:n,hasSelectedBlock:o,isDraggingBlocks:r,isMultiSelecting:s}=D(F);return Et(i=>{const{ownerDocument:c}=i,{defaultView:l}=c;let u,d;function p(){t(),l.removeEventListener("mouseup",p),d=l.requestAnimationFrame(()=>{if(!o())return;UK(i,!1);const b=l.getSelection();if(b.rangeCount){const h=b.getRangeAt(0),{commonAncestorContainer:g}=h,z=h.cloneRange();u.contains(g)&&(u.focus(),b.removeAllRanges(),b.addRange(z))}})}function f({buttons:b,target:h,relatedTarget:g}){h.contains(g)||r()||b===1&&(s()||i!==h&&h.getAttribute("contenteditable")==="true"&&n()&&(u=h,e(),l.addEventListener("mouseup",p),UK(i,!0)))}return i.addEventListener("mouseout",f),()=>{i.removeEventListener("mouseout",f),l.removeEventListener("mouseup",p),l.cancelAnimationFrame(d)}},[e,t,n,o])}function Fvt(e){const{anchorNode:t,anchorOffset:n}=e;return t.nodeType===t.TEXT_NODE||n===0?t:t.childNodes[n-1]}function $vt(e){const{focusNode:t,focusOffset:n}=e;if(t.nodeType===t.TEXT_NODE||n===t.childNodes.length)return t;if(n===0&&rne(e)){var o;return(o=t.previousSibling)!==null&&o!==void 0?o:t.parentElement}return t.childNodes[n]}function Vvt(e,t){let n=0;for(;e[n]===t[n];)n++;return n}function vS(e,t){e.contentEditable!==String(t)&&(e.contentEditable=t,t&&e.focus())}function XK(e){return(e.nodeType===e.ELEMENT_NODE?e:e.parentElement)?.closest("[data-wp-block-attribute-key]")}function Hvt(){const{multiSelect:e,selectBlock:t,selectionChange:n}=ae(F),{getBlockParents:o,getBlockSelectionStart:r,isMultiSelecting:s,getSelectedBlockClientId:i}=D(F);return Et(c=>{const{ownerDocument:l}=c,{defaultView:u}=l;function d(p){const f=u.getSelection();if(!f.rangeCount)return;const b=Fvt(f),h=$vt(f);if(!c.contains(b)||!c.contains(h))return;const g=p.shiftKey&&p.type==="mouseup";if(f.isCollapsed&&!g){if(c.contentEditable==="true"&&!s()){vS(c,!1);let A=b.nodeType===b.ELEMENT_NODE?b:b.parentElement;A=A?.closest("[contenteditable]"),A?.focus()}return}let z=QM(b),y=QM(h);if(g){const A=r(),_=QM(p.target),w=_!==y;(z===y&&f.isCollapsed||!y||w)&&(y=_),z!==A&&(z=A)}if(z===void 0&&y===void 0){vS(c,!1);return}if(vS(c,!!(z&&y)),z===y)s()?e(z,z):i()!==z&&t(z);else{const A=[...o(z),z],_=[...o(y),y],w=Vvt(A,_);if(A[w]!==z||_[w]!==y){e(A[w],_[w]);return}const k=XK(b),q=XK(h);if(k&&q){var v,M;const S=f.getRangeAt(0),C=m0({element:k,range:S,__unstableIsEditableTree:!0}),T=m0({element:q,range:S,__unstableIsEditableTree:!0}),W=(v=C.start)!==null&&v!==void 0?v:C.end,B=(M=T.start)!==null&&M!==void 0?M:T.end;n({start:{clientId:z,attributeKey:k.dataset.wpBlockAttributeKey,offset:W},end:{clientId:y,attributeKey:q.dataset.wpBlockAttributeKey,offset:B}})}else e(z,y)}}return l.addEventListener("selectionchange",d),u.addEventListener("mouseup",d),()=>{l.removeEventListener("selectionchange",d),u.removeEventListener("mouseup",d)}},[e,t,n,o])}function Uvt(){const{selectBlock:e}=ae(F),{isSelectionEnabled:t,getBlockSelectionStart:n,hasMultiSelection:o}=D(F);return Et(r=>{function s(i){if(!t()||i.button!==0)return;const c=n(),l=QM(i.target);i.shiftKey?c!==l&&(r.contentEditable=!0,r.focus()):o()&&e(l)}return r.addEventListener("mousedown",s),()=>{r.removeEventListener("mousedown",s)}},[e,t,n,o])}function Xvt(){const{__unstableIsFullySelected:e,getSelectedBlockClientIds:t,getSelectedBlockClientId:n,__unstableIsSelectionMergeable:o,hasMultiSelection:r,getBlockName:s,canInsertBlockType:i,getBlockRootClientId:c,getSelectionStart:l,getSelectionEnd:u,getBlockAttributes:d}=D(F),{replaceBlocks:p,__unstableSplitSelection:f,removeBlocks:b,__unstableDeleteSelection:h,__unstableExpandSelection:g,__unstableMarkAutomaticChange:z}=ae(F);return Et(y=>{function x(A){if(y.contentEditable==="true"){const _=y.ownerDocument.defaultView.getSelection(),w=_.rangeCount?_.getRangeAt(0):null,k=Oz(y.ownerDocument);k?(y.contentEditable=!1,k.focus(),_.removeAllRanges(),w&&_.addRange(w)):A.preventDefault()}}function v(A){if(!A.defaultPrevented){if(!r()){const{ownerDocument:_}=y;if(y===_.activeElement&&(A.key==="End"||A.key==="Home")){const w=Oz(_),k=_.defaultView.getSelection();k.selectAllChildren(w);const q=A.key==="End"?"collapseToEnd":"collapseToStart";k[q](),A.preventDefault();return}if(A.keyCode===y1){if(A.shiftKey||e())return;const w=n(),k=s(w),q=l(),S=u();if(q.attributeKey===S.attributeKey){const C=d(w)[q.attributeKey],T=Ys("from").filter(({type:B})=>B==="enter"),W=Ia(T,B=>B.regExp.test(C));if(W){p(w,W.transform({content:C})),z();return}}if(!st(k,"splitting",!1)&&!A.__deprecatedOnSplit)return;i(k,c(w))&&(f(),A.preventDefault())}return}A.keyCode===y1?(y.contentEditable=!1,A.preventDefault(),e()?p(t(),me(jn())):f()):A.keyCode===Si||A.keyCode===_a?(y.contentEditable=!1,A.preventDefault(),e()?b(t()):o()?h(A.keyCode===_a):g()):A.key.length===1&&!(A.metaKey||A.ctrlKey)&&(y.contentEditable=!1,o()?h(A.keyCode===_a):(A.preventDefault(),y.ownerDocument.defaultView.getSelection().removeAllRanges()))}}function M(A){r()&&(y.contentEditable=!1,o()?h():(A.preventDefault(),y.ownerDocument.defaultView.getSelection().removeAllRanges()))}return y.addEventListener("beforeinput",x),y.addEventListener("keydown",v),y.addEventListener("compositionstart",M),()=>{y.removeEventListener("beforeinput",x),y.removeEventListener("keydown",v),y.removeEventListener("compositionstart",M)}},[])}function lP(){const{getBlockName:e}=D(F),{getBlockType:t}=D($e),{createSuccessNotice:n}=ae(Ze);return O.useCallback((o,r)=>{let s="";if(r.length===1){const i=r[0],c=t(e(i))?.title;s=le(m(o==="copy"?'Copied "%s" to clipboard.':'Moved "%s" to clipboard.'),c)}else s=le(o==="copy"?a0("Copied %d block to clipboard.","Copied %d blocks to clipboard.",r.length):a0("Moved %d block to clipboard.","Moved %d blocks to clipboard.",r.length),r.length);n(s,{type:"snackbar"})},[])}function Gvt(){const e=h0(),{getBlocksByClientId:t,getSelectedBlockClientIds:n,hasMultiSelection:o,getSettings:r,getBlockName:s,__unstableIsFullySelected:i,__unstableIsSelectionCollapsed:c,__unstableIsSelectionMergeable:l,__unstableGetSelectedBlocksWithPartialSelection:u,canInsertBlockType:d,getBlockRootClientId:p}=D(F),{flashBlock:f,removeBlocks:b,replaceBlocks:h,__unstableDeleteSelection:g,__unstableExpandSelection:z,__unstableSplitSelection:y}=ae(F),x=lP();return Et(v=>{function M(A){if(A.defaultPrevented)return;const _=n();if(_.length===0)return;if(!o()){const{target:C}=A,{ownerDocument:T}=C;if(A.type==="copy"||A.type==="cut"?q6e(T):S6e(T)&&!T.activeElement.isContentEditable)return}const{activeElement:w}=A.target.ownerDocument;if(!v.contains(w))return;const k=l(),q=c()||i(),S=!q&&!k;if(A.type==="copy"||A.type==="cut")if(A.preventDefault(),_.length===1&&f(_[0]),S)z();else{x(A.type,_);let C;if(q)C=t(_);else{const[T,W]=u(),B=t(_.slice(1,_.length-1));C=[T,...B,W]}m2e(A,C,e)}if(A.type==="cut")q&&!S?b(_):(A.target.ownerDocument.activeElement.contentEditable=!1,g());else if(A.type==="paste"){const{__experimentalCanUserUseUnfilteredHTML:C}=r();if(A.clipboardData.getData("rich-text")==="true")return;const{plainText:W,html:B,files:N}=cP(A),E=i();let L=[];if(N.length){const U=Ys("from");L=N.reduce((X,Z)=>{const ne=Ia(U,oe=>oe.type==="files"&&oe.isMatch([Z]));return ne&&X.push(ne.transform([Z])),X},[]).flat()}else L=Mf({HTML:B,plainText:W,mode:E?"BLOCKS":"AUTO",canUserUseUnfilteredHTML:C});if(typeof L=="string")return;if(E){h(_,L,L.length-1,-1),A.preventDefault();return}if(!o()&&!st(s(_[0]),"splitting",!1)&&!A.__deprecatedOnSplit)return;const[I]=_,P=p(I),H=[];for(const U of L)if(d(U.name,P))H.push(U);else{const X=s(P),Z=U.name!==X?l1(U,X):[U];if(!Z)return;for(const ne of Z)for(const oe of ne.innerBlocks)H.push(oe)}y(H),A.preventDefault()}}return v.ownerDocument.addEventListener("copy",M),v.ownerDocument.addEventListener("cut",M),v.ownerDocument.addEventListener("paste",M),()=>{v.ownerDocument.removeEventListener("copy",M),v.ownerDocument.removeEventListener("cut",M),v.ownerDocument.removeEventListener("paste",M)}},[])}function Kvt(){return Et(e=>{function t(o){if(o.target!==e)return;const{ownerDocument:r}=e,{defaultView:s}=r,c=Object.getPrototypeOf(o).constructor.name,l=s[c],u=Oz(r);if(!u||u===e)return;const d={};for(const b in o)d[b]=o[b];d.bubbles=!1;const p=new l(o.type,d);!u.dispatchEvent(p)&&o.preventDefault()}const n=["beforeinput","input","compositionstart","compositionend","compositionupdate","keydown"];return n.forEach(o=>{e.addEventListener(o,t)}),()=>{n.forEach(o=>{e.removeEventListener(o,t)})}},[])}function M2e(){const[e,t,n]=Wvt(),o=D(r=>r(F).hasMultiSelection(),[]);return[e,Gt([t,Gvt(),Xvt(),Dvt(),Hvt(),Uvt(),Rvt(),Ivt(),Pvt(),Et(r=>{if(r.tabIndex=0,!!o)return r.classList.add("has-multi-selection"),r.setAttribute("aria-label",m("Multiple selected blocks")),()=>{r.classList.remove("has-multi-selection"),r.removeAttribute("aria-label")}},[o]),Kvt()]),n]}function Yvt({children:e,...t},n){const[o,r,s]=M2e();return a.jsxs(a.Fragment,{children:[o,a.jsx("div",{...t,ref:Gt([r,n]),className:$(t.className,"block-editor-writing-flow"),children:e}),s]})}const Zvt=O.forwardRef(Yvt);let LA=null;function Qvt(){return LA||(LA=Array.from(document.styleSheets).reduce((e,t)=>{try{t.cssRules}catch{return e}const{ownerNode:n,cssRules:o}=t;if(n===null||!o||n.id==="wp-reset-editor-styles-css"||!n.id)return e;function r(s){return Array.from(s).find(({selectorText:i,conditionText:c,cssRules:l})=>c?r(l):i&&(i.includes(".editor-styles-wrapper")||i.includes(".wp-block")))}if(r(o)){const s=n.tagName==="STYLE";if(s){const i=n.id.replace("-inline-css","-css"),c=document.getElementById(i);c&&e.push(c.cloneNode(!0))}if(e.push(n.cloneNode(!0)),!s){const i=n.id.replace("-css","-inline-css"),c=document.getElementById(i);c&&e.push(c.cloneNode(!0))}}return e},[]),LA)}function g2e(e,t,n){const o={};for(const i in e)o[i]=e[i];if(e instanceof n.contentDocument.defaultView.MouseEvent){const i=n.getBoundingClientRect();o.clientX+=i.left,o.clientY+=i.top}const r=new t(e.type,o);o.defaultPrevented&&r.preventDefault(),!n.dispatchEvent(r)&&e.preventDefault()}function Jvt(e){return Et(()=>{const{defaultView:t}=e;if(!t)return;const{frameElement:n}=t,o=e.documentElement,r=["dragover","mousemove"],s={};for(const i of r)s[i]=c=>{const u=Object.getPrototypeOf(c).constructor.name,d=window[u];g2e(c,d,n)},o.addEventListener(i,s[i]);return()=>{for(const i of r)o.removeEventListener(i,s[i])}})}function e5t({contentRef:e,children:t,tabIndex:n=0,scale:o=1,frameSize:r=0,readonly:s,forwardedRef:i,title:c=m("Editor canvas"),...l}){const{resolvedAssets:u,isPreviewMode:d}=D(oe=>{const{getSettings:Y}=oe(F),ee=Y();return{resolvedAssets:ee.__unstableResolvedAssets,isPreviewMode:ee.__unstableIsPreviewMode}},[]),{styles:p="",scripts:f=""}=u,[b,h]=O.useState(),g=O.useRef(),[z,y]=O.useState([]),x=aP(),[v,M,A]=M2e(),[_,{height:w}]=Ci(),[k,{width:q}]=Ci(),S=Et(oe=>{oe._load=()=>{h(oe.contentDocument)};let Y;function ee(se){se.preventDefault()}function ie(){const{contentDocument:se,ownerDocument:be}=oe,{documentElement:ye}=se;Y=se,ye.classList.add("block-editor-iframe__html"),x(ye),y(Array.from(be.body.classList).filter(xe=>xe.startsWith("admin-color-")||xe.startsWith("post-type-")||xe==="wp-embed-responsive")),se.dir=be.dir;for(const xe of Qvt())se.getElementById(xe.id)||(se.head.appendChild(xe.cloneNode(!0)),d||console.warn(`${xe.id} was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe.`,xe));Y.addEventListener("dragover",ee,!1),Y.addEventListener("drop",ee,!1)}return oe.addEventListener("load",ie),()=>{delete oe._load,oe.removeEventListener("load",ie),Y?.removeEventListener("dragover",ee),Y?.removeEventListener("drop",ee)}},[]),[C,T]=O.useState(),W=Et(oe=>{const Y=oe.ownerDocument.defaultView;T(Y.innerHeight);const ee=()=>{T(Y.innerHeight)};return Y.addEventListener("resize",ee),()=>{Y.removeEventListener("resize",ee)}},[]),[B,N]=O.useState(),E=Et(oe=>{const Y=oe.ownerDocument.defaultView;N(Y.innerWidth);const ee=()=>{N(Y.innerWidth)};return Y.addEventListener("resize",ee),()=>{Y.removeEventListener("resize",ee)}},[]),L=o!==1;O.useEffect(()=>{L||(g.current=q)},[q,L]);const I=wB({isDisabled:!s}),P=Gt([Jvt(b),e,x,M,I,L?W:null]),H=` @@ -473,7 +473,7 @@ The screen with id ${t.id} will not be added.`),e):[...e,t]}function Lft({screen `," "];return yz.split(e,t)},split(e,t,n){let o=[],r="",s=!1,i=0,c=!1,l="",u=!1;for(let d of e)u?u=!1:d==="\\"?u=!0:c?d===l&&(c=!1):d==='"'||d==="'"?(c=!0,l=d):d==="("?i+=1:d===")"?i>0&&(i-=1):i===0&&t.includes(d)&&(s=!0),s?(r!==""&&o.push(r.trim()),r="",s=!1):r+=d;return(n||r!=="")&&o.push(r.trim()),o}};var H2e=yz;yz.default=yz;let U2e=qf,Q5t=H2e,v5=class extends U2e{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Q5t.comma(this.selector)}set selectors(t){let n=this.selector?this.selector.match(/,\s*/):null,o=n?n[0]:","+this.raw("between","beforeOpen");this.selector=t.join(o)}};var MP=v5;v5.default=v5;U2e.registerRule(v5);let J5t=ik,ext=Z5t,txt=ck,nxt=mP,oxt=iO,aY=MP;const cY={empty:!0,space:!0};function rxt(e){for(let t=e.length-1;t>=0;t--){let n=e[t],o=n[3]||n[2];if(o)return o}}let sxt=class{constructor(t){this.input=t,this.root=new oxt,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let n=new nxt;n.name=t[1].slice(1),n.name===""&&this.unnamedAtrule(n,t),this.init(n,t[2]);let o,r,s,i=!1,c=!1,l=[],u=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),o=t[0],o==="("||o==="["?u.push(o==="("?")":"]"):o==="{"&&u.length>0?u.push("}"):o===u[u.length-1]&&u.pop(),u.length===0)if(o===";"){n.source.end=this.getPosition(t[2]),n.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){c=!0;break}else if(o==="}"){if(l.length>0){for(s=l.length-1,r=l[s];r&&r[0]==="space";)r=l[--s];r&&(n.source.end=this.getPosition(r[3]||r[2]),n.source.end.offset++)}this.end(t);break}else l.push(t);else l.push(t);if(this.tokenizer.endOfFile()){i=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(n.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(n,"params",l),i&&(t=l[l.length-1],n.source.end=this.getPosition(t[3]||t[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),c&&(n.nodes=[],this.current=n)}checkMissedSemicolon(t){let n=this.colon(t);if(n===!1)return;let o=0,r;for(let s=n-1;s>=0&&(r=t[s],!(r[0]!=="space"&&(o+=1,o===2)));s--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(t){let n=0,o,r,s;for(let[i,c]of t.entries()){if(o=c,r=o[0],r==="("&&(n+=1),r===")"&&(n-=1),n===0&&r===":")if(!s)this.doubleColon(o);else{if(s[0]==="word"&&s[1]==="progid")continue;return i}s=o}return!1}comment(t){let n=new txt;this.init(n,t[2]),n.source.end=this.getPosition(t[3]||t[2]),n.source.end.offset++;let o=t[1].slice(2,-2);if(/^\s*$/.test(o))n.text="",n.raws.left=o,n.raws.right="";else{let r=o.match(/^(\s*)([^]*\S)(\s*)$/);n.text=r[2],n.raws.left=r[1],n.raws.right=r[3]}}createTokenizer(){this.tokenizer=ext(this.input)}decl(t,n){let o=new J5t;this.init(o,t[0][2]);let r=t[t.length-1];for(r[0]===";"&&(this.semicolon=!0,t.pop()),o.source.end=this.getPosition(r[3]||r[2]||rxt(t)),o.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),o.raws.before+=t.shift()[1];for(o.source.start=this.getPosition(t[0][2]),o.prop="";t.length;){let u=t[0][0];if(u===":"||u==="space"||u==="comment")break;o.prop+=t.shift()[1]}o.raws.between="";let s;for(;t.length;)if(s=t.shift(),s[0]===":"){o.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),o.raws.between+=s[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));let i=[],c;for(;t.length&&(c=t[0][0],!(c!=="space"&&c!=="comment"));)i.push(t.shift());this.precheckMissedSemicolon(t);for(let u=t.length-1;u>=0;u--){if(s=t[u],s[1].toLowerCase()==="!important"){o.important=!0;let d=this.stringFrom(t,u);d=this.spacesFromEnd(t)+d,d!==" !important"&&(o.raws.important=d);break}else if(s[1].toLowerCase()==="important"){let d=t.slice(0),p="";for(let f=u;f>0;f--){let b=d[f][0];if(p.trim().indexOf("!")===0&&b!=="space")break;p=d.pop()[1]+p}p.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=p,t=d)}if(s[0]!=="space"&&s[0]!=="comment")break}t.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(o.raws.between+=i.map(u=>u[1]).join(""),i=[]),this.raw(o,"value",i.concat(t),n),o.value.includes(":")&&!n&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let n=new aY;this.init(n,t[2]),n.selector="",n.raws.between="",this.current=n}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let n=this.current.nodes[this.current.nodes.length-1];n&&n.type==="rule"&&!n.raws.ownSemicolon&&(n.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let n=this.input.fromOffset(t);return{column:n.col,line:n.line,offset:t}}init(t,n){this.current.push(t),t.source={input:this.input,start:this.getPosition(n)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let n=!1,o=null,r=!1,s=null,i=[],c=t[1].startsWith("--"),l=[],u=t;for(;u;){if(o=u[0],l.push(u),o==="("||o==="[")s||(s=u),i.push(o==="("?")":"]");else if(c&&r&&o==="{")s||(s=u),i.push("}");else if(i.length===0)if(o===";")if(r){this.decl(l,c);return}else break;else if(o==="{"){this.rule(l);return}else if(o==="}"){this.tokenizer.back(l.pop()),n=!0;break}else o===":"&&(r=!0);else o===i[i.length-1]&&(i.pop(),i.length===0&&(s=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),i.length>0&&this.unclosedBracket(s),n&&r){if(!c)for(;l.length&&(u=l[l.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,c)}else this.unknownWord(l)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,n,o,r){let s,i,c=o.length,l="",u=!0,d,p;for(let f=0;fb+h[1],"");t.raws[n]={raw:f,value:l}}t[n]=l}rule(t){t.pop();let n=new aY;this.init(n,t[0][2]),n.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(n,"selector",t),this.current=n}spacesAndCommentsFromEnd(t){let n,o="";for(;t.length&&(n=t[t.length-1][0],!(n!=="space"&&n!=="comment"));)o=t.pop()[1]+o;return o}spacesAndCommentsFromStart(t){let n,o="";for(;t.length&&(n=t[0][0],!(n!=="space"&&n!=="comment"));)o+=t.shift()[1];return o}spacesFromEnd(t){let n,o="";for(;t.length&&(n=t[t.length-1][0],n==="space");)o=t.pop()[1]+o;return o}stringFrom(t,n){let o="";for(let r=n;rAT(t)),e}let yT={},Q2=class G2e{constructor(t,n,o){this.stringified=!1,this.processed=!1;let r;if(typeof n=="object"&&n!==null&&(n.type==="root"||n.type==="document"))r=AT(n);else if(n instanceof G2e||n instanceof lY)r=AT(n.root),n.map&&(typeof o.map>"u"&&(o.map={}),o.map.inline||(o.map.inline=!1),o.map.prev=n.map);else{let s=hxt;o.syntax&&(s=o.syntax.parse),o.parser&&(s=o.parser),s.parse&&(s=s.parse);try{r=s(n,o)}catch(i){this.processed=!0,this.error=i}r&&!r[uxt]&&fxt.rebuild(r)}this.result=new lY(t,r,o),this.helpers={...yT,postcss:yT,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,n){let o=this.result.lastPlugin;try{n&&n.addToError(t),this.error=t,t.name==="CssSyntaxError"&&!t.plugin?(t.plugin=o.postcssPlugin,t.setMessage()):o.postcssVersion}catch(r){console&&console.error&&console.error(r)}return t}prepareVisitors(){this.listeners={};let t=(n,o,r)=>{this.listeners[o]||(this.listeners[o]=[]),this.listeners[o].push([n,r])};for(let n of this.plugins)if(typeof n=="object")for(let o in n){if(!gxt[o]&&/^[A-Z]/.test(o))throw new Error(`Unknown event ${o} in ${n.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!zxt[o])if(typeof n[o]=="object")for(let r in n[o])r==="*"?t(n,o,n[o][r]):t(n,o+"-"+r.toLowerCase(),n[o][r]);else typeof n[o]=="function"&&t(n,o,n[o])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t0;){let o=this.visitTick(n);if($m(o))try{await o}catch(r){let s=n[n.length-1].node;throw this.handleError(r,s)}}}if(this.listeners.OnceExit)for(let[n,o]of this.listeners.OnceExit){this.result.lastPlugin=n;try{if(t.type==="document"){let r=t.nodes.map(s=>o(s,this.helpers));await Promise.all(r)}else await o(t,this.helpers)}catch(r){throw this.handleError(r)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if(typeof t=="object"&&t.Once){if(this.result.root.type==="document"){let n=this.result.root.nodes.map(o=>t.Once(o,this.helpers));return $m(n[0])?Promise.all(n):n}return t.Once(this.result.root,this.helpers)}else if(typeof t=="function")return t(this.result.root,this.result)}catch(n){throw this.handleError(n)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,n=pxt;t.syntax&&(n=t.syntax.stringify),t.stringifier&&(n=t.stringifier),n.stringify&&(n=n.stringify);let r=new dxt(n,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins){let n=this.runOnRoot(t);if($m(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[ra];)t[ra]=!0,this.walkSync(t);if(this.listeners.OnceExit)if(t.type==="document")for(let n of t.nodes)this.visitSync(this.listeners.OnceExit,n);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,n){return this.async().then(t,n)}toString(){return this.css}visitSync(t,n){for(let[o,r]of t){this.result.lastPlugin=o;let s;try{s=r(n,this.helpers)}catch(i){throw this.handleError(i,n.proxyOf)}if(n.type!=="root"&&n.type!=="document"&&!n.parent)return!0;if($m(s))throw this.getAsyncError()}}visitTick(t){let n=t[t.length-1],{node:o,visitors:r}=n;if(o.type!=="root"&&o.type!=="document"&&!o.parent){t.pop();return}if(r.length>0&&n.visitorIndex{r[ra]||this.walkSync(r)});else{let r=this.listeners[o];if(r&&this.visitSync(r,t.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};Q2.registerPostcss=e=>{yT=e};var K2e=Q2;Q2.default=Q2;mxt.registerLazyResult(Q2);bxt.registerLazyResult(Q2);let Oxt=q2e,Axt=rk,yxt=gP;const vxt=hP;let vT=class{constructor(t,n,o){n=n.toString(),this.stringified=!1,this._processor=t,this._css=n,this._opts=o,this._map=void 0;let r,s=Axt;this.result=new vxt(this._processor,r,this._opts),this.result.css=n;let i=this;Object.defineProperty(this.result,"root",{get(){return i.root}});let c=new Oxt(s,r,this._opts,n);if(c.isMap()){let[l,u]=c.generate();l&&(this.result.css=l),u&&(this.result.map=u)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,n){return this.async().then(t,n)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let t,n=yxt;try{t=n(this._css,this._opts)}catch(o){this.error=o}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}};var xxt=vT;vT.default=vT;let _xt=xxt,wxt=K2e,kxt=bP,qxt=iO,vz=class{constructor(t=[]){this.version="8.4.38",this.plugins=this.normalize(t)}normalize(t){let n=[];for(let o of t)if(o.postcss===!0?o=o():o.postcss&&(o=o.postcss),typeof o=="object"&&Array.isArray(o.plugins))n=n.concat(o.plugins);else if(typeof o=="object"&&o.postcssPlugin)n.push(o);else if(typeof o=="function")n.push(o);else if(!(typeof o=="object"&&(o.parse||o.stringify)))throw new Error(o+" is not a PostCSS plugin");return n}process(t,n={}){return!this.plugins.length&&!n.parser&&!n.stringifier&&!n.syntax?new _xt(this,t,n):new wxt(this,t,n)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}};var Sxt=vz;vz.default=vz;qxt.registerProcessor(vz);kxt.registerProcessor(vz);let Cxt=ik,Rxt=v2e,Wxt=ck,Txt=mP,Ext=ak,Bxt=iO,Nxt=MP;function xz(e,t){if(Array.isArray(e))return e.map(r=>xz(r));let{inputs:n,...o}=e;if(n){t=[];for(let r of n){let s={...r,__proto__:Ext.prototype};s.map&&(s.map={...s.map,__proto__:Rxt.prototype}),t.push(s)}}if(o.nodes&&(o.nodes=e.nodes.map(r=>xz(r,t))),o.source){let{inputId:r,...s}=o.source;o.source=s,r!=null&&(o.source.input=t[r])}if(o.type==="root")return new Bxt(o);if(o.type==="decl")return new Cxt(o);if(o.type==="rule")return new Nxt(o);if(o.type==="comment")return new Wxt(o);if(o.type==="atrule")return new Txt(o);throw new Error("Unknown node type: "+e.type)}var Lxt=xz;xz.default=xz;var dY={};let jxt=dP,Y2e=ik,Pxt=K2e,Ixt=qf,zP=Sxt,Dxt=rk,Fxt=Lxt,Z2e=bP,$xt=I2e,Q2e=ck,J2e=mP,Vxt=hP,Hxt=ak,Uxt=gP,Xxt=H2e,ehe=MP,the=iO,Gxt=sk;function J0(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new zP(e)}J0.plugin=function(t,n){let o=!1;function r(...i){console&&console.warn&&!o&&(o=!0,console.warn(t+`: postcss.plugin was deprecated. Migration guide: https://evilmartians.com/chronicles/postcss-8-plugin-migration`),dY.LANG&&dY.LANG.startsWith("cn")&&console.warn(t+`: 里面 postcss.plugin 被弃用. 迁移指南: https://www.w3ctech.com/topic/2226`));let c=n(...i);return c.postcssPlugin=t,c.postcssVersion=new zP().version,c}let s;return Object.defineProperty(r,"postcss",{get(){return s||(s=r()),s}}),r.process=function(i,c,l){return J0([r(l)]).process(i,c)},r};J0.stringify=Dxt;J0.parse=Uxt;J0.fromJSON=Fxt;J0.list=Xxt;J0.comment=e=>new Q2e(e);J0.atRule=e=>new J2e(e);J0.decl=e=>new Y2e(e);J0.rule=e=>new ehe(e);J0.root=e=>new the(e);J0.document=e=>new Z2e(e);J0.CssSyntaxError=jxt;J0.Declaration=Y2e;J0.Container=Ixt;J0.Processor=zP;J0.Document=Z2e;J0.Comment=Q2e;J0.Warning=$xt;J0.AtRule=J2e;J0.Result=Vxt;J0.Input=Hxt;J0.Rule=ehe;J0.Root=the;J0.Node=Gxt;Pxt.registerPostcss(J0);var Kxt=J0;J0.default=J0;const Wn=yo(Kxt);Wn.stringify;Wn.fromJSON;Wn.plugin;Wn.parse;Wn.list;Wn.document;Wn.comment;Wn.atRule;Wn.rule;Wn.decl;Wn.root;const Yxt=Wn.CssSyntaxError;Wn.Declaration;Wn.Container;Wn.Processor;Wn.Document;Wn.Comment;Wn.Warning;Wn.AtRule;Wn.Result;Wn.Input;Wn.Rule;Wn.Root;Wn.Node;var Zxt=function(t){const n=t.prefix,o=/\s+$/.test(n)?n:`${n} `,r=t.ignoreFiles?[].concat(t.ignoreFiles):[],s=t.includeFiles?[].concat(t.includeFiles):[];return function(i){r.length&&i.source.input.file&&pY(i.source.input.file,r)||s.length&&i.source.input.file&&!pY(i.source.input.file,s)||i.walkRules(c=>{const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];c.parent&&l.includes(c.parent.name)||(c.selectors=c.selectors.map(u=>t.exclude&&Qxt(u,t.exclude)?u:t.transform?t.transform(n,u,o+u,i.source.input.file,c):o+u))})}};function pY(e,t){return t.some(n=>n instanceof RegExp?n.test(e):e.includes(n))}function Qxt(e,t){return t.some(n=>n instanceof RegExp?n.test(e):e===n)}const Jxt=yo(Zxt);var OP={exports:{}},qS=40,SS=41,XA=39,CS=34,RS=92,Xf=47,WS=44,TS=58,GA=42,e_t=117,t_t=85,n_t=43,o_t=/^[a-f0-9?-]+$/i,r_t=function(e){for(var t=[],n=e,o,r,s,i,c,l,u,d,p=0,f=n.charCodeAt(p),b=n.length,h=[{nodes:t}],g=0,z,y="",x="",v="";p=48&&l<=57)return!0;var u=i.charCodeAt(2);return l===n&&u>=48&&u<=57}return c===n?(l=i.charCodeAt(1),l>=48&&l<=57):c>=48&&c<=57}return ES=function(i){var c=0,l=i.length,u,d,p;if(l===0||!s(i))return!1;for(u=i.charCodeAt(c),(u===t||u===e)&&c++;c57));)c+=1;if(u=i.charCodeAt(c),d=i.charCodeAt(c+1),u===n&&d>=48&&d<=57)for(c+=2;c57));)c+=1;if(u=i.charCodeAt(c),d=i.charCodeAt(c+1),p=i.charCodeAt(c+2),(u===o||u===r)&&(d>=48&&d<=57||(d===t||d===e)&&p>=48&&p<=57))for(c+=d===t||d===e?3:2;c57));)c+=1;return{number:i.slice(0,c),unit:i.slice(c)}},ES}var c_t=r_t,ohe=s_t,rhe=i_t;function td(e){return this instanceof td?(this.nodes=c_t(e),this):new td(e)}td.prototype.toString=function(){return Array.isArray(this.nodes)?rhe(this.nodes):""};td.prototype.walk=function(e,t){return ohe(this.nodes,e,t),this};td.unit=a_t();td.walk=ohe;td.stringify=rhe;var l_t=td;const hY=l_t;OP.exports=e=>{const n=Object.assign({skipHostRelativeUrls:!0},e);return{postcssPlugin:"rebaseUrl",Declaration(o){const r=hY(o.value);let s=!1;r.walk(i=>{if(i.type!=="function"||i.value!=="url")return;const c=i.nodes[0].value,l=new URL(c,e.rootUrl);return l.pathname===c&&n.skipHostRelativeUrls||(i.nodes[0].value=l.toString(),s=!0),!1}),s&&(o.value=hY.stringify(r))}}};OP.exports.postcss=!0;var u_t=OP.exports;const d_t=yo(u_t),mY=new Map,she=[{type:"type",content:"body"},{type:"type",content:"html"},{type:"pseudo-class",content:":root"},{type:"pseudo-class",content:":where(body)"},{type:"pseudo-class",content:":where(:root)"},{type:"pseudo-class",content:":where(html)"}];function p_t(e,t){const n=GK(t),o=n.findLastIndex(({content:i,type:c})=>she.some(l=>i===l.content&&c===l.type));let r=-1;for(let i=o+1;ip instanceof RegExp?l.match(p):l.includes(p))?l:she.some(p=>l.startsWith(p.content))?p_t(c,l):u}}),n&&d_t({rootUrl:n})].filter(Boolean)).process(e,{}).css}catch(i){return i instanceof Yxt?console.warn("wp.blockEditor.transformStyles Failed to transform CSS.",i.message+` -`+i.showSourceCode(!1)):console.warn("wp.blockEditor.transformStyles Failed to transform CSS.",i),null}}const _5=(e,t="",n)=>{let o=mY.get(t);return o||(o=new WeakMap,mY.set(t,o)),e.map(r=>{let s=o.get(r);return s||(s=f_t(r,t,n),o.set(r,s)),s})};fs([bs,bf]);function b_t(e,t){return O.useCallback(n=>{if(!n)return;const{ownerDocument:o}=n,{defaultView:r,body:s}=o,i=t?o.querySelector(t):s;let c;if(i)c=r?.getComputedStyle(i,null).getPropertyValue("background-color");else{const u=o.createElement("div");u.classList.add("editor-styles-wrapper"),s.appendChild(u),c=r?.getComputedStyle(u,null).getPropertyValue("background-color"),s.removeChild(u)}const l=Tt(c);l.luminance()>.5||l.alpha()===0?s.classList.remove("is-dark-theme"):s.classList.add("is-dark-theme")},[e,t])}function h_t({styles:e,scope:t,transformOptions:n}){const o=D(i=>Fe(i(F)).getStyleOverrides(),[]),[r,s]=O.useMemo(()=>{const i=Object.values(e??[]);for(const[c,l]of o){const u=i.findIndex(({id:p})=>c===p),d={...l,id:c};u===-1?i.push(d):i[u]=d}return[_5(i.filter(c=>c?.css),t,n),i.filter(c=>c.__unstableType==="svgs").map(c=>c.assets).join("")]},[e,o,t,n]);return a.jsxs(a.Fragment,{children:[a.jsx("style",{ref:b_t(r,t)}),r.map((i,c)=>a.jsx("style",{children:i},c)),a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 0 0",width:"0",height:"0",role:"none",style:{visibility:"hidden",position:"absolute",left:"-9999px",overflow:"hidden"},dangerouslySetInnerHTML:{__html:s}})]})}const w5=O.memo(h_t);let BS;const NS=2e3,m_t=[];function M_t({viewportWidth:e,containerWidth:t,minHeight:n,additionalStyles:o=m_t}){e||(e=t);const[r,{height:s}]=Ci(),{styles:i}=D(d=>({styles:d(F).getSettings().styles}),[]),c=O.useMemo(()=>i&&[...i,{css:"body{height:auto;overflow:hidden;border:none;padding:0;}",__unstableType:"presets"},...o],[i,o]);BS=BS||O.memo(fk);const l=t/e,u=s?t/(s*l):0;return a.jsx(rr,{className:"block-editor-block-preview__content",style:{transform:`scale(${l})`,aspectRatio:u,maxHeight:s>NS?NS*l:void 0,minHeight:n},children:a.jsxs(z2e,{contentRef:Et(d=>{const{ownerDocument:{documentElement:p}}=d;p.classList.add("block-editor-block-preview__content-iframe"),p.style.position="absolute",p.style.width="100%",d.style.boxSizing="border-box",d.style.position="absolute",d.style.width="100%"},[]),"aria-hidden":!0,tabIndex:-1,style:{position:"absolute",width:e,height:s,pointerEvents:"none",maxHeight:NS,minHeight:l!==0&&l<1&&n?n/l:n},children:[a.jsx(w5,{styles:c}),r,a.jsx(BS,{renderAppender:!1})]})})}function g_t(e){const[t,{width:n}]=Ci();return a.jsxs(a.Fragment,{children:[a.jsx("div",{style:{position:"relative",width:"100%",height:0},children:t}),a.jsx("div",{className:"block-editor-block-preview__container",children:!!n&&a.jsx(M_t,{...e,containerWidth:n})})]})}const z_t=[];function O_t({blocks:e,viewportWidth:t=1200,minHeight:n,additionalStyles:o=z_t,__experimentalMinHeight:r,__experimentalPadding:s}){r&&(n=r,Re("The __experimentalMinHeight prop",{since:"6.2",version:"6.4",alternative:"minHeight"})),s&&(o=[...o,{css:`body { padding: ${s}px; }`}],Re("The __experimentalPadding prop of BlockPreview",{since:"6.2",version:"6.4",alternative:"additionalStyles"}));const i=D(u=>u(F).getSettings(),[]),c=O.useMemo(()=>({...i,focusMode:!1,__unstableIsPreviewMode:!0}),[i]),l=O.useMemo(()=>Array.isArray(e)?e:[e],[e]);return!e||e.length===0?null:a.jsx(ok,{value:l,settings:c,children:a.jsx(g_t,{viewportWidth:t,minHeight:n,additionalStyles:o})})}const lk=O.memo(O_t);function ihe({blocks:e,props:t={},layout:n}){const o=D(u=>u(F).getSettings(),[]),r=O.useMemo(()=>({...o,styles:void 0,focusMode:!1,__unstableIsPreviewMode:!0}),[o]),s=wB(),i=Gt([t.ref,s]),c=O.useMemo(()=>Array.isArray(e)?e:[e],[e]),l=a.jsxs(ok,{value:c,settings:r,children:[a.jsx(w5,{}),a.jsx(_P,{renderAppender:!1,layout:n})]});return{...t,ref:i,className:$(t.className,"block-editor-block-preview__live-content","components-disabled"),children:e?.length?l:null}}function ahe({item:e}){var t;const{name:n,title:o,icon:r,description:s,initialAttributes:i,example:c}=e,l=dd(e),u=O.useMemo(()=>c?zN(n,{attributes:{...c.attributes,...i},innerBlocks:c.innerBlocks}):me(n,i),[n,c,i]),d=144,p=280,f=(t=c?.viewportWidth)!==null&&t!==void 0?t:500,b=p/f,h=b!==0&&b<1&&d?d/b:d;return a.jsxs("div",{className:"block-editor-inserter__preview-container",children:[a.jsx("div",{className:"block-editor-inserter__preview",children:l||c?a.jsx("div",{className:"block-editor-inserter__preview-content",children:a.jsx(lk,{blocks:u,viewportWidth:f,minHeight:d,additionalStyles:[{css:` +`+i.showSourceCode(!1)):console.warn("wp.blockEditor.transformStyles Failed to transform CSS.",i),null}}const _5=(e,t="",n)=>{let o=mY.get(t);return o||(o=new WeakMap,mY.set(t,o)),e.map(r=>{let s=o.get(r);return s||(s=f_t(r,t,n),o.set(r,s)),s})};bs([hs,bf]);function b_t(e,t){return O.useCallback(n=>{if(!n)return;const{ownerDocument:o}=n,{defaultView:r,body:s}=o,i=t?o.querySelector(t):s;let c;if(i)c=r?.getComputedStyle(i,null).getPropertyValue("background-color");else{const u=o.createElement("div");u.classList.add("editor-styles-wrapper"),s.appendChild(u),c=r?.getComputedStyle(u,null).getPropertyValue("background-color"),s.removeChild(u)}const l=Tt(c);l.luminance()>.5||l.alpha()===0?s.classList.remove("is-dark-theme"):s.classList.add("is-dark-theme")},[e,t])}function h_t({styles:e,scope:t,transformOptions:n}){const o=D(i=>Fe(i(F)).getStyleOverrides(),[]),[r,s]=O.useMemo(()=>{const i=Object.values(e??[]);for(const[c,l]of o){const u=i.findIndex(({id:p})=>c===p),d={...l,id:c};u===-1?i.push(d):i[u]=d}return[_5(i.filter(c=>c?.css),t,n),i.filter(c=>c.__unstableType==="svgs").map(c=>c.assets).join("")]},[e,o,t,n]);return a.jsxs(a.Fragment,{children:[a.jsx("style",{ref:b_t(r,t)}),r.map((i,c)=>a.jsx("style",{children:i},c)),a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 0 0",width:"0",height:"0",role:"none",style:{visibility:"hidden",position:"absolute",left:"-9999px",overflow:"hidden"},dangerouslySetInnerHTML:{__html:s}})]})}const w5=O.memo(h_t);let BS;const NS=2e3,m_t=[];function M_t({viewportWidth:e,containerWidth:t,minHeight:n,additionalStyles:o=m_t}){e||(e=t);const[r,{height:s}]=Ci(),{styles:i}=D(d=>({styles:d(F).getSettings().styles}),[]),c=O.useMemo(()=>i&&[...i,{css:"body{height:auto;overflow:hidden;border:none;padding:0;}",__unstableType:"presets"},...o],[i,o]);BS=BS||O.memo(fk);const l=t/e,u=s?t/(s*l):0;return a.jsx(rr,{className:"block-editor-block-preview__content",style:{transform:`scale(${l})`,aspectRatio:u,maxHeight:s>NS?NS*l:void 0,minHeight:n},children:a.jsxs(z2e,{contentRef:Et(d=>{const{ownerDocument:{documentElement:p}}=d;p.classList.add("block-editor-block-preview__content-iframe"),p.style.position="absolute",p.style.width="100%",d.style.boxSizing="border-box",d.style.position="absolute",d.style.width="100%"},[]),"aria-hidden":!0,tabIndex:-1,style:{position:"absolute",width:e,height:s,pointerEvents:"none",maxHeight:NS,minHeight:l!==0&&l<1&&n?n/l:n},children:[a.jsx(w5,{styles:c}),r,a.jsx(BS,{renderAppender:!1})]})})}function g_t(e){const[t,{width:n}]=Ci();return a.jsxs(a.Fragment,{children:[a.jsx("div",{style:{position:"relative",width:"100%",height:0},children:t}),a.jsx("div",{className:"block-editor-block-preview__container",children:!!n&&a.jsx(M_t,{...e,containerWidth:n})})]})}const z_t=[];function O_t({blocks:e,viewportWidth:t=1200,minHeight:n,additionalStyles:o=z_t,__experimentalMinHeight:r,__experimentalPadding:s}){r&&(n=r,Re("The __experimentalMinHeight prop",{since:"6.2",version:"6.4",alternative:"minHeight"})),s&&(o=[...o,{css:`body { padding: ${s}px; }`}],Re("The __experimentalPadding prop of BlockPreview",{since:"6.2",version:"6.4",alternative:"additionalStyles"}));const i=D(u=>u(F).getSettings(),[]),c=O.useMemo(()=>({...i,focusMode:!1,__unstableIsPreviewMode:!0}),[i]),l=O.useMemo(()=>Array.isArray(e)?e:[e],[e]);return!e||e.length===0?null:a.jsx(ok,{value:l,settings:c,children:a.jsx(g_t,{viewportWidth:t,minHeight:n,additionalStyles:o})})}const lk=O.memo(O_t);function ihe({blocks:e,props:t={},layout:n}){const o=D(u=>u(F).getSettings(),[]),r=O.useMemo(()=>({...o,styles:void 0,focusMode:!1,__unstableIsPreviewMode:!0}),[o]),s=wB(),i=Gt([t.ref,s]),c=O.useMemo(()=>Array.isArray(e)?e:[e],[e]),l=a.jsxs(ok,{value:c,settings:r,children:[a.jsx(w5,{}),a.jsx(_P,{renderAppender:!1,layout:n})]});return{...t,ref:i,className:$(t.className,"block-editor-block-preview__live-content","components-disabled"),children:e?.length?l:null}}function ahe({item:e}){var t;const{name:n,title:o,icon:r,description:s,initialAttributes:i,example:c}=e,l=dd(e),u=O.useMemo(()=>c?zN(n,{attributes:{...c.attributes,...i},innerBlocks:c.innerBlocks}):me(n,i),[n,c,i]),d=144,p=280,f=(t=c?.viewportWidth)!==null&&t!==void 0?t:500,b=p/f,h=b!==0&&b<1&&d?d/b:d;return a.jsxs("div",{className:"block-editor-inserter__preview-container",children:[a.jsx("div",{className:"block-editor-inserter__preview",children:l||c?a.jsx("div",{className:"block-editor-inserter__preview-content",children:a.jsx(lk,{blocks:u,viewportWidth:f,minHeight:d,additionalStyles:[{css:` body { padding: 24px; min-height:${Math.round(h)}px; @@ -481,7 +481,7 @@ https://www.w3ctech.com/topic/2226`));let c=n(...i);return c.postcssPlugin=t,c.p align-items:center; } .is-root-container { width: 100%; } - `}]})}):a.jsx("div",{className:"block-editor-inserter__preview-content-missing",children:m("No preview available.")})}),!l&&a.jsx(sP,{title:o,icon:r,description:s})]})}function A_t(e,t){const[n,o]=O.useState(!1);return O.useEffect(()=>{n&&At(m("Use left and right arrow keys to move through blocks"))},[n]),a.jsx("div",{ref:t,role:"listbox","aria-orientation":"horizontal",onFocus:()=>{o(!0)},onBlur:r=>{!r.currentTarget.contains(r.relatedTarget)&&o(!1)},...e})}const y_t=O.forwardRef(A_t),{CompositeGroupV2:v_t}=Fe(L0);function x_t(e,t){return a.jsx(v_t,{role:"presentation",ref:t,...e})}const __t=O.forwardRef(x_t),{CompositeItemV2:w_t}=Fe(L0);function k_t({isFirst:e,as:t,children:n,...o},r){return a.jsx(w_t,{ref:r,role:"option",accessibleWhenDisabled:!0,...o,render:s=>{const i={...s,tabIndex:e?0:s.tabIndex};return t?a.jsx(t,{...i,children:n}):typeof n=="function"?n(i):a.jsx(fe,{__next40pxDefaultSize:!1,...i,children:n})}})}const q_t=O.forwardRef(k_t),{CompositeV2:S_t}=Fe(L0);function AP({children:e}){return a.jsx(S_t,{focusShift:!0,focusWrap:"horizontal",render:a.jsx(a.Fragment,{}),children:e})}function che({count:e,icon:t,isPattern:n,fadeWhenDisabled:o}){const r=n&&m("Pattern");return a.jsx("div",{className:"block-editor-block-draggable-chip-wrapper",children:a.jsx("div",{className:"block-editor-block-draggable-chip","data-testid":"block-draggable-chip",children:a.jsxs(Q0,{justify:"center",className:"block-editor-block-draggable-chip__content",children:[a.jsx(Ht,{children:t?a.jsx(b0,{icon:t}):r||le(a0("%d block","%d blocks",e),e)}),a.jsx(Ht,{children:a.jsx(b0,{icon:K_})}),o&&a.jsx(Ht,{className:"block-editor-block-draggable-chip__disabled",children:a.jsx("span",{className:"block-editor-block-draggable-chip__disabled-icon"})})]})})})}const yP=({isEnabled:e,blocks:t,icon:n,children:o,pattern:r})=>{const s={type:"inserter",blocks:t},i=D(u=>{const{getBlockType:d}=u($e);return t.length===1&&d(t[0].name)?.icon},[t]),{startDragging:c,stopDragging:l}=Fe(ae(F));return e?a.jsx(Vpe,{__experimentalTransferDataType:"wp-blocks",transferData:s,onDragStart:u=>{c();const d=r?.type===X1.user&&r?.syncStatus!=="unsynced"?[me("core/block",{ref:r.id})]:t;u.dataTransfer.setData("text/html",Pr(d))},onDragEnd:()=>{l()},__experimentalDragComponent:a.jsx(che,{count:t.length,icon:n||!r&&i,isPattern:!!r}),children:({onDraggableStart:u,onDraggableEnd:d})=>o({draggable:!0,onDragStart:u,onDragEnd:d})}):o({draggable:!1,onDragStart:void 0,onDragEnd:void 0})};function C_t({className:e,isFirst:t,item:n,onSelect:o,onHover:r,isDraggable:s,...i}){const c=O.useRef(!1),l=n.icon?{backgroundColor:n.icon.background,color:n.icon.foreground}:{},u=O.useMemo(()=>[me(n.name,n.initialAttributes,ju(n.innerBlocks))],[n.name,n.initialAttributes,n.innerBlocks]),d=dd(n)&&n.syncStatus!=="unsynced"||mh(n);return a.jsx(yP,{isEnabled:s&&!n.isDisabled,blocks:u,icon:n.icon,children:({draggable:p,onDragStart:f,onDragEnd:b})=>a.jsx("div",{className:$("block-editor-block-types-list__list-item",{"is-synced":d}),draggable:p,onDragStart:h=>{c.current=!0,f&&(r(null),f(h))},onDragEnd:h=>{c.current=!1,b&&b(h)},children:a.jsxs(q_t,{isFirst:t,className:$("block-editor-block-types-list__item",e),disabled:n.isDisabled,onClick:h=>{h.preventDefault(),o(n,Ta()?h.metaKey:h.ctrlKey),r(null)},onKeyDown:h=>{const{keyCode:g}=h;g===y1&&(h.preventDefault(),o(n,Ta()?h.metaKey:h.ctrlKey),r(null))},onMouseEnter:()=>{c.current||r(n)},onMouseLeave:()=>r(null),...i,children:[a.jsx("span",{className:"block-editor-block-types-list__item-icon",style:l,children:a.jsx(b0,{icon:n.icon,showColors:!0})}),a.jsx("span",{className:"block-editor-block-types-list__item-title",children:a.jsx(Ho,{numberOfLines:3,children:n.title})})]})})})}const R_t=O.memo(C_t);function W_t(e,t){const n=[];for(let o=0,r=e.length;o{},children:o,label:r,isDraggable:s=!0}){const i="block-editor-block-types-list",c=He(Rb,i);return a.jsxs(y_t,{className:i,"aria-label":r,children:[W_t(e,3).map((l,u)=>a.jsx(__t,{children:l.map((d,p)=>a.jsx(R_t,{item:d,className:AN(d.id),onSelect:t,onHover:n,isDraggable:s&&!d.isDisabled,isFirst:u===0&&p===0,rowId:`${c}-${u}`},d.id))},u)),o]})}function Wb({title:e,icon:t,children:n}){return a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"block-editor-inserter__panel-header",children:[a.jsx("h2",{className:"block-editor-inserter__panel-title",children:e}),a.jsx(xn,{icon:t})]}),a.jsx("div",{className:"block-editor-inserter__panel-content",children:n})]})}function J2(){return a.jsxs("div",{className:"block-editor-inserter__no-results",children:[a.jsx(t0,{className:"block-editor-inserter__no-results-icon",icon:U_}),a.jsx("p",{children:m("No results found.")})]})}const T_t=e=>e.name.split("/")[0],E_t=6,B_t=[];function MY({items:e,collections:t,categories:n,onSelectItem:o,onHover:r,showMostUsedBlocks:s,className:i}){const c=O.useMemo(()=>H3(e,"frecency","desc").slice(0,E_t),[e]),l=O.useMemo(()=>e.filter(h=>!h.category),[e]),u=O.useMemo(()=>{const h={...t};return Object.keys(t).forEach(g=>{h[g]=e.filter(z=>T_t(z)===g),h[g].length===0&&delete h[g]}),h},[e,t]);O.useEffect(()=>()=>r(null),[]);const d=Gs(n),p=n.length===d.length,f=O.useMemo(()=>Object.entries(t),[t]),b=Gs(p?f:B_t);return a.jsxs("div",{className:i,children:[s&&e.length>3&&!!c.length&&a.jsx(Wb,{title:Oe("Most used","blocks"),children:a.jsx(Rb,{items:c,onSelect:o,onHover:r,label:Oe("Most used","blocks")})}),d.map(h=>{const g=e.filter(z=>z.category===h.slug);return!g||!g.length?null:a.jsx(Wb,{title:h.title,icon:h.icon,children:a.jsx(Rb,{items:g,onSelect:o,onHover:r,label:h.title})},h.slug)}),p&&l.length>0&&a.jsx(Wb,{className:"block-editor-inserter__uncategorized-blocks-panel",title:m("Uncategorized"),children:a.jsx(Rb,{items:l,onSelect:o,onHover:r,label:m("Uncategorized")})}),b.map(([h,g])=>{const z=u[h];return!z||!z.length?null:a.jsx(Wb,{title:g.title,icon:g.icon,children:a.jsx(Rb,{items:z,onSelect:o,onHover:r,label:g.title})},h)})]})}function N_t({rootClientId:e,onInsert:t,onHover:n,showMostUsedBlocks:o},r){const[s,i,c,l]=Pw(e,t);if(!s.length)return a.jsx(J2,{});const u=[],d=[];for(const p of s)p.category!=="reusable"&&(e&&p.rootClientId===e?u.push(p):d.push(p));return a.jsx(AP,{children:a.jsxs("div",{ref:r,children:[!!u.length&&a.jsx(a.Fragment,{children:a.jsx(MY,{items:u,categories:i,collections:c,onSelectItem:l,onHover:n,showMostUsedBlocks:o,className:"block-editor-inserter__insertable-blocks-at-selection"})}),a.jsx(MY,{items:d,categories:i,collections:c,onSelectItem:l,onHover:n,showMostUsedBlocks:o,className:"block-editor-inserter__all-blocks"})]})})}const L_t=O.forwardRef(N_t);function j_t({selectedCategory:e,patternCategories:t,onClickCategory:n}){const o="block-editor-block-patterns-explorer__sidebar";return a.jsx("div",{className:`${o}__categories-list`,children:t.map(({name:r,label:s})=>a.jsx(fe,{__next40pxDefaultSize:!1,label:s,className:`${o}__categories-list__item`,isPressed:e===r,onClick:()=>{n(r)},children:s},r))})}function P_t({searchValue:e,setSearchValue:t}){return a.jsx("div",{className:"block-editor-block-patterns-explorer__search",children:a.jsx(xl,{__nextHasNoMarginBottom:!0,onChange:t,value:e,label:m("Search for patterns"),placeholder:m("Search")})})}function I_t({selectedCategory:e,patternCategories:t,onClickCategory:n,searchValue:o,setSearchValue:r}){return a.jsxs("div",{className:"block-editor-block-patterns-explorer__sidebar",children:[a.jsx(P_t,{searchValue:o,setSearchValue:r}),!o&&a.jsx(j_t,{selectedCategory:e,patternCategories:t,onClickCategory:n})]})}function lhe({currentPage:e,numPages:t,changePage:n,totalItems:o}){return a.jsxs(Ye,{className:"block-editor-patterns__grid-pagination-wrapper",children:[a.jsx(l0,{variant:"muted",children:le(a0("%s item","%s items",o),o)}),t>1&&a.jsxs(Je,{expanded:!1,spacing:3,justify:"flex-start",className:"block-editor-patterns__grid-pagination",children:[a.jsxs(Je,{expanded:!1,spacing:1,className:"block-editor-patterns__grid-pagination-previous",children:[a.jsx(fe,{__next40pxDefaultSize:!1,variant:"tertiary",onClick:()=>n(1),disabled:e===1,"aria-label":m("First page"),accessibleWhenDisabled:!0,children:a.jsx("span",{children:"«"})}),a.jsx(fe,{__next40pxDefaultSize:!1,variant:"tertiary",onClick:()=>n(e-1),disabled:e===1,"aria-label":m("Previous page"),accessibleWhenDisabled:!0,children:a.jsx("span",{children:"‹"})})]}),a.jsx(l0,{variant:"muted",children:le(Oe("%1$s of %2$s","paging"),e,t)}),a.jsxs(Je,{expanded:!1,spacing:1,className:"block-editor-patterns__grid-pagination-next",children:[a.jsx(fe,{__next40pxDefaultSize:!1,variant:"tertiary",onClick:()=>n(e+1),disabled:e===t,"aria-label":m("Next page"),accessibleWhenDisabled:!0,children:a.jsx("span",{children:"›"})}),a.jsx(fe,{variant:"tertiary",onClick:()=>n(t),disabled:e===t,"aria-label":m("Last page"),size:"default",accessibleWhenDisabled:!0,children:a.jsx("span",{children:"»"})})]})]})]})}const{CompositeV2:D_t,CompositeItemV2:F_t}=Fe(L0),$_t=({showTooltip:e,title:t,children:n})=>e?a.jsx(W1,{text:t,children:n}):a.jsx(a.Fragment,{children:n});function uhe({id:e,isDraggable:t,pattern:n,onClick:o,onHover:r,showTitle:s=!0,showTooltip:i,category:c}){const[l,u]=O.useState(!1),{blocks:d,viewportWidth:p}=n,b=`block-editor-block-patterns-list__item-description-${He(uhe)}`,h=O.useMemo(()=>!c||!t?d:(d??[]).map(g=>{const z=pn(g);return z.attributes.metadata?.categories?.includes(c)&&(z.attributes.metadata.categories=[c]),z}),[d,t,c]);return a.jsx(yP,{isEnabled:t,blocks:h,pattern:n,children:({draggable:g,onDragStart:z,onDragEnd:y})=>a.jsx("div",{className:"block-editor-block-patterns-list__list-item",draggable:g,onDragStart:x=>{u(!0),z&&(r?.(null),z(x))},onDragEnd:x=>{u(!1),y&&y(x)},children:a.jsx($_t,{showTooltip:i&&!n.type!==X1.user,title:n.title,children:a.jsxs(F_t,{render:a.jsx("div",{role:"option","aria-label":n.title,"aria-describedby":n.description?b:void 0,className:$("block-editor-block-patterns-list__item",{"block-editor-block-patterns-list__list-item-synced":n.type===X1.user&&!n.syncStatus})}),id:e,onClick:()=>{o(n,d),r?.(null)},onMouseEnter:()=>{l||r?.(n)},onMouseLeave:()=>r?.(null),children:[a.jsx(lk,{blocks:d,viewportWidth:p}),s&&a.jsxs(Je,{className:"block-editor-patterns__pattern-details",spacing:2,children:[n.type===X1.user&&!n.syncStatus&&a.jsx("div",{className:"block-editor-patterns__pattern-icon-wrapper",children:a.jsx(t0,{className:"block-editor-patterns__pattern-icon",icon:Gu})}),(!i||n.type===X1.user)&&a.jsx("div",{className:"block-editor-block-patterns-list__item-title",children:n.title})]}),!!n.description&&a.jsx(Kt,{id:b,children:n.description})]})})})})}function V_t(){return a.jsx("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}function H_t({isDraggable:e,blockPatterns:t,shownPatterns:n,onHover:o,onClickPattern:r,orientation:s,label:i=m("Block patterns"),category:c,showTitle:l=!0,showTitlesAsTooltip:u,pagingProps:d},p){const[f,b]=O.useState(void 0);return O.useEffect(()=>{const h=t.find(g=>n.includes(g))?.name;b(h)},[n,t]),a.jsxs(D_t,{orientation:s,activeId:f,setActiveId:b,role:"listbox",className:"block-editor-block-patterns-list","aria-label":i,ref:p,children:[t.map(h=>n.includes(h)?a.jsx(uhe,{id:h.name,pattern:h,onClick:r,onHover:o,isDraggable:e,showTitle:l,showTooltip:u,category:c},h.name):a.jsx(V_t,{},h.name)),d&&a.jsx(lhe,{...d})]})}const oc=O.forwardRef(H_t);function gY({destinationRootClientId:e,destinationIndex:t,rootClientId:n,registry:o}){if(n===e)return t;const r=["",...o.select(F).getBlockParents(e),e],s=r.indexOf(n);return s!==-1?o.select(F).getBlockIndex(r[s+1])+1:o.select(F).getBlockOrder(n).length}function uk({rootClientId:e="",insertionIndex:t,clientId:n,isAppender:o,onSelect:r,shouldFocusBlock:s=!0,selectBlockOnInsert:i=!0}){const c=h0(),{getSelectedBlock:l}=D(F),{destinationRootClientId:u,destinationIndex:d}=D(x=>{const{getSelectedBlockClientId:v,getBlockRootClientId:M,getBlockIndex:A,getBlockOrder:_}=x(F),w=v();let k=e,q;return t!==void 0?q=t:n?q=A(n):!o&&w?(k=M(w),q=A(w)+1):q=_(k).length,{destinationRootClientId:k,destinationIndex:q}},[e,t,n,o]),{replaceBlocks:p,insertBlocks:f,showInsertionPoint:b,hideInsertionPoint:h,setLastFocus:g}=Fe(ae(F)),z=O.useCallback((x,v,M=!1,A)=>{(M||s||i)&&g(null);const _=l();!o&&_&&Yc(_)?p(_.clientId,x,null,s||M?0:null,v):f(x,o||A===void 0?d:gY({destinationRootClientId:u,destinationIndex:d,rootClientId:A,registry:c}),o||A===void 0?u:A,i,s||M?0:null,v);const w=Array.isArray(x)?x.length:1,k=le(a0("%d block added.","%d blocks added.",w),w);At(k),r&&r(x)},[o,l,p,f,u,d,r,s,i]),y=O.useCallback(x=>{x?.hasOwnProperty("rootClientId")?b(x.rootClientId,gY({destinationRootClientId:u,destinationIndex:d,rootClientId:x.rootClientId,registry:c})):h()},[b,h,u,d]);return[u,z,y]}const aO=(e,t,n)=>{const{patternCategories:o,patterns:r,userPatternCategories:s}=D(u=>{const{__experimentalGetAllowedPatterns:d,getSettings:p}=u(F),{__experimentalUserPatternCategories:f,__experimentalBlockPatternCategories:b}=p();return{patterns:d(t),userPatternCategories:f,patternCategories:b}},[t]),i=O.useMemo(()=>{const u=[...o];return s?.forEach(d=>{u.find(p=>p.name===d.name)||u.push(d)}),u},[o,s]),{createSuccessNotice:c}=ae(Ze),l=O.useCallback((u,d)=>{const p=u.type===X1.user&&u.syncStatus!=="unsynced"?[me("core/block",{ref:u.id})]:d;e((p??[]).map(f=>{const b=pn(f);return b.attributes.metadata?.categories?.includes(n)&&(b.attributes.metadata.categories=[n]),b}),u.name),c(le(m('Block pattern "%s" inserted.'),u.title),{type:"snackbar",id:"block-pattern-inserted-notice"})},[c,e,n]);return[r,i,l]},KA=20,U_t=5;function dhe(e,t,n,o=""){const[r,s]=O.useState(1),i=t1(t),c=t1(o);(i!==t||c!==o)&&r!==1&&s(1);const l=e.length,u=r-1,d=O.useMemo(()=>e.slice(u*KA,u*KA+KA),[u,e]),p=Gs(d,{step:U_t}),f=Math.ceil(e.length/KA),b=h=>{Sr(n?.current)?.scrollTo(0,0),s(h)};return O.useEffect(function(){Sr(n?.current)?.scrollTo(0,0)},[t,n]),{totalItems:l,categoryPatterns:d,categoryPatternsAsyncList:p,numPages:f,changePage:b,currentPage:r}}function X_t({filterValue:e,filteredBlockPatternsLength:t}){return e?a.jsx(ec,{level:2,lineHeight:"48px",className:"block-editor-block-patterns-explorer__search-results-count",children:le(a0("%d pattern found","%d patterns found",t),t)}):null}function G_t({searchValue:e,selectedCategory:t,patternCategories:n,rootClientId:o}){const r=O.useRef(),s=Uo(At,500),[i,c]=uk({rootClientId:o,shouldFocusBlock:!0}),[l,,u]=aO(c,i,t),d=O.useMemo(()=>n.map(z=>z.name),[n]),p=O.useMemo(()=>{const z=l.filter(y=>{if(t===a5.name||t===U3.name&&y.type===X1.user)return!0;if(t==="uncategorized"){const x=y.categories.some(v=>d.includes(v));return!y.categories?.length||!x}return y.categories?.includes(t)});return e?jj(z,e):z},[e,l,t,d]);O.useEffect(()=>{if(!e)return;const z=p.length,y=le(a0("%d result found.","%d results found.",z),z);s(y)},[e,s,p.length]);const f=dhe(p,t,r),[b,h]=O.useState(e);e!==b&&(h(e),f.changePage(1));const g=!!p?.length;return a.jsxs("div",{className:"block-editor-block-patterns-explorer__list",ref:r,children:[a.jsx(X_t,{filterValue:e,filteredBlockPatternsLength:p.length}),a.jsx(AP,{children:g&&a.jsxs(a.Fragment,{children:[a.jsx(oc,{shownPatterns:f.categoryPatternsAsyncList,blockPatterns:f.categoryPatterns,onClickPattern:u,isDraggable:!1}),a.jsx(lhe,{...f})]})})]})}function K_t(e,t){return!e.categories||!e.categories.length?!1:e.categories.some(n=>t.some(o=>o.name===n))}function vP(e,t="all"){const[n,o]=aO(void 0,e),r=O.useMemo(()=>t==="all"?n:n.filter(i=>!Sfe(i,t)),[t,n]);return O.useMemo(()=>{const i=o.filter(c=>r.some(l=>l.categories?.includes(c.name))).sort((c,l)=>c.label.localeCompare(l.label));return r.some(c=>!K_t(c,o))&&!i.find(c=>c.name==="uncategorized")&&i.push({name:"uncategorized",label:Oe("Uncategorized")}),r.some(c=>c.type===X1.user)&&i.unshift(U3),r.length>0&&i.unshift({name:a5.name,label:a5.label}),At(le(a0("%d category button displayed.","%d category buttons displayed.",i.length),i.length)),i},[o,r])}function Y_t({initialCategory:e,rootClientId:t}){const[n,o]=O.useState(""),[r,s]=O.useState(e?.name),i=vP(t);return a.jsxs("div",{className:"block-editor-block-patterns-explorer",children:[a.jsx(I_t,{selectedCategory:r,patternCategories:i,onClickCategory:s,searchValue:n,setSearchValue:o}),a.jsx(G_t,{searchValue:n,selectedCategory:r,patternCategories:i,rootClientId:t})]})}function Z_t({onModalClose:e,...t}){return a.jsx(fn,{title:m("Patterns"),onRequestClose:e,isFullScreen:!0,children:a.jsx(Y_t,{...t})})}function Q_t({title:e}){return a.jsx(Ye,{spacing:0,children:a.jsx(C0,{children:a.jsx(or,{marginBottom:0,paddingX:4,paddingY:3,children:a.jsxs(Je,{spacing:2,children:[a.jsx(sfe,{style:{minWidth:24,padding:0},icon:ft()?Ei:Fa,size:"small",label:m("Back")}),a.jsx(or,{children:a.jsx(ec,{level:5,children:e})})]})})})})}function phe({categories:e,children:t}){return a.jsxs(nfe,{initialPath:"/",className:"block-editor-inserter__mobile-tab-navigation",children:[a.jsx(s5,{path:"/",children:a.jsx(Yu,{children:e.map(n=>a.jsx(rfe,{path:`/category/${n.name}`,as:fw,isAction:!0,children:a.jsxs(Je,{children:[a.jsx(Vi,{children:n.label}),a.jsx(t0,{icon:ft()?Fa:Ei})]})},n.name))})}),e.map(n=>a.jsxs(s5,{path:`/category/${n.name}`,children:[a.jsx(Q_t,{title:m("Back")}),t(n)]},n.name))]})}const zY=e=>e!=="all"&&e!=="user",J_t=e=>e.name===U3.name,ewt=[{value:"all",label:Oe("All","patterns")},{value:X1.directory,label:m("Pattern Directory")},{value:X1.theme,label:m("Theme & Plugins")},{value:X1.user,label:m("User")}];function twt({setPatternSyncFilter:e,setPatternSourceFilter:t,patternSyncFilter:n,patternSourceFilter:o,scrollContainerRef:r,category:s}){const i=s.name===U3.name?X1.user:o,c=zY(i),l=J_t(s),u=O.useMemo(()=>[{value:"all",label:Oe("All","patterns")},{value:i5.full,label:Oe("Synced","patterns"),disabled:c},{value:i5.unsynced,label:Oe("Not synced","patterns"),disabled:c}],[c]);function d(p){t(p),zY(p)&&e("all")}return a.jsx(a.Fragment,{children:a.jsx(E1,{popoverProps:{placement:"right-end"},label:m("Filter patterns"),toggleProps:{size:"compact"},icon:a.jsx(t0,{icon:a.jsx(te,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z",fill:"currentColor"})})}),children:()=>a.jsxs(a.Fragment,{children:[!l&&a.jsx(Yt,{label:m("Source"),children:a.jsx(Hp,{choices:ewt,onSelect:p=>{d(p),r.current?.scrollTo(0,0)},value:i})}),a.jsx(Yt,{label:m("Type"),children:a.jsx(Hp,{choices:u,onSelect:p=>{e(p),r.current?.scrollTo(0,0)},value:n})}),a.jsx("div",{className:"block-editor-tool-selector__help",children:z1(m("Patterns are available from the WordPress.org Pattern Directory, bundled in the active theme, or created by users on this site. Only patterns created on this site can be synced."),{Link:a.jsx(S1,{href:m("https://wordpress.org/patterns/")})})})]})})})}const nwt=()=>{};function fhe({rootClientId:e,onInsert:t,onHover:n=nwt,category:o,showTitlesAsTooltip:r}){const[s,,i]=aO(t,e,o?.name),[c,l]=O.useState("all"),[u,d]=O.useState("all"),p=vP(e,u),f=O.useRef(),b=O.useMemo(()=>s.filter(x=>Sfe(x,u,c)?!1:o.name===a5.name||o.name===U3.name&&x.type===X1.user?!0:o.name==="uncategorized"?x.categories?!x.categories.some(v=>p.some(M=>M.name===v)):!0:x.categories?.includes(o.name)),[s,p,o.name,u,c]),h=dhe(b,o,f),{changePage:g}=h;O.useEffect(()=>()=>n(null),[]);const z=O.useCallback(x=>{l(x),g(1)},[l,g]),y=O.useCallback(x=>{d(x),g(1)},[d,g]);return a.jsxs(a.Fragment,{children:[a.jsxs(Ye,{spacing:2,className:"block-editor-inserter__patterns-category-panel-header",children:[a.jsxs(Je,{children:[a.jsx(Vi,{children:a.jsx(ec,{className:"block-editor-inserter__patterns-category-panel-title",size:13,level:4,as:"div",children:o.label})}),a.jsx(twt,{patternSyncFilter:c,patternSourceFilter:u,setPatternSyncFilter:z,setPatternSourceFilter:y,scrollContainerRef:f,category:o})]}),!b.length&&a.jsx(l0,{variant:"muted",className:"block-editor-inserter__patterns-category-no-results",children:m("No results found")})]}),b.length>0&&a.jsx(oc,{ref:f,shownPatterns:h.categoryPatternsAsyncList,blockPatterns:h.categoryPatterns,onClickPattern:i,onHover:n,label:o.label,orientation:"vertical",category:o.name,isDraggable:!0,showTitlesAsTooltip:r,patternFilter:u,pagingProps:h})]})}const{Tabs:YA}=Fe(L0);function bhe({categories:e,selectedCategory:t,onSelectCategory:n,children:o}){const i={type:"tween",duration:Zs()?0:.25,ease:[.6,0,.4,1]},c=t1(t);return a.jsxs(YA,{className:"block-editor-inserter__category-tabs",selectOnMove:!1,selectedTabId:t?t.name:null,orientation:"vertical",onSelect:l=>{n(e.find(u=>u.name===l))},children:[a.jsx(YA.TabList,{className:"block-editor-inserter__category-tablist",children:e.map(l=>a.jsx(YA.Tab,{tabId:l.name,className:"block-editor-inserter__category-tab","aria-label":l.label,"aria-current":l===t?"true":void 0,children:a.jsxs(Je,{children:[a.jsx(Vi,{children:l.label}),a.jsx(t0,{icon:ft()?Fa:Ei})]})},l.name))}),e.map(l=>a.jsx(YA.TabPanel,{tabId:l.name,focusable:!1,children:a.jsx(Hn.div,{className:"block-editor-inserter__category-panel",initial:c?"open":"closed",animate:"open",variants:{open:{transform:"translateX( 0 )",transitionEnd:{zIndex:"1"}},closed:{transform:"translateX( -100% )",zIndex:"-1"}},transition:i,children:o})},l.name))]})}function owt({onSelectCategory:e,selectedCategory:t,onInsert:n,rootClientId:o,children:r}){const[s,i]=O.useState(!1),c=vP(o),l=g0("medium","<");return D(d=>Fe(d(F)).isResolvingPatterns(),[])?a.jsx("div",{className:"block-editor-inserter__patterns-loading",children:a.jsx(u0,{})}):c.length?a.jsxs(a.Fragment,{children:[!l&&a.jsxs("div",{className:"block-editor-inserter__block-patterns-tabs-container",children:[a.jsx(bhe,{categories:c,selectedCategory:t,onSelectCategory:e,children:r}),a.jsx(fe,{__next40pxDefaultSize:!1,className:"block-editor-inserter__patterns-explore-button",onClick:()=>i(!0),variant:"secondary",children:m("Explore all patterns")})]}),l&&a.jsx(phe,{categories:c,children:d=>a.jsx("div",{className:"block-editor-inserter__category-panel",children:a.jsx(fhe,{onInsert:n,rootClientId:o,category:d,showTitlesAsTooltip:!1},d.name)})}),s&&a.jsx(Z_t,{initialCategory:t||c[0],patternCategories:c,onModalClose:()=>i(!1),rootClientId:o})]}):a.jsx(J2,{})}const rwt={image:"img",video:"video",audio:"audio"};function hhe(e,t){const n={id:e.id||void 0,caption:e.caption||void 0},o=e.url,r=e.alt||void 0;t==="image"?(n.url=o,n.alt=r):["video","audio"].includes(t)&&(n.src=o);const s=rwt[t],i=a.jsx(s,{src:e.previewUrl||o,alt:r,controls:t==="audio"?!0:void 0,inert:"true",onError:({currentTarget:c})=>{c.src===e.previewUrl&&(c.src=o)}});return[me(`core/${t}`,n),i]}const swt=["image"],OY=25,iwt={position:"bottom left",className:"block-editor-inserter__media-list__item-preview-options__popover"},{CompositeItemV2:awt}=Fe(L0);function cwt({category:e,media:t}){if(!e.getReportUrl)return null;const n=e.getReportUrl(t);return a.jsx(E1,{className:"block-editor-inserter__media-list__item-preview-options",label:m("Options"),popoverProps:iwt,icon:Ol,children:()=>a.jsx(Yt,{children:a.jsx(tt,{onClick:()=>window.open(n,"_blank").focus(),icon:Pp,children:le(m("Report %s"),e.mediaType)})})})}function lwt({onClose:e,onSubmit:t}){return a.jsxs(fn,{title:m("Insert external image"),onRequestClose:e,className:"block-editor-inserter-media-tab-media-preview-inserter-external-image-modal",children:[a.jsxs(Ye,{spacing:3,children:[a.jsx("p",{children:m("This image cannot be uploaded to your Media Library, but it can still be inserted as an external image.")}),a.jsx("p",{children:m("External images can be removed by the external provider without warning and could even have legal compliance issues related to privacy legislation.")})]}),a.jsxs(Q0,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1,children:[a.jsx(Ht,{children:a.jsx(fe,{__next40pxDefaultSize:!1,variant:"tertiary",onClick:e,children:m("Cancel")})}),a.jsx(Ht,{children:a.jsx(fe,{__next40pxDefaultSize:!1,variant:"primary",onClick:t,children:m("Insert")})})]})]})}function uwt({media:e,onClick:t,category:n}){const[o,r]=O.useState(!1),[s,i]=O.useState(!1),[c,l]=O.useState(!1),[u,d]=O.useMemo(()=>hhe(e,n.mediaType),[e,n.mediaType]),{createErrorNotice:p,createSuccessNotice:f}=ae(Ze),{getSettings:b}=D(F),h=O.useCallback(v=>{if(c)return;const M=b(),A=pn(v),{id:_,url:w,caption:k}=A.attributes;if(!_&&!M.mediaUpload){r(!0);return}if(_){t(A);return}l(!0),window.fetch(w).then(q=>q.blob()).then(q=>{M.mediaUpload({filesList:[q],additionalData:{caption:k},onFileChange([S]){n1(S.url)||(t({...A,attributes:{...A.attributes,id:S.id,url:S.url}}),f(m("Image uploaded and inserted."),{type:"snackbar"}),l(!1))},allowedTypes:swt,onError(S){p(S,{type:"snackbar"}),l(!1)}})}).catch(()=>{r(!0),l(!1)})},[c,b,t,f,p]),g=typeof e.title=="string"?e.title:e.title?.rendered||m("no title");let z;if(g.length>OY){const v="...";z=g.slice(0,OY-v.length)+v}const y=O.useCallback(()=>i(!0),[]),x=O.useCallback(()=>i(!1),[]);return a.jsxs(a.Fragment,{children:[a.jsx(yP,{isEnabled:!0,blocks:[u],children:({draggable:v,onDragStart:M,onDragEnd:A})=>a.jsx("div",{className:$("block-editor-inserter__media-list__list-item",{"is-hovered":s}),draggable:v,onDragStart:M,onDragEnd:A,children:a.jsxs("div",{onMouseEnter:y,onMouseLeave:x,children:[a.jsx(W1,{text:z||g,children:a.jsx(awt,{render:a.jsx("div",{"aria-label":g,role:"option",className:"block-editor-inserter__media-list__item"}),onClick:()=>h(u),children:a.jsxs("div",{className:"block-editor-inserter__media-list__item-preview",children:[d,c&&a.jsx("div",{className:"block-editor-inserter__media-list__item-preview-spinner",children:a.jsx(u0,{})})]})})}),!c&&a.jsx(cwt,{category:n,media:e})]})})}),o&&a.jsx(lwt,{onClose:()=>r(!1),onSubmit:()=>{t(pn(u)),f(m("Image inserted."),{type:"snackbar"}),r(!1)}})]})}const{CompositeV2:dwt}=Fe(L0);function pwt({mediaList:e,category:t,onClick:n,label:o=m("Media List")}){return a.jsx(dwt,{role:"listbox",className:"block-editor-inserter__media-list","aria-label":o,children:e.map((r,s)=>a.jsx(uwt,{media:r,category:t,onClick:n},r.id||r.sourceId||s))})}function fwt(e,t={}){const[n,o]=O.useState(),[r,s]=O.useState(!1),i=O.useRef();return O.useEffect(()=>{(async()=>{const c=JSON.stringify({category:e.name,...t});i.current=c,s(!0),o([]);const l=await e.fetch?.(t);c===i.current&&(o(l),s(!1))})()},[e.name,...Object.values(t)]),{mediaList:n,isLoading:r}}function bwt(e){const[t,n]=O.useState([]),o=D(c=>Fe(c(F)).getInserterMediaCategories(),[]),{canInsertImage:r,canInsertVideo:s,canInsertAudio:i}=D(c=>{const{canInsertBlockType:l}=c(F);return{canInsertImage:l("core/image",e),canInsertVideo:l("core/video",e),canInsertAudio:l("core/audio",e)}},[e]);return O.useEffect(()=>{(async()=>{const c=[];if(!o)return;const l=new Map(await Promise.all(o.map(async d=>{if(d.isExternalResource)return[d.name,!0];let p=[];try{p=await d.fetch({per_page:1})}catch{}return[d.name,!!p.length]}))),u={image:r,video:s,audio:i};o.forEach(d=>{u[d.mediaType]&&l.get(d.name)&&c.push(d)}),c.length&&n(c)})()},[r,s,i,o]),t}const hwt=10;function mhe({rootClientId:e,onInsert:t,category:n}){const[o,r,s]=yne(),{mediaList:i,isLoading:c}=fwt(n,{per_page:s?20:hwt,search:s}),l="block-editor-inserter__media-panel",u=n.labels.search_items||m("Search");return a.jsxs("div",{className:l,children:[a.jsx(xl,{__nextHasNoMarginBottom:!0,className:`${l}-search`,onChange:r,value:o,label:u,placeholder:u}),c&&a.jsx("div",{className:`${l}-spinner`,children:a.jsx(u0,{})}),!c&&!i?.length&&a.jsx(J2,{}),!c&&!!i?.length&&a.jsx(pwt,{rootClientId:e,onClick:t,mediaList:i,category:n})]})}function cl({fallback:e=null,children:t}){return D(o=>{const{getSettings:r}=o(F);return!!r().mediaUpload},[])?t:e}const mwt=()=>null,Od=gd("editor.MediaUpload")(mwt),Mwt=["image","video","audio"];function gwt({rootClientId:e,selectedCategory:t,onSelectCategory:n,onInsert:o,children:r}){const s=bwt(e),i=g0("medium","<"),c="block-editor-inserter__media-tabs",l=O.useCallback(d=>{if(!d?.url)return;const[p]=hhe(d,d.type);o(p)},[o]),u=O.useMemo(()=>s.map(d=>({...d,label:d.labels.name})),[s]);return u.length?a.jsxs(a.Fragment,{children:[!i&&a.jsxs("div",{className:`${c}-container`,children:[a.jsx(bhe,{categories:u,selectedCategory:t,onSelectCategory:n,children:r}),a.jsx(cl,{children:a.jsx(Od,{multiple:!1,onSelect:l,allowedTypes:Mwt,render:({open:d})=>a.jsx(fe,{__next40pxDefaultSize:!1,onClick:p=>{p.target.focus(),d()},className:"block-editor-inserter__media-library-button",variant:"secondary","data-unstable-ignore-focus-outside-for-relatedtarget":".media-modal",children:m("Open Media Library")})})})]}),i&&a.jsx(phe,{categories:u,children:d=>a.jsx(mhe,{onInsert:o,rootClientId:e,category:d})})]}):a.jsx(J2,{})}const{Fill:Mhe,Slot:zwt}=_0("__unstableInserterMenuExtension");Mhe.Slot=zwt;const Owt=9,AY=[];function ghe({filterValue:e,onSelect:t,onHover:n,onHoverPattern:o,rootClientId:r,clientId:s,isAppender:i,__experimentalInsertionIndex:c,maxBlockPatterns:l,maxBlockTypes:u,showBlockDirectory:d=!1,isDraggable:p=!0,shouldFocusBlock:f=!0,prioritizePatterns:b,selectBlockOnInsert:h,isQuick:g}){const z=Uo(At,500),{prioritizedBlocks:y}=D(I=>({prioritizedBlocks:I(F).getBlockListSettings(r)?.prioritizedInserterBlocks||AY}),[r]),[x,v]=uk({onSelect:t,rootClientId:r,clientId:s,isAppender:i,insertionIndex:c,shouldFocusBlock:f,selectBlockOnInsert:h}),[M,A,_,w]=Pw(x,v,g),[k,,q]=aO(v,x),S=O.useMemo(()=>{if(l===0)return[];const I=jj(k,e);return l!==void 0?I.slice(0,l):I},[e,k,l]);let C=u;b&&S.length>2&&(C=0);const T=O.useMemo(()=>{if(C===0)return[];const I=M.filter(U=>U.name!=="core/block");let P=H3(I,"frecency","desc");!e&&y.length&&(P=fbe(P,y));const H=pbe(P,A,_,e);return C!==void 0?H.slice(0,C):H},[e,M,A,_,C,y]);O.useEffect(()=>{if(!e)return;const I=T.length+S.length,P=le(a0("%d result found.","%d results found.",I),I);z(P)},[e,z,T,S]);const W=Gs(T,{step:Owt}),B=Gs(W.length===T.length?S:AY),N=T.length>0||S.length>0,E=!!T.length&&a.jsx(Wb,{title:a.jsx(Kt,{children:m("Blocks")}),children:a.jsx(Rb,{items:W,onSelect:w,onHover:n,label:m("Blocks"),isDraggable:p})}),L=!!S.length&&a.jsx(Wb,{title:a.jsx(Kt,{children:m("Block patterns")}),children:a.jsx("div",{className:"block-editor-inserter__quick-inserter-patterns",children:a.jsx(oc,{shownPatterns:B,blockPatterns:S,onClickPattern:q,onHover:o,isDraggable:p})})});return a.jsxs(AP,{children:[!d&&!N&&a.jsx(J2,{}),b?L:E,!!T.length&&!!S.length&&a.jsx("div",{className:"block-editor-inserter__quick-inserter-separator"}),b?E:L,d&&a.jsx(Mhe.Slot,{fillProps:{onSelect:w,onHover:n,filterValue:e,hasItems:N,rootClientId:x},children:I=>I.length?I:N?null:a.jsx(J2,{})})]})}const{Tabs:ZA}=Fe(L0);function Awt({defaultTabId:e,onClose:t,onSelect:n,selectedTab:o,tabs:r,closeButtonLabel:s},i){return a.jsx("div",{className:"block-editor-tabbed-sidebar",children:a.jsxs(ZA,{selectOnMove:!1,defaultTabId:e,onSelect:n,selectedTabId:o,children:[a.jsxs("div",{className:"block-editor-tabbed-sidebar__tablist-and-close-button",children:[a.jsx(fe,{className:"block-editor-tabbed-sidebar__close-button",icon:zl,label:s,onClick:()=>t(),size:"small"}),a.jsx(ZA.TabList,{className:"block-editor-tabbed-sidebar__tablist",ref:i,children:r.map(c=>a.jsx(ZA.Tab,{tabId:c.name,className:"block-editor-tabbed-sidebar__tab",children:c.title},c.name))})]}),r.map(c=>a.jsx(ZA.TabPanel,{tabId:c.name,focusable:!1,className:"block-editor-tabbed-sidebar__tabpanel",ref:c.panelRef,children:c.panel},c.name))]})})}const zhe=O.forwardRef(Awt),ywt=()=>{};function vwt({rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:o,onSelect:r,showInserterHelpPanel:s,showMostUsedBlocks:i,__experimentalFilterValue:c="",shouldFocusBlock:l=!0,onPatternCategorySelection:u,onClose:d,__experimentalInitialTab:p,__experimentalInitialCategory:f},b){const h=D(se=>se(F).__unstableGetEditorMode()==="zoom-out",[]),[g,z,y]=yne(c),[x,v]=O.useState(null),[M,A]=O.useState(f),[_,w]=O.useState("all"),[k,q]=O.useState(null);function S(){if(p)return p;if(h)return"patterns"}const[C,T]=O.useState(S()),[W,B,N]=uk({rootClientId:e,clientId:t,isAppender:n,insertionIndex:o,shouldFocusBlock:l}),E=O.useRef(),L=O.useCallback((se,be,ye,xe)=>{B(se,be,ye,xe),r(se),window.requestAnimationFrame(()=>{!l&&!E.current?.contains(b.current.ownerDocument.activeElement)&&E.current?.querySelector("button").focus()})},[B,r,l]),I=O.useCallback((se,be)=>{N(!1),B(se,{patternName:be}),r()},[B,r]),P=O.useCallback(se=>{N(se),v(se)},[N,v]),H=O.useCallback((se,be)=>{A(se),w(be),u?.()},[A,u]),U=C==="patterns"&&!y&&!!M,X=C==="media"&&!!k,Z=O.useMemo(()=>C==="media"?null:a.jsxs(a.Fragment,{children:[a.jsx(xl,{__nextHasNoMarginBottom:!0,className:"block-editor-inserter__search",onChange:se=>{x&&v(null),z(se)},value:g,label:m("Search for blocks and patterns"),placeholder:m("Search")}),!!y&&a.jsx(ghe,{filterValue:y,onSelect:r,onHover:P,rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:o,showBlockDirectory:!0,shouldFocusBlock:l,prioritizePatterns:C==="patterns"})]}),[C,x,v,z,g,y,r,P,l,t,e,o,n]),ne=O.useMemo(()=>a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"block-editor-inserter__block-list",children:a.jsx(L_t,{ref:E,rootClientId:W,onInsert:L,onHover:P,showMostUsedBlocks:i})}),s&&a.jsxs("div",{className:"block-editor-inserter__tips",children:[a.jsx(Kt,{as:"h2",children:m("A tip for using the block editor")}),a.jsx(pvt,{})]})]}),[W,L,P,i,s]),oe=O.useMemo(()=>a.jsx(owt,{rootClientId:W,onInsert:I,onSelectCategory:H,selectedCategory:M,children:U&&a.jsx(fhe,{rootClientId:W,onInsert:I,category:M,patternFilter:_,showTitlesAsTooltip:!0})}),[W,I,H,_,M,U]),Y=O.useMemo(()=>a.jsx(gwt,{rootClientId:W,selectedCategory:k,onSelectCategory:q,onInsert:L,children:X&&a.jsx(mhe,{rootClientId:W,onInsert:L,category:k})}),[W,L,k,q,X]),ee=se=>{se!=="patterns"&&A(null),T(se)},ie=O.useRef();return O.useLayoutEffect(()=>{ie.current&&window.requestAnimationFrame(()=>{ie.current.querySelector('[role="tab"][aria-selected="true"]')?.focus()})},[]),a.jsxs("div",{className:$("block-editor-inserter__menu",{"show-panel":U||X,"is-zoom-out":h}),ref:b,children:[a.jsx("div",{className:"block-editor-inserter__main-area",children:a.jsx(zhe,{ref:ie,onSelect:ee,onClose:d,selectedTab:C,closeButtonLabel:m("Close block inserter"),tabs:[{name:"blocks",title:m("Blocks"),panel:a.jsxs(a.Fragment,{children:[Z,C==="blocks"&&!y&&ne]})},{name:"patterns",title:m("Patterns"),panel:a.jsxs(a.Fragment,{children:[Z,C==="patterns"&&!y&&oe]})},{name:"media",title:m("Media"),panel:a.jsxs(a.Fragment,{children:[Z,Y]})}]})}),s&&x&&a.jsx(Mn,{className:"block-editor-inserter__preview-container__popover",placement:"right-start",offset:16,focusOnMount:!1,animate:!1,children:a.jsx(ahe,{item:x})})]})}const Ohe=O.forwardRef(vwt);function xwt(e,t){return a.jsx(Ohe,{...e,onPatternCategorySelection:ywt,ref:t})}const _wt=O.forwardRef(xwt),yY=6,wwt=6,kwt=2,qwt=4;function Ahe({onSelect:e,rootClientId:t,clientId:n,isAppender:o,prioritizePatterns:r,selectBlockOnInsert:s,hasSearch:i=!0}){const[c,l]=O.useState(""),[u,d]=uk({onSelect:e,rootClientId:t,clientId:n,isAppender:o,selectBlockOnInsert:s}),[p]=Pw(u,d,!0),[f]=aO(d,u),{setInserterIsOpened:b,insertionIndex:h}=D(M=>{const{getSettings:A,getBlockIndex:_,getBlockCount:w}=M(F),k=A(),q=_(n),S=w();return{setInserterIsOpened:k.__experimentalSetIsInserterOpened,insertionIndex:q===-1?S:q}},[n]),g=f.length&&(!!c||r),z=i&&(g&&f.length>yY||p.length>yY);O.useEffect(()=>{b&&b(!1)},[b]);const{showInsertionPoint:y}=ae(F),x=()=>{b({rootClientId:t,insertionIndex:h,filterValue:c,onSelect:e}),y(t,h)};let v=0;return g&&(v=r?qwt:kwt),a.jsxs("div",{className:$("block-editor-inserter__quick-inserter",{"has-search":z,"has-expand":b}),children:[z&&a.jsx(xl,{__nextHasNoMarginBottom:!0,className:"block-editor-inserter__search",value:c,onChange:M=>{l(M)},label:m("Search for blocks and patterns"),placeholder:m("Search")}),a.jsx("div",{className:"block-editor-inserter__quick-inserter-results",children:a.jsx(ghe,{filterValue:c,onSelect:e,rootClientId:t,clientId:n,isAppender:o,maxBlockPatterns:v,maxBlockTypes:wwt,isDraggable:!1,prioritizePatterns:r,selectBlockOnInsert:s,isQuick:!0})}),b&&a.jsx(fe,{__next40pxDefaultSize:!1,className:"block-editor-inserter__quick-inserter-expand",onClick:x,"aria-label":m("Browse all. This will open the main inserter panel in the editor toolbar."),children:m("Browse all")})]})}const Swt=({onToggle:e,disabled:t,isOpen:n,blockTitle:o,hasSingleBlockType:r,toggleProps:s={},prioritizePatterns:i})=>{const{as:c=fe,label:l,onClick:u,...d}=s;let p=l;!p&&r?p=le(Oe("Add %s","directly add the only allowed block"),o):!p&&i?p=m("Add pattern"):p||(p=Oe("Add block","Generic label for block inserter button"));function f(b){e&&e(b),u&&u(b)}return a.jsx(c,{icon:is,label:p,tooltipPosition:"bottom",onClick:f,className:"block-editor-inserter__toggle","aria-haspopup":r?!1:"true","aria-expanded":r?!1:n,disabled:t,...d})};class Cwt extends O.Component{constructor(){super(...arguments),this.onToggle=this.onToggle.bind(this),this.renderToggle=this.renderToggle.bind(this),this.renderContent=this.renderContent.bind(this)}onToggle(t){const{onToggle:n}=this.props;n&&n(t)}renderToggle({onToggle:t,isOpen:n}){const{disabled:o,blockTitle:r,hasSingleBlockType:s,directInsertBlock:i,toggleProps:c,hasItems:l,renderToggle:u=Swt,prioritizePatterns:d}=this.props;return u({onToggle:t,isOpen:n,disabled:o||!l,blockTitle:r,hasSingleBlockType:s,directInsertBlock:i,toggleProps:c,prioritizePatterns:d})}renderContent({onClose:t}){const{rootClientId:n,clientId:o,isAppender:r,showInserterHelpPanel:s,__experimentalIsQuick:i,prioritizePatterns:c,onSelectOrClose:l,selectBlockOnInsert:u}=this.props;return i?a.jsx(Ahe,{onSelect:d=>{const p=Array.isArray(d)&&d?.length?d[0]:d;l&&typeof l=="function"&&l(p),t()},rootClientId:n,clientId:o,isAppender:r,prioritizePatterns:c,selectBlockOnInsert:u}):a.jsx(_wt,{onSelect:()=>{t()},rootClientId:n,clientId:o,isAppender:r,showInserterHelpPanel:s})}render(){const{position:t,hasSingleBlockType:n,directInsertBlock:o,insertOnlyAllowedBlock:r,__experimentalIsQuick:s,onSelectOrClose:i}=this.props;return n||o?this.renderToggle({onToggle:r}):a.jsx(B0,{className:"block-editor-inserter",contentClassName:$("block-editor-inserter__popover",{"is-quick":s}),popoverProps:{position:t,shift:!0},onToggle:this.onToggle,expandOnMobile:!0,headerTitle:m("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent,onClose:i})}}const yhe=v0([Xo((e,{clientId:t,rootClientId:n,shouldDirectInsert:o=!0})=>{const{getBlockRootClientId:r,hasInserterItems:s,getAllowedBlocks:i,getDirectInsertBlock:c,getSettings:l}=e(F),{getBlockVariations:u}=e($e);n=n||r(t)||void 0;const d=i(n),p=o&&c(n),f=l(),b=d?.length===1&&u(d[0].name,"inserter")?.length===0;let h=!1;return b&&(h=d[0]),{hasItems:s(n),hasSingleBlockType:b,blockTitle:h?h.title:"",allowedBlockType:h,directInsertBlock:p,rootClientId:n,prioritizePatterns:f.__experimentalPreferPatternsOnRoot&&!n}}),Fi((e,t,{select:n})=>({insertOnlyAllowedBlock(){const{rootClientId:o,clientId:r,isAppender:s,hasSingleBlockType:i,allowedBlockType:c,directInsertBlock:l,onSelectOrClose:u,selectBlockOnInsert:d}=t;if(!i&&!l)return;function p(z){const{getBlock:y,getPreviousBlockClientId:x}=n(F);if(!z||!r&&!o)return{};const v={};let M={};if(r){const A=y(r),_=y(x(r));A?.name===_?.name&&(M=_?.attributes||{})}else{const A=y(o);if(A?.innerBlocks?.length){const _=A.innerBlocks[A.innerBlocks.length-1];l&&l?.name===_.name&&(M=_.attributes)}}return z.forEach(A=>{M.hasOwnProperty(A)&&(v[A]=M[A])}),v}function f(){const{getBlockIndex:z,getBlockSelectionEnd:y,getBlockOrder:x,getBlockRootClientId:v}=n(F);if(r)return z(r);const M=y();return!s&&M&&v(M)===o?z(M)+1:x(o).length}const{insertBlock:b}=e(F);let h;if(l){const z=p(l.attributesToCopy);h=me(l.name,{...l.attributes||{},...z})}else h=me(c.name);b(h,f(),o,d),u&&u({clientId:h?.clientId});const g=le(m("%s block added"),c.title);At(g)}})),OB(({hasItems:e,isAppender:t,rootClientId:n,clientId:o})=>e||!t&&!n&&!o)])(Cwt),Xh=O.forwardRef((e,t)=>a.jsx(yhe,{ref:t,...e})),Rwt="\uFEFF";function vhe({rootClientId:e}){const{showPrompt:t,isLocked:n,placeholder:o,isManualGrid:r}=D(u=>{const{getBlockCount:d,getSettings:p,getTemplateLock:f,getBlockAttributes:b}=u(F),h=!d(e),{bodyPlaceholder:g}=p();return{showPrompt:h,isLocked:!!f(e),placeholder:g,isManualGrid:b(e)?.layout?.isManualPlacement}},[e]),{insertDefaultBlock:s,startTyping:i}=ae(F);if(n||r)return null;const c=kt(o)||m("Type / to choose a block"),l=()=>{s(void 0,e),i()};return a.jsxs("div",{"data-root-client-id":e||"",className:$("block-editor-default-block-appender",{"has-visible-prompt":t}),children:[a.jsx("p",{tabIndex:"0",role:"button","aria-label":m("Add default block"),className:"block-editor-default-block-appender__content",onKeyDown:u=>{(y1===u.keyCode||qx===u.keyCode)&&l()},onClick:()=>l(),onFocus:()=>{t&&l()},children:t?c:Rwt}),a.jsx(Xh,{rootClientId:e,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0})]})}function xhe({rootClientId:e,className:t,onFocus:n,tabIndex:o,onSelect:r},s){const i=O.useRef(),c=Gt([i,s]);return a.jsx(Xh,{position:"bottom center",rootClientId:e,__experimentalIsQuick:!0,onSelectOrClose:(...l)=>{r&&typeof r=="function"&&r(...l),i.current?.focus()},renderToggle:({onToggle:l,disabled:u,isOpen:d,blockTitle:p,hasSingleBlockType:f})=>{let b;f?b=le(Oe("Add %s","directly add the only allowed block"),p):b=Oe("Add block","Generic label for block inserter button");const h=!f;let g=a.jsxs(fe,{__next40pxDefaultSize:!1,ref:c,onFocus:n,tabIndex:o,className:$(t,"block-editor-button-block-appender"),onClick:l,"aria-haspopup":h?"true":void 0,"aria-expanded":h?d:void 0,disabled:u,label:b,children:[!f&&a.jsx(Kt,{as:"span",children:b}),a.jsx(t0,{icon:is})]});return(h||f)&&(g=a.jsx(W1,{text:b,children:g})),g},isAppender:!0})}O.forwardRef((e,t)=>(Re("wp.blockEditor.ButtonBlockerAppender",{alternative:"wp.blockEditor.ButtonBlockAppender",since:"5.9"}),xhe(e,t)));const dk=O.forwardRef(xhe);function Wwt({rootClientId:e}){return D(n=>n(F).canInsertBlockType(jn(),e))?a.jsx(vhe,{rootClientId:e}):a.jsx(dk,{rootClientId:e,className:"block-list-appender__toggle"})}function Twt({rootClientId:e,CustomAppender:t,className:n,tagName:o="div"}){const r=D(s=>{const{getBlockInsertionPoint:i,isBlockInsertionPointVisible:c,getBlockCount:l}=s(F),u=i();return c()&&e===u?.rootClientId&&l(e)===0},[e]);return a.jsx(o,{tabIndex:-1,className:$("block-list-appender wp-block",n,{"is-drag-over":r}),contentEditable:!1,"data-block":!0,children:t?a.jsx(t,{}):a.jsx(Wwt,{rootClientId:e})})}function k5(e){return Et(t=>{if(!e)return;function n(r){const{deltaX:s,deltaY:i}=r;e.current.scrollBy(s,i)}const o={passive:!0};return t.addEventListener("wheel",n,o),()=>{t.removeEventListener("wheel",n,o)}},[e])}const Ewt=Number.MAX_SAFE_INTEGER;O.createContext();function _he({previousClientId:e,nextClientId:t,children:n,__unstablePopoverSlot:o,__unstableContentRef:r,operation:s="insert",nearestSide:i="right",...c}){const[l,u]=O.useReducer(x=>(x+1)%Ewt,0),{orientation:d,rootClientId:p,isVisible:f}=D(x=>{const{getBlockListSettings:v,getBlockRootClientId:M,isBlockVisible:A}=x(F),_=M(e??t);return{orientation:v(_)?.orientation||"vertical",rootClientId:_,isVisible:A(e)&&A(t)}},[e,t]),b=ls(e),h=ls(t),g=d==="vertical",z=O.useMemo(()=>l<0||!b&&!h||!f?void 0:{contextElement:s==="group"?h||b:b||h,getBoundingClientRect(){const v=b?b.getBoundingClientRect():null,M=h?h.getBoundingClientRect():null;let A=0,_=0,w=0,k=0;if(s==="group"){const q=M||v;_=q.top,w=0,k=q.bottom-q.top,A=i==="left"?q.left-2:q.right-2}else g?(_=v?v.bottom:M.top,w=v?v.width:M.width,k=M&&v?M.top-v.bottom:0,A=v?v.left:M.left):(_=v?v.top:M.top,k=v?v.height:M.height,ft()?(A=M?M.right:v.left,w=v&&M?v.left-M.right:0):(A=v?v.right:M.left,w=v&&M?M.left-v.right:0));return new window.DOMRect(A,_,w,k)}},[b,h,l,g,f,s,i]),y=k5(r);return O.useLayoutEffect(()=>{if(!b)return;const x=new window.MutationObserver(u);return x.observe(b,{attributes:!0}),()=>{x.disconnect()}},[b]),O.useLayoutEffect(()=>{if(!h)return;const x=new window.MutationObserver(u);return x.observe(h,{attributes:!0}),()=>{x.disconnect()}},[h]),O.useLayoutEffect(()=>{if(b)return b.ownerDocument.defaultView.addEventListener("resize",u),()=>{b.ownerDocument.defaultView?.removeEventListener("resize",u)}},[b]),!b&&!h||!f?null:a.jsx(Mn,{ref:y,animate:!1,anchor:z,focusOnMount:!1,__unstableSlotName:o,inline:!o,...c,className:$("block-editor-block-popover","block-editor-block-popover__inbetween",c.className),resize:!1,flip:!1,placement:"overlay",variant:"unstyled",children:a.jsx("div",{className:"block-editor-block-popover__inbetween-container",children:n})},t+"--"+p)}const Bwt=Number.MAX_SAFE_INTEGER;function Nwt({clientId:e,bottomClientId:t,children:n,__unstablePopoverSlot:o,__unstableContentRef:r,shift:s=!0,...i},c){const l=ls(e),u=ls(t??e),d=Gt([c,k5(r)]),[p,f]=O.useReducer(h=>(h+1)%Bwt,0);O.useLayoutEffect(()=>{if(!l)return;const h=new window.MutationObserver(f);return h.observe(l,{attributes:!0}),()=>{h.disconnect()}},[l]);const b=O.useMemo(()=>{if(!(p<0||!l||t&&!u))return{getBoundingClientRect(){return u?a2e(h4(l),h4(u)):h4(l)},contextElement:l}},[t,u,l,p]);return!l||t&&!u?null:a.jsx(Mn,{ref:d,animate:!1,focusOnMount:!1,anchor:b,__unstableSlotName:o,inline:!o,placement:"top-start",resize:!1,flip:!1,shift:s,...i,className:$("block-editor-block-popover",i.className),variant:"unstyled",children:n})}const pk=O.forwardRef(Nwt),Lwt=({clientId:e,bottomClientId:t,children:n,...o},r)=>a.jsx(pk,{...o,bottomClientId:t,clientId:e,__unstableContentRef:void 0,__unstablePopoverSlot:void 0,ref:r,children:n}),whe=O.forwardRef(Lwt);function jwt({clientId:e,bottomClientId:t,children:n,shift:o=!1,additionalStyles:r,...s},i){var c;(c=t)!==null&&c!==void 0||(t=e);const l=ls(e);return a.jsx(pk,{ref:i,clientId:e,bottomClientId:t,shift:o,...s,children:l&&e===t?a.jsx(Pwt,{selectedElement:l,additionalStyles:r,children:n}):n})}function Pwt({selectedElement:e,additionalStyles:t={},children:n}){const[o,r]=O.useState(e.offsetWidth),[s,i]=O.useState(e.offsetHeight);O.useEffect(()=>{const l=new window.ResizeObserver(()=>{r(e.offsetWidth),i(e.offsetHeight)});return l.observe(e,{box:"border-box"}),()=>l.disconnect()},[e]);const c=O.useMemo(()=>({position:"absolute",width:o,height:s,...t}),[o,s,t]);return a.jsx("div",{style:c,children:n})}const Gh=O.forwardRef(jwt),Vm={hide:{opacity:0,scaleY:.75},show:{opacity:1,scaleY:1},exit:{opacity:0,scaleY:.9}};function Iwt({__unstablePopoverSlot:e,__unstableContentRef:t}){const{clientId:n}=D(r=>{const{getBlockOrder:s,getBlockInsertionPoint:i}=r(F),c=i(),l=s(c.rootClientId);return l.length?{clientId:l[c.index]}:{}},[]),o=Zs();return a.jsx(Gh,{clientId:n,__unstablePopoverSlot:e,__unstableContentRef:t,className:"block-editor-block-popover__drop-zone",children:a.jsx(Hn.div,{"data-testid":"block-popover-drop-zone",initial:o?Vm.show:Vm.hide,animate:Vm.show,exit:o?Vm.show:Vm.exit,className:"block-editor-block-popover__drop-zone-foreground"})})}const xP=O.createContext();function Dwt({__unstablePopoverSlot:e,__unstableContentRef:t,operation:n="insert",nearestSide:o="right"}){const{selectBlock:r,hideInsertionPoint:s}=ae(F),i=O.useContext(xP),c=O.useRef(),{orientation:l,previousClientId:u,nextClientId:d,rootClientId:p,isInserterShown:f,isDistractionFree:b,isNavigationMode:h,isZoomOutMode:g}=D(q=>{const{getBlockOrder:S,getBlockListSettings:C,getBlockInsertionPoint:T,isBlockBeingDragged:W,getPreviousBlockClientId:B,getNextBlockClientId:N,getSettings:E,isNavigationMode:L,__unstableGetEditorMode:I}=q(F),P=T(),H=S(P.rootClientId);if(!H.length)return{};let U=H[P.index-1],X=H[P.index];for(;W(U);)U=B(U);for(;W(X);)X=N(X);const Z=E();return{previousClientId:U,nextClientId:X,orientation:C(P.rootClientId)?.orientation||"vertical",rootClientId:P.rootClientId,isNavigationMode:L(),isDistractionFree:Z.isDistractionFree,isInserterShown:P?.__unstableWithInserter,isZoomOutMode:I()==="zoom-out"}},[]),{getBlockEditingMode:z}=D(F),y=Zs();function x(q){q.target===c.current&&d&&z(d)!=="disabled"&&r(d,-1)}function v(q){q.target===c.current&&!i.current&&s()}function M(q){q.target!==c.current&&(i.current=!0)}const A={start:{opacity:0,scale:0},rest:{opacity:1,scale:1,transition:{delay:f?.5:0,type:"tween"}},hover:{opacity:1,scale:1,transition:{delay:.5,type:"tween"}}},_={start:{scale:y?1:0},rest:{scale:1,transition:{delay:.4,type:"tween"}}};if(b&&!h||g&&n!=="insert")return null;const k=$("block-editor-block-list__insertion-point",l==="horizontal"||n==="group"?"is-horizontal":"is-vertical");return a.jsx(_he,{previousClientId:u,nextClientId:d,__unstablePopoverSlot:e,__unstableContentRef:t,operation:n,nearestSide:o,children:a.jsxs(Hn.div,{layout:!y,initial:y?"rest":"start",animate:"rest",whileHover:"hover",whileTap:"pressed",exit:"start",ref:c,tabIndex:-1,onClick:x,onFocus:M,className:$(k,{"is-with-inserter":f}),onHoverEnd:v,children:[a.jsx(Hn.div,{variants:A,className:"block-editor-block-list__insertion-point-indicator","data-testid":"block-list-insertion-point-indicator"}),f&&a.jsx(Hn.div,{variants:_,className:$("block-editor-block-list__insertion-point-inserter"),children:a.jsx(Xh,{position:"bottom center",clientId:d,rootClientId:p,__experimentalIsQuick:!0,onToggle:q=>{i.current=q},onSelectOrClose:()=>{i.current=!1}})})]})})}function Fwt(e){const{insertionPoint:t,isVisible:n,isBlockListEmpty:o}=D(r=>{const{getBlockInsertionPoint:s,isBlockInsertionPointVisible:i,getBlockCount:c}=r(F),l=s();return{insertionPoint:l,isVisible:i(),isBlockListEmpty:c(l?.rootClientId)===0}},[]);return!n||o?null:t.operation==="replace"?a.jsx(Iwt,{...e},`${t.rootClientId}-${t.index}`):a.jsx(Dwt,{operation:t.operation,nearestSide:t.nearestSide,...e})}function $wt(){const e=O.useContext(xP),t=D(h=>h(F).getSettings().isDistractionFree||h(F).__unstableGetEditorMode()==="zoom-out",[]),{getBlockListSettings:n,getBlockIndex:o,isMultiSelecting:r,getSelectedBlockClientIds:s,getSettings:i,getTemplateLock:c,__unstableIsWithinBlockOverlay:l,getBlockEditingMode:u,getBlockName:d,getBlockAttributes:p}=D(F),{showInsertionPoint:f,hideInsertionPoint:b}=ae(F);return Et(h=>{if(t)return;function g(z){if(e===void 0||e.current||z.target.nodeType===z.target.TEXT_NODE||r())return;if(!z.target.classList.contains("block-editor-block-list__layout")){b();return}let y;if(z.target.classList.contains("is-root-container")||(y=(z.target.getAttribute("data-block")?z.target:z.target.closest("[data-block]")).getAttribute("data-block")),c(y)||u(y)==="disabled"||d(y)==="core/block"||y&&p(y).layout?.isManualPlacement)return;const x=n(y),v=x?.orientation||"vertical",M=!!x?.__experimentalCaptureToolbars,A=z.clientY,_=z.clientX;let k=Array.from(z.target.children).find(T=>{const W=T.getBoundingClientRect();return T.classList.contains("wp-block")&&v==="vertical"&&W.top>A||T.classList.contains("wp-block")&&v==="horizontal"&&(ft()?W.right<_:W.left>_)});if(!k){b();return}if(!k.id&&(k=k.firstElementChild,!k)){b();return}const q=k.id.slice(6);if(!q||l(q)||s().includes(q)&&v==="vertical"&&!M&&!i().hasFixedToolbar)return;const S=k.getBoundingClientRect();if(v==="horizontal"&&(z.clientY>S.bottom||z.clientYS.right||z.clientX{h.removeEventListener("mousemove",g)}},[e,n,o,r,f,b,s,t])}function Vwt({showSeparator:e,isFloating:t,onAddBlock:n,isToggle:o}){const{clientId:r}=eo();return a.jsx(dk,{className:$({"block-list-appender__toggle":o}),rootClientId:r,showSeparator:e,isFloating:t,onAddBlock:n})}function Hwt(){const{clientId:e}=eo();return a.jsx(vhe,{rootClientId:e})}const Hm=new WeakMap;function Uwt(e){const[t,n]=O.useState(e);return Jr(t,e)||n(e),t}function Xwt(e,t,n,o,r,s,i,c,l,u,d,p){const f=h0(),b=Uwt(n),h=O.useMemo(()=>o,o),g=l===void 0||t==="contentOnly"?t:l;O.useLayoutEffect(()=>{const z={allowedBlocks:b,prioritizedInserterBlocks:h,templateLock:g};if(u!==void 0&&(z.__experimentalCaptureToolbars=u),d!==void 0)z.orientation=d;else{const y=Kp(p?.type);z.orientation=y.getOrientation(p)}i!==void 0&&(Re("__experimentalDefaultBlock",{alternative:"defaultBlock",since:"6.3",version:"6.4"}),z.defaultBlock=i),r!==void 0&&(z.defaultBlock=r),c!==void 0&&(Re("__experimentalDirectInsert",{alternative:"directInsert",since:"6.3",version:"6.4"}),z.directInsert=c),s!==void 0&&(z.directInsert=s),z.directInsert!==void 0&&typeof z.directInsert!="boolean"&&Re("Using `Function` as a `directInsert` argument",{alternative:"`boolean` values",since:"6.5"}),Hm.get(f)||Hm.set(f,{}),Hm.get(f)[e]=z,window.queueMicrotask(()=>{const y=Hm.get(f);if(Object.keys(y).length){const{updateBlockListSettings:x}=f.dispatch(F);x(y),Hm.set(f,{})}})},[e,b,h,g,r,s,i,c,u,d,p,f])}function Gwt(e,t,n,o){const{getBlocks:r,getSelectedBlocksInitialCaretPosition:s,isBlockSelected:i}=D(F),{replaceInnerBlocks:c,__unstableMarkNextChangeAsNotPersistent:l}=ae(F),u=O.useRef(null);O.useLayoutEffect(()=>{let d=!1;return window.queueMicrotask(()=>{if(d)return;const p=r(e),f=p.length===0||n==="all"||n==="contentOnly",b=!J1(t,u.current);if(!f||!b)return;u.current=t;const h=Ng(p,t);J1(h,p)||(l(),c(e,h,p.length===0&&o&&h.length!==0&&i(e),s()))}),()=>{d=!0}},[t,n,e])}function Kwt(e){return D(t=>{const n=t(F).getBlock(e);if(!n)return;const o=t($e).getBlockType(n.name);if(o&&Object.keys(o.providesContext).length!==0)return Object.fromEntries(Object.entries(o.providesContext).map(([r,s])=>[r,n.attributes[s]]))},[e])}function Ywt(e){let t={srcRootClientId:null,srcClientIds:null,srcIndex:null,type:null,blocks:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("wp-blocks")))}catch{return t}return t}function Zwt(e,t,n,o,r,s,i,c,l){return u=>{const{srcRootClientId:d,srcClientIds:p,type:f,blocks:b}=Ywt(u);if(f==="inserter"){i();const h=b.map(g=>pn(g));s(h,!0,null)}if(f==="block"){const h=n(p[0]);if(d===e&&h===t||p.includes(e)||o(p).some(x=>x===e))return;if(c==="group"){const x=p.map(v=>l(v));s(x,!0,null,p);return}const g=d===e,z=p.length,y=g&&h{if(!t().mediaUpload)return;const i=Ia(Ys("from"),c=>c.type==="files"&&o(c.blockName,e)&&c.isMatch(s));if(i){const c=i.transform(s,n);r(c)}}}function Jwt(e){return t=>{const n=Mf({HTML:t,mode:"BLOCKS"});n.length&&e(n)}}function khe(e,t,n={}){const{operation:o="insert",nearestSide:r="right"}=n,{canInsertBlockType:s,getBlockIndex:i,getClientIdsOfDescendants:c,getBlockOrder:l,getBlocksByClientId:u,getSettings:d,getBlock:p}=D(F),{getGroupingBlockName:f}=D($e),{insertBlocks:b,moveBlocksToPosition:h,updateBlockAttributes:g,clearSelectedBlock:z,replaceBlocks:y,removeBlocks:x}=ae(F),v=h0(),M=O.useCallback((q,S=!0,C=0,T=[])=>{Array.isArray(q)||(q=[q]);const B=l(e)[t];if(o==="replace")y(B,q,void 0,C);else if(o==="group"){const N=p(B);r==="left"?q.push(N):q.unshift(N);const E=q.map(H=>me(H.name,H.attributes,H.innerBlocks)),L=q.every(H=>H.name==="core/image"),I=s("core/gallery",e),P=me(L&&I?"core/gallery":f(),{layout:{type:"flex",flexWrap:L&&I?null:"nowrap"}},E);y([B,...T],P,void 0,C)}else b(q,t,e,S,C)},[l,e,t,o,y,p,r,s,f,b]),A=O.useCallback((q,S,C)=>{if(o==="replace"){const T=u(q),B=l(e)[t];v.batch(()=>{x(q,!1),y(B,T,void 0,0)})}else h(q,S,e,C)},[o,l,u,h,v,x,y,t,e]),_=Zwt(e,t,i,c,A,M,z,o,p),w=Qwt(e,d,g,s,M),k=Jwt(M);return q=>{const S=av(q.dataTransfer),C=q.dataTransfer.getData("text/html");C?k(C):S.length?w(S):_(q)}}function ekt(e,t,n){const o=n==="top"||n==="bottom",{x:r,y:s}=e,i=o?r:s,c=o?s:r,l=o?t.left:t.top,u=o?t.right:t.bottom,d=t[n];let p;return i>=l&&i<=u?p=i:i{const i=ekt(e,t,s);(o===void 0||i=e.x&&t.top<=e.y&&t.bottom>=e.y}function tkt(e,t){return t.top<=e.y&&t.bottom>=e.y}const LS=30,nkt=120,okt=120;function rkt(e,t,n="vertical",o={}){const r=n==="horizontal"?["left","right"]:["top","bottom"];let s=0,i="before",c=1/0,l=null,u="right";const{dropZoneElement:d,parentBlockOrientation:p,rootBlockIndex:f=0}=o;if(d&&p!=="horizontal"){const y=d.getBoundingClientRect(),[x,v]=mM(t,y,["top","bottom"]);if(y.height>nkt&&xokt&&x{const A=x();let[_,w]=mM(t,A,r);const[k,q]=mM(t,A,["left","right"]),S=qhe(t,A);y&&S?_=0:n==="vertical"&&M!=="horizontal"&&(S&&kl);r=n.every(l=>c?.includes(l))}const i=n.map(c=>e(c)).every(c=>{const[l]=c?.parent||[];return l?l===o:!0});return r&&i}function skt({dropZoneElement:e,rootClientId:t="",parentClientId:n="",isDisabled:o=!1}={}){const r=h0(),[s,i]=O.useState({index:null,operation:"insert"}),{getBlockType:c,getBlockVariations:l,getGroupingBlockName:u}=D($e),{canInsertBlockType:d,getBlockListSettings:p,getBlocks:f,getBlockIndex:b,getDraggedBlockClientIds:h,getBlockNamesByClientId:g,getAllowedBlocks:z,isDragging:y,isGroupable:x,isZoomOutMode:v,getSectionRootClientId:M}=Fe(D(F)),{showInsertionPoint:A,hideInsertionPoint:_,startDragging:w,stopDragging:k}=Fe(ae(F)),q=khe(s.operation==="before"||s.operation==="after"?n:t,s.index,{operation:s.operation,nearestSide:s.nearestSide}),S=t8(O.useCallback((C,T)=>{y()||w();const W=z(t),B=g([t])[0],N=g(h());if(!xT(c,W,N,B))return;const L=M();if(v()&&L!==t)return;const I=f(t);if(I.length===0){r.batch(()=>{i({index:0,operation:"insert"}),A(t,0,{operation:"insert"})});return}const P=I.map(ne=>{const oe=ne.clientId;return{isUnmodifiedDefaultBlock:Yc(ne),getBoundingClientRect:()=>T.getElementById(`block-${oe}`).getBoundingClientRect(),blockIndex:b(oe),blockOrientation:p(oe)?.orientation}}),H=rkt(P,{x:C.clientX,y:C.clientY},p(t)?.orientation,{dropZoneElement:e,parentBlockClientId:n,parentBlockOrientation:n?p(n)?.orientation:void 0,rootBlockIndex:b(t)}),[U,X,Z]=H;if(X==="group"){const ne=I[U],oe=[ne.name,...N].every(be=>be==="core/image"),Y=d("core/gallery",t),ee=x([ne.clientId,h()]),ie=l(u(),"block"),se=ie&&ie.find(({name:be})=>be==="group-row");if(oe&&!Y&&(!ee||!se)||!oe&&(!ee||!se))return}r.batch(()=>{i({index:U,operation:X,nearestSide:Z});const ne=["before","after"].includes(X)?n:t;A(ne,U,{operation:X,nearestSide:Z})})},[y,z,t,g,h,c,M,v,f,p,e,n,b,r,w,A,d,x,l,u]),200);return Rx({dropZoneElement:e,isDisabled:o,onDrop:q,onDragOver(C){S(C,C.currentTarget.ownerDocument)},onDragLeave(){S.cancel(),_()},onDragEnd(){S.cancel(),k(),_()}})}const ikt={};function akt({children:e,clientId:t}){const n=Kwt(t);return a.jsx(V3,{value:n,children:e})}const ckt=O.memo(_P);function She(e){const{clientId:t,allowedBlocks:n,prioritizedInserterBlocks:o,defaultBlock:r,directInsert:s,__experimentalDefaultBlock:i,__experimentalDirectInsert:c,template:l,templateLock:u,wrapperRef:d,templateInsertUpdatesSelection:p,__experimentalCaptureToolbars:f,__experimentalAppenderTagName:b,renderAppender:h,orientation:g,placeholder:z,layout:y,name:x,blockType:v,parentLock:M,defaultLayout:A}=e;Xwt(t,M,n,o,r,s,i,c,u,f,g,y),Gwt(t,l,u,p);const _=Zt(x,"layout")||Zt(x,"__experimentalLayout")||ikt,{allowSizingOnChildren:w=!1}=_,k=y||_,q=O.useMemo(()=>({...A,...k,...w&&{allowSizingOnChildren:!0}}),[A,k,w]),S=a.jsx(ckt,{rootClientId:t,renderAppender:h,__experimentalAppenderTagName:b,layout:q,wrapperRef:d,placeholder:z});return!v?.providesContext||Object.keys(v.providesContext).length===0?S:a.jsx(akt,{clientId:t,children:S})}function lkt(e){return u2e(e),a.jsx(She,{...e})}const ht=O.forwardRef((e,t)=>{const n=it({ref:t},e);return a.jsx("div",{className:"block-editor-inner-blocks",children:a.jsx("div",{...n})})});function it(e={},t={}){const{__unstableDisableLayoutClassNames:n,__unstableDisableDropZone:o,dropZoneElement:r}=t,{clientId:s,layout:i=null,__unstableLayoutClassNames:c=""}=eo(),l=D(A=>{const{getBlockName:_,isBlockSelected:w,hasSelectedInnerBlock:k,__unstableGetEditorMode:q,getTemplateLock:S,getBlockRootClientId:C,getBlockEditingMode:T,getBlockSettings:W,isDragging:B,getSectionRootClientId:N}=Fe(A(F));let E;if(!s)return{isDropZoneDisabled:E};const{hasBlockSupport:L,getBlockType:I}=A($e),P=_(s),H=q()==="navigation",U=T(s),X=C(s),[Z]=W(s,"layout");if(E=U==="disabled",q()==="zoom-out"){const ne=N();E=s!==ne}return{__experimentalCaptureToolbars:L(P,"__experimentalExposeControlsToChildren",!1),hasOverlay:P!=="core/template"&&!w(s)&&!k(s,!0)&&H&&!B(),name:P,blockType:I(P),parentLock:S(X),parentClientId:X,isDropZoneDisabled:E,defaultLayout:Z}},[s]),{__experimentalCaptureToolbars:u,hasOverlay:d,name:p,blockType:f,parentLock:b,parentClientId:h,isDropZoneDisabled:g,defaultLayout:z}=l,y=skt({dropZoneElement:r,rootClientId:s,parentClientId:h}),x=Gt([e.ref,o||g||i?.isManualPlacement&&window.__experimentalEnableGridInteractivity?null:y]),v={__experimentalCaptureToolbars:u,layout:i,name:p,blockType:f,parentLock:b,defaultLayout:z,...t},M=v.value&&v.onChange?lkt:She;return{...e,ref:x,className:$(e.className,"block-editor-block-list__layout",n?"":c,{"has-overlay":d}),children:s?a.jsx(M,{...v,clientId:s}):a.jsx(_P,{...t})}}it.save=CLe;ht.DefaultBlockAppender=Hwt;ht.ButtonBlockAppender=Vwt;ht.Content=()=>it.save().children;const ukt=new Set([xi,Ns,Do,Bs,y1,Si]);function dkt(e){const{keyCode:t,shiftKey:n}=e;return!n&&ukt.has(t)}function Che(){const e=D(n=>n(F).isTyping(),[]),{stopTyping:t}=ae(F);return Et(n=>{if(!e)return;const{ownerDocument:o}=n;let r,s;function i(c){const{clientX:l,clientY:u}=c;r&&s&&(r!==l||s!==u)&&t(),r=l,s=u}return o.addEventListener("mousemove",i),()=>{o.removeEventListener("mousemove",i)}},[e,t])}function Rhe(){const{isTyping:e}=D(s=>{const{isTyping:i}=s(F);return{isTyping:i()}},[]),{startTyping:t,stopTyping:n}=ae(F),o=Che(),r=Et(s=>{const{ownerDocument:i}=s,{defaultView:c}=i,l=c.getSelection();if(e){let h=function(y){const{target:x}=y;b=c.setTimeout(()=>{Wu(x)||n()})},g=function(y){const{keyCode:x}=y;(x===Ea||x===qp)&&n()},z=function(){l.isCollapsed||n()};var d=h,p=g,f=z;let b;return s.addEventListener("focus",h),s.addEventListener("keydown",g),i.addEventListener("selectionchange",z),()=>{c.clearTimeout(b),s.removeEventListener("focus",h),s.removeEventListener("keydown",g),i.removeEventListener("selectionchange",z)}}function u(b){const{type:h,target:g}=b;!Wu(g)||!s.contains(g)||h==="keydown"&&!dkt(b)||t()}return s.addEventListener("keypress",u),s.addEventListener("keydown",u),()=>{s.removeEventListener("keypress",u),s.removeEventListener("keydown",u)}},[e,t,n]);return Gt([o,r])}const Whe=O.createContext(),QA=new WeakMap;function pkt({className:e,...t}){const n=g0("medium"),{isOutlineMode:o,isFocusMode:r,editorMode:s,temporarilyEditingAsBlocks:i}=D(f=>{const{getSettings:b,__unstableGetEditorMode:h,getTemporarilyEditingAsBlocks:g,isTyping:z}=Fe(f(F)),{outlineMode:y,focusMode:x}=b();return{isOutlineMode:y&&!z(),isFocusMode:x,editorMode:h(),temporarilyEditingAsBlocks:g()}},[]),c=h0(),{setBlockVisibility:l}=ae(F),u=Uo(O.useCallback(()=>{const f={};QA.get(c).forEach(([b,h])=>{f[b]=h}),l(f)},[c]),300,{trailing:!0}),d=O.useMemo(()=>{const{IntersectionObserver:f}=window;if(f)return new f(b=>{QA.get(c)||QA.set(c,[]);for(const h of b){const g=h.target.getAttribute("data-block");QA.get(c).push([g,h.isIntersecting])}u()})},[]),p=it({ref:Gt([aP(),$wt(),Rhe()]),className:$("is-root-container",e,{"is-outline-mode":o,"is-focus-mode":r&&n,"is-navigate-mode":s==="navigation"})},t);return a.jsxs(Whe.Provider,{value:d,children:[a.jsx("div",{...p}),!!i&&a.jsx(fkt,{clientId:i})]})}function fkt({clientId:e}){const{stopEditingAsBlocks:t}=Fe(ae(F)),n=D(o=>{const{isBlockSelected:r,hasSelectedInnerBlock:s}=o(F);return r(e)||s(e,!0)},[e]);return O.useEffect(()=>{n||t(e)},[n,e,t]),null}function fk(e){return a.jsx(Qre,{value:Yre,children:a.jsx(pkt,{...e})})}const bkt=[],hkt=new Set;function mkt({placeholder:e,rootClientId:t,renderAppender:n,__experimentalAppenderTagName:o,layout:r=zbe}){const s=n!==!1,i=!!n,{order:c,selectedBlocks:l,visibleBlocks:u,shouldRenderAppender:d}=D(p=>{const{getSettings:f,getBlockOrder:b,getSelectedBlockClientId:h,getSelectedBlockClientIds:g,__unstableGetVisibleBlocks:z,getTemplateLock:y,getBlockEditingMode:x,__unstableGetEditorMode:v}=p(F),M=b(t);if(f().__unstableIsPreviewMode)return{order:M,selectedBlocks:bkt,visibleBlocks:hkt};const A=h();return{order:M,selectedBlocks:g(),visibleBlocks:z(),shouldRenderAppender:s&&v()!=="zoom-out"&&(i?!y(t)&&x(t)!=="disabled":t===A||!t&&!A&&!M.length)}},[t,s,i]);return a.jsxs(IAt,{value:r,children:[c.map(p=>a.jsx(Wx,{value:!u.has(p)&&!l.includes(p),children:a.jsx(dvt,{rootClientId:t,clientId:p})},p)),c.length<1&&e,d&&a.jsx(Twt,{tagName:o,rootClientId:t,CustomAppender:n})]})}function _P(e){return a.jsx(Wx,{value:!1,children:a.jsx(mkt,{...e})})}const vY=_0("InspectorControls"),Mkt=_0("InspectorAdvancedControls"),gkt=_0("InspectorControlsBindings"),zkt=_0("InspectorControlsBackground"),Okt=_0("InspectorControlsBorder"),Akt=_0("InspectorControlsColor"),ykt=_0("InspectorControlsFilter"),vkt=_0("InspectorControlsDimensions"),xkt=_0("InspectorControlsPosition"),_kt=_0("InspectorControlsTypography"),wkt=_0("InspectorControlsListView"),kkt=_0("InspectorControlsStyles"),qkt=_0("InspectorControlsEffects"),bk={default:vY,advanced:Mkt,background:zkt,bindings:gkt,border:Okt,color:Akt,dimensions:vkt,effects:qkt,filter:ykt,list:wkt,position:xkt,settings:vY,styles:kkt,typography:_kt};function The({children:e,group:t="default",__experimentalGroup:n,resetAllFilter:o}){n&&(Re("`__experimentalGroup` property in `InspectorControlsFill`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=n);const r=eo(),s=bk[t]?.Fill;return s?r[n3]?a.jsx(yf,{document,children:a.jsx(s,{children:i=>a.jsx(Ckt,{fillProps:i,children:e,resetAllFilter:o})})}):null:(globalThis.SCRIPT_DEBUG===!0&&Xt(`Unknown InspectorControls group "${t}" provided.`),null)}function Skt({resetAllFilter:e,children:t}){const{registerResetAllFilter:n,deregisterResetAllFilter:o}=O.useContext(cz);return O.useEffect(()=>{if(e&&n&&o)return n(e),()=>{o(e)}},[e,n,o]),t}function Ckt({children:e,resetAllFilter:t,fillProps:n}){const{forwardedContext:o=[]}=n,r=a.jsx(Skt,{resetAllFilter:t,children:e});return o.reduce((s,[i,c])=>a.jsx(i,{...c,children:s}),r)}function Rkt(e){if(!e)return{};if(typeof e=="object")return e;let t;switch(e){case"normal":t=Oe("Regular","font style");break;case"italic":t=Oe("Italic","font style");break;case"oblique":t=Oe("Oblique","font style");break;default:t=e;break}return{name:t,value:e}}function xY(e){if(!e)return{};if(typeof e=="object")return e;let t;switch(e){case"normal":case"400":t=Oe("Regular","font weight");break;case"bold":case"700":t=Oe("Bold","font weight");break;case"100":t=Oe("Thin","font weight");break;case"200":t=Oe("Extra Light","font weight");break;case"300":t=Oe("Light","font weight");break;case"500":t=Oe("Medium","font weight");break;case"600":t=Oe("Semi Bold","font weight");break;case"800":t=Oe("Extra Bold","font weight");break;case"900":t=Oe("Black","font weight");break;case"1000":t=Oe("Extra Black","font weight");break;default:t=e;break}return{name:t,value:e}}const _Y=[{name:Oe("Regular","font style"),value:"normal"},{name:Oe("Italic","font style"),value:"italic"}],wY=[{name:Oe("Thin","font weight"),value:"100"},{name:Oe("Extra Light","font weight"),value:"200"},{name:Oe("Light","font weight"),value:"300"},{name:Oe("Regular","font weight"),value:"400"},{name:Oe("Medium","font weight"),value:"500"},{name:Oe("Semi Bold","font weight"),value:"600"},{name:Oe("Bold","font weight"),value:"700"},{name:Oe("Extra Bold","font weight"),value:"800"},{name:Oe("Black","font weight"),value:"900"},{name:Oe("Extra Black","font weight"),value:"1000"}];function Ehe(e){let t=[],n=[];const o=[],r=!e||e?.length===0;let s=!1;return e?.forEach(i=>{if(typeof i.fontWeight=="string"&&/\s/.test(i.fontWeight.trim())){s=!0;let[u,d]=i.fontWeight.split(" ");u=parseInt(u.slice(0,1)),d==="1000"?d=10:d=parseInt(d.slice(0,1));for(let p=u;p<=d;p++){const f=`${p.toString()}00`;n.some(b=>b.value===f)||n.push(xY(f))}}const c=xY(typeof i.fontWeight=="number"?i.fontWeight.toString():i.fontWeight),l=Rkt(i.fontStyle);l&&Object.keys(l).length&&(t.some(u=>u.value===l.value)||t.push(l)),c&&Object.keys(c).length&&(n.some(u=>u.value===c.value)||s||n.push(c))}),n.some(i=>i.value>="600")||n.push({name:Oe("Bold","font weight"),value:"700"}),t.some(i=>i.value==="italic")||t.push({name:Oe("Italic","font style"),value:"italic"}),r&&(t=_Y,n=wY),t=t.length===0?_Y:t,n=n.length===0?wY:n,t.forEach(({name:i,value:c})=>{n.forEach(({name:l,value:u})=>{const d=c==="normal"?l:le(m("%1$s %2$s"),l,i);o.push({key:`${c}-${u}`,name:d,style:{fontStyle:c,fontWeight:u}})})}),{fontStyles:t,fontWeights:n,combinedStyleAndWeightOptions:o,isSystemFont:r,isVariableFont:s}}function hk(e,t){const{size:n}=e;if(!n||n==="0"||e?.fluid===!1||!_T(t?.typography)&&!_T(e))return n;let o=Wkt(t);o=typeof o?.fluid=="object"?o?.fluid:{};const r=Q3t({minimumFontSize:e?.fluid?.min,maximumFontSize:e?.fluid?.max,fontSize:n,minimumFontSizeLimit:o?.minFontSize,maximumViewportWidth:o?.maxViewportWidth,minimumViewportWidth:o?.minViewportWidth});return r||n}function _T(e){const t=e?.fluid;return t===!0||t&&typeof t=="object"&&Object.keys(t).length>0}function Wkt(e){const t=e?.typography,n=e?.layout,o=hc(n?.wideSize)?n?.wideSize:null;return _T(t)&&o?{fluid:{maxViewportWidth:o,...t.fluid}}:{fluid:t?.fluid}}function Tkt(e,t){var n;const o=e?.typography?.fontFamilies,r=["default","theme","custom"].flatMap(i=>{var c;return(c=o?.[i])!==null&&c!==void 0?c:[]}),s=(n=r.find(i=>i.fontFamily===t)?.fontFace)!==null&&n!==void 0?n:[];return{fontFamilies:r,fontFamilyFaces:s}}function kY(e,t){return t=typeof t=="number"?t.toString():t,!t||typeof t!="string"?"":!e||e.length===0?t:e?.reduce((o,{value:r})=>{const s=Math.abs(parseInt(r)-parseInt(t)),i=Math.abs(parseInt(o)-parseInt(t));return so.value===t)?t:t==="oblique"&&!e.find(o=>o.value==="oblique")?"italic":""}function Bkt(e,t,n){let o=t,r=n;const{fontStyles:s,fontWeights:i,combinedStyleAndWeightOptions:c}=Ehe(e),l=s?.some(({value:d})=>d===t),u=i?.some(({value:d})=>d?.toString()===n?.toString());return l||(o=t?Ekt(s,t):c?.find(d=>d.style.fontWeight===kY(i,n))?.style?.fontStyle),u||(r=n?kY(i,n):c?.find(d=>d.style.fontStyle===(o||t))?.style?.fontWeight),{nearestFontStyle:o,nearestFontWeight:r}}const Oc="body",q5=":root",Kh=[{path:["color","palette"],valueKey:"color",cssVarInfix:"color",classes:[{classSuffix:"color",propertyName:"color"},{classSuffix:"background-color",propertyName:"background-color"},{classSuffix:"border-color",propertyName:"border-color"}]},{path:["color","gradients"],valueKey:"gradient",cssVarInfix:"gradient",classes:[{classSuffix:"gradient-background",propertyName:"background"}]},{path:["color","duotone"],valueKey:"colors",cssVarInfix:"duotone",valueFunc:({slug:e})=>`url( '#wp-duotone-${e}' )`,classes:[]},{path:["shadow","presets"],valueKey:"shadow",cssVarInfix:"shadow",classes:[]},{path:["typography","fontSizes"],valueFunc:(e,t)=>hk(e,t),valueKey:"size",cssVarInfix:"font-size",classes:[{classSuffix:"font-size",propertyName:"font-size"}]},{path:["typography","fontFamilies"],valueKey:"fontFamily",cssVarInfix:"font-family",classes:[{classSuffix:"font-family",propertyName:"font-family"}]},{path:["spacing","spacingSizes"],valueKey:"size",cssVarInfix:"spacing",valueFunc:({size:e})=>e,classes:[]}],Nkt={"color.background":"color","color.text":"color","filter.duotone":"duotone","elements.link.color.text":"color","elements.link.:hover.color.text":"color","elements.link.typography.fontFamily":"font-family","elements.link.typography.fontSize":"font-size","elements.button.color.text":"color","elements.button.color.background":"color","elements.caption.color.text":"color","elements.button.typography.fontFamily":"font-family","elements.button.typography.fontSize":"font-size","elements.heading.color":"color","elements.heading.color.background":"color","elements.heading.typography.fontFamily":"font-family","elements.heading.gradient":"gradient","elements.heading.color.gradient":"gradient","elements.h1.color":"color","elements.h1.color.background":"color","elements.h1.typography.fontFamily":"font-family","elements.h1.color.gradient":"gradient","elements.h2.color":"color","elements.h2.color.background":"color","elements.h2.typography.fontFamily":"font-family","elements.h2.color.gradient":"gradient","elements.h3.color":"color","elements.h3.color.background":"color","elements.h3.typography.fontFamily":"font-family","elements.h3.color.gradient":"gradient","elements.h4.color":"color","elements.h4.color.background":"color","elements.h4.typography.fontFamily":"font-family","elements.h4.color.gradient":"gradient","elements.h5.color":"color","elements.h5.color.background":"color","elements.h5.typography.fontFamily":"font-family","elements.h5.color.gradient":"gradient","elements.h6.color":"color","elements.h6.color.background":"color","elements.h6.typography.fontFamily":"font-family","elements.h6.color.gradient":"gradient","color.gradient":"gradient",shadow:"shadow","typography.fontSize":"font-size","typography.fontFamily":"font-family"};function Ad(){return g0("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}}}function wP(e,t,n,o,r){const s=[R0(e,["blocks",t,...n]),R0(e,n)];for(const i of s)if(i){const c=["custom","theme","default"];for(const l of c){const u=i[l];if(u){const d=u.find(p=>p[o]===r);if(d)return o==="slug"||wP(e,t,n,"slug",d.slug)[o]===d[o]?d:void 0}}}}function Lkt(e,t,n,o){if(!o)return o;const r=Nkt[n],s=Kh.find(u=>u.cssVarInfix===r);if(!s)return o;const{valueKey:i,path:c}=s,l=wP(e,t,c,i,o);return l?`var:preset|${r}|${l.slug}`:o}function jkt(e,t,n,[o,r]){const s=Kh.find(c=>c.cssVarInfix===o);if(!s)return n;const i=wP(e.settings,t,s.path,"slug",r);if(i){const{valueKey:c}=s,l=i[c];return ki(e,t,l)}return n}function Pkt(e,t,n,o){var r;const s=(r=R0(e.settings,["blocks",t,"custom",...o]))!==null&&r!==void 0?r:R0(e.settings,["custom",...o]);return s?ki(e,t,s):n}function ki(e,t,n){if(!n||typeof n!="string")if(typeof n?.ref=="string"){if(n=R0(e,n.ref),!n||n?.ref)return n}else return n;const o="var:",r="var(--wp--",s=")";let i;if(n.startsWith(o))i=n.slice(o.length).split("|");else if(n.startsWith(r)&&n.endsWith(s))i=n.slice(r.length,-s.length).split("--");else return n;const[c,...l]=i;return c==="preset"?jkt(e,t,n,l):c==="custom"?Pkt(e,t,n,l):n}function Yr(e,t){if(!e||!t)return t;const n=e.split(","),o=t.split(","),r=[];return n.forEach(s=>{o.forEach(i=>{r.push(`${s.trim()} ${i.trim()}`)})}),r.join(", ")}function Ikt(e,t){if(!e||!t)return;const n={};return Object.entries(t).forEach(([o,r])=>{typeof r=="string"&&(n[o]=Yr(e,r)),typeof r=="object"&&(n[o]={},Object.entries(r).forEach(([s,i])=>{n[o][s]=Yr(e,i)}))}),n}function Dkt(e,t){return e.includes(",")?e.split(",").map(r=>r+t).join(","):e+t}function Fkt(e,t){return typeof e!="object"||typeof t!="object"?e===t:J1(e?.styles,t?.styles)&&J1(e?.settings,t?.settings)}function $kt(e,t){const n=`.is-style-${e}`;if(!t)return n;const o=/((?::\([^)]+\))?\s*)([^\s:]+)/,r=(i,c,l)=>c+l+n;return t.split(",").map(i=>i.replace(o,r)).join(",")}function Vkt(e,t){if(!e||!t||!Array.isArray(t))return e;const n=t.find(o=>o?.name===e);return n?.href?n?.href:e}function Hkt(e,t){if(!e||!t)return e;if(typeof e!="string"&&e?.ref){const n=dz(R0(t,e.ref));return n?.ref?void 0:n===void 0?e:n}return e}function wT(e,t){if(!e||!t)return e;const n=Hkt(e,t);return n?.url&&(n.url=Vkt(n.url,t?._links?.["wp:theme-file"])),n}function Ukt({children:e,group:t,label:n}){const{updateBlockAttributes:o}=ae(F),{getBlockAttributes:r,getMultiSelectedBlockClientIds:s,getSelectedBlockClientId:i,hasMultiSelection:c}=D(F),l=Ad(),u=i(),d=O.useCallback((p=[])=>{const f={},b=c()?s():[u];b.forEach(h=>{const{style:g}=r(h);let z={style:g};p.forEach(y=>{z={...z,...y(z)}}),z={...z,style:ni(z.style)},f[h]=z}),o(b,f,!0)},[r,s,c,u,o]);return a.jsx(Tr,{className:`${t}-block-support-panel`,label:n,resetAll:d,panelId:u,hasInnerWrapper:!0,shouldRenderPlaceholderItems:!0,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",dropdownMenuProps:l,children:e},u)}function Xkt({Slot:e,fillProps:t,...n}){const o=O.useContext(cz),r=O.useMemo(()=>{var s;return{...t??{},forwardedContext:[...(s=t?.forwardedContext)!==null&&s!==void 0?s:[],[cz.Provider,{value:o}]]}},[o,t]);return a.jsx(e,{...n,fillProps:r,bubblesVirtually:!0})}function Bhe({__experimentalGroup:e,group:t="default",label:n,fillProps:o,...r}){e&&(Re("`__experimentalGroup` property in `InspectorControlsSlot`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=e);const s=bk[t]?.Slot,i=j1(s?.__unstableName),c=O.useContext(B2),l=O.useMemo(()=>{var u;return{...o??{},forwardedContext:[...(u=o?.forwardedContext)!==null&&u!==void 0?u:[],[B2.Provider,{value:c}]]}},[c,o]);return s?i?.length?n?a.jsx(Ukt,{group:t,label:n,children:a.jsx(Xkt,{...r,fillProps:l,Slot:s})}):a.jsx(s,{...r,fillProps:l,bubblesVirtually:!0}):null:(globalThis.SCRIPT_DEBUG===!0&&Xt(`Unknown InspectorControls group "${t}" provided.`),null)}const Te=The;Te.Slot=Bhe;const mk=e=>a.jsx(The,{...e,group:"advanced"});mk.Slot=e=>a.jsx(Bhe,{...e,group:"advanced"});mk.slotName="InspectorAdvancedControls";function Gkt(e){const t=e?.style?.position?.type;return t==="sticky"?m("Sticky"):t==="fixed"?m("Fixed"):null}function Ms(e){return D(t=>{if(!e)return null;const{getBlockName:n,getBlockAttributes:o}=t(F),{getBlockType:r,getActiveBlockVariation:s}=t($e),i=n(e),c=r(i);if(!c)return null;const l=o(e),u=s(i,l),d=dd(c)||mh(c),f=(d?pN(c,l):void 0)||c.title,b=Gkt(l),h={isSynced:d,title:f,icon:c.icon,description:c.description,anchor:l?.anchor,positionLabel:b,positionType:l?.style?.position?.type,name:l?.metadata?.name};return u?{isSynced:d,title:u.title||c.title,icon:u.icon||c.icon,description:u.description||c.description,anchor:l?.anchor,positionLabel:b,positionType:l?.style?.position?.type,name:l?.metadata?.name}:h},[e])}const cO="position",jS={key:"default",value:"",name:m("Default")},PS={key:"sticky",value:"sticky",name:Oe("Sticky","Name for the value of the CSS position property"),hint:m("The block will stick to the top of the window instead of scrolling.")},qY={key:"fixed",value:"fixed",name:Oe("Fixed","Name for the value of the CSS position property"),hint:m("The block will not move when the page is scrolled.")},Kkt=["top","right","bottom","left"],Ykt=["sticky","fixed"];function Zkt({selector:e,style:t}){let n="";const{type:o}=t?.position||{};return Ykt.includes(o)&&(n+=`${e} {`,n+=`position: ${o};`,Kkt.forEach(r=>{t?.position?.[r]!==void 0&&(n+=`${r}: ${t.position[r]};`)}),(o==="sticky"||o==="fixed")&&(n+="z-index: 10"),n+="}"),n}function Qkt(e){const t=Zt(e,cO);return!!(t===!0||t?.sticky)}function Jkt(e){const t=Zt(e,cO);return!!(t===!0||t?.fixed)}function e6t(e){return!!Zt(e,cO)}function t6t(e){const t=e?.style?.position?.type;return t==="sticky"||t==="fixed"}function Nhe({name:e}={}){const[t,n]=O0("position.fixed","position.sticky"),o=!t&&!n;return!e6t(e)||o}function n6t({style:e={},clientId:t,name:n,setAttributes:o}){const r=Jkt(n),s=Qkt(n),i=e?.position?.type,{firstParentClientId:c}=D(b=>{const{getBlockParents:h}=b(F),g=h(t);return{firstParentClientId:g[g.length-1]}},[t]),l=Ms(c),u=s&&i===PS.value&&l?le(m("The block will stick to the scrollable area of the parent %s block."),l.title):null,d=O.useMemo(()=>{const b=[jS];return(s||i===PS.value)&&b.push(PS),(r||i===qY.value)&&b.push(qY),b},[r,s,i]),p=b=>{const g={...e,position:{...e?.position,type:b,top:b==="sticky"||b==="fixed"?"0px":void 0}};o({style:ni(g)})},f=i&&d.find(b=>b.value===i)||jS;return w1.select({web:d.length>1?a.jsx(Te,{group:"position",children:a.jsx(z0,{__nextHasNoMarginBottom:!0,help:u,children:a.jsx(Lh,{__next40pxDefaultSize:!0,label:m("Position"),hideLabelFromVision:!0,describedBy:le(m("Currently selected position: %s"),f.name),options:d,value:f,onChange:({selectedItem:b})=>{p(b.value)},size:"__unstable-large"})})}):null,native:null})}const Lhe={edit:function(t){return Nhe(t)?null:a.jsx(n6t,{...t})},useBlockProps:jhe,attributeKeys:["style"],hasSupport(e){return st(e,cO)}};function jhe({name:e,style:t}){const n=st(e,cO),o=Nhe({name:e}),r=n&&!o,s=He(jhe),i=`.wp-container-${s}.wp-container-${s}`;let c;r&&(c=Zkt({selector:i,style:t})||"");const l=$({[`wp-container-${s}`]:r&&!!c,[`is-position-${t?.position?.type}`]:r&&!!c&&!!t?.position?.type});return dO({css:c}),{className:l}}const Phe={placement:"top-start"},SY={...Phe,flip:!1,shift:!0},o6t={...Phe,flip:!0,shift:!1};function CY(e,t,n,o,r){if(!e||!t)return SY;const s=n?.scrollTop||0,i=h4(t),c=e.getBoundingClientRect(),l=s+c.top,u=e.ownerDocument.documentElement.clientHeight,d=l+o,p=i.top>d,f=i.height>u-o;return!r&&(p||f)?SY:o6t}function Mk({contentElement:e,clientId:t}){const n=ls(t),[o,r]=O.useState(0),{blockIndex:s,isSticky:i}=D(f=>{const{getBlockIndex:b,getBlockAttributes:h}=f(F);return{blockIndex:b(t),isSticky:t6t(h(t))}},[t]),c=O.useMemo(()=>{if(e)return Sr(e)},[e]),[l,u]=O.useState(()=>CY(e,n,c,o,i)),d=Et(f=>{r(f.offsetHeight)},[]),p=O.useCallback(()=>u(CY(e,n,c,o,i)),[e,n,c,o]);return O.useLayoutEffect(p,[s,p]),O.useLayoutEffect(()=>{if(!e||!n)return;const f=e?.ownerDocument?.defaultView;f?.addEventHandler?.("resize",p);let b;const h=n?.ownerDocument?.defaultView;return h.ResizeObserver&&(b=new h.ResizeObserver(p),b.observe(n)),()=>{f?.removeEventHandler?.("resize",p),b&&b.disconnect()}},[p,e,n]),{...l,ref:d}}function gk(e){return D(n=>{const{getBlockRootClientId:o,getBlockParents:r,__experimentalGetBlockListSettingsForBlocks:s,isBlockInsertionPointVisible:i,getBlockInsertionPoint:c,getBlockOrder:l,hasMultiSelection:u,getLastMultiSelectedBlockClientId:d}=n(F),p=r(e),f=s(p),b=p.find(g=>f[g]?.__experimentalCaptureToolbars);let h=!1;if(i()){const g=c();h=l(g.rootClientId)[g.index]===e}return{capturingClientId:b,isInsertionPointVisible:h,lastClientId:u()?d():null,rootClientId:o(e)}},[e])}function r6t({clientId:e,__unstableContentRef:t}){const{capturingClientId:n,isInsertionPointVisible:o,lastClientId:r,rootClientId:s}=gk(e),i=Mk({contentElement:t?.current,clientId:e});return a.jsx(Gh,{clientId:n||e,bottomClientId:r,className:$("block-editor-block-list__block-side-inserter-popover",{"is-insertion-point-visible":o}),__unstableContentRef:t,...i,children:a.jsx("div",{className:"block-editor-block-list__empty-block-inserter",children:a.jsx(Xh,{position:"bottom right",rootClientId:s,clientId:e,__experimentalIsQuick:!0})})})}const JA=50,Ihe=25,s6t=1e3,RY=s6t*(Ihe/1e3);function i6t(){const e=O.useRef(null),t=O.useRef(null),n=O.useRef(null),o=O.useRef(null);O.useEffect(()=>()=>{o.current&&(clearInterval(o.current),o.current=null)},[]);const r=O.useCallback(c=>{e.current=c.clientY,n.current=Sr(c.target),o.current=setInterval(()=>{if(n.current&&t.current){const l=n.current.scrollTop+t.current;n.current.scroll({top:l})}},Ihe)},[]),s=O.useCallback(c=>{if(!n.current)return;const l=n.current.offsetHeight,u=e.current-n.current.offsetTop,d=c.clientY-n.current.offsetTop;if(c.clientY>u){const p=Math.max(l-u-JA,0),f=Math.max(d-u-JA,0),b=p===0||f===0?0:f/p;t.current=RY*b}else if(c.clientY{e.current=null,n.current=null,o.current&&(clearInterval(o.current),o.current=null)}]}const zk=({appendToOwnerDocument:e,children:t,clientIds:n,cloneClassname:o,elementId:r,onDragStart:s,onDragEnd:i,fadeWhenDisabled:c=!1,dragComponent:l})=>{const{srcRootClientId:u,isDraggable:d,icon:p,visibleInserter:f,getBlockType:b}=D(S=>{const{canMoveBlocks:C,getBlockRootClientId:T,getBlockName:W,getBlockAttributes:B,isBlockInsertionPointVisible:N}=S(F),{getBlockType:E,getActiveBlockVariation:L}=S($e),I=T(n[0]),P=W(n[0]),H=L(P,B(n[0]));return{srcRootClientId:I,isDraggable:C(n),icon:H?.icon||E(P)?.icon,visibleInserter:N(),getBlockType:E}},[n]),h=O.useRef(!1),[g,z,y]=i6t(),{getAllowedBlocks:x,getBlockNamesByClientId:v,getBlockRootClientId:M}=D(F),{startDraggingBlocks:A,stopDraggingBlocks:_}=ae(F);O.useEffect(()=>()=>{h.current&&_()},[]);const k=ls(n[0])?.closest("body");if(O.useEffect(()=>{if(!k||!c)return;const C=zB(T=>{if(!T.target.closest("[data-block]"))return;const W=v(n),B=T.target.closest("[data-block]").getAttribute("data-block"),N=x(B),E=v([B])[0];let L;if(N?.length===0){const I=M(B),P=v([I])[0],H=x(I);L=xT(b,H,W,P)}else L=xT(b,N,W,E);!L&&!f?window?.document?.body?.classList?.add("block-draggable-invalid-drag-token"):window?.document?.body?.classList?.remove("block-draggable-invalid-drag-token")},200);return k.addEventListener("dragover",C),()=>{k.removeEventListener("dragover",C)}},[n,k,c,x,v,M,b,f]),!d)return t({draggable:!1});const q={type:"block",srcClientIds:n,srcRootClientId:u};return a.jsx(Vpe,{appendToOwnerDocument:e,cloneClassname:o,__experimentalTransferDataType:"wp-blocks",transferData:q,onDragStart:S=>{window.requestAnimationFrame(()=>{A(n),h.current=!0,g(S),s&&s()})},onDragOver:z,onDragEnd:()=>{_(),h.current=!1,y(),i&&i()},__experimentalDragComponent:l!==void 0?l:a.jsx(che,{count:n.length,icon:p,fadeWhenDisabled:!0}),elementId:r,children:({onDraggableStart:S,onDraggableEnd:C})=>t({draggable:!0,onDragStart:S,onDragEnd:C})})},cu=(e,t)=>e==="up"?t==="horizontal"?ft()?"right":"left":"up":e==="down"?t==="horizontal"?ft()?"left":"right":"down":null;function a6t(e,t,n,o,r,s,i){const c=n+1;if(e>1)return c6t(e,n,o,r,s,i);if(o&&r)return le(m("Block %s is the only block, and cannot be moved"),t);if(s>0&&!r){const l=cu("down",i);if(l==="down")return le(m("Move %1$s block from position %2$d down to position %3$d"),t,c,c+1);if(l==="left")return le(m("Move %1$s block from position %2$d left to position %3$d"),t,c,c+1);if(l==="right")return le(m("Move %1$s block from position %2$d right to position %3$d"),t,c,c+1)}if(s>0&&r){const l=cu("down",i);if(l==="down")return le(m("Block %1$s is at the end of the content and can’t be moved down"),t);if(l==="left")return le(m("Block %1$s is at the end of the content and can’t be moved left"),t);if(l==="right")return le(m("Block %1$s is at the end of the content and can’t be moved right"),t)}if(s<0&&!o){const l=cu("up",i);if(l==="up")return le(m("Move %1$s block from position %2$d up to position %3$d"),t,c,c-1);if(l==="left")return le(m("Move %1$s block from position %2$d left to position %3$d"),t,c,c-1);if(l==="right")return le(m("Move %1$s block from position %2$d right to position %3$d"),t,c,c-1)}if(s<0&&o){const l=cu("up",i);if(l==="up")return le(m("Block %1$s is at the beginning of the content and can’t be moved up"),t);if(l==="left")return le(m("Block %1$s is at the beginning of the content and can’t be moved left"),t);if(l==="right")return le(m("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}function c6t(e,t,n,o,r,s){const i=t+1;if(n&&o)return m("All blocks are selected, and cannot be moved");if(r>0&&!o){const c=cu("down",s);if(c==="down")return le(m("Move %1$d blocks from position %2$d down by one place"),e,i);if(c==="left")return le(m("Move %1$d blocks from position %2$d left by one place"),e,i);if(c==="right")return le(m("Move %1$d blocks from position %2$d right by one place"),e,i)}if(r>0&&o){const c=cu("down",s);if(c==="down")return m("Blocks cannot be moved down as they are already at the bottom");if(c==="left")return m("Blocks cannot be moved left as they are already are at the leftmost position");if(c==="right")return m("Blocks cannot be moved right as they are already are at the rightmost position")}if(r<0&&!n){const c=cu("up",s);if(c==="up")return le(m("Move %1$d blocks from position %2$d up by one place"),e,i);if(c==="left")return le(m("Move %1$d blocks from position %2$d left by one place"),e,i);if(c==="right")return le(m("Move %1$d blocks from position %2$d right by one place"),e,i)}if(r<0&&n){const c=cu("up",s);if(c==="up")return m("Blocks cannot be moved up as they are already at the top");if(c==="left")return m("Blocks cannot be moved left as they are already are at the leftmost position");if(c==="right")return m("Blocks cannot be moved right as they are already are at the rightmost position")}}const l6t=(e,t)=>e==="up"?t==="horizontal"?ft()?Ei:Fa:G_:e==="down"?t==="horizontal"?ft()?Fa:Ei:md:null,u6t=(e,t)=>e==="up"?t==="horizontal"?ft()?m("Move right"):m("Move left"):m("Move up"):e==="down"?t==="horizontal"?ft()?m("Move left"):m("Move right"):m("Move down"):null,kP=O.forwardRef(({clientIds:e,direction:t,orientation:n,...o},r)=>{const s=He(kP),i=Array.isArray(e)?e:[e],c=i.length,{disabled:l}=o,{blockType:u,isDisabled:d,rootClientId:p,isFirst:f,isLast:b,firstIndex:h,orientation:g="vertical"}=D(A=>{const{getBlockIndex:_,getBlockRootClientId:w,getBlockOrder:k,getBlock:q,getBlockListSettings:S}=A(F),C=i[0],T=w(C),W=_(C),B=_(i[i.length-1]),N=k(T),E=q(C),L=W===0,I=B===N.length-1,{orientation:P}=S(T)||{};return{blockType:E?Dt(E.name):null,isDisabled:l||(t==="up"?L:I),rootClientId:T,firstIndex:W,isFirst:L,isLast:I,orientation:n||P}},[e,t]),{moveBlocksDown:z,moveBlocksUp:y}=ae(F),x=t==="up"?y:z,v=A=>{x(e,p),o.onClick&&o.onClick(A)},M=`block-editor-block-mover-button__description-${s}`;return a.jsxs(a.Fragment,{children:[a.jsx(fe,{__next40pxDefaultSize:!1,ref:r,className:$("block-editor-block-mover-button",`is-${t}-button`),icon:l6t(t,g),label:u6t(t,g),"aria-describedby":M,...o,onClick:d?null:v,disabled:d,accessibleWhenDisabled:!0}),a.jsx(Kt,{id:M,children:a6t(c,u&&u.title,h,f,b,t==="up"?-1:1,g)})]})}),Dhe=O.forwardRef((e,t)=>a.jsx(kP,{direction:"up",ref:t,...e})),Fhe=O.forwardRef((e,t)=>a.jsx(kP,{direction:"down",ref:t,...e}));function $he({clientIds:e,hideDragHandle:t,isBlockMoverUpButtonDisabled:n,isBlockMoverDownButtonDisabled:o}){const{canMove:r,rootClientId:s,isFirst:i,isLast:c,orientation:l,isManualGrid:u}=D(d=>{var p;const{getBlockIndex:f,getBlockListSettings:b,canMoveBlocks:h,getBlockOrder:g,getBlockRootClientId:z,getBlockAttributes:y}=d(F),x=Array.isArray(e)?e:[e],v=x[0],M=z(v),A=f(v),_=f(x[x.length-1]),w=g(M),{layout:k={}}=(p=y(M))!==null&&p!==void 0?p:{};return{canMove:h(e),rootClientId:M,isFirst:A===0,isLast:_===w.length-1,orientation:b(M)?.orientation,isManualGrid:k.type==="grid"&&k.isManualPlacement&&window.__experimentalEnableGridInteractivity}},[e]);return!r||i&&c&&!s||t&&u?null:a.jsxs(c0,{className:$("block-editor-block-mover",{"is-horizontal":l==="horizontal"}),children:[!t&&a.jsx(zk,{clientIds:e,fadeWhenDisabled:!0,children:d=>a.jsx(fe,{__next40pxDefaultSize:!1,icon:K_,className:"block-editor-block-mover__drag-handle",label:m("Drag"),tabIndex:"-1",...d})}),!u&&a.jsxs("div",{className:"block-editor-block-mover__move-button-container",children:[a.jsx(Ko,{children:d=>a.jsx(Dhe,{disabled:n,clientIds:e,...d})}),a.jsx(Ko,{children:d=>a.jsx(Fhe,{disabled:o,clientIds:e,...d})})]})]})}const{clearTimeout:WY,setTimeout:d6t}=window,Vhe=200;function p6t({ref:e,isFocused:t,highlightParent:n,debounceTimeout:o=Vhe}){const{getSelectedBlockClientId:r,getBlockRootClientId:s}=D(F),{toggleBlockHighlight:i}=ae(F),c=O.useRef(),l=D(g=>g(F).getSettings().isDistractionFree,[]),u=g=>{if(g&&l)return;const z=r(),y=n?s(z):z;i(y,g)},d=()=>e?.current&&e.current.matches(":hover"),p=()=>{const g=d();return!t&&!g},f=()=>{const g=c.current;g&&WY&&WY(g)},b=g=>{g&&g.stopPropagation(),f(),u(!0)},h=g=>{g&&g.stopPropagation(),f(),c.current=d6t(()=>{p()&&u(!1)},o)};return O.useEffect(()=>()=>{u(!1),f()},[]),{debouncedShowGestures:b,debouncedHideGestures:h}}function qP({ref:e,highlightParent:t=!1,debounceTimeout:n=Vhe}){const[o,r]=O.useState(!1),{debouncedShowGestures:s,debouncedHideGestures:i}=p6t({ref:e,debounceTimeout:n,isFocused:o,highlightParent:t}),c=O.useRef(!1),l=()=>e?.current&&e.current.contains(e.current.ownerDocument.activeElement);return O.useEffect(()=>{const u=e.current,d=()=>{l()&&(r(!0),s())},p=()=>{l()||(r(!1),i())};return u&&!c.current&&(u.addEventListener("focus",d,!0),u.addEventListener("blur",p,!0),c.current=!0),()=>{u&&(u.removeEventListener("focus",d),u.removeEventListener("blur",p))}},[e,c,r,s,i]),{onMouseMove:s,onMouseLeave:i}}function f6t(){const{selectBlock:e}=ae(F),{firstParentClientId:t,isVisible:n}=D(i=>{const{getBlockName:c,getBlockParents:l,getSelectedBlockClientId:u,getBlockEditingMode:d}=i(F),{hasBlockSupport:p}=i($e),f=u(),b=l(f),h=b[b.length-1],g=c(h),z=Dt(g);return{firstParentClientId:h,isVisible:h&&d(h)==="default"&&p(z,"__experimentalParentSelector",!0)}},[]),o=Ms(t),r=O.useRef(),s=qP({ref:r,highlightParent:!0});return n?a.jsx("div",{className:"block-editor-block-parent-selector",ref:r,...s,children:a.jsx(bt,{className:"block-editor-block-parent-selector__button",onClick:()=>e(t),label:le(m("Select parent block: %s"),o?.title),showTooltip:!0,icon:a.jsx(b0,{icon:o?.icon})})},t):null}function Hhe({blocks:e}){return g0("medium","<")?null:a.jsx("div",{className:"block-editor-block-switcher__popover-preview-container",children:a.jsx(Mn,{className:"block-editor-block-switcher__popover-preview",placement:"right-start",focusOnMount:!1,offset:16,children:a.jsxs("div",{className:"block-editor-block-switcher__preview",children:[a.jsx("div",{className:"block-editor-block-switcher__preview-title",children:m("Preview")}),a.jsx(lk,{viewportWidth:500,blocks:e})]})})})}const b6t={};function h6t({clientIds:e,blocks:t}){const{activeBlockVariation:n,blockVariationTransformations:o}=D(s=>{const{getBlockAttributes:i,canRemoveBlocks:c}=s(F),{getActiveBlockVariation:l,getBlockVariations:u}=s($e),d=c(e);if(t.length!==1||!d)return b6t;const[p]=t;return{blockVariationTransformations:u(p.name,"transform"),activeBlockVariation:l(p.name,i(p.clientId))}},[e,t]);return O.useMemo(()=>o?.filter(({name:s})=>s!==n?.name),[o,n])}const m6t=({transformations:e,onSelect:t,blocks:n})=>{const[o,r]=O.useState();return a.jsxs(a.Fragment,{children:[o&&a.jsx(Hhe,{blocks:pn(n[0],e.find(({name:s})=>s===o).attributes)}),e?.map(s=>a.jsx(M6t,{item:s,onSelect:t,setHoveredTransformItemName:r},s.name))]})};function M6t({item:e,onSelect:t,setHoveredTransformItemName:n}){const{name:o,icon:r,title:s}=e;return a.jsxs(tt,{className:AN(o),onClick:i=>{i.preventDefault(),t(o)},onMouseLeave:()=>n(null),onMouseEnter:()=>n(o),children:[a.jsx(b0,{icon:r,showColors:!0}),s]})}function g6t(e){const t={"core/paragraph":1,"core/heading":2,"core/list":3,"core/quote":4},n=O.useMemo(()=>{const o=Object.keys(t),r=e.reduce((s,i)=>{const{name:c}=i;return o.includes(c)?s.priorityTextTransformations.push(i):s.restTransformations.push(i),s},{priorityTextTransformations:[],restTransformations:[]});if(r.priorityTextTransformations.length===1&&r.priorityTextTransformations[0].name==="core/quote"){const s=r.priorityTextTransformations.pop();r.restTransformations.push(s)}return r},[e]);return n.priorityTextTransformations.sort(({name:o},{name:r})=>t[o]{const[i,c]=O.useState(),{priorityTextTransformations:l,restTransformations:u}=g6t(t),d=l.length&&u.length,p=!!u.length&&a.jsx(O6t,{restTransformations:u,onSelect:o,setHoveredTransformItemName:c});return a.jsxs(a.Fragment,{children:[a.jsxs(Yt,{label:m("Transform to"),className:e,children:[i&&a.jsx(Hhe,{blocks:l1(s,i)}),!!n?.length&&a.jsx(m6t,{transformations:n,blocks:s,onSelect:r}),l.map(f=>a.jsx(Uhe,{item:f,onSelect:o,setHoveredTransformItemName:c},f.name)),!d&&p]}),!!d&&a.jsx(Yt,{className:e,children:p})]})};function O6t({restTransformations:e,onSelect:t,setHoveredTransformItemName:n}){return e.map(o=>a.jsx(Uhe,{item:o,onSelect:t,setHoveredTransformItemName:n},o.name))}function Uhe({item:e,onSelect:t,setHoveredTransformItemName:n}){const{name:o,icon:r,title:s,isDisabled:i}=e;return a.jsxs(tt,{className:AN(o),onClick:c=>{c.preventDefault(),t(o)},disabled:i,onMouseLeave:()=>n(null),onMouseEnter:()=>n(o),children:[a.jsx(b0,{icon:r,showColors:!0}),s]})}class Ok{constructor(t=""){this._currentValue="",this._valueAsArray=[],this.value=t}entries(...t){return this._valueAsArray.entries(...t)}forEach(...t){return this._valueAsArray.forEach(...t)}keys(...t){return this._valueAsArray.keys(...t)}values(...t){return this._valueAsArray.values(...t)}get value(){return this._currentValue}set value(t){t=String(t),this._valueAsArray=[...new Set(t.split(/\s+/g).filter(Boolean))],this._currentValue=this._valueAsArray.join(" ")}get length(){return this._valueAsArray.length}toString(){return this.value}*[Symbol.iterator](){return yield*this._valueAsArray}item(t){return this._valueAsArray[t]}contains(t){return this._valueAsArray.indexOf(t)!==-1}add(...t){this.value+=" "+t.join(" ")}remove(...t){this.value=this._valueAsArray.filter(n=>!t.includes(n)).join(" ")}toggle(t,n){return n===void 0&&(n=!this.contains(t)),n?this.add(t):this.remove(t),n}replace(t,n){return this.contains(t)?(this.remove(t),this.add(n),!0):!1}supports(t){return!0}}function A6t(e,t){for(const n of new Ok(t).values()){if(n.indexOf("is-style-")===-1)continue;const o=n.substring(9),r=e?.find(({name:s})=>s===o);if(r)return r}return Ghe(e)}function Xhe(e,t,n){const o=new Ok(e);return t&&o.remove("is-style-"+t.name),o.add("is-style-"+n.name),o.value}function y6t(e){return!e||e.length===0?[]:Ghe(e)?e:[{name:"default",label:Oe("Default","block style"),isDefault:!0},...e]}function Ghe(e){return e?.find(t=>t.isDefault)}function v6t(e,t){return O.useMemo(()=>{const n=t?.example,o=t?.name;if(n&&o)return zN(o,{attributes:n.attributes,innerBlocks:n.innerBlocks});if(e)return pn(e)},[t?.example?e?.name:e,t])}function Khe({clientId:e,onSwitch:t}){const n=f=>{const{getBlock:b}=f(F),h=b(e);if(!h)return{};const g=Dt(h.name),{getBlockStyles:z}=f($e);return{block:h,blockType:g,styles:z(h.name),className:h.attributes.className||""}},{styles:o,block:r,blockType:s,className:i}=D(n,[e]),{updateBlockAttributes:c}=ae(F),l=y6t(o),u=A6t(l,i),d=v6t(r,s);return{onSelect:f=>{const b=Xhe(i,u,f);c(e,{className:b}),t()},stylesToRender:l,activeStyle:u,genericPreviewBlock:d,className:i}}const x6t=()=>{};function _6t({clientId:e,onSwitch:t=x6t}){const{onSelect:n,stylesToRender:o,activeStyle:r}=Khe({clientId:e,onSwitch:t});return!o||o.length===0?null:a.jsx(a.Fragment,{children:o.map(s=>{const i=s.label||s.name;return a.jsx(tt,{icon:r.name===s.name?no:null,onClick:()=>n(s),children:a.jsx(l0,{as:"span",limit:18,ellipsizeMode:"tail",truncate:!0,children:i})},s.name)})})}function w6t({hoveredBlock:e,onSwitch:t}){const{clientId:n}=e;return a.jsx(Yt,{label:m("Styles"),className:"block-editor-block-switcher__styles__menugroup",children:a.jsx(_6t,{clientId:n,onSwitch:t})})}const Yhe=(e,t,n=new Set)=>{const{clientId:o,name:r,innerBlocks:s=[]}=e;if(!n.has(o)){if(r===t)return e;for(const i of s){const c=Yhe(i,t,n);if(c)return c}}},k6t=(e,t)=>{const n=pNe(e,"content");return n?.length?n.reduce((o,r)=>(t[r]&&(o[r]=t[r]),o),{}):t},q6t=(e,t)=>{const n=k6t(t.name,t.attributes);e.attributes={...e.attributes,...n}},S6t=(e,t)=>{const n=t.map(r=>pn(r)),o=new Set;for(const r of e){let s=!1;for(const i of n){const c=Yhe(i,r.name,o);if(c){s=!0,o.add(c.clientId),q6t(c,r);break}}if(!s)return}return n},C6t=(e,t)=>O.useMemo(()=>e.reduce((n,o)=>{const r=S6t(t,o.blocks);return r&&n.push({...o,transformedBlocks:r}),n},[]),[e,t]),{CompositeV2:R6t,CompositeItemV2:W6t}=Fe(L0);function T6t({blocks:e,patterns:t,onSelect:n}){const[o,r]=O.useState(!1),s=C6t(t,e);return s.length?a.jsxs(Yt,{className:"block-editor-block-switcher__pattern__transforms__menugroup",children:[o&&a.jsx(E6t,{patterns:s,onSelect:n}),a.jsx(tt,{onClick:i=>{i.preventDefault(),r(!o)},icon:Ei,children:m("Patterns")})]}):null}function E6t({patterns:e,onSelect:t}){const n=g0("medium","<");return a.jsx("div",{className:"block-editor-block-switcher__popover-preview-container",children:a.jsx(Mn,{className:"block-editor-block-switcher__popover-preview",placement:n?"bottom":"right-start",offset:16,children:a.jsx("div",{className:"block-editor-block-switcher__preview is-pattern-list-preview",children:a.jsx(B6t,{patterns:e,onSelect:t})})})})}function B6t({patterns:e,onSelect:t}){return a.jsx(R6t,{role:"listbox",className:"block-editor-block-switcher__preview-patterns-container","aria-label":m("Patterns list"),children:e.map(n=>a.jsx(Zhe,{pattern:n,onSelect:t},n.name))})}function Zhe({pattern:e,onSelect:t}){const n="block-editor-block-switcher__preview-patterns-container",o=He(Zhe,`${n}-list__item-description`);return a.jsxs("div",{className:`${n}-list__list-item`,children:[a.jsxs(W6t,{render:a.jsx("div",{role:"option","aria-label":e.title,"aria-describedby":e.description?o:void 0,className:`${n}-list__item`}),onClick:()=>t(e.transformedBlocks),children:[a.jsx(lk,{blocks:e.transformedBlocks,viewportWidth:e.viewportWidth||500}),a.jsx("div",{className:`${n}-list__item-title`,children:e.title})]}),!!e.description&&a.jsx(Kt,{id:o,children:e.description})]})}function N6t({onClose:e,clientIds:t,hasBlockStyles:n,canRemove:o,isUsingBindings:r}){const{replaceBlocks:s,multiSelect:i,updateBlockAttributes:c}=ae(F),{possibleBlockTransformations:l,patterns:u,blocks:d}=D(k=>{const{getBlocksByClientId:q,getBlockRootClientId:S,getBlockTransformItems:C,__experimentalGetPatternTransformItems:T}=k(F),W=S(Array.isArray(t)?t[0]:t),B=q(t);return{blocks:B,possibleBlockTransformations:C(B,W),patterns:T(B,W)}},[t]),p=h6t({clientIds:t,blocks:d});function f(k){k.length>1&&i(k[0].clientId,k[k.length-1].clientId)}function b(k){const q=l1(d,k);s(t,q),f(q)}function h(k){c(d[0].clientId,{...p.find(({name:q})=>q===k).attributes})}function g(k){s(t,k),f(k)}const z=d.length===1,y=z&&mh(d[0]),x=!!l.length&&o&&!y,v=!!p?.length,M=!!u?.length&&o,A=x||v;if(!(n||A||M))return a.jsx("p",{className:"block-editor-block-switcher__no-transforms",children:m("No transforms.")});const w=Oe(z?"This block is connected.":"These blocks are connected.","block toolbar button label and description");return a.jsxs("div",{className:"block-editor-block-switcher__container",children:[M&&a.jsx(T6t,{blocks:d,patterns:u,onSelect:k=>{g(k),e()}}),A&&a.jsx(z6t,{className:"block-editor-block-switcher__transforms__menugroup",possibleBlockTransformations:l,possibleBlockVariationTransformations:p,blocks:d,onSelect:k=>{b(k),e()},onSelectVariation:k=>{h(k),e()}}),n&&a.jsx(w6t,{hoveredBlock:d[0],onSwitch:e}),r&&a.jsx(Yt,{children:a.jsx(l0,{className:"block-editor-block-switcher__binding-indicator",children:w})})]})}const TY=({icon:e,showTitle:t,blockTitle:n})=>a.jsxs(a.Fragment,{children:[a.jsx(b0,{className:"block-editor-block-switcher__toggle",icon:e,showColors:!0}),t&&n&&a.jsx("span",{className:"block-editor-block-switcher__toggle-text",children:n})]}),L6t=({clientIds:e,disabled:t,isUsingBindings:n})=>{const{canRemove:o,hasBlockStyles:r,icon:s,invalidBlocks:i,isReusable:c,isTemplate:l}=D(h=>{const{getBlocksByClientId:g,getBlockAttributes:z,canRemoveBlocks:y}=h(F),{getBlockStyles:x,getBlockType:v,getActiveBlockVariation:M}=h($e),A=g(e);if(!A.length||A.some(S=>!S))return{invalidBlocks:!0};const[{name:_}]=A,w=A.length===1,k=v(_);let q;return w?q=M(_,z(e[0]))?.icon||k.icon:q=new Set(A.map(({name:C})=>C)).size===1?k.icon:k3,{canRemove:y(e),hasBlockStyles:w&&!!x(_)?.length,icon:q,isReusable:w&&dd(A[0]),isTemplate:w&&mh(A[0])}},[e]),u=ed({clientId:e?.[0],maximumLength:35});if(i)return null;const d=e.length===1,p=d?u:m("Multiple blocks selected");if(t||!r&&!o)return a.jsx(c0,{children:a.jsx(bt,{disabled:!0,className:"block-editor-block-switcher__no-switcher-icon",title:p,icon:a.jsx(TY,{icon:s,showTitle:c||l,blockTitle:u})})});const b=d?m("Change block type or style"):le(a0("Change type of %d block","Change type of %d blocks",e.length),e.length);return a.jsx(c0,{children:a.jsx(Ko,{children:h=>a.jsx(E1,{className:"block-editor-block-switcher",label:p,popoverProps:{placement:"bottom-start",className:"block-editor-block-switcher__popover"},icon:a.jsx(TY,{icon:s,showTitle:c||l,blockTitle:u}),toggleProps:{description:b,...h},menuProps:{orientation:"both"},children:({onClose:g})=>a.jsx(N6t,{onClose:g,clientIds:e,hasBlockStyles:r,canRemove:o,isUsingBindings:n})})})})},j6t=_0("BlockControls"),P6t=_0("BlockControlsBlock"),I6t=_0("BlockFormatControls"),D6t=_0("BlockControlsOther"),F6t=_0("BlockControlsParent"),_z={default:j6t,block:P6t,inline:I6t,other:D6t,parent:F6t};function $6t(e,t){const n=eo();return n[n3]?_z[e]?.Fill:n[RN]&&t?_z.parent.Fill:null}function V6t({group:e="default",controls:t,children:n,__experimentalShareWithChildBlocks:o=!1}){const r=$6t(e,o);if(!r)return null;const s=a.jsxs(a.Fragment,{children:[e==="default"&&a.jsx(c0,{controls:t}),n]});return a.jsx(yf,{document,children:a.jsx(r,{children:i=>{const{forwardedContext:c=[]}=i;return c.reduce((l,[u,d])=>a.jsx(u,{...d,children:l}),s)}})})}const{ComponentsContext:EY}=Fe(L0);function H6t({group:e="default",...t}){const n=O.useContext(Zu),o=O.useContext(EY),r=O.useMemo(()=>({forwardedContext:[[Zu.Provider,{value:n}],[EY.Provider,{value:o}]]}),[n,o]),s=_z[e]?.Slot,i=j1(s?.__unstableName);if(!s)return globalThis.SCRIPT_DEBUG===!0&&Xt(`Unknown BlockControls group "${e}" provided.`),null;if(!i?.length)return null;const c=a.jsx(s,{...t,bubblesVirtually:!0,fillProps:r});return e==="default"?c:a.jsx(c0,{children:c})}const Ie=V6t;Ie.Slot=H6t;const{Fill:SP,Slot:U6t}=_0("__unstableBlockToolbarLastItem");SP.Slot=U6t;const X6t="align",Qhe="__experimentalBorder",Ak="color",G6t="customClassName",Jhe="typography.__experimentalFontFamily",eme="typography.fontSize",K6t="typography.lineHeight",Y6t="typography.__experimentalFontStyle",Z6t="typography.__experimentalFontWeight",tme="typography.textAlign",Q6t="typography.textColumns",J6t="typography.__experimentalTextDecoration",eqt="typography.__experimentalWritingMode",tqt="typography.__experimentalTextTransform",nqt="typography.__experimentalLetterSpacing",oqt="layout",rqt=[K6t,eme,Y6t,Z6t,Jhe,tme,Q6t,J6t,tqt,eqt,nqt],sqt=["shadow"],iqt="spacing",aqt=[...sqt,...rqt,Qhe,Ak,iqt],cqt=e=>st(e,X6t);function lqt(e,t="any"){const n=Zt(e,Qhe);return n===!0?!0:t==="any"?!!(n?.color||n?.radius||n?.width||n?.style):!!n?.[t]}const uqt=e=>{const t=Zt(e,Ak);return t!==null&&typeof t=="object"&&!!t.gradients},dqt=e=>{const t=Zt(e,Ak);return t&&t.background!==!1},pqt=e=>st(e,tme),fqt=e=>{const t=Zt(e,Ak);return t&&t.text!==!1},bqt=e=>st(e,G6t,!0),hqt=e=>st(e,Jhe),mqt=e=>st(e,eme),Mqt=e=>st(e,oqt),gqt=e=>aqt.some(t=>st(e,t));function zqt(e){try{const t=Yn(e,{__unstableSkipMigrationLogs:!0,__unstableSkipAutop:!0});return!(t.length===1&&t[0].name==="core/freeform")}catch{return!1}}const Oqt={align:cqt,borderColor:e=>lqt(e,"color"),backgroundColor:dqt,textAlign:pqt,textColor:fqt,gradient:uqt,className:bqt,fontFamily:hqt,fontSize:mqt,layout:Mqt,style:gqt};function Aqt(e,t){return Object.entries(Oqt).reduce((n,[o,r])=>(r(e.name)&&r(t.name)&&(n[o]=e.attributes[o]),n),{})}function kT(e,t,n){for(let o=0;o{let i="";try{if(!window.navigator.clipboard){r(m("Unable to paste styles. This feature is only available on secure (https) sites in supporting browsers."),{type:"snackbar"});return}i=await window.navigator.clipboard.readText()}catch{r(m("Unable to paste styles. Please allow browser clipboard permissions before continuing."),{type:"snackbar"});return}if(!i||!zqt(i)){o(m("Unable to paste styles. Block styles couldn't be found within the copied content."),{type:"snackbar"});return}const c=Yn(i);if(c.length===1?e.batch(()=>{kT(s,s.map(()=>c[0]),t)}):e.batch(()=>{kT(s,c,t)}),s.length===1){const l=Dt(s[0].name)?.title;n(le(m("Pasted styles to %s."),l),{type:"snackbar"})}else n(le(m("Pasted styles to %d blocks."),s.length),{type:"snackbar"})},[e.batch,t,n,o,r])}function vqt({clientIds:e,children:t,__experimentalUpdateSelection:n}){const{getDefaultBlockName:o,getGroupingBlockName:r}=D($e),s=D(k=>{const{canInsertBlockType:q,getBlockRootClientId:S,getBlocksByClientId:C,getDirectInsertBlock:T,canMoveBlocks:W,canRemoveBlocks:B}=k(F),N=C(e),E=S(e[0]),L=q(o(),E),I=E?T(E):null;return{canMove:W(e),canRemove:B(e),canInsertBlock:L||!!I,canCopyStyles:N.every(P=>!!P&&(st(P.name,"color")||st(P.name,"typography"))),canDuplicate:N.every(P=>!!P&&st(P.name,"multiple",!0)&&q(P.name,E))}},[e,o]),{getBlocksByClientId:i,getBlocks:c}=D(F),{canMove:l,canRemove:u,canInsertBlock:d,canCopyStyles:p,canDuplicate:f}=s,{removeBlocks:b,replaceBlocks:h,duplicateBlocks:g,insertAfterBlock:z,insertBeforeBlock:y,flashBlock:x,setBlockMovingClientId:v,setNavigationMode:M,selectBlock:A}=ae(F),_=lP(),w=yqt();return t({canCopyStyles:p,canDuplicate:f,canInsertBlock:d,canMove:l,canRemove:u,onDuplicate(){return g(e,n)},onRemove(){return b(e,n)},onInsertBefore(){y(e[0])},onInsertAfter(){z(e[e.length-1])},onMoveTo(){M(!0),A(e[0]),v(e[0])},onGroup(){if(!e.length)return;const k=r(),q=l1(i(e),k);q&&h(e,q)},onUngroup(){if(!e.length)return;const k=c(e[0]);k.length&&h(e,k)},onCopy(){e.length===1&&x(e[0]),_("copy",e)},async onPasteStyles(){await w(i(e))}})}function xqt({clientId:e}){const t=D(o=>o(F).getBlock(e),[e]),{replaceBlocks:n}=ae(F);return!t||t.name!=="core/html"?null:a.jsx(tt,{onClick:()=>n(e,e3({HTML:s_(t)})),children:m("Convert to Blocks")})}const{Fill:yk,Slot:_qt}=_0("__unstableBlockSettingsMenuFirstItem");yk.Slot=_qt;function nme(e){return D(t=>{const{getBlocksByClientId:n,getSelectedBlockClientIds:o,isUngroupable:r,isGroupable:s}=t(F),{getGroupingBlockName:i,getBlockType:c}=t($e),l=e?.length?e:o(),u=n(l),[d]=u,p=l.length===1&&r(l[0]);return{clientIds:l,isGroupable:s(l),isUngroupable:p,blocksSelection:u,groupingBlockName:i(),onUngroup:p&&c(d.name)?.transforms?.ungroup}},[e])}const wqt={group:{type:"constrained"},row:{type:"flex",flexWrap:"nowrap"},stack:{type:"flex",orientation:"vertical"},grid:{type:"grid"}};function kqt(){const{blocksSelection:e,clientIds:t,groupingBlockName:n,isGroupable:o}=nme(),{replaceBlocks:r}=ae(F),{canRemove:s,variations:i}=D(h=>{const{canRemoveBlocks:g}=h(F),{getBlockVariations:z}=h($e);return{canRemove:g(t),variations:z(n,"transform")}},[t,n]),c=h=>{const g=l1(e,n);typeof h!="string"&&(h="group"),g&&g.length>0&&(g[0].attributes.layout=wqt[h],r(t,g))},l=()=>c("row"),u=()=>c("stack"),d=()=>c("grid");if(!o||!s)return null;const p=!!i.find(({name:h})=>h==="group-row"),f=!!i.find(({name:h})=>h==="group-stack"),b=!!i.find(({name:h})=>h==="group-grid");return a.jsxs(c0,{children:[a.jsx(bt,{icon:Of,label:Oe("Group","verb"),onClick:c}),p&&a.jsx(bt,{icon:_le,label:Oe("Row","single horizontal line"),onClick:l}),f&&a.jsx(bt,{icon:Cle,label:Oe("Stack","verb"),onClick:u}),b&&a.jsx(bt,{icon:q3,label:Oe("Grid","verb"),onClick:d})]})}function qqt({clientIds:e,isGroupable:t,isUngroupable:n,onUngroup:o,blocksSelection:r,groupingBlockName:s,onClose:i=()=>{}}){const{getSelectedBlockClientIds:c}=D(F),{replaceBlocks:l}=ae(F),u=()=>{const f=l1(r,s);f&&l(e,f)},d=()=>{let f=r[0].innerBlocks;f.length&&(o&&(f=o(r[0].attributes,r[0].innerBlocks)),l(e,f))};if(!t&&!n)return null;const p=c();return a.jsxs(a.Fragment,{children:[t&&a.jsx(tt,{shortcut:p.length>1?Jo.primary("g"):void 0,onClick:()=>{u(),i()},children:Oe("Group","verb")}),n&&a.jsx(tt,{onClick:()=>{d(),i()},children:Oe("Ungroup","Ungrouping blocks from within a grouping block back into individual blocks within the Editor")})]})}function Yh(e){return D(t=>{const{canEditBlock:n,canMoveBlock:o,canRemoveBlock:r,canLockBlockType:s,getBlockName:i,getTemplateLock:c}=t(F),l=n(e),u=o(e),d=r(e);return{canEdit:l,canMove:u,canRemove:d,canLock:s(i(e)),isContentLocked:c(e)==="contentOnly",isLocked:!l||!u||!d}},[e])}const Sqt=["core/block","core/navigation"];function Cqt(e){return e.remove&&e.move?"all":e.remove&&!e.move?"insert":!1}function ome({clientId:e,onClose:t}){const[n,o]=O.useState({move:!1,remove:!1}),{canEdit:r,canMove:s,canRemove:i}=Yh(e),{allowsEditLocking:c,templateLock:l,hasTemplateLock:u}=D(z=>{const{getBlockName:y,getBlockAttributes:x}=z(F),v=y(e),M=Dt(v);return{allowsEditLocking:Sqt.includes(v),templateLock:x(e)?.templateLock,hasTemplateLock:!!M?.attributes?.templateLock}},[e]),[d,p]=O.useState(!!l),{updateBlockAttributes:f}=ae(F),b=Ms(e);O.useEffect(()=>{o({move:!s,remove:!i,...c?{edit:!r}:{}})},[r,s,i,c]);const h=Object.values(n).every(Boolean),g=Object.values(n).some(Boolean)&&!h;return a.jsx(fn,{title:le(m("Lock %s"),b.title),overlayClassName:"block-editor-block-lock-modal",onRequestClose:t,children:a.jsxs("form",{onSubmit:z=>{z.preventDefault(),f([e],{lock:n,templateLock:d?Cqt(n):void 0}),t()},children:[a.jsxs("fieldset",{className:"block-editor-block-lock-modal__options",children:[a.jsx("legend",{children:m("Choose specific attributes to restrict or lock all available options.")}),a.jsx("ul",{role:"list",className:"block-editor-block-lock-modal__checklist",children:a.jsxs("li",{children:[a.jsx(Bo,{__nextHasNoMarginBottom:!0,className:"block-editor-block-lock-modal__options-all",label:m("Lock all"),checked:h,indeterminate:g,onChange:z=>o({move:z,remove:z,...c?{edit:z}:{}})}),a.jsxs("ul",{role:"list",className:"block-editor-block-lock-modal__checklist",children:[c&&a.jsxs("li",{className:"block-editor-block-lock-modal__checklist-item",children:[a.jsx(Bo,{__nextHasNoMarginBottom:!0,label:m("Restrict editing"),checked:!!n.edit,onChange:z=>o(y=>({...y,edit:z}))}),a.jsx(xn,{className:"block-editor-block-lock-modal__lock-icon",icon:n.edit?t4:FM})]}),a.jsxs("li",{className:"block-editor-block-lock-modal__checklist-item",children:[a.jsx(Bo,{__nextHasNoMarginBottom:!0,label:m("Disable movement"),checked:n.move,onChange:z=>o(y=>({...y,move:z}))}),a.jsx(xn,{className:"block-editor-block-lock-modal__lock-icon",icon:n.move?t4:FM})]}),a.jsxs("li",{className:"block-editor-block-lock-modal__checklist-item",children:[a.jsx(Bo,{__nextHasNoMarginBottom:!0,label:m("Prevent removal"),checked:n.remove,onChange:z=>o(y=>({...y,remove:z}))}),a.jsx(xn,{className:"block-editor-block-lock-modal__lock-icon",icon:n.remove?t4:FM})]})]})]})}),u&&a.jsx(Be,{__nextHasNoMarginBottom:!0,className:"block-editor-block-lock-modal__template-lock",label:m("Apply to all blocks inside"),checked:d,disabled:n.move&&!n.remove,onChange:()=>p(!d)})]}),a.jsxs(Q0,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1,children:[a.jsx(Ht,{children:a.jsx(fe,{variant:"tertiary",onClick:t,__next40pxDefaultSize:!0,children:m("Cancel")})}),a.jsx(Ht,{children:a.jsx(fe,{variant:"primary",type:"submit",__next40pxDefaultSize:!0,children:m("Apply")})})]})]})})}function Rqt({clientId:e}){const{canLock:t,isLocked:n}=Yh(e),[o,r]=O.useReducer(i=>!i,!1);if(!t)return null;const s=m(n?"Unlock":"Lock");return a.jsxs(a.Fragment,{children:[a.jsx(tt,{icon:n?FM:lZe,onClick:r,"aria-expanded":o,"aria-haspopup":"dialog",children:s}),o&&a.jsx(ome,{clientId:e,onClose:r})]})}function Wqt({clientId:e}){const{canLock:t,isLocked:n}=Yh(e),[o,r]=O.useReducer(c=>!c,!1),s=O.useRef(!1);if(O.useEffect(()=>{n&&(s.current=!0)},[n]),!n&&!s.current)return null;let i=m(n?"Unlock":"Lock");return!t&&n&&(i=m("Locked")),a.jsxs(a.Fragment,{children:[a.jsx(c0,{className:"block-editor-block-lock-toolbar",children:a.jsx(bt,{disabled:!t,icon:n?t4:FM,label:i,onClick:r,"aria-expanded":o,"aria-haspopup":"dialog"})}),o&&a.jsx(ome,{clientId:e,onClose:r})]})}const Tqt=()=>{};function Eqt({clientId:e,onToggle:t=Tqt}){const{blockType:n,mode:o,isCodeEditingEnabled:r}=D(c=>{const{getBlock:l,getBlockMode:u,getSettings:d}=c(F),p=l(e);return{mode:u(e),blockType:p?Dt(p.name):null,isCodeEditingEnabled:d().codeEditingEnabled}},[e]),{toggleBlockMode:s}=ae(F);if(!n||!st(n,"html",!0)||!r)return null;const i=m(o==="visual"?"Edit as HTML":"Edit visually");return a.jsx(tt,{onClick:()=>{s(e),t()},children:i})}function Bqt({clientId:e,onClose:t}){const{templateLock:n,isLockedByParent:o,isEditingAsBlocks:r}=D(u=>{const{getContentLockingParent:d,getTemplateLock:p,getTemporarilyEditingAsBlocks:f}=Fe(u(F));return{templateLock:p(e),isLockedByParent:!!d(e),isEditingAsBlocks:f()===e}},[e]),s=ae(F),i=!o&&n==="contentOnly";if(!i&&!r)return null;const{modifyContentLockBlock:c}=Fe(s);return!r&&i&&a.jsx(tt,{onClick:()=>{c(e),t()},children:Oe("Modify","Unlock content locked blocks")})}function rme(e){return e?.trim()?.length===0}function Nqt({blockName:e,originalBlockName:t,onClose:n,onSave:o,hasOverridesWarning:r}){const[s,i]=O.useState(e),c=s!==e,l=s===t,u=rme(s),d=c||l,p=b=>b.target.select(),f=()=>{const b=le(m(l||u?'Block name reset to: "%s".':'Block name changed to: "%s".'),s);At(b,"assertive"),o(s),n()};return a.jsx(fn,{title:m("Rename"),onRequestClose:n,overlayClassName:"block-editor-block-rename-modal",focusOnMount:"firstContentElement",size:"small",children:a.jsx("form",{onSubmit:b=>{b.preventDefault(),d&&f()},children:a.jsxs(Ye,{spacing:"3",children:[a.jsx($t,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:s,label:m("Name"),help:r?m("This block allows overrides. Changing the name can cause problems with content entered into instances of this pattern."):void 0,placeholder:t,onChange:i,onFocus:p}),a.jsxs(Je,{justify:"right",children:[a.jsx(fe,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:n,children:m("Cancel")}),a.jsx(fe,{__next40pxDefaultSize:!0,"aria-disabled":!d,variant:"primary",type:"submit",children:m("Save")})]})]})})})}function Lqt({clientId:e}){const[t,n]=O.useState(!1),{metadata:o}=D(u=>{const{getBlockAttributes:d}=u(F);return{metadata:d(e)?.metadata}},[e]),{updateBlockAttributes:r}=ae(F),s=o?.name,i=!!s&&!!o?.bindings&&Object.values(o.bindings).some(u=>u.source==="core/pattern-overrides");function c(u){r([e],{metadata:{...o,name:u}})}const l=Ms(e);return a.jsxs(a.Fragment,{children:[a.jsx(tt,{onClick:()=>{n(!0)},"aria-expanded":t,"aria-haspopup":"dialog",children:m("Rename")}),t&&a.jsx(Nqt,{blockName:s||"",originalBlockName:l?.title,hasOverridesWarning:i,onClose:()=>n(!1),onSave:u=>{(u===l?.title||rme(u))&&(u=void 0),c(u)}})]})}function jqt(e){return{canRename:Zt(e,"renaming",!0)}}const{Fill:Pqt,Slot:Iqt}=_0("BlockSettingsMenuControls"),Dqt=({fillProps:e,clientIds:t=null})=>{const{selectedBlocks:n,selectedClientIds:o,isContentOnly:r}=D(b=>{const{getBlockNamesByClientId:h,getSelectedBlockClientIds:g,getBlockEditingMode:z}=b(F),y=t!==null?t:g();return{selectedBlocks:h(y),selectedClientIds:y,isContentOnly:z(y[0])==="contentOnly"}},[t]),{canLock:s}=Yh(o[0]),{canRename:i}=jqt(n[0]),c=o.length===1&&s&&!r,l=o.length===1&&i&&!r,u=nme(o),{isGroupable:d,isUngroupable:p}=u,f=d||p;return a.jsx(Iqt,{fillProps:{...e,selectedBlocks:n,selectedClientIds:o},children:b=>!b?.length>0&&!f&&!c?null:a.jsxs(Yt,{children:[f&&a.jsx(qqt,{...u,onClose:e?.onClose}),c&&a.jsx(Rqt,{clientId:o[0]}),l&&a.jsx(Lqt,{clientId:o[0]}),b,e?.canMove&&!e?.onlyBlock&&!r&&a.jsx(tt,{onClick:Jl(e?.onClose,e?.onMoveTo),children:m("Move to")}),o.length===1&&a.jsx(Bqt,{clientId:o[0],onClose:e?.onClose}),e?.count===1&&!r&&a.jsx(Eqt,{clientId:e?.firstBlockClientId,onToggle:e?.onClose})]})})};function Zh({...e}){return a.jsx(yf,{document,children:a.jsx(Pqt,{...e})})}Zh.Slot=Dqt;function Fqt({parentClientId:e,parentBlockType:t}){const n=g0("medium","<"),{selectBlock:o}=ae(F),r=O.useRef(),s=qP({ref:r,highlightParent:!0});return n?a.jsx(tt,{...s,ref:r,icon:a.jsx(b0,{icon:t.icon}),onClick:()=>o(e),children:le(m("Select parent block (%s)"),t.title)}):null}const $qt={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"};function BY({clientIds:e,onCopy:t,label:n,shortcut:o}){const{getBlocksByClientId:r}=D(F),s=af(()=>Pr(r(e)),t),i=n||m("Copy");return a.jsx(tt,{ref:s,shortcut:o,children:i})}function sme({block:e,clientIds:t,children:n,__experimentalSelectBlock:o,...r}){const s=e?.clientId,i=t.length,c=t[0],{firstParentClientId:l,onlyBlock:u,parentBlockType:d,previousBlockClientId:p,selectedBlockClientIds:f,openedBlockSettingsMenu:b,isContentOnly:h}=D(q=>{const{getBlockCount:S,getBlockName:C,getBlockRootClientId:T,getPreviousBlockClientId:W,getSelectedBlockClientIds:B,getBlockAttributes:N,getOpenedBlockSettingsMenu:E,getBlockEditingMode:L}=Fe(q(F)),{getActiveBlockVariation:I}=q($e),P=T(c),H=P&&C(P);return{firstParentClientId:P,onlyBlock:S(P)===1,parentBlockType:P&&(I(H,N(P))||Dt(H)),previousBlockClientId:W(c),selectedBlockClientIds:B(),openedBlockSettingsMenu:E(),isContentOnly:L(c)==="contentOnly"}},[c]),{getBlockOrder:g,getSelectedBlockClientIds:z}=D(F),{setOpenedBlockSettingsMenu:y}=Fe(ae(F)),x=D(q=>{const{getShortcutRepresentation:S}=q(Br);return{duplicate:S("core/block-editor/duplicate"),remove:S("core/block-editor/remove"),insertAfter:S("core/block-editor/insert-after"),insertBefore:S("core/block-editor/insert-before")}},[]),v=f.length>0;async function M(q){if(!o)return;const S=await q;S&&S[0]&&o(S[0],!1)}function A(){if(!o)return;let q=p||l;q||(q=g()[0]);const S=v&&z().length===0;o(q,S)}const _=f?.includes(l),w=s?b===s||!1:void 0;function k(q){q&&b!==s?y(s):!q&&b&&b===s&&y(void 0)}return a.jsx(vqt,{clientIds:t,__experimentalUpdateSelection:!o,children:({canCopyStyles:q,canDuplicate:S,canInsertBlock:C,canMove:T,canRemove:W,onDuplicate:B,onInsertAfter:N,onInsertBefore:E,onRemove:L,onCopy:I,onPasteStyles:P,onMoveTo:H})=>a.jsx(E1,{icon:Ol,label:m("Options"),className:"block-editor-block-settings-menu",popoverProps:$qt,open:w,onToggle:k,noIcons:!0,...r,children:({onClose:U})=>a.jsxs(a.Fragment,{children:[a.jsxs(Yt,{children:[a.jsx(yk.Slot,{fillProps:{onClose:U}}),!_&&!!l&&a.jsx(Fqt,{parentClientId:l,parentBlockType:d}),i===1&&a.jsx(xqt,{clientId:c}),!h&&a.jsx(BY,{clientIds:t,onCopy:I,shortcut:Jo.primary("c")}),S&&a.jsx(tt,{onClick:Jl(U,B,M),shortcut:x.duplicate,children:m("Duplicate")}),C&&!h&&a.jsxs(a.Fragment,{children:[a.jsx(tt,{onClick:Jl(U,E),shortcut:x.insertBefore,children:m("Add before")}),a.jsx(tt,{onClick:Jl(U,N),shortcut:x.insertAfter,children:m("Add after")})]})]}),q&&!h&&a.jsxs(Yt,{children:[a.jsx(BY,{clientIds:t,onCopy:I,label:m("Copy styles")}),a.jsx(tt,{onClick:P,children:m("Paste styles")})]}),a.jsx(Zh.Slot,{fillProps:{onClose:U,canMove:T,onMoveTo:H,onlyBlock:u,count:i,firstBlockClientId:c},clientIds:t}),typeof n=="function"?n({onClose:U}):O.Children.map(X=>O.cloneElement(X,{onClose:U})),W&&a.jsx(Yt,{children:a.jsx(tt,{onClick:Jl(U,L,A),shortcut:x.remove,children:m("Delete")})})]})})})}function Vqt({clientIds:e,...t}){return a.jsx(c0,{children:a.jsx(Ko,{children:n=>a.jsx(sme,{clientIds:e,toggleProps:n,...t})})})}function Hqt({clientIds:e}){const t=e.length===1?e[0]:void 0,n=D(r=>!!t&&r(F).getBlockMode(t)==="html",[t]),{toggleBlockMode:o}=ae(F);return n?a.jsx(c0,{children:a.jsx(bt,{onClick:()=>{o(t)},children:m("Edit visually")})}):null}const Uqt=O.createContext("");function Xqt(e){const t="toolbarItem";return!e.some(n=>!(t in n.dataset))}function NY(e){return Array.from(e.querySelectorAll("[data-toolbar-item]:not([disabled])"))}function LY(e){return e.contains(e.ownerDocument.activeElement)}function Gqt(e){const[t]=Nn.tabbable.find(e);t&&t.focus({preventScroll:!0})}function Kqt(e){const[n,o]=O.useState(!0),r=O.useCallback(()=>{const s=Nn.tabbable.find(e.current),i=Xqt(s);i||Re("Using custom components as toolbar controls",{since:"5.6",alternative:"ToolbarItem, ToolbarButton or ToolbarDropdownMenu components",link:"https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols"}),o(i)},[e]);return O.useLayoutEffect(()=>{const s=new window.MutationObserver(r);return s.observe(e.current,{childList:!0,subtree:!0}),()=>s.disconnect()},[r,n,e]),n}function Yqt({toolbarRef:e,focusOnMount:t,isAccessibleToolbar:n,defaultIndex:o,onIndexChange:r,shouldUseKeyboardFocusShortcut:s,focusEditorOnEscape:i}){const[c]=O.useState(t),[l]=O.useState(o),u=O.useCallback(()=>{Gqt(e.current)},[e]);Ur("core/block-editor/focus-toolbar",()=>{s&&u()}),O.useEffect(()=>{c&&u()},[n,c,u]),O.useEffect(()=>{const f=e.current;let b=0;return!c&&!LY(f)&&(b=window.requestAnimationFrame(()=>{const h=NY(f),g=l||0;h[g]&&LY(f)&&h[g].focus({preventScroll:!0})})),()=>{if(window.cancelAnimationFrame(b),!r||!f)return;const g=NY(f).findIndex(z=>z.tabIndex===0);r(g)}},[l,c,r,e]);const{getLastFocus:p}=Fe(D(F));O.useEffect(()=>{const f=e.current;if(i){const b=h=>{const g=p();h.keyCode===Ea&&g?.current&&(h.preventDefault(),g.current.focus())};return f.addEventListener("keydown",b),()=>{f.removeEventListener("keydown",b)}}},[i,p,e])}function vk({children:e,focusOnMount:t,focusEditorOnEscape:n=!1,shouldUseKeyboardFocusShortcut:o=!0,__experimentalInitialIndex:r,__experimentalOnIndexChange:s,orientation:i="horizontal",...c}){const l=O.useRef(),u=Kqt(l);return Yqt({toolbarRef:l,focusOnMount:t,defaultIndex:r,onIndexChange:s,isAccessibleToolbar:u,shouldUseKeyboardFocusShortcut:o,focusEditorOnEscape:n}),u?a.jsx(y2t,{label:c["aria-label"],ref:l,orientation:i,...c,children:e}):a.jsx(xf,{orientation:i,role:"toolbar",ref:l,...c,children:e})}function Zqt(){let e=!1;for(const t in _z)Qqt(t)&&(e=!0);return e}function Qqt(e="default"){const t=_z[e]?.Slot,n=j1(t?.__unstableName);return t?!!n?.length:(globalThis.SCRIPT_DEBUG===!0&&Xt(`Unknown BlockControls group "${e}" provided.`),null)}function ime(){const{isToolbarEnabled:e,isDefaultEditingMode:t}=D(o=>{const{getBlockEditingMode:r,getBlockName:s,getBlockSelectionStart:i}=o(F),c=i(),l=c&&Dt(s(c));return{isToolbarEnabled:l&&st(l,"__experimentalToolbar",!0),isDefaultEditingMode:r(c)==="default"}},[]),n=Zqt();return!(!e||!t&&!n)}function ame({hideDragHandle:e,focusOnMount:t,__experimentalInitialIndex:n,__experimentalOnIndexChange:o,variant:r="unstyled"}){const{blockClientId:s,blockClientIds:i,isContentOnlyEditingMode:c,isDefaultEditingMode:l,blockType:u,toolbarKey:d,shouldShowVisualToolbar:p,showParentSelector:f,isUsingBindings:b,hasParentPattern:h}=D(k=>{const{getBlockName:q,getBlockMode:S,getBlockParents:C,getSelectedBlockClientIds:T,isBlockValid:W,getBlockEditingMode:B,getBlockAttributes:N,getBlockParentsByBlockName:E}=k(F),L=T(),I=L[0],P=C(I),H=P[P.length-1],U=q(H),X=Dt(U),Z=B(I),ne=Z==="default",oe=q(I),Y=L.every(be=>W(be)),ee=L.every(be=>S(be)==="visual"),ie=L.every(be=>!!N(be)?.metadata?.bindings),se=L.every(be=>E(be,"core/block",!0).length>0);return{blockClientId:I,blockClientIds:L,isContentOnlyEditingMode:Z==="contentOnly",isDefaultEditingMode:ne,blockType:I&&Dt(oe),shouldShowVisualToolbar:Y&&ee,toolbarKey:`${I}${H}`,showParentSelector:X&&B(H)==="default"&&st(X,"__experimentalParentSelector",!0)&&L.length===1&&ne,isUsingBindings:ie,hasParentPattern:se}},[]),g=O.useRef(null),z=O.useRef(),y=qP({ref:z}),x=!g0("medium","<");if(!ime())return null;const M=i.length>1,A=dd(u)||mh(u),_=$("block-editor-block-contextual-toolbar",{"has-parent":f}),w=$("block-editor-block-toolbar",{"is-synced":A,"is-connected":b});return a.jsx(vk,{focusEditorOnEscape:!0,className:_,"aria-label":m("Block tools"),variant:r==="toolbar"?void 0:r,focusOnMount:t,__experimentalInitialIndex:n,__experimentalOnIndexChange:o,children:a.jsxs("div",{ref:g,className:w,children:[!M&&x&&l&&a.jsx(f6t,{}),(p||M)&&(l||c&&!h||A)&&a.jsx("div",{ref:z,...y,children:a.jsxs(c0,{className:"block-editor-block-toolbar__block-controls",children:[a.jsx(L6t,{clientIds:i,disabled:!l,isUsingBindings:b}),l&&a.jsxs(a.Fragment,{children:[!M&&a.jsx(Wqt,{clientId:s}),a.jsx($he,{clientIds:i,hideDragHandle:e})]})]})}),p&&M&&a.jsx(kqt,{}),p&&a.jsxs(a.Fragment,{children:[a.jsx(Ie.Slot,{group:"parent",className:"block-editor-block-toolbar__slot"}),a.jsx(Ie.Slot,{group:"block",className:"block-editor-block-toolbar__slot"}),a.jsx(Ie.Slot,{className:"block-editor-block-toolbar__slot"}),a.jsx(Ie.Slot,{group:"inline",className:"block-editor-block-toolbar__slot"}),a.jsx(Ie.Slot,{group:"other",className:"block-editor-block-toolbar__slot"}),a.jsx(Uqt.Provider,{value:u?.name,children:a.jsx(SP.Slot,{})})]}),a.jsx(Hqt,{clientIds:i}),l&&a.jsx(Vqt,{clientIds:i})]})},d)}function CP({hideDragHandle:e,variant:t}){return a.jsx(ame,{hideDragHandle:e,variant:t,focusOnMount:void 0,__experimentalInitialIndex:void 0,__experimentalOnIndexChange:void 0})}function Jqt({clientId:e,isTyping:t,__unstableContentRef:n}){const{capturingClientId:o,isInsertionPointVisible:r,lastClientId:s}=gk(e),i=O.useRef();O.useEffect(()=>{i.current=void 0},[e]);const{stopTyping:c}=ae(F),l=O.useRef(!1);Ur("core/block-editor/focus-toolbar",()=>{l.current=!0,c(!0)}),O.useEffect(()=>{l.current=!1});const u=o||e,d=Mk({contentElement:n?.current,clientId:u});return!t&&a.jsx(whe,{clientId:u,bottomClientId:s,className:$("block-editor-block-list__block-popover",{"is-insertion-point-visible":r}),resize:!1,...d,children:a.jsx(ame,{focusOnMount:l.current,__experimentalInitialIndex:i.current,__experimentalOnIndexChange:p=>{i.current=p},variant:"toolbar"})})}function eSt({clientId:e,rootClientId:t},n){const o=D(T=>{const{getBlock:W,getBlockIndex:B,hasBlockMovingClientId:N,getBlockListSettings:E,__unstableGetEditorMode:L,getNextBlockClientId:I,getPreviousBlockClientId:P,canMoveBlock:H}=T(F),{getActiveBlockVariation:U,getBlockType:X}=T($e),Z=B(e),{name:ne,attributes:oe}=W(e),Y=X(ne),ee=E(t)?.orientation,ie=U(ne,oe);return{blockMovingMode:N(),editorMode:L(),icon:ie?.icon||Y.icon,label:dNe(Y,oe,Z+1,ee),canMove:H(e,t),getNextBlockClientId:I,getPreviousBlockClientId:P}},[e,t]),{label:r,icon:s,blockMovingMode:i,editorMode:c,canMove:l}=o,{setNavigationMode:u,removeBlock:d}=ae(F);O.useEffect(()=>{c==="navigation"&&(n.current.focus(),At(r))},[r,c]);const p=ls(e),{hasBlockMovingClientId:f,getBlockIndex:b,getBlockRootClientId:h,getClientIdsOfDescendants:g,getSelectedBlockClientId:z,getMultiSelectedBlocksEndClientId:y,getPreviousBlockClientId:x,getNextBlockClientId:v}=D(F),{selectBlock:M,clearSelectedBlock:A,setBlockMovingClientId:_,moveBlockToPosition:w}=ae(F);function k(T){const{keyCode:W}=T,B=W===xi,N=W===Do,E=W===Bs,L=W===Ns,I=W===qp,P=W===Ea,H=W===y1,U=W===qx,X=T.shiftKey;if(W===Si||W===_a){d(e),T.preventDefault();return}const Z=z(),ne=y(),oe=x(ne||Z),Y=v(ne||Z),ee=I&&X||B,ie=I&&!X||N,se=E,be=L;let ye;if(ee)ye=oe;else if(ie)ye=Y;else if(se){var xe;ye=(xe=h(Z))!==null&&xe!==void 0?xe:Z}else if(be){var K;ye=(K=g(Z)[0])!==null&&K!==void 0?K:Z}const pe=f();if(P&&pe&&!T.defaultPrevented&&(_(null),T.preventDefault()),(H||U)&&pe){const G=h(pe),re=h(Z),Me=b(pe);let he=b(Z);Mea.jsx(fe,{__next40pxDefaultSize:!1,icon:K_,className:"block-selection-button_drag-handle",label:S,tabIndex:"-1",...T})})}),c==="navigation"&&a.jsx(Ht,{children:a.jsx(fe,{__next40pxDefaultSize:!1,ref:n,onClick:c==="navigation"?()=>u(!1):void 0,onKeyDown:k,label:r,showTooltip:!1,className:"block-selection-button_select-button",children:a.jsx(p5,{clientId:e,maximumLength:35})})})]})})}const tSt=O.forwardRef(eSt);function nSt({clientId:e,__unstableContentRef:t},n){const{capturingClientId:o,isInsertionPointVisible:r,lastClientId:s,rootClientId:i}=gk(e),c=Mk({contentElement:t?.current,clientId:e});return a.jsx(pk,{clientId:o||e,bottomClientId:s,className:$("block-editor-block-list__block-popover",{"is-insertion-point-visible":r}),resize:!1,...c,children:a.jsx(tSt,{ref:n,clientId:e,rootClientId:i})})}const oSt=O.forwardRef(nSt),IS=[];function rSt(e){return a.jsx(c0,{children:a.jsx(bt,{...e})})}function sSt({clientId:e,as:t=rSt}){const{categories:n,patterns:o,patternName:r}=D(u=>{const{getBlockAttributes:d,getBlockRootClientId:p,__experimentalGetAllowedPatterns:f}=u(F),b=d(e),h=b?.metadata?.categories||IS,g=b?.metadata?.patternName,z=p(e),y=h.length>0?f(z):IS;return{categories:h,patterns:y,patternName:g}},[e]),{replaceBlocks:s}=ae(F),i=O.useMemo(()=>n.length===0||!o||o.length===0?IS:o.filter(u=>{const d=u.source==="core"||u.source?.startsWith("pattern-directory")&&u.source!=="pattern-directory/theme";return u.blocks.length===1&&!d&&u.categories?.some(p=>n.includes(p))&&(u.syncStatus==="unsynced"||!u.id)}),[n,o]);if(i.length<2)return null;function c(){const u=i.length,d=i.findIndex(({name:f})=>f===r),p=d+1{const u=c();u.blocks[0].attributes={...u.blocks[0].attributes,metadata:{...u.blocks[0].attributes.metadata,categories:n}},s(e,u.blocks)}})}function iSt({clientId:e,__unstableContentRef:t}){const n=D(b=>{const{getBlock:h,hasBlockMovingClientId:g,getNextBlockClientId:z,getPreviousBlockClientId:y,canRemoveBlock:x,canMoveBlock:v}=b(F),{getBlockType:M}=b($e),{name:A}=h(e),w=M(A)?.name==="core/template-part";let k=!1;const q=z();if(q){const{name:T}=h(q);k=M(T)?.name==="core/template-part"}let S=!1;const C=y();if(C){const{name:T}=h(C);S=M(T)?.name==="core/template-part"}return{blockMovingMode:g(),isBlockTemplatePart:w,isNextBlockTemplatePart:k,isPrevBlockTemplatePart:S,canRemove:x(e),canMove:v(e)}},[e]),{blockMovingMode:o,isBlockTemplatePart:r,isNextBlockTemplatePart:s,isPrevBlockTemplatePart:i,canRemove:c,canMove:l}=n,{removeBlock:u,__unstableSetEditorMode:d}=ae(F),p=$("zoom-out-toolbar",{"is-block-moving-mode":!!o}),f=l&&!r;return a.jsxs(vk,{className:p,"aria-label":m("Block tools"),variant:"unstyled",orientation:"vertical",children:[f&&a.jsx(zk,{clientIds:[e],children:b=>a.jsx(fe,{icon:K_,className:"block-selection-button_drag-handle zoom-out-toolbar-button",label:m("Drag"),iconSize:24,size:"compact",tabIndex:"-1",...b})}),!r&&a.jsx($he,{clientIds:[e],hideDragHandle:!0,isBlockMoverUpButtonDisabled:i,isBlockMoverDownButtonDisabled:s,iconSize:24,size:"compact"}),l&&c&&a.jsx(sSt,{clientId:e,as:bt}),!r&&a.jsx(bt,{className:"zoom-out-toolbar-button",icon:nl,label:m("Edit"),onClick:()=>{d("edit"),t.current?.focus()}}),c&&!r&&a.jsx(bt,{className:"zoom-out-toolbar-button",icon:C3,label:m("Delete"),onClick:()=>{u(e)}})]})}function aSt({clientId:e,__unstableContentRef:t}){const{capturingClientId:n,isInsertionPointVisible:o,lastClientId:r}=gk(e),i={...Mk({contentElement:t?.current,clientId:e}),placement:"left-start",flip:!1,shift:!0};return a.jsx(whe,{clientId:n||e,bottomClientId:r,className:$("zoom-out-toolbar-popover",{"is-insertion-point-visible":o}),resize:!1,...i,children:a.jsx(iSt,{__unstableContentRef:t,clientId:e})})}function cSt({isVisible:e,onClick:t}){const[n,o]=O.useState(!1);return a.jsx(fe,{variant:"primary",icon:is,size:"compact",className:$("block-editor-button-pattern-inserter__button","block-editor-block-tools__zoom-out-mode-inserter-button",{"is-visible":e||n}),onClick:t,onMouseOver:()=>{o(!0)},onMouseOut:()=>{o(!1)},label:Oe("Add pattern","Generic label for pattern inserter button")})}function lSt(){const[e,t]=O.useState(!1),{hasSelection:n,blockInsertionPoint:o,blockOrder:r,blockInsertionPointVisible:s,setInserterIsOpened:i,sectionRootClientId:c,selectedBlockClientId:l,hoveredBlockClientId:u}=D(p=>{const{getSettings:f,getBlockInsertionPoint:b,getBlockOrder:h,getSelectionStart:g,getSelectedBlockClientId:z,getHoveredBlockClientId:y,isBlockInsertionPointVisible:x,getSectionRootClientId:v}=Fe(p(F)),M=v();return{hasSelection:!!g().clientId,blockInsertionPoint:b(),blockOrder:h(M),blockInsertionPointVisible:x(),sectionRootClientId:M,setInserterIsOpened:f().__experimentalSetIsInserterOpened,selectedBlockClientId:z(),hoveredBlockClientId:y()}},[]),{showInsertionPoint:d}=ae(F);return O.useEffect(()=>{const p=setTimeout(()=>{t(!0)},500);return()=>{clearTimeout(p)}},[]),e?[void 0,...r].map((p,f)=>{const b=s&&o.index===f,h=p,g=r[f],z=n&&(l===h||l===g),y=u===h||u===g;return a.jsxs(_he,{previousClientId:h,nextClientId:g,children:[b&&a.jsx("div",{style:{borderRadius:"0",height:"12px",opacity:1,transform:"translateY(-50%)",width:"100%"},className:"block-editor-block-list__insertion-point-indicator"}),!b&&a.jsx(cSt,{isVisible:z||y,onClick:()=>{i({rootClientId:c,insertionIndex:f,tab:"patterns",category:"all"}),d(c,f,{operation:"insert"})}})]},f)}):null}function uSt(){return D(e=>{const{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:n,getBlock:o,getBlockMode:r,getSettings:s,hasMultiSelection:i,__unstableGetEditorMode:c,isTyping:l}=e(F),u=t()||n(),d=o(u),p=c(),f=!!u&&!!d,b=f&&Yc(d)&&r(u)!=="html",h=u&&!l()&&p==="edit"&&b,g=f&&!i()&&p==="navigation",y=p==="zoom-out"&&d?.attributes?.align==="full"&&!h&&!g,x=!y&&!s().hasFixedToolbar&&!h&&f&&!b&&!g;return{showEmptyBlockSideInserter:h,showBreadcrumb:!h&&g,showBlockToolbarPopover:x,showZoomOutToolbar:y}},[])}function dSt(e){const{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:n,getSettings:o,__unstableGetEditorMode:r,isTyping:s}=e(F),i=t()||n(),c=r();return{clientId:i,hasFixedToolbar:o().hasFixedToolbar,isTyping:s(),isZoomOutMode:c==="zoom-out"}}function jY({children:e,__unstableContentRef:t,...n}){const{clientId:o,hasFixedToolbar:r,isTyping:s,isZoomOutMode:i}=D(dSt,[]),c=nk(),{getBlocksByClientId:l,getSelectedBlockClientIds:u,getBlockRootClientId:d,isGroupable:p}=D(F),{getGroupingBlockName:f}=D($e),{showEmptyBlockSideInserter:b,showBreadcrumb:h,showBlockToolbarPopover:g,showZoomOutToolbar:z}=uSt(),{clearSelectedBlock:y,duplicateBlocks:x,removeBlocks:v,replaceBlocks:M,insertAfterBlock:A,insertBeforeBlock:_,selectBlock:w,moveBlocksUp:k,moveBlocksDown:q,expandBlock:S}=Fe(ae(F)),C=O.useRef();function T(N){if(!N.defaultPrevented){if(c("core/block-editor/move-up",N)){const E=u();if(E.length){N.preventDefault();const L=d(E[0]);k(E,L)}}else if(c("core/block-editor/move-down",N)){const E=u();if(E.length){N.preventDefault();const L=d(E[0]);q(E,L)}}else if(c("core/block-editor/duplicate",N)){const E=u();E.length&&(N.preventDefault(),x(E))}else if(c("core/block-editor/remove",N)){const E=u();E.length&&(N.preventDefault(),v(E))}else if(c("core/block-editor/insert-after",N)){const E=u();E.length&&(N.preventDefault(),A(E[E.length-1]))}else if(c("core/block-editor/insert-before",N)){const E=u();E.length&&(N.preventDefault(),_(E[0]))}else if(c("core/block-editor/unselect",N)){if(N.target.closest("[role=toolbar]"))return;const E=u();E.length>1?(N.preventDefault(),w(E[0])):E.length===1&&N.target===C?.current&&(N.preventDefault(),y(),ybe(t.current)?.focus())}else if(c("core/block-editor/collapse-list-view",N)){if(Wu(N.target)||Wu(N.target?.contentWindow?.document?.activeElement))return;N.preventDefault(),S(o)}else if(c("core/block-editor/group",N)){const E=u();if(E.length>1&&p(E)){N.preventDefault();const L=l(E),I=f(),P=l1(L,I);M(E,P),At(m("Selected blocks are grouped."))}}}}const W=k5(t),B=k5(t);return a.jsx("div",{...n,onKeyDown:T,children:a.jsxs(xP.Provider,{value:O.useRef(!1),children:[!s&&a.jsx(Fwt,{__unstableContentRef:t}),b&&a.jsx(r6t,{__unstableContentRef:t,clientId:o}),g&&a.jsx(Jqt,{__unstableContentRef:t,clientId:o,isTyping:s}),h&&a.jsx(oSt,{ref:C,__unstableContentRef:t,clientId:o}),z&&a.jsx(aSt,{__unstableContentRef:t,clientId:o}),!i&&!r&&a.jsx(Mn.Slot,{name:"block-toolbar",ref:W}),e,a.jsx(Mn.Slot,{name:"__unstable-block-tools-after",ref:B}),i&&a.jsx(lSt,{__unstableContentRef:t})]})})}function pSt(e={},t){switch(t.type){case"REGISTER_COMMAND":return{...e,[t.name]:{name:t.name,label:t.label,searchLabel:t.searchLabel,context:t.context,callback:t.callback,icon:t.icon}};case"UNREGISTER_COMMAND":{const{[t.name]:n,...o}=e;return o}}return e}function fSt(e={},t){switch(t.type){case"REGISTER_COMMAND_LOADER":return{...e,[t.name]:{name:t.name,context:t.context,hook:t.hook}};case"UNREGISTER_COMMAND_LOADER":{const{[t.name]:n,...o}=e;return o}}return e}function bSt(e=!1,t){switch(t.type){case"OPEN":return!0;case"CLOSE":return!1}return e}function hSt(e="root",t){switch(t.type){case"SET_CONTEXT":return t.context}return e}const mSt=zo({commands:pSt,commandLoaders:fSt,isOpen:bSt,context:hSt});function MSt(e){return{type:"REGISTER_COMMAND",...e}}function gSt(e){return{type:"UNREGISTER_COMMAND",name:e}}function zSt(e){return{type:"REGISTER_COMMAND_LOADER",...e}}function OSt(e){return{type:"UNREGISTER_COMMAND_LOADER",name:e}}function ASt(){return{type:"OPEN"}}function ySt(){return{type:"CLOSE"}}const vSt=Object.freeze(Object.defineProperty({__proto__:null,close:ySt,open:ASt,registerCommand:MSt,registerCommandLoader:zSt,unregisterCommand:gSt,unregisterCommandLoader:OSt},Symbol.toStringTag,{value:"Module"})),xSt=at((e,t=!1)=>Object.values(e.commands).filter(n=>{const o=n.context&&n.context===e.context;return t?o:!o}),e=>[e.commands,e.context]),_St=at((e,t=!1)=>Object.values(e.commandLoaders).filter(n=>{const o=n.context&&n.context===e.context;return t?o:!o}),e=>[e.commandLoaders,e.context]);function wSt(e){return e.isOpen}function kSt(e){return e.context}const qSt=Object.freeze(Object.defineProperty({__proto__:null,getCommandLoaders:_St,getCommands:xSt,getContext:kSt,isOpen:wSt},Symbol.toStringTag,{value:"Module"}));function SSt(e){return{type:"SET_CONTEXT",context:e}}const CSt=Object.freeze(Object.defineProperty({__proto__:null,setContext:SSt},Symbol.toStringTag,{value:"Module"})),{lock:RSt,unlock:cme}=ar("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/commands"),WSt="core/commands",Zp=er(WSt,{reducer:mSt,actions:vSt,selectors:qSt});Qs(Zp);cme(Zp).registerPrivateActions(CSt);m("Search commands and settings");function TSt(e){const{getContext:t}=D(Zp),n=O.useRef(t()),{setContext:o}=cme(ae(Zp));O.useEffect(()=>{o(e)},[e,o]),O.useEffect(()=>{const r=n.current;return()=>o(r)},[o])}const lme={};RSt(lme,{useCommandContext:TSt});function PY(e){const{registerCommand:t,unregisterCommand:n}=ae(Zp),o=O.useRef(e.callback);O.useEffect(()=>{o.current=e.callback},[e.callback]),O.useEffect(()=>{if(!e.disabled)return t({name:e.name,context:e.context,label:e.label,searchLabel:e.searchLabel,icon:e.icon,callback:(...r)=>o.current(...r)}),()=>{n(e.name)}},[e.name,e.label,e.searchLabel,e.icon,e.context,e.disabled,t,n])}function Oa(e){const{registerCommandLoader:t,unregisterCommandLoader:n}=ae(Zp);O.useEffect(()=>{if(!e.disabled)return t({name:e.name,hook:e.hook,context:e.context}),()=>{n(e.name)}},[e.name,e.hook,e.context,e.disabled,t,n])}const ESt=()=>{const{replaceBlocks:e,multiSelect:t}=ae(F),{blocks:n,clientIds:o,canRemove:r,possibleBlockTransformations:s,invalidSelection:i}=D(f=>{const{getBlockRootClientId:b,getBlockTransformItems:h,getSelectedBlockClientIds:g,getBlocksByClientId:z,canRemoveBlocks:y}=f(F),x=g(),v=z(x);if(v.filter(A=>!A).length>0)return{invalidSelection:!0};const M=b(x[0]);return{blocks:v,clientIds:x,possibleBlockTransformations:h(v,M),canRemove:y(x),invalidSelection:!1}},[]);if(i)return{isLoading:!1,commands:[]};const c=n.length===1&&mh(n[0]);function l(f){f.length>1&&t(f[0].clientId,f[f.length-1].clientId)}function u(f){const b=l1(n,f);e(o,b),l(b)}const d=!!s.length&&r&&!c;return!o||o.length<1||!d?{isLoading:!1,commands:[]}:{isLoading:!1,commands:s.map(f=>{const{name:b,title:h,icon:g}=f;return{name:"core/block-editor/transform-to-"+b.replace("/","-"),label:le(m("Transform to %s"),h),icon:a.jsx(b0,{icon:g}),callback:({close:z})=>{u(b),z()}}})}},BSt=()=>{const{clientIds:e}=D(d=>{const{getSelectedBlockClientIds:p}=d(F);return{clientIds:p()}},[]),{getBlockRootClientId:t,canMoveBlocks:n,getBlockCount:o}=D(F),{setBlockMovingClientId:r,setNavigationMode:s,selectBlock:i}=ae(F);if(!e||e.length<1)return{isLoading:!1,commands:[]};const c=t(e[0]),l=n(e)&&o(c)!==1,u=[];return l&&u.push({name:"move-to",label:m("Move to"),callback:()=>{s(!0),i(e[0]),r(e[0])},icon:hZe}),{isLoading:!1,commands:u.map(d=>({...d,name:"core/block-editor/action-"+d.name,callback:({close:p})=>{d.callback(),p()}}))}},NSt=()=>{const{clientIds:e,isUngroupable:t,isGroupable:n}=D(_=>{const{getSelectedBlockClientIds:w,isUngroupable:k,isGroupable:q}=_(F);return{clientIds:w(),isUngroupable:k(),isGroupable:q()}},[]),{canInsertBlockType:o,getBlockRootClientId:r,getBlocksByClientId:s,canRemoveBlocks:i}=D(F),{getDefaultBlockName:c,getGroupingBlockName:l}=D($e),u=s(e),{removeBlocks:d,replaceBlocks:p,duplicateBlocks:f,insertAfterBlock:b,insertBeforeBlock:h}=ae(F),g=()=>{if(!u.length)return;const _=l(),w=l1(u,_);w&&p(e,w)},z=()=>{if(!u.length)return;const _=u[0].innerBlocks;_.length&&p(e,_)};if(!e||e.length<1)return{isLoading:!1,commands:[]};const y=r(e[0]),x=o(c(),y),v=u.every(_=>!!_&&st(_.name,"multiple",!0)&&o(_.name,y)),M=i(e),A=[];return v&&A.push({name:"duplicate",label:m("Duplicate"),callback:()=>f(e,!0),icon:k3}),x&&A.push({name:"add-before",label:m("Add before"),callback:()=>{const _=Array.isArray(e)?e[0]:_;h(_)},icon:is},{name:"add-after",label:m("Add after"),callback:()=>{const _=Array.isArray(e)?e[e.length-1]:_;b(_)},icon:is}),n&&A.push({name:"Group",label:m("Group"),callback:g,icon:Of}),t&&A.push({name:"ungroup",label:m("Ungroup"),callback:z,icon:dQe}),M&&A.push({name:"remove",label:m("Delete"),callback:()=>d(e,!0),icon:C3}),{isLoading:!1,commands:A.map(_=>({..._,name:"core/block-editor/action-"+_.name,callback:({close:w})=>{_.callback(),w()}}))}},LSt=()=>{Oa({name:"core/block-editor/blockTransforms",hook:ESt}),Oa({name:"core/block-editor/blockActions",hook:BSt}),Oa({name:"core/block-editor/blockQuickActions",hook:NSt,context:"block-selection-edit"})},jSt={ignoredSelectors:[/\.editor-styles-wrapper/gi]};function PSt({shouldIframe:e=!0,height:t="300px",children:n=a.jsx(fk,{}),styles:o,contentRef:r,iframeProps:s}){LSt();const i=Che(),c=aP(),l=O.useRef(),u=Gt([r,c,l]);return e?a.jsx(jY,{__unstableContentRef:l,style:{height:t,display:"flex"},children:a.jsxs(z2e,{...s,ref:i,contentRef:u,style:{...s?.style},name:"editor-canvas",children:[a.jsx(w5,{styles:o}),n]})}):a.jsxs(jY,{__unstableContentRef:l,style:{height:t,display:"flex"},children:[a.jsx(w5,{styles:o,scope:":where(.editor-styles-wrapper)",transformOptions:jSt}),a.jsx(Zvt,{ref:u,className:"editor-styles-wrapper",tabIndex:-1,style:{height:"100%",width:"100%"},children:n})]})}const ume=O.createContext({}),xk=()=>O.useContext(ume);function dme({children:e,...t}){const n=O.useRef();return O.useEffect(()=>{n.current&&(n.current.textContent=n.current.textContent)},[e]),a.jsx("div",{hidden:!0,...t,ref:n,children:e})}const pme=O.forwardRef(({nestingLevel:e,blockCount:t,clientId:n,...o},r)=>{const{insertedBlock:s,setInsertedBlock:i}=xk(),c=He(pme),l=D(b=>{const{getTemplateLock:h,__unstableGetEditorMode:g}=b(F);return!!h(n)||g()==="zoom-out"},[n]),u=ed({clientId:n,context:"list-view"}),d=ed({clientId:s?.clientId,context:"list-view"});if(O.useEffect(()=>{d?.length&&At(le(m("%s block inserted"),d),"assertive")},[d]),l)return null;const p=`list-view-appender__${c}`,f=le(m("Append to %1$s block at position %2$d, Level %3$d"),u,t+1,e);return a.jsxs("div",{className:"list-view-appender",children:[a.jsx(Xh,{ref:r,rootClientId:n,position:"bottom right",isAppender:!0,selectBlockOnInsert:!1,shouldDirectInsert:!1,__experimentalIsQuick:!0,...o,toggleProps:{"aria-describedby":p},onSelectOrClose:b=>{b?.clientId&&i(b)}}),a.jsx(dme,{id:p,children:f})]})}),ISt=V4t(bfe),DSt=O.forwardRef(({isDragged:e,isSelected:t,position:n,level:o,rowCount:r,children:s,className:i,path:c,...l},u)=>{const d=s2e({clientId:l["data-block"],enableAnimation:!0,triggerAnimationOnChange:c}),p=Gt([u,d]);return a.jsx(ISt,{ref:p,className:$("block-editor-list-view-leaf",i),level:o,positionInSet:n,setSize:r,isExpanded:void 0,...l,children:s})});function FSt({isSelected:e,selectedClientIds:t,rowItemRef:n}){const o=t.length===1;O.useLayoutEffect(()=>{if(!e||!o||!n.current)return;const r=Sr(n.current),{ownerDocument:s}=n.current;if(r===s.body||r===s.documentElement||!r)return;const c=n.current.getBoundingClientRect(),l=r.getBoundingClientRect();(c.topl.bottom)&&n.current.scrollIntoView()},[e,o,n])}function fme({onClick:e}){return a.jsx("span",{className:"block-editor-list-view__expander",onClick:t=>e(t,{forceToggle:!0}),"aria-hidden":"true","data-testid":"list-view-expander",children:a.jsx(t0,{icon:ft()?X_:jp})})}const $St=3;function bme(e){if(e.name==="core/image"&&e.attributes?.url)return{url:e.attributes.url,alt:e.attributes.alt,clientId:e.clientId}}function VSt(e){if(e.name!=="core/gallery"||!e.innerBlocks)return[];const t=[];for(const n of e.innerBlocks){const o=bme(n);if(o&&t.push(o),t.length>=$St)return t}return t}function HSt(e,t){const n=bme(e);return n?[n]:t?[]:VSt(e)}function USt({clientId:e,isExpanded:t}){const{block:n}=D(r=>({block:r(F).getBlock(e)}),[e]);return O.useMemo(()=>HSt(n,t),[n,t])}function XSt({className:e,block:{clientId:t},onClick:n,onContextMenu:o,onMouseDown:r,onToggleExpanded:s,tabIndex:i,onFocus:c,onDragStart:l,onDragEnd:u,draggable:d,isExpanded:p,ariaDescribedBy:f},b){const h=Ms(t),g=ed({clientId:t,context:"list-view"}),{isLocked:z}=Yh(t),{isContentOnly:y}=D(w=>({isContentOnly:w(F).getBlockEditingMode(t)==="contentOnly"}),[t]),x=z&&!y,v=h?.positionType==="sticky",M=USt({clientId:t,isExpanded:p}),A=w=>{w.dataTransfer.clearData(),l?.(w)};function _(w){(w.keyCode===y1||w.keyCode===qx)&&n(w)}return a.jsxs(fe,{__next40pxDefaultSize:!1,className:$("block-editor-list-view-block-select-button",e),onClick:n,onContextMenu:o,onKeyDown:_,onMouseDown:r,ref:b,tabIndex:i,onFocus:c,onDragStart:A,onDragEnd:u,draggable:d,href:`#block-${t}`,"aria-describedby":f,"aria-expanded":p,children:[a.jsx(fme,{onClick:s}),a.jsx(b0,{icon:h?.icon,showColors:!0,context:"list-view"}),a.jsxs(Je,{alignment:"center",className:"block-editor-list-view-block-select-button__label-wrapper",justify:"flex-start",spacing:1,children:[a.jsx("span",{className:"block-editor-list-view-block-select-button__title",children:a.jsx(Ho,{ellipsizeMode:"auto",children:g})}),h?.anchor&&a.jsx("span",{className:"block-editor-list-view-block-select-button__anchor-wrapper",children:a.jsx(Ho,{className:"block-editor-list-view-block-select-button__anchor",ellipsizeMode:"auto",children:h.anchor})}),v&&a.jsx("span",{className:"block-editor-list-view-block-select-button__sticky",children:a.jsx(t0,{icon:AZe})}),M.length?a.jsx("span",{className:"block-editor-list-view-block-select-button__images","aria-hidden":!0,children:M.map((w,k)=>a.jsx("span",{className:"block-editor-list-view-block-select-button__image",style:{backgroundImage:`url(${w.url})`,zIndex:M.length-k}},w.clientId))}):null,x&&a.jsx("span",{className:"block-editor-list-view-block-select-button__lock",children:a.jsx(t0,{icon:uZe})})]})]})}const GSt=O.forwardRef(XSt),KSt=O.forwardRef(({onClick:e,onToggleExpanded:t,block:n,isSelected:o,position:r,siblingBlockCount:s,level:i,isExpanded:c,selectedClientIds:l,...u},d)=>{const{clientId:p}=n,{blockMovingClientId:f,selectedBlockInBlockEditor:b}=D(M=>{const{hasBlockMovingClientId:A,getSelectedBlockClientId:_}=M(F);return{blockMovingClientId:A(),selectedBlockInBlockEditor:_()}},[]),{AdditionalBlockContent:h,insertedBlock:g,setInsertedBlock:z}=xk(),x=$("block-editor-list-view-block-contents",{"is-dropping-before":f&&b===p}),v=l.includes(p)?l:[p];return a.jsxs(a.Fragment,{children:[h&&a.jsx(h,{block:n,insertedBlock:g,setInsertedBlock:z}),a.jsx(zk,{appendToOwnerDocument:!0,clientIds:v,cloneClassname:"block-editor-list-view-draggable-chip",children:({draggable:M,onDragStart:A,onDragEnd:_})=>a.jsx(GSt,{ref:d,className:x,block:n,onClick:e,onToggleExpanded:t,isSelected:o,position:r,siblingBlockCount:s,level:i,draggable:M,onDragStart:A,onDragEnd:_,isExpanded:c,...u})})]})}),YSt=(e,t,n)=>le(m("Block %1$d of %2$d, Level %3$d."),e,t,n),ZSt=(e,t)=>[e?.positionLabel?`${le(m("Position: %s"),e.positionLabel)}.`:void 0,t?m("This block is locked."):void 0].filter(Boolean).join(" "),QSt=(e,t)=>Array.isArray(t)&&t.length?t.indexOf(e)!==-1:t===e;function JSt(e,t,n,o){const r=[...n,e],s=[...o,t],i=Math.min(r.length,s.length)-1,c=r[i],l=s[i];return{start:c,end:l}}function RP(e,t){const n=()=>{const r=t?.querySelector(`[role=row][data-block="${e}"]`);return r?Nn.focusable.find(r)[0]:null};let o=n();o?o.focus():window.requestAnimationFrame(()=>{o=n(),o&&o.focus()})}function eCt({blockIndexes:e,blockDropTargetIndex:t,blockDropPosition:n,clientId:o,firstDraggedBlockIndex:r,isDragged:s}){let i,c,l;if(!s){c=!1;const u=e[o];l=u>r,t!=null&&r!==void 0?u!==void 0&&(u>=r&&u=t?i="down":i="normal",c=typeof t=="number"&&t-1===u&&n==="inside"):t===null&&r!==void 0?u!==void 0&&u>=r?i="up":i="normal":t!=null&&r===void 0?u!==void 0&&(u{const{getBlock:We,getBlockName:rt,getSettings:Ft}=pt(F);return{block:We(e),blockName:rt(e),allowRightClickOverrides:Ft().allowRightClickOverrides}},[e]),G=st(K,"__experimentalToolbar",!0),Me=`list-view-block-select-button__description-${He(hme)}`,{expand:he,collapse:Q,collapseAll:R,BlockSettingsMenu:j,listViewInstanceId:V,expandedState:de,setInsertedBlock:ge,treeGridElementRef:ve,rootClientId:Ne}=xk(),et=nk();function mt(){const pt=X(),We=pt.includes(e),rt=We?pt[0]:e,Ft=ne(rt);return{blocksToUpdate:We?pt:[e],firstBlockClientId:rt,firstBlockRootClientId:Ft,selectedBlockClientIds:pt}}async function Mt(pt){if(pt.defaultPrevented||pt.target.closest("[role=dialog]"))return;const We=[Si,_a].includes(pt.keyCode);if(et("core/block-editor/unselect",pt)&&g.length>0)pt.stopPropagation(),pt.preventDefault(),c(pt,void 0);else if(We||et("core/block-editor/remove",pt)){var rt;const{blocksToUpdate:Ft,firstBlockClientId:s0,firstBlockRootClientId:nn,selectedBlockClientIds:j0}=mt();if(!ie(Ft))return;let r1=(rt=Z(s0))!==null&&rt!==void 0?rt:nn;L(Ft,!1);const As=j0.length>0&&X().length===0;r1||(r1=oe()[0]),Ue(r1,As)}else if(et("core/block-editor/duplicate",pt)){pt.preventDefault();const{blocksToUpdate:Ft,firstBlockRootClientId:s0}=mt();if(ee(Ft).every(j0=>!!j0&&st(j0.name,"multiple",!0)&&U(j0.name,s0))){const j0=await B(Ft,!1);j0?.length&&Ue(j0[0],!1)}}else if(et("core/block-editor/insert-before",pt)){pt.preventDefault();const{blocksToUpdate:Ft}=mt();await P(Ft[0]);const s0=X();H(void 0),Ue(s0[0],!1)}else if(et("core/block-editor/insert-after",pt)){pt.preventDefault();const{blocksToUpdate:Ft}=mt();await I(Ft.at(-1));const s0=X();H(void 0),Ue(s0[0],!1)}else if(et("core/block-editor/select-all",pt)){pt.preventDefault();const{firstBlockRootClientId:Ft,selectedBlockClientIds:s0}=mt(),nn=oe(Ft);if(!nn.length)return;if(Jr(s0,nn)&&Ft&&Ft!==Ne){Ue(Ft,!0);return}N(nn[0],nn[nn.length-1],null)}else if(et("core/block-editor/collapse-list-view",pt)){pt.preventDefault();const{firstBlockClientId:Ft}=mt(),s0=Y(Ft,!1);R(),he(s0)}else if(et("core/block-editor/group",pt)){const{blocksToUpdate:Ft}=mt();if(Ft.length>1&&se(Ft)){pt.preventDefault();const s0=ee(Ft),nn=be(),j0=l1(s0,nn);E(Ft,j0),At(m("Selected blocks are grouped."));const r1=X();H(void 0),Ue(r1[0],!1)}}}const Ke=O.useCallback(()=>{A(!0),W(e,!0)},[e,A,W]),Nt=O.useCallback(()=>{A(!1),W(e,!1)},[e,A,W]),zt=O.useCallback(pt=>{c(pt,e),pt.preventDefault()},[e,c]),Ue=O.useCallback((pt,We)=>{We&&c(void 0,pt,null,null),RP(pt,ve?.current)},[c,ve]),Xe=O.useCallback(pt=>{pt.preventDefault(),pt.stopPropagation(),h===!0?Q(e):h===!1&&he(e)},[e,he,Q,h]),ot=O.useCallback(pt=>{G&&pe&&(v.current?.click(),w(new window.DOMRect(pt.clientX,pt.clientY,0,0)),pt.preventDefault())},[pe,v,G]),Ct=O.useCallback(pt=>{pe&&pt.button===2&&pt.preventDefault()},[pe]),n0=O.useMemo(()=>{const{ownerDocument:pt}=x?.current||{};if(!(!_||!pt))return{ownerDocument:pt,getBoundingClientRect(){return _}}},[_]),o1=O.useCallback(()=>{w(void 0)},[w]);if(FSt({isSelected:s,rowItemRef:x,selectedClientIds:g}),!xe)return null;const B1=YSt(l,p,u),p1=ZSt(ye,k),Ot=p>0,k0=f&&Ot,f1=$("block-editor-list-view-block__mover-cell",{"is-visible":M||s}),dr=$("block-editor-list-view-block__menu-cell",{"is-visible":M||C});let pr;k0?pr=2:G||(pr=3);const si=$({"is-selected":s,"is-first-selected":C,"is-last-selected":T,"is-branch-selected":i,"is-synced-branch":z,"is-dragging":o,"has-single-cell":!G,"is-synced":ye?.isSynced,"is-draggable":S,"is-displacement-normal":t==="normal","is-displacement-up":t==="up","is-displacement-down":t==="down","is-after-dragged-blocks":n,"is-nesting":r}),fr=g.includes(e)?g:[e],N1=s&&g.length===1;return a.jsxs(DSt,{className:si,isDragged:o,onKeyDown:Mt,onMouseEnter:Ke,onMouseLeave:Nt,onFocus:Ke,onBlur:Nt,level:u,position:l,rowCount:d,path:b,id:`list-view-${V}-block-${e}`,"data-block":e,"data-expanded":q?h:void 0,ref:x,children:[a.jsx(d4,{className:"block-editor-list-view-block__contents-cell",colSpan:pr,ref:y,"aria-selected":!!s,children:({ref:pt,tabIndex:We,onFocus:rt})=>a.jsxs("div",{className:"block-editor-list-view-block__contents-container",children:[a.jsx(KSt,{block:xe,onClick:zt,onContextMenu:ot,onMouseDown:Ct,onToggleExpanded:Xe,isSelected:s,position:l,siblingBlockCount:p,level:u,ref:pt,tabIndex:N1?0:We,onFocus:rt,isExpanded:q?h:void 0,selectedClientIds:g,ariaDescribedBy:Me}),a.jsx(dme,{id:Me,children:[B1,p1].filter(Boolean).join(" ")})]})}),k0&&a.jsx(a.Fragment,{children:a.jsxs(d4,{className:f1,withoutGridItem:!0,children:[a.jsx(BW,{children:({ref:pt,tabIndex:We,onFocus:rt})=>a.jsx(Dhe,{orientation:"vertical",clientIds:[e],ref:pt,tabIndex:We,onFocus:rt})}),a.jsx(BW,{children:({ref:pt,tabIndex:We,onFocus:rt})=>a.jsx(Fhe,{orientation:"vertical",clientIds:[e],ref:pt,tabIndex:We,onFocus:rt})})]})}),G&&j&&a.jsx(d4,{className:dr,"aria-selected":!!s,ref:v,children:({ref:pt,tabIndex:We,onFocus:rt})=>a.jsx(j,{clientIds:fr,block:xe,icon:Ol,label:m("Options"),popoverProps:{anchor:n0},toggleProps:{ref:pt,className:"block-editor-list-view-block__menu",tabIndex:We,onClick:o1,onFocus:rt},disableOpenOnArrowDown:!0,expand:he,expandedState:de,setInsertedBlock:ge,__experimentalSelectBlock:Ue})})]})}const tCt=O.memo(hme);function mme(e,t,n,o){var r;return n?.includes(e.clientId)?0:((r=t[e.clientId])!==null&&r!==void 0?r:o)?1+e.innerBlocks.reduce(nCt(t,n,o),0):1}const nCt=(e,t,n)=>(o,r)=>{var s;return t?.includes(r.clientId)?o:((s=e[r.clientId])!==null&&s!==void 0?s:n)&&r.innerBlocks.length>0?o+mme(r,e,t,n):o+1},oCt=()=>{};function Mme(e){const{blocks:t,selectBlock:n=oCt,showBlockMovers:o,selectedClientIds:r,level:s=1,path:i="",isBranchSelected:c=!1,listPosition:l=0,fixedListWindow:u,isExpanded:d,parentId:p,shouldShowInnerBlocks:f=!0,isSyncedBranch:b=!1,showAppender:h=!0}=e,g=Ms(p),z=b||!!g?.isSynced,y=D(W=>p?W(F).canEditBlock(p):!0,[p]),{blockDropPosition:x,blockDropTargetIndex:v,firstDraggedBlockIndex:M,blockIndexes:A,expandedState:_,draggedClientIds:w}=xk();if(!y)return null;const k=h&&s===1,q=t.filter(Boolean),S=q.length,C=k?S+1:S;let T=l;return a.jsxs(a.Fragment,{children:[q.map((W,B)=>{var N;const{clientId:E,innerBlocks:L}=W;B>0&&(T+=mme(q[B-1],_,w,d));const I=!!w?.includes(E),{displacement:P,isAfterDraggedBlocks:H,isNesting:U}=eCt({blockIndexes:A,blockDropTargetIndex:v,blockDropPosition:x,clientId:E,firstDraggedBlockIndex:M,isDragged:I}),{itemInView:X}=u,Z=X(T),ne=B+1,oe=i.length>0?`${i}_${ne}`:`${ne}`,Y=!!L?.length,ee=Y&&f?(N=_[E])!==null&&N!==void 0?N:d:void 0,ie=QSt(E,r),se=c||ie&&Y,be=I||Z||ie&&E===r[0]||B===0||B===S-1;return a.jsxs(Wx,{value:!ie,children:[be&&a.jsx(tCt,{block:W,selectBlock:n,isSelected:ie,isBranchSelected:se,isDragged:I,level:s,position:ne,rowCount:C,siblingBlockCount:S,showBlockMovers:o,path:oe,isExpanded:I?!1:ee,listPosition:T,selectedClientIds:r,isSyncedBranch:z,displacement:P,isAfterDraggedBlocks:H,isNesting:U}),!be&&a.jsx("tr",{children:a.jsx("td",{className:"block-editor-list-view-placeholder"})}),Y&&ee&&!I&&a.jsx(Mme,{parentId:E,blocks:L,selectBlock:n,showBlockMovers:o,level:s+1,path:oe,listPosition:T+1,fixedListWindow:u,isBranchSelected:se,selectedClientIds:r,isExpanded:d,isSyncedBranch:z})]},E)}),k&&a.jsx(bfe,{level:s,setSize:C,positionInSet:C,isExpanded:!0,children:a.jsx(d4,{children:W=>a.jsx(pme,{clientId:p,nestingLevel:s,blockCount:S,...W})})})]})}const rCt=O.memo(Mme);function sCt({draggedBlockClientId:e,listViewRef:t,blockDropTarget:n}){const o=Ms(e),r=ed({clientId:e,context:"list-view"}),{rootClientId:s,clientId:i,dropPosition:c}=n||{},[l,u]=O.useMemo(()=>{if(!t.current)return[];const x=s?t.current.querySelector(`[data-block="${s}"]`):void 0,v=i?t.current.querySelector(`[data-block="${i}"]`):void 0;return[x,v]},[t,s,i]),d=u||l,p=ft(),f=O.useCallback((x,v)=>{if(!d)return 0;let M=d.offsetWidth;const A=Sr(d,"horizontal"),_=d.ownerDocument,w=A===_.body||A===_.documentElement;if(A&&!w){const k=A.getBoundingClientRect(),q=ft()?k.right-x.right:x.left-k.left,S=A.clientWidth;if(Sk.right)return M-=x.right-k.right,M}return M-v},[p,d]),b=O.useMemo(()=>{if(!d)return{};const x=d.getBoundingClientRect();return{width:f(x,0)}},[f,d]),h=O.useMemo(()=>{if(!d)return{};const x=Sr(d),v=d.ownerDocument,M=x===v.body||x===v.documentElement;if(x&&!M){const A=x.getBoundingClientRect(),_=d.getBoundingClientRect(),w=p?A.right-_.right:_.left-A.left;if(!p&&A.left>_.left)return{transform:`translateX( ${w}px )`};if(p&&A.right<_.right)return{transform:`translateX( ${w*-1}px )`}}return{}},[p,d]),g=O.useMemo(()=>{if(!l)return 1;const x=parseInt(l.getAttribute("aria-level"),10);return x?x+1:1},[l]),z=O.useMemo(()=>d?d.classList.contains("is-branch-selected"):!1,[d]),y=O.useMemo(()=>{if(!(!d||!(c==="top"||c==="bottom"||c==="inside")))return{contextElement:d,getBoundingClientRect(){const v=d.getBoundingClientRect();let M=v.left,A=0;const _=Sr(d,"horizontal"),w=d.ownerDocument,k=_===w.body||_===w.documentElement;if(_&&!k){const C=_.getBoundingClientRect(),T=p?_.offsetWidth-_.clientWidth:0;M{}}),a.jsx(b0,{icon:o?.icon,showColors:!0,context:"list-view"}),a.jsx(Je,{alignment:"center",className:"block-editor-list-view-block-select-button__label-wrapper",justify:"flex-start",spacing:1,children:a.jsx("span",{className:"block-editor-list-view-block-select-button__title",children:a.jsx(Ho,{ellipsizeMode:"auto",children:r})})})]}),a.jsx("div",{className:"block-editor-list-view-block__menu-cell"})]})})}):null}function iCt(){const{clearSelectedBlock:e,multiSelect:t,selectBlock:n}=ae(F),{getBlockName:o,getBlockParents:r,getBlockSelectionStart:s,getSelectedBlockClientIds:i,hasMultiSelection:c,hasSelectedBlock:l}=D(F),{getBlockType:u}=D($e);return{updateBlockSelection:O.useCallback(async(p,f,b,h)=>{if(!p?.shiftKey&&p?.keyCode!==Ea){n(f,h);return}p.preventDefault();const g=p.type==="keydown"&&p.keyCode===Ea,z=p.type==="keydown"&&(p.keyCode===xi||p.keyCode===Do||p.keyCode===Vb||p.keyCode===Ag);if(!z&&!l()&&!c()){n(f,null);return}const y=i(),x=[...r(f),f];if((g||z&&!y.some(_=>x.includes(_)))&&await e(),!g){let _=s(),w=f;z&&(!l()&&!c()&&(_=f),b&&(w=b));const k=r(_),q=r(w),{start:S,end:C}=JSt(_,w,k,q);await t(S,C,null)}const v=i();if((p.keyCode===Vb||p.keyCode===Ag)&&v.length>1)return;const M=y.filter(_=>!v.includes(_));let A;if(M.length===1){const _=u(o(M[0]))?.title;_&&(A=le(m("%s deselected."),_))}else M.length>1&&(A=le(m("%s blocks deselected."),M.length));A&&At(A,"assertive")},[e,o,u,r,s,i,c,l,t,n])}}function aCt(e){return O.useMemo(()=>{const n={};let o=0;const r=s=>{s.forEach(i=>{n[i.clientId]=o,o++,i.innerBlocks.length>0&&r(i.innerBlocks)})};return r(e),n},[e])}function cCt({blocks:e,rootClientId:t}){return D(n=>{const{getDraggedBlockClientIds:o,getSelectedBlockClientIds:r,getEnabledClientIdsTree:s}=Fe(n(F));return{selectedClientIds:r(),draggedClientIds:o(),clientIdsTree:e??s(t)}},[e,t])}function lCt({collapseAll:e,expand:t}){const{expandedBlock:n,getBlockParents:o}=D(r=>{const{getBlockParents:s,getExpandedBlock:i}=Fe(r(F));return{expandedBlock:i(),getBlockParents:s}},[]);O.useEffect(()=>{if(n){const r=o(n,!1);e(),t(r)}},[e,t,n,o])}const Cc=24;function uCt(e,t,n=1,o=!1){const r=o?t.right-n*Cc:t.left+n*Cc;return o?e.x>r:e.xr.clientId===o.rootClientId);return n}function gme(e,t){const n=e[t+1];return n&&n.isDraggedBlock?gme(e,t+1):n}function fCt(e,t,n=1,o=!1){const r=o?t.right-n*Cc:t.left+n*Cc;return(o?e.xr+Cc)&&e.y0&&r.isExpanded||fCt(t,i,l.length,n))){const p=r.isExpanded?0:r.innerBlockCount||0;return{rootClientId:r.clientId,clientId:r.clientId,blockIndex:p,dropPosition:"inside"}}if(u&&r.rootClientId&&uCt(t,i,l.length,n)){const p=gme(e,c),f=r.nestingLevel,b=p?p.nestingLevel:1;if(f&&b){const h=dCt(t,i,l.length,n),g=Math.max(Math.min(h,f-b),0);if(l[g]){let z=r.blockIndex;if(l[g].nestingLevel===p?.nestingLevel)z=p?.blockIndex;else for(let y=c;y>=0;y--){const x=e[y];if(x.rootClientId===l[g].rootClientId){z=x.blockIndex+1;break}}return{rootClientId:l[g].rootClientId,clientId:r.clientId,blockIndex:z,dropPosition:o}}}}if(!r.canInsertDraggedBlocksAsSibling)return;const d=u?1:0;return{rootClientId:r.rootClientId,clientId:r.clientId,blockIndex:r.blockIndex+d,dropPosition:o}}const mCt={leading:!1,trailing:!0};function MCt({dropZoneElement:e,expandedState:t,setExpandedState:n}){const{getBlockRootClientId:o,getBlockIndex:r,getBlockCount:s,getDraggedBlockClientIds:i,canInsertBlocks:c}=D(F),[l,u]=O.useState(),{rootClientId:d,blockIndex:p}=l||{},f=khe(d,p),b=ft(),h=t1(d),g=O.useCallback((M,A)=>{const{rootClientId:_}=A||{};_&&A?.dropPosition==="inside"&&!M[_]&&n({type:"expand",clientIds:[_]})},[n]),z=t8(g,500,mCt);O.useEffect(()=>{if(l?.dropPosition!=="inside"||h!==l?.rootClientId){z.cancel();return}z(t,l)},[t,h,l,z]);const y=i(),x=t8(O.useCallback((M,A)=>{const _={x:M.clientX,y:M.clientY},w=!!y?.length,q=Array.from(A.querySelectorAll("[data-block]")).map(C=>{const T=C.dataset.block,W=C.dataset.expanded==="true",B=C.classList.contains("is-dragging"),N=parseInt(C.getAttribute("aria-level"),10),E=o(T);return{clientId:T,isExpanded:W,rootClientId:E,blockIndex:r(T),element:C,nestingLevel:N||void 0,isDraggedBlock:w?B:!1,innerBlockCount:s(T),canInsertDraggedBlocksAsSibling:w?c(y,E):!0,canInsertDraggedBlocksAsChild:w?c(y,T):!0}}),S=hCt(q,_,b);S&&u(S)},[c,y,s,r,o,b]),50);return{ref:Rx({dropZoneElement:e,onDrop(M){x.cancel(),l&&f(M),u(void 0)},onDragLeave(){x.cancel(),u(null)},onDragOver(M){x(M,M.currentTarget)},onDragEnd(){x.cancel(),u(void 0)}}),target:l}}function gCt({firstSelectedBlockClientId:e,setExpandedState:t}){const[n,o]=O.useState(null),{selectedBlockParentClientIds:r}=D(s=>{const{getBlockParents:i}=s(F);return{selectedBlockParentClientIds:i(e,!1)}},[e]);return O.useEffect(()=>{n!==e&&r?.length&&t({type:"expand",clientIds:r})},[e,r,n,t]),{setSelectedTreeId:o}}function zCt({selectBlock:e}){const t=h0(),{getBlockOrder:n,getBlockRootClientId:o,getBlocksByClientId:r,getPreviousBlockClientId:s,getSelectedBlockClientIds:i,getSettings:c,canInsertBlockType:l,canRemoveBlocks:u}=D(F),{flashBlock:d,removeBlocks:p,replaceBlocks:f,insertBlocks:b}=ae(F),h=lP();return Et(g=>{function z(v,M){M&&e(void 0,v,null,null),RP(v,g)}function y(v){const M=i(),A=M.includes(v),_=A?M[0]:v,w=o(_);return{blocksToUpdate:A?M:[v],firstBlockClientId:_,firstBlockRootClientId:w,originallySelectedBlockClientIds:M}}function x(v){if(v.defaultPrevented||!g.contains(v.target.ownerDocument.activeElement))return;const A=v.target.ownerDocument.activeElement?.closest("[role=row]")?.dataset?.block;if(!A)return;const{blocksToUpdate:_,firstBlockClientId:w,firstBlockRootClientId:k,originallySelectedBlockClientIds:q}=y(A);if(_.length!==0){if(v.preventDefault(),v.type==="copy"||v.type==="cut"){_.length===1&&d(_[0]),h(v.type,_);const C=r(_);m2e(v,C,t)}if(v.type==="cut"){var S;if(!u(_))return;let C=(S=s(w))!==null&&S!==void 0?S:k;p(_,!1);const T=q.length>0&&i().length===0;C||(C=n()[0]),z(C,T)}else if(v.type==="paste"){const{__experimentalCanUserUseUnfilteredHTML:C}=c(),T=Nvt(v,C);if(_.length===1){const[W]=_;if(T.every(B=>l(B.name,W))){b(T,void 0,W),z(T[0]?.clientId,!1);return}}f(_,T,T.length-1,-1),z(T[0]?.clientId,!1)}}}return g.ownerDocument.addEventListener("copy",x),g.ownerDocument.addEventListener("cut",x),g.ownerDocument.addEventListener("paste",x),()=>{g.ownerDocument.removeEventListener("copy",x),g.ownerDocument.removeEventListener("cut",x),g.ownerDocument.removeEventListener("paste",x)}},[])}const OCt=(e,t)=>t.type==="clear"?{}:Array.isArray(t.clientIds)?{...e,...t.clientIds.reduce((n,o)=>({...n,[o]:t.type==="expand"}),{})}:e,IY=32;function zme({id:e,blocks:t,dropZoneElement:n,showBlockMovers:o=!1,isExpanded:r=!1,showAppender:s=!1,blockSettingsMenu:i=sme,rootClientId:c,description:l,onSelect:u,additionalBlockContent:d},p){t&&Re("`blocks` property in `wp.blockEditor.__experimentalListView`",{since:"6.3",alternative:"`rootClientId` property"});const f=He(zme),{clientIdsTree:b,draggedClientIds:h,selectedClientIds:g}=cCt({blocks:t,rootClientId:c}),z=aCt(b),{getBlock:y}=D(F),{visibleBlockCount:x,shouldShowInnerBlocks:v}=D(se=>{const{getGlobalBlockCount:be,getClientIdsOfDescendants:ye,__unstableGetEditorMode:xe}=se(F),K=h?.length>0?ye(h).length+1:0;return{visibleBlockCount:be()-K,shouldShowInnerBlocks:xe()!=="zoom-out"}},[h]),{updateBlockSelection:M}=iCt(),[A,_]=O.useReducer(OCt,{}),[w,k]=O.useState(null),{setSelectedTreeId:q}=gCt({firstSelectedBlockClientId:g[0],setExpandedState:_}),S=O.useCallback((se,be,ye)=>{M(se,be,null,ye),q(be),u&&u(y(be))},[q,M,u,y]),{ref:C,target:T}=MCt({dropZoneElement:n,expandedState:A,setExpandedState:_}),W=O.useRef(),B=zCt({selectBlock:S}),N=Gt([B,W,C,p]);O.useEffect(()=>{g?.length&&RP(g[0],W?.current)},[]);const E=O.useCallback(se=>{if(!se)return;const be=Array.isArray(se)?se:[se];_({type:"expand",clientIds:be})},[_]),L=O.useCallback(se=>{se&&_({type:"collapse",clientIds:[se]})},[_]),I=O.useCallback(()=>{_({type:"clear"})},[_]),P=O.useCallback(se=>{E(se?.dataset?.block)},[E]),H=O.useCallback(se=>{L(se?.dataset?.block)},[L]),U=O.useCallback((se,be,ye)=>{se.shiftKey&&M(se,be?.dataset?.block,ye?.dataset?.block)},[M]);lCt({collapseAll:I,expand:E});const X=h?.[0],{blockDropTargetIndex:Z,blockDropPosition:ne,firstDraggedBlockIndex:oe}=O.useMemo(()=>{let se,be;if(T?.clientId){const ye=z[T.clientId];se=ye===void 0||T?.dropPosition==="top"?ye:ye+1}else T===null&&(se=null);if(X){const ye=z[X];be=ye===void 0||T?.dropPosition==="top"?ye:ye+1}return{blockDropTargetIndex:se,blockDropPosition:T?.dropPosition,firstDraggedBlockIndex:be}},[T,z,X]),Y=O.useMemo(()=>({blockDropPosition:ne,blockDropTargetIndex:Z,blockIndexes:z,draggedClientIds:h,expandedState:A,expand:E,firstDraggedBlockIndex:oe,collapse:L,collapseAll:I,BlockSettingsMenu:i,listViewInstanceId:f,AdditionalBlockContent:d,insertedBlock:w,setInsertedBlock:k,treeGridElementRef:W,rootClientId:c}),[ne,Z,z,h,A,E,oe,L,I,i,f,d,w,k,c]),[ee]=lqe(W,IY,x,{expandedState:A,useWindowing:!0,windowOverscan:40});if(!b.length&&!s)return null;const ie=l&&`block-editor-list-view-description-${f}`;return a.jsxs(Wx,{value:!0,children:[a.jsx(sCt,{draggedBlockClientId:X,listViewRef:W,blockDropTarget:T}),l&&a.jsx(Kt,{id:ie,children:l}),a.jsx(Z2t,{id:e,className:$("block-editor-list-view-tree",{"is-dragging":h?.length>0&&Z!==void 0}),"aria-label":m("Block navigation structure"),ref:N,onCollapseRow:H,onExpandRow:P,onFocusRow:U,applicationAriaLabel:m("Block navigation structure"),"aria-describedby":ie,style:{"--wp-admin--list-view-dragged-items-height":h?.length?`${IY*(h.length-1)}px`:null},children:a.jsx(ume.Provider,{value:Y,children:a.jsx(rCt,{blocks:b,parentId:c,selectBlock:S,showBlockMovers:o,fixedListWindow:ee,selectedClientIds:g,isExpanded:r,shouldShowInnerBlocks:v,showAppender:s})})})]})}const Ome=O.forwardRef(zme),ACt=O.forwardRef((e,t)=>a.jsx(Ome,{ref:t,...e,showAppender:!1,rootClientId:null,onSelect:null,additionalBlockContent:null,blockSettingsMenu:void 0}));function yCt({genericPreviewBlock:e,style:t,className:n,activeStyle:o}){const r=Dt(e.name)?.example,s=Xhe(n,o,t),i=O.useMemo(()=>({...e,title:t.label||t.name,description:t.description,initialAttributes:{...e.attributes,className:s+" block-editor-block-styles__block-preview-container"},example:r}),[e,s]);return a.jsx(ahe,{item:i})}const DY=()=>{};function Ame({clientId:e,onSwitch:t=DY,onHoverClassName:n=DY}){const{onSelect:o,stylesToRender:r,activeStyle:s,genericPreviewBlock:i,className:c}=Khe({clientId:e,onSwitch:t}),[l,u]=O.useState(null),d=g0("medium","<");if(!r||r.length===0)return null;const p=jr(u,250),f=h=>{o(h),n(null),u(null),p.cancel()},b=h=>{var g;if(l===h){p.cancel();return}p(h),n((g=h?.name)!==null&&g!==void 0?g:null)};return a.jsxs("div",{className:"block-editor-block-styles",children:[a.jsx("div",{className:"block-editor-block-styles__variants",children:r.map(h=>{const g=h.label||h.name;return a.jsx(fe,{__next40pxDefaultSize:!0,className:$("block-editor-block-styles__item",{"is-active":s.name===h.name}),variant:"secondary",label:g,onMouseEnter:()=>b(h),onFocus:()=>b(h),onMouseLeave:()=>b(null),onBlur:()=>b(null),onClick:()=>f(h),"aria-current":s.name===h.name,children:a.jsx(Ho,{numberOfLines:1,className:"block-editor-block-styles__item-text",children:g})},h.name)})}),l&&!d&&a.jsx(Mn,{placement:"left-start",offset:34,focusOnMount:!1,children:a.jsx("div",{className:"block-editor-block-styles__preview-panel",onMouseLeave:()=>b(null),children:a.jsx(yCt,{activeStyle:s,className:c,genericPreviewBlock:i,style:l})})})]})}const FY={0:ule,1:XYe,2:GYe,3:KYe,4:YYe,5:ZYe,6:QYe};function $Y({level:e}){return FY[e]?a.jsx(xn,{icon:FY[e]}):null}const vCt=[1,2,3,4,5,6],xCt={className:"block-library-heading-level-dropdown"};function Qh({options:e=vCt,value:t,onChange:n}){return a.jsx(_l,{popoverProps:xCt,icon:a.jsx($Y,{level:t}),label:m("Change level"),controls:e.map(o=>{const r=o===t;return{icon:a.jsx($Y,{level:o}),title:o===0?m("Paragraph"):le(m("Heading %d"),o),isActive:r,onClick(){n(o)},role:"menuitemradio"}})})}function yme({icon:e=Af,label:t=m("Choose variation"),instructions:n=m("Select a variation to start with:"),variations:o,onSelect:r,allowSkip:s}){const i=$("block-editor-block-variation-picker",{"has-many-variations":o.length>4});return a.jsxs(D0,{icon:e,label:t,instructions:n,className:i,children:[a.jsx("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":m("Block variations"),children:o.map(c=>a.jsxs("li",{children:[a.jsx(fe,{__next40pxDefaultSize:!0,variant:"tertiary",icon:c.icon&&c.icon.src?c.icon.src:c.icon,iconSize:48,onClick:()=>r(c),className:"block-editor-block-variation-picker__variation",label:c.description||c.title}),a.jsx("span",{className:"block-editor-block-variation-picker__variation-label",children:c.title})]},c.name))}),s&&a.jsx("div",{className:"block-editor-block-variation-picker__skip",children:a.jsx(fe,{__next40pxDefaultSize:!1,variant:"link",onClick:()=>r(),children:m("Skip")})})]})}function _Ct({className:e,onSelectVariation:t,selectedValue:n,variations:o}){return a.jsxs("fieldset",{className:e,children:[a.jsx(Kt,{as:"legend",children:m("Transform to variation")}),o.map(r=>a.jsx(fe,{__next40pxDefaultSize:!1,icon:a.jsx(b0,{icon:r.icon,showColors:!0}),isPressed:n===r.name,label:n===r.name?r.title:le(m("Transform to %s"),r.title),onClick:()=>t(r.name),"aria-label":r.title,showTooltip:!0},r.name))]})}function wCt({className:e,onSelectVariation:t,selectedValue:n,variations:o}){const r=o.map(({name:s,title:i,description:c})=>({value:s,label:i,info:c}));return a.jsx(E1,{className:e,label:m("Transform to variation"),text:m("Transform to variation"),popoverProps:{position:"bottom center",className:`${e}__popover`},icon:md,toggleProps:{iconPosition:"right"},children:()=>a.jsx("div",{className:`${e}__container`,children:a.jsx(Yt,{children:a.jsx(Hp,{choices:r,value:n,onSelect:t})})})})}function kCt({className:e,onSelectVariation:t,selectedValue:n,variations:o}){return a.jsx("div",{className:e,children:a.jsx(wn,{label:m("Transform to variation"),value:n,hideLabelFromVision:!0,onChange:t,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,children:o.map(r=>a.jsx(Bi,{icon:a.jsx(b0,{icon:r.icon,showColors:!0}),value:r.name,label:n===r.name?r.title:le(m("Transform to %s"),r.title)},r.name))})})}function vme({blockClientId:e}){const{updateBlockAttributes:t}=ae(F),{activeBlockVariation:n,variations:o}=D(p=>{const{getActiveBlockVariation:f,getBlockVariations:b}=p($e),{getBlockName:h,getBlockAttributes:g}=p(F),z=e&&h(e);return{activeBlockVariation:f(z,g(e)),variations:z&&b(z,"transform")}},[e]),r=n?.name,s=O.useMemo(()=>{const p=new Set;return o?(o.forEach(f=>{f.icon&&p.add(f.icon?.src||f.icon)}),p.size===o.length):!1},[o]),i=p=>{t(e,{...o.find(({name:f})=>f===p).attributes})};if(!o?.length)return null;const c="block-editor-block-variation-transforms",u=o.length>5?_Ct:kCt,d=s?u:wCt;return a.jsx(d,{className:c,onSelectVariation:i,selectedValue:r,variations:o})}const qCt=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})}),SCt=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})}),CCt=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})}),RCt=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M4 4L20 4L20 5.5L4 5.5L4 4ZM10 7L14 7L14 17L10 17L10 7ZM20 18.5L4 18.5L4 20L20 20L20 18.5Z"})}),WCt=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M7 4H17V8L7 8V4ZM7 16L17 16V20L7 20V16ZM20 11.25H4V12.75H20V11.25Z"})}),DS={top:{icon:CCt,title:Oe("Align top","Block vertical alignment setting")},center:{icon:SCt,title:Oe("Align middle","Block vertical alignment setting")},bottom:{icon:qCt,title:Oe("Align bottom","Block vertical alignment setting")},stretch:{icon:RCt,title:Oe("Stretch to fill","Block vertical alignment setting")},"space-between":{icon:WCt,title:Oe("Space between","Block vertical alignment setting")}},TCt=["top","center","bottom"],ECt="top";function xme({value:e,onChange:t,controls:n=TCt,isCollapsed:o=!0,isToolbar:r}){function s(d){return()=>t(e===d?void 0:d)}const i=DS[e],c=DS[ECt],l=r?c0:_l,u=r?{isCollapsed:o}:{};return a.jsx(l,{icon:i?i.icon:c.icon,label:Oe("Change vertical alignment","Block vertical alignment setting label"),controls:n.map(d=>({...DS[d],isActive:e===d,role:o?"menuitemradio":void 0,onClick:s(d)})),...u})}const _me=e=>a.jsx(xme,{...e,isToolbar:!1}),wme=e=>a.jsx(xme,{...e,isToolbar:!0});function kme(e){return[...e].sort((n,o)=>e.filter(r=>r===o).length-e.filter(r=>r===n).length).shift()}function qme(e={}){const{flat:t,...n}=e;return t||kme(Object.values(n).filter(Boolean))||"px"}function WP(e={}){if(typeof e=="string")return e;const t=Object.values(e).map(c=>y0(c)),n=t.map(c=>{var l;return(l=c[0])!==null&&l!==void 0?l:""}),o=t.map(c=>c[1]),r=n.every(c=>c===n[0])?n[0]:"",s=kme(o);return r===0||r?`${r}${s}`:void 0}function Sme(e={}){const t=WP(e);return typeof e=="string"?!1:isNaN(parseFloat(t))}function Cme(e){return e?typeof e=="string"?!0:!!Object.values(e).filter(n=>!!n||n===0).length:!1}function BCt({onChange:e,selectedUnits:t,setSelectedUnits:n,values:o,...r}){let s=WP(o);s===void 0&&(s=qme(t));const c=Cme(o)&&Sme(o),l=c?m("Mixed"):null,u=p=>{const b=!isNaN(parseFloat(p))?p:void 0;e(b)},d=p=>{n({topLeft:p,topRight:p,bottomLeft:p,bottomRight:p})};return a.jsx(H0,{...r,"aria-label":m("Border radius"),disableUnits:c,isOnly:!0,value:s,onChange:u,onUnitChange:d,placeholder:l,size:"__unstable-large"})}const NCt={topLeft:m("Top left"),topRight:m("Top right"),bottomLeft:m("Bottom left"),bottomRight:m("Bottom right")};function LCt({onChange:e,selectedUnits:t,setSelectedUnits:n,values:o,...r}){const s=l=>u=>{if(!e)return;const p=!isNaN(parseFloat(u))?u:void 0;e({...c,[l]:p})},i=l=>u=>{const d={...t};d[l]=u,n(d)},c=typeof o!="string"?o:{topLeft:o,topRight:o,bottomLeft:o,bottomRight:o};return a.jsx("div",{className:"components-border-radius-control__input-controls-wrapper",children:Object.entries(NCt).map(([l,u])=>{const[d,p]=y0(c[l]),f=c[l]?p:t[l]||t.flat;return a.jsx(W1,{text:u,placement:"top",children:a.jsx("div",{className:"components-border-radius-control__tooltip-wrapper",children:a.jsx(H0,{...r,"aria-label":u,value:[d,f].join(""),onChange:s(l),onUnitChange:i(l),size:"__unstable-large"})})},l)})})}function jCt({isLinked:e,...t}){const n=m(e?"Unlink radii":"Link radii");return a.jsx(W1,{text:n,children:a.jsx(fe,{...t,className:"component-border-radius-control__linked-button",size:"small",icon:e?Qa:Xu,iconSize:24,"aria-label":n})})}const PCt={topLeft:void 0,topRight:void 0,bottomLeft:void 0,bottomRight:void 0},FS=0,ICt={px:100,em:20,rem:20};function DCt({onChange:e,values:t}){const[n,o]=O.useState(!Cme(t)||!Sme(t)),[r,s]=O.useState({flat:typeof t=="string"?y0(t)[1]:void 0,topLeft:y0(t?.topLeft)[1],topRight:y0(t?.topRight)[1],bottomLeft:y0(t?.bottomLeft)[1],bottomRight:y0(t?.bottomRight)[1]}),[i]=O0("spacing.units"),c=Fr({availableUnits:i||["px","em","rem"]}),l=qme(r),d=(c&&c.find(h=>h.value===l))?.step||1,[p]=y0(WP(t)),f=()=>o(!n),b=h=>{e(h!==void 0?`${h}${l}`:void 0)};return a.jsxs("fieldset",{className:"components-border-radius-control",children:[a.jsx(z0.VisualLabel,{as:"legend",children:m("Radius")}),a.jsxs("div",{className:"components-border-radius-control__wrapper",children:[n?a.jsxs(a.Fragment,{children:[a.jsx(BCt,{className:"components-border-radius-control__unit-control",values:t,min:FS,onChange:e,selectedUnits:r,setSelectedUnits:s,units:c}),a.jsx(T0,{__next40pxDefaultSize:!0,label:m("Border radius"),hideLabelFromVision:!0,className:"components-border-radius-control__range-control",value:p??"",min:FS,max:ICt[l],initialPosition:0,withInputField:!1,onChange:b,step:d,__nextHasNoMarginBottom:!0})]}):a.jsx(LCt,{min:FS,onChange:e,selectedUnits:r,setSelectedUnits:s,values:t||PCt,units:c}),a.jsx(jCt,{onClick:f,isLinked:n})]})]})}const FCt=Sn(e=>t=>{const[n,o]=O0("color.palette","color.custom"),{colors:r=n,disableCustomColors:s=!o}=t,i=r&&r.length>0||!s;return a.jsx(e,{...t,colors:r,disableCustomColors:s,hasColorsToChoose:i})},"withColorContext"),Rme=FCt(uw),{Tabs:Gf}=Fe(L0),$Ct=["colors","disableCustomColors","gradients","disableCustomGradients"],Ji={color:"color",gradient:"gradient"};function Wme({colors:e,gradients:t,disableCustomColors:n,disableCustomGradients:o,__experimentalIsRenderedInSidebar:r,className:s,label:i,onColorChange:c,onGradientChange:l,colorValue:u,gradientValue:d,clearable:p,showTitle:f=!0,enableAlpha:b,headingLevel:h}){const g=c&&(e&&e.length>0||!n),z=l&&(t&&t.length>0||!o);if(!g&&!z)return null;const y={[Ji.color]:a.jsx(uw,{value:u,onChange:z?v=>{c(v),l()}:c,colors:e,disableCustomColors:n,__experimentalIsRenderedInSidebar:r,clearable:p,enableAlpha:b,headingLevel:h}),[Ji.gradient]:a.jsx(Jrt,{value:d,onChange:g?v=>{l(v),c()}:l,gradients:t,disableCustomGradients:o,__experimentalIsRenderedInSidebar:r,clearable:p,headingLevel:h})},x=v=>a.jsx("div",{className:"block-editor-color-gradient-control__panel",children:y[v]});return a.jsx(z0,{__nextHasNoMarginBottom:!0,className:$("block-editor-color-gradient-control",s),children:a.jsx("fieldset",{className:"block-editor-color-gradient-control__fieldset",children:a.jsxs(Ye,{spacing:1,children:[f&&a.jsx("legend",{children:a.jsx("div",{className:"block-editor-color-gradient-control__color-indicator",children:a.jsx(z0.VisualLabel,{children:i})})}),g&&z&&a.jsx("div",{children:a.jsxs(Gf,{defaultTabId:d?Ji.gradient:!!g&&Ji.color,children:[a.jsxs(Gf.TabList,{children:[a.jsx(Gf.Tab,{tabId:Ji.color,children:m("Color")}),a.jsx(Gf.Tab,{tabId:Ji.gradient,children:m("Gradient")})]}),a.jsx(Gf.TabPanel,{tabId:Ji.color,className:"block-editor-color-gradient-control__panel",focusable:!1,children:y.color}),a.jsx(Gf.TabPanel,{tabId:Ji.gradient,className:"block-editor-color-gradient-control__panel",focusable:!1,children:y.gradient})]})}),!z&&x(Ji.color),!g&&x(Ji.gradient)]})})})}function VCt(e){const[t,n,o,r]=O0("color.palette","color.gradients","color.custom","color.customGradient");return a.jsx(Wme,{colors:t,gradients:n,disableCustomColors:!o,disableCustomGradients:!r,...e})}function Tme(e){return $Ct.every(t=>e.hasOwnProperty(t))?a.jsx(Wme,{...e}):a.jsx(VCt,{...e})}fs([bs,bf]);function S5({backgroundColor:e,fallbackBackgroundColor:t,fallbackTextColor:n,fallbackLinkColor:o,fontSize:r,isLargeText:s,textColor:i,linkColor:c,enableAlphaChecker:l=!1}){const u=e||t;if(!u)return null;const d=i||n,p=c||o;if(!d&&!p)return null;const f=[{color:d,description:m("text color")},{color:p,description:m("link color")}],b=Tt(u),h=b.alpha()<1,g=b.brightness(),z={level:"AA",size:s||s!==!1&&r>=24?"large":"small"};let y="",x="";for(const v of f){if(!v.color)continue;const M=Tt(v.color),A=M.isReadable(b,z),_=M.alpha()<1;if(!A){if(h||_)continue;y=gn(o?null:t)}),e&&a.jsx(HCt,{format:e,onChange:n})]})}function HCt({format:e,onChange:t}){var n;const r=[...[...new Set(["Y-m-d",Oe("n/j/Y","short date format"),Oe("n/j/Y g:i A","short date format with time"),Oe("M j, Y","medium date format"),Oe("M j, Y g:i A","medium date format with time"),Oe("F j, Y","long date format"),Oe("M j","short date format without the year")])].map((l,u)=>({key:`suggested-${u}`,name:po(l,nd),format:l})),{key:"human-diff",name:kw(nd),format:"human-diff"}],s={key:"custom",name:m("Custom"),className:"block-editor-date-format-picker__custom-format-select-control__custom-option",hint:m("Enter your own date format")},[i,c]=O.useState(()=>!!e&&!r.some(l=>l.format===e));return a.jsxs(Ye,{children:[a.jsx(Lh,{__next40pxDefaultSize:!0,label:m("Choose a format"),options:[...r,s],value:i?s:(n=r.find(l=>l.format===e))!==null&&n!==void 0?n:s,onChange:({selectedItem:l})=>{l===s?c(!0):(c(!1),t(l.format))}}),i&&a.jsx($t,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:m("Custom format"),hideLabelFromVision:!0,help:z1(m("Enter a date or time format string."),{Link:a.jsx(S1,{href:m("https://wordpress.org/documentation/article/customize-date-and-time-format/")})}),value:e,onChange:l=>t(l)})]})}function Bme({id:e,colorPalette:t,duotonePalette:n,disableCustomColors:o,disableCustomDuotone:r,value:s,onChange:i}){let c;s==="unset"?c=a.jsx(vf,{className:"block-editor-duotone-control__unset-indicator"}):s?c=a.jsx(Xpe,{values:s}):c=a.jsx(t0,{icon:BYe});const l=m("Apply duotone filter"),d=`${He(Bme,"duotone-control",e)}__description`;return a.jsx(B0,{popoverProps:{className:"block-editor-duotone-control__popover",headerTitle:m("Duotone")},renderToggle:({isOpen:p,onToggle:f})=>{const b=h=>{!p&&h.keyCode===Do&&(h.preventDefault(),f())};return a.jsx(bt,{showTooltip:!0,onClick:f,"aria-haspopup":"true","aria-expanded":p,onKeyDown:b,label:l,icon:c})},renderContent:()=>a.jsxs(Yt,{label:m("Duotone"),children:[a.jsx("p",{children:m("Create a two-tone color effect without losing your original image.")}),a.jsx(Upe,{"aria-label":l,"aria-describedby":d,colorPalette:t,duotonePalette:n,disableCustomColors:o,disableCustomDuotone:r,value:s,onChange:i})]})})}const UCt=(e,t)=>m(e?t?"Appearance":"Font style":"Font weight");function XCt(e){const{__next40pxDefaultSize:t=!1,onChange:n,hasFontStyles:o=!0,hasFontWeights:r=!0,fontFamilyFaces:s,value:{fontStyle:i,fontWeight:c},...l}=e,u=o||r,d=UCt(o,r),p={key:"default",name:m("Default"),style:{fontStyle:void 0,fontWeight:void 0}},{fontStyles:f,fontWeights:b,combinedStyleAndWeightOptions:h}=Ehe(s),g=()=>{const A=[p];return h&&A.push(...h),A},z=()=>{const A=[p];return f.forEach(({name:_,value:w})=>{A.push({key:w,name:_,style:{fontStyle:w,fontWeight:void 0}})}),A},y=()=>{const A=[p];return b.forEach(({name:_,value:w})=>{A.push({key:w,name:_,style:{fontStyle:void 0,fontWeight:w}})}),A},x=O.useMemo(()=>o&&r?g():o?z():y(),[e.options,f,b,h]),v=x.find(A=>A.style.fontStyle===i&&A.style.fontWeight===c)||x[0],M=()=>v?le(m(o?r?"Currently selected font appearance: %s":"Currently selected font style: %s":"Currently selected font weight: %s"),v.name):m("No selected font appearance");return u&&a.jsx(Lh,{...l,className:"components-font-appearance-control",__next40pxDefaultSize:t,label:d,describedBy:M(),options:x,value:v,onChange:({selectedItem:A})=>n(A.style)})}function GCt({__next40pxDefaultSize:e=!1,__nextHasNoMarginBottom:t=!1,value:n="",onChange:o,fontFamilies:r,...s}){const[i]=O0("typography.fontFamilies");if(r||(r=i),!r||r.length===0)return null;const c=[{value:"",label:m("Default")},...r.map(({fontFamily:l,name:u})=>({value:l,label:u||l}))];return t||Re("Bottom margin styles for wp.blockEditor.FontFamilyControl",{since:"6.7",version:"7.0",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version"}),a.jsx(i0,{__next40pxDefaultSize:e,__nextHasNoMarginBottom:t,label:m("Font"),options:c,value:n,onChange:o,labelPosition:"top",...s})}function KCt({__next40pxDefaultSize:e=!1,value:t,onChange:n,__unstableInputWidth:o="60px",...r}){const[s]=O0("spacing.units"),i=Fr({availableUnits:s||["px","em","rem"],defaultValues:{px:2,em:.2,rem:.2}});return a.jsx(H0,{__next40pxDefaultSize:e,...r,label:m("Letter spacing"),value:t,__unstableInputWidth:o,units:i,onChange:n})}const YCt=[{label:m("None"),value:"none",icon:tw},{label:m("Underline"),value:"underline",icon:HYe},{label:m("Strikethrough"),value:"line-through",icon:ole}];function ZCt({value:e,onChange:t,className:n}){return a.jsx(wn,{isDeselectable:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:m("Decoration"),className:$("block-editor-text-decoration-control",n),value:e,onChange:o=>{t(o===e?void 0:o)},children:YCt.map(o=>a.jsx(Bi,{value:o.value,icon:o.icon,label:o.label},o.value))})}const QCt=[{label:m("None"),value:"none",icon:tw},{label:m("Uppercase"),value:"uppercase",icon:UYe},{label:m("Lowercase"),value:"lowercase",icon:VYe},{label:m("Capitalize"),value:"capitalize",icon:LYe}];function JCt({className:e,value:t,onChange:n}){return a.jsx(wn,{isDeselectable:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:m("Letter case"),className:$("block-editor-text-transform-control",e),value:t,onChange:o=>{n(o===t?void 0:o)},children:QCt.map(o=>a.jsx(Bi,{value:o.value,icon:o.icon,label:o.label},o.value))})}const eRt=[{label:m("Horizontal"),value:"horizontal-tb",icon:cQe},{label:m("Vertical"),value:ft()?"vertical-lr":"vertical-rl",icon:lQe}];function tRt({className:e,value:t,onChange:n}){return a.jsx(wn,{isDeselectable:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:m("Orientation"),className:$("block-editor-writing-mode-control",e),value:t,onChange:o=>{n(o===t?void 0:o)},children:eRt.map(o=>a.jsx(Bi,{value:o.value,icon:o.icon,label:o.label},o.value))})}const nRt=({setting:e,children:t,panelId:n,...o})=>{const r=()=>{e.colorValue?e.onColorChange():e.gradientValue&&e.onGradientChange()};return a.jsx(Rt,{hasValue:()=>!!e.colorValue||!!e.gradientValue,label:e.label,onDeselect:r,isShownByDefault:e.isShownByDefault!==void 0?e.isShownByDefault:!0,...o,className:"block-editor-tools-panel-color-gradient-settings__item",panelId:n,resetAllFilter:e.resetAllFilter,children:t})},oRt=({colorValue:e,label:t})=>a.jsxs(Je,{justify:"flex-start",children:[a.jsx(vf,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:e}),a.jsx(Ht,{className:"block-editor-panel-color-gradient-settings__color-name",title:t,children:t})]}),rRt=e=>({onToggle:t,isOpen:n})=>{const{colorValue:o,label:r}=e,s={onClick:t,className:$("block-editor-panel-color-gradient-settings__dropdown",{"is-open":n}),"aria-expanded":n};return a.jsx(fe,{__next40pxDefaultSize:!1,...s,children:a.jsx(oRt,{colorValue:o,label:r})})};function _k({colors:e,disableCustomColors:t,disableCustomGradients:n,enableAlpha:o,gradients:r,settings:s,__experimentalIsRenderedInSidebar:i,...c}){let l;return i&&(l={placement:"left-start",offset:36,shift:!0}),a.jsx(a.Fragment,{children:s.map((u,d)=>{var p;const f={clearable:!1,colorValue:u.colorValue,colors:e,disableCustomColors:t,disableCustomGradients:n,enableAlpha:o,gradientValue:u.gradientValue,gradients:r,label:u.label,onColorChange:u.onColorChange,onGradientChange:u.onGradientChange,showTitle:!1,__experimentalIsRenderedInSidebar:i,...u},b={colorValue:(p=u.gradientValue)!==null&&p!==void 0?p:u.colorValue,label:u.label};return u&&a.jsx(nRt,{setting:u,...c,children:a.jsx(B0,{popoverProps:l,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:rRt(b),renderContent:()=>a.jsx(Ni,{paddingSize:"none",children:a.jsx("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:a.jsx(Tme,{...f})})})})},d)})})}function Sf(){const[e,t,n,o,r,s,i,c,l,u]=O0("color.custom","color.palette.custom","color.palette.theme","color.palette.default","color.defaultPalette","color.customGradient","color.gradients.custom","color.gradients.theme","color.gradients.default","color.defaultGradients"),d={disableCustomColors:!e,disableCustomGradients:!s};return d.colors=O.useMemo(()=>{const p=[];return n&&n.length&&p.push({name:Oe("Theme","Indicates this palette comes from the theme."),colors:n}),r&&o&&o.length&&p.push({name:Oe("Default","Indicates this palette comes from WordPress."),colors:o}),t&&t.length&&p.push({name:Oe("Custom","Indicates this palette comes from the theme."),colors:t}),p},[t,n,o,r]),d.gradients=O.useMemo(()=>{const p=[];return c&&c.length&&p.push({name:Oe("Theme","Indicates this palette comes from the theme."),gradients:c}),u&&l&&l.length&&p.push({name:Oe("Default","Indicates this palette comes from WordPress."),gradients:l}),i&&i.length&&p.push({name:Oe("Custom","Indicates this palette is created by the user."),gradients:i}),p},[i,c,l,u]),d.hasColorsOrGradients=!!d.colors.length||!!d.gradients.length,d}const VY={px:{max:1e3,step:1},"%":{max:100,step:1},vw:{max:100,step:1},vh:{max:100,step:1},em:{max:50,step:.1},rem:{max:50,step:.1},svw:{max:100,step:1},lvw:{max:100,step:1},dvw:{max:100,step:1},svh:{max:100,step:1},lvh:{max:100,step:1},dvh:{max:100,step:1},vi:{max:100,step:1},svi:{max:100,step:1},lvi:{max:100,step:1},dvi:{max:100,step:1},vb:{max:100,step:1},svb:{max:100,step:1},lvb:{max:100,step:1},dvb:{max:100,step:1},vmin:{max:100,step:1},svmin:{max:100,step:1},lvmin:{max:100,step:1},dvmin:{max:100,step:1},vmax:{max:100,step:1},svmax:{max:100,step:1},lvmax:{max:100,step:1},dvmax:{max:100,step:1}};function sRt({label:e=m("Height"),onChange:t,value:n}){var o,r;const s=parseFloat(n),[i]=O0("spacing.units"),c=Fr({availableUnits:i||["%","px","em","rem","vh","vw"]}),l=O.useMemo(()=>y0(n),[n])[1]||c[0]?.value||"px",u=p=>{t([p,l].join(""))},d=p=>{const[f,b]=y0(n);["em","rem"].includes(p)&&b==="px"?t((f/16).toFixed(2)+p):["em","rem"].includes(b)&&p==="px"?t(Math.round(f*16)+p):["%","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax"].includes(p)&&f>100&&t(100+p)};return a.jsxs("fieldset",{className:"block-editor-height-control",children:[a.jsx(z0.VisualLabel,{as:"legend",children:e}),a.jsxs(Q0,{children:[a.jsx(Ht,{isBlock:!0,children:a.jsx(H0,{value:n,units:c,onChange:t,onUnitChange:d,min:0,size:"__unstable-large",label:e,hideLabelFromVision:!0})}),a.jsx(Ht,{isBlock:!0,children:a.jsx(or,{marginX:2,marginBottom:0,children:a.jsx(T0,{__next40pxDefaultSize:!0,value:s,min:0,max:(o=VY[l]?.max)!==null&&o!==void 0?o:100,step:(r=VY[l]?.step)!==null&&r!==void 0?r:.1,withInputField:!1,onChange:u,__nextHasNoMarginBottom:!0,label:e,hideLabelFromVision:!0})})})]})]})}const Nme=100,Lme=300,jme={placement:"bottom-start"};function iRt({crop:e,rotation:t,url:n,id:o,onSaveImage:r,onFinishEditing:s}){const{createErrorNotice:i}=ae(Ze),[c,l]=O.useState(!1),u=O.useCallback(()=>{l(!1),s()},[s]),d=O.useCallback(()=>{l(!0);const p=[];t>0&&p.push({type:"rotate",args:{angle:t}}),(e.width<99.9||e.height<99.9)&&p.push({type:"crop",args:{left:e.x,top:e.y,width:e.width,height:e.height}}),ct({path:`/wp/v2/media/${o}/edit`,method:"POST",data:{src:n,modifiers:p}}).then(f=>{r({id:f.id,url:f.source_url})}).catch(f=>{i(le(m("Could not edit image. %s"),Rr(f.message)),{id:"image-editing-error",type:"snackbar"})}).finally(()=>{l(!1),s()})},[e,t,o,n,r,i,s]);return O.useMemo(()=>({isInProgress:c,apply:d,cancel:u}),[c,d,u])}function aRt({url:e,naturalWidth:t,naturalHeight:n}){const[o,r]=O.useState(),[s,i]=O.useState(),[c,l]=O.useState({x:0,y:0}),[u,d]=O.useState(100),[p,f]=O.useState(0),b=t/n,[h,g]=O.useState(b),z=O.useCallback(()=>{const y=(p+90)%360;let x=b;if(p%180===90&&(x=1/b),y===0){r(),f(y),g(b),l(_=>({x:-(_.y*x),y:_.x*x}));return}function v(_){const w=document.createElement("canvas");let k=0,q=0;y%180?(w.width=_.target.height,w.height=_.target.width):(w.width=_.target.width,w.height=_.target.height),(y===90||y===180)&&(k=w.width),(y===270||y===180)&&(q=w.height);const S=w.getContext("2d");S.translate(k,q),S.rotate(y*Math.PI/180),S.drawImage(_.target,0,0),w.toBlob(C=>{r(URL.createObjectURL(C)),f(y),g(w.width/w.height),l(T=>({x:-(T.y*x),y:T.x*x}))})}const M=new window.Image;M.src=e,M.onload=v;const A=_n("media.crossOrigin",void 0,e);typeof A=="string"&&(M.crossOrigin=A)},[p,b,e]);return O.useMemo(()=>({editedUrl:o,setEditedUrl:r,crop:s,setCrop:i,position:c,setPosition:l,zoom:u,setZoom:d,rotation:p,setRotation:f,rotateClockwise:z,aspect:h,setAspect:g,defaultAspect:b}),[o,s,c,u,p,z,h,b])}const Pme=O.createContext({}),lO=()=>O.useContext(Pme);function cRt({id:e,url:t,naturalWidth:n,naturalHeight:o,onFinishEditing:r,onSaveImage:s,children:i}){const c=aRt({url:t,naturalWidth:n,naturalHeight:o}),l=iRt({id:e,url:t,onSaveImage:s,onFinishEditing:r,...c}),u=O.useMemo(()=>({...c,...l}),[c,l]);return a.jsx(Pme.Provider,{value:u,children:i})}function ey({aspectRatios:e,isDisabled:t,label:n,onClick:o,value:r}){return a.jsx(Yt,{label:n,children:e.map(({name:s,slug:i,ratio:c})=>a.jsx(tt,{disabled:t,onClick:()=>{o(c)},role:"menuitemradio",isSelected:c===r,icon:c===r?no:void 0,children:s},i))})}function lRt(e){const[t,n,...o]=e.split("/").map(Number);return t<=0||n<=0||Number.isNaN(t)||Number.isNaN(n)||o.length?NaN:n?t/n:t}function $S({ratio:e,...t}){return{ratio:lRt(e),...t}}function uRt({toggleProps:e}){const{isInProgress:t,aspect:n,setAspect:o,defaultAspect:r}=lO(),[s,i,c]=O0("dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios");return a.jsx(E1,{icon:zYe,label:m("Aspect Ratio"),popoverProps:jme,toggleProps:e,children:({onClose:l})=>a.jsxs(a.Fragment,{children:[a.jsx(ey,{isDisabled:t,onClick:u=>{o(u),l()},value:n,aspectRatios:[{slug:"original",name:m("Original"),aspect:r},...c?s.map($S).filter(({ratio:u})=>u===1):[]]}),i?.length>0&&a.jsx(ey,{label:m("Theme"),isDisabled:t,onClick:u=>{o(u),l()},value:n,aspectRatios:i}),c&&a.jsx(ey,{label:m("Landscape"),isDisabled:t,onClick:u=>{o(u),l()},value:n,aspectRatios:s.map($S).filter(({ratio:u})=>u>1)}),c&&a.jsx(ey,{label:m("Portrait"),isDisabled:t,onClick:u=>{o(u),l()},value:n,aspectRatios:s.map($S).filter(({ratio:u})=>u<1)})]})})}var HY=!1,Kd,qT,ST,z4,O4,Ime,A4,CT,RT,WT,Dme,TT,ET,Fme,$me;function mr(){if(!HY){HY=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(TT=/\b(iPhone|iP[ao]d)/.exec(e),ET=/\b(iP[ao]d)/.exec(e),WT=/Android/i.exec(e),Fme=/FBAN\/\w+;/i.exec(e),$me=/Mobile/i.exec(e),Dme=!!/Win64/.exec(e),t){Kd=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Kd&&document&&document.documentMode&&(Kd=document.documentMode);var o=/(?:Trident\/(\d+.\d+))/.exec(e);Ime=o?parseFloat(o[1])+4:Kd,qT=t[2]?parseFloat(t[2]):NaN,ST=t[3]?parseFloat(t[3]):NaN,z4=t[4]?parseFloat(t[4]):NaN,z4?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),O4=t&&t[1]?parseFloat(t[1]):NaN):O4=NaN}else Kd=qT=ST=O4=z4=NaN;if(n){if(n[1]){var r=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);A4=r?parseFloat(r[1].replace("_",".")):!0}else A4=!1;CT=!!n[2],RT=!!n[3]}else A4=CT=RT=!1}}var BT={ie:function(){return mr()||Kd},ieCompatibilityMode:function(){return mr()||Ime>Kd},ie64:function(){return BT.ie()&&Dme},firefox:function(){return mr()||qT},opera:function(){return mr()||ST},webkit:function(){return mr()||z4},safari:function(){return BT.webkit()},chrome:function(){return mr()||O4},windows:function(){return mr()||CT},osx:function(){return mr()||A4},linux:function(){return mr()||RT},iphone:function(){return mr()||TT},mobile:function(){return mr()||TT||ET||WT||$me},nativeApp:function(){return mr()||Fme},android:function(){return mr()||WT},ipad:function(){return mr()||ET}},dRt=BT,ty=!!(typeof window<"u"&&window.document&&window.document.createElement),pRt={canUseDOM:ty,canUseWorkers:typeof Worker<"u",canUseEventListeners:ty&&!!(window.addEventListener||window.attachEvent),canUseViewport:ty&&!!window.screen,isInWorker:!ty},fRt=pRt,Vme=fRt,Hme;Vme.canUseDOM&&(Hme=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/** + `}]})}):a.jsx("div",{className:"block-editor-inserter__preview-content-missing",children:m("No preview available.")})}),!l&&a.jsx(sP,{title:o,icon:r,description:s})]})}function A_t(e,t){const[n,o]=O.useState(!1);return O.useEffect(()=>{n&&At(m("Use left and right arrow keys to move through blocks"))},[n]),a.jsx("div",{ref:t,role:"listbox","aria-orientation":"horizontal",onFocus:()=>{o(!0)},onBlur:r=>{!r.currentTarget.contains(r.relatedTarget)&&o(!1)},...e})}const y_t=O.forwardRef(A_t),{CompositeGroupV2:v_t}=Fe(L0);function x_t(e,t){return a.jsx(v_t,{role:"presentation",ref:t,...e})}const __t=O.forwardRef(x_t),{CompositeItemV2:w_t}=Fe(L0);function k_t({isFirst:e,as:t,children:n,...o},r){return a.jsx(w_t,{ref:r,role:"option",accessibleWhenDisabled:!0,...o,render:s=>{const i={...s,tabIndex:e?0:s.tabIndex};return t?a.jsx(t,{...i,children:n}):typeof n=="function"?n(i):a.jsx(fe,{__next40pxDefaultSize:!1,...i,children:n})}})}const q_t=O.forwardRef(k_t),{CompositeV2:S_t}=Fe(L0);function AP({children:e}){return a.jsx(S_t,{focusShift:!0,focusWrap:"horizontal",render:a.jsx(a.Fragment,{}),children:e})}function che({count:e,icon:t,isPattern:n,fadeWhenDisabled:o}){const r=n&&m("Pattern");return a.jsx("div",{className:"block-editor-block-draggable-chip-wrapper",children:a.jsx("div",{className:"block-editor-block-draggable-chip","data-testid":"block-draggable-chip",children:a.jsxs(Q0,{justify:"center",className:"block-editor-block-draggable-chip__content",children:[a.jsx(Ht,{children:t?a.jsx(b0,{icon:t}):r||le(a0("%d block","%d blocks",e),e)}),a.jsx(Ht,{children:a.jsx(b0,{icon:K_})}),o&&a.jsx(Ht,{className:"block-editor-block-draggable-chip__disabled",children:a.jsx("span",{className:"block-editor-block-draggable-chip__disabled-icon"})})]})})})}const yP=({isEnabled:e,blocks:t,icon:n,children:o,pattern:r})=>{const s={type:"inserter",blocks:t},i=D(u=>{const{getBlockType:d}=u($e);return t.length===1&&d(t[0].name)?.icon},[t]),{startDragging:c,stopDragging:l}=Fe(ae(F));return e?a.jsx(Vpe,{__experimentalTransferDataType:"wp-blocks",transferData:s,onDragStart:u=>{c();const d=r?.type===X1.user&&r?.syncStatus!=="unsynced"?[me("core/block",{ref:r.id})]:t;u.dataTransfer.setData("text/html",Pr(d))},onDragEnd:()=>{l()},__experimentalDragComponent:a.jsx(che,{count:t.length,icon:n||!r&&i,isPattern:!!r}),children:({onDraggableStart:u,onDraggableEnd:d})=>o({draggable:!0,onDragStart:u,onDragEnd:d})}):o({draggable:!1,onDragStart:void 0,onDragEnd:void 0})};function C_t({className:e,isFirst:t,item:n,onSelect:o,onHover:r,isDraggable:s,...i}){const c=O.useRef(!1),l=n.icon?{backgroundColor:n.icon.background,color:n.icon.foreground}:{},u=O.useMemo(()=>[me(n.name,n.initialAttributes,ju(n.innerBlocks))],[n.name,n.initialAttributes,n.innerBlocks]),d=dd(n)&&n.syncStatus!=="unsynced"||mh(n);return a.jsx(yP,{isEnabled:s&&!n.isDisabled,blocks:u,icon:n.icon,children:({draggable:p,onDragStart:f,onDragEnd:b})=>a.jsx("div",{className:$("block-editor-block-types-list__list-item",{"is-synced":d}),draggable:p,onDragStart:h=>{c.current=!0,f&&(r(null),f(h))},onDragEnd:h=>{c.current=!1,b&&b(h)},children:a.jsxs(q_t,{isFirst:t,className:$("block-editor-block-types-list__item",e),disabled:n.isDisabled,onClick:h=>{h.preventDefault(),o(n,Ta()?h.metaKey:h.ctrlKey),r(null)},onKeyDown:h=>{const{keyCode:g}=h;g===y1&&(h.preventDefault(),o(n,Ta()?h.metaKey:h.ctrlKey),r(null))},onMouseEnter:()=>{c.current||r(n)},onMouseLeave:()=>r(null),...i,children:[a.jsx("span",{className:"block-editor-block-types-list__item-icon",style:l,children:a.jsx(b0,{icon:n.icon,showColors:!0})}),a.jsx("span",{className:"block-editor-block-types-list__item-title",children:a.jsx(Ho,{numberOfLines:3,children:n.title})})]})})})}const R_t=O.memo(C_t);function W_t(e,t){const n=[];for(let o=0,r=e.length;o{},children:o,label:r,isDraggable:s=!0}){const i="block-editor-block-types-list",c=He(Rb,i);return a.jsxs(y_t,{className:i,"aria-label":r,children:[W_t(e,3).map((l,u)=>a.jsx(__t,{children:l.map((d,p)=>a.jsx(R_t,{item:d,className:AN(d.id),onSelect:t,onHover:n,isDraggable:s&&!d.isDisabled,isFirst:u===0&&p===0,rowId:`${c}-${u}`},d.id))},u)),o]})}function Wb({title:e,icon:t,children:n}){return a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"block-editor-inserter__panel-header",children:[a.jsx("h2",{className:"block-editor-inserter__panel-title",children:e}),a.jsx(xn,{icon:t})]}),a.jsx("div",{className:"block-editor-inserter__panel-content",children:n})]})}function J2(){return a.jsxs("div",{className:"block-editor-inserter__no-results",children:[a.jsx(t0,{className:"block-editor-inserter__no-results-icon",icon:U_}),a.jsx("p",{children:m("No results found.")})]})}const T_t=e=>e.name.split("/")[0],E_t=6,B_t=[];function MY({items:e,collections:t,categories:n,onSelectItem:o,onHover:r,showMostUsedBlocks:s,className:i}){const c=O.useMemo(()=>H3(e,"frecency","desc").slice(0,E_t),[e]),l=O.useMemo(()=>e.filter(h=>!h.category),[e]),u=O.useMemo(()=>{const h={...t};return Object.keys(t).forEach(g=>{h[g]=e.filter(z=>T_t(z)===g),h[g].length===0&&delete h[g]}),h},[e,t]);O.useEffect(()=>()=>r(null),[]);const d=Gs(n),p=n.length===d.length,f=O.useMemo(()=>Object.entries(t),[t]),b=Gs(p?f:B_t);return a.jsxs("div",{className:i,children:[s&&e.length>3&&!!c.length&&a.jsx(Wb,{title:Oe("Most used","blocks"),children:a.jsx(Rb,{items:c,onSelect:o,onHover:r,label:Oe("Most used","blocks")})}),d.map(h=>{const g=e.filter(z=>z.category===h.slug);return!g||!g.length?null:a.jsx(Wb,{title:h.title,icon:h.icon,children:a.jsx(Rb,{items:g,onSelect:o,onHover:r,label:h.title})},h.slug)}),p&&l.length>0&&a.jsx(Wb,{className:"block-editor-inserter__uncategorized-blocks-panel",title:m("Uncategorized"),children:a.jsx(Rb,{items:l,onSelect:o,onHover:r,label:m("Uncategorized")})}),b.map(([h,g])=>{const z=u[h];return!z||!z.length?null:a.jsx(Wb,{title:g.title,icon:g.icon,children:a.jsx(Rb,{items:z,onSelect:o,onHover:r,label:g.title})},h)})]})}function N_t({rootClientId:e,onInsert:t,onHover:n,showMostUsedBlocks:o},r){const[s,i,c,l]=Pw(e,t);if(!s.length)return a.jsx(J2,{});const u=[],d=[];for(const p of s)p.category!=="reusable"&&(e&&p.rootClientId===e?u.push(p):d.push(p));return a.jsx(AP,{children:a.jsxs("div",{ref:r,children:[!!u.length&&a.jsx(a.Fragment,{children:a.jsx(MY,{items:u,categories:i,collections:c,onSelectItem:l,onHover:n,showMostUsedBlocks:o,className:"block-editor-inserter__insertable-blocks-at-selection"})}),a.jsx(MY,{items:d,categories:i,collections:c,onSelectItem:l,onHover:n,showMostUsedBlocks:o,className:"block-editor-inserter__all-blocks"})]})})}const L_t=O.forwardRef(N_t);function j_t({selectedCategory:e,patternCategories:t,onClickCategory:n}){const o="block-editor-block-patterns-explorer__sidebar";return a.jsx("div",{className:`${o}__categories-list`,children:t.map(({name:r,label:s})=>a.jsx(fe,{__next40pxDefaultSize:!1,label:s,className:`${o}__categories-list__item`,isPressed:e===r,onClick:()=>{n(r)},children:s},r))})}function P_t({searchValue:e,setSearchValue:t}){return a.jsx("div",{className:"block-editor-block-patterns-explorer__search",children:a.jsx(xl,{__nextHasNoMarginBottom:!0,onChange:t,value:e,label:m("Search for patterns"),placeholder:m("Search")})})}function I_t({selectedCategory:e,patternCategories:t,onClickCategory:n,searchValue:o,setSearchValue:r}){return a.jsxs("div",{className:"block-editor-block-patterns-explorer__sidebar",children:[a.jsx(P_t,{searchValue:o,setSearchValue:r}),!o&&a.jsx(j_t,{selectedCategory:e,patternCategories:t,onClickCategory:n})]})}function lhe({currentPage:e,numPages:t,changePage:n,totalItems:o}){return a.jsxs(Ye,{className:"block-editor-patterns__grid-pagination-wrapper",children:[a.jsx(l0,{variant:"muted",children:le(a0("%s item","%s items",o),o)}),t>1&&a.jsxs(Je,{expanded:!1,spacing:3,justify:"flex-start",className:"block-editor-patterns__grid-pagination",children:[a.jsxs(Je,{expanded:!1,spacing:1,className:"block-editor-patterns__grid-pagination-previous",children:[a.jsx(fe,{__next40pxDefaultSize:!1,variant:"tertiary",onClick:()=>n(1),disabled:e===1,"aria-label":m("First page"),accessibleWhenDisabled:!0,children:a.jsx("span",{children:"«"})}),a.jsx(fe,{__next40pxDefaultSize:!1,variant:"tertiary",onClick:()=>n(e-1),disabled:e===1,"aria-label":m("Previous page"),accessibleWhenDisabled:!0,children:a.jsx("span",{children:"‹"})})]}),a.jsx(l0,{variant:"muted",children:le(Oe("%1$s of %2$s","paging"),e,t)}),a.jsxs(Je,{expanded:!1,spacing:1,className:"block-editor-patterns__grid-pagination-next",children:[a.jsx(fe,{__next40pxDefaultSize:!1,variant:"tertiary",onClick:()=>n(e+1),disabled:e===t,"aria-label":m("Next page"),accessibleWhenDisabled:!0,children:a.jsx("span",{children:"›"})}),a.jsx(fe,{variant:"tertiary",onClick:()=>n(t),disabled:e===t,"aria-label":m("Last page"),size:"default",accessibleWhenDisabled:!0,children:a.jsx("span",{children:"»"})})]})]})]})}const{CompositeV2:D_t,CompositeItemV2:F_t}=Fe(L0),$_t=({showTooltip:e,title:t,children:n})=>e?a.jsx(W1,{text:t,children:n}):a.jsx(a.Fragment,{children:n});function uhe({id:e,isDraggable:t,pattern:n,onClick:o,onHover:r,showTitle:s=!0,showTooltip:i,category:c}){const[l,u]=O.useState(!1),{blocks:d,viewportWidth:p}=n,b=`block-editor-block-patterns-list__item-description-${He(uhe)}`,h=O.useMemo(()=>!c||!t?d:(d??[]).map(g=>{const z=pn(g);return z.attributes.metadata?.categories?.includes(c)&&(z.attributes.metadata.categories=[c]),z}),[d,t,c]);return a.jsx(yP,{isEnabled:t,blocks:h,pattern:n,children:({draggable:g,onDragStart:z,onDragEnd:y})=>a.jsx("div",{className:"block-editor-block-patterns-list__list-item",draggable:g,onDragStart:x=>{u(!0),z&&(r?.(null),z(x))},onDragEnd:x=>{u(!1),y&&y(x)},children:a.jsx($_t,{showTooltip:i&&!n.type!==X1.user,title:n.title,children:a.jsxs(F_t,{render:a.jsx("div",{role:"option","aria-label":n.title,"aria-describedby":n.description?b:void 0,className:$("block-editor-block-patterns-list__item",{"block-editor-block-patterns-list__list-item-synced":n.type===X1.user&&!n.syncStatus})}),id:e,onClick:()=>{o(n,d),r?.(null)},onMouseEnter:()=>{l||r?.(n)},onMouseLeave:()=>r?.(null),children:[a.jsx(lk,{blocks:d,viewportWidth:p}),s&&a.jsxs(Je,{className:"block-editor-patterns__pattern-details",spacing:2,children:[n.type===X1.user&&!n.syncStatus&&a.jsx("div",{className:"block-editor-patterns__pattern-icon-wrapper",children:a.jsx(t0,{className:"block-editor-patterns__pattern-icon",icon:Gu})}),(!i||n.type===X1.user)&&a.jsx("div",{className:"block-editor-block-patterns-list__item-title",children:n.title})]}),!!n.description&&a.jsx(Kt,{id:b,children:n.description})]})})})})}function V_t(){return a.jsx("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}function H_t({isDraggable:e,blockPatterns:t,shownPatterns:n,onHover:o,onClickPattern:r,orientation:s,label:i=m("Block patterns"),category:c,showTitle:l=!0,showTitlesAsTooltip:u,pagingProps:d},p){const[f,b]=O.useState(void 0);return O.useEffect(()=>{const h=t.find(g=>n.includes(g))?.name;b(h)},[n,t]),a.jsxs(D_t,{orientation:s,activeId:f,setActiveId:b,role:"listbox",className:"block-editor-block-patterns-list","aria-label":i,ref:p,children:[t.map(h=>n.includes(h)?a.jsx(uhe,{id:h.name,pattern:h,onClick:r,onHover:o,isDraggable:e,showTitle:l,showTooltip:u,category:c},h.name):a.jsx(V_t,{},h.name)),d&&a.jsx(lhe,{...d})]})}const oc=O.forwardRef(H_t);function gY({destinationRootClientId:e,destinationIndex:t,rootClientId:n,registry:o}){if(n===e)return t;const r=["",...o.select(F).getBlockParents(e),e],s=r.indexOf(n);return s!==-1?o.select(F).getBlockIndex(r[s+1])+1:o.select(F).getBlockOrder(n).length}function uk({rootClientId:e="",insertionIndex:t,clientId:n,isAppender:o,onSelect:r,shouldFocusBlock:s=!0,selectBlockOnInsert:i=!0}){const c=h0(),{getSelectedBlock:l}=D(F),{destinationRootClientId:u,destinationIndex:d}=D(x=>{const{getSelectedBlockClientId:v,getBlockRootClientId:M,getBlockIndex:A,getBlockOrder:_}=x(F),w=v();let k=e,q;return t!==void 0?q=t:n?q=A(n):!o&&w?(k=M(w),q=A(w)+1):q=_(k).length,{destinationRootClientId:k,destinationIndex:q}},[e,t,n,o]),{replaceBlocks:p,insertBlocks:f,showInsertionPoint:b,hideInsertionPoint:h,setLastFocus:g}=Fe(ae(F)),z=O.useCallback((x,v,M=!1,A)=>{(M||s||i)&&g(null);const _=l();!o&&_&&Yc(_)?p(_.clientId,x,null,s||M?0:null,v):f(x,o||A===void 0?d:gY({destinationRootClientId:u,destinationIndex:d,rootClientId:A,registry:c}),o||A===void 0?u:A,i,s||M?0:null,v);const w=Array.isArray(x)?x.length:1,k=le(a0("%d block added.","%d blocks added.",w),w);At(k),r&&r(x)},[o,l,p,f,u,d,r,s,i]),y=O.useCallback(x=>{x?.hasOwnProperty("rootClientId")?b(x.rootClientId,gY({destinationRootClientId:u,destinationIndex:d,rootClientId:x.rootClientId,registry:c})):h()},[b,h,u,d]);return[u,z,y]}const aO=(e,t,n)=>{const{patternCategories:o,patterns:r,userPatternCategories:s}=D(u=>{const{__experimentalGetAllowedPatterns:d,getSettings:p}=u(F),{__experimentalUserPatternCategories:f,__experimentalBlockPatternCategories:b}=p();return{patterns:d(t),userPatternCategories:f,patternCategories:b}},[t]),i=O.useMemo(()=>{const u=[...o];return s?.forEach(d=>{u.find(p=>p.name===d.name)||u.push(d)}),u},[o,s]),{createSuccessNotice:c}=ae(Ze),l=O.useCallback((u,d)=>{const p=u.type===X1.user&&u.syncStatus!=="unsynced"?[me("core/block",{ref:u.id})]:d;e((p??[]).map(f=>{const b=pn(f);return b.attributes.metadata?.categories?.includes(n)&&(b.attributes.metadata.categories=[n]),b}),u.name),c(le(m('Block pattern "%s" inserted.'),u.title),{type:"snackbar",id:"block-pattern-inserted-notice"})},[c,e,n]);return[r,i,l]},KA=20,U_t=5;function dhe(e,t,n,o=""){const[r,s]=O.useState(1),i=t1(t),c=t1(o);(i!==t||c!==o)&&r!==1&&s(1);const l=e.length,u=r-1,d=O.useMemo(()=>e.slice(u*KA,u*KA+KA),[u,e]),p=Gs(d,{step:U_t}),f=Math.ceil(e.length/KA),b=h=>{Sr(n?.current)?.scrollTo(0,0),s(h)};return O.useEffect(function(){Sr(n?.current)?.scrollTo(0,0)},[t,n]),{totalItems:l,categoryPatterns:d,categoryPatternsAsyncList:p,numPages:f,changePage:b,currentPage:r}}function X_t({filterValue:e,filteredBlockPatternsLength:t}){return e?a.jsx(ec,{level:2,lineHeight:"48px",className:"block-editor-block-patterns-explorer__search-results-count",children:le(a0("%d pattern found","%d patterns found",t),t)}):null}function G_t({searchValue:e,selectedCategory:t,patternCategories:n,rootClientId:o}){const r=O.useRef(),s=Uo(At,500),[i,c]=uk({rootClientId:o,shouldFocusBlock:!0}),[l,,u]=aO(c,i,t),d=O.useMemo(()=>n.map(z=>z.name),[n]),p=O.useMemo(()=>{const z=l.filter(y=>{if(t===a5.name||t===U3.name&&y.type===X1.user)return!0;if(t==="uncategorized"){const x=y.categories.some(v=>d.includes(v));return!y.categories?.length||!x}return y.categories?.includes(t)});return e?jj(z,e):z},[e,l,t,d]);O.useEffect(()=>{if(!e)return;const z=p.length,y=le(a0("%d result found.","%d results found.",z),z);s(y)},[e,s,p.length]);const f=dhe(p,t,r),[b,h]=O.useState(e);e!==b&&(h(e),f.changePage(1));const g=!!p?.length;return a.jsxs("div",{className:"block-editor-block-patterns-explorer__list",ref:r,children:[a.jsx(X_t,{filterValue:e,filteredBlockPatternsLength:p.length}),a.jsx(AP,{children:g&&a.jsxs(a.Fragment,{children:[a.jsx(oc,{shownPatterns:f.categoryPatternsAsyncList,blockPatterns:f.categoryPatterns,onClickPattern:u,isDraggable:!1}),a.jsx(lhe,{...f})]})})]})}function K_t(e,t){return!e.categories||!e.categories.length?!1:e.categories.some(n=>t.some(o=>o.name===n))}function vP(e,t="all"){const[n,o]=aO(void 0,e),r=O.useMemo(()=>t==="all"?n:n.filter(i=>!Sfe(i,t)),[t,n]);return O.useMemo(()=>{const i=o.filter(c=>r.some(l=>l.categories?.includes(c.name))).sort((c,l)=>c.label.localeCompare(l.label));return r.some(c=>!K_t(c,o))&&!i.find(c=>c.name==="uncategorized")&&i.push({name:"uncategorized",label:Oe("Uncategorized")}),r.some(c=>c.type===X1.user)&&i.unshift(U3),r.length>0&&i.unshift({name:a5.name,label:a5.label}),At(le(a0("%d category button displayed.","%d category buttons displayed.",i.length),i.length)),i},[o,r])}function Y_t({initialCategory:e,rootClientId:t}){const[n,o]=O.useState(""),[r,s]=O.useState(e?.name),i=vP(t);return a.jsxs("div",{className:"block-editor-block-patterns-explorer",children:[a.jsx(I_t,{selectedCategory:r,patternCategories:i,onClickCategory:s,searchValue:n,setSearchValue:o}),a.jsx(G_t,{searchValue:n,selectedCategory:r,patternCategories:i,rootClientId:t})]})}function Z_t({onModalClose:e,...t}){return a.jsx(fn,{title:m("Patterns"),onRequestClose:e,isFullScreen:!0,children:a.jsx(Y_t,{...t})})}function Q_t({title:e}){return a.jsx(Ye,{spacing:0,children:a.jsx(C0,{children:a.jsx(or,{marginBottom:0,paddingX:4,paddingY:3,children:a.jsxs(Je,{spacing:2,children:[a.jsx(sfe,{style:{minWidth:24,padding:0},icon:ft()?Ei:Fa,size:"small",label:m("Back")}),a.jsx(or,{children:a.jsx(ec,{level:5,children:e})})]})})})})}function phe({categories:e,children:t}){return a.jsxs(nfe,{initialPath:"/",className:"block-editor-inserter__mobile-tab-navigation",children:[a.jsx(s5,{path:"/",children:a.jsx(Yu,{children:e.map(n=>a.jsx(rfe,{path:`/category/${n.name}`,as:fw,isAction:!0,children:a.jsxs(Je,{children:[a.jsx(Vi,{children:n.label}),a.jsx(t0,{icon:ft()?Fa:Ei})]})},n.name))})}),e.map(n=>a.jsxs(s5,{path:`/category/${n.name}`,children:[a.jsx(Q_t,{title:m("Back")}),t(n)]},n.name))]})}const zY=e=>e!=="all"&&e!=="user",J_t=e=>e.name===U3.name,ewt=[{value:"all",label:Oe("All","patterns")},{value:X1.directory,label:m("Pattern Directory")},{value:X1.theme,label:m("Theme & Plugins")},{value:X1.user,label:m("User")}];function twt({setPatternSyncFilter:e,setPatternSourceFilter:t,patternSyncFilter:n,patternSourceFilter:o,scrollContainerRef:r,category:s}){const i=s.name===U3.name?X1.user:o,c=zY(i),l=J_t(s),u=O.useMemo(()=>[{value:"all",label:Oe("All","patterns")},{value:i5.full,label:Oe("Synced","patterns"),disabled:c},{value:i5.unsynced,label:Oe("Not synced","patterns"),disabled:c}],[c]);function d(p){t(p),zY(p)&&e("all")}return a.jsx(a.Fragment,{children:a.jsx(E1,{popoverProps:{placement:"right-end"},label:m("Filter patterns"),toggleProps:{size:"compact"},icon:a.jsx(t0,{icon:a.jsx(te,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx(J,{d:"M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z",fill:"currentColor"})})}),children:()=>a.jsxs(a.Fragment,{children:[!l&&a.jsx(Yt,{label:m("Source"),children:a.jsx(Hp,{choices:ewt,onSelect:p=>{d(p),r.current?.scrollTo(0,0)},value:i})}),a.jsx(Yt,{label:m("Type"),children:a.jsx(Hp,{choices:u,onSelect:p=>{e(p),r.current?.scrollTo(0,0)},value:n})}),a.jsx("div",{className:"block-editor-tool-selector__help",children:z1(m("Patterns are available from the WordPress.org Pattern Directory, bundled in the active theme, or created by users on this site. Only patterns created on this site can be synced."),{Link:a.jsx(S1,{href:m("https://wordpress.org/patterns/")})})})]})})})}const nwt=()=>{};function fhe({rootClientId:e,onInsert:t,onHover:n=nwt,category:o,showTitlesAsTooltip:r}){const[s,,i]=aO(t,e,o?.name),[c,l]=O.useState("all"),[u,d]=O.useState("all"),p=vP(e,u),f=O.useRef(),b=O.useMemo(()=>s.filter(x=>Sfe(x,u,c)?!1:o.name===a5.name||o.name===U3.name&&x.type===X1.user?!0:o.name==="uncategorized"?x.categories?!x.categories.some(v=>p.some(M=>M.name===v)):!0:x.categories?.includes(o.name)),[s,p,o.name,u,c]),h=dhe(b,o,f),{changePage:g}=h;O.useEffect(()=>()=>n(null),[]);const z=O.useCallback(x=>{l(x),g(1)},[l,g]),y=O.useCallback(x=>{d(x),g(1)},[d,g]);return a.jsxs(a.Fragment,{children:[a.jsxs(Ye,{spacing:2,className:"block-editor-inserter__patterns-category-panel-header",children:[a.jsxs(Je,{children:[a.jsx(Vi,{children:a.jsx(ec,{className:"block-editor-inserter__patterns-category-panel-title",size:13,level:4,as:"div",children:o.label})}),a.jsx(twt,{patternSyncFilter:c,patternSourceFilter:u,setPatternSyncFilter:z,setPatternSourceFilter:y,scrollContainerRef:f,category:o})]}),!b.length&&a.jsx(l0,{variant:"muted",className:"block-editor-inserter__patterns-category-no-results",children:m("No results found")})]}),b.length>0&&a.jsx(oc,{ref:f,shownPatterns:h.categoryPatternsAsyncList,blockPatterns:h.categoryPatterns,onClickPattern:i,onHover:n,label:o.label,orientation:"vertical",category:o.name,isDraggable:!0,showTitlesAsTooltip:r,patternFilter:u,pagingProps:h})]})}const{Tabs:YA}=Fe(L0);function bhe({categories:e,selectedCategory:t,onSelectCategory:n,children:o}){const i={type:"tween",duration:Zs()?0:.25,ease:[.6,0,.4,1]},c=t1(t);return a.jsxs(YA,{className:"block-editor-inserter__category-tabs",selectOnMove:!1,selectedTabId:t?t.name:null,orientation:"vertical",onSelect:l=>{n(e.find(u=>u.name===l))},children:[a.jsx(YA.TabList,{className:"block-editor-inserter__category-tablist",children:e.map(l=>a.jsx(YA.Tab,{tabId:l.name,className:"block-editor-inserter__category-tab","aria-label":l.label,"aria-current":l===t?"true":void 0,children:a.jsxs(Je,{children:[a.jsx(Vi,{children:l.label}),a.jsx(t0,{icon:ft()?Fa:Ei})]})},l.name))}),e.map(l=>a.jsx(YA.TabPanel,{tabId:l.name,focusable:!1,children:a.jsx(Hn.div,{className:"block-editor-inserter__category-panel",initial:c?"open":"closed",animate:"open",variants:{open:{transform:"translateX( 0 )",transitionEnd:{zIndex:"1"}},closed:{transform:"translateX( -100% )",zIndex:"-1"}},transition:i,children:o})},l.name))]})}function owt({onSelectCategory:e,selectedCategory:t,onInsert:n,rootClientId:o,children:r}){const[s,i]=O.useState(!1),c=vP(o),l=g0("medium","<");return D(d=>Fe(d(F)).isResolvingPatterns(),[])?a.jsx("div",{className:"block-editor-inserter__patterns-loading",children:a.jsx(u0,{})}):c.length?a.jsxs(a.Fragment,{children:[!l&&a.jsxs("div",{className:"block-editor-inserter__block-patterns-tabs-container",children:[a.jsx(bhe,{categories:c,selectedCategory:t,onSelectCategory:e,children:r}),a.jsx(fe,{__next40pxDefaultSize:!1,className:"block-editor-inserter__patterns-explore-button",onClick:()=>i(!0),variant:"secondary",children:m("Explore all patterns")})]}),l&&a.jsx(phe,{categories:c,children:d=>a.jsx("div",{className:"block-editor-inserter__category-panel",children:a.jsx(fhe,{onInsert:n,rootClientId:o,category:d,showTitlesAsTooltip:!1},d.name)})}),s&&a.jsx(Z_t,{initialCategory:t||c[0],patternCategories:c,onModalClose:()=>i(!1),rootClientId:o})]}):a.jsx(J2,{})}const rwt={image:"img",video:"video",audio:"audio"};function hhe(e,t){const n={id:e.id||void 0,caption:e.caption||void 0},o=e.url,r=e.alt||void 0;t==="image"?(n.url=o,n.alt=r):["video","audio"].includes(t)&&(n.src=o);const s=rwt[t],i=a.jsx(s,{src:e.previewUrl||o,alt:r,controls:t==="audio"?!0:void 0,inert:"true",onError:({currentTarget:c})=>{c.src===e.previewUrl&&(c.src=o)}});return[me(`core/${t}`,n),i]}const swt=["image"],OY=25,iwt={position:"bottom left",className:"block-editor-inserter__media-list__item-preview-options__popover"},{CompositeItemV2:awt}=Fe(L0);function cwt({category:e,media:t}){if(!e.getReportUrl)return null;const n=e.getReportUrl(t);return a.jsx(E1,{className:"block-editor-inserter__media-list__item-preview-options",label:m("Options"),popoverProps:iwt,icon:Ol,children:()=>a.jsx(Yt,{children:a.jsx(tt,{onClick:()=>window.open(n,"_blank").focus(),icon:Pp,children:le(m("Report %s"),e.mediaType)})})})}function lwt({onClose:e,onSubmit:t}){return a.jsxs(fn,{title:m("Insert external image"),onRequestClose:e,className:"block-editor-inserter-media-tab-media-preview-inserter-external-image-modal",children:[a.jsxs(Ye,{spacing:3,children:[a.jsx("p",{children:m("This image cannot be uploaded to your Media Library, but it can still be inserted as an external image.")}),a.jsx("p",{children:m("External images can be removed by the external provider without warning and could even have legal compliance issues related to privacy legislation.")})]}),a.jsxs(Q0,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1,children:[a.jsx(Ht,{children:a.jsx(fe,{__next40pxDefaultSize:!1,variant:"tertiary",onClick:e,children:m("Cancel")})}),a.jsx(Ht,{children:a.jsx(fe,{__next40pxDefaultSize:!1,variant:"primary",onClick:t,children:m("Insert")})})]})]})}function uwt({media:e,onClick:t,category:n}){const[o,r]=O.useState(!1),[s,i]=O.useState(!1),[c,l]=O.useState(!1),[u,d]=O.useMemo(()=>hhe(e,n.mediaType),[e,n.mediaType]),{createErrorNotice:p,createSuccessNotice:f}=ae(Ze),{getSettings:b}=D(F),h=O.useCallback(v=>{if(c)return;const M=b(),A=pn(v),{id:_,url:w,caption:k}=A.attributes;if(!_&&!M.mediaUpload){r(!0);return}if(_){t(A);return}l(!0),window.fetch(w).then(q=>q.blob()).then(q=>{M.mediaUpload({filesList:[q],additionalData:{caption:k},onFileChange([S]){n1(S.url)||(t({...A,attributes:{...A.attributes,id:S.id,url:S.url}}),f(m("Image uploaded and inserted."),{type:"snackbar"}),l(!1))},allowedTypes:swt,onError(S){p(S,{type:"snackbar"}),l(!1)}})}).catch(()=>{r(!0),l(!1)})},[c,b,t,f,p]),g=typeof e.title=="string"?e.title:e.title?.rendered||m("no title");let z;if(g.length>OY){const v="...";z=g.slice(0,OY-v.length)+v}const y=O.useCallback(()=>i(!0),[]),x=O.useCallback(()=>i(!1),[]);return a.jsxs(a.Fragment,{children:[a.jsx(yP,{isEnabled:!0,blocks:[u],children:({draggable:v,onDragStart:M,onDragEnd:A})=>a.jsx("div",{className:$("block-editor-inserter__media-list__list-item",{"is-hovered":s}),draggable:v,onDragStart:M,onDragEnd:A,children:a.jsxs("div",{onMouseEnter:y,onMouseLeave:x,children:[a.jsx(W1,{text:z||g,children:a.jsx(awt,{render:a.jsx("div",{"aria-label":g,role:"option",className:"block-editor-inserter__media-list__item"}),onClick:()=>h(u),children:a.jsxs("div",{className:"block-editor-inserter__media-list__item-preview",children:[d,c&&a.jsx("div",{className:"block-editor-inserter__media-list__item-preview-spinner",children:a.jsx(u0,{})})]})})}),!c&&a.jsx(cwt,{category:n,media:e})]})})}),o&&a.jsx(lwt,{onClose:()=>r(!1),onSubmit:()=>{t(pn(u)),f(m("Image inserted."),{type:"snackbar"}),r(!1)}})]})}const{CompositeV2:dwt}=Fe(L0);function pwt({mediaList:e,category:t,onClick:n,label:o=m("Media List")}){return a.jsx(dwt,{role:"listbox",className:"block-editor-inserter__media-list","aria-label":o,children:e.map((r,s)=>a.jsx(uwt,{media:r,category:t,onClick:n},r.id||r.sourceId||s))})}function fwt(e,t={}){const[n,o]=O.useState(),[r,s]=O.useState(!1),i=O.useRef();return O.useEffect(()=>{(async()=>{const c=JSON.stringify({category:e.name,...t});i.current=c,s(!0),o([]);const l=await e.fetch?.(t);c===i.current&&(o(l),s(!1))})()},[e.name,...Object.values(t)]),{mediaList:n,isLoading:r}}function bwt(e){const[t,n]=O.useState([]),o=D(c=>Fe(c(F)).getInserterMediaCategories(),[]),{canInsertImage:r,canInsertVideo:s,canInsertAudio:i}=D(c=>{const{canInsertBlockType:l}=c(F);return{canInsertImage:l("core/image",e),canInsertVideo:l("core/video",e),canInsertAudio:l("core/audio",e)}},[e]);return O.useEffect(()=>{(async()=>{const c=[];if(!o)return;const l=new Map(await Promise.all(o.map(async d=>{if(d.isExternalResource)return[d.name,!0];let p=[];try{p=await d.fetch({per_page:1})}catch{}return[d.name,!!p.length]}))),u={image:r,video:s,audio:i};o.forEach(d=>{u[d.mediaType]&&l.get(d.name)&&c.push(d)}),c.length&&n(c)})()},[r,s,i,o]),t}const hwt=10;function mhe({rootClientId:e,onInsert:t,category:n}){const[o,r,s]=yne(),{mediaList:i,isLoading:c}=fwt(n,{per_page:s?20:hwt,search:s}),l="block-editor-inserter__media-panel",u=n.labels.search_items||m("Search");return a.jsxs("div",{className:l,children:[a.jsx(xl,{__nextHasNoMarginBottom:!0,className:`${l}-search`,onChange:r,value:o,label:u,placeholder:u}),c&&a.jsx("div",{className:`${l}-spinner`,children:a.jsx(u0,{})}),!c&&!i?.length&&a.jsx(J2,{}),!c&&!!i?.length&&a.jsx(pwt,{rootClientId:e,onClick:t,mediaList:i,category:n})]})}function cl({fallback:e=null,children:t}){return D(o=>{const{getSettings:r}=o(F);return!!r().mediaUpload},[])?t:e}const mwt=()=>null,Od=gd("editor.MediaUpload")(mwt),Mwt=["image","video","audio"];function gwt({rootClientId:e,selectedCategory:t,onSelectCategory:n,onInsert:o,children:r}){const s=bwt(e),i=g0("medium","<"),c="block-editor-inserter__media-tabs",l=O.useCallback(d=>{if(!d?.url)return;const[p]=hhe(d,d.type);o(p)},[o]),u=O.useMemo(()=>s.map(d=>({...d,label:d.labels.name})),[s]);return u.length?a.jsxs(a.Fragment,{children:[!i&&a.jsxs("div",{className:`${c}-container`,children:[a.jsx(bhe,{categories:u,selectedCategory:t,onSelectCategory:n,children:r}),a.jsx(cl,{children:a.jsx(Od,{multiple:!1,onSelect:l,allowedTypes:Mwt,render:({open:d})=>a.jsx(fe,{__next40pxDefaultSize:!1,onClick:p=>{p.target.focus(),d()},className:"block-editor-inserter__media-library-button",variant:"secondary","data-unstable-ignore-focus-outside-for-relatedtarget":".media-modal",children:m("Open Media Library")})})})]}),i&&a.jsx(phe,{categories:u,children:d=>a.jsx(mhe,{onInsert:o,rootClientId:e,category:d})})]}):a.jsx(J2,{})}const{Fill:Mhe,Slot:zwt}=_0("__unstableInserterMenuExtension");Mhe.Slot=zwt;const Owt=9,AY=[];function ghe({filterValue:e,onSelect:t,onHover:n,onHoverPattern:o,rootClientId:r,clientId:s,isAppender:i,__experimentalInsertionIndex:c,maxBlockPatterns:l,maxBlockTypes:u,showBlockDirectory:d=!1,isDraggable:p=!0,shouldFocusBlock:f=!0,prioritizePatterns:b,selectBlockOnInsert:h,isQuick:g}){const z=Uo(At,500),{prioritizedBlocks:y}=D(I=>({prioritizedBlocks:I(F).getBlockListSettings(r)?.prioritizedInserterBlocks||AY}),[r]),[x,v]=uk({onSelect:t,rootClientId:r,clientId:s,isAppender:i,insertionIndex:c,shouldFocusBlock:f,selectBlockOnInsert:h}),[M,A,_,w]=Pw(x,v,g),[k,,q]=aO(v,x),S=O.useMemo(()=>{if(l===0)return[];const I=jj(k,e);return l!==void 0?I.slice(0,l):I},[e,k,l]);let C=u;b&&S.length>2&&(C=0);const T=O.useMemo(()=>{if(C===0)return[];const I=M.filter(U=>U.name!=="core/block");let P=H3(I,"frecency","desc");!e&&y.length&&(P=fbe(P,y));const H=pbe(P,A,_,e);return C!==void 0?H.slice(0,C):H},[e,M,A,_,C,y]);O.useEffect(()=>{if(!e)return;const I=T.length+S.length,P=le(a0("%d result found.","%d results found.",I),I);z(P)},[e,z,T,S]);const W=Gs(T,{step:Owt}),B=Gs(W.length===T.length?S:AY),N=T.length>0||S.length>0,E=!!T.length&&a.jsx(Wb,{title:a.jsx(Kt,{children:m("Blocks")}),children:a.jsx(Rb,{items:W,onSelect:w,onHover:n,label:m("Blocks"),isDraggable:p})}),L=!!S.length&&a.jsx(Wb,{title:a.jsx(Kt,{children:m("Block patterns")}),children:a.jsx("div",{className:"block-editor-inserter__quick-inserter-patterns",children:a.jsx(oc,{shownPatterns:B,blockPatterns:S,onClickPattern:q,onHover:o,isDraggable:p})})});return a.jsxs(AP,{children:[!d&&!N&&a.jsx(J2,{}),b?L:E,!!T.length&&!!S.length&&a.jsx("div",{className:"block-editor-inserter__quick-inserter-separator"}),b?E:L,d&&a.jsx(Mhe.Slot,{fillProps:{onSelect:w,onHover:n,filterValue:e,hasItems:N,rootClientId:x},children:I=>I.length?I:N?null:a.jsx(J2,{})})]})}const{Tabs:ZA}=Fe(L0);function Awt({defaultTabId:e,onClose:t,onSelect:n,selectedTab:o,tabs:r,closeButtonLabel:s},i){return a.jsx("div",{className:"block-editor-tabbed-sidebar",children:a.jsxs(ZA,{selectOnMove:!1,defaultTabId:e,onSelect:n,selectedTabId:o,children:[a.jsxs("div",{className:"block-editor-tabbed-sidebar__tablist-and-close-button",children:[a.jsx(fe,{className:"block-editor-tabbed-sidebar__close-button",icon:zl,label:s,onClick:()=>t(),size:"small"}),a.jsx(ZA.TabList,{className:"block-editor-tabbed-sidebar__tablist",ref:i,children:r.map(c=>a.jsx(ZA.Tab,{tabId:c.name,className:"block-editor-tabbed-sidebar__tab",children:c.title},c.name))})]}),r.map(c=>a.jsx(ZA.TabPanel,{tabId:c.name,focusable:!1,className:"block-editor-tabbed-sidebar__tabpanel",ref:c.panelRef,children:c.panel},c.name))]})})}const zhe=O.forwardRef(Awt),ywt=()=>{};function vwt({rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:o,onSelect:r,showInserterHelpPanel:s,showMostUsedBlocks:i,__experimentalFilterValue:c="",shouldFocusBlock:l=!0,onPatternCategorySelection:u,onClose:d,__experimentalInitialTab:p,__experimentalInitialCategory:f},b){const h=D(se=>se(F).__unstableGetEditorMode()==="zoom-out",[]),[g,z,y]=yne(c),[x,v]=O.useState(null),[M,A]=O.useState(f),[_,w]=O.useState("all"),[k,q]=O.useState(null);function S(){if(p)return p;if(h)return"patterns"}const[C,T]=O.useState(S()),[W,B,N]=uk({rootClientId:e,clientId:t,isAppender:n,insertionIndex:o,shouldFocusBlock:l}),E=O.useRef(),L=O.useCallback((se,be,ye,xe)=>{B(se,be,ye,xe),r(se),window.requestAnimationFrame(()=>{!l&&!E.current?.contains(b.current.ownerDocument.activeElement)&&E.current?.querySelector("button").focus()})},[B,r,l]),I=O.useCallback((se,be)=>{N(!1),B(se,{patternName:be}),r()},[B,r]),P=O.useCallback(se=>{N(se),v(se)},[N,v]),H=O.useCallback((se,be)=>{A(se),w(be),u?.()},[A,u]),U=C==="patterns"&&!y&&!!M,X=C==="media"&&!!k,Z=O.useMemo(()=>C==="media"?null:a.jsxs(a.Fragment,{children:[a.jsx(xl,{__nextHasNoMarginBottom:!0,className:"block-editor-inserter__search",onChange:se=>{x&&v(null),z(se)},value:g,label:m("Search for blocks and patterns"),placeholder:m("Search")}),!!y&&a.jsx(ghe,{filterValue:y,onSelect:r,onHover:P,rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:o,showBlockDirectory:!0,shouldFocusBlock:l,prioritizePatterns:C==="patterns"})]}),[C,x,v,z,g,y,r,P,l,t,e,o,n]),ne=O.useMemo(()=>a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"block-editor-inserter__block-list",children:a.jsx(L_t,{ref:E,rootClientId:W,onInsert:L,onHover:P,showMostUsedBlocks:i})}),s&&a.jsxs("div",{className:"block-editor-inserter__tips",children:[a.jsx(Kt,{as:"h2",children:m("A tip for using the block editor")}),a.jsx(pvt,{})]})]}),[W,L,P,i,s]),oe=O.useMemo(()=>a.jsx(owt,{rootClientId:W,onInsert:I,onSelectCategory:H,selectedCategory:M,children:U&&a.jsx(fhe,{rootClientId:W,onInsert:I,category:M,patternFilter:_,showTitlesAsTooltip:!0})}),[W,I,H,_,M,U]),Y=O.useMemo(()=>a.jsx(gwt,{rootClientId:W,selectedCategory:k,onSelectCategory:q,onInsert:L,children:X&&a.jsx(mhe,{rootClientId:W,onInsert:L,category:k})}),[W,L,k,q,X]),ee=se=>{se!=="patterns"&&A(null),T(se)},ie=O.useRef();return O.useLayoutEffect(()=>{ie.current&&window.requestAnimationFrame(()=>{ie.current.querySelector('[role="tab"][aria-selected="true"]')?.focus()})},[]),a.jsxs("div",{className:$("block-editor-inserter__menu",{"show-panel":U||X,"is-zoom-out":h}),ref:b,children:[a.jsx("div",{className:"block-editor-inserter__main-area",children:a.jsx(zhe,{ref:ie,onSelect:ee,onClose:d,selectedTab:C,closeButtonLabel:m("Close block inserter"),tabs:[{name:"blocks",title:m("Blocks"),panel:a.jsxs(a.Fragment,{children:[Z,C==="blocks"&&!y&&ne]})},{name:"patterns",title:m("Patterns"),panel:a.jsxs(a.Fragment,{children:[Z,C==="patterns"&&!y&&oe]})},{name:"media",title:m("Media"),panel:a.jsxs(a.Fragment,{children:[Z,Y]})}]})}),s&&x&&a.jsx(Mn,{className:"block-editor-inserter__preview-container__popover",placement:"right-start",offset:16,focusOnMount:!1,animate:!1,children:a.jsx(ahe,{item:x})})]})}const Ohe=O.forwardRef(vwt);function xwt(e,t){return a.jsx(Ohe,{...e,onPatternCategorySelection:ywt,ref:t})}const _wt=O.forwardRef(xwt),yY=6,wwt=6,kwt=2,qwt=4;function Ahe({onSelect:e,rootClientId:t,clientId:n,isAppender:o,prioritizePatterns:r,selectBlockOnInsert:s,hasSearch:i=!0}){const[c,l]=O.useState(""),[u,d]=uk({onSelect:e,rootClientId:t,clientId:n,isAppender:o,selectBlockOnInsert:s}),[p]=Pw(u,d,!0),[f]=aO(d,u),{setInserterIsOpened:b,insertionIndex:h}=D(M=>{const{getSettings:A,getBlockIndex:_,getBlockCount:w}=M(F),k=A(),q=_(n),S=w();return{setInserterIsOpened:k.__experimentalSetIsInserterOpened,insertionIndex:q===-1?S:q}},[n]),g=f.length&&(!!c||r),z=i&&(g&&f.length>yY||p.length>yY);O.useEffect(()=>{b&&b(!1)},[b]);const{showInsertionPoint:y}=ae(F),x=()=>{b({rootClientId:t,insertionIndex:h,filterValue:c,onSelect:e}),y(t,h)};let v=0;return g&&(v=r?qwt:kwt),a.jsxs("div",{className:$("block-editor-inserter__quick-inserter",{"has-search":z,"has-expand":b}),children:[z&&a.jsx(xl,{__nextHasNoMarginBottom:!0,className:"block-editor-inserter__search",value:c,onChange:M=>{l(M)},label:m("Search for blocks and patterns"),placeholder:m("Search")}),a.jsx("div",{className:"block-editor-inserter__quick-inserter-results",children:a.jsx(ghe,{filterValue:c,onSelect:e,rootClientId:t,clientId:n,isAppender:o,maxBlockPatterns:v,maxBlockTypes:wwt,isDraggable:!1,prioritizePatterns:r,selectBlockOnInsert:s,isQuick:!0})}),b&&a.jsx(fe,{__next40pxDefaultSize:!1,className:"block-editor-inserter__quick-inserter-expand",onClick:x,"aria-label":m("Browse all. This will open the main inserter panel in the editor toolbar."),children:m("Browse all")})]})}const Swt=({onToggle:e,disabled:t,isOpen:n,blockTitle:o,hasSingleBlockType:r,toggleProps:s={},prioritizePatterns:i})=>{const{as:c=fe,label:l,onClick:u,...d}=s;let p=l;!p&&r?p=le(Oe("Add %s","directly add the only allowed block"),o):!p&&i?p=m("Add pattern"):p||(p=Oe("Add block","Generic label for block inserter button"));function f(b){e&&e(b),u&&u(b)}return a.jsx(c,{icon:as,label:p,tooltipPosition:"bottom",onClick:f,className:"block-editor-inserter__toggle","aria-haspopup":r?!1:"true","aria-expanded":r?!1:n,disabled:t,...d})};class Cwt extends O.Component{constructor(){super(...arguments),this.onToggle=this.onToggle.bind(this),this.renderToggle=this.renderToggle.bind(this),this.renderContent=this.renderContent.bind(this)}onToggle(t){const{onToggle:n}=this.props;n&&n(t)}renderToggle({onToggle:t,isOpen:n}){const{disabled:o,blockTitle:r,hasSingleBlockType:s,directInsertBlock:i,toggleProps:c,hasItems:l,renderToggle:u=Swt,prioritizePatterns:d}=this.props;return u({onToggle:t,isOpen:n,disabled:o||!l,blockTitle:r,hasSingleBlockType:s,directInsertBlock:i,toggleProps:c,prioritizePatterns:d})}renderContent({onClose:t}){const{rootClientId:n,clientId:o,isAppender:r,showInserterHelpPanel:s,__experimentalIsQuick:i,prioritizePatterns:c,onSelectOrClose:l,selectBlockOnInsert:u}=this.props;return i?a.jsx(Ahe,{onSelect:d=>{const p=Array.isArray(d)&&d?.length?d[0]:d;l&&typeof l=="function"&&l(p),t()},rootClientId:n,clientId:o,isAppender:r,prioritizePatterns:c,selectBlockOnInsert:u}):a.jsx(_wt,{onSelect:()=>{t()},rootClientId:n,clientId:o,isAppender:r,showInserterHelpPanel:s})}render(){const{position:t,hasSingleBlockType:n,directInsertBlock:o,insertOnlyAllowedBlock:r,__experimentalIsQuick:s,onSelectOrClose:i}=this.props;return n||o?this.renderToggle({onToggle:r}):a.jsx(B0,{className:"block-editor-inserter",contentClassName:$("block-editor-inserter__popover",{"is-quick":s}),popoverProps:{position:t,shift:!0},onToggle:this.onToggle,expandOnMobile:!0,headerTitle:m("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent,onClose:i})}}const yhe=v0([Xo((e,{clientId:t,rootClientId:n,shouldDirectInsert:o=!0})=>{const{getBlockRootClientId:r,hasInserterItems:s,getAllowedBlocks:i,getDirectInsertBlock:c,getSettings:l}=e(F),{getBlockVariations:u}=e($e);n=n||r(t)||void 0;const d=i(n),p=o&&c(n),f=l(),b=d?.length===1&&u(d[0].name,"inserter")?.length===0;let h=!1;return b&&(h=d[0]),{hasItems:s(n),hasSingleBlockType:b,blockTitle:h?h.title:"",allowedBlockType:h,directInsertBlock:p,rootClientId:n,prioritizePatterns:f.__experimentalPreferPatternsOnRoot&&!n}}),Fi((e,t,{select:n})=>({insertOnlyAllowedBlock(){const{rootClientId:o,clientId:r,isAppender:s,hasSingleBlockType:i,allowedBlockType:c,directInsertBlock:l,onSelectOrClose:u,selectBlockOnInsert:d}=t;if(!i&&!l)return;function p(z){const{getBlock:y,getPreviousBlockClientId:x}=n(F);if(!z||!r&&!o)return{};const v={};let M={};if(r){const A=y(r),_=y(x(r));A?.name===_?.name&&(M=_?.attributes||{})}else{const A=y(o);if(A?.innerBlocks?.length){const _=A.innerBlocks[A.innerBlocks.length-1];l&&l?.name===_.name&&(M=_.attributes)}}return z.forEach(A=>{M.hasOwnProperty(A)&&(v[A]=M[A])}),v}function f(){const{getBlockIndex:z,getBlockSelectionEnd:y,getBlockOrder:x,getBlockRootClientId:v}=n(F);if(r)return z(r);const M=y();return!s&&M&&v(M)===o?z(M)+1:x(o).length}const{insertBlock:b}=e(F);let h;if(l){const z=p(l.attributesToCopy);h=me(l.name,{...l.attributes||{},...z})}else h=me(c.name);b(h,f(),o,d),u&&u({clientId:h?.clientId});const g=le(m("%s block added"),c.title);At(g)}})),OB(({hasItems:e,isAppender:t,rootClientId:n,clientId:o})=>e||!t&&!n&&!o)])(Cwt),Xh=O.forwardRef((e,t)=>a.jsx(yhe,{ref:t,...e})),Rwt="\uFEFF";function vhe({rootClientId:e}){const{showPrompt:t,isLocked:n,placeholder:o,isManualGrid:r}=D(u=>{const{getBlockCount:d,getSettings:p,getTemplateLock:f,getBlockAttributes:b}=u(F),h=!d(e),{bodyPlaceholder:g}=p();return{showPrompt:h,isLocked:!!f(e),placeholder:g,isManualGrid:b(e)?.layout?.isManualPlacement}},[e]),{insertDefaultBlock:s,startTyping:i}=ae(F);if(n||r)return null;const c=kt(o)||m("Type / to choose a block"),l=()=>{s(void 0,e),i()};return a.jsxs("div",{"data-root-client-id":e||"",className:$("block-editor-default-block-appender",{"has-visible-prompt":t}),children:[a.jsx("p",{tabIndex:"0",role:"button","aria-label":m("Add default block"),className:"block-editor-default-block-appender__content",onKeyDown:u=>{(y1===u.keyCode||qx===u.keyCode)&&l()},onClick:()=>l(),onFocus:()=>{t&&l()},children:t?c:Rwt}),a.jsx(Xh,{rootClientId:e,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0})]})}function xhe({rootClientId:e,className:t,onFocus:n,tabIndex:o,onSelect:r},s){const i=O.useRef(),c=Gt([i,s]);return a.jsx(Xh,{position:"bottom center",rootClientId:e,__experimentalIsQuick:!0,onSelectOrClose:(...l)=>{r&&typeof r=="function"&&r(...l),i.current?.focus()},renderToggle:({onToggle:l,disabled:u,isOpen:d,blockTitle:p,hasSingleBlockType:f})=>{let b;f?b=le(Oe("Add %s","directly add the only allowed block"),p):b=Oe("Add block","Generic label for block inserter button");const h=!f;let g=a.jsxs(fe,{__next40pxDefaultSize:!1,ref:c,onFocus:n,tabIndex:o,className:$(t,"block-editor-button-block-appender"),onClick:l,"aria-haspopup":h?"true":void 0,"aria-expanded":h?d:void 0,disabled:u,label:b,children:[!f&&a.jsx(Kt,{as:"span",children:b}),a.jsx(t0,{icon:as})]});return(h||f)&&(g=a.jsx(W1,{text:b,children:g})),g},isAppender:!0})}O.forwardRef((e,t)=>(Re("wp.blockEditor.ButtonBlockerAppender",{alternative:"wp.blockEditor.ButtonBlockAppender",since:"5.9"}),xhe(e,t)));const dk=O.forwardRef(xhe);function Wwt({rootClientId:e}){return D(n=>n(F).canInsertBlockType(jn(),e))?a.jsx(vhe,{rootClientId:e}):a.jsx(dk,{rootClientId:e,className:"block-list-appender__toggle"})}function Twt({rootClientId:e,CustomAppender:t,className:n,tagName:o="div"}){const r=D(s=>{const{getBlockInsertionPoint:i,isBlockInsertionPointVisible:c,getBlockCount:l}=s(F),u=i();return c()&&e===u?.rootClientId&&l(e)===0},[e]);return a.jsx(o,{tabIndex:-1,className:$("block-list-appender wp-block",n,{"is-drag-over":r}),contentEditable:!1,"data-block":!0,children:t?a.jsx(t,{}):a.jsx(Wwt,{rootClientId:e})})}function k5(e){return Et(t=>{if(!e)return;function n(r){const{deltaX:s,deltaY:i}=r;e.current.scrollBy(s,i)}const o={passive:!0};return t.addEventListener("wheel",n,o),()=>{t.removeEventListener("wheel",n,o)}},[e])}const Ewt=Number.MAX_SAFE_INTEGER;O.createContext();function _he({previousClientId:e,nextClientId:t,children:n,__unstablePopoverSlot:o,__unstableContentRef:r,operation:s="insert",nearestSide:i="right",...c}){const[l,u]=O.useReducer(x=>(x+1)%Ewt,0),{orientation:d,rootClientId:p,isVisible:f}=D(x=>{const{getBlockListSettings:v,getBlockRootClientId:M,isBlockVisible:A}=x(F),_=M(e??t);return{orientation:v(_)?.orientation||"vertical",rootClientId:_,isVisible:A(e)&&A(t)}},[e,t]),b=us(e),h=us(t),g=d==="vertical",z=O.useMemo(()=>l<0||!b&&!h||!f?void 0:{contextElement:s==="group"?h||b:b||h,getBoundingClientRect(){const v=b?b.getBoundingClientRect():null,M=h?h.getBoundingClientRect():null;let A=0,_=0,w=0,k=0;if(s==="group"){const q=M||v;_=q.top,w=0,k=q.bottom-q.top,A=i==="left"?q.left-2:q.right-2}else g?(_=v?v.bottom:M.top,w=v?v.width:M.width,k=M&&v?M.top-v.bottom:0,A=v?v.left:M.left):(_=v?v.top:M.top,k=v?v.height:M.height,ft()?(A=M?M.right:v.left,w=v&&M?v.left-M.right:0):(A=v?v.right:M.left,w=v&&M?M.left-v.right:0));return new window.DOMRect(A,_,w,k)}},[b,h,l,g,f,s,i]),y=k5(r);return O.useLayoutEffect(()=>{if(!b)return;const x=new window.MutationObserver(u);return x.observe(b,{attributes:!0}),()=>{x.disconnect()}},[b]),O.useLayoutEffect(()=>{if(!h)return;const x=new window.MutationObserver(u);return x.observe(h,{attributes:!0}),()=>{x.disconnect()}},[h]),O.useLayoutEffect(()=>{if(b)return b.ownerDocument.defaultView.addEventListener("resize",u),()=>{b.ownerDocument.defaultView?.removeEventListener("resize",u)}},[b]),!b&&!h||!f?null:a.jsx(Mn,{ref:y,animate:!1,anchor:z,focusOnMount:!1,__unstableSlotName:o,inline:!o,...c,className:$("block-editor-block-popover","block-editor-block-popover__inbetween",c.className),resize:!1,flip:!1,placement:"overlay",variant:"unstyled",children:a.jsx("div",{className:"block-editor-block-popover__inbetween-container",children:n})},t+"--"+p)}const Bwt=Number.MAX_SAFE_INTEGER;function Nwt({clientId:e,bottomClientId:t,children:n,__unstablePopoverSlot:o,__unstableContentRef:r,shift:s=!0,...i},c){const l=us(e),u=us(t??e),d=Gt([c,k5(r)]),[p,f]=O.useReducer(h=>(h+1)%Bwt,0);O.useLayoutEffect(()=>{if(!l)return;const h=new window.MutationObserver(f);return h.observe(l,{attributes:!0}),()=>{h.disconnect()}},[l]);const b=O.useMemo(()=>{if(!(p<0||!l||t&&!u))return{getBoundingClientRect(){return u?a2e(h4(l),h4(u)):h4(l)},contextElement:l}},[t,u,l,p]);return!l||t&&!u?null:a.jsx(Mn,{ref:d,animate:!1,focusOnMount:!1,anchor:b,__unstableSlotName:o,inline:!o,placement:"top-start",resize:!1,flip:!1,shift:s,...i,className:$("block-editor-block-popover",i.className),variant:"unstyled",children:n})}const pk=O.forwardRef(Nwt),Lwt=({clientId:e,bottomClientId:t,children:n,...o},r)=>a.jsx(pk,{...o,bottomClientId:t,clientId:e,__unstableContentRef:void 0,__unstablePopoverSlot:void 0,ref:r,children:n}),whe=O.forwardRef(Lwt);function jwt({clientId:e,bottomClientId:t,children:n,shift:o=!1,additionalStyles:r,...s},i){var c;(c=t)!==null&&c!==void 0||(t=e);const l=us(e);return a.jsx(pk,{ref:i,clientId:e,bottomClientId:t,shift:o,...s,children:l&&e===t?a.jsx(Pwt,{selectedElement:l,additionalStyles:r,children:n}):n})}function Pwt({selectedElement:e,additionalStyles:t={},children:n}){const[o,r]=O.useState(e.offsetWidth),[s,i]=O.useState(e.offsetHeight);O.useEffect(()=>{const l=new window.ResizeObserver(()=>{r(e.offsetWidth),i(e.offsetHeight)});return l.observe(e,{box:"border-box"}),()=>l.disconnect()},[e]);const c=O.useMemo(()=>({position:"absolute",width:o,height:s,...t}),[o,s,t]);return a.jsx("div",{style:c,children:n})}const Gh=O.forwardRef(jwt),Vm={hide:{opacity:0,scaleY:.75},show:{opacity:1,scaleY:1},exit:{opacity:0,scaleY:.9}};function Iwt({__unstablePopoverSlot:e,__unstableContentRef:t}){const{clientId:n}=D(r=>{const{getBlockOrder:s,getBlockInsertionPoint:i}=r(F),c=i(),l=s(c.rootClientId);return l.length?{clientId:l[c.index]}:{}},[]),o=Zs();return a.jsx(Gh,{clientId:n,__unstablePopoverSlot:e,__unstableContentRef:t,className:"block-editor-block-popover__drop-zone",children:a.jsx(Hn.div,{"data-testid":"block-popover-drop-zone",initial:o?Vm.show:Vm.hide,animate:Vm.show,exit:o?Vm.show:Vm.exit,className:"block-editor-block-popover__drop-zone-foreground"})})}const xP=O.createContext();function Dwt({__unstablePopoverSlot:e,__unstableContentRef:t,operation:n="insert",nearestSide:o="right"}){const{selectBlock:r,hideInsertionPoint:s}=ae(F),i=O.useContext(xP),c=O.useRef(),{orientation:l,previousClientId:u,nextClientId:d,rootClientId:p,isInserterShown:f,isDistractionFree:b,isNavigationMode:h,isZoomOutMode:g}=D(q=>{const{getBlockOrder:S,getBlockListSettings:C,getBlockInsertionPoint:T,isBlockBeingDragged:W,getPreviousBlockClientId:B,getNextBlockClientId:N,getSettings:E,isNavigationMode:L,__unstableGetEditorMode:I}=q(F),P=T(),H=S(P.rootClientId);if(!H.length)return{};let U=H[P.index-1],X=H[P.index];for(;W(U);)U=B(U);for(;W(X);)X=N(X);const Z=E();return{previousClientId:U,nextClientId:X,orientation:C(P.rootClientId)?.orientation||"vertical",rootClientId:P.rootClientId,isNavigationMode:L(),isDistractionFree:Z.isDistractionFree,isInserterShown:P?.__unstableWithInserter,isZoomOutMode:I()==="zoom-out"}},[]),{getBlockEditingMode:z}=D(F),y=Zs();function x(q){q.target===c.current&&d&&z(d)!=="disabled"&&r(d,-1)}function v(q){q.target===c.current&&!i.current&&s()}function M(q){q.target!==c.current&&(i.current=!0)}const A={start:{opacity:0,scale:0},rest:{opacity:1,scale:1,transition:{delay:f?.5:0,type:"tween"}},hover:{opacity:1,scale:1,transition:{delay:.5,type:"tween"}}},_={start:{scale:y?1:0},rest:{scale:1,transition:{delay:.4,type:"tween"}}};if(b&&!h||g&&n!=="insert")return null;const k=$("block-editor-block-list__insertion-point",l==="horizontal"||n==="group"?"is-horizontal":"is-vertical");return a.jsx(_he,{previousClientId:u,nextClientId:d,__unstablePopoverSlot:e,__unstableContentRef:t,operation:n,nearestSide:o,children:a.jsxs(Hn.div,{layout:!y,initial:y?"rest":"start",animate:"rest",whileHover:"hover",whileTap:"pressed",exit:"start",ref:c,tabIndex:-1,onClick:x,onFocus:M,className:$(k,{"is-with-inserter":f}),onHoverEnd:v,children:[a.jsx(Hn.div,{variants:A,className:"block-editor-block-list__insertion-point-indicator","data-testid":"block-list-insertion-point-indicator"}),f&&a.jsx(Hn.div,{variants:_,className:$("block-editor-block-list__insertion-point-inserter"),children:a.jsx(Xh,{position:"bottom center",clientId:d,rootClientId:p,__experimentalIsQuick:!0,onToggle:q=>{i.current=q},onSelectOrClose:()=>{i.current=!1}})})]})})}function Fwt(e){const{insertionPoint:t,isVisible:n,isBlockListEmpty:o}=D(r=>{const{getBlockInsertionPoint:s,isBlockInsertionPointVisible:i,getBlockCount:c}=r(F),l=s();return{insertionPoint:l,isVisible:i(),isBlockListEmpty:c(l?.rootClientId)===0}},[]);return!n||o?null:t.operation==="replace"?a.jsx(Iwt,{...e},`${t.rootClientId}-${t.index}`):a.jsx(Dwt,{operation:t.operation,nearestSide:t.nearestSide,...e})}function $wt(){const e=O.useContext(xP),t=D(h=>h(F).getSettings().isDistractionFree||h(F).__unstableGetEditorMode()==="zoom-out",[]),{getBlockListSettings:n,getBlockIndex:o,isMultiSelecting:r,getSelectedBlockClientIds:s,getSettings:i,getTemplateLock:c,__unstableIsWithinBlockOverlay:l,getBlockEditingMode:u,getBlockName:d,getBlockAttributes:p}=D(F),{showInsertionPoint:f,hideInsertionPoint:b}=ae(F);return Et(h=>{if(t)return;function g(z){if(e===void 0||e.current||z.target.nodeType===z.target.TEXT_NODE||r())return;if(!z.target.classList.contains("block-editor-block-list__layout")){b();return}let y;if(z.target.classList.contains("is-root-container")||(y=(z.target.getAttribute("data-block")?z.target:z.target.closest("[data-block]")).getAttribute("data-block")),c(y)||u(y)==="disabled"||d(y)==="core/block"||y&&p(y).layout?.isManualPlacement)return;const x=n(y),v=x?.orientation||"vertical",M=!!x?.__experimentalCaptureToolbars,A=z.clientY,_=z.clientX;let k=Array.from(z.target.children).find(T=>{const W=T.getBoundingClientRect();return T.classList.contains("wp-block")&&v==="vertical"&&W.top>A||T.classList.contains("wp-block")&&v==="horizontal"&&(ft()?W.right<_:W.left>_)});if(!k){b();return}if(!k.id&&(k=k.firstElementChild,!k)){b();return}const q=k.id.slice(6);if(!q||l(q)||s().includes(q)&&v==="vertical"&&!M&&!i().hasFixedToolbar)return;const S=k.getBoundingClientRect();if(v==="horizontal"&&(z.clientY>S.bottom||z.clientYS.right||z.clientX{h.removeEventListener("mousemove",g)}},[e,n,o,r,f,b,s,t])}function Vwt({showSeparator:e,isFloating:t,onAddBlock:n,isToggle:o}){const{clientId:r}=eo();return a.jsx(dk,{className:$({"block-list-appender__toggle":o}),rootClientId:r,showSeparator:e,isFloating:t,onAddBlock:n})}function Hwt(){const{clientId:e}=eo();return a.jsx(vhe,{rootClientId:e})}const Hm=new WeakMap;function Uwt(e){const[t,n]=O.useState(e);return Jr(t,e)||n(e),t}function Xwt(e,t,n,o,r,s,i,c,l,u,d,p){const f=h0(),b=Uwt(n),h=O.useMemo(()=>o,o),g=l===void 0||t==="contentOnly"?t:l;O.useLayoutEffect(()=>{const z={allowedBlocks:b,prioritizedInserterBlocks:h,templateLock:g};if(u!==void 0&&(z.__experimentalCaptureToolbars=u),d!==void 0)z.orientation=d;else{const y=Kp(p?.type);z.orientation=y.getOrientation(p)}i!==void 0&&(Re("__experimentalDefaultBlock",{alternative:"defaultBlock",since:"6.3",version:"6.4"}),z.defaultBlock=i),r!==void 0&&(z.defaultBlock=r),c!==void 0&&(Re("__experimentalDirectInsert",{alternative:"directInsert",since:"6.3",version:"6.4"}),z.directInsert=c),s!==void 0&&(z.directInsert=s),z.directInsert!==void 0&&typeof z.directInsert!="boolean"&&Re("Using `Function` as a `directInsert` argument",{alternative:"`boolean` values",since:"6.5"}),Hm.get(f)||Hm.set(f,{}),Hm.get(f)[e]=z,window.queueMicrotask(()=>{const y=Hm.get(f);if(Object.keys(y).length){const{updateBlockListSettings:x}=f.dispatch(F);x(y),Hm.set(f,{})}})},[e,b,h,g,r,s,i,c,u,d,p,f])}function Gwt(e,t,n,o){const{getBlocks:r,getSelectedBlocksInitialCaretPosition:s,isBlockSelected:i}=D(F),{replaceInnerBlocks:c,__unstableMarkNextChangeAsNotPersistent:l}=ae(F),u=O.useRef(null);O.useLayoutEffect(()=>{let d=!1;return window.queueMicrotask(()=>{if(d)return;const p=r(e),f=p.length===0||n==="all"||n==="contentOnly",b=!J1(t,u.current);if(!f||!b)return;u.current=t;const h=Ng(p,t);J1(h,p)||(l(),c(e,h,p.length===0&&o&&h.length!==0&&i(e),s()))}),()=>{d=!0}},[t,n,e])}function Kwt(e){return D(t=>{const n=t(F).getBlock(e);if(!n)return;const o=t($e).getBlockType(n.name);if(o&&Object.keys(o.providesContext).length!==0)return Object.fromEntries(Object.entries(o.providesContext).map(([r,s])=>[r,n.attributes[s]]))},[e])}function Ywt(e){let t={srcRootClientId:null,srcClientIds:null,srcIndex:null,type:null,blocks:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("wp-blocks")))}catch{return t}return t}function Zwt(e,t,n,o,r,s,i,c,l){return u=>{const{srcRootClientId:d,srcClientIds:p,type:f,blocks:b}=Ywt(u);if(f==="inserter"){i();const h=b.map(g=>pn(g));s(h,!0,null)}if(f==="block"){const h=n(p[0]);if(d===e&&h===t||p.includes(e)||o(p).some(x=>x===e))return;if(c==="group"){const x=p.map(v=>l(v));s(x,!0,null,p);return}const g=d===e,z=p.length,y=g&&h{if(!t().mediaUpload)return;const i=Ia(Ys("from"),c=>c.type==="files"&&o(c.blockName,e)&&c.isMatch(s));if(i){const c=i.transform(s,n);r(c)}}}function Jwt(e){return t=>{const n=Mf({HTML:t,mode:"BLOCKS"});n.length&&e(n)}}function khe(e,t,n={}){const{operation:o="insert",nearestSide:r="right"}=n,{canInsertBlockType:s,getBlockIndex:i,getClientIdsOfDescendants:c,getBlockOrder:l,getBlocksByClientId:u,getSettings:d,getBlock:p}=D(F),{getGroupingBlockName:f}=D($e),{insertBlocks:b,moveBlocksToPosition:h,updateBlockAttributes:g,clearSelectedBlock:z,replaceBlocks:y,removeBlocks:x}=ae(F),v=h0(),M=O.useCallback((q,S=!0,C=0,T=[])=>{Array.isArray(q)||(q=[q]);const B=l(e)[t];if(o==="replace")y(B,q,void 0,C);else if(o==="group"){const N=p(B);r==="left"?q.push(N):q.unshift(N);const E=q.map(H=>me(H.name,H.attributes,H.innerBlocks)),L=q.every(H=>H.name==="core/image"),I=s("core/gallery",e),P=me(L&&I?"core/gallery":f(),{layout:{type:"flex",flexWrap:L&&I?null:"nowrap"}},E);y([B,...T],P,void 0,C)}else b(q,t,e,S,C)},[l,e,t,o,y,p,r,s,f,b]),A=O.useCallback((q,S,C)=>{if(o==="replace"){const T=u(q),B=l(e)[t];v.batch(()=>{x(q,!1),y(B,T,void 0,0)})}else h(q,S,e,C)},[o,l,u,h,v,x,y,t,e]),_=Zwt(e,t,i,c,A,M,z,o,p),w=Qwt(e,d,g,s,M),k=Jwt(M);return q=>{const S=av(q.dataTransfer),C=q.dataTransfer.getData("text/html");C?k(C):S.length?w(S):_(q)}}function ekt(e,t,n){const o=n==="top"||n==="bottom",{x:r,y:s}=e,i=o?r:s,c=o?s:r,l=o?t.left:t.top,u=o?t.right:t.bottom,d=t[n];let p;return i>=l&&i<=u?p=i:i{const i=ekt(e,t,s);(o===void 0||i=e.x&&t.top<=e.y&&t.bottom>=e.y}function tkt(e,t){return t.top<=e.y&&t.bottom>=e.y}const LS=30,nkt=120,okt=120;function rkt(e,t,n="vertical",o={}){const r=n==="horizontal"?["left","right"]:["top","bottom"];let s=0,i="before",c=1/0,l=null,u="right";const{dropZoneElement:d,parentBlockOrientation:p,rootBlockIndex:f=0}=o;if(d&&p!=="horizontal"){const y=d.getBoundingClientRect(),[x,v]=mM(t,y,["top","bottom"]);if(y.height>nkt&&xokt&&x{const A=x();let[_,w]=mM(t,A,r);const[k,q]=mM(t,A,["left","right"]),S=qhe(t,A);y&&S?_=0:n==="vertical"&&M!=="horizontal"&&(S&&kl);r=n.every(l=>c?.includes(l))}const i=n.map(c=>e(c)).every(c=>{const[l]=c?.parent||[];return l?l===o:!0});return r&&i}function skt({dropZoneElement:e,rootClientId:t="",parentClientId:n="",isDisabled:o=!1}={}){const r=h0(),[s,i]=O.useState({index:null,operation:"insert"}),{getBlockType:c,getBlockVariations:l,getGroupingBlockName:u}=D($e),{canInsertBlockType:d,getBlockListSettings:p,getBlocks:f,getBlockIndex:b,getDraggedBlockClientIds:h,getBlockNamesByClientId:g,getAllowedBlocks:z,isDragging:y,isGroupable:x,isZoomOutMode:v,getSectionRootClientId:M}=Fe(D(F)),{showInsertionPoint:A,hideInsertionPoint:_,startDragging:w,stopDragging:k}=Fe(ae(F)),q=khe(s.operation==="before"||s.operation==="after"?n:t,s.index,{operation:s.operation,nearestSide:s.nearestSide}),S=t8(O.useCallback((C,T)=>{y()||w();const W=z(t),B=g([t])[0],N=g(h());if(!xT(c,W,N,B))return;const L=M();if(v()&&L!==t)return;const I=f(t);if(I.length===0){r.batch(()=>{i({index:0,operation:"insert"}),A(t,0,{operation:"insert"})});return}const P=I.map(ne=>{const oe=ne.clientId;return{isUnmodifiedDefaultBlock:Yc(ne),getBoundingClientRect:()=>T.getElementById(`block-${oe}`).getBoundingClientRect(),blockIndex:b(oe),blockOrientation:p(oe)?.orientation}}),H=rkt(P,{x:C.clientX,y:C.clientY},p(t)?.orientation,{dropZoneElement:e,parentBlockClientId:n,parentBlockOrientation:n?p(n)?.orientation:void 0,rootBlockIndex:b(t)}),[U,X,Z]=H;if(X==="group"){const ne=I[U],oe=[ne.name,...N].every(be=>be==="core/image"),Y=d("core/gallery",t),ee=x([ne.clientId,h()]),ie=l(u(),"block"),se=ie&&ie.find(({name:be})=>be==="group-row");if(oe&&!Y&&(!ee||!se)||!oe&&(!ee||!se))return}r.batch(()=>{i({index:U,operation:X,nearestSide:Z});const ne=["before","after"].includes(X)?n:t;A(ne,U,{operation:X,nearestSide:Z})})},[y,z,t,g,h,c,M,v,f,p,e,n,b,r,w,A,d,x,l,u]),200);return Rx({dropZoneElement:e,isDisabled:o,onDrop:q,onDragOver(C){S(C,C.currentTarget.ownerDocument)},onDragLeave(){S.cancel(),_()},onDragEnd(){S.cancel(),k(),_()}})}const ikt={};function akt({children:e,clientId:t}){const n=Kwt(t);return a.jsx(V3,{value:n,children:e})}const ckt=O.memo(_P);function She(e){const{clientId:t,allowedBlocks:n,prioritizedInserterBlocks:o,defaultBlock:r,directInsert:s,__experimentalDefaultBlock:i,__experimentalDirectInsert:c,template:l,templateLock:u,wrapperRef:d,templateInsertUpdatesSelection:p,__experimentalCaptureToolbars:f,__experimentalAppenderTagName:b,renderAppender:h,orientation:g,placeholder:z,layout:y,name:x,blockType:v,parentLock:M,defaultLayout:A}=e;Xwt(t,M,n,o,r,s,i,c,u,f,g,y),Gwt(t,l,u,p);const _=Zt(x,"layout")||Zt(x,"__experimentalLayout")||ikt,{allowSizingOnChildren:w=!1}=_,k=y||_,q=O.useMemo(()=>({...A,...k,...w&&{allowSizingOnChildren:!0}}),[A,k,w]),S=a.jsx(ckt,{rootClientId:t,renderAppender:h,__experimentalAppenderTagName:b,layout:q,wrapperRef:d,placeholder:z});return!v?.providesContext||Object.keys(v.providesContext).length===0?S:a.jsx(akt,{clientId:t,children:S})}function lkt(e){return u2e(e),a.jsx(She,{...e})}const ht=O.forwardRef((e,t)=>{const n=it({ref:t},e);return a.jsx("div",{className:"block-editor-inner-blocks",children:a.jsx("div",{...n})})});function it(e={},t={}){const{__unstableDisableLayoutClassNames:n,__unstableDisableDropZone:o,dropZoneElement:r}=t,{clientId:s,layout:i=null,__unstableLayoutClassNames:c=""}=eo(),l=D(A=>{const{getBlockName:_,isBlockSelected:w,hasSelectedInnerBlock:k,__unstableGetEditorMode:q,getTemplateLock:S,getBlockRootClientId:C,getBlockEditingMode:T,getBlockSettings:W,isDragging:B,getSectionRootClientId:N}=Fe(A(F));let E;if(!s)return{isDropZoneDisabled:E};const{hasBlockSupport:L,getBlockType:I}=A($e),P=_(s),H=q()==="navigation",U=T(s),X=C(s),[Z]=W(s,"layout");if(E=U==="disabled",q()==="zoom-out"){const ne=N();E=s!==ne}return{__experimentalCaptureToolbars:L(P,"__experimentalExposeControlsToChildren",!1),hasOverlay:P!=="core/template"&&!w(s)&&!k(s,!0)&&H&&!B(),name:P,blockType:I(P),parentLock:S(X),parentClientId:X,isDropZoneDisabled:E,defaultLayout:Z}},[s]),{__experimentalCaptureToolbars:u,hasOverlay:d,name:p,blockType:f,parentLock:b,parentClientId:h,isDropZoneDisabled:g,defaultLayout:z}=l,y=skt({dropZoneElement:r,rootClientId:s,parentClientId:h}),x=Gt([e.ref,o||g||i?.isManualPlacement&&window.__experimentalEnableGridInteractivity?null:y]),v={__experimentalCaptureToolbars:u,layout:i,name:p,blockType:f,parentLock:b,defaultLayout:z,...t},M=v.value&&v.onChange?lkt:She;return{...e,ref:x,className:$(e.className,"block-editor-block-list__layout",n?"":c,{"has-overlay":d}),children:s?a.jsx(M,{...v,clientId:s}):a.jsx(_P,{...t})}}it.save=CLe;ht.DefaultBlockAppender=Hwt;ht.ButtonBlockAppender=Vwt;ht.Content=()=>it.save().children;const ukt=new Set([xi,Ls,Do,Ns,y1,Si]);function dkt(e){const{keyCode:t,shiftKey:n}=e;return!n&&ukt.has(t)}function Che(){const e=D(n=>n(F).isTyping(),[]),{stopTyping:t}=ae(F);return Et(n=>{if(!e)return;const{ownerDocument:o}=n;let r,s;function i(c){const{clientX:l,clientY:u}=c;r&&s&&(r!==l||s!==u)&&t(),r=l,s=u}return o.addEventListener("mousemove",i),()=>{o.removeEventListener("mousemove",i)}},[e,t])}function Rhe(){const{isTyping:e}=D(s=>{const{isTyping:i}=s(F);return{isTyping:i()}},[]),{startTyping:t,stopTyping:n}=ae(F),o=Che(),r=Et(s=>{const{ownerDocument:i}=s,{defaultView:c}=i,l=c.getSelection();if(e){let h=function(y){const{target:x}=y;b=c.setTimeout(()=>{Wu(x)||n()})},g=function(y){const{keyCode:x}=y;(x===Ea||x===qp)&&n()},z=function(){l.isCollapsed||n()};var d=h,p=g,f=z;let b;return s.addEventListener("focus",h),s.addEventListener("keydown",g),i.addEventListener("selectionchange",z),()=>{c.clearTimeout(b),s.removeEventListener("focus",h),s.removeEventListener("keydown",g),i.removeEventListener("selectionchange",z)}}function u(b){const{type:h,target:g}=b;!Wu(g)||!s.contains(g)||h==="keydown"&&!dkt(b)||t()}return s.addEventListener("keypress",u),s.addEventListener("keydown",u),()=>{s.removeEventListener("keypress",u),s.removeEventListener("keydown",u)}},[e,t,n]);return Gt([o,r])}const Whe=O.createContext(),QA=new WeakMap;function pkt({className:e,...t}){const n=g0("medium"),{isOutlineMode:o,isFocusMode:r,editorMode:s,temporarilyEditingAsBlocks:i}=D(f=>{const{getSettings:b,__unstableGetEditorMode:h,getTemporarilyEditingAsBlocks:g,isTyping:z}=Fe(f(F)),{outlineMode:y,focusMode:x}=b();return{isOutlineMode:y&&!z(),isFocusMode:x,editorMode:h(),temporarilyEditingAsBlocks:g()}},[]),c=h0(),{setBlockVisibility:l}=ae(F),u=Uo(O.useCallback(()=>{const f={};QA.get(c).forEach(([b,h])=>{f[b]=h}),l(f)},[c]),300,{trailing:!0}),d=O.useMemo(()=>{const{IntersectionObserver:f}=window;if(f)return new f(b=>{QA.get(c)||QA.set(c,[]);for(const h of b){const g=h.target.getAttribute("data-block");QA.get(c).push([g,h.isIntersecting])}u()})},[]),p=it({ref:Gt([aP(),$wt(),Rhe()]),className:$("is-root-container",e,{"is-outline-mode":o,"is-focus-mode":r&&n,"is-navigate-mode":s==="navigation"})},t);return a.jsxs(Whe.Provider,{value:d,children:[a.jsx("div",{...p}),!!i&&a.jsx(fkt,{clientId:i})]})}function fkt({clientId:e}){const{stopEditingAsBlocks:t}=Fe(ae(F)),n=D(o=>{const{isBlockSelected:r,hasSelectedInnerBlock:s}=o(F);return r(e)||s(e,!0)},[e]);return O.useEffect(()=>{n||t(e)},[n,e,t]),null}function fk(e){return a.jsx(Qre,{value:Yre,children:a.jsx(pkt,{...e})})}const bkt=[],hkt=new Set;function mkt({placeholder:e,rootClientId:t,renderAppender:n,__experimentalAppenderTagName:o,layout:r=zbe}){const s=n!==!1,i=!!n,{order:c,selectedBlocks:l,visibleBlocks:u,shouldRenderAppender:d}=D(p=>{const{getSettings:f,getBlockOrder:b,getSelectedBlockClientId:h,getSelectedBlockClientIds:g,__unstableGetVisibleBlocks:z,getTemplateLock:y,getBlockEditingMode:x,__unstableGetEditorMode:v}=p(F),M=b(t);if(f().__unstableIsPreviewMode)return{order:M,selectedBlocks:bkt,visibleBlocks:hkt};const A=h();return{order:M,selectedBlocks:g(),visibleBlocks:z(),shouldRenderAppender:s&&v()!=="zoom-out"&&(i?!y(t)&&x(t)!=="disabled":t===A||!t&&!A&&!M.length)}},[t,s,i]);return a.jsxs(IAt,{value:r,children:[c.map(p=>a.jsx(Wx,{value:!u.has(p)&&!l.includes(p),children:a.jsx(dvt,{rootClientId:t,clientId:p})},p)),c.length<1&&e,d&&a.jsx(Twt,{tagName:o,rootClientId:t,CustomAppender:n})]})}function _P(e){return a.jsx(Wx,{value:!1,children:a.jsx(mkt,{...e})})}const vY=_0("InspectorControls"),Mkt=_0("InspectorAdvancedControls"),gkt=_0("InspectorControlsBindings"),zkt=_0("InspectorControlsBackground"),Okt=_0("InspectorControlsBorder"),Akt=_0("InspectorControlsColor"),ykt=_0("InspectorControlsFilter"),vkt=_0("InspectorControlsDimensions"),xkt=_0("InspectorControlsPosition"),_kt=_0("InspectorControlsTypography"),wkt=_0("InspectorControlsListView"),kkt=_0("InspectorControlsStyles"),qkt=_0("InspectorControlsEffects"),bk={default:vY,advanced:Mkt,background:zkt,bindings:gkt,border:Okt,color:Akt,dimensions:vkt,effects:qkt,filter:ykt,list:wkt,position:xkt,settings:vY,styles:kkt,typography:_kt};function The({children:e,group:t="default",__experimentalGroup:n,resetAllFilter:o}){n&&(Re("`__experimentalGroup` property in `InspectorControlsFill`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=n);const r=eo(),s=bk[t]?.Fill;return s?r[n3]?a.jsx(yf,{document,children:a.jsx(s,{children:i=>a.jsx(Ckt,{fillProps:i,children:e,resetAllFilter:o})})}):null:(globalThis.SCRIPT_DEBUG===!0&&Xt(`Unknown InspectorControls group "${t}" provided.`),null)}function Skt({resetAllFilter:e,children:t}){const{registerResetAllFilter:n,deregisterResetAllFilter:o}=O.useContext(cz);return O.useEffect(()=>{if(e&&n&&o)return n(e),()=>{o(e)}},[e,n,o]),t}function Ckt({children:e,resetAllFilter:t,fillProps:n}){const{forwardedContext:o=[]}=n,r=a.jsx(Skt,{resetAllFilter:t,children:e});return o.reduce((s,[i,c])=>a.jsx(i,{...c,children:s}),r)}function Rkt(e){if(!e)return{};if(typeof e=="object")return e;let t;switch(e){case"normal":t=Oe("Regular","font style");break;case"italic":t=Oe("Italic","font style");break;case"oblique":t=Oe("Oblique","font style");break;default:t=e;break}return{name:t,value:e}}function xY(e){if(!e)return{};if(typeof e=="object")return e;let t;switch(e){case"normal":case"400":t=Oe("Regular","font weight");break;case"bold":case"700":t=Oe("Bold","font weight");break;case"100":t=Oe("Thin","font weight");break;case"200":t=Oe("Extra Light","font weight");break;case"300":t=Oe("Light","font weight");break;case"500":t=Oe("Medium","font weight");break;case"600":t=Oe("Semi Bold","font weight");break;case"800":t=Oe("Extra Bold","font weight");break;case"900":t=Oe("Black","font weight");break;case"1000":t=Oe("Extra Black","font weight");break;default:t=e;break}return{name:t,value:e}}const _Y=[{name:Oe("Regular","font style"),value:"normal"},{name:Oe("Italic","font style"),value:"italic"}],wY=[{name:Oe("Thin","font weight"),value:"100"},{name:Oe("Extra Light","font weight"),value:"200"},{name:Oe("Light","font weight"),value:"300"},{name:Oe("Regular","font weight"),value:"400"},{name:Oe("Medium","font weight"),value:"500"},{name:Oe("Semi Bold","font weight"),value:"600"},{name:Oe("Bold","font weight"),value:"700"},{name:Oe("Extra Bold","font weight"),value:"800"},{name:Oe("Black","font weight"),value:"900"},{name:Oe("Extra Black","font weight"),value:"1000"}];function Ehe(e){let t=[],n=[];const o=[],r=!e||e?.length===0;let s=!1;return e?.forEach(i=>{if(typeof i.fontWeight=="string"&&/\s/.test(i.fontWeight.trim())){s=!0;let[u,d]=i.fontWeight.split(" ");u=parseInt(u.slice(0,1)),d==="1000"?d=10:d=parseInt(d.slice(0,1));for(let p=u;p<=d;p++){const f=`${p.toString()}00`;n.some(b=>b.value===f)||n.push(xY(f))}}const c=xY(typeof i.fontWeight=="number"?i.fontWeight.toString():i.fontWeight),l=Rkt(i.fontStyle);l&&Object.keys(l).length&&(t.some(u=>u.value===l.value)||t.push(l)),c&&Object.keys(c).length&&(n.some(u=>u.value===c.value)||s||n.push(c))}),n.some(i=>i.value>="600")||n.push({name:Oe("Bold","font weight"),value:"700"}),t.some(i=>i.value==="italic")||t.push({name:Oe("Italic","font style"),value:"italic"}),r&&(t=_Y,n=wY),t=t.length===0?_Y:t,n=n.length===0?wY:n,t.forEach(({name:i,value:c})=>{n.forEach(({name:l,value:u})=>{const d=c==="normal"?l:le(m("%1$s %2$s"),l,i);o.push({key:`${c}-${u}`,name:d,style:{fontStyle:c,fontWeight:u}})})}),{fontStyles:t,fontWeights:n,combinedStyleAndWeightOptions:o,isSystemFont:r,isVariableFont:s}}function hk(e,t){const{size:n}=e;if(!n||n==="0"||e?.fluid===!1||!_T(t?.typography)&&!_T(e))return n;let o=Wkt(t);o=typeof o?.fluid=="object"?o?.fluid:{};const r=Q3t({minimumFontSize:e?.fluid?.min,maximumFontSize:e?.fluid?.max,fontSize:n,minimumFontSizeLimit:o?.minFontSize,maximumViewportWidth:o?.maxViewportWidth,minimumViewportWidth:o?.minViewportWidth});return r||n}function _T(e){const t=e?.fluid;return t===!0||t&&typeof t=="object"&&Object.keys(t).length>0}function Wkt(e){const t=e?.typography,n=e?.layout,o=hc(n?.wideSize)?n?.wideSize:null;return _T(t)&&o?{fluid:{maxViewportWidth:o,...t.fluid}}:{fluid:t?.fluid}}function Tkt(e,t){var n;const o=e?.typography?.fontFamilies,r=["default","theme","custom"].flatMap(i=>{var c;return(c=o?.[i])!==null&&c!==void 0?c:[]}),s=(n=r.find(i=>i.fontFamily===t)?.fontFace)!==null&&n!==void 0?n:[];return{fontFamilies:r,fontFamilyFaces:s}}function kY(e,t){return t=typeof t=="number"?t.toString():t,!t||typeof t!="string"?"":!e||e.length===0?t:e?.reduce((o,{value:r})=>{const s=Math.abs(parseInt(r)-parseInt(t)),i=Math.abs(parseInt(o)-parseInt(t));return so.value===t)?t:t==="oblique"&&!e.find(o=>o.value==="oblique")?"italic":""}function Bkt(e,t,n){let o=t,r=n;const{fontStyles:s,fontWeights:i,combinedStyleAndWeightOptions:c}=Ehe(e),l=s?.some(({value:d})=>d===t),u=i?.some(({value:d})=>d?.toString()===n?.toString());return l||(o=t?Ekt(s,t):c?.find(d=>d.style.fontWeight===kY(i,n))?.style?.fontStyle),u||(r=n?kY(i,n):c?.find(d=>d.style.fontStyle===(o||t))?.style?.fontWeight),{nearestFontStyle:o,nearestFontWeight:r}}const Oc="body",q5=":root",Kh=[{path:["color","palette"],valueKey:"color",cssVarInfix:"color",classes:[{classSuffix:"color",propertyName:"color"},{classSuffix:"background-color",propertyName:"background-color"},{classSuffix:"border-color",propertyName:"border-color"}]},{path:["color","gradients"],valueKey:"gradient",cssVarInfix:"gradient",classes:[{classSuffix:"gradient-background",propertyName:"background"}]},{path:["color","duotone"],valueKey:"colors",cssVarInfix:"duotone",valueFunc:({slug:e})=>`url( '#wp-duotone-${e}' )`,classes:[]},{path:["shadow","presets"],valueKey:"shadow",cssVarInfix:"shadow",classes:[]},{path:["typography","fontSizes"],valueFunc:(e,t)=>hk(e,t),valueKey:"size",cssVarInfix:"font-size",classes:[{classSuffix:"font-size",propertyName:"font-size"}]},{path:["typography","fontFamilies"],valueKey:"fontFamily",cssVarInfix:"font-family",classes:[{classSuffix:"font-family",propertyName:"font-family"}]},{path:["spacing","spacingSizes"],valueKey:"size",cssVarInfix:"spacing",valueFunc:({size:e})=>e,classes:[]}],Nkt={"color.background":"color","color.text":"color","filter.duotone":"duotone","elements.link.color.text":"color","elements.link.:hover.color.text":"color","elements.link.typography.fontFamily":"font-family","elements.link.typography.fontSize":"font-size","elements.button.color.text":"color","elements.button.color.background":"color","elements.caption.color.text":"color","elements.button.typography.fontFamily":"font-family","elements.button.typography.fontSize":"font-size","elements.heading.color":"color","elements.heading.color.background":"color","elements.heading.typography.fontFamily":"font-family","elements.heading.gradient":"gradient","elements.heading.color.gradient":"gradient","elements.h1.color":"color","elements.h1.color.background":"color","elements.h1.typography.fontFamily":"font-family","elements.h1.color.gradient":"gradient","elements.h2.color":"color","elements.h2.color.background":"color","elements.h2.typography.fontFamily":"font-family","elements.h2.color.gradient":"gradient","elements.h3.color":"color","elements.h3.color.background":"color","elements.h3.typography.fontFamily":"font-family","elements.h3.color.gradient":"gradient","elements.h4.color":"color","elements.h4.color.background":"color","elements.h4.typography.fontFamily":"font-family","elements.h4.color.gradient":"gradient","elements.h5.color":"color","elements.h5.color.background":"color","elements.h5.typography.fontFamily":"font-family","elements.h5.color.gradient":"gradient","elements.h6.color":"color","elements.h6.color.background":"color","elements.h6.typography.fontFamily":"font-family","elements.h6.color.gradient":"gradient","color.gradient":"gradient",shadow:"shadow","typography.fontSize":"font-size","typography.fontFamily":"font-family"};function Ad(){return g0("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}}}function wP(e,t,n,o,r){const s=[R0(e,["blocks",t,...n]),R0(e,n)];for(const i of s)if(i){const c=["custom","theme","default"];for(const l of c){const u=i[l];if(u){const d=u.find(p=>p[o]===r);if(d)return o==="slug"||wP(e,t,n,"slug",d.slug)[o]===d[o]?d:void 0}}}}function Lkt(e,t,n,o){if(!o)return o;const r=Nkt[n],s=Kh.find(u=>u.cssVarInfix===r);if(!s)return o;const{valueKey:i,path:c}=s,l=wP(e,t,c,i,o);return l?`var:preset|${r}|${l.slug}`:o}function jkt(e,t,n,[o,r]){const s=Kh.find(c=>c.cssVarInfix===o);if(!s)return n;const i=wP(e.settings,t,s.path,"slug",r);if(i){const{valueKey:c}=s,l=i[c];return ki(e,t,l)}return n}function Pkt(e,t,n,o){var r;const s=(r=R0(e.settings,["blocks",t,"custom",...o]))!==null&&r!==void 0?r:R0(e.settings,["custom",...o]);return s?ki(e,t,s):n}function ki(e,t,n){if(!n||typeof n!="string")if(typeof n?.ref=="string"){if(n=R0(e,n.ref),!n||n?.ref)return n}else return n;const o="var:",r="var(--wp--",s=")";let i;if(n.startsWith(o))i=n.slice(o.length).split("|");else if(n.startsWith(r)&&n.endsWith(s))i=n.slice(r.length,-s.length).split("--");else return n;const[c,...l]=i;return c==="preset"?jkt(e,t,n,l):c==="custom"?Pkt(e,t,n,l):n}function Yr(e,t){if(!e||!t)return t;const n=e.split(","),o=t.split(","),r=[];return n.forEach(s=>{o.forEach(i=>{r.push(`${s.trim()} ${i.trim()}`)})}),r.join(", ")}function Ikt(e,t){if(!e||!t)return;const n={};return Object.entries(t).forEach(([o,r])=>{typeof r=="string"&&(n[o]=Yr(e,r)),typeof r=="object"&&(n[o]={},Object.entries(r).forEach(([s,i])=>{n[o][s]=Yr(e,i)}))}),n}function Dkt(e,t){return e.includes(",")?e.split(",").map(r=>r+t).join(","):e+t}function Fkt(e,t){return typeof e!="object"||typeof t!="object"?e===t:J1(e?.styles,t?.styles)&&J1(e?.settings,t?.settings)}function $kt(e,t){const n=`.is-style-${e}`;if(!t)return n;const o=/((?::\([^)]+\))?\s*)([^\s:]+)/,r=(i,c,l)=>c+l+n;return t.split(",").map(i=>i.replace(o,r)).join(",")}function Vkt(e,t){if(!e||!t||!Array.isArray(t))return e;const n=t.find(o=>o?.name===e);return n?.href?n?.href:e}function Hkt(e,t){if(!e||!t)return e;if(typeof e!="string"&&e?.ref){const n=dz(R0(t,e.ref));return n?.ref?void 0:n===void 0?e:n}return e}function wT(e,t){if(!e||!t)return e;const n=Hkt(e,t);return n?.url&&(n.url=Vkt(n.url,t?._links?.["wp:theme-file"])),n}function Ukt({children:e,group:t,label:n}){const{updateBlockAttributes:o}=ae(F),{getBlockAttributes:r,getMultiSelectedBlockClientIds:s,getSelectedBlockClientId:i,hasMultiSelection:c}=D(F),l=Ad(),u=i(),d=O.useCallback((p=[])=>{const f={},b=c()?s():[u];b.forEach(h=>{const{style:g}=r(h);let z={style:g};p.forEach(y=>{z={...z,...y(z)}}),z={...z,style:ni(z.style)},f[h]=z}),o(b,f,!0)},[r,s,c,u,o]);return a.jsx(Tr,{className:`${t}-block-support-panel`,label:n,resetAll:d,panelId:u,hasInnerWrapper:!0,shouldRenderPlaceholderItems:!0,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",dropdownMenuProps:l,children:e},u)}function Xkt({Slot:e,fillProps:t,...n}){const o=O.useContext(cz),r=O.useMemo(()=>{var s;return{...t??{},forwardedContext:[...(s=t?.forwardedContext)!==null&&s!==void 0?s:[],[cz.Provider,{value:o}]]}},[o,t]);return a.jsx(e,{...n,fillProps:r,bubblesVirtually:!0})}function Bhe({__experimentalGroup:e,group:t="default",label:n,fillProps:o,...r}){e&&(Re("`__experimentalGroup` property in `InspectorControlsSlot`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=e);const s=bk[t]?.Slot,i=j1(s?.__unstableName),c=O.useContext(B2),l=O.useMemo(()=>{var u;return{...o??{},forwardedContext:[...(u=o?.forwardedContext)!==null&&u!==void 0?u:[],[B2.Provider,{value:c}]]}},[c,o]);return s?i?.length?n?a.jsx(Ukt,{group:t,label:n,children:a.jsx(Xkt,{...r,fillProps:l,Slot:s})}):a.jsx(s,{...r,fillProps:l,bubblesVirtually:!0}):null:(globalThis.SCRIPT_DEBUG===!0&&Xt(`Unknown InspectorControls group "${t}" provided.`),null)}const Te=The;Te.Slot=Bhe;const mk=e=>a.jsx(The,{...e,group:"advanced"});mk.Slot=e=>a.jsx(Bhe,{...e,group:"advanced"});mk.slotName="InspectorAdvancedControls";function Gkt(e){const t=e?.style?.position?.type;return t==="sticky"?m("Sticky"):t==="fixed"?m("Fixed"):null}function gs(e){return D(t=>{if(!e)return null;const{getBlockName:n,getBlockAttributes:o}=t(F),{getBlockType:r,getActiveBlockVariation:s}=t($e),i=n(e),c=r(i);if(!c)return null;const l=o(e),u=s(i,l),d=dd(c)||mh(c),f=(d?pN(c,l):void 0)||c.title,b=Gkt(l),h={isSynced:d,title:f,icon:c.icon,description:c.description,anchor:l?.anchor,positionLabel:b,positionType:l?.style?.position?.type,name:l?.metadata?.name};return u?{isSynced:d,title:u.title||c.title,icon:u.icon||c.icon,description:u.description||c.description,anchor:l?.anchor,positionLabel:b,positionType:l?.style?.position?.type,name:l?.metadata?.name}:h},[e])}const cO="position",jS={key:"default",value:"",name:m("Default")},PS={key:"sticky",value:"sticky",name:Oe("Sticky","Name for the value of the CSS position property"),hint:m("The block will stick to the top of the window instead of scrolling.")},qY={key:"fixed",value:"fixed",name:Oe("Fixed","Name for the value of the CSS position property"),hint:m("The block will not move when the page is scrolled.")},Kkt=["top","right","bottom","left"],Ykt=["sticky","fixed"];function Zkt({selector:e,style:t}){let n="";const{type:o}=t?.position||{};return Ykt.includes(o)&&(n+=`${e} {`,n+=`position: ${o};`,Kkt.forEach(r=>{t?.position?.[r]!==void 0&&(n+=`${r}: ${t.position[r]};`)}),(o==="sticky"||o==="fixed")&&(n+="z-index: 10"),n+="}"),n}function Qkt(e){const t=Zt(e,cO);return!!(t===!0||t?.sticky)}function Jkt(e){const t=Zt(e,cO);return!!(t===!0||t?.fixed)}function e6t(e){return!!Zt(e,cO)}function t6t(e){const t=e?.style?.position?.type;return t==="sticky"||t==="fixed"}function Nhe({name:e}={}){const[t,n]=O0("position.fixed","position.sticky"),o=!t&&!n;return!e6t(e)||o}function n6t({style:e={},clientId:t,name:n,setAttributes:o}){const r=Jkt(n),s=Qkt(n),i=e?.position?.type,{firstParentClientId:c}=D(b=>{const{getBlockParents:h}=b(F),g=h(t);return{firstParentClientId:g[g.length-1]}},[t]),l=gs(c),u=s&&i===PS.value&&l?le(m("The block will stick to the scrollable area of the parent %s block."),l.title):null,d=O.useMemo(()=>{const b=[jS];return(s||i===PS.value)&&b.push(PS),(r||i===qY.value)&&b.push(qY),b},[r,s,i]),p=b=>{const g={...e,position:{...e?.position,type:b,top:b==="sticky"||b==="fixed"?"0px":void 0}};o({style:ni(g)})},f=i&&d.find(b=>b.value===i)||jS;return w1.select({web:d.length>1?a.jsx(Te,{group:"position",children:a.jsx(z0,{__nextHasNoMarginBottom:!0,help:u,children:a.jsx(Lh,{__next40pxDefaultSize:!0,label:m("Position"),hideLabelFromVision:!0,describedBy:le(m("Currently selected position: %s"),f.name),options:d,value:f,onChange:({selectedItem:b})=>{p(b.value)},size:"__unstable-large"})})}):null,native:null})}const Lhe={edit:function(t){return Nhe(t)?null:a.jsx(n6t,{...t})},useBlockProps:jhe,attributeKeys:["style"],hasSupport(e){return st(e,cO)}};function jhe({name:e,style:t}){const n=st(e,cO),o=Nhe({name:e}),r=n&&!o,s=He(jhe),i=`.wp-container-${s}.wp-container-${s}`;let c;r&&(c=Zkt({selector:i,style:t})||"");const l=$({[`wp-container-${s}`]:r&&!!c,[`is-position-${t?.position?.type}`]:r&&!!c&&!!t?.position?.type});return dO({css:c}),{className:l}}const Phe={placement:"top-start"},SY={...Phe,flip:!1,shift:!0},o6t={...Phe,flip:!0,shift:!1};function CY(e,t,n,o,r){if(!e||!t)return SY;const s=n?.scrollTop||0,i=h4(t),c=e.getBoundingClientRect(),l=s+c.top,u=e.ownerDocument.documentElement.clientHeight,d=l+o,p=i.top>d,f=i.height>u-o;return!r&&(p||f)?SY:o6t}function Mk({contentElement:e,clientId:t}){const n=us(t),[o,r]=O.useState(0),{blockIndex:s,isSticky:i}=D(f=>{const{getBlockIndex:b,getBlockAttributes:h}=f(F);return{blockIndex:b(t),isSticky:t6t(h(t))}},[t]),c=O.useMemo(()=>{if(e)return Sr(e)},[e]),[l,u]=O.useState(()=>CY(e,n,c,o,i)),d=Et(f=>{r(f.offsetHeight)},[]),p=O.useCallback(()=>u(CY(e,n,c,o,i)),[e,n,c,o]);return O.useLayoutEffect(p,[s,p]),O.useLayoutEffect(()=>{if(!e||!n)return;const f=e?.ownerDocument?.defaultView;f?.addEventHandler?.("resize",p);let b;const h=n?.ownerDocument?.defaultView;return h.ResizeObserver&&(b=new h.ResizeObserver(p),b.observe(n)),()=>{f?.removeEventHandler?.("resize",p),b&&b.disconnect()}},[p,e,n]),{...l,ref:d}}function gk(e){return D(n=>{const{getBlockRootClientId:o,getBlockParents:r,__experimentalGetBlockListSettingsForBlocks:s,isBlockInsertionPointVisible:i,getBlockInsertionPoint:c,getBlockOrder:l,hasMultiSelection:u,getLastMultiSelectedBlockClientId:d}=n(F),p=r(e),f=s(p),b=p.find(g=>f[g]?.__experimentalCaptureToolbars);let h=!1;if(i()){const g=c();h=l(g.rootClientId)[g.index]===e}return{capturingClientId:b,isInsertionPointVisible:h,lastClientId:u()?d():null,rootClientId:o(e)}},[e])}function r6t({clientId:e,__unstableContentRef:t}){const{capturingClientId:n,isInsertionPointVisible:o,lastClientId:r,rootClientId:s}=gk(e),i=Mk({contentElement:t?.current,clientId:e});return a.jsx(Gh,{clientId:n||e,bottomClientId:r,className:$("block-editor-block-list__block-side-inserter-popover",{"is-insertion-point-visible":o}),__unstableContentRef:t,...i,children:a.jsx("div",{className:"block-editor-block-list__empty-block-inserter",children:a.jsx(Xh,{position:"bottom right",rootClientId:s,clientId:e,__experimentalIsQuick:!0})})})}const JA=50,Ihe=25,s6t=1e3,RY=s6t*(Ihe/1e3);function i6t(){const e=O.useRef(null),t=O.useRef(null),n=O.useRef(null),o=O.useRef(null);O.useEffect(()=>()=>{o.current&&(clearInterval(o.current),o.current=null)},[]);const r=O.useCallback(c=>{e.current=c.clientY,n.current=Sr(c.target),o.current=setInterval(()=>{if(n.current&&t.current){const l=n.current.scrollTop+t.current;n.current.scroll({top:l})}},Ihe)},[]),s=O.useCallback(c=>{if(!n.current)return;const l=n.current.offsetHeight,u=e.current-n.current.offsetTop,d=c.clientY-n.current.offsetTop;if(c.clientY>u){const p=Math.max(l-u-JA,0),f=Math.max(d-u-JA,0),b=p===0||f===0?0:f/p;t.current=RY*b}else if(c.clientY{e.current=null,n.current=null,o.current&&(clearInterval(o.current),o.current=null)}]}const zk=({appendToOwnerDocument:e,children:t,clientIds:n,cloneClassname:o,elementId:r,onDragStart:s,onDragEnd:i,fadeWhenDisabled:c=!1,dragComponent:l})=>{const{srcRootClientId:u,isDraggable:d,icon:p,visibleInserter:f,getBlockType:b}=D(S=>{const{canMoveBlocks:C,getBlockRootClientId:T,getBlockName:W,getBlockAttributes:B,isBlockInsertionPointVisible:N}=S(F),{getBlockType:E,getActiveBlockVariation:L}=S($e),I=T(n[0]),P=W(n[0]),H=L(P,B(n[0]));return{srcRootClientId:I,isDraggable:C(n),icon:H?.icon||E(P)?.icon,visibleInserter:N(),getBlockType:E}},[n]),h=O.useRef(!1),[g,z,y]=i6t(),{getAllowedBlocks:x,getBlockNamesByClientId:v,getBlockRootClientId:M}=D(F),{startDraggingBlocks:A,stopDraggingBlocks:_}=ae(F);O.useEffect(()=>()=>{h.current&&_()},[]);const k=us(n[0])?.closest("body");if(O.useEffect(()=>{if(!k||!c)return;const C=zB(T=>{if(!T.target.closest("[data-block]"))return;const W=v(n),B=T.target.closest("[data-block]").getAttribute("data-block"),N=x(B),E=v([B])[0];let L;if(N?.length===0){const I=M(B),P=v([I])[0],H=x(I);L=xT(b,H,W,P)}else L=xT(b,N,W,E);!L&&!f?window?.document?.body?.classList?.add("block-draggable-invalid-drag-token"):window?.document?.body?.classList?.remove("block-draggable-invalid-drag-token")},200);return k.addEventListener("dragover",C),()=>{k.removeEventListener("dragover",C)}},[n,k,c,x,v,M,b,f]),!d)return t({draggable:!1});const q={type:"block",srcClientIds:n,srcRootClientId:u};return a.jsx(Vpe,{appendToOwnerDocument:e,cloneClassname:o,__experimentalTransferDataType:"wp-blocks",transferData:q,onDragStart:S=>{window.requestAnimationFrame(()=>{A(n),h.current=!0,g(S),s&&s()})},onDragOver:z,onDragEnd:()=>{_(),h.current=!1,y(),i&&i()},__experimentalDragComponent:l!==void 0?l:a.jsx(che,{count:n.length,icon:p,fadeWhenDisabled:!0}),elementId:r,children:({onDraggableStart:S,onDraggableEnd:C})=>t({draggable:!0,onDragStart:S,onDragEnd:C})})},cu=(e,t)=>e==="up"?t==="horizontal"?ft()?"right":"left":"up":e==="down"?t==="horizontal"?ft()?"left":"right":"down":null;function a6t(e,t,n,o,r,s,i){const c=n+1;if(e>1)return c6t(e,n,o,r,s,i);if(o&&r)return le(m("Block %s is the only block, and cannot be moved"),t);if(s>0&&!r){const l=cu("down",i);if(l==="down")return le(m("Move %1$s block from position %2$d down to position %3$d"),t,c,c+1);if(l==="left")return le(m("Move %1$s block from position %2$d left to position %3$d"),t,c,c+1);if(l==="right")return le(m("Move %1$s block from position %2$d right to position %3$d"),t,c,c+1)}if(s>0&&r){const l=cu("down",i);if(l==="down")return le(m("Block %1$s is at the end of the content and can’t be moved down"),t);if(l==="left")return le(m("Block %1$s is at the end of the content and can’t be moved left"),t);if(l==="right")return le(m("Block %1$s is at the end of the content and can’t be moved right"),t)}if(s<0&&!o){const l=cu("up",i);if(l==="up")return le(m("Move %1$s block from position %2$d up to position %3$d"),t,c,c-1);if(l==="left")return le(m("Move %1$s block from position %2$d left to position %3$d"),t,c,c-1);if(l==="right")return le(m("Move %1$s block from position %2$d right to position %3$d"),t,c,c-1)}if(s<0&&o){const l=cu("up",i);if(l==="up")return le(m("Block %1$s is at the beginning of the content and can’t be moved up"),t);if(l==="left")return le(m("Block %1$s is at the beginning of the content and can’t be moved left"),t);if(l==="right")return le(m("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}function c6t(e,t,n,o,r,s){const i=t+1;if(n&&o)return m("All blocks are selected, and cannot be moved");if(r>0&&!o){const c=cu("down",s);if(c==="down")return le(m("Move %1$d blocks from position %2$d down by one place"),e,i);if(c==="left")return le(m("Move %1$d blocks from position %2$d left by one place"),e,i);if(c==="right")return le(m("Move %1$d blocks from position %2$d right by one place"),e,i)}if(r>0&&o){const c=cu("down",s);if(c==="down")return m("Blocks cannot be moved down as they are already at the bottom");if(c==="left")return m("Blocks cannot be moved left as they are already are at the leftmost position");if(c==="right")return m("Blocks cannot be moved right as they are already are at the rightmost position")}if(r<0&&!n){const c=cu("up",s);if(c==="up")return le(m("Move %1$d blocks from position %2$d up by one place"),e,i);if(c==="left")return le(m("Move %1$d blocks from position %2$d left by one place"),e,i);if(c==="right")return le(m("Move %1$d blocks from position %2$d right by one place"),e,i)}if(r<0&&n){const c=cu("up",s);if(c==="up")return m("Blocks cannot be moved up as they are already at the top");if(c==="left")return m("Blocks cannot be moved left as they are already are at the leftmost position");if(c==="right")return m("Blocks cannot be moved right as they are already are at the rightmost position")}}const l6t=(e,t)=>e==="up"?t==="horizontal"?ft()?Ei:Fa:G_:e==="down"?t==="horizontal"?ft()?Fa:Ei:md:null,u6t=(e,t)=>e==="up"?t==="horizontal"?ft()?m("Move right"):m("Move left"):m("Move up"):e==="down"?t==="horizontal"?ft()?m("Move left"):m("Move right"):m("Move down"):null,kP=O.forwardRef(({clientIds:e,direction:t,orientation:n,...o},r)=>{const s=He(kP),i=Array.isArray(e)?e:[e],c=i.length,{disabled:l}=o,{blockType:u,isDisabled:d,rootClientId:p,isFirst:f,isLast:b,firstIndex:h,orientation:g="vertical"}=D(A=>{const{getBlockIndex:_,getBlockRootClientId:w,getBlockOrder:k,getBlock:q,getBlockListSettings:S}=A(F),C=i[0],T=w(C),W=_(C),B=_(i[i.length-1]),N=k(T),E=q(C),L=W===0,I=B===N.length-1,{orientation:P}=S(T)||{};return{blockType:E?Dt(E.name):null,isDisabled:l||(t==="up"?L:I),rootClientId:T,firstIndex:W,isFirst:L,isLast:I,orientation:n||P}},[e,t]),{moveBlocksDown:z,moveBlocksUp:y}=ae(F),x=t==="up"?y:z,v=A=>{x(e,p),o.onClick&&o.onClick(A)},M=`block-editor-block-mover-button__description-${s}`;return a.jsxs(a.Fragment,{children:[a.jsx(fe,{__next40pxDefaultSize:!1,ref:r,className:$("block-editor-block-mover-button",`is-${t}-button`),icon:l6t(t,g),label:u6t(t,g),"aria-describedby":M,...o,onClick:d?null:v,disabled:d,accessibleWhenDisabled:!0}),a.jsx(Kt,{id:M,children:a6t(c,u&&u.title,h,f,b,t==="up"?-1:1,g)})]})}),Dhe=O.forwardRef((e,t)=>a.jsx(kP,{direction:"up",ref:t,...e})),Fhe=O.forwardRef((e,t)=>a.jsx(kP,{direction:"down",ref:t,...e}));function $he({clientIds:e,hideDragHandle:t,isBlockMoverUpButtonDisabled:n,isBlockMoverDownButtonDisabled:o}){const{canMove:r,rootClientId:s,isFirst:i,isLast:c,orientation:l,isManualGrid:u}=D(d=>{var p;const{getBlockIndex:f,getBlockListSettings:b,canMoveBlocks:h,getBlockOrder:g,getBlockRootClientId:z,getBlockAttributes:y}=d(F),x=Array.isArray(e)?e:[e],v=x[0],M=z(v),A=f(v),_=f(x[x.length-1]),w=g(M),{layout:k={}}=(p=y(M))!==null&&p!==void 0?p:{};return{canMove:h(e),rootClientId:M,isFirst:A===0,isLast:_===w.length-1,orientation:b(M)?.orientation,isManualGrid:k.type==="grid"&&k.isManualPlacement&&window.__experimentalEnableGridInteractivity}},[e]);return!r||i&&c&&!s||t&&u?null:a.jsxs(c0,{className:$("block-editor-block-mover",{"is-horizontal":l==="horizontal"}),children:[!t&&a.jsx(zk,{clientIds:e,fadeWhenDisabled:!0,children:d=>a.jsx(fe,{__next40pxDefaultSize:!1,icon:K_,className:"block-editor-block-mover__drag-handle",label:m("Drag"),tabIndex:"-1",...d})}),!u&&a.jsxs("div",{className:"block-editor-block-mover__move-button-container",children:[a.jsx(Ko,{children:d=>a.jsx(Dhe,{disabled:n,clientIds:e,...d})}),a.jsx(Ko,{children:d=>a.jsx(Fhe,{disabled:o,clientIds:e,...d})})]})]})}const{clearTimeout:WY,setTimeout:d6t}=window,Vhe=200;function p6t({ref:e,isFocused:t,highlightParent:n,debounceTimeout:o=Vhe}){const{getSelectedBlockClientId:r,getBlockRootClientId:s}=D(F),{toggleBlockHighlight:i}=ae(F),c=O.useRef(),l=D(g=>g(F).getSettings().isDistractionFree,[]),u=g=>{if(g&&l)return;const z=r(),y=n?s(z):z;i(y,g)},d=()=>e?.current&&e.current.matches(":hover"),p=()=>{const g=d();return!t&&!g},f=()=>{const g=c.current;g&&WY&&WY(g)},b=g=>{g&&g.stopPropagation(),f(),u(!0)},h=g=>{g&&g.stopPropagation(),f(),c.current=d6t(()=>{p()&&u(!1)},o)};return O.useEffect(()=>()=>{u(!1),f()},[]),{debouncedShowGestures:b,debouncedHideGestures:h}}function qP({ref:e,highlightParent:t=!1,debounceTimeout:n=Vhe}){const[o,r]=O.useState(!1),{debouncedShowGestures:s,debouncedHideGestures:i}=p6t({ref:e,debounceTimeout:n,isFocused:o,highlightParent:t}),c=O.useRef(!1),l=()=>e?.current&&e.current.contains(e.current.ownerDocument.activeElement);return O.useEffect(()=>{const u=e.current,d=()=>{l()&&(r(!0),s())},p=()=>{l()||(r(!1),i())};return u&&!c.current&&(u.addEventListener("focus",d,!0),u.addEventListener("blur",p,!0),c.current=!0),()=>{u&&(u.removeEventListener("focus",d),u.removeEventListener("blur",p))}},[e,c,r,s,i]),{onMouseMove:s,onMouseLeave:i}}function f6t(){const{selectBlock:e}=ae(F),{firstParentClientId:t,isVisible:n}=D(i=>{const{getBlockName:c,getBlockParents:l,getSelectedBlockClientId:u,getBlockEditingMode:d}=i(F),{hasBlockSupport:p}=i($e),f=u(),b=l(f),h=b[b.length-1],g=c(h),z=Dt(g);return{firstParentClientId:h,isVisible:h&&d(h)==="default"&&p(z,"__experimentalParentSelector",!0)}},[]),o=gs(t),r=O.useRef(),s=qP({ref:r,highlightParent:!0});return n?a.jsx("div",{className:"block-editor-block-parent-selector",ref:r,...s,children:a.jsx(bt,{className:"block-editor-block-parent-selector__button",onClick:()=>e(t),label:le(m("Select parent block: %s"),o?.title),showTooltip:!0,icon:a.jsx(b0,{icon:o?.icon})})},t):null}function Hhe({blocks:e}){return g0("medium","<")?null:a.jsx("div",{className:"block-editor-block-switcher__popover-preview-container",children:a.jsx(Mn,{className:"block-editor-block-switcher__popover-preview",placement:"right-start",focusOnMount:!1,offset:16,children:a.jsxs("div",{className:"block-editor-block-switcher__preview",children:[a.jsx("div",{className:"block-editor-block-switcher__preview-title",children:m("Preview")}),a.jsx(lk,{viewportWidth:500,blocks:e})]})})})}const b6t={};function h6t({clientIds:e,blocks:t}){const{activeBlockVariation:n,blockVariationTransformations:o}=D(s=>{const{getBlockAttributes:i,canRemoveBlocks:c}=s(F),{getActiveBlockVariation:l,getBlockVariations:u}=s($e),d=c(e);if(t.length!==1||!d)return b6t;const[p]=t;return{blockVariationTransformations:u(p.name,"transform"),activeBlockVariation:l(p.name,i(p.clientId))}},[e,t]);return O.useMemo(()=>o?.filter(({name:s})=>s!==n?.name),[o,n])}const m6t=({transformations:e,onSelect:t,blocks:n})=>{const[o,r]=O.useState();return a.jsxs(a.Fragment,{children:[o&&a.jsx(Hhe,{blocks:pn(n[0],e.find(({name:s})=>s===o).attributes)}),e?.map(s=>a.jsx(M6t,{item:s,onSelect:t,setHoveredTransformItemName:r},s.name))]})};function M6t({item:e,onSelect:t,setHoveredTransformItemName:n}){const{name:o,icon:r,title:s}=e;return a.jsxs(tt,{className:AN(o),onClick:i=>{i.preventDefault(),t(o)},onMouseLeave:()=>n(null),onMouseEnter:()=>n(o),children:[a.jsx(b0,{icon:r,showColors:!0}),s]})}function g6t(e){const t={"core/paragraph":1,"core/heading":2,"core/list":3,"core/quote":4},n=O.useMemo(()=>{const o=Object.keys(t),r=e.reduce((s,i)=>{const{name:c}=i;return o.includes(c)?s.priorityTextTransformations.push(i):s.restTransformations.push(i),s},{priorityTextTransformations:[],restTransformations:[]});if(r.priorityTextTransformations.length===1&&r.priorityTextTransformations[0].name==="core/quote"){const s=r.priorityTextTransformations.pop();r.restTransformations.push(s)}return r},[e]);return n.priorityTextTransformations.sort(({name:o},{name:r})=>t[o]{const[i,c]=O.useState(),{priorityTextTransformations:l,restTransformations:u}=g6t(t),d=l.length&&u.length,p=!!u.length&&a.jsx(O6t,{restTransformations:u,onSelect:o,setHoveredTransformItemName:c});return a.jsxs(a.Fragment,{children:[a.jsxs(Yt,{label:m("Transform to"),className:e,children:[i&&a.jsx(Hhe,{blocks:l1(s,i)}),!!n?.length&&a.jsx(m6t,{transformations:n,blocks:s,onSelect:r}),l.map(f=>a.jsx(Uhe,{item:f,onSelect:o,setHoveredTransformItemName:c},f.name)),!d&&p]}),!!d&&a.jsx(Yt,{className:e,children:p})]})};function O6t({restTransformations:e,onSelect:t,setHoveredTransformItemName:n}){return e.map(o=>a.jsx(Uhe,{item:o,onSelect:t,setHoveredTransformItemName:n},o.name))}function Uhe({item:e,onSelect:t,setHoveredTransformItemName:n}){const{name:o,icon:r,title:s,isDisabled:i}=e;return a.jsxs(tt,{className:AN(o),onClick:c=>{c.preventDefault(),t(o)},disabled:i,onMouseLeave:()=>n(null),onMouseEnter:()=>n(o),children:[a.jsx(b0,{icon:r,showColors:!0}),s]})}class Ok{constructor(t=""){this._currentValue="",this._valueAsArray=[],this.value=t}entries(...t){return this._valueAsArray.entries(...t)}forEach(...t){return this._valueAsArray.forEach(...t)}keys(...t){return this._valueAsArray.keys(...t)}values(...t){return this._valueAsArray.values(...t)}get value(){return this._currentValue}set value(t){t=String(t),this._valueAsArray=[...new Set(t.split(/\s+/g).filter(Boolean))],this._currentValue=this._valueAsArray.join(" ")}get length(){return this._valueAsArray.length}toString(){return this.value}*[Symbol.iterator](){return yield*this._valueAsArray}item(t){return this._valueAsArray[t]}contains(t){return this._valueAsArray.indexOf(t)!==-1}add(...t){this.value+=" "+t.join(" ")}remove(...t){this.value=this._valueAsArray.filter(n=>!t.includes(n)).join(" ")}toggle(t,n){return n===void 0&&(n=!this.contains(t)),n?this.add(t):this.remove(t),n}replace(t,n){return this.contains(t)?(this.remove(t),this.add(n),!0):!1}supports(t){return!0}}function A6t(e,t){for(const n of new Ok(t).values()){if(n.indexOf("is-style-")===-1)continue;const o=n.substring(9),r=e?.find(({name:s})=>s===o);if(r)return r}return Ghe(e)}function Xhe(e,t,n){const o=new Ok(e);return t&&o.remove("is-style-"+t.name),o.add("is-style-"+n.name),o.value}function y6t(e){return!e||e.length===0?[]:Ghe(e)?e:[{name:"default",label:Oe("Default","block style"),isDefault:!0},...e]}function Ghe(e){return e?.find(t=>t.isDefault)}function v6t(e,t){return O.useMemo(()=>{const n=t?.example,o=t?.name;if(n&&o)return zN(o,{attributes:n.attributes,innerBlocks:n.innerBlocks});if(e)return pn(e)},[t?.example?e?.name:e,t])}function Khe({clientId:e,onSwitch:t}){const n=f=>{const{getBlock:b}=f(F),h=b(e);if(!h)return{};const g=Dt(h.name),{getBlockStyles:z}=f($e);return{block:h,blockType:g,styles:z(h.name),className:h.attributes.className||""}},{styles:o,block:r,blockType:s,className:i}=D(n,[e]),{updateBlockAttributes:c}=ae(F),l=y6t(o),u=A6t(l,i),d=v6t(r,s);return{onSelect:f=>{const b=Xhe(i,u,f);c(e,{className:b}),t()},stylesToRender:l,activeStyle:u,genericPreviewBlock:d,className:i}}const x6t=()=>{};function _6t({clientId:e,onSwitch:t=x6t}){const{onSelect:n,stylesToRender:o,activeStyle:r}=Khe({clientId:e,onSwitch:t});return!o||o.length===0?null:a.jsx(a.Fragment,{children:o.map(s=>{const i=s.label||s.name;return a.jsx(tt,{icon:r.name===s.name?no:null,onClick:()=>n(s),children:a.jsx(l0,{as:"span",limit:18,ellipsizeMode:"tail",truncate:!0,children:i})},s.name)})})}function w6t({hoveredBlock:e,onSwitch:t}){const{clientId:n}=e;return a.jsx(Yt,{label:m("Styles"),className:"block-editor-block-switcher__styles__menugroup",children:a.jsx(_6t,{clientId:n,onSwitch:t})})}const Yhe=(e,t,n=new Set)=>{const{clientId:o,name:r,innerBlocks:s=[]}=e;if(!n.has(o)){if(r===t)return e;for(const i of s){const c=Yhe(i,t,n);if(c)return c}}},k6t=(e,t)=>{const n=pNe(e,"content");return n?.length?n.reduce((o,r)=>(t[r]&&(o[r]=t[r]),o),{}):t},q6t=(e,t)=>{const n=k6t(t.name,t.attributes);e.attributes={...e.attributes,...n}},S6t=(e,t)=>{const n=t.map(r=>pn(r)),o=new Set;for(const r of e){let s=!1;for(const i of n){const c=Yhe(i,r.name,o);if(c){s=!0,o.add(c.clientId),q6t(c,r);break}}if(!s)return}return n},C6t=(e,t)=>O.useMemo(()=>e.reduce((n,o)=>{const r=S6t(t,o.blocks);return r&&n.push({...o,transformedBlocks:r}),n},[]),[e,t]),{CompositeV2:R6t,CompositeItemV2:W6t}=Fe(L0);function T6t({blocks:e,patterns:t,onSelect:n}){const[o,r]=O.useState(!1),s=C6t(t,e);return s.length?a.jsxs(Yt,{className:"block-editor-block-switcher__pattern__transforms__menugroup",children:[o&&a.jsx(E6t,{patterns:s,onSelect:n}),a.jsx(tt,{onClick:i=>{i.preventDefault(),r(!o)},icon:Ei,children:m("Patterns")})]}):null}function E6t({patterns:e,onSelect:t}){const n=g0("medium","<");return a.jsx("div",{className:"block-editor-block-switcher__popover-preview-container",children:a.jsx(Mn,{className:"block-editor-block-switcher__popover-preview",placement:n?"bottom":"right-start",offset:16,children:a.jsx("div",{className:"block-editor-block-switcher__preview is-pattern-list-preview",children:a.jsx(B6t,{patterns:e,onSelect:t})})})})}function B6t({patterns:e,onSelect:t}){return a.jsx(R6t,{role:"listbox",className:"block-editor-block-switcher__preview-patterns-container","aria-label":m("Patterns list"),children:e.map(n=>a.jsx(Zhe,{pattern:n,onSelect:t},n.name))})}function Zhe({pattern:e,onSelect:t}){const n="block-editor-block-switcher__preview-patterns-container",o=He(Zhe,`${n}-list__item-description`);return a.jsxs("div",{className:`${n}-list__list-item`,children:[a.jsxs(W6t,{render:a.jsx("div",{role:"option","aria-label":e.title,"aria-describedby":e.description?o:void 0,className:`${n}-list__item`}),onClick:()=>t(e.transformedBlocks),children:[a.jsx(lk,{blocks:e.transformedBlocks,viewportWidth:e.viewportWidth||500}),a.jsx("div",{className:`${n}-list__item-title`,children:e.title})]}),!!e.description&&a.jsx(Kt,{id:o,children:e.description})]})}function N6t({onClose:e,clientIds:t,hasBlockStyles:n,canRemove:o,isUsingBindings:r}){const{replaceBlocks:s,multiSelect:i,updateBlockAttributes:c}=ae(F),{possibleBlockTransformations:l,patterns:u,blocks:d}=D(k=>{const{getBlocksByClientId:q,getBlockRootClientId:S,getBlockTransformItems:C,__experimentalGetPatternTransformItems:T}=k(F),W=S(Array.isArray(t)?t[0]:t),B=q(t);return{blocks:B,possibleBlockTransformations:C(B,W),patterns:T(B,W)}},[t]),p=h6t({clientIds:t,blocks:d});function f(k){k.length>1&&i(k[0].clientId,k[k.length-1].clientId)}function b(k){const q=l1(d,k);s(t,q),f(q)}function h(k){c(d[0].clientId,{...p.find(({name:q})=>q===k).attributes})}function g(k){s(t,k),f(k)}const z=d.length===1,y=z&&mh(d[0]),x=!!l.length&&o&&!y,v=!!p?.length,M=!!u?.length&&o,A=x||v;if(!(n||A||M))return a.jsx("p",{className:"block-editor-block-switcher__no-transforms",children:m("No transforms.")});const w=Oe(z?"This block is connected.":"These blocks are connected.","block toolbar button label and description");return a.jsxs("div",{className:"block-editor-block-switcher__container",children:[M&&a.jsx(T6t,{blocks:d,patterns:u,onSelect:k=>{g(k),e()}}),A&&a.jsx(z6t,{className:"block-editor-block-switcher__transforms__menugroup",possibleBlockTransformations:l,possibleBlockVariationTransformations:p,blocks:d,onSelect:k=>{b(k),e()},onSelectVariation:k=>{h(k),e()}}),n&&a.jsx(w6t,{hoveredBlock:d[0],onSwitch:e}),r&&a.jsx(Yt,{children:a.jsx(l0,{className:"block-editor-block-switcher__binding-indicator",children:w})})]})}const TY=({icon:e,showTitle:t,blockTitle:n})=>a.jsxs(a.Fragment,{children:[a.jsx(b0,{className:"block-editor-block-switcher__toggle",icon:e,showColors:!0}),t&&n&&a.jsx("span",{className:"block-editor-block-switcher__toggle-text",children:n})]}),L6t=({clientIds:e,disabled:t,isUsingBindings:n})=>{const{canRemove:o,hasBlockStyles:r,icon:s,invalidBlocks:i,isReusable:c,isTemplate:l}=D(h=>{const{getBlocksByClientId:g,getBlockAttributes:z,canRemoveBlocks:y}=h(F),{getBlockStyles:x,getBlockType:v,getActiveBlockVariation:M}=h($e),A=g(e);if(!A.length||A.some(S=>!S))return{invalidBlocks:!0};const[{name:_}]=A,w=A.length===1,k=v(_);let q;return w?q=M(_,z(e[0]))?.icon||k.icon:q=new Set(A.map(({name:C})=>C)).size===1?k.icon:k3,{canRemove:y(e),hasBlockStyles:w&&!!x(_)?.length,icon:q,isReusable:w&&dd(A[0]),isTemplate:w&&mh(A[0])}},[e]),u=ed({clientId:e?.[0],maximumLength:35});if(i)return null;const d=e.length===1,p=d?u:m("Multiple blocks selected");if(t||!r&&!o)return a.jsx(c0,{children:a.jsx(bt,{disabled:!0,className:"block-editor-block-switcher__no-switcher-icon",title:p,icon:a.jsx(TY,{icon:s,showTitle:c||l,blockTitle:u})})});const b=d?m("Change block type or style"):le(a0("Change type of %d block","Change type of %d blocks",e.length),e.length);return a.jsx(c0,{children:a.jsx(Ko,{children:h=>a.jsx(E1,{className:"block-editor-block-switcher",label:p,popoverProps:{placement:"bottom-start",className:"block-editor-block-switcher__popover"},icon:a.jsx(TY,{icon:s,showTitle:c||l,blockTitle:u}),toggleProps:{description:b,...h},menuProps:{orientation:"both"},children:({onClose:g})=>a.jsx(N6t,{onClose:g,clientIds:e,hasBlockStyles:r,canRemove:o,isUsingBindings:n})})})})},j6t=_0("BlockControls"),P6t=_0("BlockControlsBlock"),I6t=_0("BlockFormatControls"),D6t=_0("BlockControlsOther"),F6t=_0("BlockControlsParent"),_z={default:j6t,block:P6t,inline:I6t,other:D6t,parent:F6t};function $6t(e,t){const n=eo();return n[n3]?_z[e]?.Fill:n[RN]&&t?_z.parent.Fill:null}function V6t({group:e="default",controls:t,children:n,__experimentalShareWithChildBlocks:o=!1}){const r=$6t(e,o);if(!r)return null;const s=a.jsxs(a.Fragment,{children:[e==="default"&&a.jsx(c0,{controls:t}),n]});return a.jsx(yf,{document,children:a.jsx(r,{children:i=>{const{forwardedContext:c=[]}=i;return c.reduce((l,[u,d])=>a.jsx(u,{...d,children:l}),s)}})})}const{ComponentsContext:EY}=Fe(L0);function H6t({group:e="default",...t}){const n=O.useContext(Zu),o=O.useContext(EY),r=O.useMemo(()=>({forwardedContext:[[Zu.Provider,{value:n}],[EY.Provider,{value:o}]]}),[n,o]),s=_z[e]?.Slot,i=j1(s?.__unstableName);if(!s)return globalThis.SCRIPT_DEBUG===!0&&Xt(`Unknown BlockControls group "${e}" provided.`),null;if(!i?.length)return null;const c=a.jsx(s,{...t,bubblesVirtually:!0,fillProps:r});return e==="default"?c:a.jsx(c0,{children:c})}const Ie=V6t;Ie.Slot=H6t;const{Fill:SP,Slot:U6t}=_0("__unstableBlockToolbarLastItem");SP.Slot=U6t;const X6t="align",Qhe="__experimentalBorder",Ak="color",G6t="customClassName",Jhe="typography.__experimentalFontFamily",eme="typography.fontSize",K6t="typography.lineHeight",Y6t="typography.__experimentalFontStyle",Z6t="typography.__experimentalFontWeight",tme="typography.textAlign",Q6t="typography.textColumns",J6t="typography.__experimentalTextDecoration",eqt="typography.__experimentalWritingMode",tqt="typography.__experimentalTextTransform",nqt="typography.__experimentalLetterSpacing",oqt="layout",rqt=[K6t,eme,Y6t,Z6t,Jhe,tme,Q6t,J6t,tqt,eqt,nqt],sqt=["shadow"],iqt="spacing",aqt=[...sqt,...rqt,Qhe,Ak,iqt],cqt=e=>st(e,X6t);function lqt(e,t="any"){const n=Zt(e,Qhe);return n===!0?!0:t==="any"?!!(n?.color||n?.radius||n?.width||n?.style):!!n?.[t]}const uqt=e=>{const t=Zt(e,Ak);return t!==null&&typeof t=="object"&&!!t.gradients},dqt=e=>{const t=Zt(e,Ak);return t&&t.background!==!1},pqt=e=>st(e,tme),fqt=e=>{const t=Zt(e,Ak);return t&&t.text!==!1},bqt=e=>st(e,G6t,!0),hqt=e=>st(e,Jhe),mqt=e=>st(e,eme),Mqt=e=>st(e,oqt),gqt=e=>aqt.some(t=>st(e,t));function zqt(e){try{const t=Yn(e,{__unstableSkipMigrationLogs:!0,__unstableSkipAutop:!0});return!(t.length===1&&t[0].name==="core/freeform")}catch{return!1}}const Oqt={align:cqt,borderColor:e=>lqt(e,"color"),backgroundColor:dqt,textAlign:pqt,textColor:fqt,gradient:uqt,className:bqt,fontFamily:hqt,fontSize:mqt,layout:Mqt,style:gqt};function Aqt(e,t){return Object.entries(Oqt).reduce((n,[o,r])=>(r(e.name)&&r(t.name)&&(n[o]=e.attributes[o]),n),{})}function kT(e,t,n){for(let o=0;o{let i="";try{if(!window.navigator.clipboard){r(m("Unable to paste styles. This feature is only available on secure (https) sites in supporting browsers."),{type:"snackbar"});return}i=await window.navigator.clipboard.readText()}catch{r(m("Unable to paste styles. Please allow browser clipboard permissions before continuing."),{type:"snackbar"});return}if(!i||!zqt(i)){o(m("Unable to paste styles. Block styles couldn't be found within the copied content."),{type:"snackbar"});return}const c=Yn(i);if(c.length===1?e.batch(()=>{kT(s,s.map(()=>c[0]),t)}):e.batch(()=>{kT(s,c,t)}),s.length===1){const l=Dt(s[0].name)?.title;n(le(m("Pasted styles to %s."),l),{type:"snackbar"})}else n(le(m("Pasted styles to %d blocks."),s.length),{type:"snackbar"})},[e.batch,t,n,o,r])}function vqt({clientIds:e,children:t,__experimentalUpdateSelection:n}){const{getDefaultBlockName:o,getGroupingBlockName:r}=D($e),s=D(k=>{const{canInsertBlockType:q,getBlockRootClientId:S,getBlocksByClientId:C,getDirectInsertBlock:T,canMoveBlocks:W,canRemoveBlocks:B}=k(F),N=C(e),E=S(e[0]),L=q(o(),E),I=E?T(E):null;return{canMove:W(e),canRemove:B(e),canInsertBlock:L||!!I,canCopyStyles:N.every(P=>!!P&&(st(P.name,"color")||st(P.name,"typography"))),canDuplicate:N.every(P=>!!P&&st(P.name,"multiple",!0)&&q(P.name,E))}},[e,o]),{getBlocksByClientId:i,getBlocks:c}=D(F),{canMove:l,canRemove:u,canInsertBlock:d,canCopyStyles:p,canDuplicate:f}=s,{removeBlocks:b,replaceBlocks:h,duplicateBlocks:g,insertAfterBlock:z,insertBeforeBlock:y,flashBlock:x,setBlockMovingClientId:v,setNavigationMode:M,selectBlock:A}=ae(F),_=lP(),w=yqt();return t({canCopyStyles:p,canDuplicate:f,canInsertBlock:d,canMove:l,canRemove:u,onDuplicate(){return g(e,n)},onRemove(){return b(e,n)},onInsertBefore(){y(e[0])},onInsertAfter(){z(e[e.length-1])},onMoveTo(){M(!0),A(e[0]),v(e[0])},onGroup(){if(!e.length)return;const k=r(),q=l1(i(e),k);q&&h(e,q)},onUngroup(){if(!e.length)return;const k=c(e[0]);k.length&&h(e,k)},onCopy(){e.length===1&&x(e[0]),_("copy",e)},async onPasteStyles(){await w(i(e))}})}function xqt({clientId:e}){const t=D(o=>o(F).getBlock(e),[e]),{replaceBlocks:n}=ae(F);return!t||t.name!=="core/html"?null:a.jsx(tt,{onClick:()=>n(e,e3({HTML:s_(t)})),children:m("Convert to Blocks")})}const{Fill:yk,Slot:_qt}=_0("__unstableBlockSettingsMenuFirstItem");yk.Slot=_qt;function nme(e){return D(t=>{const{getBlocksByClientId:n,getSelectedBlockClientIds:o,isUngroupable:r,isGroupable:s}=t(F),{getGroupingBlockName:i,getBlockType:c}=t($e),l=e?.length?e:o(),u=n(l),[d]=u,p=l.length===1&&r(l[0]);return{clientIds:l,isGroupable:s(l),isUngroupable:p,blocksSelection:u,groupingBlockName:i(),onUngroup:p&&c(d.name)?.transforms?.ungroup}},[e])}const wqt={group:{type:"constrained"},row:{type:"flex",flexWrap:"nowrap"},stack:{type:"flex",orientation:"vertical"},grid:{type:"grid"}};function kqt(){const{blocksSelection:e,clientIds:t,groupingBlockName:n,isGroupable:o}=nme(),{replaceBlocks:r}=ae(F),{canRemove:s,variations:i}=D(h=>{const{canRemoveBlocks:g}=h(F),{getBlockVariations:z}=h($e);return{canRemove:g(t),variations:z(n,"transform")}},[t,n]),c=h=>{const g=l1(e,n);typeof h!="string"&&(h="group"),g&&g.length>0&&(g[0].attributes.layout=wqt[h],r(t,g))},l=()=>c("row"),u=()=>c("stack"),d=()=>c("grid");if(!o||!s)return null;const p=!!i.find(({name:h})=>h==="group-row"),f=!!i.find(({name:h})=>h==="group-stack"),b=!!i.find(({name:h})=>h==="group-grid");return a.jsxs(c0,{children:[a.jsx(bt,{icon:Of,label:Oe("Group","verb"),onClick:c}),p&&a.jsx(bt,{icon:_le,label:Oe("Row","single horizontal line"),onClick:l}),f&&a.jsx(bt,{icon:Cle,label:Oe("Stack","verb"),onClick:u}),b&&a.jsx(bt,{icon:q3,label:Oe("Grid","verb"),onClick:d})]})}function qqt({clientIds:e,isGroupable:t,isUngroupable:n,onUngroup:o,blocksSelection:r,groupingBlockName:s,onClose:i=()=>{}}){const{getSelectedBlockClientIds:c}=D(F),{replaceBlocks:l}=ae(F),u=()=>{const f=l1(r,s);f&&l(e,f)},d=()=>{let f=r[0].innerBlocks;f.length&&(o&&(f=o(r[0].attributes,r[0].innerBlocks)),l(e,f))};if(!t&&!n)return null;const p=c();return a.jsxs(a.Fragment,{children:[t&&a.jsx(tt,{shortcut:p.length>1?Jo.primary("g"):void 0,onClick:()=>{u(),i()},children:Oe("Group","verb")}),n&&a.jsx(tt,{onClick:()=>{d(),i()},children:Oe("Ungroup","Ungrouping blocks from within a grouping block back into individual blocks within the Editor")})]})}function Yh(e){return D(t=>{const{canEditBlock:n,canMoveBlock:o,canRemoveBlock:r,canLockBlockType:s,getBlockName:i,getTemplateLock:c}=t(F),l=n(e),u=o(e),d=r(e);return{canEdit:l,canMove:u,canRemove:d,canLock:s(i(e)),isContentLocked:c(e)==="contentOnly",isLocked:!l||!u||!d}},[e])}const Sqt=["core/block","core/navigation"];function Cqt(e){return e.remove&&e.move?"all":e.remove&&!e.move?"insert":!1}function ome({clientId:e,onClose:t}){const[n,o]=O.useState({move:!1,remove:!1}),{canEdit:r,canMove:s,canRemove:i}=Yh(e),{allowsEditLocking:c,templateLock:l,hasTemplateLock:u}=D(z=>{const{getBlockName:y,getBlockAttributes:x}=z(F),v=y(e),M=Dt(v);return{allowsEditLocking:Sqt.includes(v),templateLock:x(e)?.templateLock,hasTemplateLock:!!M?.attributes?.templateLock}},[e]),[d,p]=O.useState(!!l),{updateBlockAttributes:f}=ae(F),b=gs(e);O.useEffect(()=>{o({move:!s,remove:!i,...c?{edit:!r}:{}})},[r,s,i,c]);const h=Object.values(n).every(Boolean),g=Object.values(n).some(Boolean)&&!h;return a.jsx(fn,{title:le(m("Lock %s"),b.title),overlayClassName:"block-editor-block-lock-modal",onRequestClose:t,children:a.jsxs("form",{onSubmit:z=>{z.preventDefault(),f([e],{lock:n,templateLock:d?Cqt(n):void 0}),t()},children:[a.jsxs("fieldset",{className:"block-editor-block-lock-modal__options",children:[a.jsx("legend",{children:m("Choose specific attributes to restrict or lock all available options.")}),a.jsx("ul",{role:"list",className:"block-editor-block-lock-modal__checklist",children:a.jsxs("li",{children:[a.jsx(Bo,{__nextHasNoMarginBottom:!0,className:"block-editor-block-lock-modal__options-all",label:m("Lock all"),checked:h,indeterminate:g,onChange:z=>o({move:z,remove:z,...c?{edit:z}:{}})}),a.jsxs("ul",{role:"list",className:"block-editor-block-lock-modal__checklist",children:[c&&a.jsxs("li",{className:"block-editor-block-lock-modal__checklist-item",children:[a.jsx(Bo,{__nextHasNoMarginBottom:!0,label:m("Restrict editing"),checked:!!n.edit,onChange:z=>o(y=>({...y,edit:z}))}),a.jsx(xn,{className:"block-editor-block-lock-modal__lock-icon",icon:n.edit?t4:FM})]}),a.jsxs("li",{className:"block-editor-block-lock-modal__checklist-item",children:[a.jsx(Bo,{__nextHasNoMarginBottom:!0,label:m("Disable movement"),checked:n.move,onChange:z=>o(y=>({...y,move:z}))}),a.jsx(xn,{className:"block-editor-block-lock-modal__lock-icon",icon:n.move?t4:FM})]}),a.jsxs("li",{className:"block-editor-block-lock-modal__checklist-item",children:[a.jsx(Bo,{__nextHasNoMarginBottom:!0,label:m("Prevent removal"),checked:n.remove,onChange:z=>o(y=>({...y,remove:z}))}),a.jsx(xn,{className:"block-editor-block-lock-modal__lock-icon",icon:n.remove?t4:FM})]})]})]})}),u&&a.jsx(Be,{__nextHasNoMarginBottom:!0,className:"block-editor-block-lock-modal__template-lock",label:m("Apply to all blocks inside"),checked:d,disabled:n.move&&!n.remove,onChange:()=>p(!d)})]}),a.jsxs(Q0,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1,children:[a.jsx(Ht,{children:a.jsx(fe,{variant:"tertiary",onClick:t,__next40pxDefaultSize:!0,children:m("Cancel")})}),a.jsx(Ht,{children:a.jsx(fe,{variant:"primary",type:"submit",__next40pxDefaultSize:!0,children:m("Apply")})})]})]})})}function Rqt({clientId:e}){const{canLock:t,isLocked:n}=Yh(e),[o,r]=O.useReducer(i=>!i,!1);if(!t)return null;const s=m(n?"Unlock":"Lock");return a.jsxs(a.Fragment,{children:[a.jsx(tt,{icon:n?FM:lZe,onClick:r,"aria-expanded":o,"aria-haspopup":"dialog",children:s}),o&&a.jsx(ome,{clientId:e,onClose:r})]})}function Wqt({clientId:e}){const{canLock:t,isLocked:n}=Yh(e),[o,r]=O.useReducer(c=>!c,!1),s=O.useRef(!1);if(O.useEffect(()=>{n&&(s.current=!0)},[n]),!n&&!s.current)return null;let i=m(n?"Unlock":"Lock");return!t&&n&&(i=m("Locked")),a.jsxs(a.Fragment,{children:[a.jsx(c0,{className:"block-editor-block-lock-toolbar",children:a.jsx(bt,{disabled:!t,icon:n?t4:FM,label:i,onClick:r,"aria-expanded":o,"aria-haspopup":"dialog"})}),o&&a.jsx(ome,{clientId:e,onClose:r})]})}const Tqt=()=>{};function Eqt({clientId:e,onToggle:t=Tqt}){const{blockType:n,mode:o,isCodeEditingEnabled:r}=D(c=>{const{getBlock:l,getBlockMode:u,getSettings:d}=c(F),p=l(e);return{mode:u(e),blockType:p?Dt(p.name):null,isCodeEditingEnabled:d().codeEditingEnabled}},[e]),{toggleBlockMode:s}=ae(F);if(!n||!st(n,"html",!0)||!r)return null;const i=m(o==="visual"?"Edit as HTML":"Edit visually");return a.jsx(tt,{onClick:()=>{s(e),t()},children:i})}function Bqt({clientId:e,onClose:t}){const{templateLock:n,isLockedByParent:o,isEditingAsBlocks:r}=D(u=>{const{getContentLockingParent:d,getTemplateLock:p,getTemporarilyEditingAsBlocks:f}=Fe(u(F));return{templateLock:p(e),isLockedByParent:!!d(e),isEditingAsBlocks:f()===e}},[e]),s=ae(F),i=!o&&n==="contentOnly";if(!i&&!r)return null;const{modifyContentLockBlock:c}=Fe(s);return!r&&i&&a.jsx(tt,{onClick:()=>{c(e),t()},children:Oe("Modify","Unlock content locked blocks")})}function rme(e){return e?.trim()?.length===0}function Nqt({blockName:e,originalBlockName:t,onClose:n,onSave:o,hasOverridesWarning:r}){const[s,i]=O.useState(e),c=s!==e,l=s===t,u=rme(s),d=c||l,p=b=>b.target.select(),f=()=>{const b=le(m(l||u?'Block name reset to: "%s".':'Block name changed to: "%s".'),s);At(b,"assertive"),o(s),n()};return a.jsx(fn,{title:m("Rename"),onRequestClose:n,overlayClassName:"block-editor-block-rename-modal",focusOnMount:"firstContentElement",size:"small",children:a.jsx("form",{onSubmit:b=>{b.preventDefault(),d&&f()},children:a.jsxs(Ye,{spacing:"3",children:[a.jsx($t,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:s,label:m("Name"),help:r?m("This block allows overrides. Changing the name can cause problems with content entered into instances of this pattern."):void 0,placeholder:t,onChange:i,onFocus:p}),a.jsxs(Je,{justify:"right",children:[a.jsx(fe,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:n,children:m("Cancel")}),a.jsx(fe,{__next40pxDefaultSize:!0,"aria-disabled":!d,variant:"primary",type:"submit",children:m("Save")})]})]})})})}function Lqt({clientId:e}){const[t,n]=O.useState(!1),{metadata:o}=D(u=>{const{getBlockAttributes:d}=u(F);return{metadata:d(e)?.metadata}},[e]),{updateBlockAttributes:r}=ae(F),s=o?.name,i=!!s&&!!o?.bindings&&Object.values(o.bindings).some(u=>u.source==="core/pattern-overrides");function c(u){r([e],{metadata:{...o,name:u}})}const l=gs(e);return a.jsxs(a.Fragment,{children:[a.jsx(tt,{onClick:()=>{n(!0)},"aria-expanded":t,"aria-haspopup":"dialog",children:m("Rename")}),t&&a.jsx(Nqt,{blockName:s||"",originalBlockName:l?.title,hasOverridesWarning:i,onClose:()=>n(!1),onSave:u=>{(u===l?.title||rme(u))&&(u=void 0),c(u)}})]})}function jqt(e){return{canRename:Zt(e,"renaming",!0)}}const{Fill:Pqt,Slot:Iqt}=_0("BlockSettingsMenuControls"),Dqt=({fillProps:e,clientIds:t=null})=>{const{selectedBlocks:n,selectedClientIds:o,isContentOnly:r}=D(b=>{const{getBlockNamesByClientId:h,getSelectedBlockClientIds:g,getBlockEditingMode:z}=b(F),y=t!==null?t:g();return{selectedBlocks:h(y),selectedClientIds:y,isContentOnly:z(y[0])==="contentOnly"}},[t]),{canLock:s}=Yh(o[0]),{canRename:i}=jqt(n[0]),c=o.length===1&&s&&!r,l=o.length===1&&i&&!r,u=nme(o),{isGroupable:d,isUngroupable:p}=u,f=d||p;return a.jsx(Iqt,{fillProps:{...e,selectedBlocks:n,selectedClientIds:o},children:b=>!b?.length>0&&!f&&!c?null:a.jsxs(Yt,{children:[f&&a.jsx(qqt,{...u,onClose:e?.onClose}),c&&a.jsx(Rqt,{clientId:o[0]}),l&&a.jsx(Lqt,{clientId:o[0]}),b,e?.canMove&&!e?.onlyBlock&&!r&&a.jsx(tt,{onClick:Jl(e?.onClose,e?.onMoveTo),children:m("Move to")}),o.length===1&&a.jsx(Bqt,{clientId:o[0],onClose:e?.onClose}),e?.count===1&&!r&&a.jsx(Eqt,{clientId:e?.firstBlockClientId,onToggle:e?.onClose})]})})};function Zh({...e}){return a.jsx(yf,{document,children:a.jsx(Pqt,{...e})})}Zh.Slot=Dqt;function Fqt({parentClientId:e,parentBlockType:t}){const n=g0("medium","<"),{selectBlock:o}=ae(F),r=O.useRef(),s=qP({ref:r,highlightParent:!0});return n?a.jsx(tt,{...s,ref:r,icon:a.jsx(b0,{icon:t.icon}),onClick:()=>o(e),children:le(m("Select parent block (%s)"),t.title)}):null}const $qt={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"};function BY({clientIds:e,onCopy:t,label:n,shortcut:o}){const{getBlocksByClientId:r}=D(F),s=af(()=>Pr(r(e)),t),i=n||m("Copy");return a.jsx(tt,{ref:s,shortcut:o,children:i})}function sme({block:e,clientIds:t,children:n,__experimentalSelectBlock:o,...r}){const s=e?.clientId,i=t.length,c=t[0],{firstParentClientId:l,onlyBlock:u,parentBlockType:d,previousBlockClientId:p,selectedBlockClientIds:f,openedBlockSettingsMenu:b,isContentOnly:h}=D(q=>{const{getBlockCount:S,getBlockName:C,getBlockRootClientId:T,getPreviousBlockClientId:W,getSelectedBlockClientIds:B,getBlockAttributes:N,getOpenedBlockSettingsMenu:E,getBlockEditingMode:L}=Fe(q(F)),{getActiveBlockVariation:I}=q($e),P=T(c),H=P&&C(P);return{firstParentClientId:P,onlyBlock:S(P)===1,parentBlockType:P&&(I(H,N(P))||Dt(H)),previousBlockClientId:W(c),selectedBlockClientIds:B(),openedBlockSettingsMenu:E(),isContentOnly:L(c)==="contentOnly"}},[c]),{getBlockOrder:g,getSelectedBlockClientIds:z}=D(F),{setOpenedBlockSettingsMenu:y}=Fe(ae(F)),x=D(q=>{const{getShortcutRepresentation:S}=q(Br);return{duplicate:S("core/block-editor/duplicate"),remove:S("core/block-editor/remove"),insertAfter:S("core/block-editor/insert-after"),insertBefore:S("core/block-editor/insert-before")}},[]),v=f.length>0;async function M(q){if(!o)return;const S=await q;S&&S[0]&&o(S[0],!1)}function A(){if(!o)return;let q=p||l;q||(q=g()[0]);const S=v&&z().length===0;o(q,S)}const _=f?.includes(l),w=s?b===s||!1:void 0;function k(q){q&&b!==s?y(s):!q&&b&&b===s&&y(void 0)}return a.jsx(vqt,{clientIds:t,__experimentalUpdateSelection:!o,children:({canCopyStyles:q,canDuplicate:S,canInsertBlock:C,canMove:T,canRemove:W,onDuplicate:B,onInsertAfter:N,onInsertBefore:E,onRemove:L,onCopy:I,onPasteStyles:P,onMoveTo:H})=>a.jsx(E1,{icon:Ol,label:m("Options"),className:"block-editor-block-settings-menu",popoverProps:$qt,open:w,onToggle:k,noIcons:!0,...r,children:({onClose:U})=>a.jsxs(a.Fragment,{children:[a.jsxs(Yt,{children:[a.jsx(yk.Slot,{fillProps:{onClose:U}}),!_&&!!l&&a.jsx(Fqt,{parentClientId:l,parentBlockType:d}),i===1&&a.jsx(xqt,{clientId:c}),!h&&a.jsx(BY,{clientIds:t,onCopy:I,shortcut:Jo.primary("c")}),S&&a.jsx(tt,{onClick:Jl(U,B,M),shortcut:x.duplicate,children:m("Duplicate")}),C&&!h&&a.jsxs(a.Fragment,{children:[a.jsx(tt,{onClick:Jl(U,E),shortcut:x.insertBefore,children:m("Add before")}),a.jsx(tt,{onClick:Jl(U,N),shortcut:x.insertAfter,children:m("Add after")})]})]}),q&&!h&&a.jsxs(Yt,{children:[a.jsx(BY,{clientIds:t,onCopy:I,label:m("Copy styles")}),a.jsx(tt,{onClick:P,children:m("Paste styles")})]}),a.jsx(Zh.Slot,{fillProps:{onClose:U,canMove:T,onMoveTo:H,onlyBlock:u,count:i,firstBlockClientId:c},clientIds:t}),typeof n=="function"?n({onClose:U}):O.Children.map(X=>O.cloneElement(X,{onClose:U})),W&&a.jsx(Yt,{children:a.jsx(tt,{onClick:Jl(U,L,A),shortcut:x.remove,children:m("Delete")})})]})})})}function Vqt({clientIds:e,...t}){return a.jsx(c0,{children:a.jsx(Ko,{children:n=>a.jsx(sme,{clientIds:e,toggleProps:n,...t})})})}function Hqt({clientIds:e}){const t=e.length===1?e[0]:void 0,n=D(r=>!!t&&r(F).getBlockMode(t)==="html",[t]),{toggleBlockMode:o}=ae(F);return n?a.jsx(c0,{children:a.jsx(bt,{onClick:()=>{o(t)},children:m("Edit visually")})}):null}const Uqt=O.createContext("");function Xqt(e){const t="toolbarItem";return!e.some(n=>!(t in n.dataset))}function NY(e){return Array.from(e.querySelectorAll("[data-toolbar-item]:not([disabled])"))}function LY(e){return e.contains(e.ownerDocument.activeElement)}function Gqt(e){const[t]=Nn.tabbable.find(e);t&&t.focus({preventScroll:!0})}function Kqt(e){const[n,o]=O.useState(!0),r=O.useCallback(()=>{const s=Nn.tabbable.find(e.current),i=Xqt(s);i||Re("Using custom components as toolbar controls",{since:"5.6",alternative:"ToolbarItem, ToolbarButton or ToolbarDropdownMenu components",link:"https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols"}),o(i)},[e]);return O.useLayoutEffect(()=>{const s=new window.MutationObserver(r);return s.observe(e.current,{childList:!0,subtree:!0}),()=>s.disconnect()},[r,n,e]),n}function Yqt({toolbarRef:e,focusOnMount:t,isAccessibleToolbar:n,defaultIndex:o,onIndexChange:r,shouldUseKeyboardFocusShortcut:s,focusEditorOnEscape:i}){const[c]=O.useState(t),[l]=O.useState(o),u=O.useCallback(()=>{Gqt(e.current)},[e]);Ur("core/block-editor/focus-toolbar",()=>{s&&u()}),O.useEffect(()=>{c&&u()},[n,c,u]),O.useEffect(()=>{const f=e.current;let b=0;return!c&&!LY(f)&&(b=window.requestAnimationFrame(()=>{const h=NY(f),g=l||0;h[g]&&LY(f)&&h[g].focus({preventScroll:!0})})),()=>{if(window.cancelAnimationFrame(b),!r||!f)return;const g=NY(f).findIndex(z=>z.tabIndex===0);r(g)}},[l,c,r,e]);const{getLastFocus:p}=Fe(D(F));O.useEffect(()=>{const f=e.current;if(i){const b=h=>{const g=p();h.keyCode===Ea&&g?.current&&(h.preventDefault(),g.current.focus())};return f.addEventListener("keydown",b),()=>{f.removeEventListener("keydown",b)}}},[i,p,e])}function vk({children:e,focusOnMount:t,focusEditorOnEscape:n=!1,shouldUseKeyboardFocusShortcut:o=!0,__experimentalInitialIndex:r,__experimentalOnIndexChange:s,orientation:i="horizontal",...c}){const l=O.useRef(),u=Kqt(l);return Yqt({toolbarRef:l,focusOnMount:t,defaultIndex:r,onIndexChange:s,isAccessibleToolbar:u,shouldUseKeyboardFocusShortcut:o,focusEditorOnEscape:n}),u?a.jsx(y2t,{label:c["aria-label"],ref:l,orientation:i,...c,children:e}):a.jsx(xf,{orientation:i,role:"toolbar",ref:l,...c,children:e})}function Zqt(){let e=!1;for(const t in _z)Qqt(t)&&(e=!0);return e}function Qqt(e="default"){const t=_z[e]?.Slot,n=j1(t?.__unstableName);return t?!!n?.length:(globalThis.SCRIPT_DEBUG===!0&&Xt(`Unknown BlockControls group "${e}" provided.`),null)}function ime(){const{isToolbarEnabled:e,isDefaultEditingMode:t}=D(o=>{const{getBlockEditingMode:r,getBlockName:s,getBlockSelectionStart:i}=o(F),c=i(),l=c&&Dt(s(c));return{isToolbarEnabled:l&&st(l,"__experimentalToolbar",!0),isDefaultEditingMode:r(c)==="default"}},[]),n=Zqt();return!(!e||!t&&!n)}function ame({hideDragHandle:e,focusOnMount:t,__experimentalInitialIndex:n,__experimentalOnIndexChange:o,variant:r="unstyled"}){const{blockClientId:s,blockClientIds:i,isContentOnlyEditingMode:c,isDefaultEditingMode:l,blockType:u,toolbarKey:d,shouldShowVisualToolbar:p,showParentSelector:f,isUsingBindings:b,hasParentPattern:h}=D(k=>{const{getBlockName:q,getBlockMode:S,getBlockParents:C,getSelectedBlockClientIds:T,isBlockValid:W,getBlockEditingMode:B,getBlockAttributes:N,getBlockParentsByBlockName:E}=k(F),L=T(),I=L[0],P=C(I),H=P[P.length-1],U=q(H),X=Dt(U),Z=B(I),ne=Z==="default",oe=q(I),Y=L.every(be=>W(be)),ee=L.every(be=>S(be)==="visual"),ie=L.every(be=>!!N(be)?.metadata?.bindings),se=L.every(be=>E(be,"core/block",!0).length>0);return{blockClientId:I,blockClientIds:L,isContentOnlyEditingMode:Z==="contentOnly",isDefaultEditingMode:ne,blockType:I&&Dt(oe),shouldShowVisualToolbar:Y&&ee,toolbarKey:`${I}${H}`,showParentSelector:X&&B(H)==="default"&&st(X,"__experimentalParentSelector",!0)&&L.length===1&&ne,isUsingBindings:ie,hasParentPattern:se}},[]),g=O.useRef(null),z=O.useRef(),y=qP({ref:z}),x=!g0("medium","<");if(!ime())return null;const M=i.length>1,A=dd(u)||mh(u),_=$("block-editor-block-contextual-toolbar",{"has-parent":f}),w=$("block-editor-block-toolbar",{"is-synced":A,"is-connected":b});return a.jsx(vk,{focusEditorOnEscape:!0,className:_,"aria-label":m("Block tools"),variant:r==="toolbar"?void 0:r,focusOnMount:t,__experimentalInitialIndex:n,__experimentalOnIndexChange:o,children:a.jsxs("div",{ref:g,className:w,children:[!M&&x&&l&&a.jsx(f6t,{}),(p||M)&&(l||c&&!h||A)&&a.jsx("div",{ref:z,...y,children:a.jsxs(c0,{className:"block-editor-block-toolbar__block-controls",children:[a.jsx(L6t,{clientIds:i,disabled:!l,isUsingBindings:b}),l&&a.jsxs(a.Fragment,{children:[!M&&a.jsx(Wqt,{clientId:s}),a.jsx($he,{clientIds:i,hideDragHandle:e})]})]})}),p&&M&&a.jsx(kqt,{}),p&&a.jsxs(a.Fragment,{children:[a.jsx(Ie.Slot,{group:"parent",className:"block-editor-block-toolbar__slot"}),a.jsx(Ie.Slot,{group:"block",className:"block-editor-block-toolbar__slot"}),a.jsx(Ie.Slot,{className:"block-editor-block-toolbar__slot"}),a.jsx(Ie.Slot,{group:"inline",className:"block-editor-block-toolbar__slot"}),a.jsx(Ie.Slot,{group:"other",className:"block-editor-block-toolbar__slot"}),a.jsx(Uqt.Provider,{value:u?.name,children:a.jsx(SP.Slot,{})})]}),a.jsx(Hqt,{clientIds:i}),l&&a.jsx(Vqt,{clientIds:i})]})},d)}function CP({hideDragHandle:e,variant:t}){return a.jsx(ame,{hideDragHandle:e,variant:t,focusOnMount:void 0,__experimentalInitialIndex:void 0,__experimentalOnIndexChange:void 0})}function Jqt({clientId:e,isTyping:t,__unstableContentRef:n}){const{capturingClientId:o,isInsertionPointVisible:r,lastClientId:s}=gk(e),i=O.useRef();O.useEffect(()=>{i.current=void 0},[e]);const{stopTyping:c}=ae(F),l=O.useRef(!1);Ur("core/block-editor/focus-toolbar",()=>{l.current=!0,c(!0)}),O.useEffect(()=>{l.current=!1});const u=o||e,d=Mk({contentElement:n?.current,clientId:u});return!t&&a.jsx(whe,{clientId:u,bottomClientId:s,className:$("block-editor-block-list__block-popover",{"is-insertion-point-visible":r}),resize:!1,...d,children:a.jsx(ame,{focusOnMount:l.current,__experimentalInitialIndex:i.current,__experimentalOnIndexChange:p=>{i.current=p},variant:"toolbar"})})}function eSt({clientId:e,rootClientId:t},n){const o=D(T=>{const{getBlock:W,getBlockIndex:B,hasBlockMovingClientId:N,getBlockListSettings:E,__unstableGetEditorMode:L,getNextBlockClientId:I,getPreviousBlockClientId:P,canMoveBlock:H}=T(F),{getActiveBlockVariation:U,getBlockType:X}=T($e),Z=B(e),{name:ne,attributes:oe}=W(e),Y=X(ne),ee=E(t)?.orientation,ie=U(ne,oe);return{blockMovingMode:N(),editorMode:L(),icon:ie?.icon||Y.icon,label:dNe(Y,oe,Z+1,ee),canMove:H(e,t),getNextBlockClientId:I,getPreviousBlockClientId:P}},[e,t]),{label:r,icon:s,blockMovingMode:i,editorMode:c,canMove:l}=o,{setNavigationMode:u,removeBlock:d}=ae(F);O.useEffect(()=>{c==="navigation"&&(n.current.focus(),At(r))},[r,c]);const p=us(e),{hasBlockMovingClientId:f,getBlockIndex:b,getBlockRootClientId:h,getClientIdsOfDescendants:g,getSelectedBlockClientId:z,getMultiSelectedBlocksEndClientId:y,getPreviousBlockClientId:x,getNextBlockClientId:v}=D(F),{selectBlock:M,clearSelectedBlock:A,setBlockMovingClientId:_,moveBlockToPosition:w}=ae(F);function k(T){const{keyCode:W}=T,B=W===xi,N=W===Do,E=W===Ns,L=W===Ls,I=W===qp,P=W===Ea,H=W===y1,U=W===qx,X=T.shiftKey;if(W===Si||W===_a){d(e),T.preventDefault();return}const Z=z(),ne=y(),oe=x(ne||Z),Y=v(ne||Z),ee=I&&X||B,ie=I&&!X||N,se=E,be=L;let ye;if(ee)ye=oe;else if(ie)ye=Y;else if(se){var xe;ye=(xe=h(Z))!==null&&xe!==void 0?xe:Z}else if(be){var K;ye=(K=g(Z)[0])!==null&&K!==void 0?K:Z}const pe=f();if(P&&pe&&!T.defaultPrevented&&(_(null),T.preventDefault()),(H||U)&&pe){const G=h(pe),re=h(Z),Me=b(pe);let he=b(Z);Mea.jsx(fe,{__next40pxDefaultSize:!1,icon:K_,className:"block-selection-button_drag-handle",label:S,tabIndex:"-1",...T})})}),c==="navigation"&&a.jsx(Ht,{children:a.jsx(fe,{__next40pxDefaultSize:!1,ref:n,onClick:c==="navigation"?()=>u(!1):void 0,onKeyDown:k,label:r,showTooltip:!1,className:"block-selection-button_select-button",children:a.jsx(p5,{clientId:e,maximumLength:35})})})]})})}const tSt=O.forwardRef(eSt);function nSt({clientId:e,__unstableContentRef:t},n){const{capturingClientId:o,isInsertionPointVisible:r,lastClientId:s,rootClientId:i}=gk(e),c=Mk({contentElement:t?.current,clientId:e});return a.jsx(pk,{clientId:o||e,bottomClientId:s,className:$("block-editor-block-list__block-popover",{"is-insertion-point-visible":r}),resize:!1,...c,children:a.jsx(tSt,{ref:n,clientId:e,rootClientId:i})})}const oSt=O.forwardRef(nSt),IS=[];function rSt(e){return a.jsx(c0,{children:a.jsx(bt,{...e})})}function sSt({clientId:e,as:t=rSt}){const{categories:n,patterns:o,patternName:r}=D(u=>{const{getBlockAttributes:d,getBlockRootClientId:p,__experimentalGetAllowedPatterns:f}=u(F),b=d(e),h=b?.metadata?.categories||IS,g=b?.metadata?.patternName,z=p(e),y=h.length>0?f(z):IS;return{categories:h,patterns:y,patternName:g}},[e]),{replaceBlocks:s}=ae(F),i=O.useMemo(()=>n.length===0||!o||o.length===0?IS:o.filter(u=>{const d=u.source==="core"||u.source?.startsWith("pattern-directory")&&u.source!=="pattern-directory/theme";return u.blocks.length===1&&!d&&u.categories?.some(p=>n.includes(p))&&(u.syncStatus==="unsynced"||!u.id)}),[n,o]);if(i.length<2)return null;function c(){const u=i.length,d=i.findIndex(({name:f})=>f===r),p=d+1{const u=c();u.blocks[0].attributes={...u.blocks[0].attributes,metadata:{...u.blocks[0].attributes.metadata,categories:n}},s(e,u.blocks)}})}function iSt({clientId:e,__unstableContentRef:t}){const n=D(b=>{const{getBlock:h,hasBlockMovingClientId:g,getNextBlockClientId:z,getPreviousBlockClientId:y,canRemoveBlock:x,canMoveBlock:v}=b(F),{getBlockType:M}=b($e),{name:A}=h(e),w=M(A)?.name==="core/template-part";let k=!1;const q=z();if(q){const{name:T}=h(q);k=M(T)?.name==="core/template-part"}let S=!1;const C=y();if(C){const{name:T}=h(C);S=M(T)?.name==="core/template-part"}return{blockMovingMode:g(),isBlockTemplatePart:w,isNextBlockTemplatePart:k,isPrevBlockTemplatePart:S,canRemove:x(e),canMove:v(e)}},[e]),{blockMovingMode:o,isBlockTemplatePart:r,isNextBlockTemplatePart:s,isPrevBlockTemplatePart:i,canRemove:c,canMove:l}=n,{removeBlock:u,__unstableSetEditorMode:d}=ae(F),p=$("zoom-out-toolbar",{"is-block-moving-mode":!!o}),f=l&&!r;return a.jsxs(vk,{className:p,"aria-label":m("Block tools"),variant:"unstyled",orientation:"vertical",children:[f&&a.jsx(zk,{clientIds:[e],children:b=>a.jsx(fe,{icon:K_,className:"block-selection-button_drag-handle zoom-out-toolbar-button",label:m("Drag"),iconSize:24,size:"compact",tabIndex:"-1",...b})}),!r&&a.jsx($he,{clientIds:[e],hideDragHandle:!0,isBlockMoverUpButtonDisabled:i,isBlockMoverDownButtonDisabled:s,iconSize:24,size:"compact"}),l&&c&&a.jsx(sSt,{clientId:e,as:bt}),!r&&a.jsx(bt,{className:"zoom-out-toolbar-button",icon:nl,label:m("Edit"),onClick:()=>{d("edit"),t.current?.focus()}}),c&&!r&&a.jsx(bt,{className:"zoom-out-toolbar-button",icon:C3,label:m("Delete"),onClick:()=>{u(e)}})]})}function aSt({clientId:e,__unstableContentRef:t}){const{capturingClientId:n,isInsertionPointVisible:o,lastClientId:r}=gk(e),i={...Mk({contentElement:t?.current,clientId:e}),placement:"left-start",flip:!1,shift:!0};return a.jsx(whe,{clientId:n||e,bottomClientId:r,className:$("zoom-out-toolbar-popover",{"is-insertion-point-visible":o}),resize:!1,...i,children:a.jsx(iSt,{__unstableContentRef:t,clientId:e})})}function cSt({isVisible:e,onClick:t}){const[n,o]=O.useState(!1);return a.jsx(fe,{variant:"primary",icon:as,size:"compact",className:$("block-editor-button-pattern-inserter__button","block-editor-block-tools__zoom-out-mode-inserter-button",{"is-visible":e||n}),onClick:t,onMouseOver:()=>{o(!0)},onMouseOut:()=>{o(!1)},label:Oe("Add pattern","Generic label for pattern inserter button")})}function lSt(){const[e,t]=O.useState(!1),{hasSelection:n,blockInsertionPoint:o,blockOrder:r,blockInsertionPointVisible:s,setInserterIsOpened:i,sectionRootClientId:c,selectedBlockClientId:l,hoveredBlockClientId:u}=D(p=>{const{getSettings:f,getBlockInsertionPoint:b,getBlockOrder:h,getSelectionStart:g,getSelectedBlockClientId:z,getHoveredBlockClientId:y,isBlockInsertionPointVisible:x,getSectionRootClientId:v}=Fe(p(F)),M=v();return{hasSelection:!!g().clientId,blockInsertionPoint:b(),blockOrder:h(M),blockInsertionPointVisible:x(),sectionRootClientId:M,setInserterIsOpened:f().__experimentalSetIsInserterOpened,selectedBlockClientId:z(),hoveredBlockClientId:y()}},[]),{showInsertionPoint:d}=ae(F);return O.useEffect(()=>{const p=setTimeout(()=>{t(!0)},500);return()=>{clearTimeout(p)}},[]),e?[void 0,...r].map((p,f)=>{const b=s&&o.index===f,h=p,g=r[f],z=n&&(l===h||l===g),y=u===h||u===g;return a.jsxs(_he,{previousClientId:h,nextClientId:g,children:[b&&a.jsx("div",{style:{borderRadius:"0",height:"12px",opacity:1,transform:"translateY(-50%)",width:"100%"},className:"block-editor-block-list__insertion-point-indicator"}),!b&&a.jsx(cSt,{isVisible:z||y,onClick:()=>{i({rootClientId:c,insertionIndex:f,tab:"patterns",category:"all"}),d(c,f,{operation:"insert"})}})]},f)}):null}function uSt(){return D(e=>{const{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:n,getBlock:o,getBlockMode:r,getSettings:s,hasMultiSelection:i,__unstableGetEditorMode:c,isTyping:l}=e(F),u=t()||n(),d=o(u),p=c(),f=!!u&&!!d,b=f&&Yc(d)&&r(u)!=="html",h=u&&!l()&&p==="edit"&&b,g=f&&!i()&&p==="navigation",y=p==="zoom-out"&&d?.attributes?.align==="full"&&!h&&!g,x=!y&&!s().hasFixedToolbar&&!h&&f&&!b&&!g;return{showEmptyBlockSideInserter:h,showBreadcrumb:!h&&g,showBlockToolbarPopover:x,showZoomOutToolbar:y}},[])}function dSt(e){const{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:n,getSettings:o,__unstableGetEditorMode:r,isTyping:s}=e(F),i=t()||n(),c=r();return{clientId:i,hasFixedToolbar:o().hasFixedToolbar,isTyping:s(),isZoomOutMode:c==="zoom-out"}}function jY({children:e,__unstableContentRef:t,...n}){const{clientId:o,hasFixedToolbar:r,isTyping:s,isZoomOutMode:i}=D(dSt,[]),c=nk(),{getBlocksByClientId:l,getSelectedBlockClientIds:u,getBlockRootClientId:d,isGroupable:p}=D(F),{getGroupingBlockName:f}=D($e),{showEmptyBlockSideInserter:b,showBreadcrumb:h,showBlockToolbarPopover:g,showZoomOutToolbar:z}=uSt(),{clearSelectedBlock:y,duplicateBlocks:x,removeBlocks:v,replaceBlocks:M,insertAfterBlock:A,insertBeforeBlock:_,selectBlock:w,moveBlocksUp:k,moveBlocksDown:q,expandBlock:S}=Fe(ae(F)),C=O.useRef();function T(N){if(!N.defaultPrevented){if(c("core/block-editor/move-up",N)){const E=u();if(E.length){N.preventDefault();const L=d(E[0]);k(E,L)}}else if(c("core/block-editor/move-down",N)){const E=u();if(E.length){N.preventDefault();const L=d(E[0]);q(E,L)}}else if(c("core/block-editor/duplicate",N)){const E=u();E.length&&(N.preventDefault(),x(E))}else if(c("core/block-editor/remove",N)){const E=u();E.length&&(N.preventDefault(),v(E))}else if(c("core/block-editor/insert-after",N)){const E=u();E.length&&(N.preventDefault(),A(E[E.length-1]))}else if(c("core/block-editor/insert-before",N)){const E=u();E.length&&(N.preventDefault(),_(E[0]))}else if(c("core/block-editor/unselect",N)){if(N.target.closest("[role=toolbar]"))return;const E=u();E.length>1?(N.preventDefault(),w(E[0])):E.length===1&&N.target===C?.current&&(N.preventDefault(),y(),ybe(t.current)?.focus())}else if(c("core/block-editor/collapse-list-view",N)){if(Wu(N.target)||Wu(N.target?.contentWindow?.document?.activeElement))return;N.preventDefault(),S(o)}else if(c("core/block-editor/group",N)){const E=u();if(E.length>1&&p(E)){N.preventDefault();const L=l(E),I=f(),P=l1(L,I);M(E,P),At(m("Selected blocks are grouped."))}}}}const W=k5(t),B=k5(t);return a.jsx("div",{...n,onKeyDown:T,children:a.jsxs(xP.Provider,{value:O.useRef(!1),children:[!s&&a.jsx(Fwt,{__unstableContentRef:t}),b&&a.jsx(r6t,{__unstableContentRef:t,clientId:o}),g&&a.jsx(Jqt,{__unstableContentRef:t,clientId:o,isTyping:s}),h&&a.jsx(oSt,{ref:C,__unstableContentRef:t,clientId:o}),z&&a.jsx(aSt,{__unstableContentRef:t,clientId:o}),!i&&!r&&a.jsx(Mn.Slot,{name:"block-toolbar",ref:W}),e,a.jsx(Mn.Slot,{name:"__unstable-block-tools-after",ref:B}),i&&a.jsx(lSt,{__unstableContentRef:t})]})})}function pSt(e={},t){switch(t.type){case"REGISTER_COMMAND":return{...e,[t.name]:{name:t.name,label:t.label,searchLabel:t.searchLabel,context:t.context,callback:t.callback,icon:t.icon}};case"UNREGISTER_COMMAND":{const{[t.name]:n,...o}=e;return o}}return e}function fSt(e={},t){switch(t.type){case"REGISTER_COMMAND_LOADER":return{...e,[t.name]:{name:t.name,context:t.context,hook:t.hook}};case"UNREGISTER_COMMAND_LOADER":{const{[t.name]:n,...o}=e;return o}}return e}function bSt(e=!1,t){switch(t.type){case"OPEN":return!0;case"CLOSE":return!1}return e}function hSt(e="root",t){switch(t.type){case"SET_CONTEXT":return t.context}return e}const mSt=zo({commands:pSt,commandLoaders:fSt,isOpen:bSt,context:hSt});function MSt(e){return{type:"REGISTER_COMMAND",...e}}function gSt(e){return{type:"UNREGISTER_COMMAND",name:e}}function zSt(e){return{type:"REGISTER_COMMAND_LOADER",...e}}function OSt(e){return{type:"UNREGISTER_COMMAND_LOADER",name:e}}function ASt(){return{type:"OPEN"}}function ySt(){return{type:"CLOSE"}}const vSt=Object.freeze(Object.defineProperty({__proto__:null,close:ySt,open:ASt,registerCommand:MSt,registerCommandLoader:zSt,unregisterCommand:gSt,unregisterCommandLoader:OSt},Symbol.toStringTag,{value:"Module"})),xSt=at((e,t=!1)=>Object.values(e.commands).filter(n=>{const o=n.context&&n.context===e.context;return t?o:!o}),e=>[e.commands,e.context]),_St=at((e,t=!1)=>Object.values(e.commandLoaders).filter(n=>{const o=n.context&&n.context===e.context;return t?o:!o}),e=>[e.commandLoaders,e.context]);function wSt(e){return e.isOpen}function kSt(e){return e.context}const qSt=Object.freeze(Object.defineProperty({__proto__:null,getCommandLoaders:_St,getCommands:xSt,getContext:kSt,isOpen:wSt},Symbol.toStringTag,{value:"Module"}));function SSt(e){return{type:"SET_CONTEXT",context:e}}const CSt=Object.freeze(Object.defineProperty({__proto__:null,setContext:SSt},Symbol.toStringTag,{value:"Module"})),{lock:RSt,unlock:cme}=ar("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/commands"),WSt="core/commands",Zp=er(WSt,{reducer:mSt,actions:vSt,selectors:qSt});Qs(Zp);cme(Zp).registerPrivateActions(CSt);m("Search commands and settings");function TSt(e){const{getContext:t}=D(Zp),n=O.useRef(t()),{setContext:o}=cme(ae(Zp));O.useEffect(()=>{o(e)},[e,o]),O.useEffect(()=>{const r=n.current;return()=>o(r)},[o])}const lme={};RSt(lme,{useCommandContext:TSt});function PY(e){const{registerCommand:t,unregisterCommand:n}=ae(Zp),o=O.useRef(e.callback);O.useEffect(()=>{o.current=e.callback},[e.callback]),O.useEffect(()=>{if(!e.disabled)return t({name:e.name,context:e.context,label:e.label,searchLabel:e.searchLabel,icon:e.icon,callback:(...r)=>o.current(...r)}),()=>{n(e.name)}},[e.name,e.label,e.searchLabel,e.icon,e.context,e.disabled,t,n])}function Oa(e){const{registerCommandLoader:t,unregisterCommandLoader:n}=ae(Zp);O.useEffect(()=>{if(!e.disabled)return t({name:e.name,hook:e.hook,context:e.context}),()=>{n(e.name)}},[e.name,e.hook,e.context,e.disabled,t,n])}const ESt=()=>{const{replaceBlocks:e,multiSelect:t}=ae(F),{blocks:n,clientIds:o,canRemove:r,possibleBlockTransformations:s,invalidSelection:i}=D(f=>{const{getBlockRootClientId:b,getBlockTransformItems:h,getSelectedBlockClientIds:g,getBlocksByClientId:z,canRemoveBlocks:y}=f(F),x=g(),v=z(x);if(v.filter(A=>!A).length>0)return{invalidSelection:!0};const M=b(x[0]);return{blocks:v,clientIds:x,possibleBlockTransformations:h(v,M),canRemove:y(x),invalidSelection:!1}},[]);if(i)return{isLoading:!1,commands:[]};const c=n.length===1&&mh(n[0]);function l(f){f.length>1&&t(f[0].clientId,f[f.length-1].clientId)}function u(f){const b=l1(n,f);e(o,b),l(b)}const d=!!s.length&&r&&!c;return!o||o.length<1||!d?{isLoading:!1,commands:[]}:{isLoading:!1,commands:s.map(f=>{const{name:b,title:h,icon:g}=f;return{name:"core/block-editor/transform-to-"+b.replace("/","-"),label:le(m("Transform to %s"),h),icon:a.jsx(b0,{icon:g}),callback:({close:z})=>{u(b),z()}}})}},BSt=()=>{const{clientIds:e}=D(d=>{const{getSelectedBlockClientIds:p}=d(F);return{clientIds:p()}},[]),{getBlockRootClientId:t,canMoveBlocks:n,getBlockCount:o}=D(F),{setBlockMovingClientId:r,setNavigationMode:s,selectBlock:i}=ae(F);if(!e||e.length<1)return{isLoading:!1,commands:[]};const c=t(e[0]),l=n(e)&&o(c)!==1,u=[];return l&&u.push({name:"move-to",label:m("Move to"),callback:()=>{s(!0),i(e[0]),r(e[0])},icon:hZe}),{isLoading:!1,commands:u.map(d=>({...d,name:"core/block-editor/action-"+d.name,callback:({close:p})=>{d.callback(),p()}}))}},NSt=()=>{const{clientIds:e,isUngroupable:t,isGroupable:n}=D(_=>{const{getSelectedBlockClientIds:w,isUngroupable:k,isGroupable:q}=_(F);return{clientIds:w(),isUngroupable:k(),isGroupable:q()}},[]),{canInsertBlockType:o,getBlockRootClientId:r,getBlocksByClientId:s,canRemoveBlocks:i}=D(F),{getDefaultBlockName:c,getGroupingBlockName:l}=D($e),u=s(e),{removeBlocks:d,replaceBlocks:p,duplicateBlocks:f,insertAfterBlock:b,insertBeforeBlock:h}=ae(F),g=()=>{if(!u.length)return;const _=l(),w=l1(u,_);w&&p(e,w)},z=()=>{if(!u.length)return;const _=u[0].innerBlocks;_.length&&p(e,_)};if(!e||e.length<1)return{isLoading:!1,commands:[]};const y=r(e[0]),x=o(c(),y),v=u.every(_=>!!_&&st(_.name,"multiple",!0)&&o(_.name,y)),M=i(e),A=[];return v&&A.push({name:"duplicate",label:m("Duplicate"),callback:()=>f(e,!0),icon:k3}),x&&A.push({name:"add-before",label:m("Add before"),callback:()=>{const _=Array.isArray(e)?e[0]:_;h(_)},icon:as},{name:"add-after",label:m("Add after"),callback:()=>{const _=Array.isArray(e)?e[e.length-1]:_;b(_)},icon:as}),n&&A.push({name:"Group",label:m("Group"),callback:g,icon:Of}),t&&A.push({name:"ungroup",label:m("Ungroup"),callback:z,icon:dQe}),M&&A.push({name:"remove",label:m("Delete"),callback:()=>d(e,!0),icon:C3}),{isLoading:!1,commands:A.map(_=>({..._,name:"core/block-editor/action-"+_.name,callback:({close:w})=>{_.callback(),w()}}))}},LSt=()=>{Oa({name:"core/block-editor/blockTransforms",hook:ESt}),Oa({name:"core/block-editor/blockActions",hook:BSt}),Oa({name:"core/block-editor/blockQuickActions",hook:NSt,context:"block-selection-edit"})},jSt={ignoredSelectors:[/\.editor-styles-wrapper/gi]};function PSt({shouldIframe:e=!0,height:t="300px",children:n=a.jsx(fk,{}),styles:o,contentRef:r,iframeProps:s}){LSt();const i=Che(),c=aP(),l=O.useRef(),u=Gt([r,c,l]);return e?a.jsx(jY,{__unstableContentRef:l,style:{height:t,display:"flex"},children:a.jsxs(z2e,{...s,ref:i,contentRef:u,style:{...s?.style},name:"editor-canvas",children:[a.jsx(w5,{styles:o}),n]})}):a.jsxs(jY,{__unstableContentRef:l,style:{height:t,display:"flex"},children:[a.jsx(w5,{styles:o,scope:":where(.editor-styles-wrapper)",transformOptions:jSt}),a.jsx(Zvt,{ref:u,className:"editor-styles-wrapper",tabIndex:-1,style:{height:"100%",width:"100%"},children:n})]})}const ume=O.createContext({}),xk=()=>O.useContext(ume);function dme({children:e,...t}){const n=O.useRef();return O.useEffect(()=>{n.current&&(n.current.textContent=n.current.textContent)},[e]),a.jsx("div",{hidden:!0,...t,ref:n,children:e})}const pme=O.forwardRef(({nestingLevel:e,blockCount:t,clientId:n,...o},r)=>{const{insertedBlock:s,setInsertedBlock:i}=xk(),c=He(pme),l=D(b=>{const{getTemplateLock:h,__unstableGetEditorMode:g}=b(F);return!!h(n)||g()==="zoom-out"},[n]),u=ed({clientId:n,context:"list-view"}),d=ed({clientId:s?.clientId,context:"list-view"});if(O.useEffect(()=>{d?.length&&At(le(m("%s block inserted"),d),"assertive")},[d]),l)return null;const p=`list-view-appender__${c}`,f=le(m("Append to %1$s block at position %2$d, Level %3$d"),u,t+1,e);return a.jsxs("div",{className:"list-view-appender",children:[a.jsx(Xh,{ref:r,rootClientId:n,position:"bottom right",isAppender:!0,selectBlockOnInsert:!1,shouldDirectInsert:!1,__experimentalIsQuick:!0,...o,toggleProps:{"aria-describedby":p},onSelectOrClose:b=>{b?.clientId&&i(b)}}),a.jsx(dme,{id:p,children:f})]})}),ISt=V4t(bfe),DSt=O.forwardRef(({isDragged:e,isSelected:t,position:n,level:o,rowCount:r,children:s,className:i,path:c,...l},u)=>{const d=s2e({clientId:l["data-block"],enableAnimation:!0,triggerAnimationOnChange:c}),p=Gt([u,d]);return a.jsx(ISt,{ref:p,className:$("block-editor-list-view-leaf",i),level:o,positionInSet:n,setSize:r,isExpanded:void 0,...l,children:s})});function FSt({isSelected:e,selectedClientIds:t,rowItemRef:n}){const o=t.length===1;O.useLayoutEffect(()=>{if(!e||!o||!n.current)return;const r=Sr(n.current),{ownerDocument:s}=n.current;if(r===s.body||r===s.documentElement||!r)return;const c=n.current.getBoundingClientRect(),l=r.getBoundingClientRect();(c.topl.bottom)&&n.current.scrollIntoView()},[e,o,n])}function fme({onClick:e}){return a.jsx("span",{className:"block-editor-list-view__expander",onClick:t=>e(t,{forceToggle:!0}),"aria-hidden":"true","data-testid":"list-view-expander",children:a.jsx(t0,{icon:ft()?X_:jp})})}const $St=3;function bme(e){if(e.name==="core/image"&&e.attributes?.url)return{url:e.attributes.url,alt:e.attributes.alt,clientId:e.clientId}}function VSt(e){if(e.name!=="core/gallery"||!e.innerBlocks)return[];const t=[];for(const n of e.innerBlocks){const o=bme(n);if(o&&t.push(o),t.length>=$St)return t}return t}function HSt(e,t){const n=bme(e);return n?[n]:t?[]:VSt(e)}function USt({clientId:e,isExpanded:t}){const{block:n}=D(r=>({block:r(F).getBlock(e)}),[e]);return O.useMemo(()=>HSt(n,t),[n,t])}function XSt({className:e,block:{clientId:t},onClick:n,onContextMenu:o,onMouseDown:r,onToggleExpanded:s,tabIndex:i,onFocus:c,onDragStart:l,onDragEnd:u,draggable:d,isExpanded:p,ariaDescribedBy:f},b){const h=gs(t),g=ed({clientId:t,context:"list-view"}),{isLocked:z}=Yh(t),{isContentOnly:y}=D(w=>({isContentOnly:w(F).getBlockEditingMode(t)==="contentOnly"}),[t]),x=z&&!y,v=h?.positionType==="sticky",M=USt({clientId:t,isExpanded:p}),A=w=>{w.dataTransfer.clearData(),l?.(w)};function _(w){(w.keyCode===y1||w.keyCode===qx)&&n(w)}return a.jsxs(fe,{__next40pxDefaultSize:!1,className:$("block-editor-list-view-block-select-button",e),onClick:n,onContextMenu:o,onKeyDown:_,onMouseDown:r,ref:b,tabIndex:i,onFocus:c,onDragStart:A,onDragEnd:u,draggable:d,href:`#block-${t}`,"aria-describedby":f,"aria-expanded":p,children:[a.jsx(fme,{onClick:s}),a.jsx(b0,{icon:h?.icon,showColors:!0,context:"list-view"}),a.jsxs(Je,{alignment:"center",className:"block-editor-list-view-block-select-button__label-wrapper",justify:"flex-start",spacing:1,children:[a.jsx("span",{className:"block-editor-list-view-block-select-button__title",children:a.jsx(Ho,{ellipsizeMode:"auto",children:g})}),h?.anchor&&a.jsx("span",{className:"block-editor-list-view-block-select-button__anchor-wrapper",children:a.jsx(Ho,{className:"block-editor-list-view-block-select-button__anchor",ellipsizeMode:"auto",children:h.anchor})}),v&&a.jsx("span",{className:"block-editor-list-view-block-select-button__sticky",children:a.jsx(t0,{icon:AZe})}),M.length?a.jsx("span",{className:"block-editor-list-view-block-select-button__images","aria-hidden":!0,children:M.map((w,k)=>a.jsx("span",{className:"block-editor-list-view-block-select-button__image",style:{backgroundImage:`url(${w.url})`,zIndex:M.length-k}},w.clientId))}):null,x&&a.jsx("span",{className:"block-editor-list-view-block-select-button__lock",children:a.jsx(t0,{icon:uZe})})]})]})}const GSt=O.forwardRef(XSt),KSt=O.forwardRef(({onClick:e,onToggleExpanded:t,block:n,isSelected:o,position:r,siblingBlockCount:s,level:i,isExpanded:c,selectedClientIds:l,...u},d)=>{const{clientId:p}=n,{blockMovingClientId:f,selectedBlockInBlockEditor:b}=D(M=>{const{hasBlockMovingClientId:A,getSelectedBlockClientId:_}=M(F);return{blockMovingClientId:A(),selectedBlockInBlockEditor:_()}},[]),{AdditionalBlockContent:h,insertedBlock:g,setInsertedBlock:z}=xk(),x=$("block-editor-list-view-block-contents",{"is-dropping-before":f&&b===p}),v=l.includes(p)?l:[p];return a.jsxs(a.Fragment,{children:[h&&a.jsx(h,{block:n,insertedBlock:g,setInsertedBlock:z}),a.jsx(zk,{appendToOwnerDocument:!0,clientIds:v,cloneClassname:"block-editor-list-view-draggable-chip",children:({draggable:M,onDragStart:A,onDragEnd:_})=>a.jsx(GSt,{ref:d,className:x,block:n,onClick:e,onToggleExpanded:t,isSelected:o,position:r,siblingBlockCount:s,level:i,draggable:M,onDragStart:A,onDragEnd:_,isExpanded:c,...u})})]})}),YSt=(e,t,n)=>le(m("Block %1$d of %2$d, Level %3$d."),e,t,n),ZSt=(e,t)=>[e?.positionLabel?`${le(m("Position: %s"),e.positionLabel)}.`:void 0,t?m("This block is locked."):void 0].filter(Boolean).join(" "),QSt=(e,t)=>Array.isArray(t)&&t.length?t.indexOf(e)!==-1:t===e;function JSt(e,t,n,o){const r=[...n,e],s=[...o,t],i=Math.min(r.length,s.length)-1,c=r[i],l=s[i];return{start:c,end:l}}function RP(e,t){const n=()=>{const r=t?.querySelector(`[role=row][data-block="${e}"]`);return r?Nn.focusable.find(r)[0]:null};let o=n();o?o.focus():window.requestAnimationFrame(()=>{o=n(),o&&o.focus()})}function eCt({blockIndexes:e,blockDropTargetIndex:t,blockDropPosition:n,clientId:o,firstDraggedBlockIndex:r,isDragged:s}){let i,c,l;if(!s){c=!1;const u=e[o];l=u>r,t!=null&&r!==void 0?u!==void 0&&(u>=r&&u=t?i="down":i="normal",c=typeof t=="number"&&t-1===u&&n==="inside"):t===null&&r!==void 0?u!==void 0&&u>=r?i="up":i="normal":t!=null&&r===void 0?u!==void 0&&(u{const{getBlock:We,getBlockName:rt,getSettings:Ft}=pt(F);return{block:We(e),blockName:rt(e),allowRightClickOverrides:Ft().allowRightClickOverrides}},[e]),G=st(K,"__experimentalToolbar",!0),Me=`list-view-block-select-button__description-${He(hme)}`,{expand:he,collapse:Q,collapseAll:R,BlockSettingsMenu:j,listViewInstanceId:V,expandedState:de,setInsertedBlock:ge,treeGridElementRef:ve,rootClientId:Ne}=xk(),et=nk();function mt(){const pt=X(),We=pt.includes(e),rt=We?pt[0]:e,Ft=ne(rt);return{blocksToUpdate:We?pt:[e],firstBlockClientId:rt,firstBlockRootClientId:Ft,selectedBlockClientIds:pt}}async function Mt(pt){if(pt.defaultPrevented||pt.target.closest("[role=dialog]"))return;const We=[Si,_a].includes(pt.keyCode);if(et("core/block-editor/unselect",pt)&&g.length>0)pt.stopPropagation(),pt.preventDefault(),c(pt,void 0);else if(We||et("core/block-editor/remove",pt)){var rt;const{blocksToUpdate:Ft,firstBlockClientId:s0,firstBlockRootClientId:nn,selectedBlockClientIds:j0}=mt();if(!ie(Ft))return;let r1=(rt=Z(s0))!==null&&rt!==void 0?rt:nn;L(Ft,!1);const ys=j0.length>0&&X().length===0;r1||(r1=oe()[0]),Ue(r1,ys)}else if(et("core/block-editor/duplicate",pt)){pt.preventDefault();const{blocksToUpdate:Ft,firstBlockRootClientId:s0}=mt();if(ee(Ft).every(j0=>!!j0&&st(j0.name,"multiple",!0)&&U(j0.name,s0))){const j0=await B(Ft,!1);j0?.length&&Ue(j0[0],!1)}}else if(et("core/block-editor/insert-before",pt)){pt.preventDefault();const{blocksToUpdate:Ft}=mt();await P(Ft[0]);const s0=X();H(void 0),Ue(s0[0],!1)}else if(et("core/block-editor/insert-after",pt)){pt.preventDefault();const{blocksToUpdate:Ft}=mt();await I(Ft.at(-1));const s0=X();H(void 0),Ue(s0[0],!1)}else if(et("core/block-editor/select-all",pt)){pt.preventDefault();const{firstBlockRootClientId:Ft,selectedBlockClientIds:s0}=mt(),nn=oe(Ft);if(!nn.length)return;if(Jr(s0,nn)&&Ft&&Ft!==Ne){Ue(Ft,!0);return}N(nn[0],nn[nn.length-1],null)}else if(et("core/block-editor/collapse-list-view",pt)){pt.preventDefault();const{firstBlockClientId:Ft}=mt(),s0=Y(Ft,!1);R(),he(s0)}else if(et("core/block-editor/group",pt)){const{blocksToUpdate:Ft}=mt();if(Ft.length>1&&se(Ft)){pt.preventDefault();const s0=ee(Ft),nn=be(),j0=l1(s0,nn);E(Ft,j0),At(m("Selected blocks are grouped."));const r1=X();H(void 0),Ue(r1[0],!1)}}}const Ke=O.useCallback(()=>{A(!0),W(e,!0)},[e,A,W]),Nt=O.useCallback(()=>{A(!1),W(e,!1)},[e,A,W]),zt=O.useCallback(pt=>{c(pt,e),pt.preventDefault()},[e,c]),Ue=O.useCallback((pt,We)=>{We&&c(void 0,pt,null,null),RP(pt,ve?.current)},[c,ve]),Xe=O.useCallback(pt=>{pt.preventDefault(),pt.stopPropagation(),h===!0?Q(e):h===!1&&he(e)},[e,he,Q,h]),ot=O.useCallback(pt=>{G&&pe&&(v.current?.click(),w(new window.DOMRect(pt.clientX,pt.clientY,0,0)),pt.preventDefault())},[pe,v,G]),Ct=O.useCallback(pt=>{pe&&pt.button===2&&pt.preventDefault()},[pe]),n0=O.useMemo(()=>{const{ownerDocument:pt}=x?.current||{};if(!(!_||!pt))return{ownerDocument:pt,getBoundingClientRect(){return _}}},[_]),o1=O.useCallback(()=>{w(void 0)},[w]);if(FSt({isSelected:s,rowItemRef:x,selectedClientIds:g}),!xe)return null;const B1=YSt(l,p,u),p1=ZSt(ye,k),Ot=p>0,k0=f&&Ot,f1=$("block-editor-list-view-block__mover-cell",{"is-visible":M||s}),dr=$("block-editor-list-view-block__menu-cell",{"is-visible":M||C});let pr;k0?pr=2:G||(pr=3);const si=$({"is-selected":s,"is-first-selected":C,"is-last-selected":T,"is-branch-selected":i,"is-synced-branch":z,"is-dragging":o,"has-single-cell":!G,"is-synced":ye?.isSynced,"is-draggable":S,"is-displacement-normal":t==="normal","is-displacement-up":t==="up","is-displacement-down":t==="down","is-after-dragged-blocks":n,"is-nesting":r}),fr=g.includes(e)?g:[e],N1=s&&g.length===1;return a.jsxs(DSt,{className:si,isDragged:o,onKeyDown:Mt,onMouseEnter:Ke,onMouseLeave:Nt,onFocus:Ke,onBlur:Nt,level:u,position:l,rowCount:d,path:b,id:`list-view-${V}-block-${e}`,"data-block":e,"data-expanded":q?h:void 0,ref:x,children:[a.jsx(d4,{className:"block-editor-list-view-block__contents-cell",colSpan:pr,ref:y,"aria-selected":!!s,children:({ref:pt,tabIndex:We,onFocus:rt})=>a.jsxs("div",{className:"block-editor-list-view-block__contents-container",children:[a.jsx(KSt,{block:xe,onClick:zt,onContextMenu:ot,onMouseDown:Ct,onToggleExpanded:Xe,isSelected:s,position:l,siblingBlockCount:p,level:u,ref:pt,tabIndex:N1?0:We,onFocus:rt,isExpanded:q?h:void 0,selectedClientIds:g,ariaDescribedBy:Me}),a.jsx(dme,{id:Me,children:[B1,p1].filter(Boolean).join(" ")})]})}),k0&&a.jsx(a.Fragment,{children:a.jsxs(d4,{className:f1,withoutGridItem:!0,children:[a.jsx(BW,{children:({ref:pt,tabIndex:We,onFocus:rt})=>a.jsx(Dhe,{orientation:"vertical",clientIds:[e],ref:pt,tabIndex:We,onFocus:rt})}),a.jsx(BW,{children:({ref:pt,tabIndex:We,onFocus:rt})=>a.jsx(Fhe,{orientation:"vertical",clientIds:[e],ref:pt,tabIndex:We,onFocus:rt})})]})}),G&&j&&a.jsx(d4,{className:dr,"aria-selected":!!s,ref:v,children:({ref:pt,tabIndex:We,onFocus:rt})=>a.jsx(j,{clientIds:fr,block:xe,icon:Ol,label:m("Options"),popoverProps:{anchor:n0},toggleProps:{ref:pt,className:"block-editor-list-view-block__menu",tabIndex:We,onClick:o1,onFocus:rt},disableOpenOnArrowDown:!0,expand:he,expandedState:de,setInsertedBlock:ge,__experimentalSelectBlock:Ue})})]})}const tCt=O.memo(hme);function mme(e,t,n,o){var r;return n?.includes(e.clientId)?0:((r=t[e.clientId])!==null&&r!==void 0?r:o)?1+e.innerBlocks.reduce(nCt(t,n,o),0):1}const nCt=(e,t,n)=>(o,r)=>{var s;return t?.includes(r.clientId)?o:((s=e[r.clientId])!==null&&s!==void 0?s:n)&&r.innerBlocks.length>0?o+mme(r,e,t,n):o+1},oCt=()=>{};function Mme(e){const{blocks:t,selectBlock:n=oCt,showBlockMovers:o,selectedClientIds:r,level:s=1,path:i="",isBranchSelected:c=!1,listPosition:l=0,fixedListWindow:u,isExpanded:d,parentId:p,shouldShowInnerBlocks:f=!0,isSyncedBranch:b=!1,showAppender:h=!0}=e,g=gs(p),z=b||!!g?.isSynced,y=D(W=>p?W(F).canEditBlock(p):!0,[p]),{blockDropPosition:x,blockDropTargetIndex:v,firstDraggedBlockIndex:M,blockIndexes:A,expandedState:_,draggedClientIds:w}=xk();if(!y)return null;const k=h&&s===1,q=t.filter(Boolean),S=q.length,C=k?S+1:S;let T=l;return a.jsxs(a.Fragment,{children:[q.map((W,B)=>{var N;const{clientId:E,innerBlocks:L}=W;B>0&&(T+=mme(q[B-1],_,w,d));const I=!!w?.includes(E),{displacement:P,isAfterDraggedBlocks:H,isNesting:U}=eCt({blockIndexes:A,blockDropTargetIndex:v,blockDropPosition:x,clientId:E,firstDraggedBlockIndex:M,isDragged:I}),{itemInView:X}=u,Z=X(T),ne=B+1,oe=i.length>0?`${i}_${ne}`:`${ne}`,Y=!!L?.length,ee=Y&&f?(N=_[E])!==null&&N!==void 0?N:d:void 0,ie=QSt(E,r),se=c||ie&&Y,be=I||Z||ie&&E===r[0]||B===0||B===S-1;return a.jsxs(Wx,{value:!ie,children:[be&&a.jsx(tCt,{block:W,selectBlock:n,isSelected:ie,isBranchSelected:se,isDragged:I,level:s,position:ne,rowCount:C,siblingBlockCount:S,showBlockMovers:o,path:oe,isExpanded:I?!1:ee,listPosition:T,selectedClientIds:r,isSyncedBranch:z,displacement:P,isAfterDraggedBlocks:H,isNesting:U}),!be&&a.jsx("tr",{children:a.jsx("td",{className:"block-editor-list-view-placeholder"})}),Y&&ee&&!I&&a.jsx(Mme,{parentId:E,blocks:L,selectBlock:n,showBlockMovers:o,level:s+1,path:oe,listPosition:T+1,fixedListWindow:u,isBranchSelected:se,selectedClientIds:r,isExpanded:d,isSyncedBranch:z})]},E)}),k&&a.jsx(bfe,{level:s,setSize:C,positionInSet:C,isExpanded:!0,children:a.jsx(d4,{children:W=>a.jsx(pme,{clientId:p,nestingLevel:s,blockCount:S,...W})})})]})}const rCt=O.memo(Mme);function sCt({draggedBlockClientId:e,listViewRef:t,blockDropTarget:n}){const o=gs(e),r=ed({clientId:e,context:"list-view"}),{rootClientId:s,clientId:i,dropPosition:c}=n||{},[l,u]=O.useMemo(()=>{if(!t.current)return[];const x=s?t.current.querySelector(`[data-block="${s}"]`):void 0,v=i?t.current.querySelector(`[data-block="${i}"]`):void 0;return[x,v]},[t,s,i]),d=u||l,p=ft(),f=O.useCallback((x,v)=>{if(!d)return 0;let M=d.offsetWidth;const A=Sr(d,"horizontal"),_=d.ownerDocument,w=A===_.body||A===_.documentElement;if(A&&!w){const k=A.getBoundingClientRect(),q=ft()?k.right-x.right:x.left-k.left,S=A.clientWidth;if(Sk.right)return M-=x.right-k.right,M}return M-v},[p,d]),b=O.useMemo(()=>{if(!d)return{};const x=d.getBoundingClientRect();return{width:f(x,0)}},[f,d]),h=O.useMemo(()=>{if(!d)return{};const x=Sr(d),v=d.ownerDocument,M=x===v.body||x===v.documentElement;if(x&&!M){const A=x.getBoundingClientRect(),_=d.getBoundingClientRect(),w=p?A.right-_.right:_.left-A.left;if(!p&&A.left>_.left)return{transform:`translateX( ${w}px )`};if(p&&A.right<_.right)return{transform:`translateX( ${w*-1}px )`}}return{}},[p,d]),g=O.useMemo(()=>{if(!l)return 1;const x=parseInt(l.getAttribute("aria-level"),10);return x?x+1:1},[l]),z=O.useMemo(()=>d?d.classList.contains("is-branch-selected"):!1,[d]),y=O.useMemo(()=>{if(!(!d||!(c==="top"||c==="bottom"||c==="inside")))return{contextElement:d,getBoundingClientRect(){const v=d.getBoundingClientRect();let M=v.left,A=0;const _=Sr(d,"horizontal"),w=d.ownerDocument,k=_===w.body||_===w.documentElement;if(_&&!k){const C=_.getBoundingClientRect(),T=p?_.offsetWidth-_.clientWidth:0;M{}}),a.jsx(b0,{icon:o?.icon,showColors:!0,context:"list-view"}),a.jsx(Je,{alignment:"center",className:"block-editor-list-view-block-select-button__label-wrapper",justify:"flex-start",spacing:1,children:a.jsx("span",{className:"block-editor-list-view-block-select-button__title",children:a.jsx(Ho,{ellipsizeMode:"auto",children:r})})})]}),a.jsx("div",{className:"block-editor-list-view-block__menu-cell"})]})})}):null}function iCt(){const{clearSelectedBlock:e,multiSelect:t,selectBlock:n}=ae(F),{getBlockName:o,getBlockParents:r,getBlockSelectionStart:s,getSelectedBlockClientIds:i,hasMultiSelection:c,hasSelectedBlock:l}=D(F),{getBlockType:u}=D($e);return{updateBlockSelection:O.useCallback(async(p,f,b,h)=>{if(!p?.shiftKey&&p?.keyCode!==Ea){n(f,h);return}p.preventDefault();const g=p.type==="keydown"&&p.keyCode===Ea,z=p.type==="keydown"&&(p.keyCode===xi||p.keyCode===Do||p.keyCode===Vb||p.keyCode===Ag);if(!z&&!l()&&!c()){n(f,null);return}const y=i(),x=[...r(f),f];if((g||z&&!y.some(_=>x.includes(_)))&&await e(),!g){let _=s(),w=f;z&&(!l()&&!c()&&(_=f),b&&(w=b));const k=r(_),q=r(w),{start:S,end:C}=JSt(_,w,k,q);await t(S,C,null)}const v=i();if((p.keyCode===Vb||p.keyCode===Ag)&&v.length>1)return;const M=y.filter(_=>!v.includes(_));let A;if(M.length===1){const _=u(o(M[0]))?.title;_&&(A=le(m("%s deselected."),_))}else M.length>1&&(A=le(m("%s blocks deselected."),M.length));A&&At(A,"assertive")},[e,o,u,r,s,i,c,l,t,n])}}function aCt(e){return O.useMemo(()=>{const n={};let o=0;const r=s=>{s.forEach(i=>{n[i.clientId]=o,o++,i.innerBlocks.length>0&&r(i.innerBlocks)})};return r(e),n},[e])}function cCt({blocks:e,rootClientId:t}){return D(n=>{const{getDraggedBlockClientIds:o,getSelectedBlockClientIds:r,getEnabledClientIdsTree:s}=Fe(n(F));return{selectedClientIds:r(),draggedClientIds:o(),clientIdsTree:e??s(t)}},[e,t])}function lCt({collapseAll:e,expand:t}){const{expandedBlock:n,getBlockParents:o}=D(r=>{const{getBlockParents:s,getExpandedBlock:i}=Fe(r(F));return{expandedBlock:i(),getBlockParents:s}},[]);O.useEffect(()=>{if(n){const r=o(n,!1);e(),t(r)}},[e,t,n,o])}const Cc=24;function uCt(e,t,n=1,o=!1){const r=o?t.right-n*Cc:t.left+n*Cc;return o?e.x>r:e.xr.clientId===o.rootClientId);return n}function gme(e,t){const n=e[t+1];return n&&n.isDraggedBlock?gme(e,t+1):n}function fCt(e,t,n=1,o=!1){const r=o?t.right-n*Cc:t.left+n*Cc;return(o?e.xr+Cc)&&e.y0&&r.isExpanded||fCt(t,i,l.length,n))){const p=r.isExpanded?0:r.innerBlockCount||0;return{rootClientId:r.clientId,clientId:r.clientId,blockIndex:p,dropPosition:"inside"}}if(u&&r.rootClientId&&uCt(t,i,l.length,n)){const p=gme(e,c),f=r.nestingLevel,b=p?p.nestingLevel:1;if(f&&b){const h=dCt(t,i,l.length,n),g=Math.max(Math.min(h,f-b),0);if(l[g]){let z=r.blockIndex;if(l[g].nestingLevel===p?.nestingLevel)z=p?.blockIndex;else for(let y=c;y>=0;y--){const x=e[y];if(x.rootClientId===l[g].rootClientId){z=x.blockIndex+1;break}}return{rootClientId:l[g].rootClientId,clientId:r.clientId,blockIndex:z,dropPosition:o}}}}if(!r.canInsertDraggedBlocksAsSibling)return;const d=u?1:0;return{rootClientId:r.rootClientId,clientId:r.clientId,blockIndex:r.blockIndex+d,dropPosition:o}}const mCt={leading:!1,trailing:!0};function MCt({dropZoneElement:e,expandedState:t,setExpandedState:n}){const{getBlockRootClientId:o,getBlockIndex:r,getBlockCount:s,getDraggedBlockClientIds:i,canInsertBlocks:c}=D(F),[l,u]=O.useState(),{rootClientId:d,blockIndex:p}=l||{},f=khe(d,p),b=ft(),h=t1(d),g=O.useCallback((M,A)=>{const{rootClientId:_}=A||{};_&&A?.dropPosition==="inside"&&!M[_]&&n({type:"expand",clientIds:[_]})},[n]),z=t8(g,500,mCt);O.useEffect(()=>{if(l?.dropPosition!=="inside"||h!==l?.rootClientId){z.cancel();return}z(t,l)},[t,h,l,z]);const y=i(),x=t8(O.useCallback((M,A)=>{const _={x:M.clientX,y:M.clientY},w=!!y?.length,q=Array.from(A.querySelectorAll("[data-block]")).map(C=>{const T=C.dataset.block,W=C.dataset.expanded==="true",B=C.classList.contains("is-dragging"),N=parseInt(C.getAttribute("aria-level"),10),E=o(T);return{clientId:T,isExpanded:W,rootClientId:E,blockIndex:r(T),element:C,nestingLevel:N||void 0,isDraggedBlock:w?B:!1,innerBlockCount:s(T),canInsertDraggedBlocksAsSibling:w?c(y,E):!0,canInsertDraggedBlocksAsChild:w?c(y,T):!0}}),S=hCt(q,_,b);S&&u(S)},[c,y,s,r,o,b]),50);return{ref:Rx({dropZoneElement:e,onDrop(M){x.cancel(),l&&f(M),u(void 0)},onDragLeave(){x.cancel(),u(null)},onDragOver(M){x(M,M.currentTarget)},onDragEnd(){x.cancel(),u(void 0)}}),target:l}}function gCt({firstSelectedBlockClientId:e,setExpandedState:t}){const[n,o]=O.useState(null),{selectedBlockParentClientIds:r}=D(s=>{const{getBlockParents:i}=s(F);return{selectedBlockParentClientIds:i(e,!1)}},[e]);return O.useEffect(()=>{n!==e&&r?.length&&t({type:"expand",clientIds:r})},[e,r,n,t]),{setSelectedTreeId:o}}function zCt({selectBlock:e}){const t=h0(),{getBlockOrder:n,getBlockRootClientId:o,getBlocksByClientId:r,getPreviousBlockClientId:s,getSelectedBlockClientIds:i,getSettings:c,canInsertBlockType:l,canRemoveBlocks:u}=D(F),{flashBlock:d,removeBlocks:p,replaceBlocks:f,insertBlocks:b}=ae(F),h=lP();return Et(g=>{function z(v,M){M&&e(void 0,v,null,null),RP(v,g)}function y(v){const M=i(),A=M.includes(v),_=A?M[0]:v,w=o(_);return{blocksToUpdate:A?M:[v],firstBlockClientId:_,firstBlockRootClientId:w,originallySelectedBlockClientIds:M}}function x(v){if(v.defaultPrevented||!g.contains(v.target.ownerDocument.activeElement))return;const A=v.target.ownerDocument.activeElement?.closest("[role=row]")?.dataset?.block;if(!A)return;const{blocksToUpdate:_,firstBlockClientId:w,firstBlockRootClientId:k,originallySelectedBlockClientIds:q}=y(A);if(_.length!==0){if(v.preventDefault(),v.type==="copy"||v.type==="cut"){_.length===1&&d(_[0]),h(v.type,_);const C=r(_);m2e(v,C,t)}if(v.type==="cut"){var S;if(!u(_))return;let C=(S=s(w))!==null&&S!==void 0?S:k;p(_,!1);const T=q.length>0&&i().length===0;C||(C=n()[0]),z(C,T)}else if(v.type==="paste"){const{__experimentalCanUserUseUnfilteredHTML:C}=c(),T=Nvt(v,C);if(_.length===1){const[W]=_;if(T.every(B=>l(B.name,W))){b(T,void 0,W),z(T[0]?.clientId,!1);return}}f(_,T,T.length-1,-1),z(T[0]?.clientId,!1)}}}return g.ownerDocument.addEventListener("copy",x),g.ownerDocument.addEventListener("cut",x),g.ownerDocument.addEventListener("paste",x),()=>{g.ownerDocument.removeEventListener("copy",x),g.ownerDocument.removeEventListener("cut",x),g.ownerDocument.removeEventListener("paste",x)}},[])}const OCt=(e,t)=>t.type==="clear"?{}:Array.isArray(t.clientIds)?{...e,...t.clientIds.reduce((n,o)=>({...n,[o]:t.type==="expand"}),{})}:e,IY=32;function zme({id:e,blocks:t,dropZoneElement:n,showBlockMovers:o=!1,isExpanded:r=!1,showAppender:s=!1,blockSettingsMenu:i=sme,rootClientId:c,description:l,onSelect:u,additionalBlockContent:d},p){t&&Re("`blocks` property in `wp.blockEditor.__experimentalListView`",{since:"6.3",alternative:"`rootClientId` property"});const f=He(zme),{clientIdsTree:b,draggedClientIds:h,selectedClientIds:g}=cCt({blocks:t,rootClientId:c}),z=aCt(b),{getBlock:y}=D(F),{visibleBlockCount:x,shouldShowInnerBlocks:v}=D(se=>{const{getGlobalBlockCount:be,getClientIdsOfDescendants:ye,__unstableGetEditorMode:xe}=se(F),K=h?.length>0?ye(h).length+1:0;return{visibleBlockCount:be()-K,shouldShowInnerBlocks:xe()!=="zoom-out"}},[h]),{updateBlockSelection:M}=iCt(),[A,_]=O.useReducer(OCt,{}),[w,k]=O.useState(null),{setSelectedTreeId:q}=gCt({firstSelectedBlockClientId:g[0],setExpandedState:_}),S=O.useCallback((se,be,ye)=>{M(se,be,null,ye),q(be),u&&u(y(be))},[q,M,u,y]),{ref:C,target:T}=MCt({dropZoneElement:n,expandedState:A,setExpandedState:_}),W=O.useRef(),B=zCt({selectBlock:S}),N=Gt([B,W,C,p]);O.useEffect(()=>{g?.length&&RP(g[0],W?.current)},[]);const E=O.useCallback(se=>{if(!se)return;const be=Array.isArray(se)?se:[se];_({type:"expand",clientIds:be})},[_]),L=O.useCallback(se=>{se&&_({type:"collapse",clientIds:[se]})},[_]),I=O.useCallback(()=>{_({type:"clear"})},[_]),P=O.useCallback(se=>{E(se?.dataset?.block)},[E]),H=O.useCallback(se=>{L(se?.dataset?.block)},[L]),U=O.useCallback((se,be,ye)=>{se.shiftKey&&M(se,be?.dataset?.block,ye?.dataset?.block)},[M]);lCt({collapseAll:I,expand:E});const X=h?.[0],{blockDropTargetIndex:Z,blockDropPosition:ne,firstDraggedBlockIndex:oe}=O.useMemo(()=>{let se,be;if(T?.clientId){const ye=z[T.clientId];se=ye===void 0||T?.dropPosition==="top"?ye:ye+1}else T===null&&(se=null);if(X){const ye=z[X];be=ye===void 0||T?.dropPosition==="top"?ye:ye+1}return{blockDropTargetIndex:se,blockDropPosition:T?.dropPosition,firstDraggedBlockIndex:be}},[T,z,X]),Y=O.useMemo(()=>({blockDropPosition:ne,blockDropTargetIndex:Z,blockIndexes:z,draggedClientIds:h,expandedState:A,expand:E,firstDraggedBlockIndex:oe,collapse:L,collapseAll:I,BlockSettingsMenu:i,listViewInstanceId:f,AdditionalBlockContent:d,insertedBlock:w,setInsertedBlock:k,treeGridElementRef:W,rootClientId:c}),[ne,Z,z,h,A,E,oe,L,I,i,f,d,w,k,c]),[ee]=lqe(W,IY,x,{expandedState:A,useWindowing:!0,windowOverscan:40});if(!b.length&&!s)return null;const ie=l&&`block-editor-list-view-description-${f}`;return a.jsxs(Wx,{value:!0,children:[a.jsx(sCt,{draggedBlockClientId:X,listViewRef:W,blockDropTarget:T}),l&&a.jsx(Kt,{id:ie,children:l}),a.jsx(Z2t,{id:e,className:$("block-editor-list-view-tree",{"is-dragging":h?.length>0&&Z!==void 0}),"aria-label":m("Block navigation structure"),ref:N,onCollapseRow:H,onExpandRow:P,onFocusRow:U,applicationAriaLabel:m("Block navigation structure"),"aria-describedby":ie,style:{"--wp-admin--list-view-dragged-items-height":h?.length?`${IY*(h.length-1)}px`:null},children:a.jsx(ume.Provider,{value:Y,children:a.jsx(rCt,{blocks:b,parentId:c,selectBlock:S,showBlockMovers:o,fixedListWindow:ee,selectedClientIds:g,isExpanded:r,shouldShowInnerBlocks:v,showAppender:s})})})]})}const Ome=O.forwardRef(zme),ACt=O.forwardRef((e,t)=>a.jsx(Ome,{ref:t,...e,showAppender:!1,rootClientId:null,onSelect:null,additionalBlockContent:null,blockSettingsMenu:void 0}));function yCt({genericPreviewBlock:e,style:t,className:n,activeStyle:o}){const r=Dt(e.name)?.example,s=Xhe(n,o,t),i=O.useMemo(()=>({...e,title:t.label||t.name,description:t.description,initialAttributes:{...e.attributes,className:s+" block-editor-block-styles__block-preview-container"},example:r}),[e,s]);return a.jsx(ahe,{item:i})}const DY=()=>{};function Ame({clientId:e,onSwitch:t=DY,onHoverClassName:n=DY}){const{onSelect:o,stylesToRender:r,activeStyle:s,genericPreviewBlock:i,className:c}=Khe({clientId:e,onSwitch:t}),[l,u]=O.useState(null),d=g0("medium","<");if(!r||r.length===0)return null;const p=jr(u,250),f=h=>{o(h),n(null),u(null),p.cancel()},b=h=>{var g;if(l===h){p.cancel();return}p(h),n((g=h?.name)!==null&&g!==void 0?g:null)};return a.jsxs("div",{className:"block-editor-block-styles",children:[a.jsx("div",{className:"block-editor-block-styles__variants",children:r.map(h=>{const g=h.label||h.name;return a.jsx(fe,{__next40pxDefaultSize:!0,className:$("block-editor-block-styles__item",{"is-active":s.name===h.name}),variant:"secondary",label:g,onMouseEnter:()=>b(h),onFocus:()=>b(h),onMouseLeave:()=>b(null),onBlur:()=>b(null),onClick:()=>f(h),"aria-current":s.name===h.name,children:a.jsx(Ho,{numberOfLines:1,className:"block-editor-block-styles__item-text",children:g})},h.name)})}),l&&!d&&a.jsx(Mn,{placement:"left-start",offset:34,focusOnMount:!1,children:a.jsx("div",{className:"block-editor-block-styles__preview-panel",onMouseLeave:()=>b(null),children:a.jsx(yCt,{activeStyle:s,className:c,genericPreviewBlock:i,style:l})})})]})}const FY={0:ule,1:XYe,2:GYe,3:KYe,4:YYe,5:ZYe,6:QYe};function $Y({level:e}){return FY[e]?a.jsx(xn,{icon:FY[e]}):null}const vCt=[1,2,3,4,5,6],xCt={className:"block-library-heading-level-dropdown"};function Qh({options:e=vCt,value:t,onChange:n}){return a.jsx(_l,{popoverProps:xCt,icon:a.jsx($Y,{level:t}),label:m("Change level"),controls:e.map(o=>{const r=o===t;return{icon:a.jsx($Y,{level:o}),title:o===0?m("Paragraph"):le(m("Heading %d"),o),isActive:r,onClick(){n(o)},role:"menuitemradio"}})})}function yme({icon:e=Af,label:t=m("Choose variation"),instructions:n=m("Select a variation to start with:"),variations:o,onSelect:r,allowSkip:s}){const i=$("block-editor-block-variation-picker",{"has-many-variations":o.length>4});return a.jsxs(D0,{icon:e,label:t,instructions:n,className:i,children:[a.jsx("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":m("Block variations"),children:o.map(c=>a.jsxs("li",{children:[a.jsx(fe,{__next40pxDefaultSize:!0,variant:"tertiary",icon:c.icon&&c.icon.src?c.icon.src:c.icon,iconSize:48,onClick:()=>r(c),className:"block-editor-block-variation-picker__variation",label:c.description||c.title}),a.jsx("span",{className:"block-editor-block-variation-picker__variation-label",children:c.title})]},c.name))}),s&&a.jsx("div",{className:"block-editor-block-variation-picker__skip",children:a.jsx(fe,{__next40pxDefaultSize:!1,variant:"link",onClick:()=>r(),children:m("Skip")})})]})}function _Ct({className:e,onSelectVariation:t,selectedValue:n,variations:o}){return a.jsxs("fieldset",{className:e,children:[a.jsx(Kt,{as:"legend",children:m("Transform to variation")}),o.map(r=>a.jsx(fe,{__next40pxDefaultSize:!1,icon:a.jsx(b0,{icon:r.icon,showColors:!0}),isPressed:n===r.name,label:n===r.name?r.title:le(m("Transform to %s"),r.title),onClick:()=>t(r.name),"aria-label":r.title,showTooltip:!0},r.name))]})}function wCt({className:e,onSelectVariation:t,selectedValue:n,variations:o}){const r=o.map(({name:s,title:i,description:c})=>({value:s,label:i,info:c}));return a.jsx(E1,{className:e,label:m("Transform to variation"),text:m("Transform to variation"),popoverProps:{position:"bottom center",className:`${e}__popover`},icon:md,toggleProps:{iconPosition:"right"},children:()=>a.jsx("div",{className:`${e}__container`,children:a.jsx(Yt,{children:a.jsx(Hp,{choices:r,value:n,onSelect:t})})})})}function kCt({className:e,onSelectVariation:t,selectedValue:n,variations:o}){return a.jsx("div",{className:e,children:a.jsx(wn,{label:m("Transform to variation"),value:n,hideLabelFromVision:!0,onChange:t,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,children:o.map(r=>a.jsx(Bi,{icon:a.jsx(b0,{icon:r.icon,showColors:!0}),value:r.name,label:n===r.name?r.title:le(m("Transform to %s"),r.title)},r.name))})})}function vme({blockClientId:e}){const{updateBlockAttributes:t}=ae(F),{activeBlockVariation:n,variations:o}=D(p=>{const{getActiveBlockVariation:f,getBlockVariations:b}=p($e),{getBlockName:h,getBlockAttributes:g}=p(F),z=e&&h(e);return{activeBlockVariation:f(z,g(e)),variations:z&&b(z,"transform")}},[e]),r=n?.name,s=O.useMemo(()=>{const p=new Set;return o?(o.forEach(f=>{f.icon&&p.add(f.icon?.src||f.icon)}),p.size===o.length):!1},[o]),i=p=>{t(e,{...o.find(({name:f})=>f===p).attributes})};if(!o?.length)return null;const c="block-editor-block-variation-transforms",u=o.length>5?_Ct:kCt,d=s?u:wCt;return a.jsx(d,{className:c,onSelectVariation:i,selectedValue:r,variations:o})}const qCt=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})}),SCt=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})}),CCt=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})}),RCt=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M4 4L20 4L20 5.5L4 5.5L4 4ZM10 7L14 7L14 17L10 17L10 7ZM20 18.5L4 18.5L4 20L20 20L20 18.5Z"})}),WCt=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M7 4H17V8L7 8V4ZM7 16L17 16V20L7 20V16ZM20 11.25H4V12.75H20V11.25Z"})}),DS={top:{icon:CCt,title:Oe("Align top","Block vertical alignment setting")},center:{icon:SCt,title:Oe("Align middle","Block vertical alignment setting")},bottom:{icon:qCt,title:Oe("Align bottom","Block vertical alignment setting")},stretch:{icon:RCt,title:Oe("Stretch to fill","Block vertical alignment setting")},"space-between":{icon:WCt,title:Oe("Space between","Block vertical alignment setting")}},TCt=["top","center","bottom"],ECt="top";function xme({value:e,onChange:t,controls:n=TCt,isCollapsed:o=!0,isToolbar:r}){function s(d){return()=>t(e===d?void 0:d)}const i=DS[e],c=DS[ECt],l=r?c0:_l,u=r?{isCollapsed:o}:{};return a.jsx(l,{icon:i?i.icon:c.icon,label:Oe("Change vertical alignment","Block vertical alignment setting label"),controls:n.map(d=>({...DS[d],isActive:e===d,role:o?"menuitemradio":void 0,onClick:s(d)})),...u})}const _me=e=>a.jsx(xme,{...e,isToolbar:!1}),wme=e=>a.jsx(xme,{...e,isToolbar:!0});function kme(e){return[...e].sort((n,o)=>e.filter(r=>r===o).length-e.filter(r=>r===n).length).shift()}function qme(e={}){const{flat:t,...n}=e;return t||kme(Object.values(n).filter(Boolean))||"px"}function WP(e={}){if(typeof e=="string")return e;const t=Object.values(e).map(c=>y0(c)),n=t.map(c=>{var l;return(l=c[0])!==null&&l!==void 0?l:""}),o=t.map(c=>c[1]),r=n.every(c=>c===n[0])?n[0]:"",s=kme(o);return r===0||r?`${r}${s}`:void 0}function Sme(e={}){const t=WP(e);return typeof e=="string"?!1:isNaN(parseFloat(t))}function Cme(e){return e?typeof e=="string"?!0:!!Object.values(e).filter(n=>!!n||n===0).length:!1}function BCt({onChange:e,selectedUnits:t,setSelectedUnits:n,values:o,...r}){let s=WP(o);s===void 0&&(s=qme(t));const c=Cme(o)&&Sme(o),l=c?m("Mixed"):null,u=p=>{const b=!isNaN(parseFloat(p))?p:void 0;e(b)},d=p=>{n({topLeft:p,topRight:p,bottomLeft:p,bottomRight:p})};return a.jsx(H0,{...r,"aria-label":m("Border radius"),disableUnits:c,isOnly:!0,value:s,onChange:u,onUnitChange:d,placeholder:l,size:"__unstable-large"})}const NCt={topLeft:m("Top left"),topRight:m("Top right"),bottomLeft:m("Bottom left"),bottomRight:m("Bottom right")};function LCt({onChange:e,selectedUnits:t,setSelectedUnits:n,values:o,...r}){const s=l=>u=>{if(!e)return;const p=!isNaN(parseFloat(u))?u:void 0;e({...c,[l]:p})},i=l=>u=>{const d={...t};d[l]=u,n(d)},c=typeof o!="string"?o:{topLeft:o,topRight:o,bottomLeft:o,bottomRight:o};return a.jsx("div",{className:"components-border-radius-control__input-controls-wrapper",children:Object.entries(NCt).map(([l,u])=>{const[d,p]=y0(c[l]),f=c[l]?p:t[l]||t.flat;return a.jsx(W1,{text:u,placement:"top",children:a.jsx("div",{className:"components-border-radius-control__tooltip-wrapper",children:a.jsx(H0,{...r,"aria-label":u,value:[d,f].join(""),onChange:s(l),onUnitChange:i(l),size:"__unstable-large"})})},l)})})}function jCt({isLinked:e,...t}){const n=m(e?"Unlink radii":"Link radii");return a.jsx(W1,{text:n,children:a.jsx(fe,{...t,className:"component-border-radius-control__linked-button",size:"small",icon:e?Qa:Xu,iconSize:24,"aria-label":n})})}const PCt={topLeft:void 0,topRight:void 0,bottomLeft:void 0,bottomRight:void 0},FS=0,ICt={px:100,em:20,rem:20};function DCt({onChange:e,values:t}){const[n,o]=O.useState(!Cme(t)||!Sme(t)),[r,s]=O.useState({flat:typeof t=="string"?y0(t)[1]:void 0,topLeft:y0(t?.topLeft)[1],topRight:y0(t?.topRight)[1],bottomLeft:y0(t?.bottomLeft)[1],bottomRight:y0(t?.bottomRight)[1]}),[i]=O0("spacing.units"),c=Fr({availableUnits:i||["px","em","rem"]}),l=qme(r),d=(c&&c.find(h=>h.value===l))?.step||1,[p]=y0(WP(t)),f=()=>o(!n),b=h=>{e(h!==void 0?`${h}${l}`:void 0)};return a.jsxs("fieldset",{className:"components-border-radius-control",children:[a.jsx(z0.VisualLabel,{as:"legend",children:m("Radius")}),a.jsxs("div",{className:"components-border-radius-control__wrapper",children:[n?a.jsxs(a.Fragment,{children:[a.jsx(BCt,{className:"components-border-radius-control__unit-control",values:t,min:FS,onChange:e,selectedUnits:r,setSelectedUnits:s,units:c}),a.jsx(T0,{__next40pxDefaultSize:!0,label:m("Border radius"),hideLabelFromVision:!0,className:"components-border-radius-control__range-control",value:p??"",min:FS,max:ICt[l],initialPosition:0,withInputField:!1,onChange:b,step:d,__nextHasNoMarginBottom:!0})]}):a.jsx(LCt,{min:FS,onChange:e,selectedUnits:r,setSelectedUnits:s,values:t||PCt,units:c}),a.jsx(jCt,{onClick:f,isLinked:n})]})]})}const FCt=Sn(e=>t=>{const[n,o]=O0("color.palette","color.custom"),{colors:r=n,disableCustomColors:s=!o}=t,i=r&&r.length>0||!s;return a.jsx(e,{...t,colors:r,disableCustomColors:s,hasColorsToChoose:i})},"withColorContext"),Rme=FCt(uw),{Tabs:Gf}=Fe(L0),$Ct=["colors","disableCustomColors","gradients","disableCustomGradients"],Ji={color:"color",gradient:"gradient"};function Wme({colors:e,gradients:t,disableCustomColors:n,disableCustomGradients:o,__experimentalIsRenderedInSidebar:r,className:s,label:i,onColorChange:c,onGradientChange:l,colorValue:u,gradientValue:d,clearable:p,showTitle:f=!0,enableAlpha:b,headingLevel:h}){const g=c&&(e&&e.length>0||!n),z=l&&(t&&t.length>0||!o);if(!g&&!z)return null;const y={[Ji.color]:a.jsx(uw,{value:u,onChange:z?v=>{c(v),l()}:c,colors:e,disableCustomColors:n,__experimentalIsRenderedInSidebar:r,clearable:p,enableAlpha:b,headingLevel:h}),[Ji.gradient]:a.jsx(Jrt,{value:d,onChange:g?v=>{l(v),c()}:l,gradients:t,disableCustomGradients:o,__experimentalIsRenderedInSidebar:r,clearable:p,headingLevel:h})},x=v=>a.jsx("div",{className:"block-editor-color-gradient-control__panel",children:y[v]});return a.jsx(z0,{__nextHasNoMarginBottom:!0,className:$("block-editor-color-gradient-control",s),children:a.jsx("fieldset",{className:"block-editor-color-gradient-control__fieldset",children:a.jsxs(Ye,{spacing:1,children:[f&&a.jsx("legend",{children:a.jsx("div",{className:"block-editor-color-gradient-control__color-indicator",children:a.jsx(z0.VisualLabel,{children:i})})}),g&&z&&a.jsx("div",{children:a.jsxs(Gf,{defaultTabId:d?Ji.gradient:!!g&&Ji.color,children:[a.jsxs(Gf.TabList,{children:[a.jsx(Gf.Tab,{tabId:Ji.color,children:m("Color")}),a.jsx(Gf.Tab,{tabId:Ji.gradient,children:m("Gradient")})]}),a.jsx(Gf.TabPanel,{tabId:Ji.color,className:"block-editor-color-gradient-control__panel",focusable:!1,children:y.color}),a.jsx(Gf.TabPanel,{tabId:Ji.gradient,className:"block-editor-color-gradient-control__panel",focusable:!1,children:y.gradient})]})}),!z&&x(Ji.color),!g&&x(Ji.gradient)]})})})}function VCt(e){const[t,n,o,r]=O0("color.palette","color.gradients","color.custom","color.customGradient");return a.jsx(Wme,{colors:t,gradients:n,disableCustomColors:!o,disableCustomGradients:!r,...e})}function Tme(e){return $Ct.every(t=>e.hasOwnProperty(t))?a.jsx(Wme,{...e}):a.jsx(VCt,{...e})}bs([hs,bf]);function S5({backgroundColor:e,fallbackBackgroundColor:t,fallbackTextColor:n,fallbackLinkColor:o,fontSize:r,isLargeText:s,textColor:i,linkColor:c,enableAlphaChecker:l=!1}){const u=e||t;if(!u)return null;const d=i||n,p=c||o;if(!d&&!p)return null;const f=[{color:d,description:m("text color")},{color:p,description:m("link color")}],b=Tt(u),h=b.alpha()<1,g=b.brightness(),z={level:"AA",size:s||s!==!1&&r>=24?"large":"small"};let y="",x="";for(const v of f){if(!v.color)continue;const M=Tt(v.color),A=M.isReadable(b,z),_=M.alpha()<1;if(!A){if(h||_)continue;y=gn(o?null:t)}),e&&a.jsx(HCt,{format:e,onChange:n})]})}function HCt({format:e,onChange:t}){var n;const r=[...[...new Set(["Y-m-d",Oe("n/j/Y","short date format"),Oe("n/j/Y g:i A","short date format with time"),Oe("M j, Y","medium date format"),Oe("M j, Y g:i A","medium date format with time"),Oe("F j, Y","long date format"),Oe("M j","short date format without the year")])].map((l,u)=>({key:`suggested-${u}`,name:po(l,nd),format:l})),{key:"human-diff",name:kw(nd),format:"human-diff"}],s={key:"custom",name:m("Custom"),className:"block-editor-date-format-picker__custom-format-select-control__custom-option",hint:m("Enter your own date format")},[i,c]=O.useState(()=>!!e&&!r.some(l=>l.format===e));return a.jsxs(Ye,{children:[a.jsx(Lh,{__next40pxDefaultSize:!0,label:m("Choose a format"),options:[...r,s],value:i?s:(n=r.find(l=>l.format===e))!==null&&n!==void 0?n:s,onChange:({selectedItem:l})=>{l===s?c(!0):(c(!1),t(l.format))}}),i&&a.jsx($t,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:m("Custom format"),hideLabelFromVision:!0,help:z1(m("Enter a date or time format string."),{Link:a.jsx(S1,{href:m("https://wordpress.org/documentation/article/customize-date-and-time-format/")})}),value:e,onChange:l=>t(l)})]})}function Bme({id:e,colorPalette:t,duotonePalette:n,disableCustomColors:o,disableCustomDuotone:r,value:s,onChange:i}){let c;s==="unset"?c=a.jsx(vf,{className:"block-editor-duotone-control__unset-indicator"}):s?c=a.jsx(Xpe,{values:s}):c=a.jsx(t0,{icon:BYe});const l=m("Apply duotone filter"),d=`${He(Bme,"duotone-control",e)}__description`;return a.jsx(B0,{popoverProps:{className:"block-editor-duotone-control__popover",headerTitle:m("Duotone")},renderToggle:({isOpen:p,onToggle:f})=>{const b=h=>{!p&&h.keyCode===Do&&(h.preventDefault(),f())};return a.jsx(bt,{showTooltip:!0,onClick:f,"aria-haspopup":"true","aria-expanded":p,onKeyDown:b,label:l,icon:c})},renderContent:()=>a.jsxs(Yt,{label:m("Duotone"),children:[a.jsx("p",{children:m("Create a two-tone color effect without losing your original image.")}),a.jsx(Upe,{"aria-label":l,"aria-describedby":d,colorPalette:t,duotonePalette:n,disableCustomColors:o,disableCustomDuotone:r,value:s,onChange:i})]})})}const UCt=(e,t)=>m(e?t?"Appearance":"Font style":"Font weight");function XCt(e){const{__next40pxDefaultSize:t=!1,onChange:n,hasFontStyles:o=!0,hasFontWeights:r=!0,fontFamilyFaces:s,value:{fontStyle:i,fontWeight:c},...l}=e,u=o||r,d=UCt(o,r),p={key:"default",name:m("Default"),style:{fontStyle:void 0,fontWeight:void 0}},{fontStyles:f,fontWeights:b,combinedStyleAndWeightOptions:h}=Ehe(s),g=()=>{const A=[p];return h&&A.push(...h),A},z=()=>{const A=[p];return f.forEach(({name:_,value:w})=>{A.push({key:w,name:_,style:{fontStyle:w,fontWeight:void 0}})}),A},y=()=>{const A=[p];return b.forEach(({name:_,value:w})=>{A.push({key:w,name:_,style:{fontStyle:void 0,fontWeight:w}})}),A},x=O.useMemo(()=>o&&r?g():o?z():y(),[e.options,f,b,h]),v=x.find(A=>A.style.fontStyle===i&&A.style.fontWeight===c)||x[0],M=()=>v?le(m(o?r?"Currently selected font appearance: %s":"Currently selected font style: %s":"Currently selected font weight: %s"),v.name):m("No selected font appearance");return u&&a.jsx(Lh,{...l,className:"components-font-appearance-control",__next40pxDefaultSize:t,label:d,describedBy:M(),options:x,value:v,onChange:({selectedItem:A})=>n(A.style)})}function GCt({__next40pxDefaultSize:e=!1,__nextHasNoMarginBottom:t=!1,value:n="",onChange:o,fontFamilies:r,...s}){const[i]=O0("typography.fontFamilies");if(r||(r=i),!r||r.length===0)return null;const c=[{value:"",label:m("Default")},...r.map(({fontFamily:l,name:u})=>({value:l,label:u||l}))];return t||Re("Bottom margin styles for wp.blockEditor.FontFamilyControl",{since:"6.7",version:"7.0",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version"}),a.jsx(i0,{__next40pxDefaultSize:e,__nextHasNoMarginBottom:t,label:m("Font"),options:c,value:n,onChange:o,labelPosition:"top",...s})}function KCt({__next40pxDefaultSize:e=!1,value:t,onChange:n,__unstableInputWidth:o="60px",...r}){const[s]=O0("spacing.units"),i=Fr({availableUnits:s||["px","em","rem"],defaultValues:{px:2,em:.2,rem:.2}});return a.jsx(H0,{__next40pxDefaultSize:e,...r,label:m("Letter spacing"),value:t,__unstableInputWidth:o,units:i,onChange:n})}const YCt=[{label:m("None"),value:"none",icon:tw},{label:m("Underline"),value:"underline",icon:HYe},{label:m("Strikethrough"),value:"line-through",icon:ole}];function ZCt({value:e,onChange:t,className:n}){return a.jsx(wn,{isDeselectable:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:m("Decoration"),className:$("block-editor-text-decoration-control",n),value:e,onChange:o=>{t(o===e?void 0:o)},children:YCt.map(o=>a.jsx(Bi,{value:o.value,icon:o.icon,label:o.label},o.value))})}const QCt=[{label:m("None"),value:"none",icon:tw},{label:m("Uppercase"),value:"uppercase",icon:UYe},{label:m("Lowercase"),value:"lowercase",icon:VYe},{label:m("Capitalize"),value:"capitalize",icon:LYe}];function JCt({className:e,value:t,onChange:n}){return a.jsx(wn,{isDeselectable:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:m("Letter case"),className:$("block-editor-text-transform-control",e),value:t,onChange:o=>{n(o===t?void 0:o)},children:QCt.map(o=>a.jsx(Bi,{value:o.value,icon:o.icon,label:o.label},o.value))})}const eRt=[{label:m("Horizontal"),value:"horizontal-tb",icon:cQe},{label:m("Vertical"),value:ft()?"vertical-lr":"vertical-rl",icon:lQe}];function tRt({className:e,value:t,onChange:n}){return a.jsx(wn,{isDeselectable:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:m("Orientation"),className:$("block-editor-writing-mode-control",e),value:t,onChange:o=>{n(o===t?void 0:o)},children:eRt.map(o=>a.jsx(Bi,{value:o.value,icon:o.icon,label:o.label},o.value))})}const nRt=({setting:e,children:t,panelId:n,...o})=>{const r=()=>{e.colorValue?e.onColorChange():e.gradientValue&&e.onGradientChange()};return a.jsx(Rt,{hasValue:()=>!!e.colorValue||!!e.gradientValue,label:e.label,onDeselect:r,isShownByDefault:e.isShownByDefault!==void 0?e.isShownByDefault:!0,...o,className:"block-editor-tools-panel-color-gradient-settings__item",panelId:n,resetAllFilter:e.resetAllFilter,children:t})},oRt=({colorValue:e,label:t})=>a.jsxs(Je,{justify:"flex-start",children:[a.jsx(vf,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:e}),a.jsx(Ht,{className:"block-editor-panel-color-gradient-settings__color-name",title:t,children:t})]}),rRt=e=>({onToggle:t,isOpen:n})=>{const{colorValue:o,label:r}=e,s={onClick:t,className:$("block-editor-panel-color-gradient-settings__dropdown",{"is-open":n}),"aria-expanded":n};return a.jsx(fe,{__next40pxDefaultSize:!1,...s,children:a.jsx(oRt,{colorValue:o,label:r})})};function _k({colors:e,disableCustomColors:t,disableCustomGradients:n,enableAlpha:o,gradients:r,settings:s,__experimentalIsRenderedInSidebar:i,...c}){let l;return i&&(l={placement:"left-start",offset:36,shift:!0}),a.jsx(a.Fragment,{children:s.map((u,d)=>{var p;const f={clearable:!1,colorValue:u.colorValue,colors:e,disableCustomColors:t,disableCustomGradients:n,enableAlpha:o,gradientValue:u.gradientValue,gradients:r,label:u.label,onColorChange:u.onColorChange,onGradientChange:u.onGradientChange,showTitle:!1,__experimentalIsRenderedInSidebar:i,...u},b={colorValue:(p=u.gradientValue)!==null&&p!==void 0?p:u.colorValue,label:u.label};return u&&a.jsx(nRt,{setting:u,...c,children:a.jsx(B0,{popoverProps:l,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:rRt(b),renderContent:()=>a.jsx(Ni,{paddingSize:"none",children:a.jsx("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:a.jsx(Tme,{...f})})})})},d)})})}function Sf(){const[e,t,n,o,r,s,i,c,l,u]=O0("color.custom","color.palette.custom","color.palette.theme","color.palette.default","color.defaultPalette","color.customGradient","color.gradients.custom","color.gradients.theme","color.gradients.default","color.defaultGradients"),d={disableCustomColors:!e,disableCustomGradients:!s};return d.colors=O.useMemo(()=>{const p=[];return n&&n.length&&p.push({name:Oe("Theme","Indicates this palette comes from the theme."),colors:n}),r&&o&&o.length&&p.push({name:Oe("Default","Indicates this palette comes from WordPress."),colors:o}),t&&t.length&&p.push({name:Oe("Custom","Indicates this palette comes from the theme."),colors:t}),p},[t,n,o,r]),d.gradients=O.useMemo(()=>{const p=[];return c&&c.length&&p.push({name:Oe("Theme","Indicates this palette comes from the theme."),gradients:c}),u&&l&&l.length&&p.push({name:Oe("Default","Indicates this palette comes from WordPress."),gradients:l}),i&&i.length&&p.push({name:Oe("Custom","Indicates this palette is created by the user."),gradients:i}),p},[i,c,l,u]),d.hasColorsOrGradients=!!d.colors.length||!!d.gradients.length,d}const VY={px:{max:1e3,step:1},"%":{max:100,step:1},vw:{max:100,step:1},vh:{max:100,step:1},em:{max:50,step:.1},rem:{max:50,step:.1},svw:{max:100,step:1},lvw:{max:100,step:1},dvw:{max:100,step:1},svh:{max:100,step:1},lvh:{max:100,step:1},dvh:{max:100,step:1},vi:{max:100,step:1},svi:{max:100,step:1},lvi:{max:100,step:1},dvi:{max:100,step:1},vb:{max:100,step:1},svb:{max:100,step:1},lvb:{max:100,step:1},dvb:{max:100,step:1},vmin:{max:100,step:1},svmin:{max:100,step:1},lvmin:{max:100,step:1},dvmin:{max:100,step:1},vmax:{max:100,step:1},svmax:{max:100,step:1},lvmax:{max:100,step:1},dvmax:{max:100,step:1}};function sRt({label:e=m("Height"),onChange:t,value:n}){var o,r;const s=parseFloat(n),[i]=O0("spacing.units"),c=Fr({availableUnits:i||["%","px","em","rem","vh","vw"]}),l=O.useMemo(()=>y0(n),[n])[1]||c[0]?.value||"px",u=p=>{t([p,l].join(""))},d=p=>{const[f,b]=y0(n);["em","rem"].includes(p)&&b==="px"?t((f/16).toFixed(2)+p):["em","rem"].includes(b)&&p==="px"?t(Math.round(f*16)+p):["%","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax"].includes(p)&&f>100&&t(100+p)};return a.jsxs("fieldset",{className:"block-editor-height-control",children:[a.jsx(z0.VisualLabel,{as:"legend",children:e}),a.jsxs(Q0,{children:[a.jsx(Ht,{isBlock:!0,children:a.jsx(H0,{value:n,units:c,onChange:t,onUnitChange:d,min:0,size:"__unstable-large",label:e,hideLabelFromVision:!0})}),a.jsx(Ht,{isBlock:!0,children:a.jsx(or,{marginX:2,marginBottom:0,children:a.jsx(T0,{__next40pxDefaultSize:!0,value:s,min:0,max:(o=VY[l]?.max)!==null&&o!==void 0?o:100,step:(r=VY[l]?.step)!==null&&r!==void 0?r:.1,withInputField:!1,onChange:u,__nextHasNoMarginBottom:!0,label:e,hideLabelFromVision:!0})})})]})]})}const Nme=100,Lme=300,jme={placement:"bottom-start"};function iRt({crop:e,rotation:t,url:n,id:o,onSaveImage:r,onFinishEditing:s}){const{createErrorNotice:i}=ae(Ze),[c,l]=O.useState(!1),u=O.useCallback(()=>{l(!1),s()},[s]),d=O.useCallback(()=>{l(!0);const p=[];t>0&&p.push({type:"rotate",args:{angle:t}}),(e.width<99.9||e.height<99.9)&&p.push({type:"crop",args:{left:e.x,top:e.y,width:e.width,height:e.height}}),ct({path:`/wp/v2/media/${o}/edit`,method:"POST",data:{src:n,modifiers:p}}).then(f=>{r({id:f.id,url:f.source_url})}).catch(f=>{i(le(m("Could not edit image. %s"),Rr(f.message)),{id:"image-editing-error",type:"snackbar"})}).finally(()=>{l(!1),s()})},[e,t,o,n,r,i,s]);return O.useMemo(()=>({isInProgress:c,apply:d,cancel:u}),[c,d,u])}function aRt({url:e,naturalWidth:t,naturalHeight:n}){const[o,r]=O.useState(),[s,i]=O.useState(),[c,l]=O.useState({x:0,y:0}),[u,d]=O.useState(100),[p,f]=O.useState(0),b=t/n,[h,g]=O.useState(b),z=O.useCallback(()=>{const y=(p+90)%360;let x=b;if(p%180===90&&(x=1/b),y===0){r(),f(y),g(b),l(_=>({x:-(_.y*x),y:_.x*x}));return}function v(_){const w=document.createElement("canvas");let k=0,q=0;y%180?(w.width=_.target.height,w.height=_.target.width):(w.width=_.target.width,w.height=_.target.height),(y===90||y===180)&&(k=w.width),(y===270||y===180)&&(q=w.height);const S=w.getContext("2d");S.translate(k,q),S.rotate(y*Math.PI/180),S.drawImage(_.target,0,0),w.toBlob(C=>{r(URL.createObjectURL(C)),f(y),g(w.width/w.height),l(T=>({x:-(T.y*x),y:T.x*x}))})}const M=new window.Image;M.src=e,M.onload=v;const A=_n("media.crossOrigin",void 0,e);typeof A=="string"&&(M.crossOrigin=A)},[p,b,e]);return O.useMemo(()=>({editedUrl:o,setEditedUrl:r,crop:s,setCrop:i,position:c,setPosition:l,zoom:u,setZoom:d,rotation:p,setRotation:f,rotateClockwise:z,aspect:h,setAspect:g,defaultAspect:b}),[o,s,c,u,p,z,h,b])}const Pme=O.createContext({}),lO=()=>O.useContext(Pme);function cRt({id:e,url:t,naturalWidth:n,naturalHeight:o,onFinishEditing:r,onSaveImage:s,children:i}){const c=aRt({url:t,naturalWidth:n,naturalHeight:o}),l=iRt({id:e,url:t,onSaveImage:s,onFinishEditing:r,...c}),u=O.useMemo(()=>({...c,...l}),[c,l]);return a.jsx(Pme.Provider,{value:u,children:i})}function ey({aspectRatios:e,isDisabled:t,label:n,onClick:o,value:r}){return a.jsx(Yt,{label:n,children:e.map(({name:s,slug:i,ratio:c})=>a.jsx(tt,{disabled:t,onClick:()=>{o(c)},role:"menuitemradio",isSelected:c===r,icon:c===r?no:void 0,children:s},i))})}function lRt(e){const[t,n,...o]=e.split("/").map(Number);return t<=0||n<=0||Number.isNaN(t)||Number.isNaN(n)||o.length?NaN:n?t/n:t}function $S({ratio:e,...t}){return{ratio:lRt(e),...t}}function uRt({toggleProps:e}){const{isInProgress:t,aspect:n,setAspect:o,defaultAspect:r}=lO(),[s,i,c]=O0("dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios");return a.jsx(E1,{icon:zYe,label:m("Aspect Ratio"),popoverProps:jme,toggleProps:e,children:({onClose:l})=>a.jsxs(a.Fragment,{children:[a.jsx(ey,{isDisabled:t,onClick:u=>{o(u),l()},value:n,aspectRatios:[{slug:"original",name:m("Original"),aspect:r},...c?s.map($S).filter(({ratio:u})=>u===1):[]]}),i?.length>0&&a.jsx(ey,{label:m("Theme"),isDisabled:t,onClick:u=>{o(u),l()},value:n,aspectRatios:i}),c&&a.jsx(ey,{label:m("Landscape"),isDisabled:t,onClick:u=>{o(u),l()},value:n,aspectRatios:s.map($S).filter(({ratio:u})=>u>1)}),c&&a.jsx(ey,{label:m("Portrait"),isDisabled:t,onClick:u=>{o(u),l()},value:n,aspectRatios:s.map($S).filter(({ratio:u})=>u<1)})]})})}var HY=!1,Kd,qT,ST,z4,O4,Ime,A4,CT,RT,WT,Dme,TT,ET,Fme,$me;function mr(){if(!HY){HY=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(TT=/\b(iPhone|iP[ao]d)/.exec(e),ET=/\b(iP[ao]d)/.exec(e),WT=/Android/i.exec(e),Fme=/FBAN\/\w+;/i.exec(e),$me=/Mobile/i.exec(e),Dme=!!/Win64/.exec(e),t){Kd=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Kd&&document&&document.documentMode&&(Kd=document.documentMode);var o=/(?:Trident\/(\d+.\d+))/.exec(e);Ime=o?parseFloat(o[1])+4:Kd,qT=t[2]?parseFloat(t[2]):NaN,ST=t[3]?parseFloat(t[3]):NaN,z4=t[4]?parseFloat(t[4]):NaN,z4?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),O4=t&&t[1]?parseFloat(t[1]):NaN):O4=NaN}else Kd=qT=ST=O4=z4=NaN;if(n){if(n[1]){var r=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);A4=r?parseFloat(r[1].replace("_",".")):!0}else A4=!1;CT=!!n[2],RT=!!n[3]}else A4=CT=RT=!1}}var BT={ie:function(){return mr()||Kd},ieCompatibilityMode:function(){return mr()||Ime>Kd},ie64:function(){return BT.ie()&&Dme},firefox:function(){return mr()||qT},opera:function(){return mr()||ST},webkit:function(){return mr()||z4},safari:function(){return BT.webkit()},chrome:function(){return mr()||O4},windows:function(){return mr()||CT},osx:function(){return mr()||A4},linux:function(){return mr()||RT},iphone:function(){return mr()||TT},mobile:function(){return mr()||TT||ET||WT||$me},nativeApp:function(){return mr()||Fme},android:function(){return mr()||WT},ipad:function(){return mr()||ET}},dRt=BT,ty=!!(typeof window<"u"&&window.document&&window.document.createElement),pRt={canUseDOM:ty,canUseWorkers:typeof Worker<"u",canUseEventListeners:ty&&!!(window.addEventListener||window.attachEvent),canUseViewport:ty&&!!window.screen,isInWorker:!ty},fRt=pRt,Vme=fRt,Hme;Vme.canUseDOM&&(Hme=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/** * Checks if an event is supported in the current execution environment. * * NOTE: This will not work correctly for non-generic events such as `change`, @@ -574,7 +574,7 @@ https://www.w3ctech.com/topic/2226`));let c=n(...i);return c.postcssPlugin=t,c.p border-left: 0; border-right: 0; } -`,RRt=1,WRt=3,TRt=function(e){Q_e(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.imageRef=O.createRef(),n.videoRef=O.createRef(),n.containerPosition={x:0,y:0},n.containerRef=null,n.styleRef=null,n.containerRect=null,n.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},n.dragStartPosition={x:0,y:0},n.dragStartCrop={x:0,y:0},n.gestureZoomStart=0,n.gestureRotationStart=0,n.isTouching=!1,n.lastPinchDistance=0,n.lastPinchRotation=0,n.rafDragTimeout=null,n.rafPinchTimeout=null,n.wheelTimer=null,n.currentDoc=typeof document<"u"?document:null,n.currentWindow=typeof window<"u"?window:null,n.resizeObserver=null,n.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},n.initResizeObserver=function(){if(!(typeof window.ResizeObserver>"u"||!n.containerRef)){var o=!0;n.resizeObserver=new window.ResizeObserver(function(r){if(o){o=!1;return}n.computeSizes()}),n.resizeObserver.observe(n.containerRef)}},n.preventZoomSafari=function(o){return o.preventDefault()},n.cleanEvents=function(){n.currentDoc&&(n.currentDoc.removeEventListener("mousemove",n.onMouseMove),n.currentDoc.removeEventListener("mouseup",n.onDragStopped),n.currentDoc.removeEventListener("touchmove",n.onTouchMove),n.currentDoc.removeEventListener("touchend",n.onDragStopped),n.currentDoc.removeEventListener("gesturemove",n.onGestureMove),n.currentDoc.removeEventListener("gestureend",n.onGestureEnd),n.currentDoc.removeEventListener("scroll",n.onScroll))},n.clearScrollEvent=function(){n.containerRef&&n.containerRef.removeEventListener("wheel",n.onWheel),n.wheelTimer&&clearTimeout(n.wheelTimer)},n.onMediaLoad=function(){var o=n.computeSizes();o&&(n.emitCropData(),n.setInitialCrop(o)),n.props.onMediaLoaded&&n.props.onMediaLoaded(n.mediaSize)},n.setInitialCrop=function(o){if(n.props.initialCroppedAreaPercentages){var r=wRt(n.props.initialCroppedAreaPercentages,n.mediaSize,n.props.rotation,o,n.props.minZoom,n.props.maxZoom),s=r.crop,i=r.zoom;n.props.onCropChange(s),n.props.onZoomChange&&n.props.onZoomChange(i)}else if(n.props.initialCroppedAreaPixels){var c=qRt(n.props.initialCroppedAreaPixels,n.mediaSize,n.props.rotation,o,n.props.minZoom,n.props.maxZoom),s=c.crop,i=c.zoom;n.props.onCropChange(s),n.props.onZoomChange&&n.props.onZoomChange(i)}},n.computeSizes=function(){var o,r,s,i,c,l,u=n.imageRef.current||n.videoRef.current;if(u&&n.containerRef){n.containerRect=n.containerRef.getBoundingClientRect(),n.saveContainerPosition();var d=n.containerRect.width/n.containerRect.height,p=((o=n.imageRef.current)===null||o===void 0?void 0:o.naturalWidth)||((r=n.videoRef.current)===null||r===void 0?void 0:r.videoWidth)||0,f=((s=n.imageRef.current)===null||s===void 0?void 0:s.naturalHeight)||((i=n.videoRef.current)===null||i===void 0?void 0:i.videoHeight)||0,b=u.offsetWidthh?{width:n.containerRect.height*h,height:n.containerRect.height}:{width:n.containerRect.width,height:n.containerRect.width/h};break;case"horizontal-cover":g={width:n.containerRect.width,height:n.containerRect.width/h};break;case"vertical-cover":g={width:n.containerRect.height*h,height:n.containerRect.height};break}else g={width:u.offsetWidth,height:u.offsetHeight};n.mediaSize=i1(i1({},g),{naturalWidth:p,naturalHeight:f}),n.props.setMediaSize&&n.props.setMediaSize(n.mediaSize);var z=n.props.cropSize?n.props.cropSize:ARt(n.mediaSize.width,n.mediaSize.height,n.containerRect.width,n.containerRect.height,n.props.aspect,n.props.rotation);return(((c=n.state.cropSize)===null||c===void 0?void 0:c.height)!==z.height||((l=n.state.cropSize)===null||l===void 0?void 0:l.width)!==z.width)&&n.props.onCropSizeChange&&n.props.onCropSizeChange(z),n.setState({cropSize:z},n.recomputeCropPosition),n.props.setCropSize&&n.props.setCropSize(z),z}},n.saveContainerPosition=function(){if(n.containerRef){var o=n.containerRef.getBoundingClientRect();n.containerPosition={x:o.left,y:o.top}}},n.onMouseDown=function(o){n.currentDoc&&(o.preventDefault(),n.currentDoc.addEventListener("mousemove",n.onMouseMove),n.currentDoc.addEventListener("mouseup",n.onDragStopped),n.saveContainerPosition(),n.onDragStart(t.getMousePoint(o)))},n.onMouseMove=function(o){return n.onDrag(t.getMousePoint(o))},n.onScroll=function(o){n.currentDoc&&(o.preventDefault(),n.saveContainerPosition())},n.onTouchStart=function(o){n.currentDoc&&(n.isTouching=!0,!(n.props.onTouchRequest&&!n.props.onTouchRequest(o))&&(n.currentDoc.addEventListener("touchmove",n.onTouchMove,{passive:!1}),n.currentDoc.addEventListener("touchend",n.onDragStopped),n.saveContainerPosition(),o.touches.length===2?n.onPinchStart(o):o.touches.length===1&&n.onDragStart(t.getTouchPoint(o.touches[0]))))},n.onTouchMove=function(o){o.preventDefault(),o.touches.length===2?n.onPinchMove(o):o.touches.length===1&&n.onDrag(t.getTouchPoint(o.touches[0]))},n.onGestureStart=function(o){n.currentDoc&&(o.preventDefault(),n.currentDoc.addEventListener("gesturechange",n.onGestureMove),n.currentDoc.addEventListener("gestureend",n.onGestureEnd),n.gestureZoomStart=n.props.zoom,n.gestureRotationStart=n.props.rotation)},n.onGestureMove=function(o){if(o.preventDefault(),!n.isTouching){var r=t.getMousePoint(o),s=n.gestureZoomStart-1+o.scale;if(n.setNewZoom(s,r,{shouldUpdatePosition:!0}),n.props.onRotationChange){var i=n.gestureRotationStart+o.rotation;n.props.onRotationChange(i)}}},n.onGestureEnd=function(o){n.cleanEvents()},n.onDragStart=function(o){var r,s,i=o.x,c=o.y;n.dragStartPosition={x:i,y:c},n.dragStartCrop=i1({},n.props.crop),(s=(r=n.props).onInteractionStart)===null||s===void 0||s.call(r)},n.onDrag=function(o){var r=o.x,s=o.y;n.currentWindow&&(n.rafDragTimeout&&n.currentWindow.cancelAnimationFrame(n.rafDragTimeout),n.rafDragTimeout=n.currentWindow.requestAnimationFrame(function(){if(n.state.cropSize&&!(r===void 0||s===void 0)){var i=r-n.dragStartPosition.x,c=s-n.dragStartPosition.y,l={x:n.dragStartCrop.x+i,y:n.dragStartCrop.y+c},u=n.props.restrictPosition?ny(l,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):l;n.props.onCropChange(u)}}))},n.onDragStopped=function(){var o,r;n.isTouching=!1,n.cleanEvents(),n.emitCropData(),(r=(o=n.props).onInteractionEnd)===null||r===void 0||r.call(o)},n.onWheel=function(o){if(n.currentWindow&&!(n.props.onWheelRequest&&!n.props.onWheelRequest(o))){o.preventDefault();var r=t.getMousePoint(o),s=ORt(o).pixelY,i=n.props.zoom-s*n.props.zoomSpeed/200;n.setNewZoom(i,r,{shouldUpdatePosition:!0}),n.state.hasWheelJustStarted||n.setState({hasWheelJustStarted:!0},function(){var c,l;return(l=(c=n.props).onInteractionStart)===null||l===void 0?void 0:l.call(c)}),n.wheelTimer&&clearTimeout(n.wheelTimer),n.wheelTimer=n.currentWindow.setTimeout(function(){return n.setState({hasWheelJustStarted:!1},function(){var c,l;return(l=(c=n.props).onInteractionEnd)===null||l===void 0?void 0:l.call(c)})},250)}},n.getPointOnContainer=function(o,r){var s=o.x,i=o.y;if(!n.containerRect)throw new Error("The Cropper is not mounted");return{x:n.containerRect.width/2-(s-r.x),y:n.containerRect.height/2-(i-r.y)}},n.getPointOnMedia=function(o){var r=o.x,s=o.y,i=n.props,c=i.crop,l=i.zoom;return{x:(r+c.x)/l,y:(s+c.y)/l}},n.setNewZoom=function(o,r,s){var i=s===void 0?{}:s,c=i.shouldUpdatePosition,l=c===void 0?!0:c;if(!(!n.state.cropSize||!n.props.onZoomChange)){var u=wk(o,n.props.minZoom,n.props.maxZoom);if(l){var d=n.getPointOnContainer(r,n.containerPosition),p=n.getPointOnMedia(d),f={x:p.x*u-d.x,y:p.y*u-d.y},b=n.props.restrictPosition?ny(f,n.mediaSize,n.state.cropSize,u,n.props.rotation):f;n.props.onCropChange(b)}n.props.onZoomChange(u)}},n.getCropData=function(){if(!n.state.cropSize)return null;var o=n.props.restrictPosition?ny(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop;return vRt(o,n.mediaSize,n.state.cropSize,n.getAspect(),n.props.zoom,n.props.rotation,n.props.restrictPosition)},n.emitCropData=function(){var o=n.getCropData();if(o){var r=o.croppedAreaPercentages,s=o.croppedAreaPixels;n.props.onCropComplete&&n.props.onCropComplete(r,s),n.props.onCropAreaChange&&n.props.onCropAreaChange(r,s)}},n.emitCropAreaChange=function(){var o=n.getCropData();if(o){var r=o.croppedAreaPercentages,s=o.croppedAreaPixels;n.props.onCropAreaChange&&n.props.onCropAreaChange(r,s)}},n.recomputeCropPosition=function(){if(n.state.cropSize){var o=n.props.restrictPosition?ny(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop;n.props.onCropChange(o),n.emitCropData()}},n}return t.prototype.componentDidMount=function(){!this.currentDoc||!this.currentWindow||(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),typeof window.ResizeObserver>"u"&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=CRt,this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef))},t.prototype.componentWillUnmount=function(){var n,o;!this.currentDoc||!this.currentWindow||(typeof window.ResizeObserver>"u"&&this.currentWindow.removeEventListener("resize",this.computeSizes),(n=this.resizeObserver)===null||n===void 0||n.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&((o=this.styleRef.parentNode)===null||o===void 0||o.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},t.prototype.componentDidUpdate=function(n){var o,r,s,i,c,l,u,d,p;n.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):n.aspect!==this.props.aspect?this.computeSizes():n.objectFit!==this.props.objectFit?this.computeSizes():n.zoom!==this.props.zoom?this.recomputeCropPosition():((o=n.cropSize)===null||o===void 0?void 0:o.height)!==((r=this.props.cropSize)===null||r===void 0?void 0:r.height)||((s=n.cropSize)===null||s===void 0?void 0:s.width)!==((i=this.props.cropSize)===null||i===void 0?void 0:i.width)?this.computeSizes():(((c=n.crop)===null||c===void 0?void 0:c.x)!==((l=this.props.crop)===null||l===void 0?void 0:l.x)||((u=n.crop)===null||u===void 0?void 0:u.y)!==((d=this.props.crop)===null||d===void 0?void 0:d.y))&&this.emitCropAreaChange(),n.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),n.video!==this.props.video&&((p=this.videoRef.current)===null||p===void 0||p.load());var f=this.getObjectFit();f!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:f},this.computeSizes)},t.prototype.getAspect=function(){var n=this.props,o=n.cropSize,r=n.aspect;return o?o.width/o.height:r},t.prototype.getObjectFit=function(){var n,o,r,s;if(this.props.objectFit==="cover"){var i=this.imageRef.current||this.videoRef.current;if(i&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var c=this.containerRect.width/this.containerRect.height,l=((n=this.imageRef.current)===null||n===void 0?void 0:n.naturalWidth)||((o=this.videoRef.current)===null||o===void 0?void 0:o.videoWidth)||0,u=((r=this.imageRef.current)===null||r===void 0?void 0:r.naturalHeight)||((s=this.videoRef.current)===null||s===void 0?void 0:s.videoHeight)||0,d=l/u;return d{p(v)},onCropComplete:v=>{f(v)},onZoomChange:v=>{b(v*100)}}),i&&a.jsx(u0,{})]});return a.jsxs(a.Fragment,{children:[g,x]})}function BRt(){const{isInProgress:e,zoom:t,setZoom:n}=lO();return a.jsx(B0,{contentClassName:"wp-block-image__zoom",popoverProps:jme,renderToggle:({isOpen:o,onToggle:r})=>a.jsx(bt,{icon:nw,label:m("Zoom"),onClick:r,"aria-expanded":o,disabled:e}),renderContent:()=>a.jsx(Ni,{paddingSize:"medium",children:a.jsx(T0,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:m("Zoom"),min:Nme,max:Lme,value:Math.round(t),onChange:n})})})}function NRt(){const{isInProgress:e,rotateClockwise:t}=lO();return a.jsx(bt,{icon:NZe,label:m("Rotate"),onClick:t,disabled:e})}function LRt(){const{isInProgress:e,apply:t,cancel:n}=lO();return a.jsxs(a.Fragment,{children:[a.jsx(bt,{onClick:t,disabled:e,children:m("Apply")}),a.jsx(bt,{onClick:n,children:m("Cancel")})]})}function Xme({id:e,url:t,width:n,height:o,naturalHeight:r,naturalWidth:s,onSaveImage:i,onFinishEditing:c,borderProps:l}){return a.jsxs(cRt,{id:e,url:t,naturalWidth:s,naturalHeight:r,onSaveImage:i,onFinishEditing:c,children:[a.jsx(ERt,{borderProps:l,url:t,width:n,height:o,naturalHeight:r,naturalWidth:s}),a.jsxs(Ie,{children:[a.jsxs(c0,{children:[a.jsx(BRt,{}),a.jsx(Ko,{children:u=>a.jsx(uRt,{toggleProps:u})}),a.jsx(NRt,{})]}),a.jsx(c0,{children:a.jsx(LRt,{})})]})]})}function jRt(e,t,n,o,r){var s,i;const[c,l]=O.useState((s=t??o)!==null&&s!==void 0?s:""),[u,d]=O.useState((i=e??n)!==null&&i!==void 0?i:"");return O.useEffect(()=>{t===void 0&&o!==void 0&&l(o),e===void 0&&n!==void 0&&d(n)},[o,n]),O.useEffect(()=>{t!==void 0&&Number.parseInt(t)!==Number.parseInt(c)&&l(t),e!==void 0&&Number.parseInt(e)!==Number.parseInt(u)&&d(e)},[t,e]),{currentHeight:u,currentWidth:c,updateDimension:(b,h)=>{const g=h===""?void 0:parseInt(h,10);b==="width"?l(g):d(g),r({[b]:g})},updateDimensions:(b,h)=>{d(b??n),l(h??o),r({height:b,width:h})}}}const PRt=[25,50,75,100],IRt=()=>{};function DRt({imageSizeHelp:e,imageWidth:t,imageHeight:n,imageSizeOptions:o=[],isResizable:r=!0,slug:s,width:i,height:c,onChange:l,onChangeImage:u=IRt}){const{currentHeight:d,currentWidth:p,updateDimension:f,updateDimensions:b}=jRt(c,i,n,t,l);return a.jsxs(a.Fragment,{children:[o&&o.length>0&&a.jsx(i0,{__nextHasNoMarginBottom:!0,label:m("Resolution"),value:s,options:o,onChange:u,help:e,size:"__unstable-large"}),r&&a.jsxs("div",{className:"block-editor-image-size-control",children:[a.jsxs(Je,{align:"baseline",spacing:"3",children:[a.jsx(T1,{className:"block-editor-image-size-control__width",label:m("Width"),value:p,min:1,onChange:h=>f("width",h),size:"__unstable-large"}),a.jsx(T1,{className:"block-editor-image-size-control__height",label:m("Height"),value:d,min:1,onChange:h=>f("height",h),size:"__unstable-large"})]}),a.jsxs(Je,{children:[a.jsx(Bh,{"aria-label":m("Image size presets"),children:PRt.map(h=>{const g=Math.round(t*(h/100)),z=Math.round(n*(h/100)),y=p===g&&d===z;return a.jsxs(fe,{size:"small",variant:y?"primary":void 0,isPressed:y,onClick:()=>b(z,g),children:[h,"%"]},h)})}),a.jsx(fe,{size:"small",onClick:()=>b(),children:m("Reset")})]})]})]})}const JY={left:Y_,center:Z_,right:Q_,"space-between":h7,stretch:m7};function FRt({allowedControls:e=["left","center","right","space-between"],isCollapsed:t=!0,onChange:n,value:o,popoverProps:r,isToolbar:s}){const i=p=>{n(p===o?void 0:p)},c=o?JY[o]:JY.left,l=[{name:"left",icon:Y_,title:m("Justify items left"),isActive:o==="left",onClick:()=>i("left")},{name:"center",icon:Z_,title:m("Justify items center"),isActive:o==="center",onClick:()=>i("center")},{name:"right",icon:Q_,title:m("Justify items right"),isActive:o==="right",onClick:()=>i("right")},{name:"space-between",icon:h7,title:m("Space between items"),isActive:o==="space-between",onClick:()=>i("space-between")},{name:"stretch",icon:m7,title:m("Stretch items"),isActive:o==="stretch",onClick:()=>i("stretch")}],u=s?c0:_l,d=s?{isCollapsed:t}:{};return a.jsx(u,{icon:c,popoverProps:r,label:m("Change items justification"),controls:l.filter(p=>e.includes(p.name)),...d})}const Gme=e=>a.jsx(FRt,{...e,isToolbar:!1});function $Rt(e={},t){if(t.type==="SET_PREFERENCE_DEFAULTS"){const{scope:n,defaults:o}=t;return{...e,[n]:{...e[n],...o}}}return e}function VRt(e){let t;return(n,o)=>{if(o.type==="SET_PERSISTENCE_LAYER"){const{persistenceLayer:s,persistedData:i}=o;return t=s,i}const r=e(n,o);return o.type==="SET_PREFERENCE_VALUE"&&t?.set(r),r}}const HRt=VRt((e={},t)=>{if(t.type==="SET_PREFERENCE_VALUE"){const{scope:n,name:o,value:r}=t;return{...e,[n]:{...e[n],[o]:r}}}return e}),URt=zo({defaults:$Rt,preferences:HRt});function XRt(e,t){return function({select:n,dispatch:o}){const r=n.get(e,t);o.set(e,t,!r)}}function GRt(e,t,n){return{type:"SET_PREFERENCE_VALUE",scope:e,name:t,value:n}}function KRt(e,t){return{type:"SET_PREFERENCE_DEFAULTS",scope:e,defaults:t}}async function YRt(e){const t=await e.get();return{type:"SET_PERSISTENCE_LAYER",persistenceLayer:e,persistedData:t}}const ZRt=Object.freeze(Object.defineProperty({__proto__:null,set:GRt,setDefaults:KRt,setPersistenceLayer:YRt,toggle:XRt},Symbol.toStringTag,{value:"Module"})),QRt=e=>(t,n,o)=>["allowRightClickOverrides","distractionFree","editorMode","fixedToolbar","focusMode","hiddenBlockTypes","inactivePanels","keepCaretInsideBlock","mostUsedBlocks","openPanels","showBlockBreadcrumbs","showIconLabels","showListViewByDefault","isPublishSidebarEnabled","isComplementaryAreaVisible","pinnedItems"].includes(o)&&["core/edit-post","core/edit-site"].includes(n)?(Re(`wp.data.select( 'core/preferences' ).get( '${n}', '${o}' )`,{since:"6.5",alternative:`wp.data.select( 'core/preferences' ).get( 'core', '${o}' )`}),e(t,"core",o)):e(t,n,o),JRt=QRt((e,t,n)=>{const o=e.preferences[t]?.[n];return o!==void 0?o:e.defaults[t]?.[n]}),e8t=Object.freeze(Object.defineProperty({__proto__:null,get:JRt},Symbol.toStringTag,{value:"Module"})),t8t="core/preferences",Qe=er(t8t,{reducer:URt,actions:ZRt,selectors:e8t});Qs(Qe);function VS({scope:e,name:t,label:n,info:o,messageActivated:r,messageDeactivated:s,shortcut:i,handleToggling:c=!0,onToggle:l=()=>null,disabled:u=!1}){const d=D(b=>!!b(Qe).get(e,t),[e,t]),{toggle:p}=ae(Qe),f=()=>{if(d){const b=s||le(m("Preference deactivated - %s"),n);At(b)}else{const b=r||le(m("Preference activated - %s"),n);At(b)}};return a.jsx(tt,{icon:d&&no,isSelected:d,onClick:()=>{l(),c&&p(e,t),f()},role:"menuitemcheckbox",info:o,shortcut:i,disabled:u,children:n})}function Kme({help:e,label:t,isChecked:n,onChange:o,children:r}){return a.jsxs("div",{className:"preference-base-option",children:[a.jsx(Be,{__nextHasNoMarginBottom:!0,help:e,label:t,checked:n,onChange:o}),r]})}function n8t(e){const{scope:t,featureName:n,onToggle:o=()=>{},...r}=e,s=D(l=>!!l(Qe).get(t,n),[t,n]),{toggle:i}=ae(Qe),c=()=>{o(),i(t,n)};return a.jsx(Kme,{onChange:c,isChecked:s,...r})}function o8t({closeModal:e,children:t}){return a.jsx(fn,{className:"preferences-modal",title:m("Preferences"),onRequestClose:e,children:t})}const r8t=({description:e,title:t,children:n})=>a.jsxs("fieldset",{className:"preferences-modal__section",children:[a.jsxs("legend",{className:"preferences-modal__section-legend",children:[a.jsx("h2",{className:"preferences-modal__section-title",children:t}),e&&a.jsx("p",{className:"preferences-modal__section-description",children:e})]}),a.jsx("div",{className:"preferences-modal__section-content",children:n})]}),{lock:s8t,unlock:i8t}=ar("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/preferences"),{Tabs:ry}=i8t(L0),eZ="preferences-menu";function a8t({sections:e}){const t=g0("medium"),[n,o]=O.useState(eZ),{tabs:r,sectionsContentMap:s}=O.useMemo(()=>{let c={tabs:[],sectionsContentMap:{}};return e.length&&(c=e.reduce((l,{name:u,tabLabel:d,content:p})=>(l.tabs.push({name:u,title:d}),l.sectionsContentMap[u]=p,l),{tabs:[],sectionsContentMap:{}})),c},[e]);let i;return t?i=a.jsx("div",{className:"preferences__tabs",children:a.jsxs(ry,{defaultTabId:n!==eZ?n:void 0,onSelect:o,orientation:"vertical",children:[a.jsx(ry.TabList,{className:"preferences__tabs-tablist",children:r.map(c=>a.jsx(ry.Tab,{tabId:c.name,className:"preferences__tabs-tab",children:c.title},c.name))}),r.map(c=>a.jsx(ry.TabPanel,{tabId:c.name,className:"preferences__tabs-tabpanel",focusable:!1,children:s[c.name]||null},c.name))]})}):i=a.jsxs(nfe,{initialPath:"/",className:"preferences__provider",children:[a.jsx(s5,{path:"/",children:a.jsx(pG,{isBorderless:!0,size:"small",children:a.jsx(fG,{children:a.jsx(Yu,{children:r.map(c=>a.jsx(rfe,{path:c.name,as:fw,isAction:!0,children:a.jsxs(Je,{justify:"space-between",children:[a.jsx(Ht,{children:a.jsx(Ho,{children:c.title})}),a.jsx(Ht,{children:a.jsx(t0,{icon:ft()?Fa:Ei})})]})},c.name))})})})}),e.length&&e.map(c=>a.jsx(s5,{path:c.name,children:a.jsxs(pG,{isBorderless:!0,size:"large",children:[a.jsxs(lrt,{isBorderless:!1,justify:"left",size:"small",gap:"6",children:[a.jsx(sfe,{icon:ft()?Ei:Fa,label:m("Back")}),a.jsx(l0,{size:"16",children:c.tabLabel})]}),a.jsx(fG,{children:c.content})]})},`${c.name}-menu`))]}),i}const yd={};s8t(yd,{PreferenceBaseOption:Kme,PreferenceToggleControl:n8t,PreferencesModal:o8t,PreferencesModalSection:r8t,PreferencesModalTabs:a8t});function Yme({children:e,settingsOpen:t,setSettingsOpen:n}){const o=Zs(),r=o?O.Fragment:Lp,s=o?"div":Hn.div,c=`link-control-settings-drawer-${He(Yme)}`;return a.jsxs(a.Fragment,{children:[a.jsx(fe,{__next40pxDefaultSize:!1,className:"block-editor-link-control__drawer-toggle","aria-expanded":t,onClick:()=>n(!t),icon:ft()?X_:jp,"aria-controls":c,children:Oe("Advanced","Additional link settings")}),a.jsx(r,{children:t&&a.jsx(s,{className:"block-editor-link-control__drawer",hidden:!t,id:c,initial:"collapsed",animate:"open",exit:"collapsed",variants:{open:{opacity:1,height:"auto"},collapsed:{opacity:0,height:0}},transition:{duration:.1},children:a.jsx("div",{className:"block-editor-link-control__drawer-inner",children:e})})})]})}const c8t=({searchTerm:e,onClick:t,itemProps:n,buttonText:o})=>{if(!e)return null;let r;return o?r=typeof o=="function"?o(e):o:r=z1(le(m("Create: %s"),e),{mark:a.jsx("mark",{})}),a.jsx(tt,{...n,iconPosition:"left",icon:is,className:"block-editor-link-control__search-item",onClick:t,children:r})},tZ={post:y7,page:Ja,post_tag:x7,category:d7,attachment:b7};function l8t({isURL:e,suggestion:t}){let n=null;return e?n=sle:t.type in tZ&&(n=tZ[t.type],t.type==="page"&&(t.isFrontPage&&(n=ile),t.isBlogHome&&(n=ow))),n?a.jsx(t0,{className:"block-editor-link-control__search-item-icon",icon:n}):null}function u8t(e){return e?.trim()?.length?e?.replace(/^\/?/,"/"):e}function d8t(e){return e?.trim()?.length?e?.replace(/\/$/,""):e}const p8t=(e,...t)=>(...n)=>e(...n,...t),f8t=e=>t=>t==null||t!==t?e:t;function b8t(e){return e&&Jl(Iz,rf,f8t(""),p8t(Dz,24),d8t,u8t)(e)}const h8t=({itemProps:e,suggestion:t,searchTerm:n,onClick:o,isURL:r=!1,shouldShowType:s=!1})=>{const i=r?m("Press ENTER to add this link"):b8t(t.url);return a.jsx(tt,{...e,info:i,iconPosition:"left",icon:a.jsx(l8t,{suggestion:t,isURL:r}),onClick:o,shortcut:s&&m8t(t),className:"block-editor-link-control__search-item",children:a.jsx(l2t,{text:Rr(t.title),highlight:n})})};function m8t(e){return e.isFrontPage?"front page":e.isBlogHome?"blog home":e.type==="post_tag"?"tag":e.type}const C5="__CREATE__",Zme="tel",Qme="link",Jme="mailto",eMe="internal",nZ=[Qme,Jme,Zme,eMe],tMe=[{id:"opensInNewTab",title:m("Open in new tab")}];function M8t({instanceId:e,withCreateSuggestion:t,currentInputValue:n,handleSuggestionClick:o,suggestionsListProps:r,buildSuggestionItemProps:s,suggestions:i,selectedSuggestion:c,isLoading:l,isInitialSuggestions:u,createSuggestionButtonText:d,suggestionsQuery:p}){const f=$("block-editor-link-control__search-results",{"is-loading":l}),b=i.length===1&&nZ.includes(i[0].type),h=t&&!b&&!u,g=!p?.type,z=`block-editor-link-control-search-results-label-${e}`,y=u?m("Suggestions"):le(m('Search results for "%s"'),n),x=a.jsx(Kt,{id:z,children:y});return a.jsxs("div",{className:"block-editor-link-control__search-results-wrapper",children:[x,a.jsx("div",{...r,className:f,"aria-labelledby":z,children:a.jsx(Yt,{children:i.map((v,M)=>h&&C5===v.type?a.jsx(c8t,{searchTerm:n,buttonText:d,onClick:()=>o(v),itemProps:s(v,M),isSelected:M===c},v.type):C5===v.type?null:a.jsx(h8t,{itemProps:s(v,M),suggestion:v,index:M,onClick:()=>{o(v)},isSelected:M===c,isURL:nZ.includes(v.type),searchTerm:n,shouldShowType:g,isFrontPage:v?.isFrontPage,isBlogHome:v?.isBlogHome},`${v.id}-${v.type}`))})})]})}const g8t=()=>Promise.resolve([]),z8t=e=>{let t=Qme;const n=zx(e)||"";return n.includes("mailto")&&(t=Jme),n.includes("tel")&&(t=Zme),e?.startsWith("#")&&(t=eMe),Promise.resolve([{id:e,title:e,url:t==="URL"?sf(e):e,type:t}])},O8t=async(e,t,n,o,r,s)=>{const{isInitialSuggestions:i}=t,c=await n(e,t);return c.map(l=>Number(l.id)===r?(l.isFrontPage=!0,l):(Number(l.id)===s&&(l.isBlogHome=!0),l)),i||rP(e)||!o?c:c.concat({title:e,url:e,type:C5})};function A8t(e,t,n){const{fetchSearchSuggestions:o,pageOnFront:r,pageForPosts:s}=D(c=>{const{getSettings:l}=c(F);return{pageOnFront:l().pageOnFront,pageForPosts:l().pageForPosts,fetchSearchSuggestions:l().__experimentalFetchLinkSuggestions}},[]),i=t?z8t:g8t;return O.useCallback((c,{isInitialSuggestions:l})=>rP(c)?i(c):O8t(c,{...e,isInitialSuggestions:l},o,n,r,s),[i,o,r,s,e,n])}const y8t=()=>Promise.resolve([]),HS=()=>{},nMe=O.forwardRef(({value:e,children:t,currentLink:n={},className:o=null,placeholder:r=null,withCreateSuggestion:s=!1,onCreateSuggestion:i=HS,onChange:c=HS,onSelect:l=HS,showSuggestions:u=!0,renderSuggestions:d=v=>a.jsx(M8t,{...v}),fetchSuggestions:p=null,allowDirectEntry:f=!0,showInitialSuggestions:b=!1,suggestionsQuery:h={},withURLSuggestion:g=!0,createSuggestionButtonText:z,hideLabelFromVision:y=!1},x)=>{const v=A8t(h,f,s),M=u?p||v:y8t,A=He(nMe),[_,w]=O.useState(),k=(C,T)=>{c(C),w(T)},q=C=>d({...C,instanceId:A,withCreateSuggestion:s,createSuggestionButtonText:z,suggestionsQuery:h,handleSuggestionClick:T=>{C.handleSuggestionClick&&C.handleSuggestionClick(T),S(T)}}),S=async C=>{let T=C;if(C5===C.type){try{T=await i(C.title),T?.url&&l(T)}catch{}return}if(f||T&&Object.keys(T).length>=1){const{id:W,url:B,...N}=n??{};l({...N,...T},T)}};return a.jsxs("div",{className:"block-editor-link-control__search-input-container",children:[a.jsx(TP,{disableSuggestions:n?.url===e,label:m("Link"),hideLabelFromVision:y,className:o,value:e,onChange:k,placeholder:r??m("Search or type URL"),__experimentalRenderSuggestions:u?q:null,__experimentalFetchLinkSuggestions:M,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:b,onSubmit:(C,T)=>{const W=C||_;!W&&!e?.trim()?.length?T.preventDefault():S(W||{url:e})},ref:x}),t]})}),{Slot:v8t,Fill:x8t}=_0("BlockEditorLinkControlViewer");function _8t(e,t){switch(t.type){case"RESOLVED":return{...e,isFetching:!1,richData:t.richData};case"ERROR":return{...e,isFetching:!1,richData:null};case"LOADING":return{...e,isFetching:!0};default:throw new Error(`Unexpected action type ${t.type}`)}}function w8t(e){const[t,n]=O.useReducer(_8t,{richData:null,isFetching:!1}),{fetchRichUrlData:o}=D(r=>{const{getSettings:s}=r(F);return{fetchRichUrlData:s().__experimentalFetchRichUrlData}},[]);return O.useEffect(()=>{if(e?.length&&o&&typeof AbortController<"u"){n({type:"LOADING"});const r=new window.AbortController,s=r.signal;return o(e,{signal:s}).then(i=>{n({type:"RESOLVED",richData:i})}).catch(()=>{s.aborted||n({type:"ERROR"})}),()=>{r.abort()}}},[e]),t}function k8t(e){return e.replace(/^[a-z\-.\+]+[0-9]*:(\/\/)?/i,"").replace(/^www\./i,"")}function q8t({value:e,onEditClick:t,hasRichPreviews:n=!1,hasUnlinkControl:o=!1,onRemove:r}){const s=D(y=>y(Qe).get("core","showIconLabels"),[]),i=n?e?.url:null,{richData:c,isFetching:l}=w8t(i),u=c&&Object.keys(c).length,d=e&&Dz(Iz(e.url),24)||"",p=!e?.url?.length,f=!p&&Rr(c?.title||e?.title||d),b=!e?.url||k8t(f)===d;let h;c?.icon?h=a.jsx("img",{src:c?.icon,alt:""}):p?h=a.jsx(t0,{icon:nZe,size:32}):h=a.jsx(t0,{icon:sle});const{createNotice:g}=ae(Ze),z=af(e.url,()=>{g("info",m("Link copied to clipboard."),{isDismissible:!0,type:"snackbar"})});return a.jsx("div",{"aria-label":m("Currently selected"),className:$("block-editor-link-control__search-item",{"is-current":!0,"is-rich":u,"is-fetching":!!l,"is-preview":!0,"is-error":p,"is-url-title":f===d}),children:a.jsxs("div",{className:"block-editor-link-control__search-item-top",children:[a.jsxs("span",{className:"block-editor-link-control__search-item-header",children:[a.jsx("span",{className:$("block-editor-link-control__search-item-icon",{"is-image":c?.icon}),children:h}),a.jsx("span",{className:"block-editor-link-control__search-item-details",children:p?a.jsx("span",{className:"block-editor-link-control__search-item-error-notice",children:m("Link is empty")}):a.jsxs(a.Fragment,{children:[a.jsx(S1,{className:"block-editor-link-control__search-item-title",href:e.url,children:a.jsx(Ho,{numberOfLines:1,children:f})}),!b&&a.jsx("span",{className:"block-editor-link-control__search-item-info",children:a.jsx(Ho,{numberOfLines:1,children:d})})]})})]}),a.jsx(fe,{icon:nl,label:m("Edit link"),onClick:t,size:"compact"}),o&&a.jsx(fe,{icon:Xu,label:m("Remove link"),onClick:r,size:"compact"}),a.jsx(fe,{icon:Gce,label:le(m("Copy link%s"),p||s?"":": "+e.url),ref:z,accessibleWhenDisabled:!0,disabled:p,size:"compact"}),a.jsx(v8t,{fillProps:e})]})})}const S8t=()=>{},C8t=({value:e,onChange:t=S8t,settings:n})=>{if(!n||!n.length)return null;const o=s=>i=>{t({...e,[s.id]:i})},r=n.map(s=>a.jsx(Bo,{__nextHasNoMarginBottom:!0,className:"block-editor-link-control__setting",label:s.title,onChange:o(s),checked:e?!!e[s.id]:!1,help:s?.help},s.id));return a.jsxs("fieldset",{className:"block-editor-link-control__settings",children:[a.jsx(Kt,{as:"legend",children:m("Currently selected link settings")}),r]})};function R8t(e){const t=O.useRef(),[n,o]=O.useState(!1),[r,s]=O.useState(null),i=async function(c){o(!0),s(null);try{return t.current=W8t(Promise.resolve(e(c))),await t.current.promise}catch(l){if(l&&l.isCanceled)return;throw s(l.message||m("An unknown error occurred during creation. Please try again.")),l}finally{o(!1)}};return O.useEffect(()=>()=>{t.current&&t.current.cancel()},[]),{createPage:i,isCreatingPage:n,errorMessage:r}}const W8t=e=>{let t=!1;return{promise:new Promise((o,r)=>{e.then(s=>t?r({isCanceled:!0}):o(s),s=>r(t?{isCanceled:!0}:s))}),cancel(){t=!0}}};var T8t=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var o,r,s;if(Array.isArray(t)){if(o=t.length,o!=n.length)return!1;for(r=o;r--!==0;)if(!e(t[r],n[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(s=Object.keys(t),o=s.length,o!==Object.keys(n).length)return!1;for(r=o;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,s[r]))return!1;for(r=o;r--!==0;){var i=s[r];if(!e(t[i],n[i]))return!1}return!0}return t!==t&&n!==n};const oMe=yo(T8t);function E8t(e){const[t,n]=O.useState(e||{}),[o,r]=O.useState(e);return oMe(e,o)||(r(e),n(e)),[t,n,l=>{n({...t,url:l})},l=>{n({...t,title:l})},l=>u=>{const d=Object.keys(u).reduce((p,f)=>(l.includes(f)&&(p[f]=u[f]),p),{});n({...t,...d})}]}const US=()=>{},oZ="core/block-editor",rZ="linkControlSettingsDrawer";function Va({searchInputPlaceholder:e,value:t,settings:n=tMe,onChange:o=US,onRemove:r,onCancel:s,noDirectEntry:i=!1,showSuggestions:c=!0,showInitialSuggestions:l,forceIsEditingLink:u,createSuggestion:d,withCreateSuggestion:p,inputValue:f="",suggestionsQuery:b={},noURLSuggestion:h=!1,createSuggestionButtonText:g,hasRichPreviews:z=!1,hasTextControl:y=!1,renderControlBottom:x=null}){p===void 0&&d&&(p=!0);const[v,M]=O.useState(!1),{advancedSettingsPreference:A}=D(R=>{var j;return{advancedSettingsPreference:(j=R(Qe).get(oZ,rZ))!==null&&j!==void 0?j:!1}},[]),{set:_}=ae(Qe),w=R=>{_&&_(oZ,rZ,R),M(R)},k=A||v,q=O.useRef(!0),S=O.useRef(),C=O.useRef(),T=O.useRef(!1),W=n.map(({id:R})=>R),[B,N,E,L,I]=E8t(t),P=t&&!J0e(B,t),[H,U]=O.useState(u!==void 0?u:!t||!t.url),{createPage:X,isCreatingPage:Z,errorMessage:ne}=R8t(d);O.useEffect(()=>{u!==void 0&&U(u)},[u]),O.useEffect(()=>{if(q.current)return;(Nn.focusable.find(S.current)[0]||S.current).focus(),T.current=!1},[H,Z]),O.useEffect(()=>(q.current=!1,()=>{q.current=!0}),[]);const oe=t?.url?.trim()?.length>0,Y=()=>{T.current=!!S.current?.contains(S.current.ownerDocument.activeElement),U(!1)},ee=R=>{const j=Object.keys(R).reduce((V,de)=>(W.includes(de)||(V[de]=R[de]),V),{});o({...B,...j,title:B?.title||R?.title}),Y()},ie=()=>{P&&o({...t,...B,url:xe}),Y()},se=R=>{const{keyCode:j}=R;j===y1&&!K&&(R.preventDefault(),ie())},be=()=>{N(t)},ye=R=>{R.preventDefault(),R.stopPropagation(),be(),oe?Y():r?.(),s?.()},xe=f||B?.url||"",K=!xe?.trim()?.length,pe=r&&t&&!H&&!Z,G=H&&oe,re=oe&&y,Me=(H||!t)&&!Z,he=!P||K,Q=!!n?.length&&H&&oe;return a.jsxs("div",{tabIndex:-1,ref:S,className:"block-editor-link-control",children:[Z&&a.jsxs("div",{className:"block-editor-link-control__loading",children:[a.jsx(u0,{})," ",m("Creating"),"…"]}),Me&&a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:$({"block-editor-link-control__search-input-wrapper":!0,"has-text-control":re,"has-actions":G}),children:[re&&a.jsx($t,{__nextHasNoMarginBottom:!0,ref:C,className:"block-editor-link-control__field block-editor-link-control__text-content",label:m("Text"),value:B?.title,onChange:L,onKeyDown:se,size:"__unstable-large"}),a.jsx(nMe,{currentLink:t,className:"block-editor-link-control__field block-editor-link-control__search-input",placeholder:e,value:xe,withCreateSuggestion:p,onCreateSuggestion:X,onChange:E,onSelect:ee,showInitialSuggestions:l,allowDirectEntry:!i,showSuggestions:c,suggestionsQuery:b,withURLSuggestion:!h,createSuggestionButtonText:g,hideLabelFromVision:!re}),!G&&a.jsx("div",{className:"block-editor-link-control__search-enter",children:a.jsx(fe,{__next40pxDefaultSize:!1,onClick:he?US:ie,label:m("Submit"),icon:J_,className:"block-editor-link-control__search-submit","aria-disabled":he})})]}),ne&&a.jsx($s,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1,children:ne})]}),t&&!H&&!Z&&a.jsx(q8t,{value:t,onEditClick:()=>U(!0),hasRichPreviews:z,hasUnlinkControl:pe,onRemove:()=>{r(),U(!0)}},t?.url),Q&&a.jsx("div",{className:"block-editor-link-control__tools",children:!K&&a.jsx(Yme,{settingsOpen:k,setSettingsOpen:w,children:a.jsx(C8t,{value:B,settings:n,onChange:I(W)})})}),G&&a.jsxs(Je,{justify:"right",className:"block-editor-link-control__search-actions",children:[a.jsx(fe,{__next40pxDefaultSize:!1,variant:"tertiary",onClick:ye,children:m("Cancel")}),a.jsx(fe,{__next40pxDefaultSize:!1,variant:"primary",onClick:he?US:ie,className:"block-editor-link-control__search-submit","aria-disabled":he,children:m("Save")})]}),!Z&&x&&x()]})}Va.ViewerFill=x8t;Va.DEFAULT_LINK_SETTINGS=tMe;const sy=1.5,sZ=.01,iZ=10,rMe="";function B8t(e){return e!==void 0&&e!==rMe}const N8t=({__next40pxDefaultSize:e=!1,value:t,onChange:n,__unstableInputWidth:o="60px",...r})=>{const s=B8t(t),i=(d,p)=>{if(s)return d;const f=sZ*iZ;switch(`${d}`){case`${f}`:return sy+f;case"0":return p?d:sy-f;case"":return sy;default:return d}},c=(d,p)=>{const f=["insertText","insertFromPaste"].includes(p.payload.event.nativeEvent?.inputType),b=i(d.value,f);return{...d,value:b}},l=s?t:rMe,u=(d,{event:p})=>{if(d===""){n();return}if(p.type==="click"){n(i(`${d}`,!1));return}n(`${d}`)};return a.jsx("div",{className:"block-editor-line-height-control",children:a.jsx(T1,{...r,__next40pxDefaultSize:e,__unstableInputWidth:o,__unstableStateReducer:c,onChange:u,label:m("Line height"),placeholder:sy,step:sZ,spinFactor:iZ,value:l,min:0,spinControls:"custom"})})},L8t=()=>{};let j8t=0;const P8t=({mediaURL:e,mediaId:t,mediaIds:n,allowedTypes:o,accept:r,onError:s,onSelect:i,onSelectURL:c,onReset:l,onToggleFeaturedImage:u,useFeaturedImage:d,onFilesUpload:p=L8t,name:f=m("Replace"),createNotice:b,removeNotice:h,children:g,multiple:z=!1,addToGallery:y,handleUpload:x=!0,popoverProps:v})=>{const M=D(B=>B(F).getSettings().mediaUpload,[]),A=!!M,_=O.useRef(),w=`block-editor/media-replace-flow/error-notice/${++j8t}`,k=B=>{const N=Rr(B);if(s){s(N);return}setTimeout(()=>{b("error",N,{speak:!0,id:w,isDismissible:!0})},1e3)},q=(B,N)=>{d&&u&&u(),N(),i(B),At(m("The media file has been replaced")),h(w)},S=(B,N)=>{const E=B.target.files;if(!x)return N(),i(E);p(E),M({allowedTypes:o,filesList:E,onFileChange:([L])=>{q(L,N)},onError:k})},C=B=>{B.keyCode===Do&&(B.preventDefault(),B.target.click())},W=z&&(!o||o.length===0?!1:o.every(B=>B==="image"||B.startsWith("image/")));return a.jsx(B0,{popoverProps:v,contentClassName:"block-editor-media-replace-flow__options",renderToggle:({isOpen:B,onToggle:N})=>a.jsx(bt,{ref:_,"aria-expanded":B,"aria-haspopup":"true",onClick:N,onKeyDown:C,children:f}),renderContent:({onClose:B})=>a.jsxs(a.Fragment,{children:[a.jsxs(xf,{className:"block-editor-media-replace-flow__media-upload-menu",children:[a.jsxs(cl,{children:[a.jsx(Od,{gallery:W,addToGallery:y,multiple:z,value:z?n:t,onSelect:N=>q(N,B),allowedTypes:o,render:({open:N})=>a.jsx(tt,{icon:g7,onClick:N,children:m("Open Media Library")})}),a.jsx(r5,{onChange:N=>{S(N,B)},accept:r,multiple:!!z,render:({openFileDialog:N})=>a.jsx(tt,{icon:Wh,onClick:()=>{N()},children:m("Upload")})})]}),u&&a.jsx(tt,{icon:Mle,onClick:u,isPressed:d,children:m("Use featured image")}),e&&l&&a.jsx(tt,{onClick:()=>{l(),B()},children:m("Reset")}),typeof g=="function"?g({onClose:B}):g]}),c&&a.jsxs("form",{className:$("block-editor-media-flow__url-input",{"has-siblings":A||u}),children:[a.jsx("span",{className:"block-editor-media-replace-flow__image-url-label",children:m("Current media URL:")}),a.jsx(Va,{value:{url:e},settings:[],showSuggestions:!1,onChange:({url:N})=>{c(N),_.current.focus()}})]})]})})},rc=v0([Fi(e=>{const{createNotice:t,removeNotice:n}=e(Ze);return{createNotice:t,removeNotice:n}}),gd("editor.MediaReplaceFlow")])(P8t);function I8t({url:e,urlLabel:t,className:n}){const o=$(n,"block-editor-url-popover__link-viewer-url");return e?a.jsx(S1,{className:o,href:e,children:t||Dz(Iz(e))}):a.jsx("span",{className:o})}function D8t({className:e,linkClassName:t,onEditLinkClick:n,url:o,urlLabel:r,...s}){return a.jsxs("div",{className:$("block-editor-url-popover__link-viewer",e),...s,children:[a.jsx(I8t,{url:o,urlLabel:r,className:t}),n&&a.jsx(fe,{icon:nl,label:m("Edit"),onClick:n,size:"compact"})]})}function sMe(e){return typeof e=="function"}class F8t extends O.Component{constructor(t){super(t),this.onChange=this.onChange.bind(this),this.onFocus=this.onFocus.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.selectLink=this.selectLink.bind(this),this.handleOnClick=this.handleOnClick.bind(this),this.bindSuggestionNode=this.bindSuggestionNode.bind(this),this.autocompleteRef=t.autocompleteRef||O.createRef(),this.inputRef=O.createRef(),this.updateSuggestions=jr(this.updateSuggestions.bind(this),200),this.suggestionNodes=[],this.suggestionsRequest=null,this.state={suggestions:[],showSuggestions:!1,suggestionsValue:null,selectedSuggestion:null,suggestionsListboxId:"",suggestionOptionIdPrefix:""}}componentDidUpdate(t){const{showSuggestions:n,selectedSuggestion:o}=this.state,{value:r,__experimentalShowInitialSuggestions:s=!1}=this.props;n&&o!==null&&this.suggestionNodes[o]&&this.suggestionNodes[o].scrollIntoView({behavior:"instant",block:"nearest",inline:"nearest"}),t.value!==r&&!this.props.disableSuggestions&&(r?.length?this.updateSuggestions(r):s&&this.updateSuggestions())}componentDidMount(){this.shouldShowInitialSuggestions()&&this.updateSuggestions()}componentWillUnmount(){this.suggestionsRequest?.cancel?.(),this.suggestionsRequest=null}bindSuggestionNode(t){return n=>{this.suggestionNodes[t]=n}}shouldShowInitialSuggestions(){const{__experimentalShowInitialSuggestions:t=!1,value:n}=this.props;return t&&!(n&&n.length)}updateSuggestions(t=""){const{__experimentalFetchLinkSuggestions:n,__experimentalHandleURLSuggestions:o}=this.props;if(!n)return;const r=!t?.length;if(t=t.trim(),!r&&(t.length<2||!o&&of(t))){this.suggestionsRequest?.cancel?.(),this.suggestionsRequest=null,this.setState({suggestions:[],showSuggestions:!1,suggestionsValue:t,selectedSuggestion:null,loading:!1});return}this.setState({selectedSuggestion:null,loading:!0});const s=n(t,{isInitialSuggestions:r});s.then(i=>{this.suggestionsRequest===s&&(this.setState({suggestions:i,suggestionsValue:t,loading:!1,showSuggestions:!!i.length}),i.length?this.props.debouncedSpeak(le(a0("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",i.length),i.length),"assertive"):this.props.debouncedSpeak(m("No results."),"assertive"))}).catch(()=>{this.suggestionsRequest===s&&this.setState({loading:!1})}).finally(()=>{this.suggestionsRequest===s&&(this.suggestionsRequest=null)}),this.suggestionsRequest=s}onChange(t){this.props.onChange(t.target.value)}onFocus(){const{suggestions:t}=this.state,{disableSuggestions:n,value:o}=this.props;o&&!n&&!(t&&t.length)&&this.suggestionsRequest===null&&this.updateSuggestions(o)}onKeyDown(t){this.props.onKeyDown?.(t);const{showSuggestions:n,selectedSuggestion:o,suggestions:r,loading:s}=this.state;if(!n||!r.length||s){switch(t.keyCode){case xi:{t.target.selectionStart!==0&&(t.preventDefault(),t.target.setSelectionRange(0,0));break}case Do:{this.props.value.length!==t.target.selectionStart&&(t.preventDefault(),t.target.setSelectionRange(this.props.value.length,this.props.value.length));break}case y1:{this.props.onSubmit&&(t.preventDefault(),this.props.onSubmit(null,t));break}}return}const i=this.state.suggestions[this.state.selectedSuggestion];switch(t.keyCode){case xi:{t.preventDefault();const c=o?o-1:r.length-1;this.setState({selectedSuggestion:c});break}case Do:{t.preventDefault();const c=o===null||o===r.length-1?0:o+1;this.setState({selectedSuggestion:c});break}case qp:{this.state.selectedSuggestion!==null&&(this.selectLink(i),this.props.speak(m("Link selected.")));break}case y1:{t.preventDefault(),this.state.selectedSuggestion!==null?(this.selectLink(i),this.props.onSubmit&&this.props.onSubmit(i,t)):this.props.onSubmit&&this.props.onSubmit(null,t);break}}}selectLink(t){this.props.onChange(t.url,t),this.setState({selectedSuggestion:null,showSuggestions:!1})}handleOnClick(t){this.selectLink(t),this.inputRef.current.focus()}static getDerivedStateFromProps({value:t,instanceId:n,disableSuggestions:o,__experimentalShowInitialSuggestions:r=!1},{showSuggestions:s}){let i=s;const c=t&&t.length;return!r&&!c&&(i=!1),o===!0&&(i=!1),{showSuggestions:i,suggestionsListboxId:`block-editor-url-input-suggestions-${n}`,suggestionOptionIdPrefix:`block-editor-url-input-suggestion-${n}`}}render(){return a.jsxs(a.Fragment,{children:[this.renderControl(),this.renderSuggestions()]})}renderControl(){const{label:t=null,className:n,isFullWidth:o,instanceId:r,placeholder:s=m("Paste URL or type to search"),__experimentalRenderControl:i,value:c="",hideLabelFromVision:l=!1}=this.props,{loading:u,showSuggestions:d,selectedSuggestion:p,suggestionsListboxId:f,suggestionOptionIdPrefix:b}=this.state,h=`url-input-control-${r}`,g={id:h,label:t,className:$("block-editor-url-input",n,{"is-full-width":o}),hideLabelFromVision:l},z={id:h,value:c,required:!0,className:"block-editor-url-input__input",type:"text",onChange:this.onChange,onFocus:this.onFocus,placeholder:s,onKeyDown:this.onKeyDown,role:"combobox","aria-label":t?void 0:m("URL"),"aria-expanded":d,"aria-autocomplete":"list","aria-owns":f,"aria-activedescendant":p!==null?`${b}-${p}`:void 0,ref:this.inputRef};return i?i(g,z,u):a.jsxs(z0,{__nextHasNoMarginBottom:!0,...g,children:[a.jsx("input",{...z}),u&&a.jsx(u0,{})]})}renderSuggestions(){const{className:t,__experimentalRenderSuggestions:n}=this.props,{showSuggestions:o,suggestions:r,suggestionsValue:s,selectedSuggestion:i,suggestionsListboxId:c,suggestionOptionIdPrefix:l,loading:u}=this.state;if(!o||r.length===0)return null;const d={id:c,ref:this.autocompleteRef,role:"listbox"},p=(f,b)=>({role:"option",tabIndex:"-1",id:`${l}-${b}`,ref:this.bindSuggestionNode(b),"aria-selected":b===i?!0:void 0});return sMe(n)?n({suggestions:r,selectedSuggestion:i,suggestionsListProps:d,buildSuggestionItemProps:p,isLoading:u,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:!s?.length,currentInputValue:s}):a.jsx(Mn,{placement:"bottom",focusOnMount:!1,children:a.jsx("div",{...d,className:$("block-editor-url-input__suggestions",`${t}__suggestions`),children:r.map((f,b)=>O.createElement(fe,{__next40pxDefaultSize:!1,...p(f,b),key:f.id,className:$("block-editor-url-input__suggestion",{"is-selected":b===i}),onClick:()=>this.handleOnClick(f)},f.title))})})}}const TP=v0(h6e,bft,b6e,Xo((e,t)=>{if(sMe(t.__experimentalFetchLinkSuggestions))return;const{getSettings:n}=e(F);return{__experimentalFetchLinkSuggestions:n().__experimentalFetchLinkSuggestions}}))(F8t);function $8t({autocompleteRef:e,className:t,onChangeInputValue:n,value:o,...r}){return a.jsxs("form",{className:$("block-editor-url-popover__link-editor",t),...r,children:[a.jsx(TP,{value:o,onChange:n,autocompleteRef:e}),a.jsx(fe,{icon:J_,label:m("Apply"),type:"submit",size:"compact"})]})}const{__experimentalPopoverLegacyPositionToPlacement:V8t}=Fe(L0),H8t="bottom",Mp=O.forwardRef(({additionalControls:e,children:t,renderSettings:n,placement:o,focusOnMount:r="firstElement",position:s,...i},c)=>{s!==void 0&&Re("`position` prop in wp.blockEditor.URLPopover",{since:"6.2",alternative:"`placement` prop"});let l;o!==void 0?l=o:s!==void 0&&(l=V8t(s)),l=l||H8t;const[u,d]=O.useState(!1),p=!!n&&u,f=()=>{d(!u)};return a.jsxs(Mn,{ref:c,role:"dialog","aria-modal":"true","aria-label":m("Edit URL"),className:"block-editor-url-popover",focusOnMount:r,placement:l,shift:!0,variant:"toolbar",...i,children:[a.jsx("div",{className:"block-editor-url-popover__input-container",children:a.jsxs("div",{className:"block-editor-url-popover__row",children:[t,!!n&&a.jsx(fe,{className:"block-editor-url-popover__settings-toggle",icon:md,label:m("Link settings"),onClick:f,"aria-expanded":u,size:"compact"})]})}),p&&a.jsx("div",{className:"block-editor-url-popover__settings",children:n()}),e&&!p&&a.jsx("div",{className:"block-editor-url-popover__additional-controls",children:e})]})});Mp.LinkEditor=$8t;Mp.LinkViewer=D8t;const U8t=()=>{},X8t=({src:e,onChange:t,onSubmit:n,onClose:o,popoverAnchor:r})=>a.jsx(Mp,{anchor:r,onClose:o,children:a.jsxs("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:n,children:[a.jsx("input",{className:"block-editor-media-placeholder__url-input-field",type:"text","aria-label":m("URL"),placeholder:m("Paste or type URL"),onChange:t,value:e}),a.jsx(fe,{__next40pxDefaultSize:!1,className:"block-editor-media-placeholder__url-input-submit-button",icon:J_,label:m("Apply"),type:"submit"})]})}),G8t=({src:e,onChangeSrc:t,onSelectURL:n})=>{const[o,r]=O.useState(null),[s,i]=O.useState(!1),c=()=>{i(!0)},l=()=>{i(!1),o?.focus()},u=d=>{d.preventDefault(),e&&n&&(n(e),l())};return a.jsxs("div",{className:"block-editor-media-placeholder__url-input-container",children:[a.jsx(fe,{__next40pxDefaultSize:!1,className:"block-editor-media-placeholder__button",onClick:c,isPressed:s,variant:"secondary","aria-haspopup":"dialog",ref:r,children:m("Insert from URL")}),s&&a.jsx(X8t,{src:e,onChange:t,onSubmit:u,onClose:l,popoverAnchor:o})]})};function K8t({value:e={},allowedTypes:t,className:n,icon:o,labels:r={},mediaPreview:s,notices:i,isAppender:c,accept:l,addToGallery:u,multiple:d=!1,handleUpload:p=!0,disableDropZone:f,disableMediaButtons:b,onError:h,onSelect:g,onCancel:z,onSelectURL:y,onToggleFeaturedImage:x,onDoubleClick:v,onFilesPreUpload:M=U8t,onHTMLDrop:A,children:_,mediaLibraryButton:w,placeholder:k,style:q}){A&&Re("wp.blockEditor.MediaPlaceholder onHTMLDrop prop",{since:"6.2",version:"6.4"});const S=D(Y=>{const{getSettings:ee}=Y(F);return ee().mediaUpload},[]),[C,T]=O.useState("");O.useEffect(()=>{var Y;T((Y=e?.src)!==null&&Y!==void 0?Y:"")},[e?.src]);const W=()=>!t||t.length===0?!1:t.every(Y=>Y==="image"||Y.startsWith("image/")),B=Y=>{T(Y.target.value)},N=Y=>{if(!p)return g(Y);M(Y);let ee;if(d)if(u){let ie=[];ee=se=>{const be=(e??[]).filter(ye=>ye.id?!ie.some(({id:xe})=>Number(xe)===Number(ye.id)):!ie.some(({urlSlug:xe})=>ye.url.includes(xe)));g(be.concat(se)),ie=se.map(ye=>{const xe=ye.url.lastIndexOf("."),K=ye.url.slice(0,xe);return{id:ye.id,urlSlug:K}})}}else ee=g;else ee=([ie])=>g(ie);S({allowedTypes:t,filesList:Y,onFileChange:ee,onError:h})};async function E(Y){if(!Y||!Array.isArray(Y))return;function ee(be){return be.flatMap(ye=>(ye.name==="core/image"||ye.name==="core/audio"||ye.name==="core/video")&&ye.attributes.url?[ye]:ee(ye.innerBlocks))}const ie=ee(Y);if(!ie.length)return;const se=await Promise.all(ie.map(be=>be.attributes.id?be.attributes:new Promise((ye,xe)=>{window.fetch(be.attributes.url).then(K=>K.blob()).then(K=>S({filesList:[K],additionalData:{title:be.attributes.title,alt_text:be.attributes.alt,caption:be.attributes.caption},onFileChange:([pe])=>{pe.id&&ye(pe)},allowedTypes:t,onError:xe})).catch(()=>ye(be.attributes.url))}))).catch(be=>h(be));g(d?se:se[0])}async function L(Y){const ee=Mf({HTML:Y});return await E(ee)}const I=Y=>{N(Y.target.files)},H=k??(Y=>{let{instructions:ee,title:ie}=r;if(!S&&!y&&(ee=m("To edit this block, you need permission to upload media.")),ee===void 0||ie===void 0){const be=t??[],[ye]=be,xe=be.length===1,K=xe&&ye==="audio",pe=xe&&ye==="image",G=xe&&ye==="video";ee===void 0&&S&&(ee=m("Upload a media file or pick one from your media library."),K?ee=m("Upload an audio file, pick one from your media library, or add one with a URL."):pe?ee=m("Upload an image file, pick one from your media library, or add one with a URL."):G&&(ee=m("Upload a video file, pick one from your media library, or add one with a URL."))),ie===void 0&&(ie=m("Media"),K?ie=m("Audio"):pe?ie=m("Image"):G&&(ie=m("Video")))}const se=$("block-editor-media-placeholder",n,{"is-appender":c});return a.jsxs(D0,{icon:o,label:ie,instructions:ee,className:se,notices:i,onDoubleClick:v,preview:s,style:q,children:[Y,_]})}),U=()=>f?null:a.jsx(Sw,{onFilesDrop:N,onHTMLDrop:L}),X=()=>z&&a.jsx(fe,{__next40pxDefaultSize:!1,className:"block-editor-media-placeholder__cancel-button",title:m("Cancel"),variant:"link",onClick:z,children:m("Cancel")}),Z=()=>y&&a.jsx(G8t,{src:C,onChangeSrc:B,onSelectURL:y}),ne=()=>x&&a.jsx("div",{className:"block-editor-media-placeholder__url-input-container",children:a.jsx(fe,{__next40pxDefaultSize:!1,className:"block-editor-media-placeholder__button",onClick:x,variant:"secondary",children:m("Use featured image")})}),oe=()=>{const ee=w??(({open:se})=>a.jsx(fe,{__next40pxDefaultSize:!1,variant:"secondary",onClick:()=>{se()},children:m("Media Library")})),ie=a.jsx(Od,{addToGallery:u,gallery:d&&W(),multiple:d,onSelect:g,allowedTypes:t,mode:"browse",value:Array.isArray(e)?e.map(({id:se})=>se):e.id,render:ee});if(S&&c)return a.jsxs(a.Fragment,{children:[U(),a.jsx(r5,{onChange:I,accept:l,multiple:!!d,render:({openFileDialog:se})=>{const be=a.jsxs(a.Fragment,{children:[a.jsx(fe,{__next40pxDefaultSize:!1,variant:"primary",className:$("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onClick:se,children:m("Upload")}),ie,Z(),ne(),X()]});return H(be)}})]});if(S){const se=a.jsxs(a.Fragment,{children:[U(),a.jsx(r5,{render:({openFileDialog:be})=>a.jsx(fe,{__next40pxDefaultSize:!1,onClick:be,variant:"primary",className:$("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),children:m("Upload")}),onChange:I,accept:l,multiple:!!d}),ie,Z(),ne(),X()]});return H(se)}return H(ie)};return b?a.jsx(cl,{children:U()}):a.jsx(cl,{fallback:H(Z()),children:oe()})}const kl=gd("editor.MediaPlaceholder")(K8t),Y8t={placement:"bottom-start"},iMe=()=>a.jsxs(a.Fragment,{children:[["bold","italic","link","unknown"].map(e=>a.jsx(Dp,{name:`RichText.ToolbarControls.${e}`},e)),a.jsx(Dp,{name:"RichText.ToolbarControls",children:e=>{if(!e.length)return null;const n=e.map(([{props:o}])=>o).some(({isActive:o})=>o);return a.jsx(Ko,{children:o=>a.jsx(E1,{icon:md,label:m("More"),toggleProps:{...o,className:$(o.className,{"is-pressed":n}),description:m("Displays more block tools")},controls:H3(e.map(([{props:r}])=>r),"title"),popoverProps:Y8t})})}})]});function Z8t({popoverAnchor:e}){return a.jsx(Mn,{placement:"top",focusOnMount:!1,anchor:e,className:"block-editor-rich-text__inline-format-toolbar",__unstableSlotName:"block-toolbar",children:a.jsx(vk,{className:"block-editor-rich-text__inline-format-toolbar-group","aria-label":m("Format tools"),children:a.jsx(c0,{children:a.jsx(iMe,{})})})})}const Q8t=({inline:e,editableContentElement:t})=>e?a.jsx(Z8t,{popoverAnchor:t}):a.jsx(Ie,{group:"inline",children:a.jsx(iMe,{})});function J8t({html:e,value:t}){const n=O.useRef(),o=!!t.activeFormats?.length,{__unstableMarkLastChangeAsPersistent:r}=ae(F);O.useLayoutEffect(()=>{if(!n.current){n.current=t.text;return}if(n.current!==t.text){const s=window.setTimeout(()=>{r()},1e3);return n.current=t.text,()=>{window.clearTimeout(s)}}r()},[e,o])}function eWt(e){return e(xc).getFormatTypes()}const tWt=new Set(["a","audio","button","details","embed","iframe","input","label","select","textarea","video"]);function nWt(e,t){return typeof e!="object"?{[t]:e}:Object.fromEntries(Object.entries(e).map(([n,o])=>[`${t}.${n}`,o]))}function aZ(e,t){return e[t]?e[t]:Object.keys(e).filter(n=>n.startsWith(t+".")).reduce((n,o)=>(n[o.slice(t.length+1)]=e[o],n),{})}function oWt({clientId:e,identifier:t,withoutInteractiveFormatting:n,allowedFormats:o}){const r=D(eWt,[]),s=O.useMemo(()=>r.filter(({name:f,interactive:b,tagName:h})=>!(o&&!o.includes(f)||n&&(b||tWt.has(h)))),[r,o,n]),i=D(f=>s.reduce((b,h)=>h.__experimentalGetPropsForEditableTreePreparation?{...b,...nWt(h.__experimentalGetPropsForEditableTreePreparation(f,{richTextIdentifier:t,blockClientId:e}),h.name)}:b,{}),[s,e,t]),c=ae(),l=[],u=[],d=[],p=[];for(const f in i)p.push(i[f]);return s.forEach(f=>{if(f.__experimentalCreatePrepareEditableTree){const b=f.__experimentalCreatePrepareEditableTree(aZ(i,f.name),{richTextIdentifier:t,blockClientId:e});f.__experimentalCreateOnChangeEditableValue?u.push(b):l.push(b)}if(f.__experimentalCreateOnChangeEditableValue){let b={};f.__experimentalGetPropsForEditableTreeChangeHandler&&(b=f.__experimentalGetPropsForEditableTreeChangeHandler(c,{richTextIdentifier:t,blockClientId:e}));const h=aZ(i,f.name);d.push(f.__experimentalCreateOnChangeEditableValue({...typeof h=="object"?h:{},...b},{richTextIdentifier:t,blockClientId:e}))}}),{formatTypes:s,prepareHandlers:l,valueHandlers:u,changeHandlers:d,dependencies:p}}const rWt=["`",'"',"'","“”","‘’"],sWt=e=>t=>{function n(o){const{inputType:r,data:s}=o,{value:i,onChange:c,registry:l}=e.current;if(r!=="insertText"||lf(i))return;const u=_n("blockEditor.wrapSelectionSettings",rWt).find(([A,_])=>A===s||_===s);if(!u)return;const[d,p=d]=u,f=i.start,b=i.end+d.length;let h=Y1(i,d,f,f);h=Y1(h,p,b,b);const{__unstableMarkLastChangeAsPersistent:g,__unstableMarkAutomaticChange:z}=l.dispatch(F);g(),c(h),z();const y={};for(const A in o)y[A]=o[A];y.data=p;const{ownerDocument:x}=t,{defaultView:v}=x,M=new v.InputEvent("input",y);window.queueMicrotask(()=>{o.target.dispatchEvent(M)}),o.preventDefault()}return t.addEventListener("beforeinput",n),()=>{t.removeEventListener("beforeinput",n)}};function iWt(e){const t="tales of gutenberg",n=" 🐡🐢🦀🐤🦋🐘🐧🐹🦁🦄🦍🐼🐿🎃🐴🐝🐆🦕🦔🌱🍇π🍌🐉💧🥨🌌🍂🍠🥦🥚🥝🎟🥥🥒🛵🥖🍒🍯🎾🎲🐺🐚🐮⌛️",{start:o,text:r}=e;return ot=>{function n(){const{getValue:r,onReplace:s,selectionChange:i,registry:c}=e.current;if(!s)return;const l=r(),{start:u,text:d}=l;if(d.slice(u-1,u)!==" ")return;const f=d.slice(0,u).trim(),b=Ys("from").filter(({type:y})=>y==="prefix"),h=Ia(b,({prefix:y})=>f===y);if(!h)return;const g=K1({value:Y1(l,Gp,0,u)}),z=h.transform(g);return i(...aMe([z])),s([z]),c.dispatch(F).__unstableMarkAutomaticChange(),!0}function o(r){const{inputType:s,type:i}=r,{getValue:c,onChange:l,__unstableAllowPrefixTransformations:u,formatTypes:d,registry:p}=e.current;if(s!=="insertText"&&i!=="compositionend"||u&&n())return;const f=c(),b=d.reduce((z,{__unstableInputRule:y})=>(y&&(z=y(z)),z),iWt(f)),{__unstableMarkLastChangeAsPersistent:h,__unstableMarkAutomaticChange:g}=p.dispatch(F);b!==f&&(h(),l({...b,activeFormats:f.activeFormats}),g())}return t.addEventListener("input",o),t.addEventListener("compositionend",o),()=>{t.removeEventListener("input",o),t.removeEventListener("compositionend",o)}},cWt=e=>t=>{function n(o){if(o.inputType!=="insertReplacementText")return;const{registry:r}=e.current;r.dispatch(F).__unstableMarkLastChangeAsPersistent()}return t.addEventListener("beforeinput",n),()=>{t.removeEventListener("beforeinput",n)}},lWt=()=>e=>{function t(n){(Fs.primary(n,"z")||Fs.primary(n,"y")||Fs.primaryShift(n,"z"))&&n.preventDefault()}return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}},uWt=e=>t=>{const{keyboardShortcuts:n}=e.current;function o(r){for(const s of n.current)s(r)}return t.addEventListener("keydown",o),()=>{t.removeEventListener("keydown",o)}},dWt=e=>t=>{const{inputEvents:n}=e.current;function o(r){for(const s of n.current)s(r)}return t.addEventListener("input",o),()=>{t.removeEventListener("input",o)}},pWt=e=>t=>{function n(o){const{keyCode:r}=o;if(o.defaultPrevented||r!==Si&&r!==Ea)return;const{registry:s}=e.current,{didAutomaticChange:i,getSettings:c}=s.select(F),{__experimentalUndo:l}=c();l&&i()&&(o.preventDefault(),l())}return t.addEventListener("keydown",n),()=>{t.removeEventListener("keydown",n)}};function fWt(e,t){if(t?.length){let n=e.formats.length;for(;n--;)e.formats[n]=[...t,...e.formats[n]||[]]}}function cMe(e){if(!(e!==!0&&e!=="p"&&e!=="li"))return e===!0?"p":e}function EP({allowedFormats:e,disableFormats:t}){return t?EP.EMPTY_ARRAY:e}EP.EMPTY_ARRAY=[];const bWt=e=>t=>{function n(r){const{disableFormats:s,onChange:i,value:c,formatTypes:l,tagName:u,onReplace:d,__unstableEmbedURLOnPaste:p,preserveWhiteSpace:f,pastePlainText:b}=e.current,{ownerDocument:h}=t,{defaultView:g}=h,{anchorNode:z,focusNode:y}=g.getSelection();if(!(t.contains(z)&&t.contains(y))||r.defaultPrevented)return;const{plainText:v,html:M}=cP(r);if(r.preventDefault(),window.console.log(`Received HTML: +`,RRt=1,WRt=3,TRt=function(e){Q_e(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.imageRef=O.createRef(),n.videoRef=O.createRef(),n.containerPosition={x:0,y:0},n.containerRef=null,n.styleRef=null,n.containerRect=null,n.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},n.dragStartPosition={x:0,y:0},n.dragStartCrop={x:0,y:0},n.gestureZoomStart=0,n.gestureRotationStart=0,n.isTouching=!1,n.lastPinchDistance=0,n.lastPinchRotation=0,n.rafDragTimeout=null,n.rafPinchTimeout=null,n.wheelTimer=null,n.currentDoc=typeof document<"u"?document:null,n.currentWindow=typeof window<"u"?window:null,n.resizeObserver=null,n.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},n.initResizeObserver=function(){if(!(typeof window.ResizeObserver>"u"||!n.containerRef)){var o=!0;n.resizeObserver=new window.ResizeObserver(function(r){if(o){o=!1;return}n.computeSizes()}),n.resizeObserver.observe(n.containerRef)}},n.preventZoomSafari=function(o){return o.preventDefault()},n.cleanEvents=function(){n.currentDoc&&(n.currentDoc.removeEventListener("mousemove",n.onMouseMove),n.currentDoc.removeEventListener("mouseup",n.onDragStopped),n.currentDoc.removeEventListener("touchmove",n.onTouchMove),n.currentDoc.removeEventListener("touchend",n.onDragStopped),n.currentDoc.removeEventListener("gesturemove",n.onGestureMove),n.currentDoc.removeEventListener("gestureend",n.onGestureEnd),n.currentDoc.removeEventListener("scroll",n.onScroll))},n.clearScrollEvent=function(){n.containerRef&&n.containerRef.removeEventListener("wheel",n.onWheel),n.wheelTimer&&clearTimeout(n.wheelTimer)},n.onMediaLoad=function(){var o=n.computeSizes();o&&(n.emitCropData(),n.setInitialCrop(o)),n.props.onMediaLoaded&&n.props.onMediaLoaded(n.mediaSize)},n.setInitialCrop=function(o){if(n.props.initialCroppedAreaPercentages){var r=wRt(n.props.initialCroppedAreaPercentages,n.mediaSize,n.props.rotation,o,n.props.minZoom,n.props.maxZoom),s=r.crop,i=r.zoom;n.props.onCropChange(s),n.props.onZoomChange&&n.props.onZoomChange(i)}else if(n.props.initialCroppedAreaPixels){var c=qRt(n.props.initialCroppedAreaPixels,n.mediaSize,n.props.rotation,o,n.props.minZoom,n.props.maxZoom),s=c.crop,i=c.zoom;n.props.onCropChange(s),n.props.onZoomChange&&n.props.onZoomChange(i)}},n.computeSizes=function(){var o,r,s,i,c,l,u=n.imageRef.current||n.videoRef.current;if(u&&n.containerRef){n.containerRect=n.containerRef.getBoundingClientRect(),n.saveContainerPosition();var d=n.containerRect.width/n.containerRect.height,p=((o=n.imageRef.current)===null||o===void 0?void 0:o.naturalWidth)||((r=n.videoRef.current)===null||r===void 0?void 0:r.videoWidth)||0,f=((s=n.imageRef.current)===null||s===void 0?void 0:s.naturalHeight)||((i=n.videoRef.current)===null||i===void 0?void 0:i.videoHeight)||0,b=u.offsetWidthh?{width:n.containerRect.height*h,height:n.containerRect.height}:{width:n.containerRect.width,height:n.containerRect.width/h};break;case"horizontal-cover":g={width:n.containerRect.width,height:n.containerRect.width/h};break;case"vertical-cover":g={width:n.containerRect.height*h,height:n.containerRect.height};break}else g={width:u.offsetWidth,height:u.offsetHeight};n.mediaSize=i1(i1({},g),{naturalWidth:p,naturalHeight:f}),n.props.setMediaSize&&n.props.setMediaSize(n.mediaSize);var z=n.props.cropSize?n.props.cropSize:ARt(n.mediaSize.width,n.mediaSize.height,n.containerRect.width,n.containerRect.height,n.props.aspect,n.props.rotation);return(((c=n.state.cropSize)===null||c===void 0?void 0:c.height)!==z.height||((l=n.state.cropSize)===null||l===void 0?void 0:l.width)!==z.width)&&n.props.onCropSizeChange&&n.props.onCropSizeChange(z),n.setState({cropSize:z},n.recomputeCropPosition),n.props.setCropSize&&n.props.setCropSize(z),z}},n.saveContainerPosition=function(){if(n.containerRef){var o=n.containerRef.getBoundingClientRect();n.containerPosition={x:o.left,y:o.top}}},n.onMouseDown=function(o){n.currentDoc&&(o.preventDefault(),n.currentDoc.addEventListener("mousemove",n.onMouseMove),n.currentDoc.addEventListener("mouseup",n.onDragStopped),n.saveContainerPosition(),n.onDragStart(t.getMousePoint(o)))},n.onMouseMove=function(o){return n.onDrag(t.getMousePoint(o))},n.onScroll=function(o){n.currentDoc&&(o.preventDefault(),n.saveContainerPosition())},n.onTouchStart=function(o){n.currentDoc&&(n.isTouching=!0,!(n.props.onTouchRequest&&!n.props.onTouchRequest(o))&&(n.currentDoc.addEventListener("touchmove",n.onTouchMove,{passive:!1}),n.currentDoc.addEventListener("touchend",n.onDragStopped),n.saveContainerPosition(),o.touches.length===2?n.onPinchStart(o):o.touches.length===1&&n.onDragStart(t.getTouchPoint(o.touches[0]))))},n.onTouchMove=function(o){o.preventDefault(),o.touches.length===2?n.onPinchMove(o):o.touches.length===1&&n.onDrag(t.getTouchPoint(o.touches[0]))},n.onGestureStart=function(o){n.currentDoc&&(o.preventDefault(),n.currentDoc.addEventListener("gesturechange",n.onGestureMove),n.currentDoc.addEventListener("gestureend",n.onGestureEnd),n.gestureZoomStart=n.props.zoom,n.gestureRotationStart=n.props.rotation)},n.onGestureMove=function(o){if(o.preventDefault(),!n.isTouching){var r=t.getMousePoint(o),s=n.gestureZoomStart-1+o.scale;if(n.setNewZoom(s,r,{shouldUpdatePosition:!0}),n.props.onRotationChange){var i=n.gestureRotationStart+o.rotation;n.props.onRotationChange(i)}}},n.onGestureEnd=function(o){n.cleanEvents()},n.onDragStart=function(o){var r,s,i=o.x,c=o.y;n.dragStartPosition={x:i,y:c},n.dragStartCrop=i1({},n.props.crop),(s=(r=n.props).onInteractionStart)===null||s===void 0||s.call(r)},n.onDrag=function(o){var r=o.x,s=o.y;n.currentWindow&&(n.rafDragTimeout&&n.currentWindow.cancelAnimationFrame(n.rafDragTimeout),n.rafDragTimeout=n.currentWindow.requestAnimationFrame(function(){if(n.state.cropSize&&!(r===void 0||s===void 0)){var i=r-n.dragStartPosition.x,c=s-n.dragStartPosition.y,l={x:n.dragStartCrop.x+i,y:n.dragStartCrop.y+c},u=n.props.restrictPosition?ny(l,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):l;n.props.onCropChange(u)}}))},n.onDragStopped=function(){var o,r;n.isTouching=!1,n.cleanEvents(),n.emitCropData(),(r=(o=n.props).onInteractionEnd)===null||r===void 0||r.call(o)},n.onWheel=function(o){if(n.currentWindow&&!(n.props.onWheelRequest&&!n.props.onWheelRequest(o))){o.preventDefault();var r=t.getMousePoint(o),s=ORt(o).pixelY,i=n.props.zoom-s*n.props.zoomSpeed/200;n.setNewZoom(i,r,{shouldUpdatePosition:!0}),n.state.hasWheelJustStarted||n.setState({hasWheelJustStarted:!0},function(){var c,l;return(l=(c=n.props).onInteractionStart)===null||l===void 0?void 0:l.call(c)}),n.wheelTimer&&clearTimeout(n.wheelTimer),n.wheelTimer=n.currentWindow.setTimeout(function(){return n.setState({hasWheelJustStarted:!1},function(){var c,l;return(l=(c=n.props).onInteractionEnd)===null||l===void 0?void 0:l.call(c)})},250)}},n.getPointOnContainer=function(o,r){var s=o.x,i=o.y;if(!n.containerRect)throw new Error("The Cropper is not mounted");return{x:n.containerRect.width/2-(s-r.x),y:n.containerRect.height/2-(i-r.y)}},n.getPointOnMedia=function(o){var r=o.x,s=o.y,i=n.props,c=i.crop,l=i.zoom;return{x:(r+c.x)/l,y:(s+c.y)/l}},n.setNewZoom=function(o,r,s){var i=s===void 0?{}:s,c=i.shouldUpdatePosition,l=c===void 0?!0:c;if(!(!n.state.cropSize||!n.props.onZoomChange)){var u=wk(o,n.props.minZoom,n.props.maxZoom);if(l){var d=n.getPointOnContainer(r,n.containerPosition),p=n.getPointOnMedia(d),f={x:p.x*u-d.x,y:p.y*u-d.y},b=n.props.restrictPosition?ny(f,n.mediaSize,n.state.cropSize,u,n.props.rotation):f;n.props.onCropChange(b)}n.props.onZoomChange(u)}},n.getCropData=function(){if(!n.state.cropSize)return null;var o=n.props.restrictPosition?ny(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop;return vRt(o,n.mediaSize,n.state.cropSize,n.getAspect(),n.props.zoom,n.props.rotation,n.props.restrictPosition)},n.emitCropData=function(){var o=n.getCropData();if(o){var r=o.croppedAreaPercentages,s=o.croppedAreaPixels;n.props.onCropComplete&&n.props.onCropComplete(r,s),n.props.onCropAreaChange&&n.props.onCropAreaChange(r,s)}},n.emitCropAreaChange=function(){var o=n.getCropData();if(o){var r=o.croppedAreaPercentages,s=o.croppedAreaPixels;n.props.onCropAreaChange&&n.props.onCropAreaChange(r,s)}},n.recomputeCropPosition=function(){if(n.state.cropSize){var o=n.props.restrictPosition?ny(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop;n.props.onCropChange(o),n.emitCropData()}},n}return t.prototype.componentDidMount=function(){!this.currentDoc||!this.currentWindow||(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),typeof window.ResizeObserver>"u"&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=CRt,this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef))},t.prototype.componentWillUnmount=function(){var n,o;!this.currentDoc||!this.currentWindow||(typeof window.ResizeObserver>"u"&&this.currentWindow.removeEventListener("resize",this.computeSizes),(n=this.resizeObserver)===null||n===void 0||n.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&((o=this.styleRef.parentNode)===null||o===void 0||o.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},t.prototype.componentDidUpdate=function(n){var o,r,s,i,c,l,u,d,p;n.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):n.aspect!==this.props.aspect?this.computeSizes():n.objectFit!==this.props.objectFit?this.computeSizes():n.zoom!==this.props.zoom?this.recomputeCropPosition():((o=n.cropSize)===null||o===void 0?void 0:o.height)!==((r=this.props.cropSize)===null||r===void 0?void 0:r.height)||((s=n.cropSize)===null||s===void 0?void 0:s.width)!==((i=this.props.cropSize)===null||i===void 0?void 0:i.width)?this.computeSizes():(((c=n.crop)===null||c===void 0?void 0:c.x)!==((l=this.props.crop)===null||l===void 0?void 0:l.x)||((u=n.crop)===null||u===void 0?void 0:u.y)!==((d=this.props.crop)===null||d===void 0?void 0:d.y))&&this.emitCropAreaChange(),n.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),n.video!==this.props.video&&((p=this.videoRef.current)===null||p===void 0||p.load());var f=this.getObjectFit();f!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:f},this.computeSizes)},t.prototype.getAspect=function(){var n=this.props,o=n.cropSize,r=n.aspect;return o?o.width/o.height:r},t.prototype.getObjectFit=function(){var n,o,r,s;if(this.props.objectFit==="cover"){var i=this.imageRef.current||this.videoRef.current;if(i&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var c=this.containerRect.width/this.containerRect.height,l=((n=this.imageRef.current)===null||n===void 0?void 0:n.naturalWidth)||((o=this.videoRef.current)===null||o===void 0?void 0:o.videoWidth)||0,u=((r=this.imageRef.current)===null||r===void 0?void 0:r.naturalHeight)||((s=this.videoRef.current)===null||s===void 0?void 0:s.videoHeight)||0,d=l/u;return d{p(v)},onCropComplete:v=>{f(v)},onZoomChange:v=>{b(v*100)}}),i&&a.jsx(u0,{})]});return a.jsxs(a.Fragment,{children:[g,x]})}function BRt(){const{isInProgress:e,zoom:t,setZoom:n}=lO();return a.jsx(B0,{contentClassName:"wp-block-image__zoom",popoverProps:jme,renderToggle:({isOpen:o,onToggle:r})=>a.jsx(bt,{icon:nw,label:m("Zoom"),onClick:r,"aria-expanded":o,disabled:e}),renderContent:()=>a.jsx(Ni,{paddingSize:"medium",children:a.jsx(T0,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:m("Zoom"),min:Nme,max:Lme,value:Math.round(t),onChange:n})})})}function NRt(){const{isInProgress:e,rotateClockwise:t}=lO();return a.jsx(bt,{icon:NZe,label:m("Rotate"),onClick:t,disabled:e})}function LRt(){const{isInProgress:e,apply:t,cancel:n}=lO();return a.jsxs(a.Fragment,{children:[a.jsx(bt,{onClick:t,disabled:e,children:m("Apply")}),a.jsx(bt,{onClick:n,children:m("Cancel")})]})}function Xme({id:e,url:t,width:n,height:o,naturalHeight:r,naturalWidth:s,onSaveImage:i,onFinishEditing:c,borderProps:l}){return a.jsxs(cRt,{id:e,url:t,naturalWidth:s,naturalHeight:r,onSaveImage:i,onFinishEditing:c,children:[a.jsx(ERt,{borderProps:l,url:t,width:n,height:o,naturalHeight:r,naturalWidth:s}),a.jsxs(Ie,{children:[a.jsxs(c0,{children:[a.jsx(BRt,{}),a.jsx(Ko,{children:u=>a.jsx(uRt,{toggleProps:u})}),a.jsx(NRt,{})]}),a.jsx(c0,{children:a.jsx(LRt,{})})]})]})}function jRt(e,t,n,o,r){var s,i;const[c,l]=O.useState((s=t??o)!==null&&s!==void 0?s:""),[u,d]=O.useState((i=e??n)!==null&&i!==void 0?i:"");return O.useEffect(()=>{t===void 0&&o!==void 0&&l(o),e===void 0&&n!==void 0&&d(n)},[o,n]),O.useEffect(()=>{t!==void 0&&Number.parseInt(t)!==Number.parseInt(c)&&l(t),e!==void 0&&Number.parseInt(e)!==Number.parseInt(u)&&d(e)},[t,e]),{currentHeight:u,currentWidth:c,updateDimension:(b,h)=>{const g=h===""?void 0:parseInt(h,10);b==="width"?l(g):d(g),r({[b]:g})},updateDimensions:(b,h)=>{d(b??n),l(h??o),r({height:b,width:h})}}}const PRt=[25,50,75,100],IRt=()=>{};function DRt({imageSizeHelp:e,imageWidth:t,imageHeight:n,imageSizeOptions:o=[],isResizable:r=!0,slug:s,width:i,height:c,onChange:l,onChangeImage:u=IRt}){const{currentHeight:d,currentWidth:p,updateDimension:f,updateDimensions:b}=jRt(c,i,n,t,l);return a.jsxs(a.Fragment,{children:[o&&o.length>0&&a.jsx(i0,{__nextHasNoMarginBottom:!0,label:m("Resolution"),value:s,options:o,onChange:u,help:e,size:"__unstable-large"}),r&&a.jsxs("div",{className:"block-editor-image-size-control",children:[a.jsxs(Je,{align:"baseline",spacing:"3",children:[a.jsx(T1,{className:"block-editor-image-size-control__width",label:m("Width"),value:p,min:1,onChange:h=>f("width",h),size:"__unstable-large"}),a.jsx(T1,{className:"block-editor-image-size-control__height",label:m("Height"),value:d,min:1,onChange:h=>f("height",h),size:"__unstable-large"})]}),a.jsxs(Je,{children:[a.jsx(Bh,{"aria-label":m("Image size presets"),children:PRt.map(h=>{const g=Math.round(t*(h/100)),z=Math.round(n*(h/100)),y=p===g&&d===z;return a.jsxs(fe,{size:"small",variant:y?"primary":void 0,isPressed:y,onClick:()=>b(z,g),children:[h,"%"]},h)})}),a.jsx(fe,{size:"small",onClick:()=>b(),children:m("Reset")})]})]})]})}const JY={left:Y_,center:Z_,right:Q_,"space-between":h7,stretch:m7};function FRt({allowedControls:e=["left","center","right","space-between"],isCollapsed:t=!0,onChange:n,value:o,popoverProps:r,isToolbar:s}){const i=p=>{n(p===o?void 0:p)},c=o?JY[o]:JY.left,l=[{name:"left",icon:Y_,title:m("Justify items left"),isActive:o==="left",onClick:()=>i("left")},{name:"center",icon:Z_,title:m("Justify items center"),isActive:o==="center",onClick:()=>i("center")},{name:"right",icon:Q_,title:m("Justify items right"),isActive:o==="right",onClick:()=>i("right")},{name:"space-between",icon:h7,title:m("Space between items"),isActive:o==="space-between",onClick:()=>i("space-between")},{name:"stretch",icon:m7,title:m("Stretch items"),isActive:o==="stretch",onClick:()=>i("stretch")}],u=s?c0:_l,d=s?{isCollapsed:t}:{};return a.jsx(u,{icon:c,popoverProps:r,label:m("Change items justification"),controls:l.filter(p=>e.includes(p.name)),...d})}const Gme=e=>a.jsx(FRt,{...e,isToolbar:!1});function $Rt(e={},t){if(t.type==="SET_PREFERENCE_DEFAULTS"){const{scope:n,defaults:o}=t;return{...e,[n]:{...e[n],...o}}}return e}function VRt(e){let t;return(n,o)=>{if(o.type==="SET_PERSISTENCE_LAYER"){const{persistenceLayer:s,persistedData:i}=o;return t=s,i}const r=e(n,o);return o.type==="SET_PREFERENCE_VALUE"&&t?.set(r),r}}const HRt=VRt((e={},t)=>{if(t.type==="SET_PREFERENCE_VALUE"){const{scope:n,name:o,value:r}=t;return{...e,[n]:{...e[n],[o]:r}}}return e}),URt=zo({defaults:$Rt,preferences:HRt});function XRt(e,t){return function({select:n,dispatch:o}){const r=n.get(e,t);o.set(e,t,!r)}}function GRt(e,t,n){return{type:"SET_PREFERENCE_VALUE",scope:e,name:t,value:n}}function KRt(e,t){return{type:"SET_PREFERENCE_DEFAULTS",scope:e,defaults:t}}async function YRt(e){const t=await e.get();return{type:"SET_PERSISTENCE_LAYER",persistenceLayer:e,persistedData:t}}const ZRt=Object.freeze(Object.defineProperty({__proto__:null,set:GRt,setDefaults:KRt,setPersistenceLayer:YRt,toggle:XRt},Symbol.toStringTag,{value:"Module"})),QRt=e=>(t,n,o)=>["allowRightClickOverrides","distractionFree","editorMode","fixedToolbar","focusMode","hiddenBlockTypes","inactivePanels","keepCaretInsideBlock","mostUsedBlocks","openPanels","showBlockBreadcrumbs","showIconLabels","showListViewByDefault","isPublishSidebarEnabled","isComplementaryAreaVisible","pinnedItems"].includes(o)&&["core/edit-post","core/edit-site"].includes(n)?(Re(`wp.data.select( 'core/preferences' ).get( '${n}', '${o}' )`,{since:"6.5",alternative:`wp.data.select( 'core/preferences' ).get( 'core', '${o}' )`}),e(t,"core",o)):e(t,n,o),JRt=QRt((e,t,n)=>{const o=e.preferences[t]?.[n];return o!==void 0?o:e.defaults[t]?.[n]}),e8t=Object.freeze(Object.defineProperty({__proto__:null,get:JRt},Symbol.toStringTag,{value:"Module"})),t8t="core/preferences",Qe=er(t8t,{reducer:URt,actions:ZRt,selectors:e8t});Qs(Qe);function VS({scope:e,name:t,label:n,info:o,messageActivated:r,messageDeactivated:s,shortcut:i,handleToggling:c=!0,onToggle:l=()=>null,disabled:u=!1}){const d=D(b=>!!b(Qe).get(e,t),[e,t]),{toggle:p}=ae(Qe),f=()=>{if(d){const b=s||le(m("Preference deactivated - %s"),n);At(b)}else{const b=r||le(m("Preference activated - %s"),n);At(b)}};return a.jsx(tt,{icon:d&&no,isSelected:d,onClick:()=>{l(),c&&p(e,t),f()},role:"menuitemcheckbox",info:o,shortcut:i,disabled:u,children:n})}function Kme({help:e,label:t,isChecked:n,onChange:o,children:r}){return a.jsxs("div",{className:"preference-base-option",children:[a.jsx(Be,{__nextHasNoMarginBottom:!0,help:e,label:t,checked:n,onChange:o}),r]})}function n8t(e){const{scope:t,featureName:n,onToggle:o=()=>{},...r}=e,s=D(l=>!!l(Qe).get(t,n),[t,n]),{toggle:i}=ae(Qe),c=()=>{o(),i(t,n)};return a.jsx(Kme,{onChange:c,isChecked:s,...r})}function o8t({closeModal:e,children:t}){return a.jsx(fn,{className:"preferences-modal",title:m("Preferences"),onRequestClose:e,children:t})}const r8t=({description:e,title:t,children:n})=>a.jsxs("fieldset",{className:"preferences-modal__section",children:[a.jsxs("legend",{className:"preferences-modal__section-legend",children:[a.jsx("h2",{className:"preferences-modal__section-title",children:t}),e&&a.jsx("p",{className:"preferences-modal__section-description",children:e})]}),a.jsx("div",{className:"preferences-modal__section-content",children:n})]}),{lock:s8t,unlock:i8t}=ar("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/preferences"),{Tabs:ry}=i8t(L0),eZ="preferences-menu";function a8t({sections:e}){const t=g0("medium"),[n,o]=O.useState(eZ),{tabs:r,sectionsContentMap:s}=O.useMemo(()=>{let c={tabs:[],sectionsContentMap:{}};return e.length&&(c=e.reduce((l,{name:u,tabLabel:d,content:p})=>(l.tabs.push({name:u,title:d}),l.sectionsContentMap[u]=p,l),{tabs:[],sectionsContentMap:{}})),c},[e]);let i;return t?i=a.jsx("div",{className:"preferences__tabs",children:a.jsxs(ry,{defaultTabId:n!==eZ?n:void 0,onSelect:o,orientation:"vertical",children:[a.jsx(ry.TabList,{className:"preferences__tabs-tablist",children:r.map(c=>a.jsx(ry.Tab,{tabId:c.name,className:"preferences__tabs-tab",children:c.title},c.name))}),r.map(c=>a.jsx(ry.TabPanel,{tabId:c.name,className:"preferences__tabs-tabpanel",focusable:!1,children:s[c.name]||null},c.name))]})}):i=a.jsxs(nfe,{initialPath:"/",className:"preferences__provider",children:[a.jsx(s5,{path:"/",children:a.jsx(pG,{isBorderless:!0,size:"small",children:a.jsx(fG,{children:a.jsx(Yu,{children:r.map(c=>a.jsx(rfe,{path:c.name,as:fw,isAction:!0,children:a.jsxs(Je,{justify:"space-between",children:[a.jsx(Ht,{children:a.jsx(Ho,{children:c.title})}),a.jsx(Ht,{children:a.jsx(t0,{icon:ft()?Fa:Ei})})]})},c.name))})})})}),e.length&&e.map(c=>a.jsx(s5,{path:c.name,children:a.jsxs(pG,{isBorderless:!0,size:"large",children:[a.jsxs(lrt,{isBorderless:!1,justify:"left",size:"small",gap:"6",children:[a.jsx(sfe,{icon:ft()?Ei:Fa,label:m("Back")}),a.jsx(l0,{size:"16",children:c.tabLabel})]}),a.jsx(fG,{children:c.content})]})},`${c.name}-menu`))]}),i}const yd={};s8t(yd,{PreferenceBaseOption:Kme,PreferenceToggleControl:n8t,PreferencesModal:o8t,PreferencesModalSection:r8t,PreferencesModalTabs:a8t});function Yme({children:e,settingsOpen:t,setSettingsOpen:n}){const o=Zs(),r=o?O.Fragment:Lp,s=o?"div":Hn.div,c=`link-control-settings-drawer-${He(Yme)}`;return a.jsxs(a.Fragment,{children:[a.jsx(fe,{__next40pxDefaultSize:!1,className:"block-editor-link-control__drawer-toggle","aria-expanded":t,onClick:()=>n(!t),icon:ft()?X_:jp,"aria-controls":c,children:Oe("Advanced","Additional link settings")}),a.jsx(r,{children:t&&a.jsx(s,{className:"block-editor-link-control__drawer",hidden:!t,id:c,initial:"collapsed",animate:"open",exit:"collapsed",variants:{open:{opacity:1,height:"auto"},collapsed:{opacity:0,height:0}},transition:{duration:.1},children:a.jsx("div",{className:"block-editor-link-control__drawer-inner",children:e})})})]})}const c8t=({searchTerm:e,onClick:t,itemProps:n,buttonText:o})=>{if(!e)return null;let r;return o?r=typeof o=="function"?o(e):o:r=z1(le(m("Create: %s"),e),{mark:a.jsx("mark",{})}),a.jsx(tt,{...n,iconPosition:"left",icon:as,className:"block-editor-link-control__search-item",onClick:t,children:r})},tZ={post:y7,page:Ja,post_tag:x7,category:d7,attachment:b7};function l8t({isURL:e,suggestion:t}){let n=null;return e?n=sle:t.type in tZ&&(n=tZ[t.type],t.type==="page"&&(t.isFrontPage&&(n=ile),t.isBlogHome&&(n=ow))),n?a.jsx(t0,{className:"block-editor-link-control__search-item-icon",icon:n}):null}function u8t(e){return e?.trim()?.length?e?.replace(/^\/?/,"/"):e}function d8t(e){return e?.trim()?.length?e?.replace(/\/$/,""):e}const p8t=(e,...t)=>(...n)=>e(...n,...t),f8t=e=>t=>t==null||t!==t?e:t;function b8t(e){return e&&Jl(Iz,rf,f8t(""),p8t(Dz,24),d8t,u8t)(e)}const h8t=({itemProps:e,suggestion:t,searchTerm:n,onClick:o,isURL:r=!1,shouldShowType:s=!1})=>{const i=r?m("Press ENTER to add this link"):b8t(t.url);return a.jsx(tt,{...e,info:i,iconPosition:"left",icon:a.jsx(l8t,{suggestion:t,isURL:r}),onClick:o,shortcut:s&&m8t(t),className:"block-editor-link-control__search-item",children:a.jsx(l2t,{text:Rr(t.title),highlight:n})})};function m8t(e){return e.isFrontPage?"front page":e.isBlogHome?"blog home":e.type==="post_tag"?"tag":e.type}const C5="__CREATE__",Zme="tel",Qme="link",Jme="mailto",eMe="internal",nZ=[Qme,Jme,Zme,eMe],tMe=[{id:"opensInNewTab",title:m("Open in new tab")}];function M8t({instanceId:e,withCreateSuggestion:t,currentInputValue:n,handleSuggestionClick:o,suggestionsListProps:r,buildSuggestionItemProps:s,suggestions:i,selectedSuggestion:c,isLoading:l,isInitialSuggestions:u,createSuggestionButtonText:d,suggestionsQuery:p}){const f=$("block-editor-link-control__search-results",{"is-loading":l}),b=i.length===1&&nZ.includes(i[0].type),h=t&&!b&&!u,g=!p?.type,z=`block-editor-link-control-search-results-label-${e}`,y=u?m("Suggestions"):le(m('Search results for "%s"'),n),x=a.jsx(Kt,{id:z,children:y});return a.jsxs("div",{className:"block-editor-link-control__search-results-wrapper",children:[x,a.jsx("div",{...r,className:f,"aria-labelledby":z,children:a.jsx(Yt,{children:i.map((v,M)=>h&&C5===v.type?a.jsx(c8t,{searchTerm:n,buttonText:d,onClick:()=>o(v),itemProps:s(v,M),isSelected:M===c},v.type):C5===v.type?null:a.jsx(h8t,{itemProps:s(v,M),suggestion:v,index:M,onClick:()=>{o(v)},isSelected:M===c,isURL:nZ.includes(v.type),searchTerm:n,shouldShowType:g,isFrontPage:v?.isFrontPage,isBlogHome:v?.isBlogHome},`${v.id}-${v.type}`))})})]})}const g8t=()=>Promise.resolve([]),z8t=e=>{let t=Qme;const n=zx(e)||"";return n.includes("mailto")&&(t=Jme),n.includes("tel")&&(t=Zme),e?.startsWith("#")&&(t=eMe),Promise.resolve([{id:e,title:e,url:t==="URL"?sf(e):e,type:t}])},O8t=async(e,t,n,o,r,s)=>{const{isInitialSuggestions:i}=t,c=await n(e,t);return c.map(l=>Number(l.id)===r?(l.isFrontPage=!0,l):(Number(l.id)===s&&(l.isBlogHome=!0),l)),i||rP(e)||!o?c:c.concat({title:e,url:e,type:C5})};function A8t(e,t,n){const{fetchSearchSuggestions:o,pageOnFront:r,pageForPosts:s}=D(c=>{const{getSettings:l}=c(F);return{pageOnFront:l().pageOnFront,pageForPosts:l().pageForPosts,fetchSearchSuggestions:l().__experimentalFetchLinkSuggestions}},[]),i=t?z8t:g8t;return O.useCallback((c,{isInitialSuggestions:l})=>rP(c)?i(c):O8t(c,{...e,isInitialSuggestions:l},o,n,r,s),[i,o,r,s,e,n])}const y8t=()=>Promise.resolve([]),HS=()=>{},nMe=O.forwardRef(({value:e,children:t,currentLink:n={},className:o=null,placeholder:r=null,withCreateSuggestion:s=!1,onCreateSuggestion:i=HS,onChange:c=HS,onSelect:l=HS,showSuggestions:u=!0,renderSuggestions:d=v=>a.jsx(M8t,{...v}),fetchSuggestions:p=null,allowDirectEntry:f=!0,showInitialSuggestions:b=!1,suggestionsQuery:h={},withURLSuggestion:g=!0,createSuggestionButtonText:z,hideLabelFromVision:y=!1},x)=>{const v=A8t(h,f,s),M=u?p||v:y8t,A=He(nMe),[_,w]=O.useState(),k=(C,T)=>{c(C),w(T)},q=C=>d({...C,instanceId:A,withCreateSuggestion:s,createSuggestionButtonText:z,suggestionsQuery:h,handleSuggestionClick:T=>{C.handleSuggestionClick&&C.handleSuggestionClick(T),S(T)}}),S=async C=>{let T=C;if(C5===C.type){try{T=await i(C.title),T?.url&&l(T)}catch{}return}if(f||T&&Object.keys(T).length>=1){const{id:W,url:B,...N}=n??{};l({...N,...T},T)}};return a.jsxs("div",{className:"block-editor-link-control__search-input-container",children:[a.jsx(TP,{disableSuggestions:n?.url===e,label:m("Link"),hideLabelFromVision:y,className:o,value:e,onChange:k,placeholder:r??m("Search or type URL"),__experimentalRenderSuggestions:u?q:null,__experimentalFetchLinkSuggestions:M,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:b,onSubmit:(C,T)=>{const W=C||_;!W&&!e?.trim()?.length?T.preventDefault():S(W||{url:e})},ref:x}),t]})}),{Slot:v8t,Fill:x8t}=_0("BlockEditorLinkControlViewer");function _8t(e,t){switch(t.type){case"RESOLVED":return{...e,isFetching:!1,richData:t.richData};case"ERROR":return{...e,isFetching:!1,richData:null};case"LOADING":return{...e,isFetching:!0};default:throw new Error(`Unexpected action type ${t.type}`)}}function w8t(e){const[t,n]=O.useReducer(_8t,{richData:null,isFetching:!1}),{fetchRichUrlData:o}=D(r=>{const{getSettings:s}=r(F);return{fetchRichUrlData:s().__experimentalFetchRichUrlData}},[]);return O.useEffect(()=>{if(e?.length&&o&&typeof AbortController<"u"){n({type:"LOADING"});const r=new window.AbortController,s=r.signal;return o(e,{signal:s}).then(i=>{n({type:"RESOLVED",richData:i})}).catch(()=>{s.aborted||n({type:"ERROR"})}),()=>{r.abort()}}},[e]),t}function k8t(e){return e.replace(/^[a-z\-.\+]+[0-9]*:(\/\/)?/i,"").replace(/^www\./i,"")}function q8t({value:e,onEditClick:t,hasRichPreviews:n=!1,hasUnlinkControl:o=!1,onRemove:r}){const s=D(y=>y(Qe).get("core","showIconLabels"),[]),i=n?e?.url:null,{richData:c,isFetching:l}=w8t(i),u=c&&Object.keys(c).length,d=e&&Dz(Iz(e.url),24)||"",p=!e?.url?.length,f=!p&&Rr(c?.title||e?.title||d),b=!e?.url||k8t(f)===d;let h;c?.icon?h=a.jsx("img",{src:c?.icon,alt:""}):p?h=a.jsx(t0,{icon:nZe,size:32}):h=a.jsx(t0,{icon:sle});const{createNotice:g}=ae(Ze),z=af(e.url,()=>{g("info",m("Link copied to clipboard."),{isDismissible:!0,type:"snackbar"})});return a.jsx("div",{"aria-label":m("Currently selected"),className:$("block-editor-link-control__search-item",{"is-current":!0,"is-rich":u,"is-fetching":!!l,"is-preview":!0,"is-error":p,"is-url-title":f===d}),children:a.jsxs("div",{className:"block-editor-link-control__search-item-top",children:[a.jsxs("span",{className:"block-editor-link-control__search-item-header",children:[a.jsx("span",{className:$("block-editor-link-control__search-item-icon",{"is-image":c?.icon}),children:h}),a.jsx("span",{className:"block-editor-link-control__search-item-details",children:p?a.jsx("span",{className:"block-editor-link-control__search-item-error-notice",children:m("Link is empty")}):a.jsxs(a.Fragment,{children:[a.jsx(S1,{className:"block-editor-link-control__search-item-title",href:e.url,children:a.jsx(Ho,{numberOfLines:1,children:f})}),!b&&a.jsx("span",{className:"block-editor-link-control__search-item-info",children:a.jsx(Ho,{numberOfLines:1,children:d})})]})})]}),a.jsx(fe,{icon:nl,label:m("Edit link"),onClick:t,size:"compact"}),o&&a.jsx(fe,{icon:Xu,label:m("Remove link"),onClick:r,size:"compact"}),a.jsx(fe,{icon:Gce,label:le(m("Copy link%s"),p||s?"":": "+e.url),ref:z,accessibleWhenDisabled:!0,disabled:p,size:"compact"}),a.jsx(v8t,{fillProps:e})]})})}const S8t=()=>{},C8t=({value:e,onChange:t=S8t,settings:n})=>{if(!n||!n.length)return null;const o=s=>i=>{t({...e,[s.id]:i})},r=n.map(s=>a.jsx(Bo,{__nextHasNoMarginBottom:!0,className:"block-editor-link-control__setting",label:s.title,onChange:o(s),checked:e?!!e[s.id]:!1,help:s?.help},s.id));return a.jsxs("fieldset",{className:"block-editor-link-control__settings",children:[a.jsx(Kt,{as:"legend",children:m("Currently selected link settings")}),r]})};function R8t(e){const t=O.useRef(),[n,o]=O.useState(!1),[r,s]=O.useState(null),i=async function(c){o(!0),s(null);try{return t.current=W8t(Promise.resolve(e(c))),await t.current.promise}catch(l){if(l&&l.isCanceled)return;throw s(l.message||m("An unknown error occurred during creation. Please try again.")),l}finally{o(!1)}};return O.useEffect(()=>()=>{t.current&&t.current.cancel()},[]),{createPage:i,isCreatingPage:n,errorMessage:r}}const W8t=e=>{let t=!1;return{promise:new Promise((o,r)=>{e.then(s=>t?r({isCanceled:!0}):o(s),s=>r(t?{isCanceled:!0}:s))}),cancel(){t=!0}}};var T8t=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var o,r,s;if(Array.isArray(t)){if(o=t.length,o!=n.length)return!1;for(r=o;r--!==0;)if(!e(t[r],n[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(s=Object.keys(t),o=s.length,o!==Object.keys(n).length)return!1;for(r=o;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,s[r]))return!1;for(r=o;r--!==0;){var i=s[r];if(!e(t[i],n[i]))return!1}return!0}return t!==t&&n!==n};const oMe=yo(T8t);function E8t(e){const[t,n]=O.useState(e||{}),[o,r]=O.useState(e);return oMe(e,o)||(r(e),n(e)),[t,n,l=>{n({...t,url:l})},l=>{n({...t,title:l})},l=>u=>{const d=Object.keys(u).reduce((p,f)=>(l.includes(f)&&(p[f]=u[f]),p),{});n({...t,...d})}]}const US=()=>{},oZ="core/block-editor",rZ="linkControlSettingsDrawer";function Va({searchInputPlaceholder:e,value:t,settings:n=tMe,onChange:o=US,onRemove:r,onCancel:s,noDirectEntry:i=!1,showSuggestions:c=!0,showInitialSuggestions:l,forceIsEditingLink:u,createSuggestion:d,withCreateSuggestion:p,inputValue:f="",suggestionsQuery:b={},noURLSuggestion:h=!1,createSuggestionButtonText:g,hasRichPreviews:z=!1,hasTextControl:y=!1,renderControlBottom:x=null}){p===void 0&&d&&(p=!0);const[v,M]=O.useState(!1),{advancedSettingsPreference:A}=D(R=>{var j;return{advancedSettingsPreference:(j=R(Qe).get(oZ,rZ))!==null&&j!==void 0?j:!1}},[]),{set:_}=ae(Qe),w=R=>{_&&_(oZ,rZ,R),M(R)},k=A||v,q=O.useRef(!0),S=O.useRef(),C=O.useRef(),T=O.useRef(!1),W=n.map(({id:R})=>R),[B,N,E,L,I]=E8t(t),P=t&&!J0e(B,t),[H,U]=O.useState(u!==void 0?u:!t||!t.url),{createPage:X,isCreatingPage:Z,errorMessage:ne}=R8t(d);O.useEffect(()=>{u!==void 0&&U(u)},[u]),O.useEffect(()=>{if(q.current)return;(Nn.focusable.find(S.current)[0]||S.current).focus(),T.current=!1},[H,Z]),O.useEffect(()=>(q.current=!1,()=>{q.current=!0}),[]);const oe=t?.url?.trim()?.length>0,Y=()=>{T.current=!!S.current?.contains(S.current.ownerDocument.activeElement),U(!1)},ee=R=>{const j=Object.keys(R).reduce((V,de)=>(W.includes(de)||(V[de]=R[de]),V),{});o({...B,...j,title:B?.title||R?.title}),Y()},ie=()=>{P&&o({...t,...B,url:xe}),Y()},se=R=>{const{keyCode:j}=R;j===y1&&!K&&(R.preventDefault(),ie())},be=()=>{N(t)},ye=R=>{R.preventDefault(),R.stopPropagation(),be(),oe?Y():r?.(),s?.()},xe=f||B?.url||"",K=!xe?.trim()?.length,pe=r&&t&&!H&&!Z,G=H&&oe,re=oe&&y,Me=(H||!t)&&!Z,he=!P||K,Q=!!n?.length&&H&&oe;return a.jsxs("div",{tabIndex:-1,ref:S,className:"block-editor-link-control",children:[Z&&a.jsxs("div",{className:"block-editor-link-control__loading",children:[a.jsx(u0,{})," ",m("Creating"),"…"]}),Me&&a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:$({"block-editor-link-control__search-input-wrapper":!0,"has-text-control":re,"has-actions":G}),children:[re&&a.jsx($t,{__nextHasNoMarginBottom:!0,ref:C,className:"block-editor-link-control__field block-editor-link-control__text-content",label:m("Text"),value:B?.title,onChange:L,onKeyDown:se,size:"__unstable-large"}),a.jsx(nMe,{currentLink:t,className:"block-editor-link-control__field block-editor-link-control__search-input",placeholder:e,value:xe,withCreateSuggestion:p,onCreateSuggestion:X,onChange:E,onSelect:ee,showInitialSuggestions:l,allowDirectEntry:!i,showSuggestions:c,suggestionsQuery:b,withURLSuggestion:!h,createSuggestionButtonText:g,hideLabelFromVision:!re}),!G&&a.jsx("div",{className:"block-editor-link-control__search-enter",children:a.jsx(fe,{__next40pxDefaultSize:!1,onClick:he?US:ie,label:m("Submit"),icon:J_,className:"block-editor-link-control__search-submit","aria-disabled":he})})]}),ne&&a.jsx(os,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1,children:ne})]}),t&&!H&&!Z&&a.jsx(q8t,{value:t,onEditClick:()=>U(!0),hasRichPreviews:z,hasUnlinkControl:pe,onRemove:()=>{r(),U(!0)}},t?.url),Q&&a.jsx("div",{className:"block-editor-link-control__tools",children:!K&&a.jsx(Yme,{settingsOpen:k,setSettingsOpen:w,children:a.jsx(C8t,{value:B,settings:n,onChange:I(W)})})}),G&&a.jsxs(Je,{justify:"right",className:"block-editor-link-control__search-actions",children:[a.jsx(fe,{__next40pxDefaultSize:!1,variant:"tertiary",onClick:ye,children:m("Cancel")}),a.jsx(fe,{__next40pxDefaultSize:!1,variant:"primary",onClick:he?US:ie,className:"block-editor-link-control__search-submit","aria-disabled":he,children:m("Save")})]}),!Z&&x&&x()]})}Va.ViewerFill=x8t;Va.DEFAULT_LINK_SETTINGS=tMe;const sy=1.5,sZ=.01,iZ=10,rMe="";function B8t(e){return e!==void 0&&e!==rMe}const N8t=({__next40pxDefaultSize:e=!1,value:t,onChange:n,__unstableInputWidth:o="60px",...r})=>{const s=B8t(t),i=(d,p)=>{if(s)return d;const f=sZ*iZ;switch(`${d}`){case`${f}`:return sy+f;case"0":return p?d:sy-f;case"":return sy;default:return d}},c=(d,p)=>{const f=["insertText","insertFromPaste"].includes(p.payload.event.nativeEvent?.inputType),b=i(d.value,f);return{...d,value:b}},l=s?t:rMe,u=(d,{event:p})=>{if(d===""){n();return}if(p.type==="click"){n(i(`${d}`,!1));return}n(`${d}`)};return a.jsx("div",{className:"block-editor-line-height-control",children:a.jsx(T1,{...r,__next40pxDefaultSize:e,__unstableInputWidth:o,__unstableStateReducer:c,onChange:u,label:m("Line height"),placeholder:sy,step:sZ,spinFactor:iZ,value:l,min:0,spinControls:"custom"})})},L8t=()=>{};let j8t=0;const P8t=({mediaURL:e,mediaId:t,mediaIds:n,allowedTypes:o,accept:r,onError:s,onSelect:i,onSelectURL:c,onReset:l,onToggleFeaturedImage:u,useFeaturedImage:d,onFilesUpload:p=L8t,name:f=m("Replace"),createNotice:b,removeNotice:h,children:g,multiple:z=!1,addToGallery:y,handleUpload:x=!0,popoverProps:v})=>{const M=D(B=>B(F).getSettings().mediaUpload,[]),A=!!M,_=O.useRef(),w=`block-editor/media-replace-flow/error-notice/${++j8t}`,k=B=>{const N=Rr(B);if(s){s(N);return}setTimeout(()=>{b("error",N,{speak:!0,id:w,isDismissible:!0})},1e3)},q=(B,N)=>{d&&u&&u(),N(),i(B),At(m("The media file has been replaced")),h(w)},S=(B,N)=>{const E=B.target.files;if(!x)return N(),i(E);p(E),M({allowedTypes:o,filesList:E,onFileChange:([L])=>{q(L,N)},onError:k})},C=B=>{B.keyCode===Do&&(B.preventDefault(),B.target.click())},W=z&&(!o||o.length===0?!1:o.every(B=>B==="image"||B.startsWith("image/")));return a.jsx(B0,{popoverProps:v,contentClassName:"block-editor-media-replace-flow__options",renderToggle:({isOpen:B,onToggle:N})=>a.jsx(bt,{ref:_,"aria-expanded":B,"aria-haspopup":"true",onClick:N,onKeyDown:C,children:f}),renderContent:({onClose:B})=>a.jsxs(a.Fragment,{children:[a.jsxs(xf,{className:"block-editor-media-replace-flow__media-upload-menu",children:[a.jsxs(cl,{children:[a.jsx(Od,{gallery:W,addToGallery:y,multiple:z,value:z?n:t,onSelect:N=>q(N,B),allowedTypes:o,render:({open:N})=>a.jsx(tt,{icon:g7,onClick:N,children:m("Open Media Library")})}),a.jsx(r5,{onChange:N=>{S(N,B)},accept:r,multiple:!!z,render:({openFileDialog:N})=>a.jsx(tt,{icon:Wh,onClick:()=>{N()},children:m("Upload")})})]}),u&&a.jsx(tt,{icon:Mle,onClick:u,isPressed:d,children:m("Use featured image")}),e&&l&&a.jsx(tt,{onClick:()=>{l(),B()},children:m("Reset")}),typeof g=="function"?g({onClose:B}):g]}),c&&a.jsxs("form",{className:$("block-editor-media-flow__url-input",{"has-siblings":A||u}),children:[a.jsx("span",{className:"block-editor-media-replace-flow__image-url-label",children:m("Current media URL:")}),a.jsx(Va,{value:{url:e},settings:[],showSuggestions:!1,onChange:({url:N})=>{c(N),_.current.focus()}})]})]})})},rc=v0([Fi(e=>{const{createNotice:t,removeNotice:n}=e(Ze);return{createNotice:t,removeNotice:n}}),gd("editor.MediaReplaceFlow")])(P8t);function I8t({url:e,urlLabel:t,className:n}){const o=$(n,"block-editor-url-popover__link-viewer-url");return e?a.jsx(S1,{className:o,href:e,children:t||Dz(Iz(e))}):a.jsx("span",{className:o})}function D8t({className:e,linkClassName:t,onEditLinkClick:n,url:o,urlLabel:r,...s}){return a.jsxs("div",{className:$("block-editor-url-popover__link-viewer",e),...s,children:[a.jsx(I8t,{url:o,urlLabel:r,className:t}),n&&a.jsx(fe,{icon:nl,label:m("Edit"),onClick:n,size:"compact"})]})}function sMe(e){return typeof e=="function"}class F8t extends O.Component{constructor(t){super(t),this.onChange=this.onChange.bind(this),this.onFocus=this.onFocus.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.selectLink=this.selectLink.bind(this),this.handleOnClick=this.handleOnClick.bind(this),this.bindSuggestionNode=this.bindSuggestionNode.bind(this),this.autocompleteRef=t.autocompleteRef||O.createRef(),this.inputRef=O.createRef(),this.updateSuggestions=jr(this.updateSuggestions.bind(this),200),this.suggestionNodes=[],this.suggestionsRequest=null,this.state={suggestions:[],showSuggestions:!1,suggestionsValue:null,selectedSuggestion:null,suggestionsListboxId:"",suggestionOptionIdPrefix:""}}componentDidUpdate(t){const{showSuggestions:n,selectedSuggestion:o}=this.state,{value:r,__experimentalShowInitialSuggestions:s=!1}=this.props;n&&o!==null&&this.suggestionNodes[o]&&this.suggestionNodes[o].scrollIntoView({behavior:"instant",block:"nearest",inline:"nearest"}),t.value!==r&&!this.props.disableSuggestions&&(r?.length?this.updateSuggestions(r):s&&this.updateSuggestions())}componentDidMount(){this.shouldShowInitialSuggestions()&&this.updateSuggestions()}componentWillUnmount(){this.suggestionsRequest?.cancel?.(),this.suggestionsRequest=null}bindSuggestionNode(t){return n=>{this.suggestionNodes[t]=n}}shouldShowInitialSuggestions(){const{__experimentalShowInitialSuggestions:t=!1,value:n}=this.props;return t&&!(n&&n.length)}updateSuggestions(t=""){const{__experimentalFetchLinkSuggestions:n,__experimentalHandleURLSuggestions:o}=this.props;if(!n)return;const r=!t?.length;if(t=t.trim(),!r&&(t.length<2||!o&&of(t))){this.suggestionsRequest?.cancel?.(),this.suggestionsRequest=null,this.setState({suggestions:[],showSuggestions:!1,suggestionsValue:t,selectedSuggestion:null,loading:!1});return}this.setState({selectedSuggestion:null,loading:!0});const s=n(t,{isInitialSuggestions:r});s.then(i=>{this.suggestionsRequest===s&&(this.setState({suggestions:i,suggestionsValue:t,loading:!1,showSuggestions:!!i.length}),i.length?this.props.debouncedSpeak(le(a0("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",i.length),i.length),"assertive"):this.props.debouncedSpeak(m("No results."),"assertive"))}).catch(()=>{this.suggestionsRequest===s&&this.setState({loading:!1})}).finally(()=>{this.suggestionsRequest===s&&(this.suggestionsRequest=null)}),this.suggestionsRequest=s}onChange(t){this.props.onChange(t.target.value)}onFocus(){const{suggestions:t}=this.state,{disableSuggestions:n,value:o}=this.props;o&&!n&&!(t&&t.length)&&this.suggestionsRequest===null&&this.updateSuggestions(o)}onKeyDown(t){this.props.onKeyDown?.(t);const{showSuggestions:n,selectedSuggestion:o,suggestions:r,loading:s}=this.state;if(!n||!r.length||s){switch(t.keyCode){case xi:{t.target.selectionStart!==0&&(t.preventDefault(),t.target.setSelectionRange(0,0));break}case Do:{this.props.value.length!==t.target.selectionStart&&(t.preventDefault(),t.target.setSelectionRange(this.props.value.length,this.props.value.length));break}case y1:{this.props.onSubmit&&(t.preventDefault(),this.props.onSubmit(null,t));break}}return}const i=this.state.suggestions[this.state.selectedSuggestion];switch(t.keyCode){case xi:{t.preventDefault();const c=o?o-1:r.length-1;this.setState({selectedSuggestion:c});break}case Do:{t.preventDefault();const c=o===null||o===r.length-1?0:o+1;this.setState({selectedSuggestion:c});break}case qp:{this.state.selectedSuggestion!==null&&(this.selectLink(i),this.props.speak(m("Link selected.")));break}case y1:{t.preventDefault(),this.state.selectedSuggestion!==null?(this.selectLink(i),this.props.onSubmit&&this.props.onSubmit(i,t)):this.props.onSubmit&&this.props.onSubmit(null,t);break}}}selectLink(t){this.props.onChange(t.url,t),this.setState({selectedSuggestion:null,showSuggestions:!1})}handleOnClick(t){this.selectLink(t),this.inputRef.current.focus()}static getDerivedStateFromProps({value:t,instanceId:n,disableSuggestions:o,__experimentalShowInitialSuggestions:r=!1},{showSuggestions:s}){let i=s;const c=t&&t.length;return!r&&!c&&(i=!1),o===!0&&(i=!1),{showSuggestions:i,suggestionsListboxId:`block-editor-url-input-suggestions-${n}`,suggestionOptionIdPrefix:`block-editor-url-input-suggestion-${n}`}}render(){return a.jsxs(a.Fragment,{children:[this.renderControl(),this.renderSuggestions()]})}renderControl(){const{label:t=null,className:n,isFullWidth:o,instanceId:r,placeholder:s=m("Paste URL or type to search"),__experimentalRenderControl:i,value:c="",hideLabelFromVision:l=!1}=this.props,{loading:u,showSuggestions:d,selectedSuggestion:p,suggestionsListboxId:f,suggestionOptionIdPrefix:b}=this.state,h=`url-input-control-${r}`,g={id:h,label:t,className:$("block-editor-url-input",n,{"is-full-width":o}),hideLabelFromVision:l},z={id:h,value:c,required:!0,className:"block-editor-url-input__input",type:"text",onChange:this.onChange,onFocus:this.onFocus,placeholder:s,onKeyDown:this.onKeyDown,role:"combobox","aria-label":t?void 0:m("URL"),"aria-expanded":d,"aria-autocomplete":"list","aria-owns":f,"aria-activedescendant":p!==null?`${b}-${p}`:void 0,ref:this.inputRef};return i?i(g,z,u):a.jsxs(z0,{__nextHasNoMarginBottom:!0,...g,children:[a.jsx("input",{...z}),u&&a.jsx(u0,{})]})}renderSuggestions(){const{className:t,__experimentalRenderSuggestions:n}=this.props,{showSuggestions:o,suggestions:r,suggestionsValue:s,selectedSuggestion:i,suggestionsListboxId:c,suggestionOptionIdPrefix:l,loading:u}=this.state;if(!o||r.length===0)return null;const d={id:c,ref:this.autocompleteRef,role:"listbox"},p=(f,b)=>({role:"option",tabIndex:"-1",id:`${l}-${b}`,ref:this.bindSuggestionNode(b),"aria-selected":b===i?!0:void 0});return sMe(n)?n({suggestions:r,selectedSuggestion:i,suggestionsListProps:d,buildSuggestionItemProps:p,isLoading:u,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:!s?.length,currentInputValue:s}):a.jsx(Mn,{placement:"bottom",focusOnMount:!1,children:a.jsx("div",{...d,className:$("block-editor-url-input__suggestions",`${t}__suggestions`),children:r.map((f,b)=>O.createElement(fe,{__next40pxDefaultSize:!1,...p(f,b),key:f.id,className:$("block-editor-url-input__suggestion",{"is-selected":b===i}),onClick:()=>this.handleOnClick(f)},f.title))})})}}const TP=v0(h6e,bft,b6e,Xo((e,t)=>{if(sMe(t.__experimentalFetchLinkSuggestions))return;const{getSettings:n}=e(F);return{__experimentalFetchLinkSuggestions:n().__experimentalFetchLinkSuggestions}}))(F8t);function $8t({autocompleteRef:e,className:t,onChangeInputValue:n,value:o,...r}){return a.jsxs("form",{className:$("block-editor-url-popover__link-editor",t),...r,children:[a.jsx(TP,{value:o,onChange:n,autocompleteRef:e}),a.jsx(fe,{icon:J_,label:m("Apply"),type:"submit",size:"compact"})]})}const{__experimentalPopoverLegacyPositionToPlacement:V8t}=Fe(L0),H8t="bottom",Mp=O.forwardRef(({additionalControls:e,children:t,renderSettings:n,placement:o,focusOnMount:r="firstElement",position:s,...i},c)=>{s!==void 0&&Re("`position` prop in wp.blockEditor.URLPopover",{since:"6.2",alternative:"`placement` prop"});let l;o!==void 0?l=o:s!==void 0&&(l=V8t(s)),l=l||H8t;const[u,d]=O.useState(!1),p=!!n&&u,f=()=>{d(!u)};return a.jsxs(Mn,{ref:c,role:"dialog","aria-modal":"true","aria-label":m("Edit URL"),className:"block-editor-url-popover",focusOnMount:r,placement:l,shift:!0,variant:"toolbar",...i,children:[a.jsx("div",{className:"block-editor-url-popover__input-container",children:a.jsxs("div",{className:"block-editor-url-popover__row",children:[t,!!n&&a.jsx(fe,{className:"block-editor-url-popover__settings-toggle",icon:md,label:m("Link settings"),onClick:f,"aria-expanded":u,size:"compact"})]})}),p&&a.jsx("div",{className:"block-editor-url-popover__settings",children:n()}),e&&!p&&a.jsx("div",{className:"block-editor-url-popover__additional-controls",children:e})]})});Mp.LinkEditor=$8t;Mp.LinkViewer=D8t;const U8t=()=>{},X8t=({src:e,onChange:t,onSubmit:n,onClose:o,popoverAnchor:r})=>a.jsx(Mp,{anchor:r,onClose:o,children:a.jsxs("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:n,children:[a.jsx("input",{className:"block-editor-media-placeholder__url-input-field",type:"text","aria-label":m("URL"),placeholder:m("Paste or type URL"),onChange:t,value:e}),a.jsx(fe,{__next40pxDefaultSize:!1,className:"block-editor-media-placeholder__url-input-submit-button",icon:J_,label:m("Apply"),type:"submit"})]})}),G8t=({src:e,onChangeSrc:t,onSelectURL:n})=>{const[o,r]=O.useState(null),[s,i]=O.useState(!1),c=()=>{i(!0)},l=()=>{i(!1),o?.focus()},u=d=>{d.preventDefault(),e&&n&&(n(e),l())};return a.jsxs("div",{className:"block-editor-media-placeholder__url-input-container",children:[a.jsx(fe,{__next40pxDefaultSize:!1,className:"block-editor-media-placeholder__button",onClick:c,isPressed:s,variant:"secondary","aria-haspopup":"dialog",ref:r,children:m("Insert from URL")}),s&&a.jsx(X8t,{src:e,onChange:t,onSubmit:u,onClose:l,popoverAnchor:o})]})};function K8t({value:e={},allowedTypes:t,className:n,icon:o,labels:r={},mediaPreview:s,notices:i,isAppender:c,accept:l,addToGallery:u,multiple:d=!1,handleUpload:p=!0,disableDropZone:f,disableMediaButtons:b,onError:h,onSelect:g,onCancel:z,onSelectURL:y,onToggleFeaturedImage:x,onDoubleClick:v,onFilesPreUpload:M=U8t,onHTMLDrop:A,children:_,mediaLibraryButton:w,placeholder:k,style:q}){A&&Re("wp.blockEditor.MediaPlaceholder onHTMLDrop prop",{since:"6.2",version:"6.4"});const S=D(Y=>{const{getSettings:ee}=Y(F);return ee().mediaUpload},[]),[C,T]=O.useState("");O.useEffect(()=>{var Y;T((Y=e?.src)!==null&&Y!==void 0?Y:"")},[e?.src]);const W=()=>!t||t.length===0?!1:t.every(Y=>Y==="image"||Y.startsWith("image/")),B=Y=>{T(Y.target.value)},N=Y=>{if(!p)return g(Y);M(Y);let ee;if(d)if(u){let ie=[];ee=se=>{const be=(e??[]).filter(ye=>ye.id?!ie.some(({id:xe})=>Number(xe)===Number(ye.id)):!ie.some(({urlSlug:xe})=>ye.url.includes(xe)));g(be.concat(se)),ie=se.map(ye=>{const xe=ye.url.lastIndexOf("."),K=ye.url.slice(0,xe);return{id:ye.id,urlSlug:K}})}}else ee=g;else ee=([ie])=>g(ie);S({allowedTypes:t,filesList:Y,onFileChange:ee,onError:h})};async function E(Y){if(!Y||!Array.isArray(Y))return;function ee(be){return be.flatMap(ye=>(ye.name==="core/image"||ye.name==="core/audio"||ye.name==="core/video")&&ye.attributes.url?[ye]:ee(ye.innerBlocks))}const ie=ee(Y);if(!ie.length)return;const se=await Promise.all(ie.map(be=>be.attributes.id?be.attributes:new Promise((ye,xe)=>{window.fetch(be.attributes.url).then(K=>K.blob()).then(K=>S({filesList:[K],additionalData:{title:be.attributes.title,alt_text:be.attributes.alt,caption:be.attributes.caption},onFileChange:([pe])=>{pe.id&&ye(pe)},allowedTypes:t,onError:xe})).catch(()=>ye(be.attributes.url))}))).catch(be=>h(be));g(d?se:se[0])}async function L(Y){const ee=Mf({HTML:Y});return await E(ee)}const I=Y=>{N(Y.target.files)},H=k??(Y=>{let{instructions:ee,title:ie}=r;if(!S&&!y&&(ee=m("To edit this block, you need permission to upload media.")),ee===void 0||ie===void 0){const be=t??[],[ye]=be,xe=be.length===1,K=xe&&ye==="audio",pe=xe&&ye==="image",G=xe&&ye==="video";ee===void 0&&S&&(ee=m("Upload a media file or pick one from your media library."),K?ee=m("Upload an audio file, pick one from your media library, or add one with a URL."):pe?ee=m("Upload an image file, pick one from your media library, or add one with a URL."):G&&(ee=m("Upload a video file, pick one from your media library, or add one with a URL."))),ie===void 0&&(ie=m("Media"),K?ie=m("Audio"):pe?ie=m("Image"):G&&(ie=m("Video")))}const se=$("block-editor-media-placeholder",n,{"is-appender":c});return a.jsxs(D0,{icon:o,label:ie,instructions:ee,className:se,notices:i,onDoubleClick:v,preview:s,style:q,children:[Y,_]})}),U=()=>f?null:a.jsx(Sw,{onFilesDrop:N,onHTMLDrop:L}),X=()=>z&&a.jsx(fe,{__next40pxDefaultSize:!1,className:"block-editor-media-placeholder__cancel-button",title:m("Cancel"),variant:"link",onClick:z,children:m("Cancel")}),Z=()=>y&&a.jsx(G8t,{src:C,onChangeSrc:B,onSelectURL:y}),ne=()=>x&&a.jsx("div",{className:"block-editor-media-placeholder__url-input-container",children:a.jsx(fe,{__next40pxDefaultSize:!1,className:"block-editor-media-placeholder__button",onClick:x,variant:"secondary",children:m("Use featured image")})}),oe=()=>{const ee=w??(({open:se})=>a.jsx(fe,{__next40pxDefaultSize:!1,variant:"secondary",onClick:()=>{se()},children:m("Media Library")})),ie=a.jsx(Od,{addToGallery:u,gallery:d&&W(),multiple:d,onSelect:g,allowedTypes:t,mode:"browse",value:Array.isArray(e)?e.map(({id:se})=>se):e.id,render:ee});if(S&&c)return a.jsxs(a.Fragment,{children:[U(),a.jsx(r5,{onChange:I,accept:l,multiple:!!d,render:({openFileDialog:se})=>{const be=a.jsxs(a.Fragment,{children:[a.jsx(fe,{__next40pxDefaultSize:!1,variant:"primary",className:$("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onClick:se,children:m("Upload")}),ie,Z(),ne(),X()]});return H(be)}})]});if(S){const se=a.jsxs(a.Fragment,{children:[U(),a.jsx(r5,{render:({openFileDialog:be})=>a.jsx(fe,{__next40pxDefaultSize:!1,onClick:be,variant:"primary",className:$("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),children:m("Upload")}),onChange:I,accept:l,multiple:!!d}),ie,Z(),ne(),X()]});return H(se)}return H(ie)};return b?a.jsx(cl,{children:U()}):a.jsx(cl,{fallback:H(Z()),children:oe()})}const kl=gd("editor.MediaPlaceholder")(K8t),Y8t={placement:"bottom-start"},iMe=()=>a.jsxs(a.Fragment,{children:[["bold","italic","link","unknown"].map(e=>a.jsx(Dp,{name:`RichText.ToolbarControls.${e}`},e)),a.jsx(Dp,{name:"RichText.ToolbarControls",children:e=>{if(!e.length)return null;const n=e.map(([{props:o}])=>o).some(({isActive:o})=>o);return a.jsx(Ko,{children:o=>a.jsx(E1,{icon:md,label:m("More"),toggleProps:{...o,className:$(o.className,{"is-pressed":n}),description:m("Displays more block tools")},controls:H3(e.map(([{props:r}])=>r),"title"),popoverProps:Y8t})})}})]});function Z8t({popoverAnchor:e}){return a.jsx(Mn,{placement:"top",focusOnMount:!1,anchor:e,className:"block-editor-rich-text__inline-format-toolbar",__unstableSlotName:"block-toolbar",children:a.jsx(vk,{className:"block-editor-rich-text__inline-format-toolbar-group","aria-label":m("Format tools"),children:a.jsx(c0,{children:a.jsx(iMe,{})})})})}const Q8t=({inline:e,editableContentElement:t})=>e?a.jsx(Z8t,{popoverAnchor:t}):a.jsx(Ie,{group:"inline",children:a.jsx(iMe,{})});function J8t({html:e,value:t}){const n=O.useRef(),o=!!t.activeFormats?.length,{__unstableMarkLastChangeAsPersistent:r}=ae(F);O.useLayoutEffect(()=>{if(!n.current){n.current=t.text;return}if(n.current!==t.text){const s=window.setTimeout(()=>{r()},1e3);return n.current=t.text,()=>{window.clearTimeout(s)}}r()},[e,o])}function eWt(e){return e(xc).getFormatTypes()}const tWt=new Set(["a","audio","button","details","embed","iframe","input","label","select","textarea","video"]);function nWt(e,t){return typeof e!="object"?{[t]:e}:Object.fromEntries(Object.entries(e).map(([n,o])=>[`${t}.${n}`,o]))}function aZ(e,t){return e[t]?e[t]:Object.keys(e).filter(n=>n.startsWith(t+".")).reduce((n,o)=>(n[o.slice(t.length+1)]=e[o],n),{})}function oWt({clientId:e,identifier:t,withoutInteractiveFormatting:n,allowedFormats:o}){const r=D(eWt,[]),s=O.useMemo(()=>r.filter(({name:f,interactive:b,tagName:h})=>!(o&&!o.includes(f)||n&&(b||tWt.has(h)))),[r,o,n]),i=D(f=>s.reduce((b,h)=>h.__experimentalGetPropsForEditableTreePreparation?{...b,...nWt(h.__experimentalGetPropsForEditableTreePreparation(f,{richTextIdentifier:t,blockClientId:e}),h.name)}:b,{}),[s,e,t]),c=ae(),l=[],u=[],d=[],p=[];for(const f in i)p.push(i[f]);return s.forEach(f=>{if(f.__experimentalCreatePrepareEditableTree){const b=f.__experimentalCreatePrepareEditableTree(aZ(i,f.name),{richTextIdentifier:t,blockClientId:e});f.__experimentalCreateOnChangeEditableValue?u.push(b):l.push(b)}if(f.__experimentalCreateOnChangeEditableValue){let b={};f.__experimentalGetPropsForEditableTreeChangeHandler&&(b=f.__experimentalGetPropsForEditableTreeChangeHandler(c,{richTextIdentifier:t,blockClientId:e}));const h=aZ(i,f.name);d.push(f.__experimentalCreateOnChangeEditableValue({...typeof h=="object"?h:{},...b},{richTextIdentifier:t,blockClientId:e}))}}),{formatTypes:s,prepareHandlers:l,valueHandlers:u,changeHandlers:d,dependencies:p}}const rWt=["`",'"',"'","“”","‘’"],sWt=e=>t=>{function n(o){const{inputType:r,data:s}=o,{value:i,onChange:c,registry:l}=e.current;if(r!=="insertText"||lf(i))return;const u=_n("blockEditor.wrapSelectionSettings",rWt).find(([A,_])=>A===s||_===s);if(!u)return;const[d,p=d]=u,f=i.start,b=i.end+d.length;let h=Y1(i,d,f,f);h=Y1(h,p,b,b);const{__unstableMarkLastChangeAsPersistent:g,__unstableMarkAutomaticChange:z}=l.dispatch(F);g(),c(h),z();const y={};for(const A in o)y[A]=o[A];y.data=p;const{ownerDocument:x}=t,{defaultView:v}=x,M=new v.InputEvent("input",y);window.queueMicrotask(()=>{o.target.dispatchEvent(M)}),o.preventDefault()}return t.addEventListener("beforeinput",n),()=>{t.removeEventListener("beforeinput",n)}};function iWt(e){const t="tales of gutenberg",n=" 🐡🐢🦀🐤🦋🐘🐧🐹🦁🦄🦍🐼🐿🎃🐴🐝🐆🦕🦔🌱🍇π🍌🐉💧🥨🌌🍂🍠🥦🥚🥝🎟🥥🥒🛵🥖🍒🍯🎾🎲🐺🐚🐮⌛️",{start:o,text:r}=e;return ot=>{function n(){const{getValue:r,onReplace:s,selectionChange:i,registry:c}=e.current;if(!s)return;const l=r(),{start:u,text:d}=l;if(d.slice(u-1,u)!==" ")return;const f=d.slice(0,u).trim(),b=Ys("from").filter(({type:y})=>y==="prefix"),h=Ia(b,({prefix:y})=>f===y);if(!h)return;const g=K1({value:Y1(l,Gp,0,u)}),z=h.transform(g);return i(...aMe([z])),s([z]),c.dispatch(F).__unstableMarkAutomaticChange(),!0}function o(r){const{inputType:s,type:i}=r,{getValue:c,onChange:l,__unstableAllowPrefixTransformations:u,formatTypes:d,registry:p}=e.current;if(s!=="insertText"&&i!=="compositionend"||u&&n())return;const f=c(),b=d.reduce((z,{__unstableInputRule:y})=>(y&&(z=y(z)),z),iWt(f)),{__unstableMarkLastChangeAsPersistent:h,__unstableMarkAutomaticChange:g}=p.dispatch(F);b!==f&&(h(),l({...b,activeFormats:f.activeFormats}),g())}return t.addEventListener("input",o),t.addEventListener("compositionend",o),()=>{t.removeEventListener("input",o),t.removeEventListener("compositionend",o)}},cWt=e=>t=>{function n(o){if(o.inputType!=="insertReplacementText")return;const{registry:r}=e.current;r.dispatch(F).__unstableMarkLastChangeAsPersistent()}return t.addEventListener("beforeinput",n),()=>{t.removeEventListener("beforeinput",n)}},lWt=()=>e=>{function t(n){($s.primary(n,"z")||$s.primary(n,"y")||$s.primaryShift(n,"z"))&&n.preventDefault()}return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}},uWt=e=>t=>{const{keyboardShortcuts:n}=e.current;function o(r){for(const s of n.current)s(r)}return t.addEventListener("keydown",o),()=>{t.removeEventListener("keydown",o)}},dWt=e=>t=>{const{inputEvents:n}=e.current;function o(r){for(const s of n.current)s(r)}return t.addEventListener("input",o),()=>{t.removeEventListener("input",o)}},pWt=e=>t=>{function n(o){const{keyCode:r}=o;if(o.defaultPrevented||r!==Si&&r!==Ea)return;const{registry:s}=e.current,{didAutomaticChange:i,getSettings:c}=s.select(F),{__experimentalUndo:l}=c();l&&i()&&(o.preventDefault(),l())}return t.addEventListener("keydown",n),()=>{t.removeEventListener("keydown",n)}};function fWt(e,t){if(t?.length){let n=e.formats.length;for(;n--;)e.formats[n]=[...t,...e.formats[n]||[]]}}function cMe(e){if(!(e!==!0&&e!=="p"&&e!=="li"))return e===!0?"p":e}function EP({allowedFormats:e,disableFormats:t}){return t?EP.EMPTY_ARRAY:e}EP.EMPTY_ARRAY=[];const bWt=e=>t=>{function n(r){const{disableFormats:s,onChange:i,value:c,formatTypes:l,tagName:u,onReplace:d,__unstableEmbedURLOnPaste:p,preserveWhiteSpace:f,pastePlainText:b}=e.current,{ownerDocument:h}=t,{defaultView:g}=h,{anchorNode:z,focusNode:y}=g.getSelection();if(!(t.contains(z)&&t.contains(y))||r.defaultPrevented)return;const{plainText:v,html:M}=cP(r);if(r.preventDefault(),window.console.log(`Received HTML: `,M),window.console.log(`Received plain text: @@ -582,7 +582,7 @@ https://www.w3ctech.com/topic/2226`));let c=n(...i);return c.postcssPlugin=t,c.p `)):u&&b===h&&h===f.length?u():d&&b===h&&h===f.length&&f.slice(-2)===` `?p.batch(()=>{const g={...i};g.start=g.end-2,c(Ks(g)),d()}):l||c(Y1(i,` -`))}const{defaultView:r}=t.ownerDocument;return r.addEventListener("keydown",o),t.addEventListener("keydown",n),()=>{r.removeEventListener("keydown",o),t.removeEventListener("keydown",n)}},MWt=e=>t=>{function n(){const{registry:o}=e.current;if(!o.select(F).isMultiSelecting())return;const r=t.parentElement.closest('[contenteditable="true"]');r&&r.focus()}return t.addEventListener("focus",n),()=>{t.removeEventListener("focus",n)}},gWt=[sWt,aWt,cWt,lWt,uWt,dWt,pWt,bWt,hWt,mWt,MWt];function zWt(e){const t=O.useRef(e);t.current=e;const n=O.useMemo(()=>gWt.map(o=>o(t)),[t]);return Et(o=>{if(!e.isSelected)return;const r=n.map(s=>s(o));return()=>{r.forEach(s=>s())}},[n,e.isSelected])}const OWt={},lMe=Symbol("usesContext");function AWt({onChange:e,onFocus:t,value:n,forwardedRef:o,settings:r}){const{name:s,edit:i,[lMe]:c}=r,l=O.useContext(Xp),u=O.useMemo(()=>c?Object.fromEntries(Object.entries(l).filter(([h])=>c.includes(h))):OWt,[c,l]);if(!i)return null;const d=EB(n,s),p=d!==void 0,f=tCe(n),b=f!==void 0&&f.type===s;return a.jsx(i,{isActive:p,activeAttributes:p?d.attributes||{}:{},isObjectActive:b,activeObjectAttributes:b?f.attributes||{}:{},value:n,onChange:e,onFocus:t,contentRef:o,context:u},s)}function yWt({formatTypes:e,...t}){return e.map(n=>O.createElement(AWt,{settings:n,...t,key:n.name}))}function uMe(e,t){if(Ae.isEmpty(e)){const n=cMe(t);return n?`<${n}>`:""}return Array.isArray(e)?(Re("wp.blockEditor.RichText value prop as children type",{since:"6.1",version:"6.3",alternative:"value prop as string",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),q8.toHTML(e)):typeof e=="string"?e:e.toHTMLString()}function BP({value:e,tagName:t,multiline:n,format:o,...r}){return e=a.jsx(C1,{children:uMe(e,n)}),t?a.jsx(t,{...r,children:e}):e}function vWt({children:e,identifier:t,tagName:n="div",value:o="",onChange:r,multiline:s,...i},c){Re("wp.blockEditor.RichText multiline prop",{since:"6.1",version:"6.3",alternative:"nested blocks (InnerBlocks)",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/nested-blocks-inner-blocks/"});const{clientId:l}=eo(),{getSelectionStart:u,getSelectionEnd:d}=D(F),{selectionChange:p}=ae(F),f=cMe(s);o=o||`<${f}>`;const h=`${o}<${f}>`.split(`<${f}>`);h.shift(),h.pop();function g(z){r(`<${f}>${z.join(`<${f}>`)}`)}return a.jsx(n,{ref:c,children:h.map((z,y)=>a.jsx(LP,{identifier:`${t}-${y}`,tagName:f,value:z,onChange:x=>{const v=h.slice();v[y]=x,g(v)},isSelected:void 0,onKeyDown:x=>{if(x.keyCode!==y1)return;x.preventDefault();const{offset:v}=u(),{offset:M}=d();if(typeof v!="number"||typeof M!="number")return;const A=m0({html:z});A.start=v,A.end=M;const _=BB(A).map(k=>K1({value:k})),w=h.slice();w.splice(y,1,..._),g(w),p(l,`${t}-${y+1}`,0,0)},onMerge:x=>{const v=h.slice();let M=0;if(x){if(!v[y+1])return;v.splice(y,2,v[y]+v[y+1]),M=v[y].length-1}else{if(!v[y-1])return;v.splice(y-1,2,v[y-1]+v[y]),M=v[y-1].length-1}g(v),p(l,`${t}-${y-(x?0:1)}`,M,M)},...i},y))})}const xWt=O.forwardRef(vWt);function _Wt(e){return O.forwardRef((t,n)=>{let o=t.value,r=t.onChange;Array.isArray(o)&&(Re("wp.blockEditor.RichText value prop as children type",{since:"6.1",version:"6.3",alternative:"value prop as string",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),o=q8.toHTML(t.value),r=i=>t.onChange(q8.fromDOM(_c(document,i).childNodes)));const s=t.multiline?xWt:e;return a.jsx(s,{...t,value:o,onChange:r,ref:n})})}function od({character:e,type:t,onUse:n}){const o=O.useContext(dMe),r=O.useRef();return r.current=n,O.useEffect(()=>{function s(i){Fs[t](i,e)&&(r.current(),i.preventDefault())}return o.current.add(s),()=>{o.current.delete(s)}},[e,t]),null}function gs({name:e,shortcutType:t,shortcutCharacter:n,...o}){let r,s="RichText.ToolbarControls";return e&&(s+=`.${e}`),t&&n&&(r=Jo[t](n)),a.jsx(Th,{name:s,children:a.jsx(bt,{...o,shortcut:r})})}function NP({inputType:e,onInput:t}){const n=O.useContext(pMe),o=O.useRef();return o.current=t,O.useEffect(()=>{function r(s){s.inputType===e&&(o.current(),s.preventDefault())}return n.current.add(r),()=>{n.current.delete(r)}},[e]),null}const dMe=O.createContext(),pMe=O.createContext(),cZ=Symbol("instanceId");function fMe(e){const{__unstableMobileNoFocusOnMount:t,deleteEnter:n,placeholderTextColor:o,textAlign:r,selectionColor:s,tagsToEliminate:i,disableEditingMenu:c,fontSize:l,fontFamily:u,fontWeight:d,fontStyle:p,minWidth:f,maxWidth:b,disableSuggestions:h,disableAutocorrection:g,...z}=e;return z}function LP({children:e,tagName:t="div",value:n="",onChange:o,isSelected:r,multiline:s,inlineToolbar:i,wrapperClassName:c,autocompleters:l,onReplace:u,placeholder:d,allowedFormats:p,withoutInteractiveFormatting:f,onRemove:b,onMerge:h,onSplit:g,__unstableOnSplitAtEnd:z,__unstableOnSplitAtDoubleLineEnd:y,identifier:x,preserveWhiteSpace:v,__unstablePastePlainText:M,__unstableEmbedURLOnPaste:A,__unstableDisableFormats:_,disableLineBreaks:w,__unstableAllowPrefixTransformations:k,readOnly:q,...S},C){S=fMe(S),g&&Re("wp.blockEditor.RichText onSplit prop",{since:"6.4",alternative:'block.json support key: "splitting"'});const T=He(LP),W=O.useRef(),B=eo(),{clientId:N,isSelected:E,name:L}=B,I=B[WN],P=O.useContext(Xp),H=zt=>{if(!E)return{isSelected:!1};const{getSelectionStart:Ue,getSelectionEnd:Xe}=zt(F),ot=Ue(),Ct=Xe();let n0;return r===void 0?n0=ot.clientId===N&&Ct.clientId===N&&(x?ot.attributeKey===x:ot[cZ]===T):r&&(n0=ot.clientId===N),{selectionStart:n0?ot.offset:void 0,selectionEnd:n0?Ct.offset:void 0,isSelected:n0}},{selectionStart:U,selectionEnd:X,isSelected:Z}=D(H,[N,x,T,r,E]),{disableBoundBlock:ne,bindingsPlaceholder:oe}=D(zt=>{if(!I?.[x]||!tk(L))return{};const Ue=I[x],{getBlockBindingsSource:Xe}=Fe(zt($e)),ot=Xe(Ue.source),Ct=!ot?.canUserEditValue?.({select:zt,context:P,args:Ue.args}),n0=Ct?Ue?.args?.key||ot?.label:le(m("Add %s"),Ue?.args?.key||ot?.label);return{disableBoundBlock:Ct,bindingsPlaceholder:(!n||n.length===0)&&n0}},[I,x,L,P,n]),Y=q||ne,{getSelectionStart:ee,getSelectionEnd:ie,getBlockRootClientId:se}=D(F),{selectionChange:be}=ae(F),ye=EP({allowedFormats:p,disableFormats:_}),xe=!ye||ye.length>0,K=O.useCallback((zt,Ue)=>{const Xe={},ot=zt===void 0&&Ue===void 0,Ct={clientId:N,[x?"attributeKey":cZ]:x||T};if(typeof zt=="number"||ot){if(Ue===void 0&&se(N)!==se(ie().clientId))return;Xe.start={...Ct,offset:zt}}if(typeof Ue=="number"||ot){if(zt===void 0&&se(N)!==se(ee().clientId))return;Xe.end={...Ct,offset:Ue}}be(Xe)},[N,se,ie,ee,x,T,be]),{formatTypes:pe,prepareHandlers:G,valueHandlers:re,changeHandlers:Me,dependencies:he}=oWt({clientId:N,identifier:x,withoutInteractiveFormatting:f,allowedFormats:ye});function Q(zt){return re.reduce((Ue,Xe)=>Xe(Ue,zt.text),zt.formats)}function R(zt){return pe.forEach(Ue=>{Ue.__experimentalCreatePrepareEditableTree&&(zt=ud(zt,Ue.name,0,zt.text.length))}),zt.formats}function j(zt){return G.reduce((Ue,Xe)=>Xe(Ue,zt.text),zt.formats)}const{value:V,getValue:de,onChange:ge,ref:ve}=Qne({value:n,onChange(zt,{__unstableFormats:Ue,__unstableText:Xe}){o(zt),Object.values(Me).forEach(ot=>{ot(Ue,Xe)})},selectionStart:U,selectionEnd:X,onSelectionChange:K,placeholder:oe||d,__unstableIsSelected:Z,__unstableDisableFormats:_,preserveWhiteSpace:v,__unstableDependencies:[...he,t],__unstableAfterParse:Q,__unstableBeforeSerialize:R,__unstableAddInvisibleFormats:j}),Ne=AOt({onReplace:u,completers:l,record:V,onChange:ge});J8t({html:n,value:V});const et=O.useRef(new Set),mt=O.useRef(new Set);function Mt(){let zt=W.current;if(zt){for(;zt.parentElement?.isContentEditable;)zt=zt.parentElement;zt.focus()}}const Ke=h0(),Nt=t;return a.jsxs(a.Fragment,{children:[Z&&a.jsx(dMe.Provider,{value:et,children:a.jsx(pMe.Provider,{value:mt,children:a.jsxs(Mn.__unstableSlotNameProvider,{value:"__unstable-block-tools-after",children:[e&&e({value:V,onChange:ge,onFocus:Mt}),a.jsx(yWt,{value:V,onChange:ge,onFocus:Mt,formatTypes:pe,forwardedRef:W})]})})}),Z&&xe&&a.jsx(Q8t,{inline:i,editableContentElement:W.current}),a.jsx(Nt,{role:"textbox","aria-multiline":!w,"aria-readonly":Y,...S,"aria-label":oe||S["aria-label"]||d,...Ne,ref:Gt([ve,C,Ne.ref,S.ref,zWt({registry:Ke,getValue:de,onChange:ge,__unstableAllowPrefixTransformations:k,formatTypes:pe,onReplace:u,selectionChange:be,isSelected:Z,disableFormats:_,value:V,tagName:t,onSplit:g,__unstableEmbedURLOnPaste:A,pastePlainText:M,onMerge:h,onRemove:b,removeEditorOnlyFormats:R,disableLineBreaks:w,onSplitAtEnd:z,onSplitAtDoubleLineEnd:y,keyboardShortcuts:et,inputEvents:mt}),W]),contentEditable:!Y,suppressContentEditableWarning:!0,className:$("block-editor-rich-text__editable",S.className,"rich-text"),tabIndex:S.tabIndex===0&&!Y?null:S.tabIndex,"data-wp-block-attribute-key":x})]})}const kk=_Wt(O.forwardRef(LP));kk.Content=BP;kk.isEmpty=e=>!e||e.length===0;const Ae=O.forwardRef((e,t)=>{if(eo()[Kre]){const{children:r,tagName:s="div",value:i,onChange:c,isSelected:l,multiline:u,inlineToolbar:d,wrapperClassName:p,autocompleters:f,onReplace:b,placeholder:h,allowedFormats:g,withoutInteractiveFormatting:z,onRemove:y,onMerge:x,onSplit:v,__unstableOnSplitAtEnd:M,__unstableOnSplitAtDoubleLineEnd:A,identifier:_,preserveWhiteSpace:w,__unstablePastePlainText:k,__unstableEmbedURLOnPaste:q,__unstableDisableFormats:S,disableLineBreaks:C,__unstableAllowPrefixTransformations:T,readOnly:W,...B}=fMe(e);return a.jsx(s,{...B,dangerouslySetInnerHTML:{__html:uMe(i,u)}})}return a.jsx(kk,{ref:t,...e,readOnly:!1})});Ae.Content=BP;Ae.isEmpty=e=>!e||e.length===0;const bMe=O.forwardRef((e,t)=>a.jsx(Ae,{ref:t,...e,__unstableDisableFormats:!0}));bMe.Content=({value:e="",tagName:t="div",...n})=>a.jsx(t,{...n,children:e});const rd=O.forwardRef(({__experimentalVersion:e,...t},n)=>{if(e===2)return a.jsx(bMe,{ref:n,...t});const{className:o,onChange:r,...s}=t;return a.jsx(Hj,{ref:n,className:$("block-editor-plain-text",o),onChange:i=>r(i.target.value),...s})}),lZ=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M9.4 20.5L5.2 3.8l14.6 9-2 .3c-.2 0-.4.1-.7.1-.9.2-1.6.3-2.2.5-.8.3-1.4.5-1.8.8-.4.3-.8.8-1.3 1.5-.4.5-.8 1.2-1.2 2l-.3.6-.9 1.9zM7.6 7.1l2.4 9.3c.2-.4.5-.8.7-1.1.6-.8 1.1-1.4 1.6-1.8.5-.4 1.3-.8 2.2-1.1l1.2-.3-8.1-5z"})});function wWt(e,t){const n=D(r=>r(F).__unstableGetEditorMode(),[]),{__unstableSetEditorMode:o}=ae(F);return a.jsx(B0,{renderToggle:({isOpen:r,onToggle:s})=>a.jsx(fe,{__next40pxDefaultSize:!1,...e,ref:t,icon:n==="navigation"?lZ:nl,"aria-expanded":r,"aria-haspopup":"true",onClick:s,label:m("Tools")}),popoverProps:{placement:"bottom-start"},renderContent:()=>a.jsxs(a.Fragment,{children:[a.jsx(xf,{role:"menu","aria-label":m("Tools"),children:a.jsx(Hp,{value:n==="navigation"?"navigation":"edit",onSelect:o,choices:[{value:"edit",label:a.jsxs(a.Fragment,{children:[a.jsx(t0,{icon:nl}),m("Edit")]})},{value:"navigation",label:a.jsxs(a.Fragment,{children:[lZ,m("Select")]})}]})}),a.jsx("div",{className:"block-editor-tool-selector__help",children:m("Tools provide different interactions for selecting, navigating, and editing blocks. Toggle between select and edit by pressing Escape and Enter.")})]})})}const kWt=O.forwardRef(wWt),XS="none",uZ="custom",dZ="media",pZ="attachment",fZ=["noreferrer","noopener"],hMe=({linkDestination:e,onChangeUrl:t,url:n,mediaType:o="image",mediaUrl:r,mediaLink:s,linkTarget:i,linkClass:c,rel:l,showLightboxSetting:u,lightboxEnabled:d,onSetLightbox:p,resetLightbox:f})=>{const[b,h]=O.useState(!1),[g,z]=O.useState(null),y=()=>{h(!0)},[x,v]=O.useState(!1),[M,A]=O.useState(null),_=O.useRef(null),w=O.useRef();O.useEffect(()=>{if(!w.current)return;(Nn.focusable.find(w.current)[0]||w.current).focus()},[x,n,d]);const k=()=>{(e===dZ||e===pZ)&&A(""),v(!0)},q=()=>{v(!1)},S=()=>{A(null),q(),h(!1)},C=Y=>{const ee=Y?"_blank":void 0;let ie;if(ee){const se=(l??"").split(" ");fZ.forEach(be=>{se.includes(be)||se.push(be)}),ie=se.join(" ")}else{const se=(l??"").split(" ").filter(be=>fZ.includes(be)===!1);ie=se.length?se.join(" "):void 0}return{linkTarget:ee,rel:ie}},T=()=>Y=>{const ee=_.current;ee&&ee.contains(Y.target)||(h(!1),A(null),q())},W=()=>Y=>{if(M){const ee=N().find(ie=>ie.url===M)?.linkDestination||uZ;t({href:M,linkDestination:ee,lightbox:{enabled:!1}})}q(),A(null),Y.preventDefault()},B=()=>{t({linkDestination:XS,href:""})},N=()=>{const Y=[{linkDestination:dZ,title:m("Link to image file"),url:o==="image"?r:void 0,icon:Qg}];return o==="image"&&s&&Y.push({linkDestination:pZ,title:m("Link to attachment page"),url:o==="image"?s:void 0,icon:Ja}),Y},E=Y=>{const ee=N();let ie;Y?ie=(ee.find(se=>se.url===Y)||{linkDestination:uZ}).linkDestination:ie=XS,t({linkDestination:ie,href:Y})},L=Y=>{const ee=C(Y);t(ee)},I=Y=>{t({rel:Y})},P=Y=>{t({linkClass:Y})},H=a.jsxs(Ye,{spacing:"3",children:[a.jsx(Be,{__nextHasNoMarginBottom:!0,label:m("Open in new tab"),onChange:L,checked:i==="_blank"}),a.jsx($t,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:m("Link rel"),value:l??"",onChange:I}),a.jsx($t,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:m("Link CSS class"),value:c||"",onChange:P})]}),U=M!==null?M:n,X=!d||d&&!u,Z=!U&&X,ne=(N().find(Y=>Y.linkDestination===e)||{}).title,oe=()=>{if(d&&u&&!n&&!x)return a.jsxs("div",{className:"block-editor-url-popover__expand-on-click",children:[a.jsx(t0,{icon:Vv}),a.jsxs("div",{className:"text",children:[a.jsx("p",{children:m("Expand on click")}),a.jsx("p",{className:"description",children:m("Scales the image with a lightbox effect")})]}),a.jsx(fe,{icon:Xu,label:m("Disable expand on click"),onClick:()=>{p?.(!1)},size:"compact"})]});if(!n||x)return a.jsx(Mp.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:U,onChangeInputValue:A,onSubmit:W(),autocompleteRef:_});if(n&&!x)return a.jsxs(a.Fragment,{children:[a.jsx(Mp.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",url:n,onEditLinkClick:k,urlLabel:ne}),a.jsx(fe,{icon:Xu,label:m("Remove link"),onClick:()=>{B(),f?.()},size:"compact"})]})};return a.jsxs(a.Fragment,{children:[a.jsx(bt,{icon:Qa,className:"components-toolbar__control",label:m("Link"),"aria-expanded":b,onClick:y,ref:z,isActive:!!n||d&&u}),b&&a.jsx(Mp,{ref:w,anchor:g,onFocusOutside:T(),onClose:S,renderSettings:X?()=>H:null,additionalControls:Z&&a.jsxs(xf,{children:[N().map(Y=>a.jsx(tt,{icon:Y.icon,iconPosition:"left",onClick:()=>{A(null),E(Y.url),q()},children:Y.title},Y.linkDestination)),u&&a.jsx(tt,{className:"block-editor-url-popover__expand-on-click",icon:Vv,info:m("Scale the image with a lightbox effect."),iconPosition:"left",onClick:()=>{A(null),t({linkDestination:XS,href:""}),p?.(!0),q()},children:m("Expand on click")},"expand-on-click")]}),offset:13,children:oe()})]})},bZ={px:{max:300,steps:1},"%":{max:100,steps:1},vw:{max:100,steps:1},vh:{max:100,steps:1},em:{max:10,steps:.1},rm:{max:10,steps:.1},svw:{max:100,steps:1},lvw:{max:100,steps:1},dvw:{max:100,steps:1},svh:{max:100,steps:1},lvh:{max:100,steps:1},dvh:{max:100,steps:1},vi:{max:100,steps:1},svi:{max:100,steps:1},lvi:{max:100,steps:1},dvi:{max:100,steps:1},vb:{max:100,steps:1},svb:{max:100,steps:1},lvb:{max:100,steps:1},dvb:{max:100,steps:1},vmin:{max:100,steps:1},svmin:{max:100,steps:1},lvmin:{max:100,steps:1},dvmin:{max:100,steps:1},vmax:{max:100,steps:1},svmax:{max:100,steps:1},lvmax:{max:100,steps:1},dvmax:{max:100,steps:1}};function jP({icon:e,isMixed:t=!1,minimumCustomValue:n,onChange:o,onMouseOut:r,onMouseOver:s,showSideInLabel:i=!0,side:c,spacingSizes:l,type:u,value:d}){var p,f;d=Dw(d,l);let b=l;const h=l.length<=hbe,g=D(X=>X(F).getSettings()?.disableCustomSpacingSizes),[z,y]=O.useState(!g&&d!==void 0&&!sp(d)),[x,v]=O.useState(n),M=t1(d);d&&M!==d&&!sp(d)&&z!==!0&&y(!0);const[A]=O0("spacing.units"),_=Fr({availableUnits:A||["px","em","rem"]});let w=null;!h&&!z&&d!==void 0&&(!sp(d)||sp(d)&&t)?(b=[...l,{name:t?m("Mixed"):le(m("Custom (%s)"),d),slug:"custom",size:d}],w=b.length-1):t||(w=z?fM(d,l):vOt(d,l));const q=O.useMemo(()=>y0(w),[w])[1]||_[0]?.value,S=()=>{d===void 0&&o("0")},C=X=>d===void 0?void 0:l[X]?.name,T=parseFloat(w,10),W=X=>!isNaN(parseFloat(X))?X:void 0,B=(X,Z)=>{const ne=parseInt(X,10);if(Z==="selectList"){if(ne===0)return;if(ne===1)return"0"}else if(ne===0)return"0";return`var:preset|spacing|${l[X]?.slug}`},N=X=>{o([X,q].join(""))},E=t?m("Mixed"):null,L=b.map((X,Z)=>({key:Z,name:X.name})),I=l.slice(1,l.length-1).map((X,Z)=>({value:Z+1,label:void 0})),P=X2.includes(c)&&i?za[c]:"",H=i?u?.toLowerCase():u,U=le(m("%1$s %2$s"),P,H).trim();return a.jsxs(Je,{className:"spacing-sizes-control__wrapper",children:[e&&a.jsx(xn,{className:"spacing-sizes-control__icon",icon:e,size:24}),z&&a.jsxs(a.Fragment,{children:[a.jsx(H0,{onMouseOver:s,onMouseOut:r,onFocus:s,onBlur:r,onChange:X=>o(W(X)),value:w,units:_,min:x,placeholder:E,disableUnits:t,label:U,hideLabelFromVision:!0,className:"spacing-sizes-control__custom-value-input",size:"__unstable-large",onDragStart:()=>{d?.charAt(0)==="-"&&v(0)},onDrag:()=>{d?.charAt(0)==="-"&&v(0)},onDragEnd:()=>{v(n)}}),a.jsx(T0,{__next40pxDefaultSize:!0,onMouseOver:s,onMouseOut:r,onFocus:s,onBlur:r,value:T,min:0,max:(p=bZ[q]?.max)!==null&&p!==void 0?p:10,step:(f=bZ[q]?.steps)!==null&&f!==void 0?f:.1,withInputField:!1,onChange:N,className:"spacing-sizes-control__custom-value-range",__nextHasNoMarginBottom:!0,label:U,hideLabelFromVision:!0})]}),h&&!z&&a.jsx(T0,{__next40pxDefaultSize:!0,onMouseOver:s,onMouseOut:r,className:"spacing-sizes-control__range-control",value:w,onChange:X=>o(B(X)),onMouseDown:X=>{X?.nativeEvent?.offsetX<35&&S()},withInputField:!1,"aria-valuenow":w,"aria-valuetext":l[w]?.name,renderTooltipContent:C,min:0,max:l.length-1,marks:I,label:U,hideLabelFromVision:!0,__nextHasNoMarginBottom:!0,onFocus:s,onBlur:r}),!h&&!z&&a.jsx(Lh,{className:"spacing-sizes-control__custom-select-control",value:L.find(X=>X.key===w)||"",onChange:X=>{o(B(X.selectedItem.key,"selectList"))},options:L,label:U,hideLabelFromVision:!0,size:"__unstable-large",onMouseOver:s,onMouseOut:r,onFocus:s,onBlur:r}),!g&&a.jsx(fe,{label:m(z?"Use size preset":"Set custom size"),icon:kle,onClick:()=>{y(!z)},isPressed:z,size:"small",className:"spacing-sizes-control__custom-toggle",iconSize:24})]})}const hZ=["vertical","horizontal"];function qWt({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:o,sides:r,spacingSizes:s,type:i,values:c}){const l=d=>p=>{if(!t)return;const f={...Object.keys(c).reduce((b,h)=>(b[h]=Dw(c[h],s),b),{})};d==="vertical"&&(f.top=p,f.bottom=p),d==="horizontal"&&(f.left=p,f.right=p),t(f)},u=r?.length?hZ.filter(d=>d5(r,d)):hZ;return a.jsx(a.Fragment,{children:u.map(d=>{const p=d==="vertical"?c.top:c.left;return a.jsx(jP,{icon:Xd[d],label:za[d],minimumCustomValue:e,onChange:l(d),onMouseOut:n,onMouseOver:o,side:d,spacingSizes:s,type:i,value:p,withInputField:!1},`spacing-sizes-control-${d}`)})})}function SWt({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:o,sides:r,spacingSizes:s,type:i,values:c}){const l=r?.length?X2.filter(d=>r.includes(d)):X2,u=d=>p=>{const f={...Object.keys(c).reduce((b,h)=>(b[h]=Dw(c[h],s),b),{})};f[d]=p,t(f)};return a.jsx(a.Fragment,{children:l.map(d=>a.jsx(jP,{icon:Xd[d],label:za[d],minimumCustomValue:e,onChange:u(d),onMouseOut:n,onMouseOver:o,side:d,spacingSizes:s,type:i,value:c[d],withInputField:!1},`spacing-sizes-control-${d}`))})}function CWt({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:o,showSideInLabel:r,side:s,spacingSizes:i,type:c,values:l}){const u=d=>p=>{const f={...Object.keys(l).reduce((b,h)=>(b[h]=Dw(l[h],i),b),{})};f[d]=p,t(f)};return a.jsx(jP,{label:za[s],minimumCustomValue:e,onChange:u(s),onMouseOut:n,onMouseOver:o,showSideInLabel:r,side:s,spacingSizes:i,type:c,value:l[s],withInputField:!1})}const mZ=a.jsx(xn,{icon:no,size:24});function RWt({label:e,onChange:t,sides:n,value:o}){if(!n||!n.length)return;const r=xOt(n),s=r[o].icon,{custom:i,...c}=r;return a.jsx(E1,{icon:s,label:e,className:"spacing-sizes-control__dropdown",toggleProps:{size:"small"},children:({onClose:l})=>a.jsxs(a.Fragment,{children:[a.jsx(Yt,{children:Object.entries(c).map(([u,{label:d,icon:p}])=>{const f=o===u;return a.jsx(tt,{icon:p,iconPosition:"left",isSelected:f,role:"menuitemradio",onClick:()=>{t(u),l()},suffix:f?mZ:void 0,children:d},u)})}),!!i&&a.jsx(Yt,{children:a.jsx(tt,{icon:i.icon,iconPosition:"left",isSelected:o===mp.custom,role:"menuitemradio",onClick:()=>{t(mp.custom),l()},suffix:o===mp.custom?mZ:void 0,children:i.label})})]})})}const GS=[],WWt=new Intl.Collator("und",{numeric:!0}).compare;function mMe(){const[e,t,n,o]=O0("spacing.spacingSizes.custom","spacing.spacingSizes.theme","spacing.spacingSizes.default","spacing.defaultSpacingSizes"),r=e??GS,s=t??GS,i=n&&o!==!1?n:GS;return O.useMemo(()=>{const c=[{name:m("None"),slug:"0",size:0},...r,...s,...i];return c.every(({slug:l})=>/^[0-9]/.test(l))&&c.sort((l,u)=>WWt(l.slug,u.slug)),c.length>hbe?[{name:m("Default"),slug:"default",size:void 0},...c]:c},[r,s,i])}function y4({inputProps:e,label:t,minimumCustomValue:n=0,onChange:o,onMouseOut:r,onMouseOver:s,showSideInLabel:i=!0,sides:c=X2,useSelect:l,values:u}){const d=mMe(),p=u||yOt,f=c?.length===1,b=c?.includes("horizontal")&&c?.includes("vertical")&&c?.length===2,[h,g]=O.useState(wOt(p,c)),y={...e,minimumCustomValue:n,onChange:_=>{const w={...u,..._};o(w)},onMouseOut:r,onMouseOver:s,sides:c,spacingSizes:d,type:t,useSelect:l,values:p},x=()=>h===mp.axial?a.jsx(qWt,{...y}):h===mp.custom?a.jsx(SWt,{...y}):a.jsx(CWt,{side:h,...y,showSideInLabel:i}),v=X2.includes(h)&&i?za[h]:"",M=le(m("%1$s %2$s"),t,v).trim(),A=le(Oe("%s options","Button label to reveal side configuration options"),t);return a.jsxs("fieldset",{className:"spacing-sizes-control",children:[a.jsxs(Je,{className:"spacing-sizes-control__header",children:[a.jsx(z0.VisualLabel,{as:"legend",className:"spacing-sizes-control__label",children:M}),!f&&!b&&a.jsx(RWt,{label:A,onChange:g,sides:c,value:h})]}),a.jsx(Ye,{spacing:.5,children:x()})]})}function TWt(e){const[t,n]=O.useState(window.innerWidth);O.useEffect(()=>{if(e==="Desktop")return;const i=()=>n(window.innerWidth);return window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}},[e]);const o=i=>{let c;switch(i){case"Tablet":c=780;break;case"Mobile":c=360;break;default:return null}return cwindow.innerHeight<800?36:64;return(i=>{const c=i==="Mobile"?"768px":"1024px",l=r()+"px",u="auto";switch(i){case"Tablet":case"Mobile":return{width:o(i),marginTop:l,marginBottom:l,marginLeft:u,marginRight:u,height:c,overflowY:"auto"};default:return{marginLeft:u,marginRight:u}}})(e)}function EWt(){const e=D(o=>o(F).getBlockSelectionStart(),[]),t=O.useRef();Fj(e,t);const n=()=>{t.current?.focus()};return e?a.jsx(fe,{__next40pxDefaultSize:!1,variant:"secondary",className:"block-editor-skip-to-selected-block",onClick:n,children:m("Skip to the selected block")}):null}const BWt={HTMLRegExp:/<\/?[a-z][^>]*?>/gi,HTMLcommentRegExp://g,spaceRegExp:/ | /gi,HTMLEntityRegExp:/&\S+?;/g,connectorRegExp:/--|\u2014/g,removeRegExp:new RegExp(["[","!-/:-@[-`{-~","€-¿×÷"," -⯿","⸀-⹿","]"].join(""),"g"),astralRegExp:/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wordsRegExp:/\S\s+/g,characters_excluding_spacesRegExp:/\S/g,characters_including_spacesRegExp:/[^\f\n\r\t\v\u00AD\u2028\u2029]/g,l10n:{type:"words"}};function MMe(e,t){return t.replace(e.HTMLRegExp,` +`))}const{defaultView:r}=t.ownerDocument;return r.addEventListener("keydown",o),t.addEventListener("keydown",n),()=>{r.removeEventListener("keydown",o),t.removeEventListener("keydown",n)}},MWt=e=>t=>{function n(){const{registry:o}=e.current;if(!o.select(F).isMultiSelecting())return;const r=t.parentElement.closest('[contenteditable="true"]');r&&r.focus()}return t.addEventListener("focus",n),()=>{t.removeEventListener("focus",n)}},gWt=[sWt,aWt,cWt,lWt,uWt,dWt,pWt,bWt,hWt,mWt,MWt];function zWt(e){const t=O.useRef(e);t.current=e;const n=O.useMemo(()=>gWt.map(o=>o(t)),[t]);return Et(o=>{if(!e.isSelected)return;const r=n.map(s=>s(o));return()=>{r.forEach(s=>s())}},[n,e.isSelected])}const OWt={},lMe=Symbol("usesContext");function AWt({onChange:e,onFocus:t,value:n,forwardedRef:o,settings:r}){const{name:s,edit:i,[lMe]:c}=r,l=O.useContext(Xp),u=O.useMemo(()=>c?Object.fromEntries(Object.entries(l).filter(([h])=>c.includes(h))):OWt,[c,l]);if(!i)return null;const d=EB(n,s),p=d!==void 0,f=tCe(n),b=f!==void 0&&f.type===s;return a.jsx(i,{isActive:p,activeAttributes:p?d.attributes||{}:{},isObjectActive:b,activeObjectAttributes:b?f.attributes||{}:{},value:n,onChange:e,onFocus:t,contentRef:o,context:u},s)}function yWt({formatTypes:e,...t}){return e.map(n=>O.createElement(AWt,{settings:n,...t,key:n.name}))}function uMe(e,t){if(Ae.isEmpty(e)){const n=cMe(t);return n?`<${n}>`:""}return Array.isArray(e)?(Re("wp.blockEditor.RichText value prop as children type",{since:"6.1",version:"6.3",alternative:"value prop as string",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),q8.toHTML(e)):typeof e=="string"?e:e.toHTMLString()}function BP({value:e,tagName:t,multiline:n,format:o,...r}){return e=a.jsx(C1,{children:uMe(e,n)}),t?a.jsx(t,{...r,children:e}):e}function vWt({children:e,identifier:t,tagName:n="div",value:o="",onChange:r,multiline:s,...i},c){Re("wp.blockEditor.RichText multiline prop",{since:"6.1",version:"6.3",alternative:"nested blocks (InnerBlocks)",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/nested-blocks-inner-blocks/"});const{clientId:l}=eo(),{getSelectionStart:u,getSelectionEnd:d}=D(F),{selectionChange:p}=ae(F),f=cMe(s);o=o||`<${f}>`;const h=`${o}<${f}>`.split(`<${f}>`);h.shift(),h.pop();function g(z){r(`<${f}>${z.join(`<${f}>`)}`)}return a.jsx(n,{ref:c,children:h.map((z,y)=>a.jsx(LP,{identifier:`${t}-${y}`,tagName:f,value:z,onChange:x=>{const v=h.slice();v[y]=x,g(v)},isSelected:void 0,onKeyDown:x=>{if(x.keyCode!==y1)return;x.preventDefault();const{offset:v}=u(),{offset:M}=d();if(typeof v!="number"||typeof M!="number")return;const A=m0({html:z});A.start=v,A.end=M;const _=BB(A).map(k=>K1({value:k})),w=h.slice();w.splice(y,1,..._),g(w),p(l,`${t}-${y+1}`,0,0)},onMerge:x=>{const v=h.slice();let M=0;if(x){if(!v[y+1])return;v.splice(y,2,v[y]+v[y+1]),M=v[y].length-1}else{if(!v[y-1])return;v.splice(y-1,2,v[y-1]+v[y]),M=v[y-1].length-1}g(v),p(l,`${t}-${y-(x?0:1)}`,M,M)},...i},y))})}const xWt=O.forwardRef(vWt);function _Wt(e){return O.forwardRef((t,n)=>{let o=t.value,r=t.onChange;Array.isArray(o)&&(Re("wp.blockEditor.RichText value prop as children type",{since:"6.1",version:"6.3",alternative:"value prop as string",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),o=q8.toHTML(t.value),r=i=>t.onChange(q8.fromDOM(_c(document,i).childNodes)));const s=t.multiline?xWt:e;return a.jsx(s,{...t,value:o,onChange:r,ref:n})})}function od({character:e,type:t,onUse:n}){const o=O.useContext(dMe),r=O.useRef();return r.current=n,O.useEffect(()=>{function s(i){$s[t](i,e)&&(r.current(),i.preventDefault())}return o.current.add(s),()=>{o.current.delete(s)}},[e,t]),null}function zs({name:e,shortcutType:t,shortcutCharacter:n,...o}){let r,s="RichText.ToolbarControls";return e&&(s+=`.${e}`),t&&n&&(r=Jo[t](n)),a.jsx(Th,{name:s,children:a.jsx(bt,{...o,shortcut:r})})}function NP({inputType:e,onInput:t}){const n=O.useContext(pMe),o=O.useRef();return o.current=t,O.useEffect(()=>{function r(s){s.inputType===e&&(o.current(),s.preventDefault())}return n.current.add(r),()=>{n.current.delete(r)}},[e]),null}const dMe=O.createContext(),pMe=O.createContext(),cZ=Symbol("instanceId");function fMe(e){const{__unstableMobileNoFocusOnMount:t,deleteEnter:n,placeholderTextColor:o,textAlign:r,selectionColor:s,tagsToEliminate:i,disableEditingMenu:c,fontSize:l,fontFamily:u,fontWeight:d,fontStyle:p,minWidth:f,maxWidth:b,disableSuggestions:h,disableAutocorrection:g,...z}=e;return z}function LP({children:e,tagName:t="div",value:n="",onChange:o,isSelected:r,multiline:s,inlineToolbar:i,wrapperClassName:c,autocompleters:l,onReplace:u,placeholder:d,allowedFormats:p,withoutInteractiveFormatting:f,onRemove:b,onMerge:h,onSplit:g,__unstableOnSplitAtEnd:z,__unstableOnSplitAtDoubleLineEnd:y,identifier:x,preserveWhiteSpace:v,__unstablePastePlainText:M,__unstableEmbedURLOnPaste:A,__unstableDisableFormats:_,disableLineBreaks:w,__unstableAllowPrefixTransformations:k,readOnly:q,...S},C){S=fMe(S),g&&Re("wp.blockEditor.RichText onSplit prop",{since:"6.4",alternative:'block.json support key: "splitting"'});const T=He(LP),W=O.useRef(),B=eo(),{clientId:N,isSelected:E,name:L}=B,I=B[WN],P=O.useContext(Xp),H=zt=>{if(!E)return{isSelected:!1};const{getSelectionStart:Ue,getSelectionEnd:Xe}=zt(F),ot=Ue(),Ct=Xe();let n0;return r===void 0?n0=ot.clientId===N&&Ct.clientId===N&&(x?ot.attributeKey===x:ot[cZ]===T):r&&(n0=ot.clientId===N),{selectionStart:n0?ot.offset:void 0,selectionEnd:n0?Ct.offset:void 0,isSelected:n0}},{selectionStart:U,selectionEnd:X,isSelected:Z}=D(H,[N,x,T,r,E]),{disableBoundBlock:ne,bindingsPlaceholder:oe}=D(zt=>{if(!I?.[x]||!tk(L))return{};const Ue=I[x],{getBlockBindingsSource:Xe}=Fe(zt($e)),ot=Xe(Ue.source),Ct=!ot?.canUserEditValue?.({select:zt,context:P,args:Ue.args}),n0=Ct?Ue?.args?.key||ot?.label:le(m("Add %s"),Ue?.args?.key||ot?.label);return{disableBoundBlock:Ct,bindingsPlaceholder:(!n||n.length===0)&&n0}},[I,x,L,P,n]),Y=q||ne,{getSelectionStart:ee,getSelectionEnd:ie,getBlockRootClientId:se}=D(F),{selectionChange:be}=ae(F),ye=EP({allowedFormats:p,disableFormats:_}),xe=!ye||ye.length>0,K=O.useCallback((zt,Ue)=>{const Xe={},ot=zt===void 0&&Ue===void 0,Ct={clientId:N,[x?"attributeKey":cZ]:x||T};if(typeof zt=="number"||ot){if(Ue===void 0&&se(N)!==se(ie().clientId))return;Xe.start={...Ct,offset:zt}}if(typeof Ue=="number"||ot){if(zt===void 0&&se(N)!==se(ee().clientId))return;Xe.end={...Ct,offset:Ue}}be(Xe)},[N,se,ie,ee,x,T,be]),{formatTypes:pe,prepareHandlers:G,valueHandlers:re,changeHandlers:Me,dependencies:he}=oWt({clientId:N,identifier:x,withoutInteractiveFormatting:f,allowedFormats:ye});function Q(zt){return re.reduce((Ue,Xe)=>Xe(Ue,zt.text),zt.formats)}function R(zt){return pe.forEach(Ue=>{Ue.__experimentalCreatePrepareEditableTree&&(zt=ud(zt,Ue.name,0,zt.text.length))}),zt.formats}function j(zt){return G.reduce((Ue,Xe)=>Xe(Ue,zt.text),zt.formats)}const{value:V,getValue:de,onChange:ge,ref:ve}=Qne({value:n,onChange(zt,{__unstableFormats:Ue,__unstableText:Xe}){o(zt),Object.values(Me).forEach(ot=>{ot(Ue,Xe)})},selectionStart:U,selectionEnd:X,onSelectionChange:K,placeholder:oe||d,__unstableIsSelected:Z,__unstableDisableFormats:_,preserveWhiteSpace:v,__unstableDependencies:[...he,t],__unstableAfterParse:Q,__unstableBeforeSerialize:R,__unstableAddInvisibleFormats:j}),Ne=AOt({onReplace:u,completers:l,record:V,onChange:ge});J8t({html:n,value:V});const et=O.useRef(new Set),mt=O.useRef(new Set);function Mt(){let zt=W.current;if(zt){for(;zt.parentElement?.isContentEditable;)zt=zt.parentElement;zt.focus()}}const Ke=h0(),Nt=t;return a.jsxs(a.Fragment,{children:[Z&&a.jsx(dMe.Provider,{value:et,children:a.jsx(pMe.Provider,{value:mt,children:a.jsxs(Mn.__unstableSlotNameProvider,{value:"__unstable-block-tools-after",children:[e&&e({value:V,onChange:ge,onFocus:Mt}),a.jsx(yWt,{value:V,onChange:ge,onFocus:Mt,formatTypes:pe,forwardedRef:W})]})})}),Z&&xe&&a.jsx(Q8t,{inline:i,editableContentElement:W.current}),a.jsx(Nt,{role:"textbox","aria-multiline":!w,"aria-readonly":Y,...S,"aria-label":oe||S["aria-label"]||d,...Ne,ref:Gt([ve,C,Ne.ref,S.ref,zWt({registry:Ke,getValue:de,onChange:ge,__unstableAllowPrefixTransformations:k,formatTypes:pe,onReplace:u,selectionChange:be,isSelected:Z,disableFormats:_,value:V,tagName:t,onSplit:g,__unstableEmbedURLOnPaste:A,pastePlainText:M,onMerge:h,onRemove:b,removeEditorOnlyFormats:R,disableLineBreaks:w,onSplitAtEnd:z,onSplitAtDoubleLineEnd:y,keyboardShortcuts:et,inputEvents:mt}),W]),contentEditable:!Y,suppressContentEditableWarning:!0,className:$("block-editor-rich-text__editable",S.className,"rich-text"),tabIndex:S.tabIndex===0&&!Y?null:S.tabIndex,"data-wp-block-attribute-key":x})]})}const kk=_Wt(O.forwardRef(LP));kk.Content=BP;kk.isEmpty=e=>!e||e.length===0;const Ae=O.forwardRef((e,t)=>{if(eo()[Kre]){const{children:r,tagName:s="div",value:i,onChange:c,isSelected:l,multiline:u,inlineToolbar:d,wrapperClassName:p,autocompleters:f,onReplace:b,placeholder:h,allowedFormats:g,withoutInteractiveFormatting:z,onRemove:y,onMerge:x,onSplit:v,__unstableOnSplitAtEnd:M,__unstableOnSplitAtDoubleLineEnd:A,identifier:_,preserveWhiteSpace:w,__unstablePastePlainText:k,__unstableEmbedURLOnPaste:q,__unstableDisableFormats:S,disableLineBreaks:C,__unstableAllowPrefixTransformations:T,readOnly:W,...B}=fMe(e);return a.jsx(s,{...B,dangerouslySetInnerHTML:{__html:uMe(i,u)}})}return a.jsx(kk,{ref:t,...e,readOnly:!1})});Ae.Content=BP;Ae.isEmpty=e=>!e||e.length===0;const bMe=O.forwardRef((e,t)=>a.jsx(Ae,{ref:t,...e,__unstableDisableFormats:!0}));bMe.Content=({value:e="",tagName:t="div",...n})=>a.jsx(t,{...n,children:e});const rd=O.forwardRef(({__experimentalVersion:e,...t},n)=>{if(e===2)return a.jsx(bMe,{ref:n,...t});const{className:o,onChange:r,...s}=t;return a.jsx(Hj,{ref:n,className:$("block-editor-plain-text",o),onChange:i=>r(i.target.value),...s})}),lZ=a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:a.jsx(J,{d:"M9.4 20.5L5.2 3.8l14.6 9-2 .3c-.2 0-.4.1-.7.1-.9.2-1.6.3-2.2.5-.8.3-1.4.5-1.8.8-.4.3-.8.8-1.3 1.5-.4.5-.8 1.2-1.2 2l-.3.6-.9 1.9zM7.6 7.1l2.4 9.3c.2-.4.5-.8.7-1.1.6-.8 1.1-1.4 1.6-1.8.5-.4 1.3-.8 2.2-1.1l1.2-.3-8.1-5z"})});function wWt(e,t){const n=D(r=>r(F).__unstableGetEditorMode(),[]),{__unstableSetEditorMode:o}=ae(F);return a.jsx(B0,{renderToggle:({isOpen:r,onToggle:s})=>a.jsx(fe,{__next40pxDefaultSize:!1,...e,ref:t,icon:n==="navigation"?lZ:nl,"aria-expanded":r,"aria-haspopup":"true",onClick:s,label:m("Tools")}),popoverProps:{placement:"bottom-start"},renderContent:()=>a.jsxs(a.Fragment,{children:[a.jsx(xf,{role:"menu","aria-label":m("Tools"),children:a.jsx(Hp,{value:n==="navigation"?"navigation":"edit",onSelect:o,choices:[{value:"edit",label:a.jsxs(a.Fragment,{children:[a.jsx(t0,{icon:nl}),m("Edit")]})},{value:"navigation",label:a.jsxs(a.Fragment,{children:[lZ,m("Select")]})}]})}),a.jsx("div",{className:"block-editor-tool-selector__help",children:m("Tools provide different interactions for selecting, navigating, and editing blocks. Toggle between select and edit by pressing Escape and Enter.")})]})})}const kWt=O.forwardRef(wWt),XS="none",uZ="custom",dZ="media",pZ="attachment",fZ=["noreferrer","noopener"],hMe=({linkDestination:e,onChangeUrl:t,url:n,mediaType:o="image",mediaUrl:r,mediaLink:s,linkTarget:i,linkClass:c,rel:l,showLightboxSetting:u,lightboxEnabled:d,onSetLightbox:p,resetLightbox:f})=>{const[b,h]=O.useState(!1),[g,z]=O.useState(null),y=()=>{h(!0)},[x,v]=O.useState(!1),[M,A]=O.useState(null),_=O.useRef(null),w=O.useRef();O.useEffect(()=>{if(!w.current)return;(Nn.focusable.find(w.current)[0]||w.current).focus()},[x,n,d]);const k=()=>{(e===dZ||e===pZ)&&A(""),v(!0)},q=()=>{v(!1)},S=()=>{A(null),q(),h(!1)},C=Y=>{const ee=Y?"_blank":void 0;let ie;if(ee){const se=(l??"").split(" ");fZ.forEach(be=>{se.includes(be)||se.push(be)}),ie=se.join(" ")}else{const se=(l??"").split(" ").filter(be=>fZ.includes(be)===!1);ie=se.length?se.join(" "):void 0}return{linkTarget:ee,rel:ie}},T=()=>Y=>{const ee=_.current;ee&&ee.contains(Y.target)||(h(!1),A(null),q())},W=()=>Y=>{if(M){const ee=N().find(ie=>ie.url===M)?.linkDestination||uZ;t({href:M,linkDestination:ee,lightbox:{enabled:!1}})}q(),A(null),Y.preventDefault()},B=()=>{t({linkDestination:XS,href:""})},N=()=>{const Y=[{linkDestination:dZ,title:m("Link to image file"),url:o==="image"?r:void 0,icon:Qg}];return o==="image"&&s&&Y.push({linkDestination:pZ,title:m("Link to attachment page"),url:o==="image"?s:void 0,icon:Ja}),Y},E=Y=>{const ee=N();let ie;Y?ie=(ee.find(se=>se.url===Y)||{linkDestination:uZ}).linkDestination:ie=XS,t({linkDestination:ie,href:Y})},L=Y=>{const ee=C(Y);t(ee)},I=Y=>{t({rel:Y})},P=Y=>{t({linkClass:Y})},H=a.jsxs(Ye,{spacing:"3",children:[a.jsx(Be,{__nextHasNoMarginBottom:!0,label:m("Open in new tab"),onChange:L,checked:i==="_blank"}),a.jsx($t,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:m("Link rel"),value:l??"",onChange:I}),a.jsx($t,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:m("Link CSS class"),value:c||"",onChange:P})]}),U=M!==null?M:n,X=!d||d&&!u,Z=!U&&X,ne=(N().find(Y=>Y.linkDestination===e)||{}).title,oe=()=>{if(d&&u&&!n&&!x)return a.jsxs("div",{className:"block-editor-url-popover__expand-on-click",children:[a.jsx(t0,{icon:Vv}),a.jsxs("div",{className:"text",children:[a.jsx("p",{children:m("Expand on click")}),a.jsx("p",{className:"description",children:m("Scales the image with a lightbox effect")})]}),a.jsx(fe,{icon:Xu,label:m("Disable expand on click"),onClick:()=>{p?.(!1)},size:"compact"})]});if(!n||x)return a.jsx(Mp.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:U,onChangeInputValue:A,onSubmit:W(),autocompleteRef:_});if(n&&!x)return a.jsxs(a.Fragment,{children:[a.jsx(Mp.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",url:n,onEditLinkClick:k,urlLabel:ne}),a.jsx(fe,{icon:Xu,label:m("Remove link"),onClick:()=>{B(),f?.()},size:"compact"})]})};return a.jsxs(a.Fragment,{children:[a.jsx(bt,{icon:Qa,className:"components-toolbar__control",label:m("Link"),"aria-expanded":b,onClick:y,ref:z,isActive:!!n||d&&u}),b&&a.jsx(Mp,{ref:w,anchor:g,onFocusOutside:T(),onClose:S,renderSettings:X?()=>H:null,additionalControls:Z&&a.jsxs(xf,{children:[N().map(Y=>a.jsx(tt,{icon:Y.icon,iconPosition:"left",onClick:()=>{A(null),E(Y.url),q()},children:Y.title},Y.linkDestination)),u&&a.jsx(tt,{className:"block-editor-url-popover__expand-on-click",icon:Vv,info:m("Scale the image with a lightbox effect."),iconPosition:"left",onClick:()=>{A(null),t({linkDestination:XS,href:""}),p?.(!0),q()},children:m("Expand on click")},"expand-on-click")]}),offset:13,children:oe()})]})},bZ={px:{max:300,steps:1},"%":{max:100,steps:1},vw:{max:100,steps:1},vh:{max:100,steps:1},em:{max:10,steps:.1},rm:{max:10,steps:.1},svw:{max:100,steps:1},lvw:{max:100,steps:1},dvw:{max:100,steps:1},svh:{max:100,steps:1},lvh:{max:100,steps:1},dvh:{max:100,steps:1},vi:{max:100,steps:1},svi:{max:100,steps:1},lvi:{max:100,steps:1},dvi:{max:100,steps:1},vb:{max:100,steps:1},svb:{max:100,steps:1},lvb:{max:100,steps:1},dvb:{max:100,steps:1},vmin:{max:100,steps:1},svmin:{max:100,steps:1},lvmin:{max:100,steps:1},dvmin:{max:100,steps:1},vmax:{max:100,steps:1},svmax:{max:100,steps:1},lvmax:{max:100,steps:1},dvmax:{max:100,steps:1}};function jP({icon:e,isMixed:t=!1,minimumCustomValue:n,onChange:o,onMouseOut:r,onMouseOver:s,showSideInLabel:i=!0,side:c,spacingSizes:l,type:u,value:d}){var p,f;d=Dw(d,l);let b=l;const h=l.length<=hbe,g=D(X=>X(F).getSettings()?.disableCustomSpacingSizes),[z,y]=O.useState(!g&&d!==void 0&&!sp(d)),[x,v]=O.useState(n),M=t1(d);d&&M!==d&&!sp(d)&&z!==!0&&y(!0);const[A]=O0("spacing.units"),_=Fr({availableUnits:A||["px","em","rem"]});let w=null;!h&&!z&&d!==void 0&&(!sp(d)||sp(d)&&t)?(b=[...l,{name:t?m("Mixed"):le(m("Custom (%s)"),d),slug:"custom",size:d}],w=b.length-1):t||(w=z?fM(d,l):vOt(d,l));const q=O.useMemo(()=>y0(w),[w])[1]||_[0]?.value,S=()=>{d===void 0&&o("0")},C=X=>d===void 0?void 0:l[X]?.name,T=parseFloat(w,10),W=X=>!isNaN(parseFloat(X))?X:void 0,B=(X,Z)=>{const ne=parseInt(X,10);if(Z==="selectList"){if(ne===0)return;if(ne===1)return"0"}else if(ne===0)return"0";return`var:preset|spacing|${l[X]?.slug}`},N=X=>{o([X,q].join(""))},E=t?m("Mixed"):null,L=b.map((X,Z)=>({key:Z,name:X.name})),I=l.slice(1,l.length-1).map((X,Z)=>({value:Z+1,label:void 0})),P=X2.includes(c)&&i?za[c]:"",H=i?u?.toLowerCase():u,U=le(m("%1$s %2$s"),P,H).trim();return a.jsxs(Je,{className:"spacing-sizes-control__wrapper",children:[e&&a.jsx(xn,{className:"spacing-sizes-control__icon",icon:e,size:24}),z&&a.jsxs(a.Fragment,{children:[a.jsx(H0,{onMouseOver:s,onMouseOut:r,onFocus:s,onBlur:r,onChange:X=>o(W(X)),value:w,units:_,min:x,placeholder:E,disableUnits:t,label:U,hideLabelFromVision:!0,className:"spacing-sizes-control__custom-value-input",size:"__unstable-large",onDragStart:()=>{d?.charAt(0)==="-"&&v(0)},onDrag:()=>{d?.charAt(0)==="-"&&v(0)},onDragEnd:()=>{v(n)}}),a.jsx(T0,{__next40pxDefaultSize:!0,onMouseOver:s,onMouseOut:r,onFocus:s,onBlur:r,value:T,min:0,max:(p=bZ[q]?.max)!==null&&p!==void 0?p:10,step:(f=bZ[q]?.steps)!==null&&f!==void 0?f:.1,withInputField:!1,onChange:N,className:"spacing-sizes-control__custom-value-range",__nextHasNoMarginBottom:!0,label:U,hideLabelFromVision:!0})]}),h&&!z&&a.jsx(T0,{__next40pxDefaultSize:!0,onMouseOver:s,onMouseOut:r,className:"spacing-sizes-control__range-control",value:w,onChange:X=>o(B(X)),onMouseDown:X=>{X?.nativeEvent?.offsetX<35&&S()},withInputField:!1,"aria-valuenow":w,"aria-valuetext":l[w]?.name,renderTooltipContent:C,min:0,max:l.length-1,marks:I,label:U,hideLabelFromVision:!0,__nextHasNoMarginBottom:!0,onFocus:s,onBlur:r}),!h&&!z&&a.jsx(Lh,{className:"spacing-sizes-control__custom-select-control",value:L.find(X=>X.key===w)||"",onChange:X=>{o(B(X.selectedItem.key,"selectList"))},options:L,label:U,hideLabelFromVision:!0,size:"__unstable-large",onMouseOver:s,onMouseOut:r,onFocus:s,onBlur:r}),!g&&a.jsx(fe,{label:m(z?"Use size preset":"Set custom size"),icon:kle,onClick:()=>{y(!z)},isPressed:z,size:"small",className:"spacing-sizes-control__custom-toggle",iconSize:24})]})}const hZ=["vertical","horizontal"];function qWt({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:o,sides:r,spacingSizes:s,type:i,values:c}){const l=d=>p=>{if(!t)return;const f={...Object.keys(c).reduce((b,h)=>(b[h]=Dw(c[h],s),b),{})};d==="vertical"&&(f.top=p,f.bottom=p),d==="horizontal"&&(f.left=p,f.right=p),t(f)},u=r?.length?hZ.filter(d=>d5(r,d)):hZ;return a.jsx(a.Fragment,{children:u.map(d=>{const p=d==="vertical"?c.top:c.left;return a.jsx(jP,{icon:Xd[d],label:za[d],minimumCustomValue:e,onChange:l(d),onMouseOut:n,onMouseOver:o,side:d,spacingSizes:s,type:i,value:p,withInputField:!1},`spacing-sizes-control-${d}`)})})}function SWt({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:o,sides:r,spacingSizes:s,type:i,values:c}){const l=r?.length?X2.filter(d=>r.includes(d)):X2,u=d=>p=>{const f={...Object.keys(c).reduce((b,h)=>(b[h]=Dw(c[h],s),b),{})};f[d]=p,t(f)};return a.jsx(a.Fragment,{children:l.map(d=>a.jsx(jP,{icon:Xd[d],label:za[d],minimumCustomValue:e,onChange:u(d),onMouseOut:n,onMouseOver:o,side:d,spacingSizes:s,type:i,value:c[d],withInputField:!1},`spacing-sizes-control-${d}`))})}function CWt({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:o,showSideInLabel:r,side:s,spacingSizes:i,type:c,values:l}){const u=d=>p=>{const f={...Object.keys(l).reduce((b,h)=>(b[h]=Dw(l[h],i),b),{})};f[d]=p,t(f)};return a.jsx(jP,{label:za[s],minimumCustomValue:e,onChange:u(s),onMouseOut:n,onMouseOver:o,showSideInLabel:r,side:s,spacingSizes:i,type:c,value:l[s],withInputField:!1})}const mZ=a.jsx(xn,{icon:no,size:24});function RWt({label:e,onChange:t,sides:n,value:o}){if(!n||!n.length)return;const r=xOt(n),s=r[o].icon,{custom:i,...c}=r;return a.jsx(E1,{icon:s,label:e,className:"spacing-sizes-control__dropdown",toggleProps:{size:"small"},children:({onClose:l})=>a.jsxs(a.Fragment,{children:[a.jsx(Yt,{children:Object.entries(c).map(([u,{label:d,icon:p}])=>{const f=o===u;return a.jsx(tt,{icon:p,iconPosition:"left",isSelected:f,role:"menuitemradio",onClick:()=>{t(u),l()},suffix:f?mZ:void 0,children:d},u)})}),!!i&&a.jsx(Yt,{children:a.jsx(tt,{icon:i.icon,iconPosition:"left",isSelected:o===mp.custom,role:"menuitemradio",onClick:()=>{t(mp.custom),l()},suffix:o===mp.custom?mZ:void 0,children:i.label})})]})})}const GS=[],WWt=new Intl.Collator("und",{numeric:!0}).compare;function mMe(){const[e,t,n,o]=O0("spacing.spacingSizes.custom","spacing.spacingSizes.theme","spacing.spacingSizes.default","spacing.defaultSpacingSizes"),r=e??GS,s=t??GS,i=n&&o!==!1?n:GS;return O.useMemo(()=>{const c=[{name:m("None"),slug:"0",size:0},...r,...s,...i];return c.every(({slug:l})=>/^[0-9]/.test(l))&&c.sort((l,u)=>WWt(l.slug,u.slug)),c.length>hbe?[{name:m("Default"),slug:"default",size:void 0},...c]:c},[r,s,i])}function y4({inputProps:e,label:t,minimumCustomValue:n=0,onChange:o,onMouseOut:r,onMouseOver:s,showSideInLabel:i=!0,sides:c=X2,useSelect:l,values:u}){const d=mMe(),p=u||yOt,f=c?.length===1,b=c?.includes("horizontal")&&c?.includes("vertical")&&c?.length===2,[h,g]=O.useState(wOt(p,c)),y={...e,minimumCustomValue:n,onChange:_=>{const w={...u,..._};o(w)},onMouseOut:r,onMouseOver:s,sides:c,spacingSizes:d,type:t,useSelect:l,values:p},x=()=>h===mp.axial?a.jsx(qWt,{...y}):h===mp.custom?a.jsx(SWt,{...y}):a.jsx(CWt,{side:h,...y,showSideInLabel:i}),v=X2.includes(h)&&i?za[h]:"",M=le(m("%1$s %2$s"),t,v).trim(),A=le(Oe("%s options","Button label to reveal side configuration options"),t);return a.jsxs("fieldset",{className:"spacing-sizes-control",children:[a.jsxs(Je,{className:"spacing-sizes-control__header",children:[a.jsx(z0.VisualLabel,{as:"legend",className:"spacing-sizes-control__label",children:M}),!f&&!b&&a.jsx(RWt,{label:A,onChange:g,sides:c,value:h})]}),a.jsx(Ye,{spacing:.5,children:x()})]})}function TWt(e){const[t,n]=O.useState(window.innerWidth);O.useEffect(()=>{if(e==="Desktop")return;const i=()=>n(window.innerWidth);return window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}},[e]);const o=i=>{let c;switch(i){case"Tablet":c=780;break;case"Mobile":c=360;break;default:return null}return cwindow.innerHeight<800?36:64;return(i=>{const c=i==="Mobile"?"768px":"1024px",l=r()+"px",u="auto";switch(i){case"Tablet":case"Mobile":return{width:o(i),marginTop:l,marginBottom:l,marginLeft:u,marginRight:u,height:c,overflowY:"auto"};default:return{marginLeft:u,marginRight:u}}})(e)}function EWt(){const e=D(o=>o(F).getBlockSelectionStart(),[]),t=O.useRef();Fj(e,t);const n=()=>{t.current?.focus()};return e?a.jsx(fe,{__next40pxDefaultSize:!1,variant:"secondary",className:"block-editor-skip-to-selected-block",onClick:n,children:m("Skip to the selected block")}):null}const BWt={HTMLRegExp:/<\/?[a-z][^>]*?>/gi,HTMLcommentRegExp://g,spaceRegExp:/ | /gi,HTMLEntityRegExp:/&\S+?;/g,connectorRegExp:/--|\u2014/g,removeRegExp:new RegExp(["[","!-/:-@[-`{-~","€-¿×÷"," -⯿","⸀-⹿","]"].join(""),"g"),astralRegExp:/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wordsRegExp:/\S\s+/g,characters_excluding_spacesRegExp:/\S/g,characters_including_spacesRegExp:/[^\f\n\r\t\v\u00AD\u2028\u2029]/g,l10n:{type:"words"}};function MMe(e,t){return t.replace(e.HTMLRegExp,` `)}function NWt(e,t){return t.replace(e.astralRegExp,"a")}function LWt(e,t){return t.replace(e.HTMLEntityRegExp,"")}function jWt(e,t){return t.replace(e.connectorRegExp," ")}function PWt(e,t){return t.replace(e.removeRegExp,"")}function gMe(e,t){return t.replace(e.HTMLcommentRegExp,"")}function zMe(e,t){return e.shortcodesRegExp?t.replace(e.shortcodesRegExp,` `):t}function OMe(e,t){return t.replace(e.spaceRegExp," ")}function IWt(e,t){return t.replace(e.HTMLEntityRegExp,"a")}function DWt(e,t){var n;const o=Object.assign({},BWt,t);return o.shortcodes=(n=o.l10n?.shortcodes)!==null&&n!==void 0?n:[],o.shortcodes&&o.shortcodes.length&&(o.shortcodesRegExp=new RegExp("\\[\\/?(?:"+o.shortcodes.join("|")+")[^\\]]*?\\]","g")),o.type=e,o.type!=="characters_excluding_spaces"&&o.type!=="characters_including_spaces"&&(o.type="words"),o}function FWt(e,t,n){var o;return e=[MMe.bind(null,n),gMe.bind(null,n),zMe.bind(null,n),OMe.bind(null,n),LWt.bind(null,n),jWt.bind(null,n),PWt.bind(null,n)].reduce((r,s)=>s(r),e),e=e+` `,(o=e.match(t)?.length)!==null&&o!==void 0?o:0}function MZ(e,t,n){var o;return e=[MMe.bind(null,n),gMe.bind(null,n),zMe.bind(null,n),NWt.bind(null,n),OMe.bind(null,n),IWt.bind(null,n)].reduce((r,s)=>s(r),e),e=e+` @@ -620,7 +620,7 @@ https://www.w3ctech.com/topic/2226`));let c=n(...i);return c.postcssPlugin=t,c.p .has-global-padding > .alignfull { margin-right: calc(var(--wp--style--root--padding-right) * -1); margin-left: calc(var(--wp--style--root--padding-left) * -1); } .has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) { padding-right: 0; padding-left: 0; } .has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) > .alignfull { margin-left: 0; margin-right: 0; - `),h+="}"),c.blockStyles&&l.forEach(({selector:g,duotoneSelector:z,styles:y,fallbackGapValue:x,hasLayoutSupport:v,featureSelectors:M,styleVariationSelectors:A,skipSelectorWrapper:_})=>{if(M){const q=OZ(M,y);Object.entries(q).forEach(([S,C])=>{if(C.length){const T=C.join(";");h+=`:root :where(${S}){${T};}`}})}if(z){const q={};y?.filter&&(q.filter=y.filter,delete y.filter);const S=Tb(q);S.length&&(h+=`${z}{${S.join(";")};}`)}!r&&(Oc===g||v)&&(h+=RMe({style:y,selector:g,hasBlockGapSupport:n,hasFallbackGapSupport:o,fallbackGapValue:x}));const w=Tb(y,g,d,e,s);if(w?.length){const q=_?g:`:root :where(${g})`;h+=`${q}{${w.join(";")};}`}y?.css&&(h+=jT(y.css,`:root :where(${g})`)),c.variationStyles&&A&&Object.entries(A).forEach(([q,S])=>{const C=y?.variations?.[q];if(C){if(M){const W=OZ(M,C);Object.entries(W).forEach(([B,N])=>{if(N.length){const E=gTt(B,S),L=N.join(";");h+=`:root :where(${E}){${L};}`}})}const T=Tb(C,S,d,e);T.length&&(h+=`:root :where(${S}){${T.join(";")};}`),C?.css&&(h+=jT(C.css,`:root :where(${S})`))}});const k=Object.entries(y).filter(([q])=>q.startsWith(":"));k?.length&&k.forEach(([q,S])=>{const C=Tb(S);if(!C?.length)return;const W=`:root :where(${g.split(",").map(B=>B+q).join(",")}){${C.join(";")};}`;h+=W})}),c.layoutStyles&&(h=h+".wp-site-blocks > .alignleft { float: left; margin-right: 2em; }",h=h+".wp-site-blocks > .alignright { float: right; margin-left: 2em; }",h=h+".wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }"),c.blockGap&&n){const g=_r(e?.styles?.spacing?.blockGap)||"0.5em";h=h+`:root :where(.wp-site-blocks) > * { margin-block-start: ${g}; margin-block-end: 0; }`,h=h+":root :where(.wp-site-blocks) > :first-child { margin-block-start: 0; }",h=h+":root :where(.wp-site-blocks) > :last-child { margin-block-end: 0; }"}return c.presets&&u.forEach(({selector:g,presets:z})=>{(Oc===g||q5===g)&&(g="");const y=mTt(g,z);y.length>0&&(h+=y)}),h};function yTt(e,t){return DP(e,t).flatMap(({presets:o})=>MTt(o))}const vTt=(e,t)=>{if(e?.selectors&&Object.keys(e.selectors).length>0)return e.selectors;const n={root:t};return Object.entries(bTt).forEach(([o,r])=>{const s=ku(e,o);s&&(n[r]=s)}),n},Ck=(e,t,n)=>{const o={};return e.forEach(r=>{const s=r.name,i=ku(r);let c=ku(r,"filter.duotone");if(!c){const b=ku(r),h=Zt(r,"color.__experimentalDuotone",!1);c=h&&Yr(b,h)}const l=!!r?.supports?.layout||!!r?.supports?.__experimentalLayout,u=r?.supports?.spacing?.blockGap?.__experimentalDefault,d=t(s),p={};d?.forEach(b=>{const h=n?`-${n}`:"",g=`${b.name}${h}`,z=$kt(g,i);p[g]=z});const f=vTt(r,i);o[s]={duotoneSelector:c,fallbackGapValue:u,featureSelectors:Object.keys(f).length?f:void 0,hasLayoutSupport:l,name:s,selector:i,styleVariationSelectors:d?.length?p:void 0}}),o};function xTt(e){return e.styles?.blocks?.["core/separator"]&&e.styles?.blocks?.["core/separator"].color?.background&&!e.styles?.blocks?.["core/separator"].color?.text&&!e.styles?.blocks?.["core/separator"].border?.color?{...e,styles:{...e.styles,blocks:{...e.styles.blocks,"core/separator":{...e.styles.blocks["core/separator"],color:{...e.styles.blocks["core/separator"].color,text:e.styles?.blocks["core/separator"].color.background}}}}}:e}function jT(e,t){let n="";return!e||e.trim()===""||e.split("&").forEach(r=>{if(!r||r.trim()==="")return;if(!r.includes("{"))n+=`:root :where(${t}){${r.trim()}}`;else{const i=r.replace("}","").split("{");if(i.length!==2)return;const[c,l]=i,u=c.match(/([>+~\s]*::[a-zA-Z-]+)/),d=u?u[1]:"",p=u?c.replace(d,"").trim():c.trim();let f;p===""?f=t:f=c.startsWith(" ")?Yr(t,p):Dkt(t,p),n+=`:root :where(${f})${d}{${l.trim()}}`}}),n}function WMe(e={},t){const[n]=_Me("spacing.blockGap"),o=n!==null,r=!o,s=D(c=>{const{getSettings:l}=c(F);return!!l().disableLayoutStyles}),{getBlockStyles:i}=D($e);return O.useMemo(()=>{var c;if(!e?.styles||!e?.settings)return[];const l=xTt(e),u=Ck(nr(),i),d=ATt(l,u),p=Sk(l,u,o,r,s,t),f=yTt(l,u),b=[{css:d,isGlobalStyles:!0},{css:p,isGlobalStyles:!0},{css:(c=l.styles.css)!==null&&c!==void 0?c:"",isGlobalStyles:!0},{assets:f,__unstableType:"svg",isGlobalStyles:!0}];return nr().forEach(h=>{if(l.styles.blocks[h.name]?.css){const g=u[h.name].selector;b.push({css:jT(l.styles.blocks[h.name]?.css,g),isGlobalStyles:!0})}}),[b,l.settings]},[o,r,e,s,t,i])}function _Tt(e=!1){const{merged:t}=O.useContext(em);return WMe(t,e)}const wTt=[{label:m("Align text left"),value:"left",icon:_3},{label:m("Align text center"),value:"center",icon:V_},{label:m("Align text right"),value:"right",icon:w3},{label:m("Justify text"),value:"justify",icon:mYe}],kTt=["left","center","right"];function TMe({className:e,value:t,onChange:n,options:o=kTt}){const r=O.useMemo(()=>wTt.filter(s=>o.includes(s.value)),[o]);return r.length?a.jsx(wn,{isDeselectable:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:m("Text alignment"),className:$("block-editor-text-alignment-control",e),value:t,onChange:s=>{n(s===t?void 0:s)},children:r.map(s=>a.jsx(Bi,{value:s.value,icon:s.icon,label:s.label},s.value))}):null}const qTt=1,STt=6;function EMe(e){const t=NMe(e),n=LMe(e),o=jMe(e),r=PMe(e),s=DMe(e),i=IMe(e),c=FMe(e),l=$Me(e),u=VMe(e),d=BMe(e);return t||n||o||r||s||i||d||c||l||u}function BMe(e){return e?.typography?.defaultFontSizes!==!1&&e?.typography?.fontSizes?.default?.length||e?.typography?.fontSizes?.theme?.length||e?.typography?.fontSizes?.custom?.length||e?.typography?.customFontSize}function NMe(e){return["default","theme","custom"].some(t=>e?.typography?.fontFamilies?.[t]?.length)}function LMe(e){return e?.typography?.lineHeight}function jMe(e){return e?.typography?.fontStyle||e?.typography?.fontWeight}function CTt(e){return e?.typography?.fontStyle?e?.typography?.fontWeight?m("Appearance"):m("Font style"):m("Font weight")}function PMe(e){return e?.typography?.letterSpacing}function IMe(e){return e?.typography?.textTransform}function DMe(e){return e?.typography?.textAlign}function FMe(e){return e?.typography?.textDecoration}function $Me(e){return e?.typography?.writingMode}function VMe(e){return e?.typography?.textColumns}function RTt(e){var t,n,o;const r=e?.typography?.fontSizes,s=!!e?.typography?.defaultFontSizes;return[...(t=r?.custom)!==null&&t!==void 0?t:[],...(n=r?.theme)!==null&&n!==void 0?n:[],...s?(o=r?.default)!==null&&o!==void 0?o:[]:[]]}function WTt({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){const s=Ad(),i=()=>{const c=e(n);t(c)};return a.jsx(Tr,{label:m("Typography"),resetAll:i,panelId:o,dropdownMenuProps:s,children:r})}const TTt={fontFamily:!0,fontSize:!0,fontAppearance:!0,lineHeight:!0,letterSpacing:!0,textAlign:!0,textTransform:!0,textDecoration:!0,writingMode:!0,textColumns:!0};function HMe({as:e=WTt,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:s,defaultControls:i=TTt}){const c=Ue=>ki({settings:r},"",Ue),l=NMe(r),u=c(o?.typography?.fontFamily),{fontFamilies:d,fontFamilyFaces:p}=O.useMemo(()=>Tkt(r,u),[r,u]),f=Ue=>{const Xe=d?.find(({fontFamily:ot})=>ot===Ue)?.slug;n(Vt(t,["typography","fontFamily"],Xe?`var:preset|font-family|${Xe}`:Ue||void 0))},b=()=>!!t?.typography?.fontFamily,h=()=>f(void 0),g=BMe(r),z=!r?.typography?.customFontSize,y=RTt(r),x=c(o?.typography?.fontSize),v=(Ue,Xe)=>{const ot=Xe?.slug?`var:preset|font-size|${Xe?.slug}`:Ue;n(Vt(t,["typography","fontSize"],ot||void 0))},M=()=>!!t?.typography?.fontSize,A=()=>v(void 0),_=jMe(r),w=CTt(r),k=r?.typography?.fontStyle,q=r?.typography?.fontWeight,S=c(o?.typography?.fontStyle),C=c(o?.typography?.fontWeight),{nearestFontStyle:T,nearestFontWeight:W}=Bkt(p,S,C),B=O.useCallback(({fontStyle:Ue,fontWeight:Xe})=>{(Ue!==S||Xe!==C)&&n({...t,typography:{...t?.typography,fontStyle:Ue||void 0,fontWeight:Xe||void 0}})},[S,C,n,t]),N=()=>!!t?.typography?.fontStyle||!!t?.typography?.fontWeight,E=O.useCallback(()=>{B({})},[B]);O.useEffect(()=>{T&&W?B({fontStyle:T,fontWeight:W}):E()},[T,W,E,B]);const L=LMe(r),I=c(o?.typography?.lineHeight),P=Ue=>{n(Vt(t,["typography","lineHeight"],Ue||void 0))},H=()=>t?.typography?.lineHeight!==void 0,U=()=>P(void 0),X=PMe(r),Z=c(o?.typography?.letterSpacing),ne=Ue=>{n(Vt(t,["typography","letterSpacing"],Ue||void 0))},oe=()=>!!t?.typography?.letterSpacing,Y=()=>ne(void 0),ee=VMe(r),ie=c(o?.typography?.textColumns),se=Ue=>{n(Vt(t,["typography","textColumns"],Ue||void 0))},be=()=>!!t?.typography?.textColumns,ye=()=>se(void 0),xe=IMe(r),K=c(o?.typography?.textTransform),pe=Ue=>{n(Vt(t,["typography","textTransform"],Ue||void 0))},G=()=>!!t?.typography?.textTransform,re=()=>pe(void 0),Me=FMe(r),he=c(o?.typography?.textDecoration),Q=Ue=>{n(Vt(t,["typography","textDecoration"],Ue||void 0))},R=()=>!!t?.typography?.textDecoration,j=()=>Q(void 0),V=$Me(r),de=c(o?.typography?.writingMode),ge=Ue=>{n(Vt(t,["typography","writingMode"],Ue||void 0))},ve=()=>!!t?.typography?.writingMode,Ne=()=>ge(void 0),et=DMe(r),mt=c(o?.typography?.textAlign),Mt=Ue=>{n(Vt(t,["typography","textAlign"],Ue||void 0))},Ke=()=>!!t?.typography?.textAlign,Nt=()=>Mt(void 0),zt=O.useCallback(Ue=>({...Ue,typography:{}}),[]);return a.jsxs(e,{resetAllFilter:zt,value:t,onChange:n,panelId:s,children:[l&&a.jsx(Rt,{label:m("Font"),hasValue:b,onDeselect:h,isShownByDefault:i.fontFamily,panelId:s,children:a.jsx(GCt,{fontFamilies:d,value:u,onChange:f,size:"__unstable-large",__nextHasNoMarginBottom:!0})}),g&&a.jsx(Rt,{label:m("Size"),hasValue:M,onDeselect:A,isShownByDefault:i.fontSize,panelId:s,children:a.jsx(rft,{value:x,onChange:v,fontSizes:y,disableCustomFontSizes:z,withReset:!1,withSlider:!0,size:"__unstable-large"})}),_&&a.jsx(Rt,{className:"single-column",label:w,hasValue:N,onDeselect:E,isShownByDefault:i.fontAppearance,panelId:s,children:a.jsx(XCt,{value:{fontStyle:S,fontWeight:C},onChange:B,hasFontStyles:k,hasFontWeights:q,fontFamilyFaces:p,size:"__unstable-large"})}),L&&a.jsx(Rt,{className:"single-column",label:m("Line height"),hasValue:H,onDeselect:U,isShownByDefault:i.lineHeight,panelId:s,children:a.jsx(N8t,{__unstableInputWidth:"auto",value:I,onChange:P,size:"__unstable-large"})}),X&&a.jsx(Rt,{className:"single-column",label:m("Letter spacing"),hasValue:oe,onDeselect:Y,isShownByDefault:i.letterSpacing,panelId:s,children:a.jsx(KCt,{value:Z,onChange:ne,size:"__unstable-large",__unstableInputWidth:"auto"})}),ee&&a.jsx(Rt,{className:"single-column",label:m("Columns"),hasValue:be,onDeselect:ye,isShownByDefault:i.textColumns,panelId:s,children:a.jsx(T1,{label:m("Columns"),max:STt,min:qTt,onChange:se,size:"__unstable-large",spinControls:"custom",value:ie,initialPosition:1})}),Me&&a.jsx(Rt,{className:"single-column",label:m("Decoration"),hasValue:R,onDeselect:j,isShownByDefault:i.textDecoration,panelId:s,children:a.jsx(ZCt,{value:he,onChange:Q,size:"__unstable-large",__unstableInputWidth:"auto"})}),V&&a.jsx(Rt,{className:"single-column",label:m("Orientation"),hasValue:ve,onDeselect:Ne,isShownByDefault:i.writingMode,panelId:s,children:a.jsx(tRt,{value:de,onChange:ge,size:"__unstable-large",__nextHasNoMarginBottom:!0})}),xe&&a.jsx(Rt,{label:m("Letter case"),hasValue:G,onDeselect:re,isShownByDefault:i.textTransform,panelId:s,children:a.jsx(JCt,{value:K,onChange:pe,showNone:!0,isBlock:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0})}),et&&a.jsx(Rt,{label:m("Text alignment"),hasValue:Ke,onDeselect:Nt,isShownByDefault:i.textAlign,panelId:s,children:a.jsx(TMe,{value:mt,onChange:Mt,size:"__unstable-large",__nextHasNoMarginBottom:!0})})]})}function Rk(e,t){const{getBlockOrder:n,getBlockAttributes:o}=D(F);return(s,i)=>{const c=(i-1)*t+s-1;let l=0;for(const d of n(e)){var u;const{columnStart:p,rowStart:f}=(u=o(d).style?.layout)!==null&&u!==void 0?u:{};(f-1)*t+p-1!!s,u=m(c==="horizontal"?"Width":"Height"),d=()=>{t({selfStretch:void 0,flexSize:void 0})};return O.useEffect(()=>{s==="fixed"&&!i&&t({...e,selfStretch:"fit"})},[]),a.jsxs(Ye,{as:Rt,spacing:2,hasValue:l,label:u,onDeselect:d,isShownByDefault:o,panelId:r,children:[a.jsxs(wn,{__nextHasNoMarginBottom:!0,size:"__unstable-large",label:LTt(n),value:s||"fit",help:ETt(s,n),onChange:p=>{t({selfStretch:p,flexSize:p!=="fixed"?null:i})},isBlock:!0,children:[a.jsx(W0,{value:"fit",label:Oe("Fit","Intrinsic block width in flex layout")},"fit"),a.jsx(W0,{value:"fill",label:Oe("Grow","Block with expanding width in flex layout")},"fill"),a.jsx(W0,{value:"fixed",label:Oe("Fixed","Block with fixed width in flex layout")},"fixed")]}),s==="fixed"&&a.jsx(H0,{size:"__unstable-large",onChange:p=>{t({selfStretch:s,flexSize:p})},value:i,label:u,hideLabelFromVision:!0})]})}function LTt(e){const{orientation:t="horizontal"}=e;return m(t==="horizontal"?"Width":"Height")}function jTt({childLayout:e,onChange:t,parentLayout:n,isShownByDefault:o,panelId:r}){const{columnStart:s,rowStart:i,columnSpan:c,rowSpan:l}=e,{columnCount:u=3,rowCount:d}=n??{},p=D(v=>v(F).getBlockRootClientId(r)),{moveBlocksToPosition:f,__unstableMarkNextChangeAsNotPersistent:b}=ae(F),h=Rk(p,u),g=()=>!!s||!!i,z=()=>!!c||!!l,y=()=>{t({columnStart:void 0,rowStart:void 0})},x=()=>{t({columnSpan:void 0,rowSpan:void 0})};return a.jsxs(a.Fragment,{children:[a.jsxs(Je,{as:Rt,hasValue:z,label:m("Grid span"),onDeselect:x,isShownByDefault:o,panelId:r,children:[a.jsx(Ps,{size:"__unstable-large",label:m("Column span"),type:"number",onChange:v=>{const M=v===""?1:parseInt(v,10);t({columnStart:s,rowStart:i,rowSpan:l,columnSpan:M})},value:c??1,min:1}),a.jsx(Ps,{size:"__unstable-large",label:m("Row span"),type:"number",onChange:v=>{const M=v===""?1:parseInt(v,10);t({columnStart:s,rowStart:i,columnSpan:c,rowSpan:M})},value:l??1,min:1})]}),window.__experimentalEnableGridInteractivity&&u&&a.jsxs(Q0,{as:Rt,hasValue:g,label:m("Grid placement"),onDeselect:y,isShownByDefault:!1,panelId:r,children:[a.jsx(Ht,{style:{width:"50%"},children:a.jsx(Ps,{size:"__unstable-large",label:m("Column"),type:"number",onChange:v=>{const M=v===""?1:parseInt(v,10);t({columnStart:M,rowStart:i,columnSpan:c,rowSpan:l}),b(),f([r],p,p,h(M,i))},value:s??1,min:1,max:u?u-(c??1)+1:void 0})}),a.jsx(Ht,{style:{width:"50%"},children:a.jsx(Ps,{size:"__unstable-large",label:m("Row"),type:"number",onChange:v=>{const M=v===""?1:parseInt(v,10);t({columnStart:s,rowStart:M,columnSpan:c,rowSpan:l}),b(),f([r],p,p,h(s,M))},value:i??1,min:1,max:d?d-(l??1)+1:void 0})})]})]})}function UMe({panelId:e,value:t,onChange:n=()=>{},options:o,defaultValue:r="auto",hasValue:s,isShownByDefault:i=!0}){const c=t??"auto",[l,u,d]=O0("dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),p=u?.map(({name:h,ratio:g})=>({label:h,value:g})),f=l?.map(({name:h,ratio:g})=>({label:h,value:g})),b=[{label:Oe("Original","Aspect ratio option for dimensions control"),value:"auto"},...d?f:[],...p||[],{label:Oe("Custom","Aspect ratio option for dimensions control"),value:"custom",disabled:!0,hidden:!0}];return a.jsx(Rt,{hasValue:s||(()=>c!==r),label:m("Aspect ratio"),onDeselect:()=>n(void 0),isShownByDefault:i,panelId:e,children:a.jsx(i0,{label:m("Aspect ratio"),value:c,options:o??b,onChange:n,size:"__unstable-large",__nextHasNoMarginBottom:!0})})}const KS=["horizontal","vertical"];function XMe(e){const t=GMe(e),n=KMe(e),o=YMe(e),r=ZMe(e),s=QMe(e),i=JMe(e),c=ege(e),l=tge(e);return t||n||o||r||s||i||c||l}function GMe(e){return e?.layout?.contentSize}function KMe(e){return e?.layout?.wideSize}function YMe(e){return e?.spacing?.padding}function ZMe(e){return e?.spacing?.margin}function QMe(e){return e?.spacing?.blockGap}function JMe(e){return e?.dimensions?.minHeight}function ege(e){return e?.dimensions?.aspectRatio}function tge(e){var t;const{type:n="default",default:{type:o="default"}={},allowSizingOnChildren:r=!1}=(t=e?.parentLayout)!==null&&t!==void 0?t:{},s=(o==="flex"||n==="flex"||o==="grid"||n==="grid")&&r;return!!e?.layout&&s}function PTt(e){const{defaultSpacingSizes:t,spacingSizes:n}=e?.spacing||{};return t!==!1&&n?.default?.length>0||n?.theme?.length>0||n?.custom?.length>0}function AZ(e,t){if(!t||!e)return e;const n={};return t.forEach(o=>{o==="vertical"&&(n.top=e.top,n.bottom=e.bottom),o==="horizontal"&&(n.left=e.left,n.right=e.right),n[o]=e?.[o]}),n}function yZ(e){return e&&typeof e=="string"?{top:e,right:e,bottom:e,left:e}:e}function ITt(e){return e&&typeof e=="string"?{top:e}:e&&{...e,right:e?.left,bottom:e?.top}}function DTt({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){const s=Ad(),i=()=>{const c=e(n);t(c)};return a.jsx(Tr,{label:m("Dimensions"),resetAll:i,panelId:o,dropdownMenuProps:s,children:r})}const dc={contentSize:!0,wideSize:!0,padding:!0,margin:!0,blockGap:!0,minHeight:!0,aspectRatio:!0,childLayout:!0};function nge({as:e=DTt,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:s,defaultControls:i=dc,onVisualize:c=()=>{},includeLayoutControls:l=!1}){var u,d,p,f,b,h,g,z;const{dimensions:y,spacing:x}=r,v=Ot=>Ot&&typeof Ot=="object"?Object.keys(Ot).reduce((k0,f1)=>(k0[f1]=ki({settings:{dimensions:y,spacing:x}},"",Ot[f1]),k0),{}):ki({settings:{dimensions:y,spacing:x}},"",Ot),M=PTt(r),A=Fr({availableUnits:r?.spacing?.units||["%","px","em","rem","vw"]}),_=-1/0,[w,k]=O.useState(_),q=GMe(r)&&l,S=v(o?.layout?.contentSize),C=Ot=>{n(Vt(t,["layout","contentSize"],Ot||void 0))},T=()=>!!t?.layout?.contentSize,W=()=>C(void 0),B=KMe(r)&&l,N=v(o?.layout?.wideSize),E=Ot=>{n(Vt(t,["layout","wideSize"],Ot||void 0))},L=()=>!!t?.layout?.wideSize,I=()=>E(void 0),P=YMe(r),H=v(o?.spacing?.padding),U=yZ(H),X=Array.isArray(r?.spacing?.padding)?r?.spacing?.padding:r?.spacing?.padding?.sides,Z=X&&X.some(Ot=>KS.includes(Ot)),ne=Ot=>{const k0=AZ(Ot,X);n(Vt(t,["spacing","padding"],k0))},oe=()=>!!t?.spacing?.padding&&Object.keys(t?.spacing?.padding).length,Y=()=>ne(void 0),ee=()=>c("padding"),ie=ZMe(r),se=v(o?.spacing?.margin),be=yZ(se),ye=Array.isArray(r?.spacing?.margin)?r?.spacing?.margin:r?.spacing?.margin?.sides,xe=ye&&ye.some(Ot=>KS.includes(Ot)),K=Ot=>{const k0=AZ(Ot,ye);n(Vt(t,["spacing","margin"],k0))},pe=()=>!!t?.spacing?.margin&&Object.keys(t?.spacing?.margin).length,G=()=>K(void 0),re=()=>c("margin"),Me=QMe(r),he=v(o?.spacing?.blockGap),Q=ITt(he),R=Array.isArray(r?.spacing?.blockGap)?r?.spacing?.blockGap:r?.spacing?.blockGap?.sides,j=R&&R.some(Ot=>KS.includes(Ot)),V=Ot=>{n(Vt(t,["spacing","blockGap"],Ot))},de=Ot=>{Ot||V(null),!j&&Ot?.hasOwnProperty("top")?V(Ot.top):V({top:Ot?.top,left:Ot?.left})},ge=()=>V(void 0),ve=()=>!!t?.spacing?.blockGap,Ne=JMe(r),et=v(o?.dimensions?.minHeight),mt=Ot=>{const k0=Vt(t,["dimensions","minHeight"],Ot);n(Vt(k0,["dimensions","aspectRatio"],void 0))},Mt=()=>{mt(void 0)},Ke=()=>!!t?.dimensions?.minHeight,Nt=ege(r),zt=v(o?.dimensions?.aspectRatio),Ue=Ot=>{const k0=Vt(t,["dimensions","aspectRatio"],Ot);n(Vt(k0,["dimensions","minHeight"],void 0))},Xe=()=>!!t?.dimensions?.aspectRatio,ot=tge(r),Ct=o?.layout,n0=Ot=>{n({...t,layout:{...Ot}})},o1=O.useCallback(Ot=>({...Ot,layout:ni({...Ot?.layout,contentSize:void 0,wideSize:void 0,selfStretch:void 0,flexSize:void 0,columnStart:void 0,rowStart:void 0,columnSpan:void 0,rowSpan:void 0}),spacing:{...Ot?.spacing,padding:void 0,margin:void 0,blockGap:void 0},dimensions:{...Ot?.dimensions,minHeight:void 0,aspectRatio:void 0}}),[]),B1=()=>c(!1),p1={min:w,onDragStart:()=>{k(0)},onDragEnd:()=>{k(_)}};return a.jsxs(e,{resetAllFilter:o1,value:t,onChange:n,panelId:s,children:[(q||B)&&a.jsx("span",{className:"span-columns",children:m("Set the width of the main content area.")}),q&&a.jsx(Rt,{label:m("Content width"),hasValue:T,onDeselect:W,isShownByDefault:(u=i.contentSize)!==null&&u!==void 0?u:dc.contentSize,panelId:s,children:a.jsx(H0,{__next40pxDefaultSize:!0,label:m("Content width"),labelPosition:"top",value:S||"",onChange:Ot=>{C(Ot)},units:A,prefix:a.jsx(Fp,{variant:"icon",children:a.jsx(t0,{icon:H_})})})}),B&&a.jsx(Rt,{label:m("Wide width"),hasValue:L,onDeselect:I,isShownByDefault:(d=i.wideSize)!==null&&d!==void 0?d:dc.wideSize,panelId:s,children:a.jsx(H0,{__next40pxDefaultSize:!0,label:m("Wide width"),labelPosition:"top",value:N||"",onChange:Ot=>{E(Ot)},units:A,prefix:a.jsx(Fp,{variant:"icon",children:a.jsx(t0,{icon:v7})})})}),P&&a.jsxs(Rt,{hasValue:oe,label:m("Padding"),onDeselect:Y,isShownByDefault:(p=i.padding)!==null&&p!==void 0?p:dc.padding,className:$({"tools-panel-item-spacing":M}),panelId:s,children:[!M&&a.jsx(s4,{values:U,onChange:ne,label:m("Padding"),sides:X,units:A,allowReset:!1,splitOnAxis:Z,onMouseOver:ee,onMouseOut:B1}),M&&a.jsx(y4,{values:U,onChange:ne,label:m("Padding"),sides:X,units:A,allowReset:!1,onMouseOver:ee,onMouseOut:B1})]}),ie&&a.jsxs(Rt,{hasValue:pe,label:m("Margin"),onDeselect:G,isShownByDefault:(f=i.margin)!==null&&f!==void 0?f:dc.margin,className:$({"tools-panel-item-spacing":M}),panelId:s,children:[!M&&a.jsx(s4,{values:be,onChange:K,inputProps:p1,label:m("Margin"),sides:ye,units:A,allowReset:!1,splitOnAxis:xe,onMouseOver:re,onMouseOut:B1}),M&&a.jsx(y4,{values:be,onChange:K,minimumCustomValue:-1/0,label:m("Margin"),sides:ye,units:A,allowReset:!1,onMouseOver:re,onMouseOut:B1})]}),Me&&a.jsxs(Rt,{hasValue:ve,label:m("Block spacing"),onDeselect:ge,isShownByDefault:(b=i.blockGap)!==null&&b!==void 0?b:dc.blockGap,className:$({"tools-panel-item-spacing":M,"single-column":!M&&!j}),panelId:s,children:[!M&&(j?a.jsx(s4,{label:m("Block spacing"),min:0,onChange:de,units:A,sides:R,values:Q,allowReset:!1,splitOnAxis:j}):a.jsx(H0,{__next40pxDefaultSize:!0,label:m("Block spacing"),min:0,onChange:V,units:A,value:he})),M&&a.jsx(y4,{label:m("Block spacing"),min:0,onChange:de,showSideInLabel:!1,sides:j?R:["top"],values:Q,allowReset:!1})]}),ot&&a.jsx(BTt,{value:Ct,onChange:n0,parentLayout:r?.parentLayout,panelId:s,isShownByDefault:(h=i.childLayout)!==null&&h!==void 0?h:dc.childLayout}),Ne&&a.jsx(Rt,{hasValue:Ke,label:m("Minimum height"),onDeselect:Mt,isShownByDefault:(g=i.minHeight)!==null&&g!==void 0?g:dc.minHeight,panelId:s,children:a.jsx(sRt,{label:m("Minimum height"),value:et,onChange:mt})}),Nt&&a.jsx(UMe,{hasValue:Xe,value:zt,onChange:Ue,panelId:s,isShownByDefault:(z=i.aspectRatio)!==null&&z!==void 0?z:dc.aspectRatio})]})}const cy=[],{CompositeItemV2:FTt,CompositeV2:$Tt}=Fe(L0);function VTt({shadow:e,onShadowChange:t,settings:n}){const o=oge(n);return a.jsx("div",{className:"block-editor-global-styles__shadow-popover-container",children:a.jsxs(Ye,{spacing:4,children:[a.jsx(ec,{level:5,children:m("Drop shadow")}),a.jsx(HTt,{presets:o,activeShadow:e,onSelect:t}),a.jsx("div",{className:"block-editor-global-styles__clear-shadow",children:a.jsx(fe,{__next40pxDefaultSize:!1,variant:"tertiary",onClick:()=>t(void 0),children:m("Clear")})})]})})}function HTt({presets:e,activeShadow:t,onSelect:n}){return e?a.jsx($Tt,{role:"listbox",className:"block-editor-global-styles__shadow__list","aria-label":m("Drop shadows"),children:e.map(({name:o,slug:r,shadow:s})=>a.jsx(UTt,{label:o,isActive:s===t,type:r==="unset"?"unset":"preset",onSelect:()=>n(s===t?void 0:s),shadow:s},r))}):null}function UTt({type:e,label:t,isActive:n,onSelect:o,shadow:r}){return a.jsx(FTt,{role:"option","aria-label":t,"aria-selected":n,className:$("block-editor-global-styles__shadow__item",{"is-active":n}),render:a.jsx(fe,{__next40pxDefaultSize:!1,className:$("block-editor-global-styles__shadow-indicator",{unset:e==="unset"}),onClick:o,label:t,style:{boxShadow:r},showTooltip:!0,children:n&&a.jsx(t0,{icon:no})})})}function XTt({shadow:e,onShadowChange:t,settings:n}){const o={placement:"left-start",offset:36,shift:!0};return a.jsx(B0,{popoverProps:o,className:"block-editor-global-styles__shadow-dropdown",renderToggle:GTt(),renderContent:()=>a.jsx(Ni,{paddingSize:"medium",children:a.jsx(VTt,{shadow:e,onShadowChange:t,settings:n})})})}function GTt(){return({onToggle:e,isOpen:t})=>{const n={onClick:e,className:$({"is-open":t}),"aria-expanded":t};return a.jsx(fe,{__next40pxDefaultSize:!1,...n,children:a.jsxs(Je,{justify:"flex-start",children:[a.jsx(t0,{className:"block-editor-global-styles__toggle-icon",icon:PZe,size:24}),a.jsx(Ht,{children:m("Drop shadow")})]})})}}function oge(e){return O.useMemo(()=>{var t;if(!e?.shadow)return cy;const n=e?.shadow?.defaultPresets,{default:o,theme:r,custom:s}=(t=e?.shadow?.presets)!==null&&t!==void 0?t:{},i={name:m("Unset"),slug:"unset",shadow:"none"},c=[...n&&o||cy,...r||cy,...s||cy];return c.length&&c.unshift(i),c},[e])}function rge(e){return Object.values(FP(e)).some(Boolean)}function FP(e){return{hasBorderColor:sge(e),hasBorderRadius:ige(e),hasBorderStyle:age(e),hasBorderWidth:cge(e),hasShadow:lge(e)}}function sge(e){return e?.border?.color}function ige(e){return e?.border?.radius}function age(e){return e?.border?.style}function cge(e){return e?.border?.width}function lge(e){const t=oge(e);return!!e?.shadow&&t.length>0}function KTt({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r,label:s}){const i=Ad(),c=()=>{const l=e(n);t(l)};return a.jsx(Tr,{label:s,resetAll:c,panelId:o,dropdownMenuProps:i,children:r})}const YTt={radius:!0,color:!0,width:!0,shadow:!0};function uge({as:e=KTt,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:s,name:i,defaultControls:c=YTt}){var l,u,d,p;const f=vd(r),b=O.useCallback(U=>ki({settings:r},"",U),[r]),h=U=>{const Z=f.flatMap(({colors:ne})=>ne).find(({color:ne})=>ne===U);return Z?"var:preset|color|"+Z.slug:U},g=O.useMemo(()=>{if(Ku(o?.border)){const U={...o?.border};return["top","right","bottom","left"].forEach(X=>{U[X]={...U[X],color:b(U[X]?.color)}}),U}return{...o?.border,color:o?.border?.color?b(o?.border?.color):void 0}},[o?.border,b]),z=U=>n({...t,border:U}),y=sge(r),x=age(r),v=cge(r),M=ige(r),A=b(g?.radius),_=U=>z({...g,radius:U}),w=()=>{const U=t?.border?.radius;return typeof U=="object"?Object.entries(U).some(Boolean):!!U},k=lge(r),q=b(o?.shadow),S=(l=r?.shadow?.presets)!==null&&l!==void 0?l:{},C=(u=(d=(p=S.custom)!==null&&p!==void 0?p:S.theme)!==null&&d!==void 0?d:S.default)!==null&&u!==void 0?u:[],T=U=>{const X=C?.find(({shadow:Z})=>Z===U)?.slug;n(Vt(t,["shadow"],X?`var:preset|shadow|${X}`:U||void 0))},W=()=>!!t?.shadow,B=()=>T(void 0),N=()=>{if(w())return z({radius:t?.border?.radius});z(void 0)},E=U=>{const X={...U};Ku(X)?["top","right","bottom","left"].forEach(Z=>{X[Z]&&(X[Z]={...X[Z],color:h(X[Z]?.color)})}):X&&(X.color=h(X.color)),z({radius:g?.radius,...X})},L=O.useCallback(U=>({...U,border:void 0,shadow:void 0}),[]),I=c?.color||c?.width,P=y||x||v||M,H=Tk({blockName:i,hasShadowControl:k,hasBorderControl:P});return a.jsxs(e,{resetAllFilter:L,value:t,onChange:n,panelId:s,label:H,children:[(v||y)&&a.jsx(Rt,{hasValue:()=>H1t(t?.border),label:m("Border"),onDeselect:()=>N(),isShownByDefault:I,panelId:s,children:a.jsx(not,{colors:f,enableAlpha:!0,enableStyle:x,onChange:E,popoverOffset:40,popoverPlacement:"left-start",value:g,__experimentalIsRenderedInSidebar:!0,size:"__unstable-large",hideLabelFromVision:!k,label:m("Border")})}),M&&a.jsx(Rt,{hasValue:w,label:m("Radius"),onDeselect:()=>_(void 0),isShownByDefault:c.radius,panelId:s,children:a.jsx(DCt,{values:A,onChange:U=>{_(U||void 0)}})}),k&&a.jsxs(Rt,{label:m("Shadow"),hasValue:W,onDeselect:B,isShownByDefault:c.shadow,panelId:s,children:[P?a.jsx(z0.VisualLabel,{as:"legend",children:m("Shadow")}):null,a.jsx(Yu,{isBordered:!0,isSeparated:!0,children:a.jsx(XTt,{shadow:q,onShadowChange:T,settings:r})})]})]})}function dge(e){const t=pge(e),n=mge(e),o=fge(e),r=Dl(e),s=hge(e),i=bge(e);return t||n||o||r||s||i}function pge(e){const t=vd(e);return e?.color?.text&&(t?.length>0||e?.color?.custom)}function fge(e){const t=vd(e);return e?.color?.link&&(t?.length>0||e?.color?.custom)}function bge(e){const t=vd(e);return e?.color?.caption&&(t?.length>0||e?.color?.custom)}function Dl(e){const t=vd(e),n=qk(e);return e?.color?.heading&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function hge(e){const t=vd(e),n=qk(e);return e?.color?.button&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function mge(e){const t=vd(e),n=qk(e);return e?.color?.background&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function ZTt({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){const s=Ad(),i=()=>{const c=e(n);t(c)};return a.jsx(Tr,{label:m("Elements"),resetAll:i,panelId:o,hasInnerWrapper:!0,headingLevel:3,className:"color-block-support-panel",__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",dropdownMenuProps:s,children:a.jsx("div",{className:"color-block-support-panel__inner-wrapper",children:r})})}const QTt={text:!0,background:!0,link:!0,heading:!0,button:!0,caption:!0},JTt={placement:"left-start",offset:36,shift:!0},{Tabs:ly}=Fe(L0),eEt=({indicators:e,label:t})=>a.jsxs(Je,{justify:"flex-start",children:[a.jsx(mfe,{isLayered:!1,offset:-8,children:e.map((n,o)=>a.jsx(Q0,{expanded:!1,children:a.jsx(vf,{colorValue:n})},o))}),a.jsx(Ht,{className:"block-editor-panel-color-gradient-settings__color-name",title:t,children:t})]});function vZ({isGradient:e,inheritedValue:t,userValue:n,setValue:o,colorGradientControlSettings:r}){return a.jsx(Tme,{...r,showTitle:!1,enableAlpha:!0,__experimentalIsRenderedInSidebar:!0,colorValue:e?void 0:t,gradientValue:e?t:void 0,onColorChange:e?void 0:o,onGradientChange:e?o:void 0,clearable:t===n,headingLevel:3})}function tEt({label:e,hasValue:t,resetValue:n,isShownByDefault:o,indicators:r,tabs:s,colorGradientControlSettings:i,panelId:c}){var l;const u=s.find(f=>f.userValue!==void 0),{key:d,...p}=(l=s[0])!==null&&l!==void 0?l:{};return a.jsx(Rt,{className:"block-editor-tools-panel-color-gradient-settings__item",hasValue:t,label:e,onDeselect:n,isShownByDefault:o,panelId:c,children:a.jsx(B0,{popoverProps:JTt,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:({onToggle:f,isOpen:b})=>{const h={onClick:f,className:$("block-editor-panel-color-gradient-settings__dropdown",{"is-open":b}),"aria-expanded":b,"aria-label":le(m("Color %s styles"),e)};return a.jsx(fe,{__next40pxDefaultSize:!1,...h,children:a.jsx(eEt,{indicators:r,label:e})})},renderContent:()=>a.jsx(Ni,{paddingSize:"none",children:a.jsxs("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:[s.length===1&&a.jsx(vZ,{...p,colorGradientControlSettings:i},d),s.length>1&&a.jsxs(ly,{defaultTabId:u?.key,children:[a.jsx(ly.TabList,{children:s.map(f=>a.jsx(ly.Tab,{tabId:f.key,children:f.label},f.key))}),s.map(f=>{const{key:b,...h}=f;return a.jsx(ly.TabPanel,{tabId:b,focusable:!1,children:a.jsx(vZ,{...h,colorGradientControlSettings:i},b)},b)})]})]})})})})}function Mge({as:e=ZTt,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:s,defaultControls:i=QTt,children:c}){const l=vd(r),u=qk(r),d=r?.color?.custom,p=r?.color?.customGradient,f=l.length>0||d,b=u.length>0||p,h=ie=>ki({settings:r},"",ie),g=ie=>{const be=l.flatMap(({colors:ye})=>ye).find(({color:ye})=>ye===ie);return be?"var:preset|color|"+be.slug:ie},z=ie=>{const be=u.flatMap(({gradients:ye})=>ye).find(({gradient:ye})=>ye===ie);return be?"var:preset|gradient|"+be.slug:ie},y=mge(r),x=h(o?.color?.background),v=h(t?.color?.background),M=h(o?.color?.gradient),A=h(t?.color?.gradient),_=()=>!!v||!!A,w=ie=>{const se=Vt(t,["color","background"],g(ie));se.color.gradient=void 0,n(se)},k=ie=>{const se=Vt(t,["color","gradient"],z(ie));se.color.background=void 0,n(se)},q=()=>{const ie=Vt(t,["color","background"],void 0);ie.color.gradient=void 0,n(ie)},S=fge(r),C=h(o?.elements?.link?.color?.text),T=h(t?.elements?.link?.color?.text),W=ie=>{n(Vt(t,["elements","link","color","text"],g(ie)))},B=h(o?.elements?.link?.[":hover"]?.color?.text),N=h(t?.elements?.link?.[":hover"]?.color?.text),E=ie=>{n(Vt(t,["elements","link",":hover","color","text"],g(ie)))},L=()=>!!T||!!N,I=()=>{let ie=Vt(t,["elements","link",":hover","color","text"],void 0);ie=Vt(ie,["elements","link","color","text"],void 0),n(ie)},P=pge(r),H=h(o?.color?.text),U=h(t?.color?.text),X=()=>!!U,Z=ie=>{let se=Vt(t,["color","text"],g(ie));H===C&&(se=Vt(se,["elements","link","color","text"],g(ie))),n(se)},ne=()=>Z(void 0),oe=[{name:"caption",label:m("Captions"),showPanel:bge(r)},{name:"button",label:m("Button"),showPanel:hge(r)},{name:"heading",label:m("Heading"),showPanel:Dl(r)},{name:"h1",label:m("H1"),showPanel:Dl(r)},{name:"h2",label:m("H2"),showPanel:Dl(r)},{name:"h3",label:m("H3"),showPanel:Dl(r)},{name:"h4",label:m("H4"),showPanel:Dl(r)},{name:"h5",label:m("H5"),showPanel:Dl(r)},{name:"h6",label:m("H6"),showPanel:Dl(r)}],Y=O.useCallback(ie=>({...ie,color:void 0,elements:{...ie?.elements,link:{...ie?.elements?.link,color:void 0,":hover":{color:void 0}},...oe.reduce((se,be)=>({...se,[be.name]:{...ie?.elements?.[be.name],color:void 0}}),{})}}),[]),ee=[P&&{key:"text",label:m("Text"),hasValue:X,resetValue:ne,isShownByDefault:i.text,indicators:[H],tabs:[{key:"text",label:m("Text"),inheritedValue:H,setValue:Z,userValue:U}]},y&&{key:"background",label:m("Background"),hasValue:_,resetValue:q,isShownByDefault:i.background,indicators:[M??x],tabs:[f&&{key:"background",label:m("Color"),inheritedValue:x,setValue:w,userValue:v},b&&{key:"gradient",label:m("Gradient"),inheritedValue:M,setValue:k,userValue:A,isGradient:!0}].filter(Boolean)},S&&{key:"link",label:m("Link"),hasValue:L,resetValue:I,isShownByDefault:i.link,indicators:[C,B],tabs:[{key:"link",label:m("Default"),inheritedValue:C,setValue:W,userValue:T},{key:"hover",label:m("Hover"),inheritedValue:B,setValue:E,userValue:N}]}].filter(Boolean);return oe.forEach(({name:ie,label:se,showPanel:be})=>{if(!be)return;const ye=h(o?.elements?.[ie]?.color?.background),xe=h(o?.elements?.[ie]?.color?.gradient),K=h(o?.elements?.[ie]?.color?.text),pe=h(t?.elements?.[ie]?.color?.background),G=h(t?.elements?.[ie]?.color?.gradient),re=h(t?.elements?.[ie]?.color?.text),Me=()=>!!(re||pe||G),he=()=>{const ge=Vt(t,["elements",ie,"color","background"],void 0);ge.elements[ie].color.gradient=void 0,ge.elements[ie].color.text=void 0,n(ge)},Q=ge=>{n(Vt(t,["elements",ie,"color","text"],g(ge)))},R=ge=>{const ve=Vt(t,["elements",ie,"color","background"],g(ge));ve.elements[ie].color.gradient=void 0,n(ve)},j=ge=>{const ve=Vt(t,["elements",ie,"color","gradient"],z(ge));ve.elements[ie].color.background=void 0,n(ve)},V=!0,de=ie!=="caption";ee.push({key:ie,label:se,hasValue:Me,resetValue:he,isShownByDefault:i[ie],indicators:de?[K,xe??ye]:[K],tabs:[f&&V&&{key:"text",label:m("Text"),inheritedValue:K,setValue:Q,userValue:re},f&&de&&{key:"background",label:m("Background"),inheritedValue:ye,setValue:R,userValue:pe},b&&de&&{key:"gradient",label:m("Gradient"),inheritedValue:xe,setValue:j,userValue:G,isGradient:!0}].filter(Boolean)})}),a.jsxs(e,{resetAllFilter:Y,value:t,onChange:n,panelId:s,children:[ee.map(ie=>{const{key:se,...be}=ie;return a.jsx(tEt,{...be,colorGradientControlSettings:{colors:l,disableCustomColors:!d,gradients:u,disableCustomGradients:!p},panelId:s},se)}),c]})}const uy=[];function xZ(e,{presetSetting:t,defaultSetting:n}){const o=!e?.color?.[n],r=e?.color?.[t]?.custom||uy,s=e?.color?.[t]?.theme||uy,i=e?.color?.[t]?.default||uy;return O.useMemo(()=>[...r,...s,...o?uy:i],[o,r,s,i])}function nEt(e){return gge(e)}function gge(e){return e.color.customDuotone||e.color.defaultDuotone||e.color.duotone.length>0}function oEt({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){const s=Ad(),i=()=>{const c=e(n);t(c)};return a.jsx(Tr,{label:Oe("Filters","Name for applying graphical effects"),resetAll:i,panelId:o,dropdownMenuProps:s,children:r})}const rEt={duotone:!0},sEt={placement:"left-start",offset:36,shift:!0,className:"block-editor-duotone-control__popover",headerTitle:m("Duotone")},iEt=({indicator:e,label:t})=>a.jsxs(Je,{justify:"flex-start",children:[a.jsx(mfe,{isLayered:!1,offset:-8,children:a.jsx(Q0,{expanded:!1,children:e==="unset"||!e?a.jsx(vf,{className:"block-editor-duotone-control__unset-indicator"}):a.jsx(Xpe,{values:e})})}),a.jsx(Ht,{title:t,children:t})]});function zge({as:e=oEt,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:s,defaultControls:i=rEt}){const c=z=>ki({settings:r},"",z),l=gge(r),u=xZ(r,{presetSetting:"duotone",defaultSetting:"defaultDuotone"}),d=xZ(r,{presetSetting:"palette",defaultSetting:"defaultPalette"}),p=c(o?.filter?.duotone),f=z=>{const y=u.find(({colors:v})=>v===z),x=y?`var:preset|duotone|${y.slug}`:z;n(Vt(t,["filter","duotone"],x))},b=()=>!!t?.filter?.duotone,h=()=>f(void 0),g=O.useCallback(z=>({...z,filter:{...z.filter,duotone:void 0}}),[]);return a.jsx(e,{resetAllFilter:g,value:t,onChange:n,panelId:s,children:l&&a.jsx(Rt,{label:m("Duotone"),hasValue:b,onDeselect:h,isShownByDefault:i.duotone,panelId:s,children:a.jsx(B0,{popoverProps:sEt,className:"block-editor-global-styles-filters-panel__dropdown",renderToggle:({onToggle:z,isOpen:y})=>{const x={onClick:z,className:$({"is-open":y}),"aria-expanded":y};return a.jsx(Yu,{isBordered:!0,isSeparated:!0,children:a.jsx(fe,{__next40pxDefaultSize:!1,...x,children:a.jsx(iEt,{indicator:p,label:m("Duotone")})})})},renderContent:()=>a.jsx(Ni,{paddingSize:"small",children:a.jsxs(Yt,{label:m("Duotone"),children:[a.jsx("p",{children:m("Create a two-tone color effect without losing your original image.")}),a.jsx(Upe,{colorPalette:d,duotonePalette:u,disableCustomColors:!0,disableCustomDuotone:!0,value:p,onChange:f})]})})})})})}function aEt(e,t,n){return e==="core/image"&&n?.lightbox?.allowEditing||!!t?.lightbox}function cEt({onChange:e,value:t,inheritedValue:n,panelId:o}){const r=Ad(),s=()=>{e(void 0)},i=l=>{e({enabled:l})};let c=!1;return n?.lightbox?.enabled&&(c=n.lightbox.enabled),a.jsx(a.Fragment,{children:a.jsx(Tr,{label:Oe("Settings","Image settings"),resetAll:s,panelId:o,dropdownMenuProps:r,children:a.jsx(Rt,{hasValue:()=>!!t?.lightbox,label:m("Expand on click"),onDeselect:s,isShownByDefault:!0,panelId:o,children:a.jsx(Be,{__nextHasNoMarginBottom:!0,label:m("Expand on click"),checked:c,onChange:i})})})})}function lEt({value:e,onChange:t,inheritedValue:n=e}){const[o,r]=O.useState(null),s=n?.css;function i(l){if(t({...e,css:l}),o){const[u]=_5([{css:l}],".for-validation-only");u&&r(null)}}function c(l){if(!l?.target?.value){r(null);return}const[u]=_5([{css:l.target.value}],".for-validation-only");r(u===null?m("There is an error with your CSS structure."):null)}return a.jsxs(Ye,{spacing:3,children:[o&&a.jsx($s,{status:"error",onRemove:()=>r(null),children:o}),a.jsx(Pi,{label:m("Additional CSS"),__nextHasNoMarginBottom:!0,value:s,onChange:l=>i(l),onBlur:c,className:"block-editor-global-styles-advanced-panel__custom-css-input",spellCheck:!1})]})}const dy=new Map,PT=[],YS={caption:m("Caption"),link:m("Link"),button:m("Button"),heading:m("Heading"),h1:m("H1"),h2:m("H2"),h3:m("H3"),h4:m("H4"),h5:m("H5"),h6:m("H6"),"settings.color":m("Color"),"settings.typography":m("Typography"),"styles.color":m("Colors"),"styles.spacing":m("Spacing"),"styles.background":m("Background"),"styles.typography":m("Typography")},uEt=ps(()=>nr().reduce((e,{name:t,title:n})=>(e[t]=n,e),{})),py=e=>e!==null&&typeof e=="object";function dEt(e){if(YS[e])return YS[e];const t=e.split(".");if(t?.[0]==="blocks")return uEt()?.[t[1]]||t[1];if(t?.[0]==="elements")return YS[t[1]]||t[1]}function Oge(e,t,n=""){if(!py(e)&&!py(t))return e!==t?n.split(".").slice(0,2).join("."):void 0;e=py(e)?e:{},t=py(t)?t:{};const o=new Set([...Object.keys(e),...Object.keys(t)]);let r=[];for(const s of o){const i=n?n+"."+s:s,c=Oge(e[s],t[s],i);c&&(r=r.concat(c))}return r}function pEt(e,t){const n=JSON.stringify({next:e,previous:t});if(dy.has(n))return dy.get(n);const o=Oge({styles:{background:e?.styles?.background,color:e?.styles?.color,typography:e?.styles?.typography,spacing:e?.styles?.spacing},blocks:e?.styles?.blocks,elements:e?.styles?.elements,settings:e?.settings},{styles:{background:t?.styles?.background,color:t?.styles?.color,typography:t?.styles?.typography,spacing:t?.styles?.spacing},blocks:t?.styles?.blocks,elements:t?.styles?.elements,settings:t?.settings});if(!o.length)return dy.set(n,PT),PT;const r=[...new Set(o)].reduce((s,i)=>{const c=dEt(i);return c&&s.push([i.split(".")[0],c]),s},[]);return dy.set(n,r),r}function fEt(e,t,n={}){let o=pEt(e,t);const r=o.length,{maxResults:s}=n;return r?(s&&r>s&&(o=o.slice(0,s)),Object.entries(o.reduce((i,c)=>{const l=i[c[0]]||[];return l.includes(c[1])||(i[c[0]]=[...l,c[1]]),i},{})).map(([i,c])=>{const l=c.length,u=c.join(m(", "));switch(i){case"blocks":return le(a0("%s block.","%s blocks.",l),u);case"elements":return le(a0("%s element.","%s elements.",l),u);case"settings":return le(m("%s settings."),u);case"styles":return le(m("%s styles."),u);default:return le(m("%s."),u)}})):PT}const bEt=Object.freeze(Object.defineProperty({__proto__:null,AdvancedPanel:lEt,BackgroundPanel:SMe,BorderPanel:uge,ColorPanel:Mge,DimensionsPanel:nge,FiltersPanel:zge,GlobalStylesContext:em,ImageSettingsPanel:cEt,TypographyPanel:HMe,areGlobalStyleConfigsEqual:Fkt,getBlockCSSSelector:ku,getBlockSelectors:Ck,getGlobalStylesChanges:fEt,getLayoutStyles:RMe,toStyles:Sk,useGlobalSetting:_Me,useGlobalStyle:KWt,useGlobalStylesOutput:_Tt,useGlobalStylesOutputWithConfig:WMe,useGlobalStylesReset:GWt,useHasBackgroundPanel:kMe,useHasBorderPanel:rge,useHasBorderPanelControls:FP,useHasColorPanel:dge,useHasDimensionsPanel:XMe,useHasFiltersPanel:nEt,useHasImageSettingsPanel:aEt,useHasTypographyPanel:EMe,useSettingsForBlockElement:wMe},Symbol.toStringTag,{value:"Module"})),tm="__experimentalBorder",T5="shadow",_Z=(e,t,n)=>{let o;return e.some(r=>r.colors.some(s=>s[t]===n?(o=s,!0):!1)),o},ab=({colors:e,namedColor:t,customColor:n})=>{if(t){const r=_Z(e,"slug",t);if(r)return r}if(!n)return{color:void 0};const o=_Z(e,"color",n);return o||{color:n}};function fy(e){const t=/var:preset\|color\|(.+)/.exec(e);return t&&t[1]?t[1]:null}function Age(e){if(Ku(e?.border))return{style:e,borderColor:void 0};const t=e?.border?.color,n=t?.startsWith("var:preset|color|")?t.substring(17):void 0,o={...e};return o.border={...o.border,color:n?void 0:t},{style:ni(o),borderColor:n}}function yge(e){return Ku(e.style?.border)?e.style:{...e.style,border:{...e.style?.border,color:e.borderColor?"var:preset|color|"+e.borderColor:e.style?.border?.color}}}function hEt({label:e,children:t,resetAllFilter:n}){const o=O.useCallback(r=>{const s=yge(r),i=n(s);return{...r,...Age(i)}},[n]);return a.jsx(Te,{group:"border",resetAllFilter:o,label:e,children:t})}function mEt({clientId:e,name:t,setAttributes:n,settings:o}){const r=rge(o);function s(p){const{style:f,borderColor:b}=p(F).getBlockAttributes(e)||{};return{style:f,borderColor:b}}const{style:i,borderColor:c}=D(s,[e]),l=O.useMemo(()=>yge({style:i,borderColor:c}),[i,c]),u=p=>{n(Age(p))};if(!r)return null;const d={...Zt(t,[tm,"__experimentalDefaultControls"]),...Zt(t,[T5,"__experimentalDefaultControls"])};return a.jsx(uge,{as:hEt,panelId:e,settings:o,value:l,onChange:u,defaultControls:d})}function Wk(e,t="any"){const n=Zt(e,tm);return n===!0?!0:t==="any"?!!(n?.color||n?.radius||n?.width||n?.style):!!n?.[t]}function Tk({blockName:e,hasBorderControl:t,hasShadowControl:n}={}){const o=pO(e),r=FP(o);return!t&&!n&&e&&(t=r?.hasBorderColor||r?.hasBorderStyle||r?.hasBorderWidth||r?.hasBorderRadius,n=r?.hasShadow),m(t&&n?"Border & Shadow":n?"Shadow":"Border")}function MEt(e){return!Wk(e,"color")||e.attributes.borderColor?e:{...e,attributes:{...e.attributes,borderColor:{type:"string"}}}}function vge(e,t,n){if(!Wk(t,"color")||Z1(t,tm,"color"))return e;const o=xge(n),r=$(e.className,o);return e.className=r||void 0,e}function xge(e){const{borderColor:t,style:n}=e,o=lt("border-color",t);return $({"has-border-color":t||n?.border?.color,[o]:!!o})}function gEt({name:e,borderColor:t,style:n}){const{colors:o}=Sf();if(!Wk(e,"color")||Z1(e,tm,"color"))return{};const{color:r}=ab({colors:o,namedColor:t}),{color:s}=ab({colors:o,namedColor:fy(n?.border?.top?.color)}),{color:i}=ab({colors:o,namedColor:fy(n?.border?.right?.color)}),{color:c}=ab({colors:o,namedColor:fy(n?.border?.bottom?.color)}),{color:l}=ab({colors:o,namedColor:fy(n?.border?.left?.color)});return vge({style:ni({borderTopColor:s||r,borderRightColor:i||r,borderBottomColor:c||r,borderLeftColor:l||r})||{}},e,{borderColor:t,style:n})}const _ge={useBlockProps:gEt,addSaveProps:vge,attributeKeys:["borderColor","style"],hasSupport(e){return Wk(e,"color")}};r0("blocks.registerBlockType","core/border/addAttributes",MEt);const zEt=({blockName:e,clientId:t,hasBlockStyles:n})=>{const o=Tk({blockName:e});return a.jsxs(a.Fragment,{children:[n&&a.jsx("div",{children:a.jsx(De,{title:m("Styles"),children:a.jsx(Ame,{clientId:t})})}),a.jsx(Te.Slot,{group:"color",label:m("Color"),className:"color-block-support-panel__inner-wrapper"}),a.jsx(Te.Slot,{group:"background",label:m("Background image")}),a.jsx(Te.Slot,{group:"filter"}),a.jsx(Te.Slot,{group:"typography",label:m("Typography")}),a.jsx(Te.Slot,{group:"dimensions",label:m("Dimensions")}),a.jsx(Te.Slot,{group:"border",label:o}),a.jsx(Te.Slot,{group:"styles"})]})},OEt=["core/navigation"],wge=e=>!OEt.includes(e),{Tabs:Kf}=Fe(L0);function kge({blockName:e,clientId:t,hasBlockStyles:n,tabs:o}){const r=D(i=>i(Qe).get("core","showIconLabels"),[]),s=wge(e)?void 0:NT.name;return a.jsx("div",{className:"block-editor-block-inspector__tabs",children:a.jsxs(Kf,{defaultTabId:s,children:[a.jsx(Kf.TabList,{children:o.map(i=>a.jsx(Kf.Tab,{tabId:i.name,render:a.jsx(fe,{__next40pxDefaultSize:!1,icon:r?void 0:i.icon,label:r?void 0:i.title,className:i.className,children:r&&i.title})},i.name))}),a.jsx(Kf.TabPanel,{tabId:AMe.name,focusable:!1,children:a.jsx(HWt,{showAdvancedControls:!!e})}),a.jsx(Kf.TabPanel,{tabId:yMe.name,focusable:!1,children:a.jsx(zEt,{blockName:e,clientId:t,hasBlockStyles:n})}),a.jsx(Kf.TabPanel,{tabId:NT.name,focusable:!1,children:a.jsx(Te.Slot,{group:"list"})})]},t)})}const AEt=[];function yEt(e,t={}){return t[e]!==void 0?t[e]:t.default!==void 0?t.default:!0}function qge(e){const t=[],{bindings:n,border:o,color:r,default:s,dimensions:i,list:c,position:l,styles:u,typography:d,effects:p}=bk,f=wge(e),b=j1(c.Slot.__unstableName),h=!f&&!!b&&b.length,z=[...j1(o.Slot.__unstableName)||[],...j1(r.Slot.__unstableName)||[],...j1(i.Slot.__unstableName)||[],...j1(u.Slot.__unstableName)||[],...j1(d.Slot.__unstableName)||[],...j1(p.Slot.__unstableName)||[]].length,y=[...j1(mk.slotName)||[],...j1(n.Slot.__unstableName)||[]],x=[...j1(s.Slot.__unstableName)||[],...j1(l.Slot.__unstableName)||[],...h&&z>1?y:[]];h&&t.push(NT),x.length&&t.push(AMe),z&&t.push(yMe);const v=D(A=>A(F).getSettings().blockInspectorTabs,[]);return yEt(e,v)?t:AEt}function vEt(e){return D(t=>{if(e){const n=t(F).getSettings().blockInspectorAnimation,o=n?.animationParent,{getSelectedBlockClientId:r,getBlockParentsByBlockName:s}=t(F),i=r();return!s(i,o,!0)[0]&&e.name!==o?null:n?.[e.name]}return null},[e])}const{createPrivateSlotFill:xEt}=Fe(L0),{Fill:_Et,Slot:wEt}=xEt("BlockInformation"),Ek=e=>eo()[n3]?a.jsx(_Et,{...e}):null;Ek.Slot=e=>a.jsx(wEt,{...e});function Sge({clientIds:e,onSelect:t}){return e.length?a.jsx(Ye,{spacing:1,children:e.map(n=>a.jsx(kEt,{onSelect:t,clientId:n},n))}):null}function kEt({clientId:e,onSelect:t}){const n=Ms(e),o=ed({clientId:e,context:"list-view"}),{isSelected:r}=D(i=>{const{isBlockSelected:c,hasSelectedInnerBlock:l}=i(F);return{isSelected:c(e)||l(e,!0)}},[e]),{selectBlock:s}=ae(F);return a.jsx(fe,{__next40pxDefaultSize:!1,isPressed:r,onClick:async()=>{await s(e),t&&t(e)},children:a.jsxs(Q0,{children:[a.jsx(Ht,{children:a.jsx(b0,{icon:n?.icon})}),a.jsx(Vi,{style:{textAlign:"left"},children:a.jsx(Ho,{children:o})})]})})}function Cge({clientId:e}){return a.jsx(De,{title:m("Styles"),children:a.jsx(Ame,{clientId:e})})}function qEt({topLevelLockedBlock:e}){const t=D(r=>{const{getClientIdsOfDescendants:s,getBlockName:i,getBlockEditingMode:c}=r(F);return s(e).filter(l=>i(l)!=="core/list-item"&&c(l)==="contentOnly")},[e]),n=D(r=>{const{getBlockName:s}=r(F),{getBlockStyles:i}=r($e);return!!i(s(e))?.length},[e]),o=Ms(e);return a.jsxs("div",{className:"block-editor-block-inspector",children:[a.jsx(sP,{...o,className:o.isSynced&&"is-synced"}),a.jsx(vme,{blockClientId:e}),a.jsx(Ek.Slot,{}),n&&a.jsx(Cge,{clientId:e}),t.length>0&&a.jsx(De,{title:m("Content"),children:a.jsx(Sge,{clientIds:t})})]})}const Rge=({showNoBlockSelectedMessage:e=!0})=>{const{count:t,selectedBlockName:n,selectedBlockClientId:o,blockType:r,topLevelLockedBlock:s}=D(p=>{const{getSelectedBlockClientId:f,getSelectedBlockCount:b,getBlockName:h,getContentLockingParent:g,getTemplateLock:z}=Fe(p(F)),y=f(),x=y&&h(y),v=x&&Dt(x);return{count:b(),selectedBlockClientId:y,selectedBlockName:x,blockType:v,topLevelLockedBlock:g(y)||(z(y)==="contentOnly"||x==="core/block"?y:void 0)}},[]),i=qge(r?.name),c=i?.length>1,l=vEt(r),u=Tk({blockName:n});if(t>1)return a.jsxs("div",{className:"block-editor-block-inspector",children:[a.jsx($Wt,{}),c?a.jsx(kge,{tabs:i}):a.jsxs(a.Fragment,{children:[a.jsx(Te.Slot,{}),a.jsx(Te.Slot,{group:"color",label:m("Color"),className:"color-block-support-panel__inner-wrapper"}),a.jsx(Te.Slot,{group:"background",label:m("Background image")}),a.jsx(Te.Slot,{group:"typography",label:m("Typography")}),a.jsx(Te.Slot,{group:"dimensions",label:m("Dimensions")}),a.jsx(Te.Slot,{group:"border",label:u}),a.jsx(Te.Slot,{group:"styles"})]})]});const d=n===Zz();return!r||!o||d?e?a.jsx("span",{className:"block-editor-block-inspector__no-blocks",children:m("No block selected.")}):null:s?a.jsx(qEt,{topLevelLockedBlock:s}):a.jsx(SEt,{animate:l,wrapper:p=>a.jsx(CEt,{blockInspectorAnimationSettings:l,selectedBlockClientId:o,children:p}),children:a.jsx(REt,{clientId:o,blockName:r.name})})},SEt=({animate:e,wrapper:t,children:n})=>e?t(n):n,CEt=({blockInspectorAnimationSettings:e,selectedBlockClientId:t,children:n})=>{const o=e&&e.enterDirection==="leftToRight"?-50:50;return a.jsx(Hn.div,{animate:{x:0,opacity:1,transition:{ease:"easeInOut",duration:.14}},initial:{x:o,opacity:0},children:n},t)},REt=({clientId:e,blockName:t})=>{const n=qge(t),o=n?.length>1,r=D(c=>{const{getBlockStyles:l}=c($e),u=l(t);return u&&u.length>0},[t]),s=Ms(e),i=Tk({blockName:t});return a.jsxs("div",{className:"block-editor-block-inspector",children:[a.jsx(sP,{...s,className:s.isSynced&&"is-synced"}),a.jsx(vme,{blockClientId:e}),a.jsx(Ek.Slot,{}),o&&a.jsx(kge,{hasBlockStyles:r,clientId:e,blockName:t,tabs:n}),!o&&a.jsxs(a.Fragment,{children:[r&&a.jsx(Cge,{clientId:e}),a.jsx(Te.Slot,{}),a.jsx(Te.Slot,{group:"list"}),a.jsx(Te.Slot,{group:"color",label:m("Color"),className:"color-block-support-panel__inner-wrapper"}),a.jsx(Te.Slot,{group:"background",label:m("Background image")}),a.jsx(Te.Slot,{group:"typography",label:m("Typography")}),a.jsx(Te.Slot,{group:"dimensions",label:m("Dimensions")}),a.jsx(Te.Slot,{group:"border",label:i}),a.jsx(Te.Slot,{group:"styles"}),a.jsx(xMe,{}),a.jsx(Te.Slot,{group:"bindings"}),a.jsx("div",{children:a.jsx(vMe,{})})]}),a.jsx(EWt,{},"back")]})},WEt=()=>{};function TEt({rootClientId:e,clientId:t,isAppender:n,showInserterHelpPanel:o,showMostUsedBlocks:r=!1,__experimentalInsertionIndex:s,__experimentalInitialTab:i,__experimentalInitialCategory:c,__experimentalFilterValue:l,onPatternCategorySelection:u,onSelect:d=WEt,shouldFocusBlock:p=!1,onClose:f},b){const{destinationRootClientId:h}=D(g=>{const{getBlockRootClientId:z}=g(F);return{destinationRootClientId:e||z(t)||void 0}},[t,e]);return a.jsx(Ohe,{onSelect:d,rootClientId:h,clientId:t,isAppender:n,showInserterHelpPanel:o,showMostUsedBlocks:r,__experimentalInsertionIndex:s,__experimentalFilterValue:l,onPatternCategorySelection:u,__experimentalInitialTab:i,__experimentalInitialCategory:c,shouldFocusBlock:p,ref:b,onClose:f})}const Wge=O.forwardRef(TEt);function EEt(e,t){return a.jsx(Wge,{...e,onPatternCategorySelection:void 0,ref:t})}O.forwardRef(EEt);window.navigator.userAgent.indexOf("Trident");const BEt=new Set([xi,Do,Bs,Ns]),NEt=.75;function LEt(){const e=D(t=>t(F).hasSelectedBlock(),[]);return Et(t=>{if(!e)return;const{ownerDocument:n}=t,{defaultView:o}=n;let r,s,i;function c(){r||(r=o.requestAnimationFrame(()=>{f(),r=null}))}function l(g){s&&o.cancelAnimationFrame(s),s=o.requestAnimationFrame(()=>{u(g),s=null})}function u({keyCode:g}){if(!b())return;const z=JR(o);if(!z)return;if(!i){i=z;return}if(BEt.has(g)){i=z;return}const y=z.top-i.top;if(y===0)return;const x=Sr(t);if(!x)return;const v=x===n.body||x===n.documentElement,M=v?o.scrollY:x.scrollTop,A=v?0:x.getBoundingClientRect().top,_=v?i.top/o.innerHeight:(i.top-A)/(o.innerHeight-A);if(M===0&&_A+w||i.top{o.removeEventListener("scroll",c,!0),o.removeEventListener("resize",c,!0),t.removeEventListener("keydown",l),t.removeEventListener("keyup",u),t.removeEventListener("mousedown",d),t.removeEventListener("touchstart",d),n.removeEventListener("selectionchange",p),o.cancelAnimationFrame(r),o.cancelAnimationFrame(s)}},[e])}const IT=O.createContext({});function jEt(e,t,n){const o={...e,[t]:e[t]?new Set(e[t]):new Set};return o[t].add(n),o}function uO({children:e,uniqueId:t,blockName:n=""}){const o=O.useContext(IT),{name:r}=eo();n=n||r;const s=O.useMemo(()=>jEt(o,n,t),[o,n,t]);return a.jsx(IT.Provider,{value:s,children:e})}function Bk(e,t=""){const n=O.useContext(IT),{name:o}=eo();return t=t||o,!!n[t]?.has(e)}function zs({title:e,help:t,actions:n=[],onClose:o}){return a.jsxs(Ye,{className:"block-editor-inspector-popover-header",spacing:4,children:[a.jsxs(Je,{alignment:"center",children:[a.jsx(ec,{className:"block-editor-inspector-popover-header__heading",level:2,size:13,children:e}),a.jsx(or,{}),n.map(({label:r,icon:s,onClick:i})=>a.jsx(fe,{__next40pxDefaultSize:!1,className:"block-editor-inspector-popover-header__action",label:r,icon:s,variant:!s&&"tertiary",onClick:i,children:!s&&r},r)),o&&a.jsx(fe,{__next40pxDefaultSize:!1,className:"block-editor-inspector-popover-header__action",label:m("Close"),icon:zl,onClick:o})]}),t&&a.jsx(l0,{children:t})]})}function PEt({onClose:e,onChange:t,showPopoverHeaderActions:n,isCompact:o,currentDate:r,...s},i){const c={startOfWeek:vl().l10n.startOfWeek,onChange:t,currentDate:o?void 0:r,currentTime:o?r:void 0,...s},l=o?F3:dpt;return a.jsxs("div",{ref:i,className:"block-editor-publish-date-time-picker",children:[a.jsx(zs,{title:m("Publish"),actions:n?[{label:m("Now"),onClick:()=>t?.(null)}]:void 0,onClose:e}),a.jsx(l,{...c})]})}const Tge=O.forwardRef(PEt);function IEt(e,t){return a.jsx(Tge,{...e,showPopoverHeaderActions:!0,isCompact:!1,ref:t})}const DEt=O.forwardRef(IEt);function oo(e){const t=eo(),{clientId:n=""}=t,{setBlockEditingMode:o,unsetBlockEditingMode:r}=ae(F),s=D(i=>n?null:i(F).getBlockEditingMode(),[n]);return O.useEffect(()=>(e&&o(n,e),()=>{e&&r(n)}),[n,e,o,r]),n?t[Gre]:s}const ni=e=>{if(e===null||typeof e!="object"||Array.isArray(e))return e;const t=Object.entries(e).map(([n,o])=>[n,ni(o)]).filter(([,n])=>n!==void 0);return t.length?Object.fromEntries(t):void 0};function Ege(e,t,n,o,r,s){if(Object.values(e??{}).every(l=>!l)||s.length===1&&n.innerBlocks.length===o.length)return n;let i=o[0]?.attributes;if(s.length>1&&o.length>1)if(o[r])i=o[r]?.attributes;else return n;let c=n;return Object.entries(e).forEach(([l,u])=>{u&&t[l].forEach(d=>{const p=R0(i,d);p&&(c={...c,attributes:Vt(c.attributes,d,p)})})}),c}function Z1(e,t,n){const r=Zt(e,t)?.__experimentalSkipSerialization;return Array.isArray(r)?r.includes(n):r}const pc=new WeakMap;function dO({id:e,css:t}){return qz({id:e,css:t})}function qz({id:e,css:t,assets:n,__unstableType:o,variation:r,clientId:s}={}){const{setStyleOverride:i,deleteStyleOverride:c}=Fe(ae(F)),l=h0(),u=O.useId();O.useEffect(()=>{if(!t&&!n)return;const d=e||u,p={id:e,css:t,assets:n,__unstableType:o,variation:r,clientId:s};return pc.get(l)||pc.set(l,[]),pc.get(l).push([d,p]),window.queueMicrotask(()=>{pc.get(l)?.length&&l.batch(()=>{pc.get(l).forEach(f=>{i(...f)}),pc.set(l,[])})}),()=>{pc.get(l)?.find(([b])=>b===d)?pc.set(l,pc.get(l).filter(([b])=>b!==d)):c(d)}},[e,t,s,n,o,u,i,c,l])}function pO(e,t){const[n,o,r,s,i,c,l,u,d,p,f,b,h,g,z,y,x,v,M,A,_,w,k,q,S,C,T,W,B,N,E,L,I,P,H,U,X,Z,ne,oe,Y,ee,ie,se,be,ye,xe,K,pe,G,re,Me,he,Q,R,j]=O0("background.backgroundImage","background.backgroundSize","typography.fontFamilies.custom","typography.fontFamilies.default","typography.fontFamilies.theme","typography.defaultFontSizes","typography.fontSizes.custom","typography.fontSizes.default","typography.fontSizes.theme","typography.customFontSize","typography.fontStyle","typography.fontWeight","typography.lineHeight","typography.textAlign","typography.textColumns","typography.textDecoration","typography.writingMode","typography.textTransform","typography.letterSpacing","spacing.padding","spacing.margin","spacing.blockGap","spacing.defaultSpacingSizes","spacing.customSpacingSize","spacing.spacingSizes.custom","spacing.spacingSizes.default","spacing.spacingSizes.theme","spacing.units","dimensions.aspectRatio","dimensions.minHeight","layout","border.color","border.radius","border.style","border.width","color.custom","color.palette.custom","color.customDuotone","color.palette.theme","color.palette.default","color.defaultPalette","color.defaultDuotone","color.duotone.custom","color.duotone.theme","color.duotone.default","color.gradients.custom","color.gradients.theme","color.gradients.default","color.defaultGradients","color.customGradient","color.background","color.link","color.text","color.heading","color.button","shadow"),V=O.useMemo(()=>({background:{backgroundImage:n,backgroundSize:o},color:{palette:{custom:X,theme:ne,default:oe},gradients:{custom:ye,theme:xe,default:K},duotone:{custom:ie,theme:se,default:be},defaultGradients:pe,defaultPalette:Y,defaultDuotone:ee,custom:U,customGradient:G,customDuotone:Z,background:re,link:Me,heading:Q,button:R,text:he},typography:{fontFamilies:{custom:r,default:s,theme:i},fontSizes:{custom:l,default:u,theme:d},customFontSize:p,defaultFontSizes:c,fontStyle:f,fontWeight:b,lineHeight:h,textAlign:g,textColumns:z,textDecoration:y,textTransform:v,letterSpacing:M,writingMode:x},spacing:{spacingSizes:{custom:S,default:C,theme:T},customSpacingSize:q,defaultSpacingSizes:k,padding:A,margin:_,blockGap:w,units:W},border:{color:L,radius:I,style:P,width:H},dimensions:{aspectRatio:B,minHeight:N},layout:E,parentLayout:t,shadow:j}),[n,o,r,s,i,c,l,u,d,p,f,b,h,g,z,y,v,M,x,A,_,w,k,q,S,C,T,W,B,N,E,t,L,I,P,H,U,X,Z,ne,oe,Y,ee,ie,se,be,ye,xe,K,pe,G,re,Me,he,Q,R,j]);return wMe(V,e)}function FEt(e){e=e.map(n=>({...n,Edit:O.memo(n.edit)}));const t=Sn(n=>o=>{const r=eo();return[...e.map((s,i)=>{const{Edit:c,hasSupport:l,attributeKeys:u=[],shareWithChildBlocks:d}=s;if(!(r[n3]||r[RN]&&d)||!l(o.name))return null;const f={};for(const b of u)o.attributes[b]&&(f[b]=o.attributes[b]);return a.jsx(c,{name:o.name,isSelected:o.isSelected,clientId:o.clientId,setAttributes:o.setAttributes,__unstableParentLayout:o.__unstableParentLayout,...f},i)}),a.jsx(n,{...o},"edit")]},"withBlockEditHooks");r0("editor.BlockEdit","core/editor/hooks",t)}function $Et({index:e,useBlockProps:t,setAllWrapperProps:n,...o}){const r=t(o),s=i=>n(c=>{const l=[...c];return l[e]=i,l});return O.useEffect(()=>(s(r),()=>{s(void 0)})),null}const VEt=O.memo($Et);function HEt(e){const t=Sn(n=>o=>{const[r,s]=O.useState(Array(e.length).fill(void 0));return[...e.map((i,c)=>{const{hasSupport:l,attributeKeys:u=[],useBlockProps:d,isMatch:p}=i,f={};for(const b of u)o.attributes[b]&&(f[b]=o.attributes[b]);return!Object.keys(f).length||!l(o.name)||p&&!p(f)?null:a.jsx(VEt,{index:c,useBlockProps:d,setAllWrapperProps:s,name:o.name,clientId:o.clientId,...f},c)}),a.jsx(n,{...o,wrapperProps:r.filter(Boolean).reduce((i,c)=>({...i,...c,className:$(i.className,c.className),style:{...i.style,...c.style}}),o.wrapperProps||{})},"edit")]},"withBlockListBlockHooks");r0("editor.BlockListBlock","core/editor/hooks",t)}function UEt(e){function t(n,o,r){return e.reduce((s,i)=>{const{hasSupport:c,attributeKeys:l=[],addSaveProps:u}=i,d={};for(const p of l)r[p]&&(d[p]=r[p]);return!Object.keys(d).length||!c(o)?s:u(s,o,d)},n)}r0("blocks.getSaveContent.extraProps","core/editor/hooks",t,0),r0("blocks.getSaveContent.extraProps","core/editor/hooks",n=>(n.hasOwnProperty("className")&&!n.className&&delete n.className,n))}function XEt(e){const{apiVersion:t=1}=e;return t<2&&st(e,"lightBlockWrapper",!1)&&(e.apiVersion=2),e}r0("blocks.registerBlockType","core/compat/migrateLightBlockWrapper",XEt);const DT=["left","center","right","wide","full"],GEt=["wide","full"];function $P(e,t=!0,n=!0){let o;return Array.isArray(e)?o=DT.filter(r=>e.includes(r)):e===!0?o=[...DT]:o=[],!n||e===!0&&!t?o.filter(r=>!GEt.includes(r)):o}function KEt(e){var t;return"type"in((t=e.attributes?.align)!==null&&t!==void 0?t:{})||st(e,"align")&&(e.attributes={...e.attributes,align:{type:"string",enum:[...DT,""]}}),e}function YEt({name:e,align:t,setAttributes:n}){const o=$P(Zt(e,"align"),st(e,"alignWide",!0)),r=Ij(o).map(({name:c})=>c),s=oo();if(!r.length||s!=="default")return null;const i=c=>{c||Dt(e)?.attributes?.align?.default&&(c=""),n({align:c})};return a.jsx(Ie,{group:"block",__experimentalShareWithChildBlocks:!0,children:a.jsx(VAt,{value:t,onChange:i,controls:r})})}const VP={shareWithChildBlocks:!0,edit:YEt,useBlockProps:ZEt,addSaveProps:QEt,attributeKeys:["align"],hasSupport(e){return st(e,"align",!1)}};function ZEt({name:e,align:t}){const n=$P(Zt(e,"align"),st(e,"alignWide",!0));return Ij(n).some(r=>r.name===t)?{"data-align":t}:{}}function QEt(e,t,n){const{align:o}=n,r=Zt(t,"align"),s=st(t,"alignWide",!0);return $P(r,s).includes(o)&&(e.className=$(`align${o}`,e.className)),e}r0("blocks.registerBlockType","core/editor/align/addAttribute",KEt);function JEt(e){var t;return"type"in((t=e.attributes?.lock)!==null&&t!==void 0?t:{})||(e.attributes={...e.attributes,lock:{type:"object"}}),e}r0("blocks.registerBlockType","core/lock/addAttribute",JEt);const eBt=/[\s#]/g,tBt={type:"string",source:"attribute",attribute:"id",selector:"*"};function nBt(e){var t;return"type"in((t=e.attributes?.anchor)!==null&&t!==void 0?t:{})||st(e,"anchor")&&(e.attributes={...e.attributes,anchor:tBt}),e}function oBt({anchor:e,setAttributes:t}){return oo()!=="default"?null:a.jsx(Te,{group:"advanced",children:a.jsx($t,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,className:"html-anchor-control",label:m("HTML anchor"),help:a.jsxs(a.Fragment,{children:[m("Enter a word or two — without spaces — to make a unique web address just for this block, called an “anchor”. Then, you’ll be able to link directly to this section of your page."),a.jsxs(a.Fragment,{children:[" ",a.jsx(S1,{href:m("https://wordpress.org/documentation/article/page-jumps/"),children:m("Learn more about anchors")})]})]}),value:e||"",placeholder:null,onChange:o=>{o=o.replace(eBt,"-"),t({anchor:o})},autoCapitalize:"none",autoComplete:"off"})})}const Bge={addSaveProps:rBt,edit:oBt,attributeKeys:["anchor"],hasSupport(e){return st(e,"anchor")}};function rBt(e,t,n){return st(t,"anchor")&&(e.id=n.anchor===""?null:n.anchor),e}r0("blocks.registerBlockType","core/anchor/attribute",nBt);const sBt={type:"string",source:"attribute",attribute:"aria-label",selector:"*"};function iBt(e){return e?.attributes?.ariaLabel?.type||st(e,"ariaLabel")&&(e.attributes={...e.attributes,ariaLabel:sBt}),e}function aBt(e,t,n){return st(t,"ariaLabel")&&(e["aria-label"]=n.ariaLabel===""?null:n.ariaLabel),e}const cBt={addSaveProps:aBt,attributeKeys:["ariaLabel"],hasSupport(e){return st(e,"ariaLabel")}};r0("blocks.registerBlockType","core/ariaLabel/attribute",iBt);function lBt(e){return st(e,"customClassName",!0)&&(e.attributes={...e.attributes,className:{type:"string"}}),e}function uBt({className:e,setAttributes:t}){return oo()!=="default"?null:a.jsx(Te,{group:"advanced",children:a.jsx($t,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,autoComplete:"off",label:m("Additional CSS class(es)"),value:e||"",onChange:o=>{t({className:o!==""?o:void 0})},help:m("Separate multiple classes with spaces.")})})}const Nge={edit:uBt,addSaveProps:dBt,attributeKeys:["className"],hasSupport(e){return st(e,"customClassName",!0)}};function dBt(e,t,n){return st(t,"customClassName",!0)&&n.className&&(e.className=$(e.className,n.className)),e}function pBt(e,t,n,o){if(!st(e.name,"customClassName",!0)||o.length===1&&e.innerBlocks.length===t.length||o.length===1&&t.length>1||o.length>1&&t.length===1)return e;if(t[n]){const r=t[n]?.attributes.className;if(r)return{...e,attributes:{...e.attributes,className:r}}}return e}r0("blocks.registerBlockType","core/editor/custom-class-name/attribute",lBt);r0("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",pBt);function fBt(e,t){return st(t,"className",!0)&&(typeof e.className=="string"?e.className=[...new Set([_v(t.name),...e.className.split(" ")])].join(" ").trim():e.className=_v(t.name)),e}r0("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",fBt);function by(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function bBt({clientId:e}){const[t,n]=O.useState(),[o,r]=O.useState(),[s,i]=O.useState(),c=ls(e);return O.useEffect(()=>{if(!c)return;r(by(c).color);const l=c.querySelector("a");l&&l.innerText&&i(by(l).color);let u=c,d=by(u).backgroundColor;for(;d==="rgba(0, 0, 0, 0)"&&u.parentNode&&u.parentNode.nodeType===u.parentNode.ELEMENT_NODE;)u=u.parentNode,d=by(u).backgroundColor;n(d)},[c]),a.jsx(S5,{backgroundColor:t,textColor:o,enableAlphaChecker:!0,linkColor:s})}const Mo="color",Nk=e=>{const t=Zt(e,Mo);return t&&(t.link===!0||t.gradient===!0||t.background!==!1||t.text!==!1)},hBt=e=>{const t=Zt(e,Mo);return t!==null&&typeof t=="object"&&!!t.link},HP=e=>{const t=Zt(e,Mo);return t!==null&&typeof t=="object"&&!!t.gradients},mBt=e=>{const t=Zt(e,Mo);return t&&t.background!==!1},MBt=e=>{const t=Zt(e,Mo);return t&&t.text!==!1};function gBt(e){return Nk(e)&&(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),HP(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}})),e}function Lge(e,t,n){if(!Nk(t)||Z1(t,Mo))return e;const o=HP(t),{backgroundColor:r,textColor:s,gradient:i,style:c}=n,l=g=>!Z1(t,Mo,g),u=l("text")?lt("color",s):void 0,d=l("gradients")?lr(i):void 0,p=l("background")?lt("background-color",r):void 0,f=l("background")||l("gradients"),b=r||c?.color?.background||o&&(i||c?.color?.gradient),h=$(e.className,u,d,{[p]:(!o||!c?.color?.gradient)&&!!p,"has-text-color":l("text")&&(s||c?.color?.text),"has-background":f&&b,"has-link-color":l("link")&&c?.elements?.link?.color});return e.className=h||void 0,e}function jge(e){const t=e?.color?.text,n=t?.startsWith("var:preset|color|")?t.substring(17):void 0,o=e?.color?.background,r=o?.startsWith("var:preset|color|")?o.substring(17):void 0,s=e?.color?.gradient,i=s?.startsWith("var:preset|gradient|")?s.substring(20):void 0,c={...e};return c.color={...c.color,text:n?void 0:t,background:r?void 0:o,gradient:i?void 0:s},{style:ni(c),textColor:n,backgroundColor:r,gradient:i}}function Pge(e){return{...e.style,color:{...e.style?.color,text:e.textColor?"var:preset|color|"+e.textColor:e.style?.color?.text,background:e.backgroundColor?"var:preset|color|"+e.backgroundColor:e.style?.color?.background,gradient:e.gradient?"var:preset|gradient|"+e.gradient:e.style?.color?.gradient}}}function zBt({children:e,resetAllFilter:t}){const n=O.useCallback(o=>{const r=Pge(o),s=t(r);return{...o,...jge(s)}},[t]);return a.jsx(Te,{group:"color",resetAllFilter:n,children:e})}function OBt({clientId:e,name:t,setAttributes:n,settings:o}){const r=dge(o);function s(h){const{style:g,textColor:z,backgroundColor:y,gradient:x}=h(F).getBlockAttributes(e)||{};return{style:g,textColor:z,backgroundColor:y,gradient:x}}const{style:i,textColor:c,backgroundColor:l,gradient:u}=D(s,[e]),d=O.useMemo(()=>Pge({style:i,textColor:c,backgroundColor:l,gradient:u}),[i,c,l,u]),p=h=>{n(jge(h))};if(!r)return null;const f=Zt(t,[Mo,"__experimentalDefaultControls"]),b=!d?.color?.gradient&&(o?.color?.text||o?.color?.link)&&Zt(t,[Mo,"enableContrastChecker"])!==!1;return a.jsx(Mge,{as:zBt,panelId:e,settings:o,value:d,onChange:p,defaultControls:f,enableContrastChecker:Zt(t,[Mo,"enableContrastChecker"])!==!1,children:b&&a.jsx(bBt,{clientId:e})})}function ABt({name:e,backgroundColor:t,textColor:n,gradient:o,style:r}){const[s,i,c]=O0("color.palette.custom","color.palette.theme","color.palette.default"),l=O.useMemo(()=>[...s||[],...i||[],...c||[]],[s,i,c]);if(!Nk(e)||Z1(e,Mo))return{};const u={};n&&!Z1(e,Mo,"text")&&(u.color=Up(l,n)?.color),t&&!Z1(e,Mo,"background")&&(u.backgroundColor=Up(l,t)?.color);const d=Lge({style:u},e,{textColor:n,backgroundColor:t,gradient:o,style:r}),p=t||r?.color?.background||o||r?.color?.gradient;return{...d,className:$(d.className,!p&&lTt(r))}}const Ige={useBlockProps:ABt,addSaveProps:Lge,attributeKeys:["backgroundColor","textColor","gradient","style"],hasSupport:Nk},yBt={linkColor:[["style","elements","link","color","text"]],textColor:[["textColor"],["style","color","text"]],backgroundColor:[["backgroundColor"],["style","color","background"]],gradient:[["gradient"],["style","color","gradient"]]};function vBt(e,t,n,o){const r=e.name,s={linkColor:hBt(r),textColor:MBt(r),backgroundColor:mBt(r),gradient:HP(r)};return Ege(s,yBt,e,t,n,o)}r0("blocks.registerBlockType","core/color/addAttribute",gBt);r0("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",vBt);const xBt="typography.lineHeight",Lk="typography.__experimentalFontFamily",{kebabCase:_Bt}=Fe(L0);function wBt(e){return st(e,Lk)&&(e.attributes.fontFamily||Object.assign(e.attributes,{fontFamily:{type:"string"}})),e}function Dge(e,t,n){if(!st(t,Lk)||Z1(t,sd,"fontFamily")||!n?.fontFamily)return e;const o=new Ok(e.className);o.add(`has-${_Bt(n?.fontFamily)}-font-family`);const r=o.value;return e.className=r||void 0,e}function kBt({name:e,fontFamily:t}){return Dge({},e,{fontFamily:t})}const Fge={useBlockProps:kBt,addSaveProps:Dge,attributeKeys:["fontFamily"],hasSupport(e){return st(e,Lk)}};r0("blocks.registerBlockType","core/fontFamily/addAttribute",wBt);const nm="typography.fontSize";function qBt(e){return st(e,nm)&&(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}})),e}function $ge(e,t,n){if(!st(t,nm)||Z1(t,sd,"fontSize"))return e;const o=new Ok(e.className);o.add(l5(n.fontSize));const r=o.value;return e.className=r||void 0,e}function SBt({name:e,fontSize:t,style:n}){const[o,r,s]=O0("typography.fontSizes","typography.fluid","layout");if(!st(e,nm)||Z1(e,sd,"fontSize")||!t&&!n?.typography?.fontSize)return;let i;if(n?.typography?.fontSize&&(i={style:{fontSize:hk({size:n.typography.fontSize},{typography:{fluid:r},layout:s})}}),t&&(i={style:{fontSize:H3t(o,t,n?.typography?.fontSize).size}}),!!i)return $ge(i,e,{fontSize:t})}const Vge={useBlockProps:SBt,addSaveProps:$ge,attributeKeys:["fontSize","style"],hasSupport(e){return st(e,nm)}},CBt={fontSize:[["fontSize"],["style","typography","fontSize"]]};function RBt(e,t,n,o){const r=e.name,s={fontSize:st(r,nm)};return Ege(s,CBt,e,t,n,o)}r0("blocks.registerBlockType","core/font/addAttribute",qBt);r0("blocks.switchToBlockType.transformedBlock","core/font-size/addTransforms",RBt);const fO="typography.textAlign",WBt=[{icon:_3,title:m("Align text left"),align:"left"},{icon:V_,title:m("Align text center"),align:"center"},{icon:w3,title:m("Align text right"),align:"right"}],wZ=["left","center","right"],TBt=[];function UP(e){return Array.isArray(e)?wZ.filter(t=>e.includes(t)):e===!0?wZ:TBt}function EBt({style:e,name:t,setAttributes:n}){const r=pO(t)?.typography?.textAlign,s=oo();if(!r||s!=="default")return null;const i=UP(Zt(t,fO));if(!i.length)return null;const c=WBt.filter(u=>i.includes(u.align)),l=u=>{const d={...e,typography:{...e?.typography,textAlign:u}};n({style:ni(d)})};return a.jsx(Ie,{group:"block",children:a.jsx(gn,{value:e?.typography?.textAlign,onChange:l,alignmentControls:c})})}const XP={edit:EBt,useBlockProps:BBt,addSaveProps:NBt,attributeKeys:["style"],hasSupport(e){return st(e,fO,!1)}};function BBt({name:e,style:t}){if(!t?.typography?.textAlign||!UP(Zt(e,fO)).length||Z1(e,sd,"textAlign"))return null;const o=t.typography.textAlign;return{className:$({[`has-text-align-${o}`]:o})}}function NBt(e,t,n){if(!n?.style?.typography?.textAlign)return e;const{textAlign:o}=n.style.typography,r=Zt(t,fO);return UP(r).includes(o)&&!Z1(t,sd,"textAlign")&&(e.className=$(`has-text-align-${o}`,e.className)),e}function kZ(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}const LBt="typography.__experimentalLetterSpacing",jBt="typography.__experimentalTextTransform",PBt="typography.__experimentalTextDecoration",IBt="typography.textColumns",DBt="typography.__experimentalFontStyle",FBt="typography.__experimentalFontWeight",$Bt="typography.__experimentalWritingMode",sd="typography",VBt=[xBt,nm,DBt,FBt,Lk,fO,IBt,PBt,$Bt,jBt,LBt];function Hge(e){const t={...kZ(e,["fontFamily"])},n=e?.typography?.fontSize,o=e?.typography?.fontFamily,r=n?.startsWith("var:preset|font-size|")?n.substring(21):void 0,s=o?.startsWith("var:preset|font-family|")?o.substring(23):void 0;return t.typography={...kZ(t.typography,["fontFamily"]),fontSize:r?void 0:n},{style:ni(t),fontFamily:s,fontSize:r}}function Uge(e){return{...e.style,typography:{...e.style?.typography,fontFamily:e.fontFamily?"var:preset|font-family|"+e.fontFamily:void 0,fontSize:e.fontSize?"var:preset|font-size|"+e.fontSize:e.style?.typography?.fontSize}}}function HBt({children:e,resetAllFilter:t}){const n=O.useCallback(o=>{const r=Uge(o),s=t(r);return{...o,...Hge(s)}},[t]);return a.jsx(Te,{group:"typography",resetAllFilter:n,children:e})}function UBt({clientId:e,name:t,setAttributes:n,settings:o}){function r(f){const{style:b,fontFamily:h,fontSize:g}=f(F).getBlockAttributes(e)||{};return{style:b,fontFamily:h,fontSize:g}}const{style:s,fontFamily:i,fontSize:c}=D(r,[e]),l=EMe(o),u=O.useMemo(()=>Uge({style:s,fontFamily:i,fontSize:c}),[s,c,i]),d=f=>{n(Hge(f))};if(!l)return null;const p=Zt(t,[sd,"__experimentalDefaultControls"]);return a.jsx(HMe,{as:HBt,panelId:e,settings:o,value:u,onChange:d,defaultControls:p})}function Xge({clientId:e,value:t,computeStyle:n,forceShow:o}){const r=ls(e),[s,i]=O.useReducer(()=>n(r));O.useLayoutEffect(()=>{r&&window.requestAnimationFrame(()=>window.requestAnimationFrame(i))},[r,t]);const c=O.useRef(t),[l,u]=O.useState(!1);return O.useEffect(()=>{if(Jr(t,c.current)||o)return;u(!0),c.current=t;const d=setTimeout(()=>{u(!1)},400);return()=>{u(!1),clearTimeout(d)}},[t,o]),!l&&!o?null:a.jsx(Gh,{clientId:e,__unstablePopoverSlot:"block-toolbar",children:a.jsx("div",{className:"block-editor__spacing-visualizer",style:s})})}function lu(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function XBt({clientId:e,value:t,forceShow:n}){return a.jsx(Xge,{clientId:e,value:t?.spacing?.margin,computeStyle:o=>{const r=lu(o,"margin-top"),s=lu(o,"margin-right"),i=lu(o,"margin-bottom"),c=lu(o,"margin-left");return{borderTopWidth:r,borderRightWidth:s,borderBottomWidth:i,borderLeftWidth:c,top:r?`-${r}`:0,right:s?`-${s}`:0,bottom:i?`-${i}`:0,left:c?`-${c}`:0}},forceShow:n})}function GBt({clientId:e,value:t,forceShow:n}){return a.jsx(Xge,{clientId:e,value:t?.spacing?.padding,computeStyle:o=>({borderTopWidth:lu(o,"padding-top"),borderRightWidth:lu(o,"padding-right"),borderBottomWidth:lu(o,"padding-bottom"),borderLeftWidth:lu(o,"padding-left")}),forceShow:n})}const ll="dimensions",E5="spacing";function KBt(){const[e,t]=O.useState(!1),{hideBlockInterface:n,showBlockInterface:o}=Fe(ae(F));return O.useEffect(()=>{e?n():o()},[e,o,n]),[e,t]}function YBt({children:e,resetAllFilter:t}){const n=O.useCallback(o=>{const r=o.style,s=t(r);return{...o,style:s}},[t]);return a.jsx(Te,{group:"dimensions",resetAllFilter:n,children:e})}function ZBt({clientId:e,name:t,setAttributes:n,settings:o}){const r=XMe(o),s=D(f=>f(F).getBlockAttributes(e)?.style,[e]),[i,c]=KBt(),l=f=>{n({style:ni(f)})};if(!r)return null;const u=Zt(t,[ll,"__experimentalDefaultControls"]),d=Zt(t,[E5,"__experimentalDefaultControls"]),p={...u,...d};return a.jsxs(a.Fragment,{children:[a.jsx(nge,{as:YBt,panelId:e,settings:o,value:s,onChange:l,defaultControls:p,onVisualize:c}),!!o?.spacing?.padding&&a.jsx(GBt,{forceShow:i==="padding",clientId:e,value:s}),!!o?.spacing?.margin&&a.jsx(XBt,{forceShow:i==="margin",clientId:e,value:s})]})}function Gge(e,t="any"){const n=Zt(e,ll);return n===!0?!0:t==="any"?!!(n?.aspectRatio||n?.minHeight):!!n?.[t]}const QBt={useBlockProps:JBt,attributeKeys:["minHeight","style"],hasSupport(e){return Gge(e,"aspectRatio")}};function JBt({name:e,minHeight:t,style:n}){if(!Gge(e,"aspectRatio")||Z1(e,ll,"aspectRatio"))return{};const o=$({"has-aspect-ratio":!!n?.dimensions?.aspectRatio}),r={};return n?.dimensions?.aspectRatio?r.minHeight="unset":(t||n?.dimensions?.minHeight)&&(r.aspectRatio="unset"),{className:o,style:r}}const eNt=[...VBt,tm,Mo,ll,kz,E5,T5],GP=e=>eNt.some(t=>st(e,t));function om(e={}){const t={};return Vw(e).forEach(n=>{t[n.key]=n.value}),t}function tNt(e){return GP(e)&&(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}})),e}const Kge={[`${tm}.__experimentalSkipSerialization`]:["border"],[`${Mo}.__experimentalSkipSerialization`]:[Mo],[`${sd}.__experimentalSkipSerialization`]:[sd],[`${ll}.__experimentalSkipSerialization`]:[ll],[`${E5}.__experimentalSkipSerialization`]:[E5],[`${T5}.__experimentalSkipSerialization`]:[T5]},nNt={...Kge,[`${ll}.aspectRatio`]:[`${ll}.aspectRatio`],[`${kz}`]:[kz]},oNt={[`${ll}.aspectRatio`]:!0,[`${kz}`]:!0},rNt={gradients:"gradient"};function FT(e,t,n=!1){if(!e)return e;let o=e;return n||(o=JSON.parse(JSON.stringify(e))),Array.isArray(t)||(t=[t]),t.forEach(r=>{if(Array.isArray(r)||(r=r.split(".")),r.length>1){const[s,...i]=r;FT(o[s],[i],!0)}else r.length===1&&delete o[r[0]]}),o}function Yge(e,t,n,o=nNt){if(!GP(t))return e;let{style:r}=n;return Object.entries(o).forEach(([s,i])=>{const c=oNt[s]||Zt(t,s);c===!0&&(r=FT(r,i)),Array.isArray(c)&&c.forEach(l=>{const u=rNt[l]||l;r=FT(r,[[...i,u]])})}),e.style={...om(r),...e.style},e}function sNt({clientId:e,name:t,setAttributes:n,__unstableParentLayout:o}){const r=pO(t,o),s=oo(),i={clientId:e,name:t,setAttributes:n,settings:{...r,typography:{...r.typography,textAlign:!1}}};return s!=="default"?null:a.jsxs(a.Fragment,{children:[a.jsx(OBt,{...i}),a.jsx(dTt,{...i}),a.jsx(UBt,{...i}),a.jsx(mEt,{...i}),a.jsx(ZBt,{...i})]})}const KP={edit:sNt,hasSupport:GP,addSaveProps:Yge,attributeKeys:["style"],useBlockProps:Zge},iNt=[{elementType:"button"},{elementType:"link",pseudo:[":hover"]},{elementType:"heading",elements:["h1","h2","h3","h4","h5","h6"]}];function Zge({name:e,style:t}){const n=`wp-elements-${He(Zge)}`,o=`.${n}`,r=t?.elements,s=O.useMemo(()=>{if(!r)return;const i=[];return iNt.forEach(({elementType:c,pseudo:l,elements:u})=>{if(Z1(e,Mo,c))return;const p=r?.[c];if(p){const f=Yr(o,ua[c]);i.push(fS(p,{selector:f})),l&&l.forEach(b=>{p[b]&&i.push(fS(p[b],{selector:Yr(o,`${ua[c]}${b}`)}))})}u&&u.forEach(f=>{r[f]&&i.push(fS(r[f],{selector:Yr(o,ua[f])}))})}),i.length>0?i.join(""):void 0},[o,r,e]);return dO({css:s}),Yge({className:n},e,{style:t},Kge)}r0("blocks.registerBlockType","core/style/addAttribute",tNt);const aNt=e=>st(e,"__experimentalSettings",!1);function cNt(e){return aNt(e)&&(e?.attributes?.settings||(e.attributes={...e.attributes,settings:{type:"object"}})),e}r0("blocks.registerBlockType","core/settings/addAttribute",cNt);const ZS=[],lNt=window?.navigator.userAgent&&window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome")&&!window.navigator.userAgent.includes("Chromium");fs([bs]);function $T({presetSetting:e,defaultSetting:t}){const[n,o,r,s]=O0(t,`${e}.custom`,`${e}.theme`,`${e}.default`);return O.useMemo(()=>[...o||ZS,...r||ZS,...n&&s||ZS],[n,o,r,s])}function Qge(e,t){if(!e)return;const n=t?.find(({slug:o})=>e===`var:preset|duotone|${o}`);return n?n.colors:void 0}function uNt(e,t){if(!e||!Array.isArray(e))return;const n=t?.find(o=>o?.colors?.every((r,s)=>r===e[s]));return n?`var:preset|duotone|${n.slug}`:void 0}function dNt({style:e,setAttributes:t,name:n}){const o=e?.color?.duotone,r=pO(n),s=oo(),i=$T({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),c=$T({presetSetting:"color.palette",defaultSetting:"color.defaultPalette"}),[l,u]=O0("color.custom","color.customDuotone"),d=!l,p=!u||c?.length===0&&d;if(i?.length===0&&p||s!=="default")return null;const f=Array.isArray(o)?o:Qge(o,i);return a.jsxs(a.Fragment,{children:[a.jsx(Te,{group:"filter",children:a.jsx(zge,{value:{filter:{duotone:f}},onChange:b=>{const h={...e,color:{...b?.filter}};t({style:h})},settings:r})}),a.jsx(Ie,{group:"block",__experimentalShareWithChildBlocks:!0,children:a.jsx(Bme,{duotonePalette:i,colorPalette:c,disableCustomDuotone:p,disableCustomColors:d,value:f,onChange:b=>{const h=uNt(b,i),g={...e,color:{...e?.color,duotone:h??b}};t({style:g})},settings:r})})]})}const Jge={shareWithChildBlocks:!0,edit:dNt,useBlockProps:eze,attributeKeys:["style"],hasSupport(e){return st(e,"filter.duotone")}};function pNt(e){return st(e,"filter.duotone")&&(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}})),e}function fNt({clientId:e,id:t,selector:n,attribute:o}){const r=$T({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),s=Array.isArray(o),i=s?void 0:Qge(o,r),c=typeof o=="string"&&i,l=typeof o=="string"&&!c;let u=null;c?u=i:(l||s)&&(u=o);const f=n.split(",").map(g=>`.${t}${g.trim()}`).join(", "),b=Array.isArray(u)||u==="unset";qz(b?{css:u!=="unset"?QWt(f,t):ZWt(f),__unstableType:"presets"}:void 0),qz(b?{assets:u!=="unset"?PP(t,u):"",__unstableType:"svgs"}:void 0);const h=ls(e);O.useEffect(()=>{if(b&&h&&lNt){const g=h.style.display;h.style.display="inline-block",h.offsetHeight,h.style.display=g}},[b,h,u])}function eze({clientId:e,name:t,style:n}){const o=He(eze),r=O.useMemo(()=>{const l=Dt(t);if(l){if(!Zt(l,"filter.duotone",!1))return null;const d=Zt(l,"color.__experimentalDuotone",!1);if(d){const p=ku(l);return typeof d=="string"?Yr(p,d):p}return ku(l,"filter.duotone",{fallback:!0})}},[t]),s=n?.color?.duotone,i=`wp-duotone-${o}`,c=r&&s;return fNt({clientId:e,id:i,selector:r,attribute:s}),{className:c?i:""}}r0("blocks.registerBlockType","core/editor/duotone/add-attributes",pNt);const VT="is-style-";function tze(e){return e?e.split(/\s+/).reduce((t,n)=>{if(n.startsWith(VT)){const o=n.slice(VT.length);o!=="default"&&t.push(o)}return t},[]):[]}function bNt(e,t=[]){const n=tze(e);if(!n)return null;for(const o of n)if(t.some(r=>r.name===o))return o;return null}function hNt({override:e}){qz(e)}function mNt({config:e}){const{getBlockStyles:t,overrides:n}=D(s=>({getBlockStyles:s($e).getBlockStyles,overrides:Fe(s(F)).getStyleOverrides()}),[]),{getBlockName:o}=D(F),r=O.useMemo(()=>{if(!n?.length)return;const s=[],i=[];for(const[,c]of n)if(c?.variation&&c?.clientId&&!i.includes(c.clientId)){const l=o(c.clientId),u=e?.styles?.blocks?.[l]?.variations?.[c.variation];if(u){const d={settings:e?.settings,styles:{blocks:{[l]:{variations:{[`${c.variation}-${c.clientId}`]:u}}}}},p=Ck(nr(),t,c.clientId),z=Sk(d,p,!1,!0,!0,!0,{blockGap:!1,blockStyles:!0,layoutStyles:!1,marginReset:!1,presets:!1,rootPadding:!1,variationStyles:!0});s.push({id:`${c.variation}-${c.clientId}`,css:z,__unstableType:"variation",variation:c.variation,clientId:c.clientId}),i.push(c.clientId)}}return s},[e,n,t,o]);if(!(!r||!r.length))return a.jsx(a.Fragment,{children:r.map(s=>a.jsx(hNt,{override:s},s.id))})}function MNt(e,t,n){if(!e?.styles?.blocks?.[t]?.variations?.[n])return;const o=s=>{Object.keys(s).forEach(i=>{const c=s[i];if(typeof c=="object"&&c!==null)if(c.ref!==void 0)if(typeof c.ref!="string"||c.ref.trim()==="")delete s[i];else{const l=R0(e,c.ref);l?s[i]=l:delete s[i]}else o(c),Object.keys(c).length===0&&delete s[i]})},r=JSON.parse(JSON.stringify(e.styles.blocks[t].variations[n]));return o(r),r}function gNt(e,t,n){const{merged:o}=O.useContext(em),{globalSettings:r,globalStyles:s}=D(i=>{const c=i(F).getSettings();return{globalSettings:c.__experimentalFeatures,globalStyles:c[Rw]}},[]);return O.useMemo(()=>{var i,c,l;const u=MNt({settings:(i=o?.settings)!==null&&i!==void 0?i:r,styles:(c=o?.styles)!==null&&c!==void 0?c:s},e,t);return{settings:(l=o?.settings)!==null&&l!==void 0?l:r,styles:{blocks:{[e]:{variations:{[`${t}-${n}`]:u}}}}}},[o,r,s,t,n,e])}function zNt({name:e,className:t,clientId:n}){const{getBlockStyles:o}=D($e),r=o(e),s=bNt(t,r),i=`${VT}${s}-${n}`,{settings:c,styles:l}=gNt(e,s,n),u=O.useMemo(()=>{if(!s)return;const d={settings:c,styles:l},p=Ck(nr(),o,n);return Sk(d,p,!1,!0,!0,!0,{blockGap:!1,blockStyles:!0,layoutStyles:!1,marginReset:!1,presets:!1,rootPadding:!1,variationStyles:!0})},[s,c,l,o,n]);return qz({id:`variation-${n}`,css:u,__unstableType:"variation",variation:s,clientId:n}),s?{className:i}:{}}const ONt={hasSupport:()=>!0,attributeKeys:["className"],isMatch:({className:e})=>tze(e).length>0,useBlockProps:zNt},YP="layout",{kebabCase:HT}=Fe(L0);function ZP(e){return st(e,"layout")||st(e,"__experimentalLayout")}function nze(e={},t=""){const{layout:n}=e,{default:o}=Zt(t,YP)||{},r=n?.inherit||n?.contentSize||n?.wideSize?{...n,type:"constrained"}:n||o||{},s=[];if(Ju[r?.type||"default"]?.className){const c=Ju[r?.type||"default"]?.className,l=t.split("/"),d=`wp-block-${l[0]==="core"?l.pop():l.join("-")}-${c}`;s.push(c,d)}return D(c=>(r?.inherit||r?.contentSize||r?.type==="constrained")&&c(F).getSettings().__experimentalFeatures?.useRootPaddingAwareAlignments,[r?.contentSize,r?.inherit,r?.type])&&s.push("has-global-padding"),r?.orientation&&s.push(`is-${HT(r.orientation)}`),r?.justifyContent&&s.push(`is-content-justification-${HT(r.justifyContent)}`),r?.flexWrap&&r.flexWrap==="nowrap"&&s.push("is-nowrap"),s}function ANt(e={},t,n){const{layout:o={},style:r={}}=e,s=o?.inherit||o?.contentSize||o?.wideSize?{...o,type:"constrained"}:o||{},i=Kp(s?.type||"default"),[c]=O0("spacing.blockGap"),l=c!==null;return i?.getLayoutStyle?.({blockName:t,selector:n,layout:o,style:r,hasBlockGapSupport:l})}function yNt({layout:e,setAttributes:t,name:n,clientId:o}){const r=pO(n),{layout:s}=r,{themeSupportsLayout:i}=D(T=>{const{getSettings:W}=T(F);return{themeSupportsLayout:W().supportsLayout}},[]);if(oo()!=="default")return null;const l=Zt(n,YP,{}),u={...s,...l},{allowSwitching:d,allowEditing:p=!0,allowInheriting:f=!0,default:b}=u;if(!p)return null;const h={...l,...e},{type:g,default:{type:z="default"}={}}=h,y=g||z,x=!!(f&&(!y||y==="default"||y==="constrained"||h.inherit)),v=e||b||{},{inherit:M=!1,contentSize:A=null}=v;if((y==="default"||y==="constrained")&&!i)return null;const _=Kp(y),w=Kp("constrained"),k=!v.type&&(A||M),q=!!M||!!A,S=T=>t({layout:{type:T}}),C=T=>t({layout:T});return a.jsxs(a.Fragment,{children:[a.jsx(Te,{children:a.jsxs(De,{title:m("Layout"),children:[x&&a.jsx(a.Fragment,{children:a.jsx(Be,{__nextHasNoMarginBottom:!0,className:"block-editor-hooks__toggle-control",label:m("Inner blocks use content width"),checked:_?.name==="constrained"||q,onChange:()=>t({layout:{type:_?.name==="constrained"||q?"default":"constrained"}}),help:_?.name==="constrained"||q?m("Nested blocks use content width with options for full and wide widths."):m("Nested blocks will fill the width of this container. Toggle to constrain.")})}),!M&&d&&a.jsx(xNt,{type:y,onChange:S}),_&&_.name!=="default"&&a.jsx(_.inspectorControls,{layout:v,onChange:C,layoutBlockSupport:u,name:n,clientId:o}),w&&k&&a.jsx(w.inspectorControls,{layout:v,onChange:C,layoutBlockSupport:u,name:n,clientId:o})]})}),!M&&_&&a.jsx(_.toolBarControls,{layout:v,onChange:C,layoutBlockSupport:l,name:n,clientId:o})]})}const vNt={shareWithChildBlocks:!0,edit:yNt,attributeKeys:["layout"],hasSupport(e){return ZP(e)}};function xNt({type:e,onChange:t}){return a.jsx(Bh,{children:PAt().map(({name:n,label:o})=>a.jsx(fe,{__next40pxDefaultSize:!1,isPressed:e===n,onClick:()=>t(n),children:o},n))})}function _Nt(e){var t;return"type"in((t=e.attributes?.layout)!==null&&t!==void 0?t:{})||ZP(e)&&(e.attributes={...e.attributes,layout:{type:"object"}}),e}function wNt({block:e,props:t,blockGapSupport:n,layoutClasses:o}){const{name:r,attributes:s}=t,i=He(e),{layout:c}=s,{default:l}=Zt(r,YP)||{},u=c?.inherit||c?.contentSize||c?.wideSize?{...c,type:"constrained"}:c||l||{},d=`wp-container-${HT(r)}-is-layout-`,p=`.${d}${i}`,f=n!==null,h=Kp(u?.type||"default")?.getLayoutStyle?.({blockName:r,selector:p,layout:u,style:s?.style,hasBlockGapSupport:f}),g=$({[`${d}${i}`]:!!h},o);return dO({css:h}),a.jsx(e,{...t,__unstableLayoutClassNames:g})}const kNt=Sn(e=>t=>{const{clientId:n,name:o,attributes:r}=t,s=ZP(o),i=nze(r,o),c=D(l=>{if(!s)return;const{getSettings:u,getBlockSettings:d}=Fe(l(F)),{disableLayoutStyles:p}=u();if(p)return;const[f]=d(n,"spacing.blockGap");return{blockGapSupport:f}},[s,n]);return c?a.jsx(wNt,{block:e,props:t,layoutClasses:i,...c}):a.jsx(e,{...t,__unstableLayoutClassNames:s?i:void 0})},"withLayoutStyles");r0("blocks.registerBlockType","core/layout/addAttribute",_Nt);r0("editor.BlockListBlock","core/editor/layout/with-layout-styles",kNt);function qZ(e,t){return Array.from({length:t},(n,o)=>e+o)}class Su{constructor({columnStart:t,rowStart:n,columnEnd:o,rowEnd:r,columnSpan:s,rowSpan:i}={}){this.columnStart=t??1,this.rowStart=n??1,s!==void 0?this.columnEnd=this.columnStart+s-1:this.columnEnd=o??this.columnStart,i!==void 0?this.rowEnd=this.rowStart+i-1:this.rowEnd=r??this.rowStart}get columnSpan(){return this.columnEnd-this.columnStart+1}get rowSpan(){return this.rowEnd-this.rowStart+1}contains(t,n){return t>=this.columnStart&&t<=this.columnEnd&&n>=this.rowStart&&n<=this.rowEnd}containsRect(t){return this.contains(t.columnStart,t.rowStart)&&this.contains(t.columnEnd,t.rowEnd)}intersectsRect(t){return this.columnStart<=t.columnEnd&&this.columnEnd>=t.columnStart&&this.rowStart<=t.rowEnd&&this.rowEnd>=t.rowStart}}function Ac(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function SZ(e,t){const n=[];for(const o of e.split(" ")){const r=n[n.length-1],s=r?r.end+t:0,i=s+parseFloat(o);n.push({start:s,end:i})}return n}function hy(e,t,n="start"){return e.reduce((o,r,s)=>Math.abs(r[n]-t)i(F).getSettings().isDistractionFree,[]),r=ls(e);if(o||!r)return null;const s=n?.isManualPlacement&&window.__experimentalEnableGridInteractivity;return a.jsx(qNt,{gridClientId:e,gridElement:r,isManualGrid:s,ref:t})}const qNt=O.forwardRef(({gridClientId:e,gridElement:t,isManualGrid:n},o)=>{const[r,s]=O.useState(()=>CZ(t)),[i,c]=O.useState(!1);return O.useEffect(()=>{const l=[];for(const u of[t,...t.children]){const d=new window.ResizeObserver(()=>{s(CZ(t))});d.observe(u),l.push(d)}return()=>{for(const u of l)u.disconnect()}},[t]),O.useEffect(()=>{function l(){c(!0)}function u(){c(!1)}return document.addEventListener("drag",l),document.addEventListener("dragend",u),()=>{document.removeEventListener("drag",l),document.removeEventListener("dragend",u)}},[]),a.jsx(Gh,{className:$("block-editor-grid-visualizer",{"is-dropping-allowed":i}),clientId:e,__unstablePopoverSlot:"__unstable-block-tools-after",children:a.jsx("div",{ref:o,className:"block-editor-grid-visualizer__grid",style:r.style,children:n?a.jsx(SNt,{gridClientId:e,gridInfo:r}):Array.from({length:r.numItems},(l,u)=>a.jsx(rze,{color:r.currentColor},u))})})});function SNt({gridClientId:e,gridInfo:t}){const[n,o]=O.useState(null),r=D(i=>{const{getBlockOrder:c,getBlockStyles:l}=Fe(i(F)),u=c(e);return l(u)},[e]),s=O.useMemo(()=>{const i=[];for(const l of Object.values(r)){var c;const{columnStart:u,rowStart:d,columnSpan:p=1,rowSpan:f=1}=(c=l?.layout)!==null&&c!==void 0?c:{};!u||!d||i.push(new Su({columnStart:u,rowStart:d,columnSpan:p,rowSpan:f}))}return i},[r]);return qZ(1,t.numRows).map(i=>qZ(1,t.numColumns).map(c=>{var l;const u=s.some(p=>p.contains(c,i)),d=(l=n?.contains(c,i))!==null&&l!==void 0?l:!1;return a.jsx(rze,{color:t.currentColor,className:d&&"is-highlighted",children:u?a.jsx(CNt,{column:c,row:i,gridClientId:e,gridInfo:t,setHighlightedRect:o}):a.jsx(RNt,{column:c,row:i,gridClientId:e,gridInfo:t,setHighlightedRect:o})},`${i}-${c}`)}))}function rze({color:e,children:t,className:n}){return a.jsx("div",{className:$("block-editor-grid-visualizer__cell",n),style:{boxShadow:`inset 0 0 0 1px color-mix(in srgb, ${e} 20%, #0000)`,color:e},children:t})}function sze(e,t,n,o,r){const{getBlockAttributes:s,getBlockRootClientId:i,canInsertBlockType:c,getBlockName:l}=D(F),{updateBlockAttributes:u,moveBlocksToPosition:d,__unstableMarkNextChangeAsNotPersistent:p}=ae(F),f=Rk(n,o.numColumns);return WNt({validateDrag(b){const h=l(b);if(!c(h,n))return!1;const g=s(b),z=new Su({columnStart:e,rowStart:t,columnSpan:g.style?.layout?.columnSpan,rowSpan:g.style?.layout?.rowSpan});return new Su({columnSpan:o.numColumns,rowSpan:o.numRows}).containsRect(z)},onDragEnter(b){const h=s(b);r(new Su({columnStart:e,rowStart:t,columnSpan:h.style?.layout?.columnSpan,rowSpan:h.style?.layout?.rowSpan}))},onDragLeave(){r(b=>b?.columnStart===e&&b?.rowStart===t?null:b)},onDrop(b){r(null);const h=s(b);u(b,{style:{...h.style,layout:{...h.style?.layout,columnStart:e,rowStart:t}}}),p(),d([b],i(b),n,f(e,t))}})}function CNt({column:e,row:t,gridClientId:n,gridInfo:o,setHighlightedRect:r}){return a.jsx("div",{className:"block-editor-grid-visualizer__drop-zone",ref:sze(e,t,n,o,r)})}function RNt({column:e,row:t,gridClientId:n,gridInfo:o,setHighlightedRect:r}){const{updateBlockAttributes:s,moveBlocksToPosition:i,__unstableMarkNextChangeAsNotPersistent:c}=ae(F),l=Rk(n,o.numColumns);return a.jsx(dk,{rootClientId:n,className:"block-editor-grid-visualizer__appender",ref:sze(e,t,n,o,r),style:{color:o.currentColor},onSelect:u=>{u&&(s(u.clientId,{style:{layout:{columnStart:e,rowStart:t}}}),c(),i([u.clientId],n,n,l(e,t)))}})}function WNt({validateDrag:e,onDragEnter:t,onDragLeave:n,onDrop:o}){const{getDraggedBlockClientIds:r}=D(F);return Rx({onDragEnter(){const[s]=r();s&&e(s)&&t(s)},onDragLeave(){n()},onDrop(){const[s]=r();s&&e(s)&&o(s)}})}function TNt({clientId:e,bounds:t,onChange:n,parentLayout:o}){const r=ls(e),s=r?.parentElement,{isManualPlacement:i}=o;return!r||!s?null:a.jsx(ENt,{clientId:e,bounds:t,blockElement:r,rootBlockElement:s,onChange:n,isManualGrid:i&&window.__experimentalEnableGridInteractivity})}function ENt({clientId:e,bounds:t,blockElement:n,rootBlockElement:o,onChange:r,isManualGrid:s}){const[i,c]=O.useState(null),[l,u]=O.useState({top:!1,bottom:!1,left:!1,right:!1});O.useEffect(()=>{const b=new window.ResizeObserver(()=>{const h=n.getBoundingClientRect(),g=o.getBoundingClientRect();u({top:h.top>g.top,bottom:h.bottomg.left,right:h.rightb.disconnect()},[n,o]);const d={right:"flex-start",left:"flex-end"},p={top:"flex-end",bottom:"flex-start"},f={display:"flex",justifyContent:"center",alignItems:"center",...d[i]&&{justifyContent:d[i]},...p[i]&&{alignItems:p[i]}};return a.jsx(Gh,{className:"block-editor-grid-item-resizer",clientId:e,__unstablePopoverSlot:"__unstable-block-tools-after",additionalStyles:f,children:a.jsx(Ui,{className:"block-editor-grid-item-resizer__box",size:{width:"100%",height:"100%"},enable:{bottom:l.bottom,bottomLeft:!1,bottomRight:!1,left:l.left,right:l.right,top:l.top,topLeft:!1,topRight:!1},bounds:t,boundsByDirection:!0,onPointerDown:({target:b,pointerId:h})=>{b.setPointerCapture(h)},onResizeStart:(b,h)=>{c(h)},onResizeStop:(b,h,g)=>{const z=parseFloat(Ac(o,"column-gap")),y=parseFloat(Ac(o,"row-gap")),x=SZ(Ac(o,"grid-template-columns"),z),v=SZ(Ac(o,"grid-template-rows"),y),M=new window.DOMRect(n.offsetLeft+g.offsetLeft,n.offsetTop+g.offsetTop,g.offsetWidth,g.offsetHeight),A=hy(x,M.left)+1,_=hy(v,M.top)+1,w=hy(x,M.right,"end")+1,k=hy(v,M.bottom,"end")+1;r({columnSpan:w-A+1,rowSpan:k-_+1,columnStart:s?A:void 0,rowStart:s?_:void 0})}})})}function BNt({layout:e,parentLayout:t,onChange:n,gridClientId:o,blockClientId:r}){var s,i,c,l;const{moveBlocksToPosition:u,__unstableMarkNextChangeAsNotPersistent:d}=ae(F),p=(s=e?.columnStart)!==null&&s!==void 0?s:1,f=(i=e?.rowStart)!==null&&i!==void 0?i:1,b=(c=e?.columnSpan)!==null&&c!==void 0?c:1,h=(l=e?.rowSpan)!==null&&l!==void 0?l:1,g=p+b-1,z=f+h-1,y=t?.columnCount,x=t?.rowCount,v=Rk(o,y);return a.jsx(Ie,{group:"parent",children:a.jsxs(c0,{className:"block-editor-grid-item-mover__move-button-container",children:[a.jsx("div",{className:"block-editor-grid-item-mover__move-horizontal-button-container is-left",children:a.jsx(MM,{icon:ft()?Ei:Fa,label:m("Move left"),description:m("Move left"),isDisabled:p<=1,onClick:()=>{n({columnStart:p-1}),d(),u([r],o,o,v(p-1,f))}})}),a.jsxs("div",{className:"block-editor-grid-item-mover__move-vertical-button-container",children:[a.jsx(MM,{className:"is-up-button",icon:G_,label:m("Move up"),description:m("Move up"),isDisabled:f<=1,onClick:()=>{n({rowStart:f-1}),d(),u([r],o,o,v(p,f-1))}}),a.jsx(MM,{className:"is-down-button",icon:md,label:m("Move down"),description:m("Move down"),isDisabled:x&&z>=x,onClick:()=>{n({rowStart:f+1}),d(),u([r],o,o,v(p,f+1))}})]}),a.jsx("div",{className:"block-editor-grid-item-mover__move-horizontal-button-container is-right",children:a.jsx(MM,{icon:ft()?Fa:Ei,label:m("Move right"),description:m("Move right"),isDisabled:y&&g>=y,onClick:()=>{n({columnStart:p+1}),d(),u([r],o,o,v(p+1,f))}})})]})})}function MM({className:e,icon:t,label:n,isDisabled:o,onClick:r,description:s}){const c=`block-editor-grid-item-mover-button__description-${He(MM)}`;return a.jsxs(a.Fragment,{children:[a.jsx(bt,{className:$("block-editor-grid-item-mover-button",e),icon:t,label:n,"aria-describedby":c,onClick:o?null:r,disabled:o,accessibleWhenDisabled:!0}),a.jsx(Kt,{id:c,children:s})]})}function NNt({clientId:e}){const{gridLayout:t,blockOrder:n,selectedBlockLayout:o}=D(f=>{var b;const{getBlockAttributes:h,getBlockOrder:g}=f(F),z=f(F).getSelectedBlock();return{gridLayout:(b=h(e).layout)!==null&&b!==void 0?b:{},blockOrder:g(e),selectedBlockLayout:z?.attributes.style?.layout}},[e]),{getBlockAttributes:r,getBlockRootClientId:s}=D(F),{updateBlockAttributes:i,__unstableMarkNextChangeAsNotPersistent:c}=ae(F),l=O.useMemo(()=>o?new Su(o):null,[o]),u=t1(l),d=t1(t.isManualPlacement),p=t1(n);O.useEffect(()=>{const f={};if(t.isManualPlacement){const y=[];for(const v of n){var b;const{columnStart:M,rowStart:A,columnSpan:_=1,rowSpan:w=1}=(b=r(v).style?.layout)!==null&&b!==void 0?b:{};!M||!A||y.push(new Su({columnStart:M,rowStart:A,columnSpan:_,rowSpan:w}))}for(const v of n){var h;const M=r(v),{columnStart:A,rowStart:_,columnSpan:w=1,rowSpan:k=1}=(h=M.style?.layout)!==null&&h!==void 0?h:{};if(A&&_)continue;const[q,S]=LNt(y,t.columnCount,w,k,u?.columnEnd,u?.rowEnd);y.push(new Su({columnStart:q,rowStart:S,columnSpan:w,rowSpan:k})),f[v]={style:{...M.style,layout:{...M.style?.layout,columnStart:q,rowStart:S}}}}const x=Math.max(...y.map(v=>v.rowEnd));(!t.rowCount||t.rowCountu.intersectsRect(l)))return[c,i]}}function ize({style:e}){var t;const n=D(z=>!z(F).getSettings().disableLayoutStyles),o=(t=e?.layout)!==null&&t!==void 0?t:{},{selfStretch:r,flexSize:s,columnStart:i,rowStart:c,columnSpan:l,rowSpan:u}=o,d=Hw()||{},{columnCount:p,minimumColumnWidth:f}=d,b=He(ize),h=`.wp-container-content-${b}`;let g="";if(n&&(r==="fixed"&&s?g=`${h} { + `),h+="}"),c.blockStyles&&l.forEach(({selector:g,duotoneSelector:z,styles:y,fallbackGapValue:x,hasLayoutSupport:v,featureSelectors:M,styleVariationSelectors:A,skipSelectorWrapper:_})=>{if(M){const q=OZ(M,y);Object.entries(q).forEach(([S,C])=>{if(C.length){const T=C.join(";");h+=`:root :where(${S}){${T};}`}})}if(z){const q={};y?.filter&&(q.filter=y.filter,delete y.filter);const S=Tb(q);S.length&&(h+=`${z}{${S.join(";")};}`)}!r&&(Oc===g||v)&&(h+=RMe({style:y,selector:g,hasBlockGapSupport:n,hasFallbackGapSupport:o,fallbackGapValue:x}));const w=Tb(y,g,d,e,s);if(w?.length){const q=_?g:`:root :where(${g})`;h+=`${q}{${w.join(";")};}`}y?.css&&(h+=jT(y.css,`:root :where(${g})`)),c.variationStyles&&A&&Object.entries(A).forEach(([q,S])=>{const C=y?.variations?.[q];if(C){if(M){const W=OZ(M,C);Object.entries(W).forEach(([B,N])=>{if(N.length){const E=gTt(B,S),L=N.join(";");h+=`:root :where(${E}){${L};}`}})}const T=Tb(C,S,d,e);T.length&&(h+=`:root :where(${S}){${T.join(";")};}`),C?.css&&(h+=jT(C.css,`:root :where(${S})`))}});const k=Object.entries(y).filter(([q])=>q.startsWith(":"));k?.length&&k.forEach(([q,S])=>{const C=Tb(S);if(!C?.length)return;const W=`:root :where(${g.split(",").map(B=>B+q).join(",")}){${C.join(";")};}`;h+=W})}),c.layoutStyles&&(h=h+".wp-site-blocks > .alignleft { float: left; margin-right: 2em; }",h=h+".wp-site-blocks > .alignright { float: right; margin-left: 2em; }",h=h+".wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }"),c.blockGap&&n){const g=_r(e?.styles?.spacing?.blockGap)||"0.5em";h=h+`:root :where(.wp-site-blocks) > * { margin-block-start: ${g}; margin-block-end: 0; }`,h=h+":root :where(.wp-site-blocks) > :first-child { margin-block-start: 0; }",h=h+":root :where(.wp-site-blocks) > :last-child { margin-block-end: 0; }"}return c.presets&&u.forEach(({selector:g,presets:z})=>{(Oc===g||q5===g)&&(g="");const y=mTt(g,z);y.length>0&&(h+=y)}),h};function yTt(e,t){return DP(e,t).flatMap(({presets:o})=>MTt(o))}const vTt=(e,t)=>{if(e?.selectors&&Object.keys(e.selectors).length>0)return e.selectors;const n={root:t};return Object.entries(bTt).forEach(([o,r])=>{const s=ku(e,o);s&&(n[r]=s)}),n},Ck=(e,t,n)=>{const o={};return e.forEach(r=>{const s=r.name,i=ku(r);let c=ku(r,"filter.duotone");if(!c){const b=ku(r),h=Zt(r,"color.__experimentalDuotone",!1);c=h&&Yr(b,h)}const l=!!r?.supports?.layout||!!r?.supports?.__experimentalLayout,u=r?.supports?.spacing?.blockGap?.__experimentalDefault,d=t(s),p={};d?.forEach(b=>{const h=n?`-${n}`:"",g=`${b.name}${h}`,z=$kt(g,i);p[g]=z});const f=vTt(r,i);o[s]={duotoneSelector:c,fallbackGapValue:u,featureSelectors:Object.keys(f).length?f:void 0,hasLayoutSupport:l,name:s,selector:i,styleVariationSelectors:d?.length?p:void 0}}),o};function xTt(e){return e.styles?.blocks?.["core/separator"]&&e.styles?.blocks?.["core/separator"].color?.background&&!e.styles?.blocks?.["core/separator"].color?.text&&!e.styles?.blocks?.["core/separator"].border?.color?{...e,styles:{...e.styles,blocks:{...e.styles.blocks,"core/separator":{...e.styles.blocks["core/separator"],color:{...e.styles.blocks["core/separator"].color,text:e.styles?.blocks["core/separator"].color.background}}}}}:e}function jT(e,t){let n="";return!e||e.trim()===""||e.split("&").forEach(r=>{if(!r||r.trim()==="")return;if(!r.includes("{"))n+=`:root :where(${t}){${r.trim()}}`;else{const i=r.replace("}","").split("{");if(i.length!==2)return;const[c,l]=i,u=c.match(/([>+~\s]*::[a-zA-Z-]+)/),d=u?u[1]:"",p=u?c.replace(d,"").trim():c.trim();let f;p===""?f=t:f=c.startsWith(" ")?Yr(t,p):Dkt(t,p),n+=`:root :where(${f})${d}{${l.trim()}}`}}),n}function WMe(e={},t){const[n]=_Me("spacing.blockGap"),o=n!==null,r=!o,s=D(c=>{const{getSettings:l}=c(F);return!!l().disableLayoutStyles}),{getBlockStyles:i}=D($e);return O.useMemo(()=>{var c;if(!e?.styles||!e?.settings)return[];const l=xTt(e),u=Ck(nr(),i),d=ATt(l,u),p=Sk(l,u,o,r,s,t),f=yTt(l,u),b=[{css:d,isGlobalStyles:!0},{css:p,isGlobalStyles:!0},{css:(c=l.styles.css)!==null&&c!==void 0?c:"",isGlobalStyles:!0},{assets:f,__unstableType:"svg",isGlobalStyles:!0}];return nr().forEach(h=>{if(l.styles.blocks[h.name]?.css){const g=u[h.name].selector;b.push({css:jT(l.styles.blocks[h.name]?.css,g),isGlobalStyles:!0})}}),[b,l.settings]},[o,r,e,s,t,i])}function _Tt(e=!1){const{merged:t}=O.useContext(em);return WMe(t,e)}const wTt=[{label:m("Align text left"),value:"left",icon:_3},{label:m("Align text center"),value:"center",icon:V_},{label:m("Align text right"),value:"right",icon:w3},{label:m("Justify text"),value:"justify",icon:mYe}],kTt=["left","center","right"];function TMe({className:e,value:t,onChange:n,options:o=kTt}){const r=O.useMemo(()=>wTt.filter(s=>o.includes(s.value)),[o]);return r.length?a.jsx(wn,{isDeselectable:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:m("Text alignment"),className:$("block-editor-text-alignment-control",e),value:t,onChange:s=>{n(s===t?void 0:s)},children:r.map(s=>a.jsx(Bi,{value:s.value,icon:s.icon,label:s.label},s.value))}):null}const qTt=1,STt=6;function EMe(e){const t=NMe(e),n=LMe(e),o=jMe(e),r=PMe(e),s=DMe(e),i=IMe(e),c=FMe(e),l=$Me(e),u=VMe(e),d=BMe(e);return t||n||o||r||s||i||d||c||l||u}function BMe(e){return e?.typography?.defaultFontSizes!==!1&&e?.typography?.fontSizes?.default?.length||e?.typography?.fontSizes?.theme?.length||e?.typography?.fontSizes?.custom?.length||e?.typography?.customFontSize}function NMe(e){return["default","theme","custom"].some(t=>e?.typography?.fontFamilies?.[t]?.length)}function LMe(e){return e?.typography?.lineHeight}function jMe(e){return e?.typography?.fontStyle||e?.typography?.fontWeight}function CTt(e){return e?.typography?.fontStyle?e?.typography?.fontWeight?m("Appearance"):m("Font style"):m("Font weight")}function PMe(e){return e?.typography?.letterSpacing}function IMe(e){return e?.typography?.textTransform}function DMe(e){return e?.typography?.textAlign}function FMe(e){return e?.typography?.textDecoration}function $Me(e){return e?.typography?.writingMode}function VMe(e){return e?.typography?.textColumns}function RTt(e){var t,n,o;const r=e?.typography?.fontSizes,s=!!e?.typography?.defaultFontSizes;return[...(t=r?.custom)!==null&&t!==void 0?t:[],...(n=r?.theme)!==null&&n!==void 0?n:[],...s?(o=r?.default)!==null&&o!==void 0?o:[]:[]]}function WTt({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){const s=Ad(),i=()=>{const c=e(n);t(c)};return a.jsx(Tr,{label:m("Typography"),resetAll:i,panelId:o,dropdownMenuProps:s,children:r})}const TTt={fontFamily:!0,fontSize:!0,fontAppearance:!0,lineHeight:!0,letterSpacing:!0,textAlign:!0,textTransform:!0,textDecoration:!0,writingMode:!0,textColumns:!0};function HMe({as:e=WTt,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:s,defaultControls:i=TTt}){const c=Ue=>ki({settings:r},"",Ue),l=NMe(r),u=c(o?.typography?.fontFamily),{fontFamilies:d,fontFamilyFaces:p}=O.useMemo(()=>Tkt(r,u),[r,u]),f=Ue=>{const Xe=d?.find(({fontFamily:ot})=>ot===Ue)?.slug;n(Vt(t,["typography","fontFamily"],Xe?`var:preset|font-family|${Xe}`:Ue||void 0))},b=()=>!!t?.typography?.fontFamily,h=()=>f(void 0),g=BMe(r),z=!r?.typography?.customFontSize,y=RTt(r),x=c(o?.typography?.fontSize),v=(Ue,Xe)=>{const ot=Xe?.slug?`var:preset|font-size|${Xe?.slug}`:Ue;n(Vt(t,["typography","fontSize"],ot||void 0))},M=()=>!!t?.typography?.fontSize,A=()=>v(void 0),_=jMe(r),w=CTt(r),k=r?.typography?.fontStyle,q=r?.typography?.fontWeight,S=c(o?.typography?.fontStyle),C=c(o?.typography?.fontWeight),{nearestFontStyle:T,nearestFontWeight:W}=Bkt(p,S,C),B=O.useCallback(({fontStyle:Ue,fontWeight:Xe})=>{(Ue!==S||Xe!==C)&&n({...t,typography:{...t?.typography,fontStyle:Ue||void 0,fontWeight:Xe||void 0}})},[S,C,n,t]),N=()=>!!t?.typography?.fontStyle||!!t?.typography?.fontWeight,E=O.useCallback(()=>{B({})},[B]);O.useEffect(()=>{T&&W?B({fontStyle:T,fontWeight:W}):E()},[T,W,E,B]);const L=LMe(r),I=c(o?.typography?.lineHeight),P=Ue=>{n(Vt(t,["typography","lineHeight"],Ue||void 0))},H=()=>t?.typography?.lineHeight!==void 0,U=()=>P(void 0),X=PMe(r),Z=c(o?.typography?.letterSpacing),ne=Ue=>{n(Vt(t,["typography","letterSpacing"],Ue||void 0))},oe=()=>!!t?.typography?.letterSpacing,Y=()=>ne(void 0),ee=VMe(r),ie=c(o?.typography?.textColumns),se=Ue=>{n(Vt(t,["typography","textColumns"],Ue||void 0))},be=()=>!!t?.typography?.textColumns,ye=()=>se(void 0),xe=IMe(r),K=c(o?.typography?.textTransform),pe=Ue=>{n(Vt(t,["typography","textTransform"],Ue||void 0))},G=()=>!!t?.typography?.textTransform,re=()=>pe(void 0),Me=FMe(r),he=c(o?.typography?.textDecoration),Q=Ue=>{n(Vt(t,["typography","textDecoration"],Ue||void 0))},R=()=>!!t?.typography?.textDecoration,j=()=>Q(void 0),V=$Me(r),de=c(o?.typography?.writingMode),ge=Ue=>{n(Vt(t,["typography","writingMode"],Ue||void 0))},ve=()=>!!t?.typography?.writingMode,Ne=()=>ge(void 0),et=DMe(r),mt=c(o?.typography?.textAlign),Mt=Ue=>{n(Vt(t,["typography","textAlign"],Ue||void 0))},Ke=()=>!!t?.typography?.textAlign,Nt=()=>Mt(void 0),zt=O.useCallback(Ue=>({...Ue,typography:{}}),[]);return a.jsxs(e,{resetAllFilter:zt,value:t,onChange:n,panelId:s,children:[l&&a.jsx(Rt,{label:m("Font"),hasValue:b,onDeselect:h,isShownByDefault:i.fontFamily,panelId:s,children:a.jsx(GCt,{fontFamilies:d,value:u,onChange:f,size:"__unstable-large",__nextHasNoMarginBottom:!0})}),g&&a.jsx(Rt,{label:m("Size"),hasValue:M,onDeselect:A,isShownByDefault:i.fontSize,panelId:s,children:a.jsx(rft,{value:x,onChange:v,fontSizes:y,disableCustomFontSizes:z,withReset:!1,withSlider:!0,size:"__unstable-large"})}),_&&a.jsx(Rt,{className:"single-column",label:w,hasValue:N,onDeselect:E,isShownByDefault:i.fontAppearance,panelId:s,children:a.jsx(XCt,{value:{fontStyle:S,fontWeight:C},onChange:B,hasFontStyles:k,hasFontWeights:q,fontFamilyFaces:p,size:"__unstable-large"})}),L&&a.jsx(Rt,{className:"single-column",label:m("Line height"),hasValue:H,onDeselect:U,isShownByDefault:i.lineHeight,panelId:s,children:a.jsx(N8t,{__unstableInputWidth:"auto",value:I,onChange:P,size:"__unstable-large"})}),X&&a.jsx(Rt,{className:"single-column",label:m("Letter spacing"),hasValue:oe,onDeselect:Y,isShownByDefault:i.letterSpacing,panelId:s,children:a.jsx(KCt,{value:Z,onChange:ne,size:"__unstable-large",__unstableInputWidth:"auto"})}),ee&&a.jsx(Rt,{className:"single-column",label:m("Columns"),hasValue:be,onDeselect:ye,isShownByDefault:i.textColumns,panelId:s,children:a.jsx(T1,{label:m("Columns"),max:STt,min:qTt,onChange:se,size:"__unstable-large",spinControls:"custom",value:ie,initialPosition:1})}),Me&&a.jsx(Rt,{className:"single-column",label:m("Decoration"),hasValue:R,onDeselect:j,isShownByDefault:i.textDecoration,panelId:s,children:a.jsx(ZCt,{value:he,onChange:Q,size:"__unstable-large",__unstableInputWidth:"auto"})}),V&&a.jsx(Rt,{className:"single-column",label:m("Orientation"),hasValue:ve,onDeselect:Ne,isShownByDefault:i.writingMode,panelId:s,children:a.jsx(tRt,{value:de,onChange:ge,size:"__unstable-large",__nextHasNoMarginBottom:!0})}),xe&&a.jsx(Rt,{label:m("Letter case"),hasValue:G,onDeselect:re,isShownByDefault:i.textTransform,panelId:s,children:a.jsx(JCt,{value:K,onChange:pe,showNone:!0,isBlock:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0})}),et&&a.jsx(Rt,{label:m("Text alignment"),hasValue:Ke,onDeselect:Nt,isShownByDefault:i.textAlign,panelId:s,children:a.jsx(TMe,{value:mt,onChange:Mt,size:"__unstable-large",__nextHasNoMarginBottom:!0})})]})}function Rk(e,t){const{getBlockOrder:n,getBlockAttributes:o}=D(F);return(s,i)=>{const c=(i-1)*t+s-1;let l=0;for(const d of n(e)){var u;const{columnStart:p,rowStart:f}=(u=o(d).style?.layout)!==null&&u!==void 0?u:{};(f-1)*t+p-1!!s,u=m(c==="horizontal"?"Width":"Height"),d=()=>{t({selfStretch:void 0,flexSize:void 0})};return O.useEffect(()=>{s==="fixed"&&!i&&t({...e,selfStretch:"fit"})},[]),a.jsxs(Ye,{as:Rt,spacing:2,hasValue:l,label:u,onDeselect:d,isShownByDefault:o,panelId:r,children:[a.jsxs(wn,{__nextHasNoMarginBottom:!0,size:"__unstable-large",label:LTt(n),value:s||"fit",help:ETt(s,n),onChange:p=>{t({selfStretch:p,flexSize:p!=="fixed"?null:i})},isBlock:!0,children:[a.jsx(W0,{value:"fit",label:Oe("Fit","Intrinsic block width in flex layout")},"fit"),a.jsx(W0,{value:"fill",label:Oe("Grow","Block with expanding width in flex layout")},"fill"),a.jsx(W0,{value:"fixed",label:Oe("Fixed","Block with fixed width in flex layout")},"fixed")]}),s==="fixed"&&a.jsx(H0,{size:"__unstable-large",onChange:p=>{t({selfStretch:s,flexSize:p})},value:i,label:u,hideLabelFromVision:!0})]})}function LTt(e){const{orientation:t="horizontal"}=e;return m(t==="horizontal"?"Width":"Height")}function jTt({childLayout:e,onChange:t,parentLayout:n,isShownByDefault:o,panelId:r}){const{columnStart:s,rowStart:i,columnSpan:c,rowSpan:l}=e,{columnCount:u=3,rowCount:d}=n??{},p=D(v=>v(F).getBlockRootClientId(r)),{moveBlocksToPosition:f,__unstableMarkNextChangeAsNotPersistent:b}=ae(F),h=Rk(p,u),g=()=>!!s||!!i,z=()=>!!c||!!l,y=()=>{t({columnStart:void 0,rowStart:void 0})},x=()=>{t({columnSpan:void 0,rowSpan:void 0})};return a.jsxs(a.Fragment,{children:[a.jsxs(Je,{as:Rt,hasValue:z,label:m("Grid span"),onDeselect:x,isShownByDefault:o,panelId:r,children:[a.jsx(Is,{size:"__unstable-large",label:m("Column span"),type:"number",onChange:v=>{const M=v===""?1:parseInt(v,10);t({columnStart:s,rowStart:i,rowSpan:l,columnSpan:M})},value:c??1,min:1}),a.jsx(Is,{size:"__unstable-large",label:m("Row span"),type:"number",onChange:v=>{const M=v===""?1:parseInt(v,10);t({columnStart:s,rowStart:i,columnSpan:c,rowSpan:M})},value:l??1,min:1})]}),window.__experimentalEnableGridInteractivity&&u&&a.jsxs(Q0,{as:Rt,hasValue:g,label:m("Grid placement"),onDeselect:y,isShownByDefault:!1,panelId:r,children:[a.jsx(Ht,{style:{width:"50%"},children:a.jsx(Is,{size:"__unstable-large",label:m("Column"),type:"number",onChange:v=>{const M=v===""?1:parseInt(v,10);t({columnStart:M,rowStart:i,columnSpan:c,rowSpan:l}),b(),f([r],p,p,h(M,i))},value:s??1,min:1,max:u?u-(c??1)+1:void 0})}),a.jsx(Ht,{style:{width:"50%"},children:a.jsx(Is,{size:"__unstable-large",label:m("Row"),type:"number",onChange:v=>{const M=v===""?1:parseInt(v,10);t({columnStart:s,rowStart:M,columnSpan:c,rowSpan:l}),b(),f([r],p,p,h(s,M))},value:i??1,min:1,max:d?d-(l??1)+1:void 0})})]})]})}function UMe({panelId:e,value:t,onChange:n=()=>{},options:o,defaultValue:r="auto",hasValue:s,isShownByDefault:i=!0}){const c=t??"auto",[l,u,d]=O0("dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),p=u?.map(({name:h,ratio:g})=>({label:h,value:g})),f=l?.map(({name:h,ratio:g})=>({label:h,value:g})),b=[{label:Oe("Original","Aspect ratio option for dimensions control"),value:"auto"},...d?f:[],...p||[],{label:Oe("Custom","Aspect ratio option for dimensions control"),value:"custom",disabled:!0,hidden:!0}];return a.jsx(Rt,{hasValue:s||(()=>c!==r),label:m("Aspect ratio"),onDeselect:()=>n(void 0),isShownByDefault:i,panelId:e,children:a.jsx(i0,{label:m("Aspect ratio"),value:c,options:o??b,onChange:n,size:"__unstable-large",__nextHasNoMarginBottom:!0})})}const KS=["horizontal","vertical"];function XMe(e){const t=GMe(e),n=KMe(e),o=YMe(e),r=ZMe(e),s=QMe(e),i=JMe(e),c=ege(e),l=tge(e);return t||n||o||r||s||i||c||l}function GMe(e){return e?.layout?.contentSize}function KMe(e){return e?.layout?.wideSize}function YMe(e){return e?.spacing?.padding}function ZMe(e){return e?.spacing?.margin}function QMe(e){return e?.spacing?.blockGap}function JMe(e){return e?.dimensions?.minHeight}function ege(e){return e?.dimensions?.aspectRatio}function tge(e){var t;const{type:n="default",default:{type:o="default"}={},allowSizingOnChildren:r=!1}=(t=e?.parentLayout)!==null&&t!==void 0?t:{},s=(o==="flex"||n==="flex"||o==="grid"||n==="grid")&&r;return!!e?.layout&&s}function PTt(e){const{defaultSpacingSizes:t,spacingSizes:n}=e?.spacing||{};return t!==!1&&n?.default?.length>0||n?.theme?.length>0||n?.custom?.length>0}function AZ(e,t){if(!t||!e)return e;const n={};return t.forEach(o=>{o==="vertical"&&(n.top=e.top,n.bottom=e.bottom),o==="horizontal"&&(n.left=e.left,n.right=e.right),n[o]=e?.[o]}),n}function yZ(e){return e&&typeof e=="string"?{top:e,right:e,bottom:e,left:e}:e}function ITt(e){return e&&typeof e=="string"?{top:e}:e&&{...e,right:e?.left,bottom:e?.top}}function DTt({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){const s=Ad(),i=()=>{const c=e(n);t(c)};return a.jsx(Tr,{label:m("Dimensions"),resetAll:i,panelId:o,dropdownMenuProps:s,children:r})}const dc={contentSize:!0,wideSize:!0,padding:!0,margin:!0,blockGap:!0,minHeight:!0,aspectRatio:!0,childLayout:!0};function nge({as:e=DTt,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:s,defaultControls:i=dc,onVisualize:c=()=>{},includeLayoutControls:l=!1}){var u,d,p,f,b,h,g,z;const{dimensions:y,spacing:x}=r,v=Ot=>Ot&&typeof Ot=="object"?Object.keys(Ot).reduce((k0,f1)=>(k0[f1]=ki({settings:{dimensions:y,spacing:x}},"",Ot[f1]),k0),{}):ki({settings:{dimensions:y,spacing:x}},"",Ot),M=PTt(r),A=Fr({availableUnits:r?.spacing?.units||["%","px","em","rem","vw"]}),_=-1/0,[w,k]=O.useState(_),q=GMe(r)&&l,S=v(o?.layout?.contentSize),C=Ot=>{n(Vt(t,["layout","contentSize"],Ot||void 0))},T=()=>!!t?.layout?.contentSize,W=()=>C(void 0),B=KMe(r)&&l,N=v(o?.layout?.wideSize),E=Ot=>{n(Vt(t,["layout","wideSize"],Ot||void 0))},L=()=>!!t?.layout?.wideSize,I=()=>E(void 0),P=YMe(r),H=v(o?.spacing?.padding),U=yZ(H),X=Array.isArray(r?.spacing?.padding)?r?.spacing?.padding:r?.spacing?.padding?.sides,Z=X&&X.some(Ot=>KS.includes(Ot)),ne=Ot=>{const k0=AZ(Ot,X);n(Vt(t,["spacing","padding"],k0))},oe=()=>!!t?.spacing?.padding&&Object.keys(t?.spacing?.padding).length,Y=()=>ne(void 0),ee=()=>c("padding"),ie=ZMe(r),se=v(o?.spacing?.margin),be=yZ(se),ye=Array.isArray(r?.spacing?.margin)?r?.spacing?.margin:r?.spacing?.margin?.sides,xe=ye&&ye.some(Ot=>KS.includes(Ot)),K=Ot=>{const k0=AZ(Ot,ye);n(Vt(t,["spacing","margin"],k0))},pe=()=>!!t?.spacing?.margin&&Object.keys(t?.spacing?.margin).length,G=()=>K(void 0),re=()=>c("margin"),Me=QMe(r),he=v(o?.spacing?.blockGap),Q=ITt(he),R=Array.isArray(r?.spacing?.blockGap)?r?.spacing?.blockGap:r?.spacing?.blockGap?.sides,j=R&&R.some(Ot=>KS.includes(Ot)),V=Ot=>{n(Vt(t,["spacing","blockGap"],Ot))},de=Ot=>{Ot||V(null),!j&&Ot?.hasOwnProperty("top")?V(Ot.top):V({top:Ot?.top,left:Ot?.left})},ge=()=>V(void 0),ve=()=>!!t?.spacing?.blockGap,Ne=JMe(r),et=v(o?.dimensions?.minHeight),mt=Ot=>{const k0=Vt(t,["dimensions","minHeight"],Ot);n(Vt(k0,["dimensions","aspectRatio"],void 0))},Mt=()=>{mt(void 0)},Ke=()=>!!t?.dimensions?.minHeight,Nt=ege(r),zt=v(o?.dimensions?.aspectRatio),Ue=Ot=>{const k0=Vt(t,["dimensions","aspectRatio"],Ot);n(Vt(k0,["dimensions","minHeight"],void 0))},Xe=()=>!!t?.dimensions?.aspectRatio,ot=tge(r),Ct=o?.layout,n0=Ot=>{n({...t,layout:{...Ot}})},o1=O.useCallback(Ot=>({...Ot,layout:ni({...Ot?.layout,contentSize:void 0,wideSize:void 0,selfStretch:void 0,flexSize:void 0,columnStart:void 0,rowStart:void 0,columnSpan:void 0,rowSpan:void 0}),spacing:{...Ot?.spacing,padding:void 0,margin:void 0,blockGap:void 0},dimensions:{...Ot?.dimensions,minHeight:void 0,aspectRatio:void 0}}),[]),B1=()=>c(!1),p1={min:w,onDragStart:()=>{k(0)},onDragEnd:()=>{k(_)}};return a.jsxs(e,{resetAllFilter:o1,value:t,onChange:n,panelId:s,children:[(q||B)&&a.jsx("span",{className:"span-columns",children:m("Set the width of the main content area.")}),q&&a.jsx(Rt,{label:m("Content width"),hasValue:T,onDeselect:W,isShownByDefault:(u=i.contentSize)!==null&&u!==void 0?u:dc.contentSize,panelId:s,children:a.jsx(H0,{__next40pxDefaultSize:!0,label:m("Content width"),labelPosition:"top",value:S||"",onChange:Ot=>{C(Ot)},units:A,prefix:a.jsx(Fp,{variant:"icon",children:a.jsx(t0,{icon:H_})})})}),B&&a.jsx(Rt,{label:m("Wide width"),hasValue:L,onDeselect:I,isShownByDefault:(d=i.wideSize)!==null&&d!==void 0?d:dc.wideSize,panelId:s,children:a.jsx(H0,{__next40pxDefaultSize:!0,label:m("Wide width"),labelPosition:"top",value:N||"",onChange:Ot=>{E(Ot)},units:A,prefix:a.jsx(Fp,{variant:"icon",children:a.jsx(t0,{icon:v7})})})}),P&&a.jsxs(Rt,{hasValue:oe,label:m("Padding"),onDeselect:Y,isShownByDefault:(p=i.padding)!==null&&p!==void 0?p:dc.padding,className:$({"tools-panel-item-spacing":M}),panelId:s,children:[!M&&a.jsx(s4,{values:U,onChange:ne,label:m("Padding"),sides:X,units:A,allowReset:!1,splitOnAxis:Z,onMouseOver:ee,onMouseOut:B1}),M&&a.jsx(y4,{values:U,onChange:ne,label:m("Padding"),sides:X,units:A,allowReset:!1,onMouseOver:ee,onMouseOut:B1})]}),ie&&a.jsxs(Rt,{hasValue:pe,label:m("Margin"),onDeselect:G,isShownByDefault:(f=i.margin)!==null&&f!==void 0?f:dc.margin,className:$({"tools-panel-item-spacing":M}),panelId:s,children:[!M&&a.jsx(s4,{values:be,onChange:K,inputProps:p1,label:m("Margin"),sides:ye,units:A,allowReset:!1,splitOnAxis:xe,onMouseOver:re,onMouseOut:B1}),M&&a.jsx(y4,{values:be,onChange:K,minimumCustomValue:-1/0,label:m("Margin"),sides:ye,units:A,allowReset:!1,onMouseOver:re,onMouseOut:B1})]}),Me&&a.jsxs(Rt,{hasValue:ve,label:m("Block spacing"),onDeselect:ge,isShownByDefault:(b=i.blockGap)!==null&&b!==void 0?b:dc.blockGap,className:$({"tools-panel-item-spacing":M,"single-column":!M&&!j}),panelId:s,children:[!M&&(j?a.jsx(s4,{label:m("Block spacing"),min:0,onChange:de,units:A,sides:R,values:Q,allowReset:!1,splitOnAxis:j}):a.jsx(H0,{__next40pxDefaultSize:!0,label:m("Block spacing"),min:0,onChange:V,units:A,value:he})),M&&a.jsx(y4,{label:m("Block spacing"),min:0,onChange:de,showSideInLabel:!1,sides:j?R:["top"],values:Q,allowReset:!1})]}),ot&&a.jsx(BTt,{value:Ct,onChange:n0,parentLayout:r?.parentLayout,panelId:s,isShownByDefault:(h=i.childLayout)!==null&&h!==void 0?h:dc.childLayout}),Ne&&a.jsx(Rt,{hasValue:Ke,label:m("Minimum height"),onDeselect:Mt,isShownByDefault:(g=i.minHeight)!==null&&g!==void 0?g:dc.minHeight,panelId:s,children:a.jsx(sRt,{label:m("Minimum height"),value:et,onChange:mt})}),Nt&&a.jsx(UMe,{hasValue:Xe,value:zt,onChange:Ue,panelId:s,isShownByDefault:(z=i.aspectRatio)!==null&&z!==void 0?z:dc.aspectRatio})]})}const cy=[],{CompositeItemV2:FTt,CompositeV2:$Tt}=Fe(L0);function VTt({shadow:e,onShadowChange:t,settings:n}){const o=oge(n);return a.jsx("div",{className:"block-editor-global-styles__shadow-popover-container",children:a.jsxs(Ye,{spacing:4,children:[a.jsx(ec,{level:5,children:m("Drop shadow")}),a.jsx(HTt,{presets:o,activeShadow:e,onSelect:t}),a.jsx("div",{className:"block-editor-global-styles__clear-shadow",children:a.jsx(fe,{__next40pxDefaultSize:!1,variant:"tertiary",onClick:()=>t(void 0),children:m("Clear")})})]})})}function HTt({presets:e,activeShadow:t,onSelect:n}){return e?a.jsx($Tt,{role:"listbox",className:"block-editor-global-styles__shadow__list","aria-label":m("Drop shadows"),children:e.map(({name:o,slug:r,shadow:s})=>a.jsx(UTt,{label:o,isActive:s===t,type:r==="unset"?"unset":"preset",onSelect:()=>n(s===t?void 0:s),shadow:s},r))}):null}function UTt({type:e,label:t,isActive:n,onSelect:o,shadow:r}){return a.jsx(FTt,{role:"option","aria-label":t,"aria-selected":n,className:$("block-editor-global-styles__shadow__item",{"is-active":n}),render:a.jsx(fe,{__next40pxDefaultSize:!1,className:$("block-editor-global-styles__shadow-indicator",{unset:e==="unset"}),onClick:o,label:t,style:{boxShadow:r},showTooltip:!0,children:n&&a.jsx(t0,{icon:no})})})}function XTt({shadow:e,onShadowChange:t,settings:n}){const o={placement:"left-start",offset:36,shift:!0};return a.jsx(B0,{popoverProps:o,className:"block-editor-global-styles__shadow-dropdown",renderToggle:GTt(),renderContent:()=>a.jsx(Ni,{paddingSize:"medium",children:a.jsx(VTt,{shadow:e,onShadowChange:t,settings:n})})})}function GTt(){return({onToggle:e,isOpen:t})=>{const n={onClick:e,className:$({"is-open":t}),"aria-expanded":t};return a.jsx(fe,{__next40pxDefaultSize:!1,...n,children:a.jsxs(Je,{justify:"flex-start",children:[a.jsx(t0,{className:"block-editor-global-styles__toggle-icon",icon:PZe,size:24}),a.jsx(Ht,{children:m("Drop shadow")})]})})}}function oge(e){return O.useMemo(()=>{var t;if(!e?.shadow)return cy;const n=e?.shadow?.defaultPresets,{default:o,theme:r,custom:s}=(t=e?.shadow?.presets)!==null&&t!==void 0?t:{},i={name:m("Unset"),slug:"unset",shadow:"none"},c=[...n&&o||cy,...r||cy,...s||cy];return c.length&&c.unshift(i),c},[e])}function rge(e){return Object.values(FP(e)).some(Boolean)}function FP(e){return{hasBorderColor:sge(e),hasBorderRadius:ige(e),hasBorderStyle:age(e),hasBorderWidth:cge(e),hasShadow:lge(e)}}function sge(e){return e?.border?.color}function ige(e){return e?.border?.radius}function age(e){return e?.border?.style}function cge(e){return e?.border?.width}function lge(e){const t=oge(e);return!!e?.shadow&&t.length>0}function KTt({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r,label:s}){const i=Ad(),c=()=>{const l=e(n);t(l)};return a.jsx(Tr,{label:s,resetAll:c,panelId:o,dropdownMenuProps:i,children:r})}const YTt={radius:!0,color:!0,width:!0,shadow:!0};function uge({as:e=KTt,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:s,name:i,defaultControls:c=YTt}){var l,u,d,p;const f=vd(r),b=O.useCallback(U=>ki({settings:r},"",U),[r]),h=U=>{const Z=f.flatMap(({colors:ne})=>ne).find(({color:ne})=>ne===U);return Z?"var:preset|color|"+Z.slug:U},g=O.useMemo(()=>{if(Ku(o?.border)){const U={...o?.border};return["top","right","bottom","left"].forEach(X=>{U[X]={...U[X],color:b(U[X]?.color)}}),U}return{...o?.border,color:o?.border?.color?b(o?.border?.color):void 0}},[o?.border,b]),z=U=>n({...t,border:U}),y=sge(r),x=age(r),v=cge(r),M=ige(r),A=b(g?.radius),_=U=>z({...g,radius:U}),w=()=>{const U=t?.border?.radius;return typeof U=="object"?Object.entries(U).some(Boolean):!!U},k=lge(r),q=b(o?.shadow),S=(l=r?.shadow?.presets)!==null&&l!==void 0?l:{},C=(u=(d=(p=S.custom)!==null&&p!==void 0?p:S.theme)!==null&&d!==void 0?d:S.default)!==null&&u!==void 0?u:[],T=U=>{const X=C?.find(({shadow:Z})=>Z===U)?.slug;n(Vt(t,["shadow"],X?`var:preset|shadow|${X}`:U||void 0))},W=()=>!!t?.shadow,B=()=>T(void 0),N=()=>{if(w())return z({radius:t?.border?.radius});z(void 0)},E=U=>{const X={...U};Ku(X)?["top","right","bottom","left"].forEach(Z=>{X[Z]&&(X[Z]={...X[Z],color:h(X[Z]?.color)})}):X&&(X.color=h(X.color)),z({radius:g?.radius,...X})},L=O.useCallback(U=>({...U,border:void 0,shadow:void 0}),[]),I=c?.color||c?.width,P=y||x||v||M,H=Tk({blockName:i,hasShadowControl:k,hasBorderControl:P});return a.jsxs(e,{resetAllFilter:L,value:t,onChange:n,panelId:s,label:H,children:[(v||y)&&a.jsx(Rt,{hasValue:()=>H1t(t?.border),label:m("Border"),onDeselect:()=>N(),isShownByDefault:I,panelId:s,children:a.jsx(not,{colors:f,enableAlpha:!0,enableStyle:x,onChange:E,popoverOffset:40,popoverPlacement:"left-start",value:g,__experimentalIsRenderedInSidebar:!0,size:"__unstable-large",hideLabelFromVision:!k,label:m("Border")})}),M&&a.jsx(Rt,{hasValue:w,label:m("Radius"),onDeselect:()=>_(void 0),isShownByDefault:c.radius,panelId:s,children:a.jsx(DCt,{values:A,onChange:U=>{_(U||void 0)}})}),k&&a.jsxs(Rt,{label:m("Shadow"),hasValue:W,onDeselect:B,isShownByDefault:c.shadow,panelId:s,children:[P?a.jsx(z0.VisualLabel,{as:"legend",children:m("Shadow")}):null,a.jsx(Yu,{isBordered:!0,isSeparated:!0,children:a.jsx(XTt,{shadow:q,onShadowChange:T,settings:r})})]})]})}function dge(e){const t=pge(e),n=mge(e),o=fge(e),r=Dl(e),s=hge(e),i=bge(e);return t||n||o||r||s||i}function pge(e){const t=vd(e);return e?.color?.text&&(t?.length>0||e?.color?.custom)}function fge(e){const t=vd(e);return e?.color?.link&&(t?.length>0||e?.color?.custom)}function bge(e){const t=vd(e);return e?.color?.caption&&(t?.length>0||e?.color?.custom)}function Dl(e){const t=vd(e),n=qk(e);return e?.color?.heading&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function hge(e){const t=vd(e),n=qk(e);return e?.color?.button&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function mge(e){const t=vd(e),n=qk(e);return e?.color?.background&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function ZTt({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){const s=Ad(),i=()=>{const c=e(n);t(c)};return a.jsx(Tr,{label:m("Elements"),resetAll:i,panelId:o,hasInnerWrapper:!0,headingLevel:3,className:"color-block-support-panel",__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",dropdownMenuProps:s,children:a.jsx("div",{className:"color-block-support-panel__inner-wrapper",children:r})})}const QTt={text:!0,background:!0,link:!0,heading:!0,button:!0,caption:!0},JTt={placement:"left-start",offset:36,shift:!0},{Tabs:ly}=Fe(L0),eEt=({indicators:e,label:t})=>a.jsxs(Je,{justify:"flex-start",children:[a.jsx(mfe,{isLayered:!1,offset:-8,children:e.map((n,o)=>a.jsx(Q0,{expanded:!1,children:a.jsx(vf,{colorValue:n})},o))}),a.jsx(Ht,{className:"block-editor-panel-color-gradient-settings__color-name",title:t,children:t})]});function vZ({isGradient:e,inheritedValue:t,userValue:n,setValue:o,colorGradientControlSettings:r}){return a.jsx(Tme,{...r,showTitle:!1,enableAlpha:!0,__experimentalIsRenderedInSidebar:!0,colorValue:e?void 0:t,gradientValue:e?t:void 0,onColorChange:e?void 0:o,onGradientChange:e?o:void 0,clearable:t===n,headingLevel:3})}function tEt({label:e,hasValue:t,resetValue:n,isShownByDefault:o,indicators:r,tabs:s,colorGradientControlSettings:i,panelId:c}){var l;const u=s.find(f=>f.userValue!==void 0),{key:d,...p}=(l=s[0])!==null&&l!==void 0?l:{};return a.jsx(Rt,{className:"block-editor-tools-panel-color-gradient-settings__item",hasValue:t,label:e,onDeselect:n,isShownByDefault:o,panelId:c,children:a.jsx(B0,{popoverProps:JTt,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:({onToggle:f,isOpen:b})=>{const h={onClick:f,className:$("block-editor-panel-color-gradient-settings__dropdown",{"is-open":b}),"aria-expanded":b,"aria-label":le(m("Color %s styles"),e)};return a.jsx(fe,{__next40pxDefaultSize:!1,...h,children:a.jsx(eEt,{indicators:r,label:e})})},renderContent:()=>a.jsx(Ni,{paddingSize:"none",children:a.jsxs("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:[s.length===1&&a.jsx(vZ,{...p,colorGradientControlSettings:i},d),s.length>1&&a.jsxs(ly,{defaultTabId:u?.key,children:[a.jsx(ly.TabList,{children:s.map(f=>a.jsx(ly.Tab,{tabId:f.key,children:f.label},f.key))}),s.map(f=>{const{key:b,...h}=f;return a.jsx(ly.TabPanel,{tabId:b,focusable:!1,children:a.jsx(vZ,{...h,colorGradientControlSettings:i},b)},b)})]})]})})})})}function Mge({as:e=ZTt,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:s,defaultControls:i=QTt,children:c}){const l=vd(r),u=qk(r),d=r?.color?.custom,p=r?.color?.customGradient,f=l.length>0||d,b=u.length>0||p,h=ie=>ki({settings:r},"",ie),g=ie=>{const be=l.flatMap(({colors:ye})=>ye).find(({color:ye})=>ye===ie);return be?"var:preset|color|"+be.slug:ie},z=ie=>{const be=u.flatMap(({gradients:ye})=>ye).find(({gradient:ye})=>ye===ie);return be?"var:preset|gradient|"+be.slug:ie},y=mge(r),x=h(o?.color?.background),v=h(t?.color?.background),M=h(o?.color?.gradient),A=h(t?.color?.gradient),_=()=>!!v||!!A,w=ie=>{const se=Vt(t,["color","background"],g(ie));se.color.gradient=void 0,n(se)},k=ie=>{const se=Vt(t,["color","gradient"],z(ie));se.color.background=void 0,n(se)},q=()=>{const ie=Vt(t,["color","background"],void 0);ie.color.gradient=void 0,n(ie)},S=fge(r),C=h(o?.elements?.link?.color?.text),T=h(t?.elements?.link?.color?.text),W=ie=>{n(Vt(t,["elements","link","color","text"],g(ie)))},B=h(o?.elements?.link?.[":hover"]?.color?.text),N=h(t?.elements?.link?.[":hover"]?.color?.text),E=ie=>{n(Vt(t,["elements","link",":hover","color","text"],g(ie)))},L=()=>!!T||!!N,I=()=>{let ie=Vt(t,["elements","link",":hover","color","text"],void 0);ie=Vt(ie,["elements","link","color","text"],void 0),n(ie)},P=pge(r),H=h(o?.color?.text),U=h(t?.color?.text),X=()=>!!U,Z=ie=>{let se=Vt(t,["color","text"],g(ie));H===C&&(se=Vt(se,["elements","link","color","text"],g(ie))),n(se)},ne=()=>Z(void 0),oe=[{name:"caption",label:m("Captions"),showPanel:bge(r)},{name:"button",label:m("Button"),showPanel:hge(r)},{name:"heading",label:m("Heading"),showPanel:Dl(r)},{name:"h1",label:m("H1"),showPanel:Dl(r)},{name:"h2",label:m("H2"),showPanel:Dl(r)},{name:"h3",label:m("H3"),showPanel:Dl(r)},{name:"h4",label:m("H4"),showPanel:Dl(r)},{name:"h5",label:m("H5"),showPanel:Dl(r)},{name:"h6",label:m("H6"),showPanel:Dl(r)}],Y=O.useCallback(ie=>({...ie,color:void 0,elements:{...ie?.elements,link:{...ie?.elements?.link,color:void 0,":hover":{color:void 0}},...oe.reduce((se,be)=>({...se,[be.name]:{...ie?.elements?.[be.name],color:void 0}}),{})}}),[]),ee=[P&&{key:"text",label:m("Text"),hasValue:X,resetValue:ne,isShownByDefault:i.text,indicators:[H],tabs:[{key:"text",label:m("Text"),inheritedValue:H,setValue:Z,userValue:U}]},y&&{key:"background",label:m("Background"),hasValue:_,resetValue:q,isShownByDefault:i.background,indicators:[M??x],tabs:[f&&{key:"background",label:m("Color"),inheritedValue:x,setValue:w,userValue:v},b&&{key:"gradient",label:m("Gradient"),inheritedValue:M,setValue:k,userValue:A,isGradient:!0}].filter(Boolean)},S&&{key:"link",label:m("Link"),hasValue:L,resetValue:I,isShownByDefault:i.link,indicators:[C,B],tabs:[{key:"link",label:m("Default"),inheritedValue:C,setValue:W,userValue:T},{key:"hover",label:m("Hover"),inheritedValue:B,setValue:E,userValue:N}]}].filter(Boolean);return oe.forEach(({name:ie,label:se,showPanel:be})=>{if(!be)return;const ye=h(o?.elements?.[ie]?.color?.background),xe=h(o?.elements?.[ie]?.color?.gradient),K=h(o?.elements?.[ie]?.color?.text),pe=h(t?.elements?.[ie]?.color?.background),G=h(t?.elements?.[ie]?.color?.gradient),re=h(t?.elements?.[ie]?.color?.text),Me=()=>!!(re||pe||G),he=()=>{const ge=Vt(t,["elements",ie,"color","background"],void 0);ge.elements[ie].color.gradient=void 0,ge.elements[ie].color.text=void 0,n(ge)},Q=ge=>{n(Vt(t,["elements",ie,"color","text"],g(ge)))},R=ge=>{const ve=Vt(t,["elements",ie,"color","background"],g(ge));ve.elements[ie].color.gradient=void 0,n(ve)},j=ge=>{const ve=Vt(t,["elements",ie,"color","gradient"],z(ge));ve.elements[ie].color.background=void 0,n(ve)},V=!0,de=ie!=="caption";ee.push({key:ie,label:se,hasValue:Me,resetValue:he,isShownByDefault:i[ie],indicators:de?[K,xe??ye]:[K],tabs:[f&&V&&{key:"text",label:m("Text"),inheritedValue:K,setValue:Q,userValue:re},f&&de&&{key:"background",label:m("Background"),inheritedValue:ye,setValue:R,userValue:pe},b&&de&&{key:"gradient",label:m("Gradient"),inheritedValue:xe,setValue:j,userValue:G,isGradient:!0}].filter(Boolean)})}),a.jsxs(e,{resetAllFilter:Y,value:t,onChange:n,panelId:s,children:[ee.map(ie=>{const{key:se,...be}=ie;return a.jsx(tEt,{...be,colorGradientControlSettings:{colors:l,disableCustomColors:!d,gradients:u,disableCustomGradients:!p},panelId:s},se)}),c]})}const uy=[];function xZ(e,{presetSetting:t,defaultSetting:n}){const o=!e?.color?.[n],r=e?.color?.[t]?.custom||uy,s=e?.color?.[t]?.theme||uy,i=e?.color?.[t]?.default||uy;return O.useMemo(()=>[...r,...s,...o?uy:i],[o,r,s,i])}function nEt(e){return gge(e)}function gge(e){return e.color.customDuotone||e.color.defaultDuotone||e.color.duotone.length>0}function oEt({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){const s=Ad(),i=()=>{const c=e(n);t(c)};return a.jsx(Tr,{label:Oe("Filters","Name for applying graphical effects"),resetAll:i,panelId:o,dropdownMenuProps:s,children:r})}const rEt={duotone:!0},sEt={placement:"left-start",offset:36,shift:!0,className:"block-editor-duotone-control__popover",headerTitle:m("Duotone")},iEt=({indicator:e,label:t})=>a.jsxs(Je,{justify:"flex-start",children:[a.jsx(mfe,{isLayered:!1,offset:-8,children:a.jsx(Q0,{expanded:!1,children:e==="unset"||!e?a.jsx(vf,{className:"block-editor-duotone-control__unset-indicator"}):a.jsx(Xpe,{values:e})})}),a.jsx(Ht,{title:t,children:t})]});function zge({as:e=oEt,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:s,defaultControls:i=rEt}){const c=z=>ki({settings:r},"",z),l=gge(r),u=xZ(r,{presetSetting:"duotone",defaultSetting:"defaultDuotone"}),d=xZ(r,{presetSetting:"palette",defaultSetting:"defaultPalette"}),p=c(o?.filter?.duotone),f=z=>{const y=u.find(({colors:v})=>v===z),x=y?`var:preset|duotone|${y.slug}`:z;n(Vt(t,["filter","duotone"],x))},b=()=>!!t?.filter?.duotone,h=()=>f(void 0),g=O.useCallback(z=>({...z,filter:{...z.filter,duotone:void 0}}),[]);return a.jsx(e,{resetAllFilter:g,value:t,onChange:n,panelId:s,children:l&&a.jsx(Rt,{label:m("Duotone"),hasValue:b,onDeselect:h,isShownByDefault:i.duotone,panelId:s,children:a.jsx(B0,{popoverProps:sEt,className:"block-editor-global-styles-filters-panel__dropdown",renderToggle:({onToggle:z,isOpen:y})=>{const x={onClick:z,className:$({"is-open":y}),"aria-expanded":y};return a.jsx(Yu,{isBordered:!0,isSeparated:!0,children:a.jsx(fe,{__next40pxDefaultSize:!1,...x,children:a.jsx(iEt,{indicator:p,label:m("Duotone")})})})},renderContent:()=>a.jsx(Ni,{paddingSize:"small",children:a.jsxs(Yt,{label:m("Duotone"),children:[a.jsx("p",{children:m("Create a two-tone color effect without losing your original image.")}),a.jsx(Upe,{colorPalette:d,duotonePalette:u,disableCustomColors:!0,disableCustomDuotone:!0,value:p,onChange:f})]})})})})})}function aEt(e,t,n){return e==="core/image"&&n?.lightbox?.allowEditing||!!t?.lightbox}function cEt({onChange:e,value:t,inheritedValue:n,panelId:o}){const r=Ad(),s=()=>{e(void 0)},i=l=>{e({enabled:l})};let c=!1;return n?.lightbox?.enabled&&(c=n.lightbox.enabled),a.jsx(a.Fragment,{children:a.jsx(Tr,{label:Oe("Settings","Image settings"),resetAll:s,panelId:o,dropdownMenuProps:r,children:a.jsx(Rt,{hasValue:()=>!!t?.lightbox,label:m("Expand on click"),onDeselect:s,isShownByDefault:!0,panelId:o,children:a.jsx(Be,{__nextHasNoMarginBottom:!0,label:m("Expand on click"),checked:c,onChange:i})})})})}function lEt({value:e,onChange:t,inheritedValue:n=e}){const[o,r]=O.useState(null),s=n?.css;function i(l){if(t({...e,css:l}),o){const[u]=_5([{css:l}],".for-validation-only");u&&r(null)}}function c(l){if(!l?.target?.value){r(null);return}const[u]=_5([{css:l.target.value}],".for-validation-only");r(u===null?m("There is an error with your CSS structure."):null)}return a.jsxs(Ye,{spacing:3,children:[o&&a.jsx(os,{status:"error",onRemove:()=>r(null),children:o}),a.jsx(Pi,{label:m("Additional CSS"),__nextHasNoMarginBottom:!0,value:s,onChange:l=>i(l),onBlur:c,className:"block-editor-global-styles-advanced-panel__custom-css-input",spellCheck:!1})]})}const dy=new Map,PT=[],YS={caption:m("Caption"),link:m("Link"),button:m("Button"),heading:m("Heading"),h1:m("H1"),h2:m("H2"),h3:m("H3"),h4:m("H4"),h5:m("H5"),h6:m("H6"),"settings.color":m("Color"),"settings.typography":m("Typography"),"styles.color":m("Colors"),"styles.spacing":m("Spacing"),"styles.background":m("Background"),"styles.typography":m("Typography")},uEt=fs(()=>nr().reduce((e,{name:t,title:n})=>(e[t]=n,e),{})),py=e=>e!==null&&typeof e=="object";function dEt(e){if(YS[e])return YS[e];const t=e.split(".");if(t?.[0]==="blocks")return uEt()?.[t[1]]||t[1];if(t?.[0]==="elements")return YS[t[1]]||t[1]}function Oge(e,t,n=""){if(!py(e)&&!py(t))return e!==t?n.split(".").slice(0,2).join("."):void 0;e=py(e)?e:{},t=py(t)?t:{};const o=new Set([...Object.keys(e),...Object.keys(t)]);let r=[];for(const s of o){const i=n?n+"."+s:s,c=Oge(e[s],t[s],i);c&&(r=r.concat(c))}return r}function pEt(e,t){const n=JSON.stringify({next:e,previous:t});if(dy.has(n))return dy.get(n);const o=Oge({styles:{background:e?.styles?.background,color:e?.styles?.color,typography:e?.styles?.typography,spacing:e?.styles?.spacing},blocks:e?.styles?.blocks,elements:e?.styles?.elements,settings:e?.settings},{styles:{background:t?.styles?.background,color:t?.styles?.color,typography:t?.styles?.typography,spacing:t?.styles?.spacing},blocks:t?.styles?.blocks,elements:t?.styles?.elements,settings:t?.settings});if(!o.length)return dy.set(n,PT),PT;const r=[...new Set(o)].reduce((s,i)=>{const c=dEt(i);return c&&s.push([i.split(".")[0],c]),s},[]);return dy.set(n,r),r}function fEt(e,t,n={}){let o=pEt(e,t);const r=o.length,{maxResults:s}=n;return r?(s&&r>s&&(o=o.slice(0,s)),Object.entries(o.reduce((i,c)=>{const l=i[c[0]]||[];return l.includes(c[1])||(i[c[0]]=[...l,c[1]]),i},{})).map(([i,c])=>{const l=c.length,u=c.join(m(", "));switch(i){case"blocks":return le(a0("%s block.","%s blocks.",l),u);case"elements":return le(a0("%s element.","%s elements.",l),u);case"settings":return le(m("%s settings."),u);case"styles":return le(m("%s styles."),u);default:return le(m("%s."),u)}})):PT}const bEt=Object.freeze(Object.defineProperty({__proto__:null,AdvancedPanel:lEt,BackgroundPanel:SMe,BorderPanel:uge,ColorPanel:Mge,DimensionsPanel:nge,FiltersPanel:zge,GlobalStylesContext:em,ImageSettingsPanel:cEt,TypographyPanel:HMe,areGlobalStyleConfigsEqual:Fkt,getBlockCSSSelector:ku,getBlockSelectors:Ck,getGlobalStylesChanges:fEt,getLayoutStyles:RMe,toStyles:Sk,useGlobalSetting:_Me,useGlobalStyle:KWt,useGlobalStylesOutput:_Tt,useGlobalStylesOutputWithConfig:WMe,useGlobalStylesReset:GWt,useHasBackgroundPanel:kMe,useHasBorderPanel:rge,useHasBorderPanelControls:FP,useHasColorPanel:dge,useHasDimensionsPanel:XMe,useHasFiltersPanel:nEt,useHasImageSettingsPanel:aEt,useHasTypographyPanel:EMe,useSettingsForBlockElement:wMe},Symbol.toStringTag,{value:"Module"})),tm="__experimentalBorder",T5="shadow",_Z=(e,t,n)=>{let o;return e.some(r=>r.colors.some(s=>s[t]===n?(o=s,!0):!1)),o},ab=({colors:e,namedColor:t,customColor:n})=>{if(t){const r=_Z(e,"slug",t);if(r)return r}if(!n)return{color:void 0};const o=_Z(e,"color",n);return o||{color:n}};function fy(e){const t=/var:preset\|color\|(.+)/.exec(e);return t&&t[1]?t[1]:null}function Age(e){if(Ku(e?.border))return{style:e,borderColor:void 0};const t=e?.border?.color,n=t?.startsWith("var:preset|color|")?t.substring(17):void 0,o={...e};return o.border={...o.border,color:n?void 0:t},{style:ni(o),borderColor:n}}function yge(e){return Ku(e.style?.border)?e.style:{...e.style,border:{...e.style?.border,color:e.borderColor?"var:preset|color|"+e.borderColor:e.style?.border?.color}}}function hEt({label:e,children:t,resetAllFilter:n}){const o=O.useCallback(r=>{const s=yge(r),i=n(s);return{...r,...Age(i)}},[n]);return a.jsx(Te,{group:"border",resetAllFilter:o,label:e,children:t})}function mEt({clientId:e,name:t,setAttributes:n,settings:o}){const r=rge(o);function s(p){const{style:f,borderColor:b}=p(F).getBlockAttributes(e)||{};return{style:f,borderColor:b}}const{style:i,borderColor:c}=D(s,[e]),l=O.useMemo(()=>yge({style:i,borderColor:c}),[i,c]),u=p=>{n(Age(p))};if(!r)return null;const d={...Zt(t,[tm,"__experimentalDefaultControls"]),...Zt(t,[T5,"__experimentalDefaultControls"])};return a.jsx(uge,{as:hEt,panelId:e,settings:o,value:l,onChange:u,defaultControls:d})}function Wk(e,t="any"){const n=Zt(e,tm);return n===!0?!0:t==="any"?!!(n?.color||n?.radius||n?.width||n?.style):!!n?.[t]}function Tk({blockName:e,hasBorderControl:t,hasShadowControl:n}={}){const o=pO(e),r=FP(o);return!t&&!n&&e&&(t=r?.hasBorderColor||r?.hasBorderStyle||r?.hasBorderWidth||r?.hasBorderRadius,n=r?.hasShadow),m(t&&n?"Border & Shadow":n?"Shadow":"Border")}function MEt(e){return!Wk(e,"color")||e.attributes.borderColor?e:{...e,attributes:{...e.attributes,borderColor:{type:"string"}}}}function vge(e,t,n){if(!Wk(t,"color")||Z1(t,tm,"color"))return e;const o=xge(n),r=$(e.className,o);return e.className=r||void 0,e}function xge(e){const{borderColor:t,style:n}=e,o=lt("border-color",t);return $({"has-border-color":t||n?.border?.color,[o]:!!o})}function gEt({name:e,borderColor:t,style:n}){const{colors:o}=Sf();if(!Wk(e,"color")||Z1(e,tm,"color"))return{};const{color:r}=ab({colors:o,namedColor:t}),{color:s}=ab({colors:o,namedColor:fy(n?.border?.top?.color)}),{color:i}=ab({colors:o,namedColor:fy(n?.border?.right?.color)}),{color:c}=ab({colors:o,namedColor:fy(n?.border?.bottom?.color)}),{color:l}=ab({colors:o,namedColor:fy(n?.border?.left?.color)});return vge({style:ni({borderTopColor:s||r,borderRightColor:i||r,borderBottomColor:c||r,borderLeftColor:l||r})||{}},e,{borderColor:t,style:n})}const _ge={useBlockProps:gEt,addSaveProps:vge,attributeKeys:["borderColor","style"],hasSupport(e){return Wk(e,"color")}};r0("blocks.registerBlockType","core/border/addAttributes",MEt);const zEt=({blockName:e,clientId:t,hasBlockStyles:n})=>{const o=Tk({blockName:e});return a.jsxs(a.Fragment,{children:[n&&a.jsx("div",{children:a.jsx(De,{title:m("Styles"),children:a.jsx(Ame,{clientId:t})})}),a.jsx(Te.Slot,{group:"color",label:m("Color"),className:"color-block-support-panel__inner-wrapper"}),a.jsx(Te.Slot,{group:"background",label:m("Background image")}),a.jsx(Te.Slot,{group:"filter"}),a.jsx(Te.Slot,{group:"typography",label:m("Typography")}),a.jsx(Te.Slot,{group:"dimensions",label:m("Dimensions")}),a.jsx(Te.Slot,{group:"border",label:o}),a.jsx(Te.Slot,{group:"styles"})]})},OEt=["core/navigation"],wge=e=>!OEt.includes(e),{Tabs:Kf}=Fe(L0);function kge({blockName:e,clientId:t,hasBlockStyles:n,tabs:o}){const r=D(i=>i(Qe).get("core","showIconLabels"),[]),s=wge(e)?void 0:NT.name;return a.jsx("div",{className:"block-editor-block-inspector__tabs",children:a.jsxs(Kf,{defaultTabId:s,children:[a.jsx(Kf.TabList,{children:o.map(i=>a.jsx(Kf.Tab,{tabId:i.name,render:a.jsx(fe,{__next40pxDefaultSize:!1,icon:r?void 0:i.icon,label:r?void 0:i.title,className:i.className,children:r&&i.title})},i.name))}),a.jsx(Kf.TabPanel,{tabId:AMe.name,focusable:!1,children:a.jsx(HWt,{showAdvancedControls:!!e})}),a.jsx(Kf.TabPanel,{tabId:yMe.name,focusable:!1,children:a.jsx(zEt,{blockName:e,clientId:t,hasBlockStyles:n})}),a.jsx(Kf.TabPanel,{tabId:NT.name,focusable:!1,children:a.jsx(Te.Slot,{group:"list"})})]},t)})}const AEt=[];function yEt(e,t={}){return t[e]!==void 0?t[e]:t.default!==void 0?t.default:!0}function qge(e){const t=[],{bindings:n,border:o,color:r,default:s,dimensions:i,list:c,position:l,styles:u,typography:d,effects:p}=bk,f=wge(e),b=j1(c.Slot.__unstableName),h=!f&&!!b&&b.length,z=[...j1(o.Slot.__unstableName)||[],...j1(r.Slot.__unstableName)||[],...j1(i.Slot.__unstableName)||[],...j1(u.Slot.__unstableName)||[],...j1(d.Slot.__unstableName)||[],...j1(p.Slot.__unstableName)||[]].length,y=[...j1(mk.slotName)||[],...j1(n.Slot.__unstableName)||[]],x=[...j1(s.Slot.__unstableName)||[],...j1(l.Slot.__unstableName)||[],...h&&z>1?y:[]];h&&t.push(NT),x.length&&t.push(AMe),z&&t.push(yMe);const v=D(A=>A(F).getSettings().blockInspectorTabs,[]);return yEt(e,v)?t:AEt}function vEt(e){return D(t=>{if(e){const n=t(F).getSettings().blockInspectorAnimation,o=n?.animationParent,{getSelectedBlockClientId:r,getBlockParentsByBlockName:s}=t(F),i=r();return!s(i,o,!0)[0]&&e.name!==o?null:n?.[e.name]}return null},[e])}const{createPrivateSlotFill:xEt}=Fe(L0),{Fill:_Et,Slot:wEt}=xEt("BlockInformation"),Ek=e=>eo()[n3]?a.jsx(_Et,{...e}):null;Ek.Slot=e=>a.jsx(wEt,{...e});function Sge({clientIds:e,onSelect:t}){return e.length?a.jsx(Ye,{spacing:1,children:e.map(n=>a.jsx(kEt,{onSelect:t,clientId:n},n))}):null}function kEt({clientId:e,onSelect:t}){const n=gs(e),o=ed({clientId:e,context:"list-view"}),{isSelected:r}=D(i=>{const{isBlockSelected:c,hasSelectedInnerBlock:l}=i(F);return{isSelected:c(e)||l(e,!0)}},[e]),{selectBlock:s}=ae(F);return a.jsx(fe,{__next40pxDefaultSize:!1,isPressed:r,onClick:async()=>{await s(e),t&&t(e)},children:a.jsxs(Q0,{children:[a.jsx(Ht,{children:a.jsx(b0,{icon:n?.icon})}),a.jsx(Vi,{style:{textAlign:"left"},children:a.jsx(Ho,{children:o})})]})})}function Cge({clientId:e}){return a.jsx(De,{title:m("Styles"),children:a.jsx(Ame,{clientId:e})})}function qEt({topLevelLockedBlock:e}){const t=D(r=>{const{getClientIdsOfDescendants:s,getBlockName:i,getBlockEditingMode:c}=r(F);return s(e).filter(l=>i(l)!=="core/list-item"&&c(l)==="contentOnly")},[e]),n=D(r=>{const{getBlockName:s}=r(F),{getBlockStyles:i}=r($e);return!!i(s(e))?.length},[e]),o=gs(e);return a.jsxs("div",{className:"block-editor-block-inspector",children:[a.jsx(sP,{...o,className:o.isSynced&&"is-synced"}),a.jsx(vme,{blockClientId:e}),a.jsx(Ek.Slot,{}),n&&a.jsx(Cge,{clientId:e}),t.length>0&&a.jsx(De,{title:m("Content"),children:a.jsx(Sge,{clientIds:t})})]})}const Rge=({showNoBlockSelectedMessage:e=!0})=>{const{count:t,selectedBlockName:n,selectedBlockClientId:o,blockType:r,topLevelLockedBlock:s}=D(p=>{const{getSelectedBlockClientId:f,getSelectedBlockCount:b,getBlockName:h,getContentLockingParent:g,getTemplateLock:z}=Fe(p(F)),y=f(),x=y&&h(y),v=x&&Dt(x);return{count:b(),selectedBlockClientId:y,selectedBlockName:x,blockType:v,topLevelLockedBlock:g(y)||(z(y)==="contentOnly"||x==="core/block"?y:void 0)}},[]),i=qge(r?.name),c=i?.length>1,l=vEt(r),u=Tk({blockName:n});if(t>1)return a.jsxs("div",{className:"block-editor-block-inspector",children:[a.jsx($Wt,{}),c?a.jsx(kge,{tabs:i}):a.jsxs(a.Fragment,{children:[a.jsx(Te.Slot,{}),a.jsx(Te.Slot,{group:"color",label:m("Color"),className:"color-block-support-panel__inner-wrapper"}),a.jsx(Te.Slot,{group:"background",label:m("Background image")}),a.jsx(Te.Slot,{group:"typography",label:m("Typography")}),a.jsx(Te.Slot,{group:"dimensions",label:m("Dimensions")}),a.jsx(Te.Slot,{group:"border",label:u}),a.jsx(Te.Slot,{group:"styles"})]})]});const d=n===Zz();return!r||!o||d?e?a.jsx("span",{className:"block-editor-block-inspector__no-blocks",children:m("No block selected.")}):null:s?a.jsx(qEt,{topLevelLockedBlock:s}):a.jsx(SEt,{animate:l,wrapper:p=>a.jsx(CEt,{blockInspectorAnimationSettings:l,selectedBlockClientId:o,children:p}),children:a.jsx(REt,{clientId:o,blockName:r.name})})},SEt=({animate:e,wrapper:t,children:n})=>e?t(n):n,CEt=({blockInspectorAnimationSettings:e,selectedBlockClientId:t,children:n})=>{const o=e&&e.enterDirection==="leftToRight"?-50:50;return a.jsx(Hn.div,{animate:{x:0,opacity:1,transition:{ease:"easeInOut",duration:.14}},initial:{x:o,opacity:0},children:n},t)},REt=({clientId:e,blockName:t})=>{const n=qge(t),o=n?.length>1,r=D(c=>{const{getBlockStyles:l}=c($e),u=l(t);return u&&u.length>0},[t]),s=gs(e),i=Tk({blockName:t});return a.jsxs("div",{className:"block-editor-block-inspector",children:[a.jsx(sP,{...s,className:s.isSynced&&"is-synced"}),a.jsx(vme,{blockClientId:e}),a.jsx(Ek.Slot,{}),o&&a.jsx(kge,{hasBlockStyles:r,clientId:e,blockName:t,tabs:n}),!o&&a.jsxs(a.Fragment,{children:[r&&a.jsx(Cge,{clientId:e}),a.jsx(Te.Slot,{}),a.jsx(Te.Slot,{group:"list"}),a.jsx(Te.Slot,{group:"color",label:m("Color"),className:"color-block-support-panel__inner-wrapper"}),a.jsx(Te.Slot,{group:"background",label:m("Background image")}),a.jsx(Te.Slot,{group:"typography",label:m("Typography")}),a.jsx(Te.Slot,{group:"dimensions",label:m("Dimensions")}),a.jsx(Te.Slot,{group:"border",label:i}),a.jsx(Te.Slot,{group:"styles"}),a.jsx(xMe,{}),a.jsx(Te.Slot,{group:"bindings"}),a.jsx("div",{children:a.jsx(vMe,{})})]}),a.jsx(EWt,{},"back")]})},WEt=()=>{};function TEt({rootClientId:e,clientId:t,isAppender:n,showInserterHelpPanel:o,showMostUsedBlocks:r=!1,__experimentalInsertionIndex:s,__experimentalInitialTab:i,__experimentalInitialCategory:c,__experimentalFilterValue:l,onPatternCategorySelection:u,onSelect:d=WEt,shouldFocusBlock:p=!1,onClose:f},b){const{destinationRootClientId:h}=D(g=>{const{getBlockRootClientId:z}=g(F);return{destinationRootClientId:e||z(t)||void 0}},[t,e]);return a.jsx(Ohe,{onSelect:d,rootClientId:h,clientId:t,isAppender:n,showInserterHelpPanel:o,showMostUsedBlocks:r,__experimentalInsertionIndex:s,__experimentalFilterValue:l,onPatternCategorySelection:u,__experimentalInitialTab:i,__experimentalInitialCategory:c,shouldFocusBlock:p,ref:b,onClose:f})}const Wge=O.forwardRef(TEt);function EEt(e,t){return a.jsx(Wge,{...e,onPatternCategorySelection:void 0,ref:t})}O.forwardRef(EEt);window.navigator.userAgent.indexOf("Trident");const BEt=new Set([xi,Do,Ns,Ls]),NEt=.75;function LEt(){const e=D(t=>t(F).hasSelectedBlock(),[]);return Et(t=>{if(!e)return;const{ownerDocument:n}=t,{defaultView:o}=n;let r,s,i;function c(){r||(r=o.requestAnimationFrame(()=>{f(),r=null}))}function l(g){s&&o.cancelAnimationFrame(s),s=o.requestAnimationFrame(()=>{u(g),s=null})}function u({keyCode:g}){if(!b())return;const z=JR(o);if(!z)return;if(!i){i=z;return}if(BEt.has(g)){i=z;return}const y=z.top-i.top;if(y===0)return;const x=Sr(t);if(!x)return;const v=x===n.body||x===n.documentElement,M=v?o.scrollY:x.scrollTop,A=v?0:x.getBoundingClientRect().top,_=v?i.top/o.innerHeight:(i.top-A)/(o.innerHeight-A);if(M===0&&_A+w||i.top{o.removeEventListener("scroll",c,!0),o.removeEventListener("resize",c,!0),t.removeEventListener("keydown",l),t.removeEventListener("keyup",u),t.removeEventListener("mousedown",d),t.removeEventListener("touchstart",d),n.removeEventListener("selectionchange",p),o.cancelAnimationFrame(r),o.cancelAnimationFrame(s)}},[e])}const IT=O.createContext({});function jEt(e,t,n){const o={...e,[t]:e[t]?new Set(e[t]):new Set};return o[t].add(n),o}function uO({children:e,uniqueId:t,blockName:n=""}){const o=O.useContext(IT),{name:r}=eo();n=n||r;const s=O.useMemo(()=>jEt(o,n,t),[o,n,t]);return a.jsx(IT.Provider,{value:s,children:e})}function Bk(e,t=""){const n=O.useContext(IT),{name:o}=eo();return t=t||o,!!n[t]?.has(e)}function Os({title:e,help:t,actions:n=[],onClose:o}){return a.jsxs(Ye,{className:"block-editor-inspector-popover-header",spacing:4,children:[a.jsxs(Je,{alignment:"center",children:[a.jsx(ec,{className:"block-editor-inspector-popover-header__heading",level:2,size:13,children:e}),a.jsx(or,{}),n.map(({label:r,icon:s,onClick:i})=>a.jsx(fe,{__next40pxDefaultSize:!1,className:"block-editor-inspector-popover-header__action",label:r,icon:s,variant:!s&&"tertiary",onClick:i,children:!s&&r},r)),o&&a.jsx(fe,{__next40pxDefaultSize:!1,className:"block-editor-inspector-popover-header__action",label:m("Close"),icon:zl,onClick:o})]}),t&&a.jsx(l0,{children:t})]})}function PEt({onClose:e,onChange:t,showPopoverHeaderActions:n,isCompact:o,currentDate:r,...s},i){const c={startOfWeek:vl().l10n.startOfWeek,onChange:t,currentDate:o?void 0:r,currentTime:o?r:void 0,...s},l=o?F3:dpt;return a.jsxs("div",{ref:i,className:"block-editor-publish-date-time-picker",children:[a.jsx(Os,{title:m("Publish"),actions:n?[{label:m("Now"),onClick:()=>t?.(null)}]:void 0,onClose:e}),a.jsx(l,{...c})]})}const Tge=O.forwardRef(PEt);function IEt(e,t){return a.jsx(Tge,{...e,showPopoverHeaderActions:!0,isCompact:!1,ref:t})}const DEt=O.forwardRef(IEt);function oo(e){const t=eo(),{clientId:n=""}=t,{setBlockEditingMode:o,unsetBlockEditingMode:r}=ae(F),s=D(i=>n?null:i(F).getBlockEditingMode(),[n]);return O.useEffect(()=>(e&&o(n,e),()=>{e&&r(n)}),[n,e,o,r]),n?t[Gre]:s}const ni=e=>{if(e===null||typeof e!="object"||Array.isArray(e))return e;const t=Object.entries(e).map(([n,o])=>[n,ni(o)]).filter(([,n])=>n!==void 0);return t.length?Object.fromEntries(t):void 0};function Ege(e,t,n,o,r,s){if(Object.values(e??{}).every(l=>!l)||s.length===1&&n.innerBlocks.length===o.length)return n;let i=o[0]?.attributes;if(s.length>1&&o.length>1)if(o[r])i=o[r]?.attributes;else return n;let c=n;return Object.entries(e).forEach(([l,u])=>{u&&t[l].forEach(d=>{const p=R0(i,d);p&&(c={...c,attributes:Vt(c.attributes,d,p)})})}),c}function Z1(e,t,n){const r=Zt(e,t)?.__experimentalSkipSerialization;return Array.isArray(r)?r.includes(n):r}const pc=new WeakMap;function dO({id:e,css:t}){return qz({id:e,css:t})}function qz({id:e,css:t,assets:n,__unstableType:o,variation:r,clientId:s}={}){const{setStyleOverride:i,deleteStyleOverride:c}=Fe(ae(F)),l=h0(),u=O.useId();O.useEffect(()=>{if(!t&&!n)return;const d=e||u,p={id:e,css:t,assets:n,__unstableType:o,variation:r,clientId:s};return pc.get(l)||pc.set(l,[]),pc.get(l).push([d,p]),window.queueMicrotask(()=>{pc.get(l)?.length&&l.batch(()=>{pc.get(l).forEach(f=>{i(...f)}),pc.set(l,[])})}),()=>{pc.get(l)?.find(([b])=>b===d)?pc.set(l,pc.get(l).filter(([b])=>b!==d)):c(d)}},[e,t,s,n,o,u,i,c,l])}function pO(e,t){const[n,o,r,s,i,c,l,u,d,p,f,b,h,g,z,y,x,v,M,A,_,w,k,q,S,C,T,W,B,N,E,L,I,P,H,U,X,Z,ne,oe,Y,ee,ie,se,be,ye,xe,K,pe,G,re,Me,he,Q,R,j]=O0("background.backgroundImage","background.backgroundSize","typography.fontFamilies.custom","typography.fontFamilies.default","typography.fontFamilies.theme","typography.defaultFontSizes","typography.fontSizes.custom","typography.fontSizes.default","typography.fontSizes.theme","typography.customFontSize","typography.fontStyle","typography.fontWeight","typography.lineHeight","typography.textAlign","typography.textColumns","typography.textDecoration","typography.writingMode","typography.textTransform","typography.letterSpacing","spacing.padding","spacing.margin","spacing.blockGap","spacing.defaultSpacingSizes","spacing.customSpacingSize","spacing.spacingSizes.custom","spacing.spacingSizes.default","spacing.spacingSizes.theme","spacing.units","dimensions.aspectRatio","dimensions.minHeight","layout","border.color","border.radius","border.style","border.width","color.custom","color.palette.custom","color.customDuotone","color.palette.theme","color.palette.default","color.defaultPalette","color.defaultDuotone","color.duotone.custom","color.duotone.theme","color.duotone.default","color.gradients.custom","color.gradients.theme","color.gradients.default","color.defaultGradients","color.customGradient","color.background","color.link","color.text","color.heading","color.button","shadow"),V=O.useMemo(()=>({background:{backgroundImage:n,backgroundSize:o},color:{palette:{custom:X,theme:ne,default:oe},gradients:{custom:ye,theme:xe,default:K},duotone:{custom:ie,theme:se,default:be},defaultGradients:pe,defaultPalette:Y,defaultDuotone:ee,custom:U,customGradient:G,customDuotone:Z,background:re,link:Me,heading:Q,button:R,text:he},typography:{fontFamilies:{custom:r,default:s,theme:i},fontSizes:{custom:l,default:u,theme:d},customFontSize:p,defaultFontSizes:c,fontStyle:f,fontWeight:b,lineHeight:h,textAlign:g,textColumns:z,textDecoration:y,textTransform:v,letterSpacing:M,writingMode:x},spacing:{spacingSizes:{custom:S,default:C,theme:T},customSpacingSize:q,defaultSpacingSizes:k,padding:A,margin:_,blockGap:w,units:W},border:{color:L,radius:I,style:P,width:H},dimensions:{aspectRatio:B,minHeight:N},layout:E,parentLayout:t,shadow:j}),[n,o,r,s,i,c,l,u,d,p,f,b,h,g,z,y,v,M,x,A,_,w,k,q,S,C,T,W,B,N,E,t,L,I,P,H,U,X,Z,ne,oe,Y,ee,ie,se,be,ye,xe,K,pe,G,re,Me,he,Q,R,j]);return wMe(V,e)}function FEt(e){e=e.map(n=>({...n,Edit:O.memo(n.edit)}));const t=Sn(n=>o=>{const r=eo();return[...e.map((s,i)=>{const{Edit:c,hasSupport:l,attributeKeys:u=[],shareWithChildBlocks:d}=s;if(!(r[n3]||r[RN]&&d)||!l(o.name))return null;const f={};for(const b of u)o.attributes[b]&&(f[b]=o.attributes[b]);return a.jsx(c,{name:o.name,isSelected:o.isSelected,clientId:o.clientId,setAttributes:o.setAttributes,__unstableParentLayout:o.__unstableParentLayout,...f},i)}),a.jsx(n,{...o},"edit")]},"withBlockEditHooks");r0("editor.BlockEdit","core/editor/hooks",t)}function $Et({index:e,useBlockProps:t,setAllWrapperProps:n,...o}){const r=t(o),s=i=>n(c=>{const l=[...c];return l[e]=i,l});return O.useEffect(()=>(s(r),()=>{s(void 0)})),null}const VEt=O.memo($Et);function HEt(e){const t=Sn(n=>o=>{const[r,s]=O.useState(Array(e.length).fill(void 0));return[...e.map((i,c)=>{const{hasSupport:l,attributeKeys:u=[],useBlockProps:d,isMatch:p}=i,f={};for(const b of u)o.attributes[b]&&(f[b]=o.attributes[b]);return!Object.keys(f).length||!l(o.name)||p&&!p(f)?null:a.jsx(VEt,{index:c,useBlockProps:d,setAllWrapperProps:s,name:o.name,clientId:o.clientId,...f},c)}),a.jsx(n,{...o,wrapperProps:r.filter(Boolean).reduce((i,c)=>({...i,...c,className:$(i.className,c.className),style:{...i.style,...c.style}}),o.wrapperProps||{})},"edit")]},"withBlockListBlockHooks");r0("editor.BlockListBlock","core/editor/hooks",t)}function UEt(e){function t(n,o,r){return e.reduce((s,i)=>{const{hasSupport:c,attributeKeys:l=[],addSaveProps:u}=i,d={};for(const p of l)r[p]&&(d[p]=r[p]);return!Object.keys(d).length||!c(o)?s:u(s,o,d)},n)}r0("blocks.getSaveContent.extraProps","core/editor/hooks",t,0),r0("blocks.getSaveContent.extraProps","core/editor/hooks",n=>(n.hasOwnProperty("className")&&!n.className&&delete n.className,n))}function XEt(e){const{apiVersion:t=1}=e;return t<2&&st(e,"lightBlockWrapper",!1)&&(e.apiVersion=2),e}r0("blocks.registerBlockType","core/compat/migrateLightBlockWrapper",XEt);const DT=["left","center","right","wide","full"],GEt=["wide","full"];function $P(e,t=!0,n=!0){let o;return Array.isArray(e)?o=DT.filter(r=>e.includes(r)):e===!0?o=[...DT]:o=[],!n||e===!0&&!t?o.filter(r=>!GEt.includes(r)):o}function KEt(e){var t;return"type"in((t=e.attributes?.align)!==null&&t!==void 0?t:{})||st(e,"align")&&(e.attributes={...e.attributes,align:{type:"string",enum:[...DT,""]}}),e}function YEt({name:e,align:t,setAttributes:n}){const o=$P(Zt(e,"align"),st(e,"alignWide",!0)),r=Ij(o).map(({name:c})=>c),s=oo();if(!r.length||s!=="default")return null;const i=c=>{c||Dt(e)?.attributes?.align?.default&&(c=""),n({align:c})};return a.jsx(Ie,{group:"block",__experimentalShareWithChildBlocks:!0,children:a.jsx(VAt,{value:t,onChange:i,controls:r})})}const VP={shareWithChildBlocks:!0,edit:YEt,useBlockProps:ZEt,addSaveProps:QEt,attributeKeys:["align"],hasSupport(e){return st(e,"align",!1)}};function ZEt({name:e,align:t}){const n=$P(Zt(e,"align"),st(e,"alignWide",!0));return Ij(n).some(r=>r.name===t)?{"data-align":t}:{}}function QEt(e,t,n){const{align:o}=n,r=Zt(t,"align"),s=st(t,"alignWide",!0);return $P(r,s).includes(o)&&(e.className=$(`align${o}`,e.className)),e}r0("blocks.registerBlockType","core/editor/align/addAttribute",KEt);function JEt(e){var t;return"type"in((t=e.attributes?.lock)!==null&&t!==void 0?t:{})||(e.attributes={...e.attributes,lock:{type:"object"}}),e}r0("blocks.registerBlockType","core/lock/addAttribute",JEt);const eBt=/[\s#]/g,tBt={type:"string",source:"attribute",attribute:"id",selector:"*"};function nBt(e){var t;return"type"in((t=e.attributes?.anchor)!==null&&t!==void 0?t:{})||st(e,"anchor")&&(e.attributes={...e.attributes,anchor:tBt}),e}function oBt({anchor:e,setAttributes:t}){return oo()!=="default"?null:a.jsx(Te,{group:"advanced",children:a.jsx($t,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,className:"html-anchor-control",label:m("HTML anchor"),help:a.jsxs(a.Fragment,{children:[m("Enter a word or two — without spaces — to make a unique web address just for this block, called an “anchor”. Then, you’ll be able to link directly to this section of your page."),a.jsxs(a.Fragment,{children:[" ",a.jsx(S1,{href:m("https://wordpress.org/documentation/article/page-jumps/"),children:m("Learn more about anchors")})]})]}),value:e||"",placeholder:null,onChange:o=>{o=o.replace(eBt,"-"),t({anchor:o})},autoCapitalize:"none",autoComplete:"off"})})}const Bge={addSaveProps:rBt,edit:oBt,attributeKeys:["anchor"],hasSupport(e){return st(e,"anchor")}};function rBt(e,t,n){return st(t,"anchor")&&(e.id=n.anchor===""?null:n.anchor),e}r0("blocks.registerBlockType","core/anchor/attribute",nBt);const sBt={type:"string",source:"attribute",attribute:"aria-label",selector:"*"};function iBt(e){return e?.attributes?.ariaLabel?.type||st(e,"ariaLabel")&&(e.attributes={...e.attributes,ariaLabel:sBt}),e}function aBt(e,t,n){return st(t,"ariaLabel")&&(e["aria-label"]=n.ariaLabel===""?null:n.ariaLabel),e}const cBt={addSaveProps:aBt,attributeKeys:["ariaLabel"],hasSupport(e){return st(e,"ariaLabel")}};r0("blocks.registerBlockType","core/ariaLabel/attribute",iBt);function lBt(e){return st(e,"customClassName",!0)&&(e.attributes={...e.attributes,className:{type:"string"}}),e}function uBt({className:e,setAttributes:t}){return oo()!=="default"?null:a.jsx(Te,{group:"advanced",children:a.jsx($t,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,autoComplete:"off",label:m("Additional CSS class(es)"),value:e||"",onChange:o=>{t({className:o!==""?o:void 0})},help:m("Separate multiple classes with spaces.")})})}const Nge={edit:uBt,addSaveProps:dBt,attributeKeys:["className"],hasSupport(e){return st(e,"customClassName",!0)}};function dBt(e,t,n){return st(t,"customClassName",!0)&&n.className&&(e.className=$(e.className,n.className)),e}function pBt(e,t,n,o){if(!st(e.name,"customClassName",!0)||o.length===1&&e.innerBlocks.length===t.length||o.length===1&&t.length>1||o.length>1&&t.length===1)return e;if(t[n]){const r=t[n]?.attributes.className;if(r)return{...e,attributes:{...e.attributes,className:r}}}return e}r0("blocks.registerBlockType","core/editor/custom-class-name/attribute",lBt);r0("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",pBt);function fBt(e,t){return st(t,"className",!0)&&(typeof e.className=="string"?e.className=[...new Set([_v(t.name),...e.className.split(" ")])].join(" ").trim():e.className=_v(t.name)),e}r0("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",fBt);function by(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function bBt({clientId:e}){const[t,n]=O.useState(),[o,r]=O.useState(),[s,i]=O.useState(),c=us(e);return O.useEffect(()=>{if(!c)return;r(by(c).color);const l=c.querySelector("a");l&&l.innerText&&i(by(l).color);let u=c,d=by(u).backgroundColor;for(;d==="rgba(0, 0, 0, 0)"&&u.parentNode&&u.parentNode.nodeType===u.parentNode.ELEMENT_NODE;)u=u.parentNode,d=by(u).backgroundColor;n(d)},[c]),a.jsx(S5,{backgroundColor:t,textColor:o,enableAlphaChecker:!0,linkColor:s})}const Mo="color",Nk=e=>{const t=Zt(e,Mo);return t&&(t.link===!0||t.gradient===!0||t.background!==!1||t.text!==!1)},hBt=e=>{const t=Zt(e,Mo);return t!==null&&typeof t=="object"&&!!t.link},HP=e=>{const t=Zt(e,Mo);return t!==null&&typeof t=="object"&&!!t.gradients},mBt=e=>{const t=Zt(e,Mo);return t&&t.background!==!1},MBt=e=>{const t=Zt(e,Mo);return t&&t.text!==!1};function gBt(e){return Nk(e)&&(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),HP(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}})),e}function Lge(e,t,n){if(!Nk(t)||Z1(t,Mo))return e;const o=HP(t),{backgroundColor:r,textColor:s,gradient:i,style:c}=n,l=g=>!Z1(t,Mo,g),u=l("text")?lt("color",s):void 0,d=l("gradients")?lr(i):void 0,p=l("background")?lt("background-color",r):void 0,f=l("background")||l("gradients"),b=r||c?.color?.background||o&&(i||c?.color?.gradient),h=$(e.className,u,d,{[p]:(!o||!c?.color?.gradient)&&!!p,"has-text-color":l("text")&&(s||c?.color?.text),"has-background":f&&b,"has-link-color":l("link")&&c?.elements?.link?.color});return e.className=h||void 0,e}function jge(e){const t=e?.color?.text,n=t?.startsWith("var:preset|color|")?t.substring(17):void 0,o=e?.color?.background,r=o?.startsWith("var:preset|color|")?o.substring(17):void 0,s=e?.color?.gradient,i=s?.startsWith("var:preset|gradient|")?s.substring(20):void 0,c={...e};return c.color={...c.color,text:n?void 0:t,background:r?void 0:o,gradient:i?void 0:s},{style:ni(c),textColor:n,backgroundColor:r,gradient:i}}function Pge(e){return{...e.style,color:{...e.style?.color,text:e.textColor?"var:preset|color|"+e.textColor:e.style?.color?.text,background:e.backgroundColor?"var:preset|color|"+e.backgroundColor:e.style?.color?.background,gradient:e.gradient?"var:preset|gradient|"+e.gradient:e.style?.color?.gradient}}}function zBt({children:e,resetAllFilter:t}){const n=O.useCallback(o=>{const r=Pge(o),s=t(r);return{...o,...jge(s)}},[t]);return a.jsx(Te,{group:"color",resetAllFilter:n,children:e})}function OBt({clientId:e,name:t,setAttributes:n,settings:o}){const r=dge(o);function s(h){const{style:g,textColor:z,backgroundColor:y,gradient:x}=h(F).getBlockAttributes(e)||{};return{style:g,textColor:z,backgroundColor:y,gradient:x}}const{style:i,textColor:c,backgroundColor:l,gradient:u}=D(s,[e]),d=O.useMemo(()=>Pge({style:i,textColor:c,backgroundColor:l,gradient:u}),[i,c,l,u]),p=h=>{n(jge(h))};if(!r)return null;const f=Zt(t,[Mo,"__experimentalDefaultControls"]),b=!d?.color?.gradient&&(o?.color?.text||o?.color?.link)&&Zt(t,[Mo,"enableContrastChecker"])!==!1;return a.jsx(Mge,{as:zBt,panelId:e,settings:o,value:d,onChange:p,defaultControls:f,enableContrastChecker:Zt(t,[Mo,"enableContrastChecker"])!==!1,children:b&&a.jsx(bBt,{clientId:e})})}function ABt({name:e,backgroundColor:t,textColor:n,gradient:o,style:r}){const[s,i,c]=O0("color.palette.custom","color.palette.theme","color.palette.default"),l=O.useMemo(()=>[...s||[],...i||[],...c||[]],[s,i,c]);if(!Nk(e)||Z1(e,Mo))return{};const u={};n&&!Z1(e,Mo,"text")&&(u.color=Up(l,n)?.color),t&&!Z1(e,Mo,"background")&&(u.backgroundColor=Up(l,t)?.color);const d=Lge({style:u},e,{textColor:n,backgroundColor:t,gradient:o,style:r}),p=t||r?.color?.background||o||r?.color?.gradient;return{...d,className:$(d.className,!p&&lTt(r))}}const Ige={useBlockProps:ABt,addSaveProps:Lge,attributeKeys:["backgroundColor","textColor","gradient","style"],hasSupport:Nk},yBt={linkColor:[["style","elements","link","color","text"]],textColor:[["textColor"],["style","color","text"]],backgroundColor:[["backgroundColor"],["style","color","background"]],gradient:[["gradient"],["style","color","gradient"]]};function vBt(e,t,n,o){const r=e.name,s={linkColor:hBt(r),textColor:MBt(r),backgroundColor:mBt(r),gradient:HP(r)};return Ege(s,yBt,e,t,n,o)}r0("blocks.registerBlockType","core/color/addAttribute",gBt);r0("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",vBt);const xBt="typography.lineHeight",Lk="typography.__experimentalFontFamily",{kebabCase:_Bt}=Fe(L0);function wBt(e){return st(e,Lk)&&(e.attributes.fontFamily||Object.assign(e.attributes,{fontFamily:{type:"string"}})),e}function Dge(e,t,n){if(!st(t,Lk)||Z1(t,sd,"fontFamily")||!n?.fontFamily)return e;const o=new Ok(e.className);o.add(`has-${_Bt(n?.fontFamily)}-font-family`);const r=o.value;return e.className=r||void 0,e}function kBt({name:e,fontFamily:t}){return Dge({},e,{fontFamily:t})}const Fge={useBlockProps:kBt,addSaveProps:Dge,attributeKeys:["fontFamily"],hasSupport(e){return st(e,Lk)}};r0("blocks.registerBlockType","core/fontFamily/addAttribute",wBt);const nm="typography.fontSize";function qBt(e){return st(e,nm)&&(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}})),e}function $ge(e,t,n){if(!st(t,nm)||Z1(t,sd,"fontSize"))return e;const o=new Ok(e.className);o.add(l5(n.fontSize));const r=o.value;return e.className=r||void 0,e}function SBt({name:e,fontSize:t,style:n}){const[o,r,s]=O0("typography.fontSizes","typography.fluid","layout");if(!st(e,nm)||Z1(e,sd,"fontSize")||!t&&!n?.typography?.fontSize)return;let i;if(n?.typography?.fontSize&&(i={style:{fontSize:hk({size:n.typography.fontSize},{typography:{fluid:r},layout:s})}}),t&&(i={style:{fontSize:H3t(o,t,n?.typography?.fontSize).size}}),!!i)return $ge(i,e,{fontSize:t})}const Vge={useBlockProps:SBt,addSaveProps:$ge,attributeKeys:["fontSize","style"],hasSupport(e){return st(e,nm)}},CBt={fontSize:[["fontSize"],["style","typography","fontSize"]]};function RBt(e,t,n,o){const r=e.name,s={fontSize:st(r,nm)};return Ege(s,CBt,e,t,n,o)}r0("blocks.registerBlockType","core/font/addAttribute",qBt);r0("blocks.switchToBlockType.transformedBlock","core/font-size/addTransforms",RBt);const fO="typography.textAlign",WBt=[{icon:_3,title:m("Align text left"),align:"left"},{icon:V_,title:m("Align text center"),align:"center"},{icon:w3,title:m("Align text right"),align:"right"}],wZ=["left","center","right"],TBt=[];function UP(e){return Array.isArray(e)?wZ.filter(t=>e.includes(t)):e===!0?wZ:TBt}function EBt({style:e,name:t,setAttributes:n}){const r=pO(t)?.typography?.textAlign,s=oo();if(!r||s!=="default")return null;const i=UP(Zt(t,fO));if(!i.length)return null;const c=WBt.filter(u=>i.includes(u.align)),l=u=>{const d={...e,typography:{...e?.typography,textAlign:u}};n({style:ni(d)})};return a.jsx(Ie,{group:"block",children:a.jsx(gn,{value:e?.typography?.textAlign,onChange:l,alignmentControls:c})})}const XP={edit:EBt,useBlockProps:BBt,addSaveProps:NBt,attributeKeys:["style"],hasSupport(e){return st(e,fO,!1)}};function BBt({name:e,style:t}){if(!t?.typography?.textAlign||!UP(Zt(e,fO)).length||Z1(e,sd,"textAlign"))return null;const o=t.typography.textAlign;return{className:$({[`has-text-align-${o}`]:o})}}function NBt(e,t,n){if(!n?.style?.typography?.textAlign)return e;const{textAlign:o}=n.style.typography,r=Zt(t,fO);return UP(r).includes(o)&&!Z1(t,sd,"textAlign")&&(e.className=$(`has-text-align-${o}`,e.className)),e}function kZ(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}const LBt="typography.__experimentalLetterSpacing",jBt="typography.__experimentalTextTransform",PBt="typography.__experimentalTextDecoration",IBt="typography.textColumns",DBt="typography.__experimentalFontStyle",FBt="typography.__experimentalFontWeight",$Bt="typography.__experimentalWritingMode",sd="typography",VBt=[xBt,nm,DBt,FBt,Lk,fO,IBt,PBt,$Bt,jBt,LBt];function Hge(e){const t={...kZ(e,["fontFamily"])},n=e?.typography?.fontSize,o=e?.typography?.fontFamily,r=n?.startsWith("var:preset|font-size|")?n.substring(21):void 0,s=o?.startsWith("var:preset|font-family|")?o.substring(23):void 0;return t.typography={...kZ(t.typography,["fontFamily"]),fontSize:r?void 0:n},{style:ni(t),fontFamily:s,fontSize:r}}function Uge(e){return{...e.style,typography:{...e.style?.typography,fontFamily:e.fontFamily?"var:preset|font-family|"+e.fontFamily:void 0,fontSize:e.fontSize?"var:preset|font-size|"+e.fontSize:e.style?.typography?.fontSize}}}function HBt({children:e,resetAllFilter:t}){const n=O.useCallback(o=>{const r=Uge(o),s=t(r);return{...o,...Hge(s)}},[t]);return a.jsx(Te,{group:"typography",resetAllFilter:n,children:e})}function UBt({clientId:e,name:t,setAttributes:n,settings:o}){function r(f){const{style:b,fontFamily:h,fontSize:g}=f(F).getBlockAttributes(e)||{};return{style:b,fontFamily:h,fontSize:g}}const{style:s,fontFamily:i,fontSize:c}=D(r,[e]),l=EMe(o),u=O.useMemo(()=>Uge({style:s,fontFamily:i,fontSize:c}),[s,c,i]),d=f=>{n(Hge(f))};if(!l)return null;const p=Zt(t,[sd,"__experimentalDefaultControls"]);return a.jsx(HMe,{as:HBt,panelId:e,settings:o,value:u,onChange:d,defaultControls:p})}function Xge({clientId:e,value:t,computeStyle:n,forceShow:o}){const r=us(e),[s,i]=O.useReducer(()=>n(r));O.useLayoutEffect(()=>{r&&window.requestAnimationFrame(()=>window.requestAnimationFrame(i))},[r,t]);const c=O.useRef(t),[l,u]=O.useState(!1);return O.useEffect(()=>{if(Jr(t,c.current)||o)return;u(!0),c.current=t;const d=setTimeout(()=>{u(!1)},400);return()=>{u(!1),clearTimeout(d)}},[t,o]),!l&&!o?null:a.jsx(Gh,{clientId:e,__unstablePopoverSlot:"block-toolbar",children:a.jsx("div",{className:"block-editor__spacing-visualizer",style:s})})}function lu(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function XBt({clientId:e,value:t,forceShow:n}){return a.jsx(Xge,{clientId:e,value:t?.spacing?.margin,computeStyle:o=>{const r=lu(o,"margin-top"),s=lu(o,"margin-right"),i=lu(o,"margin-bottom"),c=lu(o,"margin-left");return{borderTopWidth:r,borderRightWidth:s,borderBottomWidth:i,borderLeftWidth:c,top:r?`-${r}`:0,right:s?`-${s}`:0,bottom:i?`-${i}`:0,left:c?`-${c}`:0}},forceShow:n})}function GBt({clientId:e,value:t,forceShow:n}){return a.jsx(Xge,{clientId:e,value:t?.spacing?.padding,computeStyle:o=>({borderTopWidth:lu(o,"padding-top"),borderRightWidth:lu(o,"padding-right"),borderBottomWidth:lu(o,"padding-bottom"),borderLeftWidth:lu(o,"padding-left")}),forceShow:n})}const ll="dimensions",E5="spacing";function KBt(){const[e,t]=O.useState(!1),{hideBlockInterface:n,showBlockInterface:o}=Fe(ae(F));return O.useEffect(()=>{e?n():o()},[e,o,n]),[e,t]}function YBt({children:e,resetAllFilter:t}){const n=O.useCallback(o=>{const r=o.style,s=t(r);return{...o,style:s}},[t]);return a.jsx(Te,{group:"dimensions",resetAllFilter:n,children:e})}function ZBt({clientId:e,name:t,setAttributes:n,settings:o}){const r=XMe(o),s=D(f=>f(F).getBlockAttributes(e)?.style,[e]),[i,c]=KBt(),l=f=>{n({style:ni(f)})};if(!r)return null;const u=Zt(t,[ll,"__experimentalDefaultControls"]),d=Zt(t,[E5,"__experimentalDefaultControls"]),p={...u,...d};return a.jsxs(a.Fragment,{children:[a.jsx(nge,{as:YBt,panelId:e,settings:o,value:s,onChange:l,defaultControls:p,onVisualize:c}),!!o?.spacing?.padding&&a.jsx(GBt,{forceShow:i==="padding",clientId:e,value:s}),!!o?.spacing?.margin&&a.jsx(XBt,{forceShow:i==="margin",clientId:e,value:s})]})}function Gge(e,t="any"){const n=Zt(e,ll);return n===!0?!0:t==="any"?!!(n?.aspectRatio||n?.minHeight):!!n?.[t]}const QBt={useBlockProps:JBt,attributeKeys:["minHeight","style"],hasSupport(e){return Gge(e,"aspectRatio")}};function JBt({name:e,minHeight:t,style:n}){if(!Gge(e,"aspectRatio")||Z1(e,ll,"aspectRatio"))return{};const o=$({"has-aspect-ratio":!!n?.dimensions?.aspectRatio}),r={};return n?.dimensions?.aspectRatio?r.minHeight="unset":(t||n?.dimensions?.minHeight)&&(r.aspectRatio="unset"),{className:o,style:r}}const eNt=[...VBt,tm,Mo,ll,kz,E5,T5],GP=e=>eNt.some(t=>st(e,t));function om(e={}){const t={};return Vw(e).forEach(n=>{t[n.key]=n.value}),t}function tNt(e){return GP(e)&&(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}})),e}const Kge={[`${tm}.__experimentalSkipSerialization`]:["border"],[`${Mo}.__experimentalSkipSerialization`]:[Mo],[`${sd}.__experimentalSkipSerialization`]:[sd],[`${ll}.__experimentalSkipSerialization`]:[ll],[`${E5}.__experimentalSkipSerialization`]:[E5],[`${T5}.__experimentalSkipSerialization`]:[T5]},nNt={...Kge,[`${ll}.aspectRatio`]:[`${ll}.aspectRatio`],[`${kz}`]:[kz]},oNt={[`${ll}.aspectRatio`]:!0,[`${kz}`]:!0},rNt={gradients:"gradient"};function FT(e,t,n=!1){if(!e)return e;let o=e;return n||(o=JSON.parse(JSON.stringify(e))),Array.isArray(t)||(t=[t]),t.forEach(r=>{if(Array.isArray(r)||(r=r.split(".")),r.length>1){const[s,...i]=r;FT(o[s],[i],!0)}else r.length===1&&delete o[r[0]]}),o}function Yge(e,t,n,o=nNt){if(!GP(t))return e;let{style:r}=n;return Object.entries(o).forEach(([s,i])=>{const c=oNt[s]||Zt(t,s);c===!0&&(r=FT(r,i)),Array.isArray(c)&&c.forEach(l=>{const u=rNt[l]||l;r=FT(r,[[...i,u]])})}),e.style={...om(r),...e.style},e}function sNt({clientId:e,name:t,setAttributes:n,__unstableParentLayout:o}){const r=pO(t,o),s=oo(),i={clientId:e,name:t,setAttributes:n,settings:{...r,typography:{...r.typography,textAlign:!1}}};return s!=="default"?null:a.jsxs(a.Fragment,{children:[a.jsx(OBt,{...i}),a.jsx(dTt,{...i}),a.jsx(UBt,{...i}),a.jsx(mEt,{...i}),a.jsx(ZBt,{...i})]})}const KP={edit:sNt,hasSupport:GP,addSaveProps:Yge,attributeKeys:["style"],useBlockProps:Zge},iNt=[{elementType:"button"},{elementType:"link",pseudo:[":hover"]},{elementType:"heading",elements:["h1","h2","h3","h4","h5","h6"]}];function Zge({name:e,style:t}){const n=`wp-elements-${He(Zge)}`,o=`.${n}`,r=t?.elements,s=O.useMemo(()=>{if(!r)return;const i=[];return iNt.forEach(({elementType:c,pseudo:l,elements:u})=>{if(Z1(e,Mo,c))return;const p=r?.[c];if(p){const f=Yr(o,ua[c]);i.push(fS(p,{selector:f})),l&&l.forEach(b=>{p[b]&&i.push(fS(p[b],{selector:Yr(o,`${ua[c]}${b}`)}))})}u&&u.forEach(f=>{r[f]&&i.push(fS(r[f],{selector:Yr(o,ua[f])}))})}),i.length>0?i.join(""):void 0},[o,r,e]);return dO({css:s}),Yge({className:n},e,{style:t},Kge)}r0("blocks.registerBlockType","core/style/addAttribute",tNt);const aNt=e=>st(e,"__experimentalSettings",!1);function cNt(e){return aNt(e)&&(e?.attributes?.settings||(e.attributes={...e.attributes,settings:{type:"object"}})),e}r0("blocks.registerBlockType","core/settings/addAttribute",cNt);const ZS=[],lNt=window?.navigator.userAgent&&window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome")&&!window.navigator.userAgent.includes("Chromium");bs([hs]);function $T({presetSetting:e,defaultSetting:t}){const[n,o,r,s]=O0(t,`${e}.custom`,`${e}.theme`,`${e}.default`);return O.useMemo(()=>[...o||ZS,...r||ZS,...n&&s||ZS],[n,o,r,s])}function Qge(e,t){if(!e)return;const n=t?.find(({slug:o})=>e===`var:preset|duotone|${o}`);return n?n.colors:void 0}function uNt(e,t){if(!e||!Array.isArray(e))return;const n=t?.find(o=>o?.colors?.every((r,s)=>r===e[s]));return n?`var:preset|duotone|${n.slug}`:void 0}function dNt({style:e,setAttributes:t,name:n}){const o=e?.color?.duotone,r=pO(n),s=oo(),i=$T({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),c=$T({presetSetting:"color.palette",defaultSetting:"color.defaultPalette"}),[l,u]=O0("color.custom","color.customDuotone"),d=!l,p=!u||c?.length===0&&d;if(i?.length===0&&p||s!=="default")return null;const f=Array.isArray(o)?o:Qge(o,i);return a.jsxs(a.Fragment,{children:[a.jsx(Te,{group:"filter",children:a.jsx(zge,{value:{filter:{duotone:f}},onChange:b=>{const h={...e,color:{...b?.filter}};t({style:h})},settings:r})}),a.jsx(Ie,{group:"block",__experimentalShareWithChildBlocks:!0,children:a.jsx(Bme,{duotonePalette:i,colorPalette:c,disableCustomDuotone:p,disableCustomColors:d,value:f,onChange:b=>{const h=uNt(b,i),g={...e,color:{...e?.color,duotone:h??b}};t({style:g})},settings:r})})]})}const Jge={shareWithChildBlocks:!0,edit:dNt,useBlockProps:eze,attributeKeys:["style"],hasSupport(e){return st(e,"filter.duotone")}};function pNt(e){return st(e,"filter.duotone")&&(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}})),e}function fNt({clientId:e,id:t,selector:n,attribute:o}){const r=$T({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),s=Array.isArray(o),i=s?void 0:Qge(o,r),c=typeof o=="string"&&i,l=typeof o=="string"&&!c;let u=null;c?u=i:(l||s)&&(u=o);const f=n.split(",").map(g=>`.${t}${g.trim()}`).join(", "),b=Array.isArray(u)||u==="unset";qz(b?{css:u!=="unset"?QWt(f,t):ZWt(f),__unstableType:"presets"}:void 0),qz(b?{assets:u!=="unset"?PP(t,u):"",__unstableType:"svgs"}:void 0);const h=us(e);O.useEffect(()=>{if(b&&h&&lNt){const g=h.style.display;h.style.display="inline-block",h.offsetHeight,h.style.display=g}},[b,h,u])}function eze({clientId:e,name:t,style:n}){const o=He(eze),r=O.useMemo(()=>{const l=Dt(t);if(l){if(!Zt(l,"filter.duotone",!1))return null;const d=Zt(l,"color.__experimentalDuotone",!1);if(d){const p=ku(l);return typeof d=="string"?Yr(p,d):p}return ku(l,"filter.duotone",{fallback:!0})}},[t]),s=n?.color?.duotone,i=`wp-duotone-${o}`,c=r&&s;return fNt({clientId:e,id:i,selector:r,attribute:s}),{className:c?i:""}}r0("blocks.registerBlockType","core/editor/duotone/add-attributes",pNt);const VT="is-style-";function tze(e){return e?e.split(/\s+/).reduce((t,n)=>{if(n.startsWith(VT)){const o=n.slice(VT.length);o!=="default"&&t.push(o)}return t},[]):[]}function bNt(e,t=[]){const n=tze(e);if(!n)return null;for(const o of n)if(t.some(r=>r.name===o))return o;return null}function hNt({override:e}){qz(e)}function mNt({config:e}){const{getBlockStyles:t,overrides:n}=D(s=>({getBlockStyles:s($e).getBlockStyles,overrides:Fe(s(F)).getStyleOverrides()}),[]),{getBlockName:o}=D(F),r=O.useMemo(()=>{if(!n?.length)return;const s=[],i=[];for(const[,c]of n)if(c?.variation&&c?.clientId&&!i.includes(c.clientId)){const l=o(c.clientId),u=e?.styles?.blocks?.[l]?.variations?.[c.variation];if(u){const d={settings:e?.settings,styles:{blocks:{[l]:{variations:{[`${c.variation}-${c.clientId}`]:u}}}}},p=Ck(nr(),t,c.clientId),z=Sk(d,p,!1,!0,!0,!0,{blockGap:!1,blockStyles:!0,layoutStyles:!1,marginReset:!1,presets:!1,rootPadding:!1,variationStyles:!0});s.push({id:`${c.variation}-${c.clientId}`,css:z,__unstableType:"variation",variation:c.variation,clientId:c.clientId}),i.push(c.clientId)}}return s},[e,n,t,o]);if(!(!r||!r.length))return a.jsx(a.Fragment,{children:r.map(s=>a.jsx(hNt,{override:s},s.id))})}function MNt(e,t,n){if(!e?.styles?.blocks?.[t]?.variations?.[n])return;const o=s=>{Object.keys(s).forEach(i=>{const c=s[i];if(typeof c=="object"&&c!==null)if(c.ref!==void 0)if(typeof c.ref!="string"||c.ref.trim()==="")delete s[i];else{const l=R0(e,c.ref);l?s[i]=l:delete s[i]}else o(c),Object.keys(c).length===0&&delete s[i]})},r=JSON.parse(JSON.stringify(e.styles.blocks[t].variations[n]));return o(r),r}function gNt(e,t,n){const{merged:o}=O.useContext(em),{globalSettings:r,globalStyles:s}=D(i=>{const c=i(F).getSettings();return{globalSettings:c.__experimentalFeatures,globalStyles:c[Rw]}},[]);return O.useMemo(()=>{var i,c,l;const u=MNt({settings:(i=o?.settings)!==null&&i!==void 0?i:r,styles:(c=o?.styles)!==null&&c!==void 0?c:s},e,t);return{settings:(l=o?.settings)!==null&&l!==void 0?l:r,styles:{blocks:{[e]:{variations:{[`${t}-${n}`]:u}}}}}},[o,r,s,t,n,e])}function zNt({name:e,className:t,clientId:n}){const{getBlockStyles:o}=D($e),r=o(e),s=bNt(t,r),i=`${VT}${s}-${n}`,{settings:c,styles:l}=gNt(e,s,n),u=O.useMemo(()=>{if(!s)return;const d={settings:c,styles:l},p=Ck(nr(),o,n);return Sk(d,p,!1,!0,!0,!0,{blockGap:!1,blockStyles:!0,layoutStyles:!1,marginReset:!1,presets:!1,rootPadding:!1,variationStyles:!0})},[s,c,l,o,n]);return qz({id:`variation-${n}`,css:u,__unstableType:"variation",variation:s,clientId:n}),s?{className:i}:{}}const ONt={hasSupport:()=>!0,attributeKeys:["className"],isMatch:({className:e})=>tze(e).length>0,useBlockProps:zNt},YP="layout",{kebabCase:HT}=Fe(L0);function ZP(e){return st(e,"layout")||st(e,"__experimentalLayout")}function nze(e={},t=""){const{layout:n}=e,{default:o}=Zt(t,YP)||{},r=n?.inherit||n?.contentSize||n?.wideSize?{...n,type:"constrained"}:n||o||{},s=[];if(Ju[r?.type||"default"]?.className){const c=Ju[r?.type||"default"]?.className,l=t.split("/"),d=`wp-block-${l[0]==="core"?l.pop():l.join("-")}-${c}`;s.push(c,d)}return D(c=>(r?.inherit||r?.contentSize||r?.type==="constrained")&&c(F).getSettings().__experimentalFeatures?.useRootPaddingAwareAlignments,[r?.contentSize,r?.inherit,r?.type])&&s.push("has-global-padding"),r?.orientation&&s.push(`is-${HT(r.orientation)}`),r?.justifyContent&&s.push(`is-content-justification-${HT(r.justifyContent)}`),r?.flexWrap&&r.flexWrap==="nowrap"&&s.push("is-nowrap"),s}function ANt(e={},t,n){const{layout:o={},style:r={}}=e,s=o?.inherit||o?.contentSize||o?.wideSize?{...o,type:"constrained"}:o||{},i=Kp(s?.type||"default"),[c]=O0("spacing.blockGap"),l=c!==null;return i?.getLayoutStyle?.({blockName:t,selector:n,layout:o,style:r,hasBlockGapSupport:l})}function yNt({layout:e,setAttributes:t,name:n,clientId:o}){const r=pO(n),{layout:s}=r,{themeSupportsLayout:i}=D(T=>{const{getSettings:W}=T(F);return{themeSupportsLayout:W().supportsLayout}},[]);if(oo()!=="default")return null;const l=Zt(n,YP,{}),u={...s,...l},{allowSwitching:d,allowEditing:p=!0,allowInheriting:f=!0,default:b}=u;if(!p)return null;const h={...l,...e},{type:g,default:{type:z="default"}={}}=h,y=g||z,x=!!(f&&(!y||y==="default"||y==="constrained"||h.inherit)),v=e||b||{},{inherit:M=!1,contentSize:A=null}=v;if((y==="default"||y==="constrained")&&!i)return null;const _=Kp(y),w=Kp("constrained"),k=!v.type&&(A||M),q=!!M||!!A,S=T=>t({layout:{type:T}}),C=T=>t({layout:T});return a.jsxs(a.Fragment,{children:[a.jsx(Te,{children:a.jsxs(De,{title:m("Layout"),children:[x&&a.jsx(a.Fragment,{children:a.jsx(Be,{__nextHasNoMarginBottom:!0,className:"block-editor-hooks__toggle-control",label:m("Inner blocks use content width"),checked:_?.name==="constrained"||q,onChange:()=>t({layout:{type:_?.name==="constrained"||q?"default":"constrained"}}),help:_?.name==="constrained"||q?m("Nested blocks use content width with options for full and wide widths."):m("Nested blocks will fill the width of this container. Toggle to constrain.")})}),!M&&d&&a.jsx(xNt,{type:y,onChange:S}),_&&_.name!=="default"&&a.jsx(_.inspectorControls,{layout:v,onChange:C,layoutBlockSupport:u,name:n,clientId:o}),w&&k&&a.jsx(w.inspectorControls,{layout:v,onChange:C,layoutBlockSupport:u,name:n,clientId:o})]})}),!M&&_&&a.jsx(_.toolBarControls,{layout:v,onChange:C,layoutBlockSupport:l,name:n,clientId:o})]})}const vNt={shareWithChildBlocks:!0,edit:yNt,attributeKeys:["layout"],hasSupport(e){return ZP(e)}};function xNt({type:e,onChange:t}){return a.jsx(Bh,{children:PAt().map(({name:n,label:o})=>a.jsx(fe,{__next40pxDefaultSize:!1,isPressed:e===n,onClick:()=>t(n),children:o},n))})}function _Nt(e){var t;return"type"in((t=e.attributes?.layout)!==null&&t!==void 0?t:{})||ZP(e)&&(e.attributes={...e.attributes,layout:{type:"object"}}),e}function wNt({block:e,props:t,blockGapSupport:n,layoutClasses:o}){const{name:r,attributes:s}=t,i=He(e),{layout:c}=s,{default:l}=Zt(r,YP)||{},u=c?.inherit||c?.contentSize||c?.wideSize?{...c,type:"constrained"}:c||l||{},d=`wp-container-${HT(r)}-is-layout-`,p=`.${d}${i}`,f=n!==null,h=Kp(u?.type||"default")?.getLayoutStyle?.({blockName:r,selector:p,layout:u,style:s?.style,hasBlockGapSupport:f}),g=$({[`${d}${i}`]:!!h},o);return dO({css:h}),a.jsx(e,{...t,__unstableLayoutClassNames:g})}const kNt=Sn(e=>t=>{const{clientId:n,name:o,attributes:r}=t,s=ZP(o),i=nze(r,o),c=D(l=>{if(!s)return;const{getSettings:u,getBlockSettings:d}=Fe(l(F)),{disableLayoutStyles:p}=u();if(p)return;const[f]=d(n,"spacing.blockGap");return{blockGapSupport:f}},[s,n]);return c?a.jsx(wNt,{block:e,props:t,layoutClasses:i,...c}):a.jsx(e,{...t,__unstableLayoutClassNames:s?i:void 0})},"withLayoutStyles");r0("blocks.registerBlockType","core/layout/addAttribute",_Nt);r0("editor.BlockListBlock","core/editor/layout/with-layout-styles",kNt);function qZ(e,t){return Array.from({length:t},(n,o)=>e+o)}class Su{constructor({columnStart:t,rowStart:n,columnEnd:o,rowEnd:r,columnSpan:s,rowSpan:i}={}){this.columnStart=t??1,this.rowStart=n??1,s!==void 0?this.columnEnd=this.columnStart+s-1:this.columnEnd=o??this.columnStart,i!==void 0?this.rowEnd=this.rowStart+i-1:this.rowEnd=r??this.rowStart}get columnSpan(){return this.columnEnd-this.columnStart+1}get rowSpan(){return this.rowEnd-this.rowStart+1}contains(t,n){return t>=this.columnStart&&t<=this.columnEnd&&n>=this.rowStart&&n<=this.rowEnd}containsRect(t){return this.contains(t.columnStart,t.rowStart)&&this.contains(t.columnEnd,t.rowEnd)}intersectsRect(t){return this.columnStart<=t.columnEnd&&this.columnEnd>=t.columnStart&&this.rowStart<=t.rowEnd&&this.rowEnd>=t.rowStart}}function Ac(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function SZ(e,t){const n=[];for(const o of e.split(" ")){const r=n[n.length-1],s=r?r.end+t:0,i=s+parseFloat(o);n.push({start:s,end:i})}return n}function hy(e,t,n="start"){return e.reduce((o,r,s)=>Math.abs(r[n]-t)i(F).getSettings().isDistractionFree,[]),r=us(e);if(o||!r)return null;const s=n?.isManualPlacement&&window.__experimentalEnableGridInteractivity;return a.jsx(qNt,{gridClientId:e,gridElement:r,isManualGrid:s,ref:t})}const qNt=O.forwardRef(({gridClientId:e,gridElement:t,isManualGrid:n},o)=>{const[r,s]=O.useState(()=>CZ(t)),[i,c]=O.useState(!1);return O.useEffect(()=>{const l=[];for(const u of[t,...t.children]){const d=new window.ResizeObserver(()=>{s(CZ(t))});d.observe(u),l.push(d)}return()=>{for(const u of l)u.disconnect()}},[t]),O.useEffect(()=>{function l(){c(!0)}function u(){c(!1)}return document.addEventListener("drag",l),document.addEventListener("dragend",u),()=>{document.removeEventListener("drag",l),document.removeEventListener("dragend",u)}},[]),a.jsx(Gh,{className:$("block-editor-grid-visualizer",{"is-dropping-allowed":i}),clientId:e,__unstablePopoverSlot:"__unstable-block-tools-after",children:a.jsx("div",{ref:o,className:"block-editor-grid-visualizer__grid",style:r.style,children:n?a.jsx(SNt,{gridClientId:e,gridInfo:r}):Array.from({length:r.numItems},(l,u)=>a.jsx(rze,{color:r.currentColor},u))})})});function SNt({gridClientId:e,gridInfo:t}){const[n,o]=O.useState(null),r=D(i=>{const{getBlockOrder:c,getBlockStyles:l}=Fe(i(F)),u=c(e);return l(u)},[e]),s=O.useMemo(()=>{const i=[];for(const l of Object.values(r)){var c;const{columnStart:u,rowStart:d,columnSpan:p=1,rowSpan:f=1}=(c=l?.layout)!==null&&c!==void 0?c:{};!u||!d||i.push(new Su({columnStart:u,rowStart:d,columnSpan:p,rowSpan:f}))}return i},[r]);return qZ(1,t.numRows).map(i=>qZ(1,t.numColumns).map(c=>{var l;const u=s.some(p=>p.contains(c,i)),d=(l=n?.contains(c,i))!==null&&l!==void 0?l:!1;return a.jsx(rze,{color:t.currentColor,className:d&&"is-highlighted",children:u?a.jsx(CNt,{column:c,row:i,gridClientId:e,gridInfo:t,setHighlightedRect:o}):a.jsx(RNt,{column:c,row:i,gridClientId:e,gridInfo:t,setHighlightedRect:o})},`${i}-${c}`)}))}function rze({color:e,children:t,className:n}){return a.jsx("div",{className:$("block-editor-grid-visualizer__cell",n),style:{boxShadow:`inset 0 0 0 1px color-mix(in srgb, ${e} 20%, #0000)`,color:e},children:t})}function sze(e,t,n,o,r){const{getBlockAttributes:s,getBlockRootClientId:i,canInsertBlockType:c,getBlockName:l}=D(F),{updateBlockAttributes:u,moveBlocksToPosition:d,__unstableMarkNextChangeAsNotPersistent:p}=ae(F),f=Rk(n,o.numColumns);return WNt({validateDrag(b){const h=l(b);if(!c(h,n))return!1;const g=s(b),z=new Su({columnStart:e,rowStart:t,columnSpan:g.style?.layout?.columnSpan,rowSpan:g.style?.layout?.rowSpan});return new Su({columnSpan:o.numColumns,rowSpan:o.numRows}).containsRect(z)},onDragEnter(b){const h=s(b);r(new Su({columnStart:e,rowStart:t,columnSpan:h.style?.layout?.columnSpan,rowSpan:h.style?.layout?.rowSpan}))},onDragLeave(){r(b=>b?.columnStart===e&&b?.rowStart===t?null:b)},onDrop(b){r(null);const h=s(b);u(b,{style:{...h.style,layout:{...h.style?.layout,columnStart:e,rowStart:t}}}),p(),d([b],i(b),n,f(e,t))}})}function CNt({column:e,row:t,gridClientId:n,gridInfo:o,setHighlightedRect:r}){return a.jsx("div",{className:"block-editor-grid-visualizer__drop-zone",ref:sze(e,t,n,o,r)})}function RNt({column:e,row:t,gridClientId:n,gridInfo:o,setHighlightedRect:r}){const{updateBlockAttributes:s,moveBlocksToPosition:i,__unstableMarkNextChangeAsNotPersistent:c}=ae(F),l=Rk(n,o.numColumns);return a.jsx(dk,{rootClientId:n,className:"block-editor-grid-visualizer__appender",ref:sze(e,t,n,o,r),style:{color:o.currentColor},onSelect:u=>{u&&(s(u.clientId,{style:{layout:{columnStart:e,rowStart:t}}}),c(),i([u.clientId],n,n,l(e,t)))}})}function WNt({validateDrag:e,onDragEnter:t,onDragLeave:n,onDrop:o}){const{getDraggedBlockClientIds:r}=D(F);return Rx({onDragEnter(){const[s]=r();s&&e(s)&&t(s)},onDragLeave(){n()},onDrop(){const[s]=r();s&&e(s)&&o(s)}})}function TNt({clientId:e,bounds:t,onChange:n,parentLayout:o}){const r=us(e),s=r?.parentElement,{isManualPlacement:i}=o;return!r||!s?null:a.jsx(ENt,{clientId:e,bounds:t,blockElement:r,rootBlockElement:s,onChange:n,isManualGrid:i&&window.__experimentalEnableGridInteractivity})}function ENt({clientId:e,bounds:t,blockElement:n,rootBlockElement:o,onChange:r,isManualGrid:s}){const[i,c]=O.useState(null),[l,u]=O.useState({top:!1,bottom:!1,left:!1,right:!1});O.useEffect(()=>{const b=new window.ResizeObserver(()=>{const h=n.getBoundingClientRect(),g=o.getBoundingClientRect();u({top:h.top>g.top,bottom:h.bottomg.left,right:h.rightb.disconnect()},[n,o]);const d={right:"flex-start",left:"flex-end"},p={top:"flex-end",bottom:"flex-start"},f={display:"flex",justifyContent:"center",alignItems:"center",...d[i]&&{justifyContent:d[i]},...p[i]&&{alignItems:p[i]}};return a.jsx(Gh,{className:"block-editor-grid-item-resizer",clientId:e,__unstablePopoverSlot:"__unstable-block-tools-after",additionalStyles:f,children:a.jsx(Ui,{className:"block-editor-grid-item-resizer__box",size:{width:"100%",height:"100%"},enable:{bottom:l.bottom,bottomLeft:!1,bottomRight:!1,left:l.left,right:l.right,top:l.top,topLeft:!1,topRight:!1},bounds:t,boundsByDirection:!0,onPointerDown:({target:b,pointerId:h})=>{b.setPointerCapture(h)},onResizeStart:(b,h)=>{c(h)},onResizeStop:(b,h,g)=>{const z=parseFloat(Ac(o,"column-gap")),y=parseFloat(Ac(o,"row-gap")),x=SZ(Ac(o,"grid-template-columns"),z),v=SZ(Ac(o,"grid-template-rows"),y),M=new window.DOMRect(n.offsetLeft+g.offsetLeft,n.offsetTop+g.offsetTop,g.offsetWidth,g.offsetHeight),A=hy(x,M.left)+1,_=hy(v,M.top)+1,w=hy(x,M.right,"end")+1,k=hy(v,M.bottom,"end")+1;r({columnSpan:w-A+1,rowSpan:k-_+1,columnStart:s?A:void 0,rowStart:s?_:void 0})}})})}function BNt({layout:e,parentLayout:t,onChange:n,gridClientId:o,blockClientId:r}){var s,i,c,l;const{moveBlocksToPosition:u,__unstableMarkNextChangeAsNotPersistent:d}=ae(F),p=(s=e?.columnStart)!==null&&s!==void 0?s:1,f=(i=e?.rowStart)!==null&&i!==void 0?i:1,b=(c=e?.columnSpan)!==null&&c!==void 0?c:1,h=(l=e?.rowSpan)!==null&&l!==void 0?l:1,g=p+b-1,z=f+h-1,y=t?.columnCount,x=t?.rowCount,v=Rk(o,y);return a.jsx(Ie,{group:"parent",children:a.jsxs(c0,{className:"block-editor-grid-item-mover__move-button-container",children:[a.jsx("div",{className:"block-editor-grid-item-mover__move-horizontal-button-container is-left",children:a.jsx(MM,{icon:ft()?Ei:Fa,label:m("Move left"),description:m("Move left"),isDisabled:p<=1,onClick:()=>{n({columnStart:p-1}),d(),u([r],o,o,v(p-1,f))}})}),a.jsxs("div",{className:"block-editor-grid-item-mover__move-vertical-button-container",children:[a.jsx(MM,{className:"is-up-button",icon:G_,label:m("Move up"),description:m("Move up"),isDisabled:f<=1,onClick:()=>{n({rowStart:f-1}),d(),u([r],o,o,v(p,f-1))}}),a.jsx(MM,{className:"is-down-button",icon:md,label:m("Move down"),description:m("Move down"),isDisabled:x&&z>=x,onClick:()=>{n({rowStart:f+1}),d(),u([r],o,o,v(p,f+1))}})]}),a.jsx("div",{className:"block-editor-grid-item-mover__move-horizontal-button-container is-right",children:a.jsx(MM,{icon:ft()?Fa:Ei,label:m("Move right"),description:m("Move right"),isDisabled:y&&g>=y,onClick:()=>{n({columnStart:p+1}),d(),u([r],o,o,v(p+1,f))}})})]})})}function MM({className:e,icon:t,label:n,isDisabled:o,onClick:r,description:s}){const c=`block-editor-grid-item-mover-button__description-${He(MM)}`;return a.jsxs(a.Fragment,{children:[a.jsx(bt,{className:$("block-editor-grid-item-mover-button",e),icon:t,label:n,"aria-describedby":c,onClick:o?null:r,disabled:o,accessibleWhenDisabled:!0}),a.jsx(Kt,{id:c,children:s})]})}function NNt({clientId:e}){const{gridLayout:t,blockOrder:n,selectedBlockLayout:o}=D(f=>{var b;const{getBlockAttributes:h,getBlockOrder:g}=f(F),z=f(F).getSelectedBlock();return{gridLayout:(b=h(e).layout)!==null&&b!==void 0?b:{},blockOrder:g(e),selectedBlockLayout:z?.attributes.style?.layout}},[e]),{getBlockAttributes:r,getBlockRootClientId:s}=D(F),{updateBlockAttributes:i,__unstableMarkNextChangeAsNotPersistent:c}=ae(F),l=O.useMemo(()=>o?new Su(o):null,[o]),u=t1(l),d=t1(t.isManualPlacement),p=t1(n);O.useEffect(()=>{const f={};if(t.isManualPlacement){const y=[];for(const v of n){var b;const{columnStart:M,rowStart:A,columnSpan:_=1,rowSpan:w=1}=(b=r(v).style?.layout)!==null&&b!==void 0?b:{};!M||!A||y.push(new Su({columnStart:M,rowStart:A,columnSpan:_,rowSpan:w}))}for(const v of n){var h;const M=r(v),{columnStart:A,rowStart:_,columnSpan:w=1,rowSpan:k=1}=(h=M.style?.layout)!==null&&h!==void 0?h:{};if(A&&_)continue;const[q,S]=LNt(y,t.columnCount,w,k,u?.columnEnd,u?.rowEnd);y.push(new Su({columnStart:q,rowStart:S,columnSpan:w,rowSpan:k})),f[v]={style:{...M.style,layout:{...M.style?.layout,columnStart:q,rowStart:S}}}}const x=Math.max(...y.map(v=>v.rowEnd));(!t.rowCount||t.rowCountu.intersectsRect(l)))return[c,i]}}function ize({style:e}){var t;const n=D(z=>!z(F).getSettings().disableLayoutStyles),o=(t=e?.layout)!==null&&t!==void 0?t:{},{selfStretch:r,flexSize:s,columnStart:i,rowStart:c,columnSpan:l,rowSpan:u}=o,d=Hw()||{},{columnCount:p,minimumColumnWidth:f}=d,b=He(ize),h=`.wp-container-content-${b}`;let g="";if(n&&(r==="fixed"&&s?g=`${h} { flex-basis: ${s}; box-sizing: border-box; }`:r==="fill"?g=`${h} { @@ -642,7 +642,7 @@ https://www.w3ctech.com/topic/2226`));let c=n(...i);return c.postcssPlugin=t,c.p grid-column: ${_}; grid-row: auto; } - }`}if(dO({css:g}),!!g)return{className:`wp-container-content-${b}`}}function jNt({clientId:e,style:t,setAttributes:n}){const o=Hw()||{},{type:r="default",allowSizingOnChildren:s=!1,isManualPlacement:i}=o,c=D(p=>p(F).getBlockRootClientId(e),[e]),[l,u]=O.useState();if(r!=="grid")return null;function d(p){n({style:{...t,layout:{...t?.layout,...p}}})}return a.jsxs(a.Fragment,{children:[a.jsx(oze,{clientId:c,contentRef:u,parentLayout:o}),s&&a.jsx(TNt,{clientId:e,bounds:l,onChange:d,parentLayout:o}),i&&window.__experimentalEnableGridInteractivity&&a.jsx(BNt,{layout:t?.layout,parentLayout:o,onChange:d,gridClientId:c,blockClientId:e})]})}const aze={useBlockProps:ize,edit:jNt,attributeKeys:["style"],hasSupport(){return!0}};function PNt({clientId:e}){const{templateLock:t,isLockedByParent:n,isEditingAsBlocks:o}=D(l=>{const{getContentLockingParent:u,getTemplateLock:d,getTemporarilyEditingAsBlocks:p}=Fe(l(F));return{templateLock:d(e),isLockedByParent:!!u(e),isEditingAsBlocks:p()===e}},[e]),{stopEditingAsBlocks:r}=Fe(ae(F)),s=!n&&t==="contentOnly",i=O.useCallback(()=>{r(e)},[e,r]);return!s&&!o?null:o&&!s&&a.jsx(Ie,{group:"other",children:a.jsx(bt,{onClick:i,children:m("Done")})})}const INt={edit:PNt,hasSupport(){return!0}},RZ="metadata";function DNt(e){return e?.attributes?.[RZ]?.type||(e.attributes={...e.attributes,[RZ]:{type:"object"}}),e}r0("blocks.registerBlockType","core/metadata/addMetaAttribute",DNt);const FNt={};function $Nt({name:e,clientId:t,metadata:{ignoredHookedBlocks:n=[]}={}}){const o=D(b=>b($e).getBlockTypes(),[]),r=O.useMemo(()=>o?.filter(({name:b,blockHooks:h})=>h&&e in h||n.includes(b)),[o,e,n]),s=D(b=>{const{getBlocks:h,getBlockRootClientId:g,getGlobalBlockCount:z}=b(F),y=g(t),x=r.reduce((v,M)=>{if(z(M.name)===0)return v;const A=M?.blockHooks?.[e];let _;switch(A){case"before":case"after":_=h(y);break;case"first_child":case"last_child":_=h(t);break;case void 0:_=[...h(y),...h(t)];break}const w=_?.find(k=>k.name===M.name);return w?{...v,[M.name]:w.clientId}:v},{});return Object.values(x).length>0?x:FNt},[r,e,t]),{getBlockIndex:i,getBlockCount:c,getBlockRootClientId:l}=D(F),{insertBlock:u,removeBlock:d}=ae(F);if(!r.length)return null;const p=r.reduce((b,h)=>{const[g]=h.name.split("/");return b[g]||(b[g]=[]),b[g].push(h),b},{}),f=(b,h)=>{const g=i(t),z=c(t),y=l(t);switch(h){case"before":case"after":u(b,h==="after"?g+1:g,y,!1);break;case"first_child":case"last_child":u(b,h==="first_child"?0:z,t,!1);break;case void 0:u(b,g+1,y,!1);break}};return a.jsx(Te,{children:a.jsxs(De,{className:"block-editor-hooks__block-hooks",title:m("Plugins"),initialOpen:!0,children:[a.jsx("p",{className:"block-editor-hooks__block-hooks-helptext",children:m("Manage the inclusion of blocks added automatically by plugins.")}),Object.keys(p).map(b=>a.jsxs(O.Fragment,{children:[a.jsx("h3",{children:b}),p[b].map(h=>{const g=h.name in s;return a.jsx(Be,{__nextHasNoMarginBottom:!0,checked:g,label:a.jsxs(Je,{justify:"flex-start",children:[a.jsx(b0,{icon:h.icon}),a.jsx("span",{children:h.title})]}),onChange:()=>{if(!g){const z=h.blockHooks[e];f(me(h.name),z);return}d(s[h.name],!1)}},h.title)})]},b))]})})}const VNt={edit:$Nt,attributeKeys:["metadata"],hasSupport(){return!0}};function QS(e){return!e||Object.keys(e).length===0}function jk(){const{clientId:e}=eo(),{updateBlockAttributes:t}=ae(F),{getBlockAttributes:n}=h0().select(F);return{updateBlockBindings:s=>{const{metadata:{bindings:i,...c}={}}=n(e),l={...i};Object.entries(s).forEach(([d,p])=>{if(!p&&l[d]){delete l[d];return}l[d]=p});const u={...c,bindings:l};QS(u.bindings)&&delete u.bindings,t(e,{metadata:QS(u)?void 0:u})},removeAllBlockBindings:()=>{const{metadata:{bindings:s,...i}={}}=n(e);t(e,{metadata:QS(i)?void 0:i})}}}const{DropdownMenuV2:Fd}=Fe(L0),HNt=()=>g0("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}};function UNt({fieldsList:e,attribute:t,binding:n}){const{getBlockBindingsSources:o}=Fe(t3),r=o(),{updateBlockBindings:s}=jk(),i=n?.args?.key;return a.jsx(a.Fragment,{children:Object.entries(e).map(([c,l],u)=>a.jsxs(O.Fragment,{children:[a.jsxs(Fd.Group,{children:[Object.keys(e).length>1&&a.jsx(Fd.GroupLabel,{children:r[c].label}),Object.entries(l).map(([d,p])=>a.jsxs(Fd.RadioItem,{onChange:()=>s({[t]:{source:c,args:{key:d}}}),name:t+"-binding",value:d,checked:d===i,children:[a.jsx(Fd.ItemLabel,{children:d}),a.jsx(Fd.ItemHelpText,{children:p})]},d))]}),u!==Object.keys(e).length-1&&a.jsx(Fd.Separator,{})]},c))})}function cze({attribute:e,binding:t}){const{source:n,args:o}=t||{},r=Fe(t3).getBlockBindingsSource(n),s=!r;return a.jsxs(Ye,{className:"block-editor-bindings__item",children:[a.jsx(l0,{truncate:!0,children:e}),!!t&&a.jsx(l0,{truncate:!0,variant:!s&&"muted",isDestructive:s,children:s?m("Invalid source"):o?.key||r?.label||n})]})}function XNt({bindings:e}){return a.jsx(a.Fragment,{children:Object.entries(e).map(([t,n])=>a.jsx(fw,{children:a.jsx(cze,{attribute:t,binding:n})},t))})}function GNt({attributes:e,bindings:t,fieldsList:n}){const{updateBlockBindings:o}=jk(),r=g0("medium","<");return a.jsx(a.Fragment,{children:e.map(s=>{const i=t[s];return a.jsx(Rt,{hasValue:()=>!!i,label:s,onDeselect:()=>{o({[s]:void 0})},children:a.jsx(Fd,{placement:r?"bottom-start":"left-start",gutter:r?8:36,trigger:a.jsx(fw,{children:a.jsx(cze,{attribute:s,binding:i})}),children:a.jsx(UNt,{fieldsList:n,attribute:s,binding:i})})},s)})})}const KNt=({name:e,metadata:t})=>{const n=h0(),o=O.useContext(Xp),{bindings:r}=t||{},{removeAllBlockBindings:s}=jk(),i=svt(e),c=HNt(),l={...r};Object.keys(l).forEach(h=>{(!aT(e,h)||l[h].source==="core/pattern-overrides")&&delete l[h]});const{canUpdateBlockBindings:u}=D(h=>({canUpdateBlockBindings:h(F).getSettings().canUpdateBlockBindings}),[]);if(!i||i.length===0)return null;const d={},{getBlockBindingsSources:p}=Fe(t3),f=p();Object.entries(f).forEach(([h,{getFieldsList:g,usesContext:z}])=>{if(g){const y={};if(z?.length)for(const v of z)y[v]=o[v];const x=g({registry:n,context:y});x&&(d[h]={...x})}}),Object.entries(d).forEach(([h,g])=>{Object.keys(g).length||delete d[h]});const b=!u||!Object.keys(d).length;return b&&Object.keys(l).length===0?null:a.jsx(Te,{group:"bindings",children:a.jsxs(Tr,{label:m("Attributes"),resetAll:()=>{s()},dropdownMenuProps:c,className:"block-editor-bindings__panel",children:[a.jsx(Yu,{isBordered:!0,isSeparated:!0,children:b?a.jsx(XNt,{bindings:l}):a.jsx(GNt,{attributes:i,bindings:l,fieldsList:d})}),a.jsx(Yu,{children:a.jsx(l0,{variant:"muted",children:m("Attributes connected to custom fields or other dynamic data.")})})]})})},YNt={edit:KNt,attributeKeys:["metadata"],hasSupport(){return!0}};function ZNt(e){return e.__experimentalLabel||st(e,"renaming",!0)&&(e.__experimentalLabel=(n,{context:o})=>{const{metadata:r}=n;if(o==="list-view"&&r?.name)return r.name}),e}r0("blocks.registerBlockType","core/metadata/addLabelCallback",ZNt);function QNt(e){NNt(e)}function JNt({clientId:e,layout:t}){const{isSelected:n,isDragging:o}=D(r=>{const{isBlockSelected:s,isDraggingBlocks:i}=r(F);return{isSelected:s(e),isDragging:i()}});return a.jsxs(a.Fragment,{children:[a.jsx(QNt,{clientId:e}),(n||o)&&a.jsx(oze,{clientId:e,parentLayout:t})]})}const eLt=Sn(e=>t=>t.attributes.layout?.type!=="grid"?a.jsx(e,{...t},"edit"):a.jsxs(a.Fragment,{children:[a.jsx(JNt,{clientId:t.clientId,layout:t.attributes.layout}),a.jsx(e,{...t},"edit")]}),"addGridVisualizerToBlockEdit");r0("editor.BlockEdit","core/editor/grid-visualizer",eLt);function Os(e){const t=e.style?.border||{};return{className:xge(e)||void 0,style:om({border:t})}}function ql(e){const{colors:t}=Sf(),n=Os(e),{borderColor:o}=e;if(o){const r=ab({colors:t,namedColor:o});n.style.borderColor=r.color}return n}function rm(e){const t=e.style?.shadow||"";return{style:om({shadow:t})}}function os(e){const{backgroundColor:t,textColor:n,gradient:o,style:r}=e,s=lt("background-color",t),i=lt("color",n),c=lr(o),l=c||r?.color?.gradient,u=$(i,c,{[s]:!l&&!!s,"has-text-color":n||r?.color?.text,"has-background":t||r?.color?.background||o||r?.color?.gradient,"has-link-color":r?.elements?.link?.color}),d=r?.color||{},p=om({color:d});return{className:u||void 0,style:p}}function bO(e){const{backgroundColor:t,textColor:n,gradient:o}=e,[r,s,i,c,l,u]=O0("color.palette.custom","color.palette.theme","color.palette.default","color.gradients.custom","color.gradients.theme","color.gradients.default"),d=O.useMemo(()=>[...r||[],...s||[],...i||[]],[r,s,i]),p=O.useMemo(()=>[...c||[],...l||[],...u||[]],[c,l,u]),f=os(e);if(t){const b=Up(d,t);f.style.backgroundColor=b.color}if(o&&(f.style.background=ube(p,o)),n){const b=Up(d,n);f.style.color=b.color}return f}function hO(e){const{style:t}=e,n=t?.spacing||{};return{style:om({spacing:n})}}const{kebabCase:tLt}=Fe(L0);function nLt(e,t){let n=e?.style?.typography||{};n={...n,fontSize:hk({size:e?.style?.typography?.fontSize},t)};const o=om({typography:n}),r=e?.fontFamily?`has-${tLt(e.fontFamily)}-font-family`:"",s=e?.style?.typography?.textAlign?`has-text-align-${e?.style?.typography?.textAlign}`:"";return{className:$(r,s,l5(e?.fontSize)),style:o}}FEt([VP,XP,Bge,Nge,KP,Jge,Lhe,vNt,INt,VNt,YNt,aze].filter(Boolean));HEt([VP,XP,pTt,KP,Ige,QBt,Jge,Fge,Vge,_ge,Lhe,ONt,aze]);UEt([VP,XP,Bge,cBt,Nge,_ge,Ige,KP,Fge,Vge]);const WZ={button:"wp-element-button",caption:"wp-element-caption"},ro=e=>WZ[e]?WZ[e]:"";function QP(e,t,n){if(e==null||e===!1)return;if(Array.isArray(e))return JS(e,t,n);switch(typeof e){case"string":case"number":return}const{type:o,props:r}=e;switch(o){case O.StrictMode:case O.Fragment:return JS(r.children,t,n);case C1:return;case ht.Content:return lze(t,n);case BP:t.push(r.value);return}switch(typeof o){case"string":return typeof r.children<"u"?JS(r.children,t,n):void 0;case"function":const s=o.prototype&&typeof o.prototype.render=="function"?new o(r).render():o(r);return QP(s,t,n)}}function JS(e,...t){e=Array.isArray(e)?e:[e];for(let n=0;nn instanceof un?n:un.fromHTMLString(n))}function rLt({clientId:e,resizableBoxProps:t,...n}){return a.jsx(Gh,{clientId:e,__unstablePopoverSlot:"block-toolbar",...n,children:a.jsx(Ui,{...t})})}function sLt({rules:e}){const{clientIds:t,selectPrevious:n,message:o}=D(l=>Fe(l(F)).getRemovalPromptData()),{clearBlockRemovalPrompt:r,setBlockRemovalRules:s,privateRemoveBlocks:i}=Fe(ae(F));if(O.useEffect(()=>(s(e),()=>{s()}),[e,s]),!o)return;const c=()=>{i(t,n,!0),r()};return a.jsxs(fn,{title:m("Be careful!"),onRequestClose:r,size:"medium",children:[a.jsx("p",{children:o}),a.jsxs(Je,{justify:"right",children:[a.jsx(fe,{variant:"tertiary",onClick:r,__next40pxDefaultSize:!0,children:m("Cancel")}),a.jsx(fe,{variant:"primary",onClick:c,__next40pxDefaultSize:!0,children:m("Delete")})]})]})}const TZ=[{value:"fill",label:Oe("Fill","Scale option for dimensions control"),help:m("Fill the space by stretching the content.")},{value:"contain",label:Oe("Contain","Scale option for dimensions control"),help:m("Fit the content to the space without clipping.")},{value:"cover",label:Oe("Cover","Scale option for dimensions control"),help:m("Fill the space by clipping what doesn't fit.")},{value:"none",label:Oe("None","Scale option for dimensions control"),help:m("Do not adjust the sizing of the content. Content that is too large will be clipped, and content that is too small will have additional padding.")},{value:"scale-down",label:Oe("Scale down","Scale option for dimensions control"),help:m("Scale down the content to fit the space if it is too big. Content that is too small will have additional padding.")}];function iLt({panelId:e,value:t,onChange:n,options:o=TZ,defaultValue:r=TZ[0].value,isShownByDefault:s=!0}){const i=t??"fill",c=O.useMemo(()=>o.reduce((l,u)=>(l[u.value]=u.help,l),{}),[o]);return a.jsx(Rt,{label:m("Scale"),isShownByDefault:s,hasValue:()=>i!==r,onDeselect:()=>n(r),panelId:e,children:a.jsx(wn,{__nextHasNoMarginBottom:!0,label:m("Scale"),isBlock:!0,help:c[i],value:i,onChange:n,size:"__unstable-large",children:o.map(l=>a.jsx(W0,{...l},l.value))})})}const EZ=we(Rt,{target:"ef8pe3d0"})({name:"957xgf",styles:"grid-column:span 1"});function aLt({panelId:e,value:t={},onChange:n=()=>{},units:o,isShownByDefault:r=!0}){var s,i;const c=t.width==="auto"?"":(s=t.width)!==null&&s!==void 0?s:"",l=t.height==="auto"?"":(i=t.height)!==null&&i!==void 0?i:"",u=d=>p=>{const f={...t};p?f[d]=p:delete f[d],n(f)};return a.jsxs(a.Fragment,{children:[a.jsx(EZ,{label:m("Width"),isShownByDefault:r,hasValue:()=>c!=="",onDeselect:u("width"),panelId:e,children:a.jsx(H0,{label:m("Width"),placeholder:m("Auto"),labelPosition:"top",units:o,min:0,value:c,onChange:u("width"),size:"__unstable-large"})}),a.jsx(EZ,{label:m("Height"),isShownByDefault:r,hasValue:()=>l!=="",onDeselect:u("height"),panelId:e,children:a.jsx(H0,{label:m("Height"),placeholder:m("Auto"),labelPosition:"top",units:o,min:0,value:l,onChange:u("height"),size:"__unstable-large"})})]})}function cLt({panelId:e,value:t={},onChange:n=()=>{},aspectRatioOptions:o,defaultAspectRatio:r="auto",scaleOptions:s,defaultScale:i="fill",unitsOptions:c,tools:l=["aspectRatio","widthHeight","scale"]}){const u=t.width===void 0||t.width==="auto"?null:t.width,d=t.height===void 0||t.height==="auto"?null:t.height,p=t.aspectRatio===void 0||t.aspectRatio==="auto"?null:t.aspectRatio,f=t.scale===void 0||t.scale==="fill"?null:t.scale,[b,h]=O.useState(f),[g,z]=O.useState(p),y=u&&d?"custom":g,x=p||u&&d;return a.jsxs(a.Fragment,{children:[l.includes("aspectRatio")&&a.jsx(UMe,{panelId:e,options:o,defaultValue:r,value:y,onChange:v=>{const M={...t};v=v==="auto"?null:v,z(v),v?M.aspectRatio=v:delete M.aspectRatio,v?b?M.scale=b:(M.scale=i,h(i)):delete M.scale,v!=="custom"&&u&&d&&delete M.height,n(M)}}),l.includes("widthHeight")&&a.jsx(aLt,{panelId:e,units:c,value:{width:u,height:d},onChange:({width:v,height:M})=>{const A={...t};v=v==="auto"?null:v,M=M==="auto"?null:M,v?A.width=v:delete A.width,M?A.height=M:delete A.height,v&&M?delete A.aspectRatio:g&&(A.aspectRatio=g),!g&&!!v!=!!M?delete A.scale:b?A.scale=b:(A.scale=i,h(i)),n(A)}}),l.includes("scale")&&x&&a.jsx(iLt,{panelId:e,options:s,defaultValue:i,value:b,onChange:v=>{const M={...t};v=v==="fill"?null:v,h(v),v?M.scale=v:delete M.scale,n(M)}})]})}const BZ=[{label:Oe("Thumbnail","Image size option for resolution control"),value:"thumbnail"},{label:Oe("Medium","Image size option for resolution control"),value:"medium"},{label:Oe("Large","Image size option for resolution control"),value:"large"},{label:Oe("Full Size","Image size option for resolution control"),value:"full"}];function lLt({panelId:e,value:t,onChange:n,options:o=BZ,defaultValue:r=BZ[0].value,isShownByDefault:s=!0}){const i=t??r;return a.jsx(Rt,{hasValue:()=>i!==r,label:m("Resolution"),onDeselect:()=>n(r),isShownByDefault:s,panelId:e,children:a.jsx(i0,{__nextHasNoMarginBottom:!0,label:m("Resolution"),value:i,options:o,onChange:n,help:m("Select the size of the source image."),size:"__unstable-large"})})}const p0={};emt(p0,{...bEt,ExperimentalBlockCanvas:PSt,ExperimentalBlockEditorProvider:ok,getDuotoneFilter:PP,getRichTextValues:oLt,PrivateInserter:yhe,PrivateQuickInserter:Ahe,extractWords:Lj,getNormalizedSearchTerms:jw,normalizeString:u5,PrivateListView:Ome,ResizableBoxPopover:rLt,BlockInfo:Ek,useHasBlockToolbar:ime,cleanEmptyObject:ni,BlockQuickNavigation:Sge,LayoutStyle:DAt,BlockRemovalWarningModal:sLt,useLayoutClasses:nze,useLayoutStyles:ANt,DimensionsTool:cLt,ResolutionTool:lLt,TabbedSidebar:zhe,TextAlignmentControl:TMe,usesContextKey:lMe,useFlashEditableBlocks:c2e,globalStylesDataKey:Rw,globalStylesLinksDataKey:xfe,selectBlockPatternsKey:H2,requiresWrapperOnCopy:h2e,PrivateRichText:kk,PrivateInserterLibrary:Wge,reusableBlocksSelectKey:_j,PrivateBlockPopover:pk,PrivatePublishDateTimePicker:Tge,useSpacingSizes:mMe,useBlockDisplayTitle:ed,__unstableBlockStyleVariationOverridesWithConfig:mNt,setBackgroundStyleDefaults:IP,useBlockBindingsUtils:jk,sectionRootClientIdKey:_fe});let eC;const tC=new WeakMap;function uLt(e){if(eC||(eC=$oe(p0)),!tC.has(e)){const t=eC.getRichTextValues([e]);tC.set(e,t)}return tC.get(e)}const nC=new WeakMap;function dLt(e){if(!nC.has(e)){const t=[];for(const n of uLt(e))n&&n.replacements.forEach(({type:o,attributes:r})=>{o==="core/footnote"&&t.push(r["data-fn"])});nC.set(e,t)}return nC.get(e)}function pLt(e){return e.flatMap(dLt)}let oC={};function fLt(e,t){const n={blocks:e};if(!t||t.footnotes===void 0)return n;const o=pLt(e),r=t.footnotes?JSON.parse(t.footnotes):[];if(r.map(d=>d.id).join("")===o.join(""))return n;const i=o.map(d=>r.find(p=>p.id===d)||oC[d]||{id:d,content:""});function c(d){if(!d||Array.isArray(d)||typeof d!="object")return d;d={...d};for(const p in d){const f=d[p];if(Array.isArray(f)){d[p]=f.map(c);continue}if(typeof f!="string"&&!(f instanceof un))continue;const b=typeof f=="string"?un.fromHTMLString(f):new un(f);let h=!1;b.replacements.forEach(g=>{if(g.type==="core/footnote"){const z=g.attributes["data-fn"],y=o.indexOf(z),x=m0({html:g.innerHTML});x.text=String(y+1),x.formats=Array.from({length:x.text.length},()=>x.formats[0]),x.replacements=Array.from({length:x.text.length},()=>x.replacements[0]),g.innerHTML=K1({value:x}),h=!0}}),h&&(d[p]=typeof f=="string"?b.toHTMLString():b)}return d}function l(d){return d.map(p=>({...p,attributes:c(p.attributes),innerBlocks:l(p.innerBlocks)}))}const u=l(e);return oC={...oC,...r.reduce((d,p)=>(o.includes(p.id)||(d[p.id]=p),d),{})},{meta:{...t,footnotes:JSON.stringify(i)},blocks:u}}const bLt=[],NZ=new WeakMap;function id(e,t,{id:n}={}){const o=CN(e,t),r=n??o,{getEntityRecord:s,getEntityRecordEdits:i}=D(bo),{content:c,editedBlocks:l,meta:u}=D(z=>{if(!r)return{};const{getEditedEntityRecord:y}=z(bo),x=y(e,t,r);return{editedBlocks:x.blocks,content:x.content,meta:x.meta}},[e,t,r]),{__unstableCreateUndoLevel:d,editEntityRecord:p}=ae(bo),f=O.useMemo(()=>{if(!r)return;if(l)return l;if(!c||typeof c!="string")return bLt;const z=i(e,t,r),x=!z||!Object.keys(z).length?s(e,t,r):z;let v=NZ.get(x);return v||(v=Yn(c),NZ.set(x,v)),v},[e,t,r,l,c,s,i]),b=O.useCallback(z=>fLt(z,u),[u]),h=O.useCallback((z,y)=>{if(f===z)return d(e,t,r);const{selection:v,...M}=y,A={selection:v,content:({blocks:_=[]})=>pd(_),...b(z)};p(e,t,r,A,{isCached:!1,...M})},[e,t,r,f,b,d,p]),g=O.useCallback((z,y)=>{const{selection:x,...v}=y,M=b(z),A={selection:x,...M};p(e,t,r,A,{isCached:!0,...v})},[e,t,r,b,p]);return[f,g,h]}function Z0(e,t,n,o){const r=CN(e,t),s=o??r,{value:i,fullValue:c}=D(d=>{const{getEntityRecord:p,getEditedEntityRecord:f}=d(bo),b=p(e,t,s),h=f(e,t,s);return b&&h?{value:h[n],fullValue:b[n]}:{}},[e,t,s,n]),{editEntityRecord:l}=ae(bo),u=O.useCallback(d=>{l(e,t,s,{[n]:d})},[l,e,t,s,n]);return[i,u,c]}const JP=[..._oe,...woe.filter(e=>!!e.name)],hLt=JP.reduce((e,t)=>{const{kind:n,name:o,plural:r}=t;return e[S2(n,o)]=(s,i,c)=>ff(s,n,o,i,c),r&&(e[S2(n,r,"get")]=(s,i)=>Vx(s,n,o,i)),e},{}),mLt=JP.reduce((e,t)=>{const{kind:n,name:o,plural:r}=t;if(e[S2(n,o)]=(s,i)=>joe(n,o,s,i),r){const s=S2(n,r,"get");e[s]=(...i)=>yv(n,o,...i),e[s].shouldInvalidate=i=>yv.shouldInvalidate(i,n,o)}return e},{}),MLt=JP.reduce((e,t)=>{const{kind:n,name:o}=t;return e[S2(n,o,"save")]=(r,s)=>voe(n,o,r,s),e[S2(n,o,"delete")]=(r,s,i)=>yoe(n,o,r,s,i),e},{}),gLt=()=>({reducer:zEe,actions:{...jTe,...MLt,...IBe()},selectors:{...rBe,...hLt},resolvers:{...TBe,...mLt}}),ce=er(bo,gLt());$oe(ce).registerPrivateSelectors(lBe);Qs(ce);const zLt={...PW,richEditingEnabled:!0,codeEditingEnabled:!0,fontLibraryEnabled:!0,enableCustomFields:void 0,defaultRenderingMode:"post-only"};function OLt(e={},t){switch(t.type){case"SET_IS_READY":return{...e,[t.kind]:{...e[t.kind],[t.name]:!0}}}return e}function ALt(e={},t){var n;switch(t.type){case"REGISTER_ENTITY_ACTION":return{...e,[t.kind]:{...e[t.kind],[t.name]:[...((n=e[t.kind]?.[t.name])!==null&&n!==void 0?n:[]).filter(r=>r.id!==t.config.id),t.config]}};case"UNREGISTER_ENTITY_ACTION":{var o;return{...e,[t.kind]:{...e[t.kind],[t.name]:((o=e[t.kind]?.[t.name])!==null&&o!==void 0?o:[]).filter(r=>r.id!==t.actionId)}}}}return e}const yLt=zo({actions:ALt,isReady:OLt});function e9(e){return e&&typeof e=="object"&&"raw"in e?e.raw:e}function vLt(e=null,t){switch(t.type){case"SET_EDITED_POST":return t.postId}return e}function xLt(e=null,t){switch(t.type){case"SET_CURRENT_TEMPLATE_ID":return t.id}return e}function _Lt(e=null,t){switch(t.type){case"SET_EDITED_POST":return t.postType}return e}function wLt(e={isValid:!0},t){switch(t.type){case"SET_TEMPLATE_VALIDITY":return{...e,isValid:t.isValid}}return e}function kLt(e={},t){switch(t.type){case"REQUEST_POST_UPDATE_START":case"REQUEST_POST_UPDATE_FINISH":return{pending:t.type==="REQUEST_POST_UPDATE_START",options:t.options||{}}}return e}function qLt(e={},t){switch(t.type){case"REQUEST_POST_DELETE_START":case"REQUEST_POST_DELETE_FINISH":return{pending:t.type==="REQUEST_POST_DELETE_START"}}return e}function SLt(e={isLocked:!1},t){switch(t.type){case"UPDATE_POST_LOCK":return t.lock}return e}function CLt(e={},t){switch(t.type){case"LOCK_POST_SAVING":return{...e,[t.lockName]:!0};case"UNLOCK_POST_SAVING":{const{[t.lockName]:n,...o}=e;return o}}return e}function RLt(e={},t){switch(t.type){case"LOCK_POST_AUTOSAVING":return{...e,[t.lockName]:!0};case"UNLOCK_POST_AUTOSAVING":{const{[t.lockName]:n,...o}=e;return o}}return e}function WLt(e=zLt,t){switch(t.type){case"UPDATE_EDITOR_SETTINGS":return{...e,...t.settings}}return e}function TLt(e="post-only",t){switch(t.type){case"SET_RENDERING_MODE":return t.mode}return e}function ELt(e="Desktop",t){switch(t.type){case"SET_DEVICE_TYPE":return t.deviceType}return e}function BLt(e=[],t){switch(t.type){case"REMOVE_PANEL":if(!e.includes(t.panelName))return[...e,t.panelName]}return e}function NLt(e=!1,t){switch(t.type){case"SET_IS_LIST_VIEW_OPENED":return t.isOpen?!1:e;case"SET_IS_INSERTER_OPENED":return t.value}return e}function LLt(e=!1,t){switch(t.type){case"SET_IS_INSERTER_OPENED":return t.value?!1:e;case"SET_IS_LIST_VIEW_OPENED":return t.isOpen}return e}function jLt(e={current:null}){return e}function PLt(e={current:null}){return e}function ILt(e=!1,t){switch(t.type){case"OPEN_PUBLISH_SIDEBAR":return!0;case"CLOSE_PUBLISH_SIDEBAR":return!1;case"TOGGLE_PUBLISH_SIDEBAR":return!e}return e}const DLt=zo({postId:vLt,postType:_Lt,templateId:xLt,saving:kLt,deleting:qLt,postLock:SLt,template:wLt,postSavingLock:CLt,editorSettings:WLt,postAutosavingLock:RLt,renderingMode:TLt,deviceType:ELt,removedPanels:BLt,blockInserterPanel:NLt,inserterSidebarToggleRef:PLt,listViewPanel:LLt,listViewToggleRef:jLt,publishSidebarActive:ILt,dataviews:yLt}),FLt=new Set(["meta"]),$Lt="core/editor",uze="SAVE_POST_NOTICE_ID",dze="TRASH_POST_NOTICE_ID",pze=/%(?:postname|pagename)%/,fze=60*1e3,VLt=["title","excerpt","content"],HLt="uncategorized",d1="wp_template",vo="wp_template_part",ul="wp_block",th="wp_navigation",mO={custom:"custom",theme:"theme",plugin:"plugin"},bze=["wp_template","wp_template_part"],hze=[...bze,"wp_block","wp_navigation"];function ULt(e){return e==="header"?Ble:e==="footer"?Ele:e==="sidebar"?Nle:Rh}const Sz={},XLt=nt(e=>()=>e(ce).hasUndo()),GLt=nt(e=>()=>e(ce).hasRedo());function mze(e){return ur(e).status==="auto-draft"}function Mze(e){return"content"in Cz(e)}const t9=nt(e=>t=>{const n=oi(t),o=ri(t);return e(ce).hasEditsForEntityRecord("postType",n,o)}),KLt=nt(e=>t=>{const n=e(ce).__experimentalGetDirtyEntityRecords(),{type:o,id:r}=ur(t);return n.some(s=>s.kind!=="postType"||s.name!==o||s.key!==r)});function YLt(e){return!t9(e)&&mze(e)}const ur=nt(e=>t=>{const n=ri(t),o=oi(t),r=e(ce).getRawEntityRecord("postType",o,n);return r||Sz});function oi(e){return e.postType}function ri(e){return e.postId}function ZLt(e){return e.templateId}function QLt(e){var t;return(t=ur(e)._links?.["version-history"]?.[0]?.count)!==null&&t!==void 0?t:0}function JLt(e){var t;return(t=ur(e)._links?.["predecessor-version"]?.[0]?.id)!==null&&t!==void 0?t:null}const Cz=nt(e=>t=>{const n=oi(t),o=ri(t);return e(ce).getEntityRecordEdits("postType",n,o)||Sz});function JM(e,t){switch(t){case"type":return oi(e);case"id":return ri(e);default:const n=ur(e);if(!n.hasOwnProperty(t))break;return e9(n[t])}}const e7t=at((e,t)=>{const n=Cz(e);return n.hasOwnProperty(t)?{...JM(e,t),...n[t]}:JM(e,t)},(e,t)=>[JM(e,t),Cz(e)[t]]);function Ln(e,t){switch(t){case"content":return Rz(e)}const n=Cz(e);return n.hasOwnProperty(t)?FLt.has(t)?e7t(e,t):n[t]:JM(e,t)}const gze=nt(e=>(t,n)=>{if(!VLt.includes(n)&&n!=="preview_link")return;const o=oi(t);if(o==="wp_template")return!1;const r=ri(t),s=e(ce).getCurrentUser()?.id,i=e(ce).getAutosave(o,r,s);if(i)return e9(i[n])});function t7t(e){return Ln(e,"status")==="private"?"private":Ln(e,"password")?"password":"public"}function n7t(e){return ur(e).status==="pending"}function n9(e,t){const n=t||ur(e);return["publish","private"].indexOf(n.status)!==-1||n.status==="future"&&!Ipe(new Date(Number(ww(n.date))-fze))}function o7t(e){return ur(e).status==="future"&&!n9(e)}function r7t(e){const t=ur(e);return t9(e)||["publish","private","future"].indexOf(t.status)===-1}function zze(e){return sm(e)?!1:!!Ln(e,"title")||!!Ln(e,"excerpt")||!Oze(e)||w1.OS==="native"}const Oze=nt(e=>t=>{const n=ri(t),o=oi(t),r=e(ce).getEditedEntityRecord("postType",o,n);if(typeof r.content!="function")return!r.content;const s=Ln(t,"blocks");if(s.length===0)return!0;if(s.length>1)return!1;const i=s[0].name;return i!==jn()&&i!==Lu()?!1:!Rz(t)}),s7t=nt(e=>t=>{if(!zze(t)||vze(t))return!1;const n=oi(t);if(n==="wp_template")return!1;const o=ri(t),r=e(ce).hasFetchedAutosaves(n,o),s=e(ce).getCurrentUser()?.id,i=e(ce).getAutosave(n,o,s);return r?!i||Mze(t)?!0:["title","excerpt","meta"].some(c=>e9(i[c])!==Ln(t,c)):!1});function i7t(e){const t=Ln(e,"date"),n=new Date(Number(ww(t))-fze);return Ipe(n)}function a7t(e){const t=Ln(e,"date"),n=Ln(e,"modified"),o=ur(e).status;return o==="draft"||o==="auto-draft"||o==="pending"?t===n||t===null:!1}function c7t(e){return!!e.deleting.pending}function sm(e){return!!e.saving.pending}const l7t=nt(e=>t=>{const n=e(ce).__experimentalGetEntitiesBeingSaved(),{type:o,id:r}=ur(t);return n.some(s=>s.kind!=="postType"||s.name!==o||s.key!==r)}),u7t=nt(e=>t=>{const n=oi(t),o=ri(t);return!e(ce).getLastEntitySaveError("postType",n,o)}),d7t=nt(e=>t=>{const n=oi(t),o=ri(t);return!!e(ce).getLastEntitySaveError("postType",n,o)});function p7t(e){return sm(e)&&!!e.saving.options?.isAutosave}function f7t(e){return sm(e)&&!!e.saving.options?.isPreview}function b7t(e){if(e.saving.pending||sm(e))return;let t=gze(e,"preview_link");(!t||ur(e).status==="draft")&&(t=Ln(e,"link"),t&&(t=wt(t,{preview:!0})));const n=Ln(e,"featured_media");return t&&n?wt(t,{_thumbnail_id:n}):t}const h7t=nt(e=>()=>{const t=e(F).getBlocks();if(t.length>2)return null;let n;if(t.length===1&&(n=t[0].name,n==="core/embed")){const o=t[0].attributes?.providerNameSlug;["youtube","vimeo"].includes(o)?n="core/video":["spotify","soundcloud"].includes(o)&&(n="core/audio")}switch(t.length===2&&t[1].name==="core/paragraph"&&(n=t[0].name),n){case"core/image":return"image";case"core/quote":case"core/pullquote":return"quote";case"core/gallery":return"gallery";case"core/video":return"video";case"core/audio":return"audio";default:return null}}),Rz=nt(e=>t=>{const n=ri(t),o=oi(t),r=e(ce).getEditedEntityRecord("postType",o,n);if(r){if(typeof r.content=="function")return r.content(r);if(r.blocks)return pd(r.blocks);if(r.content)return r.content}return""});function m7t(e){return sm(e)&&!n9(e)&&Ln(e,"status")==="publish"}function Aze(e){const t=Ln(e,"permalink_template");return pze.test(t)}function M7t(e){const t=yze(e);if(!t)return null;const{prefix:n,postName:o,suffix:r}=t;return Aze(e)?n+o+r:n}function g7t(e){return Ln(e,"slug")||hB(Ln(e,"title"))||ri(e)}function yze(e){const t=Ln(e,"permalink_template");if(!t)return null;const n=Ln(e,"slug")||Ln(e,"generated_slug"),[o,r]=t.split(pze);return{prefix:o,postName:n,suffix:r}}function z7t(e){return e.postLock.isLocked}function O7t(e){return Object.keys(e.postSavingLock).length>0}function vze(e){return Object.keys(e.postAutosavingLock).length>0}function A7t(e){return e.postLock.isTakeover}function y7t(e){return e.postLock.user}function v7t(e){return e.postLock.activePostLock}function x7t(e){return!!ur(e)._links?.hasOwnProperty("wp:action-unfiltered-html")}const _7t=nt(e=>()=>!!e(Qe).get("core","isPublishSidebarEnabled")),w7t=at(e=>Ln(e,"blocks")||Yn(Rz(e)),e=>[Ln(e,"blocks"),Rz(e)]);function xze(e,t){return e.removedPanels.includes(t)}const k7t=nt(e=>(t,n)=>{const o=e(Qe).get("core","inactivePanels");return!xze(t,n)&&!o?.includes(n)}),q7t=nt(e=>(t,n)=>!!e(Qe).get("core","openPanels")?.includes(n));function S7t(e){return Re("select('core/editor').getEditorSelectionStart",{since:"5.8",alternative:"select('core/editor').getEditorSelection"}),Ln(e,"selection")?.selectionStart}function C7t(e){return Re("select('core/editor').getEditorSelectionStart",{since:"5.8",alternative:"select('core/editor').getEditorSelection"}),Ln(e,"selection")?.selectionEnd}function R7t(e){return Ln(e,"selection")}function W7t(e){return!!e.postId}function B5(e){return e.editorSettings}function UT(e){return e.renderingMode}function T7t(e){return e.deviceType}function E7t(e){return e.listViewPanel}function B7t(e){return!!e.blockInserterPanel}const N7t=nt(e=>()=>{var t;return(t=e(Qe).get("core","editorMode"))!==null&&t!==void 0?t:"visual"});function L7t(){return Re("select('core/editor').getStateBeforeOptimisticTransaction",{since:"5.7",hint:"No state history is kept on this store anymore"}),null}function j7t(){return Re("select('core/editor').inSomeHistory",{since:"5.7",hint:"No state history is kept on this store anymore"}),!1}function Lt(e){return nt(t=>(n,...o)=>(Re("`wp.data.select( 'core/editor' )."+e+"`",{since:"5.3",alternative:"`wp.data.select( 'core/block-editor' )."+e+"`",version:"6.2"}),t(F)[e](...o)))}const P7t=Lt("getBlockName"),I7t=Lt("isBlockValid"),D7t=Lt("getBlockAttributes"),F7t=Lt("getBlock"),$7t=Lt("getBlocks"),V7t=Lt("getClientIdsOfDescendants"),H7t=Lt("getClientIdsWithDescendants"),U7t=Lt("getGlobalBlockCount"),X7t=Lt("getBlocksByClientId"),G7t=Lt("getBlockCount"),K7t=Lt("getBlockSelectionStart"),Y7t=Lt("getBlockSelectionEnd"),Z7t=Lt("getSelectedBlockCount"),Q7t=Lt("hasSelectedBlock"),J7t=Lt("getSelectedBlockClientId"),ejt=Lt("getSelectedBlock"),tjt=Lt("getBlockRootClientId"),njt=Lt("getBlockHierarchyRootClientId"),ojt=Lt("getAdjacentBlockClientId"),rjt=Lt("getPreviousBlockClientId"),sjt=Lt("getNextBlockClientId"),ijt=Lt("getSelectedBlocksInitialCaretPosition"),ajt=Lt("getMultiSelectedBlockClientIds"),cjt=Lt("getMultiSelectedBlocks"),ljt=Lt("getFirstMultiSelectedBlockClientId"),ujt=Lt("getLastMultiSelectedBlockClientId"),djt=Lt("isFirstMultiSelectedBlock"),pjt=Lt("isBlockMultiSelected"),fjt=Lt("isAncestorMultiSelected"),bjt=Lt("getMultiSelectedBlocksStartClientId"),hjt=Lt("getMultiSelectedBlocksEndClientId"),mjt=Lt("getBlockOrder"),Mjt=Lt("getBlockIndex"),gjt=Lt("isBlockSelected"),zjt=Lt("hasSelectedInnerBlock"),Ojt=Lt("isBlockWithinSelection"),Ajt=Lt("hasMultiSelection"),yjt=Lt("isMultiSelecting"),vjt=Lt("isSelectionEnabled"),xjt=Lt("getBlockMode"),_jt=Lt("isTyping"),wjt=Lt("isCaretWithinFormattedText"),kjt=Lt("getBlockInsertionPoint"),qjt=Lt("isBlockInsertionPointVisible"),Sjt=Lt("isValidTemplate"),Cjt=Lt("getTemplate"),Rjt=Lt("getTemplateLock"),Wjt=Lt("canInsertBlockType"),Tjt=Lt("getInserterItems"),Ejt=Lt("hasInserterItems"),Bjt=Lt("getBlockListSettings");function N5(e){return B5(e)?.defaultTemplateTypes}const L5=at(e=>{var t;return((t=B5(e)?.defaultTemplatePartAreas)!==null&&t!==void 0?t:[]).map(o=>({...o,icon:ULt(o.icon)}))},e=>[B5(e)?.defaultTemplatePartAreas]),_ze=at((e,t)=>{var n;const o=N5(e);return o&&(n=Object.values(o).find(r=>r.slug===t))!==null&&n!==void 0?n:Sz},e=>[N5(e)]),Njt=at((e,t)=>{if(!t)return Sz;const{description:n,slug:o,title:r,area:s}=t,{title:i,description:c}=_ze(e,o),l=typeof r=="string"?r:r?.rendered,u=typeof n=="string"?n:n?.raw,d=L5(e).find(p=>s===p.area)?.icon||Af;return{title:l&&l!==o?l:i||o,description:u||c,icon:d}},e=>[N5(e),L5(e)]),Ljt=nt(e=>t=>{const n=oi(t);return e(ce).getPostType(n)?.labels?.singular_name});function jjt(e){return e.publishSidebarActive}const Pjt=Object.freeze(Object.defineProperty({__proto__:null,__experimentalGetDefaultTemplatePartAreas:L5,__experimentalGetDefaultTemplateType:_ze,__experimentalGetDefaultTemplateTypes:N5,__experimentalGetTemplateInfo:Njt,__unstableIsEditorReady:W7t,canInsertBlockType:Wjt,canUserUseUnfilteredHTML:x7t,didPostSaveRequestFail:d7t,didPostSaveRequestSucceed:u7t,getActivePostLock:v7t,getAdjacentBlockClientId:ojt,getAutosaveAttribute:gze,getBlock:F7t,getBlockAttributes:D7t,getBlockCount:G7t,getBlockHierarchyRootClientId:njt,getBlockIndex:Mjt,getBlockInsertionPoint:kjt,getBlockListSettings:Bjt,getBlockMode:xjt,getBlockName:P7t,getBlockOrder:mjt,getBlockRootClientId:tjt,getBlockSelectionEnd:Y7t,getBlockSelectionStart:K7t,getBlocks:$7t,getBlocksByClientId:X7t,getClientIdsOfDescendants:V7t,getClientIdsWithDescendants:H7t,getCurrentPost:ur,getCurrentPostAttribute:JM,getCurrentPostId:ri,getCurrentPostLastRevisionId:JLt,getCurrentPostRevisionsCount:QLt,getCurrentPostType:oi,getCurrentTemplateId:ZLt,getDeviceType:T7t,getEditedPostAttribute:Ln,getEditedPostContent:Rz,getEditedPostPreviewLink:b7t,getEditedPostSlug:g7t,getEditedPostVisibility:t7t,getEditorBlocks:w7t,getEditorMode:N7t,getEditorSelection:R7t,getEditorSelectionEnd:C7t,getEditorSelectionStart:S7t,getEditorSettings:B5,getFirstMultiSelectedBlockClientId:ljt,getGlobalBlockCount:U7t,getInserterItems:Tjt,getLastMultiSelectedBlockClientId:ujt,getMultiSelectedBlockClientIds:ajt,getMultiSelectedBlocks:cjt,getMultiSelectedBlocksEndClientId:hjt,getMultiSelectedBlocksStartClientId:bjt,getNextBlockClientId:sjt,getPermalink:M7t,getPermalinkParts:yze,getPostEdits:Cz,getPostLockUser:y7t,getPostTypeLabel:Ljt,getPreviousBlockClientId:rjt,getRenderingMode:UT,getSelectedBlock:ejt,getSelectedBlockClientId:J7t,getSelectedBlockCount:Z7t,getSelectedBlocksInitialCaretPosition:ijt,getStateBeforeOptimisticTransaction:L7t,getSuggestedPostFormat:h7t,getTemplate:Cjt,getTemplateLock:Rjt,hasChangedContent:Mze,hasEditorRedo:GLt,hasEditorUndo:XLt,hasInserterItems:Ejt,hasMultiSelection:Ajt,hasNonPostEntityChanges:KLt,hasSelectedBlock:Q7t,hasSelectedInnerBlock:zjt,inSomeHistory:j7t,isAncestorMultiSelected:fjt,isAutosavingPost:p7t,isBlockInsertionPointVisible:qjt,isBlockMultiSelected:pjt,isBlockSelected:gjt,isBlockValid:I7t,isBlockWithinSelection:Ojt,isCaretWithinFormattedText:wjt,isCleanNewPost:YLt,isCurrentPostPending:n7t,isCurrentPostPublished:n9,isCurrentPostScheduled:o7t,isDeletingPost:c7t,isEditedPostAutosaveable:s7t,isEditedPostBeingScheduled:i7t,isEditedPostDateFloating:a7t,isEditedPostDirty:t9,isEditedPostEmpty:Oze,isEditedPostNew:mze,isEditedPostPublishable:r7t,isEditedPostSaveable:zze,isEditorPanelEnabled:k7t,isEditorPanelOpened:q7t,isEditorPanelRemoved:xze,isFirstMultiSelectedBlock:djt,isInserterOpened:B7t,isListViewOpened:E7t,isMultiSelecting:yjt,isPermalinkEditable:Aze,isPostAutosavingLocked:vze,isPostLockTakeover:A7t,isPostLocked:z7t,isPostSavingLocked:O7t,isPreviewingPost:f7t,isPublishSidebarEnabled:_7t,isPublishSidebarOpened:jjt,isPublishingPost:m7t,isSavingNonPostEntityChanges:l7t,isSavingPost:sm,isSelectionEnabled:vjt,isTyping:_jt,isValidTemplate:Sjt},Symbol.toStringTag,{value:"Module"}));function Ijt(e,t){return`wp-autosave-block-editor-post-${t?"auto-draft":e}`}function Djt(e,t,n,o,r){window.sessionStorage.setItem(Ijt(e,t),JSON.stringify({post_title:n,content:o,excerpt:r}))}function Fjt(e){var t;const{previousPost:n,post:o,postType:r}=e;if(e.options?.isAutosave)return[];const s=["publish","private","future"],i=s.includes(n.status),c=s.includes(o.status),l=o.status==="trash"&&n.status!=="trash";let u,d=(t=r?.viewable)!==null&&t!==void 0?t:!1,p;l?(u=r.labels.item_trashed,d=!1):!i&&!c?(u=m("Draft saved."),p=!0):i&&!c?(u=r.labels.item_reverted_to_draft,d=!1):!i&&c?u={publish:r.labels.item_published,private:r.labels.item_published_privately,future:r.labels.item_scheduled}[o.status]:u=r.labels.item_updated;const f=[];return d&&f.push({label:p?m("View Preview"):r.labels.view_item,url:o.link}),[u,{id:uze,type:"snackbar",actions:f}]}function $jt(e){const{post:t,edits:n,error:o}=e;if(o&&o.code==="rest_autosave_no_changes")return[];const r=["publish","private","future"],s=r.indexOf(t.status)!==-1,i={publish:m("Publishing failed."),private:m("Publishing failed."),future:m("Scheduling failed.")};let c=!s&&r.indexOf(n.status)!==-1?i[n.status]:m("Updating failed.");return o.message&&!/<\/?[^>]*>/.test(o.message)&&(c=[c,o.message].join(" ")),[c,{id:uze}]}function Vjt(e){return[e.error.message&&e.error.code!=="unknown_error"?e.error.message:m("Trashing failed"),{id:dze}]}const Hjt=(e,t,n)=>({dispatch:o})=>{if(o.setEditedPost(e.type,e.id),e.status==="auto-draft"&&n){let s;"content"in t?s=t.content:s=e.content.raw;let i=Yn(s);i=Ng(i,n),o.resetEditorBlocks(i,{__unstableShouldCreateUndoLevel:!1})}t&&Object.values(t).some(([s,i])=>{var c;return i!==((c=e[s]?.raw)!==null&&c!==void 0?c:e[s])})&&o.editPost(t)};function Ujt(){return Re("wp.data.dispatch( 'core/editor' ).__experimentalTearDownEditor",{since:"6.5"}),{type:"DO_NOTHING"}}function Xjt(){return Re("wp.data.dispatch( 'core/editor' ).resetPost",{since:"6.0",version:"6.3",alternative:"Initialize the editor with the setupEditorState action"}),{type:"DO_NOTHING"}}function Gjt(){return Re("wp.data.dispatch( 'core/editor' ).updatePost",{since:"5.7",alternative:"Use the core entities store instead"}),{type:"DO_NOTHING"}}function Kjt(e){return Re("wp.data.dispatch( 'core/editor' ).setupEditorState",{since:"6.5",alternative:"wp.data.dispatch( 'core/editor' ).setEditedPost"}),wze(e.type,e.id)}function wze(e,t){return{type:"SET_EDITED_POST",postType:e,postId:t}}const Yjt=(e,t)=>({select:n,registry:o})=>{const{id:r,type:s}=n.getCurrentPost();o.dispatch(ce).editEntityRecord("postType",s,r,e,t)},Zjt=(e={})=>async({select:t,dispatch:n,registry:o})=>{if(!t.isEditedPostSaveable())return;const r=t.getEditedPostContent();e.isAutosave||n.editPost({content:r},{undoIgnore:!0});const s=t.getCurrentPost(),i={id:s.id,...o.select(ce).getEntityRecordNonTransientEdits("postType",s.type,s.id),content:r};n({type:"REQUEST_POST_UPDATE_START",options:e});let c=!1;try{c=await _n("editor.__unstablePreSavePost",Promise.resolve(!1),e)}catch(l){c=l}if(!c)try{await o.dispatch(ce).saveEntityRecord("postType",s.type,i,e)}catch(l){c=l.message&&l.code!=="unknown_error"?l.message:m("An error occurred while updating.")}if(c||(c=o.select(ce).getLastEntitySaveError("postType",s.type,s.id)),c||await _n("editor.__unstableSavePost",Promise.resolve(),e).catch(l=>{c=l}),n({type:"REQUEST_POST_UPDATE_FINISH",options:e}),c){const l=$jt({post:s,edits:i,error:c});l.length&&o.dispatch(Ze).createErrorNotice(...l)}else{const l=t.getCurrentPost(),u=Fjt({previousPost:s,post:l,postType:await o.resolveSelect(ce).getPostType(l.type),options:e});u.length&&o.dispatch(Ze).createSuccessNotice(...u),e.isAutosave||o.dispatch(F).__unstableMarkLastChangeAsPersistent()}};function Qjt(){return Re("wp.data.dispatch( 'core/editor' ).refreshPost",{since:"6.0",version:"6.3",alternative:"Use the core entities store instead"}),{type:"DO_NOTHING"}}const Jjt=()=>async({select:e,dispatch:t,registry:n})=>{const o=e.getCurrentPostType(),r=await n.resolveSelect(ce).getPostType(o);n.dispatch(Ze).removeNotice(dze);const{rest_base:s,rest_namespace:i="wp/v2"}=r;t({type:"REQUEST_POST_DELETE_START"});try{const c=e.getCurrentPost();await ct({path:`/${i}/${s}/${c.id}`,method:"DELETE"}),await t.savePost()}catch(c){n.dispatch(Ze).createErrorNotice(...Vjt({error:c}))}t({type:"REQUEST_POST_DELETE_FINISH"})},ePt=({local:e=!1,...t}={})=>async({select:n,dispatch:o})=>{const r=n.getCurrentPost();if(r.type!=="wp_template")if(e){const s=n.isEditedPostNew(),i=n.getEditedPostAttribute("title"),c=n.getEditedPostAttribute("content"),l=n.getEditedPostAttribute("excerpt");Djt(r.id,s,i,c,l)}else await o.savePost({isAutosave:!0,...t})},tPt=({forceIsAutosaveable:e}={})=>async({select:t,dispatch:n})=>((e||t.isEditedPostAutosaveable())&&!t.isPostLocked()&&(["draft","auto-draft"].includes(t.getEditedPostAttribute("status"))?await n.savePost({isPreview:!0}):await n.autosave({isPreview:!0})),t.getEditedPostPreviewLink()),nPt=()=>({registry:e})=>{e.dispatch(ce).redo()},oPt=()=>({registry:e})=>{e.dispatch(ce).undo()};function rPt(){return Re("wp.data.dispatch( 'core/editor' ).createUndoLevel",{since:"6.0",version:"6.3",alternative:"Use the core entities store instead"}),{type:"DO_NOTHING"}}function sPt(e){return{type:"UPDATE_POST_LOCK",lock:e}}const iPt=()=>({registry:e})=>{e.dispatch(Qe).set("core","isPublishSidebarEnabled",!0)},aPt=()=>({registry:e})=>{e.dispatch(Qe).set("core","isPublishSidebarEnabled",!1)};function cPt(e){return{type:"LOCK_POST_SAVING",lockName:e}}function lPt(e){return{type:"UNLOCK_POST_SAVING",lockName:e}}function uPt(e){return{type:"LOCK_POST_AUTOSAVING",lockName:e}}function dPt(e){return{type:"UNLOCK_POST_AUTOSAVING",lockName:e}}const pPt=(e,t={})=>({select:n,dispatch:o,registry:r})=>{const{__unstableShouldCreateUndoLevel:s,selection:i}=t,c={blocks:e,selection:i};if(s!==!1){const{id:l,type:u}=n.getCurrentPost();if(r.select(ce).getEditedEntityRecord("postType",u,l).blocks===c.blocks){r.dispatch(ce).__unstableCreateUndoLevel("postType",u,l);return}c.content=({blocks:p=[]})=>pd(p)}o.editPost(c)};function fPt(e){return{type:"UPDATE_EDITOR_SETTINGS",settings:e}}const bPt=e=>({dispatch:t,registry:n,select:o})=>{o.__unstableIsEditorReady()&&(n.dispatch(F).clearSelectedBlock(),t.editPost({selection:void 0},{undoIgnore:!0})),t({type:"SET_RENDERING_MODE",mode:e})};function hPt(e){return{type:"SET_DEVICE_TYPE",deviceType:e}}const mPt=e=>({registry:t})=>{var n;const o=(n=t.select(Qe).get("core","inactivePanels"))!==null&&n!==void 0?n:[],r=!!o?.includes(e);let s;r?s=o.filter(i=>i!==e):s=[...o,e],t.dispatch(Qe).set("core","inactivePanels",s)},MPt=e=>({registry:t})=>{var n;const o=(n=t.select(Qe).get("core","openPanels"))!==null&&n!==void 0?n:[],r=!!o?.includes(e);let s;r?s=o.filter(i=>i!==e):s=[...o,e],t.dispatch(Qe).set("core","openPanels",s)};function gPt(e){return{type:"REMOVE_PANEL",panelName:e}}function zPt(e){return{type:"SET_IS_INSERTER_OPENED",value:e}}function OPt(e){return{type:"SET_IS_LIST_VIEW_OPENED",isOpen:e}}const APt=()=>({dispatch:e,registry:t})=>{const n=t.select(Qe).get("core","distractionFree");n&&t.dispatch(Qe).set("core","fixedToolbar",!1),n||t.batch(()=>{t.dispatch(Qe).set("core","fixedToolbar",!0),e.setIsInserterOpened(!1),e.setIsListViewOpened(!1)}),t.batch(()=>{t.dispatch(Qe).set("core","distractionFree",!n),t.dispatch(Ze).createInfoNotice(m(n?"Distraction free off.":"Distraction free on."),{id:"core/editor/distraction-free-mode/notice",type:"snackbar",actions:[{label:m("Undo"),onClick:()=>{t.batch(()=>{t.dispatch(Qe).set("core","fixedToolbar",!!n),t.dispatch(Qe).toggle("core","distractionFree")})}}]})})},yPt=e=>({dispatch:t,registry:n})=>{n.dispatch(Qe).set("core","editorMode",e),e!=="visual"&&n.dispatch(F).clearSelectedBlock(),e==="visual"?At(m("Visual editor selected"),"assertive"):e==="text"&&(n.select(Qe).get("core","distractionFree")&&t.toggleDistractionFree(),At(m("Code editor selected"),"assertive"))};function vPt(){return{type:"OPEN_PUBLISH_SIDEBAR"}}function xPt(){return{type:"CLOSE_PUBLISH_SIDEBAR"}}function _Pt(){return{type:"TOGGLE_PUBLISH_SIDEBAR"}}const $0=e=>(...t)=>({registry:n})=>{Re("`wp.data.dispatch( 'core/editor' )."+e+"`",{since:"5.3",alternative:"`wp.data.dispatch( 'core/block-editor' )."+e+"`",version:"6.2"}),n.dispatch(F)[e](...t)},wPt=$0("resetBlocks"),kPt=$0("receiveBlocks"),qPt=$0("updateBlock"),SPt=$0("updateBlockAttributes"),CPt=$0("selectBlock"),RPt=$0("startMultiSelect"),WPt=$0("stopMultiSelect"),TPt=$0("multiSelect"),EPt=$0("clearSelectedBlock"),BPt=$0("toggleSelection"),NPt=$0("replaceBlocks"),LPt=$0("replaceBlock"),jPt=$0("moveBlocksDown"),PPt=$0("moveBlocksUp"),IPt=$0("moveBlockToPosition"),DPt=$0("insertBlock"),FPt=$0("insertBlocks"),$Pt=$0("showInsertionPoint"),VPt=$0("hideInsertionPoint"),HPt=$0("setTemplateValidity"),UPt=$0("synchronizeTemplate"),XPt=$0("mergeBlocks"),GPt=$0("removeBlocks"),KPt=$0("removeBlock"),YPt=$0("toggleBlockMode"),ZPt=$0("startTyping"),QPt=$0("stopTyping"),JPt=$0("enterFormattedText"),e9t=$0("exitFormattedText"),t9t=$0("insertDefaultBlock"),n9t=$0("updateBlockListSettings"),o9t=Object.freeze(Object.defineProperty({__proto__:null,__experimentalTearDownEditor:Ujt,__unstableSaveForPreview:tPt,autosave:ePt,clearSelectedBlock:EPt,closePublishSidebar:xPt,createUndoLevel:rPt,disablePublishSidebar:aPt,editPost:Yjt,enablePublishSidebar:iPt,enterFormattedText:JPt,exitFormattedText:e9t,hideInsertionPoint:VPt,insertBlock:DPt,insertBlocks:FPt,insertDefaultBlock:t9t,lockPostAutosaving:uPt,lockPostSaving:cPt,mergeBlocks:XPt,moveBlockToPosition:IPt,moveBlocksDown:jPt,moveBlocksUp:PPt,multiSelect:TPt,openPublishSidebar:vPt,receiveBlocks:kPt,redo:nPt,refreshPost:Qjt,removeBlock:KPt,removeBlocks:GPt,removeEditorPanel:gPt,replaceBlock:LPt,replaceBlocks:NPt,resetBlocks:wPt,resetEditorBlocks:pPt,resetPost:Xjt,savePost:Zjt,selectBlock:CPt,setDeviceType:hPt,setEditedPost:wze,setIsInserterOpened:zPt,setIsListViewOpened:OPt,setRenderingMode:bPt,setTemplateValidity:HPt,setupEditor:Hjt,setupEditorState:Kjt,showInsertionPoint:$Pt,startMultiSelect:RPt,startTyping:ZPt,stopMultiSelect:WPt,stopTyping:QPt,switchEditorMode:yPt,synchronizeTemplate:UPt,toggleBlockMode:YPt,toggleDistractionFree:APt,toggleEditorPanelEnabled:mPt,toggleEditorPanelOpened:MPt,togglePublishSidebar:_Pt,toggleSelection:BPt,trashPost:Jjt,undo:oPt,unlockPostAutosaving:dPt,unlockPostSaving:lPt,updateBlock:qPt,updateBlockAttributes:SPt,updateBlockListSettings:n9t,updateEditorSettings:fPt,updatePost:Gjt,updatePostLock:sPt},Symbol.toStringTag,{value:"Module"}));function r9t(e){return e?e.source===mO.custom&&(!!e?.plugin||e?.has_theme_file):!1}function s9t(e={},t){return t?.type==="SET_EDITING_PATTERN"?{...e,[t.clientId]:t.isEditing}:e}const i9t=zo({isEditingPattern:s9t}),Pk={theme:"pattern",user:"wp_block"},kze="all-patterns",a9t="my-patterns",c9t=["core","pattern-directory/core","pattern-directory/featured"],Mi={full:"fully",unsynced:"unsynced"},qze={"core/paragraph":["content"],"core/heading":["content"],"core/button":["text","url","linkTarget","rel"],"core/image":["id","url","title","alt"]},v4="core/pattern-overrides",l9t=(e,t,n,o)=>async({registry:r})=>{const s=t===Mi.unsynced?{wp_pattern_sync_status:t}:void 0,i={title:e,content:n,status:"publish",meta:s,wp_pattern_category:o};return await r.dispatch(ce).saveEntityRecord("postType","wp_block",i)},u9t=(e,t)=>async({dispatch:n})=>{const o=await e.text();let r;try{r=JSON.parse(o)}catch{throw new Error("Invalid JSON file")}if(r.__file!=="wp_block"||!r.title||!r.content||typeof r.title!="string"||typeof r.content!="string"||r.syncStatus&&typeof r.syncStatus!="string")throw new Error("Invalid pattern JSON file");return await n.createPattern(r.title,r.syncStatus,r.content,t)},d9t=e=>({registry:t})=>{const n=t.select(F).getBlock(e),o=n.attributes?.content;function r(i){return i.map(c=>{let l=c.attributes.metadata;if(l&&(l={...l},delete l.id,delete l.bindings,o?.[l.name]))for(const[u,d]of Object.entries(o[l.name]))Dt(c.name)?.attributes[u]&&(c.attributes[u]=d);return pn(c,{metadata:l&&Object.keys(l).length>0?l:void 0},r(c.innerBlocks))})}const s=t.select(F).getBlocks(n.clientId);t.dispatch(F).replaceBlocks(n.clientId,r(s))};function p9t(e,t){return{type:"SET_EDITING_PATTERN",clientId:e,isEditing:t}}const f9t=Object.freeze(Object.defineProperty({__proto__:null,convertSyncedPatternToStatic:d9t,createPattern:l9t,createPatternFromFile:u9t,setEditingPattern:p9t},Symbol.toStringTag,{value:"Module"})),b9t="core/patterns";function h9t(e,t){return e.isEditingPattern[t]}const m9t=Object.freeze(Object.defineProperty({__proto__:null,isEditingPattern:h9t},Symbol.toStringTag,{value:"Module"})),{lock:M9t,unlock:xd}=ar("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/patterns"),g9t={reducer:i9t},im=er(b9t,{...g9t});Qs(im);xd(im).registerPrivateActions(f9t);xd(im).registerPrivateSelectors(m9t);function o9(e){return Object.keys(qze).includes(e.name)&&!!e.attributes.metadata?.name&&!!e.attributes.metadata?.bindings&&Object.values(e.attributes.metadata.bindings).some(t=>t.source==="core/pattern-overrides")}function Sze(e){return e.some(t=>o9(t)?!0:Sze(t.innerBlocks))}const{BlockQuickNavigation:z9t}=xd(p0);function O9t(){const e=D(o=>o(F).getClientIdsWithDescendants(),[]),{getBlock:t}=D(F),n=O.useMemo(()=>e.filter(o=>{const r=t(o);return o9(r)}),[e,t]);return n?.length?a.jsx(De,{title:m("Overrides"),children:a.jsx(z9t,{clientIds:n})}):null}const A9t=e=>kt(e),Cze="wp_pattern_category";function y9t({categoryTerms:e,onChange:t,categoryMap:n}){const[o,r]=O.useState(""),s=Uo(r,500),i=O.useMemo(()=>Array.from(n.values()).map(l=>A9t(l.label)).filter(l=>o!==""?l.toLowerCase().includes(o.toLowerCase()):!0).sort((l,u)=>l.localeCompare(u)),[o,n]);function c(l){const u=l.reduce((d,p)=>(d.some(f=>f.toLowerCase()===p.toLowerCase())||d.push(p),d),[]);t(u)}return a.jsx(wf,{className:"patterns-menu-items__convert-modal-categories",value:e,suggestions:i,onChange:c,onInputChange:s,label:m("Categories"),tokenizeOnBlur:!0,__experimentalExpandOnFocus:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})}function Rze(){const{saveEntityRecord:e,invalidateResolution:t}=ae(ce),{corePatternCategories:n,userPatternCategories:o}=D(i=>{const{getUserPatternCategories:c,getBlockPatternCategories:l}=i(ce);return{corePatternCategories:l(),userPatternCategories:c()}},[]),r=O.useMemo(()=>{const i=new Map;return o.forEach(c=>{i.set(c.label.toLowerCase(),{label:c.label,name:c.name,id:c.id})}),n.forEach(c=>{!i.has(c.label.toLowerCase())&&c.name!=="query"&&i.set(c.label.toLowerCase(),{label:c.label,name:c.name})}),i},[o,n]);async function s(i){try{const c=r.get(i.toLowerCase());if(c?.id)return c.id;const l=c?{name:c.label,slug:c.name}:{name:i},u=await e("taxonomy",Cze,l,{throwOnError:!0});return t("getUserPatternCategories"),u.id}catch(c){if(c.code!=="term_exists")throw c;return c.data.term_id}}return{categoryMap:r,findOrCreateTerm:s}}function r9({className:e="patterns-menu-items__convert-modal",modalTitle:t,...n}){const o=D(r=>r(ce).getPostType(Pk.user)?.labels?.add_new_item,[]);return a.jsx(fn,{title:t||o,onRequestClose:n.onClose,overlayClassName:e,focusOnMount:"firstContentElement",size:"small",children:a.jsx(Wze,{...n})})}function Wze({confirmLabel:e=m("Add"),defaultCategories:t=[],content:n,onClose:o,onError:r,onSuccess:s,defaultSyncType:i=Mi.full,defaultTitle:c=""}){const[l,u]=O.useState(i),[d,p]=O.useState(t),[f,b]=O.useState(c),[h,g]=O.useState(!1),{createPattern:z}=xd(ae(im)),{createErrorNotice:y}=ae(Ze),{categoryMap:x,findOrCreateTerm:v}=Rze();async function M(A,_){if(!(!f||h))try{g(!0);const w=await Promise.all(d.map(q=>v(q))),k=await z(A,_,typeof n=="function"?n():n,w);s({pattern:k,categoryId:kze})}catch(w){y(w.message,{type:"snackbar",id:"pattern-create"}),r?.()}finally{g(!1),p([]),b("")}}return a.jsx("form",{onSubmit:A=>{A.preventDefault(),M(f,l)},children:a.jsxs(Ye,{spacing:"5",children:[a.jsx($t,{label:m("Name"),value:f,onChange:b,placeholder:m("My pattern"),className:"patterns-create-modal__name-input",__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),a.jsx(y9t,{categoryTerms:d,onChange:p,categoryMap:x}),a.jsx(Be,{__nextHasNoMarginBottom:!0,label:Oe("Synced","pattern (singular)"),help:m("Sync this pattern across multiple locations."),checked:l===Mi.full,onChange:()=>{u(l===Mi.full?Mi.unsynced:Mi.full)}}),a.jsxs(Je,{justify:"right",children:[a.jsx(fe,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{o(),b("")},children:m("Cancel")}),a.jsx(fe,{__next40pxDefaultSize:!0,variant:"primary",type:"submit","aria-disabled":!f||h,isBusy:h,children:e})]})]})})}function v9t(e,t){return e.type!==Pk.user?t.core?.filter(n=>e.categories.includes(n.name)).map(n=>n.label):t.user?.filter(n=>e.wp_pattern_category.includes(n.id)).map(n=>n.label)}function Tze({pattern:e,onSuccess:t}){const{createSuccessNotice:n}=ae(Ze),o=D(r=>{const{getUserPatternCategories:s,getBlockPatternCategories:i}=r(ce);return{core:i(),user:s()}});return e?{content:e.content,defaultCategories:v9t(e,o),defaultSyncType:e.type!==Pk.user?Mi.unsynced:e.wp_pattern_sync_status||Mi.full,defaultTitle:le(m("%s (Copy)"),typeof e.title=="string"?e.title:e.title.raw),onSuccess:({pattern:r})=>{n(le(m('"%s" duplicated.'),r.title.raw),{type:"snackbar",id:"patterns-create"}),t?.({pattern:r})}}:null}function x9t({pattern:e,onClose:t,onSuccess:n}){const o=Tze({pattern:e,onSuccess:n});return e?a.jsx(r9,{modalTitle:m("Duplicate pattern"),confirmLabel:m("Duplicate"),onClose:t,onError:t,...o}):null}function _9t({onClose:e,onError:t,onSuccess:n,pattern:o,...r}){const s=kt(o.title),[i,c]=O.useState(s),[l,u]=O.useState(!1),{editEntityRecord:d,__experimentalSaveSpecifiedEntityEdits:p}=ae(ce),{createSuccessNotice:f,createErrorNotice:b}=ae(Ze),h=async z=>{if(z.preventDefault(),!(!i||i===o.title||l))try{await d("postType",o.type,o.id,{title:i}),u(!0),c(""),e?.();const y=await p("postType",o.type,o.id,["title"],{throwOnError:!0});n?.(y),f(m("Pattern renamed"),{type:"snackbar",id:"pattern-update"})}catch(y){t?.();const x=y.message&&y.code!=="unknown_error"?y.message:m("An error occurred while renaming the pattern.");b(x,{type:"snackbar",id:"pattern-update"})}finally{u(!1),c("")}},g=()=>{e?.(),c("")};return a.jsx(fn,{title:m("Rename"),...r,onRequestClose:e,focusOnMount:"firstContentElement",size:"small",children:a.jsx("form",{onSubmit:h,children:a.jsxs(Ye,{spacing:"5",children:[a.jsx($t,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:m("Name"),value:i,onChange:c,required:!0}),a.jsxs(Je,{justify:"right",children:[a.jsx(fe,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:g,children:m("Cancel")}),a.jsx(fe,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:m("Save")})]})]})})})}function w9t({clientIds:e,rootClientId:t,closeBlockSettingsMenu:n}){const{createSuccessNotice:o}=ae(Ze),{replaceBlocks:r}=ae(F),{setEditingPattern:s}=xd(ae(im)),[i,c]=O.useState(!1),l=D(f=>{var b;const{canUser:h}=f(ce),{getBlocksByClientId:g,canInsertBlockType:z,getBlockRootClientId:y}=f(F),x=t||(e.length>0?y(e[0]):void 0),v=(b=g(e))!==null&&b!==void 0?b:[];return!(v.length===1&&v[0]&&dd(v[0])&&!!f(ce).getEntityRecord("postType","wp_block",v[0].attributes.ref))&&z("core/block",x)&&v.every(_=>!!_&&_.isValid&&st(_.name,"reusable",!0))&&!!h("create",{kind:"postType",name:"wp_block"})},[e,t]),{getBlocksByClientId:u}=D(F),d=O.useCallback(()=>Pr(u(e)),[u,e]);if(!l)return null;const p=({pattern:f})=>{if(f.wp_pattern_sync_status!==Mi.unsynced){const b=me("core/block",{ref:f.id});r(e,b),s(b.clientId,!0),n()}o(f.wp_pattern_sync_status===Mi.unsynced?le(m("Unsynced pattern created: %s"),f.title.raw):le(m("Synced pattern created: %s"),f.title.raw),{type:"snackbar",id:"convert-to-pattern-success"}),c(!1)};return a.jsxs(a.Fragment,{children:[a.jsx(tt,{icon:Gu,onClick:()=>c(!0),"aria-expanded":i,"aria-haspopup":"dialog",children:m("Create pattern")}),i&&a.jsx(r9,{content:d,onSuccess:f=>{p(f)},onError:()=>{c(!1)},onClose:()=>{c(!1)}})]})}function k9t({clientId:e}){const{canRemove:t,isVisible:n,managePatternsUrl:o}=D(s=>{const{getBlock:i,canRemoveBlock:c,getBlockCount:l}=s(F),{canUser:u}=s(ce),d=i(e);return{canRemove:c(e),isVisible:!!d&&dd(d)&&!!u("update",{kind:"postType",name:"wp_block",id:d.attributes.ref}),innerBlockCount:l(e),managePatternsUrl:u("create",{kind:"postType",name:"wp_template"})?wt("site-editor.php",{path:"/patterns"}):wt("edit.php",{post_type:"wp_block"})}},[e]),{convertSyncedPatternToStatic:r}=xd(ae(im));return n?a.jsxs(a.Fragment,{children:[t&&a.jsx(tt,{onClick:()=>r(e),children:m("Detach")}),a.jsx(tt,{href:o,children:m("Manage patterns")})]}):null}function q9t({rootClientId:e}){return a.jsx(Zh,{children:({selectedClientIds:t,onClose:n})=>a.jsxs(a.Fragment,{children:[a.jsx(w9t,{clientIds:t,rootClientId:e,closeBlockSettingsMenu:n}),t.length===1&&a.jsx(k9t,{clientId:t[0]})]})})}function S9t({category:e,existingCategories:t,onClose:n,onError:o,onSuccess:r,...s}){const i=O.useId(),c=O.useRef(),[l,u]=O.useState(kt(e.name)),[d,p]=O.useState(!1),[f,b]=O.useState(!1),h=f?`patterns-rename-pattern-category-modal__validation-message-${i}`:void 0,{saveEntityRecord:g,invalidateResolution:z}=ae(ce),{createErrorNotice:y,createSuccessNotice:x}=ae(Ze),v=_=>{f&&b(void 0),u(_)},M=async _=>{if(_.preventDefault(),!d){if(!l||l===e.name){const w=m("Please enter a new name for this category.");At(w,"assertive"),b(w),c.current?.focus();return}if(t.patternCategories.find(w=>w.id!==e.id&&w.label.toLowerCase()===l.toLowerCase())){const w=m("This category already exists. Please use a different name.");At(w,"assertive"),b(w),c.current?.focus();return}try{p(!0);const w=await g("taxonomy",Cze,{id:e.id,slug:e.slug,name:l});z("getUserPatternCategories"),r?.(w),n(),x(m("Pattern category renamed."),{type:"snackbar",id:"pattern-category-update"})}catch(w){o?.(),y(w.message,{type:"snackbar",id:"pattern-category-update"})}finally{p(!1),u("")}}},A=()=>{n(),u("")};return a.jsx(fn,{title:m("Rename"),onRequestClose:A,...s,children:a.jsx("form",{onSubmit:M,children:a.jsxs(Ye,{spacing:"5",children:[a.jsxs(Ye,{spacing:"2",children:[a.jsx($t,{ref:c,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:m("Name"),value:l,onChange:v,"aria-describedby":h,required:!0}),f&&a.jsx("span",{className:"patterns-rename-pattern-category-modal__validation-message",id:h,children:f})]}),a.jsxs(Je,{justify:"right",children:[a.jsx(fe,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:A,children:m("Cancel")}),a.jsx(fe,{__next40pxDefaultSize:!0,variant:"primary",type:"submit","aria-disabled":!l||l===e.name||d,isBusy:d,children:m("Save")})]})]})})})}function C9t({placeholder:e,initialName:t="",onClose:n,onSave:o}){const[r,s]=O.useState(t),i=O.useId(),c=!!r.trim(),l=()=>{if(r!==t){const u=le(m('Block name changed to: "%s".'),r);At(u,"assertive")}o(r),n()};return a.jsx(fn,{title:m("Enable overrides"),onRequestClose:n,focusOnMount:"firstContentElement",aria:{describedby:i},size:"small",children:a.jsx("form",{onSubmit:u=>{u.preventDefault(),c&&l()},children:a.jsxs(Ye,{spacing:"6",children:[a.jsx(l0,{id:i,children:m("Overrides are changes you make to a block within a synced pattern instance. Use overrides to customize a synced pattern instance to suit its new context. Name this block to specify an override.")}),a.jsx($t,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:r,label:m("Name"),help:m('For example, if you are creating a recipe pattern, you use "Recipe Title", "Recipe Description", etc.'),placeholder:e,onChange:s}),a.jsxs(Je,{justify:"right",children:[a.jsx(fe,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:n,children:m("Cancel")}),a.jsx(fe,{__next40pxDefaultSize:!0,"aria-disabled":!c,variant:"primary",type:"submit",children:m("Enable")})]})]})})})}function R9t({onClose:e,onSave:t}){const n=O.useId();return a.jsx(fn,{title:m("Disable overrides"),onRequestClose:e,aria:{describedby:n},size:"small",children:a.jsx("form",{onSubmit:o=>{o.preventDefault(),t(),e()},children:a.jsxs(Ye,{spacing:"6",children:[a.jsx(l0,{id:n,children:m("Are you sure you want to disable overrides? Disabling overrides will revert all applied overrides for this block throughout instances of this pattern.")}),a.jsxs(Je,{justify:"right",children:[a.jsx(fe,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:e,children:m("Cancel")}),a.jsx(fe,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:m("Disable")})]})]})})})}const{useBlockBindingsUtils:W9t}=xd(p0);function T9t({attributes:e,setAttributes:t,name:n}){const o=O.useId(),[r,s]=O.useState(!1),[i,c]=O.useState(!1),l=!!e.metadata?.name,u=e.metadata?.bindings?.__default,d=l&&u?.source===v4,p=u?.source&&u.source!==v4,{updateBlockBindings:f}=W9t();function b(z,y){y&&t({metadata:{...e.metadata,name:y}}),f({__default:z?{source:v4}:void 0})}if(p)return null;const h=n==="core/image"&&(!!e.caption?.length||!!e.href?.length),g=m(!d&&h?"Overrides currently don't support image captions or links. Remove the caption or link first before enabling overrides.":"Allow changes to this block throughout instances of this pattern.");return a.jsxs(a.Fragment,{children:[a.jsx(Te,{group:"advanced",children:a.jsx(z0,{__nextHasNoMarginBottom:!0,id:o,label:m("Overrides"),help:g,children:a.jsx(fe,{__next40pxDefaultSize:!0,className:"pattern-overrides-control__allow-overrides-button",variant:"secondary","aria-haspopup":"dialog",onClick:()=>{d?c(!0):s(!0)},disabled:!d&&h,accessibleWhenDisabled:!0,children:m(d?"Disable overrides":"Enable overrides")})})}),r&&a.jsx(C9t,{initialName:e.metadata?.name,onClose:()=>s(!1),onSave:z=>{b(!0,z)}}),i&&a.jsx(R9t,{onClose:()=>c(!1),onSave:()=>b(!1)})]})}const rC="content";function E9t(e){const t=e.attributes.metadata?.name,n=h0(),o=D(s=>{if(!t)return;const{getBlockAttributes:i,getBlockParentsByBlockName:c}=s(F),[l]=c(e.clientId,"core/block",!0);if(!l)return;const u=i(l)[rC];if(u)return u.hasOwnProperty(t)},[e.clientId,t]);function r(){const{getBlockAttributes:s,getBlockParentsByBlockName:i}=n.select(F),[c]=i(e.clientId,"core/block",!0);if(!c)return;const l=s(c)[rC];if(!l.hasOwnProperty(t))return;const{updateBlockAttributes:u,__unstableMarkLastChangeAsPersistent:d}=n.dispatch(F);d();let p={...l};delete p[t],Object.keys(p).length||(p=void 0),u(c,{[rC]:p})}return a.jsx(SP,{children:a.jsx(c0,{children:a.jsx(bt,{onClick:r,disabled:!o,children:m("Reset")})})})}const{useBlockDisplayTitle:B9t}=xd(p0);function N9t({clientIds:e}){const t=e.length===1,{icon:n,firstBlockName:o}=D(c=>{const{getBlockAttributes:l,getBlockNamesByClientId:u}=c(F),{getBlockType:d,getActiveBlockVariation:p}=c($e),f=u(e),b=f[0],h=d(b);let g;return t?g=p(b,l(e[0]))?.icon||h.icon:g=new Set(f).size===1?h.icon:k3,{icon:g,firstBlockName:l(e[0]).metadata.name}},[e,t]),r=B9t({clientId:e[0],maximumLength:35}),s=t?le(m('This %1$s is editable using the "%2$s" override.'),r.toLowerCase(),o):m("These blocks are editable using overrides."),i=O.useId();return a.jsx(Ko,{children:c=>a.jsx(E1,{className:"patterns-pattern-overrides-toolbar-indicator",label:r,popoverProps:{placement:"bottom-start",className:"patterns-pattern-overrides-toolbar-indicator__popover"},icon:a.jsx(a.Fragment,{children:a.jsx(b0,{icon:n,className:"patterns-pattern-overrides-toolbar-indicator-icon",showColors:!0})}),toggleProps:{description:s,...c},menuProps:{orientation:"both","aria-describedby":i},children:()=>a.jsx(l0,{id:i,children:s})})})}function L9t(){const{clientIds:e,hasPatternOverrides:t,hasParentPattern:n}=D(o=>{const{getBlockAttributes:r,getSelectedBlockClientIds:s,getBlockParentsByBlockName:i}=o(F),c=s(),l=c.every(d=>{var p;return Object.values((p=r(d)?.metadata?.bindings)!==null&&p!==void 0?p:{}).some(f=>f?.source===v4)}),u=c.every(d=>i(d,"core/block",!0).length>0);return{clientIds:c,hasPatternOverrides:l,hasParentPattern:u}},[]);return t&&n?a.jsx(Ie,{group:"parent",children:a.jsx(N9t,{clientIds:e})}):null}const Gi={};M9t(Gi,{OverridesPanel:O9t,CreatePatternModal:r9,CreatePatternModalContents:Wze,DuplicatePatternModal:x9t,isOverridableBlock:o9,hasOverridableBlocks:Sze,useDuplicatePatternProps:Tze,RenamePatternModal:_9t,PatternsMenuItems:q9t,RenamePatternCategoryModal:S9t,PatternOverridesControls:T9t,ResetOverridesControl:E9t,PatternOverridesBlockControls:L9t,useAddPatternCategory:Rze,PATTERN_TYPES:Pk,PATTERN_DEFAULT_CATEGORY:kze,PATTERN_USER_CATEGORY:a9t,EXCLUDED_PATTERN_SOURCES:c9t,PATTERN_SYNC_TYPES:Mi,PARTIAL_SYNCING_SUPPORTED_BLOCKS:qze});function j9t(e){return e.type===d1}function P9t(e){return e.type===vo}function MO(e){return e.type===d1||e.type===vo}function Nr(e){return typeof e.title=="string"?kt(e.title):"rendered"in e.title?kt(e.title.rendered):"raw"in e.title?kt(e.title.raw):""}function Eze(e){return e?[e.source,e.source].includes(mO.custom)&&!(e.type==="wp_template"&&e?.plugin)&&!e.has_theme_file:!1}const{lock:I9t,unlock:gt}=ar("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/editor"),{PATTERN_TYPES:D9t}=gt(Gi),F9t={id:"delete-post",label:m("Delete"),isPrimary:!0,icon:C3,isEligible(e){return MO(e)?Eze(e):e.type===D9t.user},supportsBulk:!0,hideModalHeader:!0,RenderModal:({items:e,closeModal:t,onActionPerformed:n})=>{const[o,r]=O.useState(!1),{removeTemplates:s}=gt(ae(ue));return a.jsxs(Ye,{spacing:"5",children:[a.jsx(l0,{children:e.length>1?le(a0("Delete %d item?","Delete %d items?",e.length),e.length):le(m('Delete "%s"?'),Nr(e[0]))}),a.jsxs(Je,{justify:"right",children:[a.jsx(fe,{variant:"tertiary",onClick:t,disabled:o,accessibleWhenDisabled:!0,__next40pxDefaultSize:!0,children:m("Cancel")}),a.jsx(fe,{variant:"primary",onClick:async()=>{r(!0),await s(e,{allowUndo:!1}),n?.(e),r(!1),t?.()},isBusy:o,disabled:o,accessibleWhenDisabled:!0,__next40pxDefaultSize:!0,children:m("Delete")})]})]})}},{CreatePatternModalContents:$9t,useDuplicatePatternProps:V9t}=gt(Gi),H9t={id:"duplicate-pattern",label:Oe("Duplicate","action label"),isEligible:e=>e.type!=="wp_template_part",modalHeader:Oe("Duplicate pattern","action label"),RenderModal:({items:e,closeModal:t})=>{const[n]=e,o=V9t({pattern:n,onSuccess:()=>t?.()});return a.jsx($9t,{onClose:t,confirmLabel:Oe("Duplicate","action label"),...o})}},U9t=()=>D(e=>e(ce).getEntityRecords("postType",vo,{per_page:-1}),[]),X9t=(e,t)=>{const n=e.toLowerCase(),o=t.map(s=>s.title.rendered.toLowerCase());if(!o.includes(n))return e;let r=2;for(;o.includes(`${n} ${r}`);)r++;return`${e} ${r}`},G9t=e=>Us(e).replace(/[^\w-]+/g,"")||"wp-custom-part";function s9({modalTitle:e,...t}){const n=D(o=>o(ce).getPostType(vo)?.labels?.add_new_item,[]);return a.jsx(fn,{title:e||n,onRequestClose:t.closeModal,overlayClassName:"editor-create-template-part-modal",focusOnMount:"firstContentElement",size:"medium",children:a.jsx(Bze,{...t})})}function Bze({defaultArea:e=HLt,blocks:t=[],confirmLabel:n=m("Add"),closeModal:o,onCreate:r,onError:s,defaultTitle:i=""}){const{createErrorNotice:c}=ae(Ze),{saveEntityRecord:l}=ae(ce),u=U9t(),[d,p]=O.useState(i),[f,b]=O.useState(e),[h,g]=O.useState(!1),z=He(s9),y=D(v=>v(ue).__experimentalGetDefaultTemplatePartAreas(),[]);async function x(){if(!(!d||h))try{g(!0);const v=X9t(d,u),M=G9t(v),A=await l("postType",vo,{slug:M,title:v,content:Pr(t),area:f},{throwOnError:!0});await r(A)}catch(v){const M=v.message&&v.code!=="unknown_error"?v.message:m("An error occurred while creating the template part.");c(M,{type:"snackbar"}),s?.()}finally{g(!1)}}return a.jsx("form",{onSubmit:async v=>{v.preventDefault(),await x()},children:a.jsxs(Ye,{spacing:"4",children:[a.jsx($t,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:m("Name"),value:d,onChange:p,required:!0}),a.jsx(z0,{__nextHasNoMarginBottom:!0,label:m("Area"),id:`editor-create-template-part-modal__area-selection-${z}`,className:"editor-create-template-part-modal__area-base-control",children:a.jsx(gbt,{label:m("Area"),className:"editor-create-template-part-modal__area-radio-group",id:`editor-create-template-part-modal__area-selection-${z}`,onChange:b,checked:f,children:y.map(({icon:v,label:M,area:A,description:_})=>a.jsx(mbt,{value:A,className:"editor-create-template-part-modal__area-radio",children:a.jsxs(Q0,{align:"start",justify:"start",children:[a.jsx(Ht,{children:a.jsx(xn,{icon:v})}),a.jsxs(Vi,{className:"editor-create-template-part-modal__option-label",children:[M,a.jsx("div",{children:_})]}),a.jsx(Ht,{className:"editor-create-template-part-modal__checkbox",children:f===A&&a.jsx(xn,{icon:no})})]})},M))})}),a.jsxs(Je,{justify:"right",children:[a.jsx(fe,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{o()},children:m("Cancel")}),a.jsx(fe,{__next40pxDefaultSize:!0,variant:"primary",type:"submit","aria-disabled":!d||h,isBusy:h,children:n})]})]})})}const K9t={id:"duplicate-template-part",label:Oe("Duplicate","action label"),isEligible:e=>e.type===vo,modalHeader:Oe("Duplicate template part","action label"),RenderModal:({items:e,closeModal:t})=>{const[n]=e,o=O.useMemo(()=>{var i;return(i=n.blocks)!==null&&i!==void 0?i:Yn(typeof n.content=="string"?n.content:n.content.raw,{__unstableSkipMigrationLogs:!0})},[n.content,n.blocks]),{createSuccessNotice:r}=ae(Ze);function s(){r(le(m('"%s" duplicated.'),Nr(n)),{type:"snackbar",id:"edit-site-patterns-success"}),t?.()}return a.jsx(Bze,{blocks:o,defaultArea:n.area,defaultTitle:le(m("%s (Copy)"),Nr(n)),onCreate:s,onError:t,confirmLabel:Oe("Duplicate","action label"),closeModal:t})}};"stream"in Blob.prototype||Object.defineProperty(Blob.prototype,"stream",{value(){return new Response(this).body}}),"setBigUint64"in DataView.prototype||Object.defineProperty(DataView.prototype,"setBigUint64",{value(e,t,n){const o=Number(0xffffffffn&t),r=Number(t>>32n);this.setUint32(e+(n?0:4),o,n),this.setUint32(e+(n?4:0),r,n)}});var nh=e=>new DataView(new ArrayBuffer(e)),dl=e=>new Uint8Array(e.buffer||e),Eb=e=>new TextEncoder().encode(String(e)),gp=e=>Math.min(4294967295,Number(e)),LZ=e=>Math.min(65535,Number(e));function Y9t(e,t){if(t===void 0||t instanceof Date||(t=new Date(t)),e instanceof File)return{isFile:1,t:t||new Date(e.lastModified),i:e.stream()};if(e instanceof Response)return{isFile:1,t:t||new Date(e.headers.get("Last-Modified")||Date.now()),i:e.body};if(t===void 0)t=new Date;else if(isNaN(t))throw new Error("Invalid modification date.");if(e===void 0)return{isFile:0,t};if(typeof e=="string")return{isFile:1,t,i:Eb(e)};if(e instanceof Blob)return{isFile:1,t,i:e.stream()};if(e instanceof Uint8Array||e instanceof ReadableStream)return{isFile:1,t,i:e};if(e instanceof ArrayBuffer||ArrayBuffer.isView(e))return{isFile:1,t,i:dl(e)};if(Symbol.asyncIterator in e)return{isFile:1,t,i:Nze(e[Symbol.asyncIterator]())};throw new TypeError("Unsupported input format.")}function Nze(e,t=e){return new ReadableStream({async pull(n){let o=0;for(;n.desiredSize>o;){const r=await e.next();if(!r.value){n.close();break}{const s=Z9t(r.value);n.enqueue(s),o+=s.byteLength}}},cancel(n){t.throw?.(n)}})}function Z9t(e){return typeof e=="string"?Eb(e):e instanceof Uint8Array?e:dl(e)}function Lze(e,t,n){let[o,r]=function(s){return s?s instanceof Uint8Array?[s,1]:ArrayBuffer.isView(s)||s instanceof ArrayBuffer?[dl(s),1]:[Eb(s),0]:[void 0,0]}(t);if(e instanceof File)return{o:sC(o||Eb(e.name)),u:BigInt(e.size),l:r};if(e instanceof Response){const s=e.headers.get("content-disposition"),i=s&&s.match(/;\s*filename\*?=["']?(.*?)["']?$/i),c=i&&i[1]||e.url&&new URL(e.url).pathname.split("/").findLast(Boolean),l=c&&decodeURIComponent(c),u=n||+e.headers.get("content-length");return{o:sC(o||Eb(l)),u:BigInt(u),l:r}}return o=sC(o,e!==void 0||n!==void 0),typeof e=="string"?{o,u:BigInt(Eb(e).length),l:r}:e instanceof Blob?{o,u:BigInt(e.size),l:r}:e instanceof ArrayBuffer||ArrayBuffer.isView(e)?{o,u:BigInt(e.byteLength),l:r}:{o,u:Q9t(e,n),l:r}}function Q9t(e,t){return t>-1?BigInt(t):e?void 0:0n}function sC(e,t=1){if(!e||e.every(n=>n===47))throw new Error("The file must have a name.");if(t)for(;e[e.length-1]===47;)e=e.subarray(0,-1);else e[e.length-1]!==47&&(e=new Uint8Array([...e,47]));return e}var jze=new Uint32Array(256);for(let e=0;e<256;++e){let t=e;for(let n=0;n<8;++n)t=t>>>1^(1&t&&3988292384);jze[e]=t}function jZ(e,t=0){t^=-1;for(var n=0,o=e.length;n>>8^jze[255&t^e[n]];return(-1^t)>>>0}function Pze(e,t,n=0){const o=e.getSeconds()>>1|e.getMinutes()<<5|e.getHours()<<11,r=e.getDate()|e.getMonth()+1<<5|e.getFullYear()-1980<<9;t.setUint16(n,o,1),t.setUint16(n+2,r,1)}function J9t({o:e,l:t},n){return 8*(!t||(n??function(o){try{eIt.decode(o)}catch{return 0}return 1}(e)))}var eIt=new TextDecoder("utf8",{fatal:1});function tIt(e,t=0){const n=nh(30);return n.setUint32(0,1347093252),n.setUint32(4,754976768|t),Pze(e.t,n,10),n.setUint16(26,e.o.length,1),dl(n)}async function*nIt(e){let{i:t}=e;if("then"in t&&(t=await t),t instanceof Uint8Array)yield t,e.m=jZ(t,0),e.u=BigInt(t.length);else{e.u=0n;const n=t.getReader();for(;;){const{value:o,done:r}=await n.read();if(r)break;e.m=jZ(o,e.m),e.u+=BigInt(o.length),yield o}}}function oIt(e,t){const n=nh(16+(t?8:0));return n.setUint32(0,1347094280),n.setUint32(4,e.isFile?e.m:0,1),t?(n.setBigUint64(8,e.u,1),n.setBigUint64(16,e.u,1)):(n.setUint32(8,gp(e.u),1),n.setUint32(12,gp(e.u),1)),dl(n)}function rIt(e,t,n=0,o=0){const r=nh(46);return r.setUint32(0,1347092738),r.setUint32(4,755182848),r.setUint16(8,2048|n),Pze(e.t,r,12),r.setUint32(16,e.isFile?e.m:0,1),r.setUint32(20,gp(e.u),1),r.setUint32(24,gp(e.u),1),r.setUint16(28,e.o.length,1),r.setUint16(30,o,1),r.setUint16(40,e.isFile?33204:16893,1),r.setUint32(42,gp(t),1),dl(r)}function sIt(e,t,n){const o=nh(n);return o.setUint16(0,1,1),o.setUint16(2,n-4,1),16&n&&(o.setBigUint64(4,e.u,1),o.setBigUint64(12,e.u,1)),o.setBigUint64(n-8,t,1),dl(o)}function Ize(e){return e instanceof File||e instanceof Response?[[e],[e]]:[[e.input,e.name,e.size],[e.input,e.lastModified]]}var iIt=e=>function(t){let n=BigInt(22),o=0n,r=0;for(const s of t){if(!s.o)throw new Error("Every file must have a non-empty name.");if(s.u===void 0)throw new Error(`Missing size for file "${new TextDecoder().decode(s.o)}".`);const i=s.u>=0xffffffffn,c=o>=0xffffffffn;o+=BigInt(46+s.o.length+(i&&8))+s.u,n+=BigInt(s.o.length+46+(12*c|28*i)),r||(r=i)}return(r||o>=0xffffffffn)&&(n+=BigInt(76)),n+o}(function*(t){for(const n of t)yield Lze(...Ize(n)[0])}(e));function aIt(e,t={}){const n={"Content-Type":"application/zip","Content-Disposition":"attachment"};return(typeof t.length=="bigint"||Number.isInteger(t.length))&&t.length>0&&(n["Content-Length"]=String(t.length)),t.metadata&&(n["Content-Length"]=String(iIt(t.metadata))),new Response(cIt(e,t),{headers:n})}function cIt(e,t={}){const n=function(o){const r=o[Symbol.iterator in o?Symbol.iterator:Symbol.asyncIterator]();return{async next(){const s=await r.next();if(s.done)return s;const[i,c]=Ize(s.value);return{done:0,value:Object.assign(Y9t(...c),Lze(...i))}},throw:r.throw?.bind(r),[Symbol.asyncIterator](){return this}}}(e);return Nze(async function*(o,r){const s=[];let i=0n,c=0n,l=0;for await(const p of o){const f=J9t(p,r.buffersAreUTF8);yield tIt(p,f),yield new Uint8Array(p.o),p.isFile&&(yield*nIt(p));const b=p.u>=0xffffffffn,h=12*(i>=0xffffffffn)|28*b;yield oIt(p,b),s.push(rIt(p,i,f,h)),s.push(p.o),h&&s.push(sIt(p,i,h)),b&&(i+=8n),c++,i+=BigInt(46+p.o.length)+p.u,l||(l=b)}let u=0n;for(const p of s)yield p,u+=BigInt(p.length);if(l||i>=0xffffffffn){const p=nh(76);p.setUint32(0,1347094022),p.setBigUint64(4,BigInt(44),1),p.setUint32(12,755182848),p.setBigUint64(24,c,1),p.setBigUint64(32,c,1),p.setBigUint64(40,u,1),p.setBigUint64(48,i,1),p.setUint32(56,1347094023),p.setBigUint64(64,i+u,1),p.setUint32(72,1,1),yield dl(p)}const d=nh(22);d.setUint32(0,1347093766),d.setUint16(8,LZ(c),1),d.setUint16(10,LZ(c),1),d.setUint32(12,gp(u),1),d.setUint32(16,gp(i),1),yield dl(d)}(n,t),n)}function PZ(e){return JSON.stringify({__file:e.type,title:Nr(e),content:typeof e.content=="string"?e.content:e.content?.raw,syncStatus:e.wp_pattern_sync_status},null,2)}const lIt={id:"export-pattern",label:m("Export as JSON"),icon:EYe,supportsBulk:!0,isEligible:e=>e.type==="wp_block",callback:async e=>{if(e.length===1)return QV(`${Us(Nr(e[0])||e[0].slug)}.json`,PZ(e[0]),"application/json");const t={},n=e.map(o=>{const r=Us(Nr(o)||o.slug);return t[r]=(t[r]||0)+1,{name:`${r+(t[r]>1?"-"+(t[r]-1):"")}.json`,lastModified:new Date,input:PZ(o)}});return QV(m("patterns-export")+".zip",await aIt(n).blob(),"application/zip")}},uIt={id:"reset-post",label:m("Reset"),isEligible:e=>MO(e)&&e?.source===mO.custom&&(!!(e.type==="wp_template"&&e?.plugin)||e?.has_theme_file),icon:$ce,supportsBulk:!0,hideModalHeader:!0,RenderModal:({items:e,closeModal:t,onActionPerformed:n})=>{const[o,r]=O.useState(!1),{revertTemplate:s}=gt(ae(ue)),{saveEditedEntityRecord:i}=ae(ce),{createSuccessNotice:c,createErrorNotice:l}=ae(Ze),u=async()=>{try{for(const d of e)await s(d,{allowUndo:!1}),await i("postType",d.type,d.id);c(e.length>1?le(m("%s items reset."),e.length):le(m('"%s" reset.'),Nr(e[0])),{type:"snackbar",id:"revert-template-action"})}catch(d){let p;e[0].type===d1?p=e.length===1?m("An error occurred while reverting the template."):m("An error occurred while reverting the templates."):p=e.length===1?m("An error occurred while reverting the template part."):m("An error occurred while reverting the template parts.");const f=d,b=f.message&&f.code!=="unknown_error"?f.message:p;l(b,{type:"snackbar"})}};return a.jsxs(Ye,{spacing:"5",children:[a.jsx(l0,{children:m("Reset to default and clear all customizations?")}),a.jsxs(Je,{justify:"right",children:[a.jsx(fe,{__next40pxDefaultSize:!1,variant:"tertiary",onClick:t,disabled:o,accessibleWhenDisabled:!0,children:m("Cancel")}),a.jsx(fe,{__next40pxDefaultSize:!1,variant:"primary",onClick:async()=>{r(!0),await u(),n?.(e),r(!1),t?.()},isBusy:o,disabled:o,accessibleWhenDisabled:!0,children:m("Reset")})]})]})}},dIt={id:"move-to-trash",label:m("Move to trash"),isPrimary:!0,icon:C3,isEligible(e){return MO(e)||e.type==="wp_block"?!1:!!e.status&&!["auto-draft","trash"].includes(e.status)&&e.permissions?.delete},supportsBulk:!0,hideModalHeader:!0,RenderModal:({items:e,closeModal:t,onActionPerformed:n})=>{const[o,r]=O.useState(!1),{createSuccessNotice:s,createErrorNotice:i}=ae(Ze),{deleteEntityRecord:c}=ae(ce);return a.jsxs(Ye,{spacing:"5",children:[a.jsx(l0,{children:e.length===1?le(m('Are you sure you want to move "%s" to the trash?'),Nr(e[0])):le(a0("Are you sure you want to move %d item to the trash ?","Are you sure you want to move %d items to the trash ?",e.length),e.length)}),a.jsxs(Je,{justify:"right",children:[a.jsx(fe,{__next40pxDefaultSize:!1,variant:"tertiary",onClick:t,disabled:o,accessibleWhenDisabled:!0,children:m("Cancel")}),a.jsx(fe,{__next40pxDefaultSize:!1,variant:"primary",onClick:async()=>{r(!0);const l=await Promise.allSettled(e.map(u=>c("postType",u.type,u.id.toString(),{},{throwOnError:!0})));if(l.every(({status:u})=>u==="fulfilled")){let u;l.length===1?u=le(m('"%s" moved to the trash.'),Nr(e[0])):u=le(a0("%s item moved to the trash.","%s items moved to the trash.",e.length),e.length),s(u,{type:"snackbar",id:"move-to-trash-action"})}else{let u;if(l.length===1){const d=l[0];d.reason?.message?u=d.reason.message:u=m("An error occurred while moving the item to the trash.")}else{const d=new Set,p=l.filter(({status:f})=>f==="rejected");for(const f of p){const b=f;b.reason?.message&&d.add(b.reason.message)}d.size===0?u=m("An error occurred while moving the items to the trash."):d.size===1?u=le(m("An error occurred while moving the item to the trash: %s"),[...d][0]):u=le(m("Some errors occurred while moving the items to the trash: %s"),[...d].join(","))}i(u,{type:"snackbar"})}n&&n(e),r(!1),t?.()},isBusy:o,disabled:o,accessibleWhenDisabled:!0,children:Oe("Trash","verb")})]})]})}},pIt={id:"permanently-delete",label:m("Permanently delete"),supportsBulk:!0,icon:C3,isEligible(e){if(MO(e)||e.type==="wp_block")return!1;const{status:t,permissions:n}=e;return t==="trash"&&n?.delete},async callback(e,{registry:t,onActionPerformed:n}){const{createSuccessNotice:o,createErrorNotice:r}=t.dispatch(Ze),{deleteEntityRecord:s}=t.dispatch(ce),i=await Promise.allSettled(e.map(c=>s("postType",c.type,c.id,{force:!0},{throwOnError:!0})));if(i.every(({status:c})=>c==="fulfilled")){let c;i.length===1?c=le(m('"%s" permanently deleted.'),Nr(e[0])):c=m("The items were permanently deleted."),o(c,{type:"snackbar",id:"permanently-delete-post-action"}),n?.(e)}else{let c;if(i.length===1){const l=i[0];l.reason?.message?c=l.reason.message:c=m("An error occurred while permanently deleting the item.")}else{const l=new Set,u=i.filter(({status:d})=>d==="rejected");for(const d of u){const p=d;p.reason?.message&&l.add(p.reason.message)}l.size===0?c=m("An error occurred while permanently deleting the items."):l.size===1?c=le(m("An error occurred while permanently deleting the items: %s"),[...l][0]):c=le(m("Some errors occurred while permanently deleting the items: %s"),[...l].join(","))}r(c,{type:"snackbar"})}}},{PATTERN_TYPES:IZ}=gt(Gi),fIt={id:"rename-post",label:m("Rename"),isEligible(e){return e.status==="trash"?!1:[d1,vo,...Object.values(IZ)].includes(e.type)?j9t(e)?Eze(e)&&e.is_custom&&e.permissions?.update:P9t(e)?e.source===mO.custom&&!e?.has_theme_file&&e.permissions?.update:e.type===IZ.user&&e.permissions?.update:e.permissions?.update},RenderModal:({items:e,closeModal:t,onActionPerformed:n})=>{const[o]=e,[r,s]=O.useState(()=>Nr(o)),{editEntityRecord:i,saveEditedEntityRecord:c}=ae(ce),{createSuccessNotice:l,createErrorNotice:u}=ae(Ze);async function d(p){p.preventDefault();try{await i("postType",o.type,o.id,{title:r}),s(""),t?.(),await c("postType",o.type,o.id,{throwOnError:!0}),l(m("Name updated"),{type:"snackbar"}),n?.(e)}catch(f){const b=f,h=b.message&&b.code!=="unknown_error"?b.message:m("An error occurred while updating the name");u(h,{type:"snackbar"})}}return a.jsx("form",{onSubmit:d,children:a.jsxs(Ye,{spacing:"5",children:[a.jsx($t,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:m("Name"),value:r,onChange:s,required:!0}),a.jsxs(Je,{justify:"right",children:[a.jsx(fe,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{t?.()},children:m("Cancel")}),a.jsx(fe,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:m("Save")})]})]})})}};function bIt(e,t,n){return n==="asc"?e-t:t-e}function hIt(e,t){return!(e===""||!Number.isInteger(Number(e))||t?.elements&&!(t?.elements.map(o=>o.value)).includes(Number(e)))}const mIt={sort:bIt,isValid:hIt,Edit:"integer"};function MIt(e,t,n){return n==="asc"?e.localeCompare(t):t.localeCompare(e)}function gIt(e,t){return!(t?.elements&&!(t?.elements?.map(o=>o.value)).includes(e))}const zIt={sort:MIt,isValid:gIt,Edit:"text"};function OIt(e,t,n){const o=new Date(e).getTime(),r=new Date(t).getTime();return n==="asc"?o-r:r-o}function AIt(e,t){return!(t?.elements&&!(t?.elements.map(o=>o.value)).includes(e))}const yIt={sort:OIt,isValid:AIt,Edit:"datetime"};function vIt(e){return e==="integer"?mIt:e==="text"?zIt:e==="datetime"?yIt:{sort:(t,n,o)=>typeof t=="number"&&typeof n=="number"?o==="asc"?t-n:n-t:o==="asc"?t.localeCompare(n):n.localeCompare(t),isValid:(t,n)=>!(n?.elements&&!(n?.elements?.map(r=>r.value)).includes(t)),Edit:()=>null}}function xIt({data:e,field:t,onChange:n,hideLabelFromVision:o}){const{id:r,label:s}=t,i=t.getValue({item:e}),c=O.useCallback(l=>n({[r]:l}),[r,n]);return a.jsxs("fieldset",{className:"dataviews-controls__datetime",children:[!o&&a.jsx(z0.VisualLabel,{as:"legend",children:s}),o&&a.jsx(Kt,{as:"legend",children:s}),a.jsx(F3,{currentTime:i,onChange:c,hideLabelFromVision:!0})]})}function _It({data:e,field:t,onChange:n,hideLabelFromVision:o}){var r;const{id:s,label:i,description:c}=t,l=(r=t.getValue({item:e}))!==null&&r!==void 0?r:"",u=O.useCallback(d=>n({[s]:Number(d)}),[s,n]);return a.jsx(T1,{label:i,help:c,value:l,onChange:u,__next40pxDefaultSize:!0,hideLabelFromVision:o})}function wIt({data:e,field:t,onChange:n,hideLabelFromVision:o}){const{id:r,label:s}=t,i=t.getValue({item:e}),c=O.useCallback(l=>n({[r]:l}),[r,n]);return t.elements?a.jsx(kf,{label:s,onChange:c,options:t.elements,selected:i,hideLabelFromVision:o}):null}function kIt({data:e,field:t,onChange:n,hideLabelFromVision:o}){var r,s;const{id:i,label:c}=t,l=(r=t.getValue({item:e}))!==null&&r!==void 0?r:"",u=O.useCallback(p=>n({[i]:p}),[i,n]),d=[{label:m("Select item"),value:""},...(s=t?.elements)!==null&&s!==void 0?s:[]];return a.jsx(i0,{label:c,value:l,options:d,onChange:u,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,hideLabelFromVision:o})}function qIt({data:e,field:t,onChange:n,hideLabelFromVision:o}){const{id:r,label:s,placeholder:i}=t,c=t.getValue({item:e}),l=O.useCallback(u=>n({[r]:u}),[r,n]);return a.jsx($t,{label:s,placeholder:i,value:c??"",onChange:l,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,hideLabelFromVision:o})}const DZ={datetime:xIt,integer:_It,radio:wIt,select:kIt,text:qIt};function SIt(e,t){return typeof e.Edit=="function"?e.Edit:typeof e.Edit=="string"?iC(e.Edit):e.elements?iC("select"):typeof t.Edit=="string"?iC(t.Edit):t.Edit}function iC(e){if(Object.keys(DZ).includes(e))return DZ[e];throw"Control "+e+" not found"}function i9(e){return e.map(t=>{var n,o,r,s;const i=vIt(t.type),c=t.getValue||(({item:b})=>b[t.id]),l=(n=t.sort)!==null&&n!==void 0?n:function(h,g,z){return i.sort(c({item:h}),c({item:g}),z)},u=(o=t.isValid)!==null&&o!==void 0?o:function(h,g){return i.isValid(c({item:h}),g)},d=SIt(t,i),p=({item:b})=>{const h=c({item:b});return t?.elements?.find(g=>g.value===h)?.label||c({item:b})},f=t.render||(t.elements?p:c);return{...t,label:t.label||t.id,header:t.header||t.label||t.id,getValue:c,render:f,sort:l,isValid:u,Edit:d,enableHiding:(r=t.enableHiding)!==null&&r!==void 0?r:!0,enableSorting:(s=t.enableSorting)!==null&&s!==void 0?s:!0}})}function CIt({data:e,fields:t,form:n,onChange:o}){const r=O.useMemo(()=>{var s;return i9(((s=n.fields)!==null&&s!==void 0?s:[]).map(i=>t.find(({id:c})=>c===i)).filter(i=>!!i))},[t,n.fields]);return a.jsx(Ye,{spacing:4,children:r.map(s=>a.jsx(s.Edit,{data:e,field:s,onChange:o},s.id))})}function RIt({title:e,onClose:t}){return a.jsx(Ye,{className:"dataforms-layouts-panel__dropdown-header",spacing:4,children:a.jsxs(Je,{alignment:"center",children:[a.jsx(ec,{level:2,size:13,children:e}),a.jsx(or,{}),t&&a.jsx(fe,{__next40pxDefaultSize:!1,className:"dataforms-layouts-panel__dropdown-header-action",label:m("Close"),icon:zl,onClick:t})]})})}function WIt({data:e,field:t,onChange:n}){const[o,r]=O.useState(null),s=O.useMemo(()=>({anchor:o,placement:"left-start",offset:36,shift:!0}),[o]);return a.jsxs(Je,{ref:r,className:"dataforms-layouts-panel__field",children:[a.jsx("div",{className:"dataforms-layouts-panel__field-label",children:t.label}),a.jsx("div",{children:a.jsx(B0,{contentClassName:"dataforms-layouts-panel__field-dropdown",popoverProps:s,focusOnMount:!0,toggleProps:{size:"compact",variant:"tertiary",tooltipPosition:"middle left"},renderToggle:({isOpen:i,onToggle:c})=>a.jsx(fe,{className:"dataforms-layouts-panel__field-control",size:"compact",variant:"tertiary","aria-expanded":i,"aria-label":le(m("Edit %s"),t.label),onClick:c,children:a.jsx(t.render,{item:e})}),renderContent:({onClose:i})=>a.jsxs(a.Fragment,{children:[a.jsx(RIt,{title:t.label,onClose:i}),a.jsx(t.Edit,{data:e,field:t,onChange:n,hideLabelFromVision:!0},t.id)]})})})]})}function TIt({data:e,fields:t,form:n,onChange:o}){const r=O.useMemo(()=>{var s;return i9(((s=n.fields)!==null&&s!==void 0?s:[]).map(i=>t.find(({id:c})=>c===i)).filter(i=>!!i))},[t,n.fields]);return a.jsx(Ye,{spacing:2,children:r.map(s=>a.jsx(WIt,{data:e,field:s,onChange:o},s.id))})}const EIt=[{type:"regular",component:CIt},{type:"panel",component:TIt}];function BIt(e){return EIt.find(t=>t.type===e)}function Dze({form:e,...t}){var n;const o=BIt((n=e.type)!==null&&n!==void 0?n:"regular");return o?a.jsx(o.component,{form:e,...t}):null}function FZ(e,t,n){return i9(t.filter(({id:r})=>!!n.fields?.includes(r))).every(r=>r.isValid(e,{elements:r.elements}))}const NIt={type:"text",id:"title",label:m("Title"),placeholder:m("No title"),getValue:({item:e})=>Nr(e)},LIt={type:"integer",id:"menu_order",label:m("Order"),description:m("Determines the order of pages.")},aC=[LIt],cC={fields:["menu_order"]};function jIt({items:e,closeModal:t,onActionPerformed:n}){const[o,r]=O.useState(e[0]),s=o.menu_order,{editEntityRecord:i,saveEditedEntityRecord:c}=ae(ce),{createSuccessNotice:l,createErrorNotice:u}=ae(Ze);async function d(f){if(f.preventDefault(),!!FZ(o,aC,cC))try{await i("postType",o.type,o.id,{menu_order:s}),t?.(),await c("postType",o.type,o.id,{throwOnError:!0}),l(m("Order updated."),{type:"snackbar"}),n?.(e)}catch(b){const h=b,g=h.message&&h.code!=="unknown_error"?h.message:m("An error occurred while updating the order");u(g,{type:"snackbar"})}}const p=!FZ(o,aC,cC);return a.jsx("form",{onSubmit:d,children:a.jsxs(Ye,{spacing:"5",children:[a.jsx("div",{children:m("Determines the order of pages. Pages with the same order value are sorted alphabetically. Negative order values are supported.")}),a.jsx(Dze,{data:o,fields:aC,form:cC,onChange:f=>r({...o,...f})}),a.jsxs(Je,{justify:"right",children:[a.jsx(fe,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{t?.()},children:m("Cancel")}),a.jsx(fe,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",accessibleWhenDisabled:!0,disabled:p,children:m("Save")})]})]})})}const PIt={id:"order-pages",label:m("Order"),isEligible({status:e}){return e!=="trash"},RenderModal:jIt},IIt={id:"restore",label:m("Restore"),isPrimary:!0,icon:$ce,supportsBulk:!0,isEligible(e){return!MO(e)&&e.type!=="wp_block"&&e.status==="trash"&&e.permissions?.update},async callback(e,{registry:t,onActionPerformed:n}){const{createSuccessNotice:o,createErrorNotice:r}=t.dispatch(Ze),{editEntityRecord:s,saveEditedEntityRecord:i}=t.dispatch(ce);await Promise.allSettled(e.map(l=>s("postType",l.type,l.id,{status:"draft"})));const c=await Promise.allSettled(e.map(l=>i("postType",l.type,l.id,{throwOnError:!0})));if(c.every(({status:l})=>l==="fulfilled")){let l;e.length===1?l=le(m('"%s" has been restored.'),Nr(e[0])):e[0].type==="page"?l=le(m("%d pages have been restored."),e.length):l=le(m("%d posts have been restored."),e.length),o(l,{type:"snackbar",id:"restore-post-action"}),n&&n(e)}else{let l;if(c.length===1){const u=c[0];u.reason?.message?l=u.reason.message:l=m("An error occurred while restoring the post.")}else{const u=new Set,d=c.filter(({status:p})=>p==="rejected");for(const p of d){const f=p;f.reason?.message&&u.add(f.reason.message)}u.size===0?l=m("An error occurred while restoring the posts."):u.size===1?l=le(m("An error occurred while restoring the posts: %s"),[...u][0]):l=le(m("Some errors occurred while restoring the posts: %s"),[...u].join(","))}r(l,{type:"snackbar"})}}},DIt=[NIt],FIt={fields:["title"]},$It={id:"duplicate-post",label:Oe("Duplicate","action label"),isEligible({status:e}){return e!=="trash"},RenderModal:({items:e,closeModal:t,onActionPerformed:n})=>{const[o,r]=O.useState({...e[0],title:le(m("%s (Copy)"),Nr(e[0]))}),[s,i]=O.useState(!1),{saveEntityRecord:c}=ae(ce),{createSuccessNotice:l,createErrorNotice:u}=ae(Ze);async function d(p){if(p.preventDefault(),s)return;const f={status:"draft",title:o.title,slug:o.title||m("No title"),comment_status:o.comment_status,content:typeof o.content=="string"?o.content:o.content.raw,excerpt:typeof o.excerpt=="string"?o.excerpt:o.excerpt?.raw,meta:o.meta,parent:o.parent,password:o.password,template:o.template,format:o.format,featured_media:o.featured_media,menu_order:o.menu_order,ping_status:o.ping_status},b="wp:action-assign-";Object.keys(o?._links||{}).filter(g=>g.startsWith(b)).map(g=>g.slice(b.length)).forEach(g=>{o.hasOwnProperty(g)&&(f[g]=o[g])}),i(!0);try{const g=await c("postType",o.type,f,{throwOnError:!0});l(le(m('"%s" successfully created.'),kt(g.title?.rendered||o.title)),{id:"duplicate-post-action",type:"snackbar"}),n&&n([g])}catch(g){const z=g,y=z.message&&z.code!=="unknown_error"?z.message:m("An error occurred while duplicating the page.");u(y,{type:"snackbar"})}finally{i(!1),t?.()}}return a.jsx("form",{onSubmit:d,children:a.jsxs(Ye,{spacing:3,children:[a.jsx(Dze,{data:o,fields:DIt,form:FIt,onChange:p=>r(f=>({...f,...p}))}),a.jsxs(Je,{spacing:2,justify:"end",children:[a.jsx(fe,{variant:"tertiary",onClick:t,__next40pxDefaultSize:!0,children:m("Cancel")}),a.jsx(fe,{variant:"primary",type:"submit",isBusy:s,"aria-disabled":s,__next40pxDefaultSize:!0,children:Oe("Duplicate","action label")})]})]})})}},VIt={id:"view-post-revisions",context:"list",label(e){var t;const n=(t=e[0]._links?.["version-history"]?.[0]?.count)!==null&&t!==void 0?t:0;return le(m("View revisions (%s)"),n)},isEligible(e){var t,n;if(e.status==="trash")return!1;const o=(t=e?._links?.["predecessor-version"]?.[0]?.id)!==null&&t!==void 0?t:null,r=(n=e?._links?.["version-history"]?.[0]?.count)!==null&&n!==void 0?n:0;return!!o&&r>1},callback(e,{onActionPerformed:t}){const n=e[0],o=wt("revision.php",{revision:n?._links?.["predecessor-version"]?.[0]?.id});document.location.href=o,t&&t(e)}},HIt={id:"view-post",label:Oe("View","verb"),isPrimary:!0,icon:Pp,isEligible(e){return e.status!=="trash"},callback(e,{onActionPerformed:t}){const n=e[0];window.open(n?.link,"_blank"),t&&t(e)}};function UIt(e,t,n){return{type:"REGISTER_ENTITY_ACTION",kind:e,name:t,config:n}}function XIt(e,t,n){return{type:"UNREGISTER_ENTITY_ACTION",kind:e,name:t,actionId:n}}function GIt(e,t){return{type:"SET_IS_READY",kind:e,name:t}}const KIt=e=>async({registry:t})=>{if(gt(t.select(ue)).isEntityReady("postType",e))return;gt(t.dispatch(ue)).setIsReady("postType",e);const o=await t.resolveSelect(ce).getPostType(e),r=await t.resolveSelect(ce).canUser("create",{kind:"postType",name:e}),s=await t.resolveSelect(ce).getCurrentTheme(),i=[o.viewable?HIt:void 0,o?.supports?.revisions?VIt:void 0,globalThis.IS_GUTENBERG_PLUGIN?!["wp_template","wp_block","wp_template_part"].includes(o.slug)&&r&&$It:void 0,o.slug==="wp_template_part"&&r&&s?.is_block_theme?K9t:void 0,r&&o.slug==="wp_block"?H9t:void 0,o.supports?.title?fIt:void 0,o?.supports?.["page-attributes"]?PIt:void 0,o.slug==="wp_block"?lIt:void 0,uIt,IIt,F9t,dIt,pIt];t.batch(()=>{i.forEach(c=>{c&>(t.dispatch(ue)).registerEntityAction("postType",e,c)})}),B0e("core.registerPostTypeActions",e)};function YIt(e){return{type:"SET_CURRENT_TEMPLATE_ID",id:e}}const ZIt=e=>async({select:t,dispatch:n,registry:o})=>{const r=await o.dispatch(ce).saveEntityRecord("postType","wp_template",e);return o.dispatch(ce).editEntityRecord("postType",t.getCurrentPostType(),t.getCurrentPostId(),{template:r.slug}),o.dispatch(Ze).createSuccessNotice(m("Custom template created. You're in template mode now."),{type:"snackbar",actions:[{label:m("Go back"),onClick:()=>n.setRenderingMode(t.getEditorSettings().defaultRenderingMode)}]}),r},QIt=e=>({registry:t})=>{var n;const r=((n=t.select(Qe).get("core","hiddenBlockTypes"))!==null&&n!==void 0?n:[]).filter(s=>!(Array.isArray(e)?e:[e]).includes(s));t.dispatch(Qe).set("core","hiddenBlockTypes",r)},JIt=e=>({registry:t})=>{var n;const o=(n=t.select(Qe).get("core","hiddenBlockTypes"))!==null&&n!==void 0?n:[],r=new Set([...o,...Array.isArray(e)?e:[e]]);t.dispatch(Qe).set("core","hiddenBlockTypes",[...r])},eDt=({onSave:e,dirtyEntityRecords:t=[],entitiesToSkip:n=[],close:o}={})=>({registry:r})=>{const s=[{kind:"postType",name:"wp_navigation"}],i="site-editor-save-success",c=r.select(ce).getEntityRecord("root","__unstableBase")?.home;r.dispatch(Ze).removeNotice(i);const l=t.filter(({kind:p,name:f,key:b,property:h})=>!n.some(g=>g.kind===p&&g.name===f&&g.key===b&&g.property===h));o?.(l);const u=[],d=[];l.forEach(({kind:p,name:f,key:b,property:h})=>{p==="root"&&f==="site"?u.push(h):(s.some(g=>g.kind===p&&g.name===f)&&r.dispatch(ce).editEntityRecord(p,f,b,{status:"publish"}),d.push(r.dispatch(ce).saveEditedEntityRecord(p,f,b)))}),u.length&&d.push(r.dispatch(ce).__experimentalSaveSpecifiedEntityEdits("root","site",void 0,u)),r.dispatch(F).__unstableMarkLastChangeAsPersistent(),Promise.all(d).then(p=>e?e(p):p).then(p=>{p.some(f=>typeof f>"u")?r.dispatch(Ze).createErrorNotice(m("Saving failed.")):r.dispatch(Ze).createSuccessNotice(m("Site updated."),{type:"snackbar",id:i,actions:[{label:m("View site"),url:c}]})}).catch(p=>r.dispatch(Ze).createErrorNotice(`${m("Saving failed.")} ${p}`))},tDt=(e,{allowUndo:t=!0}={})=>async({registry:n})=>{const o="edit-site-template-reverted";if(n.dispatch(Ze).removeNotice(o),!r9t(e)){n.dispatch(Ze).createErrorNotice(m("This template is not revertable."),{type:"snackbar"});return}try{const r=n.select(ce).getEntityConfig("postType",e.type);if(!r){n.dispatch(Ze).createErrorNotice(m("The editor has encountered an unexpected error. Please reload."),{type:"snackbar"});return}const s=wt(`${r.baseURL}/${e.id}`,{context:"edit",source:e.origin}),i=await ct({path:s});if(!i){n.dispatch(Ze).createErrorNotice(m("The editor has encountered an unexpected error. Please reload."),{type:"snackbar"});return}const c=({blocks:d=[]})=>pd(d),l=n.select(ce).getEditedEntityRecord("postType",e.type,e.id);n.dispatch(ce).editEntityRecord("postType",e.type,e.id,{content:c,blocks:l.blocks,source:"custom"},{undoIgnore:!0});const u=Yn(i?.content?.raw);if(n.dispatch(ce).editEntityRecord("postType",e.type,i.id,{content:c,blocks:u,source:"theme"}),t){const d=()=>{n.dispatch(ce).editEntityRecord("postType",e.type,l.id,{content:c,blocks:l.blocks,source:"custom"})};n.dispatch(Ze).createSuccessNotice(m("Template reset."),{type:"snackbar",id:o,actions:[{label:m("Undo"),onClick:d}]})}}catch(r){const s=r.message&&r.code!=="unknown_error"?r.message:m("Template revert failed. Please reload.");n.dispatch(Ze).createErrorNotice(s,{type:"snackbar"})}},nDt=e=>async({registry:t})=>{const n=e.every(r=>r?.has_theme_file),o=await Promise.allSettled(e.map(r=>t.dispatch(ce).deleteEntityRecord("postType",r.type,r.id,{force:!0},{throwOnError:!0})));if(o.every(({status:r})=>r==="fulfilled")){let r;if(e.length===1){let s;typeof e[0].title=="string"?s=e[0].title:typeof e[0].title?.rendered=="string"?s=e[0].title?.rendered:typeof e[0].title?.raw=="string"&&(s=e[0].title?.raw),r=le(m(n?'"%s" reset.':'"%s" deleted.'),kt(s))}else r=m(n?"Items reset.":"Items deleted.");t.dispatch(Ze).createSuccessNotice(r,{type:"snackbar",id:"editor-template-deleted-success"})}else{let r;if(o.length===1)o[0].reason?.message?r=o[0].reason.message:r=m(n?"An error occurred while reverting the item.":"An error occurred while deleting the item.");else{const s=new Set,i=o.filter(({status:c})=>c==="rejected");for(const c of i)c.reason?.message&&s.add(c.reason.message);s.size===0?r=m("An error occurred while deleting the items."):s.size===1?r=n?le(m("An error occurred while reverting the items: %s"),[...s][0]):le(m("An error occurred while deleting the items: %s"),[...s][0]):r=n?le(m("Some errors occurred while reverting the items: %s"),[...s].join(",")):le(m("Some errors occurred while deleting the items: %s"),[...s].join(","))}t.dispatch(Ze).createErrorNotice(r,{type:"snackbar"})}},oDt=Object.freeze(Object.defineProperty({__proto__:null,createTemplate:ZIt,hideBlockTypes:JIt,registerEntityAction:UIt,registerPostTypeActions:KIt,removeTemplates:nDt,revertTemplate:tDt,saveDirtyEntities:eDt,setCurrentTemplateId:YIt,setIsReady:GIt,showBlockTypes:QIt,unregisterEntityAction:XIt},Symbol.toStringTag,{value:"Module"})),rDt=[];function sDt(e,t,n){var o;return(o=e.actions[t]?.[n])!==null&&o!==void 0?o:rDt}function iDt(e,t,n){return e.isReady[t]?.[n]}const aDt={rootClientId:void 0,insertionIndex:void 0,filterValue:void 0},cDt=nt(e=>at(t=>{if(typeof t.blockInserterPanel=="object")return t.blockInserterPanel;if(UT(t)==="template-locked"){const[n]=e(F).getBlocksByName("core/post-content");if(n)return{rootClientId:n,insertionIndex:void 0,filterValue:void 0}}return aDt},t=>{const[n]=e(F).getBlocksByName("core/post-content");return[t.blockInserterPanel,UT(t),n]}));function lDt(e){return e.listViewToggleRef}function uDt(e){return e.inserterSidebarToggleRef}const $Z={wp_block:Gu,wp_navigation:S3,page:Ja,post:ow},dDt=nt(e=>(t,n,o)=>{{if(n==="wp_template_part"||n==="wp_template")return L5(t).find(s=>o.area===s.area)?.icon||Af;if($Z[n])return $Z[n];const r=e(ce).getPostType(n);return typeof r?.icon=="string"&&r.icon.startsWith("dashicons-")?r.icon.slice(10):Ja}}),pDt=nt(e=>(t,n,o)=>{const{type:r,id:s}=ur(t),i=e(ce).getEntityRecordNonTransientEdits("postType",n||r,o||s);if(!i?.meta)return!1;const c=e(ce).getEntityRecord("postType",n||r,o||s)?.meta;return!oMe({...c,footnotes:void 0},{...i.meta,footnotes:void 0})});function fDt(e,...t){return sDt(e.dataviews,...t)}function bDt(e,...t){return iDt(e.dataviews,...t)}const hDt=nt(e=>at((t,n)=>{n=Array.isArray(n)?n:[n];const{getBlocksByName:o,getBlockParents:r,getBlockName:s}=e(F);return o(n).filter(i=>r(i).every(c=>{const l=s(c);return l!=="core/query"&&!n.includes(l)}))},()=>[e(F).getBlocks()])),mDt=Object.freeze(Object.defineProperty({__proto__:null,getEntityActions:fDt,getInserterSidebarToggleRef:uDt,getInsertionPoint:cDt,getListViewToggleRef:lDt,getPostBlocksByName:hDt,getPostIcon:dDt,hasPostMetaChanges:pDt,isEntityReady:bDt},Symbol.toStringTag,{value:"Module"})),Fze={reducer:DLt,selectors:Pjt,actions:o9t},ue=er($Lt,{...Fze});Qs(ue);gt(ue).registerPrivateActions(oDt);gt(ue).registerPrivateSelectors(mDt);const MDt=e=>Sn(t=>({attributes:n,setAttributes:o,...r})=>{const s=D(u=>u(ue).getCurrentPostType(),[]),[i,c]=Z0("postType",s,"meta"),l=O.useMemo(()=>({...n,...Object.fromEntries(Object.entries(e).map(([u,d])=>[u,i[d]]))}),[n,i]);return a.jsx(t,{attributes:l,setAttributes:u=>{const d=Object.fromEntries(Object.entries(u??{}).filter(([p])=>p in e).map(([p,f])=>[e[p],f]));Object.entries(d).length&&c(d),o(u)},...r})},"withMetaAttributeSource");function gDt(e){var t;const n=Object.fromEntries(Object.entries((t=e.attributes)!==null&&t!==void 0?t:{}).filter(([,{source:o}])=>o==="meta").map(([o,{meta:r}])=>[o,r]));return Object.entries(n).length&&(e.edit=MDt(n)(e.edit)),e}r0("blocks.registerBlockType","core/editor/custom-sources-backwards-compatibility/shim-attribute-source",gDt);function zDt(e={},t){switch(t.type){case"SET_IS_MATCHING":return t.values}return e}function ODt(e){return{type:"SET_IS_MATCHING",values:e}}const ADt=Object.freeze(Object.defineProperty({__proto__:null,setIsMatching:ODt},Symbol.toStringTag,{value:"Module"}));function yDt(e,t){return t.indexOf(" ")===-1&&(t=">= "+t),!!e[t]}const vDt=Object.freeze(Object.defineProperty({__proto__:null,isViewportMatch:yDt},Symbol.toStringTag,{value:"Module"})),xDt="core/viewport",j5=er(xDt,{reducer:zDt,actions:ADt,selectors:vDt});Qs(j5);const _Dt=(e,t)=>{const n=jr(()=>{const s=Object.fromEntries(r.map(([i,c])=>[i,c.matches]));tr(j5).setIsMatching(s)},0,{leading:!0}),o=Object.entries(t),r=Object.entries(e).flatMap(([s,i])=>o.map(([c,l])=>{const u=window.matchMedia(`(${l}: ${i}px)`);return u.addEventListener("change",n),[`${c} ${s}`,u]}));window.addEventListener("orientationchange",n),n(),n.flush()},wDt={huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},kDt={"<":"max-width",">=":"min-width"};_Dt(wDt,kDt);function _d(e){return["core/edit-post","core/edit-site"].includes(e)?(Re(`${e} interface scope`,{alternative:"core interface scope",hint:"core/edit-post and core/edit-site are merging.",version:"6.6"}),"core"):e}function gO(e,t){return e==="core"&&t==="edit-site/template"?(Re("edit-site/template sidebar",{alternative:"edit-post/document",version:"6.6"}),"edit-post/document"):e==="core"&&t==="edit-site/block-inspector"?(Re("edit-site/block-inspector sidebar",{alternative:"edit-post/block",version:"6.6"}),"edit-post/block"):t}const qDt=(e,t)=>(e=_d(e),t=gO(e,t),{type:"SET_DEFAULT_COMPLEMENTARY_AREA",scope:e,area:t}),SDt=(e,t)=>({registry:n,dispatch:o})=>{if(!t)return;e=_d(e),t=gO(e,t),n.select(Qe).get(e,"isComplementaryAreaVisible")||n.dispatch(Qe).set(e,"isComplementaryAreaVisible",!0),o({type:"ENABLE_COMPLEMENTARY_AREA",scope:e,area:t})},CDt=e=>({registry:t})=>{e=_d(e),t.select(Qe).get(e,"isComplementaryAreaVisible")&&t.dispatch(Qe).set(e,"isComplementaryAreaVisible",!1)},RDt=(e,t)=>({registry:n})=>{if(!t)return;e=_d(e),t=gO(e,t);const o=n.select(Qe).get(e,"pinnedItems");o?.[t]!==!0&&n.dispatch(Qe).set(e,"pinnedItems",{...o,[t]:!0})},WDt=(e,t)=>({registry:n})=>{if(!t)return;e=_d(e),t=gO(e,t);const o=n.select(Qe).get(e,"pinnedItems");n.dispatch(Qe).set(e,"pinnedItems",{...o,[t]:!1})};function TDt(e,t){return function({registry:n}){Re("dispatch( 'core/interface' ).toggleFeature",{since:"6.0",alternative:"dispatch( 'core/preferences' ).toggle"}),n.dispatch(Qe).toggle(e,t)}}function EDt(e,t,n){return function({registry:o}){Re("dispatch( 'core/interface' ).setFeatureValue",{since:"6.0",alternative:"dispatch( 'core/preferences' ).set"}),o.dispatch(Qe).set(e,t,!!n)}}function BDt(e,t){return function({registry:n}){Re("dispatch( 'core/interface' ).setFeatureDefaults",{since:"6.0",alternative:"dispatch( 'core/preferences' ).setDefaults"}),n.dispatch(Qe).setDefaults(e,t)}}function NDt(e){return{type:"OPEN_MODAL",name:e}}function LDt(){return{type:"CLOSE_MODAL"}}const jDt=Object.freeze(Object.defineProperty({__proto__:null,closeModal:LDt,disableComplementaryArea:CDt,enableComplementaryArea:SDt,openModal:NDt,pinItem:RDt,setDefaultComplementaryArea:qDt,setFeatureDefaults:BDt,setFeatureValue:EDt,toggleFeature:TDt,unpinItem:WDt},Symbol.toStringTag,{value:"Module"})),PDt=nt(e=>(t,n)=>{n=_d(n);const o=e(Qe).get(n,"isComplementaryAreaVisible");if(o!==void 0)return o===!1?null:t?.complementaryAreas?.[n]}),IDt=nt(e=>(t,n)=>{n=_d(n);const o=e(Qe).get(n,"isComplementaryAreaVisible"),r=t?.complementaryAreas?.[n];return o&&r===void 0}),DDt=nt(e=>(t,n,o)=>{var r;return n=_d(n),o=gO(n,o),(r=e(Qe).get(n,"pinnedItems")?.[o])!==null&&r!==void 0?r:!0}),FDt=nt(e=>(t,n,o)=>(Re("select( 'core/interface' ).isFeatureActive( scope, featureName )",{since:"6.0",alternative:"select( 'core/preferences' ).get( scope, featureName )"}),!!e(Qe).get(n,o)));function $Dt(e,t){return e.activeModal===t}const VDt=Object.freeze(Object.defineProperty({__proto__:null,getActiveComplementaryArea:PDt,isComplementaryAreaLoading:IDt,isFeatureActive:FDt,isItemPinned:DDt,isModalActive:$Dt},Symbol.toStringTag,{value:"Module"}));function HDt(e={},t){switch(t.type){case"SET_DEFAULT_COMPLEMENTARY_AREA":{const{scope:n,area:o}=t;return e[n]?e:{...e,[n]:o}}case"ENABLE_COMPLEMENTARY_AREA":{const{scope:n,area:o}=t;return{...e,[n]:o}}}return e}function UDt(e=null,t){switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e}const XDt=zo({complementaryAreas:HDt,activeModal:UDt}),GDt="core/interface",sn=er(GDt,{reducer:XDt,actions:jDt,selectors:VDt});Qs(sn);const a9=O.createContext({name:null,icon:null});a9.Provider;function c9(){return O.useContext(a9)}const KDt=e=>Sn(t=>n=>a.jsx(a9.Consumer,{children:o=>a.jsx(t,{...n,...e(o,n)})}),"withPluginContext");ps((e,t)=>({icon:e,name:t}));const $ze=KDt((e,t)=>({icon:t.icon||e.icon,identifier:t.identifier||`${e.name}/${t.name}`}));function YDt({as:e=fe,scope:t,identifier:n,icon:o,selectedIcon:r,name:s,...i}){const c=e,l=D(p=>p(sn).getActiveComplementaryArea(t)===n,[n,t]),{enableComplementaryArea:u,disableComplementaryArea:d}=ae(sn);return a.jsx(c,{icon:r&&l?r:o,"aria-controls":n.replace("/",":"),onClick:()=>{l?d(t):u(t,n)},...i})}const l9=$ze(YDt),ZDt=({smallScreenTitle:e,children:t,className:n,toggleButtonProps:o})=>{const r=a.jsx(l9,{icon:zl,...o});return a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"components-panel__header interface-complementary-area-header__small",children:[e&&a.jsx("h2",{className:"interface-complementary-area-header__small-title",children:e}),r]}),a.jsxs("div",{className:$("components-panel__header","interface-complementary-area-header",n),tabIndex:-1,children:[t,r]})]})},VZ=()=>{};function QDt({name:e,as:t=Bh,fillProps:n={},bubblesVirtually:o,...r}){return a.jsx(Dp,{name:e,bubblesVirtually:o,fillProps:n,children:s=>{if(!O.Children.toArray(s).length)return null;const i=[];O.Children.forEach(s,({props:{__unstableExplicitMenuItem:l,__unstableTarget:u}})=>{u&&l&&i.push(u)});const c=O.Children.map(s,l=>!l.props.__unstableExplicitMenuItem&&i.includes(l.props.__unstableTarget)?null:l);return a.jsx(t,{...r,children:c})}})}function zO({name:e,as:t=fe,onClick:n,...o}){return a.jsx(Th,{name:e,children:({onClick:r})=>a.jsx(t,{onClick:n||r?(...s)=>{(n||VZ)(...s),(r||VZ)(...s)}:void 0,...o})})}zO.Slot=QDt;const JDt=({__unstableExplicitMenuItem:e,__unstableTarget:t,...n})=>a.jsx(tt,{...n});function Vze({scope:e,target:t,__unstableExplicitMenuItem:n,...o}){return a.jsx(l9,{as:r=>a.jsx(zO,{__unstableExplicitMenuItem:n,__unstableTarget:`${e}/${t}`,as:JDt,name:`${e}/plugin-more-menu`,...r}),role:"menuitemcheckbox",selectedIcon:no,name:t,scope:e,...o})}function Ik({scope:e,...t}){return a.jsx(Th,{name:`PinnedItems/${e}`,...t})}function eFt({scope:e,className:t,...n}){return a.jsx(Dp,{name:`PinnedItems/${e}`,...n,children:o=>o?.length>0&&a.jsx("div",{className:$(t,"interface-pinned-items"),children:o})})}Ik.Slot=eFt;const tFt=.3;function nFt({scope:e,...t}){return a.jsx(Dp,{name:`ComplementaryArea/${e}`,...t})}const Hze=280,oFt={open:{width:Hze},closed:{width:0},mobileOpen:{width:"100vw"}};function rFt({activeArea:e,isActive:t,scope:n,children:o,className:r,id:s}){const i=Zs(),c=g0("medium","<"),l=t1(e),u=t1(t),[,d]=O.useState({});O.useEffect(()=>{d({})},[t]);const p={type:"tween",duration:i||c||l&&e&&e!==l?0:tFt,ease:[.6,0,.4,1]};return a.jsx(Th,{name:`ComplementaryArea/${n}`,children:a.jsx(Lp,{initial:!1,children:(u||t)&&a.jsx(Hn.div,{variants:oFt,initial:"closed",animate:c?"mobileOpen":"open",exit:"closed",transition:p,className:"interface-complementary-area__fill",children:a.jsx("div",{id:s,className:r,style:{width:c?"100vw":Hze},children:o})})})})}function sFt(e,t,n,o,r){const s=O.useRef(!1),i=O.useRef(!1),{enableComplementaryArea:c,disableComplementaryArea:l}=ae(sn);O.useEffect(()=>{o&&r&&!s.current?(l(e),i.current=!0):i.current&&!r&&s.current?(i.current=!1,c(e,t)):i.current&&n&&n!==t&&(i.current=!1),r!==s.current&&(s.current=r)},[o,r,e,t,n,l,c])}function iFt({children:e,className:t,closeLabel:n=m("Close plugin"),identifier:o,header:r,headerClassName:s,icon:i,isPinnable:c=!0,panelClassName:l,scope:u,name:d,smallScreenTitle:p,title:f,toggleShortcut:b,isActiveByDefault:h}){const[g,z]=O.useState(!1),{isLoading:y,isActive:x,isPinned:v,activeArea:M,isSmall:A,isLarge:_,showIconLabels:w}=D(T=>{const{getActiveComplementaryArea:W,isComplementaryAreaLoading:B,isItemPinned:N}=T(sn),{get:E}=T(Qe),L=W(u);return{isLoading:B(u),isActive:L===o,isPinned:N(u,o),activeArea:L,isSmall:T(j5).isViewportMatch("< medium"),isLarge:T(j5).isViewportMatch("large"),showIconLabels:E("core","showIconLabels")}},[o,u]);sFt(u,o,M,x,A);const{enableComplementaryArea:k,disableComplementaryArea:q,pinItem:S,unpinItem:C}=ae(sn);if(O.useEffect(()=>{h&&M===void 0&&!A?k(u,o):M===void 0&&A&&q(u,o),z(!0)},[M,h,u,o,A,k,q]),!!g)return a.jsxs(a.Fragment,{children:[c&&a.jsx(Ik,{scope:u,children:v&&a.jsx(l9,{scope:u,identifier:o,isPressed:x&&(!w||_),"aria-expanded":x,"aria-disabled":y,label:f,icon:w?no:i,showTooltip:!w,variant:w?"tertiary":void 0,size:"compact"})}),d&&c&&a.jsx(Vze,{target:d,scope:u,icon:i,children:f}),a.jsxs(rFt,{activeArea:M,isActive:x,className:$("interface-complementary-area",t),scope:u,id:o.replace("/",":"),children:[a.jsx(ZDt,{className:s,closeLabel:n,onClose:()=>q(u),smallScreenTitle:p,toggleButtonProps:{label:n,size:"small",shortcut:b,scope:u,identifier:o},children:r||a.jsxs(a.Fragment,{children:[a.jsx("h2",{className:"interface-complementary-area-header__title",children:f}),c&&a.jsx(fe,{className:"interface-complementary-area__pin-unpin-item",icon:v?$Ze:FZe,label:m(v?"Unpin from toolbar":"Pin to toolbar"),onClick:()=>(v?C:S)(u,o),isPressed:v,"aria-expanded":v,size:"compact"})]})}),a.jsx(Jft,{className:l,children:e})]})]})}const Dk=$ze(iFt);Dk.Slot=nFt;const aFt=({isActive:e})=>(O.useEffect(()=>{let t=!1;return document.body.classList.contains("sticky-menu")&&(t=!0,document.body.classList.remove("sticky-menu")),()=>{t&&document.body.classList.add("sticky-menu")}},[]),O.useEffect(()=>(e?document.body.classList.add("is-fullscreen-mode"):document.body.classList.remove("is-fullscreen-mode"),()=>{e&&document.body.classList.remove("is-fullscreen-mode")}),[e]),null),cFt=aFt;function $d({children:e,className:t,ariaLabel:n,as:o="div",...r}){return a.jsx(o,{className:$("interface-navigable-region",t),"aria-label":n,role:"region",tabIndex:"-1",...r,children:e})}const Uze=.25,HZ={type:"tween",duration:Uze,ease:[.6,0,.4,1]};function lFt(e){O.useEffect(()=>{const t=document&&document.querySelector(`html:not(.${e})`);if(t)return t.classList.toggle(e),()=>{t.classList.toggle(e)}},[e])}const uFt={hidden:{opacity:1,marginTop:-60},visible:{opacity:1,marginTop:0},distractionFreeHover:{opacity:1,marginTop:0,transition:{...HZ,delay:.2,delayChildren:.2}},distractionFreeHidden:{opacity:0,marginTop:-60},distractionFreeDisabled:{opacity:0,marginTop:0,transition:{...HZ,delay:.8,delayChildren:.8}}};function dFt({isDistractionFree:e,footer:t,header:n,editorNotices:o,sidebar:r,secondarySidebar:s,content:i,actions:c,labels:l,className:u,enableRegionNavigation:d=!0,shortcuts:p},f){const[b,h]=Ci(),g=g0("medium","<"),y={type:"tween",duration:Zs()?0:Uze,ease:[.6,0,.4,1]},x=nht(p);lFt("interface-interface-skeleton__html-container");const M={...{header:Oe("Header","header landmark area"),body:m("Content"),secondarySidebar:m("Block Library"),sidebar:m("Settings"),actions:m("Publish"),footer:m("Footer")},...l};return a.jsxs("div",{...d?x:{},ref:Gt([f,d?x.ref:void 0]),className:$(u,"interface-interface-skeleton",x.className,!!t&&"has-footer"),children:[a.jsxs("div",{className:"interface-interface-skeleton__editor",children:[a.jsx(Lp,{initial:!1,children:!!n&&a.jsx($d,{as:Hn.div,className:"interface-interface-skeleton__header","aria-label":M.header,initial:e&&!g?"distractionFreeHidden":"hidden",whileHover:e&&!g?"distractionFreeHover":"visible",animate:e&&!g?"distractionFreeDisabled":"visible",exit:e&&!g?"distractionFreeHidden":"hidden",variants:uFt,transition:y,children:n})}),e&&a.jsx("div",{className:"interface-interface-skeleton__header",children:o}),a.jsxs("div",{className:"interface-interface-skeleton__body",children:[a.jsx(Lp,{initial:!1,children:!!s&&a.jsx($d,{className:"interface-interface-skeleton__secondary-sidebar",ariaLabel:M.secondarySidebar,as:Hn.div,initial:"closed",animate:"open",exit:"closed",variants:{open:{width:h.width},closed:{width:0}},transition:y,children:a.jsxs(Hn.div,{style:{position:"absolute",width:g?"100vw":"fit-content",height:"100%",left:0},variants:{open:{x:0},closed:{x:"-100%"}},transition:y,children:[b,s]})})}),a.jsx($d,{className:"interface-interface-skeleton__content",ariaLabel:M.body,children:i}),!!r&&a.jsx($d,{className:"interface-interface-skeleton__sidebar",ariaLabel:M.sidebar,children:r}),!!c&&a.jsx($d,{className:"interface-interface-skeleton__actions",ariaLabel:M.actions,children:c})]})]}),!!t&&a.jsx($d,{className:"interface-interface-skeleton__footer",ariaLabel:M.footer,children:t})]})}const Xze=O.forwardRef(dFt),pFt=Object.freeze(Object.defineProperty({__proto__:null,ActionItem:zO,ComplementaryArea:Dk,ComplementaryAreaMoreMenuItem:Vze,FullscreenMode:cFt,InterfaceSkeleton:Xze,NavigableRegion:$d,PinnedItems:Ik,store:sn},Symbol.toStringTag,{value:"Module"}));function fFt(){const e=D(g=>{const{richEditingEnabled:z,codeEditingEnabled:y}=g(ue).getEditorSettings();return!z||!y},[]),{getBlockSelectionStart:t}=D(F),{getActiveComplementaryArea:n}=D(sn),{enableComplementaryArea:o,disableComplementaryArea:r}=ae(sn),{redo:s,undo:i,savePost:c,setIsListViewOpened:l,switchEditorMode:u,toggleDistractionFree:d}=ae(ue),{isEditedPostDirty:p,isPostSavingLocked:f,isListViewOpened:b,getEditorMode:h}=D(ue);return Ur("core/editor/toggle-mode",()=>{u(h()==="visual"?"text":"visual")},{isDisabled:e}),Ur("core/editor/toggle-distraction-free",()=>{d()}),Ur("core/editor/undo",g=>{i(),g.preventDefault()}),Ur("core/editor/redo",g=>{s(),g.preventDefault()}),Ur("core/editor/save",g=>{g.preventDefault(),!f()&&p()&&c()}),Ur("core/editor/toggle-list-view",g=>{b()||(g.preventDefault(),l(!0))}),Ur("core/editor/toggle-sidebar",g=>{if(g.preventDefault(),["edit-post/document","edit-post/block"].includes(n("core")))r("core");else{const y=t()?"edit-post/block":"edit-post/document";o("core",y)}}),null}function bFt(e){const t=e.avatar_urls&&e.avatar_urls[24]?a.jsx("img",{className:"editor-autocompleters__user-avatar",alt:"",src:e.avatar_urls[24]}):a.jsx("span",{className:"editor-autocompleters__no-avatar"});return a.jsxs(a.Fragment,{children:[t,a.jsx("span",{className:"editor-autocompleters__user-name",children:e.name}),a.jsx("span",{className:"editor-autocompleters__user-slug",children:e.slug})]})}const hFt={name:"users",className:"editor-autocompleters__user",triggerPrefix:"@",useItems(e){const t=D(o=>{const{getUsers:r}=o(ce);return r({context:"view",search:encodeURIComponent(e)})},[e]);return[O.useMemo(()=>t?t.map(o=>({key:`user-${o.slug}`,value:o,label:bFt(o)})):[],[t])]},getOptionCompletion(e){return`@${e.slug}`}},UZ={wp_pattern:m("Editing pattern: %s"),wp_navigation:m("Editing navigation menu: %s"),wp_template:m("Editing template: %s"),wp_template_part:m("Editing template part: %s")},mFt=Hn(fe);function MFt(e){const{postType:t,documentTitle:n,isNotFound:o,isUnsyncedPattern:r,templateIcon:s,templateTitle:i,onNavigateToPreviousEntityRecord:c}=D(y=>{const{getCurrentPostType:x,getCurrentPostId:v,getEditorSettings:M,__experimentalGetTemplateInfo:A}=y(ue),{getEditedEntityRecord:_,isResolving:w}=y(ce),k=x(),q=v(),S=_("postType",k,q),C=A(S);return{postType:k,documentTitle:S.title,isNotFound:!S&&!w("getEditedEntityRecord","postType",k,q),isUnsyncedPattern:S?.wp_pattern_sync_status==="unsynced",templateIcon:gt(y(ue)).getPostIcon(k,{area:S?.area}),templateTitle:C.title,onNavigateToPreviousEntityRecord:M().onNavigateToPreviousEntityRecord}},[]),{open:l}=ae(Zp),u=Zs(),d=bze.includes(t),p=hze.includes(t),f=!!c,b=d?i:n,h=e.title||b,g=e.icon||s,z=O.useRef(!1);return O.useEffect(()=>{z.current=!0},[]),a.jsxs("div",{className:$("editor-document-bar",{"has-back-button":f,"is-global":p&&!r}),children:[a.jsx(Lp,{children:f&&a.jsx(mFt,{className:"editor-document-bar__back",icon:ft()?jp:X_,onClick:y=>{y.stopPropagation(),c()},size:"compact",initial:z.current?{opacity:0,transform:"translateX(15%)"}:!1,animate:{opacity:1,transform:"translateX(0%)"},exit:{opacity:0,transform:"translateX(15%)"},transition:u?{duration:0}:void 0,children:m("Back")})}),o?a.jsx(l0,{children:m("Document not found")}):a.jsxs(fe,{className:"editor-document-bar__command",onClick:()=>l(),size:"compact",children:[a.jsxs(Hn.div,{className:"editor-document-bar__title",initial:z.current?{opacity:0,transform:f?"translateX(15%)":"translateX(-15%)"}:!1,animate:{opacity:1,transform:"translateX(0%)"},transition:u?{duration:0}:void 0,children:[a.jsx(b0,{icon:g}),a.jsx(l0,{size:"body",as:"h1","aria-label":!e.title&&UZ[t]?le(UZ[t],h):void 0,children:h?kt(h):m("No title")})]},f),a.jsx("span",{className:"editor-document-bar__shortcut",children:Jo.primary("k")})]})]})}const XZ=({children:e,isValid:t,level:n,href:o,onSelect:r})=>a.jsx("li",{className:$("document-outline__item",`is-${n.toLowerCase()}`,{"is-invalid":!t}),children:a.jsxs("a",{href:o,className:"document-outline__button",onClick:r,children:[a.jsx("span",{className:"document-outline__emdash","aria-hidden":"true"}),a.jsx("strong",{className:"document-outline__level",children:n}),a.jsx("span",{className:"document-outline__item-content",children:e})]})}),gFt=a.jsx("em",{children:m("(Empty heading)")}),zFt=[a.jsx("br",{},"incorrect-break"),a.jsx("em",{children:m("(Incorrect heading level)")},"incorrect-message")],OFt=[a.jsx("br",{},"incorrect-break-h1"),a.jsx("em",{children:m("(Your theme may already use a H1 for the post title)")},"incorrect-message-h1")],AFt=[a.jsx("br",{},"incorrect-break-multiple-h1"),a.jsx("em",{children:m("(Multiple H1 headings are not recommended)")},"incorrect-message-multiple-h1")];function yFt(){return a.jsxs(te,{width:"138",height:"148",viewBox:"0 0 138 148",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx($1,{width:"138",height:"148",rx:"4",fill:"#F0F6FC"}),a.jsx(sA,{x1:"44",y1:"28",x2:"24",y2:"28",stroke:"#DDDDDD"}),a.jsx($1,{x:"48",y:"16",width:"27",height:"23",rx:"4",fill:"#DDDDDD"}),a.jsx(J,{d:"M54.7585 32V23.2727H56.6037V26.8736H60.3494V23.2727H62.1903V32H60.3494V28.3949H56.6037V32H54.7585ZM67.4574 23.2727V32H65.6122V25.0241H65.5611L63.5625 26.277V24.6406L65.723 23.2727H67.4574Z",fill:"black"}),a.jsx(sA,{x1:"55",y1:"59",x2:"24",y2:"59",stroke:"#DDDDDD"}),a.jsx($1,{x:"59",y:"47",width:"29",height:"23",rx:"4",fill:"#DDDDDD"}),a.jsx(J,{d:"M65.7585 63V54.2727H67.6037V57.8736H71.3494V54.2727H73.1903V63H71.3494V59.3949H67.6037V63H65.7585ZM74.6605 63V61.6705L77.767 58.794C78.0313 58.5384 78.2528 58.3082 78.4318 58.1037C78.6136 57.8991 78.7514 57.6989 78.8452 57.5028C78.9389 57.304 78.9858 57.0895 78.9858 56.8594C78.9858 56.6037 78.9276 56.3835 78.8111 56.1989C78.6946 56.0114 78.5355 55.8679 78.3338 55.7685C78.1321 55.6662 77.9034 55.6151 77.6477 55.6151C77.3807 55.6151 77.1477 55.669 76.9489 55.777C76.75 55.8849 76.5966 56.0398 76.4886 56.2415C76.3807 56.4432 76.3267 56.6832 76.3267 56.9616H74.5753C74.5753 56.3906 74.7045 55.8949 74.9631 55.4744C75.2216 55.054 75.5838 54.7287 76.0497 54.4986C76.5156 54.2685 77.0526 54.1534 77.6605 54.1534C78.2855 54.1534 78.8295 54.2642 79.2926 54.4858C79.7585 54.7045 80.1207 55.0085 80.3793 55.3977C80.6378 55.7869 80.767 56.233 80.767 56.7358C80.767 57.0653 80.7017 57.3906 80.571 57.7116C80.4432 58.0327 80.2145 58.3892 79.8849 58.7812C79.5554 59.1705 79.0909 59.6378 78.4915 60.1832L77.2173 61.4318V61.4915H80.8821V63H74.6605Z",fill:"black"}),a.jsx(sA,{x1:"80",y1:"90",x2:"24",y2:"90",stroke:"#DDDDDD"}),a.jsx($1,{x:"84",y:"78",width:"30",height:"23",rx:"4",fill:"#F0B849"}),a.jsx(J,{d:"M90.7585 94V85.2727H92.6037V88.8736H96.3494V85.2727H98.1903V94H96.3494V90.3949H92.6037V94H90.7585ZM99.5284 92.4659V91.0128L103.172 85.2727H104.425V87.2841H103.683L101.386 90.919V90.9872H106.564V92.4659H99.5284ZM103.717 94V92.0227L103.751 91.3793V85.2727H105.482V94H103.717Z",fill:"black"}),a.jsx(sA,{x1:"66",y1:"121",x2:"24",y2:"121",stroke:"#DDDDDD"}),a.jsx($1,{x:"70",y:"109",width:"29",height:"23",rx:"4",fill:"#DDDDDD"}),a.jsx(J,{d:"M76.7585 125V116.273H78.6037V119.874H82.3494V116.273H84.1903V125H82.3494V121.395H78.6037V125H76.7585ZM88.8864 125.119C88.25 125.119 87.6832 125.01 87.1861 124.791C86.6918 124.57 86.3011 124.266 86.0142 123.879C85.7301 123.49 85.5838 123.041 85.5753 122.533H87.4332C87.4446 122.746 87.5142 122.933 87.642 123.095C87.7727 123.254 87.946 123.378 88.1619 123.466C88.3778 123.554 88.6207 123.598 88.8906 123.598C89.1719 123.598 89.4205 123.548 89.6364 123.449C89.8523 123.349 90.0213 123.212 90.1435 123.036C90.2656 122.859 90.3267 122.656 90.3267 122.426C90.3267 122.193 90.2614 121.987 90.1307 121.808C90.0028 121.626 89.8182 121.484 89.5767 121.382C89.3381 121.28 89.054 121.229 88.7244 121.229H87.9105V119.874H88.7244C89.0028 119.874 89.2486 119.825 89.4616 119.729C89.6776 119.632 89.8452 119.499 89.9645 119.328C90.0838 119.155 90.1435 118.953 90.1435 118.723C90.1435 118.504 90.0909 118.312 89.9858 118.148C89.8835 117.98 89.7386 117.849 89.5511 117.756C89.3665 117.662 89.1506 117.615 88.9034 117.615C88.6534 117.615 88.4247 117.661 88.2173 117.751C88.0099 117.839 87.8438 117.966 87.7188 118.131C87.5938 118.295 87.527 118.489 87.5185 118.71H85.75C85.7585 118.207 85.902 117.764 86.1804 117.381C86.4588 116.997 86.8338 116.697 87.3054 116.482C87.7798 116.263 88.3153 116.153 88.9119 116.153C89.5142 116.153 90.0412 116.263 90.4929 116.482C90.9446 116.7 91.2955 116.996 91.5455 117.368C91.7983 117.737 91.9233 118.152 91.9205 118.612C91.9233 119.101 91.7713 119.509 91.4645 119.835C91.1605 120.162 90.7642 120.369 90.2756 120.457V120.526C90.9176 120.608 91.4063 120.831 91.7415 121.195C92.0795 121.555 92.2472 122.007 92.2443 122.55C92.2472 123.047 92.1037 123.489 91.8139 123.875C91.527 124.261 91.1307 124.565 90.625 124.787C90.1193 125.009 89.5398 125.119 88.8864 125.119Z",fill:"black"})]})}const Gze=(e=[])=>e.flatMap((t={})=>t.name==="core/heading"?{...t,level:t.attributes.level,isEmpty:vFt(t)}:Gze(t.innerBlocks)),vFt=e=>!e.attributes.content||e.attributes.content.trim().length===0;function xFt({onSelect:e,isTitleSupported:t,hasOutlineItemsDisabled:n}){const{selectBlock:o}=ae(F),{blocks:r,title:s}=D(f=>{var b;const{getBlocks:h}=f(F),{getEditedPostAttribute:g}=f(ue),{getPostType:z}=f(ce),y=z(g("type"));return{title:g("title"),blocks:h(),isTitleSupported:(b=y?.supports?.title)!==null&&b!==void 0?b:!1}}),i=Gze(r);if(i.length<1)return a.jsxs("div",{className:"editor-document-outline has-no-headings",children:[a.jsx(yFt,{}),a.jsx("p",{children:m("Navigate the structure of your document and address issues like empty or incorrect heading levels.")})]});let c=1;const l=document.querySelector(".editor-post-title__input"),u=t&&s&&l,p=i.reduce((f,b)=>({...f,[b.level]:(f[b.level]||0)+1}),{})[1]>1;return a.jsx("div",{className:"document-outline",children:a.jsxs("ul",{children:[u&&a.jsx(XZ,{level:m("Title"),isValid:!0,onSelect:e,href:`#${l.id}`,isDisabled:n,children:s}),i.map((f,b)=>{const h=f.level>c+1,g=!f.isEmpty&&!h&&!!f.level&&(f.level!==1||!p&&!u);return c=f.level,a.jsxs(XZ,{level:`H${f.level}`,isValid:g,isDisabled:n,href:`#block-${f.clientId}`,onSelect:()=>{o(f.clientId),e?.()},children:[f.isEmpty?gFt:cp(m0({html:f.attributes.content})),h&&zFt,f.level===1&&p&&AFt,u&&f.level===1&&!p&&OFt]},b)})]})})}function _Ft(e,t){const n=Ta()?Jo.primaryShift("z"):Jo.primary("y"),o=D(s=>s(ue).hasEditorRedo(),[]),{redo:r}=ae(ue);return a.jsx(fe,{__next40pxDefaultSize:!1,...e,ref:t,icon:ft()?Lle:xle,label:m("Redo"),shortcut:n,"aria-disabled":!o,onClick:o?r:void 0,className:"editor-history__redo"})}const wFt=O.forwardRef(_Ft);function kFt(e,t){const n=D(r=>r(ue).hasEditorUndo(),[]),{undo:o}=ae(ue);return a.jsx(fe,{__next40pxDefaultSize:!1,...e,ref:t,icon:ft()?xle:Lle,label:m("Undo"),shortcut:Jo.primary("z"),"aria-disabled":!n,onClick:n?o:void 0,className:"editor-history__undo"})}const qFt=O.forwardRef(kFt);function SFt(){const[e,t]=O.useState(!1),n=D(s=>s(F).isValidTemplate(),[]),{setTemplateValidity:o,synchronizeTemplate:r}=ae(F);return n?null:a.jsxs(a.Fragment,{children:[a.jsx($s,{className:"editor-template-validation-notice",isDismissible:!1,status:"warning",actions:[{label:m("Keep it as is"),onClick:()=>o(!0)},{label:m("Reset the template"),onClick:()=>t(!0)}],children:m("The content of your post doesn’t match the template assigned to your post type.")}),a.jsx(bw,{isOpen:e,confirmButtonText:m("Reset"),onConfirm:()=>{t(!1),r()},onCancel:()=>t(!1),size:"medium",children:m("Resetting the template may result in loss of content, do you want to continue?")})]})}function GZ(){const{notices:e}=D(r=>({notices:r(Ze).getNotices()}),[]),{removeNotice:t}=ae(Ze),n=e.filter(({isDismissible:r,type:s})=>r&&s==="default"),o=e.filter(({isDismissible:r,type:s})=>!r&&s==="default");return a.jsxs(a.Fragment,{children:[a.jsx(EW,{notices:o,className:"components-editor-notices__pinned"}),a.jsx(EW,{notices:n,className:"components-editor-notices__dismissible",onRemove:t,children:a.jsx(SFt,{})})]})}const CFt=-3;function RFt(){const e=D(o=>o(Ze).getNotices(),[]),{removeNotice:t}=ae(Ze),n=e.filter(({type:o})=>o==="snackbar").slice(CFt);return a.jsx(Qbt,{notices:n,className:"components-editor-notices__snackbar",onRemove:t})}function WFt({record:e,checked:t,onChange:n}){const{name:o,kind:r,title:s,key:i}=e,{entityRecordTitle:c,hasPostMetaChanges:l}=D(u=>{if(r!=="postType"||o!=="wp_template")return{entityRecordTitle:s,hasPostMetaChanges:gt(u(ue)).hasPostMetaChanges(o,i)};const d=u(ce).getEditedEntityRecord(r,o,i);return{entityRecordTitle:u(ue).__experimentalGetTemplateInfo(d).title,hasPostMetaChanges:gt(u(ue)).hasPostMetaChanges(o,i)}},[o,r,s,i]);return a.jsxs(a.Fragment,{children:[a.jsx($3,{children:a.jsx(Bo,{__nextHasNoMarginBottom:!0,label:kt(c)||m("Untitled"),checked:t,onChange:n})}),l&&a.jsx("ul",{className:"entities-saved-states__changes",children:a.jsx("li",{children:m("Post Meta.")})})]})}const{getGlobalStylesChanges:TFt,GlobalStylesContext:EFt}=gt(p0);function BFt(e,t){switch(e){case"site":return m(t===1?"This change will affect your whole site.":"These changes will affect your whole site.");case"wp_template":return m("This change will affect pages and posts that use this template.");case"page":case"post":return m("The following has been modified.")}}function NFt({record:e}){const{user:t}=O.useContext(EFt),n=D(r=>r(ce).getEntityRecord(e.kind,e.name,e.key),[e.kind,e.name,e.key]),o=TFt(t,n,{maxResults:10});return o.length?a.jsx("ul",{className:"entities-saved-states__changes",children:o.map(r=>a.jsx("li",{children:r},r))}):null}function LFt({record:e,count:t}){if(e?.name==="globalStyles")return null;const n=BFt(e?.name,t);return n?a.jsx($3,{children:n}):null}function jFt({list:e,unselectedEntities:t,setUnselectedEntities:n}){const o=e.length,r=e[0];let i=D(c=>c(ce).getEntityConfig(r.kind,r.name),[r.kind,r.name]).label;return r?.name==="wp_template_part"&&(i=m(o===1?"Template Part":"Template Parts")),a.jsxs(De,{title:i,initialOpen:!0,children:[a.jsx(LFt,{record:r,count:o}),e.map(c=>a.jsx(WFt,{record:c,checked:!t.some(l=>l.kind===c.kind&&l.name===c.name&&l.key===c.key&&l.property===c.property),onChange:l=>n(c,l)},c.key||c.property)),r?.name==="globalStyles"&&a.jsx(NFt,{record:r})]})}const PFt=()=>{const{editedEntities:e,siteEdits:t,siteEntityConfig:n}=D(l=>{const{__experimentalGetDirtyEntityRecords:u,getEntityRecordEdits:d,getEntityConfig:p}=l(ce);return{editedEntities:u(),siteEdits:d("root","site"),siteEntityConfig:p("root","site")}},[]),o=O.useMemo(()=>{var l;const u=e.filter(f=>!(f.kind==="root"&&f.name==="site")),d=(l=n?.meta?.labels)!==null&&l!==void 0?l:{},p=[];for(const f in t)p.push({kind:"root",name:"site",title:d[f]||f,property:f});return[...u,...p]},[e,t,n]),[r,s]=O.useState([]),i=({kind:l,name:u,key:d,property:p},f)=>{s(f?r.filter(b=>b.kind!==l||b.name!==u||b.key!==d||b.property!==p):[...r,{kind:l,name:u,key:d,property:p}])},c=o.length-r.length>0;return{dirtyEntityRecords:o,isDirty:c,setUnselectedEntities:i,unselectedEntities:r}};function IFt(e){return e}function DFt({close:e,renderDialog:t=void 0}){const n=PFt();return a.jsx(P5,{close:e,renderDialog:t,...n})}function P5({additionalPrompt:e=void 0,close:t,onSave:n=IFt,saveEnabled:o=void 0,saveLabel:r=m("Save"),renderDialog:s=void 0,dirtyEntityRecords:i,isDirty:c,setUnselectedEntities:l,unselectedEntities:u}){const d=O.useRef(),{saveDirtyEntities:p}=gt(ae(ue)),f=i.reduce((k,q)=>{const{name:S}=q;return k[S]||(k[S]=[]),k[S].push(q),k},{}),{site:b,wp_template:h,wp_template_part:g,...z}=f,y=[b,h,g,...Object.values(z)].filter(Array.isArray),x=o??c,v=O.useCallback(()=>t(),[t]),[M,A]=Mne({onClose:()=>v()}),_=He(P5,"label"),w=He(P5,"description");return a.jsxs("div",{ref:M,...A,className:"entities-saved-states__panel",role:s?"dialog":void 0,"aria-labelledby":s?_:void 0,"aria-describedby":s?w:void 0,children:[a.jsxs(Q0,{className:"entities-saved-states__panel-header",gap:2,children:[a.jsx(Ht,{isBlock:!0,as:fe,ref:d,variant:"primary",disabled:!x,accessibleWhenDisabled:!0,onClick:()=>p({onSave:n,dirtyEntityRecords:i,entitiesToSkip:u,close:t}),className:"editor-entities-saved-states__save-button",children:r}),a.jsx(Ht,{isBlock:!0,as:fe,variant:"secondary",onClick:v,children:m("Cancel")})]}),a.jsxs("div",{className:"entities-saved-states__text-prompt",children:[a.jsxs("div",{className:"entities-saved-states__text-prompt--header-wrapper",id:s?_:void 0,children:[a.jsx("strong",{className:"entities-saved-states__text-prompt--header",children:m("Are you ready to save?")}),e]}),a.jsx("p",{id:s?w:void 0,children:c?z1(le(a0("There is %d site change waiting to be saved.","There are %d site changes waiting to be saved.",y.length),y.length),{strong:a.jsx("strong",{})}):m("Select the items you want to save.")})]}),y.map(k=>a.jsx(jFt,{list:k,unselectedEntities:u,setUnselectedEntities:l},k[0].name))]})}function Kze({children:e}){return D(n=>{const{getEditedPostAttribute:o}=n(ue),{getPostType:r}=n(ce);return!!r(o("type"))?.supports?.["page-attributes"]},[])?e:null}function Ha({children:e,supportKeys:t}){const n=D(r=>{const{getEditedPostAttribute:s}=r(ue),{getPostType:i}=r(ce);return i(s("type"))},[]);let o=!!n;return n&&(o=(Array.isArray(t)?t:[t]).some(r=>!!n.supports[r])),o?e:null}const Lr=O.forwardRef(({className:e,label:t,children:n},o)=>a.jsxs(Je,{className:$("editor-post-panel__row",e),ref:o,children:[t&&a.jsx("div",{className:"editor-post-panel__row-label",children:t}),a.jsx("div",{className:"editor-post-panel__row-control",children:n})]}));function Yze(e){const t=e.map(r=>({children:[],parent:null,...r}));if(t.some(({parent:r})=>r===null))return t;const n=t.reduce((r,s)=>{const{parent:i}=s;return r[i]||(r[i]=[]),r[i].push(s),r},{}),o=r=>r.map(s=>{const i=n[s.id];return{...s,children:i&&i.length?o(i):[]}});return o(n[0]||[])}const Wz=e=>kt(e),Zze=e=>({...e,name:Wz(e.name)}),FFt=e=>(e??[]).map(Zze);function XT(e){return e?.title?.rendered?kt(e.title.rendered):`#${e.id} (${m("no title")})`}const KZ=(e,t)=>{const n=Xs(e||"").toLowerCase(),o=Xs(t||"").toLowerCase();return n===o?0:n.startsWith(o)?n.length:1/0};function $Ft(){const{editPost:e}=ae(ue),[t,n]=O.useState(!1),{isHierarchical:o,parentPostId:r,parentPostTitle:s,pageItems:i}=D(d=>{var p;const{getPostType:f,getEntityRecords:b,getEntityRecord:h}=d(ce),{getCurrentPostId:g,getEditedPostAttribute:z}=d(ue),y=z("type"),x=z("parent"),v=f(y),M=g(),A=(p=v?.hierarchical)!==null&&p!==void 0?p:!1,_={per_page:100,exclude:M,parent_exclude:M,orderby:"menu_order",order:"asc",_fields:"id,title,parent"};t&&(_.search=t);const w=x?h("postType",y,x):null;return{isHierarchical:A,parentPostId:x,parentPostTitle:w?XT(w):"",pageItems:A?b("postType",y,_):null}},[t]),c=O.useMemo(()=>{const d=(h,g=0)=>h.map(x=>[{value:x.id,label:"— ".repeat(g)+kt(x.name),rawName:x.name},...d(x.children||[],g+1)]).sort(([x],[v])=>{const M=KZ(x.rawName,t),A=KZ(v.rawName,t);return M>=A?1:-1}).flat();if(!i)return[];let p=i.map(h=>({id:h.id,parent:h.parent,name:XT(h)}));t||(p=Yze(p));const f=d(p),b=f.find(h=>h.value===r);return s&&!b&&f.unshift({value:r,label:s}),f},[i,t,s,r]);if(!o)return null;const l=d=>{n(d)},u=d=>{e({parent:d})};return a.jsx(Nh,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,className:"editor-page-attributes__parent",label:m("Parent"),help:m("Choose a parent page."),value:r,options:c,onFilterValueChange:jr(l,300),onChange:u,hideLabelFromVision:!0})}function VFt({isOpen:e,onClick:t}){const n=D(r=>{const{getEditedPostAttribute:s}=r(ue),i=s("parent");if(!i)return null;const{getEntityRecord:c}=r(ce),l=s("type");return c("postType",l,i)},[]),o=O.useMemo(()=>n?XT(n):m("None"),[n]);return a.jsx(fe,{size:"compact",className:"editor-post-parent__panel-toggle",variant:"tertiary","aria-expanded":e,"aria-label":le(m("Change parent: %s"),o),onClick:t,children:o})}function HFt(){const e=D(r=>r(ce).getEntityRecord("root","__unstableBase")?.home,[]),[t,n]=O.useState(null),o=O.useMemo(()=>({anchor:t,placement:"left-start",offset:36,shift:!0}),[t]);return a.jsx(Lr,{label:m("Parent"),ref:n,children:a.jsx(B0,{popoverProps:o,className:"editor-post-parent__panel-dropdown",contentClassName:"editor-post-parent__panel-dialog",focusOnMount:!0,renderToggle:({isOpen:r,onToggle:s})=>a.jsx(VFt,{isOpen:r,onClick:s}),renderContent:({onClose:r})=>a.jsxs("div",{className:"editor-post-parent",children:[a.jsx(zs,{title:m("Parent"),onClose:r}),a.jsxs("div",{children:[z1(le(m('Child pages inherit characteristics from their parent, such as URL structure. For instance, if "Pricing" is a child of "Services", its URL would be %1$s/services/pricing.'),Dz(e).replace(/([/.])/g,"$1")),{wbr:a.jsx("wbr",{})}),a.jsx("p",{children:z1(m("They also show up as sub-items in the default navigation menu. Learn more."),{a:a.jsx(S1,{href:m("https://wordpress.org/documentation/article/page-post-settings-sidebar/#page-attributes")})})})]}),a.jsx($Ft,{})]})})})}const UFt="page-attributes";function XFt(){const{isEnabled:e,postType:t}=D(n=>{const{getEditedPostAttribute:o,isEditorPanelEnabled:r}=n(ue),{getPostType:s}=n(ce);return{isEnabled:r(UFt),postType:s(o("type"))}},[]);return!e||!t?null:a.jsx(HFt,{})}function GFt(){return a.jsx(Kze,{children:a.jsx(XFt,{})})}const lC=m("Custom Template");function Qze({onClose:e}){const{defaultBlockTemplate:t,onNavigateToEntityRecord:n}=D(d=>{const{getEditorSettings:p,getCurrentTemplateId:f}=d(ue);return{defaultBlockTemplate:p().defaultBlockTemplate,onNavigateToEntityRecord:p().onNavigateToEntityRecord,getTemplateId:f}}),{createTemplate:o}=gt(ae(ue)),[r,s]=O.useState(""),[i,c]=O.useState(!1),l=()=>{s(""),e()},u=async d=>{if(d.preventDefault(),i)return;c(!0);const p=t??Pr([me("core/group",{tagName:"header",layout:{inherit:!0}},[me("core/site-title"),me("core/site-tagline")]),me("core/separator"),me("core/group",{tagName:"main"},[me("core/group",{layout:{inherit:!0}},[me("core/post-title")]),me("core/post-content",{layout:{inherit:!0}})])]),f=await o({slug:hB(r||lC),content:p,title:r||lC});c(!1),n({postId:f.id,postType:"wp_template"}),l()};return a.jsx(fn,{title:m("Create custom template"),onRequestClose:l,focusOnMount:"firstContentElement",size:"small",children:a.jsx("form",{className:"editor-post-template__create-form",onSubmit:u,children:a.jsxs(Ye,{spacing:"3",children:[a.jsx($t,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:m("Name"),value:r,onChange:s,placeholder:lC,disabled:i,help:m('Describe the template, e.g. "Post with sidebar". A custom template can be manually applied to any post or page.')}),a.jsxs(Je,{justify:"right",children:[a.jsx(fe,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:l,children:m("Cancel")}),a.jsx(fe,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:i,"aria-disabled":i,children:m("Create")})]})]})})})}function Fk(){return D(e=>{const{getCurrentPostId:t,getCurrentPostType:n}=e(ue);return{postId:t(),postType:n()}},[])}function $k(){const{postType:e,postId:t}=Fk();return D(n=>{const{canUser:o,getEntityRecord:r,getEntityRecords:s}=n(ce),i=o("read",{kind:"root",name:"site"})?r("root","site"):void 0,c=s("postType","wp_template",{per_page:-1}),l=+t===i?.page_for_posts,u=e==="page"&&+t===i?.page_on_front&&c?.some(({slug:d})=>d==="front-page");return!l&&!u},[t,e])}function Jze(e){return D(t=>t(ce).getEntityRecords("postType","wp_template",{per_page:-1,post_type:e}),[e])}function e3e(e){const t=t3e(),n=$k(),o=Jze(e);return O.useMemo(()=>n&&o?.filter(r=>r.is_custom&&r.slug!==t&&!!r.content.raw),[o,t,n])}function t3e(){const{postType:e,postId:t}=Fk(),n=Jze(e),o=D(r=>r(ce).getEditedEntityRecord("postType",e,t)?.template,[e,t]);if(o)return n?.find(r=>r.slug===o)?.slug}const KFt={className:"editor-post-template__dropdown",placement:"bottom-start"};function YFt({isOpen:e,onClick:t}){const n=D(o=>{const r=o(ue).getEditedPostAttribute("template"),{supportsTemplateMode:s,availableTemplates:i}=o(ue).getEditorSettings();if(!s&&i[r])return i[r];const c=o(ce).canUser("create",{kind:"postType",name:"wp_template"})&&o(ue).getCurrentTemplateId();return c?.title||c?.slug||i?.[r]},[]);return a.jsx(fe,{__next40pxDefaultSize:!0,variant:"tertiary","aria-expanded":e,"aria-label":m("Template options"),onClick:t,children:n??m("Default template")})}function ZFt({onClose:e}){var t,n;const o=$k(),{availableTemplates:r,fetchedTemplates:s,selectedTemplateSlug:i,canCreate:c,canEdit:l,currentTemplateId:u,onNavigateToEntityRecord:d,getEditorSettings:p}=D(x=>{const{canUser:v,getEntityRecords:M}=x(ce),A=x(ue).getEditorSettings(),_=v("create",{kind:"postType",name:"wp_template"}),w=x(ue).getCurrentTemplateId();return{availableTemplates:A.availableTemplates,fetchedTemplates:_?M("postType","wp_template",{post_type:x(ue).getCurrentPostType(),per_page:-1}):void 0,selectedTemplateSlug:x(ue).getEditedPostAttribute("template"),canCreate:o&&_&&A.supportsTemplateMode,canEdit:o&&_&&A.supportsTemplateMode&&!!w,currentTemplateId:w,onNavigateToEntityRecord:A.onNavigateToEntityRecord,getEditorSettings:x(ue).getEditorSettings}},[o]),f=O.useMemo(()=>Object.entries({...r,...Object.fromEntries((s??[]).map(({slug:x,title:v})=>[x,v.rendered]))}).map(([x,v])=>({value:x,label:v})),[r,s]),b=(t=f.find(x=>x.value===i))!==null&&t!==void 0?t:f.find(x=>!x.value),{editPost:h}=ae(ue),{createSuccessNotice:g}=ae(Ze),[z,y]=O.useState(!1);return a.jsxs("div",{className:"editor-post-template__classic-theme-dropdown",children:[a.jsx(zs,{title:m("Template"),help:m("Templates define the way content is displayed when viewing your site."),actions:c?[{icon:hYe,label:m("Add template"),onClick:()=>y(!0)}]:[],onClose:e}),o?a.jsx(i0,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,hideLabelFromVision:!0,label:m("Template"),value:(n=b?.value)!==null&&n!==void 0?n:"",options:f,onChange:x=>h({template:x||""})}):a.jsx($s,{status:"warning",isDismissible:!1,children:m("The posts page template cannot be changed.")}),l&&d&&a.jsx("p",{children:a.jsx(fe,{__next40pxDefaultSize:!1,variant:"link",onClick:()=>{d({postId:u,postType:"wp_template"}),e(),g(m("Editing template. Changes made here affect all posts and pages that use the template."),{type:"snackbar",actions:[{label:m("Go back"),onClick:()=>p().onNavigateToPreviousEntityRecord()}]})},children:m("Edit template")})}),z&&a.jsx(Qze,{onClose:()=>y(!1)})]})}function QFt(){return a.jsx(B0,{popoverProps:KFt,focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>a.jsx(YFt,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>a.jsx(ZFt,{onClose:e})})}const{PreferenceBaseOption:JFt}=gt(yd),cb=v0(Xo((e,{panelName:t})=>{const{isEditorPanelEnabled:n,isEditorPanelRemoved:o}=e(ue);return{isRemoved:o(t),isChecked:n(t)}}),OB(({isRemoved:e})=>!e),Fi((e,{panelName:t})=>({onChange:()=>e(ue).toggleEditorPanelEnabled(t)})))(JFt),{Fill:e$t,Slot:t$t}=_0("EnablePluginDocumentSettingPanelOption"),u9=({label:e,panelName:t})=>a.jsx(e$t,{children:a.jsx(cb,{label:e,panelName:t})});u9.Slot=t$t;const{Fill:n$t,Slot:o$t}=_0("PluginDocumentSettingPanel"),n3e=({name:e,className:t,title:n,icon:o,children:r})=>{const{name:s}=c9(),i=`${s}/${e}`,{opened:c,isEnabled:l}=D(d=>{const{isEditorPanelOpened:p,isEditorPanelEnabled:f}=d(ue);return{opened:p(i),isEnabled:f(i)}},[i]),{toggleEditorPanelOpened:u}=ae(ue);return e===void 0&&globalThis.SCRIPT_DEBUG===!0&&Xt("PluginDocumentSettingPanel requires a name property."),a.jsxs(a.Fragment,{children:[a.jsx(u9,{label:n,panelName:i}),a.jsx(n$t,{children:l&&a.jsx(De,{className:t,title:n,icon:o,opened:c,onToggle:()=>u(i),children:r})})]})};n3e.Slot=o$t;const{Fill:r$t,Slot:s$t}=_0("PluginPostPublishPanel"),o3e=({children:e,className:t,title:n,initialOpen:o=!1,icon:r})=>{const{icon:s}=c9();return a.jsx(r$t,{children:a.jsx(De,{className:t,initialOpen:o||!n,title:n,icon:r??s,children:e})})};o3e.Slot=s$t;const{Fill:i$t,Slot:a$t}=_0("PluginPostStatusInfo"),r3e=({children:e,className:t})=>a.jsx(i$t,{children:a.jsx($3,{className:t,children:e})});r3e.Slot=a$t;const{Fill:c$t,Slot:l$t}=_0("PluginPrePublishPanel"),s3e=({children:e,className:t,title:n,initialOpen:o=!1,icon:r})=>{const{icon:s}=c9();return a.jsx(c$t,{children:a.jsx(De,{className:t,initialOpen:o||!n,title:n,icon:r??s,children:e})})};s3e.Slot=l$t;function u$t({className:e,...t}){const{postTitle:n,shortcut:o}=D(r=>({postTitle:r(ue).getEditedPostAttribute("title"),shortcut:r(Br).getShortcutRepresentation("core/editor/toggle-sidebar")}),[]);return a.jsx(Dk,{panelClassName:e,className:"editor-sidebar",smallScreenTitle:n||m("(no title)"),scope:"core",toggleShortcut:o,...t})}function d$t({onClick:e}){const[t,n]=O.useState(!1),{postType:o,postId:r}=Fk(),s=e3e(o),{editEntityRecord:i}=ae(ce);if(!s?.length)return null;const c=async l=>{i("postType",o,r,{template:l.name},{undoIgnore:!0}),n(!1),e()};return a.jsxs(a.Fragment,{children:[a.jsx(tt,{onClick:()=>n(!0),children:m("Swap template")}),t&&a.jsx(fn,{title:m("Choose a template"),onRequestClose:()=>n(!1),overlayClassName:"editor-post-template__swap-template-modal",isFullScreen:!0,children:a.jsx("div",{className:"editor-post-template__swap-template-modal-content",children:a.jsx(p$t,{postType:o,onSelect:c})})})]})}function p$t({postType:e,onSelect:t}){const n=e3e(e),o=O.useMemo(()=>n.map(s=>({name:s.slug,blocks:Yn(s.content.raw),title:kt(s.title.rendered),id:s.id})),[n]),r=Gs(o);return a.jsx(oc,{label:m("Templates"),blockPatterns:o,shownPatterns:r,onClickPattern:t})}function f$t({onClick:e}){const t=t3e(),n=$k(),{postType:o,postId:r}=Fk(),{editEntityRecord:s}=ae(ce);return!t||!n?null:a.jsx(tt,{onClick:()=>{s("postType",o,r,{template:""},{undoIgnore:!0}),e()},children:m("Use default template")})}function b$t({onClick:e}){const{canCreateTemplates:t}=D(s=>{const{canUser:i}=s(ce);return{canCreateTemplates:i("create",{kind:"postType",name:"wp_template"})}},[]),[n,o]=O.useState(!1),r=$k();return!t||!r?null:a.jsxs(a.Fragment,{children:[a.jsx(tt,{onClick:()=>{o(!0)},children:m("Create new template")}),n&&a.jsx(Qze,{onClose:()=>{o(!1),e()}})]})}const h$t={className:"editor-post-template__dropdown",placement:"bottom-start"};function m$t({id:e}){const{isTemplateHidden:t,onNavigateToEntityRecord:n,getEditorSettings:o,hasGoBack:r}=D(b=>{const{getRenderingMode:h,getEditorSettings:g}=gt(b(ue)),z=g();return{isTemplateHidden:h()==="post-only",onNavigateToEntityRecord:z.onNavigateToEntityRecord,getEditorSettings:g,hasGoBack:z.hasOwnProperty("onNavigateToPreviousEntityRecord")}},[]),{get:s}=D(Qe),{editedRecord:i,hasResolved:c}=Voe("postType","wp_template",e),{createSuccessNotice:l}=ae(Ze),{setRenderingMode:u}=ae(ue),d=D(b=>!!b(ce).canUser("create",{kind:"postType",name:"wp_template"}),[]);if(!c)return null;const p=r?[{label:m("Go back"),onClick:()=>o().onNavigateToPreviousEntityRecord()}]:void 0,f=()=>{s("core/edit-site","welcomeGuideTemplate")||l(m("Editing template. Changes made here affect all posts and pages that use the template."),{type:"snackbar",actions:p})};return a.jsx(E1,{popoverProps:h$t,focusOnMount:!0,toggleProps:{size:"compact",variant:"tertiary",tooltipPosition:"middle left"},label:m("Template options"),text:kt(i.title),icon:null,children:({onClose:b})=>a.jsxs(a.Fragment,{children:[a.jsxs(Yt,{children:[d&&a.jsx(tt,{onClick:()=>{n({postId:i.id,postType:"wp_template"}),b(),f()},children:m("Edit template")}),a.jsx(d$t,{onClick:b}),a.jsx(f$t,{onClick:b}),d&&a.jsx(b$t,{onClick:b})]}),a.jsx(Yt,{children:a.jsx(tt,{icon:t?void 0:no,isSelected:!t,role:"menuitemcheckbox",onClick:()=>{u(t?"template-locked":"post-only")},children:m("Show template")})})]})})}function M$t(){const{templateId:e,isBlockTheme:t}=D(r=>{const{getCurrentTemplateId:s,getEditorSettings:i}=r(ue);return{templateId:s(),isBlockTheme:i().__unstableIsBlockBasedTheme}},[]),n=D(r=>{var s;const i=r(ue).getCurrentPostType();if(!r(ce).getPostType(i)?.viewable)return!1;const l=r(ue).getEditorSettings();return!!l.availableTemplates&&Object.keys(l.availableTemplates).length>0?!0:l.supportsTemplateMode&&(s=r(ce).canUser("create",{kind:"postType",name:"wp_template"}))!==null&&s!==void 0?s:!1},[]),o=D(r=>{var s;return(s=r(ce).canUser("read",{kind:"postType",name:"wp_template"}))!==null&&s!==void 0?s:!1},[]);return(!t||!o)&&n?a.jsx(Lr,{label:m("Template"),children:a.jsx(QFt,{})}):t&&e?a.jsx(Lr,{label:m("Template"),children:a.jsx(m$t,{id:e})}):null}const i3e={_fields:"id,name",context:"view"},d9={who:"authors",per_page:50,...i3e};function p9(e){const{authorId:t,authors:n,postAuthor:o}=D(s=>{const{getUser:i,getUsers:c}=s(ce),{getEditedPostAttribute:l}=s(ue),u=l("author"),d={...d9};return e&&(d.search=e),{authorId:u,authors:c(d),postAuthor:i(u,i3e)}},[e]),r=O.useMemo(()=>{const s=(n??[]).map(l=>({value:l.id,label:kt(l.name)})),i=s.findIndex(({value:l})=>o?.id===l);let c=[];return i<0&&o?c=[{value:o.id,label:kt(o.name)}]:i<0&&!o&&(c=[{value:0,label:m("(No author)")}]),[...c,...s]},[n,o]);return{authorId:t,authorOptions:r,postAuthor:o}}function g$t(){const[e,t]=O.useState(),{editPost:n}=ae(ue),{authorId:o,authorOptions:r}=p9(e),s=c=>{c&&n({author:c})},i=c=>{t(c)};return a.jsx(Nh,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:m("Author"),options:r,value:o,onFilterValueChange:jr(i,300),onChange:s,allowReset:!1,hideLabelFromVision:!0})}function z$t(){const{editPost:e}=ae(ue),{authorId:t,authorOptions:n}=p9(),o=r=>{const s=Number(r);e({author:s})};return a.jsx(i0,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:"post-author-selector",label:m("Author"),options:n,onChange:o,value:t,hideLabelFromVision:!0})}const O$t=25;function A$t(){return D(t=>t(ce).getUsers(d9)?.length>=O$t,[])?a.jsx(g$t,{}):a.jsx(z$t,{})}function y$t({children:e}){const{hasAssignAuthorAction:t,hasAuthors:n}=D(o=>{var r;const s=o(ue).getCurrentPost(),i=o(ce).getUsers(d9);return{hasAssignAuthorAction:(r=s._links?.["wp:action-assign-author"])!==null&&r!==void 0?r:!1,hasAuthors:i?.length>=1}},[]);return!t||!n?null:a.jsx(Ha,{supportKeys:"author",children:e})}function v$t({isOpen:e,onClick:t}){const{postAuthor:n}=p9(),o=kt(n?.name)||m("(No author)");return a.jsx(fe,{size:"compact",className:"editor-post-author__panel-toggle",variant:"tertiary","aria-expanded":e,"aria-label":le(m("Change author: %s"),o),onClick:t,children:o})}function x$t(){const[e,t]=O.useState(null),n=O.useMemo(()=>({anchor:e,placement:"left-start",offset:36,shift:!0}),[e]);return a.jsx(y$t,{children:a.jsx(Lr,{label:m("Author"),ref:t,children:a.jsx(B0,{popoverProps:n,contentClassName:"editor-post-author__panel-dialog",focusOnMount:!0,renderToggle:({isOpen:o,onToggle:r})=>a.jsx(v$t,{isOpen:o,onClick:r}),renderContent:({onClose:o})=>a.jsxs("div",{className:"editor-post-author",children:[a.jsx(zs,{title:m("Author"),onClose:o}),a.jsx(A$t,{onClose:o})]})})})})}const _$t=[{label:Oe("Open",'Adjective: e.g. "Comments are open"'),value:"open",description:m("Visitors can add new comments and replies.")},{label:m("Closed"),value:"closed",description:[m("Visitors cannot add new comments or replies."),m("Existing comments remain visible.")].join(" ")}];function w$t(){const e=D(o=>{var r;return(r=o(ue).getEditedPostAttribute("comment_status"))!==null&&r!==void 0?r:"open"},[]),{editPost:t}=ae(ue),n=o=>t({comment_status:o});return a.jsx("form",{children:a.jsx(Ye,{spacing:4,children:a.jsx(kf,{className:"editor-change-status__options",hideLabelFromVision:!0,label:m("Comment status"),options:_$t,onChange:n,selected:e})})})}function k$t(){const e=D(o=>{var r;return(r=o(ue).getEditedPostAttribute("ping_status"))!==null&&r!==void 0?r:"open"},[]),{editPost:t}=ae(ue),n=()=>t({ping_status:e==="open"?"closed":"open"});return a.jsx(Bo,{__nextHasNoMarginBottom:!0,label:m("Enable pingbacks & trackbacks"),checked:e==="open",onChange:n,help:a.jsx(S1,{href:m("https://wordpress.org/documentation/article/trackbacks-and-pingbacks/"),children:m("Learn more about pingbacks & trackbacks")})})}const q$t="discussion-panel";function S$t({onClose:e}){return a.jsxs("div",{className:"editor-post-discussion",children:[a.jsx(zs,{title:m("Discussion"),onClose:e}),a.jsxs(Ye,{spacing:4,children:[a.jsx(Ha,{supportKeys:"comments",children:a.jsx(w$t,{})}),a.jsx(Ha,{supportKeys:"trackbacks",children:a.jsx(k$t,{})})]})]})}function C$t({isOpen:e,onClick:t}){const{commentStatus:n,pingStatus:o,commentsSupported:r,trackbacksSupported:s}=D(c=>{var l,u;const{getEditedPostAttribute:d}=c(ue),{getPostType:p}=c(ce),f=p(d("type"));return{commentStatus:(l=d("comment_status"))!==null&&l!==void 0?l:"open",pingStatus:(u=d("ping_status"))!==null&&u!==void 0?u:"open",commentsSupported:!!f.supports.comments,trackbacksSupported:!!f.supports.trackbacks}},[]);let i;return n==="open"?o==="open"?i=Oe("Open",'Adjective: e.g. "Comments are open"'):i=s?m("Comments only"):Oe("Open",'Adjective: e.g. "Comments are open"'):o==="open"?i=m(r?"Pings only":"Pings enabled"):i=m("Closed"),a.jsx(fe,{size:"compact",className:"editor-post-discussion__panel-toggle",variant:"tertiary","aria-label":m("Change discussion options"),"aria-expanded":e,onClick:t,children:i})}function R$t(){const{isEnabled:e}=D(r=>{const{isEditorPanelEnabled:s}=r(ue);return{isEnabled:s(q$t)}},[]),[t,n]=O.useState(null),o=O.useMemo(()=>({anchor:t,placement:"left-start",offset:36,shift:!0}),[t]);return e?a.jsx(Ha,{supportKeys:["comments","trackbacks"],children:a.jsx(Lr,{label:m("Discussion"),ref:n,children:a.jsx(B0,{popoverProps:o,className:"editor-post-discussion__panel-dropdown",contentClassName:"editor-post-discussion__panel-dialog",focusOnMount:!0,renderToggle:({isOpen:r,onToggle:s})=>a.jsx(C$t,{isOpen:r,onClick:s}),renderContent:({onClose:r})=>a.jsx(S$t,{onClose:r})})})}):null}function W$t({hideLabelFromVision:e=!1,updateOnBlur:t=!1}){const{excerpt:n,shouldUseDescriptionLabel:o,usedAttribute:r}=D(d=>{const{getCurrentPostType:p,getEditedPostAttribute:f}=d(ue),b=p(),h=["wp_template","wp_template_part"].includes(b)?"description":"excerpt";return{excerpt:f(h),shouldUseDescriptionLabel:["wp_template","wp_template_part","wp_block"].includes(b),usedAttribute:h}},[]),{editPost:s}=ae(ue),[i,c]=O.useState(kt(n)),l=d=>{s({[r]:d})},u=m(o?"Write a description (optional)":"Write an excerpt (optional)");return a.jsx("div",{className:"editor-post-excerpt",children:a.jsx(Pi,{__nextHasNoMarginBottom:!0,label:u,hideLabelFromVision:e,className:"editor-post-excerpt__textarea",onChange:t?c:l,onBlur:t?()=>l(i):void 0,value:t?i:n,help:o?m("Write a description"):a.jsx(S1,{href:m("https://wordpress.org/documentation/article/page-post-settings-sidebar/#excerpt"),children:m("Learn more about manual excerpts")})})})}function a3e({children:e}){return a.jsx(Ha,{supportKeys:"excerpt",children:e})}const{Fill:T$t,Slot:E$t}=_0("PluginPostExcerpt"),f9=({children:e,className:t})=>a.jsx(T$t,{children:a.jsx($3,{className:t,children:e})});f9.Slot=E$t;const B$t="post-excerpt";function N$t(){return a.jsx(a3e,{children:a.jsx(L$t,{})})}function L$t(){const{shouldRender:e,excerpt:t,shouldBeUsedAsDescription:n,allowEditing:o}=D(p=>{const{getCurrentPostType:f,getCurrentPostId:b,getEditedPostAttribute:h,isEditorPanelEnabled:g}=p(ue),z=f(),y=["wp_template","wp_template_part"].includes(z),x=z==="wp_block",v=y||x,M=y?"description":"excerpt",A=y&&p(ce).getEntityRecord("postType",z,b()),_=g(B$t)||v;return{excerpt:h(M),shouldRender:_,shouldBeUsedAsDescription:v,allowEditing:_&&(!v||x||A&&A.source===mO.custom&&!A.has_theme_file&&A.is_custom)}},[]),[r,s]=O.useState(null),i=m(n?"Description":"Excerpt"),c=O.useMemo(()=>({anchor:r,"aria-label":i,headerTitle:i,placement:"left-start",offset:36,shift:!0}),[r,i]);if(!e)return!1;const l=!!t&&a.jsx(l0,{align:"left",numberOfLines:4,truncate:o,children:kt(t)});if(!o)return l;const u=m(n?"Add a description…":"Add an excerpt…"),d=m(n?"Edit description":"Edit excerpt");return a.jsxs(Ye,{children:[l,a.jsx(B0,{className:"editor-post-excerpt__dropdown",contentClassName:"editor-post-excerpt__dropdown__content",popoverProps:c,focusOnMount:!0,ref:s,renderToggle:({onToggle:p})=>a.jsx(fe,{__next40pxDefaultSize:!1,className:"editor-post-excerpt__dropdown__trigger",onClick:p,variant:"link",children:l?d:u}),renderContent:({onClose:p})=>a.jsxs(a.Fragment,{children:[a.jsx(zs,{title:i,onClose:p}),a.jsx(Ye,{spacing:4,children:a.jsx(f9.Slot,{children:f=>a.jsxs(a.Fragment,{children:[a.jsx(W$t,{hideLabelFromVision:!0,updateOnBlur:!0}),f]})})})]})})]})}function j$t({children:e,supportKeys:t}){const{postType:n,themeSupports:o}=D(s=>({postType:s(ue).getEditedPostAttribute("type"),themeSupports:s(ce).getThemeSupports()}),[]);return(Array.isArray(t)?t:[t]).some(s=>{var i;const c=(i=o?.[s])!==null&&i!==void 0?i:!1;return s==="post-thumbnails"&&Array.isArray(c)?c.includes(n):c})?e:null}function I5({children:e}){return a.jsx(j$t,{supportKeys:"post-thumbnails",children:a.jsx(Ha,{supportKeys:"thumbnail",children:e})})}const YZ=["image"],P$t=m("Featured image"),I$t=m("Add a featured image"),D$t=a.jsx("p",{children:m("To edit the featured image, you need permission to upload media.")});function F$t(e,t){var n,o;if(!e)return{};const r=_n("editor.PostFeaturedImage.imageSize","large",e.id,t);if(r in((n=e?.media_details?.sizes)!==null&&n!==void 0?n:{}))return{mediaWidth:e.media_details.sizes[r].width,mediaHeight:e.media_details.sizes[r].height,mediaSourceUrl:e.media_details.sizes[r].source_url};const s=_n("editor.PostFeaturedImage.imageSize","thumbnail",e.id,t);return s in((o=e?.media_details?.sizes)!==null&&o!==void 0?o:{})?{mediaWidth:e.media_details.sizes[s].width,mediaHeight:e.media_details.sizes[s].height,mediaSourceUrl:e.media_details.sizes[s].source_url}:{mediaWidth:e.media_details.width,mediaHeight:e.media_details.height,mediaSourceUrl:e.source_url}}function $$t({currentPostId:e,featuredImageId:t,onUpdateImage:n,onRemoveImage:o,media:r,postType:s,noticeUI:i,noticeOperations:c}){const l=O.useRef(),[u,d]=O.useState(!1),{getSettings:p}=D(F),{mediaSourceUrl:f}=F$t(r,e);function b(h){p().mediaUpload({allowedTypes:YZ,filesList:h,onFileChange([g]){if(n1(g?.url)){d(!0);return}g&&n(g),d(!1)},onError(g){c.removeAllNotices(),c.createErrorNotice(g)}})}return a.jsxs(I5,{children:[i,a.jsxs("div",{className:"editor-post-featured-image",children:[r&&a.jsxs("div",{id:`editor-post-featured-image-${t}-describedby`,className:"hidden",children:[r.alt_text&&le(m("Current image: %s"),r.alt_text),!r.alt_text&&le(m("The current image has no alternative text. The file name is: %s"),r.media_details.sizes?.full?.file||r.slug)]}),a.jsx(cl,{fallback:D$t,children:a.jsx(Od,{title:s?.labels?.featured_image||P$t,onSelect:n,unstableFeaturedImageFlow:!0,allowedTypes:YZ,modalClass:"editor-post-featured-image__media-modal",render:({open:h})=>a.jsxs("div",{className:"editor-post-featured-image__container",children:[a.jsxs(fe,{__next40pxDefaultSize:!1,ref:l,className:t?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:h,"aria-label":t?m("Edit or replace the featured image"):null,"aria-describedby":t?`editor-post-featured-image-${t}-describedby`:null,"aria-haspopup":"dialog",disabled:u,accessibleWhenDisabled:!0,children:[!!t&&r&&a.jsx("img",{className:"editor-post-featured-image__preview-image",src:f,alt:""}),u&&a.jsx(u0,{}),!t&&!u&&(s?.labels?.set_featured_image||I$t)]}),!!t&&a.jsxs(Je,{className:"editor-post-featured-image__actions",children:[a.jsx(fe,{__next40pxDefaultSize:!1,className:"editor-post-featured-image__action",onClick:h,"aria-haspopup":"dialog",children:m("Replace")}),a.jsx(fe,{__next40pxDefaultSize:!1,className:"editor-post-featured-image__action",onClick:()=>{o(),l.current.focus()},children:m("Remove")})]}),a.jsx(Sw,{onFilesDrop:b})]}),value:t})})]})]})}const V$t=Xo(e=>{const{getMedia:t,getPostType:n}=e(ce),{getCurrentPostId:o,getEditedPostAttribute:r}=e(ue),s=r("featured_media");return{media:s?t(s,{context:"view"}):null,currentPostId:o(),postType:n(r("type")),featuredImageId:s}}),H$t=Fi((e,{noticeOperations:t},{select:n})=>{const{editPost:o}=e(ue);return{onUpdateImage(r){o({featured_media:r.id})},onDropImage(r){n(F).getSettings().mediaUpload({allowedTypes:["image"],filesList:r,onFileChange([s]){o({featured_media:s.id})},onError(s){t.removeAllNotices(),t.createErrorNotice(s)}})},onRemoveImage(){o({featured_media:0})}}}),ZZ=v0(aht,V$t,H$t,gd("editor.PostFeaturedImage"))($$t),uC="featured-image";function U$t({withPanelBody:e=!0}){var t;const{postType:n,isEnabled:o,isOpened:r}=D(i=>{const{getEditedPostAttribute:c,isEditorPanelEnabled:l,isEditorPanelOpened:u}=i(ue),{getPostType:d}=i(ce);return{postType:d(c("type")),isEnabled:l(uC),isOpened:u(uC)}},[]),{toggleEditorPanelOpened:s}=ae(ue);return o?e?a.jsx(I5,{children:a.jsx(De,{title:(t=n?.labels?.featured_image)!==null&&t!==void 0?t:m("Featured image"),opened:r,onToggle:()=>s(uC),children:a.jsx(ZZ,{})})}):a.jsx(I5,{children:a.jsx(ZZ,{})}):null}function c3e({children:e}){return D(n=>n(ue).getEditorSettings().disablePostFormats,[])?null:a.jsx(Ha,{supportKeys:"post-formats",children:e})}const b9=[{id:"aside",caption:m("Aside")},{id:"audio",caption:m("Audio")},{id:"chat",caption:m("Chat")},{id:"gallery",caption:m("Gallery")},{id:"image",caption:m("Image")},{id:"link",caption:m("Link")},{id:"quote",caption:m("Quote")},{id:"standard",caption:m("Standard")},{id:"status",caption:m("Status")},{id:"video",caption:m("Video")}].sort((e,t)=>{const n=e.caption.toUpperCase(),o=t.caption.toUpperCase();return no?1:0});function l3e(){const t=`post-format-selector-${He(l3e)}`,{postFormat:n,suggestedFormat:o,supportedFormats:r}=D(u=>{const{getEditedPostAttribute:d,getSuggestedPostFormat:p}=u(ue),f=d("format"),b=u(ce).getThemeSupports();return{postFormat:f??"standard",suggestedFormat:p(),supportedFormats:b.formats}},[]),s=b9.filter(u=>r?.includes(u.id)||n===u.id),i=s.find(u=>u.id===o),{editPost:c}=ae(ue),l=u=>c({format:u});return a.jsx(c3e,{children:a.jsxs("div",{className:"editor-post-format",children:[a.jsx(kf,{className:"editor-post-format__options",label:m("Post Format"),selected:n,onChange:u=>l(u),id:t,options:s.map(u=>({label:u.caption,value:u.id})),hideLabelFromVision:!0}),i&&i.id!==n&&a.jsx("p",{className:"editor-post-format__suggestion",children:a.jsx(fe,{__next40pxDefaultSize:!1,variant:"link",onClick:()=>l(i.id),children:le(m("Apply suggested format: %s"),i.caption)})})]})})}function X$t({children:e}){const{lastRevisionId:t,revisionsCount:n}=D(o=>{const{getCurrentPostLastRevisionId:r,getCurrentPostRevisionsCount:s}=o(ue);return{lastRevisionId:r(),revisionsCount:s()}},[]);return!t||n<2?null:a.jsx(Ha,{supportKeys:"revisions",children:e})}function G$t(){return D(e=>{const{getCurrentPostLastRevisionId:t,getCurrentPostRevisionsCount:n}=e(ue);return{lastRevisionId:t(),revisionsCount:n()}},[])}function K$t(){const{lastRevisionId:e,revisionsCount:t}=G$t();return a.jsx(X$t,{children:a.jsx(Lr,{label:m("Revisions"),children:a.jsx(fe,{href:wt("revision.php",{revision:e}),className:"editor-private-post-last-revision__button",text:t,variant:"tertiary",size:"compact"})})})}function Y$t(e){let t=No(a.jsxs("div",{className:"editor-post-preview-button__interstitial-message",children:[a.jsxs(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 96 96",children:[a.jsx(J,{className:"outer",d:"M48 12c19.9 0 36 16.1 36 36S67.9 84 48 84 12 67.9 12 48s16.1-36 36-36",fill:"none"}),a.jsx(J,{className:"inner",d:"M69.5 46.4c0-3.9-1.4-6.7-2.6-8.8-1.6-2.6-3.1-4.9-3.1-7.5 0-2.9 2.2-5.7 5.4-5.7h.4C63.9 19.2 56.4 16 48 16c-11.2 0-21 5.7-26.7 14.4h2.1c3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3L40 67.5l7-20.9L42 33c-1.7-.1-3.3-.3-3.3-.3-1.7-.1-1.5-2.7.2-2.6 0 0 5.3.4 8.4.4 3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3l11.5 34.3 3.3-10.4c1.6-4.5 2.4-7.8 2.4-10.5zM16.1 48c0 12.6 7.3 23.5 18 28.7L18.8 35c-1.7 4-2.7 8.4-2.7 13zm32.5 2.8L39 78.6c2.9.8 5.9 1.3 9 1.3 3.7 0 7.3-.6 10.6-1.8-.1-.1-.2-.3-.2-.4l-9.8-26.9zM76.2 36c0 3.2-.6 6.9-2.4 11.4L64 75.6c9.5-5.5 15.9-15.8 15.9-27.6 0-5.5-1.4-10.8-3.9-15.3.1 1 .2 2.1.2 3.3z",fill:"none"})]}),a.jsx("p",{children:m("Generating preview…")})]}));t+=` + }`}if(dO({css:g}),!!g)return{className:`wp-container-content-${b}`}}function jNt({clientId:e,style:t,setAttributes:n}){const o=Hw()||{},{type:r="default",allowSizingOnChildren:s=!1,isManualPlacement:i}=o,c=D(p=>p(F).getBlockRootClientId(e),[e]),[l,u]=O.useState();if(r!=="grid")return null;function d(p){n({style:{...t,layout:{...t?.layout,...p}}})}return a.jsxs(a.Fragment,{children:[a.jsx(oze,{clientId:c,contentRef:u,parentLayout:o}),s&&a.jsx(TNt,{clientId:e,bounds:l,onChange:d,parentLayout:o}),i&&window.__experimentalEnableGridInteractivity&&a.jsx(BNt,{layout:t?.layout,parentLayout:o,onChange:d,gridClientId:c,blockClientId:e})]})}const aze={useBlockProps:ize,edit:jNt,attributeKeys:["style"],hasSupport(){return!0}};function PNt({clientId:e}){const{templateLock:t,isLockedByParent:n,isEditingAsBlocks:o}=D(l=>{const{getContentLockingParent:u,getTemplateLock:d,getTemporarilyEditingAsBlocks:p}=Fe(l(F));return{templateLock:d(e),isLockedByParent:!!u(e),isEditingAsBlocks:p()===e}},[e]),{stopEditingAsBlocks:r}=Fe(ae(F)),s=!n&&t==="contentOnly",i=O.useCallback(()=>{r(e)},[e,r]);return!s&&!o?null:o&&!s&&a.jsx(Ie,{group:"other",children:a.jsx(bt,{onClick:i,children:m("Done")})})}const INt={edit:PNt,hasSupport(){return!0}},RZ="metadata";function DNt(e){return e?.attributes?.[RZ]?.type||(e.attributes={...e.attributes,[RZ]:{type:"object"}}),e}r0("blocks.registerBlockType","core/metadata/addMetaAttribute",DNt);const FNt={};function $Nt({name:e,clientId:t,metadata:{ignoredHookedBlocks:n=[]}={}}){const o=D(b=>b($e).getBlockTypes(),[]),r=O.useMemo(()=>o?.filter(({name:b,blockHooks:h})=>h&&e in h||n.includes(b)),[o,e,n]),s=D(b=>{const{getBlocks:h,getBlockRootClientId:g,getGlobalBlockCount:z}=b(F),y=g(t),x=r.reduce((v,M)=>{if(z(M.name)===0)return v;const A=M?.blockHooks?.[e];let _;switch(A){case"before":case"after":_=h(y);break;case"first_child":case"last_child":_=h(t);break;case void 0:_=[...h(y),...h(t)];break}const w=_?.find(k=>k.name===M.name);return w?{...v,[M.name]:w.clientId}:v},{});return Object.values(x).length>0?x:FNt},[r,e,t]),{getBlockIndex:i,getBlockCount:c,getBlockRootClientId:l}=D(F),{insertBlock:u,removeBlock:d}=ae(F);if(!r.length)return null;const p=r.reduce((b,h)=>{const[g]=h.name.split("/");return b[g]||(b[g]=[]),b[g].push(h),b},{}),f=(b,h)=>{const g=i(t),z=c(t),y=l(t);switch(h){case"before":case"after":u(b,h==="after"?g+1:g,y,!1);break;case"first_child":case"last_child":u(b,h==="first_child"?0:z,t,!1);break;case void 0:u(b,g+1,y,!1);break}};return a.jsx(Te,{children:a.jsxs(De,{className:"block-editor-hooks__block-hooks",title:m("Plugins"),initialOpen:!0,children:[a.jsx("p",{className:"block-editor-hooks__block-hooks-helptext",children:m("Manage the inclusion of blocks added automatically by plugins.")}),Object.keys(p).map(b=>a.jsxs(O.Fragment,{children:[a.jsx("h3",{children:b}),p[b].map(h=>{const g=h.name in s;return a.jsx(Be,{__nextHasNoMarginBottom:!0,checked:g,label:a.jsxs(Je,{justify:"flex-start",children:[a.jsx(b0,{icon:h.icon}),a.jsx("span",{children:h.title})]}),onChange:()=>{if(!g){const z=h.blockHooks[e];f(me(h.name),z);return}d(s[h.name],!1)}},h.title)})]},b))]})})}const VNt={edit:$Nt,attributeKeys:["metadata"],hasSupport(){return!0}};function QS(e){return!e||Object.keys(e).length===0}function jk(){const{clientId:e}=eo(),{updateBlockAttributes:t}=ae(F),{getBlockAttributes:n}=h0().select(F);return{updateBlockBindings:s=>{const{metadata:{bindings:i,...c}={}}=n(e),l={...i};Object.entries(s).forEach(([d,p])=>{if(!p&&l[d]){delete l[d];return}l[d]=p});const u={...c,bindings:l};QS(u.bindings)&&delete u.bindings,t(e,{metadata:QS(u)?void 0:u})},removeAllBlockBindings:()=>{const{metadata:{bindings:s,...i}={}}=n(e);t(e,{metadata:QS(i)?void 0:i})}}}const{DropdownMenuV2:Fd}=Fe(L0),HNt=()=>g0("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}};function UNt({fieldsList:e,attribute:t,binding:n}){const{getBlockBindingsSources:o}=Fe(t3),r=o(),{updateBlockBindings:s}=jk(),i=n?.args?.key;return a.jsx(a.Fragment,{children:Object.entries(e).map(([c,l],u)=>a.jsxs(O.Fragment,{children:[a.jsxs(Fd.Group,{children:[Object.keys(e).length>1&&a.jsx(Fd.GroupLabel,{children:r[c].label}),Object.entries(l).map(([d,p])=>a.jsxs(Fd.RadioItem,{onChange:()=>s({[t]:{source:c,args:{key:d}}}),name:t+"-binding",value:d,checked:d===i,children:[a.jsx(Fd.ItemLabel,{children:d}),a.jsx(Fd.ItemHelpText,{children:p})]},d))]}),u!==Object.keys(e).length-1&&a.jsx(Fd.Separator,{})]},c))})}function cze({attribute:e,binding:t}){const{source:n,args:o}=t||{},r=Fe(t3).getBlockBindingsSource(n),s=!r;return a.jsxs(Ye,{className:"block-editor-bindings__item",children:[a.jsx(l0,{truncate:!0,children:e}),!!t&&a.jsx(l0,{truncate:!0,variant:!s&&"muted",isDestructive:s,children:s?m("Invalid source"):o?.key||r?.label||n})]})}function XNt({bindings:e}){return a.jsx(a.Fragment,{children:Object.entries(e).map(([t,n])=>a.jsx(fw,{children:a.jsx(cze,{attribute:t,binding:n})},t))})}function GNt({attributes:e,bindings:t,fieldsList:n}){const{updateBlockBindings:o}=jk(),r=g0("medium","<");return a.jsx(a.Fragment,{children:e.map(s=>{const i=t[s];return a.jsx(Rt,{hasValue:()=>!!i,label:s,onDeselect:()=>{o({[s]:void 0})},children:a.jsx(Fd,{placement:r?"bottom-start":"left-start",gutter:r?8:36,trigger:a.jsx(fw,{children:a.jsx(cze,{attribute:s,binding:i})}),children:a.jsx(UNt,{fieldsList:n,attribute:s,binding:i})})},s)})})}const KNt=({name:e,metadata:t})=>{const n=h0(),o=O.useContext(Xp),{bindings:r}=t||{},{removeAllBlockBindings:s}=jk(),i=svt(e),c=HNt(),l={...r};Object.keys(l).forEach(h=>{(!aT(e,h)||l[h].source==="core/pattern-overrides")&&delete l[h]});const{canUpdateBlockBindings:u}=D(h=>({canUpdateBlockBindings:h(F).getSettings().canUpdateBlockBindings}),[]);if(!i||i.length===0)return null;const d={},{getBlockBindingsSources:p}=Fe(t3),f=p();Object.entries(f).forEach(([h,{getFieldsList:g,usesContext:z}])=>{if(g){const y={};if(z?.length)for(const v of z)y[v]=o[v];const x=g({registry:n,context:y});x&&(d[h]={...x})}}),Object.entries(d).forEach(([h,g])=>{Object.keys(g).length||delete d[h]});const b=!u||!Object.keys(d).length;return b&&Object.keys(l).length===0?null:a.jsx(Te,{group:"bindings",children:a.jsxs(Tr,{label:m("Attributes"),resetAll:()=>{s()},dropdownMenuProps:c,className:"block-editor-bindings__panel",children:[a.jsx(Yu,{isBordered:!0,isSeparated:!0,children:b?a.jsx(XNt,{bindings:l}):a.jsx(GNt,{attributes:i,bindings:l,fieldsList:d})}),a.jsx(Yu,{children:a.jsx(l0,{variant:"muted",children:m("Attributes connected to custom fields or other dynamic data.")})})]})})},YNt={edit:KNt,attributeKeys:["metadata"],hasSupport(){return!0}};function ZNt(e){return e.__experimentalLabel||st(e,"renaming",!0)&&(e.__experimentalLabel=(n,{context:o})=>{const{metadata:r}=n;if(o==="list-view"&&r?.name)return r.name}),e}r0("blocks.registerBlockType","core/metadata/addLabelCallback",ZNt);function QNt(e){NNt(e)}function JNt({clientId:e,layout:t}){const{isSelected:n,isDragging:o}=D(r=>{const{isBlockSelected:s,isDraggingBlocks:i}=r(F);return{isSelected:s(e),isDragging:i()}});return a.jsxs(a.Fragment,{children:[a.jsx(QNt,{clientId:e}),(n||o)&&a.jsx(oze,{clientId:e,parentLayout:t})]})}const eLt=Sn(e=>t=>t.attributes.layout?.type!=="grid"?a.jsx(e,{...t},"edit"):a.jsxs(a.Fragment,{children:[a.jsx(JNt,{clientId:t.clientId,layout:t.attributes.layout}),a.jsx(e,{...t},"edit")]}),"addGridVisualizerToBlockEdit");r0("editor.BlockEdit","core/editor/grid-visualizer",eLt);function As(e){const t=e.style?.border||{};return{className:xge(e)||void 0,style:om({border:t})}}function ql(e){const{colors:t}=Sf(),n=As(e),{borderColor:o}=e;if(o){const r=ab({colors:t,namedColor:o});n.style.borderColor=r.color}return n}function rm(e){const t=e.style?.shadow||"";return{style:om({shadow:t})}}function rs(e){const{backgroundColor:t,textColor:n,gradient:o,style:r}=e,s=lt("background-color",t),i=lt("color",n),c=lr(o),l=c||r?.color?.gradient,u=$(i,c,{[s]:!l&&!!s,"has-text-color":n||r?.color?.text,"has-background":t||r?.color?.background||o||r?.color?.gradient,"has-link-color":r?.elements?.link?.color}),d=r?.color||{},p=om({color:d});return{className:u||void 0,style:p}}function bO(e){const{backgroundColor:t,textColor:n,gradient:o}=e,[r,s,i,c,l,u]=O0("color.palette.custom","color.palette.theme","color.palette.default","color.gradients.custom","color.gradients.theme","color.gradients.default"),d=O.useMemo(()=>[...r||[],...s||[],...i||[]],[r,s,i]),p=O.useMemo(()=>[...c||[],...l||[],...u||[]],[c,l,u]),f=rs(e);if(t){const b=Up(d,t);f.style.backgroundColor=b.color}if(o&&(f.style.background=ube(p,o)),n){const b=Up(d,n);f.style.color=b.color}return f}function hO(e){const{style:t}=e,n=t?.spacing||{};return{style:om({spacing:n})}}const{kebabCase:tLt}=Fe(L0);function nLt(e,t){let n=e?.style?.typography||{};n={...n,fontSize:hk({size:e?.style?.typography?.fontSize},t)};const o=om({typography:n}),r=e?.fontFamily?`has-${tLt(e.fontFamily)}-font-family`:"",s=e?.style?.typography?.textAlign?`has-text-align-${e?.style?.typography?.textAlign}`:"";return{className:$(r,s,l5(e?.fontSize)),style:o}}FEt([VP,XP,Bge,Nge,KP,Jge,Lhe,vNt,INt,VNt,YNt,aze].filter(Boolean));HEt([VP,XP,pTt,KP,Ige,QBt,Jge,Fge,Vge,_ge,Lhe,ONt,aze]);UEt([VP,XP,Bge,cBt,Nge,_ge,Ige,KP,Fge,Vge]);const WZ={button:"wp-element-button",caption:"wp-element-caption"},ro=e=>WZ[e]?WZ[e]:"";function QP(e,t,n){if(e==null||e===!1)return;if(Array.isArray(e))return JS(e,t,n);switch(typeof e){case"string":case"number":return}const{type:o,props:r}=e;switch(o){case O.StrictMode:case O.Fragment:return JS(r.children,t,n);case C1:return;case ht.Content:return lze(t,n);case BP:t.push(r.value);return}switch(typeof o){case"string":return typeof r.children<"u"?JS(r.children,t,n):void 0;case"function":const s=o.prototype&&typeof o.prototype.render=="function"?new o(r).render():o(r);return QP(s,t,n)}}function JS(e,...t){e=Array.isArray(e)?e:[e];for(let n=0;nn instanceof un?n:un.fromHTMLString(n))}function rLt({clientId:e,resizableBoxProps:t,...n}){return a.jsx(Gh,{clientId:e,__unstablePopoverSlot:"block-toolbar",...n,children:a.jsx(Ui,{...t})})}function sLt({rules:e}){const{clientIds:t,selectPrevious:n,message:o}=D(l=>Fe(l(F)).getRemovalPromptData()),{clearBlockRemovalPrompt:r,setBlockRemovalRules:s,privateRemoveBlocks:i}=Fe(ae(F));if(O.useEffect(()=>(s(e),()=>{s()}),[e,s]),!o)return;const c=()=>{i(t,n,!0),r()};return a.jsxs(fn,{title:m("Be careful!"),onRequestClose:r,size:"medium",children:[a.jsx("p",{children:o}),a.jsxs(Je,{justify:"right",children:[a.jsx(fe,{variant:"tertiary",onClick:r,__next40pxDefaultSize:!0,children:m("Cancel")}),a.jsx(fe,{variant:"primary",onClick:c,__next40pxDefaultSize:!0,children:m("Delete")})]})]})}const TZ=[{value:"fill",label:Oe("Fill","Scale option for dimensions control"),help:m("Fill the space by stretching the content.")},{value:"contain",label:Oe("Contain","Scale option for dimensions control"),help:m("Fit the content to the space without clipping.")},{value:"cover",label:Oe("Cover","Scale option for dimensions control"),help:m("Fill the space by clipping what doesn't fit.")},{value:"none",label:Oe("None","Scale option for dimensions control"),help:m("Do not adjust the sizing of the content. Content that is too large will be clipped, and content that is too small will have additional padding.")},{value:"scale-down",label:Oe("Scale down","Scale option for dimensions control"),help:m("Scale down the content to fit the space if it is too big. Content that is too small will have additional padding.")}];function iLt({panelId:e,value:t,onChange:n,options:o=TZ,defaultValue:r=TZ[0].value,isShownByDefault:s=!0}){const i=t??"fill",c=O.useMemo(()=>o.reduce((l,u)=>(l[u.value]=u.help,l),{}),[o]);return a.jsx(Rt,{label:m("Scale"),isShownByDefault:s,hasValue:()=>i!==r,onDeselect:()=>n(r),panelId:e,children:a.jsx(wn,{__nextHasNoMarginBottom:!0,label:m("Scale"),isBlock:!0,help:c[i],value:i,onChange:n,size:"__unstable-large",children:o.map(l=>a.jsx(W0,{...l},l.value))})})}const EZ=we(Rt,{target:"ef8pe3d0"})({name:"957xgf",styles:"grid-column:span 1"});function aLt({panelId:e,value:t={},onChange:n=()=>{},units:o,isShownByDefault:r=!0}){var s,i;const c=t.width==="auto"?"":(s=t.width)!==null&&s!==void 0?s:"",l=t.height==="auto"?"":(i=t.height)!==null&&i!==void 0?i:"",u=d=>p=>{const f={...t};p?f[d]=p:delete f[d],n(f)};return a.jsxs(a.Fragment,{children:[a.jsx(EZ,{label:m("Width"),isShownByDefault:r,hasValue:()=>c!=="",onDeselect:u("width"),panelId:e,children:a.jsx(H0,{label:m("Width"),placeholder:m("Auto"),labelPosition:"top",units:o,min:0,value:c,onChange:u("width"),size:"__unstable-large"})}),a.jsx(EZ,{label:m("Height"),isShownByDefault:r,hasValue:()=>l!=="",onDeselect:u("height"),panelId:e,children:a.jsx(H0,{label:m("Height"),placeholder:m("Auto"),labelPosition:"top",units:o,min:0,value:l,onChange:u("height"),size:"__unstable-large"})})]})}function cLt({panelId:e,value:t={},onChange:n=()=>{},aspectRatioOptions:o,defaultAspectRatio:r="auto",scaleOptions:s,defaultScale:i="fill",unitsOptions:c,tools:l=["aspectRatio","widthHeight","scale"]}){const u=t.width===void 0||t.width==="auto"?null:t.width,d=t.height===void 0||t.height==="auto"?null:t.height,p=t.aspectRatio===void 0||t.aspectRatio==="auto"?null:t.aspectRatio,f=t.scale===void 0||t.scale==="fill"?null:t.scale,[b,h]=O.useState(f),[g,z]=O.useState(p),y=u&&d?"custom":g,x=p||u&&d;return a.jsxs(a.Fragment,{children:[l.includes("aspectRatio")&&a.jsx(UMe,{panelId:e,options:o,defaultValue:r,value:y,onChange:v=>{const M={...t};v=v==="auto"?null:v,z(v),v?M.aspectRatio=v:delete M.aspectRatio,v?b?M.scale=b:(M.scale=i,h(i)):delete M.scale,v!=="custom"&&u&&d&&delete M.height,n(M)}}),l.includes("widthHeight")&&a.jsx(aLt,{panelId:e,units:c,value:{width:u,height:d},onChange:({width:v,height:M})=>{const A={...t};v=v==="auto"?null:v,M=M==="auto"?null:M,v?A.width=v:delete A.width,M?A.height=M:delete A.height,v&&M?delete A.aspectRatio:g&&(A.aspectRatio=g),!g&&!!v!=!!M?delete A.scale:b?A.scale=b:(A.scale=i,h(i)),n(A)}}),l.includes("scale")&&x&&a.jsx(iLt,{panelId:e,options:s,defaultValue:i,value:b,onChange:v=>{const M={...t};v=v==="fill"?null:v,h(v),v?M.scale=v:delete M.scale,n(M)}})]})}const BZ=[{label:Oe("Thumbnail","Image size option for resolution control"),value:"thumbnail"},{label:Oe("Medium","Image size option for resolution control"),value:"medium"},{label:Oe("Large","Image size option for resolution control"),value:"large"},{label:Oe("Full Size","Image size option for resolution control"),value:"full"}];function lLt({panelId:e,value:t,onChange:n,options:o=BZ,defaultValue:r=BZ[0].value,isShownByDefault:s=!0}){const i=t??r;return a.jsx(Rt,{hasValue:()=>i!==r,label:m("Resolution"),onDeselect:()=>n(r),isShownByDefault:s,panelId:e,children:a.jsx(i0,{__nextHasNoMarginBottom:!0,label:m("Resolution"),value:i,options:o,onChange:n,help:m("Select the size of the source image."),size:"__unstable-large"})})}const p0={};emt(p0,{...bEt,ExperimentalBlockCanvas:PSt,ExperimentalBlockEditorProvider:ok,getDuotoneFilter:PP,getRichTextValues:oLt,PrivateInserter:yhe,PrivateQuickInserter:Ahe,extractWords:Lj,getNormalizedSearchTerms:jw,normalizeString:u5,PrivateListView:Ome,ResizableBoxPopover:rLt,BlockInfo:Ek,useHasBlockToolbar:ime,cleanEmptyObject:ni,BlockQuickNavigation:Sge,LayoutStyle:DAt,BlockRemovalWarningModal:sLt,useLayoutClasses:nze,useLayoutStyles:ANt,DimensionsTool:cLt,ResolutionTool:lLt,TabbedSidebar:zhe,TextAlignmentControl:TMe,usesContextKey:lMe,useFlashEditableBlocks:c2e,globalStylesDataKey:Rw,globalStylesLinksDataKey:xfe,selectBlockPatternsKey:H2,requiresWrapperOnCopy:h2e,PrivateRichText:kk,PrivateInserterLibrary:Wge,reusableBlocksSelectKey:_j,PrivateBlockPopover:pk,PrivatePublishDateTimePicker:Tge,useSpacingSizes:mMe,useBlockDisplayTitle:ed,__unstableBlockStyleVariationOverridesWithConfig:mNt,setBackgroundStyleDefaults:IP,useBlockBindingsUtils:jk,sectionRootClientIdKey:_fe});let eC;const tC=new WeakMap;function uLt(e){if(eC||(eC=$oe(p0)),!tC.has(e)){const t=eC.getRichTextValues([e]);tC.set(e,t)}return tC.get(e)}const nC=new WeakMap;function dLt(e){if(!nC.has(e)){const t=[];for(const n of uLt(e))n&&n.replacements.forEach(({type:o,attributes:r})=>{o==="core/footnote"&&t.push(r["data-fn"])});nC.set(e,t)}return nC.get(e)}function pLt(e){return e.flatMap(dLt)}let oC={};function fLt(e,t){const n={blocks:e};if(!t||t.footnotes===void 0)return n;const o=pLt(e),r=t.footnotes?JSON.parse(t.footnotes):[];if(r.map(d=>d.id).join("")===o.join(""))return n;const i=o.map(d=>r.find(p=>p.id===d)||oC[d]||{id:d,content:""});function c(d){if(!d||Array.isArray(d)||typeof d!="object")return d;d={...d};for(const p in d){const f=d[p];if(Array.isArray(f)){d[p]=f.map(c);continue}if(typeof f!="string"&&!(f instanceof un))continue;const b=typeof f=="string"?un.fromHTMLString(f):new un(f);let h=!1;b.replacements.forEach(g=>{if(g.type==="core/footnote"){const z=g.attributes["data-fn"],y=o.indexOf(z),x=m0({html:g.innerHTML});x.text=String(y+1),x.formats=Array.from({length:x.text.length},()=>x.formats[0]),x.replacements=Array.from({length:x.text.length},()=>x.replacements[0]),g.innerHTML=K1({value:x}),h=!0}}),h&&(d[p]=typeof f=="string"?b.toHTMLString():b)}return d}function l(d){return d.map(p=>({...p,attributes:c(p.attributes),innerBlocks:l(p.innerBlocks)}))}const u=l(e);return oC={...oC,...r.reduce((d,p)=>(o.includes(p.id)||(d[p.id]=p),d),{})},{meta:{...t,footnotes:JSON.stringify(i)},blocks:u}}const bLt=[],NZ=new WeakMap;function id(e,t,{id:n}={}){const o=CN(e,t),r=n??o,{getEntityRecord:s,getEntityRecordEdits:i}=D(bo),{content:c,editedBlocks:l,meta:u}=D(z=>{if(!r)return{};const{getEditedEntityRecord:y}=z(bo),x=y(e,t,r);return{editedBlocks:x.blocks,content:x.content,meta:x.meta}},[e,t,r]),{__unstableCreateUndoLevel:d,editEntityRecord:p}=ae(bo),f=O.useMemo(()=>{if(!r)return;if(l)return l;if(!c||typeof c!="string")return bLt;const z=i(e,t,r),x=!z||!Object.keys(z).length?s(e,t,r):z;let v=NZ.get(x);return v||(v=Yn(c),NZ.set(x,v)),v},[e,t,r,l,c,s,i]),b=O.useCallback(z=>fLt(z,u),[u]),h=O.useCallback((z,y)=>{if(f===z)return d(e,t,r);const{selection:v,...M}=y,A={selection:v,content:({blocks:_=[]})=>pd(_),...b(z)};p(e,t,r,A,{isCached:!1,...M})},[e,t,r,f,b,d,p]),g=O.useCallback((z,y)=>{const{selection:x,...v}=y,M=b(z),A={selection:x,...M};p(e,t,r,A,{isCached:!0,...v})},[e,t,r,b,p]);return[f,g,h]}function Z0(e,t,n,o){const r=CN(e,t),s=o??r,{value:i,fullValue:c}=D(d=>{const{getEntityRecord:p,getEditedEntityRecord:f}=d(bo),b=p(e,t,s),h=f(e,t,s);return b&&h?{value:h[n],fullValue:b[n]}:{}},[e,t,s,n]),{editEntityRecord:l}=ae(bo),u=O.useCallback(d=>{l(e,t,s,{[n]:d})},[l,e,t,s,n]);return[i,u,c]}const JP=[..._oe,...woe.filter(e=>!!e.name)],hLt=JP.reduce((e,t)=>{const{kind:n,name:o,plural:r}=t;return e[S2(n,o)]=(s,i,c)=>ff(s,n,o,i,c),r&&(e[S2(n,r,"get")]=(s,i)=>Vx(s,n,o,i)),e},{}),mLt=JP.reduce((e,t)=>{const{kind:n,name:o,plural:r}=t;if(e[S2(n,o)]=(s,i)=>joe(n,o,s,i),r){const s=S2(n,r,"get");e[s]=(...i)=>yv(n,o,...i),e[s].shouldInvalidate=i=>yv.shouldInvalidate(i,n,o)}return e},{}),MLt=JP.reduce((e,t)=>{const{kind:n,name:o}=t;return e[S2(n,o,"save")]=(r,s)=>voe(n,o,r,s),e[S2(n,o,"delete")]=(r,s,i)=>yoe(n,o,r,s,i),e},{}),gLt=()=>({reducer:zEe,actions:{...jTe,...MLt,...IBe()},selectors:{...rBe,...hLt},resolvers:{...TBe,...mLt}}),ce=er(bo,gLt());$oe(ce).registerPrivateSelectors(lBe);Qs(ce);const zLt={...PW,richEditingEnabled:!0,codeEditingEnabled:!0,fontLibraryEnabled:!0,enableCustomFields:void 0,defaultRenderingMode:"post-only"};function OLt(e={},t){switch(t.type){case"SET_IS_READY":return{...e,[t.kind]:{...e[t.kind],[t.name]:!0}}}return e}function ALt(e={},t){var n;switch(t.type){case"REGISTER_ENTITY_ACTION":return{...e,[t.kind]:{...e[t.kind],[t.name]:[...((n=e[t.kind]?.[t.name])!==null&&n!==void 0?n:[]).filter(r=>r.id!==t.config.id),t.config]}};case"UNREGISTER_ENTITY_ACTION":{var o;return{...e,[t.kind]:{...e[t.kind],[t.name]:((o=e[t.kind]?.[t.name])!==null&&o!==void 0?o:[]).filter(r=>r.id!==t.actionId)}}}}return e}const yLt=zo({actions:ALt,isReady:OLt});function e9(e){return e&&typeof e=="object"&&"raw"in e?e.raw:e}function vLt(e=null,t){switch(t.type){case"SET_EDITED_POST":return t.postId}return e}function xLt(e=null,t){switch(t.type){case"SET_CURRENT_TEMPLATE_ID":return t.id}return e}function _Lt(e=null,t){switch(t.type){case"SET_EDITED_POST":return t.postType}return e}function wLt(e={isValid:!0},t){switch(t.type){case"SET_TEMPLATE_VALIDITY":return{...e,isValid:t.isValid}}return e}function kLt(e={},t){switch(t.type){case"REQUEST_POST_UPDATE_START":case"REQUEST_POST_UPDATE_FINISH":return{pending:t.type==="REQUEST_POST_UPDATE_START",options:t.options||{}}}return e}function qLt(e={},t){switch(t.type){case"REQUEST_POST_DELETE_START":case"REQUEST_POST_DELETE_FINISH":return{pending:t.type==="REQUEST_POST_DELETE_START"}}return e}function SLt(e={isLocked:!1},t){switch(t.type){case"UPDATE_POST_LOCK":return t.lock}return e}function CLt(e={},t){switch(t.type){case"LOCK_POST_SAVING":return{...e,[t.lockName]:!0};case"UNLOCK_POST_SAVING":{const{[t.lockName]:n,...o}=e;return o}}return e}function RLt(e={},t){switch(t.type){case"LOCK_POST_AUTOSAVING":return{...e,[t.lockName]:!0};case"UNLOCK_POST_AUTOSAVING":{const{[t.lockName]:n,...o}=e;return o}}return e}function WLt(e=zLt,t){switch(t.type){case"UPDATE_EDITOR_SETTINGS":return{...e,...t.settings}}return e}function TLt(e="post-only",t){switch(t.type){case"SET_RENDERING_MODE":return t.mode}return e}function ELt(e="Desktop",t){switch(t.type){case"SET_DEVICE_TYPE":return t.deviceType}return e}function BLt(e=[],t){switch(t.type){case"REMOVE_PANEL":if(!e.includes(t.panelName))return[...e,t.panelName]}return e}function NLt(e=!1,t){switch(t.type){case"SET_IS_LIST_VIEW_OPENED":return t.isOpen?!1:e;case"SET_IS_INSERTER_OPENED":return t.value}return e}function LLt(e=!1,t){switch(t.type){case"SET_IS_INSERTER_OPENED":return t.value?!1:e;case"SET_IS_LIST_VIEW_OPENED":return t.isOpen}return e}function jLt(e={current:null}){return e}function PLt(e={current:null}){return e}function ILt(e=!1,t){switch(t.type){case"OPEN_PUBLISH_SIDEBAR":return!0;case"CLOSE_PUBLISH_SIDEBAR":return!1;case"TOGGLE_PUBLISH_SIDEBAR":return!e}return e}const DLt=zo({postId:vLt,postType:_Lt,templateId:xLt,saving:kLt,deleting:qLt,postLock:SLt,template:wLt,postSavingLock:CLt,editorSettings:WLt,postAutosavingLock:RLt,renderingMode:TLt,deviceType:ELt,removedPanels:BLt,blockInserterPanel:NLt,inserterSidebarToggleRef:PLt,listViewPanel:LLt,listViewToggleRef:jLt,publishSidebarActive:ILt,dataviews:yLt}),FLt=new Set(["meta"]),$Lt="core/editor",uze="SAVE_POST_NOTICE_ID",dze="TRASH_POST_NOTICE_ID",pze=/%(?:postname|pagename)%/,fze=60*1e3,VLt=["title","excerpt","content"],HLt="uncategorized",d1="wp_template",vo="wp_template_part",ul="wp_block",th="wp_navigation",mO={custom:"custom",theme:"theme",plugin:"plugin"},bze=["wp_template","wp_template_part"],hze=[...bze,"wp_block","wp_navigation"];function ULt(e){return e==="header"?Ble:e==="footer"?Ele:e==="sidebar"?Nle:Rh}const Sz={},XLt=nt(e=>()=>e(ce).hasUndo()),GLt=nt(e=>()=>e(ce).hasRedo());function mze(e){return ur(e).status==="auto-draft"}function Mze(e){return"content"in Cz(e)}const t9=nt(e=>t=>{const n=oi(t),o=ri(t);return e(ce).hasEditsForEntityRecord("postType",n,o)}),KLt=nt(e=>t=>{const n=e(ce).__experimentalGetDirtyEntityRecords(),{type:o,id:r}=ur(t);return n.some(s=>s.kind!=="postType"||s.name!==o||s.key!==r)});function YLt(e){return!t9(e)&&mze(e)}const ur=nt(e=>t=>{const n=ri(t),o=oi(t),r=e(ce).getRawEntityRecord("postType",o,n);return r||Sz});function oi(e){return e.postType}function ri(e){return e.postId}function ZLt(e){return e.templateId}function QLt(e){var t;return(t=ur(e)._links?.["version-history"]?.[0]?.count)!==null&&t!==void 0?t:0}function JLt(e){var t;return(t=ur(e)._links?.["predecessor-version"]?.[0]?.id)!==null&&t!==void 0?t:null}const Cz=nt(e=>t=>{const n=oi(t),o=ri(t);return e(ce).getEntityRecordEdits("postType",n,o)||Sz});function JM(e,t){switch(t){case"type":return oi(e);case"id":return ri(e);default:const n=ur(e);if(!n.hasOwnProperty(t))break;return e9(n[t])}}const e7t=at((e,t)=>{const n=Cz(e);return n.hasOwnProperty(t)?{...JM(e,t),...n[t]}:JM(e,t)},(e,t)=>[JM(e,t),Cz(e)[t]]);function Ln(e,t){switch(t){case"content":return Rz(e)}const n=Cz(e);return n.hasOwnProperty(t)?FLt.has(t)?e7t(e,t):n[t]:JM(e,t)}const gze=nt(e=>(t,n)=>{if(!VLt.includes(n)&&n!=="preview_link")return;const o=oi(t);if(o==="wp_template")return!1;const r=ri(t),s=e(ce).getCurrentUser()?.id,i=e(ce).getAutosave(o,r,s);if(i)return e9(i[n])});function t7t(e){return Ln(e,"status")==="private"?"private":Ln(e,"password")?"password":"public"}function n7t(e){return ur(e).status==="pending"}function n9(e,t){const n=t||ur(e);return["publish","private"].indexOf(n.status)!==-1||n.status==="future"&&!Ipe(new Date(Number(ww(n.date))-fze))}function o7t(e){return ur(e).status==="future"&&!n9(e)}function r7t(e){const t=ur(e);return t9(e)||["publish","private","future"].indexOf(t.status)===-1}function zze(e){return sm(e)?!1:!!Ln(e,"title")||!!Ln(e,"excerpt")||!Oze(e)||w1.OS==="native"}const Oze=nt(e=>t=>{const n=ri(t),o=oi(t),r=e(ce).getEditedEntityRecord("postType",o,n);if(typeof r.content!="function")return!r.content;const s=Ln(t,"blocks");if(s.length===0)return!0;if(s.length>1)return!1;const i=s[0].name;return i!==jn()&&i!==Lu()?!1:!Rz(t)}),s7t=nt(e=>t=>{if(!zze(t)||vze(t))return!1;const n=oi(t);if(n==="wp_template")return!1;const o=ri(t),r=e(ce).hasFetchedAutosaves(n,o),s=e(ce).getCurrentUser()?.id,i=e(ce).getAutosave(n,o,s);return r?!i||Mze(t)?!0:["title","excerpt","meta"].some(c=>e9(i[c])!==Ln(t,c)):!1});function i7t(e){const t=Ln(e,"date"),n=new Date(Number(ww(t))-fze);return Ipe(n)}function a7t(e){const t=Ln(e,"date"),n=Ln(e,"modified"),o=ur(e).status;return o==="draft"||o==="auto-draft"||o==="pending"?t===n||t===null:!1}function c7t(e){return!!e.deleting.pending}function sm(e){return!!e.saving.pending}const l7t=nt(e=>t=>{const n=e(ce).__experimentalGetEntitiesBeingSaved(),{type:o,id:r}=ur(t);return n.some(s=>s.kind!=="postType"||s.name!==o||s.key!==r)}),u7t=nt(e=>t=>{const n=oi(t),o=ri(t);return!e(ce).getLastEntitySaveError("postType",n,o)}),d7t=nt(e=>t=>{const n=oi(t),o=ri(t);return!!e(ce).getLastEntitySaveError("postType",n,o)});function p7t(e){return sm(e)&&!!e.saving.options?.isAutosave}function f7t(e){return sm(e)&&!!e.saving.options?.isPreview}function b7t(e){if(e.saving.pending||sm(e))return;let t=gze(e,"preview_link");(!t||ur(e).status==="draft")&&(t=Ln(e,"link"),t&&(t=wt(t,{preview:!0})));const n=Ln(e,"featured_media");return t&&n?wt(t,{_thumbnail_id:n}):t}const h7t=nt(e=>()=>{const t=e(F).getBlocks();if(t.length>2)return null;let n;if(t.length===1&&(n=t[0].name,n==="core/embed")){const o=t[0].attributes?.providerNameSlug;["youtube","vimeo"].includes(o)?n="core/video":["spotify","soundcloud"].includes(o)&&(n="core/audio")}switch(t.length===2&&t[1].name==="core/paragraph"&&(n=t[0].name),n){case"core/image":return"image";case"core/quote":case"core/pullquote":return"quote";case"core/gallery":return"gallery";case"core/video":return"video";case"core/audio":return"audio";default:return null}}),Rz=nt(e=>t=>{const n=ri(t),o=oi(t),r=e(ce).getEditedEntityRecord("postType",o,n);if(r){if(typeof r.content=="function")return r.content(r);if(r.blocks)return pd(r.blocks);if(r.content)return r.content}return""});function m7t(e){return sm(e)&&!n9(e)&&Ln(e,"status")==="publish"}function Aze(e){const t=Ln(e,"permalink_template");return pze.test(t)}function M7t(e){const t=yze(e);if(!t)return null;const{prefix:n,postName:o,suffix:r}=t;return Aze(e)?n+o+r:n}function g7t(e){return Ln(e,"slug")||hB(Ln(e,"title"))||ri(e)}function yze(e){const t=Ln(e,"permalink_template");if(!t)return null;const n=Ln(e,"slug")||Ln(e,"generated_slug"),[o,r]=t.split(pze);return{prefix:o,postName:n,suffix:r}}function z7t(e){return e.postLock.isLocked}function O7t(e){return Object.keys(e.postSavingLock).length>0}function vze(e){return Object.keys(e.postAutosavingLock).length>0}function A7t(e){return e.postLock.isTakeover}function y7t(e){return e.postLock.user}function v7t(e){return e.postLock.activePostLock}function x7t(e){return!!ur(e)._links?.hasOwnProperty("wp:action-unfiltered-html")}const _7t=nt(e=>()=>!!e(Qe).get("core","isPublishSidebarEnabled")),w7t=at(e=>Ln(e,"blocks")||Yn(Rz(e)),e=>[Ln(e,"blocks"),Rz(e)]);function xze(e,t){return e.removedPanels.includes(t)}const k7t=nt(e=>(t,n)=>{const o=e(Qe).get("core","inactivePanels");return!xze(t,n)&&!o?.includes(n)}),q7t=nt(e=>(t,n)=>!!e(Qe).get("core","openPanels")?.includes(n));function S7t(e){return Re("select('core/editor').getEditorSelectionStart",{since:"5.8",alternative:"select('core/editor').getEditorSelection"}),Ln(e,"selection")?.selectionStart}function C7t(e){return Re("select('core/editor').getEditorSelectionStart",{since:"5.8",alternative:"select('core/editor').getEditorSelection"}),Ln(e,"selection")?.selectionEnd}function R7t(e){return Ln(e,"selection")}function W7t(e){return!!e.postId}function B5(e){return e.editorSettings}function UT(e){return e.renderingMode}function T7t(e){return e.deviceType}function E7t(e){return e.listViewPanel}function B7t(e){return!!e.blockInserterPanel}const N7t=nt(e=>()=>{var t;return(t=e(Qe).get("core","editorMode"))!==null&&t!==void 0?t:"visual"});function L7t(){return Re("select('core/editor').getStateBeforeOptimisticTransaction",{since:"5.7",hint:"No state history is kept on this store anymore"}),null}function j7t(){return Re("select('core/editor').inSomeHistory",{since:"5.7",hint:"No state history is kept on this store anymore"}),!1}function Lt(e){return nt(t=>(n,...o)=>(Re("`wp.data.select( 'core/editor' )."+e+"`",{since:"5.3",alternative:"`wp.data.select( 'core/block-editor' )."+e+"`",version:"6.2"}),t(F)[e](...o)))}const P7t=Lt("getBlockName"),I7t=Lt("isBlockValid"),D7t=Lt("getBlockAttributes"),F7t=Lt("getBlock"),$7t=Lt("getBlocks"),V7t=Lt("getClientIdsOfDescendants"),H7t=Lt("getClientIdsWithDescendants"),U7t=Lt("getGlobalBlockCount"),X7t=Lt("getBlocksByClientId"),G7t=Lt("getBlockCount"),K7t=Lt("getBlockSelectionStart"),Y7t=Lt("getBlockSelectionEnd"),Z7t=Lt("getSelectedBlockCount"),Q7t=Lt("hasSelectedBlock"),J7t=Lt("getSelectedBlockClientId"),ejt=Lt("getSelectedBlock"),tjt=Lt("getBlockRootClientId"),njt=Lt("getBlockHierarchyRootClientId"),ojt=Lt("getAdjacentBlockClientId"),rjt=Lt("getPreviousBlockClientId"),sjt=Lt("getNextBlockClientId"),ijt=Lt("getSelectedBlocksInitialCaretPosition"),ajt=Lt("getMultiSelectedBlockClientIds"),cjt=Lt("getMultiSelectedBlocks"),ljt=Lt("getFirstMultiSelectedBlockClientId"),ujt=Lt("getLastMultiSelectedBlockClientId"),djt=Lt("isFirstMultiSelectedBlock"),pjt=Lt("isBlockMultiSelected"),fjt=Lt("isAncestorMultiSelected"),bjt=Lt("getMultiSelectedBlocksStartClientId"),hjt=Lt("getMultiSelectedBlocksEndClientId"),mjt=Lt("getBlockOrder"),Mjt=Lt("getBlockIndex"),gjt=Lt("isBlockSelected"),zjt=Lt("hasSelectedInnerBlock"),Ojt=Lt("isBlockWithinSelection"),Ajt=Lt("hasMultiSelection"),yjt=Lt("isMultiSelecting"),vjt=Lt("isSelectionEnabled"),xjt=Lt("getBlockMode"),_jt=Lt("isTyping"),wjt=Lt("isCaretWithinFormattedText"),kjt=Lt("getBlockInsertionPoint"),qjt=Lt("isBlockInsertionPointVisible"),Sjt=Lt("isValidTemplate"),Cjt=Lt("getTemplate"),Rjt=Lt("getTemplateLock"),Wjt=Lt("canInsertBlockType"),Tjt=Lt("getInserterItems"),Ejt=Lt("hasInserterItems"),Bjt=Lt("getBlockListSettings");function N5(e){return B5(e)?.defaultTemplateTypes}const L5=at(e=>{var t;return((t=B5(e)?.defaultTemplatePartAreas)!==null&&t!==void 0?t:[]).map(o=>({...o,icon:ULt(o.icon)}))},e=>[B5(e)?.defaultTemplatePartAreas]),_ze=at((e,t)=>{var n;const o=N5(e);return o&&(n=Object.values(o).find(r=>r.slug===t))!==null&&n!==void 0?n:Sz},e=>[N5(e)]),Njt=at((e,t)=>{if(!t)return Sz;const{description:n,slug:o,title:r,area:s}=t,{title:i,description:c}=_ze(e,o),l=typeof r=="string"?r:r?.rendered,u=typeof n=="string"?n:n?.raw,d=L5(e).find(p=>s===p.area)?.icon||Af;return{title:l&&l!==o?l:i||o,description:u||c,icon:d}},e=>[N5(e),L5(e)]),Ljt=nt(e=>t=>{const n=oi(t);return e(ce).getPostType(n)?.labels?.singular_name});function jjt(e){return e.publishSidebarActive}const Pjt=Object.freeze(Object.defineProperty({__proto__:null,__experimentalGetDefaultTemplatePartAreas:L5,__experimentalGetDefaultTemplateType:_ze,__experimentalGetDefaultTemplateTypes:N5,__experimentalGetTemplateInfo:Njt,__unstableIsEditorReady:W7t,canInsertBlockType:Wjt,canUserUseUnfilteredHTML:x7t,didPostSaveRequestFail:d7t,didPostSaveRequestSucceed:u7t,getActivePostLock:v7t,getAdjacentBlockClientId:ojt,getAutosaveAttribute:gze,getBlock:F7t,getBlockAttributes:D7t,getBlockCount:G7t,getBlockHierarchyRootClientId:njt,getBlockIndex:Mjt,getBlockInsertionPoint:kjt,getBlockListSettings:Bjt,getBlockMode:xjt,getBlockName:P7t,getBlockOrder:mjt,getBlockRootClientId:tjt,getBlockSelectionEnd:Y7t,getBlockSelectionStart:K7t,getBlocks:$7t,getBlocksByClientId:X7t,getClientIdsOfDescendants:V7t,getClientIdsWithDescendants:H7t,getCurrentPost:ur,getCurrentPostAttribute:JM,getCurrentPostId:ri,getCurrentPostLastRevisionId:JLt,getCurrentPostRevisionsCount:QLt,getCurrentPostType:oi,getCurrentTemplateId:ZLt,getDeviceType:T7t,getEditedPostAttribute:Ln,getEditedPostContent:Rz,getEditedPostPreviewLink:b7t,getEditedPostSlug:g7t,getEditedPostVisibility:t7t,getEditorBlocks:w7t,getEditorMode:N7t,getEditorSelection:R7t,getEditorSelectionEnd:C7t,getEditorSelectionStart:S7t,getEditorSettings:B5,getFirstMultiSelectedBlockClientId:ljt,getGlobalBlockCount:U7t,getInserterItems:Tjt,getLastMultiSelectedBlockClientId:ujt,getMultiSelectedBlockClientIds:ajt,getMultiSelectedBlocks:cjt,getMultiSelectedBlocksEndClientId:hjt,getMultiSelectedBlocksStartClientId:bjt,getNextBlockClientId:sjt,getPermalink:M7t,getPermalinkParts:yze,getPostEdits:Cz,getPostLockUser:y7t,getPostTypeLabel:Ljt,getPreviousBlockClientId:rjt,getRenderingMode:UT,getSelectedBlock:ejt,getSelectedBlockClientId:J7t,getSelectedBlockCount:Z7t,getSelectedBlocksInitialCaretPosition:ijt,getStateBeforeOptimisticTransaction:L7t,getSuggestedPostFormat:h7t,getTemplate:Cjt,getTemplateLock:Rjt,hasChangedContent:Mze,hasEditorRedo:GLt,hasEditorUndo:XLt,hasInserterItems:Ejt,hasMultiSelection:Ajt,hasNonPostEntityChanges:KLt,hasSelectedBlock:Q7t,hasSelectedInnerBlock:zjt,inSomeHistory:j7t,isAncestorMultiSelected:fjt,isAutosavingPost:p7t,isBlockInsertionPointVisible:qjt,isBlockMultiSelected:pjt,isBlockSelected:gjt,isBlockValid:I7t,isBlockWithinSelection:Ojt,isCaretWithinFormattedText:wjt,isCleanNewPost:YLt,isCurrentPostPending:n7t,isCurrentPostPublished:n9,isCurrentPostScheduled:o7t,isDeletingPost:c7t,isEditedPostAutosaveable:s7t,isEditedPostBeingScheduled:i7t,isEditedPostDateFloating:a7t,isEditedPostDirty:t9,isEditedPostEmpty:Oze,isEditedPostNew:mze,isEditedPostPublishable:r7t,isEditedPostSaveable:zze,isEditorPanelEnabled:k7t,isEditorPanelOpened:q7t,isEditorPanelRemoved:xze,isFirstMultiSelectedBlock:djt,isInserterOpened:B7t,isListViewOpened:E7t,isMultiSelecting:yjt,isPermalinkEditable:Aze,isPostAutosavingLocked:vze,isPostLockTakeover:A7t,isPostLocked:z7t,isPostSavingLocked:O7t,isPreviewingPost:f7t,isPublishSidebarEnabled:_7t,isPublishSidebarOpened:jjt,isPublishingPost:m7t,isSavingNonPostEntityChanges:l7t,isSavingPost:sm,isSelectionEnabled:vjt,isTyping:_jt,isValidTemplate:Sjt},Symbol.toStringTag,{value:"Module"}));function Ijt(e,t){return`wp-autosave-block-editor-post-${t?"auto-draft":e}`}function Djt(e,t,n,o,r){window.sessionStorage.setItem(Ijt(e,t),JSON.stringify({post_title:n,content:o,excerpt:r}))}function Fjt(e){var t;const{previousPost:n,post:o,postType:r}=e;if(e.options?.isAutosave)return[];const s=["publish","private","future"],i=s.includes(n.status),c=s.includes(o.status),l=o.status==="trash"&&n.status!=="trash";let u,d=(t=r?.viewable)!==null&&t!==void 0?t:!1,p;l?(u=r.labels.item_trashed,d=!1):!i&&!c?(u=m("Draft saved."),p=!0):i&&!c?(u=r.labels.item_reverted_to_draft,d=!1):!i&&c?u={publish:r.labels.item_published,private:r.labels.item_published_privately,future:r.labels.item_scheduled}[o.status]:u=r.labels.item_updated;const f=[];return d&&f.push({label:p?m("View Preview"):r.labels.view_item,url:o.link}),[u,{id:uze,type:"snackbar",actions:f}]}function $jt(e){const{post:t,edits:n,error:o}=e;if(o&&o.code==="rest_autosave_no_changes")return[];const r=["publish","private","future"],s=r.indexOf(t.status)!==-1,i={publish:m("Publishing failed."),private:m("Publishing failed."),future:m("Scheduling failed.")};let c=!s&&r.indexOf(n.status)!==-1?i[n.status]:m("Updating failed.");return o.message&&!/<\/?[^>]*>/.test(o.message)&&(c=[c,o.message].join(" ")),[c,{id:uze}]}function Vjt(e){return[e.error.message&&e.error.code!=="unknown_error"?e.error.message:m("Trashing failed"),{id:dze}]}const Hjt=(e,t,n)=>({dispatch:o})=>{if(o.setEditedPost(e.type,e.id),e.status==="auto-draft"&&n){let s;"content"in t?s=t.content:s=e.content.raw;let i=Yn(s);i=Ng(i,n),o.resetEditorBlocks(i,{__unstableShouldCreateUndoLevel:!1})}t&&Object.values(t).some(([s,i])=>{var c;return i!==((c=e[s]?.raw)!==null&&c!==void 0?c:e[s])})&&o.editPost(t)};function Ujt(){return Re("wp.data.dispatch( 'core/editor' ).__experimentalTearDownEditor",{since:"6.5"}),{type:"DO_NOTHING"}}function Xjt(){return Re("wp.data.dispatch( 'core/editor' ).resetPost",{since:"6.0",version:"6.3",alternative:"Initialize the editor with the setupEditorState action"}),{type:"DO_NOTHING"}}function Gjt(){return Re("wp.data.dispatch( 'core/editor' ).updatePost",{since:"5.7",alternative:"Use the core entities store instead"}),{type:"DO_NOTHING"}}function Kjt(e){return Re("wp.data.dispatch( 'core/editor' ).setupEditorState",{since:"6.5",alternative:"wp.data.dispatch( 'core/editor' ).setEditedPost"}),wze(e.type,e.id)}function wze(e,t){return{type:"SET_EDITED_POST",postType:e,postId:t}}const Yjt=(e,t)=>({select:n,registry:o})=>{const{id:r,type:s}=n.getCurrentPost();o.dispatch(ce).editEntityRecord("postType",s,r,e,t)},Zjt=(e={})=>async({select:t,dispatch:n,registry:o})=>{if(!t.isEditedPostSaveable())return;const r=t.getEditedPostContent();e.isAutosave||n.editPost({content:r},{undoIgnore:!0});const s=t.getCurrentPost(),i={id:s.id,...o.select(ce).getEntityRecordNonTransientEdits("postType",s.type,s.id),content:r};n({type:"REQUEST_POST_UPDATE_START",options:e});let c=!1;try{c=await _n("editor.__unstablePreSavePost",Promise.resolve(!1),e)}catch(l){c=l}if(!c)try{await o.dispatch(ce).saveEntityRecord("postType",s.type,i,e)}catch(l){c=l.message&&l.code!=="unknown_error"?l.message:m("An error occurred while updating.")}if(c||(c=o.select(ce).getLastEntitySaveError("postType",s.type,s.id)),c||await _n("editor.__unstableSavePost",Promise.resolve(),e).catch(l=>{c=l}),n({type:"REQUEST_POST_UPDATE_FINISH",options:e}),c){const l=$jt({post:s,edits:i,error:c});l.length&&o.dispatch(Ze).createErrorNotice(...l)}else{const l=t.getCurrentPost(),u=Fjt({previousPost:s,post:l,postType:await o.resolveSelect(ce).getPostType(l.type),options:e});u.length&&o.dispatch(Ze).createSuccessNotice(...u),e.isAutosave||o.dispatch(F).__unstableMarkLastChangeAsPersistent()}};function Qjt(){return Re("wp.data.dispatch( 'core/editor' ).refreshPost",{since:"6.0",version:"6.3",alternative:"Use the core entities store instead"}),{type:"DO_NOTHING"}}const Jjt=()=>async({select:e,dispatch:t,registry:n})=>{const o=e.getCurrentPostType(),r=await n.resolveSelect(ce).getPostType(o);n.dispatch(Ze).removeNotice(dze);const{rest_base:s,rest_namespace:i="wp/v2"}=r;t({type:"REQUEST_POST_DELETE_START"});try{const c=e.getCurrentPost();await ct({path:`/${i}/${s}/${c.id}`,method:"DELETE"}),await t.savePost()}catch(c){n.dispatch(Ze).createErrorNotice(...Vjt({error:c}))}t({type:"REQUEST_POST_DELETE_FINISH"})},ePt=({local:e=!1,...t}={})=>async({select:n,dispatch:o})=>{const r=n.getCurrentPost();if(r.type!=="wp_template")if(e){const s=n.isEditedPostNew(),i=n.getEditedPostAttribute("title"),c=n.getEditedPostAttribute("content"),l=n.getEditedPostAttribute("excerpt");Djt(r.id,s,i,c,l)}else await o.savePost({isAutosave:!0,...t})},tPt=({forceIsAutosaveable:e}={})=>async({select:t,dispatch:n})=>((e||t.isEditedPostAutosaveable())&&!t.isPostLocked()&&(["draft","auto-draft"].includes(t.getEditedPostAttribute("status"))?await n.savePost({isPreview:!0}):await n.autosave({isPreview:!0})),t.getEditedPostPreviewLink()),nPt=()=>({registry:e})=>{e.dispatch(ce).redo()},oPt=()=>({registry:e})=>{e.dispatch(ce).undo()};function rPt(){return Re("wp.data.dispatch( 'core/editor' ).createUndoLevel",{since:"6.0",version:"6.3",alternative:"Use the core entities store instead"}),{type:"DO_NOTHING"}}function sPt(e){return{type:"UPDATE_POST_LOCK",lock:e}}const iPt=()=>({registry:e})=>{e.dispatch(Qe).set("core","isPublishSidebarEnabled",!0)},aPt=()=>({registry:e})=>{e.dispatch(Qe).set("core","isPublishSidebarEnabled",!1)};function cPt(e){return{type:"LOCK_POST_SAVING",lockName:e}}function lPt(e){return{type:"UNLOCK_POST_SAVING",lockName:e}}function uPt(e){return{type:"LOCK_POST_AUTOSAVING",lockName:e}}function dPt(e){return{type:"UNLOCK_POST_AUTOSAVING",lockName:e}}const pPt=(e,t={})=>({select:n,dispatch:o,registry:r})=>{const{__unstableShouldCreateUndoLevel:s,selection:i}=t,c={blocks:e,selection:i};if(s!==!1){const{id:l,type:u}=n.getCurrentPost();if(r.select(ce).getEditedEntityRecord("postType",u,l).blocks===c.blocks){r.dispatch(ce).__unstableCreateUndoLevel("postType",u,l);return}c.content=({blocks:p=[]})=>pd(p)}o.editPost(c)};function fPt(e){return{type:"UPDATE_EDITOR_SETTINGS",settings:e}}const bPt=e=>({dispatch:t,registry:n,select:o})=>{o.__unstableIsEditorReady()&&(n.dispatch(F).clearSelectedBlock(),t.editPost({selection:void 0},{undoIgnore:!0})),t({type:"SET_RENDERING_MODE",mode:e})};function hPt(e){return{type:"SET_DEVICE_TYPE",deviceType:e}}const mPt=e=>({registry:t})=>{var n;const o=(n=t.select(Qe).get("core","inactivePanels"))!==null&&n!==void 0?n:[],r=!!o?.includes(e);let s;r?s=o.filter(i=>i!==e):s=[...o,e],t.dispatch(Qe).set("core","inactivePanels",s)},MPt=e=>({registry:t})=>{var n;const o=(n=t.select(Qe).get("core","openPanels"))!==null&&n!==void 0?n:[],r=!!o?.includes(e);let s;r?s=o.filter(i=>i!==e):s=[...o,e],t.dispatch(Qe).set("core","openPanels",s)};function gPt(e){return{type:"REMOVE_PANEL",panelName:e}}function zPt(e){return{type:"SET_IS_INSERTER_OPENED",value:e}}function OPt(e){return{type:"SET_IS_LIST_VIEW_OPENED",isOpen:e}}const APt=()=>({dispatch:e,registry:t})=>{const n=t.select(Qe).get("core","distractionFree");n&&t.dispatch(Qe).set("core","fixedToolbar",!1),n||t.batch(()=>{t.dispatch(Qe).set("core","fixedToolbar",!0),e.setIsInserterOpened(!1),e.setIsListViewOpened(!1)}),t.batch(()=>{t.dispatch(Qe).set("core","distractionFree",!n),t.dispatch(Ze).createInfoNotice(m(n?"Distraction free off.":"Distraction free on."),{id:"core/editor/distraction-free-mode/notice",type:"snackbar",actions:[{label:m("Undo"),onClick:()=>{t.batch(()=>{t.dispatch(Qe).set("core","fixedToolbar",!!n),t.dispatch(Qe).toggle("core","distractionFree")})}}]})})},yPt=e=>({dispatch:t,registry:n})=>{n.dispatch(Qe).set("core","editorMode",e),e!=="visual"&&n.dispatch(F).clearSelectedBlock(),e==="visual"?At(m("Visual editor selected"),"assertive"):e==="text"&&(n.select(Qe).get("core","distractionFree")&&t.toggleDistractionFree(),At(m("Code editor selected"),"assertive"))};function vPt(){return{type:"OPEN_PUBLISH_SIDEBAR"}}function xPt(){return{type:"CLOSE_PUBLISH_SIDEBAR"}}function _Pt(){return{type:"TOGGLE_PUBLISH_SIDEBAR"}}const $0=e=>(...t)=>({registry:n})=>{Re("`wp.data.dispatch( 'core/editor' )."+e+"`",{since:"5.3",alternative:"`wp.data.dispatch( 'core/block-editor' )."+e+"`",version:"6.2"}),n.dispatch(F)[e](...t)},wPt=$0("resetBlocks"),kPt=$0("receiveBlocks"),qPt=$0("updateBlock"),SPt=$0("updateBlockAttributes"),CPt=$0("selectBlock"),RPt=$0("startMultiSelect"),WPt=$0("stopMultiSelect"),TPt=$0("multiSelect"),EPt=$0("clearSelectedBlock"),BPt=$0("toggleSelection"),NPt=$0("replaceBlocks"),LPt=$0("replaceBlock"),jPt=$0("moveBlocksDown"),PPt=$0("moveBlocksUp"),IPt=$0("moveBlockToPosition"),DPt=$0("insertBlock"),FPt=$0("insertBlocks"),$Pt=$0("showInsertionPoint"),VPt=$0("hideInsertionPoint"),HPt=$0("setTemplateValidity"),UPt=$0("synchronizeTemplate"),XPt=$0("mergeBlocks"),GPt=$0("removeBlocks"),KPt=$0("removeBlock"),YPt=$0("toggleBlockMode"),ZPt=$0("startTyping"),QPt=$0("stopTyping"),JPt=$0("enterFormattedText"),e9t=$0("exitFormattedText"),t9t=$0("insertDefaultBlock"),n9t=$0("updateBlockListSettings"),o9t=Object.freeze(Object.defineProperty({__proto__:null,__experimentalTearDownEditor:Ujt,__unstableSaveForPreview:tPt,autosave:ePt,clearSelectedBlock:EPt,closePublishSidebar:xPt,createUndoLevel:rPt,disablePublishSidebar:aPt,editPost:Yjt,enablePublishSidebar:iPt,enterFormattedText:JPt,exitFormattedText:e9t,hideInsertionPoint:VPt,insertBlock:DPt,insertBlocks:FPt,insertDefaultBlock:t9t,lockPostAutosaving:uPt,lockPostSaving:cPt,mergeBlocks:XPt,moveBlockToPosition:IPt,moveBlocksDown:jPt,moveBlocksUp:PPt,multiSelect:TPt,openPublishSidebar:vPt,receiveBlocks:kPt,redo:nPt,refreshPost:Qjt,removeBlock:KPt,removeBlocks:GPt,removeEditorPanel:gPt,replaceBlock:LPt,replaceBlocks:NPt,resetBlocks:wPt,resetEditorBlocks:pPt,resetPost:Xjt,savePost:Zjt,selectBlock:CPt,setDeviceType:hPt,setEditedPost:wze,setIsInserterOpened:zPt,setIsListViewOpened:OPt,setRenderingMode:bPt,setTemplateValidity:HPt,setupEditor:Hjt,setupEditorState:Kjt,showInsertionPoint:$Pt,startMultiSelect:RPt,startTyping:ZPt,stopMultiSelect:WPt,stopTyping:QPt,switchEditorMode:yPt,synchronizeTemplate:UPt,toggleBlockMode:YPt,toggleDistractionFree:APt,toggleEditorPanelEnabled:mPt,toggleEditorPanelOpened:MPt,togglePublishSidebar:_Pt,toggleSelection:BPt,trashPost:Jjt,undo:oPt,unlockPostAutosaving:dPt,unlockPostSaving:lPt,updateBlock:qPt,updateBlockAttributes:SPt,updateBlockListSettings:n9t,updateEditorSettings:fPt,updatePost:Gjt,updatePostLock:sPt},Symbol.toStringTag,{value:"Module"}));function r9t(e){return e?e.source===mO.custom&&(!!e?.plugin||e?.has_theme_file):!1}function s9t(e={},t){return t?.type==="SET_EDITING_PATTERN"?{...e,[t.clientId]:t.isEditing}:e}const i9t=zo({isEditingPattern:s9t}),Pk={theme:"pattern",user:"wp_block"},kze="all-patterns",a9t="my-patterns",c9t=["core","pattern-directory/core","pattern-directory/featured"],Mi={full:"fully",unsynced:"unsynced"},qze={"core/paragraph":["content"],"core/heading":["content"],"core/button":["text","url","linkTarget","rel"],"core/image":["id","url","title","alt"]},v4="core/pattern-overrides",l9t=(e,t,n,o)=>async({registry:r})=>{const s=t===Mi.unsynced?{wp_pattern_sync_status:t}:void 0,i={title:e,content:n,status:"publish",meta:s,wp_pattern_category:o};return await r.dispatch(ce).saveEntityRecord("postType","wp_block",i)},u9t=(e,t)=>async({dispatch:n})=>{const o=await e.text();let r;try{r=JSON.parse(o)}catch{throw new Error("Invalid JSON file")}if(r.__file!=="wp_block"||!r.title||!r.content||typeof r.title!="string"||typeof r.content!="string"||r.syncStatus&&typeof r.syncStatus!="string")throw new Error("Invalid pattern JSON file");return await n.createPattern(r.title,r.syncStatus,r.content,t)},d9t=e=>({registry:t})=>{const n=t.select(F).getBlock(e),o=n.attributes?.content;function r(i){return i.map(c=>{let l=c.attributes.metadata;if(l&&(l={...l},delete l.id,delete l.bindings,o?.[l.name]))for(const[u,d]of Object.entries(o[l.name]))Dt(c.name)?.attributes[u]&&(c.attributes[u]=d);return pn(c,{metadata:l&&Object.keys(l).length>0?l:void 0},r(c.innerBlocks))})}const s=t.select(F).getBlocks(n.clientId);t.dispatch(F).replaceBlocks(n.clientId,r(s))};function p9t(e,t){return{type:"SET_EDITING_PATTERN",clientId:e,isEditing:t}}const f9t=Object.freeze(Object.defineProperty({__proto__:null,convertSyncedPatternToStatic:d9t,createPattern:l9t,createPatternFromFile:u9t,setEditingPattern:p9t},Symbol.toStringTag,{value:"Module"})),b9t="core/patterns";function h9t(e,t){return e.isEditingPattern[t]}const m9t=Object.freeze(Object.defineProperty({__proto__:null,isEditingPattern:h9t},Symbol.toStringTag,{value:"Module"})),{lock:M9t,unlock:xd}=ar("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/patterns"),g9t={reducer:i9t},im=er(b9t,{...g9t});Qs(im);xd(im).registerPrivateActions(f9t);xd(im).registerPrivateSelectors(m9t);function o9(e){return Object.keys(qze).includes(e.name)&&!!e.attributes.metadata?.name&&!!e.attributes.metadata?.bindings&&Object.values(e.attributes.metadata.bindings).some(t=>t.source==="core/pattern-overrides")}function Sze(e){return e.some(t=>o9(t)?!0:Sze(t.innerBlocks))}const{BlockQuickNavigation:z9t}=xd(p0);function O9t(){const e=D(o=>o(F).getClientIdsWithDescendants(),[]),{getBlock:t}=D(F),n=O.useMemo(()=>e.filter(o=>{const r=t(o);return o9(r)}),[e,t]);return n?.length?a.jsx(De,{title:m("Overrides"),children:a.jsx(z9t,{clientIds:n})}):null}const A9t=e=>kt(e),Cze="wp_pattern_category";function y9t({categoryTerms:e,onChange:t,categoryMap:n}){const[o,r]=O.useState(""),s=Uo(r,500),i=O.useMemo(()=>Array.from(n.values()).map(l=>A9t(l.label)).filter(l=>o!==""?l.toLowerCase().includes(o.toLowerCase()):!0).sort((l,u)=>l.localeCompare(u)),[o,n]);function c(l){const u=l.reduce((d,p)=>(d.some(f=>f.toLowerCase()===p.toLowerCase())||d.push(p),d),[]);t(u)}return a.jsx(wf,{className:"patterns-menu-items__convert-modal-categories",value:e,suggestions:i,onChange:c,onInputChange:s,label:m("Categories"),tokenizeOnBlur:!0,__experimentalExpandOnFocus:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})}function Rze(){const{saveEntityRecord:e,invalidateResolution:t}=ae(ce),{corePatternCategories:n,userPatternCategories:o}=D(i=>{const{getUserPatternCategories:c,getBlockPatternCategories:l}=i(ce);return{corePatternCategories:l(),userPatternCategories:c()}},[]),r=O.useMemo(()=>{const i=new Map;return o.forEach(c=>{i.set(c.label.toLowerCase(),{label:c.label,name:c.name,id:c.id})}),n.forEach(c=>{!i.has(c.label.toLowerCase())&&c.name!=="query"&&i.set(c.label.toLowerCase(),{label:c.label,name:c.name})}),i},[o,n]);async function s(i){try{const c=r.get(i.toLowerCase());if(c?.id)return c.id;const l=c?{name:c.label,slug:c.name}:{name:i},u=await e("taxonomy",Cze,l,{throwOnError:!0});return t("getUserPatternCategories"),u.id}catch(c){if(c.code!=="term_exists")throw c;return c.data.term_id}}return{categoryMap:r,findOrCreateTerm:s}}function r9({className:e="patterns-menu-items__convert-modal",modalTitle:t,...n}){const o=D(r=>r(ce).getPostType(Pk.user)?.labels?.add_new_item,[]);return a.jsx(fn,{title:t||o,onRequestClose:n.onClose,overlayClassName:e,focusOnMount:"firstContentElement",size:"small",children:a.jsx(Wze,{...n})})}function Wze({confirmLabel:e=m("Add"),defaultCategories:t=[],content:n,onClose:o,onError:r,onSuccess:s,defaultSyncType:i=Mi.full,defaultTitle:c=""}){const[l,u]=O.useState(i),[d,p]=O.useState(t),[f,b]=O.useState(c),[h,g]=O.useState(!1),{createPattern:z}=xd(ae(im)),{createErrorNotice:y}=ae(Ze),{categoryMap:x,findOrCreateTerm:v}=Rze();async function M(A,_){if(!(!f||h))try{g(!0);const w=await Promise.all(d.map(q=>v(q))),k=await z(A,_,typeof n=="function"?n():n,w);s({pattern:k,categoryId:kze})}catch(w){y(w.message,{type:"snackbar",id:"pattern-create"}),r?.()}finally{g(!1),p([]),b("")}}return a.jsx("form",{onSubmit:A=>{A.preventDefault(),M(f,l)},children:a.jsxs(Ye,{spacing:"5",children:[a.jsx($t,{label:m("Name"),value:f,onChange:b,placeholder:m("My pattern"),className:"patterns-create-modal__name-input",__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),a.jsx(y9t,{categoryTerms:d,onChange:p,categoryMap:x}),a.jsx(Be,{__nextHasNoMarginBottom:!0,label:Oe("Synced","pattern (singular)"),help:m("Sync this pattern across multiple locations."),checked:l===Mi.full,onChange:()=>{u(l===Mi.full?Mi.unsynced:Mi.full)}}),a.jsxs(Je,{justify:"right",children:[a.jsx(fe,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{o(),b("")},children:m("Cancel")}),a.jsx(fe,{__next40pxDefaultSize:!0,variant:"primary",type:"submit","aria-disabled":!f||h,isBusy:h,children:e})]})]})})}function v9t(e,t){return e.type!==Pk.user?t.core?.filter(n=>e.categories.includes(n.name)).map(n=>n.label):t.user?.filter(n=>e.wp_pattern_category.includes(n.id)).map(n=>n.label)}function Tze({pattern:e,onSuccess:t}){const{createSuccessNotice:n}=ae(Ze),o=D(r=>{const{getUserPatternCategories:s,getBlockPatternCategories:i}=r(ce);return{core:i(),user:s()}});return e?{content:e.content,defaultCategories:v9t(e,o),defaultSyncType:e.type!==Pk.user?Mi.unsynced:e.wp_pattern_sync_status||Mi.full,defaultTitle:le(m("%s (Copy)"),typeof e.title=="string"?e.title:e.title.raw),onSuccess:({pattern:r})=>{n(le(m('"%s" duplicated.'),r.title.raw),{type:"snackbar",id:"patterns-create"}),t?.({pattern:r})}}:null}function x9t({pattern:e,onClose:t,onSuccess:n}){const o=Tze({pattern:e,onSuccess:n});return e?a.jsx(r9,{modalTitle:m("Duplicate pattern"),confirmLabel:m("Duplicate"),onClose:t,onError:t,...o}):null}function _9t({onClose:e,onError:t,onSuccess:n,pattern:o,...r}){const s=kt(o.title),[i,c]=O.useState(s),[l,u]=O.useState(!1),{editEntityRecord:d,__experimentalSaveSpecifiedEntityEdits:p}=ae(ce),{createSuccessNotice:f,createErrorNotice:b}=ae(Ze),h=async z=>{if(z.preventDefault(),!(!i||i===o.title||l))try{await d("postType",o.type,o.id,{title:i}),u(!0),c(""),e?.();const y=await p("postType",o.type,o.id,["title"],{throwOnError:!0});n?.(y),f(m("Pattern renamed"),{type:"snackbar",id:"pattern-update"})}catch(y){t?.();const x=y.message&&y.code!=="unknown_error"?y.message:m("An error occurred while renaming the pattern.");b(x,{type:"snackbar",id:"pattern-update"})}finally{u(!1),c("")}},g=()=>{e?.(),c("")};return a.jsx(fn,{title:m("Rename"),...r,onRequestClose:e,focusOnMount:"firstContentElement",size:"small",children:a.jsx("form",{onSubmit:h,children:a.jsxs(Ye,{spacing:"5",children:[a.jsx($t,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:m("Name"),value:i,onChange:c,required:!0}),a.jsxs(Je,{justify:"right",children:[a.jsx(fe,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:g,children:m("Cancel")}),a.jsx(fe,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:m("Save")})]})]})})})}function w9t({clientIds:e,rootClientId:t,closeBlockSettingsMenu:n}){const{createSuccessNotice:o}=ae(Ze),{replaceBlocks:r}=ae(F),{setEditingPattern:s}=xd(ae(im)),[i,c]=O.useState(!1),l=D(f=>{var b;const{canUser:h}=f(ce),{getBlocksByClientId:g,canInsertBlockType:z,getBlockRootClientId:y}=f(F),x=t||(e.length>0?y(e[0]):void 0),v=(b=g(e))!==null&&b!==void 0?b:[];return!(v.length===1&&v[0]&&dd(v[0])&&!!f(ce).getEntityRecord("postType","wp_block",v[0].attributes.ref))&&z("core/block",x)&&v.every(_=>!!_&&_.isValid&&st(_.name,"reusable",!0))&&!!h("create",{kind:"postType",name:"wp_block"})},[e,t]),{getBlocksByClientId:u}=D(F),d=O.useCallback(()=>Pr(u(e)),[u,e]);if(!l)return null;const p=({pattern:f})=>{if(f.wp_pattern_sync_status!==Mi.unsynced){const b=me("core/block",{ref:f.id});r(e,b),s(b.clientId,!0),n()}o(f.wp_pattern_sync_status===Mi.unsynced?le(m("Unsynced pattern created: %s"),f.title.raw):le(m("Synced pattern created: %s"),f.title.raw),{type:"snackbar",id:"convert-to-pattern-success"}),c(!1)};return a.jsxs(a.Fragment,{children:[a.jsx(tt,{icon:Gu,onClick:()=>c(!0),"aria-expanded":i,"aria-haspopup":"dialog",children:m("Create pattern")}),i&&a.jsx(r9,{content:d,onSuccess:f=>{p(f)},onError:()=>{c(!1)},onClose:()=>{c(!1)}})]})}function k9t({clientId:e}){const{canRemove:t,isVisible:n,managePatternsUrl:o}=D(s=>{const{getBlock:i,canRemoveBlock:c,getBlockCount:l}=s(F),{canUser:u}=s(ce),d=i(e);return{canRemove:c(e),isVisible:!!d&&dd(d)&&!!u("update",{kind:"postType",name:"wp_block",id:d.attributes.ref}),innerBlockCount:l(e),managePatternsUrl:u("create",{kind:"postType",name:"wp_template"})?wt("site-editor.php",{path:"/patterns"}):wt("edit.php",{post_type:"wp_block"})}},[e]),{convertSyncedPatternToStatic:r}=xd(ae(im));return n?a.jsxs(a.Fragment,{children:[t&&a.jsx(tt,{onClick:()=>r(e),children:m("Detach")}),a.jsx(tt,{href:o,children:m("Manage patterns")})]}):null}function q9t({rootClientId:e}){return a.jsx(Zh,{children:({selectedClientIds:t,onClose:n})=>a.jsxs(a.Fragment,{children:[a.jsx(w9t,{clientIds:t,rootClientId:e,closeBlockSettingsMenu:n}),t.length===1&&a.jsx(k9t,{clientId:t[0]})]})})}function S9t({category:e,existingCategories:t,onClose:n,onError:o,onSuccess:r,...s}){const i=O.useId(),c=O.useRef(),[l,u]=O.useState(kt(e.name)),[d,p]=O.useState(!1),[f,b]=O.useState(!1),h=f?`patterns-rename-pattern-category-modal__validation-message-${i}`:void 0,{saveEntityRecord:g,invalidateResolution:z}=ae(ce),{createErrorNotice:y,createSuccessNotice:x}=ae(Ze),v=_=>{f&&b(void 0),u(_)},M=async _=>{if(_.preventDefault(),!d){if(!l||l===e.name){const w=m("Please enter a new name for this category.");At(w,"assertive"),b(w),c.current?.focus();return}if(t.patternCategories.find(w=>w.id!==e.id&&w.label.toLowerCase()===l.toLowerCase())){const w=m("This category already exists. Please use a different name.");At(w,"assertive"),b(w),c.current?.focus();return}try{p(!0);const w=await g("taxonomy",Cze,{id:e.id,slug:e.slug,name:l});z("getUserPatternCategories"),r?.(w),n(),x(m("Pattern category renamed."),{type:"snackbar",id:"pattern-category-update"})}catch(w){o?.(),y(w.message,{type:"snackbar",id:"pattern-category-update"})}finally{p(!1),u("")}}},A=()=>{n(),u("")};return a.jsx(fn,{title:m("Rename"),onRequestClose:A,...s,children:a.jsx("form",{onSubmit:M,children:a.jsxs(Ye,{spacing:"5",children:[a.jsxs(Ye,{spacing:"2",children:[a.jsx($t,{ref:c,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:m("Name"),value:l,onChange:v,"aria-describedby":h,required:!0}),f&&a.jsx("span",{className:"patterns-rename-pattern-category-modal__validation-message",id:h,children:f})]}),a.jsxs(Je,{justify:"right",children:[a.jsx(fe,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:A,children:m("Cancel")}),a.jsx(fe,{__next40pxDefaultSize:!0,variant:"primary",type:"submit","aria-disabled":!l||l===e.name||d,isBusy:d,children:m("Save")})]})]})})})}function C9t({placeholder:e,initialName:t="",onClose:n,onSave:o}){const[r,s]=O.useState(t),i=O.useId(),c=!!r.trim(),l=()=>{if(r!==t){const u=le(m('Block name changed to: "%s".'),r);At(u,"assertive")}o(r),n()};return a.jsx(fn,{title:m("Enable overrides"),onRequestClose:n,focusOnMount:"firstContentElement",aria:{describedby:i},size:"small",children:a.jsx("form",{onSubmit:u=>{u.preventDefault(),c&&l()},children:a.jsxs(Ye,{spacing:"6",children:[a.jsx(l0,{id:i,children:m("Overrides are changes you make to a block within a synced pattern instance. Use overrides to customize a synced pattern instance to suit its new context. Name this block to specify an override.")}),a.jsx($t,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:r,label:m("Name"),help:m('For example, if you are creating a recipe pattern, you use "Recipe Title", "Recipe Description", etc.'),placeholder:e,onChange:s}),a.jsxs(Je,{justify:"right",children:[a.jsx(fe,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:n,children:m("Cancel")}),a.jsx(fe,{__next40pxDefaultSize:!0,"aria-disabled":!c,variant:"primary",type:"submit",children:m("Enable")})]})]})})})}function R9t({onClose:e,onSave:t}){const n=O.useId();return a.jsx(fn,{title:m("Disable overrides"),onRequestClose:e,aria:{describedby:n},size:"small",children:a.jsx("form",{onSubmit:o=>{o.preventDefault(),t(),e()},children:a.jsxs(Ye,{spacing:"6",children:[a.jsx(l0,{id:n,children:m("Are you sure you want to disable overrides? Disabling overrides will revert all applied overrides for this block throughout instances of this pattern.")}),a.jsxs(Je,{justify:"right",children:[a.jsx(fe,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:e,children:m("Cancel")}),a.jsx(fe,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:m("Disable")})]})]})})})}const{useBlockBindingsUtils:W9t}=xd(p0);function T9t({attributes:e,setAttributes:t,name:n}){const o=O.useId(),[r,s]=O.useState(!1),[i,c]=O.useState(!1),l=!!e.metadata?.name,u=e.metadata?.bindings?.__default,d=l&&u?.source===v4,p=u?.source&&u.source!==v4,{updateBlockBindings:f}=W9t();function b(z,y){y&&t({metadata:{...e.metadata,name:y}}),f({__default:z?{source:v4}:void 0})}if(p)return null;const h=n==="core/image"&&(!!e.caption?.length||!!e.href?.length),g=m(!d&&h?"Overrides currently don't support image captions or links. Remove the caption or link first before enabling overrides.":"Allow changes to this block throughout instances of this pattern.");return a.jsxs(a.Fragment,{children:[a.jsx(Te,{group:"advanced",children:a.jsx(z0,{__nextHasNoMarginBottom:!0,id:o,label:m("Overrides"),help:g,children:a.jsx(fe,{__next40pxDefaultSize:!0,className:"pattern-overrides-control__allow-overrides-button",variant:"secondary","aria-haspopup":"dialog",onClick:()=>{d?c(!0):s(!0)},disabled:!d&&h,accessibleWhenDisabled:!0,children:m(d?"Disable overrides":"Enable overrides")})})}),r&&a.jsx(C9t,{initialName:e.metadata?.name,onClose:()=>s(!1),onSave:z=>{b(!0,z)}}),i&&a.jsx(R9t,{onClose:()=>c(!1),onSave:()=>b(!1)})]})}const rC="content";function E9t(e){const t=e.attributes.metadata?.name,n=h0(),o=D(s=>{if(!t)return;const{getBlockAttributes:i,getBlockParentsByBlockName:c}=s(F),[l]=c(e.clientId,"core/block",!0);if(!l)return;const u=i(l)[rC];if(u)return u.hasOwnProperty(t)},[e.clientId,t]);function r(){const{getBlockAttributes:s,getBlockParentsByBlockName:i}=n.select(F),[c]=i(e.clientId,"core/block",!0);if(!c)return;const l=s(c)[rC];if(!l.hasOwnProperty(t))return;const{updateBlockAttributes:u,__unstableMarkLastChangeAsPersistent:d}=n.dispatch(F);d();let p={...l};delete p[t],Object.keys(p).length||(p=void 0),u(c,{[rC]:p})}return a.jsx(SP,{children:a.jsx(c0,{children:a.jsx(bt,{onClick:r,disabled:!o,children:m("Reset")})})})}const{useBlockDisplayTitle:B9t}=xd(p0);function N9t({clientIds:e}){const t=e.length===1,{icon:n,firstBlockName:o}=D(c=>{const{getBlockAttributes:l,getBlockNamesByClientId:u}=c(F),{getBlockType:d,getActiveBlockVariation:p}=c($e),f=u(e),b=f[0],h=d(b);let g;return t?g=p(b,l(e[0]))?.icon||h.icon:g=new Set(f).size===1?h.icon:k3,{icon:g,firstBlockName:l(e[0]).metadata.name}},[e,t]),r=B9t({clientId:e[0],maximumLength:35}),s=t?le(m('This %1$s is editable using the "%2$s" override.'),r.toLowerCase(),o):m("These blocks are editable using overrides."),i=O.useId();return a.jsx(Ko,{children:c=>a.jsx(E1,{className:"patterns-pattern-overrides-toolbar-indicator",label:r,popoverProps:{placement:"bottom-start",className:"patterns-pattern-overrides-toolbar-indicator__popover"},icon:a.jsx(a.Fragment,{children:a.jsx(b0,{icon:n,className:"patterns-pattern-overrides-toolbar-indicator-icon",showColors:!0})}),toggleProps:{description:s,...c},menuProps:{orientation:"both","aria-describedby":i},children:()=>a.jsx(l0,{id:i,children:s})})})}function L9t(){const{clientIds:e,hasPatternOverrides:t,hasParentPattern:n}=D(o=>{const{getBlockAttributes:r,getSelectedBlockClientIds:s,getBlockParentsByBlockName:i}=o(F),c=s(),l=c.every(d=>{var p;return Object.values((p=r(d)?.metadata?.bindings)!==null&&p!==void 0?p:{}).some(f=>f?.source===v4)}),u=c.every(d=>i(d,"core/block",!0).length>0);return{clientIds:c,hasPatternOverrides:l,hasParentPattern:u}},[]);return t&&n?a.jsx(Ie,{group:"parent",children:a.jsx(N9t,{clientIds:e})}):null}const Gi={};M9t(Gi,{OverridesPanel:O9t,CreatePatternModal:r9,CreatePatternModalContents:Wze,DuplicatePatternModal:x9t,isOverridableBlock:o9,hasOverridableBlocks:Sze,useDuplicatePatternProps:Tze,RenamePatternModal:_9t,PatternsMenuItems:q9t,RenamePatternCategoryModal:S9t,PatternOverridesControls:T9t,ResetOverridesControl:E9t,PatternOverridesBlockControls:L9t,useAddPatternCategory:Rze,PATTERN_TYPES:Pk,PATTERN_DEFAULT_CATEGORY:kze,PATTERN_USER_CATEGORY:a9t,EXCLUDED_PATTERN_SOURCES:c9t,PATTERN_SYNC_TYPES:Mi,PARTIAL_SYNCING_SUPPORTED_BLOCKS:qze});function j9t(e){return e.type===d1}function P9t(e){return e.type===vo}function MO(e){return e.type===d1||e.type===vo}function Nr(e){return typeof e.title=="string"?kt(e.title):"rendered"in e.title?kt(e.title.rendered):"raw"in e.title?kt(e.title.raw):""}function Eze(e){return e?[e.source,e.source].includes(mO.custom)&&!(e.type==="wp_template"&&e?.plugin)&&!e.has_theme_file:!1}const{lock:I9t,unlock:gt}=ar("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/editor"),{PATTERN_TYPES:D9t}=gt(Gi),F9t={id:"delete-post",label:m("Delete"),isPrimary:!0,icon:C3,isEligible(e){return MO(e)?Eze(e):e.type===D9t.user},supportsBulk:!0,hideModalHeader:!0,RenderModal:({items:e,closeModal:t,onActionPerformed:n})=>{const[o,r]=O.useState(!1),{removeTemplates:s}=gt(ae(ue));return a.jsxs(Ye,{spacing:"5",children:[a.jsx(l0,{children:e.length>1?le(a0("Delete %d item?","Delete %d items?",e.length),e.length):le(m('Delete "%s"?'),Nr(e[0]))}),a.jsxs(Je,{justify:"right",children:[a.jsx(fe,{variant:"tertiary",onClick:t,disabled:o,accessibleWhenDisabled:!0,__next40pxDefaultSize:!0,children:m("Cancel")}),a.jsx(fe,{variant:"primary",onClick:async()=>{r(!0),await s(e,{allowUndo:!1}),n?.(e),r(!1),t?.()},isBusy:o,disabled:o,accessibleWhenDisabled:!0,__next40pxDefaultSize:!0,children:m("Delete")})]})]})}},{CreatePatternModalContents:$9t,useDuplicatePatternProps:V9t}=gt(Gi),H9t={id:"duplicate-pattern",label:Oe("Duplicate","action label"),isEligible:e=>e.type!=="wp_template_part",modalHeader:Oe("Duplicate pattern","action label"),RenderModal:({items:e,closeModal:t})=>{const[n]=e,o=V9t({pattern:n,onSuccess:()=>t?.()});return a.jsx($9t,{onClose:t,confirmLabel:Oe("Duplicate","action label"),...o})}},U9t=()=>D(e=>e(ce).getEntityRecords("postType",vo,{per_page:-1}),[]),X9t=(e,t)=>{const n=e.toLowerCase(),o=t.map(s=>s.title.rendered.toLowerCase());if(!o.includes(n))return e;let r=2;for(;o.includes(`${n} ${r}`);)r++;return`${e} ${r}`},G9t=e=>Us(e).replace(/[^\w-]+/g,"")||"wp-custom-part";function s9({modalTitle:e,...t}){const n=D(o=>o(ce).getPostType(vo)?.labels?.add_new_item,[]);return a.jsx(fn,{title:e||n,onRequestClose:t.closeModal,overlayClassName:"editor-create-template-part-modal",focusOnMount:"firstContentElement",size:"medium",children:a.jsx(Bze,{...t})})}function Bze({defaultArea:e=HLt,blocks:t=[],confirmLabel:n=m("Add"),closeModal:o,onCreate:r,onError:s,defaultTitle:i=""}){const{createErrorNotice:c}=ae(Ze),{saveEntityRecord:l}=ae(ce),u=U9t(),[d,p]=O.useState(i),[f,b]=O.useState(e),[h,g]=O.useState(!1),z=He(s9),y=D(v=>v(ue).__experimentalGetDefaultTemplatePartAreas(),[]);async function x(){if(!(!d||h))try{g(!0);const v=X9t(d,u),M=G9t(v),A=await l("postType",vo,{slug:M,title:v,content:Pr(t),area:f},{throwOnError:!0});await r(A)}catch(v){const M=v.message&&v.code!=="unknown_error"?v.message:m("An error occurred while creating the template part.");c(M,{type:"snackbar"}),s?.()}finally{g(!1)}}return a.jsx("form",{onSubmit:async v=>{v.preventDefault(),await x()},children:a.jsxs(Ye,{spacing:"4",children:[a.jsx($t,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:m("Name"),value:d,onChange:p,required:!0}),a.jsx(z0,{__nextHasNoMarginBottom:!0,label:m("Area"),id:`editor-create-template-part-modal__area-selection-${z}`,className:"editor-create-template-part-modal__area-base-control",children:a.jsx(gbt,{label:m("Area"),className:"editor-create-template-part-modal__area-radio-group",id:`editor-create-template-part-modal__area-selection-${z}`,onChange:b,checked:f,children:y.map(({icon:v,label:M,area:A,description:_})=>a.jsx(mbt,{value:A,className:"editor-create-template-part-modal__area-radio",children:a.jsxs(Q0,{align:"start",justify:"start",children:[a.jsx(Ht,{children:a.jsx(xn,{icon:v})}),a.jsxs(Vi,{className:"editor-create-template-part-modal__option-label",children:[M,a.jsx("div",{children:_})]}),a.jsx(Ht,{className:"editor-create-template-part-modal__checkbox",children:f===A&&a.jsx(xn,{icon:no})})]})},M))})}),a.jsxs(Je,{justify:"right",children:[a.jsx(fe,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{o()},children:m("Cancel")}),a.jsx(fe,{__next40pxDefaultSize:!0,variant:"primary",type:"submit","aria-disabled":!d||h,isBusy:h,children:n})]})]})})}const K9t={id:"duplicate-template-part",label:Oe("Duplicate","action label"),isEligible:e=>e.type===vo,modalHeader:Oe("Duplicate template part","action label"),RenderModal:({items:e,closeModal:t})=>{const[n]=e,o=O.useMemo(()=>{var i;return(i=n.blocks)!==null&&i!==void 0?i:Yn(typeof n.content=="string"?n.content:n.content.raw,{__unstableSkipMigrationLogs:!0})},[n.content,n.blocks]),{createSuccessNotice:r}=ae(Ze);function s(){r(le(m('"%s" duplicated.'),Nr(n)),{type:"snackbar",id:"edit-site-patterns-success"}),t?.()}return a.jsx(Bze,{blocks:o,defaultArea:n.area,defaultTitle:le(m("%s (Copy)"),Nr(n)),onCreate:s,onError:t,confirmLabel:Oe("Duplicate","action label"),closeModal:t})}};"stream"in Blob.prototype||Object.defineProperty(Blob.prototype,"stream",{value(){return new Response(this).body}}),"setBigUint64"in DataView.prototype||Object.defineProperty(DataView.prototype,"setBigUint64",{value(e,t,n){const o=Number(0xffffffffn&t),r=Number(t>>32n);this.setUint32(e+(n?0:4),o,n),this.setUint32(e+(n?4:0),r,n)}});var nh=e=>new DataView(new ArrayBuffer(e)),dl=e=>new Uint8Array(e.buffer||e),Eb=e=>new TextEncoder().encode(String(e)),gp=e=>Math.min(4294967295,Number(e)),LZ=e=>Math.min(65535,Number(e));function Y9t(e,t){if(t===void 0||t instanceof Date||(t=new Date(t)),e instanceof File)return{isFile:1,t:t||new Date(e.lastModified),i:e.stream()};if(e instanceof Response)return{isFile:1,t:t||new Date(e.headers.get("Last-Modified")||Date.now()),i:e.body};if(t===void 0)t=new Date;else if(isNaN(t))throw new Error("Invalid modification date.");if(e===void 0)return{isFile:0,t};if(typeof e=="string")return{isFile:1,t,i:Eb(e)};if(e instanceof Blob)return{isFile:1,t,i:e.stream()};if(e instanceof Uint8Array||e instanceof ReadableStream)return{isFile:1,t,i:e};if(e instanceof ArrayBuffer||ArrayBuffer.isView(e))return{isFile:1,t,i:dl(e)};if(Symbol.asyncIterator in e)return{isFile:1,t,i:Nze(e[Symbol.asyncIterator]())};throw new TypeError("Unsupported input format.")}function Nze(e,t=e){return new ReadableStream({async pull(n){let o=0;for(;n.desiredSize>o;){const r=await e.next();if(!r.value){n.close();break}{const s=Z9t(r.value);n.enqueue(s),o+=s.byteLength}}},cancel(n){t.throw?.(n)}})}function Z9t(e){return typeof e=="string"?Eb(e):e instanceof Uint8Array?e:dl(e)}function Lze(e,t,n){let[o,r]=function(s){return s?s instanceof Uint8Array?[s,1]:ArrayBuffer.isView(s)||s instanceof ArrayBuffer?[dl(s),1]:[Eb(s),0]:[void 0,0]}(t);if(e instanceof File)return{o:sC(o||Eb(e.name)),u:BigInt(e.size),l:r};if(e instanceof Response){const s=e.headers.get("content-disposition"),i=s&&s.match(/;\s*filename\*?=["']?(.*?)["']?$/i),c=i&&i[1]||e.url&&new URL(e.url).pathname.split("/").findLast(Boolean),l=c&&decodeURIComponent(c),u=n||+e.headers.get("content-length");return{o:sC(o||Eb(l)),u:BigInt(u),l:r}}return o=sC(o,e!==void 0||n!==void 0),typeof e=="string"?{o,u:BigInt(Eb(e).length),l:r}:e instanceof Blob?{o,u:BigInt(e.size),l:r}:e instanceof ArrayBuffer||ArrayBuffer.isView(e)?{o,u:BigInt(e.byteLength),l:r}:{o,u:Q9t(e,n),l:r}}function Q9t(e,t){return t>-1?BigInt(t):e?void 0:0n}function sC(e,t=1){if(!e||e.every(n=>n===47))throw new Error("The file must have a name.");if(t)for(;e[e.length-1]===47;)e=e.subarray(0,-1);else e[e.length-1]!==47&&(e=new Uint8Array([...e,47]));return e}var jze=new Uint32Array(256);for(let e=0;e<256;++e){let t=e;for(let n=0;n<8;++n)t=t>>>1^(1&t&&3988292384);jze[e]=t}function jZ(e,t=0){t^=-1;for(var n=0,o=e.length;n>>8^jze[255&t^e[n]];return(-1^t)>>>0}function Pze(e,t,n=0){const o=e.getSeconds()>>1|e.getMinutes()<<5|e.getHours()<<11,r=e.getDate()|e.getMonth()+1<<5|e.getFullYear()-1980<<9;t.setUint16(n,o,1),t.setUint16(n+2,r,1)}function J9t({o:e,l:t},n){return 8*(!t||(n??function(o){try{eIt.decode(o)}catch{return 0}return 1}(e)))}var eIt=new TextDecoder("utf8",{fatal:1});function tIt(e,t=0){const n=nh(30);return n.setUint32(0,1347093252),n.setUint32(4,754976768|t),Pze(e.t,n,10),n.setUint16(26,e.o.length,1),dl(n)}async function*nIt(e){let{i:t}=e;if("then"in t&&(t=await t),t instanceof Uint8Array)yield t,e.m=jZ(t,0),e.u=BigInt(t.length);else{e.u=0n;const n=t.getReader();for(;;){const{value:o,done:r}=await n.read();if(r)break;e.m=jZ(o,e.m),e.u+=BigInt(o.length),yield o}}}function oIt(e,t){const n=nh(16+(t?8:0));return n.setUint32(0,1347094280),n.setUint32(4,e.isFile?e.m:0,1),t?(n.setBigUint64(8,e.u,1),n.setBigUint64(16,e.u,1)):(n.setUint32(8,gp(e.u),1),n.setUint32(12,gp(e.u),1)),dl(n)}function rIt(e,t,n=0,o=0){const r=nh(46);return r.setUint32(0,1347092738),r.setUint32(4,755182848),r.setUint16(8,2048|n),Pze(e.t,r,12),r.setUint32(16,e.isFile?e.m:0,1),r.setUint32(20,gp(e.u),1),r.setUint32(24,gp(e.u),1),r.setUint16(28,e.o.length,1),r.setUint16(30,o,1),r.setUint16(40,e.isFile?33204:16893,1),r.setUint32(42,gp(t),1),dl(r)}function sIt(e,t,n){const o=nh(n);return o.setUint16(0,1,1),o.setUint16(2,n-4,1),16&n&&(o.setBigUint64(4,e.u,1),o.setBigUint64(12,e.u,1)),o.setBigUint64(n-8,t,1),dl(o)}function Ize(e){return e instanceof File||e instanceof Response?[[e],[e]]:[[e.input,e.name,e.size],[e.input,e.lastModified]]}var iIt=e=>function(t){let n=BigInt(22),o=0n,r=0;for(const s of t){if(!s.o)throw new Error("Every file must have a non-empty name.");if(s.u===void 0)throw new Error(`Missing size for file "${new TextDecoder().decode(s.o)}".`);const i=s.u>=0xffffffffn,c=o>=0xffffffffn;o+=BigInt(46+s.o.length+(i&&8))+s.u,n+=BigInt(s.o.length+46+(12*c|28*i)),r||(r=i)}return(r||o>=0xffffffffn)&&(n+=BigInt(76)),n+o}(function*(t){for(const n of t)yield Lze(...Ize(n)[0])}(e));function aIt(e,t={}){const n={"Content-Type":"application/zip","Content-Disposition":"attachment"};return(typeof t.length=="bigint"||Number.isInteger(t.length))&&t.length>0&&(n["Content-Length"]=String(t.length)),t.metadata&&(n["Content-Length"]=String(iIt(t.metadata))),new Response(cIt(e,t),{headers:n})}function cIt(e,t={}){const n=function(o){const r=o[Symbol.iterator in o?Symbol.iterator:Symbol.asyncIterator]();return{async next(){const s=await r.next();if(s.done)return s;const[i,c]=Ize(s.value);return{done:0,value:Object.assign(Y9t(...c),Lze(...i))}},throw:r.throw?.bind(r),[Symbol.asyncIterator](){return this}}}(e);return Nze(async function*(o,r){const s=[];let i=0n,c=0n,l=0;for await(const p of o){const f=J9t(p,r.buffersAreUTF8);yield tIt(p,f),yield new Uint8Array(p.o),p.isFile&&(yield*nIt(p));const b=p.u>=0xffffffffn,h=12*(i>=0xffffffffn)|28*b;yield oIt(p,b),s.push(rIt(p,i,f,h)),s.push(p.o),h&&s.push(sIt(p,i,h)),b&&(i+=8n),c++,i+=BigInt(46+p.o.length)+p.u,l||(l=b)}let u=0n;for(const p of s)yield p,u+=BigInt(p.length);if(l||i>=0xffffffffn){const p=nh(76);p.setUint32(0,1347094022),p.setBigUint64(4,BigInt(44),1),p.setUint32(12,755182848),p.setBigUint64(24,c,1),p.setBigUint64(32,c,1),p.setBigUint64(40,u,1),p.setBigUint64(48,i,1),p.setUint32(56,1347094023),p.setBigUint64(64,i+u,1),p.setUint32(72,1,1),yield dl(p)}const d=nh(22);d.setUint32(0,1347093766),d.setUint16(8,LZ(c),1),d.setUint16(10,LZ(c),1),d.setUint32(12,gp(u),1),d.setUint32(16,gp(i),1),yield dl(d)}(n,t),n)}function PZ(e){return JSON.stringify({__file:e.type,title:Nr(e),content:typeof e.content=="string"?e.content:e.content?.raw,syncStatus:e.wp_pattern_sync_status},null,2)}const lIt={id:"export-pattern",label:m("Export as JSON"),icon:EYe,supportsBulk:!0,isEligible:e=>e.type==="wp_block",callback:async e=>{if(e.length===1)return QV(`${Us(Nr(e[0])||e[0].slug)}.json`,PZ(e[0]),"application/json");const t={},n=e.map(o=>{const r=Us(Nr(o)||o.slug);return t[r]=(t[r]||0)+1,{name:`${r+(t[r]>1?"-"+(t[r]-1):"")}.json`,lastModified:new Date,input:PZ(o)}});return QV(m("patterns-export")+".zip",await aIt(n).blob(),"application/zip")}},uIt={id:"reset-post",label:m("Reset"),isEligible:e=>MO(e)&&e?.source===mO.custom&&(!!(e.type==="wp_template"&&e?.plugin)||e?.has_theme_file),icon:$ce,supportsBulk:!0,hideModalHeader:!0,RenderModal:({items:e,closeModal:t,onActionPerformed:n})=>{const[o,r]=O.useState(!1),{revertTemplate:s}=gt(ae(ue)),{saveEditedEntityRecord:i}=ae(ce),{createSuccessNotice:c,createErrorNotice:l}=ae(Ze),u=async()=>{try{for(const d of e)await s(d,{allowUndo:!1}),await i("postType",d.type,d.id);c(e.length>1?le(m("%s items reset."),e.length):le(m('"%s" reset.'),Nr(e[0])),{type:"snackbar",id:"revert-template-action"})}catch(d){let p;e[0].type===d1?p=e.length===1?m("An error occurred while reverting the template."):m("An error occurred while reverting the templates."):p=e.length===1?m("An error occurred while reverting the template part."):m("An error occurred while reverting the template parts.");const f=d,b=f.message&&f.code!=="unknown_error"?f.message:p;l(b,{type:"snackbar"})}};return a.jsxs(Ye,{spacing:"5",children:[a.jsx(l0,{children:m("Reset to default and clear all customizations?")}),a.jsxs(Je,{justify:"right",children:[a.jsx(fe,{__next40pxDefaultSize:!1,variant:"tertiary",onClick:t,disabled:o,accessibleWhenDisabled:!0,children:m("Cancel")}),a.jsx(fe,{__next40pxDefaultSize:!1,variant:"primary",onClick:async()=>{r(!0),await u(),n?.(e),r(!1),t?.()},isBusy:o,disabled:o,accessibleWhenDisabled:!0,children:m("Reset")})]})]})}},dIt={id:"move-to-trash",label:m("Move to trash"),isPrimary:!0,icon:C3,isEligible(e){return MO(e)||e.type==="wp_block"?!1:!!e.status&&!["auto-draft","trash"].includes(e.status)&&e.permissions?.delete},supportsBulk:!0,hideModalHeader:!0,RenderModal:({items:e,closeModal:t,onActionPerformed:n})=>{const[o,r]=O.useState(!1),{createSuccessNotice:s,createErrorNotice:i}=ae(Ze),{deleteEntityRecord:c}=ae(ce);return a.jsxs(Ye,{spacing:"5",children:[a.jsx(l0,{children:e.length===1?le(m('Are you sure you want to move "%s" to the trash?'),Nr(e[0])):le(a0("Are you sure you want to move %d item to the trash ?","Are you sure you want to move %d items to the trash ?",e.length),e.length)}),a.jsxs(Je,{justify:"right",children:[a.jsx(fe,{__next40pxDefaultSize:!1,variant:"tertiary",onClick:t,disabled:o,accessibleWhenDisabled:!0,children:m("Cancel")}),a.jsx(fe,{__next40pxDefaultSize:!1,variant:"primary",onClick:async()=>{r(!0);const l=await Promise.allSettled(e.map(u=>c("postType",u.type,u.id.toString(),{},{throwOnError:!0})));if(l.every(({status:u})=>u==="fulfilled")){let u;l.length===1?u=le(m('"%s" moved to the trash.'),Nr(e[0])):u=le(a0("%s item moved to the trash.","%s items moved to the trash.",e.length),e.length),s(u,{type:"snackbar",id:"move-to-trash-action"})}else{let u;if(l.length===1){const d=l[0];d.reason?.message?u=d.reason.message:u=m("An error occurred while moving the item to the trash.")}else{const d=new Set,p=l.filter(({status:f})=>f==="rejected");for(const f of p){const b=f;b.reason?.message&&d.add(b.reason.message)}d.size===0?u=m("An error occurred while moving the items to the trash."):d.size===1?u=le(m("An error occurred while moving the item to the trash: %s"),[...d][0]):u=le(m("Some errors occurred while moving the items to the trash: %s"),[...d].join(","))}i(u,{type:"snackbar"})}n&&n(e),r(!1),t?.()},isBusy:o,disabled:o,accessibleWhenDisabled:!0,children:Oe("Trash","verb")})]})]})}},pIt={id:"permanently-delete",label:m("Permanently delete"),supportsBulk:!0,icon:C3,isEligible(e){if(MO(e)||e.type==="wp_block")return!1;const{status:t,permissions:n}=e;return t==="trash"&&n?.delete},async callback(e,{registry:t,onActionPerformed:n}){const{createSuccessNotice:o,createErrorNotice:r}=t.dispatch(Ze),{deleteEntityRecord:s}=t.dispatch(ce),i=await Promise.allSettled(e.map(c=>s("postType",c.type,c.id,{force:!0},{throwOnError:!0})));if(i.every(({status:c})=>c==="fulfilled")){let c;i.length===1?c=le(m('"%s" permanently deleted.'),Nr(e[0])):c=m("The items were permanently deleted."),o(c,{type:"snackbar",id:"permanently-delete-post-action"}),n?.(e)}else{let c;if(i.length===1){const l=i[0];l.reason?.message?c=l.reason.message:c=m("An error occurred while permanently deleting the item.")}else{const l=new Set,u=i.filter(({status:d})=>d==="rejected");for(const d of u){const p=d;p.reason?.message&&l.add(p.reason.message)}l.size===0?c=m("An error occurred while permanently deleting the items."):l.size===1?c=le(m("An error occurred while permanently deleting the items: %s"),[...l][0]):c=le(m("Some errors occurred while permanently deleting the items: %s"),[...l].join(","))}r(c,{type:"snackbar"})}}},{PATTERN_TYPES:IZ}=gt(Gi),fIt={id:"rename-post",label:m("Rename"),isEligible(e){return e.status==="trash"?!1:[d1,vo,...Object.values(IZ)].includes(e.type)?j9t(e)?Eze(e)&&e.is_custom&&e.permissions?.update:P9t(e)?e.source===mO.custom&&!e?.has_theme_file&&e.permissions?.update:e.type===IZ.user&&e.permissions?.update:e.permissions?.update},RenderModal:({items:e,closeModal:t,onActionPerformed:n})=>{const[o]=e,[r,s]=O.useState(()=>Nr(o)),{editEntityRecord:i,saveEditedEntityRecord:c}=ae(ce),{createSuccessNotice:l,createErrorNotice:u}=ae(Ze);async function d(p){p.preventDefault();try{await i("postType",o.type,o.id,{title:r}),s(""),t?.(),await c("postType",o.type,o.id,{throwOnError:!0}),l(m("Name updated"),{type:"snackbar"}),n?.(e)}catch(f){const b=f,h=b.message&&b.code!=="unknown_error"?b.message:m("An error occurred while updating the name");u(h,{type:"snackbar"})}}return a.jsx("form",{onSubmit:d,children:a.jsxs(Ye,{spacing:"5",children:[a.jsx($t,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:m("Name"),value:r,onChange:s,required:!0}),a.jsxs(Je,{justify:"right",children:[a.jsx(fe,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{t?.()},children:m("Cancel")}),a.jsx(fe,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:m("Save")})]})]})})}};function bIt(e,t,n){return n==="asc"?e-t:t-e}function hIt(e,t){return!(e===""||!Number.isInteger(Number(e))||t?.elements&&!(t?.elements.map(o=>o.value)).includes(Number(e)))}const mIt={sort:bIt,isValid:hIt,Edit:"integer"};function MIt(e,t,n){return n==="asc"?e.localeCompare(t):t.localeCompare(e)}function gIt(e,t){return!(t?.elements&&!(t?.elements?.map(o=>o.value)).includes(e))}const zIt={sort:MIt,isValid:gIt,Edit:"text"};function OIt(e,t,n){const o=new Date(e).getTime(),r=new Date(t).getTime();return n==="asc"?o-r:r-o}function AIt(e,t){return!(t?.elements&&!(t?.elements.map(o=>o.value)).includes(e))}const yIt={sort:OIt,isValid:AIt,Edit:"datetime"};function vIt(e){return e==="integer"?mIt:e==="text"?zIt:e==="datetime"?yIt:{sort:(t,n,o)=>typeof t=="number"&&typeof n=="number"?o==="asc"?t-n:n-t:o==="asc"?t.localeCompare(n):n.localeCompare(t),isValid:(t,n)=>!(n?.elements&&!(n?.elements?.map(r=>r.value)).includes(t)),Edit:()=>null}}function xIt({data:e,field:t,onChange:n,hideLabelFromVision:o}){const{id:r,label:s}=t,i=t.getValue({item:e}),c=O.useCallback(l=>n({[r]:l}),[r,n]);return a.jsxs("fieldset",{className:"dataviews-controls__datetime",children:[!o&&a.jsx(z0.VisualLabel,{as:"legend",children:s}),o&&a.jsx(Kt,{as:"legend",children:s}),a.jsx(F3,{currentTime:i,onChange:c,hideLabelFromVision:!0})]})}function _It({data:e,field:t,onChange:n,hideLabelFromVision:o}){var r;const{id:s,label:i,description:c}=t,l=(r=t.getValue({item:e}))!==null&&r!==void 0?r:"",u=O.useCallback(d=>n({[s]:Number(d)}),[s,n]);return a.jsx(T1,{label:i,help:c,value:l,onChange:u,__next40pxDefaultSize:!0,hideLabelFromVision:o})}function wIt({data:e,field:t,onChange:n,hideLabelFromVision:o}){const{id:r,label:s}=t,i=t.getValue({item:e}),c=O.useCallback(l=>n({[r]:l}),[r,n]);return t.elements?a.jsx(kf,{label:s,onChange:c,options:t.elements,selected:i,hideLabelFromVision:o}):null}function kIt({data:e,field:t,onChange:n,hideLabelFromVision:o}){var r,s;const{id:i,label:c}=t,l=(r=t.getValue({item:e}))!==null&&r!==void 0?r:"",u=O.useCallback(p=>n({[i]:p}),[i,n]),d=[{label:m("Select item"),value:""},...(s=t?.elements)!==null&&s!==void 0?s:[]];return a.jsx(i0,{label:c,value:l,options:d,onChange:u,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,hideLabelFromVision:o})}function qIt({data:e,field:t,onChange:n,hideLabelFromVision:o}){const{id:r,label:s,placeholder:i}=t,c=t.getValue({item:e}),l=O.useCallback(u=>n({[r]:u}),[r,n]);return a.jsx($t,{label:s,placeholder:i,value:c??"",onChange:l,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,hideLabelFromVision:o})}const DZ={datetime:xIt,integer:_It,radio:wIt,select:kIt,text:qIt};function SIt(e,t){return typeof e.Edit=="function"?e.Edit:typeof e.Edit=="string"?iC(e.Edit):e.elements?iC("select"):typeof t.Edit=="string"?iC(t.Edit):t.Edit}function iC(e){if(Object.keys(DZ).includes(e))return DZ[e];throw"Control "+e+" not found"}function i9(e){return e.map(t=>{var n,o,r,s;const i=vIt(t.type),c=t.getValue||(({item:b})=>b[t.id]),l=(n=t.sort)!==null&&n!==void 0?n:function(h,g,z){return i.sort(c({item:h}),c({item:g}),z)},u=(o=t.isValid)!==null&&o!==void 0?o:function(h,g){return i.isValid(c({item:h}),g)},d=SIt(t,i),p=({item:b})=>{const h=c({item:b});return t?.elements?.find(g=>g.value===h)?.label||c({item:b})},f=t.render||(t.elements?p:c);return{...t,label:t.label||t.id,header:t.header||t.label||t.id,getValue:c,render:f,sort:l,isValid:u,Edit:d,enableHiding:(r=t.enableHiding)!==null&&r!==void 0?r:!0,enableSorting:(s=t.enableSorting)!==null&&s!==void 0?s:!0}})}function CIt({data:e,fields:t,form:n,onChange:o}){const r=O.useMemo(()=>{var s;return i9(((s=n.fields)!==null&&s!==void 0?s:[]).map(i=>t.find(({id:c})=>c===i)).filter(i=>!!i))},[t,n.fields]);return a.jsx(Ye,{spacing:4,children:r.map(s=>a.jsx(s.Edit,{data:e,field:s,onChange:o},s.id))})}function RIt({title:e,onClose:t}){return a.jsx(Ye,{className:"dataforms-layouts-panel__dropdown-header",spacing:4,children:a.jsxs(Je,{alignment:"center",children:[a.jsx(ec,{level:2,size:13,children:e}),a.jsx(or,{}),t&&a.jsx(fe,{__next40pxDefaultSize:!1,className:"dataforms-layouts-panel__dropdown-header-action",label:m("Close"),icon:zl,onClick:t})]})})}function WIt({data:e,field:t,onChange:n}){const[o,r]=O.useState(null),s=O.useMemo(()=>({anchor:o,placement:"left-start",offset:36,shift:!0}),[o]);return a.jsxs(Je,{ref:r,className:"dataforms-layouts-panel__field",children:[a.jsx("div",{className:"dataforms-layouts-panel__field-label",children:t.label}),a.jsx("div",{children:a.jsx(B0,{contentClassName:"dataforms-layouts-panel__field-dropdown",popoverProps:s,focusOnMount:!0,toggleProps:{size:"compact",variant:"tertiary",tooltipPosition:"middle left"},renderToggle:({isOpen:i,onToggle:c})=>a.jsx(fe,{className:"dataforms-layouts-panel__field-control",size:"compact",variant:"tertiary","aria-expanded":i,"aria-label":le(m("Edit %s"),t.label),onClick:c,children:a.jsx(t.render,{item:e})}),renderContent:({onClose:i})=>a.jsxs(a.Fragment,{children:[a.jsx(RIt,{title:t.label,onClose:i}),a.jsx(t.Edit,{data:e,field:t,onChange:n,hideLabelFromVision:!0},t.id)]})})})]})}function TIt({data:e,fields:t,form:n,onChange:o}){const r=O.useMemo(()=>{var s;return i9(((s=n.fields)!==null&&s!==void 0?s:[]).map(i=>t.find(({id:c})=>c===i)).filter(i=>!!i))},[t,n.fields]);return a.jsx(Ye,{spacing:2,children:r.map(s=>a.jsx(WIt,{data:e,field:s,onChange:o},s.id))})}const EIt=[{type:"regular",component:CIt},{type:"panel",component:TIt}];function BIt(e){return EIt.find(t=>t.type===e)}function Dze({form:e,...t}){var n;const o=BIt((n=e.type)!==null&&n!==void 0?n:"regular");return o?a.jsx(o.component,{form:e,...t}):null}function FZ(e,t,n){return i9(t.filter(({id:r})=>!!n.fields?.includes(r))).every(r=>r.isValid(e,{elements:r.elements}))}const NIt={type:"text",id:"title",label:m("Title"),placeholder:m("No title"),getValue:({item:e})=>Nr(e)},LIt={type:"integer",id:"menu_order",label:m("Order"),description:m("Determines the order of pages.")},aC=[LIt],cC={fields:["menu_order"]};function jIt({items:e,closeModal:t,onActionPerformed:n}){const[o,r]=O.useState(e[0]),s=o.menu_order,{editEntityRecord:i,saveEditedEntityRecord:c}=ae(ce),{createSuccessNotice:l,createErrorNotice:u}=ae(Ze);async function d(f){if(f.preventDefault(),!!FZ(o,aC,cC))try{await i("postType",o.type,o.id,{menu_order:s}),t?.(),await c("postType",o.type,o.id,{throwOnError:!0}),l(m("Order updated."),{type:"snackbar"}),n?.(e)}catch(b){const h=b,g=h.message&&h.code!=="unknown_error"?h.message:m("An error occurred while updating the order");u(g,{type:"snackbar"})}}const p=!FZ(o,aC,cC);return a.jsx("form",{onSubmit:d,children:a.jsxs(Ye,{spacing:"5",children:[a.jsx("div",{children:m("Determines the order of pages. Pages with the same order value are sorted alphabetically. Negative order values are supported.")}),a.jsx(Dze,{data:o,fields:aC,form:cC,onChange:f=>r({...o,...f})}),a.jsxs(Je,{justify:"right",children:[a.jsx(fe,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{t?.()},children:m("Cancel")}),a.jsx(fe,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",accessibleWhenDisabled:!0,disabled:p,children:m("Save")})]})]})})}const PIt={id:"order-pages",label:m("Order"),isEligible({status:e}){return e!=="trash"},RenderModal:jIt},IIt={id:"restore",label:m("Restore"),isPrimary:!0,icon:$ce,supportsBulk:!0,isEligible(e){return!MO(e)&&e.type!=="wp_block"&&e.status==="trash"&&e.permissions?.update},async callback(e,{registry:t,onActionPerformed:n}){const{createSuccessNotice:o,createErrorNotice:r}=t.dispatch(Ze),{editEntityRecord:s,saveEditedEntityRecord:i}=t.dispatch(ce);await Promise.allSettled(e.map(l=>s("postType",l.type,l.id,{status:"draft"})));const c=await Promise.allSettled(e.map(l=>i("postType",l.type,l.id,{throwOnError:!0})));if(c.every(({status:l})=>l==="fulfilled")){let l;e.length===1?l=le(m('"%s" has been restored.'),Nr(e[0])):e[0].type==="page"?l=le(m("%d pages have been restored."),e.length):l=le(m("%d posts have been restored."),e.length),o(l,{type:"snackbar",id:"restore-post-action"}),n&&n(e)}else{let l;if(c.length===1){const u=c[0];u.reason?.message?l=u.reason.message:l=m("An error occurred while restoring the post.")}else{const u=new Set,d=c.filter(({status:p})=>p==="rejected");for(const p of d){const f=p;f.reason?.message&&u.add(f.reason.message)}u.size===0?l=m("An error occurred while restoring the posts."):u.size===1?l=le(m("An error occurred while restoring the posts: %s"),[...u][0]):l=le(m("Some errors occurred while restoring the posts: %s"),[...u].join(","))}r(l,{type:"snackbar"})}}},DIt=[NIt],FIt={fields:["title"]},$It={id:"duplicate-post",label:Oe("Duplicate","action label"),isEligible({status:e}){return e!=="trash"},RenderModal:({items:e,closeModal:t,onActionPerformed:n})=>{const[o,r]=O.useState({...e[0],title:le(m("%s (Copy)"),Nr(e[0]))}),[s,i]=O.useState(!1),{saveEntityRecord:c}=ae(ce),{createSuccessNotice:l,createErrorNotice:u}=ae(Ze);async function d(p){if(p.preventDefault(),s)return;const f={status:"draft",title:o.title,slug:o.title||m("No title"),comment_status:o.comment_status,content:typeof o.content=="string"?o.content:o.content.raw,excerpt:typeof o.excerpt=="string"?o.excerpt:o.excerpt?.raw,meta:o.meta,parent:o.parent,password:o.password,template:o.template,format:o.format,featured_media:o.featured_media,menu_order:o.menu_order,ping_status:o.ping_status},b="wp:action-assign-";Object.keys(o?._links||{}).filter(g=>g.startsWith(b)).map(g=>g.slice(b.length)).forEach(g=>{o.hasOwnProperty(g)&&(f[g]=o[g])}),i(!0);try{const g=await c("postType",o.type,f,{throwOnError:!0});l(le(m('"%s" successfully created.'),kt(g.title?.rendered||o.title)),{id:"duplicate-post-action",type:"snackbar"}),n&&n([g])}catch(g){const z=g,y=z.message&&z.code!=="unknown_error"?z.message:m("An error occurred while duplicating the page.");u(y,{type:"snackbar"})}finally{i(!1),t?.()}}return a.jsx("form",{onSubmit:d,children:a.jsxs(Ye,{spacing:3,children:[a.jsx(Dze,{data:o,fields:DIt,form:FIt,onChange:p=>r(f=>({...f,...p}))}),a.jsxs(Je,{spacing:2,justify:"end",children:[a.jsx(fe,{variant:"tertiary",onClick:t,__next40pxDefaultSize:!0,children:m("Cancel")}),a.jsx(fe,{variant:"primary",type:"submit",isBusy:s,"aria-disabled":s,__next40pxDefaultSize:!0,children:Oe("Duplicate","action label")})]})]})})}},VIt={id:"view-post-revisions",context:"list",label(e){var t;const n=(t=e[0]._links?.["version-history"]?.[0]?.count)!==null&&t!==void 0?t:0;return le(m("View revisions (%s)"),n)},isEligible(e){var t,n;if(e.status==="trash")return!1;const o=(t=e?._links?.["predecessor-version"]?.[0]?.id)!==null&&t!==void 0?t:null,r=(n=e?._links?.["version-history"]?.[0]?.count)!==null&&n!==void 0?n:0;return!!o&&r>1},callback(e,{onActionPerformed:t}){const n=e[0],o=wt("revision.php",{revision:n?._links?.["predecessor-version"]?.[0]?.id});document.location.href=o,t&&t(e)}},HIt={id:"view-post",label:Oe("View","verb"),isPrimary:!0,icon:Pp,isEligible(e){return e.status!=="trash"},callback(e,{onActionPerformed:t}){const n=e[0];window.open(n?.link,"_blank"),t&&t(e)}};function UIt(e,t,n){return{type:"REGISTER_ENTITY_ACTION",kind:e,name:t,config:n}}function XIt(e,t,n){return{type:"UNREGISTER_ENTITY_ACTION",kind:e,name:t,actionId:n}}function GIt(e,t){return{type:"SET_IS_READY",kind:e,name:t}}const KIt=e=>async({registry:t})=>{if(gt(t.select(ue)).isEntityReady("postType",e))return;gt(t.dispatch(ue)).setIsReady("postType",e);const o=await t.resolveSelect(ce).getPostType(e),r=await t.resolveSelect(ce).canUser("create",{kind:"postType",name:e}),s=await t.resolveSelect(ce).getCurrentTheme(),i=[o.viewable?HIt:void 0,o?.supports?.revisions?VIt:void 0,globalThis.IS_GUTENBERG_PLUGIN?!["wp_template","wp_block","wp_template_part"].includes(o.slug)&&r&&$It:void 0,o.slug==="wp_template_part"&&r&&s?.is_block_theme?K9t:void 0,r&&o.slug==="wp_block"?H9t:void 0,o.supports?.title?fIt:void 0,o?.supports?.["page-attributes"]?PIt:void 0,o.slug==="wp_block"?lIt:void 0,uIt,IIt,F9t,dIt,pIt];t.batch(()=>{i.forEach(c=>{c&>(t.dispatch(ue)).registerEntityAction("postType",e,c)})}),B0e("core.registerPostTypeActions",e)};function YIt(e){return{type:"SET_CURRENT_TEMPLATE_ID",id:e}}const ZIt=e=>async({select:t,dispatch:n,registry:o})=>{const r=await o.dispatch(ce).saveEntityRecord("postType","wp_template",e);return o.dispatch(ce).editEntityRecord("postType",t.getCurrentPostType(),t.getCurrentPostId(),{template:r.slug}),o.dispatch(Ze).createSuccessNotice(m("Custom template created. You're in template mode now."),{type:"snackbar",actions:[{label:m("Go back"),onClick:()=>n.setRenderingMode(t.getEditorSettings().defaultRenderingMode)}]}),r},QIt=e=>({registry:t})=>{var n;const r=((n=t.select(Qe).get("core","hiddenBlockTypes"))!==null&&n!==void 0?n:[]).filter(s=>!(Array.isArray(e)?e:[e]).includes(s));t.dispatch(Qe).set("core","hiddenBlockTypes",r)},JIt=e=>({registry:t})=>{var n;const o=(n=t.select(Qe).get("core","hiddenBlockTypes"))!==null&&n!==void 0?n:[],r=new Set([...o,...Array.isArray(e)?e:[e]]);t.dispatch(Qe).set("core","hiddenBlockTypes",[...r])},eDt=({onSave:e,dirtyEntityRecords:t=[],entitiesToSkip:n=[],close:o}={})=>({registry:r})=>{const s=[{kind:"postType",name:"wp_navigation"}],i="site-editor-save-success",c=r.select(ce).getEntityRecord("root","__unstableBase")?.home;r.dispatch(Ze).removeNotice(i);const l=t.filter(({kind:p,name:f,key:b,property:h})=>!n.some(g=>g.kind===p&&g.name===f&&g.key===b&&g.property===h));o?.(l);const u=[],d=[];l.forEach(({kind:p,name:f,key:b,property:h})=>{p==="root"&&f==="site"?u.push(h):(s.some(g=>g.kind===p&&g.name===f)&&r.dispatch(ce).editEntityRecord(p,f,b,{status:"publish"}),d.push(r.dispatch(ce).saveEditedEntityRecord(p,f,b)))}),u.length&&d.push(r.dispatch(ce).__experimentalSaveSpecifiedEntityEdits("root","site",void 0,u)),r.dispatch(F).__unstableMarkLastChangeAsPersistent(),Promise.all(d).then(p=>e?e(p):p).then(p=>{p.some(f=>typeof f>"u")?r.dispatch(Ze).createErrorNotice(m("Saving failed.")):r.dispatch(Ze).createSuccessNotice(m("Site updated."),{type:"snackbar",id:i,actions:[{label:m("View site"),url:c}]})}).catch(p=>r.dispatch(Ze).createErrorNotice(`${m("Saving failed.")} ${p}`))},tDt=(e,{allowUndo:t=!0}={})=>async({registry:n})=>{const o="edit-site-template-reverted";if(n.dispatch(Ze).removeNotice(o),!r9t(e)){n.dispatch(Ze).createErrorNotice(m("This template is not revertable."),{type:"snackbar"});return}try{const r=n.select(ce).getEntityConfig("postType",e.type);if(!r){n.dispatch(Ze).createErrorNotice(m("The editor has encountered an unexpected error. Please reload."),{type:"snackbar"});return}const s=wt(`${r.baseURL}/${e.id}`,{context:"edit",source:e.origin}),i=await ct({path:s});if(!i){n.dispatch(Ze).createErrorNotice(m("The editor has encountered an unexpected error. Please reload."),{type:"snackbar"});return}const c=({blocks:d=[]})=>pd(d),l=n.select(ce).getEditedEntityRecord("postType",e.type,e.id);n.dispatch(ce).editEntityRecord("postType",e.type,e.id,{content:c,blocks:l.blocks,source:"custom"},{undoIgnore:!0});const u=Yn(i?.content?.raw);if(n.dispatch(ce).editEntityRecord("postType",e.type,i.id,{content:c,blocks:u,source:"theme"}),t){const d=()=>{n.dispatch(ce).editEntityRecord("postType",e.type,l.id,{content:c,blocks:l.blocks,source:"custom"})};n.dispatch(Ze).createSuccessNotice(m("Template reset."),{type:"snackbar",id:o,actions:[{label:m("Undo"),onClick:d}]})}}catch(r){const s=r.message&&r.code!=="unknown_error"?r.message:m("Template revert failed. Please reload.");n.dispatch(Ze).createErrorNotice(s,{type:"snackbar"})}},nDt=e=>async({registry:t})=>{const n=e.every(r=>r?.has_theme_file),o=await Promise.allSettled(e.map(r=>t.dispatch(ce).deleteEntityRecord("postType",r.type,r.id,{force:!0},{throwOnError:!0})));if(o.every(({status:r})=>r==="fulfilled")){let r;if(e.length===1){let s;typeof e[0].title=="string"?s=e[0].title:typeof e[0].title?.rendered=="string"?s=e[0].title?.rendered:typeof e[0].title?.raw=="string"&&(s=e[0].title?.raw),r=le(m(n?'"%s" reset.':'"%s" deleted.'),kt(s))}else r=m(n?"Items reset.":"Items deleted.");t.dispatch(Ze).createSuccessNotice(r,{type:"snackbar",id:"editor-template-deleted-success"})}else{let r;if(o.length===1)o[0].reason?.message?r=o[0].reason.message:r=m(n?"An error occurred while reverting the item.":"An error occurred while deleting the item.");else{const s=new Set,i=o.filter(({status:c})=>c==="rejected");for(const c of i)c.reason?.message&&s.add(c.reason.message);s.size===0?r=m("An error occurred while deleting the items."):s.size===1?r=n?le(m("An error occurred while reverting the items: %s"),[...s][0]):le(m("An error occurred while deleting the items: %s"),[...s][0]):r=n?le(m("Some errors occurred while reverting the items: %s"),[...s].join(",")):le(m("Some errors occurred while deleting the items: %s"),[...s].join(","))}t.dispatch(Ze).createErrorNotice(r,{type:"snackbar"})}},oDt=Object.freeze(Object.defineProperty({__proto__:null,createTemplate:ZIt,hideBlockTypes:JIt,registerEntityAction:UIt,registerPostTypeActions:KIt,removeTemplates:nDt,revertTemplate:tDt,saveDirtyEntities:eDt,setCurrentTemplateId:YIt,setIsReady:GIt,showBlockTypes:QIt,unregisterEntityAction:XIt},Symbol.toStringTag,{value:"Module"})),rDt=[];function sDt(e,t,n){var o;return(o=e.actions[t]?.[n])!==null&&o!==void 0?o:rDt}function iDt(e,t,n){return e.isReady[t]?.[n]}const aDt={rootClientId:void 0,insertionIndex:void 0,filterValue:void 0},cDt=nt(e=>at(t=>{if(typeof t.blockInserterPanel=="object")return t.blockInserterPanel;if(UT(t)==="template-locked"){const[n]=e(F).getBlocksByName("core/post-content");if(n)return{rootClientId:n,insertionIndex:void 0,filterValue:void 0}}return aDt},t=>{const[n]=e(F).getBlocksByName("core/post-content");return[t.blockInserterPanel,UT(t),n]}));function lDt(e){return e.listViewToggleRef}function uDt(e){return e.inserterSidebarToggleRef}const $Z={wp_block:Gu,wp_navigation:S3,page:Ja,post:ow},dDt=nt(e=>(t,n,o)=>{{if(n==="wp_template_part"||n==="wp_template")return L5(t).find(s=>o.area===s.area)?.icon||Af;if($Z[n])return $Z[n];const r=e(ce).getPostType(n);return typeof r?.icon=="string"&&r.icon.startsWith("dashicons-")?r.icon.slice(10):Ja}}),pDt=nt(e=>(t,n,o)=>{const{type:r,id:s}=ur(t),i=e(ce).getEntityRecordNonTransientEdits("postType",n||r,o||s);if(!i?.meta)return!1;const c=e(ce).getEntityRecord("postType",n||r,o||s)?.meta;return!oMe({...c,footnotes:void 0},{...i.meta,footnotes:void 0})});function fDt(e,...t){return sDt(e.dataviews,...t)}function bDt(e,...t){return iDt(e.dataviews,...t)}const hDt=nt(e=>at((t,n)=>{n=Array.isArray(n)?n:[n];const{getBlocksByName:o,getBlockParents:r,getBlockName:s}=e(F);return o(n).filter(i=>r(i).every(c=>{const l=s(c);return l!=="core/query"&&!n.includes(l)}))},()=>[e(F).getBlocks()])),mDt=Object.freeze(Object.defineProperty({__proto__:null,getEntityActions:fDt,getInserterSidebarToggleRef:uDt,getInsertionPoint:cDt,getListViewToggleRef:lDt,getPostBlocksByName:hDt,getPostIcon:dDt,hasPostMetaChanges:pDt,isEntityReady:bDt},Symbol.toStringTag,{value:"Module"})),Fze={reducer:DLt,selectors:Pjt,actions:o9t},ue=er($Lt,{...Fze});Qs(ue);gt(ue).registerPrivateActions(oDt);gt(ue).registerPrivateSelectors(mDt);const MDt=e=>Sn(t=>({attributes:n,setAttributes:o,...r})=>{const s=D(u=>u(ue).getCurrentPostType(),[]),[i,c]=Z0("postType",s,"meta"),l=O.useMemo(()=>({...n,...Object.fromEntries(Object.entries(e).map(([u,d])=>[u,i[d]]))}),[n,i]);return a.jsx(t,{attributes:l,setAttributes:u=>{const d=Object.fromEntries(Object.entries(u??{}).filter(([p])=>p in e).map(([p,f])=>[e[p],f]));Object.entries(d).length&&c(d),o(u)},...r})},"withMetaAttributeSource");function gDt(e){var t;const n=Object.fromEntries(Object.entries((t=e.attributes)!==null&&t!==void 0?t:{}).filter(([,{source:o}])=>o==="meta").map(([o,{meta:r}])=>[o,r]));return Object.entries(n).length&&(e.edit=MDt(n)(e.edit)),e}r0("blocks.registerBlockType","core/editor/custom-sources-backwards-compatibility/shim-attribute-source",gDt);function zDt(e={},t){switch(t.type){case"SET_IS_MATCHING":return t.values}return e}function ODt(e){return{type:"SET_IS_MATCHING",values:e}}const ADt=Object.freeze(Object.defineProperty({__proto__:null,setIsMatching:ODt},Symbol.toStringTag,{value:"Module"}));function yDt(e,t){return t.indexOf(" ")===-1&&(t=">= "+t),!!e[t]}const vDt=Object.freeze(Object.defineProperty({__proto__:null,isViewportMatch:yDt},Symbol.toStringTag,{value:"Module"})),xDt="core/viewport",j5=er(xDt,{reducer:zDt,actions:ADt,selectors:vDt});Qs(j5);const _Dt=(e,t)=>{const n=jr(()=>{const s=Object.fromEntries(r.map(([i,c])=>[i,c.matches]));tr(j5).setIsMatching(s)},0,{leading:!0}),o=Object.entries(t),r=Object.entries(e).flatMap(([s,i])=>o.map(([c,l])=>{const u=window.matchMedia(`(${l}: ${i}px)`);return u.addEventListener("change",n),[`${c} ${s}`,u]}));window.addEventListener("orientationchange",n),n(),n.flush()},wDt={huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},kDt={"<":"max-width",">=":"min-width"};_Dt(wDt,kDt);function _d(e){return["core/edit-post","core/edit-site"].includes(e)?(Re(`${e} interface scope`,{alternative:"core interface scope",hint:"core/edit-post and core/edit-site are merging.",version:"6.6"}),"core"):e}function gO(e,t){return e==="core"&&t==="edit-site/template"?(Re("edit-site/template sidebar",{alternative:"edit-post/document",version:"6.6"}),"edit-post/document"):e==="core"&&t==="edit-site/block-inspector"?(Re("edit-site/block-inspector sidebar",{alternative:"edit-post/block",version:"6.6"}),"edit-post/block"):t}const qDt=(e,t)=>(e=_d(e),t=gO(e,t),{type:"SET_DEFAULT_COMPLEMENTARY_AREA",scope:e,area:t}),SDt=(e,t)=>({registry:n,dispatch:o})=>{if(!t)return;e=_d(e),t=gO(e,t),n.select(Qe).get(e,"isComplementaryAreaVisible")||n.dispatch(Qe).set(e,"isComplementaryAreaVisible",!0),o({type:"ENABLE_COMPLEMENTARY_AREA",scope:e,area:t})},CDt=e=>({registry:t})=>{e=_d(e),t.select(Qe).get(e,"isComplementaryAreaVisible")&&t.dispatch(Qe).set(e,"isComplementaryAreaVisible",!1)},RDt=(e,t)=>({registry:n})=>{if(!t)return;e=_d(e),t=gO(e,t);const o=n.select(Qe).get(e,"pinnedItems");o?.[t]!==!0&&n.dispatch(Qe).set(e,"pinnedItems",{...o,[t]:!0})},WDt=(e,t)=>({registry:n})=>{if(!t)return;e=_d(e),t=gO(e,t);const o=n.select(Qe).get(e,"pinnedItems");n.dispatch(Qe).set(e,"pinnedItems",{...o,[t]:!1})};function TDt(e,t){return function({registry:n}){Re("dispatch( 'core/interface' ).toggleFeature",{since:"6.0",alternative:"dispatch( 'core/preferences' ).toggle"}),n.dispatch(Qe).toggle(e,t)}}function EDt(e,t,n){return function({registry:o}){Re("dispatch( 'core/interface' ).setFeatureValue",{since:"6.0",alternative:"dispatch( 'core/preferences' ).set"}),o.dispatch(Qe).set(e,t,!!n)}}function BDt(e,t){return function({registry:n}){Re("dispatch( 'core/interface' ).setFeatureDefaults",{since:"6.0",alternative:"dispatch( 'core/preferences' ).setDefaults"}),n.dispatch(Qe).setDefaults(e,t)}}function NDt(e){return{type:"OPEN_MODAL",name:e}}function LDt(){return{type:"CLOSE_MODAL"}}const jDt=Object.freeze(Object.defineProperty({__proto__:null,closeModal:LDt,disableComplementaryArea:CDt,enableComplementaryArea:SDt,openModal:NDt,pinItem:RDt,setDefaultComplementaryArea:qDt,setFeatureDefaults:BDt,setFeatureValue:EDt,toggleFeature:TDt,unpinItem:WDt},Symbol.toStringTag,{value:"Module"})),PDt=nt(e=>(t,n)=>{n=_d(n);const o=e(Qe).get(n,"isComplementaryAreaVisible");if(o!==void 0)return o===!1?null:t?.complementaryAreas?.[n]}),IDt=nt(e=>(t,n)=>{n=_d(n);const o=e(Qe).get(n,"isComplementaryAreaVisible"),r=t?.complementaryAreas?.[n];return o&&r===void 0}),DDt=nt(e=>(t,n,o)=>{var r;return n=_d(n),o=gO(n,o),(r=e(Qe).get(n,"pinnedItems")?.[o])!==null&&r!==void 0?r:!0}),FDt=nt(e=>(t,n,o)=>(Re("select( 'core/interface' ).isFeatureActive( scope, featureName )",{since:"6.0",alternative:"select( 'core/preferences' ).get( scope, featureName )"}),!!e(Qe).get(n,o)));function $Dt(e,t){return e.activeModal===t}const VDt=Object.freeze(Object.defineProperty({__proto__:null,getActiveComplementaryArea:PDt,isComplementaryAreaLoading:IDt,isFeatureActive:FDt,isItemPinned:DDt,isModalActive:$Dt},Symbol.toStringTag,{value:"Module"}));function HDt(e={},t){switch(t.type){case"SET_DEFAULT_COMPLEMENTARY_AREA":{const{scope:n,area:o}=t;return e[n]?e:{...e,[n]:o}}case"ENABLE_COMPLEMENTARY_AREA":{const{scope:n,area:o}=t;return{...e,[n]:o}}}return e}function UDt(e=null,t){switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e}const XDt=zo({complementaryAreas:HDt,activeModal:UDt}),GDt="core/interface",sn=er(GDt,{reducer:XDt,actions:jDt,selectors:VDt});Qs(sn);const a9=O.createContext({name:null,icon:null});a9.Provider;function c9(){return O.useContext(a9)}const KDt=e=>Sn(t=>n=>a.jsx(a9.Consumer,{children:o=>a.jsx(t,{...n,...e(o,n)})}),"withPluginContext");fs((e,t)=>({icon:e,name:t}));const $ze=KDt((e,t)=>({icon:t.icon||e.icon,identifier:t.identifier||`${e.name}/${t.name}`}));function YDt({as:e=fe,scope:t,identifier:n,icon:o,selectedIcon:r,name:s,...i}){const c=e,l=D(p=>p(sn).getActiveComplementaryArea(t)===n,[n,t]),{enableComplementaryArea:u,disableComplementaryArea:d}=ae(sn);return a.jsx(c,{icon:r&&l?r:o,"aria-controls":n.replace("/",":"),onClick:()=>{l?d(t):u(t,n)},...i})}const l9=$ze(YDt),ZDt=({smallScreenTitle:e,children:t,className:n,toggleButtonProps:o})=>{const r=a.jsx(l9,{icon:zl,...o});return a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"components-panel__header interface-complementary-area-header__small",children:[e&&a.jsx("h2",{className:"interface-complementary-area-header__small-title",children:e}),r]}),a.jsxs("div",{className:$("components-panel__header","interface-complementary-area-header",n),tabIndex:-1,children:[t,r]})]})},VZ=()=>{};function QDt({name:e,as:t=Bh,fillProps:n={},bubblesVirtually:o,...r}){return a.jsx(Dp,{name:e,bubblesVirtually:o,fillProps:n,children:s=>{if(!O.Children.toArray(s).length)return null;const i=[];O.Children.forEach(s,({props:{__unstableExplicitMenuItem:l,__unstableTarget:u}})=>{u&&l&&i.push(u)});const c=O.Children.map(s,l=>!l.props.__unstableExplicitMenuItem&&i.includes(l.props.__unstableTarget)?null:l);return a.jsx(t,{...r,children:c})}})}function zO({name:e,as:t=fe,onClick:n,...o}){return a.jsx(Th,{name:e,children:({onClick:r})=>a.jsx(t,{onClick:n||r?(...s)=>{(n||VZ)(...s),(r||VZ)(...s)}:void 0,...o})})}zO.Slot=QDt;const JDt=({__unstableExplicitMenuItem:e,__unstableTarget:t,...n})=>a.jsx(tt,{...n});function Vze({scope:e,target:t,__unstableExplicitMenuItem:n,...o}){return a.jsx(l9,{as:r=>a.jsx(zO,{__unstableExplicitMenuItem:n,__unstableTarget:`${e}/${t}`,as:JDt,name:`${e}/plugin-more-menu`,...r}),role:"menuitemcheckbox",selectedIcon:no,name:t,scope:e,...o})}function Ik({scope:e,...t}){return a.jsx(Th,{name:`PinnedItems/${e}`,...t})}function eFt({scope:e,className:t,...n}){return a.jsx(Dp,{name:`PinnedItems/${e}`,...n,children:o=>o?.length>0&&a.jsx("div",{className:$(t,"interface-pinned-items"),children:o})})}Ik.Slot=eFt;const tFt=.3;function nFt({scope:e,...t}){return a.jsx(Dp,{name:`ComplementaryArea/${e}`,...t})}const Hze=280,oFt={open:{width:Hze},closed:{width:0},mobileOpen:{width:"100vw"}};function rFt({activeArea:e,isActive:t,scope:n,children:o,className:r,id:s}){const i=Zs(),c=g0("medium","<"),l=t1(e),u=t1(t),[,d]=O.useState({});O.useEffect(()=>{d({})},[t]);const p={type:"tween",duration:i||c||l&&e&&e!==l?0:tFt,ease:[.6,0,.4,1]};return a.jsx(Th,{name:`ComplementaryArea/${n}`,children:a.jsx(Lp,{initial:!1,children:(u||t)&&a.jsx(Hn.div,{variants:oFt,initial:"closed",animate:c?"mobileOpen":"open",exit:"closed",transition:p,className:"interface-complementary-area__fill",children:a.jsx("div",{id:s,className:r,style:{width:c?"100vw":Hze},children:o})})})})}function sFt(e,t,n,o,r){const s=O.useRef(!1),i=O.useRef(!1),{enableComplementaryArea:c,disableComplementaryArea:l}=ae(sn);O.useEffect(()=>{o&&r&&!s.current?(l(e),i.current=!0):i.current&&!r&&s.current?(i.current=!1,c(e,t)):i.current&&n&&n!==t&&(i.current=!1),r!==s.current&&(s.current=r)},[o,r,e,t,n,l,c])}function iFt({children:e,className:t,closeLabel:n=m("Close plugin"),identifier:o,header:r,headerClassName:s,icon:i,isPinnable:c=!0,panelClassName:l,scope:u,name:d,smallScreenTitle:p,title:f,toggleShortcut:b,isActiveByDefault:h}){const[g,z]=O.useState(!1),{isLoading:y,isActive:x,isPinned:v,activeArea:M,isSmall:A,isLarge:_,showIconLabels:w}=D(T=>{const{getActiveComplementaryArea:W,isComplementaryAreaLoading:B,isItemPinned:N}=T(sn),{get:E}=T(Qe),L=W(u);return{isLoading:B(u),isActive:L===o,isPinned:N(u,o),activeArea:L,isSmall:T(j5).isViewportMatch("< medium"),isLarge:T(j5).isViewportMatch("large"),showIconLabels:E("core","showIconLabels")}},[o,u]);sFt(u,o,M,x,A);const{enableComplementaryArea:k,disableComplementaryArea:q,pinItem:S,unpinItem:C}=ae(sn);if(O.useEffect(()=>{h&&M===void 0&&!A?k(u,o):M===void 0&&A&&q(u,o),z(!0)},[M,h,u,o,A,k,q]),!!g)return a.jsxs(a.Fragment,{children:[c&&a.jsx(Ik,{scope:u,children:v&&a.jsx(l9,{scope:u,identifier:o,isPressed:x&&(!w||_),"aria-expanded":x,"aria-disabled":y,label:f,icon:w?no:i,showTooltip:!w,variant:w?"tertiary":void 0,size:"compact"})}),d&&c&&a.jsx(Vze,{target:d,scope:u,icon:i,children:f}),a.jsxs(rFt,{activeArea:M,isActive:x,className:$("interface-complementary-area",t),scope:u,id:o.replace("/",":"),children:[a.jsx(ZDt,{className:s,closeLabel:n,onClose:()=>q(u),smallScreenTitle:p,toggleButtonProps:{label:n,size:"small",shortcut:b,scope:u,identifier:o},children:r||a.jsxs(a.Fragment,{children:[a.jsx("h2",{className:"interface-complementary-area-header__title",children:f}),c&&a.jsx(fe,{className:"interface-complementary-area__pin-unpin-item",icon:v?$Ze:FZe,label:m(v?"Unpin from toolbar":"Pin to toolbar"),onClick:()=>(v?C:S)(u,o),isPressed:v,"aria-expanded":v,size:"compact"})]})}),a.jsx(Jft,{className:l,children:e})]})]})}const Dk=$ze(iFt);Dk.Slot=nFt;const aFt=({isActive:e})=>(O.useEffect(()=>{let t=!1;return document.body.classList.contains("sticky-menu")&&(t=!0,document.body.classList.remove("sticky-menu")),()=>{t&&document.body.classList.add("sticky-menu")}},[]),O.useEffect(()=>(e?document.body.classList.add("is-fullscreen-mode"):document.body.classList.remove("is-fullscreen-mode"),()=>{e&&document.body.classList.remove("is-fullscreen-mode")}),[e]),null),cFt=aFt;function $d({children:e,className:t,ariaLabel:n,as:o="div",...r}){return a.jsx(o,{className:$("interface-navigable-region",t),"aria-label":n,role:"region",tabIndex:"-1",...r,children:e})}const Uze=.25,HZ={type:"tween",duration:Uze,ease:[.6,0,.4,1]};function lFt(e){O.useEffect(()=>{const t=document&&document.querySelector(`html:not(.${e})`);if(t)return t.classList.toggle(e),()=>{t.classList.toggle(e)}},[e])}const uFt={hidden:{opacity:1,marginTop:-60},visible:{opacity:1,marginTop:0},distractionFreeHover:{opacity:1,marginTop:0,transition:{...HZ,delay:.2,delayChildren:.2}},distractionFreeHidden:{opacity:0,marginTop:-60},distractionFreeDisabled:{opacity:0,marginTop:0,transition:{...HZ,delay:.8,delayChildren:.8}}};function dFt({isDistractionFree:e,footer:t,header:n,editorNotices:o,sidebar:r,secondarySidebar:s,content:i,actions:c,labels:l,className:u,enableRegionNavigation:d=!0,shortcuts:p},f){const[b,h]=Ci(),g=g0("medium","<"),y={type:"tween",duration:Zs()?0:Uze,ease:[.6,0,.4,1]},x=nht(p);lFt("interface-interface-skeleton__html-container");const M={...{header:Oe("Header","header landmark area"),body:m("Content"),secondarySidebar:m("Block Library"),sidebar:m("Settings"),actions:m("Publish"),footer:m("Footer")},...l};return a.jsxs("div",{...d?x:{},ref:Gt([f,d?x.ref:void 0]),className:$(u,"interface-interface-skeleton",x.className,!!t&&"has-footer"),children:[a.jsxs("div",{className:"interface-interface-skeleton__editor",children:[a.jsx(Lp,{initial:!1,children:!!n&&a.jsx($d,{as:Hn.div,className:"interface-interface-skeleton__header","aria-label":M.header,initial:e&&!g?"distractionFreeHidden":"hidden",whileHover:e&&!g?"distractionFreeHover":"visible",animate:e&&!g?"distractionFreeDisabled":"visible",exit:e&&!g?"distractionFreeHidden":"hidden",variants:uFt,transition:y,children:n})}),e&&a.jsx("div",{className:"interface-interface-skeleton__header",children:o}),a.jsxs("div",{className:"interface-interface-skeleton__body",children:[a.jsx(Lp,{initial:!1,children:!!s&&a.jsx($d,{className:"interface-interface-skeleton__secondary-sidebar",ariaLabel:M.secondarySidebar,as:Hn.div,initial:"closed",animate:"open",exit:"closed",variants:{open:{width:h.width},closed:{width:0}},transition:y,children:a.jsxs(Hn.div,{style:{position:"absolute",width:g?"100vw":"fit-content",height:"100%",left:0},variants:{open:{x:0},closed:{x:"-100%"}},transition:y,children:[b,s]})})}),a.jsx($d,{className:"interface-interface-skeleton__content",ariaLabel:M.body,children:i}),!!r&&a.jsx($d,{className:"interface-interface-skeleton__sidebar",ariaLabel:M.sidebar,children:r}),!!c&&a.jsx($d,{className:"interface-interface-skeleton__actions",ariaLabel:M.actions,children:c})]})]}),!!t&&a.jsx($d,{className:"interface-interface-skeleton__footer",ariaLabel:M.footer,children:t})]})}const Xze=O.forwardRef(dFt),pFt=Object.freeze(Object.defineProperty({__proto__:null,ActionItem:zO,ComplementaryArea:Dk,ComplementaryAreaMoreMenuItem:Vze,FullscreenMode:cFt,InterfaceSkeleton:Xze,NavigableRegion:$d,PinnedItems:Ik,store:sn},Symbol.toStringTag,{value:"Module"}));function fFt(){const e=D(g=>{const{richEditingEnabled:z,codeEditingEnabled:y}=g(ue).getEditorSettings();return!z||!y},[]),{getBlockSelectionStart:t}=D(F),{getActiveComplementaryArea:n}=D(sn),{enableComplementaryArea:o,disableComplementaryArea:r}=ae(sn),{redo:s,undo:i,savePost:c,setIsListViewOpened:l,switchEditorMode:u,toggleDistractionFree:d}=ae(ue),{isEditedPostDirty:p,isPostSavingLocked:f,isListViewOpened:b,getEditorMode:h}=D(ue);return Ur("core/editor/toggle-mode",()=>{u(h()==="visual"?"text":"visual")},{isDisabled:e}),Ur("core/editor/toggle-distraction-free",()=>{d()}),Ur("core/editor/undo",g=>{i(),g.preventDefault()}),Ur("core/editor/redo",g=>{s(),g.preventDefault()}),Ur("core/editor/save",g=>{g.preventDefault(),!f()&&p()&&c()}),Ur("core/editor/toggle-list-view",g=>{b()||(g.preventDefault(),l(!0))}),Ur("core/editor/toggle-sidebar",g=>{if(g.preventDefault(),["edit-post/document","edit-post/block"].includes(n("core")))r("core");else{const y=t()?"edit-post/block":"edit-post/document";o("core",y)}}),null}function bFt(e){const t=e.avatar_urls&&e.avatar_urls[24]?a.jsx("img",{className:"editor-autocompleters__user-avatar",alt:"",src:e.avatar_urls[24]}):a.jsx("span",{className:"editor-autocompleters__no-avatar"});return a.jsxs(a.Fragment,{children:[t,a.jsx("span",{className:"editor-autocompleters__user-name",children:e.name}),a.jsx("span",{className:"editor-autocompleters__user-slug",children:e.slug})]})}const hFt={name:"users",className:"editor-autocompleters__user",triggerPrefix:"@",useItems(e){const t=D(o=>{const{getUsers:r}=o(ce);return r({context:"view",search:encodeURIComponent(e)})},[e]);return[O.useMemo(()=>t?t.map(o=>({key:`user-${o.slug}`,value:o,label:bFt(o)})):[],[t])]},getOptionCompletion(e){return`@${e.slug}`}},UZ={wp_pattern:m("Editing pattern: %s"),wp_navigation:m("Editing navigation menu: %s"),wp_template:m("Editing template: %s"),wp_template_part:m("Editing template part: %s")},mFt=Hn(fe);function MFt(e){const{postType:t,documentTitle:n,isNotFound:o,isUnsyncedPattern:r,templateIcon:s,templateTitle:i,onNavigateToPreviousEntityRecord:c}=D(y=>{const{getCurrentPostType:x,getCurrentPostId:v,getEditorSettings:M,__experimentalGetTemplateInfo:A}=y(ue),{getEditedEntityRecord:_,isResolving:w}=y(ce),k=x(),q=v(),S=_("postType",k,q),C=A(S);return{postType:k,documentTitle:S.title,isNotFound:!S&&!w("getEditedEntityRecord","postType",k,q),isUnsyncedPattern:S?.wp_pattern_sync_status==="unsynced",templateIcon:gt(y(ue)).getPostIcon(k,{area:S?.area}),templateTitle:C.title,onNavigateToPreviousEntityRecord:M().onNavigateToPreviousEntityRecord}},[]),{open:l}=ae(Zp),u=Zs(),d=bze.includes(t),p=hze.includes(t),f=!!c,b=d?i:n,h=e.title||b,g=e.icon||s,z=O.useRef(!1);return O.useEffect(()=>{z.current=!0},[]),a.jsxs("div",{className:$("editor-document-bar",{"has-back-button":f,"is-global":p&&!r}),children:[a.jsx(Lp,{children:f&&a.jsx(mFt,{className:"editor-document-bar__back",icon:ft()?jp:X_,onClick:y=>{y.stopPropagation(),c()},size:"compact",initial:z.current?{opacity:0,transform:"translateX(15%)"}:!1,animate:{opacity:1,transform:"translateX(0%)"},exit:{opacity:0,transform:"translateX(15%)"},transition:u?{duration:0}:void 0,children:m("Back")})}),o?a.jsx(l0,{children:m("Document not found")}):a.jsxs(fe,{className:"editor-document-bar__command",onClick:()=>l(),size:"compact",children:[a.jsxs(Hn.div,{className:"editor-document-bar__title",initial:z.current?{opacity:0,transform:f?"translateX(15%)":"translateX(-15%)"}:!1,animate:{opacity:1,transform:"translateX(0%)"},transition:u?{duration:0}:void 0,children:[a.jsx(b0,{icon:g}),a.jsx(l0,{size:"body",as:"h1","aria-label":!e.title&&UZ[t]?le(UZ[t],h):void 0,children:h?kt(h):m("No title")})]},f),a.jsx("span",{className:"editor-document-bar__shortcut",children:Jo.primary("k")})]})]})}const XZ=({children:e,isValid:t,level:n,href:o,onSelect:r})=>a.jsx("li",{className:$("document-outline__item",`is-${n.toLowerCase()}`,{"is-invalid":!t}),children:a.jsxs("a",{href:o,className:"document-outline__button",onClick:r,children:[a.jsx("span",{className:"document-outline__emdash","aria-hidden":"true"}),a.jsx("strong",{className:"document-outline__level",children:n}),a.jsx("span",{className:"document-outline__item-content",children:e})]})}),gFt=a.jsx("em",{children:m("(Empty heading)")}),zFt=[a.jsx("br",{},"incorrect-break"),a.jsx("em",{children:m("(Incorrect heading level)")},"incorrect-message")],OFt=[a.jsx("br",{},"incorrect-break-h1"),a.jsx("em",{children:m("(Your theme may already use a H1 for the post title)")},"incorrect-message-h1")],AFt=[a.jsx("br",{},"incorrect-break-multiple-h1"),a.jsx("em",{children:m("(Multiple H1 headings are not recommended)")},"incorrect-message-multiple-h1")];function yFt(){return a.jsxs(te,{width:"138",height:"148",viewBox:"0 0 138 148",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx($1,{width:"138",height:"148",rx:"4",fill:"#F0F6FC"}),a.jsx(sA,{x1:"44",y1:"28",x2:"24",y2:"28",stroke:"#DDDDDD"}),a.jsx($1,{x:"48",y:"16",width:"27",height:"23",rx:"4",fill:"#DDDDDD"}),a.jsx(J,{d:"M54.7585 32V23.2727H56.6037V26.8736H60.3494V23.2727H62.1903V32H60.3494V28.3949H56.6037V32H54.7585ZM67.4574 23.2727V32H65.6122V25.0241H65.5611L63.5625 26.277V24.6406L65.723 23.2727H67.4574Z",fill:"black"}),a.jsx(sA,{x1:"55",y1:"59",x2:"24",y2:"59",stroke:"#DDDDDD"}),a.jsx($1,{x:"59",y:"47",width:"29",height:"23",rx:"4",fill:"#DDDDDD"}),a.jsx(J,{d:"M65.7585 63V54.2727H67.6037V57.8736H71.3494V54.2727H73.1903V63H71.3494V59.3949H67.6037V63H65.7585ZM74.6605 63V61.6705L77.767 58.794C78.0313 58.5384 78.2528 58.3082 78.4318 58.1037C78.6136 57.8991 78.7514 57.6989 78.8452 57.5028C78.9389 57.304 78.9858 57.0895 78.9858 56.8594C78.9858 56.6037 78.9276 56.3835 78.8111 56.1989C78.6946 56.0114 78.5355 55.8679 78.3338 55.7685C78.1321 55.6662 77.9034 55.6151 77.6477 55.6151C77.3807 55.6151 77.1477 55.669 76.9489 55.777C76.75 55.8849 76.5966 56.0398 76.4886 56.2415C76.3807 56.4432 76.3267 56.6832 76.3267 56.9616H74.5753C74.5753 56.3906 74.7045 55.8949 74.9631 55.4744C75.2216 55.054 75.5838 54.7287 76.0497 54.4986C76.5156 54.2685 77.0526 54.1534 77.6605 54.1534C78.2855 54.1534 78.8295 54.2642 79.2926 54.4858C79.7585 54.7045 80.1207 55.0085 80.3793 55.3977C80.6378 55.7869 80.767 56.233 80.767 56.7358C80.767 57.0653 80.7017 57.3906 80.571 57.7116C80.4432 58.0327 80.2145 58.3892 79.8849 58.7812C79.5554 59.1705 79.0909 59.6378 78.4915 60.1832L77.2173 61.4318V61.4915H80.8821V63H74.6605Z",fill:"black"}),a.jsx(sA,{x1:"80",y1:"90",x2:"24",y2:"90",stroke:"#DDDDDD"}),a.jsx($1,{x:"84",y:"78",width:"30",height:"23",rx:"4",fill:"#F0B849"}),a.jsx(J,{d:"M90.7585 94V85.2727H92.6037V88.8736H96.3494V85.2727H98.1903V94H96.3494V90.3949H92.6037V94H90.7585ZM99.5284 92.4659V91.0128L103.172 85.2727H104.425V87.2841H103.683L101.386 90.919V90.9872H106.564V92.4659H99.5284ZM103.717 94V92.0227L103.751 91.3793V85.2727H105.482V94H103.717Z",fill:"black"}),a.jsx(sA,{x1:"66",y1:"121",x2:"24",y2:"121",stroke:"#DDDDDD"}),a.jsx($1,{x:"70",y:"109",width:"29",height:"23",rx:"4",fill:"#DDDDDD"}),a.jsx(J,{d:"M76.7585 125V116.273H78.6037V119.874H82.3494V116.273H84.1903V125H82.3494V121.395H78.6037V125H76.7585ZM88.8864 125.119C88.25 125.119 87.6832 125.01 87.1861 124.791C86.6918 124.57 86.3011 124.266 86.0142 123.879C85.7301 123.49 85.5838 123.041 85.5753 122.533H87.4332C87.4446 122.746 87.5142 122.933 87.642 123.095C87.7727 123.254 87.946 123.378 88.1619 123.466C88.3778 123.554 88.6207 123.598 88.8906 123.598C89.1719 123.598 89.4205 123.548 89.6364 123.449C89.8523 123.349 90.0213 123.212 90.1435 123.036C90.2656 122.859 90.3267 122.656 90.3267 122.426C90.3267 122.193 90.2614 121.987 90.1307 121.808C90.0028 121.626 89.8182 121.484 89.5767 121.382C89.3381 121.28 89.054 121.229 88.7244 121.229H87.9105V119.874H88.7244C89.0028 119.874 89.2486 119.825 89.4616 119.729C89.6776 119.632 89.8452 119.499 89.9645 119.328C90.0838 119.155 90.1435 118.953 90.1435 118.723C90.1435 118.504 90.0909 118.312 89.9858 118.148C89.8835 117.98 89.7386 117.849 89.5511 117.756C89.3665 117.662 89.1506 117.615 88.9034 117.615C88.6534 117.615 88.4247 117.661 88.2173 117.751C88.0099 117.839 87.8438 117.966 87.7188 118.131C87.5938 118.295 87.527 118.489 87.5185 118.71H85.75C85.7585 118.207 85.902 117.764 86.1804 117.381C86.4588 116.997 86.8338 116.697 87.3054 116.482C87.7798 116.263 88.3153 116.153 88.9119 116.153C89.5142 116.153 90.0412 116.263 90.4929 116.482C90.9446 116.7 91.2955 116.996 91.5455 117.368C91.7983 117.737 91.9233 118.152 91.9205 118.612C91.9233 119.101 91.7713 119.509 91.4645 119.835C91.1605 120.162 90.7642 120.369 90.2756 120.457V120.526C90.9176 120.608 91.4063 120.831 91.7415 121.195C92.0795 121.555 92.2472 122.007 92.2443 122.55C92.2472 123.047 92.1037 123.489 91.8139 123.875C91.527 124.261 91.1307 124.565 90.625 124.787C90.1193 125.009 89.5398 125.119 88.8864 125.119Z",fill:"black"})]})}const Gze=(e=[])=>e.flatMap((t={})=>t.name==="core/heading"?{...t,level:t.attributes.level,isEmpty:vFt(t)}:Gze(t.innerBlocks)),vFt=e=>!e.attributes.content||e.attributes.content.trim().length===0;function xFt({onSelect:e,isTitleSupported:t,hasOutlineItemsDisabled:n}){const{selectBlock:o}=ae(F),{blocks:r,title:s}=D(f=>{var b;const{getBlocks:h}=f(F),{getEditedPostAttribute:g}=f(ue),{getPostType:z}=f(ce),y=z(g("type"));return{title:g("title"),blocks:h(),isTitleSupported:(b=y?.supports?.title)!==null&&b!==void 0?b:!1}}),i=Gze(r);if(i.length<1)return a.jsxs("div",{className:"editor-document-outline has-no-headings",children:[a.jsx(yFt,{}),a.jsx("p",{children:m("Navigate the structure of your document and address issues like empty or incorrect heading levels.")})]});let c=1;const l=document.querySelector(".editor-post-title__input"),u=t&&s&&l,p=i.reduce((f,b)=>({...f,[b.level]:(f[b.level]||0)+1}),{})[1]>1;return a.jsx("div",{className:"document-outline",children:a.jsxs("ul",{children:[u&&a.jsx(XZ,{level:m("Title"),isValid:!0,onSelect:e,href:`#${l.id}`,isDisabled:n,children:s}),i.map((f,b)=>{const h=f.level>c+1,g=!f.isEmpty&&!h&&!!f.level&&(f.level!==1||!p&&!u);return c=f.level,a.jsxs(XZ,{level:`H${f.level}`,isValid:g,isDisabled:n,href:`#block-${f.clientId}`,onSelect:()=>{o(f.clientId),e?.()},children:[f.isEmpty?gFt:cp(m0({html:f.attributes.content})),h&&zFt,f.level===1&&p&&AFt,u&&f.level===1&&!p&&OFt]},b)})]})})}function _Ft(e,t){const n=Ta()?Jo.primaryShift("z"):Jo.primary("y"),o=D(s=>s(ue).hasEditorRedo(),[]),{redo:r}=ae(ue);return a.jsx(fe,{__next40pxDefaultSize:!1,...e,ref:t,icon:ft()?Lle:xle,label:m("Redo"),shortcut:n,"aria-disabled":!o,onClick:o?r:void 0,className:"editor-history__redo"})}const wFt=O.forwardRef(_Ft);function kFt(e,t){const n=D(r=>r(ue).hasEditorUndo(),[]),{undo:o}=ae(ue);return a.jsx(fe,{__next40pxDefaultSize:!1,...e,ref:t,icon:ft()?xle:Lle,label:m("Undo"),shortcut:Jo.primary("z"),"aria-disabled":!n,onClick:n?o:void 0,className:"editor-history__undo"})}const qFt=O.forwardRef(kFt);function SFt(){const[e,t]=O.useState(!1),n=D(s=>s(F).isValidTemplate(),[]),{setTemplateValidity:o,synchronizeTemplate:r}=ae(F);return n?null:a.jsxs(a.Fragment,{children:[a.jsx(os,{className:"editor-template-validation-notice",isDismissible:!1,status:"warning",actions:[{label:m("Keep it as is"),onClick:()=>o(!0)},{label:m("Reset the template"),onClick:()=>t(!0)}],children:m("The content of your post doesn’t match the template assigned to your post type.")}),a.jsx(bw,{isOpen:e,confirmButtonText:m("Reset"),onConfirm:()=>{t(!1),r()},onCancel:()=>t(!1),size:"medium",children:m("Resetting the template may result in loss of content, do you want to continue?")})]})}function GZ(){const{notices:e}=D(r=>({notices:r(Ze).getNotices()}),[]),{removeNotice:t}=ae(Ze),n=e.filter(({isDismissible:r,type:s})=>r&&s==="default"),o=e.filter(({isDismissible:r,type:s})=>!r&&s==="default");return a.jsxs(a.Fragment,{children:[a.jsx(EW,{notices:o,className:"components-editor-notices__pinned"}),a.jsx(EW,{notices:n,className:"components-editor-notices__dismissible",onRemove:t,children:a.jsx(SFt,{})})]})}const CFt=-3;function RFt(){const e=D(o=>o(Ze).getNotices(),[]),{removeNotice:t}=ae(Ze),n=e.filter(({type:o})=>o==="snackbar").slice(CFt);return a.jsx(Qbt,{notices:n,className:"components-editor-notices__snackbar",onRemove:t})}function WFt({record:e,checked:t,onChange:n}){const{name:o,kind:r,title:s,key:i}=e,{entityRecordTitle:c,hasPostMetaChanges:l}=D(u=>{if(r!=="postType"||o!=="wp_template")return{entityRecordTitle:s,hasPostMetaChanges:gt(u(ue)).hasPostMetaChanges(o,i)};const d=u(ce).getEditedEntityRecord(r,o,i);return{entityRecordTitle:u(ue).__experimentalGetTemplateInfo(d).title,hasPostMetaChanges:gt(u(ue)).hasPostMetaChanges(o,i)}},[o,r,s,i]);return a.jsxs(a.Fragment,{children:[a.jsx($3,{children:a.jsx(Bo,{__nextHasNoMarginBottom:!0,label:kt(c)||m("Untitled"),checked:t,onChange:n})}),l&&a.jsx("ul",{className:"entities-saved-states__changes",children:a.jsx("li",{children:m("Post Meta.")})})]})}const{getGlobalStylesChanges:TFt,GlobalStylesContext:EFt}=gt(p0);function BFt(e,t){switch(e){case"site":return m(t===1?"This change will affect your whole site.":"These changes will affect your whole site.");case"wp_template":return m("This change will affect pages and posts that use this template.");case"page":case"post":return m("The following has been modified.")}}function NFt({record:e}){const{user:t}=O.useContext(EFt),n=D(r=>r(ce).getEntityRecord(e.kind,e.name,e.key),[e.kind,e.name,e.key]),o=TFt(t,n,{maxResults:10});return o.length?a.jsx("ul",{className:"entities-saved-states__changes",children:o.map(r=>a.jsx("li",{children:r},r))}):null}function LFt({record:e,count:t}){if(e?.name==="globalStyles")return null;const n=BFt(e?.name,t);return n?a.jsx($3,{children:n}):null}function jFt({list:e,unselectedEntities:t,setUnselectedEntities:n}){const o=e.length,r=e[0];let i=D(c=>c(ce).getEntityConfig(r.kind,r.name),[r.kind,r.name]).label;return r?.name==="wp_template_part"&&(i=m(o===1?"Template Part":"Template Parts")),a.jsxs(De,{title:i,initialOpen:!0,children:[a.jsx(LFt,{record:r,count:o}),e.map(c=>a.jsx(WFt,{record:c,checked:!t.some(l=>l.kind===c.kind&&l.name===c.name&&l.key===c.key&&l.property===c.property),onChange:l=>n(c,l)},c.key||c.property)),r?.name==="globalStyles"&&a.jsx(NFt,{record:r})]})}const PFt=()=>{const{editedEntities:e,siteEdits:t,siteEntityConfig:n}=D(l=>{const{__experimentalGetDirtyEntityRecords:u,getEntityRecordEdits:d,getEntityConfig:p}=l(ce);return{editedEntities:u(),siteEdits:d("root","site"),siteEntityConfig:p("root","site")}},[]),o=O.useMemo(()=>{var l;const u=e.filter(f=>!(f.kind==="root"&&f.name==="site")),d=(l=n?.meta?.labels)!==null&&l!==void 0?l:{},p=[];for(const f in t)p.push({kind:"root",name:"site",title:d[f]||f,property:f});return[...u,...p]},[e,t,n]),[r,s]=O.useState([]),i=({kind:l,name:u,key:d,property:p},f)=>{s(f?r.filter(b=>b.kind!==l||b.name!==u||b.key!==d||b.property!==p):[...r,{kind:l,name:u,key:d,property:p}])},c=o.length-r.length>0;return{dirtyEntityRecords:o,isDirty:c,setUnselectedEntities:i,unselectedEntities:r}};function IFt(e){return e}function DFt({close:e,renderDialog:t=void 0}){const n=PFt();return a.jsx(P5,{close:e,renderDialog:t,...n})}function P5({additionalPrompt:e=void 0,close:t,onSave:n=IFt,saveEnabled:o=void 0,saveLabel:r=m("Save"),renderDialog:s=void 0,dirtyEntityRecords:i,isDirty:c,setUnselectedEntities:l,unselectedEntities:u}){const d=O.useRef(),{saveDirtyEntities:p}=gt(ae(ue)),f=i.reduce((k,q)=>{const{name:S}=q;return k[S]||(k[S]=[]),k[S].push(q),k},{}),{site:b,wp_template:h,wp_template_part:g,...z}=f,y=[b,h,g,...Object.values(z)].filter(Array.isArray),x=o??c,v=O.useCallback(()=>t(),[t]),[M,A]=Mne({onClose:()=>v()}),_=He(P5,"label"),w=He(P5,"description");return a.jsxs("div",{ref:M,...A,className:"entities-saved-states__panel",role:s?"dialog":void 0,"aria-labelledby":s?_:void 0,"aria-describedby":s?w:void 0,children:[a.jsxs(Q0,{className:"entities-saved-states__panel-header",gap:2,children:[a.jsx(Ht,{isBlock:!0,as:fe,ref:d,variant:"primary",disabled:!x,accessibleWhenDisabled:!0,onClick:()=>p({onSave:n,dirtyEntityRecords:i,entitiesToSkip:u,close:t}),className:"editor-entities-saved-states__save-button",children:r}),a.jsx(Ht,{isBlock:!0,as:fe,variant:"secondary",onClick:v,children:m("Cancel")})]}),a.jsxs("div",{className:"entities-saved-states__text-prompt",children:[a.jsxs("div",{className:"entities-saved-states__text-prompt--header-wrapper",id:s?_:void 0,children:[a.jsx("strong",{className:"entities-saved-states__text-prompt--header",children:m("Are you ready to save?")}),e]}),a.jsx("p",{id:s?w:void 0,children:c?z1(le(a0("There is %d site change waiting to be saved.","There are %d site changes waiting to be saved.",y.length),y.length),{strong:a.jsx("strong",{})}):m("Select the items you want to save.")})]}),y.map(k=>a.jsx(jFt,{list:k,unselectedEntities:u,setUnselectedEntities:l},k[0].name))]})}function Kze({children:e}){return D(n=>{const{getEditedPostAttribute:o}=n(ue),{getPostType:r}=n(ce);return!!r(o("type"))?.supports?.["page-attributes"]},[])?e:null}function Ha({children:e,supportKeys:t}){const n=D(r=>{const{getEditedPostAttribute:s}=r(ue),{getPostType:i}=r(ce);return i(s("type"))},[]);let o=!!n;return n&&(o=(Array.isArray(t)?t:[t]).some(r=>!!n.supports[r])),o?e:null}const Lr=O.forwardRef(({className:e,label:t,children:n},o)=>a.jsxs(Je,{className:$("editor-post-panel__row",e),ref:o,children:[t&&a.jsx("div",{className:"editor-post-panel__row-label",children:t}),a.jsx("div",{className:"editor-post-panel__row-control",children:n})]}));function Yze(e){const t=e.map(r=>({children:[],parent:null,...r}));if(t.some(({parent:r})=>r===null))return t;const n=t.reduce((r,s)=>{const{parent:i}=s;return r[i]||(r[i]=[]),r[i].push(s),r},{}),o=r=>r.map(s=>{const i=n[s.id];return{...s,children:i&&i.length?o(i):[]}});return o(n[0]||[])}const Wz=e=>kt(e),Zze=e=>({...e,name:Wz(e.name)}),FFt=e=>(e??[]).map(Zze);function XT(e){return e?.title?.rendered?kt(e.title.rendered):`#${e.id} (${m("no title")})`}const KZ=(e,t)=>{const n=Xs(e||"").toLowerCase(),o=Xs(t||"").toLowerCase();return n===o?0:n.startsWith(o)?n.length:1/0};function $Ft(){const{editPost:e}=ae(ue),[t,n]=O.useState(!1),{isHierarchical:o,parentPostId:r,parentPostTitle:s,pageItems:i}=D(d=>{var p;const{getPostType:f,getEntityRecords:b,getEntityRecord:h}=d(ce),{getCurrentPostId:g,getEditedPostAttribute:z}=d(ue),y=z("type"),x=z("parent"),v=f(y),M=g(),A=(p=v?.hierarchical)!==null&&p!==void 0?p:!1,_={per_page:100,exclude:M,parent_exclude:M,orderby:"menu_order",order:"asc",_fields:"id,title,parent"};t&&(_.search=t);const w=x?h("postType",y,x):null;return{isHierarchical:A,parentPostId:x,parentPostTitle:w?XT(w):"",pageItems:A?b("postType",y,_):null}},[t]),c=O.useMemo(()=>{const d=(h,g=0)=>h.map(x=>[{value:x.id,label:"— ".repeat(g)+kt(x.name),rawName:x.name},...d(x.children||[],g+1)]).sort(([x],[v])=>{const M=KZ(x.rawName,t),A=KZ(v.rawName,t);return M>=A?1:-1}).flat();if(!i)return[];let p=i.map(h=>({id:h.id,parent:h.parent,name:XT(h)}));t||(p=Yze(p));const f=d(p),b=f.find(h=>h.value===r);return s&&!b&&f.unshift({value:r,label:s}),f},[i,t,s,r]);if(!o)return null;const l=d=>{n(d)},u=d=>{e({parent:d})};return a.jsx(Nh,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,className:"editor-page-attributes__parent",label:m("Parent"),help:m("Choose a parent page."),value:r,options:c,onFilterValueChange:jr(l,300),onChange:u,hideLabelFromVision:!0})}function VFt({isOpen:e,onClick:t}){const n=D(r=>{const{getEditedPostAttribute:s}=r(ue),i=s("parent");if(!i)return null;const{getEntityRecord:c}=r(ce),l=s("type");return c("postType",l,i)},[]),o=O.useMemo(()=>n?XT(n):m("None"),[n]);return a.jsx(fe,{size:"compact",className:"editor-post-parent__panel-toggle",variant:"tertiary","aria-expanded":e,"aria-label":le(m("Change parent: %s"),o),onClick:t,children:o})}function HFt(){const e=D(r=>r(ce).getEntityRecord("root","__unstableBase")?.home,[]),[t,n]=O.useState(null),o=O.useMemo(()=>({anchor:t,placement:"left-start",offset:36,shift:!0}),[t]);return a.jsx(Lr,{label:m("Parent"),ref:n,children:a.jsx(B0,{popoverProps:o,className:"editor-post-parent__panel-dropdown",contentClassName:"editor-post-parent__panel-dialog",focusOnMount:!0,renderToggle:({isOpen:r,onToggle:s})=>a.jsx(VFt,{isOpen:r,onClick:s}),renderContent:({onClose:r})=>a.jsxs("div",{className:"editor-post-parent",children:[a.jsx(Os,{title:m("Parent"),onClose:r}),a.jsxs("div",{children:[z1(le(m('Child pages inherit characteristics from their parent, such as URL structure. For instance, if "Pricing" is a child of "Services", its URL would be %1$s/services/pricing.'),Dz(e).replace(/([/.])/g,"$1")),{wbr:a.jsx("wbr",{})}),a.jsx("p",{children:z1(m("They also show up as sub-items in the default navigation menu. Learn more."),{a:a.jsx(S1,{href:m("https://wordpress.org/documentation/article/page-post-settings-sidebar/#page-attributes")})})})]}),a.jsx($Ft,{})]})})})}const UFt="page-attributes";function XFt(){const{isEnabled:e,postType:t}=D(n=>{const{getEditedPostAttribute:o,isEditorPanelEnabled:r}=n(ue),{getPostType:s}=n(ce);return{isEnabled:r(UFt),postType:s(o("type"))}},[]);return!e||!t?null:a.jsx(HFt,{})}function GFt(){return a.jsx(Kze,{children:a.jsx(XFt,{})})}const lC=m("Custom Template");function Qze({onClose:e}){const{defaultBlockTemplate:t,onNavigateToEntityRecord:n}=D(d=>{const{getEditorSettings:p,getCurrentTemplateId:f}=d(ue);return{defaultBlockTemplate:p().defaultBlockTemplate,onNavigateToEntityRecord:p().onNavigateToEntityRecord,getTemplateId:f}}),{createTemplate:o}=gt(ae(ue)),[r,s]=O.useState(""),[i,c]=O.useState(!1),l=()=>{s(""),e()},u=async d=>{if(d.preventDefault(),i)return;c(!0);const p=t??Pr([me("core/group",{tagName:"header",layout:{inherit:!0}},[me("core/site-title"),me("core/site-tagline")]),me("core/separator"),me("core/group",{tagName:"main"},[me("core/group",{layout:{inherit:!0}},[me("core/post-title")]),me("core/post-content",{layout:{inherit:!0}})])]),f=await o({slug:hB(r||lC),content:p,title:r||lC});c(!1),n({postId:f.id,postType:"wp_template"}),l()};return a.jsx(fn,{title:m("Create custom template"),onRequestClose:l,focusOnMount:"firstContentElement",size:"small",children:a.jsx("form",{className:"editor-post-template__create-form",onSubmit:u,children:a.jsxs(Ye,{spacing:"3",children:[a.jsx($t,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:m("Name"),value:r,onChange:s,placeholder:lC,disabled:i,help:m('Describe the template, e.g. "Post with sidebar". A custom template can be manually applied to any post or page.')}),a.jsxs(Je,{justify:"right",children:[a.jsx(fe,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:l,children:m("Cancel")}),a.jsx(fe,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:i,"aria-disabled":i,children:m("Create")})]})]})})})}function Fk(){return D(e=>{const{getCurrentPostId:t,getCurrentPostType:n}=e(ue);return{postId:t(),postType:n()}},[])}function $k(){const{postType:e,postId:t}=Fk();return D(n=>{const{canUser:o,getEntityRecord:r,getEntityRecords:s}=n(ce),i=o("read",{kind:"root",name:"site"})?r("root","site"):void 0,c=s("postType","wp_template",{per_page:-1}),l=+t===i?.page_for_posts,u=e==="page"&&+t===i?.page_on_front&&c?.some(({slug:d})=>d==="front-page");return!l&&!u},[t,e])}function Jze(e){return D(t=>t(ce).getEntityRecords("postType","wp_template",{per_page:-1,post_type:e}),[e])}function e3e(e){const t=t3e(),n=$k(),o=Jze(e);return O.useMemo(()=>n&&o?.filter(r=>r.is_custom&&r.slug!==t&&!!r.content.raw),[o,t,n])}function t3e(){const{postType:e,postId:t}=Fk(),n=Jze(e),o=D(r=>r(ce).getEditedEntityRecord("postType",e,t)?.template,[e,t]);if(o)return n?.find(r=>r.slug===o)?.slug}const KFt={className:"editor-post-template__dropdown",placement:"bottom-start"};function YFt({isOpen:e,onClick:t}){const n=D(o=>{const r=o(ue).getEditedPostAttribute("template"),{supportsTemplateMode:s,availableTemplates:i}=o(ue).getEditorSettings();if(!s&&i[r])return i[r];const c=o(ce).canUser("create",{kind:"postType",name:"wp_template"})&&o(ue).getCurrentTemplateId();return c?.title||c?.slug||i?.[r]},[]);return a.jsx(fe,{__next40pxDefaultSize:!0,variant:"tertiary","aria-expanded":e,"aria-label":m("Template options"),onClick:t,children:n??m("Default template")})}function ZFt({onClose:e}){var t,n;const o=$k(),{availableTemplates:r,fetchedTemplates:s,selectedTemplateSlug:i,canCreate:c,canEdit:l,currentTemplateId:u,onNavigateToEntityRecord:d,getEditorSettings:p}=D(x=>{const{canUser:v,getEntityRecords:M}=x(ce),A=x(ue).getEditorSettings(),_=v("create",{kind:"postType",name:"wp_template"}),w=x(ue).getCurrentTemplateId();return{availableTemplates:A.availableTemplates,fetchedTemplates:_?M("postType","wp_template",{post_type:x(ue).getCurrentPostType(),per_page:-1}):void 0,selectedTemplateSlug:x(ue).getEditedPostAttribute("template"),canCreate:o&&_&&A.supportsTemplateMode,canEdit:o&&_&&A.supportsTemplateMode&&!!w,currentTemplateId:w,onNavigateToEntityRecord:A.onNavigateToEntityRecord,getEditorSettings:x(ue).getEditorSettings}},[o]),f=O.useMemo(()=>Object.entries({...r,...Object.fromEntries((s??[]).map(({slug:x,title:v})=>[x,v.rendered]))}).map(([x,v])=>({value:x,label:v})),[r,s]),b=(t=f.find(x=>x.value===i))!==null&&t!==void 0?t:f.find(x=>!x.value),{editPost:h}=ae(ue),{createSuccessNotice:g}=ae(Ze),[z,y]=O.useState(!1);return a.jsxs("div",{className:"editor-post-template__classic-theme-dropdown",children:[a.jsx(Os,{title:m("Template"),help:m("Templates define the way content is displayed when viewing your site."),actions:c?[{icon:hYe,label:m("Add template"),onClick:()=>y(!0)}]:[],onClose:e}),o?a.jsx(i0,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,hideLabelFromVision:!0,label:m("Template"),value:(n=b?.value)!==null&&n!==void 0?n:"",options:f,onChange:x=>h({template:x||""})}):a.jsx(os,{status:"warning",isDismissible:!1,children:m("The posts page template cannot be changed.")}),l&&d&&a.jsx("p",{children:a.jsx(fe,{__next40pxDefaultSize:!1,variant:"link",onClick:()=>{d({postId:u,postType:"wp_template"}),e(),g(m("Editing template. Changes made here affect all posts and pages that use the template."),{type:"snackbar",actions:[{label:m("Go back"),onClick:()=>p().onNavigateToPreviousEntityRecord()}]})},children:m("Edit template")})}),z&&a.jsx(Qze,{onClose:()=>y(!1)})]})}function QFt(){return a.jsx(B0,{popoverProps:KFt,focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>a.jsx(YFt,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>a.jsx(ZFt,{onClose:e})})}const{PreferenceBaseOption:JFt}=gt(yd),cb=v0(Xo((e,{panelName:t})=>{const{isEditorPanelEnabled:n,isEditorPanelRemoved:o}=e(ue);return{isRemoved:o(t),isChecked:n(t)}}),OB(({isRemoved:e})=>!e),Fi((e,{panelName:t})=>({onChange:()=>e(ue).toggleEditorPanelEnabled(t)})))(JFt),{Fill:e$t,Slot:t$t}=_0("EnablePluginDocumentSettingPanelOption"),u9=({label:e,panelName:t})=>a.jsx(e$t,{children:a.jsx(cb,{label:e,panelName:t})});u9.Slot=t$t;const{Fill:n$t,Slot:o$t}=_0("PluginDocumentSettingPanel"),n3e=({name:e,className:t,title:n,icon:o,children:r})=>{const{name:s}=c9(),i=`${s}/${e}`,{opened:c,isEnabled:l}=D(d=>{const{isEditorPanelOpened:p,isEditorPanelEnabled:f}=d(ue);return{opened:p(i),isEnabled:f(i)}},[i]),{toggleEditorPanelOpened:u}=ae(ue);return e===void 0&&globalThis.SCRIPT_DEBUG===!0&&Xt("PluginDocumentSettingPanel requires a name property."),a.jsxs(a.Fragment,{children:[a.jsx(u9,{label:n,panelName:i}),a.jsx(n$t,{children:l&&a.jsx(De,{className:t,title:n,icon:o,opened:c,onToggle:()=>u(i),children:r})})]})};n3e.Slot=o$t;const{Fill:r$t,Slot:s$t}=_0("PluginPostPublishPanel"),o3e=({children:e,className:t,title:n,initialOpen:o=!1,icon:r})=>{const{icon:s}=c9();return a.jsx(r$t,{children:a.jsx(De,{className:t,initialOpen:o||!n,title:n,icon:r??s,children:e})})};o3e.Slot=s$t;const{Fill:i$t,Slot:a$t}=_0("PluginPostStatusInfo"),r3e=({children:e,className:t})=>a.jsx(i$t,{children:a.jsx($3,{className:t,children:e})});r3e.Slot=a$t;const{Fill:c$t,Slot:l$t}=_0("PluginPrePublishPanel"),s3e=({children:e,className:t,title:n,initialOpen:o=!1,icon:r})=>{const{icon:s}=c9();return a.jsx(c$t,{children:a.jsx(De,{className:t,initialOpen:o||!n,title:n,icon:r??s,children:e})})};s3e.Slot=l$t;function u$t({className:e,...t}){const{postTitle:n,shortcut:o}=D(r=>({postTitle:r(ue).getEditedPostAttribute("title"),shortcut:r(Br).getShortcutRepresentation("core/editor/toggle-sidebar")}),[]);return a.jsx(Dk,{panelClassName:e,className:"editor-sidebar",smallScreenTitle:n||m("(no title)"),scope:"core",toggleShortcut:o,...t})}function d$t({onClick:e}){const[t,n]=O.useState(!1),{postType:o,postId:r}=Fk(),s=e3e(o),{editEntityRecord:i}=ae(ce);if(!s?.length)return null;const c=async l=>{i("postType",o,r,{template:l.name},{undoIgnore:!0}),n(!1),e()};return a.jsxs(a.Fragment,{children:[a.jsx(tt,{onClick:()=>n(!0),children:m("Swap template")}),t&&a.jsx(fn,{title:m("Choose a template"),onRequestClose:()=>n(!1),overlayClassName:"editor-post-template__swap-template-modal",isFullScreen:!0,children:a.jsx("div",{className:"editor-post-template__swap-template-modal-content",children:a.jsx(p$t,{postType:o,onSelect:c})})})]})}function p$t({postType:e,onSelect:t}){const n=e3e(e),o=O.useMemo(()=>n.map(s=>({name:s.slug,blocks:Yn(s.content.raw),title:kt(s.title.rendered),id:s.id})),[n]),r=Gs(o);return a.jsx(oc,{label:m("Templates"),blockPatterns:o,shownPatterns:r,onClickPattern:t})}function f$t({onClick:e}){const t=t3e(),n=$k(),{postType:o,postId:r}=Fk(),{editEntityRecord:s}=ae(ce);return!t||!n?null:a.jsx(tt,{onClick:()=>{s("postType",o,r,{template:""},{undoIgnore:!0}),e()},children:m("Use default template")})}function b$t({onClick:e}){const{canCreateTemplates:t}=D(s=>{const{canUser:i}=s(ce);return{canCreateTemplates:i("create",{kind:"postType",name:"wp_template"})}},[]),[n,o]=O.useState(!1),r=$k();return!t||!r?null:a.jsxs(a.Fragment,{children:[a.jsx(tt,{onClick:()=>{o(!0)},children:m("Create new template")}),n&&a.jsx(Qze,{onClose:()=>{o(!1),e()}})]})}const h$t={className:"editor-post-template__dropdown",placement:"bottom-start"};function m$t({id:e}){const{isTemplateHidden:t,onNavigateToEntityRecord:n,getEditorSettings:o,hasGoBack:r}=D(b=>{const{getRenderingMode:h,getEditorSettings:g}=gt(b(ue)),z=g();return{isTemplateHidden:h()==="post-only",onNavigateToEntityRecord:z.onNavigateToEntityRecord,getEditorSettings:g,hasGoBack:z.hasOwnProperty("onNavigateToPreviousEntityRecord")}},[]),{get:s}=D(Qe),{editedRecord:i,hasResolved:c}=Voe("postType","wp_template",e),{createSuccessNotice:l}=ae(Ze),{setRenderingMode:u}=ae(ue),d=D(b=>!!b(ce).canUser("create",{kind:"postType",name:"wp_template"}),[]);if(!c)return null;const p=r?[{label:m("Go back"),onClick:()=>o().onNavigateToPreviousEntityRecord()}]:void 0,f=()=>{s("core/edit-site","welcomeGuideTemplate")||l(m("Editing template. Changes made here affect all posts and pages that use the template."),{type:"snackbar",actions:p})};return a.jsx(E1,{popoverProps:h$t,focusOnMount:!0,toggleProps:{size:"compact",variant:"tertiary",tooltipPosition:"middle left"},label:m("Template options"),text:kt(i.title),icon:null,children:({onClose:b})=>a.jsxs(a.Fragment,{children:[a.jsxs(Yt,{children:[d&&a.jsx(tt,{onClick:()=>{n({postId:i.id,postType:"wp_template"}),b(),f()},children:m("Edit template")}),a.jsx(d$t,{onClick:b}),a.jsx(f$t,{onClick:b}),d&&a.jsx(b$t,{onClick:b})]}),a.jsx(Yt,{children:a.jsx(tt,{icon:t?void 0:no,isSelected:!t,role:"menuitemcheckbox",onClick:()=>{u(t?"template-locked":"post-only")},children:m("Show template")})})]})})}function M$t(){const{templateId:e,isBlockTheme:t}=D(r=>{const{getCurrentTemplateId:s,getEditorSettings:i}=r(ue);return{templateId:s(),isBlockTheme:i().__unstableIsBlockBasedTheme}},[]),n=D(r=>{var s;const i=r(ue).getCurrentPostType();if(!r(ce).getPostType(i)?.viewable)return!1;const l=r(ue).getEditorSettings();return!!l.availableTemplates&&Object.keys(l.availableTemplates).length>0?!0:l.supportsTemplateMode&&(s=r(ce).canUser("create",{kind:"postType",name:"wp_template"}))!==null&&s!==void 0?s:!1},[]),o=D(r=>{var s;return(s=r(ce).canUser("read",{kind:"postType",name:"wp_template"}))!==null&&s!==void 0?s:!1},[]);return(!t||!o)&&n?a.jsx(Lr,{label:m("Template"),children:a.jsx(QFt,{})}):t&&e?a.jsx(Lr,{label:m("Template"),children:a.jsx(m$t,{id:e})}):null}const i3e={_fields:"id,name",context:"view"},d9={who:"authors",per_page:50,...i3e};function p9(e){const{authorId:t,authors:n,postAuthor:o}=D(s=>{const{getUser:i,getUsers:c}=s(ce),{getEditedPostAttribute:l}=s(ue),u=l("author"),d={...d9};return e&&(d.search=e),{authorId:u,authors:c(d),postAuthor:i(u,i3e)}},[e]),r=O.useMemo(()=>{const s=(n??[]).map(l=>({value:l.id,label:kt(l.name)})),i=s.findIndex(({value:l})=>o?.id===l);let c=[];return i<0&&o?c=[{value:o.id,label:kt(o.name)}]:i<0&&!o&&(c=[{value:0,label:m("(No author)")}]),[...c,...s]},[n,o]);return{authorId:t,authorOptions:r,postAuthor:o}}function g$t(){const[e,t]=O.useState(),{editPost:n}=ae(ue),{authorId:o,authorOptions:r}=p9(e),s=c=>{c&&n({author:c})},i=c=>{t(c)};return a.jsx(Nh,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:m("Author"),options:r,value:o,onFilterValueChange:jr(i,300),onChange:s,allowReset:!1,hideLabelFromVision:!0})}function z$t(){const{editPost:e}=ae(ue),{authorId:t,authorOptions:n}=p9(),o=r=>{const s=Number(r);e({author:s})};return a.jsx(i0,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:"post-author-selector",label:m("Author"),options:n,onChange:o,value:t,hideLabelFromVision:!0})}const O$t=25;function A$t(){return D(t=>t(ce).getUsers(d9)?.length>=O$t,[])?a.jsx(g$t,{}):a.jsx(z$t,{})}function y$t({children:e}){const{hasAssignAuthorAction:t,hasAuthors:n}=D(o=>{var r;const s=o(ue).getCurrentPost(),i=o(ce).getUsers(d9);return{hasAssignAuthorAction:(r=s._links?.["wp:action-assign-author"])!==null&&r!==void 0?r:!1,hasAuthors:i?.length>=1}},[]);return!t||!n?null:a.jsx(Ha,{supportKeys:"author",children:e})}function v$t({isOpen:e,onClick:t}){const{postAuthor:n}=p9(),o=kt(n?.name)||m("(No author)");return a.jsx(fe,{size:"compact",className:"editor-post-author__panel-toggle",variant:"tertiary","aria-expanded":e,"aria-label":le(m("Change author: %s"),o),onClick:t,children:o})}function x$t(){const[e,t]=O.useState(null),n=O.useMemo(()=>({anchor:e,placement:"left-start",offset:36,shift:!0}),[e]);return a.jsx(y$t,{children:a.jsx(Lr,{label:m("Author"),ref:t,children:a.jsx(B0,{popoverProps:n,contentClassName:"editor-post-author__panel-dialog",focusOnMount:!0,renderToggle:({isOpen:o,onToggle:r})=>a.jsx(v$t,{isOpen:o,onClick:r}),renderContent:({onClose:o})=>a.jsxs("div",{className:"editor-post-author",children:[a.jsx(Os,{title:m("Author"),onClose:o}),a.jsx(A$t,{onClose:o})]})})})})}const _$t=[{label:Oe("Open",'Adjective: e.g. "Comments are open"'),value:"open",description:m("Visitors can add new comments and replies.")},{label:m("Closed"),value:"closed",description:[m("Visitors cannot add new comments or replies."),m("Existing comments remain visible.")].join(" ")}];function w$t(){const e=D(o=>{var r;return(r=o(ue).getEditedPostAttribute("comment_status"))!==null&&r!==void 0?r:"open"},[]),{editPost:t}=ae(ue),n=o=>t({comment_status:o});return a.jsx("form",{children:a.jsx(Ye,{spacing:4,children:a.jsx(kf,{className:"editor-change-status__options",hideLabelFromVision:!0,label:m("Comment status"),options:_$t,onChange:n,selected:e})})})}function k$t(){const e=D(o=>{var r;return(r=o(ue).getEditedPostAttribute("ping_status"))!==null&&r!==void 0?r:"open"},[]),{editPost:t}=ae(ue),n=()=>t({ping_status:e==="open"?"closed":"open"});return a.jsx(Bo,{__nextHasNoMarginBottom:!0,label:m("Enable pingbacks & trackbacks"),checked:e==="open",onChange:n,help:a.jsx(S1,{href:m("https://wordpress.org/documentation/article/trackbacks-and-pingbacks/"),children:m("Learn more about pingbacks & trackbacks")})})}const q$t="discussion-panel";function S$t({onClose:e}){return a.jsxs("div",{className:"editor-post-discussion",children:[a.jsx(Os,{title:m("Discussion"),onClose:e}),a.jsxs(Ye,{spacing:4,children:[a.jsx(Ha,{supportKeys:"comments",children:a.jsx(w$t,{})}),a.jsx(Ha,{supportKeys:"trackbacks",children:a.jsx(k$t,{})})]})]})}function C$t({isOpen:e,onClick:t}){const{commentStatus:n,pingStatus:o,commentsSupported:r,trackbacksSupported:s}=D(c=>{var l,u;const{getEditedPostAttribute:d}=c(ue),{getPostType:p}=c(ce),f=p(d("type"));return{commentStatus:(l=d("comment_status"))!==null&&l!==void 0?l:"open",pingStatus:(u=d("ping_status"))!==null&&u!==void 0?u:"open",commentsSupported:!!f.supports.comments,trackbacksSupported:!!f.supports.trackbacks}},[]);let i;return n==="open"?o==="open"?i=Oe("Open",'Adjective: e.g. "Comments are open"'):i=s?m("Comments only"):Oe("Open",'Adjective: e.g. "Comments are open"'):o==="open"?i=m(r?"Pings only":"Pings enabled"):i=m("Closed"),a.jsx(fe,{size:"compact",className:"editor-post-discussion__panel-toggle",variant:"tertiary","aria-label":m("Change discussion options"),"aria-expanded":e,onClick:t,children:i})}function R$t(){const{isEnabled:e}=D(r=>{const{isEditorPanelEnabled:s}=r(ue);return{isEnabled:s(q$t)}},[]),[t,n]=O.useState(null),o=O.useMemo(()=>({anchor:t,placement:"left-start",offset:36,shift:!0}),[t]);return e?a.jsx(Ha,{supportKeys:["comments","trackbacks"],children:a.jsx(Lr,{label:m("Discussion"),ref:n,children:a.jsx(B0,{popoverProps:o,className:"editor-post-discussion__panel-dropdown",contentClassName:"editor-post-discussion__panel-dialog",focusOnMount:!0,renderToggle:({isOpen:r,onToggle:s})=>a.jsx(C$t,{isOpen:r,onClick:s}),renderContent:({onClose:r})=>a.jsx(S$t,{onClose:r})})})}):null}function W$t({hideLabelFromVision:e=!1,updateOnBlur:t=!1}){const{excerpt:n,shouldUseDescriptionLabel:o,usedAttribute:r}=D(d=>{const{getCurrentPostType:p,getEditedPostAttribute:f}=d(ue),b=p(),h=["wp_template","wp_template_part"].includes(b)?"description":"excerpt";return{excerpt:f(h),shouldUseDescriptionLabel:["wp_template","wp_template_part","wp_block"].includes(b),usedAttribute:h}},[]),{editPost:s}=ae(ue),[i,c]=O.useState(kt(n)),l=d=>{s({[r]:d})},u=m(o?"Write a description (optional)":"Write an excerpt (optional)");return a.jsx("div",{className:"editor-post-excerpt",children:a.jsx(Pi,{__nextHasNoMarginBottom:!0,label:u,hideLabelFromVision:e,className:"editor-post-excerpt__textarea",onChange:t?c:l,onBlur:t?()=>l(i):void 0,value:t?i:n,help:o?m("Write a description"):a.jsx(S1,{href:m("https://wordpress.org/documentation/article/page-post-settings-sidebar/#excerpt"),children:m("Learn more about manual excerpts")})})})}function a3e({children:e}){return a.jsx(Ha,{supportKeys:"excerpt",children:e})}const{Fill:T$t,Slot:E$t}=_0("PluginPostExcerpt"),f9=({children:e,className:t})=>a.jsx(T$t,{children:a.jsx($3,{className:t,children:e})});f9.Slot=E$t;const B$t="post-excerpt";function N$t(){return a.jsx(a3e,{children:a.jsx(L$t,{})})}function L$t(){const{shouldRender:e,excerpt:t,shouldBeUsedAsDescription:n,allowEditing:o}=D(p=>{const{getCurrentPostType:f,getCurrentPostId:b,getEditedPostAttribute:h,isEditorPanelEnabled:g}=p(ue),z=f(),y=["wp_template","wp_template_part"].includes(z),x=z==="wp_block",v=y||x,M=y?"description":"excerpt",A=y&&p(ce).getEntityRecord("postType",z,b()),_=g(B$t)||v;return{excerpt:h(M),shouldRender:_,shouldBeUsedAsDescription:v,allowEditing:_&&(!v||x||A&&A.source===mO.custom&&!A.has_theme_file&&A.is_custom)}},[]),[r,s]=O.useState(null),i=m(n?"Description":"Excerpt"),c=O.useMemo(()=>({anchor:r,"aria-label":i,headerTitle:i,placement:"left-start",offset:36,shift:!0}),[r,i]);if(!e)return!1;const l=!!t&&a.jsx(l0,{align:"left",numberOfLines:4,truncate:o,children:kt(t)});if(!o)return l;const u=m(n?"Add a description…":"Add an excerpt…"),d=m(n?"Edit description":"Edit excerpt");return a.jsxs(Ye,{children:[l,a.jsx(B0,{className:"editor-post-excerpt__dropdown",contentClassName:"editor-post-excerpt__dropdown__content",popoverProps:c,focusOnMount:!0,ref:s,renderToggle:({onToggle:p})=>a.jsx(fe,{__next40pxDefaultSize:!1,className:"editor-post-excerpt__dropdown__trigger",onClick:p,variant:"link",children:l?d:u}),renderContent:({onClose:p})=>a.jsxs(a.Fragment,{children:[a.jsx(Os,{title:i,onClose:p}),a.jsx(Ye,{spacing:4,children:a.jsx(f9.Slot,{children:f=>a.jsxs(a.Fragment,{children:[a.jsx(W$t,{hideLabelFromVision:!0,updateOnBlur:!0}),f]})})})]})})]})}function j$t({children:e,supportKeys:t}){const{postType:n,themeSupports:o}=D(s=>({postType:s(ue).getEditedPostAttribute("type"),themeSupports:s(ce).getThemeSupports()}),[]);return(Array.isArray(t)?t:[t]).some(s=>{var i;const c=(i=o?.[s])!==null&&i!==void 0?i:!1;return s==="post-thumbnails"&&Array.isArray(c)?c.includes(n):c})?e:null}function I5({children:e}){return a.jsx(j$t,{supportKeys:"post-thumbnails",children:a.jsx(Ha,{supportKeys:"thumbnail",children:e})})}const YZ=["image"],P$t=m("Featured image"),I$t=m("Add a featured image"),D$t=a.jsx("p",{children:m("To edit the featured image, you need permission to upload media.")});function F$t(e,t){var n,o;if(!e)return{};const r=_n("editor.PostFeaturedImage.imageSize","large",e.id,t);if(r in((n=e?.media_details?.sizes)!==null&&n!==void 0?n:{}))return{mediaWidth:e.media_details.sizes[r].width,mediaHeight:e.media_details.sizes[r].height,mediaSourceUrl:e.media_details.sizes[r].source_url};const s=_n("editor.PostFeaturedImage.imageSize","thumbnail",e.id,t);return s in((o=e?.media_details?.sizes)!==null&&o!==void 0?o:{})?{mediaWidth:e.media_details.sizes[s].width,mediaHeight:e.media_details.sizes[s].height,mediaSourceUrl:e.media_details.sizes[s].source_url}:{mediaWidth:e.media_details.width,mediaHeight:e.media_details.height,mediaSourceUrl:e.source_url}}function $$t({currentPostId:e,featuredImageId:t,onUpdateImage:n,onRemoveImage:o,media:r,postType:s,noticeUI:i,noticeOperations:c}){const l=O.useRef(),[u,d]=O.useState(!1),{getSettings:p}=D(F),{mediaSourceUrl:f}=F$t(r,e);function b(h){p().mediaUpload({allowedTypes:YZ,filesList:h,onFileChange([g]){if(n1(g?.url)){d(!0);return}g&&n(g),d(!1)},onError(g){c.removeAllNotices(),c.createErrorNotice(g)}})}return a.jsxs(I5,{children:[i,a.jsxs("div",{className:"editor-post-featured-image",children:[r&&a.jsxs("div",{id:`editor-post-featured-image-${t}-describedby`,className:"hidden",children:[r.alt_text&&le(m("Current image: %s"),r.alt_text),!r.alt_text&&le(m("The current image has no alternative text. The file name is: %s"),r.media_details.sizes?.full?.file||r.slug)]}),a.jsx(cl,{fallback:D$t,children:a.jsx(Od,{title:s?.labels?.featured_image||P$t,onSelect:n,unstableFeaturedImageFlow:!0,allowedTypes:YZ,modalClass:"editor-post-featured-image__media-modal",render:({open:h})=>a.jsxs("div",{className:"editor-post-featured-image__container",children:[a.jsxs(fe,{__next40pxDefaultSize:!1,ref:l,className:t?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:h,"aria-label":t?m("Edit or replace the featured image"):null,"aria-describedby":t?`editor-post-featured-image-${t}-describedby`:null,"aria-haspopup":"dialog",disabled:u,accessibleWhenDisabled:!0,children:[!!t&&r&&a.jsx("img",{className:"editor-post-featured-image__preview-image",src:f,alt:""}),u&&a.jsx(u0,{}),!t&&!u&&(s?.labels?.set_featured_image||I$t)]}),!!t&&a.jsxs(Je,{className:"editor-post-featured-image__actions",children:[a.jsx(fe,{__next40pxDefaultSize:!1,className:"editor-post-featured-image__action",onClick:h,"aria-haspopup":"dialog",children:m("Replace")}),a.jsx(fe,{__next40pxDefaultSize:!1,className:"editor-post-featured-image__action",onClick:()=>{o(),l.current.focus()},children:m("Remove")})]}),a.jsx(Sw,{onFilesDrop:b})]}),value:t})})]})]})}const V$t=Xo(e=>{const{getMedia:t,getPostType:n}=e(ce),{getCurrentPostId:o,getEditedPostAttribute:r}=e(ue),s=r("featured_media");return{media:s?t(s,{context:"view"}):null,currentPostId:o(),postType:n(r("type")),featuredImageId:s}}),H$t=Fi((e,{noticeOperations:t},{select:n})=>{const{editPost:o}=e(ue);return{onUpdateImage(r){o({featured_media:r.id})},onDropImage(r){n(F).getSettings().mediaUpload({allowedTypes:["image"],filesList:r,onFileChange([s]){o({featured_media:s.id})},onError(s){t.removeAllNotices(),t.createErrorNotice(s)}})},onRemoveImage(){o({featured_media:0})}}}),ZZ=v0(aht,V$t,H$t,gd("editor.PostFeaturedImage"))($$t),uC="featured-image";function U$t({withPanelBody:e=!0}){var t;const{postType:n,isEnabled:o,isOpened:r}=D(i=>{const{getEditedPostAttribute:c,isEditorPanelEnabled:l,isEditorPanelOpened:u}=i(ue),{getPostType:d}=i(ce);return{postType:d(c("type")),isEnabled:l(uC),isOpened:u(uC)}},[]),{toggleEditorPanelOpened:s}=ae(ue);return o?e?a.jsx(I5,{children:a.jsx(De,{title:(t=n?.labels?.featured_image)!==null&&t!==void 0?t:m("Featured image"),opened:r,onToggle:()=>s(uC),children:a.jsx(ZZ,{})})}):a.jsx(I5,{children:a.jsx(ZZ,{})}):null}function c3e({children:e}){return D(n=>n(ue).getEditorSettings().disablePostFormats,[])?null:a.jsx(Ha,{supportKeys:"post-formats",children:e})}const b9=[{id:"aside",caption:m("Aside")},{id:"audio",caption:m("Audio")},{id:"chat",caption:m("Chat")},{id:"gallery",caption:m("Gallery")},{id:"image",caption:m("Image")},{id:"link",caption:m("Link")},{id:"quote",caption:m("Quote")},{id:"standard",caption:m("Standard")},{id:"status",caption:m("Status")},{id:"video",caption:m("Video")}].sort((e,t)=>{const n=e.caption.toUpperCase(),o=t.caption.toUpperCase();return no?1:0});function l3e(){const t=`post-format-selector-${He(l3e)}`,{postFormat:n,suggestedFormat:o,supportedFormats:r}=D(u=>{const{getEditedPostAttribute:d,getSuggestedPostFormat:p}=u(ue),f=d("format"),b=u(ce).getThemeSupports();return{postFormat:f??"standard",suggestedFormat:p(),supportedFormats:b.formats}},[]),s=b9.filter(u=>r?.includes(u.id)||n===u.id),i=s.find(u=>u.id===o),{editPost:c}=ae(ue),l=u=>c({format:u});return a.jsx(c3e,{children:a.jsxs("div",{className:"editor-post-format",children:[a.jsx(kf,{className:"editor-post-format__options",label:m("Post Format"),selected:n,onChange:u=>l(u),id:t,options:s.map(u=>({label:u.caption,value:u.id})),hideLabelFromVision:!0}),i&&i.id!==n&&a.jsx("p",{className:"editor-post-format__suggestion",children:a.jsx(fe,{__next40pxDefaultSize:!1,variant:"link",onClick:()=>l(i.id),children:le(m("Apply suggested format: %s"),i.caption)})})]})})}function X$t({children:e}){const{lastRevisionId:t,revisionsCount:n}=D(o=>{const{getCurrentPostLastRevisionId:r,getCurrentPostRevisionsCount:s}=o(ue);return{lastRevisionId:r(),revisionsCount:s()}},[]);return!t||n<2?null:a.jsx(Ha,{supportKeys:"revisions",children:e})}function G$t(){return D(e=>{const{getCurrentPostLastRevisionId:t,getCurrentPostRevisionsCount:n}=e(ue);return{lastRevisionId:t(),revisionsCount:n()}},[])}function K$t(){const{lastRevisionId:e,revisionsCount:t}=G$t();return a.jsx(X$t,{children:a.jsx(Lr,{label:m("Revisions"),children:a.jsx(fe,{href:wt("revision.php",{revision:e}),className:"editor-private-post-last-revision__button",text:t,variant:"tertiary",size:"compact"})})})}function Y$t(e){let t=No(a.jsxs("div",{className:"editor-post-preview-button__interstitial-message",children:[a.jsxs(te,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 96 96",children:[a.jsx(J,{className:"outer",d:"M48 12c19.9 0 36 16.1 36 36S67.9 84 48 84 12 67.9 12 48s16.1-36 36-36",fill:"none"}),a.jsx(J,{className:"inner",d:"M69.5 46.4c0-3.9-1.4-6.7-2.6-8.8-1.6-2.6-3.1-4.9-3.1-7.5 0-2.9 2.2-5.7 5.4-5.7h.4C63.9 19.2 56.4 16 48 16c-11.2 0-21 5.7-26.7 14.4h2.1c3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3L40 67.5l7-20.9L42 33c-1.7-.1-3.3-.3-3.3-.3-1.7-.1-1.5-2.7.2-2.6 0 0 5.3.4 8.4.4 3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3l11.5 34.3 3.3-10.4c1.6-4.5 2.4-7.8 2.4-10.5zM16.1 48c0 12.6 7.3 23.5 18 28.7L18.8 35c-1.7 4-2.7 8.4-2.7 13zm32.5 2.8L39 78.6c2.9.8 5.9 1.3 9 1.3 3.7 0 7.3-.6 10.6-1.8-.1-.1-.2-.3-.2-.4l-9.8-26.9zM76.2 36c0 3.2-.6 6.9-2.4 11.4L64 75.6c9.5-5.5 15.9-15.8 15.9-27.6 0-5.5-1.4-10.8-3.9-15.3.1 1 .2 2.1.2 3.3z",fill:"none"})]}),a.jsx("p",{children:m("Generating preview…")})]}));t+=` - `,t=_n("editor.PostPreview.interstitialMarkup",t),e.write(t),e.title=m("Generating preview…"),e.close()}function u3e({className:e,textContent:t,forceIsAutosaveable:n,role:o,onPreview:r}){const{postId:s,currentPostLink:i,previewLink:c,isSaveable:l,isViewable:u}=D(h=>{var g;const z=h(ue),x=h(ce).getPostType(z.getCurrentPostType("type"));return{postId:z.getCurrentPostId(),currentPostLink:z.getCurrentPostAttribute("link"),previewLink:z.getEditedPostPreviewLink(),isSaveable:z.isEditedPostSaveable(),isViewable:(g=x?.viewable)!==null&&g!==void 0?g:!1}},[]),{__unstableSaveForPreview:d}=ae(ue);if(!u)return null;const p=`wp-preview-${s}`,f=async h=>{h.preventDefault();const g=window.open("",p);g.focus(),Y$t(g.document);const z=await d({forceIsAutosaveable:n});g.location=z,r?.()},b=c||i;return a.jsx(fe,{variant:e?void 0:"tertiary",className:e||"editor-post-preview",href:b,target:p,accessibleWhenDisabled:!0,disabled:!l,onClick:f,role:o,size:"compact",children:t||a.jsxs(a.Fragment,{children:[Oe("Preview","imperative verb"),a.jsx(Kt,{as:"span",children:m("(opens in a new tab)")})]})})}function Z$t(){const e=g0("medium","<"),{isPublished:t,isBeingScheduled:n,isSaving:o,isPublishing:r,hasPublishAction:s,isAutosaving:i,hasNonPostEntityChanges:c,postStatusHasChanged:l,postStatus:u}=D(d=>{var p;const{isCurrentPostPublished:f,isEditedPostBeingScheduled:b,isSavingPost:h,isPublishingPost:g,getCurrentPost:z,getCurrentPostType:y,isAutosavingPost:x,getPostEdits:v,getEditedPostAttribute:M}=d(ue);return{isPublished:f(),isBeingScheduled:b(),isSaving:h(),isPublishing:g(),hasPublishAction:(p=z()._links?.["wp:action-publish"])!==null&&p!==void 0?p:!1,postType:y(),isAutosaving:x(),hasNonPostEntityChanges:d(ue).hasNonPostEntityChanges(),postStatusHasChanged:!!v()?.status,postStatus:M("status")}},[]);return r?m("Publishing…"):(t||n)&&o&&!i?m("Saving…"):s?c||t||l&&!["future","publish"].includes(u)||!l&&u==="future"?m("Save"):m(n?"Schedule":"Publish"):m(e?"Publish":"Submit for Review")}const QZ=()=>{};class Q$t extends O.Component{constructor(t){super(t),this.buttonNode=O.createRef(),this.createOnClick=this.createOnClick.bind(this),this.closeEntitiesSavedStates=this.closeEntitiesSavedStates.bind(this),this.state={entitiesSavedStatesCallback:!1}}componentDidMount(){this.props.focusOnMount&&(this.timeoutID=setTimeout(()=>{this.buttonNode.current.focus()},0))}componentWillUnmount(){clearTimeout(this.timeoutID)}createOnClick(t){return(...n)=>{const{hasNonPostEntityChanges:o,setEntitiesSavedStatesCallback:r}=this.props;return o&&r?(this.setState({entitiesSavedStatesCallback:()=>t(...n)}),r(()=>this.closeEntitiesSavedStates),QZ):t(...n)}}closeEntitiesSavedStates(t){const{postType:n,postId:o}=this.props,{entitiesSavedStatesCallback:r}=this.state;this.setState({entitiesSavedStatesCallback:!1},()=>{t&&t.some(s=>s.kind==="postType"&&s.name===n&&s.key===o)&&r()})}render(){const{forceIsDirty:t,hasPublishAction:n,isBeingScheduled:o,isOpen:r,isPostSavingLocked:s,isPublishable:i,isPublished:c,isSaveable:l,isSaving:u,isAutoSaving:d,isToggle:p,savePostStatus:f,onSubmit:b=QZ,onToggle:h,visibility:g,hasNonPostEntityChanges:z,isSavingNonPostEntityChanges:y,postStatus:x,postStatusHasChanged:v}=this.props,M=(u||!l||s||!i&&!t)&&(!z||y),A=(c||u||!l||!i&&!t)&&(!z||y);let _="publish";v?_=x:n?g==="private"?_="private":o&&(_="future"):_="pending";const w=()=>{M||(b(),f(_))},k=()=>{A||h()},q={"aria-disabled":M,className:"editor-post-publish-button",isBusy:!d&&u,variant:"primary",onClick:this.createOnClick(w)},S={"aria-disabled":A,"aria-expanded":r,className:"editor-post-publish-panel__toggle",isBusy:u&&c,variant:"primary",size:"compact",onClick:this.createOnClick(k)},C=p?S:q;return a.jsx(a.Fragment,{children:a.jsx(fe,{ref:this.buttonNode,...C,className:`${C.className} editor-post-publish-button__button`,size:"compact",children:a.jsx(Z$t,{})})})}}const d3e=v0([Xo(e=>{var t;const{isSavingPost:n,isAutosavingPost:o,isEditedPostBeingScheduled:r,getEditedPostVisibility:s,isCurrentPostPublished:i,isEditedPostSaveable:c,isEditedPostPublishable:l,isPostSavingLocked:u,getCurrentPost:d,getCurrentPostType:p,getCurrentPostId:f,hasNonPostEntityChanges:b,isSavingNonPostEntityChanges:h,getEditedPostAttribute:g,getPostEdits:z}=e(ue);return{isSaving:n(),isAutoSaving:o(),isBeingScheduled:r(),visibility:s(),isSaveable:c(),isPostSavingLocked:u(),isPublishable:l(),isPublished:i(),hasPublishAction:(t=d()._links?.["wp:action-publish"])!==null&&t!==void 0?t:!1,postType:p(),postId:f(),postStatus:g("status"),postStatusHasChanged:z()?.status,hasNonPostEntityChanges:b(),isSavingNonPostEntityChanges:h()}}),Fi(e=>{const{editPost:t,savePost:n}=e(ue);return{savePostStatus:o=>{t({status:o},{undoIgnore:!0}),n()}}})])(Q$t),Vd={public:{label:m("Public"),info:m("Visible to everyone.")},private:{label:m("Private"),info:m("Only visible to site admins and editors.")},password:{label:m("Password protected"),info:m("Only those with the password can view this post.")}};function p3e({onClose:e}){const t=He(p3e),{status:n,visibility:o,password:r}=D(y=>({status:y(ue).getEditedPostAttribute("status"),visibility:y(ue).getEditedPostVisibility(),password:y(ue).getEditedPostAttribute("password")})),{editPost:s,savePost:i}=ae(ue),[c,l]=O.useState(!!r),[u,d]=O.useState(!1),p=()=>{s({status:o==="private"?"draft":n,password:""}),l(!1)},f=()=>{d(!0)},b=()=>{s({status:"private",password:""}),l(!1),d(!1),i()},h=()=>{d(!1)},g=()=>{s({status:o==="private"?"draft":n,password:r||""}),l(!0)},z=y=>{s({password:y.target.value})};return a.jsxs("div",{className:"editor-post-visibility",children:[a.jsx(zs,{title:m("Visibility"),help:m("Control how this post is viewed."),onClose:e}),a.jsxs("fieldset",{className:"editor-post-visibility__fieldset",children:[a.jsx(Kt,{as:"legend",children:m("Visibility")}),a.jsx(dC,{instanceId:t,value:"public",label:Vd.public.label,info:Vd.public.info,checked:o==="public"&&!c,onChange:p}),a.jsx(dC,{instanceId:t,value:"private",label:Vd.private.label,info:Vd.private.info,checked:o==="private",onChange:f}),a.jsx(dC,{instanceId:t,value:"password",label:Vd.password.label,info:Vd.password.info,checked:c,onChange:g}),c&&a.jsxs("div",{className:"editor-post-visibility__password",children:[a.jsx(Kt,{as:"label",htmlFor:`editor-post-visibility__password-input-${t}`,children:m("Create password")}),a.jsx("input",{className:"editor-post-visibility__password-input",id:`editor-post-visibility__password-input-${t}`,type:"text",onChange:z,value:r,placeholder:m("Use a secure password")})]})]}),a.jsx(bw,{isOpen:u,onConfirm:b,onCancel:h,confirmButtonText:m("Publish"),size:"medium",children:m("Would you like to privately publish this post now?")})]})}function dC({instanceId:e,value:t,label:n,info:o,...r}){return a.jsxs("div",{className:"editor-post-visibility__choice",children:[a.jsx("input",{type:"radio",name:`editor-post-visibility__setting-${e}`,value:t,id:`editor-post-${t}-${e}`,"aria-describedby":`editor-post-${t}-${e}-description`,className:"editor-post-visibility__radio",...r}),a.jsx("label",{htmlFor:`editor-post-${t}-${e}`,className:"editor-post-visibility__label",children:n}),a.jsx("p",{id:`editor-post-${t}-${e}-description`,className:"editor-post-visibility__info",children:o})]})}function J$t(){return eVt()}function eVt(){const e=D(t=>t(ue).getEditedPostVisibility());return Vd[e]?.label}const{PrivatePublishDateTimePicker:tVt}=gt(p0);function f3e(e){return a.jsx(b3e,{...e,showPopoverHeaderActions:!0,isCompact:!1})}function b3e({onClose:e,showPopoverHeaderActions:t,isCompact:n}){const{postDate:o,postType:r}=D(b=>({postDate:b(ue).getEditedPostAttribute("date"),postType:b(ue).getCurrentPostType()}),[]),{editPost:s}=ae(ue),i=b=>s({date:b}),[c,l]=O.useState(kG(new Date(o))),u=D(b=>b(ce).getEntityRecords("postType",r,{status:"publish,future",after:kG(c).toISOString(),before:iit(c).toISOString(),exclude:[b(ue).getCurrentPostId()],per_page:100,_fields:"id,date"}),[c,r]),d=O.useMemo(()=>(u||[]).map(({date:b})=>({date:new Date(b)})),[u]),p=vl(),f=/a(?!\\)/i.test(p.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return a.jsx(tVt,{currentDate:o,onChange:i,is12Hour:f,dateOrder:Oe("dmy","date order"),events:d,onMonthPreviewed:b=>l(lat(b)),onClose:e,isCompact:n,showPopoverHeaderActions:t})}function h3e(e){return GT(e)}function GT({full:e=!1}={}){const{date:t,isFloating:n}=D(o=>({date:o(ue).getEditedPostAttribute("date"),isFloating:o(ue).isEditedPostDateFloating()}),[]);return e?m3e(t):nVt(t,{isFloating:n})}function m3e(e){const t=ww(e),n=oVt(),o=po(Oe("F j, Y g:i a","post schedule full date format"),t);return ft()?`${n} ${o}`:`${o} ${n}`}function nVt(e,{isFloating:t=!1,now:n=new Date}={}){if(!e||t)return m("Immediately");if(!rVt(n))return m3e(e);const o=ww(e);if(JZ(o,n))return le(m("Today at %s"),po(Oe("g:i a","post schedule time format"),o));const r=new Date(n);return r.setDate(r.getDate()+1),JZ(o,r)?le(m("Tomorrow at %s"),po(Oe("g:i a","post schedule time format"),o)):o.getFullYear()===n.getFullYear()?po(Oe("F j g:i a","post schedule date format without year"),o):po(Oe("F j, Y g:i a","post schedule full date format"),o)}function oVt(){const{timezone:e}=vl();return e.abbr&&isNaN(Number(e.abbr))?e.abbr:`UTC${e.offset<0?"":"+"}${e.offsetFormatted}`}function rVt(e){const{timezone:t}=vl(),n=Number(t.offset),o=-1*(e.getTimezoneOffset()/60);return n===o}function JZ(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}const sVt=3,iVt={per_page:10,orderby:"count",order:"desc",hide_empty:!0,_fields:"id,name,count",context:"view"};function aVt({onSelect:e,taxonomy:t}){const{_terms:n,showTerms:o}=D(s=>{const i=s(ce).getEntityRecords("taxonomy",t.slug,iVt);return{_terms:i,showTerms:i?.length>=sVt}},[t.slug]);if(!o)return null;const r=FFt(n);return a.jsxs("div",{className:"editor-post-taxonomies__flat-term-most-used",children:[a.jsx(z0.VisualLabel,{as:"h3",className:"editor-post-taxonomies__flat-term-most-used-label",children:t.labels.most_used}),a.jsx("ul",{role:"list",className:"editor-post-taxonomies__flat-term-most-used-list",children:r.map(s=>a.jsx("li",{children:a.jsx(fe,{__next40pxDefaultSize:!1,variant:"link",onClick:()=>e(s),children:s.name})},s.id))})]})}const pC=[],M3e=100,eQ={per_page:M3e,_fields:"id,name",context:"view"},g3e=(e,t)=>Wz(e).toLowerCase()===Wz(t).toLowerCase(),fC=(e,t)=>e.map(n=>t.find(o=>g3e(o.name,n))?.id).filter(n=>n!==void 0);function cVt({slug:e,__nextHasNoMarginBottom:t}){var n,o;const[r,s]=O.useState([]),[i,c]=O.useState(""),l=Uo(c,500);t||Re("Bottom margin styles for wp.editor.PostTaxonomiesFlatTermSelector",{since:"6.7",version:"7.0",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."});const{terms:u,termIds:d,taxonomy:p,hasAssignAction:f,hasCreateAction:b,hasResolvedTerms:h}=D(W=>{var B,N;const{getCurrentPost:E,getEditedPostAttribute:L}=W(ue),{getEntityRecords:I,getTaxonomy:P,hasFinishedResolution:H}=W(ce),U=E(),X=P(e),Z=X?L(X.rest_base):pC,ne={...eQ,include:Z?.join(","),per_page:-1};return{hasCreateAction:X&&(B=U._links?.["wp:action-create-"+X.rest_base])!==null&&B!==void 0?B:!1,hasAssignAction:X&&(N=U._links?.["wp:action-assign-"+X.rest_base])!==null&&N!==void 0?N:!1,taxonomy:X,termIds:Z,terms:Z?.length?I("taxonomy",e,ne):pC,hasResolvedTerms:H("getEntityRecords",["taxonomy",e,ne])}},[e]),{searchResults:g}=D(W=>{const{getEntityRecords:B}=W(ce);return{searchResults:i?B("taxonomy",e,{...eQ,search:i}):pC}},[i,e]);O.useEffect(()=>{if(h){const W=(u??[]).map(B=>Wz(B.name));s(W)}},[u,h]);const z=O.useMemo(()=>(g??[]).map(W=>Wz(W.name)),[g]),{editPost:y}=ae(ue),{saveEntityRecord:x}=ae(ce),{createErrorNotice:v}=ae(Ze);if(!f)return null;async function M(W){try{const B=await x("taxonomy",e,W,{throwOnError:!0});return Zze(B)}catch(B){if(B.code!=="term_exists")throw B;return{id:B.data.term_id,name:W.name}}}function A(W){y({[p.rest_base]:W})}function _(W){const B=[...u??[],...g??[]],N=W.reduce((L,I)=>(L.some(P=>P.toLowerCase()===I.toLowerCase())||L.push(I),L),[]),E=N.filter(L=>!B.find(I=>g3e(I.name,L)));if(s(N),E.length===0){A(fC(N,B));return}b&&Promise.all(E.map(L=>M({name:L}))).then(L=>{const I=B.concat(L);A(fC(N,I))}).catch(L=>{v(L.message,{type:"snackbar"}),A(fC(N,B))})}function w(W){var B;if(d.includes(W.id))return;const N=[...d,W.id],E=m(e==="post_tag"?"Tag":"Term"),L=le(Oe("%s added","term"),(B=p?.labels?.singular_name)!==null&&B!==void 0?B:E);At(L,"assertive"),A(N)}const k=(n=p?.labels?.add_new_item)!==null&&n!==void 0?n:m(e==="post_tag"?"Add new tag":"Add new Term"),q=(o=p?.labels?.singular_name)!==null&&o!==void 0?o:m(e==="post_tag"?"Tag":"Term"),S=le(Oe("%s added","term"),q),C=le(Oe("%s removed","term"),q),T=le(Oe("Remove %s","term"),q);return a.jsxs(a.Fragment,{children:[a.jsx(wf,{__next40pxDefaultSize:!0,value:r,suggestions:z,onChange:_,onInputChange:l,maxSuggestions:M3e,label:k,messages:{added:S,removed:C,remove:T},__nextHasNoMarginBottom:t}),a.jsx(aVt,{taxonomy:p,onSelect:w})]})}const z3e=gd("editor.PostTaxonomyType")(cVt),lVt=()=>{const e=[m("Suggestion:"),a.jsx("span",{className:"editor-post-publish-panel__link",children:m("Add tags")},"label")];return a.jsxs(De,{initialOpen:!1,title:e,children:[a.jsx("p",{children:m("Tags help users and search engines navigate your site and find your content. Add a few keywords to describe your post.")}),a.jsx(z3e,{slug:"post_tag",__nextHasNoMarginBottom:!0})]})},uVt=()=>{const{hasTags:e,isPostTypeSupported:t}=D(o=>{const r=o(ue).getCurrentPostType(),s=o(ce).getTaxonomy("post_tag"),i=s?.types?.includes(r),c=s!==void 0;return{hasTags:!!(s&&o(ue).getEditedPostAttribute(s.rest_base))?.length,isPostTypeSupported:c&&i}},[]),[n]=O.useState(e);return t?n?null:a.jsx(lVt,{}):null},dVt=(e,t)=>b9.filter(o=>e?.includes(o.id)).find(o=>o.id===t),pVt=({suggestedPostFormat:e,suggestionText:t,onUpdatePostFormat:n})=>a.jsx(fe,{__next40pxDefaultSize:!1,variant:"link",onClick:()=>n(e),children:t});function fVt(){const{currentPostFormat:e,suggestion:t}=D(s=>{var i;const{getEditedPostAttribute:c,getSuggestedPostFormat:l}=s(ue),u=(i=s(ce).getThemeSupports().formats)!==null&&i!==void 0?i:[];return{currentPostFormat:c("format"),suggestion:dVt(u,l())}},[]),{editPost:n}=ae(ue),o=s=>n({format:s}),r=[m("Suggestion:"),a.jsx("span",{className:"editor-post-publish-panel__link",children:m("Use a post format")},"label")];return!t||t.id===e?null:a.jsxs(De,{initialOpen:!1,title:r,children:[a.jsx("p",{children:m("Your theme uses post formats to highlight different kinds of content, like images or videos. Apply a post format to see this special styling.")}),a.jsx("p",{children:a.jsx(pVt,{onUpdatePostFormat:o,suggestedPostFormat:t.id,suggestionText:le(m('Apply the "%1$s" format.'),t.caption)})})]})}const tQ={per_page:-1,orderby:"name",order:"asc",_fields:"id,name,parent",context:"view"},bVt=8,nQ=[];function hVt(e,t){const n=s=>t.indexOf(s.id)!==-1?!0:s.children===void 0?!1:s.children.map(n).filter(i=>i).length>0,o=(s,i)=>{const c=n(s),l=n(i);return c===l?0:c&&!l?-1:!c&&l?1:0},r=[...e];return r.sort(o),r}function mVt(e,t,n){return e.find(o=>(!o.parent&&!t||parseInt(o.parent)===parseInt(t))&&o.name.toLowerCase()===n.toLowerCase())}function MVt(e){const t=n=>{if(e==="")return n;const o={...n};return o.children.length>0&&(o.children=o.children.map(t).filter(r=>r)),o.name.toLowerCase().indexOf(e.toLowerCase())!==-1||o.children.length>0?o:!1};return t}function gVt({slug:e}){var t,n;const[o,r]=O.useState(!1),[s,i]=O.useState(""),[c,l]=O.useState(""),[u,d]=O.useState(!1),[p,f]=O.useState(""),[b,h]=O.useState([]),g=Uo(At,500),{hasCreateAction:z,hasAssignAction:y,terms:x,loading:v,availableTerms:M,taxonomy:A}=D(ie=>{var se,be;const{getCurrentPost:ye,getEditedPostAttribute:xe}=ie(ue),{getTaxonomy:K,getEntityRecords:pe,isResolving:G}=ie(ce),re=K(e),Me=ye();return{hasCreateAction:re&&(se=Me._links?.["wp:action-create-"+re.rest_base])!==null&&se!==void 0?se:!1,hasAssignAction:re&&(be=Me._links?.["wp:action-assign-"+re.rest_base])!==null&&be!==void 0?be:!1,terms:re?xe(re.rest_base):nQ,loading:G("getEntityRecords",["taxonomy",e,tQ]),availableTerms:pe("taxonomy",e,tQ)||nQ,taxonomy:re}},[e]),{editPost:_}=ae(ue),{saveEntityRecord:w}=ae(ce),k=O.useMemo(()=>hVt(Yze(M),x),[M]),{createErrorNotice:q}=ae(Ze);if(!y)return null;const S=ie=>w("taxonomy",e,ie,{throwOnError:!0}),C=ie=>{_({[A.rest_base]:ie})},T=ie=>{const be=x.includes(ie)?x.filter(ye=>ye!==ie):[...x,ie];C(be)},W=ie=>{i(ie)},B=ie=>{l(ie)},N=()=>{d(!u)},E=async ie=>{var se;if(ie.preventDefault(),s===""||o)return;const be=mVt(M,c,s);if(be){x.some(pe=>pe===be.id)||C([...x,be.id]),i(""),l("");return}r(!0);let ye;try{ye=await S({name:s,parent:c||void 0})}catch(pe){q(pe.message,{type:"snackbar"});return}const xe=m(e==="category"?"Category":"Term"),K=le(Oe("%s added","term"),(se=A?.labels?.singular_name)!==null&&se!==void 0?se:xe);At(K,"assertive"),r(!1),i(""),l(""),C([...x,ye.id])},L=ie=>{const se=k.map(MVt(ie)).filter(K=>K),be=K=>{let pe=0;for(let G=0;Gie.map(se=>a.jsxs("div",{className:"editor-post-taxonomies__hierarchical-terms-choice",children:[a.jsx(Bo,{__nextHasNoMarginBottom:!0,checked:x.indexOf(se.id)!==-1,onChange:()=>{const be=parseInt(se.id,10);T(be)},label:kt(se.name)}),!!se.children.length&&a.jsx("div",{className:"editor-post-taxonomies__hierarchical-terms-subchoices",children:I(se.children)})]},se.id)),P=(ie,se,be)=>{var ye;return(ye=A?.labels?.[ie])!==null&&ye!==void 0?ye:e==="category"?se:be},H=P("add_new_item",m("Add new category"),m("Add new term")),U=P("new_item_name",m("Add new category"),m("Add new term")),X=P("parent_item",m("Parent Category"),m("Parent Term")),Z=`— ${X} —`,ne=H,oe=(t=A?.labels?.search_items)!==null&&t!==void 0?t:m("Search Terms"),Y=(n=A?.name)!==null&&n!==void 0?n:m("Terms"),ee=M.length>=bVt;return a.jsxs(Q0,{direction:"column",gap:"4",children:[ee&&a.jsx(xl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:oe,value:p,onChange:L}),a.jsx("div",{className:"editor-post-taxonomies__hierarchical-terms-list",tabIndex:"0",role:"group","aria-label":Y,children:I(p!==""?b:k)}),!v&&z&&a.jsx(Ht,{children:a.jsx(fe,{__next40pxDefaultSize:!1,onClick:N,className:"editor-post-taxonomies__hierarchical-terms-add","aria-expanded":u,variant:"link",children:H})}),u&&a.jsx("form",{onSubmit:E,children:a.jsxs(Q0,{direction:"column",gap:"4",children:[a.jsx($t,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:"editor-post-taxonomies__hierarchical-terms-input",label:U,value:s,onChange:W,required:!0}),!!M.length&&a.jsx(bj,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:X,noOptionLabel:Z,onChange:B,selectedId:c,tree:k}),a.jsx(Ht,{children:a.jsx(fe,{__next40pxDefaultSize:!0,variant:"secondary",type:"submit",className:"editor-post-taxonomies__hierarchical-terms-submit",children:ne})})]})})]})}const O3e=gd("editor.PostTaxonomyType")(gVt);function zVt(){const e=D(r=>{const s=r(ue).getCurrentPostType(),{canUser:i,getEntityRecord:c,getTaxonomy:l}=r(ce),u=l("category"),d=i("read",{kind:"root",name:"site"})?c("root","site")?.default_category:void 0,p=d?c("taxonomy","category",d):void 0,f=u&&u.types.some(h=>h===s),b=u&&r(ue).getEditedPostAttribute(u.rest_base);return!!u&&!!p&&f&&(b?.length===0||b?.length===1&&p?.id===b[0])},[]),[t,n]=O.useState(!1);if(O.useEffect(()=>{e&&n(!0)},[e]),!t)return null;const o=[m("Suggestion:"),a.jsx("span",{className:"editor-post-publish-panel__link",children:m("Assign a category")},"label")];return a.jsxs(De,{initialOpen:!1,title:o,children:[a.jsx("p",{children:m("Categories provide a helpful way to group related posts together and to quickly tell readers what a post is about.")}),a.jsx(O3e,{slug:"category"})]})}function A3e(e){const t=[];return e.forEach(n=>{t.push(n),t.push(...A3e(n.innerBlocks))}),t}function OVt(e){const{selectBlock:t}=ae(F);return a.jsx(Hn.img,{tabIndex:0,role:"button","aria-label":m("Select image block."),onClick:()=>{t(e.clientId)},onKeyDown:n=>{(n.key==="Enter"||n.key===" ")&&(t(e.clientId),n.preventDefault())},alt:e.attributes.alt,src:e.attributes.url,animate:{opacity:1},exit:{opacity:0,scale:0},style:{width:"36px",height:"36px",objectFit:"cover",borderRadius:"2px",cursor:"pointer"},whileHover:{scale:1.08}},e.clientId)}function AVt(){const[e,t]=O.useState(!1),[n,o]=O.useState(!1),[r,s]=O.useState(!1),{editorBlocks:i,mediaUpload:c}=D(f=>({editorBlocks:f(F).getBlocks(),mediaUpload:f(F).getSettings().mediaUpload}),[]),l=A3e(i).filter(f=>f.name==="core/image"&&f.attributes.url&&!f.attributes.id),{updateBlockAttributes:u}=ae(F);if(!c||!l.length)return null;const d=[m("Suggestion:"),a.jsx("span",{className:"editor-post-publish-panel__link",children:m("External media")},"label")];function p(){t(!0),s(!1),Promise.all(l.map(f=>window.fetch(f.attributes.url.includes("?")?f.attributes.url:f.attributes.url+"?").then(b=>b.blob()).then(b=>new Promise((h,g)=>{c({filesList:[b],onFileChange:([z])=>{n1(z.url)||(u(f.clientId,{id:z.id,url:z.url}),h())},onError(){g()}})}).then(()=>o(!0))).catch(()=>{s(!0)}))).finally(()=>{t(!1)})}return a.jsxs(De,{initialOpen:!0,title:d,children:[a.jsx("p",{children:m("Upload external images to the Media Library. Images from different domains may load slowly, display incorrectly, or be removed unexpectedly.")}),a.jsxs("div",{style:{display:"inline-flex",flexWrap:"wrap",gap:"8px"},children:[a.jsx(Lp,{onExitComplete:()=>o(!1),children:l.map(f=>a.jsx(OVt,{...f},f.clientId))}),e||n?a.jsx(u0,{}):a.jsx(fe,{__next40pxDefaultSize:!1,variant:"primary",onClick:p,children:m("Upload")})]}),r&&a.jsx("p",{children:m("Upload failed, try again.")})]})}function yVt({children:e}){const{isBeingScheduled:t,isRequestingSiteIcon:n,hasPublishAction:o,siteIconUrl:r,siteTitle:s,siteHome:i}=D(d=>{var p;const{getCurrentPost:f,isEditedPostBeingScheduled:b}=d(ue),{getEntityRecord:h,isResolving:g}=d(ce),z=h("root","__unstableBase",void 0)||{};return{hasPublishAction:(p=f()._links?.["wp:action-publish"])!==null&&p!==void 0?p:!1,isBeingScheduled:b(),isRequestingSiteIcon:g("getEntityRecord",["root","__unstableBase",void 0]),siteIconUrl:z.site_icon_url,siteTitle:z.name,siteHome:z.home&&Dz(z.home)}},[]);let c=a.jsx(xn,{className:"components-site-icon",size:"36px",icon:pQe});r&&(c=a.jsx("img",{alt:m("Site Icon"),className:"components-site-icon",src:r})),n&&(c=null);let l,u;return o?t?(l=m("Are you ready to schedule?"),u=m("Your work will be published at the specified date and time.")):(l=m("Are you ready to publish?"),u=m("Double-check your settings before publishing.")):(l=m("Are you ready to submit for review?"),u=m("When you’re ready, submit your work for review, and an Editor will be able to approve it for you.")),a.jsxs("div",{className:"editor-post-publish-panel__prepublish",children:[a.jsx("div",{children:a.jsx("strong",{children:l})}),a.jsx("p",{children:u}),a.jsxs("div",{className:"components-site-card",children:[c,a.jsxs("div",{className:"components-site-info",children:[a.jsx("span",{className:"components-site-name",children:kt(s)||m("(Untitled)")}),a.jsx("span",{className:"components-site-home",children:i})]})]}),a.jsx(AVt,{}),o&&a.jsxs(a.Fragment,{children:[a.jsx(De,{initialOpen:!1,title:[m("Visibility:"),a.jsx("span",{className:"editor-post-publish-panel__link",children:a.jsx(J$t,{})},"label")],children:a.jsx(p3e,{})}),a.jsx(De,{initialOpen:!1,title:[m("Publish:"),a.jsx("span",{className:"editor-post-publish-panel__link",children:a.jsx(h3e,{})},"label")],children:a.jsx(f3e,{})})]}),a.jsx(fVt,{}),a.jsx(uVt,{}),a.jsx(zVt,{}),e]})}const oQ="%postname%",rQ="%pagename%",vVt=e=>{const{slug:t}=e;return e.permalink_template.includes(oQ)?e.permalink_template.replace(oQ,t):e.permalink_template.includes(rQ)?e.permalink_template.replace(rQ,t):e.permalink_template};function xVt({text:e,onCopy:t,children:n}){const o=af(e,t);return a.jsx(fe,{__next40pxDefaultSize:!0,variant:"secondary",ref:o,children:n})}class _Vt extends O.Component{constructor(){super(...arguments),this.state={showCopyConfirmation:!1},this.onCopy=this.onCopy.bind(this),this.onSelectInput=this.onSelectInput.bind(this),this.postLink=O.createRef()}componentDidMount(){this.props.focusOnMount&&this.postLink.current.focus()}componentWillUnmount(){clearTimeout(this.dismissCopyConfirmation)}onCopy(){this.setState({showCopyConfirmation:!0}),clearTimeout(this.dismissCopyConfirmation),this.dismissCopyConfirmation=setTimeout(()=>{this.setState({showCopyConfirmation:!1})},4e3)}onSelectInput(t){t.target.select()}render(){const{children:t,isScheduled:n,post:o,postType:r}=this.props,s=r?.labels?.singular_name,i=r?.labels?.view_item,c=r?.labels?.add_new_item,l=o.status==="future"?vVt(o):o.link,u=wt("post-new.php",{post_type:o.type}),d=n?a.jsxs(a.Fragment,{children:[m("is now scheduled. It will go live on")," ",a.jsx(h3e,{}),"."]}):m("is now live.");return a.jsxs("div",{className:"post-publish-panel__postpublish",children:[a.jsxs(De,{className:"post-publish-panel__postpublish-header",children:[a.jsx("a",{ref:this.postLink,href:l,children:kt(o.title)||m("(no title)")})," ",d]}),a.jsxs(De,{children:[a.jsx("p",{className:"post-publish-panel__postpublish-subheader",children:a.jsx("strong",{children:m("What’s next?")})}),a.jsxs("div",{className:"post-publish-panel__postpublish-post-address-container",children:[a.jsx($t,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:"post-publish-panel__postpublish-post-address",readOnly:!0,label:le(m("%s address"),s),value:zg(l),onFocus:this.onSelectInput}),a.jsx("div",{className:"post-publish-panel__postpublish-post-address__copy-button-wrap",children:a.jsx(xVt,{text:l,onCopy:this.onCopy,children:this.state.showCopyConfirmation?m("Copied!"):m("Copy")})})]}),a.jsxs("div",{className:"post-publish-panel__postpublish-buttons",children:[!n&&a.jsx(fe,{variant:"primary",href:l,__next40pxDefaultSize:!0,children:i}),a.jsx(fe,{variant:n?"primary":"secondary",__next40pxDefaultSize:!0,href:u,children:c})]})]}),t]})}}const wVt=Xo(e=>{const{getEditedPostAttribute:t,getCurrentPost:n,isCurrentPostScheduled:o}=e(ue),{getPostType:r}=e(ce);return{post:n(),postType:r(t("type")),isScheduled:o()}})(_Vt);class kVt extends O.Component{constructor(){super(...arguments),this.onSubmit=this.onSubmit.bind(this)}componentDidUpdate(t){t.isPublished&&!this.props.isSaving&&this.props.isDirty&&this.props.onClose()}onSubmit(){const{onClose:t,hasPublishAction:n,isPostTypeViewable:o}=this.props;(!n||!o)&&t()}render(){const{forceIsDirty:t,isBeingScheduled:n,isPublished:o,isPublishSidebarEnabled:r,isScheduled:s,isSaving:i,isSavingNonPostEntityChanges:c,onClose:l,onTogglePublishSidebar:u,PostPublishExtension:d,PrePublishExtension:p,...f}=this.props,{hasPublishAction:b,isDirty:h,isPostTypeViewable:g,...z}=f,y=o||s&&n,x=!y&&!i,v=y&&!i;return a.jsxs("div",{className:"editor-post-publish-panel",...z,children:[a.jsx("div",{className:"editor-post-publish-panel__header",children:v?a.jsx(fe,{__next40pxDefaultSize:!1,onClick:l,icon:zl,label:m("Close panel")}):a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"editor-post-publish-panel__header-publish-button",children:a.jsx(d3e,{focusOnMount:!0,onSubmit:this.onSubmit,forceIsDirty:t})}),a.jsx("div",{className:"editor-post-publish-panel__header-cancel-button",children:a.jsx(fe,{accessibleWhenDisabled:!0,disabled:c,onClick:l,variant:"secondary",size:"compact",children:m("Cancel")})})]})}),a.jsxs("div",{className:"editor-post-publish-panel__content",children:[x&&a.jsx(yVt,{children:p&&a.jsx(p,{})}),v&&a.jsx(wVt,{focusOnMount:!0,children:d&&a.jsx(d,{})}),i&&a.jsx(u0,{})]}),a.jsx("div",{className:"editor-post-publish-panel__footer",children:a.jsx(Bo,{__nextHasNoMarginBottom:!0,label:m("Always show pre-publish checks."),checked:r,onChange:u})})]})}}const qVt=v0([Xo(e=>{var t;const{getPostType:n}=e(ce),{getCurrentPost:o,getEditedPostAttribute:r,isCurrentPostPublished:s,isCurrentPostScheduled:i,isEditedPostBeingScheduled:c,isEditedPostDirty:l,isAutosavingPost:u,isSavingPost:d,isSavingNonPostEntityChanges:p}=e(ue),{isPublishSidebarEnabled:f}=e(ue),b=n(r("type"));return{hasPublishAction:(t=o()._links?.["wp:action-publish"])!==null&&t!==void 0?t:!1,isPostTypeViewable:b?.viewable,isBeingScheduled:c(),isDirty:l(),isPublished:s(),isPublishSidebarEnabled:f(),isSaving:d()&&!u(),isSavingNonPostEntityChanges:p(),isScheduled:i()}}),Fi((e,{isPublishSidebarEnabled:t})=>{const{disablePublishSidebar:n,enablePublishSidebar:o}=e(ue);return{onTogglePublishSidebar:()=>{t?n():o()}}}),iht,oht])(kVt);function SVt({children:e}){const{hasStickyAction:t,postType:n}=D(o=>{var r;return{hasStickyAction:(r=o(ue).getCurrentPost()._links?.["wp:action-sticky"])!==null&&r!==void 0?r:!1,postType:o(ue).getCurrentPostType()}},[]);return n!=="post"||!t?null:e}function CVt(){const e=D(n=>{var o;return(o=n(ue).getEditedPostAttribute("sticky"))!==null&&o!==void 0?o:!1},[]),{editPost:t}=ae(ue);return a.jsx(SVt,{children:a.jsx(Bo,{className:"editor-post-sticky__checkbox-control",label:m("Sticky"),help:m("Pin this post to the top of the blog"),checked:e,onChange:()=>t({sticky:!e}),__nextHasNoMarginBottom:!0})})}const my={"auto-draft":{label:m("Draft"),icon:vX},draft:{label:m("Draft"),icon:vX},pending:{label:m("Pending"),icon:OZe},private:{label:m("Private"),icon:mZe},future:{label:m("Scheduled"),icon:LZe},publish:{label:m("Published"),icon:SZe}},y3e=[{label:m("Draft"),value:"draft",description:m("Not ready to publish.")},{label:m("Pending"),value:"pending",description:m("Waiting for review before publishing.")},{label:m("Private"),value:"private",description:m("Only visible to site admins and editors.")},{label:m("Scheduled"),value:"future",description:m("Publish automatically on a chosen date.")},{label:m("Published"),value:"publish",description:m("Visible to everyone.")}],RVt=[d1,vo,ul,th];function v3e(){const{status:e,date:t,password:n,postId:o,postType:r,canEdit:s}=D(z=>{var y;const{getEditedPostAttribute:x,getCurrentPostId:v,getCurrentPostType:M,getCurrentPost:A}=z(ue);return{status:x("status"),date:x("date"),password:x("password"),postId:v(),postType:M(),canEdit:(y=A()._links?.["wp:action-publish"])!==null&&y!==void 0?y:!1}},[]),[i,c]=O.useState(!!n),l=He(v3e,"editor-change-status__password-input"),{editEntityRecord:u}=ae(ce),[d,p]=O.useState(null),f=O.useMemo(()=>({anchor:d,"aria-label":m("Status & visibility"),headerTitle:m("Status & visibility"),placement:"left-start",offset:36,shift:!0}),[d]);if(RVt.includes(r))return null;const b=({status:z=e,password:y=n,date:x=t})=>{u("postType",r,o,{status:z,date:x,password:y})},h=z=>{c(z),z||b({password:""})},g=z=>{let y=t,x=n;e==="future"&&new Date(t)>new Date&&(y=null),z==="private"&&n&&(x=""),b({status:z,date:y,password:x})};return a.jsx(Lr,{label:m("Status"),ref:p,children:s?a.jsx(B0,{className:"editor-post-status",contentClassName:"editor-change-status__content",popoverProps:f,focusOnMount:!0,renderToggle:({onToggle:z,isOpen:y})=>a.jsx(fe,{variant:"tertiary",size:"compact",onClick:z,icon:my[e]?.icon,"aria-label":le(m("Change status: %s"),my[e]?.label),"aria-expanded":y,children:my[e]?.label}),renderContent:({onClose:z})=>a.jsxs(a.Fragment,{children:[a.jsx(zs,{title:m("Status & visibility"),onClose:z}),a.jsx("form",{children:a.jsxs(Ye,{spacing:4,children:[a.jsx(kf,{className:"editor-change-status__options",hideLabelFromVision:!0,label:m("Status"),options:y3e,onChange:g,selected:e==="auto-draft"?"draft":e}),e==="future"&&a.jsx("div",{className:"editor-change-status__publish-date-wrapper",children:a.jsx(b3e,{showPopoverHeaderActions:!1,isCompact:!0})}),e!=="private"&&a.jsxs(Ye,{as:"fieldset",spacing:4,className:"editor-change-status__password-fieldset",children:[a.jsx(Bo,{__nextHasNoMarginBottom:!0,label:m("Password protected"),help:m("Only visible to those who know the password"),checked:i,onChange:h}),i&&a.jsx("div",{className:"editor-change-status__password-input",children:a.jsx($t,{label:m("Password"),onChange:y=>b({password:y}),value:n,placeholder:m("Use a secure password"),type:"text",id:l,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,maxLength:255})})]}),a.jsx(CVt,{})]})})]})}):a.jsx("div",{className:"editor-post-status is-read-only",children:my[e]?.label})})}function WVt({forceIsDirty:e}){const[t,n]=O.useState(!1),o=g0("small"),{isAutosaving:r,isDirty:s,isNew:i,isPublished:c,isSaveable:l,isSaving:u,isScheduled:d,hasPublishAction:p,showIconLabels:f,postStatus:b,postStatusHasChanged:h}=D(q=>{var S;const{isEditedPostNew:C,isCurrentPostPublished:T,isCurrentPostScheduled:W,isEditedPostDirty:B,isSavingPost:N,isEditedPostSaveable:E,getCurrentPost:L,isAutosavingPost:I,getEditedPostAttribute:P,getPostEdits:H}=q(ue),{get:U}=q(Qe);return{isAutosaving:I(),isDirty:e||B(),isNew:C(),isPublished:T(),isSaving:N(),isSaveable:E(),isScheduled:W(),hasPublishAction:(S=L()?._links?.["wp:action-publish"])!==null&&S!==void 0?S:!1,showIconLabels:U("core","showIconLabels"),postStatus:P("status"),postStatusHasChanged:!!H()?.status}},[e]),g=b==="pending",{savePost:z}=ae(ue),y=t1(u);if(O.useEffect(()=>{let q;return y&&!u&&(n(!0),q=setTimeout(()=>{n(!1)},1e3)),()=>clearTimeout(q)},[u]),!p&&g)return null;const x=!["pending","draft","auto-draft"].includes(b)&&y3e.map(({value:q})=>q).includes(b);if(c||d||x||h&&["pending","draft"].includes(b))return null;const v=m(g?"Save as pending":"Save draft"),M=m("Save"),A=t||!i&&!s,_=u||A,w=u||A||!l;let k;return u?k=m(r?"Autosaving":"Saving"):A?k=m("Saved"):o?k=v:f&&(k=M),a.jsxs(fe,{className:l||u?$({"editor-post-save-draft":!_,"editor-post-saved-state":_,"is-saving":u,"is-autosaving":r,"is-saved":A,[pae({type:"loading"})]:u}):void 0,onClick:w?void 0:()=>z(),shortcut:w?void 0:Jo.primary("s"),variant:"tertiary",size:"compact",icon:o?void 0:vYe,label:k||v,"aria-disabled":w,children:[_&&a.jsx(t0,{icon:A?no:xYe}),k]})}function TVt({children:e}){return D(n=>{var o;return(o=n(ue).getCurrentPost()._links?.["wp:action-publish"])!==null&&o!==void 0?o:!1},[])?e:null}const EVt=[d1,vo,ul,th];function BVt(){const[e,t]=O.useState(null),n=D(i=>i(ue).getCurrentPostType(),[]),o=O.useMemo(()=>({anchor:e,"aria-label":m("Change publish date"),placement:"left-start",offset:36,shift:!0}),[e]),r=GT(),s=GT({full:!0});return EVt.includes(n)?null:a.jsx(TVt,{children:a.jsx(Lr,{label:m("Publish"),ref:t,children:a.jsx(B0,{popoverProps:o,focusOnMount:!0,className:"editor-post-schedule__panel-dropdown",contentClassName:"editor-post-schedule__dialog",renderToggle:({onToggle:i,isOpen:c})=>a.jsx(fe,{size:"compact",className:"editor-post-schedule__dialog-toggle",variant:"tertiary",tooltipPosition:"middle left",onClick:i,"aria-label":le(m("Change date: %s"),r),label:s,showTooltip:r!==s,"aria-expanded":c,children:r}),renderContent:({onClose:i})=>a.jsx(f3e,{onClose:i})})})})}function NVt(){const{syncStatus:e,postType:t}=D(n=>{const{getEditedPostAttribute:o}=n(ue);return{syncStatus:o("meta")?.wp_pattern_sync_status==="unsynced"?"unsynced":o("wp_pattern_sync_status"),postType:o("type")}});return t!=="wp_block"?null:a.jsx(Lr,{label:m("Sync status"),children:a.jsx("div",{className:"editor-post-sync-status__value",children:Oe(e==="unsynced"?"Not synced":"Synced","pattern (singular)")})})}const LVt=e=>e;function x3e({taxonomyWrapper:e=LVt}){const{postType:t,taxonomies:n}=D(r=>({postType:r(ue).getCurrentPostType(),taxonomies:r(ce).getTaxonomies({per_page:-1})}),[]);return(n??[]).filter(r=>r.types.includes(t)&&r.visibility?.show_ui).map(r=>{const s=r.hierarchical?O3e:z3e,i={slug:r.slug,...r.hierarchical?{}:{__nextHasNoMarginBottom:!0}};return a.jsx(O.Fragment,{children:e(a.jsx(s,{...i}),r)},`taxonomy-${r.slug}`)})}function jVt({children:e}){return D(n=>{const o=n(ue).getCurrentPostType();return n(ce).getTaxonomies({per_page:-1})?.some(s=>s.types.includes(o))},[])?e:null}function PVt({taxonomy:e,children:t}){const n=e?.slug,o=n?`taxonomy-panel-${n}`:"",{isEnabled:r,isOpened:s}=D(l=>{const{isEditorPanelEnabled:u,isEditorPanelOpened:d}=l(ue);return{isEnabled:n?u(o):!1,isOpened:n?d(o):!1}},[o,n]),{toggleEditorPanelOpened:i}=ae(ue);if(!r)return null;const c=e?.labels?.menu_name;return c?a.jsx(De,{title:c,opened:s,onToggle:()=>i(o),children:t}):null}function IVt(){return a.jsx(jVt,{children:a.jsx(x3e,{taxonomyWrapper:(e,t)=>a.jsx(PVt,{taxonomy:t,children:e})})})}function _3e(){const e=He(_3e),{content:t,blocks:n,type:o,id:r}=D(c=>{const{getEditedEntityRecord:l}=c(ce),{getCurrentPostType:u,getCurrentPostId:d}=c(ue),p=u(),f=d(),b=l("postType",p,f);return{content:b?.content,blocks:b?.blocks,type:p,id:f}},[]),{editEntityRecord:s}=ae(ce),i=O.useMemo(()=>t instanceof Function?t({blocks:n}):n?pd(n):t,[t,n]);return a.jsxs(a.Fragment,{children:[a.jsx(Kt,{as:"label",htmlFor:`post-content-${e}`,children:m("Type text or HTML")}),a.jsx(Hj,{autoComplete:"off",dir:"auto",value:i,onChange:c=>{s("postType",o,r,{content:c.target.value,blocks:void 0,selection:void 0})},className:"editor-post-text-editor",id:`post-content-${e}`,placeholder:m("Start writing with text or HTML")})]})}const w3e="wp-block wp-block-post-title block-editor-block-list__block editor-post-title editor-post-title__input rich-text",k3e=/[\r\n]+/g;function q3e(e){const t=O.useRef(),{isCleanNewPost:n}=D(o=>{const{isCleanNewPost:r}=o(ue);return{isCleanNewPost:r()}},[]);return O.useImperativeHandle(e,()=>({focus:()=>{t?.current?.focus()}})),O.useEffect(()=>{if(!t.current)return;const{defaultView:o}=t.current.ownerDocument,{name:r,parent:s}=o,i=r==="editor-canvas"?s.document:o.document,{activeElement:c,body:l}=i;n&&(!c||l===c)&&t.current.focus()},[n]),{ref:t}}function S3e(){const{editPost:e}=ae(ue),{title:t}=D(o=>{const{getEditedPostAttribute:r}=o(ue);return{title:r("title")}},[]);function n(o){e({title:o})}return{title:t,setTitle:n}}function DVt(e,t){const{placeholder:n}=D(k=>{const{getSettings:q}=k(F),{titlePlaceholder:S}=q();return{placeholder:S}},[]),[o,r]=O.useState(!1),{ref:s}=q3e(t),{title:i,setTitle:c}=S3e(),[l,u]=O.useState({}),{clearSelectedBlock:d,insertBlocks:p,insertDefaultBlock:f}=ae(F),b=kt(n)||m("Add title"),{value:h,onChange:g,ref:z}=Qne({value:i,onChange(k){c(k.replace(k3e," "))},placeholder:b,selectionStart:l.start,selectionEnd:l.end,onSelectionChange(k,q){u(S=>{const{start:C,end:T}=S;return C===k&&T===q?S:{start:k,end:q}})},__unstableDisableFormats:!1});function y(k){p(k,0)}function x(){r(!0),d()}function v(){r(!1),u({})}function M(){f(void 0,void 0,0)}function A(k){k.keyCode===y1&&(k.preventDefault(),M())}function _(k){const q=k.clipboardData;let S="",C="";try{S=q.getData("text/plain"),C=q.getData("text/html")}catch{return}window.console.log(`Received HTML: + `,t=_n("editor.PostPreview.interstitialMarkup",t),e.write(t),e.title=m("Generating preview…"),e.close()}function u3e({className:e,textContent:t,forceIsAutosaveable:n,role:o,onPreview:r}){const{postId:s,currentPostLink:i,previewLink:c,isSaveable:l,isViewable:u}=D(h=>{var g;const z=h(ue),x=h(ce).getPostType(z.getCurrentPostType("type"));return{postId:z.getCurrentPostId(),currentPostLink:z.getCurrentPostAttribute("link"),previewLink:z.getEditedPostPreviewLink(),isSaveable:z.isEditedPostSaveable(),isViewable:(g=x?.viewable)!==null&&g!==void 0?g:!1}},[]),{__unstableSaveForPreview:d}=ae(ue);if(!u)return null;const p=`wp-preview-${s}`,f=async h=>{h.preventDefault();const g=window.open("",p);g.focus(),Y$t(g.document);const z=await d({forceIsAutosaveable:n});g.location=z,r?.()},b=c||i;return a.jsx(fe,{variant:e?void 0:"tertiary",className:e||"editor-post-preview",href:b,target:p,accessibleWhenDisabled:!0,disabled:!l,onClick:f,role:o,size:"compact",children:t||a.jsxs(a.Fragment,{children:[Oe("Preview","imperative verb"),a.jsx(Kt,{as:"span",children:m("(opens in a new tab)")})]})})}function Z$t(){const e=g0("medium","<"),{isPublished:t,isBeingScheduled:n,isSaving:o,isPublishing:r,hasPublishAction:s,isAutosaving:i,hasNonPostEntityChanges:c,postStatusHasChanged:l,postStatus:u}=D(d=>{var p;const{isCurrentPostPublished:f,isEditedPostBeingScheduled:b,isSavingPost:h,isPublishingPost:g,getCurrentPost:z,getCurrentPostType:y,isAutosavingPost:x,getPostEdits:v,getEditedPostAttribute:M}=d(ue);return{isPublished:f(),isBeingScheduled:b(),isSaving:h(),isPublishing:g(),hasPublishAction:(p=z()._links?.["wp:action-publish"])!==null&&p!==void 0?p:!1,postType:y(),isAutosaving:x(),hasNonPostEntityChanges:d(ue).hasNonPostEntityChanges(),postStatusHasChanged:!!v()?.status,postStatus:M("status")}},[]);return r?m("Publishing…"):(t||n)&&o&&!i?m("Saving…"):s?c||t||l&&!["future","publish"].includes(u)||!l&&u==="future"?m("Save"):m(n?"Schedule":"Publish"):m(e?"Publish":"Submit for Review")}const QZ=()=>{};class Q$t extends O.Component{constructor(t){super(t),this.buttonNode=O.createRef(),this.createOnClick=this.createOnClick.bind(this),this.closeEntitiesSavedStates=this.closeEntitiesSavedStates.bind(this),this.state={entitiesSavedStatesCallback:!1}}componentDidMount(){this.props.focusOnMount&&(this.timeoutID=setTimeout(()=>{this.buttonNode.current.focus()},0))}componentWillUnmount(){clearTimeout(this.timeoutID)}createOnClick(t){return(...n)=>{const{hasNonPostEntityChanges:o,setEntitiesSavedStatesCallback:r}=this.props;return o&&r?(this.setState({entitiesSavedStatesCallback:()=>t(...n)}),r(()=>this.closeEntitiesSavedStates),QZ):t(...n)}}closeEntitiesSavedStates(t){const{postType:n,postId:o}=this.props,{entitiesSavedStatesCallback:r}=this.state;this.setState({entitiesSavedStatesCallback:!1},()=>{t&&t.some(s=>s.kind==="postType"&&s.name===n&&s.key===o)&&r()})}render(){const{forceIsDirty:t,hasPublishAction:n,isBeingScheduled:o,isOpen:r,isPostSavingLocked:s,isPublishable:i,isPublished:c,isSaveable:l,isSaving:u,isAutoSaving:d,isToggle:p,savePostStatus:f,onSubmit:b=QZ,onToggle:h,visibility:g,hasNonPostEntityChanges:z,isSavingNonPostEntityChanges:y,postStatus:x,postStatusHasChanged:v}=this.props,M=(u||!l||s||!i&&!t)&&(!z||y),A=(c||u||!l||!i&&!t)&&(!z||y);let _="publish";v?_=x:n?g==="private"?_="private":o&&(_="future"):_="pending";const w=()=>{M||(b(),f(_))},k=()=>{A||h()},q={"aria-disabled":M,className:"editor-post-publish-button",isBusy:!d&&u,variant:"primary",onClick:this.createOnClick(w)},S={"aria-disabled":A,"aria-expanded":r,className:"editor-post-publish-panel__toggle",isBusy:u&&c,variant:"primary",size:"compact",onClick:this.createOnClick(k)},C=p?S:q;return a.jsx(a.Fragment,{children:a.jsx(fe,{ref:this.buttonNode,...C,className:`${C.className} editor-post-publish-button__button`,size:"compact",children:a.jsx(Z$t,{})})})}}const d3e=v0([Xo(e=>{var t;const{isSavingPost:n,isAutosavingPost:o,isEditedPostBeingScheduled:r,getEditedPostVisibility:s,isCurrentPostPublished:i,isEditedPostSaveable:c,isEditedPostPublishable:l,isPostSavingLocked:u,getCurrentPost:d,getCurrentPostType:p,getCurrentPostId:f,hasNonPostEntityChanges:b,isSavingNonPostEntityChanges:h,getEditedPostAttribute:g,getPostEdits:z}=e(ue);return{isSaving:n(),isAutoSaving:o(),isBeingScheduled:r(),visibility:s(),isSaveable:c(),isPostSavingLocked:u(),isPublishable:l(),isPublished:i(),hasPublishAction:(t=d()._links?.["wp:action-publish"])!==null&&t!==void 0?t:!1,postType:p(),postId:f(),postStatus:g("status"),postStatusHasChanged:z()?.status,hasNonPostEntityChanges:b(),isSavingNonPostEntityChanges:h()}}),Fi(e=>{const{editPost:t,savePost:n}=e(ue);return{savePostStatus:o=>{t({status:o},{undoIgnore:!0}),n()}}})])(Q$t),Vd={public:{label:m("Public"),info:m("Visible to everyone.")},private:{label:m("Private"),info:m("Only visible to site admins and editors.")},password:{label:m("Password protected"),info:m("Only those with the password can view this post.")}};function p3e({onClose:e}){const t=He(p3e),{status:n,visibility:o,password:r}=D(y=>({status:y(ue).getEditedPostAttribute("status"),visibility:y(ue).getEditedPostVisibility(),password:y(ue).getEditedPostAttribute("password")})),{editPost:s,savePost:i}=ae(ue),[c,l]=O.useState(!!r),[u,d]=O.useState(!1),p=()=>{s({status:o==="private"?"draft":n,password:""}),l(!1)},f=()=>{d(!0)},b=()=>{s({status:"private",password:""}),l(!1),d(!1),i()},h=()=>{d(!1)},g=()=>{s({status:o==="private"?"draft":n,password:r||""}),l(!0)},z=y=>{s({password:y.target.value})};return a.jsxs("div",{className:"editor-post-visibility",children:[a.jsx(Os,{title:m("Visibility"),help:m("Control how this post is viewed."),onClose:e}),a.jsxs("fieldset",{className:"editor-post-visibility__fieldset",children:[a.jsx(Kt,{as:"legend",children:m("Visibility")}),a.jsx(dC,{instanceId:t,value:"public",label:Vd.public.label,info:Vd.public.info,checked:o==="public"&&!c,onChange:p}),a.jsx(dC,{instanceId:t,value:"private",label:Vd.private.label,info:Vd.private.info,checked:o==="private",onChange:f}),a.jsx(dC,{instanceId:t,value:"password",label:Vd.password.label,info:Vd.password.info,checked:c,onChange:g}),c&&a.jsxs("div",{className:"editor-post-visibility__password",children:[a.jsx(Kt,{as:"label",htmlFor:`editor-post-visibility__password-input-${t}`,children:m("Create password")}),a.jsx("input",{className:"editor-post-visibility__password-input",id:`editor-post-visibility__password-input-${t}`,type:"text",onChange:z,value:r,placeholder:m("Use a secure password")})]})]}),a.jsx(bw,{isOpen:u,onConfirm:b,onCancel:h,confirmButtonText:m("Publish"),size:"medium",children:m("Would you like to privately publish this post now?")})]})}function dC({instanceId:e,value:t,label:n,info:o,...r}){return a.jsxs("div",{className:"editor-post-visibility__choice",children:[a.jsx("input",{type:"radio",name:`editor-post-visibility__setting-${e}`,value:t,id:`editor-post-${t}-${e}`,"aria-describedby":`editor-post-${t}-${e}-description`,className:"editor-post-visibility__radio",...r}),a.jsx("label",{htmlFor:`editor-post-${t}-${e}`,className:"editor-post-visibility__label",children:n}),a.jsx("p",{id:`editor-post-${t}-${e}-description`,className:"editor-post-visibility__info",children:o})]})}function J$t(){return eVt()}function eVt(){const e=D(t=>t(ue).getEditedPostVisibility());return Vd[e]?.label}const{PrivatePublishDateTimePicker:tVt}=gt(p0);function f3e(e){return a.jsx(b3e,{...e,showPopoverHeaderActions:!0,isCompact:!1})}function b3e({onClose:e,showPopoverHeaderActions:t,isCompact:n}){const{postDate:o,postType:r}=D(b=>({postDate:b(ue).getEditedPostAttribute("date"),postType:b(ue).getCurrentPostType()}),[]),{editPost:s}=ae(ue),i=b=>s({date:b}),[c,l]=O.useState(kG(new Date(o))),u=D(b=>b(ce).getEntityRecords("postType",r,{status:"publish,future",after:kG(c).toISOString(),before:iit(c).toISOString(),exclude:[b(ue).getCurrentPostId()],per_page:100,_fields:"id,date"}),[c,r]),d=O.useMemo(()=>(u||[]).map(({date:b})=>({date:new Date(b)})),[u]),p=vl(),f=/a(?!\\)/i.test(p.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return a.jsx(tVt,{currentDate:o,onChange:i,is12Hour:f,dateOrder:Oe("dmy","date order"),events:d,onMonthPreviewed:b=>l(lat(b)),onClose:e,isCompact:n,showPopoverHeaderActions:t})}function h3e(e){return GT(e)}function GT({full:e=!1}={}){const{date:t,isFloating:n}=D(o=>({date:o(ue).getEditedPostAttribute("date"),isFloating:o(ue).isEditedPostDateFloating()}),[]);return e?m3e(t):nVt(t,{isFloating:n})}function m3e(e){const t=ww(e),n=oVt(),o=po(Oe("F j, Y g:i a","post schedule full date format"),t);return ft()?`${n} ${o}`:`${o} ${n}`}function nVt(e,{isFloating:t=!1,now:n=new Date}={}){if(!e||t)return m("Immediately");if(!rVt(n))return m3e(e);const o=ww(e);if(JZ(o,n))return le(m("Today at %s"),po(Oe("g:i a","post schedule time format"),o));const r=new Date(n);return r.setDate(r.getDate()+1),JZ(o,r)?le(m("Tomorrow at %s"),po(Oe("g:i a","post schedule time format"),o)):o.getFullYear()===n.getFullYear()?po(Oe("F j g:i a","post schedule date format without year"),o):po(Oe("F j, Y g:i a","post schedule full date format"),o)}function oVt(){const{timezone:e}=vl();return e.abbr&&isNaN(Number(e.abbr))?e.abbr:`UTC${e.offset<0?"":"+"}${e.offsetFormatted}`}function rVt(e){const{timezone:t}=vl(),n=Number(t.offset),o=-1*(e.getTimezoneOffset()/60);return n===o}function JZ(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}const sVt=3,iVt={per_page:10,orderby:"count",order:"desc",hide_empty:!0,_fields:"id,name,count",context:"view"};function aVt({onSelect:e,taxonomy:t}){const{_terms:n,showTerms:o}=D(s=>{const i=s(ce).getEntityRecords("taxonomy",t.slug,iVt);return{_terms:i,showTerms:i?.length>=sVt}},[t.slug]);if(!o)return null;const r=FFt(n);return a.jsxs("div",{className:"editor-post-taxonomies__flat-term-most-used",children:[a.jsx(z0.VisualLabel,{as:"h3",className:"editor-post-taxonomies__flat-term-most-used-label",children:t.labels.most_used}),a.jsx("ul",{role:"list",className:"editor-post-taxonomies__flat-term-most-used-list",children:r.map(s=>a.jsx("li",{children:a.jsx(fe,{__next40pxDefaultSize:!1,variant:"link",onClick:()=>e(s),children:s.name})},s.id))})]})}const pC=[],M3e=100,eQ={per_page:M3e,_fields:"id,name",context:"view"},g3e=(e,t)=>Wz(e).toLowerCase()===Wz(t).toLowerCase(),fC=(e,t)=>e.map(n=>t.find(o=>g3e(o.name,n))?.id).filter(n=>n!==void 0);function cVt({slug:e,__nextHasNoMarginBottom:t}){var n,o;const[r,s]=O.useState([]),[i,c]=O.useState(""),l=Uo(c,500);t||Re("Bottom margin styles for wp.editor.PostTaxonomiesFlatTermSelector",{since:"6.7",version:"7.0",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."});const{terms:u,termIds:d,taxonomy:p,hasAssignAction:f,hasCreateAction:b,hasResolvedTerms:h}=D(W=>{var B,N;const{getCurrentPost:E,getEditedPostAttribute:L}=W(ue),{getEntityRecords:I,getTaxonomy:P,hasFinishedResolution:H}=W(ce),U=E(),X=P(e),Z=X?L(X.rest_base):pC,ne={...eQ,include:Z?.join(","),per_page:-1};return{hasCreateAction:X&&(B=U._links?.["wp:action-create-"+X.rest_base])!==null&&B!==void 0?B:!1,hasAssignAction:X&&(N=U._links?.["wp:action-assign-"+X.rest_base])!==null&&N!==void 0?N:!1,taxonomy:X,termIds:Z,terms:Z?.length?I("taxonomy",e,ne):pC,hasResolvedTerms:H("getEntityRecords",["taxonomy",e,ne])}},[e]),{searchResults:g}=D(W=>{const{getEntityRecords:B}=W(ce);return{searchResults:i?B("taxonomy",e,{...eQ,search:i}):pC}},[i,e]);O.useEffect(()=>{if(h){const W=(u??[]).map(B=>Wz(B.name));s(W)}},[u,h]);const z=O.useMemo(()=>(g??[]).map(W=>Wz(W.name)),[g]),{editPost:y}=ae(ue),{saveEntityRecord:x}=ae(ce),{createErrorNotice:v}=ae(Ze);if(!f)return null;async function M(W){try{const B=await x("taxonomy",e,W,{throwOnError:!0});return Zze(B)}catch(B){if(B.code!=="term_exists")throw B;return{id:B.data.term_id,name:W.name}}}function A(W){y({[p.rest_base]:W})}function _(W){const B=[...u??[],...g??[]],N=W.reduce((L,I)=>(L.some(P=>P.toLowerCase()===I.toLowerCase())||L.push(I),L),[]),E=N.filter(L=>!B.find(I=>g3e(I.name,L)));if(s(N),E.length===0){A(fC(N,B));return}b&&Promise.all(E.map(L=>M({name:L}))).then(L=>{const I=B.concat(L);A(fC(N,I))}).catch(L=>{v(L.message,{type:"snackbar"}),A(fC(N,B))})}function w(W){var B;if(d.includes(W.id))return;const N=[...d,W.id],E=m(e==="post_tag"?"Tag":"Term"),L=le(Oe("%s added","term"),(B=p?.labels?.singular_name)!==null&&B!==void 0?B:E);At(L,"assertive"),A(N)}const k=(n=p?.labels?.add_new_item)!==null&&n!==void 0?n:m(e==="post_tag"?"Add new tag":"Add new Term"),q=(o=p?.labels?.singular_name)!==null&&o!==void 0?o:m(e==="post_tag"?"Tag":"Term"),S=le(Oe("%s added","term"),q),C=le(Oe("%s removed","term"),q),T=le(Oe("Remove %s","term"),q);return a.jsxs(a.Fragment,{children:[a.jsx(wf,{__next40pxDefaultSize:!0,value:r,suggestions:z,onChange:_,onInputChange:l,maxSuggestions:M3e,label:k,messages:{added:S,removed:C,remove:T},__nextHasNoMarginBottom:t}),a.jsx(aVt,{taxonomy:p,onSelect:w})]})}const z3e=gd("editor.PostTaxonomyType")(cVt),lVt=()=>{const e=[m("Suggestion:"),a.jsx("span",{className:"editor-post-publish-panel__link",children:m("Add tags")},"label")];return a.jsxs(De,{initialOpen:!1,title:e,children:[a.jsx("p",{children:m("Tags help users and search engines navigate your site and find your content. Add a few keywords to describe your post.")}),a.jsx(z3e,{slug:"post_tag",__nextHasNoMarginBottom:!0})]})},uVt=()=>{const{hasTags:e,isPostTypeSupported:t}=D(o=>{const r=o(ue).getCurrentPostType(),s=o(ce).getTaxonomy("post_tag"),i=s?.types?.includes(r),c=s!==void 0;return{hasTags:!!(s&&o(ue).getEditedPostAttribute(s.rest_base))?.length,isPostTypeSupported:c&&i}},[]),[n]=O.useState(e);return t?n?null:a.jsx(lVt,{}):null},dVt=(e,t)=>b9.filter(o=>e?.includes(o.id)).find(o=>o.id===t),pVt=({suggestedPostFormat:e,suggestionText:t,onUpdatePostFormat:n})=>a.jsx(fe,{__next40pxDefaultSize:!1,variant:"link",onClick:()=>n(e),children:t});function fVt(){const{currentPostFormat:e,suggestion:t}=D(s=>{var i;const{getEditedPostAttribute:c,getSuggestedPostFormat:l}=s(ue),u=(i=s(ce).getThemeSupports().formats)!==null&&i!==void 0?i:[];return{currentPostFormat:c("format"),suggestion:dVt(u,l())}},[]),{editPost:n}=ae(ue),o=s=>n({format:s}),r=[m("Suggestion:"),a.jsx("span",{className:"editor-post-publish-panel__link",children:m("Use a post format")},"label")];return!t||t.id===e?null:a.jsxs(De,{initialOpen:!1,title:r,children:[a.jsx("p",{children:m("Your theme uses post formats to highlight different kinds of content, like images or videos. Apply a post format to see this special styling.")}),a.jsx("p",{children:a.jsx(pVt,{onUpdatePostFormat:o,suggestedPostFormat:t.id,suggestionText:le(m('Apply the "%1$s" format.'),t.caption)})})]})}const tQ={per_page:-1,orderby:"name",order:"asc",_fields:"id,name,parent",context:"view"},bVt=8,nQ=[];function hVt(e,t){const n=s=>t.indexOf(s.id)!==-1?!0:s.children===void 0?!1:s.children.map(n).filter(i=>i).length>0,o=(s,i)=>{const c=n(s),l=n(i);return c===l?0:c&&!l?-1:!c&&l?1:0},r=[...e];return r.sort(o),r}function mVt(e,t,n){return e.find(o=>(!o.parent&&!t||parseInt(o.parent)===parseInt(t))&&o.name.toLowerCase()===n.toLowerCase())}function MVt(e){const t=n=>{if(e==="")return n;const o={...n};return o.children.length>0&&(o.children=o.children.map(t).filter(r=>r)),o.name.toLowerCase().indexOf(e.toLowerCase())!==-1||o.children.length>0?o:!1};return t}function gVt({slug:e}){var t,n;const[o,r]=O.useState(!1),[s,i]=O.useState(""),[c,l]=O.useState(""),[u,d]=O.useState(!1),[p,f]=O.useState(""),[b,h]=O.useState([]),g=Uo(At,500),{hasCreateAction:z,hasAssignAction:y,terms:x,loading:v,availableTerms:M,taxonomy:A}=D(ie=>{var se,be;const{getCurrentPost:ye,getEditedPostAttribute:xe}=ie(ue),{getTaxonomy:K,getEntityRecords:pe,isResolving:G}=ie(ce),re=K(e),Me=ye();return{hasCreateAction:re&&(se=Me._links?.["wp:action-create-"+re.rest_base])!==null&&se!==void 0?se:!1,hasAssignAction:re&&(be=Me._links?.["wp:action-assign-"+re.rest_base])!==null&&be!==void 0?be:!1,terms:re?xe(re.rest_base):nQ,loading:G("getEntityRecords",["taxonomy",e,tQ]),availableTerms:pe("taxonomy",e,tQ)||nQ,taxonomy:re}},[e]),{editPost:_}=ae(ue),{saveEntityRecord:w}=ae(ce),k=O.useMemo(()=>hVt(Yze(M),x),[M]),{createErrorNotice:q}=ae(Ze);if(!y)return null;const S=ie=>w("taxonomy",e,ie,{throwOnError:!0}),C=ie=>{_({[A.rest_base]:ie})},T=ie=>{const be=x.includes(ie)?x.filter(ye=>ye!==ie):[...x,ie];C(be)},W=ie=>{i(ie)},B=ie=>{l(ie)},N=()=>{d(!u)},E=async ie=>{var se;if(ie.preventDefault(),s===""||o)return;const be=mVt(M,c,s);if(be){x.some(pe=>pe===be.id)||C([...x,be.id]),i(""),l("");return}r(!0);let ye;try{ye=await S({name:s,parent:c||void 0})}catch(pe){q(pe.message,{type:"snackbar"});return}const xe=m(e==="category"?"Category":"Term"),K=le(Oe("%s added","term"),(se=A?.labels?.singular_name)!==null&&se!==void 0?se:xe);At(K,"assertive"),r(!1),i(""),l(""),C([...x,ye.id])},L=ie=>{const se=k.map(MVt(ie)).filter(K=>K),be=K=>{let pe=0;for(let G=0;Gie.map(se=>a.jsxs("div",{className:"editor-post-taxonomies__hierarchical-terms-choice",children:[a.jsx(Bo,{__nextHasNoMarginBottom:!0,checked:x.indexOf(se.id)!==-1,onChange:()=>{const be=parseInt(se.id,10);T(be)},label:kt(se.name)}),!!se.children.length&&a.jsx("div",{className:"editor-post-taxonomies__hierarchical-terms-subchoices",children:I(se.children)})]},se.id)),P=(ie,se,be)=>{var ye;return(ye=A?.labels?.[ie])!==null&&ye!==void 0?ye:e==="category"?se:be},H=P("add_new_item",m("Add new category"),m("Add new term")),U=P("new_item_name",m("Add new category"),m("Add new term")),X=P("parent_item",m("Parent Category"),m("Parent Term")),Z=`— ${X} —`,ne=H,oe=(t=A?.labels?.search_items)!==null&&t!==void 0?t:m("Search Terms"),Y=(n=A?.name)!==null&&n!==void 0?n:m("Terms"),ee=M.length>=bVt;return a.jsxs(Q0,{direction:"column",gap:"4",children:[ee&&a.jsx(xl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:oe,value:p,onChange:L}),a.jsx("div",{className:"editor-post-taxonomies__hierarchical-terms-list",tabIndex:"0",role:"group","aria-label":Y,children:I(p!==""?b:k)}),!v&&z&&a.jsx(Ht,{children:a.jsx(fe,{__next40pxDefaultSize:!1,onClick:N,className:"editor-post-taxonomies__hierarchical-terms-add","aria-expanded":u,variant:"link",children:H})}),u&&a.jsx("form",{onSubmit:E,children:a.jsxs(Q0,{direction:"column",gap:"4",children:[a.jsx($t,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:"editor-post-taxonomies__hierarchical-terms-input",label:U,value:s,onChange:W,required:!0}),!!M.length&&a.jsx(bj,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:X,noOptionLabel:Z,onChange:B,selectedId:c,tree:k}),a.jsx(Ht,{children:a.jsx(fe,{__next40pxDefaultSize:!0,variant:"secondary",type:"submit",className:"editor-post-taxonomies__hierarchical-terms-submit",children:ne})})]})})]})}const O3e=gd("editor.PostTaxonomyType")(gVt);function zVt(){const e=D(r=>{const s=r(ue).getCurrentPostType(),{canUser:i,getEntityRecord:c,getTaxonomy:l}=r(ce),u=l("category"),d=i("read",{kind:"root",name:"site"})?c("root","site")?.default_category:void 0,p=d?c("taxonomy","category",d):void 0,f=u&&u.types.some(h=>h===s),b=u&&r(ue).getEditedPostAttribute(u.rest_base);return!!u&&!!p&&f&&(b?.length===0||b?.length===1&&p?.id===b[0])},[]),[t,n]=O.useState(!1);if(O.useEffect(()=>{e&&n(!0)},[e]),!t)return null;const o=[m("Suggestion:"),a.jsx("span",{className:"editor-post-publish-panel__link",children:m("Assign a category")},"label")];return a.jsxs(De,{initialOpen:!1,title:o,children:[a.jsx("p",{children:m("Categories provide a helpful way to group related posts together and to quickly tell readers what a post is about.")}),a.jsx(O3e,{slug:"category"})]})}function A3e(e){const t=[];return e.forEach(n=>{t.push(n),t.push(...A3e(n.innerBlocks))}),t}function OVt(e){const{selectBlock:t}=ae(F);return a.jsx(Hn.img,{tabIndex:0,role:"button","aria-label":m("Select image block."),onClick:()=>{t(e.clientId)},onKeyDown:n=>{(n.key==="Enter"||n.key===" ")&&(t(e.clientId),n.preventDefault())},alt:e.attributes.alt,src:e.attributes.url,animate:{opacity:1},exit:{opacity:0,scale:0},style:{width:"36px",height:"36px",objectFit:"cover",borderRadius:"2px",cursor:"pointer"},whileHover:{scale:1.08}},e.clientId)}function AVt(){const[e,t]=O.useState(!1),[n,o]=O.useState(!1),[r,s]=O.useState(!1),{editorBlocks:i,mediaUpload:c}=D(f=>({editorBlocks:f(F).getBlocks(),mediaUpload:f(F).getSettings().mediaUpload}),[]),l=A3e(i).filter(f=>f.name==="core/image"&&f.attributes.url&&!f.attributes.id),{updateBlockAttributes:u}=ae(F);if(!c||!l.length)return null;const d=[m("Suggestion:"),a.jsx("span",{className:"editor-post-publish-panel__link",children:m("External media")},"label")];function p(){t(!0),s(!1),Promise.all(l.map(f=>window.fetch(f.attributes.url.includes("?")?f.attributes.url:f.attributes.url+"?").then(b=>b.blob()).then(b=>new Promise((h,g)=>{c({filesList:[b],onFileChange:([z])=>{n1(z.url)||(u(f.clientId,{id:z.id,url:z.url}),h())},onError(){g()}})}).then(()=>o(!0))).catch(()=>{s(!0)}))).finally(()=>{t(!1)})}return a.jsxs(De,{initialOpen:!0,title:d,children:[a.jsx("p",{children:m("Upload external images to the Media Library. Images from different domains may load slowly, display incorrectly, or be removed unexpectedly.")}),a.jsxs("div",{style:{display:"inline-flex",flexWrap:"wrap",gap:"8px"},children:[a.jsx(Lp,{onExitComplete:()=>o(!1),children:l.map(f=>a.jsx(OVt,{...f},f.clientId))}),e||n?a.jsx(u0,{}):a.jsx(fe,{__next40pxDefaultSize:!1,variant:"primary",onClick:p,children:m("Upload")})]}),r&&a.jsx("p",{children:m("Upload failed, try again.")})]})}function yVt({children:e}){const{isBeingScheduled:t,isRequestingSiteIcon:n,hasPublishAction:o,siteIconUrl:r,siteTitle:s,siteHome:i}=D(d=>{var p;const{getCurrentPost:f,isEditedPostBeingScheduled:b}=d(ue),{getEntityRecord:h,isResolving:g}=d(ce),z=h("root","__unstableBase",void 0)||{};return{hasPublishAction:(p=f()._links?.["wp:action-publish"])!==null&&p!==void 0?p:!1,isBeingScheduled:b(),isRequestingSiteIcon:g("getEntityRecord",["root","__unstableBase",void 0]),siteIconUrl:z.site_icon_url,siteTitle:z.name,siteHome:z.home&&Dz(z.home)}},[]);let c=a.jsx(xn,{className:"components-site-icon",size:"36px",icon:pQe});r&&(c=a.jsx("img",{alt:m("Site Icon"),className:"components-site-icon",src:r})),n&&(c=null);let l,u;return o?t?(l=m("Are you ready to schedule?"),u=m("Your work will be published at the specified date and time.")):(l=m("Are you ready to publish?"),u=m("Double-check your settings before publishing.")):(l=m("Are you ready to submit for review?"),u=m("When you’re ready, submit your work for review, and an Editor will be able to approve it for you.")),a.jsxs("div",{className:"editor-post-publish-panel__prepublish",children:[a.jsx("div",{children:a.jsx("strong",{children:l})}),a.jsx("p",{children:u}),a.jsxs("div",{className:"components-site-card",children:[c,a.jsxs("div",{className:"components-site-info",children:[a.jsx("span",{className:"components-site-name",children:kt(s)||m("(Untitled)")}),a.jsx("span",{className:"components-site-home",children:i})]})]}),a.jsx(AVt,{}),o&&a.jsxs(a.Fragment,{children:[a.jsx(De,{initialOpen:!1,title:[m("Visibility:"),a.jsx("span",{className:"editor-post-publish-panel__link",children:a.jsx(J$t,{})},"label")],children:a.jsx(p3e,{})}),a.jsx(De,{initialOpen:!1,title:[m("Publish:"),a.jsx("span",{className:"editor-post-publish-panel__link",children:a.jsx(h3e,{})},"label")],children:a.jsx(f3e,{})})]}),a.jsx(fVt,{}),a.jsx(uVt,{}),a.jsx(zVt,{}),e]})}const oQ="%postname%",rQ="%pagename%",vVt=e=>{const{slug:t}=e;return e.permalink_template.includes(oQ)?e.permalink_template.replace(oQ,t):e.permalink_template.includes(rQ)?e.permalink_template.replace(rQ,t):e.permalink_template};function xVt({text:e,onCopy:t,children:n}){const o=af(e,t);return a.jsx(fe,{__next40pxDefaultSize:!0,variant:"secondary",ref:o,children:n})}class _Vt extends O.Component{constructor(){super(...arguments),this.state={showCopyConfirmation:!1},this.onCopy=this.onCopy.bind(this),this.onSelectInput=this.onSelectInput.bind(this),this.postLink=O.createRef()}componentDidMount(){this.props.focusOnMount&&this.postLink.current.focus()}componentWillUnmount(){clearTimeout(this.dismissCopyConfirmation)}onCopy(){this.setState({showCopyConfirmation:!0}),clearTimeout(this.dismissCopyConfirmation),this.dismissCopyConfirmation=setTimeout(()=>{this.setState({showCopyConfirmation:!1})},4e3)}onSelectInput(t){t.target.select()}render(){const{children:t,isScheduled:n,post:o,postType:r}=this.props,s=r?.labels?.singular_name,i=r?.labels?.view_item,c=r?.labels?.add_new_item,l=o.status==="future"?vVt(o):o.link,u=wt("post-new.php",{post_type:o.type}),d=n?a.jsxs(a.Fragment,{children:[m("is now scheduled. It will go live on")," ",a.jsx(h3e,{}),"."]}):m("is now live.");return a.jsxs("div",{className:"post-publish-panel__postpublish",children:[a.jsxs(De,{className:"post-publish-panel__postpublish-header",children:[a.jsx("a",{ref:this.postLink,href:l,children:kt(o.title)||m("(no title)")})," ",d]}),a.jsxs(De,{children:[a.jsx("p",{className:"post-publish-panel__postpublish-subheader",children:a.jsx("strong",{children:m("What’s next?")})}),a.jsxs("div",{className:"post-publish-panel__postpublish-post-address-container",children:[a.jsx($t,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:"post-publish-panel__postpublish-post-address",readOnly:!0,label:le(m("%s address"),s),value:zg(l),onFocus:this.onSelectInput}),a.jsx("div",{className:"post-publish-panel__postpublish-post-address__copy-button-wrap",children:a.jsx(xVt,{text:l,onCopy:this.onCopy,children:this.state.showCopyConfirmation?m("Copied!"):m("Copy")})})]}),a.jsxs("div",{className:"post-publish-panel__postpublish-buttons",children:[!n&&a.jsx(fe,{variant:"primary",href:l,__next40pxDefaultSize:!0,children:i}),a.jsx(fe,{variant:n?"primary":"secondary",__next40pxDefaultSize:!0,href:u,children:c})]})]}),t]})}}const wVt=Xo(e=>{const{getEditedPostAttribute:t,getCurrentPost:n,isCurrentPostScheduled:o}=e(ue),{getPostType:r}=e(ce);return{post:n(),postType:r(t("type")),isScheduled:o()}})(_Vt);class kVt extends O.Component{constructor(){super(...arguments),this.onSubmit=this.onSubmit.bind(this)}componentDidUpdate(t){t.isPublished&&!this.props.isSaving&&this.props.isDirty&&this.props.onClose()}onSubmit(){const{onClose:t,hasPublishAction:n,isPostTypeViewable:o}=this.props;(!n||!o)&&t()}render(){const{forceIsDirty:t,isBeingScheduled:n,isPublished:o,isPublishSidebarEnabled:r,isScheduled:s,isSaving:i,isSavingNonPostEntityChanges:c,onClose:l,onTogglePublishSidebar:u,PostPublishExtension:d,PrePublishExtension:p,...f}=this.props,{hasPublishAction:b,isDirty:h,isPostTypeViewable:g,...z}=f,y=o||s&&n,x=!y&&!i,v=y&&!i;return a.jsxs("div",{className:"editor-post-publish-panel",...z,children:[a.jsx("div",{className:"editor-post-publish-panel__header",children:v?a.jsx(fe,{__next40pxDefaultSize:!1,onClick:l,icon:zl,label:m("Close panel")}):a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"editor-post-publish-panel__header-publish-button",children:a.jsx(d3e,{focusOnMount:!0,onSubmit:this.onSubmit,forceIsDirty:t})}),a.jsx("div",{className:"editor-post-publish-panel__header-cancel-button",children:a.jsx(fe,{accessibleWhenDisabled:!0,disabled:c,onClick:l,variant:"secondary",size:"compact",children:m("Cancel")})})]})}),a.jsxs("div",{className:"editor-post-publish-panel__content",children:[x&&a.jsx(yVt,{children:p&&a.jsx(p,{})}),v&&a.jsx(wVt,{focusOnMount:!0,children:d&&a.jsx(d,{})}),i&&a.jsx(u0,{})]}),a.jsx("div",{className:"editor-post-publish-panel__footer",children:a.jsx(Bo,{__nextHasNoMarginBottom:!0,label:m("Always show pre-publish checks."),checked:r,onChange:u})})]})}}const qVt=v0([Xo(e=>{var t;const{getPostType:n}=e(ce),{getCurrentPost:o,getEditedPostAttribute:r,isCurrentPostPublished:s,isCurrentPostScheduled:i,isEditedPostBeingScheduled:c,isEditedPostDirty:l,isAutosavingPost:u,isSavingPost:d,isSavingNonPostEntityChanges:p}=e(ue),{isPublishSidebarEnabled:f}=e(ue),b=n(r("type"));return{hasPublishAction:(t=o()._links?.["wp:action-publish"])!==null&&t!==void 0?t:!1,isPostTypeViewable:b?.viewable,isBeingScheduled:c(),isDirty:l(),isPublished:s(),isPublishSidebarEnabled:f(),isSaving:d()&&!u(),isSavingNonPostEntityChanges:p(),isScheduled:i()}}),Fi((e,{isPublishSidebarEnabled:t})=>{const{disablePublishSidebar:n,enablePublishSidebar:o}=e(ue);return{onTogglePublishSidebar:()=>{t?n():o()}}}),iht,oht])(kVt);function SVt({children:e}){const{hasStickyAction:t,postType:n}=D(o=>{var r;return{hasStickyAction:(r=o(ue).getCurrentPost()._links?.["wp:action-sticky"])!==null&&r!==void 0?r:!1,postType:o(ue).getCurrentPostType()}},[]);return n!=="post"||!t?null:e}function CVt(){const e=D(n=>{var o;return(o=n(ue).getEditedPostAttribute("sticky"))!==null&&o!==void 0?o:!1},[]),{editPost:t}=ae(ue);return a.jsx(SVt,{children:a.jsx(Bo,{className:"editor-post-sticky__checkbox-control",label:m("Sticky"),help:m("Pin this post to the top of the blog"),checked:e,onChange:()=>t({sticky:!e}),__nextHasNoMarginBottom:!0})})}const my={"auto-draft":{label:m("Draft"),icon:vX},draft:{label:m("Draft"),icon:vX},pending:{label:m("Pending"),icon:OZe},private:{label:m("Private"),icon:mZe},future:{label:m("Scheduled"),icon:LZe},publish:{label:m("Published"),icon:SZe}},y3e=[{label:m("Draft"),value:"draft",description:m("Not ready to publish.")},{label:m("Pending"),value:"pending",description:m("Waiting for review before publishing.")},{label:m("Private"),value:"private",description:m("Only visible to site admins and editors.")},{label:m("Scheduled"),value:"future",description:m("Publish automatically on a chosen date.")},{label:m("Published"),value:"publish",description:m("Visible to everyone.")}],RVt=[d1,vo,ul,th];function v3e(){const{status:e,date:t,password:n,postId:o,postType:r,canEdit:s}=D(z=>{var y;const{getEditedPostAttribute:x,getCurrentPostId:v,getCurrentPostType:M,getCurrentPost:A}=z(ue);return{status:x("status"),date:x("date"),password:x("password"),postId:v(),postType:M(),canEdit:(y=A()._links?.["wp:action-publish"])!==null&&y!==void 0?y:!1}},[]),[i,c]=O.useState(!!n),l=He(v3e,"editor-change-status__password-input"),{editEntityRecord:u}=ae(ce),[d,p]=O.useState(null),f=O.useMemo(()=>({anchor:d,"aria-label":m("Status & visibility"),headerTitle:m("Status & visibility"),placement:"left-start",offset:36,shift:!0}),[d]);if(RVt.includes(r))return null;const b=({status:z=e,password:y=n,date:x=t})=>{u("postType",r,o,{status:z,date:x,password:y})},h=z=>{c(z),z||b({password:""})},g=z=>{let y=t,x=n;e==="future"&&new Date(t)>new Date&&(y=null),z==="private"&&n&&(x=""),b({status:z,date:y,password:x})};return a.jsx(Lr,{label:m("Status"),ref:p,children:s?a.jsx(B0,{className:"editor-post-status",contentClassName:"editor-change-status__content",popoverProps:f,focusOnMount:!0,renderToggle:({onToggle:z,isOpen:y})=>a.jsx(fe,{variant:"tertiary",size:"compact",onClick:z,icon:my[e]?.icon,"aria-label":le(m("Change status: %s"),my[e]?.label),"aria-expanded":y,children:my[e]?.label}),renderContent:({onClose:z})=>a.jsxs(a.Fragment,{children:[a.jsx(Os,{title:m("Status & visibility"),onClose:z}),a.jsx("form",{children:a.jsxs(Ye,{spacing:4,children:[a.jsx(kf,{className:"editor-change-status__options",hideLabelFromVision:!0,label:m("Status"),options:y3e,onChange:g,selected:e==="auto-draft"?"draft":e}),e==="future"&&a.jsx("div",{className:"editor-change-status__publish-date-wrapper",children:a.jsx(b3e,{showPopoverHeaderActions:!1,isCompact:!0})}),e!=="private"&&a.jsxs(Ye,{as:"fieldset",spacing:4,className:"editor-change-status__password-fieldset",children:[a.jsx(Bo,{__nextHasNoMarginBottom:!0,label:m("Password protected"),help:m("Only visible to those who know the password"),checked:i,onChange:h}),i&&a.jsx("div",{className:"editor-change-status__password-input",children:a.jsx($t,{label:m("Password"),onChange:y=>b({password:y}),value:n,placeholder:m("Use a secure password"),type:"text",id:l,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,maxLength:255})})]}),a.jsx(CVt,{})]})})]})}):a.jsx("div",{className:"editor-post-status is-read-only",children:my[e]?.label})})}function WVt({forceIsDirty:e}){const[t,n]=O.useState(!1),o=g0("small"),{isAutosaving:r,isDirty:s,isNew:i,isPublished:c,isSaveable:l,isSaving:u,isScheduled:d,hasPublishAction:p,showIconLabels:f,postStatus:b,postStatusHasChanged:h}=D(q=>{var S;const{isEditedPostNew:C,isCurrentPostPublished:T,isCurrentPostScheduled:W,isEditedPostDirty:B,isSavingPost:N,isEditedPostSaveable:E,getCurrentPost:L,isAutosavingPost:I,getEditedPostAttribute:P,getPostEdits:H}=q(ue),{get:U}=q(Qe);return{isAutosaving:I(),isDirty:e||B(),isNew:C(),isPublished:T(),isSaving:N(),isSaveable:E(),isScheduled:W(),hasPublishAction:(S=L()?._links?.["wp:action-publish"])!==null&&S!==void 0?S:!1,showIconLabels:U("core","showIconLabels"),postStatus:P("status"),postStatusHasChanged:!!H()?.status}},[e]),g=b==="pending",{savePost:z}=ae(ue),y=t1(u);if(O.useEffect(()=>{let q;return y&&!u&&(n(!0),q=setTimeout(()=>{n(!1)},1e3)),()=>clearTimeout(q)},[u]),!p&&g)return null;const x=!["pending","draft","auto-draft"].includes(b)&&y3e.map(({value:q})=>q).includes(b);if(c||d||x||h&&["pending","draft"].includes(b))return null;const v=m(g?"Save as pending":"Save draft"),M=m("Save"),A=t||!i&&!s,_=u||A,w=u||A||!l;let k;return u?k=m(r?"Autosaving":"Saving"):A?k=m("Saved"):o?k=v:f&&(k=M),a.jsxs(fe,{className:l||u?$({"editor-post-save-draft":!_,"editor-post-saved-state":_,"is-saving":u,"is-autosaving":r,"is-saved":A,[pae({type:"loading"})]:u}):void 0,onClick:w?void 0:()=>z(),shortcut:w?void 0:Jo.primary("s"),variant:"tertiary",size:"compact",icon:o?void 0:vYe,label:k||v,"aria-disabled":w,children:[_&&a.jsx(t0,{icon:A?no:xYe}),k]})}function TVt({children:e}){return D(n=>{var o;return(o=n(ue).getCurrentPost()._links?.["wp:action-publish"])!==null&&o!==void 0?o:!1},[])?e:null}const EVt=[d1,vo,ul,th];function BVt(){const[e,t]=O.useState(null),n=D(i=>i(ue).getCurrentPostType(),[]),o=O.useMemo(()=>({anchor:e,"aria-label":m("Change publish date"),placement:"left-start",offset:36,shift:!0}),[e]),r=GT(),s=GT({full:!0});return EVt.includes(n)?null:a.jsx(TVt,{children:a.jsx(Lr,{label:m("Publish"),ref:t,children:a.jsx(B0,{popoverProps:o,focusOnMount:!0,className:"editor-post-schedule__panel-dropdown",contentClassName:"editor-post-schedule__dialog",renderToggle:({onToggle:i,isOpen:c})=>a.jsx(fe,{size:"compact",className:"editor-post-schedule__dialog-toggle",variant:"tertiary",tooltipPosition:"middle left",onClick:i,"aria-label":le(m("Change date: %s"),r),label:s,showTooltip:r!==s,"aria-expanded":c,children:r}),renderContent:({onClose:i})=>a.jsx(f3e,{onClose:i})})})})}function NVt(){const{syncStatus:e,postType:t}=D(n=>{const{getEditedPostAttribute:o}=n(ue);return{syncStatus:o("meta")?.wp_pattern_sync_status==="unsynced"?"unsynced":o("wp_pattern_sync_status"),postType:o("type")}});return t!=="wp_block"?null:a.jsx(Lr,{label:m("Sync status"),children:a.jsx("div",{className:"editor-post-sync-status__value",children:Oe(e==="unsynced"?"Not synced":"Synced","pattern (singular)")})})}const LVt=e=>e;function x3e({taxonomyWrapper:e=LVt}){const{postType:t,taxonomies:n}=D(r=>({postType:r(ue).getCurrentPostType(),taxonomies:r(ce).getTaxonomies({per_page:-1})}),[]);return(n??[]).filter(r=>r.types.includes(t)&&r.visibility?.show_ui).map(r=>{const s=r.hierarchical?O3e:z3e,i={slug:r.slug,...r.hierarchical?{}:{__nextHasNoMarginBottom:!0}};return a.jsx(O.Fragment,{children:e(a.jsx(s,{...i}),r)},`taxonomy-${r.slug}`)})}function jVt({children:e}){return D(n=>{const o=n(ue).getCurrentPostType();return n(ce).getTaxonomies({per_page:-1})?.some(s=>s.types.includes(o))},[])?e:null}function PVt({taxonomy:e,children:t}){const n=e?.slug,o=n?`taxonomy-panel-${n}`:"",{isEnabled:r,isOpened:s}=D(l=>{const{isEditorPanelEnabled:u,isEditorPanelOpened:d}=l(ue);return{isEnabled:n?u(o):!1,isOpened:n?d(o):!1}},[o,n]),{toggleEditorPanelOpened:i}=ae(ue);if(!r)return null;const c=e?.labels?.menu_name;return c?a.jsx(De,{title:c,opened:s,onToggle:()=>i(o),children:t}):null}function IVt(){return a.jsx(jVt,{children:a.jsx(x3e,{taxonomyWrapper:(e,t)=>a.jsx(PVt,{taxonomy:t,children:e})})})}function _3e(){const e=He(_3e),{content:t,blocks:n,type:o,id:r}=D(c=>{const{getEditedEntityRecord:l}=c(ce),{getCurrentPostType:u,getCurrentPostId:d}=c(ue),p=u(),f=d(),b=l("postType",p,f);return{content:b?.content,blocks:b?.blocks,type:p,id:f}},[]),{editEntityRecord:s}=ae(ce),i=O.useMemo(()=>t instanceof Function?t({blocks:n}):n?pd(n):t,[t,n]);return a.jsxs(a.Fragment,{children:[a.jsx(Kt,{as:"label",htmlFor:`post-content-${e}`,children:m("Type text or HTML")}),a.jsx(Hj,{autoComplete:"off",dir:"auto",value:i,onChange:c=>{s("postType",o,r,{content:c.target.value,blocks:void 0,selection:void 0})},className:"editor-post-text-editor",id:`post-content-${e}`,placeholder:m("Start writing with text or HTML")})]})}const w3e="wp-block wp-block-post-title block-editor-block-list__block editor-post-title editor-post-title__input rich-text",k3e=/[\r\n]+/g;function q3e(e){const t=O.useRef(),{isCleanNewPost:n}=D(o=>{const{isCleanNewPost:r}=o(ue);return{isCleanNewPost:r()}},[]);return O.useImperativeHandle(e,()=>({focus:()=>{t?.current?.focus()}})),O.useEffect(()=>{if(!t.current)return;const{defaultView:o}=t.current.ownerDocument,{name:r,parent:s}=o,i=r==="editor-canvas"?s.document:o.document,{activeElement:c,body:l}=i;n&&(!c||l===c)&&t.current.focus()},[n]),{ref:t}}function S3e(){const{editPost:e}=ae(ue),{title:t}=D(o=>{const{getEditedPostAttribute:r}=o(ue);return{title:r("title")}},[]);function n(o){e({title:o})}return{title:t,setTitle:n}}function DVt(e,t){const{placeholder:n}=D(k=>{const{getSettings:q}=k(F),{titlePlaceholder:S}=q();return{placeholder:S}},[]),[o,r]=O.useState(!1),{ref:s}=q3e(t),{title:i,setTitle:c}=S3e(),[l,u]=O.useState({}),{clearSelectedBlock:d,insertBlocks:p,insertDefaultBlock:f}=ae(F),b=kt(n)||m("Add title"),{value:h,onChange:g,ref:z}=Qne({value:i,onChange(k){c(k.replace(k3e," "))},placeholder:b,selectionStart:l.start,selectionEnd:l.end,onSelectionChange(k,q){u(S=>{const{start:C,end:T}=S;return C===k&&T===q?S:{start:k,end:q}})},__unstableDisableFormats:!1});function y(k){p(k,0)}function x(){r(!0),d()}function v(){r(!1),u({})}function M(){f(void 0,void 0,0)}function A(k){k.keyCode===y1&&(k.preventDefault(),M())}function _(k){const q=k.clipboardData;let S="",C="";try{S=q.getData("text/plain"),C=q.getData("text/html")}catch{return}window.console.log(`Received HTML: `,C),window.console.log(`Received plain text: -`,S);const T=Mf({HTML:C,plainText:S});if(k.preventDefault(),!!T.length)if(typeof T!="string"){const[W]=T;if(!i&&(W.name==="core/heading"||W.name==="core/paragraph")){const B=Rr(W.attributes.content);c(B),y(T.slice(1))}else y(T)}else{const W=Rr(T);g(Y1(h,m0({html:W})))}}const w=$(w3e,{"is-selected":o});return a.jsx(Ha,{supportKeys:"title",children:a.jsx("h1",{ref:Gt([z,s]),contentEditable:!0,className:w,"aria-label":b,role:"textbox","aria-multiline":"true",onFocus:x,onBlur:v,onKeyDown:A,onPaste:_})})}const C3e=O.forwardRef(DVt);function FVt(e,t){const{placeholder:n}=D(b=>{const{getSettings:h}=b(F),{titlePlaceholder:g}=h();return{placeholder:g}},[]),[o,r]=O.useState(!1),{title:s,setTitle:i}=S3e(),{ref:c}=q3e(t);function l(b){i(b.replace(k3e," "))}function u(){r(!0)}function d(){r(!1)}const p=$(w3e,{"is-selected":o,"is-raw-text":!0}),f=kt(n)||m("Add title");return a.jsx(Pi,{ref:c,value:s,onChange:l,onFocus:u,onBlur:d,label:n,className:p,placeholder:f,hideLabelFromVision:!0,autoComplete:"off",dir:"auto",rows:1,__nextHasNoMarginBottom:!0})}const $Vt=O.forwardRef(FVt);function VVt({onClose:e}){const{isEditable:t,postSlug:n,postLink:o,permalinkPrefix:r,permalinkSuffix:s,permalink:i}=D(f=>{var b;const h=f(ue).getCurrentPost(),g=f(ue).getCurrentPostType(),z=f(ce).getPostType(g),y=f(ue).getPermalinkParts(),x=(b=h?._links?.["wp:action-publish"])!==null&&b!==void 0?b:!1;return{isEditable:f(ue).isPermalinkEditable()&&x,postSlug:zg(f(ue).getEditedPostSlug()),viewPostLabel:z?.labels.view_item,postLink:h.link,permalinkPrefix:y?.prefix,permalinkSuffix:y?.suffix,permalink:zg(f(ue).getPermalink())}},[]),{editPost:c}=ae(ue),{createNotice:l}=ae(Ze),[u,d]=O.useState(!1),p=af(i,()=>{l("info",m("Copied URL to clipboard."),{isDismissible:!0,type:"snackbar"})});return a.jsxs("div",{className:"editor-post-url",children:[a.jsx(zs,{title:m("Link"),onClose:e}),a.jsxs(Ye,{spacing:3,children:[t&&a.jsx("div",{children:z1(m("Customize the last part of the URL. Learn more."),{a:a.jsx(S1,{href:m("https://wordpress.org/documentation/article/page-post-settings-sidebar/#permalink")})})}),a.jsxs("div",{children:[t&&a.jsx(Ps,{__next40pxDefaultSize:!0,prefix:a.jsx(Fp,{children:"/"}),suffix:a.jsx(fe,{__next40pxDefaultSize:!1,icon:Gce,ref:p,label:m("Copy")}),label:m("Link"),hideLabelFromVision:!0,value:u?"":n,autoComplete:"off",spellCheck:"false",type:"text",className:"editor-post-url__input",onChange:f=>{if(c({slug:f}),!f){u||d(!0);return}u&&d(!1)},onBlur:f=>{c({slug:hB(f.target.value)}),u&&d(!1)},help:a.jsxs(S1,{className:"editor-post-url__link",href:o,target:"_blank",children:[a.jsx("span",{className:"editor-post-url__link-prefix",children:r}),a.jsx("span",{className:"editor-post-url__link-slug",children:n}),a.jsx("span",{className:"editor-post-url__link-suffix",children:s})]})}),!t&&a.jsx(S1,{className:"editor-post-url__link",href:o,target:"_blank",children:o})]})]})]})}function HVt({children:e}){return D(n=>{const o=n(ue).getCurrentPostType();return!(!n(ce).getPostType(o)?.viewable||!n(ue).getCurrentPost().link||!n(ue).getPermalinkParts())},[])?e:null}function UVt(){const[e,t]=O.useState(null),n=O.useMemo(()=>({anchor:e,placement:"left-start",offset:36,shift:!0}),[e]);return a.jsx(HVt,{children:a.jsx(Lr,{label:m("Link"),ref:t,children:a.jsx(B0,{popoverProps:n,className:"editor-post-url__panel-dropdown",contentClassName:"editor-post-url__panel-dialog",focusOnMount:!0,renderToggle:({isOpen:o,onToggle:r})=>a.jsx(XVt,{isOpen:o,onClick:r}),renderContent:({onClose:o})=>a.jsx(VVt,{onClose:o})})})})}function XVt({isOpen:e,onClick:t}){const{slug:n,isFrontPage:o,postLink:r}=D(i=>{const{getCurrentPostId:c,getCurrentPost:l}=i(ue),{getEditedEntityRecord:u,canUser:d}=i(ce),p=d("read",{kind:"root",name:"site"})?u("root","site"):void 0,f=c();return{slug:i(ue).getEditedPostSlug(),isFrontPage:p?.page_on_front===f,postLink:l()?.link}},[]),s=zg(n);return a.jsx(fe,{size:"compact",className:"editor-post-url__panel-toggle",variant:"tertiary","aria-expanded":e,"aria-label":le(m("Change link: %s"),s),onClick:t,children:a.jsx(Ho,{numberOfLines:1,children:o?r:`/${s}`})})}function GVt(){const e=D(n=>n(ue).getEditedPostAttribute("content"),[]),t=Oe("words","Word count type. Do not translate!");return a.jsx("span",{className:"word-count",children:Jh(e,t)})}const KVt=189;function YVt(){const e=D(r=>r(ue).getEditedPostAttribute("content"),[]),t=Oe("words","Word count type. Do not translate!"),n=Math.round(Jh(e,t)/KVt),o=n===0?z1(m("< 1 minute"),{span:a.jsx("span",{})}):z1(le(a0("%d minute","%d minutes",n),n),{span:a.jsx("span",{})});return a.jsx("span",{className:"time-to-read",children:o})}function ZVt(){const e=D(t=>t(ue).getEditedPostAttribute("content"),[]);return Jh(e,"characters_including_spaces")}function QVt(e,t,n){if(!n)return t;let o=e.get(t);return o||(o=SB({"core/block-editor":Nw},t),o.registerStore("core/editor",Fze),e.set(t,o)),o}const JVt=Sn(e=>({useSubRegistry:t=!0,...n})=>{const o=h0(),[r]=O.useState(()=>new WeakMap),s=QVt(r,o,t);return s===o?a.jsx(e,{registry:o,...n}):a.jsx(Ene,{value:s,children:a.jsx(e,{registry:s,...n})})},"withRegistryProvider"),Ll=(e,t)=>`${t}`,KT=e=>`href="${e}" target="_blank" rel="noreferrer noopener"`,eHt=(e,t)=>{let n=e.trim();return e!=="pdm"&&(n=e.toUpperCase().replace("SAMPLING","Sampling")),t&&(n+=` ${t}`),["pdm","cc0"].includes(e)||(n=`CC ${n}`),n},tHt=e=>{const{title:t,foreign_landing_url:n,creator:o,creator_url:r,license:s,license_version:i,license_url:c}=e,l=eHt(s,i),u=kt(o);let d;return u?d=t?le(Oe('"%1$s" by %2$s/ %3$s',"caption"),Ll(n,kt(t)),r?Ll(r,u):u,c?Ll(`${c}?ref=openverse`,l):l):le(Oe("Work by %2$s/ %3$s","caption"),KT(n),r?Ll(r,u):u,c?Ll(`${c}?ref=openverse`,l):l):d=t?le(Oe('"%1$s"/ %2$s',"caption"),Ll(n,kt(t)),c?Ll(`${c}?ref=openverse`,l):l):le(Oe("Work/ %2$s","caption"),KT(n),c?Ll(`${c}?ref=openverse`,l):l),d.replace(/\s{2}/g," ")},bC=async(e={})=>(await mSe(ce).getMediaItems({...e,orderBy:e?.search?"relevance":"date"})).map(n=>({...n,alt:n.alt_text,url:n.source_url,previewUrl:n.media_details?.sizes?.medium?.source_url,caption:n.caption?.raw})),nHt=[{name:"images",labels:{name:m("Images"),search_items:m("Search images")},mediaType:"image",async fetch(e={}){return bC({...e,media_type:"image"})}},{name:"videos",labels:{name:m("Videos"),search_items:m("Search videos")},mediaType:"video",async fetch(e={}){return bC({...e,media_type:"video"})}},{name:"audio",labels:{name:m("Audio"),search_items:m("Search audio")},mediaType:"audio",async fetch(e={}){return bC({...e,media_type:"audio"})}},{name:"openverse",labels:{name:m("Openverse"),search_items:m("Search Openverse")},mediaType:"image",async fetch(e={}){const n={...e,...{mature:!1,excluded_source:"flickr,inaturalist,wikimedia",license:"pdm,cc0"}},o={per_page:"page_size",search:"q"},r=new URL("https://api.openverse.org/v1/images/");return Object.entries(n).forEach(([l,u])=>{const d=o[l]||l;r.searchParams.set(d,u)}),(await(await window.fetch(r,{headers:{"User-Agent":"WordPress/inserter-media-fetch"}})).json()).results.map(l=>({...l,title:l.title?.toLowerCase().startsWith("file:")?l.title.slice(5):l.title,sourceId:l.id,id:void 0,caption:tHt(l),previewUrl:l.thumbnail}))},getReportUrl:({sourceId:e})=>`https://wordpress.org/openverse/image/${e}/report/`,isExternalResource:!0}],oHt=[],rHt=()=>{const{wp:e}=window;return e.media.view.MediaFrame.Select.extend({featuredImageToolbar(t){this.createSelectToolbar(t,{text:e.media.view.l10n.setFeaturedImage,state:this.options.state})},editState(){const t=this.state("featured-image").get("selection"),n=new e.media.view.EditImage({model:t.single(),controller:this}).render();this.content.set(n),n.loadEditor()},createStates:function(){this.on("toolbar:create:featured-image",this.featuredImageToolbar,this),this.on("content:render:edit-image",this.editState,this),this.states.add([new e.media.controller.FeaturedImage,new e.media.controller.EditImage({model:this.options.editImage})])}})},sHt=()=>{const{wp:e}=window;return e.media.view.MediaFrame.Post.extend({galleryToolbar(){const t=this.state().get("editing");this.toolbar.set(new e.media.view.Toolbar({controller:this,items:{insert:{style:"primary",text:t?e.media.view.l10n.updateGallery:e.media.view.l10n.insertGallery,priority:80,requires:{library:!0},click(){const n=this.controller,o=n.state();n.close(),o.trigger("update",o.get("library")),n.setState(n.options.state),n.reset()}}}}))},editState(){const t=this.state("gallery").get("selection"),n=new e.media.view.EditImage({model:t.single(),controller:this}).render();this.content.set(n),n.loadEditor()},createStates:function(){this.on("toolbar:create:main-gallery",this.galleryToolbar,this),this.on("content:render:edit-image",this.editState,this),this.states.add([new e.media.controller.Library({id:"gallery",title:e.media.view.l10n.createGalleryTitle,priority:40,toolbar:"main-gallery",filterable:"uploaded",multiple:"add",editable:!1,library:e.media.query({type:"image",...this.options.library})}),new e.media.controller.EditImage({model:this.options.editImage}),new e.media.controller.GalleryEdit({library:this.options.selection,editing:this.options.editing,menu:"gallery",displaySettings:!1,multiple:!0}),new e.media.controller.GalleryAdd])}})},sQ=e=>["sizes","mime","type","subtype","id","url","alt","link","caption"].reduce((n,o)=>(e?.hasOwnProperty(o)&&(n[o]=e[o]),n),{}),hC=e=>{const{wp:t}=window;return t.media.query({order:"ASC",orderby:"post__in",post__in:e,posts_per_page:-1,query:!0,type:"image"})};class iHt extends O.Component{constructor(){super(...arguments),this.openModal=this.openModal.bind(this),this.onOpen=this.onOpen.bind(this),this.onSelect=this.onSelect.bind(this),this.onUpdate=this.onUpdate.bind(this),this.onClose=this.onClose.bind(this)}initializeListeners(){this.frame.on("select",this.onSelect),this.frame.on("update",this.onUpdate),this.frame.on("open",this.onOpen),this.frame.on("close",this.onClose)}buildAndSetGalleryFrame(){const{addToGallery:t=!1,allowedTypes:n,multiple:o=!1,value:r=oHt}=this.props;if(r===this.lastGalleryValue)return;const{wp:s}=window;this.lastGalleryValue=r,this.frame&&this.frame.remove();let i;t?i="gallery-library":i=r&&r.length?"gallery-edit":"gallery",this.GalleryDetailsMediaFrame||(this.GalleryDetailsMediaFrame=sHt());const c=hC(r),l=new s.media.model.Selection(c.models,{props:c.props.toJSON(),multiple:o});this.frame=new this.GalleryDetailsMediaFrame({mimeType:n,state:i,multiple:o,selection:l,editing:!!(r&&r.length)}),s.media.frame=this.frame,this.initializeListeners()}buildAndSetFeatureImageFrame(){const{wp:t}=window,{value:n,multiple:o,allowedTypes:r}=this.props,s=rHt(),i=hC(n),c=new t.media.model.Selection(i.models,{props:i.props.toJSON()});this.frame=new s({mimeType:r,state:"featured-image",multiple:o,selection:c,editing:n}),t.media.frame=this.frame,t.media.view.settings.post={...t.media.view.settings.post,featuredImageId:n||-1}}componentWillUnmount(){this.frame?.remove()}onUpdate(t){const{onSelect:n,multiple:o=!1}=this.props,r=this.frame.state(),s=t||r.get("selection");!s||!s.models.length||n(o?s.models.map(i=>sQ(i.toJSON())):sQ(s.models[0].toJSON()))}onSelect(){const{onSelect:t,multiple:n=!1}=this.props,o=this.frame.state().get("selection").toJSON();t(n?o:o[0])}onOpen(){const{wp:t}=window,{value:n}=this.props;if(this.updateCollection(),this.props.mode&&this.frame.content.mode(this.props.mode),!(Array.isArray(n)?!!n?.length:!!n))return;const r=this.props.gallery,s=this.frame.state().get("selection"),i=Array.isArray(n)?n:[n];r||i.forEach(l=>{s.add(t.media.attachment(l))});const c=hC(i);c.more().done(function(){r&&c?.models?.length&&s.add(c.models)})}onClose(){const{onClose:t}=this.props;t&&t(),this.frame.detach()}updateCollection(){const t=this.frame.content.get();if(t&&t.collection){const n=t.collection;n.toArray().forEach(o=>o.trigger("destroy",o)),n.mirroring._hasMore=!0,n.more()}}openModal(){const{allowedTypes:t,gallery:n=!1,unstableFeaturedImageFlow:o=!1,modalClass:r,multiple:s=!1,title:i=m("Select or Upload Media")}=this.props,{wp:c}=window;if(n)this.buildAndSetGalleryFrame();else{const l={title:i,multiple:s};t&&(l.library={type:t}),this.frame=c.media(l)}r&&this.frame.$el.addClass(r),o&&this.buildAndSetFeatureImageFrame(),this.initializeListeners(),this.frame.open()}render(){return this.props.render({open:this.openModal})}}const aHt=()=>{};function cHt(e){return e&&Object.entries(e).map(([t,n])=>{const[o]=n.split("/"),r=t.split("|");return[n,...r.map(s=>`${o}/${s}`)]}).flat()}async function lHt({allowedTypes:e,additionalData:t={},filesList:n,maxUploadFileSize:o,onError:r=aHt,onFileChange:s,wpAllowedMimeTypes:i=null}){const c=[...n],l=[],u=(g,z)=>{S8(l[g]?.url),l[g]=z,s(l.filter(Boolean))},d=g=>e?e.some(z=>z.includes("/")?z===g:g.startsWith(`${z}/`)):!0,p=cHt(i),f=g=>p.includes(g),b=[];for(const g of c){if(p&&g.type&&!f(g.type)){r({code:"MIME_TYPE_NOT_ALLOWED_FOR_USER",message:le(m("%s: Sorry, you are not allowed to upload this file type."),g.name),file:g});continue}if(g.type&&!d(g.type)){r({code:"MIME_TYPE_NOT_SUPPORTED",message:le(m("%s: Sorry, this file type is not supported here."),g.name),file:g});continue}if(o&&g.size>o){r({code:"SIZE_ABOVE_LIMIT",message:le(m("%s: This file exceeds the maximum upload size for this site."),g.name),file:g});continue}if(g.size<=0){r({code:"EMPTY_FILE",message:le(m("%s: This file is empty."),g.name),file:g});continue}b.push(g),l.push({url:Qc(g)}),s(l)}for(let g=0;gn.append(o,r)),ct({path:"/wp/v2/media",body:n,method:"POST"})}const dHt=()=>{};function R3e({additionalData:e={},allowedTypes:t,filesList:n,maxUploadFileSize:o,onError:r=dHt,onFileChange:s}){const{getCurrentPost:i,getEditorSettings:c}=V0(ue),{lockPostAutosaving:l,unlockPostAutosaving:u,lockPostSaving:d,unlockPostSaving:p}=tr(ue),f=c().allowedMimeTypes,b=`image-upload-${Xc()}`;let h=!1;o=o||c().maxUploadFileSize;const g=i(),z=typeof g?.id=="number"?g.id:g?.wp_id,y=()=>{d(b),l(b),h=!0},x=z?{post:z}:{},v=()=>{p(b),u(b),h=!1};lHt({allowedTypes:t,filesList:n,onFileChange:M=>{h?v():y(),s(M)},additionalData:{...x,...e},maxUploadFileSize:o,onError:({message:M})=>{v(),r(M)},wpAllowedMimeTypes:f})}const{GlobalStylesContext:pHt,cleanEmptyObject:mC}=gt(p0);function W3e(e,t){return Wne(e,t,{isMergeableObject:Pz,customMerge:n=>{if(n==="backgroundImage")return(o,r)=>r}})}function fHt(){const{globalStylesId:e,isReady:t,settings:n,styles:o,_links:r}=D(u=>{const{getEditedEntityRecord:d,hasFinishedResolution:p,canUser:f}=u(ce),b=u(ce).__experimentalGetCurrentGlobalStylesId(),h=b&&f("read",{kind:"root",name:"globalStyles",id:b})?d("root","globalStyles",b):void 0;let g=!1;return p("__experimentalGetCurrentGlobalStylesId")&&(g=b?p("getEditedEntityRecord",["root","globalStyles",b]):!0),{globalStylesId:b,isReady:g,settings:h?.settings,styles:h?.styles,_links:h?._links}},[]),{getEditedEntityRecord:s}=D(ce),{editEntityRecord:i}=ae(ce),c=O.useMemo(()=>({settings:n??{},styles:o??{},_links:r??{}}),[n,o,r]),l=O.useCallback((u,d={})=>{var p,f,b;const h=s("root","globalStyles",e),g={styles:(p=h?.styles)!==null&&p!==void 0?p:{},settings:(f=h?.settings)!==null&&f!==void 0?f:{},_links:(b=h?._links)!==null&&b!==void 0?b:{}},z=typeof u=="function"?u(g):u;i("root","globalStyles",e,{styles:mC(z.styles)||{},settings:mC(z.settings)||{},_links:mC(z._links)||{}},d)},[e,i,s]);return[t,c,l]}function bHt(){const e=D(t=>{const{__experimentalGetCurrentThemeBaseGlobalStyles:n,canUser:o}=t(ce);return o("read",{kind:"root",name:"theme"})&&n()},[]);return[!!e,e]}function T3e(){const[e,t,n]=fHt(),[o,r]=bHt(),s=O.useMemo(()=>!r||!t?{}:W3e(r,t),[t,r]);return O.useMemo(()=>({isReady:e&&o,user:t,base:r,merged:s,setUserConfig:n}),[s,t,r,n,e,o])}function hHt({children:e}){const t=T3e();return t.isReady?a.jsx(pHt.Provider,{value:t,children:e}):null}const mHt=[],iQ={};function MHt(e){var t;return(t=e(ce).getEntityRecords("postType","wp_block",{per_page:-1}))!==null&&t!==void 0?t:mHt}const gHt=["__experimentalBlockDirectory","__experimentalDiscussionSettings","__experimentalFeatures","__experimentalGlobalStylesBaseStyles","alignWide","blockInspectorTabs","allowedMimeTypes","bodyPlaceholder","canLockBlocks","canUpdateBlockBindings","capabilities","clearBlockSelection","codeEditingEnabled","colors","disableCustomColors","disableCustomFontSizes","disableCustomSpacingSizes","disableCustomGradients","disableLayoutStyles","enableCustomLineHeight","enableCustomSpacing","enableCustomUnits","enableOpenverseMediaCategory","fontSizes","gradients","generateAnchors","onNavigateToEntityRecord","imageDefaultSize","imageDimensions","imageEditing","imageSizes","isRTL","locale","maxWidth","postContentAttributes","postsPerPage","readOnly","styles","titlePlaceholder","supportsLayout","widgetTypesToHideFromLegacyWidgetBlock","__unstableHasCustomAppender","__unstableIsPreviewMode","__unstableResolvedAssets","__unstableIsBlockBasedTheme"],{globalStylesDataKey:zHt,globalStylesLinksDataKey:OHt,selectBlockPatternsKey:AHt,reusableBlocksSelectKey:yHt,sectionRootClientIdKey:vHt}=gt(p0);function xHt(e,t,n,o){var r,s,i,c;const l=g0("medium"),{allowRightClickOverrides:u,blockTypes:d,focusMode:p,hasFixedToolbar:f,isDistractionFree:b,keepCaretInsideBlock:h,hasUploadPermissions:g,hiddenBlockTypes:z,canUseUnfilteredHTML:y,userCanCreatePages:x,pageOnFront:v,pageForPosts:M,userPatternCategories:A,restBlockPatternCategories:_,sectionRootClientId:w}=D(U=>{var X;const{canUser:Z,getRawEntityRecord:ne,getEntityRecord:oe,getUserPatternCategories:Y,getBlockPatternCategories:ee}=U(ce),{get:ie}=U(Qe),{getBlockTypes:se}=U($e),{getBlocksByName:be,getBlockAttributes:ye}=U(F),xe=Z("read",{kind:"root",name:"site"})?oe("root","site"):void 0;function K(){var pe;if(o==="template-locked"){var G;return(G=be("core/post-content")?.[0])!==null&&G!==void 0?G:""}return(pe=be("core/group").find(re=>ye(re)?.tagName==="main"))!==null&&pe!==void 0?pe:""}return{allowRightClickOverrides:ie("core","allowRightClickOverrides"),blockTypes:se(),canUseUnfilteredHTML:ne("postType",t,n)?._links?.hasOwnProperty("wp:action-unfiltered-html"),focusMode:ie("core","focusMode"),hasFixedToolbar:ie("core","fixedToolbar")||!l,hiddenBlockTypes:ie("core","hiddenBlockTypes"),isDistractionFree:ie("core","distractionFree"),keepCaretInsideBlock:ie("core","keepCaretInsideBlock"),hasUploadPermissions:(X=Z("create",{kind:"root",name:"media"}))!==null&&X!==void 0?X:!0,userCanCreatePages:Z("create",{kind:"postType",name:"page"}),pageOnFront:xe?.page_on_front,pageForPosts:xe?.page_for_posts,userPatternCategories:Y(),restBlockPatternCategories:ee(),sectionRootClientId:K()}},[t,n,l,o]),{merged:k}=T3e(),q=(r=k.styles)!==null&&r!==void 0?r:iQ,S=(s=k._links)!==null&&s!==void 0?s:iQ,C=(i=e.__experimentalAdditionalBlockPatterns)!==null&&i!==void 0?i:e.__experimentalBlockPatterns,T=(c=e.__experimentalAdditionalBlockPatternCategories)!==null&&c!==void 0?c:e.__experimentalBlockPatternCategories,W=O.useMemo(()=>[...C||[]].filter(({postTypes:U})=>!U||Array.isArray(U)&&U.includes(t)),[C,t]),B=O.useMemo(()=>[...T||[],..._||[]].filter((U,X,Z)=>X===Z.findIndex(ne=>U.name===ne.name)),[T,_]),{undo:N,setIsInserterOpened:E}=ae(ue),{saveEntityRecord:L}=ae(ce),I=O.useCallback(U=>x?L("postType","page",U):Promise.reject({message:m("You do not have permission to create Pages.")}),[L,x]),P=O.useMemo(()=>z&&z.length>0?(e.allowedBlockTypes===!0?d.map(({name:X})=>X):e.allowedBlockTypes||[]).filter(X=>!z.includes(X)):e.allowedBlockTypes,[e.allowedBlockTypes,z,d]),H=e.focusMode===!1;return O.useMemo(()=>({...Object.fromEntries(Object.entries(e).filter(([X])=>gHt.includes(X))),[zHt]:q,[OHt]:S,allowedBlockTypes:P,allowRightClickOverrides:u,focusMode:p&&!H,hasFixedToolbar:f,isDistractionFree:b,keepCaretInsideBlock:h,mediaUpload:g?R3e:void 0,__experimentalBlockPatterns:W,[AHt]:X=>{const{hasFinishedResolution:Z,getBlockPatternsForPostType:ne}=gt(X(ce)),oe=ne(t);return Z("getBlockPatterns")?oe:void 0},[yHt]:MHt,__experimentalBlockPatternCategories:B,__experimentalUserPatternCategories:A,__experimentalFetchLinkSuggestions:(X,Z)=>uBe(X,Z,e),inserterMediaCategories:nHt,__experimentalFetchRichUrlData:pBe,__experimentalCanUserUseUnfilteredHTML:y,__experimentalUndo:N,outlineMode:!b&&t==="wp_template",__experimentalCreatePageEntity:I,__experimentalUserCanCreatePages:x,pageOnFront:v,pageForPosts:M,__experimentalPreferPatternsOnRoot:t==="wp_template",templateLock:t==="wp_navigation"?"insert":e.templateLock,template:t==="wp_navigation"?[["core/navigation",{},[]]]:e.template,__experimentalSetIsInserterOpened:E,[vHt]:w}),[P,u,p,H,f,b,h,e,g,A,W,B,y,N,I,x,v,M,t,E,w,q,S])}const _Ht=["core/post-title","core/post-featured-image","core/post-content"];function wHt(){const e=O.useMemo(()=>[..._n("editor.postContentBlockTypes",_Ht),"core/template-part"],[]),t=D(r=>{const{getPostBlocksByName:s}=gt(r(ue));return s(e)},[e]),n=D(r=>{const{getBlocksByName:s,getBlockOrder:i}=r(F);return s("core/template-part").flatMap(c=>i(c))},[]),o=h0();return O.useEffect(()=>{const{setBlockEditingMode:r,unsetBlockEditingMode:s}=o.dispatch(F);return o.batch(()=>{r("","disabled");for(const i of t)r(i,"contentOnly");for(const i of n)r(i,"disabled")}),()=>{o.batch(()=>{s("");for(const i of t)s(i);for(const i of n)s(i)})}},[t,n,o]),null}function kHt(){const e=D(o=>o(F).getBlockOrder()?.[0],[]),{setBlockEditingMode:t,unsetBlockEditingMode:n}=ae(F);O.useEffect(()=>{if(e)return t(e,"contentOnly"),()=>{n(e)}},[e,n,t])}const aQ=["wp_block","wp_template","wp_template_part"];function qHt(e,t){O.useEffect(()=>(r0("blockEditor.__unstableCanInsertBlockType","removeTemplatePartsFromInserter",(n,o)=>!aQ.includes(e)&&o.name==="core/template-part"&&t==="post-only"?!1:n),r0("blockEditor.__unstableCanInsertBlockType","removePostContentFromInserter",(n,o,r,{getBlockParentsByBlockName:s})=>!aQ.includes(e)&&o.name==="core/post-content"?s(r,"core/query").length>0:n),()=>{c$("blockEditor.__unstableCanInsertBlockType","removeTemplatePartsFromInserter"),c$("blockEditor.__unstableCanInsertBlockType","removePostContentFromInserter")}),[e,t])}const{RenamePatternModal:SHt}=gt(Gi),E3e="editor/pattern-rename";function CHt(){const{record:e,postType:t}=D(r=>{const{getCurrentPostType:s,getCurrentPostId:i}=r(ue),{getEditedEntityRecord:c}=r(ce),l=s();return{record:c("postType",l,i()),postType:l}},[]),{closeModal:n}=ae(sn);return!D(r=>r(sn).isModalActive(E3e))||t!==ul?null:a.jsx(SHt,{onClose:n,pattern:e})}const{DuplicatePatternModal:RHt}=gt(Gi),B3e="editor/pattern-duplicate";function WHt(){const{record:e,postType:t}=D(r=>{const{getCurrentPostType:s,getCurrentPostId:i}=r(ue),{getEditedEntityRecord:c}=r(ce),l=s();return{record:c("postType",l,i()),postType:l}},[]),{closeModal:n}=ae(sn);return!D(r=>r(sn).isModalActive(B3e))||t!==ul?null:a.jsx(RHt,{onClose:n,onSuccess:()=>n(),pattern:e})}function THt(){const{editorMode:e,isListViewOpen:t,showBlockBreadcrumbs:n,isDistractionFree:o,isTopToolbar:r,isFocusMode:s,isPreviewMode:i,isViewable:c,isCodeEditingEnabled:l,isRichEditingEnabled:u,isPublishSidebarEnabled:d}=D(k=>{var q,S;const{get:C}=k(Qe),{isListViewOpened:T,getCurrentPostType:W,getEditorSettings:B}=k(ue),{getSettings:N}=k(F),{getPostType:E}=k(ce);return{editorMode:(q=C("core","editorMode"))!==null&&q!==void 0?q:"visual",isListViewOpen:T(),showBlockBreadcrumbs:C("core","showBlockBreadcrumbs"),isDistractionFree:C("core","distractionFree"),isFocusMode:C("core","focusMode"),isTopToolbar:C("core","fixedToolbar"),isPreviewMode:N().__unstableIsPreviewMode,isViewable:(S=E(W())?.viewable)!==null&&S!==void 0?S:!1,isCodeEditingEnabled:B().codeEditingEnabled,isRichEditingEnabled:B().richEditingEnabled,isPublishSidebarEnabled:k(ue).isPublishSidebarEnabled()}},[]),{getActiveComplementaryArea:p}=D(sn),{toggle:f}=ae(Qe),{createInfoNotice:b}=ae(Ze),{__unstableSaveForPreview:h,setIsListViewOpened:g,switchEditorMode:z,toggleDistractionFree:y}=ae(ue),{openModal:x,enableComplementaryArea:v,disableComplementaryArea:M}=ae(sn),{getCurrentPostId:A}=D(ue),_=l&&u;if(i)return{commands:[],isLoading:!1};const w=[];return w.push({name:"core/open-shortcut-help",label:m("Keyboard shortcuts"),icon:oZe,callback:({close:k})=>{k(),x("editor/keyboard-shortcut-help")}}),w.push({name:"core/toggle-distraction-free",label:m(o?"Exit Distraction Free":"Enter Distraction Free"),callback:({close:k})=>{y(),k()}}),w.push({name:"core/open-preferences",label:m("Editor preferences"),callback:({close:k})=>{k(),x("editor/preferences")}}),w.push({name:"core/toggle-spotlight-mode",label:m("Toggle spotlight"),callback:({close:k})=>{f("core","focusMode"),k(),b(m(s?"Spotlight off.":"Spotlight on."),{id:"core/editor/toggle-spotlight-mode/notice",type:"snackbar",actions:[{label:m("Undo"),onClick:()=>{f("core","focusMode")}}]})}}),w.push({name:"core/toggle-list-view",label:m(t?"Close List View":"Open List View"),icon:M7,callback:({close:k})=>{g(!t),k(),b(m(t?"List View off.":"List View on."),{id:"core/editor/toggle-list-view/notice",type:"snackbar"})}}),w.push({name:"core/toggle-top-toolbar",label:m("Toggle top toolbar"),callback:({close:k})=>{f("core","fixedToolbar"),o&&y(),k(),b(m(r?"Top toolbar off.":"Top toolbar on."),{id:"core/editor/toggle-top-toolbar/notice",type:"snackbar",actions:[{label:m("Undo"),onClick:()=>{f("core","fixedToolbar")}}]})}}),_&&w.push({name:"core/toggle-code-editor",label:m(e==="visual"?"Open code editor":"Exit code editor"),icon:p7,callback:({close:k})=>{z(e==="visual"?"text":"visual"),k()}}),w.push({name:"core/toggle-breadcrumbs",label:m(n?"Hide block breadcrumbs":"Show block breadcrumbs"),callback:({close:k})=>{f("core","showBlockBreadcrumbs"),k(),b(m(n?"Breadcrumbs hidden.":"Breadcrumbs visible."),{id:"core/editor/toggle-breadcrumbs/notice",type:"snackbar"})}}),w.push({name:"core/open-settings-sidebar",label:m("Toggle settings sidebar"),icon:ft()?Qce:Jce,callback:({close:k})=>{const q=p("core");k(),q==="edit-post/document"?M("core"):v("core","edit-post/document")}}),w.push({name:"core/open-block-inspector",label:m("Toggle block inspector"),icon:U_,callback:({close:k})=>{const q=p("core");k(),q==="edit-post/block"?M("core"):v("core","edit-post/block")}}),w.push({name:"core/toggle-publish-sidebar",label:m(d?"Disable pre-publish checks":"Enable pre-publish checks"),icon:ele,callback:({close:k})=>{k(),f("core","isPublishSidebarEnabled"),b(m(d?"Pre-publish checks disabled.":"Pre-publish checks enabled."),{id:"core/editor/publish-sidebar/notice",type:"snackbar"})}}),c&&w.push({name:"core/preview-link",label:m("Preview in a new tab"),icon:Pp,callback:async({close:k})=>{k();const q=A(),S=await h();window.open(S,`wp-preview-${q}`)}}),{commands:w,isLoading:!1}}function EHt(){const{postType:e}=D(o=>{const{getCurrentPostType:r}=o(ue);return{postType:r()}},[]),{openModal:t}=ae(sn),n=[];return e===ul&&(n.push({name:"core/rename-pattern",label:m("Rename pattern"),icon:nl,callback:({close:o})=>{t(E3e),o()}}),n.push({name:"core/duplicate-pattern",label:m("Duplicate pattern"),icon:Gu,callback:({close:o})=>{t(B3e),o()}})),{isLoading:!1,commands:n}}function BHt(){Oa({name:"core/editor/edit-ui",hook:THt}),Oa({name:"core/editor/contextual-commands",hook:EHt,context:"entity-edit"})}const{BlockRemovalWarningModal:cQ}=gt(p0),NHt=["core/post-content","core/post-template","core/query"],LHt=[{postTypes:["wp_template","wp_template_part"],callback(e){if(e.filter(({name:n})=>NHt.includes(n)).length)return a0("Deleting this block will stop your post or page content from displaying on this template. It is not recommended.","Some of the deleted blocks will stop your post or page content from displaying on this template. It is not recommended.",e.length)}},{postTypes:["wp_block"],callback(e){if(e.filter(({attributes:n})=>n?.metadata?.bindings&&Object.values(n.metadata.bindings).some(o=>o.source==="core/pattern-overrides")).length)return a0("The deleted block allows instance overrides. Removing it may result in content not displaying where this pattern is used. Are you sure you want to proceed?","Some of the deleted blocks allow instance overrides. Removing them may result in content not displaying where this pattern is used. Are you sure you want to proceed?",e.length)}}];function jHt(){const e=D(n=>n(ue).getCurrentPostType(),[]),t=O.useMemo(()=>LHt.filter(n=>n.postTypes.includes(e)),[e]);return!cQ||!t?null:a.jsx(cQ,{rules:t})}function PHt(){const{blockPatternsWithPostContentBlockType:e,postType:t}=D(n=>{const{getPatternsByBlockTypes:o,getBlocksByName:r}=n(F),{getCurrentPostType:s,getRenderingMode:i}=n(ue),c=i()==="post-only"?"":r("core/post-content")?.[0];return{blockPatternsWithPostContentBlockType:o("core/post-content",c),postType:s()}},[]);return O.useMemo(()=>e.filter(n=>t==="page"&&!n.postTypes||Array.isArray(n.postTypes)&&n.postTypes.includes(t)),[t,e])}function IHt({blockPatterns:e,onChoosePattern:t}){const n=Gs(e),{editEntityRecord:o}=ae(ce),{postType:r,postId:s}=D(i=>{const{getCurrentPostType:c,getCurrentPostId:l}=i(ue);return{postType:c(),postId:l()}},[]);return a.jsx(oc,{blockPatterns:e,shownPatterns:n,onClickPattern:(i,c)=>{o("postType",r,s,{blocks:c,content:({blocks:l=[]})=>pd(l)}),t()}})}function DHt({onClose:e}){const t=PHt();return t.length>0?a.jsx(fn,{title:m("Choose a pattern"),isFullScreen:!0,onRequestClose:e,children:a.jsx("div",{className:"editor-start-page-options__modal-content",children:a.jsx(IHt,{blockPatterns:t,onChoosePattern:e})})}):null}function FHt(){const[e,t]=O.useState(!1),{shouldEnableModal:n,postType:o,postId:r}=D(s=>{const{isEditedPostDirty:i,isEditedPostEmpty:c,getCurrentPostType:l,getCurrentPostId:u}=s(ue),d=l();return{shouldEnableModal:!i()&&c()&&d1!==d,postType:d,postId:u()}},[]);return O.useEffect(()=>{t(!1)},[o,r]),!n||e?null:a.jsx(DHt,{onClose:()=>t(!0)})}const $Ht=[{keyCombination:{modifier:"primary",character:"b"},description:m("Make the selected text bold.")},{keyCombination:{modifier:"primary",character:"i"},description:m("Make the selected text italic.")},{keyCombination:{modifier:"primary",character:"k"},description:m("Convert the selected text into a link.")},{keyCombination:{modifier:"primaryShift",character:"k"},description:m("Remove a link.")},{keyCombination:{character:"[["},description:m("Insert a link to a post or page.")},{keyCombination:{modifier:"primary",character:"u"},description:m("Underline the selected text.")},{keyCombination:{modifier:"access",character:"d"},description:m("Strikethrough the selected text.")},{keyCombination:{modifier:"access",character:"x"},description:m("Make the selected text inline code.")},{keyCombination:{modifier:"access",character:"0"},aliases:[{modifier:"access",character:"7"}],description:m("Convert the current heading to a paragraph.")},{keyCombination:{modifier:"access",character:"1-6"},description:m("Convert the current paragraph or heading to a heading of level 1 to 6.")},{keyCombination:{modifier:"primaryShift",character:"SPACE"},description:m("Add non breaking space.")}];function lQ({keyCombination:e,forceAriaLabel:t}){const n=e.modifier?bne[e.modifier](e.character):e.character,o=e.modifier?hne[e.modifier](e.character):e.character;return a.jsx("kbd",{className:"editor-keyboard-shortcut-help-modal__shortcut-key-combination","aria-label":t||o,children:(Array.isArray(n)?n:[n]).map((r,s)=>r==="+"?a.jsx(O.Fragment,{children:r},s):a.jsx("kbd",{className:"editor-keyboard-shortcut-help-modal__shortcut-key",children:r},s))})}function N3e({description:e,keyCombination:t,aliases:n=[],ariaLabel:o}){return a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"editor-keyboard-shortcut-help-modal__shortcut-description",children:e}),a.jsxs("div",{className:"editor-keyboard-shortcut-help-modal__shortcut-term",children:[a.jsx(lQ,{keyCombination:t,forceAriaLabel:o}),n.map((r,s)=>a.jsx(lQ,{keyCombination:r,forceAriaLabel:o},s))]})]})}function VHt({name:e}){const{keyCombination:t,description:n,aliases:o}=D(r=>{const{getShortcutKeyCombination:s,getShortcutDescription:i,getShortcutAliases:c}=r(Br);return{keyCombination:s(e),aliases:c(e),description:i(e)}},[e]);return t?a.jsx(N3e,{keyCombination:t,description:n,aliases:o}):null}const uQ="editor/keyboard-shortcut-help",HHt=({shortcuts:e})=>a.jsx("ul",{className:"editor-keyboard-shortcut-help-modal__shortcut-list",role:"list",children:e.map((t,n)=>a.jsx("li",{className:"editor-keyboard-shortcut-help-modal__shortcut",children:typeof t=="string"?a.jsx(VHt,{name:t}):a.jsx(N3e,{...t})},n))}),YT=({title:e,shortcuts:t,className:n})=>a.jsxs("section",{className:$("editor-keyboard-shortcut-help-modal__section",n),children:[!!e&&a.jsx("h2",{className:"editor-keyboard-shortcut-help-modal__section-title",children:e}),a.jsx(HHt,{shortcuts:t})]}),My=({title:e,categoryName:t,additionalShortcuts:n=[]})=>{const o=D(r=>r(Br).getCategoryShortcuts(t),[t]);return a.jsx(YT,{title:e,shortcuts:o.concat(n)})};function UHt(){const e=D(r=>r(sn).isModalActive(uQ),[]),{openModal:t,closeModal:n}=ae(sn),o=()=>{e?n():t(uQ)};return Ur("core/editor/keyboard-shortcuts",o),e?a.jsxs(fn,{className:"editor-keyboard-shortcut-help-modal",title:m("Keyboard shortcuts"),closeButtonLabel:m("Close"),onRequestClose:o,children:[a.jsx(YT,{className:"editor-keyboard-shortcut-help-modal__main-shortcuts",shortcuts:["core/editor/keyboard-shortcuts"]}),a.jsx(My,{title:m("Global shortcuts"),categoryName:"global"}),a.jsx(My,{title:m("Selection shortcuts"),categoryName:"selection"}),a.jsx(My,{title:m("Block shortcuts"),categoryName:"block",additionalShortcuts:[{keyCombination:{character:"/"},description:m("Change the block type after adding a new paragraph."),ariaLabel:m("Forward-slash")}]}),a.jsx(YT,{title:m("Text formatting"),shortcuts:$Ht}),a.jsx(My,{title:m("List View shortcuts"),categoryName:"list-view"})]}):null}function XHt({clientId:e,onClose:t}){const{entity:n,onNavigateToEntityRecord:o,canEditTemplates:r}=D(c=>{const{getBlockEditingMode:l,getBlockParentsByBlockName:u,getSettings:d,getBlockAttributes:p}=c(F);if(!(l(e)==="contentOnly"))return{};const b=u(e,"core/block",!0)[0];let h;if(b)h=c(ce).getEntityRecord("postType","wp_block",p(b).ref);else{const{getCurrentTemplateId:z}=c(ue),y=z(),{getContentLockingParent:x}=gt(c(F));!x(e)&&y&&(h=c(ce).getEntityRecord("postType","wp_template",y))}return{canEditTemplates:c(ce).canUser("create",{kind:"postType",name:"wp_template"}),entity:h,onNavigateToEntityRecord:d().onNavigateToEntityRecord}},[e]);if(!n)return a.jsx(GHt,{clientId:e,onClose:t});const s=n.type==="wp_block";let i=m(s?"Edit the pattern to move, delete, or make further changes to this block.":"Edit the template to move, delete, or make further changes to this block.");return r||(i=m("Only users with permissions to edit the template can move or delete this block")),a.jsxs(a.Fragment,{children:[a.jsx(yk,{children:a.jsx(tt,{onClick:()=>{o({postId:n.id,postType:n.type})},disabled:!r,children:m(s?"Edit pattern":"Edit template")})}),a.jsx(l0,{variant:"muted",as:"p",className:"editor-content-only-settings-menu__description",children:i})]})}function GHt({clientId:e,onClose:t}){const{contentLockingParent:n}=D(i=>{const{getContentLockingParent:c}=gt(i(F));return{contentLockingParent:c(e)}},[e]),o=Ms(n),r=ae(F);if(!o?.title)return null;const{modifyContentLockBlock:s}=gt(r);return a.jsxs(a.Fragment,{children:[a.jsx(yk,{children:a.jsx(tt,{onClick:()=>{s(n),t()},children:Oe("Unlock","Unlock content locked blocks")})}),a.jsx(l0,{variant:"muted",as:"p",className:"editor-content-only-settings-menu__description",children:m("Temporarily unlock the parent block to edit, delete or make further changes to this block.")})]})}function KHt(){return a.jsx(Zh,{children:({selectedClientIds:e,onClose:t})=>e.length===1&&a.jsx(XHt,{clientId:e[0],onClose:t})})}function YHt(e,t=!1){return D(n=>{const{getEntityRecord:o,getDefaultTemplateId:r}=n(ce),s=r({slug:e,is_custom:t,ignore_empty:!0});return s?o("postType",d1,s)?.content?.raw:void 0},[e,t])}function ZHt(e){const{slug:t,patterns:n}=D(s=>{const{getCurrentPostType:i,getCurrentPostId:c}=s(ue),{getEntityRecord:l,getBlockPatterns:u}=s(ce),d=c(),p=i();return{slug:l("postType",p,d).slug,patterns:u()}},[]),o=D(s=>s(ce).getCurrentTheme().stylesheet);function r(s){return s.innerBlocks.find(i=>i.name==="core/template-part")&&(s.innerBlocks=s.innerBlocks.map(i=>(i.name==="core/template-part"&&i.attributes.theme===void 0&&(i.attributes.theme=o),i))),s.name==="core/template-part"&&s.attributes.theme===void 0&&(s.attributes.theme=o),s}return O.useMemo(()=>[{name:"fallback",blocks:Yn(e),title:m("Fallback content")},...n.filter(s=>Array.isArray(s.templateTypes)&&s.templateTypes.some(i=>t.startsWith(i))).map(s=>({...s,blocks:Yn(s.content).map(i=>r(i))}))],[e,t,n])}function QHt({fallbackContent:e,onChoosePattern:t,postType:n}){const[,,o]=id("postType",n),r=ZHt(e),s=Gs(r);return a.jsx(oc,{blockPatterns:r,shownPatterns:s,onClickPattern:(i,c)=>{o(c,{selection:void 0}),t()}})}function JHt({slug:e,isCustom:t,onClose:n,postType:o}){const r=YHt(e,t);return r?a.jsxs(fn,{className:"editor-start-template-options__modal",title:m("Choose a pattern"),closeLabel:m("Cancel"),focusOnMount:"firstElement",onRequestClose:n,isFullScreen:!0,children:[a.jsx("div",{className:"editor-start-template-options__modal-content",children:a.jsx(QHt,{fallbackContent:r,slug:e,isCustom:t,postType:o,onChoosePattern:()=>{n()}})}),a.jsx(Q0,{className:"editor-start-template-options__modal__actions",justify:"flex-end",expanded:!1,children:a.jsx(Ht,{children:a.jsx(fe,{__next40pxDefaultSize:!1,variant:"tertiary",onClick:n,children:m("Skip")})})})]}):null}function eUt(){const[e,t]=O.useState(!1),{shouldOpenModal:n,slug:o,isCustom:r,postType:s,postId:i}=D(c=>{const{getCurrentPostType:l,getCurrentPostId:u}=c(ue),d=l(),p=u(),{getEditedEntityRecord:f,hasEditsForEntityRecord:b}=c(ce),h=f("postType",d,p);return{shouldOpenModal:!b("postType",d,p)&&h.content===""&&d1===d,slug:h.slug,isCustom:h.is_custom,postType:d,postId:p}},[]);return O.useEffect(()=>{t(!1)},[s,i]),!n||e?null:a.jsx(JHt,{slug:o,isCustom:r,postType:s,onClose:()=>t(!0)})}function tUt({clientId:e,onClose:t}){const{getBlocks:n}=D(F),{replaceBlocks:o}=ae(F);return D(s=>s(F).canRemoveBlock(e),[e])?a.jsx(tt,{onClick:()=>{o(e,n(e)),t()},children:m("Detach")}):null}function nUt({clientIds:e,blocks:t}){const[n,o]=O.useState(!1),{replaceBlocks:r}=ae(F),{createSuccessNotice:s}=ae(Ze),{canCreate:i}=D(l=>({canCreate:l(F).canInsertBlockType("core/template-part")}),[]);if(!i)return null;const c=async l=>{r(e,me("core/template-part",{slug:l.slug,theme:l.theme})),s(m("Template part created."),{type:"snackbar"})};return a.jsxs(a.Fragment,{children:[a.jsx(tt,{icon:Rh,onClick:()=>{o(!0)},"aria-expanded":n,"aria-haspopup":"dialog",children:m("Create template part")}),n&&a.jsx(s9,{closeModal:()=>{o(!1)},blocks:t,onCreate:c})]})}function oUt(){return a.jsx(Zh,{children:({selectedClientIds:e,onClose:t})=>a.jsx(rUt,{clientIds:e,onClose:t})})}function rUt({clientIds:e,onClose:t}){const{isContentOnly:n,blocks:o}=D(r=>{const{getBlocksByClientId:s,getBlockEditingMode:i}=r(F);return{blocks:s(e),isContentOnly:e.length===1&&i(e[0])==="contentOnly"}},[e]);return n?null:o.length===1&&o[0]?.name==="core/template-part"?a.jsx(tUt,{clientId:e[0],onClose:t}):a.jsx(nUt,{clientIds:e,blocks:o})}const{ExperimentalBlockEditorProvider:sUt}=gt(p0),{PatternsMenuItems:iUt}=gt(Gi),dQ=()=>{},aUt=["wp_block","wp_template","wp_navigation","wp_template_part"];function cUt(e,t,n){const o=n==="post-only"||!t?"post":"template",[r,s,i]=id("postType",e.type,{id:e.id}),[c,l,u]=id("postType",t?.type,{id:t?.id}),d=O.useMemo(()=>{if(e.type==="wp_navigation")return[me("core/navigation",{ref:e.id,templateLock:!1})]},[e.type,e.id]),p=O.useMemo(()=>d||(o==="template"?c:r),[d,o,c,r]);return!!t&&n==="template-locked"||e.type==="wp_navigation"?[p,dQ,dQ]:[p,o==="post"?s:l,o==="post"?i:u]}const L3e=JVt(({post:e,settings:t,recovery:n,initialEdits:o,children:r,BlockEditorProviderComponent:s=sUt,__unstableTemplate:i})=>{const{editorSettings:c,selection:l,isReady:u,mode:d}=D(C=>{const{getEditorSettings:T,getEditorSelection:W,getRenderingMode:B,__unstableIsEditorReady:N}=C(ue);return{editorSettings:T(),isReady:N(),mode:B(),selection:W()}},[]),p=!!i&&d!=="post-only",f=p?i:e,b=O.useMemo(()=>({...!aUt.includes(f.type)||p?{postId:e.id,postType:e.type}:{},templateSlug:f.type==="wp_template"?f.slug:void 0}),[p,e.id,e.type,f.type,f.slug]),{id:h,type:g}=f,z=xHt(c,g,h,d),[y,x,v]=cUt(e,i,d),{updatePostLock:M,setupEditor:A,updateEditorSettings:_,setCurrentTemplateId:w,setEditedPost:k,setRenderingMode:q}=gt(ae(ue)),{createWarningNotice:S}=ae(Ze);return O.useLayoutEffect(()=>{n||(M(t.postLock),A(e,o,t.template),t.autosave&&S(m("There is an autosave of this post that is more recent than the version below."),{id:"autosave-exists",actions:[{label:m("View the autosave"),url:t.autosave.editLink}]}))},[]),O.useEffect(()=>{k(e.type,e.id)},[e.type,e.id,k]),O.useEffect(()=>{_(t)},[t,_]),O.useEffect(()=>{w(i?.id)},[i?.id,w]),O.useEffect(()=>{var C;q((C=t.defaultRenderingMode)!==null&&C!==void 0?C:"post-only")},[t.defaultRenderingMode,q]),qHt(e.type,d),BHt(),u?a.jsx(A8,{kind:"root",type:"site",children:a.jsx(A8,{kind:"postType",type:e.type,id:e.id,children:a.jsx(V3,{value:b,children:a.jsxs(s,{value:y,onChange:v,onInput:x,selection:l,settings:z,useSubRegistry:!1,children:[r,!t.__unstableIsPreviewMode&&a.jsxs(a.Fragment,{children:[a.jsx(iUt,{}),a.jsx(oUt,{}),a.jsx(KHt,{}),d==="template-locked"&&a.jsx(wHt,{}),g==="wp_navigation"&&a.jsx(kHt,{}),a.jsx(fFt,{}),a.jsx(UHt,{}),a.jsx(jHt,{}),a.jsx(FHt,{}),a.jsx(eUt,{}),a.jsx(CHt,{}),a.jsx(WHt,{})]})]})})})}):null});function lUt(e){return a.jsx(L3e,{...e,BlockEditorProviderComponent:Svt,children:e.children})}const uUt={};function dUt(e,t=null,n={}){return wt(`/wp/v2/block-renderer/${e}`,{context:"edit",...t!==null?{attributes:t}:{},...n})}function pUt(e){const{backgroundColor:t,borderColor:n,fontFamily:o,fontSize:r,gradient:s,textColor:i,className:c,...l}=e,{border:u,color:d,elements:p,spacing:f,typography:b,...h}=e?.style||uUt;return{...l,style:h}}function fUt({className:e}){return a.jsx(D0,{className:e,children:m("Block rendered as empty.")})}function bUt({response:e,className:t}){const n=le(m("Error loading block: %s"),e.errorMsg);return a.jsx(D0,{className:t,children:n})}function hUt({children:e,showLoader:t}){return a.jsxs("div",{style:{position:"relative"},children:[t&&a.jsx("div",{style:{position:"absolute",top:"50%",left:"50%",marginTop:"-9px",marginLeft:"-9px"},children:a.jsx(u0,{})}),a.jsx("div",{style:{opacity:t?"0.3":1},children:e})]})}function mUt(e){const{attributes:t,block:n,className:o,httpMethod:r="GET",urlQueryArgs:s,skipBlockSupportAttributes:i=!1,EmptyResponsePlaceholder:c=fUt,ErrorResponsePlaceholder:l=bUt,LoadingResponsePlaceholder:u=hUt}=e,d=O.useRef(!1),[p,f]=O.useState(!1),b=O.useRef(),[h,g]=O.useState(null),z=t1(e),[y,x]=O.useState(!1);function v(){var k,q;if(!d.current)return;x(!0);const S=setTimeout(()=>{f(!0)},1e3);let C=t&&fN(n,t);i&&(C=pUt(C));const T=r==="POST",W=T?null:(k=C)!==null&&k!==void 0?k:null,B=dUt(n,W,s),N=T?{attributes:(q=C)!==null&&q!==void 0?q:null}:null,E=b.current=ct({path:B,data:N,method:T?"POST":"GET"}).then(L=>{d.current&&E===b.current&&L&&g(L.rendered)}).catch(L=>{d.current&&E===b.current&&g({error:!0,errorMsg:L.message})}).finally(()=>{d.current&&E===b.current&&(x(!1),f(!1),clearTimeout(S))});return E}const M=Uo(v,500);O.useEffect(()=>(d.current=!0,()=>{d.current=!1}),[]),O.useEffect(()=>{z===void 0?v():J1(z,e)||M()});const A=!!h,_=h==="",w=h?.error;return y?a.jsx(u,{...e,showLoader:p,children:A&&a.jsx(C1,{className:o,children:h})}):_||!A?a.jsx(c,{...e}):w?a.jsx(l,{response:h,...e}):a.jsx(C1,{className:o,children:h})}const pQ={},MUt=Xo(e=>{const t=e("core/editor");if(t){const n=t.getCurrentPostId();if(n&&typeof n=="number")return{currentPostId:n}}return pQ})(({urlQueryArgs:e=pQ,currentPostId:t,...n})=>{const o=O.useMemo(()=>t?{post_id:t,...e}:e,[t,e]);return a.jsx(mUt,{urlQueryArgs:o,...n})}),OO=MUt;function gUt(e=[]){return e.push({...hFt}),e}r0("editor.Autocomplete.completers","editor/autocompleters/set-default-completers",gUt);r0("editor.MediaUpload","core/editor/components/media-upload",()=>iHt);const{PatternOverridesControls:zUt,ResetOverridesControl:OUt,PatternOverridesBlockControls:AUt,PATTERN_TYPES:yUt,PARTIAL_SYNCING_SUPPORTED_BLOCKS:vUt,PATTERN_SYNC_TYPES:fQ}=gt(Gi),xUt=Sn(e=>t=>{const n=!!vUt[t.name];return a.jsxs(a.Fragment,{children:[a.jsx(e,{...t},"edit"),t.isSelected&&n&&a.jsx(_Ut,{...t}),n&&a.jsx(AUt,{})]})},"withPatternOverrideControls");function _Ut(e){const t=oo(),{hasPatternOverridesSource:n,isEditingSyncedPattern:o}=D(l=>{const{getBlockBindingsSource:u}=gt(l($e)),{getCurrentPostType:d,getEditedPostAttribute:p}=l(ue);return{hasPatternOverridesSource:!!u("core/pattern-overrides"),isEditingSyncedPattern:d()===yUt.user&&p("meta")?.wp_pattern_sync_status!==fQ.unsynced&&p("wp_pattern_sync_status")!==fQ.unsynced}},[]),r=e.attributes.metadata?.bindings,s=!!r&&Object.values(r).some(l=>l.source==="core/pattern-overrides"),i=o&&t==="default",c=!o&&!!e.attributes.metadata?.name&&t!=="disabled"&&s;return n?a.jsxs(a.Fragment,{children:[i&&a.jsx(zUt,{...e}),c&&a.jsx(OUt,{...e})]}):null}r0("editor.BlockEdit","core/editor/with-pattern-override-controls",xUt);const{createPrivateSlotFill:wUt}=gt(L0),kUt="EditCanvasContainerSlot",j3e=wUt(kUt),h9="__experimentalMainDashboardButton",qUt=()=>{const e=j1(h9);return!!(e&&e.length)},{Fill:SUt,Slot:CUt}=_0(h9),m9=SUt,RUt=()=>{const e=j1(h9);return a.jsx(CUt,{bubblesVirtually:!0,fillProps:{length:e?e.length:0}})};m9.Slot=RUt;const{useHasBlockToolbar:WUt}=gt(p0);function TUt({isCollapsed:e,onToggle:t}){const{blockSelectionStart:n}=D(s=>({blockSelectionStart:s(F).getBlockSelectionStart()}),[]),o=WUt(),r=!!n;return O.useEffect(()=>{n&&t(!1)},[n,t]),o?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:$("editor-collapsible-block-toolbar",{"is-collapsed":e||!r}),children:a.jsx(CP,{hideDragHandle:!0})}),a.jsx(Mn.Slot,{name:"block-toolbar"}),a.jsx(fe,{className:"editor-collapsible-block-toolbar__toggle",icon:e?zle:gle,onClick:()=>{t(!e)},label:m(e?"Show block tools":"Hide block tools"),size:"compact"})]}):null}function EUt({className:e,disableBlockTools:t=!1}){const{setIsInserterOpened:n,setIsListViewOpened:o}=ae(ue),{isDistractionFree:r,isInserterOpened:s,isListViewOpen:i,listViewShortcut:c,inserterSidebarToggleRef:l,listViewToggleRef:u,hasFixedToolbar:d,showIconLabels:p}=D(M=>{const{getSettings:A}=M(F),{get:_}=M(Qe),{isListViewOpened:w,getEditorMode:k,getInserterSidebarToggleRef:q,getListViewToggleRef:S}=gt(M(ue)),{getShortcutRepresentation:C}=M(Br),{__unstableGetEditorMode:T}=M(F);return{isInserterOpened:M(ue).isInserterOpened(),isListViewOpen:w(),listViewShortcut:C("core/editor/toggle-list-view"),inserterSidebarToggleRef:q(),listViewToggleRef:S(),hasFixedToolbar:A().hasFixedToolbar,showIconLabels:_("core","showIconLabels"),isDistractionFree:_("core","distractionFree"),isVisualMode:k()==="visual",isZoomedOutView:T()==="zoom-out"}},[]),f=M=>{s&&M.preventDefault()},b=g0("medium"),h=g0("wide"),g=m("Document tools"),z=O.useCallback(()=>o(!i),[o,i]),y=O.useCallback(()=>n(!s),[s,n]),x=Oe("Toggle block inserter","Generic label for block inserter button"),v=m(s?"Close":"Add");return a.jsx(vk,{className:$("editor-document-tools","edit-post-header-toolbar",e),"aria-label":g,variant:"unstyled",children:a.jsxs("div",{className:"editor-document-tools__left",children:[!r&&a.jsx(Ko,{ref:l,as:fe,className:"editor-document-tools__inserter-toggle",variant:"primary",isPressed:s,onMouseDown:f,onClick:y,disabled:t,icon:is,label:p?v:x,showTooltip:!p,"aria-expanded":s}),(h||!p)&&a.jsxs(a.Fragment,{children:[b&&!d&&a.jsx(Ko,{as:kWt,showTooltip:!p,variant:p?"tertiary":void 0,disabled:t,size:"compact"}),a.jsx(Ko,{as:qFt,showTooltip:!p,variant:p?"tertiary":void 0,size:"compact"}),a.jsx(Ko,{as:wFt,showTooltip:!p,variant:p?"tertiary":void 0,size:"compact"}),!r&&a.jsx(Ko,{as:fe,className:"editor-document-tools__document-overview-toggle",icon:M7,disabled:t,isPressed:i,label:m("Document Overview"),onClick:z,shortcut:c,showTooltip:!p,variant:p?"tertiary":void 0,"aria-expanded":i,ref:u,size:"compact"})]})]})})}function BUt(){const{createNotice:e}=ae(Ze),{getCurrentPostId:t,getCurrentPostType:n}=D(ue),{getEditedEntityRecord:o}=D(ce);function r(){const c=o("postType",n(),t());if(!c)return"";if(typeof c.content=="function")return c.content(c);if(c.blocks)return pd(c.blocks);if(c.content)return c.content}function s(){e("info",m("All content copied."),{isDismissible:!0,type:"snackbar"})}const i=af(r,s);return a.jsx(tt,{ref:i,children:m("Copy all blocks")})}const NUt=[{value:"visual",label:m("Visual editor")},{value:"text",label:m("Code editor")}];function LUt(){const{shortcut:e,isRichEditingEnabled:t,isCodeEditingEnabled:n,mode:o}=D(c=>({shortcut:c(Br).getShortcutRepresentation("core/editor/toggle-mode"),isRichEditingEnabled:c(ue).getEditorSettings().richEditingEnabled,isCodeEditingEnabled:c(ue).getEditorSettings().codeEditingEnabled,mode:c(ue).getEditorMode()}),[]),{switchEditorMode:r}=ae(ue);let s=o;!t&&o==="visual"&&(s="text"),!n&&o==="text"&&(s="visual");const i=NUt.map(c=>(!n&&c.value==="text"&&(c={...c,disabled:!0}),!t&&c.value==="visual"&&(c={...c,disabled:!0,info:m("You can enable the visual editor in your profile settings.")}),c.value!==s&&!c.disabled?{...c,shortcut:e}:c));return a.jsx(Yt,{label:m("Editor"),children:a.jsx(Hp,{choices:i,value:s,onSelect:r})})}const{Fill:M9,Slot:jUt}=_0("ToolsMoreMenuGroup");M9.Slot=({fillProps:e})=>a.jsx(jUt,{fillProps:e});const{Fill:g9,Slot:PUt}=_0(Symbol("ViewMoreMenuGroup"));g9.Slot=({fillProps:e})=>a.jsx(PUt,{fillProps:e});function IUt(){const{openModal:e}=ae(sn),{set:t}=ae(Qe),{toggleDistractionFree:n}=ae(ue),o=D(s=>s(Qe).get("core","showIconLabels"),[]),r=()=>{t("core","distractionFree",!1)};return a.jsx(a.Fragment,{children:a.jsx(E1,{icon:Ol,label:m("Options"),popoverProps:{placement:"bottom-end",className:"more-menu-dropdown__content"},toggleProps:{showTooltip:!o,...o&&{variant:"tertiary"},tooltipPosition:"bottom",size:"compact"},children:({onClose:s})=>a.jsxs(a.Fragment,{children:[a.jsxs(Yt,{label:Oe("View","noun"),children:[a.jsx(VS,{scope:"core",name:"fixedToolbar",onToggle:r,label:m("Top toolbar"),info:m("Access all block and document tools in a single place"),messageActivated:m("Top toolbar activated"),messageDeactivated:m("Top toolbar deactivated")}),a.jsx(VS,{scope:"core",name:"distractionFree",label:m("Distraction free"),info:m("Write with calmness"),handleToggling:!1,onToggle:n,messageActivated:m("Distraction free mode activated"),messageDeactivated:m("Distraction free mode deactivated"),shortcut:Jo.primaryShift("\\")}),a.jsx(VS,{scope:"core",name:"focusMode",label:m("Spotlight mode"),info:m("Focus on one block at a time"),messageActivated:m("Spotlight mode activated"),messageDeactivated:m("Spotlight mode deactivated")}),a.jsx(g9.Slot,{fillProps:{onClose:s}})]}),a.jsx(LUt,{}),a.jsx(zO.Slot,{name:"core/plugin-more-menu",label:m("Plugins"),as:Yt,fillProps:{onClick:s}}),a.jsxs(Yt,{label:m("Tools"),children:[a.jsx(tt,{onClick:()=>e("editor/keyboard-shortcut-help"),shortcut:Jo.access("h"),children:m("Keyboard shortcuts")}),a.jsx(BUt,{}),a.jsxs(tt,{icon:Pp,href:m("https://wordpress.org/documentation/article/wordpress-block-editor/"),target:"_blank",rel:"noopener noreferrer",children:[m("Help"),a.jsx(Kt,{as:"span",children:m("(opens in a new tab)")})]}),a.jsx(M9.Slot,{fillProps:{onClose:s}})]}),a.jsx(Yt,{children:a.jsx(tt,{onClick:()=>e("editor/preferences"),children:m("Preferences")})})]})})})}function DUt({forceIsDirty:e,hasPublishAction:t,isBeingScheduled:n,isPending:o,isPublished:r,isPublishSidebarEnabled:s,isPublishSidebarOpened:i,isScheduled:c,togglePublishSidebar:l,setEntitiesSavedStatesCallback:u,postStatusHasChanged:d,postStatus:p}){const f="toggle",b="button",h=g0("medium","<");let g;return r||d&&!["future","publish"].includes(p)||c&&n||o&&!t&&!h?g=b:h||s?g=f:g=b,a.jsx(d3e,{forceIsDirty:e,isOpen:i,isToggle:g===f,onToggle:l,setEntitiesSavedStatesCallback:u})}const FUt=v0(Xo(e=>{var t;return{hasPublishAction:(t=e(ue).getCurrentPost()?._links?.["wp:action-publish"])!==null&&t!==void 0?t:!1,isBeingScheduled:e(ue).isEditedPostBeingScheduled(),isPending:e(ue).isCurrentPostPending(),isPublished:e(ue).isCurrentPostPublished(),isPublishSidebarEnabled:e(ue).isPublishSidebarEnabled(),isPublishSidebarOpened:e(ue).isPublishSidebarOpened(),isScheduled:e(ue).isCurrentPostScheduled(),postStatus:e(ue).getEditedPostAttribute("status"),postStatusHasChanged:e(ue).getPostEdits()?.status}}),Fi(e=>{const{togglePublishSidebar:t}=e(ue);return{togglePublishSidebar:t}}))(DUt);function $Ut(){const{hasLoaded:e,permalink:t,isPublished:n,label:o,showIconLabels:r}=D(s=>{const i=s(ue).getCurrentPostType(),c=s(ce).getPostType(i),{get:l}=s(Qe);return{permalink:s(ue).getPermalink(),isPublished:s(ue).isCurrentPostPublished(),label:c?.labels.view_item,hasLoaded:!!c,showIconLabels:l("core","showIconLabels")}},[]);return!n||!t||!e?null:a.jsx(fe,{icon:Pp,label:o||m("View post"),href:t,target:"_blank",showTooltip:!r,size:"compact"})}function VUt({forceIsAutosaveable:e,disabled:t}){const{deviceType:n,editorMode:o,homeUrl:r,isTemplate:s,isViewable:i,showIconLabels:c}=D(v=>{var M;const{getDeviceType:A,getCurrentPostType:_}=v(ue),{getEntityRecord:w,getPostType:k}=v(ce),{get:q}=v(Qe),{__unstableGetEditorMode:S}=v(F),C=_();return{deviceType:A(),editorMode:S(),homeUrl:w("root","__unstableBase")?.home,isTemplate:C==="wp_template",isViewable:(M=k(C)?.viewable)!==null&&M!==void 0?M:!1,showIconLabels:q("core","showIconLabels")}},[]),{setDeviceType:l}=ae(ue),{__unstableSetEditorMode:u}=ae(F),d=O.useRef(o);if(O.useEffect(()=>(o!=="zoom-out"&&(d.current=o),()=>{o==="zoom-out"&&o!==d.current&&u(d.current)}),[o,u]),g0("medium","<"))return null;const f={placement:"bottom-end"},b={className:"editor-preview-dropdown__toggle",iconPosition:"right",size:"compact",showTooltip:!c,disabled:t,accessibleWhenDisabled:t},h={"aria-label":m("View options")},g={desktop:Fq,mobile:xX,tablet:wX},z=[{value:"Desktop",label:m("Desktop"),icon:Fq}];window.__experimentalEnableZoomOutExperiment&&z.push({value:"ZoomOut",label:m("Desktop (50%)"),icon:Fq}),z.push({value:"Tablet",label:m("Tablet"),icon:wX}),z.push({value:"Mobile",label:m("Mobile"),icon:xX});const y=o==="zoom-out"?"ZoomOut":n,x=v=>{let M=d.current;v==="ZoomOut"?(M="zoom-out",l("Desktop")):l(v),u(M)};return a.jsx(E1,{className:$("editor-preview-dropdown",`editor-preview-dropdown--${n.toLowerCase()}`),popoverProps:f,toggleProps:b,menuProps:h,icon:g[n.toLowerCase()],text:o==="zoom-out"?m("50%"):void 0,label:m("View"),disableOpenOnArrowDown:t,children:({onClose:v})=>a.jsxs(a.Fragment,{children:[a.jsx(Yt,{children:a.jsx(Hp,{choices:z,value:y,onSelect:x})}),s&&a.jsx(Yt,{children:a.jsxs(tt,{href:r,target:"_blank",icon:Pp,onClick:v,children:[m("View site"),a.jsx(Kt,{as:"span",children:m("(opens in a new tab)")})]})}),i&&a.jsx(Yt,{children:a.jsx(u3e,{className:"editor-preview-dropdown__button-external",role:"menuitem",forceIsAutosaveable:e,"aria-label":m("Preview in new tab"),textContent:a.jsxs(a.Fragment,{children:[m("Preview in new tab"),a.jsx(xn,{icon:Pp})]}),onPreview:v})}),a.jsx(zO.Slot,{name:"core/plugin-preview-menu",as:Yt,fillProps:{onClick:v}})]})})}const MC={distractionFreeDisabled:{y:"-50px"},distractionFreeHover:{y:0},distractionFreeHidden:{y:"-50px"},visible:{y:0},hidden:{y:0}},HUt={distractionFreeDisabled:{x:"-100%"},distractionFreeHover:{x:0},distractionFreeHidden:{x:"-100%"},visible:{x:0},hidden:{x:0}};function UUt({customSaveButton:e,forceIsDirty:t,forceDisableBlockTools:n,setEntitiesSavedStatesCallback:o,title:r,icon:s}){const i=g0("large"),c=g0("medium"),l=qB("(max-width: 403px)"),{isTextEditor:u,isPublishSidebarOpened:d,showIconLabels:p,hasFixedToolbar:f,isNestedEntity:b}=D(x=>{const{get:v}=x(Qe),{getEditorMode:M,getEditorSettings:A,isPublishSidebarOpened:_}=x(ue),{__unstableGetEditorMode:w}=x(F);return{isTextEditor:M()==="text",isPublishSidebarOpened:_(),showIconLabels:v("core","showIconLabels"),hasFixedToolbar:v("core","fixedToolbar"),isNestedEntity:!!A().onNavigateToPreviousEntityRecord,isZoomedOutView:w()==="zoom-out"}},[]),[h,g]=O.useState(!0),z=h&&!l,y=qUt();return a.jsxs("div",{className:"editor-header edit-post-header",children:[y&&a.jsx(Hn.div,{className:"editor-header__back-button",variants:HUt,transition:{type:"tween"},children:a.jsx(m9.Slot,{})}),a.jsxs(Hn.div,{variants:MC,className:"editor-header__toolbar",transition:{type:"tween"},children:[a.jsx(EUt,{disableBlockTools:n||u}),f&&c&&a.jsx(TUt,{isCollapsed:h,onToggle:g})]}),z&&a.jsx(Hn.div,{className:"editor-header__center",variants:MC,transition:{type:"tween"},children:a.jsx(MFt,{title:r,icon:s})}),a.jsxs(Hn.div,{variants:MC,transition:{type:"tween"},className:"editor-header__settings",children:[!e&&!d&&a.jsx(WVt,{forceIsDirty:t}),a.jsx(VUt,{forceIsAutosaveable:t,disabled:b}),a.jsx(u3e,{className:"editor-header__post-preview-button",forceIsAutosaveable:t}),a.jsx($Ut,{}),!e&&a.jsx(FUt,{forceIsDirty:t,setEntitiesSavedStatesCallback:o}),e,(i||!p)&&a.jsx(Ik.Slot,{scope:"core"}),a.jsx(IUt,{})]})]})}const{PrivateInserterLibrary:XUt}=gt(p0);function GUt(){const{blockInsertionPoint:e,blockSectionRootClientId:t,inserterSidebarToggleRef:n,insertionPoint:o,showMostUsedBlocks:r,sidebarIsOpened:s}=D(b=>{const{getInserterSidebarToggleRef:h,getInsertionPoint:g,isPublishSidebarOpened:z}=gt(b(ue)),{getBlockInsertionPoint:y,getBlockRootClientId:x,__unstableGetEditorMode:v,getSectionRootClientId:M}=gt(b(F)),{get:A}=b(Qe),{getActiveComplementaryArea:_}=b(sn),w=()=>{if(v()==="zoom-out"){const k=M();if(k)return k}return x()};return{blockInsertionPoint:y(),inserterSidebarToggleRef:h(),insertionPoint:g(),showMostUsedBlocks:A("core","mostUsedBlocks"),blockSectionRootClientId:w(),sidebarIsOpened:!!(_("core")||z())}},[]),{setIsInserterOpened:i}=ae(ue),{disableComplementaryArea:c}=ae(sn),l=g0("medium","<"),u=O.useRef(),d=O.useCallback(()=>{i(!1),n.current?.focus()},[n,i]),p=O.useCallback(b=>{b.keyCode===Ea&&!b.defaultPrevented&&(b.preventDefault(),d())},[d]),f=a.jsx("div",{className:"editor-inserter-sidebar__content",children:a.jsx(XUt,{showMostUsedBlocks:r,showInserterHelpPanel:!0,shouldFocusBlock:l,rootClientId:t??e.rootClientId,__experimentalInsertionIndex:e.index,onSelect:o.onSelect,__experimentalInitialTab:o.tab,__experimentalInitialCategory:o.category,__experimentalFilterValue:o.filterValue,onPatternCategorySelection:s?()=>c("core"):void 0,ref:u,onClose:d})});return a.jsx("div",{onKeyDown:p,className:"editor-inserter-sidebar",children:f})}function KUt(){return a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"editor-list-view-sidebar__outline",children:[a.jsxs("div",{children:[a.jsx(l0,{children:m("Characters:")}),a.jsx(l0,{children:a.jsx(ZVt,{})})]}),a.jsxs("div",{children:[a.jsx(l0,{children:m("Words:")}),a.jsx(GVt,{})]}),a.jsxs("div",{children:[a.jsx(l0,{children:m("Time to read:")}),a.jsx(YVt,{})]})]}),a.jsx(xFt,{})]})}const{TabbedSidebar:YUt}=gt(p0);function ZUt(){const{setIsListViewOpened:e}=ae(ue),{getListViewToggleRef:t}=gt(D(ue)),n=Cx("firstElement"),o=O.useCallback(()=>{e(!1),t().current?.focus()},[t,e]),r=O.useCallback(g=>{g.keyCode===Ea&&!g.defaultPrevented&&(g.preventDefault(),o())},[o]),[s,i]=O.useState(null),[c,l]=O.useState("list-view"),u=O.useRef(),d=O.useRef(),p=O.useRef(),f=Gt([n,p,i]);function b(g){const z=Nn.tabbable.find(d.current)[0];if(g==="list-view"){const y=Nn.tabbable.find(p.current)[0];(u.current.contains(y)?y:z).focus()}else z.focus()}const h=O.useCallback(()=>{u.current.contains(u.current.ownerDocument.activeElement)?o():b(c)},[o,c]);return Ur("core/editor/toggle-list-view",h),a.jsx("div",{className:"editor-list-view-sidebar",onKeyDown:r,ref:u,children:a.jsx(YUt,{tabs:[{name:"list-view",title:Oe("List View","Post overview"),panel:a.jsx("div",{className:"editor-list-view-sidebar__list-view-container",children:a.jsx("div",{className:"editor-list-view-sidebar__list-view-panel-content",children:a.jsx(ACt,{dropZoneElement:s})})}),panelRef:f},{name:"outline",title:Oe("Outline","Post overview"),panel:a.jsx("div",{className:"editor-list-view-sidebar__list-view-container",children:a.jsx(KUt,{})})}],onClose:o,onSelect:g=>l(g),defaultTabId:"list-view",ref:d,closeButtonLabel:m("Close")})})}const{Fill:_b0,Slot:QUt}=_0("ActionsPanel");function JUt({setEntitiesSavedStatesCallback:e,closeEntitiesSavedStates:t,isEntitiesSavedStatesOpen:n,forceIsDirtyPublishPanel:o}){const{closePublishSidebar:r,togglePublishSidebar:s}=ae(ue),{publishSidebarOpened:i,isPublishable:c,isDirty:l,hasOtherEntitiesChanges:u}=D(f=>{const{isPublishSidebarOpened:b,isEditedPostPublishable:h,isCurrentPostPublished:g,isEditedPostDirty:z,hasNonPostEntityChanges:y}=f(ue),x=y();return{publishSidebarOpened:b(),isPublishable:!g()&&h(),isDirty:x||z(),hasOtherEntitiesChanges:x}},[]),d=O.useCallback(()=>e(!0),[]);let p;return i?p=a.jsx(qVt,{onClose:r,forceIsDirty:o,PrePublishExtension:s3e.Slot,PostPublishExtension:o3e.Slot}):c&&!u?p=a.jsx("div",{className:"editor-layout__toggle-publish-panel",children:a.jsx(fe,{__next40pxDefaultSize:!1,variant:"secondary",className:"editor-layout__toggle-publish-panel-button",onClick:s,"aria-expanded":!1,children:m("Open publish panel")})}):p=a.jsx("div",{className:"editor-layout__toggle-entities-saved-states-panel",children:a.jsx(fe,{__next40pxDefaultSize:!1,variant:"secondary",className:"editor-layout__toggle-entities-saved-states-panel-button",onClick:d,"aria-expanded":!1,disabled:!l,accessibleWhenDisabled:!0,children:m("Open save panel")})}),a.jsxs(a.Fragment,{children:[n&&a.jsx(DFt,{close:t}),a.jsx(QUt,{bubblesVirtually:!0}),!n&&p]})}function eXt({autoFocus:e=!1}){const{switchEditorMode:t}=ae(ue),{shortcut:n,isRichEditingEnabled:o}=D(s=>{const{getEditorSettings:i}=s(ue),{getShortcutRepresentation:c}=s(Br);return{shortcut:c("core/editor/toggle-mode"),isRichEditingEnabled:i().richEditingEnabled}},[]),r=O.useRef();return O.useEffect(()=>{e||r?.current?.focus()},[e]),a.jsxs("div",{className:"editor-text-editor",children:[o&&a.jsxs("div",{className:"editor-text-editor__toolbar",children:[a.jsx("h2",{children:m("Editing code")}),a.jsx(fe,{__next40pxDefaultSize:!1,variant:"tertiary",onClick:()=>t("visual"),shortcut:n,children:m("Exit code editor")})]}),a.jsxs("div",{className:"editor-text-editor__body",children:[a.jsx($Vt,{ref:r}),a.jsx(_3e,{})]})]})}function tXt({contentRef:e}){const{onNavigateToEntityRecord:t,templateId:n}=D(i=>{const{getEditorSettings:c,getCurrentTemplateId:l}=i(ue);return{onNavigateToEntityRecord:c().onNavigateToEntityRecord,templateId:l()}},[]),o=D(i=>!!i(ce).canUser("create",{kind:"postType",name:"wp_template"}),[]),[r,s]=O.useState(!1);return O.useEffect(()=>{const i=l=>{o&&l.target.classList.contains("is-root-container")&&s(!0)},c=e.current;return c?.addEventListener("dblclick",i),()=>{c?.removeEventListener("dblclick",i)}},[e,o]),o?a.jsx(bw,{isOpen:r,confirmButtonText:m("Edit template"),onConfirm:()=>{s(!1),t({postId:n,postType:"wp_template"})},onCancel:()=>s(!1),size:"medium",children:m("You’ve tried to select a block that is part of a template, which may be used on other posts and pages. Would you like to edit the template?")}):null}const bQ=20;function hQ({direction:e,resizeWidthBy:t}){function n(s){const{keyCode:i}=s;e==="left"&&i===Bs||e==="right"&&i===Ns?t(bQ):(e==="left"&&i===Ns||e==="right"&&i===Bs)&&t(-bQ)}const o={active:{opacity:1,scaleY:1.3}},r=`resizable-editor__resize-help-${e}`;return a.jsxs(a.Fragment,{children:[a.jsx(W1,{text:m("Drag to resize"),children:a.jsx(Hn.button,{className:`editor-resizable-editor__resize-handle is-${e}`,"aria-label":m("Drag to resize"),"aria-describedby":r,onKeyDown:n,variants:o,whileFocus:"active",whileHover:"active",whileTap:"active",role:"separator","aria-orientation":"vertical"},"handle")}),a.jsx(Kt,{id:r,children:m("Use left and right arrow keys to resize the canvas.")})]})}const mQ={position:void 0,userSelect:void 0,cursor:void 0,width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0};function P3e({className:e,enableResizing:t,height:n,children:o}){const[r,s]=O.useState("100%"),i=O.useRef(),c=O.useCallback(l=>{i.current&&s(i.current.offsetWidth+l)},[]);return a.jsx(Ui,{className:$("editor-resizable-editor",e,{"is-resizable":t}),ref:l=>{i.current=l?.resizable},size:{width:t?r:"100%",height:t&&n?n:"100%"},onResizeStop:(l,u,d)=>{s(d.style.width)},minWidth:300,maxWidth:"100%",maxHeight:"100%",enable:{left:t,right:t},showHandle:t,resizeRatio:2,handleComponent:{left:a.jsx(hQ,{direction:"left",resizeWidthBy:c}),right:a.jsx(hQ,{direction:"right",resizeWidthBy:c})},handleClasses:void 0,handleStyles:{left:mQ,right:mQ},children:o})}const nXt=500;function MQ(e,t,n){return Math.min(Math.max(e,t),n)}function oXt(e,t,n){const o=e-MQ(e,n.left,n.right),r=t-MQ(t,n.top,n.bottom);return Math.sqrt(o*o+r*r)}function rXt({isEnabled:e=!0}={}){const{getEnabledClientIdsTree:t,getBlockName:n,getBlockOrder:o}=gt(D(F)),{selectBlock:r}=ae(F);return Et(s=>{if(!e)return;const i=(l,u)=>{const d=t().flatMap(({clientId:b})=>{const h=n(b);if(h==="core/template-part")return[];if(h==="core/post-content"){const g=o(b);if(g.length)return g}return[b]});let p=1/0,f=null;for(const b of d){const h=s.querySelector(`[data-block="${b}"]`);if(!h)continue;const g=h.getBoundingClientRect(),z=oXt(l,u,g);z{(l.target===s||l.target.classList.contains("is-root-container"))&&i(l.clientX,l.clientY)};return s.addEventListener("click",c),()=>s.removeEventListener("click",c)},[e])}const{LayoutStyle:gy,useLayoutClasses:sXt,useLayoutStyles:iXt,ExperimentalBlockCanvas:aXt,useFlashEditableBlocks:cXt}=gt(p0),lXt=[ul,d1,th,vo];function ZT(e){for(let t=0;t{const{getCurrentPostId:K,getCurrentPostType:pe,getCurrentTemplateId:G,getEditorSettings:re,getRenderingMode:Me,getDeviceType:he}=xe(ue),{getPostType:Q,getEditedEntityRecord:R}=xe(ce),j=pe(),V=Me();let de;j===ul?de="core/block":V==="post-only"&&(de="core/post-content");const ge=re(),ve=ge.supportsTemplateMode,Ne=Q(j),et=G(),mt=et?R("postType",d1,et):void 0;return{renderingMode:V,postContentAttributes:ge.postContentAttributes,isDesignPostType:lXt.includes(j),editedPostTemplate:Ne?.viewable&&ve?mt:void 0,wrapperBlockName:de,wrapperUniqueId:K(),deviceType:he(),isFocusedEntity:!!ge.onNavigateToPreviousEntityRecord,postType:j,isPreview:ge.__unstableIsPreviewMode}},[]),{isCleanNewPost:M}=D(ue),{hasRootPaddingAwareAlignments:A,themeHasDisabledLayoutStyles:_,themeSupportsLayout:w,isZoomOutMode:k}=D(xe=>{const{getSettings:K,__unstableGetEditorMode:pe}=xe(F),G=K();return{themeHasDisabledLayoutStyles:G.disableLayoutStyles,themeSupportsLayout:G.supportsLayout,hasRootPaddingAwareAlignments:G.__experimentalFeatures?.useRootPaddingAwareAlignments,isZoomOutMode:pe()==="zoom-out"}},[]),q=TWt(g),[S]=O0("layout"),C=O.useMemo(()=>d!=="post-only"||y?{type:"default"}:w?{...S,type:"constrained"}:{type:"default"},[d,w,S,y]),T=O.useMemo(()=>{if(!f?.content&&!f?.blocks&&p)return p;if(f?.blocks)return ZT(f?.blocks);const xe=typeof f?.content=="string"?f?.content:"";return ZT(Yn(xe))||{}},[f?.content,f?.blocks,p]),W=O.useMemo(()=>{if(!f?.content&&!f?.blocks)return!1;if(f?.blocks)return gQ(f?.blocks);const xe=typeof f?.content=="string"?f?.content:"";return gQ(Yn(xe))||!1},[f?.content,f?.blocks]),{layout:B={},align:N=""}=T||{},E=sXt(T,"core/post-content"),L=$({"is-layout-flow":!w},w&&E,N&&`align${N}`),I=iXt(T,"core/post-content",".block-editor-block-list__layout.is-root-container"),P=O.useMemo(()=>B&&(B?.type==="constrained"||B?.inherit||B?.contentSize||B?.wideSize)?{...S,...B,type:"constrained"}:{...S,...B,type:"default"},[B?.type,B?.inherit,B?.contentSize,B?.wideSize,S]),H=p?P:C,U=H?.type==="default"&&!W?C:H,X=Rhe(),Z=O.useRef();O.useEffect(()=>{!e||!M()||Z?.current?.focus()},[e,M]);const ne=`.is-root-container.alignwide { max-width: var(--wp--style--global--wide-size); margin-left: auto; margin-right: auto;} +`,S);const T=Mf({HTML:C,plainText:S});if(k.preventDefault(),!!T.length)if(typeof T!="string"){const[W]=T;if(!i&&(W.name==="core/heading"||W.name==="core/paragraph")){const B=Rr(W.attributes.content);c(B),y(T.slice(1))}else y(T)}else{const W=Rr(T);g(Y1(h,m0({html:W})))}}const w=$(w3e,{"is-selected":o});return a.jsx(Ha,{supportKeys:"title",children:a.jsx("h1",{ref:Gt([z,s]),contentEditable:!0,className:w,"aria-label":b,role:"textbox","aria-multiline":"true",onFocus:x,onBlur:v,onKeyDown:A,onPaste:_})})}const C3e=O.forwardRef(DVt);function FVt(e,t){const{placeholder:n}=D(b=>{const{getSettings:h}=b(F),{titlePlaceholder:g}=h();return{placeholder:g}},[]),[o,r]=O.useState(!1),{title:s,setTitle:i}=S3e(),{ref:c}=q3e(t);function l(b){i(b.replace(k3e," "))}function u(){r(!0)}function d(){r(!1)}const p=$(w3e,{"is-selected":o,"is-raw-text":!0}),f=kt(n)||m("Add title");return a.jsx(Pi,{ref:c,value:s,onChange:l,onFocus:u,onBlur:d,label:n,className:p,placeholder:f,hideLabelFromVision:!0,autoComplete:"off",dir:"auto",rows:1,__nextHasNoMarginBottom:!0})}const $Vt=O.forwardRef(FVt);function VVt({onClose:e}){const{isEditable:t,postSlug:n,postLink:o,permalinkPrefix:r,permalinkSuffix:s,permalink:i}=D(f=>{var b;const h=f(ue).getCurrentPost(),g=f(ue).getCurrentPostType(),z=f(ce).getPostType(g),y=f(ue).getPermalinkParts(),x=(b=h?._links?.["wp:action-publish"])!==null&&b!==void 0?b:!1;return{isEditable:f(ue).isPermalinkEditable()&&x,postSlug:zg(f(ue).getEditedPostSlug()),viewPostLabel:z?.labels.view_item,postLink:h.link,permalinkPrefix:y?.prefix,permalinkSuffix:y?.suffix,permalink:zg(f(ue).getPermalink())}},[]),{editPost:c}=ae(ue),{createNotice:l}=ae(Ze),[u,d]=O.useState(!1),p=af(i,()=>{l("info",m("Copied URL to clipboard."),{isDismissible:!0,type:"snackbar"})});return a.jsxs("div",{className:"editor-post-url",children:[a.jsx(Os,{title:m("Link"),onClose:e}),a.jsxs(Ye,{spacing:3,children:[t&&a.jsx("div",{children:z1(m("Customize the last part of the URL. Learn more."),{a:a.jsx(S1,{href:m("https://wordpress.org/documentation/article/page-post-settings-sidebar/#permalink")})})}),a.jsxs("div",{children:[t&&a.jsx(Is,{__next40pxDefaultSize:!0,prefix:a.jsx(Fp,{children:"/"}),suffix:a.jsx(fe,{__next40pxDefaultSize:!1,icon:Gce,ref:p,label:m("Copy")}),label:m("Link"),hideLabelFromVision:!0,value:u?"":n,autoComplete:"off",spellCheck:"false",type:"text",className:"editor-post-url__input",onChange:f=>{if(c({slug:f}),!f){u||d(!0);return}u&&d(!1)},onBlur:f=>{c({slug:hB(f.target.value)}),u&&d(!1)},help:a.jsxs(S1,{className:"editor-post-url__link",href:o,target:"_blank",children:[a.jsx("span",{className:"editor-post-url__link-prefix",children:r}),a.jsx("span",{className:"editor-post-url__link-slug",children:n}),a.jsx("span",{className:"editor-post-url__link-suffix",children:s})]})}),!t&&a.jsx(S1,{className:"editor-post-url__link",href:o,target:"_blank",children:o})]})]})]})}function HVt({children:e}){return D(n=>{const o=n(ue).getCurrentPostType();return!(!n(ce).getPostType(o)?.viewable||!n(ue).getCurrentPost().link||!n(ue).getPermalinkParts())},[])?e:null}function UVt(){const[e,t]=O.useState(null),n=O.useMemo(()=>({anchor:e,placement:"left-start",offset:36,shift:!0}),[e]);return a.jsx(HVt,{children:a.jsx(Lr,{label:m("Link"),ref:t,children:a.jsx(B0,{popoverProps:n,className:"editor-post-url__panel-dropdown",contentClassName:"editor-post-url__panel-dialog",focusOnMount:!0,renderToggle:({isOpen:o,onToggle:r})=>a.jsx(XVt,{isOpen:o,onClick:r}),renderContent:({onClose:o})=>a.jsx(VVt,{onClose:o})})})})}function XVt({isOpen:e,onClick:t}){const{slug:n,isFrontPage:o,postLink:r}=D(i=>{const{getCurrentPostId:c,getCurrentPost:l}=i(ue),{getEditedEntityRecord:u,canUser:d}=i(ce),p=d("read",{kind:"root",name:"site"})?u("root","site"):void 0,f=c();return{slug:i(ue).getEditedPostSlug(),isFrontPage:p?.page_on_front===f,postLink:l()?.link}},[]),s=zg(n);return a.jsx(fe,{size:"compact",className:"editor-post-url__panel-toggle",variant:"tertiary","aria-expanded":e,"aria-label":le(m("Change link: %s"),s),onClick:t,children:a.jsx(Ho,{numberOfLines:1,children:o?r:`/${s}`})})}function GVt(){const e=D(n=>n(ue).getEditedPostAttribute("content"),[]),t=Oe("words","Word count type. Do not translate!");return a.jsx("span",{className:"word-count",children:Jh(e,t)})}const KVt=189;function YVt(){const e=D(r=>r(ue).getEditedPostAttribute("content"),[]),t=Oe("words","Word count type. Do not translate!"),n=Math.round(Jh(e,t)/KVt),o=n===0?z1(m("< 1 minute"),{span:a.jsx("span",{})}):z1(le(a0("%d minute","%d minutes",n),n),{span:a.jsx("span",{})});return a.jsx("span",{className:"time-to-read",children:o})}function ZVt(){const e=D(t=>t(ue).getEditedPostAttribute("content"),[]);return Jh(e,"characters_including_spaces")}function QVt(e,t,n){if(!n)return t;let o=e.get(t);return o||(o=SB({"core/block-editor":Nw},t),o.registerStore("core/editor",Fze),e.set(t,o)),o}const JVt=Sn(e=>({useSubRegistry:t=!0,...n})=>{const o=h0(),[r]=O.useState(()=>new WeakMap),s=QVt(r,o,t);return s===o?a.jsx(e,{registry:o,...n}):a.jsx(Ene,{value:s,children:a.jsx(e,{registry:s,...n})})},"withRegistryProvider"),Ll=(e,t)=>`${t}`,KT=e=>`href="${e}" target="_blank" rel="noreferrer noopener"`,eHt=(e,t)=>{let n=e.trim();return e!=="pdm"&&(n=e.toUpperCase().replace("SAMPLING","Sampling")),t&&(n+=` ${t}`),["pdm","cc0"].includes(e)||(n=`CC ${n}`),n},tHt=e=>{const{title:t,foreign_landing_url:n,creator:o,creator_url:r,license:s,license_version:i,license_url:c}=e,l=eHt(s,i),u=kt(o);let d;return u?d=t?le(Oe('"%1$s" by %2$s/ %3$s',"caption"),Ll(n,kt(t)),r?Ll(r,u):u,c?Ll(`${c}?ref=openverse`,l):l):le(Oe("Work by %2$s/ %3$s","caption"),KT(n),r?Ll(r,u):u,c?Ll(`${c}?ref=openverse`,l):l):d=t?le(Oe('"%1$s"/ %2$s',"caption"),Ll(n,kt(t)),c?Ll(`${c}?ref=openverse`,l):l):le(Oe("Work/ %2$s","caption"),KT(n),c?Ll(`${c}?ref=openverse`,l):l),d.replace(/\s{2}/g," ")},bC=async(e={})=>(await mSe(ce).getMediaItems({...e,orderBy:e?.search?"relevance":"date"})).map(n=>({...n,alt:n.alt_text,url:n.source_url,previewUrl:n.media_details?.sizes?.medium?.source_url,caption:n.caption?.raw})),nHt=[{name:"images",labels:{name:m("Images"),search_items:m("Search images")},mediaType:"image",async fetch(e={}){return bC({...e,media_type:"image"})}},{name:"videos",labels:{name:m("Videos"),search_items:m("Search videos")},mediaType:"video",async fetch(e={}){return bC({...e,media_type:"video"})}},{name:"audio",labels:{name:m("Audio"),search_items:m("Search audio")},mediaType:"audio",async fetch(e={}){return bC({...e,media_type:"audio"})}},{name:"openverse",labels:{name:m("Openverse"),search_items:m("Search Openverse")},mediaType:"image",async fetch(e={}){const n={...e,...{mature:!1,excluded_source:"flickr,inaturalist,wikimedia",license:"pdm,cc0"}},o={per_page:"page_size",search:"q"},r=new URL("https://api.openverse.org/v1/images/");return Object.entries(n).forEach(([l,u])=>{const d=o[l]||l;r.searchParams.set(d,u)}),(await(await window.fetch(r,{headers:{"User-Agent":"WordPress/inserter-media-fetch"}})).json()).results.map(l=>({...l,title:l.title?.toLowerCase().startsWith("file:")?l.title.slice(5):l.title,sourceId:l.id,id:void 0,caption:tHt(l),previewUrl:l.thumbnail}))},getReportUrl:({sourceId:e})=>`https://wordpress.org/openverse/image/${e}/report/`,isExternalResource:!0}],oHt=[],rHt=()=>{const{wp:e}=window;return e.media.view.MediaFrame.Select.extend({featuredImageToolbar(t){this.createSelectToolbar(t,{text:e.media.view.l10n.setFeaturedImage,state:this.options.state})},editState(){const t=this.state("featured-image").get("selection"),n=new e.media.view.EditImage({model:t.single(),controller:this}).render();this.content.set(n),n.loadEditor()},createStates:function(){this.on("toolbar:create:featured-image",this.featuredImageToolbar,this),this.on("content:render:edit-image",this.editState,this),this.states.add([new e.media.controller.FeaturedImage,new e.media.controller.EditImage({model:this.options.editImage})])}})},sHt=()=>{const{wp:e}=window;return e.media.view.MediaFrame.Post.extend({galleryToolbar(){const t=this.state().get("editing");this.toolbar.set(new e.media.view.Toolbar({controller:this,items:{insert:{style:"primary",text:t?e.media.view.l10n.updateGallery:e.media.view.l10n.insertGallery,priority:80,requires:{library:!0},click(){const n=this.controller,o=n.state();n.close(),o.trigger("update",o.get("library")),n.setState(n.options.state),n.reset()}}}}))},editState(){const t=this.state("gallery").get("selection"),n=new e.media.view.EditImage({model:t.single(),controller:this}).render();this.content.set(n),n.loadEditor()},createStates:function(){this.on("toolbar:create:main-gallery",this.galleryToolbar,this),this.on("content:render:edit-image",this.editState,this),this.states.add([new e.media.controller.Library({id:"gallery",title:e.media.view.l10n.createGalleryTitle,priority:40,toolbar:"main-gallery",filterable:"uploaded",multiple:"add",editable:!1,library:e.media.query({type:"image",...this.options.library})}),new e.media.controller.EditImage({model:this.options.editImage}),new e.media.controller.GalleryEdit({library:this.options.selection,editing:this.options.editing,menu:"gallery",displaySettings:!1,multiple:!0}),new e.media.controller.GalleryAdd])}})},sQ=e=>["sizes","mime","type","subtype","id","url","alt","link","caption"].reduce((n,o)=>(e?.hasOwnProperty(o)&&(n[o]=e[o]),n),{}),hC=e=>{const{wp:t}=window;return t.media.query({order:"ASC",orderby:"post__in",post__in:e,posts_per_page:-1,query:!0,type:"image"})};class iHt extends O.Component{constructor(){super(...arguments),this.openModal=this.openModal.bind(this),this.onOpen=this.onOpen.bind(this),this.onSelect=this.onSelect.bind(this),this.onUpdate=this.onUpdate.bind(this),this.onClose=this.onClose.bind(this)}initializeListeners(){this.frame.on("select",this.onSelect),this.frame.on("update",this.onUpdate),this.frame.on("open",this.onOpen),this.frame.on("close",this.onClose)}buildAndSetGalleryFrame(){const{addToGallery:t=!1,allowedTypes:n,multiple:o=!1,value:r=oHt}=this.props;if(r===this.lastGalleryValue)return;const{wp:s}=window;this.lastGalleryValue=r,this.frame&&this.frame.remove();let i;t?i="gallery-library":i=r&&r.length?"gallery-edit":"gallery",this.GalleryDetailsMediaFrame||(this.GalleryDetailsMediaFrame=sHt());const c=hC(r),l=new s.media.model.Selection(c.models,{props:c.props.toJSON(),multiple:o});this.frame=new this.GalleryDetailsMediaFrame({mimeType:n,state:i,multiple:o,selection:l,editing:!!(r&&r.length)}),s.media.frame=this.frame,this.initializeListeners()}buildAndSetFeatureImageFrame(){const{wp:t}=window,{value:n,multiple:o,allowedTypes:r}=this.props,s=rHt(),i=hC(n),c=new t.media.model.Selection(i.models,{props:i.props.toJSON()});this.frame=new s({mimeType:r,state:"featured-image",multiple:o,selection:c,editing:n}),t.media.frame=this.frame,t.media.view.settings.post={...t.media.view.settings.post,featuredImageId:n||-1}}componentWillUnmount(){this.frame?.remove()}onUpdate(t){const{onSelect:n,multiple:o=!1}=this.props,r=this.frame.state(),s=t||r.get("selection");!s||!s.models.length||n(o?s.models.map(i=>sQ(i.toJSON())):sQ(s.models[0].toJSON()))}onSelect(){const{onSelect:t,multiple:n=!1}=this.props,o=this.frame.state().get("selection").toJSON();t(n?o:o[0])}onOpen(){const{wp:t}=window,{value:n}=this.props;if(this.updateCollection(),this.props.mode&&this.frame.content.mode(this.props.mode),!(Array.isArray(n)?!!n?.length:!!n))return;const r=this.props.gallery,s=this.frame.state().get("selection"),i=Array.isArray(n)?n:[n];r||i.forEach(l=>{s.add(t.media.attachment(l))});const c=hC(i);c.more().done(function(){r&&c?.models?.length&&s.add(c.models)})}onClose(){const{onClose:t}=this.props;t&&t(),this.frame.detach()}updateCollection(){const t=this.frame.content.get();if(t&&t.collection){const n=t.collection;n.toArray().forEach(o=>o.trigger("destroy",o)),n.mirroring._hasMore=!0,n.more()}}openModal(){const{allowedTypes:t,gallery:n=!1,unstableFeaturedImageFlow:o=!1,modalClass:r,multiple:s=!1,title:i=m("Select or Upload Media")}=this.props,{wp:c}=window;if(n)this.buildAndSetGalleryFrame();else{const l={title:i,multiple:s};t&&(l.library={type:t}),this.frame=c.media(l)}r&&this.frame.$el.addClass(r),o&&this.buildAndSetFeatureImageFrame(),this.initializeListeners(),this.frame.open()}render(){return this.props.render({open:this.openModal})}}const aHt=()=>{};function cHt(e){return e&&Object.entries(e).map(([t,n])=>{const[o]=n.split("/"),r=t.split("|");return[n,...r.map(s=>`${o}/${s}`)]}).flat()}async function lHt({allowedTypes:e,additionalData:t={},filesList:n,maxUploadFileSize:o,onError:r=aHt,onFileChange:s,wpAllowedMimeTypes:i=null}){const c=[...n],l=[],u=(g,z)=>{S8(l[g]?.url),l[g]=z,s(l.filter(Boolean))},d=g=>e?e.some(z=>z.includes("/")?z===g:g.startsWith(`${z}/`)):!0,p=cHt(i),f=g=>p.includes(g),b=[];for(const g of c){if(p&&g.type&&!f(g.type)){r({code:"MIME_TYPE_NOT_ALLOWED_FOR_USER",message:le(m("%s: Sorry, you are not allowed to upload this file type."),g.name),file:g});continue}if(g.type&&!d(g.type)){r({code:"MIME_TYPE_NOT_SUPPORTED",message:le(m("%s: Sorry, this file type is not supported here."),g.name),file:g});continue}if(o&&g.size>o){r({code:"SIZE_ABOVE_LIMIT",message:le(m("%s: This file exceeds the maximum upload size for this site."),g.name),file:g});continue}if(g.size<=0){r({code:"EMPTY_FILE",message:le(m("%s: This file is empty."),g.name),file:g});continue}b.push(g),l.push({url:Qc(g)}),s(l)}for(let g=0;gn.append(o,r)),ct({path:"/wp/v2/media",body:n,method:"POST"})}const dHt=()=>{};function R3e({additionalData:e={},allowedTypes:t,filesList:n,maxUploadFileSize:o,onError:r=dHt,onFileChange:s}){const{getCurrentPost:i,getEditorSettings:c}=V0(ue),{lockPostAutosaving:l,unlockPostAutosaving:u,lockPostSaving:d,unlockPostSaving:p}=tr(ue),f=c().allowedMimeTypes,b=`image-upload-${Xc()}`;let h=!1;o=o||c().maxUploadFileSize;const g=i(),z=typeof g?.id=="number"?g.id:g?.wp_id,y=()=>{d(b),l(b),h=!0},x=z?{post:z}:{},v=()=>{p(b),u(b),h=!1};lHt({allowedTypes:t,filesList:n,onFileChange:M=>{h?v():y(),s(M)},additionalData:{...x,...e},maxUploadFileSize:o,onError:({message:M})=>{v(),r(M)},wpAllowedMimeTypes:f})}const{GlobalStylesContext:pHt,cleanEmptyObject:mC}=gt(p0);function W3e(e,t){return Wne(e,t,{isMergeableObject:Pz,customMerge:n=>{if(n==="backgroundImage")return(o,r)=>r}})}function fHt(){const{globalStylesId:e,isReady:t,settings:n,styles:o,_links:r}=D(u=>{const{getEditedEntityRecord:d,hasFinishedResolution:p,canUser:f}=u(ce),b=u(ce).__experimentalGetCurrentGlobalStylesId(),h=b&&f("read",{kind:"root",name:"globalStyles",id:b})?d("root","globalStyles",b):void 0;let g=!1;return p("__experimentalGetCurrentGlobalStylesId")&&(g=b?p("getEditedEntityRecord",["root","globalStyles",b]):!0),{globalStylesId:b,isReady:g,settings:h?.settings,styles:h?.styles,_links:h?._links}},[]),{getEditedEntityRecord:s}=D(ce),{editEntityRecord:i}=ae(ce),c=O.useMemo(()=>({settings:n??{},styles:o??{},_links:r??{}}),[n,o,r]),l=O.useCallback((u,d={})=>{var p,f,b;const h=s("root","globalStyles",e),g={styles:(p=h?.styles)!==null&&p!==void 0?p:{},settings:(f=h?.settings)!==null&&f!==void 0?f:{},_links:(b=h?._links)!==null&&b!==void 0?b:{}},z=typeof u=="function"?u(g):u;i("root","globalStyles",e,{styles:mC(z.styles)||{},settings:mC(z.settings)||{},_links:mC(z._links)||{}},d)},[e,i,s]);return[t,c,l]}function bHt(){const e=D(t=>{const{__experimentalGetCurrentThemeBaseGlobalStyles:n,canUser:o}=t(ce);return o("read",{kind:"root",name:"theme"})&&n()},[]);return[!!e,e]}function T3e(){const[e,t,n]=fHt(),[o,r]=bHt(),s=O.useMemo(()=>!r||!t?{}:W3e(r,t),[t,r]);return O.useMemo(()=>({isReady:e&&o,user:t,base:r,merged:s,setUserConfig:n}),[s,t,r,n,e,o])}function hHt({children:e}){const t=T3e();return t.isReady?a.jsx(pHt.Provider,{value:t,children:e}):null}const mHt=[],iQ={};function MHt(e){var t;return(t=e(ce).getEntityRecords("postType","wp_block",{per_page:-1}))!==null&&t!==void 0?t:mHt}const gHt=["__experimentalBlockDirectory","__experimentalDiscussionSettings","__experimentalFeatures","__experimentalGlobalStylesBaseStyles","alignWide","blockInspectorTabs","allowedMimeTypes","bodyPlaceholder","canLockBlocks","canUpdateBlockBindings","capabilities","clearBlockSelection","codeEditingEnabled","colors","disableCustomColors","disableCustomFontSizes","disableCustomSpacingSizes","disableCustomGradients","disableLayoutStyles","enableCustomLineHeight","enableCustomSpacing","enableCustomUnits","enableOpenverseMediaCategory","fontSizes","gradients","generateAnchors","onNavigateToEntityRecord","imageDefaultSize","imageDimensions","imageEditing","imageSizes","isRTL","locale","maxWidth","postContentAttributes","postsPerPage","readOnly","styles","titlePlaceholder","supportsLayout","widgetTypesToHideFromLegacyWidgetBlock","__unstableHasCustomAppender","__unstableIsPreviewMode","__unstableResolvedAssets","__unstableIsBlockBasedTheme"],{globalStylesDataKey:zHt,globalStylesLinksDataKey:OHt,selectBlockPatternsKey:AHt,reusableBlocksSelectKey:yHt,sectionRootClientIdKey:vHt}=gt(p0);function xHt(e,t,n,o){var r,s,i,c;const l=g0("medium"),{allowRightClickOverrides:u,blockTypes:d,focusMode:p,hasFixedToolbar:f,isDistractionFree:b,keepCaretInsideBlock:h,hasUploadPermissions:g,hiddenBlockTypes:z,canUseUnfilteredHTML:y,userCanCreatePages:x,pageOnFront:v,pageForPosts:M,userPatternCategories:A,restBlockPatternCategories:_,sectionRootClientId:w}=D(U=>{var X;const{canUser:Z,getRawEntityRecord:ne,getEntityRecord:oe,getUserPatternCategories:Y,getBlockPatternCategories:ee}=U(ce),{get:ie}=U(Qe),{getBlockTypes:se}=U($e),{getBlocksByName:be,getBlockAttributes:ye}=U(F),xe=Z("read",{kind:"root",name:"site"})?oe("root","site"):void 0;function K(){var pe;if(o==="template-locked"){var G;return(G=be("core/post-content")?.[0])!==null&&G!==void 0?G:""}return(pe=be("core/group").find(re=>ye(re)?.tagName==="main"))!==null&&pe!==void 0?pe:""}return{allowRightClickOverrides:ie("core","allowRightClickOverrides"),blockTypes:se(),canUseUnfilteredHTML:ne("postType",t,n)?._links?.hasOwnProperty("wp:action-unfiltered-html"),focusMode:ie("core","focusMode"),hasFixedToolbar:ie("core","fixedToolbar")||!l,hiddenBlockTypes:ie("core","hiddenBlockTypes"),isDistractionFree:ie("core","distractionFree"),keepCaretInsideBlock:ie("core","keepCaretInsideBlock"),hasUploadPermissions:(X=Z("create",{kind:"root",name:"media"}))!==null&&X!==void 0?X:!0,userCanCreatePages:Z("create",{kind:"postType",name:"page"}),pageOnFront:xe?.page_on_front,pageForPosts:xe?.page_for_posts,userPatternCategories:Y(),restBlockPatternCategories:ee(),sectionRootClientId:K()}},[t,n,l,o]),{merged:k}=T3e(),q=(r=k.styles)!==null&&r!==void 0?r:iQ,S=(s=k._links)!==null&&s!==void 0?s:iQ,C=(i=e.__experimentalAdditionalBlockPatterns)!==null&&i!==void 0?i:e.__experimentalBlockPatterns,T=(c=e.__experimentalAdditionalBlockPatternCategories)!==null&&c!==void 0?c:e.__experimentalBlockPatternCategories,W=O.useMemo(()=>[...C||[]].filter(({postTypes:U})=>!U||Array.isArray(U)&&U.includes(t)),[C,t]),B=O.useMemo(()=>[...T||[],..._||[]].filter((U,X,Z)=>X===Z.findIndex(ne=>U.name===ne.name)),[T,_]),{undo:N,setIsInserterOpened:E}=ae(ue),{saveEntityRecord:L}=ae(ce),I=O.useCallback(U=>x?L("postType","page",U):Promise.reject({message:m("You do not have permission to create Pages.")}),[L,x]),P=O.useMemo(()=>z&&z.length>0?(e.allowedBlockTypes===!0?d.map(({name:X})=>X):e.allowedBlockTypes||[]).filter(X=>!z.includes(X)):e.allowedBlockTypes,[e.allowedBlockTypes,z,d]),H=e.focusMode===!1;return O.useMemo(()=>({...Object.fromEntries(Object.entries(e).filter(([X])=>gHt.includes(X))),[zHt]:q,[OHt]:S,allowedBlockTypes:P,allowRightClickOverrides:u,focusMode:p&&!H,hasFixedToolbar:f,isDistractionFree:b,keepCaretInsideBlock:h,mediaUpload:g?R3e:void 0,__experimentalBlockPatterns:W,[AHt]:X=>{const{hasFinishedResolution:Z,getBlockPatternsForPostType:ne}=gt(X(ce)),oe=ne(t);return Z("getBlockPatterns")?oe:void 0},[yHt]:MHt,__experimentalBlockPatternCategories:B,__experimentalUserPatternCategories:A,__experimentalFetchLinkSuggestions:(X,Z)=>uBe(X,Z,e),inserterMediaCategories:nHt,__experimentalFetchRichUrlData:pBe,__experimentalCanUserUseUnfilteredHTML:y,__experimentalUndo:N,outlineMode:!b&&t==="wp_template",__experimentalCreatePageEntity:I,__experimentalUserCanCreatePages:x,pageOnFront:v,pageForPosts:M,__experimentalPreferPatternsOnRoot:t==="wp_template",templateLock:t==="wp_navigation"?"insert":e.templateLock,template:t==="wp_navigation"?[["core/navigation",{},[]]]:e.template,__experimentalSetIsInserterOpened:E,[vHt]:w}),[P,u,p,H,f,b,h,e,g,A,W,B,y,N,I,x,v,M,t,E,w,q,S])}const _Ht=["core/post-title","core/post-featured-image","core/post-content"];function wHt(){const e=O.useMemo(()=>[..._n("editor.postContentBlockTypes",_Ht),"core/template-part"],[]),t=D(r=>{const{getPostBlocksByName:s}=gt(r(ue));return s(e)},[e]),n=D(r=>{const{getBlocksByName:s,getBlockOrder:i}=r(F);return s("core/template-part").flatMap(c=>i(c))},[]),o=h0();return O.useEffect(()=>{const{setBlockEditingMode:r,unsetBlockEditingMode:s}=o.dispatch(F);return o.batch(()=>{r("","disabled");for(const i of t)r(i,"contentOnly");for(const i of n)r(i,"disabled")}),()=>{o.batch(()=>{s("");for(const i of t)s(i);for(const i of n)s(i)})}},[t,n,o]),null}function kHt(){const e=D(o=>o(F).getBlockOrder()?.[0],[]),{setBlockEditingMode:t,unsetBlockEditingMode:n}=ae(F);O.useEffect(()=>{if(e)return t(e,"contentOnly"),()=>{n(e)}},[e,n,t])}const aQ=["wp_block","wp_template","wp_template_part"];function qHt(e,t){O.useEffect(()=>(r0("blockEditor.__unstableCanInsertBlockType","removeTemplatePartsFromInserter",(n,o)=>!aQ.includes(e)&&o.name==="core/template-part"&&t==="post-only"?!1:n),r0("blockEditor.__unstableCanInsertBlockType","removePostContentFromInserter",(n,o,r,{getBlockParentsByBlockName:s})=>!aQ.includes(e)&&o.name==="core/post-content"?s(r,"core/query").length>0:n),()=>{c$("blockEditor.__unstableCanInsertBlockType","removeTemplatePartsFromInserter"),c$("blockEditor.__unstableCanInsertBlockType","removePostContentFromInserter")}),[e,t])}const{RenamePatternModal:SHt}=gt(Gi),E3e="editor/pattern-rename";function CHt(){const{record:e,postType:t}=D(r=>{const{getCurrentPostType:s,getCurrentPostId:i}=r(ue),{getEditedEntityRecord:c}=r(ce),l=s();return{record:c("postType",l,i()),postType:l}},[]),{closeModal:n}=ae(sn);return!D(r=>r(sn).isModalActive(E3e))||t!==ul?null:a.jsx(SHt,{onClose:n,pattern:e})}const{DuplicatePatternModal:RHt}=gt(Gi),B3e="editor/pattern-duplicate";function WHt(){const{record:e,postType:t}=D(r=>{const{getCurrentPostType:s,getCurrentPostId:i}=r(ue),{getEditedEntityRecord:c}=r(ce),l=s();return{record:c("postType",l,i()),postType:l}},[]),{closeModal:n}=ae(sn);return!D(r=>r(sn).isModalActive(B3e))||t!==ul?null:a.jsx(RHt,{onClose:n,onSuccess:()=>n(),pattern:e})}function THt(){const{editorMode:e,isListViewOpen:t,showBlockBreadcrumbs:n,isDistractionFree:o,isTopToolbar:r,isFocusMode:s,isPreviewMode:i,isViewable:c,isCodeEditingEnabled:l,isRichEditingEnabled:u,isPublishSidebarEnabled:d}=D(k=>{var q,S;const{get:C}=k(Qe),{isListViewOpened:T,getCurrentPostType:W,getEditorSettings:B}=k(ue),{getSettings:N}=k(F),{getPostType:E}=k(ce);return{editorMode:(q=C("core","editorMode"))!==null&&q!==void 0?q:"visual",isListViewOpen:T(),showBlockBreadcrumbs:C("core","showBlockBreadcrumbs"),isDistractionFree:C("core","distractionFree"),isFocusMode:C("core","focusMode"),isTopToolbar:C("core","fixedToolbar"),isPreviewMode:N().__unstableIsPreviewMode,isViewable:(S=E(W())?.viewable)!==null&&S!==void 0?S:!1,isCodeEditingEnabled:B().codeEditingEnabled,isRichEditingEnabled:B().richEditingEnabled,isPublishSidebarEnabled:k(ue).isPublishSidebarEnabled()}},[]),{getActiveComplementaryArea:p}=D(sn),{toggle:f}=ae(Qe),{createInfoNotice:b}=ae(Ze),{__unstableSaveForPreview:h,setIsListViewOpened:g,switchEditorMode:z,toggleDistractionFree:y}=ae(ue),{openModal:x,enableComplementaryArea:v,disableComplementaryArea:M}=ae(sn),{getCurrentPostId:A}=D(ue),_=l&&u;if(i)return{commands:[],isLoading:!1};const w=[];return w.push({name:"core/open-shortcut-help",label:m("Keyboard shortcuts"),icon:oZe,callback:({close:k})=>{k(),x("editor/keyboard-shortcut-help")}}),w.push({name:"core/toggle-distraction-free",label:m(o?"Exit Distraction Free":"Enter Distraction Free"),callback:({close:k})=>{y(),k()}}),w.push({name:"core/open-preferences",label:m("Editor preferences"),callback:({close:k})=>{k(),x("editor/preferences")}}),w.push({name:"core/toggle-spotlight-mode",label:m("Toggle spotlight"),callback:({close:k})=>{f("core","focusMode"),k(),b(m(s?"Spotlight off.":"Spotlight on."),{id:"core/editor/toggle-spotlight-mode/notice",type:"snackbar",actions:[{label:m("Undo"),onClick:()=>{f("core","focusMode")}}]})}}),w.push({name:"core/toggle-list-view",label:m(t?"Close List View":"Open List View"),icon:M7,callback:({close:k})=>{g(!t),k(),b(m(t?"List View off.":"List View on."),{id:"core/editor/toggle-list-view/notice",type:"snackbar"})}}),w.push({name:"core/toggle-top-toolbar",label:m("Toggle top toolbar"),callback:({close:k})=>{f("core","fixedToolbar"),o&&y(),k(),b(m(r?"Top toolbar off.":"Top toolbar on."),{id:"core/editor/toggle-top-toolbar/notice",type:"snackbar",actions:[{label:m("Undo"),onClick:()=>{f("core","fixedToolbar")}}]})}}),_&&w.push({name:"core/toggle-code-editor",label:m(e==="visual"?"Open code editor":"Exit code editor"),icon:p7,callback:({close:k})=>{z(e==="visual"?"text":"visual"),k()}}),w.push({name:"core/toggle-breadcrumbs",label:m(n?"Hide block breadcrumbs":"Show block breadcrumbs"),callback:({close:k})=>{f("core","showBlockBreadcrumbs"),k(),b(m(n?"Breadcrumbs hidden.":"Breadcrumbs visible."),{id:"core/editor/toggle-breadcrumbs/notice",type:"snackbar"})}}),w.push({name:"core/open-settings-sidebar",label:m("Toggle settings sidebar"),icon:ft()?Qce:Jce,callback:({close:k})=>{const q=p("core");k(),q==="edit-post/document"?M("core"):v("core","edit-post/document")}}),w.push({name:"core/open-block-inspector",label:m("Toggle block inspector"),icon:U_,callback:({close:k})=>{const q=p("core");k(),q==="edit-post/block"?M("core"):v("core","edit-post/block")}}),w.push({name:"core/toggle-publish-sidebar",label:m(d?"Disable pre-publish checks":"Enable pre-publish checks"),icon:ele,callback:({close:k})=>{k(),f("core","isPublishSidebarEnabled"),b(m(d?"Pre-publish checks disabled.":"Pre-publish checks enabled."),{id:"core/editor/publish-sidebar/notice",type:"snackbar"})}}),c&&w.push({name:"core/preview-link",label:m("Preview in a new tab"),icon:Pp,callback:async({close:k})=>{k();const q=A(),S=await h();window.open(S,`wp-preview-${q}`)}}),{commands:w,isLoading:!1}}function EHt(){const{postType:e}=D(o=>{const{getCurrentPostType:r}=o(ue);return{postType:r()}},[]),{openModal:t}=ae(sn),n=[];return e===ul&&(n.push({name:"core/rename-pattern",label:m("Rename pattern"),icon:nl,callback:({close:o})=>{t(E3e),o()}}),n.push({name:"core/duplicate-pattern",label:m("Duplicate pattern"),icon:Gu,callback:({close:o})=>{t(B3e),o()}})),{isLoading:!1,commands:n}}function BHt(){Oa({name:"core/editor/edit-ui",hook:THt}),Oa({name:"core/editor/contextual-commands",hook:EHt,context:"entity-edit"})}const{BlockRemovalWarningModal:cQ}=gt(p0),NHt=["core/post-content","core/post-template","core/query"],LHt=[{postTypes:["wp_template","wp_template_part"],callback(e){if(e.filter(({name:n})=>NHt.includes(n)).length)return a0("Deleting this block will stop your post or page content from displaying on this template. It is not recommended.","Some of the deleted blocks will stop your post or page content from displaying on this template. It is not recommended.",e.length)}},{postTypes:["wp_block"],callback(e){if(e.filter(({attributes:n})=>n?.metadata?.bindings&&Object.values(n.metadata.bindings).some(o=>o.source==="core/pattern-overrides")).length)return a0("The deleted block allows instance overrides. Removing it may result in content not displaying where this pattern is used. Are you sure you want to proceed?","Some of the deleted blocks allow instance overrides. Removing them may result in content not displaying where this pattern is used. Are you sure you want to proceed?",e.length)}}];function jHt(){const e=D(n=>n(ue).getCurrentPostType(),[]),t=O.useMemo(()=>LHt.filter(n=>n.postTypes.includes(e)),[e]);return!cQ||!t?null:a.jsx(cQ,{rules:t})}function PHt(){const{blockPatternsWithPostContentBlockType:e,postType:t}=D(n=>{const{getPatternsByBlockTypes:o,getBlocksByName:r}=n(F),{getCurrentPostType:s,getRenderingMode:i}=n(ue),c=i()==="post-only"?"":r("core/post-content")?.[0];return{blockPatternsWithPostContentBlockType:o("core/post-content",c),postType:s()}},[]);return O.useMemo(()=>e.filter(n=>t==="page"&&!n.postTypes||Array.isArray(n.postTypes)&&n.postTypes.includes(t)),[t,e])}function IHt({blockPatterns:e,onChoosePattern:t}){const n=Gs(e),{editEntityRecord:o}=ae(ce),{postType:r,postId:s}=D(i=>{const{getCurrentPostType:c,getCurrentPostId:l}=i(ue);return{postType:c(),postId:l()}},[]);return a.jsx(oc,{blockPatterns:e,shownPatterns:n,onClickPattern:(i,c)=>{o("postType",r,s,{blocks:c,content:({blocks:l=[]})=>pd(l)}),t()}})}function DHt({onClose:e}){const t=PHt();return t.length>0?a.jsx(fn,{title:m("Choose a pattern"),isFullScreen:!0,onRequestClose:e,children:a.jsx("div",{className:"editor-start-page-options__modal-content",children:a.jsx(IHt,{blockPatterns:t,onChoosePattern:e})})}):null}function FHt(){const[e,t]=O.useState(!1),{shouldEnableModal:n,postType:o,postId:r}=D(s=>{const{isEditedPostDirty:i,isEditedPostEmpty:c,getCurrentPostType:l,getCurrentPostId:u}=s(ue),d=l();return{shouldEnableModal:!i()&&c()&&d1!==d,postType:d,postId:u()}},[]);return O.useEffect(()=>{t(!1)},[o,r]),!n||e?null:a.jsx(DHt,{onClose:()=>t(!0)})}const $Ht=[{keyCombination:{modifier:"primary",character:"b"},description:m("Make the selected text bold.")},{keyCombination:{modifier:"primary",character:"i"},description:m("Make the selected text italic.")},{keyCombination:{modifier:"primary",character:"k"},description:m("Convert the selected text into a link.")},{keyCombination:{modifier:"primaryShift",character:"k"},description:m("Remove a link.")},{keyCombination:{character:"[["},description:m("Insert a link to a post or page.")},{keyCombination:{modifier:"primary",character:"u"},description:m("Underline the selected text.")},{keyCombination:{modifier:"access",character:"d"},description:m("Strikethrough the selected text.")},{keyCombination:{modifier:"access",character:"x"},description:m("Make the selected text inline code.")},{keyCombination:{modifier:"access",character:"0"},aliases:[{modifier:"access",character:"7"}],description:m("Convert the current heading to a paragraph.")},{keyCombination:{modifier:"access",character:"1-6"},description:m("Convert the current paragraph or heading to a heading of level 1 to 6.")},{keyCombination:{modifier:"primaryShift",character:"SPACE"},description:m("Add non breaking space.")}];function lQ({keyCombination:e,forceAriaLabel:t}){const n=e.modifier?bne[e.modifier](e.character):e.character,o=e.modifier?hne[e.modifier](e.character):e.character;return a.jsx("kbd",{className:"editor-keyboard-shortcut-help-modal__shortcut-key-combination","aria-label":t||o,children:(Array.isArray(n)?n:[n]).map((r,s)=>r==="+"?a.jsx(O.Fragment,{children:r},s):a.jsx("kbd",{className:"editor-keyboard-shortcut-help-modal__shortcut-key",children:r},s))})}function N3e({description:e,keyCombination:t,aliases:n=[],ariaLabel:o}){return a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"editor-keyboard-shortcut-help-modal__shortcut-description",children:e}),a.jsxs("div",{className:"editor-keyboard-shortcut-help-modal__shortcut-term",children:[a.jsx(lQ,{keyCombination:t,forceAriaLabel:o}),n.map((r,s)=>a.jsx(lQ,{keyCombination:r,forceAriaLabel:o},s))]})]})}function VHt({name:e}){const{keyCombination:t,description:n,aliases:o}=D(r=>{const{getShortcutKeyCombination:s,getShortcutDescription:i,getShortcutAliases:c}=r(Br);return{keyCombination:s(e),aliases:c(e),description:i(e)}},[e]);return t?a.jsx(N3e,{keyCombination:t,description:n,aliases:o}):null}const uQ="editor/keyboard-shortcut-help",HHt=({shortcuts:e})=>a.jsx("ul",{className:"editor-keyboard-shortcut-help-modal__shortcut-list",role:"list",children:e.map((t,n)=>a.jsx("li",{className:"editor-keyboard-shortcut-help-modal__shortcut",children:typeof t=="string"?a.jsx(VHt,{name:t}):a.jsx(N3e,{...t})},n))}),YT=({title:e,shortcuts:t,className:n})=>a.jsxs("section",{className:$("editor-keyboard-shortcut-help-modal__section",n),children:[!!e&&a.jsx("h2",{className:"editor-keyboard-shortcut-help-modal__section-title",children:e}),a.jsx(HHt,{shortcuts:t})]}),My=({title:e,categoryName:t,additionalShortcuts:n=[]})=>{const o=D(r=>r(Br).getCategoryShortcuts(t),[t]);return a.jsx(YT,{title:e,shortcuts:o.concat(n)})};function UHt(){const e=D(r=>r(sn).isModalActive(uQ),[]),{openModal:t,closeModal:n}=ae(sn),o=()=>{e?n():t(uQ)};return Ur("core/editor/keyboard-shortcuts",o),e?a.jsxs(fn,{className:"editor-keyboard-shortcut-help-modal",title:m("Keyboard shortcuts"),closeButtonLabel:m("Close"),onRequestClose:o,children:[a.jsx(YT,{className:"editor-keyboard-shortcut-help-modal__main-shortcuts",shortcuts:["core/editor/keyboard-shortcuts"]}),a.jsx(My,{title:m("Global shortcuts"),categoryName:"global"}),a.jsx(My,{title:m("Selection shortcuts"),categoryName:"selection"}),a.jsx(My,{title:m("Block shortcuts"),categoryName:"block",additionalShortcuts:[{keyCombination:{character:"/"},description:m("Change the block type after adding a new paragraph."),ariaLabel:m("Forward-slash")}]}),a.jsx(YT,{title:m("Text formatting"),shortcuts:$Ht}),a.jsx(My,{title:m("List View shortcuts"),categoryName:"list-view"})]}):null}function XHt({clientId:e,onClose:t}){const{entity:n,onNavigateToEntityRecord:o,canEditTemplates:r}=D(c=>{const{getBlockEditingMode:l,getBlockParentsByBlockName:u,getSettings:d,getBlockAttributes:p}=c(F);if(!(l(e)==="contentOnly"))return{};const b=u(e,"core/block",!0)[0];let h;if(b)h=c(ce).getEntityRecord("postType","wp_block",p(b).ref);else{const{getCurrentTemplateId:z}=c(ue),y=z(),{getContentLockingParent:x}=gt(c(F));!x(e)&&y&&(h=c(ce).getEntityRecord("postType","wp_template",y))}return{canEditTemplates:c(ce).canUser("create",{kind:"postType",name:"wp_template"}),entity:h,onNavigateToEntityRecord:d().onNavigateToEntityRecord}},[e]);if(!n)return a.jsx(GHt,{clientId:e,onClose:t});const s=n.type==="wp_block";let i=m(s?"Edit the pattern to move, delete, or make further changes to this block.":"Edit the template to move, delete, or make further changes to this block.");return r||(i=m("Only users with permissions to edit the template can move or delete this block")),a.jsxs(a.Fragment,{children:[a.jsx(yk,{children:a.jsx(tt,{onClick:()=>{o({postId:n.id,postType:n.type})},disabled:!r,children:m(s?"Edit pattern":"Edit template")})}),a.jsx(l0,{variant:"muted",as:"p",className:"editor-content-only-settings-menu__description",children:i})]})}function GHt({clientId:e,onClose:t}){const{contentLockingParent:n}=D(i=>{const{getContentLockingParent:c}=gt(i(F));return{contentLockingParent:c(e)}},[e]),o=gs(n),r=ae(F);if(!o?.title)return null;const{modifyContentLockBlock:s}=gt(r);return a.jsxs(a.Fragment,{children:[a.jsx(yk,{children:a.jsx(tt,{onClick:()=>{s(n),t()},children:Oe("Unlock","Unlock content locked blocks")})}),a.jsx(l0,{variant:"muted",as:"p",className:"editor-content-only-settings-menu__description",children:m("Temporarily unlock the parent block to edit, delete or make further changes to this block.")})]})}function KHt(){return a.jsx(Zh,{children:({selectedClientIds:e,onClose:t})=>e.length===1&&a.jsx(XHt,{clientId:e[0],onClose:t})})}function YHt(e,t=!1){return D(n=>{const{getEntityRecord:o,getDefaultTemplateId:r}=n(ce),s=r({slug:e,is_custom:t,ignore_empty:!0});return s?o("postType",d1,s)?.content?.raw:void 0},[e,t])}function ZHt(e){const{slug:t,patterns:n}=D(s=>{const{getCurrentPostType:i,getCurrentPostId:c}=s(ue),{getEntityRecord:l,getBlockPatterns:u}=s(ce),d=c(),p=i();return{slug:l("postType",p,d).slug,patterns:u()}},[]),o=D(s=>s(ce).getCurrentTheme().stylesheet);function r(s){return s.innerBlocks.find(i=>i.name==="core/template-part")&&(s.innerBlocks=s.innerBlocks.map(i=>(i.name==="core/template-part"&&i.attributes.theme===void 0&&(i.attributes.theme=o),i))),s.name==="core/template-part"&&s.attributes.theme===void 0&&(s.attributes.theme=o),s}return O.useMemo(()=>[{name:"fallback",blocks:Yn(e),title:m("Fallback content")},...n.filter(s=>Array.isArray(s.templateTypes)&&s.templateTypes.some(i=>t.startsWith(i))).map(s=>({...s,blocks:Yn(s.content).map(i=>r(i))}))],[e,t,n])}function QHt({fallbackContent:e,onChoosePattern:t,postType:n}){const[,,o]=id("postType",n),r=ZHt(e),s=Gs(r);return a.jsx(oc,{blockPatterns:r,shownPatterns:s,onClickPattern:(i,c)=>{o(c,{selection:void 0}),t()}})}function JHt({slug:e,isCustom:t,onClose:n,postType:o}){const r=YHt(e,t);return r?a.jsxs(fn,{className:"editor-start-template-options__modal",title:m("Choose a pattern"),closeLabel:m("Cancel"),focusOnMount:"firstElement",onRequestClose:n,isFullScreen:!0,children:[a.jsx("div",{className:"editor-start-template-options__modal-content",children:a.jsx(QHt,{fallbackContent:r,slug:e,isCustom:t,postType:o,onChoosePattern:()=>{n()}})}),a.jsx(Q0,{className:"editor-start-template-options__modal__actions",justify:"flex-end",expanded:!1,children:a.jsx(Ht,{children:a.jsx(fe,{__next40pxDefaultSize:!1,variant:"tertiary",onClick:n,children:m("Skip")})})})]}):null}function eUt(){const[e,t]=O.useState(!1),{shouldOpenModal:n,slug:o,isCustom:r,postType:s,postId:i}=D(c=>{const{getCurrentPostType:l,getCurrentPostId:u}=c(ue),d=l(),p=u(),{getEditedEntityRecord:f,hasEditsForEntityRecord:b}=c(ce),h=f("postType",d,p);return{shouldOpenModal:!b("postType",d,p)&&h.content===""&&d1===d,slug:h.slug,isCustom:h.is_custom,postType:d,postId:p}},[]);return O.useEffect(()=>{t(!1)},[s,i]),!n||e?null:a.jsx(JHt,{slug:o,isCustom:r,postType:s,onClose:()=>t(!0)})}function tUt({clientId:e,onClose:t}){const{getBlocks:n}=D(F),{replaceBlocks:o}=ae(F);return D(s=>s(F).canRemoveBlock(e),[e])?a.jsx(tt,{onClick:()=>{o(e,n(e)),t()},children:m("Detach")}):null}function nUt({clientIds:e,blocks:t}){const[n,o]=O.useState(!1),{replaceBlocks:r}=ae(F),{createSuccessNotice:s}=ae(Ze),{canCreate:i}=D(l=>({canCreate:l(F).canInsertBlockType("core/template-part")}),[]);if(!i)return null;const c=async l=>{r(e,me("core/template-part",{slug:l.slug,theme:l.theme})),s(m("Template part created."),{type:"snackbar"})};return a.jsxs(a.Fragment,{children:[a.jsx(tt,{icon:Rh,onClick:()=>{o(!0)},"aria-expanded":n,"aria-haspopup":"dialog",children:m("Create template part")}),n&&a.jsx(s9,{closeModal:()=>{o(!1)},blocks:t,onCreate:c})]})}function oUt(){return a.jsx(Zh,{children:({selectedClientIds:e,onClose:t})=>a.jsx(rUt,{clientIds:e,onClose:t})})}function rUt({clientIds:e,onClose:t}){const{isContentOnly:n,blocks:o}=D(r=>{const{getBlocksByClientId:s,getBlockEditingMode:i}=r(F);return{blocks:s(e),isContentOnly:e.length===1&&i(e[0])==="contentOnly"}},[e]);return n?null:o.length===1&&o[0]?.name==="core/template-part"?a.jsx(tUt,{clientId:e[0],onClose:t}):a.jsx(nUt,{clientIds:e,blocks:o})}const{ExperimentalBlockEditorProvider:sUt}=gt(p0),{PatternsMenuItems:iUt}=gt(Gi),dQ=()=>{},aUt=["wp_block","wp_template","wp_navigation","wp_template_part"];function cUt(e,t,n){const o=n==="post-only"||!t?"post":"template",[r,s,i]=id("postType",e.type,{id:e.id}),[c,l,u]=id("postType",t?.type,{id:t?.id}),d=O.useMemo(()=>{if(e.type==="wp_navigation")return[me("core/navigation",{ref:e.id,templateLock:!1})]},[e.type,e.id]),p=O.useMemo(()=>d||(o==="template"?c:r),[d,o,c,r]);return!!t&&n==="template-locked"||e.type==="wp_navigation"?[p,dQ,dQ]:[p,o==="post"?s:l,o==="post"?i:u]}const L3e=JVt(({post:e,settings:t,recovery:n,initialEdits:o,children:r,BlockEditorProviderComponent:s=sUt,__unstableTemplate:i})=>{const{editorSettings:c,selection:l,isReady:u,mode:d}=D(C=>{const{getEditorSettings:T,getEditorSelection:W,getRenderingMode:B,__unstableIsEditorReady:N}=C(ue);return{editorSettings:T(),isReady:N(),mode:B(),selection:W()}},[]),p=!!i&&d!=="post-only",f=p?i:e,b=O.useMemo(()=>({...!aUt.includes(f.type)||p?{postId:e.id,postType:e.type}:{},templateSlug:f.type==="wp_template"?f.slug:void 0}),[p,e.id,e.type,f.type,f.slug]),{id:h,type:g}=f,z=xHt(c,g,h,d),[y,x,v]=cUt(e,i,d),{updatePostLock:M,setupEditor:A,updateEditorSettings:_,setCurrentTemplateId:w,setEditedPost:k,setRenderingMode:q}=gt(ae(ue)),{createWarningNotice:S}=ae(Ze);return O.useLayoutEffect(()=>{n||(M(t.postLock),A(e,o,t.template),t.autosave&&S(m("There is an autosave of this post that is more recent than the version below."),{id:"autosave-exists",actions:[{label:m("View the autosave"),url:t.autosave.editLink}]}))},[]),O.useEffect(()=>{k(e.type,e.id)},[e.type,e.id,k]),O.useEffect(()=>{_(t)},[t,_]),O.useEffect(()=>{w(i?.id)},[i?.id,w]),O.useEffect(()=>{var C;q((C=t.defaultRenderingMode)!==null&&C!==void 0?C:"post-only")},[t.defaultRenderingMode,q]),qHt(e.type,d),BHt(),u?a.jsx(A8,{kind:"root",type:"site",children:a.jsx(A8,{kind:"postType",type:e.type,id:e.id,children:a.jsx(V3,{value:b,children:a.jsxs(s,{value:y,onChange:v,onInput:x,selection:l,settings:z,useSubRegistry:!1,children:[r,!t.__unstableIsPreviewMode&&a.jsxs(a.Fragment,{children:[a.jsx(iUt,{}),a.jsx(oUt,{}),a.jsx(KHt,{}),d==="template-locked"&&a.jsx(wHt,{}),g==="wp_navigation"&&a.jsx(kHt,{}),a.jsx(fFt,{}),a.jsx(UHt,{}),a.jsx(jHt,{}),a.jsx(FHt,{}),a.jsx(eUt,{}),a.jsx(CHt,{}),a.jsx(WHt,{})]})]})})})}):null});function lUt(e){return a.jsx(L3e,{...e,BlockEditorProviderComponent:Svt,children:e.children})}const uUt={};function dUt(e,t=null,n={}){return wt(`/wp/v2/block-renderer/${e}`,{context:"edit",...t!==null?{attributes:t}:{},...n})}function pUt(e){const{backgroundColor:t,borderColor:n,fontFamily:o,fontSize:r,gradient:s,textColor:i,className:c,...l}=e,{border:u,color:d,elements:p,spacing:f,typography:b,...h}=e?.style||uUt;return{...l,style:h}}function fUt({className:e}){return a.jsx(D0,{className:e,children:m("Block rendered as empty.")})}function bUt({response:e,className:t}){const n=le(m("Error loading block: %s"),e.errorMsg);return a.jsx(D0,{className:t,children:n})}function hUt({children:e,showLoader:t}){return a.jsxs("div",{style:{position:"relative"},children:[t&&a.jsx("div",{style:{position:"absolute",top:"50%",left:"50%",marginTop:"-9px",marginLeft:"-9px"},children:a.jsx(u0,{})}),a.jsx("div",{style:{opacity:t?"0.3":1},children:e})]})}function mUt(e){const{attributes:t,block:n,className:o,httpMethod:r="GET",urlQueryArgs:s,skipBlockSupportAttributes:i=!1,EmptyResponsePlaceholder:c=fUt,ErrorResponsePlaceholder:l=bUt,LoadingResponsePlaceholder:u=hUt}=e,d=O.useRef(!1),[p,f]=O.useState(!1),b=O.useRef(),[h,g]=O.useState(null),z=t1(e),[y,x]=O.useState(!1);function v(){var k,q;if(!d.current)return;x(!0);const S=setTimeout(()=>{f(!0)},1e3);let C=t&&fN(n,t);i&&(C=pUt(C));const T=r==="POST",W=T?null:(k=C)!==null&&k!==void 0?k:null,B=dUt(n,W,s),N=T?{attributes:(q=C)!==null&&q!==void 0?q:null}:null,E=b.current=ct({path:B,data:N,method:T?"POST":"GET"}).then(L=>{d.current&&E===b.current&&L&&g(L.rendered)}).catch(L=>{d.current&&E===b.current&&g({error:!0,errorMsg:L.message})}).finally(()=>{d.current&&E===b.current&&(x(!1),f(!1),clearTimeout(S))});return E}const M=Uo(v,500);O.useEffect(()=>(d.current=!0,()=>{d.current=!1}),[]),O.useEffect(()=>{z===void 0?v():J1(z,e)||M()});const A=!!h,_=h==="",w=h?.error;return y?a.jsx(u,{...e,showLoader:p,children:A&&a.jsx(C1,{className:o,children:h})}):_||!A?a.jsx(c,{...e}):w?a.jsx(l,{response:h,...e}):a.jsx(C1,{className:o,children:h})}const pQ={},MUt=Xo(e=>{const t=e("core/editor");if(t){const n=t.getCurrentPostId();if(n&&typeof n=="number")return{currentPostId:n}}return pQ})(({urlQueryArgs:e=pQ,currentPostId:t,...n})=>{const o=O.useMemo(()=>t?{post_id:t,...e}:e,[t,e]);return a.jsx(mUt,{urlQueryArgs:o,...n})}),OO=MUt;function gUt(e=[]){return e.push({...hFt}),e}r0("editor.Autocomplete.completers","editor/autocompleters/set-default-completers",gUt);r0("editor.MediaUpload","core/editor/components/media-upload",()=>iHt);const{PatternOverridesControls:zUt,ResetOverridesControl:OUt,PatternOverridesBlockControls:AUt,PATTERN_TYPES:yUt,PARTIAL_SYNCING_SUPPORTED_BLOCKS:vUt,PATTERN_SYNC_TYPES:fQ}=gt(Gi),xUt=Sn(e=>t=>{const n=!!vUt[t.name];return a.jsxs(a.Fragment,{children:[a.jsx(e,{...t},"edit"),t.isSelected&&n&&a.jsx(_Ut,{...t}),n&&a.jsx(AUt,{})]})},"withPatternOverrideControls");function _Ut(e){const t=oo(),{hasPatternOverridesSource:n,isEditingSyncedPattern:o}=D(l=>{const{getBlockBindingsSource:u}=gt(l($e)),{getCurrentPostType:d,getEditedPostAttribute:p}=l(ue);return{hasPatternOverridesSource:!!u("core/pattern-overrides"),isEditingSyncedPattern:d()===yUt.user&&p("meta")?.wp_pattern_sync_status!==fQ.unsynced&&p("wp_pattern_sync_status")!==fQ.unsynced}},[]),r=e.attributes.metadata?.bindings,s=!!r&&Object.values(r).some(l=>l.source==="core/pattern-overrides"),i=o&&t==="default",c=!o&&!!e.attributes.metadata?.name&&t!=="disabled"&&s;return n?a.jsxs(a.Fragment,{children:[i&&a.jsx(zUt,{...e}),c&&a.jsx(OUt,{...e})]}):null}r0("editor.BlockEdit","core/editor/with-pattern-override-controls",xUt);const{createPrivateSlotFill:wUt}=gt(L0),kUt="EditCanvasContainerSlot",j3e=wUt(kUt),h9="__experimentalMainDashboardButton",qUt=()=>{const e=j1(h9);return!!(e&&e.length)},{Fill:SUt,Slot:CUt}=_0(h9),m9=SUt,RUt=()=>{const e=j1(h9);return a.jsx(CUt,{bubblesVirtually:!0,fillProps:{length:e?e.length:0}})};m9.Slot=RUt;const{useHasBlockToolbar:WUt}=gt(p0);function TUt({isCollapsed:e,onToggle:t}){const{blockSelectionStart:n}=D(s=>({blockSelectionStart:s(F).getBlockSelectionStart()}),[]),o=WUt(),r=!!n;return O.useEffect(()=>{n&&t(!1)},[n,t]),o?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:$("editor-collapsible-block-toolbar",{"is-collapsed":e||!r}),children:a.jsx(CP,{hideDragHandle:!0})}),a.jsx(Mn.Slot,{name:"block-toolbar"}),a.jsx(fe,{className:"editor-collapsible-block-toolbar__toggle",icon:e?zle:gle,onClick:()=>{t(!e)},label:m(e?"Show block tools":"Hide block tools"),size:"compact"})]}):null}function EUt({className:e,disableBlockTools:t=!1}){const{setIsInserterOpened:n,setIsListViewOpened:o}=ae(ue),{isDistractionFree:r,isInserterOpened:s,isListViewOpen:i,listViewShortcut:c,inserterSidebarToggleRef:l,listViewToggleRef:u,hasFixedToolbar:d,showIconLabels:p}=D(M=>{const{getSettings:A}=M(F),{get:_}=M(Qe),{isListViewOpened:w,getEditorMode:k,getInserterSidebarToggleRef:q,getListViewToggleRef:S}=gt(M(ue)),{getShortcutRepresentation:C}=M(Br),{__unstableGetEditorMode:T}=M(F);return{isInserterOpened:M(ue).isInserterOpened(),isListViewOpen:w(),listViewShortcut:C("core/editor/toggle-list-view"),inserterSidebarToggleRef:q(),listViewToggleRef:S(),hasFixedToolbar:A().hasFixedToolbar,showIconLabels:_("core","showIconLabels"),isDistractionFree:_("core","distractionFree"),isVisualMode:k()==="visual",isZoomedOutView:T()==="zoom-out"}},[]),f=M=>{s&&M.preventDefault()},b=g0("medium"),h=g0("wide"),g=m("Document tools"),z=O.useCallback(()=>o(!i),[o,i]),y=O.useCallback(()=>n(!s),[s,n]),x=Oe("Toggle block inserter","Generic label for block inserter button"),v=m(s?"Close":"Add");return a.jsx(vk,{className:$("editor-document-tools","edit-post-header-toolbar",e),"aria-label":g,variant:"unstyled",children:a.jsxs("div",{className:"editor-document-tools__left",children:[!r&&a.jsx(Ko,{ref:l,as:fe,className:"editor-document-tools__inserter-toggle",variant:"primary",isPressed:s,onMouseDown:f,onClick:y,disabled:t,icon:as,label:p?v:x,showTooltip:!p,"aria-expanded":s}),(h||!p)&&a.jsxs(a.Fragment,{children:[b&&!d&&a.jsx(Ko,{as:kWt,showTooltip:!p,variant:p?"tertiary":void 0,disabled:t,size:"compact"}),a.jsx(Ko,{as:qFt,showTooltip:!p,variant:p?"tertiary":void 0,size:"compact"}),a.jsx(Ko,{as:wFt,showTooltip:!p,variant:p?"tertiary":void 0,size:"compact"}),!r&&a.jsx(Ko,{as:fe,className:"editor-document-tools__document-overview-toggle",icon:M7,disabled:t,isPressed:i,label:m("Document Overview"),onClick:z,shortcut:c,showTooltip:!p,variant:p?"tertiary":void 0,"aria-expanded":i,ref:u,size:"compact"})]})]})})}function BUt(){const{createNotice:e}=ae(Ze),{getCurrentPostId:t,getCurrentPostType:n}=D(ue),{getEditedEntityRecord:o}=D(ce);function r(){const c=o("postType",n(),t());if(!c)return"";if(typeof c.content=="function")return c.content(c);if(c.blocks)return pd(c.blocks);if(c.content)return c.content}function s(){e("info",m("All content copied."),{isDismissible:!0,type:"snackbar"})}const i=af(r,s);return a.jsx(tt,{ref:i,children:m("Copy all blocks")})}const NUt=[{value:"visual",label:m("Visual editor")},{value:"text",label:m("Code editor")}];function LUt(){const{shortcut:e,isRichEditingEnabled:t,isCodeEditingEnabled:n,mode:o}=D(c=>({shortcut:c(Br).getShortcutRepresentation("core/editor/toggle-mode"),isRichEditingEnabled:c(ue).getEditorSettings().richEditingEnabled,isCodeEditingEnabled:c(ue).getEditorSettings().codeEditingEnabled,mode:c(ue).getEditorMode()}),[]),{switchEditorMode:r}=ae(ue);let s=o;!t&&o==="visual"&&(s="text"),!n&&o==="text"&&(s="visual");const i=NUt.map(c=>(!n&&c.value==="text"&&(c={...c,disabled:!0}),!t&&c.value==="visual"&&(c={...c,disabled:!0,info:m("You can enable the visual editor in your profile settings.")}),c.value!==s&&!c.disabled?{...c,shortcut:e}:c));return a.jsx(Yt,{label:m("Editor"),children:a.jsx(Hp,{choices:i,value:s,onSelect:r})})}const{Fill:M9,Slot:jUt}=_0("ToolsMoreMenuGroup");M9.Slot=({fillProps:e})=>a.jsx(jUt,{fillProps:e});const{Fill:g9,Slot:PUt}=_0(Symbol("ViewMoreMenuGroup"));g9.Slot=({fillProps:e})=>a.jsx(PUt,{fillProps:e});function IUt(){const{openModal:e}=ae(sn),{set:t}=ae(Qe),{toggleDistractionFree:n}=ae(ue),o=D(s=>s(Qe).get("core","showIconLabels"),[]),r=()=>{t("core","distractionFree",!1)};return a.jsx(a.Fragment,{children:a.jsx(E1,{icon:Ol,label:m("Options"),popoverProps:{placement:"bottom-end",className:"more-menu-dropdown__content"},toggleProps:{showTooltip:!o,...o&&{variant:"tertiary"},tooltipPosition:"bottom",size:"compact"},children:({onClose:s})=>a.jsxs(a.Fragment,{children:[a.jsxs(Yt,{label:Oe("View","noun"),children:[a.jsx(VS,{scope:"core",name:"fixedToolbar",onToggle:r,label:m("Top toolbar"),info:m("Access all block and document tools in a single place"),messageActivated:m("Top toolbar activated"),messageDeactivated:m("Top toolbar deactivated")}),a.jsx(VS,{scope:"core",name:"distractionFree",label:m("Distraction free"),info:m("Write with calmness"),handleToggling:!1,onToggle:n,messageActivated:m("Distraction free mode activated"),messageDeactivated:m("Distraction free mode deactivated"),shortcut:Jo.primaryShift("\\")}),a.jsx(VS,{scope:"core",name:"focusMode",label:m("Spotlight mode"),info:m("Focus on one block at a time"),messageActivated:m("Spotlight mode activated"),messageDeactivated:m("Spotlight mode deactivated")}),a.jsx(g9.Slot,{fillProps:{onClose:s}})]}),a.jsx(LUt,{}),a.jsx(zO.Slot,{name:"core/plugin-more-menu",label:m("Plugins"),as:Yt,fillProps:{onClick:s}}),a.jsxs(Yt,{label:m("Tools"),children:[a.jsx(tt,{onClick:()=>e("editor/keyboard-shortcut-help"),shortcut:Jo.access("h"),children:m("Keyboard shortcuts")}),a.jsx(BUt,{}),a.jsxs(tt,{icon:Pp,href:m("https://wordpress.org/documentation/article/wordpress-block-editor/"),target:"_blank",rel:"noopener noreferrer",children:[m("Help"),a.jsx(Kt,{as:"span",children:m("(opens in a new tab)")})]}),a.jsx(M9.Slot,{fillProps:{onClose:s}})]}),a.jsx(Yt,{children:a.jsx(tt,{onClick:()=>e("editor/preferences"),children:m("Preferences")})})]})})})}function DUt({forceIsDirty:e,hasPublishAction:t,isBeingScheduled:n,isPending:o,isPublished:r,isPublishSidebarEnabled:s,isPublishSidebarOpened:i,isScheduled:c,togglePublishSidebar:l,setEntitiesSavedStatesCallback:u,postStatusHasChanged:d,postStatus:p}){const f="toggle",b="button",h=g0("medium","<");let g;return r||d&&!["future","publish"].includes(p)||c&&n||o&&!t&&!h?g=b:h||s?g=f:g=b,a.jsx(d3e,{forceIsDirty:e,isOpen:i,isToggle:g===f,onToggle:l,setEntitiesSavedStatesCallback:u})}const FUt=v0(Xo(e=>{var t;return{hasPublishAction:(t=e(ue).getCurrentPost()?._links?.["wp:action-publish"])!==null&&t!==void 0?t:!1,isBeingScheduled:e(ue).isEditedPostBeingScheduled(),isPending:e(ue).isCurrentPostPending(),isPublished:e(ue).isCurrentPostPublished(),isPublishSidebarEnabled:e(ue).isPublishSidebarEnabled(),isPublishSidebarOpened:e(ue).isPublishSidebarOpened(),isScheduled:e(ue).isCurrentPostScheduled(),postStatus:e(ue).getEditedPostAttribute("status"),postStatusHasChanged:e(ue).getPostEdits()?.status}}),Fi(e=>{const{togglePublishSidebar:t}=e(ue);return{togglePublishSidebar:t}}))(DUt);function $Ut(){const{hasLoaded:e,permalink:t,isPublished:n,label:o,showIconLabels:r}=D(s=>{const i=s(ue).getCurrentPostType(),c=s(ce).getPostType(i),{get:l}=s(Qe);return{permalink:s(ue).getPermalink(),isPublished:s(ue).isCurrentPostPublished(),label:c?.labels.view_item,hasLoaded:!!c,showIconLabels:l("core","showIconLabels")}},[]);return!n||!t||!e?null:a.jsx(fe,{icon:Pp,label:o||m("View post"),href:t,target:"_blank",showTooltip:!r,size:"compact"})}function VUt({forceIsAutosaveable:e,disabled:t}){const{deviceType:n,editorMode:o,homeUrl:r,isTemplate:s,isViewable:i,showIconLabels:c}=D(v=>{var M;const{getDeviceType:A,getCurrentPostType:_}=v(ue),{getEntityRecord:w,getPostType:k}=v(ce),{get:q}=v(Qe),{__unstableGetEditorMode:S}=v(F),C=_();return{deviceType:A(),editorMode:S(),homeUrl:w("root","__unstableBase")?.home,isTemplate:C==="wp_template",isViewable:(M=k(C)?.viewable)!==null&&M!==void 0?M:!1,showIconLabels:q("core","showIconLabels")}},[]),{setDeviceType:l}=ae(ue),{__unstableSetEditorMode:u}=ae(F),d=O.useRef(o);if(O.useEffect(()=>(o!=="zoom-out"&&(d.current=o),()=>{o==="zoom-out"&&o!==d.current&&u(d.current)}),[o,u]),g0("medium","<"))return null;const f={placement:"bottom-end"},b={className:"editor-preview-dropdown__toggle",iconPosition:"right",size:"compact",showTooltip:!c,disabled:t,accessibleWhenDisabled:t},h={"aria-label":m("View options")},g={desktop:Fq,mobile:xX,tablet:wX},z=[{value:"Desktop",label:m("Desktop"),icon:Fq}];window.__experimentalEnableZoomOutExperiment&&z.push({value:"ZoomOut",label:m("Desktop (50%)"),icon:Fq}),z.push({value:"Tablet",label:m("Tablet"),icon:wX}),z.push({value:"Mobile",label:m("Mobile"),icon:xX});const y=o==="zoom-out"?"ZoomOut":n,x=v=>{let M=d.current;v==="ZoomOut"?(M="zoom-out",l("Desktop")):l(v),u(M)};return a.jsx(E1,{className:$("editor-preview-dropdown",`editor-preview-dropdown--${n.toLowerCase()}`),popoverProps:f,toggleProps:b,menuProps:h,icon:g[n.toLowerCase()],text:o==="zoom-out"?m("50%"):void 0,label:m("View"),disableOpenOnArrowDown:t,children:({onClose:v})=>a.jsxs(a.Fragment,{children:[a.jsx(Yt,{children:a.jsx(Hp,{choices:z,value:y,onSelect:x})}),s&&a.jsx(Yt,{children:a.jsxs(tt,{href:r,target:"_blank",icon:Pp,onClick:v,children:[m("View site"),a.jsx(Kt,{as:"span",children:m("(opens in a new tab)")})]})}),i&&a.jsx(Yt,{children:a.jsx(u3e,{className:"editor-preview-dropdown__button-external",role:"menuitem",forceIsAutosaveable:e,"aria-label":m("Preview in new tab"),textContent:a.jsxs(a.Fragment,{children:[m("Preview in new tab"),a.jsx(xn,{icon:Pp})]}),onPreview:v})}),a.jsx(zO.Slot,{name:"core/plugin-preview-menu",as:Yt,fillProps:{onClick:v}})]})})}const MC={distractionFreeDisabled:{y:"-50px"},distractionFreeHover:{y:0},distractionFreeHidden:{y:"-50px"},visible:{y:0},hidden:{y:0}},HUt={distractionFreeDisabled:{x:"-100%"},distractionFreeHover:{x:0},distractionFreeHidden:{x:"-100%"},visible:{x:0},hidden:{x:0}};function UUt({customSaveButton:e,forceIsDirty:t,forceDisableBlockTools:n,setEntitiesSavedStatesCallback:o,title:r,icon:s}){const i=g0("large"),c=g0("medium"),l=qB("(max-width: 403px)"),{isTextEditor:u,isPublishSidebarOpened:d,showIconLabels:p,hasFixedToolbar:f,isNestedEntity:b}=D(x=>{const{get:v}=x(Qe),{getEditorMode:M,getEditorSettings:A,isPublishSidebarOpened:_}=x(ue),{__unstableGetEditorMode:w}=x(F);return{isTextEditor:M()==="text",isPublishSidebarOpened:_(),showIconLabels:v("core","showIconLabels"),hasFixedToolbar:v("core","fixedToolbar"),isNestedEntity:!!A().onNavigateToPreviousEntityRecord,isZoomedOutView:w()==="zoom-out"}},[]),[h,g]=O.useState(!0),z=h&&!l,y=qUt();return a.jsxs("div",{className:"editor-header edit-post-header",children:[y&&a.jsx(Hn.div,{className:"editor-header__back-button",variants:HUt,transition:{type:"tween"},children:a.jsx(m9.Slot,{})}),a.jsxs(Hn.div,{variants:MC,className:"editor-header__toolbar",transition:{type:"tween"},children:[a.jsx(EUt,{disableBlockTools:n||u}),f&&c&&a.jsx(TUt,{isCollapsed:h,onToggle:g})]}),z&&a.jsx(Hn.div,{className:"editor-header__center",variants:MC,transition:{type:"tween"},children:a.jsx(MFt,{title:r,icon:s})}),a.jsxs(Hn.div,{variants:MC,transition:{type:"tween"},className:"editor-header__settings",children:[!e&&!d&&a.jsx(WVt,{forceIsDirty:t}),a.jsx(VUt,{forceIsAutosaveable:t,disabled:b}),a.jsx(u3e,{className:"editor-header__post-preview-button",forceIsAutosaveable:t}),a.jsx($Ut,{}),!e&&a.jsx(FUt,{forceIsDirty:t,setEntitiesSavedStatesCallback:o}),e,(i||!p)&&a.jsx(Ik.Slot,{scope:"core"}),a.jsx(IUt,{})]})]})}const{PrivateInserterLibrary:XUt}=gt(p0);function GUt(){const{blockInsertionPoint:e,blockSectionRootClientId:t,inserterSidebarToggleRef:n,insertionPoint:o,showMostUsedBlocks:r,sidebarIsOpened:s}=D(b=>{const{getInserterSidebarToggleRef:h,getInsertionPoint:g,isPublishSidebarOpened:z}=gt(b(ue)),{getBlockInsertionPoint:y,getBlockRootClientId:x,__unstableGetEditorMode:v,getSectionRootClientId:M}=gt(b(F)),{get:A}=b(Qe),{getActiveComplementaryArea:_}=b(sn),w=()=>{if(v()==="zoom-out"){const k=M();if(k)return k}return x()};return{blockInsertionPoint:y(),inserterSidebarToggleRef:h(),insertionPoint:g(),showMostUsedBlocks:A("core","mostUsedBlocks"),blockSectionRootClientId:w(),sidebarIsOpened:!!(_("core")||z())}},[]),{setIsInserterOpened:i}=ae(ue),{disableComplementaryArea:c}=ae(sn),l=g0("medium","<"),u=O.useRef(),d=O.useCallback(()=>{i(!1),n.current?.focus()},[n,i]),p=O.useCallback(b=>{b.keyCode===Ea&&!b.defaultPrevented&&(b.preventDefault(),d())},[d]),f=a.jsx("div",{className:"editor-inserter-sidebar__content",children:a.jsx(XUt,{showMostUsedBlocks:r,showInserterHelpPanel:!0,shouldFocusBlock:l,rootClientId:t??e.rootClientId,__experimentalInsertionIndex:e.index,onSelect:o.onSelect,__experimentalInitialTab:o.tab,__experimentalInitialCategory:o.category,__experimentalFilterValue:o.filterValue,onPatternCategorySelection:s?()=>c("core"):void 0,ref:u,onClose:d})});return a.jsx("div",{onKeyDown:p,className:"editor-inserter-sidebar",children:f})}function KUt(){return a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"editor-list-view-sidebar__outline",children:[a.jsxs("div",{children:[a.jsx(l0,{children:m("Characters:")}),a.jsx(l0,{children:a.jsx(ZVt,{})})]}),a.jsxs("div",{children:[a.jsx(l0,{children:m("Words:")}),a.jsx(GVt,{})]}),a.jsxs("div",{children:[a.jsx(l0,{children:m("Time to read:")}),a.jsx(YVt,{})]})]}),a.jsx(xFt,{})]})}const{TabbedSidebar:YUt}=gt(p0);function ZUt(){const{setIsListViewOpened:e}=ae(ue),{getListViewToggleRef:t}=gt(D(ue)),n=Cx("firstElement"),o=O.useCallback(()=>{e(!1),t().current?.focus()},[t,e]),r=O.useCallback(g=>{g.keyCode===Ea&&!g.defaultPrevented&&(g.preventDefault(),o())},[o]),[s,i]=O.useState(null),[c,l]=O.useState("list-view"),u=O.useRef(),d=O.useRef(),p=O.useRef(),f=Gt([n,p,i]);function b(g){const z=Nn.tabbable.find(d.current)[0];if(g==="list-view"){const y=Nn.tabbable.find(p.current)[0];(u.current.contains(y)?y:z).focus()}else z.focus()}const h=O.useCallback(()=>{u.current.contains(u.current.ownerDocument.activeElement)?o():b(c)},[o,c]);return Ur("core/editor/toggle-list-view",h),a.jsx("div",{className:"editor-list-view-sidebar",onKeyDown:r,ref:u,children:a.jsx(YUt,{tabs:[{name:"list-view",title:Oe("List View","Post overview"),panel:a.jsx("div",{className:"editor-list-view-sidebar__list-view-container",children:a.jsx("div",{className:"editor-list-view-sidebar__list-view-panel-content",children:a.jsx(ACt,{dropZoneElement:s})})}),panelRef:f},{name:"outline",title:Oe("Outline","Post overview"),panel:a.jsx("div",{className:"editor-list-view-sidebar__list-view-container",children:a.jsx(KUt,{})})}],onClose:o,onSelect:g=>l(g),defaultTabId:"list-view",ref:d,closeButtonLabel:m("Close")})})}const{Fill:qb0,Slot:QUt}=_0("ActionsPanel");function JUt({setEntitiesSavedStatesCallback:e,closeEntitiesSavedStates:t,isEntitiesSavedStatesOpen:n,forceIsDirtyPublishPanel:o}){const{closePublishSidebar:r,togglePublishSidebar:s}=ae(ue),{publishSidebarOpened:i,isPublishable:c,isDirty:l,hasOtherEntitiesChanges:u}=D(f=>{const{isPublishSidebarOpened:b,isEditedPostPublishable:h,isCurrentPostPublished:g,isEditedPostDirty:z,hasNonPostEntityChanges:y}=f(ue),x=y();return{publishSidebarOpened:b(),isPublishable:!g()&&h(),isDirty:x||z(),hasOtherEntitiesChanges:x}},[]),d=O.useCallback(()=>e(!0),[]);let p;return i?p=a.jsx(qVt,{onClose:r,forceIsDirty:o,PrePublishExtension:s3e.Slot,PostPublishExtension:o3e.Slot}):c&&!u?p=a.jsx("div",{className:"editor-layout__toggle-publish-panel",children:a.jsx(fe,{__next40pxDefaultSize:!1,variant:"secondary",className:"editor-layout__toggle-publish-panel-button",onClick:s,"aria-expanded":!1,children:m("Open publish panel")})}):p=a.jsx("div",{className:"editor-layout__toggle-entities-saved-states-panel",children:a.jsx(fe,{__next40pxDefaultSize:!1,variant:"secondary",className:"editor-layout__toggle-entities-saved-states-panel-button",onClick:d,"aria-expanded":!1,disabled:!l,accessibleWhenDisabled:!0,children:m("Open save panel")})}),a.jsxs(a.Fragment,{children:[n&&a.jsx(DFt,{close:t}),a.jsx(QUt,{bubblesVirtually:!0}),!n&&p]})}function eXt({autoFocus:e=!1}){const{switchEditorMode:t}=ae(ue),{shortcut:n,isRichEditingEnabled:o}=D(s=>{const{getEditorSettings:i}=s(ue),{getShortcutRepresentation:c}=s(Br);return{shortcut:c("core/editor/toggle-mode"),isRichEditingEnabled:i().richEditingEnabled}},[]),r=O.useRef();return O.useEffect(()=>{e||r?.current?.focus()},[e]),a.jsxs("div",{className:"editor-text-editor",children:[o&&a.jsxs("div",{className:"editor-text-editor__toolbar",children:[a.jsx("h2",{children:m("Editing code")}),a.jsx(fe,{__next40pxDefaultSize:!1,variant:"tertiary",onClick:()=>t("visual"),shortcut:n,children:m("Exit code editor")})]}),a.jsxs("div",{className:"editor-text-editor__body",children:[a.jsx($Vt,{ref:r}),a.jsx(_3e,{})]})]})}function tXt({contentRef:e}){const{onNavigateToEntityRecord:t,templateId:n}=D(i=>{const{getEditorSettings:c,getCurrentTemplateId:l}=i(ue);return{onNavigateToEntityRecord:c().onNavigateToEntityRecord,templateId:l()}},[]),o=D(i=>!!i(ce).canUser("create",{kind:"postType",name:"wp_template"}),[]),[r,s]=O.useState(!1);return O.useEffect(()=>{const i=l=>{o&&l.target.classList.contains("is-root-container")&&s(!0)},c=e.current;return c?.addEventListener("dblclick",i),()=>{c?.removeEventListener("dblclick",i)}},[e,o]),o?a.jsx(bw,{isOpen:r,confirmButtonText:m("Edit template"),onConfirm:()=>{s(!1),t({postId:n,postType:"wp_template"})},onCancel:()=>s(!1),size:"medium",children:m("You’ve tried to select a block that is part of a template, which may be used on other posts and pages. Would you like to edit the template?")}):null}const bQ=20;function hQ({direction:e,resizeWidthBy:t}){function n(s){const{keyCode:i}=s;e==="left"&&i===Ns||e==="right"&&i===Ls?t(bQ):(e==="left"&&i===Ls||e==="right"&&i===Ns)&&t(-bQ)}const o={active:{opacity:1,scaleY:1.3}},r=`resizable-editor__resize-help-${e}`;return a.jsxs(a.Fragment,{children:[a.jsx(W1,{text:m("Drag to resize"),children:a.jsx(Hn.button,{className:`editor-resizable-editor__resize-handle is-${e}`,"aria-label":m("Drag to resize"),"aria-describedby":r,onKeyDown:n,variants:o,whileFocus:"active",whileHover:"active",whileTap:"active",role:"separator","aria-orientation":"vertical"},"handle")}),a.jsx(Kt,{id:r,children:m("Use left and right arrow keys to resize the canvas.")})]})}const mQ={position:void 0,userSelect:void 0,cursor:void 0,width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0};function P3e({className:e,enableResizing:t,height:n,children:o}){const[r,s]=O.useState("100%"),i=O.useRef(),c=O.useCallback(l=>{i.current&&s(i.current.offsetWidth+l)},[]);return a.jsx(Ui,{className:$("editor-resizable-editor",e,{"is-resizable":t}),ref:l=>{i.current=l?.resizable},size:{width:t?r:"100%",height:t&&n?n:"100%"},onResizeStop:(l,u,d)=>{s(d.style.width)},minWidth:300,maxWidth:"100%",maxHeight:"100%",enable:{left:t,right:t},showHandle:t,resizeRatio:2,handleComponent:{left:a.jsx(hQ,{direction:"left",resizeWidthBy:c}),right:a.jsx(hQ,{direction:"right",resizeWidthBy:c})},handleClasses:void 0,handleStyles:{left:mQ,right:mQ},children:o})}const nXt=500;function MQ(e,t,n){return Math.min(Math.max(e,t),n)}function oXt(e,t,n){const o=e-MQ(e,n.left,n.right),r=t-MQ(t,n.top,n.bottom);return Math.sqrt(o*o+r*r)}function rXt({isEnabled:e=!0}={}){const{getEnabledClientIdsTree:t,getBlockName:n,getBlockOrder:o}=gt(D(F)),{selectBlock:r}=ae(F);return Et(s=>{if(!e)return;const i=(l,u)=>{const d=t().flatMap(({clientId:b})=>{const h=n(b);if(h==="core/template-part")return[];if(h==="core/post-content"){const g=o(b);if(g.length)return g}return[b]});let p=1/0,f=null;for(const b of d){const h=s.querySelector(`[data-block="${b}"]`);if(!h)continue;const g=h.getBoundingClientRect(),z=oXt(l,u,g);z{(l.target===s||l.target.classList.contains("is-root-container"))&&i(l.clientX,l.clientY)};return s.addEventListener("click",c),()=>s.removeEventListener("click",c)},[e])}const{LayoutStyle:gy,useLayoutClasses:sXt,useLayoutStyles:iXt,ExperimentalBlockCanvas:aXt,useFlashEditableBlocks:cXt}=gt(p0),lXt=[ul,d1,th,vo];function ZT(e){for(let t=0;t{const{getCurrentPostId:K,getCurrentPostType:pe,getCurrentTemplateId:G,getEditorSettings:re,getRenderingMode:Me,getDeviceType:he}=xe(ue),{getPostType:Q,getEditedEntityRecord:R}=xe(ce),j=pe(),V=Me();let de;j===ul?de="core/block":V==="post-only"&&(de="core/post-content");const ge=re(),ve=ge.supportsTemplateMode,Ne=Q(j),et=G(),mt=et?R("postType",d1,et):void 0;return{renderingMode:V,postContentAttributes:ge.postContentAttributes,isDesignPostType:lXt.includes(j),editedPostTemplate:Ne?.viewable&&ve?mt:void 0,wrapperBlockName:de,wrapperUniqueId:K(),deviceType:he(),isFocusedEntity:!!ge.onNavigateToPreviousEntityRecord,postType:j,isPreview:ge.__unstableIsPreviewMode}},[]),{isCleanNewPost:M}=D(ue),{hasRootPaddingAwareAlignments:A,themeHasDisabledLayoutStyles:_,themeSupportsLayout:w,isZoomOutMode:k}=D(xe=>{const{getSettings:K,__unstableGetEditorMode:pe}=xe(F),G=K();return{themeHasDisabledLayoutStyles:G.disableLayoutStyles,themeSupportsLayout:G.supportsLayout,hasRootPaddingAwareAlignments:G.__experimentalFeatures?.useRootPaddingAwareAlignments,isZoomOutMode:pe()==="zoom-out"}},[]),q=TWt(g),[S]=O0("layout"),C=O.useMemo(()=>d!=="post-only"||y?{type:"default"}:w?{...S,type:"constrained"}:{type:"default"},[d,w,S,y]),T=O.useMemo(()=>{if(!f?.content&&!f?.blocks&&p)return p;if(f?.blocks)return ZT(f?.blocks);const xe=typeof f?.content=="string"?f?.content:"";return ZT(Yn(xe))||{}},[f?.content,f?.blocks,p]),W=O.useMemo(()=>{if(!f?.content&&!f?.blocks)return!1;if(f?.blocks)return gQ(f?.blocks);const xe=typeof f?.content=="string"?f?.content:"";return gQ(Yn(xe))||!1},[f?.content,f?.blocks]),{layout:B={},align:N=""}=T||{},E=sXt(T,"core/post-content"),L=$({"is-layout-flow":!w},w&&E,N&&`align${N}`),I=iXt(T,"core/post-content",".block-editor-block-list__layout.is-root-container"),P=O.useMemo(()=>B&&(B?.type==="constrained"||B?.inherit||B?.contentSize||B?.wideSize)?{...S,...B,type:"constrained"}:{...S,...B,type:"default"},[B?.type,B?.inherit,B?.contentSize,B?.wideSize,S]),H=p?P:C,U=H?.type==="default"&&!W?C:H,X=Rhe(),Z=O.useRef();O.useEffect(()=>{!e||!M()||Z?.current?.focus()},[e,M]);const ne=`.is-root-container.alignwide { max-width: var(--wp--style--global--wide-size); margin-left: auto; margin-right: auto;} .is-root-container.alignwide:where(.is-layout-flow) > :not(.alignleft):not(.alignright) { max-width: var(--wp--style--global--wide-size);} .is-root-container.alignfull { max-width: none; margin-left: auto; margin-right: auto;} - .is-root-container.alignfull:where(.is-layout-flow) > :not(.alignleft):not(.alignright) { max-width: none;}`,oe=O.useRef(),Y=LEt();r=Gt([oe,r,d==="post-only"?Y:null,cXt({isEnabled:d==="template-locked"}),rXt({isEnabled:d==="template-locked"})]);const ee=k&&!u?{scale:"default",frameSize:"48px"}:{},ie=x===th,se=[th,vo,ul].includes(x)&&!v&&!l&&!k,be=!n||["Tablet","Mobile"].includes(g),ye=O.useMemo(()=>[...t??[],{css:`.is-root-container{display:flow-root;${se?"min-height:0!important;":""}}`}],[t,se]);return a.jsx("div",{className:$("editor-visual-editor","edit-post-visual-editor",s,{"has-padding":z||se,"is-resizable":se,"is-iframed":be}),children:a.jsx(P3e,{enableResizing:se,height:c.height&&!ie?c.height:"100%",children:a.jsxs(aXt,{shouldIframe:be,contentRef:r,styles:ye,height:"100%",iframeProps:{...o,...ee,style:{...o?.style,...q}},children:[w&&!_&&d==="post-only"&&!y&&a.jsxs(a.Fragment,{children:[a.jsx(gy,{selector:".editor-visual-editor__post-title-wrapper",layout:C}),a.jsx(gy,{selector:".block-editor-block-list__layout.is-root-container",layout:U}),N&&a.jsx(gy,{css:ne}),I&&a.jsx(gy,{layout:P,css:I})]}),d==="post-only"&&!y&&a.jsx("div",{className:$("editor-visual-editor__post-title-wrapper","edit-post-visual-editor__post-title-wrapper",{"has-global-padding":A}),contentEditable:!1,ref:X,style:{marginTop:"4rem"},children:a.jsx(C3e,{ref:Z})}),a.jsxs(uO,{blockName:b,uniqueId:h,children:[a.jsx(fk,{className:$("is-"+g.toLowerCase()+"-preview",d!=="post-only"||y?"wp-site-blocks":`${L} wp-block-post-content`),layout:H,dropZoneElement:n?oe.current:oe.current?.parentNode,__unstableDisableDropZone:d==="template-locked"}),d==="template-locked"&&a.jsx(tXt,{contentRef:oe})]}),se&&i]})})})}const dXt={header:m("Editor top bar"),body:m("Editor content"),sidebar:m("Editor settings"),actions:m("Editor publish"),footer:m("Editor footer")};function pXt({className:e,enableRegionNavigation:t,styles:n,children:o,forceIsDirty:r,contentRef:s,disableIframe:i,autoFocus:c,customSaveButton:l,customSavePanel:u,forceDisableBlockTools:d,title:p,icon:f,iframeProps:b}){const{mode:h,isRichEditingEnabled:g,isInserterOpened:z,isListViewOpened:y,isDistractionFree:x,isPreviewMode:v,previousShortcut:M,nextShortcut:A,showBlockBreadcrumbs:_,documentLabel:w,blockEditorMode:k}=D(B=>{const{get:N}=B(Qe),{getEditorSettings:E,getPostTypeLabel:L}=B(ue),I=E(),P=L();return{mode:B(ue).getEditorMode(),isRichEditingEnabled:I.richEditingEnabled,isInserterOpened:B(ue).isInserterOpened(),isListViewOpened:B(ue).isListViewOpened(),isDistractionFree:N("core","distractionFree"),isPreviewMode:I.__unstableIsPreviewMode,previousShortcut:B(Br).getAllShortcutKeyCombinations("core/editor/previous-region"),nextShortcut:B(Br).getAllShortcutKeyCombinations("core/editor/next-region"),showBlockBreadcrumbs:N("core","showBlockBreadcrumbs"),documentLabel:P||Oe("Document","noun"),blockEditorMode:B(F).__unstableGetEditorMode()}},[]),q=g0("medium"),S=m(y?"Document Overview":"Block Library"),[C,T]=O.useState(!1),W=O.useCallback(B=>{typeof C=="function"&&C(B),T(!1)},[C]);return a.jsx(Xze,{enableRegionNavigation:t,isDistractionFree:x,className:$("editor-editor-interface",e,{"is-entity-save-view-open":!!C,"is-distraction-free":x&&!v}),labels:{...dXt,secondarySidebar:S},header:!v&&a.jsx(UUt,{forceIsDirty:r,setEntitiesSavedStatesCallback:T,customSaveButton:l,forceDisableBlockTools:d,title:p,icon:f}),editorNotices:a.jsx(GZ,{}),secondarySidebar:!v&&h==="visual"&&(z&&a.jsx(GUt,{})||y&&a.jsx(ZUt,{})),sidebar:!v&&!x&&a.jsx(Dk.Slot,{scope:"core"}),content:a.jsxs(a.Fragment,{children:[!x&&!v&&a.jsx(GZ,{}),a.jsx(j3e.Slot,{children:([B])=>B||a.jsxs(a.Fragment,{children:[!v&&(h==="text"||!g)&&a.jsx(eXt,{autoFocus:c}),!v&&!q&&h==="visual"&&a.jsx(CP,{hideDragHandle:!0}),(v||g&&h==="visual")&&a.jsx(uXt,{styles:n,contentRef:s,disableIframe:i,autoFocus:c,iframeProps:b}),o]})})]}),footer:!v&&!x&&q&&_&&g&&k!=="zoom-out"&&h==="visual"&&a.jsx(ZAt,{rootLabelText:w}),actions:v?void 0:u||a.jsx(JUt,{closeEntitiesSavedStates:W,isEntitiesSavedStatesOpen:C,setEntitiesSavedStatesCallback:T,forceIsDirtyPublishPanel:r}),shortcuts:{previous:M,next:A}})}const{OverridesPanel:fXt}=gt(Gi);function bXt(){return D(t=>t(ue).getCurrentPostType()==="wp_block",[])?a.jsx(fXt,{}):null}function I3e({postType:e,onActionPerformed:t,context:n}){const{defaultActions:o}=D(s=>{const{getEntityActions:i}=gt(s(ue));return{defaultActions:i("postType",e)}},[e]),{registerPostTypeActions:r}=gt(ae(ue));return O.useEffect(()=>{r(e)},[r,e]),O.useMemo(()=>{const s=o.filter(i=>i.context?i.context===n:!0);if(t)for(let i=0;i{c(l,{...u,onActionPerformed:d=>{u?.onActionPerformed&&u.onActionPerformed(d),t(s[i].id,d)}})}}}if(s[i].RenderModal){const c=s[i].RenderModal;s[i]={...s[i],RenderModal:l=>a.jsx(c,{...l,onActionPerformed:u=>{l.onActionPerformed&&l.onActionPerformed(u),t(s[i].id,u)}})}}}return s},[o,t,n])}const{DropdownMenuV2:D5,kebabCase:hXt}=gt(L0);function mXt({postType:e,postId:t,onActionPerformed:n}){const[o,r]=O.useState(!1),{item:s,permissions:i}=D(d=>{const{getEditedEntityRecord:p,getEntityRecordPermissions:f}=gt(d(ce));return{item:p("postType",e,t),permissions:f("postType",e,t)}},[t,e]),c=O.useMemo(()=>({...s,permissions:i}),[s,i]),l=I3e({postType:e,onActionPerformed:n}),u=O.useMemo(()=>l.filter(d=>!d.isEligible||d.isEligible(c)),[l,c]);return a.jsx(D5,{open:o,trigger:a.jsx(fe,{size:"small",icon:Ol,label:m("Actions"),disabled:!u.length,accessibleWhenDisabled:!0,className:"editor-all-actions-button",onClick:()=>r(!o)}),onOpenChange:r,placement:"bottom-end",children:a.jsx(gXt,{actions:u,item:c,onClose:()=>{r(!1)}})})}function zQ({action:e,onClick:t,items:n}){const o=typeof e.label=="string"?e.label:e.label(n);return a.jsx(D5.Item,{onClick:t,hideOnClick:!e.RenderModal,children:a.jsx(D5.ItemLabel,{children:o})})}function MXt({action:e,item:t,ActionTrigger:n,onClose:o}){const[r,s]=O.useState(!1),i={action:e,onClick:()=>s(!0),items:[t]},{RenderModal:c,hideModalHeader:l}=e;return a.jsxs(a.Fragment,{children:[a.jsx(n,{...i}),r&&a.jsx(fn,{title:e.modalHeader||e.label,__experimentalHideHeader:!!l,onRequestClose:()=>{s(!1)},overlayClassName:`editor-action-modal editor-action-modal__${hXt(e.id)}`,focusOnMount:"firstContentElement",size:"small",children:a.jsx(c,{items:[t],closeModal:()=>{s(!1),o()}})})]})}function gXt({actions:e,item:t,onClose:n}){return a.jsx(D5.Group,{children:e.map(o=>o.RenderModal?a.jsx(MXt,{action:o,item:t,ActionTrigger:zQ,onClose:n},o.id):a.jsx(zQ,{action:o,onClick:()=>o.callback([t]),items:[t]},o.id))})}function D3e({postType:e,postId:t,onActionPerformed:n}){const{isFrontPage:o,isPostsPage:r,title:s,icon:i,isSync:c}=D(l=>{const{__experimentalGetTemplateInfo:u}=l(ue),{canUser:d,getEditedEntityRecord:p}=l(ce),f=d("read",{kind:"root",name:"site"})?p("root","site"):void 0,b=p("postType",e,t),h=[d1,vo].includes(e)&&u(b);let g=!1;return hze.includes(e)&&(ul===e?g=(b?.meta?.wp_pattern_sync_status==="unsynced"?"unsynced":b?.wp_pattern_sync_status)!=="unsynced":g=!0),{title:h?.title||b?.title,icon:gt(l(ue)).getPostIcon(e,{area:b?.area}),isSync:g,isFrontPage:f?.page_on_front===t,isPostsPage:f?.page_for_posts===t}},[t,e]);return a.jsx("div",{className:"editor-post-card-panel",children:a.jsxs(Je,{spacing:2,className:"editor-post-card-panel__header",align:"flex-start",children:[a.jsx(xn,{className:$("editor-post-card-panel__icon",{"is-sync":c}),icon:i}),a.jsxs(l0,{numberOfLines:2,truncate:!0,className:"editor-post-card-panel__title",weight:500,as:"h2",lineHeight:"20px",children:[s?kt(s):m("No title"),o&&a.jsx("span",{className:"editor-post-card-panel__title-badge",children:m("Homepage")}),r&&a.jsx("span",{className:"editor-post-card-panel__title-badge",children:m("Posts Page")})]}),a.jsx(mXt,{postType:e,postId:t,onActionPerformed:n})]})})}const zXt=189;function OXt(){const{postContent:e}=D(i=>{const{getEditedPostAttribute:c,getCurrentPostType:l,getCurrentPostId:u}=i(ue),{canUser:d}=i(ce),{getEntityRecord:p}=i(ce),f=d("read",{kind:"root",name:"site"})?p("root","site"):void 0,b=l();return{postContent:!(+u()===f?.page_for_posts)&&![d1,vo].includes(b)&&c("content")}},[]),t=Oe("words","Word count type. Do not translate!"),n=O.useMemo(()=>e?Jh(e,t):0,[e,t]);if(!n)return null;const o=Math.round(n/zXt),r=le(a0("%s word","%s words",n),n.toLocaleString()),s=o<=1?m("1 minute"):le(a0("%s minute","%s minutes",o),o.toLocaleString());return a.jsx("div",{className:"editor-post-content-information",children:a.jsx(l0,{children:le(m("%1$s, %2$s read time."),r,s)})})}function AXt(){const{postFormat:e}=D(s=>{const{getEditedPostAttribute:i}=s(ue),c=i("format");return{postFormat:c??"standard"}},[]),t=b9.find(s=>s.id===e),[n,o]=O.useState(null),r=O.useMemo(()=>({anchor:n,placement:"left-start",offset:36,shift:!0}),[n]);return a.jsx(c3e,{children:a.jsx(Lr,{label:m("Format"),ref:o,children:a.jsx(B0,{popoverProps:r,contentClassName:"editor-post-format__dialog",focusOnMount:!0,renderToggle:({isOpen:s,onToggle:i})=>a.jsx(fe,{size:"compact",variant:"tertiary","aria-expanded":s,"aria-label":le(m("Change format: %s"),t?.caption),onClick:i,children:t?.caption}),renderContent:({onClose:s})=>a.jsxs("div",{className:"editor-post-format__dialog-content",children:[a.jsx(zs,{title:m("Format"),onClose:s}),a.jsx(l3e,{})]})})})})}function yXt(){const e=D(n=>n(ue).getEditedPostAttribute("modified"),[]),t=e&&le(m("Last edited %s."),kw(e));return t?a.jsx("div",{className:"editor-post-last-edited-panel",children:a.jsx(l0,{children:t})}):null}function vXt({className:e,children:t}){return a.jsx(Ye,{className:$("editor-post-panel__section",e),children:t})}const xXt={};function _Xt(){const{editEntityRecord:e}=ae(ce),{postsPageTitle:t,postsPageId:n,isTemplate:o,postSlug:r}=D(d=>{const{getEntityRecord:p,getEditedEntityRecord:f,canUser:b}=d(ce),h=b("read",{kind:"root",name:"site"})?p("root","site"):void 0,g=h?.page_for_posts?f("postType","page",h?.page_for_posts):xXt,{getEditedPostAttribute:z,getCurrentPostType:y}=d(ue);return{postsPageId:g?.id,postsPageTitle:g?.title,isTemplate:y()===d1,postSlug:z("slug")}},[]),[s,i]=O.useState(null),c=O.useMemo(()=>({anchor:s,placement:"left-start",offset:36,shift:!0}),[s]);if(!o||!["home","index"].includes(r)||!n)return null;const l=d=>{e("postType","page",n,{title:d})},u=kt(t);return a.jsx(Lr,{label:m("Blog title"),ref:i,children:a.jsx(B0,{popoverProps:c,contentClassName:"editor-blog-title-dropdown__content",focusOnMount:!0,renderToggle:({isOpen:d,onToggle:p})=>a.jsx(fe,{size:"compact",variant:"tertiary","aria-expanded":d,"aria-label":le(m("Change blog title: %s"),u),onClick:p,children:u}),renderContent:({onClose:d})=>a.jsxs(a.Fragment,{children:[a.jsx(zs,{title:m("Blog title"),onClose:d}),a.jsx(Ps,{placeholder:m("No title"),size:"__unstable-large",value:t,onChange:jr(l,300),label:m("Blog title"),help:m("Set the Posts Page title. Appears in search results, and when the page is shared on social media."),hideLabelFromVision:!0})]})})})}function wXt(){const{editEntityRecord:e}=ae(ce),{postsPerPage:t,isTemplate:n,postSlug:o}=D(l=>{const{getEditedPostAttribute:u,getCurrentPostType:d}=l(ue),{getEditedEntityRecord:p,canUser:f}=l(ce),b=f("read",{kind:"root",name:"site"})?p("root","site"):void 0;return{isTemplate:d()===d1,postSlug:u("slug"),postsPerPage:b?.posts_per_page||1}},[]),[r,s]=O.useState(null),i=O.useMemo(()=>({anchor:r,placement:"left-start",offset:36,shift:!0}),[r]);if(!n||!["home","index"].includes(o))return null;const c=l=>{e("root","site",void 0,{posts_per_page:l})};return a.jsx(Lr,{label:m("Posts per page"),ref:s,children:a.jsx(B0,{popoverProps:i,contentClassName:"editor-posts-per-page-dropdown__content",focusOnMount:!0,renderToggle:({isOpen:l,onToggle:u})=>a.jsx(fe,{size:"compact",variant:"tertiary","aria-expanded":l,"aria-label":m("Change posts per page"),onClick:u,children:t}),renderContent:({onClose:l})=>a.jsxs(a.Fragment,{children:[a.jsx(zs,{title:m("Posts per page"),onClose:l}),a.jsx(T1,{placeholder:0,value:t,size:"__unstable-large",spinControls:"custom",step:"1",min:"1",onChange:c,label:m("Posts per page"),help:m("Set the default number of posts to display on blog pages, including categories and tags. Some templates may override this setting."),hideLabelFromVision:!0})]})})})}const kXt=[{label:Oe("Open",'Adjective: e.g. "Comments are open"'),value:"open",description:m("Visitors can add new comments and replies.")},{label:m("Closed"),value:"",description:[m("Visitors cannot add new comments or replies."),m("Existing comments remain visible.")].join(" ")}];function qXt(){const{editEntityRecord:e}=ae(ce),{allowCommentsOnNewPosts:t,isTemplate:n,postSlug:o}=D(l=>{const{getEditedPostAttribute:u,getCurrentPostType:d}=l(ue),{getEditedEntityRecord:p,canUser:f}=l(ce),b=f("read",{kind:"root",name:"site"})?p("root","site"):void 0;return{isTemplate:d()===d1,postSlug:u("slug"),allowCommentsOnNewPosts:b?.default_comment_status||""}},[]),[r,s]=O.useState(null),i=O.useMemo(()=>({anchor:r,placement:"left-start",offset:36,shift:!0}),[r]);if(!n||!["home","index"].includes(o))return null;const c=l=>{e("root","site",void 0,{default_comment_status:l?"open":null})};return a.jsx(Lr,{label:m("Discussion"),ref:s,children:a.jsx(B0,{popoverProps:i,contentClassName:"editor-site-discussion-dropdown__content",focusOnMount:!0,renderToggle:({isOpen:l,onToggle:u})=>a.jsx(fe,{size:"compact",variant:"tertiary","aria-expanded":l,"aria-label":m("Change discussion settings"),onClick:u,children:m(t?"Comments open":"Comments closed")}),renderContent:({onClose:l})=>a.jsxs(a.Fragment,{children:[a.jsx(zs,{title:m("Discussion"),onClose:l}),a.jsxs(Ye,{spacing:3,children:[a.jsx(l0,{children:m("Changes will apply to new posts only. Individual posts may override these settings.")}),a.jsx(kf,{className:"editor-site-discussion__options",hideLabelFromVision:!0,label:m("Comment status"),options:kXt,onChange:c,selected:t})]})]})})})}const SXt="post-status";function CXt({onActionPerformed:e}){const{isRemovedPostStatusPanel:t,postType:n,postId:o}=D(r=>{const{isEditorPanelRemoved:s,getCurrentPostType:i,getCurrentPostId:c}=r(ue);return{isRemovedPostStatusPanel:s(SXt),postType:i(),postId:c()}},[]);return a.jsx(vXt,{className:"editor-post-summary",children:a.jsx(r3e.Slot,{children:r=>a.jsx(a.Fragment,{children:a.jsxs(Ye,{spacing:4,children:[a.jsx(D3e,{postType:n,postId:o,onActionPerformed:e}),a.jsx(U$t,{withPanelBody:!1}),a.jsx(N$t,{}),a.jsxs(Ye,{spacing:1,children:[a.jsx(OXt,{}),a.jsx(yXt,{})]}),!t&&a.jsxs(Ye,{spacing:4,children:[a.jsxs(Ye,{spacing:1,children:[a.jsx(v3e,{}),a.jsx(BVt,{}),a.jsx(UVt,{}),a.jsx(x$t,{}),a.jsx(M$t,{}),a.jsx(R$t,{}),a.jsx(K$t,{}),a.jsx(GFt,{}),a.jsx(NVt,{}),a.jsx(_Xt,{}),a.jsx(wXt,{}),a.jsx(qXt,{}),a.jsx(AXt,{})]}),r]})]})})})})}const{EXCLUDED_PATTERN_SOURCES:RXt,PATTERN_TYPES:WXt}=gt(Gi);function F3e(e,t){return e.innerBlocks=e.innerBlocks.map(n=>F3e(n,t)),e.name==="core/template-part"&&e.attributes.theme===void 0&&(e.attributes.theme=t),e}function TXt(e,t){const n=(s,i,c)=>i===c.findIndex(l=>s.name===l.name),o=s=>!RXt.includes(s.source),r=s=>s.templateTypes?.includes(t.slug)||s.blockTypes?.includes("core/template-part/"+t.area);return e.filter((s,i,c)=>n(s,i,c)&&o(s)&&r(s))}function EXt(e,t){return e.map(n=>({...n,keywords:n.keywords||[],type:WXt.theme,blocks:Yn(n.content,{__unstableSkipMigrationLogs:!0}).map(o=>F3e(o,t))}))}function BXt(e){const{blockPatterns:t,restBlockPatterns:n,currentThemeStylesheet:o}=D(r=>{var s;const{getEditorSettings:i}=r(ue),c=i();return{blockPatterns:(s=c.__experimentalAdditionalBlockPatterns)!==null&&s!==void 0?s:c.__experimentalBlockPatterns,restBlockPatterns:r(ce).getBlockPatterns(),currentThemeStylesheet:r(ce).getCurrentTheme().stylesheet}},[]);return O.useMemo(()=>{const r=[...t||[],...n||[]],s=TXt(r,e);return EXt(s,e)},[t,n,e,o])}function NXt({availableTemplates:e,onSelect:t}){const n=Gs(e);return!e||e?.length===0?null:a.jsx(oc,{label:m("Templates"),blockPatterns:e,shownPatterns:n,onClickPattern:t,showTitlesAsTooltip:!0})}function LXt(){const{record:e,postType:t,postId:n}=D(i=>{const{getCurrentPostType:c,getCurrentPostId:l}=i(ue),{getEditedEntityRecord:u}=i(ce),d=c(),p=l();return{postType:d,postId:p,record:u("postType",d,p)}},[]),{editEntityRecord:o}=ae(ce),r=BXt(e),s=async i=>{await o("postType",t,n,{blocks:i.blocks,content:Pr(i.blocks)})};return r?.length?a.jsx(De,{title:m("Design"),initialOpen:e.type===vo,children:a.jsx(NXt,{availableTemplates:r,onSelect:s})}):null}function jXt(){const{postType:e}=D(t=>{const{getCurrentPostType:n}=t(ue);return{postType:n()}},[]);return[vo,d1].includes(e)?a.jsx(LXt,{}):null}const ya={document:"edit-post/document",block:"edit-post/block"},{Tabs:gC}=gt(L0),PXt=(e,t)=>{const{documentLabel:n}=D(o=>{const{getPostTypeLabel:r}=o(ue);return{documentLabel:r()||Oe("Document","noun")}},[]);return a.jsxs(gC.TabList,{ref:t,children:[a.jsx(gC.Tab,{tabId:ya.document,"data-tab-id":ya.document,children:n}),a.jsx(gC.Tab,{tabId:ya.block,"data-tab-id":ya.block,children:m("Block")})]})},IXt=O.forwardRef(PXt),{BlockQuickNavigation:DXt}=gt(p0),FXt=["core/post-title","core/post-featured-image","core/post-content"],$Xt="core/template-part";function VXt(){const e=O.useMemo(()=>_n("editor.postContentBlockTypes",FXt),[]),{clientIds:t,postType:n,renderingMode:o}=D(s=>{const{getCurrentPostType:i,getPostBlocksByName:c,getRenderingMode:l}=gt(s(ue)),u=i();return{postType:u,clientIds:c(d1===u?$Xt:e),renderingMode:l()}},[e]),{enableComplementaryArea:r}=ae(sn);return o==="post-only"&&n!==d1||t.length===0?null:a.jsx(De,{title:m("Content"),children:a.jsx(DXt,{clientIds:t,onSelect:()=>{r("core","edit-post/document")}})})}const{BlockQuickNavigation:HXt}=gt(p0);function UXt(){const e=D(o=>{const{getBlockTypes:r}=o($e);return r()},[]),t=O.useMemo(()=>e.filter(o=>o.category==="theme").map(({name:o})=>o),[e]),n=D(o=>{const{getBlocksByName:r}=o(F);return r(t)},[t]);return n.length===0?null:a.jsx(De,{title:m("Content"),children:a.jsx(HXt,{clientIds:n})})}function XXt(){return D(t=>{const{getCurrentPostType:n}=t(ue);return n()},[])!==vo?null:a.jsx(UXt,{})}function GXt(){const{hasBlockSelection:e}=D(r=>({hasBlockSelection:!!r(F).getBlockSelectionStart()}),[]),{getActiveComplementaryArea:t}=D(sn),{enableComplementaryArea:n}=ae(sn),{get:o}=D(Qe);O.useEffect(()=>{const r=t("core"),s=["edit-post/document","edit-post/block"].includes(r),i=o("core","distractionFree");!s||i||(e?n("core","edit-post/block"):n("core","edit-post/document"))},[e,t,n,o])}const{Tabs:lb}=gt(L0),KXt=w1.select({web:!0,native:!1}),YXt=({tabName:e,keyboardShortcut:t,onActionPerformed:n,extraPanels:o})=>{const r=O.useRef(null),s=O.useContext(lb.Context);return O.useEffect(()=>{const i=Array.from(r.current?.querySelectorAll('[role="tab"]')||[]),c=i.find(d=>d.getAttribute("data-tab-id")===e),l=c?.ownerDocument.activeElement;i.some(d=>l&&l.id===d.id)&&c&&c.id!==l?.id&&c?.focus()},[e]),a.jsx(u$t,{identifier:e,header:a.jsx(lb.Context.Provider,{value:s,children:a.jsx(IXt,{ref:r})}),closeLabel:m("Close Settings"),className:"editor-sidebar__panel",headerClassName:"editor-sidebar__panel-tabs",title:m("Settings"),toggleShortcut:t,icon:ft()?Qce:Jce,isActiveByDefault:KXt,children:a.jsxs(lb.Context.Provider,{value:s,children:[a.jsxs(lb.TabPanel,{tabId:ya.document,focusable:!1,children:[a.jsx(CXt,{onActionPerformed:n}),a.jsx(n3e.Slot,{}),a.jsx(VXt,{}),a.jsx(XXt,{}),a.jsx(jXt,{}),a.jsx(IVt,{}),a.jsx(bXt,{}),o]}),a.jsx(lb.TabPanel,{tabId:ya.block,focusable:!1,children:a.jsx(Rge,{})})]})})},ZXt=({extraPanels:e,onActionPerformed:t})=>{GXt();const{tabName:n,keyboardShortcut:o,showSummary:r}=D(c=>{const l=c(Br).getShortcutRepresentation("core/editor/toggle-sidebar"),u=c(sn).getActiveComplementaryArea("core"),d=[ya.block,ya.document].includes(u);let p=u;return d||(p=c(F).getBlockSelectionStart()?ya.block:ya.document),{tabName:p,keyboardShortcut:l,showSummary:![d1,vo,th].includes(c(ue).getCurrentPostType())}},[]),{enableComplementaryArea:s}=ae(sn),i=O.useCallback(c=>{c&&s("core",c)},[s]);return a.jsx(lb,{selectedTabId:n,onSelect:i,selectOnMove:!1,children:a.jsx(YXt,{tabName:n,keyboardShortcut:o,showSummary:r,onActionPerformed:t,extraPanels:e})})};function QXt({postType:e,postId:t,templateId:n,settings:o,children:r,initialEdits:s,onActionPerformed:i,extraContent:c,extraSidebarPanels:l,...u}){const{post:d,template:p,hasLoadedPost:f}=D(b=>{const{getEntityRecord:h,hasFinishedResolution:g}=b(ce);return{post:h("postType",e,t),template:n?h("postType",d1,n):void 0,hasLoadedPost:g("getEntityRecord",["postType",e,t])}},[e,t,n]);return a.jsxs(a.Fragment,{children:[f&&!d&&a.jsx($s,{status:"warning",isDismissible:!1,children:m("You attempted to edit an item that doesn't exist. Perhaps it was deleted?")}),!!d&&a.jsxs(L3e,{post:d,__unstableTemplate:p,settings:o,initialEdits:s,useSubRegistry:!1,children:[a.jsx(pXt,{...u,children:c}),a.jsx(ZXt,{onActionPerformed:i,extraPanels:l}),r]})]})}const{PreferenceBaseOption:JXt}=gt(yd),eGt=v0(Xo(e=>({isChecked:e(ue).isPublishSidebarEnabled()})),Fi(e=>{const{enablePublishSidebar:t,disablePublishSidebar:n}=e(ue);return{onChange:o=>o?t():n()}}))(JXt);function tGt({blockTypes:e,value:t,onItemChange:n}){return a.jsx("ul",{className:"editor-block-manager__checklist",children:e.map(o=>a.jsxs("li",{className:"editor-block-manager__checklist-item",children:[a.jsx(Bo,{__nextHasNoMarginBottom:!0,label:o.title,checked:t.includes(o.name),onChange:(...r)=>n(o.name,...r)}),a.jsx(b0,{icon:o.icon})]},o.name))})}function QT({title:e,blockTypes:t}){const n=He(QT),{allowedBlockTypes:o,hiddenBlockTypes:r}=D(h=>{const{getEditorSettings:g}=h(ue),{get:z}=h(Qe);return{allowedBlockTypes:g().allowedBlockTypes,hiddenBlockTypes:z("core","hiddenBlockTypes")}},[]),s=O.useMemo(()=>o===!0?t:t.filter(({name:h})=>o?.includes(h)),[o,t]),{showBlockTypes:i,hideBlockTypes:c}=gt(ae(ue)),l=O.useCallback((h,g)=>{g?i(h):c(h)},[i,c]),u=O.useCallback(h=>{const g=t.map(({name:z})=>z);h?i(g):c(g)},[t,i,c]);if(!s.length)return null;const d=s.map(({name:h})=>h).filter(h=>!(r??[]).includes(h)),p="editor-block-manager__category-title-"+n,f=d.length===s.length,b=!f&&d.length>0;return a.jsxs("div",{role:"group","aria-labelledby":p,className:"editor-block-manager__category",children:[a.jsx(Bo,{__nextHasNoMarginBottom:!0,checked:f,onChange:u,className:"editor-block-manager__category-title",indeterminate:b,label:a.jsx("span",{id:p,children:e})}),a.jsx(tGt,{blockTypes:s,value:d,onItemChange:l})]})}function nGt({blockTypes:e,categories:t,hasBlockSupport:n,isMatchingSearchTerm:o,numberOfHiddenBlocks:r,enableAllBlockTypes:s}){const i=Uo(At,500),[c,l]=O.useState("");return e=e.filter(u=>n(u,"inserter",!0)&&(!c||o(u,c))&&(!u.parent||u.parent.includes("core/post-content"))),O.useEffect(()=>{if(!c)return;const u=e.length,d=le(a0("%d result found.","%d results found.",u),u);i(d)},[e.length,c,i]),a.jsxs("div",{className:"editor-block-manager__content",children:[!!r&&a.jsxs("div",{className:"editor-block-manager__disabled-blocks-count",children:[le(a0("%d block is hidden.","%d blocks are hidden.",r),r),a.jsx(fe,{__next40pxDefaultSize:!1,variant:"link",onClick:()=>s(e),children:m("Reset")})]}),a.jsx(xl,{__nextHasNoMarginBottom:!0,label:m("Search for a block"),placeholder:m("Search for a block"),value:c,onChange:u=>l(u),className:"editor-block-manager__search"}),a.jsxs("div",{tabIndex:"0",role:"region","aria-label":m("Available block types"),className:"editor-block-manager__results",children:[e.length===0&&a.jsx("p",{className:"editor-block-manager__no-results",children:m("No blocks found.")}),t.map(u=>a.jsx(QT,{title:u.title,blockTypes:e.filter(d=>d.category===u.slug)},u.slug)),a.jsx(QT,{title:m("Uncategorized"),blockTypes:e.filter(({category:u})=>!u)})]})]})}const oGt=v0([Xo(e=>{var t;const{getBlockTypes:n,getCategories:o,hasBlockSupport:r,isMatchingSearchTerm:s}=e($e),{get:i}=e(Qe),c=n(),l=((t=i("core","hiddenBlockTypes"))!==null&&t!==void 0?t:[]).filter(d=>c.some(p=>p.name===d)),u=Array.isArray(l)&&l.length;return{blockTypes:c,categories:o(),hasBlockSupport:r,isMatchingSearchTerm:s,numberOfHiddenBlocks:u}}),Fi(e=>{const{showBlockTypes:t}=gt(e(ue));return{enableAllBlockTypes:n=>{const o=n.map(({name:r})=>r);t(o)}}})])(nGt),{PreferencesModal:rGt,PreferencesModalTabs:sGt,PreferencesModalSection:jl,PreferenceToggleControl:fc}=gt(yd);function iGt({extraSections:e={}}){const t=g0("medium"),{isActive:n,showBlockBreadcrumbsOption:o}=D(u=>{const{getEditorSettings:d}=u(ue),{get:p}=u(Qe),{isModalActive:f}=u(sn),b=d().richEditingEnabled;return{showBlockBreadcrumbsOption:!p("core","distractionFree")&&t&&b,isActive:f("editor/preferences")}},[t]),{closeModal:r}=ae(sn),{setIsListViewOpened:s,setIsInserterOpened:i}=ae(ue),{set:c}=ae(Qe),l=O.useMemo(()=>[{name:"general",tabLabel:m("General"),content:a.jsxs(a.Fragment,{children:[a.jsxs(jl,{title:m("Interface"),children:[a.jsx(fc,{scope:"core",featureName:"showListViewByDefault",help:m("Opens the List View sidebar by default."),label:m("Always open List View")}),o&&a.jsx(fc,{scope:"core",featureName:"showBlockBreadcrumbs",help:m("Display the block hierarchy trail at the bottom of the editor."),label:m("Show block breadcrumbs")}),a.jsx(fc,{scope:"core",featureName:"allowRightClickOverrides",help:m("Allows contextual List View menus via right-click, overriding browser defaults."),label:m("Allow right-click contextual menus")})]}),a.jsxs(jl,{title:m("Document settings"),description:m("Select what settings are shown in the document panel."),children:[a.jsx(u9.Slot,{}),a.jsx(x3e,{taxonomyWrapper:(u,d)=>a.jsx(cb,{label:d.labels.menu_name,panelName:`taxonomy-panel-${d.slug}`})}),a.jsx(I5,{children:a.jsx(cb,{label:m("Featured image"),panelName:"featured-image"})}),a.jsx(a3e,{children:a.jsx(cb,{label:m("Excerpt"),panelName:"post-excerpt"})}),a.jsx(Ha,{supportKeys:["comments","trackbacks"],children:a.jsx(cb,{label:m("Discussion"),panelName:"discussion-panel"})}),a.jsx(Kze,{children:a.jsx(cb,{label:m("Page attributes"),panelName:"page-attributes"})})]}),t&&a.jsx(jl,{title:m("Publishing"),children:a.jsx(eGt,{help:m("Review settings, such as visibility and tags."),label:m("Enable pre-publish checks")})}),e?.general]})},{name:"appearance",tabLabel:m("Appearance"),content:a.jsxs(jl,{title:m("Appearance"),description:m("Customize the editor interface to suit your needs."),children:[a.jsx(fc,{scope:"core",featureName:"fixedToolbar",onToggle:()=>c("core","distractionFree",!1),help:m("Access all block and document tools in a single place."),label:m("Top toolbar")}),a.jsx(fc,{scope:"core",featureName:"distractionFree",onToggle:()=>{c("core","fixedToolbar",!0),i(!1),s(!1)},help:m("Reduce visual distractions by hiding the toolbar and other elements to focus on writing."),label:m("Distraction free")}),a.jsx(fc,{scope:"core",featureName:"focusMode",help:m("Highlights the current block and fades other content."),label:m("Spotlight mode")}),e?.appearance]})},{name:"accessibility",tabLabel:m("Accessibility"),content:a.jsxs(a.Fragment,{children:[a.jsx(jl,{title:m("Navigation"),description:m("Optimize the editing experience for enhanced control."),children:a.jsx(fc,{scope:"core",featureName:"keepCaretInsideBlock",help:m("Keeps the text cursor within the block boundaries, aiding users with screen readers by preventing unintentional cursor movement outside the block."),label:m("Contain text cursor inside block")})}),a.jsx(jl,{title:m("Interface"),children:a.jsx(fc,{scope:"core",featureName:"showIconLabels",label:m("Show button text labels"),help:m("Show text instead of icons on buttons across the interface.")})})]})},{name:"blocks",tabLabel:m("Blocks"),content:a.jsxs(a.Fragment,{children:[a.jsx(jl,{title:m("Inserter"),children:a.jsx(fc,{scope:"core",featureName:"mostUsedBlocks",help:m("Adds a category with the most frequently used blocks in the inserter."),label:m("Show most used blocks")})}),a.jsx(jl,{title:m("Manage block visibility"),description:m("Disable blocks that you don't want to appear in the inserter. They can always be toggled back on later."),children:a.jsx(oGt,{})})]})}],[o,e,i,s,c,t]);return n?a.jsx(rGt,{closeModal:r,children:a.jsx(sGt,{sections:l})}):null}const OQ="content",aGt={name:"core/pattern-overrides",getValues({registry:e,clientId:t,context:n,bindings:o}){const r=n["pattern/overrides"],{getBlockAttributes:s}=e.select(F),i=s(t),c={};for(const l of Object.keys(o)){const u=r?.[i?.metadata?.name]?.[l];if(u===void 0){c[l]=i[l];continue}else c[l]=u===""?void 0:u}return c},setValues({registry:e,clientId:t,bindings:n}){const{getBlockAttributes:o,getBlockParentsByBlockName:r,getBlocks:s}=e.select(F),c=o(t)?.metadata?.name;if(!c)return;const[l]=r(t,"core/block",!0),u=Object.entries(n).reduce((p,[f,{newValue:b}])=>(p[f]=b,p),{});if(!l){const p=f=>{for(const b of f)b.attributes?.metadata?.name===c&&e.dispatch(F).updateBlockAttributes(b.clientId,u),p(b.innerBlocks)};p(s());return}const d=o(l)?.[OQ];e.dispatch(F).updateBlockAttributes(l,{[OQ]:{...d,[c]:{...d?.[c],...Object.entries(u).reduce((p,[f,b])=>(p[f]=b===void 0?"":b,p),{})}}})},canUserEditValue:()=>!0},cGt={name:"core/post-meta",getValues({registry:e,context:t,bindings:n}){const o=e.select(ce).getEditedEntityRecord("postType",t?.postType,t?.postId)?.meta,r={};for(const[s,i]of Object.entries(n))r[s]=o?.[i.args.key]||i.args.key;return r},setValues({registry:e,context:t,bindings:n}){const o={};Object.values(n).forEach(({args:r,newValue:s})=>{o[r.key]=s}),e.dispatch(ce).editEntityRecord("postType",t?.postType,t?.postId,{meta:o})},canUserEditValue({select:e,context:t,args:n}){if(t?.query||t?.queryId)return!1;const o=t?.postType||e(ue).getCurrentPostType();return!(o==="wp_template"||e(ce).getEntityRecord("postType",o,t?.postId)?.meta?.[n.key]===void 0||e(ue).getEditorSettings().enableCustomFields||!e(ce).canUser("update",{kind:"postType",name:t?.postType,id:t?.postId}))},getFieldsList({registry:e,context:t}){const n=e.select(ce).getEditedEntityRecord("postType",t?.postType,t?.postId).meta;return!n||!Object.keys(n).length?null:Object.fromEntries(Object.entries(n).filter(([o])=>o!=="footnotes"&&o.charAt(0)!=="_"))}};function lGt(){const{registerBlockBindingsSource:e}=gt(t3);e(aGt),e(cGt)}function uGt(e){if(e){const{addBootstrappedBlockBindingsSource:t}=gt(tr($e));for(const[n,o]of Object.entries(e))t({name:n,...o})}}const{store:dGt,...pGt}=pFt,Sl={};I9t(Sl,{CreateTemplatePartModal:s9,BackButton:m9,EntitiesSavedStatesExtensible:P5,Editor:QXt,EditorContentSlotFill:j3e,GlobalStylesProvider:hHt,mergeBaseAndUserConfigs:W3e,PluginPostExcerpt:f9,PostCardPanel:D3e,PreferencesModal:iGt,usePostActions:I3e,ToolsMoreMenuGroup:M9,ViewMoreMenuGroup:g9,ResizableEditor:P3e,registerCoreBlockBindingsSources:lGt,bootstrapBlockBindingsSourcesFromServer:uGt,interfaceStore:dGt,...pGt});function AO(){if(window.GBKit)return window.GBKit;const e={};try{return JSON.parse(localStorage.getItem("GBKit"))||e}catch(t){return console.error("Failed parsing GBKit from localStorage:",t),e}}function fGt(){const{post:e}=AO();return e?{id:e.id,title:{raw:decodeURIComponent(e.title)},content:{raw:decodeURIComponent(e.content)},type:e.type||"post"}:{type:"post",status:"draft",id:-1}}function bGt(){const{siteApiRoot:e,authHeader:t}=AO();ct.use(ct.createRootURLMiddleware(e)),ct.use(hGt),ct.use(mGt),ct.use(MGt(t)),ct.use(gGt),ct.use(zGt),ct.use(ct.createPreloadingMiddleware({"/wp/v2/types?context=view":{body:{post:{description:"",hierarchical:!1,has_archive:!1,name:"Posts",slug:"post",taxonomies:["category","post_tag"],rest_base:"posts",rest_namespace:"wp/v2",template:[],template_lock:!1,_links:{}},page:{description:"",hierarchical:!0,has_archive:!1,name:"Pages",slug:"page",taxonomies:[],rest_base:"pages",rest_namespace:"wp/v2",template:[],template_lock:!1,_links:{}}}},"/wp/v2/types/post?context=edit":{body:{name:"Posts",slug:"post",supports:{title:!0,editor:!0,author:!0,thumbnail:!0,excerpt:!0,trackbacks:!0,"custom-fields":!0,comments:!0,revisions:!0,"post-formats":!0,autosave:!0},taxonomies:["category","post_tag"],rest_base:"posts",rest_namespace:"wp/v2",template:[],template_lock:!1}}}))}function hGt(e,t){return e.mode="cors",delete e.headers["x-wp-api-fetch-from-editor"],t(e)}function mGt(e,t){const{siteApiNamespace:n}=AO();return e.path&&n&&!e.path.includes(n)&&(e.path=e.path.replace(/^(?\/?(?:[\w.-]+\/){2})/,`$${n}/`)),t(e)}function MGt(e){return(t,n)=>(t.headers=t.headers||{},e&&(t.headers.Authorization=e),n(t))}function gGt(e,t){return[/^\/wp\/v2\/posts\/-?\d+/,/^\/wp\/v2\/pages\/-?\d+/].some(r=>r.test(e.path))?Promise.resolve([]):t(e)}function zGt(e,t){return e.path&&e.path.startsWith("/wp/v2/media")&&e.method==="POST"&&e.body instanceof FormData&&e.body.get("post")==="-1"&&e.body.delete("post"),t(e)}function Ee(e){if(!e)return;const{metadata:t,settings:n,name:o}=e;return tNe({name:o,...t},n)}function OGt({attributes:e,setAttributes:t}){const{showLabel:n,showPostCounts:o,displayAsDropdown:r,type:s}=e;return a.jsxs(a.Fragment,{children:[a.jsx(Te,{children:a.jsxs(De,{title:m("Settings"),children:[a.jsx(Be,{__nextHasNoMarginBottom:!0,label:m("Display as dropdown"),checked:r,onChange:()=>t({displayAsDropdown:!r})}),r&&a.jsx(Be,{__nextHasNoMarginBottom:!0,label:m("Show label"),checked:n,onChange:()=>t({showLabel:!n})}),a.jsx(Be,{__nextHasNoMarginBottom:!0,label:m("Show post counts"),checked:o,onChange:()=>t({showPostCounts:!o})}),a.jsx(i0,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:m("Group by:"),options:[{label:m("Year"),value:"yearly"},{label:m("Month"),value:"monthly"},{label:m("Week"),value:"weekly"},{label:m("Day"),value:"daily"}],value:s,onChange:i=>t({type:i})})]})}),a.jsx("div",{...ze(),children:a.jsx(rr,{children:a.jsx(OO,{block:"core/archives",skipBlockSupportAttributes:!0,attributes:e})})})]})}const z9={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/archives",title:"Archives",category:"widgets",description:"Display a date archive of your posts.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showLabel:{type:"boolean",default:!0},showPostCounts:{type:"boolean",default:!1},type:{type:"string",default:"monthly"}},supports:{align:!0,html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-archives-editor"},{name:$3e}=z9,V3e={icon:MYe,example:{},edit:OGt},AGt=()=>Ee({name:$3e,metadata:z9,settings:V3e}),yGt=Object.freeze(Object.defineProperty({__proto__:null,init:AGt,metadata:z9,name:$3e,settings:V3e},Symbol.toStringTag,{value:"Module"}));function H3e(e){const t=e?e[0]:24,n=e?e[e.length-1]:96,o=Math.floor(n*2.5);return{minSize:t,maxSize:o}}function U3e(){const{avatarURL:e}=D(t=>{const{getSettings:n}=t(F),{__experimentalDiscussionSettings:o}=n();return o});return e}function vGt({commentId:e}){const[t]=Z0("root","comment","author_avatar_urls",e),[n]=Z0("root","comment","author_name",e),o=t?Object.values(t):null,r=t?Object.keys(t):null,{minSize:s,maxSize:i}=H3e(r),c=U3e();return{src:o?o[o.length-1]:c,minSize:s,maxSize:i,alt:n?le(m("%s Avatar"),n):m("Default Avatar")}}function xGt({userId:e,postId:t,postType:n}){const{authorDetails:o}=D(u=>{const{getEditedEntityRecord:d,getUser:p}=u(ce);if(e)return{authorDetails:p(e)};const f=d("postType",n,t)?.author;return{authorDetails:f?p(f):null}},[n,t,e]),r=o?.avatar_urls?Object.values(o.avatar_urls):null,s=o?.avatar_urls?Object.keys(o.avatar_urls):null,{minSize:i,maxSize:c}=H3e(s),l=U3e();return{src:r?r[r.length-1]:l,minSize:i,maxSize:c,alt:o?le(m("%s Avatar"),o?.name):m("Default Avatar")}}const _Gt={who:"authors",per_page:-1,_fields:"id,name",context:"view"};function wGt({value:e,onChange:t}){const[n,o]=O.useState(),r=D(i=>{const{getUsers:c}=i(ce);return c(_Gt)},[]);if(!r)return null;const s=r.map(i=>({label:i.name,value:i.id}));return a.jsx(Nh,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:m("User"),help:m("Select the avatar user to display, if it is blank it will use the post/page author."),value:e,onChange:t,options:n||s,onFilterValueChange:i=>o(s.filter(c=>c.label.toLowerCase().startsWith(i.toLowerCase())))})}const X3e=({setAttributes:e,avatar:t,attributes:n,selectUser:o})=>a.jsx(Te,{children:a.jsxs(De,{title:m("Settings"),children:[a.jsx(T0,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:m("Image size"),onChange:r=>e({size:r}),min:t.minSize,max:t.maxSize,initialPosition:n?.size,value:n?.size}),a.jsx(Be,{__nextHasNoMarginBottom:!0,label:m("Link to user profile"),onChange:()=>e({isLink:!n.isLink}),checked:n.isLink}),n.isLink&&a.jsx(Be,{__nextHasNoMarginBottom:!0,label:m("Open in new tab"),onChange:r=>e({linkTarget:r?"_blank":"_self"}),checked:n.linkTarget==="_blank"}),o&&a.jsx(wGt,{value:n?.userId,onChange:r=>{e({userId:r})}})]})}),F5=({setAttributes:e,attributes:t,avatar:n,blockProps:o,isSelected:r})=>{const s=ql(t),i=wt(rv(n?.src,["s"]),{s:t?.size*2});return a.jsx("div",{...o,children:a.jsx(Ui,{size:{width:t.size,height:t.size},showHandle:r,onResizeStop:(c,l,u,d)=>{e({size:parseInt(t.size+(d.height||d.width),10)})},lockAspectRatio:!0,enable:{top:!1,right:!ft(),bottom:!0,left:ft()},minWidth:n.minSize,maxWidth:n.maxSize,children:a.jsx("img",{src:i,alt:n.alt,className:$("avatar","avatar-"+t.size,"photo","wp-block-avatar__image",s.className),style:s.style})})})},kGt=({attributes:e,context:t,setAttributes:n,isSelected:o})=>{const{commentId:r}=t,s=ze(),i=vGt({commentId:r});return a.jsxs(a.Fragment,{children:[a.jsx(X3e,{avatar:i,setAttributes:n,attributes:e,selectUser:!1}),e.isLink?a.jsx("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:c=>c.preventDefault(),children:a.jsx(F5,{attributes:e,avatar:i,blockProps:s,isSelected:o,setAttributes:n})}):a.jsx(F5,{attributes:e,avatar:i,blockProps:s,isSelected:o,setAttributes:n})]})},qGt=({attributes:e,context:t,setAttributes:n,isSelected:o})=>{const{postId:r,postType:s}=t,i=xGt({userId:e?.userId,postId:r,postType:s}),c=ze();return a.jsxs(a.Fragment,{children:[a.jsx(X3e,{selectUser:!0,attributes:e,avatar:i,setAttributes:n}),e.isLink?a.jsx("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:l=>l.preventDefault(),children:a.jsx(F5,{attributes:e,avatar:i,blockProps:c,isSelected:o,setAttributes:n})}):a.jsx(F5,{attributes:e,avatar:i,blockProps:c,isSelected:o,setAttributes:n})]})};function SGt(e){return e?.context?.commentId||e?.context?.commentId===null?a.jsx(kGt,{...e}):a.jsx(qGt,{...e})}const O9={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/avatar",title:"Avatar",category:"theme",description:"Add a user’s avatar.",textdomain:"default",attributes:{userId:{type:"number"},size:{type:"number",default:96},isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},usesContext:["postType","postId","commentId"],supports:{html:!1,align:!0,alignWide:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{__experimentalSkipSerialization:!0,radius:!0,width:!0,color:!0,style:!0,__experimentalDefaultControls:{radius:!0}},color:{text:!1,background:!1,__experimentalDuotone:"img"},interactivity:{clientNavigation:!0}},selectors:{border:".wp-block-avatar img"},editorStyle:"wp-block-avatar-editor",style:"wp-block-avatar"},{name:G3e}=O9,K3e={icon:Yce,edit:SGt},CGt=()=>Ee({name:G3e,metadata:O9,settings:K3e}),RGt=Object.freeze(Object.defineProperty({__proto__:null,init:CGt,metadata:O9,name:G3e,settings:K3e},Symbol.toStringTag,{value:"Module"})),WGt=[{attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{align:!0},save({attributes:e}){const{autoplay:t,caption:n,loop:o,preload:r,src:s}=e;return a.jsxs("figure",{children:[a.jsx("audio",{controls:"controls",src:s,autoPlay:t,loop:o,preload:r}),!Ae.isEmpty(n)&&a.jsx(Ae.Content,{tagName:"figcaption",value:n})]})}}],$5=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.78",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],Y3e="wp-embed",{lock:TGt,unlock:Pn}=ar("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/block-library"),EGt={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string",__experimentalRole:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",__experimentalRole:"content"},type:{type:"string",__experimentalRole:"content"},providerNameSlug:{type:"string",__experimentalRole:"content"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1,__experimentalRole:"content"},previewable:{type:"boolean",default:!0,__experimentalRole:"content"}},supports:{align:!0,spacing:{margin:!0},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},{name:Bb}=EGt,{kebabCase:BGt}=Pn(L0),NGt=e=>Xx(Bb)?.find(({name:t})=>t===e),LGt=(e,t=[])=>t.some(n=>e.match(n)),jGt=e=>Xx(Bb)?.find(({patterns:t})=>LGt(e,t)),Z3e=e=>e&&e.includes('class="wp-embedded-content"'),PGt=e=>{const t=e.url||e.thumbnail_url,n=a.jsx("p",{children:a.jsx("img",{src:t,alt:e.title,width:"100%"})});return No(n)},Vk=(e,t={})=>{const{preview:n,attributes:o={}}=e,{url:r,providerNameSlug:s,type:i,...c}=o;if(!r||!Dt(Bb))return;const l=jGt(r),u=s==="wordpress"||i===Y3e;if(!u&&l&&(l.attributes.providerNameSlug!==s||!s))return me(Bb,{url:r,...c,...l.attributes});const p=Xx(Bb)?.find(({name:f})=>f==="wordpress");if(!(!p||!n||!Z3e(n.html)||u))return me(Bb,{url:r,...p.attributes,...t})},IGt=e=>e?$5.some(({className:t})=>e.includes(t)):!1,x4=e=>{if(!e)return e;const t=$5.reduce((o,{className:r})=>(o.push(r),o),["wp-has-aspect-ratio"]);let n=e;for(const o of t)n=n.replace(o,"");return n.trim()};function Q3e(e,t,n=!0){if(!n)return x4(t);const o=document.implementation.createHTMLDocument("");o.body.innerHTML=e;const r=o.body.querySelector("iframe");if(r&&r.height&&r.width){const s=(r.width/r.height).toFixed(2);for(let i=0;i<$5.length;i++){const c=$5[i];if(s>=c.ratio)return s-c.ratio>.1?x4(t):$(x4(t),c.className,"wp-has-aspect-ratio")}}return t}function DGt(e,t){t(me("core/paragraph",{content:No(a.jsx("a",{href:e,children:e}))}))}const FGt=ps((e,t,n,o,r=!0)=>{if(!e)return{};const s={};let{type:i="rich"}=e;const{html:c,provider_name:l}=e,u=BGt((l||t).toLowerCase());return Z3e(c)&&(i=Y3e),(c||i==="photo")&&(s.type=i,s.providerNameSlug=u),IGt(n)||(s.className=Q3e(c,n,o&&r)),s}),$Gt=(e,t,n,o)=>{const{allowResponsive:r,className:s}=e;return{...e,...FGt(t,n,s,o,r)}};function J3e(e,t,n){return D(o=>o(ce).canUser("update",{kind:e,name:t,id:n}),[e,t,n])}function Hk(e={}){const t=O.useRef(e),n=O.useRef(!1),{getSettings:o}=D(F);O.useLayoutEffect(()=>{t.current=e}),O.useEffect(()=>{if(n.current||!t.current.url||!n1(t.current.url))return;const r=Pre(t.current.url);if(!r)return;const{url:s,allowedTypes:i,onChange:c,onError:l}=t.current,{mediaUpload:u}=o();n.current=!0,u({filesList:[r],allowedTypes:i,onFileChange:([d])=>{n1(d?.url)||(S8(s),c(d),n.current=!1)},onError:d=>{S8(s),l(d),n.current=!1}})},[o])}function A9(){return g0("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}}}function Cf({attributeKey:e="caption",attributes:t,setAttributes:n,isSelected:o,insertBlocksAfter:r,placeholder:s=m("Add caption"),label:i=m("Caption text"),showToolbarButton:c=!0,excludeElementClassName:l,className:u,readOnly:d,tagName:p="figcaption",addLabel:f=m("Add caption"),removeLabel:b=m("Remove caption"),icon:h=AYe,...g}){const z=t[e],y=t1(z),{PrivateRichText:x}=Pn(p0),v=x.isEmpty(z),M=x.isEmpty(y),[A,_]=O.useState(!v);O.useEffect(()=>{!v&&M&&_(!0)},[v,M]),O.useEffect(()=>{!o&&v&&_(!1)},[o,v]);const w=O.useCallback(k=>{k&&v&&k.focus()},[v]);return a.jsxs(a.Fragment,{children:[c&&a.jsx(Ie,{group:"block",children:a.jsx(bt,{onClick:()=>{_(!A),A&&z&&n({[e]:void 0})},icon:h,isPressed:A,label:A?b:f})}),A&&(!x.isEmpty(z)||o)&&a.jsx(x,{identifier:e,tagName:p,className:$(u,l?"":ro("caption")),ref:w,"aria-label":i,placeholder:s,value:z,onChange:k=>n({[e]:k}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>r(me(jn())),readOnly:d,...g})]})}const zC=["audio"];function VGt({attributes:e,className:t,setAttributes:n,onReplace:o,isSelected:r,insertBlocksAfter:s}){const{id:i,autoplay:c,loop:l,preload:u,src:d}=e,[p,f]=O.useState(e.blob);Hk({url:p,allowedTypes:zC,onChange:x,onError:z});function b(A){return _=>{n({[A]:_})}}function h(A){if(A!==d){const _=Vk({attributes:{url:A}});if(_!==void 0&&o){o(_);return}n({src:A,id:void 0,blob:void 0}),f()}}const{createErrorNotice:g}=ae(Ze);function z(A){g(A,{type:"snackbar"})}function y(A){return A?m("Autoplay may cause usability issues for some users."):null}function x(A){if(!A||!A.url){n({src:void 0,id:void 0,caption:void 0,blob:void 0}),f();return}if(n1(A.url)){f(A.url);return}n({blob:void 0,src:A.url,id:A.id,caption:A.caption}),f()}const v=$(t,{"is-transient":!!p}),M=ze({className:v});return!d&&!p?a.jsx("div",{...M,children:a.jsx(kl,{icon:a.jsx(b0,{icon:Fce}),onSelect:x,onSelectURL:h,accept:"audio/*",allowedTypes:zC,value:e,onError:z})}):a.jsxs(a.Fragment,{children:[r&&a.jsx(Ie,{group:"other",children:a.jsx(rc,{mediaId:i,mediaURL:d,allowedTypes:zC,accept:"audio/*",onSelect:x,onSelectURL:h,onError:z,onReset:()=>x(void 0)})}),a.jsx(Te,{children:a.jsxs(De,{title:m("Settings"),children:[a.jsx(Be,{__nextHasNoMarginBottom:!0,label:m("Autoplay"),onChange:b("autoplay"),checked:c,help:y}),a.jsx(Be,{__nextHasNoMarginBottom:!0,label:m("Loop"),onChange:b("loop"),checked:l}),a.jsx(i0,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:Oe("Preload","noun; Audio block parameter"),value:u||"",onChange:A=>n({preload:A||void 0}),options:[{value:"",label:m("Browser default")},{value:"auto",label:m("Auto")},{value:"metadata",label:m("Metadata")},{value:"none",label:Oe("None","Preload value")}]})]})}),a.jsxs("figure",{...M,children:[a.jsx(rr,{isDisabled:!r,children:a.jsx("audio",{controls:"controls",src:d??p})}),!!p&&a.jsx(u0,{}),a.jsx(Cf,{attributes:e,setAttributes:n,isSelected:r,insertBlocksAfter:s,label:m("Audio caption text"),showToolbarButton:r})]})]})}function HGt({attributes:e}){const{autoplay:t,caption:n,loop:o,preload:r,src:s}=e;return s&&a.jsxs("figure",{...ze.save(),children:[a.jsx("audio",{controls:"controls",src:s,autoPlay:t,loop:o,preload:r}),!Ae.isEmpty(n)&&a.jsx(Ae.Content,{tagName:"figcaption",value:n,className:ro("caption")})]})}const UGt={from:[{type:"files",isMatch(e){return e.length===1&&e[0].type.indexOf("audio/")===0},transform(e){const t=e[0];return me("core/audio",{blob:Qc(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:({named:{src:e,mp3:t,m4a:n,ogg:o,wav:r,wma:s}})=>e||t||n||o||r||s},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}}]},y9={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/audio",title:"Audio",category:"media",description:"Embed a simple audio player.",keywords:["music","sound","podcast","recording"],textdomain:"default",attributes:{blob:{type:"string",__experimentalRole:"local"},src:{type:"string",source:"attribute",selector:"audio",attribute:"src",__experimentalRole:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",__experimentalRole:"content"},id:{type:"number",__experimentalRole:"content"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-audio-editor",style:"wp-block-audio"},{name:eOe}=y9,tOe={icon:Fce,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"},viewportWidth:350},transforms:UGt,deprecated:WGt,edit:VGt,save:HGt},XGt=()=>Ee({name:eOe,metadata:y9,settings:tOe}),GGt=Object.freeze(Object.defineProperty({__proto__:null,init:XGt,metadata:y9,name:eOe,settings:tOe},Symbol.toStringTag,{value:"Module"})),{cleanEmptyObject:KGt}=Pn(p0);function Po(e){if(!e?.style?.typography?.fontFamily)return e;const{fontFamily:t,...n}=e.style.typography;return{...e,style:KGt({...e.style,typography:n}),fontFamily:t.split("|").pop()}}const Yf=e=>{const{borderRadius:t,...n}=e,o=[t,n.style?.border?.radius].find(r=>typeof r=="number"&&r!==0);return o?{...n,style:{...n.style,border:{...n.style?.border,radius:`${o}px`}}}:n};function YGt(e){if(!e.align)return e;const{align:t,...n}=e;return{...n,className:$(n.className,`align${e.align}`)}}const JT=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient);const{customTextColor:n,customBackgroundColor:o,customGradient:r,...s}=e;return{...s,style:t}},OC=e=>{const{color:t,textColor:n,...o}={...e,customTextColor:e.textColor&&e.textColor[0]==="#"?e.textColor:void 0,customBackgroundColor:e.color&&e.color[0]==="#"?e.color:void 0};return JT(o)},bc={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"}},ZGt={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){const{fontSize:n,linkTarget:o,rel:r,style:s,text:i,title:c,url:l,width:u}=e;if(!i)return null;const d=Os(e),p=os(e),f=hO(e),b=$("wp-block-button__link",p.className,d.className,{"no-border-radius":s?.border?.radius===0}),h={...d.style,...p.style,...f.style},g=$(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":n||s?.typography?.fontSize});return a.jsx("div",{...ze.save({className:g}),children:a.jsx(Ae.Content,{tagName:"a",className:b,href:l,title:c,style:h,value:i,target:o,rel:r})})}},QGt={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){const{fontSize:n,linkTarget:o,rel:r,style:s,text:i,title:c,url:l,width:u}=e;if(!i)return null;const d=Os(e),p=os(e),f=hO(e),b=$("wp-block-button__link",p.className,d.className,{"no-border-radius":s?.border?.radius===0}),h={...d.style,...p.style,...f.style},g=$(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":n||s?.typography?.fontSize});return a.jsx("div",{...ze.save({className:g}),children:a.jsx(Ae.Content,{tagName:"a",className:b,href:l,title:c,style:h,value:i,target:o,rel:r})})},migrate:Po,isEligible({style:e}){return e?.typography?.fontFamily}},JGt=[ZGt,QGt,{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...bc,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},isEligible({style:e}){return typeof e?.border?.radius=="number"},save({attributes:e,className:t}){const{fontSize:n,linkTarget:o,rel:r,style:s,text:i,title:c,url:l,width:u}=e;if(!i)return null;const d=s?.border?.radius,p=os(e),f=$("wp-block-button__link",p.className,{"no-border-radius":s?.border?.radius===0}),b={borderRadius:d||void 0,...p.style},h=$(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":n||s?.typography?.fontSize});return a.jsx("div",{...ze.save({className:h}),children:a.jsx(Ae.Content,{tagName:"a",className:f,href:l,title:c,style:b,value:i,target:o,rel:r})})},migrate:v0(Po,Yf)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...bc,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:n,linkTarget:o,rel:r,text:s,title:i,url:c,width:l}=e,u=os(e),d=$("wp-block-button__link",u.className,{"no-border-radius":n===0}),p={borderRadius:n?n+"px":void 0,...u.style},f=$(t,{[`has-custom-width wp-block-button__width-${l}`]:l});return a.jsx("div",{...ze.save({className:f}),children:a.jsx(Ae.Content,{tagName:"a",className:d,href:c,title:i,style:p,value:s,target:o,rel:r})})},migrate:v0(Po,Yf)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...bc,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:n,linkTarget:o,rel:r,text:s,title:i,url:c,width:l}=e,u=os(e),d=$("wp-block-button__link",u.className,{"no-border-radius":n===0}),p={borderRadius:n?n+"px":void 0,...u.style},f=$(t,{[`has-custom-width wp-block-button__width-${l}`]:l});return a.jsx("div",{...ze.save({className:f}),children:a.jsx(Ae.Content,{tagName:"a",className:d,href:c,title:i,style:p,value:s,target:o,rel:r})})},migrate:v0(Po,Yf)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...bc,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}},save({attributes:e}){const{borderRadius:t,linkTarget:n,rel:o,text:r,title:s,url:i}=e,c=$("wp-block-button__link",{"no-border-radius":t===0}),l={borderRadius:t?t+"px":void 0};return a.jsx(Ae.Content,{tagName:"a",className:c,href:i,title:s,style:l,value:r,target:n,rel:o})},migrate:Yf},{supports:{align:!0,alignWide:!1},attributes:{...bc,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customGradient:{type:"string"},gradient:{type:"string"}},isEligible:e=>!!e.customTextColor||!!e.customBackgroundColor||!!e.customGradient||!!e.align,migrate:v0(Yf,JT,YGt),save({attributes:e}){const{backgroundColor:t,borderRadius:n,customBackgroundColor:o,customTextColor:r,customGradient:s,linkTarget:i,gradient:c,rel:l,text:u,textColor:d,title:p,url:f}=e,b=lt("color",d),h=!s&<("background-color",t),g=lr(c),z=$("wp-block-button__link",{"has-text-color":d||r,[b]:b,"has-background":t||o||s||c,[h]:h,"no-border-radius":n===0,[g]:g}),y={background:s||void 0,backgroundColor:h||s||c?void 0:o,color:b?void 0:r,borderRadius:n?n+"px":void 0};return a.jsx("div",{children:a.jsx(Ae.Content,{tagName:"a",className:z,href:f,title:p,style:y,value:u,target:i,rel:l})})}},{attributes:{...bc,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"}},isEligible(e){return e.className&&e.className.includes("is-style-squared")},migrate(e){let t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),Yf(JT({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,customTextColor:o,linkTarget:r,rel:s,text:i,textColor:c,title:l,url:u}=e,d=lt("color",c),p=lt("background-color",t),f=$("wp-block-button__link",{"has-text-color":c||o,[d]:d,"has-background":t||n,[p]:p}),b={backgroundColor:p?void 0:n,color:d?void 0:o};return a.jsx("div",{children:a.jsx(Ae.Content,{tagName:"a",className:f,href:u,title:l,style:b,value:i,target:r,rel:s})})}},{attributes:{...bc,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:OC,save({attributes:e}){const{url:t,text:n,title:o,backgroundColor:r,textColor:s,customBackgroundColor:i,customTextColor:c}=e,l=lt("color",s),u=lt("background-color",r),d=$("wp-block-button__link",{"has-text-color":s||c,[l]:l,"has-background":r||i,[u]:u}),p={backgroundColor:u?void 0:i,color:l?void 0:c};return a.jsx("div",{children:a.jsx(Ae.Content,{tagName:"a",className:d,href:t,title:o,style:p,value:n})})}},{attributes:{...bc,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:n,title:o,align:r,color:s,textColor:i}=e,c={backgroundColor:s,color:i};return a.jsx("div",{className:`align${r}`,children:a.jsx(Ae.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:o,style:c,value:n})})},migrate:OC},{attributes:{...bc,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:n,title:o,align:r,color:s,textColor:i}=e;return a.jsx("div",{className:`align${r}`,style:{backgroundColor:s},children:a.jsx(Ae.Content,{tagName:"a",href:t,title:o,style:{color:i},value:n})})},migrate:OC}],AC="noreferrer noopener",nOe="_blank",_4="nofollow";function eKt({rel:e="",url:t="",opensInNewTab:n,nofollow:o}){let r,s=e;if(n)r=nOe,s=s?.includes(AC)?s:s+` ${AC}`;else{const i=new RegExp(`\\b${AC}\\s*`,"g");s=s?.replace(i,"").trim()}if(o)s=s?.includes(_4)?s:s+` ${_4}`;else{const i=new RegExp(`\\b${_4}\\s*`,"g");s=s?.replace(i,"").trim()}return{url:sf(t),linkTarget:r,rel:s||void 0}}function eE(e){return e.toString().replace(/<\/?a[^>]*>/g,"")}const tKt=[...Va.DEFAULT_LINK_SETTINGS,{id:"nofollow",title:m("Mark as nofollow")}];function nKt(e){const{replaceBlocks:t,selectionChange:n}=ae(F),{getBlock:o,getBlockRootClientId:r,getBlockIndex:s}=D(F),i=O.useRef(e);return i.current=e,Et(c=>{function l(u){if(u.defaultPrevented||u.keyCode!==y1)return;const{content:d,clientId:p}=i.current;if(d.length)return;u.preventDefault();const f=o(r(p)),b=s(p),h=pn({...f,innerBlocks:f.innerBlocks.slice(0,b)}),g=me(jn()),z=f.innerBlocks.slice(b+1),y=z.length?[pn({...f,innerBlocks:z})]:[];t(f.clientId,[h,g,...y],1),n(g.clientId)}return c.addEventListener("keydown",l),()=>{c.removeEventListener("keydown",l)}},[])}function oKt({selectedWidth:e,setAttributes:t}){function n(o){t({width:e===o?void 0:o})}return a.jsx(De,{title:m("Settings"),children:a.jsx(Bh,{"aria-label":m("Button width"),children:[25,50,75,100].map(o=>a.jsxs(fe,{size:"small",variant:o===e?"primary":void 0,onClick:()=>n(o),children:[o,"%"]},o))})})}function rKt(e){const{attributes:t,setAttributes:n,className:o,isSelected:r,onReplace:s,mergeBlocks:i,clientId:c,context:l}=e,{tagName:u,textAlign:d,linkTarget:p,placeholder:f,rel:b,style:h,text:g,url:z,width:y,metadata:x}=t,v=u||"a";function M(ee){Fs.primary(ee,"k")?U(ee):Fs.primaryShift(ee,"k")&&(X(),T.current?.focus())}const[A,_]=O.useState(null),w=ql(t),k=bO(t),q=hO(t),S=rm(t),C=O.useRef(),T=O.useRef(),W=ze({ref:Gt([_,C]),onKeyDown:M}),B=oo(),[N,E]=O.useState(!1),L=!!z,I=p===nOe,P=!!b?.includes(_4),H=v==="a";function U(ee){ee.preventDefault(),E(!0)}function X(){n({url:void 0,linkTarget:void 0,rel:void 0}),E(!1)}O.useEffect(()=>{r||E(!1)},[r]);const Z=O.useMemo(()=>({url:z,opensInNewTab:I,nofollow:P}),[z,I,P]),ne=nKt({content:g,clientId:c}),oe=Gt([ne,T]),{lockUrlControls:Y=!1}=D(ee=>{if(!r)return{};const ie=Pn(ee($e)).getBlockBindingsSource(x?.bindings?.url?.source);return{lockUrlControls:!!x?.bindings?.url&&!ie?.canUserEditValue?.({select:ee,context:l,args:x?.bindings?.url?.args})}},[l,r,x?.bindings?.url]);return a.jsxs(a.Fragment,{children:[a.jsx("div",{...W,className:$(W.className,{[`has-custom-width wp-block-button__width-${y}`]:y,"has-custom-font-size":W.style.fontSize}),children:a.jsx(Ae,{ref:oe,"aria-label":m("Button text"),placeholder:f||m("Add text…"),value:g,onChange:ee=>n({text:eE(ee)}),withoutInteractiveFormatting:!0,className:$(o,"wp-block-button__link",k.className,w.className,{[`has-text-align-${d}`]:d,"no-border-radius":h?.border?.radius===0},ro("button")),style:{...w.style,...k.style,...q.style,...S.style},onReplace:s,onMerge:i,identifier:"text"})}),a.jsxs(Ie,{group:"block",children:[B==="default"&&a.jsx(gn,{value:d,onChange:ee=>{n({textAlign:ee})}}),!L&&H&&!Y&&a.jsx(bt,{name:"link",icon:Qa,title:m("Link"),shortcut:Jo.primary("k"),onClick:U}),L&&H&&!Y&&a.jsx(bt,{name:"link",icon:Xu,title:m("Unlink"),shortcut:Jo.primaryShift("k"),onClick:X,isActive:!0})]}),H&&r&&(N||L)&&!Y&&a.jsx(Mn,{placement:"bottom",onClose:()=>{E(!1),T.current?.focus()},anchor:A,focusOnMount:N?"firstElement":!1,__unstableSlotName:"__unstable-block-tools-after",shift:!0,children:a.jsx(Va,{value:Z,onChange:({url:ee,opensInNewTab:ie,nofollow:se})=>n(eKt({rel:b,url:ee,opensInNewTab:ie,nofollow:se})),onRemove:()=>{X(),T.current?.focus()},forceIsEditingLink:N,settings:tKt})}),a.jsx(Te,{children:a.jsx(oKt,{selectedWidth:y,setAttributes:n})}),a.jsx(Te,{group:"advanced",children:H&&a.jsx($t,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:m("Link rel"),value:b||"",onChange:ee=>n({rel:ee})})})]})}function sKt({attributes:e,className:t}){const{tagName:n,type:o,textAlign:r,fontSize:s,linkTarget:i,rel:c,style:l,text:u,title:d,url:p,width:f}=e,b=n||"a",h=b==="button",g=o||"button",z=Os(e),y=os(e),x=hO(e),v=rm(e),M=$("wp-block-button__link",y.className,z.className,{[`has-text-align-${r}`]:r,"no-border-radius":l?.border?.radius===0},ro("button")),A={...z.style,...y.style,...x.style,...v.style},_=$(t,{[`has-custom-width wp-block-button__width-${f}`]:f,"has-custom-font-size":s||l?.typography?.fontSize});return a.jsx("div",{...ze.save({className:_}),children:a.jsx(Ae.Content,{tagName:b,type:h?g:null,className:M,href:h?null:p,title:d,style:A,value:u,target:h?null:i,rel:h?null:c})})}const v9={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/button",title:"Button",category:"design",parent:["core/buttons"],description:"Prompt visitors to take action with a button-style link.",keywords:["link"],textdomain:"default",attributes:{tagName:{type:"string",enum:["a","button"],default:"a"},type:{type:"string",default:"button"},textAlign:{type:"string"},url:{type:"string",source:"attribute",selector:"a",attribute:"href",__experimentalRole:"content"},title:{type:"string",source:"attribute",selector:"a,button",attribute:"title",__experimentalRole:"content"},text:{type:"rich-text",source:"rich-text",selector:"a,button",__experimentalRole:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",__experimentalRole:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,splitting:!0,align:!1,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:{__experimentalSkipSerialization:!0},spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-button .wp-block-button__link",interactivity:{clientNavigation:!0}},styles:[{name:"fill",label:"Fill",isDefault:!0},{name:"outline",label:"Outline"}],editorStyle:"wp-block-button-editor",style:"wp-block-button"},{name:oOe}=v9,rOe={icon:Hce,example:{attributes:{className:"is-style-fill",text:m("Call to Action")}},edit:rKt,save:sKt,deprecated:JGt,merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t})},iKt=()=>Ee({name:oOe,metadata:v9,settings:rOe}),aKt=Object.freeze(Object.defineProperty({__proto__:null,init:iKt,metadata:v9,name:oOe,settings:rOe},Symbol.toStringTag,{value:"Module"})),AQ=e=>{if(e.layout)return e;const{contentJustification:t,orientation:n,...o}=e;return(t||n)&&Object.assign(o,{layout:{type:"flex",...t&&{justifyContent:t},...n&&{orientation:n}}}),o},cKt=[{attributes:{contentJustification:{type:"string"},orientation:{type:"string",default:"horizontal"}},supports:{anchor:!0,align:["wide","full"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}}},isEligible:({contentJustification:e,orientation:t})=>!!e||!!t,migrate:AQ,save({attributes:{contentJustification:e,orientation:t}}){return a.jsx("div",{...ze.save({className:$({[`is-content-justification-${e}`]:e,"is-vertical":t==="vertical"})}),children:a.jsx(ht.Content,{})})}},{supports:{align:["center","left","right"],anchor:!0},save(){return a.jsx("div",{children:a.jsx(ht.Content,{})})},isEligible({align:e}){return e&&["center","left","right"].includes(e)},migrate(e){return AQ({...e,align:void 0,contentJustification:e.align})}}];function i2(e,t,n){if(!e)return;const{supports:o}=Dt(t),r=["core/paragraph","core/heading","core/image","core/button"],s=[];if(r.includes(t)&&n&&s.push("id","bindings"),o.renaming!==!1&&s.push("name"),!s.length)return;const i=Object.entries(e).reduce((c,[l,u])=>(s.includes(l)&&(c[l]=l==="bindings"?n(u):u),c),{});return Object.keys(i).length?i:void 0}const lKt={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>me("core/buttons",{},e.map(t=>me("core/button",t)))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>me("core/buttons",{},e.map(t=>{const{content:n,metadata:o}=t,r=_c(document,n),s=r.innerText||"",c=r.querySelector("a")?.getAttribute("href");return me("core/button",{text:s,url:c,metadata:i2(o,"core/button",({content:l})=>({text:l}))})})),isMatch:e=>e.every(t=>{const n=_c(document,t.content),o=n.innerText||"",r=n.querySelectorAll("a");return o.length<=30&&r.length<=1})}]},uKt={name:"core/button",attributesToCopy:["backgroundColor","border","className","fontFamily","fontSize","gradient","style","textColor","width"]};function dKt({attributes:e,className:t}){var n;const{fontSize:o,layout:r,style:s}=e,i=ze({className:$(t,{"has-custom-font-size":o||s?.typography?.fontSize})}),{hasButtonVariations:c}=D(u=>({hasButtonVariations:u($e).getBlockVariations("core/button","inserter").length>0}),[]),l=it(i,{defaultBlock:uKt,directInsert:!c,template:[["core/button"]],templateInsertUpdatesSelection:!0,orientation:(n=r?.orientation)!==null&&n!==void 0?n:"horizontal"});return a.jsx("div",{...l})}function pKt({attributes:e,className:t}){const{fontSize:n,style:o}=e,r=ze.save({className:$(t,{"has-custom-font-size":n||o?.typography?.fontSize})}),s=it.save(r);return a.jsx("div",{...s})}const x9={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/buttons",title:"Buttons",category:"design",allowedBlocks:["core/button"],description:"Prompt visitors to take action with a group of button-style links.",keywords:["link"],textdomain:"default",supports:{anchor:!0,align:["wide","full"],html:!1,__experimentalExposeControlsToChildren:!0,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},spacing:{blockGap:!0,padding:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"},{name:sOe}=x9,iOe={icon:OYe,example:{attributes:{layout:{type:"flex",justifyContent:"center"}},innerBlocks:[{name:"core/button",attributes:{text:m("Find out more")}},{name:"core/button",attributes:{text:m("Contact us")}}]},deprecated:cKt,transforms:lKt,edit:dKt,save:pKt},fKt=()=>Ee({name:sOe,metadata:x9,settings:iOe}),bKt=Object.freeze(Object.defineProperty({__proto__:null,init:fKt,metadata:x9,name:sOe,settings:iOe},Symbol.toStringTag,{value:"Module"})),hKt=ps(e=>{if(!e)return{};const t=new Date(e);return{year:t.getFullYear(),month:t.getMonth()+1}});function mKt({attributes:e}){const t=ze(),{date:n,hasPosts:o,hasPostsResolved:r}=D(s=>{const{getEntityRecords:i,hasFinishedResolution:c}=s(ce),l={status:"publish",per_page:1},u=i("postType","post",l),d=c("getEntityRecords",["postType","post",l]);let p;const f=s("core/editor");return f&&f.getEditedPostAttribute("type")==="post"&&(p=f.getEditedPostAttribute("date")),{date:p,hasPostsResolved:d,hasPosts:d&&u?.length===1}},[]);return o?a.jsx("div",{...t,children:a.jsx(rr,{children:a.jsx(OO,{block:"core/calendar",attributes:{...e,...hKt(n)}})})}):a.jsx("div",{...t,children:a.jsx(D0,{icon:Uce,label:m("Calendar"),children:r?m("No published posts found."):a.jsx(u0,{})})})}const MKt={from:[{type:"block",blocks:["core/archives"],transform:()=>me("core/calendar")}],to:[{type:"block",blocks:["core/archives"],transform:()=>me("core/archives")}]},_9={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/calendar",title:"Calendar",category:"widgets",description:"A calendar of your site’s posts.",keywords:["posts","archive"],textdomain:"default",attributes:{month:{type:"integer"},year:{type:"integer"}},supports:{align:!0,color:{link:!0,__experimentalSkipSerialization:["text","background"],__experimentalDefaultControls:{background:!0,text:!0},__experimentalSelector:"table, th"},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-calendar"},{name:aOe}=_9,cOe={icon:Uce,example:{},edit:mKt,transforms:MKt},gKt=()=>Ee({name:aOe,metadata:_9,settings:cOe}),zKt=Object.freeze(Object.defineProperty({__proto__:null,init:gKt,metadata:_9,name:aOe,settings:cOe},Symbol.toStringTag,{value:"Module"}));function lOe({attributes:{displayAsDropdown:e,showHierarchy:t,showPostCounts:n,showOnlyTopLevel:o,showEmpty:r,label:s,showLabel:i},setAttributes:c,className:l}){const u=He(lOe,"blocks-category-select"),d={per_page:-1,hide_empty:!r,context:"view"};o&&(d.parent=0);const{records:p,isResolving:f}=Gb("taxonomy","category",d),b=w=>p?.length?w===null?p:p.filter(({parent:k})=>k===w):[],h=w=>k=>c({[w]:k}),g=w=>w?kt(w).trim():m("(Untitled)"),z=()=>b(t?0:null).map(q=>y(q)),y=w=>{const k=b(w.id),{id:q,link:S,count:C,name:T}=w;return a.jsxs("li",{className:`cat-item cat-item-${q}`,children:[a.jsx("a",{href:S,target:"_blank",rel:"noreferrer noopener",children:g(T)}),n&&` (${C})`,t&&!!k.length&&a.jsx("ul",{className:"children",children:k.map(W=>y(W))})]},q)},x=()=>{const k=b(t?0:null);return a.jsxs(a.Fragment,{children:[i?a.jsx(Ae,{className:"wp-block-categories__label","aria-label":m("Label text"),placeholder:m("Categories"),withoutInteractiveFormatting:!0,value:s,onChange:q=>c({label:q})}):a.jsx(Kt,{as:"label",htmlFor:u,children:s||m("Categories")}),a.jsxs("select",{id:u,children:[a.jsx("option",{children:m("Select Category")}),k.map(q=>v(q,0))]})]})},v=(w,k)=>{const{id:q,count:S,name:C}=w,T=b(q);return[a.jsxs("option",{className:`level-${k}`,children:[Array.from({length:k*3}).map(()=>" "),g(C),n&&` (${S})`]},q),t&&!!T.length&&T.map(W=>v(W,k+1))]},M=p?.length&&!e&&!f?"ul":"div",A=$(l,{"wp-block-categories-list":!!p?.length&&!e&&!f,"wp-block-categories-dropdown":!!p?.length&&e&&!f}),_=ze({className:A});return a.jsxs(M,{..._,children:[a.jsx(Te,{children:a.jsxs(De,{title:m("Settings"),children:[a.jsx(Be,{__nextHasNoMarginBottom:!0,label:m("Display as dropdown"),checked:e,onChange:h("displayAsDropdown")}),e&&a.jsx(Be,{__nextHasNoMarginBottom:!0,className:"wp-block-categories__indentation",label:m("Show label"),checked:i,onChange:h("showLabel")}),a.jsx(Be,{__nextHasNoMarginBottom:!0,label:m("Show post counts"),checked:n,onChange:h("showPostCounts")}),a.jsx(Be,{__nextHasNoMarginBottom:!0,label:m("Show only top level categories"),checked:o,onChange:h("showOnlyTopLevel")}),a.jsx(Be,{__nextHasNoMarginBottom:!0,label:m("Show empty categories"),checked:r,onChange:h("showEmpty")}),!o&&a.jsx(Be,{__nextHasNoMarginBottom:!0,label:m("Show hierarchy"),checked:t,onChange:h("showHierarchy")})]})}),f&&a.jsx(D0,{icon:ble,label:m("Categories"),children:a.jsx(u0,{})}),!f&&p?.length===0&&a.jsx("p",{children:m("Your site does not have any posts, so there is nothing to display here at the moment.")}),!f&&p?.length>0&&(e?x():z())]})}const w9={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/categories",title:"Categories List",category:"widgets",description:"Display a list of all categories.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1},showOnlyTopLevel:{type:"boolean",default:!1},showEmpty:{type:"boolean",default:!1},label:{type:"string",__experimentalRole:"content"},showLabel:{type:"boolean",default:!0}},usesContext:["enhancedPagination"],supports:{align:!0,html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},editorStyle:"wp-block-categories-editor",style:"wp-block-categories"},{name:uOe}=w9,dOe={icon:d7,example:{},edit:lOe},OKt=()=>Ee({name:uOe,metadata:w9,settings:dOe}),AKt=Object.freeze(Object.defineProperty({__proto__:null,init:OKt,metadata:w9,name:uOe,settings:dOe},Symbol.toStringTag,{value:"Module"})),yKt=({clientId:e})=>{const{replaceBlocks:t}=ae(F),n=D(o=>o(F).getBlock(e),[e]);return a.jsx(bt,{onClick:()=>t(n.clientId,e3({HTML:Pr(n)})),children:m("Convert to blocks")})};function vKt({onClick:e,isModalFullScreen:t}){return g0("small","<")?null:a.jsx(fe,{__next40pxDefaultSize:!1,onClick:e,icon:Vv,isPressed:t,label:m(t?"Exit fullscreen":"Enter fullscreen")})}function xKt(e){const t=D(n=>n(F).getSettings().styles);return O.useEffect(()=>{const{baseURL:n,suffix:o,settings:r}=window.wpEditorL10n.tinymce;return window.tinymce.EditorManager.overrideDefaults({base_url:n,suffix:o}),window.wp.oldEditor.initialize(e.id,{tinymce:{...r,setup(s){s.on("init",()=>{const i=s.getDoc();t.forEach(({css:c})=>{const l=i.createElement("style");l.innerHTML=c,i.head.appendChild(l)})})}}}),()=>{window.wp.oldEditor.remove(e.id)}},[]),a.jsx("textarea",{...e})}function _Kt(e){const{clientId:t,attributes:{content:n},setAttributes:o,onReplace:r}=e,[s,i]=O.useState(!1),[c,l]=O.useState(!1),u=`editor-${t}`,d=()=>n?i(!1):r([]);return a.jsxs(a.Fragment,{children:[a.jsx(Ie,{children:a.jsx(c0,{children:a.jsx(bt,{onClick:()=>i(!0),children:m("Edit")})})}),n&&a.jsx(C1,{children:n}),(s||!n)&&a.jsxs(fn,{title:m("Classic Editor"),onRequestClose:d,shouldCloseOnClickOutside:!1,overlayClassName:"block-editor-freeform-modal",isFullScreen:c,className:"block-editor-freeform-modal__content",headerActions:a.jsx(vKt,{onClick:()=>l(!c),isModalFullScreen:c}),children:[a.jsx(xKt,{id:u,defaultValue:n}),a.jsxs(Q0,{className:"block-editor-freeform-modal__actions",justify:"flex-end",expanded:!1,children:[a.jsx(Ht,{children:a.jsx(fe,{__next40pxDefaultSize:!1,variant:"tertiary",onClick:d,children:m("Cancel")})}),a.jsx(Ht,{children:a.jsx(fe,{__next40pxDefaultSize:!1,variant:"primary",onClick:()=>{o({content:window.wp.oldEditor.getContent(u)}),i(!1)},children:m("Save")})})]})]})]})}const{wp:yQ}=window;function wKt(e){const t=e.getBody();return t.childNodes.length>1?!1:t.childNodes.length===0?!0:t.childNodes[0].childNodes.length>1?!1:/^\n?$/.test(t.innerText||t.textContent)}function kKt(e){const{clientId:t}=e,n=D(i=>i(F).canRemoveBlock(t),[t]),[o,r]=O.useState(!1),s=Et(i=>{r(i.ownerDocument!==document)},[]);return a.jsxs(a.Fragment,{children:[n&&a.jsx(Ie,{children:a.jsx(c0,{children:a.jsx(yKt,{clientId:t})})}),a.jsx("div",{...ze({ref:s}),children:o?a.jsx(_Kt,{...e}):a.jsx(qKt,{...e})})]})}function qKt({clientId:e,attributes:{content:t},setAttributes:n,onReplace:o}){const{getMultiSelectedBlockClientIds:r}=D(F),s=O.useRef(!1);O.useEffect(()=>{if(!s.current)return;const l=window.tinymce.get(`editor-${e}`);if(!l)return;l.getContent()!==t&&l.setContent(t||"")},[e,t]),O.useEffect(()=>{const{baseURL:l,suffix:u}=window.wpEditorL10n.tinymce;s.current=!0,window.tinymce.EditorManager.overrideDefaults({base_url:l,suffix:u});function d(b){let h;t&&b.on("loadContent",()=>b.setContent(t)),b.on("blur",()=>{h=b.selection.getBookmark(2,!0);const z=document.querySelector(".interface-interface-skeleton__content"),y=z.scrollTop;return r()?.length||n({content:b.getContent()}),b.once("focus",()=>{h&&(b.selection.moveToBookmark(h),z.scrollTop!==y&&(z.scrollTop=y))}),!1}),b.on("mousedown touchstart",()=>{h=null});const g=jr(()=>{const z=b.getContent();z!==b._lastChange&&(b._lastChange=z,n({content:z}))},250);b.on("Paste Change input Undo Redo",g),b.on("remove",g.cancel),b.on("keydown",z=>{Fs.primary(z,"z")&&z.stopPropagation(),(z.keyCode===Si||z.keyCode===_a)&&wKt(b)&&(o([]),z.preventDefault(),z.stopImmediatePropagation());const{altKey:y}=z;y&&z.keyCode===V6e&&z.stopPropagation()}),b.on("init",()=>{const z=b.getBody();z.ownerDocument.activeElement===z&&(z.blur(),b.focus())})}function p(){const{settings:b}=window.wpEditorL10n.tinymce;yQ.oldEditor.initialize(`editor-${e}`,{tinymce:{...b,inline:!0,content_css:!1,fixed_toolbar_container:`#toolbar-${e}`,setup:d}})}function f(){document.readyState==="complete"&&p()}return document.readyState==="complete"?p():document.addEventListener("readystatechange",f),()=>{document.removeEventListener("readystatechange",f),yQ.oldEditor.remove(`editor-${e}`),s.current=!1}},[]);function i(){const l=window.tinymce.get(`editor-${e}`);l&&l.focus()}function c(l){l.stopPropagation(),l.nativeEvent.stopImmediatePropagation()}return a.jsxs(a.Fragment,{children:[a.jsx("div",{id:`toolbar-${e}`,className:"block-library-classic__toolbar",onClick:i,"data-placeholder":m("Classic"),onKeyDown:c},"toolbar"),a.jsx("div",{id:`editor-${e}`,className:"wp-block-freeform block-library-rich-text__tinymce"},"editor")]})}function SKt({attributes:e}){const{content:t}=e;return a.jsx(C1,{children:t})}const k9={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/freeform",title:"Classic",category:"text",description:"Use the classic WordPress editor.",textdomain:"default",attributes:{content:{type:"string",source:"raw"}},supports:{className:!1,customClassName:!1,reusable:!1},editorStyle:"wp-block-freeform-editor"},{name:V5}=k9,pOe={icon:yYe,edit:kKt,save:SKt},CKt=()=>Ee({name:V5,metadata:k9,settings:pOe}),RKt=Object.freeze(Object.defineProperty({__proto__:null,init:CKt,metadata:k9,name:V5,settings:pOe},Symbol.toStringTag,{value:"Module"}));function WKt({attributes:e,setAttributes:t,onRemove:n,insertBlocksAfter:o,mergeBlocks:r}){const s=ze();return a.jsx("pre",{...s,children:a.jsx(Ae,{tagName:"code",identifier:"content",value:e.content,onChange:i=>t({content:i}),onRemove:n,onMerge:r,placeholder:m("Write code…"),"aria-label":m("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>o(me(jn()))})})}function TKt(e){return Jl(EKt,BKt)(e||"")}function EKt(e){return e.replace(/\[/g,"[")}function BKt(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}function NKt({attributes:e}){return a.jsx("pre",{...ze.save(),children:a.jsx(Ae.Content,{tagName:"code",value:TKt(typeof e.content=="string"?e.content:e.content.toHTMLString({preserveWhiteSpace:!0}))})})}const LKt={from:[{type:"enter",regExp:/^```$/,transform:()=>me("core/code")},{type:"block",blocks:["core/paragraph"],transform:({content:e,metadata:t})=>me("core/code",{content:e,metadata:i2(t,"core/code")})},{type:"block",blocks:["core/html"],transform:({content:e,metadata:t})=>me("core/code",{content:K1({value:m0({text:e})}),metadata:i2(t,"core/code")})},{type:"raw",isMatch:e=>e.nodeName==="PRE"&&e.children.length===1&&e.firstChild.nodeName==="CODE",schema:{pre:{children:{code:{children:{"#text":{}}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:({content:e,metadata:t})=>me("core/paragraph",{content:e,metadata:i2(t,"core/paragraph")})}]},q9={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/code",title:"Code",category:"text",description:"Display code snippets that respect your spacing and tabs.",textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"code",__unstablePreserveWhiteSpace:!0}},supports:{align:["wide"],anchor:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{width:!0,color:!0}},color:{text:!0,background:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-code"},{name:fOe}=q9,bOe={icon:p7,example:{attributes:{content:m(`// A “block” is the abstract term used + .is-root-container.alignfull:where(.is-layout-flow) > :not(.alignleft):not(.alignright) { max-width: none;}`,oe=O.useRef(),Y=LEt();r=Gt([oe,r,d==="post-only"?Y:null,cXt({isEnabled:d==="template-locked"}),rXt({isEnabled:d==="template-locked"})]);const ee=k&&!u?{scale:"default",frameSize:"48px"}:{},ie=x===th,se=[th,vo,ul].includes(x)&&!v&&!l&&!k,be=!n||["Tablet","Mobile"].includes(g),ye=O.useMemo(()=>[...t??[],{css:`.is-root-container{display:flow-root;${se?"min-height:0!important;":""}}`}],[t,se]);return a.jsx("div",{className:$("editor-visual-editor","edit-post-visual-editor",s,{"has-padding":z||se,"is-resizable":se,"is-iframed":be}),children:a.jsx(P3e,{enableResizing:se,height:c.height&&!ie?c.height:"100%",children:a.jsxs(aXt,{shouldIframe:be,contentRef:r,styles:ye,height:"100%",iframeProps:{...o,...ee,style:{...o?.style,...q}},children:[w&&!_&&d==="post-only"&&!y&&a.jsxs(a.Fragment,{children:[a.jsx(gy,{selector:".editor-visual-editor__post-title-wrapper",layout:C}),a.jsx(gy,{selector:".block-editor-block-list__layout.is-root-container",layout:U}),N&&a.jsx(gy,{css:ne}),I&&a.jsx(gy,{layout:P,css:I})]}),d==="post-only"&&!y&&a.jsx("div",{className:$("editor-visual-editor__post-title-wrapper","edit-post-visual-editor__post-title-wrapper",{"has-global-padding":A}),contentEditable:!1,ref:X,style:{marginTop:"4rem"},children:a.jsx(C3e,{ref:Z})}),a.jsxs(uO,{blockName:b,uniqueId:h,children:[a.jsx(fk,{className:$("is-"+g.toLowerCase()+"-preview",d!=="post-only"||y?"wp-site-blocks":`${L} wp-block-post-content`),layout:H,dropZoneElement:n?oe.current:oe.current?.parentNode,__unstableDisableDropZone:d==="template-locked"}),d==="template-locked"&&a.jsx(tXt,{contentRef:oe})]}),se&&i]})})})}const dXt={header:m("Editor top bar"),body:m("Editor content"),sidebar:m("Editor settings"),actions:m("Editor publish"),footer:m("Editor footer")};function pXt({className:e,enableRegionNavigation:t,styles:n,children:o,forceIsDirty:r,contentRef:s,disableIframe:i,autoFocus:c,customSaveButton:l,customSavePanel:u,forceDisableBlockTools:d,title:p,icon:f,iframeProps:b}){const{mode:h,isRichEditingEnabled:g,isInserterOpened:z,isListViewOpened:y,isDistractionFree:x,isPreviewMode:v,previousShortcut:M,nextShortcut:A,showBlockBreadcrumbs:_,documentLabel:w,blockEditorMode:k}=D(B=>{const{get:N}=B(Qe),{getEditorSettings:E,getPostTypeLabel:L}=B(ue),I=E(),P=L();return{mode:B(ue).getEditorMode(),isRichEditingEnabled:I.richEditingEnabled,isInserterOpened:B(ue).isInserterOpened(),isListViewOpened:B(ue).isListViewOpened(),isDistractionFree:N("core","distractionFree"),isPreviewMode:I.__unstableIsPreviewMode,previousShortcut:B(Br).getAllShortcutKeyCombinations("core/editor/previous-region"),nextShortcut:B(Br).getAllShortcutKeyCombinations("core/editor/next-region"),showBlockBreadcrumbs:N("core","showBlockBreadcrumbs"),documentLabel:P||Oe("Document","noun"),blockEditorMode:B(F).__unstableGetEditorMode()}},[]),q=g0("medium"),S=m(y?"Document Overview":"Block Library"),[C,T]=O.useState(!1),W=O.useCallback(B=>{typeof C=="function"&&C(B),T(!1)},[C]);return a.jsx(Xze,{enableRegionNavigation:t,isDistractionFree:x,className:$("editor-editor-interface",e,{"is-entity-save-view-open":!!C,"is-distraction-free":x&&!v}),labels:{...dXt,secondarySidebar:S},header:!v&&a.jsx(UUt,{forceIsDirty:r,setEntitiesSavedStatesCallback:T,customSaveButton:l,forceDisableBlockTools:d,title:p,icon:f}),editorNotices:a.jsx(GZ,{}),secondarySidebar:!v&&h==="visual"&&(z&&a.jsx(GUt,{})||y&&a.jsx(ZUt,{})),sidebar:!v&&!x&&a.jsx(Dk.Slot,{scope:"core"}),content:a.jsxs(a.Fragment,{children:[!x&&!v&&a.jsx(GZ,{}),a.jsx(j3e.Slot,{children:([B])=>B||a.jsxs(a.Fragment,{children:[!v&&(h==="text"||!g)&&a.jsx(eXt,{autoFocus:c}),!v&&!q&&h==="visual"&&a.jsx(CP,{hideDragHandle:!0}),(v||g&&h==="visual")&&a.jsx(uXt,{styles:n,contentRef:s,disableIframe:i,autoFocus:c,iframeProps:b}),o]})})]}),footer:!v&&!x&&q&&_&&g&&k!=="zoom-out"&&h==="visual"&&a.jsx(ZAt,{rootLabelText:w}),actions:v?void 0:u||a.jsx(JUt,{closeEntitiesSavedStates:W,isEntitiesSavedStatesOpen:C,setEntitiesSavedStatesCallback:T,forceIsDirtyPublishPanel:r}),shortcuts:{previous:M,next:A}})}const{OverridesPanel:fXt}=gt(Gi);function bXt(){return D(t=>t(ue).getCurrentPostType()==="wp_block",[])?a.jsx(fXt,{}):null}function I3e({postType:e,onActionPerformed:t,context:n}){const{defaultActions:o}=D(s=>{const{getEntityActions:i}=gt(s(ue));return{defaultActions:i("postType",e)}},[e]),{registerPostTypeActions:r}=gt(ae(ue));return O.useEffect(()=>{r(e)},[r,e]),O.useMemo(()=>{const s=o.filter(i=>i.context?i.context===n:!0);if(t)for(let i=0;i{c(l,{...u,onActionPerformed:d=>{u?.onActionPerformed&&u.onActionPerformed(d),t(s[i].id,d)}})}}}if(s[i].RenderModal){const c=s[i].RenderModal;s[i]={...s[i],RenderModal:l=>a.jsx(c,{...l,onActionPerformed:u=>{l.onActionPerformed&&l.onActionPerformed(u),t(s[i].id,u)}})}}}return s},[o,t,n])}const{DropdownMenuV2:D5,kebabCase:hXt}=gt(L0);function mXt({postType:e,postId:t,onActionPerformed:n}){const[o,r]=O.useState(!1),{item:s,permissions:i}=D(d=>{const{getEditedEntityRecord:p,getEntityRecordPermissions:f}=gt(d(ce));return{item:p("postType",e,t),permissions:f("postType",e,t)}},[t,e]),c=O.useMemo(()=>({...s,permissions:i}),[s,i]),l=I3e({postType:e,onActionPerformed:n}),u=O.useMemo(()=>l.filter(d=>!d.isEligible||d.isEligible(c)),[l,c]);return a.jsx(D5,{open:o,trigger:a.jsx(fe,{size:"small",icon:Ol,label:m("Actions"),disabled:!u.length,accessibleWhenDisabled:!0,className:"editor-all-actions-button",onClick:()=>r(!o)}),onOpenChange:r,placement:"bottom-end",children:a.jsx(gXt,{actions:u,item:c,onClose:()=>{r(!1)}})})}function zQ({action:e,onClick:t,items:n}){const o=typeof e.label=="string"?e.label:e.label(n);return a.jsx(D5.Item,{onClick:t,hideOnClick:!e.RenderModal,children:a.jsx(D5.ItemLabel,{children:o})})}function MXt({action:e,item:t,ActionTrigger:n,onClose:o}){const[r,s]=O.useState(!1),i={action:e,onClick:()=>s(!0),items:[t]},{RenderModal:c,hideModalHeader:l}=e;return a.jsxs(a.Fragment,{children:[a.jsx(n,{...i}),r&&a.jsx(fn,{title:e.modalHeader||e.label,__experimentalHideHeader:!!l,onRequestClose:()=>{s(!1)},overlayClassName:`editor-action-modal editor-action-modal__${hXt(e.id)}`,focusOnMount:"firstContentElement",size:"small",children:a.jsx(c,{items:[t],closeModal:()=>{s(!1),o()}})})]})}function gXt({actions:e,item:t,onClose:n}){return a.jsx(D5.Group,{children:e.map(o=>o.RenderModal?a.jsx(MXt,{action:o,item:t,ActionTrigger:zQ,onClose:n},o.id):a.jsx(zQ,{action:o,onClick:()=>o.callback([t]),items:[t]},o.id))})}function D3e({postType:e,postId:t,onActionPerformed:n}){const{isFrontPage:o,isPostsPage:r,title:s,icon:i,isSync:c}=D(l=>{const{__experimentalGetTemplateInfo:u}=l(ue),{canUser:d,getEditedEntityRecord:p}=l(ce),f=d("read",{kind:"root",name:"site"})?p("root","site"):void 0,b=p("postType",e,t),h=[d1,vo].includes(e)&&u(b);let g=!1;return hze.includes(e)&&(ul===e?g=(b?.meta?.wp_pattern_sync_status==="unsynced"?"unsynced":b?.wp_pattern_sync_status)!=="unsynced":g=!0),{title:h?.title||b?.title,icon:gt(l(ue)).getPostIcon(e,{area:b?.area}),isSync:g,isFrontPage:f?.page_on_front===t,isPostsPage:f?.page_for_posts===t}},[t,e]);return a.jsx("div",{className:"editor-post-card-panel",children:a.jsxs(Je,{spacing:2,className:"editor-post-card-panel__header",align:"flex-start",children:[a.jsx(xn,{className:$("editor-post-card-panel__icon",{"is-sync":c}),icon:i}),a.jsxs(l0,{numberOfLines:2,truncate:!0,className:"editor-post-card-panel__title",weight:500,as:"h2",lineHeight:"20px",children:[s?kt(s):m("No title"),o&&a.jsx("span",{className:"editor-post-card-panel__title-badge",children:m("Homepage")}),r&&a.jsx("span",{className:"editor-post-card-panel__title-badge",children:m("Posts Page")})]}),a.jsx(mXt,{postType:e,postId:t,onActionPerformed:n})]})})}const zXt=189;function OXt(){const{postContent:e}=D(i=>{const{getEditedPostAttribute:c,getCurrentPostType:l,getCurrentPostId:u}=i(ue),{canUser:d}=i(ce),{getEntityRecord:p}=i(ce),f=d("read",{kind:"root",name:"site"})?p("root","site"):void 0,b=l();return{postContent:!(+u()===f?.page_for_posts)&&![d1,vo].includes(b)&&c("content")}},[]),t=Oe("words","Word count type. Do not translate!"),n=O.useMemo(()=>e?Jh(e,t):0,[e,t]);if(!n)return null;const o=Math.round(n/zXt),r=le(a0("%s word","%s words",n),n.toLocaleString()),s=o<=1?m("1 minute"):le(a0("%s minute","%s minutes",o),o.toLocaleString());return a.jsx("div",{className:"editor-post-content-information",children:a.jsx(l0,{children:le(m("%1$s, %2$s read time."),r,s)})})}function AXt(){const{postFormat:e}=D(s=>{const{getEditedPostAttribute:i}=s(ue),c=i("format");return{postFormat:c??"standard"}},[]),t=b9.find(s=>s.id===e),[n,o]=O.useState(null),r=O.useMemo(()=>({anchor:n,placement:"left-start",offset:36,shift:!0}),[n]);return a.jsx(c3e,{children:a.jsx(Lr,{label:m("Format"),ref:o,children:a.jsx(B0,{popoverProps:r,contentClassName:"editor-post-format__dialog",focusOnMount:!0,renderToggle:({isOpen:s,onToggle:i})=>a.jsx(fe,{size:"compact",variant:"tertiary","aria-expanded":s,"aria-label":le(m("Change format: %s"),t?.caption),onClick:i,children:t?.caption}),renderContent:({onClose:s})=>a.jsxs("div",{className:"editor-post-format__dialog-content",children:[a.jsx(Os,{title:m("Format"),onClose:s}),a.jsx(l3e,{})]})})})})}function yXt(){const e=D(n=>n(ue).getEditedPostAttribute("modified"),[]),t=e&&le(m("Last edited %s."),kw(e));return t?a.jsx("div",{className:"editor-post-last-edited-panel",children:a.jsx(l0,{children:t})}):null}function vXt({className:e,children:t}){return a.jsx(Ye,{className:$("editor-post-panel__section",e),children:t})}const xXt={};function _Xt(){const{editEntityRecord:e}=ae(ce),{postsPageTitle:t,postsPageId:n,isTemplate:o,postSlug:r}=D(d=>{const{getEntityRecord:p,getEditedEntityRecord:f,canUser:b}=d(ce),h=b("read",{kind:"root",name:"site"})?p("root","site"):void 0,g=h?.page_for_posts?f("postType","page",h?.page_for_posts):xXt,{getEditedPostAttribute:z,getCurrentPostType:y}=d(ue);return{postsPageId:g?.id,postsPageTitle:g?.title,isTemplate:y()===d1,postSlug:z("slug")}},[]),[s,i]=O.useState(null),c=O.useMemo(()=>({anchor:s,placement:"left-start",offset:36,shift:!0}),[s]);if(!o||!["home","index"].includes(r)||!n)return null;const l=d=>{e("postType","page",n,{title:d})},u=kt(t);return a.jsx(Lr,{label:m("Blog title"),ref:i,children:a.jsx(B0,{popoverProps:c,contentClassName:"editor-blog-title-dropdown__content",focusOnMount:!0,renderToggle:({isOpen:d,onToggle:p})=>a.jsx(fe,{size:"compact",variant:"tertiary","aria-expanded":d,"aria-label":le(m("Change blog title: %s"),u),onClick:p,children:u}),renderContent:({onClose:d})=>a.jsxs(a.Fragment,{children:[a.jsx(Os,{title:m("Blog title"),onClose:d}),a.jsx(Is,{placeholder:m("No title"),size:"__unstable-large",value:t,onChange:jr(l,300),label:m("Blog title"),help:m("Set the Posts Page title. Appears in search results, and when the page is shared on social media."),hideLabelFromVision:!0})]})})})}function wXt(){const{editEntityRecord:e}=ae(ce),{postsPerPage:t,isTemplate:n,postSlug:o}=D(l=>{const{getEditedPostAttribute:u,getCurrentPostType:d}=l(ue),{getEditedEntityRecord:p,canUser:f}=l(ce),b=f("read",{kind:"root",name:"site"})?p("root","site"):void 0;return{isTemplate:d()===d1,postSlug:u("slug"),postsPerPage:b?.posts_per_page||1}},[]),[r,s]=O.useState(null),i=O.useMemo(()=>({anchor:r,placement:"left-start",offset:36,shift:!0}),[r]);if(!n||!["home","index"].includes(o))return null;const c=l=>{e("root","site",void 0,{posts_per_page:l})};return a.jsx(Lr,{label:m("Posts per page"),ref:s,children:a.jsx(B0,{popoverProps:i,contentClassName:"editor-posts-per-page-dropdown__content",focusOnMount:!0,renderToggle:({isOpen:l,onToggle:u})=>a.jsx(fe,{size:"compact",variant:"tertiary","aria-expanded":l,"aria-label":m("Change posts per page"),onClick:u,children:t}),renderContent:({onClose:l})=>a.jsxs(a.Fragment,{children:[a.jsx(Os,{title:m("Posts per page"),onClose:l}),a.jsx(T1,{placeholder:0,value:t,size:"__unstable-large",spinControls:"custom",step:"1",min:"1",onChange:c,label:m("Posts per page"),help:m("Set the default number of posts to display on blog pages, including categories and tags. Some templates may override this setting."),hideLabelFromVision:!0})]})})})}const kXt=[{label:Oe("Open",'Adjective: e.g. "Comments are open"'),value:"open",description:m("Visitors can add new comments and replies.")},{label:m("Closed"),value:"",description:[m("Visitors cannot add new comments or replies."),m("Existing comments remain visible.")].join(" ")}];function qXt(){const{editEntityRecord:e}=ae(ce),{allowCommentsOnNewPosts:t,isTemplate:n,postSlug:o}=D(l=>{const{getEditedPostAttribute:u,getCurrentPostType:d}=l(ue),{getEditedEntityRecord:p,canUser:f}=l(ce),b=f("read",{kind:"root",name:"site"})?p("root","site"):void 0;return{isTemplate:d()===d1,postSlug:u("slug"),allowCommentsOnNewPosts:b?.default_comment_status||""}},[]),[r,s]=O.useState(null),i=O.useMemo(()=>({anchor:r,placement:"left-start",offset:36,shift:!0}),[r]);if(!n||!["home","index"].includes(o))return null;const c=l=>{e("root","site",void 0,{default_comment_status:l?"open":null})};return a.jsx(Lr,{label:m("Discussion"),ref:s,children:a.jsx(B0,{popoverProps:i,contentClassName:"editor-site-discussion-dropdown__content",focusOnMount:!0,renderToggle:({isOpen:l,onToggle:u})=>a.jsx(fe,{size:"compact",variant:"tertiary","aria-expanded":l,"aria-label":m("Change discussion settings"),onClick:u,children:m(t?"Comments open":"Comments closed")}),renderContent:({onClose:l})=>a.jsxs(a.Fragment,{children:[a.jsx(Os,{title:m("Discussion"),onClose:l}),a.jsxs(Ye,{spacing:3,children:[a.jsx(l0,{children:m("Changes will apply to new posts only. Individual posts may override these settings.")}),a.jsx(kf,{className:"editor-site-discussion__options",hideLabelFromVision:!0,label:m("Comment status"),options:kXt,onChange:c,selected:t})]})]})})})}const SXt="post-status";function CXt({onActionPerformed:e}){const{isRemovedPostStatusPanel:t,postType:n,postId:o}=D(r=>{const{isEditorPanelRemoved:s,getCurrentPostType:i,getCurrentPostId:c}=r(ue);return{isRemovedPostStatusPanel:s(SXt),postType:i(),postId:c()}},[]);return a.jsx(vXt,{className:"editor-post-summary",children:a.jsx(r3e.Slot,{children:r=>a.jsx(a.Fragment,{children:a.jsxs(Ye,{spacing:4,children:[a.jsx(D3e,{postType:n,postId:o,onActionPerformed:e}),a.jsx(U$t,{withPanelBody:!1}),a.jsx(N$t,{}),a.jsxs(Ye,{spacing:1,children:[a.jsx(OXt,{}),a.jsx(yXt,{})]}),!t&&a.jsxs(Ye,{spacing:4,children:[a.jsxs(Ye,{spacing:1,children:[a.jsx(v3e,{}),a.jsx(BVt,{}),a.jsx(UVt,{}),a.jsx(x$t,{}),a.jsx(M$t,{}),a.jsx(R$t,{}),a.jsx(K$t,{}),a.jsx(GFt,{}),a.jsx(NVt,{}),a.jsx(_Xt,{}),a.jsx(wXt,{}),a.jsx(qXt,{}),a.jsx(AXt,{})]}),r]})]})})})})}const{EXCLUDED_PATTERN_SOURCES:RXt,PATTERN_TYPES:WXt}=gt(Gi);function F3e(e,t){return e.innerBlocks=e.innerBlocks.map(n=>F3e(n,t)),e.name==="core/template-part"&&e.attributes.theme===void 0&&(e.attributes.theme=t),e}function TXt(e,t){const n=(s,i,c)=>i===c.findIndex(l=>s.name===l.name),o=s=>!RXt.includes(s.source),r=s=>s.templateTypes?.includes(t.slug)||s.blockTypes?.includes("core/template-part/"+t.area);return e.filter((s,i,c)=>n(s,i,c)&&o(s)&&r(s))}function EXt(e,t){return e.map(n=>({...n,keywords:n.keywords||[],type:WXt.theme,blocks:Yn(n.content,{__unstableSkipMigrationLogs:!0}).map(o=>F3e(o,t))}))}function BXt(e){const{blockPatterns:t,restBlockPatterns:n,currentThemeStylesheet:o}=D(r=>{var s;const{getEditorSettings:i}=r(ue),c=i();return{blockPatterns:(s=c.__experimentalAdditionalBlockPatterns)!==null&&s!==void 0?s:c.__experimentalBlockPatterns,restBlockPatterns:r(ce).getBlockPatterns(),currentThemeStylesheet:r(ce).getCurrentTheme().stylesheet}},[]);return O.useMemo(()=>{const r=[...t||[],...n||[]],s=TXt(r,e);return EXt(s,e)},[t,n,e,o])}function NXt({availableTemplates:e,onSelect:t}){const n=Gs(e);return!e||e?.length===0?null:a.jsx(oc,{label:m("Templates"),blockPatterns:e,shownPatterns:n,onClickPattern:t,showTitlesAsTooltip:!0})}function LXt(){const{record:e,postType:t,postId:n}=D(i=>{const{getCurrentPostType:c,getCurrentPostId:l}=i(ue),{getEditedEntityRecord:u}=i(ce),d=c(),p=l();return{postType:d,postId:p,record:u("postType",d,p)}},[]),{editEntityRecord:o}=ae(ce),r=BXt(e),s=async i=>{await o("postType",t,n,{blocks:i.blocks,content:Pr(i.blocks)})};return r?.length?a.jsx(De,{title:m("Design"),initialOpen:e.type===vo,children:a.jsx(NXt,{availableTemplates:r,onSelect:s})}):null}function jXt(){const{postType:e}=D(t=>{const{getCurrentPostType:n}=t(ue);return{postType:n()}},[]);return[vo,d1].includes(e)?a.jsx(LXt,{}):null}const ya={document:"edit-post/document",block:"edit-post/block"},{Tabs:gC}=gt(L0),PXt=(e,t)=>{const{documentLabel:n}=D(o=>{const{getPostTypeLabel:r}=o(ue);return{documentLabel:r()||Oe("Document","noun")}},[]);return a.jsxs(gC.TabList,{ref:t,children:[a.jsx(gC.Tab,{tabId:ya.document,"data-tab-id":ya.document,children:n}),a.jsx(gC.Tab,{tabId:ya.block,"data-tab-id":ya.block,children:m("Block")})]})},IXt=O.forwardRef(PXt),{BlockQuickNavigation:DXt}=gt(p0),FXt=["core/post-title","core/post-featured-image","core/post-content"],$Xt="core/template-part";function VXt(){const e=O.useMemo(()=>_n("editor.postContentBlockTypes",FXt),[]),{clientIds:t,postType:n,renderingMode:o}=D(s=>{const{getCurrentPostType:i,getPostBlocksByName:c,getRenderingMode:l}=gt(s(ue)),u=i();return{postType:u,clientIds:c(d1===u?$Xt:e),renderingMode:l()}},[e]),{enableComplementaryArea:r}=ae(sn);return o==="post-only"&&n!==d1||t.length===0?null:a.jsx(De,{title:m("Content"),children:a.jsx(DXt,{clientIds:t,onSelect:()=>{r("core","edit-post/document")}})})}const{BlockQuickNavigation:HXt}=gt(p0);function UXt(){const e=D(o=>{const{getBlockTypes:r}=o($e);return r()},[]),t=O.useMemo(()=>e.filter(o=>o.category==="theme").map(({name:o})=>o),[e]),n=D(o=>{const{getBlocksByName:r}=o(F);return r(t)},[t]);return n.length===0?null:a.jsx(De,{title:m("Content"),children:a.jsx(HXt,{clientIds:n})})}function XXt(){return D(t=>{const{getCurrentPostType:n}=t(ue);return n()},[])!==vo?null:a.jsx(UXt,{})}function GXt(){const{hasBlockSelection:e}=D(r=>({hasBlockSelection:!!r(F).getBlockSelectionStart()}),[]),{getActiveComplementaryArea:t}=D(sn),{enableComplementaryArea:n}=ae(sn),{get:o}=D(Qe);O.useEffect(()=>{const r=t("core"),s=["edit-post/document","edit-post/block"].includes(r),i=o("core","distractionFree");!s||i||(e?n("core","edit-post/block"):n("core","edit-post/document"))},[e,t,n,o])}const{Tabs:lb}=gt(L0),KXt=w1.select({web:!0,native:!1}),YXt=({tabName:e,keyboardShortcut:t,onActionPerformed:n,extraPanels:o})=>{const r=O.useRef(null),s=O.useContext(lb.Context);return O.useEffect(()=>{const i=Array.from(r.current?.querySelectorAll('[role="tab"]')||[]),c=i.find(d=>d.getAttribute("data-tab-id")===e),l=c?.ownerDocument.activeElement;i.some(d=>l&&l.id===d.id)&&c&&c.id!==l?.id&&c?.focus()},[e]),a.jsx(u$t,{identifier:e,header:a.jsx(lb.Context.Provider,{value:s,children:a.jsx(IXt,{ref:r})}),closeLabel:m("Close Settings"),className:"editor-sidebar__panel",headerClassName:"editor-sidebar__panel-tabs",title:m("Settings"),toggleShortcut:t,icon:ft()?Qce:Jce,isActiveByDefault:KXt,children:a.jsxs(lb.Context.Provider,{value:s,children:[a.jsxs(lb.TabPanel,{tabId:ya.document,focusable:!1,children:[a.jsx(CXt,{onActionPerformed:n}),a.jsx(n3e.Slot,{}),a.jsx(VXt,{}),a.jsx(XXt,{}),a.jsx(jXt,{}),a.jsx(IVt,{}),a.jsx(bXt,{}),o]}),a.jsx(lb.TabPanel,{tabId:ya.block,focusable:!1,children:a.jsx(Rge,{})})]})})},ZXt=({extraPanels:e,onActionPerformed:t})=>{GXt();const{tabName:n,keyboardShortcut:o,showSummary:r}=D(c=>{const l=c(Br).getShortcutRepresentation("core/editor/toggle-sidebar"),u=c(sn).getActiveComplementaryArea("core"),d=[ya.block,ya.document].includes(u);let p=u;return d||(p=c(F).getBlockSelectionStart()?ya.block:ya.document),{tabName:p,keyboardShortcut:l,showSummary:![d1,vo,th].includes(c(ue).getCurrentPostType())}},[]),{enableComplementaryArea:s}=ae(sn),i=O.useCallback(c=>{c&&s("core",c)},[s]);return a.jsx(lb,{selectedTabId:n,onSelect:i,selectOnMove:!1,children:a.jsx(YXt,{tabName:n,keyboardShortcut:o,showSummary:r,onActionPerformed:t,extraPanels:e})})};function QXt({postType:e,postId:t,templateId:n,settings:o,children:r,initialEdits:s,onActionPerformed:i,extraContent:c,extraSidebarPanels:l,...u}){const{post:d,template:p,hasLoadedPost:f}=D(b=>{const{getEntityRecord:h,hasFinishedResolution:g}=b(ce);return{post:h("postType",e,t),template:n?h("postType",d1,n):void 0,hasLoadedPost:g("getEntityRecord",["postType",e,t])}},[e,t,n]);return a.jsxs(a.Fragment,{children:[f&&!d&&a.jsx(os,{status:"warning",isDismissible:!1,children:m("You attempted to edit an item that doesn't exist. Perhaps it was deleted?")}),!!d&&a.jsxs(L3e,{post:d,__unstableTemplate:p,settings:o,initialEdits:s,useSubRegistry:!1,children:[a.jsx(pXt,{...u,children:c}),a.jsx(ZXt,{onActionPerformed:i,extraPanels:l}),r]})]})}const{PreferenceBaseOption:JXt}=gt(yd),eGt=v0(Xo(e=>({isChecked:e(ue).isPublishSidebarEnabled()})),Fi(e=>{const{enablePublishSidebar:t,disablePublishSidebar:n}=e(ue);return{onChange:o=>o?t():n()}}))(JXt);function tGt({blockTypes:e,value:t,onItemChange:n}){return a.jsx("ul",{className:"editor-block-manager__checklist",children:e.map(o=>a.jsxs("li",{className:"editor-block-manager__checklist-item",children:[a.jsx(Bo,{__nextHasNoMarginBottom:!0,label:o.title,checked:t.includes(o.name),onChange:(...r)=>n(o.name,...r)}),a.jsx(b0,{icon:o.icon})]},o.name))})}function QT({title:e,blockTypes:t}){const n=He(QT),{allowedBlockTypes:o,hiddenBlockTypes:r}=D(h=>{const{getEditorSettings:g}=h(ue),{get:z}=h(Qe);return{allowedBlockTypes:g().allowedBlockTypes,hiddenBlockTypes:z("core","hiddenBlockTypes")}},[]),s=O.useMemo(()=>o===!0?t:t.filter(({name:h})=>o?.includes(h)),[o,t]),{showBlockTypes:i,hideBlockTypes:c}=gt(ae(ue)),l=O.useCallback((h,g)=>{g?i(h):c(h)},[i,c]),u=O.useCallback(h=>{const g=t.map(({name:z})=>z);h?i(g):c(g)},[t,i,c]);if(!s.length)return null;const d=s.map(({name:h})=>h).filter(h=>!(r??[]).includes(h)),p="editor-block-manager__category-title-"+n,f=d.length===s.length,b=!f&&d.length>0;return a.jsxs("div",{role:"group","aria-labelledby":p,className:"editor-block-manager__category",children:[a.jsx(Bo,{__nextHasNoMarginBottom:!0,checked:f,onChange:u,className:"editor-block-manager__category-title",indeterminate:b,label:a.jsx("span",{id:p,children:e})}),a.jsx(tGt,{blockTypes:s,value:d,onItemChange:l})]})}function nGt({blockTypes:e,categories:t,hasBlockSupport:n,isMatchingSearchTerm:o,numberOfHiddenBlocks:r,enableAllBlockTypes:s}){const i=Uo(At,500),[c,l]=O.useState("");return e=e.filter(u=>n(u,"inserter",!0)&&(!c||o(u,c))&&(!u.parent||u.parent.includes("core/post-content"))),O.useEffect(()=>{if(!c)return;const u=e.length,d=le(a0("%d result found.","%d results found.",u),u);i(d)},[e.length,c,i]),a.jsxs("div",{className:"editor-block-manager__content",children:[!!r&&a.jsxs("div",{className:"editor-block-manager__disabled-blocks-count",children:[le(a0("%d block is hidden.","%d blocks are hidden.",r),r),a.jsx(fe,{__next40pxDefaultSize:!1,variant:"link",onClick:()=>s(e),children:m("Reset")})]}),a.jsx(xl,{__nextHasNoMarginBottom:!0,label:m("Search for a block"),placeholder:m("Search for a block"),value:c,onChange:u=>l(u),className:"editor-block-manager__search"}),a.jsxs("div",{tabIndex:"0",role:"region","aria-label":m("Available block types"),className:"editor-block-manager__results",children:[e.length===0&&a.jsx("p",{className:"editor-block-manager__no-results",children:m("No blocks found.")}),t.map(u=>a.jsx(QT,{title:u.title,blockTypes:e.filter(d=>d.category===u.slug)},u.slug)),a.jsx(QT,{title:m("Uncategorized"),blockTypes:e.filter(({category:u})=>!u)})]})]})}const oGt=v0([Xo(e=>{var t;const{getBlockTypes:n,getCategories:o,hasBlockSupport:r,isMatchingSearchTerm:s}=e($e),{get:i}=e(Qe),c=n(),l=((t=i("core","hiddenBlockTypes"))!==null&&t!==void 0?t:[]).filter(d=>c.some(p=>p.name===d)),u=Array.isArray(l)&&l.length;return{blockTypes:c,categories:o(),hasBlockSupport:r,isMatchingSearchTerm:s,numberOfHiddenBlocks:u}}),Fi(e=>{const{showBlockTypes:t}=gt(e(ue));return{enableAllBlockTypes:n=>{const o=n.map(({name:r})=>r);t(o)}}})])(nGt),{PreferencesModal:rGt,PreferencesModalTabs:sGt,PreferencesModalSection:jl,PreferenceToggleControl:fc}=gt(yd);function iGt({extraSections:e={}}){const t=g0("medium"),{isActive:n,showBlockBreadcrumbsOption:o}=D(u=>{const{getEditorSettings:d}=u(ue),{get:p}=u(Qe),{isModalActive:f}=u(sn),b=d().richEditingEnabled;return{showBlockBreadcrumbsOption:!p("core","distractionFree")&&t&&b,isActive:f("editor/preferences")}},[t]),{closeModal:r}=ae(sn),{setIsListViewOpened:s,setIsInserterOpened:i}=ae(ue),{set:c}=ae(Qe),l=O.useMemo(()=>[{name:"general",tabLabel:m("General"),content:a.jsxs(a.Fragment,{children:[a.jsxs(jl,{title:m("Interface"),children:[a.jsx(fc,{scope:"core",featureName:"showListViewByDefault",help:m("Opens the List View sidebar by default."),label:m("Always open List View")}),o&&a.jsx(fc,{scope:"core",featureName:"showBlockBreadcrumbs",help:m("Display the block hierarchy trail at the bottom of the editor."),label:m("Show block breadcrumbs")}),a.jsx(fc,{scope:"core",featureName:"allowRightClickOverrides",help:m("Allows contextual List View menus via right-click, overriding browser defaults."),label:m("Allow right-click contextual menus")})]}),a.jsxs(jl,{title:m("Document settings"),description:m("Select what settings are shown in the document panel."),children:[a.jsx(u9.Slot,{}),a.jsx(x3e,{taxonomyWrapper:(u,d)=>a.jsx(cb,{label:d.labels.menu_name,panelName:`taxonomy-panel-${d.slug}`})}),a.jsx(I5,{children:a.jsx(cb,{label:m("Featured image"),panelName:"featured-image"})}),a.jsx(a3e,{children:a.jsx(cb,{label:m("Excerpt"),panelName:"post-excerpt"})}),a.jsx(Ha,{supportKeys:["comments","trackbacks"],children:a.jsx(cb,{label:m("Discussion"),panelName:"discussion-panel"})}),a.jsx(Kze,{children:a.jsx(cb,{label:m("Page attributes"),panelName:"page-attributes"})})]}),t&&a.jsx(jl,{title:m("Publishing"),children:a.jsx(eGt,{help:m("Review settings, such as visibility and tags."),label:m("Enable pre-publish checks")})}),e?.general]})},{name:"appearance",tabLabel:m("Appearance"),content:a.jsxs(jl,{title:m("Appearance"),description:m("Customize the editor interface to suit your needs."),children:[a.jsx(fc,{scope:"core",featureName:"fixedToolbar",onToggle:()=>c("core","distractionFree",!1),help:m("Access all block and document tools in a single place."),label:m("Top toolbar")}),a.jsx(fc,{scope:"core",featureName:"distractionFree",onToggle:()=>{c("core","fixedToolbar",!0),i(!1),s(!1)},help:m("Reduce visual distractions by hiding the toolbar and other elements to focus on writing."),label:m("Distraction free")}),a.jsx(fc,{scope:"core",featureName:"focusMode",help:m("Highlights the current block and fades other content."),label:m("Spotlight mode")}),e?.appearance]})},{name:"accessibility",tabLabel:m("Accessibility"),content:a.jsxs(a.Fragment,{children:[a.jsx(jl,{title:m("Navigation"),description:m("Optimize the editing experience for enhanced control."),children:a.jsx(fc,{scope:"core",featureName:"keepCaretInsideBlock",help:m("Keeps the text cursor within the block boundaries, aiding users with screen readers by preventing unintentional cursor movement outside the block."),label:m("Contain text cursor inside block")})}),a.jsx(jl,{title:m("Interface"),children:a.jsx(fc,{scope:"core",featureName:"showIconLabels",label:m("Show button text labels"),help:m("Show text instead of icons on buttons across the interface.")})})]})},{name:"blocks",tabLabel:m("Blocks"),content:a.jsxs(a.Fragment,{children:[a.jsx(jl,{title:m("Inserter"),children:a.jsx(fc,{scope:"core",featureName:"mostUsedBlocks",help:m("Adds a category with the most frequently used blocks in the inserter."),label:m("Show most used blocks")})}),a.jsx(jl,{title:m("Manage block visibility"),description:m("Disable blocks that you don't want to appear in the inserter. They can always be toggled back on later."),children:a.jsx(oGt,{})})]})}],[o,e,i,s,c,t]);return n?a.jsx(rGt,{closeModal:r,children:a.jsx(sGt,{sections:l})}):null}const OQ="content",aGt={name:"core/pattern-overrides",getValues({registry:e,clientId:t,context:n,bindings:o}){const r=n["pattern/overrides"],{getBlockAttributes:s}=e.select(F),i=s(t),c={};for(const l of Object.keys(o)){const u=r?.[i?.metadata?.name]?.[l];if(u===void 0){c[l]=i[l];continue}else c[l]=u===""?void 0:u}return c},setValues({registry:e,clientId:t,bindings:n}){const{getBlockAttributes:o,getBlockParentsByBlockName:r,getBlocks:s}=e.select(F),c=o(t)?.metadata?.name;if(!c)return;const[l]=r(t,"core/block",!0),u=Object.entries(n).reduce((p,[f,{newValue:b}])=>(p[f]=b,p),{});if(!l){const p=f=>{for(const b of f)b.attributes?.metadata?.name===c&&e.dispatch(F).updateBlockAttributes(b.clientId,u),p(b.innerBlocks)};p(s());return}const d=o(l)?.[OQ];e.dispatch(F).updateBlockAttributes(l,{[OQ]:{...d,[c]:{...d?.[c],...Object.entries(u).reduce((p,[f,b])=>(p[f]=b===void 0?"":b,p),{})}}})},canUserEditValue:()=>!0},cGt={name:"core/post-meta",getValues({registry:e,context:t,bindings:n}){const o=e.select(ce).getEditedEntityRecord("postType",t?.postType,t?.postId)?.meta,r={};for(const[s,i]of Object.entries(n))r[s]=o?.[i.args.key]||i.args.key;return r},setValues({registry:e,context:t,bindings:n}){const o={};Object.values(n).forEach(({args:r,newValue:s})=>{o[r.key]=s}),e.dispatch(ce).editEntityRecord("postType",t?.postType,t?.postId,{meta:o})},canUserEditValue({select:e,context:t,args:n}){if(t?.query||t?.queryId)return!1;const o=t?.postType||e(ue).getCurrentPostType();return!(o==="wp_template"||e(ce).getEntityRecord("postType",o,t?.postId)?.meta?.[n.key]===void 0||e(ue).getEditorSettings().enableCustomFields||!e(ce).canUser("update",{kind:"postType",name:t?.postType,id:t?.postId}))},getFieldsList({registry:e,context:t}){const n=e.select(ce).getEditedEntityRecord("postType",t?.postType,t?.postId).meta;return!n||!Object.keys(n).length?null:Object.fromEntries(Object.entries(n).filter(([o])=>o!=="footnotes"&&o.charAt(0)!=="_"))}};function lGt(){const{registerBlockBindingsSource:e}=gt(t3);e(aGt),e(cGt)}function uGt(e){if(e){const{addBootstrappedBlockBindingsSource:t}=gt(tr($e));for(const[n,o]of Object.entries(e))t({name:n,...o})}}const{store:dGt,...pGt}=pFt,Sl={};I9t(Sl,{CreateTemplatePartModal:s9,BackButton:m9,EntitiesSavedStatesExtensible:P5,Editor:QXt,EditorContentSlotFill:j3e,GlobalStylesProvider:hHt,mergeBaseAndUserConfigs:W3e,PluginPostExcerpt:f9,PostCardPanel:D3e,PreferencesModal:iGt,usePostActions:I3e,ToolsMoreMenuGroup:M9,ViewMoreMenuGroup:g9,ResizableEditor:P3e,registerCoreBlockBindingsSources:lGt,bootstrapBlockBindingsSourcesFromServer:uGt,interfaceStore:dGt,...pGt});function AO(){if(window.GBKit)return window.GBKit;if(window.editorDelegate)try{return JSON.parse(window.editorDelegate.getEditorConfiguration())}catch(e){return console.error("Failed parsing GBKit from editorDelegate:",e),{}}try{return JSON.parse(localStorage.getItem("GBKit"))||{}}catch(e){return console.error("Failed parsing GBKit from localStorage:",e),{}}}function fGt(){const{post:e}=AO();return e?{id:e.id,title:{raw:decodeURIComponent(e.title)},content:{raw:decodeURIComponent(e.content)},type:e.type||"post"}:{type:"post",status:"draft",id:-1}}function bGt(){const{siteApiRoot:e,authHeader:t}=AO();ct.use(ct.createRootURLMiddleware(e)),ct.use(hGt),ct.use(mGt),ct.use(MGt(t)),ct.use(gGt),ct.use(zGt),ct.use(ct.createPreloadingMiddleware({"/wp/v2/types?context=view":{body:{post:{description:"",hierarchical:!1,has_archive:!1,name:"Posts",slug:"post",taxonomies:["category","post_tag"],rest_base:"posts",rest_namespace:"wp/v2",template:[],template_lock:!1,_links:{}},page:{description:"",hierarchical:!0,has_archive:!1,name:"Pages",slug:"page",taxonomies:[],rest_base:"pages",rest_namespace:"wp/v2",template:[],template_lock:!1,_links:{}}}},"/wp/v2/types/post?context=edit":{body:{name:"Posts",slug:"post",supports:{title:!0,editor:!0,author:!0,thumbnail:!0,excerpt:!0,trackbacks:!0,"custom-fields":!0,comments:!0,revisions:!0,"post-formats":!0,autosave:!0},taxonomies:["category","post_tag"],rest_base:"posts",rest_namespace:"wp/v2",template:[],template_lock:!1}}}))}function hGt(e,t){return e.mode="cors",delete e.headers["x-wp-api-fetch-from-editor"],t(e)}function mGt(e,t){const{siteApiNamespace:n}=AO();return e.path&&n&&!e.path.includes(n)&&(e.path=e.path.replace(/^(?\/?(?:[\w.-]+\/){2})/,`$${n}/`)),t(e)}function MGt(e){return(t,n)=>(t.headers=t.headers||{},e&&(t.headers.Authorization=e),n(t))}function gGt(e,t){return[/^\/wp\/v2\/posts\/-?\d+/,/^\/wp\/v2\/pages\/-?\d+/].some(r=>r.test(e.path))?Promise.resolve([]):t(e)}function zGt(e,t){return e.path&&e.path.startsWith("/wp/v2/media")&&e.method==="POST"&&e.body instanceof FormData&&e.body.get("post")==="-1"&&e.body.delete("post"),t(e)}function Ee(e){if(!e)return;const{metadata:t,settings:n,name:o}=e;return tNe({name:o,...t},n)}function OGt({attributes:e,setAttributes:t}){const{showLabel:n,showPostCounts:o,displayAsDropdown:r,type:s}=e;return a.jsxs(a.Fragment,{children:[a.jsx(Te,{children:a.jsxs(De,{title:m("Settings"),children:[a.jsx(Be,{__nextHasNoMarginBottom:!0,label:m("Display as dropdown"),checked:r,onChange:()=>t({displayAsDropdown:!r})}),r&&a.jsx(Be,{__nextHasNoMarginBottom:!0,label:m("Show label"),checked:n,onChange:()=>t({showLabel:!n})}),a.jsx(Be,{__nextHasNoMarginBottom:!0,label:m("Show post counts"),checked:o,onChange:()=>t({showPostCounts:!o})}),a.jsx(i0,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:m("Group by:"),options:[{label:m("Year"),value:"yearly"},{label:m("Month"),value:"monthly"},{label:m("Week"),value:"weekly"},{label:m("Day"),value:"daily"}],value:s,onChange:i=>t({type:i})})]})}),a.jsx("div",{...ze(),children:a.jsx(rr,{children:a.jsx(OO,{block:"core/archives",skipBlockSupportAttributes:!0,attributes:e})})})]})}const z9={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/archives",title:"Archives",category:"widgets",description:"Display a date archive of your posts.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showLabel:{type:"boolean",default:!0},showPostCounts:{type:"boolean",default:!1},type:{type:"string",default:"monthly"}},supports:{align:!0,html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-archives-editor"},{name:$3e}=z9,V3e={icon:MYe,example:{},edit:OGt},AGt=()=>Ee({name:$3e,metadata:z9,settings:V3e}),yGt=Object.freeze(Object.defineProperty({__proto__:null,init:AGt,metadata:z9,name:$3e,settings:V3e},Symbol.toStringTag,{value:"Module"}));function H3e(e){const t=e?e[0]:24,n=e?e[e.length-1]:96,o=Math.floor(n*2.5);return{minSize:t,maxSize:o}}function U3e(){const{avatarURL:e}=D(t=>{const{getSettings:n}=t(F),{__experimentalDiscussionSettings:o}=n();return o});return e}function vGt({commentId:e}){const[t]=Z0("root","comment","author_avatar_urls",e),[n]=Z0("root","comment","author_name",e),o=t?Object.values(t):null,r=t?Object.keys(t):null,{minSize:s,maxSize:i}=H3e(r),c=U3e();return{src:o?o[o.length-1]:c,minSize:s,maxSize:i,alt:n?le(m("%s Avatar"),n):m("Default Avatar")}}function xGt({userId:e,postId:t,postType:n}){const{authorDetails:o}=D(u=>{const{getEditedEntityRecord:d,getUser:p}=u(ce);if(e)return{authorDetails:p(e)};const f=d("postType",n,t)?.author;return{authorDetails:f?p(f):null}},[n,t,e]),r=o?.avatar_urls?Object.values(o.avatar_urls):null,s=o?.avatar_urls?Object.keys(o.avatar_urls):null,{minSize:i,maxSize:c}=H3e(s),l=U3e();return{src:r?r[r.length-1]:l,minSize:i,maxSize:c,alt:o?le(m("%s Avatar"),o?.name):m("Default Avatar")}}const _Gt={who:"authors",per_page:-1,_fields:"id,name",context:"view"};function wGt({value:e,onChange:t}){const[n,o]=O.useState(),r=D(i=>{const{getUsers:c}=i(ce);return c(_Gt)},[]);if(!r)return null;const s=r.map(i=>({label:i.name,value:i.id}));return a.jsx(Nh,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:m("User"),help:m("Select the avatar user to display, if it is blank it will use the post/page author."),value:e,onChange:t,options:n||s,onFilterValueChange:i=>o(s.filter(c=>c.label.toLowerCase().startsWith(i.toLowerCase())))})}const X3e=({setAttributes:e,avatar:t,attributes:n,selectUser:o})=>a.jsx(Te,{children:a.jsxs(De,{title:m("Settings"),children:[a.jsx(T0,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:m("Image size"),onChange:r=>e({size:r}),min:t.minSize,max:t.maxSize,initialPosition:n?.size,value:n?.size}),a.jsx(Be,{__nextHasNoMarginBottom:!0,label:m("Link to user profile"),onChange:()=>e({isLink:!n.isLink}),checked:n.isLink}),n.isLink&&a.jsx(Be,{__nextHasNoMarginBottom:!0,label:m("Open in new tab"),onChange:r=>e({linkTarget:r?"_blank":"_self"}),checked:n.linkTarget==="_blank"}),o&&a.jsx(wGt,{value:n?.userId,onChange:r=>{e({userId:r})}})]})}),F5=({setAttributes:e,attributes:t,avatar:n,blockProps:o,isSelected:r})=>{const s=ql(t),i=wt(rv(n?.src,["s"]),{s:t?.size*2});return a.jsx("div",{...o,children:a.jsx(Ui,{size:{width:t.size,height:t.size},showHandle:r,onResizeStop:(c,l,u,d)=>{e({size:parseInt(t.size+(d.height||d.width),10)})},lockAspectRatio:!0,enable:{top:!1,right:!ft(),bottom:!0,left:ft()},minWidth:n.minSize,maxWidth:n.maxSize,children:a.jsx("img",{src:i,alt:n.alt,className:$("avatar","avatar-"+t.size,"photo","wp-block-avatar__image",s.className),style:s.style})})})},kGt=({attributes:e,context:t,setAttributes:n,isSelected:o})=>{const{commentId:r}=t,s=ze(),i=vGt({commentId:r});return a.jsxs(a.Fragment,{children:[a.jsx(X3e,{avatar:i,setAttributes:n,attributes:e,selectUser:!1}),e.isLink?a.jsx("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:c=>c.preventDefault(),children:a.jsx(F5,{attributes:e,avatar:i,blockProps:s,isSelected:o,setAttributes:n})}):a.jsx(F5,{attributes:e,avatar:i,blockProps:s,isSelected:o,setAttributes:n})]})},qGt=({attributes:e,context:t,setAttributes:n,isSelected:o})=>{const{postId:r,postType:s}=t,i=xGt({userId:e?.userId,postId:r,postType:s}),c=ze();return a.jsxs(a.Fragment,{children:[a.jsx(X3e,{selectUser:!0,attributes:e,avatar:i,setAttributes:n}),e.isLink?a.jsx("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:l=>l.preventDefault(),children:a.jsx(F5,{attributes:e,avatar:i,blockProps:c,isSelected:o,setAttributes:n})}):a.jsx(F5,{attributes:e,avatar:i,blockProps:c,isSelected:o,setAttributes:n})]})};function SGt(e){return e?.context?.commentId||e?.context?.commentId===null?a.jsx(kGt,{...e}):a.jsx(qGt,{...e})}const O9={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/avatar",title:"Avatar",category:"theme",description:"Add a user’s avatar.",textdomain:"default",attributes:{userId:{type:"number"},size:{type:"number",default:96},isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},usesContext:["postType","postId","commentId"],supports:{html:!1,align:!0,alignWide:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{__experimentalSkipSerialization:!0,radius:!0,width:!0,color:!0,style:!0,__experimentalDefaultControls:{radius:!0}},color:{text:!1,background:!1,__experimentalDuotone:"img"},interactivity:{clientNavigation:!0}},selectors:{border:".wp-block-avatar img"},editorStyle:"wp-block-avatar-editor",style:"wp-block-avatar"},{name:G3e}=O9,K3e={icon:Yce,edit:SGt},CGt=()=>Ee({name:G3e,metadata:O9,settings:K3e}),RGt=Object.freeze(Object.defineProperty({__proto__:null,init:CGt,metadata:O9,name:G3e,settings:K3e},Symbol.toStringTag,{value:"Module"})),WGt=[{attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{align:!0},save({attributes:e}){const{autoplay:t,caption:n,loop:o,preload:r,src:s}=e;return a.jsxs("figure",{children:[a.jsx("audio",{controls:"controls",src:s,autoPlay:t,loop:o,preload:r}),!Ae.isEmpty(n)&&a.jsx(Ae.Content,{tagName:"figcaption",value:n})]})}}],$5=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.78",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],Y3e="wp-embed",{lock:TGt,unlock:Pn}=ar("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/block-library"),EGt={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string",__experimentalRole:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",__experimentalRole:"content"},type:{type:"string",__experimentalRole:"content"},providerNameSlug:{type:"string",__experimentalRole:"content"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1,__experimentalRole:"content"},previewable:{type:"boolean",default:!0,__experimentalRole:"content"}},supports:{align:!0,spacing:{margin:!0},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},{name:Bb}=EGt,{kebabCase:BGt}=Pn(L0),NGt=e=>Xx(Bb)?.find(({name:t})=>t===e),LGt=(e,t=[])=>t.some(n=>e.match(n)),jGt=e=>Xx(Bb)?.find(({patterns:t})=>LGt(e,t)),Z3e=e=>e&&e.includes('class="wp-embedded-content"'),PGt=e=>{const t=e.url||e.thumbnail_url,n=a.jsx("p",{children:a.jsx("img",{src:t,alt:e.title,width:"100%"})});return No(n)},Vk=(e,t={})=>{const{preview:n,attributes:o={}}=e,{url:r,providerNameSlug:s,type:i,...c}=o;if(!r||!Dt(Bb))return;const l=jGt(r),u=s==="wordpress"||i===Y3e;if(!u&&l&&(l.attributes.providerNameSlug!==s||!s))return me(Bb,{url:r,...c,...l.attributes});const p=Xx(Bb)?.find(({name:f})=>f==="wordpress");if(!(!p||!n||!Z3e(n.html)||u))return me(Bb,{url:r,...p.attributes,...t})},IGt=e=>e?$5.some(({className:t})=>e.includes(t)):!1,x4=e=>{if(!e)return e;const t=$5.reduce((o,{className:r})=>(o.push(r),o),["wp-has-aspect-ratio"]);let n=e;for(const o of t)n=n.replace(o,"");return n.trim()};function Q3e(e,t,n=!0){if(!n)return x4(t);const o=document.implementation.createHTMLDocument("");o.body.innerHTML=e;const r=o.body.querySelector("iframe");if(r&&r.height&&r.width){const s=(r.width/r.height).toFixed(2);for(let i=0;i<$5.length;i++){const c=$5[i];if(s>=c.ratio)return s-c.ratio>.1?x4(t):$(x4(t),c.className,"wp-has-aspect-ratio")}}return t}function DGt(e,t){t(me("core/paragraph",{content:No(a.jsx("a",{href:e,children:e}))}))}const FGt=fs((e,t,n,o,r=!0)=>{if(!e)return{};const s={};let{type:i="rich"}=e;const{html:c,provider_name:l}=e,u=BGt((l||t).toLowerCase());return Z3e(c)&&(i=Y3e),(c||i==="photo")&&(s.type=i,s.providerNameSlug=u),IGt(n)||(s.className=Q3e(c,n,o&&r)),s}),$Gt=(e,t,n,o)=>{const{allowResponsive:r,className:s}=e;return{...e,...FGt(t,n,s,o,r)}};function J3e(e,t,n){return D(o=>o(ce).canUser("update",{kind:e,name:t,id:n}),[e,t,n])}function Hk(e={}){const t=O.useRef(e),n=O.useRef(!1),{getSettings:o}=D(F);O.useLayoutEffect(()=>{t.current=e}),O.useEffect(()=>{if(n.current||!t.current.url||!n1(t.current.url))return;const r=Pre(t.current.url);if(!r)return;const{url:s,allowedTypes:i,onChange:c,onError:l}=t.current,{mediaUpload:u}=o();n.current=!0,u({filesList:[r],allowedTypes:i,onFileChange:([d])=>{n1(d?.url)||(S8(s),c(d),n.current=!1)},onError:d=>{S8(s),l(d),n.current=!1}})},[o])}function A9(){return g0("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}}}function Cf({attributeKey:e="caption",attributes:t,setAttributes:n,isSelected:o,insertBlocksAfter:r,placeholder:s=m("Add caption"),label:i=m("Caption text"),showToolbarButton:c=!0,excludeElementClassName:l,className:u,readOnly:d,tagName:p="figcaption",addLabel:f=m("Add caption"),removeLabel:b=m("Remove caption"),icon:h=AYe,...g}){const z=t[e],y=t1(z),{PrivateRichText:x}=Pn(p0),v=x.isEmpty(z),M=x.isEmpty(y),[A,_]=O.useState(!v);O.useEffect(()=>{!v&&M&&_(!0)},[v,M]),O.useEffect(()=>{!o&&v&&_(!1)},[o,v]);const w=O.useCallback(k=>{k&&v&&k.focus()},[v]);return a.jsxs(a.Fragment,{children:[c&&a.jsx(Ie,{group:"block",children:a.jsx(bt,{onClick:()=>{_(!A),A&&z&&n({[e]:void 0})},icon:h,isPressed:A,label:A?b:f})}),A&&(!x.isEmpty(z)||o)&&a.jsx(x,{identifier:e,tagName:p,className:$(u,l?"":ro("caption")),ref:w,"aria-label":i,placeholder:s,value:z,onChange:k=>n({[e]:k}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>r(me(jn())),readOnly:d,...g})]})}const zC=["audio"];function VGt({attributes:e,className:t,setAttributes:n,onReplace:o,isSelected:r,insertBlocksAfter:s}){const{id:i,autoplay:c,loop:l,preload:u,src:d}=e,[p,f]=O.useState(e.blob);Hk({url:p,allowedTypes:zC,onChange:x,onError:z});function b(A){return _=>{n({[A]:_})}}function h(A){if(A!==d){const _=Vk({attributes:{url:A}});if(_!==void 0&&o){o(_);return}n({src:A,id:void 0,blob:void 0}),f()}}const{createErrorNotice:g}=ae(Ze);function z(A){g(A,{type:"snackbar"})}function y(A){return A?m("Autoplay may cause usability issues for some users."):null}function x(A){if(!A||!A.url){n({src:void 0,id:void 0,caption:void 0,blob:void 0}),f();return}if(n1(A.url)){f(A.url);return}n({blob:void 0,src:A.url,id:A.id,caption:A.caption}),f()}const v=$(t,{"is-transient":!!p}),M=ze({className:v});return!d&&!p?a.jsx("div",{...M,children:a.jsx(kl,{icon:a.jsx(b0,{icon:Fce}),onSelect:x,onSelectURL:h,accept:"audio/*",allowedTypes:zC,value:e,onError:z})}):a.jsxs(a.Fragment,{children:[r&&a.jsx(Ie,{group:"other",children:a.jsx(rc,{mediaId:i,mediaURL:d,allowedTypes:zC,accept:"audio/*",onSelect:x,onSelectURL:h,onError:z,onReset:()=>x(void 0)})}),a.jsx(Te,{children:a.jsxs(De,{title:m("Settings"),children:[a.jsx(Be,{__nextHasNoMarginBottom:!0,label:m("Autoplay"),onChange:b("autoplay"),checked:c,help:y}),a.jsx(Be,{__nextHasNoMarginBottom:!0,label:m("Loop"),onChange:b("loop"),checked:l}),a.jsx(i0,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:Oe("Preload","noun; Audio block parameter"),value:u||"",onChange:A=>n({preload:A||void 0}),options:[{value:"",label:m("Browser default")},{value:"auto",label:m("Auto")},{value:"metadata",label:m("Metadata")},{value:"none",label:Oe("None","Preload value")}]})]})}),a.jsxs("figure",{...M,children:[a.jsx(rr,{isDisabled:!r,children:a.jsx("audio",{controls:"controls",src:d??p})}),!!p&&a.jsx(u0,{}),a.jsx(Cf,{attributes:e,setAttributes:n,isSelected:r,insertBlocksAfter:s,label:m("Audio caption text"),showToolbarButton:r})]})]})}function HGt({attributes:e}){const{autoplay:t,caption:n,loop:o,preload:r,src:s}=e;return s&&a.jsxs("figure",{...ze.save(),children:[a.jsx("audio",{controls:"controls",src:s,autoPlay:t,loop:o,preload:r}),!Ae.isEmpty(n)&&a.jsx(Ae.Content,{tagName:"figcaption",value:n,className:ro("caption")})]})}const UGt={from:[{type:"files",isMatch(e){return e.length===1&&e[0].type.indexOf("audio/")===0},transform(e){const t=e[0];return me("core/audio",{blob:Qc(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:({named:{src:e,mp3:t,m4a:n,ogg:o,wav:r,wma:s}})=>e||t||n||o||r||s},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}}]},y9={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/audio",title:"Audio",category:"media",description:"Embed a simple audio player.",keywords:["music","sound","podcast","recording"],textdomain:"default",attributes:{blob:{type:"string",__experimentalRole:"local"},src:{type:"string",source:"attribute",selector:"audio",attribute:"src",__experimentalRole:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",__experimentalRole:"content"},id:{type:"number",__experimentalRole:"content"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-audio-editor",style:"wp-block-audio"},{name:eOe}=y9,tOe={icon:Fce,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"},viewportWidth:350},transforms:UGt,deprecated:WGt,edit:VGt,save:HGt},XGt=()=>Ee({name:eOe,metadata:y9,settings:tOe}),GGt=Object.freeze(Object.defineProperty({__proto__:null,init:XGt,metadata:y9,name:eOe,settings:tOe},Symbol.toStringTag,{value:"Module"})),{cleanEmptyObject:KGt}=Pn(p0);function Po(e){if(!e?.style?.typography?.fontFamily)return e;const{fontFamily:t,...n}=e.style.typography;return{...e,style:KGt({...e.style,typography:n}),fontFamily:t.split("|").pop()}}const Yf=e=>{const{borderRadius:t,...n}=e,o=[t,n.style?.border?.radius].find(r=>typeof r=="number"&&r!==0);return o?{...n,style:{...n.style,border:{...n.style?.border,radius:`${o}px`}}}:n};function YGt(e){if(!e.align)return e;const{align:t,...n}=e;return{...n,className:$(n.className,`align${e.align}`)}}const JT=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient);const{customTextColor:n,customBackgroundColor:o,customGradient:r,...s}=e;return{...s,style:t}},OC=e=>{const{color:t,textColor:n,...o}={...e,customTextColor:e.textColor&&e.textColor[0]==="#"?e.textColor:void 0,customBackgroundColor:e.color&&e.color[0]==="#"?e.color:void 0};return JT(o)},bc={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"}},ZGt={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){const{fontSize:n,linkTarget:o,rel:r,style:s,text:i,title:c,url:l,width:u}=e;if(!i)return null;const d=As(e),p=rs(e),f=hO(e),b=$("wp-block-button__link",p.className,d.className,{"no-border-radius":s?.border?.radius===0}),h={...d.style,...p.style,...f.style},g=$(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":n||s?.typography?.fontSize});return a.jsx("div",{...ze.save({className:g}),children:a.jsx(Ae.Content,{tagName:"a",className:b,href:l,title:c,style:h,value:i,target:o,rel:r})})}},QGt={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){const{fontSize:n,linkTarget:o,rel:r,style:s,text:i,title:c,url:l,width:u}=e;if(!i)return null;const d=As(e),p=rs(e),f=hO(e),b=$("wp-block-button__link",p.className,d.className,{"no-border-radius":s?.border?.radius===0}),h={...d.style,...p.style,...f.style},g=$(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":n||s?.typography?.fontSize});return a.jsx("div",{...ze.save({className:g}),children:a.jsx(Ae.Content,{tagName:"a",className:b,href:l,title:c,style:h,value:i,target:o,rel:r})})},migrate:Po,isEligible({style:e}){return e?.typography?.fontFamily}},JGt=[ZGt,QGt,{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...bc,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},isEligible({style:e}){return typeof e?.border?.radius=="number"},save({attributes:e,className:t}){const{fontSize:n,linkTarget:o,rel:r,style:s,text:i,title:c,url:l,width:u}=e;if(!i)return null;const d=s?.border?.radius,p=rs(e),f=$("wp-block-button__link",p.className,{"no-border-radius":s?.border?.radius===0}),b={borderRadius:d||void 0,...p.style},h=$(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":n||s?.typography?.fontSize});return a.jsx("div",{...ze.save({className:h}),children:a.jsx(Ae.Content,{tagName:"a",className:f,href:l,title:c,style:b,value:i,target:o,rel:r})})},migrate:v0(Po,Yf)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...bc,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:n,linkTarget:o,rel:r,text:s,title:i,url:c,width:l}=e,u=rs(e),d=$("wp-block-button__link",u.className,{"no-border-radius":n===0}),p={borderRadius:n?n+"px":void 0,...u.style},f=$(t,{[`has-custom-width wp-block-button__width-${l}`]:l});return a.jsx("div",{...ze.save({className:f}),children:a.jsx(Ae.Content,{tagName:"a",className:d,href:c,title:i,style:p,value:s,target:o,rel:r})})},migrate:v0(Po,Yf)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...bc,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:n,linkTarget:o,rel:r,text:s,title:i,url:c,width:l}=e,u=rs(e),d=$("wp-block-button__link",u.className,{"no-border-radius":n===0}),p={borderRadius:n?n+"px":void 0,...u.style},f=$(t,{[`has-custom-width wp-block-button__width-${l}`]:l});return a.jsx("div",{...ze.save({className:f}),children:a.jsx(Ae.Content,{tagName:"a",className:d,href:c,title:i,style:p,value:s,target:o,rel:r})})},migrate:v0(Po,Yf)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...bc,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}},save({attributes:e}){const{borderRadius:t,linkTarget:n,rel:o,text:r,title:s,url:i}=e,c=$("wp-block-button__link",{"no-border-radius":t===0}),l={borderRadius:t?t+"px":void 0};return a.jsx(Ae.Content,{tagName:"a",className:c,href:i,title:s,style:l,value:r,target:n,rel:o})},migrate:Yf},{supports:{align:!0,alignWide:!1},attributes:{...bc,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customGradient:{type:"string"},gradient:{type:"string"}},isEligible:e=>!!e.customTextColor||!!e.customBackgroundColor||!!e.customGradient||!!e.align,migrate:v0(Yf,JT,YGt),save({attributes:e}){const{backgroundColor:t,borderRadius:n,customBackgroundColor:o,customTextColor:r,customGradient:s,linkTarget:i,gradient:c,rel:l,text:u,textColor:d,title:p,url:f}=e,b=lt("color",d),h=!s&<("background-color",t),g=lr(c),z=$("wp-block-button__link",{"has-text-color":d||r,[b]:b,"has-background":t||o||s||c,[h]:h,"no-border-radius":n===0,[g]:g}),y={background:s||void 0,backgroundColor:h||s||c?void 0:o,color:b?void 0:r,borderRadius:n?n+"px":void 0};return a.jsx("div",{children:a.jsx(Ae.Content,{tagName:"a",className:z,href:f,title:p,style:y,value:u,target:i,rel:l})})}},{attributes:{...bc,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"}},isEligible(e){return e.className&&e.className.includes("is-style-squared")},migrate(e){let t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),Yf(JT({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,customTextColor:o,linkTarget:r,rel:s,text:i,textColor:c,title:l,url:u}=e,d=lt("color",c),p=lt("background-color",t),f=$("wp-block-button__link",{"has-text-color":c||o,[d]:d,"has-background":t||n,[p]:p}),b={backgroundColor:p?void 0:n,color:d?void 0:o};return a.jsx("div",{children:a.jsx(Ae.Content,{tagName:"a",className:f,href:u,title:l,style:b,value:i,target:r,rel:s})})}},{attributes:{...bc,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:OC,save({attributes:e}){const{url:t,text:n,title:o,backgroundColor:r,textColor:s,customBackgroundColor:i,customTextColor:c}=e,l=lt("color",s),u=lt("background-color",r),d=$("wp-block-button__link",{"has-text-color":s||c,[l]:l,"has-background":r||i,[u]:u}),p={backgroundColor:u?void 0:i,color:l?void 0:c};return a.jsx("div",{children:a.jsx(Ae.Content,{tagName:"a",className:d,href:t,title:o,style:p,value:n})})}},{attributes:{...bc,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:n,title:o,align:r,color:s,textColor:i}=e,c={backgroundColor:s,color:i};return a.jsx("div",{className:`align${r}`,children:a.jsx(Ae.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:o,style:c,value:n})})},migrate:OC},{attributes:{...bc,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:n,title:o,align:r,color:s,textColor:i}=e;return a.jsx("div",{className:`align${r}`,style:{backgroundColor:s},children:a.jsx(Ae.Content,{tagName:"a",href:t,title:o,style:{color:i},value:n})})},migrate:OC}],AC="noreferrer noopener",nOe="_blank",_4="nofollow";function eKt({rel:e="",url:t="",opensInNewTab:n,nofollow:o}){let r,s=e;if(n)r=nOe,s=s?.includes(AC)?s:s+` ${AC}`;else{const i=new RegExp(`\\b${AC}\\s*`,"g");s=s?.replace(i,"").trim()}if(o)s=s?.includes(_4)?s:s+` ${_4}`;else{const i=new RegExp(`\\b${_4}\\s*`,"g");s=s?.replace(i,"").trim()}return{url:sf(t),linkTarget:r,rel:s||void 0}}function eE(e){return e.toString().replace(/<\/?a[^>]*>/g,"")}const tKt=[...Va.DEFAULT_LINK_SETTINGS,{id:"nofollow",title:m("Mark as nofollow")}];function nKt(e){const{replaceBlocks:t,selectionChange:n}=ae(F),{getBlock:o,getBlockRootClientId:r,getBlockIndex:s}=D(F),i=O.useRef(e);return i.current=e,Et(c=>{function l(u){if(u.defaultPrevented||u.keyCode!==y1)return;const{content:d,clientId:p}=i.current;if(d.length)return;u.preventDefault();const f=o(r(p)),b=s(p),h=pn({...f,innerBlocks:f.innerBlocks.slice(0,b)}),g=me(jn()),z=f.innerBlocks.slice(b+1),y=z.length?[pn({...f,innerBlocks:z})]:[];t(f.clientId,[h,g,...y],1),n(g.clientId)}return c.addEventListener("keydown",l),()=>{c.removeEventListener("keydown",l)}},[])}function oKt({selectedWidth:e,setAttributes:t}){function n(o){t({width:e===o?void 0:o})}return a.jsx(De,{title:m("Settings"),children:a.jsx(Bh,{"aria-label":m("Button width"),children:[25,50,75,100].map(o=>a.jsxs(fe,{size:"small",variant:o===e?"primary":void 0,onClick:()=>n(o),children:[o,"%"]},o))})})}function rKt(e){const{attributes:t,setAttributes:n,className:o,isSelected:r,onReplace:s,mergeBlocks:i,clientId:c,context:l}=e,{tagName:u,textAlign:d,linkTarget:p,placeholder:f,rel:b,style:h,text:g,url:z,width:y,metadata:x}=t,v=u||"a";function M(ee){$s.primary(ee,"k")?U(ee):$s.primaryShift(ee,"k")&&(X(),T.current?.focus())}const[A,_]=O.useState(null),w=ql(t),k=bO(t),q=hO(t),S=rm(t),C=O.useRef(),T=O.useRef(),W=ze({ref:Gt([_,C]),onKeyDown:M}),B=oo(),[N,E]=O.useState(!1),L=!!z,I=p===nOe,P=!!b?.includes(_4),H=v==="a";function U(ee){ee.preventDefault(),E(!0)}function X(){n({url:void 0,linkTarget:void 0,rel:void 0}),E(!1)}O.useEffect(()=>{r||E(!1)},[r]);const Z=O.useMemo(()=>({url:z,opensInNewTab:I,nofollow:P}),[z,I,P]),ne=nKt({content:g,clientId:c}),oe=Gt([ne,T]),{lockUrlControls:Y=!1}=D(ee=>{if(!r)return{};const ie=Pn(ee($e)).getBlockBindingsSource(x?.bindings?.url?.source);return{lockUrlControls:!!x?.bindings?.url&&!ie?.canUserEditValue?.({select:ee,context:l,args:x?.bindings?.url?.args})}},[l,r,x?.bindings?.url]);return a.jsxs(a.Fragment,{children:[a.jsx("div",{...W,className:$(W.className,{[`has-custom-width wp-block-button__width-${y}`]:y,"has-custom-font-size":W.style.fontSize}),children:a.jsx(Ae,{ref:oe,"aria-label":m("Button text"),placeholder:f||m("Add text…"),value:g,onChange:ee=>n({text:eE(ee)}),withoutInteractiveFormatting:!0,className:$(o,"wp-block-button__link",k.className,w.className,{[`has-text-align-${d}`]:d,"no-border-radius":h?.border?.radius===0},ro("button")),style:{...w.style,...k.style,...q.style,...S.style},onReplace:s,onMerge:i,identifier:"text"})}),a.jsxs(Ie,{group:"block",children:[B==="default"&&a.jsx(gn,{value:d,onChange:ee=>{n({textAlign:ee})}}),!L&&H&&!Y&&a.jsx(bt,{name:"link",icon:Qa,title:m("Link"),shortcut:Jo.primary("k"),onClick:U}),L&&H&&!Y&&a.jsx(bt,{name:"link",icon:Xu,title:m("Unlink"),shortcut:Jo.primaryShift("k"),onClick:X,isActive:!0})]}),H&&r&&(N||L)&&!Y&&a.jsx(Mn,{placement:"bottom",onClose:()=>{E(!1),T.current?.focus()},anchor:A,focusOnMount:N?"firstElement":!1,__unstableSlotName:"__unstable-block-tools-after",shift:!0,children:a.jsx(Va,{value:Z,onChange:({url:ee,opensInNewTab:ie,nofollow:se})=>n(eKt({rel:b,url:ee,opensInNewTab:ie,nofollow:se})),onRemove:()=>{X(),T.current?.focus()},forceIsEditingLink:N,settings:tKt})}),a.jsx(Te,{children:a.jsx(oKt,{selectedWidth:y,setAttributes:n})}),a.jsx(Te,{group:"advanced",children:H&&a.jsx($t,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:m("Link rel"),value:b||"",onChange:ee=>n({rel:ee})})})]})}function sKt({attributes:e,className:t}){const{tagName:n,type:o,textAlign:r,fontSize:s,linkTarget:i,rel:c,style:l,text:u,title:d,url:p,width:f}=e,b=n||"a",h=b==="button",g=o||"button",z=As(e),y=rs(e),x=hO(e),v=rm(e),M=$("wp-block-button__link",y.className,z.className,{[`has-text-align-${r}`]:r,"no-border-radius":l?.border?.radius===0},ro("button")),A={...z.style,...y.style,...x.style,...v.style},_=$(t,{[`has-custom-width wp-block-button__width-${f}`]:f,"has-custom-font-size":s||l?.typography?.fontSize});return a.jsx("div",{...ze.save({className:_}),children:a.jsx(Ae.Content,{tagName:b,type:h?g:null,className:M,href:h?null:p,title:d,style:A,value:u,target:h?null:i,rel:h?null:c})})}const v9={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/button",title:"Button",category:"design",parent:["core/buttons"],description:"Prompt visitors to take action with a button-style link.",keywords:["link"],textdomain:"default",attributes:{tagName:{type:"string",enum:["a","button"],default:"a"},type:{type:"string",default:"button"},textAlign:{type:"string"},url:{type:"string",source:"attribute",selector:"a",attribute:"href",__experimentalRole:"content"},title:{type:"string",source:"attribute",selector:"a,button",attribute:"title",__experimentalRole:"content"},text:{type:"rich-text",source:"rich-text",selector:"a,button",__experimentalRole:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",__experimentalRole:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,splitting:!0,align:!1,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:{__experimentalSkipSerialization:!0},spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-button .wp-block-button__link",interactivity:{clientNavigation:!0}},styles:[{name:"fill",label:"Fill",isDefault:!0},{name:"outline",label:"Outline"}],editorStyle:"wp-block-button-editor",style:"wp-block-button"},{name:oOe}=v9,rOe={icon:Hce,example:{attributes:{className:"is-style-fill",text:m("Call to Action")}},edit:rKt,save:sKt,deprecated:JGt,merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t})},iKt=()=>Ee({name:oOe,metadata:v9,settings:rOe}),aKt=Object.freeze(Object.defineProperty({__proto__:null,init:iKt,metadata:v9,name:oOe,settings:rOe},Symbol.toStringTag,{value:"Module"})),AQ=e=>{if(e.layout)return e;const{contentJustification:t,orientation:n,...o}=e;return(t||n)&&Object.assign(o,{layout:{type:"flex",...t&&{justifyContent:t},...n&&{orientation:n}}}),o},cKt=[{attributes:{contentJustification:{type:"string"},orientation:{type:"string",default:"horizontal"}},supports:{anchor:!0,align:["wide","full"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}}},isEligible:({contentJustification:e,orientation:t})=>!!e||!!t,migrate:AQ,save({attributes:{contentJustification:e,orientation:t}}){return a.jsx("div",{...ze.save({className:$({[`is-content-justification-${e}`]:e,"is-vertical":t==="vertical"})}),children:a.jsx(ht.Content,{})})}},{supports:{align:["center","left","right"],anchor:!0},save(){return a.jsx("div",{children:a.jsx(ht.Content,{})})},isEligible({align:e}){return e&&["center","left","right"].includes(e)},migrate(e){return AQ({...e,align:void 0,contentJustification:e.align})}}];function i2(e,t,n){if(!e)return;const{supports:o}=Dt(t),r=["core/paragraph","core/heading","core/image","core/button"],s=[];if(r.includes(t)&&n&&s.push("id","bindings"),o.renaming!==!1&&s.push("name"),!s.length)return;const i=Object.entries(e).reduce((c,[l,u])=>(s.includes(l)&&(c[l]=l==="bindings"?n(u):u),c),{});return Object.keys(i).length?i:void 0}const lKt={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>me("core/buttons",{},e.map(t=>me("core/button",t)))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>me("core/buttons",{},e.map(t=>{const{content:n,metadata:o}=t,r=_c(document,n),s=r.innerText||"",c=r.querySelector("a")?.getAttribute("href");return me("core/button",{text:s,url:c,metadata:i2(o,"core/button",({content:l})=>({text:l}))})})),isMatch:e=>e.every(t=>{const n=_c(document,t.content),o=n.innerText||"",r=n.querySelectorAll("a");return o.length<=30&&r.length<=1})}]},uKt={name:"core/button",attributesToCopy:["backgroundColor","border","className","fontFamily","fontSize","gradient","style","textColor","width"]};function dKt({attributes:e,className:t}){var n;const{fontSize:o,layout:r,style:s}=e,i=ze({className:$(t,{"has-custom-font-size":o||s?.typography?.fontSize})}),{hasButtonVariations:c}=D(u=>({hasButtonVariations:u($e).getBlockVariations("core/button","inserter").length>0}),[]),l=it(i,{defaultBlock:uKt,directInsert:!c,template:[["core/button"]],templateInsertUpdatesSelection:!0,orientation:(n=r?.orientation)!==null&&n!==void 0?n:"horizontal"});return a.jsx("div",{...l})}function pKt({attributes:e,className:t}){const{fontSize:n,style:o}=e,r=ze.save({className:$(t,{"has-custom-font-size":n||o?.typography?.fontSize})}),s=it.save(r);return a.jsx("div",{...s})}const x9={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/buttons",title:"Buttons",category:"design",allowedBlocks:["core/button"],description:"Prompt visitors to take action with a group of button-style links.",keywords:["link"],textdomain:"default",supports:{anchor:!0,align:["wide","full"],html:!1,__experimentalExposeControlsToChildren:!0,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},spacing:{blockGap:!0,padding:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"},{name:sOe}=x9,iOe={icon:OYe,example:{attributes:{layout:{type:"flex",justifyContent:"center"}},innerBlocks:[{name:"core/button",attributes:{text:m("Find out more")}},{name:"core/button",attributes:{text:m("Contact us")}}]},deprecated:cKt,transforms:lKt,edit:dKt,save:pKt},fKt=()=>Ee({name:sOe,metadata:x9,settings:iOe}),bKt=Object.freeze(Object.defineProperty({__proto__:null,init:fKt,metadata:x9,name:sOe,settings:iOe},Symbol.toStringTag,{value:"Module"})),hKt=fs(e=>{if(!e)return{};const t=new Date(e);return{year:t.getFullYear(),month:t.getMonth()+1}});function mKt({attributes:e}){const t=ze(),{date:n,hasPosts:o,hasPostsResolved:r}=D(s=>{const{getEntityRecords:i,hasFinishedResolution:c}=s(ce),l={status:"publish",per_page:1},u=i("postType","post",l),d=c("getEntityRecords",["postType","post",l]);let p;const f=s("core/editor");return f&&f.getEditedPostAttribute("type")==="post"&&(p=f.getEditedPostAttribute("date")),{date:p,hasPostsResolved:d,hasPosts:d&&u?.length===1}},[]);return o?a.jsx("div",{...t,children:a.jsx(rr,{children:a.jsx(OO,{block:"core/calendar",attributes:{...e,...hKt(n)}})})}):a.jsx("div",{...t,children:a.jsx(D0,{icon:Uce,label:m("Calendar"),children:r?m("No published posts found."):a.jsx(u0,{})})})}const MKt={from:[{type:"block",blocks:["core/archives"],transform:()=>me("core/calendar")}],to:[{type:"block",blocks:["core/archives"],transform:()=>me("core/archives")}]},_9={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/calendar",title:"Calendar",category:"widgets",description:"A calendar of your site’s posts.",keywords:["posts","archive"],textdomain:"default",attributes:{month:{type:"integer"},year:{type:"integer"}},supports:{align:!0,color:{link:!0,__experimentalSkipSerialization:["text","background"],__experimentalDefaultControls:{background:!0,text:!0},__experimentalSelector:"table, th"},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-calendar"},{name:aOe}=_9,cOe={icon:Uce,example:{},edit:mKt,transforms:MKt},gKt=()=>Ee({name:aOe,metadata:_9,settings:cOe}),zKt=Object.freeze(Object.defineProperty({__proto__:null,init:gKt,metadata:_9,name:aOe,settings:cOe},Symbol.toStringTag,{value:"Module"}));function lOe({attributes:{displayAsDropdown:e,showHierarchy:t,showPostCounts:n,showOnlyTopLevel:o,showEmpty:r,label:s,showLabel:i},setAttributes:c,className:l}){const u=He(lOe,"blocks-category-select"),d={per_page:-1,hide_empty:!r,context:"view"};o&&(d.parent=0);const{records:p,isResolving:f}=Gb("taxonomy","category",d),b=w=>p?.length?w===null?p:p.filter(({parent:k})=>k===w):[],h=w=>k=>c({[w]:k}),g=w=>w?kt(w).trim():m("(Untitled)"),z=()=>b(t?0:null).map(q=>y(q)),y=w=>{const k=b(w.id),{id:q,link:S,count:C,name:T}=w;return a.jsxs("li",{className:`cat-item cat-item-${q}`,children:[a.jsx("a",{href:S,target:"_blank",rel:"noreferrer noopener",children:g(T)}),n&&` (${C})`,t&&!!k.length&&a.jsx("ul",{className:"children",children:k.map(W=>y(W))})]},q)},x=()=>{const k=b(t?0:null);return a.jsxs(a.Fragment,{children:[i?a.jsx(Ae,{className:"wp-block-categories__label","aria-label":m("Label text"),placeholder:m("Categories"),withoutInteractiveFormatting:!0,value:s,onChange:q=>c({label:q})}):a.jsx(Kt,{as:"label",htmlFor:u,children:s||m("Categories")}),a.jsxs("select",{id:u,children:[a.jsx("option",{children:m("Select Category")}),k.map(q=>v(q,0))]})]})},v=(w,k)=>{const{id:q,count:S,name:C}=w,T=b(q);return[a.jsxs("option",{className:`level-${k}`,children:[Array.from({length:k*3}).map(()=>" "),g(C),n&&` (${S})`]},q),t&&!!T.length&&T.map(W=>v(W,k+1))]},M=p?.length&&!e&&!f?"ul":"div",A=$(l,{"wp-block-categories-list":!!p?.length&&!e&&!f,"wp-block-categories-dropdown":!!p?.length&&e&&!f}),_=ze({className:A});return a.jsxs(M,{..._,children:[a.jsx(Te,{children:a.jsxs(De,{title:m("Settings"),children:[a.jsx(Be,{__nextHasNoMarginBottom:!0,label:m("Display as dropdown"),checked:e,onChange:h("displayAsDropdown")}),e&&a.jsx(Be,{__nextHasNoMarginBottom:!0,className:"wp-block-categories__indentation",label:m("Show label"),checked:i,onChange:h("showLabel")}),a.jsx(Be,{__nextHasNoMarginBottom:!0,label:m("Show post counts"),checked:n,onChange:h("showPostCounts")}),a.jsx(Be,{__nextHasNoMarginBottom:!0,label:m("Show only top level categories"),checked:o,onChange:h("showOnlyTopLevel")}),a.jsx(Be,{__nextHasNoMarginBottom:!0,label:m("Show empty categories"),checked:r,onChange:h("showEmpty")}),!o&&a.jsx(Be,{__nextHasNoMarginBottom:!0,label:m("Show hierarchy"),checked:t,onChange:h("showHierarchy")})]})}),f&&a.jsx(D0,{icon:ble,label:m("Categories"),children:a.jsx(u0,{})}),!f&&p?.length===0&&a.jsx("p",{children:m("Your site does not have any posts, so there is nothing to display here at the moment.")}),!f&&p?.length>0&&(e?x():z())]})}const w9={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/categories",title:"Categories List",category:"widgets",description:"Display a list of all categories.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1},showOnlyTopLevel:{type:"boolean",default:!1},showEmpty:{type:"boolean",default:!1},label:{type:"string",__experimentalRole:"content"},showLabel:{type:"boolean",default:!0}},usesContext:["enhancedPagination"],supports:{align:!0,html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},editorStyle:"wp-block-categories-editor",style:"wp-block-categories"},{name:uOe}=w9,dOe={icon:d7,example:{},edit:lOe},OKt=()=>Ee({name:uOe,metadata:w9,settings:dOe}),AKt=Object.freeze(Object.defineProperty({__proto__:null,init:OKt,metadata:w9,name:uOe,settings:dOe},Symbol.toStringTag,{value:"Module"})),yKt=({clientId:e})=>{const{replaceBlocks:t}=ae(F),n=D(o=>o(F).getBlock(e),[e]);return a.jsx(bt,{onClick:()=>t(n.clientId,e3({HTML:Pr(n)})),children:m("Convert to blocks")})};function vKt({onClick:e,isModalFullScreen:t}){return g0("small","<")?null:a.jsx(fe,{__next40pxDefaultSize:!1,onClick:e,icon:Vv,isPressed:t,label:m(t?"Exit fullscreen":"Enter fullscreen")})}function xKt(e){const t=D(n=>n(F).getSettings().styles);return O.useEffect(()=>{const{baseURL:n,suffix:o,settings:r}=window.wpEditorL10n.tinymce;return window.tinymce.EditorManager.overrideDefaults({base_url:n,suffix:o}),window.wp.oldEditor.initialize(e.id,{tinymce:{...r,setup(s){s.on("init",()=>{const i=s.getDoc();t.forEach(({css:c})=>{const l=i.createElement("style");l.innerHTML=c,i.head.appendChild(l)})})}}}),()=>{window.wp.oldEditor.remove(e.id)}},[]),a.jsx("textarea",{...e})}function _Kt(e){const{clientId:t,attributes:{content:n},setAttributes:o,onReplace:r}=e,[s,i]=O.useState(!1),[c,l]=O.useState(!1),u=`editor-${t}`,d=()=>n?i(!1):r([]);return a.jsxs(a.Fragment,{children:[a.jsx(Ie,{children:a.jsx(c0,{children:a.jsx(bt,{onClick:()=>i(!0),children:m("Edit")})})}),n&&a.jsx(C1,{children:n}),(s||!n)&&a.jsxs(fn,{title:m("Classic Editor"),onRequestClose:d,shouldCloseOnClickOutside:!1,overlayClassName:"block-editor-freeform-modal",isFullScreen:c,className:"block-editor-freeform-modal__content",headerActions:a.jsx(vKt,{onClick:()=>l(!c),isModalFullScreen:c}),children:[a.jsx(xKt,{id:u,defaultValue:n}),a.jsxs(Q0,{className:"block-editor-freeform-modal__actions",justify:"flex-end",expanded:!1,children:[a.jsx(Ht,{children:a.jsx(fe,{__next40pxDefaultSize:!1,variant:"tertiary",onClick:d,children:m("Cancel")})}),a.jsx(Ht,{children:a.jsx(fe,{__next40pxDefaultSize:!1,variant:"primary",onClick:()=>{o({content:window.wp.oldEditor.getContent(u)}),i(!1)},children:m("Save")})})]})]})]})}const{wp:yQ}=window;function wKt(e){const t=e.getBody();return t.childNodes.length>1?!1:t.childNodes.length===0?!0:t.childNodes[0].childNodes.length>1?!1:/^\n?$/.test(t.innerText||t.textContent)}function kKt(e){const{clientId:t}=e,n=D(i=>i(F).canRemoveBlock(t),[t]),[o,r]=O.useState(!1),s=Et(i=>{r(i.ownerDocument!==document)},[]);return a.jsxs(a.Fragment,{children:[n&&a.jsx(Ie,{children:a.jsx(c0,{children:a.jsx(yKt,{clientId:t})})}),a.jsx("div",{...ze({ref:s}),children:o?a.jsx(_Kt,{...e}):a.jsx(qKt,{...e})})]})}function qKt({clientId:e,attributes:{content:t},setAttributes:n,onReplace:o}){const{getMultiSelectedBlockClientIds:r}=D(F),s=O.useRef(!1);O.useEffect(()=>{if(!s.current)return;const l=window.tinymce.get(`editor-${e}`);if(!l)return;l.getContent()!==t&&l.setContent(t||"")},[e,t]),O.useEffect(()=>{const{baseURL:l,suffix:u}=window.wpEditorL10n.tinymce;s.current=!0,window.tinymce.EditorManager.overrideDefaults({base_url:l,suffix:u});function d(b){let h;t&&b.on("loadContent",()=>b.setContent(t)),b.on("blur",()=>{h=b.selection.getBookmark(2,!0);const z=document.querySelector(".interface-interface-skeleton__content"),y=z.scrollTop;return r()?.length||n({content:b.getContent()}),b.once("focus",()=>{h&&(b.selection.moveToBookmark(h),z.scrollTop!==y&&(z.scrollTop=y))}),!1}),b.on("mousedown touchstart",()=>{h=null});const g=jr(()=>{const z=b.getContent();z!==b._lastChange&&(b._lastChange=z,n({content:z}))},250);b.on("Paste Change input Undo Redo",g),b.on("remove",g.cancel),b.on("keydown",z=>{$s.primary(z,"z")&&z.stopPropagation(),(z.keyCode===Si||z.keyCode===_a)&&wKt(b)&&(o([]),z.preventDefault(),z.stopImmediatePropagation());const{altKey:y}=z;y&&z.keyCode===V6e&&z.stopPropagation()}),b.on("init",()=>{const z=b.getBody();z.ownerDocument.activeElement===z&&(z.blur(),b.focus())})}function p(){const{settings:b}=window.wpEditorL10n.tinymce;yQ.oldEditor.initialize(`editor-${e}`,{tinymce:{...b,inline:!0,content_css:!1,fixed_toolbar_container:`#toolbar-${e}`,setup:d}})}function f(){document.readyState==="complete"&&p()}return document.readyState==="complete"?p():document.addEventListener("readystatechange",f),()=>{document.removeEventListener("readystatechange",f),yQ.oldEditor.remove(`editor-${e}`),s.current=!1}},[]);function i(){const l=window.tinymce.get(`editor-${e}`);l&&l.focus()}function c(l){l.stopPropagation(),l.nativeEvent.stopImmediatePropagation()}return a.jsxs(a.Fragment,{children:[a.jsx("div",{id:`toolbar-${e}`,className:"block-library-classic__toolbar",onClick:i,"data-placeholder":m("Classic"),onKeyDown:c},"toolbar"),a.jsx("div",{id:`editor-${e}`,className:"wp-block-freeform block-library-rich-text__tinymce"},"editor")]})}function SKt({attributes:e}){const{content:t}=e;return a.jsx(C1,{children:t})}const k9={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/freeform",title:"Classic",category:"text",description:"Use the classic WordPress editor.",textdomain:"default",attributes:{content:{type:"string",source:"raw"}},supports:{className:!1,customClassName:!1,reusable:!1},editorStyle:"wp-block-freeform-editor"},{name:V5}=k9,pOe={icon:yYe,edit:kKt,save:SKt},CKt=()=>Ee({name:V5,metadata:k9,settings:pOe}),RKt=Object.freeze(Object.defineProperty({__proto__:null,init:CKt,metadata:k9,name:V5,settings:pOe},Symbol.toStringTag,{value:"Module"}));function WKt({attributes:e,setAttributes:t,onRemove:n,insertBlocksAfter:o,mergeBlocks:r}){const s=ze();return a.jsx("pre",{...s,children:a.jsx(Ae,{tagName:"code",identifier:"content",value:e.content,onChange:i=>t({content:i}),onRemove:n,onMerge:r,placeholder:m("Write code…"),"aria-label":m("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>o(me(jn()))})})}function TKt(e){return Jl(EKt,BKt)(e||"")}function EKt(e){return e.replace(/\[/g,"[")}function BKt(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}function NKt({attributes:e}){return a.jsx("pre",{...ze.save(),children:a.jsx(Ae.Content,{tagName:"code",value:TKt(typeof e.content=="string"?e.content:e.content.toHTMLString({preserveWhiteSpace:!0}))})})}const LKt={from:[{type:"enter",regExp:/^```$/,transform:()=>me("core/code")},{type:"block",blocks:["core/paragraph"],transform:({content:e,metadata:t})=>me("core/code",{content:e,metadata:i2(t,"core/code")})},{type:"block",blocks:["core/html"],transform:({content:e,metadata:t})=>me("core/code",{content:K1({value:m0({text:e})}),metadata:i2(t,"core/code")})},{type:"raw",isMatch:e=>e.nodeName==="PRE"&&e.children.length===1&&e.firstChild.nodeName==="CODE",schema:{pre:{children:{code:{children:{"#text":{}}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:({content:e,metadata:t})=>me("core/paragraph",{content:e,metadata:i2(t,"core/paragraph")})}]},q9={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/code",title:"Code",category:"text",description:"Display code snippets that respect your spacing and tabs.",textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"code",__unstablePreserveWhiteSpace:!0}},supports:{align:["wide"],anchor:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{width:!0,color:!0}},color:{text:!0,background:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-code"},{name:fOe}=q9,bOe={icon:p7,example:{attributes:{content:m(`// A “block” is the abstract term used // to describe units of markup that // when composed together, form the // content or layout of a page. registerBlockType( name, settings );`)}},merge(e,t){return{content:e.content+` -`+t.content}},transforms:LKt,edit:WKt,save:NKt},jKt=()=>Ee({name:fOe,metadata:q9,settings:bOe}),PKt=Object.freeze(Object.defineProperty({__proto__:null,init:jKt,metadata:q9,name:fOe,settings:bOe},Symbol.toStringTag,{value:"Module"})),IKt=[{attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},isEligible({width:e}){return isFinite(e)},migrate(e){return{...e,width:`${e.width}%`}},save({attributes:e}){const{verticalAlignment:t,width:n}=e,o=$({[`is-vertically-aligned-${t}`]:t}),r={flexBasis:n+"%"};return a.jsx("div",{className:o,style:r,children:a.jsx(ht.Content,{})})}}];function DKt({width:e,setAttributes:t}){const[n]=O0("spacing.units"),o=Fr({availableUnits:n||["%","px","em","rem","vw"]});return a.jsx(De,{title:m("Settings"),children:a.jsx(H0,{label:m("Width"),__unstableInputWidth:"calc(50% - 8px)",__next40pxDefaultSize:!0,value:e||"",onChange:r=>{r=0>parseFloat(r)?"0":r,t({width:r})},units:o})})}function FKt({attributes:{verticalAlignment:e,width:t,templateLock:n,allowedBlocks:o},setAttributes:r,clientId:s}){const i=$("block-core-columns",{[`is-vertically-aligned-${e}`]:e}),{columnsIds:c,hasChildBlocks:l,rootClientId:u}=D(x=>{const{getBlockOrder:v,getBlockRootClientId:M}=x(F),A=M(s);return{hasChildBlocks:v(s).length>0,rootClientId:A,columnsIds:v(A)}},[s]),{updateBlockAttributes:d}=ae(F),p=x=>{r({verticalAlignment:x}),d(u,{verticalAlignment:null})},f=Number.isFinite(t)?t+"%":t,b=ze({className:i,style:f?{flexBasis:f}:void 0}),h=c.length,g=c.indexOf(s)+1,z=le(m("%1$s (%2$d of %3$d)"),b["aria-label"],g,h),y=it({...b,"aria-label":z},{templateLock:n,allowedBlocks:o,renderAppender:l?void 0:ht.ButtonBlockAppender});return a.jsxs(a.Fragment,{children:[a.jsx(Ie,{children:a.jsx(wme,{onChange:p,value:e,controls:["top","center","bottom","stretch"]})}),a.jsx(Te,{children:a.jsx(DKt,{width:t,setAttributes:r})}),a.jsx("div",{...y})]})}function $Kt({attributes:e}){const{verticalAlignment:t,width:n}=e,o=$({[`is-vertically-aligned-${t}`]:t});let r;if(n&&/\d/.test(n)){let c=Number.isFinite(n)?n+"%":n;!Number.isFinite(n)&&n?.endsWith("%")&&(c=Math.round(Number.parseFloat(n)*1e12)/1e12+"%"),r={flexBasis:c}}const s=ze.save({className:o,style:r}),i=it.save(s);return a.jsx("div",{...i})}const S9={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/column",title:"Column",category:"design",parent:["core/columns"],description:"A single column within a columns block.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},width:{type:"string"},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{__experimentalOnEnter:!0,anchor:!0,reusable:!1,html:!1,color:{gradients:!0,heading:!0,button:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},shadow:!0,spacing:{blockGap:!0,padding:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:!0,interactivity:{clientNavigation:!0}}},{name:hOe}=S9,mOe={icon:wYe,edit:FKt,save:$Kt,deprecated:IKt},VKt=()=>Ee({name:hOe,metadata:S9,settings:mOe}),HKt=Object.freeze(Object.defineProperty({__proto__:null,init:VKt,metadata:S9,name:hOe,settings:mOe},Symbol.toStringTag,{value:"Module"}));function H5(e){let{doc:t}=H5;t||(t=document.implementation.createHTMLDocument(""),H5.doc=t);let n;t.body.innerHTML=e;for(const o of t.body.firstChild.classList)if(n=o.match(/^layout-column-(\d+)$/))return Number(n[1])-1}const UKt=e=>{if(!e.customTextColor&&!e.customBackgroundColor)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor);const{customTextColor:n,customBackgroundColor:o,...r}=e;return{...r,style:t,isStackedOnMobile:!0}},XKt=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:UKt,save({attributes:e}){const{verticalAlignment:t,backgroundColor:n,customBackgroundColor:o,textColor:r,customTextColor:s}=e,i=lt("background-color",n),c=lt("color",r),l=$({"has-background":n||o,"has-text-color":r||s,[i]:i,[c]:c,[`are-vertically-aligned-${t}`]:t}),u={backgroundColor:i?void 0:o,color:c?void 0:s};return a.jsx("div",{className:l||void 0,style:u,children:a.jsx(ht.Content,{})})}},{attributes:{columns:{type:"number",default:2}},isEligible(e,t){return t.some(o=>/layout-column-\d+/.test(o.originalContent))?t.some(o=>H5(o.originalContent)!==void 0):!1},migrate(e,t){const o=t.reduce((i,c)=>{const{originalContent:l}=c;let u=H5(l);return u===void 0&&(u=0),i[u]||(i[u]=[]),i[u].push(c),i},[]).map(i=>me("core/column",{},i)),{columns:r,...s}=e;return[{...s,isStackedOnMobile:!0},o]},save({attributes:e}){const{columns:t}=e;return a.jsx("div",{className:`has-${t}-columns`,children:a.jsx(ht.Content,{})})}},{attributes:{columns:{type:"number",default:2}},migrate(e,t){const{columns:n,...o}=e;return e={...o,isStackedOnMobile:!0},[e,t]},save({attributes:e}){const{verticalAlignment:t,columns:n}=e,o=$(`has-${n}-columns`,{[`are-vertically-aligned-${t}`]:t});return a.jsx("div",{className:o,children:a.jsx(ht.Content,{})})}}],C9=e=>{const t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function MOe(e,t){const{width:n=100/t}=e.attributes;return C9(n)}function GKt(e,t=e.length){return e.reduce((n,o)=>n+MOe(o,t),0)}function KKt(e,t=e.length){return e.reduce((n,o)=>{const r=MOe(o,t);return Object.assign(n,{[o.clientId]:r})},{})}function vQ(e,t,n=e.length){const o=GKt(e,n);return Object.fromEntries(Object.entries(KKt(e,n)).map(([r,s])=>{const i=t*s/o;return[r,C9(i)]}))}function YKt(e){return e.every(t=>{const n=t.attributes.width;return Number.isFinite(n?.endsWith?.("%")?parseFloat(n):n)})}function xQ(e,t){return e.map(n=>({...n,attributes:{...n.attributes,width:`${t[n.clientId]}%`}}))}const ZKt={name:"core/column"};function QKt({clientId:e,setAttributes:t,isStackedOnMobile:n}){const{count:o,canInsertColumnBlock:r,minCount:s}=D(u=>{const{canInsertBlockType:d,canRemoveBlock:p,getBlocks:f,getBlockCount:b}=u(F),g=f(e).reduce((z,y,x)=>(p(y.clientId)||z.push(x),z),[]);return{count:b(e),canInsertColumnBlock:d("core/column",e),minCount:Math.max(...g)+1}},[e]),{getBlocks:i}=D(F),{replaceInnerBlocks:c}=ae(F);function l(u,d){let p=i(e);const f=YKt(p),b=d>u;if(b&&f){const h=C9(100/d),g=d-u,z=vQ(p,100-h*g);p=[...xQ(p,z),...Array.from({length:g}).map(()=>me("core/column",{width:`${h}%`}))]}else if(b)p=[...p,...Array.from({length:d-u}).map(()=>me("core/column"))];else if(dl(o,Math.max(s,u)),min:Math.max(1,s),max:Math.max(6,o)}),o>6&&a.jsx($s,{status:"warning",isDismissible:!1,children:m("This column count exceeds the recommended amount and may cause visual breakage.")})]}),a.jsx(Be,{__nextHasNoMarginBottom:!0,label:m("Stack on mobile"),checked:n,onChange:()=>t({isStackedOnMobile:!n})})]})}function JKt({attributes:e,setAttributes:t,clientId:n}){const{isStackedOnMobile:o,verticalAlignment:r,templateLock:s}=e,i=h0(),{getBlockOrder:c}=D(F),{updateBlockAttributes:l}=ae(F),u=$({[`are-vertically-aligned-${r}`]:r,"is-not-stacked-on-mobile":!o}),d=ze({className:u}),p=it(d,{defaultBlock:ZKt,directInsert:!0,orientation:"horizontal",renderAppender:!1,templateLock:s});function f(b){const h=c(n);i.batch(()=>{t({verticalAlignment:b}),l(h,{verticalAlignment:b})})}return a.jsxs(a.Fragment,{children:[a.jsx(Ie,{children:a.jsx(wme,{onChange:f,value:r})}),a.jsx(Te,{children:a.jsx(QKt,{clientId:n,setAttributes:t,isStackedOnMobile:o})}),a.jsx("div",{...p})]})}function eYt({clientId:e,name:t,setAttributes:n}){const{blockType:o,defaultVariation:r,variations:s}=D(l=>{const{getBlockVariations:u,getBlockType:d,getDefaultBlockVariation:p}=l($e);return{blockType:d(t),defaultVariation:p(t,"block"),variations:u(t,"block")}},[t]),{replaceInnerBlocks:i}=ae(F),c=ze();return a.jsx("div",{...c,children:a.jsx(yme,{icon:o?.icon?.src,label:o?.title,variations:s,instructions:m("Divide into columns. Select a layout:"),onSelect:(l=r)=>{l.attributes&&n(l.attributes),l.innerBlocks&&i(e,ju(l.innerBlocks),!0)},allowSkip:!0})})}const tYt=e=>{const{clientId:t}=e,o=D(r=>r(F).getBlocks(t).length>0,[t])?JKt:eYt;return a.jsx(o,{...e})};function nYt({attributes:e}){const{isStackedOnMobile:t,verticalAlignment:n}=e,o=$({[`are-vertically-aligned-${n}`]:n,"is-not-stacked-on-mobile":!t}),r=ze.save({className:o}),s=it.save(r);return a.jsx("div",{...s})}const oYt=[{name:"one-column-full",title:m("100"),description:m("One column"),icon:a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:a.jsx(J,{d:"M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:m("50 / 50"),description:m("Two columns; equal split"),icon:a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:a.jsx(J,{d:"M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10Z"})}),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:m("33 / 66"),description:m("Two columns; one-third, two-thirds split"),icon:a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:a.jsx(J,{d:"M0 10a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm17 0a2 2 0 0 1 2-2h27a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H19a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column",{width:"33.33%"}],["core/column",{width:"66.66%"}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:m("66 / 33"),description:m("Two columns; two-thirds, one-third split"),icon:a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:a.jsx(J,{d:"M0 10a2 2 0 0 1 2-2h27a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm33 0a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H35a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column",{width:"66.66%"}],["core/column",{width:"33.33%"}]],scope:["block"]},{name:"three-columns-equal",title:m("33 / 33 / 33"),description:m("Three columns; equal split"),icon:a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:a.jsx(J,{d:"M0 10a2 2 0 0 1 2-2h10.531c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H2a2 2 0 0 1-2-2V10Zm16.5 0c0-1.105.864-2 1.969-2H29.53c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H18.47c-1.105 0-1.969-.895-1.969-2V10Zm17 0c0-1.105.864-2 1.969-2H46a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H35.469c-1.105 0-1.969-.895-1.969-2V10Z"})}),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:m("25 / 50 / 25"),description:m("Three columns; wide center column"),icon:a.jsx(te,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:a.jsx(J,{d:"M0 10a2 2 0 0 1 2-2h7.531c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H2a2 2 0 0 1-2-2V10Zm13.5 0c0-1.105.864-2 1.969-2H32.53c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H15.47c-1.105 0-1.969-.895-1.969-2V10Zm23 0c0-1.105.864-2 1.969-2H46a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2h-7.531c-1.105 0-1.969-.895-1.969-2V10Z"})}),innerBlocks:[["core/column",{width:"25%"}],["core/column",{width:"50%"}],["core/column",{width:"25%"}]],scope:["block"]}],rYt=6,sYt={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{const t=+(100/e.length).toFixed(2),n=e.map(({name:o,attributes:r,innerBlocks:s})=>["core/column",{width:`${t}%`},[[o,{...r},s]]]);return me("core/columns",{},ju(n))},isMatch:({length:e},t)=>t.length===1&&t[0].name==="core/columns"?!1:e&&e<=rYt},{type:"block",blocks:["core/media-text"],priority:1,transform:(e,t)=>{const{align:n,backgroundColor:o,textColor:r,style:s,mediaAlt:i,mediaId:c,mediaPosition:l,mediaSizeSlug:u,mediaType:d,mediaUrl:p,mediaWidth:f,verticalAlignment:b}=e;let h;if(d==="image"||!d){const z={id:c,alt:i,url:p,sizeSlug:u},y={href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel};h=["core/image",{...z,...y}]}else h=["core/video",{id:c,src:p}];const g=[["core/column",{width:`${f}%`},[h]],["core/column",{width:`${100-f}%`},t]];return l==="right"&&g.reverse(),me("core/columns",{align:n,backgroundColor:o,textColor:r,style:s,verticalAlignment:b},ju(g))}}],ungroup:(e,t)=>t.flatMap(n=>n.innerBlocks)},R9={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/columns",title:"Columns",category:"design",allowedBlocks:["core/column"],description:"Display content in multiple columns, with blocks added to each column.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,heading:!0,button:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{blockGap:{__experimentalDefault:"2em",sides:["horizontal","vertical"]},margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,allowEditing:!1,default:{type:"flex",flexWrap:"nowrap"}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},shadow:!0},editorStyle:"wp-block-columns-editor",style:"wp-block-columns"},{name:gOe}=R9,zOe={icon:kYe,variations:oYt,example:{viewportWidth:782,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:m("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.")}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:m("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:m("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{content:m("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:XKt,edit:tYt,save:nYt,transforms:sYt},iYt=()=>Ee({name:gOe,metadata:R9,settings:zOe}),aYt=Object.freeze(Object.defineProperty({__proto__:null,init:iYt,metadata:R9,name:gOe,settings:zOe},Symbol.toStringTag,{value:"Module"})),cYt={attributes:{tagName:{type:"string",default:"div"}},apiVersion:3,supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}}},save({attributes:{tagName:e}}){const t=ze.save(),{className:n}=t,r=(n?.split(" ")||[])?.filter(i=>i!=="wp-block-comments"),s={...t,className:r.join(" ")};return a.jsx(e,{...s,children:a.jsx(ht.Content,{})})}},lYt=[cYt];function uYt({attributes:{tagName:e},setAttributes:t}){const n={section:m("The
element should represent a standalone portion of the document that can't be better represented by another element."),aside:m("The