From e6ce4269a3f298ee731395743267b9c12f556540 Mon Sep 17 00:00:00 2001 From: jorgefilipecosta Date: Thu, 10 Mar 2022 22:15:19 +0000 Subject: [PATCH] Update WordPress packages. Updates the WordPress packages to their most recent patch versions. Props xknown, sergey, audrasjb. Built from https://develop.svn.wordpress.org/branches/5.8@52887 git-svn-id: http://core.svn.wordpress.org/branches/5.8@52476 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/assets/script-loader-packages.php | 2 +- wp-includes/js/dist/block-library.js | 1 - wp-includes/js/dist/block-library.min.js | 2 +- wp-includes/js/dist/url.js | 7 ++++--- wp-includes/js/dist/url.min.js | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/wp-includes/assets/script-loader-packages.php b/wp-includes/assets/script-loader-packages.php index adb1ff86d5..2f360b0f0a 100644 --- a/wp-includes/assets/script-loader-packages.php +++ b/wp-includes/assets/script-loader-packages.php @@ -1 +1 @@ - array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => '0ac8327cc1c40dcfdf29716affd7ac63'), 'annotations.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '1c2dfcb00f9b6ccd16e93114b2dbc818'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '134e23b5f88ba06a093f9f92520a98df'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => '0e55c6c10f6d8a4bd90b2ea903436301'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => '4eca38a62df5f0145a5f1a78858581e7'), 'block-directory.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '59e39b168393c12505197fed91dc8d01'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-shortcode', 'wp-token-list', 'wp-url', 'wp-wordcount'), 'version' => 'fc8c27c6e95e7e0d59b4e344cb9ddfed'), 'block-library.js' => array('dependencies' => array('lodash', 'moment', 'react', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => '69fc06eecf1aeb26e48b8a47ed38179b'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => '2fc6dec19af6d4c5e5fec8f6fdc1a10b'), 'blocks.js' => array('dependencies' => array('lodash', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives', 'wp-shortcode'), 'version' => '7ed7fe32dad771c4e0af4f56539ff156'), 'components.js' => array('dependencies' => array('lodash', 'moment', 'react', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-warning'), 'version' => '413e179f8a99bd28091ba5cc6f72c9f3'), 'compose.js' => array('dependencies' => array('lodash', 'react', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-priority-queue'), 'version' => '35754587ca81a116927d3de1017f4fa0'), 'core-data.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => 'fe45a7066c931b4d3d0ff96789da023d'), 'customize-widgets.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-polyfill', 'wp-primitives', 'wp-widgets'), 'version' => '779dd942fa1333da9130a6c196eb972e'), 'data.js' => array('dependencies' => array('lodash', 'react', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-redux-routine'), 'version' => 'a9e98fe3ad76884fe7909ba8348395b7'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => 'cb4174d77c57f56732dc41d3bf3b2781'), 'date.js' => array('dependencies' => array('moment', 'wp-polyfill'), 'version' => '061439ac4325ef057b8f9c142c82a823'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '932d8bb37da8bbb396a7a3f754345e08'), 'dom.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'a82fdb54a6baeb86aa639117061bf119'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => '71883072590656bf22c74c7b887df3dd'), 'edit-post.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport', 'wp-warning'), 'version' => '3656613c515e40e95a15114467097b39'), 'edit-widgets.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => 'b186cec01f1a7bb6ab91380888bf69f0'), 'editor.js' => array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => '208cadf8632b62c7ccdf2f2feb2398e2'), 'element.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => '43a121e875f299c637e1115581bee905'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'dcba9e40e8782c7d5883426934834b3e'), 'format-library.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => 'c765b263eb6bc434e4b93dfc8771aaaf'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'a7edae857aab69d69fa10d5aef23a5de'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => '26307b6ad1e445fc1a4643f634cb29c6'), 'i18n.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '5f1269854226b4dd90450db411a12b79'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => '9b8d91804cfb3ef5b14e6ef816664072'), 'keyboard-shortcuts.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-keycodes', 'wp-polyfill'), 'version' => 'd70c8cb490d99422cf8f2693ab7e88d0'), 'keycodes.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => '0b881ee2324067c223d746a87ae4ddda'), 'list-reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '7c8729d53ccf387890a9e30b5b3499a2'), 'media-utils.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '8e557d69e3ef2356d081c60830d157a1'), 'notices.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => 'f5dfeda575085df54ed17c2d8a6afaa4'), 'nux.js' => array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '46c24b95e957ec52584b5a578e431817'), 'plugins.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-primitives'), 'version' => '01dbac2843febe57b20f01bdb7a432b8'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => 'fedf57cf6da174d1eca2875b8b730af3'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b2e76fb9887a285b5eff38763f2ac2fc'), 'redux-routine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'fd5f93d1f8206c65d1891cf1f898211e'), 'reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'f210f01a481601fc2639d3f839449c5c'), 'rich-text.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-escape-html', 'wp-keycodes', 'wp-polyfill'), 'version' => '10cd4e4656806fb1a6884c84213af69c'), 'server-side-render.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'e68a4eae1f1e1f9a993d3bfbb601bad3'), 'shortcode.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '361473450d55d9ffe30983cf22f42a8f'), 'token-list.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '4440092061c305ccc3ebf8ce18138c8a'), 'url.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'd4bdf85a96aa587b52f4b8d58b4457c1'), 'viewport.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '57f92677272305fe301d0d0616d6c8c7'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => '3e70e9d62208deeee510b84df4dec7f1'), 'widgets.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '2602721770ff18a259ab38ff3bac67bb'), 'wordcount.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '83b86052fd3fc408a609e60d52164115')); \ No newline at end of file + array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => '0ac8327cc1c40dcfdf29716affd7ac63'), 'annotations.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '1c2dfcb00f9b6ccd16e93114b2dbc818'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '134e23b5f88ba06a093f9f92520a98df'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => '0e55c6c10f6d8a4bd90b2ea903436301'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => '4eca38a62df5f0145a5f1a78858581e7'), 'block-directory.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '59e39b168393c12505197fed91dc8d01'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-shortcode', 'wp-token-list', 'wp-url', 'wp-wordcount'), 'version' => 'fc8c27c6e95e7e0d59b4e344cb9ddfed'), 'block-library.js' => array('dependencies' => array('lodash', 'moment', 'react', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => '8f03e4c7ff6b7d1f867630aae692e72c'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => '2fc6dec19af6d4c5e5fec8f6fdc1a10b'), 'blocks.js' => array('dependencies' => array('lodash', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives', 'wp-shortcode'), 'version' => '7ed7fe32dad771c4e0af4f56539ff156'), 'components.js' => array('dependencies' => array('lodash', 'moment', 'react', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-warning'), 'version' => '413e179f8a99bd28091ba5cc6f72c9f3'), 'compose.js' => array('dependencies' => array('lodash', 'react', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-priority-queue'), 'version' => '35754587ca81a116927d3de1017f4fa0'), 'core-data.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => 'fe45a7066c931b4d3d0ff96789da023d'), 'customize-widgets.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-polyfill', 'wp-primitives', 'wp-widgets'), 'version' => '779dd942fa1333da9130a6c196eb972e'), 'data.js' => array('dependencies' => array('lodash', 'react', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-redux-routine'), 'version' => 'a9e98fe3ad76884fe7909ba8348395b7'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => 'cb4174d77c57f56732dc41d3bf3b2781'), 'date.js' => array('dependencies' => array('moment', 'wp-polyfill'), 'version' => '061439ac4325ef057b8f9c142c82a823'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '932d8bb37da8bbb396a7a3f754345e08'), 'dom.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'a82fdb54a6baeb86aa639117061bf119'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => '71883072590656bf22c74c7b887df3dd'), 'edit-post.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport', 'wp-warning'), 'version' => '3656613c515e40e95a15114467097b39'), 'edit-widgets.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => 'b186cec01f1a7bb6ab91380888bf69f0'), 'editor.js' => array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => '208cadf8632b62c7ccdf2f2feb2398e2'), 'element.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => '43a121e875f299c637e1115581bee905'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'dcba9e40e8782c7d5883426934834b3e'), 'format-library.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => 'c765b263eb6bc434e4b93dfc8771aaaf'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'a7edae857aab69d69fa10d5aef23a5de'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => '26307b6ad1e445fc1a4643f634cb29c6'), 'i18n.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '5f1269854226b4dd90450db411a12b79'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => '9b8d91804cfb3ef5b14e6ef816664072'), 'keyboard-shortcuts.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-keycodes', 'wp-polyfill'), 'version' => 'd70c8cb490d99422cf8f2693ab7e88d0'), 'keycodes.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => '0b881ee2324067c223d746a87ae4ddda'), 'list-reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '7c8729d53ccf387890a9e30b5b3499a2'), 'media-utils.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '8e557d69e3ef2356d081c60830d157a1'), 'notices.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => 'f5dfeda575085df54ed17c2d8a6afaa4'), 'nux.js' => array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '46c24b95e957ec52584b5a578e431817'), 'plugins.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-primitives'), 'version' => '01dbac2843febe57b20f01bdb7a432b8'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => 'fedf57cf6da174d1eca2875b8b730af3'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b2e76fb9887a285b5eff38763f2ac2fc'), 'redux-routine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'fd5f93d1f8206c65d1891cf1f898211e'), 'reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'f210f01a481601fc2639d3f839449c5c'), 'rich-text.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-escape-html', 'wp-keycodes', 'wp-polyfill'), 'version' => '10cd4e4656806fb1a6884c84213af69c'), 'server-side-render.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'e68a4eae1f1e1f9a993d3bfbb601bad3'), 'shortcode.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '361473450d55d9ffe30983cf22f42a8f'), 'token-list.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '4440092061c305ccc3ebf8ce18138c8a'), 'url.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '9e623834b7667b522230408f099fc05f'), 'viewport.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '57f92677272305fe301d0d0616d6c8c7'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => '3e70e9d62208deeee510b84df4dec7f1'), 'widgets.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '2602721770ff18a259ab38ff3bac67bb'), 'wordcount.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '83b86052fd3fc408a609e60d52164115')); \ No newline at end of file diff --git a/wp-includes/js/dist/block-library.js b/wp-includes/js/dist/block-library.js index ccf0962371..bdfac938ec 100644 --- a/wp-includes/js/dist/block-library.js +++ b/wp-includes/js/dist/block-library.js @@ -3583,7 +3583,6 @@ function (_super) { }; _this.onTouchStart = function (e) { - e.preventDefault(); document.addEventListener('touchmove', _this.onTouchMove, { passive: false }); // iOS 11 now defaults to passive: true diff --git a/wp-includes/js/dist/block-library.min.js b/wp-includes/js/dist/block-library.min.js index 61d5b85a4e..8e9e985f84 100644 --- a/wp-includes/js/dist/block-library.min.js +++ b/wp-includes/js/dist/block-library.min.js @@ -20,7 +20,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var ot=function(e,t){return(ot=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(e,t)};var nt=function(){return(nt=Object.assign||function(e){for(var t,o=1,n=arguments.length;ou*r?{width:u*r,height:u}:{width:s,height:s/r}}function st(e,t,o,n,r){void 0===r&&(r=0);var a=jt(t.width,t.height,r),c=a.width,l=a.height;return{x:ut(e.x,c,o.width,n),y:ut(e.y,l,o.height,n)}}function ut(e,t,o,n){var r=t*n/2-o/2;return Math.min(r,Math.max(e,-r))}function mt(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function dt(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function bt(e,t,o,n,r,a,c){void 0===a&&(a=0),void 0===c&&(c=!0);var l=c&&0===a?pt:gt,i={x:l(100,((t.width-o.width/r)/2-e.x/r)/t.width*100),y:l(100,((t.height-o.height/r)/2-e.y/r)/t.height*100),width:l(100,o.width/t.width*100/r),height:l(100,o.height/t.height*100/r)},s=Math.round(l(t.naturalWidth,i.width*t.naturalWidth/100)),u=Math.round(l(t.naturalHeight,i.height*t.naturalHeight/100)),m=t.naturalWidth>=t.naturalHeight*n?{width:Math.round(u*n),height:u}:{width:s,height:Math.round(s/n)};return{croppedAreaPercentages:i,croppedAreaPixels:nt(nt({},m),{x:Math.round(l(t.naturalWidth-m.width,i.x*t.naturalWidth/100)),y:Math.round(l(t.naturalHeight-m.height,i.y*t.naturalHeight/100))})}}function pt(e,t){return Math.min(e,Math.max(0,t))}function gt(e,t){return t}function ht(e,t,o){var n=t.width/t.naturalWidth,r=function(e,t,o){var n=t.width/t.naturalWidth;if(o)return o.height>o.width?o.height/n/e.height:o.width/n/e.width;var r=e.width/e.height;return t.naturalWidth>=t.naturalHeight*r?t.naturalHeight/e.height:t.naturalWidth/e.width}(e,t,o),a=n*r;return{crop:{x:((t.naturalWidth-e.width)/2-e.x)*a,y:((t.naturalHeight-e.height)/2-e.y)*a},zoom:r}}function vt(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function Ot(e,t,o,n,r){var a=Math.cos,c=Math.sin,l=r*Math.PI/180;return[(e-o)*a(l)-(t-n)*c(l)+o,(e-o)*c(l)+(t-n)*a(l)+n]}function jt(e,t,o){var n=e/2,r=t/2,a=[Ot(0,0,n,r,o),Ot(e,0,n,r,o),Ot(e,t,n,r,o),Ot(0,t,n,r,o)],c=Math.min.apply(Math,a.map((function(e){return e[0]}))),l=Math.max.apply(Math,a.map((function(e){return e[0]}))),i=Math.min.apply(Math,a.map((function(e){return e[1]})));return{width:l-c,height:Math.max.apply(Math,a.map((function(e){return e[1]})))-i}}function ft(){for(var e=[],t=0;t0})).join(" ").trim()}var yt=function(e){function t(){var o=null!==e&&e.apply(this,arguments)||this;return o.imageRef=null,o.videoRef=null,o.containerRef=null,o.styleRef=null,o.containerRect=null,o.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},o.dragStartPosition={x:0,y:0},o.dragStartCrop={x:0,y:0},o.lastPinchDistance=0,o.lastPinchRotation=0,o.rafDragTimeout=null,o.rafPinchTimeout=null,o.wheelTimer=null,o.state={cropSize:null,hasWheelJustStarted:!1},o.preventZoomSafari=function(e){return e.preventDefault()},o.cleanEvents=function(){document.removeEventListener("mousemove",o.onMouseMove),document.removeEventListener("mouseup",o.onDragStopped),document.removeEventListener("touchmove",o.onTouchMove),document.removeEventListener("touchend",o.onDragStopped)},o.clearScrollEvent=function(){o.containerRef&&o.containerRef.removeEventListener("wheel",o.onWheel),o.wheelTimer&&clearTimeout(o.wheelTimer)},o.onMediaLoad=function(){o.computeSizes(),o.emitCropData(),o.setInitialCrop(),o.props.onMediaLoaded&&o.props.onMediaLoaded(o.mediaSize)},o.setInitialCrop=function(){var e=o.props,t=e.initialCroppedAreaPixels,n=e.cropSize;if(t){var r=ht(t,o.mediaSize,n),a=r.crop,c=r.zoom;o.props.onCropChange(a),o.props.onZoomChange&&o.props.onZoomChange(c)}},o.computeSizes=function(){var e,t,n,r,a,c,l=o.imageRef||o.videoRef;if(l&&o.containerRef){o.containerRect=o.containerRef.getBoundingClientRect(),o.mediaSize={width:l.offsetWidth,height:l.offsetHeight,naturalWidth:(null===(e=o.imageRef)||void 0===e?void 0:e.naturalWidth)||(null===(t=o.videoRef)||void 0===t?void 0:t.videoWidth)||0,naturalHeight:(null===(n=o.imageRef)||void 0===n?void 0:n.naturalHeight)||(null===(r=o.videoRef)||void 0===r?void 0:r.videoHeight)||0};var i=o.props.cropSize?o.props.cropSize:it(l.offsetWidth,l.offsetHeight,o.containerRect.width,o.containerRect.height,o.props.aspect,o.props.rotation);(null===(a=o.state.cropSize)||void 0===a?void 0:a.height)===i.height&&(null===(c=o.state.cropSize)||void 0===c?void 0:c.width)===i.width||o.props.onCropSizeChange&&o.props.onCropSizeChange(i),o.setState({cropSize:i},o.recomputeCropPosition)}},o.onMouseDown=function(e){e.preventDefault(),document.addEventListener("mousemove",o.onMouseMove),document.addEventListener("mouseup",o.onDragStopped),o.onDragStart(t.getMousePoint(e))},o.onMouseMove=function(e){return o.onDrag(t.getMousePoint(e))},o.onTouchStart=function(e){e.preventDefault(),document.addEventListener("touchmove",o.onTouchMove,{passive:!1}),document.addEventListener("touchend",o.onDragStopped),2===e.touches.length?o.onPinchStart(e):1===e.touches.length&&o.onDragStart(t.getTouchPoint(e.touches[0]))},o.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?o.onPinchMove(e):1===e.touches.length&&o.onDrag(t.getTouchPoint(e.touches[0]))},o.onDragStart=function(e){var t,n,r=e.x,a=e.y;o.dragStartPosition={x:r,y:a},o.dragStartCrop=nt({},o.props.crop),null===(n=(t=o.props).onInteractionStart)||void 0===n||n.call(t)},o.onDrag=function(e){var t=e.x,n=e.y;o.rafDragTimeout&&window.cancelAnimationFrame(o.rafDragTimeout),o.rafDragTimeout=window.requestAnimationFrame((function(){if(o.state.cropSize&&void 0!==t&&void 0!==n){var e=t-o.dragStartPosition.x,r=n-o.dragStartPosition.y,a={x:o.dragStartCrop.x+e,y:o.dragStartCrop.y+r},c=o.props.restrictPosition?st(a,o.mediaSize,o.state.cropSize,o.props.zoom,o.props.rotation):a;o.props.onCropChange(c)}}))},o.onDragStopped=function(){var e,t;o.cleanEvents(),o.emitCropData(),null===(t=(e=o.props).onInteractionEnd)||void 0===t||t.call(e)},o.onWheel=function(e){e.preventDefault();var n=t.getMousePoint(e),r=lt()(e).pixelY,a=o.props.zoom-r*o.props.zoomSpeed/200;o.setNewZoom(a,n),o.state.hasWheelJustStarted||o.setState({hasWheelJustStarted:!0},(function(){var e,t;return null===(t=(e=o.props).onInteractionStart)||void 0===t?void 0:t.call(e)})),o.wheelTimer&&clearTimeout(o.wheelTimer),o.wheelTimer=window.setTimeout((function(){return o.setState({hasWheelJustStarted:!1},(function(){var e,t;return null===(t=(e=o.props).onInteractionEnd)||void 0===t?void 0:t.call(e)}))}),250)},o.getPointOnContainer=function(e){var t=e.x,n=e.y;if(!o.containerRect)throw new Error("The Cropper is not mounted");return{x:o.containerRect.width/2-(t-o.containerRect.left),y:o.containerRect.height/2-(n-o.containerRect.top)}},o.getPointOnMedia=function(e){var t=e.x,n=e.y,r=o.props,a=r.crop,c=r.zoom;return{x:(t+a.x)/c,y:(n+a.y)/c}},o.setNewZoom=function(e,t){if(o.state.cropSize&&o.props.onZoomChange){var n=o.getPointOnContainer(t),r=o.getPointOnMedia(n),a=Math.min(o.props.maxZoom,Math.max(e,o.props.minZoom)),c={x:r.x*a-n.x,y:r.y*a-n.y},l=o.props.restrictPosition?st(c,o.mediaSize,o.state.cropSize,a,o.props.rotation):c;o.props.onCropChange(l),o.props.onZoomChange(a)}},o.getCropData=function(){return o.state.cropSize?bt(o.props.restrictPosition?st(o.props.crop,o.mediaSize,o.state.cropSize,o.props.zoom,o.props.rotation):o.props.crop,o.mediaSize,o.state.cropSize,o.getAspect(),o.props.zoom,o.props.rotation,o.props.restrictPosition):null},o.emitCropData=function(){var e=o.getCropData();if(e){var t=e.croppedAreaPercentages,n=e.croppedAreaPixels;o.props.onCropComplete&&o.props.onCropComplete(t,n),o.props.onCropAreaChange&&o.props.onCropAreaChange(t,n)}},o.emitCropAreaChange=function(){var e=o.getCropData();if(e){var t=e.croppedAreaPercentages,n=e.croppedAreaPixels;o.props.onCropAreaChange&&o.props.onCropAreaChange(t,n)}},o.recomputeCropPosition=function(){if(o.state.cropSize){var e=o.props.restrictPosition?st(o.props.crop,o.mediaSize,o.state.cropSize,o.props.zoom,o.props.rotation):o.props.crop;o.props.onCropChange(e),o.emitCropData()}},o}return function(e,t){function o(){this.constructor=e}ot(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}(t,e),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.computeSizes),this.containerRef&&(this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.preventZoomSafari),this.containerRef.addEventListener("gesturechange",this.preventZoomSafari)),this.props.disableAutomaticStylesInjection||(this.styleRef=document.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.styleRef.innerHTML=".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n width: 100%;\n height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n width: auto;\n height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n",document.head.appendChild(this.styleRef)),this.imageRef&&this.imageRef.complete&&this.onMediaLoad()},t.prototype.componentWillUnmount=function(){var e;window.removeEventListener("resize",this.computeSizes),this.containerRef&&(this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.containerRef.removeEventListener("gesturechange",this.preventZoomSafari)),this.styleRef&&(null===(e=this.styleRef.parentNode)||void 0===e||e.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent()},t.prototype.componentDidUpdate=function(e){var t,o,n,r,a,c,l,i,s;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(o=this.props.cropSize)||void 0===o?void 0:o.height)||(null===(n=e.cropSize)||void 0===n?void 0:n.width)!==(null===(r=this.props.cropSize)||void 0===r?void 0:r.width)?this.computeSizes():(null===(a=e.crop)||void 0===a?void 0:a.x)===(null===(c=this.props.crop)||void 0===c?void 0:c.x)&&(null===(l=e.crop)||void 0===l?void 0:l.y)===(null===(i=this.props.crop)||void 0===i?void 0:i.y)||this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video&&(null===(s=this.videoRef)||void 0===s||s.load())},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,o=e.aspect;return t?t.width/t.height:o},t.prototype.onPinchStart=function(e){var o=t.getTouchPoint(e.touches[0]),n=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=mt(o,n),this.lastPinchRotation=dt(o,n),this.onDragStart(vt(o,n))},t.prototype.onPinchMove=function(e){var o=this,n=t.getTouchPoint(e.touches[0]),r=t.getTouchPoint(e.touches[1]),a=vt(n,r);this.onDrag(a),this.rafPinchTimeout&&window.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=window.requestAnimationFrame((function(){var e=mt(n,r),t=o.props.zoom*(e/o.lastPinchDistance);o.setNewZoom(t,a),o.lastPinchDistance=e;var c=dt(n,r),l=o.props.rotation+(c-o.lastPinchRotation);o.props.onRotationChange&&o.props.onRotationChange(l),o.lastPinchRotation=c}))},t.prototype.render=function(){var e=this,t=this.props,o=t.image,n=t.video,r=t.mediaProps,a=t.transform,c=t.crop,l=c.x,i=c.y,s=t.rotation,u=t.zoom,m=t.cropShape,d=t.showGrid,b=t.style,p=b.containerStyle,g=b.cropAreaStyle,h=b.mediaStyle,v=t.classes,O=v.containerClassName,j=v.cropAreaClassName,f=v.mediaClassName,y=t.objectFit;return at.a.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:p,className:ft("reactEasyCrop_Container",O)},o?at.a.createElement("img",nt({alt:"",className:ft("reactEasyCrop_Image","contain"===y&&"reactEasyCrop_Contain","horizontal-cover"===y&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===y&&"reactEasyCrop_Cover_Vertical",f)},r,{src:o,ref:function(t){return e.imageRef=t},style:nt(nt({},h),{transform:a||"translate("+l+"px, "+i+"px) rotate("+s+"deg) scale("+u+")"}),onLoad:this.onMediaLoad})):n&&at.a.createElement("video",nt({autoPlay:!0,loop:!0,muted:!0,className:ft("reactEasyCrop_Video","contain"===y&&"reactEasyCrop_Contain","horizontal-cover"===y&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===y&&"reactEasyCrop_Cover_Vertical",f)},r,{ref:function(t){return e.videoRef=t},onLoadedMetadata:this.onMediaLoad,style:nt(nt({},h),{transform:a||"translate("+l+"px, "+i+"px) rotate("+s+"deg) scale("+u+")"}),controls:!1}),(Array.isArray(n)?n:[{src:n}]).map((function(e){return at.a.createElement("source",nt({key:e.src},e))}))),this.state.cropSize&&at.a.createElement("div",{style:nt(nt({},g),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:ft("reactEasyCrop_CropArea","round"===m&&"reactEasyCrop_CropAreaRound",d&&"reactEasyCrop_CropAreaGrid",j)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(at.a.Component);const _t={position:"bottom right",isAlternate:!0};var wt=o("ywyh"),kt=o.n(wt);var Et=o("g56x");function Ct(e,t){const o=function({url:e,naturalWidth:t,naturalHeight:o}){const[n,r]=Object(pe.useState)(),[a,c]=Object(pe.useState)(),[l,i]=Object(pe.useState)({x:0,y:0}),[s,u]=Object(pe.useState)(),[m,d]=Object(pe.useState)(),[b,p]=Object(pe.useState)(),[g,h]=Object(pe.useState)(),v=Object(pe.useCallback)(()=>{i({x:0,y:0}),u(100),d(0),p(t/o),h(t/o)},[t,o,i,u,d,p,h]),O=Object(pe.useCallback)(()=>{const n=(m+90)%360;let a=t/o;if(m%180==90&&(a=o/t),0===n)return r(),d(n),p(1/b),void i({x:-l.y*a,y:l.x*a});const c=new window.Image;c.src=e,c.onload=function(e){const t=document.createElement("canvas");let o=0,c=0;n%180?(t.width=e.target.height,t.height=e.target.width):(t.width=e.target.width,t.height=e.target.height),90!==n&&180!==n||(o=t.width),270!==n&&180!==n||(c=t.height);const s=t.getContext("2d");s.translate(o,c),s.rotate(n*Math.PI/180),s.drawImage(e.target,0,0),t.toBlob(e=>{r(URL.createObjectURL(e)),d(n),p(1/b),i({x:-l.y*a,y:l.x*a})})};const s=Object(Et.applyFilters)("media.crossOrigin",void 0,e);"string"==typeof s&&(c.crossOrigin=s)},[m,t,o,r,d,p,i]);return Object(pe.useMemo)(()=>({editedUrl:n,setEditedUrl:r,crop:a,setCrop:c,position:l,setPosition:i,zoom:s,setZoom:u,rotation:m,setRotation:d,rotateClockwise:O,aspect:b,setAspect:p,defaultAspect:g,initializeTransformValues:v}),[n,r,a,c,l,i,s,u,m,d,O,b,p,g,v])}(e),{initializeTransformValues:n}=o;return Object(pe.useEffect)(()=>{t&&n()},[t,n]),o}const xt=Object(pe.createContext)({}),St=()=>Object(pe.useContext)(xt);function Bt({id:e,url:t,naturalWidth:o,naturalHeight:n,isEditing:r,onFinishEditing:a,onSaveImage:c,children:l}){const i=Ct({url:t,naturalWidth:o,naturalHeight:n},r),s=function({crop:e,rotation:t,height:o,width:n,aspect:r,url:a,id:c,onSaveImage:l,onFinishEditing:i}){const{createErrorNotice:s}=Object(He.useDispatch)(qe.store),[u,m]=Object(pe.useState)(!1),d=Object(pe.useCallback)(()=>{m(!1),i()},[m,i]),b=Object(pe.useCallback)(()=>{m(!0);let u={};(e.width<99.9||e.height<99.9)&&(u=e),t>0&&(u.rotation=t),u.src=a,kt()({path:`/wp/v2/media/${c}/edit`,method:"POST",data:u}).then(e=>{l({id:e.id,url:e.source_url,height:o&&n?n/r:void 0})}).catch(e=>{s(Object(be.sprintf)(Object(be.__)("Could not edit image. %s"),e.message),{id:"image-editing-error",type:"snackbar"})}).finally(()=>{m(!1),i()})},[m,e,t,o,n,r,a,l,s,m,i]);return Object(pe.useMemo)(()=>({isInProgress:u,apply:b,cancel:d}),[u,b,d])}({id:e,url:t,onSaveImage:c,onFinishEditing:a,...i}),u=Object(pe.useMemo)(()=>({...i,...s}),[i,s]);return Object(pe.createElement)(xt.Provider,{value:u},l)}function Tt({url:e,width:t,height:o,clientWidth:n,naturalHeight:r,naturalWidth:a}){const{isInProgress:c,editedUrl:l,position:i,zoom:s,aspect:u,setPosition:m,setCrop:d,setZoom:b,rotation:p}=St();let g=o||n*r/a;return p%180==90&&(g=n*a/r),Object(pe.createElement)("div",{className:Oe()("wp-block-image__crop-area",{"is-applying":c}),style:{width:t||n,height:g}},Object(pe.createElement)(yt,{image:l||e,disabled:c,minZoom:1,maxZoom:3,crop:i,zoom:s/100,aspect:u,onCropChange:m,onCropComplete:e=>{d(e)},onZoomChange:e=>{b(100*e)}}),c&&Object(pe.createElement)(ke.Spinner,null))}var zt=o("cGtP");function Pt(){const{isInProgress:e,zoom:t,setZoom:o}=St();return Object(pe.createElement)(ke.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:_t,renderToggle:({isOpen:t,onToggle:o})=>Object(pe.createElement)(ke.ToolbarButton,{icon:zt.a,label:Object(be.__)("Zoom"),onClick:o,"aria-expanded":t,disabled:e}),renderContent:()=>Object(pe.createElement)(ke.RangeControl,{label:Object(be.__)("Zoom"),min:100,max:300,value:Math.round(t),onChange:o})})}var Nt=o("RMJe");var Mt=Object(pe.createElement)(ge.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(ge.Path,{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"}));function Rt({aspectRatios:e,isDisabled:t,label:o,onClick:n,value:r}){return Object(pe.createElement)(ke.MenuGroup,{label:o},e.map(({title:e,aspect:o})=>Object(pe.createElement)(ke.MenuItem,{key:o,disabled:t,onClick:()=>{n(o)},role:"menuitemradio",isSelected:o===r,icon:o===r?Nt.a:void 0},e)))}function Vt({toggleProps:e}){const{isInProgress:t,aspect:o,setAspect:n,defaultAspect:r}=St();return Object(pe.createElement)(ke.DropdownMenu,{icon:Mt,label:Object(be.__)("Aspect Ratio"),popoverProps:_t,toggleProps:e,className:"wp-block-image__aspect-ratio"},({onClose:e})=>Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(Rt,{isDisabled:t,onClick:t=>{n(t),e()},value:o,aspectRatios:[{title:Object(be.__)("Original"),aspect:r},{title:Object(be.__)("Square"),aspect:1}]}),Object(pe.createElement)(Rt,{label:Object(be.__)("Landscape"),isDisabled:t,onClick:t=>{n(t),e()},value:o,aspectRatios:[{title:Object(be.__)("16:10"),aspect:1.6},{title:Object(be.__)("16:9"),aspect:16/9},{title:Object(be.__)("4:3"),aspect:4/3},{title:Object(be.__)("3:2"),aspect:1.5}]}),Object(pe.createElement)(Rt,{label:Object(be.__)("Portrait"),isDisabled:t,onClick:t=>{n(t),e()},value:o,aspectRatios:[{title:Object(be.__)("10:16"),aspect:.625},{title:Object(be.__)("9:16"),aspect:9/16},{title:Object(be.__)("3:4"),aspect:3/4},{title:Object(be.__)("2:3"),aspect:2/3}]})))}var Ht=Object(pe.createElement)(ge.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(ge.Path,{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"}));function It(){const{isInProgress:e,rotateClockwise:t}=St();return Object(pe.createElement)(ke.ToolbarButton,{icon:Ht,label:Object(be.__)("Rotate"),onClick:t,disabled:e})}function Lt(){const{isInProgress:e,apply:t,cancel:o}=St();return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ke.ToolbarButton,{onClick:t,disabled:e},Object(be.__)("Apply")),Object(pe.createElement)(ke.ToolbarButton,{onClick:o},Object(be.__)("Cancel")))}function At({url:e,width:t,height:o,clientWidth:n,naturalHeight:r,naturalWidth:a}){return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(Tt,{url:e,width:t,height:o,clientWidth:n,naturalHeight:r,naturalWidth:a}),Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(ke.ToolbarGroup,null,Object(pe.createElement)(Pt,null),Object(pe.createElement)(ke.ToolbarItem,null,e=>Object(pe.createElement)(Vt,{toggleProps:e})),Object(pe.createElement)(It,null)),Object(pe.createElement)(ke.ToolbarGroup,null,Object(pe.createElement)(Lt,null))))}const Dt=["image"];function Ft({temporaryURL:e,attributes:{url:t="",alt:o,caption:n,align:r,id:a,href:c,rel:l,linkClass:i,linkDestination:s,title:u,width:m,height:d,linkTarget:b,sizeSlug:p},setAttributes:g,isSelected:h,insertBlocksAfter:v,onReplace:O,onSelectImage:j,onSelectURL:f,onUploadError:y,containerRef:_,clientId:w}){const k=Object(pe.useRef)(),E=Object(Ie.usePrevious)(t),{getBlock:C}=Object(He.useSelect)(ue.store),{image:x,multiImageSelection:S}=Object(He.useSelect)(e=>{const{getMedia:t}=e(se.store),{getMultiSelectedBlockClientIds:o,getBlockName:n}=e(ue.store),r=o();return{image:a&&h?t(a):null,multiImageSelection:r.length&&r.every(e=>"core/image"===n(e))}},[a,h]),{imageEditing:B,imageSizes:T,maxWidth:z,mediaUpload:P}=Object(He.useSelect)(e=>{const{getSettings:t}=e(ue.store);return Object(de.pick)(t(),["imageEditing","imageSizes","maxWidth","mediaUpload"])}),{replaceBlocks:N,toggleSelection:M}=Object(He.useDispatch)(ue.store),{createErrorNotice:R,createSuccessNotice:V}=Object(He.useDispatch)(qe.store),H=Object(Ie.useViewportMatch)("medium"),I=Object(de.includes)(["wide","full"],r),[{naturalWidth:L,naturalHeight:A},D]=Object(pe.useState)({}),[F,q]=Object(pe.useState)(!1),[G,U]=Object(pe.useState)(),W=tt(_,[r]),$=!I&&H,Z=Object(de.map)(Object(de.filter)(T,({slug:e})=>Object(de.get)(x,["media_details","sizes",e,"source_url"])),({name:e,slug:t})=>({value:t,label:e})),J=!!Object(me.getBlockType)("core/cover");Object(pe.useEffect)(()=>{qt(a,t)&&h&&!G&&window.fetch(t).then(e=>e.blob()).then(e=>U(e))},[a,t,h,G]),Object(pe.useEffect)(()=>{t&&!E&&h&&k.current.focus()},[t,E]),Object(pe.useEffect)(()=>{h||q(!1)},[h]);const Y=a&&L&&A&&B,K=!S&&Y&&!F;const Q=Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.BlockControls,{group:"block"},Object(pe.createElement)(ue.BlockAlignmentControl,{value:r,onChange:function(e){const t=["wide","full"].includes(e)?{width:void 0,height:void 0}:{};g({...t,align:e})}}),!S&&!F&&Object(pe.createElement)(ue.__experimentalImageURLInputUI,{url:c||"",onChangeUrl:function(e){g(e)},linkDestination:s,mediaUrl:x&&x.source_url||t,mediaLink:x&&x.link,linkTarget:b,linkClass:i,rel:l}),K&&Object(pe.createElement)(ke.ToolbarButton,{onClick:()=>q(!0),icon:Ae,label:Object(be.__)("Crop")}),G&&Object(pe.createElement)(ke.ToolbarButton,{onClick:function(){P({filesList:[G],onFileChange([e]){j(e),Object(Ve.isBlobURL)(e.url)||(U(),V(Object(be.__)("Image uploaded."),{type:"snackbar"}))},allowedTypes:Dt,onError(e){R(e,{type:"snackbar"})}})},icon:De.a,label:Object(be.__)("Upload external image")}),!S&&J&&Object(pe.createElement)(ke.ToolbarButton,{icon:Fe,label:Object(be.__)("Add text over image"),onClick:function(){N(w,Object(me.switchToBlockType)(C(w),"core/cover"))}})),!S&&!F&&Object(pe.createElement)(ue.BlockControls,{group:"other"},Object(pe.createElement)(ue.MediaReplaceFlow,{mediaId:a,mediaURL:t,allowedTypes:Dt,accept:"image/*",onSelect:j,onSelectURL:f,onError:y})),Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(ke.PanelBody,{title:Object(be.__)("Image settings")},!S&&Object(pe.createElement)(ke.TextareaControl,{label:Object(be.__)("Alt text (alternative text)"),value:o,onChange:function(e){g({alt:e})},help:Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ke.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(be.__)("Describe the purpose of the image")),Object(be.__)("Leave empty if the image is purely decorative."))}),Object(pe.createElement)(ue.__experimentalImageSizeControl,{onChangeImage:function(e){const t=Object(de.get)(x,["media_details","sizes",e,"source_url"]);if(!t)return null;g({url:t,width:void 0,height:void 0,sizeSlug:e})},onChange:e=>g(e),slug:p,width:m,height:d,imageSizeOptions:Z,isResizable:$,imageWidth:L,imageHeight:A}))),Object(pe.createElement)(ue.InspectorAdvancedControls,null,Object(pe.createElement)(ke.TextControl,{label:Object(be.__)("Title attribute"),value:u||"",onChange:function(e){g({title:e})},help:Object(pe.createElement)(pe.Fragment,null,Object(be.__)("Describe the role of this image on the page."),Object(pe.createElement)(ke.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"},Object(be.__)("(Note: many devices and browsers do not display this text.)")))}))),X=function(e){const t=Object(Le.getPath)(e);if(t)return Object(de.last)(t.split("/"))}(t);let ee;ee=o||(X?Object(be.sprintf)(Object(be.__)("This image has an empty alt attribute; its file name is %s"),X):Object(be.__)("This image has an empty alt attribute"));let te,oe,ne=Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)("img",{src:e||t,alt:ee,onError:()=>function(){const e=Ke({attributes:{url:t}});void 0!==e&&O(e)}(),onLoad:e=>{D(Object(de.pick)(e.target,["naturalWidth","naturalHeight"]))}}),e&&Object(pe.createElement)(ke.Spinner,null));if(W&&L&&A){const e=L>W,t=A/L;te=e?W:L,oe=e?W*t:A}if(Y&&F)ne=Object(pe.createElement)(At,{url:t,width:m,height:d,clientWidth:W,naturalHeight:A,naturalWidth:L});else if($&&te){const e=m||te,t=d||oe,o=L/A,n=L{M(!0),g({width:parseInt(e+a.width,10),height:parseInt(t+a.height,10)})}},ne)}else ne=Object(pe.createElement)("div",{style:{width:m,height:d}},ne);return Object(pe.createElement)(Bt,{id:a,url:t,naturalWidth:L,naturalHeight:A,clientWidth:W,onSaveImage:e=>g(e),isEditing:F,onFinishEditing:()=>q(!1)},!e&&Q,ne,(!ue.RichText.isEmpty(n)||h)&&Object(pe.createElement)(ue.RichText,{ref:k,tagName:"figcaption","aria-label":Object(be.__)("Image caption text"),placeholder:Object(be.__)("Add caption"),value:n,onChange:e=>g({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>v(Object(me.createBlock)("core/paragraph"))}))}const qt=(e,t)=>t&&!e&&!Object(Ve.isBlobURL)(t);var Gt=Object(ke.withNotices)((function({attributes:e,setAttributes:t,isSelected:o,className:n,noticeUI:r,insertBlocksAfter:a,noticeOperations:c,onReplace:l,clientId:i}){const{url:s="",alt:u,caption:m,align:d,id:b,width:p,height:g,sizeSlug:h}=e,[v,O]=Object(pe.useState)(),j=Object(pe.useRef)();Object(pe.useEffect)(()=>{j.current=u},[u]);const f=Object(pe.useRef)();Object(pe.useEffect)(()=>{f.current=m},[m]);const y=Object(pe.useRef)(),{imageDefaultSize:_,mediaUpload:w}=Object(He.useSelect)(e=>{const{getSettings:t}=e(ue.store);return Object(de.pick)(t(),["imageDefaultSize","mediaUpload"])},[]);function k(e){c.removeAllNotices(),c.createErrorNotice(e)}function E(o){var n,r,a,c,l;if(!o||!o.url)return void t({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0});if(Object(Ve.isBlobURL)(o.url))return void O(o.url);O();let i,u=((e,t)=>{const o=Object(de.pick)(e,["alt","id","link","caption"]);return o.url=Object(de.get)(e,["sizes",t,"url"])||Object(de.get)(e,["media_details","sizes",t,"source_url"])||e.url,o})(o,_);var m,d;f.current&&!Object(de.get)(u,["caption"])&&(u=Object(de.omit)(u,["caption"])),i=o.id&&o.id===b?{url:s}:{width:void 0,height:void 0,sizeSlug:(m=o,d=_,Object(de.has)(m,["sizes",d,"url"])||Object(de.has)(m,["media_details","sizes",d,"source_url"])?_:"full")};let p,g=e.linkDestination;if(!g)switch((null===(n=wp)||void 0===n||null===(r=n.media)||void 0===r||null===(a=r.view)||void 0===a||null===(c=a.settings)||void 0===c||null===(l=c.defaultProps)||void 0===l?void 0:l.link)||"none"){case"file":case"media":g="media";break;case"post":case"attachment":g="attachment";break;case"custom":g="custom";break;case"none":g="none"}switch(g){case"media":p=o.url;break;case"attachment":p=o.link}u.href=p,t({...u,...i,linkDestination:g})}function C(e){e!==s&&t({url:e,id:void 0,width:void 0,height:void 0,sizeSlug:_})}const x=((e,t)=>!e&&Object(Ve.isBlobURL)(t))(b,s);Object(pe.useEffect)(()=>{if(!x)return;const e=Object(Ve.getBlobByURL)(s);e&&w({filesList:[e],onFileChange:([e])=>{E(e)},allowedTypes:Dt,onError:e=>{c.createErrorNotice(e),t({src:void 0,id:void 0,url:void 0})}})},[]),Object(pe.useEffect)(()=>{if(v)return()=>{Object(Ve.revokeBlobURL)(v)}},[v]);const S=qt(b,s)?s:void 0,B=!!s&&Object(pe.createElement)("img",{alt:Object(be.__)("Edit image"),title:Object(be.__)("Edit image"),className:"edit-image-preview",src:s}),T=Oe()(n,{"is-transient":v,"is-resized":!!p||!!g,["size-"+h]:h}),z=Object(ue.useBlockProps)({ref:y,className:T});return Object(pe.createElement)("figure",z,(v||s)&&Object(pe.createElement)(Ft,{temporaryURL:v,attributes:e,setAttributes:t,isSelected:o,insertBlocksAfter:a,onReplace:l,onSelectImage:E,onSelectURL:C,onUploadError:k,containerRef:y,clientId:i}),!s&&Object(pe.createElement)(ue.BlockControls,{group:"block"},Object(pe.createElement)(ue.BlockAlignmentControl,{value:d,onChange:function(e){const o=["wide","full"].includes(e)?{width:void 0,height:void 0}:{};t({...o,align:e})}})),Object(pe.createElement)(ue.MediaPlaceholder,{icon:Object(pe.createElement)(ue.BlockIcon,{icon:Ne}),onSelect:E,onSelectURL:C,notices:r,onError:k,accept:"image/*",allowedTypes:Dt,value:{id:b,src:S},mediaPreview:B,disableMediaButtons:v||s}))}));function Ut(e,t){const{body:o}=document.implementation.createHTMLDocument("");o.innerHTML=e;const{firstElementChild:n}=o;if(n&&"A"===n.nodeName)return n.getAttribute(t)||void 0}const Wt={img:{attributes:["src","alt","title"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}};var $t={from:[{type:"raw",isMatch:e=>"FIGURE"===e.nodeName&&!!e.querySelector("img"),schema:({phrasingContentSchema:e})=>({figure:{require:["img"],children:{...Wt,a:{attributes:["href","rel","target"],children:Wt},figcaption:{children:e}}}}),transform:e=>{const t=e.className+" "+e.querySelector("img").className,o=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(t),n=""===e.id?void 0:e.id,r=o?o[1]:void 0,a=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(t),c=a?Number(a[1]):void 0,l=e.querySelector("a"),i=l&&l.href?"custom":void 0,s=l&&l.href?l.href:void 0,u=l&&l.rel?l.rel:void 0,m=l&&l.className?l.className:void 0,d=Object(me.getBlockAttributes)("core/image",e.outerHTML,{align:r,id:c,linkDestination:i,href:s,rel:u,linkClass:m,anchor:n});return Object(me.createBlock)("core/image",d)}},{type:"files",isMatch:e=>1===e.length&&0===e[0].type.indexOf("image/"),transform(e){const t=e[0];return Object(me.createBlock)("core/image",{url:Object(Ve.createBlobURL)(t)})}},{type:"shortcode",tag:"caption",attributes:{url:{type:"string",source:"attribute",attribute:"src",selector:"img"},alt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},caption:{shortcode:function(e,{shortcode:t}){const{body:o}=document.implementation.createHTMLDocument("");o.innerHTML=t.content;let n=o.querySelector("img");for(;n&&n.parentNode&&n.parentNode!==o;)n=n.parentNode;return n&&n.parentNode.removeChild(n),o.innerHTML.trim()}},href:{shortcode:(e,{shortcode:t})=>Ut(t.content,"href")},rel:{shortcode:(e,{shortcode:t})=>Ut(t.content,"rel")},linkClass:{shortcode:(e,{shortcode:t})=>Ut(t.content,"class")},id:{type:"number",shortcode:({named:{id:e}})=>{if(e)return parseInt(e.replace("attachment_",""),10)}},align:{type:"string",shortcode:({named:{align:e="alignnone"}})=>e.replace("align","")}}}]};const Zt={apiVersion:2,name:"core/image",title:"Image",category:"media",description:"Insert an image to make a visual statement.",keywords:["img","photo","picture"],textdomain:"default",attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},title:{type:"string",source:"attribute",selector:"img",attribute:"title"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{__experimentalDuotone:"img",text:!1,background:!1},__experimentalBorder:{radius:!0}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],editorStyle:"wp-block-image-editor",style:"wp-block-image"},{name:Jt}=Zt,Yt={icon:Ne,example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:Object(be.__)("Mont Blanc appears—still, snowy, and serene.")}},__experimentalLabel(e,{context:t}){if("accessibility"===t){const{caption:t,alt:o,url:n}=e;return n?o?o+(t?". "+t:""):t||"":Object(be.__)("Empty")}},getEditWrapperProps:e=>({"data-align":e.align}),transforms:$t,edit:Gt,save:function({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,rel:c,linkClass:l,width:i,height:s,id:u,linkTarget:m,sizeSlug:d,title:b}=e,p=Object(de.isEmpty)(c)?void 0:c,g=Oe()({["align"+r]:r,["size-"+d]:d,"is-resized":i||s}),h=Object(pe.createElement)("img",{src:t,alt:o,className:u?"wp-image-"+u:null,width:i,height:s,title:b}),v=Object(pe.createElement)(pe.Fragment,null,a?Object(pe.createElement)("a",{className:l,href:a,target:m,rel:p},h):h,!ue.RichText.isEmpty(n)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"figcaption",value:n}));return"left"===r||"right"===r||"center"===r?Object(pe.createElement)("div",ue.useBlockProps.save(),Object(pe.createElement)("figure",{className:g},v)):Object(pe.createElement)("figure",ue.useBlockProps.save({className:g}),v)},deprecated:Re};var Kt=Object(pe.createElement)(ge.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(ge.Path,{d:"M6.2 5.2v13.4l5.8-4.8 5.8 4.8V5.2z"}));const Qt={className:!1,anchor:!0},Xt={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"}},eo=e=>{if(!e.customTextColor)return e;const t={color:{text:e.customTextColor}};return{...Object(de.omit)(e,["customTextColor"]),style:t}},to=["left","right","center"],oo=e=>{const{align:t,...o}=e;return to.includes(t)?{...o,textAlign:t}:e};var no=[{supports:{align:["wide","full"],anchor:!0,className:!1,color:{link:!0},fontSize:!0,lineHeight:!0,__experimentalSelector:{"core/heading/h1":"h1","core/heading/h2":"h2","core/heading/h3":"h3","core/heading/h4":"h4","core/heading/h5":"h5","core/heading/h6":"h6"},__unstablePasteTextInline:!0},attributes:Xt,isEligible:({align:e})=>to.includes(e),migrate:oo,save({attributes:e}){const{align:t,content:o,level:n}=e,r="h"+n,a=Oe()({["has-text-align-"+t]:t});return Object(pe.createElement)(r,ue.useBlockProps.save({className:a}),Object(pe.createElement)(ue.RichText.Content,{value:o}))}},{supports:Qt,attributes:{...Xt,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>eo(oo(e)),save({attributes:e}){const{align:t,content:o,customTextColor:n,level:r,textColor:a}=e,c="h"+r,l=Object(ue.getColorClassName)("color",a),i=Oe()({[l]:l,"has-text-color":a||n,["has-text-align-"+t]:t});return Object(pe.createElement)(ue.RichText.Content,{className:i||void 0,tagName:c,style:{color:l?void 0:n},value:o})}},{attributes:{...Xt,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>eo(oo(e)),save({attributes:e}){const{align:t,content:o,customTextColor:n,level:r,textColor:a}=e,c="h"+r,l=Object(ue.getColorClassName)("color",a),i=Oe()({[l]:l,["has-text-align-"+t]:t});return Object(pe.createElement)(ue.RichText.Content,{className:i||void 0,tagName:c,style:{color:l?void 0:n},value:o})},supports:Qt},{supports:Qt,attributes:{...Xt,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>eo(oo(e)),save({attributes:e}){const{align:t,level:o,content:n,textColor:r,customTextColor:a}=e,c="h"+o,l=Object(ue.getColorClassName)("color",r),i=Oe()({[l]:l});return Object(pe.createElement)(ue.RichText.Content,{className:i||void 0,tagName:c,style:{textAlign:t,color:l?void 0:a},value:n})}}],ro=o("RxS6");function ao({level:e,isPressed:t=!1}){const o={1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.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.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z"};return o.hasOwnProperty(e)?Object(pe.createElement)(ke.SVG,{width:"24",height:"24",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:t},Object(pe.createElement)(ke.Path,{d:o[e]})):null}const co=[1,2,3,4,5,6],lo={className:"block-library-heading-level-dropdown",isAlternate:!0};function io({selectedLevel:e,onChange:t}){return Object(pe.createElement)(ke.Dropdown,{popoverProps:lo,renderToggle:({onToggle:t,isOpen:o})=>Object(pe.createElement)(ke.ToolbarButton,{"aria-expanded":o,"aria-haspopup":"true",icon:Object(pe.createElement)(ao,{level:e}),label:Object(be.__)("Change heading level"),onClick:t,onKeyDown:e=>{o||e.keyCode!==ro.DOWN||(e.preventDefault(),e.stopPropagation(),t())},showTooltip:!0}),renderContent:()=>Object(pe.createElement)(ke.Toolbar,{className:"block-library-heading-level-toolbar",label:Object(be.__)("Change heading level")},Object(pe.createElement)(ke.ToolbarGroup,{isCollapsed:!1,controls:co.map(o=>{const n=o===e;return{icon:Object(pe.createElement)(ao,{level:o,isPressed:n}),title:Object(be.sprintf)(Object(be.__)("Heading %d"),o),isActive:n,onClick(){t(o)}}})}))})}var so=function({attributes:e,setAttributes:t,mergeBlocks:o,onReplace:n,mergedStyle:r,clientId:a}){const{textAlign:c,content:l,level:i,placeholder:s}=e,u="h"+i,m=Object(ue.useBlockProps)({className:Oe()({["has-text-align-"+c]:c}),style:r});return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.BlockControls,{group:"block"},Object(pe.createElement)(io,{selectedLevel:i,onChange:e=>t({level:e})}),Object(pe.createElement)(ue.AlignmentControl,{value:c,onChange:e=>{t({textAlign:e})}})),Object(pe.createElement)(ue.RichText,Object(we.a)({identifier:"content",tagName:u,value:l,onChange:e=>t({content:e}),onMerge:o,onSplit:(t,o)=>{let n;return n=o||t?Object(me.createBlock)("core/heading",{...e,content:t}):Object(me.createBlock)("core/paragraph"),o&&(n.clientId=a),n},onReplace:n,onRemove:()=>n([]),"aria-label":Object(be.__)("Heading text"),placeholder:s||Object(be.__)("Heading"),textAlign:c},m)))};const{name:uo}={apiVersion:2,name:"core/heading",title:"Heading",category:"text",description:"Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.",keywords:["title","subtitle"],textdomain:"default",attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",__experimentalRole:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},supports:{align:["wide","full"],anchor:!0,className:!1,color:{link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontWeight:!0},__experimentalSelector:"h1,h2,h3,h4,h5,h6",__unstablePasteTextInline:!0},editorStyle:"wp-block-heading-editor",style:"wp-block-heading"};var mo={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map(({content:e,anchor:t})=>Object(me.createBlock)(uo,{content:e,anchor:t}))},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:({phrasingContentSchema:e,isPaste:t})=>{const o={children:e,attributes:t?[]:["style","id"]};return{h1:o,h2:o,h3:o,h4:o,h5:o,h6:o}},transform(e){const t=Object(me.getBlockAttributes)(uo,e.outerHTML),{textAlign:o}=e.style||{};var n;return t.level=(n=e.nodeName,Number(n.substr(1))),"left"!==o&&"center"!==o&&"right"!==o||(t.align=o),Object(me.createBlock)(uo,t)}},...[1,2,3,4,5,6].map(e=>({type:"prefix",prefix:Array(e+1).join("#"),transform:t=>Object(me.createBlock)(uo,{level:e,content:t})})),...[1,2,3,4,5,6].map(e=>({type:"enter",regExp:new RegExp(`^/(h|H)${e}$`),transform:t=>Object(me.createBlock)(uo,{level:e,content:t})}))],to:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map(({content:e,anchor:t})=>Object(me.createBlock)("core/paragraph",{content:e,anchor:t}))}]};const bo={apiVersion:2,name:"core/heading",title:"Heading",category:"text",description:"Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.",keywords:["title","subtitle"],textdomain:"default",attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",__experimentalRole:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},supports:{align:["wide","full"],anchor:!0,className:!1,color:{link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontWeight:!0},__experimentalSelector:"h1,h2,h3,h4,h5,h6",__unstablePasteTextInline:!0},editorStyle:"wp-block-heading-editor",style:"wp-block-heading"},{name:po}=bo,go={icon:Kt,example:{attributes:{content:Object(be.__)("Code is Poetry"),level:2}},__experimentalLabel(e,{context:t}){if("accessibility"===t){const{content:t,level:o}=e;return Object(de.isEmpty)(t)?Object(be.sprintf)(Object(be.__)("Level %s. Empty."),o):Object(be.sprintf)(Object(be.__)("Level %1$s. %2$s"),o,t)}},transforms:mo,deprecated:no,merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),edit:so,save:function({attributes:e}){const{textAlign:t,content:o,level:n}=e,r="h"+n,a=Oe()({["has-text-align-"+t]:t});return Object(pe.createElement)(r,ue.useBlockProps.save({className:a}),Object(pe.createElement)(ue.RichText.Content,{value:o}))}};var ho=Object(pe.createElement)(ge.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(ge.Path,{d:"M13 6v6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H13zm-9 6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H4v6z"}));const vo={value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}};var Oo=[{attributes:vo,save({attributes:e}){const{align:t,value:o,citation:n}=e;return Object(pe.createElement)("blockquote",{style:{textAlign:t||null}},Object(pe.createElement)(ue.RichText.Content,{multiline:!0,value:o}),!ue.RichText.isEmpty(n)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"cite",value:n}))}},{attributes:{...vo,style:{type:"number",default:1}},migrate:e=>2===e.style?{...Object(de.omit)(e,["style"]),className:e.className?e.className+" is-style-large":"is-style-large"}:e,save({attributes:e}){const{align:t,value:o,citation:n,style:r}=e;return Object(pe.createElement)("blockquote",{className:2===r?"is-large":"",style:{textAlign:t||null}},Object(pe.createElement)(ue.RichText.Content,{multiline:!0,value:o}),!ue.RichText.isEmpty(n)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"cite",value:n}))}},{attributes:{...vo,citation:{type:"string",source:"html",selector:"footer",default:""},style:{type:"number",default:1}},save({attributes:e}){const{align:t,value:o,citation:n,style:r}=e;return Object(pe.createElement)("blockquote",{className:"blocks-quote-style-"+r,style:{textAlign:t||null}},Object(pe.createElement)(ue.RichText.Content,{multiline:!0,value:o}),!ue.RichText.isEmpty(n)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"footer",value:n}))}}];const jo="web"===pe.Platform.OS;var fo=o("qRz9");var yo={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>Object(me.createBlock)("core/quote",{value:Object(fo.toHTMLString)({value:Object(fo.join)(e.map(({content:e})=>Object(fo.create)({html:e})),"\u2028"),multilineTag:"p"}),anchor:e.anchor})},{type:"block",blocks:["core/heading"],transform:({content:e,anchor:t})=>Object(me.createBlock)("core/quote",{value:`

${e}

`,anchor:t})},{type:"block",blocks:["core/pullquote"],transform:({value:e,citation:t,anchor:o})=>Object(me.createBlock)("core/quote",{value:e,citation:t,anchor:o})},{type:"prefix",prefix:">",transform:e=>Object(me.createBlock)("core/quote",{value:`

${e}

`})},{type:"raw",isMatch:e=>{const t=(()=>{let e=!1;return t=>"P"===t.nodeName||(e||"CITE"!==t.nodeName?void 0:(e=!0,!0))})();return"BLOCKQUOTE"===e.nodeName&&Array.from(e.childNodes).every(t)},schema:({phrasingContentSchema:e})=>({blockquote:{children:{p:{children:e},cite:{children:e}}}})}],to:[{type:"block",blocks:["core/paragraph"],transform:({value:e,citation:t})=>{const o=[];return e&&"

"!==e&&o.push(...Object(fo.split)(Object(fo.create)({html:e,multilineTag:"p"}),"\u2028").map(e=>Object(me.createBlock)("core/paragraph",{content:Object(fo.toHTMLString)({value:e})}))),t&&"

"!==t&&o.push(Object(me.createBlock)("core/paragraph",{content:t})),0===o.length?Object(me.createBlock)("core/paragraph",{content:""}):o}},{type:"block",blocks:["core/heading"],transform:({value:e,citation:t,...o})=>{if("

"===e)return Object(me.createBlock)("core/heading",{content:t});const n=Object(fo.split)(Object(fo.create)({html:e,multilineTag:"p"}),"\u2028"),r=Object(me.createBlock)("core/heading",{content:Object(fo.toHTMLString)({value:n[0]})});if(!t&&1===n.length)return r;const a=n.slice(1);return[r,Object(me.createBlock)("core/quote",{...o,citation:t,value:Object(fo.toHTMLString)({value:a.length?Object(fo.join)(n.slice(1),"\u2028"):Object(fo.create)(),multilineTag:"p"})})]}},{type:"block",blocks:["core/pullquote"],transform:({value:e,citation:t,anchor:o})=>Object(me.createBlock)("core/pullquote",{value:e,citation:t,anchor:o})}]};const _o={apiVersion:2,name:"core/quote",title:"Quote",category:"text",description:'Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar',keywords:["blockquote","cite"],textdomain:"default",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",__experimentalRole:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",__experimentalRole:"content"},align:{type:"string"}},supports:{anchor:!0},styles:[{name:"default",label:"Default",isDefault:!0},{name:"large",label:"Large"}],editorStyle:"wp-block-quote-editor",style:"wp-block-quote"},{name:wo}=_o,ko={icon:ho,example:{attributes:{value:"

"+Object(be.__)("In quoting others, we cite ourselves.")+"

",citation:"Julio Cortázar",className:"is-style-large"}},transforms:yo,edit:function({attributes:e,setAttributes:t,isSelected:o,mergeBlocks:n,onReplace:r,className:a,insertBlocksAfter:c,mergedStyle:l}){const{align:i,value:s,citation:u}=e,m=Object(ue.useBlockProps)({className:Oe()(a,{["has-text-align-"+i]:i}),style:l});return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.BlockControls,{group:"block"},Object(pe.createElement)(ue.AlignmentControl,{value:i,onChange:e=>{t({align:e})}})),Object(pe.createElement)(ke.BlockQuotation,m,Object(pe.createElement)(ue.RichText,{identifier:"value",multiline:!0,value:s,onChange:e=>t({value:e}),onMerge:n,onRemove:e=>{const t=!u||0===u.length;!e&&t&&r([])},"aria-label":Object(be.__)("Quote text"),placeholder:Object(be.__)("Add quote"),onReplace:r,onSplit:t=>Object(me.createBlock)("core/quote",{...e,value:t}),__unstableOnSplitMiddle:()=>Object(me.createBlock)("core/paragraph"),textAlign:i}),(!ue.RichText.isEmpty(u)||o)&&Object(pe.createElement)(ue.RichText,{identifier:"citation",tagName:jo?"cite":void 0,style:{display:"block"},value:u,onChange:e=>t({citation:e}),__unstableMobileNoFocusOnMount:!0,"aria-label":Object(be.__)("Quote citation text"),placeholder:Object(be.__)("Add citation"),className:"wp-block-quote__citation",textAlign:i,__unstableOnSplitAtEnd:()=>c(Object(me.createBlock)("core/paragraph"))})))},save:function({attributes:e}){const{align:t,value:o,citation:n}=e,r=Oe()({["has-text-align-"+t]:t});return Object(pe.createElement)("blockquote",ue.useBlockProps.save({className:r}),Object(pe.createElement)(ue.RichText.Content,{multiline:!0,value:o}),!ue.RichText.isEmpty(n)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"cite",value:n}))},merge:(e,{value:t,citation:o})=>(o||(o=e.citation),t&&"

"!==t?{...e,value:e.value+t,citation:o}:{...e,citation:o}),deprecated:Oo};var Eo=Object(pe.createElement)(ge.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(ge.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8h-1.5zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zM4.5 4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1V12l-2.3-1.7c-.3-.2-.6-.2-.9 0l-2.9 2.1L8 11.3c-.2-.1-.5-.1-.7 0l-2.9 1.5V4.6zm0 11.8v-1.8l3.2-1.7 2.4 1.2c.2.1.5.1.8-.1l2.8-2 2.8 2v2.5c0 .1-.1.1-.1.1H4.6c0-.1-.1-.2-.1-.2z"}));function Co(e){return Math.min(3,e.images.length)}const xo=(e,t="large")=>{const o=Object(de.pick)(e,["alt","id","link","caption"]);o.url=Object(de.get)(e,["sizes",t,"url"])||Object(de.get)(e,["media_details","sizes",t,"source_url"])||e.url;const n=Object(de.get)(e,["sizes","full","url"])||Object(de.get)(e,["media_details","sizes","full","source_url"]);return n&&(o.fullUrl=n),o};var So=[{attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},sizeSlug:{type:"string",default:"large"}},supports:{align:!0},isEligible:({linkTo:e})=>!e||"attachment"===e||"media"===e,migrate(e){let t=e.linkTo;return e.linkTo?"attachment"===e.linkTo?t="post":"media"===e.linkTo&&(t="file"):t="none",{...e,linkTo:t}},save({attributes:e}){const{images:t,columns:o=Co(e),imageCrop:n,caption:r,linkTo:a}=e;return Object(pe.createElement)("figure",{className:`columns-${o} ${n?"is-cropped":""}`},Object(pe.createElement)("ul",{className:"blocks-gallery-grid"},t.map(e=>{let t;switch(a){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const o=Object(pe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-"+e.id:null});return Object(pe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(pe.createElement)("figure",null,t?Object(pe.createElement)("a",{href:t},o):o,!ue.RichText.isEmpty(e.caption)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))})),!ue.RichText.isEmpty(r)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:r}))}},{attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},link:{source:"attribute",selector:"img",attribute:"data-link"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",default:[]},columns:{type:"number"},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},isEligible:({ids:e})=>e&&e.some(e=>"string"==typeof e),migrate:e=>({...e,ids:Object(de.map)(e.ids,e=>{const t=parseInt(e,10);return Number.isInteger(t)?t:null})}),save({attributes:e}){const{images:t,columns:o=Co(e),imageCrop:n,caption:r,linkTo:a}=e;return Object(pe.createElement)("figure",{className:`columns-${o} ${n?"is-cropped":""}`},Object(pe.createElement)("ul",{className:"blocks-gallery-grid"},t.map(e=>{let t;switch(a){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const o=Object(pe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-"+e.id:null});return Object(pe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(pe.createElement)("figure",null,t?Object(pe.createElement)("a",{href:t},o):o,!ue.RichText.isEmpty(e.caption)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))})),!ue.RichText.isEmpty(r)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:r}))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},ids:{type:"array",default:[]},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},save({attributes:e}){const{images:t,columns:o=Co(e),imageCrop:n,linkTo:r}=e;return Object(pe.createElement)("ul",{className:`columns-${o} ${n?"is-cropped":""}`},t.map(e=>{let t;switch(r){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const o=Object(pe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-"+e.id:null});return Object(pe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(pe.createElement)("figure",null,t?Object(pe.createElement)("a",{href:t},o):o,e.caption&&e.caption.length>0&&Object(pe.createElement)(ue.RichText.Content,{tagName:"figcaption",value:e.caption})))}))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible:({images:e,ids:t})=>e&&e.length>0&&(!t&&e||t&&e&&t.length!==e.length||Object(de.some)(e,(e,o)=>!e&&null!==t[o]||parseInt(e,10)!==t[o])),migrate:e=>({...e,ids:Object(de.map)(e.images,({id:e})=>e?parseInt(e,10):null)}),supports:{align:!0},save({attributes:e}){const{images:t,columns:o=Co(e),imageCrop:n,linkTo:r}=e;return Object(pe.createElement)("ul",{className:`columns-${o} ${n?"is-cropped":""}`},t.map(e=>{let t;switch(r){case"media":t=e.url;break;case"attachment":t=e.link}const o=Object(pe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?"wp-image-"+e.id:null});return Object(pe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(pe.createElement)("figure",null,t?Object(pe.createElement)("a",{href:t},o):o,e.caption&&e.caption.length>0&&Object(pe.createElement)(ue.RichText.Content,{tagName:"figcaption",value:e.caption})))}))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"div.wp-block-gallery figure.blocks-gallery-image img",query:{url:{source:"attribute",attribute:"src"},alt:{source:"attribute",attribute:"alt",default:""},id:{source:"attribute",attribute:"data-id"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},align:{type:"string",default:"none"}},supports:{align:!0},save({attributes:e}){const{images:t,columns:o=Co(e),align:n,imageCrop:r,linkTo:a}=e,c=Oe()("columns-"+o,{alignnone:"none"===n,"is-cropped":r});return Object(pe.createElement)("div",{className:c},t.map(e=>{let t;switch(a){case"media":t=e.url;break;case"attachment":t=e.link}const o=Object(pe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object(pe.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object(pe.createElement)("a",{href:t},o):o)}))}}],Bo=o("KEfo");const To=Object(pe.createElement)(ue.BlockIcon,{icon:Eo});var zo=o("2gm7"),Po=o("1iEr"),No=o("B9Az"),Mo=o("bWcr");class Ro extends pe.Component{constructor(){super(...arguments),this.onSelectImage=this.onSelectImage.bind(this),this.onRemoveImage=this.onRemoveImage.bind(this),this.bindContainer=this.bindContainer.bind(this),this.onEdit=this.onEdit.bind(this),this.onSelectImageFromLibrary=this.onSelectImageFromLibrary.bind(this),this.onSelectCustomURL=this.onSelectCustomURL.bind(this),this.state={isEditing:!1}}bindContainer(e){this.container=e}onSelectImage(){this.props.isSelected||this.props.onSelect()}onRemoveImage(e){this.container===this.container.ownerDocument.activeElement&&this.props.isSelected&&-1!==[ro.BACKSPACE,ro.DELETE].indexOf(e.keyCode)&&(e.stopPropagation(),e.preventDefault(),this.props.onRemove())}onEdit(){this.setState({isEditing:!0})}componentDidUpdate(){const{image:e,url:t,__unstableMarkNextChangeAsNotPersistent:o}=this.props;e&&!t&&(o(),this.props.setAttributes({url:e.source_url,alt:e.alt_text}))}deselectOnBlur(){this.props.onDeselect()}onSelectImageFromLibrary(e){const{setAttributes:t,id:o,url:n,alt:r,caption:a,sizeSlug:c}=this.props;if(!e||!e.url)return;let l=xo(e,c);((e,t)=>!e&&Object(Ve.isBlobURL)(t))(o,n)&&r&&(l=Object(de.omit)(l,["alt"])),a&&!Object(de.get)(l,["caption"])&&(l=Object(de.omit)(l,["caption"])),t(l),this.setState({isEditing:!1})}onSelectCustomURL(e){const{setAttributes:t,url:o}=this.props;e!==o&&(t({url:e,id:void 0}),this.setState({isEditing:!1}))}render(){const{url:e,alt:t,id:o,linkTo:n,link:r,isFirstItem:a,isLastItem:c,isSelected:l,caption:i,onRemove:s,onMoveForward:u,onMoveBackward:m,setAttributes:d,"aria-label":b}=this.props,{isEditing:p}=this.state;let g;switch(n){case"file":g=e;break;case"post":g=r}const h=Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)("img",{src:e,alt:t,"data-id":o,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":b,ref:this.bindContainer}),Object(Ve.isBlobURL)(e)&&Object(pe.createElement)(ke.Spinner,null)),v=Oe()({"is-selected":l,"is-transient":Object(Ve.isBlobURL)(e)});return Object(pe.createElement)("figure",{className:v,onClick:this.onSelectImage,onFocus:this.onSelectImage},!p&&(g?Object(pe.createElement)("a",{href:g},h):h),p&&Object(pe.createElement)(ue.MediaPlaceholder,{labels:{title:Object(be.__)("Edit gallery image")},icon:Ne,onSelect:this.onSelectImageFromLibrary,onSelectURL:this.onSelectCustomURL,accept:"image/*",allowedTypes:["image"],value:{id:o,src:e}}),Object(pe.createElement)(ke.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-left"},Object(pe.createElement)(ke.Button,{icon:zo.a,onClick:a?void 0:m,label:Object(be.__)("Move image backward"),"aria-disabled":a,disabled:!l}),Object(pe.createElement)(ke.Button,{icon:Po.a,onClick:c?void 0:u,label:Object(be.__)("Move image forward"),"aria-disabled":c,disabled:!l})),Object(pe.createElement)(ke.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-right"},Object(pe.createElement)(ke.Button,{icon:No.a,onClick:this.onEdit,label:Object(be.__)("Replace image"),disabled:!l}),Object(pe.createElement)(ke.Button,{icon:Mo.a,onClick:s,label:Object(be.__)("Remove image"),disabled:!l})),!p&&(l||i)&&Object(pe.createElement)(ue.RichText,{tagName:"figcaption","aria-label":Object(be.__)("Image caption text"),placeholder:l?Object(be.__)("Add caption"):null,value:i,onChange:e=>d({caption:e}),inlineToolbar:!0}))}}var Vo=Object(Ie.compose)([Object(He.withSelect)((e,t)=>{const{getMedia:o}=e(se.store),{id:n}=t;return{image:n?o(parseInt(n,10)):null}}),Object(He.withDispatch)(e=>{const{__unstableMarkNextChangeAsNotPersistent:t}=e(ue.store);return{__unstableMarkNextChangeAsNotPersistent:t}})])(Ro);function Ho({isHidden:e,...t}){return e?Object(pe.createElement)(ke.VisuallyHidden,Object(we.a)({as:ue.RichText},t)):Object(pe.createElement)(ue.RichText,t)}var Io=e=>{const{attributes:t,isSelected:o,setAttributes:n,selectedImage:r,mediaPlaceholder:a,onMoveBackward:c,onMoveForward:l,onRemoveImage:i,onSelectImage:s,onDeselectImage:u,onSetImageAttributes:m,insertBlocksAfter:d,blockProps:b}=e,{align:p,columns:g=Co(t),caption:h,imageCrop:v,images:O}=t;return Object(pe.createElement)("figure",Object(we.a)({},b,{className:Oe()(b.className,{["align"+p]:p,["columns-"+g]:g,"is-cropped":v})}),Object(pe.createElement)("ul",{className:"blocks-gallery-grid"},O.map((e,n)=>{const a=Object(be.sprintf)(Object(be.__)("image %1$d of %2$d in gallery"),n+1,O.length);return Object(pe.createElement)("li",{className:"blocks-gallery-item",key:e.id?`${e.id}-${n}`:e.url},Object(pe.createElement)(Vo,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===n,isLastItem:n+1===O.length,isSelected:o&&r===n,onMoveBackward:c(n),onMoveForward:l(n),onRemove:i(n),onSelect:s(n),onDeselect:u(n),setAttributes:e=>m(n,e),caption:e.caption,"aria-label":a,sizeSlug:t.sizeSlug}))})),a,Object(pe.createElement)(Ho,{isHidden:!o&&ue.RichText.isEmpty(h),tagName:"figcaption",className:"blocks-gallery-caption","aria-label":Object(be.__)("Gallery caption text"),placeholder:Object(be.__)("Write gallery caption…"),value:h,onChange:e=>n({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>d(Object(me.createBlock)("core/paragraph"))}))};const Lo=[{value:"post",label:Object(be.__)("Attachment Page")},{value:"file",label:Object(be.__)("Media File")},{value:"none",label:Object(be.__)("None")}],Ao=["image"],Do=pe.Platform.select({web:Object(be.__)("Drag images, upload new ones or select files from your library."),native:Object(be.__)("ADD MEDIA")}),Fo=pe.Platform.select({web:{},native:{type:"stepper"}});var qo=Object(Ie.compose)([ke.withNotices,Object(Bo.withViewportMatch)({isNarrow:"< small"})])((function(e){const{attributes:t,clientId:o,isSelected:n,noticeUI:r,noticeOperations:a,onFocus:c}=e,{columns:l=Co(t),imageCrop:i,images:s,linkTo:u,sizeSlug:m}=t,[d,b]=Object(pe.useState)(),[p,g]=Object(pe.useState)(),{__unstableMarkNextChangeAsNotPersistent:h}=Object(He.useDispatch)(ue.store),{imageSizes:v,mediaUpload:O,getMedia:j,wasBlockJustInserted:f}=Object(He.useSelect)(e=>{const t=e(ue.store).getSettings();return{imageSizes:t.imageSizes,mediaUpload:t.mediaUpload,getMedia:e(se.store).getMedia,wasBlockJustInserted:e(ue.store).wasBlockJustInserted(o,"inserter_menu")}}),y=Object(pe.useMemo)(()=>n?Object(de.reduce)(t.ids,(e,t)=>{if(!t)return e;const o=j(t),n=Object(de.reduce)(v,(e,t)=>{const n=Object(de.get)(o,["sizes",t.slug,"url"]),r=Object(de.get)(o,["media_details","sizes",t.slug,"source_url"]);return{...e,[t.slug]:n||r}},{});return{...e,[parseInt(t,10)]:n}},{}):{},[n,t.ids,v]);function _(t){if(t.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');t.images&&(t={...t,ids:Object(de.map)(t.images,({id:e})=>parseInt(e,10))}),e.setAttributes(t)}function w(e,t){const o=[...s];o.splice(t,1,s[e]),o.splice(e,1,s[t]),b(t),_({images:o})}function k(e){const t=Object(de.toString)(e.id),o=Object(de.find)(s,{id:t}),n=o?o.caption:e.caption;if(!p)return n;const r=Object(de.find)(p,{id:t});return r&&r.caption!==e.caption?e.caption:n}function E(e){g(e.map(e=>({id:Object(de.toString)(e.id),caption:e.caption}))),_({images:e.map(e=>({...xo(e,m),caption:k(e),id:Object(de.toString)(e.id)})),columns:t.columns?Math.min(e.length,t.columns):t.columns})}Object(pe.useEffect)(()=>{if("web"===pe.Platform.OS&&s&&s.length>0&&Object(de.every)(s,({url:e})=>Object(Ve.isBlobURL)(e))){const e=Object(de.map)(s,({url:e})=>Object(Ve.getBlobByURL)(e));Object(de.forEach)(s,({url:e})=>Object(Ve.revokeBlobURL)(e)),O({filesList:e,onFileChange:E,allowedTypes:["image"]})}},[]),Object(pe.useEffect)(()=>{n||b()},[n]),Object(pe.useEffect)(()=>{var e,t,o,n,r,a;u||(h(),_({linkTo:(null===(e=window)||void 0===e||null===(t=e.wp)||void 0===t||null===(o=t.media)||void 0===o||null===(n=o.view)||void 0===n||null===(r=n.settings)||void 0===r||null===(a=r.defaultProps)||void 0===a?void 0:a.link)||"none"}))},[u]);const C=!!s.length,x=C&&s.some(e=>!!e.id),S=Object(pe.createElement)(ue.MediaPlaceholder,{addToGallery:x,isAppender:C,disableMediaButtons:C&&!n,icon:!C&&To,labels:{title:!C&&Object(be.__)("Gallery"),instructions:!C&&Do},onSelect:E,accept:"image/*",allowedTypes:Ao,multiple:!0,value:x?s:{},onError:function(e){a.removeAllNotices(),a.createErrorNotice(e)},notices:C?void 0:r,onFocus:c,autoOpenMediaUpload:!C&&n&&f}),B=Object(ue.useBlockProps)();if(!C)return Object(pe.createElement)(ge.View,B,S);const T=Object(de.map)(Object(de.filter)(v,({slug:e})=>Object(de.some)(y,t=>t[e])),({name:e,slug:t})=>({value:t,label:e})),z=C&&!Object(de.isEmpty)(T);return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(ke.PanelBody,{title:Object(be.__)("Gallery settings")},s.length>1&&Object(pe.createElement)(ke.RangeControl,Object(we.a)({label:Object(be.__)("Columns"),value:l,onChange:function(e){_({columns:e})},min:1,max:Math.min(8,s.length)},Fo,{required:!0})),Object(pe.createElement)(ke.ToggleControl,{label:Object(be.__)("Crop images"),checked:!!i,onChange:function(){_({imageCrop:!i})},help:function(e){return e?Object(be.__)("Thumbnails are cropped to align."):Object(be.__)("Thumbnails are not cropped.")}}),Object(pe.createElement)(ke.SelectControl,{label:Object(be.__)("Link to"),value:u,onChange:function(e){_({linkTo:e})},options:Lo,hideCancelButton:!0}),z&&Object(pe.createElement)(ke.SelectControl,{label:Object(be.__)("Image size"),value:m,options:T,onChange:function(e){_({images:Object(de.map)(s,t=>{if(!t.id)return t;const o=Object(de.get)(y,[parseInt(t.id,10),e]);return{...t,...o&&{url:o}}}),sizeSlug:e})},hideCancelButton:!0}))),r,Object(pe.createElement)(Io,Object(we.a)({},e,{selectedImage:d,mediaPlaceholder:S,onMoveBackward:function(e){return()=>{0!==e&&w(e,e-1)}},onMoveForward:function(e){return()=>{e!==s.length-1&&w(e,e+1)}},onRemoveImage:function(e){return()=>{const o=Object(de.filter)(s,(t,o)=>e!==o);b(),_({images:o,columns:t.columns?Math.min(o.length,t.columns):t.columns})}},onSelectImage:function(e){return()=>{b(e)}},onDeselectImage:function(){return()=>{b()}},onSetImageAttributes:function(e,t){s[e]&&_({images:[...s.slice(0,e),{...s[e],...t},...s.slice(e+1)]})},blockProps:B,onFocusGalleryCaption:function(){b()}})))}));const Go=e=>e?e.split(",").map(e=>parseInt(e,10)):[];var Uo={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:e=>{let{align:t,sizeSlug:o}=e[0];t=Object(de.every)(e,["align",t])?t:void 0,o=Object(de.every)(e,["sizeSlug",o])?o:void 0;const n=Object(de.filter)(e,({url:e})=>e);return Object(me.createBlock)("core/gallery",{images:n.map(({id:e,url:t,alt:o,caption:n})=>({id:Object(de.toString)(e),url:t,alt:o,caption:n})),ids:n.map(({id:e})=>parseInt(e,10)),align:t,sizeSlug:o})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:({named:{ids:e}})=>Go(e).map(e=>({id:Object(de.toString)(e)}))},ids:{type:"array",shortcode:({named:{ids:e}})=>Go(e)},columns:{type:"number",shortcode:({named:{columns:e="3"}})=>parseInt(e,10)},linkTo:{type:"string",shortcode:({named:{link:e="post"}})=>e}},isMatch:({named:e})=>void 0!==e.ids},{type:"files",isMatch:e=>1!==e.length&&Object(de.every)(e,e=>0===e.type.indexOf("image/")),transform:e=>Object(me.createBlock)("core/gallery",{images:e.map(e=>xo({url:Object(Ve.createBlobURL)(e)}))})}],to:[{type:"block",blocks:["core/image"],transform:({images:e,align:t,sizeSlug:o,ids:n})=>e.length>0?e.map(({url:e,alt:r,caption:a},c)=>Object(me.createBlock)("core/image",{id:n[c],url:e,alt:r,caption:a,align:t,sizeSlug:o})):Object(me.createBlock)("core/image",{align:t})}]};const Wo={apiVersion:2,name:"core/gallery",title:"Gallery",category:"media",description:"Display multiple images in a rich gallery.",keywords:["images","photos"],textdomain:"default",attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"}},supports:{anchor:!0,align:!0},editorStyle:"wp-block-gallery-editor",style:"wp-block-gallery"},{name:$o}=Wo,Zo={icon:Eo,example:{attributes:{columns:2,images:[{url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"},{url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"}]}},transforms:Uo,edit:qo,save:function({attributes:e}){const{images:t,columns:o=Co(e),imageCrop:n,caption:r,linkTo:a}=e,c=`columns-${o} ${n?"is-cropped":""}`;return Object(pe.createElement)("figure",ue.useBlockProps.save({className:c}),Object(pe.createElement)("ul",{className:"blocks-gallery-grid"},t.map(e=>{let t;switch(a){case"file":t=e.fullUrl||e.url;break;case"post":t=e.link}const o=Object(pe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-"+e.id:null});return Object(pe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(pe.createElement)("figure",null,t?Object(pe.createElement)("a",{href:t},o):o,!ue.RichText.isEmpty(e.caption)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))})),!ue.RichText.isEmpty(r)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:r}))},deprecated:So};var Jo=Object(pe.createElement)(ge.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(ge.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5zM8 12.8h8v-1.5H8v1.5zm0 3h8v-1.5H8v1.5z"})),Yo=o("JREk"),Ko=o.n(Yo);const Qo={apiVersion:2,name:"core/archives",title:"Archives",category:"widgets",description:"Display a monthly archive of your posts.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,html:!1},editorStyle:"wp-block-archives-editor"},{name:Xo}=Qo,en={icon:Jo,example:{},edit:function({attributes:e,setAttributes:t}){const{showPostCounts:o,displayAsDropdown:n}=e;return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(ke.PanelBody,{title:Object(be.__)("Archives settings")},Object(pe.createElement)(ke.ToggleControl,{label:Object(be.__)("Display as dropdown"),checked:n,onChange:()=>t({displayAsDropdown:!n})}),Object(pe.createElement)(ke.ToggleControl,{label:Object(be.__)("Show post counts"),checked:o,onChange:()=>t({showPostCounts:!o})}))),Object(pe.createElement)("div",Object(ue.useBlockProps)(),Object(pe.createElement)(ke.Disabled,null,Object(pe.createElement)(Ko.a,{block:"core/archives",attributes:e}))))}};var tn=Object(pe.createElement)(ge.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(ge.Path,{d:"M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z"})),on=[{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:o,loop:n,preload:r,src:a}=e;return Object(pe.createElement)("figure",null,Object(pe.createElement)("audio",{controls:"controls",src:a,autoPlay:t,loop:n,preload:r}),!ue.RichText.isEmpty(o)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"figcaption",value:o}))}}];const nn=["audio"];var rn=Object(ke.withNotices)((function({attributes:e,noticeOperations:t,setAttributes:o,onReplace:n,isSelected:r,noticeUI:a,insertBlocksAfter:c}){const{id:l,autoplay:i,caption:s,loop:u,preload:m,src:d}=e,b=Object(ue.useBlockProps)(),p=Object(He.useSelect)(e=>{const{getSettings:t}=e(ue.store);return t().mediaUpload},[]);function g(e){return t=>{o({[e]:t})}}function h(e){if(e!==d){const t=Ke({attributes:{url:e}});if(void 0!==t)return void n(t);o({src:e,id:void 0})}}function v(e){t.removeAllNotices(),t.createErrorNotice(e)}function O(e){e&&e.url?o({src:e.url,id:e.id}):o({src:void 0,id:void 0})}return Object(pe.useEffect)(()=>{if(!l&&Object(Ve.isBlobURL)(d)){const e=Object(Ve.getBlobByURL)(d);e&&p({filesList:[e],onFileChange:([{id:e,url:t}])=>{o({id:e,src:t})},onError:e=>{o({src:void 0,id:void 0}),t.createErrorNotice(e)},allowedTypes:nn})}},[]),d?Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.BlockControls,{group:"other"},Object(pe.createElement)(ue.MediaReplaceFlow,{mediaId:l,mediaURL:d,allowedTypes:nn,accept:"audio/*",onSelect:O,onSelectURL:h,onError:v})),Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(ke.PanelBody,{title:Object(be.__)("Audio settings")},Object(pe.createElement)(ke.ToggleControl,{label:Object(be.__)("Autoplay"),onChange:g("autoplay"),checked:i,help:function(e){return e?Object(be.__)("Autoplay may cause usability issues for some users."):null}}),Object(pe.createElement)(ke.ToggleControl,{label:Object(be.__)("Loop"),onChange:g("loop"),checked:u}),Object(pe.createElement)(ke.SelectControl,{label:Object(be.__)("Preload"),value:m||"",onChange:e=>o({preload:e||void 0}),options:[{value:"",label:Object(be.__)("Browser default")},{value:"auto",label:Object(be.__)("Auto")},{value:"metadata",label:Object(be.__)("Metadata")},{value:"none",label:Object(be.__)("None")}]}))),Object(pe.createElement)("figure",b,Object(pe.createElement)(ke.Disabled,{isDisabled:!r},Object(pe.createElement)("audio",{controls:"controls",src:d})),(!ue.RichText.isEmpty(s)||r)&&Object(pe.createElement)(ue.RichText,{tagName:"figcaption","aria-label":Object(be.__)("Audio caption text"),placeholder:Object(be.__)("Add caption"),value:s,onChange:e=>o({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>c(Object(me.createBlock)("core/paragraph"))}))):Object(pe.createElement)("div",b,Object(pe.createElement)(ue.MediaPlaceholder,{icon:Object(pe.createElement)(ue.BlockIcon,{icon:tn}),onSelect:O,onSelectURL:h,accept:"audio/*",allowedTypes:nn,value:e,notices:a,onError:v}))}));var an={from:[{type:"files",isMatch:e=>1===e.length&&0===e[0].type.indexOf("audio/"),transform(e){const t=e[0];return Object(me.createBlock)("core/audio",{src:Object(Ve.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:({named:{src:e,mp3:t,m4a:o,ogg:n,wav:r,wma:a}})=>e||t||o||n||r||a},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}}]};const cn={apiVersion:2,name:"core/audio",title:"Audio",category:"media",description:"Embed a simple audio player.",keywords:["music","sound","podcast","recording"],textdomain:"default",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:{anchor:!0,align:!0},editorStyle:"wp-block-audio-editor",style:"wp-block-audio"},{name:ln}=cn,sn={icon:tn,transforms:an,deprecated:on,edit:rn,save:function({attributes:e}){const{autoplay:t,caption:o,loop:n,preload:r,src:a}=e;return a&&Object(pe.createElement)("figure",ue.useBlockProps.save(),Object(pe.createElement)("audio",{controls:"controls",src:a,autoPlay:t,loop:n,preload:r}),!ue.RichText.isEmpty(o)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"figcaption",value:o}))}};var un=Object(pe.createElement)(ge.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(ge.Path,{d:"M17 3H7c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V5c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v4zm-8-1.2h5V6.2h-5v1.6zM17 13H7c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v4zm-8-1.2h5v-1.5h-5v1.5z"}));var mn=[{supports:{align:["center","left","right"],anchor:!0},save:()=>Object(pe.createElement)("div",null,Object(pe.createElement)(ue.InnerBlocks.Content,null)),isEligible:({align:e})=>e&&["center","left","right"].includes(e),migrate:e=>({...e,align:void 0,contentJustification:e.align})}];const{name:dn}={apiVersion:2,name:"core/buttons",title:"Buttons",category:"design",description:"Prompt visitors to take action with a group of button-style links.",keywords:["link"],textdomain:"default",attributes:{contentJustification:{type:"string"},orientation:{type:"string",default:"horizontal"}},supports:{anchor:!0,align:["wide","full"]},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"};var bn={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>Object(me.createBlock)(dn,{},e.map(e=>Object(me.createBlock)("core/button",e)))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>Object(me.createBlock)(dn,{},e.map(e=>{const t=Object(fo.__unstableCreateElement)(document,e.content),o=t.innerText||"",n=t.querySelector("a"),r=null==n?void 0:n.getAttribute("href");return Object(me.createBlock)("core/button",{text:o,url:r})})),isMatch:e=>e.every(e=>{const t=Object(fo.__unstableCreateElement)(document,e.content),o=t.innerText||"",n=t.querySelectorAll("a");return o.length<=30&&n.length<=1})}]},pn=o("oMoS");const gn=e=>{const{borderRadius:t,...o}=e;return t||0===t?{...o,style:{...o.style,border:{radius:t}}}:o},hn=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;const t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient),{...Object(de.omit)(e,["customTextColor","customBackgroundColor","customGradient"]),style:t}},vn=e=>hn(Object(de.omit)({...e,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0},["color","textColor"])),On={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"}};var jn=[{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...On,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:o,linkTarget:n,rel:r,text:a,title:c,url:l,width:i}=e,s=Object(ue.__experimentalGetColorClassesAndStyles)(e),u=Oe()("wp-block-button__link",s.className,{"no-border-radius":0===o}),m={borderRadius:o?o+"px":void 0,...s.style},d=Oe()(t,{["has-custom-width wp-block-button__width-"+i]:i});return Object(pe.createElement)("div",ue.useBlockProps.save({className:d}),Object(pe.createElement)(ue.RichText.Content,{tagName:"a",className:u,href:l,title:c,style:m,value:a,target:n,rel:r}))},migrate:gn},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...On,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:o,linkTarget:n,rel:r,text:a,title:c,url:l,width:i}=e,s=Object(ue.__experimentalGetColorClassesAndStyles)(e),u=Oe()("wp-block-button__link",s.className,{"no-border-radius":0===o}),m={borderRadius:o?o+"px":void 0,...s.style},d=Oe()(t,{["has-custom-width wp-block-button__width-"+i]:i});return Object(pe.createElement)("div",ue.useBlockProps.save({className:d}),Object(pe.createElement)(ue.RichText.Content,{tagName:"a",className:u,href:l,title:c,style:m,value:a,target:n,rel:r}))},migrate:gn},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...On,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:o,rel:n,text:r,title:a,url:c}=e,l=Oe()("wp-block-button__link",{"no-border-radius":0===t}),i={borderRadius:t?t+"px":void 0};return Object(pe.createElement)(ue.RichText.Content,{tagName:"a",className:l,href:c,title:a,style:i,value:r,target:o,rel:n})},migrate:gn},{supports:{align:!0,alignWide:!1},attributes:{...On,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,migrate:Object(Ie.compose)(gn,hn),save({attributes:e}){const{backgroundColor:t,borderRadius:o,customBackgroundColor:n,customTextColor:r,customGradient:a,linkTarget:c,gradient:l,rel:i,text:s,textColor:u,title:m,url:d}=e,b=Object(ue.getColorClassName)("color",u),p=!a&&Object(ue.getColorClassName)("background-color",t),g=Object(ue.__experimentalGetGradientClass)(l),h=Oe()("wp-block-button__link",{"has-text-color":u||r,[b]:b,"has-background":t||n||a||l,[p]:p,"no-border-radius":0===o,[g]:g}),v={background:a||void 0,backgroundColor:p||a||l?void 0:n,color:b?void 0:r,borderRadius:o?o+"px":void 0};return Object(pe.createElement)("div",null,Object(pe.createElement)(ue.RichText.Content,{tagName:"a",className:h,href:d,title:m,style:v,value:s,target:c,rel:i}))}},{attributes:{...On,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=>e.className&&e.className.includes("is-style-squared"),migrate(e){let t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),gn(hn({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,customTextColor:n,linkTarget:r,rel:a,text:c,textColor:l,title:i,url:s}=e,u=Object(ue.getColorClassName)("color",l),m=Object(ue.getColorClassName)("background-color",t),d=Oe()("wp-block-button__link",{"has-text-color":l||n,[u]:u,"has-background":t||o,[m]:m}),b={backgroundColor:m?void 0:o,color:u?void 0:n};return Object(pe.createElement)("div",null,Object(pe.createElement)(ue.RichText.Content,{tagName:"a",className:d,href:s,title:i,style:b,value:c,target:r,rel:a}))}},{attributes:{...On,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:vn,save({attributes:e}){const{url:t,text:o,title:n,backgroundColor:r,textColor:a,customBackgroundColor:c,customTextColor:l}=e,i=Object(ue.getColorClassName)("color",a),s=Object(ue.getColorClassName)("background-color",r),u=Oe()("wp-block-button__link",{"has-text-color":a||l,[i]:i,"has-background":r||c,[s]:s}),m={backgroundColor:s?void 0:c,color:i?void 0:l};return Object(pe.createElement)("div",null,Object(pe.createElement)(ue.RichText.Content,{tagName:"a",className:u,href:t,title:n,style:m,value:o}))}},{attributes:{...On,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:o,title:n,align:r,color:a,textColor:c}=e,l={backgroundColor:a,color:c};return Object(pe.createElement)("div",{className:"align"+r},Object(pe.createElement)(ue.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:n,style:l,value:o}))},migrate:vn},{attributes:{...On,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:o,title:n,align:r,color:a,textColor:c}=e;return Object(pe.createElement)("div",{className:"align"+r,style:{backgroundColor:a}},Object(pe.createElement)(ue.RichText.Content,{tagName:"a",href:t,title:n,style:{color:c},value:o}))},migrate:vn}],fn=o("Bpkj"),yn=o("Mp0b");function _n({selectedWidth:e,setAttributes:t}){return Object(pe.createElement)(ke.PanelBody,{title:Object(be.__)("Width settings")},Object(pe.createElement)(ke.ButtonGroup,{"aria-label":Object(be.__)("Button width")},[25,50,75,100].map(o=>Object(pe.createElement)(ke.Button,{key:o,isSmall:!0,isPrimary:o===e,onClick:()=>{var n;t({width:e===(n=o)?void 0:n})}},o,"%"))))}function wn({isSelected:e,url:t,setAttributes:o,opensInNewTab:n,onToggleOpenInNewTab:r,anchorRef:a,richTextRef:c}){const[l,i]=Object(pe.useState)(!1),s=!!t,u=e=>{e.preventDefault(),i(!0)},m=()=>{o({url:void 0,linkTarget:void 0,rel:void 0}),i(!1)};Object(pe.useEffect)(()=>{e||i(!1)},[e]);const d=e&&(l||s)&&Object(pe.createElement)(ke.Popover,{position:"bottom center",onClose:()=>{var e;i(!1),null===(e=c.current)||void 0===e||e.focus()},anchorRef:null==a?void 0:a.current,focusOnMount:!!l&&"firstElement"},Object(pe.createElement)(ue.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:{url:t,opensInNewTab:n},onChange:({url:e="",opensInNewTab:t})=>{o({url:e}),n!==t&&r(t)},onRemove:()=>{var e;m(),null===(e=c.current)||void 0===e||e.focus()},forceIsEditingLink:l}));return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.BlockControls,{group:"block"},!s&&Object(pe.createElement)(ke.ToolbarButton,{name:"link",icon:fn.a,title:Object(be.__)("Link"),shortcut:ro.displayShortcut.primary("k"),onClick:u}),s&&Object(pe.createElement)(ke.ToolbarButton,{name:"link",icon:yn.a,title:Object(be.__)("Unlink"),shortcut:ro.displayShortcut.primaryShift("k"),onClick:m,isActive:!0})),e&&Object(pe.createElement)(ke.KeyboardShortcuts,{bindGlobal:!0,shortcuts:{[ro.rawShortcut.primary("k")]:u,[ro.rawShortcut.primaryShift("k")]:()=>{var e;m(),null===(e=c.current)||void 0===e||e.focus()}}}),d)}var kn=function(e){var t;const{attributes:o,setAttributes:n,className:r,isSelected:a,onReplace:c,mergeBlocks:l}=e,{linkTarget:i,placeholder:s,rel:u,style:m,text:d,url:b,width:p}=o,g=Object(pe.useCallback)(e=>{n({rel:e})},[n]),h=Object(pe.useCallback)(e=>{const t=e?"_blank":void 0;let o=u;t&&!u?o="noreferrer noopener":t||"noreferrer noopener"!==u||(o=void 0),n({linkTarget:t,rel:o})},[u,n]),v=null==m||null===(t=m.border)||void 0===t?void 0:t.radius,O=Object(ue.__experimentalUseColorProps)(o),j=Object(pe.useRef)(),f=Object(pe.useRef)(),y=Object(ue.useBlockProps)({ref:j});return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)("div",Object(we.a)({},y,{className:Oe()(y.className,{["has-custom-width wp-block-button__width-"+p]:p,"has-custom-font-size":y.style.fontSize})}),Object(pe.createElement)(ue.RichText,{ref:f,"aria-label":Object(be.__)("Button text"),placeholder:s||Object(be.__)("Add text…"),value:d,onChange:e=>{n({text:e.replace(/<\/?a[^>]*>/g,"")})},withoutInteractiveFormatting:!0,className:Oe()(r,"wp-block-button__link",O.className,{"no-border-radius":0===v}),style:{borderRadius:v?v+"px":void 0,...O.style},onSplit:e=>Object(me.createBlock)("core/button",{...o,text:e}),onReplace:c,onMerge:l,identifier:"text"})),Object(pe.createElement)(wn,{url:b,setAttributes:n,isSelected:a,opensInNewTab:"_blank"===i,onToggleOpenInNewTab:h,anchorRef:j,richTextRef:f}),Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(_n,{selectedWidth:p,setAttributes:n})),Object(pe.createElement)(ue.InspectorAdvancedControls,null,Object(pe.createElement)(ke.TextControl,{label:Object(be.__)("Link rel"),value:u||"",onChange:g})))};const En={apiVersion:2,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:{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,__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wp-block-button__link"},styles:[{name:"fill",label:"Fill",isDefault:!0},{name:"outline",label:"Outline"}],editorStyle:"wp-block-button-editor",style:"wp-block-button"},{name:Cn}=En,xn={icon:pn.a,example:{attributes:{className:"is-style-fill",backgroundColor:"vivid-green-cyan",text:Object(be.__)("Call to Action")}},edit:kn,save:function({attributes:e,className:t}){var o,n;const{fontSize:r,linkTarget:a,rel:c,style:l,text:i,title:s,url:u,width:m}=e;if(!i)return null;const d=null==l||null===(o=l.border)||void 0===o?void 0:o.radius,b=Object(ue.__experimentalGetColorClassesAndStyles)(e),p=Oe()("wp-block-button__link",b.className,{"no-border-radius":0===d}),g={borderRadius:d?d+"px":void 0,...b.style},h=Oe()(t,{["has-custom-width wp-block-button__width-"+m]:m,"has-custom-font-size":r||(null==l||null===(n=l.typography)||void 0===n?void 0:n.fontSize)});return Object(pe.createElement)("div",ue.useBlockProps.save({className:h}),Object(pe.createElement)(ue.RichText.Content,{tagName:"a",className:p,href:u,title:s,style:g,value:i,target:a,rel:c}))},deprecated:jn,merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t})},Sn=[Cn],Bn=[["core/button"]],Tn={type:"default",alignments:[]},zn=["left","center","right"],Pn=["left","center","right","space-between"];var Nn=function({attributes:{contentJustification:e,orientation:t},setAttributes:o}){const n=Object(ue.useBlockProps)({className:Oe()({["is-content-justification-"+e]:e,"is-vertical":"vertical"===t})}),r=Object(ue.__experimentalUseInnerBlocksProps)(n,{allowedBlocks:Sn,template:Bn,orientation:t,__experimentalLayout:Tn,templateInsertUpdatesSelection:!0}),a="vertical"===t?zn:Pn;return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.BlockControls,{group:"block"},Object(pe.createElement)(ue.JustifyContentControl,{allowedControls:a,value:e,onChange:e=>o({contentJustification:e}),popoverProps:{position:"bottom right",isAlternate:!0}})),Object(pe.createElement)("div",r))};var Mn=[{name:"buttons-horizontal",isDefault:!0,title:Object(be.__)("Horizontal"),description:Object(be.__)("Buttons shown in a row."),attributes:{orientation:"horizontal"},scope:["transform"]},{name:"buttons-vertical",title:Object(be.__)("Vertical"),description:Object(be.__)("Buttons shown in a column."),attributes:{orientation:"vertical"},scope:["transform"]}];const Rn={apiVersion:2,name:"core/buttons",title:"Buttons",category:"design",description:"Prompt visitors to take action with a group of button-style links.",keywords:["link"],textdomain:"default",attributes:{contentJustification:{type:"string"},orientation:{type:"string",default:"horizontal"}},supports:{anchor:!0,align:["wide","full"]},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"},{name:Vn}=Rn,Hn={icon:un,example:{innerBlocks:[{name:"core/button",attributes:{text:Object(be.__)("Find out more")}},{name:"core/button",attributes:{text:Object(be.__)("Contact us")}}]},deprecated:mn,transforms:bn,edit:Nn,save:function({attributes:{contentJustification:e,orientation:t}}){return Object(pe.createElement)("div",ue.useBlockProps.save({className:Oe()({["is-content-justification-"+e]:e,"is-vertical":"vertical"===t})}),Object(pe.createElement)(ue.InnerBlocks.Content,null))},variations:Mn};var In=Object(pe.createElement)(ge.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(ge.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"})),Ln=o("wy2R"),An=o.n(Ln);const Dn=Ze()(e=>{if(!e)return{};const t=An()(e);return{year:t.year(),month:t.month()+1}});const Fn={apiVersion:2,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},style:"wp-block-calendar"},{name:qn}=Fn,Gn={icon:In,example:{},edit:function({attributes:e}){const t=Object(He.useSelect)(e=>{const t=e("core/editor");let o;if(t){"post"===t.getEditedPostAttribute("type")&&(o=t.getEditedPostAttribute("date"))}return o},[]);return Object(pe.createElement)("div",Object(ue.useBlockProps)(),Object(pe.createElement)(ke.Disabled,null,Object(pe.createElement)(Ko.a,{block:"core/calendar",attributes:{...e,...Dn(t)}})))}};var Un=Object(pe.createElement)(ge.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(ge.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"}));var Wn=Object(pe.createElement)(ge.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(pe.createElement)(ge.Path,{d:"M10.44 3.02l1.82-1.82 6.36 6.35-1.83 1.82c-1.05-.68-2.48-.57-3.41.36l-.75.75c-.92.93-1.04 2.35-.35 3.41l-1.83 1.82-2.41-2.41-2.8 2.79c-.42.42-3.38 2.71-3.8 2.29s1.86-3.39 2.28-3.81l2.79-2.79L4.1 9.36l1.83-1.82c1.05.69 2.48.57 3.4-.36l.75-.75c.93-.92 1.05-2.35.36-3.41z"}));const $n={apiVersion:2,name:"core/categories",title:"Categories",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}},supports:{align:!0,html:!1},editorStyle:"wp-block-categories-editor",style:"wp-block-categories"},{name:Zn}=$n,Jn={icon:Un,example:{},edit:function e({attributes:{displayAsDropdown:t,showHierarchy:o,showPostCounts:n},setAttributes:r}){const a=Object(Ie.useInstanceId)(e,"blocks-category-select"),{categories:c,isRequesting:l}=Object(He.useSelect)(e=>{const{getEntityRecords:t}=e(se.store),{isResolving:o}=e("core/data"),n={per_page:-1,hide_empty:!0,context:"view"};return{categories:t("taxonomy","category",n),isRequesting:o("core","getEntityRecords",["taxonomy","category",n])}},[]),i=e=>null!=c&&c.length?null===e?c:c.filter(({parent:t})=>t===e):[],s=e=>"wp-block-categories__list wp-block-categories__list-level-"+e,u=e=>t=>r({[e]:t}),m=e=>e?Object(de.unescape)(e).trim():Object(be.__)("(Untitled)"),d=(e,t)=>{const r=i(e.id),{id:a,link:c,count:l,name:u}=e;return Object(pe.createElement)("li",{key:a},Object(pe.createElement)("a",{href:c,target:"_blank",rel:"noreferrer noopener"},m(u)),n&&Object(pe.createElement)("span",{className:"wp-block-categories__post-count"},` (${l})`),o&&!!r.length&&Object(pe.createElement)("ul",{className:s(t+1)},r.map(e=>d(e,t+1))))},b=(e,t)=>{const{id:r,count:a,name:c}=e,l=i(r);return[Object(pe.createElement)("option",{key:r},Object(de.times)(3*t,()=>" "),m(c),n&&` (${a})`),o&&!!l.length&&l.map(e=>b(e,t+1))]};return Object(pe.createElement)("div",Object(ue.useBlockProps)(),Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(ke.PanelBody,{title:Object(be.__)("Categories settings")},Object(pe.createElement)(ke.ToggleControl,{label:Object(be.__)("Display as dropdown"),checked:t,onChange:u("displayAsDropdown")}),Object(pe.createElement)(ke.ToggleControl,{label:Object(be.__)("Show hierarchy"),checked:o,onChange:u("showHierarchy")}),Object(pe.createElement)(ke.ToggleControl,{label:Object(be.__)("Show post counts"),checked:n,onChange:u("showPostCounts")}))),l&&Object(pe.createElement)(ke.Placeholder,{icon:Wn,label:Object(be.__)("Categories")},Object(pe.createElement)(ke.Spinner,null)),!l&&0===(null==c?void 0:c.length)&&Object(pe.createElement)("p",null,Object(be.__)("Your site does not have any posts, so there is nothing to display here at the moment.")),!l&&(null==c?void 0:c.length)>0&&(t?(()=>{const e=i(o?0:null);return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ke.VisuallyHidden,{as:"label",htmlFor:a},Object(be.__)("Categories")),Object(pe.createElement)("select",{id:a,className:"wp-block-categories__dropdown"},e.map(e=>b(e,0))))})():(()=>{const e=i(o?0:null);return Object(pe.createElement)("ul",{className:s(0)},e.map(e=>d(e,0)))})()))}};var Yn=o("1Yn1");function Kn(e){return e.replace(/\[/g,"[")}function Qn(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}var Xn={from:[{type:"enter",regExp:/^```$/,transform:()=>Object(me.createBlock)("core/code")},{type:"block",blocks:["core/html"],transform:({content:e})=>Object(me.createBlock)("core/code",{content:e})},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName,schema:{pre:{children:{code:{children:{"#text":{}}}}}}}]};const er={apiVersion:2,name:"core/code",title:"Code",category:"text",description:"Display code snippets that respect your spacing and tabs.",textdomain:"default",attributes:{content:{type:"string",source:"html",selector:"code"}},supports:{anchor:!0,typography:{fontSize:!0}},style:"wp-block-code"},{name:tr}=er,or={icon:Yn.a,example:{attributes:{content:Object(be.__)('// A "block" is the abstract term used\n// to describe units of markup that\n// when composed together, form the\n// content or layout of a page.\nregisterBlockType( name, settings );')}},transforms:Xn,edit:function({attributes:e,setAttributes:t,onRemove:o}){const n=Object(ue.useBlockProps)();return Object(pe.createElement)("pre",n,Object(pe.createElement)(ue.RichText,{tagName:"code",value:e.content,onChange:e=>t({content:e}),onRemove:o,placeholder:Object(be.__)("Write code…"),"aria-label":Object(be.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0}))},save:function({attributes:e}){return Object(pe.createElement)("pre",ue.useBlockProps.save(),Object(pe.createElement)(ue.RichText.Content,{tagName:"code",value:(t=e.content,Object(de.flow)(Kn,Qn)(t||""))}));var t}};var nr=Object(pe.createElement)(ge.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(ge.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-4.1 1.5v10H10v-10h4.9zM5.5 17V8c0-.3.2-.5.5-.5h2.5v10H6c-.3 0-.5-.2-.5-.5zm14 0c0 .3-.2.5-.5.5h-2.6v-10H19c.3 0 .5.2.5.5v9z"}));function rr(e){let t,{doc:o}=rr;o||(o=document.implementation.createHTMLDocument(""),rr.doc=o),o.body.innerHTML=e;for(const e of o.body.firstChild.classList)if(t=e.match(/^layout-column-(\d+)$/))return Number(t[1])-1}var ar=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>{if(!e.customTextColor&&!e.customBackgroundColor)return e;const t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),{...Object(de.omit)(e,["customTextColor","customBackgroundColor"]),style:t}},save({attributes:e}){const{verticalAlignment:t,backgroundColor:o,customBackgroundColor:n,textColor:r,customTextColor:a}=e,c=Object(ue.getColorClassName)("background-color",o),l=Object(ue.getColorClassName)("color",r),i=Oe()({"has-background":o||n,"has-text-color":r||a,[c]:c,[l]:l,["are-vertically-aligned-"+t]:t}),s={backgroundColor:c?void 0:n,color:l?void 0:a};return Object(pe.createElement)("div",{className:i||void 0,style:s},Object(pe.createElement)(ue.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},isEligible:(e,t)=>!!t.some(e=>/layout-column-\d+/.test(e.originalContent))&&t.some(e=>void 0!==rr(e.originalContent)),migrate(e,t){const o=t.reduce((e,t)=>{const{originalContent:o}=t;let n=rr(o);return void 0===n&&(n=0),e[n]||(e[n]=[]),e[n].push(t),e},[]).map(e=>Object(me.createBlock)("core/column",{},e));return[Object(de.omit)(e,["columns"]),o]},save({attributes:e}){const{columns:t}=e;return Object(pe.createElement)("div",{className:`has-${t}-columns`},Object(pe.createElement)(ue.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},migrate:(e,t)=>[e=Object(de.omit)(e,["columns"]),t],save({attributes:e}){const{verticalAlignment:t,columns:o}=e,n=Oe()(`has-${o}-columns`,{["are-vertically-aligned-"+t]:t});return Object(pe.createElement)("div",{className:n},Object(pe.createElement)(ue.InnerBlocks.Content,null))}}];const cr=e=>{const t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function lr(e,t){const{width:o=100/t}=e.attributes;return cr(o)}function ir(e,t,o=e.length){const n=function(e,t=e.length){return Object(de.sumBy)(e,e=>lr(e,t))}(e,o);return Object(de.mapValues)(function(e,t=e.length){return e.reduce((e,o)=>{const n=lr(o,t);return Object.assign(e,{[o.clientId]:n})},{})}(e,o),e=>cr(t*e/n))}function sr(e,t){return e.map(e=>Object(de.merge)({},e,{attributes:{width:t[e.clientId]}}))}const ur=["core/column"];const mr=Object(He.withDispatch)((e,t,o)=>({updateAlignment(n){const{clientId:r,setAttributes:a}=t,{updateBlockAttributes:c}=e(ue.store),{getBlockOrder:l}=o.select(ue.store);a({verticalAlignment:n});l(r).forEach(e=>{c(e,{verticalAlignment:n})})},updateColumns(n,r){const{clientId:a}=t,{replaceInnerBlocks:c}=e(ue.store),{getBlocks:l}=o.select(ue.store);let i=l(a);const s=i.every(e=>{var t;const o=e.attributes.width;return Number.isFinite(null!=o&&null!==(t=o.endsWith)&&void 0!==t&&t.call(o,"%")?parseFloat(o):o)});const u=r>n;if(u&&s){const e=cr(100/r);i=[...sr(i,ir(i,100-e)),...Object(de.times)(r-n,()=>Object(me.createBlock)("core/column",{width:e}))]}else if(u)i=[...i,...Object(de.times)(r-n,()=>Object(me.createBlock)("core/column"))];else if(i=Object(de.dropRight)(i,n-r),s){i=sr(i,ir(i,100))}c(a,i)}}))((function({attributes:e,updateAlignment:t,updateColumns:o,clientId:n}){const{verticalAlignment:r}=e,{count:a}=Object(He.useSelect)(e=>({count:e(ue.store).getBlockCount(n)}),[n]),c=Oe()({["are-vertically-aligned-"+r]:r}),l=Object(ue.useBlockProps)({className:c}),i=Object(ue.__experimentalUseInnerBlocksProps)(l,{allowedBlocks:ur,orientation:"horizontal",renderAppender:!1});return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(ue.BlockVerticalAlignmentToolbar,{onChange:t,value:r})),Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(ke.PanelBody,null,Object(pe.createElement)(ke.RangeControl,{label:Object(be.__)("Columns"),value:a,onChange:e=>o(a,e),min:1,max:Math.max(6,a)}),a>6&&Object(pe.createElement)(ke.Notice,{status:"warning",isDismissible:!1},Object(be.__)("This column count exceeds the recommended amount and may cause visual breakage.")))),Object(pe.createElement)("div",i))}));function dr({clientId:e,name:t,setAttributes:o}){const{blockType:n,defaultVariation:r,variations:a}=Object(He.useSelect)(e=>{const{getBlockVariations:o,getBlockType:n,getDefaultBlockVariation:r}=e(me.store);return{blockType:n(t),defaultVariation:r(t,"block"),variations:o(t,"block")}},[t]),{replaceInnerBlocks:c}=Object(He.useDispatch)(ue.store),l=Object(ue.useBlockProps)();return Object(pe.createElement)("div",l,Object(pe.createElement)(ue.__experimentalBlockVariationPicker,{icon:Object(de.get)(n,["icon","src"]),label:Object(de.get)(n,["title"]),variations:a,onSelect:(t=r)=>{t.attributes&&o(t.attributes),t.innerBlocks&&c(e,Object(me.createBlocksFromInnerBlocksTemplate)(t.innerBlocks),!0)},allowSkip:!0}))}var br=e=>{const{clientId:t}=e,o=Object(He.useSelect)(e=>e(ue.store).getBlocks(t).length>0,[t])?mr:dr;return Object(pe.createElement)(o,e)};var pr=[{name:"one-column-full",title:Object(be.__)("100"),description:Object(be.__)("One column"),icon:Object(pe.createElement)(ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m39.0625 14h-30.0625v20.0938h30.0625zm-30.0625-2c-1.10457 0-2 .8954-2 2v20.0938c0 1.1045.89543 2 2 2h30.0625c1.1046 0 2-.8955 2-2v-20.0938c0-1.1046-.8954-2-2-2z"})),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:Object(be.__)("50 / 50"),description:Object(be.__)("Two columns; equal split"),icon:Object(pe.createElement)(ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H25V34H39ZM23 34H9V14H23V34Z"})),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:Object(be.__)("30 / 70"),description:Object(be.__)("Two columns; one-third, two-thirds split"),icon:Object(pe.createElement)(ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z"})),innerBlocks:[["core/column",{width:"33.33%"}],["core/column",{width:"66.66%"}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:Object(be.__)("70 / 30"),description:Object(be.__)("Two columns; two-thirds, one-third split"),icon:Object(pe.createElement)(ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z"})),innerBlocks:[["core/column",{width:"66.66%"}],["core/column",{width:"33.33%"}]],scope:["block"]},{name:"three-columns-equal",title:Object(be.__)("33 / 33 / 33"),description:Object(be.__)("Three columns; equal split"),icon:Object(pe.createElement)(ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(ke.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z"})),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:Object(be.__)("25 / 50 / 25"),description:Object(be.__)("Three columns; wide center column"),icon:Object(pe.createElement)(ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(ke.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z"})),innerBlocks:[["core/column",{width:"25%"}],["core/column",{width:"50%"}],["core/column",{width:"25%"}]],scope:["block"]}];var gr={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{const t=+(100/e.length).toFixed(2),o=e.map(({name:e,attributes:o,innerBlocks:n})=>["core/column",{width:t+"%"},[[e,{...o},n]]]);return Object(me.createBlock)("core/columns",{},Object(me.createBlocksFromInnerBlocksTemplate)(o))},isMatch:({length:e})=>e&&e<=6},{type:"block",blocks:["core/media-text"],priority:1,transform:(e,t)=>{const{align:o,backgroundColor:n,textColor:r,style:a,mediaAlt:c,mediaId:l,mediaPosition:i,mediaSizeSlug:s,mediaType:u,mediaUrl:m,mediaWidth:d,verticalAlignment:b}=e;let p;if("image"!==u&&u)p=["core/video",{id:l,src:m}];else{p=["core/image",{...{id:l,alt:c,url:m,sizeSlug:s},...{href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel}}]}const g=[["core/column",{width:d+"%"},[p]],["core/column",{width:100-d+"%"},t]];return"right"===i&&g.reverse(),Object(me.createBlock)("core/columns",{align:o,backgroundColor:n,textColor:r,style:a,verticalAlignment:b},Object(me.createBlocksFromInnerBlocksTemplate)(g))}}]};const hr={apiVersion:2,name:"core/columns",title:"Columns",category:"design",description:"Add a block that displays content in multiple columns, then add whatever content blocks you’d like.",textdomain:"default",attributes:{verticalAlignment:{type:"string"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}},editorStyle:"wp-block-columns-editor",style:"wp-block-columns"},{name:vr}=hr,Or={icon:nr,variations:pr,example:{innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(be.__)("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:Object(be.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(be.__)("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:Object(be.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:ar,edit:br,save:function({attributes:e}){const{verticalAlignment:t}=e,o=Oe()({["are-vertically-aligned-"+t]:t});return Object(pe.createElement)("div",ue.useBlockProps.save({className:o}),Object(pe.createElement)(ue.InnerBlocks.Content,null))},transforms:gr};var jr=Object(pe.createElement)(ge.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(ge.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"}));var fr=[{attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},isEligible:({width:e})=>isFinite(e),migrate:e=>({...e,width:e.width+"%"}),save({attributes:e}){const{verticalAlignment:t,width:o}=e,n=Oe()({["is-vertically-aligned-"+t]:t}),r={flexBasis:o+"%"};return Object(pe.createElement)("div",{className:n,style:r},Object(pe.createElement)(ue.InnerBlocks.Content,null))}}];var yr=function({attributes:{verticalAlignment:e,width:t,templateLock:o=!1},setAttributes:n,clientId:r}){const a=Oe()("block-core-columns",{["is-vertically-aligned-"+e]:e}),c=Object(ke.__experimentalUseCustomUnits)({availableUnits:Object(ue.useSetting)("spacing.units")||["%","px","em","rem","vw"]}),{columnsIds:l,hasChildBlocks:i,rootClientId:s}=Object(He.useSelect)(e=>{const{getBlockOrder:t,getBlockRootClientId:o}=e(ue.store),n=o(r);return{hasChildBlocks:t(r).length>0,rootClientId:n,columnsIds:t(n)}},[r]),{updateBlockAttributes:u}=Object(He.useDispatch)(ue.store),m=Number.isFinite(t)?t+"%":t,d=Object(ue.useBlockProps)({className:a,style:m?{flexBasis:m}:void 0}),b=l.length,p=l.indexOf(r)+1,g=Object(be.sprintf)(Object(be.__)("%1$s (%2$d of %3$d)"),d["aria-label"],p,b),h=Object(ue.__experimentalUseInnerBlocksProps)({...d,"aria-label":g},{templateLock:o,renderAppender:i?void 0:ue.InnerBlocks.ButtonBlockAppender});return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(ue.BlockVerticalAlignmentToolbar,{onChange:e=>{n({verticalAlignment:e}),u(s,{verticalAlignment:null})},value:e})),Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(ke.PanelBody,{title:Object(be.__)("Column settings")},Object(pe.createElement)(ke.__experimentalUnitControl,{label:Object(be.__)("Width"),labelPosition:"edge",__unstableInputWidth:"80px",value:t||"",onChange:e=>{e=0>parseFloat(e)?"0":e,n({width:e})},units:c}))),Object(pe.createElement)("div",h))};const _r={apiVersion:2,name:"core/column",title:"Column",category:"text",parent:["core/columns"],description:"A single column within a columns block.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},width:{type:"string"},templateLock:{enum:["all","insert",!1]}},supports:{anchor:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0}}},{name:wr}=_r,kr={icon:jr,edit:yr,save:function({attributes:e}){const{verticalAlignment:t,width:o}=e,n=Oe()({["is-vertically-aligned-"+t]:t});let r;return o&&(r={flexBasis:Number.isFinite(o)?o+"%":o}),Object(pe.createElement)("div",ue.useBlockProps.save({className:n,style:r}),Object(pe.createElement)(ue.InnerBlocks.Content,null))},deprecated:fr};var Er=Object(pe.createElement)(ge.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(ge.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"}));const Cr={"top left":"is-position-top-left","top center":"is-position-top-center","top right":"is-position-top-right","center left":"is-position-center-left","center center":"is-position-center-center",center:"is-position-center-center","center right":"is-position-center-right","bottom left":"is-position-bottom-left","bottom center":"is-position-bottom-center","bottom right":"is-position-bottom-right"};function xr(e){return e?{backgroundImage:`url(${e})`}:{}}const Sr=["image","video"];function Br(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}function Tr(e){return!e||"center center"===e||"center"===e}function zr(e){return Tr(e)?"":Cr[e]}const Pr={url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"}};var Nr=[{attributes:{...Pr,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:c,focalPoint:l,hasParallax:i,isRepeated:s,overlayColor:u,url:m,minHeight:d,minHeightUnit:b}=e,p=Object(ue.getColorClassName)("background-color",u),g=Object(ue.__experimentalGetGradientClass)(o),h=b?`${d}${b}`:d,v="image"===t,O="video"===t,j=v?xr(m):{},f={};let y;p||(j.backgroundColor=a),r&&!m&&(j.background=r),j.minHeight=h||void 0,l&&(y=`${Math.round(100*l.x)}% ${Math.round(100*l.y)}%`,v&&!i&&(j.backgroundPosition=y),O&&(f.objectPosition=y));const _=Oe()(Br(c),p,{"has-background-dim":0!==c,"has-parallax":i,"is-repeated":s,"has-background-gradient":o||r,[g]:!m&&g,"has-custom-content-position":!Tr(n)},zr(n));return Object(pe.createElement)("div",ue.useBlockProps.save({className:_,style:j}),m&&(o||r)&&0!==c&&Object(pe.createElement)("span",{"aria-hidden":"true",className:Oe()("wp-block-cover__gradient-background",g),style:r?{background:r}:void 0}),O&&m&&Object(pe.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:f}),Object(pe.createElement)("div",{className:"wp-block-cover__inner-container"},Object(pe.createElement)(ue.InnerBlocks.Content,null)))}},{attributes:{...Pr,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:o,customGradient:n,customOverlayColor:r,dimRatio:a,focalPoint:c,hasParallax:l,overlayColor:i,url:s,minHeight:u}=e,m=Object(ue.getColorClassName)("background-color",i),d=Object(ue.__experimentalGetGradientClass)(o),b="image"===t?xr(s):{};m||(b.backgroundColor=r),c&&!l&&(b.backgroundPosition=`${Math.round(100*c.x)}% ${Math.round(100*c.y)}%`),n&&!s&&(b.background=n),b.minHeight=u||void 0;const p=Oe()(Br(a),m,{"has-background-dim":0!==a,"has-parallax":l,"has-background-gradient":n,[d]:!s&&d});return Object(pe.createElement)("div",{className:p,style:b},s&&(o||n)&&0!==a&&Object(pe.createElement)("span",{"aria-hidden":"true",className:Oe()("wp-block-cover__gradient-background",d),style:n?{background:n}:void 0}),"video"===t&&s&&Object(pe.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:s}),Object(pe.createElement)("div",{className:"wp-block-cover__inner-container"},Object(pe.createElement)(ue.InnerBlocks.Content,null)))}},{attributes:{...Pr,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:o,customGradient:n,customOverlayColor:r,dimRatio:a,focalPoint:c,hasParallax:l,overlayColor:i,url:s,minHeight:u}=e,m=Object(ue.getColorClassName)("background-color",i),d=Object(ue.__experimentalGetGradientClass)(o),b="image"===t?xr(s):{};m||(b.backgroundColor=r),c&&!l&&(b.backgroundPosition=`${100*c.x}% ${100*c.y}%`),n&&!s&&(b.background=n),b.minHeight=u||void 0;const p=Oe()(Br(a),m,{"has-background-dim":0!==a,"has-parallax":l,"has-background-gradient":n,[d]:!s&&d});return Object(pe.createElement)("div",{className:p,style:b},s&&(o||n)&&0!==a&&Object(pe.createElement)("span",{"aria-hidden":"true",className:Oe()("wp-block-cover__gradient-background",d),style:n?{background:n}:void 0}),"video"===t&&s&&Object(pe.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:s}),Object(pe.createElement)("div",{className:"wp-block-cover__inner-container"},Object(pe.createElement)(ue.InnerBlocks.Content,null)))}},{attributes:{...Pr,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,contentAlign:o,customOverlayColor:n,dimRatio:r,focalPoint:a,hasParallax:c,overlayColor:l,title:i,url:s}=e,u=Object(ue.getColorClassName)("background-color",l),m="image"===t?xr(s):{};u||(m.backgroundColor=n),a&&!c&&(m.backgroundPosition=`${100*a.x}% ${100*a.y}%`);const d=Oe()(Br(r),u,{"has-background-dim":0!==r,"has-parallax":c,[`has-${o}-content`]:"center"!==o});return Object(pe.createElement)("div",{className:d,style:m},"video"===t&&s&&Object(pe.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:s}),!ue.RichText.isEmpty(i)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:i}))},migrate:e=>[Object(de.omit)(e,["title","contentAlign"]),[Object(me.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(be.__)("Write title…")})]]},{attributes:{...Pr,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},align:{type:"string"}},supports:{className:!1},save({attributes:e}){const{url:t,title:o,hasParallax:n,dimRatio:r,align:a,contentAlign:c,overlayColor:l,customOverlayColor:i}=e,s=Object(ue.getColorClassName)("background-color",l),u=xr(t);s||(u.backgroundColor=i);const m=Oe()("wp-block-cover-image",Br(r),s,{"has-background-dim":0!==r,"has-parallax":n,[`has-${c}-content`]:"center"!==c},a?"align"+a:null);return Object(pe.createElement)("div",{className:m,style:u},!ue.RichText.isEmpty(o)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:o}))},migrate:e=>[Object(de.omit)(e,["title","contentAlign","align"]),[Object(me.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(be.__)("Write title…")})]]},{attributes:{...Pr,title:{type:"string",source:"html",selector:"h2"},align:{type:"string"},contentAlign:{type:"string",default:"center"}},supports:{className:!1},save({attributes:e}){const{url:t,title:o,hasParallax:n,dimRatio:r,align:a}=e,c=xr(t),l=Oe()("wp-block-cover-image",Br(r),{"has-background-dim":0!==r,"has-parallax":n},a?"align"+a:null);return Object(pe.createElement)("section",{className:l,style:c},Object(pe.createElement)(ue.RichText.Content,{tagName:"h2",value:o}))},migrate:e=>[Object(de.omit)(e,["title","contentAlign","align"]),[Object(me.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(be.__)("Write title…")})]]}],Mr=o("FEKF"),Rr=o.n(Mr),Vr=o("Zss7"),Hr=o.n(Vr);const Ir=[["core/paragraph",{align:"center",fontSize:"large",placeholder:Object(be.__)("Write title…")}]],{__Visualizer:Lr}=ke.__experimentalBoxControl;function Ar(){return Ar.fastAverageColor||(Ar.fastAverageColor=new Rr.a),Ar.fastAverageColor}function Dr({onChange:e,onUnitChange:t,unit:o="px",value:n=""}){const[r,a]=Object(pe.useState)(null),c="block-cover-height-input-"+Object(Ie.useInstanceId)(ue.__experimentalUnitControl),l="px"===o,i=Object(ke.__experimentalUseCustomUnits)({availableUnits:Object(ue.useSetting)("spacing.units")||["px","em","rem","vw","vh"],defaultValues:{px:"430",em:"20",rem:"20",vw:"20",vh:"50"}}),s=null!==r?r:n,u=l?50:0;return Object(pe.createElement)(ke.BaseControl,{label:Object(be.__)("Minimum height of cover"),id:c},Object(pe.createElement)(ue.__experimentalUnitControl,{id:c,isResetValueOnUnitChange:!0,min:u,onBlur:()=>{null!==r&&a(null)},onChange:o=>{const n=""!==o?parseInt(o,10):void 0;isNaN(n)&&void 0!==n?a(o):(a(null),e(n),void 0===n&&t())},onUnitChange:t,step:"1",style:{maxWidth:80},unit:o,units:i,value:s}))}const Fr={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1};function qr({className:e,onResizeStart:t,onResize:o,onResizeStop:n,...r}){const[a,c]=Object(pe.useState)(!1);return Object(pe.createElement)(ke.ResizableBox,Object(we.a)({className:Oe()(e,{"is-resizing":a}),enable:Fr,onResizeStart:(e,n,r)=>{t(r.clientHeight),o(r.clientHeight)},onResize:(e,t,n)=>{o(n.clientHeight),a||c(!0)},onResizeStop:(e,t,o)=>{n(o.clientHeight),c(!1)},minHeight:50},r))}function Gr({x:e,y:t}){return`${Math.round(100*e)}% ${Math.round(100*t)}%`}function Ur({disableMediaButtons:e=!1,children:t,noticeUI:o,noticeOperations:n,onSelectMedia:r}){const{removeAllNotices:a,createErrorNotice:c}=n;return Object(pe.createElement)(ue.MediaPlaceholder,{icon:Object(pe.createElement)(ue.BlockIcon,{icon:Er}),labels:{title:Object(be.__)("Cover"),instructions:Object(be.__)("Upload an image or video file, or pick one from your media library.")},onSelect:r,accept:"image/*,video/*",allowedTypes:Sr,notices:o,disableMediaButtons:e,onError:e=>{a(),c(e)}},t)}var Wr=Object(Ie.compose)([Object(He.withDispatch)(e=>{const{toggleSelection:t}=e(ue.store);return{toggleSelection:t}}),Object(ue.withColors)({overlayColor:"background-color"}),ke.withNotices,Ie.withInstanceId])((function({attributes:e,clientId:t,isSelected:o,noticeUI:n,noticeOperations:r,overlayColor:a,setAttributes:c,setOverlayColor:l,toggleSelection:i}){var s,u;const{contentPosition:m,id:d,backgroundType:b,dimRatio:p,focalPoint:g,hasParallax:h,isRepeated:v,minHeight:O,minHeightUnit:j,style:f,url:y}=e,{gradientClass:_,gradientValue:w,setGradient:k}=Object(ue.__experimentalUseGradient)(),E=function(e){return t=>{if(!t||!t.url)return void e({url:void 0,id:void 0});let o;if(Object(Ve.isBlobURL)(t.url)&&(t.type=Object(Ve.getBlobTypeByURL)(t.url)),t.media_type)o="image"===t.media_type?"image":"video";else{if("image"!==t.type&&"video"!==t.type)return;o=t.type}e({url:t.url,id:t.id,backgroundType:o,..."video"===o?{focalPoint:void 0,hasParallax:void 0}:{}})}}(c),C=((e,t)=>!e&&Object(Ve.isBlobURL)(t))(d,y),[x,S]=Object(pe.useState)(O),[B,T]=Object(pe.useState)(j),z="vh"===j&&100===O,P=Object(pe.useRef)(),N=function(e,t=50,o,n){const[r,a]=Object(pe.useState)(!1);return Object(pe.useEffect)(()=>{e&&t<=50&&n.current&&Ar().getColorAsync(n.current,e=>{a(e.isDark)})},[e,e&&t<=50&&n.current,a]),Object(pe.useEffect)(()=>{if(t>50||!e){if(!o)return void a(!0);a(Hr()(o).isDark())}},[o,t>50||!e,a]),Object(pe.useEffect)(()=>{e||o||a(!1)},[!e&&!o,a]),r}(y,p,a.color,P),M="image"===b,R="video"===b,[V,H]=Object(pe.useState)(null),I=j?`${O}${j}`:O,L=!(h||v),A={...M&&!L?xr(y):{backgroundImage:w||void 0},backgroundColor:a.color,minHeight:V||I||void 0},D={objectPosition:g&&L?Gr(g):void 0},F=!!(y||a.color||w),q=R||M&&(!h||v),G=e=>{const[t,o]=P.current?[P.current.style,"objectPosition"]:[$.current.style,"backgroundPosition"];t[o]=Gr(e)},U=Object(He.useSelect)(e=>e(ue.store).getBlock(t).innerBlocks.length>0,[t]),W=Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.BlockControls,{group:"block"},Object(pe.createElement)(ue.__experimentalBlockAlignmentMatrixControl,{label:Object(be.__)("Change content position"),value:m,onChange:e=>c({contentPosition:e}),isDisabled:!U}),Object(pe.createElement)(ue.__experimentalBlockFullHeightAligmentControl,{isActive:z,onToggle:()=>z?c("vh"===B&&100===x?{minHeight:void 0,minHeightUnit:void 0}:{minHeight:x,minHeightUnit:B}):(S(O),T(j),c({minHeight:100,minHeightUnit:"vh"})),isDisabled:!U})),Object(pe.createElement)(ue.BlockControls,{group:"other"},Object(pe.createElement)(ue.MediaReplaceFlow,{mediaId:d,mediaURL:y,allowedTypes:Sr,accept:"image/*,video/*",onSelect:E,name:y?Object(be.__)("Replace"):Object(be.__)("Add Media")})),Object(pe.createElement)(ue.InspectorControls,null,!!y&&Object(pe.createElement)(ke.PanelBody,{title:Object(be.__)("Media settings")},M&&Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ke.ToggleControl,{label:Object(be.__)("Fixed background"),checked:h,onChange:()=>{c({hasParallax:!h,...h?{}:{focalPoint:void 0}})}}),Object(pe.createElement)(ke.ToggleControl,{label:Object(be.__)("Repeated background"),checked:v,onChange:()=>{c({isRepeated:!v})}})),q&&Object(pe.createElement)(ke.FocalPointPicker,{label:Object(be.__)("Focal point picker"),url:y,value:g,onDragStart:G,onDrag:G,onChange:e=>c({focalPoint:e})}),Object(pe.createElement)(ke.PanelRow,null,Object(pe.createElement)(ke.Button,{isSecondary:!0,isSmall:!0,className:"block-library-cover__reset-button",onClick:()=>c({url:void 0,id:void 0,backgroundType:void 0,dimRatio:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0})},Object(be.__)("Clear Media")))),Object(pe.createElement)(ke.PanelBody,{title:Object(be.__)("Dimensions")},Object(pe.createElement)(Dr,{value:V||O,unit:j,onChange:e=>c({minHeight:e}),onUnitChange:e=>c({minHeightUnit:e})})),Object(pe.createElement)(ue.__experimentalPanelColorGradientSettings,{title:Object(be.__)("Overlay"),initialOpen:!0,settings:[{colorValue:a.color,gradientValue:w,onColorChange:l,onGradientChange:k,label:Object(be.__)("Color")}]},!!y&&Object(pe.createElement)(ke.RangeControl,{label:Object(be.__)("Opacity"),value:p,onChange:e=>c({dimRatio:e}),min:0,max:100,step:10,required:!0})))),$=Object(pe.useRef)(),Z=Object(ue.useBlockProps)({ref:$}),J=Object(ue.__experimentalUseInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:Ir,templateInsertUpdatesSelection:!0});if(!U&&!F)return Object(pe.createElement)(pe.Fragment,null,W,Object(pe.createElement)("div",Object(we.a)({},Z,{className:Oe()("is-placeholder",Z.className)}),Object(pe.createElement)(Ur,{noticeUI:n,onSelectMedia:E,noticeOperations:r},Object(pe.createElement)("div",{className:"wp-block-cover__placeholder-background-options"},Object(pe.createElement)(ue.ColorPalette,{disableCustomColors:!0,value:a.color,onChange:l,clearable:!1})))));const Y=Oe()(Br(p),{"is-dark-theme":N,"has-background-dim":0!==p,"is-transient":C,"has-parallax":h,"is-repeated":v,[a.class]:a.class,"has-background-gradient":w,[_]:!y&&_,"has-custom-content-position":!Tr(m)},zr(m));return Object(pe.createElement)(pe.Fragment,null,W,Object(pe.createElement)("div",Object(we.a)({},Z,{className:Oe()(Y,Z.className),style:{...A,...Z.style},"data-url":y}),Object(pe.createElement)(Lr,{values:null==f||null===(s=f.spacing)||void 0===s?void 0:s.padding,showValues:null==f||null===(u=f.visualizers)||void 0===u?void 0:u.padding}),Object(pe.createElement)(qr,{className:"block-library-cover__resize-container",onResizeStart:()=>{c({minHeightUnit:"px"}),i(!1)},onResize:H,onResizeStop:e=>{i(!0),c({minHeight:e}),H(null)},showHandle:o}),y&&w&&0!==p&&Object(pe.createElement)("span",{"aria-hidden":"true",className:Oe()("wp-block-cover__gradient-background",_),style:{backgroundImage:w}}),y&&M&&L&&Object(pe.createElement)("img",{ref:P,className:"wp-block-cover__image-background",alt:"",src:y,style:D}),y&&R&&Object(pe.createElement)("video",{ref:P,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:y,style:D}),C&&Object(pe.createElement)(ke.Spinner,null),Object(pe.createElement)(Ur,{disableMediaButtons:!0,noticeUI:n,onSelectMedia:E,noticeOperations:r}),Object(pe.createElement)("div",J)))}));var $r={from:[{type:"block",blocks:["core/image"],transform:({caption:e,url:t,align:o,id:n,anchor:r,style:a})=>{var c;return Object(me.createBlock)("core/cover",{url:t,align:o,id:n,anchor:r,style:{color:{duotone:null==a||null===(c=a.color)||void 0===c?void 0:c.duotone}}},[Object(me.createBlock)("core/paragraph",{content:e,fontSize:"large"})])}},{type:"block",blocks:["core/video"],transform:({caption:e,src:t,align:o,id:n,anchor:r})=>Object(me.createBlock)("core/cover",{url:t,align:o,id:n,backgroundType:"video",anchor:r},[Object(me.createBlock)("core/paragraph",{content:e,fontSize:"large"})])},{type:"block",blocks:["core/group"],isMatch:({backgroundColor:e,gradient:t,style:o})=>{var n,r;return e||(null==o||null===(n=o.color)||void 0===n?void 0:n.background)||(null==o||null===(r=o.color)||void 0===r?void 0:r.gradient)||t},transform:({align:e,anchor:t,backgroundColor:o,gradient:n,style:r},a)=>{var c,l;return Object(me.createBlock)("core/cover",{align:e,anchor:t,overlayColor:o,customOverlayColor:null==r||null===(c=r.color)||void 0===c?void 0:c.background,gradient:n,customGradient:null==r||null===(l=r.color)||void 0===l?void 0:l.gradient},a)}}],to:[{type:"block",blocks:["core/image"],isMatch:({backgroundType:e,url:t,overlayColor:o,customOverlayColor:n,gradient:r,customGradient:a})=>t?"image"===e:!(o||n||r||a),transform:({title:e,url:t,align:o,id:n,anchor:r,style:a})=>{var c;return Object(me.createBlock)("core/image",{caption:e,url:t,align:o,id:n,anchor:r,style:{color:{duotone:null==a||null===(c=a.color)||void 0===c?void 0:c.duotone}}})}},{type:"block",blocks:["core/video"],isMatch:({backgroundType:e,url:t,overlayColor:o,customOverlayColor:n,gradient:r,customGradient:a})=>t?"video"===e:!(o||n||r||a),transform:({title:e,url:t,align:o,id:n,anchor:r})=>Object(me.createBlock)("core/video",{caption:e,src:t,id:n,align:o,anchor:r})}]};const Zr={apiVersion:2,name:"core/cover",title:"Cover",category:"media",description:"Add an image or video with a text overlay — great for headers.",textdomain:"default",attributes:{url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{anchor:!0,align:!0,html:!1,spacing:{padding:!0},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",text:!1,background:!1}},editorStyle:"wp-block-cover-editor",style:"wp-block-cover"},{name:Jr}=Zr,Yr={icon:Er,example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{customFontSize:48,content:Object(be.__)("Snow Patrol"),align:"center"}}]},transforms:$r,save:function({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:c,focalPoint:l,hasParallax:i,isRepeated:s,overlayColor:u,url:m,id:d,minHeight:b,minHeightUnit:p}=e,g=Object(ue.getColorClassName)("background-color",u),h=Object(ue.__experimentalGetGradientClass)(o),v=p?`${b}${p}`:b,O="image"===t,j="video"===t,f=!(i||s),y={...O&&!f?xr(m):{},backgroundColor:g?void 0:a,background:r&&!m?r:void 0,minHeight:v||void 0},_=l&&f?`${Math.round(100*l.x)}% ${Math.round(100*l.y)}%`:void 0,w=Oe()(Br(c),g,{"has-background-dim":0!==c,"has-parallax":i,"is-repeated":s,"has-background-gradient":o||r,[h]:!m&&h,"has-custom-content-position":!Tr(n)},zr(n));return Object(pe.createElement)("div",ue.useBlockProps.save({className:w,style:y}),m&&(o||r)&&0!==c&&Object(pe.createElement)("span",{"aria-hidden":"true",className:Oe()("wp-block-cover__gradient-background",h),style:r?{background:r}:void 0}),O&&f&&m&&Object(pe.createElement)("img",{className:Oe()("wp-block-cover__image-background",d?"wp-image-"+d:null),alt:"",src:m,style:{objectPosition:_},"data-object-fit":"cover","data-object-position":_}),j&&m&&Object(pe.createElement)("video",{className:Oe()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:_},"data-object-fit":"cover","data-object-position":_}),Object(pe.createElement)("div",{className:"wp-block-cover__inner-container"},Object(pe.createElement)(ue.InnerBlocks.Content,null)))},edit:Wr,deprecated:Nr};var Kr=({blockSupportsResponsive:e,showEditButton:t,themeSupportsResponsive:o,allowResponsive:n,getResponsiveHelp:r,toggleResponsive:a,switchBackToURLInput:c})=>Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(ke.ToolbarGroup,null,t&&Object(pe.createElement)(ke.ToolbarButton,{className:"components-toolbar__control",label:Object(be.__)("Edit URL"),icon:No.a,onClick:c}))),o&&e&&Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(ke.PanelBody,{title:Object(be.__)("Media settings"),className:"blocks-responsive"},Object(pe.createElement)(ke.ToggleControl,{label:Object(be.__)("Resize for smaller devices"),checked:n,help:r,onChange:a}))));const Qr=Object(pe.createElement)(ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(ke.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zm-6-9.5L16 12l-2.5 2.8 1.1 1L18 12l-3.5-3.5-1 1zm-3 0l-1-1L6 12l3.5 3.8 1.1-1L8 12l2.5-2.5z"})),Xr=Object(pe.createElement)(ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(ke.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM13.2 7.7c-.4.4-.7 1.1-.7 1.9v3.7c-.4-.3-.8-.4-1.3-.4-1.2 0-2.2 1-2.2 2.2 0 1.2 1 2.2 2.2 2.2.5 0 1-.2 1.4-.5.9-.6 1.4-1.6 1.4-2.6V9.6c0-.4.1-.6.2-.8.3-.3 1-.3 1.6-.3h.2V7h-.2c-.7 0-1.8 0-2.6.7z"})),ea=Object(pe.createElement)(ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(ke.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9.2 4.5H19c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V9.8l4.6-5.3zm9.8 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),ta=Object(pe.createElement)(ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(ke.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM10 15l5-3-5-3v6z"})),oa={foreground:"#1da1f2",src:Object(pe.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(ke.G,null,Object(pe.createElement)(ke.Path,{d:"M22.23 5.924c-.736.326-1.527.547-2.357.646.847-.508 1.498-1.312 1.804-2.27-.793.47-1.67.812-2.606.996C18.325 4.498 17.258 4 16.078 4c-2.266 0-4.103 1.837-4.103 4.103 0 .322.036.635.106.935-3.41-.17-6.433-1.804-8.457-4.287-.353.607-.556 1.312-.556 2.064 0 1.424.724 2.68 1.825 3.415-.673-.022-1.305-.207-1.86-.514v.052c0 1.988 1.415 3.647 3.293 4.023-.344.095-.707.145-1.08.145-.265 0-.522-.026-.773-.074.522 1.63 2.038 2.817 3.833 2.85-1.404 1.1-3.174 1.757-5.096 1.757-.332 0-.66-.02-.98-.057 1.816 1.164 3.973 1.843 6.29 1.843 7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.53.802-.578 1.497-1.3 2.047-2.124z"})))},na={foreground:"#ff0000",src:Object(pe.createElement)(ke.SVG,{viewBox:"0 0 24 24"},Object(pe.createElement)(ke.Path,{d:"M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"}))},ra={foreground:"#3b5998",src:Object(pe.createElement)(ke.SVG,{viewBox:"0 0 24 24"},Object(pe.createElement)(ke.Path,{d:"M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z"}))},aa=Object(pe.createElement)(ke.SVG,{viewBox:"0 0 24 24"},Object(pe.createElement)(ke.G,null,Object(pe.createElement)(ke.Path,{d:"M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z"}))),ca={foreground:"#0073AA",src:Object(pe.createElement)(ke.SVG,{viewBox:"0 0 24 24"},Object(pe.createElement)(ke.G,null,Object(pe.createElement)(ke.Path,{d:"M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z"})))},la={foreground:"#1db954",src:Object(pe.createElement)(ke.SVG,{viewBox:"0 0 24 24"},Object(pe.createElement)(ke.Path,{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424c-.18.295-.563.387-.857.207-2.35-1.434-5.305-1.76-8.786-.963-.335.077-.67-.133-.746-.47-.077-.334.132-.67.47-.745 3.808-.87 7.076-.496 9.712 1.115.293.18.386.563.206.857M17.81 13.7c-.226.367-.706.482-1.072.257-2.687-1.652-6.785-2.13-9.965-1.166-.413.127-.848-.106-.973-.517-.125-.413.108-.848.52-.973 3.632-1.102 8.147-.568 11.234 1.328.366.226.48.707.256 1.072m.105-2.835C14.692 8.95 9.375 8.775 6.297 9.71c-.493.15-1.016-.13-1.166-.624-.148-.495.13-1.017.625-1.167 3.532-1.073 9.404-.866 13.115 1.337.445.264.59.838.327 1.282-.264.443-.838.59-1.282.325"}))},ia=Object(pe.createElement)(ke.SVG,{viewBox:"0 0 24 24"},Object(pe.createElement)(ke.Path,{d:"m6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z"})),sa={foreground:"#1ab7ea",src:Object(pe.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(ke.G,null,Object(pe.createElement)(ke.Path,{d:"M22.396 7.164c-.093 2.026-1.507 4.8-4.245 8.32C15.323 19.16 12.93 21 10.97 21c-1.214 0-2.24-1.12-3.08-3.36-.56-2.052-1.118-4.105-1.68-6.158-.622-2.24-1.29-3.36-2.004-3.36-.156 0-.7.328-1.634.98l-.978-1.26c1.027-.903 2.04-1.806 3.037-2.71C6 3.95 7.03 3.328 7.716 3.265c1.62-.156 2.616.95 2.99 3.32.404 2.558.685 4.148.84 4.77.468 2.12.982 3.18 1.543 3.18.435 0 1.09-.687 1.963-2.064.872-1.376 1.34-2.422 1.402-3.142.125-1.187-.343-1.782-1.4-1.782-.5 0-1.013.115-1.542.34 1.023-3.35 2.977-4.976 5.862-4.883 2.14.063 3.148 1.45 3.024 4.16z"})))},ua=Object(pe.createElement)(ke.SVG,{viewBox:"0 0 24 24"},Object(pe.createElement)(ke.Path,{d:"M22 11.816c0-1.256-1.02-2.277-2.277-2.277-.593 0-1.122.24-1.526.613-1.48-.965-3.455-1.594-5.647-1.69l1.17-3.702 3.18.75c.01 1.027.847 1.86 1.877 1.86 1.035 0 1.877-.84 1.877-1.877 0-1.035-.842-1.877-1.877-1.877-.77 0-1.43.466-1.72 1.13L13.55 3.92c-.204-.047-.4.067-.46.26l-1.35 4.27c-2.317.037-4.412.67-5.97 1.67-.402-.355-.917-.58-1.493-.58C3.02 9.54 2 10.56 2 11.815c0 .814.433 1.523 1.078 1.925-.037.222-.06.445-.06.673 0 3.292 4.01 5.97 8.94 5.97s8.94-2.678 8.94-5.97c0-.214-.02-.424-.052-.632.687-.39 1.154-1.12 1.154-1.964zm-3.224-7.422c.606 0 1.1.493 1.1 1.1s-.493 1.1-1.1 1.1-1.1-.494-1.1-1.1.493-1.1 1.1-1.1zm-16 7.422c0-.827.673-1.5 1.5-1.5.313 0 .598.103.838.27-.85.675-1.477 1.478-1.812 2.36-.32-.274-.525-.676-.525-1.13zm9.183 7.79c-4.502 0-8.165-2.33-8.165-5.193S7.457 9.22 11.96 9.22s8.163 2.33 8.163 5.193-3.663 5.193-8.164 5.193zM20.635 13c-.326-.89-.948-1.7-1.797-2.383.247-.186.55-.3.882-.3.827 0 1.5.672 1.5 1.5 0 .482-.23.91-.586 1.184zm-11.64 1.704c-.76 0-1.397-.616-1.397-1.376 0-.76.636-1.397 1.396-1.397.76 0 1.376.638 1.376 1.398 0 .76-.616 1.376-1.376 1.376zm7.405-1.376c0 .76-.615 1.376-1.375 1.376s-1.4-.616-1.4-1.376c0-.76.64-1.397 1.4-1.397.76 0 1.376.638 1.376 1.398zm-1.17 3.38c.15.152.15.398 0 .55-.675.674-1.728 1.002-3.22 1.002l-.01-.002-.012.002c-1.492 0-2.544-.328-3.218-1.002-.152-.152-.152-.398 0-.55.152-.152.4-.15.55 0 .52.52 1.394.775 2.67.775l.01.002.01-.002c1.276 0 2.15-.253 2.67-.775.15-.152.398-.152.55 0z"})),ma={foreground:"#35465c",src:Object(pe.createElement)(ke.SVG,{viewBox:"0 0 24 24"},Object(pe.createElement)(ke.Path,{d:"M19 3H5a2 2 0 00-2 2v14c0 1.1.9 2 2 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-5.69 14.66c-2.72 0-3.1-1.9-3.1-3.16v-3.56H8.49V8.99c1.7-.62 2.54-1.99 2.64-2.87 0-.06.06-.41.06-.58h1.9v3.1h2.17v2.3h-2.18v3.1c0 .47.13 1.3 1.2 1.26h1.1v2.36c-1.01.02-2.07 0-2.07 0z"}))},da=Object(pe.createElement)(ke.SVG,{viewBox:"0 0 24 24"},Object(pe.createElement)(ke.Path,{d:"M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z"}),Object(pe.createElement)(ke.Path,{d:"M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z"}),Object(pe.createElement)(ke.Path,{d:"M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z"})),ba=Object(pe.createElement)(ke.SVG,{viewBox:"0 0 24 24"},Object(pe.createElement)(ke.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),Object(pe.createElement)(ke.Path,{d:"m23.7254 19.0205-10.1074-17.18468c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418h22.5655c1.279 0 1.8019-.8905 1.1599-1.9795z",fill:"#d4cdcb"}),Object(pe.createElement)(ke.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),Object(pe.createElement)(ke.Path,{d:"m13.618 1.83582c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418 15.2646-16.38573z",fill:"#e4ecb0"}),Object(pe.createElement)(ke.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),Object(pe.createElement)(ke.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})),pa=Object(pe.createElement)(ke.SVG,{viewBox:"0 0 24 24"},Object(pe.createElement)(ke.Path,{d:"m12.1479 18.5957c-2.4949 0-4.28131-1.7558-4.28131-4.0658 0-2.2176 1.78641-4.0965 4.09651-4.0965 2.2793 0 4.0349 1.7864 4.0349 4.1581 0 2.2794-1.7556 4.0042-3.8501 4.0042zm8.3521-18.5957-4.5329 1v7c-1.1088-1.41691-2.8028-1.8787-4.8049-1.8787-2.09443 0-3.97329.76993-5.5133 2.27917-1.72483 1.66323-2.6489 3.78863-2.6489 6.16033 0 2.5873.98562 4.8049 2.89526 6.499 1.44763 1.2936 3.17251 1.9402 5.17454 1.9402 1.9713 0 3.4498-.5236 4.8973-1.9402v1.9402h4.5329c0-7.6359 0-15.3641 0-23z",fill:"#333436"}));var ga=()=>Object(pe.createElement)("div",{className:"wp-block-embed is-loading"},Object(pe.createElement)(ke.Spinner,null),Object(pe.createElement)("p",null,Object(be.__)("Embedding…")));var ha=({icon:e,label:t,value:o,onSubmit:n,onChange:r,cannotEmbed:a,fallback:c,tryAgain:l})=>Object(pe.createElement)(ke.Placeholder,{icon:Object(pe.createElement)(ue.BlockIcon,{icon:e,showColors:!0}),label:t,className:"wp-block-embed",instructions:Object(be.__)("Paste a link to the content you want to display on your site.")},Object(pe.createElement)("form",{onSubmit:n},Object(pe.createElement)("input",{type:"url",value:o||"",className:"components-placeholder__input","aria-label":t,placeholder:Object(be.__)("Enter URL to embed here…"),onChange:r}),Object(pe.createElement)(ke.Button,{isPrimary:!0,type:"submit"},Object(be._x)("Embed","button label"))),Object(pe.createElement)("div",{className:"components-placeholder__learn-more"},Object(pe.createElement)(ke.ExternalLink,{href:Object(be.__)("https://wordpress.org/support/article/embeds/")},Object(be.__)("Learn more about embeds"))),a&&Object(pe.createElement)("div",{className:"components-placeholder__error"},Object(pe.createElement)("div",{className:"components-placeholder__instructions"},Object(be.__)("Sorry, this content could not be embedded.")),Object(pe.createElement)(ke.Button,{isSecondary:!0,onClick:l},Object(be._x)("Try again","button label"))," ",Object(pe.createElement)(ke.Button,{isSecondary:!0,onClick:c},Object(be._x)("Convert to link","button label"))));function va({html:e}){const t=Object(pe.useRef)();Object(pe.useEffect)(()=>{const{ownerDocument:e}=t.current,{defaultView:o}=e;function n({data:{secret:t,message:o,value:n}={}}){[t,o,n].some(e=>!e)||"height"!==o||e.querySelectorAll(`iframe[data-secret="${t}"`).forEach(e=>{+e.height!==n&&(e.height=n)})}function r(){const{activeElement:o}=e;"IFRAME"===o.tagName&&o.parentNode===t.current&&o.focus()}return o.addEventListener("message",n),o.addEventListener("blur",r),()=>{o.removeEventListener("message",n),o.removeEventListener("blur",r)}},[]);const o=Object(pe.useMemo)(()=>{const t=(new window.DOMParser).parseFromString(e,"text/html"),o=t.querySelector("iframe");o&&o.removeAttribute("style");const n=t.querySelector("blockquote");return n&&(n.style.display="none"),t.body.innerHTML},[e]);return Object(pe.createElement)("div",{ref:t,className:"wp-block-embed__wrapper",dangerouslySetInnerHTML:{__html:o}})}class Oa extends pe.Component{constructor(){super(...arguments),this.hideOverlay=this.hideOverlay.bind(this),this.state={interactive:!1}}static getDerivedStateFromProps(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}hideOverlay(){this.setState({interactive:!0})}render(){const{preview:e,previewable:t,url:o,type:n,caption:r,onCaptionChange:a,isSelected:c,className:l,icon:i,label:s,insertBlocksAfter:u}=this.props,{scripts:m}=e,{interactive:d}=this.state,b="photo"===n?(e=>{const t=e.thumbnail_url||e.url,o=Object(pe.createElement)("p",null,Object(pe.createElement)("img",{src:t,alt:e.title,width:"100%"}));return Object(pe.renderToString)(o)})(e):e.html,p=new URL(o).host.split("."),g=p.splice(p.length-2,p.length-1).join("."),h=Object(be.sprintf)(Object(be.__)("Embedded content from %s"),g),v=We()(n,l,"wp-block-embed__wrapper"),O="wp-embed"===n?Object(pe.createElement)(va,{html:b}):Object(pe.createElement)("div",{className:"wp-block-embed__wrapper"},Object(pe.createElement)(ke.SandBox,{html:b,scripts:m,title:h,type:v,onFocus:this.hideOverlay}),!d&&Object(pe.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return Object(pe.createElement)("figure",{className:We()(l,"wp-block-embed",{"is-type-video":"video"===n})},t?O:Object(pe.createElement)(ke.Placeholder,{icon:Object(pe.createElement)(ue.BlockIcon,{icon:i,showColors:!0}),label:s},Object(pe.createElement)("p",{className:"components-placeholder__error"},Object(pe.createElement)("a",{href:o},o)),Object(pe.createElement)("p",{className:"components-placeholder__error"},Object(be.sprintf)(Object(be.__)("Embedded content from %s can't be previewed in the editor."),g))),(!ue.RichText.isEmpty(r)||c)&&Object(pe.createElement)(ue.RichText,{tagName:"figcaption",placeholder:Object(be.__)("Add caption"),value:r,onChange:a,inlineToolbar:!0,__unstableOnSplitAtEnd:()=>u(Object(me.createBlock)("core/paragraph"))}))}}var ja=Oa;function fa(e){return e?Object(be.__)("This embed will preserve its aspect ratio when the browser is resized."):Object(be.__)("This embed may not preserve its aspect ratio when the browser is resized.")}var ya=e=>{const{attributes:{providerNameSlug:t,previewable:o,responsive:n,url:r},attributes:a,isSelected:c,onReplace:l,setAttributes:i,insertBlocksAfter:s,onFocus:u}=e,m={title:Object(be._x)("Embed","block title"),icon:Qr},{icon:d,title:b}=(p=t,(null===(g=Object(me.getBlockVariations)(Je))||void 0===g?void 0:g.find(({name:e})=>e===p))||m);var p,g;const[h,v]=Object(pe.useState)(r),[O,j]=Object(pe.useState)(!1),{invalidateResolution:f}=Object(He.useDispatch)("core/data"),{preview:y,fetching:_,themeSupportsResponsive:w,cannotEmbed:k}=Object(He.useSelect)(e=>{var t;const{getEmbedPreview:o,isPreviewEmbedFallback:n,isRequestingEmbedPreview:a,getThemeSupports:c}=e(se.store);if(!r)return{fetching:!1,cannotEmbed:!1};const l=o(r),i=n(r),s=!1===(null==l?void 0:l.html)&&void 0===(null==l?void 0:l.type),u=404===(null==l||null===(t=l.data)||void 0===t?void 0:t.status),m=!!l&&!s&&!u;return{preview:m?l:void 0,fetching:a(r),themeSupportsResponsive:c()["responsive-embeds"],cannotEmbed:!m||i}},[r]),E=()=>{const{allowResponsive:e,className:t}=a;return{...a,...et(y,b,t,n,e)}};Object(pe.useEffect)(()=>{if(null==y||!y.html||!k||_)return;const e=r.replace(/\/$/,"");v(e),j(!1),i({url:e})},[null==y?void 0:y.html,r]),Object(pe.useEffect)(()=>{if(y&&!O&&(i(E()),l)){const t=Ke(e,E());t&&l(t)}},[y,O]);const C=Object(ue.useBlockProps)();if(_)return Object(pe.createElement)(ge.View,C,Object(pe.createElement)(ga,null));const x=pe.Platform.select({web:Object(be.sprintf)(Object(be.__)("%s URL"),b),native:b});if(!y||k||O)return Object(pe.createElement)(ge.View,C,Object(pe.createElement)(ha,{icon:d,label:x,onFocus:u,onSubmit:e=>{e&&e.preventDefault(),j(!1),i({url:h})},value:h,cannotEmbed:k,onChange:e=>v(e.target.value),fallback:()=>function(e,t){const o=Object(pe.createElement)("a",{href:e},e);t(Object(me.createBlock)("core/paragraph",{content:Object(pe.renderToString)(o)}))}(h,l),tryAgain:()=>{f("core","getEmbedPreview",[h])}}));const{caption:S,type:B,allowResponsive:T,className:z}=E(),P=Oe()(z,e.className);return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(Kr,{showEditButton:y&&!k,themeSupportsResponsive:w,blockSupportsResponsive:n,allowResponsive:T,getResponsiveHelp:fa,toggleResponsive:()=>{const{allowResponsive:e,className:t}=a,{html:o}=y,r=!e;i({allowResponsive:r,className:Xe(o,t,n&&r)})},switchBackToURLInput:()=>j(!0)}),Object(pe.createElement)(ge.View,C,Object(pe.createElement)(ja,{preview:y,previewable:o,className:P,url:h,type:B,caption:S,onCaptionChange:e=>i({caption:e}),isSelected:c,icon:d,label:x,insertBlocksAfter:s})))};const{name:_a}={apiVersion:2,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube.",textdomain:"default",attributes:{url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1},previewable:{type:"boolean",default:!0}},supports:{align:!0},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"};var wa={from:[{type:"raw",isMatch:e=>{var t,o;return"P"===e.nodeName&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)&&1===(null===(t=e.textContent)||void 0===t||null===(o=t.match(/https/gi))||void 0===o?void 0:o.length)},transform:e=>Object(me.createBlock)(_a,{url:e.textContent.trim()})}],to:[{type:"block",blocks:["core/paragraph"],transform:({url:e,caption:t})=>{const o=Object(pe.createElement)("a",{href:e},t||e);return Object(me.createBlock)("core/paragraph",{content:Object(pe.renderToString)(o)})}}]};const ka=[{name:"twitter",title:"Twitter",icon:oa,keywords:["tweet",Object(be.__)("social")],description:Object(be.__)("Embed a tweet."),patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i],attributes:{providerNameSlug:"twitter",responsive:!0}},{name:"youtube",title:"YouTube",icon:na,keywords:[Object(be.__)("music"),Object(be.__)("video")],description:Object(be.__)("Embed a YouTube video."),patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i],attributes:{providerNameSlug:"youtube",responsive:!0}},{name:"facebook",title:"Facebook",icon:ra,keywords:[Object(be.__)("social")],description:Object(be.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:"Instagram",icon:aa,keywords:[Object(be.__)("image"),Object(be.__)("social")],description:Object(be.__)("Embed an Instagram post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"instagram",responsive:!0}},{name:"wordpress",title:"WordPress",icon:ca,keywords:[Object(be.__)("post"),Object(be.__)("blog")],description:Object(be.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:"SoundCloud",icon:Xr,keywords:[Object(be.__)("music"),Object(be.__)("audio")],description:Object(be.__)("Embed SoundCloud content."),patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i],attributes:{providerNameSlug:"soundcloud",responsive:!0}},{name:"spotify",title:"Spotify",icon:la,keywords:[Object(be.__)("music"),Object(be.__)("audio")],description:Object(be.__)("Embed Spotify content."),patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i],attributes:{providerNameSlug:"spotify",responsive:!0}},{name:"flickr",title:"Flickr",icon:ia,keywords:[Object(be.__)("image")],description:Object(be.__)("Embed Flickr content."),patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i],attributes:{providerNameSlug:"flickr",responsive:!0}},{name:"vimeo",title:"Vimeo",icon:sa,keywords:[Object(be.__)("video")],description:Object(be.__)("Embed a Vimeo video."),patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i],attributes:{providerNameSlug:"vimeo",responsive:!0}},{name:"animoto",title:"Animoto",icon:ba,description:Object(be.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:"Cloudup",icon:Qr,description:Object(be.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:"CollegeHumor",icon:ta,description:Object(be.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:"Crowdsignal",icon:Qr,keywords:["polldaddy",Object(be.__)("survey")],description:Object(be.__)("Embed Crowdsignal (formerly Polldaddy) content."),patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i],attributes:{providerNameSlug:"crowdsignal",responsive:!0}},{name:"dailymotion",title:"Dailymotion",icon:pa,keywords:[Object(be.__)("video")],description:Object(be.__)("Embed a Dailymotion video."),patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i],attributes:{providerNameSlug:"dailymotion",responsive:!0}},{name:"imgur",title:"Imgur",icon:ea,description:Object(be.__)("Embed Imgur content."),patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i],attributes:{providerNameSlug:"imgur",responsive:!0}},{name:"issuu",title:"Issuu",icon:Qr,description:Object(be.__)("Embed Issuu content."),patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i],attributes:{providerNameSlug:"issuu",responsive:!0}},{name:"kickstarter",title:"Kickstarter",icon:Qr,description:Object(be.__)("Embed Kickstarter content."),patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i],attributes:{providerNameSlug:"kickstarter",responsive:!0}},{name:"meetup-com",title:"Meetup.com",icon:Qr,description:Object(be.__)("Embed Meetup.com content."),patterns:[/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i],attributes:{providerNameSlug:"meetup-com",responsive:!0}},{name:"mixcloud",title:"Mixcloud",icon:Xr,keywords:[Object(be.__)("music"),Object(be.__)("audio")],description:Object(be.__)("Embed Mixcloud content."),patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i],attributes:{providerNameSlug:"mixcloud",responsive:!0}},{name:"reddit",title:"Reddit",icon:ua,description:Object(be.__)("Embed a Reddit thread."),patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i],attributes:{providerNameSlug:"reddit",responsive:!0}},{name:"reverbnation",title:"ReverbNation",icon:Xr,description:Object(be.__)("Embed ReverbNation content."),patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i],attributes:{providerNameSlug:"reverbnation",responsive:!0}},{name:"screencast",title:"Screencast",icon:ta,description:Object(be.__)("Embed Screencast content."),patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i],attributes:{providerNameSlug:"screencast",responsive:!0}},{name:"scribd",title:"Scribd",icon:Qr,description:Object(be.__)("Embed Scribd content."),patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i],attributes:{providerNameSlug:"scribd",responsive:!0}},{name:"slideshare",title:"Slideshare",icon:Qr,description:Object(be.__)("Embed Slideshare content."),patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i],attributes:{providerNameSlug:"slideshare",responsive:!0}},{name:"smugmug",title:"SmugMug",icon:ea,description:Object(be.__)("Embed SmugMug content."),patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i],attributes:{providerNameSlug:"smugmug",previewable:!1,responsive:!0}},{name:"speaker-deck",title:"Speaker Deck",icon:Qr,description:Object(be.__)("Embed Speaker Deck content."),patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i],attributes:{providerNameSlug:"speaker-deck",responsive:!0}},{name:"tiktok",title:"TikTok",icon:ta,keywords:[Object(be.__)("video")],description:Object(be.__)("Embed a TikTok video."),patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i],attributes:{providerNameSlug:"tiktok",responsive:!0}},{name:"ted",title:"TED",icon:ta,description:Object(be.__)("Embed a TED video."),patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i],attributes:{providerNameSlug:"ted",responsive:!0}},{name:"tumblr",title:"Tumblr",icon:ma,keywords:[Object(be.__)("social")],description:Object(be.__)("Embed a Tumblr post."),patterns:[/^https?:\/\/(www\.)?tumblr\.com\/.+/i],attributes:{providerNameSlug:"tumblr",responsive:!0}},{name:"videopress",title:"VideoPress",icon:ta,keywords:[Object(be.__)("video")],description:Object(be.__)("Embed a VideoPress video."),patterns:[/^https?:\/\/videopress\.com\/.+/i],attributes:{providerNameSlug:"videopress",responsive:!0}},{name:"wordpress-tv",title:"WordPress.tv",icon:ta,description:Object(be.__)("Embed a WordPress.tv video."),patterns:[/^https?:\/\/wordpress\.tv\/.+/i],attributes:{providerNameSlug:"wordpress-tv",responsive:!0}},{name:"amazon-kindle",title:"Amazon Kindle",icon:da,keywords:[Object(be.__)("ebook")],description:Object(be.__)("Embed Amazon Kindle content."),patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i],attributes:{providerNameSlug:"amazon-kindle"}}];ka.forEach(e=>{e.isActive||(e.isActive=(e,t)=>e.providerNameSlug===t.providerNameSlug)});var Ea=ka;const{attributes:Ca}={apiVersion:2,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube.",textdomain:"default",attributes:{url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1},previewable:{type:"boolean",default:!0}},supports:{align:!0},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"};var xa=[{attributes:Ca,save({attributes:{url:e,caption:t,type:o,providerNameSlug:n}}){if(!e)return null;const r=Oe()("wp-block-embed",{["is-type-"+o]:o,["is-provider-"+n]:n});return Object(pe.createElement)("figure",{className:r},`\n${e}\n`,!ue.RichText.isEmpty(t)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"figcaption",value:t}))}}];const Sa={apiVersion:2,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube.",textdomain:"default",attributes:{url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1},previewable:{type:"boolean",default:!0}},supports:{align:!0},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},{name:Ba}=Sa,Ta={icon:Qr,edit:ya,save:function({attributes:e}){const{url:t,caption:o,type:n,providerNameSlug:r}=e;if(!t)return null;const a=We()("wp-block-embed",{["is-type-"+n]:n,["is-provider-"+r]:r,["wp-block-embed-"+r]:r});return Object(pe.createElement)("figure",ue.useBlockProps.save({className:a}),Object(pe.createElement)("div",{className:"wp-block-embed__wrapper"},`\n${t}\n`),!ue.RichText.isEmpty(o)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"figcaption",value:o}))},transforms:wa,variations:Ea,deprecated:xa};var za=Object(pe.createElement)(ge.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(ge.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5z"}));function Pa({hrefs:e,openInNewWindow:t,showDownloadButton:o,changeLinkDestinationOption:n,changeOpenInNewWindow:r,changeShowDownloadButton:a,displayPreview:c,changeDisplayPreview:l,previewHeight:i,changePreviewHeight:s}){const{href:u,textLinkHref:m,attachmentPage:d}=e;let b=[{value:u,label:Object(be.__)("URL")}];return d&&(b=[{value:u,label:Object(be.__)("Media file")},{value:d,label:Object(be.__)("Attachment page")}]),Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.InspectorControls,null,u.endsWith(".pdf")&&Object(pe.createElement)(ke.PanelBody,{title:Object(be.__)("PDF settings")},Object(pe.createElement)(ke.ToggleControl,{label:Object(be.__)("Show inline embed"),help:c?Object(be.__)("Note: Most phone and tablet browsers won't display embedded PDFs."):null,checked:!!c,onChange:l}),Object(pe.createElement)(ke.RangeControl,{label:Object(be.__)("Height in pixels"),min:Ra,max:Math.max(Va,i),value:i,onChange:s})),Object(pe.createElement)(ke.PanelBody,{title:Object(be.__)("Text link settings")},Object(pe.createElement)(ke.SelectControl,{label:Object(be.__)("Link to"),value:m,options:b,onChange:n}),Object(pe.createElement)(ke.ToggleControl,{label:Object(be.__)("Open in new tab"),checked:t,onChange:r})),Object(pe.createElement)(ke.PanelBody,{title:Object(be.__)("Download button settings")},Object(pe.createElement)(ke.ToggleControl,{label:Object(be.__)("Show download button"),checked:o,onChange:a}))))}const Na=()=>!(window.navigator.userAgent.indexOf("Mobi")>-1)&&(!(window.navigator.userAgent.indexOf("Android")>-1)&&(!(window.navigator.userAgent.indexOf("Macintosh")>-1&&window.navigator.maxTouchPoints&&window.navigator.maxTouchPoints>2)&&!((window.ActiveXObject||"ActiveXObject"in window)&&!Ma("AcroPDF.PDF")&&!Ma("PDF.PdfCtrl")))),Ma=e=>{let t;try{t=new window.ActiveXObject(e)}catch(e){t=void 0}return t},Ra=200,Va=2e3;function Ha({text:e,disabled:t}){const{createNotice:o}=Object(He.useDispatch)(qe.store),n=Object(Ie.useCopyToClipboard)(e,()=>{o("info",Object(be.__)("Copied URL to clipboard."),{isDismissible:!0,type:"snackbar"})});return Object(pe.createElement)(ke.ToolbarButton,{className:"components-clipboard-toolbar-button",ref:n,disabled:t},Object(be.__)("Copy URL"))}var Ia=Object(ke.withNotices)((function({attributes:e,isSelected:t,setAttributes:o,noticeUI:n,noticeOperations:r}){const{id:a,fileName:c,href:l,textLinkHref:i,textLinkTarget:s,showDownloadButton:u,downloadButtonText:m,displayPreview:d,previewHeight:b}=e,[p,g]=Object(pe.useState)(!1),{media:h,mediaUpload:v}=Object(He.useSelect)(e=>({media:void 0===a?void 0:e(se.store).getMedia(a),mediaUpload:e(ue.store).getSettings().mediaUpload}),[a]),{toggleSelection:O}=Object(He.useDispatch)(ue.store);function j(e){if(e&&e.url){g(!1);const t=e.url.endsWith(".pdf");o({href:e.url,fileName:e.title,textLinkHref:e.url,id:e.id,displayPreview:!!t||void 0,previewHeight:t?600:void 0})}}function f(e){g(!0),r.removeAllNotices(),r.createErrorNotice(e)}function y(e){o({downloadButtonText:e.replace(/<\/?a[^>]*>/g,"")})}Object(pe.useEffect)(()=>{if(Object(Ve.isBlobURL)(l)){const e=Object(Ve.getBlobByURL)(l);v({filesList:[e],onFileChange:([e])=>j(e),onError:e=>{g(!0),r.createErrorNotice(e)}}),Object(Ve.revokeBlobURL)(l)}void 0===m&&y(Object(be._x)("Download","button label"))},[]);const _=h&&h.link,w=Object(ue.useBlockProps)({className:Oe()(Object(Ve.isBlobURL)(l)&&Object(ke.__unstableGetAnimateClassName)({type:"loading"}),{"is-transient":Object(Ve.isBlobURL)(l)})}),k=Na()&&d;return!l||p?Object(pe.createElement)("div",w,Object(pe.createElement)(ue.MediaPlaceholder,{icon:Object(pe.createElement)(ue.BlockIcon,{icon:za}),labels:{title:Object(be.__)("File"),instructions:Object(be.__)("Upload a file or pick one from your media library.")},onSelect:j,notices:n,onError:f,accept:"*"})):Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(Pa,{hrefs:{href:l,textLinkHref:i,attachmentPage:_},openInNewWindow:!!s,showDownloadButton:u,changeLinkDestinationOption:function(e){o({textLinkHref:e})},changeOpenInNewWindow:function(e){o({textLinkTarget:!!e&&"_blank"})},changeShowDownloadButton:function(e){o({showDownloadButton:e})},displayPreview:d,changeDisplayPreview:function(e){o({displayPreview:e})},previewHeight:b,changePreviewHeight:function(e){const t=Math.max(parseInt(e,10),Ra);o({previewHeight:t})}}),Object(pe.createElement)(ue.BlockControls,{group:"other"},Object(pe.createElement)(ue.MediaReplaceFlow,{mediaId:a,mediaURL:l,accept:"*",onSelect:j,onError:f}),Object(pe.createElement)(Ha,{text:l,disabled:Object(Ve.isBlobURL)(l)})),Object(pe.createElement)("div",w,k&&Object(pe.createElement)(ke.ResizableBox,{size:{height:b},minHeight:Ra,maxHeight:Va,minWidth:"100%",grid:[10,10],enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:()=>O(!1),onResizeStop:function(e,t,n,r){O(!0);const a=parseInt(b+r.height,10);o({previewHeight:a})},showHandle:t},Object(pe.createElement)("object",{className:"wp-block-file__preview",data:l,type:"application/pdf","aria-label":Object(be.__)("Embed of the selected PDF file.")}),!t&&Object(pe.createElement)("div",{className:"wp-block-file__preview-overlay"})),Object(pe.createElement)("div",{className:"wp-block-file__content-wrapper"},Object(pe.createElement)(ue.RichText,{style:{display:"inline-block"},tagName:"a",value:c,placeholder:Object(be.__)("Write file name…"),withoutInteractiveFormatting:!0,onChange:e=>o({fileName:e}),href:i}),u&&Object(pe.createElement)("div",{className:"wp-block-file__button-richtext-wrapper"},Object(pe.createElement)(ue.RichText,{tagName:"div","aria-label":Object(be.__)("Download button text"),className:"wp-block-file__button",value:m,withoutInteractiveFormatting:!0,placeholder:Object(be.__)("Add text…"),onChange:e=>y(e)})))))}));var La={from:[{type:"files",isMatch:e=>e.length>0,priority:15,transform:e=>{const t=[];return e.forEach(e=>{const o=Object(Ve.createBlobURL)(e);t.push(Object(me.createBlock)("core/file",{href:o,fileName:e.name,textLinkHref:o}))}),t}},{type:"block",blocks:["core/audio"],transform:e=>Object(me.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],transform:e=>Object(me.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],transform:e=>Object(me.createBlock)("core/file",{href:e.url,fileName:e.caption,textLinkHref:e.url,id:e.id,anchor:e.anchor})}],to:[{type:"block",blocks:["core/audio"],isMatch:({id:e})=>{if(!e)return!1;const{getMedia:t}=Object(He.select)(se.store),o=t(e);return!!o&&Object(de.includes)(o.mime_type,"audio")},transform:e=>Object(me.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],isMatch:({id:e})=>{if(!e)return!1;const{getMedia:t}=Object(He.select)(se.store),o=t(e);return!!o&&Object(de.includes)(o.mime_type,"video")},transform:e=>Object(me.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],isMatch:({id:e})=>{if(!e)return!1;const{getMedia:t}=Object(He.select)(se.store),o=t(e);return!!o&&Object(de.includes)(o.mime_type,"image")},transform:e=>Object(me.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}]};const Aa={apiVersion:2,name:"core/file",title:"File",category:"media",description:"Add a link to a downloadable file.",keywords:["document","pdf","download"],textdomain:"default",attributes:{id:{type:"number"},href:{type:"string"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},viewScript:"file:./view.min.js",editorStyle:"wp-block-file-editor",style:"wp-block-file"},{name:Da}=Aa,Fa={icon:za,transforms:La,edit:Ia,save:function({attributes:e}){const{href:t,fileName:o,textLinkHref:n,textLinkTarget:r,showDownloadButton:a,downloadButtonText:c,displayPreview:l,previewHeight:i}=e,s=ue.RichText.isEmpty(o)?Object(be.__)("PDF embed"):Object(be.sprintf)(Object(be.__)("Embed of %s."),o);return t&&Object(pe.createElement)("div",ue.useBlockProps.save(),l&&Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:i+"px"},"aria-label":s})),!ue.RichText.isEmpty(o)&&Object(pe.createElement)("a",{href:n,target:r,rel:r?"noreferrer noopener":void 0},Object(pe.createElement)(ue.RichText.Content,{value:o})),a&&Object(pe.createElement)("a",{href:t,className:"wp-block-file__button",download:!0},Object(pe.createElement)(ue.RichText.Content,{value:c})))}};var qa=Object(pe.createElement)(ge.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(ge.Path,{d:"M4.8 11.4H2.1V9H1v6h1.1v-2.6h2.7V15h1.1V9H4.8v2.4zm1.9-1.3h1.7V15h1.1v-4.9h1.7V9H6.7v1.1zM16.2 9l-1.5 2.7L13.3 9h-.9l-.8 6h1.1l.5-4 1.5 2.8 1.5-2.8.5 4h1.1L17 9h-.8zm3.8 5V9h-1.1v6h3.6v-1H20z"}));var Ga={from:[{type:"block",blocks:["core/code"],transform:({content:e})=>Object(me.createBlock)("core/html",{content:e})}]};const Ua={apiVersion:2,name:"core/html",title:"Custom HTML",category:"widgets",description:"Add custom HTML code and preview it as you edit.",keywords:["embed"],textdomain:"default",attributes:{content:{type:"string",source:"html"}},supports:{customClassName:!1,className:!1,html:!1},editorStyle:"wp-block-html-editor"},{name:Wa}=Ua,$a={icon:qa,example:{attributes:{content:""+Object(be.__)("Welcome to the wonderful world of blocks…")+""}},edit:function({attributes:e,setAttributes:t,isSelected:o}){const[n,r]=Object(pe.useState)(),a=Object(He.useSelect)(e=>["\n\t\t\thtml,body,:root {\n\t\t\t\tmargin: 0 !important;\n\t\t\t\tpadding: 0 !important;\n\t\t\t\toverflow: visible !important;\n\t\t\t\tmin-height: auto !important;\n\t\t\t}\n\t\t",...Object(ue.transformStyles)(e(ue.store).getSettings().styles)],[]);return Object(pe.createElement)("div",Object(ue.useBlockProps)({className:"block-library-html__edit"}),Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(ke.ToolbarGroup,null,Object(pe.createElement)(ke.ToolbarButton,{className:"components-tab-button",isPressed:!n,onClick:function(){r(!1)}},Object(pe.createElement)("span",null,"HTML")),Object(pe.createElement)(ke.ToolbarButton,{className:"components-tab-button",isPressed:n,onClick:function(){r(!0)}},Object(pe.createElement)("span",null,Object(be.__)("Preview"))))),Object(pe.createElement)(ke.Disabled.Consumer,null,r=>n||r?Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ke.SandBox,{html:e.content,styles:a}),!o&&Object(pe.createElement)("div",{className:"block-library-html__preview-overlay"})):Object(pe.createElement)(ue.PlainText,{value:e.content,onChange:e=>t({content:e}),placeholder:Object(be.__)("Write HTML…"),"aria-label":Object(be.__)("HTML")})))},save:function({attributes:e}){return Object(pe.createElement)(pe.RawHTML,null,e.content)},transforms:Ga};var Za=Object(pe.createElement)(ge.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(ge.Path,{d:"M3 18h8V6H3v12zM14 7.5V9h7V7.5h-7zm0 5.3h7v-1.5h-7v1.5zm0 3.7h7V15h-7v1.5z"})),Ja=Object(pe.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(ke.Path,{d:"M18 2l2 4h-2l-2-4h-3l2 4h-2l-2-4h-1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V2zm2 12H10V4.4L11.8 8H20z"}),Object(pe.createElement)(ke.Path,{d:"M14 20H4V10h3V8H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3h-2z"}),Object(pe.createElement)(ke.Path,{d:"M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z"}));const Ya=["image","video"];function Ka(e,t){return e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${100*t.x}% ${100*t.y}%`:"50% 50%"}:{}}const Qa=Object(pe.forwardRef)(({isSelected:e,isStackedOnMobile:t,...o},n)=>{const r=Object(Ie.useViewportMatch)("small","<");return Object(pe.createElement)(ke.ResizableBox,Object(we.a)({ref:n,showHandle:e&&(!r||!t)},o))});function Xa({mediaId:e,mediaUrl:t,onSelectMedia:o}){return Object(pe.createElement)(ue.BlockControls,{group:"other"},Object(pe.createElement)(ue.MediaReplaceFlow,{mediaId:e,mediaURL:t,allowedTypes:Ya,accept:"image/*,video/*",onSelect:o}))}function ec({className:e,noticeOperations:t,noticeUI:o,onSelectMedia:n}){return Object(pe.createElement)(ue.MediaPlaceholder,{icon:Object(pe.createElement)(ue.BlockIcon,{icon:Ja}),labels:{title:Object(be.__)("Media area")},className:e,onSelect:n,accept:"image/*,video/*",allowedTypes:Ya,notices:o,onError:e=>{t.removeAllNotices(),t.createErrorNotice(e)}})}var tc=Object(ke.withNotices)(Object(pe.forwardRef)((function(e,t){const{className:o,commitWidthChange:n,focalPoint:r,imageFill:a,isSelected:c,isStackedOnMobile:l,mediaAlt:i,mediaId:s,mediaPosition:u,mediaType:m,mediaUrl:d,mediaWidth:b,onSelectMedia:p,onWidthChange:g}=e,{toggleSelection:h}=Object(He.useDispatch)(ue.store);if(m&&d){const e=()=>{h(!1)},v=(e,t,o)=>{g(parseInt(o.style.width))},O=(e,t,o)=>{h(!0),n(parseInt(o.style.width))},j={right:"left"===u,left:"right"===u},f="image"===m&&a?Ka(d,r):{},y={image:()=>Object(pe.createElement)("img",{src:d,alt:i}),video:()=>Object(pe.createElement)("video",{controls:!0,src:d})};return Object(pe.createElement)(Qa,{as:"figure",className:Oe()(o,"editor-media-container__resizer"),style:f,size:{width:b+"%"},minWidth:"10%",maxWidth:"100%",enable:j,onResizeStart:e,onResize:v,onResizeStop:O,axis:"x",isSelected:c,isStackedOnMobile:l,ref:t},Object(pe.createElement)(Xa,{onSelectMedia:p,mediaUrl:d,mediaId:s}),(y[m]||de.noop)())}return Object(pe.createElement)(ec,e)})));const oc=e=>{if(!e.customBackgroundColor)return e;const t={color:{background:e.customBackgroundColor}};return{...Object(de.omit)(e,["customBackgroundColor"]),style:t}},nc={align:{type:"string",default:"wide"},backgroundColor:{type:"string"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!0}};var rc=[{attributes:{...nc,customBackgroundColor:{type:"string"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},migrate:oc,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,isStackedOnMobile:n,mediaAlt:r,mediaPosition:a,mediaType:c,mediaUrl:l,mediaWidth:i,mediaId:s,verticalAlignment:u,imageFill:m,focalPoint:d,linkClass:b,href:p,linkTarget:g,rel:h}=e,v=Object(de.isEmpty)(h)?void 0:h;let O=Object(pe.createElement)("img",{src:l,alt:r,className:s&&"image"===c?"wp-image-"+s:null});p&&(O=Object(pe.createElement)("a",{className:b,href:p,target:g,rel:v},O));const j={image:()=>O,video:()=>Object(pe.createElement)("video",{controls:!0,src:l})},f=Object(ue.getColorClassName)("background-color",t),y=Oe()({"has-media-on-the-right":"right"===a,"has-background":f||o,[f]:f,"is-stacked-on-mobile":n,["is-vertically-aligned-"+u]:u,"is-image-fill":m}),_=m?Ka(l,d):{};let w;50!==i&&(w="right"===a?`auto ${i}%`:i+"% auto");const k={backgroundColor:f?void 0:o,gridTemplateColumns:w};return Object(pe.createElement)("div",{className:y,style:k},Object(pe.createElement)("figure",{className:"wp-block-media-text__media",style:_},(j[c]||de.noop)()),Object(pe.createElement)("div",{className:"wp-block-media-text__content"},Object(pe.createElement)(ue.InnerBlocks.Content,null)))}},{attributes:{...nc,customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},migrate:oc,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,isStackedOnMobile:n,mediaAlt:r,mediaPosition:a,mediaType:c,mediaUrl:l,mediaWidth:i,mediaId:s,verticalAlignment:u,imageFill:m,focalPoint:d}=e,b={image:()=>Object(pe.createElement)("img",{src:l,alt:r,className:s&&"image"===c?"wp-image-"+s:null}),video:()=>Object(pe.createElement)("video",{controls:!0,src:l})},p=Object(ue.getColorClassName)("background-color",t),g=Oe()({"has-media-on-the-right":"right"===a,[p]:p,"is-stacked-on-mobile":n,["is-vertically-aligned-"+u]:u,"is-image-fill":m}),h=m?Ka(l,d):{};let v;50!==i&&(v="right"===a?`auto ${i}%`:i+"% auto");const O={backgroundColor:p?void 0:o,gridTemplateColumns:v};return Object(pe.createElement)("div",{className:g,style:O},Object(pe.createElement)("figure",{className:"wp-block-media-text__media",style:h},(b[c]||de.noop)()),Object(pe.createElement)("div",{className:"wp-block-media-text__content"},Object(pe.createElement)(ue.InnerBlocks.Content,null)))}},{attributes:{...nc,customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"}},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,isStackedOnMobile:n,mediaAlt:r,mediaPosition:a,mediaType:c,mediaUrl:l,mediaWidth:i}=e,s={image:()=>Object(pe.createElement)("img",{src:l,alt:r}),video:()=>Object(pe.createElement)("video",{controls:!0,src:l})},u=Object(ue.getColorClassName)("background-color",t),m=Oe()({"has-media-on-the-right":"right"===a,[u]:u,"is-stacked-on-mobile":n});let d;50!==i&&(d="right"===a?`auto ${i}%`:i+"% auto");const b={backgroundColor:u?void 0:o,gridTemplateColumns:d};return Object(pe.createElement)("div",{className:m,style:b},Object(pe.createElement)("figure",{className:"wp-block-media-text__media"},(s[c]||de.noop)()),Object(pe.createElement)("div",{className:"wp-block-media-text__content"},Object(pe.createElement)(ue.InnerBlocks.Content,null)))}}];var ac=Object(pe.createElement)(ge.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(ge.Path,{d:"M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"}));var cc=Object(pe.createElement)(ge.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(ge.Path,{d:"M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"}));const lc=[["core/paragraph",{fontSize:"large",placeholder:Object(be._x)("Content…","content placeholder")}]],ic=e=>Math.max(15,Math.min(e,85));function sc(e,t){var o,n,r;return null==e||null===(o=e.media_details)||void 0===o||null===(n=o.sizes)||void 0===n||null===(r=n[t])||void 0===r?void 0:r.source_url}var uc=function({attributes:e,isSelected:t,setAttributes:o}){const{focalPoint:n,href:r,imageFill:a,isStackedOnMobile:c,linkClass:l,linkDestination:i,linkTarget:s,mediaAlt:u,mediaId:m,mediaPosition:d,mediaType:b,mediaUrl:p,mediaWidth:g,rel:h,verticalAlignment:v}=e,O=e.mediaSizeSlug||"full",j=Object(He.useSelect)(e=>m&&t?e(se.store).getMedia(m):null,[t,m]),f=Object(pe.useRef)(),y=e=>{const{style:t}=f.current.resizable,{x:o,y:n}=e;t.backgroundPosition=`${100*o}% ${100*n}%`},[_,w]=Object(pe.useState)(null),k=function({attributes:{linkDestination:e,href:t},setAttributes:o}){return n=>{let r,a;var c,l,i,s,u;(r=n.media_type?"image"===n.media_type?"image":"video":n.type,"image"===r)&&(a=(null===(c=n.sizes)||void 0===c||null===(l=c.large)||void 0===l?void 0:l.url)||(null===(i=n.media_details)||void 0===i||null===(s=i.sizes)||void 0===s||null===(u=s.large)||void 0===u?void 0:u.source_url));let m=t;"media"===e&&(m=n.url),"attachment"===e&&(m=n.link),o({mediaAlt:n.alt,mediaId:n.id,mediaType:r,mediaUrl:a||n.url,mediaLink:n.link||void 0,href:m,focalPoint:void 0})}}({attributes:e,setAttributes:o}),E=e=>{o({mediaWidth:ic(e)}),w(ic(e))},C=Oe()({"has-media-on-the-right":"right"===d,"is-selected":t,"is-stacked-on-mobile":c,["is-vertically-aligned-"+v]:v,"is-image-fill":a}),x=(_||g)+"%",S="right"===d?"1fr "+x:x+" 1fr",B={gridTemplateColumns:S,msGridColumns:S},T=Object(He.useSelect)(e=>{const t=e(ue.store).getSettings();return null==t?void 0:t.imageSizes}),z=Object(de.map)(Object(de.filter)(T,({slug:e})=>sc(j,e)),({name:e,slug:t})=>({value:t,label:e})),P=Object(pe.createElement)(ke.PanelBody,{title:Object(be.__)("Media & Text settings")},Object(pe.createElement)(ke.ToggleControl,{label:Object(be.__)("Stack on mobile"),checked:c,onChange:()=>o({isStackedOnMobile:!c})}),"image"===b&&Object(pe.createElement)(ke.ToggleControl,{label:Object(be.__)("Crop image to fill entire column"),checked:a,onChange:()=>o({imageFill:!a})}),a&&p&&"image"===b&&Object(pe.createElement)(ke.FocalPointPicker,{label:Object(be.__)("Focal point picker"),url:p,value:n,onChange:e=>o({focalPoint:e}),onDragStart:y,onDrag:y}),"image"===b&&Object(pe.createElement)(ke.TextareaControl,{label:Object(be.__)("Alt text (alternative text)"),value:u,onChange:e=>{o({mediaAlt:e})},help:Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ke.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(be.__)("Describe the purpose of the image")),Object(be.__)("Leave empty if the image is purely decorative."))}),"image"===b&&Object(pe.createElement)(ue.__experimentalImageSizeControl,{onChangeImage:e=>{const t=sc(j,e);if(!t)return null;o({mediaUrl:t,mediaSizeSlug:e})},slug:O,imageSizeOptions:z,isResizable:!1}),p&&Object(pe.createElement)(ke.RangeControl,{label:Object(be.__)("Media width"),value:_||g,onChange:E,min:15,max:85})),N=Object(ue.useBlockProps)({className:C,style:B}),M=Object(ue.__experimentalUseInnerBlocksProps)({className:"wp-block-media-text__content"},{template:lc});return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.InspectorControls,null,P),Object(pe.createElement)(ue.BlockControls,{group:"block"},Object(pe.createElement)(ue.BlockVerticalAlignmentControl,{onChange:e=>{o({verticalAlignment:e})},value:v}),Object(pe.createElement)(ke.ToolbarButton,{icon:ac,title:Object(be.__)("Show media on left"),isActive:"left"===d,onClick:()=>o({mediaPosition:"left"})}),Object(pe.createElement)(ke.ToolbarButton,{icon:cc,title:Object(be.__)("Show media on right"),isActive:"right"===d,onClick:()=>o({mediaPosition:"right"})}),"image"===b&&Object(pe.createElement)(ue.__experimentalImageURLInputUI,{url:r||"",onChangeUrl:e=>{o(e)},linkDestination:i,mediaType:b,mediaUrl:j&&j.source_url,mediaLink:j&&j.link,linkTarget:s,linkClass:l,rel:h})),Object(pe.createElement)("div",N,Object(pe.createElement)(tc,{className:"wp-block-media-text__media",onSelectMedia:k,onWidthChange:e=>{w(ic(e))},commitWidthChange:E,ref:f,focalPoint:n,imageFill:a,isSelected:t,isStackedOnMobile:c,mediaAlt:u,mediaId:m,mediaPosition:d,mediaType:b,mediaUrl:p,mediaWidth:g}),Object(pe.createElement)("div",M)))};var mc={from:[{type:"block",blocks:["core/image"],transform:({alt:e,url:t,id:o,anchor:n})=>Object(me.createBlock)("core/media-text",{mediaAlt:e,mediaId:o,mediaUrl:t,mediaType:"image",anchor:n})},{type:"block",blocks:["core/video"],transform:({src:e,id:t,anchor:o})=>Object(me.createBlock)("core/media-text",{mediaId:t,mediaUrl:e,mediaType:"video",anchor:o})}],to:[{type:"block",blocks:["core/image"],isMatch:({mediaType:e,mediaUrl:t})=>!t||"image"===e,transform:({mediaAlt:e,mediaId:t,mediaUrl:o,anchor:n})=>Object(me.createBlock)("core/image",{alt:e,id:t,url:o,anchor:n})},{type:"block",blocks:["core/video"],isMatch:({mediaType:e,mediaUrl:t})=>!t||"video"===e,transform:({mediaId:e,mediaUrl:t,anchor:o})=>Object(me.createBlock)("core/video",{id:e,src:t,anchor:o})}]};const dc={apiVersion:2,name:"core/media-text",title:"Media & Text",category:"media",description:"Set media and words side-by-side for a richer layout.",keywords:["image","video"],textdomain:"default",attributes:{align:{type:"string",default:"wide"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},mediaSizeSlug:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}},editorStyle:"wp-block-media-text-editor",style:"wp-block-media-text"},{name:bc}=dc,pc={icon:Za,example:{attributes:{mediaType:"image",mediaUrl:"https://s.w.org/images/core/5.3/Biologia_Centrali-Americana_-_Cantorchilus_semibadius_1902.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{content:Object(be.__)("The wren
Earns his living
Noiselessly.")}},{name:"core/paragraph",attributes:{content:Object(be.__)("— Kobayashi Issa (一茶)")}}]},transforms:mc,edit:uc,save:function({attributes:e}){const{isStackedOnMobile:t,mediaAlt:o,mediaPosition:n,mediaType:r,mediaUrl:a,mediaWidth:c,mediaId:l,verticalAlignment:i,imageFill:s,focalPoint:u,linkClass:m,href:d,linkTarget:b,rel:p}=e,g=e.mediaSizeSlug||"full",h=Object(de.isEmpty)(p)?void 0:p,v=Oe()({["wp-image-"+l]:l&&"image"===r,["size-"+g]:l&&"image"===r});let O=Object(pe.createElement)("img",{src:a,alt:o,className:v||null});d&&(O=Object(pe.createElement)("a",{className:m,href:d,target:b,rel:h},O));const j={image:()=>O,video:()=>Object(pe.createElement)("video",{controls:!0,src:a})},f=Oe()({"has-media-on-the-right":"right"===n,"is-stacked-on-mobile":t,["is-vertically-aligned-"+i]:i,"is-image-fill":s}),y=s?Ka(a,u):{};let _;50!==c&&(_="right"===n?`auto ${c}%`:c+"% auto");const w={gridTemplateColumns:_};return Object(pe.createElement)("div",ue.useBlockProps.save({className:f,style:w}),Object(pe.createElement)("figure",{className:"wp-block-media-text__media",style:y},(j[r]||de.noop)()),Object(pe.createElement)("div",{className:"wp-block-media-text__content"},Object(pe.createElement)(ue.InnerBlocks.Content,null)))},deprecated:rc};var gc=Object(pe.createElement)(ge.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(ge.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"}));const hc={apiVersion:2,name:"core/latest-comments",title:"Latest Comments",category:"widgets",description:"Display a list of your most recent comments.",keywords:["recent comments"],textdomain:"default",attributes:{commentsToShow:{type:"number",default:5,minimum:1,maximum:100},displayAvatar:{type:"boolean",default:!0},displayDate:{type:"boolean",default:!0},displayExcerpt:{type:"boolean",default:!0}},supports:{align:!0,html:!1},editorStyle:"wp-block-latest-comments-editor",style:"wp-block-latest-comments"},{name:vc}=hc,Oc={icon:gc,example:{},edit:function({attributes:e,setAttributes:t}){const{commentsToShow:o,displayAvatar:n,displayDate:r,displayExcerpt:a}=e;return Object(pe.createElement)("div",Object(ue.useBlockProps)(),Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(ke.PanelBody,{title:Object(be.__)("Latest comments settings")},Object(pe.createElement)(ke.ToggleControl,{label:Object(be.__)("Display avatar"),checked:n,onChange:()=>t({displayAvatar:!n})}),Object(pe.createElement)(ke.ToggleControl,{label:Object(be.__)("Display date"),checked:r,onChange:()=>t({displayDate:!r})}),Object(pe.createElement)(ke.ToggleControl,{label:Object(be.__)("Display excerpt"),checked:a,onChange:()=>t({displayExcerpt:!a})}),Object(pe.createElement)(ke.RangeControl,{label:Object(be.__)("Number of comments"),value:o,onChange:e=>t({commentsToShow:e}),min:1,max:100,required:!0}))),Object(pe.createElement)(ke.Disabled,null,Object(pe.createElement)(Ko.a,{block:"core/latest-comments",attributes:e})))}};var jc=Object(pe.createElement)(ge.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(ge.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 11h2V9H7v2zm0 4h2v-2H7v2zm3-4h7V9h-7v2zm0 4h7v-2h-7v2z"}));const{attributes:fc}={apiVersion:2,name:"core/latest-posts",title:"Latest Posts",category:"widgets",description:"Display a list of your most recent posts.",keywords:["recent posts"],textdomain:"default",attributes:{categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null},addLinkToFeaturedImage:{type:"boolean",default:!1}},supports:{align:!0,html:!1},editorStyle:"wp-block-latest-posts-editor",style:"wp-block-latest-posts"};var yc=[{attributes:{...fc,categories:{type:"string"}},supports:{align:!0,html:!1},migrate:e=>({...e,categories:[{id:Number(e.categories)}]}),isEligible:({categories:e})=>e&&"string"==typeof e,save:()=>null}],_c=o("FqII");var wc=Object(pe.createElement)(ge.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(ge.Path,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"})),kc=o("b2RC");const Ec={per_page:-1},Cc={per_page:-1};const xc={apiVersion:2,name:"core/latest-posts",title:"Latest Posts",category:"widgets",description:"Display a list of your most recent posts.",keywords:["recent posts"],textdomain:"default",attributes:{categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null},addLinkToFeaturedImage:{type:"boolean",default:!1}},supports:{align:!0,html:!1},editorStyle:"wp-block-latest-posts-editor",style:"wp-block-latest-posts"},{name:Sc}=xc,Bc={icon:jc,example:{},edit:function({attributes:e,setAttributes:t}){const{postsToShow:o,order:n,orderBy:r,categories:a,selectedAuthor:c,displayFeaturedImage:l,displayPostContentRadio:i,displayPostContent:s,displayPostDate:u,displayAuthor:m,postLayout:d,columns:b,excerptLength:p,featuredImageAlign:g,featuredImageSizeSlug:h,featuredImageSizeWidth:v,featuredImageSizeHeight:O,addLinkToFeaturedImage:j}=e,{imageSizeOptions:f,latestPosts:y,defaultImageWidth:_,defaultImageHeight:w}=Object(He.useSelect)(e=>{const{getEntityRecords:t,getMedia:l}=e(se.store),{getSettings:i}=e(ue.store),{imageSizes:s,imageDimensions:u}=i(),m=a&&a.length>0?a.map(e=>e.id):[],d=t("postType","post",Object(de.pickBy)({categories:m,author:c,order:n,orderby:r,per_page:o},e=>!Object(de.isUndefined)(e)));return{defaultImageWidth:Object(de.get)(u,[h,"width"],0),defaultImageHeight:Object(de.get)(u,[h,"height"],0),imageSizeOptions:s.filter(({slug:e})=>"full"!==e).map(({name:e,slug:t})=>({value:t,label:e})),latestPosts:Array.isArray(d)?d.map(e=>{if(!e.featured_media)return e;const t=l(e.featured_media);let o=Object(de.get)(t,["media_details","sizes",h,"source_url"],null);o||(o=Object(de.get)(t,"source_url",null));const n={url:o,alt:null==t?void 0:t.alt_text};return{...e,featuredImageInfo:n}}):d}},[h,o,n,r,a,c]),[k,E]=Object(pe.useState)([]),[C,x]=Object(pe.useState)([]),S=k.reduce((e,t)=>({...e,[t.name]:t}),{}),B=Object(pe.useRef)();Object(pe.useEffect)(()=>(B.current=!0,kt()({path:Object(Le.addQueryArgs)("/wp/v2/categories",Ec)}).then(e=>{B.current&&E(e)}).catch(()=>{B.current&&E([])}),kt()({path:Object(Le.addQueryArgs)("/wp/v2/users",Cc)}).then(e=>{B.current&&x(e)}).catch(()=>{B.current&&x([])}),()=>{B.current=!1}),[]);const T=!(null==y||!y.length),z=Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(ke.PanelBody,{title:Object(be.__)("Post content settings")},Object(pe.createElement)(ke.ToggleControl,{label:Object(be.__)("Post content"),checked:s,onChange:e=>t({displayPostContent:e})}),s&&Object(pe.createElement)(ke.RadioControl,{label:Object(be.__)("Show:"),selected:i,options:[{label:Object(be.__)("Excerpt"),value:"excerpt"},{label:Object(be.__)("Full post"),value:"full_post"}],onChange:e=>t({displayPostContentRadio:e})}),s&&"excerpt"===i&&Object(pe.createElement)(ke.RangeControl,{label:Object(be.__)("Max number of words in excerpt"),value:p,onChange:e=>t({excerptLength:e}),min:10,max:100})),Object(pe.createElement)(ke.PanelBody,{title:Object(be.__)("Post meta settings")},Object(pe.createElement)(ke.ToggleControl,{label:Object(be.__)("Display author name"),checked:m,onChange:e=>t({displayAuthor:e})}),Object(pe.createElement)(ke.ToggleControl,{label:Object(be.__)("Display post date"),checked:u,onChange:e=>t({displayPostDate:e})})),Object(pe.createElement)(ke.PanelBody,{title:Object(be.__)("Featured image settings")},Object(pe.createElement)(ke.ToggleControl,{label:Object(be.__)("Display featured image"),checked:l,onChange:e=>t({displayFeaturedImage:e})}),l&&Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.__experimentalImageSizeControl,{onChange:e=>{const o={};e.hasOwnProperty("width")&&(o.featuredImageSizeWidth=e.width),e.hasOwnProperty("height")&&(o.featuredImageSizeHeight=e.height),t(o)},slug:h,width:v,height:O,imageWidth:_,imageHeight:w,imageSizeOptions:f,onChangeImage:e=>t({featuredImageSizeSlug:e,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})}),Object(pe.createElement)(ke.BaseControl,{className:"block-editor-image-alignment-control__row"},Object(pe.createElement)(ke.BaseControl.VisualLabel,null,Object(be.__)("Image alignment")),Object(pe.createElement)(ue.BlockAlignmentToolbar,{value:g,onChange:e=>t({featuredImageAlign:e}),controls:["left","center","right"],isCollapsed:!1})),Object(pe.createElement)(ke.ToggleControl,{label:Object(be.__)("Add link to featured image"),checked:j,onChange:e=>t({addLinkToFeaturedImage:e})}))),Object(pe.createElement)(ke.PanelBody,{title:Object(be.__)("Sorting and filtering")},Object(pe.createElement)(ke.QueryControls,{order:n,orderBy:r,numberOfItems:o,onOrderChange:e=>t({order:e}),onOrderByChange:e=>t({orderBy:e}),onNumberOfItemsChange:e=>t({postsToShow:e}),categorySuggestions:S,onCategoryChange:e=>{if(e.some(e=>"string"==typeof e&&!S[e]))return;const o=e.map(e=>"string"==typeof e?S[e]:e);if(Object(de.includes)(o,null))return!1;t({categories:o})},selectedCategories:a,onAuthorChange:e=>t({selectedAuthor:""!==e?Number(e):void 0}),authorList:C,selectedAuthorId:c}),"grid"===d&&Object(pe.createElement)(ke.RangeControl,{label:Object(be.__)("Columns"),value:b,onChange:e=>t({columns:e}),min:2,max:T?Math.min(6,y.length):6,required:!0}))),P=Object(ue.useBlockProps)({className:Oe()({"wp-block-latest-posts__list":!0,"is-grid":"grid"===d,"has-dates":u,"has-author":m,["columns-"+b]:"grid"===d})});if(!T)return Object(pe.createElement)("div",P,z,Object(pe.createElement)(ke.Placeholder,{icon:Wn,label:Object(be.__)("Latest Posts")},Array.isArray(y)?Object(be.__)("No posts found."):Object(pe.createElement)(ke.Spinner,null)));const N=y.length>o?y.slice(0,o):y,M=[{icon:wc,title:Object(be.__)("List view"),onClick:()=>t({postLayout:"list"}),isActive:"list"===d},{icon:kc.a,title:Object(be.__)("Grid view"),onClick:()=>t({postLayout:"grid"}),isActive:"grid"===d}],R=Object(_c.__experimentalGetSettings)().formats.date;return Object(pe.createElement)("div",null,z,Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(ke.ToolbarGroup,{controls:M})),Object(pe.createElement)("ul",P,N.map((e,t)=>{const o=Object(de.invoke)(e,["title","rendered","trim"]);let n=e.excerpt.rendered;const r=C.find(t=>t.id===e.author),a=document.createElement("div");a.innerHTML=n,n=a.textContent||a.innerText||"";const{featuredImageInfo:{url:c,alt:d}={}}=e,b=Oe()({"wp-block-latest-posts__featured-image":!0,["align"+g]:!!g}),h=l&&c,f=h&&Object(pe.createElement)("img",{src:c,alt:d,style:{maxWidth:v,maxHeight:O}}),y=pt({displayLoginAsForm:!o})}),Object(pe.createElement)(ke.ToggleControl,{label:Object(be.__)("Redirect to current URL"),checked:n,onChange:()=>t({redirectToCurrent:!n})}))),Object(pe.createElement)("div",Object(ue.useBlockProps)({className:"logged-in"}),Object(pe.createElement)("a",{href:"#login-pseudo-link"},Object(be.__)("Log out"))))}};var Mc=Object(pe.createElement)(ge.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(ge.Path,{d:"M4 8.8h8.9V7.2H4v1.6zm0 7h8.9v-1.5H4v1.5zM18 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"}));var Rc=Object(pe.createElement)(ge.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(ge.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}));var Vc=Object(pe.createElement)(ge.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(ge.Path,{d:"M3.8 15.8h8.9v-1.5H3.8v1.5zm0-7h8.9V7.2H3.8v1.6zm14.7-2.1V10h1V5.3l-2.2.7.3 1 .9-.3zm1.2 6.1c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5H20v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3 0-.8-.3-1.1z"}));var Hc=Object(pe.createElement)(ge.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(ge.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM5 6.7V10h1V5.3L3.8 6l.4 1 .8-.3zm-.4 5.7c-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-1c.3-.6.8-1.4.9-2.1.1-.3 0-.8-.2-1.1-.5-.6-1.3-.5-1.7-.4z"}));var Ic=Object(pe.createElement)(ge.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(ge.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM15.4697 14.9697L18.4393 12L15.4697 9.03033L16.5303 7.96967L20.0303 11.4697L20.5607 12L20.0303 12.5303L16.5303 16.0303L15.4697 14.9697Z"}));var Lc=Object(pe.createElement)(ge.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(ge.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-4-4.6l-4 4 4 4 1-1-3-3 3-3-1-1z"}));var Ac=Object(pe.createElement)(ge.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(ge.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM20.0303 9.03033L17.0607 12L20.0303 14.9697L18.9697 16.0303L15.4697 12.5303L14.9393 12L15.4697 11.4697L18.9697 7.96967L20.0303 9.03033Z"}));var Dc=Object(pe.createElement)(ge.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(ge.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-8-3.5l3 3-3 3 1 1 4-4-4-4-1 1z"}));var Fc=({setAttributes:e,reversed:t,start:o})=>Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(ke.PanelBody,{title:Object(be.__)("Ordered list settings")},Object(pe.createElement)(ke.TextControl,{label:Object(be.__)("Start value"),type:"number",onChange:t=>{const o=parseInt(t,10);e({start:isNaN(o)?void 0:o})},value:Number.isInteger(o)?o.toString(10):"",step:"1"}),Object(pe.createElement)(ke.ToggleControl,{label:Object(be.__)("Reverse list numbering"),checked:t||!1,onChange:t=>{e({reversed:t||void 0})}})));function qc({phrasingContentSchema:e}){const t={...e,ul:{},ol:{attributes:["type","start","reversed"]}};return["ul","ol"].forEach(e=>{t[e].children={li:{children:t}}}),t}var Gc={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading"],transform:e=>Object(me.createBlock)("core/list",{values:Object(fo.toHTMLString)({value:Object(fo.join)(e.map(({content:t})=>{const o=Object(fo.create)({html:t});return e.length>1?o:Object(fo.replace)(o,/\n/g,fo.__UNSTABLE_LINE_SEPARATOR)}),fo.__UNSTABLE_LINE_SEPARATOR),multilineTag:"li"}),anchor:e.anchor})},{type:"block",blocks:["core/quote","core/pullquote"],transform:({value:e,anchor:t})=>Object(me.createBlock)("core/list",{values:Object(fo.toHTMLString)({value:Object(fo.create)({html:e,multilineTag:"p"}),multilineTag:"li"}),anchor:t})},{type:"raw",selector:"ol,ul",schema:e=>({ol:qc(e).ol,ul:qc(e).ul}),transform(e){const t={ordered:"OL"===e.nodeName,anchor:""===e.id?void 0:e.id};if(t.ordered){const o=e.getAttribute("type");o&&(t.type=o),null!==e.getAttribute("reversed")&&(t.reversed=!0);const n=parseInt(e.getAttribute("start"),10);isNaN(n)||1===n&&!t.reversed||(t.start=n)}return Object(me.createBlock)("core/list",{...Object(me.getBlockAttributes)("core/list",e.outerHTML),...t})}},...["*","-"].map(e=>({type:"prefix",prefix:e,transform:e=>Object(me.createBlock)("core/list",{values:`
  • ${e}
  • `})})),...["1.","1)"].map(e=>({type:"prefix",prefix:e,transform:e=>Object(me.createBlock)("core/list",{ordered:!0,values:`
  • ${e}
  • `})}))],to:[{type:"block",blocks:["core/paragraph"],transform:({values:e})=>Object(fo.split)(Object(fo.create)({html:e,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),fo.__UNSTABLE_LINE_SEPARATOR).map(e=>Object(me.createBlock)("core/paragraph",{content:Object(fo.toHTMLString)({value:e})}))},{type:"block",blocks:["core/heading"],transform:({values:e})=>Object(fo.split)(Object(fo.create)({html:e,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),fo.__UNSTABLE_LINE_SEPARATOR).map(e=>Object(me.createBlock)("core/heading",{content:Object(fo.toHTMLString)({value:e})}))},{type:"block",blocks:["core/quote"],transform:({values:e,anchor:t})=>Object(me.createBlock)("core/quote",{value:Object(fo.toHTMLString)({value:Object(fo.create)({html:e,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:t})},{type:"block",blocks:["core/pullquote"],transform:({values:e,anchor:t})=>Object(me.createBlock)("core/pullquote",{value:Object(fo.toHTMLString)({value:Object(fo.create)({html:e,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:t})}]};const Uc={apiVersion:2,name:"core/list",title:"List",category:"text",description:"Create a bulleted or numbered list.",keywords:["bullet list","ordered list","numbered list"],textdomain:"default",attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0},color:{gradients:!0},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul"},editorStyle:"wp-block-list-editor",style:"wp-block-list"},{name:Wc}=Uc,$c={icon:wc,example:{attributes:{values:"
  • Alice.
  • The White Rabbit.
  • The Cheshire Cat.
  • The Mad Hatter.
  • The Queen of Hearts.
  • "}},transforms:Gc,merge(e,t){const{values:o}=t;return o&&"
  • "!==o?{...e,values:e.values+o}:e},edit:function({attributes:e,setAttributes:t,mergeBlocks:o,onReplace:n}){const{ordered:r,values:a,type:c,reversed:l,start:i,placeholder:s}=e,u=r?"ol":"ul",m=Object(ue.useBlockProps)();return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.RichText,Object(we.a)({identifier:"values",multiline:"li",tagName:u,onChange:e=>t({values:e}),value:a,"aria-label":Object(be.__)("List text"),placeholder:s||Object(be.__)("List"),onMerge:o,onSplit:t=>Object(me.createBlock)(Wc,{...e,values:t}),__unstableOnSplitMiddle:()=>Object(me.createBlock)("core/paragraph"),onReplace:n,onRemove:()=>n([]),start:i,reversed:l,type:c},m),({value:e,onChange:o,onFocus:n})=>Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.RichTextShortcut,{type:"primary",character:"[",onUse:()=>{o(Object(fo.__unstableOutdentListItems)(e))}}),Object(pe.createElement)(ue.RichTextShortcut,{type:"primary",character:"]",onUse:()=>{o(Object(fo.__unstableIndentListItems)(e,{type:u}))}}),Object(pe.createElement)(ue.RichTextShortcut,{type:"primary",character:"m",onUse:()=>{o(Object(fo.__unstableIndentListItems)(e,{type:u}))}}),Object(pe.createElement)(ue.RichTextShortcut,{type:"primaryShift",character:"m",onUse:()=>{o(Object(fo.__unstableOutdentListItems)(e))}}),Object(pe.createElement)(ue.BlockControls,{group:"block"},Object(pe.createElement)(ke.ToolbarButton,{icon:Object(be.isRTL)()?Mc:Rc,title:Object(be.__)("Unordered"),describedBy:Object(be.__)("Convert to unordered list"),isActive:Object(fo.__unstableIsActiveListType)(e,"ul",u),onClick:()=>{o(Object(fo.__unstableChangeListType)(e,{type:"ul"})),n(),Object(fo.__unstableIsListRootSelected)(e)&&t({ordered:!1})}}),Object(pe.createElement)(ke.ToolbarButton,{icon:Object(be.isRTL)()?Vc:Hc,title:Object(be.__)("Ordered"),describedBy:Object(be.__)("Convert to ordered list"),isActive:Object(fo.__unstableIsActiveListType)(e,"ol",u),onClick:()=>{o(Object(fo.__unstableChangeListType)(e,{type:"ol"})),n(),Object(fo.__unstableIsListRootSelected)(e)&&t({ordered:!0})}}),Object(pe.createElement)(ke.ToolbarButton,{icon:Object(be.isRTL)()?Ic:Lc,title:Object(be.__)("Outdent"),describedBy:Object(be.__)("Outdent list item"),shortcut:Object(be._x)("Backspace","keyboard key"),isDisabled:!Object(fo.__unstableCanOutdentListItems)(e),onClick:()=>{o(Object(fo.__unstableOutdentListItems)(e)),n()}}),Object(pe.createElement)(ke.ToolbarButton,{icon:Object(be.isRTL)()?Ac:Dc,title:Object(be.__)("Indent"),describedBy:Object(be.__)("Indent list item"),shortcut:Object(be._x)("Space","keyboard key"),isDisabled:!Object(fo.__unstableCanIndentListItems)(e),onClick:()=>{o(Object(fo.__unstableIndentListItems)(e,{type:u})),n()}})))),r&&Object(pe.createElement)(Fc,{setAttributes:t,ordered:r,reversed:l,start:i,placeholder:s}))},save:function({attributes:e}){const{ordered:t,values:o,type:n,reversed:r,start:a}=e,c=t?"ol":"ul";return Object(pe.createElement)(c,ue.useBlockProps.save({type:n,reversed:r,start:a}),Object(pe.createElement)(ue.RichText.Content,{value:o,multiline:"li"}))}};var Zc=o("1CF3");var Jc=Object(He.withDispatch)((e,{clientId:t,attributes:o})=>{const{replaceBlock:n}=e(ue.store);return{convertToHTML(){n(t,Object(me.createBlock)("core/html",{content:o.originalUndelimitedContent}))}}})((function({attributes:e,convertToHTML:t}){const{originalName:o,originalUndelimitedContent:n}=e,r=!!n,a=Object(me.getBlockType)("core/html"),c=[];let l;return r&&a?(l=Object(be.sprintf)(Object(be.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.'),o),c.push(Object(pe.createElement)(ke.Button,{key:"convert",onClick:t,isPrimary:!0},Object(be.__)("Keep as HTML")))):l=Object(be.sprintf)(Object(be.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'),o),Object(pe.createElement)("div",Object(ue.useBlockProps)({className:"has-warning"}),Object(pe.createElement)(ue.Warning,{actions:c},l),Object(pe.createElement)(pe.RawHTML,null,Object(Zc.safeHTML)(n)))}));const Yc={apiVersion:2,name:"core/missing",title:"Unsupported",category:"text",description:"Your site doesn’t include support for this block.",textdomain:"default",attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,inserter:!1,html:!1,reusable:!1}},{name:Kc}=Yc,Qc={name:Kc,__experimentalLabel(e,{context:t}){if("accessibility"===t){const{originalName:t}=e,o=t?Object(me.getBlockType)(t):void 0;return o?o.settings.title||t:""}},edit:Jc,save:function({attributes:e}){return Object(pe.createElement)(pe.RawHTML,null,e.originalContent)}};var Xc=Object(pe.createElement)(ge.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(ge.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"}));const el=Object(be.__)("Read more");var tl={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&"core/more"===e.dataset.block,transform(e){const{customText:t,noTeaser:o}=e.dataset,n={};return t&&(n.customText=t),""===o&&(n.noTeaser=!0),Object(me.createBlock)("core/more",n)}}]};const ol={apiVersion:2,name:"core/more",title:"More",category:"design",description:"Content before this block will be shown in the excerpt on your archives page.",keywords:["read more"],textdomain:"default",attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}},supports:{customClassName:!1,className:!1,html:!1,multiple:!1},editorStyle:"wp-block-more-editor"},{name:nl}=ol,rl={icon:Xc,example:{},__experimentalLabel(e,{context:t}){if("accessibility"===t)return e.customText},transforms:tl,edit:function({attributes:{customText:e,noTeaser:t},insertBlocksAfter:o,setAttributes:n}){const r={width:(e||el).length+1.2+"em"};return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(ke.PanelBody,null,Object(pe.createElement)(ke.ToggleControl,{label:Object(be.__)("Hide the excerpt on the full content page"),checked:!!t,onChange:()=>n({noTeaser:!t}),help:e=>e?Object(be.__)("The excerpt is hidden."):Object(be.__)("The excerpt is visible.")}))),Object(pe.createElement)("div",Object(ue.useBlockProps)(),Object(pe.createElement)("div",{className:"wp-block-more"},Object(pe.createElement)("input",{"aria-label":Object(be.__)("Read more link text"),type:"text",value:e,placeholder:el,onChange:e=>{n({customText:""!==e.target.value?e.target.value:void 0})},onKeyDown:({keyCode:e})=>{e===ro.ENTER&&o([Object(me.createBlock)(Object(me.getDefaultBlockName)())])},style:r}))))},save:function({attributes:{customText:e,noTeaser:t}}){const o=e?`\x3c!--more ${e}--\x3e`:"\x3c!--more--\x3e",n=t?"\x3c!--noteaser--\x3e":"";return Object(pe.createElement)(pe.RawHTML,null,Object(de.compact)([o,n]).join("\n"))}};var al=Object(pe.createElement)(ge.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(ge.Path,{d:"M7.8 6c0-.7.6-1.2 1.2-1.2h6c.7 0 1.2.6 1.2 1.2v3h1.5V6c0-1.5-1.2-2.8-2.8-2.8H9C7.5 3.2 6.2 4.5 6.2 6v3h1.5V6zm8.4 11c0 .7-.6 1.2-1.2 1.2H9c-.7 0-1.2-.6-1.2-1.2v-3H6.2v3c0 1.5 1.2 2.8 2.8 2.8h6c1.5 0 2.8-1.2 2.8-2.8v-3h-1.5v3zM4 11v1h16v-1H4z"}));var cl={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&"core/nextpage"===e.dataset.block,transform:()=>Object(me.createBlock)("core/nextpage",{})}]};const ll={apiVersion:2,name:"core/nextpage",title:"Page Break",category:"design",description:"Separate your content into a multi-page experience.",keywords:["next page","pagination"],parent:["core/post-content"],textdomain:"default",supports:{customClassName:!1,className:!1,html:!1},editorStyle:"wp-block-nextpage-editor"},{name:il}=ll,sl={icon:al,example:{},transforms:cl,edit:function(){return Object(pe.createElement)("div",Object(ue.useBlockProps)(),Object(pe.createElement)("div",{className:"wp-block-nextpage"},Object(pe.createElement)("span",null,Object(be.__)("Page break"))))},save:function(){return Object(pe.createElement)(pe.RawHTML,null,"\x3c!--nextpage--\x3e")}};var ul=Object(pe.createElement)(ge.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(ge.Path,{d:"M7 13.8h6v-1.5H7v1.5zM18 16V4c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2zM5.5 16V4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5zM7 10.5h8V9H7v1.5zm0-3.3h8V5.8H7v1.4zM20.2 6v13c0 .7-.6 1.2-1.2 1.2H8v1.5h11c1.5 0 2.7-1.2 2.7-2.8V6h-1.5z"}));const ml=["id","title","link","type","parent"],dl=({pages:e,clientId:t,replaceBlock:o,createBlock:n})=>()=>{if(!e)return;const r={},a=[];e.forEach(({id:e,title:t,link:o,type:c,parent:l})=>{var i,s;const u=null!==(i=null===(s=r[e])||void 0===s?void 0:s.innerBlocks)&&void 0!==i?i:[];if(r[e]=n("core/navigation-link",{id:e,label:t.rendered,url:o,type:c,kind:"post-type"},u),l){r[l]||(r[l]={innerBlocks:[]});r[l].innerBlocks.push(r[e])}else a.push(r[e])}),o(t,a)};function bl({onClose:e,clientId:t}){const{pages:o,pagesFinished:n}=Object(He.useSelect)(e=>{const{getEntityRecords:t,hasFinishedResolution:o}=e(se.store),n=["postType","page",{per_page:100,_fields:ml,orderby:"menu_order",order:"asc"}];return{pages:t(...n),pagesFinished:o("getEntityRecords",n)}},[t]),{replaceBlock:r}=Object(He.useDispatch)(ue.store);return Object(pe.createElement)(ke.Modal,{closeLabel:Object(be.__)("Close"),onRequestClose:e,title:Object(be.__)("Convert to links"),className:"wp-block-page-list-modal",aria:{describedby:"wp-block-page-list-modal__description"}},Object(pe.createElement)("p",{id:"wp-block-page-list-modal__description"},Object(be.__)("To edit this navigation menu, convert it to single page links. This allows you to add, re-order, remove items, or edit their labels.")),Object(pe.createElement)("p",null,Object(be.__)("Note: if you add new pages to your site, you'll need to add them to your navigation menu.")),Object(pe.createElement)("div",{className:"wp-block-page-list-modal-buttons"},Object(pe.createElement)(ke.Button,{isTertiary:!0,onClick:e},Object(be.__)("Cancel")),Object(pe.createElement)(ke.Button,{isPrimary:!0,disabled:!n,onClick:dl({pages:o,replaceBlock:r,clientId:t,createBlock:me.createBlock})},Object(be.__)("Convert"))))}const pl={apiVersion:2,name:"core/page-list",title:"Page List",category:"widgets",description:"Display a list of all pages.",keywords:["menu","navigation"],textdomain:"default",usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style"],supports:{reusable:!1,html:!1},editorStyle:"wp-block-page-list-editor",style:"wp-block-page-list"},{name:gl}=pl,hl={icon:ul,example:{},edit:function({context:e,clientId:t}){const{textColor:o,backgroundColor:n,showSubmenuIcon:r,style:a}=e||{},[c,l]=Object(pe.useState)(!1),i=Object(ue.useBlockProps)({className:Oe()({"has-text-color":!!o,[`has-${o}-color`]:!!o,"has-background":!!n,[`has-${n}-background-color`]:!!n,"show-submenu-icons":!!r}),style:{...null==a?void 0:a.color}}),s=Object(He.useSelect)(e=>{const{getBlockParentsByBlockName:o}=e(ue.store);return o(t,"core/navigation").length>0},[t]);Object(pe.useEffect)(()=>{s?kt()({path:Object(Le.addQueryArgs)("/wp/v2/pages",{per_page:1,_fields:["id"]}),parse:!1}).then(e=>{l(e.headers.get("X-WP-Total")<=100)}):l(!1)},[s]);const[u,m]=Object(pe.useState)(!1);return Object(pe.createElement)(pe.Fragment,null,c&&Object(pe.createElement)(ue.BlockControls,{group:"other"},Object(pe.createElement)(ke.ToolbarButton,{title:Object(be.__)("Edit"),onClick:()=>m(!0)},Object(be.__)("Edit"))),c&&u&&Object(pe.createElement)(bl,{onClose:()=>m(!1),clientId:t}),Object(pe.createElement)("div",i,Object(pe.createElement)(Ko.a,{block:"core/page-list"})))}};var vl=Object(pe.createElement)(ge.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(ge.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 16.5h6V15H7v1.5zm4-4h6V11h-6v1.5zM9 11H7v1.5h2V11zm6 5.5h2V15h-2v1.5z"}));var Ol={from:[{type:"block",blocks:["core/code","core/paragraph"],transform:({content:e,anchor:t})=>Object(me.createBlock)("core/preformatted",{content:e,anchor:t})},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&!(1===e.children.length&&"CODE"===e.firstChild.nodeName),schema:({phrasingContentSchema:e})=>({pre:{children:e}})}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>Object(me.createBlock)("core/paragraph",e)},{type:"block",blocks:["core/code"],transform:e=>Object(me.createBlock)("core/code",e)}]};const jl={apiVersion:2,name:"core/preformatted",title:"Preformatted",category:"text",description:"Add text that respects your spacing and tabs, and also allows styling.",textdomain:"default",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,__experimentalRole:"content"}},supports:{anchor:!0,color:{gradients:!0},typography:{fontSize:!0}},style:"wp-block-preformatted"},{name:fl}=jl,yl={icon:vl,example:{attributes:{content:Object(be.__)("EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)\nWindow, very small in the distance, illuminated.\nAll around this is an almost totally black screen. Now, as the camera moves slowly towards the window which is almost a postage stamp in the frame, other forms appear;")}},transforms:Ol,edit:function({attributes:e,mergeBlocks:t,setAttributes:o,onRemove:n}){const{content:r}=e,a=Object(ue.useBlockProps)();return Object(pe.createElement)(ue.RichText,Object(we.a)({tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:r,onChange:e=>{o({content:e})},onRemove:n,"aria-label":Object(be.__)("Preformatted text"),placeholder:Object(be.__)("Write preformatted text…"),onMerge:t},a,{__unstablePastePlainText:!0}))},save:function({attributes:e}){const{content:t}=e;return Object(pe.createElement)("pre",ue.useBlockProps.save(),Object(pe.createElement)(ue.RichText.Content,{value:t}))},merge:(e,t)=>({content:e.content+t.content})};var _l=Object(pe.createElement)(ge.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(ge.Path,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"}));const wl={value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}};function kl(e){if(!e)return;const t=e.match(/border-color:([^;]+)[;]?/);return t&&t[1]?t[1]:void 0}var El=[{attributes:{...wl,figureStyle:{source:"attribute",selector:"figure",attribute:"style"}},save({attributes:e}){const{mainColor:t,customMainColor:o,textColor:n,customTextColor:r,value:a,citation:c,className:l,figureStyle:i}=e;let s,u;if(Object(de.includes)(l,"is-style-solid-color")){const e=Object(ue.getColorClassName)("background-color",t);s=Oe()({"has-background":e||o,[e]:e}),u={backgroundColor:e?void 0:o}}else if(o)u={borderColor:o};else if(t){u={borderColor:kl(i)}}const m=Object(ue.getColorClassName)("color",n),d=(n||r)&&Oe()("has-text-color",{[m]:m}),b=m?void 0:{color:r};return Object(pe.createElement)("figure",{className:s,style:u},Object(pe.createElement)("blockquote",{className:d,style:b},Object(pe.createElement)(ue.RichText.Content,{value:a,multiline:!0}),!ue.RichText.isEmpty(c)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"cite",value:c})))},migrate({className:e,figureStyle:t,mainColor:o,...n}){if(!Object(de.includes)(e,"is-style-solid-color")&&o&&t){const o=kl(t);if(o)return{...n,className:e,customMainColor:o}}return{className:e,mainColor:o,...n}}},{attributes:wl,save({attributes:e}){const{mainColor:t,customMainColor:o,textColor:n,customTextColor:r,value:a,citation:c,className:l}=e;let i,s;if(Object(de.includes)(l,"is-style-solid-color"))i=Object(ue.getColorClassName)("background-color",t),i||(s={backgroundColor:o});else if(o)s={borderColor:o};else if(t){const e=Object(de.get)(Object(He.select)(ue.store).getSettings(),["colors"],[]);s={borderColor:Object(ue.getColorObjectByAttributeValues)(e,t).color}}const u=Object(ue.getColorClassName)("color",n),m=n||r?Oe()("has-text-color",{[u]:u}):void 0,d=u?void 0:{color:r};return Object(pe.createElement)("figure",{className:i,style:s},Object(pe.createElement)("blockquote",{className:m,style:d},Object(pe.createElement)(ue.RichText.Content,{value:a,multiline:!0}),!ue.RichText.isEmpty(c)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"cite",value:c})))}},{attributes:{...wl},save({attributes:e}){const{value:t,citation:o}=e;return Object(pe.createElement)("blockquote",null,Object(pe.createElement)(ue.RichText.Content,{value:t,multiline:!0}),!ue.RichText.isEmpty(o)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"cite",value:o}))}},{attributes:{...wl,citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}},save({attributes:e}){const{value:t,citation:o,align:n}=e;return Object(pe.createElement)("blockquote",{className:"align"+n},Object(pe.createElement)(ue.RichText.Content,{value:t,multiline:!0}),!ue.RichText.isEmpty(o)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"footer",value:o}))}}];var Cl=Object(ue.withColors)({mainColor:"background-color",textColor:"color"})((function({colorUtils:e,textColor:t,attributes:{value:o,citation:n},setAttributes:r,setTextColor:a,setMainColor:c,mainColor:l,isSelected:i,insertBlocksAfter:s}){const u=Object(pe.useRef)(!1),m=Object(ue.useBlockProps)(),{style:d={},className:b}=m,p=Object(de.includes)(b,"is-style-solid-color"),g={...m,className:Oe()(b,{"has-background":p&&l.color,[l.class]:p&&l.class}),style:p?{...d,backgroundColor:l.color}:{...d,borderColor:l.color}};return Object(pe.useEffect)(()=>{l&&!p&&r({mainColor:void 0,customMainColor:l.color})},[p,l]),Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)("figure",g,Object(pe.createElement)("blockquote",{style:{color:t.color},className:t.color&&Oe()("has-text-color",{[t.class]:t.class})},Object(pe.createElement)(ue.RichText,{identifier:"value",multiline:!0,value:o,onChange:e=>r({value:e}),"aria-label":Object(be.__)("Pullquote text"),placeholder:Object(be.__)("Add quote"),textAlign:"center"}),(!ue.RichText.isEmpty(n)||i)&&Object(pe.createElement)(ue.RichText,{identifier:"citation",value:n,"aria-label":Object(be.__)("Pullquote citation text"),placeholder:Object(be.__)("Add citation"),onChange:e=>r({citation:e}),className:"wp-block-pullquote__citation",__unstableMobileNoFocusOnMount:!0,textAlign:"center",__unstableOnSplitAtEnd:()=>s(Object(me.createBlock)("core/paragraph"))}))),"web"===pe.Platform.OS&&Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(ue.PanelColorSettings,{title:Object(be.__)("Color"),colorSettings:[{value:l.color,onChange:function(o){const n=!t.color||u.current,l=p&&n;p?c(o):r({customMainColor:o}),l&&(o?(u.current=!0,a(e.getMostReadableColor(o))):u.current&&(u.current=!1,a()))},label:Object(be.__)("Main color")},{value:t.color,onChange:function(e){a(e),u.current=!1},label:Object(be.__)("Text color")}]},p&&Object(pe.createElement)(ue.ContrastChecker,{textColor:t.color,backgroundColor:l.color,isLargeText:!1}))))}));var xl={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>Object(me.createBlock)("core/pullquote",{value:Object(fo.toHTMLString)({value:Object(fo.join)(e.map(({content:e})=>Object(fo.create)({html:e})),"\u2028"),multilineTag:"p"}),anchor:e.anchor})},{type:"block",blocks:["core/heading"],transform:({content:e,anchor:t})=>Object(me.createBlock)("core/pullquote",{value:`

    ${e}

    `,anchor:t})}],to:[{type:"block",blocks:["core/paragraph"],transform:({value:e,citation:t})=>{const o=[];return e&&"

    "!==e&&o.push(...Object(fo.split)(Object(fo.create)({html:e,multilineTag:"p"}),"\u2028").map(e=>Object(me.createBlock)("core/paragraph",{content:Object(fo.toHTMLString)({value:e})}))),t&&"

    "!==t&&o.push(Object(me.createBlock)("core/paragraph",{content:t})),0===o.length?Object(me.createBlock)("core/paragraph",{content:""}):o}},{type:"block",blocks:["core/heading"],transform:({value:e,citation:t,...o})=>{if("

    "===e)return Object(me.createBlock)("core/heading",{content:t});const n=Object(fo.split)(Object(fo.create)({html:e,multilineTag:"p"}),"\u2028"),r=Object(me.createBlock)("core/heading",{content:Object(fo.toHTMLString)({value:n[0]})});if(!t&&1===n.length)return r;const a=n.slice(1);return[r,Object(me.createBlock)("core/pullquote",{...o,citation:t,value:Object(fo.toHTMLString)({value:a.length?Object(fo.join)(n.slice(1),"\u2028"):Object(fo.create)(),multilineTag:"p"})})]}}]};const Sl={apiVersion:2,name:"core/pullquote",title:"Pullquote",category:"text",description:"Give special visual emphasis to a quote from your text.",textdomain:"default",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",__experimentalRole:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",__experimentalRole:"content"},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"]},styles:[{name:"default",label:"Default",isDefault:!0},{name:"solid-color",label:"Solid color"}],editorStyle:"wp-block-pullquote-editor",style:"wp-block-pullquote"},{name:Bl}=Sl,Tl={icon:_l,example:{attributes:{value:"

    "+Object(be.__)("One of the hardest things to do in technology is disrupt yourself.")+"

    ",citation:Object(be.__)("Matt Mullenweg")}},transforms:xl,edit:Cl,save:function({attributes:e}){const{mainColor:t,customMainColor:o,textColor:n,customTextColor:r,value:a,citation:c,className:l}=e;let i,s;if(Object(de.includes)(l,"is-style-solid-color")){const e=Object(ue.getColorClassName)("background-color",t);i=Oe()({"has-background":e||o,[e]:e}),s={backgroundColor:e?void 0:o}}else o&&(s={borderColor:o});const u=Object(ue.getColorClassName)("color",n),m=(n||r)&&Oe()("has-text-color",{[u]:u}),d=u?void 0:{color:r};return Object(pe.createElement)("figure",ue.useBlockProps.save({className:i,style:s}),Object(pe.createElement)("blockquote",{className:m,style:d},Object(pe.createElement)(ue.RichText.Content,{value:a,multiline:!0}),!ue.RichText.isEmpty(c)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"cite",value:c})))},deprecated:El};var zl=o("diJD");var Pl=Object(pe.createElement)(ge.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(ge.Path,{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"}));const Nl={apiVersion:2,name:"core/block",title:"Reusable block",category:"reusable",description:"Create and save content to reuse across your site. Update the block, and the changes apply everywhere it’s used.",textdomain:"default",attributes:{ref:{type:"number"}},supports:{customClassName:!1,html:!1,inserter:!1},editorStyle:"wp-block-editor"},{name:Ml}=Nl,Rl={edit:function({attributes:{ref:e},clientId:t}){const[o,n]=Object(ue.__experimentalUseNoRecursiveRenders)(e),{isMissing:r,hasResolved:a}=Object(He.useSelect)(t=>{const o=t(se.store).getEntityRecord("postType","wp_block",e),n=t(se.store).hasFinishedResolution("getEntityRecord",["postType","wp_block",e]);return{hasResolved:n,isMissing:n&&!o}},[e,t]),{__experimentalConvertBlockToStatic:c}=Object(He.useDispatch)(zl.store),[l,i,s]=Object(se.useEntityBlockEditor)("postType","wp_block",{id:e}),[u,m]=Object(se.useEntityProp)("postType","wp_block","title",e),d=Object(ue.__experimentalUseInnerBlocksProps)({},{value:l,onInput:i,onChange:s,renderAppender:null!=l&&l.length?void 0:ue.InnerBlocks.ButtonBlockAppender}),b=Object(ue.useBlockProps)();return o?Object(pe.createElement)("div",b,Object(pe.createElement)(ue.Warning,null,Object(be.__)("Block cannot be rendered inside itself."))):r?Object(pe.createElement)("div",b,Object(pe.createElement)(ue.Warning,null,Object(be.__)("Block has been deleted or is unavailable."))):a?Object(pe.createElement)(n,null,Object(pe.createElement)("div",b,Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(ke.ToolbarGroup,null,Object(pe.createElement)(ke.ToolbarButton,{onClick:()=>c(t),label:Object(be.__)("Convert to regular blocks"),icon:Pl,showTooltip:!0}))),Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(ke.PanelBody,null,Object(pe.createElement)(ke.TextControl,{label:Object(be.__)("Name"),value:u,onChange:m}))),Object(pe.createElement)("div",{className:"block-library-block__reusable-block-container"},Object(pe.createElement)("div",d)))):Object(pe.createElement)("div",b,Object(pe.createElement)(ke.Placeholder,null,Object(pe.createElement)(ke.Spinner,null)))}};var Vl=Object(pe.createElement)(ge.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(ge.Path,{d:"M5 10.2h-.8v1.5H5c1.9 0 3.8.8 5.1 2.1 1.4 1.4 2.1 3.2 2.1 5.1v.8h1.5V19c0-2.3-.9-4.5-2.6-6.2-1.6-1.6-3.8-2.6-6.1-2.6zm10.4-1.6C12.6 5.8 8.9 4.2 5 4.2h-.8v1.5H5c3.5 0 6.9 1.4 9.4 3.9s3.9 5.8 3.9 9.4v.8h1.5V19c0-3.9-1.6-7.6-4.4-10.4zM4 20h3v-3H4v3z"}));const Hl={apiVersion:2,name:"core/rss",title:"RSS",category:"widgets",description:"Display entries from any RSS or Atom feed.",keywords:["atom","feed"],textdomain:"default",attributes:{columns:{type:"number",default:2},blockLayout:{type:"string",default:"list"},feedURL:{type:"string",default:""},itemsToShow:{type:"number",default:5},displayExcerpt:{type:"boolean",default:!1},displayAuthor:{type:"boolean",default:!1},displayDate:{type:"boolean",default:!1},excerptLength:{type:"number",default:55}},supports:{align:!0,html:!1},editorStyle:"wp-block-rss-editor",style:"wp-block-rss"},{name:Il}=Hl,Ll={icon:Vl,example:{attributes:{feedURL:"https://wordpress.org"}},edit:function({attributes:e,setAttributes:t}){const[o,n]=Object(pe.useState)(!e.feedURL),{blockLayout:r,columns:a,displayAuthor:c,displayDate:l,displayExcerpt:i,excerptLength:s,feedURL:u,itemsToShow:m}=e;function d(o){return()=>{const n=e[o];t({[o]:!n})}}const b=Object(ue.useBlockProps)();if(o)return Object(pe.createElement)("div",b,Object(pe.createElement)(ke.Placeholder,{icon:Vl,label:"RSS"},Object(pe.createElement)("form",{onSubmit:function(e){e.preventDefault(),u&&n(!1)},className:"wp-block-rss__placeholder-form"},Object(pe.createElement)(ke.TextControl,{placeholder:Object(be.__)("Enter URL here…"),value:u,onChange:e=>t({feedURL:e}),className:"wp-block-rss__placeholder-input"}),Object(pe.createElement)(ke.Button,{isPrimary:!0,type:"submit"},Object(be.__)("Use URL")))));const p=[{icon:No.a,title:Object(be.__)("Edit RSS URL"),onClick:()=>n(!0)},{icon:wc,title:Object(be.__)("List view"),onClick:()=>t({blockLayout:"list"}),isActive:"list"===r},{icon:kc.a,title:Object(be.__)("Grid view"),onClick:()=>t({blockLayout:"grid"}),isActive:"grid"===r}];return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(ke.ToolbarGroup,{controls:p})),Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(ke.PanelBody,{title:Object(be.__)("RSS settings")},Object(pe.createElement)(ke.RangeControl,{label:Object(be.__)("Number of items"),value:m,onChange:e=>t({itemsToShow:e}),min:1,max:10,required:!0}),Object(pe.createElement)(ke.ToggleControl,{label:Object(be.__)("Display author"),checked:c,onChange:d("displayAuthor")}),Object(pe.createElement)(ke.ToggleControl,{label:Object(be.__)("Display date"),checked:l,onChange:d("displayDate")}),Object(pe.createElement)(ke.ToggleControl,{label:Object(be.__)("Display excerpt"),checked:i,onChange:d("displayExcerpt")}),i&&Object(pe.createElement)(ke.RangeControl,{label:Object(be.__)("Max number of words in excerpt"),value:s,onChange:e=>t({excerptLength:e}),min:10,max:100,required:!0}),"grid"===r&&Object(pe.createElement)(ke.RangeControl,{label:Object(be.__)("Columns"),value:a,onChange:e=>t({columns:e}),min:2,max:6,required:!0}))),Object(pe.createElement)("div",b,Object(pe.createElement)(ke.Disabled,null,Object(pe.createElement)(Ko.a,{block:"core/rss",attributes:e}))))}},Al=Object(pe.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(ke.Rect,{x:"7",y:"10",width:"10",height:"4",rx:"1",fill:"currentColor"})),Dl=Object(pe.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(ke.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"9.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),Object(pe.createElement)(ke.Rect,{x:"16",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),Fl=Object(pe.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(ke.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),Object(pe.createElement)(ke.Rect,{x:"14",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),ql=Object(pe.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(ke.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",fill:"none",strokeWidth:"1.5"})),Gl=Object(pe.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(ke.Rect,{x:"4.75",y:"7.75",width:"14.5",height:"8.5",rx:"1.25",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),Object(pe.createElement)(ke.Rect,{x:"8",y:"11",width:"8",height:"2",fill:"currentColor"})),Ul=Object(pe.createElement)(ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(ke.Rect,{x:"4.75",y:"17.25",width:"5.5",height:"14.5",transform:"rotate(-90 4.75 17.25)",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),Object(pe.createElement)(ke.Rect,{x:"4",y:"7",width:"10",height:"2",fill:"currentColor"}));var Wl=[{name:"default",isDefault:!0,attributes:{buttonText:Object(be.__)("Search"),label:Object(be.__)("Search")}}];const $l={apiVersion:2,name:"core/search",title:"Search",category:"widgets",description:"Help visitors find your content.",keywords:["find"],textdomain:"default",attributes:{label:{type:"string",__experimentalRole:"content"},showLabel:{type:"boolean",default:!0},placeholder:{type:"string",default:"",__experimentalRole:"content"},width:{type:"number"},widthUnit:{type:"string"},buttonText:{type:"string",__experimentalRole:"content"},buttonPosition:{type:"string",default:"button-outside"},buttonUseIcon:{type:"boolean",default:!1}},supports:{align:["left","center","right"],__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},html:!1},editorStyle:"wp-block-search-editor",style:"wp-block-search"},{name:Zl}=$l,Jl={icon:zt.a,example:{},variations:Wl,edit:function({className:e,attributes:t,setAttributes:o,toggleSelection:n,isSelected:r}){var a;const{label:c,showLabel:l,placeholder:i,width:s,widthUnit:u,align:m,buttonText:d,buttonPosition:b,buttonUseIcon:p,style:g}=t,h=null==g||null===(a=g.border)||void 0===a?void 0:a.radius,v="wp-block-search__width-"+Object(Ie.useInstanceId)(ue.__experimentalUnitControl),O=Object(ke.__experimentalUseCustomUnits)({availableUnits:["%","px"],defaultValues:{"%":50,px:350}}),j=()=>Object(pe.createElement)("input",{className:"wp-block-search__input",style:{borderRadius:h},"aria-label":Object(be.__)("Optional placeholder text"),placeholder:i?void 0:Object(be.__)("Optional placeholder…"),value:i,onChange:e=>o({placeholder:e.target.value})}),f=()=>Object(pe.createElement)(pe.Fragment,null,p&&Object(pe.createElement)(ke.Button,{icon:zt.a,className:"wp-block-search__button",style:{borderRadius:h}}),!p&&Object(pe.createElement)(ue.RichText,{className:"wp-block-search__button",style:{borderRadius:h},"aria-label":Object(be.__)("Button text"),placeholder:Object(be.__)("Add button text…"),withoutInteractiveFormatting:!0,value:d,onChange:e=>o({buttonText:e})})),y=Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(ke.ToolbarGroup,null,Object(pe.createElement)(ke.ToolbarButton,{title:Object(be.__)("Toggle search label"),icon:Ul,onClick:()=>{o({showLabel:!l})},className:l?"is-pressed":void 0}),Object(pe.createElement)(ke.DropdownMenu,{icon:(()=>{switch(b){case"button-inside":return Fl;case"button-outside":return Dl;case"no-button":return ql;case"button-only":return Al}})(),label:Object(be.__)("Change button position")},({onClose:e})=>Object(pe.createElement)(ke.MenuGroup,{className:"wp-block-search__button-position-menu"},Object(pe.createElement)(ke.MenuItem,{icon:ql,onClick:()=>{o({buttonPosition:"no-button"}),e()}},Object(be.__)("No Button")),Object(pe.createElement)(ke.MenuItem,{icon:Dl,onClick:()=>{o({buttonPosition:"button-outside"}),e()}},Object(be.__)("Button Outside")),Object(pe.createElement)(ke.MenuItem,{icon:Fl,onClick:()=>{o({buttonPosition:"button-inside"}),e()}},Object(be.__)("Button Inside")))),"no-button"!==b&&Object(pe.createElement)(ke.ToolbarButton,{title:Object(be.__)("Use button with icon"),icon:Gl,onClick:()=>{o({buttonUseIcon:!p})},className:p?"is-pressed":void 0}))),Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(ke.PanelBody,{title:Object(be.__)("Display Settings")},Object(pe.createElement)(ke.BaseControl,{label:Object(be.__)("Width"),id:v},Object(pe.createElement)(ue.__experimentalUnitControl,{id:v,min:"220px",onChange:e=>{const t="%"===u&&parseInt(e,10)>100?100:e;o({width:parseInt(t,10)})},onUnitChange:e=>{o({width:"%"===e?50:350,widthUnit:e})},style:{maxWidth:80},value:`${s}${u}`,unit:u,units:O}),Object(pe.createElement)(ke.ButtonGroup,{className:"wp-block-search__components-button-group","aria-label":Object(be.__)("Percentage Width")},[25,50,75,100].map(e=>Object(pe.createElement)(ke.Button,{key:e,isSmall:!0,isPrimary:e+"%"==`${s}${u}`,onClick:()=>o({width:e,widthUnit:"%"})},e,"%"))))))),_=Object(ue.useBlockProps)({className:Oe()(e,"button-inside"===b?"wp-block-search__button-inside":void 0,"button-outside"===b?"wp-block-search__button-outside":void 0,"no-button"===b?"wp-block-search__no-button":void 0,"button-only"===b?"wp-block-search__button-only":void 0,p||"no-button"===b?void 0:"wp-block-search__text-button",p&&"no-button"!==b?"wp-block-search__icon-button":void 0)});return Object(pe.createElement)("div",_,y,l&&Object(pe.createElement)(ue.RichText,{className:"wp-block-search__label","aria-label":Object(be.__)("Label text"),placeholder:Object(be.__)("Add label…"),withoutInteractiveFormatting:!0,value:c,onChange:e=>o({label:e})}),Object(pe.createElement)(ke.ResizableBox,{size:{width:`${s}${u}`},className:"wp-block-search__inside-wrapper",style:(()=>{var e;if("button-inside"===b&&null!=g&&null!==(e=g.border)&&void 0!==e&&e.radius){var t;return{borderRadius:parseInt(null==g||null===(t=g.border)||void 0===t?void 0:t.radius,10)+4+"px"}}})(),minWidth:220,enable:"button-only"===b?{}:{right:"right"!==m,left:"right"===m},onResizeStart:(e,t,r)=>{o({width:parseInt(r.offsetWidth,10),widthUnit:"px"}),n(!1)},onResizeStop:(e,t,r,a)=>{o({width:parseInt(s+a.width,10)}),n(!0)},showHandle:r},("button-inside"===b||"button-outside"===b)&&Object(pe.createElement)(pe.Fragment,null,j(),f()),"button-only"===b&&f(),"no-button"===b&&j()))}};var Yl=Object(pe.createElement)(ge.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(ge.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"}));const Kl=e=>{if(e.tagName||(e={...e,tagName:"div"}),!e.customTextColor&&!e.customBackgroundColor)return e;const t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),{...Object(de.omit)(e,["customTextColor","customBackgroundColor"]),style:t}};var Ql=[{attributes:{tagName:{type:"string",default:"div"},templateLock:{type:"string"}},supports:{align:["wide","full"],anchor:!0,color:{gradients:!0,link:!0},spacing:{padding:!0},__experimentalBorder:{radius:!0}},save({attributes:e}){const{tagName:t}=e;return Object(pe.createElement)(t,ue.useBlockProps.save(),Object(pe.createElement)("div",{className:"wp-block-group__inner-container"},Object(pe.createElement)(ue.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:Kl,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,textColor:n,customTextColor:r}=e,a=Object(ue.getColorClassName)("background-color",t),c=Object(ue.getColorClassName)("color",n),l=Oe()(a,c,{"has-text-color":n||r,"has-background":t||o}),i={backgroundColor:a?void 0:o,color:c?void 0:r};return Object(pe.createElement)("div",{className:l,style:i},Object(pe.createElement)("div",{className:"wp-block-group__inner-container"},Object(pe.createElement)(ue.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},migrate:Kl,supports:{align:["wide","full"],anchor:!0,html:!1},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,textColor:n,customTextColor:r}=e,a=Object(ue.getColorClassName)("background-color",t),c=Object(ue.getColorClassName)("color",n),l=Oe()(a,{"has-text-color":n||r,"has-background":t||o}),i={backgroundColor:a?void 0:o,color:c?void 0:r};return Object(pe.createElement)("div",{className:l,style:i},Object(pe.createElement)("div",{className:"wp-block-group__inner-container"},Object(pe.createElement)(ue.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:Kl,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o}=e,n=Object(ue.getColorClassName)("background-color",t),r=Oe()(n,{"has-background":t||o}),a={backgroundColor:n?void 0:o};return Object(pe.createElement)("div",{className:r,style:a},Object(pe.createElement)(ue.InnerBlocks.Content,null))}}];var Xl=function({attributes:e,setAttributes:t,clientId:o}){const{hasInnerBlocks:n,themeSupportsLayout:r}=Object(He.useSelect)(e=>{var t;const{getBlock:n,getSettings:r}=e(ue.store),a=n(o);return{hasInnerBlocks:!(!a||!a.innerBlocks.length),themeSupportsLayout:null===(t=r())||void 0===t?void 0:t.supportsLayout}},[o]),a=Object(ue.useSetting)("layout")||{},{tagName:c="div",templateLock:l,layout:i={}}=e,s=i&&i.inherit?a:i,{contentSize:u,wideSize:m}=s,d=Object(pe.useMemo)(()=>{if(r){return{type:"default",alignments:u||m?["wide","full","left","center","right"]:["left","center","right"]}}},[r,u,m]),b=Object(ue.useBlockProps)(),p=Object(ue.__experimentalUseInnerBlocksProps)(r?b:{className:"wp-block-group__inner-container"},{templateLock:l,renderAppender:n?void 0:ue.InnerBlocks.ButtonBlockAppender,__experimentalLayout:d});return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.InspectorAdvancedControls,null,Object(pe.createElement)(ke.SelectControl,{label:Object(be.__)("HTML element"),options:[{label:Object(be.__)("Default (
    )"),value:"div"},{label:"
    ",value:"header"},{label:"
    ",value:"main"},{label:"
    ",value:"section"},{label:"
    ",value:"article"},{label:"