diff --git a/wp-includes/assets/script-loader-packages.php b/wp-includes/assets/script-loader-packages.php index 591a9300c9..d6cefb19f6 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' => 'e7e97f7c0a0eb49124f7ca0d9294594a'), 'annotations.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '78e0fecb08916ea717fa098886de19de'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'dc0ad12a15f885caa01aaa23eca67c67'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'cd3c420b4dbe2c6616328f56fef5fbe6'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => '8b8f9a773357d01a523f9e9eb4f51d14'), 'block-directory.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => 'dd8137ea028ef13098ef0359fa64dda7'), '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' => '6513b90c22d71599e91e4a25028af152'), '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-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' => '32dd2a0cf46f793a062f3f301b063437'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5f11041f01403668dc3caa7456ebb879'), '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' => '314ed1934abfadfbe2207481a1cf4439'), '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' => '7fe2d0dda8d6ccc59cb7b3e0bee4ae62'), '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' => 'a3062063414b58afa171e6db8d23f8de'), 'core-data.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => '7c19d2abfc2efe3b27e641157cb60d95'), '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' => '5914a2a52646fcc582f3653f01060a3f'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => 'd431705d6cdccbeed386b0dda3cab9a4'), 'date.js' => array('dependencies' => array('moment', 'wp-polyfill'), 'version' => '1850a54beb5b0cb2bfb0ef1ba6f17987'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '1c2b18d12c0f9c4961d2f53775bb7671'), 'dom.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '345e666bc784cb37ab33b2619aca6a8b'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => '6cdcf6bbc71e357d5994c55cd0e7d41d'), 'edit-post.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-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' => '72720084dacd3f256dac01a49a5f70b8'), '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' => '64799f86a49fcd42493ae76bd0ac54c9'), 'element.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => 'd75668a068c0d31632dc101d1cd44ced'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => '695654572d53787192fb05c3513be31e'), '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' => '3f7bf687e5b5969c24d4dc8195e54cc4'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => '6e88f593b100fa67d5715e83ccb0b980'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'a8ab9618c6f1a96ad61217ed0200c6de'), 'i18n.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '1d31ffe0ef9571a924bcf414441d68ac'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => '3ab3774bfbcaae9fd629d9e1083762a1'), 'keyboard-shortcuts.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-keycodes', 'wp-polyfill'), 'version' => '5bb4e35231bcd4ef01945f4e85439cb5'), 'keycodes.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => '6ee3dce62767a56a86a9ee06020ed7c6'), 'list-reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '8b2f289f2db39d8bd5bb65d3c353b83e'), 'media-utils.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'f0887e7d0e7beaa9e6edfdfc0997f11e'), 'notices.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => 'bbcae332505740be5015cb4a9bafe04d'), 'nux.js' => array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '32346a1129f494cf5fd7b37c8d34a949'), 'plugins.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-primitives'), 'version' => '78da6e4567f3f33445866d17c9a48f47'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => 'c7089b39bfea30b0c21a4e95cb43e959'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5efa8ff78ec0584ddd281db1822292de'), 'redux-routine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'be5b0b16231fe39e3f7510027e737d44'), 'reusable-blocks.js' => array('dependencies' => array('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' => '0290627871cb959de00bd75573124cbc'), 'rich-text.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-keycodes', 'wp-polyfill'), 'version' => '7fbf3496d28e49fb8f9d11e29c010950'), 'server-side-render.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '366be3bf8adeaad17e581903a328ac92'), 'shortcode.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '6a5bf809b3db55934f320a776cee8d6e'), 'token-list.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'c298503bf06f4c33082bef8c963ae1d1'), 'url.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '5fd56aed1746e2cad5cb7e9dc5dd6919'), 'viewport.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => 'ad650e71062ec3ea7059504ba84345a8'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => '6262ab67d78000ed1c0d3693a399921c'), 'wordcount.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '6d090e5d4c16a4aaced7ea310f2a54d3')); \ No newline at end of file + array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => 'e7e97f7c0a0eb49124f7ca0d9294594a'), 'annotations.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '78e0fecb08916ea717fa098886de19de'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'dc0ad12a15f885caa01aaa23eca67c67'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'cd3c420b4dbe2c6616328f56fef5fbe6'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => '8b8f9a773357d01a523f9e9eb4f51d14'), 'block-directory.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '90182d2e43bfbe134939fb62d7b175c7'), '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' => '2d48410c269333e416297a008e7f46b7'), '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-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' => 'ebefdcfe36e773980c41666273c34f03'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5f11041f01403668dc3caa7456ebb879'), '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' => '2d0ac38ff5b234980d6c8850c2533266'), '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' => '3f22bab64db7f4c41b7bfcb68b5ef0a4'), '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' => 'bf1364a05d66fe631bafae0ed66c0120'), 'core-data.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => '5d632fde9e1420eaa1f2cfc730968fc0'), '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' => '5914a2a52646fcc582f3653f01060a3f'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => 'd431705d6cdccbeed386b0dda3cab9a4'), 'date.js' => array('dependencies' => array('moment', 'wp-polyfill'), 'version' => '1850a54beb5b0cb2bfb0ef1ba6f17987'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '1c2b18d12c0f9c4961d2f53775bb7671'), 'dom.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '345e666bc784cb37ab33b2619aca6a8b'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => '6cdcf6bbc71e357d5994c55cd0e7d41d'), 'edit-post.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-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' => '204f3e10e72bcb8f85e4b7eec2854ad9'), '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' => '9bbe586b4e4f123fcb640e8f6bd9cccc'), 'element.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => 'd75668a068c0d31632dc101d1cd44ced'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => '695654572d53787192fb05c3513be31e'), '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' => '3f7bf687e5b5969c24d4dc8195e54cc4'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => '6e88f593b100fa67d5715e83ccb0b980'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'a8ab9618c6f1a96ad61217ed0200c6de'), 'i18n.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '1d31ffe0ef9571a924bcf414441d68ac'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => '3ab3774bfbcaae9fd629d9e1083762a1'), 'keyboard-shortcuts.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-keycodes', 'wp-polyfill'), 'version' => '5bb4e35231bcd4ef01945f4e85439cb5'), 'keycodes.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => '6ee3dce62767a56a86a9ee06020ed7c6'), 'list-reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '8b2f289f2db39d8bd5bb65d3c353b83e'), 'media-utils.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'f0887e7d0e7beaa9e6edfdfc0997f11e'), 'notices.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => 'bbcae332505740be5015cb4a9bafe04d'), 'nux.js' => array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '32346a1129f494cf5fd7b37c8d34a949'), 'plugins.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-primitives'), 'version' => '78da6e4567f3f33445866d17c9a48f47'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => 'c7089b39bfea30b0c21a4e95cb43e959'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5efa8ff78ec0584ddd281db1822292de'), 'redux-routine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'be5b0b16231fe39e3f7510027e737d44'), 'reusable-blocks.js' => array('dependencies' => array('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' => '2f0640d1f565c266fbeff111cc10101f'), 'rich-text.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-keycodes', 'wp-polyfill'), 'version' => '7fbf3496d28e49fb8f9d11e29c010950'), 'server-side-render.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '366be3bf8adeaad17e581903a328ac92'), 'shortcode.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '6a5bf809b3db55934f320a776cee8d6e'), 'token-list.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'c298503bf06f4c33082bef8c963ae1d1'), 'url.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '5fd56aed1746e2cad5cb7e9dc5dd6919'), 'viewport.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => 'ad650e71062ec3ea7059504ba84345a8'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => '6262ab67d78000ed1c0d3693a399921c'), 'wordcount.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '6d090e5d4c16a4aaced7ea310f2a54d3')); \ No newline at end of file diff --git a/wp-includes/js/dist/block-editor.js b/wp-includes/js/dist/block-editor.js index 2a4c3c42f7..aa51f96215 100644 --- a/wp-includes/js/dist/block-editor.js +++ b/wp-includes/js/dist/block-editor.js @@ -17267,7 +17267,7 @@ function actions_duplicateBlocks(clientIds) { case 16: lastSelectedIndex = _context17.sent; clonedBlocks = blocks.map(function (block) { - return Object(external_wp_blocks_["cloneBlock"])(block); + return Object(external_wp_blocks_["__experimentalCloneSanitizedBlock"])(block); }); _context17.next = 20; return actions_insertBlocks(clonedBlocks, lastSelectedIndex + 1, rootClientId, updateSelection); diff --git a/wp-includes/js/dist/block-editor.min.js b/wp-includes/js/dist/block-editor.min.js index 36d5c82a2f..aef34b424c 100644 --- a/wp-includes/js/dist/block-editor.min.js +++ b/wp-includes/js/dist/block-editor.min.js @@ -9,4 +9,4 @@ this.wp=this.wp||{},this.wp.blockEditor=function(e){var t={};function n(r){if(t[ autosize 4.0.2 license: MIT http://www.jacklmoore.com/autosize -*/o=[e,t],void 0===(c="function"==typeof(r=function(e,t){"use strict";var n,r,o="function"==typeof Map?new Map:(n=[],r=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),c=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){c=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function i(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t,n=null,r=null,i=null,a=function(){e.clientWidth!==r&&d()},l=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:l,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function s(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function d(){u();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r0?!0===i?r.scrollTop(t,h.top+j.top):!1===i?r.scrollTop(t,h.top+k.top):j.top<0?r.scrollTop(t,h.top+j.top):r.scrollTop(t,h.top+k.top):c||((i=void 0===i||!!i)?r.scrollTop(t,h.top+j.top):r.scrollTop(t,h.top+k.top)),o&&(j.left<0||k.left>0?!0===a?r.scrollLeft(t,h.left+j.left):!1===a?r.scrollLeft(t,h.left+k.left):j.left<0?r.scrollLeft(t,h.left+j.left):r.scrollLeft(t,h.left+k.left):c||((a=void 0===a||!!a)?r.scrollLeft(t,h.left+j.left):r.scrollLeft(t,h.left+k.left)))}},191:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=o;case"max":return c<=o;default:return c===o}}));return o&&!n||!o&&n}))},t.parse=l;var r=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,o=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,c=/^(?:(min|max)-)?(.+)/,i=/(em|rem|px|cm|mm|in|pt|pc)?$/,a=/(dpi|dpcm|dppx)?$/;function l(e){return e.split(",").map((function(e){var t=(e=e.trim()).match(r),n=t[1],i=t[2],a=t[3]||"",l={};return l.inverse=!!n&&"not"===n.toLowerCase(),l.type=i?i.toLowerCase():"all",a=a.match(/\([^\)]+\)/g)||[],l.expressions=a.map((function(e){var t=e.match(o),n=t[1].toLowerCase().match(c);return{modifier:n[1],feature:n[2],value:t[2]}})),l}))}function s(e){var t,n=Number(e);return n||(n=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),n}function u(e){var t=parseFloat(e);switch(String(e).match(a)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function d(e){var t=parseFloat(e);switch(String(e).match(i)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},281:function(e,t){var n=e.exports=function(e){return new r(e)};function r(e){this.value=e}function o(e,t,n){var r=[],o=[],a=!0;return function e(d){var b=n?c(d):d,f={},p=!0,m={node:b,node_:d,path:[].concat(r),parent:o[o.length-1],parents:o,key:r.slice(-1)[0],isRoot:0===r.length,level:r.length,circular:null,update:function(e,t){m.isRoot||(m.parent.node[m.key]=e),m.node=e,t&&(p=!1)},delete:function(e){delete m.parent.node[m.key],e&&(p=!1)},remove:function(e){l(m.parent.node)?m.parent.node.splice(m.key,1):delete m.parent.node[m.key],e&&(p=!1)},keys:null,before:function(e){f.before=e},after:function(e){f.after=e},pre:function(e){f.pre=e},post:function(e){f.post=e},stop:function(){a=!1},block:function(){p=!1}};if(!a)return m;function v(){if("object"==typeof m.node&&null!==m.node){m.keys&&m.node_===m.node||(m.keys=i(m.node)),m.isLeaf=0==m.keys.length;for(var e=0;ee.length?n:e})),s.value=e.join(d)}else s.value=e.join(n.slice(a,a+s.count));a+=s.count,s.added||(l+=s.count)}}var b=t[i-1];return i>1&&"string"==typeof b.value&&(b.added||b.removed)&&e.equals("",b.value)&&(t[i-2].value+=b.value,t.pop()),t}function c(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,r.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callback;"function"==typeof n&&(r=n,n={}),this.options=n;var i=this;function a(e){return r?(setTimeout((function(){r(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var l=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,u=1,d=l+s,b=[{newPos:-1,components:[]}],f=this.extractCommon(b[0],t,e,0);if(b[0].newPos+1>=l&&f+1>=s)return a([{value:this.join(t),count:t.length}]);function p(){for(var n=-1*u;n<=u;n+=2){var r=void 0,d=b[n-1],f=b[n+1],p=(f?f.newPos:0)-n;d&&(b[n-1]=void 0);var m=d&&d.newPos+1=l&&p+1>=s)return a(o(i,r.components,t,e,i.useLongestToken));b[n]=r}else b[n]=void 0}u++}if(r)!function e(){setTimeout((function(){if(u>d)return r();p()||e()}),0)}();else for(;u<=d;){var m=p();if(m)return m}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var o=t.length,c=n.length,i=e.newPos,a=i-r,l=0;i+1=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},456:function(e,t,n){"use strict";n.r(t),n.d(t,"getColorClassName",(function(){return Pe})),n.d(t,"getColorObjectByAttributeValues",(function(){return Ie})),n.d(t,"getColorObjectByColorValue",(function(){return xe})),n.d(t,"createCustomColorsHOC",(function(){return Yn})),n.d(t,"withColors",(function(){return Xn})),n.d(t,"__experimentalUseColors",(function(){return br})),n.d(t,"__experimentalGetGradientClass",(function(){return Ne})),n.d(t,"getGradientValueBySlug",(function(){return De})),n.d(t,"__experimentalGetGradientObjectByGradientValue",(function(){return Ae})),n.d(t,"getGradientSlugByValue",(function(){return Re})),n.d(t,"__experimentalUseGradient",(function(){return Le})),n.d(t,"getFontSize",(function(){return un})),n.d(t,"getFontSizeClass",(function(){return bn})),n.d(t,"getFontSizeObjectByValue",(function(){return dn})),n.d(t,"FontSizePicker",(function(){return fn})),n.d(t,"withFontSizes",(function(){return gr})),n.d(t,"AlignmentToolbar",(function(){return Cr})),n.d(t,"Autocomplete",(function(){return Gr})),n.d(t,"BlockAlignmentToolbar",(function(){return z})),n.d(t,"__experimentalBlockFullHeightAligmentToolbar",(function(){return Wr})),n.d(t,"__experimentalBlockAlignmentMatrixToolbar",(function(){return Kr})),n.d(t,"BlockBreadcrumb",(function(){return Ra})),n.d(t,"BlockContextProvider",(function(){return Va})),n.d(t,"BlockControls",(function(){return C})),n.d(t,"BlockColorsStyleSelector",(function(){return Ua})),n.d(t,"BlockEdit",(function(){return qa})),n.d(t,"useBlockEditContext",(function(){return h})),n.d(t,"BlockFormatControls",(function(){return Za})),n.d(t,"BlockIcon",(function(){return Vr})),n.d(t,"BlockNavigationDropdown",(function(){return Yd})),n.d(t,"__experimentalBlockNavigationBlockFill",(function(){return Td})),n.d(t,"__experimentalBlockNavigationEditor",(function(){return ub})),n.d(t,"__experimentalBlockNavigationTree",(function(){return Wd})),n.d(t,"__experimentalBlockVariationPicker",(function(){return bb})),n.d(t,"__experimentalBlockVariationTransforms",(function(){return mb})),n.d(t,"BlockVerticalAlignmentToolbar",(function(){return _b})),n.d(t,"ButtonBlockerAppender",(function(){return Ms})),n.d(t,"ColorPalette",(function(){return Sb})),n.d(t,"ColorPaletteControl",(function(){return Bb})),n.d(t,"ContrastChecker",(function(){return it})),n.d(t,"__experimentalGradientPicker",(function(){return Pb})),n.d(t,"__experimentalGradientPickerControl",(function(){return Tb})),n.d(t,"__experimentalGradientPickerPanel",(function(){return Nb})),n.d(t,"__experimentalFontAppearanceControl",(function(){return Yt})),n.d(t,"__experimentalFontFamilyControl",(function(){return nn})),n.d(t,"__experimentalColorGradientControl",(function(){return $e})),n.d(t,"__experimentalPanelColorGradientSettings",(function(){return rt})),n.d(t,"__experimentalImageSizeControl",(function(){return Ab})),n.d(t,"InnerBlocks",(function(){return $b})),n.d(t,"__experimentalUseInnerBlocksProps",(function(){return qb})),n.d(t,"InspectorAdvancedControls",(function(){return ee})),n.d(t,"InspectorControls",(function(){return ce})),n.d(t,"__experimentalLinkControl",(function(){return Sf})),n.d(t,"__experimentalLinkControlSearchInput",(function(){return jf})),n.d(t,"__experimentalLinkControlSearchResults",(function(){return sf})),n.d(t,"__experimentalLinkControlSearchItem",(function(){return lf})),n.d(t,"LineHeightControl",(function(){return zt})),n.d(t,"MediaReplaceFlow",(function(){return Tf})),n.d(t,"MediaPlaceholder",(function(){return Mf})),n.d(t,"MediaUpload",(function(){return xf})),n.d(t,"MediaUploadCheck",(function(){return Pf})),n.d(t,"PanelColorSettings",(function(){return tr})),n.d(t,"PlainText",(function(){return Hf})),n.d(t,"__experimentalResponsiveBlockControl",(function(){return Gf})),n.d(t,"RichText",(function(){return sb})),n.d(t,"RichTextShortcut",(function(){return Uf})),n.d(t,"RichTextToolbarButton",(function(){return Wf})),n.d(t,"__unstableRichTextInputEvent",(function(){return qf})),n.d(t,"ToolSelector",(function(){return Yf})),n.d(t,"__experimentalUnitControl",(function(){return _n})),n.d(t,"URLInput",(function(){return of})),n.d(t,"URLInputButton",(function(){return Jf})),n.d(t,"URLPopover",(function(){return Rf})),n.d(t,"__experimentalImageURLInputUI",(function(){return rp})),n.d(t,"withColorContext",(function(){return wb})),n.d(t,"__experimentalBlockSettingsMenuFirstItem",(function(){return Pu})),n.d(t,"__experimentalInserterMenuExtension",(function(){return Es})),n.d(t,"__experimentalPreviewOptions",(function(){return cp})),n.d(t,"__experimentalUseResizeCanvas",(function(){return bp})),n.d(t,"BlockInspector",(function(){return hp})),n.d(t,"BlockList",(function(){return ed})),n.d(t,"useBlockProps",(function(){return gd})),n.d(t,"__experimentalBlock",(function(){return Ep})),n.d(t,"BlockMover",(function(){return ru})),n.d(t,"BlockPreview",(function(){return Ql})),n.d(t,"BlockSelectionClearer",(function(){return wp})),n.d(t,"__unstableUseBlockSelectionClearer",(function(){return Cp})),n.d(t,"BlockSettingsMenu",(function(){return Hu})),n.d(t,"BlockSettingsMenuControls",(function(){return Mu})),n.d(t,"BlockTitle",(function(){return Aa})),n.d(t,"BlockToolbar",(function(){return Ku})),n.d(t,"CopyHandler",(function(){return Eu})),n.d(t,"__unstableUseClipboardHandler",(function(){return _u})),n.d(t,"DefaultBlockAppender",(function(){return Ls})),n.d(t,"__unstableUseEditorStyles",(function(){return Qp})),n.d(t,"Inserter",(function(){return Rs})),n.d(t,"__experimentalLibrary",(function(){return Zp})),n.d(t,"__experimentalSearchForm",(function(){return zl})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return em})),n.d(t,"MultiSelectScrollIntoView",(function(){return nm})),n.d(t,"__unstableUseScrollMultiSelectionIntoView",(function(){return tm})),n.d(t,"NavigableToolbar",(function(){return tu})),n.d(t,"ObserveTyping",(function(){return im})),n.d(t,"__unstableUseTypingObserver",(function(){return cm})),n.d(t,"__unstableUseMouseMoveTypingReset",(function(){return om})),n.d(t,"PreserveScrollInReorder",(function(){return am})),n.d(t,"SkipToSelectedBlock",(function(){return fp})),n.d(t,"Typewriter",(function(){return dm})),n.d(t,"__unstableUseTypewriter",(function(){return um})),n.d(t,"Warning",(function(){return yl})),n.d(t,"WritingFlow",(function(){return fd})),n.d(t,"__unstableUseCanvasClickRedirect",(function(){return fm})),n.d(t,"useBlockDisplayInformation",(function(){return Da})),n.d(t,"__unstableIframe",(function(){return Om})),n.d(t,"__experimentalUseNoRecursiveRenders",(function(){return jm})),n.d(t,"BlockEditorProvider",(function(){return $l})),n.d(t,"__experimentalUseSimulatedMediaQuery",(function(){return dp})),n.d(t,"__experimentalUseEditorFeature",(function(){return ge})),n.d(t,"transformStyles",(function(){return Xp})),n.d(t,"validateThemeColors",(function(){return km})),n.d(t,"validateThemeGradients",(function(){return ym})),n.d(t,"__experimentalGetMatchingVariation",(function(){return fb})),n.d(t,"storeConfig",(function(){return Ta})),n.d(t,"store",(function(){return Na})),n.d(t,"SETTINGS_DEFAULTS",(function(){return $r}));var r={};n.r(r),n.d(r,"getBlockName",(function(){return jo})),n.d(r,"isBlockValid",(function(){return ko})),n.d(r,"getBlockAttributes",(function(){return yo})),n.d(r,"getBlock",(function(){return _o})),n.d(r,"__unstableGetBlockWithoutInnerBlocks",(function(){return Eo})),n.d(r,"getBlocks",(function(){return Co})),n.d(r,"__unstableGetBlockWithBlockTree",(function(){return wo})),n.d(r,"__unstableGetBlockTree",(function(){return So})),n.d(r,"getClientIdsOfDescendants",(function(){return Bo})),n.d(r,"getClientIdsWithDescendants",(function(){return Io})),n.d(r,"getGlobalBlockCount",(function(){return xo})),n.d(r,"getBlocksByClientId",(function(){return Po})),n.d(r,"getBlockCount",(function(){return To})),n.d(r,"getSelectionStart",(function(){return No})),n.d(r,"getSelectionEnd",(function(){return Do})),n.d(r,"getBlockSelectionStart",(function(){return Ao})),n.d(r,"getBlockSelectionEnd",(function(){return Ro})),n.d(r,"getSelectedBlockCount",(function(){return Lo})),n.d(r,"hasSelectedBlock",(function(){return Mo})),n.d(r,"getSelectedBlockClientId",(function(){return Fo})),n.d(r,"getSelectedBlock",(function(){return Vo})),n.d(r,"getBlockRootClientId",(function(){return Ho})),n.d(r,"getBlockParents",(function(){return zo})),n.d(r,"getBlockParentsByBlockName",(function(){return Go})),n.d(r,"getBlockHierarchyRootClientId",(function(){return Uo})),n.d(r,"getLowestCommonAncestorWithSelectedBlock",(function(){return Wo})),n.d(r,"getAdjacentBlockClientId",(function(){return Ko})),n.d(r,"getPreviousBlockClientId",(function(){return qo})),n.d(r,"getNextBlockClientId",(function(){return $o})),n.d(r,"getSelectedBlocksInitialCaretPosition",(function(){return Yo})),n.d(r,"getSelectedBlockClientIds",(function(){return Xo})),n.d(r,"getMultiSelectedBlockClientIds",(function(){return Qo})),n.d(r,"getMultiSelectedBlocks",(function(){return Zo})),n.d(r,"getFirstMultiSelectedBlockClientId",(function(){return Jo})),n.d(r,"getLastMultiSelectedBlockClientId",(function(){return ec})),n.d(r,"isFirstMultiSelectedBlock",(function(){return tc})),n.d(r,"isBlockMultiSelected",(function(){return nc})),n.d(r,"isAncestorMultiSelected",(function(){return rc})),n.d(r,"getMultiSelectedBlocksStartClientId",(function(){return oc})),n.d(r,"getMultiSelectedBlocksEndClientId",(function(){return cc})),n.d(r,"getBlockOrder",(function(){return ic})),n.d(r,"getBlockIndex",(function(){return ac})),n.d(r,"isBlockSelected",(function(){return lc})),n.d(r,"hasSelectedInnerBlock",(function(){return sc})),n.d(r,"isBlockWithinSelection",(function(){return uc})),n.d(r,"hasMultiSelection",(function(){return dc})),n.d(r,"isMultiSelecting",(function(){return bc})),n.d(r,"isSelectionEnabled",(function(){return fc})),n.d(r,"getBlockMode",(function(){return pc})),n.d(r,"isTyping",(function(){return mc})),n.d(r,"isDraggingBlocks",(function(){return vc})),n.d(r,"getDraggedBlockClientIds",(function(){return gc})),n.d(r,"isBlockBeingDragged",(function(){return Oc})),n.d(r,"isAncestorBeingDragged",(function(){return hc})),n.d(r,"isCaretWithinFormattedText",(function(){return jc})),n.d(r,"getBlockInsertionPoint",(function(){return kc})),n.d(r,"isBlockInsertionPointVisible",(function(){return yc})),n.d(r,"isValidTemplate",(function(){return _c})),n.d(r,"getTemplate",(function(){return Ec})),n.d(r,"getTemplateLock",(function(){return Cc})),n.d(r,"canInsertBlockType",(function(){return Sc})),n.d(r,"canInsertBlocks",(function(){return Bc})),n.d(r,"getInserterItems",(function(){return Dc})),n.d(r,"getBlockTransformItems",(function(){return Ac})),n.d(r,"hasInserterItems",(function(){return Rc})),n.d(r,"__experimentalGetAllowedBlocks",(function(){return Lc})),n.d(r,"getBlockListSettings",(function(){return Mc})),n.d(r,"getSettings",(function(){return Fc})),n.d(r,"isLastBlockChangePersistent",(function(){return Vc})),n.d(r,"__experimentalGetBlockListSettingsForBlocks",(function(){return Hc})),n.d(r,"__experimentalGetParsedReusableBlock",(function(){return zc})),n.d(r,"__experimentalGetReusableBlockTitle",(function(){return Gc})),n.d(r,"__unstableIsLastBlockChangeIgnored",(function(){return Uc})),n.d(r,"__experimentalGetLastBlockAttributeChanges",(function(){return Wc})),n.d(r,"isNavigationMode",(function(){return qc})),n.d(r,"hasBlockMovingClientId",(function(){return $c})),n.d(r,"didAutomaticChange",(function(){return Yc})),n.d(r,"isBlockHighlighted",(function(){return Xc})),n.d(r,"areInnerBlocksControlled",(function(){return Qc})),n.d(r,"__experimentalGetActiveBlockIdByBlockNames",(function(){return Zc}));var o={};n.r(o),n.d(o,"resetBlocks",(function(){return Si})),n.d(o,"validateBlocksToTemplate",(function(){return Bi})),n.d(o,"resetSelection",(function(){return Ii})),n.d(o,"receiveBlocks",(function(){return xi})),n.d(o,"updateBlockAttributes",(function(){return Pi})),n.d(o,"updateBlock",(function(){return Ti})),n.d(o,"selectBlock",(function(){return Ni})),n.d(o,"selectPreviousBlock",(function(){return Di})),n.d(o,"selectNextBlock",(function(){return Ai})),n.d(o,"startMultiSelect",(function(){return Ri})),n.d(o,"stopMultiSelect",(function(){return Li})),n.d(o,"multiSelect",(function(){return Mi})),n.d(o,"clearSelectedBlock",(function(){return Fi})),n.d(o,"toggleSelection",(function(){return Vi})),n.d(o,"replaceBlocks",(function(){return zi})),n.d(o,"replaceBlock",(function(){return Gi})),n.d(o,"moveBlocksDown",(function(){return Wi})),n.d(o,"moveBlocksUp",(function(){return Ki})),n.d(o,"moveBlocksToPosition",(function(){return qi})),n.d(o,"moveBlockToPosition",(function(){return $i})),n.d(o,"insertBlock",(function(){return Yi})),n.d(o,"insertBlocks",(function(){return Xi})),n.d(o,"__unstableSetInsertionPoint",(function(){return Qi})),n.d(o,"showInsertionPoint",(function(){return Zi})),n.d(o,"hideInsertionPoint",(function(){return Ji})),n.d(o,"setTemplateValidity",(function(){return ea})),n.d(o,"synchronizeTemplate",(function(){return ta})),n.d(o,"mergeBlocks",(function(){return na})),n.d(o,"removeBlocks",(function(){return ra})),n.d(o,"removeBlock",(function(){return oa})),n.d(o,"replaceInnerBlocks",(function(){return ca})),n.d(o,"toggleBlockMode",(function(){return ia})),n.d(o,"startTyping",(function(){return aa})),n.d(o,"stopTyping",(function(){return la})),n.d(o,"startDraggingBlocks",(function(){return sa})),n.d(o,"stopDraggingBlocks",(function(){return ua})),n.d(o,"enterFormattedText",(function(){return da})),n.d(o,"exitFormattedText",(function(){return ba})),n.d(o,"selectionChange",(function(){return fa})),n.d(o,"insertDefaultBlock",(function(){return pa})),n.d(o,"updateBlockListSettings",(function(){return ma})),n.d(o,"updateSettings",(function(){return va})),n.d(o,"__unstableSaveReusableBlock",(function(){return ga})),n.d(o,"__unstableMarkLastChangeAsPersistent",(function(){return Oa})),n.d(o,"__unstableMarkNextChangeAsNotPersistent",(function(){return ha})),n.d(o,"__unstableMarkAutomaticChange",(function(){return ja})),n.d(o,"__unstableMarkAutomaticChangeFinal",(function(){return ka})),n.d(o,"setNavigationMode",(function(){return ya})),n.d(o,"setBlockMovingClientId",(function(){return _a})),n.d(o,"duplicateBlocks",(function(){return Ea})),n.d(o,"insertBeforeBlock",(function(){return Ca})),n.d(o,"insertAfterBlock",(function(){return wa})),n.d(o,"toggleBlockHighlight",(function(){return Sa})),n.d(o,"flashBlock",(function(){return Ba})),n.d(o,"setHasControlledInnerBlocks",(function(){return Ia}));var c=n(21),i=n(8),a=n(5),l=n(0),s=n(10),u=n.n(s),d=n(2),b=n(12),f=n(33),p=n(9),m=n(4),v=n(3),g=Object(l.createContext)({name:"",isSelected:!1,focusedElement:null,setFocusedElement:d.noop,clientId:null}),O=g.Provider;function h(){return Object(l.useContext)(g)}function j(){var e=h(),t=e.isSelected,n=e.clientId,r=e.name,o=Object(m.useSelect)((function(e){if(!t){var o=e("core/block-editor"),c=o.getBlockName,i=o.isFirstMultiSelectedBlock,a=o.getMultiSelectedBlockClientIds;return!!i(n)&&a().every((function(e){return c(e)===r}))}}),[n,t,r]);return t||o}var k=Object(v.createSlotFill)("BlockControls"),y=k.Fill,_=k.Slot;var E=function(e){var t=e.controls,n=e.children;return j()?Object(l.createElement)(y,null,(function(e){var r=Object(d.isEmpty)(e)?null:e;return Object(l.createElement)(v.__experimentalToolbarContext.Provider,{value:r},Object(l.createElement)(v.ToolbarGroup,{controls:t}),n)})):null};E.Slot=function(e){var t=Object(l.useContext)(v.__experimentalToolbarContext);return Object(l.createElement)(_,Object(i.a)({},e,{fillProps:t}))};var C=E,w=n(1),S=n(7),B=Object(l.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(S.Path,{d:"M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"})),I=Object(l.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(S.Path,{d:"M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"})),x=Object(l.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(S.Path,{d:"M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"})),P=Object(l.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(S.Path,{d:"M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"})),T=Object(l.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(S.Path,{d:"M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"})),N={type:"default"},D=Object(l.createContext)(N),A=D.Provider;function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t=Array.isArray(e)?W.filter((function(t){return e.includes(t)})):!0===e?W:[],!r||!0===e&&!n?d.without.apply(void 0,[t].concat(K)):t}var $=Object(b.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=q(Object(p.getBlockSupport)(n,"align"),Object(p.hasBlockSupport)(n,"alignWide",!0));return[r.length>0&&t.isSelected&&Object(l.createElement)(C,{key:"align-controls"},Object(l.createElement)(z,{value:t.attributes.align,onChange:function(e){var n,r;e||(null===(n=Object(p.getBlockType)(t.name).attributes)||void 0===n||null===(r=n.align)||void 0===r?void 0:r.default)&&(e="");t.setAttributes({align:e})},controls:r})),Object(l.createElement)(e,Object(i.a)({key:"edit"},t))]}}),"withToolbarControls"),Y=Object(b.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=t.attributes.align,o=Object(m.useSelect)((function(e){return!!e("core/block-editor").getSettings().alignWide}),[]);if(void 0===r)return Object(l.createElement)(e,t);var c=q(Object(p.getBlockSupport)(n,"align"),Object(p.hasBlockSupport)(n,"alignWide",!0),o),a=t.wrapperProps;return c.includes(r)&&(a=U(U({},a),{},{"data-align":r})),Object(l.createElement)(e,Object(i.a)({},t,{wrapperProps:a}))}}));Object(f.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(d.has)(e.attributes,["align","type"])||Object(p.hasBlockSupport)(e,"align")&&(e.attributes=U(U({},e.attributes),{},{align:{type:"string",enum:[].concat(W,[""])}})),e})),Object(f.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",Y),Object(f.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",$),Object(f.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){var r=n.align;return q(Object(p.getBlockSupport)(t,"align"),Object(p.hasBlockSupport)(t,"alignWide",!0)).includes(r)&&(e.className=u()("align".concat(r),e.className)),e}));var X=Object(v.createSlotFill)("InspectorAdvancedControls"),Q=X.Fill,Z=X.Slot;function J(e){var t=e.children;return h().isSelected?Object(l.createElement)(Q,null,t):null}J.slotName="InspectorAdvancedControls",J.Slot=Z;var ee=J,te=Object(v.createSlotFill)("InspectorControls"),ne=te.Fill,re=te.Slot;function oe(e){var t=e.children;return j()?Object(l.createElement)(ne,null,t):null}oe.Slot=re;var ce=oe;function ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ae(e){for(var t=1;t");var t=Object(p.parseWithAttributeSchema)(e,{type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"});return t?t.trim().split(/\s+/):[]}Object(f.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(p.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes=de(de({},e.attributes),{},{className:{type:"string"}})),e})),Object(f.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",be),Object(f.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return Object(p.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=u()(e.className,n.className)),e})),Object(f.addFilter)("blocks.getBlockAttributes","core/custom-class-name/addParsedDifference",(function(e,t,n){if(Object(p.hasBlockSupport)(t,"customClassName",!0)){var r=Object(d.omit)(e,["className"]),o=Object(p.getSaveContent)(t,r),c=fe(o),i=fe(n),a=Object(d.difference)(i,c);a.length?e.className=a.join(" "):o&&delete e.className}return e}));var pe=n(15);Object(f.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return Object(p.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=Object(d.uniq)([Object(p.getBlockDefaultClassName)(t.name)].concat(Object(pe.a)(e.className.split(" ")))).join(" ").trim():e.className=Object(p.getBlockDefaultClassName)(t.name)),e}));var me={"color.palette":function(e){return void 0===e.colors?void 0:e.colors},"color.gradients":function(e){return void 0===e.gradients?void 0:e.gradients},"color.custom":function(e){return void 0===e.disableCustomColors?void 0:!e.disableCustomColors},"color.customGradient":function(e){return void 0===e.disableCustomGradients?void 0:!e.disableCustomGradients},"typography.fontSizes":function(e){return void 0===e.fontSizes?void 0:e.fontSizes},"typography.customFontSize":function(e){return void 0===e.disableCustomFontSizes?void 0:!e.disableCustomFontSizes},"typography.customLineHeight":function(e){return e.enableCustomLineHeight},"spacing.units":function(e){if(void 0!==e.enableCustomUnits)return!0===e.enableCustomUnits?["px","em","rem","vh","vw"]:e.enableCustomUnits},"spacing.customPadding":function(e){return e.enableCustomSpacing}};function ve(e,t){for(var n in t)if(t[n]!==e[n])return!1;return!0}function ge(e){var t=h(),n=t.name,r=t.clientId;return Object(m.useSelect)((function(t){var o,c=t("core/block-editor"),i=c.getBlockAttributes,a=(0,c.getSettings)(),l=t(p.store).getBlockType(n),s=n,u=Object(d.get)(l,["supports","__experimentalSelector"]);if(Object(d.isObject)(u)){var b=i(r)||{};for(var f in u){if(ve(b,u[f].attributes)){s=f;break}}}var m="__experimentalFeatures.defaults.".concat(e),v="__experimentalFeatures.".concat(s,".").concat(e),g=null!==(o=Object(d.get)(a,v))&&void 0!==o?o:Object(d.get)(a,m);if(void 0!==g)return g;var O=me[e]?me[e](a):void 0;return void 0!==O?O:"typography.dropCap"===e||void 0}),[n,r,e])}var Oe=function e(t){if(!Object(d.isObject)(t))return t;var n=Object(d.pickBy)(Object(d.mapValues)(t,e),d.identity);return Object(d.isEqual)(n,{})?void 0:n};function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function je(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=!ge("border.customRadius");return!ye(t)||n}var Ee="__experimentalBorder";function Ce(e){var t=we(e),n=function(e){if("web"!==l.Platform.OS)return!1;var t=Object(p.getBlockSupport)(e,Ee);return!!(!0===t||null!=t&&t.radius)}(e.name);return t||!n?null:Object(l.createElement)(ce,null,Object(l.createElement)(v.PanelBody,{title:Object(w.__)("Border settings")},Object(l.createElement)(ke,e)))}var we=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[_e(e)];return t.every(Boolean)},Se=n(60),Be=n.n(Se),Ie=function(e,t,n){if(t){var r=Object(d.find)(e,{slug:t});if(r)return r}return{color:n}},xe=function(e,t){return Object(d.find)(e,{color:t})};function Pe(e,t){if(e&&t)return"has-".concat(Object(d.kebabCase)(t),"-").concat(e)}var Te=[];function Ne(e){if(e)return"has-".concat(e,"-gradient-background")}function De(e,t){var n=Object(d.find)(e,["slug",t]);return n&&n.gradient}function Ae(e,t){return Object(d.find)(e,["gradient",t])}function Re(e,t){var n=Ae(e,t);return n&&n.slug}function Le(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.gradientAttribute,n=void 0===t?"gradient":t,r=e.customGradientAttribute,o=void 0===r?"customGradient":r,c=h(),i=c.clientId,s=ge("color.gradients")||Te,u=Object(m.useSelect)((function(e){var t=(0,e("core/block-editor").getBlockAttributes)(i)||{};return{customGradient:t[o],gradient:t[n]}}),[i,n,o]),d=u.gradient,b=u.customGradient,f=Object(m.useDispatch)("core/block-editor"),p=f.updateBlockAttributes,v=Object(l.useCallback)((function(e){var t,r,c=Re(s,e);c?p(i,(r={},Object(a.a)(r,n,c),Object(a.a)(r,o,void 0),r)):p(i,(t={},Object(a.a)(t,n,void 0),Object(a.a)(t,o,e),t))}),[s,i,p]),g=Ne(d);return{gradientClass:g,gradientValue:d?De(s,d):b,setGradient:v}}var Me=n(11),Fe=n(13);function Ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function He(e){for(var t=1;t=24?"large":"small"})?null:Object(l.createElement)(ct,{backgroundColor:t,textColor:i,tinyBackgroundColor:a,tinyTextColor:s})};function at(e,t){return t.getElementById("block-"+e)}function lt(e,t){return t.closest(".block-editor-block-list__block")===e}function st(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(e){var t=e.closest(".block-editor-block-list__block");if(t)return t.id.slice("block-".length)}}function ut(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function dt(e){var t=e.settings,n=e.clientId,r=e.enableContrastChecking,o=void 0===r||r,c=Object(l.useState)(),i=Object(Me.a)(c,2),a=i[0],s=i[1],u=Object(l.useState)(),d=Object(Me.a)(u,2),b=d[0],f=d[1];return Object(l.useEffect)((function(){if(o){var e=at(n,document);if(e){f(ut(e).color);for(var t=e,r=ut(t).backgroundColor;"rgba(0, 0, 0, 0)"===r&&t.parentNode&&t.parentNode.nodeType===t.parentNode.ELEMENT_NODE;)r=ut(t=t.parentNode).backgroundColor;s(r)}}})),Object(l.createElement)(ce,null,Object(l.createElement)(rt,{title:Object(w.__)("Color settings"),initialOpen:!1,settings:t},o&&Object(l.createElement)(it,{backgroundColor:a,textColor:b})))}function bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ft(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=!Object(p.hasBlockSupport)(t,"__experimentalTextDecoration"),r=ge("typography.customTextDecorations");return n||!r}var Pt=Object(l.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(S.Path,{d:"M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"})),Tt=Object(l.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(S.Path,{d:"M10.8 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.1-.4-.3-.9-.4-1.6-.4-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.3 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.5.1-.7 0-.8-.1zM9.1 16c-.2.3-.5.6-.9.8-.4.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.5-3.9c-.3-.6-.7-1.1-1.2-1.5-.5-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1 0-.6-.2-1.3-.5-1.9zm-1.6 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.5-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"})),Nt=Object(l.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(S.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"})),Dt=[{name:Object(w.__)("Uppercase"),value:"uppercase",icon:Pt},{name:Object(w.__)("Lowercase"),value:"lowercase",icon:Tt},{name:Object(w.__)("Capitalize"),value:"capitalize",icon:Nt}];function At(e){var t=e.value,n=e.onChange;return Object(l.createElement)("fieldset",{className:"block-editor-text-transform-control"},Object(l.createElement)("legend",null,Object(w.__)("Letter case")),Object(l.createElement)("div",{className:"block-editor-text-transform-control__buttons"},Dt.map((function(e){return Object(l.createElement)(v.Button,{key:e.value,icon:e.icon,isSmall:!0,isPressed:t===e.value,"aria-label":e.name,onClick:function(){return n(t===e.value?void 0:e.value)}})}))))}function Rt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=!Object(p.hasBlockSupport)(t,"__experimentalTextTransform"),r=ge("typography.customTextTransforms");return n||!r}function Vt(e){var t=!xt(e),n=!Ft(e);return t||n?Object(l.createElement)("div",{className:"block-editor-text-decoration-and-transform"},t&&Object(l.createElement)(It,e),n&&Object(l.createElement)(Mt,e)):null}var Ht=n(17);function zt(e){var t=e.value,n=e.onChange,r=function(e){return void 0!==e&&""!==e}(t),o=r?t:"";return Object(l.createElement)("div",{className:"block-editor-line-height-control"},Object(l.createElement)(v.TextControl,{autoComplete:"off",onKeyDown:function(e){e.keyCode!==Ht.ZERO||r||(e.preventDefault(),n("0"))},onChange:function(e){if(r)n(e);else{var t=e;switch(e){case"".concat(.1):t=1.6;break;case"0":t=1.4}n(t)}},label:Object(w.__)("Line height"),placeholder:1.5,step:.1,type:"number",value:o,min:0}))}function Gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ut(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=!ge("typography.customLineHeight");return!Object(p.hasBlockSupport)(t,"lineHeight")||n}var qt=[{name:Object(w.__)("Regular"),value:"normal"},{name:Object(w.__)("Italic"),value:"italic"}],$t=[{name:Object(w.__)("Thin"),value:"100"},{name:Object(w.__)("Extra Light"),value:"200"},{name:Object(w.__)("Light"),value:"300"},{name:Object(w.__)("Regular"),value:"400"},{name:Object(w.__)("Medium"),value:"500"},{name:Object(w.__)("Semi Bold"),value:"600"},{name:Object(w.__)("Bold"),value:"700"},{name:Object(w.__)("Extra Bold"),value:"800"},{name:Object(w.__)("Black"),value:"900"}];function Yt(e){var t=e.onChange,n=e.hasFontStyles,r=void 0===n||n,o=e.hasFontWeights,c=void 0===o||o,i=e.value,a=i.fontStyle,s=i.fontWeight,u=r||c,d={key:"default",name:Object(w.__)("Default"),style:{fontStyle:void 0,fontWeight:void 0}},b=Object(l.useMemo)((function(){return r&&c?(e=[d],qt.forEach((function(t){var n=t.name,r=t.value;$t.forEach((function(t){var o=t.name,c=t.value,i="normal"===r?o:Object(w.sprintf)(Object(w.__)("%1$s %2$s"),o,n);e.push({key:"".concat(r,"-").concat(c),name:i,style:{fontStyle:r,fontWeight:c}})}))})),e):r?function(){var e=[d];return qt.forEach((function(t){var n=t.name,r=t.value;e.push({key:r,name:n,style:{fontStyle:r,fontWeight:void 0}})})),e}():function(){var e=[d];return $t.forEach((function(t){var n=t.name,r=t.value;e.push({key:r,name:n,style:{fontStyle:void 0,fontWeight:r}})})),e}();var e}),[e.options]),f=b.find((function(e){return e.style.fontStyle===a&&e.style.fontWeight===s}));return Object(l.createElement)("fieldset",{className:"components-font-appearance-control"},u&&Object(l.createElement)(v.CustomSelectControl,{className:"components-font-appearance-control__select",label:r?c?Object(w.__)("Appearance"):Object(w.__)("Font style"):Object(w.__)("Font weight"),options:b,value:f,onChange:function(e){var n=e.selectedItem;return t(n.style)}}))}function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=Object(p.hasBlockSupport)(t,"__experimentalFontStyle"),r=ge("typography.customFontStyle");return!n||!r}function en(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=Object(p.hasBlockSupport)(t,"__experimentalFontWeight"),r=ge("typography.customFontWeight");return!n||!r}function tn(e){var t=Jt(e),n=en(e);return t&&n}function nn(e){var t=e.value,n=void 0===t?"":t,r=e.onChange,o=e.fontFamilies,c=Object(Fe.a)(e,["value","onChange","fontFamilies"]),a=ge("typography.fontFamilies");if(o||(o=a),Object(d.isEmpty)(o))return null;var s=[{value:"",label:Object(w.__)("Default")}].concat(Object(pe.a)(o.map((function(e){var t=e.fontFamily;return{value:t,label:e.name||t}}))));return Object(l.createElement)(v.SelectControl,Object(i.a)({label:Object(w.__)("Font family"),options:s,value:n,onChange:r,labelPosition:"top"},c))}function rn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function on(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=ge("typography.fontSizes"),r=!(null==n||!n.length);return!Object(p.hasBlockSupport)(t,"fontSize")||!r}var hn=Object(b.createHigherOrderComponent)((function(e){return function(t){var n,r=ge("typography.fontSizes"),o=t.name,c=t.attributes,i=c.fontSize,a=c.style,s=t.wrapperProps,u=mn({},t);if(Object(p.hasBlockSupport)(o,"fontSize")&&i&&(null==a||null===(n=a.typography)||void 0===n||!n.fontSize)){var d,b=un(r,i,null==a||null===(d=a.typography)||void 0===d?void 0:d.fontSize).size;u.wrapperProps=mn(mn({},s),{},{style:mn({fontSize:b},null==s?void 0:s.style)})}return Object(l.createElement)(e,u)}}),"withFontSizeInlineStyles");Object(f.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return Object(p.hasBlockSupport)(e,"fontSize")?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),Object(f.addFilter)("blocks.getSaveContent.extraProps","core/font/addSaveProps",vn),Object(f.addFilter)("blocks.registerBlockType","core/font/addEditProps",(function(e){if(!Object(p.hasBlockSupport)(e,"fontSize"))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),vn(r,e,n)},e})),Object(f.addFilter)("editor.BlockListBlock","core/font-size/with-font-size-inline-styles",hn);var jn=["lineHeight","fontSize","__experimentalFontStyle","__experimentalFontWeight","__experimentalFontFamily","__experimentalTextDecoration","__experimentalTextTransform"];function kn(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[tn(e),On(e),Kt(e),an(e),xt(e),Ft(e)];return t.filter(Boolean).length===t.length}(e),n=yn(e.name);return t||!n?null:Object(l.createElement)(ce,null,Object(l.createElement)(v.PanelBody,{title:Object(w.__)("Typography")},Object(l.createElement)(v.__unstableComponentSystemProvider,{__unstableNextInclude:["WPComponentsFontSizePicker"]},Object(l.createElement)(cn,e),Object(l.createElement)(gn,e),Object(l.createElement)(Zt,e),Object(l.createElement)(Wt,e),Object(l.createElement)(Vt,e))))}var yn=function(e){return"web"===l.Platform.OS&&jn.some((function(t){return Object(p.hasBlockSupport)(e,t)}))};function _n(e){var t=e.units,n=Object(Fe.a)(e,["units"]),r=En(t);return Object(l.createElement)(v.__experimentalUnitControl,Object(i.a)({units:r},n))}function En(e){var t=ge("spacing.units"),n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.filter((function(t){return e.includes(t.value)}))}(t||[],e);return 0!==n.length&&n}function Cn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wn(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t={};return Object.keys(p.__EXPERIMENTAL_STYLE_PROPERTY).forEach((function(n){var r=p.__EXPERIMENTAL_STYLE_PROPERTY[n].value,o=p.__EXPERIMENTAL_STYLE_PROPERTY[n].properties;Object(d.has)(e,r)&&(o?o.forEach((function(o){t[n+Object(d.capitalize)(o)]=Nn(Object(d.get)(e,[].concat(Object(pe.a)(r),[o])))})):t[n]=Nn(Object(d.get)(e,r)))})),t}(r)),e.style),e}var An=Object(b.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=Object(p.hasBlockSupport)(n,"spacing");return[Object(l.createElement)(kn,Object(i.a)({key:"typography"},t)),Object(l.createElement)(Ce,Object(i.a)({key:"border"},t)),Object(l.createElement)(kt,Object(i.a)({key:"colors"},t)),Object(l.createElement)(e,Object(i.a)({key:"edit"},t)),r&&Object(l.createElement)(Bn,{key:"spacing"},Object(l.createElement)(Sn,t))]}}),"withToolbarControls");Object(f.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return Tn(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(f.addFilter)("blocks.getSaveContent.extraProps","core/style/addSaveProps",Dn),Object(f.addFilter)("blocks.registerBlockType","core/style/addEditProps",(function(e){if(!Tn(e))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),Dn(r,e,n)},e})),Object(f.addFilter)("editor.BlockEdit","core/style/with-block-controls",An);var Rn=n(25),Ln=n(26),Mn=n(18),Fn=n(28),Vn=n(29),Hn=n(19);function zn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Hn.a)(e);if(t){var o=Object(Hn.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Vn.a)(this,n)}}function Gn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Un(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function cr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{panelTitle:Object(w.__)("Color settings")},n=t.panelTitle,r=void 0===n?Object(w.__)("Color settings"):n,o=t.colorPanelProps,c=t.contrastCheckers,i=t.panelChildren,s=t.colorDetector,b=(s=void 0===s?{}:s).targetRef,f=s.backgroundColorTargetRef,p=void 0===f?b:f,v=s.textColorTargetRef,g=void 0===v?b:v,O=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],j=h(),k=j.clientId,y=ge("color.palette")||sr,_=Object(m.useSelect)((function(e){return{attributes:(0,e("core/block-editor").getBlockAttributes)(k)}}),[k]),E=_.attributes,C=Object(m.useDispatch)("core/block-editor"),S=C.updateBlockAttributes,B=Object(l.useCallback)((function(e){return S(k,e)}),[S,k]),I=Object(l.useMemo)((function(){return Zn()((function(e,t,n,r,o,c){return function(i){var s,b=i.children,f=i.className,p=void 0===f?"":f,m=i.style,v=void 0===m?{}:m,g={};r?g=Object(a.a)({},t,o):c&&(g=Object(a.a)({},t,c));var O={className:u()(p,(s={},Object(a.a)(s,"has-".concat(Object(d.kebabCase)(r),"-").concat(Object(d.kebabCase)(t)),r),Object(a.a)(s,n||"has-".concat(Object(d.kebabCase)(e)),r||c),s)),style:ar(ar({},g),v)};return Object(d.isFunction)(b)?b(O):l.Children.map(b,(function(e){return Object(l.cloneElement)(e,{className:u()(e.props.className,O.className),style:ar(ar({},O.style),e.props.style||{})})}))}}),{maxSize:e.length})}),[e.length]),x=Object(l.useMemo)((function(){return Zn()((function(e,t){return function(n){var r=t.find((function(e){return e.color===n}));B(Object(a.a)({},r?Object(d.camelCase)("custom ".concat(e)):e,void 0)),B(Object(a.a)({},r?e:Object(d.camelCase)("custom ".concat(e)),r?r.slug:n))}}),{maxSize:e.length})}),[B,e.length]),P=Object(l.useState)(),T=Object(Me.a)(P,2),N=T[0],D=T[1],A=Object(l.useState)(),R=Object(Me.a)(A,2),L=R[0],M=R[1];return Object(l.useEffect)((function(){if(c){var e,t=!1,n=!1,r=or(Object(d.castArray)(c));try{for(r.s();!(e=r.n()).done;){var o=e.value,i=o.backgroundColor,a=o.textColor;if(t||(t=!0===i),n||(n=!0===a),t&&n)break}}catch(e){r.e(e)}finally{r.f()}if(n&&M(lr(g.current).color),t){for(var l=p.current,s=lr(l).backgroundColor;"rgba(0, 0, 0, 0)"===s&&l.parentNode&&l.parentNode.nodeType===l.parentNode.ELEMENT_NODE;)s=lr(l=l.parentNode).backgroundColor;D(s)}}}),[e.reduce((function(e,t){return"".concat(e," | ").concat(E[t.name]," | ").concat(E[Object(d.camelCase)("custom ".concat(t.name))])}),"")].concat(Object(pe.a)(O))),Object(l.useMemo)((function(){var t={},n=e.reduce((function(e,n){"string"==typeof n&&(n={name:n});var r=ar(ar({},n),{},{color:E[n.name]}),o=r.name,c=r.property,i=void 0===c?o:c,a=r.className,l=r.panelLabel,s=void 0===l?n.label||ur[o]||Object(d.startCase)(o):l,u=r.componentName,b=void 0===u?Object(d.startCase)(o).replace(/\s/g,""):u,f=r.color,p=void 0===f?n.color:f,m=r.colors,v=void 0===m?y:m,g=E[Object(d.camelCase)("custom ".concat(o))],O=g?void 0:v.find((function(e){return e.slug===p}));return e[b]=I(o,i,a,p,O&&O.color,g),e[b].displayName=b,e[b].color=g||O&&O.color,e[b].slug=p,e[b].setColor=x(o,v),t[b]={value:O?O.color:E[Object(d.camelCase)("custom ".concat(o))],onChange:e[b].setColor,label:s,colors:v},v||delete t[b].colors,e}),{}),a={title:r,initialOpen:!1,colorSettings:t,colorPanelProps:o,contrastCheckers:c,detectedBackgroundColor:N,detectedColor:L,panelChildren:i};return ar(ar({},n),{},{ColorPanel:Object(l.createElement)(rr,a),InspectorControlsColorPanel:Object(l.createElement)(dr,a)})}),[E,B,L,N].concat(Object(pe.a)(O)))}function fr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pr(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";return e=(e=(e=Object(d.deburr)(e)).replace(/^\//,"")).toLowerCase()}var Nr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Object(d.words)(Tr(e))},Dr=function(e,t){return Object(d.differenceWith)(e,Nr(t),(function(e,t){return t.includes(e)}))},Ar=function(e,t,n,r){return 0===Nr(r).length?e:Rr(e,r,{getCategory:function(e){var n;return null===(n=Object(d.find)(t,{slug:e.category}))||void 0===n?void 0:n.title},getCollection:function(e){var t;return null===(t=n[e.name.split("/")[0]])||void 0===t?void 0:t.title}})},Rr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Nr(t);if(0===r.length)return e;var o=e.map((function(e){return[e,Lr(e,t,n)]})).filter((function(e){return Object(Me.a)(e,2)[1]>0}));return o.sort((function(e,t){var n=Object(Me.a)(e,2)[1];return Object(Me.a)(t,2)[1]-n})),o.map((function(e){return Object(Me.a)(e,1)[0]}))};function Lr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.getName,o=void 0===r?wr:r,c=n.getTitle,i=void 0===c?Sr:c,a=n.getDescription,l=void 0===a?Br:a,s=n.getKeywords,u=void 0===s?Ir:s,b=n.getCategory,f=void 0===b?xr:b,p=n.getCollection,m=void 0===p?Pr:p,v=o(e),g=i(e),O=l(e),h=u(e),j=f(e),k=m(e),y=Tr(t),_=Tr(g),E=0;if(y===_)E+=30;else if(_.startsWith(y))E+=20;else{var C=[v,g,O].concat(Object(pe.a)(h),[j,k]).join(" "),w=Object(d.words)(y),S=Dr(w,C);0===S.length&&(E+=10)}return 0!==E&&v.startsWith("core/")&&E++,E}var Mr=function(e,t){var n=Object(m.useSelect)((function(t){var n=t("core/block-editor").getInserterItems,r=t(p.store),o=r.getCategories,c=r.getCollections;return{categories:o(),collections:c(),items:n(e)}}),[e]),r=n.categories,o=n.collections;return[n.items,r,o,Object(l.useCallback)((function(e){var n=e.name,r=e.initialAttributes,o=e.innerBlocks,c=Object(p.createBlock)(n,r,Object(p.createBlocksFromInnerBlocksTemplate)(o));t(c)}),[t])]},Fr=n(215);function Vr(e){var t,n=e.icon,r=e.showColors,o=void 0!==r&&r,c=e.className;"block-default"===(null===(t=n)||void 0===t?void 0:t.src)&&(n={src:Fr.a});var i=Object(l.createElement)(v.Icon,{icon:n&&n.src?n.src:n}),a=o?{backgroundColor:n&&n.background,color:n&&n.foreground}:{};return Object(l.createElement)("span",{style:a,className:u()("block-editor-block-icon",c,{"has-colors":o})},i)}var Hr={name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems:function(e){var t=Object(m.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getBlockName,o=t.getBlockInsertionPoint,c=n();return{selectedBlockName:c?r(c):null,rootClientId:o().rootClientId}}),[]),n=t.rootClientId,r=t.selectedBlockName,o=Mr(n,d.noop),c=Object(Me.a)(o,3),i=c[0],a=c[1],s=c[2],u=Object(l.useMemo)((function(){return(e.trim()?Ar(i,a,s,e):Object(d.orderBy)(i,["frecency"],["desc"])).filter((function(e){return e.name!==r})).slice(0,9)}),[e,r,i,a,s]);return[Object(l.useMemo)((function(){return u.map((function(e){var t=e.title,n=e.icon,r=e.isDisabled;return{key:"block-".concat(e.id),value:e,label:Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Vr,{key:"icon",icon:n,showColors:!0}),t),isDisabled:r}}))}),[u])]},allowContext:function(e,t){return!(/\S/.test(e)||/\S/.test(t))},getOptionCompletion:function(e){var t=e.name,n=e.initialAttributes,r=e.innerBlocks;return{action:"replace",value:Object(p.createBlock)(t,n,Object(p.createBlocksFromInnerBlocksTemplate)(r))}}},zr=[];var Gr=function(e){var t=h().name,n=e.completers,r=void 0===n?zr:n;return r=Object(l.useMemo)((function(){var e=r;return t===Object(p.getDefaultBlockName)()&&(e=e.concat([Hr])),Object(f.hasFilter)("editor.Autocomplete.completers")&&(e===r&&(e=e.map(d.clone)),e=Object(f.applyFilters)("editor.Autocomplete.completers",e,t)),e}),[r,t]),Object(l.createElement)(v.Autocomplete,Object(i.a)({},e,{completers:r}))},Ur=Object(l.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(S.Path,{d:"M4.2 9h1.5V5.8H9V4.2H4.2V9zm14 9.2H15v1.5h4.8V15h-1.5v3.2zM15 4.2v1.5h3.2V9h1.5V4.2H15zM5.8 15H4.2v4.8H9v-1.5H5.8V15z"}));var Wr=function(e){var t=e.isActive,n=e.label,r=void 0===n?Object(w.__)("Toggle full height"):n,o=e.onToggle,c=e.isDisabled;return Object(l.createElement)(v.ToolbarGroup,null,Object(l.createElement)(v.ToolbarButton,{isActive:t,icon:Ur,label:r,onClick:function(){return o(!t)},disabled:c}))};var Kr=function(e){var t=e.label,n=void 0===t?Object(w.__)("Change matrix alignment"):t,r=e.onChange,o=void 0===r?d.noop:r,c=e.value,i=void 0===c?"center":c,a=e.isDisabled,s=Object(l.createElement)(v.__experimentalAlignmentMatrixControl.Icon,{value:i}),u="block-editor-block-alignment-matrix-toolbar",b="".concat(u,"__popover");return Object(l.createElement)(v.Dropdown,{position:"bottom right",className:u,popoverProps:{className:b,isAlternate:!0},renderToggle:function(e){var t=e.onToggle,r=e.isOpen;return Object(l.createElement)(v.ToolbarGroup,null,Object(l.createElement)(v.ToolbarButton,{onClick:t,"aria-haspopup":"true","aria-expanded":r,onKeyDown:function(e){r||e.keyCode!==Ht.DOWN||(e.preventDefault(),e.stopPropagation(),t())},label:n,icon:s,showTooltip:!0,disabled:a}))},renderContent:function(){return Object(l.createElement)(v.__experimentalAlignmentMatrixControl,{hasFocusBorder:!1,onChange:o,value:i})}})},qr={insertUsage:{}},$r={alignWide:!1,colors:[{name:Object(w.__)("Black"),slug:"black",color:"#000000"},{name:Object(w.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Object(w.__)("White"),slug:"white",color:"#ffffff"},{name:Object(w.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Object(w.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Object(w.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Object(w.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Object(w.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Object(w.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Object(w.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Object(w.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Object(w.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:Object(w._x)("Small","font size name"),size:13,slug:"small"},{name:Object(w._x)("Normal","font size name"),size:16,slug:"normal"},{name:Object(w._x)("Medium","font size name"),size:20,slug:"medium"},{name:Object(w._x)("Large","font size name"),size:36,slug:"large"},{name:Object(w._x)("Huge","font size name"),size:42,slug:"huge"}],imageSizes:[{slug:"thumbnail",name:Object(w.__)("Thumbnail")},{slug:"medium",name:Object(w.__)("Medium")},{slug:"large",name:Object(w.__)("Large")},{slug:"full",name:Object(w.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,availableLegacyWidgets:{},__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__experimentalSpotlightEntityBlocks:[],gradients:[{name:Object(w.__)("Vivid cyan blue to vivid purple"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:Object(w.__)("Light green cyan to vivid green cyan"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:Object(w.__)("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:Object(w.__)("Luminous vivid orange to vivid red"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:Object(w.__)("Very light gray to cyan bluish gray"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:Object(w.__)("Cool to warm spectrum"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:Object(w.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:Object(w.__)("Blush bordeaux"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:Object(w.__)("Luminous dusk"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:Object(w.__)("Pale ocean"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:Object(w.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:Object(w.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}]};function Yr(e,t,n){return[].concat(Object(pe.a)(e.slice(0,n)),Object(pe.a)(Object(d.castArray)(t)),Object(pe.a)(e.slice(n)))}function Xr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=Object(pe.a)(e);return o.splice(t,r),Yr(o,e.slice(t,t+r),n)}function Qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zr(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"",n=Object(a.a)({},t,[]);return e.forEach((function(e){var r=e.clientId,o=e.innerBlocks;n[t].push(r),Object.assign(n,Jr(o,r))})),n}function eo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce((function(e,n){return Object.assign(e,Object(a.a)({},n.clientId,t),eo(n.innerBlocks,n.clientId))}),{})}function to(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.identity,n={},r=Object(pe.a)(e);r.length;){var o=r.shift(),c=o.innerBlocks,i=Object(Fe.a)(o,["innerBlocks"]);r.push.apply(r,Object(pe.a)(c)),n[i.clientId]=t(i)}return n}function no(e){return to(e,(function(e){return Object(d.omit)(e,"attributes")}))}function ro(e){return to(e,(function(e){return e.attributes}))}function oo(e,t){return e===t?Zr({},e):t}function co(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&Object(d.isEqual)(e.clientIds,t.clientIds)&&(n=e.attributes,r=t.attributes,Object(d.isEqual)(Object(d.keys)(n),Object(d.keys)(r)));var n,r}var io=function(e){return e.reduce((function(e,t){return e[t]={},e}),{})};var ao=Object(d.flow)(m.combineReducers,(function(e){return function(t,n){if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){var r=n.id,o=n.updatedId;if(r===o)return t;(t=Zr({},t)).attributes=Object(d.mapValues)(t.attributes,(function(e,n){return"core/block"===t.byClientId[n].name&&e.ref===r?Zr(Zr({},e),{},{ref:o}):e}))}return e(t,n)}}),(function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=e(t,n);if(r===t)return t;r.cache=t.cache?t.cache:{};var o=function(e){return e.reduce((function(e,n){var r=n;do{e.push(r),r=t.parents[r]}while(r&&!t.controlledInnerBlocks[r]);return e}),[])};switch(n.type){case"RESET_BLOCKS":r.cache=Object(d.mapValues)(to(n.blocks),(function(){return{}}));break;case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":var c=Object(d.keys)(to(n.blocks));n.rootClientId&&!t.controlledInnerBlocks[n.rootClientId]&&c.push(n.rootClientId),r.cache=Zr(Zr({},r.cache),io(o(c)));break;case"UPDATE_BLOCK":r.cache=Zr(Zr({},r.cache),io(o([n.clientId])));break;case"UPDATE_BLOCK_ATTRIBUTES":r.cache=Zr(Zr({},r.cache),io(o(n.clientIds)));break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var i=io(o(n.replacedClientIds));r.cache=Zr(Zr(Zr({},Object(d.omit)(r.cache,n.replacedClientIds)),Object(d.omit)(i,n.replacedClientIds)),io(Object(d.keys)(to(n.blocks))));break;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":r.cache=Zr(Zr({},Object(d.omit)(r.cache,n.removedClientIds)),io(Object(d.difference)(o(n.clientIds),n.clientIds)));break;case"MOVE_BLOCKS_TO_POSITION":var a=Object(pe.a)(n.clientIds);n.fromRootClientId&&a.push(n.fromRootClientId),n.toRootClientId&&a.push(n.toRootClientId),r.cache=Zr(Zr({},r.cache),io(o(a)));break;case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":var l=[];n.rootClientId&&l.push(n.rootClientId),r.cache=Zr(Zr({},r.cache),io(o(l)));break;case"SAVE_REUSABLE_BLOCK_SUCCESS":var s=Object(d.keys)(Object(d.omitBy)(r.attributes,(function(e,t){return"core/block"!==r.byClientId[t].name||e.ref!==n.updatedId})));r.cache=Zr(Zr({},r.cache),io(o(s)))}return r}}),(function(e){return function(t,n){var r=function(e){for(var r=e,o=0;o1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(d.reduce)(t[n],(function(n,o){return r[o]?n:[].concat(Object(pe.a)(n),[o],Object(pe.a)(e(t,o)))}),[])}(t.order,"",t.controlledInnerBlocks),o=Object.keys(Object(d.pickBy)(t.controlledInnerBlocks));return Zr(Zr({},t),{},{byClientId:Zr(Zr({},Object(d.omit)(t.byClientId,r)),no(n.blocks)),attributes:Zr(Zr({},Object(d.omit)(t.attributes,r)),ro(n.blocks)),order:Zr(Zr({},Object(d.omit)(t.order,r)),Object(d.omit)(Jr(n.blocks),o)),parents:Zr(Zr({},Object(d.omit)(t.parents,r)),eo(n.blocks)),cache:Zr(Zr({},Object(d.omit)(t.cache,r)),Object(d.omit)(Object(d.mapValues)(to(n.blocks),(function(){return{}})),o))})}return e(t,n)}}),(function(e){var t,n=!1;return function(r,o){var c=e(r,o),i="MARK_LAST_CHANGE_AS_PERSISTENT"===o.type||n;if(r===c&&!i){var a;n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type;var l=null===(a=null==r?void 0:r.isPersistentChange)||void 0===a||a;return r.isPersistentChange===l?r:Zr(Zr({},c),{},{isPersistentChange:l})}return c=Zr(Zr({},c),{},{isPersistentChange:i?!n:!co(o,t)}),t=o,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type,c}}),(function(e){var t=new Set(["RECEIVE_BLOCKS"]);return function(n,r){var o=e(n,r);return o!==n&&(o.isIgnoredChange=t.has(r.type)),o}}))({byClientId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return no(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return Zr(Zr({},e),no(t.blocks));case"UPDATE_BLOCK":if(!e[t.clientId])return e;var n=Object(d.omit)(t.updates,"attributes");return Object(d.isEmpty)(n)?e:Zr(Zr({},e),{},Object(a.a)({},t.clientId,Zr(Zr({},e[t.clientId]),n)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?Zr(Zr({},Object(d.omit)(e,t.replacedClientIds)),no(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(d.omit)(e,t.removedClientIds)}return e},attributes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return ro(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return Zr(Zr({},e),ro(t.blocks));case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?Zr(Zr({},e),{},Object(a.a)({},t.clientId,Zr(Zr({},e[t.clientId]),t.updates.attributes))):e;case"UPDATE_BLOCK_ATTRIBUTES":if(t.clientIds.every((function(t){return!e[t]})))return e;var n=t.clientIds.reduce((function(n,r){return Zr(Zr({},n),{},Object(a.a)({},r,Object(d.reduce)(t.attributes,(function(t,n,o){return n!==t[o]&&((t=oo(e[r],t))[o]=n),t}),e[r])))}),{});return t.clientIds.every((function(t){return n[t]===e[t]}))?e:Zr(Zr({},e),n);case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?Zr(Zr({},Object(d.omit)(e,t.replacedClientIds)),ro(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(d.omit)(e,t.removedClientIds)}return e},order:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return Jr(t.blocks);case"RECEIVE_BLOCKS":return Zr(Zr({},e),Object(d.omit)(Jr(t.blocks),""));case"INSERT_BLOCKS":var n=t.rootClientId,r=void 0===n?"":n,o=e[r]||[],c=Jr(t.blocks,r),i=t.index,l=void 0===i?o.length:i;return Zr(Zr(Zr({},e),c),{},Object(a.a)({},r,Yr(o,c[r],l)));case"MOVE_BLOCKS_TO_POSITION":var s,u=t.fromRootClientId,b=void 0===u?"":u,f=t.toRootClientId,p=void 0===f?"":f,m=t.clientIds,v=t.index,g=void 0===v?e[p].length:v;if(b===p){var O=e[p],h=O.indexOf(m[0]);return Zr(Zr({},e),{},Object(a.a)({},p,Xr(e[p],h,g,m.length)))}return Zr(Zr({},e),{},(s={},Object(a.a)(s,b,d.without.apply(void 0,[e[b]].concat(Object(pe.a)(m)))),Object(a.a)(s,p,Yr(e[p],m,g)),s));case"MOVE_BLOCKS_UP":var j=t.clientIds,k=t.rootClientId,y=void 0===k?"":k,_=Object(d.first)(j),E=e[y];if(!E.length||_===Object(d.first)(E))return e;var C=E.indexOf(_);return Zr(Zr({},e),{},Object(a.a)({},y,Xr(E,C,C-1,j.length)));case"MOVE_BLOCKS_DOWN":var w=t.clientIds,S=t.rootClientId,B=void 0===S?"":S,I=Object(d.first)(w),x=Object(d.last)(w),P=e[B];if(!P.length||x===Object(d.last)(P))return e;var T=P.indexOf(I);return Zr(Zr({},e),{},Object(a.a)({},B,Xr(P,T,T+1,w.length)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var N=t.clientIds;if(!t.blocks)return e;var D=Jr(t.blocks);return Object(d.flow)([function(e){return Object(d.omit)(e,t.replacedClientIds)},function(e){return Zr(Zr({},e),Object(d.omit)(D,""))},function(e){return Object(d.mapValues)(e,(function(e){return Object(d.reduce)(e,(function(e,t){return t===N[0]?[].concat(Object(pe.a)(e),Object(pe.a)(D[""])):(-1===N.indexOf(t)&&e.push(t),e)}),[])}))}])(e);case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(d.flow)([function(e){return Object(d.omit)(e,t.removedClientIds)},function(e){return Object(d.mapValues)(e,(function(e){return d.without.apply(void 0,[e].concat(Object(pe.a)(t.removedClientIds)))}))}])(e)}return e},parents:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return eo(t.blocks);case"RECEIVE_BLOCKS":return Zr(Zr({},e),eo(t.blocks));case"INSERT_BLOCKS":return Zr(Zr({},e),eo(t.blocks,t.rootClientId||""));case"MOVE_BLOCKS_TO_POSITION":return Zr(Zr({},e),t.clientIds.reduce((function(e,n){return e[n]=t.toRootClientId||"",e}),{}));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Zr(Zr({},Object(d.omit)(e,t.replacedClientIds)),eo(t.blocks,e[t.clientIds[0]]));case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(d.omit)(e,t.removedClientIds)}return e},controlledInnerBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.clientId,o=t.hasControlledInnerBlocks;return"SET_HAS_CONTROLLED_INNER_BLOCKS"===n?Zr(Zr({},e),{},Object(a.a)({},r,o)):e}});function lo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection&&t.blocks.length?{clientId:t.blocks[0].clientId}:e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.clientId)?{}:e;case"REPLACE_BLOCKS":if(-1===t.clientIds.indexOf(e.clientId))return e;var n=t.indexToSelect||t.blocks.length-1,r=t.blocks[n];if(!r)return{};if(r.clientId===e.clientId)return e;var o={clientId:r.clientId};return"number"==typeof t.initialPosition&&(o.initialPosition=t.initialPosition),o}return e}function so(e,t,n){switch(t.type){case"CLEAR_SELECTED_BLOCK":case"SELECT_BLOCK":case"SELECTION_CHANGE":case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":case"REMOVE_BLOCKS":case"REPLACE_BLOCKS":return n}return e}var uo=Object(m.combineReducers)({blocks:ao,isTyping:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},draggedBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e},isCaretWithinFormattedText:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return e},selection:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;switch(r.type){case"SELECTION_CHANGE":return{selectionStart:{clientId:r.clientId,attributeKey:r.attributeKey,offset:r.startOffset},selectionEnd:{clientId:r.clientId,attributeKey:r.attributeKey,offset:r.endOffset}};case"RESET_SELECTION":var o=r.selectionStart,c=r.selectionEnd;return{selectionStart:o,selectionEnd:c};case"MULTI_SELECT":var i=r.start,a=r.end;return{selectionStart:{clientId:i},selectionEnd:{clientId:a}};case"RESET_BLOCKS":var l=null==n||null===(e=n.selectionStart)||void 0===e?void 0:e.clientId,s=null==n||null===(t=n.selectionEnd)||void 0===t?void 0:t.clientId;if(!l&&!s)return n;if(!r.blocks.some((function(e){return e.clientId===l})))return{selectionStart:{},selectionEnd:{}};if(!r.blocks.some((function(e){return e.clientId===s})))return Zr(Zr({},n),{},{selectionEnd:n.selectionStart})}return{selectionStart:lo(n.selectionStart,r),selectionEnd:lo(n.selectionEnd,r)}},isMultiSelecting:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TOGGLE_SELECTION":return t.isSelectionEnabled}return e},initialPosition:function(e,t){return"REPLACE_BLOCKS"===t.type&&"number"==typeof t.initialPosition||"SELECT_BLOCK"===t.type?t.initialPosition:"REMOVE_BLOCKS"===t.type||"START_TYPING"===t.type?e:void 0},blocksMode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("TOGGLE_BLOCK_MODE"===t.type){var n=t.clientId;return Zr(Zr({},e),{},Object(a.a)({},n,e[n]&&"html"===e[n]?"visual":"html"))}return e},blockListSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object(d.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":var n=t.clientId;return t.settings?Object(d.isEqual)(e[n],t.settings)?e:Zr(Zr({},e),{},Object(a.a)({},n,t.settings)):e.hasOwnProperty(n)?Object(d.omit)(e,n):e}return e},insertionPoint:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_INSERTION_POINT":case"SHOW_INSERTION_POINT":var n=t.rootClientId,r=t.index;return{rootClientId:n,index:r}}return so(e,t,null)},insertionPointVisibility:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SHOW_INSERTION_POINT":return!0;case"HIDE_INSERTION_POINT":return!1}return so(e,t,!1)},template:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE_VALIDITY":return Zr(Zr({},e),{},{isValid:t.isValid})}return e},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$r,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return Zr(Zr({},e),t.settings)}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce((function(e,n){var r=n.name,o={name:n.name};return Object(p.isReusableBlock)(n)&&(o.ref=n.attributes.ref,r+="/"+n.attributes.ref),Zr(Zr({},e),{},{insertUsage:Zr(Zr({},e.insertUsage),{},Object(a.a)({},r,{time:t.time,count:e.insertUsage[r]?e.insertUsage[r].count+1:1,insert:o}))})}),e)}return e},lastBlockAttributesChange:function(e,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return Object(a.a)({},t.clientId,t.updates.attributes);case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce((function(e,n){return Zr(Zr({},e),{},Object(a.a)({},n,t.attributes))}),{})}return null},isNavigationMode:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"INSERT_BLOCKS"!==t.type&&("SET_NAVIGATION_MODE"===t.type?t.isNavigationMode:e)},hasBlockMovingClientId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return"SET_BLOCK_MOVING_MODE"===t.type?t.hasBlockMovingClientId:"SET_NAVIGATION_MODE"===t.type?null:e},automaticChangeStatus:function(e,t){switch(t.type){case"MARK_AUTOMATIC_CHANGE":return"pending";case"MARK_AUTOMATIC_CHANGE_FINAL":return"pending"===e?"final":void 0;case"SELECTION_CHANGE":return"final"!==e?e:void 0;case"START_TYPING":case"STOP_TYPING":return e}},highlightedBlock:function(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":var n=t.clientId;return t.isHighlighted?n:e===n?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e}}),bo=n(42),fo=n(41);function po(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return mo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mo(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function mo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"";return Object(d.map)(ic(e,t),(function(t){return wo(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]})),Bo=function e(t,n){return Object(d.flatMap)(n,(function(n){var r=ic(t,n);return[].concat(Object(pe.a)(r),Object(pe.a)(e(t,r)))}))},Io=Object(fo.a)((function(e){var t=ic(e);return[].concat(Object(pe.a)(t),Object(pe.a)(Bo(e,t)))}),(function(e){return[e.blocks.order]})),xo=Object(fo.a)((function(e,t){var n=Io(e);return t?Object(d.reduce)(n,(function(n,r){return e.blocks.byClientId[r].name===t?n+1:n}),0):n.length}),(function(e){return[e.blocks.order,e.blocks.byClientId]})),Po=Object(fo.a)((function(e,t){return Object(d.map)(Object(d.castArray)(t),(function(t){return _o(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]}));function To(e,t){return ic(e,t).length}function No(e){return e.selection.selectionStart}function Do(e){return e.selection.selectionEnd}function Ao(e){return e.selection.selectionStart.clientId}function Ro(e){return e.selection.selectionEnd.clientId}function Lo(e){var t=Qo(e).length;return t||(e.selection.selectionStart.clientId?1:0)}function Mo(e){var t=e.selection,n=t.selectionStart,r=t.selectionEnd;return!!n.clientId&&n.clientId===r.clientId}function Fo(e){var t=e.selection,n=t.selectionStart,r=t.selectionEnd,o=n.clientId;return o&&o===r.clientId?o:null}function Vo(e){var t=Fo(e);return t?_o(e,t):null}function Ho(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}var zo=Object(fo.a)((function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[],o=t;e.blocks.parents[o];)o=e.blocks.parents[o],r.push(o);return n?r:r.reverse()}),(function(e){return[e.blocks.parents]})),Go=Object(fo.a)((function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=zo(e,t,r);return Object(d.map)(Object(d.filter)(Object(d.map)(o,(function(t){return{id:t,name:jo(e,t)}})),(function(e){var t=e.name;return Array.isArray(n)?n.includes(t):t===n})),(function(e){return e.id}))}),(function(e){return[e.blocks.parents]}));function Uo(e,t){var n,r=t;do{n=r,r=e.blocks.parents[r]}while(r);return n}function Wo(e,t){for(var n,r=Fo(e),o=[].concat(Object(pe.a)(zo(e,t)),[t]),c=[].concat(Object(pe.a)(zo(e,r)),[r]),i=Math.min(o.length,c.length),a=0;a2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=Fo(e)),void 0===t&&(t=n<0?Jo(e):ec(e)),!t)return null;var r=Ho(e,t);if(null===r)return null;var o=e.blocks.order,c=o[r],i=c.indexOf(t),a=i+1*n;return a<0||a===c.length?null:c[a]}function qo(e,t){return Ko(e,t,-1)}function $o(e,t){return Ko(e,t,1)}function Yo(e){return e.initialPosition}var Xo=Object(fo.a)((function(e){var t=e.selection,n=t.selectionStart,r=t.selectionEnd;if(void 0===n.clientId||void 0===r.clientId)return ho;if(n.clientId===r.clientId)return[n.clientId];var o=Ho(e,n.clientId);if(null===o)return ho;var c=ic(e,o),i=c.indexOf(n.clientId),a=c.indexOf(r.clientId);return i>a?c.slice(a,i+1):c.slice(i,a+1)}),(function(e){return[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]}));function Qo(e){var t=e.selection,n=t.selectionStart,r=t.selectionEnd;return n.clientId===r.clientId?ho:Xo(e)}var Zo=Object(fo.a)((function(e){var t=Qo(e);return t.length?t.map((function(t){return _o(e,t)})):ho}),(function(e){return[].concat(Object(pe.a)(Xo.getDependants(e)),[e.blocks.byClientId,e.blocks.order,e.blocks.attributes])}));function Jo(e){return Object(d.first)(Qo(e))||null}function ec(e){return Object(d.last)(Qo(e))||null}function tc(e,t){return Jo(e)===t}function nc(e,t){return-1!==Qo(e).indexOf(t)}var rc=Object(fo.a)((function(e,t){for(var n=t,r=!1;n&&!r;)r=nc(e,n=Ho(e,n));return r}),(function(e){return[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]}));function oc(e){var t=e.selection,n=t.selectionStart,r=t.selectionEnd;return n.clientId===r.clientId?null:n.clientId||null}function cc(e){var t=e.selection,n=t.selectionStart,r=t.selectionEnd;return n.clientId===r.clientId?null:r.clientId||null}function ic(e,t){return e.blocks.order[t||""]||ho}function ac(e,t,n){return ic(e,n).indexOf(t)}function lc(e,t){var n=e.selection,r=n.selectionStart,o=n.selectionEnd;return r.clientId===o.clientId&&r.clientId===t}function sc(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(d.some)(ic(e,t),(function(t){return lc(e,t)||nc(e,t)||n&&sc(e,t,n)}))}function uc(e,t){if(!t)return!1;var n=Qo(e),r=n.indexOf(t);return r>-1&&r2&&void 0!==arguments[2]?arguments[2]:null,o=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object(d.isBoolean)(e)?e:Object(d.isArray)(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n};if(t&&"object"===Object(bo.a)(t)?t=(n=t).name:n=Object(p.getBlockType)(t),!n)return!1;var c=Fc(e),i=c.allowedBlockTypes,a=o(i,t,!0);if(!a)return!1;var l=!!Cc(e,r);if(l)return!1;var s=Mc(e,r);if(r&&void 0===s)return!1;var u=null==s?void 0:s.allowedBlocks,b=o(u,t),f=n.parent,m=jo(e,r),v=o(f,m);return null!==b&&null!==v?b||v:null!==b?b:null===v||v},Sc=Object(fo.a)(wc,(function(e,t,n){return[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]}));function Bc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((function(t){return Sc(e,jo(e,t),n)}))}function Ic(e,t){var n,r;return null!==(n=null===(r=e.preferences.insertUsage)||void 0===r?void 0:r[t])&&void 0!==n?n:null}var xc=function(e,t,n){return!!Object(p.hasBlockSupport)(t,"inserter",!0)&&wc(e,t.name,n)},Pc=function(e){return function(t){return go(go({},e),{},{id:"".concat(e.id,"-").concat(t.name),icon:t.icon||e.icon,title:t.title||e.title,description:t.description||e.description,category:t.category||e.category,example:t.hasOwnProperty("example")?t.example:e.example,initialAttributes:go(go({},e.initialAttributes),t.attributes),innerBlocks:t.innerBlocks,keywords:t.keywords||e.keywords})}},Tc=function(e,t){if(!e)return t;var n=Date.now()-e;switch(!0){case n<36e5:return 4*t;case n<864e5:return 2*t;case n<6048e5:return t/2;default:return t/4}},Nc=function(e,t){var n=t.buildScope,r=void 0===n?"inserter":n;return function(t){var n=t.name,o=!1;Object(p.hasBlockSupport)(t.name,"multiple",!0)||(o=Object(d.some)(Po(e,Io(e)),{name:t.name}));var c=Ic(e,n)||{},i=c.time,a=c.count,l=void 0===a?0:a,s={id:n,name:t.name,title:t.title,icon:t.icon,isDisabled:o,frecency:Tc(i,l)};if("transform"===r)return s;var u=t.variations.filter((function(e){var t=e.scope;return!t||t.includes("inserter")}));return go(go({},s),{},{initialAttributes:{},description:t.description,category:t.category,keywords:t.keywords,variations:u,example:t.example,utility:1})}},Dc=Object(fo.a)((function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=Nc(e,{buildScope:"inserter"}),o=function(t){var n,r="core/block/".concat(t.id),o=zc(e,t.id);1===o.length&&(n=Object(p.getBlockType)(o[0].name));var c=Ic(e,r)||{},i=c.time,a=c.count,l=Tc(i,void 0===a?0:a);return{id:r,name:"core/block",initialAttributes:{ref:t.id},title:t.title.raw,icon:n?n.icon:Oo,category:"reusable",keywords:[],isDisabled:!1,utility:1,frecency:l}},c=Object(p.getBlockTypes)().filter((function(t){return xc(e,t,n)})).map(r),i=wc(e,"core/block",n)?Kc(e).map(o):[],a=c.filter((function(e){var t=e.variations;return!(void 0===t?[]:t).some((function(e){return e.isDefault}))})),l=[],s=po(c);try{for(s.s();!(t=s.n()).done;){var u=t.value,d=u.variations,b=void 0===d?[]:d;if(b.length){var f=Pc(u);l.push.apply(l,Object(pe.a)(b.map(f)))}}}catch(e){s.e(e)}finally{s.f()}return[].concat(Object(pe.a)(a),l,Object(pe.a)(i))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Kc(e),Object(p.getBlockTypes)()]})),Ac=Object(fo.a)((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=Nc(e,{buildScope:"transform"}),o=Object(p.getBlockTypes)().filter((function(t){return xc(e,t,n)})).map(r),c=Object(d.mapKeys)(o,(function(e){return e.name})),i=Object(p.getPossibleBlockTransformations)(t).reduce((function(e,t){return c[null==t?void 0:t.name]&&e.push(c[t.name]),e}),[]),a=Object(d.orderBy)(i,(function(e){return c[e.name].frecency}),"desc");return a}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Object(p.getBlockTypes)()]})),Rc=Object(fo.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object(d.some)(Object(p.getBlockTypes)(),(function(n){return xc(e,n,t)}));if(n)return!0;var r=wc(e,"core/block",t)&&Kc(e).length>0;return r}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Kc(e),Object(p.getBlockTypes)()]})),Lc=Object(fo.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return Object(d.filter)(Object(p.getBlockTypes)(),(function(n){return xc(e,n,t)}))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Object(p.getBlockTypes)()]}));function Mc(e,t){return e.blockListSettings[t]}function Fc(e){return e.settings}function Vc(e){return e.blocks.isPersistentChange}var Hc=Object(fo.a)((function(e,t){return Object(d.filter)(e.blockListSettings,(function(e,n){return t.includes(n)}))}),(function(e){return[e.blockListSettings]})),zc=Object(fo.a)((function(e,t){var n=Object(d.find)(Kc(e),(function(e){return e.id===t}));return n?Object(p.parse)("string"==typeof n.content.raw?n.content.raw:n.content):null}),(function(e){return[Kc(e)]})),Gc=Object(fo.a)((function(e,t){var n,r=Object(d.find)(Kc(e),(function(e){return e.id===t}));return r?null===(n=r.title)||void 0===n?void 0:n.raw:null}),(function(e){return[Kc(e)]}));function Uc(e){return e.blocks.isIgnoredChange}function Wc(e){return e.lastBlockAttributesChange}function Kc(e){var t,n;return null!==(t=null==e||null===(n=e.settings)||void 0===n?void 0:n.__experimentalReusableBlocks)&&void 0!==t?t:ho}function qc(e){return e.isNavigationMode}function $c(e){return e.hasBlockMovingClientId}function Yc(e){return!!e.automaticChangeStatus}function Xc(e,t){return e.highlightedBlock===t}function Qc(e,t){return!!e.blocks.controlledInnerBlocks[t]}var Zc=Object(fo.a)((function(e,t){if(!t.length)return null;var n=Fo(e);if(t.includes(jo(e,n)))return n;var r=Qo(e),o=Go(e,n||r[0],t);return o?Object(d.last)(o):null}),(function(e,t){return[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]})),Jc=n(16),ei=n.n(Jc),ti={SLEEP:function(e){var t=e.duration;return new Promise((function(e){setTimeout(e,t)}))},MARK_AUTOMATIC_CHANGE_FINAL_CONTROL:Object(m.createRegistryControl)((function(e){return function(){var t=window.requestIdleCallback;(void 0===t?function(e){return setTimeout(e,100)}:t)((function(){return e.dispatch("core/block-editor").__unstableMarkAutomaticChangeFinal()}))}}))};function ni(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return ri(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ri(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function ri(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:null;return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function Di(e){var t;return ei.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,m.controls.select("core/block-editor","getPreviousBlockClientId",e);case 2:if(!(t=n.sent)){n.next=7;break}return n.next=6,Ni(t,-1);case 6:return n.abrupt("return",[t]);case 7:case"end":return n.stop()}}),si)}function Ai(e){var t;return ei.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,m.controls.select("core/block-editor","getNextBlockClientId",e);case 2:if(!(t=n.sent)){n.next=7;break}return n.next=6,Ni(t);case 6:return n.abrupt("return",[t]);case 7:case"end":return n.stop()}}),ui)}function Ri(){return{type:"START_MULTI_SELECT"}}function Li(){return{type:"STOP_MULTI_SELECT"}}function Mi(e,t){var n;return ei.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,{type:"MULTI_SELECT",start:e,end:t};case 2:return r.next=4,m.controls.select("core/block-editor","getSelectedBlockCount");case 4:n=r.sent,Object(ot.speak)(Object(w.sprintf)(Object(w._n)("%s block selected.","%s blocks selected.",n),n),"assertive");case 6:case"end":return r.stop()}}),di)}function Fi(){return{type:"CLEAR_SELECTED_BLOCK"}}function Vi(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function Hi(e,t){var n,r,o=null!==(n=null==t||null===(r=t.__experimentalPreferredStyleVariations)||void 0===r?void 0:r.value)&&void 0!==n?n:{};return e.map((function(e){var t,n=e.name;if(!Object(p.hasBlockSupport)(n,"defaultStylePicker",!0))return e;if(!o[n])return e;var r=null===(t=e.attributes)||void 0===t?void 0:t.className;if(null!=r&&r.includes("is-style-"))return e;var c=e.attributes,i=void 0===c?{}:c,a=o[n];return ci(ci({},e),{},{attributes:ci(ci({},i),{},{className:"".concat(r||""," is-style-").concat(a).trim()})})}))}function zi(e,t,n,r,o){var c,i,a;return ei.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:return e=Object(d.castArray)(e),l.t0=Hi,l.t1=Object(d.castArray)(t),l.next=5,m.controls.select("core/block-editor","getSettings");case 5:return l.t2=l.sent,t=(0,l.t0)(l.t1,l.t2),l.next=9,m.controls.select("core/block-editor","getBlockRootClientId",Object(d.first)(e));case 9:c=l.sent,i=0;case 11:if(!(i1&&void 0!==i[1]?i[1]:"",n=i.length>2&&void 0!==i[2]?i[2]:"",r=i.length>3?i[3]:void 0,a.next=5,m.controls.select("core/block-editor","getTemplateLock",t);case 5:if("all"!==(o=a.sent)){a.next=8;break}return a.abrupt("return");case 8:if(c={type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:r},t!==n){a.next=13;break}return a.next=12,c;case 12:return a.abrupt("return");case 13:if("insert"!==o){a.next=15;break}return a.abrupt("return");case 15:return a.next=17,m.controls.select("core/block-editor","canInsertBlocks",e,n);case 17:if(!a.sent){a.next=21;break}return a.next=21,c;case 21:case"end":return a.stop()}}),fi)}function $i(e){var t,n,r,o=arguments;return ei.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return t=o.length>1&&void 0!==o[1]?o[1]:"",n=o.length>2&&void 0!==o[2]?o[2]:"",r=o.length>3?o[3]:void 0,c.next=5,qi([e],t,n,r);case 5:case"end":return c.stop()}}),pi)}function Yi(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return Xi([e],t,n,r)}function Xi(e,t,n){var r,o,c,i,a,l,s=arguments;return ei.a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return r=!(s.length>3&&void 0!==s[3])||s[3],o=s.length>4?s[4]:void 0,u.t0=Hi,u.t1=Object(d.castArray)(e),u.next=6,m.controls.select("core/block-editor","getSettings");case 6:u.t2=u.sent,e=(0,u.t0)(u.t1,u.t2),c=[],i=ni(e),u.prev=10,i.s();case 12:if((a=i.n()).done){u.next=20;break}return l=a.value,u.next=16,m.controls.select("core/block-editor","canInsertBlockType",l.name,n);case 16:u.sent&&c.push(l);case 18:u.next=12;break;case 20:u.next=25;break;case 22:u.prev=22,u.t3=u.catch(10),i.e(u.t3);case 25:return u.prev=25,i.f(),u.finish(25);case 28:if(!c.length){u.next=30;break}return u.abrupt("return",{type:"INSERT_BLOCKS",blocks:c,index:t,rootClientId:n,time:Date.now(),updateSelection:r,meta:o});case 30:case"end":return u.stop()}}),mi,null,[[10,22,25,28]])}function Qi(e,t){return{type:"SET_INSERTION_POINT",rootClientId:e,index:t}}function Zi(e,t){return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t}}function Ji(){return{type:"HIDE_INSERTION_POINT"}}function ea(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function ta(){var e,t,n;return ei.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,{type:"SYNCHRONIZE_TEMPLATE"};case 2:return r.next=4,m.controls.select("core/block-editor","getBlocks");case 4:return e=r.sent,r.next=7,m.controls.select("core/block-editor","getTemplate");case 7:return t=r.sent,n=Object(p.synchronizeBlocksWithTemplate)(e,t),r.next=11,Si(n);case 11:return r.abrupt("return",r.sent);case 12:case"end":return r.stop()}}),vi)}function na(e,t){var n,r,o,i,a,l,s,u,b,f,v,g,O,h,j,k,y,_,E,C,w,S,B,I,x,P,T,N,D,A,R,L,M,F;return ei.a.wrap((function(V){for(;;)switch(V.prev=V.next){case 0:return n=[e,t],V.next=3,{type:"MERGE_BLOCKS",blocks:n};case 3:return r=n[0],o=n[1],V.next=6,m.controls.select("core/block-editor","getBlock",r);case 6:if(i=V.sent,(a=Object(p.getBlockType)(i.name)).merge){V.next=12;break}return V.next=11,Ni(i.clientId);case 11:return V.abrupt("return");case 12:return V.next=14,m.controls.select("core/block-editor","getBlock",o);case 14:return l=V.sent,s=Object(p.getBlockType)(l.name),V.next=18,m.controls.select("core/block-editor","getSelectionStart");case 18:if(u=V.sent,b=u.clientId,f=u.attributeKey,v=u.offset,g=(b===r?a:s).attributes[f],O=(b===r||b===o)&&void 0!==f&&void 0!==v&&!!g,g||("number"==typeof f?window.console.error("RichText needs an identifier prop that is the block attribute key of the attribute it controls. Its type is expected to be a string, but was ".concat(Object(bo.a)(f))):window.console.error("The RichText identifier prop does not match any attributes defined by the block.")),h="†",j=Object(p.cloneBlock)(i),k=Object(p.cloneBlock)(l),O&&(_=(y=b===r?j:k).attributes[f],E=g.multiline,C=g.__unstableMultilineWrapperTags,w=g.__unstablePreserveWhiteSpace,S=Object(c.insert)(Object(c.create)({html:_,multilineTag:E,multilineWrapperTags:C,preserveWhiteSpace:w}),h,v,v),y.attributes[f]=Object(c.toHTMLString)({value:S,multilineTag:E,preserveWhiteSpace:w})),(B=i.name===l.name?[k]:Object(p.switchToBlockType)(k,i.name))&&B.length){V.next=33;break}return V.abrupt("return");case 33:if(I=a.merge(j.attributes,B[0].attributes),!O){V.next=45;break}return x=Object(d.findKey)(I,(function(e){return"string"==typeof e&&-1!==e.indexOf(h)})),P=I[x],T=a.attributes[x],N=T.multiline,D=T.__unstableMultilineWrapperTags,A=T.__unstablePreserveWhiteSpace,R=Object(c.create)({html:P,multilineTag:N,multilineWrapperTags:D,preserveWhiteSpace:A}),L=R.text.indexOf(h),M=Object(c.remove)(R,L,L+1),F=Object(c.toHTMLString)({value:M,multilineTag:N,preserveWhiteSpace:A}),I[x]=F,V.next=45,fa(i.clientId,x,L,L);case 45:return V.delegateYield(zi([i.clientId,l.clientId],[ci(ci({},i),{},{attributes:ci(ci({},i.attributes),I)})].concat(Object(pe.a)(B.slice(1)))),"t0",46);case 46:case"end":return V.stop()}}),gi)}function ra(e){var t,n,r,o,c=arguments;return ei.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(t=!(c.length>1&&void 0!==c[1])||c[1],e&&e.length){i.next=3;break}return i.abrupt("return");case 3:return e=Object(d.castArray)(e),i.next=6,m.controls.select("core/block-editor","getBlockRootClientId",e[0]);case 6:return n=i.sent,i.next=9,m.controls.select("core/block-editor","getTemplateLock",n);case 9:if(!i.sent){i.next=12;break}return i.abrupt("return");case 12:if(!t){i.next=18;break}return i.next=15,Di(e[0]);case 15:r=i.sent,i.next=21;break;case 18:return i.next=20,m.controls.select("core/block-editor","getPreviousBlockClientId",e[0]);case 20:r=i.sent;case 21:return i.next=23,{type:"REMOVE_BLOCKS",clientIds:e};case 23:return i.delegateYield(wi(),"t0",24);case 24:return o=i.t0,i.abrupt("return",[r||o]);case 26:case"end":return i.stop()}}),Oi)}function oa(e,t){return ra([e],t)}function ca(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,time:Date.now()}}function ia(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function aa(){return{type:"START_TYPING"}}function la(){return{type:"STOP_TYPING"}}function sa(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function ua(){return{type:"STOP_DRAGGING_BLOCKS"}}function da(){return{type:"ENTER_FORMATTED_TEXT"}}function ba(){return{type:"EXIT_FORMATTED_TEXT"}}function fa(e,t,n,r){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:r}}function pa(e,t,n){var r=Object(p.getDefaultBlockName)();if(r)return Yi(Object(p.createBlock)(r,e),n,t)}function ma(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function va(e){return{type:"UPDATE_SETTINGS",settings:e}}function ga(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function Oa(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function ha(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}function ja(){return ei.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{type:"MARK_AUTOMATIC_CHANGE"};case 2:return e.next=4,{type:"MARK_AUTOMATIC_CHANGE_FINAL_CONTROL"};case 4:case"end":return e.stop()}}),hi)}function ka(){return{type:"MARK_AUTOMATIC_CHANGE_FINAL"}}function ya(){var e,t=arguments;return ei.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=!(t.length>0&&void 0!==t[0])||t[0],n.next=3,{type:"SET_NAVIGATION_MODE",isNavigationMode:e};case 3:e?Object(ot.speak)(Object(w.__)("You are currently in navigation mode. Navigate blocks using the Tab key and Arrow keys. Use Left and Right Arrow keys to move between nesting levels. To exit navigation mode and edit the selected block, press Enter.")):Object(ot.speak)(Object(w.__)("You are currently in edit mode. To return to the navigation mode, press Escape."));case 4:case"end":return n.stop()}}),ji)}function _a(){var e,t=arguments;return ei.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=t.length>0&&void 0!==t[0]?t[0]:null,n.next=3,{type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e};case 3:e&&Object(ot.speak)(Object(w.__)("Use the Tab key and Arrow keys to choose new block location. Use Left and Right Arrow keys to move between nesting levels. Once location is selected press Enter or Space to move the block."));case 4:case"end":return n.stop()}}),ki)}function Ea(e){var t,n,r,o,c,i,a=arguments;return ei.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(t=!(a.length>1&&void 0!==a[1])||a[1],e||e.length){l.next=3;break}return l.abrupt("return");case 3:return l.next=5,m.controls.select("core/block-editor","getBlocksByClientId",e);case 5:return n=l.sent,l.next=8,m.controls.select("core/block-editor","getBlockRootClientId",e[0]);case 8:if(r=l.sent,!Object(d.some)(n,(function(e){return!e}))){l.next=11;break}return l.abrupt("return");case 11:if(o=n.map((function(e){return e.name})),!Object(d.some)(o,(function(e){return!Object(p.hasBlockSupport)(e,"multiple",!0)}))){l.next=14;break}return l.abrupt("return");case 14:return l.next=16,m.controls.select("core/block-editor","getBlockIndex",Object(d.last)(Object(d.castArray)(e)),r);case 16:return c=l.sent,i=n.map((function(e){return Object(p.cloneBlock)(e)})),l.next=20,Xi(i,c+1,r,t);case 20:if(!(i.length>1&&t)){l.next=23;break}return l.next=23,Mi(Object(d.first)(i).clientId,Object(d.last)(i).clientId);case 23:return l.abrupt("return",i.map((function(e){return e.clientId})));case 24:case"end":return l.stop()}}),yi)}function Ca(e){var t,n;return ei.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,m.controls.select("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,m.controls.select("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,m.controls.select("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,pa({},t,n);case 15:return r.abrupt("return",r.sent);case 16:case"end":return r.stop()}}),_i)}function wa(e){var t,n;return ei.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,m.controls.select("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,m.controls.select("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,m.controls.select("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,pa({},t,n+1);case 15:return r.abrupt("return",r.sent);case 16:case"end":return r.stop()}}),Ei)}function Sa(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}function Ba(e){return ei.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Sa(e,!0);case 2:return t.next=4,{type:"SLEEP",duration:150};case 4:return t.next=6,Sa(e,!1);case 6:case"end":return t.stop()}}),Ci)}function Ia(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}function xa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pa(e){for(var t=1;t1||Object(p.hasBlockSupport)(o,"lightBlockWrapper",!1))return Object(l.createElement)(s,Object(i.a)({},e,{context:a}));var b=Object(p.hasBlockSupport)(o,"className",!0)?Object(p.getBlockDefaultClassName)(r):null,f=u()(b,n.className);return Object(l.createElement)(s,Object(i.a)({},e,{context:a,className:f}))}));function qa(e){var t={name:e.name,isSelected:e.isSelected,clientId:e.clientId,onFocus:e.onFocus,onCaretVerticalPositionChange:e.onCaretVerticalPositionChange};return Object(l.createElement)(O,{value:Object(l.useMemo)((function(){return t}),Object.values(t))},Object(l.createElement)(Ka,e))}var $a=Object(v.createSlotFill)("BlockFormatControls"),Ya=$a.Fill,Xa=$a.Slot;var Qa=function(e){return h().isSelected?Object(l.createElement)(Ya,null,(function(t){var n=Object(d.isEmpty)(t)?null:t;return Object(l.createElement)(v.__experimentalToolbarContext.Provider,{value:n},e.children)})):null};Qa.Slot=function(e){var t=Object(l.useContext)(v.__experimentalToolbarContext);return Object(l.createElement)(Xa,Object(i.a)({},e,{fillProps:t}))};var Za=Qa,Ja=n(46),el=n(47),tl=n(311),nl=n(113),rl=n(27),ol=function(e){return e+1},cl=function(e){return{top:e.offsetTop,left:e.offsetLeft}};var il=function(e,t,n,r,o){var c=Object(b.useReducedMotion)()||!r,i=Object(l.useReducer)(ol,0),a=Object(Me.a)(i,2),s=a[0],u=a[1],d=Object(l.useReducer)(ol,0),f=Object(Me.a)(d,2),p=f[0],m=f[1],v=Object(l.useState)({x:0,y:0}),g=Object(Me.a)(v,2),O=g[0],h=g[1],j=Object(l.useMemo)((function(){return e.current?cl(e.current):null}),[o]),k=Object(l.useMemo)((function(){if(!n||!e.current)return function(){};var t=Object(rl.getScrollContainer)(e.current);if(!t)return function(){};var r=e.current.getBoundingClientRect();return function(){var n=e.current.getBoundingClientRect().top-r.top;n&&(t.scrollTop+=n)}}),[o,n]);function y(n){var r=n.x,o=n.y;r=Math.round(r),o=Math.round(o),r===y.x&&o===y.y||(!function(n){var r=n.x,o=n.y;if(e.current){var c=0===r&&0===o;e.current.style.transformOrigin=c?"":"center",e.current.style.transform=c?"":"translate3d(".concat(r,"px,").concat(o,"px,0)"),e.current.style.zIndex=!t||c?"":"1",k()}}({x:r,y:o}),y.x=r,y.y=o)}Object(l.useLayoutEffect)((function(){s&&m()}),[s]),Object(l.useLayoutEffect)((function(){if(j)if(c)k();else{e.current.style.transform="";var t=cl(e.current);u(),h({x:Math.round(j.left-t.left),y:Math.round(j.top-t.top)})}}),[o]),y.x=0,y.y=0,Object(nl.useSpring)({from:{x:O.x,y:O.y},to:{x:0,y:0},reset:s!==p,config:{mass:5,tension:2e3,friction:200},immediate:c,onFrame:y})},al=Object(nl.animated)(v.__experimentalTreeGridRow);function ll(e){var t=e.isSelected,n=e.position,r=e.level,o=e.rowCount,c=e.children,a=e.className,s=e.path,d=Object(Fe.a)(e,["isSelected","position","level","rowCount","children","className","path"]),b=Object(l.useRef)(null),f=s.join("_"),p=il(b,t,!1,!0,f);return Object(l.createElement)(al,Object(i.a)({ref:b,style:p,className:u()("block-editor-block-navigation-leaf",a),level:r,positionInSet:n,setSize:o},d),c)}var sl=n(218),ul=n(219),dl=n(309),bl=n(310);function fl(e,t,n,r,o,c,i){var a=n+1,l=function(e){return"up"===e?"horizontal"===i?Object(w.isRTL)()?"right":"left":"up":"down"===e?"horizontal"===i?Object(w.isRTL)()?"left":"right":"down":null};if(e>1)return function(e,t,n,r,o){var c=t+1;if(o<0&&n)return Object(w.__)("Blocks cannot be moved up as they are already at the top");if(o>0&&r)return Object(w.__)("Blocks cannot be moved down as they are already at the bottom");if(o<0&&!n)return Object(w.sprintf)(Object(w._n)("Move %1$d block from position %2$d up by one place","Move %1$d blocks from position %2$d up by one place",e),e,c);if(o>0&&!r)return Object(w.sprintf)(Object(w._n)("Move %1$d block from position %2$d down by one place","Move %1$d blocks from position %2$d down by one place",e),e,c)}(e,n,r,o,c);if(r&&o)return Object(w.sprintf)(Object(w.__)("Block %s is the only block, and cannot be moved"),t);if(c>0&&!o){var s=l("down");if("down"===s)return Object(w.sprintf)(Object(w.__)("Move %1$s block from position %2$d down to position %3$d"),t,a,a+1);if("left"===s)return Object(w.sprintf)(Object(w.__)("Move %1$s block from position %2$d left to position %3$d"),t,a,a+1);if("right"===s)return Object(w.sprintf)(Object(w.__)("Move %1$s block from position %2$d right to position %3$d"),t,a,a+1)}if(c>0&&o){var u=l("down");if("down"===u)return Object(w.sprintf)(Object(w.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===u)return Object(w.sprintf)(Object(w.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===u)return Object(w.sprintf)(Object(w.__)("Block %1$s is at the end of the content and can’t be moved right"),t)}if(c<0&&!r){var d=l("up");if("up"===d)return Object(w.sprintf)(Object(w.__)("Move %1$s block from position %2$d up to position %3$d"),t,a,a-1);if("left"===d)return Object(w.sprintf)(Object(w.__)("Move %1$s block from position %2$d left to position %3$d"),t,a,a-1);if("right"===d)return Object(w.sprintf)(Object(w.__)("Move %1$s block from position %2$d right to position %3$d"),t,a,a-1)}if(c<0&&r){var b=l("up");if("up"===b)return Object(w.sprintf)(Object(w.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===b)return Object(w.sprintf)(Object(w.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===b)return Object(w.sprintf)(Object(w.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}var pl=function(e,t){return"up"===e?"horizontal"===t?Object(w.isRTL)()?sl.a:ul.a:dl.a:"down"===e?"horizontal"===t?Object(w.isRTL)()?ul.a:sl.a:bl.a:null},ml=function(e,t){return"up"===e?"horizontal"===t?Object(w.isRTL)()?Object(w.__)("Move right"):Object(w.__)("Move left"):Object(w.__)("Move up"):"down"===e?"horizontal"===t?Object(w.isRTL)()?Object(w.__)("Move left"):Object(w.__)("Move right"):Object(w.__)("Move down"):null},vl=Object(l.forwardRef)((function(e,t){var n=e.clientIds,r=e.direction,o=e.orientation,c=Object(Fe.a)(e,["clientIds","direction","orientation"]),a=Object(b.useInstanceId)(vl),s=Object(d.castArray)(n).length,f=Object(m.useSelect)((function(e){var t=e("core/block-editor"),c=t.getBlockIndex,i=t.getBlockRootClientId,a=t.getBlockOrder,l=t.getBlock,s=t.getBlockListSettings,u=Object(d.castArray)(n),b=Object(d.first)(u),f=i(b),m=c(b,f),v=c(Object(d.last)(u),f),g=a(f),O=l(b),h=0===m,j=v===g.length-1,k=(s(f)||{}).orientation;return{blockType:O?Object(p.getBlockType)(O.name):null,isDisabled:"up"===r?h:j,rootClientId:f,firstIndex:m,isFirst:h,isLast:j,orientation:o||k}}),[n,r]),g=f.blockType,O=f.isDisabled,h=f.rootClientId,j=f.isFirst,k=f.isLast,y=f.firstIndex,_=f.orientation,E=void 0===_?"vertical":_,C=Object(m.useDispatch)("core/block-editor"),w=C.moveBlocksDown,S=C.moveBlocksUp,B="up"===r?S:w,I="block-editor-block-mover-button__description-".concat(a);return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(v.Button,Object(i.a)({ref:t,className:u()("block-editor-block-mover-button","is-".concat(r,"-button")),icon:pl(r,E),label:ml(r,E),"aria-describedby":I},c,{onClick:O?null:function(e){B(n,h),c.onClick&&c.onClick(e)},"aria-disabled":O})),Object(l.createElement)("span",{id:I,className:"block-editor-block-mover-button__description"},fl(s,g&&g.title,y,j,k,"up"===r?-1:1,E)))})),gl=Object(l.forwardRef)((function(e,t){return Object(l.createElement)(vl,Object(i.a)({direction:"up",ref:t},e))})),Ol=Object(l.forwardRef)((function(e,t){return Object(l.createElement)(vl,Object(i.a)({direction:"down",ref:t},e))})),hl=Object(l.createContext)({__experimentalFeatures:!1}),jl=function(){return Object(l.useContext)(hl)},kl=Object(l.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(S.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"}));var yl=function(e){var t=e.className,n=e.actions,r=e.children,o=e.secondaryActions;return Object(l.createElement)("div",{className:u()(t,"block-editor-warning")},Object(l.createElement)("div",{className:"block-editor-warning__contents"},Object(l.createElement)("p",{className:"block-editor-warning__message"},r),(l.Children.count(n)>0||o)&&Object(l.createElement)("div",{className:"block-editor-warning__actions"},l.Children.count(n)>0&&l.Children.map(n,(function(e,t){return Object(l.createElement)("span",{key:t,className:"block-editor-warning__action"},e)})),o&&Object(l.createElement)(v.DropdownMenu,{className:"block-editor-warning__secondary",icon:kl,label:Object(w.__)("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0},(function(){return Object(l.createElement)(v.MenuGroup,null,o.map((function(e,t){return Object(l.createElement)(v.MenuItem,{onClick:e.onClick,key:t},e.title)})))})))))},_l=n(279),El=function(e){var t=e.title,n=e.rawContent,r=e.renderedContent,o=e.action,c=e.actionText,i=e.className;return Object(l.createElement)("div",{className:i},Object(l.createElement)("div",{className:"block-editor-block-compare__content"},Object(l.createElement)("h2",{className:"block-editor-block-compare__heading"},t),Object(l.createElement)("div",{className:"block-editor-block-compare__html"},n),Object(l.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},r)),Object(l.createElement)("div",{className:"block-editor-block-compare__action"},Object(l.createElement)(v.Button,{isSecondary:!0,tabIndex:"0",onClick:o},c)))};var Cl=function(e){var t,n,r,o,c=e.block,i=e.onKeep,a=e.onConvert,s=e.convertor,b=e.convertButtonText,f={rawContent:c.originalContent,renderedContent:Object(p.getSaveElement)(c.name,c.attributes)},m=(t=s(c),n=Object(d.castArray)(t),r=n.map((function(e){return Object(p.getSaveContent)(e.name,e.attributes,e.innerBlocks)})),o=n.map((function(e){return Object(p.getSaveElement)(e.name,e.attributes,e.innerBlocks)})),{rawContent:r.join(""),renderedContent:o}),v=function(e,t){return Object(_l.diffChars)(e,t).map((function(e,t){var n=u()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return Object(l.createElement)("span",{key:t,className:n},e.value)}))}(f.rawContent,m.rawContent);return Object(l.createElement)("div",{className:"block-editor-block-compare__wrapper"},Object(l.createElement)(El,{title:Object(w.__)("Current"),className:"block-editor-block-compare__current",action:i,actionText:Object(w.__)("Convert to HTML"),rawContent:f.rawContent,renderedContent:f.renderedContent}),Object(l.createElement)(El,{title:Object(w.__)("After Conversion"),className:"block-editor-block-compare__converted",action:a,actionText:b,rawContent:v,renderedContent:m.renderedContent}))};var wl=function(e){return Object(p.rawHandler)({HTML:e.originalContent})},Sl=Object(b.compose)([Object(m.withSelect)((function(e,t){var n=t.clientId;return{block:e("core/block-editor").getBlock(n)}})),Object(m.withDispatch)((function(e,t){var n=t.block,r=e("core/block-editor").replaceBlock;return{convertToClassic:function(){r(n.clientId,function(e){return Object(p.createBlock)("core/freeform",{content:e.originalContent})}(n))},convertToHTML:function(){r(n.clientId,function(e){return Object(p.createBlock)("core/html",{content:e.originalContent})}(n))},convertToBlocks:function(){r(n.clientId,wl(n))},attemptBlockRecovery:function(){var e,t,o,c;r(n.clientId,(t=(e=n).name,o=e.attributes,c=e.innerBlocks,Object(p.createBlock)(t,o,c)))}}}))])((function(e){var t=e.convertToHTML,n=e.convertToBlocks,r=e.convertToClassic,o=e.attemptBlockRecovery,c=e.block,i=!!Object(p.getBlockType)("core/html"),a=Object(l.useState)(!1),s=Object(Me.a)(a,2),u=s[0],d=s[1],b=Object(l.useCallback)((function(){return d(!0)}),[]),f=Object(l.useCallback)((function(){return d(!1)}),[]),m=Object(l.useMemo)((function(){return[{title:Object(w._x)("Resolve","imperative verb"),onClick:b},i&&{title:Object(w.__)("Convert to HTML"),onClick:t},{title:Object(w.__)("Convert to Classic Block"),onClick:r}].filter(Boolean)}),[b,t,r]);return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(yl,{actions:[Object(l.createElement)(v.Button,{key:"recover",onClick:o,isPrimary:!0},Object(w.__)("Attempt Block Recovery"))],secondaryActions:m},Object(w.__)("This block contains unexpected or invalid content.")),u&&Object(l.createElement)(v.Modal,{title:Object(w.__)("Resolve Block"),onRequestClose:f,className:"block-editor-block-compare"},Object(l.createElement)(Cl,{block:c,onKeep:t,onConvert:n,convertor:wl,convertButtonText:Object(w.__)("Convert to Blocks")})))})),Bl=Object(l.createElement)(yl,{className:"block-editor-block-list__block-crash-warning"},Object(w.__)("This block has encountered an error and cannot be previewed.")),Il=function(){return Bl};function xl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Hn.a)(e);if(t){var o=Object(Hn.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Vn.a)(this,n)}}var Pl=function(e){Object(Fn.a)(n,e);var t=xl(n);function n(){var e;return Object(Rn.a)(this,n),(e=t.apply(this,arguments)).state={hasError:!1},e}return Object(Ln.a)(n,[{key:"componentDidCatch",value:function(e){this.props.onError(e),this.setState({hasError:!0})}},{key:"render",value:function(){return this.state.hasError?null:this.props.children}}]),n}(l.Component),Tl=n(91),Nl=n.n(Tl);var Dl=function(e){var t=e.clientId,n=Object(l.useState)(""),r=Object(Me.a)(n,2),o=r[0],c=r[1],i=Object(m.useSelect)((function(e){return e("core/block-editor").getBlock(t)}),[t]),a=Object(m.useDispatch)("core/block-editor").updateBlock;return Object(l.useEffect)((function(){c(Object(p.getBlockContent)(i))}),[i]),Object(l.createElement)(Nl.a,{className:"block-editor-block-list__block-html-textarea",value:o,onBlur:function(){var e=Object(p.getBlockType)(i.name),n=Object(p.getBlockAttributes)(e,o,i.attributes),r=o||Object(p.getSaveContent)(e,n),l=!o||Object(p.isValidBlockContent)(e,n,r);a(t,{attributes:n,originalContent:r,isValid:l}),o||c({content:r})},onChange:function(e){return c(e.target.value)}})},Al=n(64),Rl=n(216),Ll=[Object(l.createInterpolateElement)(Object(w.__)("While writing, you can press / to quickly insert new blocks."),{kbd:Object(l.createElement)("kbd",null)}),Object(l.createInterpolateElement)(Object(w.__)("Indent a list by pressing space at the beginning of a line."),{kbd:Object(l.createElement)("kbd",null)}),Object(l.createInterpolateElement)(Object(w.__)("Outdent a list by pressing backspace at the beginning of a line."),{kbd:Object(l.createElement)("kbd",null)}),Object(w.__)("Drag files into the editor to automatically insert media blocks."),Object(w.__)("Change a block's type by pressing the block icon on the toolbar.")];var Ml=function(){var e=Object(l.useState)(Math.floor(Math.random()*Ll.length)),t=Object(Me.a)(e,1)[0];return Object(l.createElement)(v.Tip,null,Ll[t])},Fl=n(159),Vl=n(138),Hl=n(217);var zl=function e(t){var n=t.className,r=t.onChange,o=t.value,c=t.placeholder,i=Object(b.useInstanceId)(e),a=Object(l.useRef)();return Object(l.createElement)("div",{className:u()("block-editor-inserter__search",n)},Object(l.createElement)(v.VisuallyHidden,{as:"label",htmlFor:"block-editor-inserter__search-".concat(i)},c),Object(l.createElement)("input",{ref:a,className:"block-editor-inserter__search-input",id:"block-editor-inserter__search-".concat(i),type:"search",placeholder:c,onChange:function(e){return r(e.target.value)},autoComplete:"off",value:o||""}),Object(l.createElement)("div",{className:"block-editor-inserter__search-icon"},!!o&&Object(l.createElement)(v.Button,{icon:Fl.a,label:Object(w.__)("Reset search"),onClick:function(){r(""),a.current.focus()}}),!o&&Object(l.createElement)(Vl.a,{icon:Hl.a})))},Gl=n(35),Ul=n.n(Gl);var Wl=function(e){var t=e.title,n=e.icon,r=e.description,o=e.blockType;return o&&(Ul()("`blockType` property in `BlockCard component`",{alternative:"`title, icon and description` properties"}),t=o.title,n=o.icon,r=o.description),Object(l.createElement)("div",{className:"block-editor-block-card"},Object(l.createElement)(Vr,{icon:n,showColors:!0}),Object(l.createElement)("div",{className:"block-editor-block-card__content"},Object(l.createElement)("h2",{className:"block-editor-block-card__title"},t),Object(l.createElement)("span",{className:"block-editor-block-card__description"},r)))};function Kl(e){var t=e.clientId,n=void 0===t?null:t,r=e.value,o=e.selectionStart,c=e.selectionEnd,i=e.onChange,a=void 0===i?d.noop:i,s=e.onInput,u=void 0===s?d.noop:s,b=Object(m.useRegistry)(),f=b.dispatch("core/block-editor"),v=f.resetBlocks,g=f.resetSelection,O=f.replaceInnerBlocks,h=f.setHasControlledInnerBlocks,j=f.__unstableMarkNextChangeAsNotPersistent,k=b.select("core/block-editor"),y=k.getBlockName,_=k.getBlocks,E=Object(l.useRef)({incoming:null,outgoing:[]}),C=Object(l.useRef)(!1),w=Object(l.useRef)(u),S=Object(l.useRef)(a);Object(l.useEffect)((function(){w.current=u,S.current=a}),[u,a]),Object(l.useEffect)((function(){E.current.outgoing.includes(r)?Object(d.last)(E.current.outgoing)===r&&(E.current.outgoing=[]):_(n)!==r&&(E.current.outgoing=[],function(){if(r)if(j(),n){h(n,!0),j();var e=r.map((function(e){return Object(p.cloneBlock)(e)}));C.current&&(E.current.incoming=e),O(n,e)}else C.current&&(E.current.incoming=r),v(r)}(),o&&c&&g(o,c))}),[r,n]),Object(l.useEffect)((function(){var e=b.select("core/block-editor"),t=e.getSelectionStart,r=e.getSelectionEnd,o=e.isLastBlockChangePersistent,c=e.__unstableIsLastBlockChangeIgnored,i=_(n),a=o(),l=!1;C.current=!0;var s=b.subscribe((function(){if(null===n||null!==y(n)){var e=o(),s=_(n),u=s!==i;if(i=s,u&&(E.current.incoming||c()))return E.current.incoming=null,void(a=e);if(u||l&&!u&&e&&!a)a=e,E.current.outgoing.push(i),(a?S.current:w.current)(i,{selectionStart:t(),selectionEnd:r()});l=u}}));return function(){return s()}}),[b,n])}var ql,$l=Object(b.createHigherOrderComponent)((function(e){return Object(m.withRegistry)((function(t){var n=t.useSubRegistry,r=void 0===n||n,o=t.registry,c=Object(Fe.a)(t,["useSubRegistry","registry"]);if(!r)return Object(l.createElement)(e,Object(i.a)({registry:o},c));var a=Object(l.useState)(null),s=Object(Me.a)(a,2),u=s[0],d=s[1];return Object(l.useEffect)((function(){var e=Object(m.createRegistry)({},o);e.registerStore("core/block-editor",Ta),d(e)}),[o]),u?Object(l.createElement)(m.RegistryProvider,{value:u},Object(l.createElement)(e,Object(i.a)({registry:u},c))):null}))}),"withRegistryProvider")((function(e){var t=e.children,n=e.settings,r=Object(m.useDispatch)("core/block-editor").updateSettings;return Object(l.useEffect)((function(){r(n)}),[n]),Kl(e),t}));function Yl(e){var t=e.onClick;return Object(l.createElement)("div",{tabIndex:0,role:"button",onClick:t,onKeyPress:t},Object(l.createElement)(v.Disabled,null,Object(l.createElement)(ed,null)))}var Xl=function(e){var t=e.viewportWidth,n=e.__experimentalPadding,r=Object(b.useResizeObserver)(),o=Object(Me.a)(r,2),c=o[0],i=o[1].width,a=Object(b.useResizeObserver)(),s=Object(Me.a)(a,2),u=s[0],d=s[1].height;ql=ql||Object(b.pure)(ed);var f=(i-2*n)/t;return Object(l.createElement)("div",{className:"block-editor-block-preview__container editor-styles-wrapper","aria-hidden":!0,style:{height:d*f+2*n}},c,Object(l.createElement)(v.Disabled,{style:{transform:"scale(".concat(f,")"),width:t,left:n,right:n,top:n},className:"block-editor-block-preview__content"},u,Object(l.createElement)(ql,null)))};var Ql=Object(l.memo)((function(e){var t=e.blocks,n=e.__experimentalPadding,r=void 0===n?0:n,o=e.viewportWidth,c=void 0===o?1200:o,i=e.__experimentalLive,a=void 0!==i&&i,s=e.__experimentalOnClick,u=Object(m.useSelect)((function(e){return e("core/block-editor").getSettings()}),[]),b=Object(l.useMemo)((function(){return Object(d.castArray)(t)}),[t]);return t&&0!==t.length?Object(l.createElement)($l,{value:b,settings:u},a?Object(l.createElement)(Yl,{onClick:s}):Object(l.createElement)(Xl,{viewportWidth:c,__experimentalPadding:r})):null}));function Zl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jl(e){for(var t=1;t6||h.length>6,E=Object(m.useSelect)((function(e){var t=e("core/block-editor"),o=t.getSettings,c=t.getBlockIndex;return{setInserterIsOpened:o().__experimentalSetIsInserterOpened,blockIndex:c(r,n)}}),[r,n]),C=E.setInserterIsOpened,S=E.blockIndex;Object(l.useEffect)((function(){C&&C(!1)}),[C]);var B=Object(m.useDispatch)("core/block-editor").__unstableSetInsertionPoint;return Object(l.createElement)("div",{className:u()("block-editor-inserter__quick-inserter",{"has-search":_,"has-expand":C})},_&&Object(l.createElement)(zl,{value:s,onChange:function(e){d(e)},placeholder:Object(w.__)("Search for a block")}),Object(l.createElement)("div",{className:"block-editor-inserter__quick-inserter-results"},Object(l.createElement)(ws,{filterValue:s,onSelect:t,rootClientId:n,clientId:r,isAppender:o,selectBlockOnInsert:c,maxBlockPatterns:y?2:0,maxBlockTypes:6,isDraggable:!1})),C&&Object(l.createElement)(v.Button,{className:"block-editor-inserter__quick-inserter-expand",onClick:function(){B(n,S),C(!0)},"aria-label":Object(w.__)("Browse all. This will open the main inserter panel in the editor toolbar.")},Object(w.__)("Browse all")))}function Ns(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Hn.a)(e);if(t){var o=Object(Hn.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Vn.a)(this,n)}}var Ds=function(e){var t,n=e.onToggle,r=e.disabled,o=e.isOpen,c=e.blockTitle,a=e.hasSingleBlockType,s=e.toggleProps,u=void 0===s?{}:s;t=a?Object(w.sprintf)(Object(w._x)("Add %s","directly add the only allowed block"),c):Object(w._x)("Add block","Generic label for block inserter button");var d=u.onClick,b=Object(Fe.a)(u,["onClick"]);return Object(l.createElement)(v.Button,Object(i.a)({icon:Rl.a,label:t,tooltipPosition:"bottom",onClick:function(e){n&&n(e),d&&d(e)},className:"block-editor-inserter__toggle","aria-haspopup":!a&&"true","aria-expanded":!a&&o,disabled:r},b))},As=function(e){Object(Fn.a)(n,e);var t=Ns(n);function n(){var e;return Object(Rn.a)(this,n),(e=t.apply(this,arguments)).onToggle=e.onToggle.bind(Object(Mn.a)(e)),e.renderToggle=e.renderToggle.bind(Object(Mn.a)(e)),e.renderContent=e.renderContent.bind(Object(Mn.a)(e)),e}return Object(Ln.a)(n,[{key:"onToggle",value:function(e){var t=this.props.onToggle;t&&t(e)}},{key:"renderToggle",value:function(e){var t=e.onToggle,n=e.isOpen,r=this.props,o=r.disabled,c=r.blockTitle,i=r.hasSingleBlockType,a=r.toggleProps,l=r.hasItems,s=r.renderToggle,u=void 0===s?Ds:s;return u({onToggle:t,isOpen:n,disabled:o||!l,blockTitle:c,hasSingleBlockType:i,toggleProps:a})}},{key:"renderContent",value:function(e){var t=e.onClose,n=this.props,r=n.rootClientId,o=n.clientId,c=n.isAppender,i=n.showInserterHelpPanel,a=n.__experimentalSelectBlockOnInsert;return n.__experimentalIsQuick?Object(l.createElement)(Ts,{onSelect:function(){t()},rootClientId:r,clientId:o,isAppender:c,selectBlockOnInsert:a}):Object(l.createElement)(Ps,{onSelect:function(){t()},rootClientId:r,clientId:o,isAppender:c,showInserterHelpPanel:i,__experimentalSelectBlockOnInsert:a})}},{key:"render",value:function(){var e=this.props,t=e.position,n=e.hasSingleBlockType,r=e.insertOnlyAllowedBlock,o=e.__experimentalIsQuick,c=e.onSelectOrClose;return n?this.renderToggle({onToggle:r}):Object(l.createElement)(v.Dropdown,{className:"block-editor-inserter",contentClassName:u()("block-editor-inserter__popover",{"is-quick":o}),position:t,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(w.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent,onClose:c})}}]),n}(l.Component),Rs=Object(b.compose)([Object(m.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=e("core/block-editor"),c=o.getBlockRootClientId,i=o.hasInserterItems,a=o.__experimentalGetAllowedBlocks,l=e(p.store).getBlockVariations,s=a(r=r||c(n)||void 0),u=1===Object(d.size)(s)&&0===Object(d.size)(l(s[0].name,"inserter")),b=!1;return u&&(b=s[0]),{hasItems:i(r),hasSingleBlockType:u,blockTitle:b?b.title:"",allowedBlockType:b,rootClientId:r}})),Object(m.withDispatch)((function(e,t,n){var r=n.select;return{insertOnlyAllowedBlock:function(){var n=t.rootClientId,o=t.clientId,c=t.isAppender,i=t.onSelectOrClose,a=t.hasSingleBlockType,l=t.allowedBlockType,s=t.__experimentalSelectBlockOnInsert;if(a&&((0,e("core/block-editor").insertBlock)(Object(p.createBlock)(l.name),function(){var e=r("core/block-editor"),t=e.getBlockIndex,i=e.getBlockSelectionEnd,a=e.getBlockOrder;if(o)return t(o,n);var l=i();return!c&&l?t(l,n)+1:a(n).length}(),n,s),i&&i(),!s)){var u=Object(w.sprintf)(Object(w.__)("%s block added"),l.title);Object(ot.speak)(u)}}}})),Object(b.ifCondition)((function(e){var t=e.hasItems,n=e.isAppender,r=e.rootClientId,o=e.clientId;return t||!n&&!r&&!o}))])(As);var Ls=Object(b.compose)(Object(m.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.getBlockCount,o=n.getBlockName,c=n.isBlockValid,i=n.getSettings,a=n.getTemplateLock,l=!r(t.rootClientId),s=o(t.lastBlockClientId)===Object(p.getDefaultBlockName)(),u=c(t.lastBlockClientId),d=i().bodyPlaceholder;return{isVisible:l||!s||!u,showPrompt:l,isLocked:!!a(t.rootClientId),placeholder:d}})),Object(m.withDispatch)((function(e,t){var n=e("core/block-editor"),r=n.insertDefaultBlock,o=n.startTyping;return{onAppend:function(){var e=t.rootClientId;r(void 0,e),o()}}})))((function(e){var t=e.isLocked,n=e.isVisible,r=e.onAppend,o=e.showPrompt,c=e.placeholder,i=e.rootClientId;if(t||!n)return null;var a=Object(Al.decodeEntities)(c)||Object(w.__)("Start writing or type / to choose a block");return Object(l.createElement)("div",{"data-root-client-id":i||"",className:"wp-block block-editor-default-block-appender"},Object(l.createElement)(Nl.a,{role:"button","aria-label":Object(w.__)("Add block"),className:"block-editor-default-block-appender__content",readOnly:!0,onFocus:r,value:o?a:""}),Object(l.createElement)(Rs,{rootClientId:i,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0}))}));var Ms=Object(l.forwardRef)((function(e,t){var n=e.rootClientId,r=e.className,o=e.__experimentalSelectBlockOnInsert,c=e.onFocus,i=e.tabIndex;return Object(l.createElement)(Rs,{position:"bottom center",rootClientId:n,__experimentalSelectBlockOnInsert:o,__experimentalIsQuick:!0,renderToggle:function(e){var n,o=e.onToggle,a=e.disabled,s=e.isOpen,d=e.blockTitle,b=e.hasSingleBlockType;n=b?Object(w.sprintf)(Object(w._x)("Add %s","directly add the only allowed block"),d):Object(w._x)("Add block","Generic label for block inserter button");var f=!b,p=Object(l.createElement)(v.Button,{ref:t,onFocus:c,tabIndex:i,className:u()(r,"block-editor-button-block-appender"),onClick:o,"aria-haspopup":f?"true":void 0,"aria-expanded":f?s:void 0,disabled:a,label:n},!b&&Object(l.createElement)(v.VisuallyHidden,{as:"span"},n),Object(l.createElement)(Vl.a,{icon:Rl.a}));return(f||b)&&(p=Object(l.createElement)(v.Tooltip,{text:n},p)),p},isAppender:!0})}));Object(l.createContext)();function Fs(e){e.stopPropagation()}var Vs=Object(m.withSelect)((function(e,t){var n=t.rootClientId,r=e("core/block-editor"),o=r.getBlockOrder,c=r.canInsertBlockType,i=r.getTemplateLock,a=r.getSelectedBlockClientId;return{isLocked:!!i(n),blockClientIds:o(n),canInsertDefaultBlock:c(Object(p.getDefaultBlockName)(),n),selectedBlockClientId:a()}}))((function(e){var t,n=e.blockClientIds,r=e.rootClientId,o=e.canInsertDefaultBlock,c=e.isLocked,i=e.renderAppender,a=e.className,s=e.selectedBlockClientId,b=e.tagName,f=void 0===b?"div":b;if(c||!1===i)return null;if(i)t=Object(l.createElement)(i,null);else{var p=!r,m=s===r,v=s&&!n.includes(s);if(!p&&!m&&(!s||v))return null;t=o?Object(l.createElement)(Ls,{rootClientId:r,lastBlockClientId:Object(d.last)(n)}):Object(l.createElement)(Ms,{rootClientId:r,className:"block-list-appender__toggle"})}return Object(l.createElement)(f,{tabIndex:-1,onFocus:Fs,className:u()("block-list-appender","wp-block",a)},t)}));function Hs(e,t,n,r,o,c,i){return function(a){var l=function(e){var t={srcRootClientId:null,srcClientIds:null,srcIndex:null,type:null,blocks:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("text")))}catch(e){return t}return t}(a),s=l.srcRootClientId,u=l.srcClientIds,d=l.type,b=l.blocks;if("inserter"===d&&(i(),c(b,t,e,!1)),"block"===d){var f=n(u[0],s);if(s===e&&f===t)return;if(u.includes(e)||r(u).some((function(t){return t===e})))return;var p=s===e,m=u.length;o(u,s,e,p&&f=s&&a<=u?a:a2&&void 0!==arguments[2]?arguments[2]:["top","bottom","left","right"];return o.forEach((function(o){var c=Ws(e,t,o);(void 0===n||c-1&&Object(ot.speak)(N)}),[]);var h=Object(m.useSelect)(Qs,[]),j=h.selectedBlockClientId,k=h.selectionBeforeEndClientId,y=h.selectionAfterEndClientId,_=h.hasBlockMovingClientId,E=h.getBlockIndex,C=h.getBlockRootClientId,w=h.getClientIdsOfDescendants,S=Object(m.useDispatch)("core/block-editor"),B=S.selectBlock,I=S.clearSelectedBlock,x=S.setBlockMovingClientId,P=S.moveBlockToPosition,T=Object(p.getBlockType)(i),N=Object(p.__experimentalGetAccessibleBlockLabel)(T,a,c+1,d),D=u()("block-editor-block-list__block-selection-button",{"is-block-moving-mode":!!s});return Object(l.createElement)("div",{className:D},Object(l.createElement)(v.Button,{ref:O,onClick:function(){return f(!1)},onKeyDown:function(e){var n=e.keyCode,o=n===Ht.UP,c=n===Ht.DOWN,i=n===Ht.LEFT,a=n===Ht.RIGHT,l=n===Ht.TAB,s=n===Ht.ESCAPE,u=n===Ht.ENTER,d=n===Ht.SPACE,b=e.shiftKey;if(n===Ht.BACKSPACE||n===Ht.DELETE)return g(t),void e.preventDefault();var f,p=l&&b||o,m=l&&!b||c,v=i,O=a;if(p)f=k;else if(m)f=y;else if(v){var h;f=null!==(h=C(j))&&void 0!==h?h:j}else if(O){var S;f=null!==(S=w([j])[0])&&void 0!==S?S:j}var T=_();if(s&&T&&x(null),(u||d)&&T){var N=C(T),D=C(j),A=E(T,N),R=E(j,D);Ac){var a=Math.max(o-c-50,0),l=Math.max(i-c-50,0)/a;n.current=25*l}else if(e.clientY=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function su(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n')})).join(""),n=""),{html:r,plainText:n}}(t),g=v.plainText,O=v.html,h=Object(p.pasteHandler)({HTML:O,plainText:g,mode:"BLOCKS",canUserUseUnfilteredHTML:m});u(i,h,h.length-1,-1)}}}}return e.current.addEventListener("copy",t),e.current.addEventListener("cut",t),e.current.addEventListener("paste",t),function(){e.current.removeEventListener("copy",t),e.current.removeEventListener("cut",t),e.current.removeEventListener("paste",t)}}),[])}var Eu=function(e){var t=e.children,n=Object(l.useRef)();return _u(n),Object(l.createElement)("div",{ref:n},t)};function Cu(e){var t=e.clientIds,n=e.children,r=e.__experimentalUpdateSelection,o=Object(m.useSelect)((function(e){return e("core/block-editor")}),[]),c=o.canInsertBlockType,i=o.getBlockRootClientId,a=o.getBlocksByClientId,l=o.getTemplateLock,s=Object(m.useSelect)((function(e){return e(p.store)}),[]),u=s.getDefaultBlockName,b=s.getGroupingBlockName,f=a(t),v=i(t[0]),g=Object(d.every)(f,(function(e){return!!e&&Object(p.hasBlockSupport)(e.name,"multiple",!0)&&c(e.name,v)})),O=c(u(),v),h=Object(m.useDispatch)("core/block-editor"),j=h.removeBlocks,k=h.replaceBlocks,y=h.duplicateBlocks,_=h.insertAfterBlock,E=h.insertBeforeBlock,C=h.flashBlock,w=h.setBlockMovingClientId,S=h.setNavigationMode,B=h.selectBlock,I=yu();return n({canDuplicate:g,canInsertDefaultBlock:O,isLocked:!!l(v),rootClientId:v,blocks:f,onDuplicate:function(){return y(t,r)},onRemove:function(){return j(t,r)},onInsertBefore:function(){E(Object(d.first)(Object(d.castArray)(t)))},onInsertAfter:function(){_(Object(d.last)(Object(d.castArray)(t)))},onMoveTo:function(){S(!0),B(t[0]),w(t[0])},onGroup:function(){if(f.length){var e=b(),n=Object(p.switchToBlockType)(f,e);n&&k(t,n)}},onUngroup:function(){if(f.length){var e=f[0].innerBlocks;e.length&&k(t,e)}},onCopy:function(){var e=f.map((function(e){return e.clientId}));1===f.length&&C(e[0]),I("copy",e)}})}var wu=Object(b.compose)([Object(m.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor"),o=r.getBlock,c=r.getBlockMode,i=r.getSettings,a=o(n),l=i().codeEditingEnabled;return{mode:c(n),blockType:a?Object(p.getBlockType)(a.name):null,isCodeEditingEnabled:l}})),Object(m.withDispatch)((function(e,t){var n=t.onToggle,r=void 0===n?d.noop:n,o=t.clientId;return{onToggleMode:function(){e("core/block-editor").toggleBlockMode(o),r()}}}))])((function(e){var t=e.blockType,n=e.mode,r=e.onToggleMode,o=e.small,c=void 0!==o&&o,i=e.isCodeEditingEnabled,a=void 0===i||i;if(!Object(p.hasBlockSupport)(t,"html",!0)||!a)return null;var s="visual"===n?Object(w.__)("Edit as HTML"):Object(w.__)("Edit visually");return Object(l.createElement)(v.MenuItem,{onClick:r},!c&&s)}));var Su=Object(b.compose)(Object(m.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{block:r,shouldRender:r&&"core/html"===r.name}})),Object(m.withDispatch)((function(e,t){var n=t.block;return{onClick:function(){return e("core/block-editor").replaceBlocks(n.clientId,Object(p.rawHandler)({HTML:Object(p.getBlockContent)(n)}))}}})))((function(e){var t=e.shouldRender,n=e.onClick,r=e.small;if(!t)return null;var o=Object(w.__)("Convert to Blocks");return Object(l.createElement)(v.MenuItem,{onClick:n},!r&&o)})),Bu=Object(v.createSlotFill)("__experimentalBlockSettingsMenuFirstItem"),Iu=Bu.Fill,xu=Bu.Slot;Iu.Slot=xu;var Pu=Iu;function Tu(e){var t=e.clientIds,n=e.isGroupable,r=e.isUngroupable,o=e.blocksSelection,c=e.groupingBlockName,i=e.onClose,a=void 0===i?function(){}:i,s=Object(m.useDispatch)(Na).replaceBlocks;return n||r?Object(l.createElement)(l.Fragment,null,n&&Object(l.createElement)(v.MenuItem,{onClick:function(){var e;(e=Object(p.switchToBlockType)(o,c))&&s(t,e),a()}},Object(w._x)("Group","verb")),r&&Object(l.createElement)(v.MenuItem,{onClick:function(){var e;(e=o[0].innerBlocks).length&&s(t,e),a()}},Object(w._x)("Ungroup","Ungrouping blocks from within a Group block back into individual blocks within the Editor "))):null}function Nu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Du(e){for(var t=1;t0||s)return Object(l.createElement)(v.MenuGroup,null,e,Object(l.createElement)(Tu,Object(i.a)({},a,{onClose:null==n?void 0:n.onClose})))}))};var Mu=Ru,Fu={className:"block-editor-block-settings-menu__popover",position:"bottom right",isAlternate:!0};var Vu=function(e){var t=e.clientIds,n=e.__experimentalSelectBlock,r=e.children,o=Object(Fe.a)(e,["clientIds","__experimentalSelectBlock","children"]),c=Object(d.castArray)(t),a=c.length,s=c[0],u=Object(m.useSelect)((function(e){var t=e(Ja.store).getShortcutRepresentation;return{duplicate:t("core/block-editor/duplicate"),remove:t("core/block-editor/remove"),insertAfter:t("core/block-editor/insert-after"),insertBefore:t("core/block-editor/insert-before")}}),[]),b=Object(l.useCallback)(n?function(){var e=Object(el.a)(ei.a.mark((function e(t){var r;return ei.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t;case 2:(r=e.sent)&&r[0]&&n(r[0]);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}():d.noop,[n]),f=1===a?Object(w.__)("Remove block"):Object(w.__)("Remove blocks");return Object(l.createElement)(Cu,{clientIds:t,__experimentalUpdateSelection:!n},(function(e){var n=e.canDuplicate,c=e.canInsertDefaultBlock,m=e.isLocked,g=e.onDuplicate,O=e.onInsertAfter,h=e.onInsertBefore,j=e.onRemove,k=e.onCopy,y=e.onMoveTo,_=e.blocks;return Object(l.createElement)(v.DropdownMenu,Object(i.a)({icon:tl.a,label:Object(w.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:Fu,noIcons:!0},o),(function(e){var o=e.onClose;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(v.MenuGroup,null,Object(l.createElement)(Pu.Slot,{fillProps:{onClose:o}}),1===a&&Object(l.createElement)(Su,{clientId:s}),Object(l.createElement)(v.ClipboardButton,{text:function(){return Object(p.serialize)(_)},role:"menuitem",className:"components-menu-item__button",onCopy:k},Object(w.__)("Copy")),n&&Object(l.createElement)(v.MenuItem,{onClick:Object(d.flow)(o,g,b),shortcut:u.duplicate},Object(w.__)("Duplicate")),c&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(v.MenuItem,{onClick:Object(d.flow)(o,h),shortcut:u.insertBefore},Object(w.__)("Insert before")),Object(l.createElement)(v.MenuItem,{onClick:Object(d.flow)(o,O),shortcut:u.insertAfter},Object(w.__)("Insert after"))),!m&&Object(l.createElement)(v.MenuItem,{onClick:Object(d.flow)(o,y)},Object(w.__)("Move to")),1===a&&Object(l.createElement)(wu,{clientId:s,onToggle:o})),Object(l.createElement)(Mu.Slot,{fillProps:{onClose:o},clientIds:t}),"function"==typeof r?r({onClose:o}):l.Children.map((function(e){return Object(l.cloneElement)(e,{onClose:o})})),Object(l.createElement)(v.MenuGroup,null,!m&&Object(l.createElement)(v.MenuItem,{onClick:Object(d.flow)(o,j,b),shortcut:u.remove},f)))}))}))};var Hu=function(e){var t=e.clientIds,n=Object(Fe.a)(e,["clientIds"]);return Object(l.createElement)(v.ToolbarGroup,null,Object(l.createElement)(v.ToolbarItem,null,(function(e){return Object(l.createElement)(Vu,Object(i.a)({clientIds:t,toggleProps:e},n))})))},zu=window,Gu=zu.clearTimeout,Uu=zu.setTimeout;function Wu(e){var t=e.ref,n=e.isFocused,r=e.debounceTimeout,o=void 0===r?200:r,c=e.onChange,i=void 0===c?d.noop:c,a=Object(l.useState)(!1),s=Object(Me.a)(a,2),u=s[0],b=s[1],f=Object(l.useRef)(),p=function(e){null!=t&&t.current&&b(e),i(e)},m=function(){var e=(null==t?void 0:t.current)&&t.current.matches(":hover");return!n&&!e},v=function(){var e=f.current;e&&Gu&&Gu(e)};return Object(l.useEffect)((function(){return function(){return v()}}),[]),{showMovers:u,debouncedShowMovers:function(e){e&&e.stopPropagation(),v(),u||p(!0)},debouncedHideMovers:function(e){e&&e.stopPropagation(),v(),f.current=Uu((function(){m()&&p(!1)}),o)}}}function Ku(e){var t=e.hideDragHandle,n=Object(m.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockName,r=t.getBlockMode,o=t.getSelectedBlockClientIds,c=t.isBlockValid,i=t.getBlockRootClientId,a=t.getSettings,l=o(),s=l[0],u=i(s),d=a();return{blockClientIds:l,blockClientId:s,blockType:s&&Object(p.getBlockType)(n(s)),hasFixedToolbar:d.hasFixedToolbar,hasReducedUI:d.hasReducedUI,rootClientId:u,isValid:l.every((function(e){return c(e)})),isVisual:l.every((function(e){return"visual"===r(e)}))}}),[]),r=n.blockClientIds,o=n.blockClientId,c=n.blockType,a=n.hasFixedToolbar,s=n.hasReducedUI,f=n.isValid,g=n.isVisual,O=Object(m.useDispatch)("core/block-editor").toggleBlockHighlight,h=Object(l.useRef)(),j=function(e){var t=e.ref,n=e.debounceTimeout,r=void 0===n?200:n,o=e.onChange,c=void 0===o?d.noop:o,i=Object(l.useState)(!1),a=Object(Me.a)(i,2),s=a[0],u=a[1],b=Wu({ref:t,debounceTimeout:r,isFocused:s,onChange:c}),f=b.showMovers,p=b.debouncedShowMovers,m=b.debouncedHideMovers,v=Object(l.useRef)(!1),g=function(){return(null==t?void 0:t.current)&&t.current.contains(t.current.ownerDocument.activeElement)};return Object(l.useEffect)((function(){var e=t.current,n=function(){g()&&(u(!0),p())},r=function(){g()||(u(!1),m())};return e&&!v.current&&(e.addEventListener("focus",n,!0),e.addEventListener("blur",r,!0),v.current=!0),function(){e&&(e.removeEventListener("focus",n),e.removeEventListener("blur",r))}}),[t,v,u,p,m]),{showMovers:f,gestures:{onMouseMove:p,onMouseLeave:m}}}({ref:h,onChange:function(e){e&&s||O(o,e)}}),k=j.showMovers,y=j.gestures,_=Object(b.useViewportMatch)("medium","<")||a;if(c&&!Object(p.hasBlockSupport)(c,"__experimentalToolbar",!0))return null;var E=_||k;if(0===r.length)return null;var w=f&&g,S=r.length>1,B=u()("block-editor-block-toolbar",E&&"is-showing-movers");return Object(l.createElement)("div",{className:B},Object(l.createElement)("div",Object(i.a)({ref:h},y),!S&&Object(l.createElement)("div",{className:"block-editor-block-toolbar__block-parent-selector-wrapper"},Object(l.createElement)(ou,{clientIds:r})),(w||S)&&Object(l.createElement)(v.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls"},Object(l.createElement)(ju,{clientIds:r}),Object(l.createElement)(ru,{clientIds:r,hideDragHandle:t||s}))),w&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"}),Object(l.createElement)(Za.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"})),Object(l.createElement)(Hu,{clientIds:r}))}var qu=function(e){var t=e.focusOnMount,n=Object(Fe.a)(e,["focusOnMount"]),r=Object(m.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockName,r=t.getSelectedBlockClientIds,o=e(p.store).getBlockType,c=r()[0];return{blockType:c&&o(n(c))}}),[]).blockType;return r&&!Object(p.hasBlockSupport)(r,"__experimentalToolbar",!0)?null:Object(l.createElement)("div",{className:"block-editor-block-contextual-toolbar-wrapper"},Object(l.createElement)(tu,Object(i.a)({focusOnMount:t,className:"block-editor-block-contextual-toolbar","aria-label":Object(w.__)("Block tools")},n),Object(l.createElement)(Ku,null)))};function $u(e){var t=e("core/block-editor"),n=t.isNavigationMode,r=t.isMultiSelecting,o=t.hasMultiSelection,c=t.isTyping,i=t.isCaretWithinFormattedText,a=t.getSettings,l=t.getLastMultiSelectedBlockClientId;return{isNavigationMode:n(),isMultiSelecting:r(),isTyping:c(),isCaretWithinFormattedText:i(),hasMultiSelection:o(),hasFixedToolbar:a().hasFixedToolbar,lastClientId:l()}}function Yu(e){var t=e.clientId,n=e.rootClientId,r=e.isValid,o=e.isEmptyDefaultBlock,c=e.capturingClientId,i=Object(m.useSelect)($u,[]),a=i.isNavigationMode,s=i.isMultiSelecting,d=i.isTyping,f=i.isCaretWithinFormattedText,p=i.hasMultiSelection,g=i.hasFixedToolbar,O=i.lastClientId,h=Object(b.useViewportMatch)("medium"),j=Object(l.useState)(!1),k=Object(Me.a)(j,2),y=k[0],_=k[1],E=Object(l.useState)(!1),C=Object(Me.a)(E,2),w=C[0],S=C[1],B=Object(l.useContext)(Zu),I=Object(m.useDispatch)("core/block-editor").stopTyping,x=!d&&!a&&o&&r,P=a,T=!a&&!g&&h&&!x&&!s&&(!d||f),N=!(a||T||g||o);Object(Ja.useShortcut)("core/block-editor/focus-toolbar",Object(l.useCallback)((function(){_(!0),I(!0)}),[]),{bindGlobal:!0,eventName:"keydown",isDisabled:!N}),Object(l.useEffect)((function(){T||_(!1)}),[T]);var D=Object(l.useRef)();if(Object(l.useEffect)((function(){D.current=void 0}),[t]),!(P||T||y||x))return null;var A=B[t];if(!A)return null;var R=A.ownerDocument;c&&(A=at(c,R));var L=A;if(p){var M=B[O];if(!M)return null;L={top:A,bottom:M}}var F=x?"top left right":"top right left",V=x?void 0:R.defaultView.frameElement||Object(rl.getScrollContainer)(A)||R.body;return Object(l.createElement)(v.Popover,{noArrow:!0,animate:!1,position:F,focusOnMount:!1,anchorRef:L,className:"block-editor-block-list__block-popover",__unstableStickyBoundaryElement:V,__unstableSlotName:"block-toolbar",__unstableBoundaryParent:!0,__unstableObserveElement:A,shouldAnchorIncludePadding:!0},(T||y)&&Object(l.createElement)("div",{onFocus:function(){S(!0)},onBlur:function(){S(!1)},tabIndex:-1,className:u()("block-editor-block-list__block-popover-inserter",{"is-visible":w})},Object(l.createElement)(Rs,{clientId:t,rootClientId:n,__experimentalIsQuick:!0})),(T||y)&&Object(l.createElement)(qu,{focusOnMount:y,__experimentalInitialIndex:D.current,__experimentalOnIndexChange:function(e){D.current=e}}),P&&Object(l.createElement)(Zs,{clientId:t,rootClientId:n,blockElement:A}),x&&Object(l.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},Object(l.createElement)(Rs,{position:"bottom right",rootClientId:n,clientId:t,__experimentalIsQuick:!0})))}function Xu(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getFirstMultiSelectedBlockClientId,o=t.getBlockRootClientId,c=t.__unstableGetBlockWithoutInnerBlocks,i=t.getBlockParents,a=t.__experimentalGetBlockListSettingsForBlocks,l=n()||r();if(l){var s,u=c(l)||{},b=u.name,f=u.attributes,m=void 0===f?{}:f,v=u.isValid,g=i(l),O=a(g),h=Object(d.findIndex)(O,["__experimentalCaptureToolbars",!0]);return-1!==h&&(s=g[h]),{clientId:l,rootClientId:o(l),name:b,isValid:v,isEmptyDefaultBlock:b&&Object(p.isUnmodifiedDefaultBlock)({name:b,attributes:m}),capturingClientId:s}}}function Qu(){var e=Object(m.useSelect)(Xu,[]);if(!e)return null;var t=e.clientId,n=e.rootClientId,r=e.name,o=e.isValid,c=e.isEmptyDefaultBlock,i=e.capturingClientId;return r?Object(l.createElement)(Yu,{clientId:t,rootClientId:n,isValid:o,isEmptyDefaultBlock:c,capturingClientId:i}):null}var Zu=Object(l.createContext)(),Ju=Object(l.createContext)();function ed(e){var t=e.className,n=Object(l.useRef)(),r=Object(l.useState)({}),o=Object(Me.a)(r,2),c=o[0],i=o[1],a=function(e){var t=Object(l.useState)(!1),n=Object(Me.a)(t,2),r=n[0],o=n[1],c=Object(l.useState)(!1),i=Object(Me.a)(c,2),a=i[0],s=i[1],u=Object(l.useState)(null),d=Object(Me.a)(u,2),b=d[0],f=d[1],p=Object(m.useSelect)((function(e){var t=e("core/block-editor"),n=t.isMultiSelecting,r=t.isBlockInsertionPointVisible,o=t.getBlockInsertionPoint,c=t.getBlockOrder,i=t.getBlockListSettings,a=o(),l=c(a.rootClientId);return{getBlockListSettings:i,isMultiSelecting:n(),isInserterVisible:r(),selectedClientId:l[a.index-1],selectedRootClientId:a.rootClientId}}),[]),v=p.isMultiSelecting,g=p.isInserterVisible,O=p.selectedClientId,h=p.selectedRootClientId,j=p.getBlockListSettings,k=Object(l.useCallback)((function(e){var t;if(e.target.classList.contains("block-editor-block-list__layout")){var n;if(!e.target.classList.contains("is-root-container"))n=(e.target.getAttribute("data-block")?e.target:e.target.closest("[data-block]")).getAttribute("data-block");var c=(null===(t=j(n))||void 0===t?void 0:t.orientation)||"vertical",i=e.target.getBoundingClientRect(),a=e.clientY-i.top,l=e.clientX-i.left,s=Array.from(e.target.children),u=s.find((function(e){return"vertical"===c&&e.offsetTop>a||"horizontal"===c&&e.offsetLeft>l})),d=u?s[s.indexOf(u)-1]:s[s.length-1];if(d&&(d.id||(d=d.firstElementChild))){var b=d.id.slice("block-".length);if(b){var p=d.getBoundingClientRect();"horizontal"===c&&(e.clientY>p.bottom||e.clientYp.right||e.clientX=o.right||a.right<=o.left)return!1}if(Object(rl.isTextField)(n))return!0;if(!n.classList.contains("block-editor-block-list__block"))return!1;if(function(e){return e.classList.contains("block-editor-block-list__layout")||!!e.querySelector(".block-editor-block-list__layout")}(n))return!0;if(n.contains(e))return!1;for(var l,s=1;(l=i[c+s])&&n.contains(l);s++)if(t(l,c+s,i))return!1;return!0}))}function bd(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getMultiSelectedBlocksStartClientId,o=t.getMultiSelectedBlocksEndClientId,c=t.getPreviousBlockClientId,i=t.getNextBlockClientId,a=t.getFirstMultiSelectedBlockClientId,l=t.getLastMultiSelectedBlockClientId,s=t.hasMultiSelection,u=t.getBlockOrder,b=t.isNavigationMode,f=t.isSelectionEnabled,p=t.getBlockSelectionStart,m=t.isMultiSelecting,v=t.getSettings,g=n(),O=r(),h=o(),j=u();return{selectedBlockClientId:g,selectionStartClientId:O,selectionBeforeEndClientId:c(h||g),selectionAfterEndClientId:i(h||g),selectedFirstClientId:a(),selectedLastClientId:l(),hasMultiSelection:s(),firstBlock:Object(d.first)(j),lastBlock:Object(d.last)(j),isNavigationMode:b(),isSelectionEnabled:f(),blockSelectionStart:p(),isMultiSelecting:m(),keepCaretInsideBlock:v().keepCaretInsideBlock}}function fd(e){var t=e.children,n=Object(l.useRef)(),r=Object(l.useRef)(),o=Object(l.useRef)(),c=Object(l.useRef)(),i=Object(l.useRef)(),a=Object(l.useRef)(),s=Object(l.useRef)(),b=function(e){var t=Object(m.useSelect)(ld,[]),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.multiSelectedBlockClientIds,c=t.hasMultiSelection,i=t.getBlockParents,a=t.selectedBlockClientId,s=Object(m.useDispatch)("core/block-editor"),u=s.startMultiSelect,d=s.stopMultiSelect,b=s.multiSelect,f=s.selectBlock,p=Object(l.useRef)(),v=Object(l.useRef)(),g=Object(l.useRef)();Object(l.useEffect)((function(){var t=e.current.ownerDocument,n=t.defaultView;if(c&&!r){var i=o.length;if(!(i<2)){var l=o[0],s=o[i-1],u=at(l,t),d=at(s,t),b=n.getSelection(),f=t.createRange();u=ad(u,"start"),d=ad(d,"end"),f.setStartBefore(u),f.setEndAfter(d),b.removeAllRanges(),b.addRange(f)}}else{if(!a||r)return;var p=n.getSelection();if(p.rangeCount&&!p.isCollapsed){var m=at(a,t),v=p.getRangeAt(0),g=v.startContainer,O=v.endContainer;!m||m.contains(g)&&m.contains(O)||p.removeAllRanges()}}}),[c,r,o,f,a]);var O=Object(l.useCallback)((function(t){var n=t.isSelectionEnd,r=e.current.ownerDocument.defaultView.getSelection();if(r.rangeCount&&!r.isCollapsed){var o=st(r.focusNode);if(v.current===o){if(f(o),n&&(sd(e.current,!0),r.rangeCount)){var c=r.getRangeAt(0).commonAncestorContainer;g.current.contains(c)&&g.current.focus()}}else{var a=[].concat(Object(pe.a)(i(v.current)),[v.current]),l=[].concat(Object(pe.a)(i(o)),[o]),s=Math.min(a.length,l.length)-1;b(a[s],l[s])}}else sd(e.current,!0)}),[f,i,b]),h=Object(l.useCallback)((function(){var t=e.current.ownerDocument,n=t.defaultView;t.removeEventListener("selectionchange",O),n.removeEventListener("mouseup",h),p.current=n.requestAnimationFrame((function(){O({isSelectionEnd:!0}),d()}))}),[O,d]);return Object(l.useEffect)((function(){var t=e.current.ownerDocument,n=t.defaultView;return function(){t.removeEventListener("selectionchange",O),n.removeEventListener("mouseup",h),n.cancelAnimationFrame(p.current)}}),[O,h]),Object(l.useCallback)((function(t){if(n){var r=e.current.ownerDocument,o=r.defaultView;v.current=t,g.current=r.activeElement,u(),r.addEventListener("selectionchange",O),o.addEventListener("mouseup",h),sd(e.current,!1)}}),[n,u,h])}(n),f=Object(m.useSelect)(bd,[]),p=f.selectedBlockClientId,v=f.selectionStartClientId,g=f.selectionBeforeEndClientId,O=f.selectionAfterEndClientId,h=f.selectedFirstClientId,j=f.selectedLastClientId,k=f.hasMultiSelection,y=f.firstBlock,_=f.lastBlock,E=f.isNavigationMode,C=f.isSelectionEnabled,S=f.blockSelectionStart,B=f.isMultiSelecting,I=f.keepCaretInsideBlock,x=Object(m.useDispatch)("core/block-editor"),P=x.multiSelect,T=x.selectBlock,N=x.setNavigationMode;function D(e){var t=e?g:O;t&&P(v||p,t)}function A(e){var t=e?h:j;t&&T(t)}Object(l.useEffect)((function(){k&&!B&&c.current.focus()}),[k,B]);var R=u()("block-editor-writing-flow",{"is-navigate-mode":E});return Object(l.createElement)(ud.Provider,{value:b},Object(l.createElement)(id,{ref:r,selectedClientId:p,containerRef:n,noCapture:a,hasMultiSelection:k,multiSelectionContainer:c}),Object(l.createElement)("div",{ref:c,tabIndex:k?"0":void 0,"aria-label":k?Object(w.__)("Multiple selected blocks"):void 0,style:{position:"fixed"},onKeyDown:function(e){var t=e.keyCode,n=e.shiftKey,c=t===Ht.UP,i=t===Ht.DOWN,l=t===Ht.LEFT,s=t===Ht.RIGHT,u=c||l,d=l||s||(c||i);if(t===Ht.TAB)a.current=!0,n?r.current.focus():o.current.focus();else if(d){(n?D:A)(u),e.preventDefault()}}}),Object(l.createElement)("div",{ref:n,className:R,onKeyDown:function(e){var t=e.keyCode,c=e.target;if(n.current.contains(c)){var l=t===Ht.UP,u=t===Ht.DOWN,b=t===Ht.LEFT,f=t===Ht.RIGHT,m=t===Ht.TAB,v=t===Ht.ESCAPE,h=l||b,j=b||f,k=l||u,E=j||k,C=e.shiftKey,w=C||e.ctrlKey||e.altKey||e.metaKey,S=k?rl.isVerticalEdge:rl.isHorizontalEdge,B=n.current.ownerDocument,x=B.defaultView;if(p)if(m){var T=at(p,B);if(C){if(c===T)return a.current=!0,void r.current.focus()}else{var A=rl.focus.tabbable.find(T);if(c===(Object(d.last)(A)||T))return a.current=!0,void o.current.focus()}}else v&&N(!0);if(k?s.current||(s.current=Object(rl.computeCaretRect)(x)):s.current=null,!E)return Ht.isKeyboardEvent.primary(e)&&(i.current=Object(rl.isEntirelySelected)(c)),void(Ht.isKeyboardEvent.primary(e,"a")&&((c.isContentEditable?i.current:Object(rl.isEntirelySelected)(c))&&(P(y,_),e.preventDefault()),i.current=!0));if(!e.nativeEvent.defaultPrevented&&function(e,t,n){if((t===Ht.UP||t===Ht.DOWN)&&!n)return!0;var r=e.tagName;return"INPUT"!==r&&"TEXTAREA"!==r}(c,t,w)){var R,L="rtl"===(R=c).ownerDocument.defaultView.getComputedStyle(R).direction?!h:h;if(C)(h&&g||!h&&O)&&function(e,t){var r,o,c=dd(e,t,n.current);return!(c&&(r=e,o=c,r.closest(".block-editor-block-list__block")===o.closest(".block-editor-block-list__block")))}(c,h)&&S(c,h)&&(D(h),e.preventDefault());else if(k&&Object(rl.isVerticalEdge)(c,h)&&!I){var M=dd(c,h,n.current,!0);M&&(Object(rl.placeCaretAtVerticalEdge)(M,h,s.current),e.preventDefault())}else if(j&&x.getSelection().isCollapsed&&Object(rl.isHorizontalEdge)(c,L)&&!I){var F=dd(c,L,n.current);Object(rl.placeCaretAtHorizontalEdge)(F,L),e.preventDefault()}}}},onMouseDown:function(e){s.current=null;var t=e.target.ownerDocument;if(E&&p&<(at(p,t),e.target)&&N(!1),C&&0===e.button){var n=st(e.target);n&&(e.shiftKey?S!==n&&(P(S,n),e.preventDefault()):k&&T(n))}}},t),Object(l.createElement)(id,{ref:o,selectedClientId:p,containerRef:n,noCapture:a,hasMultiSelection:k,multiSelectionContainer:c,isReverse:!0}))}function pd(e,t){var n=Object(l.useContext)(ud),r=Object(m.useSelect)((function(e){var n=e("core/block-editor"),r=n.isBlockSelected,o=n.getBlockRootClientId,c=n.getBlockIndex;return{isSelected:r(t),rootClientId:o(t),index:c(t)}}),[t]),o=r.isSelected,c=r.rootClientId,i=r.index,a=Object(m.useDispatch)("core/block-editor"),s=a.insertDefaultBlock,u=a.removeBlock,d=a.selectBlock;Object(l.useEffect)((function(){if(!o){function r(n){lt(e.current,n.target)&&d(t)}return e.current.addEventListener("focusin",r),function(){e.current.removeEventListener("focusin",r)}}function a(n){var r=n.keyCode,o=n.target;r!==Ht.ENTER&&r!==Ht.BACKSPACE&&r!==Ht.DELETE||o!==e.current||Object(rl.isTextField)(o)||(n.preventDefault(),r===Ht.ENTER?s({},c,i+1):u(t))}function l(e){1===e.buttons&&n(t)}function b(e){e.preventDefault()}return e.current.addEventListener("keydown",a),e.current.addEventListener("mouseleave",l),e.current.addEventListener("dragstart",b),function(){e.current.removeEventListener("mouseleave",l),e.current.removeEventListener("keydown",a),e.current.removeEventListener("dragstart",b)}}),[o,c,i,n,s,u,d])}function md(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vd(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.__unstableIsHtml,r=Object(l.useRef)(),o=e.ref||r,c=Object(l.useContext)(Ju),i=Object(l.useContext)(jd),s=i.clientId,b=i.isSelected,f=i.isFirstMultiSelected,p=i.isLastMultiSelected,m=i.isPartOfMultiSelection,v=i.enableAnimation,g=i.index,O=i.className,h=i.name,j=i.mode,k=i.blockTitle,y=i.wrapperProps,_=void 0===y?{}:y;Object(l.useEffect)((function(){if(b||f||p){var e=o.current;return c((function(t){return vd(vd({},t),{},Object(a.a)({},s,e))})),function(){c((function(e){return Object(d.omit)(e,s)}))}}}),[b,f,p]),Object(l.useEffect)((function(){var e=o.current;c((function(t){return t[s]&&t[s]!==e?vd(vd({},t),{},Object(a.a)({},s,e)):t}))}));var E=Object(w.sprintf)(Object(w.__)("Block: %s"),k);rd(o,s),pd(o,s),il(o,b||m,b||f,v,g);var C=od(o),S=cd(s),B="html"!==j||n?"":"-visual";return vd(vd(vd({},_),e),{},{ref:o,id:"block-".concat(s).concat(B),tabIndex:0,role:"group","aria-label":E,"data-block":s,"data-type":h,"data-title":k,className:u()(O,e.className,_.className,S,{"is-hovered":C}),style:vd(vd({},_.style),e.style)})}function Od(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hd(e){for(var t=1;t1||Object(p.hasBlockSupport)(q,"lightBlockWrapper",!1),Y=_===Object(p.getUnregisteredTypeHandlerName)();q.getEditWrapperProps&&(t=w,n=q.getEditWrapperProps(C),r=hd(hd({},t),n),t&&n&&t.className&&n.className&&(r.className=u()(t.className,n.className)),t&&n&&t.style&&n.style&&(r.style=hd(hd({},t.style),n.style)),w=r);var X=$&&Object(p.hasBlockSupport)(q,"className",!0)?Object(p.getBlockDefaultClassName)(_):null,Q=$?C.className:null,Z=w&&!!w["data-align"],J=u()(X,Q,"block-editor-block-list__block",{"wp-block":!Z,"has-warning":!E||!!W||Y,"is-selected":s&&!L,"is-highlighted":M,"is-multi-selected":f,"is-reusable":Object(p.isReusableBlock)(q),"is-dragging":L,"is-typing":h,"is-focused":F&&A&&(s||j),"is-focus-mode":F&&A,"is-outline-mode":V,"has-child-selected":j&&!L,"is-active-entity":D===a},y),ee=Object(l.createElement)(qa,{name:_,isSelected:s,attributes:C,setAttributes:S,insertBlocksAfter:c?void 0:I,onReplace:c?void 0:B,onRemove:c?void 0:z,mergeBlocks:c?void 0:x,clientId:a,isSelectionEnabled:k,toggleSelection:P});if(Z){var te={"data-align":w["data-align"]};ee=Object(l.createElement)("div",Object(i.a)({className:"wp-block"},te),ee)}var ne,re={clientId:a,isSelected:s,isFirstMultiSelected:g,isLastMultiSelected:O,isPartOfMultiSelection:v,enableAnimation:N,index:T,className:J,isLocked:c,name:_,mode:o,blockTitle:q.title,wrapperProps:Object(d.omit)(w,["data-align"])},oe=Object(l.useMemo)((function(){return re}),Object.values(re));return ne=E?"html"===o?Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{style:{display:"none"}},ee),Object(l.createElement)(kd,{isHtml:!0},Object(l.createElement)(Dl,{clientId:a}))):$?ee:Object(l.createElement)(kd,w,ee):Object(l.createElement)(kd,null,Object(l.createElement)(Sl,{clientId:a}),Object(l.createElement)("div",null,Object(p.getSaveElement)(q,C))),Object(l.createElement)(jd.Provider,{value:oe},Object(l.createElement)(Pl,{onError:function(){return K(!0)}},ne),!!W&&Object(l.createElement)(kd,null,Object(l.createElement)(Il,null)))}));function Cd(e){var t=e.level;return Object(d.times)(t-1,(function(e){var n=e+2===t;return Object(l.createElement)("div",{key:e,"aria-hidden":"true",className:u()("block-editor-block-navigator-indentation",{"has-item":n})})}))}var wd=function(e,t,n){return Object(w.sprintf)(Object(w.__)("Block %1$d of %2$d, Level %3$d"),e,t,n)};var Sd=Object(l.forwardRef)((function e(t,n){var r=t.className,o=t.block.clientId,c=t.isSelected,i=t.onClick,a=t.position,s=t.siblingBlockCount,d=t.level,f=t.tabIndex,p=t.onFocus,m=t.onDragStart,g=t.onDragEnd,O=t.draggable,h=Da(o),j=Object(b.useInstanceId)(e),k="block-navigation-block-select-button__".concat(j),y=wd(a,s,d);return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(v.Button,{className:u()("block-editor-block-navigation-block-select-button",r),onClick:i,"aria-describedby":k,ref:n,tabIndex:f,onFocus:p,onDragStart:m,onDragEnd:g,draggable:O},Object(l.createElement)(Cd,{level:d}),Object(l.createElement)(Vr,{icon:null==h?void 0:h.icon,showColors:!0}),Object(l.createElement)(Aa,{clientId:o}),c&&Object(l.createElement)(v.VisuallyHidden,null,Object(w.__)("(selected block)"))),Object(l.createElement)("div",{className:"block-editor-block-navigation-block-select-button__description",id:k},y))}));function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Id(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function Ad(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0,x=g||k,P=u()("block-editor-block-navigation-block__mover-cell",{"is-visible":x}),T=jl().__experimentalFeatures,N=u()("block-editor-block-navigation-block__menu-cell",{"is-visible":x});return Object(l.useEffect)((function(){T&&n&&b.current.focus()}),[T,n]),Object(l.createElement)(ll,{className:u()({"is-selected":n,"is-dragging":C}),onMouseEnter:function(){return O(!0)},onMouseLeave:function(){return O(!1)},onFocus:function(){return y(!0)},onBlur:function(){return y(!1)},level:c,position:o,rowCount:i,path:d,id:"block-navigation-block-".concat(_),"data-block":_},Object(l.createElement)(v.__experimentalTreeGridCell,{className:"block-editor-block-navigation-block__contents-cell",colSpan:I?void 0:2,ref:b},(function(e){var i=e.ref,s=e.tabIndex,u=e.onFocus;return Object(l.createElement)("div",{className:"block-editor-block-navigation-block__contents-container"},Object(l.createElement)(Nd,{block:t,onClick:function(){return r(t.clientId)},isSelected:n,position:o,siblingBlockCount:a,level:c,ref:i,tabIndex:s,onFocus:u}))})),I&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(v.__experimentalTreeGridCell,{className:P,withoutGridItem:!0},Object(l.createElement)(v.__experimentalTreeGridItem,null,(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(l.createElement)(gl,{orientation:"vertical",clientIds:[_],ref:t,tabIndex:n,onFocus:r})})),Object(l.createElement)(v.__experimentalTreeGridItem,null,(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(l.createElement)(Ol,{orientation:"vertical",clientIds:[_],ref:t,tabIndex:n,onFocus:r})})))),T&&Object(l.createElement)(v.__experimentalTreeGridCell,{className:N},(function(e){var t=e.ref,n=e.tabIndex,o=e.onFocus;return Object(l.createElement)(Vu,{clientIds:[_],icon:tl.a,toggleProps:{ref:t,tabIndex:n,onFocus:o},disableOpenOnArrowDown:!0,__experimentalSelectBlock:r},(function(e){var t=e.onClose;return Object(l.createElement)(v.MenuGroup,null,Object(l.createElement)(v.MenuItem,{onClick:Object(el.a)(ei.a.mark((function e(){var n,r,o;return ei.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!S.length){e.next=20;break}n=Dd(S),e.prev=2,n.s();case 4:if((r=n.n()).done){e.next=10;break}return o=r.value,e.next=8,B(o);case 8:e.next=4;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),n.e(e.t0);case 15:return e.prev=15,n.f(),e.finish(15);case 18:e.next=22;break;case 20:return e.next=22,B(null);case 22:return e.next=24,B(_);case 24:t();case 25:case"end":return e.stop()}}),e,null,[[2,12,15,18]])})))},Object(w.__)("Go to block")))}))})))}function Ld(e){var t=e.parentBlockClientId,n=e.position,r=e.level,o=e.rowCount,c=e.path,i=Object(m.useSelect)((function(e){var n=e("core/block-editor"),r=n.isBlockBeingDragged,o=n.isAncestorBeingDragged;return r(t)||o(t)}),[t]),a=Object(b.useInstanceId)(Ld),s="block-navigation-appender-row__description_".concat(a),d=Object(w.sprintf)(Object(w.__)("Add block at position %1$d, Level %2$d"),n,r);return Object(l.createElement)(ll,{className:u()({"is-dragging":i}),level:r,position:n,rowCount:o,path:c},Object(l.createElement)(v.__experimentalTreeGridCell,{className:"block-editor-block-navigation-appender__cell",colSpan:"3"},(function(e){var n=e.ref,o=e.tabIndex,c=e.onFocus;return Object(l.createElement)("div",{className:"block-editor-block-navigation-appender__container"},Object(l.createElement)(Cd,{level:r}),Object(l.createElement)(Rs,{rootClientId:t,__experimentalIsQuick:!0,__experimentalSelectBlockOnInsert:!1,"aria-describedby":s,toggleProps:{ref:n,tabIndex:o,onFocus:c}}),Object(l.createElement)("div",{className:"block-editor-block-navigation-appender__description",id:s},d))})))}function Md(e){var t=e.blocks,n=e.selectBlock,r=e.selectedBlockClientId,o=e.showAppender,c=e.showBlockMovers,i=e.showNestedBlocks,a=e.parentBlockClientId,s=e.level,u=void 0===s?1:s,b=e.terminatedLevels,f=void 0===b?[]:b,p=e.path,m=void 0===p?[]:p,v=!a,g=Object(d.compact)(t),O=function(e){return o&&!v&&r===e},h=O(a),j=g.length,k=h?j+1:j,y=k;return Object(l.createElement)(l.Fragment,null,Object(d.map)(g,(function(e,t){var a=e.clientId,s=e.innerBlocks,d=t+1,b=k===d?[].concat(Object(pe.a)(f),[u]):f,p=[].concat(Object(pe.a)(m),[d]),v=i&&!!s&&!!s.length,g=O(a);return Object(l.createElement)(l.Fragment,{key:a},Object(l.createElement)(Rd,{block:e,onClick:n,isSelected:r===a,level:u,position:d,rowCount:k,siblingBlockCount:j,showBlockMovers:c,terminatedLevels:f,path:p}),(v||g)&&Object(l.createElement)(Md,{blocks:s,selectedBlockClientId:r,selectBlock:n,showAppender:o,showBlockMovers:c,showNestedBlocks:i,parentBlockClientId:a,level:u+1,terminatedLevels:b,path:p}))})),h&&Object(l.createElement)(Ld,{parentBlockClientId:a,position:k,rowCount:y,level:u,terminatedLevels:f,path:[].concat(Object(pe.a)(m),[y])}))}function Fd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vd(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Hd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hd(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function Hd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.x&&t.top<=e.y&&t.bottom>=e.y}Md.defaultProps={selectBlock:function(){}};var Gd=["top","bottom"];function Ud(e){var t=Object(l.useState)(),n=Object(Me.a)(t,2),r=n[0],o=void 0===r?{}:r,c=n[1],i=Us(o.rootClientId,o.blockIndex),s=Object(v.__unstableUseDropZone)(function(e){for(var t=1;t0||function(e,t){var n=t.left+t.width/2;return e.x>n}(t,c)))return{rootClientId:r.clientId,blockIndex:0,dropPosition:"inside"};if(r.canInsertDraggedBlocksAsSibling){var O=g?1:0;return{rootClientId:r.rootClientId,clientId:r.clientId,blockIndex:r.blockIndex+O,dropPosition:n}}}}(b.current,u);e&&c(e)}}),[b,u]),u)return o}function Wd(e){var t=e.__experimentalFeatures,n=Object(Fe.a)(e,["__experimentalFeatures"]),r=Object(l.useRef)(),o=Ud(r);t||(o=void 0);var c=Object(l.useMemo)((function(){return{__experimentalFeatures:t,blockDropTarget:o}}),[t,o]);return Object(l.createElement)(v.__experimentalTreeGrid,{className:"block-editor-block-navigation-tree","aria-label":Object(w.__)("Block navigation structure"),ref:r},Object(l.createElement)(hl.Provider,{value:c},Object(l.createElement)(Md,n)))}var Kd=Object(b.compose)(Object(m.withSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getBlockHierarchyRootClientId,o=t.__unstableGetBlockWithBlockTree,c=t.__unstableGetBlockTree,i=n();return{rootBlocks:c(),rootBlock:i?o(r(i)):null,selectedBlockClientId:i}})),Object(m.withDispatch)((function(e,t){var n=t.onSelect,r=void 0===n?d.noop:n;return{selectBlock:function(t){e("core/block-editor").selectBlock(t),r(t)}}})))((function(e){var t=e.rootBlock,n=e.rootBlocks,r=e.selectedBlockClientId,o=e.selectBlock,c=e.__experimentalFeatures;if(!n||0===n.length)return null;var i=t&&(t.clientId!==r||t.innerBlocks&&0!==t.innerBlocks.length);return Object(l.createElement)("div",{className:"block-editor-block-navigation__container"},Object(l.createElement)("p",{className:"block-editor-block-navigation__label"},Object(w.__)("List view")),Object(l.createElement)(Wd,{blocks:i?[t]:n,selectedBlockClientId:r,selectBlock:o,__experimentalFeatures:c,showNestedBlocks:!0}))})),qd=Object(l.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},Object(l.createElement)(v.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));function $d(e){var t=e.isEnabled,n=e.onToggle,r=e.isOpen,o=e.innerRef,c=Object(Fe.a)(e,["isEnabled","onToggle","isOpen","innerRef"]);Object(Ja.useShortcut)("core/edit-post/toggle-block-navigation",Object(l.useCallback)(n,[n]),{bindGlobal:!0,isDisabled:!t});var a=Object(m.useSelect)((function(e){return e(Ja.store).getShortcutRepresentation("core/edit-post/toggle-block-navigation")}),[]);return Object(l.createElement)(v.Button,Object(i.a)({},c,{ref:o,icon:qd,"aria-expanded":r,"aria-haspopup":"true",onClick:t?n:void 0,label:Object(w.__)("Outline"),className:"block-editor-block-navigation",shortcut:a,"aria-disabled":!t}))}var Yd=Object(l.forwardRef)((function(e,t){var n=e.isDisabled,r=e.__experimentalFeatures,o=Object(Fe.a)(e,["isDisabled","__experimentalFeatures"]),c=Object(m.useSelect)((function(e){return!!e("core/block-editor").getBlockCount()}),[])&&!n;return Object(l.createElement)(v.Dropdown,{contentClassName:"block-editor-block-navigation__popover",position:"bottom right",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(l.createElement)($d,Object(i.a)({},o,{innerRef:t,isOpen:n,onToggle:r,isEnabled:c}))},renderContent:function(e){var t=e.onClose;return Object(l.createElement)(Kd,{onSelect:t,__experimentalFeatures:r})}})})),Xd=n(129),Qd=[Ht.rawShortcut.primary("z"),Ht.rawShortcut.primaryShift("z"),Ht.rawShortcut.primary("y")],Zd=Object(l.createElement)(v.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(d.fromPairs)(Qd.map((function(e){return[e,function(e){return e.preventDefault()}]})))}),Jd=function(){return Zd};function eb(e){return e.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)})).map((function(e){return'')})).join("")}var tb={position:"bottom right",isAlternate:!0},nb=function(){return Object(l.createElement)("div",{className:"block-editor-format-toolbar"},Object(l.createElement)(v.ToolbarGroup,null,["bold","italic","link","text-color"].map((function(e){return Object(l.createElement)(v.Slot,{name:"RichText.ToolbarControls.".concat(e),key:e})})),Object(l.createElement)(v.Slot,{name:"RichText.ToolbarControls"},(function(e){return 0!==e.length&&Object(l.createElement)(v.ToolbarItem,null,(function(t){return Object(l.createElement)(v.DropdownMenu,{icon:bl.a,label:Object(w.__)("More"),toggleProps:t,controls:Object(d.orderBy)(e.map((function(e){return Object(Me.a)(e,1)[0].props})),"title"),popoverProps:tb})}))}))))},rb=function(e){var t=e.inline,n=e.anchorRef;return t?Object(l.createElement)(v.Popover,{noArrow:!0,position:"top center",focusOnMount:!1,anchorRef:n,className:"block-editor-rich-text__inline-format-toolbar",__unstableSlotName:"block-toolbar"},Object(l.createElement)(nb,null)):Object(l.createElement)(Za,null,Object(l.createElement)(nb,null))};function ob(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cb(e){for(var t=1;t0,Ie=a,xe=s;Array.isArray(a)&&(Ie=p.children.toHTML(a),xe=function(e){return s(p.children.fromDOM(Object(c.__unstableCreateElement)(document,e).childNodes))});var Pe=Object(l.useCallback)((function(e,t){Ee(ae,P,e,t)}),[ae,P]),Te=Object(l.useCallback)((function(e){var t=e.value,n=e.isReverse;S&&S(!n),w&&Object(c.isEmpty)(t)&&n&&w(!n)}),[S,w]),Ne=Object(l.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(j&&B){var n=[],r=Object(c.split)(e),o=Object(Me.a)(r,2),i=o[0],a=o[1],l=t.length>0,s=-1;l&&Object(c.isEmpty)(i)||(n.push(B(Object(c.toHTMLString)({value:i,multilineTag:we}))),s+=1),l?(n.push.apply(n,Object(pe.a)(t)),s+=t.length):x&&n.push(x()),(l||x)&&Object(c.isEmpty)(a)||n.push(B(Object(c.toHTMLString)({value:a,multilineTag:we})));var u=l?s:1,d=l?-1:null;j(n,u,d)}}),[j,B,we,x]),De=Object(l.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.shiftKey,o=j&&B;if(j){var i=Object(p.getBlockTransforms)("from").filter((function(e){return"enter"===e.type})),a=Object(p.findTransform)(i,(function(e){return e.regExp.test(t.text)}));a&&(j([a.transform({content:t.text})]),Ce())}if(f)r?R||n(Object(c.insert)(t,"\n")):o&&Object(c.__unstableIsEmptyLine)(t)?Ne(t):n(Object(c.__unstableInsertLineSeparator)(t));else{var l=t.text,s=t.start,u=t.end,d=I&&s===u&&u===l.length;r||!o&&!d?R||n(Object(c.insert)(t,"\n")):!o&&d?I():o&&Ne(t)}}),[j,B,Ce,f,Ne,I]),Ae=Object(l.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.html,i=e.plainText,a=e.files,l=e.activeFormats;if(N)n(Object(c.insert)(t,Object(c.create)({text:i})));else{if(a&&a.length&&!r){var s=Object(p.pasteHandler)({HTML:eb(a),mode:"BLOCKS",tagName:o,preserveWhiteSpace:T});return window.console.log("Received items:\n\n",a),void(j&&Object(c.isEmpty)(t)?j(s):Ne(t,s))}var u,d=j&&B?"AUTO":"INLINE";"AUTO"===d&&Object(c.isEmpty)(t)&&(u=i,Object(Xd.regexp)(".*").test(u))&&(d="BLOCKS"),D&&Object(c.isEmpty)(t)&&Object(gs.isURL)(i.trim())&&(d="BLOCKS");var b=Object(p.pasteHandler)({HTML:r,plainText:i,mode:d,tagName:o,preserveWhiteSpace:T});if("string"==typeof b){var m=Object(c.create)({html:b});if(l.length)for(var v=m.formats.length;v--;)m.formats[v]=[].concat(Object(pe.a)(l),Object(pe.a)(m.formats[v]||[]));f&&(m=Object(c.replace)(m,/\n+/g,c.__UNSTABLE_LINE_SEPARATOR)),n(Object(c.insert)(t,m))}else b.length>0&&(j&&Object(c.isEmpty)(t)?j(b,b.length-1,-1):Ne(t,b))}}),[o,j,B,Ne,D,f,T,N]),Re=Object(l.useCallback)((function(e,t){if(j){var n=e.start,r=e.text;if(" "===r.slice(n-1,n)){var o=r.slice(0,n).trim(),i=Object(p.getBlockTransforms)("from").filter((function(e){return"prefix"===e.type})),a=Object(p.findTransform)(i,(function(e){var t=e.prefix;return o===t}));if(a){var l=t(Object(c.slice)(e,n,r.length)),s=a.transform(l);j([s]),Ce()}}}}),[j,Ce]),Le=Object(l.createElement)(c.__experimentalRichText,{clientId:ae,identifier:P,ref:ce,value:Ie,onChange:xe,selectionStart:be,selectionEnd:fe,onSelectionChange:Pe,tagName:o,placeholder:k,allowedFormats:Se,withoutInteractiveFormatting:C,onEnter:De,onDelete:Te,onPaste:Ae,__unstableIsSelected:me,__unstableInputRule:Re,__unstableMultilineTag:we,__unstableIsCaretWithinFormattedText:de,__unstableOnEnterFormattedText:ye,__unstableOnExitFormattedText:_e,__unstableOnCreateUndoLevel:ke,__unstableMarkAutomaticChange:Ce,__unstableDidAutomaticChange:ve,__unstableUndo:Oe,__unstableDisableFormats:A,preserveWhiteSpace:T,disabled:ge,unstableOnFocus:L,__unstableAllowPrefixTransformations:M,__unstableMultilineRootTag:F,onCaretVerticalPositionChange:le,blockIsSelected:void 0!==d?d:se,shouldBlurOnUnmount:he,__unstableMobileNoFocusOnMount:V,deleteEnter:H,placeholderTextColor:z,textAlign:G,selectionColor:U,tagsToEliminate:W,rootTagsToEliminate:K,disableEditingMenu:q,fontSize:$,fontFamily:Y,fontWeight:X,fontStyle:Q,minWidth:Z,maxWidth:J,onBlur:ee,setRef:te,id:ne.id,style:ne.style},(function(e){var t=e.isSelected,n=e.value,o=e.onChange,c=e.onFocus,a=e.editableProps,s=e.editableTagName;return Object(l.createElement)(l.Fragment,null,r&&r({value:n,onChange:o,onFocus:c}),t&&Be&&Object(l.createElement)(rb,{inline:v,anchorRef:ce.current}),t&&Object(l.createElement)(Jd,null),Object(l.createElement)(Gr,{onReplace:j,completers:O,record:n,onChange:o,isSelected:t,contentRef:ce},(function(e){var t=e.listBoxId,n=e.activeId,r=e.onKeyDown;return Object(l.createElement)(s,Object(i.a)({},a,ne,{style:ne.style?cb(cb({},ne.style),a.style):a.style,className:u()("block-editor-rich-text__editable",ne.className,a.className,{"keep-placeholder-on-focus":y}),"aria-autocomplete":t?"list":void 0,"aria-owns":t,"aria-activedescendant":n,onKeyDown:function(e){r(e),a.onKeyDown(e)}}))})))}));return g?(Ul()("wp.blockEditor.RichText wrapperClassName prop",{alternative:"className prop or create your own wrapper div"}),Object(l.createElement)("div",{className:u()("block-editor-rich-text",g)},Le)):Le}));lb.Content=function(e){var t=e.value,n=e.tagName,r=e.multiline,o=Object(Fe.a)(e,["value","tagName","multiline"]);Array.isArray(t)&&(t=p.children.toHTML(t));var c=ib(r);!t&&c&&(t="<".concat(c,">"));var i=Object(l.createElement)(l.RawHTML,null,t);return n?Object(l.createElement)(n,Object(d.omit)(o,["format"]),i):i},lb.isEmpty=function(e){return!e||0===e.length},lb.Content.defaultProps={format:"string",value:""};var sb=lb;function ub(e){var t=e.value,n=e.onChange;return Object(l.createElement)(Td,null,Object(l.createElement)(sb,{value:t,onChange:n,placeholder:Object(w.__)("Navigation item"),keepPlaceholderOnFocus:!0,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"]}))}var db=n(313);var bb=function(e){var t=e.icon,n=void 0===t?db.a:t,r=e.label,o=void 0===r?Object(w.__)("Choose variation"):r,c=e.instructions,i=void 0===c?Object(w.__)("Select a variation to start with."):c,a=e.variations,s=e.onSelect,d=e.allowSkip,b=u()("block-editor-block-variation-picker",{"has-many-variations":a.length>4});return Object(l.createElement)(v.Placeholder,{icon:n,label:o,instructions:i,className:b},Object(l.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":Object(w.__)("Block variations")},a.map((function(e){return Object(l.createElement)("li",{key:e.name},Object(l.createElement)(v.Button,{isSecondary:!0,icon:e.icon,iconSize:48,onClick:function(){return s(e)},className:"block-editor-block-variation-picker__variation",label:e.description||e.title}),Object(l.createElement)("span",{className:"block-editor-block-variation-picker__variation-label",role:"presentation"},e.title))}))),d&&Object(l.createElement)("div",{className:"block-editor-block-variation-picker__skip"},Object(l.createElement)(v.Button,{isLink:!0,onClick:function(){return s()}},Object(w.__)("Skip"))))},fb=function(e,t){if(t&&e){var n=t.filter((function(t){var n=t.attributes;return!(!n||!Object.keys(n).length)&&Object(d.isMatch)(e,n)}));if(1===n.length)return n[0]}};function pb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var mb=function(e){var t=e.blockClientId,n=Object(l.useState)(),r=Object(Me.a)(n,2),o=r[0],c=r[1],i=Object(m.useDispatch)("core/block-editor").updateBlockAttributes,s=Object(m.useSelect)((function(e){var n=e(p.store).getBlockVariations,r=e("core/block-editor"),o=r.getBlockName,c=r.getBlockAttributes,i=t&&o(t);return{variations:i&&n(i,"transform"),blockAttributes:c(t)}}),[t]),u=s.variations,d=s.blockAttributes;if(Object(l.useEffect)((function(){var e;c(null===(e=fb(d,u))||void 0===e?void 0:e.name)}),[d,u]),null==u||!u.length)return null;var b=u.map((function(e){return{value:e.name,label:e.title,info:e.description}})),f=function(e){i(t,function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(l.useRef)(),r=h(),o=r.clientId,c=Object(b.useViewportMatch)("medium","<"),a=Object(m.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockName,r=t.isBlockSelected,i=t.hasSelectedInnerBlock,a=(0,t.isNavigationMode)()||c;return"core/template"!==n(o)&&!r(o)&&!i(o,!0)&&a}),[o,c]),s=e.ref||n,d=t.value&&t.onChange?Wb:Ub;return Gb(Gb({},e),{},{ref:s,className:u()(e.className,"block-editor-block-list__layout",{"has-overlay":a}),children:Object(l.createElement)(d,Object(i.a)({},t,{clientId:o,wrapperRef:s}))})}Kb.DefaultBlockAppender=Mb,Kb.ButtonBlockAppender=Lb,Kb.Content=Object(p.withBlockContentContext)((function(e){var t=e.BlockContent;return Object(l.createElement)(t,null)}));var $b=Kb,Yb=n(220);function Xb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qb(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",n=this.props,r=n.__experimentalFetchLinkSuggestions,o=n.__experimentalHandleURLSuggestions;if(r){var c=!(t&&t.length);if(c||!(t.length<2||!o&&Object(gs.isURL)(t))){this.isUpdatingSuggestions=!0,this.setState({selectedSuggestion:null,loading:!0});var i=r(t,{isInitialSuggestions:c});i.then((function(t){e.suggestionsRequest===i&&(e.setState({suggestions:t,loading:!1,showSuggestions:!!t.length}),t.length?e.props.debouncedSpeak(Object(w.sprintf)(Object(w._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",t.length),t.length),"assertive"):e.props.debouncedSpeak(Object(w.__)("No results."),"assertive"),e.isUpdatingSuggestions=!1)})).catch((function(){e.suggestionsRequest===i&&(e.setState({loading:!1}),e.isUpdatingSuggestions=!1)})),this.suggestionsRequest=i}else this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1})}}},{key:"onChange",value:function(e){var t=e.target.value;this.props.onChange(t),this.props.disableSuggestions||this.updateSuggestions(t.trim())}},{key:"onFocus",value:function(){var e=this.state.suggestions,t=this.props,n=t.disableSuggestions,r=t.value;!r||n||this.isUpdatingSuggestions||e&&e.length||this.updateSuggestions(r.trim())}},{key:"onKeyDown",value:function(e){var t=this.state,n=t.showSuggestions,r=t.selectedSuggestion,o=t.suggestions,c=t.loading;if(n&&o.length&&!c){var i=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case Ht.UP:e.stopPropagation(),e.preventDefault();var a=r?r-1:o.length-1;this.setState({selectedSuggestion:a});break;case Ht.DOWN:e.stopPropagation(),e.preventDefault();var l=null===r||r===o.length-1?0:r+1;this.setState({selectedSuggestion:l});break;case Ht.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(i),this.props.speak(Object(w.__)("Link selected.")));break;case Ht.ENTER:null!==this.state.selectedSuggestion&&(e.stopPropagation(),this.selectLink(i))}}else switch(e.keyCode){case Ht.UP:0!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(0,0));break;case Ht.DOWN:this.props.value.length!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length))}}},{key:"selectLink",value:function(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}},{key:"handleOnClick",value:function(e){this.selectLink(e),this.inputRef.current.focus()}},{key:"render",value:function(){return Object(l.createElement)(l.Fragment,null,this.renderControl(),this.renderSuggestions())}},{key:"renderControl",value:function(){var e=this.props,t=e.label,n=e.className,r=e.isFullWidth,o=e.instanceId,c=e.placeholder,i=void 0===c?Object(w.__)("Paste URL or type to search"):c,a=e.__experimentalRenderControl,s=e.value,d=void 0===s?"":s,b=this.state,f=b.loading,p=b.showSuggestions,m=b.selectedSuggestion,g=b.suggestionsListboxId,O=b.suggestionOptionIdPrefix,h={id:"url-input-control-".concat(o),label:t,className:u()("block-editor-url-input",n,{"is-full-width":r})},j={value:d,required:!0,className:"block-editor-url-input__input",type:"text",onChange:this.onChange,onFocus:this.onFocus,placeholder:i,onKeyDown:this.onKeyDown,role:"combobox","aria-label":Object(w.__)("URL"),"aria-expanded":p,"aria-autocomplete":"list","aria-owns":g,"aria-activedescendant":null!==m?"".concat(O,"-").concat(m):void 0,ref:this.inputRef};return a?a(h,j,f):Object(l.createElement)(v.BaseControl,h,Object(l.createElement)("input",j),f&&Object(l.createElement)(v.Spinner,null))}},{key:"renderSuggestions",value:function(){var e=this,t=this.props,n=t.className,r=t.__experimentalRenderSuggestions,o=t.value,c=void 0===o?"":o,a=t.__experimentalShowInitialSuggestions,s=void 0!==a&&a,b=this.state,f=b.showSuggestions,p=b.suggestions,m=b.selectedSuggestion,g=b.suggestionsListboxId,O=b.suggestionOptionIdPrefix,h=b.loading,j={id:g,ref:this.autocompleteRef,role:"listbox"},k=function(t,n){return{role:"option",tabIndex:"-1",id:"".concat(O,"-").concat(n),ref:e.bindSuggestionNode(n),"aria-selected":n===m}};return Object(d.isFunction)(r)&&f&&p.length?r({suggestions:p,selectedSuggestion:m,suggestionsListProps:j,buildSuggestionItemProps:k,isLoading:h,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:s&&!(c&&c.length)}):!Object(d.isFunction)(r)&&f&&p.length?Object(l.createElement)(v.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(l.createElement)("div",Object(i.a)({},j,{className:u()("block-editor-url-input__suggestions","".concat(n,"__suggestions"))}),p.map((function(t,n){return Object(l.createElement)(v.Button,Object(i.a)({},k(0,n),{key:t.id,className:u()("block-editor-url-input__suggestion",{"is-selected":n===m}),onClick:function(){return e.handleOnClick(t)}}),t.title)})))):null}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.value,r=e.instanceId,o=e.disableSuggestions,c=e.__experimentalShowInitialSuggestions,i=void 0!==c&&c,a=t.showSuggestions,l=n&&n.length;return i||l||(a=!1),!0===o&&(a=!1),{showSuggestions:a,suggestionsListboxId:"block-editor-url-input-suggestions-".concat(r),suggestionOptionIdPrefix:"block-editor-url-input-suggestion-".concat(r)}}}]),n}(l.Component),of=Object(b.compose)(b.withSafeTimeout,v.withSpokenMessages,b.withInstanceId,Object(m.withSelect)((function(e,t){if(!Object(d.isFunction)(t.__experimentalFetchLinkSuggestions))return{__experimentalFetchLinkSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}})))(rf),cf=function(e){var t,n=e.searchTerm,r=e.onClick,o=e.itemProps,c=e.isSelected,a=e.buttonText;return n?(t=a?Object(d.isFunction)(a)?a(n):a:Object(l.createInterpolateElement)(Object(w.sprintf)(Object(w.__)("Create: %s"),n),{mark:Object(l.createElement)("mark",null)}),Object(l.createElement)(v.Button,Object(i.a)({},o,{className:u()("block-editor-link-control__search-create block-editor-link-control__search-item",{"is-selected":c}),onClick:r}),Object(l.createElement)(Vl.a,{className:"block-editor-link-control__search-item-icon",icon:Rl.a}),Object(l.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(l.createElement)("span",{className:"block-editor-link-control__search-item-title"},t)))):null},af=Object(l.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(l.createElement)(S.Path,{d:"M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zM1.11 9.68h2.51c.04.91.167 1.814.38 2.7H1.84c-.403-.85-.65-1.764-.73-2.7zm8.57-5.4V1.19c.964.366 1.756 1.08 2.22 2 .205.347.386.708.54 1.08l-2.76.01zm3.22 1.35c.232.883.37 1.788.41 2.7H9.68v-2.7h3.22zM8.32 1.19v3.09H5.56c.154-.372.335-.733.54-1.08.462-.924 1.255-1.64 2.22-2.01zm0 4.44v2.7H4.7c.04-.912.178-1.817.41-2.7h3.21zm-4.7 2.69H1.11c.08-.936.327-1.85.73-2.7H4c-.213.886-.34 1.79-.38 2.7zM4.7 9.68h3.62v2.7H5.11c-.232-.883-.37-1.788-.41-2.7zm3.63 4v3.09c-.964-.366-1.756-1.08-2.22-2-.205-.347-.386-.708-.54-1.08l2.76-.01zm1.35 3.09v-3.04h2.76c-.154.372-.335.733-.54 1.08-.464.92-1.256 1.634-2.22 2v-.04zm0-4.44v-2.7h3.62c-.04.912-.178 1.817-.41 2.7H9.68zm4.71-2.7h2.51c-.08.936-.327 1.85-.73 2.7H14c.21-.87.337-1.757.38-2.65l.01-.05zm0-1.35c-.046-.894-.176-1.78-.39-2.65h2.16c.403.85.65 1.764.73 2.7l-2.5-.05zm1-4H13.6c-.324-.91-.793-1.76-1.39-2.52 1.244.56 2.325 1.426 3.14 2.52h.04zm-9.6-2.52c-.597.76-1.066 1.61-1.39 2.52H2.65c.815-1.094 1.896-1.96 3.14-2.52zm-3.15 12H4.4c.324.91.793 1.76 1.39 2.52-1.248-.567-2.33-1.445-3.14-2.55l-.01.03zm9.56 2.52c.597-.76 1.066-1.61 1.39-2.52h1.76c-.82 1.08-1.9 1.933-3.14 2.48l-.01.04z"})),lf=function(e){var t=e.itemProps,n=e.suggestion,r=e.isSelected,o=void 0!==r&&r,c=e.onClick,a=e.isURL,s=void 0!==a&&a,d=e.searchTerm,b=void 0===d?"":d,f=e.shouldShowType,p=void 0!==f&&f;return Object(l.createElement)(v.Button,Object(i.a)({},t,{onClick:c,className:u()("block-editor-link-control__search-item",{"is-selected":o,"is-url":s,"is-entity":!s})}),s&&Object(l.createElement)(Vl.a,{className:"block-editor-link-control__search-item-icon",icon:af}),Object(l.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(l.createElement)("span",{className:"block-editor-link-control__search-item-title"},Object(l.createElement)(v.TextHighlight,{text:n.title,highlight:b})),Object(l.createElement)("span",{"aria-hidden":!s,className:"block-editor-link-control__search-item-info"},!s&&(Object(gs.filterURLForDisplay)(Object(gs.safeDecodeURI)(n.url))||""),s&&Object(w.__)("Press ENTER to add this link"))),p&&n.type&&Object(l.createElement)("span",{className:"block-editor-link-control__search-item-type"},"post_tag"===n.type?"tag":n.type))};function sf(e){var t=e.instanceId,n=e.withCreateSuggestion,r=e.currentInputValue,o=e.handleSuggestionClick,c=e.suggestionsListProps,a=e.buildSuggestionItemProps,s=e.suggestions,d=e.selectedSuggestion,b=e.isLoading,f=e.isInitialSuggestions,p=e.createSuggestionButtonText,m=e.suggestionsQuery,g=u()("block-editor-link-control__search-results",{"is-loading":b}),O=["url","mailto","tel","internal"],h=1===s.length&&O.includes(s[0].type.toLowerCase()),j=n&&!h&&!f,k=!(null!=m&&m.type),y="block-editor-link-control-search-results-label-".concat(t),_=f?Object(w.__)("Recently updated"):Object(w.sprintf)(Object(w.__)('Search results for "%s"'),r),E=Object(l.createElement)(f?l.Fragment:v.VisuallyHidden,{},Object(l.createElement)("span",{className:"block-editor-link-control__search-results-label",id:y},_));return Object(l.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},E,Object(l.createElement)("div",Object(i.a)({},c,{className:g,"aria-labelledby":y}),s.map((function(e,t){return j&&"__CREATE__"===e.type?Object(l.createElement)(cf,{searchTerm:r,buttonText:p,onClick:function(){return o(e)},key:e.type,itemProps:a(e,t),isSelected:t===d}):"__CREATE__"===e.type?null:Object(l.createElement)(lf,{key:"".concat(e.id,"-").concat(e.type),itemProps:a(e,t),suggestion:e,index:t,onClick:function(){o(e)},isSelected:t===d,isURL:O.includes(e.type.toLowerCase()),searchTerm:r,shouldShowType:k})}))))}function uf(e){var t=Object(d.startsWith)(e,"#");return Object(gs.isURL)(e)||e&&e.includes("www.")||t}function df(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bf(e){for(var t=1;t=1)&&k(gf(gf({},Object(d.omit)(c,"id","url")),n),n);case 13:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(t){return e.apply(this,arguments)}}();return Object(l.createElement)("form",{onSubmit:function(e){e.preventDefault(),W(G||{url:n})}},Object(l.createElement)(of,{className:a,value:n,onChange:function(e,t){h(e),U(t)},placeholder:null!=u?u:Object(w.__)("Search or type url"),__experimentalRenderSuggestions:_?function(e){return C(gf(gf({},e),{},{instanceId:V,withCreateSuggestion:p,currentInputValue:n,createSuggestionButtonText:L,suggestionsQuery:D,handleSuggestionClick:function(t){e.handleSuggestionClick&&e.handleSuggestionClick(t),W(t)}}))}:null,__experimentalFetchLinkSuggestions:F,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:T,ref:t}),r)})),jf=hf,kf=Object(v.createSlotFill)("BlockEditorLinkControlViewer"),yf=kf.Slot,_f=kf.Fill;function Ef(e){var t=e.value,n=e.onEditClick,r=t&&Object(gs.filterURLForDisplay)(Object(gs.safeDecodeURI)(t.url),16)||"";return Object(l.createElement)("div",{"aria-label":Object(w.__)("Currently selected"),"aria-selected":"true",className:u()("block-editor-link-control__search-item",{"is-current":!0})},Object(l.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(l.createElement)(v.ExternalLink,{className:"block-editor-link-control__search-item-title",href:t.url},t&&t.title||r),t&&t.title&&Object(l.createElement)("span",{className:"block-editor-link-control__search-item-info"},r)),Object(l.createElement)(v.Button,{isSecondary:!0,onClick:function(){return n()},className:"block-editor-link-control__search-item-action"},Object(w.__)("Edit")),Object(l.createElement)(yf,{fillProps:t}))}var Cf=function(e){var t=!1;return{promise:new Promise((function(n,r){e.then((function(e){return t?r({isCanceled:!0}):n(e)}),(function(e){return r(t?{isCanceled:!0}:e)}))})),cancel:function(){t=!0}}};function wf(e){var t=e.searchInputPlaceholder,n=e.value,r=e.settings,o=e.onChange,c=void 0===o?d.noop:o,i=e.noDirectEntry,a=void 0!==i&&i,s=e.showSuggestions,u=void 0===s||s,b=e.showInitialSuggestions,f=e.forceIsEditingLink,p=e.createSuggestion,m=e.withCreateSuggestion,g=e.inputValue,O=void 0===g?"":g,h=e.suggestionsQuery,j=void 0===h?{}:h,k=e.noURLSuggestion,y=void 0!==k&&k,_=e.createSuggestionButtonText;void 0===m&&p&&(m=!0);var E=Object(l.useRef)(!0),C=Object(l.useRef)(),S=Object(l.useState)(n&&n.url||""),B=Object(Me.a)(S,2),I=B[0],x=B[1],P=O||I,T=Object(l.useState)(void 0!==f?f:!n||!n.url),N=Object(Me.a)(T,2),D=N[0],A=N[1],R=Object(l.useRef)(!1);Object(l.useEffect)((function(){void 0!==f&&f!==D&&A(f)}),[f]),Object(l.useEffect)((function(){if(E.current)E.current=!1;else{if(!C.current.contains(C.current.ownerDocument.activeElement))(rl.focus.focusable.find(C.current)[0]||C.current).focus();R.current=!1}}),[D]);var L=function(e){var t=Object(l.useRef)(),n=Object(l.useState)(!1),r=Object(Me.a)(n,2),o=r[0],c=r[1],i=Object(l.useState)(null),a=Object(Me.a)(i,2),s=a[0],u=a[1],d=function(){var n=Object(el.a)(ei.a.mark((function n(r){return ei.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return c(!0),u(null),n.prev=2,t.current=Cf(Promise.resolve(e(r))),n.next=6,t.current.promise;case 6:return n.abrupt("return",n.sent);case 9:if(n.prev=9,n.t0=n.catch(2),!n.t0||!n.t0.isCanceled){n.next=13;break}return n.abrupt("return");case 13:throw u(n.t0.message||Object(w.__)("An unknown error occurred during creation. Please try again.")),n.t0;case 15:return n.prev=15,c(!1),n.finish(15);case 18:case"end":return n.stop()}}),n,null,[[2,9,15,18]])})));return function(e){return n.apply(this,arguments)}}();return Object(l.useEffect)((function(){return function(){t.current&&t.current.cancel()}}),[]),{createPage:d,isCreatingPage:o,errorMessage:s}}(p),M=L.createPage,F=L.isCreatingPage,V=L.errorMessage;return Object(l.createElement)("div",{tabIndex:-1,ref:C,className:"block-editor-link-control"},F&&Object(l.createElement)("div",{className:"block-editor-link-control__loading"},Object(l.createElement)(v.Spinner,null)," ",Object(w.__)("Creating"),"…"),(D||!n)&&!F&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:"block-editor-link-control__search-input-wrapper"},Object(l.createElement)(jf,{currentLink:n,className:"block-editor-link-control__search-input",placeholder:t,value:P,withCreateSuggestion:m,onCreateSuggestion:M,onChange:x,onSelect:function(e){var t;c(e),R.current=!(null===(t=C.current)||void 0===t||!t.contains(C.current.ownerDocument.activeElement)),A(!1)},showInitialSuggestions:b,allowDirectEntry:!a,showSuggestions:u,suggestionsQuery:j,withURLSuggestion:!y,createSuggestionButtonText:_},Object(l.createElement)("div",{className:"block-editor-link-control__search-actions"},Object(l.createElement)(v.Button,{type:"submit",label:Object(w.__)("Submit"),icon:Yb.a,className:"block-editor-link-control__search-submit"})))),V&&Object(l.createElement)(v.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},V)),n&&!D&&!F&&Object(l.createElement)(Ef,{value:n,onEditClick:function(){return A(!0)}}),Object(l.createElement)(Jb,{value:n,settings:r,onChange:c}))}wf.ViewerFill=_f;var Sf=wf,Bf=n(314),If=n(221),xf=Object(v.withFilters)("editor.MediaUpload")((function(){return null}));var Pf=function(e){var t=e.fallback,n=void 0===t?null:t,r=e.children;return Object(m.useSelect)((function(e){return!!(0,e("core/block-editor").getSettings)().mediaUpload}),[])?r:n},Tf=Object(b.compose)([Object(m.withDispatch)((function(e){var t=e(us.store);return{createNotice:t.createNotice,removeNotice:t.removeNotice}})),Object(v.withFilters)("editor.MediaReplaceFlow")])((function(e){var t=e.mediaURL,n=e.mediaId,r=e.allowedTypes,o=e.accept,c=e.onSelect,i=e.onSelectURL,a=e.onFilesUpload,s=void 0===a?d.noop:a,u=e.name,b=void 0===u?Object(w.__)("Replace"):u,f=e.createNotice,p=e.removeNotice,g=Object(l.useState)(t),O=Object(Me.a)(g,2),h=O[0],j=O[1],k=Object(m.useSelect)((function(e){return e("core/block-editor").getSettings().mediaUpload}),[]),y=Object(l.createRef)(),_=Object(d.uniqueId)("block-editor/media-replace-flow/error-notice/"),E=function(e){var t=document.createElement("div");t.innerHTML=Object(l.renderToString)(e);var n=t.textContent||t.innerText||"";setTimeout((function(){f("error",n,{speak:!0,id:_,isDismissible:!0})}),1e3)},C=function(e){c(e),j(e.url),Object(ot.speak)(Object(w.__)("The media file has been replaced")),p(_)},S=function(e){e.keyCode===Ht.DOWN&&(e.preventDefault(),e.stopPropagation(),e.target.click())};return Object(l.createElement)(v.Dropdown,{popoverProps:{isAlternate:!0},contentClassName:"block-editor-media-replace-flow__options",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(l.createElement)(v.ToolbarGroup,{className:"media-replace-flow"},Object(l.createElement)(v.ToolbarButton,{ref:y,"aria-expanded":t,"aria-haspopup":"true",onClick:n,onKeyDown:S},b))},renderContent:function(e){e.onClose;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(v.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu"},Object(l.createElement)(xf,{value:n,onSelect:function(e){return C(e)},allowedTypes:r,render:function(e){var t=e.open;return Object(l.createElement)(v.MenuItem,{icon:Bf.a,onClick:t},Object(w.__)("Open Media Library"))}}),Object(l.createElement)(Pf,null,Object(l.createElement)(v.FormFileUpload,{onChange:function(e){!function(e){var t=e.target.files;s(t);k({allowedTypes:r,filesList:t,onFileChange:function(e){var t=Object(Me.a)(e,1)[0];C(t)},onError:E})}(e)},accept:o,render:function(e){var t=e.openFileDialog;return Object(l.createElement)(v.MenuItem,{icon:If.a,onClick:function(){t()}},Object(w.__)("Upload"))}}))),i&&Object(l.createElement)("form",{className:"block-editor-media-flow__url-input",onKeyDown:function(e){[Ht.TAB,Ht.ESCAPE].includes(e.keyCode)||e.stopPropagation()},onKeyPress:function(e){[Ht.TAB,Ht.ESCAPE].includes(e.keyCode)||e.stopPropagation()}},Object(l.createElement)("span",{className:"block-editor-media-replace-flow__image-url-label"},Object(w.__)("Current media URL:")),Object(l.createElement)(Sf,{value:{url:h},settings:[],showSuggestions:!1,onChange:function(e){var t=e.url;j(t),i(t),y.current.focus()}})))}})})),Nf=n(276);function Df(e){var t=e.url,n=e.urlLabel,r=e.className,o=u()(r,"block-editor-url-popover__link-viewer-url");return t?Object(l.createElement)(v.ExternalLink,{className:o,href:t},n||Object(gs.filterURLForDisplay)(Object(gs.safeDecodeURI)(t))):Object(l.createElement)("span",{className:o})}function Af(e){var t=e.additionalControls,n=e.children,r=e.renderSettings,o=e.position,c=void 0===o?"bottom center":o,a=e.focusOnMount,s=void 0===a?"firstElement":a,u=Object(Fe.a)(e,["additionalControls","children","renderSettings","position","focusOnMount"]),d=Object(l.useState)(!1),b=Object(Me.a)(d,2),f=b[0],p=b[1],m=!!r&&f;return Object(l.createElement)(v.Popover,Object(i.a)({className:"block-editor-url-popover",focusOnMount:s,position:c},u),Object(l.createElement)("div",{className:"block-editor-url-popover__input-container"},Object(l.createElement)("div",{className:"block-editor-url-popover__row"},n,!!r&&Object(l.createElement)(v.Button,{className:"block-editor-url-popover__settings-toggle",icon:bl.a,label:Object(w.__)("Link settings"),onClick:function(){p(!f)},"aria-expanded":f})),m&&Object(l.createElement)("div",{className:"block-editor-url-popover__row block-editor-url-popover__settings"},r())),t&&!m&&Object(l.createElement)("div",{className:"block-editor-url-popover__additional-controls"},t))}Af.LinkEditor=function(e){var t=e.autocompleteRef,n=e.className,r=e.onChangeInputValue,o=e.value,c=Object(Fe.a)(e,["autocompleteRef","className","onChangeInputValue","value"]);return Object(l.createElement)("form",Object(i.a)({className:u()("block-editor-url-popover__link-editor",n)},c),Object(l.createElement)(of,{value:o,onChange:r,autocompleteRef:t}),Object(l.createElement)(v.Button,{icon:Yb.a,label:Object(w.__)("Apply"),type:"submit"}))},Af.LinkViewer=function(e){var t=e.className,n=e.linkClassName,r=e.onEditLinkClick,o=e.url,c=e.urlLabel,a=Object(Fe.a)(e,["className","linkClassName","onEditLinkClick","url","urlLabel"]);return Object(l.createElement)("div",Object(i.a)({className:u()("block-editor-url-popover__link-viewer",t)},a),Object(l.createElement)(Df,{url:o,urlLabel:c,className:n}),r&&Object(l.createElement)(v.Button,{icon:Nf.a,label:Object(w.__)("Edit"),onClick:r}))};var Rf=Af,Lf=function(e){var t=e.src,n=e.onChange,r=e.onSubmit,o=e.onClose;return Object(l.createElement)(Rf,{onClose:o},Object(l.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:r},Object(l.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"url","aria-label":Object(w.__)("URL"),placeholder:Object(w.__)("Paste or type URL"),onChange:n,value:t}),Object(l.createElement)(v.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:Yb.a,label:Object(w.__)("Apply"),type:"submit"})))};var Mf=Object(v.withFilters)("editor.MediaPlaceholder")((function(e){var t=e.value,n=void 0===t?{}:t,r=e.allowedTypes,o=e.className,c=e.icon,i=e.labels,a=void 0===i?{}:i,s=e.mediaPreview,b=e.notices,f=e.isAppender,p=e.accept,g=e.addToGallery,O=e.multiple,h=void 0!==O&&O,j=e.dropZoneUIOnly,k=e.disableDropZone,y=e.disableMediaButtons,_=e.onError,E=e.onSelect,C=e.onCancel,S=e.onSelectURL,B=e.onDoubleClick,I=e.onFilesPreUpload,x=void 0===I?d.noop:I,P=e.onHTMLDrop,T=void 0===P?d.noop:P,N=e.children,D=Object(m.useSelect)((function(e){return(0,e("core/block-editor").getSettings)().mediaUpload}),[]),A=Object(l.useState)(""),R=Object(Me.a)(A,2),L=R[0],M=R[1],F=Object(l.useState)(!1),V=Object(Me.a)(F,2),H=V[0],z=V[1];Object(l.useEffect)((function(){var e;M(null!==(e=null==n?void 0:n.src)&&void 0!==e?e:"")}),[null==n?void 0:n.src]);var G=function(e){M(e.target.value)},U=function(){z(!0)},W=function(){z(!1)},K=function(e){e.preventDefault(),L&&S&&(S(L),W())},q=function(e){var t;if(x(e),h)if(g){var o=[];t=function(e){var t=(null!=n?n:[]).filter((function(e){return e.id?!o.some((function(t){var n=t.id;return Number(n)===Number(e.id)})):!o.some((function(t){var n=t.urlSlug;return e.url.includes(n)}))}));E(t.concat(e)),o=e.map((function(e){var t=e.url.lastIndexOf("."),n=e.url.slice(0,t);return{id:e.id,urlSlug:n}}))}}else t=E;else t=function(e){var t=Object(Me.a)(e,1)[0];return E(t)};D({allowedTypes:r,filesList:e,onFileChange:t,onError:_})},$=function(e){q(e.target.files)},Y=function(e,t){var n=a.instructions,i=a.title;if(D||S||(n=Object(w.__)("To edit this block, you need permission to upload media.")),void 0===n||void 0===i){var d=null!=r?r:[],p=Object(Me.a)(d,1)[0],m=1===d.length,g=m&&"audio"===p,O=m&&"image"===p,h=m&&"video"===p;void 0===n&&D&&(n=Object(w.__)("Upload a media file or pick one from your media library."),g?n=Object(w.__)("Upload an audio file, pick one from your media library, or add one with a URL."):O?n=Object(w.__)("Upload an image file, pick one from your media library, or add one with a URL."):h&&(n=Object(w.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===i&&(i=Object(w.__)("Media"),g?i=Object(w.__)("Audio"):O?i=Object(w.__)("Image"):h&&(i=Object(w.__)("Video")))}var j=u()("block-editor-media-placeholder",o,{"is-appender":f});return Object(l.createElement)(v.Placeholder,{icon:c,label:i,instructions:n,className:j,notices:b,onClick:t,onDoubleClick:B,preview:s},e,N)},X=function(){return k?null:Object(l.createElement)(v.DropZone,{onFilesDrop:q,onHTMLDrop:T})},Q=function(){return C&&Object(l.createElement)(v.Button,{className:"block-editor-media-placeholder__cancel-button",title:Object(w.__)("Cancel"),isLink:!0,onClick:C},Object(w.__)("Cancel"))},Z=function(){return S&&Object(l.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},Object(l.createElement)(v.Button,{className:"block-editor-media-placeholder__button",onClick:U,isPressed:H,isTertiary:!0},Object(w.__)("Insert from URL")),H&&Object(l.createElement)(Lf,{src:L,onChange:G,onSubmit:K,onClose:W}))};return j||y?(j&&Ul()("wp.blockEditor.MediaPlaceholder dropZoneUIOnly prop",{alternative:"disableMediaButtons"}),Object(l.createElement)(Pf,null,X())):Object(l.createElement)(Pf,{fallback:Y(Z())},function(){var e=Object(l.createElement)(xf,{addToGallery:g,gallery:h&&!(!r||0===r.length)&&r.every((function(e){return"image"===e||e.startsWith("image/")})),multiple:h,onSelect:E,allowedTypes:r,value:Array.isArray(n)?n.map((function(e){return e.id})):n.id,render:function(e){var t=e.open;return Object(l.createElement)(v.Button,{isTertiary:!0,onClick:function(e){e.stopPropagation(),t()}},Object(w.__)("Media Library"))}});if(D&&f)return Object(l.createElement)(l.Fragment,null,X(),Object(l.createElement)(v.FormFileUpload,{onChange:$,accept:p,multiple:h,render:function(t){var n=t.openFileDialog,r=Object(l.createElement)(l.Fragment,null,Object(l.createElement)(v.Button,{isPrimary:!0,className:u()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button")},Object(w.__)("Upload")),e,Z(),Q());return Y(r,n)}}));if(D){var t=Object(l.createElement)(l.Fragment,null,X(),Object(l.createElement)(v.FormFileUpload,{isPrimary:!0,className:u()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:$,accept:p,multiple:h},Object(w.__)("Upload")),e,Z(),Q());return Y(t)}return Y(e)}())})),Ff=Object(l.forwardRef)((function(e,t){return Object(l.createElement)(sb,Object(i.a)({ref:t},e,{__unstableDisableFormats:!0,preserveWhiteSpace:!0}))}));Ff.Content=function(e){var t=e.value,n=void 0===t?"":t,r=e.tagName,o=void 0===r?"div":r,c=Object(Fe.a)(e,["value","tagName"]);return Object(l.createElement)(o,c,n)};var Vf=Ff,Hf=Object(l.forwardRef)((function(e,t){var n=e.__experimentalVersion,r=Object(Fe.a)(e,["__experimentalVersion"]);if(2===n)return Object(l.createElement)(Vf,Object(i.a)({ref:t},r));var o=r.className,c=r.onChange,a=Object(Fe.a)(r,["className","onChange"]);return Object(l.createElement)(Nl.a,Object(i.a)({ref:t,className:u()("block-editor-plain-text",o),onChange:function(e){return c(e.target.value)}},a))}));function zf(e){var t=e.property,n=e.viewport,r=e.desc,o=Object(b.useInstanceId)(zf),c=r||Object(w.sprintf)(Object(w._x)("Controls the %1$s property for %2$s viewports.","Text labelling a interface as controlling a given layout property (eg: margin) for a given screen size."),t,n.label);return Object(l.createElement)(l.Fragment,null,Object(l.createElement)("span",{"aria-describedby":"rbc-desc-".concat(o)},n.label),Object(l.createElement)(v.VisuallyHidden,{as:"span",id:"rbc-desc-".concat(o)},c))}var Gf=function(e){var t=e.title,n=e.property,r=e.toggleLabel,o=e.onIsResponsiveChange,c=e.renderDefaultControl,i=e.renderResponsiveControls,a=e.isResponsive,s=void 0!==a&&a,d=e.defaultLabel,b=void 0===d?{id:"all",label:Object(w.__)("All")}:d,f=e.viewports,p=void 0===f?[{id:"small",label:Object(w.__)("Small screens")},{id:"medium",label:Object(w.__)("Medium screens")},{id:"large",label:Object(w.__)("Large screens")}]:f;if(!t||!n||!c)return null;var m=r||Object(w.sprintf)(Object(w.__)("Use the same %s on all screensizes."),n),g=Object(w.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size."),O=c(Object(l.createElement)(zf,{property:n,viewport:b}),b);return Object(l.createElement)("fieldset",{className:"block-editor-responsive-block-control"},Object(l.createElement)("legend",{className:"block-editor-responsive-block-control__title"},t),Object(l.createElement)("div",{className:"block-editor-responsive-block-control__inner"},Object(l.createElement)(v.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:m,checked:!s,onChange:o,help:g}),Object(l.createElement)("div",{className:u()("block-editor-responsive-block-control__group",{"is-responsive":s})},!s&&O,s&&(i?i(p):p.map((function(e){return Object(l.createElement)(l.Fragment,{key:e.id},c(Object(l.createElement)(zf,{property:n,viewport:e}),e))}))))))};function Uf(e){var t=e.character,n=e.type,r=e.onUse;return Object(b.useKeyboardShortcut)(Ht.rawShortcut[n](t),(function(){return r(),!1}),{bindGlobal:!0}),null}function Wf(e){var t,n=e.name,r=e.shortcutType,o=e.shortcutCharacter,c=Object(Fe.a)(e,["name","shortcutType","shortcutCharacter"]),a="RichText.ToolbarControls";return n&&(a+=".".concat(n)),r&&o&&(t=Ht.displayShortcut[r](o)),Object(l.createElement)(v.Fill,{name:a},Object(l.createElement)(v.ToolbarButton,Object(i.a)({},c,{shortcut:t})))}function Kf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Hn.a)(e);if(t){var o=Object(Hn.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Vn.a)(this,n)}}var qf=function(e){Object(Fn.a)(n,e);var t=Kf(n);function n(){var e;return Object(Rn.a)(this,n),(e=t.apply(this,arguments)).onInput=e.onInput.bind(Object(Mn.a)(e)),e}return Object(Ln.a)(n,[{key:"onInput",value:function(e){e.inputType===this.props.inputType&&this.props.onInput()}},{key:"componentDidMount",value:function(){document.addEventListener("input",this.onInput,!0)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("input",this.onInput,!0)}},{key:"render",value:function(){return null}}]),n}(l.Component),$f=Object(l.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(v.Path,{d:"M9.4 20.5L5.2 3.8l14.6 9-2 .3c-.2 0-.4.1-.7.1-.9.2-1.6.3-2.2.5-.8.3-1.4.5-1.8.8-.4.3-.8.8-1.3 1.5-.4.5-.8 1.2-1.2 2l-.3.6-.9 1.9zM7.6 7.1l2.4 9.3c.2-.4.5-.8.7-1.1.6-.8 1.1-1.4 1.6-1.8.5-.4 1.3-.8 2.2-1.1l1.2-.3-8.1-5z"}));var Yf=Object(l.forwardRef)((function(e,t){var n=Object(m.useSelect)((function(e){return e("core/block-editor").isNavigationMode()}),[]),r=Object(m.useDispatch)("core/block-editor").setNavigationMode,o=function(e){r("edit"!==e)};return Object(l.createElement)(v.Dropdown,{renderToggle:function(r){var o=r.isOpen,c=r.onToggle;return Object(l.createElement)(v.Button,Object(i.a)({},e,{ref:t,icon:n?$f:Nf.a,"aria-expanded":o,"aria-haspopup":"true",onClick:c,label:Object(w.__)("Modes")}))},position:"bottom right",renderContent:function(){return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(v.NavigableMenu,{role:"menu","aria-label":Object(w.__)("Modes")},Object(l.createElement)(v.MenuItemsChoice,{value:n?"select":"edit",onSelect:o,choices:[{value:"edit",label:Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Vl.a,{icon:Nf.a}),Object(w.__)("Edit"))},{value:"select",label:Object(l.createElement)(l.Fragment,null,$f,Object(w.__)("Select"))}]})),Object(l.createElement)("div",{className:"block-editor-tool-selector__help"},Object(w.__)("Tools offer different interactions for block selection & editing. To select, press Escape, to go back to editing, press Enter.")))}})})),Xf=n(192),Qf=Object(l.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(S.Path,{d:"M9.737 18.011L3.98 12.255l5.734-6.28 1.107 1.012-4.103 4.494h13.3v1.5H6.828l3.97 3.97-1.06 1.06z"}));function Zf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Hn.a)(e);if(t){var o=Object(Hn.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Vn.a)(this,n)}}var Jf=function(e){Object(Fn.a)(n,e);var t=Zf(n);function n(){var e;return Object(Rn.a)(this,n),(e=t.apply(this,arguments)).toggle=e.toggle.bind(Object(Mn.a)(e)),e.submitLink=e.submitLink.bind(Object(Mn.a)(e)),e.state={expanded:!1},e}return Object(Ln.a)(n,[{key:"toggle",value:function(){this.setState({expanded:!this.state.expanded})}},{key:"submitLink",value:function(e){e.preventDefault(),this.toggle()}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.onChange,r=this.state.expanded,o=t?Object(w.__)("Edit link"):Object(w.__)("Insert link");return Object(l.createElement)("div",{className:"block-editor-url-input__button"},Object(l.createElement)(v.Button,{icon:Xf.a,label:o,onClick:this.toggle,className:"components-toolbar__control",isPressed:!!t}),r&&Object(l.createElement)("form",{className:"block-editor-url-input__button-modal",onSubmit:this.submitLink},Object(l.createElement)("div",{className:"block-editor-url-input__button-modal-line"},Object(l.createElement)(v.Button,{className:"block-editor-url-input__back",icon:Qf,label:Object(w.__)("Close"),onClick:this.toggle}),Object(l.createElement)(of,{value:t||"",onChange:n}),Object(l.createElement)(v.Button,{icon:Yb.a,label:Object(w.__)("Submit"),type:"submit"}))))}}]),n}(l.Component),ep=n(160),tp=["noreferrer","noopener"],np=Object(l.createElement)(v.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(v.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(l.createElement)(v.Path,{d:"m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z"}),Object(l.createElement)(v.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),rp=function(e){var t=e.linkDestination,n=e.onChangeUrl,r=e.url,o=e.mediaType,c=void 0===o?"image":o,i=e.mediaUrl,a=e.mediaLink,s=e.linkTarget,u=e.linkClass,b=e.rel,f=Object(l.useState)(!1),p=Object(Me.a)(f,2),m=p[0],g=p[1],O=Object(l.useCallback)((function(){g(!0)})),h=Object(l.useState)(!1),j=Object(Me.a)(h,2),k=j[0],y=j[1],_=Object(l.useState)(null),E=Object(Me.a)(_,2),C=E[0],S=E[1],B=Object(l.useRef)(null),I=Object(l.useCallback)((function(){"media"!==t&&"attachment"!==t||S(""),y(!0)})),x=Object(l.useCallback)((function(){y(!1)})),P=Object(l.useCallback)((function(){S(null),x(),g(!1)})),T=function(e){var t=e;return void 0===e||Object(d.isEmpty)(t)||Object(d.isEmpty)(t)||(Object(d.each)(tp,(function(e){var n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")})),t!==e&&(t=t.trim()),Object(d.isEmpty)(t)&&(t=void 0)),t},N=Object(l.useCallback)((function(){return function(e){var t=B.current;t&&t.contains(e.target)||(g(!1),S(null),x())}})),D=Object(l.useCallback)((function(){return function(e){if(C){var t,r=(null===(t=R().find((function(e){return e.url===C})))||void 0===t?void 0:t.linkDestination)||"custom";n({href:C,linkDestination:r})}x(),S(null),e.preventDefault()}})),A=Object(l.useCallback)((function(){n({linkDestination:"none",href:""})})),R=function(){var e=[{linkDestination:"media",title:Object(w.__)("Media File"),url:"image"===c?i:void 0,icon:np}];return"image"===c&&a&&e.push({linkDestination:"attachment",title:Object(w.__)("Attachment Page"),url:"image"===c?a:void 0,icon:Object(l.createElement)(v.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(v.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),Object(l.createElement)(v.Path,{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}))}),e},L=Object(l.createElement)(l.Fragment,null,Object(l.createElement)(v.ToggleControl,{label:Object(w.__)("Open in new tab"),onChange:function(e){var t=function(e){var t=e?"_blank":void 0;return{linkTarget:t,rel:t||b?T(b):void 0}}(e);n(t)},checked:"_blank"===s}),Object(l.createElement)(v.TextControl,{label:Object(w.__)("Link Rel"),value:T(b)||"",onChange:function(e){n({rel:e})}}),Object(l.createElement)(v.TextControl,{label:Object(w.__)("Link CSS Class"),value:u||"",onChange:function(e){n({linkClass:e})}})),M=null!==C?C:r,F=(Object(d.find)(R(),["linkDestination",t])||{}).title;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(v.ToolbarButton,{icon:Xf.a,className:"components-toolbar__control",label:r?Object(w.__)("Edit link"):Object(w.__)("Insert link"),"aria-expanded":m,onClick:O}),m&&Object(l.createElement)(Rf,{onFocusOutside:N(),onClose:P,renderSettings:function(){return L},additionalControls:!M&&Object(l.createElement)(v.NavigableMenu,null,Object(d.map)(R(),(function(e){return Object(l.createElement)(v.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:function(){var t,r,o;S(null),t=e.url,o=R(),r=t?(Object(d.find)(o,(function(e){return e.url===t}))||{linkDestination:"custom"}).linkDestination:"none",n({linkDestination:r,href:t}),x()}},e.title)})))},(!r||k)&&Object(l.createElement)(Rf.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:M,onChangeInputValue:S,onSubmit:D(),autocompleteRef:B}),r&&!k&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Rf.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",url:r,onEditLinkClick:I,urlLabel:F}),Object(l.createElement)(v.Button,{icon:ep.a,label:Object(w.__)("Remove link"),onClick:A}))))},op=n(161);function cp(e){var t=e.children,n=e.className,r=e.isEnabled,o=void 0===r||r,c=e.deviceType,i=e.setDeviceType;if(Object(b.useViewportMatch)("small","<"))return null;var a={className:u()(n,"block-editor-post-preview__dropdown-content"),position:"bottom left"},s={isTertiary:!0,className:"block-editor-post-preview__button-toggle",disabled:!o,children:Object(w.__)("Preview")};return Object(l.createElement)(v.DropdownMenu,{className:"block-editor-post-preview__dropdown",popoverProps:a,toggleProps:s,icon:null},(function(){return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(v.MenuGroup,null,Object(l.createElement)(v.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Desktop")},icon:"Desktop"===c&&op.a},Object(w.__)("Desktop")),Object(l.createElement)(v.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Tablet")},icon:"Tablet"===c&&op.a},Object(w.__)("Tablet")),Object(l.createElement)(v.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Mobile")},icon:"Mobile"===c&&op.a},Object(w.__)("Mobile"))),t)}))}var ip=n(280),ap=/\((min|max)-width:[^\(]*?\)/g;function lp(e){return!!e.media&&!!e.media.mediaText.match(ap)}function sp(e,t,n){e.deleteRule(n),e.insertRule(t,n)}function up(e,t){return e.replace(ap,(function(e){return Object(ip.match)(e,{type:"screen",width:t})?"(min-width:0px)":"(min-width:999999px)"}))}function dp(e,t){Object(l.useEffect)((function(){if(t){var n,r,o,c="undefined"==typeof window?[]:Object(d.filter)(null!==(n=null===(r=window)||void 0===r||null===(o=r.document)||void 0===o?void 0:o.styleSheets)&&void 0!==n?n:[],(function(e){return!!e.href&&Object(gs.getProtocol)(e.href)===window.location.protocol&&Object(gs.getAuthority)(e.href)===window.location.host})),i=[];return c.forEach((function(n,r){for(var o=!1,c=0;c0,selectedBlockName:a,selectedBlockClientId:i,blockType:l}}))((function(e){var t=e.blockType,n=e.count,r=e.hasBlockStyles,o=e.selectedBlockClientId,c=e.selectedBlockName,i=e.showNoBlockSelectedMessage,a=void 0===i||i,s=e.bubblesVirtually,u=void 0===s||s;if(n>1)return Object(l.createElement)("div",{className:"block-editor-block-inspector"},Object(l.createElement)(mp,null),Object(l.createElement)(ce.Slot,{bubblesVirtually:u}));var d=c===Object(p.getUnregisteredTypeHandlerName)();return t&&o&&!d?Object(l.createElement)(gp,{clientId:o,blockName:t.name,hasBlockStyles:r,bubblesVirtually:u}):a?Object(l.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},Object(w.__)("No block selected.")):null})),jp=["p","div","h1","h2","h3","h4","h5","h6","ol","ul","li","figure","nav","pre","header","section","aside","footer","main"];function kp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yp(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[];return function(n){return"rule"===n.type?qp(qp({},n),{},{selectors:n.selectors.map((function(n){return t.includes(n.trim())?n:n.match($p)?n.replace(/^(body|html|:root)/,e):e+" "+n}))}):n}},Xp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(d.map)(e,(function(e){var n=e.css,r=e.baseURL,o=e.__experimentalNoWrapper,c=[];return t&&!(void 0!==o&&o)&&c.push(Yp(t)),r&&c.push(Wp(r)),c.length?Vp(n,Object(b.compose)(c)):n}))};function Qp(e){var t=Object(l.useRef)([]);return Object(l.useCallback)((function(n){if(n){var r=Xp(e,".editor-styles-wrapper"),o=n.ownerDocument;t.current=Object(d.map)(Object(d.compact)(r),(function(e){var t=o.createElement("style");return t.innerHTML=e,o.body.appendChild(t),t})),function(e){var t=window.getComputedStyle(e,null).getPropertyValue("background-color"),n=e.ownerDocument.getElementsByTagName("body")[0];Be()(t).getLuminance()>.5?n.classList.remove("is-dark-theme"):n.classList.add("is-dark-theme")}(n)}else t.current.forEach((function(e){return e.ownerDocument.body.removeChild(e)}))}),[e])}var Zp=function(e){var t=e.rootClientId,n=e.clientId,r=e.isAppender,o=e.showInserterHelpPanel,c=e.showMostUsedBlocks,i=void 0!==c&&c,a=e.__experimentalSelectBlockOnInsert,s=e.__experimentalInsertionIndex,u=e.onSelect,b=void 0===u?d.noop:u,f=Object(m.useSelect)((function(e){var r=e("core/block-editor").getBlockRootClientId;return t||r(n)||void 0}),[n,t]);return Object(l.createElement)(Ps,{onSelect:b,rootClientId:f,clientId:n,isAppender:r,showInserterHelpPanel:o,showMostUsedBlocks:i,__experimentalSelectBlockOnInsert:a,__experimentalInsertionIndex:s})};function Jp(){var e=Object(m.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientIds,r=t.getBlockOrder,o=t.getBlockRootClientId,c=n(),i=Object(Me.a)(c,1)[0];return{clientIds:c,rootBlocksClientIds:r(),rootClientId:o(i)}}),[]),t=e.clientIds,n=e.rootBlocksClientIds,r=e.rootClientId,o=Object(m.useDispatch)("core/block-editor"),c=o.duplicateBlocks,i=o.removeBlocks,a=o.insertAfterBlock,s=o.insertBeforeBlock,u=o.multiSelect,b=o.clearSelectedBlock,f=o.moveBlocksUp,p=o.moveBlocksDown;return Object(Ja.useShortcut)("core/block-editor/move-up",Object(l.useCallback)((function(e){e.preventDefault(),f(t,r)}),[t,f]),{bindGlobal:!0,isDisabled:0===t.length}),Object(Ja.useShortcut)("core/block-editor/move-down",Object(l.useCallback)((function(e){e.preventDefault(),p(t,r)}),[t,p]),{bindGlobal:!0,isDisabled:0===t.length}),Object(Ja.useShortcut)("core/block-editor/duplicate",Object(l.useCallback)((function(e){e.preventDefault(),c(t)}),[t,c]),{bindGlobal:!0,isDisabled:0===t.length}),Object(Ja.useShortcut)("core/block-editor/remove",Object(l.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{bindGlobal:!0,isDisabled:0===t.length}),Object(Ja.useShortcut)("core/block-editor/insert-after",Object(l.useCallback)((function(e){e.preventDefault(),a(Object(d.last)(t))}),[t,a]),{bindGlobal:!0,isDisabled:0===t.length}),Object(Ja.useShortcut)("core/block-editor/insert-before",Object(l.useCallback)((function(e){e.preventDefault(),s(Object(d.first)(t))}),[t,s]),{bindGlobal:!0,isDisabled:0===t.length}),Object(Ja.useShortcut)("core/block-editor/delete-multi-selection",Object(l.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{isDisabled:t.length<2}),Object(Ja.useShortcut)("core/block-editor/select-all",Object(l.useCallback)((function(e){e.preventDefault(),u(Object(d.first)(n),Object(d.last)(n))}),[n,u])),Object(Ja.useShortcut)("core/block-editor/unselect",Object(l.useCallback)((function(e){e.preventDefault(),b(),e.target.ownerDocument.defaultView.getSelection().removeAllRanges()}),[t,b]),{isDisabled:t.length<2}),null}Jp.Register=function(){var e=Object(m.useDispatch)(Ja.store).registerShortcut;return Object(l.useEffect)((function(){e({name:"core/block-editor/duplicate",category:"block",description:Object(w.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:Object(w.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:Object(w.__)("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:Object(w.__)("Insert a new block after the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"y"}}),e({name:"core/block-editor/delete-multi-selection",category:"block",description:Object(w.__)("Remove multiple selected blocks."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:Object(w.__)("Select all text when typing. Press again to select all blocks."),keyCombination:{modifier:"primary",character:"a"}}),e({name:"core/block-editor/unselect",category:"selection",description:Object(w.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:Object(w.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:Object(w.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:Object(w.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}})}),[e]),null};var em=Jp;function tm(e){var t=Object(m.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockSelectionEnd,r=t.hasMultiSelection,o=t.isMultiSelecting,c=n();if(c&&!o()&&r())return c}),[]);Object(l.useEffect)((function(){if(t){var n=e.current.ownerDocument,r=at(t,n);if(r){var o=Object(rl.getScrollContainer)(r);o&&tf()(r,o,{onlyScrollIfNeeded:!0})}}}),[t])}function nm(){var e=Object(l.useRef)();return tm(e),Object(l.createElement)("div",{ref:e})}var rm=new Set([Ht.UP,Ht.RIGHT,Ht.DOWN,Ht.LEFT,Ht.ENTER,Ht.BACKSPACE]);function om(e){var t=Object(m.useSelect)((function(e){return e("core/block-editor").isTyping()})),n=Object(m.useDispatch)("core/block-editor").stopTyping;Object(l.useEffect)((function(){if(t){var r,o,c=e.current.ownerDocument;return c.addEventListener("mousemove",i),function(){c.removeEventListener("mousemove",i)}}function i(e){var t=e.clientX,c=e.clientY;r&&o&&(r!==t||o!==c)&&n(),r=t,o=c}}),[t,n])}function cm(e){var t=Object(m.useSelect)((function(e){return e("core/block-editor").isTyping()})),n=Object(m.useDispatch)("core/block-editor"),r=n.startTyping,o=n.stopTyping;om(e),Object(l.useEffect)((function(){var n=e.current,c=n.ownerDocument,i=c.defaultView;if(t){var a;function l(e){var t=e.target;a=i.setTimeout((function(){Object(rl.isTextField)(t)||o()}))}function s(e){var t=e.keyCode;t!==Ht.ESCAPE&&t!==Ht.TAB||o()}function u(){var e=i.getSelection();e.rangeCount>0&&e.getRangeAt(0).collapsed||o()}return n.addEventListener("focus",l),n.addEventListener("keydown",s),c.addEventListener("selectionchange",u),function(){i.clearTimeout(a),n.removeEventListener("focus",l),n.removeEventListener("keydown",s),c.removeEventListener("selectionchange",u)}}function d(e){var t=e.type,o=e.target;Object(rl.isTextField)(o)&&n.contains(o)&&("keydown"!==t||function(e){var t=e.keyCode;return!e.shiftKey&&rm.has(t)}(e))&&r()}return n.addEventListener("keypress",d),n.addEventListener("keydown",d),function(){n.removeEventListener("keypress",d),n.removeEventListener("keydown",d)}}),[t,r,o])}var im=function(e){var t=e.children,n=Object(l.useRef)();return cm(n),Object(l.createElement)("div",{ref:n},t)};function am(){return Ul()("PreserveScrollInReorder component",{hint:"This behavior is now built-in the block list"}),null}var lm=-1!==window.navigator.userAgent.indexOf("Trident"),sm=new Set([Ht.UP,Ht.DOWN,Ht.LEFT,Ht.RIGHT]);function um(e){var t=Object(m.useSelect)((function(e){return e("core/block-editor").hasSelectedBlock()}));Object(l.useEffect)((function(){if(t){var n,r,o,c=e.current.ownerDocument,i=c.defaultView;return i.addEventListener("scroll",a,!0),i.addEventListener("resize",a,!0),e.current.addEventListener("keydown",l),e.current.addEventListener("keyup",s),e.current.addEventListener("mousedown",u),e.current.addEventListener("touchstart",u),function(){i.removeEventListener("scroll",a,!0),i.removeEventListener("resize",a,!0),e.current.removeEventListener("keydown",l),e.current.removeEventListener("keyup",s),e.current.removeEventListener("mousedown",u),e.current.removeEventListener("touchstart",u),c.removeEventListener("selectionchange",d),i.cancelAnimationFrame(n),i.cancelAnimationFrame(r)}}function a(){n||(n=i.requestAnimationFrame((function(){b(),n=null})))}function l(e){r&&i.cancelAnimationFrame(r),r=i.requestAnimationFrame((function(){s(e),r=null}))}function s(t){var n=t.keyCode;if(f()){var r=Object(rl.computeCaretRect)(i);if(r)if(o)if(sm.has(n))o=r;else{var a=r.top-o.top;if(0!==a){var l=Object(rl.getScrollContainer)(e.current);if(l){var s=l===c.body,u=s?i.scrollY:l.scrollTop,d=s?0:l.getBoundingClientRect().top,b=s?o.top/i.innerHeight:(o.top-d)/(i.innerHeight-d);if(0===u&&b<.75&&(p=e.current.querySelectorAll('[contenteditable="true"]'))[p.length-1]===c.activeElement)o=r;else{var p,m=s?i.innerHeight:l.clientHeight;o.top+o.height>d+m||o.top=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function vm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nbody{margin:0}"+t}(r,o),gm(r),t=r,Array.from(document.styleSheets).forEach((function(e){try{e.cssRules}catch(e){return}var n=e.ownerNode,r=e.cssRules;r&&Array.from(r).find((function(e){var t=e.selectorText;return t&&(t.includes(".".concat("editor-styles-wrapper"))||t.includes(".".concat("wp-block")))}))&&!t.getElementById(n.id)&&t.head.appendChild(n.cloneNode(!0))})),function(e){var t=e.defaultView,n=t.frameElement;function r(e){var r=Object.getPrototypeOf(e).constructor.name,o=window[r],c={};for(var i in e)c[i]=e[i];if(e instanceof t.MouseEvent){var a=n.getBoundingClientRect();c.clientX+=a.left,c.clientY+=a.top}var l=new o(e.type,c);!n.dispatchEvent(l)&&e.preventDefault()}for(var o=0,c=["keydown","keypress","dragover"];o1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=N(e,360),t=N(t,100),n=N(n,100),0===t)r=o=c=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=i(l,a,e+1/3),o=i(l,a,e),c=i(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*c}}(e.h,r,l),d=!0,b="hsl"),e.hasOwnProperty("a")&&(n=e.a));var f,p,m;return n=T(n),{ok:d,format:e.format||b,r:s(255,u(t.r,0)),g:s(255,u(t.g,0)),b:s(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=a++}function f(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,o,c=u(e,t,n),i=s(e,t,n),a=(c+i)/2;if(c==i)r=o=0;else{var l=c-i;switch(o=a>.5?l/(2-c-i):l/(c+i),c){case e:r=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,c.push(b(r));return c}function I(e,t){t=t||6;for(var n=b(e).toHsv(),r=n.h,o=n.s,c=n.v,i=[],a=1/t;t--;)i.push(b({h:r,s:o,v:c})),c=(c+a)%1;return i}b.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=T(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=f(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return m(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var c=[R(l(e).toString(16)),R(l(t).toString(16)),R(l(n).toString(16)),R(M(r))];if(o&&c[0].charAt(0)==c[0].charAt(1)&&c[1].charAt(0)==c[1].charAt(1)&&c[2].charAt(0)==c[2].charAt(1)&&c[3].charAt(0)==c[3].charAt(1))return c[0].charAt(0)+c[1].charAt(0)+c[2].charAt(0)+c[3].charAt(0);return c.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*N(this._r,255))+"%",g:l(100*N(this._g,255))+"%",b:l(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%)":"rgba("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(P[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+v(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=b(e);n="#"+v(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return b(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(j,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(g,arguments)},saturate:function(){return this._applyModification(O,arguments)},greyscale:function(){return this._applyModification(h,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(B,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(I,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(w,arguments)}},b.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:L(e[r]));e=n}return b(e,t)},b.equals=function(e,t){return!(!e||!t)&&b(e).toRgbString()==b(t).toRgbString()},b.random=function(){return b.fromRatio({r:d(),g:d(),b:d()})},b.mix=function(e,t,n){n=0===n?0:n||50;var r=b(e).toRgb(),o=b(t).toRgb(),c=n/100;return b({r:(o.r-r.r)*c+r.r,g:(o.g-r.g)*c+r.g,b:(o.b-r.b)*c+r.b,a:(o.a-r.a)*c+r.a})},b.readability=function(e,t){var n=b(e),r=b(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},b.isReadable=function(e,t,n){var r,o,c=b.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=c>=4.5;break;case"AAlarge":o=c>=3;break;case"AAAsmall":o=c>=7}return o},b.mostReadable=function(e,t,n){var r,o,c,i,a=null,l=0;o=(n=n||{}).includeFallbackColors,c=n.level,i=n.size;for(var s=0;sl&&(l=r,a=b(t[s]));return b.isReadable(e,a,{level:c,size:i})||!o?a:(n.includeFallbackColors=!1,b.mostReadable(e,["#fff","#000"],n))};var x=b.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},P=b.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(x);function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function D(e){return s(1,u(0,e))}function A(e){return parseInt(e,16)}function R(e){return 1==e.length?"0"+e:""+e}function L(e){return e<=1&&(e=100*e+"%"),e}function M(e){return o.round(255*parseFloat(e)).toString(16)}function F(e){return A(e)/255}var V,H,z,G=(H="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",z="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+z),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+z),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+z),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function U(e){return!!G.CSS_UNIT.exec(e)}e.exports?e.exports=b:void 0===(r=function(){return b}.call(t,n,t,e))||(e.exports=r)}(Math)},63:function(e,t){e.exports=window.wp.isShallowEqual},64:function(e,t){e.exports=window.wp.htmlEntities},7:function(e,t){e.exports=window.wp.primitives},71:function(e,t,n){e.exports=function(e,t){var n,r,o=0;function c(){var c,i,a=n,l=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(i=0;i-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),c=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){c=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function i(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t,n=null,r=null,i=null,a=function(){e.clientWidth!==r&&d()},l=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:l,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function s(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function d(){u();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r0?!0===i?r.scrollTop(t,h.top+j.top):!1===i?r.scrollTop(t,h.top+k.top):j.top<0?r.scrollTop(t,h.top+j.top):r.scrollTop(t,h.top+k.top):c||((i=void 0===i||!!i)?r.scrollTop(t,h.top+j.top):r.scrollTop(t,h.top+k.top)),o&&(j.left<0||k.left>0?!0===a?r.scrollLeft(t,h.left+j.left):!1===a?r.scrollLeft(t,h.left+k.left):j.left<0?r.scrollLeft(t,h.left+j.left):r.scrollLeft(t,h.left+k.left):c||((a=void 0===a||!!a)?r.scrollLeft(t,h.left+j.left):r.scrollLeft(t,h.left+k.left)))}},191:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=o;case"max":return c<=o;default:return c===o}}));return o&&!n||!o&&n}))},t.parse=l;var r=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,o=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,c=/^(?:(min|max)-)?(.+)/,i=/(em|rem|px|cm|mm|in|pt|pc)?$/,a=/(dpi|dpcm|dppx)?$/;function l(e){return e.split(",").map((function(e){var t=(e=e.trim()).match(r),n=t[1],i=t[2],a=t[3]||"",l={};return l.inverse=!!n&&"not"===n.toLowerCase(),l.type=i?i.toLowerCase():"all",a=a.match(/\([^\)]+\)/g)||[],l.expressions=a.map((function(e){var t=e.match(o),n=t[1].toLowerCase().match(c);return{modifier:n[1],feature:n[2],value:t[2]}})),l}))}function s(e){var t,n=Number(e);return n||(n=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),n}function u(e){var t=parseFloat(e);switch(String(e).match(a)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function d(e){var t=parseFloat(e);switch(String(e).match(i)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},281:function(e,t){var n=e.exports=function(e){return new r(e)};function r(e){this.value=e}function o(e,t,n){var r=[],o=[],a=!0;return function e(d){var b=n?c(d):d,f={},p=!0,m={node:b,node_:d,path:[].concat(r),parent:o[o.length-1],parents:o,key:r.slice(-1)[0],isRoot:0===r.length,level:r.length,circular:null,update:function(e,t){m.isRoot||(m.parent.node[m.key]=e),m.node=e,t&&(p=!1)},delete:function(e){delete m.parent.node[m.key],e&&(p=!1)},remove:function(e){l(m.parent.node)?m.parent.node.splice(m.key,1):delete m.parent.node[m.key],e&&(p=!1)},keys:null,before:function(e){f.before=e},after:function(e){f.after=e},pre:function(e){f.pre=e},post:function(e){f.post=e},stop:function(){a=!1},block:function(){p=!1}};if(!a)return m;function v(){if("object"==typeof m.node&&null!==m.node){m.keys&&m.node_===m.node||(m.keys=i(m.node)),m.isLeaf=0==m.keys.length;for(var e=0;ee.length?n:e})),s.value=e.join(d)}else s.value=e.join(n.slice(a,a+s.count));a+=s.count,s.added||(l+=s.count)}}var b=t[i-1];return i>1&&"string"==typeof b.value&&(b.added||b.removed)&&e.equals("",b.value)&&(t[i-2].value+=b.value,t.pop()),t}function c(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,r.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callback;"function"==typeof n&&(r=n,n={}),this.options=n;var i=this;function a(e){return r?(setTimeout((function(){r(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var l=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,u=1,d=l+s,b=[{newPos:-1,components:[]}],f=this.extractCommon(b[0],t,e,0);if(b[0].newPos+1>=l&&f+1>=s)return a([{value:this.join(t),count:t.length}]);function p(){for(var n=-1*u;n<=u;n+=2){var r=void 0,d=b[n-1],f=b[n+1],p=(f?f.newPos:0)-n;d&&(b[n-1]=void 0);var m=d&&d.newPos+1=l&&p+1>=s)return a(o(i,r.components,t,e,i.useLongestToken));b[n]=r}else b[n]=void 0}u++}if(r)!function e(){setTimeout((function(){if(u>d)return r();p()||e()}),0)}();else for(;u<=d;){var m=p();if(m)return m}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var o=t.length,c=n.length,i=e.newPos,a=i-r,l=0;i+1=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},456:function(e,t,n){"use strict";n.r(t),n.d(t,"getColorClassName",(function(){return Pe})),n.d(t,"getColorObjectByAttributeValues",(function(){return Ie})),n.d(t,"getColorObjectByColorValue",(function(){return xe})),n.d(t,"createCustomColorsHOC",(function(){return Yn})),n.d(t,"withColors",(function(){return Xn})),n.d(t,"__experimentalUseColors",(function(){return br})),n.d(t,"__experimentalGetGradientClass",(function(){return Ne})),n.d(t,"getGradientValueBySlug",(function(){return De})),n.d(t,"__experimentalGetGradientObjectByGradientValue",(function(){return Ae})),n.d(t,"getGradientSlugByValue",(function(){return Re})),n.d(t,"__experimentalUseGradient",(function(){return Le})),n.d(t,"getFontSize",(function(){return un})),n.d(t,"getFontSizeClass",(function(){return bn})),n.d(t,"getFontSizeObjectByValue",(function(){return dn})),n.d(t,"FontSizePicker",(function(){return fn})),n.d(t,"withFontSizes",(function(){return gr})),n.d(t,"AlignmentToolbar",(function(){return Cr})),n.d(t,"Autocomplete",(function(){return Gr})),n.d(t,"BlockAlignmentToolbar",(function(){return z})),n.d(t,"__experimentalBlockFullHeightAligmentToolbar",(function(){return Wr})),n.d(t,"__experimentalBlockAlignmentMatrixToolbar",(function(){return Kr})),n.d(t,"BlockBreadcrumb",(function(){return Ra})),n.d(t,"BlockContextProvider",(function(){return Va})),n.d(t,"BlockControls",(function(){return C})),n.d(t,"BlockColorsStyleSelector",(function(){return Ua})),n.d(t,"BlockEdit",(function(){return qa})),n.d(t,"useBlockEditContext",(function(){return h})),n.d(t,"BlockFormatControls",(function(){return Za})),n.d(t,"BlockIcon",(function(){return Vr})),n.d(t,"BlockNavigationDropdown",(function(){return Yd})),n.d(t,"__experimentalBlockNavigationBlockFill",(function(){return Td})),n.d(t,"__experimentalBlockNavigationEditor",(function(){return ub})),n.d(t,"__experimentalBlockNavigationTree",(function(){return Wd})),n.d(t,"__experimentalBlockVariationPicker",(function(){return bb})),n.d(t,"__experimentalBlockVariationTransforms",(function(){return mb})),n.d(t,"BlockVerticalAlignmentToolbar",(function(){return _b})),n.d(t,"ButtonBlockerAppender",(function(){return Ms})),n.d(t,"ColorPalette",(function(){return Sb})),n.d(t,"ColorPaletteControl",(function(){return Bb})),n.d(t,"ContrastChecker",(function(){return it})),n.d(t,"__experimentalGradientPicker",(function(){return Pb})),n.d(t,"__experimentalGradientPickerControl",(function(){return Tb})),n.d(t,"__experimentalGradientPickerPanel",(function(){return Nb})),n.d(t,"__experimentalFontAppearanceControl",(function(){return Yt})),n.d(t,"__experimentalFontFamilyControl",(function(){return nn})),n.d(t,"__experimentalColorGradientControl",(function(){return $e})),n.d(t,"__experimentalPanelColorGradientSettings",(function(){return rt})),n.d(t,"__experimentalImageSizeControl",(function(){return Ab})),n.d(t,"InnerBlocks",(function(){return $b})),n.d(t,"__experimentalUseInnerBlocksProps",(function(){return qb})),n.d(t,"InspectorAdvancedControls",(function(){return ee})),n.d(t,"InspectorControls",(function(){return ce})),n.d(t,"__experimentalLinkControl",(function(){return Sf})),n.d(t,"__experimentalLinkControlSearchInput",(function(){return jf})),n.d(t,"__experimentalLinkControlSearchResults",(function(){return sf})),n.d(t,"__experimentalLinkControlSearchItem",(function(){return lf})),n.d(t,"LineHeightControl",(function(){return zt})),n.d(t,"MediaReplaceFlow",(function(){return Tf})),n.d(t,"MediaPlaceholder",(function(){return Mf})),n.d(t,"MediaUpload",(function(){return xf})),n.d(t,"MediaUploadCheck",(function(){return Pf})),n.d(t,"PanelColorSettings",(function(){return tr})),n.d(t,"PlainText",(function(){return Hf})),n.d(t,"__experimentalResponsiveBlockControl",(function(){return Gf})),n.d(t,"RichText",(function(){return sb})),n.d(t,"RichTextShortcut",(function(){return Uf})),n.d(t,"RichTextToolbarButton",(function(){return Wf})),n.d(t,"__unstableRichTextInputEvent",(function(){return qf})),n.d(t,"ToolSelector",(function(){return Yf})),n.d(t,"__experimentalUnitControl",(function(){return _n})),n.d(t,"URLInput",(function(){return of})),n.d(t,"URLInputButton",(function(){return Jf})),n.d(t,"URLPopover",(function(){return Rf})),n.d(t,"__experimentalImageURLInputUI",(function(){return rp})),n.d(t,"withColorContext",(function(){return wb})),n.d(t,"__experimentalBlockSettingsMenuFirstItem",(function(){return Pu})),n.d(t,"__experimentalInserterMenuExtension",(function(){return Es})),n.d(t,"__experimentalPreviewOptions",(function(){return cp})),n.d(t,"__experimentalUseResizeCanvas",(function(){return bp})),n.d(t,"BlockInspector",(function(){return hp})),n.d(t,"BlockList",(function(){return ed})),n.d(t,"useBlockProps",(function(){return gd})),n.d(t,"__experimentalBlock",(function(){return Ep})),n.d(t,"BlockMover",(function(){return ru})),n.d(t,"BlockPreview",(function(){return Ql})),n.d(t,"BlockSelectionClearer",(function(){return wp})),n.d(t,"__unstableUseBlockSelectionClearer",(function(){return Cp})),n.d(t,"BlockSettingsMenu",(function(){return Hu})),n.d(t,"BlockSettingsMenuControls",(function(){return Mu})),n.d(t,"BlockTitle",(function(){return Aa})),n.d(t,"BlockToolbar",(function(){return Ku})),n.d(t,"CopyHandler",(function(){return Eu})),n.d(t,"__unstableUseClipboardHandler",(function(){return _u})),n.d(t,"DefaultBlockAppender",(function(){return Ls})),n.d(t,"__unstableUseEditorStyles",(function(){return Qp})),n.d(t,"Inserter",(function(){return Rs})),n.d(t,"__experimentalLibrary",(function(){return Zp})),n.d(t,"__experimentalSearchForm",(function(){return zl})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return em})),n.d(t,"MultiSelectScrollIntoView",(function(){return nm})),n.d(t,"__unstableUseScrollMultiSelectionIntoView",(function(){return tm})),n.d(t,"NavigableToolbar",(function(){return tu})),n.d(t,"ObserveTyping",(function(){return im})),n.d(t,"__unstableUseTypingObserver",(function(){return cm})),n.d(t,"__unstableUseMouseMoveTypingReset",(function(){return om})),n.d(t,"PreserveScrollInReorder",(function(){return am})),n.d(t,"SkipToSelectedBlock",(function(){return fp})),n.d(t,"Typewriter",(function(){return dm})),n.d(t,"__unstableUseTypewriter",(function(){return um})),n.d(t,"Warning",(function(){return yl})),n.d(t,"WritingFlow",(function(){return fd})),n.d(t,"__unstableUseCanvasClickRedirect",(function(){return fm})),n.d(t,"useBlockDisplayInformation",(function(){return Da})),n.d(t,"__unstableIframe",(function(){return Om})),n.d(t,"__experimentalUseNoRecursiveRenders",(function(){return jm})),n.d(t,"BlockEditorProvider",(function(){return $l})),n.d(t,"__experimentalUseSimulatedMediaQuery",(function(){return dp})),n.d(t,"__experimentalUseEditorFeature",(function(){return ge})),n.d(t,"transformStyles",(function(){return Xp})),n.d(t,"validateThemeColors",(function(){return km})),n.d(t,"validateThemeGradients",(function(){return ym})),n.d(t,"__experimentalGetMatchingVariation",(function(){return fb})),n.d(t,"storeConfig",(function(){return Ta})),n.d(t,"store",(function(){return Na})),n.d(t,"SETTINGS_DEFAULTS",(function(){return $r}));var r={};n.r(r),n.d(r,"getBlockName",(function(){return jo})),n.d(r,"isBlockValid",(function(){return ko})),n.d(r,"getBlockAttributes",(function(){return yo})),n.d(r,"getBlock",(function(){return _o})),n.d(r,"__unstableGetBlockWithoutInnerBlocks",(function(){return Eo})),n.d(r,"getBlocks",(function(){return Co})),n.d(r,"__unstableGetBlockWithBlockTree",(function(){return wo})),n.d(r,"__unstableGetBlockTree",(function(){return So})),n.d(r,"getClientIdsOfDescendants",(function(){return Bo})),n.d(r,"getClientIdsWithDescendants",(function(){return Io})),n.d(r,"getGlobalBlockCount",(function(){return xo})),n.d(r,"getBlocksByClientId",(function(){return Po})),n.d(r,"getBlockCount",(function(){return To})),n.d(r,"getSelectionStart",(function(){return No})),n.d(r,"getSelectionEnd",(function(){return Do})),n.d(r,"getBlockSelectionStart",(function(){return Ao})),n.d(r,"getBlockSelectionEnd",(function(){return Ro})),n.d(r,"getSelectedBlockCount",(function(){return Lo})),n.d(r,"hasSelectedBlock",(function(){return Mo})),n.d(r,"getSelectedBlockClientId",(function(){return Fo})),n.d(r,"getSelectedBlock",(function(){return Vo})),n.d(r,"getBlockRootClientId",(function(){return Ho})),n.d(r,"getBlockParents",(function(){return zo})),n.d(r,"getBlockParentsByBlockName",(function(){return Go})),n.d(r,"getBlockHierarchyRootClientId",(function(){return Uo})),n.d(r,"getLowestCommonAncestorWithSelectedBlock",(function(){return Wo})),n.d(r,"getAdjacentBlockClientId",(function(){return Ko})),n.d(r,"getPreviousBlockClientId",(function(){return qo})),n.d(r,"getNextBlockClientId",(function(){return $o})),n.d(r,"getSelectedBlocksInitialCaretPosition",(function(){return Yo})),n.d(r,"getSelectedBlockClientIds",(function(){return Xo})),n.d(r,"getMultiSelectedBlockClientIds",(function(){return Qo})),n.d(r,"getMultiSelectedBlocks",(function(){return Zo})),n.d(r,"getFirstMultiSelectedBlockClientId",(function(){return Jo})),n.d(r,"getLastMultiSelectedBlockClientId",(function(){return ec})),n.d(r,"isFirstMultiSelectedBlock",(function(){return tc})),n.d(r,"isBlockMultiSelected",(function(){return nc})),n.d(r,"isAncestorMultiSelected",(function(){return rc})),n.d(r,"getMultiSelectedBlocksStartClientId",(function(){return oc})),n.d(r,"getMultiSelectedBlocksEndClientId",(function(){return cc})),n.d(r,"getBlockOrder",(function(){return ic})),n.d(r,"getBlockIndex",(function(){return ac})),n.d(r,"isBlockSelected",(function(){return lc})),n.d(r,"hasSelectedInnerBlock",(function(){return sc})),n.d(r,"isBlockWithinSelection",(function(){return uc})),n.d(r,"hasMultiSelection",(function(){return dc})),n.d(r,"isMultiSelecting",(function(){return bc})),n.d(r,"isSelectionEnabled",(function(){return fc})),n.d(r,"getBlockMode",(function(){return pc})),n.d(r,"isTyping",(function(){return mc})),n.d(r,"isDraggingBlocks",(function(){return vc})),n.d(r,"getDraggedBlockClientIds",(function(){return gc})),n.d(r,"isBlockBeingDragged",(function(){return Oc})),n.d(r,"isAncestorBeingDragged",(function(){return hc})),n.d(r,"isCaretWithinFormattedText",(function(){return jc})),n.d(r,"getBlockInsertionPoint",(function(){return kc})),n.d(r,"isBlockInsertionPointVisible",(function(){return yc})),n.d(r,"isValidTemplate",(function(){return _c})),n.d(r,"getTemplate",(function(){return Ec})),n.d(r,"getTemplateLock",(function(){return Cc})),n.d(r,"canInsertBlockType",(function(){return Sc})),n.d(r,"canInsertBlocks",(function(){return Bc})),n.d(r,"getInserterItems",(function(){return Dc})),n.d(r,"getBlockTransformItems",(function(){return Ac})),n.d(r,"hasInserterItems",(function(){return Rc})),n.d(r,"__experimentalGetAllowedBlocks",(function(){return Lc})),n.d(r,"getBlockListSettings",(function(){return Mc})),n.d(r,"getSettings",(function(){return Fc})),n.d(r,"isLastBlockChangePersistent",(function(){return Vc})),n.d(r,"__experimentalGetBlockListSettingsForBlocks",(function(){return Hc})),n.d(r,"__experimentalGetParsedReusableBlock",(function(){return zc})),n.d(r,"__experimentalGetReusableBlockTitle",(function(){return Gc})),n.d(r,"__unstableIsLastBlockChangeIgnored",(function(){return Uc})),n.d(r,"__experimentalGetLastBlockAttributeChanges",(function(){return Wc})),n.d(r,"isNavigationMode",(function(){return qc})),n.d(r,"hasBlockMovingClientId",(function(){return $c})),n.d(r,"didAutomaticChange",(function(){return Yc})),n.d(r,"isBlockHighlighted",(function(){return Xc})),n.d(r,"areInnerBlocksControlled",(function(){return Qc})),n.d(r,"__experimentalGetActiveBlockIdByBlockNames",(function(){return Zc}));var o={};n.r(o),n.d(o,"resetBlocks",(function(){return Si})),n.d(o,"validateBlocksToTemplate",(function(){return Bi})),n.d(o,"resetSelection",(function(){return Ii})),n.d(o,"receiveBlocks",(function(){return xi})),n.d(o,"updateBlockAttributes",(function(){return Pi})),n.d(o,"updateBlock",(function(){return Ti})),n.d(o,"selectBlock",(function(){return Ni})),n.d(o,"selectPreviousBlock",(function(){return Di})),n.d(o,"selectNextBlock",(function(){return Ai})),n.d(o,"startMultiSelect",(function(){return Ri})),n.d(o,"stopMultiSelect",(function(){return Li})),n.d(o,"multiSelect",(function(){return Mi})),n.d(o,"clearSelectedBlock",(function(){return Fi})),n.d(o,"toggleSelection",(function(){return Vi})),n.d(o,"replaceBlocks",(function(){return zi})),n.d(o,"replaceBlock",(function(){return Gi})),n.d(o,"moveBlocksDown",(function(){return Wi})),n.d(o,"moveBlocksUp",(function(){return Ki})),n.d(o,"moveBlocksToPosition",(function(){return qi})),n.d(o,"moveBlockToPosition",(function(){return $i})),n.d(o,"insertBlock",(function(){return Yi})),n.d(o,"insertBlocks",(function(){return Xi})),n.d(o,"__unstableSetInsertionPoint",(function(){return Qi})),n.d(o,"showInsertionPoint",(function(){return Zi})),n.d(o,"hideInsertionPoint",(function(){return Ji})),n.d(o,"setTemplateValidity",(function(){return ea})),n.d(o,"synchronizeTemplate",(function(){return ta})),n.d(o,"mergeBlocks",(function(){return na})),n.d(o,"removeBlocks",(function(){return ra})),n.d(o,"removeBlock",(function(){return oa})),n.d(o,"replaceInnerBlocks",(function(){return ca})),n.d(o,"toggleBlockMode",(function(){return ia})),n.d(o,"startTyping",(function(){return aa})),n.d(o,"stopTyping",(function(){return la})),n.d(o,"startDraggingBlocks",(function(){return sa})),n.d(o,"stopDraggingBlocks",(function(){return ua})),n.d(o,"enterFormattedText",(function(){return da})),n.d(o,"exitFormattedText",(function(){return ba})),n.d(o,"selectionChange",(function(){return fa})),n.d(o,"insertDefaultBlock",(function(){return pa})),n.d(o,"updateBlockListSettings",(function(){return ma})),n.d(o,"updateSettings",(function(){return va})),n.d(o,"__unstableSaveReusableBlock",(function(){return ga})),n.d(o,"__unstableMarkLastChangeAsPersistent",(function(){return Oa})),n.d(o,"__unstableMarkNextChangeAsNotPersistent",(function(){return ha})),n.d(o,"__unstableMarkAutomaticChange",(function(){return ja})),n.d(o,"__unstableMarkAutomaticChangeFinal",(function(){return ka})),n.d(o,"setNavigationMode",(function(){return ya})),n.d(o,"setBlockMovingClientId",(function(){return _a})),n.d(o,"duplicateBlocks",(function(){return Ea})),n.d(o,"insertBeforeBlock",(function(){return Ca})),n.d(o,"insertAfterBlock",(function(){return wa})),n.d(o,"toggleBlockHighlight",(function(){return Sa})),n.d(o,"flashBlock",(function(){return Ba})),n.d(o,"setHasControlledInnerBlocks",(function(){return Ia}));var c=n(21),i=n(8),a=n(5),l=n(0),s=n(10),u=n.n(s),d=n(2),b=n(12),f=n(33),p=n(9),m=n(4),v=n(3),g=Object(l.createContext)({name:"",isSelected:!1,focusedElement:null,setFocusedElement:d.noop,clientId:null}),O=g.Provider;function h(){return Object(l.useContext)(g)}function j(){var e=h(),t=e.isSelected,n=e.clientId,r=e.name,o=Object(m.useSelect)((function(e){if(!t){var o=e("core/block-editor"),c=o.getBlockName,i=o.isFirstMultiSelectedBlock,a=o.getMultiSelectedBlockClientIds;return!!i(n)&&a().every((function(e){return c(e)===r}))}}),[n,t,r]);return t||o}var k=Object(v.createSlotFill)("BlockControls"),y=k.Fill,_=k.Slot;var E=function(e){var t=e.controls,n=e.children;return j()?Object(l.createElement)(y,null,(function(e){var r=Object(d.isEmpty)(e)?null:e;return Object(l.createElement)(v.__experimentalToolbarContext.Provider,{value:r},Object(l.createElement)(v.ToolbarGroup,{controls:t}),n)})):null};E.Slot=function(e){var t=Object(l.useContext)(v.__experimentalToolbarContext);return Object(l.createElement)(_,Object(i.a)({},e,{fillProps:t}))};var C=E,w=n(1),S=n(7),B=Object(l.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(S.Path,{d:"M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"})),I=Object(l.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(S.Path,{d:"M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"})),x=Object(l.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(S.Path,{d:"M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"})),P=Object(l.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(S.Path,{d:"M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"})),T=Object(l.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(S.Path,{d:"M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"})),N={type:"default"},D=Object(l.createContext)(N),A=D.Provider;function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t=Array.isArray(e)?W.filter((function(t){return e.includes(t)})):!0===e?W:[],!r||!0===e&&!n?d.without.apply(void 0,[t].concat(K)):t}var $=Object(b.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=q(Object(p.getBlockSupport)(n,"align"),Object(p.hasBlockSupport)(n,"alignWide",!0));return[r.length>0&&t.isSelected&&Object(l.createElement)(C,{key:"align-controls"},Object(l.createElement)(z,{value:t.attributes.align,onChange:function(e){var n,r;e||(null===(n=Object(p.getBlockType)(t.name).attributes)||void 0===n||null===(r=n.align)||void 0===r?void 0:r.default)&&(e="");t.setAttributes({align:e})},controls:r})),Object(l.createElement)(e,Object(i.a)({key:"edit"},t))]}}),"withToolbarControls"),Y=Object(b.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=t.attributes.align,o=Object(m.useSelect)((function(e){return!!e("core/block-editor").getSettings().alignWide}),[]);if(void 0===r)return Object(l.createElement)(e,t);var c=q(Object(p.getBlockSupport)(n,"align"),Object(p.hasBlockSupport)(n,"alignWide",!0),o),a=t.wrapperProps;return c.includes(r)&&(a=U(U({},a),{},{"data-align":r})),Object(l.createElement)(e,Object(i.a)({},t,{wrapperProps:a}))}}));Object(f.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(d.has)(e.attributes,["align","type"])||Object(p.hasBlockSupport)(e,"align")&&(e.attributes=U(U({},e.attributes),{},{align:{type:"string",enum:[].concat(W,[""])}})),e})),Object(f.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",Y),Object(f.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",$),Object(f.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){var r=n.align;return q(Object(p.getBlockSupport)(t,"align"),Object(p.hasBlockSupport)(t,"alignWide",!0)).includes(r)&&(e.className=u()("align".concat(r),e.className)),e}));var X=Object(v.createSlotFill)("InspectorAdvancedControls"),Q=X.Fill,Z=X.Slot;function J(e){var t=e.children;return h().isSelected?Object(l.createElement)(Q,null,t):null}J.slotName="InspectorAdvancedControls",J.Slot=Z;var ee=J,te=Object(v.createSlotFill)("InspectorControls"),ne=te.Fill,re=te.Slot;function oe(e){var t=e.children;return j()?Object(l.createElement)(ne,null,t):null}oe.Slot=re;var ce=oe;function ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ae(e){for(var t=1;t");var t=Object(p.parseWithAttributeSchema)(e,{type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"});return t?t.trim().split(/\s+/):[]}Object(f.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(p.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes=de(de({},e.attributes),{},{className:{type:"string"}})),e})),Object(f.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",be),Object(f.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return Object(p.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=u()(e.className,n.className)),e})),Object(f.addFilter)("blocks.getBlockAttributes","core/custom-class-name/addParsedDifference",(function(e,t,n){if(Object(p.hasBlockSupport)(t,"customClassName",!0)){var r=Object(d.omit)(e,["className"]),o=Object(p.getSaveContent)(t,r),c=fe(o),i=fe(n),a=Object(d.difference)(i,c);a.length?e.className=a.join(" "):o&&delete e.className}return e}));var pe=n(15);Object(f.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return Object(p.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=Object(d.uniq)([Object(p.getBlockDefaultClassName)(t.name)].concat(Object(pe.a)(e.className.split(" ")))).join(" ").trim():e.className=Object(p.getBlockDefaultClassName)(t.name)),e}));var me={"color.palette":function(e){return void 0===e.colors?void 0:e.colors},"color.gradients":function(e){return void 0===e.gradients?void 0:e.gradients},"color.custom":function(e){return void 0===e.disableCustomColors?void 0:!e.disableCustomColors},"color.customGradient":function(e){return void 0===e.disableCustomGradients?void 0:!e.disableCustomGradients},"typography.fontSizes":function(e){return void 0===e.fontSizes?void 0:e.fontSizes},"typography.customFontSize":function(e){return void 0===e.disableCustomFontSizes?void 0:!e.disableCustomFontSizes},"typography.customLineHeight":function(e){return e.enableCustomLineHeight},"spacing.units":function(e){if(void 0!==e.enableCustomUnits)return!0===e.enableCustomUnits?["px","em","rem","vh","vw"]:e.enableCustomUnits},"spacing.customPadding":function(e){return e.enableCustomSpacing}};function ve(e,t){for(var n in t)if(t[n]!==e[n])return!1;return!0}function ge(e){var t=h(),n=t.name,r=t.clientId;return Object(m.useSelect)((function(t){var o,c=t("core/block-editor"),i=c.getBlockAttributes,a=(0,c.getSettings)(),l=t(p.store).getBlockType(n),s=n,u=Object(d.get)(l,["supports","__experimentalSelector"]);if(Object(d.isObject)(u)){var b=i(r)||{};for(var f in u){if(ve(b,u[f].attributes)){s=f;break}}}var m="__experimentalFeatures.defaults.".concat(e),v="__experimentalFeatures.".concat(s,".").concat(e),g=null!==(o=Object(d.get)(a,v))&&void 0!==o?o:Object(d.get)(a,m);if(void 0!==g)return g;var O=me[e]?me[e](a):void 0;return void 0!==O?O:"typography.dropCap"===e||void 0}),[n,r,e])}var Oe=function e(t){if(!Object(d.isObject)(t))return t;var n=Object(d.pickBy)(Object(d.mapValues)(t,e),d.identity);return Object(d.isEqual)(n,{})?void 0:n};function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function je(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=!ge("border.customRadius");return!ye(t)||n}var Ee="__experimentalBorder";function Ce(e){var t=we(e),n=function(e){if("web"!==l.Platform.OS)return!1;var t=Object(p.getBlockSupport)(e,Ee);return!!(!0===t||null!=t&&t.radius)}(e.name);return t||!n?null:Object(l.createElement)(ce,null,Object(l.createElement)(v.PanelBody,{title:Object(w.__)("Border settings")},Object(l.createElement)(ke,e)))}var we=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[_e(e)];return t.every(Boolean)},Se=n(60),Be=n.n(Se),Ie=function(e,t,n){if(t){var r=Object(d.find)(e,{slug:t});if(r)return r}return{color:n}},xe=function(e,t){return Object(d.find)(e,{color:t})};function Pe(e,t){if(e&&t)return"has-".concat(Object(d.kebabCase)(t),"-").concat(e)}var Te=[];function Ne(e){if(e)return"has-".concat(e,"-gradient-background")}function De(e,t){var n=Object(d.find)(e,["slug",t]);return n&&n.gradient}function Ae(e,t){return Object(d.find)(e,["gradient",t])}function Re(e,t){var n=Ae(e,t);return n&&n.slug}function Le(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.gradientAttribute,n=void 0===t?"gradient":t,r=e.customGradientAttribute,o=void 0===r?"customGradient":r,c=h(),i=c.clientId,s=ge("color.gradients")||Te,u=Object(m.useSelect)((function(e){var t=(0,e("core/block-editor").getBlockAttributes)(i)||{};return{customGradient:t[o],gradient:t[n]}}),[i,n,o]),d=u.gradient,b=u.customGradient,f=Object(m.useDispatch)("core/block-editor"),p=f.updateBlockAttributes,v=Object(l.useCallback)((function(e){var t,r,c=Re(s,e);c?p(i,(r={},Object(a.a)(r,n,c),Object(a.a)(r,o,void 0),r)):p(i,(t={},Object(a.a)(t,n,void 0),Object(a.a)(t,o,e),t))}),[s,i,p]),g=Ne(d);return{gradientClass:g,gradientValue:d?De(s,d):b,setGradient:v}}var Me=n(11),Fe=n(13);function Ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function He(e){for(var t=1;t=24?"large":"small"})?null:Object(l.createElement)(ct,{backgroundColor:t,textColor:i,tinyBackgroundColor:a,tinyTextColor:s})};function at(e,t){return t.getElementById("block-"+e)}function lt(e,t){return t.closest(".block-editor-block-list__block")===e}function st(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(e){var t=e.closest(".block-editor-block-list__block");if(t)return t.id.slice("block-".length)}}function ut(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function dt(e){var t=e.settings,n=e.clientId,r=e.enableContrastChecking,o=void 0===r||r,c=Object(l.useState)(),i=Object(Me.a)(c,2),a=i[0],s=i[1],u=Object(l.useState)(),d=Object(Me.a)(u,2),b=d[0],f=d[1];return Object(l.useEffect)((function(){if(o){var e=at(n,document);if(e){f(ut(e).color);for(var t=e,r=ut(t).backgroundColor;"rgba(0, 0, 0, 0)"===r&&t.parentNode&&t.parentNode.nodeType===t.parentNode.ELEMENT_NODE;)r=ut(t=t.parentNode).backgroundColor;s(r)}}})),Object(l.createElement)(ce,null,Object(l.createElement)(rt,{title:Object(w.__)("Color settings"),initialOpen:!1,settings:t},o&&Object(l.createElement)(it,{backgroundColor:a,textColor:b})))}function bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ft(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=!Object(p.hasBlockSupport)(t,"__experimentalTextDecoration"),r=ge("typography.customTextDecorations");return n||!r}var Pt=Object(l.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(S.Path,{d:"M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"})),Tt=Object(l.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(S.Path,{d:"M10.8 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.1-.4-.3-.9-.4-1.6-.4-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.3 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.5.1-.7 0-.8-.1zM9.1 16c-.2.3-.5.6-.9.8-.4.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.5-3.9c-.3-.6-.7-1.1-1.2-1.5-.5-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1 0-.6-.2-1.3-.5-1.9zm-1.6 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.5-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"})),Nt=Object(l.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(S.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"})),Dt=[{name:Object(w.__)("Uppercase"),value:"uppercase",icon:Pt},{name:Object(w.__)("Lowercase"),value:"lowercase",icon:Tt},{name:Object(w.__)("Capitalize"),value:"capitalize",icon:Nt}];function At(e){var t=e.value,n=e.onChange;return Object(l.createElement)("fieldset",{className:"block-editor-text-transform-control"},Object(l.createElement)("legend",null,Object(w.__)("Letter case")),Object(l.createElement)("div",{className:"block-editor-text-transform-control__buttons"},Dt.map((function(e){return Object(l.createElement)(v.Button,{key:e.value,icon:e.icon,isSmall:!0,isPressed:t===e.value,"aria-label":e.name,onClick:function(){return n(t===e.value?void 0:e.value)}})}))))}function Rt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=!Object(p.hasBlockSupport)(t,"__experimentalTextTransform"),r=ge("typography.customTextTransforms");return n||!r}function Vt(e){var t=!xt(e),n=!Ft(e);return t||n?Object(l.createElement)("div",{className:"block-editor-text-decoration-and-transform"},t&&Object(l.createElement)(It,e),n&&Object(l.createElement)(Mt,e)):null}var Ht=n(17);function zt(e){var t=e.value,n=e.onChange,r=function(e){return void 0!==e&&""!==e}(t),o=r?t:"";return Object(l.createElement)("div",{className:"block-editor-line-height-control"},Object(l.createElement)(v.TextControl,{autoComplete:"off",onKeyDown:function(e){e.keyCode!==Ht.ZERO||r||(e.preventDefault(),n("0"))},onChange:function(e){if(r)n(e);else{var t=e;switch(e){case"".concat(.1):t=1.6;break;case"0":t=1.4}n(t)}},label:Object(w.__)("Line height"),placeholder:1.5,step:.1,type:"number",value:o,min:0}))}function Gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ut(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=!ge("typography.customLineHeight");return!Object(p.hasBlockSupport)(t,"lineHeight")||n}var qt=[{name:Object(w.__)("Regular"),value:"normal"},{name:Object(w.__)("Italic"),value:"italic"}],$t=[{name:Object(w.__)("Thin"),value:"100"},{name:Object(w.__)("Extra Light"),value:"200"},{name:Object(w.__)("Light"),value:"300"},{name:Object(w.__)("Regular"),value:"400"},{name:Object(w.__)("Medium"),value:"500"},{name:Object(w.__)("Semi Bold"),value:"600"},{name:Object(w.__)("Bold"),value:"700"},{name:Object(w.__)("Extra Bold"),value:"800"},{name:Object(w.__)("Black"),value:"900"}];function Yt(e){var t=e.onChange,n=e.hasFontStyles,r=void 0===n||n,o=e.hasFontWeights,c=void 0===o||o,i=e.value,a=i.fontStyle,s=i.fontWeight,u=r||c,d={key:"default",name:Object(w.__)("Default"),style:{fontStyle:void 0,fontWeight:void 0}},b=Object(l.useMemo)((function(){return r&&c?(e=[d],qt.forEach((function(t){var n=t.name,r=t.value;$t.forEach((function(t){var o=t.name,c=t.value,i="normal"===r?o:Object(w.sprintf)(Object(w.__)("%1$s %2$s"),o,n);e.push({key:"".concat(r,"-").concat(c),name:i,style:{fontStyle:r,fontWeight:c}})}))})),e):r?function(){var e=[d];return qt.forEach((function(t){var n=t.name,r=t.value;e.push({key:r,name:n,style:{fontStyle:r,fontWeight:void 0}})})),e}():function(){var e=[d];return $t.forEach((function(t){var n=t.name,r=t.value;e.push({key:r,name:n,style:{fontStyle:void 0,fontWeight:r}})})),e}();var e}),[e.options]),f=b.find((function(e){return e.style.fontStyle===a&&e.style.fontWeight===s}));return Object(l.createElement)("fieldset",{className:"components-font-appearance-control"},u&&Object(l.createElement)(v.CustomSelectControl,{className:"components-font-appearance-control__select",label:r?c?Object(w.__)("Appearance"):Object(w.__)("Font style"):Object(w.__)("Font weight"),options:b,value:f,onChange:function(e){var n=e.selectedItem;return t(n.style)}}))}function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=Object(p.hasBlockSupport)(t,"__experimentalFontStyle"),r=ge("typography.customFontStyle");return!n||!r}function en(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=Object(p.hasBlockSupport)(t,"__experimentalFontWeight"),r=ge("typography.customFontWeight");return!n||!r}function tn(e){var t=Jt(e),n=en(e);return t&&n}function nn(e){var t=e.value,n=void 0===t?"":t,r=e.onChange,o=e.fontFamilies,c=Object(Fe.a)(e,["value","onChange","fontFamilies"]),a=ge("typography.fontFamilies");if(o||(o=a),Object(d.isEmpty)(o))return null;var s=[{value:"",label:Object(w.__)("Default")}].concat(Object(pe.a)(o.map((function(e){var t=e.fontFamily;return{value:t,label:e.name||t}}))));return Object(l.createElement)(v.SelectControl,Object(i.a)({label:Object(w.__)("Font family"),options:s,value:n,onChange:r,labelPosition:"top"},c))}function rn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function on(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=ge("typography.fontSizes"),r=!(null==n||!n.length);return!Object(p.hasBlockSupport)(t,"fontSize")||!r}var hn=Object(b.createHigherOrderComponent)((function(e){return function(t){var n,r=ge("typography.fontSizes"),o=t.name,c=t.attributes,i=c.fontSize,a=c.style,s=t.wrapperProps,u=mn({},t);if(Object(p.hasBlockSupport)(o,"fontSize")&&i&&(null==a||null===(n=a.typography)||void 0===n||!n.fontSize)){var d,b=un(r,i,null==a||null===(d=a.typography)||void 0===d?void 0:d.fontSize).size;u.wrapperProps=mn(mn({},s),{},{style:mn({fontSize:b},null==s?void 0:s.style)})}return Object(l.createElement)(e,u)}}),"withFontSizeInlineStyles");Object(f.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return Object(p.hasBlockSupport)(e,"fontSize")?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),Object(f.addFilter)("blocks.getSaveContent.extraProps","core/font/addSaveProps",vn),Object(f.addFilter)("blocks.registerBlockType","core/font/addEditProps",(function(e){if(!Object(p.hasBlockSupport)(e,"fontSize"))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),vn(r,e,n)},e})),Object(f.addFilter)("editor.BlockListBlock","core/font-size/with-font-size-inline-styles",hn);var jn=["lineHeight","fontSize","__experimentalFontStyle","__experimentalFontWeight","__experimentalFontFamily","__experimentalTextDecoration","__experimentalTextTransform"];function kn(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[tn(e),On(e),Kt(e),an(e),xt(e),Ft(e)];return t.filter(Boolean).length===t.length}(e),n=yn(e.name);return t||!n?null:Object(l.createElement)(ce,null,Object(l.createElement)(v.PanelBody,{title:Object(w.__)("Typography")},Object(l.createElement)(v.__unstableComponentSystemProvider,{__unstableNextInclude:["WPComponentsFontSizePicker"]},Object(l.createElement)(cn,e),Object(l.createElement)(gn,e),Object(l.createElement)(Zt,e),Object(l.createElement)(Wt,e),Object(l.createElement)(Vt,e))))}var yn=function(e){return"web"===l.Platform.OS&&jn.some((function(t){return Object(p.hasBlockSupport)(e,t)}))};function _n(e){var t=e.units,n=Object(Fe.a)(e,["units"]),r=En(t);return Object(l.createElement)(v.__experimentalUnitControl,Object(i.a)({units:r},n))}function En(e){var t=ge("spacing.units"),n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.filter((function(t){return e.includes(t.value)}))}(t||[],e);return 0!==n.length&&n}function Cn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wn(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t={};return Object.keys(p.__EXPERIMENTAL_STYLE_PROPERTY).forEach((function(n){var r=p.__EXPERIMENTAL_STYLE_PROPERTY[n].value,o=p.__EXPERIMENTAL_STYLE_PROPERTY[n].properties;Object(d.has)(e,r)&&(o?o.forEach((function(o){t[n+Object(d.capitalize)(o)]=Nn(Object(d.get)(e,[].concat(Object(pe.a)(r),[o])))})):t[n]=Nn(Object(d.get)(e,r)))})),t}(r)),e.style),e}var An=Object(b.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=Object(p.hasBlockSupport)(n,"spacing");return[Object(l.createElement)(kn,Object(i.a)({key:"typography"},t)),Object(l.createElement)(Ce,Object(i.a)({key:"border"},t)),Object(l.createElement)(kt,Object(i.a)({key:"colors"},t)),Object(l.createElement)(e,Object(i.a)({key:"edit"},t)),r&&Object(l.createElement)(Bn,{key:"spacing"},Object(l.createElement)(Sn,t))]}}),"withToolbarControls");Object(f.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return Tn(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(f.addFilter)("blocks.getSaveContent.extraProps","core/style/addSaveProps",Dn),Object(f.addFilter)("blocks.registerBlockType","core/style/addEditProps",(function(e){if(!Tn(e))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),Dn(r,e,n)},e})),Object(f.addFilter)("editor.BlockEdit","core/style/with-block-controls",An);var Rn=n(25),Ln=n(26),Mn=n(18),Fn=n(28),Vn=n(29),Hn=n(19);function zn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Hn.a)(e);if(t){var o=Object(Hn.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Vn.a)(this,n)}}function Gn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Un(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function cr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{panelTitle:Object(w.__)("Color settings")},n=t.panelTitle,r=void 0===n?Object(w.__)("Color settings"):n,o=t.colorPanelProps,c=t.contrastCheckers,i=t.panelChildren,s=t.colorDetector,b=(s=void 0===s?{}:s).targetRef,f=s.backgroundColorTargetRef,p=void 0===f?b:f,v=s.textColorTargetRef,g=void 0===v?b:v,O=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],j=h(),k=j.clientId,y=ge("color.palette")||sr,_=Object(m.useSelect)((function(e){return{attributes:(0,e("core/block-editor").getBlockAttributes)(k)}}),[k]),E=_.attributes,C=Object(m.useDispatch)("core/block-editor"),S=C.updateBlockAttributes,B=Object(l.useCallback)((function(e){return S(k,e)}),[S,k]),I=Object(l.useMemo)((function(){return Zn()((function(e,t,n,r,o,c){return function(i){var s,b=i.children,f=i.className,p=void 0===f?"":f,m=i.style,v=void 0===m?{}:m,g={};r?g=Object(a.a)({},t,o):c&&(g=Object(a.a)({},t,c));var O={className:u()(p,(s={},Object(a.a)(s,"has-".concat(Object(d.kebabCase)(r),"-").concat(Object(d.kebabCase)(t)),r),Object(a.a)(s,n||"has-".concat(Object(d.kebabCase)(e)),r||c),s)),style:ar(ar({},g),v)};return Object(d.isFunction)(b)?b(O):l.Children.map(b,(function(e){return Object(l.cloneElement)(e,{className:u()(e.props.className,O.className),style:ar(ar({},O.style),e.props.style||{})})}))}}),{maxSize:e.length})}),[e.length]),x=Object(l.useMemo)((function(){return Zn()((function(e,t){return function(n){var r=t.find((function(e){return e.color===n}));B(Object(a.a)({},r?Object(d.camelCase)("custom ".concat(e)):e,void 0)),B(Object(a.a)({},r?e:Object(d.camelCase)("custom ".concat(e)),r?r.slug:n))}}),{maxSize:e.length})}),[B,e.length]),P=Object(l.useState)(),T=Object(Me.a)(P,2),N=T[0],D=T[1],A=Object(l.useState)(),R=Object(Me.a)(A,2),L=R[0],M=R[1];return Object(l.useEffect)((function(){if(c){var e,t=!1,n=!1,r=or(Object(d.castArray)(c));try{for(r.s();!(e=r.n()).done;){var o=e.value,i=o.backgroundColor,a=o.textColor;if(t||(t=!0===i),n||(n=!0===a),t&&n)break}}catch(e){r.e(e)}finally{r.f()}if(n&&M(lr(g.current).color),t){for(var l=p.current,s=lr(l).backgroundColor;"rgba(0, 0, 0, 0)"===s&&l.parentNode&&l.parentNode.nodeType===l.parentNode.ELEMENT_NODE;)s=lr(l=l.parentNode).backgroundColor;D(s)}}}),[e.reduce((function(e,t){return"".concat(e," | ").concat(E[t.name]," | ").concat(E[Object(d.camelCase)("custom ".concat(t.name))])}),"")].concat(Object(pe.a)(O))),Object(l.useMemo)((function(){var t={},n=e.reduce((function(e,n){"string"==typeof n&&(n={name:n});var r=ar(ar({},n),{},{color:E[n.name]}),o=r.name,c=r.property,i=void 0===c?o:c,a=r.className,l=r.panelLabel,s=void 0===l?n.label||ur[o]||Object(d.startCase)(o):l,u=r.componentName,b=void 0===u?Object(d.startCase)(o).replace(/\s/g,""):u,f=r.color,p=void 0===f?n.color:f,m=r.colors,v=void 0===m?y:m,g=E[Object(d.camelCase)("custom ".concat(o))],O=g?void 0:v.find((function(e){return e.slug===p}));return e[b]=I(o,i,a,p,O&&O.color,g),e[b].displayName=b,e[b].color=g||O&&O.color,e[b].slug=p,e[b].setColor=x(o,v),t[b]={value:O?O.color:E[Object(d.camelCase)("custom ".concat(o))],onChange:e[b].setColor,label:s,colors:v},v||delete t[b].colors,e}),{}),a={title:r,initialOpen:!1,colorSettings:t,colorPanelProps:o,contrastCheckers:c,detectedBackgroundColor:N,detectedColor:L,panelChildren:i};return ar(ar({},n),{},{ColorPanel:Object(l.createElement)(rr,a),InspectorControlsColorPanel:Object(l.createElement)(dr,a)})}),[E,B,L,N].concat(Object(pe.a)(O)))}function fr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pr(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";return e=(e=(e=Object(d.deburr)(e)).replace(/^\//,"")).toLowerCase()}var Nr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Object(d.words)(Tr(e))},Dr=function(e,t){return Object(d.differenceWith)(e,Nr(t),(function(e,t){return t.includes(e)}))},Ar=function(e,t,n,r){return 0===Nr(r).length?e:Rr(e,r,{getCategory:function(e){var n;return null===(n=Object(d.find)(t,{slug:e.category}))||void 0===n?void 0:n.title},getCollection:function(e){var t;return null===(t=n[e.name.split("/")[0]])||void 0===t?void 0:t.title}})},Rr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Nr(t);if(0===r.length)return e;var o=e.map((function(e){return[e,Lr(e,t,n)]})).filter((function(e){return Object(Me.a)(e,2)[1]>0}));return o.sort((function(e,t){var n=Object(Me.a)(e,2)[1];return Object(Me.a)(t,2)[1]-n})),o.map((function(e){return Object(Me.a)(e,1)[0]}))};function Lr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.getName,o=void 0===r?wr:r,c=n.getTitle,i=void 0===c?Sr:c,a=n.getDescription,l=void 0===a?Br:a,s=n.getKeywords,u=void 0===s?Ir:s,b=n.getCategory,f=void 0===b?xr:b,p=n.getCollection,m=void 0===p?Pr:p,v=o(e),g=i(e),O=l(e),h=u(e),j=f(e),k=m(e),y=Tr(t),_=Tr(g),E=0;if(y===_)E+=30;else if(_.startsWith(y))E+=20;else{var C=[v,g,O].concat(Object(pe.a)(h),[j,k]).join(" "),w=Object(d.words)(y),S=Dr(w,C);0===S.length&&(E+=10)}return 0!==E&&v.startsWith("core/")&&E++,E}var Mr=function(e,t){var n=Object(m.useSelect)((function(t){var n=t("core/block-editor").getInserterItems,r=t(p.store),o=r.getCategories,c=r.getCollections;return{categories:o(),collections:c(),items:n(e)}}),[e]),r=n.categories,o=n.collections;return[n.items,r,o,Object(l.useCallback)((function(e){var n=e.name,r=e.initialAttributes,o=e.innerBlocks,c=Object(p.createBlock)(n,r,Object(p.createBlocksFromInnerBlocksTemplate)(o));t(c)}),[t])]},Fr=n(215);function Vr(e){var t,n=e.icon,r=e.showColors,o=void 0!==r&&r,c=e.className;"block-default"===(null===(t=n)||void 0===t?void 0:t.src)&&(n={src:Fr.a});var i=Object(l.createElement)(v.Icon,{icon:n&&n.src?n.src:n}),a=o?{backgroundColor:n&&n.background,color:n&&n.foreground}:{};return Object(l.createElement)("span",{style:a,className:u()("block-editor-block-icon",c,{"has-colors":o})},i)}var Hr={name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems:function(e){var t=Object(m.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getBlockName,o=t.getBlockInsertionPoint,c=n();return{selectedBlockName:c?r(c):null,rootClientId:o().rootClientId}}),[]),n=t.rootClientId,r=t.selectedBlockName,o=Mr(n,d.noop),c=Object(Me.a)(o,3),i=c[0],a=c[1],s=c[2],u=Object(l.useMemo)((function(){return(e.trim()?Ar(i,a,s,e):Object(d.orderBy)(i,["frecency"],["desc"])).filter((function(e){return e.name!==r})).slice(0,9)}),[e,r,i,a,s]);return[Object(l.useMemo)((function(){return u.map((function(e){var t=e.title,n=e.icon,r=e.isDisabled;return{key:"block-".concat(e.id),value:e,label:Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Vr,{key:"icon",icon:n,showColors:!0}),t),isDisabled:r}}))}),[u])]},allowContext:function(e,t){return!(/\S/.test(e)||/\S/.test(t))},getOptionCompletion:function(e){var t=e.name,n=e.initialAttributes,r=e.innerBlocks;return{action:"replace",value:Object(p.createBlock)(t,n,Object(p.createBlocksFromInnerBlocksTemplate)(r))}}},zr=[];var Gr=function(e){var t=h().name,n=e.completers,r=void 0===n?zr:n;return r=Object(l.useMemo)((function(){var e=r;return t===Object(p.getDefaultBlockName)()&&(e=e.concat([Hr])),Object(f.hasFilter)("editor.Autocomplete.completers")&&(e===r&&(e=e.map(d.clone)),e=Object(f.applyFilters)("editor.Autocomplete.completers",e,t)),e}),[r,t]),Object(l.createElement)(v.Autocomplete,Object(i.a)({},e,{completers:r}))},Ur=Object(l.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(S.Path,{d:"M4.2 9h1.5V5.8H9V4.2H4.2V9zm14 9.2H15v1.5h4.8V15h-1.5v3.2zM15 4.2v1.5h3.2V9h1.5V4.2H15zM5.8 15H4.2v4.8H9v-1.5H5.8V15z"}));var Wr=function(e){var t=e.isActive,n=e.label,r=void 0===n?Object(w.__)("Toggle full height"):n,o=e.onToggle,c=e.isDisabled;return Object(l.createElement)(v.ToolbarGroup,null,Object(l.createElement)(v.ToolbarButton,{isActive:t,icon:Ur,label:r,onClick:function(){return o(!t)},disabled:c}))};var Kr=function(e){var t=e.label,n=void 0===t?Object(w.__)("Change matrix alignment"):t,r=e.onChange,o=void 0===r?d.noop:r,c=e.value,i=void 0===c?"center":c,a=e.isDisabled,s=Object(l.createElement)(v.__experimentalAlignmentMatrixControl.Icon,{value:i}),u="block-editor-block-alignment-matrix-toolbar",b="".concat(u,"__popover");return Object(l.createElement)(v.Dropdown,{position:"bottom right",className:u,popoverProps:{className:b,isAlternate:!0},renderToggle:function(e){var t=e.onToggle,r=e.isOpen;return Object(l.createElement)(v.ToolbarGroup,null,Object(l.createElement)(v.ToolbarButton,{onClick:t,"aria-haspopup":"true","aria-expanded":r,onKeyDown:function(e){r||e.keyCode!==Ht.DOWN||(e.preventDefault(),e.stopPropagation(),t())},label:n,icon:s,showTooltip:!0,disabled:a}))},renderContent:function(){return Object(l.createElement)(v.__experimentalAlignmentMatrixControl,{hasFocusBorder:!1,onChange:o,value:i})}})},qr={insertUsage:{}},$r={alignWide:!1,colors:[{name:Object(w.__)("Black"),slug:"black",color:"#000000"},{name:Object(w.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Object(w.__)("White"),slug:"white",color:"#ffffff"},{name:Object(w.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Object(w.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Object(w.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Object(w.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Object(w.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Object(w.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Object(w.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Object(w.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Object(w.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:Object(w._x)("Small","font size name"),size:13,slug:"small"},{name:Object(w._x)("Normal","font size name"),size:16,slug:"normal"},{name:Object(w._x)("Medium","font size name"),size:20,slug:"medium"},{name:Object(w._x)("Large","font size name"),size:36,slug:"large"},{name:Object(w._x)("Huge","font size name"),size:42,slug:"huge"}],imageSizes:[{slug:"thumbnail",name:Object(w.__)("Thumbnail")},{slug:"medium",name:Object(w.__)("Medium")},{slug:"large",name:Object(w.__)("Large")},{slug:"full",name:Object(w.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,availableLegacyWidgets:{},__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__experimentalSpotlightEntityBlocks:[],gradients:[{name:Object(w.__)("Vivid cyan blue to vivid purple"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:Object(w.__)("Light green cyan to vivid green cyan"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:Object(w.__)("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:Object(w.__)("Luminous vivid orange to vivid red"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:Object(w.__)("Very light gray to cyan bluish gray"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:Object(w.__)("Cool to warm spectrum"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:Object(w.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:Object(w.__)("Blush bordeaux"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:Object(w.__)("Luminous dusk"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:Object(w.__)("Pale ocean"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:Object(w.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:Object(w.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}]};function Yr(e,t,n){return[].concat(Object(pe.a)(e.slice(0,n)),Object(pe.a)(Object(d.castArray)(t)),Object(pe.a)(e.slice(n)))}function Xr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=Object(pe.a)(e);return o.splice(t,r),Yr(o,e.slice(t,t+r),n)}function Qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zr(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"",n=Object(a.a)({},t,[]);return e.forEach((function(e){var r=e.clientId,o=e.innerBlocks;n[t].push(r),Object.assign(n,Jr(o,r))})),n}function eo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce((function(e,n){return Object.assign(e,Object(a.a)({},n.clientId,t),eo(n.innerBlocks,n.clientId))}),{})}function to(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.identity,n={},r=Object(pe.a)(e);r.length;){var o=r.shift(),c=o.innerBlocks,i=Object(Fe.a)(o,["innerBlocks"]);r.push.apply(r,Object(pe.a)(c)),n[i.clientId]=t(i)}return n}function no(e){return to(e,(function(e){return Object(d.omit)(e,"attributes")}))}function ro(e){return to(e,(function(e){return e.attributes}))}function oo(e,t){return e===t?Zr({},e):t}function co(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&Object(d.isEqual)(e.clientIds,t.clientIds)&&(n=e.attributes,r=t.attributes,Object(d.isEqual)(Object(d.keys)(n),Object(d.keys)(r)));var n,r}var io=function(e){return e.reduce((function(e,t){return e[t]={},e}),{})};var ao=Object(d.flow)(m.combineReducers,(function(e){return function(t,n){if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){var r=n.id,o=n.updatedId;if(r===o)return t;(t=Zr({},t)).attributes=Object(d.mapValues)(t.attributes,(function(e,n){return"core/block"===t.byClientId[n].name&&e.ref===r?Zr(Zr({},e),{},{ref:o}):e}))}return e(t,n)}}),(function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=e(t,n);if(r===t)return t;r.cache=t.cache?t.cache:{};var o=function(e){return e.reduce((function(e,n){var r=n;do{e.push(r),r=t.parents[r]}while(r&&!t.controlledInnerBlocks[r]);return e}),[])};switch(n.type){case"RESET_BLOCKS":r.cache=Object(d.mapValues)(to(n.blocks),(function(){return{}}));break;case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":var c=Object(d.keys)(to(n.blocks));n.rootClientId&&!t.controlledInnerBlocks[n.rootClientId]&&c.push(n.rootClientId),r.cache=Zr(Zr({},r.cache),io(o(c)));break;case"UPDATE_BLOCK":r.cache=Zr(Zr({},r.cache),io(o([n.clientId])));break;case"UPDATE_BLOCK_ATTRIBUTES":r.cache=Zr(Zr({},r.cache),io(o(n.clientIds)));break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var i=io(o(n.replacedClientIds));r.cache=Zr(Zr(Zr({},Object(d.omit)(r.cache,n.replacedClientIds)),Object(d.omit)(i,n.replacedClientIds)),io(Object(d.keys)(to(n.blocks))));break;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":r.cache=Zr(Zr({},Object(d.omit)(r.cache,n.removedClientIds)),io(Object(d.difference)(o(n.clientIds),n.clientIds)));break;case"MOVE_BLOCKS_TO_POSITION":var a=Object(pe.a)(n.clientIds);n.fromRootClientId&&a.push(n.fromRootClientId),n.toRootClientId&&a.push(n.toRootClientId),r.cache=Zr(Zr({},r.cache),io(o(a)));break;case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":var l=[];n.rootClientId&&l.push(n.rootClientId),r.cache=Zr(Zr({},r.cache),io(o(l)));break;case"SAVE_REUSABLE_BLOCK_SUCCESS":var s=Object(d.keys)(Object(d.omitBy)(r.attributes,(function(e,t){return"core/block"!==r.byClientId[t].name||e.ref!==n.updatedId})));r.cache=Zr(Zr({},r.cache),io(o(s)))}return r}}),(function(e){return function(t,n){var r=function(e){for(var r=e,o=0;o1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(d.reduce)(t[n],(function(n,o){return r[o]?n:[].concat(Object(pe.a)(n),[o],Object(pe.a)(e(t,o)))}),[])}(t.order,"",t.controlledInnerBlocks),o=Object.keys(Object(d.pickBy)(t.controlledInnerBlocks));return Zr(Zr({},t),{},{byClientId:Zr(Zr({},Object(d.omit)(t.byClientId,r)),no(n.blocks)),attributes:Zr(Zr({},Object(d.omit)(t.attributes,r)),ro(n.blocks)),order:Zr(Zr({},Object(d.omit)(t.order,r)),Object(d.omit)(Jr(n.blocks),o)),parents:Zr(Zr({},Object(d.omit)(t.parents,r)),eo(n.blocks)),cache:Zr(Zr({},Object(d.omit)(t.cache,r)),Object(d.omit)(Object(d.mapValues)(to(n.blocks),(function(){return{}})),o))})}return e(t,n)}}),(function(e){var t,n=!1;return function(r,o){var c=e(r,o),i="MARK_LAST_CHANGE_AS_PERSISTENT"===o.type||n;if(r===c&&!i){var a;n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type;var l=null===(a=null==r?void 0:r.isPersistentChange)||void 0===a||a;return r.isPersistentChange===l?r:Zr(Zr({},c),{},{isPersistentChange:l})}return c=Zr(Zr({},c),{},{isPersistentChange:i?!n:!co(o,t)}),t=o,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type,c}}),(function(e){var t=new Set(["RECEIVE_BLOCKS"]);return function(n,r){var o=e(n,r);return o!==n&&(o.isIgnoredChange=t.has(r.type)),o}}))({byClientId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return no(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return Zr(Zr({},e),no(t.blocks));case"UPDATE_BLOCK":if(!e[t.clientId])return e;var n=Object(d.omit)(t.updates,"attributes");return Object(d.isEmpty)(n)?e:Zr(Zr({},e),{},Object(a.a)({},t.clientId,Zr(Zr({},e[t.clientId]),n)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?Zr(Zr({},Object(d.omit)(e,t.replacedClientIds)),no(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(d.omit)(e,t.removedClientIds)}return e},attributes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return ro(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return Zr(Zr({},e),ro(t.blocks));case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?Zr(Zr({},e),{},Object(a.a)({},t.clientId,Zr(Zr({},e[t.clientId]),t.updates.attributes))):e;case"UPDATE_BLOCK_ATTRIBUTES":if(t.clientIds.every((function(t){return!e[t]})))return e;var n=t.clientIds.reduce((function(n,r){return Zr(Zr({},n),{},Object(a.a)({},r,Object(d.reduce)(t.attributes,(function(t,n,o){return n!==t[o]&&((t=oo(e[r],t))[o]=n),t}),e[r])))}),{});return t.clientIds.every((function(t){return n[t]===e[t]}))?e:Zr(Zr({},e),n);case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?Zr(Zr({},Object(d.omit)(e,t.replacedClientIds)),ro(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(d.omit)(e,t.removedClientIds)}return e},order:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return Jr(t.blocks);case"RECEIVE_BLOCKS":return Zr(Zr({},e),Object(d.omit)(Jr(t.blocks),""));case"INSERT_BLOCKS":var n=t.rootClientId,r=void 0===n?"":n,o=e[r]||[],c=Jr(t.blocks,r),i=t.index,l=void 0===i?o.length:i;return Zr(Zr(Zr({},e),c),{},Object(a.a)({},r,Yr(o,c[r],l)));case"MOVE_BLOCKS_TO_POSITION":var s,u=t.fromRootClientId,b=void 0===u?"":u,f=t.toRootClientId,p=void 0===f?"":f,m=t.clientIds,v=t.index,g=void 0===v?e[p].length:v;if(b===p){var O=e[p],h=O.indexOf(m[0]);return Zr(Zr({},e),{},Object(a.a)({},p,Xr(e[p],h,g,m.length)))}return Zr(Zr({},e),{},(s={},Object(a.a)(s,b,d.without.apply(void 0,[e[b]].concat(Object(pe.a)(m)))),Object(a.a)(s,p,Yr(e[p],m,g)),s));case"MOVE_BLOCKS_UP":var j=t.clientIds,k=t.rootClientId,y=void 0===k?"":k,_=Object(d.first)(j),E=e[y];if(!E.length||_===Object(d.first)(E))return e;var C=E.indexOf(_);return Zr(Zr({},e),{},Object(a.a)({},y,Xr(E,C,C-1,j.length)));case"MOVE_BLOCKS_DOWN":var w=t.clientIds,S=t.rootClientId,B=void 0===S?"":S,I=Object(d.first)(w),x=Object(d.last)(w),P=e[B];if(!P.length||x===Object(d.last)(P))return e;var T=P.indexOf(I);return Zr(Zr({},e),{},Object(a.a)({},B,Xr(P,T,T+1,w.length)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var N=t.clientIds;if(!t.blocks)return e;var D=Jr(t.blocks);return Object(d.flow)([function(e){return Object(d.omit)(e,t.replacedClientIds)},function(e){return Zr(Zr({},e),Object(d.omit)(D,""))},function(e){return Object(d.mapValues)(e,(function(e){return Object(d.reduce)(e,(function(e,t){return t===N[0]?[].concat(Object(pe.a)(e),Object(pe.a)(D[""])):(-1===N.indexOf(t)&&e.push(t),e)}),[])}))}])(e);case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(d.flow)([function(e){return Object(d.omit)(e,t.removedClientIds)},function(e){return Object(d.mapValues)(e,(function(e){return d.without.apply(void 0,[e].concat(Object(pe.a)(t.removedClientIds)))}))}])(e)}return e},parents:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return eo(t.blocks);case"RECEIVE_BLOCKS":return Zr(Zr({},e),eo(t.blocks));case"INSERT_BLOCKS":return Zr(Zr({},e),eo(t.blocks,t.rootClientId||""));case"MOVE_BLOCKS_TO_POSITION":return Zr(Zr({},e),t.clientIds.reduce((function(e,n){return e[n]=t.toRootClientId||"",e}),{}));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Zr(Zr({},Object(d.omit)(e,t.replacedClientIds)),eo(t.blocks,e[t.clientIds[0]]));case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(d.omit)(e,t.removedClientIds)}return e},controlledInnerBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.clientId,o=t.hasControlledInnerBlocks;return"SET_HAS_CONTROLLED_INNER_BLOCKS"===n?Zr(Zr({},e),{},Object(a.a)({},r,o)):e}});function lo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection&&t.blocks.length?{clientId:t.blocks[0].clientId}:e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.clientId)?{}:e;case"REPLACE_BLOCKS":if(-1===t.clientIds.indexOf(e.clientId))return e;var n=t.indexToSelect||t.blocks.length-1,r=t.blocks[n];if(!r)return{};if(r.clientId===e.clientId)return e;var o={clientId:r.clientId};return"number"==typeof t.initialPosition&&(o.initialPosition=t.initialPosition),o}return e}function so(e,t,n){switch(t.type){case"CLEAR_SELECTED_BLOCK":case"SELECT_BLOCK":case"SELECTION_CHANGE":case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":case"REMOVE_BLOCKS":case"REPLACE_BLOCKS":return n}return e}var uo=Object(m.combineReducers)({blocks:ao,isTyping:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},draggedBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e},isCaretWithinFormattedText:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return e},selection:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;switch(r.type){case"SELECTION_CHANGE":return{selectionStart:{clientId:r.clientId,attributeKey:r.attributeKey,offset:r.startOffset},selectionEnd:{clientId:r.clientId,attributeKey:r.attributeKey,offset:r.endOffset}};case"RESET_SELECTION":var o=r.selectionStart,c=r.selectionEnd;return{selectionStart:o,selectionEnd:c};case"MULTI_SELECT":var i=r.start,a=r.end;return{selectionStart:{clientId:i},selectionEnd:{clientId:a}};case"RESET_BLOCKS":var l=null==n||null===(e=n.selectionStart)||void 0===e?void 0:e.clientId,s=null==n||null===(t=n.selectionEnd)||void 0===t?void 0:t.clientId;if(!l&&!s)return n;if(!r.blocks.some((function(e){return e.clientId===l})))return{selectionStart:{},selectionEnd:{}};if(!r.blocks.some((function(e){return e.clientId===s})))return Zr(Zr({},n),{},{selectionEnd:n.selectionStart})}return{selectionStart:lo(n.selectionStart,r),selectionEnd:lo(n.selectionEnd,r)}},isMultiSelecting:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TOGGLE_SELECTION":return t.isSelectionEnabled}return e},initialPosition:function(e,t){return"REPLACE_BLOCKS"===t.type&&"number"==typeof t.initialPosition||"SELECT_BLOCK"===t.type?t.initialPosition:"REMOVE_BLOCKS"===t.type||"START_TYPING"===t.type?e:void 0},blocksMode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("TOGGLE_BLOCK_MODE"===t.type){var n=t.clientId;return Zr(Zr({},e),{},Object(a.a)({},n,e[n]&&"html"===e[n]?"visual":"html"))}return e},blockListSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object(d.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":var n=t.clientId;return t.settings?Object(d.isEqual)(e[n],t.settings)?e:Zr(Zr({},e),{},Object(a.a)({},n,t.settings)):e.hasOwnProperty(n)?Object(d.omit)(e,n):e}return e},insertionPoint:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_INSERTION_POINT":case"SHOW_INSERTION_POINT":var n=t.rootClientId,r=t.index;return{rootClientId:n,index:r}}return so(e,t,null)},insertionPointVisibility:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SHOW_INSERTION_POINT":return!0;case"HIDE_INSERTION_POINT":return!1}return so(e,t,!1)},template:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE_VALIDITY":return Zr(Zr({},e),{},{isValid:t.isValid})}return e},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$r,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return Zr(Zr({},e),t.settings)}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce((function(e,n){var r=n.name,o={name:n.name};return Object(p.isReusableBlock)(n)&&(o.ref=n.attributes.ref,r+="/"+n.attributes.ref),Zr(Zr({},e),{},{insertUsage:Zr(Zr({},e.insertUsage),{},Object(a.a)({},r,{time:t.time,count:e.insertUsage[r]?e.insertUsage[r].count+1:1,insert:o}))})}),e)}return e},lastBlockAttributesChange:function(e,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return Object(a.a)({},t.clientId,t.updates.attributes);case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce((function(e,n){return Zr(Zr({},e),{},Object(a.a)({},n,t.attributes))}),{})}return null},isNavigationMode:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"INSERT_BLOCKS"!==t.type&&("SET_NAVIGATION_MODE"===t.type?t.isNavigationMode:e)},hasBlockMovingClientId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return"SET_BLOCK_MOVING_MODE"===t.type?t.hasBlockMovingClientId:"SET_NAVIGATION_MODE"===t.type?null:e},automaticChangeStatus:function(e,t){switch(t.type){case"MARK_AUTOMATIC_CHANGE":return"pending";case"MARK_AUTOMATIC_CHANGE_FINAL":return"pending"===e?"final":void 0;case"SELECTION_CHANGE":return"final"!==e?e:void 0;case"START_TYPING":case"STOP_TYPING":return e}},highlightedBlock:function(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":var n=t.clientId;return t.isHighlighted?n:e===n?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e}}),bo=n(42),fo=n(41);function po(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return mo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mo(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function mo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"";return Object(d.map)(ic(e,t),(function(t){return wo(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]})),Bo=function e(t,n){return Object(d.flatMap)(n,(function(n){var r=ic(t,n);return[].concat(Object(pe.a)(r),Object(pe.a)(e(t,r)))}))},Io=Object(fo.a)((function(e){var t=ic(e);return[].concat(Object(pe.a)(t),Object(pe.a)(Bo(e,t)))}),(function(e){return[e.blocks.order]})),xo=Object(fo.a)((function(e,t){var n=Io(e);return t?Object(d.reduce)(n,(function(n,r){return e.blocks.byClientId[r].name===t?n+1:n}),0):n.length}),(function(e){return[e.blocks.order,e.blocks.byClientId]})),Po=Object(fo.a)((function(e,t){return Object(d.map)(Object(d.castArray)(t),(function(t){return _o(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]}));function To(e,t){return ic(e,t).length}function No(e){return e.selection.selectionStart}function Do(e){return e.selection.selectionEnd}function Ao(e){return e.selection.selectionStart.clientId}function Ro(e){return e.selection.selectionEnd.clientId}function Lo(e){var t=Qo(e).length;return t||(e.selection.selectionStart.clientId?1:0)}function Mo(e){var t=e.selection,n=t.selectionStart,r=t.selectionEnd;return!!n.clientId&&n.clientId===r.clientId}function Fo(e){var t=e.selection,n=t.selectionStart,r=t.selectionEnd,o=n.clientId;return o&&o===r.clientId?o:null}function Vo(e){var t=Fo(e);return t?_o(e,t):null}function Ho(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}var zo=Object(fo.a)((function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[],o=t;e.blocks.parents[o];)o=e.blocks.parents[o],r.push(o);return n?r:r.reverse()}),(function(e){return[e.blocks.parents]})),Go=Object(fo.a)((function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=zo(e,t,r);return Object(d.map)(Object(d.filter)(Object(d.map)(o,(function(t){return{id:t,name:jo(e,t)}})),(function(e){var t=e.name;return Array.isArray(n)?n.includes(t):t===n})),(function(e){return e.id}))}),(function(e){return[e.blocks.parents]}));function Uo(e,t){var n,r=t;do{n=r,r=e.blocks.parents[r]}while(r);return n}function Wo(e,t){for(var n,r=Fo(e),o=[].concat(Object(pe.a)(zo(e,t)),[t]),c=[].concat(Object(pe.a)(zo(e,r)),[r]),i=Math.min(o.length,c.length),a=0;a2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=Fo(e)),void 0===t&&(t=n<0?Jo(e):ec(e)),!t)return null;var r=Ho(e,t);if(null===r)return null;var o=e.blocks.order,c=o[r],i=c.indexOf(t),a=i+1*n;return a<0||a===c.length?null:c[a]}function qo(e,t){return Ko(e,t,-1)}function $o(e,t){return Ko(e,t,1)}function Yo(e){return e.initialPosition}var Xo=Object(fo.a)((function(e){var t=e.selection,n=t.selectionStart,r=t.selectionEnd;if(void 0===n.clientId||void 0===r.clientId)return ho;if(n.clientId===r.clientId)return[n.clientId];var o=Ho(e,n.clientId);if(null===o)return ho;var c=ic(e,o),i=c.indexOf(n.clientId),a=c.indexOf(r.clientId);return i>a?c.slice(a,i+1):c.slice(i,a+1)}),(function(e){return[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]}));function Qo(e){var t=e.selection,n=t.selectionStart,r=t.selectionEnd;return n.clientId===r.clientId?ho:Xo(e)}var Zo=Object(fo.a)((function(e){var t=Qo(e);return t.length?t.map((function(t){return _o(e,t)})):ho}),(function(e){return[].concat(Object(pe.a)(Xo.getDependants(e)),[e.blocks.byClientId,e.blocks.order,e.blocks.attributes])}));function Jo(e){return Object(d.first)(Qo(e))||null}function ec(e){return Object(d.last)(Qo(e))||null}function tc(e,t){return Jo(e)===t}function nc(e,t){return-1!==Qo(e).indexOf(t)}var rc=Object(fo.a)((function(e,t){for(var n=t,r=!1;n&&!r;)r=nc(e,n=Ho(e,n));return r}),(function(e){return[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]}));function oc(e){var t=e.selection,n=t.selectionStart,r=t.selectionEnd;return n.clientId===r.clientId?null:n.clientId||null}function cc(e){var t=e.selection,n=t.selectionStart,r=t.selectionEnd;return n.clientId===r.clientId?null:r.clientId||null}function ic(e,t){return e.blocks.order[t||""]||ho}function ac(e,t,n){return ic(e,n).indexOf(t)}function lc(e,t){var n=e.selection,r=n.selectionStart,o=n.selectionEnd;return r.clientId===o.clientId&&r.clientId===t}function sc(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(d.some)(ic(e,t),(function(t){return lc(e,t)||nc(e,t)||n&&sc(e,t,n)}))}function uc(e,t){if(!t)return!1;var n=Qo(e),r=n.indexOf(t);return r>-1&&r2&&void 0!==arguments[2]?arguments[2]:null,o=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object(d.isBoolean)(e)?e:Object(d.isArray)(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n};if(t&&"object"===Object(bo.a)(t)?t=(n=t).name:n=Object(p.getBlockType)(t),!n)return!1;var c=Fc(e),i=c.allowedBlockTypes,a=o(i,t,!0);if(!a)return!1;var l=!!Cc(e,r);if(l)return!1;var s=Mc(e,r);if(r&&void 0===s)return!1;var u=null==s?void 0:s.allowedBlocks,b=o(u,t),f=n.parent,m=jo(e,r),v=o(f,m);return null!==b&&null!==v?b||v:null!==b?b:null===v||v},Sc=Object(fo.a)(wc,(function(e,t,n){return[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]}));function Bc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((function(t){return Sc(e,jo(e,t),n)}))}function Ic(e,t){var n,r;return null!==(n=null===(r=e.preferences.insertUsage)||void 0===r?void 0:r[t])&&void 0!==n?n:null}var xc=function(e,t,n){return!!Object(p.hasBlockSupport)(t,"inserter",!0)&&wc(e,t.name,n)},Pc=function(e){return function(t){return go(go({},e),{},{id:"".concat(e.id,"-").concat(t.name),icon:t.icon||e.icon,title:t.title||e.title,description:t.description||e.description,category:t.category||e.category,example:t.hasOwnProperty("example")?t.example:e.example,initialAttributes:go(go({},e.initialAttributes),t.attributes),innerBlocks:t.innerBlocks,keywords:t.keywords||e.keywords})}},Tc=function(e,t){if(!e)return t;var n=Date.now()-e;switch(!0){case n<36e5:return 4*t;case n<864e5:return 2*t;case n<6048e5:return t/2;default:return t/4}},Nc=function(e,t){var n=t.buildScope,r=void 0===n?"inserter":n;return function(t){var n=t.name,o=!1;Object(p.hasBlockSupport)(t.name,"multiple",!0)||(o=Object(d.some)(Po(e,Io(e)),{name:t.name}));var c=Ic(e,n)||{},i=c.time,a=c.count,l=void 0===a?0:a,s={id:n,name:t.name,title:t.title,icon:t.icon,isDisabled:o,frecency:Tc(i,l)};if("transform"===r)return s;var u=t.variations.filter((function(e){var t=e.scope;return!t||t.includes("inserter")}));return go(go({},s),{},{initialAttributes:{},description:t.description,category:t.category,keywords:t.keywords,variations:u,example:t.example,utility:1})}},Dc=Object(fo.a)((function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=Nc(e,{buildScope:"inserter"}),o=function(t){var n,r="core/block/".concat(t.id),o=zc(e,t.id);1===o.length&&(n=Object(p.getBlockType)(o[0].name));var c=Ic(e,r)||{},i=c.time,a=c.count,l=Tc(i,void 0===a?0:a);return{id:r,name:"core/block",initialAttributes:{ref:t.id},title:t.title.raw,icon:n?n.icon:Oo,category:"reusable",keywords:[],isDisabled:!1,utility:1,frecency:l}},c=Object(p.getBlockTypes)().filter((function(t){return xc(e,t,n)})).map(r),i=wc(e,"core/block",n)?Kc(e).map(o):[],a=c.filter((function(e){var t=e.variations;return!(void 0===t?[]:t).some((function(e){return e.isDefault}))})),l=[],s=po(c);try{for(s.s();!(t=s.n()).done;){var u=t.value,d=u.variations,b=void 0===d?[]:d;if(b.length){var f=Pc(u);l.push.apply(l,Object(pe.a)(b.map(f)))}}}catch(e){s.e(e)}finally{s.f()}return[].concat(Object(pe.a)(a),l,Object(pe.a)(i))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Kc(e),Object(p.getBlockTypes)()]})),Ac=Object(fo.a)((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=Nc(e,{buildScope:"transform"}),o=Object(p.getBlockTypes)().filter((function(t){return xc(e,t,n)})).map(r),c=Object(d.mapKeys)(o,(function(e){return e.name})),i=Object(p.getPossibleBlockTransformations)(t).reduce((function(e,t){return c[null==t?void 0:t.name]&&e.push(c[t.name]),e}),[]),a=Object(d.orderBy)(i,(function(e){return c[e.name].frecency}),"desc");return a}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Object(p.getBlockTypes)()]})),Rc=Object(fo.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object(d.some)(Object(p.getBlockTypes)(),(function(n){return xc(e,n,t)}));if(n)return!0;var r=wc(e,"core/block",t)&&Kc(e).length>0;return r}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Kc(e),Object(p.getBlockTypes)()]})),Lc=Object(fo.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return Object(d.filter)(Object(p.getBlockTypes)(),(function(n){return xc(e,n,t)}))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Object(p.getBlockTypes)()]}));function Mc(e,t){return e.blockListSettings[t]}function Fc(e){return e.settings}function Vc(e){return e.blocks.isPersistentChange}var Hc=Object(fo.a)((function(e,t){return Object(d.filter)(e.blockListSettings,(function(e,n){return t.includes(n)}))}),(function(e){return[e.blockListSettings]})),zc=Object(fo.a)((function(e,t){var n=Object(d.find)(Kc(e),(function(e){return e.id===t}));return n?Object(p.parse)("string"==typeof n.content.raw?n.content.raw:n.content):null}),(function(e){return[Kc(e)]})),Gc=Object(fo.a)((function(e,t){var n,r=Object(d.find)(Kc(e),(function(e){return e.id===t}));return r?null===(n=r.title)||void 0===n?void 0:n.raw:null}),(function(e){return[Kc(e)]}));function Uc(e){return e.blocks.isIgnoredChange}function Wc(e){return e.lastBlockAttributesChange}function Kc(e){var t,n;return null!==(t=null==e||null===(n=e.settings)||void 0===n?void 0:n.__experimentalReusableBlocks)&&void 0!==t?t:ho}function qc(e){return e.isNavigationMode}function $c(e){return e.hasBlockMovingClientId}function Yc(e){return!!e.automaticChangeStatus}function Xc(e,t){return e.highlightedBlock===t}function Qc(e,t){return!!e.blocks.controlledInnerBlocks[t]}var Zc=Object(fo.a)((function(e,t){if(!t.length)return null;var n=Fo(e);if(t.includes(jo(e,n)))return n;var r=Qo(e),o=Go(e,n||r[0],t);return o?Object(d.last)(o):null}),(function(e,t){return[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]})),Jc=n(16),ei=n.n(Jc),ti={SLEEP:function(e){var t=e.duration;return new Promise((function(e){setTimeout(e,t)}))},MARK_AUTOMATIC_CHANGE_FINAL_CONTROL:Object(m.createRegistryControl)((function(e){return function(){var t=window.requestIdleCallback;(void 0===t?function(e){return setTimeout(e,100)}:t)((function(){return e.dispatch("core/block-editor").__unstableMarkAutomaticChangeFinal()}))}}))};function ni(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return ri(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ri(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function ri(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:null;return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function Di(e){var t;return ei.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,m.controls.select("core/block-editor","getPreviousBlockClientId",e);case 2:if(!(t=n.sent)){n.next=7;break}return n.next=6,Ni(t,-1);case 6:return n.abrupt("return",[t]);case 7:case"end":return n.stop()}}),si)}function Ai(e){var t;return ei.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,m.controls.select("core/block-editor","getNextBlockClientId",e);case 2:if(!(t=n.sent)){n.next=7;break}return n.next=6,Ni(t);case 6:return n.abrupt("return",[t]);case 7:case"end":return n.stop()}}),ui)}function Ri(){return{type:"START_MULTI_SELECT"}}function Li(){return{type:"STOP_MULTI_SELECT"}}function Mi(e,t){var n;return ei.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,{type:"MULTI_SELECT",start:e,end:t};case 2:return r.next=4,m.controls.select("core/block-editor","getSelectedBlockCount");case 4:n=r.sent,Object(ot.speak)(Object(w.sprintf)(Object(w._n)("%s block selected.","%s blocks selected.",n),n),"assertive");case 6:case"end":return r.stop()}}),di)}function Fi(){return{type:"CLEAR_SELECTED_BLOCK"}}function Vi(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function Hi(e,t){var n,r,o=null!==(n=null==t||null===(r=t.__experimentalPreferredStyleVariations)||void 0===r?void 0:r.value)&&void 0!==n?n:{};return e.map((function(e){var t,n=e.name;if(!Object(p.hasBlockSupport)(n,"defaultStylePicker",!0))return e;if(!o[n])return e;var r=null===(t=e.attributes)||void 0===t?void 0:t.className;if(null!=r&&r.includes("is-style-"))return e;var c=e.attributes,i=void 0===c?{}:c,a=o[n];return ci(ci({},e),{},{attributes:ci(ci({},i),{},{className:"".concat(r||""," is-style-").concat(a).trim()})})}))}function zi(e,t,n,r,o){var c,i,a;return ei.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:return e=Object(d.castArray)(e),l.t0=Hi,l.t1=Object(d.castArray)(t),l.next=5,m.controls.select("core/block-editor","getSettings");case 5:return l.t2=l.sent,t=(0,l.t0)(l.t1,l.t2),l.next=9,m.controls.select("core/block-editor","getBlockRootClientId",Object(d.first)(e));case 9:c=l.sent,i=0;case 11:if(!(i1&&void 0!==i[1]?i[1]:"",n=i.length>2&&void 0!==i[2]?i[2]:"",r=i.length>3?i[3]:void 0,a.next=5,m.controls.select("core/block-editor","getTemplateLock",t);case 5:if("all"!==(o=a.sent)){a.next=8;break}return a.abrupt("return");case 8:if(c={type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:r},t!==n){a.next=13;break}return a.next=12,c;case 12:return a.abrupt("return");case 13:if("insert"!==o){a.next=15;break}return a.abrupt("return");case 15:return a.next=17,m.controls.select("core/block-editor","canInsertBlocks",e,n);case 17:if(!a.sent){a.next=21;break}return a.next=21,c;case 21:case"end":return a.stop()}}),fi)}function $i(e){var t,n,r,o=arguments;return ei.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return t=o.length>1&&void 0!==o[1]?o[1]:"",n=o.length>2&&void 0!==o[2]?o[2]:"",r=o.length>3?o[3]:void 0,c.next=5,qi([e],t,n,r);case 5:case"end":return c.stop()}}),pi)}function Yi(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return Xi([e],t,n,r)}function Xi(e,t,n){var r,o,c,i,a,l,s=arguments;return ei.a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return r=!(s.length>3&&void 0!==s[3])||s[3],o=s.length>4?s[4]:void 0,u.t0=Hi,u.t1=Object(d.castArray)(e),u.next=6,m.controls.select("core/block-editor","getSettings");case 6:u.t2=u.sent,e=(0,u.t0)(u.t1,u.t2),c=[],i=ni(e),u.prev=10,i.s();case 12:if((a=i.n()).done){u.next=20;break}return l=a.value,u.next=16,m.controls.select("core/block-editor","canInsertBlockType",l.name,n);case 16:u.sent&&c.push(l);case 18:u.next=12;break;case 20:u.next=25;break;case 22:u.prev=22,u.t3=u.catch(10),i.e(u.t3);case 25:return u.prev=25,i.f(),u.finish(25);case 28:if(!c.length){u.next=30;break}return u.abrupt("return",{type:"INSERT_BLOCKS",blocks:c,index:t,rootClientId:n,time:Date.now(),updateSelection:r,meta:o});case 30:case"end":return u.stop()}}),mi,null,[[10,22,25,28]])}function Qi(e,t){return{type:"SET_INSERTION_POINT",rootClientId:e,index:t}}function Zi(e,t){return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t}}function Ji(){return{type:"HIDE_INSERTION_POINT"}}function ea(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function ta(){var e,t,n;return ei.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,{type:"SYNCHRONIZE_TEMPLATE"};case 2:return r.next=4,m.controls.select("core/block-editor","getBlocks");case 4:return e=r.sent,r.next=7,m.controls.select("core/block-editor","getTemplate");case 7:return t=r.sent,n=Object(p.synchronizeBlocksWithTemplate)(e,t),r.next=11,Si(n);case 11:return r.abrupt("return",r.sent);case 12:case"end":return r.stop()}}),vi)}function na(e,t){var n,r,o,i,a,l,s,u,b,f,v,g,O,h,j,k,y,_,E,C,w,S,B,I,x,P,T,N,D,A,R,L,M,F;return ei.a.wrap((function(V){for(;;)switch(V.prev=V.next){case 0:return n=[e,t],V.next=3,{type:"MERGE_BLOCKS",blocks:n};case 3:return r=n[0],o=n[1],V.next=6,m.controls.select("core/block-editor","getBlock",r);case 6:if(i=V.sent,(a=Object(p.getBlockType)(i.name)).merge){V.next=12;break}return V.next=11,Ni(i.clientId);case 11:return V.abrupt("return");case 12:return V.next=14,m.controls.select("core/block-editor","getBlock",o);case 14:return l=V.sent,s=Object(p.getBlockType)(l.name),V.next=18,m.controls.select("core/block-editor","getSelectionStart");case 18:if(u=V.sent,b=u.clientId,f=u.attributeKey,v=u.offset,g=(b===r?a:s).attributes[f],O=(b===r||b===o)&&void 0!==f&&void 0!==v&&!!g,g||("number"==typeof f?window.console.error("RichText needs an identifier prop that is the block attribute key of the attribute it controls. Its type is expected to be a string, but was ".concat(Object(bo.a)(f))):window.console.error("The RichText identifier prop does not match any attributes defined by the block.")),h="†",j=Object(p.cloneBlock)(i),k=Object(p.cloneBlock)(l),O&&(_=(y=b===r?j:k).attributes[f],E=g.multiline,C=g.__unstableMultilineWrapperTags,w=g.__unstablePreserveWhiteSpace,S=Object(c.insert)(Object(c.create)({html:_,multilineTag:E,multilineWrapperTags:C,preserveWhiteSpace:w}),h,v,v),y.attributes[f]=Object(c.toHTMLString)({value:S,multilineTag:E,preserveWhiteSpace:w})),(B=i.name===l.name?[k]:Object(p.switchToBlockType)(k,i.name))&&B.length){V.next=33;break}return V.abrupt("return");case 33:if(I=a.merge(j.attributes,B[0].attributes),!O){V.next=45;break}return x=Object(d.findKey)(I,(function(e){return"string"==typeof e&&-1!==e.indexOf(h)})),P=I[x],T=a.attributes[x],N=T.multiline,D=T.__unstableMultilineWrapperTags,A=T.__unstablePreserveWhiteSpace,R=Object(c.create)({html:P,multilineTag:N,multilineWrapperTags:D,preserveWhiteSpace:A}),L=R.text.indexOf(h),M=Object(c.remove)(R,L,L+1),F=Object(c.toHTMLString)({value:M,multilineTag:N,preserveWhiteSpace:A}),I[x]=F,V.next=45,fa(i.clientId,x,L,L);case 45:return V.delegateYield(zi([i.clientId,l.clientId],[ci(ci({},i),{},{attributes:ci(ci({},i.attributes),I)})].concat(Object(pe.a)(B.slice(1)))),"t0",46);case 46:case"end":return V.stop()}}),gi)}function ra(e){var t,n,r,o,c=arguments;return ei.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(t=!(c.length>1&&void 0!==c[1])||c[1],e&&e.length){i.next=3;break}return i.abrupt("return");case 3:return e=Object(d.castArray)(e),i.next=6,m.controls.select("core/block-editor","getBlockRootClientId",e[0]);case 6:return n=i.sent,i.next=9,m.controls.select("core/block-editor","getTemplateLock",n);case 9:if(!i.sent){i.next=12;break}return i.abrupt("return");case 12:if(!t){i.next=18;break}return i.next=15,Di(e[0]);case 15:r=i.sent,i.next=21;break;case 18:return i.next=20,m.controls.select("core/block-editor","getPreviousBlockClientId",e[0]);case 20:r=i.sent;case 21:return i.next=23,{type:"REMOVE_BLOCKS",clientIds:e};case 23:return i.delegateYield(wi(),"t0",24);case 24:return o=i.t0,i.abrupt("return",[r||o]);case 26:case"end":return i.stop()}}),Oi)}function oa(e,t){return ra([e],t)}function ca(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,time:Date.now()}}function ia(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function aa(){return{type:"START_TYPING"}}function la(){return{type:"STOP_TYPING"}}function sa(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function ua(){return{type:"STOP_DRAGGING_BLOCKS"}}function da(){return{type:"ENTER_FORMATTED_TEXT"}}function ba(){return{type:"EXIT_FORMATTED_TEXT"}}function fa(e,t,n,r){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:r}}function pa(e,t,n){var r=Object(p.getDefaultBlockName)();if(r)return Yi(Object(p.createBlock)(r,e),n,t)}function ma(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function va(e){return{type:"UPDATE_SETTINGS",settings:e}}function ga(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function Oa(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function ha(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}function ja(){return ei.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{type:"MARK_AUTOMATIC_CHANGE"};case 2:return e.next=4,{type:"MARK_AUTOMATIC_CHANGE_FINAL_CONTROL"};case 4:case"end":return e.stop()}}),hi)}function ka(){return{type:"MARK_AUTOMATIC_CHANGE_FINAL"}}function ya(){var e,t=arguments;return ei.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=!(t.length>0&&void 0!==t[0])||t[0],n.next=3,{type:"SET_NAVIGATION_MODE",isNavigationMode:e};case 3:e?Object(ot.speak)(Object(w.__)("You are currently in navigation mode. Navigate blocks using the Tab key and Arrow keys. Use Left and Right Arrow keys to move between nesting levels. To exit navigation mode and edit the selected block, press Enter.")):Object(ot.speak)(Object(w.__)("You are currently in edit mode. To return to the navigation mode, press Escape."));case 4:case"end":return n.stop()}}),ji)}function _a(){var e,t=arguments;return ei.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=t.length>0&&void 0!==t[0]?t[0]:null,n.next=3,{type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e};case 3:e&&Object(ot.speak)(Object(w.__)("Use the Tab key and Arrow keys to choose new block location. Use Left and Right Arrow keys to move between nesting levels. Once location is selected press Enter or Space to move the block."));case 4:case"end":return n.stop()}}),ki)}function Ea(e){var t,n,r,o,c,i,a=arguments;return ei.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(t=!(a.length>1&&void 0!==a[1])||a[1],e||e.length){l.next=3;break}return l.abrupt("return");case 3:return l.next=5,m.controls.select("core/block-editor","getBlocksByClientId",e);case 5:return n=l.sent,l.next=8,m.controls.select("core/block-editor","getBlockRootClientId",e[0]);case 8:if(r=l.sent,!Object(d.some)(n,(function(e){return!e}))){l.next=11;break}return l.abrupt("return");case 11:if(o=n.map((function(e){return e.name})),!Object(d.some)(o,(function(e){return!Object(p.hasBlockSupport)(e,"multiple",!0)}))){l.next=14;break}return l.abrupt("return");case 14:return l.next=16,m.controls.select("core/block-editor","getBlockIndex",Object(d.last)(Object(d.castArray)(e)),r);case 16:return c=l.sent,i=n.map((function(e){return Object(p.__experimentalCloneSanitizedBlock)(e)})),l.next=20,Xi(i,c+1,r,t);case 20:if(!(i.length>1&&t)){l.next=23;break}return l.next=23,Mi(Object(d.first)(i).clientId,Object(d.last)(i).clientId);case 23:return l.abrupt("return",i.map((function(e){return e.clientId})));case 24:case"end":return l.stop()}}),yi)}function Ca(e){var t,n;return ei.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,m.controls.select("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,m.controls.select("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,m.controls.select("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,pa({},t,n);case 15:return r.abrupt("return",r.sent);case 16:case"end":return r.stop()}}),_i)}function wa(e){var t,n;return ei.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,m.controls.select("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,m.controls.select("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,m.controls.select("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,pa({},t,n+1);case 15:return r.abrupt("return",r.sent);case 16:case"end":return r.stop()}}),Ei)}function Sa(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}function Ba(e){return ei.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Sa(e,!0);case 2:return t.next=4,{type:"SLEEP",duration:150};case 4:return t.next=6,Sa(e,!1);case 6:case"end":return t.stop()}}),Ci)}function Ia(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}function xa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pa(e){for(var t=1;t1||Object(p.hasBlockSupport)(o,"lightBlockWrapper",!1))return Object(l.createElement)(s,Object(i.a)({},e,{context:a}));var b=Object(p.hasBlockSupport)(o,"className",!0)?Object(p.getBlockDefaultClassName)(r):null,f=u()(b,n.className);return Object(l.createElement)(s,Object(i.a)({},e,{context:a,className:f}))}));function qa(e){var t={name:e.name,isSelected:e.isSelected,clientId:e.clientId,onFocus:e.onFocus,onCaretVerticalPositionChange:e.onCaretVerticalPositionChange};return Object(l.createElement)(O,{value:Object(l.useMemo)((function(){return t}),Object.values(t))},Object(l.createElement)(Ka,e))}var $a=Object(v.createSlotFill)("BlockFormatControls"),Ya=$a.Fill,Xa=$a.Slot;var Qa=function(e){return h().isSelected?Object(l.createElement)(Ya,null,(function(t){var n=Object(d.isEmpty)(t)?null:t;return Object(l.createElement)(v.__experimentalToolbarContext.Provider,{value:n},e.children)})):null};Qa.Slot=function(e){var t=Object(l.useContext)(v.__experimentalToolbarContext);return Object(l.createElement)(Xa,Object(i.a)({},e,{fillProps:t}))};var Za=Qa,Ja=n(46),el=n(47),tl=n(311),nl=n(113),rl=n(27),ol=function(e){return e+1},cl=function(e){return{top:e.offsetTop,left:e.offsetLeft}};var il=function(e,t,n,r,o){var c=Object(b.useReducedMotion)()||!r,i=Object(l.useReducer)(ol,0),a=Object(Me.a)(i,2),s=a[0],u=a[1],d=Object(l.useReducer)(ol,0),f=Object(Me.a)(d,2),p=f[0],m=f[1],v=Object(l.useState)({x:0,y:0}),g=Object(Me.a)(v,2),O=g[0],h=g[1],j=Object(l.useMemo)((function(){return e.current?cl(e.current):null}),[o]),k=Object(l.useMemo)((function(){if(!n||!e.current)return function(){};var t=Object(rl.getScrollContainer)(e.current);if(!t)return function(){};var r=e.current.getBoundingClientRect();return function(){var n=e.current.getBoundingClientRect().top-r.top;n&&(t.scrollTop+=n)}}),[o,n]);function y(n){var r=n.x,o=n.y;r=Math.round(r),o=Math.round(o),r===y.x&&o===y.y||(!function(n){var r=n.x,o=n.y;if(e.current){var c=0===r&&0===o;e.current.style.transformOrigin=c?"":"center",e.current.style.transform=c?"":"translate3d(".concat(r,"px,").concat(o,"px,0)"),e.current.style.zIndex=!t||c?"":"1",k()}}({x:r,y:o}),y.x=r,y.y=o)}Object(l.useLayoutEffect)((function(){s&&m()}),[s]),Object(l.useLayoutEffect)((function(){if(j)if(c)k();else{e.current.style.transform="";var t=cl(e.current);u(),h({x:Math.round(j.left-t.left),y:Math.round(j.top-t.top)})}}),[o]),y.x=0,y.y=0,Object(nl.useSpring)({from:{x:O.x,y:O.y},to:{x:0,y:0},reset:s!==p,config:{mass:5,tension:2e3,friction:200},immediate:c,onFrame:y})},al=Object(nl.animated)(v.__experimentalTreeGridRow);function ll(e){var t=e.isSelected,n=e.position,r=e.level,o=e.rowCount,c=e.children,a=e.className,s=e.path,d=Object(Fe.a)(e,["isSelected","position","level","rowCount","children","className","path"]),b=Object(l.useRef)(null),f=s.join("_"),p=il(b,t,!1,!0,f);return Object(l.createElement)(al,Object(i.a)({ref:b,style:p,className:u()("block-editor-block-navigation-leaf",a),level:r,positionInSet:n,setSize:o},d),c)}var sl=n(218),ul=n(219),dl=n(309),bl=n(310);function fl(e,t,n,r,o,c,i){var a=n+1,l=function(e){return"up"===e?"horizontal"===i?Object(w.isRTL)()?"right":"left":"up":"down"===e?"horizontal"===i?Object(w.isRTL)()?"left":"right":"down":null};if(e>1)return function(e,t,n,r,o){var c=t+1;if(o<0&&n)return Object(w.__)("Blocks cannot be moved up as they are already at the top");if(o>0&&r)return Object(w.__)("Blocks cannot be moved down as they are already at the bottom");if(o<0&&!n)return Object(w.sprintf)(Object(w._n)("Move %1$d block from position %2$d up by one place","Move %1$d blocks from position %2$d up by one place",e),e,c);if(o>0&&!r)return Object(w.sprintf)(Object(w._n)("Move %1$d block from position %2$d down by one place","Move %1$d blocks from position %2$d down by one place",e),e,c)}(e,n,r,o,c);if(r&&o)return Object(w.sprintf)(Object(w.__)("Block %s is the only block, and cannot be moved"),t);if(c>0&&!o){var s=l("down");if("down"===s)return Object(w.sprintf)(Object(w.__)("Move %1$s block from position %2$d down to position %3$d"),t,a,a+1);if("left"===s)return Object(w.sprintf)(Object(w.__)("Move %1$s block from position %2$d left to position %3$d"),t,a,a+1);if("right"===s)return Object(w.sprintf)(Object(w.__)("Move %1$s block from position %2$d right to position %3$d"),t,a,a+1)}if(c>0&&o){var u=l("down");if("down"===u)return Object(w.sprintf)(Object(w.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===u)return Object(w.sprintf)(Object(w.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===u)return Object(w.sprintf)(Object(w.__)("Block %1$s is at the end of the content and can’t be moved right"),t)}if(c<0&&!r){var d=l("up");if("up"===d)return Object(w.sprintf)(Object(w.__)("Move %1$s block from position %2$d up to position %3$d"),t,a,a-1);if("left"===d)return Object(w.sprintf)(Object(w.__)("Move %1$s block from position %2$d left to position %3$d"),t,a,a-1);if("right"===d)return Object(w.sprintf)(Object(w.__)("Move %1$s block from position %2$d right to position %3$d"),t,a,a-1)}if(c<0&&r){var b=l("up");if("up"===b)return Object(w.sprintf)(Object(w.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===b)return Object(w.sprintf)(Object(w.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===b)return Object(w.sprintf)(Object(w.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}var pl=function(e,t){return"up"===e?"horizontal"===t?Object(w.isRTL)()?sl.a:ul.a:dl.a:"down"===e?"horizontal"===t?Object(w.isRTL)()?ul.a:sl.a:bl.a:null},ml=function(e,t){return"up"===e?"horizontal"===t?Object(w.isRTL)()?Object(w.__)("Move right"):Object(w.__)("Move left"):Object(w.__)("Move up"):"down"===e?"horizontal"===t?Object(w.isRTL)()?Object(w.__)("Move left"):Object(w.__)("Move right"):Object(w.__)("Move down"):null},vl=Object(l.forwardRef)((function(e,t){var n=e.clientIds,r=e.direction,o=e.orientation,c=Object(Fe.a)(e,["clientIds","direction","orientation"]),a=Object(b.useInstanceId)(vl),s=Object(d.castArray)(n).length,f=Object(m.useSelect)((function(e){var t=e("core/block-editor"),c=t.getBlockIndex,i=t.getBlockRootClientId,a=t.getBlockOrder,l=t.getBlock,s=t.getBlockListSettings,u=Object(d.castArray)(n),b=Object(d.first)(u),f=i(b),m=c(b,f),v=c(Object(d.last)(u),f),g=a(f),O=l(b),h=0===m,j=v===g.length-1,k=(s(f)||{}).orientation;return{blockType:O?Object(p.getBlockType)(O.name):null,isDisabled:"up"===r?h:j,rootClientId:f,firstIndex:m,isFirst:h,isLast:j,orientation:o||k}}),[n,r]),g=f.blockType,O=f.isDisabled,h=f.rootClientId,j=f.isFirst,k=f.isLast,y=f.firstIndex,_=f.orientation,E=void 0===_?"vertical":_,C=Object(m.useDispatch)("core/block-editor"),w=C.moveBlocksDown,S=C.moveBlocksUp,B="up"===r?S:w,I="block-editor-block-mover-button__description-".concat(a);return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(v.Button,Object(i.a)({ref:t,className:u()("block-editor-block-mover-button","is-".concat(r,"-button")),icon:pl(r,E),label:ml(r,E),"aria-describedby":I},c,{onClick:O?null:function(e){B(n,h),c.onClick&&c.onClick(e)},"aria-disabled":O})),Object(l.createElement)("span",{id:I,className:"block-editor-block-mover-button__description"},fl(s,g&&g.title,y,j,k,"up"===r?-1:1,E)))})),gl=Object(l.forwardRef)((function(e,t){return Object(l.createElement)(vl,Object(i.a)({direction:"up",ref:t},e))})),Ol=Object(l.forwardRef)((function(e,t){return Object(l.createElement)(vl,Object(i.a)({direction:"down",ref:t},e))})),hl=Object(l.createContext)({__experimentalFeatures:!1}),jl=function(){return Object(l.useContext)(hl)},kl=Object(l.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(S.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"}));var yl=function(e){var t=e.className,n=e.actions,r=e.children,o=e.secondaryActions;return Object(l.createElement)("div",{className:u()(t,"block-editor-warning")},Object(l.createElement)("div",{className:"block-editor-warning__contents"},Object(l.createElement)("p",{className:"block-editor-warning__message"},r),(l.Children.count(n)>0||o)&&Object(l.createElement)("div",{className:"block-editor-warning__actions"},l.Children.count(n)>0&&l.Children.map(n,(function(e,t){return Object(l.createElement)("span",{key:t,className:"block-editor-warning__action"},e)})),o&&Object(l.createElement)(v.DropdownMenu,{className:"block-editor-warning__secondary",icon:kl,label:Object(w.__)("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0},(function(){return Object(l.createElement)(v.MenuGroup,null,o.map((function(e,t){return Object(l.createElement)(v.MenuItem,{onClick:e.onClick,key:t},e.title)})))})))))},_l=n(279),El=function(e){var t=e.title,n=e.rawContent,r=e.renderedContent,o=e.action,c=e.actionText,i=e.className;return Object(l.createElement)("div",{className:i},Object(l.createElement)("div",{className:"block-editor-block-compare__content"},Object(l.createElement)("h2",{className:"block-editor-block-compare__heading"},t),Object(l.createElement)("div",{className:"block-editor-block-compare__html"},n),Object(l.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},r)),Object(l.createElement)("div",{className:"block-editor-block-compare__action"},Object(l.createElement)(v.Button,{isSecondary:!0,tabIndex:"0",onClick:o},c)))};var Cl=function(e){var t,n,r,o,c=e.block,i=e.onKeep,a=e.onConvert,s=e.convertor,b=e.convertButtonText,f={rawContent:c.originalContent,renderedContent:Object(p.getSaveElement)(c.name,c.attributes)},m=(t=s(c),n=Object(d.castArray)(t),r=n.map((function(e){return Object(p.getSaveContent)(e.name,e.attributes,e.innerBlocks)})),o=n.map((function(e){return Object(p.getSaveElement)(e.name,e.attributes,e.innerBlocks)})),{rawContent:r.join(""),renderedContent:o}),v=function(e,t){return Object(_l.diffChars)(e,t).map((function(e,t){var n=u()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return Object(l.createElement)("span",{key:t,className:n},e.value)}))}(f.rawContent,m.rawContent);return Object(l.createElement)("div",{className:"block-editor-block-compare__wrapper"},Object(l.createElement)(El,{title:Object(w.__)("Current"),className:"block-editor-block-compare__current",action:i,actionText:Object(w.__)("Convert to HTML"),rawContent:f.rawContent,renderedContent:f.renderedContent}),Object(l.createElement)(El,{title:Object(w.__)("After Conversion"),className:"block-editor-block-compare__converted",action:a,actionText:b,rawContent:v,renderedContent:m.renderedContent}))};var wl=function(e){return Object(p.rawHandler)({HTML:e.originalContent})},Sl=Object(b.compose)([Object(m.withSelect)((function(e,t){var n=t.clientId;return{block:e("core/block-editor").getBlock(n)}})),Object(m.withDispatch)((function(e,t){var n=t.block,r=e("core/block-editor").replaceBlock;return{convertToClassic:function(){r(n.clientId,function(e){return Object(p.createBlock)("core/freeform",{content:e.originalContent})}(n))},convertToHTML:function(){r(n.clientId,function(e){return Object(p.createBlock)("core/html",{content:e.originalContent})}(n))},convertToBlocks:function(){r(n.clientId,wl(n))},attemptBlockRecovery:function(){var e,t,o,c;r(n.clientId,(t=(e=n).name,o=e.attributes,c=e.innerBlocks,Object(p.createBlock)(t,o,c)))}}}))])((function(e){var t=e.convertToHTML,n=e.convertToBlocks,r=e.convertToClassic,o=e.attemptBlockRecovery,c=e.block,i=!!Object(p.getBlockType)("core/html"),a=Object(l.useState)(!1),s=Object(Me.a)(a,2),u=s[0],d=s[1],b=Object(l.useCallback)((function(){return d(!0)}),[]),f=Object(l.useCallback)((function(){return d(!1)}),[]),m=Object(l.useMemo)((function(){return[{title:Object(w._x)("Resolve","imperative verb"),onClick:b},i&&{title:Object(w.__)("Convert to HTML"),onClick:t},{title:Object(w.__)("Convert to Classic Block"),onClick:r}].filter(Boolean)}),[b,t,r]);return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(yl,{actions:[Object(l.createElement)(v.Button,{key:"recover",onClick:o,isPrimary:!0},Object(w.__)("Attempt Block Recovery"))],secondaryActions:m},Object(w.__)("This block contains unexpected or invalid content.")),u&&Object(l.createElement)(v.Modal,{title:Object(w.__)("Resolve Block"),onRequestClose:f,className:"block-editor-block-compare"},Object(l.createElement)(Cl,{block:c,onKeep:t,onConvert:n,convertor:wl,convertButtonText:Object(w.__)("Convert to Blocks")})))})),Bl=Object(l.createElement)(yl,{className:"block-editor-block-list__block-crash-warning"},Object(w.__)("This block has encountered an error and cannot be previewed.")),Il=function(){return Bl};function xl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Hn.a)(e);if(t){var o=Object(Hn.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Vn.a)(this,n)}}var Pl=function(e){Object(Fn.a)(n,e);var t=xl(n);function n(){var e;return Object(Rn.a)(this,n),(e=t.apply(this,arguments)).state={hasError:!1},e}return Object(Ln.a)(n,[{key:"componentDidCatch",value:function(e){this.props.onError(e),this.setState({hasError:!0})}},{key:"render",value:function(){return this.state.hasError?null:this.props.children}}]),n}(l.Component),Tl=n(91),Nl=n.n(Tl);var Dl=function(e){var t=e.clientId,n=Object(l.useState)(""),r=Object(Me.a)(n,2),o=r[0],c=r[1],i=Object(m.useSelect)((function(e){return e("core/block-editor").getBlock(t)}),[t]),a=Object(m.useDispatch)("core/block-editor").updateBlock;return Object(l.useEffect)((function(){c(Object(p.getBlockContent)(i))}),[i]),Object(l.createElement)(Nl.a,{className:"block-editor-block-list__block-html-textarea",value:o,onBlur:function(){var e=Object(p.getBlockType)(i.name),n=Object(p.getBlockAttributes)(e,o,i.attributes),r=o||Object(p.getSaveContent)(e,n),l=!o||Object(p.isValidBlockContent)(e,n,r);a(t,{attributes:n,originalContent:r,isValid:l}),o||c({content:r})},onChange:function(e){return c(e.target.value)}})},Al=n(64),Rl=n(216),Ll=[Object(l.createInterpolateElement)(Object(w.__)("While writing, you can press / to quickly insert new blocks."),{kbd:Object(l.createElement)("kbd",null)}),Object(l.createInterpolateElement)(Object(w.__)("Indent a list by pressing space at the beginning of a line."),{kbd:Object(l.createElement)("kbd",null)}),Object(l.createInterpolateElement)(Object(w.__)("Outdent a list by pressing backspace at the beginning of a line."),{kbd:Object(l.createElement)("kbd",null)}),Object(w.__)("Drag files into the editor to automatically insert media blocks."),Object(w.__)("Change a block's type by pressing the block icon on the toolbar.")];var Ml=function(){var e=Object(l.useState)(Math.floor(Math.random()*Ll.length)),t=Object(Me.a)(e,1)[0];return Object(l.createElement)(v.Tip,null,Ll[t])},Fl=n(159),Vl=n(138),Hl=n(217);var zl=function e(t){var n=t.className,r=t.onChange,o=t.value,c=t.placeholder,i=Object(b.useInstanceId)(e),a=Object(l.useRef)();return Object(l.createElement)("div",{className:u()("block-editor-inserter__search",n)},Object(l.createElement)(v.VisuallyHidden,{as:"label",htmlFor:"block-editor-inserter__search-".concat(i)},c),Object(l.createElement)("input",{ref:a,className:"block-editor-inserter__search-input",id:"block-editor-inserter__search-".concat(i),type:"search",placeholder:c,onChange:function(e){return r(e.target.value)},autoComplete:"off",value:o||""}),Object(l.createElement)("div",{className:"block-editor-inserter__search-icon"},!!o&&Object(l.createElement)(v.Button,{icon:Fl.a,label:Object(w.__)("Reset search"),onClick:function(){r(""),a.current.focus()}}),!o&&Object(l.createElement)(Vl.a,{icon:Hl.a})))},Gl=n(35),Ul=n.n(Gl);var Wl=function(e){var t=e.title,n=e.icon,r=e.description,o=e.blockType;return o&&(Ul()("`blockType` property in `BlockCard component`",{alternative:"`title, icon and description` properties"}),t=o.title,n=o.icon,r=o.description),Object(l.createElement)("div",{className:"block-editor-block-card"},Object(l.createElement)(Vr,{icon:n,showColors:!0}),Object(l.createElement)("div",{className:"block-editor-block-card__content"},Object(l.createElement)("h2",{className:"block-editor-block-card__title"},t),Object(l.createElement)("span",{className:"block-editor-block-card__description"},r)))};function Kl(e){var t=e.clientId,n=void 0===t?null:t,r=e.value,o=e.selectionStart,c=e.selectionEnd,i=e.onChange,a=void 0===i?d.noop:i,s=e.onInput,u=void 0===s?d.noop:s,b=Object(m.useRegistry)(),f=b.dispatch("core/block-editor"),v=f.resetBlocks,g=f.resetSelection,O=f.replaceInnerBlocks,h=f.setHasControlledInnerBlocks,j=f.__unstableMarkNextChangeAsNotPersistent,k=b.select("core/block-editor"),y=k.getBlockName,_=k.getBlocks,E=Object(l.useRef)({incoming:null,outgoing:[]}),C=Object(l.useRef)(!1),w=Object(l.useRef)(u),S=Object(l.useRef)(a);Object(l.useEffect)((function(){w.current=u,S.current=a}),[u,a]),Object(l.useEffect)((function(){E.current.outgoing.includes(r)?Object(d.last)(E.current.outgoing)===r&&(E.current.outgoing=[]):_(n)!==r&&(E.current.outgoing=[],function(){if(r)if(j(),n){h(n,!0),j();var e=r.map((function(e){return Object(p.cloneBlock)(e)}));C.current&&(E.current.incoming=e),O(n,e)}else C.current&&(E.current.incoming=r),v(r)}(),o&&c&&g(o,c))}),[r,n]),Object(l.useEffect)((function(){var e=b.select("core/block-editor"),t=e.getSelectionStart,r=e.getSelectionEnd,o=e.isLastBlockChangePersistent,c=e.__unstableIsLastBlockChangeIgnored,i=_(n),a=o(),l=!1;C.current=!0;var s=b.subscribe((function(){if(null===n||null!==y(n)){var e=o(),s=_(n),u=s!==i;if(i=s,u&&(E.current.incoming||c()))return E.current.incoming=null,void(a=e);if(u||l&&!u&&e&&!a)a=e,E.current.outgoing.push(i),(a?S.current:w.current)(i,{selectionStart:t(),selectionEnd:r()});l=u}}));return function(){return s()}}),[b,n])}var ql,$l=Object(b.createHigherOrderComponent)((function(e){return Object(m.withRegistry)((function(t){var n=t.useSubRegistry,r=void 0===n||n,o=t.registry,c=Object(Fe.a)(t,["useSubRegistry","registry"]);if(!r)return Object(l.createElement)(e,Object(i.a)({registry:o},c));var a=Object(l.useState)(null),s=Object(Me.a)(a,2),u=s[0],d=s[1];return Object(l.useEffect)((function(){var e=Object(m.createRegistry)({},o);e.registerStore("core/block-editor",Ta),d(e)}),[o]),u?Object(l.createElement)(m.RegistryProvider,{value:u},Object(l.createElement)(e,Object(i.a)({registry:u},c))):null}))}),"withRegistryProvider")((function(e){var t=e.children,n=e.settings,r=Object(m.useDispatch)("core/block-editor").updateSettings;return Object(l.useEffect)((function(){r(n)}),[n]),Kl(e),t}));function Yl(e){var t=e.onClick;return Object(l.createElement)("div",{tabIndex:0,role:"button",onClick:t,onKeyPress:t},Object(l.createElement)(v.Disabled,null,Object(l.createElement)(ed,null)))}var Xl=function(e){var t=e.viewportWidth,n=e.__experimentalPadding,r=Object(b.useResizeObserver)(),o=Object(Me.a)(r,2),c=o[0],i=o[1].width,a=Object(b.useResizeObserver)(),s=Object(Me.a)(a,2),u=s[0],d=s[1].height;ql=ql||Object(b.pure)(ed);var f=(i-2*n)/t;return Object(l.createElement)("div",{className:"block-editor-block-preview__container editor-styles-wrapper","aria-hidden":!0,style:{height:d*f+2*n}},c,Object(l.createElement)(v.Disabled,{style:{transform:"scale(".concat(f,")"),width:t,left:n,right:n,top:n},className:"block-editor-block-preview__content"},u,Object(l.createElement)(ql,null)))};var Ql=Object(l.memo)((function(e){var t=e.blocks,n=e.__experimentalPadding,r=void 0===n?0:n,o=e.viewportWidth,c=void 0===o?1200:o,i=e.__experimentalLive,a=void 0!==i&&i,s=e.__experimentalOnClick,u=Object(m.useSelect)((function(e){return e("core/block-editor").getSettings()}),[]),b=Object(l.useMemo)((function(){return Object(d.castArray)(t)}),[t]);return t&&0!==t.length?Object(l.createElement)($l,{value:b,settings:u},a?Object(l.createElement)(Yl,{onClick:s}):Object(l.createElement)(Xl,{viewportWidth:c,__experimentalPadding:r})):null}));function Zl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jl(e){for(var t=1;t6||h.length>6,E=Object(m.useSelect)((function(e){var t=e("core/block-editor"),o=t.getSettings,c=t.getBlockIndex;return{setInserterIsOpened:o().__experimentalSetIsInserterOpened,blockIndex:c(r,n)}}),[r,n]),C=E.setInserterIsOpened,S=E.blockIndex;Object(l.useEffect)((function(){C&&C(!1)}),[C]);var B=Object(m.useDispatch)("core/block-editor").__unstableSetInsertionPoint;return Object(l.createElement)("div",{className:u()("block-editor-inserter__quick-inserter",{"has-search":_,"has-expand":C})},_&&Object(l.createElement)(zl,{value:s,onChange:function(e){d(e)},placeholder:Object(w.__)("Search for a block")}),Object(l.createElement)("div",{className:"block-editor-inserter__quick-inserter-results"},Object(l.createElement)(ws,{filterValue:s,onSelect:t,rootClientId:n,clientId:r,isAppender:o,selectBlockOnInsert:c,maxBlockPatterns:y?2:0,maxBlockTypes:6,isDraggable:!1})),C&&Object(l.createElement)(v.Button,{className:"block-editor-inserter__quick-inserter-expand",onClick:function(){B(n,S),C(!0)},"aria-label":Object(w.__)("Browse all. This will open the main inserter panel in the editor toolbar.")},Object(w.__)("Browse all")))}function Ns(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Hn.a)(e);if(t){var o=Object(Hn.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Vn.a)(this,n)}}var Ds=function(e){var t,n=e.onToggle,r=e.disabled,o=e.isOpen,c=e.blockTitle,a=e.hasSingleBlockType,s=e.toggleProps,u=void 0===s?{}:s;t=a?Object(w.sprintf)(Object(w._x)("Add %s","directly add the only allowed block"),c):Object(w._x)("Add block","Generic label for block inserter button");var d=u.onClick,b=Object(Fe.a)(u,["onClick"]);return Object(l.createElement)(v.Button,Object(i.a)({icon:Rl.a,label:t,tooltipPosition:"bottom",onClick:function(e){n&&n(e),d&&d(e)},className:"block-editor-inserter__toggle","aria-haspopup":!a&&"true","aria-expanded":!a&&o,disabled:r},b))},As=function(e){Object(Fn.a)(n,e);var t=Ns(n);function n(){var e;return Object(Rn.a)(this,n),(e=t.apply(this,arguments)).onToggle=e.onToggle.bind(Object(Mn.a)(e)),e.renderToggle=e.renderToggle.bind(Object(Mn.a)(e)),e.renderContent=e.renderContent.bind(Object(Mn.a)(e)),e}return Object(Ln.a)(n,[{key:"onToggle",value:function(e){var t=this.props.onToggle;t&&t(e)}},{key:"renderToggle",value:function(e){var t=e.onToggle,n=e.isOpen,r=this.props,o=r.disabled,c=r.blockTitle,i=r.hasSingleBlockType,a=r.toggleProps,l=r.hasItems,s=r.renderToggle,u=void 0===s?Ds:s;return u({onToggle:t,isOpen:n,disabled:o||!l,blockTitle:c,hasSingleBlockType:i,toggleProps:a})}},{key:"renderContent",value:function(e){var t=e.onClose,n=this.props,r=n.rootClientId,o=n.clientId,c=n.isAppender,i=n.showInserterHelpPanel,a=n.__experimentalSelectBlockOnInsert;return n.__experimentalIsQuick?Object(l.createElement)(Ts,{onSelect:function(){t()},rootClientId:r,clientId:o,isAppender:c,selectBlockOnInsert:a}):Object(l.createElement)(Ps,{onSelect:function(){t()},rootClientId:r,clientId:o,isAppender:c,showInserterHelpPanel:i,__experimentalSelectBlockOnInsert:a})}},{key:"render",value:function(){var e=this.props,t=e.position,n=e.hasSingleBlockType,r=e.insertOnlyAllowedBlock,o=e.__experimentalIsQuick,c=e.onSelectOrClose;return n?this.renderToggle({onToggle:r}):Object(l.createElement)(v.Dropdown,{className:"block-editor-inserter",contentClassName:u()("block-editor-inserter__popover",{"is-quick":o}),position:t,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(w.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent,onClose:c})}}]),n}(l.Component),Rs=Object(b.compose)([Object(m.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=e("core/block-editor"),c=o.getBlockRootClientId,i=o.hasInserterItems,a=o.__experimentalGetAllowedBlocks,l=e(p.store).getBlockVariations,s=a(r=r||c(n)||void 0),u=1===Object(d.size)(s)&&0===Object(d.size)(l(s[0].name,"inserter")),b=!1;return u&&(b=s[0]),{hasItems:i(r),hasSingleBlockType:u,blockTitle:b?b.title:"",allowedBlockType:b,rootClientId:r}})),Object(m.withDispatch)((function(e,t,n){var r=n.select;return{insertOnlyAllowedBlock:function(){var n=t.rootClientId,o=t.clientId,c=t.isAppender,i=t.onSelectOrClose,a=t.hasSingleBlockType,l=t.allowedBlockType,s=t.__experimentalSelectBlockOnInsert;if(a&&((0,e("core/block-editor").insertBlock)(Object(p.createBlock)(l.name),function(){var e=r("core/block-editor"),t=e.getBlockIndex,i=e.getBlockSelectionEnd,a=e.getBlockOrder;if(o)return t(o,n);var l=i();return!c&&l?t(l,n)+1:a(n).length}(),n,s),i&&i(),!s)){var u=Object(w.sprintf)(Object(w.__)("%s block added"),l.title);Object(ot.speak)(u)}}}})),Object(b.ifCondition)((function(e){var t=e.hasItems,n=e.isAppender,r=e.rootClientId,o=e.clientId;return t||!n&&!r&&!o}))])(As);var Ls=Object(b.compose)(Object(m.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.getBlockCount,o=n.getBlockName,c=n.isBlockValid,i=n.getSettings,a=n.getTemplateLock,l=!r(t.rootClientId),s=o(t.lastBlockClientId)===Object(p.getDefaultBlockName)(),u=c(t.lastBlockClientId),d=i().bodyPlaceholder;return{isVisible:l||!s||!u,showPrompt:l,isLocked:!!a(t.rootClientId),placeholder:d}})),Object(m.withDispatch)((function(e,t){var n=e("core/block-editor"),r=n.insertDefaultBlock,o=n.startTyping;return{onAppend:function(){var e=t.rootClientId;r(void 0,e),o()}}})))((function(e){var t=e.isLocked,n=e.isVisible,r=e.onAppend,o=e.showPrompt,c=e.placeholder,i=e.rootClientId;if(t||!n)return null;var a=Object(Al.decodeEntities)(c)||Object(w.__)("Start writing or type / to choose a block");return Object(l.createElement)("div",{"data-root-client-id":i||"",className:"wp-block block-editor-default-block-appender"},Object(l.createElement)(Nl.a,{role:"button","aria-label":Object(w.__)("Add block"),className:"block-editor-default-block-appender__content",readOnly:!0,onFocus:r,value:o?a:""}),Object(l.createElement)(Rs,{rootClientId:i,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0}))}));var Ms=Object(l.forwardRef)((function(e,t){var n=e.rootClientId,r=e.className,o=e.__experimentalSelectBlockOnInsert,c=e.onFocus,i=e.tabIndex;return Object(l.createElement)(Rs,{position:"bottom center",rootClientId:n,__experimentalSelectBlockOnInsert:o,__experimentalIsQuick:!0,renderToggle:function(e){var n,o=e.onToggle,a=e.disabled,s=e.isOpen,d=e.blockTitle,b=e.hasSingleBlockType;n=b?Object(w.sprintf)(Object(w._x)("Add %s","directly add the only allowed block"),d):Object(w._x)("Add block","Generic label for block inserter button");var f=!b,p=Object(l.createElement)(v.Button,{ref:t,onFocus:c,tabIndex:i,className:u()(r,"block-editor-button-block-appender"),onClick:o,"aria-haspopup":f?"true":void 0,"aria-expanded":f?s:void 0,disabled:a,label:n},!b&&Object(l.createElement)(v.VisuallyHidden,{as:"span"},n),Object(l.createElement)(Vl.a,{icon:Rl.a}));return(f||b)&&(p=Object(l.createElement)(v.Tooltip,{text:n},p)),p},isAppender:!0})}));Object(l.createContext)();function Fs(e){e.stopPropagation()}var Vs=Object(m.withSelect)((function(e,t){var n=t.rootClientId,r=e("core/block-editor"),o=r.getBlockOrder,c=r.canInsertBlockType,i=r.getTemplateLock,a=r.getSelectedBlockClientId;return{isLocked:!!i(n),blockClientIds:o(n),canInsertDefaultBlock:c(Object(p.getDefaultBlockName)(),n),selectedBlockClientId:a()}}))((function(e){var t,n=e.blockClientIds,r=e.rootClientId,o=e.canInsertDefaultBlock,c=e.isLocked,i=e.renderAppender,a=e.className,s=e.selectedBlockClientId,b=e.tagName,f=void 0===b?"div":b;if(c||!1===i)return null;if(i)t=Object(l.createElement)(i,null);else{var p=!r,m=s===r,v=s&&!n.includes(s);if(!p&&!m&&(!s||v))return null;t=o?Object(l.createElement)(Ls,{rootClientId:r,lastBlockClientId:Object(d.last)(n)}):Object(l.createElement)(Ms,{rootClientId:r,className:"block-list-appender__toggle"})}return Object(l.createElement)(f,{tabIndex:-1,onFocus:Fs,className:u()("block-list-appender","wp-block",a)},t)}));function Hs(e,t,n,r,o,c,i){return function(a){var l=function(e){var t={srcRootClientId:null,srcClientIds:null,srcIndex:null,type:null,blocks:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("text")))}catch(e){return t}return t}(a),s=l.srcRootClientId,u=l.srcClientIds,d=l.type,b=l.blocks;if("inserter"===d&&(i(),c(b,t,e,!1)),"block"===d){var f=n(u[0],s);if(s===e&&f===t)return;if(u.includes(e)||r(u).some((function(t){return t===e})))return;var p=s===e,m=u.length;o(u,s,e,p&&f=s&&a<=u?a:a2&&void 0!==arguments[2]?arguments[2]:["top","bottom","left","right"];return o.forEach((function(o){var c=Ws(e,t,o);(void 0===n||c-1&&Object(ot.speak)(N)}),[]);var h=Object(m.useSelect)(Qs,[]),j=h.selectedBlockClientId,k=h.selectionBeforeEndClientId,y=h.selectionAfterEndClientId,_=h.hasBlockMovingClientId,E=h.getBlockIndex,C=h.getBlockRootClientId,w=h.getClientIdsOfDescendants,S=Object(m.useDispatch)("core/block-editor"),B=S.selectBlock,I=S.clearSelectedBlock,x=S.setBlockMovingClientId,P=S.moveBlockToPosition,T=Object(p.getBlockType)(i),N=Object(p.__experimentalGetAccessibleBlockLabel)(T,a,c+1,d),D=u()("block-editor-block-list__block-selection-button",{"is-block-moving-mode":!!s});return Object(l.createElement)("div",{className:D},Object(l.createElement)(v.Button,{ref:O,onClick:function(){return f(!1)},onKeyDown:function(e){var n=e.keyCode,o=n===Ht.UP,c=n===Ht.DOWN,i=n===Ht.LEFT,a=n===Ht.RIGHT,l=n===Ht.TAB,s=n===Ht.ESCAPE,u=n===Ht.ENTER,d=n===Ht.SPACE,b=e.shiftKey;if(n===Ht.BACKSPACE||n===Ht.DELETE)return g(t),void e.preventDefault();var f,p=l&&b||o,m=l&&!b||c,v=i,O=a;if(p)f=k;else if(m)f=y;else if(v){var h;f=null!==(h=C(j))&&void 0!==h?h:j}else if(O){var S;f=null!==(S=w([j])[0])&&void 0!==S?S:j}var T=_();if(s&&T&&x(null),(u||d)&&T){var N=C(T),D=C(j),A=E(T,N),R=E(j,D);Ac){var a=Math.max(o-c-50,0),l=Math.max(i-c-50,0)/a;n.current=25*l}else if(e.clientY=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function su(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n')})).join(""),n=""),{html:r,plainText:n}}(t),g=v.plainText,O=v.html,h=Object(p.pasteHandler)({HTML:O,plainText:g,mode:"BLOCKS",canUserUseUnfilteredHTML:m});u(i,h,h.length-1,-1)}}}}return e.current.addEventListener("copy",t),e.current.addEventListener("cut",t),e.current.addEventListener("paste",t),function(){e.current.removeEventListener("copy",t),e.current.removeEventListener("cut",t),e.current.removeEventListener("paste",t)}}),[])}var Eu=function(e){var t=e.children,n=Object(l.useRef)();return _u(n),Object(l.createElement)("div",{ref:n},t)};function Cu(e){var t=e.clientIds,n=e.children,r=e.__experimentalUpdateSelection,o=Object(m.useSelect)((function(e){return e("core/block-editor")}),[]),c=o.canInsertBlockType,i=o.getBlockRootClientId,a=o.getBlocksByClientId,l=o.getTemplateLock,s=Object(m.useSelect)((function(e){return e(p.store)}),[]),u=s.getDefaultBlockName,b=s.getGroupingBlockName,f=a(t),v=i(t[0]),g=Object(d.every)(f,(function(e){return!!e&&Object(p.hasBlockSupport)(e.name,"multiple",!0)&&c(e.name,v)})),O=c(u(),v),h=Object(m.useDispatch)("core/block-editor"),j=h.removeBlocks,k=h.replaceBlocks,y=h.duplicateBlocks,_=h.insertAfterBlock,E=h.insertBeforeBlock,C=h.flashBlock,w=h.setBlockMovingClientId,S=h.setNavigationMode,B=h.selectBlock,I=yu();return n({canDuplicate:g,canInsertDefaultBlock:O,isLocked:!!l(v),rootClientId:v,blocks:f,onDuplicate:function(){return y(t,r)},onRemove:function(){return j(t,r)},onInsertBefore:function(){E(Object(d.first)(Object(d.castArray)(t)))},onInsertAfter:function(){_(Object(d.last)(Object(d.castArray)(t)))},onMoveTo:function(){S(!0),B(t[0]),w(t[0])},onGroup:function(){if(f.length){var e=b(),n=Object(p.switchToBlockType)(f,e);n&&k(t,n)}},onUngroup:function(){if(f.length){var e=f[0].innerBlocks;e.length&&k(t,e)}},onCopy:function(){var e=f.map((function(e){return e.clientId}));1===f.length&&C(e[0]),I("copy",e)}})}var wu=Object(b.compose)([Object(m.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor"),o=r.getBlock,c=r.getBlockMode,i=r.getSettings,a=o(n),l=i().codeEditingEnabled;return{mode:c(n),blockType:a?Object(p.getBlockType)(a.name):null,isCodeEditingEnabled:l}})),Object(m.withDispatch)((function(e,t){var n=t.onToggle,r=void 0===n?d.noop:n,o=t.clientId;return{onToggleMode:function(){e("core/block-editor").toggleBlockMode(o),r()}}}))])((function(e){var t=e.blockType,n=e.mode,r=e.onToggleMode,o=e.small,c=void 0!==o&&o,i=e.isCodeEditingEnabled,a=void 0===i||i;if(!Object(p.hasBlockSupport)(t,"html",!0)||!a)return null;var s="visual"===n?Object(w.__)("Edit as HTML"):Object(w.__)("Edit visually");return Object(l.createElement)(v.MenuItem,{onClick:r},!c&&s)}));var Su=Object(b.compose)(Object(m.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{block:r,shouldRender:r&&"core/html"===r.name}})),Object(m.withDispatch)((function(e,t){var n=t.block;return{onClick:function(){return e("core/block-editor").replaceBlocks(n.clientId,Object(p.rawHandler)({HTML:Object(p.getBlockContent)(n)}))}}})))((function(e){var t=e.shouldRender,n=e.onClick,r=e.small;if(!t)return null;var o=Object(w.__)("Convert to Blocks");return Object(l.createElement)(v.MenuItem,{onClick:n},!r&&o)})),Bu=Object(v.createSlotFill)("__experimentalBlockSettingsMenuFirstItem"),Iu=Bu.Fill,xu=Bu.Slot;Iu.Slot=xu;var Pu=Iu;function Tu(e){var t=e.clientIds,n=e.isGroupable,r=e.isUngroupable,o=e.blocksSelection,c=e.groupingBlockName,i=e.onClose,a=void 0===i?function(){}:i,s=Object(m.useDispatch)(Na).replaceBlocks;return n||r?Object(l.createElement)(l.Fragment,null,n&&Object(l.createElement)(v.MenuItem,{onClick:function(){var e;(e=Object(p.switchToBlockType)(o,c))&&s(t,e),a()}},Object(w._x)("Group","verb")),r&&Object(l.createElement)(v.MenuItem,{onClick:function(){var e;(e=o[0].innerBlocks).length&&s(t,e),a()}},Object(w._x)("Ungroup","Ungrouping blocks from within a Group block back into individual blocks within the Editor "))):null}function Nu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Du(e){for(var t=1;t0||s)return Object(l.createElement)(v.MenuGroup,null,e,Object(l.createElement)(Tu,Object(i.a)({},a,{onClose:null==n?void 0:n.onClose})))}))};var Mu=Ru,Fu={className:"block-editor-block-settings-menu__popover",position:"bottom right",isAlternate:!0};var Vu=function(e){var t=e.clientIds,n=e.__experimentalSelectBlock,r=e.children,o=Object(Fe.a)(e,["clientIds","__experimentalSelectBlock","children"]),c=Object(d.castArray)(t),a=c.length,s=c[0],u=Object(m.useSelect)((function(e){var t=e(Ja.store).getShortcutRepresentation;return{duplicate:t("core/block-editor/duplicate"),remove:t("core/block-editor/remove"),insertAfter:t("core/block-editor/insert-after"),insertBefore:t("core/block-editor/insert-before")}}),[]),b=Object(l.useCallback)(n?function(){var e=Object(el.a)(ei.a.mark((function e(t){var r;return ei.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t;case 2:(r=e.sent)&&r[0]&&n(r[0]);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}():d.noop,[n]),f=1===a?Object(w.__)("Remove block"):Object(w.__)("Remove blocks");return Object(l.createElement)(Cu,{clientIds:t,__experimentalUpdateSelection:!n},(function(e){var n=e.canDuplicate,c=e.canInsertDefaultBlock,m=e.isLocked,g=e.onDuplicate,O=e.onInsertAfter,h=e.onInsertBefore,j=e.onRemove,k=e.onCopy,y=e.onMoveTo,_=e.blocks;return Object(l.createElement)(v.DropdownMenu,Object(i.a)({icon:tl.a,label:Object(w.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:Fu,noIcons:!0},o),(function(e){var o=e.onClose;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(v.MenuGroup,null,Object(l.createElement)(Pu.Slot,{fillProps:{onClose:o}}),1===a&&Object(l.createElement)(Su,{clientId:s}),Object(l.createElement)(v.ClipboardButton,{text:function(){return Object(p.serialize)(_)},role:"menuitem",className:"components-menu-item__button",onCopy:k},Object(w.__)("Copy")),n&&Object(l.createElement)(v.MenuItem,{onClick:Object(d.flow)(o,g,b),shortcut:u.duplicate},Object(w.__)("Duplicate")),c&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(v.MenuItem,{onClick:Object(d.flow)(o,h),shortcut:u.insertBefore},Object(w.__)("Insert before")),Object(l.createElement)(v.MenuItem,{onClick:Object(d.flow)(o,O),shortcut:u.insertAfter},Object(w.__)("Insert after"))),!m&&Object(l.createElement)(v.MenuItem,{onClick:Object(d.flow)(o,y)},Object(w.__)("Move to")),1===a&&Object(l.createElement)(wu,{clientId:s,onToggle:o})),Object(l.createElement)(Mu.Slot,{fillProps:{onClose:o},clientIds:t}),"function"==typeof r?r({onClose:o}):l.Children.map((function(e){return Object(l.cloneElement)(e,{onClose:o})})),Object(l.createElement)(v.MenuGroup,null,!m&&Object(l.createElement)(v.MenuItem,{onClick:Object(d.flow)(o,j,b),shortcut:u.remove},f)))}))}))};var Hu=function(e){var t=e.clientIds,n=Object(Fe.a)(e,["clientIds"]);return Object(l.createElement)(v.ToolbarGroup,null,Object(l.createElement)(v.ToolbarItem,null,(function(e){return Object(l.createElement)(Vu,Object(i.a)({clientIds:t,toggleProps:e},n))})))},zu=window,Gu=zu.clearTimeout,Uu=zu.setTimeout;function Wu(e){var t=e.ref,n=e.isFocused,r=e.debounceTimeout,o=void 0===r?200:r,c=e.onChange,i=void 0===c?d.noop:c,a=Object(l.useState)(!1),s=Object(Me.a)(a,2),u=s[0],b=s[1],f=Object(l.useRef)(),p=function(e){null!=t&&t.current&&b(e),i(e)},m=function(){var e=(null==t?void 0:t.current)&&t.current.matches(":hover");return!n&&!e},v=function(){var e=f.current;e&&Gu&&Gu(e)};return Object(l.useEffect)((function(){return function(){return v()}}),[]),{showMovers:u,debouncedShowMovers:function(e){e&&e.stopPropagation(),v(),u||p(!0)},debouncedHideMovers:function(e){e&&e.stopPropagation(),v(),f.current=Uu((function(){m()&&p(!1)}),o)}}}function Ku(e){var t=e.hideDragHandle,n=Object(m.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockName,r=t.getBlockMode,o=t.getSelectedBlockClientIds,c=t.isBlockValid,i=t.getBlockRootClientId,a=t.getSettings,l=o(),s=l[0],u=i(s),d=a();return{blockClientIds:l,blockClientId:s,blockType:s&&Object(p.getBlockType)(n(s)),hasFixedToolbar:d.hasFixedToolbar,hasReducedUI:d.hasReducedUI,rootClientId:u,isValid:l.every((function(e){return c(e)})),isVisual:l.every((function(e){return"visual"===r(e)}))}}),[]),r=n.blockClientIds,o=n.blockClientId,c=n.blockType,a=n.hasFixedToolbar,s=n.hasReducedUI,f=n.isValid,g=n.isVisual,O=Object(m.useDispatch)("core/block-editor").toggleBlockHighlight,h=Object(l.useRef)(),j=function(e){var t=e.ref,n=e.debounceTimeout,r=void 0===n?200:n,o=e.onChange,c=void 0===o?d.noop:o,i=Object(l.useState)(!1),a=Object(Me.a)(i,2),s=a[0],u=a[1],b=Wu({ref:t,debounceTimeout:r,isFocused:s,onChange:c}),f=b.showMovers,p=b.debouncedShowMovers,m=b.debouncedHideMovers,v=Object(l.useRef)(!1),g=function(){return(null==t?void 0:t.current)&&t.current.contains(t.current.ownerDocument.activeElement)};return Object(l.useEffect)((function(){var e=t.current,n=function(){g()&&(u(!0),p())},r=function(){g()||(u(!1),m())};return e&&!v.current&&(e.addEventListener("focus",n,!0),e.addEventListener("blur",r,!0),v.current=!0),function(){e&&(e.removeEventListener("focus",n),e.removeEventListener("blur",r))}}),[t,v,u,p,m]),{showMovers:f,gestures:{onMouseMove:p,onMouseLeave:m}}}({ref:h,onChange:function(e){e&&s||O(o,e)}}),k=j.showMovers,y=j.gestures,_=Object(b.useViewportMatch)("medium","<")||a;if(c&&!Object(p.hasBlockSupport)(c,"__experimentalToolbar",!0))return null;var E=_||k;if(0===r.length)return null;var w=f&&g,S=r.length>1,B=u()("block-editor-block-toolbar",E&&"is-showing-movers");return Object(l.createElement)("div",{className:B},Object(l.createElement)("div",Object(i.a)({ref:h},y),!S&&Object(l.createElement)("div",{className:"block-editor-block-toolbar__block-parent-selector-wrapper"},Object(l.createElement)(ou,{clientIds:r})),(w||S)&&Object(l.createElement)(v.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls"},Object(l.createElement)(ju,{clientIds:r}),Object(l.createElement)(ru,{clientIds:r,hideDragHandle:t||s}))),w&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"}),Object(l.createElement)(Za.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"})),Object(l.createElement)(Hu,{clientIds:r}))}var qu=function(e){var t=e.focusOnMount,n=Object(Fe.a)(e,["focusOnMount"]),r=Object(m.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockName,r=t.getSelectedBlockClientIds,o=e(p.store).getBlockType,c=r()[0];return{blockType:c&&o(n(c))}}),[]).blockType;return r&&!Object(p.hasBlockSupport)(r,"__experimentalToolbar",!0)?null:Object(l.createElement)("div",{className:"block-editor-block-contextual-toolbar-wrapper"},Object(l.createElement)(tu,Object(i.a)({focusOnMount:t,className:"block-editor-block-contextual-toolbar","aria-label":Object(w.__)("Block tools")},n),Object(l.createElement)(Ku,null)))};function $u(e){var t=e("core/block-editor"),n=t.isNavigationMode,r=t.isMultiSelecting,o=t.hasMultiSelection,c=t.isTyping,i=t.isCaretWithinFormattedText,a=t.getSettings,l=t.getLastMultiSelectedBlockClientId;return{isNavigationMode:n(),isMultiSelecting:r(),isTyping:c(),isCaretWithinFormattedText:i(),hasMultiSelection:o(),hasFixedToolbar:a().hasFixedToolbar,lastClientId:l()}}function Yu(e){var t=e.clientId,n=e.rootClientId,r=e.isValid,o=e.isEmptyDefaultBlock,c=e.capturingClientId,i=Object(m.useSelect)($u,[]),a=i.isNavigationMode,s=i.isMultiSelecting,d=i.isTyping,f=i.isCaretWithinFormattedText,p=i.hasMultiSelection,g=i.hasFixedToolbar,O=i.lastClientId,h=Object(b.useViewportMatch)("medium"),j=Object(l.useState)(!1),k=Object(Me.a)(j,2),y=k[0],_=k[1],E=Object(l.useState)(!1),C=Object(Me.a)(E,2),w=C[0],S=C[1],B=Object(l.useContext)(Zu),I=Object(m.useDispatch)("core/block-editor").stopTyping,x=!d&&!a&&o&&r,P=a,T=!a&&!g&&h&&!x&&!s&&(!d||f),N=!(a||T||g||o);Object(Ja.useShortcut)("core/block-editor/focus-toolbar",Object(l.useCallback)((function(){_(!0),I(!0)}),[]),{bindGlobal:!0,eventName:"keydown",isDisabled:!N}),Object(l.useEffect)((function(){T||_(!1)}),[T]);var D=Object(l.useRef)();if(Object(l.useEffect)((function(){D.current=void 0}),[t]),!(P||T||y||x))return null;var A=B[t];if(!A)return null;var R=A.ownerDocument;c&&(A=at(c,R));var L=A;if(p){var M=B[O];if(!M)return null;L={top:A,bottom:M}}var F=x?"top left right":"top right left",V=x?void 0:R.defaultView.frameElement||Object(rl.getScrollContainer)(A)||R.body;return Object(l.createElement)(v.Popover,{noArrow:!0,animate:!1,position:F,focusOnMount:!1,anchorRef:L,className:"block-editor-block-list__block-popover",__unstableStickyBoundaryElement:V,__unstableSlotName:"block-toolbar",__unstableBoundaryParent:!0,__unstableObserveElement:A,shouldAnchorIncludePadding:!0},(T||y)&&Object(l.createElement)("div",{onFocus:function(){S(!0)},onBlur:function(){S(!1)},tabIndex:-1,className:u()("block-editor-block-list__block-popover-inserter",{"is-visible":w})},Object(l.createElement)(Rs,{clientId:t,rootClientId:n,__experimentalIsQuick:!0})),(T||y)&&Object(l.createElement)(qu,{focusOnMount:y,__experimentalInitialIndex:D.current,__experimentalOnIndexChange:function(e){D.current=e}}),P&&Object(l.createElement)(Zs,{clientId:t,rootClientId:n,blockElement:A}),x&&Object(l.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},Object(l.createElement)(Rs,{position:"bottom right",rootClientId:n,clientId:t,__experimentalIsQuick:!0})))}function Xu(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getFirstMultiSelectedBlockClientId,o=t.getBlockRootClientId,c=t.__unstableGetBlockWithoutInnerBlocks,i=t.getBlockParents,a=t.__experimentalGetBlockListSettingsForBlocks,l=n()||r();if(l){var s,u=c(l)||{},b=u.name,f=u.attributes,m=void 0===f?{}:f,v=u.isValid,g=i(l),O=a(g),h=Object(d.findIndex)(O,["__experimentalCaptureToolbars",!0]);return-1!==h&&(s=g[h]),{clientId:l,rootClientId:o(l),name:b,isValid:v,isEmptyDefaultBlock:b&&Object(p.isUnmodifiedDefaultBlock)({name:b,attributes:m}),capturingClientId:s}}}function Qu(){var e=Object(m.useSelect)(Xu,[]);if(!e)return null;var t=e.clientId,n=e.rootClientId,r=e.name,o=e.isValid,c=e.isEmptyDefaultBlock,i=e.capturingClientId;return r?Object(l.createElement)(Yu,{clientId:t,rootClientId:n,isValid:o,isEmptyDefaultBlock:c,capturingClientId:i}):null}var Zu=Object(l.createContext)(),Ju=Object(l.createContext)();function ed(e){var t=e.className,n=Object(l.useRef)(),r=Object(l.useState)({}),o=Object(Me.a)(r,2),c=o[0],i=o[1],a=function(e){var t=Object(l.useState)(!1),n=Object(Me.a)(t,2),r=n[0],o=n[1],c=Object(l.useState)(!1),i=Object(Me.a)(c,2),a=i[0],s=i[1],u=Object(l.useState)(null),d=Object(Me.a)(u,2),b=d[0],f=d[1],p=Object(m.useSelect)((function(e){var t=e("core/block-editor"),n=t.isMultiSelecting,r=t.isBlockInsertionPointVisible,o=t.getBlockInsertionPoint,c=t.getBlockOrder,i=t.getBlockListSettings,a=o(),l=c(a.rootClientId);return{getBlockListSettings:i,isMultiSelecting:n(),isInserterVisible:r(),selectedClientId:l[a.index-1],selectedRootClientId:a.rootClientId}}),[]),v=p.isMultiSelecting,g=p.isInserterVisible,O=p.selectedClientId,h=p.selectedRootClientId,j=p.getBlockListSettings,k=Object(l.useCallback)((function(e){var t;if(e.target.classList.contains("block-editor-block-list__layout")){var n;if(!e.target.classList.contains("is-root-container"))n=(e.target.getAttribute("data-block")?e.target:e.target.closest("[data-block]")).getAttribute("data-block");var c=(null===(t=j(n))||void 0===t?void 0:t.orientation)||"vertical",i=e.target.getBoundingClientRect(),a=e.clientY-i.top,l=e.clientX-i.left,s=Array.from(e.target.children),u=s.find((function(e){return"vertical"===c&&e.offsetTop>a||"horizontal"===c&&e.offsetLeft>l})),d=u?s[s.indexOf(u)-1]:s[s.length-1];if(d&&(d.id||(d=d.firstElementChild))){var b=d.id.slice("block-".length);if(b){var p=d.getBoundingClientRect();"horizontal"===c&&(e.clientY>p.bottom||e.clientYp.right||e.clientX=o.right||a.right<=o.left)return!1}if(Object(rl.isTextField)(n))return!0;if(!n.classList.contains("block-editor-block-list__block"))return!1;if(function(e){return e.classList.contains("block-editor-block-list__layout")||!!e.querySelector(".block-editor-block-list__layout")}(n))return!0;if(n.contains(e))return!1;for(var l,s=1;(l=i[c+s])&&n.contains(l);s++)if(t(l,c+s,i))return!1;return!0}))}function bd(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getMultiSelectedBlocksStartClientId,o=t.getMultiSelectedBlocksEndClientId,c=t.getPreviousBlockClientId,i=t.getNextBlockClientId,a=t.getFirstMultiSelectedBlockClientId,l=t.getLastMultiSelectedBlockClientId,s=t.hasMultiSelection,u=t.getBlockOrder,b=t.isNavigationMode,f=t.isSelectionEnabled,p=t.getBlockSelectionStart,m=t.isMultiSelecting,v=t.getSettings,g=n(),O=r(),h=o(),j=u();return{selectedBlockClientId:g,selectionStartClientId:O,selectionBeforeEndClientId:c(h||g),selectionAfterEndClientId:i(h||g),selectedFirstClientId:a(),selectedLastClientId:l(),hasMultiSelection:s(),firstBlock:Object(d.first)(j),lastBlock:Object(d.last)(j),isNavigationMode:b(),isSelectionEnabled:f(),blockSelectionStart:p(),isMultiSelecting:m(),keepCaretInsideBlock:v().keepCaretInsideBlock}}function fd(e){var t=e.children,n=Object(l.useRef)(),r=Object(l.useRef)(),o=Object(l.useRef)(),c=Object(l.useRef)(),i=Object(l.useRef)(),a=Object(l.useRef)(),s=Object(l.useRef)(),b=function(e){var t=Object(m.useSelect)(ld,[]),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.multiSelectedBlockClientIds,c=t.hasMultiSelection,i=t.getBlockParents,a=t.selectedBlockClientId,s=Object(m.useDispatch)("core/block-editor"),u=s.startMultiSelect,d=s.stopMultiSelect,b=s.multiSelect,f=s.selectBlock,p=Object(l.useRef)(),v=Object(l.useRef)(),g=Object(l.useRef)();Object(l.useEffect)((function(){var t=e.current.ownerDocument,n=t.defaultView;if(c&&!r){var i=o.length;if(!(i<2)){var l=o[0],s=o[i-1],u=at(l,t),d=at(s,t),b=n.getSelection(),f=t.createRange();u=ad(u,"start"),d=ad(d,"end"),f.setStartBefore(u),f.setEndAfter(d),b.removeAllRanges(),b.addRange(f)}}else{if(!a||r)return;var p=n.getSelection();if(p.rangeCount&&!p.isCollapsed){var m=at(a,t),v=p.getRangeAt(0),g=v.startContainer,O=v.endContainer;!m||m.contains(g)&&m.contains(O)||p.removeAllRanges()}}}),[c,r,o,f,a]);var O=Object(l.useCallback)((function(t){var n=t.isSelectionEnd,r=e.current.ownerDocument.defaultView.getSelection();if(r.rangeCount&&!r.isCollapsed){var o=st(r.focusNode);if(v.current===o){if(f(o),n&&(sd(e.current,!0),r.rangeCount)){var c=r.getRangeAt(0).commonAncestorContainer;g.current.contains(c)&&g.current.focus()}}else{var a=[].concat(Object(pe.a)(i(v.current)),[v.current]),l=[].concat(Object(pe.a)(i(o)),[o]),s=Math.min(a.length,l.length)-1;b(a[s],l[s])}}else sd(e.current,!0)}),[f,i,b]),h=Object(l.useCallback)((function(){var t=e.current.ownerDocument,n=t.defaultView;t.removeEventListener("selectionchange",O),n.removeEventListener("mouseup",h),p.current=n.requestAnimationFrame((function(){O({isSelectionEnd:!0}),d()}))}),[O,d]);return Object(l.useEffect)((function(){var t=e.current.ownerDocument,n=t.defaultView;return function(){t.removeEventListener("selectionchange",O),n.removeEventListener("mouseup",h),n.cancelAnimationFrame(p.current)}}),[O,h]),Object(l.useCallback)((function(t){if(n){var r=e.current.ownerDocument,o=r.defaultView;v.current=t,g.current=r.activeElement,u(),r.addEventListener("selectionchange",O),o.addEventListener("mouseup",h),sd(e.current,!1)}}),[n,u,h])}(n),f=Object(m.useSelect)(bd,[]),p=f.selectedBlockClientId,v=f.selectionStartClientId,g=f.selectionBeforeEndClientId,O=f.selectionAfterEndClientId,h=f.selectedFirstClientId,j=f.selectedLastClientId,k=f.hasMultiSelection,y=f.firstBlock,_=f.lastBlock,E=f.isNavigationMode,C=f.isSelectionEnabled,S=f.blockSelectionStart,B=f.isMultiSelecting,I=f.keepCaretInsideBlock,x=Object(m.useDispatch)("core/block-editor"),P=x.multiSelect,T=x.selectBlock,N=x.setNavigationMode;function D(e){var t=e?g:O;t&&P(v||p,t)}function A(e){var t=e?h:j;t&&T(t)}Object(l.useEffect)((function(){k&&!B&&c.current.focus()}),[k,B]);var R=u()("block-editor-writing-flow",{"is-navigate-mode":E});return Object(l.createElement)(ud.Provider,{value:b},Object(l.createElement)(id,{ref:r,selectedClientId:p,containerRef:n,noCapture:a,hasMultiSelection:k,multiSelectionContainer:c}),Object(l.createElement)("div",{ref:c,tabIndex:k?"0":void 0,"aria-label":k?Object(w.__)("Multiple selected blocks"):void 0,style:{position:"fixed"},onKeyDown:function(e){var t=e.keyCode,n=e.shiftKey,c=t===Ht.UP,i=t===Ht.DOWN,l=t===Ht.LEFT,s=t===Ht.RIGHT,u=c||l,d=l||s||(c||i);if(t===Ht.TAB)a.current=!0,n?r.current.focus():o.current.focus();else if(d){(n?D:A)(u),e.preventDefault()}}}),Object(l.createElement)("div",{ref:n,className:R,onKeyDown:function(e){var t=e.keyCode,c=e.target;if(n.current.contains(c)){var l=t===Ht.UP,u=t===Ht.DOWN,b=t===Ht.LEFT,f=t===Ht.RIGHT,m=t===Ht.TAB,v=t===Ht.ESCAPE,h=l||b,j=b||f,k=l||u,E=j||k,C=e.shiftKey,w=C||e.ctrlKey||e.altKey||e.metaKey,S=k?rl.isVerticalEdge:rl.isHorizontalEdge,B=n.current.ownerDocument,x=B.defaultView;if(p)if(m){var T=at(p,B);if(C){if(c===T)return a.current=!0,void r.current.focus()}else{var A=rl.focus.tabbable.find(T);if(c===(Object(d.last)(A)||T))return a.current=!0,void o.current.focus()}}else v&&N(!0);if(k?s.current||(s.current=Object(rl.computeCaretRect)(x)):s.current=null,!E)return Ht.isKeyboardEvent.primary(e)&&(i.current=Object(rl.isEntirelySelected)(c)),void(Ht.isKeyboardEvent.primary(e,"a")&&((c.isContentEditable?i.current:Object(rl.isEntirelySelected)(c))&&(P(y,_),e.preventDefault()),i.current=!0));if(!e.nativeEvent.defaultPrevented&&function(e,t,n){if((t===Ht.UP||t===Ht.DOWN)&&!n)return!0;var r=e.tagName;return"INPUT"!==r&&"TEXTAREA"!==r}(c,t,w)){var R,L="rtl"===(R=c).ownerDocument.defaultView.getComputedStyle(R).direction?!h:h;if(C)(h&&g||!h&&O)&&function(e,t){var r,o,c=dd(e,t,n.current);return!(c&&(r=e,o=c,r.closest(".block-editor-block-list__block")===o.closest(".block-editor-block-list__block")))}(c,h)&&S(c,h)&&(D(h),e.preventDefault());else if(k&&Object(rl.isVerticalEdge)(c,h)&&!I){var M=dd(c,h,n.current,!0);M&&(Object(rl.placeCaretAtVerticalEdge)(M,h,s.current),e.preventDefault())}else if(j&&x.getSelection().isCollapsed&&Object(rl.isHorizontalEdge)(c,L)&&!I){var F=dd(c,L,n.current);Object(rl.placeCaretAtHorizontalEdge)(F,L),e.preventDefault()}}}},onMouseDown:function(e){s.current=null;var t=e.target.ownerDocument;if(E&&p&<(at(p,t),e.target)&&N(!1),C&&0===e.button){var n=st(e.target);n&&(e.shiftKey?S!==n&&(P(S,n),e.preventDefault()):k&&T(n))}}},t),Object(l.createElement)(id,{ref:o,selectedClientId:p,containerRef:n,noCapture:a,hasMultiSelection:k,multiSelectionContainer:c,isReverse:!0}))}function pd(e,t){var n=Object(l.useContext)(ud),r=Object(m.useSelect)((function(e){var n=e("core/block-editor"),r=n.isBlockSelected,o=n.getBlockRootClientId,c=n.getBlockIndex;return{isSelected:r(t),rootClientId:o(t),index:c(t)}}),[t]),o=r.isSelected,c=r.rootClientId,i=r.index,a=Object(m.useDispatch)("core/block-editor"),s=a.insertDefaultBlock,u=a.removeBlock,d=a.selectBlock;Object(l.useEffect)((function(){if(!o){function r(n){lt(e.current,n.target)&&d(t)}return e.current.addEventListener("focusin",r),function(){e.current.removeEventListener("focusin",r)}}function a(n){var r=n.keyCode,o=n.target;r!==Ht.ENTER&&r!==Ht.BACKSPACE&&r!==Ht.DELETE||o!==e.current||Object(rl.isTextField)(o)||(n.preventDefault(),r===Ht.ENTER?s({},c,i+1):u(t))}function l(e){1===e.buttons&&n(t)}function b(e){e.preventDefault()}return e.current.addEventListener("keydown",a),e.current.addEventListener("mouseleave",l),e.current.addEventListener("dragstart",b),function(){e.current.removeEventListener("mouseleave",l),e.current.removeEventListener("keydown",a),e.current.removeEventListener("dragstart",b)}}),[o,c,i,n,s,u,d])}function md(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vd(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.__unstableIsHtml,r=Object(l.useRef)(),o=e.ref||r,c=Object(l.useContext)(Ju),i=Object(l.useContext)(jd),s=i.clientId,b=i.isSelected,f=i.isFirstMultiSelected,p=i.isLastMultiSelected,m=i.isPartOfMultiSelection,v=i.enableAnimation,g=i.index,O=i.className,h=i.name,j=i.mode,k=i.blockTitle,y=i.wrapperProps,_=void 0===y?{}:y;Object(l.useEffect)((function(){if(b||f||p){var e=o.current;return c((function(t){return vd(vd({},t),{},Object(a.a)({},s,e))})),function(){c((function(e){return Object(d.omit)(e,s)}))}}}),[b,f,p]),Object(l.useEffect)((function(){var e=o.current;c((function(t){return t[s]&&t[s]!==e?vd(vd({},t),{},Object(a.a)({},s,e)):t}))}));var E=Object(w.sprintf)(Object(w.__)("Block: %s"),k);rd(o,s),pd(o,s),il(o,b||m,b||f,v,g);var C=od(o),S=cd(s),B="html"!==j||n?"":"-visual";return vd(vd(vd({},_),e),{},{ref:o,id:"block-".concat(s).concat(B),tabIndex:0,role:"group","aria-label":E,"data-block":s,"data-type":h,"data-title":k,className:u()(O,e.className,_.className,S,{"is-hovered":C}),style:vd(vd({},_.style),e.style)})}function Od(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hd(e){for(var t=1;t1||Object(p.hasBlockSupport)(q,"lightBlockWrapper",!1),Y=_===Object(p.getUnregisteredTypeHandlerName)();q.getEditWrapperProps&&(t=w,n=q.getEditWrapperProps(C),r=hd(hd({},t),n),t&&n&&t.className&&n.className&&(r.className=u()(t.className,n.className)),t&&n&&t.style&&n.style&&(r.style=hd(hd({},t.style),n.style)),w=r);var X=$&&Object(p.hasBlockSupport)(q,"className",!0)?Object(p.getBlockDefaultClassName)(_):null,Q=$?C.className:null,Z=w&&!!w["data-align"],J=u()(X,Q,"block-editor-block-list__block",{"wp-block":!Z,"has-warning":!E||!!W||Y,"is-selected":s&&!L,"is-highlighted":M,"is-multi-selected":f,"is-reusable":Object(p.isReusableBlock)(q),"is-dragging":L,"is-typing":h,"is-focused":F&&A&&(s||j),"is-focus-mode":F&&A,"is-outline-mode":V,"has-child-selected":j&&!L,"is-active-entity":D===a},y),ee=Object(l.createElement)(qa,{name:_,isSelected:s,attributes:C,setAttributes:S,insertBlocksAfter:c?void 0:I,onReplace:c?void 0:B,onRemove:c?void 0:z,mergeBlocks:c?void 0:x,clientId:a,isSelectionEnabled:k,toggleSelection:P});if(Z){var te={"data-align":w["data-align"]};ee=Object(l.createElement)("div",Object(i.a)({className:"wp-block"},te),ee)}var ne,re={clientId:a,isSelected:s,isFirstMultiSelected:g,isLastMultiSelected:O,isPartOfMultiSelection:v,enableAnimation:N,index:T,className:J,isLocked:c,name:_,mode:o,blockTitle:q.title,wrapperProps:Object(d.omit)(w,["data-align"])},oe=Object(l.useMemo)((function(){return re}),Object.values(re));return ne=E?"html"===o?Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{style:{display:"none"}},ee),Object(l.createElement)(kd,{isHtml:!0},Object(l.createElement)(Dl,{clientId:a}))):$?ee:Object(l.createElement)(kd,w,ee):Object(l.createElement)(kd,null,Object(l.createElement)(Sl,{clientId:a}),Object(l.createElement)("div",null,Object(p.getSaveElement)(q,C))),Object(l.createElement)(jd.Provider,{value:oe},Object(l.createElement)(Pl,{onError:function(){return K(!0)}},ne),!!W&&Object(l.createElement)(kd,null,Object(l.createElement)(Il,null)))}));function Cd(e){var t=e.level;return Object(d.times)(t-1,(function(e){var n=e+2===t;return Object(l.createElement)("div",{key:e,"aria-hidden":"true",className:u()("block-editor-block-navigator-indentation",{"has-item":n})})}))}var wd=function(e,t,n){return Object(w.sprintf)(Object(w.__)("Block %1$d of %2$d, Level %3$d"),e,t,n)};var Sd=Object(l.forwardRef)((function e(t,n){var r=t.className,o=t.block.clientId,c=t.isSelected,i=t.onClick,a=t.position,s=t.siblingBlockCount,d=t.level,f=t.tabIndex,p=t.onFocus,m=t.onDragStart,g=t.onDragEnd,O=t.draggable,h=Da(o),j=Object(b.useInstanceId)(e),k="block-navigation-block-select-button__".concat(j),y=wd(a,s,d);return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(v.Button,{className:u()("block-editor-block-navigation-block-select-button",r),onClick:i,"aria-describedby":k,ref:n,tabIndex:f,onFocus:p,onDragStart:m,onDragEnd:g,draggable:O},Object(l.createElement)(Cd,{level:d}),Object(l.createElement)(Vr,{icon:null==h?void 0:h.icon,showColors:!0}),Object(l.createElement)(Aa,{clientId:o}),c&&Object(l.createElement)(v.VisuallyHidden,null,Object(w.__)("(selected block)"))),Object(l.createElement)("div",{className:"block-editor-block-navigation-block-select-button__description",id:k},y))}));function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Id(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function Ad(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0,x=g||k,P=u()("block-editor-block-navigation-block__mover-cell",{"is-visible":x}),T=jl().__experimentalFeatures,N=u()("block-editor-block-navigation-block__menu-cell",{"is-visible":x});return Object(l.useEffect)((function(){T&&n&&b.current.focus()}),[T,n]),Object(l.createElement)(ll,{className:u()({"is-selected":n,"is-dragging":C}),onMouseEnter:function(){return O(!0)},onMouseLeave:function(){return O(!1)},onFocus:function(){return y(!0)},onBlur:function(){return y(!1)},level:c,position:o,rowCount:i,path:d,id:"block-navigation-block-".concat(_),"data-block":_},Object(l.createElement)(v.__experimentalTreeGridCell,{className:"block-editor-block-navigation-block__contents-cell",colSpan:I?void 0:2,ref:b},(function(e){var i=e.ref,s=e.tabIndex,u=e.onFocus;return Object(l.createElement)("div",{className:"block-editor-block-navigation-block__contents-container"},Object(l.createElement)(Nd,{block:t,onClick:function(){return r(t.clientId)},isSelected:n,position:o,siblingBlockCount:a,level:c,ref:i,tabIndex:s,onFocus:u}))})),I&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(v.__experimentalTreeGridCell,{className:P,withoutGridItem:!0},Object(l.createElement)(v.__experimentalTreeGridItem,null,(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(l.createElement)(gl,{orientation:"vertical",clientIds:[_],ref:t,tabIndex:n,onFocus:r})})),Object(l.createElement)(v.__experimentalTreeGridItem,null,(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(l.createElement)(Ol,{orientation:"vertical",clientIds:[_],ref:t,tabIndex:n,onFocus:r})})))),T&&Object(l.createElement)(v.__experimentalTreeGridCell,{className:N},(function(e){var t=e.ref,n=e.tabIndex,o=e.onFocus;return Object(l.createElement)(Vu,{clientIds:[_],icon:tl.a,toggleProps:{ref:t,tabIndex:n,onFocus:o},disableOpenOnArrowDown:!0,__experimentalSelectBlock:r},(function(e){var t=e.onClose;return Object(l.createElement)(v.MenuGroup,null,Object(l.createElement)(v.MenuItem,{onClick:Object(el.a)(ei.a.mark((function e(){var n,r,o;return ei.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!S.length){e.next=20;break}n=Dd(S),e.prev=2,n.s();case 4:if((r=n.n()).done){e.next=10;break}return o=r.value,e.next=8,B(o);case 8:e.next=4;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),n.e(e.t0);case 15:return e.prev=15,n.f(),e.finish(15);case 18:e.next=22;break;case 20:return e.next=22,B(null);case 22:return e.next=24,B(_);case 24:t();case 25:case"end":return e.stop()}}),e,null,[[2,12,15,18]])})))},Object(w.__)("Go to block")))}))})))}function Ld(e){var t=e.parentBlockClientId,n=e.position,r=e.level,o=e.rowCount,c=e.path,i=Object(m.useSelect)((function(e){var n=e("core/block-editor"),r=n.isBlockBeingDragged,o=n.isAncestorBeingDragged;return r(t)||o(t)}),[t]),a=Object(b.useInstanceId)(Ld),s="block-navigation-appender-row__description_".concat(a),d=Object(w.sprintf)(Object(w.__)("Add block at position %1$d, Level %2$d"),n,r);return Object(l.createElement)(ll,{className:u()({"is-dragging":i}),level:r,position:n,rowCount:o,path:c},Object(l.createElement)(v.__experimentalTreeGridCell,{className:"block-editor-block-navigation-appender__cell",colSpan:"3"},(function(e){var n=e.ref,o=e.tabIndex,c=e.onFocus;return Object(l.createElement)("div",{className:"block-editor-block-navigation-appender__container"},Object(l.createElement)(Cd,{level:r}),Object(l.createElement)(Rs,{rootClientId:t,__experimentalIsQuick:!0,__experimentalSelectBlockOnInsert:!1,"aria-describedby":s,toggleProps:{ref:n,tabIndex:o,onFocus:c}}),Object(l.createElement)("div",{className:"block-editor-block-navigation-appender__description",id:s},d))})))}function Md(e){var t=e.blocks,n=e.selectBlock,r=e.selectedBlockClientId,o=e.showAppender,c=e.showBlockMovers,i=e.showNestedBlocks,a=e.parentBlockClientId,s=e.level,u=void 0===s?1:s,b=e.terminatedLevels,f=void 0===b?[]:b,p=e.path,m=void 0===p?[]:p,v=!a,g=Object(d.compact)(t),O=function(e){return o&&!v&&r===e},h=O(a),j=g.length,k=h?j+1:j,y=k;return Object(l.createElement)(l.Fragment,null,Object(d.map)(g,(function(e,t){var a=e.clientId,s=e.innerBlocks,d=t+1,b=k===d?[].concat(Object(pe.a)(f),[u]):f,p=[].concat(Object(pe.a)(m),[d]),v=i&&!!s&&!!s.length,g=O(a);return Object(l.createElement)(l.Fragment,{key:a},Object(l.createElement)(Rd,{block:e,onClick:n,isSelected:r===a,level:u,position:d,rowCount:k,siblingBlockCount:j,showBlockMovers:c,terminatedLevels:f,path:p}),(v||g)&&Object(l.createElement)(Md,{blocks:s,selectedBlockClientId:r,selectBlock:n,showAppender:o,showBlockMovers:c,showNestedBlocks:i,parentBlockClientId:a,level:u+1,terminatedLevels:b,path:p}))})),h&&Object(l.createElement)(Ld,{parentBlockClientId:a,position:k,rowCount:y,level:u,terminatedLevels:f,path:[].concat(Object(pe.a)(m),[y])}))}function Fd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vd(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Hd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hd(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function Hd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.x&&t.top<=e.y&&t.bottom>=e.y}Md.defaultProps={selectBlock:function(){}};var Gd=["top","bottom"];function Ud(e){var t=Object(l.useState)(),n=Object(Me.a)(t,2),r=n[0],o=void 0===r?{}:r,c=n[1],i=Us(o.rootClientId,o.blockIndex),s=Object(v.__unstableUseDropZone)(function(e){for(var t=1;t0||function(e,t){var n=t.left+t.width/2;return e.x>n}(t,c)))return{rootClientId:r.clientId,blockIndex:0,dropPosition:"inside"};if(r.canInsertDraggedBlocksAsSibling){var O=g?1:0;return{rootClientId:r.rootClientId,clientId:r.clientId,blockIndex:r.blockIndex+O,dropPosition:n}}}}(b.current,u);e&&c(e)}}),[b,u]),u)return o}function Wd(e){var t=e.__experimentalFeatures,n=Object(Fe.a)(e,["__experimentalFeatures"]),r=Object(l.useRef)(),o=Ud(r);t||(o=void 0);var c=Object(l.useMemo)((function(){return{__experimentalFeatures:t,blockDropTarget:o}}),[t,o]);return Object(l.createElement)(v.__experimentalTreeGrid,{className:"block-editor-block-navigation-tree","aria-label":Object(w.__)("Block navigation structure"),ref:r},Object(l.createElement)(hl.Provider,{value:c},Object(l.createElement)(Md,n)))}var Kd=Object(b.compose)(Object(m.withSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getBlockHierarchyRootClientId,o=t.__unstableGetBlockWithBlockTree,c=t.__unstableGetBlockTree,i=n();return{rootBlocks:c(),rootBlock:i?o(r(i)):null,selectedBlockClientId:i}})),Object(m.withDispatch)((function(e,t){var n=t.onSelect,r=void 0===n?d.noop:n;return{selectBlock:function(t){e("core/block-editor").selectBlock(t),r(t)}}})))((function(e){var t=e.rootBlock,n=e.rootBlocks,r=e.selectedBlockClientId,o=e.selectBlock,c=e.__experimentalFeatures;if(!n||0===n.length)return null;var i=t&&(t.clientId!==r||t.innerBlocks&&0!==t.innerBlocks.length);return Object(l.createElement)("div",{className:"block-editor-block-navigation__container"},Object(l.createElement)("p",{className:"block-editor-block-navigation__label"},Object(w.__)("List view")),Object(l.createElement)(Wd,{blocks:i?[t]:n,selectedBlockClientId:r,selectBlock:o,__experimentalFeatures:c,showNestedBlocks:!0}))})),qd=Object(l.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},Object(l.createElement)(v.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));function $d(e){var t=e.isEnabled,n=e.onToggle,r=e.isOpen,o=e.innerRef,c=Object(Fe.a)(e,["isEnabled","onToggle","isOpen","innerRef"]);Object(Ja.useShortcut)("core/edit-post/toggle-block-navigation",Object(l.useCallback)(n,[n]),{bindGlobal:!0,isDisabled:!t});var a=Object(m.useSelect)((function(e){return e(Ja.store).getShortcutRepresentation("core/edit-post/toggle-block-navigation")}),[]);return Object(l.createElement)(v.Button,Object(i.a)({},c,{ref:o,icon:qd,"aria-expanded":r,"aria-haspopup":"true",onClick:t?n:void 0,label:Object(w.__)("Outline"),className:"block-editor-block-navigation",shortcut:a,"aria-disabled":!t}))}var Yd=Object(l.forwardRef)((function(e,t){var n=e.isDisabled,r=e.__experimentalFeatures,o=Object(Fe.a)(e,["isDisabled","__experimentalFeatures"]),c=Object(m.useSelect)((function(e){return!!e("core/block-editor").getBlockCount()}),[])&&!n;return Object(l.createElement)(v.Dropdown,{contentClassName:"block-editor-block-navigation__popover",position:"bottom right",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(l.createElement)($d,Object(i.a)({},o,{innerRef:t,isOpen:n,onToggle:r,isEnabled:c}))},renderContent:function(e){var t=e.onClose;return Object(l.createElement)(Kd,{onSelect:t,__experimentalFeatures:r})}})})),Xd=n(129),Qd=[Ht.rawShortcut.primary("z"),Ht.rawShortcut.primaryShift("z"),Ht.rawShortcut.primary("y")],Zd=Object(l.createElement)(v.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(d.fromPairs)(Qd.map((function(e){return[e,function(e){return e.preventDefault()}]})))}),Jd=function(){return Zd};function eb(e){return e.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)})).map((function(e){return'')})).join("")}var tb={position:"bottom right",isAlternate:!0},nb=function(){return Object(l.createElement)("div",{className:"block-editor-format-toolbar"},Object(l.createElement)(v.ToolbarGroup,null,["bold","italic","link","text-color"].map((function(e){return Object(l.createElement)(v.Slot,{name:"RichText.ToolbarControls.".concat(e),key:e})})),Object(l.createElement)(v.Slot,{name:"RichText.ToolbarControls"},(function(e){return 0!==e.length&&Object(l.createElement)(v.ToolbarItem,null,(function(t){return Object(l.createElement)(v.DropdownMenu,{icon:bl.a,label:Object(w.__)("More"),toggleProps:t,controls:Object(d.orderBy)(e.map((function(e){return Object(Me.a)(e,1)[0].props})),"title"),popoverProps:tb})}))}))))},rb=function(e){var t=e.inline,n=e.anchorRef;return t?Object(l.createElement)(v.Popover,{noArrow:!0,position:"top center",focusOnMount:!1,anchorRef:n,className:"block-editor-rich-text__inline-format-toolbar",__unstableSlotName:"block-toolbar"},Object(l.createElement)(nb,null)):Object(l.createElement)(Za,null,Object(l.createElement)(nb,null))};function ob(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cb(e){for(var t=1;t0,Ie=a,xe=s;Array.isArray(a)&&(Ie=p.children.toHTML(a),xe=function(e){return s(p.children.fromDOM(Object(c.__unstableCreateElement)(document,e).childNodes))});var Pe=Object(l.useCallback)((function(e,t){Ee(ae,P,e,t)}),[ae,P]),Te=Object(l.useCallback)((function(e){var t=e.value,n=e.isReverse;S&&S(!n),w&&Object(c.isEmpty)(t)&&n&&w(!n)}),[S,w]),Ne=Object(l.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(j&&B){var n=[],r=Object(c.split)(e),o=Object(Me.a)(r,2),i=o[0],a=o[1],l=t.length>0,s=-1;l&&Object(c.isEmpty)(i)||(n.push(B(Object(c.toHTMLString)({value:i,multilineTag:we}))),s+=1),l?(n.push.apply(n,Object(pe.a)(t)),s+=t.length):x&&n.push(x()),(l||x)&&Object(c.isEmpty)(a)||n.push(B(Object(c.toHTMLString)({value:a,multilineTag:we})));var u=l?s:1,d=l?-1:null;j(n,u,d)}}),[j,B,we,x]),De=Object(l.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.shiftKey,o=j&&B;if(j){var i=Object(p.getBlockTransforms)("from").filter((function(e){return"enter"===e.type})),a=Object(p.findTransform)(i,(function(e){return e.regExp.test(t.text)}));a&&(j([a.transform({content:t.text})]),Ce())}if(f)r?R||n(Object(c.insert)(t,"\n")):o&&Object(c.__unstableIsEmptyLine)(t)?Ne(t):n(Object(c.__unstableInsertLineSeparator)(t));else{var l=t.text,s=t.start,u=t.end,d=I&&s===u&&u===l.length;r||!o&&!d?R||n(Object(c.insert)(t,"\n")):!o&&d?I():o&&Ne(t)}}),[j,B,Ce,f,Ne,I]),Ae=Object(l.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.html,i=e.plainText,a=e.files,l=e.activeFormats;if(N)n(Object(c.insert)(t,Object(c.create)({text:i})));else{if(a&&a.length&&!r){var s=Object(p.pasteHandler)({HTML:eb(a),mode:"BLOCKS",tagName:o,preserveWhiteSpace:T});return window.console.log("Received items:\n\n",a),void(j&&Object(c.isEmpty)(t)?j(s):Ne(t,s))}var u,d=j&&B?"AUTO":"INLINE";"AUTO"===d&&Object(c.isEmpty)(t)&&(u=i,Object(Xd.regexp)(".*").test(u))&&(d="BLOCKS"),D&&Object(c.isEmpty)(t)&&Object(gs.isURL)(i.trim())&&(d="BLOCKS");var b=Object(p.pasteHandler)({HTML:r,plainText:i,mode:d,tagName:o,preserveWhiteSpace:T});if("string"==typeof b){var m=Object(c.create)({html:b});if(l.length)for(var v=m.formats.length;v--;)m.formats[v]=[].concat(Object(pe.a)(l),Object(pe.a)(m.formats[v]||[]));f&&(m=Object(c.replace)(m,/\n+/g,c.__UNSTABLE_LINE_SEPARATOR)),n(Object(c.insert)(t,m))}else b.length>0&&(j&&Object(c.isEmpty)(t)?j(b,b.length-1,-1):Ne(t,b))}}),[o,j,B,Ne,D,f,T,N]),Re=Object(l.useCallback)((function(e,t){if(j){var n=e.start,r=e.text;if(" "===r.slice(n-1,n)){var o=r.slice(0,n).trim(),i=Object(p.getBlockTransforms)("from").filter((function(e){return"prefix"===e.type})),a=Object(p.findTransform)(i,(function(e){var t=e.prefix;return o===t}));if(a){var l=t(Object(c.slice)(e,n,r.length)),s=a.transform(l);j([s]),Ce()}}}}),[j,Ce]),Le=Object(l.createElement)(c.__experimentalRichText,{clientId:ae,identifier:P,ref:ce,value:Ie,onChange:xe,selectionStart:be,selectionEnd:fe,onSelectionChange:Pe,tagName:o,placeholder:k,allowedFormats:Se,withoutInteractiveFormatting:C,onEnter:De,onDelete:Te,onPaste:Ae,__unstableIsSelected:me,__unstableInputRule:Re,__unstableMultilineTag:we,__unstableIsCaretWithinFormattedText:de,__unstableOnEnterFormattedText:ye,__unstableOnExitFormattedText:_e,__unstableOnCreateUndoLevel:ke,__unstableMarkAutomaticChange:Ce,__unstableDidAutomaticChange:ve,__unstableUndo:Oe,__unstableDisableFormats:A,preserveWhiteSpace:T,disabled:ge,unstableOnFocus:L,__unstableAllowPrefixTransformations:M,__unstableMultilineRootTag:F,onCaretVerticalPositionChange:le,blockIsSelected:void 0!==d?d:se,shouldBlurOnUnmount:he,__unstableMobileNoFocusOnMount:V,deleteEnter:H,placeholderTextColor:z,textAlign:G,selectionColor:U,tagsToEliminate:W,rootTagsToEliminate:K,disableEditingMenu:q,fontSize:$,fontFamily:Y,fontWeight:X,fontStyle:Q,minWidth:Z,maxWidth:J,onBlur:ee,setRef:te,id:ne.id,style:ne.style},(function(e){var t=e.isSelected,n=e.value,o=e.onChange,c=e.onFocus,a=e.editableProps,s=e.editableTagName;return Object(l.createElement)(l.Fragment,null,r&&r({value:n,onChange:o,onFocus:c}),t&&Be&&Object(l.createElement)(rb,{inline:v,anchorRef:ce.current}),t&&Object(l.createElement)(Jd,null),Object(l.createElement)(Gr,{onReplace:j,completers:O,record:n,onChange:o,isSelected:t,contentRef:ce},(function(e){var t=e.listBoxId,n=e.activeId,r=e.onKeyDown;return Object(l.createElement)(s,Object(i.a)({},a,ne,{style:ne.style?cb(cb({},ne.style),a.style):a.style,className:u()("block-editor-rich-text__editable",ne.className,a.className,{"keep-placeholder-on-focus":y}),"aria-autocomplete":t?"list":void 0,"aria-owns":t,"aria-activedescendant":n,onKeyDown:function(e){r(e),a.onKeyDown(e)}}))})))}));return g?(Ul()("wp.blockEditor.RichText wrapperClassName prop",{alternative:"className prop or create your own wrapper div"}),Object(l.createElement)("div",{className:u()("block-editor-rich-text",g)},Le)):Le}));lb.Content=function(e){var t=e.value,n=e.tagName,r=e.multiline,o=Object(Fe.a)(e,["value","tagName","multiline"]);Array.isArray(t)&&(t=p.children.toHTML(t));var c=ib(r);!t&&c&&(t="<".concat(c,">"));var i=Object(l.createElement)(l.RawHTML,null,t);return n?Object(l.createElement)(n,Object(d.omit)(o,["format"]),i):i},lb.isEmpty=function(e){return!e||0===e.length},lb.Content.defaultProps={format:"string",value:""};var sb=lb;function ub(e){var t=e.value,n=e.onChange;return Object(l.createElement)(Td,null,Object(l.createElement)(sb,{value:t,onChange:n,placeholder:Object(w.__)("Navigation item"),keepPlaceholderOnFocus:!0,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"]}))}var db=n(313);var bb=function(e){var t=e.icon,n=void 0===t?db.a:t,r=e.label,o=void 0===r?Object(w.__)("Choose variation"):r,c=e.instructions,i=void 0===c?Object(w.__)("Select a variation to start with."):c,a=e.variations,s=e.onSelect,d=e.allowSkip,b=u()("block-editor-block-variation-picker",{"has-many-variations":a.length>4});return Object(l.createElement)(v.Placeholder,{icon:n,label:o,instructions:i,className:b},Object(l.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":Object(w.__)("Block variations")},a.map((function(e){return Object(l.createElement)("li",{key:e.name},Object(l.createElement)(v.Button,{isSecondary:!0,icon:e.icon,iconSize:48,onClick:function(){return s(e)},className:"block-editor-block-variation-picker__variation",label:e.description||e.title}),Object(l.createElement)("span",{className:"block-editor-block-variation-picker__variation-label",role:"presentation"},e.title))}))),d&&Object(l.createElement)("div",{className:"block-editor-block-variation-picker__skip"},Object(l.createElement)(v.Button,{isLink:!0,onClick:function(){return s()}},Object(w.__)("Skip"))))},fb=function(e,t){if(t&&e){var n=t.filter((function(t){var n=t.attributes;return!(!n||!Object.keys(n).length)&&Object(d.isMatch)(e,n)}));if(1===n.length)return n[0]}};function pb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var mb=function(e){var t=e.blockClientId,n=Object(l.useState)(),r=Object(Me.a)(n,2),o=r[0],c=r[1],i=Object(m.useDispatch)("core/block-editor").updateBlockAttributes,s=Object(m.useSelect)((function(e){var n=e(p.store).getBlockVariations,r=e("core/block-editor"),o=r.getBlockName,c=r.getBlockAttributes,i=t&&o(t);return{variations:i&&n(i,"transform"),blockAttributes:c(t)}}),[t]),u=s.variations,d=s.blockAttributes;if(Object(l.useEffect)((function(){var e;c(null===(e=fb(d,u))||void 0===e?void 0:e.name)}),[d,u]),null==u||!u.length)return null;var b=u.map((function(e){return{value:e.name,label:e.title,info:e.description}})),f=function(e){i(t,function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(l.useRef)(),r=h(),o=r.clientId,c=Object(b.useViewportMatch)("medium","<"),a=Object(m.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockName,r=t.isBlockSelected,i=t.hasSelectedInnerBlock,a=(0,t.isNavigationMode)()||c;return"core/template"!==n(o)&&!r(o)&&!i(o,!0)&&a}),[o,c]),s=e.ref||n,d=t.value&&t.onChange?Wb:Ub;return Gb(Gb({},e),{},{ref:s,className:u()(e.className,"block-editor-block-list__layout",{"has-overlay":a}),children:Object(l.createElement)(d,Object(i.a)({},t,{clientId:o,wrapperRef:s}))})}Kb.DefaultBlockAppender=Mb,Kb.ButtonBlockAppender=Lb,Kb.Content=Object(p.withBlockContentContext)((function(e){var t=e.BlockContent;return Object(l.createElement)(t,null)}));var $b=Kb,Yb=n(220);function Xb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qb(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",n=this.props,r=n.__experimentalFetchLinkSuggestions,o=n.__experimentalHandleURLSuggestions;if(r){var c=!(t&&t.length);if(c||!(t.length<2||!o&&Object(gs.isURL)(t))){this.isUpdatingSuggestions=!0,this.setState({selectedSuggestion:null,loading:!0});var i=r(t,{isInitialSuggestions:c});i.then((function(t){e.suggestionsRequest===i&&(e.setState({suggestions:t,loading:!1,showSuggestions:!!t.length}),t.length?e.props.debouncedSpeak(Object(w.sprintf)(Object(w._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",t.length),t.length),"assertive"):e.props.debouncedSpeak(Object(w.__)("No results."),"assertive"),e.isUpdatingSuggestions=!1)})).catch((function(){e.suggestionsRequest===i&&(e.setState({loading:!1}),e.isUpdatingSuggestions=!1)})),this.suggestionsRequest=i}else this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1})}}},{key:"onChange",value:function(e){var t=e.target.value;this.props.onChange(t),this.props.disableSuggestions||this.updateSuggestions(t.trim())}},{key:"onFocus",value:function(){var e=this.state.suggestions,t=this.props,n=t.disableSuggestions,r=t.value;!r||n||this.isUpdatingSuggestions||e&&e.length||this.updateSuggestions(r.trim())}},{key:"onKeyDown",value:function(e){var t=this.state,n=t.showSuggestions,r=t.selectedSuggestion,o=t.suggestions,c=t.loading;if(n&&o.length&&!c){var i=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case Ht.UP:e.stopPropagation(),e.preventDefault();var a=r?r-1:o.length-1;this.setState({selectedSuggestion:a});break;case Ht.DOWN:e.stopPropagation(),e.preventDefault();var l=null===r||r===o.length-1?0:r+1;this.setState({selectedSuggestion:l});break;case Ht.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(i),this.props.speak(Object(w.__)("Link selected.")));break;case Ht.ENTER:null!==this.state.selectedSuggestion&&(e.stopPropagation(),this.selectLink(i))}}else switch(e.keyCode){case Ht.UP:0!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(0,0));break;case Ht.DOWN:this.props.value.length!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length))}}},{key:"selectLink",value:function(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}},{key:"handleOnClick",value:function(e){this.selectLink(e),this.inputRef.current.focus()}},{key:"render",value:function(){return Object(l.createElement)(l.Fragment,null,this.renderControl(),this.renderSuggestions())}},{key:"renderControl",value:function(){var e=this.props,t=e.label,n=e.className,r=e.isFullWidth,o=e.instanceId,c=e.placeholder,i=void 0===c?Object(w.__)("Paste URL or type to search"):c,a=e.__experimentalRenderControl,s=e.value,d=void 0===s?"":s,b=this.state,f=b.loading,p=b.showSuggestions,m=b.selectedSuggestion,g=b.suggestionsListboxId,O=b.suggestionOptionIdPrefix,h={id:"url-input-control-".concat(o),label:t,className:u()("block-editor-url-input",n,{"is-full-width":r})},j={value:d,required:!0,className:"block-editor-url-input__input",type:"text",onChange:this.onChange,onFocus:this.onFocus,placeholder:i,onKeyDown:this.onKeyDown,role:"combobox","aria-label":Object(w.__)("URL"),"aria-expanded":p,"aria-autocomplete":"list","aria-owns":g,"aria-activedescendant":null!==m?"".concat(O,"-").concat(m):void 0,ref:this.inputRef};return a?a(h,j,f):Object(l.createElement)(v.BaseControl,h,Object(l.createElement)("input",j),f&&Object(l.createElement)(v.Spinner,null))}},{key:"renderSuggestions",value:function(){var e=this,t=this.props,n=t.className,r=t.__experimentalRenderSuggestions,o=t.value,c=void 0===o?"":o,a=t.__experimentalShowInitialSuggestions,s=void 0!==a&&a,b=this.state,f=b.showSuggestions,p=b.suggestions,m=b.selectedSuggestion,g=b.suggestionsListboxId,O=b.suggestionOptionIdPrefix,h=b.loading,j={id:g,ref:this.autocompleteRef,role:"listbox"},k=function(t,n){return{role:"option",tabIndex:"-1",id:"".concat(O,"-").concat(n),ref:e.bindSuggestionNode(n),"aria-selected":n===m}};return Object(d.isFunction)(r)&&f&&p.length?r({suggestions:p,selectedSuggestion:m,suggestionsListProps:j,buildSuggestionItemProps:k,isLoading:h,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:s&&!(c&&c.length)}):!Object(d.isFunction)(r)&&f&&p.length?Object(l.createElement)(v.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(l.createElement)("div",Object(i.a)({},j,{className:u()("block-editor-url-input__suggestions","".concat(n,"__suggestions"))}),p.map((function(t,n){return Object(l.createElement)(v.Button,Object(i.a)({},k(0,n),{key:t.id,className:u()("block-editor-url-input__suggestion",{"is-selected":n===m}),onClick:function(){return e.handleOnClick(t)}}),t.title)})))):null}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.value,r=e.instanceId,o=e.disableSuggestions,c=e.__experimentalShowInitialSuggestions,i=void 0!==c&&c,a=t.showSuggestions,l=n&&n.length;return i||l||(a=!1),!0===o&&(a=!1),{showSuggestions:a,suggestionsListboxId:"block-editor-url-input-suggestions-".concat(r),suggestionOptionIdPrefix:"block-editor-url-input-suggestion-".concat(r)}}}]),n}(l.Component),of=Object(b.compose)(b.withSafeTimeout,v.withSpokenMessages,b.withInstanceId,Object(m.withSelect)((function(e,t){if(!Object(d.isFunction)(t.__experimentalFetchLinkSuggestions))return{__experimentalFetchLinkSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}})))(rf),cf=function(e){var t,n=e.searchTerm,r=e.onClick,o=e.itemProps,c=e.isSelected,a=e.buttonText;return n?(t=a?Object(d.isFunction)(a)?a(n):a:Object(l.createInterpolateElement)(Object(w.sprintf)(Object(w.__)("Create: %s"),n),{mark:Object(l.createElement)("mark",null)}),Object(l.createElement)(v.Button,Object(i.a)({},o,{className:u()("block-editor-link-control__search-create block-editor-link-control__search-item",{"is-selected":c}),onClick:r}),Object(l.createElement)(Vl.a,{className:"block-editor-link-control__search-item-icon",icon:Rl.a}),Object(l.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(l.createElement)("span",{className:"block-editor-link-control__search-item-title"},t)))):null},af=Object(l.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(l.createElement)(S.Path,{d:"M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zM1.11 9.68h2.51c.04.91.167 1.814.38 2.7H1.84c-.403-.85-.65-1.764-.73-2.7zm8.57-5.4V1.19c.964.366 1.756 1.08 2.22 2 .205.347.386.708.54 1.08l-2.76.01zm3.22 1.35c.232.883.37 1.788.41 2.7H9.68v-2.7h3.22zM8.32 1.19v3.09H5.56c.154-.372.335-.733.54-1.08.462-.924 1.255-1.64 2.22-2.01zm0 4.44v2.7H4.7c.04-.912.178-1.817.41-2.7h3.21zm-4.7 2.69H1.11c.08-.936.327-1.85.73-2.7H4c-.213.886-.34 1.79-.38 2.7zM4.7 9.68h3.62v2.7H5.11c-.232-.883-.37-1.788-.41-2.7zm3.63 4v3.09c-.964-.366-1.756-1.08-2.22-2-.205-.347-.386-.708-.54-1.08l2.76-.01zm1.35 3.09v-3.04h2.76c-.154.372-.335.733-.54 1.08-.464.92-1.256 1.634-2.22 2v-.04zm0-4.44v-2.7h3.62c-.04.912-.178 1.817-.41 2.7H9.68zm4.71-2.7h2.51c-.08.936-.327 1.85-.73 2.7H14c.21-.87.337-1.757.38-2.65l.01-.05zm0-1.35c-.046-.894-.176-1.78-.39-2.65h2.16c.403.85.65 1.764.73 2.7l-2.5-.05zm1-4H13.6c-.324-.91-.793-1.76-1.39-2.52 1.244.56 2.325 1.426 3.14 2.52h.04zm-9.6-2.52c-.597.76-1.066 1.61-1.39 2.52H2.65c.815-1.094 1.896-1.96 3.14-2.52zm-3.15 12H4.4c.324.91.793 1.76 1.39 2.52-1.248-.567-2.33-1.445-3.14-2.55l-.01.03zm9.56 2.52c.597-.76 1.066-1.61 1.39-2.52h1.76c-.82 1.08-1.9 1.933-3.14 2.48l-.01.04z"})),lf=function(e){var t=e.itemProps,n=e.suggestion,r=e.isSelected,o=void 0!==r&&r,c=e.onClick,a=e.isURL,s=void 0!==a&&a,d=e.searchTerm,b=void 0===d?"":d,f=e.shouldShowType,p=void 0!==f&&f;return Object(l.createElement)(v.Button,Object(i.a)({},t,{onClick:c,className:u()("block-editor-link-control__search-item",{"is-selected":o,"is-url":s,"is-entity":!s})}),s&&Object(l.createElement)(Vl.a,{className:"block-editor-link-control__search-item-icon",icon:af}),Object(l.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(l.createElement)("span",{className:"block-editor-link-control__search-item-title"},Object(l.createElement)(v.TextHighlight,{text:n.title,highlight:b})),Object(l.createElement)("span",{"aria-hidden":!s,className:"block-editor-link-control__search-item-info"},!s&&(Object(gs.filterURLForDisplay)(Object(gs.safeDecodeURI)(n.url))||""),s&&Object(w.__)("Press ENTER to add this link"))),p&&n.type&&Object(l.createElement)("span",{className:"block-editor-link-control__search-item-type"},"post_tag"===n.type?"tag":n.type))};function sf(e){var t=e.instanceId,n=e.withCreateSuggestion,r=e.currentInputValue,o=e.handleSuggestionClick,c=e.suggestionsListProps,a=e.buildSuggestionItemProps,s=e.suggestions,d=e.selectedSuggestion,b=e.isLoading,f=e.isInitialSuggestions,p=e.createSuggestionButtonText,m=e.suggestionsQuery,g=u()("block-editor-link-control__search-results",{"is-loading":b}),O=["url","mailto","tel","internal"],h=1===s.length&&O.includes(s[0].type.toLowerCase()),j=n&&!h&&!f,k=!(null!=m&&m.type),y="block-editor-link-control-search-results-label-".concat(t),_=f?Object(w.__)("Recently updated"):Object(w.sprintf)(Object(w.__)('Search results for "%s"'),r),E=Object(l.createElement)(f?l.Fragment:v.VisuallyHidden,{},Object(l.createElement)("span",{className:"block-editor-link-control__search-results-label",id:y},_));return Object(l.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},E,Object(l.createElement)("div",Object(i.a)({},c,{className:g,"aria-labelledby":y}),s.map((function(e,t){return j&&"__CREATE__"===e.type?Object(l.createElement)(cf,{searchTerm:r,buttonText:p,onClick:function(){return o(e)},key:e.type,itemProps:a(e,t),isSelected:t===d}):"__CREATE__"===e.type?null:Object(l.createElement)(lf,{key:"".concat(e.id,"-").concat(e.type),itemProps:a(e,t),suggestion:e,index:t,onClick:function(){o(e)},isSelected:t===d,isURL:O.includes(e.type.toLowerCase()),searchTerm:r,shouldShowType:k})}))))}function uf(e){var t=Object(d.startsWith)(e,"#");return Object(gs.isURL)(e)||e&&e.includes("www.")||t}function df(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bf(e){for(var t=1;t=1)&&k(gf(gf({},Object(d.omit)(c,"id","url")),n),n);case 13:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(t){return e.apply(this,arguments)}}();return Object(l.createElement)("form",{onSubmit:function(e){e.preventDefault(),W(G||{url:n})}},Object(l.createElement)(of,{className:a,value:n,onChange:function(e,t){h(e),U(t)},placeholder:null!=u?u:Object(w.__)("Search or type url"),__experimentalRenderSuggestions:_?function(e){return C(gf(gf({},e),{},{instanceId:V,withCreateSuggestion:p,currentInputValue:n,createSuggestionButtonText:L,suggestionsQuery:D,handleSuggestionClick:function(t){e.handleSuggestionClick&&e.handleSuggestionClick(t),W(t)}}))}:null,__experimentalFetchLinkSuggestions:F,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:T,ref:t}),r)})),jf=hf,kf=Object(v.createSlotFill)("BlockEditorLinkControlViewer"),yf=kf.Slot,_f=kf.Fill;function Ef(e){var t=e.value,n=e.onEditClick,r=t&&Object(gs.filterURLForDisplay)(Object(gs.safeDecodeURI)(t.url),16)||"";return Object(l.createElement)("div",{"aria-label":Object(w.__)("Currently selected"),"aria-selected":"true",className:u()("block-editor-link-control__search-item",{"is-current":!0})},Object(l.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(l.createElement)(v.ExternalLink,{className:"block-editor-link-control__search-item-title",href:t.url},t&&t.title||r),t&&t.title&&Object(l.createElement)("span",{className:"block-editor-link-control__search-item-info"},r)),Object(l.createElement)(v.Button,{isSecondary:!0,onClick:function(){return n()},className:"block-editor-link-control__search-item-action"},Object(w.__)("Edit")),Object(l.createElement)(yf,{fillProps:t}))}var Cf=function(e){var t=!1;return{promise:new Promise((function(n,r){e.then((function(e){return t?r({isCanceled:!0}):n(e)}),(function(e){return r(t?{isCanceled:!0}:e)}))})),cancel:function(){t=!0}}};function wf(e){var t=e.searchInputPlaceholder,n=e.value,r=e.settings,o=e.onChange,c=void 0===o?d.noop:o,i=e.noDirectEntry,a=void 0!==i&&i,s=e.showSuggestions,u=void 0===s||s,b=e.showInitialSuggestions,f=e.forceIsEditingLink,p=e.createSuggestion,m=e.withCreateSuggestion,g=e.inputValue,O=void 0===g?"":g,h=e.suggestionsQuery,j=void 0===h?{}:h,k=e.noURLSuggestion,y=void 0!==k&&k,_=e.createSuggestionButtonText;void 0===m&&p&&(m=!0);var E=Object(l.useRef)(!0),C=Object(l.useRef)(),S=Object(l.useState)(n&&n.url||""),B=Object(Me.a)(S,2),I=B[0],x=B[1],P=O||I,T=Object(l.useState)(void 0!==f?f:!n||!n.url),N=Object(Me.a)(T,2),D=N[0],A=N[1],R=Object(l.useRef)(!1);Object(l.useEffect)((function(){void 0!==f&&f!==D&&A(f)}),[f]),Object(l.useEffect)((function(){if(E.current)E.current=!1;else{if(!C.current.contains(C.current.ownerDocument.activeElement))(rl.focus.focusable.find(C.current)[0]||C.current).focus();R.current=!1}}),[D]);var L=function(e){var t=Object(l.useRef)(),n=Object(l.useState)(!1),r=Object(Me.a)(n,2),o=r[0],c=r[1],i=Object(l.useState)(null),a=Object(Me.a)(i,2),s=a[0],u=a[1],d=function(){var n=Object(el.a)(ei.a.mark((function n(r){return ei.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return c(!0),u(null),n.prev=2,t.current=Cf(Promise.resolve(e(r))),n.next=6,t.current.promise;case 6:return n.abrupt("return",n.sent);case 9:if(n.prev=9,n.t0=n.catch(2),!n.t0||!n.t0.isCanceled){n.next=13;break}return n.abrupt("return");case 13:throw u(n.t0.message||Object(w.__)("An unknown error occurred during creation. Please try again.")),n.t0;case 15:return n.prev=15,c(!1),n.finish(15);case 18:case"end":return n.stop()}}),n,null,[[2,9,15,18]])})));return function(e){return n.apply(this,arguments)}}();return Object(l.useEffect)((function(){return function(){t.current&&t.current.cancel()}}),[]),{createPage:d,isCreatingPage:o,errorMessage:s}}(p),M=L.createPage,F=L.isCreatingPage,V=L.errorMessage;return Object(l.createElement)("div",{tabIndex:-1,ref:C,className:"block-editor-link-control"},F&&Object(l.createElement)("div",{className:"block-editor-link-control__loading"},Object(l.createElement)(v.Spinner,null)," ",Object(w.__)("Creating"),"…"),(D||!n)&&!F&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:"block-editor-link-control__search-input-wrapper"},Object(l.createElement)(jf,{currentLink:n,className:"block-editor-link-control__search-input",placeholder:t,value:P,withCreateSuggestion:m,onCreateSuggestion:M,onChange:x,onSelect:function(e){var t;c(e),R.current=!(null===(t=C.current)||void 0===t||!t.contains(C.current.ownerDocument.activeElement)),A(!1)},showInitialSuggestions:b,allowDirectEntry:!a,showSuggestions:u,suggestionsQuery:j,withURLSuggestion:!y,createSuggestionButtonText:_},Object(l.createElement)("div",{className:"block-editor-link-control__search-actions"},Object(l.createElement)(v.Button,{type:"submit",label:Object(w.__)("Submit"),icon:Yb.a,className:"block-editor-link-control__search-submit"})))),V&&Object(l.createElement)(v.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},V)),n&&!D&&!F&&Object(l.createElement)(Ef,{value:n,onEditClick:function(){return A(!0)}}),Object(l.createElement)(Jb,{value:n,settings:r,onChange:c}))}wf.ViewerFill=_f;var Sf=wf,Bf=n(314),If=n(221),xf=Object(v.withFilters)("editor.MediaUpload")((function(){return null}));var Pf=function(e){var t=e.fallback,n=void 0===t?null:t,r=e.children;return Object(m.useSelect)((function(e){return!!(0,e("core/block-editor").getSettings)().mediaUpload}),[])?r:n},Tf=Object(b.compose)([Object(m.withDispatch)((function(e){var t=e(us.store);return{createNotice:t.createNotice,removeNotice:t.removeNotice}})),Object(v.withFilters)("editor.MediaReplaceFlow")])((function(e){var t=e.mediaURL,n=e.mediaId,r=e.allowedTypes,o=e.accept,c=e.onSelect,i=e.onSelectURL,a=e.onFilesUpload,s=void 0===a?d.noop:a,u=e.name,b=void 0===u?Object(w.__)("Replace"):u,f=e.createNotice,p=e.removeNotice,g=Object(l.useState)(t),O=Object(Me.a)(g,2),h=O[0],j=O[1],k=Object(m.useSelect)((function(e){return e("core/block-editor").getSettings().mediaUpload}),[]),y=Object(l.createRef)(),_=Object(d.uniqueId)("block-editor/media-replace-flow/error-notice/"),E=function(e){var t=document.createElement("div");t.innerHTML=Object(l.renderToString)(e);var n=t.textContent||t.innerText||"";setTimeout((function(){f("error",n,{speak:!0,id:_,isDismissible:!0})}),1e3)},C=function(e){c(e),j(e.url),Object(ot.speak)(Object(w.__)("The media file has been replaced")),p(_)},S=function(e){e.keyCode===Ht.DOWN&&(e.preventDefault(),e.stopPropagation(),e.target.click())};return Object(l.createElement)(v.Dropdown,{popoverProps:{isAlternate:!0},contentClassName:"block-editor-media-replace-flow__options",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(l.createElement)(v.ToolbarGroup,{className:"media-replace-flow"},Object(l.createElement)(v.ToolbarButton,{ref:y,"aria-expanded":t,"aria-haspopup":"true",onClick:n,onKeyDown:S},b))},renderContent:function(e){e.onClose;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(v.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu"},Object(l.createElement)(xf,{value:n,onSelect:function(e){return C(e)},allowedTypes:r,render:function(e){var t=e.open;return Object(l.createElement)(v.MenuItem,{icon:Bf.a,onClick:t},Object(w.__)("Open Media Library"))}}),Object(l.createElement)(Pf,null,Object(l.createElement)(v.FormFileUpload,{onChange:function(e){!function(e){var t=e.target.files;s(t);k({allowedTypes:r,filesList:t,onFileChange:function(e){var t=Object(Me.a)(e,1)[0];C(t)},onError:E})}(e)},accept:o,render:function(e){var t=e.openFileDialog;return Object(l.createElement)(v.MenuItem,{icon:If.a,onClick:function(){t()}},Object(w.__)("Upload"))}}))),i&&Object(l.createElement)("form",{className:"block-editor-media-flow__url-input",onKeyDown:function(e){[Ht.TAB,Ht.ESCAPE].includes(e.keyCode)||e.stopPropagation()},onKeyPress:function(e){[Ht.TAB,Ht.ESCAPE].includes(e.keyCode)||e.stopPropagation()}},Object(l.createElement)("span",{className:"block-editor-media-replace-flow__image-url-label"},Object(w.__)("Current media URL:")),Object(l.createElement)(Sf,{value:{url:h},settings:[],showSuggestions:!1,onChange:function(e){var t=e.url;j(t),i(t),y.current.focus()}})))}})})),Nf=n(276);function Df(e){var t=e.url,n=e.urlLabel,r=e.className,o=u()(r,"block-editor-url-popover__link-viewer-url");return t?Object(l.createElement)(v.ExternalLink,{className:o,href:t},n||Object(gs.filterURLForDisplay)(Object(gs.safeDecodeURI)(t))):Object(l.createElement)("span",{className:o})}function Af(e){var t=e.additionalControls,n=e.children,r=e.renderSettings,o=e.position,c=void 0===o?"bottom center":o,a=e.focusOnMount,s=void 0===a?"firstElement":a,u=Object(Fe.a)(e,["additionalControls","children","renderSettings","position","focusOnMount"]),d=Object(l.useState)(!1),b=Object(Me.a)(d,2),f=b[0],p=b[1],m=!!r&&f;return Object(l.createElement)(v.Popover,Object(i.a)({className:"block-editor-url-popover",focusOnMount:s,position:c},u),Object(l.createElement)("div",{className:"block-editor-url-popover__input-container"},Object(l.createElement)("div",{className:"block-editor-url-popover__row"},n,!!r&&Object(l.createElement)(v.Button,{className:"block-editor-url-popover__settings-toggle",icon:bl.a,label:Object(w.__)("Link settings"),onClick:function(){p(!f)},"aria-expanded":f})),m&&Object(l.createElement)("div",{className:"block-editor-url-popover__row block-editor-url-popover__settings"},r())),t&&!m&&Object(l.createElement)("div",{className:"block-editor-url-popover__additional-controls"},t))}Af.LinkEditor=function(e){var t=e.autocompleteRef,n=e.className,r=e.onChangeInputValue,o=e.value,c=Object(Fe.a)(e,["autocompleteRef","className","onChangeInputValue","value"]);return Object(l.createElement)("form",Object(i.a)({className:u()("block-editor-url-popover__link-editor",n)},c),Object(l.createElement)(of,{value:o,onChange:r,autocompleteRef:t}),Object(l.createElement)(v.Button,{icon:Yb.a,label:Object(w.__)("Apply"),type:"submit"}))},Af.LinkViewer=function(e){var t=e.className,n=e.linkClassName,r=e.onEditLinkClick,o=e.url,c=e.urlLabel,a=Object(Fe.a)(e,["className","linkClassName","onEditLinkClick","url","urlLabel"]);return Object(l.createElement)("div",Object(i.a)({className:u()("block-editor-url-popover__link-viewer",t)},a),Object(l.createElement)(Df,{url:o,urlLabel:c,className:n}),r&&Object(l.createElement)(v.Button,{icon:Nf.a,label:Object(w.__)("Edit"),onClick:r}))};var Rf=Af,Lf=function(e){var t=e.src,n=e.onChange,r=e.onSubmit,o=e.onClose;return Object(l.createElement)(Rf,{onClose:o},Object(l.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:r},Object(l.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"url","aria-label":Object(w.__)("URL"),placeholder:Object(w.__)("Paste or type URL"),onChange:n,value:t}),Object(l.createElement)(v.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:Yb.a,label:Object(w.__)("Apply"),type:"submit"})))};var Mf=Object(v.withFilters)("editor.MediaPlaceholder")((function(e){var t=e.value,n=void 0===t?{}:t,r=e.allowedTypes,o=e.className,c=e.icon,i=e.labels,a=void 0===i?{}:i,s=e.mediaPreview,b=e.notices,f=e.isAppender,p=e.accept,g=e.addToGallery,O=e.multiple,h=void 0!==O&&O,j=e.dropZoneUIOnly,k=e.disableDropZone,y=e.disableMediaButtons,_=e.onError,E=e.onSelect,C=e.onCancel,S=e.onSelectURL,B=e.onDoubleClick,I=e.onFilesPreUpload,x=void 0===I?d.noop:I,P=e.onHTMLDrop,T=void 0===P?d.noop:P,N=e.children,D=Object(m.useSelect)((function(e){return(0,e("core/block-editor").getSettings)().mediaUpload}),[]),A=Object(l.useState)(""),R=Object(Me.a)(A,2),L=R[0],M=R[1],F=Object(l.useState)(!1),V=Object(Me.a)(F,2),H=V[0],z=V[1];Object(l.useEffect)((function(){var e;M(null!==(e=null==n?void 0:n.src)&&void 0!==e?e:"")}),[null==n?void 0:n.src]);var G=function(e){M(e.target.value)},U=function(){z(!0)},W=function(){z(!1)},K=function(e){e.preventDefault(),L&&S&&(S(L),W())},q=function(e){var t;if(x(e),h)if(g){var o=[];t=function(e){var t=(null!=n?n:[]).filter((function(e){return e.id?!o.some((function(t){var n=t.id;return Number(n)===Number(e.id)})):!o.some((function(t){var n=t.urlSlug;return e.url.includes(n)}))}));E(t.concat(e)),o=e.map((function(e){var t=e.url.lastIndexOf("."),n=e.url.slice(0,t);return{id:e.id,urlSlug:n}}))}}else t=E;else t=function(e){var t=Object(Me.a)(e,1)[0];return E(t)};D({allowedTypes:r,filesList:e,onFileChange:t,onError:_})},$=function(e){q(e.target.files)},Y=function(e,t){var n=a.instructions,i=a.title;if(D||S||(n=Object(w.__)("To edit this block, you need permission to upload media.")),void 0===n||void 0===i){var d=null!=r?r:[],p=Object(Me.a)(d,1)[0],m=1===d.length,g=m&&"audio"===p,O=m&&"image"===p,h=m&&"video"===p;void 0===n&&D&&(n=Object(w.__)("Upload a media file or pick one from your media library."),g?n=Object(w.__)("Upload an audio file, pick one from your media library, or add one with a URL."):O?n=Object(w.__)("Upload an image file, pick one from your media library, or add one with a URL."):h&&(n=Object(w.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===i&&(i=Object(w.__)("Media"),g?i=Object(w.__)("Audio"):O?i=Object(w.__)("Image"):h&&(i=Object(w.__)("Video")))}var j=u()("block-editor-media-placeholder",o,{"is-appender":f});return Object(l.createElement)(v.Placeholder,{icon:c,label:i,instructions:n,className:j,notices:b,onClick:t,onDoubleClick:B,preview:s},e,N)},X=function(){return k?null:Object(l.createElement)(v.DropZone,{onFilesDrop:q,onHTMLDrop:T})},Q=function(){return C&&Object(l.createElement)(v.Button,{className:"block-editor-media-placeholder__cancel-button",title:Object(w.__)("Cancel"),isLink:!0,onClick:C},Object(w.__)("Cancel"))},Z=function(){return S&&Object(l.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},Object(l.createElement)(v.Button,{className:"block-editor-media-placeholder__button",onClick:U,isPressed:H,isTertiary:!0},Object(w.__)("Insert from URL")),H&&Object(l.createElement)(Lf,{src:L,onChange:G,onSubmit:K,onClose:W}))};return j||y?(j&&Ul()("wp.blockEditor.MediaPlaceholder dropZoneUIOnly prop",{alternative:"disableMediaButtons"}),Object(l.createElement)(Pf,null,X())):Object(l.createElement)(Pf,{fallback:Y(Z())},function(){var e=Object(l.createElement)(xf,{addToGallery:g,gallery:h&&!(!r||0===r.length)&&r.every((function(e){return"image"===e||e.startsWith("image/")})),multiple:h,onSelect:E,allowedTypes:r,value:Array.isArray(n)?n.map((function(e){return e.id})):n.id,render:function(e){var t=e.open;return Object(l.createElement)(v.Button,{isTertiary:!0,onClick:function(e){e.stopPropagation(),t()}},Object(w.__)("Media Library"))}});if(D&&f)return Object(l.createElement)(l.Fragment,null,X(),Object(l.createElement)(v.FormFileUpload,{onChange:$,accept:p,multiple:h,render:function(t){var n=t.openFileDialog,r=Object(l.createElement)(l.Fragment,null,Object(l.createElement)(v.Button,{isPrimary:!0,className:u()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button")},Object(w.__)("Upload")),e,Z(),Q());return Y(r,n)}}));if(D){var t=Object(l.createElement)(l.Fragment,null,X(),Object(l.createElement)(v.FormFileUpload,{isPrimary:!0,className:u()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:$,accept:p,multiple:h},Object(w.__)("Upload")),e,Z(),Q());return Y(t)}return Y(e)}())})),Ff=Object(l.forwardRef)((function(e,t){return Object(l.createElement)(sb,Object(i.a)({ref:t},e,{__unstableDisableFormats:!0,preserveWhiteSpace:!0}))}));Ff.Content=function(e){var t=e.value,n=void 0===t?"":t,r=e.tagName,o=void 0===r?"div":r,c=Object(Fe.a)(e,["value","tagName"]);return Object(l.createElement)(o,c,n)};var Vf=Ff,Hf=Object(l.forwardRef)((function(e,t){var n=e.__experimentalVersion,r=Object(Fe.a)(e,["__experimentalVersion"]);if(2===n)return Object(l.createElement)(Vf,Object(i.a)({ref:t},r));var o=r.className,c=r.onChange,a=Object(Fe.a)(r,["className","onChange"]);return Object(l.createElement)(Nl.a,Object(i.a)({ref:t,className:u()("block-editor-plain-text",o),onChange:function(e){return c(e.target.value)}},a))}));function zf(e){var t=e.property,n=e.viewport,r=e.desc,o=Object(b.useInstanceId)(zf),c=r||Object(w.sprintf)(Object(w._x)("Controls the %1$s property for %2$s viewports.","Text labelling a interface as controlling a given layout property (eg: margin) for a given screen size."),t,n.label);return Object(l.createElement)(l.Fragment,null,Object(l.createElement)("span",{"aria-describedby":"rbc-desc-".concat(o)},n.label),Object(l.createElement)(v.VisuallyHidden,{as:"span",id:"rbc-desc-".concat(o)},c))}var Gf=function(e){var t=e.title,n=e.property,r=e.toggleLabel,o=e.onIsResponsiveChange,c=e.renderDefaultControl,i=e.renderResponsiveControls,a=e.isResponsive,s=void 0!==a&&a,d=e.defaultLabel,b=void 0===d?{id:"all",label:Object(w.__)("All")}:d,f=e.viewports,p=void 0===f?[{id:"small",label:Object(w.__)("Small screens")},{id:"medium",label:Object(w.__)("Medium screens")},{id:"large",label:Object(w.__)("Large screens")}]:f;if(!t||!n||!c)return null;var m=r||Object(w.sprintf)(Object(w.__)("Use the same %s on all screensizes."),n),g=Object(w.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size."),O=c(Object(l.createElement)(zf,{property:n,viewport:b}),b);return Object(l.createElement)("fieldset",{className:"block-editor-responsive-block-control"},Object(l.createElement)("legend",{className:"block-editor-responsive-block-control__title"},t),Object(l.createElement)("div",{className:"block-editor-responsive-block-control__inner"},Object(l.createElement)(v.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:m,checked:!s,onChange:o,help:g}),Object(l.createElement)("div",{className:u()("block-editor-responsive-block-control__group",{"is-responsive":s})},!s&&O,s&&(i?i(p):p.map((function(e){return Object(l.createElement)(l.Fragment,{key:e.id},c(Object(l.createElement)(zf,{property:n,viewport:e}),e))}))))))};function Uf(e){var t=e.character,n=e.type,r=e.onUse;return Object(b.useKeyboardShortcut)(Ht.rawShortcut[n](t),(function(){return r(),!1}),{bindGlobal:!0}),null}function Wf(e){var t,n=e.name,r=e.shortcutType,o=e.shortcutCharacter,c=Object(Fe.a)(e,["name","shortcutType","shortcutCharacter"]),a="RichText.ToolbarControls";return n&&(a+=".".concat(n)),r&&o&&(t=Ht.displayShortcut[r](o)),Object(l.createElement)(v.Fill,{name:a},Object(l.createElement)(v.ToolbarButton,Object(i.a)({},c,{shortcut:t})))}function Kf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Hn.a)(e);if(t){var o=Object(Hn.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Vn.a)(this,n)}}var qf=function(e){Object(Fn.a)(n,e);var t=Kf(n);function n(){var e;return Object(Rn.a)(this,n),(e=t.apply(this,arguments)).onInput=e.onInput.bind(Object(Mn.a)(e)),e}return Object(Ln.a)(n,[{key:"onInput",value:function(e){e.inputType===this.props.inputType&&this.props.onInput()}},{key:"componentDidMount",value:function(){document.addEventListener("input",this.onInput,!0)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("input",this.onInput,!0)}},{key:"render",value:function(){return null}}]),n}(l.Component),$f=Object(l.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(v.Path,{d:"M9.4 20.5L5.2 3.8l14.6 9-2 .3c-.2 0-.4.1-.7.1-.9.2-1.6.3-2.2.5-.8.3-1.4.5-1.8.8-.4.3-.8.8-1.3 1.5-.4.5-.8 1.2-1.2 2l-.3.6-.9 1.9zM7.6 7.1l2.4 9.3c.2-.4.5-.8.7-1.1.6-.8 1.1-1.4 1.6-1.8.5-.4 1.3-.8 2.2-1.1l1.2-.3-8.1-5z"}));var Yf=Object(l.forwardRef)((function(e,t){var n=Object(m.useSelect)((function(e){return e("core/block-editor").isNavigationMode()}),[]),r=Object(m.useDispatch)("core/block-editor").setNavigationMode,o=function(e){r("edit"!==e)};return Object(l.createElement)(v.Dropdown,{renderToggle:function(r){var o=r.isOpen,c=r.onToggle;return Object(l.createElement)(v.Button,Object(i.a)({},e,{ref:t,icon:n?$f:Nf.a,"aria-expanded":o,"aria-haspopup":"true",onClick:c,label:Object(w.__)("Modes")}))},position:"bottom right",renderContent:function(){return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(v.NavigableMenu,{role:"menu","aria-label":Object(w.__)("Modes")},Object(l.createElement)(v.MenuItemsChoice,{value:n?"select":"edit",onSelect:o,choices:[{value:"edit",label:Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Vl.a,{icon:Nf.a}),Object(w.__)("Edit"))},{value:"select",label:Object(l.createElement)(l.Fragment,null,$f,Object(w.__)("Select"))}]})),Object(l.createElement)("div",{className:"block-editor-tool-selector__help"},Object(w.__)("Tools offer different interactions for block selection & editing. To select, press Escape, to go back to editing, press Enter.")))}})})),Xf=n(192),Qf=Object(l.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(S.Path,{d:"M9.737 18.011L3.98 12.255l5.734-6.28 1.107 1.012-4.103 4.494h13.3v1.5H6.828l3.97 3.97-1.06 1.06z"}));function Zf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Hn.a)(e);if(t){var o=Object(Hn.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Vn.a)(this,n)}}var Jf=function(e){Object(Fn.a)(n,e);var t=Zf(n);function n(){var e;return Object(Rn.a)(this,n),(e=t.apply(this,arguments)).toggle=e.toggle.bind(Object(Mn.a)(e)),e.submitLink=e.submitLink.bind(Object(Mn.a)(e)),e.state={expanded:!1},e}return Object(Ln.a)(n,[{key:"toggle",value:function(){this.setState({expanded:!this.state.expanded})}},{key:"submitLink",value:function(e){e.preventDefault(),this.toggle()}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.onChange,r=this.state.expanded,o=t?Object(w.__)("Edit link"):Object(w.__)("Insert link");return Object(l.createElement)("div",{className:"block-editor-url-input__button"},Object(l.createElement)(v.Button,{icon:Xf.a,label:o,onClick:this.toggle,className:"components-toolbar__control",isPressed:!!t}),r&&Object(l.createElement)("form",{className:"block-editor-url-input__button-modal",onSubmit:this.submitLink},Object(l.createElement)("div",{className:"block-editor-url-input__button-modal-line"},Object(l.createElement)(v.Button,{className:"block-editor-url-input__back",icon:Qf,label:Object(w.__)("Close"),onClick:this.toggle}),Object(l.createElement)(of,{value:t||"",onChange:n}),Object(l.createElement)(v.Button,{icon:Yb.a,label:Object(w.__)("Submit"),type:"submit"}))))}}]),n}(l.Component),ep=n(160),tp=["noreferrer","noopener"],np=Object(l.createElement)(v.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(v.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(l.createElement)(v.Path,{d:"m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z"}),Object(l.createElement)(v.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),rp=function(e){var t=e.linkDestination,n=e.onChangeUrl,r=e.url,o=e.mediaType,c=void 0===o?"image":o,i=e.mediaUrl,a=e.mediaLink,s=e.linkTarget,u=e.linkClass,b=e.rel,f=Object(l.useState)(!1),p=Object(Me.a)(f,2),m=p[0],g=p[1],O=Object(l.useCallback)((function(){g(!0)})),h=Object(l.useState)(!1),j=Object(Me.a)(h,2),k=j[0],y=j[1],_=Object(l.useState)(null),E=Object(Me.a)(_,2),C=E[0],S=E[1],B=Object(l.useRef)(null),I=Object(l.useCallback)((function(){"media"!==t&&"attachment"!==t||S(""),y(!0)})),x=Object(l.useCallback)((function(){y(!1)})),P=Object(l.useCallback)((function(){S(null),x(),g(!1)})),T=function(e){var t=e;return void 0===e||Object(d.isEmpty)(t)||Object(d.isEmpty)(t)||(Object(d.each)(tp,(function(e){var n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")})),t!==e&&(t=t.trim()),Object(d.isEmpty)(t)&&(t=void 0)),t},N=Object(l.useCallback)((function(){return function(e){var t=B.current;t&&t.contains(e.target)||(g(!1),S(null),x())}})),D=Object(l.useCallback)((function(){return function(e){if(C){var t,r=(null===(t=R().find((function(e){return e.url===C})))||void 0===t?void 0:t.linkDestination)||"custom";n({href:C,linkDestination:r})}x(),S(null),e.preventDefault()}})),A=Object(l.useCallback)((function(){n({linkDestination:"none",href:""})})),R=function(){var e=[{linkDestination:"media",title:Object(w.__)("Media File"),url:"image"===c?i:void 0,icon:np}];return"image"===c&&a&&e.push({linkDestination:"attachment",title:Object(w.__)("Attachment Page"),url:"image"===c?a:void 0,icon:Object(l.createElement)(v.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(v.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),Object(l.createElement)(v.Path,{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}))}),e},L=Object(l.createElement)(l.Fragment,null,Object(l.createElement)(v.ToggleControl,{label:Object(w.__)("Open in new tab"),onChange:function(e){var t=function(e){var t=e?"_blank":void 0;return{linkTarget:t,rel:t||b?T(b):void 0}}(e);n(t)},checked:"_blank"===s}),Object(l.createElement)(v.TextControl,{label:Object(w.__)("Link Rel"),value:T(b)||"",onChange:function(e){n({rel:e})}}),Object(l.createElement)(v.TextControl,{label:Object(w.__)("Link CSS Class"),value:u||"",onChange:function(e){n({linkClass:e})}})),M=null!==C?C:r,F=(Object(d.find)(R(),["linkDestination",t])||{}).title;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(v.ToolbarButton,{icon:Xf.a,className:"components-toolbar__control",label:r?Object(w.__)("Edit link"):Object(w.__)("Insert link"),"aria-expanded":m,onClick:O}),m&&Object(l.createElement)(Rf,{onFocusOutside:N(),onClose:P,renderSettings:function(){return L},additionalControls:!M&&Object(l.createElement)(v.NavigableMenu,null,Object(d.map)(R(),(function(e){return Object(l.createElement)(v.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:function(){var t,r,o;S(null),t=e.url,o=R(),r=t?(Object(d.find)(o,(function(e){return e.url===t}))||{linkDestination:"custom"}).linkDestination:"none",n({linkDestination:r,href:t}),x()}},e.title)})))},(!r||k)&&Object(l.createElement)(Rf.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:M,onChangeInputValue:S,onSubmit:D(),autocompleteRef:B}),r&&!k&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Rf.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",url:r,onEditLinkClick:I,urlLabel:F}),Object(l.createElement)(v.Button,{icon:ep.a,label:Object(w.__)("Remove link"),onClick:A}))))},op=n(161);function cp(e){var t=e.children,n=e.className,r=e.isEnabled,o=void 0===r||r,c=e.deviceType,i=e.setDeviceType;if(Object(b.useViewportMatch)("small","<"))return null;var a={className:u()(n,"block-editor-post-preview__dropdown-content"),position:"bottom left"},s={isTertiary:!0,className:"block-editor-post-preview__button-toggle",disabled:!o,children:Object(w.__)("Preview")};return Object(l.createElement)(v.DropdownMenu,{className:"block-editor-post-preview__dropdown",popoverProps:a,toggleProps:s,icon:null},(function(){return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(v.MenuGroup,null,Object(l.createElement)(v.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Desktop")},icon:"Desktop"===c&&op.a},Object(w.__)("Desktop")),Object(l.createElement)(v.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Tablet")},icon:"Tablet"===c&&op.a},Object(w.__)("Tablet")),Object(l.createElement)(v.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Mobile")},icon:"Mobile"===c&&op.a},Object(w.__)("Mobile"))),t)}))}var ip=n(280),ap=/\((min|max)-width:[^\(]*?\)/g;function lp(e){return!!e.media&&!!e.media.mediaText.match(ap)}function sp(e,t,n){e.deleteRule(n),e.insertRule(t,n)}function up(e,t){return e.replace(ap,(function(e){return Object(ip.match)(e,{type:"screen",width:t})?"(min-width:0px)":"(min-width:999999px)"}))}function dp(e,t){Object(l.useEffect)((function(){if(t){var n,r,o,c="undefined"==typeof window?[]:Object(d.filter)(null!==(n=null===(r=window)||void 0===r||null===(o=r.document)||void 0===o?void 0:o.styleSheets)&&void 0!==n?n:[],(function(e){return!!e.href&&Object(gs.getProtocol)(e.href)===window.location.protocol&&Object(gs.getAuthority)(e.href)===window.location.host})),i=[];return c.forEach((function(n,r){for(var o=!1,c=0;c0,selectedBlockName:a,selectedBlockClientId:i,blockType:l}}))((function(e){var t=e.blockType,n=e.count,r=e.hasBlockStyles,o=e.selectedBlockClientId,c=e.selectedBlockName,i=e.showNoBlockSelectedMessage,a=void 0===i||i,s=e.bubblesVirtually,u=void 0===s||s;if(n>1)return Object(l.createElement)("div",{className:"block-editor-block-inspector"},Object(l.createElement)(mp,null),Object(l.createElement)(ce.Slot,{bubblesVirtually:u}));var d=c===Object(p.getUnregisteredTypeHandlerName)();return t&&o&&!d?Object(l.createElement)(gp,{clientId:o,blockName:t.name,hasBlockStyles:r,bubblesVirtually:u}):a?Object(l.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},Object(w.__)("No block selected.")):null})),jp=["p","div","h1","h2","h3","h4","h5","h6","ol","ul","li","figure","nav","pre","header","section","aside","footer","main"];function kp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yp(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[];return function(n){return"rule"===n.type?qp(qp({},n),{},{selectors:n.selectors.map((function(n){return t.includes(n.trim())?n:n.match($p)?n.replace(/^(body|html|:root)/,e):e+" "+n}))}):n}},Xp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(d.map)(e,(function(e){var n=e.css,r=e.baseURL,o=e.__experimentalNoWrapper,c=[];return t&&!(void 0!==o&&o)&&c.push(Yp(t)),r&&c.push(Wp(r)),c.length?Vp(n,Object(b.compose)(c)):n}))};function Qp(e){var t=Object(l.useRef)([]);return Object(l.useCallback)((function(n){if(n){var r=Xp(e,".editor-styles-wrapper"),o=n.ownerDocument;t.current=Object(d.map)(Object(d.compact)(r),(function(e){var t=o.createElement("style");return t.innerHTML=e,o.body.appendChild(t),t})),function(e){var t=window.getComputedStyle(e,null).getPropertyValue("background-color"),n=e.ownerDocument.getElementsByTagName("body")[0];Be()(t).getLuminance()>.5?n.classList.remove("is-dark-theme"):n.classList.add("is-dark-theme")}(n)}else t.current.forEach((function(e){return e.ownerDocument.body.removeChild(e)}))}),[e])}var Zp=function(e){var t=e.rootClientId,n=e.clientId,r=e.isAppender,o=e.showInserterHelpPanel,c=e.showMostUsedBlocks,i=void 0!==c&&c,a=e.__experimentalSelectBlockOnInsert,s=e.__experimentalInsertionIndex,u=e.onSelect,b=void 0===u?d.noop:u,f=Object(m.useSelect)((function(e){var r=e("core/block-editor").getBlockRootClientId;return t||r(n)||void 0}),[n,t]);return Object(l.createElement)(Ps,{onSelect:b,rootClientId:f,clientId:n,isAppender:r,showInserterHelpPanel:o,showMostUsedBlocks:i,__experimentalSelectBlockOnInsert:a,__experimentalInsertionIndex:s})};function Jp(){var e=Object(m.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientIds,r=t.getBlockOrder,o=t.getBlockRootClientId,c=n(),i=Object(Me.a)(c,1)[0];return{clientIds:c,rootBlocksClientIds:r(),rootClientId:o(i)}}),[]),t=e.clientIds,n=e.rootBlocksClientIds,r=e.rootClientId,o=Object(m.useDispatch)("core/block-editor"),c=o.duplicateBlocks,i=o.removeBlocks,a=o.insertAfterBlock,s=o.insertBeforeBlock,u=o.multiSelect,b=o.clearSelectedBlock,f=o.moveBlocksUp,p=o.moveBlocksDown;return Object(Ja.useShortcut)("core/block-editor/move-up",Object(l.useCallback)((function(e){e.preventDefault(),f(t,r)}),[t,f]),{bindGlobal:!0,isDisabled:0===t.length}),Object(Ja.useShortcut)("core/block-editor/move-down",Object(l.useCallback)((function(e){e.preventDefault(),p(t,r)}),[t,p]),{bindGlobal:!0,isDisabled:0===t.length}),Object(Ja.useShortcut)("core/block-editor/duplicate",Object(l.useCallback)((function(e){e.preventDefault(),c(t)}),[t,c]),{bindGlobal:!0,isDisabled:0===t.length}),Object(Ja.useShortcut)("core/block-editor/remove",Object(l.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{bindGlobal:!0,isDisabled:0===t.length}),Object(Ja.useShortcut)("core/block-editor/insert-after",Object(l.useCallback)((function(e){e.preventDefault(),a(Object(d.last)(t))}),[t,a]),{bindGlobal:!0,isDisabled:0===t.length}),Object(Ja.useShortcut)("core/block-editor/insert-before",Object(l.useCallback)((function(e){e.preventDefault(),s(Object(d.first)(t))}),[t,s]),{bindGlobal:!0,isDisabled:0===t.length}),Object(Ja.useShortcut)("core/block-editor/delete-multi-selection",Object(l.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{isDisabled:t.length<2}),Object(Ja.useShortcut)("core/block-editor/select-all",Object(l.useCallback)((function(e){e.preventDefault(),u(Object(d.first)(n),Object(d.last)(n))}),[n,u])),Object(Ja.useShortcut)("core/block-editor/unselect",Object(l.useCallback)((function(e){e.preventDefault(),b(),e.target.ownerDocument.defaultView.getSelection().removeAllRanges()}),[t,b]),{isDisabled:t.length<2}),null}Jp.Register=function(){var e=Object(m.useDispatch)(Ja.store).registerShortcut;return Object(l.useEffect)((function(){e({name:"core/block-editor/duplicate",category:"block",description:Object(w.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:Object(w.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:Object(w.__)("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:Object(w.__)("Insert a new block after the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"y"}}),e({name:"core/block-editor/delete-multi-selection",category:"block",description:Object(w.__)("Remove multiple selected blocks."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:Object(w.__)("Select all text when typing. Press again to select all blocks."),keyCombination:{modifier:"primary",character:"a"}}),e({name:"core/block-editor/unselect",category:"selection",description:Object(w.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:Object(w.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:Object(w.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:Object(w.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}})}),[e]),null};var em=Jp;function tm(e){var t=Object(m.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockSelectionEnd,r=t.hasMultiSelection,o=t.isMultiSelecting,c=n();if(c&&!o()&&r())return c}),[]);Object(l.useEffect)((function(){if(t){var n=e.current.ownerDocument,r=at(t,n);if(r){var o=Object(rl.getScrollContainer)(r);o&&tf()(r,o,{onlyScrollIfNeeded:!0})}}}),[t])}function nm(){var e=Object(l.useRef)();return tm(e),Object(l.createElement)("div",{ref:e})}var rm=new Set([Ht.UP,Ht.RIGHT,Ht.DOWN,Ht.LEFT,Ht.ENTER,Ht.BACKSPACE]);function om(e){var t=Object(m.useSelect)((function(e){return e("core/block-editor").isTyping()})),n=Object(m.useDispatch)("core/block-editor").stopTyping;Object(l.useEffect)((function(){if(t){var r,o,c=e.current.ownerDocument;return c.addEventListener("mousemove",i),function(){c.removeEventListener("mousemove",i)}}function i(e){var t=e.clientX,c=e.clientY;r&&o&&(r!==t||o!==c)&&n(),r=t,o=c}}),[t,n])}function cm(e){var t=Object(m.useSelect)((function(e){return e("core/block-editor").isTyping()})),n=Object(m.useDispatch)("core/block-editor"),r=n.startTyping,o=n.stopTyping;om(e),Object(l.useEffect)((function(){var n=e.current,c=n.ownerDocument,i=c.defaultView;if(t){var a;function l(e){var t=e.target;a=i.setTimeout((function(){Object(rl.isTextField)(t)||o()}))}function s(e){var t=e.keyCode;t!==Ht.ESCAPE&&t!==Ht.TAB||o()}function u(){var e=i.getSelection();e.rangeCount>0&&e.getRangeAt(0).collapsed||o()}return n.addEventListener("focus",l),n.addEventListener("keydown",s),c.addEventListener("selectionchange",u),function(){i.clearTimeout(a),n.removeEventListener("focus",l),n.removeEventListener("keydown",s),c.removeEventListener("selectionchange",u)}}function d(e){var t=e.type,o=e.target;Object(rl.isTextField)(o)&&n.contains(o)&&("keydown"!==t||function(e){var t=e.keyCode;return!e.shiftKey&&rm.has(t)}(e))&&r()}return n.addEventListener("keypress",d),n.addEventListener("keydown",d),function(){n.removeEventListener("keypress",d),n.removeEventListener("keydown",d)}}),[t,r,o])}var im=function(e){var t=e.children,n=Object(l.useRef)();return cm(n),Object(l.createElement)("div",{ref:n},t)};function am(){return Ul()("PreserveScrollInReorder component",{hint:"This behavior is now built-in the block list"}),null}var lm=-1!==window.navigator.userAgent.indexOf("Trident"),sm=new Set([Ht.UP,Ht.DOWN,Ht.LEFT,Ht.RIGHT]);function um(e){var t=Object(m.useSelect)((function(e){return e("core/block-editor").hasSelectedBlock()}));Object(l.useEffect)((function(){if(t){var n,r,o,c=e.current.ownerDocument,i=c.defaultView;return i.addEventListener("scroll",a,!0),i.addEventListener("resize",a,!0),e.current.addEventListener("keydown",l),e.current.addEventListener("keyup",s),e.current.addEventListener("mousedown",u),e.current.addEventListener("touchstart",u),function(){i.removeEventListener("scroll",a,!0),i.removeEventListener("resize",a,!0),e.current.removeEventListener("keydown",l),e.current.removeEventListener("keyup",s),e.current.removeEventListener("mousedown",u),e.current.removeEventListener("touchstart",u),c.removeEventListener("selectionchange",d),i.cancelAnimationFrame(n),i.cancelAnimationFrame(r)}}function a(){n||(n=i.requestAnimationFrame((function(){b(),n=null})))}function l(e){r&&i.cancelAnimationFrame(r),r=i.requestAnimationFrame((function(){s(e),r=null}))}function s(t){var n=t.keyCode;if(f()){var r=Object(rl.computeCaretRect)(i);if(r)if(o)if(sm.has(n))o=r;else{var a=r.top-o.top;if(0!==a){var l=Object(rl.getScrollContainer)(e.current);if(l){var s=l===c.body,u=s?i.scrollY:l.scrollTop,d=s?0:l.getBoundingClientRect().top,b=s?o.top/i.innerHeight:(o.top-d)/(i.innerHeight-d);if(0===u&&b<.75&&(p=e.current.querySelectorAll('[contenteditable="true"]'))[p.length-1]===c.activeElement)o=r;else{var p,m=s?i.innerHeight:l.clientHeight;o.top+o.height>d+m||o.top=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function vm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nbody{margin:0}"+t}(r,o),gm(r),t=r,Array.from(document.styleSheets).forEach((function(e){try{e.cssRules}catch(e){return}var n=e.ownerNode,r=e.cssRules;r&&Array.from(r).find((function(e){var t=e.selectorText;return t&&(t.includes(".".concat("editor-styles-wrapper"))||t.includes(".".concat("wp-block")))}))&&!t.getElementById(n.id)&&t.head.appendChild(n.cloneNode(!0))})),function(e){var t=e.defaultView,n=t.frameElement;function r(e){var r=Object.getPrototypeOf(e).constructor.name,o=window[r],c={};for(var i in e)c[i]=e[i];if(e instanceof t.MouseEvent){var a=n.getBoundingClientRect();c.clientX+=a.left,c.clientY+=a.top}var l=new o(e.type,c);!n.dispatchEvent(l)&&e.preventDefault()}for(var o=0,c=["keydown","keypress","dragover"];o1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=N(e,360),t=N(t,100),n=N(n,100),0===t)r=o=c=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=i(l,a,e+1/3),o=i(l,a,e),c=i(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*c}}(e.h,r,l),d=!0,b="hsl"),e.hasOwnProperty("a")&&(n=e.a));var f,p,m;return n=T(n),{ok:d,format:e.format||b,r:s(255,u(t.r,0)),g:s(255,u(t.g,0)),b:s(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=a++}function f(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,o,c=u(e,t,n),i=s(e,t,n),a=(c+i)/2;if(c==i)r=o=0;else{var l=c-i;switch(o=a>.5?l/(2-c-i):l/(c+i),c){case e:r=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,c.push(b(r));return c}function I(e,t){t=t||6;for(var n=b(e).toHsv(),r=n.h,o=n.s,c=n.v,i=[],a=1/t;t--;)i.push(b({h:r,s:o,v:c})),c=(c+a)%1;return i}b.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=T(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=f(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return m(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var c=[R(l(e).toString(16)),R(l(t).toString(16)),R(l(n).toString(16)),R(M(r))];if(o&&c[0].charAt(0)==c[0].charAt(1)&&c[1].charAt(0)==c[1].charAt(1)&&c[2].charAt(0)==c[2].charAt(1)&&c[3].charAt(0)==c[3].charAt(1))return c[0].charAt(0)+c[1].charAt(0)+c[2].charAt(0)+c[3].charAt(0);return c.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*N(this._r,255))+"%",g:l(100*N(this._g,255))+"%",b:l(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%)":"rgba("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(P[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+v(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=b(e);n="#"+v(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return b(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(j,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(g,arguments)},saturate:function(){return this._applyModification(O,arguments)},greyscale:function(){return this._applyModification(h,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(B,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(I,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(w,arguments)}},b.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:L(e[r]));e=n}return b(e,t)},b.equals=function(e,t){return!(!e||!t)&&b(e).toRgbString()==b(t).toRgbString()},b.random=function(){return b.fromRatio({r:d(),g:d(),b:d()})},b.mix=function(e,t,n){n=0===n?0:n||50;var r=b(e).toRgb(),o=b(t).toRgb(),c=n/100;return b({r:(o.r-r.r)*c+r.r,g:(o.g-r.g)*c+r.g,b:(o.b-r.b)*c+r.b,a:(o.a-r.a)*c+r.a})},b.readability=function(e,t){var n=b(e),r=b(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},b.isReadable=function(e,t,n){var r,o,c=b.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=c>=4.5;break;case"AAlarge":o=c>=3;break;case"AAAsmall":o=c>=7}return o},b.mostReadable=function(e,t,n){var r,o,c,i,a=null,l=0;o=(n=n||{}).includeFallbackColors,c=n.level,i=n.size;for(var s=0;sl&&(l=r,a=b(t[s]));return b.isReadable(e,a,{level:c,size:i})||!o?a:(n.includeFallbackColors=!1,b.mostReadable(e,["#fff","#000"],n))};var x=b.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},P=b.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(x);function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function D(e){return s(1,u(0,e))}function A(e){return parseInt(e,16)}function R(e){return 1==e.length?"0"+e:""+e}function L(e){return e<=1&&(e=100*e+"%"),e}function M(e){return o.round(255*parseFloat(e)).toString(16)}function F(e){return A(e)/255}var V,H,z,G=(H="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",z="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+z),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+z),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+z),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function U(e){return!!G.CSS_UNIT.exec(e)}e.exports?e.exports=b:void 0===(r=function(){return b}.call(t,n,t,e))||(e.exports=r)}(Math)},63:function(e,t){e.exports=window.wp.isShallowEqual},64:function(e,t){e.exports=window.wp.htmlEntities},7:function(e,t){e.exports=window.wp.primitives},71:function(e,t,n){e.exports=function(e,t){var n,r,o=0;function c(){var c,i,a=n,l=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(i=0;i 1 && arguments[1] !== undefined ? arguments[1] : {}; + var newInnerBlocks = arguments.length > 2 ? arguments[2] : undefined; + var clientId = Object(v4["a" /* default */])(); + var sanitizedAttributes = sanitizeBlockAttributes(block.name, factory_objectSpread(factory_objectSpread({}, block.attributes), mergeAttributes)); + return factory_objectSpread(factory_objectSpread({}, block), {}, { + clientId: clientId, + attributes: sanitizedAttributes, + innerBlocks: newInnerBlocks || block.innerBlocks.map(function (innerBlock) { + return __experimentalCloneSanitizedBlock(innerBlock); + }) + }); +} +/** + * Given a block object, returns a copy of the block object, + * optionally merging new attributes and/or replacing its inner blocks. * * @param {Object} block Block instance. * @param {Object} mergeAttributes Block attributes. @@ -7809,10 +7834,9 @@ function cloneBlock(block) { var mergeAttributes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var newInnerBlocks = arguments.length > 2 ? arguments[2] : undefined; var clientId = Object(v4["a" /* default */])(); - var sanitizedAttributes = sanitizeBlockAttributes(block.name, factory_objectSpread(factory_objectSpread({}, block.attributes), mergeAttributes)); return factory_objectSpread(factory_objectSpread({}, block), {}, { clientId: clientId, - attributes: sanitizedAttributes, + attributes: factory_objectSpread(factory_objectSpread({}, block.attributes), mergeAttributes), innerBlocks: newInnerBlocks || block.innerBlocks.map(function (innerBlock) { return cloneBlock(innerBlock); }) diff --git a/wp-includes/js/dist/blocks.min.js b/wp-includes/js/dist/blocks.min.js index 3096fa1912..5c42bf3fc3 100644 --- a/wp-includes/js/dist/blocks.min.js +++ b/wp-includes/js/dist/blocks.min.js @@ -1,3 +1,3 @@ /*! This file is auto-generated */ this.wp=this.wp||{},this.wp.blocks=function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=460)}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.wp.i18n},11:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(38);var a=r(31),i=r(39);function o(e,t){return Object(n.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){a=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw i}}return r}}(e,t)||Object(a.a)(e,t)||Object(i.a)()}},115:function(e,t){e.exports=window.wp.autop},12:function(e,t){e.exports=window.wp.compose},129:function(e,t){e.exports=window.wp.shortcode},147:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(38),a=r(37),i=r(31),o=r(39);function s(e){return Object(n.a)(e)||Object(a.a)(e)||Object(i.a)(e)||Object(o.a)()}},15:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(24);var a=r(37),i=r(31);function o(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||Object(a.a)(e)||Object(i.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2:function(e,t){e.exports=window.lodash},204:function(e,t,r){"use strict";var n,a=new Uint8Array(16);function i(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(a)}var o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var s=function(e){return"string"==typeof e&&o.test(e)},c=[],u=0;u<256;++u)c.push((u+256).toString(16).substr(1));var l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase();if(!s(r))throw TypeError("Stringified UUID is invalid");return r};t.a=function(e,t,r){var n=(e=e||{}).random||(e.rng||i)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var a=0;a<16;++a)t[r+a]=n[a];return t}return l(n)}},215:function(e,t,r){"use strict";var n=r(0),a=r(7),i=Object(n.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(a.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));t.a=i},24:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex:
foo
",type:"boolean"},emoji:{defaultValue:!1,description:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,description:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `` and ``",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including ``, `` and `` tags",type:"boolean"},metadata:{defaultValue:!1,description:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,description:"Split adjacent blockquote blocks",type:"boolean"}};if(!1===e)return JSON.parse(JSON.stringify(t));var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n].defaultValue);return r}var i={},o={},s={},c=a(!0),u="vanilla",l={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:a(!0),allOn:function(){"use strict";var e=a(!0),t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=!0);return t}()};function d(e,t){"use strict";var r=t?"Error in "+t+" extension->":"Error in unnamed extension",n={valid:!0,error:""};i.helper.isArray(e)||(e=[e]);for(var a=0;a").replace(/&/g,"&")};var p=function(e,t,r,n){"use strict";var a,i,o,s,c,u=n||"",l=u.indexOf("g")>-1,d=new RegExp(t+"|"+r,"g"+u.replace(/g/g,"")),f=new RegExp(t,u.replace(/g/g,"")),p=[];do{for(a=0;o=d.exec(e);)if(f.test(o[0]))a++||(s=(i=d.lastIndex)-o[0].length);else if(a&&!--a){c=o.index+o[0].length;var h={left:{start:s,end:i},match:{start:i,end:o.index},right:{start:o.index,end:c},wholeMatch:{start:s,end:c}};if(p.push(h),!l)return p}}while(a&&(d.lastIndex=i));return p};i.helper.matchRecursiveRegExp=function(e,t,r,n){"use strict";for(var a=p(e,t,r,n),i=[],o=0;o0){var l=[];0!==s[0].wholeMatch.start&&l.push(e.slice(0,s[0].wholeMatch.start));for(var d=0;d=0?n+(r||0):n},i.helper.splitAtIndex=function(e,t){"use strict";if(!i.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]},i.helper.encodeEmailAddress=function(e){"use strict";var t=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];return e=e.replace(/./g,(function(e){if("@"===e)e=t[Math.floor(2*Math.random())](e);else{var r=Math.random();e=r>.9?t[2](e):r>.45?t[1](e):t[0](e)}return e}))},i.helper.padEnd=function(e,t,r){"use strict";return t>>=0,r=String(r||" "),e.length>t?String(e):((t-=e.length)>r.length&&(r+=r.repeat(t/r.length)),String(e)+r.slice(0,t))},"undefined"==typeof console&&(console={warn:function(e){"use strict";alert(e)},log:function(e){"use strict";alert(e)},error:function(e){"use strict";throw e}}),i.helper.regexes={asteriskDashAndColon:/([*_:~])/g},i.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️‍♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴‍♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱‍♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇‍♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷‍♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯‍♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁‍🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨‍👦",family_man_boy_boy:"👨‍👦‍👦",family_man_girl:"👨‍👧",family_man_girl_boy:"👨‍👧‍👦",family_man_girl_girl:"👨‍👧‍👧",family_man_man_boy:"👨‍👨‍👦",family_man_man_boy_boy:"👨‍👨‍👦‍👦",family_man_man_girl:"👨‍👨‍👧",family_man_man_girl_boy:"👨‍👨‍👧‍👦",family_man_man_girl_girl:"👨‍👨‍👧‍👧",family_man_woman_boy_boy:"👨‍👩‍👦‍👦",family_man_woman_girl:"👨‍👩‍👧",family_man_woman_girl_boy:"👨‍👩‍👧‍👦",family_man_woman_girl_girl:"👨‍👩‍👧‍👧",family_woman_boy:"👩‍👦",family_woman_boy_boy:"👩‍👦‍👦",family_woman_girl:"👩‍👧",family_woman_girl_boy:"👩‍👧‍👦",family_woman_girl_girl:"👩‍👧‍👧",family_woman_woman_boy:"👩‍👩‍👦",family_woman_woman_boy_boy:"👩‍👩‍👦‍👦",family_woman_woman_girl:"👩‍👩‍👧",family_woman_woman_girl_boy:"👩‍👩‍👧‍👦",family_woman_woman_girl_girl:"👩‍👩‍👧‍👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️‍♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍‍♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️‍♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂‍♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇‍♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨‍🎨",man_astronaut:"👨‍🚀",man_cartwheeling:"🤸‍♂️",man_cook:"👨‍🍳",man_dancing:"🕺",man_facepalming:"🤦‍♂️",man_factory_worker:"👨‍🏭",man_farmer:"👨‍🌾",man_firefighter:"👨‍🚒",man_health_worker:"👨‍⚕️",man_in_tuxedo:"🤵",man_judge:"👨‍⚖️",man_juggling:"🤹‍♂️",man_mechanic:"👨‍🔧",man_office_worker:"👨‍💼",man_pilot:"👨‍✈️",man_playing_handball:"🤾‍♂️",man_playing_water_polo:"🤽‍♂️",man_scientist:"👨‍🔬",man_shrugging:"🤷‍♂️",man_singer:"👨‍🎤",man_student:"👨‍🎓",man_teacher:"👨‍🏫",man_technologist:"👨‍💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆‍♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼‍♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵‍♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅‍♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆‍♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮‍♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎‍♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️‍🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋‍♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣‍♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃‍♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄‍♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊‍♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁‍♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶‍♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️‍♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩‍🎨",woman_astronaut:"👩‍🚀",woman_cartwheeling:"🤸‍♀️",woman_cook:"👩‍🍳",woman_facepalming:"🤦‍♀️",woman_factory_worker:"👩‍🏭",woman_farmer:"👩‍🌾",woman_firefighter:"👩‍🚒",woman_health_worker:"👩‍⚕️",woman_judge:"👩‍⚖️",woman_juggling:"🤹‍♀️",woman_mechanic:"👩‍🔧",woman_office_worker:"👩‍💼",woman_pilot:"👩‍✈️",woman_playing_handball:"🤾‍♀️",woman_playing_water_polo:"🤽‍♀️",woman_scientist:"👩‍🔬",woman_shrugging:"🤷‍♀️",woman_singer:"👩‍🎤",woman_student:"👩‍🎓",woman_teacher:"👩‍🏫",woman_technologist:"👩‍💻",woman_with_turban:"👳‍♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼‍♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:':octocat:',showdown:"S"},i.Converter=function(e){"use strict";var t={},r=[],n=[],a={},o=u,f={parsed:{},raw:"",format:""};function p(e,t){if(t=t||null,i.helper.isString(e)){if(t=e=i.helper.stdExtName(e),i.extensions[e])return console.warn("DEPRECATION WARNING: "+e+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),void function(e,t){"function"==typeof e&&(e=e(new i.Converter));i.helper.isArray(e)||(e=[e]);var a=d(e,t);if(!a.valid)throw Error(a.error);for(var o=0;o[ \t]+¨NBSP;<"),!t){if(!window||!window.document)throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");t=window.document}var r=t.createElement("div");r.innerHTML=e;var n={preList:function(e){for(var t=e.querySelectorAll("pre"),r=[],n=0;n'}else r.push(t[n].innerHTML),t[n].innerHTML="",t[n].setAttribute("prenum",n.toString());return r}(r)};!function e(t){for(var r=0;r? ?(['"].*['"])?\)$/m)>-1)o="";else if(!o){if(a||(a=n.toLowerCase().replace(/ ?\n/g," ")),o="#"+a,i.helper.isUndefined(r.gUrls[a]))return e;o=r.gUrls[a],i.helper.isUndefined(r.gTitles[a])||(u=r.gTitles[a])}var l='"};return e=(e=(e=(e=(e=r.converter._dispatch("anchors.before",e,t,r)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]??(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,n)).replace(/\[([^\[\]]+)]()()()()()/g,n),t.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,(function(e,r,n,a,o){if("\\"===n)return r+a;if(!i.helper.isString(t.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var s=t.ghMentionsLink.replace(/\{u}/g,o),c="";return t.openLinksInNewWindow&&(c=' rel="noopener noreferrer" target="¨E95Eblank"'),r+'"+a+""}))),e=r.converter._dispatch("anchors.after",e,t,r)}));var h=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,g=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,b=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,m=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,_=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,v=function(e){"use strict";return function(t,r,n,a,o,s,c){var u=n=n.replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback),l="",d="",f=r||"",p=c||"";return/^www\./i.test(n)&&(n=n.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&s&&(l=s),e.openLinksInNewWindow&&(d=' rel="noopener noreferrer" target="¨E95Eblank"'),f+'"+u+""+l+p}},y=function(e,t){"use strict";return function(r,n,a){var o="mailto:";return n=n||"",a=i.subParser("unescapeSpecialChars")(a,e,t),e.encodeEmails?(o=i.helper.encodeEmailAddress(o+a),a=i.helper.encodeEmailAddress(a)):o+=a,n+''+a+""}};i.subParser("autoLinks",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("autoLinks.before",e,t,r)).replace(b,v(t))).replace(_,y(t,r)),e=r.converter._dispatch("autoLinks.after",e,t,r)})),i.subParser("simplifiedAutoLinks",(function(e,t,r){"use strict";return t.simplifiedAutoLink?(e=r.converter._dispatch("simplifiedAutoLinks.before",e,t,r),e=(e=t.excludeTrailingPunctuationFromURLs?e.replace(g,v(t)):e.replace(h,v(t))).replace(m,y(t,r)),e=r.converter._dispatch("simplifiedAutoLinks.after",e,t,r)):e})),i.subParser("blockGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("blockGamut.before",e,t,r),e=i.subParser("blockQuotes")(e,t,r),e=i.subParser("headers")(e,t,r),e=i.subParser("horizontalRule")(e,t,r),e=i.subParser("lists")(e,t,r),e=i.subParser("codeBlocks")(e,t,r),e=i.subParser("tables")(e,t,r),e=i.subParser("hashHTMLBlocks")(e,t,r),e=i.subParser("paragraphs")(e,t,r),e=r.converter._dispatch("blockGamut.after",e,t,r)})),i.subParser("blockQuotes",(function(e,t,r){"use strict";e=r.converter._dispatch("blockQuotes.before",e,t,r),e+="\n\n";var n=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return t.splitAdjacentBlockquotes&&(n=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=e.replace(n,(function(e){return e=(e=(e=e.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),e=i.subParser("githubCodeBlocks")(e,t,r),e=(e=(e=i.subParser("blockGamut")(e,t,r)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*
[^\r]+?<\/pre>)/gm,(function(e,t){var r=t;return r=(r=r.replace(/^  /gm,"¨0")).replace(/¨0/g,"")})),i.subParser("hashBlock")("
\n"+e+"\n
",t,r)})),e=r.converter._dispatch("blockQuotes.after",e,t,r)})),i.subParser("codeBlocks",(function(e,t,r){"use strict";e=r.converter._dispatch("codeBlocks.before",e,t,r);return e=(e=(e+="¨0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g,(function(e,n,a){var o=n,s=a,c="\n";return o=i.subParser("outdent")(o,t,r),o=i.subParser("encodeCode")(o,t,r),o=(o=(o=i.subParser("detab")(o,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""),t.omitExtraWLInCodeBlocks&&(c=""),o="
"+o+c+"
",i.subParser("hashBlock")(o,t,r)+s}))).replace(/¨0/,""),e=r.converter._dispatch("codeBlocks.after",e,t,r)})),i.subParser("codeSpans",(function(e,t,r){"use strict";return void 0===(e=r.converter._dispatch("codeSpans.before",e,t,r))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,(function(e,n,a,o){var s=o;return s=(s=s.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),s=n+""+(s=i.subParser("encodeCode")(s,t,r))+"",s=i.subParser("hashHTMLSpans")(s,t,r)})),e=r.converter._dispatch("codeSpans.after",e,t,r)})),i.subParser("completeHTMLDocument",(function(e,t,r){"use strict";if(!t.completeHTMLDocument)return e;e=r.converter._dispatch("completeHTMLDocument.before",e,t,r);var n="html",a="\n",i="",o='\n',s="",c="";for(var u in void 0!==r.metadata.parsed.doctype&&(a="\n","html"!==(n=r.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==n||(o='')),r.metadata.parsed)if(r.metadata.parsed.hasOwnProperty(u))switch(u.toLowerCase()){case"doctype":break;case"title":i=""+r.metadata.parsed.title+"\n";break;case"charset":o="html"===n||"html5"===n?'\n':'\n';break;case"language":case"lang":s=' lang="'+r.metadata.parsed[u]+'"',c+='\n';break;default:c+='\n'}return e=a+"\n\n"+i+o+c+"\n\n"+e.trim()+"\n\n",e=r.converter._dispatch("completeHTMLDocument.after",e,t,r)})),i.subParser("detab",(function(e,t,r){"use strict";return e=(e=(e=(e=(e=(e=r.converter._dispatch("detab.before",e,t,r)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,(function(e,t){for(var r=t,n=4-r.length%4,a=0;a/g,">"),e=r.converter._dispatch("encodeAmpsAndAngles.after",e,t,r)})),i.subParser("encodeBackslashEscapes",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("encodeBackslashEscapes.before",e,t,r)).replace(/\\(\\)/g,i.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,i.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeBackslashEscapes.after",e,t,r)})),i.subParser("encodeCode",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("encodeCode.before",e,t,r)).replace(/&/g,"&").replace(//g,">").replace(/([*_{}\[\]\\=~-])/g,i.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeCode.after",e,t,r)})),i.subParser("escapeSpecialCharsWithinTagAttributes",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,t,r)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,(function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,i.helper.escapeCharactersCallback)}))).replace(/-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,(function(e){return e.replace(/([\\`*_~=|])/g,i.helper.escapeCharactersCallback)})),e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,r)})),i.subParser("githubCodeBlocks",(function(e,t,r){"use strict";return t.ghCodeBlocks?(e=r.converter._dispatch("githubCodeBlocks.before",e,t,r),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,(function(e,n,a,o){var s=t.omitExtraWLInCodeBlocks?"":"\n";return o=i.subParser("encodeCode")(o,t,r),o="
"+(o=(o=(o=i.subParser("detab")(o,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+s+"
",o=i.subParser("hashBlock")(o,t,r),"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:o})-1)+"G\n\n"}))).replace(/¨0/,""),r.converter._dispatch("githubCodeBlocks.after",e,t,r)):e})),i.subParser("hashBlock",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("hashBlock.before",e,t,r)).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n",e=r.converter._dispatch("hashBlock.after",e,t,r)})),i.subParser("hashCodeTags",(function(e,t,r){"use strict";e=r.converter._dispatch("hashCodeTags.before",e,t,r);return e=i.helper.replaceRecursiveRegExp(e,(function(e,n,a,o){var s=a+i.subParser("encodeCode")(n,t,r)+o;return"¨C"+(r.gHtmlSpans.push(s)-1)+"C"}),"]*>","","gim"),e=r.converter._dispatch("hashCodeTags.after",e,t,r)})),i.subParser("hashElement",(function(e,t,r){"use strict";return function(e,t){var n=t;return n=(n=(n=n.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),n="\n\n¨K"+(r.gHtmlBlocks.push(n)-1)+"K\n\n"}})),i.subParser("hashHTMLBlocks",(function(e,t,r){"use strict";e=r.converter._dispatch("hashHTMLBlocks.before",e,t,r);var n=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],a=function(e,t,n,a){var i=e;return-1!==n.search(/\bmarkdown\b/)&&(i=n+r.converter.makeHtml(t)+a),"\n\n¨K"+(r.gHtmlBlocks.push(i)-1)+"K\n\n"};t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,(function(e,t){return"<"+t+">"})));for(var o=0;o]*>)","im"),u="<"+n[o]+"\\b[^>]*>",l="";-1!==(s=i.helper.regexIndexOf(e,c));){var d=i.helper.splitAtIndex(e,s),f=i.helper.replaceRecursiveRegExp(d[1],a,u,l,"im");if(f===d[1])break;e=d[0].concat(f)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,i.subParser("hashElement")(e,t,r)),e=(e=i.helper.replaceRecursiveRegExp(e,(function(e){return"\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n"}),"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,i.subParser("hashElement")(e,t,r)),e=r.converter._dispatch("hashHTMLBlocks.after",e,t,r)})),i.subParser("hashHTMLSpans",(function(e,t,r){"use strict";function n(e){return"¨C"+(r.gHtmlSpans.push(e)-1)+"C"}return e=(e=(e=(e=(e=r.converter._dispatch("hashHTMLSpans.before",e,t,r)).replace(/<[^>]+?\/>/gi,(function(e){return n(e)}))).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,(function(e){return n(e)}))).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,(function(e){return n(e)}))).replace(/<[^>]+?>/gi,(function(e){return n(e)})),e=r.converter._dispatch("hashHTMLSpans.after",e,t,r)})),i.subParser("unhashHTMLSpans",(function(e,t,r){"use strict";e=r.converter._dispatch("unhashHTMLSpans.before",e,t,r);for(var n=0;n]*>\\s*]*>","^ {0,3}\\s*
","gim"),e=r.converter._dispatch("hashPreCodeTags.after",e,t,r)})),i.subParser("headers",(function(e,t,r){"use strict";e=r.converter._dispatch("headers.before",e,t,r);var n=isNaN(parseInt(t.headerLevelStart))?1:parseInt(t.headerLevelStart),a=t.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,o=t.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=(e=e.replace(a,(function(e,a){var o=i.subParser("spanGamut")(a,t,r),s=t.noHeaderId?"":' id="'+c(a)+'"',u=""+o+"";return i.subParser("hashBlock")(u,t,r)}))).replace(o,(function(e,a){var o=i.subParser("spanGamut")(a,t,r),s=t.noHeaderId?"":' id="'+c(a)+'"',u=n+1,l=""+o+"";return i.subParser("hashBlock")(l,t,r)}));var s=t.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;function c(e){var n,a;if(t.customizedHeaderId){var o=e.match(/\{([^{]+?)}\s*$/);o&&o[1]&&(e=o[1])}return n=e,a=i.helper.isString(t.prefixHeaderId)?t.prefixHeaderId:!0===t.prefixHeaderId?"section-":"",t.rawPrefixHeaderId||(n=a+n),n=t.ghCompatibleHeaderId?n.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():t.rawHeaderId?n.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():n.replace(/[^\w]/g,"").toLowerCase(),t.rawPrefixHeaderId&&(n=a+n),r.hashLinkCounts[n]?n=n+"-"+r.hashLinkCounts[n]++:r.hashLinkCounts[n]=1,n}return e=e.replace(s,(function(e,a,o){var s=o;t.customizedHeaderId&&(s=o.replace(/\s?\{([^{]+?)}\s*$/,""));var u=i.subParser("spanGamut")(s,t,r),l=t.noHeaderId?"":' id="'+c(o)+'"',d=n-1+a.length,f=""+u+"";return i.subParser("hashBlock")(f,t,r)})),e=r.converter._dispatch("headers.after",e,t,r)})),i.subParser("horizontalRule",(function(e,t,r){"use strict";e=r.converter._dispatch("horizontalRule.before",e,t,r);var n=i.subParser("hashBlock")("
",t,r);return e=(e=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,n),e=r.converter._dispatch("horizontalRule.after",e,t,r)})),i.subParser("images",(function(e,t,r){"use strict";function n(e,t,n,a,o,s,c,u){var l=r.gUrls,d=r.gTitles,f=r.gDimensions;if(n=n.toLowerCase(),u||(u=""),e.search(/\(? ?(['"].*['"])?\)$/m)>-1)a="";else if(""===a||null===a){if(""!==n&&null!==n||(n=t.toLowerCase().replace(/ ?\n/g," ")),a="#"+n,i.helper.isUndefined(l[n]))return e;a=l[n],i.helper.isUndefined(d[n])||(u=d[n]),i.helper.isUndefined(f[n])||(o=f[n].width,s=f[n].height)}t=t.replace(/"/g,""").replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback);var p=''+t+'"}return e=(e=(e=(e=(e=(e=r.converter._dispatch("images.before",e,t,r)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,(function(e,t,r,a,i,o,s,c){return n(e,t,r,a=a.replace(/\s/g,""),i,o,s,c)}))).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,n)).replace(/!\[([^\[\]]+)]()()()()()/g,n),e=r.converter._dispatch("images.after",e,t,r)})),i.subParser("italicsAndBold",(function(e,t,r){"use strict";function n(e,t,r){return t+e+r}return e=r.converter._dispatch("italicsAndBold.before",e,t,r),e=t.literalMidWordUnderscores?(e=(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return n(t,"","")}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return n(t,"","")}))).replace(/\b_(\S[\s\S]*?)_\b/g,(function(e,t){return n(t,"","")})):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/_([^\s_][\s\S]*?)_/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e})),e=t.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"","")}))).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"","")}))).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"","")})):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/\*\*(\S[\s\S]*?)\*\*/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/\*([^\s*][\s\S]*?)\*/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e})),e=r.converter._dispatch("italicsAndBold.after",e,t,r)})),i.subParser("lists",(function(e,t,r){"use strict";function n(e,n){r.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var a=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,o=/\n[ \t]*\n(?!¨0)/.test(e+="¨0");return t.disableForced4SpacesIndentedSublists&&(a=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=(e=e.replace(a,(function(e,n,a,s,c,u,l){l=l&&""!==l.trim();var d=i.subParser("outdent")(c,t,r),f="";return u&&t.tasklists&&(f=' class="task-list-item" style="list-style-type: none;"',d=d.replace(/^[ \t]*\[(x|X| )?]/m,(function(){var e='-1?(d=i.subParser("githubCodeBlocks")(d,t,r),d=i.subParser("blockGamut")(d,t,r)):(d=(d=i.subParser("lists")(d,t,r)).replace(/\n$/,""),d=(d=i.subParser("hashHTMLBlocks")(d,t,r)).replace(/\n\n+/g,"\n\n"),d=o?i.subParser("paragraphs")(d,t,r):i.subParser("spanGamut")(d,t,r)),d=""+(d=d.replace("¨A",""))+"\n"}))).replace(/¨0/g,""),r.gListLevel--,n&&(e=e.replace(/\s+$/,"")),e}function a(e,t){if("ol"===t){var r=e.match(/^ *(\d+)\./);if(r&&"1"!==r[1])return' start="'+r[1]+'"'}return""}function o(e,r,i){var o=t.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,s=t.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,c="ul"===r?o:s,u="";if(-1!==e.search(c))!function t(l){var d=l.search(c),f=a(e,r);-1!==d?(u+="\n\n<"+r+f+">\n"+n(l.slice(0,d),!!i)+"\n",c="ul"===(r="ul"===r?"ol":"ul")?o:s,t(l.slice(d))):u+="\n\n<"+r+f+">\n"+n(l,!!i)+"\n"}(e);else{var l=a(e,r);u="\n\n<"+r+l+">\n"+n(e,!!i)+"\n"}return u}return e=r.converter._dispatch("lists.before",e,t,r),e+="¨0",e=(e=r.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,r){return o(t,r.search(/[*+-]/g)>-1?"ul":"ol",!0)})):e.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,r,n){return o(r,n.search(/[*+-]/g)>-1?"ul":"ol",!1)}))).replace(/¨0/,""),e=r.converter._dispatch("lists.after",e,t,r)})),i.subParser("metadata",(function(e,t,r){"use strict";if(!t.metadata)return e;function n(e){r.metadata.raw=e,(e=(e=e.replace(/&/g,"&").replace(/"/g,""")).replace(/\n {4}/g," ")).replace(/^([\S ]+): +([\s\S]+?)$/gm,(function(e,t,n){return r.metadata.parsed[t]=n,""}))}return e=(e=(e=(e=r.converter._dispatch("metadata.before",e,t,r)).replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,(function(e,t,r){return n(r),"¨M"}))).replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,(function(e,t,a){return t&&(r.metadata.format=t),n(a),"¨M"}))).replace(/¨M/g,""),e=r.converter._dispatch("metadata.after",e,t,r)})),i.subParser("outdent",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("outdent.before",e,t,r)).replace(/^(\t|[ ]{1,4})/gm,"¨0")).replace(/¨0/g,""),e=r.converter._dispatch("outdent.after",e,t,r)})),i.subParser("paragraphs",(function(e,t,r){"use strict";for(var n=(e=(e=(e=r.converter._dispatch("paragraphs.before",e,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),a=[],o=n.length,s=0;s=0?a.push(c):c.search(/\S/)>=0&&(c=(c=i.subParser("spanGamut")(c,t,r)).replace(/^([ \t]*)/g,"

"),c+="

",a.push(c))}for(o=a.length,s=0;s]*>\s*]*>/.test(l)&&(d=!0)}a[s]=l}return e=(e=(e=a.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),r.converter._dispatch("paragraphs.after",e,t,r)})),i.subParser("runExtension",(function(e,t,r,n){"use strict";if(e.filter)t=e.filter(t,n.converter,r);else if(e.regex){var a=e.regex;a instanceof RegExp||(a=new RegExp(a,"g")),t=t.replace(a,e.replace)}return t})),i.subParser("spanGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("spanGamut.before",e,t,r),e=i.subParser("codeSpans")(e,t,r),e=i.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,r),e=i.subParser("encodeBackslashEscapes")(e,t,r),e=i.subParser("images")(e,t,r),e=i.subParser("anchors")(e,t,r),e=i.subParser("autoLinks")(e,t,r),e=i.subParser("simplifiedAutoLinks")(e,t,r),e=i.subParser("emoji")(e,t,r),e=i.subParser("underline")(e,t,r),e=i.subParser("italicsAndBold")(e,t,r),e=i.subParser("strikethrough")(e,t,r),e=i.subParser("ellipsis")(e,t,r),e=i.subParser("hashHTMLSpans")(e,t,r),e=i.subParser("encodeAmpsAndAngles")(e,t,r),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"
\n")):e=e.replace(/ +\n/g,"
\n"),e=r.converter._dispatch("spanGamut.after",e,t,r)})),i.subParser("strikethrough",(function(e,t,r){"use strict";return t.strikethrough&&(e=(e=r.converter._dispatch("strikethrough.before",e,t,r)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,(function(e,n){return function(e){return t.simplifiedAutoLink&&(e=i.subParser("simplifiedAutoLinks")(e,t,r)),""+e+""}(n)})),e=r.converter._dispatch("strikethrough.after",e,t,r)),e})),i.subParser("stripLinkDefinitions",(function(e,t,r){"use strict";var n=function(e,n,a,o,s,c,u){return n=n.toLowerCase(),a.match(/^data:.+?\/.+?;base64,/)?r.gUrls[n]=a.replace(/\s/g,""):r.gUrls[n]=i.subParser("encodeAmpsAndAngles")(a,t,r),c?c+u:(u&&(r.gTitles[n]=u.replace(/"|'/g,""")),t.parseImgDimensions&&o&&s&&(r.gDimensions[n]={width:o,height:s}),"")};return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,n)).replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,n)).replace(/¨0/,"")})),i.subParser("tables",(function(e,t,r){"use strict";if(!t.tables)return e;function n(e,n){return""+i.subParser("spanGamut")(e,t,r)+"\n"}function a(e){var a,o=e.split("\n");for(a=0;a"+(c=i.subParser("spanGamut")(c,t,r))+"\n"));for(a=0;a\n\n\n",a=0;a\n";for(var i=0;i\n"}return r+="\n\n"}(h,b)}return e=(e=(e=(e=r.converter._dispatch("tables.before",e,t,r)).replace(/\\(\|)/g,i.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,a)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,a),e=r.converter._dispatch("tables.after",e,t,r)})),i.subParser("underline",(function(e,t,r){"use strict";return t.underline?(e=r.converter._dispatch("underline.before",e,t,r),e=(e=t.literalMidWordUnderscores?(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return""+t+""}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return""+t+""})):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?""+t+"":e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?""+t+"":e}))).replace(/(_)/g,i.helper.escapeCharactersCallback),e=r.converter._dispatch("underline.after",e,t,r)):e})),i.subParser("unescapeSpecialChars",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("unescapeSpecialChars.before",e,t,r)).replace(/¨E(\d+)E/g,(function(e,t){var r=parseInt(t);return String.fromCharCode(r)})),e=r.converter._dispatch("unescapeSpecialChars.after",e,t,r)})),i.subParser("makeMarkdown.blockquote",(function(e,t){"use strict";var r="";if(e.hasChildNodes())for(var n=e.childNodes,a=n.length,o=0;o ")})),i.subParser("makeMarkdown.codeBlock",(function(e,t){"use strict";var r=e.getAttribute("language"),n=e.getAttribute("precodenum");return"```"+r+"\n"+t.preList[n]+"\n```"})),i.subParser("makeMarkdown.codeSpan",(function(e){"use strict";return"`"+e.innerHTML+"`"})),i.subParser("makeMarkdown.emphasis",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="*";for(var n=e.childNodes,a=n.length,o=0;o",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t})),i.subParser("makeMarkdown.links",(function(e,t){"use strict";var r="";if(e.hasChildNodes()&&e.hasAttribute("href")){var n=e.childNodes,a=n.length;r="[";for(var o=0;o",e.hasAttribute("title")&&(r+=' "'+e.getAttribute("title")+'"'),r+=")"}return r})),i.subParser("makeMarkdown.list",(function(e,t,r){"use strict";var n="";if(!e.hasChildNodes())return"";for(var a=e.childNodes,o=a.length,s=e.getAttribute("start")||1,c=0;c"+t.preList[r]+""})),i.subParser("makeMarkdown.strikethrough",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="~~";for(var n=e.childNodes,a=n.length,o=0;otr>th"),c=e.querySelectorAll("tbody>tr");for(r=0;rh&&(h=g)}for(r=0;r/g,"\\$1>")).replace(/^#/gm,"\\#")).replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3")).replace(/^( {0,3}\d+)\./gm,"$1\\.")).replace(/^( {0,3})([+-])/gm,"$1\\$2")).replace(/]([\s]*)\(/g,"\\]$1\\(")).replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:")}));void 0===(n=function(){"use strict";return i}.call(t,r,t,e))||(e.exports=n)}).call(this)},31:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(24);function a(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},33:function(e,t){e.exports=window.wp.hooks},35:function(e,t){e.exports=window.wp.deprecated},37:function(e,t,r){"use strict";function n(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},38:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",(function(){return n}))},39:function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,"a",(function(){return n}))},4:function(e,t){e.exports=window.wp.data},41:function(e,t,r){"use strict";var n,a;function i(e){return[e]}function o(){var e={clear:function(){e.head=null}};return e}function s(e,t,r){var n;if(e.length!==t.length)return!1;for(n=r;n0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case"REMOVE_BLOCK_TYPES":return-1!==r.names.indexOf(t)?null:t;case e:return r.name||null}return t}}var h=p("SET_DEFAULT_BLOCK_NAME"),g=p("SET_FREEFORM_FALLBACK_BLOCK_NAME"),b=p("SET_UNREGISTERED_FALLBACK_BLOCK_NAME"),m=p("SET_GROUPING_BLOCK_NAME");var _=Object(i.combineReducers)({blockTypes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return d(d({},e),Object(c.keyBy)(Object(c.map)(t.blockTypes,(function(e){return Object(c.omit)(e,"styles ")})),"name"));case"REMOVE_BLOCK_TYPES":return Object(c.omit)(e,t.names)}return e},blockStyles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return d(d({},e),Object(c.mapValues)(Object(c.keyBy)(t.blockTypes,"name"),(function(t){return Object(c.uniqBy)([].concat(Object(o.a)(Object(c.get)(t,["styles"],[])),Object(o.a)(Object(c.get)(e,[t.name],[]))),(function(e){return e.name}))})));case"ADD_BLOCK_STYLES":return d(d({},e),{},Object(s.a)({},t.blockName,Object(c.uniqBy)([].concat(Object(o.a)(Object(c.get)(e,[t.blockName],[])),Object(o.a)(t.styles)),(function(e){return e.name}))));case"REMOVE_BLOCK_STYLES":return d(d({},e),{},Object(s.a)({},t.blockName,Object(c.filter)(Object(c.get)(e,[t.blockName],[]),(function(e){return-1===t.styleNames.indexOf(e.name)}))))}return e},blockVariations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return d(d({},e),Object(c.mapValues)(Object(c.keyBy)(t.blockTypes,"name"),(function(t){return Object(c.uniqBy)([].concat(Object(o.a)(Object(c.get)(t,["variations"],[])),Object(o.a)(Object(c.get)(e,[t.name],[]))),(function(e){return e.name}))})));case"ADD_BLOCK_VARIATIONS":return d(d({},e),{},Object(s.a)({},t.blockName,Object(c.uniqBy)([].concat(Object(o.a)(Object(c.get)(e,[t.blockName],[])),Object(o.a)(t.variations)),(function(e){return e.name}))));case"REMOVE_BLOCK_VARIATIONS":return d(d({},e),{},Object(s.a)({},t.blockName,Object(c.filter)(Object(c.get)(e,[t.blockName],[]),(function(e){return-1===t.variationNames.indexOf(e.name)}))))}return e},defaultBlockName:h,freeformFallbackBlockName:g,unregisteredFallbackBlockName:b,groupingBlockName:m,categories:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_CATEGORIES":return t.categories||[];case"UPDATE_CATEGORY":if(!t.category||Object(c.isEmpty)(t.category))return e;var r=Object(c.find)(e,["slug",t.slug]);if(r)return Object(c.map)(e,(function(e){return e.slug===t.slug?d(d({},e),t.category):e}))}return e},collections:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_COLLECTION":return d(d({},e),{},Object(s.a)({},t.namespace,{title:t.title,icon:t.icon}));case"REMOVE_BLOCK_COLLECTION":return Object(c.omit)(e,t.namespace)}return e}}),v=r(41);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(e){for(var t=1;t0},H=function(e,t){return Object(c.some)(D(e,t),(function(t){return M(e,t,"inserter",!0)}))};function V(e){return{type:"ADD_BLOCK_TYPES",blockTypes:Object(c.castArray)(e)}}function R(e){return{type:"REMOVE_BLOCK_TYPES",names:Object(c.castArray)(e)}}function F(e,t){return{type:"ADD_BLOCK_STYLES",styles:Object(c.castArray)(t),blockName:e}}function $(e,t){return{type:"REMOVE_BLOCK_STYLES",styleNames:Object(c.castArray)(t),blockName:e}}function q(e,t){return{type:"ADD_BLOCK_VARIATIONS",variations:Object(c.castArray)(t),blockName:e}}function U(e,t){return{type:"REMOVE_BLOCK_VARIATIONS",variationNames:Object(c.castArray)(t),blockName:e}}function G(e){return{type:"SET_DEFAULT_BLOCK_NAME",name:e}}function K(e){return{type:"SET_FREEFORM_FALLBACK_BLOCK_NAME",name:e}}function W(e){return{type:"SET_UNREGISTERED_FALLBACK_BLOCK_NAME",name:e}}function Q(e){return{type:"SET_GROUPING_BLOCK_NAME",name:e}}function Y(e){return{type:"SET_CATEGORIES",categories:e}}function Z(e,t){return{type:"UPDATE_CATEGORY",slug:e,category:t}}function X(e,t,r){return{type:"ADD_BLOCK_COLLECTION",namespace:e,title:t,icon:r}}function J(e){return{type:"REMOVE_BLOCK_COLLECTION",namespace:e}}var ee=Object(i.createReduxStore)("core/blocks",{reducer:_,selectors:n,actions:a});Object(i.register)(ee);var te=r(11),re=r(204),ne=r(33),ae=r(215),ie=r(60),oe=r.n(ie),se=r(0),ce=r(27);function ue(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function le(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"visual";if("core/template-part"===e.name&&t.slug){var n,a=Object(i.select)("core").getEntityRecord("postType","wp_template_part",t.theme+"//"+t.slug);if(a)return Object(c.startCase)((null===(n=a.title)||void 0===n?void 0:n.rendered)||a.slug)}var o=e.__experimentalLabel,s=e.title,u=o&&o(t,{context:r});return u?Object(ce.__unstableStripHTML)(u):s}function me(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"vertical",a=e.title,i=be(e,t,"accessibility"),o=void 0!==r,s=i&&i!==a;return o&&"vertical"===n?s?Object(u.sprintf)(Object(u.__)("%1$s Block. Row %2$d. %3$s"),a,r,i):Object(u.sprintf)(Object(u.__)("%1$s Block. Row %2$d"),a,r):o&&"horizontal"===n?s?Object(u.sprintf)(Object(u.__)("%1$s Block. Column %2$d. %3$s"),a,r,i):Object(u.sprintf)(Object(u.__)("%1$s Block. Column %2$d"),a,r):s?Object(u.sprintf)(Object(u.__)("%1$s Block. %2$s"),a,i):Object(u.sprintf)(Object(u.__)("%s Block"),a)}function _e(e,t){var r=ze(e);if(void 0===r)throw new Error("Block type '".concat(e,"' is not registered."));return Object(c.reduce)(r.attributes,(function(e,r,n){var a=t[n];return void 0!==a?e[n]=a:r.hasOwnProperty("default")&&(e[n]=r.default),-1!==["node","children"].indexOf(r.source)&&("string"==typeof e[n]?e[n]=[e[n]]:Array.isArray(e[n])||(e[n]=[])),e}),{})}var ve=["attributes","supports","save","migrate","isEligible","apiVersion"],ye={"--wp--style--color--link":{value:["color","link"],support:["color","link"]},background:{value:["color","gradient"],support:["color","gradients"]},backgroundColor:{value:["color","background"],support:["color"]},borderRadius:{value:["border","radius"],support:["__experimentalBorder","radius"]},color:{value:["color","text"],support:["color"]},fontFamily:{value:["typography","fontFamily"],support:["__experimentalFontFamily"]},fontSize:{value:["typography","fontSize"],support:["fontSize"]},fontStyle:{value:["typography","fontStyle"],support:["__experimentalFontStyle"]},fontWeight:{value:["typography","fontWeight"],support:["__experimentalFontWeight"]},lineHeight:{value:["typography","lineHeight"],support:["lineHeight"]},padding:{value:["spacing","padding"],support:["spacing","padding"],properties:["top","right","bottom","left"]},textDecoration:{value:["typography","textDecoration"],support:["__experimentalTextDecoration"]},textTransform:{value:["typography","textTransform"],support:["__experimentalTextTransform"]}};function we(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ke(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=_e(e,t),a=Object(re.a)();return{clientId:a,name:e,isValid:!0,attributes:n,innerBlocks:r}}function Je(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){var t=Array.isArray(e)?e:[e.name,e.attributes,e.innerBlocks],r=Object(te.a)(t,3),n=r[0],a=r[1],i=r[2];return Xe(n,a,Je(void 0===i?[]:i))}))}function et(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=Object(re.a)(),a=_e(e.name,Ze(Ze({},e.attributes),t));return Ze(Ze({},e),{},{clientId:n,attributes:a,innerBlocks:r||e.innerBlocks.map((function(e){return et(e)}))})}var tt=function(e,t,r){if(Object(c.isEmpty)(r))return!1;var n=r.length>1,a=Object(c.first)(r).name;if(!(rt(e)||!n||e.isMultiBlock))return!1;if(!rt(e)&&!Object(c.every)(r,{name:a}))return!1;if(!("block"===e.type))return!1;var i=Object(c.first)(r);if(!("from"!==t||-1!==e.blocks.indexOf(i.name)||rt(e)))return!1;if(!n&&nt(i.name)&&nt(e.blockName))return!1;if(Object(c.isFunction)(e.isMatch)){var o=e.isMultiBlock?r.map((function(e){return e.attributes})):i.attributes;if(!e.isMatch(o))return!1}return!0},rt=function(e){return e&&"block"===e.type&&Array.isArray(e.blocks)&&e.blocks.includes("*")},nt=function(e){return e===Ee()};function at(e){if(Object(c.isEmpty)(e))return[];var t=function(e){if(Object(c.isEmpty)(e))return[];var t=Ie();return Object(c.filter)(t,(function(t){return!!it(ot("from",t.name),(function(t){return tt(t,"from",e)}))}))}(e),r=function(e){if(Object(c.isEmpty)(e))return[];var t=ot("to",ze(Object(c.first)(e).name).name),r=Object(c.filter)(t,(function(t){return t&&tt(t,"to",e)}));return Object(c.flatMap)(r,(function(e){return e.blocks})).map((function(e){return ze(e)}))}(e);return Object(c.uniq)([].concat(Object(o.a)(t),Object(o.a)(r)))}function it(e,t){for(var r=Object(ne.createHooks)(),n=function(n){var a=e[n];t(a)&&r.addFilter("transform","transform/"+n.toString(),(function(e){return e||a}),a.priority)},a=0;a1,i=n[0],o=i.name,s=ot("from",t),u=it(ot("to",o),(function(e){return"block"===e.type&&(rt(e)||-1!==e.blocks.indexOf(t))&&(!a||e.isMultiBlock)}))||it(s,(function(e){return"block"===e.type&&(rt(e)||-1!==e.blocks.indexOf(o))&&(!a||e.isMultiBlock)}));if(!u)return null;if(r=u.isMultiBlock?Object(c.has)(u,"__experimentalConvert")?u.__experimentalConvert(n):u.transform(n.map((function(e){return e.attributes})),n.map((function(e){return e.innerBlocks}))):Object(c.has)(u,"__experimentalConvert")?u.__experimentalConvert(i):u.transform(i.attributes,i.innerBlocks),!Object(c.isObjectLike)(r))return null;if((r=Object(c.castArray)(r)).some((function(e){return!ze(e.name)})))return null;var l=Object(c.findIndex)(r,(function(e){return e.name===t}));return l<0?null:r.map((function(t,r){var n=Ze(Ze({},t),{},{clientId:r===l?i.clientId:t.clientId});return Object(ne.applyFilters)("blocks.switchToBlockType.transformedBlock",n,e)}))}var ct=function e(t,r){return Xe(t,r.attributes,Object(c.map)(r.innerBlocks,(function(t){return e(t.name,t)})))};function ut(e,t){for(var r,n=t.split(".");r=n.shift();){if(!(r in e))return;e=e[r]}return e}var lt,dt=function(){return lt||(lt=document.implementation.createHTMLDocument("")),lt};function ft(e,t){if(t){if("string"==typeof e){var r=dt();r.body.innerHTML=e,e=r.body}if("function"==typeof t)return t(e);if(Object===t.constructor)return Object.keys(t).reduce((function(r,n){return r[n]=ft(e,t[n]),r}),{})}}function pt(e,t){return 1===arguments.length&&(t=e,e=void 0),function(r){var n=r;if(e&&(n=r.querySelector(e)),n)return ut(n,t)}}var ht=r(115),gt=r(284),bt=r(147),mt=r(25),_t=r(26),vt=/^#[xX]([A-Fa-f0-9]+)$/,yt=/^#([0-9]+)$/,wt=/^([A-Za-z0-9]+)$/,kt=(function(){function e(e){this.named=e}e.prototype.parse=function(e){if(e){var t=e.match(vt);return t?String.fromCharCode(parseInt(t[1],16)):(t=e.match(yt))?String.fromCharCode(parseInt(t[1],10)):(t=e.match(wt))?this.named[t[1]]:void 0}}}(),/[\t\n\f ]/),Ot=/[A-Za-z]/,jt=/\r\n?/g;function Tt(e){return kt.test(e)}function Ct(e){return Ot.test(e)}var xt=function(){function e(e,t,r){void 0===r&&(r="precompile"),this.delegate=e,this.entityParser=t,this.mode=r,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var e=this.peek();if("<"!==e||this.isIgnoredEndTag()){if("precompile"===this.mode&&"\n"===e){var t=this.tagNameBuffer.toLowerCase();"pre"!==t&&"textarea"!==t||this.consume()}this.transitionTo("data"),this.delegate.beginData()}else this.transitionTo("tagOpen"),this.markTagStart(),this.consume()},data:function(){var e=this.peek(),t=this.tagNameBuffer;"<"!==e||this.isIgnoredEndTag()?"&"===e&&"script"!==t&&"style"!==t?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(e)):(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume())},tagOpen:function(){var e=this.consume();"!"===e?this.transitionTo("markupDeclarationOpen"):"/"===e?this.transitionTo("endTagOpen"):("@"===e||":"===e||Ct(e))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(e))},markupDeclarationOpen:function(){var e=this.consume();"-"===e&&"-"===this.peek()?(this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment()):"DOCTYPE"===e.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase()&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())},doctype:function(){Tt(this.consume())&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var e=this.consume();Tt(e)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase()))},doctypeName:function(){var e=this.consume();Tt(e)?this.transitionTo("afterDoctypeName"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase())},afterDoctypeName:function(){var e=this.consume();if(!Tt(e))if(">"===e)this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var t=e.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),r="PUBLIC"===t.toUpperCase(),n="SYSTEM"===t.toUpperCase();(r||n)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),r?this.transitionTo("afterDoctypePublicKeyword"):n&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var e=this.peek();Tt(e)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):'"'===e?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):"'"===e?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):">"===e&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var e=this.consume();'"'===e?this.transitionTo("afterDoctypePublicIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(e)},doctypePublicIdentifierSingleQuoted:function(){var e=this.consume();"'"===e?this.transitionTo("afterDoctypePublicIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(e)},afterDoctypePublicIdentifier:function(){var e=this.consume();Tt(e)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===e?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):"'"===e&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var e=this.consume();Tt(e)||(">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===e?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):"'"===e&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var e=this.consume();'"'===e?this.transitionTo("afterDoctypeSystemIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(e)},doctypeSystemIdentifierSingleQuoted:function(){var e=this.consume();"'"===e?this.transitionTo("afterDoctypeSystemIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(e)},afterDoctypeSystemIdentifier:function(){var e=this.consume();Tt(e)||">"===e&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var e=this.consume();"-"===e?this.transitionTo("commentStartDash"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(e),this.transitionTo("comment"))},commentStartDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var e=this.consume();"-"===e?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(e)},commentEndDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+e),this.transitionTo("comment"))},commentEnd:function(){var e=this.consume();">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+e),this.transitionTo("comment"))},tagName:function(){var e=this.consume();Tt(e)?this.transitionTo("beforeAttributeName"):"/"===e?this.transitionTo("selfClosingStartTag"):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(e)},endTagName:function(){var e=this.consume();Tt(e)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):"/"===e?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(e)},beforeAttributeName:function(){var e=this.peek();Tt(e)?this.consume():"/"===e?(this.transitionTo("selfClosingStartTag"),this.consume()):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):"="===e?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var e=this.peek();Tt(e)?(this.transitionTo("afterAttributeName"),this.consume()):"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.transitionTo("beforeAttributeValue"),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):'"'===e||"'"===e||"<"===e?(this.delegate.reportSyntaxError(e+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(e)):(this.consume(),this.delegate.appendToAttributeName(e))},afterAttributeName:function(){var e=this.peek();Tt(e)?this.consume():"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.consume(),this.transitionTo("beforeAttributeValue")):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e))},beforeAttributeValue:function(){var e=this.peek();Tt(e)?this.consume():'"'===e?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):"'"===e?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(e))},attributeValueDoubleQuoted:function(){var e=this.consume();'"'===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueSingleQuoted:function(){var e=this.consume();"'"===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueUnquoted:function(){var e=this.peek();Tt(e)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"&"===e?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):">"===e?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(e))},afterAttributeValueQuoted:function(){var e=this.peek();Tt(e)?(this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.consume(),this.transitionTo("selfClosingStartTag")):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var e=this.consume();("@"===e||":"===e||Ct(e))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(e))}},this.reset()}return e.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},e.prototype.transitionTo=function(e){this.state=e},e.prototype.tokenize=function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},e.prototype.tokenizePart=function(e){for(this.input+=function(e){return e.replace(jt,"\n")}(e);this.index"!==this.input.substring(this.index,this.index+8)||"style"===e&&""!==this.input.substring(this.index,this.index+8)||"script"===e&&"<\/script>"!==this.input.substring(this.index,this.index+9)},e}(),Pt=function(){function e(e,t){void 0===t&&(t={}),this.options=t,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new xt(this,e,t.mode),this._currentAttribute=void 0}return e.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},e.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var e=this.token;if(null===e)throw new Error("token was unexpectedly null");if(0===arguments.length)return e;for(var t=0;t1?r-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{},t=Ut.blockType,r=Ut.attributes;return Object(ne.applyFilters)("blocks.getSaveContent.extraProps",Ft({},e),t,r)}function Kt(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=ge(e),a=n.save;if(a.prototype instanceof se.Component){var i=new a({attributes:t});a=i.render.bind(i)}Ut.blockType=n,Ut.attributes=t;var o=a({attributes:t,innerBlocks:r}),s=n.apiVersion>1||Ve(n,"lightBlockWrapper",!1);if(Object(c.isObject)(o)&&Object(ne.hasFilter)("blocks.getSaveContent.extraProps")&&!s){var u=Object(ne.applyFilters)("blocks.getSaveContent.extraProps",Ft({},o.props),n,t);Nt()(u,o.props)||(o=Object(se.cloneElement)(o,u))}return o=Object(ne.applyFilters)("blocks.getSaveElement",o,n,t),Object(se.createElement)(Vt,{innerBlocks:r},o)}function Wt(e,t,r){var n=ge(e);return Object(se.renderToString)(Kt(n,t,r))}function Qt(e,t){return Object(c.reduce)(e.attributes,(function(e,r,n){var a=t[n];return void 0===a||void 0!==r.source||"default"in r&&r.default===a||(e[n]=a),e}),{})}function Yt(e){var t=e.originalContent;if(e.isValid||e.innerBlocks.length)try{t=Wt(e.name,e.attributes,e.innerBlocks)}catch(e){}return t}function Zt(e,t,r){var n=Object(c.isEmpty)(t)?"":function(e){return JSON.stringify(e).replace(/--/g,"\\u002d\\u002d").replace(//g,"\\u003e").replace(/&/g,"\\u0026").replace(/\\"/g,"\\u0022")}(t)+" ",a=Object(c.startsWith)(e,"core/")?e.slice(5):e;return r?"\x3c!-- wp:".concat(a," ").concat(n,"--\x3e\n")+r+"\n\x3c!-- /wp:".concat(a," --\x3e"):"\x3c!-- wp:".concat(a," ").concat(n,"/--\x3e")}function Xt(e){1===e.length&&fe(e[0])&&(e=[]);var t=Jt(e);return 1===e.length&&e[0].name===Ae()&&(t=Object(ht.removep)(t)),t}function Jt(e,t){return Object(c.castArray)(e).map((function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isInnerBlocks,n=void 0!==r&&r,a=e.name,i=Yt(e);if(a===Ne()||!n&&a===Ae())return i;var o=ze(a),s=Qt(o,e.attributes);return Zt(a,s,i)}(e,t)})).join("\n\n")}function er(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var tr=/[\t\n\r\v\f ]+/g,rr=/^[\t\n\r\v\f ]*$/,nr=/^url\s*\(['"\s]*(.*?)['"\s]*\)$/,ar=["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"],ir=[].concat(ar,["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),or=[c.identity,function(e){return dr(e).join(" ")}],sr=/^[\da-z]+$/i,cr=/^#\d+$/,ur=/^#x[\da-f]+$/i;var lr=function(){function e(){Object(mt.a)(this,e)}return Object(_t.a)(e,[{key:"parse",value:function(e){if(t=e,sr.test(t)||cr.test(t)||ur.test(t))return Object(St.decodeEntities)("&"+e+";");var t}}]),e}();function dr(e){return e.trim().split(tr)}function fr(e){return e.attributes.filter((function(e){var t=Object(te.a)(e,2),r=t[0];return t[1]||0===r.indexOf("data-")||Object(c.includes)(ir,r)}))}function pr(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:At(),n=e.chars,a=t.chars,i=0;i2&&void 0!==arguments[2]?arguments[2]:At();if(e.length!==t.length)return r.warning("Expected attributes %o, instead saw %o.",t,e),!1;for(var n={},a=0;a2&&void 0!==arguments[2]?arguments[2]:At();return e.tagName!==t.tagName&&e.tagName.toLowerCase()!==t.tagName.toLowerCase()?(r.warning("Expected tag name `%s`, instead saw `%s`.",t.tagName,e.tagName),!1):_r.apply(void 0,Object(o.a)([e,t].map(fr)).concat([r]))},Chars:pr,Comment:pr};function yr(e){for(var t;t=e.shift();){if("Chars"!==t.type)return t;if(!rr.test(t.chars))return t}}function wr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:At();try{return new Pt(new lr).tokenize(e)}catch(r){t.warning("Malformed HTML detected: %s",e)}return null}function kr(e,t){return!!e.selfClosing&&!(!t||t.tagName!==e.tagName||"EndTag"!==t.type)}function Or(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:At();if(e===t)return!0;var n,a,i=[e,t].map((function(e){return wr(e,r)})),o=Object(te.a)(i,2),s=o[0],c=o[1];if(!s||!c)return!1;for(;n=yr(s);){if(!(a=yr(c)))return r.warning("Expected end of content, instead saw %o.",n),!1;if(n.type!==a.type)return r.warning("Expected token of type `%s` (%o), instead saw `%s` (%o).",a.type,a,n.type,n),!1;var u=vr[n.type];if(u&&!u(n,a,r))return!1;kr(n,c[0])?yr(c):kr(a,s[0])&&yr(s)}return!(a=yr(c))||(r.warning("Expected %o, instead saw end of content.",a),!1)}function jr(e,t,r){var n,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Et(),i=ge(e);try{n=Wt(i,t)}catch(e){return a.error("Block validation failed because an error occurred while generating block content:\n\n%s",e.toString()),{isValid:!1,validationIssues:a.getItems()}}var o=Or(r,n,a);return o||a.error("Block validation failed for `%s` (%o).\n\nContent generated by `save` function:\n\n%s\n\nContent retrieved from post body:\n\n%s",i.name,i,n,r),{isValid:o,validationIssues:a.getItems()}}function Tr(e,t,r){return jr(e,t,r,At()).isValid}function Cr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function xr(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},n=ge(e),a=Object(c.mapValues)(n.attributes,(function(e,n){return Rr(n,e,t,r)}));return Object(ne.applyFilters)("blocks.getBlockAttributes",a,n,t,r)}function $r(e,t){var r=zr({},t);if("core/cover-image"===e&&(e="core/cover"),"core/text"!==e&&"core/cover-text"!==e||(e="core/paragraph"),e&&0===e.indexOf("core/social-link-")&&(r.service=e.substring(17),e="core/social-link"),e&&0===e.indexOf("core-embed/")){var n=e.substring(11),a={speaker:"speaker-deck",polldaddy:"crowdsignal"};r.providerNameSlug=n in a?a[n]:n,["amazon-kindle","wordpress"].includes(n)||(r.responsive=!0),e="core/embed"}return{name:e,attributes:r}}function qr(e){var t=e.blockName,r=e.attrs,n=e.innerBlocks,a=void 0===n?[]:n,i=e.innerHTML,s=e.innerContent,u=Ae(),l=Ne()||u;r=r||{},i=i.trim();var d=t||u,f=$r(d,r);d=f.name,r=f.attributes,d===u&&(i=Object(ht.autop)(i).trim());var p=ze(d);if(!p){var h={attrs:r,blockName:t,innerBlocks:a,innerContent:s},g=Ur(h,{isCommentDelimited:!1}),b=Ur(h,{isCommentDelimited:!0});d&&(i=b),r={originalName:t,originalContent:b,originalUndelimitedContent:g},p=ze(d=l)}a=(a=a.map(qr)).filter((function(e){return e}));var m=d===u||d===l;if(p&&(i||!m)){var _=Xe(d,Fr(p,i,r),a);if(!m){var v=jr(p,_.attributes,i),y=v.isValid,w=v.validationIssues;_.isValid=y,_.validationIssues=w}return _.originalContent=_.originalContent||i,(_=function(e,t){var r=ze(e.name),n=r.deprecated;if(!n||!n.length)return e;for(var a=e,i=a.originalContent,s=a.innerBlocks,u=0;u0&&(_.isValid?console.info("Block successfully updated for `%s` (%o).\n\nNew content generated by `save` function:\n\n%s\n\nContent retrieved from post body:\n\n%s",p.name,p,Wt(p,_.attributes),_.originalContent):_.validationIssues.forEach((function(e){var t=e.log,r=e.args;return t.apply(void 0,Object(o.a)(r))}))),_}}function Ur(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isCommentDelimited,n=void 0===r||r,a=e.blockName,i=e.attrs,o=void 0===i?{}:i,s=e.innerBlocks,c=void 0===s?[]:s,u=e.innerContent,l=void 0===u?[]:u,d=0,f=l.map((function(e){return null!==e?e:Ur(c[d++],t)})).join("\n").replace(/\n+/g,"\n").trim();return n?Zt(a,o,f):f}var Gr,Kr=(Gr=gt.parse,function(e){return Gr(e).reduce((function(e,t){var r=qr(t);return r&&e.push(r),e}),[])}),Wr=Kr;function Qr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Yr(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:e,r=e.ownerDocument.createElement("figure");t.parentNode.insertBefore(r,t),r.appendChild(e)}function vn(e,t,r){if(function(e,t){var r=e.nodeName.toLowerCase();return"figcaption"!==r&&!Object(ce.isTextContent)(e)&&Object(c.has)(t,["figure","children",r])}(e,r)){var n=e,a=e.parentNode;(function(e,t){var r=e.nodeName.toLowerCase();return Object(c.has)(t,["figure","children","a","children",r])})(e,r)&&"A"===a.nodeName&&1===a.childNodes.length&&(n=e.parentNode);var i=n.closest("p,div");i?e.classList?(e.classList.contains("alignright")||e.classList.contains("alignleft")||e.classList.contains("aligncenter")||!i.textContent.trim())&&_n(n,i):_n(n,i):"BODY"===n.parentNode.nodeName&&_n(n)}}var yn=r(129);function wn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function kn(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=ot("from"),i=it(a,(function(e){return-1===n.indexOf(e.blockName)&&"shortcode"===e.type&&Object(c.some)(Object(c.castArray)(e.tag),(function(e){return Object(yn.regexp)(e).test(t)}))}));if(!i)return[t];var s,u=Object(c.castArray)(i.tag),l=Object(c.find)(u,(function(e){return Object(yn.regexp)(e).test(t)})),d=r;if(s=Object(yn.next)(l,t,r)){r=s.index+s.content.length;var f=t.substr(0,s.index),p=t.substr(r);if(!(Object(c.includes)(s.shortcode.content||"","<")||/(\n|

)\s*$/.test(f)&&/^\s*(\n|<\/p>)/.test(p)))return e(t,r);if(i.isMatch&&!i.isMatch(s.shortcode.attrs))return e(t,d,[].concat(Object(o.a)(n),[i.blockName]));var h=Object(c.mapValues)(Object(c.pickBy)(i.attributes,(function(e){return e.shortcode})),(function(e){return e.shortcode(s.shortcode.attrs,s)})),g=Xe(i.blockName,Fr(kn(kn({},ze(i.blockName)),{},{attributes:i.attributes}),s.shortcode.content,h));return[].concat(Object(o.a)(e(f)),[g],Object(o.a)(e(p)))}return[t]},jn=r(285),Tn=new(r.n(jn).a.Converter)({noHeaderId:!0,tables:!0,literalMidWordUnderscores:!0,omitExtraWLInCodeBlocks:!0,simpleLineBreaks:!0,strikethrough:!0});function Cn(e){if("IFRAME"===e.nodeName){var t=e.ownerDocument.createTextNode(e.src);e.parentNode.replaceChild(t,e)}}function xn(e){e.id&&0===e.id.indexOf("docs-internal-guid-")&&Object(ce.unwrap)(e)}function Pn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Sn(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,n=document.implementation.createHTMLDocument("");return n.body.innerHTML=e,En(n.body.childNodes,t,n,r),n.body.innerHTML}function Nn(e,t){var r=e["".concat(t,"Sibling")];if(r&&Object(ce.isPhrasingContent)(r))return r;var n=e.parentNode;return n&&Object(ce.isPhrasingContent)(n)?Nn(n,t):void 0}function Dn(e){if(e.nodeType===e.TEXT_NODE){for(var t=e;t=t.parentNode;)if(t.nodeType===t.ELEMENT_NODE&&"PRE"===t.nodeName)return;var r,n=e.data.replace(/[ \r\n\t]+/g," ");if(" "===n[0]){var a=Nn(e,"previous");a&&"BR"!==a.nodeName&&" "!==a.textContent.slice(-1)||(n=n.slice(1))}if(" "===n[n.length-1]){var i=Nn(e,"next");(!i||"BR"===i.nodeName||i.nodeType===i.TEXT_NODE&&(" "===(r=i.textContent[0])||"\r"===r||"\n"===r||"\t"===r))&&(n=n.slice(0,-1))}n?e.data=n:e.parentNode.removeChild(e)}}function Ln(e){"BR"===e.nodeName&&(Nn(e,"next")||e.parentNode.removeChild(e))}function Mn(e){"P"===e.nodeName&&(e.hasChildNodes()||e.parentNode.removeChild(e))}function zn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function In(e){for(var t=1;t]+>/g,"")).replace(/^\s*]*>\s*]*>(?:\s*)?/i,"")).replace(/(?:\s*)?<\/body>\s*<\/html>\s*$/i,""),"INLINE"!==s){var d=n||i;if(-1!==d.indexOf("\x3c!-- wp:"))return Kr(d)}if(String.prototype.normalize&&(n=n.normalize()),!i||n&&!function(e){return!/<(?!br[ />])/i.test(e)}(n)||(t=i,n=Tn.makeHtml(function(e){return e.replace(/((?:^|\n)```)([^\n`]+)(```(?:$|\n))/,(function(e,t,r,n){return"".concat(t,"\n").concat(r,"\n").concat(n)}))}(t)),"AUTO"===s&&-1===i.indexOf("\n")&&0!==i.indexOf("

")&&0===n.indexOf("

")&&(s="INLINE")),"INLINE"===s)return Vn(n,l);var f=On(n),p=f.length>1;if("AUTO"===s&&!p&&function(e,t){var r=document.implementation.createHTMLDocument("");r.body.innerHTML=e;var n=Array.from(r.body.children);return!n.some(nn)&&rn(n,t)}(n,u))return Vn(n,l);var h=Object(ce.getPhrasingContentSchema)("paste"),g=An("paste"),b=Object(c.compact)(Object(c.flatMap)(f,(function(e){if("string"!=typeof e)return e;var t=[xn,un,on,dn,bn,an,en,tn,Cn,vn,mn],r=In(In({},g),h);return e=Bn(e,t,g),e=Bn(e=Jr(e=Object(ce.removeInvalidHTML)(e,r)),[Dn,Ln,Mn],g),Hn.log("Processed HTML piece:\n\n",e),Xr(e)})));if("AUTO"===s&&1===b.length&&Ve(b[0].name,"__unstablePasteTextInline",!1)){var m=i.trim();if(""!==m&&-1===m.indexOf("\n"))return Object(ce.removeInvalidHTML)(Yt(b[0]),h)}return b}var Fn=r(35),$n=r.n(Fn);function qn(e){return $n()("wp.blocks.getPhrasingContentSchema",{alternative:"wp.dom.getPhrasingContentSchema"}),Object(ce.getPhrasingContentSchema)(e)}function Un(e){var t=e.HTML,r=void 0===t?"":t;if(-1!==r.indexOf("\x3c!-- wp:"))return Kr(r);var n=On(r),a=An();return Object(c.compact)(Object(c.flatMap)(n,(function(e){return"string"!=typeof e?e:Xr(e=Jr(e=Bn(e,[dn,en,vn,mn],a)))})))}function Gn(){return Object(i.select)(ee).getCategories()}function Kn(e){Object(i.dispatch)(ee).setCategories(e)}function Wn(e,t){Object(i.dispatch)(ee).updateCategory(e,t)}function Qn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Yn(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length===t.length&&Object(c.every)(t,(function(t,r){var n=Object(te.a)(t,3),a=n[0],i=n[2],o=e[r];return a===o.name&&Zn(o.innerBlocks,i)}))}function Xn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t?Object(c.map)(t,(function(t,r){var n=Object(te.a)(t,3),a=n[0],i=n[1],o=n[2],s=e[r];if(s&&s.name===a){var u=Xn(s.innerBlocks,o);return Yn(Yn({},s),{},{innerBlocks:u})}var l=ze(a),d=function(e,t){return Object(c.mapValues)(t,(function(t,r){return f(e[r],t)}))},f=function(e,t){return r=e,"html"===Object(c.get)(r,["source"])&&Object(c.isArray)(t)?Object(se.renderToString)(t):function(e){return"query"===Object(c.get)(e,["source"])}(e)&&t?t.map((function(t){return d(e.query,t)})):t;var r},p=$r(a,d(Object(c.get)(l,["attributes"],{}),i));return Xe(p.name,p.attributes,Xn([],o))})):e}},5:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},60:function(e,t,r){var n;!function(a){var i=/^\s+/,o=/\s+$/,s=0,c=a.round,u=a.min,l=a.max,d=a.random;function f(e,t){if(t=t||{},(e=e||"")instanceof f)return e;if(!(this instanceof f))return new f(e,t);var r=function(e){var t={r:0,g:0,b:0},r=1,n=null,s=null,c=null,d=!1,f=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(o,"").toLowerCase();var t,r=!1;if(A[e])e=A[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=$.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=$.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=$.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=$.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=$.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=$.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=$.hex8.exec(e))return{r:L(t[1]),g:L(t[2]),b:L(t[3]),a:H(t[4]),format:r?"name":"hex8"};if(t=$.hex6.exec(e))return{r:L(t[1]),g:L(t[2]),b:L(t[3]),format:r?"name":"hex"};if(t=$.hex4.exec(e))return{r:L(t[1]+""+t[1]),g:L(t[2]+""+t[2]),b:L(t[3]+""+t[3]),a:H(t[4]+""+t[4]),format:r?"name":"hex8"};if(t=$.hex3.exec(e))return{r:L(t[1]+""+t[1]),g:L(t[2]+""+t[2]),b:L(t[3]+""+t[3]),format:r?"name":"hex"};return!1}(e));"object"==typeof e&&(q(e.r)&&q(e.g)&&q(e.b)?(p=e.r,h=e.g,g=e.b,t={r:255*N(p,255),g:255*N(h,255),b:255*N(g,255)},d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):q(e.h)&&q(e.s)&&q(e.v)?(n=z(e.s),s=z(e.v),t=function(e,t,r){e=6*N(e,360),t=N(t,100),r=N(r,100);var n=a.floor(e),i=e-n,o=r*(1-t),s=r*(1-i*t),c=r*(1-(1-i)*t),u=n%6;return{r:255*[r,s,o,o,c,r][u],g:255*[c,r,r,s,o,o][u],b:255*[o,o,c,r,r,s][u]}}(e.h,n,s),d=!0,f="hsv"):q(e.h)&&q(e.s)&&q(e.l)&&(n=z(e.s),c=z(e.l),t=function(e,t,r){var n,a,i;function o(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=N(e,360),t=N(t,100),r=N(r,100),0===t)n=a=i=r;else{var s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;n=o(c,s,e+1/3),a=o(c,s,e),i=o(c,s,e-1/3)}return{r:255*n,g:255*a,b:255*i}}(e.h,n,c),d=!0,f="hsl"),e.hasOwnProperty("a")&&(r=e.a));var p,h,g;return r=B(r),{ok:d,format:e.format||f,r:u(255,l(t.r,0)),g:u(255,l(t.g,0)),b:u(255,l(t.b,0)),a:r}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=c(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=r.ok,this._tc_id=s++}function p(e,t,r){e=N(e,255),t=N(t,255),r=N(r,255);var n,a,i=l(e,t,r),o=u(e,t,r),s=(i+o)/2;if(i==o)n=a=0;else{var c=i-o;switch(a=s>.5?c/(2-i-o):c/(i+o),i){case e:n=(t-r)/c+(t>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(f(n));return i}function S(e,t){t=t||6;for(var r=f(e).toHsv(),n=r.h,a=r.s,i=r.v,o=[],s=1/t;t--;)o.push(f({h:n,s:a,v:i})),i=(i+s)%1;return o}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:a.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:a.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:a.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=B(e),this._roundA=c(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=c(360*e.h),r=c(100*e.s),n=c(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=c(360*e.h),r=c(100*e.s),n=c(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return g(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,a){var i=[M(c(e).toString(16)),M(c(t).toString(16)),M(c(r).toString(16)),M(I(n))];if(a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*N(this._r,255))+"%",g:c(100*N(this._g,255))+"%",b:c(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*N(this._r,255))+"%, "+c(100*N(this._g,255))+"%, "+c(100*N(this._b,255))+"%)":"rgba("+c(100*N(this._r,255))+"%, "+c(100*N(this._g,255))+"%, "+c(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(E[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+b(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var a=f(e);r="#"+b(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(y,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(P,arguments)},complement:function(){return this._applyCombination(j,arguments)},monochromatic:function(){return this._applyCombination(S,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(T,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:z(e[n]));e=r}return f(e,t)},f.equals=function(e,t){return!(!e||!t)&&f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(e,t,r){r=0===r?0:r||50;var n=f(e).toRgb(),a=f(t).toRgb(),i=r/100;return f({r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a})},f.readability=function(e,t){var r=f(e),n=f(t);return(a.max(r.getLuminance(),n.getLuminance())+.05)/(a.min(r.getLuminance(),n.getLuminance())+.05)},f.isReadable=function(e,t,r){var n,a,i=f.readability(e,t);switch(a=!1,(n=function(e){var t,r;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==r&&"large"!==r&&(r="small");return{level:t,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":a=i>=4.5;break;case"AAlarge":a=i>=3;break;case"AAAsmall":a=i>=7}return a},f.mostReadable=function(e,t,r){var n,a,i,o,s=null,c=0;a=(r=r||{}).includeFallbackColors,i=r.level,o=r.size;for(var u=0;uc&&(c=n,s=f(t[u]));return f.isReadable(e,s,{level:i,size:o})||!a?s:(r.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],r))};var A=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},E=f.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(A);function B(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=u(t,l(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),a.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function D(e){return u(1,l(0,e))}function L(e){return parseInt(e,16)}function M(e){return 1==e.length?"0"+e:""+e}function z(e){return e<=1&&(e=100*e+"%"),e}function I(e){return a.round(255*parseFloat(e)).toString(16)}function H(e){return L(e)/255}var V,R,F,$=(R="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",F="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+R),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+R),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+R),hsva:new RegExp("hsva"+F),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function q(e){return!!$.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(n=function(){return f}.call(t,r,t,e))||(e.exports=n)}(Math)},63:function(e,t){e.exports=window.wp.isShallowEqual},64:function(e,t){e.exports=window.wp.htmlEntities},7:function(e,t){e.exports=window.wp.primitives},8:function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex:

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

"),c+="

",a.push(c))}for(o=a.length,s=0;s]*>\s*]*>/.test(l)&&(d=!0)}a[s]=l}return e=(e=(e=a.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),r.converter._dispatch("paragraphs.after",e,t,r)})),i.subParser("runExtension",(function(e,t,r,n){"use strict";if(e.filter)t=e.filter(t,n.converter,r);else if(e.regex){var a=e.regex;a instanceof RegExp||(a=new RegExp(a,"g")),t=t.replace(a,e.replace)}return t})),i.subParser("spanGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("spanGamut.before",e,t,r),e=i.subParser("codeSpans")(e,t,r),e=i.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,r),e=i.subParser("encodeBackslashEscapes")(e,t,r),e=i.subParser("images")(e,t,r),e=i.subParser("anchors")(e,t,r),e=i.subParser("autoLinks")(e,t,r),e=i.subParser("simplifiedAutoLinks")(e,t,r),e=i.subParser("emoji")(e,t,r),e=i.subParser("underline")(e,t,r),e=i.subParser("italicsAndBold")(e,t,r),e=i.subParser("strikethrough")(e,t,r),e=i.subParser("ellipsis")(e,t,r),e=i.subParser("hashHTMLSpans")(e,t,r),e=i.subParser("encodeAmpsAndAngles")(e,t,r),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"
\n")):e=e.replace(/ +\n/g,"
\n"),e=r.converter._dispatch("spanGamut.after",e,t,r)})),i.subParser("strikethrough",(function(e,t,r){"use strict";return t.strikethrough&&(e=(e=r.converter._dispatch("strikethrough.before",e,t,r)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,(function(e,n){return function(e){return t.simplifiedAutoLink&&(e=i.subParser("simplifiedAutoLinks")(e,t,r)),""+e+""}(n)})),e=r.converter._dispatch("strikethrough.after",e,t,r)),e})),i.subParser("stripLinkDefinitions",(function(e,t,r){"use strict";var n=function(e,n,a,o,s,c,u){return n=n.toLowerCase(),a.match(/^data:.+?\/.+?;base64,/)?r.gUrls[n]=a.replace(/\s/g,""):r.gUrls[n]=i.subParser("encodeAmpsAndAngles")(a,t,r),c?c+u:(u&&(r.gTitles[n]=u.replace(/"|'/g,""")),t.parseImgDimensions&&o&&s&&(r.gDimensions[n]={width:o,height:s}),"")};return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,n)).replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,n)).replace(/¨0/,"")})),i.subParser("tables",(function(e,t,r){"use strict";if(!t.tables)return e;function n(e,n){return""+i.subParser("spanGamut")(e,t,r)+"\n"}function a(e){var a,o=e.split("\n");for(a=0;a"+(c=i.subParser("spanGamut")(c,t,r))+"\n"));for(a=0;a\n\n\n",a=0;a\n";for(var i=0;i\n"}return r+="\n\n"}(h,b)}return e=(e=(e=(e=r.converter._dispatch("tables.before",e,t,r)).replace(/\\(\|)/g,i.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,a)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,a),e=r.converter._dispatch("tables.after",e,t,r)})),i.subParser("underline",(function(e,t,r){"use strict";return t.underline?(e=r.converter._dispatch("underline.before",e,t,r),e=(e=t.literalMidWordUnderscores?(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return""+t+""}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return""+t+""})):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?""+t+"":e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?""+t+"":e}))).replace(/(_)/g,i.helper.escapeCharactersCallback),e=r.converter._dispatch("underline.after",e,t,r)):e})),i.subParser("unescapeSpecialChars",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("unescapeSpecialChars.before",e,t,r)).replace(/¨E(\d+)E/g,(function(e,t){var r=parseInt(t);return String.fromCharCode(r)})),e=r.converter._dispatch("unescapeSpecialChars.after",e,t,r)})),i.subParser("makeMarkdown.blockquote",(function(e,t){"use strict";var r="";if(e.hasChildNodes())for(var n=e.childNodes,a=n.length,o=0;o ")})),i.subParser("makeMarkdown.codeBlock",(function(e,t){"use strict";var r=e.getAttribute("language"),n=e.getAttribute("precodenum");return"```"+r+"\n"+t.preList[n]+"\n```"})),i.subParser("makeMarkdown.codeSpan",(function(e){"use strict";return"`"+e.innerHTML+"`"})),i.subParser("makeMarkdown.emphasis",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="*";for(var n=e.childNodes,a=n.length,o=0;o",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t})),i.subParser("makeMarkdown.links",(function(e,t){"use strict";var r="";if(e.hasChildNodes()&&e.hasAttribute("href")){var n=e.childNodes,a=n.length;r="[";for(var o=0;o",e.hasAttribute("title")&&(r+=' "'+e.getAttribute("title")+'"'),r+=")"}return r})),i.subParser("makeMarkdown.list",(function(e,t,r){"use strict";var n="";if(!e.hasChildNodes())return"";for(var a=e.childNodes,o=a.length,s=e.getAttribute("start")||1,c=0;c"+t.preList[r]+""})),i.subParser("makeMarkdown.strikethrough",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="~~";for(var n=e.childNodes,a=n.length,o=0;otr>th"),c=e.querySelectorAll("tbody>tr");for(r=0;rh&&(h=g)}for(r=0;r/g,"\\$1>")).replace(/^#/gm,"\\#")).replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3")).replace(/^( {0,3}\d+)\./gm,"$1\\.")).replace(/^( {0,3})([+-])/gm,"$1\\$2")).replace(/]([\s]*)\(/g,"\\]$1\\(")).replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:")}));void 0===(n=function(){"use strict";return i}.call(t,r,t,e))||(e.exports=n)}).call(this)},31:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(24);function a(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},33:function(e,t){e.exports=window.wp.hooks},35:function(e,t){e.exports=window.wp.deprecated},37:function(e,t,r){"use strict";function n(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},38:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",(function(){return n}))},39:function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,"a",(function(){return n}))},4:function(e,t){e.exports=window.wp.data},41:function(e,t,r){"use strict";var n,a;function i(e){return[e]}function o(){var e={clear:function(){e.head=null}};return e}function s(e,t,r){var n;if(e.length!==t.length)return!1;for(n=r;n0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case"REMOVE_BLOCK_TYPES":return-1!==r.names.indexOf(t)?null:t;case e:return r.name||null}return t}}var h=p("SET_DEFAULT_BLOCK_NAME"),g=p("SET_FREEFORM_FALLBACK_BLOCK_NAME"),b=p("SET_UNREGISTERED_FALLBACK_BLOCK_NAME"),m=p("SET_GROUPING_BLOCK_NAME");var _=Object(i.combineReducers)({blockTypes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return d(d({},e),Object(c.keyBy)(Object(c.map)(t.blockTypes,(function(e){return Object(c.omit)(e,"styles ")})),"name"));case"REMOVE_BLOCK_TYPES":return Object(c.omit)(e,t.names)}return e},blockStyles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return d(d({},e),Object(c.mapValues)(Object(c.keyBy)(t.blockTypes,"name"),(function(t){return Object(c.uniqBy)([].concat(Object(o.a)(Object(c.get)(t,["styles"],[])),Object(o.a)(Object(c.get)(e,[t.name],[]))),(function(e){return e.name}))})));case"ADD_BLOCK_STYLES":return d(d({},e),{},Object(s.a)({},t.blockName,Object(c.uniqBy)([].concat(Object(o.a)(Object(c.get)(e,[t.blockName],[])),Object(o.a)(t.styles)),(function(e){return e.name}))));case"REMOVE_BLOCK_STYLES":return d(d({},e),{},Object(s.a)({},t.blockName,Object(c.filter)(Object(c.get)(e,[t.blockName],[]),(function(e){return-1===t.styleNames.indexOf(e.name)}))))}return e},blockVariations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return d(d({},e),Object(c.mapValues)(Object(c.keyBy)(t.blockTypes,"name"),(function(t){return Object(c.uniqBy)([].concat(Object(o.a)(Object(c.get)(t,["variations"],[])),Object(o.a)(Object(c.get)(e,[t.name],[]))),(function(e){return e.name}))})));case"ADD_BLOCK_VARIATIONS":return d(d({},e),{},Object(s.a)({},t.blockName,Object(c.uniqBy)([].concat(Object(o.a)(Object(c.get)(e,[t.blockName],[])),Object(o.a)(t.variations)),(function(e){return e.name}))));case"REMOVE_BLOCK_VARIATIONS":return d(d({},e),{},Object(s.a)({},t.blockName,Object(c.filter)(Object(c.get)(e,[t.blockName],[]),(function(e){return-1===t.variationNames.indexOf(e.name)}))))}return e},defaultBlockName:h,freeformFallbackBlockName:g,unregisteredFallbackBlockName:b,groupingBlockName:m,categories:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_CATEGORIES":return t.categories||[];case"UPDATE_CATEGORY":if(!t.category||Object(c.isEmpty)(t.category))return e;var r=Object(c.find)(e,["slug",t.slug]);if(r)return Object(c.map)(e,(function(e){return e.slug===t.slug?d(d({},e),t.category):e}))}return e},collections:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_COLLECTION":return d(d({},e),{},Object(s.a)({},t.namespace,{title:t.title,icon:t.icon}));case"REMOVE_BLOCK_COLLECTION":return Object(c.omit)(e,t.namespace)}return e}}),v=r(41);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(e){for(var t=1;t0},H=function(e,t){return Object(c.some)(D(e,t),(function(t){return M(e,t,"inserter",!0)}))};function V(e){return{type:"ADD_BLOCK_TYPES",blockTypes:Object(c.castArray)(e)}}function R(e){return{type:"REMOVE_BLOCK_TYPES",names:Object(c.castArray)(e)}}function F(e,t){return{type:"ADD_BLOCK_STYLES",styles:Object(c.castArray)(t),blockName:e}}function $(e,t){return{type:"REMOVE_BLOCK_STYLES",styleNames:Object(c.castArray)(t),blockName:e}}function q(e,t){return{type:"ADD_BLOCK_VARIATIONS",variations:Object(c.castArray)(t),blockName:e}}function U(e,t){return{type:"REMOVE_BLOCK_VARIATIONS",variationNames:Object(c.castArray)(t),blockName:e}}function G(e){return{type:"SET_DEFAULT_BLOCK_NAME",name:e}}function K(e){return{type:"SET_FREEFORM_FALLBACK_BLOCK_NAME",name:e}}function W(e){return{type:"SET_UNREGISTERED_FALLBACK_BLOCK_NAME",name:e}}function Q(e){return{type:"SET_GROUPING_BLOCK_NAME",name:e}}function Y(e){return{type:"SET_CATEGORIES",categories:e}}function Z(e,t){return{type:"UPDATE_CATEGORY",slug:e,category:t}}function X(e,t,r){return{type:"ADD_BLOCK_COLLECTION",namespace:e,title:t,icon:r}}function J(e){return{type:"REMOVE_BLOCK_COLLECTION",namespace:e}}var ee=Object(i.createReduxStore)("core/blocks",{reducer:_,selectors:n,actions:a});Object(i.register)(ee);var te=r(11),re=r(204),ne=r(33),ae=r(215),ie=r(60),oe=r.n(ie),se=r(0),ce=r(27);function ue(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function le(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"visual";if("core/template-part"===e.name&&t.slug){var n,a=Object(i.select)("core").getEntityRecord("postType","wp_template_part",t.theme+"//"+t.slug);if(a)return Object(c.startCase)((null===(n=a.title)||void 0===n?void 0:n.rendered)||a.slug)}var o=e.__experimentalLabel,s=e.title,u=o&&o(t,{context:r});return u?Object(ce.__unstableStripHTML)(u):s}function me(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"vertical",a=e.title,i=be(e,t,"accessibility"),o=void 0!==r,s=i&&i!==a;return o&&"vertical"===n?s?Object(u.sprintf)(Object(u.__)("%1$s Block. Row %2$d. %3$s"),a,r,i):Object(u.sprintf)(Object(u.__)("%1$s Block. Row %2$d"),a,r):o&&"horizontal"===n?s?Object(u.sprintf)(Object(u.__)("%1$s Block. Column %2$d. %3$s"),a,r,i):Object(u.sprintf)(Object(u.__)("%1$s Block. Column %2$d"),a,r):s?Object(u.sprintf)(Object(u.__)("%1$s Block. %2$s"),a,i):Object(u.sprintf)(Object(u.__)("%s Block"),a)}function _e(e,t){var r=ze(e);if(void 0===r)throw new Error("Block type '".concat(e,"' is not registered."));return Object(c.reduce)(r.attributes,(function(e,r,n){var a=t[n];return void 0!==a?e[n]=a:r.hasOwnProperty("default")&&(e[n]=r.default),-1!==["node","children"].indexOf(r.source)&&("string"==typeof e[n]?e[n]=[e[n]]:Array.isArray(e[n])||(e[n]=[])),e}),{})}var ve=["attributes","supports","save","migrate","isEligible","apiVersion"],ye={"--wp--style--color--link":{value:["color","link"],support:["color","link"]},background:{value:["color","gradient"],support:["color","gradients"]},backgroundColor:{value:["color","background"],support:["color"]},borderRadius:{value:["border","radius"],support:["__experimentalBorder","radius"]},color:{value:["color","text"],support:["color"]},fontFamily:{value:["typography","fontFamily"],support:["__experimentalFontFamily"]},fontSize:{value:["typography","fontSize"],support:["fontSize"]},fontStyle:{value:["typography","fontStyle"],support:["__experimentalFontStyle"]},fontWeight:{value:["typography","fontWeight"],support:["__experimentalFontWeight"]},lineHeight:{value:["typography","lineHeight"],support:["lineHeight"]},padding:{value:["spacing","padding"],support:["spacing","padding"],properties:["top","right","bottom","left"]},textDecoration:{value:["typography","textDecoration"],support:["__experimentalTextDecoration"]},textTransform:{value:["typography","textTransform"],support:["__experimentalTextTransform"]}};function we(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ke(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=_e(e,t),a=Object(re.a)();return{clientId:a,name:e,isValid:!0,attributes:n,innerBlocks:r}}function Je(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){var t=Array.isArray(e)?e:[e.name,e.attributes,e.innerBlocks],r=Object(te.a)(t,3),n=r[0],a=r[1],i=r[2];return Xe(n,a,Je(void 0===i?[]:i))}))}function et(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=Object(re.a)(),a=_e(e.name,Ze(Ze({},e.attributes),t));return Ze(Ze({},e),{},{clientId:n,attributes:a,innerBlocks:r||e.innerBlocks.map((function(e){return et(e)}))})}function tt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=Object(re.a)();return Ze(Ze({},e),{},{clientId:n,attributes:Ze(Ze({},e.attributes),t),innerBlocks:r||e.innerBlocks.map((function(e){return tt(e)}))})}var rt=function(e,t,r){if(Object(c.isEmpty)(r))return!1;var n=r.length>1,a=Object(c.first)(r).name;if(!(nt(e)||!n||e.isMultiBlock))return!1;if(!nt(e)&&!Object(c.every)(r,{name:a}))return!1;if(!("block"===e.type))return!1;var i=Object(c.first)(r);if(!("from"!==t||-1!==e.blocks.indexOf(i.name)||nt(e)))return!1;if(!n&&at(i.name)&&at(e.blockName))return!1;if(Object(c.isFunction)(e.isMatch)){var o=e.isMultiBlock?r.map((function(e){return e.attributes})):i.attributes;if(!e.isMatch(o))return!1}return!0},nt=function(e){return e&&"block"===e.type&&Array.isArray(e.blocks)&&e.blocks.includes("*")},at=function(e){return e===Ee()};function it(e){if(Object(c.isEmpty)(e))return[];var t=function(e){if(Object(c.isEmpty)(e))return[];var t=Ie();return Object(c.filter)(t,(function(t){return!!ot(st("from",t.name),(function(t){return rt(t,"from",e)}))}))}(e),r=function(e){if(Object(c.isEmpty)(e))return[];var t=st("to",ze(Object(c.first)(e).name).name),r=Object(c.filter)(t,(function(t){return t&&rt(t,"to",e)}));return Object(c.flatMap)(r,(function(e){return e.blocks})).map((function(e){return ze(e)}))}(e);return Object(c.uniq)([].concat(Object(o.a)(t),Object(o.a)(r)))}function ot(e,t){for(var r=Object(ne.createHooks)(),n=function(n){var a=e[n];t(a)&&r.addFilter("transform","transform/"+n.toString(),(function(e){return e||a}),a.priority)},a=0;a1,i=n[0],o=i.name,s=st("from",t),u=ot(st("to",o),(function(e){return"block"===e.type&&(nt(e)||-1!==e.blocks.indexOf(t))&&(!a||e.isMultiBlock)}))||ot(s,(function(e){return"block"===e.type&&(nt(e)||-1!==e.blocks.indexOf(o))&&(!a||e.isMultiBlock)}));if(!u)return null;if(r=u.isMultiBlock?Object(c.has)(u,"__experimentalConvert")?u.__experimentalConvert(n):u.transform(n.map((function(e){return e.attributes})),n.map((function(e){return e.innerBlocks}))):Object(c.has)(u,"__experimentalConvert")?u.__experimentalConvert(i):u.transform(i.attributes,i.innerBlocks),!Object(c.isObjectLike)(r))return null;if((r=Object(c.castArray)(r)).some((function(e){return!ze(e.name)})))return null;var l=Object(c.findIndex)(r,(function(e){return e.name===t}));return l<0?null:r.map((function(t,r){var n=Ze(Ze({},t),{},{clientId:r===l?i.clientId:t.clientId});return Object(ne.applyFilters)("blocks.switchToBlockType.transformedBlock",n,e)}))}var ut=function e(t,r){return Xe(t,r.attributes,Object(c.map)(r.innerBlocks,(function(t){return e(t.name,t)})))};function lt(e,t){for(var r,n=t.split(".");r=n.shift();){if(!(r in e))return;e=e[r]}return e}var dt,ft=function(){return dt||(dt=document.implementation.createHTMLDocument("")),dt};function pt(e,t){if(t){if("string"==typeof e){var r=ft();r.body.innerHTML=e,e=r.body}if("function"==typeof t)return t(e);if(Object===t.constructor)return Object.keys(t).reduce((function(r,n){return r[n]=pt(e,t[n]),r}),{})}}function ht(e,t){return 1===arguments.length&&(t=e,e=void 0),function(r){var n=r;if(e&&(n=r.querySelector(e)),n)return lt(n,t)}}var gt=r(115),bt=r(284),mt=r(147),_t=r(25),vt=r(26),yt=/^#[xX]([A-Fa-f0-9]+)$/,wt=/^#([0-9]+)$/,kt=/^([A-Za-z0-9]+)$/,Ot=(function(){function e(e){this.named=e}e.prototype.parse=function(e){if(e){var t=e.match(yt);return t?String.fromCharCode(parseInt(t[1],16)):(t=e.match(wt))?String.fromCharCode(parseInt(t[1],10)):(t=e.match(kt))?this.named[t[1]]:void 0}}}(),/[\t\n\f ]/),jt=/[A-Za-z]/,Tt=/\r\n?/g;function Ct(e){return Ot.test(e)}function xt(e){return jt.test(e)}var Pt=function(){function e(e,t,r){void 0===r&&(r="precompile"),this.delegate=e,this.entityParser=t,this.mode=r,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var e=this.peek();if("<"!==e||this.isIgnoredEndTag()){if("precompile"===this.mode&&"\n"===e){var t=this.tagNameBuffer.toLowerCase();"pre"!==t&&"textarea"!==t||this.consume()}this.transitionTo("data"),this.delegate.beginData()}else this.transitionTo("tagOpen"),this.markTagStart(),this.consume()},data:function(){var e=this.peek(),t=this.tagNameBuffer;"<"!==e||this.isIgnoredEndTag()?"&"===e&&"script"!==t&&"style"!==t?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(e)):(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume())},tagOpen:function(){var e=this.consume();"!"===e?this.transitionTo("markupDeclarationOpen"):"/"===e?this.transitionTo("endTagOpen"):("@"===e||":"===e||xt(e))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(e))},markupDeclarationOpen:function(){var e=this.consume();"-"===e&&"-"===this.peek()?(this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment()):"DOCTYPE"===e.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase()&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())},doctype:function(){Ct(this.consume())&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var e=this.consume();Ct(e)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase()))},doctypeName:function(){var e=this.consume();Ct(e)?this.transitionTo("afterDoctypeName"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase())},afterDoctypeName:function(){var e=this.consume();if(!Ct(e))if(">"===e)this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var t=e.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),r="PUBLIC"===t.toUpperCase(),n="SYSTEM"===t.toUpperCase();(r||n)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),r?this.transitionTo("afterDoctypePublicKeyword"):n&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var e=this.peek();Ct(e)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):'"'===e?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):"'"===e?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):">"===e&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var e=this.consume();'"'===e?this.transitionTo("afterDoctypePublicIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(e)},doctypePublicIdentifierSingleQuoted:function(){var e=this.consume();"'"===e?this.transitionTo("afterDoctypePublicIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(e)},afterDoctypePublicIdentifier:function(){var e=this.consume();Ct(e)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===e?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):"'"===e&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var e=this.consume();Ct(e)||(">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===e?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):"'"===e&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var e=this.consume();'"'===e?this.transitionTo("afterDoctypeSystemIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(e)},doctypeSystemIdentifierSingleQuoted:function(){var e=this.consume();"'"===e?this.transitionTo("afterDoctypeSystemIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(e)},afterDoctypeSystemIdentifier:function(){var e=this.consume();Ct(e)||">"===e&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var e=this.consume();"-"===e?this.transitionTo("commentStartDash"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(e),this.transitionTo("comment"))},commentStartDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var e=this.consume();"-"===e?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(e)},commentEndDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+e),this.transitionTo("comment"))},commentEnd:function(){var e=this.consume();">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+e),this.transitionTo("comment"))},tagName:function(){var e=this.consume();Ct(e)?this.transitionTo("beforeAttributeName"):"/"===e?this.transitionTo("selfClosingStartTag"):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(e)},endTagName:function(){var e=this.consume();Ct(e)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):"/"===e?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(e)},beforeAttributeName:function(){var e=this.peek();Ct(e)?this.consume():"/"===e?(this.transitionTo("selfClosingStartTag"),this.consume()):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):"="===e?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var e=this.peek();Ct(e)?(this.transitionTo("afterAttributeName"),this.consume()):"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.transitionTo("beforeAttributeValue"),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):'"'===e||"'"===e||"<"===e?(this.delegate.reportSyntaxError(e+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(e)):(this.consume(),this.delegate.appendToAttributeName(e))},afterAttributeName:function(){var e=this.peek();Ct(e)?this.consume():"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.consume(),this.transitionTo("beforeAttributeValue")):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e))},beforeAttributeValue:function(){var e=this.peek();Ct(e)?this.consume():'"'===e?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):"'"===e?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(e))},attributeValueDoubleQuoted:function(){var e=this.consume();'"'===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueSingleQuoted:function(){var e=this.consume();"'"===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueUnquoted:function(){var e=this.peek();Ct(e)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"&"===e?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):">"===e?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(e))},afterAttributeValueQuoted:function(){var e=this.peek();Ct(e)?(this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.consume(),this.transitionTo("selfClosingStartTag")):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var e=this.consume();("@"===e||":"===e||xt(e))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(e))}},this.reset()}return e.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},e.prototype.transitionTo=function(e){this.state=e},e.prototype.tokenize=function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},e.prototype.tokenizePart=function(e){for(this.input+=function(e){return e.replace(Tt,"\n")}(e);this.index"!==this.input.substring(this.index,this.index+8)||"style"===e&&""!==this.input.substring(this.index,this.index+8)||"script"===e&&"<\/script>"!==this.input.substring(this.index,this.index+9)},e}(),St=function(){function e(e,t){void 0===t&&(t={}),this.options=t,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new Pt(this,e,t.mode),this._currentAttribute=void 0}return e.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},e.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var e=this.token;if(null===e)throw new Error("token was unexpectedly null");if(0===arguments.length)return e;for(var t=0;t1?r-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{},t=Gt.blockType,r=Gt.attributes;return Object(ne.applyFilters)("blocks.getSaveContent.extraProps",$t({},e),t,r)}function Wt(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=ge(e),a=n.save;if(a.prototype instanceof se.Component){var i=new a({attributes:t});a=i.render.bind(i)}Gt.blockType=n,Gt.attributes=t;var o=a({attributes:t,innerBlocks:r}),s=n.apiVersion>1||Ve(n,"lightBlockWrapper",!1);if(Object(c.isObject)(o)&&Object(ne.hasFilter)("blocks.getSaveContent.extraProps")&&!s){var u=Object(ne.applyFilters)("blocks.getSaveContent.extraProps",$t({},o.props),n,t);Dt()(u,o.props)||(o=Object(se.cloneElement)(o,u))}return o=Object(ne.applyFilters)("blocks.getSaveElement",o,n,t),Object(se.createElement)(Rt,{innerBlocks:r},o)}function Qt(e,t,r){var n=ge(e);return Object(se.renderToString)(Wt(n,t,r))}function Yt(e,t){return Object(c.reduce)(e.attributes,(function(e,r,n){var a=t[n];return void 0===a||void 0!==r.source||"default"in r&&r.default===a||(e[n]=a),e}),{})}function Zt(e){var t=e.originalContent;if(e.isValid||e.innerBlocks.length)try{t=Qt(e.name,e.attributes,e.innerBlocks)}catch(e){}return t}function Xt(e,t,r){var n=Object(c.isEmpty)(t)?"":function(e){return JSON.stringify(e).replace(/--/g,"\\u002d\\u002d").replace(//g,"\\u003e").replace(/&/g,"\\u0026").replace(/\\"/g,"\\u0022")}(t)+" ",a=Object(c.startsWith)(e,"core/")?e.slice(5):e;return r?"\x3c!-- wp:".concat(a," ").concat(n,"--\x3e\n")+r+"\n\x3c!-- /wp:".concat(a," --\x3e"):"\x3c!-- wp:".concat(a," ").concat(n,"/--\x3e")}function Jt(e){1===e.length&&fe(e[0])&&(e=[]);var t=er(e);return 1===e.length&&e[0].name===Ae()&&(t=Object(gt.removep)(t)),t}function er(e,t){return Object(c.castArray)(e).map((function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isInnerBlocks,n=void 0!==r&&r,a=e.name,i=Zt(e);if(a===Ne()||!n&&a===Ae())return i;var o=ze(a),s=Yt(o,e.attributes);return Xt(a,s,i)}(e,t)})).join("\n\n")}function tr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var rr=/[\t\n\r\v\f ]+/g,nr=/^[\t\n\r\v\f ]*$/,ar=/^url\s*\(['"\s]*(.*?)['"\s]*\)$/,ir=["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"],or=[].concat(ir,["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),sr=[c.identity,function(e){return fr(e).join(" ")}],cr=/^[\da-z]+$/i,ur=/^#\d+$/,lr=/^#x[\da-f]+$/i;var dr=function(){function e(){Object(_t.a)(this,e)}return Object(vt.a)(e,[{key:"parse",value:function(e){if(t=e,cr.test(t)||ur.test(t)||lr.test(t))return Object(At.decodeEntities)("&"+e+";");var t}}]),e}();function fr(e){return e.trim().split(rr)}function pr(e){return e.attributes.filter((function(e){var t=Object(te.a)(e,2),r=t[0];return t[1]||0===r.indexOf("data-")||Object(c.includes)(or,r)}))}function hr(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Et(),n=e.chars,a=t.chars,i=0;i2&&void 0!==arguments[2]?arguments[2]:Et();if(e.length!==t.length)return r.warning("Expected attributes %o, instead saw %o.",t,e),!1;for(var n={},a=0;a2&&void 0!==arguments[2]?arguments[2]:Et();return e.tagName!==t.tagName&&e.tagName.toLowerCase()!==t.tagName.toLowerCase()?(r.warning("Expected tag name `%s`, instead saw `%s`.",t.tagName,e.tagName),!1):vr.apply(void 0,Object(o.a)([e,t].map(pr)).concat([r]))},Chars:hr,Comment:hr};function wr(e){for(var t;t=e.shift();){if("Chars"!==t.type)return t;if(!nr.test(t.chars))return t}}function kr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Et();try{return new St(new dr).tokenize(e)}catch(r){t.warning("Malformed HTML detected: %s",e)}return null}function Or(e,t){return!!e.selfClosing&&!(!t||t.tagName!==e.tagName||"EndTag"!==t.type)}function jr(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Et();if(e===t)return!0;var n,a,i=[e,t].map((function(e){return kr(e,r)})),o=Object(te.a)(i,2),s=o[0],c=o[1];if(!s||!c)return!1;for(;n=wr(s);){if(!(a=wr(c)))return r.warning("Expected end of content, instead saw %o.",n),!1;if(n.type!==a.type)return r.warning("Expected token of type `%s` (%o), instead saw `%s` (%o).",a.type,a,n.type,n),!1;var u=yr[n.type];if(u&&!u(n,a,r))return!1;Or(n,c[0])?wr(c):Or(a,s[0])&&wr(s)}return!(a=wr(c))||(r.warning("Expected %o, instead saw end of content.",a),!1)}function Tr(e,t,r){var n,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Bt(),i=ge(e);try{n=Qt(i,t)}catch(e){return a.error("Block validation failed because an error occurred while generating block content:\n\n%s",e.toString()),{isValid:!1,validationIssues:a.getItems()}}var o=jr(r,n,a);return o||a.error("Block validation failed for `%s` (%o).\n\nContent generated by `save` function:\n\n%s\n\nContent retrieved from post body:\n\n%s",i.name,i,n,r),{isValid:o,validationIssues:a.getItems()}}function Cr(e,t,r){return Tr(e,t,r,Et()).isValid}function xr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Pr(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},n=ge(e),a=Object(c.mapValues)(n.attributes,(function(e,n){return Fr(n,e,t,r)}));return Object(ne.applyFilters)("blocks.getBlockAttributes",a,n,t,r)}function qr(e,t){var r=Ir({},t);if("core/cover-image"===e&&(e="core/cover"),"core/text"!==e&&"core/cover-text"!==e||(e="core/paragraph"),e&&0===e.indexOf("core/social-link-")&&(r.service=e.substring(17),e="core/social-link"),e&&0===e.indexOf("core-embed/")){var n=e.substring(11),a={speaker:"speaker-deck",polldaddy:"crowdsignal"};r.providerNameSlug=n in a?a[n]:n,["amazon-kindle","wordpress"].includes(n)||(r.responsive=!0),e="core/embed"}return{name:e,attributes:r}}function Ur(e){var t=e.blockName,r=e.attrs,n=e.innerBlocks,a=void 0===n?[]:n,i=e.innerHTML,s=e.innerContent,u=Ae(),l=Ne()||u;r=r||{},i=i.trim();var d=t||u,f=qr(d,r);d=f.name,r=f.attributes,d===u&&(i=Object(gt.autop)(i).trim());var p=ze(d);if(!p){var h={attrs:r,blockName:t,innerBlocks:a,innerContent:s},g=Gr(h,{isCommentDelimited:!1}),b=Gr(h,{isCommentDelimited:!0});d&&(i=b),r={originalName:t,originalContent:b,originalUndelimitedContent:g},p=ze(d=l)}a=(a=a.map(Ur)).filter((function(e){return e}));var m=d===u||d===l;if(p&&(i||!m)){var _=Xe(d,$r(p,i,r),a);if(!m){var v=Tr(p,_.attributes,i),y=v.isValid,w=v.validationIssues;_.isValid=y,_.validationIssues=w}return _.originalContent=_.originalContent||i,(_=function(e,t){var r=ze(e.name),n=r.deprecated;if(!n||!n.length)return e;for(var a=e,i=a.originalContent,s=a.innerBlocks,u=0;u0&&(_.isValid?console.info("Block successfully updated for `%s` (%o).\n\nNew content generated by `save` function:\n\n%s\n\nContent retrieved from post body:\n\n%s",p.name,p,Qt(p,_.attributes),_.originalContent):_.validationIssues.forEach((function(e){var t=e.log,r=e.args;return t.apply(void 0,Object(o.a)(r))}))),_}}function Gr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isCommentDelimited,n=void 0===r||r,a=e.blockName,i=e.attrs,o=void 0===i?{}:i,s=e.innerBlocks,c=void 0===s?[]:s,u=e.innerContent,l=void 0===u?[]:u,d=0,f=l.map((function(e){return null!==e?e:Gr(c[d++],t)})).join("\n").replace(/\n+/g,"\n").trim();return n?Xt(a,o,f):f}var Kr,Wr=(Kr=bt.parse,function(e){return Kr(e).reduce((function(e,t){var r=Ur(t);return r&&e.push(r),e}),[])}),Qr=Wr;function Yr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Zr(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:e,r=e.ownerDocument.createElement("figure");t.parentNode.insertBefore(r,t),r.appendChild(e)}function yn(e,t,r){if(function(e,t){var r=e.nodeName.toLowerCase();return"figcaption"!==r&&!Object(ce.isTextContent)(e)&&Object(c.has)(t,["figure","children",r])}(e,r)){var n=e,a=e.parentNode;(function(e,t){var r=e.nodeName.toLowerCase();return Object(c.has)(t,["figure","children","a","children",r])})(e,r)&&"A"===a.nodeName&&1===a.childNodes.length&&(n=e.parentNode);var i=n.closest("p,div");i?e.classList?(e.classList.contains("alignright")||e.classList.contains("alignleft")||e.classList.contains("aligncenter")||!i.textContent.trim())&&vn(n,i):vn(n,i):"BODY"===n.parentNode.nodeName&&vn(n)}}var wn=r(129);function kn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function On(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=st("from"),i=ot(a,(function(e){return-1===n.indexOf(e.blockName)&&"shortcode"===e.type&&Object(c.some)(Object(c.castArray)(e.tag),(function(e){return Object(wn.regexp)(e).test(t)}))}));if(!i)return[t];var s,u=Object(c.castArray)(i.tag),l=Object(c.find)(u,(function(e){return Object(wn.regexp)(e).test(t)})),d=r;if(s=Object(wn.next)(l,t,r)){r=s.index+s.content.length;var f=t.substr(0,s.index),p=t.substr(r);if(!(Object(c.includes)(s.shortcode.content||"","<")||/(\n|

)\s*$/.test(f)&&/^\s*(\n|<\/p>)/.test(p)))return e(t,r);if(i.isMatch&&!i.isMatch(s.shortcode.attrs))return e(t,d,[].concat(Object(o.a)(n),[i.blockName]));var h=Object(c.mapValues)(Object(c.pickBy)(i.attributes,(function(e){return e.shortcode})),(function(e){return e.shortcode(s.shortcode.attrs,s)})),g=Xe(i.blockName,$r(On(On({},ze(i.blockName)),{},{attributes:i.attributes}),s.shortcode.content,h));return[].concat(Object(o.a)(e(f)),[g],Object(o.a)(e(p)))}return[t]},Tn=r(285),Cn=new(r.n(Tn).a.Converter)({noHeaderId:!0,tables:!0,literalMidWordUnderscores:!0,omitExtraWLInCodeBlocks:!0,simpleLineBreaks:!0,strikethrough:!0});function xn(e){if("IFRAME"===e.nodeName){var t=e.ownerDocument.createTextNode(e.src);e.parentNode.replaceChild(t,e)}}function Pn(e){e.id&&0===e.id.indexOf("docs-internal-guid-")&&Object(ce.unwrap)(e)}function Sn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function An(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,n=document.implementation.createHTMLDocument("");return n.body.innerHTML=e,Bn(n.body.childNodes,t,n,r),n.body.innerHTML}function Dn(e,t){var r=e["".concat(t,"Sibling")];if(r&&Object(ce.isPhrasingContent)(r))return r;var n=e.parentNode;return n&&Object(ce.isPhrasingContent)(n)?Dn(n,t):void 0}function Ln(e){if(e.nodeType===e.TEXT_NODE){for(var t=e;t=t.parentNode;)if(t.nodeType===t.ELEMENT_NODE&&"PRE"===t.nodeName)return;var r,n=e.data.replace(/[ \r\n\t]+/g," ");if(" "===n[0]){var a=Dn(e,"previous");a&&"BR"!==a.nodeName&&" "!==a.textContent.slice(-1)||(n=n.slice(1))}if(" "===n[n.length-1]){var i=Dn(e,"next");(!i||"BR"===i.nodeName||i.nodeType===i.TEXT_NODE&&(" "===(r=i.textContent[0])||"\r"===r||"\n"===r||"\t"===r))&&(n=n.slice(0,-1))}n?e.data=n:e.parentNode.removeChild(e)}}function Mn(e){"BR"===e.nodeName&&(Dn(e,"next")||e.parentNode.removeChild(e))}function zn(e){"P"===e.nodeName&&(e.hasChildNodes()||e.parentNode.removeChild(e))}function In(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Hn(e){for(var t=1;t]+>/g,"")).replace(/^\s*]*>\s*]*>(?:\s*)?/i,"")).replace(/(?:\s*)?<\/body>\s*<\/html>\s*$/i,""),"INLINE"!==s){var d=n||i;if(-1!==d.indexOf("\x3c!-- wp:"))return Wr(d)}if(String.prototype.normalize&&(n=n.normalize()),!i||n&&!function(e){return!/<(?!br[ />])/i.test(e)}(n)||(t=i,n=Cn.makeHtml(function(e){return e.replace(/((?:^|\n)```)([^\n`]+)(```(?:$|\n))/,(function(e,t,r,n){return"".concat(t,"\n").concat(r,"\n").concat(n)}))}(t)),"AUTO"===s&&-1===i.indexOf("\n")&&0!==i.indexOf("

")&&0===n.indexOf("

")&&(s="INLINE")),"INLINE"===s)return Rn(n,l);var f=jn(n),p=f.length>1;if("AUTO"===s&&!p&&function(e,t){var r=document.implementation.createHTMLDocument("");r.body.innerHTML=e;var n=Array.from(r.body.children);return!n.some(an)&&nn(n,t)}(n,u))return Rn(n,l);var h=Object(ce.getPhrasingContentSchema)("paste"),g=En("paste"),b=Object(c.compact)(Object(c.flatMap)(f,(function(e){if("string"!=typeof e)return e;var t=[Pn,ln,sn,fn,mn,on,tn,rn,xn,yn,_n],r=Hn(Hn({},g),h);return e=Nn(e,t,g),e=Nn(e=en(e=Object(ce.removeInvalidHTML)(e,r)),[Ln,Mn,zn],g),Vn.log("Processed HTML piece:\n\n",e),Jr(e)})));if("AUTO"===s&&1===b.length&&Ve(b[0].name,"__unstablePasteTextInline",!1)){var m=i.trim();if(""!==m&&-1===m.indexOf("\n"))return Object(ce.removeInvalidHTML)(Zt(b[0]),h)}return b}var $n=r(35),qn=r.n($n);function Un(e){return qn()("wp.blocks.getPhrasingContentSchema",{alternative:"wp.dom.getPhrasingContentSchema"}),Object(ce.getPhrasingContentSchema)(e)}function Gn(e){var t=e.HTML,r=void 0===t?"":t;if(-1!==r.indexOf("\x3c!-- wp:"))return Wr(r);var n=jn(r),a=En();return Object(c.compact)(Object(c.flatMap)(n,(function(e){return"string"!=typeof e?e:Jr(e=en(e=Nn(e,[fn,tn,yn,_n],a)))})))}function Kn(){return Object(i.select)(ee).getCategories()}function Wn(e){Object(i.dispatch)(ee).setCategories(e)}function Qn(e,t){Object(i.dispatch)(ee).updateCategory(e,t)}function Yn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Zn(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length===t.length&&Object(c.every)(t,(function(t,r){var n=Object(te.a)(t,3),a=n[0],i=n[2],o=e[r];return a===o.name&&Xn(o.innerBlocks,i)}))}function Jn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t?Object(c.map)(t,(function(t,r){var n=Object(te.a)(t,3),a=n[0],i=n[1],o=n[2],s=e[r];if(s&&s.name===a){var u=Jn(s.innerBlocks,o);return Zn(Zn({},s),{},{innerBlocks:u})}var l=ze(a),d=function(e,t){return Object(c.mapValues)(t,(function(t,r){return f(e[r],t)}))},f=function(e,t){return r=e,"html"===Object(c.get)(r,["source"])&&Object(c.isArray)(t)?Object(se.renderToString)(t):function(e){return"query"===Object(c.get)(e,["source"])}(e)&&t?t.map((function(t){return d(e.query,t)})):t;var r},p=qr(a,d(Object(c.get)(l,["attributes"],{}),i));return Xe(p.name,p.attributes,Jn([],o))})):e}},5:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},60:function(e,t,r){var n;!function(a){var i=/^\s+/,o=/\s+$/,s=0,c=a.round,u=a.min,l=a.max,d=a.random;function f(e,t){if(t=t||{},(e=e||"")instanceof f)return e;if(!(this instanceof f))return new f(e,t);var r=function(e){var t={r:0,g:0,b:0},r=1,n=null,s=null,c=null,d=!1,f=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(o,"").toLowerCase();var t,r=!1;if(A[e])e=A[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=$.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=$.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=$.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=$.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=$.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=$.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=$.hex8.exec(e))return{r:L(t[1]),g:L(t[2]),b:L(t[3]),a:H(t[4]),format:r?"name":"hex8"};if(t=$.hex6.exec(e))return{r:L(t[1]),g:L(t[2]),b:L(t[3]),format:r?"name":"hex"};if(t=$.hex4.exec(e))return{r:L(t[1]+""+t[1]),g:L(t[2]+""+t[2]),b:L(t[3]+""+t[3]),a:H(t[4]+""+t[4]),format:r?"name":"hex8"};if(t=$.hex3.exec(e))return{r:L(t[1]+""+t[1]),g:L(t[2]+""+t[2]),b:L(t[3]+""+t[3]),format:r?"name":"hex"};return!1}(e));"object"==typeof e&&(q(e.r)&&q(e.g)&&q(e.b)?(p=e.r,h=e.g,g=e.b,t={r:255*N(p,255),g:255*N(h,255),b:255*N(g,255)},d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):q(e.h)&&q(e.s)&&q(e.v)?(n=z(e.s),s=z(e.v),t=function(e,t,r){e=6*N(e,360),t=N(t,100),r=N(r,100);var n=a.floor(e),i=e-n,o=r*(1-t),s=r*(1-i*t),c=r*(1-(1-i)*t),u=n%6;return{r:255*[r,s,o,o,c,r][u],g:255*[c,r,r,s,o,o][u],b:255*[o,o,c,r,r,s][u]}}(e.h,n,s),d=!0,f="hsv"):q(e.h)&&q(e.s)&&q(e.l)&&(n=z(e.s),c=z(e.l),t=function(e,t,r){var n,a,i;function o(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=N(e,360),t=N(t,100),r=N(r,100),0===t)n=a=i=r;else{var s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;n=o(c,s,e+1/3),a=o(c,s,e),i=o(c,s,e-1/3)}return{r:255*n,g:255*a,b:255*i}}(e.h,n,c),d=!0,f="hsl"),e.hasOwnProperty("a")&&(r=e.a));var p,h,g;return r=B(r),{ok:d,format:e.format||f,r:u(255,l(t.r,0)),g:u(255,l(t.g,0)),b:u(255,l(t.b,0)),a:r}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=c(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=r.ok,this._tc_id=s++}function p(e,t,r){e=N(e,255),t=N(t,255),r=N(r,255);var n,a,i=l(e,t,r),o=u(e,t,r),s=(i+o)/2;if(i==o)n=a=0;else{var c=i-o;switch(a=s>.5?c/(2-i-o):c/(i+o),i){case e:n=(t-r)/c+(t>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(f(n));return i}function S(e,t){t=t||6;for(var r=f(e).toHsv(),n=r.h,a=r.s,i=r.v,o=[],s=1/t;t--;)o.push(f({h:n,s:a,v:i})),i=(i+s)%1;return o}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:a.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:a.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:a.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=B(e),this._roundA=c(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=c(360*e.h),r=c(100*e.s),n=c(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=c(360*e.h),r=c(100*e.s),n=c(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return g(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,a){var i=[M(c(e).toString(16)),M(c(t).toString(16)),M(c(r).toString(16)),M(I(n))];if(a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*N(this._r,255))+"%",g:c(100*N(this._g,255))+"%",b:c(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*N(this._r,255))+"%, "+c(100*N(this._g,255))+"%, "+c(100*N(this._b,255))+"%)":"rgba("+c(100*N(this._r,255))+"%, "+c(100*N(this._g,255))+"%, "+c(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(E[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+b(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var a=f(e);r="#"+b(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(y,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(P,arguments)},complement:function(){return this._applyCombination(j,arguments)},monochromatic:function(){return this._applyCombination(S,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(T,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:z(e[n]));e=r}return f(e,t)},f.equals=function(e,t){return!(!e||!t)&&f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(e,t,r){r=0===r?0:r||50;var n=f(e).toRgb(),a=f(t).toRgb(),i=r/100;return f({r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a})},f.readability=function(e,t){var r=f(e),n=f(t);return(a.max(r.getLuminance(),n.getLuminance())+.05)/(a.min(r.getLuminance(),n.getLuminance())+.05)},f.isReadable=function(e,t,r){var n,a,i=f.readability(e,t);switch(a=!1,(n=function(e){var t,r;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==r&&"large"!==r&&(r="small");return{level:t,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":a=i>=4.5;break;case"AAlarge":a=i>=3;break;case"AAAsmall":a=i>=7}return a},f.mostReadable=function(e,t,r){var n,a,i,o,s=null,c=0;a=(r=r||{}).includeFallbackColors,i=r.level,o=r.size;for(var u=0;uc&&(c=n,s=f(t[u]));return f.isReadable(e,s,{level:i,size:o})||!a?s:(r.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],r))};var A=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},E=f.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(A);function B(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=u(t,l(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),a.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function D(e){return u(1,l(0,e))}function L(e){return parseInt(e,16)}function M(e){return 1==e.length?"0"+e:""+e}function z(e){return e<=1&&(e=100*e+"%"),e}function I(e){return a.round(255*parseFloat(e)).toString(16)}function H(e){return L(e)/255}var V,R,F,$=(R="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",F="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+R),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+R),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+R),hsva:new RegExp("hsva"+F),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function q(e){return!!$.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(n=function(){return f}.call(t,r,t,e))||(e.exports=n)}(Math)},63:function(e,t){e.exports=window.wp.isShallowEqual},64:function(e,t){e.exports=window.wp.htmlEntities},7:function(e,t){e.exports=window.wp.primitives},8:function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - - // @ts-ignore - return func.call.apply(func, [this, _extends({}, state, { - event: event - })].concat(args)); - }; -} /** * The controller will keep track of the state for all gestures and also keep * track of timeouts, and window listeners. */ - var Controller = function Controller(classes) { var _this = this; @@ -23141,25 +23126,29 @@ var Controller = function Controller(classes) { this.supportsGestureEvents = supportsGestureEvents(); this.bind = function () { - var bindings = {}; - - for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; } + var bindings = {}; + for (var _iterator = _createForOfIteratorHelperLoose(_this.classes), _step; !(_step = _iterator()).done;) { var RecognizerClass = _step.value; new RecognizerClass(_this, args).addBindings(bindings); - } // we also add event bindings for native handlers + } // // we also add event bindings for native handlers - for (var _i = 0, _Object$entries = Object.entries(_this.nativeRefs); _i < _Object$entries.length; _i++) { - var _Object$entries$_i = _Object$entries[_i], - event = _Object$entries$_i[0], - handler = _Object$entries$_i[1]; - addBindings(bindings, event, partial(handler, _extends({}, _this.state.shared, { - args: args - }))); + var _loop = function _loop(eventKey) { + addBindings(bindings, eventKey, function (event) { + return _this.nativeRefs[eventKey](_extends({}, _this.state.shared, { + event: event, + args: args + })); + }); + }; + + for (var eventKey in _this.nativeRefs) { + _loop(eventKey); } if (_this.config.domTarget) { @@ -23195,12 +23184,20 @@ var Controller = function Controller(classes) { this.windowListeners = {}; }; function addEventIds(controller, event) { - var idList = 'pointerId' in event ? controller.pointerIds : controller.touchIds; - getPointerIds(event).forEach(idList.add, idList); + if ('pointerId' in event) { + controller.pointerIds.add(event.pointerId); + } else { + controller.touchIds = new Set(getTouchIds(event)); + } } function removeEventIds(controller, event) { - var idList = 'pointerId' in event ? controller.pointerIds : controller.touchIds; - getPointerIds(event).forEach(idList["delete"], idList); + if ('pointerId' in event) { + controller.pointerIds["delete"](event.pointerId); + } else { + getTouchIds(event).forEach(function (id) { + return controller.touchIds["delete"](id); + }); + } } function clearAllWindowListeners(controller) { var _controller$config = controller.config, @@ -23253,10 +23250,10 @@ function updateDomListeners(_ref3, bindings) { var eventOptions = config.eventOptions; removeListeners(domTarget, takeAll(domListeners), eventOptions); - for (var _i2 = 0, _Object$entries2 = Object.entries(bindings); _i2 < _Object$entries2.length; _i2++) { - var _Object$entries2$_i = _Object$entries2[_i2], - key = _Object$entries2$_i[0], - fns = _Object$entries2$_i[1]; + for (var _i = 0, _Object$entries = Object.entries(bindings); _i < _Object$entries.length; _i++) { + var _Object$entries$_i = _Object$entries[_i], + key = _Object$entries$_i[0], + fns = _Object$entries$_i[1]; var name = key.slice(2).toLowerCase(); domListeners.push([name, chainFns.apply(void 0, fns)]); } @@ -23269,10 +23266,10 @@ function getPropsListener(_ref4, bindings) { var props = {}; var captureString = config.eventOptions.capture ? 'Capture' : ''; - for (var _i3 = 0, _Object$entries3 = Object.entries(bindings); _i3 < _Object$entries3.length; _i3++) { - var _Object$entries3$_i = _Object$entries3[_i3], - event = _Object$entries3$_i[0], - fns = _Object$entries3$_i[1]; + for (var _i2 = 0, _Object$entries2 = Object.entries(bindings); _i2 < _Object$entries2.length; _i2++) { + var _Object$entries2$_i = _Object$entries2[_i2], + event = _Object$entries2$_i[0], + fns = _Object$entries2$_i[1]; var fnsArray = Array.isArray(fns) ? fns : [fns]; var key = event + captureString; props[key] = chainFns.apply(void 0, fnsArray); @@ -23889,6 +23886,7 @@ function isEqual(a, b) { return equal(a, b); } catch (error) { if ((error.message || '').match(/stack|recursion/i)) { + // eslint-disable-next-line no-console console.warn('react-fast-compare cannot handle circular refs'); return false; } @@ -23970,6 +23968,8 @@ var DistanceAngleRecognizer = /*#__PURE__*/function (_Recognizer) { return DistanceAngleRecognizer; }(Recognizer); +var ZOOM_CONSTANT = 7; +var WEBKIT_DISTANCE_SCALE_FACTOR = 260; var PinchRecognizer = /*#__PURE__*/function (_DistanceAngleRecogni) { _inheritsLoose(PinchRecognizer, _DistanceAngleRecogni); @@ -23982,11 +23982,22 @@ var PinchRecognizer = /*#__PURE__*/function (_DistanceAngleRecogni) { _this.onPinchStart = function (event) { addEventIds(_this.controller, event); - if (!_this.enabled || _this.state._active) return; // until we reach two fingers on the target don't react + var touchIds = _this.controller.touchIds; + if (!_this.enabled) return; - if (_this.controller.touchIds.size < 2) return; + if (_this.state._active) { + // check that the pointerIds that initiated the gesture + // are still enabled. This is useful for when the page + // loses track of the pointers (minifying gesture on iPad). + if (_this.state._pointerIds.every(function (id) { + return touchIds.has(id); + })) return; // something was wrong with the pointers but we let it go. + } // until we reach two fingers on the target don't react - var _pointerIds = Array.from(_this.controller.touchIds).slice(0, 2); + + if (touchIds.size < 2) return; + + var _pointerIds = Array.from(touchIds).slice(0, 2); var _getTwoTouchesEventVa = getTwoTouchesEventValues(event, _pointerIds, _this.transform), values = _getTwoTouchesEventVa.values, @@ -24015,22 +24026,26 @@ var PinchRecognizer = /*#__PURE__*/function (_DistanceAngleRecogni) { _this.updateSharedState(genericEventData); - var _getTwoTouchesEventVa2 = getTwoTouchesEventValues(event, _this.state._pointerIds, _this.transform), - values = _getTwoTouchesEventVa2.values, - origin = _getTwoTouchesEventVa2.origin; + try { + var _getTwoTouchesEventVa2 = getTwoTouchesEventValues(event, _this.state._pointerIds, _this.transform), + values = _getTwoTouchesEventVa2.values, + origin = _getTwoTouchesEventVa2.origin; - var kinematics = _this.getKinematics(values, event); + var kinematics = _this.getKinematics(values, event); - _this.updateGestureState(_extends({}, getGenericPayload(_assertThisInitialized(_this), event), kinematics, { - origin: origin - })); + _this.updateGestureState(_extends({}, getGenericPayload(_assertThisInitialized(_this), event), kinematics, { + origin: origin + })); - _this.fireGestureHandler(); + _this.fireGestureHandler(); + } catch (e) { + _this.onPinchEnd(event); + } }; _this.onPinchEnd = function (event) { removeEventIds(_this.controller, event); - var pointerIds = getPointerIds(event); // if none of the lifted pointerIds is in the state pointerIds don't do anything + var pointerIds = getTouchIds(event); // if none of the lifted pointerIds is in the state pointerIds don't do anything if (_this.state._pointerIds.every(function (id) { return !pointerIds.includes(id); @@ -24090,9 +24105,12 @@ var PinchRecognizer = /*#__PURE__*/function (_DistanceAngleRecogni) { event.preventDefault(); var genericEventData = getGenericEventData(event); - _this.updateSharedState(genericEventData); + _this.updateSharedState(genericEventData); // this normalizes the values of the Safari's WebkitEvent by calculating + // the delta and then multiplying it by a constant. + var values = getWebkitGestureEventValues(event, _this.transform); + values[0] = (values[0] - _this.state.event.scale) * WEBKIT_DISTANCE_SCALE_FACTOR + _this.state.values[0]; var kinematics = _this.getKinematics(values, event); @@ -24130,8 +24148,9 @@ var PinchRecognizer = /*#__PURE__*/function (_DistanceAngleRecogni) { var _this$state$values = _this.state.values, prev_d = _this$state$values[0], - prev_a = _this$state$values[1]; - var d = prev_d - delta_d; + prev_a = _this$state$values[1]; // ZOOM_CONSTANT is based on Safari trackpad natural zooming + + var d = prev_d - delta_d * ZOOM_CONSTANT; var a = prev_a !== void 0 ? prev_a : 0; return { values: [d, a], diff --git a/wp-includes/js/dist/components.min.js b/wp-includes/js/dist/components.min.js index 1ee470bcef..d0a75fa4a7 100644 --- a/wp-includes/js/dist/components.min.js +++ b/wp-includes/js/dist/components.min.js @@ -4,7 +4,7 @@ this.wp=this.wp||{},this.wp.components=function(e){var t={};function n(r){if(t[r Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},function(e,t){e.exports=window.React},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(24);var o=n(37),a=n(31);function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(a.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t){e.exports=window.regeneratorRuntime},function(e,t){e.exports=window.wp.keycodes},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t=0||(o[n]=e[n]);return o}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s}))},function(e,t){e.exports=window.wp.richText},,,function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t){e.exports=window.moment},,function(e,t,n){"use strict";function r(e,t,n,r,o,a,i){try{var c=e[a](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,a){var i=e.apply(t,n);function c(e){r(i,o,a,c,s,"next",e)}function s(e){r(i,o,a,c,s,"throw",e)}c(void 0)}))}}n.d(t,"a",(function(){return o}))},function(e,t){e.exports=window.wp.a11y},,,,function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(14),o=n(70);function a(e){var t=Object(r.useRef)(e);return Object(o.a)((function(){t.current=e})),t}},function(e,t,n){"use strict";function r(e){return e?e.ownerDocument||e:document}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=SyntaxError,o=Function,a=TypeError,i=function(e){try{return Function('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var s=function(){throw new a},u=c?function(){try{return s}catch(e){try{return c(arguments,"callee").get}catch(e){return s}}}():s,l=n(332)(),d=Object.getPrototypeOf||function(e){return e.__proto__},f=i("async function* () {}"),p=f?f.prototype:void 0,b=p?p.prototype:void 0,h="undefined"==typeof Uint8Array?void 0:d(Uint8Array),v={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":l?d([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":i("async function () {}"),"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":b?d(b):void 0,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":i("function* () {}"),"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l?d(d([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l?d((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&l?d((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l?d(""[Symbol.iterator]()):void 0,"%Symbol%":l?Symbol:void 0,"%SyntaxError%":r,"%ThrowTypeError%":u,"%TypedArray%":h,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},m={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},y=n(121),g=n(81),O=y.call(Function.call,Array.prototype.concat),j=y.call(Function.apply,Array.prototype.splice),w=y.call(Function.call,String.prototype.replace),_=y.call(Function.call,String.prototype.slice),k=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E=/\\(\\)?/g,S=function(e){var t=_(e,0,1),n=_(e,-1);if("%"===t&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new r("invalid intrinsic syntax, expected opening `%`");var o=[];return w(e,k,(function(e,t,n,r){o[o.length]=n?w(r,E,"$1"):t||e})),o},x=function(e,t){var n,o=e;if(g(m,o)&&(o="%"+(n=m[o])[0]+"%"),g(v,o)){var i=v[o];if(void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:i}}throw new r("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');var n=S(e),o=n.length>0?n[0]:"",i=x("%"+o+"%",t),s=i.name,u=i.value,l=!1,d=i.alias;d&&(o=d[0],j(n,O([0,1],d)));for(var f=1,p=!0;f=n.length){var y=c(u,b);u=(p=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:u[b]}else p=g(u,b),u=u[b];p&&!l&&(v[s]=u)}}return u}},function(e,t,n){"use strict";var r=n(5),o=n(13),a=n(10),i=n.n(a),c=n(0);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.as,n=void 0===t?"div":t,a=e.className,u=Object(o.a)(e,["as","className"]);return function(e){var t=e.as,n=void 0===t?"div":t,r=Object(o.a)(e,["as"]);return"function"==typeof r.children?r.children(r):Object(c.createElement)(n,r)}(function(e){for(var t=1;t=0?n[i]=e[i]:r[i]=e[i]}return[n,r]}function l(e,t){if(void 0===t&&(t=[]),!s(e.state))return u(e,t);var n=u(e,[].concat(t,["state"])),r=n[0],o=n[1],a=r.state,c=Object(i.a)(r,["state"]);return[Object(i.b)(Object(i.b)({},a),c),o]}var d=n(68);function f(e){return"normalizePropsAreEqualInner"===e.name?e:function(t,n){return s(t.state)&&s(n.state)?e(Object(i.b)(Object(i.b)({},t.state),t),Object(i.b)(Object(i.b)({},n.state),n)):e(t,n)}}function p(e){var t,n=e.as,i=e.useHook,c=e.memo,s=e.propsAreEqual,u=void 0===s?null==i?void 0:i.unstable_propsAreEqual:s,p=e.keys,b=void 0===p?(null==i?void 0:i.__keys)||[]:p,h=e.useCreateElement,v=void 0===h?a.a:h,m=function(e,t){var r=e.as,a=void 0===r?n:r,c=Object(o.b)(e,["as"]);if(i){var s,u=l(c,b),d=u[0],f=u[1],p=i(d,Object(o.a)({ref:t},f)),h=p.wrapElement,m=Object(o.b)(p,["wrapElement"]),y=(null===(s=a.render)||void 0===s?void 0:s.__keys)||a.__keys,g=y&&l(c,y)[0],O=g?Object(o.a)(Object(o.a)({},m),g):m,j=v(a,O);return h?h(j):j}return v(a,Object(o.a)({ref:t},c))};return t=m,m=Object(r.forwardRef)(t),c&&(m=function(e,t){return Object(r.memo)(e,t)}(m,u&&f(u))),m.__keys=b,m.unstable_propsAreEqual=f(u||d.a),m}},function(e,t,n){var r;!function(o){var a=/^\s+/,i=/\s+$/,c=0,s=o.round,u=o.min,l=o.max,d=o.random;function f(e,t){if(t=t||{},(e=e||"")instanceof f)return e;if(!(this instanceof f))return new f(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,c=null,s=null,d=!1,f=!1;"string"==typeof e&&(e=function(e){e=e.replace(a,"").replace(i,"").toLowerCase();var t,n=!1;if(D[e])e=D[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=K.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=K.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=K.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=K.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=K.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=K.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=K.hex8.exec(e))return{r:N(t[1]),g:N(t[2]),b:N(t[3]),a:z(t[4]),format:n?"name":"hex8"};if(t=K.hex6.exec(e))return{r:N(t[1]),g:N(t[2]),b:N(t[3]),format:n?"name":"hex"};if(t=K.hex4.exec(e))return{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),a:z(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=K.hex3.exec(e))return{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(W(e.r)&&W(e.g)&&W(e.b)?(p=e.r,b=e.g,h=e.b,t={r:255*I(p,255),g:255*I(b,255),b:255*I(h,255)},d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):W(e.h)&&W(e.s)&&W(e.v)?(r=L(e.s),c=L(e.v),t=function(e,t,n){e=6*I(e,360),t=I(t,100),n=I(n,100);var r=o.floor(e),a=e-r,i=n*(1-t),c=n*(1-a*t),s=n*(1-(1-a)*t),u=r%6;return{r:255*[n,c,i,i,s,n][u],g:255*[s,n,n,c,i,i][u],b:255*[i,i,s,n,n,c][u]}}(e.h,r,c),d=!0,f="hsv"):W(e.h)&&W(e.s)&&W(e.l)&&(r=L(e.s),s=L(e.l),t=function(e,t,n){var r,o,a;function i(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=I(e,360),t=I(t,100),n=I(n,100),0===t)r=o=a=n;else{var c=n<.5?n*(1+t):n+t-n*t,s=2*n-c;r=i(s,c,e+1/3),o=i(s,c,e),a=i(s,c,e-1/3)}return{r:255*r,g:255*o,b:255*a}}(e.h,r,s),d=!0,f="hsl"),e.hasOwnProperty("a")&&(n=e.a));var p,b,h;return n=T(n),{ok:d,format:e.format||f,r:u(255,l(t.r,0)),g:u(255,l(t.g,0)),b:u(255,l(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=s(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=s(this._r)),this._g<1&&(this._g=s(this._g)),this._b<1&&(this._b=s(this._b)),this._ok=n.ok,this._tc_id=c++}function p(e,t,n){e=I(e,255),t=I(t,255),n=I(n,255);var r,o,a=l(e,t,n),i=u(e,t,n),c=(a+i)/2;if(a==i)r=o=0;else{var s=a-i;switch(o=c>.5?s/(2-a-i):s/(a+i),a){case e:r=(t-n)/s+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(f(r));return a}function P(e,t){t=t||6;for(var n=f(e).toHsv(),r=n.h,o=n.s,a=n.v,i=[],c=1/t;t--;)i.push(f({h:r,s:o,v:a})),a=(a+c)%1;return i}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=T(e),this._roundA=s(100*this._a)/100,this},toHsv:function(){var e=b(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=b(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return h(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var a=[A(s(e).toString(16)),A(s(t).toString(16)),A(s(n).toString(16)),A(F(r))];if(o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:s(this._r),g:s(this._g),b:s(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+s(this._r)+", "+s(this._g)+", "+s(this._b)+")":"rgba("+s(this._r)+", "+s(this._g)+", "+s(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:s(100*I(this._r,255))+"%",g:s(100*I(this._g,255))+"%",b:s(100*I(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+s(100*I(this._r,255))+"%, "+s(100*I(this._g,255))+"%, "+s(100*I(this._b,255))+"%)":"rgba("+s(100*I(this._r,255))+"%, "+s(100*I(this._g,255))+"%, "+s(100*I(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(M[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+v(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=f(e);n="#"+v(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(O,arguments)},brighten:function(){return this._applyModification(j,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(C,arguments)},complement:function(){return this._applyCombination(k,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(E,arguments)},tetrad:function(){return this._applyCombination(S,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:L(e[r]));e=n}return f(e,t)},f.equals=function(e,t){return!(!e||!t)&&f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(e,t,n){n=0===n?0:n||50;var r=f(e).toRgb(),o=f(t).toRgb(),a=n/100;return f({r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a})},f.readability=function(e,t){var n=f(e),r=f(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},f.isReadable=function(e,t,n){var r,o,a=f.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=a>=4.5;break;case"AAlarge":o=a>=3;break;case"AAAsmall":o=a>=7}return o},f.mostReadable=function(e,t,n){var r,o,a,i,c=null,s=0;o=(n=n||{}).includeFallbackColors,a=n.level,i=n.size;for(var u=0;us&&(s=r,c=f(t[u]));return f.isReadable(e,c,{level:a,size:i})||!o?c:(n.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],n))};var D=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},M=f.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(D);function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function I(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=u(t,l(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function R(e){return u(1,l(0,e))}function N(e){return parseInt(e,16)}function A(e){return 1==e.length?"0"+e:""+e}function L(e){return e<=1&&(e=100*e+"%"),e}function F(e){return o.round(255*parseFloat(e)).toString(16)}function z(e){return N(e)/255}var B,H,V,K=(H="[\\s|\\(]+("+(B="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",V="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",{CSS_UNIT:new RegExp(B),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+V),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+V),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+V),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function W(e){return!!K.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(r=function(){return f}.call(t,n,t,e))||(e.exports=r)}(Math)},,function(e,t,n){"use strict";function r(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t})):e.find((function(e){return!e.disabled}))}function o(e,t){var n;return t||null===t?t:e.currentId||null===e.currentId?e.currentId:null===(n=r(e.items||[]))||void 0===n?void 0:n.id}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}))},function(e,t){e.exports=window.wp.isShallowEqual},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(54);function o(e){var t=Object(r.a)(e).activeElement;return null!=t&&t.nodeName?t:null}},function(e,t,n){"use strict";function r(e){return e.target===e.currentTarget}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var a=0,i=n;a=0||(o[n]=e[n]);return o}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return s}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(14);function o(e,t){void 0===t&&(t=null),e&&("function"==typeof e?e(t):e.current=t)}function a(e,t){return Object(r.useMemo)((function(){return null==e&&null==t?null:function(n){o(e,n),o(t,n)}}),[e,t])}},function(e,t,n){"use strict";var r=n(11),o=n(5),a=n(0),i=n(2),c=n(112),s=n(178),u=n(12);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}))},,function(e,t,n){"use strict";var r=n(100),o=n(243),a=n(244),i=n(381),c=a();r(c,{getPolyfill:a,implementation:o,shim:i}),e.exports=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(14);function o(e){return void 0===e&&(e="id"),(e?e+"-":"")+Math.random().toString(32).substr(2,6)}var a=Object(r.createContext)(o)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(110);var o,a=(o=Object(r.a)(),Boolean(void 0!==o&&o.document&&o.document.createElement))},,function(e,t,n){"use strict";function r(e){e.userFocus=!0,e.focus(),e.userFocus=!1}function o(e){return!!e.userFocus}function a(e,t){e.userFocus=t}n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(66),o=n(174);function a(e){var t=Object(r.a)(e);if(!t)return!1;if(Object(o.a)(e,t))return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&(n===e.id||!!e.querySelector("#"+n))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(174);function o(e){return!Object(r.a)(e.currentTarget,e.target)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=["button","color","file","image","reset","submit"];function o(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){var t=e;return-1!==r.indexOf(t.type)}return!1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var r=n(20),o=n(59),a=n(58),i=n(14),c=n(78),s=n(95),u=(n(109),n(53)),l=n(70),d=n(93),f=n(94),p=n(66),b=n(84),h=n(101),v=n(75),m=Object(b.a)("Mac")&&!Object(b.a)("Chrome")&&(Object(b.a)("Safari")||Object(b.a)("Firefox"));function y(e){Object(d.a)(e)||e.focus()}function g(e,t,n,r){return e?t&&!n?-1:void 0:t?r:r||0}function O(e,t){return Object(i.useCallback)((function(n){var r;null===(r=e.current)||void 0===r||r.call(e,n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}),[e,t])}var j=Object(a.a)({name:"Tabbable",compose:v.a,keys:["disabled","focusable"],useOptions:function(e,t){var n=t.disabled;return Object(r.b)({disabled:n},e)},useProps:function(e,t){var n=t.ref,o=t.tabIndex,a=t.onClickCapture,d=t.onMouseDownCapture,b=t.onMouseDown,v=t.onKeyPressCapture,j=t.style,w=Object(r.a)(t,["ref","tabIndex","onClickCapture","onMouseDownCapture","onMouseDown","onKeyPressCapture","style"]),_=Object(i.useRef)(null),k=Object(u.a)(a),E=Object(u.a)(d),S=Object(u.a)(b),x=Object(u.a)(v),C=!!e.disabled&&!e.focusable,P=Object(i.useState)(!0),D=P[0],M=P[1],T=Object(i.useState)(!0),I=T[0],R=T[1],N=e.disabled?Object(r.b)({pointerEvents:"none"},j):j,A=function(){if(m){var e=Object(i.useState)(null),t=e[0],n=e[1];return Object(i.useEffect)((function(){t&&(y(t),n(null))}),[t]),Object(i.useCallback)((function(e){var t=e.currentTarget;if(!Object(f.a)(e)&&Object(s.a)(t)){var r=Object(p.a)(t);if(r){var o="BODY"===r.tagName,a=Object(h.a)(t.parentElement);if(r===a||o&&!a)n(t);else if(a){a.addEventListener("focusin",(function(){return n(t)}),{once:!0})}else{r.addEventListener("blur",(function(){return y(t)}),{once:!0})}}}}),[])}}();Object(l.a)((function(){var e,t=_.current;t&&("BUTTON"!==(e=t).tagName&&"INPUT"!==e.tagName&&"SELECT"!==e.tagName&&"TEXTAREA"!==e.tagName&&"A"!==e.tagName&&M(!1),function(e){return"BUTTON"===e.tagName||"INPUT"===e.tagName||"SELECT"===e.tagName||"TEXTAREA"===e.tagName}(t)||R(!1))}),[]);var L=O(k,e.disabled),F=O(E,e.disabled),z=O(x,e.disabled),B=Object(i.useCallback)((function(e){var t;null===(t=S.current)||void 0===t||t.call(S,e),e.defaultPrevented||null==A||A(e)}),[e.disabled,A]);return Object(r.b)({ref:Object(c.a)(_,n),style:N,tabIndex:g(C,D,I,o),disabled:!(!C||!I)||void 0,"aria-disabled":!!e.disabled||void 0,onClickCapture:L,onMouseDownCapture:F,onMouseDown:B,onKeyPressCapture:z},w)}});Object(o.a)({as:"div",useHook:j})},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a}));var r=["baseId","unstable_idCountRef","setBaseId","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget"],o=r,a=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},o={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},a=n(175),i=/[A-Z]|^ms/g,c=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},l=Object(a.a)((function(e){return s(e)?e:e.replace(i,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(c,(function(e,t,n){return p={name:t,styles:n,next:p},t}))}return 1===o[e]||s(e)||"number"!=typeof t||0===t?t:t+"px"};function f(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return p={name:n.name,styles:n.styles,next:p},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)p={name:o.name,styles:o.styles,next:p},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o2?arguments[2]:{},a=r(t);o&&(a=i.call(a,Object.getOwnPropertySymbols(t)));for(var c=0;c0||t.offsetHeight>0||e.getClientRects().length>0}(e)}function c(e){for(;e&&!i(e);)e=o(e,a);return e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return l}));var r=n(5),o=n(11),a=n(10),i=n.n(a);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.stylesPropName,c=void 0===n?"styles":n,l=t.themePropName,f=void 0===l?"theme":l,m=t.cssPropName,w=void 0===m?"css":m,_=t.flushBefore,k=void 0!==_&&_,E=t.pureComponent,S=void 0!==E&&E,x=void 0,C=void 0,P=void 0,D=void 0,M=g(S);function T(e){return e===u.DIRECTIONS.LTR?d.default.resolveLTR:d.default.resolveRTL}function I(e){return e===u.DIRECTIONS.LTR?P:D}function R(t,n){var r=I(t),o=t===u.DIRECTIONS.LTR?x:C,a=d.default.get();return o&&r===a||(t===u.DIRECTIONS.RTL?(C=e?d.default.createRTL(e):y,D=a,o=C):(x=e?d.default.createLTR(e):y,P=a,o=x)),o}function N(e,t){return{resolveMethod:T(e),styleDef:R(e)}}return function(e){var t=e.displayName||e.name||"Component",n=function(t){function n(e,t){p(this,n);var r=b(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t)),o=r.context[u.CHANNEL]?r.context[u.CHANNEL].getState():j;return r.state=N(o),r}return h(n,t),o(n,[{key:"componentDidMount",value:function(){var e=this;this.context[u.CHANNEL]&&(this.channelUnsubscribe=this.context[u.CHANNEL].subscribe((function(t){e.setState(N(t))})))}},{key:"componentWillUnmount",value:function(){this.channelUnsubscribe&&this.channelUnsubscribe()}},{key:"render",value:function(){var t;k&&d.default.flush();var n=this.state,o=n.resolveMethod,a=n.styleDef;return i.default.createElement(e,r({},this.props,(v(t={},f,d.default.get()),v(t,c,a()),v(t,w,o),t)))}}]),n}(M);return n.WrappedComponent=e,n.displayName="withStyles("+String(t)+")",n.contextTypes=O,e.propTypes&&(n.propTypes=(0,a.default)({},e.propTypes),delete n.propTypes[c],delete n.propTypes[f],delete n.propTypes[w]),e.defaultProps&&(n.defaultProps=(0,a.default)({},e.defaultProps)),(0,s.default)(n,e)}};var a=f(n(88)),i=f(n(14)),c=f(n(30)),s=f(n(397)),u=n(400),l=f(n(401)),d=f(n(241));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.css=d.default.resolveLTR,t.withStylesPropTypes={styles:c.default.object.isRequired,theme:c.default.object.isRequired,css:c.default.func.isRequired};var m={},y=function(){return m};function g(e){if(e){if(!i.default.PureComponent)throw new ReferenceError("withStyles() pureComponent option requires React 15.3.0 or later");return i.default.PureComponent}return i.default.Component}var O=v({},u.CHANNEL,l.default),j=u.DIRECTIONS.LTR},function(e,t,n){"use strict";n(162),n(14),n(123)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r,o=n(54);try{r=window}catch(e){}function a(e){return e&&Object(o.a)(e).defaultView||r}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(14),o=Object(r.createContext)({})},function(e,t,n){"use strict";var r=n(8),o=n(11),a=n(13),i=n(0),c=n(10),s=n.n(c),u=n(72),l=n(27),d=n(17),f=n(35),p=n.n(f),b=n(12),h=n(160),v=n(5),m=n(1);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t0?s/2:u)+(u+s/2>window.innerWidth?window.innerWidth-u:s/2)},d=e.left;"right"===r?d=e.right:"middle"!==a&&(d=u);var f=e.right;"left"===r?f=e.left:"middle"!==a&&(f=u);var p,b={popoverLeft:d,contentWidth:d-s>0?s:d},h={popoverLeft:f,contentWidth:f+s>window.innerWidth?window.innerWidth-f:s},v=n,y=null;if(!o&&!c)if("center"===n&&l.contentWidth===s)v="center";else if("left"===n&&b.contentWidth===s)v="left";else if("right"===n&&h.contentWidth===s)v="right";else{var g="left"===(v=b.contentWidth>h.contentWidth?"left":"right")?b.contentWidth:h.contentWidth;s>window.innerWidth&&(y=window.innerWidth),g!==s&&(v="center",l.popoverLeft=window.innerWidth/2)}if(p="center"===v?l.popoverLeft:"left"===v?b.popoverLeft:h.popoverLeft,i){var O=i.getBoundingClientRect();p=Math.min(p,O.right-s)}return{xAxis:v,popoverLeft:p,contentWidth:y}}function j(e,t,n,r,o,a,i,c){var s=t.height;if(o){var u=o.getBoundingClientRect().top+s-i;if(e.top<=u)return{yAxis:n,popoverTop:Math.min(e.bottom,u)}}var l=e.top+e.height/2;"bottom"===r?l=e.bottom:"top"===r&&(l=e.top);var d={popoverTop:l,contentHeight:(l-s/2>0?s/2:l)+(l+s/2>window.innerHeight?window.innerHeight-l:s/2)},f={popoverTop:e.top,contentHeight:e.top-10-s>0?s:e.top-10},p={popoverTop:e.bottom,contentHeight:e.bottom+10+s>window.innerHeight?window.innerHeight-10-e.bottom:s},b=n,h=null;if(!o&&!c)if("middle"===n&&d.contentHeight===s)b="middle";else if("top"===n&&f.contentHeight===s)b="top";else if("bottom"===n&&p.contentHeight===s)b="bottom";else{var v="top"===(b=f.contentHeight>p.contentHeight?"top":"bottom")?f.contentHeight:p.contentHeight;h=v!==s?v:null}return{yAxis:b,popoverTop:"middle"===b?d.popoverTop:"top"===b?f.popoverTop:p.popoverTop,contentHeight:h}}var w=n(36),_=n(168),k=n(167),E=n(124),S=n(102);function x(e,t){var n=t.defaultView,r=n.frameElement;if(!r)return e;var o=r.getBoundingClientRect();return new n.DOMRect(e.left+o.left,e.top+o.top,e.width,e.height)}function C(e,t){var n,r=(n=t).ownerDocument.defaultView.getComputedStyle(n),o=r.paddingTop,a=r.paddingBottom,i=r.paddingLeft,c=r.paddingRight,s=o?parseInt(o,10):0,u=a?parseInt(a,10):0,l=i?parseInt(i,10):0,d=c?parseInt(c,10):0;return{x:e.left+l,y:e.top+s,width:e.width-l-d,height:e.height-s-u,left:e.left+l,right:e.right-d,top:e.top+s,bottom:e.bottom-u}}function P(e,t,n){n?e.getAttribute(t)!==n&&e.setAttribute(t,n):e.hasAttribute(t)&&e.removeAttribute(t)}function D(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==n&&(e.style[t]=n)}function M(e,t,n){n?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}var T=function(e){var t=e.headerTitle,n=e.onClose,c=e.onKeyDown,f=e.children,v=e.className,m=e.noArrow,y=void 0===m||m,T=e.isAlternate,I=e.position,R=void 0===I?"bottom right":I,N=(e.range,e.focusOnMount),A=void 0===N?"firstElement":N,L=e.anchorRef,F=e.shouldAnchorIncludePadding,z=e.anchorRect,B=e.getAnchorRect,H=e.expandOnMobile,V=e.animate,K=void 0===V||V,W=e.onClickOutside,U=e.onFocusOutside,G=e.__unstableStickyBoundaryElement,$=e.__unstableSlotName,q=void 0===$?"Popover":$,Y=e.__unstableObserveElement,X=e.__unstableBoundaryParent,Z=e.__unstableForcePosition,J=Object(a.a)(e,["headerTitle","onClose","onKeyDown","children","className","noArrow","isAlternate","position","range","focusOnMount","anchorRef","shouldAnchorIncludePadding","anchorRect","getAnchorRect","expandOnMobile","animate","onClickOutside","onFocusOutside","__unstableStickyBoundaryElement","__unstableSlotName","__unstableObserveElement","__unstableBoundaryParent","__unstableForcePosition"]),Q=Object(i.useRef)(null),ee=Object(i.useRef)(null),te=Object(i.useRef)(),ne=Object(b.useViewportMatch)("medium","<"),re=Object(i.useState)(),oe=Object(o.a)(re,2),ae=oe[0],ie=oe[1],ce=Object(k.a)(q),se=H&&ne,ue=Object(b.useResizeObserver)(),le=Object(o.a)(ue,2),de=le[0],fe=le[1];y=se||y,Object(i.useLayoutEffect)((function(){if(se)return M(te.current,"is-without-arrow",y),M(te.current,"is-alternate",T),P(te.current,"data-x-axis"),P(te.current,"data-y-axis"),D(te.current,"top"),D(te.current,"left"),D(ee.current,"maxHeight"),void D(ee.current,"maxWidth");var e=function(){if(te.current&&ee.current){var e=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;if(t)return t;if(n){if(!e.current)return;return n(e.current)}if(!1!==r){if(!(r&&window.Range&&window.Element&&window.DOMRect))return;if("function"==typeof(null==r?void 0:r.cloneRange))return x(Object(l.getRectangleFromRange)(r),r.endContainer.ownerDocument);if("function"==typeof(null==r?void 0:r.getBoundingClientRect)){var a=x(r.getBoundingClientRect(),r.ownerDocument);return o?a:C(a,r)}var i=r.top,c=r.bottom,s=i.getBoundingClientRect(),u=c.getBoundingClientRect(),d=x(new window.DOMRect(s.left,s.top,s.width,u.bottom-s.top),i.ownerDocument);return o?d:C(d,r)}if(e.current){var f=e.current.parentNode,p=f.getBoundingClientRect();return o?p:C(p,f)}}(Q,z,B,L,F);if(e){var t,n,r=te.current,a=r.offsetParent,i=r.ownerDocument,c=0;if(a&&a!==i.body){var s=a.getBoundingClientRect();c=s.top,e=new window.DOMRect(e.left-s.left,e.top-s.top,e.width,e.height)}if(X)t=null===(n=te.current.closest(".popover-slot"))||void 0===n?void 0:n.parentNode;var u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",r=arguments.length>3?arguments[3]:void 0,a=arguments.length>5?arguments[5]:void 0,i=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,s=n.split(" "),u=Object(o.a)(s,3),l=u[0],d=u[1],f=void 0===d?"center":d,p=u[2],b=j(e,t,l,p,r,0,a,c),h=O(e,t,f,p,r,b.yAxis,i,c);return g(g({},h),b)}(e,fe.height?fe:ee.current.getBoundingClientRect(),R,G,te.current,c,t,Z),d=u.popoverTop,f=u.popoverLeft,p=u.xAxis,b=u.yAxis,h=u.contentHeight,v=u.contentWidth;"number"==typeof d&&"number"==typeof f&&(D(te.current,"top",d+"px"),D(te.current,"left",f+"px")),M(te.current,"is-without-arrow",y||"center"===p&&"middle"===b),M(te.current,"is-alternate",T),P(te.current,"data-x-axis",p),P(te.current,"data-y-axis",b),D(ee.current,"maxHeight","number"==typeof h?h+"px":""),D(ee.current,"maxWidth","number"==typeof v?v+"px":"");ie(({left:"right",right:"left"}[p]||"center")+" "+({top:"bottom",bottom:"top"}[b]||"middle"))}}};e();var t,n=te.current.ownerDocument,r=n.defaultView,a=r.setInterval(e,500),i=function(){r.cancelAnimationFrame(t),t=r.requestAnimationFrame(e)};r.addEventListener("click",i),r.addEventListener("resize",e),r.addEventListener("scroll",e,!0);var c,s=function(e){if(e)return e.endContainer?e.endContainer.ownerDocument:e.top?e.top.ownerDocument:e.ownerDocument}(L);return s&&s!==n&&(s.defaultView.addEventListener("resize",e),s.defaultView.addEventListener("scroll",e,!0)),Y&&(c=new r.MutationObserver(e)).observe(Y,{attributes:!0}),function(){r.clearInterval(a),r.removeEventListener("resize",e),r.removeEventListener("scroll",e,!0),r.removeEventListener("click",i),r.cancelAnimationFrame(t),s&&s!==n&&(s.defaultView.removeEventListener("resize",e),s.defaultView.removeEventListener("scroll",e,!0)),c&&c.disconnect()}}),[se,z,B,L,F,R,fe,G,Y,X]);var pe=Object(b.useConstrainedTabbing)(),be=Object(b.useFocusReturn)(),he=Object(b.useFocusOnMount)(A),ve=Object(b.__experimentalUseFocusOutside)((function(e){if(U)return void U(e);if(!W)return void(n&&n());var t;try{t=new window.MouseEvent("click")}catch(e){(t=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null)}Object.defineProperty(t,"target",{get:function(){return e.relatedTarget}}),p()("Popover onClickOutside prop",{alternative:"onFocusOutside"}),W(t)})),me=[te,A?pe:null,A?be:null,A?he:null],ye=Object(i.useCallback)(Object(u.a)(me),me);var ge=Boolean(K&&ae)&&Object(S.b)({type:"appear",origin:ae}),Oe=Object(i.createElement)("div",Object(r.a)({className:s()("components-popover",v,ge,{"is-expanded":se,"is-without-arrow":y,"is-alternate":T})},J,{onKeyDown:function(e){e.keyCode===d.ESCAPE&&n&&(e.stopPropagation(),n()),c&&c(e)}},ve,{ref:ye,tabIndex:"-1"}),se&&Object(i.createElement)(_.a,null),se&&Object(i.createElement)("div",{className:"components-popover__header"},Object(i.createElement)("span",{className:"components-popover__header-title"},t),Object(i.createElement)(w.a,{className:"components-popover__close",icon:h.a,onClick:n})),Object(i.createElement)("div",{ref:ee,className:"components-popover__content"},Object(i.createElement)("div",{style:{position:"relative"}},de,f)));return ce.ref&&(Oe=Object(i.createElement)(E.a,{name:q},Oe)),L||z?Oe:Object(i.createElement)("span",{ref:Q},Oe)};T.Slot=function(e){var t=e.name,n=void 0===t?"Popover":t;return Object(i.createElement)(E.b,{bubblesVirtually:!0,name:n,className:"popover-slot"})};t.a=T},function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(183)),a=r(n(184)),i=n(14),c=r(i),s=r(n(158)),u=r(n(185)),l={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!=typeof t)return!1;if(l.str(e)||l.num(e))return e===t;if(l.obj(e)&&l.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!l.und(n)||e===t}};function d(){var e=i.useState(!1)[1];return i.useCallback((function(){return e((function(e){return!e}))}),[])}function f(e,t){return l.und(e)||l.nul(e)?t:e}function p(e){return l.und(e)?[]:l.arr(e)?e:[e]}function b(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=n.length)break;a=n[o++]}else{if((o=n.next()).done)break;a=o.value}for(var i=a,c=!1,s=0;s=p.startTime+u.duration;else if(u.decay)v=b+g/(1-.998)*(1-Math.exp(-(1-.998)*(t-p.startTime))),(l=Math.abs(p.lastPosition-v)<.1)&&(h=v);else{d=void 0!==p.lastTime?p.lastTime:t,g=void 0!==p.lastVelocity?p.lastVelocity:u.initialVelocity,t>d+64&&(d=t);for(var O=Math.floor(t-d),j=0;jh:v=e);++n);return n-1}(e,a);return function(e,t,n,r,o,a,i,c,s){var u=s?s(e):e;if(un){if("identity"===c)return u;"clamp"===c&&(u=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t);u=a(u),r===-1/0?u=-u:o===1/0?u+=r:u=u*(o-r)+r;return u}(e,a[t],a[t+1],o[t],o[t+1],s,i,c,r.map)}}var B=function(e){function t(n,r,o,a){var i;return(i=e.call(this)||this).calc=void 0,i.payload=n instanceof g&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],i.calc=z(r,o,a),i}s(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t,n){this.calc=z(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(g);var H=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}s(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t,n){return new B(this,e,t,n)},t}(y),V=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new H(e)})),n}s(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new B(this,e,t)},t}(g),K=0,W=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=K++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=h(e),n=t.delay,r=void 0===n?0:n,i=t.to,c=a(t,["delay","to"]);if(l.arr(i)||l.fun(i))this.queue.push(o({},c,{delay:r,to:i}));else if(i){var s={};Object.entries(i).forEach((function(e){var t,n=e[0],a=e[1],i=o({to:(t={},t[n]=a,t),delay:b(r,n)},c),u=s[i.delay]&&s[i.delay].to;s[i.delay]=o({},s[i.delay],i,{to:o({},u,i.to)})})),this.queue=Object.values(s)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(c),this},t.start=function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,a=e.to,i=void 0===a?{}:a;l.obj(r)&&(n.merged=o({},r,n.merged)),l.obj(i)&&(n.merged=o({},n.merged,i))}));var r=this.local=++this.guid,i=this.localQueue=this.queue;this.queue=[],i.forEach((function(t,o){var c=t.delay,s=a(t,["delay"]),u=function(t){o===i.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},d=l.arr(s.to)||l.fun(s.to);c?setTimeout((function(){r===n.guid&&(d?n.runAsync(s,u):n.diff(s).start(u))}),c):d?n.runAsync(s,u):n.diff(s).start(u)}))}else l.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,L.has(t)||L.add(t),A||(A=!0,k(M||F));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){var t;return this.stop(!0),e&&(t=this,L.has(t)&&L.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,a(e,["delay"])),i=this.local,c=Promise.resolve(void 0);if(l.arr(r.to))for(var s=function(e){var t=e,a=o({},r,h(r.to[t]));l.arr(a.config)&&(a.config=a.config[t]),c=c.then((function(){if(i===n.guid)return new Promise((function(e){return n.diff(a).start(e)}))}))},u=0;u=r.length)return"break";i=r[a++]}else{if((a=r.next()).done)return"break";i=a.value}var n=i.key,c=function(e){return e.key!==n};(l.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(c),e.current.deleted=e.current.deleted.filter(c))},r=e.current.deleted,o=Array.isArray(r),a=0;for(r=o?r:r[Symbol.iterator]();;){var i;if("break"===n())break}e.current.forceUpdate()}var X=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof y||(t=v.transform(t)),n.payload=t,n}return s(t,e),t}(O),Z={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},J="[-+]?\\d*\\.?\\d+";function Q(){for(var e=arguments.length,t=new Array(e),n=0;n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ue(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,a=se(o,r,e+1/3),i=se(o,r,e),c=se(o,r,e-1/3);return Math.round(255*a)<<24|Math.round(255*i)<<16|Math.round(255*c)<<8}function le(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function de(e){return(parseFloat(e)%360+360)%360/360}function fe(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function pe(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function be(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ie.exec(t))?parseInt(n[1]+"ff",16)>>>0:Z.hasOwnProperty(t)?Z[t]:(n=ee.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|255)>>>0:(n=te.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|fe(n[4]))>>>0:(n=oe.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ce.exec(t))?parseInt(n[1],16)>>>0:(n=ae.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ne.exec(t))?(255|ue(de(n[1]),pe(n[2]),pe(n[3])))>>>0:(n=re.exec(t))?(ue(de(n[1]),pe(n[2]),pe(n[3]))|fe(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var he=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ve=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,me=new RegExp("("+Object.keys(Z).join("|")+")","g"),ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ge=["Webkit","Ms","Moz","O"];function Oe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}ye=Object.keys(ye).reduce((function(e,t){return ge.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ye);var je={};I((function(e){return new X(e)})),P("div"),S((function(e){var t=e.output.map((function(e){return e.replace(ve,be)})).map((function(e){return e.replace(me,be)})),n=t[0].match(he).map((function(){return[]}));t.forEach((function(e){e.match(he).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(he).map((function(t,r){return z(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(he,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),w(Z),j((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,i=t.scrollLeft,c=a(t,["style","children","scrollTop","scrollLeft"]),s="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var u in void 0!==o&&(e.scrollTop=o),void 0!==i&&(e.scrollLeft=i),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(u)){var l=0===u.indexOf("--"),d=Oe(u,n[u],l);"float"===u&&(u="cssFloat"),l?e.style.setProperty(u,d):e.style[u]=d}for(var f in c){var p=s?f:je[f]||(je[f]=f.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(p)&&e.setAttribute(p,c[f])}}),(function(e){return e}));var we,_e,ke=(we=function(e){return i.forwardRef((function(t,n){var r=d(),s=i.useRef(!0),u=i.useRef(null),f=i.useRef(null),p=i.useCallback((function(e){var t=u.current;u.current=new N(e,(function(){var e=!1;f.current&&(e=v.fn(f.current,u.current.getAnimatedValue())),f.current&&!1!==e||r()})),t&&t.detach()}),[]);i.useEffect((function(){return function(){s.current=!1,u.current&&u.current.detach()}}),[]),i.useImperativeHandle(n,(function(){return T(f,s,r)})),p(t);var b,h=u.current.getValue(),m=(h.scrollTop,h.scrollLeft,a(h,["scrollTop","scrollLeft"])),y=(b=e,!l.fun(b)||b.prototype instanceof c.Component?function(e){return f.current=function(e,t){return t&&(l.fun(t)?t(e):l.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return c.createElement(e,o({},m,{ref:y}))}))},void 0===(_e=!1)&&(_e=!0),function(e){return(l.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=_e?t[0].toLowerCase()+t.substring(1):t;return e[n]=we(n),e}),we)}),Ee=ke(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);t.apply=ke,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=F,t.animated=Ee,t.a=Ee,t.interpolate=function(e,t,n){return e&&new B(e,t,n)},t.Globals=R,t.useSpring=function(e){var t=l.fun(e),n=U(1,t?e:[e]),r=n[0],o=n[1],a=n[2];return t?[r[0],o,a]:r},t.useTrail=function(e,t){var n=i.useRef(!1),r=l.fun(t),a=b(t),c=i.useRef(),s=U(e,(function(e,t){return 0===e&&(c.current=[]),c.current.push(t),o({},a,{config:b(a.config,e),attach:e>0&&function(){return c.current[e-1]}})})),u=s[0],d=s[1],f=s[2],p=i.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,i=c.current[r];return o({},e,{config:b(e.config||a.config,t),attach:i&&function(){return i}})}))}}),[e,a.reverse]);return i.useEffect((function(){n.current&&!r&&p(t)})),i.useEffect((function(){n.current=!0}),[]),r?[u,p,f]:u},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),c=q(r),s=c.lazy,u=void 0!==s&&s,l=(c.unique,c.reset),f=void 0!==l&&l,p=(c.enter,c.leave,c.update,c.onDestroyed),h=(c.keys,c.items,c.onFrame),v=c.onRest,m=c.onStart,y=c.ref,g=a(c,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),O=d(),j=i.useRef(!1),w=i.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!j.current&&new Map,forceUpdate:O});return i.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(w.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(w.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(w.current.instances).map((function(e){return e[1]}))}}})),w.current=function(e,t){var n=e.first,r=e.prevProps,i=a(e,["first","prevProps"]),c=q(t),s=c.items,u=c.keys,l=c.initial,d=c.from,f=c.enter,p=c.leave,h=c.update,v=c.trail,m=void 0===v?0:v,y=c.unique,g=c.config,O=c.order,j=void 0===O?["enter","leave","update"]:O,w=q(r),_=w.keys,k=w.items,E=o({},i.current),S=[].concat(i.deleted),x=Object.keys(E),C=new Set(x),P=new Set(u),D=u.filter((function(e){return!C.has(e)})),M=i.transitions.filter((function(e){return!e.destroyed&&!P.has(e.originalKey)})).map((function(e){return e.originalKey})),T=u.filter((function(e){return C.has(e)})),I=-m;for(;j.length;){switch(j.shift()){case"enter":D.forEach((function(e,t){y&&S.find((function(t){return t.originalKey===e}))&&(S=S.filter((function(t){return t.originalKey!==e})));var r=u.indexOf(e),o=s[r],a=n&&void 0!==l?"initial":"enter";E[e]={slot:a,originalKey:e,key:y?String(e):G++,item:o,trail:I+=m,config:b(g,o,a),from:b(n&&void 0!==l?l||{}:d,o),to:b(f,o)}}));break;case"leave":M.forEach((function(e){var t=_.indexOf(e),n=k[t];S.unshift(o({},E[e],{slot:"leave",destroyed:!0,left:_[Math.max(0,t-1)],right:_[Math.min(_.length,t+1)],trail:I+=m,config:b(g,n,"leave"),to:b(p,n)})),delete E[e]}));break;case"update":T.forEach((function(e){var t=u.indexOf(e),n=s[t];E[e]=o({},E[e],{item:n,slot:"update",trail:I+=m,config:b(g,n,"update"),to:b(h,n)})}))}}var R=u.map((function(e){return E[e]}));return S.forEach((function(e){var t,n=e.left,r=(e.right,a(e,["left","right"]));-1!==(t=R.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),R=[].concat(R.slice(0,t),[r],R.slice(t))})),o({},i,{changed:D.length||M.length||T.length,first:n&&0===D.length,transitions:R,current:E,deleted:S,prevProps:t})}(w.current,r),w.current.changed&&w.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,a=e.config,i=e.trail,c=e.key,s=e.item;w.current.instances.has(c)||w.current.instances.set(c,new W);var l=w.current.instances.get(c),d=o({},g,{to:r,from:n,config:a,ref:y,onRest:function(n){w.current.mounted&&(e.destroyed&&(y||u||Y(w,c),p&&p(s)),!Array.from(w.current.instances).some((function(e){return!e[1].idle}))&&(y||u)&&w.current.deleted.length>0&&Y(w),v&&v(s,t,n))},onStart:m&&function(){return m(s,t)},onFrame:h&&function(e){return h(s,t,e)},delay:i,reset:f&&"enter"===t});l.update(d),w.current.paused||l.start()})),i.useEffect((function(){return w.current.mounted=j.current=!0,function(){w.current.mounted=j.current=!1,Array.from(w.current.instances).map((function(e){return e[1].destroy()})),w.current.instances.clear()}}),[]),w.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:w.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=i.useRef();i.useEffect((function(){l.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var a=e.current;if(a){var i=a.controllers;if(i.length){var c=n*t[r];i.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+c})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=U},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(14),o=n(111),a=n(77);var i=function(e,t,n){void 0===n&&(n=t.children);var i=Object(r.useContext)(o.a);if(i.useCreateElement)return i.useCreateElement(e,t,n);if("string"==typeof e&&function(e){return"function"==typeof e}(n)){t.children;return n(Object(a.b)(t,["children"]))}return Object(r.createElement)(e,t,n)}},,,function(e,t){function n(e,t,n,r){var o,a=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),i=t.get(a);return void 0===i&&(i=e.call(this,r),t.set(a,i)),i}function r(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),a=t.get(o);return void 0===a&&(a=e.apply(this,r),t.set(o,a)),a}function o(e,t,n,r,o){return n.bind(t,e,r,o)}function a(e,t){return o(e,this,1===e.length?n:r,t.cache.create(),t.serializer)}function i(){return JSON.stringify(arguments)}function c(){this.cache=Object.create(null)}c.prototype.has=function(e){return e in this.cache},c.prototype.get=function(e){return this.cache[e]},c.prototype.set=function(e,t){this.cache[e]=t};var s={create:function(){return new c}};e.exports=function(e,t){var n=t&&t.cache?t.cache:s,r=t&&t.serializer?t.serializer:i;return(t&&t.strategy?t.strategy:a)(e,{cache:n,serializer:r})},e.exports.strategies={variadic:function(e,t){return o(e,this,r,t.cache.create(),t.serializer)},monadic:function(e,t){return o(e,this,n,t.cache.create(),t.serializer)}}},function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var s,u=[],l=!1,d=-1;function f(){l&&s&&(l=!1,s.length?u=s.concat(u):d=-1,u.length&&p())}function p(){if(!l){var e=c(f);l=!0;for(var t=u.length;t;){for(s=u,u=[];++d1)for(var n=1;n-1?o(n):n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(20),o=n(59),a=n(58),i=n(14),c=n(89),s=[].concat(["baseId","unstable_idCountRef","setBaseId"],["id"]),u=Object(a.a)({keys:s,useOptions:function(e,t){var n=Object(i.useContext)(c.a),o=Object(i.useState)((function(){return e.unstable_idCountRef?(e.unstable_idCountRef.current+=1,"-"+e.unstable_idCountRef.current):e.baseId?"-"+n(""):""}))[0],a=Object(i.useMemo)((function(){return e.baseId||n()}),[e.baseId,n]),s=t.id||e.id||""+a+o;return Object(r.b)(Object(r.b)({},e),{},{id:s})},useProps:function(e,t){return Object(r.b)({id:e.id},t)}});Object(o.a)({as:"div",useHook:u})},function(e,t,n){"use strict";(function(e){var r=n(8),o=n(5),a=n(13),i=n(0),c=n(490),s=(n(103),n(85));function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t2?n-2:0),o=2;o0&&void 0!==arguments[0]?arguments[0]:{},t=e.htmlDocument,n=void 0===t?document:t,i=e.className,c=void 0===i?"lockscroll":i,l=0,d=0;function f(e){var t=n.scrollingElement||n.body;e&&(d=t.scrollTop);var r=e?"add":"remove";t.classList[r](c),n.documentElement.classList[r](c),e||(t.scrollTop=d)}function p(){0===l&&f(!0),++l}function b(){1===l&&f(!1),--l}return function(e){Object(a.a)(n,e);var t=u(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"componentDidMount",value:function(){p()}},{key:"componentWillUnmount",value:function(){b()}},{key:"render",value:function(){return null}}]),n}(s.Component)}()},function(e,t,n){"use strict";(function(e){var r=n(0),o=n(2),a=n(10),i=n.n(a),c=n(48),s=n(1),u=(n(103),n(36));t.a=Object(r.forwardRef)((function(t,n){var a=t.className,l=t.children,d=t.spokenMessage,f=void 0===d?l:d,p=t.politeness,b=void 0===p?"polite":p,h=t.actions,v=void 0===h?[]:h,m=t.onRemove,y=void 0===m?o.noop:m,g=t.icon,O=void 0===g?null:g,j=t.explicitDismiss,w=void 0!==j&&j,_=t.onDismiss,k=void 0===_?o.noop:_;function E(e){e&&e.preventDefault&&e.preventDefault(),k(),y()}k=k||o.noop,function(e,t){var n="string"==typeof e?e:Object(r.renderToString)(e);Object(r.useEffect)((function(){n&&Object(c.speak)(n,t)}),[n,t])}(f,b),Object(r.useEffect)((function(){var e=setTimeout((function(){w||(k(),y())}),1e4);return function(){return clearTimeout(e)}}),[k,y]);var S=i()(a,"components-snackbar",{"components-snackbar-explicit-dismiss":!!w});v&&v.length>1&&(void 0!==e&&e.env,v=[v[0]]);var x=i()("components-snackbar__content",{"components-snackbar__content-with-icon":!!O});return Object(r.createElement)("div",{ref:n,className:S,onClick:w?o.noop:E,tabIndex:"0",role:w?"":"button",onKeyPress:w?o.noop:E,"aria-label":w?"":Object(s.__)("Dismiss this notice")},Object(r.createElement)("div",{className:x},O&&Object(r.createElement)("div",{className:"components-snackbar__icon"},O),l,v.map((function(e,t){var n=e.label,o=e.onClick,a=e.url;return Object(r.createElement)(u.a,{key:t,href:a,isTertiary:!0,onClick:function(e){return function(e,t){e.stopPropagation(),y(),t&&t(e)}(e,o)},className:"components-snackbar__action"},n)})),w&&Object(r.createElement)("span",{role:"button","aria-label":"Dismiss this notice",tabIndex:"0",className:"components-snackbar__dismiss-button",onClick:E,onKeyPress:E},"✕")))}))}).call(this,n(120))},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(66);function o(e){var t=Object(r.a)(e);if(!t)return!1;if(t===e)return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function a(e,t){var n=void 0===t?{}:t,r=n.preventScroll,a=n.isActive,i=void 0===a?o:a;return i(e)?-1:(e.focus({preventScroll:r}),i(e)?-1:requestAnimationFrame((function(){e.focus({preventScroll:r})})))}},,function(e,t,n){"use strict";function r(e,t){return e===t||e.contains(t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";t.a=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t=0||(o[n]=e[n]);return o}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},,,,,function(e,t,n){"use strict";var r=n(191);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var o=n.allowHorizontalScroll,a=n.onlyScrollIfNeeded,i=n.alignWithTop,c=n.alignWithLeft,s=n.offsetTop||0,u=n.offsetLeft||0,l=n.offsetBottom||0,d=n.offsetRight||0;o=void 0===o||o;var f=r.isWindow(t),p=r.offset(e),b=r.outerHeight(e),h=r.outerWidth(e),v=void 0,m=void 0,y=void 0,g=void 0,O=void 0,j=void 0,w=void 0,_=void 0,k=void 0,E=void 0;f?(w=t,E=r.height(w),k=r.width(w),_={left:r.scrollLeft(w),top:r.scrollTop(w)},O={left:p.left-_.left-u,top:p.top-_.top-s},j={left:p.left+h-(_.left+k)+d,top:p.top+b-(_.top+E)+l},g=_):(v=r.offset(t),m=t.clientHeight,y=t.clientWidth,g={left:t.scrollLeft,top:t.scrollTop},O={left:p.left-(v.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-u,top:p.top-(v.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-s},j={left:p.left+h-(v.left+y+(parseFloat(r.css(t,"borderRightWidth"))||0))+d,top:p.top+b-(v.top+m+(parseFloat(r.css(t,"borderBottomWidth"))||0))+l}),O.top<0||j.top>0?!0===i?r.scrollTop(t,g.top+O.top):!1===i?r.scrollTop(t,g.top+j.top):O.top<0?r.scrollTop(t,g.top+O.top):r.scrollTop(t,g.top+j.top):a||((i=void 0===i||!!i)?r.scrollTop(t,g.top+O.top):r.scrollTop(t,g.top+j.top)),o&&(O.left<0||j.left>0?!0===c?r.scrollLeft(t,g.left+O.left):!1===c?r.scrollLeft(t,g.left+j.left):O.left<0?r.scrollLeft(t,g.left+O.left):r.scrollLeft(t,g.left+j.left):a||((c=void 0===c||!!c)?r.scrollLeft(t,g.left+O.left):r.scrollLeft(t,g.left+j.left)))}},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');var n="$ "+e;if(!(n in s))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===s[n]&&!t)throw new TypeError("intrinsic "+e+" exists, but is not available. Please file an issue!");return s[n]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!a.default.isMoment(e)||!a.default.isMoment(t))&&(e.date()===t.date()&&e.month()===t.month()&&e.year()===t.year())};var r,o=n(45),a=(r=o)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=r.default.isMoment(e)?e:(0,o.default)(e,t);return n?n.format(a.ISO_MONTH_FORMAT):null};var r=i(n(45)),o=i(n(258)),a=n(74);function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";var r,o=new Uint8Array(16);function a(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}var i=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var c=function(e){return"string"==typeof e&&i.test(e)},s=[],u=0;u<256;++u)s.push((u+256).toString(16).substr(1));var l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!c(n))throw TypeError("Stringified UUID is invalid");return n};t.a=function(e,t,n){var r=(e=e||{}).random||(e.rng||a)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return l(r)}},function(e,t,n){"use strict";var r=n(177);var o=function(e){function t(e,t,r){var o=t.trim().split(b);t=o;var a=o.length,i=e.length;switch(i){case 0:case 1:var c=0;for(e=0===i?"":e[0]+" ";cr&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(h,"$1"+e.trim());case 58:return e.trim()+t.replace(h,"$1"+e.trim());default:if(0<1*n&&0s.charCodeAt(8))break;case 115:i=i.replace(s,"-webkit-"+s)+";"+i;break;case 207:case 102:i=i.replace(s,"-webkit-"+(102c.charCodeAt(0)&&(c=c.trim()),c=[c],0p)&&(z=(V=V.replace(" ",":")).length),00&&O("Invalid input not EOF"),e}function w(){return _("linear-gradient",e,E)||_("repeating-linear-gradient",t,E)||_("radial-gradient",n,S)||_("repeating-radial-gradient",r,S)}function _(e,t,n){return k(t,(function(t){var r=n();return r&&(A(p)||O("Missing comma before color stops")),{type:e,orientation:r,colorStops:D(M)}}))}function k(e,t){var n=A(e);if(n)return A(d)||O("Missing ("),result=t(n),A(f)||O("Missing )"),result}function E(){return N("directional",o,1)||N("angular",l,1)}function S(){var e,t,n=x();return n&&((e=[]).push(n),t=g,A(p)&&((n=x())?e.push(n):g=t)),e}function x(){var e=function(){var e=N("shape",/^(circle)/i,0);e&&(e.style=R()||C());return e}()||function(){var e=N("shape",/^(ellipse)/i,0);e&&(e.style=I()||C());return e}();if(e)e.at=function(){if(N("position",/^at/,0)){var e=P();return e||O("Missing positioning value"),e}}();else{var t=P();t&&(e={type:"default-radial",at:t})}return e}function C(){return N("extent-keyword",a,1)}function P(){var e={x:I(),y:I()};if(e.x||e.y)return{type:"position",value:e}}function D(e){var t=e(),n=[];if(t)for(n.push(t);A(p);)(t=e())?n.push(t):O("One extra comma");return n}function M(){var e=N("hex",b,1)||k(m,(function(){return{type:"rgba",value:D(T)}}))||k(v,(function(){return{type:"rgb",value:D(T)}}))||N("literal",h,0);return e||O("Expected color definition"),e.length=I(),e}function T(){return A(y)[1]}function I(){return N("%",s,1)||N("position-keyword",i,1)||R()}function R(){return N("px",c,1)||N("em",u,1)}function N(e,t,n){var r=A(t);if(r)return{type:e,value:r[n]}}function A(e){var t,n;return(n=/^[\n\r\t\s]+/.exec(g))&&L(n[0].length),(t=e.exec(g))&&L(t[0].length),t}function L(e){g=g.substr(e)}return function(e){return g=e.toString(),j()}}(),t.parse=(n||{}).parse},,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));t.a=a},function(e,t,n){"use strict";var r=n(0),o=n(7),a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"}));t.a=a},function(e,t,n){"use strict";var r=n(0),o=n(7),a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=a},function(e,t,n){"use strict";var r=n(0),o=n(7),a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=a},,function(e,t,n){"use strict";var r=n(0),o=n(7),a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));t.a=a},function(e,t,n){"use strict";var r=n(0),o=n(7),a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M13.23 15h1.9L11 4H9L5 15h1.88l1.07-3h4.18zm-1.53-4.54H8.51L10 5.6z"}));t.a=a},function(e,t,n){"use strict";var r=n(0),o=n(7),a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"}));t.a=a},function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t=r.call(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t,n){"use strict";var r=n(334),o=n(347),a=n(163),i=n(237),c=n(236),s=n(372);e.exports=function(){var e=s(this),t=c(a(e,"length")),n=1;arguments.length>0&&void 0!==arguments[0]&&(n=i(arguments[0]));var u=r(e,0);return o(u,e,t,0,n),u}},function(e,t,n){"use strict";var r=n(55)("%Object.defineProperty%",!0);if(r)try{r({},"a",{value:1})}catch(e){r=null}var o=n(131)("Object.prototype.propertyIsEnumerable");e.exports=function(e,t,n,a,i,c){if(!r){if(!e(c))return!1;if(!c["[[Configurable]]"]||!c["[[Writable]]"])return!1;if(i in a&&o(a,i)!==!!c["[[Enumerable]]"])return!1;var s=c["[[Value]]"];return a[i]=s,t(a[i],s)}return r(a,i,n(c)),!0}},function(e,t,n){"use strict";var r=n(196),o=n(82);e.exports=function(e){if(void 0===e)return e;r(o,"Property Descriptor","Desc",e);var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(t.enumerable=e["[[Enumerable]]"]),"[[Configurable]]"in e&&(t.configurable=e["[[Configurable]]"]),t}},function(e,t,n){"use strict";var r=n(81),o=n(196),a=n(82);e.exports=function(e){return void 0!==e&&(o(a,"Property Descriptor","Desc",e),!(!r(e,"[[Value]]")&&!r(e,"[[Writable]]")))}},function(e,t,n){"use strict";var r=n(197);e.exports=function(e,t){return e===t?0!==e||1/e==1/t:r(e)&&r(t)}},function(e,t,n){"use strict";var r=n(81),o=n(55)("%TypeError%"),a=n(82),i=n(231),c=n(343);e.exports=function(e){if("Object"!==a(e))throw new o("ToPropertyDescriptor requires an object");var t={};if(r(e,"enumerable")&&(t["[[Enumerable]]"]=i(e.enumerable)),r(e,"configurable")&&(t["[[Configurable]]"]=i(e.configurable)),r(e,"value")&&(t["[[Value]]"]=e.value),r(e,"writable")&&(t["[[Writable]]"]=i(e.writable)),r(e,"get")){var n=e.get;if(void 0!==n&&!c(n))throw new o("getter must be a function");t["[[Get]]"]=n}if(r(e,"set")){var s=e.set;if(void 0!==s&&!c(s))throw new o("setter must be a function");t["[[Set]]"]=s}if((r(t,"[[Get]]")||r(t,"[[Set]]"))&&(r(t,"[[Value]]")||r(t,"[[Writable]]")))throw new o("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}},function(e,t,n){"use strict";e.exports=function(e){return!!e}},function(e,t,n){"use strict";var r,o,a=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{r=Object.defineProperty({},"length",{get:function(){throw o}}),o={},i((function(){throw 42}),null,r)}catch(e){e!==o&&(i=null)}else i=null;var c=/^\s*class\b/,s=function(e){try{var t=a.call(e);return c.test(t)}catch(e){return!1}},u=Object.prototype.toString,l="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,d="object"==typeof document&&void 0===document.all&&void 0!==document.all?document.all:{};e.exports=i?function(e){if(e===d)return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{i(e,null,r)}catch(e){if(e!==o)return!1}return!s(e)}:function(e){if(e===d)return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(l)return function(e){try{return!s(e)&&(a.call(e),!0)}catch(e){return!1}}(e);if(s(e))return!1;var t=u.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},function(e,t,n){"use strict";var r=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!r(e)&&e!==1/0&&e!==-1/0}},function(e,t,n){"use strict";var r=n(55),o=r("%Math%"),a=r("%Number%");e.exports=a.MAX_SAFE_INTEGER||o.pow(2,53)-1},function(e,t,n){"use strict";e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";var r=n(234),o=n(237);e.exports=function(e){var t=o(e);return t<=0?0:t>r?r:t}},function(e,t,n){"use strict";var r=n(360),o=n(365);e.exports=function(e){var t=o(e);return 0!==t&&(t=r(t)),0===t?0:t}},function(e,t,n){"use strict";var r=Date.prototype.getDay,o=Object.prototype.toString,a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"object"==typeof e&&null!==e&&(a?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(e,t,n){"use strict";var r=n(225);e.exports=function(){return Array.prototype.flat||r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=void 0,o=void 0;function a(e,t){var n=t(e(o));return function(){return n}}function i(e){return a(e,r.createLTR||r.create)}function c(){for(var e=arguments.length,t=Array(e),n=0;n=0?1:-1}},function(e,t){e.exports=function(e,t){var n=e%t;return Math.floor(n>=0?n:n+t)}},function(e,t,n){"use strict";var r=n(246);e.exports=function(){return"function"==typeof Object.values?Object.values:r}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!("undefined"==typeof window||!("ontouchstart"in window||window.DocumentTouch&&"undefined"!=typeof document&&document instanceof window.DocumentTouch))||!("undefined"==typeof navigator||!navigator.maxTouchPoints&&!navigator.msMaxTouchPoints)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!r.default.isMoment(e)||!r.default.isMoment(t))&&(!(0,o.default)(e,t)&&!(0,a.default)(e,t))};var r=i(n(45)),o=i(n(257)),a=i(n(201));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!a.default.isMoment(e)||!a.default.isMoment(t))return!1;var n=e.year(),r=e.month(),o=t.year(),i=t.month(),c=n===o,s=r===i;return c&&s?e.date()2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return 0;var o="width"===t?"Left":"Top",a="width"===t?"Right":"Bottom",i=!n||r?window.getComputedStyle(e):null,c=e.offsetWidth,s=e.offsetHeight,u="width"===t?c:s;n||(u-=parseFloat(i["padding"+o])+parseFloat(i["padding"+a])+parseFloat(i["border"+o+"Width"])+parseFloat(i["border"+a+"Width"]));r&&(u+=parseFloat(i["margin"+o])+parseFloat(i["margin"+a]));return u}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return 7*e+2*t+1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!a.default.isMoment(e)||!a.default.isMoment(t))&&(e.month()===t.month()&&e.year()===t.year())};var r,o=n(45),a=(r=o)&&r.__esModule?r:{default:r}},,,,function(e,t,n){"use strict";n.r(t),n.d(t,"SVG",(function(){return r.SVG})),n.d(t,"Path",(function(){return r.Path})),n.d(t,"Circle",(function(){return r.Circle})),n.d(t,"Polygon",(function(){return r.Polygon})),n.d(t,"Rect",(function(){return r.Rect})),n.d(t,"G",(function(){return r.G})),n.d(t,"HorizontalRule",(function(){return r.HorizontalRule})),n.d(t,"BlockQuotation",(function(){return r.BlockQuotation})),n.d(t,"__experimentalAlignmentMatrixControl",(function(){return bt})),n.d(t,"Animate",(function(){return ht.a})),n.d(t,"__unstableGetAnimateClassName",(function(){return ht.b})),n.d(t,"AnglePickerControl",(function(){return Do})),n.d(t,"Autocomplete",(function(){return Fo})),n.d(t,"BaseControl",(function(){return kt})),n.d(t,"__experimentalBoxControl",(function(){return oi})),n.d(t,"Button",(function(){return Io.a})),n.d(t,"ButtonGroup",(function(){return ai})),n.d(t,"Card",(function(){return wi})),n.d(t,"CardBody",(function(){return Si})),n.d(t,"CardDivider",(function(){return xi})),n.d(t,"CardFooter",(function(){return Mi})),n.d(t,"CardHeader",(function(){return Ni})),n.d(t,"CardMedia",(function(){return Ai})),n.d(t,"CheckboxControl",(function(){return zi})),n.d(t,"ClipboardButton",(function(){return Bi})),n.d(t,"__experimentalColorEdit",(function(){return Pc})),n.d(t,"ColorIndicator",(function(){return Dc})),n.d(t,"ColorPalette",(function(){return Mc})),n.d(t,"ColorPicker",(function(){return Ec})),n.d(t,"ComboboxControl",(function(){return Kc})),n.d(t,"__unstableComposite",(function(){return ot})),n.d(t,"__unstableCompositeGroup",(function(){return st})),n.d(t,"__unstableCompositeItem",(function(){return p.a})),n.d(t,"__unstableUseCompositeState",(function(){return Re})),n.d(t,"CustomSelectControl",(function(){return Us})),n.d(t,"Dashicon",(function(){return Gs.a})),n.d(t,"DateTimePicker",(function(){return ou})),n.d(t,"DatePicker",(function(){return Js})),n.d(t,"TimePicker",(function(){return ru})),n.d(t,"__experimentalDimensionControl",(function(){return du})),n.d(t,"Disabled",(function(){return gu})),n.d(t,"__unstableDisclosureContent",(function(){return wu})),n.d(t,"Draggable",(function(){return ku})),n.d(t,"DropZone",(function(){return Vu})),n.d(t,"__unstableUseDropZone",(function(){return Hu})),n.d(t,"DropZoneProvider",(function(){return Fu})),n.d(t,"__unstableDropZoneContextProvider",(function(){return Au})),n.d(t,"__unstableUseDrop",(function(){return Nu})),n.d(t,"Dropdown",(function(){return Gi})),n.d(t,"DropdownMenu",(function(){return tl})),n.d(t,"ExternalLink",(function(){return ol})),n.d(t,"Flex",(function(){return Tt})),n.d(t,"FlexBlock",(function(){return Pt})),n.d(t,"FlexItem",(function(){return Dt})),n.d(t,"FocalPointPicker",(function(){return Nl})),n.d(t,"FocusableIframe",(function(){return Al})),n.d(t,"FontSizePicker",(function(){return hd})),n.d(t,"FormFileUpload",(function(){return vd})),n.d(t,"FormToggle",(function(){return md})),n.d(t,"FormTokenField",(function(){return Ed})),n.d(t,"__experimentalGradientPicker",(function(){return cf})),n.d(t,"__experimentalCustomGradientPicker",(function(){return af})),n.d(t,"Guide",(function(){return Sf})),n.d(t,"GuidePage",(function(){return xf})),n.d(t,"Icon",(function(){return au.a})),n.d(t,"IconButton",(function(){return Cf})),n.d(t,"__experimentalInputControl",(function(){return ho})),n.d(t,"KeyboardShortcuts",(function(){return oc})),n.d(t,"MenuGroup",(function(){return Pf})),n.d(t,"MenuItem",(function(){return Mf})),n.d(t,"MenuItemsChoice",(function(){return Tf})),n.d(t,"Modal",(function(){return wf})),n.d(t,"ScrollLock",(function(){return If.a})),n.d(t,"NavigableMenu",(function(){return Zu})),n.d(t,"TabbableContainer",(function(){return Rf})),n.d(t,"__experimentalNavigation",(function(){return ep})),n.d(t,"__experimentalNavigationBackButton",(function(){return rp})),n.d(t,"__experimentalNavigationGroup",(function(){return ap})),n.d(t,"__experimentalNavigationItem",(function(){return hp})),n.d(t,"__experimentalNavigationMenu",(function(){return wp})),n.d(t,"Notice",(function(){return _p})),n.d(t,"__experimentalNumberControl",(function(){return ko})),n.d(t,"NoticeList",(function(){return kp})),n.d(t,"Panel",(function(){return Sp})),n.d(t,"PanelBody",(function(){return Pp})),n.d(t,"PanelHeader",(function(){return Ep})),n.d(t,"PanelRow",(function(){return Dp})),n.d(t,"Placeholder",(function(){return Mp})),n.d(t,"Popover",(function(){return Ro.a})),n.d(t,"QueryControls",(function(){return Fp})),n.d(t,"__experimentalRadio",(function(){return $p})),n.d(t,"__experimentalRadioGroup",(function(){return Jp})),n.d(t,"RadioControl",(function(){return Qp})),n.d(t,"RangeControl",(function(){return pd})),n.d(t,"ResizableBox",(function(){return Lb})),n.d(t,"ResponsiveWrapper",(function(){return Fb})),n.d(t,"SandBox",(function(){return Hb})),n.d(t,"SelectControl",(function(){return uu})),n.d(t,"Snackbar",(function(){return Vb.a})),n.d(t,"SnackbarList",(function(){return $b})),n.d(t,"Spinner",(function(){return eh})),n.d(t,"TabPanel",(function(){return nh})),n.d(t,"__experimentalText",(function(){return sn})),n.d(t,"TextControl",(function(){return dc})),n.d(t,"TextareaControl",(function(){return sh})),n.d(t,"TextHighlight",(function(){return uh})),n.d(t,"Tip",(function(){return lh})),n.d(t,"ToggleControl",(function(){return dh})),n.d(t,"Toolbar",(function(){return Eh})),n.d(t,"ToolbarButton",(function(){return hh})),n.d(t,"__experimentalToolbarContext",(function(){return ph.a})),n.d(t,"ToolbarGroup",(function(){return Oh})),n.d(t,"ToolbarItem",(function(){return fh.a})),n.d(t,"Tooltip",(function(){return b.a})),n.d(t,"__experimentalTreeGrid",(function(){return Dh})),n.d(t,"__experimentalTreeGridRow",(function(){return Mh})),n.d(t,"__experimentalTreeGridCell",(function(){return Nh})),n.d(t,"__experimentalTreeGridItem",(function(){return Rh})),n.d(t,"TreeSelect",(function(){return Np})),n.d(t,"__experimentalUnitControl",(function(){return ra})),n.d(t,"VisuallyHidden",(function(){return h.a})),n.d(t,"IsolatedEventContainer",(function(){return Lh})),n.d(t,"createSlotFill",(function(){return Fh.c})),n.d(t,"Slot",(function(){return Fh.b})),n.d(t,"Fill",(function(){return Fh.a})),n.d(t,"SlotFillProvider",(function(){return zh.b})),n.d(t,"__experimentalUseSlot",(function(){return Bh.a})),n.d(t,"navigateRegions",(function(){return Kh})),n.d(t,"__unstableUseNavigateRegions",(function(){return Vh})),n.d(t,"withConstrainedTabbing",(function(){return Wh})),n.d(t,"withFallbackStyles",(function(){return Gh})),n.d(t,"withFilters",(function(){return Yh})),n.d(t,"withFocusOutside",(function(){return Bc})),n.d(t,"withFocusReturn",(function(){return Xh})),n.d(t,"FocusReturnProvider",(function(){return Zh})),n.d(t,"withNotices",(function(){return nv})),n.d(t,"withSpokenMessages",(function(){return Ao})),n.d(t,"__unstableWithNext",(function(){return rn})),n.d(t,"__unstableComponentSystemProvider",(function(){return rv}));var r=n(7),o=n(8),a=n(11),i=n(13),c=n(0),s=n(2),u=n(10),l=n.n(u),d=n(1),f=n(12),p=n(179),b=n(79),h=n(56),v=[["top left","top center","top right"],["center left","center center","center right"],["bottom left","bottom center","bottom right"]],m={"top left":Object(d.__)("Top Left"),"top center":Object(d.__)("Top Center"),"top right":Object(d.__)("Top Right"),"center left":Object(d.__)("Center Left"),"center center":Object(d.__)("Center Center"),"center right":Object(d.__)("Center Right"),"bottom left":Object(d.__)("Bottom Left"),"bottom center":Object(d.__)("Bottom Center"),"bottom right":Object(d.__)("Bottom Right")},y=Object(s.flattenDeep)(v);function g(e){return("center"===e?"center center":e).replace("-"," ")}function O(e,t){var n=g(t).replace(" ","-");return"".concat(e,"-").concat(n)}var j=n(286),w=n.n(j),_=n(14),k=n.n(_),E=n(287),S=n(40),x=n(99),C=n(98),P=E.a,D=function(e){return"theme"!==e&&"innerRef"!==e},M=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?P:D};function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=A()(e).toRgb(),r=n.r,o=n.g,a=n.b;return"rgba(".concat(r,", ").concat(o,", ").concat(a,", ").concat(t,")")}function J(e){return Object(s.get)(X,e,"#000")}function Q(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transition";switch(t){case"transition":e="transition-duration: 0ms;";break;case"animation":e="animation-duration: 1ms;";break;default:e="\n\t\t\t\tanimation-duration: 1ms;\n\t\t\t\ttransition-duration: 0ms;\n\t\t\t"}return"\n\t\t@media ( prefers-reduced-motion: reduce ) {\n\t\t\t".concat(e,";\n\t\t}\n\t")}var ee={name:"1xiracb",styles:"border-radius:2px;box-sizing:border-box;display:grid;grid-template-columns:repeat( 3,1fr );outline:none;"},te=function(){return ee},ne=R("div",{target:"e1od1u4s0",label:"Root"})(te,";border:1px solid transparent;cursor:pointer;grid-template-columns:auto;",(function(e){var t=e.size,n=void 0===t?92:t;return Object(S.b)("grid-template-rows:repeat( 3,calc( ",n,"px / 3 ) );width:",n,"px;")}),";"),re=R("div",{target:"e1od1u4s1",label:"Row"})({name:"1177s8r",styles:"box-sizing:border-box;display:grid;grid-template-columns:repeat( 3,1fr );"}),oe=function(e){return Object(S.b)("background:currentColor;box-sizing:border-box;display:grid;margin:auto;transition:all 120ms linear;",Q("transition")," ",(t=e.isActive,n=t?"0 0 0 2px ".concat(J("black")):null,r=J(t?"black":"lightGray.800"),o=J(t?"black":"blue.medium.focus"),Object(S.b)("box-shadow:",n,";color:",r,";*:hover > &{color:",o,";}")),"");var t,n,r,o},ae=R("span",{target:"e1od1u4s2",label:"Point"})("height:6px;width:6px;",oe,""),ie=R("span",{target:"e1od1u4s3",label:"Cell"})({name:"10ro24i",styles:"appearance:none;border:none;box-sizing:border-box;margin:0;display:flex;position:relative;outline:none;align-items:center;justify-content:center;padding:0;"});function ce(e){var t=e.isActive,n=void 0!==t&&t,r=e.value,a=Object(i.a)(e,["isActive","value"]),s=m[r];return Object(c.createElement)(b.a,{text:s},Object(c.createElement)(p.a,Object(o.a)({as:ie,role:"gridcell"},a),Object(c.createElement)(h.a,null,r),Object(c.createElement)(ae,{isActive:n,role:"presentation"})))}var se=n(20),ue=n(70);function le(e){return Object(_.useState)(e)[0]}var de=n(54);function fe(e){for(var t,n=[[]],r=function(){var e=t.value,r=n.find((function(t){return!t[0]||t[0].groupId===e.groupId}));r?r.push(e):n.push([e])},o=Object(se.c)(e);!(t=o()).done;)r();return n}function pe(e){for(var t,n=[],r=Object(se.c)(e);!(t=r()).done;){var o=t.value;n.push.apply(n,o)}return n}function be(e){return e.slice().reverse()}var he=n(62);function ve(e,t){if(t)return null==e?void 0:e.find((function(e){return e.id===t&&!e.disabled}))}function me(e,t){return function(e){return"function"==typeof e}(e)?e(t):e}var ye=n(89);function ge(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function Oe(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&ge(t.ref.current,e.ref.current)}))}function je(e){for(var t,n=0,r=Object(se.c)(e);!(t=r()).done;){var o=t.value.length;o>n&&(n=o)}return n}function we(e){for(var t=fe(e),n=je(t),r=[],o=0;oa&&(n=!0),-1):(r &{color:currentColor;}")}),";"),dt=ie;function ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"center",t=g(e).replace("-"," "),n=y.indexOf(t);return n>-1?n:void 0}(p),v=(s/24).toFixed(2),m=l()("component-alignment-matrix-control-icon",t),O=pt(pt({},d),{},{transform:"scale(".concat(v,")")});return Object(c.createElement)(ut,Object(o.a)({},b,{className:m,disablePointerEvents:r,role:"presentation",size:s,style:O}),y.map((function(e,t){var n=h===t;return Object(c.createElement)(dt,{key:e},Object(c.createElement)(lt,{isActive:n}))})))};var ht=n(102),vt={"default.fontFamily":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif","default.fontSize":"13px","helpText.fontSize":"12px",mobileTextMinFontSize:"16px"};function mt(e){return Object(s.get)(vt,e,"")}function yt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return isNaN(e)?"".concat(8,"px"):"".concat(8*e,"px")}var gt=R("div",{target:"e1puf3u0",label:"Wrapper"})("font-family:",mt("default.fontFamily"),";font-size:",mt("default.fontSize"),";"),Ot=R("div",{target:"e1puf3u1",label:"StyledField"})("margin-bottom:",yt(1),";.components-panel__row &{margin-bottom:inherit;}"),jt=R("label",{target:"e1puf3u2",label:"StyledLabel"})("display:inline-block;margin-bottom:",yt(1),";"),wt=R("p",{target:"e1puf3u3",label:"StyledHelp"})("margin-top:-",yt(1),";font-size:",mt("helpText.fontSize"),";font-style:normal;color:",J("mediumGray.text"),";");function _t(e){var t=e.id,n=e.label,r=e.hideLabelFromVision,o=e.help,a=e.className,i=e.children;return Object(c.createElement)(gt,{className:l()("components-base-control",a)},Object(c.createElement)(Ot,{className:"components-base-control__field"},n&&t&&(r?Object(c.createElement)(h.a,{as:"label",htmlFor:t},n):Object(c.createElement)(jt,{className:"components-base-control__label",htmlFor:t},n)),n&&!t&&(r?Object(c.createElement)(h.a,{as:"label"},n):Object(c.createElement)(_t.VisualLabel,null,n)),i),!!o&&Object(c.createElement)(wt,{id:t+"__help",className:"components-base-control__help"},o))}_t.VisualLabel=function(e){var t=e.className,n=e.children;return t=l()("components-base-control__label",t),Object(c.createElement)("span",{className:t},n)};var kt=_t;var Et={name:"8kj89b",styles:"flex-direction:row-reverse;"},St=R("div",{target:"eboqfv50",label:"Flex"})("box-sizing:border-box;display:flex;width:100%;",(function(e){var t=e.align,n={top:"flex-start",bottom:"flex-end"}[t]||t;return Object(S.b)({alignItems:n},"")})," ",(function(e){var t=e.justify,n=e.isReversed,r={left:"flex-start",right:"flex-end"},o=r[t]||t;return n&&r[t]&&(o="left"===t?r.right:r.left),Object(S.b)({justifyContent:o},"")})," ",(function(e){var t=e.gap,n=e.isReversed,r="number"==typeof t?4*t:4,o="margin-".concat(n?"left":"right");return Object(S.b)("> *{",o,":",r,"px;&:last-child{",o,":0;}}")})," ",(function(e){return e.isReversed?Et:""}),""),xt=R("div",{target:"eboqfv51",label:"Item"})({name:"13luw5d",styles:"box-sizing:border-box;min-width:0;max-width:100%;"}),Ct=R(xt,{target:"eboqfv52",label:"Block"})({name:"1rr4qq7",styles:"flex:1;"});var Pt=Object(c.forwardRef)((function(e,t){var n=e.className,r=Object(i.a)(e,["className"]),a=l()("components-flex__block",n);return Object(c.createElement)(Ct,Object(o.a)({},r,{className:a,ref:t}))}));var Dt=Object(c.forwardRef)((function(e,t){var n=e.className,r=Object(i.a)(e,["className"]),a=l()("components-flex__item",n);return Object(c.createElement)(xt,Object(o.a)({},r,{className:a,ref:t}))}));var Mt=Object(c.forwardRef)((function(e,t){var n=e.align,r=void 0===n?"center":n,a=e.className,s=e.gap,u=void 0===s?2:s,d=e.justify,f=void 0===d?"space-between":d,p=e.isReversed,b=void 0!==p&&p,h=Object(i.a)(e,["align","className","gap","justify","isReversed"]),v=l()("components-flex",a);return Object(c.createElement)(St,Object(o.a)({},h,{align:r,className:v,ref:t,gap:u,justify:f,isReversed:b}))})),Tt=Mt;function It(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Rt=S.b;function Nt(){var e=It(["\n\t","\n\t","\n"]);return Nt=function(){return e},e}function At(){var e=It(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return At=function(){return e},e}function Lt(){var e=It(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Lt=function(){return e},e}function Ft(){var e=It(["\n\t\t\t\t","\n\t\t\t"]);return Ft=function(){return e},e}function zt(){var e=It(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return zt=function(){return e},e}function Bt(){var e=It(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Bt=function(){return e},e}function Ht(){var e=It(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Ht=function(){return e},e}function Vt(){var e=It(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Vt=function(){return e},e}function Kt(){var e=It(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Kt=function(){return e},e}var Wt="\n ".concat("font-weight: 400;","\n"),Ut="\n\tfont-size: 32px;\n\tline-height: 40px;\n",Gt="\n\tfont-size: 24px;\n\tline-height: 32px;\n",$t="\n\tfont-size: 20px;\n\tline-height: 28px;\n",qt="\n\t".concat("font-weight: 600;","\n\tfont-size: 14px;\n\tline-height: 20px;\n"),Yt="\n\t".concat("font-weight: 400;","\n"),Xt="\n\tfont-size: 16px;\n\tline-height: 24px;\n",Zt="\n\tfont-size: 14px;\n\tline-height: 20px;\n",Jt="\n ".concat("font-weight: 600;","\n font-size: 14px;\n line-height: 20px;\n"),Qt="\n\t".concat("font-weight: 400;","\n\tfont-size: 12px;\n\tline-height: 16px;\n"),en="\n\t".concat("font-weight: 600;","\n\tfont-size: 12px;\n\tline-height: 16px;\n"),tn="\n\t".concat("font-weight: 500;","\n\tfont-size: 11px;\n\tline-height: 1.4;\n\ttext-transform: uppercase;\n\tcolor: ").concat(H.gray[700],"\n"),nn=function(e){return Rt(Nt(),'font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,\nOxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;',function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body";switch(e){case"title.large":return Rt(Kt(),Wt,Ut);case"title.medium":return Rt(Vt(),Wt,Gt);case"title.small":return Rt(Ht(),Wt,$t);case"subtitle":return Rt(Bt(),qt,"\n\tfont-size: 16px;\n\tline-height: 24px;\n");case"subtitle.small":return Rt(zt(),qt,"\n\tfont-size: 14px;\n\tline-height: 20px;\n");case"body":return Rt(Ft(),Yt);case"body.large":return Rt(Lt(),Yt,Xt);case"body.small":return Rt(At(),Yt,Zt);case"button":return Jt;case"caption":return Qt;case"label":return en;case"sectionheading":return tn}}(e.variant))};function rn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return null};return e}function on(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var an=function(e){var t=e.as,n=e.variant,r=Object(i.a)(e,["as","variant"]);return function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return Object(s.mapKeys)(e,(function(e,t){return pn(t)}))};function hn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return function(){return t?Object(d.isRTL)()?Object(S.b)(t,""):Object(S.b)(e,""):Object(d.isRTL)()?Object(S.b)(bn(e),""):Object(S.b)(e,"")}}var vn={name:"1dacand",styles:"padding-top:0;"},mn=function(){return vn},yn={name:"r6z5ec",styles:"z-index:1;"},gn=function(e){return e.isFocused?yn:""},On={name:"uz6002",styles:"align-items:flex-start;flex-direction:column;"},jn={name:"53hdd7",styles:"align-items:flex-start;flex-direction:column-reverse;"},wn={name:"x4dmss",styles:"justify-content:space-between;"},_n=function(e){switch(e.labelPosition){case"top":return On;case"bottom":return jn;case"edge":return wn;default:return""}},kn=R(Tt,{target:"e1cr7zh10",label:"Root"})("position:relative;border-radius:2px;",mn," ",gn," ",_n,""),En={name:"8atqhb",styles:"width:100%;"},Sn=R("div",{target:"e1cr7zh11",label:"Container"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",(function(e){var t=J(e.disabled?"ui.backgroundDisabled":"ui.background");return Object(S.b)({backgroundColor:t},"")})," ",(function(e){var t=e.__unstableInputWidth,n=e.labelPosition;return t?"side"===n?"":"edge"===n?Object(S.b)({flex:"0 0 ".concat(t)},""):Object(S.b)({width:t},""):En}),""),xn={name:"103r1kr",styles:"&::-webkit-input-placeholder{line-height:normal;}"},Cn=R("input",{target:"e1cr7zh12",label:"Input"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none !important;color:",J("black"),";display:block;margin:0;outline:none;padding-left:8px;padding-right:8px;width:100%;",(function(e){var t=e.isDragging,n=e.dragCursor,r="",o="";return t&&(r=Object(S.b)("cursor:",n,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}")),t&&n&&(o=Object(S.b)("&:active{cursor:",n,";}")),Object(S.b)(r," ",o,"")})," ",(function(e){return e.disabled?Object(S.b)({color:J("ui.textDisabled")},""):""})," ",(function(e){var t={default:"13px",small:"11px"}[e.size];return t?Object(S.b)("font-size:","16px",";@media ( min-width:600px ){font-size:",t,";}"):""})," ",(function(e){var t={default:{height:30,lineHeight:1,minHeight:30},small:{height:24,lineHeight:1,minHeight:24}},n=t[e.size]||t.default;return Object(S.b)(n,"")})," ",(function(){return xn}),"}"),Pn={name:"8uhtka",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},Dn=function(){return Pn},Mn=function(e){var t=e.labelPosition,n=4;return"edge"!==t&&"side"!==t||(n=0),Object(S.b)({paddingTop:0,paddingBottom:n},"")},Tn=R(sn,{target:"e1cr7zh13",label:"BaseLabel"})("&&&{box-sizing:border-box;color:currentColor;display:block;margin:0;max-width:100%;z-index:1;",Mn," ",Dn,"}"),In=function(e){return Object(c.createElement)(Tn,Object(o.a)({},e,{as:"label"}))},Rn=R(Dt,{target:"e1cr7zh14",label:"LabelWrapper"})({name:"120o8im",styles:"max-width:calc( 100% - 10px );"}),Nn=R("div",{target:"e1cr7zh15",label:"BackdropUI"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",(function(e){var t=e.disabled,n=e.isFocused,r=J(n?"ui.borderFocus":"ui.border"),o=null;return n&&(o="0 0 0 1px ".concat(J("ui.borderFocus")," inset")),t&&(r=J("ui.borderDisabled")),Object(S.b)({boxShadow:o,borderColor:r,borderStyle:"solid",borderWidth:1},"")})," ",hn({paddingLeft:2}),"}"),An=R("span",{target:"e1cr7zh16",label:"Prefix"})({name:"1pxuk39",styles:"box-sizing:border-box;display:block;"}),Ln=R("span",{target:"e1cr7zh17",label:"Suffix"})({name:"1pxuk39",styles:"box-sizing:border-box;display:block;"});var Fn=Object(c.memo)((function(e){var t=e.disabled,n=void 0!==t&&t,r=e.isFocused,o=void 0!==r&&r;return Object(c.createElement)(Nn,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:n,isFocused:o})}));function zn(e){var t=e.children,n=e.hideLabelFromVision,r=e.htmlFor,a=Object(i.a)(e,["children","hideLabelFromVision","htmlFor"]);return t?n?Object(c.createElement)(h.a,{as:"label",htmlFor:r},t):Object(c.createElement)(In,Object(o.a)({htmlFor:r},a),t):null}function Bn(e,t){var n=e.__unstableInputWidth,r=e.children,a=e.className,s=e.disabled,u=void 0!==s&&s,l=e.hideLabelFromVision,d=void 0!==l&&l,p=e.labelPosition,b=e.id,h=e.isFocused,v=void 0!==h&&h,m=e.label,y=e.prefix,g=e.size,O=void 0===g?"default":g,j=e.suffix,w=Object(i.a)(e,["__unstableInputWidth","children","className","disabled","hideLabelFromVision","labelPosition","id","isFocused","label","prefix","size","suffix"]),_=function(e){var t=Object(f.useInstanceId)(Bn),n="input-base-control-".concat(t);return e||n}(b);return Object(c.createElement)(kn,Object(o.a)({},w,{className:a,isFocused:v,labelPosition:p,ref:t}),Object(c.createElement)(Rn,null,Object(c.createElement)(zn,{className:"components-input-control__label",hideLabelFromVision:d,labelPosition:p,htmlFor:_,size:O},m)),Object(c.createElement)(Sn,{__unstableInputWidth:n,className:"components-input-control__container",disabled:u,isFocused:v,labelPosition:p},y&&Object(c.createElement)(An,{className:"components-input-control__prefix"},y),r,j&&Object(c.createElement)(Ln,{className:"components-input-control__suffix"},j),Object(c.createElement)(Fn,{"aria-hidden":"true",disabled:u,isFocused:v,label:m,size:O})))}var Hn=Object(c.forwardRef)(Bn);function Vn(e,t){return e.map((function(e,n){return e+t[n]}))}function Kn(e,t){return e.map((function(e,n){return e-t[n]}))}function Wn(e){return Math.hypot.apply(Math,e)}function Un(e,t,n){var r=Wn(t),o=0===r?0:1/r,a=0===n?0:1/n,i=a*r,c=t.map((function(e){return a*e})),s=t.map((function(e){return o*e}));return{velocities:c,velocity:i,distance:Wn(e),direction:s}}function Gn(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function $n(e,t,n){return 0===t||Math.abs(t)===1/0?function(e,t){return Math.pow(e,5*t)}(e,n):e*t*n/(t+n*e)}function qn(e,t,n,r){return void 0===r&&(r=.15),0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):en?+$n(e-n,n-t,r)+n:e}function Yn(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}function Qn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function er(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function nr(){}function rr(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r2?o-2:0),i=2;i0||o>0,i=Xn({},n.controller.state.shared,n.state,n.mapStateValues(n.state),{locked:!!document.pointerLockElement,touches:o,down:a}),c=n.handler(i);return n.state.memo=void 0!==c?c:n.state.memo,i},this.controller=e,this.args=t}var t,n,r,o=e.prototype;return o.updateSharedState=function(e){Object.assign(this.controller.state.shared,e)},o.updateGestureState=function(e){Object.assign(this.state,e)},o.checkIntentionality=function(e,t){return{_intentional:e,_blocked:!1}},o.getMovement=function(e){var t=this.config,n=t.rubberband,r=t.threshold,o=this.state,a=o._bounds,i=o._initial,c=o._active,s=o._intentional,u=o.lastOffset,l=o.movement,d=this.getInternalMovement(e,this.state),f=this.transform(r).map(Math.abs),p=!1===s[0]?xr(d[0],f[0]):s[0],b=!1===s[1]?xr(d[1],f[1]):s[1],h=this.checkIntentionality([p,b],d);if(h._blocked)return Xn({},h,{_movement:d,delta:[0,0]});var v=h._intentional,m=d,y=[!1!==v[0]?d[0]-v[0]:0,!1!==v[1]?d[1]-v[1]:0],g=Vn(y,u),O=c?n:[0,0];return y=Cr(a,Vn(y,i),O),Xn({},h,{intentional:!1!==v[0]||!1!==v[1],_initial:i,_movement:m,movement:y,values:e,offset:Cr(a,g,O),delta:Kn(y,l)})},o.clean=function(){this.clearTimeout()},t=e,(n=[{key:"config",get:function(){return this.controller.config[this.stateKey]}},{key:"enabled",get:function(){return this.controller.config.enabled&&this.config.enabled}},{key:"state",get:function(){return this.controller.state[this.stateKey]}},{key:"handler",get:function(){return this.controller.handlers[this.stateKey]}},{key:"transform",get:function(){return this.config.transform||this.controller.config.transform||Er}}])&&Yn(t.prototype,n),r&&Yn(t,r),e}();function xr(e,t){return Math.abs(e)>=t&&Gn(e)*t}function Cr(e,t,n){var r=t[0],o=t[1],a=n[0],i=n[1],c=e[0],s=c[0],u=c[1],l=e[1],d=l[0],f=l[1];return[qn(r,s,u,a),qn(o,d,f,i)]}function Pr(e,t,n){var r=e.state,o=t.timeStamp,a=t.type,i=r.values;return{_lastEventType:a,event:t,timeStamp:o,elapsedTime:n?0:o-r.startTime,previous:i}}function Dr(e,t,n){var r=e.state,o=e.config,a=e.stateKey,i=e.args,c=r.offset,s=n.timeStamp,u=o.initial,l=o.bounds,d=Xn({},_r()[a],{_active:!0,args:i,values:t,initial:t,offset:c,lastOffset:c,startTime:s});return Xn({},d,{_initial:ar(u,d),_bounds:ar(l,d)})}function Mr(e,t){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;ao?"x":r0?t.setUpDelayedDragTrigger(e):t.startDrag(e,!0))},t.onDragChange=function(e){if(!t.state.canceled&&t.state._active&&t.isValidEvent(e)&&(t.state._lastEventType!==e.type||e.timeStamp!==t.state.timeStamp)){var n;if(document.pointerLockElement){var r=e.movementX,o=e.movementY;n=Vn(t.transform([r,o]),t.state.values)}else n=fr(e,t.transform);var a=t.getKinematics(n,e);if(!t.state._dragStarted){if(t.state._dragDelayed)return void t.startDrag(e);if(!t.shouldPreventWindowScrollY)return;if(t.state._dragPreventScroll||!a.axis)return;if("x"!==a.axis)return void(t.state._active=!1);t.startDrag(e)}var i=lr(e);t.updateSharedState(i);var c=Pr(Qn(t),e),s=Wn(a._movement),u=t.state._dragIsTap;u&&s>=3&&(u=!1),t.updateGestureState(Xn({},c,a,{_dragIsTap:u})),t.fireGestureHandler()}},t.onDragEnd=function(e){if(Rr(t.controller,e),t.isValidEvent(e)&&(t.clean(),t.state._active)){t.state._active=!1;var n=t.state._dragIsTap,r=t.state.velocities,o=r[0],a=r[1],i=t.state.movement,c=i[0],s=i[1],u=t.state._intentional,l=u[0],d=u[1],f=t.config.swipeVelocity,p=f[0],b=f[1],h=t.config.swipeDistance,v=h[0],m=h[1],y=t.config.swipeDuration,g=Xn({},Pr(Qn(t),e),t.getMovement(t.state.values)),O=[0,0];g.elapsedTimep&&Math.abs(c)>v&&(O[0]=Gn(o)),!1!==d&&Math.abs(a)>b&&Math.abs(s)>m&&(O[1]=Gn(a))),t.updateSharedState({buttons:0}),t.updateGestureState(Xn({},g,{tap:n,swipe:O})),t.fireGestureHandler(t.config.filterTaps&&!0===n)}},t.clean=function(){e.prototype.clean.call(Qn(t)),t.state._dragStarted=!1,t.releasePointerCapture(),Nr(t.controller,t.stateKey)},t.onCancel=function(){t.state.canceled||(t.updateGestureState({canceled:!0,_active:!1}),t.updateSharedState({buttons:0}),setTimeout((function(){return t.fireGestureHandler()}),0))},t.onClick=function(e){t.state._dragIsTap||e.stopPropagation()},t}Zn(t,e);var n=t.prototype;return n.startDrag=function(e,t){void 0===t&&(t=!1),this.state._active&&!this.state._dragStarted&&(t||this.setStartState(e),this.updateGestureState({_dragStarted:!0,_dragPreventScroll:!0,cancel:this.onCancel}),this.clearTimeout(),this.fireGestureHandler())},n.addBindings=function(e){(this.config.useTouch?(Hr(e,"onTouchStart",this.onDragStart),Hr(e,"onTouchMove",this.onDragChange),Hr(e,"onTouchEnd",this.onDragEnd),Hr(e,"onTouchCancel",this.onDragEnd)):(Hr(e,"onPointerDown",this.onDragStart),Hr(e,"onPointerMove",this.onDragChange),Hr(e,"onPointerUp",this.onDragEnd),Hr(e,"onPointerCancel",this.onDragEnd)),this.config.filterTaps)&&Hr(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(Gr);function Yr(e,t){var n,r,o=[],a=!1;return function(){for(var i=arguments.length,c=new Array(i),s=0;s0&&void 0!==arguments[0]?arguments[0]:no,t=e.value;return eo(eo(eo({},no),e),{},{initialValue:t})}var io=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;return null!==(e=t.find(so))&&void 0!==e?e:n}var fo=function(e,t){var n=Object(c.useRef)(!1);Object(c.useEffect)((function(){if(n.current)return e();n.current=!0}),t)};var po=Object(c.forwardRef)((function(e,t){var n=e.disabled,r=void 0!==n&&n,u=e.dragDirection,l=void 0===u?"n":u,d=e.dragThreshold,f=void 0===d?10:d,p=e.id,b=e.isDragEnabled,h=void 0!==b&&b,v=e.isFocused,m=e.isPressEnterToChange,y=void 0!==m&&m,g=e.onBlur,O=void 0===g?s.noop:g,j=e.onChange,w=void 0===j?s.noop:j,k=e.onDrag,E=void 0===k?s.noop:k,S=e.onDragEnd,x=void 0===S?s.noop:S,C=e.onDragStart,P=void 0===C?s.noop:C,D=e.onFocus,M=void 0===D?s.noop:D,T=e.onKeyDown,I=void 0===T?s.noop:T,R=e.onValidate,N=void 0===R?s.noop:R,A=e.size,L=void 0===A?"default":A,F=e.setIsFocused,z=e.stateReducer,B=void 0===z?function(e){return e}:z,H=e.value,V=e.type,K=Object(i.a)(e,["disabled","dragDirection","dragThreshold","id","isDragEnabled","isFocused","isPressEnterToChange","onBlur","onChange","onDrag","onDragEnd","onDragStart","onFocus","onKeyDown","onValidate","size","setIsFocused","stateReducer","value","type"]),W=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:to,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:no,n=Object(c.useReducer)(co(e),ao(t)),r=Object(a.a)(n,2),o=r[0],i=r[1],s=function(e){return function(t,n){n&&n.persist&&n.persist(),i({type:e,payload:{value:t,event:n}})}},u=function(e){return function(t){t&&t.persist&&t.persist(),i({type:e,payload:{event:t}})}},l=function(e){return function(t){i({type:e,payload:t})}},d=s(ro.CHANGE),f=s(ro.INVALIDATE),p=s(ro.RESET),b=s(ro.COMMIT),h=s(ro.UPDATE),v=l(ro.DRAG_START),m=l(ro.DRAG),y=l(ro.DRAG_END),g=u(ro.PRESS_UP),O=u(ro.PRESS_DOWN),j=u(ro.PRESS_ENTER);return{change:d,commit:b,dispatch:i,drag:m,dragEnd:y,dragStart:v,invalidate:f,pressDown:O,pressEnter:j,pressUp:g,reset:p,state:o,update:h}}(B,{isDragEnabled:h,value:H,isPressEnterToChange:y}),U=W.state,G=W.change,$=W.commit,q=W.drag,Y=W.dragEnd,X=W.dragStart,Z=W.invalidate,J=W.pressDown,Q=W.pressEnter,ee=W.pressUp,te=W.reset,ne=W.update,re=U._event,oe=U.value,ae=U.isDragging,ie=U.isDirty,ce=Object(c.useRef)(!1),se=function(e,t){var n=function(e){var t="ns-resize";switch(e){case"n":case"s":t="ns-resize";break;case"e":case"w":t="ew-resize"}return t}(t);return Object(c.useEffect)((function(){document.documentElement.style.cursor=e?n:null}),[e]),n}(ae,l);fo((function(){H!==oe&&(v||ce.current?ie||(w(oe,{event:re}),ce.current=!1):ne(H))}),[oe,ie,v,H]);var ue=function(e){var t=e.target.value;try{N(t,e),$(t,e)}catch(t){Z(t,e)}},le=function(e,t){void 0===t&&(t={}),kr.set("drag",qr);var n=Object(_.useRef)();return n.current||(n.current=Yr(jr,Xr)),Wr({drag:e},n.current(t))}((function(e){var t=e.distance,n=e.dragging,r=e.event;if(t){if(r.stopPropagation(),!n)return x(e),void Y(e);E(e),q(e),ae||(P(e),X(e))}}),{threshold:f,enabled:h}),de=h?le():{};return Object(c.createElement)(Cn,Object(o.a)({},K,de,{className:"components-input-control__input",disabled:r,dragCursor:se,isDragging:ae,id:p,onBlur:function(e){O(e),F(!1),y&&ie&&(ce.current=!0,uo(oe)?te(H):ue(e))},onChange:function(e){var t=e.target.value;G(t,e)},onFocus:function(e){M(e),F(!0)},onKeyDown:function(e){var t=e.keyCode;switch(I(e),t){case Jr.UP:ee(e);break;case Jr.DOWN:J(e);break;case Jr.ENTER:Q(e),y&&(e.preventDefault(),ue(e))}},ref:t,size:L,value:oe,type:V}))}));function bo(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,u=e.__unstableInputWidth,d=e.className,p=e.disabled,b=void 0!==p&&p,h=e.hideLabelFromVision,v=void 0!==h&&h,m=e.id,y=e.isPressEnterToChange,g=void 0!==y&&y,O=e.label,j=e.labelPosition,w=void 0===j?"top":j,_=e.onChange,k=void 0===_?s.noop:_,E=e.onValidate,S=void 0===E?s.noop:E,x=e.onKeyDown,C=void 0===x?s.noop:x,P=e.prefix,D=e.size,M=void 0===D?"default":D,T=e.suffix,I=e.value,R=Object(i.a)(e,["__unstableStateReducer","__unstableInputWidth","className","disabled","hideLabelFromVision","id","isPressEnterToChange","label","labelPosition","onChange","onValidate","onKeyDown","prefix","size","suffix","value"]),N=Object(c.useState)(!1),A=Object(a.a)(N,2),L=A[0],F=A[1],z=function(e){var t=Object(f.useInstanceId)(bo),n="inspector-input-control-".concat(t);return e||n}(m),B=l()("components-input-control",d);return Object(c.createElement)(Hn,{__unstableInputWidth:u,className:B,disabled:b,gap:3,hideLabelFromVision:v,id:z,isFocused:L,justify:"left",label:O,labelPosition:w,prefix:P,size:M,suffix:T},Object(c.createElement)(po,Object(o.a)({},R,{className:"components-input-control__input",disabled:b,id:z,isFocused:L,isPressEnterToChange:g,onChange:k,onKeyDown:C,onValidate:S,ref:t,setIsFocused:F,size:M,stateReducer:r,value:I})))}var ho=Object(c.forwardRef)(bo);var vo={name:"1b9wwt5",styles:"&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}"},mo=function(e){return e.hideHTMLArrows?vo:""},yo=R(ho,{target:"ep48uk90",label:"Input"})(mo,";");function go(e){var t=Number(e);return isNaN(t)?0:t}function Oo(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=go(e),a=go(r),i=jo(r),c=Math.round(o/a)*a,u=Object(s.clamp)(c,t,n);return i?go(u.toFixed(i)):u}var _o=function(e){var t=e.isShiftStepEnabled,n=void 0===t||t,r=e.shiftStep,o=void 0===r?10:r,i=e.step,s=void 0===i?1:i,u=Object(c.useState)(!1),l=Object(a.a)(u,2),d=l[0],f=l[1];return Object(c.useEffect)((function(){var e=function(e){f(e.shiftKey)};return window.addEventListener("keydown",e),window.addEventListener("keyup",e),function(){window.removeEventListener("keydown",e),window.removeEventListener("keyup",e)}}),[]),n&&d?o*s:s};var ko=Object(c.forwardRef)((function(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,s=e.className,u=e.dragDirection,f=void 0===u?"n":u,p=e.hideHTMLArrows,b=void 0!==p&&p,h=e.isDragEnabled,v=void 0===h||h,m=e.isShiftStepEnabled,y=void 0===m||m,g=e.label,O=e.max,j=void 0===O?1/0:O,w=e.min,_=void 0===w?-1/0:w,k=e.shiftStep,E=void 0===k?10:k,S=e.step,x=void 0===S?1:S,C=e.type,P=void 0===C?"number":C,D=e.value,M=Object(i.a)(e,["__unstableStateReducer","className","dragDirection","hideHTMLArrows","isDragEnabled","isShiftStepEnabled","label","max","min","shiftStep","step","type","value"]),T=wo(0,_,j,x),I=_o({step:x,shiftStep:E,isShiftStepEnabled:y}),R="number"===P?"off":null,N=l()("components-number-control",s);return Object(c.createElement)(yo,Object(o.a)({autoComplete:R,inputMode:"numeric"},M,{className:N,dragDirection:f,hideHTMLArrows:b,isDragEnabled:v,label:g,max:j,min:_,ref:t,step:I,type:P,value:D,__unstableStateReducer:io((function(e,t){var n=t.type,r=t.payload,o=null==r?void 0:r.event,i=e.value;if(n===oo.PRESS_UP||n===oo.PRESS_DOWN){var c=o.shiftKey&&y?parseFloat(E)*parseFloat(x):parseFloat(x),s=uo(i)?T:i;null!=o&&o.preventDefault&&o.preventDefault(),n===oo.PRESS_UP&&(s=Oo(s,c)),n===oo.PRESS_DOWN&&(s=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=[],o=0;o0?null:Object(c.createElement)(Ro.a,{focusOnMount:!1,onClose:p,position:"top right",className:"components-autocomplete__popover",anchorRef:y},Object(c.createElement)("div",{id:o,role:"listbox",className:"components-autocomplete__results"},Object(s.map)(m,(function(e,t){return Object(c.createElement)(Io.a,{key:e.key,id:"components-autocomplete-item-".concat(r,"-").concat(e.key),role:"option","aria-selected":t===u,disabled:e.isDisabled,className:l()("components-autocomplete__result",i,{"is-selected":t===u}),onClick:function(){return f(e)}},e.label)}))))}};var Fo=Ao((function e(t){var n,r=t.children,o=t.isSelected,i=t.record,u=t.onChange,l=t.onReplace,p=t.completers,b=t.debouncedSpeak,h=t.contentRef,v=Object(f.useInstanceId)(e),m=Object(c.useState)(0),y=Object(a.a)(m,2),g=y[0],O=y[1],j=Object(c.useState)([]),w=Object(a.a)(j,2),_=w[0],k=w[1],E=Object(c.useState)(""),S=Object(a.a)(E,2),x=S[0],C=S[1],P=Object(c.useState)(null),D=Object(a.a)(P,2),M=D[0],T=D[1],I=Object(c.useState)(null),R=Object(a.a)(I,2),N=R[0],A=R[1];function L(e){var t=(M||{}).getOptionCompletion;if(!e.isDisabled){if(t){var n=t(e.value,x),r=void 0===n.action||void 0===n.value?{action:"insert-at-caret",value:n}:n,o=r.action,a=r.value;"replace"===o?l([a]):"insert-at-caret"===o&&(s=a,d=i.start,f=d-M.triggerPrefix.length-x.length,p=Object(To.create)({html:Object(c.renderToString)(s)}),u(Object(To.insert)(i,p,f,d)))}var s,d,f,p;F()}}function F(){O(0),k([]),C(""),T(null),A(null)}Object(To.isCollapsed)(i)&&(n=Object(To.getTextContent)(Object(To.slice)(i,0))),Object(c.useEffect)((function(){if(n){var e=Object(s.deburr)(n),t=Object(To.getTextContent)(Object(To.slice)(i,void 0,Object(To.getTextContent)(i).length)),r=Object(s.find)(p,(function(n){var r=n.triggerPrefix,o=n.allowContext,a=e.lastIndexOf(r);return-1!==a&&(!(o&&!o(e.slice(0,a),t))&&/^\S*$/.test(e.slice(a+r.length)))}));if(r){var o=Object(s.escapeRegExp)(r.triggerPrefix),a=e.match(new RegExp("".concat(o,"(\\S*)$"))),c=a&&a[1];T(r),A((function(){return r!==M?Lo(r):N})),C(c)}else F()}}),[n]);var z=(_[g]||{}).key,B=void 0===z?"":z,H=(M||{}).className,V=!!M&&_.length>0,K=V?"components-autocomplete-listbox-".concat(v):null,W=V?"components-autocomplete-item-".concat(v,"-").concat(B):null;return Object(c.createElement)(c.Fragment,null,r({isExpanded:V,listBoxId:K,activeId:W,onKeyDown:function(e){if(M&&0!==_.length){switch(e.keyCode){case Jr.UP:O((0===g?_.length:g)-1);break;case Jr.DOWN:O((g+1)%_.length);break;case Jr.ESCAPE:T(null),A(null);break;case Jr.ENTER:L(_[g]);break;case Jr.LEFT:case Jr.RIGHT:return void F();default:return}e.preventDefault(),e.stopPropagation()}}}),o&&N&&Object(c.createElement)(N,{className:H,filterValue:x,instanceId:v,listBoxId:K,selectedIndex:g,onChangeOptions:function(e){O(e.length===_.length?g:0),k(e),function(e){b&&(e.length?b(Object(d.sprintf)(Object(d._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length),e.length),"assertive"):b(Object(d.__)("No results."),"assertive"))}(e)},onSelect:L,value:i,contentRef:h}))}));var zo=R("div",{target:"e1agakv00",label:"Root"})({name:"1bt0omd",styles:"box-sizing:border-box;position:relative;"}),Bo=function(e){var t=e.disableUnits?3:24;return Object(S.b)(hn({paddingRight:t})(),";")},Ho={name:"1y65o8",styles:"&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}"},Vo=function(e){return e.disableUnits?"":Ho},Ko=R(ko,{target:"e1agakv01",label:"ValueInput"})("&&&{input{appearance:none;-moz-appearance:textfield;display:block;width:100%;",Vo,";",Bo,";}}"),Wo=function(e){return Object(S.b)("appearance:none;background:transparent;border-radius:2px;border:none;box-sizing:border-box;color:",J("darkGray.500"),";display:block;font-size:8px;line-height:1;letter-spacing:-0.5px;outline:none;padding:2px 1px;position:absolute;text-align-last:center;text-transform:uppercase;width:20px;",hn({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," ",hn({right:0})()," ",(t=e.size,Object(S.b)({default:{height:28,lineHeight:"24px",minHeight:28,top:1},small:{height:22,lineHeight:"18px",minHeight:22,top:1}}[t],"")),"");var t},Uo=R("div",{target:"e1agakv02",label:"UnitLabel"})("&&&{pointer-events:none;",Wo,";}"),Go=R("select",{target:"e1agakv03",label:"UnitSelect"})("&&&{",Wo,";cursor:pointer;border:1px solid transparent;&:hover{background-color:",J("lightGray.300"),";}&:focus{border-color:",J("ui.borderFocus"),";outline:2px solid transparent;outline-offset:0;}&:disabled{cursor:initial;&:hover{background-color:transparent;}}}"),$o=[{value:"px",label:"px",default:0},{value:"%",label:"%",default:10},{value:"em",label:"em",default:0},{value:"rem",label:"rem",default:0},{value:"vw",label:"vw",default:10},{value:"vh",label:"vh",default:10}],qo=$o[0];function Yo(e){return!Object(s.isEmpty)(e)&&e.length>1&&!1!==e}function Xo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$o,n=String(e).trim(),r=parseFloat(n,10);r=isNaN(r)?"":r;var o=n.match(/[\d.\-\+]*\s*(.*)/)[1],a=void 0!==o?o:"";if(a=a.toLowerCase(),Yo(t)){var i=t.find((function(e){return e.value===a}));a=null==i?void 0:i.value}else a=qo.value;return[r,a]}function Zo(e,t,n,r){var o,i,c=Xo(e,t),s=Object(a.a)(c,2),u=s[0],l=s[1],d=u;((isNaN(u)||""===u)&&(d=n),o=l||r,Yo(t)&&!o)&&(o=null===(i=t[0])||void 0===i?void 0:i.value);return[d,o]}function Jo(e){var t=e.className,n=e.isTabbable,r=void 0===n||n,a=e.options,u=void 0===a?$o:a,d=e.onChange,f=void 0===d?s.noop:d,p=e.size,b=void 0===p?"default":p,h=e.value,v=void 0===h?"px":h,m=Object(i.a)(e,["className","isTabbable","options","onChange","size","value"]);if(!Yo(u))return Object(c.createElement)(Uo,{className:"components-unit-control__unit-label",size:b},v);var y=l()("components-unit-control__select",t);return Object(c.createElement)(Go,Object(o.a)({className:y,onChange:function(e){var t=e.target.value,n=u.find((function(e){return e.value===t}));f(t,{event:e,data:n})},size:b,tabIndex:r?null:"-1",value:v},m),u.map((function(e){return Object(c.createElement)("option",{value:e.value,key:e.value},e.label)})))}function Qo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ea(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:ta,n=ea(ea({},ta),t),r=n.initial,o=n.fallback,i=Object(c.useState)(e),s=Object(a.a)(i,2),u=s[0],l=s[1],d=so(e);Object(c.useEffect)((function(){d&&u&&l(void 0)}),[d,u]);var f=lo([e,u,r],o),p=function(e){d||l(e)};return[f,p]};var ra=Object(c.forwardRef)((function(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,u=e.autoComplete,f=void 0===u?"off":u,p=e.className,b=e.disabled,h=void 0!==b&&b,v=e.disableUnits,m=void 0!==v&&v,y=e.isPressEnterToChange,g=void 0!==y&&y,O=e.isResetValueOnUnitChange,j=void 0!==O&&O,w=e.isUnitSelectTabbable,_=void 0===w||w,k=e.label,E=e.onChange,S=void 0===E?s.noop:E,x=e.onUnitChange,C=void 0===x?s.noop:x,P=e.size,D=void 0===P?"default":P,M=e.style,T=e.unit,I=e.units,R=void 0===I?$o:I,N=e.value,A=Object(i.a)(e,["__unstableStateReducer","autoComplete","className","disabled","disableUnits","isPressEnterToChange","isResetValueOnUnitChange","isUnitSelectTabbable","label","onChange","onUnitChange","size","style","unit","units","value"]),L=function(e,t,n){return Xo(t?"".concat(e).concat(t):e,n)}(N,T,R),F=Object(a.a)(L,2),z=F[0],B=F[1],H=na(T,{initial:B}),V=Object(a.a)(H,2),K=V[0],W=V[1],U=Object(c.useRef)(null),G=l()("components-unit-control",p),$=function(e){if(isNaN(e.target.value)){var t=Zo(e.target.value,R,z,K),n=Object(a.a)(t,2),r=n[0],o=n[1];if(U.current=r,g&&o!==K){var i={event:e,data:R.find((function(e){return e.value===o}))};S("".concat(r).concat(o),i),C(o,i),W(o)}}else U.current=null},q=$,Y=m?null:Object(c.createElement)(Jo,{"aria-label":Object(d.__)("Select unit"),disabled:h,isTabbable:_,options:R,onChange:function(e,t){var n=t.data,r="".concat(z).concat(e);j&&void 0!==(null==n?void 0:n.default)&&(r="".concat(n.default).concat(e)),S(r,t),C(e,t),W(e)},size:D,value:K});return Object(c.createElement)(zo,{className:"components-unit-control-wrapper",style:M},Object(c.createElement)(Ko,Object(o.a)({"aria-label":k,type:g?"text":"number"},Object(s.omit)(A,["children"]),{autoComplete:f,className:G,disabled:h,disableUnits:m,isPressEnterToChange:g,label:k,onBlur:q,onKeyDown:function(e){e.keyCode===Jr.ENTER&&$(e)},onChange:function(e,t){""!==e?(e=Zo(e,R,z,K).join(""),S(e,t)):S("",t)},ref:t,size:D,suffix:Y,value:z,__unstableStateReducer:io((function(e,t){return t.type===oo.COMMIT&&null!==U.current&&(e.value=U.current,U.current=null),e}),r)})))}));var oa=R("div",{target:"e7pk0lh0",label:"Root"})({name:"vho1ao",styles:"box-sizing:border-box;max-width:235px;padding-bottom:12px;width:100%;"}),aa=R(Mt,{target:"e7pk0lh1",label:"Header"})("color:",J("ui.label"),";padding-bottom:8px;"),ia=R(Mt,{target:"e7pk0lh2",label:"HeaderControlWrapper"})({name:"19de7qh",styles:"min-height:30px;"}),ca=R("div",{target:"e7pk0lh3",label:"UnitControlWrapper"})({name:"zypm0w",styles:"box-sizing:border-box;max-width:80px;"}),sa=R(Mt,{target:"e7pk0lh4",label:"LayoutContainer"})({name:"39f89t",styles:"justify-content:center;padding-top:8px;"}),ua=R(Mt,{target:"e7pk0lh5",label:"Layout"})({name:"ojqyia",styles:"position:relative;height:100%;width:100%;"}),la={name:"icip60",styles:"border-radius:2px;"},da={name:"1k07npk",styles:"border-radius:0;"},fa=function(e){var t=e.isFirst,n=e.isLast,r=e.isOnly;return t?hn({borderTopRightRadius:0,borderBottomRightRadius:0})():n?hn({borderTopLeftRadius:0,borderBottomLeftRadius:0})():r?la:da},pa=function(e){return hn({marginLeft:e.isFirst?0:-1})()},ba=R(ra,{target:"e7pk0lh6",label:"UnitControl"})("max-width:60px;",fa,";",pa,";");function ha(e){var t=e.isFirst,n=e.isLast,r=e.isOnly,a=e.onHoverOn,u=void 0===a?s.noop:a,l=e.onHoverOff,d=void 0===l?s.noop:l,f=e.label,p=e.value,b=Object(i.a)(e,["isFirst","isLast","isOnly","onHoverOn","onHoverOff","label","value"]),h=function(e,t){void 0===t&&(t={}),kr.set("hover",Zr);var n=Object(_.useRef)();return n.current||(n.current=Yr(Or,Xr)),Wr({hover:e},n.current(t))}((function(e){var t=e.event,n=Object(i.a)(e,["event"]);n.hovering?u(t,n):d(t,n)}));return Object(c.createElement)(ca,h(),Object(c.createElement)(va,{text:f},Object(c.createElement)(ba,Object(o.a)({"aria-label":f,className:"component-box-control__unit-control",hideHTMLArrows:!0,isFirst:t,isLast:n,isOnly:r,isPressEnterToChange:!0,isResetValueOnUnitChange:!1,value:p},b))))}function va(e){var t=e.children,n=e.text;return n?Object(c.createElement)(b.a,{text:n,position:"top"},Object(c.createElement)("div",null,t)):t}var ma={all:Object(d.__)("All"),top:Object(d.__)("Top"),bottom:Object(d.__)("Bottom"),left:Object(d.__)("Left"),right:Object(d.__)("Right"),mixed:Object(d.__)("Mixed")},ya={top:null,right:null,bottom:null,left:null},ga={top:!1,right:!1,bottom:!1,left:!1};function Oa(e){return e.sort((function(t,n){return e.filter((function(e){return e===t})).length-e.filter((function(e){return e===n})).length})).pop()}function ja(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.values(e).map((function(e){return Xo(e)})),n=t.map((function(e){return e[0]})),r=t.map((function(e){return e[1]})),o=n.every((function(e){return e===n[0]}))?n[0]:"",a=Oa(r),i=Object(s.isNumber)(o)?"".concat(o).concat(a):null;return i}function wa(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=ja(e),n=isNaN(parseFloat(t));return n}function _a(e){return void 0!==e&&!Object(s.isEmpty)(Object.values(e).filter(Boolean))}function ka(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ea(e){var t=e.onChange,n=void 0===t?s.noop:t,r=e.onFocus,a=void 0===r?s.noop:r,u=e.onHoverOn,l=void 0===u?s.noop:u,d=e.onHoverOff,f=void 0===d?s.noop:d,p=e.values,b=Object(i.a)(e,["onChange","onFocus","onHoverOn","onHoverOff","values"]),h=ja(p),v=_a(p)&&wa(p),m=v?ma.mixed:null;return Object(c.createElement)(ha,Object(o.a)({},b,{disableUnits:v,isOnly:!0,value:h,onChange:function(e){var t=function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};p(ni(ni({},ga),e))},onHoverOff:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p(ni(ni({},ga),e))},isLinked:D,units:m,values:w});return Object(c.createElement)(oa,{id:A,role:"region","aria-labelledby":L},Object(c.createElement)(aa,{className:"component-box-control__header"},Object(c.createElement)(Dt,null,Object(c.createElement)(sn,{id:L,className:"component-box-control__label"},h)),Object(c.createElement)(Dt,null,Object(c.createElement)(Io.a,{className:"component-box-control__reset-button",isSecondary:!0,isSmall:!0,onClick:function(){var e=ya;u(e),j(e),x(!1)},disabled:!S},Object(d.__)("Reset")))),Object(c.createElement)(ia,{className:"component-box-control__header-control-wrapper"},Object(c.createElement)(Dt,null,Object(c.createElement)(La,{side:R})),D&&Object(c.createElement)(Pt,null,Object(c.createElement)(Ea,Object(o.a)({"aria-label":h},F))),Object(c.createElement)(Dt,null,Object(c.createElement)(Ha,{onClick:function(){M(!D),N(D?"top":"all")},isLinked:D}))),!D&&Object(c.createElement)(xa,F))}oi.__Visualizer=function(e){var t=e.children,n=e.showValues,r=void 0===n?ga:n,a=e.values,s=void 0===a?ya:a,u=Object(i.a)(e,["children","showValues","values"]),l=!t;return Object(c.createElement)(Ka,Object(o.a)({},u,{isPositionAbsolute:l,"aria-hidden":"true"}),Object(c.createElement)(Ya,{showValues:r,values:s}),t)};var ai=Object(c.forwardRef)((function(e,t){var n=e.className,r=Object(i.a)(e,["className"]),a=l()("components-button-group",n);return Object(c.createElement)("div",Object(o.a)({ref:t,role:"group",className:a},r))})),ii=Object(c.createContext)({}),ci=function(){return Object(c.useContext)(ii)},si={borderColor:J("lightGray.500"),borderRadius:"3px",backgroundShady:J("lightGray.200")},ui=si.borderColor,li=si.borderRadius,di=si.backgroundShady,fi=R("div",{target:"e1q7k77g0",label:"CardUI"})("background:",J("white"),";box-sizing:border-box;border-radius:",li,";border:1px solid ",ui,";",gi,";&.is-elevated{box-shadow:0px 1px 3px 0px rgba( 0,0,0,0.2 ),0px 1px 1px 0px rgba( 0,0,0,0.14 ),0px 2px 1px -1px rgba( 0,0,0,0.12 );}"),pi=R(Tt,{target:"e1q7k77g1",label:"HeaderUI"})("border-bottom:1px solid ",ui,";border-top-left-radius:",li,";border-top-right-radius:",li,";box-sizing:border-box;&:last-child{border-bottom:none;}",yi,";",gi,";",Oi,";"),bi=R("div",{target:"e1q7k77g2",label:"MediaUI"})("box-sizing:border-box;overflow:hidden;& > img,& > iframe{display:block;height:auto;max-width:100%;width:100%;}&:first-of-type{border-top-left-radius:",li,";border-top-right-radius:",li,";}&:last-of-type{border-bottom-left-radius:",li,";border-bottom-right-radius:",li,";}"),hi=R("div",{target:"e1q7k77g3",label:"BodyUI"})("box-sizing:border-box;",(function(){return"\n\t\t&.is-size {\n\t\t\t&-large {\n\t\t\t\tpadding: ".concat(yt(3)," ").concat(yt(4),";\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: ").concat(yt(2)," ").concat(yt(3),";\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: ").concat(yt(2),";\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: ").concat(yt(1),";\n\t\t\t}\n\t\t}\n\t")}),";",Oi,";"),vi=R(Tt,{target:"e1q7k77g4",label:"FooterUI"})("border-top:1px solid ",ui,";border-bottom-left-radius:",li,";border-bottom-right-radius:",li,";box-sizing:border-box;&:first-of-type{border-top:none;}",yi,";",gi,";",Oi,";"),mi=R(r.HorizontalRule,{target:"e1q7k77g5",label:"DividerUI"})("all:unset;border-top:1px solid ",ui,";box-sizing:border-box;display:block;height:0;width:100%;");function yi(){return"\n\t\t&.is-size {\n\t\t\t&-large {\n\t\t\t\tpadding: ".concat(yt(3)," ").concat(yt(4),";\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: ").concat(yt(2)," ").concat(yt(3),";\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: ").concat(yt(2),";\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: ").concat(yt(1),";\n\t\t\t}\n\t\t}\n\t")}function gi(){return"\n\t\t&.is-borderless {\n\t\t\tborder: none;\n\t\t}\n\t"}function Oi(){return"\n\t\t&.is-shady {\n\t\t\tbackground: ".concat(di,";\n\t\t}\n\t")}function ji(e){var t=e.className,n=e.isBorderless,r=e.isElevated,a=e.size,s=Object(i.a)(e,["className","isBorderless","isElevated","size"]),u=ii.Provider,d={isBorderless:n,isElevated:r,size:a},f=l()("components-card",n&&"is-borderless",r&&"is-elevated",a&&"is-size-".concat(a),t);return Object(c.createElement)(u,{value:d},Object(c.createElement)(fi,Object(o.a)({},s,{className:f})))}ji.defaultProps={isBorderless:!1,isElevated:!1,size:"medium"};var wi=ji;function _i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ki(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.hex?A()(e.hex):A()(e),r=n.toHsl();r.h=Math.round(r.h),r.s=Math.round(100*r.s),r.l=Math.round(100*r.l);var o=n.toHsv();o.h=Math.round(o.h),o.s=Math.round(100*o.s),o.v=Math.round(100*o.v);var a=n.toRgb(),i=n.toHex();0===r.s&&(r.h=t||0,o.h=t||0);var c="000000"===i&&0===a.a;return{color:n,hex:c?"transparent":"#".concat(i),hsl:r,hsv:o,oldHue:e.h||t||r.h,rgb:a,source:e.source}}function tc(e,t){e.preventDefault();var n=t.getBoundingClientRect(),r=n.left,o=n.top,a=n.width,i=n.height,c="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=c-(r+window.pageXOffset),l=s-(o+window.pageYOffset);return u<0?u=0:u>a?u=a:l<0?l=0:l>i&&(l=i),{top:l,left:u,width:a,height:i}}function nc(e){var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&A()(e).isValid()}function rc(e){var t=e.target,n=e.callback,r=e.shortcut,o=e.bindGlobal,a=e.eventName;return Object(f.useKeyboardShortcut)(r,n,{bindGlobal:o,target:t,eventName:a}),null}var oc=function(e){var t=e.children,n=e.shortcuts,r=e.bindGlobal,o=e.eventName,a=Object(c.useRef)(),i=Object(s.map)(n,(function(e,t){return Object(c.createElement)(rc,{key:t,shortcut:t,callback:e,bindGlobal:r,eventName:o,target:a})}));return c.Children.count(t)?Object(c.createElement)("div",{ref:a},i,t):i};function ac(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Qi.a)(e);if(t){var o=Object(Qi.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Ji.a)(this,n)}}var ic=function(e){Object(Zi.a)(n,e);var t=ac(n);function n(){var e;return Object(qi.a)(this,n),(e=t.apply(this,arguments)).container=Object(c.createRef)(),e.increase=e.increase.bind(Object(Xi.a)(e)),e.decrease=e.decrease.bind(Object(Xi.a)(e)),e.handleChange=e.handleChange.bind(Object(Xi.a)(e)),e.handleMouseDown=e.handleMouseDown.bind(Object(Xi.a)(e)),e.handleMouseUp=e.handleMouseUp.bind(Object(Xi.a)(e)),e}return Object(Yi.a)(n,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"increase",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?s.noop:r;e=parseInt(100*e,10);var a={h:n.h,s:n.s,l:n.l,a:(parseInt(100*n.a,10)+e)/100,source:"rgb"};o(a)}},{key:"decrease",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?s.noop:r,a=parseInt(100*n.a,10)-parseInt(100*e,10),i={h:n.h,s:n.s,l:n.l,a:n.a<=e?0:a/100,source:"rgb"};o(i)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?s.noop:t,r=function(e,t,n){var r=tc(e,n),o=r.left,a=r.width,i=o<0?0:Math.round(100*o/a)/100;return t.hsl.a!==i?{h:t.hsl.h,s:t.hsl.s,l:t.hsl.l,a:i,source:"rgb"}:null}(e,this.props,this.container.current);r&&n(r,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==Jr.TAB&&e.preventDefault()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.rgb,n="".concat(t.r,",").concat(t.g,",").concat(t.b),r={background:"linear-gradient(to right, rgba(".concat(n,", 0) 0%, rgba(").concat(n,", 1) 100%)")},o={left:"".concat(100*t.a,"%")},a={up:function(){return e.increase()},right:function(){return e.increase()},"shift+up":function(){return e.increase(.1)},"shift+right":function(){return e.increase(.1)},pageup:function(){return e.increase(.1)},end:function(){return e.increase(1)},down:function(){return e.decrease()},left:function(){return e.decrease()},"shift+down":function(){return e.decrease(.1)},"shift+left":function(){return e.decrease(.1)},pagedown:function(){return e.decrease(.1)},home:function(){return e.decrease(1)}};return Object(c.createElement)(oc,{shortcuts:a},Object(c.createElement)("div",{className:"components-color-picker__alpha"},Object(c.createElement)("div",{className:"components-color-picker__alpha-gradient",style:r}),Object(c.createElement)("div",{className:"components-color-picker__alpha-bar",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Object(c.createElement)("div",{tabIndex:"0",role:"slider","aria-valuemax":"1","aria-valuemin":"0","aria-valuenow":t.a,"aria-orientation":"horizontal","aria-label":Object(d.__)("Alpha value, from 0 (transparent) to 1 (fully opaque)."),className:"components-color-picker__alpha-pointer",style:o,onKeyDown:this.preventKeyEvents}))))}}]),n}(c.Component),cc=Object(f.pure)(ic);function sc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Qi.a)(e);if(t){var o=Object(Qi.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Ji.a)(this,n)}}var uc=function(e){Object(Zi.a)(n,e);var t=sc(n);function n(){var e;return Object(qi.a)(this,n),(e=t.apply(this,arguments)).container=Object(c.createRef)(),e.increase=e.increase.bind(Object(Xi.a)(e)),e.decrease=e.decrease.bind(Object(Xi.a)(e)),e.handleChange=e.handleChange.bind(Object(Xi.a)(e)),e.handleMouseDown=e.handleMouseDown.bind(Object(Xi.a)(e)),e.handleMouseUp=e.handleMouseUp.bind(Object(Xi.a)(e)),e}return Object(Yi.a)(n,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"increase",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?s.noop:r,a={h:n.h+e>=359?359:n.h+e,s:n.s,l:n.l,a:n.a,source:"rgb"};o(a)}},{key:"decrease",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?s.noop:r,a={h:n.h<=e?0:n.h-e,s:n.s,l:n.l,a:n.a,source:"rgb"};o(a)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?s.noop:t,r=function(e,t,n){var r=tc(e,n),o=r.left,a=r.width,i=o>=a?359:360*(100*o/a)/100;return t.hsl.h!==i?{h:i,s:t.hsl.s,l:t.hsl.l,a:t.hsl.a,source:"rgb"}:null}(e,this.props,this.container.current);r&&n(r,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==Jr.TAB&&e.preventDefault()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props,n=t.hsl,r=void 0===n?{}:n,o=t.instanceId,a={left:"".concat(100*r.h/360,"%")},i={up:function(){return e.increase()},right:function(){return e.increase()},"shift+up":function(){return e.increase(10)},"shift+right":function(){return e.increase(10)},pageup:function(){return e.increase(10)},end:function(){return e.increase(359)},down:function(){return e.decrease()},left:function(){return e.decrease()},"shift+down":function(){return e.decrease(10)},"shift+left":function(){return e.decrease(10)},pagedown:function(){return e.decrease(10)},home:function(){return e.decrease(359)}};return Object(c.createElement)(oc,{shortcuts:i},Object(c.createElement)("div",{className:"components-color-picker__hue"},Object(c.createElement)("div",{className:"components-color-picker__hue-gradient"}),Object(c.createElement)("div",{className:"components-color-picker__hue-bar",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Object(c.createElement)("div",{tabIndex:"0",role:"slider","aria-valuemax":"1","aria-valuemin":"359","aria-valuenow":r.h,"aria-orientation":"horizontal","aria-label":Object(d.__)("Hue value in degrees, from 0 to 359."),"aria-describedby":"components-color-picker__hue-description-".concat(o),className:"components-color-picker__hue-pointer",style:a,onKeyDown:this.preventKeyEvents}),Object(c.createElement)(h.a,{as:"p",id:"components-color-picker__hue-description-".concat(o)},Object(d.__)("Move the arrow left or right to change hue.")))))}}]),n}(c.Component),lc=Object(f.compose)(f.pure,f.withInstanceId)(uc);var dc=Object(c.forwardRef)((function e(t,n){var r=t.label,a=t.hideLabelFromVision,s=t.value,u=t.help,l=t.className,d=t.onChange,p=t.type,b=void 0===p?"text":p,h=Object(i.a)(t,["label","hideLabelFromVision","value","help","className","onChange","type"]),v=Object(f.useInstanceId)(e),m="inspector-text-control-".concat(v);return Object(c.createElement)(kt,{label:r,hideLabelFromVision:a,id:m,help:u,className:l},Object(c.createElement)("input",Object(o.a)({className:"components-text-control__input",type:b,id:m,value:s,onChange:function(e){return d(e.target.value)},"aria-describedby":u?m+"__help":void 0,ref:n},h)))}));function fc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Qi.a)(e);if(t){var o=Object(Qi.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Ji.a)(this,n)}}var pc=function(e){Object(Zi.a)(n,e);var t=fc(n);function n(){var e;return Object(qi.a)(this,n),(e=t.apply(this,arguments)).handleBlur=e.handleBlur.bind(Object(Xi.a)(e)),e.handleChange=e.handleChange.bind(Object(Xi.a)(e)),e.handleKeyDown=e.handleKeyDown.bind(Object(Xi.a)(e)),e}return Object(Yi.a)(n,[{key:"handleBlur",value:function(){var e=this.props,t=e.value,n=e.valueKey;(0,e.onChange)({source:e.source,state:"commit",value:t,valueKey:n})}},{key:"handleChange",value:function(e){var t=this.props,n=t.valueKey,r=t.onChange,o=t.source;e.length>4&&nc(e)?r({source:o,state:"commit",value:e,valueKey:n}):r({source:o,state:"draft",value:e,valueKey:n})}},{key:"handleKeyDown",value:function(e){var t=e.keyCode;if(t===Jr.ENTER||t===Jr.UP||t===Jr.DOWN){var n=this.props,r=n.value,o=n.valueKey;(0,n.onChange)({source:n.source,state:"commit",value:r,valueKey:o})}}},{key:"render",value:function(){var e=this,t=this.props,n=t.label,r=t.value,a=Object(i.a)(t,["label","value"]);return Object(c.createElement)(dc,Object(o.a)({className:"components-color-picker__inputs-field",label:n,value:r,onChange:function(t){return e.handleChange(t)},onBlur:this.handleBlur,onKeyDown:this.handleKeyDown},Object(s.omit)(a,["onChange","valueKey","source"])))}}]),n}(c.Component),bc=Object(f.pure)(Io.a),hc=function(e){Object(Zi.a)(n,e);var t=fc(n);function n(e){var r,o=e.hsl;Object(qi.a)(this,n),r=t.apply(this,arguments);var a=1===o.a?"hex":"rgb";return r.state={view:a},r.toggleViews=r.toggleViews.bind(Object(Xi.a)(r)),r.resetDraftValues=r.resetDraftValues.bind(Object(Xi.a)(r)),r.handleChange=r.handleChange.bind(Object(Xi.a)(r)),r.normalizeValue=r.normalizeValue.bind(Object(Xi.a)(r)),r}return Object(Yi.a)(n,[{key:"toggleViews",value:function(){"hex"===this.state.view?(this.setState({view:"rgb"},this.resetDraftValues),Object(No.speak)(Object(d.__)("RGB mode active"))):"rgb"===this.state.view?(this.setState({view:"hsl"},this.resetDraftValues),Object(No.speak)(Object(d.__)("Hue/saturation/lightness mode active"))):"hsl"===this.state.view&&(1===this.props.hsl.a?(this.setState({view:"hex"},this.resetDraftValues),Object(No.speak)(Object(d.__)("Hex color mode active"))):(this.setState({view:"rgb"},this.resetDraftValues),Object(No.speak)(Object(d.__)("RGB mode active"))))}},{key:"resetDraftValues",value:function(){return this.props.onChange({state:"reset"})}},{key:"normalizeValue",value:function(e,t){return"a"!==e?t:t<0?0:t>1?1:Math.round(100*t)/100}},{key:"handleChange",value:function(e){var t=e.source,n=e.state,r=e.value,o=e.valueKey;this.props.onChange({source:t,state:n,valueKey:o,value:this.normalizeValue(o,r)})}},{key:"renderFields",value:function(){var e=this.props.disableAlpha,t=void 0!==e&&e;if("hex"===this.state.view)return Object(c.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(c.createElement)(pc,{source:this.state.view,label:Object(d.__)("Color value in hexadecimal"),valueKey:"hex",value:this.props.hex,onChange:this.handleChange}));if("rgb"===this.state.view){var n=t?Object(d.__)("Color value in RGB"):Object(d.__)("Color value in RGBA");return Object(c.createElement)("fieldset",null,Object(c.createElement)(h.a,{as:"legend"},n),Object(c.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(c.createElement)(pc,{source:this.state.view,label:"r",valueKey:"r",value:this.props.rgb.r,onChange:this.handleChange,type:"number",min:"0",max:"255"}),Object(c.createElement)(pc,{source:this.state.view,label:"g",valueKey:"g",value:this.props.rgb.g,onChange:this.handleChange,type:"number",min:"0",max:"255"}),Object(c.createElement)(pc,{source:this.state.view,label:"b",valueKey:"b",value:this.props.rgb.b,onChange:this.handleChange,type:"number",min:"0",max:"255"}),t?null:Object(c.createElement)(pc,{source:this.state.view,label:"a",valueKey:"a",value:this.props.rgb.a,onChange:this.handleChange,type:"number",min:"0",max:"1",step:"0.01"})))}if("hsl"===this.state.view){var r=t?Object(d.__)("Color value in HSL"):Object(d.__)("Color value in HSLA");return Object(c.createElement)("fieldset",null,Object(c.createElement)(h.a,{as:"legend"},r),Object(c.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(c.createElement)(pc,{source:this.state.view,label:"h",valueKey:"h",value:this.props.hsl.h,onChange:this.handleChange,type:"number",min:"0",max:"359"}),Object(c.createElement)(pc,{source:this.state.view,label:"s",valueKey:"s",value:this.props.hsl.s,onChange:this.handleChange,type:"number",min:"0",max:"100"}),Object(c.createElement)(pc,{source:this.state.view,label:"l",valueKey:"l",value:this.props.hsl.l,onChange:this.handleChange,type:"number",min:"0",max:"100"}),t?null:Object(c.createElement)(pc,{source:this.state.view,label:"a",valueKey:"a",value:this.props.hsl.a,onChange:this.handleChange,type:"number",min:"0",max:"1",step:"0.05"})))}}},{key:"render",value:function(){return Object(c.createElement)("div",{className:"components-color-picker__inputs-wrapper"},this.renderFields(),Object(c.createElement)("div",{className:"components-color-picker__inputs-toggle-wrapper"},Object(c.createElement)(bc,{className:"components-color-picker__inputs-toggle",icon:Wi.a,label:Object(d.__)("Change color format"),onClick:this.toggleViews})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),n}(c.Component);function vc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Qi.a)(e);if(t){var o=Object(Qi.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Ji.a)(this,n)}}var mc=function(e){Object(Zi.a)(n,e);var t=vc(n);function n(e){var r;return Object(qi.a)(this,n),(r=t.call(this,e)).throttle=Object(s.throttle)((function(e,t,n){e(t,n)}),50),r.container=Object(c.createRef)(),r.saturate=r.saturate.bind(Object(Xi.a)(r)),r.brighten=r.brighten.bind(Object(Xi.a)(r)),r.handleChange=r.handleChange.bind(Object(Xi.a)(r)),r.handleMouseDown=r.handleMouseDown.bind(Object(Xi.a)(r)),r.handleMouseUp=r.handleMouseUp.bind(Object(Xi.a)(r)),r}return Object(Yi.a)(n,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"saturate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsv,r=t.onChange,o=void 0===r?s.noop:r,a=Object(s.clamp)(n.s+Math.round(100*e),0,100),i={h:n.h,s:a,v:n.v,a:n.a,source:"rgb"};o(i)}},{key:"brighten",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsv,r=t.onChange,o=void 0===r?s.noop:r,a=Object(s.clamp)(n.v+Math.round(100*e),0,100),i={h:n.h,s:n.s,v:a,a:n.a,source:"rgb"};o(i)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?s.noop:t,r=function(e,t,n){var r=tc(e,n),o=r.top,a=r.left,i=r.width,c=r.height,s=a<0?0:100*a/i,u=o>=c?0:-100*o/c+100;return u<1&&(u=0),{h:t.hsl.h,s:s,v:u,a:t.hsl.a,source:"rgb"}}(e,this.props,this.container.current);this.throttle(n,r,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==Jr.TAB&&e.preventDefault()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props,n=t.hsv,r=t.hsl,o=t.instanceId,a={top:"".concat(100-n.v,"%"),left:"".concat(n.s,"%")},i={up:function(){return e.brighten()},"shift+up":function(){return e.brighten(.1)},pageup:function(){return e.brighten(1)},down:function(){return e.brighten(-.01)},"shift+down":function(){return e.brighten(-.1)},pagedown:function(){return e.brighten(-1)},right:function(){return e.saturate()},"shift+right":function(){return e.saturate(.1)},end:function(){return e.saturate(1)},left:function(){return e.saturate(-.01)},"shift+left":function(){return e.saturate(-.1)},home:function(){return e.saturate(-1)}};return Object(c.createElement)(oc,{shortcuts:i},Object(c.createElement)("div",{style:{background:"hsl(".concat(r.h,",100%, 50%)")},className:"components-color-picker__saturation-color",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange,role:"application"},Object(c.createElement)("div",{className:"components-color-picker__saturation-white"}),Object(c.createElement)("div",{className:"components-color-picker__saturation-black"}),Object(c.createElement)(Io.a,{"aria-label":Object(d.__)("Choose a shade"),"aria-describedby":"color-picker-saturation-".concat(o),className:"components-color-picker__saturation-pointer",style:a,onKeyDown:this.preventKeyEvents}),Object(c.createElement)(h.a,{id:"color-picker-saturation-".concat(o)},Object(d.__)("Use your arrow keys to change the base color. Move up to lighten the color, down to darken, left to decrease saturation, and right to increase saturation."))))}}]),n}(c.Component),yc=Object(f.compose)(f.pure,f.withInstanceId)(mc);function gc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Qi.a)(e);if(t){var o=Object(Qi.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Ji.a)(this,n)}}function Oc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jc(e){for(var t=1;t-1&&this.props.scrollIntoView&&(this.scrollingIntoView=!0,Ac()(this.list.children[this.props.selectedIndex],this.list,{onlyScrollIfNeeded:!0}),this.props.setTimeout((function(){e.scrollingIntoView=!1}),100))}},{key:"bindList",value:function(e){this.list=e}},{key:"handleHover",value:function(e){var t=this;return function(){t.scrollingIntoView||t.props.onHover(e)}}},{key:"handleClick",value:function(e){var t=this;return function(){t.props.onSelect(e)}}},{key:"handleMouseDown",value:function(e){e.preventDefault()}},{key:"computeSuggestionMatch",value:function(e){var t=this.props.displayTransform(this.props.match||"").toLocaleLowerCase();if(0===t.length)return null;var n=(e=this.props.displayTransform(e)).toLocaleLowerCase().indexOf(t);return{suggestionBeforeMatch:e.substring(0,n),suggestionMatch:e.substring(n,n+t.length),suggestionAfterMatch:e.substring(n+t.length)}}},{key:"render",value:function(){var e=this;return Object(c.createElement)("ul",{ref:this.bindList,className:"components-form-token-field__suggestions-list",id:"components-form-token-suggestions-".concat(this.props.instanceId),role:"listbox"},Object(s.map)(this.props.suggestions,(function(t,n){var r=e.computeSuggestionMatch(t),o=l()("components-form-token-field__suggestion",{"is-selected":n===e.props.selectedIndex});return Object(c.createElement)("li",{id:"components-form-token-suggestions-".concat(e.props.instanceId,"-").concat(n),role:"option",className:o,key:e.props.displayTransform(t),onMouseDown:e.handleMouseDown,onClick:e.handleClick(t),onMouseEnter:e.handleHover(t),"aria-selected":n===e.props.selectedIndex},r?Object(c.createElement)("span",{"aria-label":e.props.displayTransform(t)},r.suggestionBeforeMatch,Object(c.createElement)("strong",{className:"components-form-token-field__suggestion-match"},r.suggestionMatch),r.suggestionAfterMatch):e.props.displayTransform(t))})))}}]),n}(c.Component);Fc.defaultProps={match:"",onHover:function(){},onSelect:function(){},suggestions:Object.freeze([])};var zc=Object(f.withSafeTimeout)(Fc),Bc=Object(f.createHigherOrderComponent)((function(e){return function(t){var n=Object(c.useState)(),r=Object(a.a)(n,2),i=r[0],s=r[1],u=Object(c.useCallback)((function(e){return s((function(){return null!=e&&e.handleFocusOutside?e.handleFocusOutside.bind(e):void 0}))}),[]);return Object(c.createElement)("div",Object(f.__experimentalUseFocusOutside)(i),Object(c.createElement)(e,Object(o.a)({ref:u},t)))}}),"withFocusOutside");function Hc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Qi.a)(e);if(t){var o=Object(Qi.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Ji.a)(this,n)}}var Vc=Bc(function(e){Object(Zi.a)(n,e);var t=Hc(n);function n(){return Object(qi.a)(this,n),t.apply(this,arguments)}return Object(Yi.a)(n,[{key:"handleFocusOutside",value:function(e){this.props.onFocusOutside(e)}},{key:"render",value:function(){return this.props.children}}]),n}(c.Component));var Kc=function e(t){var n,r=t.value,o=t.label,i=t.options,u=t.onChange,p=t.onFilterValueChange,b=t.hideLabelFromVision,h=t.help,v=t.allowReset,m=void 0===v||v,y=t.className,g=t.messages,O=void 0===g?{selected:Object(d.__)("Item selected.")}:g,j=Object(f.useInstanceId)(e),w=Object(c.useState)(null),_=Object(a.a)(w,2),k=_[0],E=_[1],S=Object(c.useState)(!1),x=Object(a.a)(S,2),C=x[0],P=x[1],D=Object(c.useState)(""),M=Object(a.a)(D,2),T=M[0],I=M[1],R=Object(c.useRef)(),N=i.find((function(e){return e.value===r})),A=null!==(n=null==N?void 0:N.label)&&void 0!==n?n:"",L=Object(c.useMemo)((function(){var e=[],t=[],n=Object(s.deburr)(T.toLocaleLowerCase());return i.forEach((function(r){var o=Object(s.deburr)(r.label).toLocaleLowerCase().indexOf(n);0===o?e.push(r):o>0&&t.push(r)})),e.concat(t)}),[T,i,r]),F=function(e){u(e.value),Object(No.speak)(O.selected,"assertive"),E(e),I(""),P(!1)},z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=L.indexOf(k),n=t+e;n<0?n=L.length-1:n>=L.length&&(n=0),E(L[n]),P(!0)};return Object(c.useEffect)((function(){var e=L.length>0;if(C){var t=e?Object(d.sprintf)(Object(d._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",L.length),L.length):Object(d.__)("No results.");Object(No.speak)(t,"polite")}}),[L,C]),Object(c.createElement)(Vc,{onFocusOutside:function(){P(!1)}},Object(c.createElement)(kt,{className:l()(y,"components-combobox-control"),tabIndex:"-1",label:o,id:"components-form-token-input-".concat(j),hideLabelFromVision:b,help:h},Object(c.createElement)("div",{className:"components-combobox-control__suggestions-container",tabIndex:"-1",onKeyDown:function(e){var t=!1;switch(e.keyCode){case Jr.ENTER:k&&(F(k),t=!0);break;case Jr.UP:z(-1),t=!0;break;case Jr.DOWN:z(1),t=!0;break;case Jr.ESCAPE:P(!1),E(null),t=!0,e.stopPropagation()}t&&e.preventDefault()}},Object(c.createElement)(Mt,null,Object(c.createElement)(Pt,null,Object(c.createElement)(Rc,{className:"components-combobox-control__input",instanceId:j,ref:R,value:C?T:A,"aria-label":A?"".concat(A,", ").concat(o):null,onFocus:function(){P(!0),p(""),I("")},isExpanded:C,selectedSuggestionIndex:L.indexOf(k),onChange:function(e){var t=e.value;I(t),p(t),P(!0)}})),m&&Object(c.createElement)(Dt,null,Object(c.createElement)(Io.a,{className:"components-combobox-control__reset",icon:Tc.a,disabled:!r,onClick:function(){u(null),R.current.input.focus()},label:Object(d.__)("Reset")}))),C&&Object(c.createElement)(zc,{instanceId:j,match:{label:T},displayTransform:function(e){return e.label},suggestions:L,selectedIndex:L.indexOf(k),onHover:E,onSelect:F,scrollIntoView:!0}))))},Wc=n(44),Uc=(n(176),n(30)),Gc=n.n(Uc);n(206);function $c(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function qc(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function Yc(e,t){if(e.clientHeightt||a>e&&i=t&&c>=n?a-e-r:i>t&&cn?i-t+o:0}var Zc=0;function Jc(){}function Qc(e,t){e&&function(e,t){var n=window,r=t.scrollMode,o=t.block,a=t.inline,i=t.boundary,c=t.skipOverflowHiddenElements,s="function"==typeof i?i:function(e){return e!==i};if(!$c(e))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,l=[],d=e;$c(d)&&s(d);){if((d=d.parentNode)===u){l.push(d);break}d===document.body&&Yc(d)&&!Yc(document.documentElement)||Yc(d,c)&&l.push(d)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),m=v.height,y=v.width,g=v.top,O=v.right,j=v.bottom,w=v.left,_="start"===o||"nearest"===o?g:"end"===o?j:g+m/2,k="center"===a?w+y/2:"end"===a?O:w,E=[],S=0;S=0&&w>=0&&j<=p&&O<=f&&g>=M&&j<=I&&w>=R&&O<=T)return E;var N=getComputedStyle(x),A=parseInt(N.borderLeftWidth,10),L=parseInt(N.borderTopWidth,10),F=parseInt(N.borderRightWidth,10),z=parseInt(N.borderBottomWidth,10),B=0,H=0,V="offsetWidth"in x?x.offsetWidth-x.clientWidth-A-F:0,K="offsetHeight"in x?x.offsetHeight-x.clientHeight-L-z:0;if(u===x)B="start"===o?_:"end"===o?_-p:"nearest"===o?Xc(h,h+p,p,L,z,h+_,h+_+m,m):_-p/2,H="start"===a?k:"center"===a?k-f/2:"end"===a?k-f:Xc(b,b+f,f,A,F,b+k,b+k+y,y),B=Math.max(0,B+h),H=Math.max(0,H+b);else{B="start"===o?_-M-L:"end"===o?_-I+z+K:"nearest"===o?Xc(M,I,P,L,z+K,_,_+m,m):_-(M+P/2)+K/2,H="start"===a?k-R-A:"center"===a?k-(R+D/2)+V/2:"end"===a?k-T+F+V:Xc(R,T,D,A,F+V,k,k+y,y);var W=x.scrollLeft,U=x.scrollTop;_+=U-(B=Math.max(0,Math.min(U+B,x.scrollHeight-P+K))),k+=W-(H=Math.max(0,Math.min(W+H,x.scrollWidth-D+V)))}E.push({el:x,top:B,left:H})}return E}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))}function es(e,t){return e===t||t instanceof Node&&e.contains&&e.contains(t)}function ts(e,t){var n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,a=new Array(o),i=0;i1?n-1:0),o=1;o=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function us(e,t,n,r,o){if(void 0===o&&(o=!0),0===n)return-1;var a=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:a+1);var i=t+e;i<0?i=o?a:0:i>a&&(i=o?0:a);var c=ls(e,i,n,r,o);return-1===c?t>=n?-1:t:c}function ls(e,t,n,r,o){var a=r(t);if(!a||!a.hasAttribute("disabled"))return t;if(e>0){for(var i=t+1;i=0;c--)if(!r(c).hasAttribute("disabled"))return c;return o?e>0?ls(1,0,n,r,!1):ls(-1,n-1,n,r,!1):-1}function ds(e,t,n,r){return void 0===r&&(r=!0),t.some((function(t){return t&&(es(t,e)||r&&es(t,n.activeElement))}))}var fs=ts((function(e){bs(e).textContent=""}),500);function ps(e,t){var n=bs(t);e&&(n.textContent=e,fs(t))}function bs(e){void 0===e&&(e=document);var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var hs={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function vs(e,t,n){var r=e.props,a=e.type,i={};Object.keys(t).forEach((function(r){!function(e,t,n,r){var a=t.props,i=t.type,c="on"+ws(e)+"Change";a[c]&&void 0!==r[e]&&r[e]!==n[e]&&a[c](Object(o.a)({type:i},r))}(r,e,t,n),n[r]!==t[r]&&(i[r]=n[r])})),r.onStateChange&&Object.keys(i).length&&r.onStateChange(Object(o.a)({type:a},i))}var ms=ts((function(e,t){ps(e(),t)}),200),ys="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?_.useLayoutEffect:_.useEffect;function gs(e){var t=e.id,n=void 0===t?"downshift-"+os():t,r=e.labelId,o=e.menuId,a=e.getItemId,i=e.toggleButtonId,c=e.inputId;return Object(_.useRef)({labelId:r||n+"-label",menuId:o||n+"-menu",getItemId:a||function(e){return n+"-item-"+e},toggleButtonId:i||n+"-toggle-button",inputId:c||n+"-input"}).current}function Os(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function js(e){return/^\S{1}$/.test(e)}function ws(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function _s(e){var t=Object(_.useRef)(e);return t.current=e,t}function ks(e,t,n){var r=Object(_.useRef)(),a=Object(_.useRef)(),i=Object(_.useCallback)((function(t,n){a.current=n,t=is(t,n.props);var r=e(t,n);return n.props.stateReducer(t,Object(o.a)({},n,{changes:r}))}),[e]),c=Object(_.useReducer)(i,t),s=c[0],u=c[1],l=_s(n),d=Object(_.useCallback)((function(e){return u(Object(o.a)({props:l.current},e))}),[l]),f=a.current;return Object(_.useEffect)((function(){f&&r.current&&r.current!==s&&vs(f,is(r.current,f.props),s),r.current=s}),[s,n,f]),[s,d]}function Es(e,t,n){var r=ks(e,t,n),o=r[0],a=r[1];return[is(o,n),a]}var Ss={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""},scrollIntoView:Qc,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function xs(e,t,n){void 0===n&&(n=hs);var r="default"+ws(t);return r in e?e[r]:n[t]}function Cs(e,t,n){if(void 0===n&&(n=hs),t in e)return e[t];var r="initial"+ws(t);return r in e?e[r]:xs(e,t,n)}function Ps(e){var t=Cs(e,"selectedItem"),n=Cs(e,"isOpen"),r=Cs(e,"highlightedIndex"),o=Cs(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function Ds(e,t,n,r){var o=e.items,a=e.initialHighlightedIndex,i=e.defaultHighlightedIndex,c=t.selectedItem,s=t.highlightedIndex;return 0===o.length?-1:void 0!==a&&s===a?a:void 0!==i?i:c?0===n?o.indexOf(c):us(n,o.indexOf(c),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function Ms(e,t,n,r){var o=Object(_.useRef)({isMouseDown:!1,isTouchMove:!1});return Object(_.useEffect)((function(){var a=function(){o.current.isMouseDown=!0},i=function(a){o.current.isMouseDown=!1,e&&!ds(a.target,t.map((function(e){return e.current})),n.document)&&r()},c=function(){o.current.isTouchMove=!1},s=function(){o.current.isTouchMove=!0},u=function(a){!e||o.current.isTouchMove||ds(a.target,t.map((function(e){return e.current})),n.document,!1)||r()};return n.addEventListener("mousedown",a),n.addEventListener("mouseup",i),n.addEventListener("touchstart",c),n.addEventListener("touchmove",s),n.addEventListener("touchend",u),function(){n.removeEventListener("mousedown",a),n.removeEventListener("mouseup",i),n.removeEventListener("touchstart",c),n.removeEventListener("touchmove",s),n.removeEventListener("touchend",u)}}),[e,n]),o}var Ts=function(){return Jc};function Is(e,t,n){var r=n.isInitialMount,a=n.highlightedIndex,i=n.items,c=n.environment,s=Object(Wc.a)(n,["isInitialMount","highlightedIndex","items","environment"]);Object(_.useEffect)((function(){r||ms((function(){return e(Object(o.a)({highlightedIndex:a,highlightedItem:i[a],resultCount:i.length},s))}),c.document)}),t)}function Rs(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,o=e.getItemNodeFromIndex,a=e.menuElement,i=e.scrollIntoView,c=Object(_.useRef)(!0);return ys((function(){t<0||!n||!Object.keys(r.current).length||(!1===c.current?c.current=!0:i(o(t),a))}),[t]),c}var Ns=Jc;function As(e,t,n){var r,a=t.type,i=t.props;switch(a){case n.ItemMouseMove:r={highlightedIndex:t.index};break;case n.MenuMouseLeave:r={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Ds(i,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:Ds(i,e,0)};break;case n.FunctionCloseMenu:r={isOpen:!1};break;case n.FunctionSetHighlightedIndex:r={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:r={inputValue:t.inputValue};break;case n.FunctionReset:r={highlightedIndex:xs(i,"highlightedIndex"),isOpen:xs(i,"isOpen"),selectedItem:xs(i,"selectedItem"),inputValue:xs(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Object(o.a)({},e,r)}function Ls(e,t,n,r,o){for(var a=e.toLowerCase(),i=0;i=0&&{selectedItem:a.items[u]});break;case 13:n={highlightedIndex:Ds(a,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case 14:n={highlightedIndex:Ds(a,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case 5:case 6:n=Object(o.a)({isOpen:xs(a,"isOpen"),highlightedIndex:xs(a,"highlightedIndex")},e.highlightedIndex>=0&&{selectedItem:a.items[e.highlightedIndex]});break;case 3:n={highlightedIndex:ls(1,0,a.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:ls(-1,a.items.length-1,a.items.length,t.getItemNodeFromIndex,!1)};break;case 2:case 8:n={isOpen:!1,highlightedIndex:-1};break;case 7:var l=t.key,d=""+e.inputValue+l,f=Ls(d,e.highlightedIndex,a.items,a.itemToString,t.getItemNodeFromIndex);n=Object(o.a)({inputValue:d},f>=0&&{highlightedIndex:f});break;case 0:n={highlightedIndex:us(i?5:1,e.highlightedIndex,a.items.length,t.getItemNodeFromIndex,a.circularNavigation)};break;case 1:n={highlightedIndex:us(i?-5:-1,e.highlightedIndex,a.items.length,t.getItemNodeFromIndex,a.circularNavigation)};break;case 20:n={selectedItem:t.selectedItem};break;default:return As(e,t,Bs)}return Object(o.a)({},e,n)}function Vs(e){void 0===e&&(e={}),zs(e,Vs);var t=Object(o.a)({},Fs,e),n=t.items,r=t.scrollIntoView,a=t.environment,i=t.initialIsOpen,c=t.defaultIsOpen,s=t.itemToString,u=t.getA11ySelectionMessage,l=t.getA11yStatusMessage,d=Es(Hs,Ps(t),t),f=d[0],p=d[1],b=f.isOpen,h=f.highlightedIndex,v=f.selectedItem,m=f.inputValue,y=Object(_.useRef)(null),g=Object(_.useRef)(null),O=Object(_.useRef)({}),j=Object(_.useRef)(!0),w=Object(_.useRef)(null),k=gs(t),E=Object(_.useRef)(),S=Object(_.useRef)(!0),x=_s({state:f,props:t}),C=Object(_.useCallback)((function(e){return O.current[k.getItemId(e)]}),[k]);Is(l,[b,h,m,n],Object(o.a)({isInitialMount:S.current,previousResultCount:E.current,items:n,environment:a,itemToString:s},f)),Is(u,[v],Object(o.a)({isInitialMount:S.current,previousResultCount:E.current,items:n,environment:a,itemToString:s},f));var P=Rs({menuElement:g.current,highlightedIndex:h,isOpen:b,itemRefs:O,scrollIntoView:r,getItemNodeFromIndex:C});Object(_.useEffect)((function(){S.current&&(w.current=ts((function(e){e({type:21,inputValue:""})}),500)),m&&w.current(p)}),[p,m]),Ns({isInitialMount:S.current,props:t,state:f}),Object(_.useEffect)((function(){S.current?(i||c||b)&&g.current&&g.current.focus():b?g.current&&g.current.focus():a.document.activeElement===g.current&&y.current&&(j.current=!1,y.current.focus())}),[b]),Object(_.useEffect)((function(){S.current||(E.current=n.length)}));var D=Ms(b,[g,y],a,(function(){p({type:8})})),M=Ts();Object(_.useEffect)((function(){S.current=!1}),[]),Object(_.useEffect)((function(){b||(O.current={})}),[b]);var T=Object(_.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),p({type:13,getItemNodeFromIndex:C,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),p({type:14,getItemNodeFromIndex:C,shiftKey:e.shiftKey})}}}),[p,C]),I=Object(_.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),p({type:0,getItemNodeFromIndex:C,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),p({type:1,getItemNodeFromIndex:C,shiftKey:e.shiftKey})},Home:function(e){e.preventDefault(),p({type:3,getItemNodeFromIndex:C})},End:function(e){e.preventDefault(),p({type:4,getItemNodeFromIndex:C})},Escape:function(){p({type:2})},Enter:function(e){e.preventDefault(),p({type:5})}," ":function(e){e.preventDefault(),p({type:6})}}}),[p,C]),R=Object(_.useCallback)((function(){p({type:16})}),[p]),N=Object(_.useCallback)((function(){p({type:18})}),[p]),A=Object(_.useCallback)((function(){p({type:17})}),[p]),L=Object(_.useCallback)((function(e){p({type:19,highlightedIndex:e})}),[p]),F=Object(_.useCallback)((function(e){p({type:20,selectedItem:e})}),[p]),z=Object(_.useCallback)((function(){p({type:22})}),[p]),B=Object(_.useCallback)((function(e){p({type:21,inputValue:e})}),[p]),H=Object(_.useCallback)((function(e){return Object(o.a)({id:k.labelId,htmlFor:k.toggleButtonId},e)}),[k]),V=Object(_.useCallback)((function(e,t){var n,r=void 0===e?{}:e,a=r.onMouseLeave,i=r.refKey,c=void 0===i?"ref":i,s=r.onKeyDown,u=r.onBlur,l=r.ref,d=Object(Wc.a)(r,["onMouseLeave","refKey","onKeyDown","onBlur","ref"]),f=(void 0===t?{}:t).suppressRefError,b=void 0!==f&&f,h=x.current.state;return M("getMenuProps",b,c,g),Object(o.a)(((n={})[c]=rs(l,(function(e){g.current=e})),n.id=k.menuId,n.role="listbox",n["aria-labelledby"]=k.labelId,n.tabIndex=-1,n),h.isOpen&&h.highlightedIndex>-1&&{"aria-activedescendant":k.getItemId(h.highlightedIndex)},{onMouseLeave:ns(a,(function(){p({type:9})})),onKeyDown:ns(s,(function(e){var t=ss(e);t&&I[t]?I[t](e):js(t)&&p({type:7,key:t,getItemNodeFromIndex:C})})),onBlur:ns(u,(function(){!1!==j.current?!D.current.isMouseDown&&p({type:8}):j.current=!0}))},d)}),[p,x,I,D,M,k,C]);return{getToggleButtonProps:Object(_.useCallback)((function(e,t){var n,r=void 0===e?{}:e,a=r.onClick,i=r.onKeyDown,c=r.refKey,s=void 0===c?"ref":c,u=r.ref,l=Object(Wc.a)(r,["onClick","onKeyDown","refKey","ref"]),d=(void 0===t?{}:t).suppressRefError,f=void 0!==d&&d,b=Object(o.a)(((n={})[s]=rs(u,(function(e){y.current=e})),n.id=k.toggleButtonId,n["aria-haspopup"]="listbox",n["aria-expanded"]=x.current.state.isOpen,n["aria-labelledby"]=k.labelId+" "+k.toggleButtonId,n),l);return l.disabled||(b.onClick=ns(a,(function(){p({type:12})})),b.onKeyDown=ns(i,(function(e){var t=ss(e);t&&T[t]?T[t](e):js(t)&&p({type:15,key:t,getItemNodeFromIndex:C})}))),M("getToggleButtonProps",f,s,y),b}),[p,x,T,M,k,C]),getLabelProps:H,getMenuProps:V,getItemProps:Object(_.useCallback)((function(e){var t,n=void 0===e?{}:e,r=n.item,a=n.index,i=n.onMouseMove,c=n.onClick,s=n.refKey,u=void 0===s?"ref":s,l=n.ref,d=Object(Wc.a)(n,["item","index","onMouseMove","onClick","refKey","ref"]),f=x.current,b=f.state,h=f.props,v=Os(a,r,h.items);if(v<0)throw new Error("Pass either item or item index in getItemProps!");var m=Object(o.a)(((t={role:"option","aria-selected":""+(v===b.highlightedIndex),id:k.getItemId(v)})[u]=rs(l,(function(e){e&&(O.current[k.getItemId(v)]=e)})),t),d);return d.disabled||(m.onMouseMove=ns(i,(function(){a!==b.highlightedIndex&&(P.current=!1,p({type:10,index:a}))})),m.onClick=ns(c,(function(){p({type:11,index:a})}))),m}),[p,x,P,k]),toggleMenu:R,openMenu:A,closeMenu:N,setHighlightedIndex:L,selectItem:F,reset:z,setInputValue:B,highlightedIndex:h,isOpen:b,selectedItem:v,inputValue:m}}Vs.stateChangeTypes=Bs;Gc.a.array.isRequired,Gc.a.func,Gc.a.func,Gc.a.func,Gc.a.bool,Gc.a.number,Gc.a.number,Gc.a.number,Gc.a.bool,Gc.a.bool,Gc.a.bool,Gc.a.any,Gc.a.any,Gc.a.any,Gc.a.string,Gc.a.string,Gc.a.string,Gc.a.string,Gc.a.string,Gc.a.string,Gc.a.func,Gc.a.string,Gc.a.string,Gc.a.func,Gc.a.func,Gc.a.func,Gc.a.func,Gc.a.func,Gc.a.func,Gc.a.shape({addEventListener:Gc.a.func,removeEventListener:Gc.a.func,document:Gc.a.shape({getElementById:Gc.a.func,activeElement:Gc.a.any,body:Gc.a.any})});Object(o.a)({},Ss,{getA11yStatusMessage:as,circularNavigation:!0});Gc.a.array,Gc.a.array,Gc.a.array,Gc.a.func,Gc.a.func,Gc.a.func,Gc.a.number,Gc.a.number,Gc.a.number,Gc.a.func,Gc.a.func,Gc.a.string,Gc.a.string,Gc.a.shape({addEventListener:Gc.a.func,removeEventListener:Gc.a.func,document:Gc.a.shape({getElementById:Gc.a.func,activeElement:Gc.a.any,body:Gc.a.any})});var Ks=function(e){return e&&e.name},Ws=function(e,t){var n=e.selectedItem,r=t.type,o=t.changes,a=t.props.items;switch(r){case Vs.stateChangeTypes.ToggleButtonKeyDownArrowDown:return{selectedItem:a[n?Math.min(a.indexOf(n)+1,a.length-1):0]};case Vs.stateChangeTypes.ToggleButtonKeyDownArrowUp:return{selectedItem:a[n?Math.max(a.indexOf(n)-1,0):a.length-1]};default:return o}};function Us(e){var t=e.className,n=e.hideLabelFromVision,r=e.label,a=e.options,i=e.onChange,s=e.value,u=Vs({initialSelectedItem:a[0],items:a,itemToString:Ks,onSelectedItemChange:i,selectedItem:s,stateReducer:Ws}),d=u.getLabelProps,f=u.getToggleButtonProps,p=u.getMenuProps,b=u.getItemProps,v=u.isOpen,m=u.highlightedIndex,y=u.selectedItem,g=p({className:"components-custom-select-control__menu","aria-hidden":!v});return g["aria-activedescendant"]&&"downshift-null"===g["aria-activedescendant"].slice(0,"downshift-null".length)&&delete g["aria-activedescendant"],Object(c.createElement)("div",{className:l()("components-custom-select-control",t)},n?Object(c.createElement)(h.a,Object(o.a)({as:"label"},d()),r):Object(c.createElement)("label",d({className:"components-custom-select-control__label"}),r),Object(c.createElement)(Io.a,f({"aria-label":r,"aria-labelledby":void 0,className:"components-custom-select-control__button",isSmall:!0}),Ks(y),Object(c.createElement)(Li.a,{icon:Wi.a,className:"components-custom-select-control__button-icon"})),Object(c.createElement)("ul",g,v&&a.map((function(e,t){return Object(c.createElement)("li",b({item:e,index:t,key:e.key,className:l()(e.className,"components-custom-select-control__item",{"is-highlighted":t===m}),style:e.style}),e.name,e===y&&Object(c.createElement)(Li.a,{icon:Fi.a,className:"components-custom-select-control__item-icon"}))}))))}var Gs=n(148),$s=(n(324),n(45)),qs=n.n($s),Ys=n(288),Xs=n.n(Ys);function Zs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Qi.a)(e);if(t){var o=Object(Qi.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Ji.a)(this,n)}}var Js=function(e){Object(Zi.a)(n,e);var t=Zs(n);function n(){var e;return Object(qi.a)(this,n),(e=t.apply(this,arguments)).onChangeMoment=e.onChangeMoment.bind(Object(Xi.a)(e)),e.nodeRef=Object(c.createRef)(),e.keepFocusInside=e.keepFocusInside.bind(Object(Xi.a)(e)),e.isDayHighlighted=e.isDayHighlighted.bind(Object(Xi.a)(e)),e}return Object(Yi.a)(n,[{key:"keepFocusInside",value:function(){if(this.nodeRef.current){var e=this.nodeRef.current.ownerDocument;if(!e.activeElement||!this.nodeRef.current.contains(e.activeElement)){var t=this.nodeRef.current.querySelector(".DayPicker_focusRegion");if(!t)return;t.focus()}}}},{key:"onChangeMoment",value:function(e){var t=this.props,n=t.currentDate,r=t.onChange,o=n?qs()(n):qs()(),a={hours:o.hours(),minutes:o.minutes(),seconds:0};r(e.set(a).format("YYYY-MM-DDTHH:mm:ss"))}},{key:"getMomentDate",value:function(e){return null===e?null:e?qs()(e):qs()()}},{key:"isDayHighlighted",value:function(e){var t;return!(null===(t=this.props.events)||void 0===t||!t.length)&&(this.props.onMonthPreviewed&&this.props.onMonthPreviewed(e.toDate()),this.props.events.some((function(t){return e.isSame(t.date,"day")})))}},{key:"render",value:function(){var e=this.props,t=e.currentDate,n=e.isInvalidDate,r=this.getMomentDate(t);return Object(c.createElement)("div",{className:"components-datetime__date",ref:this.nodeRef},Object(c.createElement)(Xs.a,{date:r,daySize:30,focused:!0,hideKeyboardShortcutsPanel:!0,key:"datepicker-controller-".concat(r?r.format("MM-YYYY"):"null"),noBorder:!0,numberOfMonths:1,onDateChange:this.onChangeMoment,transitionDuration:0,weekDayFormat:"ddd",isRTL:Object(d.isRTL)(),isOutsideRange:function(e){return n&&n(e.toDate())},isDayHighlighted:this.isDayHighlighted,onPrevMonthClick:this.keepFocusInside,onNextMonthClick:this.keepFocusInside}))}}]),n}(c.Component),Qs=n(69),eu=function(){var e=Object(Qs.__experimentalGetSettings)().timezone,t=(new Date).getTimezoneOffset()/60*-1;if(Number(e.offset)===t)return null;var n=e.offset>=0?"+":"",r=""!==e.abbr&&isNaN(e.abbr)?e.abbr:"UTC".concat(n).concat(e.offset),o="UTC"===e.string?Object(d.__)("Coordinated Universal Time"):"(".concat(r,") ").concat(e.string.replace("_"," "));return Object(c.createElement)(b.a,{position:"top center",text:o},Object(c.createElement)("div",{className:"components-datetime__timezone"},r))};function tu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nu(e){var t=e.as,n=e.value,r=e.onUpdate,o=Object(i.a)(e,["as","value","onUpdate"]);return Object(c.createElement)(t||"input",function(e){for(var t=1;to.max||void 0!==o.min&&a700?(o.style.transform="scale(0.5)",o.style.transformOrigin="top left",o.style.top="".concat(e.clientY-100,"px"),o.style.left="".concat(e.clientX,"px")):(o.style.top="".concat(h-0,"px"),o.style.left="".concat(v-0,"px")),Array.from(m.querySelectorAll("iframe")).forEach((function(e){return e.parentNode.removeChild(e)})),o.appendChild(m),b.appendChild(o)}var y,g=e.clientX,O=e.clientY;function j(e){o.style.top="".concat(parseInt(o.style.top,10)+e.clientY-O,"px"),o.style.left="".concat(parseInt(o.style.left,10)+e.clientX-g,"px"),g=e.clientX,O=e.clientY,r&&r(e)}t.addEventListener("dragover",j),t.body.classList.add(_u),e.persist(),n&&(y=setTimeout((function(){return n(e)}))),d.current=function(){o&&o.parentNode&&o.parentNode.removeChild(o),c&&c.parentNode&&c.parentNode.removeChild(c),t.body.classList.remove(_u),t.removeEventListener("dragover",j),clearTimeout(y)}},onDraggableEnd:function(e){e.preventDefault(),d.current(),r&&o(e)}}),u&&Object(c.createElement)("div",{className:"components-draggable-drag-component-root",style:{display:"none"},ref:l},u))}var Eu=n(221),Su=n(63),xu=n.n(Su),Cu=Object(c.createContext)(),Pu=Cu.Provider;function Du(e){var t=e.dataTransfer;if(t){if(Object(s.includes)(t.types,"Files")||Object(fu.getFilesFromDataTransfer)(t).length>0)return"file";if(Object(s.includes)(t.types,"text/html"))return"html"}return"default"}function Mu(e,t){return Boolean("file"===e&&t.onFilesDrop||"html"===e&&t.onHTMLDrop||"default"===e&&t.onDrop)}function Tu(e){var t=window.CustomEvent&&e instanceof window.CustomEvent?e.detail:e;return{x:t.clientX,y:t.clientY}}function Iu(e,t,n){var r=Object(s.filter)(Array.from(e),(function(e){return Mu(n,e)&&(r=e.element.current,o=t.x,a=t.y,(i=r.getBoundingClientRect()).bottom!==i.top&&i.left!==i.right&&o>=i.left&&o<=i.right&&a>=i.top&&a<=i.bottom);var r,o,a,i}));return Object(s.find)(r,(function(e){var t=e.isRelative?e.element.current.parentElement:e.element.current;return!Object(s.some)(r,(function(n){return n!==e&&t.contains(n.element.current)}))}))}var Ru={isDraggingOverDocument:!1,isDraggingOverElement:!1,x:null,y:null,type:null};function Nu(e){var t=Object(c.useContext)(Cu);Object(c.useEffect)((function(){var n,r=e.current.ownerDocument.defaultView;var o=Object(s.throttle)((function(e){if(!n||!n.contains(e.target)){var r=Du(e),o=Tu(e),a=Iu(t,o,r);n=a&&a.isRelative?a.element.current.offsetParent:null,t.forEach((function(e){var t=e===a,n={isDraggingOverDocument:Mu(r,e),isDraggingOverElement:t,x:t&&e.withPosition?o.x:null,y:t&&e.withPosition?o.y:null,type:t?r:null};e.setState((function(e){return xu()(e,n)?e:n}))})),e.preventDefault()}}),200);function a(e){o(e),e.preventDefault()}function i(){o.cancel(),t.forEach((function(e){return e.setState(Ru)}))}function c(e){e.dataTransfer&&e.dataTransfer.files.length;var n=Du(e),r=Tu(e),o=Iu(t,r,n);if(i(),o)switch(n){case"file":o.onFilesDrop(Object(fu.getFilesFromDataTransfer)(e.dataTransfer),r);break;case"html":o.onHTMLDrop(e.dataTransfer.getData("text/html"),r);break;case"default":o.onDrop(e,r)}e.stopPropagation(),e.preventDefault()}return r.addEventListener("drop",c),r.addEventListener("dragover",a),r.addEventListener("mouseup",i),r.addEventListener("dragend",i),function(){r.removeEventListener("drop",c),r.removeEventListener("dragover",a),r.removeEventListener("mouseup",i),r.removeEventListener("dragend",i)}}),[e,t])}function Au(e){var t=Object(c.useRef)(new Set([]));return Object(c.createElement)(Pu,Object(o.a)({},e,{value:t.current}))}function Lu(e){var t=e.children,n=Object(c.useRef)();return Nu(n),Object(c.createElement)("div",{ref:n,className:"components-drop-zone__provider"},t)}function Fu(e){var t=e.children;return Object(c.createElement)(Au,null,Object(c.createElement)(Lu,null,t))}function zu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bu(e){for(var t=1;t-1&&e?{index:n,target:e,focusables:t}:null}},{key:"getFocusableIndex",value:function(e,t){var n=e.indexOf(t);if(-1!==n)return n}},{key:"onKeyDown",value:function(e){this.props.onKeyDown&&this.props.onKeyDown(e);var t=this.getFocusableContext,n=this.props,r=n.cycle,o=void 0===r||r,a=n.eventToOffset,i=n.onNavigate,c=void 0===i?s.noop:i,u=n.stopNavigationEvents,l=a(e);if(void 0!==l&&u){e.stopImmediatePropagation();var d=e.target.getAttribute("role");$u.includes(d)&&e.preventDefault()}if(l){var f=t(e.target.ownerDocument.activeElement);if(f){var p=f.index,b=f.focusables,h=o?function(e,t,n){var r=e+n;return r<0?t+r:r>=t?r-t:r}(p,b.length,l):p+l;h>=0&&h0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Qu(Qu({},e),t);return t.className&&e.className&&(n.className=l()(t.className,e.className)),n}var tl=function(e){var t,n=e.children,r=e.className,a=e.controls,i=e.icon,u=void 0===i?Uu:i,d=e.label,f=e.popoverProps,p=e.toggleProps,b=e.menuProps,h=e.disableOpenOnArrowDown,v=void 0!==h&&h,m=e.text,y=e.menuLabel,g=e.position,O=e.noIcons;if(y&&Wu()("`menuLabel` prop in `DropdownComponent`",{alternative:"`menuProps` object and its `aria-label` property",plugin:"Gutenberg"}),g&&Wu()("`position` prop in `DropdownComponent`",{alternative:"`popoverProps` object and its `position` property",plugin:"Gutenberg"}),Object(s.isEmpty)(a)&&!Object(s.isFunction)(n))return null;Object(s.isEmpty)(a)||(t=a,Array.isArray(t[0])||(t=[t]));var j=el({className:"components-dropdown-menu__popover",position:g},f);return Object(c.createElement)(Gi,{className:l()("components-dropdown-menu",r),popoverProps:j,renderToggle:function(e){var t,n=e.isOpen,r=e.onToggle,a=el({className:l()("components-dropdown-menu__toggle",{"is-opened":n})},p);return Object(c.createElement)(Io.a,Object(o.a)({},a,{icon:u,onClick:function(e){r(e),a.onClick&&a.onClick(e)},onKeyDown:function(e){!function(e){v||n||e.keyCode!==Jr.DOWN||(e.preventDefault(),e.stopPropagation(),r())}(e),a.onKeyDown&&a.onKeyDown(e)},"aria-haspopup":"true","aria-expanded":n,label:d,text:m,showTooltip:null===(t=null==p?void 0:p.showTooltip)||void 0===t||t}),a.children)},renderContent:function(e){var r=el({"aria-label":y||d,className:l()("components-dropdown-menu__menu",{"no-icons":O})},b);return Object(c.createElement)(Zu,Object(o.a)({},r,{role:"menu"}),Object(s.isFunction)(n)?n(e):null,Object(s.flatMap)(t,(function(t,n){return t.map((function(t,r){return Object(c.createElement)(Io.a,{key:[n,r].join(),onClick:function(n){n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:l()("components-dropdown-menu__menu-item",{"has-separator":n>0&&0===r,"is-active":t.isActive}),icon:t.icon,"aria-checked":"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.isActive:void 0,role:"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.role:"menuitem",disabled:t.isDisabled},t.title)}))})))}})},nl=n(436);var rl=R(Li.a,{target:"etxm6pv0",label:"StyledIcon"})({name:"i8uvf3",styles:"width:1.4em;height:1.4em;margin:-0.2em 0.1em 0;vertical-align:middle;fill:currentColor;"});var ol=Object(c.forwardRef)((function(e,t){var n=e.href,r=e.children,a=e.className,u=e.rel,f=void 0===u?"":u,p=Object(i.a)(e,["href","children","className","rel"]);f=Object(s.uniq)(Object(s.compact)([].concat(Object(Mo.a)(f.split(" ")),["external","noreferrer","noopener"]))).join(" ");var b=l()("components-external-link",a);return Object(c.createElement)("a",Object(o.a)({},p,{className:b,href:n,target:"_blank",rel:f,ref:t}),r,Object(c.createElement)(h.a,{as:"span"},Object(d.__)("(opens in a new tab)")),Object(c.createElement)(rl,{icon:nl.a,className:"components-external-link__icon"}))}));var al=R("div",{target:"e11wezi70",label:"MediaWrapper"})({name:"4wwkjz",styles:"background-color:transparent;box-sizing:border-box;text-align:center;width:100%;"}),il=R("div",{target:"e11wezi71",label:"MediaContainer"})({name:"1q0l1fq",styles:"align-items:center;box-sizing:border-box;box-shadow:0 0 0 1px rgba( 0,0,0,0.2 );cursor:pointer;display:inline-flex;justify-content:center;margin:auto;position:relative;height:100%;img,video{box-sizing:border-box;display:block;height:auto;margin:0;max-height:100%;max-width:100%;pointer-events:none;user-select:none;width:auto;}"}),cl=R("div",{target:"e11wezi72",label:"MediaPlaceholder"})("background:",J("lightGray.300"),";box-sizing:border-box;height:170px;max-width:280px;min-width:200px;width:100%;"),sl=R(ra,{target:"e11wezi73",label:"UnitControl"})({name:"v7v99c",styles:"width:100px;"}),ul=R(Tt,{target:"e11wezi74",label:"ControlWrapper"})({name:"lqoi1w",styles:"max-width:320px;padding:1em 0;"}),ll=R("div",{target:"e11wezi75",label:"GridView"})("box-sizing:border-box;left:50%;opacity:0;overflow:hidden;pointer-events:none;position:absolute;top:50%;transform:translate3d( -50%,-50%,0 );transition:opacity 120ms linear;z-index:1;",(function(e){return e.isActive&&"\n\t\topacity: 1;\n\t"}),""),dl=R("div",{target:"e11wezi76",label:"GridLine"})({name:"18dz4sk",styles:"box-sizing:border-box;background:white;box-shadow:0 0 2px rgba( 0,0,0,0.6 );position:absolute;opacity:0.4;transform:translateZ( 0 );"}),fl=R(dl,{target:"e11wezi77",label:"GridLineX"})({name:"1u4twh6",styles:"height:1px;left:0;right:0;"}),pl=R(dl,{target:"e11wezi78",label:"GridLineY"})({name:"13gvipf",styles:"width:1px;top:0;bottom:0;"}),bl={top:0,left:0,bottom:0,right:0,width:0,height:0},hl=["avi","mpg","mpeg","mov","mp4","m4v","ogg","ogv","webm","wmv"];function vl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split(".");return t[t.length-1]}function ml(e){return Math.round(100*e)}function yl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gl(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";return!!e&&hl.includes(vl(e))}(r)?Object(c.createElement)("video",Object(o.a)({},p,{autoPlay:n,className:"components-focal-point-picker__media components-focal-point-picker__media--video",loop:!0,muted:f,onLoadedData:u,ref:l,src:r})):Object(c.createElement)("img",Object(o.a)({},p,{alt:t,className:"components-focal-point-picker__media components-focal-point-picker__media--image",onLoad:u,ref:l,src:r})):Object(c.createElement)(Tl,{className:"components-focal-point-picker__media components-focal-point-picker__media--placeholder",onLoad:u,mediaRef:l})}function Tl(e){var t=e.mediaRef,n=e.onLoad,r=void 0===n?s.noop:n,a=Object(i.a)(e,["mediaRef","onLoad"]),u=Object(c.useRef)(r);return Object(c.useLayoutEffect)((function(){window.requestAnimationFrame((function(){u.current()}))}),[]),Object(c.createElement)(cl,Object(o.a)({ref:t},a))}function Il(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Qi.a)(e);if(t){var o=Object(Qi.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Ji.a)(this,n)}}var Rl=function(e){Object(Zi.a)(n,e);var t=Il(n);function n(e){var r;return Object(qi.a)(this,n),(r=t.apply(this,arguments)).state={isDragging:!1,bounds:bl,percentages:e.value},r.containerRef=Object(c.createRef)(),r.mediaRef=Object(c.createRef)(),r.handleOnClick=r.handleOnClick.bind(Object(Xi.a)(r)),r.handleOnMouseUp=r.handleOnMouseUp.bind(Object(Xi.a)(r)),r.handleOnKeyDown=r.handleOnKeyDown.bind(Object(Xi.a)(r)),r.onMouseMove=r.onMouseMove.bind(Object(Xi.a)(r)),r.updateBounds=r.updateBounds.bind(Object(Xi.a)(r)),r.updateValue=r.updateValue.bind(Object(Xi.a)(r)),r}return Object(Yi.a)(n,[{key:"componentDidMount",value:function(){document.addEventListener("mouseup",this.handleOnMouseUp),window.addEventListener("resize",this.updateBounds),this.updateBounds()}},{key:"componentDidUpdate",value:function(e){e.url!==this.props.url&&this.setState({isDragging:!1}),this.props.value.x===this.state.percentages.x&&this.props.value.y===this.state.percentages.y||this.setState({percentages:this.props.value})}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mouseup",this.handleOnMouseUp),window.removeEventListener("resize",this.updateBounds)}},{key:"calculateBounds",value:function(){var e=bl;if(!this.mediaRef.current)return e;if(0===this.mediaRef.current.clientWidth||0===this.mediaRef.current.clientHeight)return e;var t=this.mediaRef.current.clientWidth,n=this.mediaRef.current.clientHeight,r=this.pickerDimensions(),o=r.width/t,a=r.height/n;return a>=o?(e.width=e.right=r.width,e.height=n*o,e.top=(r.height-e.height)/2,e.bottom=e.top+e.height):(e.height=e.bottom=r.height,e.width=t*a,e.left=(r.width-e.width)/2,e.right=e.left+e.width),e}},{key:"updateValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.props.onChange,n=e.x,r=e.y,o={x:parseFloat(n).toFixed(2),y:parseFloat(r).toFixed(2)};this.setState({percentages:o},(function(){t(o)}))}},{key:"updateBounds",value:function(){this.setState({bounds:this.calculateBounds()})}},{key:"handleOnClick",value:function(e){var t=this;e.persist(),this.setState({isDragging:!0},(function(){t.onMouseMove(e)}))}},{key:"handleOnMouseUp",value:function(){this.setState({isDragging:!1})}},{key:"handleOnKeyDown",value:function(e){var t=e.keyCode,n=e.shiftKey;if([Jr.UP,Jr.DOWN,Jr.LEFT,Jr.RIGHT].includes(t)){var r=this.state.percentages,o=r.x,a=r.y;e.preventDefault();var i=parseFloat(o),c=parseFloat(a),s=n?.1:.01;switch(e.keyCode){case Jr.UP:c-=s;break;case Jr.DOWN:c+=s;break;case Jr.LEFT:i-=s;break;case Jr.RIGHT:i+=s}var u={x:i=wo(i,0,1,s),y:c=wo(c,0,1,s)};this.updateValue(u)}}},{key:"onMouseMove",value:function(e){var t=this.state,n=t.isDragging,r=t.bounds;if(n){e.preventDefault();var o=e.shiftKey,a=this.pickerDimensions(),i={left:e.pageX-a.left,top:e.pageY-a.top},c=Math.max(r.left,Math.min(i.left,r.right)),s=Math.max(r.top,Math.min(i.top,r.bottom)),u=(c-r.left)/(a.width-2*r.left),l=(s-r.top)/(a.height-2*r.top),d=o?.1:.01,f={x:u=wo(u,0,1,d),y:l=wo(l,0,1,d)};this.updateValue(f)}}},{key:"pickerDimensions",value:function(){var e=this.containerRef.current;if(!e)return{width:0,height:0,left:0,top:0};var t=e.clientHeight,n=e.clientWidth,r=e.getBoundingClientRect(),o=r.top,a=r.left;return{width:n,height:t,top:o+document.body.scrollTop,left:a}}},{key:"iconCoordinates",value:function(){var e=this.props.value,t=this.state.bounds;if(void 0===t.left||void 0===t.top)return{left:"50%",top:"50%"};var n=this.pickerDimensions(),r={left:e.x*(n.width-2*t.left)+t.left,top:e.y*(n.height-2*t.top)+t.top};return r}},{key:"handleFocusOutside",value:function(){this.setState({isDragging:!1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.autoPlay,r=t.className,o=t.help,a=t.instanceId,i=t.label,s=t.onDragStart,u=t.onDragEnd,f=t.url,p=this.state,b=p.bounds,h=p.isDragging,v=p.percentages,m=this.iconCoordinates(),y=l()("components-focal-point-picker-control",r),g="inspector-focal-point-picker-control-".concat(a);return Object(c.createElement)(kt,{label:i,id:g,help:o,className:y},Object(c.createElement)(al,{className:"components-focal-point-picker-wrapper"},Object(c.createElement)(il,{className:"components-focal-point-picker",onDragStart:function(t){e.setState({isDragging:!0}),s(t)},onDrop:function(t){e.setState({isDragging:!1}),u(t)},onKeyDown:this.handleOnKeyDown,onMouseDown:this.handleOnClick,onMouseMove:this.onMouseMove,onMouseUp:this.handleOnMouseUp,ref:this.containerRef,role:"button",tabIndex:"-1"},Object(c.createElement)(Dl,{bounds:b,value:v.x+v.y}),Object(c.createElement)(Ml,{alt:Object(d.__)("Media preview"),autoPlay:n,mediaRef:this.mediaRef,onLoad:this.updateBounds,src:f}),Object(c.createElement)(Sl,{coordinates:m,isDragging:h}))),Object(c.createElement)(Ol,{percentages:v,onChange:this.updateValue}))}}]),n}(c.Component);Rl.defaultProps={autoPlay:!0,onDragStart:s.noop,onDragEnd:s.noop,onChange:s.noop,value:{x:.5,y:.5},url:null};var Nl=Object(f.compose)([f.withInstanceId,Bc])(Rl);function Al(e){var t=e.iframeRef,n=e.onFocus,r=Object(i.a)(e,["iframeRef","onFocus"]),a=Object(c.useRef)(),s=t||a;return Object(c.useEffect)((function(){var e=s.current,t=e.ownerDocument,r=t.defaultView,o=r.FocusEvent;function a(){if(t.activeElement===e){var r=new o("focus",{bubbles:!0});e.dispatchEvent(r),n&&n(r)}}return r.addEventListener("blur",a),function(){r.removeEventListener("blur",a)}}),[n]),Object(c.createElement)("iframe",Object(o.a)({ref:s},r))}var Ll=n(222);function Fl(e,t,n){return"number"!=typeof e?null:parseFloat(Object(s.clamp)(e,t,n))}var zl={name:"tdik1c",styles:"height:30px;min-height:30px;"},Bl=function(){return zl},Hl=R("div",{target:"exqw8y20",label:"Root"})({name:"44oaj8",styles:"-webkit-tap-highlight-color:transparent;box-sizing:border-box;align-items:flex-start;display:inline-flex;justify-content:flex-start;padding:0;position:relative;touch-action:none;width:100%;"}),Vl=R("div",{target:"exqw8y21",label:"Wrapper"})("box-sizing:border-box;color:",J("blue.medium.focus"),";display:block;flex:1;padding-top:15px;position:relative;width:100%;",(function(e){var t=e.color,n=void 0===t?J("ui.borderFocus"):t;return Object(S.b)({color:n},"")}),";",Bl,";",(function(e){var t=e.marks;return Object(S.b)({marginBottom:t?16:null},"")}),";",hn({marginLeft:10}),""),Kl=R("span",{target:"exqw8y22",label:"BeforeIconWrapper"})("margin-top:3px;",hn({marginRight:6}),""),Wl=R("span",{target:"exqw8y23",label:"AfterIconWrapper"})("margin-top:3px;",hn({marginLeft:16}),""),Ul=R("span",{target:"exqw8y24",label:"Rail"})("background-color:",J("lightGray.600"),";box-sizing:border-box;left:0;pointer-events:none;right:0;display:block;height:3px;position:absolute;margin-top:14px;top:0;",(function(e){var t=e.disabled,n=e.railColor||null;return t&&(n=J("lightGray.400")),Object(S.b)({background:n},"")}),";"),Gl=R("span",{target:"exqw8y25",label:"Track"})("background-color:currentColor;border-radius:1px;box-sizing:border-box;height:3px;pointer-events:none;display:block;position:absolute;margin-top:14px;top:0;",(function(e){var t=e.disabled,n=e.trackColor||"currentColor";return t&&(n=J("lightGray.800")),Object(S.b)({background:n},"")}),";"),$l=R("span",{target:"exqw8y26",label:"MarksWrapper"})({name:"8d21nl",styles:"box-sizing:border-box;display:block;pointer-events:none;position:relative;width:100%;user-select:none;"}),ql=R("span",{target:"exqw8y27",label:"Mark"})("box-sizing:border-box;height:9px;left:0;position:absolute;top:-4px;width:1px;",(function(e){var t=e.disabled,n=e.isFilled?"currentColor":J("lightGray.600");return t&&(n=J("lightGray.800")),Object(S.b)({backgroundColor:n},"")}),";"),Yl=R("span",{target:"exqw8y28",label:"MarkLabel"})("box-sizing:border-box;color:",J("lightGray.600"),";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;",(function(e){var t=e.isFilled;return Object(S.b)({color:J(t?"darkGray.300":"lightGray.600")},"")}),";"),Xl=R("span",{target:"exqw8y29",label:"ThumbWrapper"})("align-items:center;box-sizing:border-box;display:flex;height:",20,"px;justify-content:center;margin-top:5px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:",20,"px;",hn({marginLeft:-10}),""),Zl=R("span",{target:"exqw8y210",label:"Thumb"})("align-items:center;background-color:white;border-radius:50%;border:1px solid ",J("darkGray.200"),";box-sizing:border-box;height:100%;outline:0;position:absolute;user-select:none;width:100%;",(function(e){var t=e.isFocused;return Object(S.b)({borderColor:J(t?"ui.borderFocus":"darkGray.200"),boxShadow:t?"\n\t\t\t\t0 0 0 1px ".concat(J("ui.borderFocus"),"\n\t\t\t"):"\n\t\t\t\t0 0 0 rgba(0, 0, 0, 0)\n\t\t\t"},"")}),";"),Jl=R("input",{target:"exqw8y211",label:"InputRange"})("box-sizing:border-box;cursor:pointer;display:block;height:100%;left:0;margin:0 -",10,"px;opacity:0;outline:none;position:absolute;right:0;top:0;width:calc( 100% + ",20,"px );"),Ql={name:"5qqmyx",styles:"top:-80%;"},ed={name:"eda4eg",styles:"bottom:-80%;"},td=R("span",{target:"exqw8y212",label:"Tooltip"})("background:",J("ui.border"),";border-radius:2px;box-sizing:border-box;color:white;display:inline-block;font-size:12px;min-width:32px;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;text-align:center;transition:opacity 120ms ease;user-select:none;line-height:1.4;",(function(e){var t=e.show;return Object(S.b)({opacity:t?1:0},"")}),";",(function(e){return"top"===e.position?Ql:ed}),";",Q("transition"),";",hn({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),""),nd=R(ko,{target:"exqw8y213",label:"InputNumber"})("box-sizing:border-box;display:inline-block;font-size:13px;margin-top:0;width:",yt(8),";input[type='number']&{",Bl,";}",hn({marginLeft:yt(2)}),""),rd=R("span",{target:"exqw8y214",label:"ActionRightWrapper"})("box-sizing:border-box;display:block;margin-top:0;button,button.is-small{margin-left:0;",Bl,";}",hn({marginLeft:8}),"");var od=Object(c.forwardRef)((function(e,t){var n=e.describedBy,r=e.isShiftStepEnabled,u=void 0===r||r,l=e.label,d=e.onHideTooltip,f=void 0===d?s.noop:d,p=e.onMouseLeave,b=void 0===p?s.noop:p,h=e.step,v=void 0===h?1:h,m=e.onBlur,y=void 0===m?s.noop:m,g=e.onChange,O=void 0===g?s.noop:g,j=e.onFocus,w=void 0===j?s.noop:j,_=e.onMouseMove,k=void 0===_?s.noop:_,E=e.onShowTooltip,S=void 0===E?s.noop:E,x=e.shiftStep,C=void 0===x?10:x,P=e.value,D=Object(i.a)(e,["describedBy","isShiftStepEnabled","label","onHideTooltip","onMouseLeave","step","onBlur","onChange","onFocus","onMouseMove","onShowTooltip","shiftStep","value"]),M=_o({step:v,shiftStep:C,isShiftStepEnabled:u}),T=function(e){var t=e.onHide,n=void 0===t?s.noop:t,r=e.onMouseLeave,o=void 0===r?s.noop:r,i=e.onMouseMove,u=void 0===i?s.noop:i,l=e.onShow,d=void 0===l?s.noop:l,f=e.timeout,p=void 0===f?300:f,b=Object(c.useState)(!1),h=Object(a.a)(b,2),v=h[0],m=h[1],y=Object(c.useRef)(),g=Object(c.useCallback)((function(e){window.clearTimeout(y.current),y.current=setTimeout(e,p)}),[p]),O=Object(c.useCallback)((function(e){u(e),g((function(){v||(m(!0),d())}))}),[]),j=Object(c.useCallback)((function(e){o(e),g((function(){m(!1),n()}))}),[]);return Object(c.useEffect)((function(){return function(){window.clearTimeout(y.current)}})),{onMouseMove:O,onMouseLeave:j}}({onHide:f,onMouseLeave:b,onMouseMove:k,onShow:S});return Object(c.createElement)(Jl,Object(o.a)({},D,T,{"aria-describedby":n,"aria-label":l,"aria-hidden":!1,onBlur:y,onChange:O,onFocus:w,ref:t,step:M,tabIndex:0,type:"range",value:P}))}));function ad(e){var t=e.className,n=e.isFilled,r=void 0!==n&&n,a=e.label,s=e.style,u=void 0===s?{}:s,d=Object(i.a)(e,["className","isFilled","label","style"]),f=l()("components-range-control__mark",r&&"is-filled",t),p=l()("components-range-control__mark-label",r&&"is-filled");return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(ql,Object(o.a)({},d,{"aria-hidden":"true",className:f,isFilled:r,style:u})),a&&Object(c.createElement)(Yl,{"aria-hidden":"true",className:p,isFilled:r,style:u},a))}function id(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cd(e){for(var t=1;tt.push({value:c*t.length+r}););}var p=[];return t.forEach((function(e,t){if(!(e.valuea)){var n="mark-".concat(t),o=e.value<=u,i="".concat((e.value-r)/l*100,"%"),c=Object(L.a)({},Object(d.isRTL)()?"right":"left",i);p.push(cd(cd({},e),{},{isFilled:o,key:n,style:c}))}})),p}({marks:a,min:s,max:l,step:p,value:void 0===b?0:b});return Object(c.createElement)($l,{"aria-hidden":"true",className:"components-range-control__marks"},h.map((function(e){return Object(c.createElement)(ad,Object(o.a)({},e,{key:e.key,"aria-hidden":"true",disabled:n}))})))}function ld(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dd(e){for(var t=1;tD)&&(e=Fl(e,T,D)),A(e),ue.current=!1)},shiftStep:X,step:Q,value:we}),b&&Object(c.createElement)(rd,null,Object(c.createElement)(Io.a,{className:"components-range-control__reset",disabled:j||void 0===ce,isSecondary:!0,isSmall:!0,onClick:Me},Object(d.__)("Reset")))))}));var bd="default";var hd=rn((function e(t,n){var r,a=t.fallbackFontSize,i=t.fontSizes,u=void 0===i?[]:i,l=t.disableCustomFontSizes,p=void 0!==l&&l,b=t.onChange,v=t.value,m=t.withSlider,y=void 0!==m&&m,g=Object(s.isString)(v)||u[0]&&Object(s.isString)(u[0].size);r=g?parseInt(v):v;var O=Object(s.isNumber)(v)||Object(s.isString)(v)&&v.endsWith("px"),j=Object(f.useInstanceId)(e),w=Object(c.useMemo)((function(){return function(e,t){return t&&!e.length?null:(e=[{slug:bd,name:Object(d.__)("Default")}].concat(Object(Mo.a)(e),Object(Mo.a)(t?[]:[{slug:"custom",name:Object(d.__)("Custom")}]))).map((function(e){return{key:e.slug,name:e.name,size:e.size,style:{fontSize:"min( ".concat(e.size,", ").concat("25px"," )")}}}))}(u,p)}),[u,p]);if(!w)return null;var _=function(e,t){if(t){var n=e.find((function(e){return e.size===t}));return n?n.slug:"custom"}return bd}(u,v),k="components-font-size-picker__number#".concat(j);return Object(c.createElement)("fieldset",Object(o.a)({className:"components-font-size-picker"},n?{}:{ref:n}),Object(c.createElement)(h.a,{as:"legend"},Object(d.__)("Font size")),Object(c.createElement)("div",{className:"components-font-size-picker__controls"},u.length>0&&Object(c.createElement)(Us,{className:"components-font-size-picker__select",label:Object(d.__)("Font size"),options:w,value:w.find((function(e){return e.key===_})),onChange:function(e){var t=e.selectedItem;b(g?t.size:Number(t.size))}}),!y&&!p&&Object(c.createElement)("div",{className:"components-font-size-picker__number-container"},Object(c.createElement)("label",{htmlFor:k},Object(d.__)("Custom")),Object(c.createElement)("input",{id:k,className:"components-font-size-picker__number",type:"number",min:1,onChange:function(e){e.target.value||0===e.target.value?b(g?e.target.value+"px":Number(e.target.value)):b(void 0)},"aria-label":Object(d.__)("Custom"),value:O&&r||""})),Object(c.createElement)(Io.a,{className:"components-color-palette__clear",disabled:void 0===v,onClick:function(){b(void 0)},isSmall:!0,isSecondary:!0},Object(d.__)("Reset"))),y&&Object(c.createElement)(pd,{className:"components-font-size-picker__custom-input",label:Object(d.__)("Custom Size"),value:O&&r||"",initialPosition:a,onChange:function(e){b(g?e+"px":e)},min:12,max:100,beforeIcon:Ll.a,afterIcon:Ll.a}))}),void 0,"WPComponentsFontSizePicker");var vd=function(e){var t=e.accept,n=e.children,r=e.multiple,a=void 0!==r&&r,s=e.onChange,u=e.render,l=Object(i.a)(e,["accept","children","multiple","onChange","render"]),d=Object(c.useRef)(),f=function(){d.current.click()},p=u?u({openFileDialog:f}):Object(c.createElement)(Io.a,Object(o.a)({onClick:f},l),n);return Object(c.createElement)("div",{className:"components-form-file-upload"},p,Object(c.createElement)("input",{type:"file",ref:d,multiple:a,style:{display:"none"},accept:t,onChange:s}))};var md=function(e){var t=e.className,n=e.checked,r=e.id,a=e.disabled,u=e.onChange,d=void 0===u?s.noop:u,f=Object(i.a)(e,["className","checked","id","disabled","onChange"]),p=l()("components-form-toggle",t,{"is-checked":n,"is-disabled":a});return Object(c.createElement)("span",{className:p},Object(c.createElement)("input",Object(o.a)({className:"components-form-toggle__input",id:r,type:"checkbox",checked:n,onChange:d,disabled:a},f)),Object(c.createElement)("span",{className:"components-form-toggle__track"}),Object(c.createElement)("span",{className:"components-form-toggle__thumb"}))},yd=n(42);function gd(e){var t=e.value,n=e.status,r=e.title,o=e.displayTransform,a=e.isBorderless,i=void 0!==a&&a,u=e.disabled,p=void 0!==u&&u,b=e.onClickRemove,v=void 0===b?s.noop:b,m=e.onMouseEnter,y=e.onMouseLeave,g=e.messages,O=e.termPosition,j=e.termsCount,w=Object(f.useInstanceId)(gd),_=l()("components-form-token-field__token",{"is-error":"error"===n,"is-success":"success"===n,"is-validating":"validating"===n,"is-borderless":i,"is-disabled":p}),k=o(t),E=Object(d.sprintf)(Object(d.__)("%1$s (%2$s of %3$s)"),k,O,j);return Object(c.createElement)("span",{className:_,onMouseEnter:m,onMouseLeave:y,title:r},Object(c.createElement)("span",{className:"components-form-token-field__token-text",id:"components-form-token-field__token-text-".concat(w)},Object(c.createElement)(h.a,{as:"span"},E),Object(c.createElement)("span",{"aria-hidden":"true"},k)),Object(c.createElement)(Io.a,{className:"components-form-token-field__remove-token",icon:Tc.a,onClick:!p&&function(){return v({value:t})},label:g.remove,"aria-describedby":"components-form-token-field__token-text-".concat(w)}))}function Od(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jd(e){for(var t=1;t=0&&this.setState({selectedSuggestionIndex:t,selectedSuggestionScroll:!1})}},{key:"onSuggestionSelected",value:function(e){this.addNewToken(e)}},{key:"onInputChange",value:function(e){var t=e.value,n=this.props.tokenizeOnSpace?/[ ,\t]+/:/[,\t]+/,r=t.split(n),o=Object(s.last)(r)||"";r.length>1&&this.addNewTokens(r.slice(0,-1)),this.setState({incompleteTokenValue:o},this.updateSuggestions),this.props.onInputChange(o)}},{key:"handleDeleteKey",value:function(e){var t=!1;return this.input.hasFocus()&&this.isInputEmpty()&&(e(),t=!0),t}},{key:"handleLeftArrowKey",value:function(){var e=!1;return this.isInputEmpty()&&(this.moveInputBeforePreviousToken(),e=!0),e}},{key:"handleRightArrowKey",value:function(){var e=!1;return this.isInputEmpty()&&(this.moveInputAfterNextToken(),e=!0),e}},{key:"handleUpArrowKey",value:function(){var e=this;return this.setState((function(t,n){return{selectedSuggestionIndex:(0===t.selectedSuggestionIndex?e.getMatchingSuggestions(t.incompleteTokenValue,n.suggestions,n.value,n.maxSuggestions,n.saveTransform).length:t.selectedSuggestionIndex)-1,selectedSuggestionScroll:!0}})),!0}},{key:"handleDownArrowKey",value:function(){var e=this;return this.setState((function(t,n){return{selectedSuggestionIndex:(t.selectedSuggestionIndex+1)%e.getMatchingSuggestions(t.incompleteTokenValue,n.suggestions,n.value,n.maxSuggestions,n.saveTransform).length,selectedSuggestionScroll:!0}})),!0}},{key:"handleEscapeKey",value:function(e){return this.setState({incompleteTokenValue:e.target.value,isExpanded:!1,selectedSuggestionIndex:-1,selectedSuggestionScroll:!1}),!0}},{key:"handleCommaKey",value:function(){return this.inputHasValidValue()&&this.addNewToken(this.state.incompleteTokenValue),!0}},{key:"moveInputToIndex",value:function(e){this.setState((function(t,n){return{inputOffsetFromEnd:n.value.length-Math.max(e,-1)-1}}))}},{key:"moveInputBeforePreviousToken",value:function(){this.setState((function(e,t){return{inputOffsetFromEnd:Math.min(e.inputOffsetFromEnd+1,t.value.length)}}))}},{key:"moveInputAfterNextToken",value:function(){this.setState((function(e){return{inputOffsetFromEnd:Math.max(e.inputOffsetFromEnd-1,0)}}))}},{key:"deleteTokenBeforeInput",value:function(){var e=this.getIndexOfInput()-1;e>-1&&this.deleteToken(this.props.value[e])}},{key:"deleteTokenAfterInput",value:function(){var e=this.getIndexOfInput();e0){var r=Object(s.clone)(this.props.value);r.splice.apply(r,[this.getIndexOfInput(),0].concat(n)),this.props.onChange(r)}}},{key:"addNewToken",value:function(e){this.addNewTokens([e]),this.props.speak(this.props.messages.added,"assertive"),this.setState({incompleteTokenValue:"",selectedSuggestionIndex:-1,selectedSuggestionScroll:!1,isExpanded:!1}),this.state.isActive&&this.input.focus()}},{key:"deleteToken",value:function(e){var t=this,n=this.props.value.filter((function(n){return t.getTokenValue(n)!==t.getTokenValue(e)}));this.props.onChange(n),this.props.speak(this.props.messages.removed,"assertive")}},{key:"getTokenValue",value:function(e){return"object"===Object(yd.a)(e)?e.value:e}},{key:"getMatchingSuggestions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.incompleteTokenValue,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.suggestions,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props.value,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.props.maxSuggestions,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.props.saveTransform,a=o(e),i=[],c=[];return 0===a.length?t=Object(s.difference)(t,n):(a=a.toLocaleLowerCase(),Object(s.each)(t,(function(e){var t=e.toLocaleLowerCase().indexOf(a);-1===n.indexOf(e)&&(0===t?i.push(e):t>0&&c.push(e))})),t=i.concat(c)),Object(s.take)(t,r)}},{key:"getSelectedSuggestion",value:function(){if(-1!==this.state.selectedSuggestionIndex)return this.getMatchingSuggestions()[this.state.selectedSuggestionIndex]}},{key:"valueContainsToken",value:function(e){var t=this;return Object(s.some)(this.props.value,(function(n){return t.getTokenValue(e)===t.getTokenValue(n)}))}},{key:"getIndexOfInput",value:function(){return this.props.value.length-this.state.inputOffsetFromEnd}},{key:"isInputEmpty",value:function(){return 0===this.state.incompleteTokenValue.length}},{key:"inputHasValidValue",value:function(){return this.props.saveTransform(this.state.incompleteTokenValue).length>0}},{key:"updateSuggestions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.state.incompleteTokenValue,n=t.trim().length>1,r=this.getMatchingSuggestions(t),o=r.length>0,a={isExpanded:n&&o};if(e&&(a.selectedSuggestionIndex=-1,a.selectedSuggestionScroll=!1),this.setState(a),n){var i=this.props.debouncedSpeak,c=o?Object(d.sprintf)(Object(d._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",r.length),r.length):Object(d.__)("No results.");i(c,"assertive")}}},{key:"renderTokensAndInput",value:function(){var e=Object(s.map)(this.props.value,this.renderToken);return e.splice(this.getIndexOfInput(),0,this.renderInput()),e}},{key:"renderToken",value:function(e,t,n){var r=this.getTokenValue(e),o=e.status?e.status:void 0,a=t+1,i=n.length;return Object(c.createElement)(gd,{key:"token-"+r,value:r,status:o,title:e.title,displayTransform:this.props.displayTransform,onClickRemove:this.onTokenClickRemove,isBorderless:e.isBorderless||this.props.isBorderless,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,disabled:"error"!==o&&this.props.disabled,messages:this.props.messages,termsCount:i,termPosition:a})}},{key:"renderInput",value:function(){var e=this.props,t=e.autoCapitalize,n=e.autoComplete,r=e.maxLength,o=e.value,a={instanceId:e.instanceId,autoCapitalize:t,autoComplete:n,ref:this.bindInput,key:"input",disabled:this.props.disabled,value:this.state.incompleteTokenValue,onBlur:this.onBlur,isExpanded:this.state.isExpanded,selectedSuggestionIndex:this.state.selectedSuggestionIndex};return r&&o.length>=r||(a=jd(jd({},a),{},{onChange:this.onInputChange})),Object(c.createElement)(Rc,a)}},{key:"render",value:function(){var e=this.props,t=e.disabled,n=e.label,r=void 0===n?Object(d.__)("Add item"):n,o=e.instanceId,a=e.className,i=this.state.isExpanded,s=l()(a,"components-form-token-field__input-container",{"is-active":this.state.isActive,"is-disabled":t}),u={className:"components-form-token-field",tabIndex:"-1"},f=this.getMatchingSuggestions();return t||(u=Object.assign({},u,{onKeyDown:this.onKeyDown,onKeyPress:this.onKeyPress,onFocus:this.onFocus})),Object(c.createElement)("div",u,Object(c.createElement)("label",{htmlFor:"components-form-token-input-".concat(o),className:"components-form-token-field__label"},r),Object(c.createElement)("div",{ref:this.bindTokensAndInput,className:s,tabIndex:"-1",onMouseDown:this.onContainerTouched,onTouchStart:this.onContainerTouched},this.renderTokensAndInput(),i&&Object(c.createElement)(zc,{instanceId:o,match:this.props.saveTransform(this.state.incompleteTokenValue),displayTransform:this.props.displayTransform,suggestions:f,selectedIndex:this.state.selectedSuggestionIndex,scrollIntoView:this.state.selectedSuggestionScroll,onHover:this.onSuggestionHovered,onSelect:this.onSuggestionSelected})),Object(c.createElement)("p",{id:"components-form-token-suggestions-howto-".concat(o),className:"components-form-token-field__help"},this.props.tokenizeOnSpace?Object(d.__)("Separate with commas, spaces, or the Enter key."):Object(d.__)("Separate with commas or the Enter key.")))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.disabled&&t.isActive?{isActive:!1,incompleteTokenValue:""}:null}}]),n}(c.Component);kd.defaultProps={suggestions:Object.freeze([]),maxSuggestions:100,value:Object.freeze([]),displayTransform:s.identity,saveTransform:function(e){return e.trim()},onChange:function(){},onInputChange:function(){},isBorderless:!1,disabled:!1,tokenizeOnSpace:!1,messages:{added:Object(d.__)("Item added."),removed:Object(d.__)("Item removed."),remove:Object(d.__)("Remove item")}};var Ed=Ao(Object(f.withInstanceId)(kd)),Sd={className:"components-custom-gradient-picker__color-picker-popover",position:"top"};function xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cd(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:0,o=e[t].position,a=Math.min(o,n),i=Math.max(o,n);return e.some((function(e,o){var c=e.position;return o!==t&&(Math.abs(c-n)=5&&(s.current.significantMoveHappened=!0),o(Md(r,c,n))},l=function e(){window&&window.removeEventListener&&s.current&&s.current.listenersActivated&&(window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",e),i(),s.current.listenersActivated=!1)};return Object(c.useEffect)((function(){return function(){l()}}),[]),r.map((function(e,t){var f=null==e?void 0:e.position;return n!==f&&Object(c.createElement)(Gi,{key:t,onClose:i,renderToggle:function(n){var d=n.isOpen,p=n.onToggle;return Object(c.createElement)(Nd,{key:t,onClick:function(){s.current&&s.current.significantMoveHappened||(d?i():a(),p())},onMouseDown:function(){window&&window.addEventListener&&(s.current={initialPosition:f,index:t,significantMoveHappened:!1,listenersActivated:!0},a(),window.addEventListener("mousemove",u),window.addEventListener("mouseup",l))},isOpen:d,position:e.position,color:e.color,onChange:function(e){o(Md(r,t,e))}})},renderContent:function(n){var a=n.onClose;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(Ec,{color:e.color,onChangeComplete:function(e){var n=e.color;o(Td(r,t,n.toRgbString()))}}),Object(c.createElement)(Io.a,{className:"components-custom-gradient-picker__remove-control-point",onClick:function(){o(function(e,t){return e.filter((function(e,n){return n!==t}))}(r,t)),a()},isLink:!0},Object(d.__)("Remove Control Point")))},popoverProps:Sd})}))}Ad.InsertPoint=function(e){var t=e.value,n=e.onChange,r=e.onOpenInserter,o=e.onCloseInserter,i=e.insertPosition,s=Object(c.useState)(!1),u=Object(a.a)(s,2),l=u[0],d=u[1];return Object(c.createElement)(Gi,{className:"components-custom-gradient-picker__inserter",onClose:function(){o()},renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(c.createElement)(Io.a,{"aria-expanded":t,"aria-haspopup":"true",onClick:function(){t?o():(d(!1),r()),n()},className:"components-custom-gradient-picker__insert-point",icon:Ui.a,style:{left:null!==i?"".concat(i,"%"):void 0}})},renderContent:function(){return Object(c.createElement)(Ec,{onChangeComplete:function(e){var r,o,a,c,s=e.color;l?n((r=t,o=i,a=s.toRgbString(),c=r.findIndex((function(e){return e.position===o})),Td(r,c,a))):(n(function(e,t,n){var r=e.findIndex((function(e){return e.position>t})),o={color:n,position:t},a=e.slice();return a.splice(r-1,0,o),a}(t,i,s.toRgbString())),d(!0))}})},popoverProps:Sd})};var Ld=Ad;function Fd(e,t){switch(t.type){case"MOVE_INSERTER":if("IDLE"===e.id||"MOVING_INSERTER"===e.id)return{id:"MOVING_INSERTER",insertPosition:t.insertPosition};break;case"STOP_INSERTER_MOVE":if("MOVING_INSERTER"===e.id)return{id:"IDLE"};break;case"OPEN_INSERTER":if("MOVING_INSERTER"===e.id)return{id:"INSERTING_CONTROL_POINT",insertPosition:e.insertPosition};break;case"CLOSE_INSERTER":if("INSERTING_CONTROL_POINT"===e.id)return{id:"IDLE"};break;case"START_CONTROL_CHANGE":if("IDLE"===e.id)return{id:"MOVING_CONTROL_POINT"};break;case"STOP_CONTROL_CHANGE":if("MOVING_CONTROL_POINT"===e.id)return{id:"IDLE"}}return e}var zd={id:"IDLE"};function Bd(e){var t=e.background,n=e.hasGradient,r=e.value,o=e.onChange,i=Object(c.useRef)(),u=Object(c.useReducer)(Fd,zd),d=Object(a.a)(u,2),f=d[0],p=d[1],b=function(e){var t=Id(e.clientX,i.current,23);Object(s.some)(r,(function(e){var n=e.position;return Math.abs(t-n)<10}))?"MOVING_INSERTER"===f.id&&p({type:"STOP_INSERTER_MOVE"}):p({type:"MOVE_INSERTER",insertPosition:t})},h="MOVING_INSERTER"===f.id,v="INSERTING_CONTROL_POINT"===f.id;return Object(c.createElement)("div",{ref:i,className:l()("components-custom-gradient-picker__gradient-bar",{"has-gradient":n}),onMouseEnter:b,onMouseMove:b,style:{background:t},onMouseLeave:function(){p({type:"STOP_INSERTER_MOVE"})}},Object(c.createElement)("div",{className:"components-custom-gradient-picker__markers-container"},(h||v)&&Object(c.createElement)(Ld.InsertPoint,{insertPosition:f.insertPosition,value:r,onChange:o,onOpenInserter:function(){p({type:"OPEN_INSERTER"})},onCloseInserter:function(){p({type:"CLOSE_INSERTER"})}}),Object(c.createElement)(Ld,{gradientPickerDomRef:i,ignoreMarkerPosition:v?f.insertPosition:void 0,value:r,onChange:o,onStartControlPointChange:function(){p({type:"START_CONTROL_CHANGE"})},onStopControlPointChange:function(){p({type:"STOP_CONTROL_CHANGE"})}})))}var Hd=n(207),Vd=n.n(Hd),Kd="linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)",Wd={type:"angular",value:90},Ud=[{value:"linear-gradient",label:Object(d.__)("Linear")},{value:"radial-gradient",label:Object(d.__)("Radial")}],Gd={top:0,"top right":45,"right top":45,right:90,"right bottom":135,"bottom right":135,bottom:180,"bottom left":225,"left bottom":225,left:270,"top left":315,"left top":315};function $d(e){var t=e.type,n=e.value,r=e.length;return"".concat(function(e){var t=e.type,n=e.value;return"literal"===t?n:"hex"===t?"#".concat(n):"".concat(t,"(").concat(n.join(","),")")}({type:t,value:n})," ").concat(function(e){if(!e)return"";var t=e.value,n=e.type;return"".concat(t).concat(n)}(r))}function qd(e){var t=e.type,n=e.orientation,r=e.colorStops,o=function(e){if(e&&"angular"===e.type)return"".concat(e.value,"deg")}(n),a=r.sort((function(e,t){return Object(s.get)(e,["length","value"],0)-Object(s.get)(t,["length","value"],0)})).map($d);return"".concat(t,"(").concat(Object(s.compact)([o].concat(Object(Mo.a)(a))).join(","),")")}function Yd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xd(e){for(var t=1;t",{alternative:"the `pages` prop"})}),[t]),c.Children.count(t)&&(u=c.Children.map(t,(function(e){return{content:e}})));var v=b>0,m=b",{alternative:"the `pages` prop in "})}),[]),Object(c.createElement)("div",e)}var Cf=Object(c.forwardRef)((function(e,t){var n=e.labelPosition,r=e.size,a=e.tooltip,s=e.label,u=Object(i.a)(e,["labelPosition","size","tooltip","label"]);return Wu()("wp.components.IconButton",{alternative:"wp.components.Button"}),Object(c.createElement)(Io.a,Object(o.a)({},u,{ref:t,tooltipPosition:n,iconSize:r,showTooltip:void 0!==a?!!a:void 0,label:a||s}))}));var Pf=function e(t){var n=t.children,r=t.className,o=void 0===r?"":r,a=t.label,i=Object(f.useInstanceId)(e);if(!c.Children.count(n))return null;var s="components-menu-group-label-".concat(i),u=l()(o,"components-menu-group");return Object(c.createElement)("div",{className:u},a&&Object(c.createElement)("div",{className:"components-menu-group__label",id:s,"aria-hidden":"true"},a),Object(c.createElement)("div",{role:"group","aria-labelledby":a?s:null},n))},Df=n(178);var Mf=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.info,a=e.className,u=e.icon,d=e.shortcut,f=e.isSelected,p=e.role,b=void 0===p?"menuitem":p,h=Object(i.a)(e,["children","info","className","icon","shortcut","isSelected","role"]);return a=l()("components-menu-item__button",a),r&&(n=Object(c.createElement)("span",{className:"components-menu-item__info-wrapper"},Object(c.createElement)("span",{className:"components-menu-item__item"},n),Object(c.createElement)("span",{className:"components-menu-item__info"},r))),u&&!Object(s.isString)(u)&&(u=Object(c.cloneElement)(u,{className:"components-menu-items__item-icon"})),Object(c.createElement)(Io.a,Object(o.a)({ref:t,"aria-checked":"menuitemcheckbox"===b||"menuitemradio"===b?f:void 0,role:b,className:a},h),Object(c.createElement)("span",{className:"components-menu-item__item"},n),Object(c.createElement)(Df.a,{className:"components-menu-item__shortcut",shortcut:d}),u&&Object(c.createElement)(au.a,{icon:u}))}));function Tf(e){var t=e.choices,n=void 0===t?[]:t,r=e.onHover,o=void 0===r?s.noop:r,a=e.onSelect,i=e.value;return n.map((function(e){var t=i===e.value;return Object(c.createElement)(Mf,{key:e.value,role:"menuitemradio",icon:t&&Fi.a,info:e.info,isSelected:t,shortcut:e.shortcut,className:"components-menu-items-choice",onClick:function(){t||a(e.value)},onMouseEnter:function(){return o(e.value)},onMouseLeave:function(){return o(null)}},e.label)}))}var If=n(168);var Rf=Object(c.forwardRef)((function(e,t){var n=e.eventToOffset,r=Object(i.a)(e,["eventToOffset"]);return Object(c.createElement)(Xu,Object(o.a)({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!0,eventToOffset:function(e){var t=e.keyCode,r=e.shiftKey;return Jr.TAB===t?r?-1:1:n?n(e):void 0}},r))})),Nf=Object(c.createContext)({activeItem:void 0,activeMenu:"root",setActiveMenu:s.noop,isMenuEmpty:s.noop,navigationTree:{items:{},getItem:s.noop,addItem:s.noop,removeItem:s.noop,menus:{},getMenu:s.noop,addMenu:s.noop,removeMenu:s.noop,childMenu:{},traverseMenu:s.noop,isMenuEmpty:s.noop}}),Af=function(){return Object(c.useContext)(Nf)};var Lf=R("div",{target:"ejwewyf0",label:"NavigationUI"})("width:100%;background-color:",H.darkGray.primary,";box-sizing:border-box;color:#f0f0f0;padding:0 ",yt(1),";overflow:hidden;"),Ff=R("div",{target:"ejwewyf1",label:"MenuUI"})("margin-top:",yt(3),";margin-bottom:",yt(3),";display:flex;flex-direction:column;ul{padding:0;margin:0;list-style:none;}.components-navigation__back-button{margin-bottom:",yt(3),";}.components-navigation__group + .components-navigation__group{margin-top:",yt(3),";}"),zf=R(Io.a,{target:"ejwewyf2",label:"MenuBackButtonUI"})("&.is-tertiary{color:",H.lightGray.ui,";&:hover:not(:disabled ){color:#ddd;box-shadow:none;}&:active:not(:disabled ){background:transparent;color:#ddd;}}"),Bf=R("div",{target:"ejwewyf3",label:"MenuTitleUI"})({name:"16agjqd",styles:"overflow:hidden;width:100%;"}),Hf=R(sn,{target:"ejwewyf4",label:"MenuTitleHeadingUI"})("align-items:center;color:",H.gray[100],";display:flex;justify-content:space-between;margin-bottom:",yt(1),";padding:",(function(){return Object(d.isRTL)()?"".concat(yt(.5)," ").concat(yt(2)," ").concat(yt(.5)," ").concat(yt(1.5)):"".concat(yt(.5)," ").concat(yt(1.5)," ").concat(yt(.5)," ").concat(yt(2))}),";"),Vf=R("span",{target:"ejwewyf5",label:"MenuTitleActionsUI"})("height:",yt(3),";.components-button.is-small{color:",H.lightGray.ui,";margin-right:",yt(.5),";padding:0;&:active:not(:disabled ){background:none;color:",H.gray[200],";}&:hover:not(:disabled ){box-shadow:none;color:",H.gray[200],";}}"),Kf=R("div",{target:"ejwewyf6",label:"MenuTitleSearchUI"})("padding:0;position:relative;input{height:",yt(4.5),";margin-bottom:",yt(1),";padding-left:",yt(4),";padding-right:",yt(4),";&::-webkit-search-decoration,&::-webkit-search-cancel-button,&::-webkit-search-results-button,&::-webkit-search-results-decoration{-webkit-appearance:none;}}> svg{left:",yt(.5),";position:absolute;top:6px;}.components-button.is-small{height:30px;padding:0;position:absolute;right:",yt(1),";top:3px;&:active:not(:disabled ){background:none;}&:hover:not(:disabled ){box-shadow:none;}}"),Wf=R(sn,{target:"ejwewyf7",label:"GroupTitleUI"})("margin-top:",yt(1),";padding:",(function(){return Object(d.isRTL)()?"".concat(yt(.5)," ").concat(yt(2)," ").concat(yt(.5)," 0"):"".concat(yt(.5)," 0 ").concat(yt(.5)," ").concat(yt(2))}),";text-transform:uppercase;color:",H.gray[100],";"),Uf=R("li",{target:"ejwewyf8",label:"ItemBaseUI"})("border-radius:2px;color:",H.lightGray.ui,";margin-bottom:0;button,a{width:100%;&:hover,&:focus:not( [aria-disabled='true'] ):active,&:active:not( [aria-disabled='true'] ):active{color:#ddd;}}&.is-active{background-color:",Y.theme,";color:",Y.textDark,";button,a{color:",Y.textDark,";}}svg path{color:",H.lightGray.ui,";}"),Gf=R("div",{target:"ejwewyf9",label:"ItemUI"})("display:flex;align-items:center;height:auto;min-height:32px;margin:0;padding:",yt(.75)," ",yt(2),";font-weight:400;line-height:20px;width:100%;color:",H.lightGray.ui,";"),$f=R("span",{target:"ejwewyf10",label:"ItemBadgeUI"})("margin-left:",(function(){return Object(d.isRTL)()?"0":yt(1)}),";margin-right:",(function(){return Object(d.isRTL)()?yt(1):"0"}),";display:inline-flex;padding:",yt(.5)," ",yt(1.5),";border-radius:2px;animation:fade-in 250ms ease-out;@keyframes fade-in{from{opacity:0;}to{opacity:1;}}",Q("animation"),";"),qf=R(sn,{target:"ejwewyf11",label:"ItemTitleUI"})((function(){return Object(d.isRTL)()?"margin-left: auto;":"margin-right: auto;"})," font-size:13px;");function Yf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xf(e){for(var t=1;t0&&(!(n=u(a.shift()))||o.includes(n.menu)||(o.push(n.menu),a=[].concat(Object(Mo.a)(a),Object(Mo.a)((r=n.menu,b[r]||[]))),!1!==t(n))););};return{items:t,getItem:n,addItem:r,removeItem:o,menus:s,getMenu:u,addMenu:function(e,t){h((function(n){var r=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:w;j.getMenu(e)&&(O(t),v(e),f(e))},k=Object(c.useRef)(!1);Object(c.useEffect)((function(){k.current||(k.current=!0)}),[]),Object(c.useEffect)((function(){r!==h&&_(r)}),[r]);var E={activeItem:t,activeMenu:h,setActiveMenu:_,navigationTree:j},S=l()("components-navigation",i),x=Object(ht.b)({type:"slide-in",origin:g});return Object(c.createElement)(Lf,{className:S},Object(c.createElement)("div",{key:h,className:l()(Object(L.a)({},x,k.current&&g))},Object(c.createElement)(Nf.Provider,{value:E},o)))}var tp=n(218),np=n(219);var rp=Object(c.forwardRef)((function(e,t){var n,r=e.backButtonLabel,o=e.className,a=e.href,i=e.onClick,s=e.parentMenu,u=Af(),f=u.setActiveMenu,p=u.navigationTree,b=l()("components-navigation__back-button",o),h=null===(n=p.getMenu(s))||void 0===n?void 0:n.title,v=Object(d.isRTL)()?tp.a:np.a;return Object(c.createElement)(zf,{className:b,href:a,isTertiary:!0,ref:t,onClick:function(e){"function"==typeof i&&i(e);var t=Object(d.isRTL)()?"left":"right";s&&!e.defaultPrevented&&f(s,t)}},Object(c.createElement)(Li.a,{icon:v}),r||h||Object(d.__)("Back"))})),op=Object(c.createContext)({group:void 0});function ap(e){var t=e.children,n=e.className,r=e.title,o=Object(c.useState)(Object(s.uniqueId)("group-")),i=Object(a.a)(o,1)[0],u=Af().navigationTree.items,d={group:i};if(!Object(s.find)(u,{group:i,_isVisible:!0}))return Object(c.createElement)(op.Provider,{value:d},t);var f="components-navigation__group-title-".concat(i),p=l()("components-navigation__group",n);return Object(c.createElement)(op.Provider,{value:d},Object(c.createElement)("li",{className:p},r&&Object(c.createElement)(Wf,{as:"h3",className:"components-navigation__group-title",id:f,variant:"caption"},r),Object(c.createElement)("ul",{"aria-labelledby":f,role:"group"},t)))}function ip(e){var t=e.badge,n=e.title;return Object(c.createElement)(c.Fragment,null,n&&Object(c.createElement)(qf,{className:"components-navigation__item-title",variant:"body.small",as:"span"},n),t&&Object(c.createElement)($f,{className:"components-navigation__item-badge"},t))}var cp=Object(c.createContext)({menu:void 0,search:""}),sp=function(){return Object(c.useContext)(cp)},up=function(e){return Object(s.deburr)(e).replace(/^\//,"").toLowerCase()};function lp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dp(e){for(var t=1;t=320,"is-medium":O>=160&&O<320,"is-small":O<160});var j=l()("components-placeholder",d,t),w=l()("components-placeholder__fieldset",{"is-column-layout":h});return Object(c.createElement)("div",Object(o.a)({},v,{className:j}),g,p,b&&Object(c.createElement)("div",{className:"components-placeholder__preview"},b),Object(c.createElement)("div",{className:"components-placeholder__label"},Object(c.createElement)(au.a,{icon:n}),s),!!u&&Object(c.createElement)("div",{className:"components-placeholder__instructions"},u),Object(c.createElement)("div",{className:w},r))};function Tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ip(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0;return Object(s.flatMap)(t,(function(t){return[{value:t.id,label:Object(s.repeat)(" ",3*n)+Object(s.unescape)(t.name)}].concat(Object(Mo.a)(e(t.children||[],n+1)))}))}(u))))}),[n,u]);return Object(c.createElement)(uu,Object(o.a)({label:t,options:d,onChange:r},{value:a},l))}function Ap(e){var t=e.label,n=e.noOptionLabel,r=e.categoriesList,a=e.selectedCategoryId,s=e.onChange,u=Object(i.a)(e,["label","noOptionLabel","categoriesList","selectedCategoryId","onChange"]),l=Object(c.useMemo)((function(){return Rp(r)}),[r]);return Object(c.createElement)(Np,Object(o.a)({label:t,noOptionLabel:n,onChange:s},{tree:l,selectedId:a},u))}function Lp(e){var t=e.label,n=e.noOptionLabel,r=e.authorList,a=e.selectedAuthorId,i=e.onChange;if(!r)return null;var s=Rp(r);return Object(c.createElement)(Np,Object(o.a)({label:t,noOptionLabel:n,onChange:i},{tree:s,selectedId:a}))}function Fp(e){var t=e.authorList,n=e.selectedAuthorId,r=e.categoriesList,o=e.selectedCategoryId,i=e.categorySuggestions,s=e.selectedCategories,u=e.numberOfItems,l=e.order,f=e.orderBy,p=e.maxItems,b=void 0===p?100:p,h=e.minItems,v=void 0===h?1:h,m=e.onCategoryChange,y=e.onAuthorChange,g=e.onNumberOfItemsChange,O=e.onOrderChange,j=e.onOrderByChange;return[O&&j&&Object(c.createElement)(uu,{key:"query-controls-order-select",label:Object(d.__)("Order by"),value:"".concat(f,"/").concat(l),options:[{label:Object(d.__)("Newest to oldest"),value:"date/desc"},{label:Object(d.__)("Oldest to newest"),value:"date/asc"},{label:Object(d.__)("A → Z"),value:"title/asc"},{label:Object(d.__)("Z → A"),value:"title/desc"}],onChange:function(e){var t=e.split("/"),n=Object(a.a)(t,2),r=n[0],o=n[1];o!==l&&O(o),r!==f&&j(r)}}),r&&m&&Object(c.createElement)(Ap,{key:"query-controls-category-select",categoriesList:r,label:Object(d.__)("Category"),noOptionLabel:Object(d.__)("All"),selectedCategoryId:o,onChange:m}),i&&m&&Object(c.createElement)(Ed,{key:"query-controls-categories-select",label:Object(d.__)("Categories"),value:s&&s.map((function(e){return{id:e.id,value:e.name||e.value}})),suggestions:Object.keys(i),onChange:m,maxSuggestions:20}),y&&Object(c.createElement)(Lp,{key:"query-controls-author-select",authorList:t,label:Object(d.__)("Author"),noOptionLabel:Object(d.__)("All"),selectedAuthorId:n,onChange:y}),g&&Object(c.createElement)(pd,{key:"query-controls-range-control",label:Object(d.__)("Number of items"),value:u,onChange:g,min:v,max:b,required:!0})]}n(162);var zp=["baseId","unstable_idCountRef","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","state","setBaseId","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget","setState"],Bp=[].concat(zp,["value","checked","unstable_checkOnFocus"]),Hp=zp;function Vp(e){return void 0!==e.checked?e.checked:void 0!==e.value&&e.state===e.value}function Kp(e,t){var n=Object(We.a)(e,"change");Object.defineProperties(n,{type:{value:"change"},target:{value:e},currentTarget:{value:e}}),null==t||t(n)}var Wp=Object(Ae.a)({name:"Radio",compose:p.b,keys:Bp,useOptions:function(e,t){var n,r=t.value,o=t.checked,a=e.unstable_clickOnEnter,i=void 0!==a&&a,c=e.unstable_checkOnFocus,s=void 0===c||c,u=Object(se.a)(e,["unstable_clickOnEnter","unstable_checkOnFocus"]);return Object(se.b)(Object(se.b)({checked:o,unstable_clickOnEnter:i,unstable_checkOnFocus:s},u),{},{value:null!=(n=u.value)?n:r})},useProps:function(e,t){var n=t.ref,r=t.onChange,o=t.onClick,a=Object(se.a)(t,["ref","onChange","onClick"]),i=Object(_.useRef)(null),c=Object(_.useState)(!0),s=c[0],u=c[1],l=Vp(e),d=Object(Fe.a)(e.currentId===e.id),f=Object(Fe.a)(r),p=Object(Fe.a)(o);!function(e){var t=Object(_.useState)((function(){return Vp(e)}))[0],n=Object(_.useState)(e.currentId)[0],r=e.id,o=e.setCurrentId;Object(_.useEffect)((function(){t&&r&&n!==r&&(null==o||o(r))}),[t,r,o,n])}(e),Object(_.useEffect)((function(){var e=i.current;e&&("INPUT"===e.tagName&&"radio"===e.type||u(!1))}),[]);var b=Object(_.useCallback)((function(t){var n,r;null===(n=f.current)||void 0===n||n.call(f,t),t.defaultPrevented||e.disabled||null===(r=e.setState)||void 0===r||r.call(e,e.value)}),[e.disabled,e.setState,e.value]),h=Object(_.useCallback)((function(e){var t;null===(t=p.current)||void 0===t||t.call(p,e),e.defaultPrevented||s||Kp(e.currentTarget,b)}),[b,s]);return Object(_.useEffect)((function(){var t=i.current;t&&e.unstable_moves&&d.current&&e.unstable_checkOnFocus&&Kp(t,b)}),[e.unstable_moves,e.unstable_checkOnFocus,b]),Object(se.b)({ref:Object(Le.a)(i,n),role:s?void 0:"radio",type:s?"radio":void 0,value:s?e.value:void 0,name:s?e.baseId:void 0,"aria-checked":l,checked:l,onChange:b,onClick:h},a)}}),Up=Object(Ne.a)({as:"input",memo:!0,useHook:Wp}),Gp=Object(c.createContext)({state:null,setState:function(){}});var $p=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.value,a=Object(i.a)(e,["children","value"]),s=Object(c.useContext)(Gp),u=s.state===r;return Object(c.createElement)(Up,Object(o.a)({ref:t,as:Io.a,isPrimary:u,isSecondary:!u,value:r},s,a),n||r)}));var qp=Object(Ae.a)({name:"RadioGroup",compose:rt,keys:Hp,useProps:function(e,t){return Object(se.b)({role:"radiogroup"},t)}}),Yp=Object(Ne.a)({as:"div",useHook:qp,useCreateElement:function(e,t,n){return Object(Ve.a)(e,t,n)}});function Xp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zp(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0];if(w()){var t=p.current,r=t.contentDocument,a=t.ownerDocument,s=r.body;if(e||null===s.getAttribute("data-resizable-iframe-connected")){var l=Object(c.createElement)("html",{lang:a.documentElement.lang,className:i},Object(c.createElement)("head",null,Object(c.createElement)("title",null,o),Object(c.createElement)("style",{dangerouslySetInnerHTML:{__html:Bb}}),u.map((function(e,t){return Object(c.createElement)("style",{key:t,dangerouslySetInnerHTML:{__html:e}})}))),Object(c.createElement)("body",{"data-resizable-iframe-connected":"data-resizable-iframe-connected",className:i},Object(c.createElement)("div",{dangerouslySetInnerHTML:{__html:n}}),Object(c.createElement)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:zb}}),d.map((function(e){return Object(c.createElement)("script",{key:e,src:e})}))));r.open(),r.write(""+Object(c.renderToString)(l)),r.close()}}}return Object(c.useEffect)((function(){function e(){_(!1)}function t(e){var t=p.current;if(t&&t.contentWindow===e.source){var n=e.data||{};if("string"==typeof n)try{n=JSON.parse(n)}catch(e){}"resize"===n.action&&(m(n.width),j(n.height))}}_();var n=p.current.ownerDocument.defaultView;return p.current.addEventListener("load",e,!1),n.addEventListener("message",t),function(){p.current.removeEventListener("load",e,!1),n.addEventListener("message",t)}}),[]),Object(c.useEffect)((function(){_()}),[o,i,u,d]),Object(c.useEffect)((function(){_(!0)}),[n]),Object(c.createElement)(Al,{iframeRef:p,title:o,className:"components-sandbox",sandbox:"allow-scripts allow-same-origin allow-presentation",onFocus:f,width:Math.ceil(v),height:Math.ceil(O)})}var Vb=n(169),Kb=n(16),Wb=n.n(Kb),Ub=n(47),Gb=n(113);var $b=function(e){var t=e.notices,n=e.className,r=e.children,i=e.onRemove,u=void 0===i?s.noop:i,d=Object(f.useReducedMotion)(),p=Object(c.useState)((function(){return new WeakMap})),b=Object(a.a)(p,1)[0],h=Object(Gb.useTransition)(t,(function(e){return e.id}),{from:{opacity:0,height:0},enter:function(e){return function(){var t=Object(Ub.a)(Wb.a.mark((function t(n){return Wb.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n({opacity:1,height:b.get(e).offsetHeight});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},leave:function(){return function(){var e=Object(Ub.a)(Wb.a.mark((function e(t){return Wb.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t({opacity:0});case 2:return e.next=4,t({height:0});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},immediate:d});n=l()("components-snackbar-list",n);var v=function(e){return function(){return u(e.id)}};return Object(c.createElement)("div",{className:n},r,h.map((function(e){var t=e.item,n=e.key,r=e.props;return Object(c.createElement)(Gb.animated.div,{key:n,style:r},Object(c.createElement)("div",{className:"components-snackbar-list__notice-container",ref:function(e){return e&&b.set(t,e)}},Object(c.createElement)(Vb.a,Object(o.a)({},Object(s.omit)(t,["content"]),{onRemove:v(t)}),t.content)))})))},qb={radiusBlockUi:"2px",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px",spinnerSize:"18px"},Yb=function(e){return qb[e]};function Xb(){var e=It(["\n\tfrom {\n\t\ttransform: rotate(0deg);\n\t}\n\n\tto {\n\t\ttransform: rotate(360deg);\n\t}\n"]);return Xb=function(){return e},e}var Zb=Object(S.c)(Xb()),Jb="calc( ( ".concat(Yb("spinnerSize")," - ").concat(Yb("spinnerSize")," * ( 2 / 3 ) ) / 2 )"),Qb=R("span",{target:"e1s472tg0",label:"StyledSpinner"})("display:inline-block;background-color:",J("gray.600"),";width:",Yb("spinnerSize"),";height:",Yb("spinnerSize"),";opacity:0.7;margin:5px 11px 0;border-radius:100%;position:relative;&::before{content:'';position:absolute;background-color:",J("white"),";top:",Jb,";left:",Jb,";width:calc( ",Yb("spinnerSize")," / 4.5 );height:calc( ",Yb("spinnerSize")," / 4.5 );border-radius:100%;transform-origin:calc( ",Yb("spinnerSize")," / 3 ) calc( ",Yb("spinnerSize")," / 3 );animation:",Zb," 1s infinite linear;}");function eh(){return Object(c.createElement)(Qb,{className:"components-spinner"})}var th=function(e){var t=e.tabId,n=e.onClick,r=e.children,a=e.selected,s=Object(i.a)(e,["tabId","onClick","children","selected"]);return Object(c.createElement)(Io.a,Object(o.a)({role:"tab",tabIndex:a?null:-1,"aria-selected":a,id:t,onClick:n},s),r)};function nh(e){var t,n=e.className,r=e.children,o=e.tabs,i=e.initialTabName,u=e.orientation,d=void 0===u?"horizontal":u,p=e.activeClass,b=void 0===p?"is-active":p,h=e.onSelect,v=void 0===h?s.noop:h,m=Object(f.useInstanceId)(nh,"tab-panel"),y=Object(c.useState)(null),g=Object(a.a)(y,2),O=g[0],j=g[1],w=function(e){j(e),v(e)},_=Object(s.find)(o,{name:O}),k="".concat(m,"-").concat(null!==(t=null==_?void 0:_.name)&&void 0!==t?t:"none");return Object(c.useEffect)((function(){Object(s.find)(o,{name:O})||j(i||(o.length>0?o[0].name:null))}),[o]),Object(c.createElement)("div",{className:n},Object(c.createElement)(Zu,{role:"tablist",orientation:d,onNavigate:function(e,t){t.click()},className:"components-tab-panel__tabs"},o.map((function(e){return Object(c.createElement)(th,{className:l()("components-tab-panel__tabs-item",e.className,Object(L.a)({},b,e.name===O)),tabId:"".concat(m,"-").concat(e.name),"aria-controls":"".concat(m,"-").concat(e.name,"-view"),selected:e.name===O,key:e.name,onClick:Object(s.partial)(w,e.name)},e.title)}))),_&&Object(c.createElement)("div",{key:k,"aria-labelledby":k,role:"tabpanel",id:"".concat(k,"-view"),className:"components-tab-panel__tab-content"},r(_)))}var rh=Object(S.b)("box-shadow:0 0 0 transparent;transition:box-shadow 0.1s linear;border-radius:",Yb("radiusBlockUi"),";border:",Yb("borderWidth")," solid ",J("ui.border"),";",Q("transition"),";label:inputStyleNeutral;"),oh=Object(S.b)("border-color:var( --wp-admin-theme-color );box-shadow:0 0 0 calc( ",Yb("borderWidthFocus")," - ",Yb("borderWidth")," ) var( --wp-admin-theme-color );outline:2px solid transparent;;label:inputStyleFocus;"),ah={huge:"1440px",wide:"1280px","x-large":"1080px",large:"960px",medium:"782px",small:"600px",mobile:"480px","zoomed-in":"280px"},ih=Object(S.b)("font-family:",mt("default.fontFamily"),";padding:6px 8px;",rh,";font-size:",mt("mobileTextMinFontSize"),";line-height:normal;","@media (min-width: ".concat(ah["small"],")"),"{font-size:",mt("default.fontSize"),";line-height:normal;}&:focus{",oh,"}&::-webkit-input-placeholder{color:",J("darkGray.placeholder"),";}&::-moz-placeholder{opacity:1;color:",J("darkGray.placeholder"),";}&:-ms-input-placeholder{color:",J("darkGray.placeholder"),";}.is-dark-theme &{&::-webkit-input-placeholder{color:",J("lightGray.placeholder"),";}&::-moz-placeholder{opacity:1;color:",J("lightGray.placeholder"),";}&:-ms-input-placeholder{color:",J("lightGray.placeholder"),";}};label:inputControl;"),ch=R("textarea",{target:"ebk7yr50",label:"StyledTextarea"})("width:100%;",ih,"");function sh(e){var t=e.label,n=e.hideLabelFromVision,r=e.value,a=e.help,s=e.onChange,u=e.rows,l=void 0===u?4:u,d=e.className,p=Object(i.a)(e,["label","hideLabelFromVision","value","help","onChange","rows","className"]),b=Object(f.useInstanceId)(sh),h="inspector-textarea-control-".concat(b);return Object(c.createElement)(kt,{label:t,hideLabelFromVision:n,id:h,help:a,className:d},Object(c.createElement)(ch,Object(o.a)({className:"components-textarea-control__input",id:h,rows:l,onChange:function(e){return s(e.target.value)},"aria-describedby":a?h+"__help":void 0,value:r},p)))}var uh=function(e){var t=e.text,n=void 0===t?"":t,r=e.highlight,o=(void 0===r?"":r).trim();if(!o)return n;var a=new RegExp("(".concat(Object(s.escapeRegExp)(o),")"),"gi");return Object(c.createInterpolateElement)(n.replace(a,"$&"),{mark:Object(c.createElement)("mark",null)})};var lh=function(e){return Object(c.createElement)("div",{className:"components-tip"},Object(c.createElement)(r.SVG,{width:"24",height:"24",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"})),Object(c.createElement)("p",null,e.children))};function dh(e){var t=e.label,n=e.checked,r=e.help,o=e.className,a=e.onChange,i=e.disabled;var u,d,p=Object(f.useInstanceId)(dh),b="inspector-toggle-control-".concat(p);return r&&(u=b+"__help",d=Object(s.isFunction)(r)?r(n):r),Object(c.createElement)(kt,{id:b,help:d,className:l()("components-toggle-control",o)},Object(c.createElement)(md,{id:b,checked:n,onChange:function(e){a(e.target.checked)},"aria-describedby":u,disabled:i}),Object(c.createElement)("label",{htmlFor:b,className:"components-toggle-control__label"},t))}var fh=n(133),ph=n(85),bh=function(e){return Object(c.createElement)("div",{className:e.className},e.children)};var hh=Object(c.forwardRef)((function(e,t){var n=e.containerClassName,r=e.className,a=e.extraProps,s=e.children,u=e.title,d=e.isActive,f=e.isDisabled,p=Object(i.a)(e,["containerClassName","className","extraProps","children","title","isActive","isDisabled"]);return Object(c.useContext)(ph.a)?Object(c.createElement)(fh.a,Object(o.a)({className:l()("components-toolbar-button",r)},a,p,{ref:t}),(function(e){return Object(c.createElement)(Io.a,Object(o.a)({label:u,isPressed:d,disabled:f},e),s)})):Object(c.createElement)(bh,{className:n},Object(c.createElement)(Io.a,Object(o.a)({ref:t,icon:p.icon,label:u,shortcut:p.shortcut,"data-subscript":p.subscript,onClick:function(e){e.stopPropagation(),p.onClick&&p.onClick(e)},className:l()("components-toolbar__control",r),isPressed:d,disabled:f,"data-toolbar-item":!0},a,p),s))})),vh=function(e){var t=e.className,n=e.children,r=Object(i.a)(e,["className","children"]);return Object(c.createElement)("div",Object(o.a)({className:t},r),n)};function mh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yh(e){for(var t=1;t0&&0===n?"has-left-divider":null},e))}))})),r)};var jh=n(180),wh=Object(Ae.a)({name:"Toolbar",compose:rt,keys:jh.a,useProps:function(e,t){return Object(se.b)({role:"toolbar","aria-orientation":e.orientation},t)}}),_h=Object(Ne.a)({as:"div",useHook:wh,useCreateElement:function(e,t,n){return Object(Ve.a)(e,t,n)}});var kh=Object(c.forwardRef)((function(e,t){var n=e.label,r=Object(i.a)(e,["label"]),a=function(e){void 0===e&&(e={});var t=le(e),n=t.orientation,r=void 0===n?"horizontal":n,o=Object(se.a)(t,["orientation"]);return Re(Object(se.b)({orientation:r},o))}({loop:!0,baseId:r.id,rtl:Object(d.isRTL)()});return Object(c.createElement)(ph.a.Provider,{value:a},Object(c.createElement)(_h,Object(o.a)({ref:t,"aria-label":n},a,r)))}));var Eh=Object(c.forwardRef)((function(e,t){var n=e.className,r=e.label,a=Object(i.a)(e,["className","label"]);if(!r)return Wu()("Using Toolbar without label prop",{alternative:"ToolbarGroup component",link:"https://developer.wordpress.org/block-editor/components/toolbar/"}),Object(c.createElement)(Oh,Object(o.a)({},a,{className:n}));var s=l()("components-accessible-toolbar",n);return Object(c.createElement)(kh,Object(o.a)({className:s,label:r,ref:t},a))})),Sh=Object(c.createContext)(),xh=Sh.Provider;function Ch(e){var t=e.children,n=Object(c.useState)(),r=Object(a.a)(n,2),o=r[0],i=r[1],s=Object(c.useMemo)((function(){return{lastFocusedElement:o,setLastFocusedElement:i}}),[o]);return Object(c.createElement)(xh,{value:s},t)}function Ph(e){var t=fu.focus.focusable.find(e);if(t&&t.length)return t.filter((function(t){return t.closest('[role="row"]')===e}))}var Dh=Object(c.forwardRef)((function(e,t){var n=e.children,r=Object(i.a)(e,["children"]),a=Object(c.useCallback)((function(e){var t=e.keyCode,n=e.metaKey,r=e.ctrlKey,o=e.altKey,a=e.shiftKey;if(!(n||r||o||a)&&Object(s.includes)([Jr.UP,Jr.DOWN,Jr.LEFT,Jr.RIGHT],t)){e.stopPropagation();var i=document.activeElement,c=e.currentTarget;if(c.contains(i)){var u=i.closest('[role="row"]'),l=Ph(u),d=l.indexOf(i);if(Object(s.includes)([Jr.LEFT,Jr.RIGHT],t)){var f;if((f=t===Jr.LEFT?Math.max(0,d-1):Math.min(d+1,l.length-1))===d)return void e.preventDefault();l[f].focus(),e.preventDefault()}else if(Object(s.includes)([Jr.UP,Jr.DOWN],t)){var p,b=Array.from(c.querySelectorAll('[role="row"]')),h=b.indexOf(u);if((p=t===Jr.UP?Math.max(0,h-1):Math.min(h+1,b.length-1))===h)return void e.preventDefault();var v=Ph(b[p]);if(!v||!v.length)return void e.preventDefault();v[Math.min(d,v.length-1)].focus(),e.preventDefault()}}}}),[]);return Object(c.createElement)(Ch,null,Object(c.createElement)("table",Object(o.a)({},r,{role:"treegrid",onKeyDown:a,ref:t}),Object(c.createElement)("tbody",null,n)))}));var Mh=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.level,a=e.positionInSet,s=e.setSize,u=e.isExpanded,l=Object(i.a)(e,["children","level","positionInSet","setSize","isExpanded"]);return Object(c.createElement)("tr",Object(o.a)({},l,{ref:t,role:"row","aria-level":r,"aria-posinset":a,"aria-setsize":s,"aria-expanded":u}),n)}));function Th(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ih=Object(c.forwardRef)((function(e,t){var n,r=e.children,o=e.as,a=Object(i.a)(e,["children","as"]),s=Object(c.useRef)(),u=t||s,l=Object(c.useContext)(Sh),d=l.lastFocusedElement,f=l.setLastFocusedElement;d&&(n=d===u.current?0:-1);var p=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:Hh,n=Object(c.useState)(!1),r=Object(a.a)(n,2),o=r[0],i=r[1];function s(t){var n=Array.from(e.current.querySelectorAll('[role="region"]'));if(n.length){var r=n[0],o=n.indexOf(e.current.ownerDocument.activeElement);if(-1!==o){var a=o+t;r=n[a=(a=-1===a?n.length-1:a)===n.length?0:a]}r.focus(),i(!0)}}var u=Object(c.useCallback)((function(){return s(-1)}),[]),l=Object(c.useCallback)((function(){return s(1)}),[]);if(Object(f.useKeyboardShortcut)(t.previous,u,{bindGlobal:!0}),Object(f.useKeyboardShortcut)(t.next,l,{bindGlobal:!0}),Object(c.useEffect)((function(){function t(){i(!1)}return e.current.addEventListener("click",t),function(){e.current.removeEventListener("click",t)}}),[i]),o)return"is-focusing-regions"}var Kh=Object(f.createHigherOrderComponent)((function(e){return function(t){var n=t.shortcuts,r=Object(i.a)(t,["shortcuts"]),o=Object(c.useRef)(),a=Vh(o,n);return Object(c.createElement)("div",{ref:o,className:a},Object(c.createElement)(e,r))}}),"navigateRegions"),Wh=Object(f.createHigherOrderComponent)((function(e){return function(t){var n=Object(f.useConstrainedTabbing)();return Object(c.createElement)("div",{ref:n,tabIndex:"-1"},Object(c.createElement)(e,t))}}),"withConstrainedTabbing");function Uh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Qi.a)(e);if(t){var o=Object(Qi.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Ji.a)(this,n)}}var Gh=function(e){return Object(f.createHigherOrderComponent)((function(t){return function(n){Object(Zi.a)(a,n);var r=Uh(a);function a(){var e;return Object(qi.a)(this,a),(e=r.apply(this,arguments)).nodeRef=e.props.node,e.state={fallbackStyles:void 0,grabStylesCompleted:!1},e.bindRef=e.bindRef.bind(Object(Xi.a)(e)),e}return Object(Yi.a)(a,[{key:"bindRef",value:function(e){e&&(this.nodeRef=e)}},{key:"componentDidMount",value:function(){this.grabFallbackStyles()}},{key:"componentDidUpdate",value:function(){this.grabFallbackStyles()}},{key:"grabFallbackStyles",value:function(){var t=this.state,n=t.grabStylesCompleted,r=t.fallbackStyles;if(this.nodeRef&&!n){var o=e(this.nodeRef,this.props);Object(s.isEqual)(o,r)||this.setState({fallbackStyles:o,grabStylesCompleted:!!Object(s.every)(o)})}}},{key:"render",value:function(){var e=Object(c.createElement)(t,Object(o.a)({},this.props,this.state.fallbackStyles));return this.props.node?e:Object(c.createElement)("div",{ref:this.bindRef}," ",e," ")}}]),a}(c.Component)}),"withFallbackStyles")},$h=n(33);function qh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Qi.a)(e);if(t){var o=Object(Qi.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Ji.a)(this,n)}}function Yh(e){return Object(f.createHigherOrderComponent)((function(t){var n,r="core/with-filters/"+e;function o(){void 0===n&&(n=Object($h.applyFilters)(e,t))}var a=function(e){Object(Zi.a)(a,e);var t=qh(a);function a(){var e;return Object(qi.a)(this,a),e=t.apply(this,arguments),o(),e}return Object(Yi.a)(a,[{key:"componentDidMount",value:function(){a.instances.push(this),1===a.instances.length&&(Object($h.addAction)("hookRemoved",r,u),Object($h.addAction)("hookAdded",r,u))}},{key:"componentWillUnmount",value:function(){a.instances=Object(s.without)(a.instances,this),0===a.instances.length&&(Object($h.removeAction)("hookRemoved",r),Object($h.removeAction)("hookAdded",r))}},{key:"render",value:function(){return Object(c.createElement)(n,this.props)}}]),a}(c.Component);a.instances=[];var i=Object(s.debounce)((function(){n=Object($h.applyFilters)(e,t),a.instances.forEach((function(e){e.forceUpdate()}))}),16);function u(t){t===e&&i()}return a}),"withFilters")}var Xh=Object(f.createHigherOrderComponent)((function(e){var t,n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onFocusReturn;return function(e){return function(n){var r=Object(f.useFocusReturn)(t);return Object(c.createElement)("div",{ref:r},Object(c.createElement)(e,n))}}};if((t=e)instanceof c.Component||"function"==typeof t){var r=e;return n()(r)}return n(e)}),"withFocusReturn"),Zh=function(e){var t=e.children;return Wu()("wp.components.FocusReturnProvider component",{hint:"This provider is not used anymore. You can just remove it from your codebase"}),t},Jh=n(204);function Qh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ev(e){for(var t=1;t0&&Object(c.createElement)(kp,{className:"components-with-notices-ui",notices:this.state.noticeList,onRemove:this.removeNotice})},this.props))}}]),r}(c.Component)}));function rv(e){e.__unstableNextInclude;var t=e.children;e.value;return t}},function(e,t,n){"use strict";var r=n(0),o=n(7),a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));t.a=a},,,,,,,,,,function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";var r=n(175),o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,a=Object(r.a)((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));t.a=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n0&&this.setState({visibleDays:(0,a.default)({},_,M)})}},{key:"componentWillUpdate",value:function(){this.today=(0,l.default)()}},{key:"onDayClick",value:function(e,t){if(t&&t.preventDefault(),!this.isBlocked(e)){var n=this.props,r=n.onDateChange,o=n.keepOpenOnDateSelect,a=n.onFocusChange,i=n.onClose;r(e),o||(a({focused:!1}),i({date:e}))}}},{key:"onDayMouseEnter",value:function(e){if(!this.isTouchDevice){var t=this.state,n=t.hoverDate,r=t.visibleDays,o=this.deleteModifier({},n,"hovered");o=this.addModifier(o,e,"hovered"),this.setState({hoverDate:e,visibleDays:(0,a.default)({},r,o)})}}},{key:"onDayMouseLeave",value:function(){var e=this.state,t=e.hoverDate,n=e.visibleDays;if(!this.isTouchDevice&&t){var r=this.deleteModifier({},t,"hovered");this.setState({hoverDate:null,visibleDays:(0,a.default)({},n,r)})}}},{key:"onPrevMonthClick",value:function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,c=o.visibleDays,s={};Object.keys(c).sort().slice(0,n+1).forEach((function(e){s[e]=c[e]}));var u=i.clone().subtract(1,"month"),l=(0,m.default)(u,1,r);this.setState({currentMonth:u,visibleDays:(0,a.default)({},s,this.getModifiers(l))},(function(){t(u.clone())}))}},{key:"onNextMonthClick",value:function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,c=o.visibleDays,s={};Object.keys(c).sort().slice(1).forEach((function(e){s[e]=c[e]}));var u=i.clone().add(n,"month"),l=(0,m.default)(u,1,r),d=i.clone().add(1,"month");this.setState({currentMonth:d,visibleDays:(0,a.default)({},s,this.getModifiers(l))},(function(){t(d.clone())}))}},{key:"onMonthChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===k.VERTICAL_SCROLLABLE,a=(0,m.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}},{key:"onYearChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===k.VERTICAL_SCROLLABLE,a=(0,m.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}},{key:"getFirstFocusableDay",value:function(e){var t=this,n=this.props,o=n.date,a=n.numberOfMonths,i=e.clone().startOf("month");if(o&&(i=o.clone()),this.isBlocked(i)){for(var c=[],s=e.clone().add(a-1,"months").endOf("month"),u=i.clone();!(0,v.default)(u,s);)u=u.clone().add(1,"day"),c.push(u);var l=c.filter((function(e){return!t.isBlocked(e)&&(0,v.default)(e,i)}));if(l.length>0){var d=r(l,1);i=d[0]}}return i}},{key:"getModifiers",value:function(e){var t=this,n={};return Object.keys(e).forEach((function(r){n[r]={},e[r].forEach((function(e){n[r][(0,g.default)(e)]=t.getModifiersForDay(e)}))})),n}},{key:"getModifiersForDay",value:function(e){var t=this;return new Set(Object.keys(this.modifiers).filter((function(n){return t.modifiers[n](e)})))}},{key:"getStateForNewMonth",value:function(e){var t=this,n=e.initialVisibleMonth,r=e.date,o=e.numberOfMonths,a=e.enableOutsideDays,i=(n||(r?function(){return r}:function(){return t.today}))();return{currentMonth:i,visibleDays:this.getModifiers((0,m.default)(i,o,a))}}},{key:"addModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,c=r.orientation,s=this.state,u=s.currentMonth,l=s.visibleDays,d=u,f=o;if(c===k.VERTICAL_SCROLLABLE?f=Object.keys(l).length:(d=d.clone().subtract(1,"month"),f+=2),!t||!(0,y.default)(t,d,f,i))return e;var p=(0,g.default)(t),b=(0,a.default)({},e);if(i)b=Object.keys(l).filter((function(e){return Object.keys(l[e]).indexOf(p)>-1})).reduce((function(t,r){var o=e[r]||l[r],i=new Set(o[p]);return i.add(n),(0,a.default)({},t,x({},r,(0,a.default)({},o,x({},p,i))))}),b);else{var h=(0,O.default)(t),v=e[h]||l[h],m=new Set(v[p]);m.add(n),b=(0,a.default)({},b,x({},h,(0,a.default)({},v,x({},p,m))))}return b}},{key:"deleteModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,c=r.orientation,s=this.state,u=s.currentMonth,l=s.visibleDays,d=u,f=o;if(c===k.VERTICAL_SCROLLABLE?f=Object.keys(l).length:(d=d.clone().subtract(1,"month"),f+=2),!t||!(0,y.default)(t,d,f,i))return e;var p=(0,g.default)(t),b=(0,a.default)({},e);if(i)b=Object.keys(l).filter((function(e){return Object.keys(l[e]).indexOf(p)>-1})).reduce((function(t,r){var o=e[r]||l[r],i=new Set(o[p]);return i.delete(n),(0,a.default)({},t,x({},r,(0,a.default)({},o,x({},p,i))))}),b);else{var h=(0,O.default)(t),v=e[h]||l[h],m=new Set(v[p]);m.delete(n),b=(0,a.default)({},b,x({},h,(0,a.default)({},v,x({},p,m))))}return b}},{key:"isBlocked",value:function(e){var t=this.props,n=t.isDayBlocked,r=t.isOutsideRange;return n(e)||r(e)}},{key:"isHovered",value:function(e){var t=(this.state||{}).hoverDate;return(0,h.default)(e,t)}},{key:"isSelected",value:function(e){var t=this.props.date;return(0,h.default)(e,t)}},{key:"isToday",value:function(e){return(0,h.default)(e,this.today)}},{key:"isFirstDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||l.default.localeData().firstDayOfWeek())}},{key:"isLastDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||l.default.localeData().firstDayOfWeek())+6)%7}},{key:"render",value:function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,r=e.monthFormat,o=e.renderMonthText,a=e.navPrev,c=e.navNext,s=e.onOutsideClick,u=e.withPortal,l=e.focused,d=e.enableOutsideDays,f=e.hideKeyboardShortcutsPanel,p=e.daySize,b=e.firstDayOfWeek,h=e.renderCalendarDay,v=e.renderDayContents,m=e.renderCalendarInfo,y=e.renderMonthElement,g=e.calendarInfoPosition,O=e.isFocused,j=e.isRTL,w=e.phrases,_=e.dayAriaLabelFormat,k=e.onBlur,S=e.showKeyboardShortcuts,x=e.weekDayFormat,C=e.verticalHeight,P=e.noBorder,D=e.transitionDuration,M=e.verticalBorderSpacing,T=e.horizontalMonthPadding,I=this.state,R=I.currentMonth,N=I.visibleDays;return i.default.createElement(E.default,{orientation:n,enableOutsideDays:d,modifiers:N,numberOfMonths:t,onDayClick:this.onDayClick,onDayMouseEnter:this.onDayMouseEnter,onDayMouseLeave:this.onDayMouseLeave,onPrevMonthClick:this.onPrevMonthClick,onNextMonthClick:this.onNextMonthClick,onMonthChange:this.onMonthChange,onYearChange:this.onYearChange,monthFormat:r,withPortal:u,hidden:!l,hideKeyboardShortcutsPanel:f,initialVisibleMonth:function(){return R},firstDayOfWeek:b,onOutsideClick:s,navPrev:a,navNext:c,renderMonthText:o,renderCalendarDay:h,renderDayContents:v,renderCalendarInfo:m,renderMonthElement:y,calendarInfoPosition:g,isFocused:O,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:k,phrases:w,daySize:p,isRTL:j,showKeyboardShortcuts:S,weekDayFormat:x,dayAriaLabelFormat:_,verticalHeight:C,noBorder:P,transitionDuration:D,verticalBorderSpacing:M,horizontalMonthPadding:T})}}]),t}(i.default.Component);t.default=D,D.propTypes=C,D.defaultProps=P},,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),a=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));t.a=a},function(e,t,n){"use strict";var r=n(0),o=n(7),a=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));t.a=a},,,,,,,,,,,,function(e,t,n){"use strict"},function(e,t,n){"use strict"; +*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},function(e,t){e.exports=window.React},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(24);var o=n(37),a=n(31);function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(a.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t){e.exports=window.regeneratorRuntime},function(e,t){e.exports=window.wp.keycodes},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t=0||(o[n]=e[n]);return o}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s}))},function(e,t){e.exports=window.wp.richText},,,function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t){e.exports=window.moment},,function(e,t,n){"use strict";function r(e,t,n,r,o,a,i){try{var c=e[a](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,a){var i=e.apply(t,n);function c(e){r(i,o,a,c,s,"next",e)}function s(e){r(i,o,a,c,s,"throw",e)}c(void 0)}))}}n.d(t,"a",(function(){return o}))},function(e,t){e.exports=window.wp.a11y},,,,function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(14),o=n(70);function a(e){var t=Object(r.useRef)(e);return Object(o.a)((function(){t.current=e})),t}},function(e,t,n){"use strict";function r(e){return e?e.ownerDocument||e:document}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=SyntaxError,o=Function,a=TypeError,i=function(e){try{return Function('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var s=function(){throw new a},u=c?function(){try{return s}catch(e){try{return c(arguments,"callee").get}catch(e){return s}}}():s,l=n(332)(),d=Object.getPrototypeOf||function(e){return e.__proto__},f=i("async function* () {}"),p=f?f.prototype:void 0,b=p?p.prototype:void 0,h="undefined"==typeof Uint8Array?void 0:d(Uint8Array),v={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":l?d([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":i("async function () {}"),"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":b?d(b):void 0,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":i("function* () {}"),"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l?d(d([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l?d((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&l?d((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l?d(""[Symbol.iterator]()):void 0,"%Symbol%":l?Symbol:void 0,"%SyntaxError%":r,"%ThrowTypeError%":u,"%TypedArray%":h,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},m={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},y=n(121),g=n(81),O=y.call(Function.call,Array.prototype.concat),j=y.call(Function.apply,Array.prototype.splice),w=y.call(Function.call,String.prototype.replace),_=y.call(Function.call,String.prototype.slice),k=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E=/\\(\\)?/g,S=function(e){var t=_(e,0,1),n=_(e,-1);if("%"===t&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new r("invalid intrinsic syntax, expected opening `%`");var o=[];return w(e,k,(function(e,t,n,r){o[o.length]=n?w(r,E,"$1"):t||e})),o},x=function(e,t){var n,o=e;if(g(m,o)&&(o="%"+(n=m[o])[0]+"%"),g(v,o)){var i=v[o];if(void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:i}}throw new r("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');var n=S(e),o=n.length>0?n[0]:"",i=x("%"+o+"%",t),s=i.name,u=i.value,l=!1,d=i.alias;d&&(o=d[0],j(n,O([0,1],d)));for(var f=1,p=!0;f=n.length){var y=c(u,b);u=(p=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:u[b]}else p=g(u,b),u=u[b];p&&!l&&(v[s]=u)}}return u}},function(e,t,n){"use strict";var r=n(5),o=n(13),a=n(10),i=n.n(a),c=n(0);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.as,n=void 0===t?"div":t,a=e.className,u=Object(o.a)(e,["as","className"]);return function(e){var t=e.as,n=void 0===t?"div":t,r=Object(o.a)(e,["as"]);return"function"==typeof r.children?r.children(r):Object(c.createElement)(n,r)}(function(e){for(var t=1;t=0?n[i]=e[i]:r[i]=e[i]}return[n,r]}function l(e,t){if(void 0===t&&(t=[]),!s(e.state))return u(e,t);var n=u(e,[].concat(t,["state"])),r=n[0],o=n[1],a=r.state,c=Object(i.a)(r,["state"]);return[Object(i.b)(Object(i.b)({},a),c),o]}var d=n(68);function f(e){return"normalizePropsAreEqualInner"===e.name?e:function(t,n){return s(t.state)&&s(n.state)?e(Object(i.b)(Object(i.b)({},t.state),t),Object(i.b)(Object(i.b)({},n.state),n)):e(t,n)}}function p(e){var t,n=e.as,i=e.useHook,c=e.memo,s=e.propsAreEqual,u=void 0===s?null==i?void 0:i.unstable_propsAreEqual:s,p=e.keys,b=void 0===p?(null==i?void 0:i.__keys)||[]:p,h=e.useCreateElement,v=void 0===h?a.a:h,m=function(e,t){var r=e.as,a=void 0===r?n:r,c=Object(o.b)(e,["as"]);if(i){var s,u=l(c,b),d=u[0],f=u[1],p=i(d,Object(o.a)({ref:t},f)),h=p.wrapElement,m=Object(o.b)(p,["wrapElement"]),y=(null===(s=a.render)||void 0===s?void 0:s.__keys)||a.__keys,g=y&&l(c,y)[0],O=g?Object(o.a)(Object(o.a)({},m),g):m,j=v(a,O);return h?h(j):j}return v(a,Object(o.a)({ref:t},c))};return t=m,m=Object(r.forwardRef)(t),c&&(m=function(e,t){return Object(r.memo)(e,t)}(m,u&&f(u))),m.__keys=b,m.unstable_propsAreEqual=f(u||d.a),m}},function(e,t,n){var r;!function(o){var a=/^\s+/,i=/\s+$/,c=0,s=o.round,u=o.min,l=o.max,d=o.random;function f(e,t){if(t=t||{},(e=e||"")instanceof f)return e;if(!(this instanceof f))return new f(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,c=null,s=null,d=!1,f=!1;"string"==typeof e&&(e=function(e){e=e.replace(a,"").replace(i,"").toLowerCase();var t,n=!1;if(D[e])e=D[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=K.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=K.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=K.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=K.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=K.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=K.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=K.hex8.exec(e))return{r:N(t[1]),g:N(t[2]),b:N(t[3]),a:z(t[4]),format:n?"name":"hex8"};if(t=K.hex6.exec(e))return{r:N(t[1]),g:N(t[2]),b:N(t[3]),format:n?"name":"hex"};if(t=K.hex4.exec(e))return{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),a:z(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=K.hex3.exec(e))return{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(W(e.r)&&W(e.g)&&W(e.b)?(p=e.r,b=e.g,h=e.b,t={r:255*I(p,255),g:255*I(b,255),b:255*I(h,255)},d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):W(e.h)&&W(e.s)&&W(e.v)?(r=L(e.s),c=L(e.v),t=function(e,t,n){e=6*I(e,360),t=I(t,100),n=I(n,100);var r=o.floor(e),a=e-r,i=n*(1-t),c=n*(1-a*t),s=n*(1-(1-a)*t),u=r%6;return{r:255*[n,c,i,i,s,n][u],g:255*[s,n,n,c,i,i][u],b:255*[i,i,s,n,n,c][u]}}(e.h,r,c),d=!0,f="hsv"):W(e.h)&&W(e.s)&&W(e.l)&&(r=L(e.s),s=L(e.l),t=function(e,t,n){var r,o,a;function i(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=I(e,360),t=I(t,100),n=I(n,100),0===t)r=o=a=n;else{var c=n<.5?n*(1+t):n+t-n*t,s=2*n-c;r=i(s,c,e+1/3),o=i(s,c,e),a=i(s,c,e-1/3)}return{r:255*r,g:255*o,b:255*a}}(e.h,r,s),d=!0,f="hsl"),e.hasOwnProperty("a")&&(n=e.a));var p,b,h;return n=T(n),{ok:d,format:e.format||f,r:u(255,l(t.r,0)),g:u(255,l(t.g,0)),b:u(255,l(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=s(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=s(this._r)),this._g<1&&(this._g=s(this._g)),this._b<1&&(this._b=s(this._b)),this._ok=n.ok,this._tc_id=c++}function p(e,t,n){e=I(e,255),t=I(t,255),n=I(n,255);var r,o,a=l(e,t,n),i=u(e,t,n),c=(a+i)/2;if(a==i)r=o=0;else{var s=a-i;switch(o=c>.5?s/(2-a-i):s/(a+i),a){case e:r=(t-n)/s+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(f(r));return a}function P(e,t){t=t||6;for(var n=f(e).toHsv(),r=n.h,o=n.s,a=n.v,i=[],c=1/t;t--;)i.push(f({h:r,s:o,v:a})),a=(a+c)%1;return i}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=T(e),this._roundA=s(100*this._a)/100,this},toHsv:function(){var e=b(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=b(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return h(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var a=[A(s(e).toString(16)),A(s(t).toString(16)),A(s(n).toString(16)),A(F(r))];if(o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:s(this._r),g:s(this._g),b:s(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+s(this._r)+", "+s(this._g)+", "+s(this._b)+")":"rgba("+s(this._r)+", "+s(this._g)+", "+s(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:s(100*I(this._r,255))+"%",g:s(100*I(this._g,255))+"%",b:s(100*I(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+s(100*I(this._r,255))+"%, "+s(100*I(this._g,255))+"%, "+s(100*I(this._b,255))+"%)":"rgba("+s(100*I(this._r,255))+"%, "+s(100*I(this._g,255))+"%, "+s(100*I(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(M[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+v(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=f(e);n="#"+v(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(O,arguments)},brighten:function(){return this._applyModification(j,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(C,arguments)},complement:function(){return this._applyCombination(k,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(E,arguments)},tetrad:function(){return this._applyCombination(S,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:L(e[r]));e=n}return f(e,t)},f.equals=function(e,t){return!(!e||!t)&&f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(e,t,n){n=0===n?0:n||50;var r=f(e).toRgb(),o=f(t).toRgb(),a=n/100;return f({r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a})},f.readability=function(e,t){var n=f(e),r=f(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},f.isReadable=function(e,t,n){var r,o,a=f.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=a>=4.5;break;case"AAlarge":o=a>=3;break;case"AAAsmall":o=a>=7}return o},f.mostReadable=function(e,t,n){var r,o,a,i,c=null,s=0;o=(n=n||{}).includeFallbackColors,a=n.level,i=n.size;for(var u=0;us&&(s=r,c=f(t[u]));return f.isReadable(e,c,{level:a,size:i})||!o?c:(n.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],n))};var D=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},M=f.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(D);function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function I(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=u(t,l(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function R(e){return u(1,l(0,e))}function N(e){return parseInt(e,16)}function A(e){return 1==e.length?"0"+e:""+e}function L(e){return e<=1&&(e=100*e+"%"),e}function F(e){return o.round(255*parseFloat(e)).toString(16)}function z(e){return N(e)/255}var B,H,V,K=(H="[\\s|\\(]+("+(B="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",V="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",{CSS_UNIT:new RegExp(B),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+V),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+V),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+V),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function W(e){return!!K.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(r=function(){return f}.call(t,n,t,e))||(e.exports=r)}(Math)},,function(e,t,n){"use strict";function r(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t})):e.find((function(e){return!e.disabled}))}function o(e,t){var n;return t||null===t?t:e.currentId||null===e.currentId?e.currentId:null===(n=r(e.items||[]))||void 0===n?void 0:n.id}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}))},function(e,t){e.exports=window.wp.isShallowEqual},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(54);function o(e){var t=Object(r.a)(e).activeElement;return null!=t&&t.nodeName?t:null}},function(e,t,n){"use strict";function r(e){return e.target===e.currentTarget}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var a=0,i=n;a=0||(o[n]=e[n]);return o}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return s}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(14);function o(e,t){void 0===t&&(t=null),e&&("function"==typeof e?e(t):e.current=t)}function a(e,t){return Object(r.useMemo)((function(){return null==e&&null==t?null:function(n){o(e,n),o(t,n)}}),[e,t])}},function(e,t,n){"use strict";var r=n(11),o=n(5),a=n(0),i=n(2),c=n(112),s=n(178),u=n(12);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}))},,function(e,t,n){"use strict";var r=n(100),o=n(243),a=n(244),i=n(381),c=a();r(c,{getPolyfill:a,implementation:o,shim:i}),e.exports=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(14);function o(e){return void 0===e&&(e="id"),(e?e+"-":"")+Math.random().toString(32).substr(2,6)}var a=Object(r.createContext)(o)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(110);var o,a=(o=Object(r.a)(),Boolean(void 0!==o&&o.document&&o.document.createElement))},,function(e,t,n){"use strict";function r(e){e.userFocus=!0,e.focus(),e.userFocus=!1}function o(e){return!!e.userFocus}function a(e,t){e.userFocus=t}n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(66),o=n(174);function a(e){var t=Object(r.a)(e);if(!t)return!1;if(Object(o.a)(e,t))return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&(n===e.id||!!e.querySelector("#"+n))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(174);function o(e){return!Object(r.a)(e.currentTarget,e.target)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=["button","color","file","image","reset","submit"];function o(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){var t=e;return-1!==r.indexOf(t.type)}return!1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var r=n(20),o=n(59),a=n(58),i=n(14),c=n(78),s=n(95),u=(n(109),n(53)),l=n(70),d=n(93),f=n(94),p=n(66),b=n(84),h=n(101),v=n(75),m=Object(b.a)("Mac")&&!Object(b.a)("Chrome")&&(Object(b.a)("Safari")||Object(b.a)("Firefox"));function y(e){Object(d.a)(e)||e.focus()}function g(e,t,n,r){return e?t&&!n?-1:void 0:t?r:r||0}function O(e,t){return Object(i.useCallback)((function(n){var r;null===(r=e.current)||void 0===r||r.call(e,n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}),[e,t])}var j=Object(a.a)({name:"Tabbable",compose:v.a,keys:["disabled","focusable"],useOptions:function(e,t){var n=t.disabled;return Object(r.b)({disabled:n},e)},useProps:function(e,t){var n=t.ref,o=t.tabIndex,a=t.onClickCapture,d=t.onMouseDownCapture,b=t.onMouseDown,v=t.onKeyPressCapture,j=t.style,w=Object(r.a)(t,["ref","tabIndex","onClickCapture","onMouseDownCapture","onMouseDown","onKeyPressCapture","style"]),_=Object(i.useRef)(null),k=Object(u.a)(a),E=Object(u.a)(d),S=Object(u.a)(b),x=Object(u.a)(v),C=!!e.disabled&&!e.focusable,P=Object(i.useState)(!0),D=P[0],M=P[1],T=Object(i.useState)(!0),I=T[0],R=T[1],N=e.disabled?Object(r.b)({pointerEvents:"none"},j):j,A=function(){if(m){var e=Object(i.useState)(null),t=e[0],n=e[1];return Object(i.useEffect)((function(){t&&(y(t),n(null))}),[t]),Object(i.useCallback)((function(e){var t=e.currentTarget;if(!Object(f.a)(e)&&Object(s.a)(t)){var r=Object(p.a)(t);if(r){var o="BODY"===r.tagName,a=Object(h.a)(t.parentElement);if(r===a||o&&!a)n(t);else if(a){a.addEventListener("focusin",(function(){return n(t)}),{once:!0})}else{r.addEventListener("blur",(function(){return y(t)}),{once:!0})}}}}),[])}}();Object(l.a)((function(){var e,t=_.current;t&&("BUTTON"!==(e=t).tagName&&"INPUT"!==e.tagName&&"SELECT"!==e.tagName&&"TEXTAREA"!==e.tagName&&"A"!==e.tagName&&M(!1),function(e){return"BUTTON"===e.tagName||"INPUT"===e.tagName||"SELECT"===e.tagName||"TEXTAREA"===e.tagName}(t)||R(!1))}),[]);var L=O(k,e.disabled),F=O(E,e.disabled),z=O(x,e.disabled),B=Object(i.useCallback)((function(e){var t;null===(t=S.current)||void 0===t||t.call(S,e),e.defaultPrevented||null==A||A(e)}),[e.disabled,A]);return Object(r.b)({ref:Object(c.a)(_,n),style:N,tabIndex:g(C,D,I,o),disabled:!(!C||!I)||void 0,"aria-disabled":!!e.disabled||void 0,onClickCapture:L,onMouseDownCapture:F,onMouseDown:B,onKeyPressCapture:z},w)}});Object(o.a)({as:"div",useHook:j})},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a}));var r=["baseId","unstable_idCountRef","setBaseId","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget"],o=r,a=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},o={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},a=n(175),i=/[A-Z]|^ms/g,c=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},l=Object(a.a)((function(e){return s(e)?e:e.replace(i,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(c,(function(e,t,n){return p={name:t,styles:n,next:p},t}))}return 1===o[e]||s(e)||"number"!=typeof t||0===t?t:t+"px"};function f(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return p={name:n.name,styles:n.styles,next:p},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)p={name:o.name,styles:o.styles,next:p},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o2?arguments[2]:{},a=r(t);o&&(a=i.call(a,Object.getOwnPropertySymbols(t)));for(var c=0;c0||t.offsetHeight>0||e.getClientRects().length>0}(e)}function c(e){for(;e&&!i(e);)e=o(e,a);return e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return l}));var r=n(5),o=n(11),a=n(10),i=n.n(a);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.stylesPropName,c=void 0===n?"styles":n,l=t.themePropName,f=void 0===l?"theme":l,m=t.cssPropName,w=void 0===m?"css":m,_=t.flushBefore,k=void 0!==_&&_,E=t.pureComponent,S=void 0!==E&&E,x=void 0,C=void 0,P=void 0,D=void 0,M=g(S);function T(e){return e===u.DIRECTIONS.LTR?d.default.resolveLTR:d.default.resolveRTL}function I(e){return e===u.DIRECTIONS.LTR?P:D}function R(t,n){var r=I(t),o=t===u.DIRECTIONS.LTR?x:C,a=d.default.get();return o&&r===a||(t===u.DIRECTIONS.RTL?(C=e?d.default.createRTL(e):y,D=a,o=C):(x=e?d.default.createLTR(e):y,P=a,o=x)),o}function N(e,t){return{resolveMethod:T(e),styleDef:R(e)}}return function(e){var t=e.displayName||e.name||"Component",n=function(t){function n(e,t){p(this,n);var r=b(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t)),o=r.context[u.CHANNEL]?r.context[u.CHANNEL].getState():j;return r.state=N(o),r}return h(n,t),o(n,[{key:"componentDidMount",value:function(){var e=this;this.context[u.CHANNEL]&&(this.channelUnsubscribe=this.context[u.CHANNEL].subscribe((function(t){e.setState(N(t))})))}},{key:"componentWillUnmount",value:function(){this.channelUnsubscribe&&this.channelUnsubscribe()}},{key:"render",value:function(){var t;k&&d.default.flush();var n=this.state,o=n.resolveMethod,a=n.styleDef;return i.default.createElement(e,r({},this.props,(v(t={},f,d.default.get()),v(t,c,a()),v(t,w,o),t)))}}]),n}(M);return n.WrappedComponent=e,n.displayName="withStyles("+String(t)+")",n.contextTypes=O,e.propTypes&&(n.propTypes=(0,a.default)({},e.propTypes),delete n.propTypes[c],delete n.propTypes[f],delete n.propTypes[w]),e.defaultProps&&(n.defaultProps=(0,a.default)({},e.defaultProps)),(0,s.default)(n,e)}};var a=f(n(88)),i=f(n(14)),c=f(n(30)),s=f(n(397)),u=n(400),l=f(n(401)),d=f(n(241));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.css=d.default.resolveLTR,t.withStylesPropTypes={styles:c.default.object.isRequired,theme:c.default.object.isRequired,css:c.default.func.isRequired};var m={},y=function(){return m};function g(e){if(e){if(!i.default.PureComponent)throw new ReferenceError("withStyles() pureComponent option requires React 15.3.0 or later");return i.default.PureComponent}return i.default.Component}var O=v({},u.CHANNEL,l.default),j=u.DIRECTIONS.LTR},function(e,t,n){"use strict";n(162),n(14),n(123)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r,o=n(54);try{r=window}catch(e){}function a(e){return e&&Object(o.a)(e).defaultView||r}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(14),o=Object(r.createContext)({})},function(e,t,n){"use strict";var r=n(8),o=n(11),a=n(13),i=n(0),c=n(10),s=n.n(c),u=n(72),l=n(27),d=n(17),f=n(35),p=n.n(f),b=n(12),h=n(160),v=n(5),m=n(1);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t0?s/2:u)+(u+s/2>window.innerWidth?window.innerWidth-u:s/2)},d=e.left;"right"===r?d=e.right:"middle"!==a&&(d=u);var f=e.right;"left"===r?f=e.left:"middle"!==a&&(f=u);var p,b={popoverLeft:d,contentWidth:d-s>0?s:d},h={popoverLeft:f,contentWidth:f+s>window.innerWidth?window.innerWidth-f:s},v=n,y=null;if(!o&&!c)if("center"===n&&l.contentWidth===s)v="center";else if("left"===n&&b.contentWidth===s)v="left";else if("right"===n&&h.contentWidth===s)v="right";else{var g="left"===(v=b.contentWidth>h.contentWidth?"left":"right")?b.contentWidth:h.contentWidth;s>window.innerWidth&&(y=window.innerWidth),g!==s&&(v="center",l.popoverLeft=window.innerWidth/2)}if(p="center"===v?l.popoverLeft:"left"===v?b.popoverLeft:h.popoverLeft,i){var O=i.getBoundingClientRect();p=Math.min(p,O.right-s)}return{xAxis:v,popoverLeft:p,contentWidth:y}}function j(e,t,n,r,o,a,i,c){var s=t.height;if(o){var u=o.getBoundingClientRect().top+s-i;if(e.top<=u)return{yAxis:n,popoverTop:Math.min(e.bottom,u)}}var l=e.top+e.height/2;"bottom"===r?l=e.bottom:"top"===r&&(l=e.top);var d={popoverTop:l,contentHeight:(l-s/2>0?s/2:l)+(l+s/2>window.innerHeight?window.innerHeight-l:s/2)},f={popoverTop:e.top,contentHeight:e.top-10-s>0?s:e.top-10},p={popoverTop:e.bottom,contentHeight:e.bottom+10+s>window.innerHeight?window.innerHeight-10-e.bottom:s},b=n,h=null;if(!o&&!c)if("middle"===n&&d.contentHeight===s)b="middle";else if("top"===n&&f.contentHeight===s)b="top";else if("bottom"===n&&p.contentHeight===s)b="bottom";else{var v="top"===(b=f.contentHeight>p.contentHeight?"top":"bottom")?f.contentHeight:p.contentHeight;h=v!==s?v:null}return{yAxis:b,popoverTop:"middle"===b?d.popoverTop:"top"===b?f.popoverTop:p.popoverTop,contentHeight:h}}var w=n(36),_=n(168),k=n(167),E=n(124),S=n(102);function x(e,t){var n=t.defaultView,r=n.frameElement;if(!r)return e;var o=r.getBoundingClientRect();return new n.DOMRect(e.left+o.left,e.top+o.top,e.width,e.height)}function C(e,t){var n,r=(n=t).ownerDocument.defaultView.getComputedStyle(n),o=r.paddingTop,a=r.paddingBottom,i=r.paddingLeft,c=r.paddingRight,s=o?parseInt(o,10):0,u=a?parseInt(a,10):0,l=i?parseInt(i,10):0,d=c?parseInt(c,10):0;return{x:e.left+l,y:e.top+s,width:e.width-l-d,height:e.height-s-u,left:e.left+l,right:e.right-d,top:e.top+s,bottom:e.bottom-u}}function P(e,t,n){n?e.getAttribute(t)!==n&&e.setAttribute(t,n):e.hasAttribute(t)&&e.removeAttribute(t)}function D(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==n&&(e.style[t]=n)}function M(e,t,n){n?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}var T=function(e){var t=e.headerTitle,n=e.onClose,c=e.onKeyDown,f=e.children,v=e.className,m=e.noArrow,y=void 0===m||m,T=e.isAlternate,I=e.position,R=void 0===I?"bottom right":I,N=(e.range,e.focusOnMount),A=void 0===N?"firstElement":N,L=e.anchorRef,F=e.shouldAnchorIncludePadding,z=e.anchorRect,B=e.getAnchorRect,H=e.expandOnMobile,V=e.animate,K=void 0===V||V,W=e.onClickOutside,U=e.onFocusOutside,G=e.__unstableStickyBoundaryElement,$=e.__unstableSlotName,q=void 0===$?"Popover":$,Y=e.__unstableObserveElement,X=e.__unstableBoundaryParent,Z=e.__unstableForcePosition,J=Object(a.a)(e,["headerTitle","onClose","onKeyDown","children","className","noArrow","isAlternate","position","range","focusOnMount","anchorRef","shouldAnchorIncludePadding","anchorRect","getAnchorRect","expandOnMobile","animate","onClickOutside","onFocusOutside","__unstableStickyBoundaryElement","__unstableSlotName","__unstableObserveElement","__unstableBoundaryParent","__unstableForcePosition"]),Q=Object(i.useRef)(null),ee=Object(i.useRef)(null),te=Object(i.useRef)(),ne=Object(b.useViewportMatch)("medium","<"),re=Object(i.useState)(),oe=Object(o.a)(re,2),ae=oe[0],ie=oe[1],ce=Object(k.a)(q),se=H&&ne,ue=Object(b.useResizeObserver)(),le=Object(o.a)(ue,2),de=le[0],fe=le[1];y=se||y,Object(i.useLayoutEffect)((function(){if(se)return M(te.current,"is-without-arrow",y),M(te.current,"is-alternate",T),P(te.current,"data-x-axis"),P(te.current,"data-y-axis"),D(te.current,"top"),D(te.current,"left"),D(ee.current,"maxHeight"),void D(ee.current,"maxWidth");var e=function(){if(te.current&&ee.current){var e=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;if(t)return t;if(n){if(!e.current)return;return n(e.current)}if(!1!==r){if(!(r&&window.Range&&window.Element&&window.DOMRect))return;if("function"==typeof(null==r?void 0:r.cloneRange))return x(Object(l.getRectangleFromRange)(r),r.endContainer.ownerDocument);if("function"==typeof(null==r?void 0:r.getBoundingClientRect)){var a=x(r.getBoundingClientRect(),r.ownerDocument);return o?a:C(a,r)}var i=r.top,c=r.bottom,s=i.getBoundingClientRect(),u=c.getBoundingClientRect(),d=x(new window.DOMRect(s.left,s.top,s.width,u.bottom-s.top),i.ownerDocument);return o?d:C(d,r)}if(e.current){var f=e.current.parentNode,p=f.getBoundingClientRect();return o?p:C(p,f)}}(Q,z,B,L,F);if(e){var t,n,r=te.current,a=r.offsetParent,i=r.ownerDocument,c=0;if(a&&a!==i.body){var s=a.getBoundingClientRect();c=s.top,e=new window.DOMRect(e.left-s.left,e.top-s.top,e.width,e.height)}if(X)t=null===(n=te.current.closest(".popover-slot"))||void 0===n?void 0:n.parentNode;var u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",r=arguments.length>3?arguments[3]:void 0,a=arguments.length>5?arguments[5]:void 0,i=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,s=n.split(" "),u=Object(o.a)(s,3),l=u[0],d=u[1],f=void 0===d?"center":d,p=u[2],b=j(e,t,l,p,r,0,a,c),h=O(e,t,f,p,r,b.yAxis,i,c);return g(g({},h),b)}(e,fe.height?fe:ee.current.getBoundingClientRect(),R,G,te.current,c,t,Z),d=u.popoverTop,f=u.popoverLeft,p=u.xAxis,b=u.yAxis,h=u.contentHeight,v=u.contentWidth;"number"==typeof d&&"number"==typeof f&&(D(te.current,"top",d+"px"),D(te.current,"left",f+"px")),M(te.current,"is-without-arrow",y||"center"===p&&"middle"===b),M(te.current,"is-alternate",T),P(te.current,"data-x-axis",p),P(te.current,"data-y-axis",b),D(ee.current,"maxHeight","number"==typeof h?h+"px":""),D(ee.current,"maxWidth","number"==typeof v?v+"px":"");ie(({left:"right",right:"left"}[p]||"center")+" "+({top:"bottom",bottom:"top"}[b]||"middle"))}}};e();var t,n=te.current.ownerDocument,r=n.defaultView,a=r.setInterval(e,500),i=function(){r.cancelAnimationFrame(t),t=r.requestAnimationFrame(e)};r.addEventListener("click",i),r.addEventListener("resize",e),r.addEventListener("scroll",e,!0);var c,s=function(e){if(e)return e.endContainer?e.endContainer.ownerDocument:e.top?e.top.ownerDocument:e.ownerDocument}(L);return s&&s!==n&&(s.defaultView.addEventListener("resize",e),s.defaultView.addEventListener("scroll",e,!0)),Y&&(c=new r.MutationObserver(e)).observe(Y,{attributes:!0}),function(){r.clearInterval(a),r.removeEventListener("resize",e),r.removeEventListener("scroll",e,!0),r.removeEventListener("click",i),r.cancelAnimationFrame(t),s&&s!==n&&(s.defaultView.removeEventListener("resize",e),s.defaultView.removeEventListener("scroll",e,!0)),c&&c.disconnect()}}),[se,z,B,L,F,R,fe,G,Y,X]);var pe=Object(b.useConstrainedTabbing)(),be=Object(b.useFocusReturn)(),he=Object(b.useFocusOnMount)(A),ve=Object(b.__experimentalUseFocusOutside)((function(e){if(U)return void U(e);if(!W)return void(n&&n());var t;try{t=new window.MouseEvent("click")}catch(e){(t=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null)}Object.defineProperty(t,"target",{get:function(){return e.relatedTarget}}),p()("Popover onClickOutside prop",{alternative:"onFocusOutside"}),W(t)})),me=[te,A?pe:null,A?be:null,A?he:null],ye=Object(i.useCallback)(Object(u.a)(me),me);var ge=Boolean(K&&ae)&&Object(S.b)({type:"appear",origin:ae}),Oe=Object(i.createElement)("div",Object(r.a)({className:s()("components-popover",v,ge,{"is-expanded":se,"is-without-arrow":y,"is-alternate":T})},J,{onKeyDown:function(e){e.keyCode===d.ESCAPE&&n&&(e.stopPropagation(),n()),c&&c(e)}},ve,{ref:ye,tabIndex:"-1"}),se&&Object(i.createElement)(_.a,null),se&&Object(i.createElement)("div",{className:"components-popover__header"},Object(i.createElement)("span",{className:"components-popover__header-title"},t),Object(i.createElement)(w.a,{className:"components-popover__close",icon:h.a,onClick:n})),Object(i.createElement)("div",{ref:ee,className:"components-popover__content"},Object(i.createElement)("div",{style:{position:"relative"}},de,f)));return ce.ref&&(Oe=Object(i.createElement)(E.a,{name:q},Oe)),L||z?Oe:Object(i.createElement)("span",{ref:Q},Oe)};T.Slot=function(e){var t=e.name,n=void 0===t?"Popover":t;return Object(i.createElement)(E.b,{bubblesVirtually:!0,name:n,className:"popover-slot"})};t.a=T},function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(183)),a=r(n(184)),i=n(14),c=r(i),s=r(n(158)),u=r(n(185)),l={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!=typeof t)return!1;if(l.str(e)||l.num(e))return e===t;if(l.obj(e)&&l.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!l.und(n)||e===t}};function d(){var e=i.useState(!1)[1];return i.useCallback((function(){return e((function(e){return!e}))}),[])}function f(e,t){return l.und(e)||l.nul(e)?t:e}function p(e){return l.und(e)?[]:l.arr(e)?e:[e]}function b(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=n.length)break;a=n[o++]}else{if((o=n.next()).done)break;a=o.value}for(var i=a,c=!1,s=0;s=p.startTime+u.duration;else if(u.decay)v=b+g/(1-.998)*(1-Math.exp(-(1-.998)*(t-p.startTime))),(l=Math.abs(p.lastPosition-v)<.1)&&(h=v);else{d=void 0!==p.lastTime?p.lastTime:t,g=void 0!==p.lastVelocity?p.lastVelocity:u.initialVelocity,t>d+64&&(d=t);for(var O=Math.floor(t-d),j=0;jh:v=e);++n);return n-1}(e,a);return function(e,t,n,r,o,a,i,c,s){var u=s?s(e):e;if(un){if("identity"===c)return u;"clamp"===c&&(u=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t);u=a(u),r===-1/0?u=-u:o===1/0?u+=r:u=u*(o-r)+r;return u}(e,a[t],a[t+1],o[t],o[t+1],s,i,c,r.map)}}var B=function(e){function t(n,r,o,a){var i;return(i=e.call(this)||this).calc=void 0,i.payload=n instanceof g&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],i.calc=z(r,o,a),i}s(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t,n){this.calc=z(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(g);var H=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}s(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t,n){return new B(this,e,t,n)},t}(y),V=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new H(e)})),n}s(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new B(this,e,t)},t}(g),K=0,W=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=K++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=h(e),n=t.delay,r=void 0===n?0:n,i=t.to,c=a(t,["delay","to"]);if(l.arr(i)||l.fun(i))this.queue.push(o({},c,{delay:r,to:i}));else if(i){var s={};Object.entries(i).forEach((function(e){var t,n=e[0],a=e[1],i=o({to:(t={},t[n]=a,t),delay:b(r,n)},c),u=s[i.delay]&&s[i.delay].to;s[i.delay]=o({},s[i.delay],i,{to:o({},u,i.to)})})),this.queue=Object.values(s)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(c),this},t.start=function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,a=e.to,i=void 0===a?{}:a;l.obj(r)&&(n.merged=o({},r,n.merged)),l.obj(i)&&(n.merged=o({},n.merged,i))}));var r=this.local=++this.guid,i=this.localQueue=this.queue;this.queue=[],i.forEach((function(t,o){var c=t.delay,s=a(t,["delay"]),u=function(t){o===i.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},d=l.arr(s.to)||l.fun(s.to);c?setTimeout((function(){r===n.guid&&(d?n.runAsync(s,u):n.diff(s).start(u))}),c):d?n.runAsync(s,u):n.diff(s).start(u)}))}else l.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,L.has(t)||L.add(t),A||(A=!0,k(M||F));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){var t;return this.stop(!0),e&&(t=this,L.has(t)&&L.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,a(e,["delay"])),i=this.local,c=Promise.resolve(void 0);if(l.arr(r.to))for(var s=function(e){var t=e,a=o({},r,h(r.to[t]));l.arr(a.config)&&(a.config=a.config[t]),c=c.then((function(){if(i===n.guid)return new Promise((function(e){return n.diff(a).start(e)}))}))},u=0;u=r.length)return"break";i=r[a++]}else{if((a=r.next()).done)return"break";i=a.value}var n=i.key,c=function(e){return e.key!==n};(l.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(c),e.current.deleted=e.current.deleted.filter(c))},r=e.current.deleted,o=Array.isArray(r),a=0;for(r=o?r:r[Symbol.iterator]();;){var i;if("break"===n())break}e.current.forceUpdate()}var X=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof y||(t=v.transform(t)),n.payload=t,n}return s(t,e),t}(O),Z={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},J="[-+]?\\d*\\.?\\d+";function Q(){for(var e=arguments.length,t=new Array(e),n=0;n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ue(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,a=se(o,r,e+1/3),i=se(o,r,e),c=se(o,r,e-1/3);return Math.round(255*a)<<24|Math.round(255*i)<<16|Math.round(255*c)<<8}function le(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function de(e){return(parseFloat(e)%360+360)%360/360}function fe(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function pe(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function be(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ie.exec(t))?parseInt(n[1]+"ff",16)>>>0:Z.hasOwnProperty(t)?Z[t]:(n=ee.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|255)>>>0:(n=te.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|fe(n[4]))>>>0:(n=oe.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ce.exec(t))?parseInt(n[1],16)>>>0:(n=ae.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ne.exec(t))?(255|ue(de(n[1]),pe(n[2]),pe(n[3])))>>>0:(n=re.exec(t))?(ue(de(n[1]),pe(n[2]),pe(n[3]))|fe(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var he=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ve=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,me=new RegExp("("+Object.keys(Z).join("|")+")","g"),ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ge=["Webkit","Ms","Moz","O"];function Oe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}ye=Object.keys(ye).reduce((function(e,t){return ge.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ye);var je={};I((function(e){return new X(e)})),P("div"),S((function(e){var t=e.output.map((function(e){return e.replace(ve,be)})).map((function(e){return e.replace(me,be)})),n=t[0].match(he).map((function(){return[]}));t.forEach((function(e){e.match(he).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(he).map((function(t,r){return z(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(he,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),w(Z),j((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,i=t.scrollLeft,c=a(t,["style","children","scrollTop","scrollLeft"]),s="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var u in void 0!==o&&(e.scrollTop=o),void 0!==i&&(e.scrollLeft=i),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(u)){var l=0===u.indexOf("--"),d=Oe(u,n[u],l);"float"===u&&(u="cssFloat"),l?e.style.setProperty(u,d):e.style[u]=d}for(var f in c){var p=s?f:je[f]||(je[f]=f.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(p)&&e.setAttribute(p,c[f])}}),(function(e){return e}));var we,_e,ke=(we=function(e){return i.forwardRef((function(t,n){var r=d(),s=i.useRef(!0),u=i.useRef(null),f=i.useRef(null),p=i.useCallback((function(e){var t=u.current;u.current=new N(e,(function(){var e=!1;f.current&&(e=v.fn(f.current,u.current.getAnimatedValue())),f.current&&!1!==e||r()})),t&&t.detach()}),[]);i.useEffect((function(){return function(){s.current=!1,u.current&&u.current.detach()}}),[]),i.useImperativeHandle(n,(function(){return T(f,s,r)})),p(t);var b,h=u.current.getValue(),m=(h.scrollTop,h.scrollLeft,a(h,["scrollTop","scrollLeft"])),y=(b=e,!l.fun(b)||b.prototype instanceof c.Component?function(e){return f.current=function(e,t){return t&&(l.fun(t)?t(e):l.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return c.createElement(e,o({},m,{ref:y}))}))},void 0===(_e=!1)&&(_e=!0),function(e){return(l.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=_e?t[0].toLowerCase()+t.substring(1):t;return e[n]=we(n),e}),we)}),Ee=ke(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);t.apply=ke,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=F,t.animated=Ee,t.a=Ee,t.interpolate=function(e,t,n){return e&&new B(e,t,n)},t.Globals=R,t.useSpring=function(e){var t=l.fun(e),n=U(1,t?e:[e]),r=n[0],o=n[1],a=n[2];return t?[r[0],o,a]:r},t.useTrail=function(e,t){var n=i.useRef(!1),r=l.fun(t),a=b(t),c=i.useRef(),s=U(e,(function(e,t){return 0===e&&(c.current=[]),c.current.push(t),o({},a,{config:b(a.config,e),attach:e>0&&function(){return c.current[e-1]}})})),u=s[0],d=s[1],f=s[2],p=i.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,i=c.current[r];return o({},e,{config:b(e.config||a.config,t),attach:i&&function(){return i}})}))}}),[e,a.reverse]);return i.useEffect((function(){n.current&&!r&&p(t)})),i.useEffect((function(){n.current=!0}),[]),r?[u,p,f]:u},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),c=q(r),s=c.lazy,u=void 0!==s&&s,l=(c.unique,c.reset),f=void 0!==l&&l,p=(c.enter,c.leave,c.update,c.onDestroyed),h=(c.keys,c.items,c.onFrame),v=c.onRest,m=c.onStart,y=c.ref,g=a(c,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),O=d(),j=i.useRef(!1),w=i.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!j.current&&new Map,forceUpdate:O});return i.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(w.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(w.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(w.current.instances).map((function(e){return e[1]}))}}})),w.current=function(e,t){var n=e.first,r=e.prevProps,i=a(e,["first","prevProps"]),c=q(t),s=c.items,u=c.keys,l=c.initial,d=c.from,f=c.enter,p=c.leave,h=c.update,v=c.trail,m=void 0===v?0:v,y=c.unique,g=c.config,O=c.order,j=void 0===O?["enter","leave","update"]:O,w=q(r),_=w.keys,k=w.items,E=o({},i.current),S=[].concat(i.deleted),x=Object.keys(E),C=new Set(x),P=new Set(u),D=u.filter((function(e){return!C.has(e)})),M=i.transitions.filter((function(e){return!e.destroyed&&!P.has(e.originalKey)})).map((function(e){return e.originalKey})),T=u.filter((function(e){return C.has(e)})),I=-m;for(;j.length;){switch(j.shift()){case"enter":D.forEach((function(e,t){y&&S.find((function(t){return t.originalKey===e}))&&(S=S.filter((function(t){return t.originalKey!==e})));var r=u.indexOf(e),o=s[r],a=n&&void 0!==l?"initial":"enter";E[e]={slot:a,originalKey:e,key:y?String(e):G++,item:o,trail:I+=m,config:b(g,o,a),from:b(n&&void 0!==l?l||{}:d,o),to:b(f,o)}}));break;case"leave":M.forEach((function(e){var t=_.indexOf(e),n=k[t];S.unshift(o({},E[e],{slot:"leave",destroyed:!0,left:_[Math.max(0,t-1)],right:_[Math.min(_.length,t+1)],trail:I+=m,config:b(g,n,"leave"),to:b(p,n)})),delete E[e]}));break;case"update":T.forEach((function(e){var t=u.indexOf(e),n=s[t];E[e]=o({},E[e],{item:n,slot:"update",trail:I+=m,config:b(g,n,"update"),to:b(h,n)})}))}}var R=u.map((function(e){return E[e]}));return S.forEach((function(e){var t,n=e.left,r=(e.right,a(e,["left","right"]));-1!==(t=R.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),R=[].concat(R.slice(0,t),[r],R.slice(t))})),o({},i,{changed:D.length||M.length||T.length,first:n&&0===D.length,transitions:R,current:E,deleted:S,prevProps:t})}(w.current,r),w.current.changed&&w.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,a=e.config,i=e.trail,c=e.key,s=e.item;w.current.instances.has(c)||w.current.instances.set(c,new W);var l=w.current.instances.get(c),d=o({},g,{to:r,from:n,config:a,ref:y,onRest:function(n){w.current.mounted&&(e.destroyed&&(y||u||Y(w,c),p&&p(s)),!Array.from(w.current.instances).some((function(e){return!e[1].idle}))&&(y||u)&&w.current.deleted.length>0&&Y(w),v&&v(s,t,n))},onStart:m&&function(){return m(s,t)},onFrame:h&&function(e){return h(s,t,e)},delay:i,reset:f&&"enter"===t});l.update(d),w.current.paused||l.start()})),i.useEffect((function(){return w.current.mounted=j.current=!0,function(){w.current.mounted=j.current=!1,Array.from(w.current.instances).map((function(e){return e[1].destroy()})),w.current.instances.clear()}}),[]),w.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:w.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=i.useRef();i.useEffect((function(){l.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var a=e.current;if(a){var i=a.controllers;if(i.length){var c=n*t[r];i.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+c})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=U},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(14),o=n(111),a=n(77);var i=function(e,t,n){void 0===n&&(n=t.children);var i=Object(r.useContext)(o.a);if(i.useCreateElement)return i.useCreateElement(e,t,n);if("string"==typeof e&&function(e){return"function"==typeof e}(n)){t.children;return n(Object(a.b)(t,["children"]))}return Object(r.createElement)(e,t,n)}},,,function(e,t){function n(e,t,n,r){var o,a=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),i=t.get(a);return void 0===i&&(i=e.call(this,r),t.set(a,i)),i}function r(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),a=t.get(o);return void 0===a&&(a=e.apply(this,r),t.set(o,a)),a}function o(e,t,n,r,o){return n.bind(t,e,r,o)}function a(e,t){return o(e,this,1===e.length?n:r,t.cache.create(),t.serializer)}function i(){return JSON.stringify(arguments)}function c(){this.cache=Object.create(null)}c.prototype.has=function(e){return e in this.cache},c.prototype.get=function(e){return this.cache[e]},c.prototype.set=function(e,t){this.cache[e]=t};var s={create:function(){return new c}};e.exports=function(e,t){var n=t&&t.cache?t.cache:s,r=t&&t.serializer?t.serializer:i;return(t&&t.strategy?t.strategy:a)(e,{cache:n,serializer:r})},e.exports.strategies={variadic:function(e,t){return o(e,this,r,t.cache.create(),t.serializer)},monadic:function(e,t){return o(e,this,n,t.cache.create(),t.serializer)}}},function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var s,u=[],l=!1,d=-1;function f(){l&&s&&(l=!1,s.length?u=s.concat(u):d=-1,u.length&&p())}function p(){if(!l){var e=c(f);l=!0;for(var t=u.length;t;){for(s=u,u=[];++d1)for(var n=1;n-1?o(n):n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(20),o=n(59),a=n(58),i=n(14),c=n(89),s=[].concat(["baseId","unstable_idCountRef","setBaseId"],["id"]),u=Object(a.a)({keys:s,useOptions:function(e,t){var n=Object(i.useContext)(c.a),o=Object(i.useState)((function(){return e.unstable_idCountRef?(e.unstable_idCountRef.current+=1,"-"+e.unstable_idCountRef.current):e.baseId?"-"+n(""):""}))[0],a=Object(i.useMemo)((function(){return e.baseId||n()}),[e.baseId,n]),s=t.id||e.id||""+a+o;return Object(r.b)(Object(r.b)({},e),{},{id:s})},useProps:function(e,t){return Object(r.b)({id:e.id},t)}});Object(o.a)({as:"div",useHook:u})},function(e,t,n){"use strict";(function(e){var r=n(8),o=n(5),a=n(13),i=n(0),c=n(490),s=(n(103),n(85));function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t2?n-2:0),o=2;o0&&void 0!==arguments[0]?arguments[0]:{},t=e.htmlDocument,n=void 0===t?document:t,i=e.className,c=void 0===i?"lockscroll":i,l=0,d=0;function f(e){var t=n.scrollingElement||n.body;e&&(d=t.scrollTop);var r=e?"add":"remove";t.classList[r](c),n.documentElement.classList[r](c),e||(t.scrollTop=d)}function p(){0===l&&f(!0),++l}function b(){1===l&&f(!1),--l}return function(e){Object(a.a)(n,e);var t=u(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"componentDidMount",value:function(){p()}},{key:"componentWillUnmount",value:function(){b()}},{key:"render",value:function(){return null}}]),n}(s.Component)}()},function(e,t,n){"use strict";(function(e){var r=n(0),o=n(2),a=n(10),i=n.n(a),c=n(48),s=n(1),u=(n(103),n(36));t.a=Object(r.forwardRef)((function(t,n){var a=t.className,l=t.children,d=t.spokenMessage,f=void 0===d?l:d,p=t.politeness,b=void 0===p?"polite":p,h=t.actions,v=void 0===h?[]:h,m=t.onRemove,y=void 0===m?o.noop:m,g=t.icon,O=void 0===g?null:g,j=t.explicitDismiss,w=void 0!==j&&j,_=t.onDismiss,k=void 0===_?o.noop:_;function E(e){e&&e.preventDefault&&e.preventDefault(),k(),y()}k=k||o.noop,function(e,t){var n="string"==typeof e?e:Object(r.renderToString)(e);Object(r.useEffect)((function(){n&&Object(c.speak)(n,t)}),[n,t])}(f,b),Object(r.useEffect)((function(){var e=setTimeout((function(){w||(k(),y())}),1e4);return function(){return clearTimeout(e)}}),[k,y]);var S=i()(a,"components-snackbar",{"components-snackbar-explicit-dismiss":!!w});v&&v.length>1&&(void 0!==e&&e.env,v=[v[0]]);var x=i()("components-snackbar__content",{"components-snackbar__content-with-icon":!!O});return Object(r.createElement)("div",{ref:n,className:S,onClick:w?o.noop:E,tabIndex:"0",role:w?"":"button",onKeyPress:w?o.noop:E,"aria-label":w?"":Object(s.__)("Dismiss this notice")},Object(r.createElement)("div",{className:x},O&&Object(r.createElement)("div",{className:"components-snackbar__icon"},O),l,v.map((function(e,t){var n=e.label,o=e.onClick,a=e.url;return Object(r.createElement)(u.a,{key:t,href:a,isTertiary:!0,onClick:function(e){return function(e,t){e.stopPropagation(),y(),t&&t(e)}(e,o)},className:"components-snackbar__action"},n)})),w&&Object(r.createElement)("span",{role:"button","aria-label":"Dismiss this notice",tabIndex:"0",className:"components-snackbar__dismiss-button",onClick:E,onKeyPress:E},"✕")))}))}).call(this,n(120))},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(66);function o(e){var t=Object(r.a)(e);if(!t)return!1;if(t===e)return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function a(e,t){var n=void 0===t?{}:t,r=n.preventScroll,a=n.isActive,i=void 0===a?o:a;return i(e)?-1:(e.focus({preventScroll:r}),i(e)?-1:requestAnimationFrame((function(){e.focus({preventScroll:r})})))}},,function(e,t,n){"use strict";function r(e,t){return e===t||e.contains(t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";t.a=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t=0||(o[n]=e[n]);return o}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},,,,,function(e,t,n){"use strict";var r=n(191);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var o=n.allowHorizontalScroll,a=n.onlyScrollIfNeeded,i=n.alignWithTop,c=n.alignWithLeft,s=n.offsetTop||0,u=n.offsetLeft||0,l=n.offsetBottom||0,d=n.offsetRight||0;o=void 0===o||o;var f=r.isWindow(t),p=r.offset(e),b=r.outerHeight(e),h=r.outerWidth(e),v=void 0,m=void 0,y=void 0,g=void 0,O=void 0,j=void 0,w=void 0,_=void 0,k=void 0,E=void 0;f?(w=t,E=r.height(w),k=r.width(w),_={left:r.scrollLeft(w),top:r.scrollTop(w)},O={left:p.left-_.left-u,top:p.top-_.top-s},j={left:p.left+h-(_.left+k)+d,top:p.top+b-(_.top+E)+l},g=_):(v=r.offset(t),m=t.clientHeight,y=t.clientWidth,g={left:t.scrollLeft,top:t.scrollTop},O={left:p.left-(v.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-u,top:p.top-(v.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-s},j={left:p.left+h-(v.left+y+(parseFloat(r.css(t,"borderRightWidth"))||0))+d,top:p.top+b-(v.top+m+(parseFloat(r.css(t,"borderBottomWidth"))||0))+l}),O.top<0||j.top>0?!0===i?r.scrollTop(t,g.top+O.top):!1===i?r.scrollTop(t,g.top+j.top):O.top<0?r.scrollTop(t,g.top+O.top):r.scrollTop(t,g.top+j.top):a||((i=void 0===i||!!i)?r.scrollTop(t,g.top+O.top):r.scrollTop(t,g.top+j.top)),o&&(O.left<0||j.left>0?!0===c?r.scrollLeft(t,g.left+O.left):!1===c?r.scrollLeft(t,g.left+j.left):O.left<0?r.scrollLeft(t,g.left+O.left):r.scrollLeft(t,g.left+j.left):a||((c=void 0===c||!!c)?r.scrollLeft(t,g.left+O.left):r.scrollLeft(t,g.left+j.left)))}},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');var n="$ "+e;if(!(n in s))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===s[n]&&!t)throw new TypeError("intrinsic "+e+" exists, but is not available. Please file an issue!");return s[n]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!a.default.isMoment(e)||!a.default.isMoment(t))&&(e.date()===t.date()&&e.month()===t.month()&&e.year()===t.year())};var r,o=n(45),a=(r=o)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=r.default.isMoment(e)?e:(0,o.default)(e,t);return n?n.format(a.ISO_MONTH_FORMAT):null};var r=i(n(45)),o=i(n(258)),a=n(74);function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";var r,o=new Uint8Array(16);function a(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}var i=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var c=function(e){return"string"==typeof e&&i.test(e)},s=[],u=0;u<256;++u)s.push((u+256).toString(16).substr(1));var l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!c(n))throw TypeError("Stringified UUID is invalid");return n};t.a=function(e,t,n){var r=(e=e||{}).random||(e.rng||a)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return l(r)}},function(e,t,n){"use strict";var r=n(177);var o=function(e){function t(e,t,r){var o=t.trim().split(b);t=o;var a=o.length,i=e.length;switch(i){case 0:case 1:var c=0;for(e=0===i?"":e[0]+" ";cr&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(h,"$1"+e.trim());case 58:return e.trim()+t.replace(h,"$1"+e.trim());default:if(0<1*n&&0s.charCodeAt(8))break;case 115:i=i.replace(s,"-webkit-"+s)+";"+i;break;case 207:case 102:i=i.replace(s,"-webkit-"+(102c.charCodeAt(0)&&(c=c.trim()),c=[c],0p)&&(z=(V=V.replace(" ",":")).length),00&&O("Invalid input not EOF"),e}function w(){return _("linear-gradient",e,E)||_("repeating-linear-gradient",t,E)||_("radial-gradient",n,S)||_("repeating-radial-gradient",r,S)}function _(e,t,n){return k(t,(function(t){var r=n();return r&&(A(p)||O("Missing comma before color stops")),{type:e,orientation:r,colorStops:D(M)}}))}function k(e,t){var n=A(e);if(n)return A(d)||O("Missing ("),result=t(n),A(f)||O("Missing )"),result}function E(){return N("directional",o,1)||N("angular",l,1)}function S(){var e,t,n=x();return n&&((e=[]).push(n),t=g,A(p)&&((n=x())?e.push(n):g=t)),e}function x(){var e=function(){var e=N("shape",/^(circle)/i,0);e&&(e.style=R()||C());return e}()||function(){var e=N("shape",/^(ellipse)/i,0);e&&(e.style=I()||C());return e}();if(e)e.at=function(){if(N("position",/^at/,0)){var e=P();return e||O("Missing positioning value"),e}}();else{var t=P();t&&(e={type:"default-radial",at:t})}return e}function C(){return N("extent-keyword",a,1)}function P(){var e={x:I(),y:I()};if(e.x||e.y)return{type:"position",value:e}}function D(e){var t=e(),n=[];if(t)for(n.push(t);A(p);)(t=e())?n.push(t):O("One extra comma");return n}function M(){var e=N("hex",b,1)||k(m,(function(){return{type:"rgba",value:D(T)}}))||k(v,(function(){return{type:"rgb",value:D(T)}}))||N("literal",h,0);return e||O("Expected color definition"),e.length=I(),e}function T(){return A(y)[1]}function I(){return N("%",s,1)||N("position-keyword",i,1)||R()}function R(){return N("px",c,1)||N("em",u,1)}function N(e,t,n){var r=A(t);if(r)return{type:e,value:r[n]}}function A(e){var t,n;return(n=/^[\n\r\t\s]+/.exec(g))&&L(n[0].length),(t=e.exec(g))&&L(t[0].length),t}function L(e){g=g.substr(e)}return function(e){return g=e.toString(),j()}}(),t.parse=(n||{}).parse},,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));t.a=a},function(e,t,n){"use strict";var r=n(0),o=n(7),a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"}));t.a=a},function(e,t,n){"use strict";var r=n(0),o=n(7),a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=a},function(e,t,n){"use strict";var r=n(0),o=n(7),a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=a},,function(e,t,n){"use strict";var r=n(0),o=n(7),a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));t.a=a},function(e,t,n){"use strict";var r=n(0),o=n(7),a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M13.23 15h1.9L11 4H9L5 15h1.88l1.07-3h4.18zm-1.53-4.54H8.51L10 5.6z"}));t.a=a},function(e,t,n){"use strict";var r=n(0),o=n(7),a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"}));t.a=a},function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t=r.call(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t,n){"use strict";var r=n(334),o=n(347),a=n(163),i=n(237),c=n(236),s=n(372);e.exports=function(){var e=s(this),t=c(a(e,"length")),n=1;arguments.length>0&&void 0!==arguments[0]&&(n=i(arguments[0]));var u=r(e,0);return o(u,e,t,0,n),u}},function(e,t,n){"use strict";var r=n(55)("%Object.defineProperty%",!0);if(r)try{r({},"a",{value:1})}catch(e){r=null}var o=n(131)("Object.prototype.propertyIsEnumerable");e.exports=function(e,t,n,a,i,c){if(!r){if(!e(c))return!1;if(!c["[[Configurable]]"]||!c["[[Writable]]"])return!1;if(i in a&&o(a,i)!==!!c["[[Enumerable]]"])return!1;var s=c["[[Value]]"];return a[i]=s,t(a[i],s)}return r(a,i,n(c)),!0}},function(e,t,n){"use strict";var r=n(196),o=n(82);e.exports=function(e){if(void 0===e)return e;r(o,"Property Descriptor","Desc",e);var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(t.enumerable=e["[[Enumerable]]"]),"[[Configurable]]"in e&&(t.configurable=e["[[Configurable]]"]),t}},function(e,t,n){"use strict";var r=n(81),o=n(196),a=n(82);e.exports=function(e){return void 0!==e&&(o(a,"Property Descriptor","Desc",e),!(!r(e,"[[Value]]")&&!r(e,"[[Writable]]")))}},function(e,t,n){"use strict";var r=n(197);e.exports=function(e,t){return e===t?0!==e||1/e==1/t:r(e)&&r(t)}},function(e,t,n){"use strict";var r=n(81),o=n(55)("%TypeError%"),a=n(82),i=n(231),c=n(343);e.exports=function(e){if("Object"!==a(e))throw new o("ToPropertyDescriptor requires an object");var t={};if(r(e,"enumerable")&&(t["[[Enumerable]]"]=i(e.enumerable)),r(e,"configurable")&&(t["[[Configurable]]"]=i(e.configurable)),r(e,"value")&&(t["[[Value]]"]=e.value),r(e,"writable")&&(t["[[Writable]]"]=i(e.writable)),r(e,"get")){var n=e.get;if(void 0!==n&&!c(n))throw new o("getter must be a function");t["[[Get]]"]=n}if(r(e,"set")){var s=e.set;if(void 0!==s&&!c(s))throw new o("setter must be a function");t["[[Set]]"]=s}if((r(t,"[[Get]]")||r(t,"[[Set]]"))&&(r(t,"[[Value]]")||r(t,"[[Writable]]")))throw new o("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}},function(e,t,n){"use strict";e.exports=function(e){return!!e}},function(e,t,n){"use strict";var r,o,a=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{r=Object.defineProperty({},"length",{get:function(){throw o}}),o={},i((function(){throw 42}),null,r)}catch(e){e!==o&&(i=null)}else i=null;var c=/^\s*class\b/,s=function(e){try{var t=a.call(e);return c.test(t)}catch(e){return!1}},u=Object.prototype.toString,l="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,d="object"==typeof document&&void 0===document.all&&void 0!==document.all?document.all:{};e.exports=i?function(e){if(e===d)return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{i(e,null,r)}catch(e){if(e!==o)return!1}return!s(e)}:function(e){if(e===d)return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(l)return function(e){try{return!s(e)&&(a.call(e),!0)}catch(e){return!1}}(e);if(s(e))return!1;var t=u.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},function(e,t,n){"use strict";var r=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!r(e)&&e!==1/0&&e!==-1/0}},function(e,t,n){"use strict";var r=n(55),o=r("%Math%"),a=r("%Number%");e.exports=a.MAX_SAFE_INTEGER||o.pow(2,53)-1},function(e,t,n){"use strict";e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";var r=n(234),o=n(237);e.exports=function(e){var t=o(e);return t<=0?0:t>r?r:t}},function(e,t,n){"use strict";var r=n(360),o=n(365);e.exports=function(e){var t=o(e);return 0!==t&&(t=r(t)),0===t?0:t}},function(e,t,n){"use strict";var r=Date.prototype.getDay,o=Object.prototype.toString,a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"object"==typeof e&&null!==e&&(a?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(e,t,n){"use strict";var r=n(225);e.exports=function(){return Array.prototype.flat||r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=void 0,o=void 0;function a(e,t){var n=t(e(o));return function(){return n}}function i(e){return a(e,r.createLTR||r.create)}function c(){for(var e=arguments.length,t=Array(e),n=0;n=0?1:-1}},function(e,t){e.exports=function(e,t){var n=e%t;return Math.floor(n>=0?n:n+t)}},function(e,t,n){"use strict";var r=n(246);e.exports=function(){return"function"==typeof Object.values?Object.values:r}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!("undefined"==typeof window||!("ontouchstart"in window||window.DocumentTouch&&"undefined"!=typeof document&&document instanceof window.DocumentTouch))||!("undefined"==typeof navigator||!navigator.maxTouchPoints&&!navigator.msMaxTouchPoints)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!r.default.isMoment(e)||!r.default.isMoment(t))&&(!(0,o.default)(e,t)&&!(0,a.default)(e,t))};var r=i(n(45)),o=i(n(257)),a=i(n(201));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!a.default.isMoment(e)||!a.default.isMoment(t))return!1;var n=e.year(),r=e.month(),o=t.year(),i=t.month(),c=n===o,s=r===i;return c&&s?e.date()2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return 0;var o="width"===t?"Left":"Top",a="width"===t?"Right":"Bottom",i=!n||r?window.getComputedStyle(e):null,c=e.offsetWidth,s=e.offsetHeight,u="width"===t?c:s;n||(u-=parseFloat(i["padding"+o])+parseFloat(i["padding"+a])+parseFloat(i["border"+o+"Width"])+parseFloat(i["border"+a+"Width"]));r&&(u+=parseFloat(i["margin"+o])+parseFloat(i["margin"+a]));return u}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return 7*e+2*t+1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!a.default.isMoment(e)||!a.default.isMoment(t))&&(e.month()===t.month()&&e.year()===t.year())};var r,o=n(45),a=(r=o)&&r.__esModule?r:{default:r}},,,,function(e,t,n){"use strict";n.r(t),n.d(t,"SVG",(function(){return r.SVG})),n.d(t,"Path",(function(){return r.Path})),n.d(t,"Circle",(function(){return r.Circle})),n.d(t,"Polygon",(function(){return r.Polygon})),n.d(t,"Rect",(function(){return r.Rect})),n.d(t,"G",(function(){return r.G})),n.d(t,"HorizontalRule",(function(){return r.HorizontalRule})),n.d(t,"BlockQuotation",(function(){return r.BlockQuotation})),n.d(t,"__experimentalAlignmentMatrixControl",(function(){return bt})),n.d(t,"Animate",(function(){return ht.a})),n.d(t,"__unstableGetAnimateClassName",(function(){return ht.b})),n.d(t,"AnglePickerControl",(function(){return Po})),n.d(t,"Autocomplete",(function(){return Lo})),n.d(t,"BaseControl",(function(){return kt})),n.d(t,"__experimentalBoxControl",(function(){return ri})),n.d(t,"Button",(function(){return To.a})),n.d(t,"ButtonGroup",(function(){return oi})),n.d(t,"Card",(function(){return ji})),n.d(t,"CardBody",(function(){return Ei})),n.d(t,"CardDivider",(function(){return Si})),n.d(t,"CardFooter",(function(){return Di})),n.d(t,"CardHeader",(function(){return Ri})),n.d(t,"CardMedia",(function(){return Ni})),n.d(t,"CheckboxControl",(function(){return Fi})),n.d(t,"ClipboardButton",(function(){return zi})),n.d(t,"__experimentalColorEdit",(function(){return Cc})),n.d(t,"ColorIndicator",(function(){return Pc})),n.d(t,"ColorPalette",(function(){return Dc})),n.d(t,"ColorPicker",(function(){return kc})),n.d(t,"ComboboxControl",(function(){return Vc})),n.d(t,"__unstableComposite",(function(){return ot})),n.d(t,"__unstableCompositeGroup",(function(){return st})),n.d(t,"__unstableCompositeItem",(function(){return p.a})),n.d(t,"__unstableUseCompositeState",(function(){return Re})),n.d(t,"CustomSelectControl",(function(){return Ws})),n.d(t,"Dashicon",(function(){return Us.a})),n.d(t,"DateTimePicker",(function(){return ru})),n.d(t,"DatePicker",(function(){return Zs})),n.d(t,"TimePicker",(function(){return nu})),n.d(t,"__experimentalDimensionControl",(function(){return lu})),n.d(t,"Disabled",(function(){return yu})),n.d(t,"__unstableDisclosureContent",(function(){return ju})),n.d(t,"Draggable",(function(){return _u})),n.d(t,"DropZone",(function(){return Hu})),n.d(t,"__unstableUseDropZone",(function(){return Bu})),n.d(t,"DropZoneProvider",(function(){return Lu})),n.d(t,"__unstableDropZoneContextProvider",(function(){return Nu})),n.d(t,"__unstableUseDrop",(function(){return Ru})),n.d(t,"Dropdown",(function(){return Ui})),n.d(t,"DropdownMenu",(function(){return el})),n.d(t,"ExternalLink",(function(){return rl})),n.d(t,"Flex",(function(){return Tt})),n.d(t,"FlexBlock",(function(){return Pt})),n.d(t,"FlexItem",(function(){return Dt})),n.d(t,"FocalPointPicker",(function(){return Rl})),n.d(t,"FocusableIframe",(function(){return Nl})),n.d(t,"FontSizePicker",(function(){return bd})),n.d(t,"FormFileUpload",(function(){return hd})),n.d(t,"FormToggle",(function(){return vd})),n.d(t,"FormTokenField",(function(){return kd})),n.d(t,"__experimentalGradientPicker",(function(){return af})),n.d(t,"__experimentalCustomGradientPicker",(function(){return of})),n.d(t,"Guide",(function(){return Ef})),n.d(t,"GuidePage",(function(){return Sf})),n.d(t,"Icon",(function(){return ou.a})),n.d(t,"IconButton",(function(){return xf})),n.d(t,"__experimentalInputControl",(function(){return bo})),n.d(t,"KeyboardShortcuts",(function(){return rc})),n.d(t,"MenuGroup",(function(){return Cf})),n.d(t,"MenuItem",(function(){return Df})),n.d(t,"MenuItemsChoice",(function(){return Mf})),n.d(t,"Modal",(function(){return jf})),n.d(t,"ScrollLock",(function(){return Tf.a})),n.d(t,"NavigableMenu",(function(){return Xu})),n.d(t,"TabbableContainer",(function(){return If})),n.d(t,"__experimentalNavigation",(function(){return Qf})),n.d(t,"__experimentalNavigationBackButton",(function(){return np})),n.d(t,"__experimentalNavigationGroup",(function(){return op})),n.d(t,"__experimentalNavigationItem",(function(){return bp})),n.d(t,"__experimentalNavigationMenu",(function(){return jp})),n.d(t,"Notice",(function(){return wp})),n.d(t,"__experimentalNumberControl",(function(){return _o})),n.d(t,"NoticeList",(function(){return _p})),n.d(t,"Panel",(function(){return Ep})),n.d(t,"PanelBody",(function(){return Cp})),n.d(t,"PanelHeader",(function(){return kp})),n.d(t,"PanelRow",(function(){return Pp})),n.d(t,"Placeholder",(function(){return Dp})),n.d(t,"Popover",(function(){return Io.a})),n.d(t,"QueryControls",(function(){return Lp})),n.d(t,"__experimentalRadio",(function(){return Gp})),n.d(t,"__experimentalRadioGroup",(function(){return Zp})),n.d(t,"RadioControl",(function(){return Jp})),n.d(t,"RangeControl",(function(){return fd})),n.d(t,"ResizableBox",(function(){return Ab})),n.d(t,"ResponsiveWrapper",(function(){return Lb})),n.d(t,"SandBox",(function(){return Bb})),n.d(t,"SelectControl",(function(){return su})),n.d(t,"Snackbar",(function(){return Hb.a})),n.d(t,"SnackbarList",(function(){return Gb})),n.d(t,"Spinner",(function(){return Qb})),n.d(t,"TabPanel",(function(){return th})),n.d(t,"__experimentalText",(function(){return sn})),n.d(t,"TextControl",(function(){return lc})),n.d(t,"TextareaControl",(function(){return ch})),n.d(t,"TextHighlight",(function(){return sh})),n.d(t,"Tip",(function(){return uh})),n.d(t,"ToggleControl",(function(){return lh})),n.d(t,"Toolbar",(function(){return kh})),n.d(t,"ToolbarButton",(function(){return bh})),n.d(t,"__experimentalToolbarContext",(function(){return fh.a})),n.d(t,"ToolbarGroup",(function(){return gh})),n.d(t,"ToolbarItem",(function(){return dh.a})),n.d(t,"Tooltip",(function(){return b.a})),n.d(t,"__experimentalTreeGrid",(function(){return Ph})),n.d(t,"__experimentalTreeGridRow",(function(){return Dh})),n.d(t,"__experimentalTreeGridCell",(function(){return Rh})),n.d(t,"__experimentalTreeGridItem",(function(){return Ih})),n.d(t,"TreeSelect",(function(){return Rp})),n.d(t,"__experimentalUnitControl",(function(){return na})),n.d(t,"VisuallyHidden",(function(){return h.a})),n.d(t,"IsolatedEventContainer",(function(){return Ah})),n.d(t,"createSlotFill",(function(){return Lh.c})),n.d(t,"Slot",(function(){return Lh.b})),n.d(t,"Fill",(function(){return Lh.a})),n.d(t,"SlotFillProvider",(function(){return Fh.b})),n.d(t,"__experimentalUseSlot",(function(){return zh.a})),n.d(t,"navigateRegions",(function(){return Vh})),n.d(t,"__unstableUseNavigateRegions",(function(){return Hh})),n.d(t,"withConstrainedTabbing",(function(){return Kh})),n.d(t,"withFallbackStyles",(function(){return Uh})),n.d(t,"withFilters",(function(){return qh})),n.d(t,"withFocusOutside",(function(){return zc})),n.d(t,"withFocusReturn",(function(){return Yh})),n.d(t,"FocusReturnProvider",(function(){return Xh})),n.d(t,"withNotices",(function(){return tv})),n.d(t,"withSpokenMessages",(function(){return No})),n.d(t,"__unstableWithNext",(function(){return rn})),n.d(t,"__unstableComponentSystemProvider",(function(){return nv}));var r=n(7),o=n(8),a=n(11),i=n(13),c=n(0),s=n(2),u=n(10),l=n.n(u),d=n(1),f=n(12),p=n(179),b=n(79),h=n(56),v=[["top left","top center","top right"],["center left","center center","center right"],["bottom left","bottom center","bottom right"]],m={"top left":Object(d.__)("Top Left"),"top center":Object(d.__)("Top Center"),"top right":Object(d.__)("Top Right"),"center left":Object(d.__)("Center Left"),"center center":Object(d.__)("Center Center"),"center right":Object(d.__)("Center Right"),"bottom left":Object(d.__)("Bottom Left"),"bottom center":Object(d.__)("Bottom Center"),"bottom right":Object(d.__)("Bottom Right")},y=Object(s.flattenDeep)(v);function g(e){return("center"===e?"center center":e).replace("-"," ")}function O(e,t){var n=g(t).replace(" ","-");return"".concat(e,"-").concat(n)}var j=n(286),w=n.n(j),_=n(14),k=n.n(_),E=n(287),S=n(40),x=n(99),C=n(98),P=E.a,D=function(e){return"theme"!==e&&"innerRef"!==e},M=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?P:D};function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=A()(e).toRgb(),r=n.r,o=n.g,a=n.b;return"rgba(".concat(r,", ").concat(o,", ").concat(a,", ").concat(t,")")}function J(e){return Object(s.get)(X,e,"#000")}function Q(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transition";switch(t){case"transition":e="transition-duration: 0ms;";break;case"animation":e="animation-duration: 1ms;";break;default:e="\n\t\t\t\tanimation-duration: 1ms;\n\t\t\t\ttransition-duration: 0ms;\n\t\t\t"}return"\n\t\t@media ( prefers-reduced-motion: reduce ) {\n\t\t\t".concat(e,";\n\t\t}\n\t")}var ee={name:"1xiracb",styles:"border-radius:2px;box-sizing:border-box;display:grid;grid-template-columns:repeat( 3,1fr );outline:none;"},te=function(){return ee},ne=R("div",{target:"e1od1u4s0",label:"Root"})(te,";border:1px solid transparent;cursor:pointer;grid-template-columns:auto;",(function(e){var t=e.size,n=void 0===t?92:t;return Object(S.b)("grid-template-rows:repeat( 3,calc( ",n,"px / 3 ) );width:",n,"px;")}),";"),re=R("div",{target:"e1od1u4s1",label:"Row"})({name:"1177s8r",styles:"box-sizing:border-box;display:grid;grid-template-columns:repeat( 3,1fr );"}),oe=function(e){return Object(S.b)("background:currentColor;box-sizing:border-box;display:grid;margin:auto;transition:all 120ms linear;",Q("transition")," ",(t=e.isActive,n=t?"0 0 0 2px ".concat(J("black")):null,r=J(t?"black":"lightGray.800"),o=J(t?"black":"blue.medium.focus"),Object(S.b)("box-shadow:",n,";color:",r,";*:hover > &{color:",o,";}")),"");var t,n,r,o},ae=R("span",{target:"e1od1u4s2",label:"Point"})("height:6px;width:6px;",oe,""),ie=R("span",{target:"e1od1u4s3",label:"Cell"})({name:"10ro24i",styles:"appearance:none;border:none;box-sizing:border-box;margin:0;display:flex;position:relative;outline:none;align-items:center;justify-content:center;padding:0;"});function ce(e){var t=e.isActive,n=void 0!==t&&t,r=e.value,a=Object(i.a)(e,["isActive","value"]),s=m[r];return Object(c.createElement)(b.a,{text:s},Object(c.createElement)(p.a,Object(o.a)({as:ie,role:"gridcell"},a),Object(c.createElement)(h.a,null,r),Object(c.createElement)(ae,{isActive:n,role:"presentation"})))}var se=n(20),ue=n(70);function le(e){return Object(_.useState)(e)[0]}var de=n(54);function fe(e){for(var t,n=[[]],r=function(){var e=t.value,r=n.find((function(t){return!t[0]||t[0].groupId===e.groupId}));r?r.push(e):n.push([e])},o=Object(se.c)(e);!(t=o()).done;)r();return n}function pe(e){for(var t,n=[],r=Object(se.c)(e);!(t=r()).done;){var o=t.value;n.push.apply(n,o)}return n}function be(e){return e.slice().reverse()}var he=n(62);function ve(e,t){if(t)return null==e?void 0:e.find((function(e){return e.id===t&&!e.disabled}))}function me(e,t){return function(e){return"function"==typeof e}(e)?e(t):e}var ye=n(89);function ge(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function Oe(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&ge(t.ref.current,e.ref.current)}))}function je(e){for(var t,n=0,r=Object(se.c)(e);!(t=r()).done;){var o=t.value.length;o>n&&(n=o)}return n}function we(e){for(var t=fe(e),n=je(t),r=[],o=0;oa&&(n=!0),-1):(r &{color:currentColor;}")}),";"),dt=ie;function ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"center",t=g(e).replace("-"," "),n=y.indexOf(t);return n>-1?n:void 0}(p),v=(s/24).toFixed(2),m=l()("component-alignment-matrix-control-icon",t),O=pt(pt({},d),{},{transform:"scale(".concat(v,")")});return Object(c.createElement)(ut,Object(o.a)({},b,{className:m,disablePointerEvents:r,role:"presentation",size:s,style:O}),y.map((function(e,t){var n=h===t;return Object(c.createElement)(dt,{key:e},Object(c.createElement)(lt,{isActive:n}))})))};var ht=n(102),vt={"default.fontFamily":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif","default.fontSize":"13px","helpText.fontSize":"12px",mobileTextMinFontSize:"16px"};function mt(e){return Object(s.get)(vt,e,"")}function yt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return isNaN(e)?"".concat(8,"px"):"".concat(8*e,"px")}var gt=R("div",{target:"e1puf3u0",label:"Wrapper"})("font-family:",mt("default.fontFamily"),";font-size:",mt("default.fontSize"),";"),Ot=R("div",{target:"e1puf3u1",label:"StyledField"})("margin-bottom:",yt(1),";.components-panel__row &{margin-bottom:inherit;}"),jt=R("label",{target:"e1puf3u2",label:"StyledLabel"})("display:inline-block;margin-bottom:",yt(1),";"),wt=R("p",{target:"e1puf3u3",label:"StyledHelp"})("margin-top:-",yt(1),";font-size:",mt("helpText.fontSize"),";font-style:normal;color:",J("mediumGray.text"),";");function _t(e){var t=e.id,n=e.label,r=e.hideLabelFromVision,o=e.help,a=e.className,i=e.children;return Object(c.createElement)(gt,{className:l()("components-base-control",a)},Object(c.createElement)(Ot,{className:"components-base-control__field"},n&&t&&(r?Object(c.createElement)(h.a,{as:"label",htmlFor:t},n):Object(c.createElement)(jt,{className:"components-base-control__label",htmlFor:t},n)),n&&!t&&(r?Object(c.createElement)(h.a,{as:"label"},n):Object(c.createElement)(_t.VisualLabel,null,n)),i),!!o&&Object(c.createElement)(wt,{id:t+"__help",className:"components-base-control__help"},o))}_t.VisualLabel=function(e){var t=e.className,n=e.children;return t=l()("components-base-control__label",t),Object(c.createElement)("span",{className:t},n)};var kt=_t;var Et={name:"8kj89b",styles:"flex-direction:row-reverse;"},St=R("div",{target:"eboqfv50",label:"Flex"})("box-sizing:border-box;display:flex;width:100%;",(function(e){var t=e.align,n={top:"flex-start",bottom:"flex-end"}[t]||t;return Object(S.b)({alignItems:n},"")})," ",(function(e){var t=e.justify,n=e.isReversed,r={left:"flex-start",right:"flex-end"},o=r[t]||t;return n&&r[t]&&(o="left"===t?r.right:r.left),Object(S.b)({justifyContent:o},"")})," ",(function(e){var t=e.gap,n=e.isReversed,r="number"==typeof t?4*t:4,o="margin-".concat(n?"left":"right");return Object(S.b)("> *{",o,":",r,"px;&:last-child{",o,":0;}}")})," ",(function(e){return e.isReversed?Et:""}),""),xt=R("div",{target:"eboqfv51",label:"Item"})({name:"13luw5d",styles:"box-sizing:border-box;min-width:0;max-width:100%;"}),Ct=R(xt,{target:"eboqfv52",label:"Block"})({name:"1rr4qq7",styles:"flex:1;"});var Pt=Object(c.forwardRef)((function(e,t){var n=e.className,r=Object(i.a)(e,["className"]),a=l()("components-flex__block",n);return Object(c.createElement)(Ct,Object(o.a)({},r,{className:a,ref:t}))}));var Dt=Object(c.forwardRef)((function(e,t){var n=e.className,r=Object(i.a)(e,["className"]),a=l()("components-flex__item",n);return Object(c.createElement)(xt,Object(o.a)({},r,{className:a,ref:t}))}));var Mt=Object(c.forwardRef)((function(e,t){var n=e.align,r=void 0===n?"center":n,a=e.className,s=e.gap,u=void 0===s?2:s,d=e.justify,f=void 0===d?"space-between":d,p=e.isReversed,b=void 0!==p&&p,h=Object(i.a)(e,["align","className","gap","justify","isReversed"]),v=l()("components-flex",a);return Object(c.createElement)(St,Object(o.a)({},h,{align:r,className:v,ref:t,gap:u,justify:f,isReversed:b}))})),Tt=Mt;function It(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Rt=S.b;function Nt(){var e=It(["\n\t","\n\t","\n"]);return Nt=function(){return e},e}function At(){var e=It(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return At=function(){return e},e}function Lt(){var e=It(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Lt=function(){return e},e}function Ft(){var e=It(["\n\t\t\t\t","\n\t\t\t"]);return Ft=function(){return e},e}function zt(){var e=It(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return zt=function(){return e},e}function Bt(){var e=It(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Bt=function(){return e},e}function Ht(){var e=It(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Ht=function(){return e},e}function Vt(){var e=It(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Vt=function(){return e},e}function Kt(){var e=It(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Kt=function(){return e},e}var Wt="\n ".concat("font-weight: 400;","\n"),Ut="\n\tfont-size: 32px;\n\tline-height: 40px;\n",Gt="\n\tfont-size: 24px;\n\tline-height: 32px;\n",$t="\n\tfont-size: 20px;\n\tline-height: 28px;\n",qt="\n\t".concat("font-weight: 600;","\n\tfont-size: 14px;\n\tline-height: 20px;\n"),Yt="\n\t".concat("font-weight: 400;","\n"),Xt="\n\tfont-size: 16px;\n\tline-height: 24px;\n",Zt="\n\tfont-size: 14px;\n\tline-height: 20px;\n",Jt="\n ".concat("font-weight: 600;","\n font-size: 14px;\n line-height: 20px;\n"),Qt="\n\t".concat("font-weight: 400;","\n\tfont-size: 12px;\n\tline-height: 16px;\n"),en="\n\t".concat("font-weight: 600;","\n\tfont-size: 12px;\n\tline-height: 16px;\n"),tn="\n\t".concat("font-weight: 500;","\n\tfont-size: 11px;\n\tline-height: 1.4;\n\ttext-transform: uppercase;\n\tcolor: ").concat(H.gray[700],"\n"),nn=function(e){return Rt(Nt(),'font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,\nOxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;',function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body";switch(e){case"title.large":return Rt(Kt(),Wt,Ut);case"title.medium":return Rt(Vt(),Wt,Gt);case"title.small":return Rt(Ht(),Wt,$t);case"subtitle":return Rt(Bt(),qt,"\n\tfont-size: 16px;\n\tline-height: 24px;\n");case"subtitle.small":return Rt(zt(),qt,"\n\tfont-size: 14px;\n\tline-height: 20px;\n");case"body":return Rt(Ft(),Yt);case"body.large":return Rt(Lt(),Yt,Xt);case"body.small":return Rt(At(),Yt,Zt);case"button":return Jt;case"caption":return Qt;case"label":return en;case"sectionheading":return tn}}(e.variant))};function rn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return null};return e}function on(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var an=function(e){var t=e.as,n=e.variant,r=Object(i.a)(e,["as","variant"]);return function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return Object(s.mapKeys)(e,(function(e,t){return pn(t)}))};function hn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return function(){return t?Object(d.isRTL)()?Object(S.b)(t,""):Object(S.b)(e,""):Object(d.isRTL)()?Object(S.b)(bn(e),""):Object(S.b)(e,"")}}var vn={name:"1dacand",styles:"padding-top:0;"},mn=function(){return vn},yn={name:"r6z5ec",styles:"z-index:1;"},gn=function(e){return e.isFocused?yn:""},On={name:"uz6002",styles:"align-items:flex-start;flex-direction:column;"},jn={name:"53hdd7",styles:"align-items:flex-start;flex-direction:column-reverse;"},wn={name:"x4dmss",styles:"justify-content:space-between;"},_n=function(e){switch(e.labelPosition){case"top":return On;case"bottom":return jn;case"edge":return wn;default:return""}},kn=R(Tt,{target:"e1cr7zh10",label:"Root"})("position:relative;border-radius:2px;",mn," ",gn," ",_n,""),En={name:"8atqhb",styles:"width:100%;"},Sn=R("div",{target:"e1cr7zh11",label:"Container"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",(function(e){var t=J(e.disabled?"ui.backgroundDisabled":"ui.background");return Object(S.b)({backgroundColor:t},"")})," ",(function(e){var t=e.__unstableInputWidth,n=e.labelPosition;return t?"side"===n?"":"edge"===n?Object(S.b)({flex:"0 0 ".concat(t)},""):Object(S.b)({width:t},""):En}),""),xn={name:"103r1kr",styles:"&::-webkit-input-placeholder{line-height:normal;}"},Cn=R("input",{target:"e1cr7zh12",label:"Input"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none !important;color:",J("black"),";display:block;margin:0;outline:none;padding-left:8px;padding-right:8px;width:100%;",(function(e){var t=e.isDragging,n=e.dragCursor,r="",o="";return t&&(r=Object(S.b)("cursor:",n,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}")),t&&n&&(o=Object(S.b)("&:active{cursor:",n,";}")),Object(S.b)(r," ",o,"")})," ",(function(e){return e.disabled?Object(S.b)({color:J("ui.textDisabled")},""):""})," ",(function(e){var t={default:"13px",small:"11px"}[e.size];return t?Object(S.b)("font-size:","16px",";@media ( min-width:600px ){font-size:",t,";}"):""})," ",(function(e){var t={default:{height:30,lineHeight:1,minHeight:30},small:{height:24,lineHeight:1,minHeight:24}},n=t[e.size]||t.default;return Object(S.b)(n,"")})," ",(function(){return xn}),"}"),Pn={name:"8uhtka",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},Dn=function(){return Pn},Mn=function(e){var t=e.labelPosition,n=4;return"edge"!==t&&"side"!==t||(n=0),Object(S.b)({paddingTop:0,paddingBottom:n},"")},Tn=R(sn,{target:"e1cr7zh13",label:"BaseLabel"})("&&&{box-sizing:border-box;color:currentColor;display:block;margin:0;max-width:100%;z-index:1;",Mn," ",Dn,"}"),In=function(e){return Object(c.createElement)(Tn,Object(o.a)({},e,{as:"label"}))},Rn=R(Dt,{target:"e1cr7zh14",label:"LabelWrapper"})({name:"120o8im",styles:"max-width:calc( 100% - 10px );"}),Nn=R("div",{target:"e1cr7zh15",label:"BackdropUI"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",(function(e){var t=e.disabled,n=e.isFocused,r=J(n?"ui.borderFocus":"ui.border"),o=null;return n&&(o="0 0 0 1px ".concat(J("ui.borderFocus")," inset")),t&&(r=J("ui.borderDisabled")),Object(S.b)({boxShadow:o,borderColor:r,borderStyle:"solid",borderWidth:1},"")})," ",hn({paddingLeft:2}),"}"),An=R("span",{target:"e1cr7zh16",label:"Prefix"})({name:"1pxuk39",styles:"box-sizing:border-box;display:block;"}),Ln=R("span",{target:"e1cr7zh17",label:"Suffix"})({name:"1pxuk39",styles:"box-sizing:border-box;display:block;"});var Fn=Object(c.memo)((function(e){var t=e.disabled,n=void 0!==t&&t,r=e.isFocused,o=void 0!==r&&r;return Object(c.createElement)(Nn,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:n,isFocused:o})}));function zn(e){var t=e.children,n=e.hideLabelFromVision,r=e.htmlFor,a=Object(i.a)(e,["children","hideLabelFromVision","htmlFor"]);return t?n?Object(c.createElement)(h.a,{as:"label",htmlFor:r},t):Object(c.createElement)(In,Object(o.a)({htmlFor:r},a),t):null}function Bn(e,t){var n=e.__unstableInputWidth,r=e.children,a=e.className,s=e.disabled,u=void 0!==s&&s,l=e.hideLabelFromVision,d=void 0!==l&&l,p=e.labelPosition,b=e.id,h=e.isFocused,v=void 0!==h&&h,m=e.label,y=e.prefix,g=e.size,O=void 0===g?"default":g,j=e.suffix,w=Object(i.a)(e,["__unstableInputWidth","children","className","disabled","hideLabelFromVision","labelPosition","id","isFocused","label","prefix","size","suffix"]),_=function(e){var t=Object(f.useInstanceId)(Bn),n="input-base-control-".concat(t);return e||n}(b);return Object(c.createElement)(kn,Object(o.a)({},w,{className:a,isFocused:v,labelPosition:p,ref:t}),Object(c.createElement)(Rn,null,Object(c.createElement)(zn,{className:"components-input-control__label",hideLabelFromVision:d,labelPosition:p,htmlFor:_,size:O},m)),Object(c.createElement)(Sn,{__unstableInputWidth:n,className:"components-input-control__container",disabled:u,isFocused:v,labelPosition:p},y&&Object(c.createElement)(An,{className:"components-input-control__prefix"},y),r,j&&Object(c.createElement)(Ln,{className:"components-input-control__suffix"},j),Object(c.createElement)(Fn,{"aria-hidden":"true",disabled:u,isFocused:v,label:m,size:O})))}var Hn=Object(c.forwardRef)(Bn);function Vn(e,t){return e.map((function(e,n){return e+t[n]}))}function Kn(e,t){return e.map((function(e,n){return e-t[n]}))}function Wn(e){return Math.hypot.apply(Math,e)}function Un(e,t,n){var r=Wn(t),o=0===r?0:1/r,a=0===n?0:1/n,i=a*r,c=t.map((function(e){return a*e})),s=t.map((function(e){return o*e}));return{velocities:c,velocity:i,distance:Wn(e),direction:s}}function Gn(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function $n(e,t,n){return 0===t||Math.abs(t)===1/0?function(e,t){return Math.pow(e,5*t)}(e,n):e*t*n/(t+n*e)}function qn(e,t,n,r){return void 0===r&&(r=.15),0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):en?+$n(e-n,n-t,r)+n:e}function Yn(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}function Qn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function er(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function nr(){}function rr(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r2?o-2:0),i=2;i0||o>0,i=Xn({},n.controller.state.shared,n.state,n.mapStateValues(n.state),{locked:!!document.pointerLockElement,touches:o,down:a}),c=n.handler(i);return n.state.memo=void 0!==c?c:n.state.memo,i},this.controller=e,this.args=t}var t,n,r,o=e.prototype;return o.updateSharedState=function(e){Object.assign(this.controller.state.shared,e)},o.updateGestureState=function(e){Object.assign(this.state,e)},o.checkIntentionality=function(e,t){return{_intentional:e,_blocked:!1}},o.getMovement=function(e){var t=this.config,n=t.rubberband,r=t.threshold,o=this.state,a=o._bounds,i=o._initial,c=o._active,s=o._intentional,u=o.lastOffset,l=o.movement,d=this.getInternalMovement(e,this.state),f=this.transform(r).map(Math.abs),p=!1===s[0]?xr(d[0],f[0]):s[0],b=!1===s[1]?xr(d[1],f[1]):s[1],h=this.checkIntentionality([p,b],d);if(h._blocked)return Xn({},h,{_movement:d,delta:[0,0]});var v=h._intentional,m=d,y=[!1!==v[0]?d[0]-v[0]:0,!1!==v[1]?d[1]-v[1]:0],g=Vn(y,u),O=c?n:[0,0];return y=Cr(a,Vn(y,i),O),Xn({},h,{intentional:!1!==v[0]||!1!==v[1],_initial:i,_movement:m,movement:y,values:e,offset:Cr(a,g,O),delta:Kn(y,l)})},o.clean=function(){this.clearTimeout()},t=e,(n=[{key:"config",get:function(){return this.controller.config[this.stateKey]}},{key:"enabled",get:function(){return this.controller.config.enabled&&this.config.enabled}},{key:"state",get:function(){return this.controller.state[this.stateKey]}},{key:"handler",get:function(){return this.controller.handlers[this.stateKey]}},{key:"transform",get:function(){return this.config.transform||this.controller.config.transform||Er}}])&&Yn(t.prototype,n),r&&Yn(t,r),e}();function xr(e,t){return Math.abs(e)>=t&&Gn(e)*t}function Cr(e,t,n){var r=t[0],o=t[1],a=n[0],i=n[1],c=e[0],s=c[0],u=c[1],l=e[1],d=l[0],f=l[1];return[qn(r,s,u,a),qn(o,d,f,i)]}function Pr(e,t,n){var r=e.state,o=t.timeStamp,a=t.type,i=r.values;return{_lastEventType:a,event:t,timeStamp:o,elapsedTime:n?0:o-r.startTime,previous:i}}function Dr(e,t,n){var r=e.state,o=e.config,a=e.stateKey,i=e.args,c=r.offset,s=n.timeStamp,u=o.initial,l=o.bounds,d=Xn({},_r()[a],{_active:!0,args:i,values:t,initial:t,offset:c,lastOffset:c,startTime:s});return Xn({},d,{_initial:ar(u,d),_bounds:ar(l,d)})}var Mr=function(e){var t=this;this.classes=e,this.pointerIds=new Set,this.touchIds=new Set,this.supportsTouchEvents=cr(),this.supportsGestureEvents=function(){try{return"constructor"in GestureEvent}catch(e){return!1}}(),this.bind=function(){for(var e=arguments.length,n=new Array(e),r=0;ro?"x":r0?t.setUpDelayedDragTrigger(e):t.startDrag(e,!0))},t.onDragChange=function(e){if(!t.state.canceled&&t.state._active&&t.isValidEvent(e)&&(t.state._lastEventType!==e.type||e.timeStamp!==t.state.timeStamp)){var n;if(document.pointerLockElement){var r=e.movementX,o=e.movementY;n=Vn(t.transform([r,o]),t.state.values)}else n=fr(e,t.transform);var a=t.getKinematics(n,e);if(!t.state._dragStarted){if(t.state._dragDelayed)return void t.startDrag(e);if(!t.shouldPreventWindowScrollY)return;if(t.state._dragPreventScroll||!a.axis)return;if("x"!==a.axis)return void(t.state._active=!1);t.startDrag(e)}var i=lr(e);t.updateSharedState(i);var c=Pr(Qn(t),e),s=Wn(a._movement),u=t.state._dragIsTap;u&&s>=3&&(u=!1),t.updateGestureState(Xn({},c,a,{_dragIsTap:u})),t.fireGestureHandler()}},t.onDragEnd=function(e){if(Ir(t.controller,e),t.isValidEvent(e)&&(t.clean(),t.state._active)){t.state._active=!1;var n=t.state._dragIsTap,r=t.state.velocities,o=r[0],a=r[1],i=t.state.movement,c=i[0],s=i[1],u=t.state._intentional,l=u[0],d=u[1],f=t.config.swipeVelocity,p=f[0],b=f[1],h=t.config.swipeDistance,v=h[0],m=h[1],y=t.config.swipeDuration,g=Xn({},Pr(Qn(t),e),t.getMovement(t.state.values)),O=[0,0];g.elapsedTimep&&Math.abs(c)>v&&(O[0]=Gn(o)),!1!==d&&Math.abs(a)>b&&Math.abs(s)>m&&(O[1]=Gn(a))),t.updateSharedState({buttons:0}),t.updateGestureState(Xn({},g,{tap:n,swipe:O})),t.fireGestureHandler(t.config.filterTaps&&!0===n)}},t.clean=function(){e.prototype.clean.call(Qn(t)),t.state._dragStarted=!1,t.releasePointerCapture(),Rr(t.controller,t.stateKey)},t.onCancel=function(){t.state.canceled||(t.updateGestureState({canceled:!0,_active:!1}),t.updateSharedState({buttons:0}),setTimeout((function(){return t.fireGestureHandler()}),0))},t.onClick=function(e){t.state._dragIsTap||e.stopPropagation()},t}Zn(t,e);var n=t.prototype;return n.startDrag=function(e,t){void 0===t&&(t=!1),this.state._active&&!this.state._dragStarted&&(t||this.setStartState(e),this.updateGestureState({_dragStarted:!0,_dragPreventScroll:!0,cancel:this.onCancel}),this.clearTimeout(),this.fireGestureHandler())},n.addBindings=function(e){(this.config.useTouch?(Br(e,"onTouchStart",this.onDragStart),Br(e,"onTouchMove",this.onDragChange),Br(e,"onTouchEnd",this.onDragEnd),Br(e,"onTouchCancel",this.onDragEnd)):(Br(e,"onPointerDown",this.onDragStart),Br(e,"onPointerMove",this.onDragChange),Br(e,"onPointerUp",this.onDragEnd),Br(e,"onPointerCancel",this.onDragEnd)),this.config.filterTaps)&&Br(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(Ur);function qr(e,t){var n,r,o=[],a=!1;return function(){for(var i=arguments.length,c=new Array(i),s=0;s0&&void 0!==arguments[0]?arguments[0]:to,t=e.value;return Qr(Qr(Qr({},to),e),{},{initialValue:t})}var ao=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;return null!==(e=t.find(co))&&void 0!==e?e:n}var lo=function(e,t){var n=Object(c.useRef)(!1);Object(c.useEffect)((function(){if(n.current)return e();n.current=!0}),t)};var fo=Object(c.forwardRef)((function(e,t){var n=e.disabled,r=void 0!==n&&n,u=e.dragDirection,l=void 0===u?"n":u,d=e.dragThreshold,f=void 0===d?10:d,p=e.id,b=e.isDragEnabled,h=void 0!==b&&b,v=e.isFocused,m=e.isPressEnterToChange,y=void 0!==m&&m,g=e.onBlur,O=void 0===g?s.noop:g,j=e.onChange,w=void 0===j?s.noop:j,k=e.onDrag,E=void 0===k?s.noop:k,S=e.onDragEnd,x=void 0===S?s.noop:S,C=e.onDragStart,P=void 0===C?s.noop:C,D=e.onFocus,M=void 0===D?s.noop:D,T=e.onKeyDown,I=void 0===T?s.noop:T,R=e.onValidate,N=void 0===R?s.noop:R,A=e.size,L=void 0===A?"default":A,F=e.setIsFocused,z=e.stateReducer,B=void 0===z?function(e){return e}:z,H=e.value,V=e.type,K=Object(i.a)(e,["disabled","dragDirection","dragThreshold","id","isDragEnabled","isFocused","isPressEnterToChange","onBlur","onChange","onDrag","onDragEnd","onDragStart","onFocus","onKeyDown","onValidate","size","setIsFocused","stateReducer","value","type"]),W=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eo,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:to,n=Object(c.useReducer)(io(e),oo(t)),r=Object(a.a)(n,2),o=r[0],i=r[1],s=function(e){return function(t,n){n&&n.persist&&n.persist(),i({type:e,payload:{value:t,event:n}})}},u=function(e){return function(t){t&&t.persist&&t.persist(),i({type:e,payload:{event:t}})}},l=function(e){return function(t){i({type:e,payload:t})}},d=s(no.CHANGE),f=s(no.INVALIDATE),p=s(no.RESET),b=s(no.COMMIT),h=s(no.UPDATE),v=l(no.DRAG_START),m=l(no.DRAG),y=l(no.DRAG_END),g=u(no.PRESS_UP),O=u(no.PRESS_DOWN),j=u(no.PRESS_ENTER);return{change:d,commit:b,dispatch:i,drag:m,dragEnd:y,dragStart:v,invalidate:f,pressDown:O,pressEnter:j,pressUp:g,reset:p,state:o,update:h}}(B,{isDragEnabled:h,value:H,isPressEnterToChange:y}),U=W.state,G=W.change,$=W.commit,q=W.drag,Y=W.dragEnd,X=W.dragStart,Z=W.invalidate,J=W.pressDown,Q=W.pressEnter,ee=W.pressUp,te=W.reset,ne=W.update,re=U._event,oe=U.value,ae=U.isDragging,ie=U.isDirty,ce=Object(c.useRef)(!1),se=function(e,t){var n=function(e){var t="ns-resize";switch(e){case"n":case"s":t="ns-resize";break;case"e":case"w":t="ew-resize"}return t}(t);return Object(c.useEffect)((function(){document.documentElement.style.cursor=e?n:null}),[e]),n}(ae,l);lo((function(){H!==oe&&(v||ce.current?ie||(w(oe,{event:re}),ce.current=!1):ne(H))}),[oe,ie,v,H]);var ue=function(e){var t=e.target.value;try{N(t,e),$(t,e)}catch(t){Z(t,e)}},le=function(e,t){void 0===t&&(t={}),kr.set("drag",$r);var n=Object(_.useRef)();return n.current||(n.current=qr(jr,Yr)),Kr({drag:e},n.current(t))}((function(e){var t=e.distance,n=e.dragging,r=e.event;if(t){if(r.stopPropagation(),!n)return x(e),void Y(e);E(e),q(e),ae||(P(e),X(e))}}),{threshold:f,enabled:h}),de=h?le():{};return Object(c.createElement)(Cn,Object(o.a)({},K,de,{className:"components-input-control__input",disabled:r,dragCursor:se,isDragging:ae,id:p,onBlur:function(e){O(e),F(!1),y&&ie&&(ce.current=!0,so(oe)?te(H):ue(e))},onChange:function(e){var t=e.target.value;G(t,e)},onFocus:function(e){M(e),F(!0)},onKeyDown:function(e){var t=e.keyCode;switch(I(e),t){case Zr.UP:ee(e);break;case Zr.DOWN:J(e);break;case Zr.ENTER:Q(e),y&&(e.preventDefault(),ue(e))}},ref:t,size:L,value:oe,type:V}))}));function po(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,u=e.__unstableInputWidth,d=e.className,p=e.disabled,b=void 0!==p&&p,h=e.hideLabelFromVision,v=void 0!==h&&h,m=e.id,y=e.isPressEnterToChange,g=void 0!==y&&y,O=e.label,j=e.labelPosition,w=void 0===j?"top":j,_=e.onChange,k=void 0===_?s.noop:_,E=e.onValidate,S=void 0===E?s.noop:E,x=e.onKeyDown,C=void 0===x?s.noop:x,P=e.prefix,D=e.size,M=void 0===D?"default":D,T=e.suffix,I=e.value,R=Object(i.a)(e,["__unstableStateReducer","__unstableInputWidth","className","disabled","hideLabelFromVision","id","isPressEnterToChange","label","labelPosition","onChange","onValidate","onKeyDown","prefix","size","suffix","value"]),N=Object(c.useState)(!1),A=Object(a.a)(N,2),L=A[0],F=A[1],z=function(e){var t=Object(f.useInstanceId)(po),n="inspector-input-control-".concat(t);return e||n}(m),B=l()("components-input-control",d);return Object(c.createElement)(Hn,{__unstableInputWidth:u,className:B,disabled:b,gap:3,hideLabelFromVision:v,id:z,isFocused:L,justify:"left",label:O,labelPosition:w,prefix:P,size:M,suffix:T},Object(c.createElement)(fo,Object(o.a)({},R,{className:"components-input-control__input",disabled:b,id:z,isFocused:L,isPressEnterToChange:g,onChange:k,onKeyDown:C,onValidate:S,ref:t,setIsFocused:F,size:M,stateReducer:r,value:I})))}var bo=Object(c.forwardRef)(po);var ho={name:"1b9wwt5",styles:"&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}"},vo=function(e){return e.hideHTMLArrows?ho:""},mo=R(bo,{target:"ep48uk90",label:"Input"})(vo,";");function yo(e){var t=Number(e);return isNaN(t)?0:t}function go(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=yo(e),a=yo(r),i=Oo(r),c=Math.round(o/a)*a,u=Object(s.clamp)(c,t,n);return i?yo(u.toFixed(i)):u}var wo=function(e){var t=e.isShiftStepEnabled,n=void 0===t||t,r=e.shiftStep,o=void 0===r?10:r,i=e.step,s=void 0===i?1:i,u=Object(c.useState)(!1),l=Object(a.a)(u,2),d=l[0],f=l[1];return Object(c.useEffect)((function(){var e=function(e){f(e.shiftKey)};return window.addEventListener("keydown",e),window.addEventListener("keyup",e),function(){window.removeEventListener("keydown",e),window.removeEventListener("keyup",e)}}),[]),n&&d?o*s:s};var _o=Object(c.forwardRef)((function(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,s=e.className,u=e.dragDirection,f=void 0===u?"n":u,p=e.hideHTMLArrows,b=void 0!==p&&p,h=e.isDragEnabled,v=void 0===h||h,m=e.isShiftStepEnabled,y=void 0===m||m,g=e.label,O=e.max,j=void 0===O?1/0:O,w=e.min,_=void 0===w?-1/0:w,k=e.shiftStep,E=void 0===k?10:k,S=e.step,x=void 0===S?1:S,C=e.type,P=void 0===C?"number":C,D=e.value,M=Object(i.a)(e,["__unstableStateReducer","className","dragDirection","hideHTMLArrows","isDragEnabled","isShiftStepEnabled","label","max","min","shiftStep","step","type","value"]),T=jo(0,_,j,x),I=wo({step:x,shiftStep:E,isShiftStepEnabled:y}),R="number"===P?"off":null,N=l()("components-number-control",s);return Object(c.createElement)(mo,Object(o.a)({autoComplete:R,inputMode:"numeric"},M,{className:N,dragDirection:f,hideHTMLArrows:b,isDragEnabled:v,label:g,max:j,min:_,ref:t,step:I,type:P,value:D,__unstableStateReducer:ao((function(e,t){var n=t.type,r=t.payload,o=null==r?void 0:r.event,i=e.value;if(n===ro.PRESS_UP||n===ro.PRESS_DOWN){var c=o.shiftKey&&y?parseFloat(E)*parseFloat(x):parseFloat(x),s=so(i)?T:i;null!=o&&o.preventDefault&&o.preventDefault(),n===ro.PRESS_UP&&(s=go(s,c)),n===ro.PRESS_DOWN&&(s=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=[],o=0;o0?null:Object(c.createElement)(Io.a,{focusOnMount:!1,onClose:p,position:"top right",className:"components-autocomplete__popover",anchorRef:y},Object(c.createElement)("div",{id:o,role:"listbox",className:"components-autocomplete__results"},Object(s.map)(m,(function(e,t){return Object(c.createElement)(To.a,{key:e.key,id:"components-autocomplete-item-".concat(r,"-").concat(e.key),role:"option","aria-selected":t===u,disabled:e.isDisabled,className:l()("components-autocomplete__result",i,{"is-selected":t===u}),onClick:function(){return f(e)}},e.label)}))))}};var Lo=No((function e(t){var n,r=t.children,o=t.isSelected,i=t.record,u=t.onChange,l=t.onReplace,p=t.completers,b=t.debouncedSpeak,h=t.contentRef,v=Object(f.useInstanceId)(e),m=Object(c.useState)(0),y=Object(a.a)(m,2),g=y[0],O=y[1],j=Object(c.useState)([]),w=Object(a.a)(j,2),_=w[0],k=w[1],E=Object(c.useState)(""),S=Object(a.a)(E,2),x=S[0],C=S[1],P=Object(c.useState)(null),D=Object(a.a)(P,2),M=D[0],T=D[1],I=Object(c.useState)(null),R=Object(a.a)(I,2),N=R[0],A=R[1];function L(e){var t=(M||{}).getOptionCompletion;if(!e.isDisabled){if(t){var n=t(e.value,x),r=void 0===n.action||void 0===n.value?{action:"insert-at-caret",value:n}:n,o=r.action,a=r.value;"replace"===o?l([a]):"insert-at-caret"===o&&(s=a,d=i.start,f=d-M.triggerPrefix.length-x.length,p=Object(Mo.create)({html:Object(c.renderToString)(s)}),u(Object(Mo.insert)(i,p,f,d)))}var s,d,f,p;F()}}function F(){O(0),k([]),C(""),T(null),A(null)}Object(Mo.isCollapsed)(i)&&(n=Object(Mo.getTextContent)(Object(Mo.slice)(i,0))),Object(c.useEffect)((function(){if(n){var e=Object(s.deburr)(n),t=Object(Mo.getTextContent)(Object(Mo.slice)(i,void 0,Object(Mo.getTextContent)(i).length)),r=Object(s.find)(p,(function(n){var r=n.triggerPrefix,o=n.allowContext,a=e.lastIndexOf(r);return-1!==a&&(!(o&&!o(e.slice(0,a),t))&&/^\S*$/.test(e.slice(a+r.length)))}));if(r){var o=Object(s.escapeRegExp)(r.triggerPrefix),a=e.match(new RegExp("".concat(o,"(\\S*)$"))),c=a&&a[1];T(r),A((function(){return r!==M?Ao(r):N})),C(c)}else F()}}),[n]);var z=(_[g]||{}).key,B=void 0===z?"":z,H=(M||{}).className,V=!!M&&_.length>0,K=V?"components-autocomplete-listbox-".concat(v):null,W=V?"components-autocomplete-item-".concat(v,"-").concat(B):null;return Object(c.createElement)(c.Fragment,null,r({isExpanded:V,listBoxId:K,activeId:W,onKeyDown:function(e){if(M&&0!==_.length){switch(e.keyCode){case Zr.UP:O((0===g?_.length:g)-1);break;case Zr.DOWN:O((g+1)%_.length);break;case Zr.ESCAPE:T(null),A(null);break;case Zr.ENTER:L(_[g]);break;case Zr.LEFT:case Zr.RIGHT:return void F();default:return}e.preventDefault(),e.stopPropagation()}}}),o&&N&&Object(c.createElement)(N,{className:H,filterValue:x,instanceId:v,listBoxId:K,selectedIndex:g,onChangeOptions:function(e){O(e.length===_.length?g:0),k(e),function(e){b&&(e.length?b(Object(d.sprintf)(Object(d._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length),e.length),"assertive"):b(Object(d.__)("No results."),"assertive"))}(e)},onSelect:L,value:i,contentRef:h}))}));var Fo=R("div",{target:"e1agakv00",label:"Root"})({name:"1bt0omd",styles:"box-sizing:border-box;position:relative;"}),zo=function(e){var t=e.disableUnits?3:24;return Object(S.b)(hn({paddingRight:t})(),";")},Bo={name:"1y65o8",styles:"&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}"},Ho=function(e){return e.disableUnits?"":Bo},Vo=R(_o,{target:"e1agakv01",label:"ValueInput"})("&&&{input{appearance:none;-moz-appearance:textfield;display:block;width:100%;",Ho,";",zo,";}}"),Ko=function(e){return Object(S.b)("appearance:none;background:transparent;border-radius:2px;border:none;box-sizing:border-box;color:",J("darkGray.500"),";display:block;font-size:8px;line-height:1;letter-spacing:-0.5px;outline:none;padding:2px 1px;position:absolute;text-align-last:center;text-transform:uppercase;width:20px;",hn({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," ",hn({right:0})()," ",(t=e.size,Object(S.b)({default:{height:28,lineHeight:"24px",minHeight:28,top:1},small:{height:22,lineHeight:"18px",minHeight:22,top:1}}[t],"")),"");var t},Wo=R("div",{target:"e1agakv02",label:"UnitLabel"})("&&&{pointer-events:none;",Ko,";}"),Uo=R("select",{target:"e1agakv03",label:"UnitSelect"})("&&&{",Ko,";cursor:pointer;border:1px solid transparent;&:hover{background-color:",J("lightGray.300"),";}&:focus{border-color:",J("ui.borderFocus"),";outline:2px solid transparent;outline-offset:0;}&:disabled{cursor:initial;&:hover{background-color:transparent;}}}"),Go=[{value:"px",label:"px",default:0},{value:"%",label:"%",default:10},{value:"em",label:"em",default:0},{value:"rem",label:"rem",default:0},{value:"vw",label:"vw",default:10},{value:"vh",label:"vh",default:10}],$o=Go[0];function qo(e){return!Object(s.isEmpty)(e)&&e.length>1&&!1!==e}function Yo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Go,n=String(e).trim(),r=parseFloat(n,10);r=isNaN(r)?"":r;var o=n.match(/[\d.\-\+]*\s*(.*)/)[1],a=void 0!==o?o:"";if(a=a.toLowerCase(),qo(t)){var i=t.find((function(e){return e.value===a}));a=null==i?void 0:i.value}else a=$o.value;return[r,a]}function Xo(e,t,n,r){var o,i,c=Yo(e,t),s=Object(a.a)(c,2),u=s[0],l=s[1],d=u;((isNaN(u)||""===u)&&(d=n),o=l||r,qo(t)&&!o)&&(o=null===(i=t[0])||void 0===i?void 0:i.value);return[d,o]}function Zo(e){var t=e.className,n=e.isTabbable,r=void 0===n||n,a=e.options,u=void 0===a?Go:a,d=e.onChange,f=void 0===d?s.noop:d,p=e.size,b=void 0===p?"default":p,h=e.value,v=void 0===h?"px":h,m=Object(i.a)(e,["className","isTabbable","options","onChange","size","value"]);if(!qo(u))return Object(c.createElement)(Wo,{className:"components-unit-control__unit-label",size:b},v);var y=l()("components-unit-control__select",t);return Object(c.createElement)(Uo,Object(o.a)({className:y,onChange:function(e){var t=e.target.value,n=u.find((function(e){return e.value===t}));f(t,{event:e,data:n})},size:b,tabIndex:r?null:"-1",value:v},m),u.map((function(e){return Object(c.createElement)("option",{value:e.value,key:e.value},e.label)})))}function Jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qo(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:ea,n=Qo(Qo({},ea),t),r=n.initial,o=n.fallback,i=Object(c.useState)(e),s=Object(a.a)(i,2),u=s[0],l=s[1],d=co(e);Object(c.useEffect)((function(){d&&u&&l(void 0)}),[d,u]);var f=uo([e,u,r],o),p=function(e){d||l(e)};return[f,p]};var na=Object(c.forwardRef)((function(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,u=e.autoComplete,f=void 0===u?"off":u,p=e.className,b=e.disabled,h=void 0!==b&&b,v=e.disableUnits,m=void 0!==v&&v,y=e.isPressEnterToChange,g=void 0!==y&&y,O=e.isResetValueOnUnitChange,j=void 0!==O&&O,w=e.isUnitSelectTabbable,_=void 0===w||w,k=e.label,E=e.onChange,S=void 0===E?s.noop:E,x=e.onUnitChange,C=void 0===x?s.noop:x,P=e.size,D=void 0===P?"default":P,M=e.style,T=e.unit,I=e.units,R=void 0===I?Go:I,N=e.value,A=Object(i.a)(e,["__unstableStateReducer","autoComplete","className","disabled","disableUnits","isPressEnterToChange","isResetValueOnUnitChange","isUnitSelectTabbable","label","onChange","onUnitChange","size","style","unit","units","value"]),L=function(e,t,n){return Yo(t?"".concat(e).concat(t):e,n)}(N,T,R),F=Object(a.a)(L,2),z=F[0],B=F[1],H=ta(T,{initial:B}),V=Object(a.a)(H,2),K=V[0],W=V[1],U=Object(c.useRef)(null),G=l()("components-unit-control",p),$=function(e){if(isNaN(e.target.value)){var t=Xo(e.target.value,R,z,K),n=Object(a.a)(t,2),r=n[0],o=n[1];if(U.current=r,g&&o!==K){var i={event:e,data:R.find((function(e){return e.value===o}))};S("".concat(r).concat(o),i),C(o,i),W(o)}}else U.current=null},q=$,Y=m?null:Object(c.createElement)(Zo,{"aria-label":Object(d.__)("Select unit"),disabled:h,isTabbable:_,options:R,onChange:function(e,t){var n=t.data,r="".concat(z).concat(e);j&&void 0!==(null==n?void 0:n.default)&&(r="".concat(n.default).concat(e)),S(r,t),C(e,t),W(e)},size:D,value:K});return Object(c.createElement)(Fo,{className:"components-unit-control-wrapper",style:M},Object(c.createElement)(Vo,Object(o.a)({"aria-label":k,type:g?"text":"number"},Object(s.omit)(A,["children"]),{autoComplete:f,className:G,disabled:h,disableUnits:m,isPressEnterToChange:g,label:k,onBlur:q,onKeyDown:function(e){e.keyCode===Zr.ENTER&&$(e)},onChange:function(e,t){""!==e?(e=Xo(e,R,z,K).join(""),S(e,t)):S("",t)},ref:t,size:D,suffix:Y,value:z,__unstableStateReducer:ao((function(e,t){return t.type===ro.COMMIT&&null!==U.current&&(e.value=U.current,U.current=null),e}),r)})))}));var ra=R("div",{target:"e7pk0lh0",label:"Root"})({name:"vho1ao",styles:"box-sizing:border-box;max-width:235px;padding-bottom:12px;width:100%;"}),oa=R(Mt,{target:"e7pk0lh1",label:"Header"})("color:",J("ui.label"),";padding-bottom:8px;"),aa=R(Mt,{target:"e7pk0lh2",label:"HeaderControlWrapper"})({name:"19de7qh",styles:"min-height:30px;"}),ia=R("div",{target:"e7pk0lh3",label:"UnitControlWrapper"})({name:"zypm0w",styles:"box-sizing:border-box;max-width:80px;"}),ca=R(Mt,{target:"e7pk0lh4",label:"LayoutContainer"})({name:"39f89t",styles:"justify-content:center;padding-top:8px;"}),sa=R(Mt,{target:"e7pk0lh5",label:"Layout"})({name:"ojqyia",styles:"position:relative;height:100%;width:100%;"}),ua={name:"icip60",styles:"border-radius:2px;"},la={name:"1k07npk",styles:"border-radius:0;"},da=function(e){var t=e.isFirst,n=e.isLast,r=e.isOnly;return t?hn({borderTopRightRadius:0,borderBottomRightRadius:0})():n?hn({borderTopLeftRadius:0,borderBottomLeftRadius:0})():r?ua:la},fa=function(e){return hn({marginLeft:e.isFirst?0:-1})()},pa=R(na,{target:"e7pk0lh6",label:"UnitControl"})("max-width:60px;",da,";",fa,";");function ba(e){var t=e.isFirst,n=e.isLast,r=e.isOnly,a=e.onHoverOn,u=void 0===a?s.noop:a,l=e.onHoverOff,d=void 0===l?s.noop:l,f=e.label,p=e.value,b=Object(i.a)(e,["isFirst","isLast","isOnly","onHoverOn","onHoverOff","label","value"]),h=function(e,t){void 0===t&&(t={}),kr.set("hover",Xr);var n=Object(_.useRef)();return n.current||(n.current=qr(Or,Yr)),Kr({hover:e},n.current(t))}((function(e){var t=e.event,n=Object(i.a)(e,["event"]);n.hovering?u(t,n):d(t,n)}));return Object(c.createElement)(ia,h(),Object(c.createElement)(ha,{text:f},Object(c.createElement)(pa,Object(o.a)({"aria-label":f,className:"component-box-control__unit-control",hideHTMLArrows:!0,isFirst:t,isLast:n,isOnly:r,isPressEnterToChange:!0,isResetValueOnUnitChange:!1,value:p},b))))}function ha(e){var t=e.children,n=e.text;return n?Object(c.createElement)(b.a,{text:n,position:"top"},Object(c.createElement)("div",null,t)):t}var va={all:Object(d.__)("All"),top:Object(d.__)("Top"),bottom:Object(d.__)("Bottom"),left:Object(d.__)("Left"),right:Object(d.__)("Right"),mixed:Object(d.__)("Mixed")},ma={top:null,right:null,bottom:null,left:null},ya={top:!1,right:!1,bottom:!1,left:!1};function ga(e){return e.sort((function(t,n){return e.filter((function(e){return e===t})).length-e.filter((function(e){return e===n})).length})).pop()}function Oa(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.values(e).map((function(e){return Yo(e)})),n=t.map((function(e){return e[0]})),r=t.map((function(e){return e[1]})),o=n.every((function(e){return e===n[0]}))?n[0]:"",a=ga(r),i=Object(s.isNumber)(o)?"".concat(o).concat(a):null;return i}function ja(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Oa(e),n=isNaN(parseFloat(t));return n}function wa(e){return void 0!==e&&!Object(s.isEmpty)(Object.values(e).filter(Boolean))}function _a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ka(e){var t=e.onChange,n=void 0===t?s.noop:t,r=e.onFocus,a=void 0===r?s.noop:r,u=e.onHoverOn,l=void 0===u?s.noop:u,d=e.onHoverOff,f=void 0===d?s.noop:d,p=e.values,b=Object(i.a)(e,["onChange","onFocus","onHoverOn","onHoverOff","values"]),h=Oa(p),v=wa(p)&&ja(p),m=v?va.mixed:null;return Object(c.createElement)(ba,Object(o.a)({},b,{disableUnits:v,isOnly:!0,value:h,onChange:function(e){var t=function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};p(ti(ti({},ya),e))},onHoverOff:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p(ti(ti({},ya),e))},isLinked:D,units:m,values:w});return Object(c.createElement)(ra,{id:A,role:"region","aria-labelledby":L},Object(c.createElement)(oa,{className:"component-box-control__header"},Object(c.createElement)(Dt,null,Object(c.createElement)(sn,{id:L,className:"component-box-control__label"},h)),Object(c.createElement)(Dt,null,Object(c.createElement)(To.a,{className:"component-box-control__reset-button",isSecondary:!0,isSmall:!0,onClick:function(){var e=ma;u(e),j(e),x(!1)},disabled:!S},Object(d.__)("Reset")))),Object(c.createElement)(aa,{className:"component-box-control__header-control-wrapper"},Object(c.createElement)(Dt,null,Object(c.createElement)(Aa,{side:R})),D&&Object(c.createElement)(Pt,null,Object(c.createElement)(ka,Object(o.a)({"aria-label":h},F))),Object(c.createElement)(Dt,null,Object(c.createElement)(Ba,{onClick:function(){M(!D),N(D?"top":"all")},isLinked:D}))),!D&&Object(c.createElement)(Sa,F))}ri.__Visualizer=function(e){var t=e.children,n=e.showValues,r=void 0===n?ya:n,a=e.values,s=void 0===a?ma:a,u=Object(i.a)(e,["children","showValues","values"]),l=!t;return Object(c.createElement)(Va,Object(o.a)({},u,{isPositionAbsolute:l,"aria-hidden":"true"}),Object(c.createElement)(qa,{showValues:r,values:s}),t)};var oi=Object(c.forwardRef)((function(e,t){var n=e.className,r=Object(i.a)(e,["className"]),a=l()("components-button-group",n);return Object(c.createElement)("div",Object(o.a)({ref:t,role:"group",className:a},r))})),ai=Object(c.createContext)({}),ii=function(){return Object(c.useContext)(ai)},ci={borderColor:J("lightGray.500"),borderRadius:"3px",backgroundShady:J("lightGray.200")},si=ci.borderColor,ui=ci.borderRadius,li=ci.backgroundShady,di=R("div",{target:"e1q7k77g0",label:"CardUI"})("background:",J("white"),";box-sizing:border-box;border-radius:",ui,";border:1px solid ",si,";",yi,";&.is-elevated{box-shadow:0px 1px 3px 0px rgba( 0,0,0,0.2 ),0px 1px 1px 0px rgba( 0,0,0,0.14 ),0px 2px 1px -1px rgba( 0,0,0,0.12 );}"),fi=R(Tt,{target:"e1q7k77g1",label:"HeaderUI"})("border-bottom:1px solid ",si,";border-top-left-radius:",ui,";border-top-right-radius:",ui,";box-sizing:border-box;&:last-child{border-bottom:none;}",mi,";",yi,";",gi,";"),pi=R("div",{target:"e1q7k77g2",label:"MediaUI"})("box-sizing:border-box;overflow:hidden;& > img,& > iframe{display:block;height:auto;max-width:100%;width:100%;}&:first-of-type{border-top-left-radius:",ui,";border-top-right-radius:",ui,";}&:last-of-type{border-bottom-left-radius:",ui,";border-bottom-right-radius:",ui,";}"),bi=R("div",{target:"e1q7k77g3",label:"BodyUI"})("box-sizing:border-box;",(function(){return"\n\t\t&.is-size {\n\t\t\t&-large {\n\t\t\t\tpadding: ".concat(yt(3)," ").concat(yt(4),";\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: ").concat(yt(2)," ").concat(yt(3),";\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: ").concat(yt(2),";\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: ").concat(yt(1),";\n\t\t\t}\n\t\t}\n\t")}),";",gi,";"),hi=R(Tt,{target:"e1q7k77g4",label:"FooterUI"})("border-top:1px solid ",si,";border-bottom-left-radius:",ui,";border-bottom-right-radius:",ui,";box-sizing:border-box;&:first-of-type{border-top:none;}",mi,";",yi,";",gi,";"),vi=R(r.HorizontalRule,{target:"e1q7k77g5",label:"DividerUI"})("all:unset;border-top:1px solid ",si,";box-sizing:border-box;display:block;height:0;width:100%;");function mi(){return"\n\t\t&.is-size {\n\t\t\t&-large {\n\t\t\t\tpadding: ".concat(yt(3)," ").concat(yt(4),";\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: ").concat(yt(2)," ").concat(yt(3),";\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: ").concat(yt(2),";\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: ").concat(yt(1),";\n\t\t\t}\n\t\t}\n\t")}function yi(){return"\n\t\t&.is-borderless {\n\t\t\tborder: none;\n\t\t}\n\t"}function gi(){return"\n\t\t&.is-shady {\n\t\t\tbackground: ".concat(li,";\n\t\t}\n\t")}function Oi(e){var t=e.className,n=e.isBorderless,r=e.isElevated,a=e.size,s=Object(i.a)(e,["className","isBorderless","isElevated","size"]),u=ai.Provider,d={isBorderless:n,isElevated:r,size:a},f=l()("components-card",n&&"is-borderless",r&&"is-elevated",a&&"is-size-".concat(a),t);return Object(c.createElement)(u,{value:d},Object(c.createElement)(di,Object(o.a)({},s,{className:f})))}Oi.defaultProps={isBorderless:!1,isElevated:!1,size:"medium"};var ji=Oi;function wi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _i(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.hex?A()(e.hex):A()(e),r=n.toHsl();r.h=Math.round(r.h),r.s=Math.round(100*r.s),r.l=Math.round(100*r.l);var o=n.toHsv();o.h=Math.round(o.h),o.s=Math.round(100*o.s),o.v=Math.round(100*o.v);var a=n.toRgb(),i=n.toHex();0===r.s&&(r.h=t||0,o.h=t||0);var c="000000"===i&&0===a.a;return{color:n,hex:c?"transparent":"#".concat(i),hsl:r,hsv:o,oldHue:e.h||t||r.h,rgb:a,source:e.source}}function ec(e,t){e.preventDefault();var n=t.getBoundingClientRect(),r=n.left,o=n.top,a=n.width,i=n.height,c="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=c-(r+window.pageXOffset),l=s-(o+window.pageYOffset);return u<0?u=0:u>a?u=a:l<0?l=0:l>i&&(l=i),{top:l,left:u,width:a,height:i}}function tc(e){var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&A()(e).isValid()}function nc(e){var t=e.target,n=e.callback,r=e.shortcut,o=e.bindGlobal,a=e.eventName;return Object(f.useKeyboardShortcut)(r,n,{bindGlobal:o,target:t,eventName:a}),null}var rc=function(e){var t=e.children,n=e.shortcuts,r=e.bindGlobal,o=e.eventName,a=Object(c.useRef)(),i=Object(s.map)(n,(function(e,t){return Object(c.createElement)(nc,{key:t,shortcut:t,callback:e,bindGlobal:r,eventName:o,target:a})}));return c.Children.count(t)?Object(c.createElement)("div",{ref:a},i,t):i};function oc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ji.a)(e);if(t){var o=Object(Ji.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Zi.a)(this,n)}}var ac=function(e){Object(Xi.a)(n,e);var t=oc(n);function n(){var e;return Object($i.a)(this,n),(e=t.apply(this,arguments)).container=Object(c.createRef)(),e.increase=e.increase.bind(Object(Yi.a)(e)),e.decrease=e.decrease.bind(Object(Yi.a)(e)),e.handleChange=e.handleChange.bind(Object(Yi.a)(e)),e.handleMouseDown=e.handleMouseDown.bind(Object(Yi.a)(e)),e.handleMouseUp=e.handleMouseUp.bind(Object(Yi.a)(e)),e}return Object(qi.a)(n,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"increase",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?s.noop:r;e=parseInt(100*e,10);var a={h:n.h,s:n.s,l:n.l,a:(parseInt(100*n.a,10)+e)/100,source:"rgb"};o(a)}},{key:"decrease",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?s.noop:r,a=parseInt(100*n.a,10)-parseInt(100*e,10),i={h:n.h,s:n.s,l:n.l,a:n.a<=e?0:a/100,source:"rgb"};o(i)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?s.noop:t,r=function(e,t,n){var r=ec(e,n),o=r.left,a=r.width,i=o<0?0:Math.round(100*o/a)/100;return t.hsl.a!==i?{h:t.hsl.h,s:t.hsl.s,l:t.hsl.l,a:i,source:"rgb"}:null}(e,this.props,this.container.current);r&&n(r,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==Zr.TAB&&e.preventDefault()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.rgb,n="".concat(t.r,",").concat(t.g,",").concat(t.b),r={background:"linear-gradient(to right, rgba(".concat(n,", 0) 0%, rgba(").concat(n,", 1) 100%)")},o={left:"".concat(100*t.a,"%")},a={up:function(){return e.increase()},right:function(){return e.increase()},"shift+up":function(){return e.increase(.1)},"shift+right":function(){return e.increase(.1)},pageup:function(){return e.increase(.1)},end:function(){return e.increase(1)},down:function(){return e.decrease()},left:function(){return e.decrease()},"shift+down":function(){return e.decrease(.1)},"shift+left":function(){return e.decrease(.1)},pagedown:function(){return e.decrease(.1)},home:function(){return e.decrease(1)}};return Object(c.createElement)(rc,{shortcuts:a},Object(c.createElement)("div",{className:"components-color-picker__alpha"},Object(c.createElement)("div",{className:"components-color-picker__alpha-gradient",style:r}),Object(c.createElement)("div",{className:"components-color-picker__alpha-bar",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Object(c.createElement)("div",{tabIndex:"0",role:"slider","aria-valuemax":"1","aria-valuemin":"0","aria-valuenow":t.a,"aria-orientation":"horizontal","aria-label":Object(d.__)("Alpha value, from 0 (transparent) to 1 (fully opaque)."),className:"components-color-picker__alpha-pointer",style:o,onKeyDown:this.preventKeyEvents}))))}}]),n}(c.Component),ic=Object(f.pure)(ac);function cc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ji.a)(e);if(t){var o=Object(Ji.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Zi.a)(this,n)}}var sc=function(e){Object(Xi.a)(n,e);var t=cc(n);function n(){var e;return Object($i.a)(this,n),(e=t.apply(this,arguments)).container=Object(c.createRef)(),e.increase=e.increase.bind(Object(Yi.a)(e)),e.decrease=e.decrease.bind(Object(Yi.a)(e)),e.handleChange=e.handleChange.bind(Object(Yi.a)(e)),e.handleMouseDown=e.handleMouseDown.bind(Object(Yi.a)(e)),e.handleMouseUp=e.handleMouseUp.bind(Object(Yi.a)(e)),e}return Object(qi.a)(n,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"increase",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?s.noop:r,a={h:n.h+e>=359?359:n.h+e,s:n.s,l:n.l,a:n.a,source:"rgb"};o(a)}},{key:"decrease",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?s.noop:r,a={h:n.h<=e?0:n.h-e,s:n.s,l:n.l,a:n.a,source:"rgb"};o(a)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?s.noop:t,r=function(e,t,n){var r=ec(e,n),o=r.left,a=r.width,i=o>=a?359:360*(100*o/a)/100;return t.hsl.h!==i?{h:i,s:t.hsl.s,l:t.hsl.l,a:t.hsl.a,source:"rgb"}:null}(e,this.props,this.container.current);r&&n(r,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==Zr.TAB&&e.preventDefault()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props,n=t.hsl,r=void 0===n?{}:n,o=t.instanceId,a={left:"".concat(100*r.h/360,"%")},i={up:function(){return e.increase()},right:function(){return e.increase()},"shift+up":function(){return e.increase(10)},"shift+right":function(){return e.increase(10)},pageup:function(){return e.increase(10)},end:function(){return e.increase(359)},down:function(){return e.decrease()},left:function(){return e.decrease()},"shift+down":function(){return e.decrease(10)},"shift+left":function(){return e.decrease(10)},pagedown:function(){return e.decrease(10)},home:function(){return e.decrease(359)}};return Object(c.createElement)(rc,{shortcuts:i},Object(c.createElement)("div",{className:"components-color-picker__hue"},Object(c.createElement)("div",{className:"components-color-picker__hue-gradient"}),Object(c.createElement)("div",{className:"components-color-picker__hue-bar",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Object(c.createElement)("div",{tabIndex:"0",role:"slider","aria-valuemax":"1","aria-valuemin":"359","aria-valuenow":r.h,"aria-orientation":"horizontal","aria-label":Object(d.__)("Hue value in degrees, from 0 to 359."),"aria-describedby":"components-color-picker__hue-description-".concat(o),className:"components-color-picker__hue-pointer",style:a,onKeyDown:this.preventKeyEvents}),Object(c.createElement)(h.a,{as:"p",id:"components-color-picker__hue-description-".concat(o)},Object(d.__)("Move the arrow left or right to change hue.")))))}}]),n}(c.Component),uc=Object(f.compose)(f.pure,f.withInstanceId)(sc);var lc=Object(c.forwardRef)((function e(t,n){var r=t.label,a=t.hideLabelFromVision,s=t.value,u=t.help,l=t.className,d=t.onChange,p=t.type,b=void 0===p?"text":p,h=Object(i.a)(t,["label","hideLabelFromVision","value","help","className","onChange","type"]),v=Object(f.useInstanceId)(e),m="inspector-text-control-".concat(v);return Object(c.createElement)(kt,{label:r,hideLabelFromVision:a,id:m,help:u,className:l},Object(c.createElement)("input",Object(o.a)({className:"components-text-control__input",type:b,id:m,value:s,onChange:function(e){return d(e.target.value)},"aria-describedby":u?m+"__help":void 0,ref:n},h)))}));function dc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ji.a)(e);if(t){var o=Object(Ji.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Zi.a)(this,n)}}var fc=function(e){Object(Xi.a)(n,e);var t=dc(n);function n(){var e;return Object($i.a)(this,n),(e=t.apply(this,arguments)).handleBlur=e.handleBlur.bind(Object(Yi.a)(e)),e.handleChange=e.handleChange.bind(Object(Yi.a)(e)),e.handleKeyDown=e.handleKeyDown.bind(Object(Yi.a)(e)),e}return Object(qi.a)(n,[{key:"handleBlur",value:function(){var e=this.props,t=e.value,n=e.valueKey;(0,e.onChange)({source:e.source,state:"commit",value:t,valueKey:n})}},{key:"handleChange",value:function(e){var t=this.props,n=t.valueKey,r=t.onChange,o=t.source;e.length>4&&tc(e)?r({source:o,state:"commit",value:e,valueKey:n}):r({source:o,state:"draft",value:e,valueKey:n})}},{key:"handleKeyDown",value:function(e){var t=e.keyCode;if(t===Zr.ENTER||t===Zr.UP||t===Zr.DOWN){var n=this.props,r=n.value,o=n.valueKey;(0,n.onChange)({source:n.source,state:"commit",value:r,valueKey:o})}}},{key:"render",value:function(){var e=this,t=this.props,n=t.label,r=t.value,a=Object(i.a)(t,["label","value"]);return Object(c.createElement)(lc,Object(o.a)({className:"components-color-picker__inputs-field",label:n,value:r,onChange:function(t){return e.handleChange(t)},onBlur:this.handleBlur,onKeyDown:this.handleKeyDown},Object(s.omit)(a,["onChange","valueKey","source"])))}}]),n}(c.Component),pc=Object(f.pure)(To.a),bc=function(e){Object(Xi.a)(n,e);var t=dc(n);function n(e){var r,o=e.hsl;Object($i.a)(this,n),r=t.apply(this,arguments);var a=1===o.a?"hex":"rgb";return r.state={view:a},r.toggleViews=r.toggleViews.bind(Object(Yi.a)(r)),r.resetDraftValues=r.resetDraftValues.bind(Object(Yi.a)(r)),r.handleChange=r.handleChange.bind(Object(Yi.a)(r)),r.normalizeValue=r.normalizeValue.bind(Object(Yi.a)(r)),r}return Object(qi.a)(n,[{key:"toggleViews",value:function(){"hex"===this.state.view?(this.setState({view:"rgb"},this.resetDraftValues),Object(Ro.speak)(Object(d.__)("RGB mode active"))):"rgb"===this.state.view?(this.setState({view:"hsl"},this.resetDraftValues),Object(Ro.speak)(Object(d.__)("Hue/saturation/lightness mode active"))):"hsl"===this.state.view&&(1===this.props.hsl.a?(this.setState({view:"hex"},this.resetDraftValues),Object(Ro.speak)(Object(d.__)("Hex color mode active"))):(this.setState({view:"rgb"},this.resetDraftValues),Object(Ro.speak)(Object(d.__)("RGB mode active"))))}},{key:"resetDraftValues",value:function(){return this.props.onChange({state:"reset"})}},{key:"normalizeValue",value:function(e,t){return"a"!==e?t:t<0?0:t>1?1:Math.round(100*t)/100}},{key:"handleChange",value:function(e){var t=e.source,n=e.state,r=e.value,o=e.valueKey;this.props.onChange({source:t,state:n,valueKey:o,value:this.normalizeValue(o,r)})}},{key:"renderFields",value:function(){var e=this.props.disableAlpha,t=void 0!==e&&e;if("hex"===this.state.view)return Object(c.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(c.createElement)(fc,{source:this.state.view,label:Object(d.__)("Color value in hexadecimal"),valueKey:"hex",value:this.props.hex,onChange:this.handleChange}));if("rgb"===this.state.view){var n=t?Object(d.__)("Color value in RGB"):Object(d.__)("Color value in RGBA");return Object(c.createElement)("fieldset",null,Object(c.createElement)(h.a,{as:"legend"},n),Object(c.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(c.createElement)(fc,{source:this.state.view,label:"r",valueKey:"r",value:this.props.rgb.r,onChange:this.handleChange,type:"number",min:"0",max:"255"}),Object(c.createElement)(fc,{source:this.state.view,label:"g",valueKey:"g",value:this.props.rgb.g,onChange:this.handleChange,type:"number",min:"0",max:"255"}),Object(c.createElement)(fc,{source:this.state.view,label:"b",valueKey:"b",value:this.props.rgb.b,onChange:this.handleChange,type:"number",min:"0",max:"255"}),t?null:Object(c.createElement)(fc,{source:this.state.view,label:"a",valueKey:"a",value:this.props.rgb.a,onChange:this.handleChange,type:"number",min:"0",max:"1",step:"0.01"})))}if("hsl"===this.state.view){var r=t?Object(d.__)("Color value in HSL"):Object(d.__)("Color value in HSLA");return Object(c.createElement)("fieldset",null,Object(c.createElement)(h.a,{as:"legend"},r),Object(c.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(c.createElement)(fc,{source:this.state.view,label:"h",valueKey:"h",value:this.props.hsl.h,onChange:this.handleChange,type:"number",min:"0",max:"359"}),Object(c.createElement)(fc,{source:this.state.view,label:"s",valueKey:"s",value:this.props.hsl.s,onChange:this.handleChange,type:"number",min:"0",max:"100"}),Object(c.createElement)(fc,{source:this.state.view,label:"l",valueKey:"l",value:this.props.hsl.l,onChange:this.handleChange,type:"number",min:"0",max:"100"}),t?null:Object(c.createElement)(fc,{source:this.state.view,label:"a",valueKey:"a",value:this.props.hsl.a,onChange:this.handleChange,type:"number",min:"0",max:"1",step:"0.05"})))}}},{key:"render",value:function(){return Object(c.createElement)("div",{className:"components-color-picker__inputs-wrapper"},this.renderFields(),Object(c.createElement)("div",{className:"components-color-picker__inputs-toggle-wrapper"},Object(c.createElement)(pc,{className:"components-color-picker__inputs-toggle",icon:Ki.a,label:Object(d.__)("Change color format"),onClick:this.toggleViews})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),n}(c.Component);function hc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ji.a)(e);if(t){var o=Object(Ji.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Zi.a)(this,n)}}var vc=function(e){Object(Xi.a)(n,e);var t=hc(n);function n(e){var r;return Object($i.a)(this,n),(r=t.call(this,e)).throttle=Object(s.throttle)((function(e,t,n){e(t,n)}),50),r.container=Object(c.createRef)(),r.saturate=r.saturate.bind(Object(Yi.a)(r)),r.brighten=r.brighten.bind(Object(Yi.a)(r)),r.handleChange=r.handleChange.bind(Object(Yi.a)(r)),r.handleMouseDown=r.handleMouseDown.bind(Object(Yi.a)(r)),r.handleMouseUp=r.handleMouseUp.bind(Object(Yi.a)(r)),r}return Object(qi.a)(n,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"saturate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsv,r=t.onChange,o=void 0===r?s.noop:r,a=Object(s.clamp)(n.s+Math.round(100*e),0,100),i={h:n.h,s:a,v:n.v,a:n.a,source:"rgb"};o(i)}},{key:"brighten",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsv,r=t.onChange,o=void 0===r?s.noop:r,a=Object(s.clamp)(n.v+Math.round(100*e),0,100),i={h:n.h,s:n.s,v:a,a:n.a,source:"rgb"};o(i)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?s.noop:t,r=function(e,t,n){var r=ec(e,n),o=r.top,a=r.left,i=r.width,c=r.height,s=a<0?0:100*a/i,u=o>=c?0:-100*o/c+100;return u<1&&(u=0),{h:t.hsl.h,s:s,v:u,a:t.hsl.a,source:"rgb"}}(e,this.props,this.container.current);this.throttle(n,r,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==Zr.TAB&&e.preventDefault()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props,n=t.hsv,r=t.hsl,o=t.instanceId,a={top:"".concat(100-n.v,"%"),left:"".concat(n.s,"%")},i={up:function(){return e.brighten()},"shift+up":function(){return e.brighten(.1)},pageup:function(){return e.brighten(1)},down:function(){return e.brighten(-.01)},"shift+down":function(){return e.brighten(-.1)},pagedown:function(){return e.brighten(-1)},right:function(){return e.saturate()},"shift+right":function(){return e.saturate(.1)},end:function(){return e.saturate(1)},left:function(){return e.saturate(-.01)},"shift+left":function(){return e.saturate(-.1)},home:function(){return e.saturate(-1)}};return Object(c.createElement)(rc,{shortcuts:i},Object(c.createElement)("div",{style:{background:"hsl(".concat(r.h,",100%, 50%)")},className:"components-color-picker__saturation-color",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange,role:"application"},Object(c.createElement)("div",{className:"components-color-picker__saturation-white"}),Object(c.createElement)("div",{className:"components-color-picker__saturation-black"}),Object(c.createElement)(To.a,{"aria-label":Object(d.__)("Choose a shade"),"aria-describedby":"color-picker-saturation-".concat(o),className:"components-color-picker__saturation-pointer",style:a,onKeyDown:this.preventKeyEvents}),Object(c.createElement)(h.a,{id:"color-picker-saturation-".concat(o)},Object(d.__)("Use your arrow keys to change the base color. Move up to lighten the color, down to darken, left to decrease saturation, and right to increase saturation."))))}}]),n}(c.Component),mc=Object(f.compose)(f.pure,f.withInstanceId)(vc);function yc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ji.a)(e);if(t){var o=Object(Ji.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Zi.a)(this,n)}}function gc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oc(e){for(var t=1;t-1&&this.props.scrollIntoView&&(this.scrollingIntoView=!0,Nc()(this.list.children[this.props.selectedIndex],this.list,{onlyScrollIfNeeded:!0}),this.props.setTimeout((function(){e.scrollingIntoView=!1}),100))}},{key:"bindList",value:function(e){this.list=e}},{key:"handleHover",value:function(e){var t=this;return function(){t.scrollingIntoView||t.props.onHover(e)}}},{key:"handleClick",value:function(e){var t=this;return function(){t.props.onSelect(e)}}},{key:"handleMouseDown",value:function(e){e.preventDefault()}},{key:"computeSuggestionMatch",value:function(e){var t=this.props.displayTransform(this.props.match||"").toLocaleLowerCase();if(0===t.length)return null;var n=(e=this.props.displayTransform(e)).toLocaleLowerCase().indexOf(t);return{suggestionBeforeMatch:e.substring(0,n),suggestionMatch:e.substring(n,n+t.length),suggestionAfterMatch:e.substring(n+t.length)}}},{key:"render",value:function(){var e=this;return Object(c.createElement)("ul",{ref:this.bindList,className:"components-form-token-field__suggestions-list",id:"components-form-token-suggestions-".concat(this.props.instanceId),role:"listbox"},Object(s.map)(this.props.suggestions,(function(t,n){var r=e.computeSuggestionMatch(t),o=l()("components-form-token-field__suggestion",{"is-selected":n===e.props.selectedIndex});return Object(c.createElement)("li",{id:"components-form-token-suggestions-".concat(e.props.instanceId,"-").concat(n),role:"option",className:o,key:e.props.displayTransform(t),onMouseDown:e.handleMouseDown,onClick:e.handleClick(t),onMouseEnter:e.handleHover(t),"aria-selected":n===e.props.selectedIndex},r?Object(c.createElement)("span",{"aria-label":e.props.displayTransform(t)},r.suggestionBeforeMatch,Object(c.createElement)("strong",{className:"components-form-token-field__suggestion-match"},r.suggestionMatch),r.suggestionAfterMatch):e.props.displayTransform(t))})))}}]),n}(c.Component);Lc.defaultProps={match:"",onHover:function(){},onSelect:function(){},suggestions:Object.freeze([])};var Fc=Object(f.withSafeTimeout)(Lc),zc=Object(f.createHigherOrderComponent)((function(e){return function(t){var n=Object(c.useState)(),r=Object(a.a)(n,2),i=r[0],s=r[1],u=Object(c.useCallback)((function(e){return s((function(){return null!=e&&e.handleFocusOutside?e.handleFocusOutside.bind(e):void 0}))}),[]);return Object(c.createElement)("div",Object(f.__experimentalUseFocusOutside)(i),Object(c.createElement)(e,Object(o.a)({ref:u},t)))}}),"withFocusOutside");function Bc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ji.a)(e);if(t){var o=Object(Ji.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Zi.a)(this,n)}}var Hc=zc(function(e){Object(Xi.a)(n,e);var t=Bc(n);function n(){return Object($i.a)(this,n),t.apply(this,arguments)}return Object(qi.a)(n,[{key:"handleFocusOutside",value:function(e){this.props.onFocusOutside(e)}},{key:"render",value:function(){return this.props.children}}]),n}(c.Component));var Vc=function e(t){var n,r=t.value,o=t.label,i=t.options,u=t.onChange,p=t.onFilterValueChange,b=t.hideLabelFromVision,h=t.help,v=t.allowReset,m=void 0===v||v,y=t.className,g=t.messages,O=void 0===g?{selected:Object(d.__)("Item selected.")}:g,j=Object(f.useInstanceId)(e),w=Object(c.useState)(null),_=Object(a.a)(w,2),k=_[0],E=_[1],S=Object(c.useState)(!1),x=Object(a.a)(S,2),C=x[0],P=x[1],D=Object(c.useState)(""),M=Object(a.a)(D,2),T=M[0],I=M[1],R=Object(c.useRef)(),N=i.find((function(e){return e.value===r})),A=null!==(n=null==N?void 0:N.label)&&void 0!==n?n:"",L=Object(c.useMemo)((function(){var e=[],t=[],n=Object(s.deburr)(T.toLocaleLowerCase());return i.forEach((function(r){var o=Object(s.deburr)(r.label).toLocaleLowerCase().indexOf(n);0===o?e.push(r):o>0&&t.push(r)})),e.concat(t)}),[T,i,r]),F=function(e){u(e.value),Object(Ro.speak)(O.selected,"assertive"),E(e),I(""),P(!1)},z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=L.indexOf(k),n=t+e;n<0?n=L.length-1:n>=L.length&&(n=0),E(L[n]),P(!0)};return Object(c.useEffect)((function(){var e=L.length>0;if(C){var t=e?Object(d.sprintf)(Object(d._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",L.length),L.length):Object(d.__)("No results.");Object(Ro.speak)(t,"polite")}}),[L,C]),Object(c.createElement)(Hc,{onFocusOutside:function(){P(!1)}},Object(c.createElement)(kt,{className:l()(y,"components-combobox-control"),tabIndex:"-1",label:o,id:"components-form-token-input-".concat(j),hideLabelFromVision:b,help:h},Object(c.createElement)("div",{className:"components-combobox-control__suggestions-container",tabIndex:"-1",onKeyDown:function(e){var t=!1;switch(e.keyCode){case Zr.ENTER:k&&(F(k),t=!0);break;case Zr.UP:z(-1),t=!0;break;case Zr.DOWN:z(1),t=!0;break;case Zr.ESCAPE:P(!1),E(null),t=!0,e.stopPropagation()}t&&e.preventDefault()}},Object(c.createElement)(Mt,null,Object(c.createElement)(Pt,null,Object(c.createElement)(Ic,{className:"components-combobox-control__input",instanceId:j,ref:R,value:C?T:A,"aria-label":A?"".concat(A,", ").concat(o):null,onFocus:function(){P(!0),p(""),I("")},isExpanded:C,selectedSuggestionIndex:L.indexOf(k),onChange:function(e){var t=e.value;I(t),p(t),P(!0)}})),m&&Object(c.createElement)(Dt,null,Object(c.createElement)(To.a,{className:"components-combobox-control__reset",icon:Mc.a,disabled:!r,onClick:function(){u(null),R.current.input.focus()},label:Object(d.__)("Reset")}))),C&&Object(c.createElement)(Fc,{instanceId:j,match:{label:T},displayTransform:function(e){return e.label},suggestions:L,selectedIndex:L.indexOf(k),onHover:E,onSelect:F,scrollIntoView:!0}))))},Kc=n(44),Wc=(n(176),n(30)),Uc=n.n(Wc);n(206);function Gc(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function $c(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function qc(e,t){if(e.clientHeightt||a>e&&i=t&&c>=n?a-e-r:i>t&&cn?i-t+o:0}var Xc=0;function Zc(){}function Jc(e,t){e&&function(e,t){var n=window,r=t.scrollMode,o=t.block,a=t.inline,i=t.boundary,c=t.skipOverflowHiddenElements,s="function"==typeof i?i:function(e){return e!==i};if(!Gc(e))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,l=[],d=e;Gc(d)&&s(d);){if((d=d.parentNode)===u){l.push(d);break}d===document.body&&qc(d)&&!qc(document.documentElement)||qc(d,c)&&l.push(d)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),m=v.height,y=v.width,g=v.top,O=v.right,j=v.bottom,w=v.left,_="start"===o||"nearest"===o?g:"end"===o?j:g+m/2,k="center"===a?w+y/2:"end"===a?O:w,E=[],S=0;S=0&&w>=0&&j<=p&&O<=f&&g>=M&&j<=I&&w>=R&&O<=T)return E;var N=getComputedStyle(x),A=parseInt(N.borderLeftWidth,10),L=parseInt(N.borderTopWidth,10),F=parseInt(N.borderRightWidth,10),z=parseInt(N.borderBottomWidth,10),B=0,H=0,V="offsetWidth"in x?x.offsetWidth-x.clientWidth-A-F:0,K="offsetHeight"in x?x.offsetHeight-x.clientHeight-L-z:0;if(u===x)B="start"===o?_:"end"===o?_-p:"nearest"===o?Yc(h,h+p,p,L,z,h+_,h+_+m,m):_-p/2,H="start"===a?k:"center"===a?k-f/2:"end"===a?k-f:Yc(b,b+f,f,A,F,b+k,b+k+y,y),B=Math.max(0,B+h),H=Math.max(0,H+b);else{B="start"===o?_-M-L:"end"===o?_-I+z+K:"nearest"===o?Yc(M,I,P,L,z+K,_,_+m,m):_-(M+P/2)+K/2,H="start"===a?k-R-A:"center"===a?k-(R+D/2)+V/2:"end"===a?k-T+F+V:Yc(R,T,D,A,F+V,k,k+y,y);var W=x.scrollLeft,U=x.scrollTop;_+=U-(B=Math.max(0,Math.min(U+B,x.scrollHeight-P+K))),k+=W-(H=Math.max(0,Math.min(W+H,x.scrollWidth-D+V)))}E.push({el:x,top:B,left:H})}return E}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))}function Qc(e,t){return e===t||t instanceof Node&&e.contains&&e.contains(t)}function es(e,t){var n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,a=new Array(o),i=0;i1?n-1:0),o=1;o=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function ss(e,t,n,r,o){if(void 0===o&&(o=!0),0===n)return-1;var a=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:a+1);var i=t+e;i<0?i=o?a:0:i>a&&(i=o?0:a);var c=us(e,i,n,r,o);return-1===c?t>=n?-1:t:c}function us(e,t,n,r,o){var a=r(t);if(!a||!a.hasAttribute("disabled"))return t;if(e>0){for(var i=t+1;i=0;c--)if(!r(c).hasAttribute("disabled"))return c;return o?e>0?us(1,0,n,r,!1):us(-1,n-1,n,r,!1):-1}function ls(e,t,n,r){return void 0===r&&(r=!0),t.some((function(t){return t&&(Qc(t,e)||r&&Qc(t,n.activeElement))}))}var ds=es((function(e){ps(e).textContent=""}),500);function fs(e,t){var n=ps(t);e&&(n.textContent=e,ds(t))}function ps(e){void 0===e&&(e=document);var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var bs={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function hs(e,t,n){var r=e.props,a=e.type,i={};Object.keys(t).forEach((function(r){!function(e,t,n,r){var a=t.props,i=t.type,c="on"+js(e)+"Change";a[c]&&void 0!==r[e]&&r[e]!==n[e]&&a[c](Object(o.a)({type:i},r))}(r,e,t,n),n[r]!==t[r]&&(i[r]=n[r])})),r.onStateChange&&Object.keys(i).length&&r.onStateChange(Object(o.a)({type:a},i))}var vs=es((function(e,t){fs(e(),t)}),200),ms="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?_.useLayoutEffect:_.useEffect;function ys(e){var t=e.id,n=void 0===t?"downshift-"+rs():t,r=e.labelId,o=e.menuId,a=e.getItemId,i=e.toggleButtonId,c=e.inputId;return Object(_.useRef)({labelId:r||n+"-label",menuId:o||n+"-menu",getItemId:a||function(e){return n+"-item-"+e},toggleButtonId:i||n+"-toggle-button",inputId:c||n+"-input"}).current}function gs(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function Os(e){return/^\S{1}$/.test(e)}function js(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function ws(e){var t=Object(_.useRef)(e);return t.current=e,t}function _s(e,t,n){var r=Object(_.useRef)(),a=Object(_.useRef)(),i=Object(_.useCallback)((function(t,n){a.current=n,t=as(t,n.props);var r=e(t,n);return n.props.stateReducer(t,Object(o.a)({},n,{changes:r}))}),[e]),c=Object(_.useReducer)(i,t),s=c[0],u=c[1],l=ws(n),d=Object(_.useCallback)((function(e){return u(Object(o.a)({props:l.current},e))}),[l]),f=a.current;return Object(_.useEffect)((function(){f&&r.current&&r.current!==s&&hs(f,as(r.current,f.props),s),r.current=s}),[s,n,f]),[s,d]}function ks(e,t,n){var r=_s(e,t,n),o=r[0],a=r[1];return[as(o,n),a]}var Es={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""},scrollIntoView:Jc,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function Ss(e,t,n){void 0===n&&(n=bs);var r="default"+js(t);return r in e?e[r]:n[t]}function xs(e,t,n){if(void 0===n&&(n=bs),t in e)return e[t];var r="initial"+js(t);return r in e?e[r]:Ss(e,t,n)}function Cs(e){var t=xs(e,"selectedItem"),n=xs(e,"isOpen"),r=xs(e,"highlightedIndex"),o=xs(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function Ps(e,t,n,r){var o=e.items,a=e.initialHighlightedIndex,i=e.defaultHighlightedIndex,c=t.selectedItem,s=t.highlightedIndex;return 0===o.length?-1:void 0!==a&&s===a?a:void 0!==i?i:c?0===n?o.indexOf(c):ss(n,o.indexOf(c),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function Ds(e,t,n,r){var o=Object(_.useRef)({isMouseDown:!1,isTouchMove:!1});return Object(_.useEffect)((function(){var a=function(){o.current.isMouseDown=!0},i=function(a){o.current.isMouseDown=!1,e&&!ls(a.target,t.map((function(e){return e.current})),n.document)&&r()},c=function(){o.current.isTouchMove=!1},s=function(){o.current.isTouchMove=!0},u=function(a){!e||o.current.isTouchMove||ls(a.target,t.map((function(e){return e.current})),n.document,!1)||r()};return n.addEventListener("mousedown",a),n.addEventListener("mouseup",i),n.addEventListener("touchstart",c),n.addEventListener("touchmove",s),n.addEventListener("touchend",u),function(){n.removeEventListener("mousedown",a),n.removeEventListener("mouseup",i),n.removeEventListener("touchstart",c),n.removeEventListener("touchmove",s),n.removeEventListener("touchend",u)}}),[e,n]),o}var Ms=function(){return Zc};function Ts(e,t,n){var r=n.isInitialMount,a=n.highlightedIndex,i=n.items,c=n.environment,s=Object(Kc.a)(n,["isInitialMount","highlightedIndex","items","environment"]);Object(_.useEffect)((function(){r||vs((function(){return e(Object(o.a)({highlightedIndex:a,highlightedItem:i[a],resultCount:i.length},s))}),c.document)}),t)}function Is(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,o=e.getItemNodeFromIndex,a=e.menuElement,i=e.scrollIntoView,c=Object(_.useRef)(!0);return ms((function(){t<0||!n||!Object.keys(r.current).length||(!1===c.current?c.current=!0:i(o(t),a))}),[t]),c}var Rs=Zc;function Ns(e,t,n){var r,a=t.type,i=t.props;switch(a){case n.ItemMouseMove:r={highlightedIndex:t.index};break;case n.MenuMouseLeave:r={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Ps(i,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:Ps(i,e,0)};break;case n.FunctionCloseMenu:r={isOpen:!1};break;case n.FunctionSetHighlightedIndex:r={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:r={inputValue:t.inputValue};break;case n.FunctionReset:r={highlightedIndex:Ss(i,"highlightedIndex"),isOpen:Ss(i,"isOpen"),selectedItem:Ss(i,"selectedItem"),inputValue:Ss(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Object(o.a)({},e,r)}function As(e,t,n,r,o){for(var a=e.toLowerCase(),i=0;i=0&&{selectedItem:a.items[u]});break;case 13:n={highlightedIndex:Ps(a,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case 14:n={highlightedIndex:Ps(a,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case 5:case 6:n=Object(o.a)({isOpen:Ss(a,"isOpen"),highlightedIndex:Ss(a,"highlightedIndex")},e.highlightedIndex>=0&&{selectedItem:a.items[e.highlightedIndex]});break;case 3:n={highlightedIndex:us(1,0,a.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:us(-1,a.items.length-1,a.items.length,t.getItemNodeFromIndex,!1)};break;case 2:case 8:n={isOpen:!1,highlightedIndex:-1};break;case 7:var l=t.key,d=""+e.inputValue+l,f=As(d,e.highlightedIndex,a.items,a.itemToString,t.getItemNodeFromIndex);n=Object(o.a)({inputValue:d},f>=0&&{highlightedIndex:f});break;case 0:n={highlightedIndex:ss(i?5:1,e.highlightedIndex,a.items.length,t.getItemNodeFromIndex,a.circularNavigation)};break;case 1:n={highlightedIndex:ss(i?-5:-1,e.highlightedIndex,a.items.length,t.getItemNodeFromIndex,a.circularNavigation)};break;case 20:n={selectedItem:t.selectedItem};break;default:return Ns(e,t,zs)}return Object(o.a)({},e,n)}function Hs(e){void 0===e&&(e={}),Fs(e,Hs);var t=Object(o.a)({},Ls,e),n=t.items,r=t.scrollIntoView,a=t.environment,i=t.initialIsOpen,c=t.defaultIsOpen,s=t.itemToString,u=t.getA11ySelectionMessage,l=t.getA11yStatusMessage,d=ks(Bs,Cs(t),t),f=d[0],p=d[1],b=f.isOpen,h=f.highlightedIndex,v=f.selectedItem,m=f.inputValue,y=Object(_.useRef)(null),g=Object(_.useRef)(null),O=Object(_.useRef)({}),j=Object(_.useRef)(!0),w=Object(_.useRef)(null),k=ys(t),E=Object(_.useRef)(),S=Object(_.useRef)(!0),x=ws({state:f,props:t}),C=Object(_.useCallback)((function(e){return O.current[k.getItemId(e)]}),[k]);Ts(l,[b,h,m,n],Object(o.a)({isInitialMount:S.current,previousResultCount:E.current,items:n,environment:a,itemToString:s},f)),Ts(u,[v],Object(o.a)({isInitialMount:S.current,previousResultCount:E.current,items:n,environment:a,itemToString:s},f));var P=Is({menuElement:g.current,highlightedIndex:h,isOpen:b,itemRefs:O,scrollIntoView:r,getItemNodeFromIndex:C});Object(_.useEffect)((function(){S.current&&(w.current=es((function(e){e({type:21,inputValue:""})}),500)),m&&w.current(p)}),[p,m]),Rs({isInitialMount:S.current,props:t,state:f}),Object(_.useEffect)((function(){S.current?(i||c||b)&&g.current&&g.current.focus():b?g.current&&g.current.focus():a.document.activeElement===g.current&&y.current&&(j.current=!1,y.current.focus())}),[b]),Object(_.useEffect)((function(){S.current||(E.current=n.length)}));var D=Ds(b,[g,y],a,(function(){p({type:8})})),M=Ms();Object(_.useEffect)((function(){S.current=!1}),[]),Object(_.useEffect)((function(){b||(O.current={})}),[b]);var T=Object(_.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),p({type:13,getItemNodeFromIndex:C,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),p({type:14,getItemNodeFromIndex:C,shiftKey:e.shiftKey})}}}),[p,C]),I=Object(_.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),p({type:0,getItemNodeFromIndex:C,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),p({type:1,getItemNodeFromIndex:C,shiftKey:e.shiftKey})},Home:function(e){e.preventDefault(),p({type:3,getItemNodeFromIndex:C})},End:function(e){e.preventDefault(),p({type:4,getItemNodeFromIndex:C})},Escape:function(){p({type:2})},Enter:function(e){e.preventDefault(),p({type:5})}," ":function(e){e.preventDefault(),p({type:6})}}}),[p,C]),R=Object(_.useCallback)((function(){p({type:16})}),[p]),N=Object(_.useCallback)((function(){p({type:18})}),[p]),A=Object(_.useCallback)((function(){p({type:17})}),[p]),L=Object(_.useCallback)((function(e){p({type:19,highlightedIndex:e})}),[p]),F=Object(_.useCallback)((function(e){p({type:20,selectedItem:e})}),[p]),z=Object(_.useCallback)((function(){p({type:22})}),[p]),B=Object(_.useCallback)((function(e){p({type:21,inputValue:e})}),[p]),H=Object(_.useCallback)((function(e){return Object(o.a)({id:k.labelId,htmlFor:k.toggleButtonId},e)}),[k]),V=Object(_.useCallback)((function(e,t){var n,r=void 0===e?{}:e,a=r.onMouseLeave,i=r.refKey,c=void 0===i?"ref":i,s=r.onKeyDown,u=r.onBlur,l=r.ref,d=Object(Kc.a)(r,["onMouseLeave","refKey","onKeyDown","onBlur","ref"]),f=(void 0===t?{}:t).suppressRefError,b=void 0!==f&&f,h=x.current.state;return M("getMenuProps",b,c,g),Object(o.a)(((n={})[c]=ns(l,(function(e){g.current=e})),n.id=k.menuId,n.role="listbox",n["aria-labelledby"]=k.labelId,n.tabIndex=-1,n),h.isOpen&&h.highlightedIndex>-1&&{"aria-activedescendant":k.getItemId(h.highlightedIndex)},{onMouseLeave:ts(a,(function(){p({type:9})})),onKeyDown:ts(s,(function(e){var t=cs(e);t&&I[t]?I[t](e):Os(t)&&p({type:7,key:t,getItemNodeFromIndex:C})})),onBlur:ts(u,(function(){!1!==j.current?!D.current.isMouseDown&&p({type:8}):j.current=!0}))},d)}),[p,x,I,D,M,k,C]);return{getToggleButtonProps:Object(_.useCallback)((function(e,t){var n,r=void 0===e?{}:e,a=r.onClick,i=r.onKeyDown,c=r.refKey,s=void 0===c?"ref":c,u=r.ref,l=Object(Kc.a)(r,["onClick","onKeyDown","refKey","ref"]),d=(void 0===t?{}:t).suppressRefError,f=void 0!==d&&d,b=Object(o.a)(((n={})[s]=ns(u,(function(e){y.current=e})),n.id=k.toggleButtonId,n["aria-haspopup"]="listbox",n["aria-expanded"]=x.current.state.isOpen,n["aria-labelledby"]=k.labelId+" "+k.toggleButtonId,n),l);return l.disabled||(b.onClick=ts(a,(function(){p({type:12})})),b.onKeyDown=ts(i,(function(e){var t=cs(e);t&&T[t]?T[t](e):Os(t)&&p({type:15,key:t,getItemNodeFromIndex:C})}))),M("getToggleButtonProps",f,s,y),b}),[p,x,T,M,k,C]),getLabelProps:H,getMenuProps:V,getItemProps:Object(_.useCallback)((function(e){var t,n=void 0===e?{}:e,r=n.item,a=n.index,i=n.onMouseMove,c=n.onClick,s=n.refKey,u=void 0===s?"ref":s,l=n.ref,d=Object(Kc.a)(n,["item","index","onMouseMove","onClick","refKey","ref"]),f=x.current,b=f.state,h=f.props,v=gs(a,r,h.items);if(v<0)throw new Error("Pass either item or item index in getItemProps!");var m=Object(o.a)(((t={role:"option","aria-selected":""+(v===b.highlightedIndex),id:k.getItemId(v)})[u]=ns(l,(function(e){e&&(O.current[k.getItemId(v)]=e)})),t),d);return d.disabled||(m.onMouseMove=ts(i,(function(){a!==b.highlightedIndex&&(P.current=!1,p({type:10,index:a}))})),m.onClick=ts(c,(function(){p({type:11,index:a})}))),m}),[p,x,P,k]),toggleMenu:R,openMenu:A,closeMenu:N,setHighlightedIndex:L,selectItem:F,reset:z,setInputValue:B,highlightedIndex:h,isOpen:b,selectedItem:v,inputValue:m}}Hs.stateChangeTypes=zs;Uc.a.array.isRequired,Uc.a.func,Uc.a.func,Uc.a.func,Uc.a.bool,Uc.a.number,Uc.a.number,Uc.a.number,Uc.a.bool,Uc.a.bool,Uc.a.bool,Uc.a.any,Uc.a.any,Uc.a.any,Uc.a.string,Uc.a.string,Uc.a.string,Uc.a.string,Uc.a.string,Uc.a.string,Uc.a.func,Uc.a.string,Uc.a.string,Uc.a.func,Uc.a.func,Uc.a.func,Uc.a.func,Uc.a.func,Uc.a.func,Uc.a.shape({addEventListener:Uc.a.func,removeEventListener:Uc.a.func,document:Uc.a.shape({getElementById:Uc.a.func,activeElement:Uc.a.any,body:Uc.a.any})});Object(o.a)({},Es,{getA11yStatusMessage:os,circularNavigation:!0});Uc.a.array,Uc.a.array,Uc.a.array,Uc.a.func,Uc.a.func,Uc.a.func,Uc.a.number,Uc.a.number,Uc.a.number,Uc.a.func,Uc.a.func,Uc.a.string,Uc.a.string,Uc.a.shape({addEventListener:Uc.a.func,removeEventListener:Uc.a.func,document:Uc.a.shape({getElementById:Uc.a.func,activeElement:Uc.a.any,body:Uc.a.any})});var Vs=function(e){return e&&e.name},Ks=function(e,t){var n=e.selectedItem,r=t.type,o=t.changes,a=t.props.items;switch(r){case Hs.stateChangeTypes.ToggleButtonKeyDownArrowDown:return{selectedItem:a[n?Math.min(a.indexOf(n)+1,a.length-1):0]};case Hs.stateChangeTypes.ToggleButtonKeyDownArrowUp:return{selectedItem:a[n?Math.max(a.indexOf(n)-1,0):a.length-1]};default:return o}};function Ws(e){var t=e.className,n=e.hideLabelFromVision,r=e.label,a=e.options,i=e.onChange,s=e.value,u=Hs({initialSelectedItem:a[0],items:a,itemToString:Vs,onSelectedItemChange:i,selectedItem:s,stateReducer:Ks}),d=u.getLabelProps,f=u.getToggleButtonProps,p=u.getMenuProps,b=u.getItemProps,v=u.isOpen,m=u.highlightedIndex,y=u.selectedItem,g=p({className:"components-custom-select-control__menu","aria-hidden":!v});return g["aria-activedescendant"]&&"downshift-null"===g["aria-activedescendant"].slice(0,"downshift-null".length)&&delete g["aria-activedescendant"],Object(c.createElement)("div",{className:l()("components-custom-select-control",t)},n?Object(c.createElement)(h.a,Object(o.a)({as:"label"},d()),r):Object(c.createElement)("label",d({className:"components-custom-select-control__label"}),r),Object(c.createElement)(To.a,f({"aria-label":r,"aria-labelledby":void 0,className:"components-custom-select-control__button",isSmall:!0}),Vs(y),Object(c.createElement)(Ai.a,{icon:Ki.a,className:"components-custom-select-control__button-icon"})),Object(c.createElement)("ul",g,v&&a.map((function(e,t){return Object(c.createElement)("li",b({item:e,index:t,key:e.key,className:l()(e.className,"components-custom-select-control__item",{"is-highlighted":t===m}),style:e.style}),e.name,e===y&&Object(c.createElement)(Ai.a,{icon:Li.a,className:"components-custom-select-control__item-icon"}))}))))}var Us=n(148),Gs=(n(324),n(45)),$s=n.n(Gs),qs=n(288),Ys=n.n(qs);function Xs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ji.a)(e);if(t){var o=Object(Ji.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Zi.a)(this,n)}}var Zs=function(e){Object(Xi.a)(n,e);var t=Xs(n);function n(){var e;return Object($i.a)(this,n),(e=t.apply(this,arguments)).onChangeMoment=e.onChangeMoment.bind(Object(Yi.a)(e)),e.nodeRef=Object(c.createRef)(),e.keepFocusInside=e.keepFocusInside.bind(Object(Yi.a)(e)),e.isDayHighlighted=e.isDayHighlighted.bind(Object(Yi.a)(e)),e}return Object(qi.a)(n,[{key:"keepFocusInside",value:function(){if(this.nodeRef.current){var e=this.nodeRef.current.ownerDocument;if(!e.activeElement||!this.nodeRef.current.contains(e.activeElement)){var t=this.nodeRef.current.querySelector(".DayPicker_focusRegion");if(!t)return;t.focus()}}}},{key:"onChangeMoment",value:function(e){var t=this.props,n=t.currentDate,r=t.onChange,o=n?$s()(n):$s()(),a={hours:o.hours(),minutes:o.minutes(),seconds:0};r(e.set(a).format("YYYY-MM-DDTHH:mm:ss"))}},{key:"getMomentDate",value:function(e){return null===e?null:e?$s()(e):$s()()}},{key:"isDayHighlighted",value:function(e){var t;return!(null===(t=this.props.events)||void 0===t||!t.length)&&(this.props.onMonthPreviewed&&this.props.onMonthPreviewed(e.toDate()),this.props.events.some((function(t){return e.isSame(t.date,"day")})))}},{key:"render",value:function(){var e=this.props,t=e.currentDate,n=e.isInvalidDate,r=this.getMomentDate(t);return Object(c.createElement)("div",{className:"components-datetime__date",ref:this.nodeRef},Object(c.createElement)(Ys.a,{date:r,daySize:30,focused:!0,hideKeyboardShortcutsPanel:!0,key:"datepicker-controller-".concat(r?r.format("MM-YYYY"):"null"),noBorder:!0,numberOfMonths:1,onDateChange:this.onChangeMoment,transitionDuration:0,weekDayFormat:"ddd",isRTL:Object(d.isRTL)(),isOutsideRange:function(e){return n&&n(e.toDate())},isDayHighlighted:this.isDayHighlighted,onPrevMonthClick:this.keepFocusInside,onNextMonthClick:this.keepFocusInside}))}}]),n}(c.Component),Js=n(69),Qs=function(){var e=Object(Js.__experimentalGetSettings)().timezone,t=(new Date).getTimezoneOffset()/60*-1;if(Number(e.offset)===t)return null;var n=e.offset>=0?"+":"",r=""!==e.abbr&&isNaN(e.abbr)?e.abbr:"UTC".concat(n).concat(e.offset),o="UTC"===e.string?Object(d.__)("Coordinated Universal Time"):"(".concat(r,") ").concat(e.string.replace("_"," "));return Object(c.createElement)(b.a,{position:"top center",text:o},Object(c.createElement)("div",{className:"components-datetime__timezone"},r))};function eu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tu(e){var t=e.as,n=e.value,r=e.onUpdate,o=Object(i.a)(e,["as","value","onUpdate"]);return Object(c.createElement)(t||"input",function(e){for(var t=1;to.max||void 0!==o.min&&a700?(o.style.transform="scale(0.5)",o.style.transformOrigin="top left",o.style.top="".concat(e.clientY-100,"px"),o.style.left="".concat(e.clientX,"px")):(o.style.top="".concat(h-0,"px"),o.style.left="".concat(v-0,"px")),Array.from(m.querySelectorAll("iframe")).forEach((function(e){return e.parentNode.removeChild(e)})),o.appendChild(m),b.appendChild(o)}var y,g=e.clientX,O=e.clientY;function j(e){o.style.top="".concat(parseInt(o.style.top,10)+e.clientY-O,"px"),o.style.left="".concat(parseInt(o.style.left,10)+e.clientX-g,"px"),g=e.clientX,O=e.clientY,r&&r(e)}t.addEventListener("dragover",j),t.body.classList.add(wu),e.persist(),n&&(y=setTimeout((function(){return n(e)}))),d.current=function(){o&&o.parentNode&&o.parentNode.removeChild(o),c&&c.parentNode&&c.parentNode.removeChild(c),t.body.classList.remove(wu),t.removeEventListener("dragover",j),clearTimeout(y)}},onDraggableEnd:function(e){e.preventDefault(),d.current(),r&&o(e)}}),u&&Object(c.createElement)("div",{className:"components-draggable-drag-component-root",style:{display:"none"},ref:l},u))}var ku=n(221),Eu=n(63),Su=n.n(Eu),xu=Object(c.createContext)(),Cu=xu.Provider;function Pu(e){var t=e.dataTransfer;if(t){if(Object(s.includes)(t.types,"Files")||Object(du.getFilesFromDataTransfer)(t).length>0)return"file";if(Object(s.includes)(t.types,"text/html"))return"html"}return"default"}function Du(e,t){return Boolean("file"===e&&t.onFilesDrop||"html"===e&&t.onHTMLDrop||"default"===e&&t.onDrop)}function Mu(e){var t=window.CustomEvent&&e instanceof window.CustomEvent?e.detail:e;return{x:t.clientX,y:t.clientY}}function Tu(e,t,n){var r=Object(s.filter)(Array.from(e),(function(e){return Du(n,e)&&(r=e.element.current,o=t.x,a=t.y,(i=r.getBoundingClientRect()).bottom!==i.top&&i.left!==i.right&&o>=i.left&&o<=i.right&&a>=i.top&&a<=i.bottom);var r,o,a,i}));return Object(s.find)(r,(function(e){var t=e.isRelative?e.element.current.parentElement:e.element.current;return!Object(s.some)(r,(function(n){return n!==e&&t.contains(n.element.current)}))}))}var Iu={isDraggingOverDocument:!1,isDraggingOverElement:!1,x:null,y:null,type:null};function Ru(e){var t=Object(c.useContext)(xu);Object(c.useEffect)((function(){var n,r=e.current.ownerDocument.defaultView;var o=Object(s.throttle)((function(e){if(!n||!n.contains(e.target)){var r=Pu(e),o=Mu(e),a=Tu(t,o,r);n=a&&a.isRelative?a.element.current.offsetParent:null,t.forEach((function(e){var t=e===a,n={isDraggingOverDocument:Du(r,e),isDraggingOverElement:t,x:t&&e.withPosition?o.x:null,y:t&&e.withPosition?o.y:null,type:t?r:null};e.setState((function(e){return Su()(e,n)?e:n}))})),e.preventDefault()}}),200);function a(e){o(e),e.preventDefault()}function i(){o.cancel(),t.forEach((function(e){return e.setState(Iu)}))}function c(e){e.dataTransfer&&e.dataTransfer.files.length;var n=Pu(e),r=Mu(e),o=Tu(t,r,n);if(i(),o)switch(n){case"file":o.onFilesDrop(Object(du.getFilesFromDataTransfer)(e.dataTransfer),r);break;case"html":o.onHTMLDrop(e.dataTransfer.getData("text/html"),r);break;case"default":o.onDrop(e,r)}e.stopPropagation(),e.preventDefault()}return r.addEventListener("drop",c),r.addEventListener("dragover",a),r.addEventListener("mouseup",i),r.addEventListener("dragend",i),function(){r.removeEventListener("drop",c),r.removeEventListener("dragover",a),r.removeEventListener("mouseup",i),r.removeEventListener("dragend",i)}}),[e,t])}function Nu(e){var t=Object(c.useRef)(new Set([]));return Object(c.createElement)(Cu,Object(o.a)({},e,{value:t.current}))}function Au(e){var t=e.children,n=Object(c.useRef)();return Ru(n),Object(c.createElement)("div",{ref:n,className:"components-drop-zone__provider"},t)}function Lu(e){var t=e.children;return Object(c.createElement)(Nu,null,Object(c.createElement)(Au,null,t))}function Fu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zu(e){for(var t=1;t-1&&e?{index:n,target:e,focusables:t}:null}},{key:"getFocusableIndex",value:function(e,t){var n=e.indexOf(t);if(-1!==n)return n}},{key:"onKeyDown",value:function(e){this.props.onKeyDown&&this.props.onKeyDown(e);var t=this.getFocusableContext,n=this.props,r=n.cycle,o=void 0===r||r,a=n.eventToOffset,i=n.onNavigate,c=void 0===i?s.noop:i,u=n.stopNavigationEvents,l=a(e);if(void 0!==l&&u){e.stopImmediatePropagation();var d=e.target.getAttribute("role");Gu.includes(d)&&e.preventDefault()}if(l){var f=t(e.target.ownerDocument.activeElement);if(f){var p=f.index,b=f.focusables,h=o?function(e,t,n){var r=e+n;return r<0?t+r:r>=t?r-t:r}(p,b.length,l):p+l;h>=0&&h0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ju(Ju({},e),t);return t.className&&e.className&&(n.className=l()(t.className,e.className)),n}var el=function(e){var t,n=e.children,r=e.className,a=e.controls,i=e.icon,u=void 0===i?Wu:i,d=e.label,f=e.popoverProps,p=e.toggleProps,b=e.menuProps,h=e.disableOpenOnArrowDown,v=void 0!==h&&h,m=e.text,y=e.menuLabel,g=e.position,O=e.noIcons;if(y&&Ku()("`menuLabel` prop in `DropdownComponent`",{alternative:"`menuProps` object and its `aria-label` property",plugin:"Gutenberg"}),g&&Ku()("`position` prop in `DropdownComponent`",{alternative:"`popoverProps` object and its `position` property",plugin:"Gutenberg"}),Object(s.isEmpty)(a)&&!Object(s.isFunction)(n))return null;Object(s.isEmpty)(a)||(t=a,Array.isArray(t[0])||(t=[t]));var j=Qu({className:"components-dropdown-menu__popover",position:g},f);return Object(c.createElement)(Ui,{className:l()("components-dropdown-menu",r),popoverProps:j,renderToggle:function(e){var t,n=e.isOpen,r=e.onToggle,a=Qu({className:l()("components-dropdown-menu__toggle",{"is-opened":n})},p);return Object(c.createElement)(To.a,Object(o.a)({},a,{icon:u,onClick:function(e){r(e),a.onClick&&a.onClick(e)},onKeyDown:function(e){!function(e){v||n||e.keyCode!==Zr.DOWN||(e.preventDefault(),e.stopPropagation(),r())}(e),a.onKeyDown&&a.onKeyDown(e)},"aria-haspopup":"true","aria-expanded":n,label:d,text:m,showTooltip:null===(t=null==p?void 0:p.showTooltip)||void 0===t||t}),a.children)},renderContent:function(e){var r=Qu({"aria-label":y||d,className:l()("components-dropdown-menu__menu",{"no-icons":O})},b);return Object(c.createElement)(Xu,Object(o.a)({},r,{role:"menu"}),Object(s.isFunction)(n)?n(e):null,Object(s.flatMap)(t,(function(t,n){return t.map((function(t,r){return Object(c.createElement)(To.a,{key:[n,r].join(),onClick:function(n){n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:l()("components-dropdown-menu__menu-item",{"has-separator":n>0&&0===r,"is-active":t.isActive}),icon:t.icon,"aria-checked":"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.isActive:void 0,role:"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.role:"menuitem",disabled:t.isDisabled},t.title)}))})))}})},tl=n(436);var nl=R(Ai.a,{target:"etxm6pv0",label:"StyledIcon"})({name:"i8uvf3",styles:"width:1.4em;height:1.4em;margin:-0.2em 0.1em 0;vertical-align:middle;fill:currentColor;"});var rl=Object(c.forwardRef)((function(e,t){var n=e.href,r=e.children,a=e.className,u=e.rel,f=void 0===u?"":u,p=Object(i.a)(e,["href","children","className","rel"]);f=Object(s.uniq)(Object(s.compact)([].concat(Object(Do.a)(f.split(" ")),["external","noreferrer","noopener"]))).join(" ");var b=l()("components-external-link",a);return Object(c.createElement)("a",Object(o.a)({},p,{className:b,href:n,target:"_blank",rel:f,ref:t}),r,Object(c.createElement)(h.a,{as:"span"},Object(d.__)("(opens in a new tab)")),Object(c.createElement)(nl,{icon:tl.a,className:"components-external-link__icon"}))}));var ol=R("div",{target:"e11wezi70",label:"MediaWrapper"})({name:"4wwkjz",styles:"background-color:transparent;box-sizing:border-box;text-align:center;width:100%;"}),al=R("div",{target:"e11wezi71",label:"MediaContainer"})({name:"1q0l1fq",styles:"align-items:center;box-sizing:border-box;box-shadow:0 0 0 1px rgba( 0,0,0,0.2 );cursor:pointer;display:inline-flex;justify-content:center;margin:auto;position:relative;height:100%;img,video{box-sizing:border-box;display:block;height:auto;margin:0;max-height:100%;max-width:100%;pointer-events:none;user-select:none;width:auto;}"}),il=R("div",{target:"e11wezi72",label:"MediaPlaceholder"})("background:",J("lightGray.300"),";box-sizing:border-box;height:170px;max-width:280px;min-width:200px;width:100%;"),cl=R(na,{target:"e11wezi73",label:"UnitControl"})({name:"v7v99c",styles:"width:100px;"}),sl=R(Tt,{target:"e11wezi74",label:"ControlWrapper"})({name:"lqoi1w",styles:"max-width:320px;padding:1em 0;"}),ul=R("div",{target:"e11wezi75",label:"GridView"})("box-sizing:border-box;left:50%;opacity:0;overflow:hidden;pointer-events:none;position:absolute;top:50%;transform:translate3d( -50%,-50%,0 );transition:opacity 120ms linear;z-index:1;",(function(e){return e.isActive&&"\n\t\topacity: 1;\n\t"}),""),ll=R("div",{target:"e11wezi76",label:"GridLine"})({name:"18dz4sk",styles:"box-sizing:border-box;background:white;box-shadow:0 0 2px rgba( 0,0,0,0.6 );position:absolute;opacity:0.4;transform:translateZ( 0 );"}),dl=R(ll,{target:"e11wezi77",label:"GridLineX"})({name:"1u4twh6",styles:"height:1px;left:0;right:0;"}),fl=R(ll,{target:"e11wezi78",label:"GridLineY"})({name:"13gvipf",styles:"width:1px;top:0;bottom:0;"}),pl={top:0,left:0,bottom:0,right:0,width:0,height:0},bl=["avi","mpg","mpeg","mov","mp4","m4v","ogg","ogv","webm","wmv"];function hl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split(".");return t[t.length-1]}function vl(e){return Math.round(100*e)}function ml(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yl(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";return!!e&&bl.includes(hl(e))}(r)?Object(c.createElement)("video",Object(o.a)({},p,{autoPlay:n,className:"components-focal-point-picker__media components-focal-point-picker__media--video",loop:!0,muted:f,onLoadedData:u,ref:l,src:r})):Object(c.createElement)("img",Object(o.a)({},p,{alt:t,className:"components-focal-point-picker__media components-focal-point-picker__media--image",onLoad:u,ref:l,src:r})):Object(c.createElement)(Ml,{className:"components-focal-point-picker__media components-focal-point-picker__media--placeholder",onLoad:u,mediaRef:l})}function Ml(e){var t=e.mediaRef,n=e.onLoad,r=void 0===n?s.noop:n,a=Object(i.a)(e,["mediaRef","onLoad"]),u=Object(c.useRef)(r);return Object(c.useLayoutEffect)((function(){window.requestAnimationFrame((function(){u.current()}))}),[]),Object(c.createElement)(il,Object(o.a)({ref:t},a))}function Tl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ji.a)(e);if(t){var o=Object(Ji.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Zi.a)(this,n)}}var Il=function(e){Object(Xi.a)(n,e);var t=Tl(n);function n(e){var r;return Object($i.a)(this,n),(r=t.apply(this,arguments)).state={isDragging:!1,bounds:pl,percentages:e.value},r.containerRef=Object(c.createRef)(),r.mediaRef=Object(c.createRef)(),r.handleOnClick=r.handleOnClick.bind(Object(Yi.a)(r)),r.handleOnMouseUp=r.handleOnMouseUp.bind(Object(Yi.a)(r)),r.handleOnKeyDown=r.handleOnKeyDown.bind(Object(Yi.a)(r)),r.onMouseMove=r.onMouseMove.bind(Object(Yi.a)(r)),r.updateBounds=r.updateBounds.bind(Object(Yi.a)(r)),r.updateValue=r.updateValue.bind(Object(Yi.a)(r)),r}return Object(qi.a)(n,[{key:"componentDidMount",value:function(){document.addEventListener("mouseup",this.handleOnMouseUp),window.addEventListener("resize",this.updateBounds),this.updateBounds()}},{key:"componentDidUpdate",value:function(e){e.url!==this.props.url&&this.setState({isDragging:!1}),this.props.value.x===this.state.percentages.x&&this.props.value.y===this.state.percentages.y||this.setState({percentages:this.props.value})}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mouseup",this.handleOnMouseUp),window.removeEventListener("resize",this.updateBounds)}},{key:"calculateBounds",value:function(){var e=pl;if(!this.mediaRef.current)return e;if(0===this.mediaRef.current.clientWidth||0===this.mediaRef.current.clientHeight)return e;var t=this.mediaRef.current.clientWidth,n=this.mediaRef.current.clientHeight,r=this.pickerDimensions(),o=r.width/t,a=r.height/n;return a>=o?(e.width=e.right=r.width,e.height=n*o,e.top=(r.height-e.height)/2,e.bottom=e.top+e.height):(e.height=e.bottom=r.height,e.width=t*a,e.left=(r.width-e.width)/2,e.right=e.left+e.width),e}},{key:"updateValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.props.onChange,n=e.x,r=e.y,o={x:parseFloat(n).toFixed(2),y:parseFloat(r).toFixed(2)};this.setState({percentages:o},(function(){t(o)}))}},{key:"updateBounds",value:function(){this.setState({bounds:this.calculateBounds()})}},{key:"handleOnClick",value:function(e){var t=this;e.persist(),this.setState({isDragging:!0},(function(){t.onMouseMove(e)}))}},{key:"handleOnMouseUp",value:function(){this.setState({isDragging:!1})}},{key:"handleOnKeyDown",value:function(e){var t=e.keyCode,n=e.shiftKey;if([Zr.UP,Zr.DOWN,Zr.LEFT,Zr.RIGHT].includes(t)){var r=this.state.percentages,o=r.x,a=r.y;e.preventDefault();var i=parseFloat(o),c=parseFloat(a),s=n?.1:.01;switch(e.keyCode){case Zr.UP:c-=s;break;case Zr.DOWN:c+=s;break;case Zr.LEFT:i-=s;break;case Zr.RIGHT:i+=s}var u={x:i=jo(i,0,1,s),y:c=jo(c,0,1,s)};this.updateValue(u)}}},{key:"onMouseMove",value:function(e){var t=this.state,n=t.isDragging,r=t.bounds;if(n){e.preventDefault();var o=e.shiftKey,a=this.pickerDimensions(),i={left:e.pageX-a.left,top:e.pageY-a.top},c=Math.max(r.left,Math.min(i.left,r.right)),s=Math.max(r.top,Math.min(i.top,r.bottom)),u=(c-r.left)/(a.width-2*r.left),l=(s-r.top)/(a.height-2*r.top),d=o?.1:.01,f={x:u=jo(u,0,1,d),y:l=jo(l,0,1,d)};this.updateValue(f)}}},{key:"pickerDimensions",value:function(){var e=this.containerRef.current;if(!e)return{width:0,height:0,left:0,top:0};var t=e.clientHeight,n=e.clientWidth,r=e.getBoundingClientRect(),o=r.top,a=r.left;return{width:n,height:t,top:o+document.body.scrollTop,left:a}}},{key:"iconCoordinates",value:function(){var e=this.props.value,t=this.state.bounds;if(void 0===t.left||void 0===t.top)return{left:"50%",top:"50%"};var n=this.pickerDimensions(),r={left:e.x*(n.width-2*t.left)+t.left,top:e.y*(n.height-2*t.top)+t.top};return r}},{key:"handleFocusOutside",value:function(){this.setState({isDragging:!1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.autoPlay,r=t.className,o=t.help,a=t.instanceId,i=t.label,s=t.onDragStart,u=t.onDragEnd,f=t.url,p=this.state,b=p.bounds,h=p.isDragging,v=p.percentages,m=this.iconCoordinates(),y=l()("components-focal-point-picker-control",r),g="inspector-focal-point-picker-control-".concat(a);return Object(c.createElement)(kt,{label:i,id:g,help:o,className:y},Object(c.createElement)(ol,{className:"components-focal-point-picker-wrapper"},Object(c.createElement)(al,{className:"components-focal-point-picker",onDragStart:function(t){e.setState({isDragging:!0}),s(t)},onDrop:function(t){e.setState({isDragging:!1}),u(t)},onKeyDown:this.handleOnKeyDown,onMouseDown:this.handleOnClick,onMouseMove:this.onMouseMove,onMouseUp:this.handleOnMouseUp,ref:this.containerRef,role:"button",tabIndex:"-1"},Object(c.createElement)(Pl,{bounds:b,value:v.x+v.y}),Object(c.createElement)(Dl,{alt:Object(d.__)("Media preview"),autoPlay:n,mediaRef:this.mediaRef,onLoad:this.updateBounds,src:f}),Object(c.createElement)(El,{coordinates:m,isDragging:h}))),Object(c.createElement)(gl,{percentages:v,onChange:this.updateValue}))}}]),n}(c.Component);Il.defaultProps={autoPlay:!0,onDragStart:s.noop,onDragEnd:s.noop,onChange:s.noop,value:{x:.5,y:.5},url:null};var Rl=Object(f.compose)([f.withInstanceId,zc])(Il);function Nl(e){var t=e.iframeRef,n=e.onFocus,r=Object(i.a)(e,["iframeRef","onFocus"]),a=Object(c.useRef)(),s=t||a;return Object(c.useEffect)((function(){var e=s.current,t=e.ownerDocument,r=t.defaultView,o=r.FocusEvent;function a(){if(t.activeElement===e){var r=new o("focus",{bubbles:!0});e.dispatchEvent(r),n&&n(r)}}return r.addEventListener("blur",a),function(){r.removeEventListener("blur",a)}}),[n]),Object(c.createElement)("iframe",Object(o.a)({ref:s},r))}var Al=n(222);function Ll(e,t,n){return"number"!=typeof e?null:parseFloat(Object(s.clamp)(e,t,n))}var Fl={name:"tdik1c",styles:"height:30px;min-height:30px;"},zl=function(){return Fl},Bl=R("div",{target:"exqw8y20",label:"Root"})({name:"44oaj8",styles:"-webkit-tap-highlight-color:transparent;box-sizing:border-box;align-items:flex-start;display:inline-flex;justify-content:flex-start;padding:0;position:relative;touch-action:none;width:100%;"}),Hl=R("div",{target:"exqw8y21",label:"Wrapper"})("box-sizing:border-box;color:",J("blue.medium.focus"),";display:block;flex:1;padding-top:15px;position:relative;width:100%;",(function(e){var t=e.color,n=void 0===t?J("ui.borderFocus"):t;return Object(S.b)({color:n},"")}),";",zl,";",(function(e){var t=e.marks;return Object(S.b)({marginBottom:t?16:null},"")}),";",hn({marginLeft:10}),""),Vl=R("span",{target:"exqw8y22",label:"BeforeIconWrapper"})("margin-top:3px;",hn({marginRight:6}),""),Kl=R("span",{target:"exqw8y23",label:"AfterIconWrapper"})("margin-top:3px;",hn({marginLeft:16}),""),Wl=R("span",{target:"exqw8y24",label:"Rail"})("background-color:",J("lightGray.600"),";box-sizing:border-box;left:0;pointer-events:none;right:0;display:block;height:3px;position:absolute;margin-top:14px;top:0;",(function(e){var t=e.disabled,n=e.railColor||null;return t&&(n=J("lightGray.400")),Object(S.b)({background:n},"")}),";"),Ul=R("span",{target:"exqw8y25",label:"Track"})("background-color:currentColor;border-radius:1px;box-sizing:border-box;height:3px;pointer-events:none;display:block;position:absolute;margin-top:14px;top:0;",(function(e){var t=e.disabled,n=e.trackColor||"currentColor";return t&&(n=J("lightGray.800")),Object(S.b)({background:n},"")}),";"),Gl=R("span",{target:"exqw8y26",label:"MarksWrapper"})({name:"8d21nl",styles:"box-sizing:border-box;display:block;pointer-events:none;position:relative;width:100%;user-select:none;"}),$l=R("span",{target:"exqw8y27",label:"Mark"})("box-sizing:border-box;height:9px;left:0;position:absolute;top:-4px;width:1px;",(function(e){var t=e.disabled,n=e.isFilled?"currentColor":J("lightGray.600");return t&&(n=J("lightGray.800")),Object(S.b)({backgroundColor:n},"")}),";"),ql=R("span",{target:"exqw8y28",label:"MarkLabel"})("box-sizing:border-box;color:",J("lightGray.600"),";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;",(function(e){var t=e.isFilled;return Object(S.b)({color:J(t?"darkGray.300":"lightGray.600")},"")}),";"),Yl=R("span",{target:"exqw8y29",label:"ThumbWrapper"})("align-items:center;box-sizing:border-box;display:flex;height:",20,"px;justify-content:center;margin-top:5px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:",20,"px;",hn({marginLeft:-10}),""),Xl=R("span",{target:"exqw8y210",label:"Thumb"})("align-items:center;background-color:white;border-radius:50%;border:1px solid ",J("darkGray.200"),";box-sizing:border-box;height:100%;outline:0;position:absolute;user-select:none;width:100%;",(function(e){var t=e.isFocused;return Object(S.b)({borderColor:J(t?"ui.borderFocus":"darkGray.200"),boxShadow:t?"\n\t\t\t\t0 0 0 1px ".concat(J("ui.borderFocus"),"\n\t\t\t"):"\n\t\t\t\t0 0 0 rgba(0, 0, 0, 0)\n\t\t\t"},"")}),";"),Zl=R("input",{target:"exqw8y211",label:"InputRange"})("box-sizing:border-box;cursor:pointer;display:block;height:100%;left:0;margin:0 -",10,"px;opacity:0;outline:none;position:absolute;right:0;top:0;width:calc( 100% + ",20,"px );"),Jl={name:"5qqmyx",styles:"top:-80%;"},Ql={name:"eda4eg",styles:"bottom:-80%;"},ed=R("span",{target:"exqw8y212",label:"Tooltip"})("background:",J("ui.border"),";border-radius:2px;box-sizing:border-box;color:white;display:inline-block;font-size:12px;min-width:32px;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;text-align:center;transition:opacity 120ms ease;user-select:none;line-height:1.4;",(function(e){var t=e.show;return Object(S.b)({opacity:t?1:0},"")}),";",(function(e){return"top"===e.position?Jl:Ql}),";",Q("transition"),";",hn({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),""),td=R(_o,{target:"exqw8y213",label:"InputNumber"})("box-sizing:border-box;display:inline-block;font-size:13px;margin-top:0;width:",yt(8),";input[type='number']&{",zl,";}",hn({marginLeft:yt(2)}),""),nd=R("span",{target:"exqw8y214",label:"ActionRightWrapper"})("box-sizing:border-box;display:block;margin-top:0;button,button.is-small{margin-left:0;",zl,";}",hn({marginLeft:8}),"");var rd=Object(c.forwardRef)((function(e,t){var n=e.describedBy,r=e.isShiftStepEnabled,u=void 0===r||r,l=e.label,d=e.onHideTooltip,f=void 0===d?s.noop:d,p=e.onMouseLeave,b=void 0===p?s.noop:p,h=e.step,v=void 0===h?1:h,m=e.onBlur,y=void 0===m?s.noop:m,g=e.onChange,O=void 0===g?s.noop:g,j=e.onFocus,w=void 0===j?s.noop:j,_=e.onMouseMove,k=void 0===_?s.noop:_,E=e.onShowTooltip,S=void 0===E?s.noop:E,x=e.shiftStep,C=void 0===x?10:x,P=e.value,D=Object(i.a)(e,["describedBy","isShiftStepEnabled","label","onHideTooltip","onMouseLeave","step","onBlur","onChange","onFocus","onMouseMove","onShowTooltip","shiftStep","value"]),M=wo({step:v,shiftStep:C,isShiftStepEnabled:u}),T=function(e){var t=e.onHide,n=void 0===t?s.noop:t,r=e.onMouseLeave,o=void 0===r?s.noop:r,i=e.onMouseMove,u=void 0===i?s.noop:i,l=e.onShow,d=void 0===l?s.noop:l,f=e.timeout,p=void 0===f?300:f,b=Object(c.useState)(!1),h=Object(a.a)(b,2),v=h[0],m=h[1],y=Object(c.useRef)(),g=Object(c.useCallback)((function(e){window.clearTimeout(y.current),y.current=setTimeout(e,p)}),[p]),O=Object(c.useCallback)((function(e){u(e),g((function(){v||(m(!0),d())}))}),[]),j=Object(c.useCallback)((function(e){o(e),g((function(){m(!1),n()}))}),[]);return Object(c.useEffect)((function(){return function(){window.clearTimeout(y.current)}})),{onMouseMove:O,onMouseLeave:j}}({onHide:f,onMouseLeave:b,onMouseMove:k,onShow:S});return Object(c.createElement)(Zl,Object(o.a)({},D,T,{"aria-describedby":n,"aria-label":l,"aria-hidden":!1,onBlur:y,onChange:O,onFocus:w,ref:t,step:M,tabIndex:0,type:"range",value:P}))}));function od(e){var t=e.className,n=e.isFilled,r=void 0!==n&&n,a=e.label,s=e.style,u=void 0===s?{}:s,d=Object(i.a)(e,["className","isFilled","label","style"]),f=l()("components-range-control__mark",r&&"is-filled",t),p=l()("components-range-control__mark-label",r&&"is-filled");return Object(c.createElement)(c.Fragment,null,Object(c.createElement)($l,Object(o.a)({},d,{"aria-hidden":"true",className:f,isFilled:r,style:u})),a&&Object(c.createElement)(ql,{"aria-hidden":"true",className:p,isFilled:r,style:u},a))}function ad(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function id(e){for(var t=1;tt.push({value:c*t.length+r}););}var p=[];return t.forEach((function(e,t){if(!(e.valuea)){var n="mark-".concat(t),o=e.value<=u,i="".concat((e.value-r)/l*100,"%"),c=Object(L.a)({},Object(d.isRTL)()?"right":"left",i);p.push(id(id({},e),{},{isFilled:o,key:n,style:c}))}})),p}({marks:a,min:s,max:l,step:p,value:void 0===b?0:b});return Object(c.createElement)(Gl,{"aria-hidden":"true",className:"components-range-control__marks"},h.map((function(e){return Object(c.createElement)(od,Object(o.a)({},e,{key:e.key,"aria-hidden":"true",disabled:n}))})))}function ud(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ld(e){for(var t=1;tD)&&(e=Ll(e,T,D)),A(e),ue.current=!1)},shiftStep:X,step:Q,value:we}),b&&Object(c.createElement)(nd,null,Object(c.createElement)(To.a,{className:"components-range-control__reset",disabled:j||void 0===ce,isSecondary:!0,isSmall:!0,onClick:Me},Object(d.__)("Reset")))))}));var pd="default";var bd=rn((function e(t,n){var r,a=t.fallbackFontSize,i=t.fontSizes,u=void 0===i?[]:i,l=t.disableCustomFontSizes,p=void 0!==l&&l,b=t.onChange,v=t.value,m=t.withSlider,y=void 0!==m&&m,g=Object(s.isString)(v)||u[0]&&Object(s.isString)(u[0].size);r=g?parseInt(v):v;var O=Object(s.isNumber)(v)||Object(s.isString)(v)&&v.endsWith("px"),j=Object(f.useInstanceId)(e),w=Object(c.useMemo)((function(){return function(e,t){return t&&!e.length?null:(e=[{slug:pd,name:Object(d.__)("Default")}].concat(Object(Do.a)(e),Object(Do.a)(t?[]:[{slug:"custom",name:Object(d.__)("Custom")}]))).map((function(e){return{key:e.slug,name:e.name,size:e.size,style:{fontSize:"min( ".concat(e.size,", ").concat("25px"," )")}}}))}(u,p)}),[u,p]);if(!w)return null;var _=function(e,t){if(t){var n=e.find((function(e){return e.size===t}));return n?n.slug:"custom"}return pd}(u,v),k="components-font-size-picker__number#".concat(j);return Object(c.createElement)("fieldset",Object(o.a)({className:"components-font-size-picker"},n?{}:{ref:n}),Object(c.createElement)(h.a,{as:"legend"},Object(d.__)("Font size")),Object(c.createElement)("div",{className:"components-font-size-picker__controls"},u.length>0&&Object(c.createElement)(Ws,{className:"components-font-size-picker__select",label:Object(d.__)("Font size"),options:w,value:w.find((function(e){return e.key===_})),onChange:function(e){var t=e.selectedItem;b(g?t.size:Number(t.size))}}),!y&&!p&&Object(c.createElement)("div",{className:"components-font-size-picker__number-container"},Object(c.createElement)("label",{htmlFor:k},Object(d.__)("Custom")),Object(c.createElement)("input",{id:k,className:"components-font-size-picker__number",type:"number",min:1,onChange:function(e){e.target.value||0===e.target.value?b(g?e.target.value+"px":Number(e.target.value)):b(void 0)},"aria-label":Object(d.__)("Custom"),value:O&&r||""})),Object(c.createElement)(To.a,{className:"components-color-palette__clear",disabled:void 0===v,onClick:function(){b(void 0)},isSmall:!0,isSecondary:!0},Object(d.__)("Reset"))),y&&Object(c.createElement)(fd,{className:"components-font-size-picker__custom-input",label:Object(d.__)("Custom Size"),value:O&&r||"",initialPosition:a,onChange:function(e){b(g?e+"px":e)},min:12,max:100,beforeIcon:Al.a,afterIcon:Al.a}))}),void 0,"WPComponentsFontSizePicker");var hd=function(e){var t=e.accept,n=e.children,r=e.multiple,a=void 0!==r&&r,s=e.onChange,u=e.render,l=Object(i.a)(e,["accept","children","multiple","onChange","render"]),d=Object(c.useRef)(),f=function(){d.current.click()},p=u?u({openFileDialog:f}):Object(c.createElement)(To.a,Object(o.a)({onClick:f},l),n);return Object(c.createElement)("div",{className:"components-form-file-upload"},p,Object(c.createElement)("input",{type:"file",ref:d,multiple:a,style:{display:"none"},accept:t,onChange:s}))};var vd=function(e){var t=e.className,n=e.checked,r=e.id,a=e.disabled,u=e.onChange,d=void 0===u?s.noop:u,f=Object(i.a)(e,["className","checked","id","disabled","onChange"]),p=l()("components-form-toggle",t,{"is-checked":n,"is-disabled":a});return Object(c.createElement)("span",{className:p},Object(c.createElement)("input",Object(o.a)({className:"components-form-toggle__input",id:r,type:"checkbox",checked:n,onChange:d,disabled:a},f)),Object(c.createElement)("span",{className:"components-form-toggle__track"}),Object(c.createElement)("span",{className:"components-form-toggle__thumb"}))},md=n(42);function yd(e){var t=e.value,n=e.status,r=e.title,o=e.displayTransform,a=e.isBorderless,i=void 0!==a&&a,u=e.disabled,p=void 0!==u&&u,b=e.onClickRemove,v=void 0===b?s.noop:b,m=e.onMouseEnter,y=e.onMouseLeave,g=e.messages,O=e.termPosition,j=e.termsCount,w=Object(f.useInstanceId)(yd),_=l()("components-form-token-field__token",{"is-error":"error"===n,"is-success":"success"===n,"is-validating":"validating"===n,"is-borderless":i,"is-disabled":p}),k=o(t),E=Object(d.sprintf)(Object(d.__)("%1$s (%2$s of %3$s)"),k,O,j);return Object(c.createElement)("span",{className:_,onMouseEnter:m,onMouseLeave:y,title:r},Object(c.createElement)("span",{className:"components-form-token-field__token-text",id:"components-form-token-field__token-text-".concat(w)},Object(c.createElement)(h.a,{as:"span"},E),Object(c.createElement)("span",{"aria-hidden":"true"},k)),Object(c.createElement)(To.a,{className:"components-form-token-field__remove-token",icon:Mc.a,onClick:!p&&function(){return v({value:t})},label:g.remove,"aria-describedby":"components-form-token-field__token-text-".concat(w)}))}function gd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Od(e){for(var t=1;t=0&&this.setState({selectedSuggestionIndex:t,selectedSuggestionScroll:!1})}},{key:"onSuggestionSelected",value:function(e){this.addNewToken(e)}},{key:"onInputChange",value:function(e){var t=e.value,n=this.props.tokenizeOnSpace?/[ ,\t]+/:/[,\t]+/,r=t.split(n),o=Object(s.last)(r)||"";r.length>1&&this.addNewTokens(r.slice(0,-1)),this.setState({incompleteTokenValue:o},this.updateSuggestions),this.props.onInputChange(o)}},{key:"handleDeleteKey",value:function(e){var t=!1;return this.input.hasFocus()&&this.isInputEmpty()&&(e(),t=!0),t}},{key:"handleLeftArrowKey",value:function(){var e=!1;return this.isInputEmpty()&&(this.moveInputBeforePreviousToken(),e=!0),e}},{key:"handleRightArrowKey",value:function(){var e=!1;return this.isInputEmpty()&&(this.moveInputAfterNextToken(),e=!0),e}},{key:"handleUpArrowKey",value:function(){var e=this;return this.setState((function(t,n){return{selectedSuggestionIndex:(0===t.selectedSuggestionIndex?e.getMatchingSuggestions(t.incompleteTokenValue,n.suggestions,n.value,n.maxSuggestions,n.saveTransform).length:t.selectedSuggestionIndex)-1,selectedSuggestionScroll:!0}})),!0}},{key:"handleDownArrowKey",value:function(){var e=this;return this.setState((function(t,n){return{selectedSuggestionIndex:(t.selectedSuggestionIndex+1)%e.getMatchingSuggestions(t.incompleteTokenValue,n.suggestions,n.value,n.maxSuggestions,n.saveTransform).length,selectedSuggestionScroll:!0}})),!0}},{key:"handleEscapeKey",value:function(e){return this.setState({incompleteTokenValue:e.target.value,isExpanded:!1,selectedSuggestionIndex:-1,selectedSuggestionScroll:!1}),!0}},{key:"handleCommaKey",value:function(){return this.inputHasValidValue()&&this.addNewToken(this.state.incompleteTokenValue),!0}},{key:"moveInputToIndex",value:function(e){this.setState((function(t,n){return{inputOffsetFromEnd:n.value.length-Math.max(e,-1)-1}}))}},{key:"moveInputBeforePreviousToken",value:function(){this.setState((function(e,t){return{inputOffsetFromEnd:Math.min(e.inputOffsetFromEnd+1,t.value.length)}}))}},{key:"moveInputAfterNextToken",value:function(){this.setState((function(e){return{inputOffsetFromEnd:Math.max(e.inputOffsetFromEnd-1,0)}}))}},{key:"deleteTokenBeforeInput",value:function(){var e=this.getIndexOfInput()-1;e>-1&&this.deleteToken(this.props.value[e])}},{key:"deleteTokenAfterInput",value:function(){var e=this.getIndexOfInput();e0){var r=Object(s.clone)(this.props.value);r.splice.apply(r,[this.getIndexOfInput(),0].concat(n)),this.props.onChange(r)}}},{key:"addNewToken",value:function(e){this.addNewTokens([e]),this.props.speak(this.props.messages.added,"assertive"),this.setState({incompleteTokenValue:"",selectedSuggestionIndex:-1,selectedSuggestionScroll:!1,isExpanded:!1}),this.state.isActive&&this.input.focus()}},{key:"deleteToken",value:function(e){var t=this,n=this.props.value.filter((function(n){return t.getTokenValue(n)!==t.getTokenValue(e)}));this.props.onChange(n),this.props.speak(this.props.messages.removed,"assertive")}},{key:"getTokenValue",value:function(e){return"object"===Object(md.a)(e)?e.value:e}},{key:"getMatchingSuggestions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.incompleteTokenValue,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.suggestions,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props.value,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.props.maxSuggestions,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.props.saveTransform,a=o(e),i=[],c=[];return 0===a.length?t=Object(s.difference)(t,n):(a=a.toLocaleLowerCase(),Object(s.each)(t,(function(e){var t=e.toLocaleLowerCase().indexOf(a);-1===n.indexOf(e)&&(0===t?i.push(e):t>0&&c.push(e))})),t=i.concat(c)),Object(s.take)(t,r)}},{key:"getSelectedSuggestion",value:function(){if(-1!==this.state.selectedSuggestionIndex)return this.getMatchingSuggestions()[this.state.selectedSuggestionIndex]}},{key:"valueContainsToken",value:function(e){var t=this;return Object(s.some)(this.props.value,(function(n){return t.getTokenValue(e)===t.getTokenValue(n)}))}},{key:"getIndexOfInput",value:function(){return this.props.value.length-this.state.inputOffsetFromEnd}},{key:"isInputEmpty",value:function(){return 0===this.state.incompleteTokenValue.length}},{key:"inputHasValidValue",value:function(){return this.props.saveTransform(this.state.incompleteTokenValue).length>0}},{key:"updateSuggestions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.state.incompleteTokenValue,n=t.trim().length>1,r=this.getMatchingSuggestions(t),o=r.length>0,a={isExpanded:n&&o};if(e&&(a.selectedSuggestionIndex=-1,a.selectedSuggestionScroll=!1),this.setState(a),n){var i=this.props.debouncedSpeak,c=o?Object(d.sprintf)(Object(d._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",r.length),r.length):Object(d.__)("No results.");i(c,"assertive")}}},{key:"renderTokensAndInput",value:function(){var e=Object(s.map)(this.props.value,this.renderToken);return e.splice(this.getIndexOfInput(),0,this.renderInput()),e}},{key:"renderToken",value:function(e,t,n){var r=this.getTokenValue(e),o=e.status?e.status:void 0,a=t+1,i=n.length;return Object(c.createElement)(yd,{key:"token-"+r,value:r,status:o,title:e.title,displayTransform:this.props.displayTransform,onClickRemove:this.onTokenClickRemove,isBorderless:e.isBorderless||this.props.isBorderless,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,disabled:"error"!==o&&this.props.disabled,messages:this.props.messages,termsCount:i,termPosition:a})}},{key:"renderInput",value:function(){var e=this.props,t=e.autoCapitalize,n=e.autoComplete,r=e.maxLength,o=e.value,a={instanceId:e.instanceId,autoCapitalize:t,autoComplete:n,ref:this.bindInput,key:"input",disabled:this.props.disabled,value:this.state.incompleteTokenValue,onBlur:this.onBlur,isExpanded:this.state.isExpanded,selectedSuggestionIndex:this.state.selectedSuggestionIndex};return r&&o.length>=r||(a=Od(Od({},a),{},{onChange:this.onInputChange})),Object(c.createElement)(Ic,a)}},{key:"render",value:function(){var e=this.props,t=e.disabled,n=e.label,r=void 0===n?Object(d.__)("Add item"):n,o=e.instanceId,a=e.className,i=this.state.isExpanded,s=l()(a,"components-form-token-field__input-container",{"is-active":this.state.isActive,"is-disabled":t}),u={className:"components-form-token-field",tabIndex:"-1"},f=this.getMatchingSuggestions();return t||(u=Object.assign({},u,{onKeyDown:this.onKeyDown,onKeyPress:this.onKeyPress,onFocus:this.onFocus})),Object(c.createElement)("div",u,Object(c.createElement)("label",{htmlFor:"components-form-token-input-".concat(o),className:"components-form-token-field__label"},r),Object(c.createElement)("div",{ref:this.bindTokensAndInput,className:s,tabIndex:"-1",onMouseDown:this.onContainerTouched,onTouchStart:this.onContainerTouched},this.renderTokensAndInput(),i&&Object(c.createElement)(Fc,{instanceId:o,match:this.props.saveTransform(this.state.incompleteTokenValue),displayTransform:this.props.displayTransform,suggestions:f,selectedIndex:this.state.selectedSuggestionIndex,scrollIntoView:this.state.selectedSuggestionScroll,onHover:this.onSuggestionHovered,onSelect:this.onSuggestionSelected})),Object(c.createElement)("p",{id:"components-form-token-suggestions-howto-".concat(o),className:"components-form-token-field__help"},this.props.tokenizeOnSpace?Object(d.__)("Separate with commas, spaces, or the Enter key."):Object(d.__)("Separate with commas or the Enter key.")))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.disabled&&t.isActive?{isActive:!1,incompleteTokenValue:""}:null}}]),n}(c.Component);_d.defaultProps={suggestions:Object.freeze([]),maxSuggestions:100,value:Object.freeze([]),displayTransform:s.identity,saveTransform:function(e){return e.trim()},onChange:function(){},onInputChange:function(){},isBorderless:!1,disabled:!1,tokenizeOnSpace:!1,messages:{added:Object(d.__)("Item added."),removed:Object(d.__)("Item removed."),remove:Object(d.__)("Remove item")}};var kd=No(Object(f.withInstanceId)(_d)),Ed={className:"components-custom-gradient-picker__color-picker-popover",position:"top"};function Sd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xd(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:0,o=e[t].position,a=Math.min(o,n),i=Math.max(o,n);return e.some((function(e,o){var c=e.position;return o!==t&&(Math.abs(c-n)=5&&(s.current.significantMoveHappened=!0),o(Dd(r,c,n))},l=function e(){window&&window.removeEventListener&&s.current&&s.current.listenersActivated&&(window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",e),i(),s.current.listenersActivated=!1)};return Object(c.useEffect)((function(){return function(){l()}}),[]),r.map((function(e,t){var f=null==e?void 0:e.position;return n!==f&&Object(c.createElement)(Ui,{key:t,onClose:i,renderToggle:function(n){var d=n.isOpen,p=n.onToggle;return Object(c.createElement)(Rd,{key:t,onClick:function(){s.current&&s.current.significantMoveHappened||(d?i():a(),p())},onMouseDown:function(){window&&window.addEventListener&&(s.current={initialPosition:f,index:t,significantMoveHappened:!1,listenersActivated:!0},a(),window.addEventListener("mousemove",u),window.addEventListener("mouseup",l))},isOpen:d,position:e.position,color:e.color,onChange:function(e){o(Dd(r,t,e))}})},renderContent:function(n){var a=n.onClose;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(kc,{color:e.color,onChangeComplete:function(e){var n=e.color;o(Md(r,t,n.toRgbString()))}}),Object(c.createElement)(To.a,{className:"components-custom-gradient-picker__remove-control-point",onClick:function(){o(function(e,t){return e.filter((function(e,n){return n!==t}))}(r,t)),a()},isLink:!0},Object(d.__)("Remove Control Point")))},popoverProps:Ed})}))}Nd.InsertPoint=function(e){var t=e.value,n=e.onChange,r=e.onOpenInserter,o=e.onCloseInserter,i=e.insertPosition,s=Object(c.useState)(!1),u=Object(a.a)(s,2),l=u[0],d=u[1];return Object(c.createElement)(Ui,{className:"components-custom-gradient-picker__inserter",onClose:function(){o()},renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(c.createElement)(To.a,{"aria-expanded":t,"aria-haspopup":"true",onClick:function(){t?o():(d(!1),r()),n()},className:"components-custom-gradient-picker__insert-point",icon:Wi.a,style:{left:null!==i?"".concat(i,"%"):void 0}})},renderContent:function(){return Object(c.createElement)(kc,{onChangeComplete:function(e){var r,o,a,c,s=e.color;l?n((r=t,o=i,a=s.toRgbString(),c=r.findIndex((function(e){return e.position===o})),Md(r,c,a))):(n(function(e,t,n){var r=e.findIndex((function(e){return e.position>t})),o={color:n,position:t},a=e.slice();return a.splice(r-1,0,o),a}(t,i,s.toRgbString())),d(!0))}})},popoverProps:Ed})};var Ad=Nd;function Ld(e,t){switch(t.type){case"MOVE_INSERTER":if("IDLE"===e.id||"MOVING_INSERTER"===e.id)return{id:"MOVING_INSERTER",insertPosition:t.insertPosition};break;case"STOP_INSERTER_MOVE":if("MOVING_INSERTER"===e.id)return{id:"IDLE"};break;case"OPEN_INSERTER":if("MOVING_INSERTER"===e.id)return{id:"INSERTING_CONTROL_POINT",insertPosition:e.insertPosition};break;case"CLOSE_INSERTER":if("INSERTING_CONTROL_POINT"===e.id)return{id:"IDLE"};break;case"START_CONTROL_CHANGE":if("IDLE"===e.id)return{id:"MOVING_CONTROL_POINT"};break;case"STOP_CONTROL_CHANGE":if("MOVING_CONTROL_POINT"===e.id)return{id:"IDLE"}}return e}var Fd={id:"IDLE"};function zd(e){var t=e.background,n=e.hasGradient,r=e.value,o=e.onChange,i=Object(c.useRef)(),u=Object(c.useReducer)(Ld,Fd),d=Object(a.a)(u,2),f=d[0],p=d[1],b=function(e){var t=Td(e.clientX,i.current,23);Object(s.some)(r,(function(e){var n=e.position;return Math.abs(t-n)<10}))?"MOVING_INSERTER"===f.id&&p({type:"STOP_INSERTER_MOVE"}):p({type:"MOVE_INSERTER",insertPosition:t})},h="MOVING_INSERTER"===f.id,v="INSERTING_CONTROL_POINT"===f.id;return Object(c.createElement)("div",{ref:i,className:l()("components-custom-gradient-picker__gradient-bar",{"has-gradient":n}),onMouseEnter:b,onMouseMove:b,style:{background:t},onMouseLeave:function(){p({type:"STOP_INSERTER_MOVE"})}},Object(c.createElement)("div",{className:"components-custom-gradient-picker__markers-container"},(h||v)&&Object(c.createElement)(Ad.InsertPoint,{insertPosition:f.insertPosition,value:r,onChange:o,onOpenInserter:function(){p({type:"OPEN_INSERTER"})},onCloseInserter:function(){p({type:"CLOSE_INSERTER"})}}),Object(c.createElement)(Ad,{gradientPickerDomRef:i,ignoreMarkerPosition:v?f.insertPosition:void 0,value:r,onChange:o,onStartControlPointChange:function(){p({type:"START_CONTROL_CHANGE"})},onStopControlPointChange:function(){p({type:"STOP_CONTROL_CHANGE"})}})))}var Bd=n(207),Hd=n.n(Bd),Vd="linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)",Kd={type:"angular",value:90},Wd=[{value:"linear-gradient",label:Object(d.__)("Linear")},{value:"radial-gradient",label:Object(d.__)("Radial")}],Ud={top:0,"top right":45,"right top":45,right:90,"right bottom":135,"bottom right":135,bottom:180,"bottom left":225,"left bottom":225,left:270,"top left":315,"left top":315};function Gd(e){var t=e.type,n=e.value,r=e.length;return"".concat(function(e){var t=e.type,n=e.value;return"literal"===t?n:"hex"===t?"#".concat(n):"".concat(t,"(").concat(n.join(","),")")}({type:t,value:n})," ").concat(function(e){if(!e)return"";var t=e.value,n=e.type;return"".concat(t).concat(n)}(r))}function $d(e){var t=e.type,n=e.orientation,r=e.colorStops,o=function(e){if(e&&"angular"===e.type)return"".concat(e.value,"deg")}(n),a=r.sort((function(e,t){return Object(s.get)(e,["length","value"],0)-Object(s.get)(t,["length","value"],0)})).map(Gd);return"".concat(t,"(").concat(Object(s.compact)([o].concat(Object(Do.a)(a))).join(","),")")}function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yd(e){for(var t=1;t",{alternative:"the `pages` prop"})}),[t]),c.Children.count(t)&&(u=c.Children.map(t,(function(e){return{content:e}})));var v=b>0,m=b",{alternative:"the `pages` prop in "})}),[]),Object(c.createElement)("div",e)}var xf=Object(c.forwardRef)((function(e,t){var n=e.labelPosition,r=e.size,a=e.tooltip,s=e.label,u=Object(i.a)(e,["labelPosition","size","tooltip","label"]);return Ku()("wp.components.IconButton",{alternative:"wp.components.Button"}),Object(c.createElement)(To.a,Object(o.a)({},u,{ref:t,tooltipPosition:n,iconSize:r,showTooltip:void 0!==a?!!a:void 0,label:a||s}))}));var Cf=function e(t){var n=t.children,r=t.className,o=void 0===r?"":r,a=t.label,i=Object(f.useInstanceId)(e);if(!c.Children.count(n))return null;var s="components-menu-group-label-".concat(i),u=l()(o,"components-menu-group");return Object(c.createElement)("div",{className:u},a&&Object(c.createElement)("div",{className:"components-menu-group__label",id:s,"aria-hidden":"true"},a),Object(c.createElement)("div",{role:"group","aria-labelledby":a?s:null},n))},Pf=n(178);var Df=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.info,a=e.className,u=e.icon,d=e.shortcut,f=e.isSelected,p=e.role,b=void 0===p?"menuitem":p,h=Object(i.a)(e,["children","info","className","icon","shortcut","isSelected","role"]);return a=l()("components-menu-item__button",a),r&&(n=Object(c.createElement)("span",{className:"components-menu-item__info-wrapper"},Object(c.createElement)("span",{className:"components-menu-item__item"},n),Object(c.createElement)("span",{className:"components-menu-item__info"},r))),u&&!Object(s.isString)(u)&&(u=Object(c.cloneElement)(u,{className:"components-menu-items__item-icon"})),Object(c.createElement)(To.a,Object(o.a)({ref:t,"aria-checked":"menuitemcheckbox"===b||"menuitemradio"===b?f:void 0,role:b,className:a},h),Object(c.createElement)("span",{className:"components-menu-item__item"},n),Object(c.createElement)(Pf.a,{className:"components-menu-item__shortcut",shortcut:d}),u&&Object(c.createElement)(ou.a,{icon:u}))}));function Mf(e){var t=e.choices,n=void 0===t?[]:t,r=e.onHover,o=void 0===r?s.noop:r,a=e.onSelect,i=e.value;return n.map((function(e){var t=i===e.value;return Object(c.createElement)(Df,{key:e.value,role:"menuitemradio",icon:t&&Li.a,info:e.info,isSelected:t,shortcut:e.shortcut,className:"components-menu-items-choice",onClick:function(){t||a(e.value)},onMouseEnter:function(){return o(e.value)},onMouseLeave:function(){return o(null)}},e.label)}))}var Tf=n(168);var If=Object(c.forwardRef)((function(e,t){var n=e.eventToOffset,r=Object(i.a)(e,["eventToOffset"]);return Object(c.createElement)(Yu,Object(o.a)({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!0,eventToOffset:function(e){var t=e.keyCode,r=e.shiftKey;return Zr.TAB===t?r?-1:1:n?n(e):void 0}},r))})),Rf=Object(c.createContext)({activeItem:void 0,activeMenu:"root",setActiveMenu:s.noop,isMenuEmpty:s.noop,navigationTree:{items:{},getItem:s.noop,addItem:s.noop,removeItem:s.noop,menus:{},getMenu:s.noop,addMenu:s.noop,removeMenu:s.noop,childMenu:{},traverseMenu:s.noop,isMenuEmpty:s.noop}}),Nf=function(){return Object(c.useContext)(Rf)};var Af=R("div",{target:"ejwewyf0",label:"NavigationUI"})("width:100%;background-color:",H.darkGray.primary,";box-sizing:border-box;color:#f0f0f0;padding:0 ",yt(1),";overflow:hidden;"),Lf=R("div",{target:"ejwewyf1",label:"MenuUI"})("margin-top:",yt(3),";margin-bottom:",yt(3),";display:flex;flex-direction:column;ul{padding:0;margin:0;list-style:none;}.components-navigation__back-button{margin-bottom:",yt(3),";}.components-navigation__group + .components-navigation__group{margin-top:",yt(3),";}"),Ff=R(To.a,{target:"ejwewyf2",label:"MenuBackButtonUI"})("&.is-tertiary{color:",H.lightGray.ui,";&:hover:not(:disabled ){color:#ddd;box-shadow:none;}&:active:not(:disabled ){background:transparent;color:#ddd;}}"),zf=R("div",{target:"ejwewyf3",label:"MenuTitleUI"})({name:"16agjqd",styles:"overflow:hidden;width:100%;"}),Bf=R(sn,{target:"ejwewyf4",label:"MenuTitleHeadingUI"})("align-items:center;color:",H.gray[100],";display:flex;justify-content:space-between;margin-bottom:",yt(1),";padding:",(function(){return Object(d.isRTL)()?"".concat(yt(.5)," ").concat(yt(2)," ").concat(yt(.5)," ").concat(yt(1.5)):"".concat(yt(.5)," ").concat(yt(1.5)," ").concat(yt(.5)," ").concat(yt(2))}),";"),Hf=R("span",{target:"ejwewyf5",label:"MenuTitleActionsUI"})("height:",yt(3),";.components-button.is-small{color:",H.lightGray.ui,";margin-right:",yt(.5),";padding:0;&:active:not(:disabled ){background:none;color:",H.gray[200],";}&:hover:not(:disabled ){box-shadow:none;color:",H.gray[200],";}}"),Vf=R("div",{target:"ejwewyf6",label:"MenuTitleSearchUI"})("padding:0;position:relative;input{height:",yt(4.5),";margin-bottom:",yt(1),";padding-left:",yt(4),";padding-right:",yt(4),";&::-webkit-search-decoration,&::-webkit-search-cancel-button,&::-webkit-search-results-button,&::-webkit-search-results-decoration{-webkit-appearance:none;}}> svg{left:",yt(.5),";position:absolute;top:6px;}.components-button.is-small{height:30px;padding:0;position:absolute;right:",yt(1),";top:3px;&:active:not(:disabled ){background:none;}&:hover:not(:disabled ){box-shadow:none;}}"),Kf=R(sn,{target:"ejwewyf7",label:"GroupTitleUI"})("margin-top:",yt(1),";padding:",(function(){return Object(d.isRTL)()?"".concat(yt(.5)," ").concat(yt(2)," ").concat(yt(.5)," 0"):"".concat(yt(.5)," 0 ").concat(yt(.5)," ").concat(yt(2))}),";text-transform:uppercase;color:",H.gray[100],";"),Wf=R("li",{target:"ejwewyf8",label:"ItemBaseUI"})("border-radius:2px;color:",H.lightGray.ui,";margin-bottom:0;button,a{width:100%;&:hover,&:focus:not( [aria-disabled='true'] ):active,&:active:not( [aria-disabled='true'] ):active{color:#ddd;}}&.is-active{background-color:",Y.theme,";color:",Y.textDark,";button,a{color:",Y.textDark,";}}svg path{color:",H.lightGray.ui,";}"),Uf=R("div",{target:"ejwewyf9",label:"ItemUI"})("display:flex;align-items:center;height:auto;min-height:32px;margin:0;padding:",yt(.75)," ",yt(2),";font-weight:400;line-height:20px;width:100%;color:",H.lightGray.ui,";"),Gf=R("span",{target:"ejwewyf10",label:"ItemBadgeUI"})("margin-left:",(function(){return Object(d.isRTL)()?"0":yt(1)}),";margin-right:",(function(){return Object(d.isRTL)()?yt(1):"0"}),";display:inline-flex;padding:",yt(.5)," ",yt(1.5),";border-radius:2px;animation:fade-in 250ms ease-out;@keyframes fade-in{from{opacity:0;}to{opacity:1;}}",Q("animation"),";"),$f=R(sn,{target:"ejwewyf11",label:"ItemTitleUI"})((function(){return Object(d.isRTL)()?"margin-left: auto;":"margin-right: auto;"})," font-size:13px;");function qf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yf(e){for(var t=1;t0&&(!(n=u(a.shift()))||o.includes(n.menu)||(o.push(n.menu),a=[].concat(Object(Do.a)(a),Object(Do.a)((r=n.menu,b[r]||[]))),!1!==t(n))););};return{items:t,getItem:n,addItem:r,removeItem:o,menus:s,getMenu:u,addMenu:function(e,t){h((function(n){var r=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:w;j.getMenu(e)&&(O(t),v(e),f(e))},k=Object(c.useRef)(!1);Object(c.useEffect)((function(){k.current||(k.current=!0)}),[]),Object(c.useEffect)((function(){r!==h&&_(r)}),[r]);var E={activeItem:t,activeMenu:h,setActiveMenu:_,navigationTree:j},S=l()("components-navigation",i),x=Object(ht.b)({type:"slide-in",origin:g});return Object(c.createElement)(Af,{className:S},Object(c.createElement)("div",{key:h,className:l()(Object(L.a)({},x,k.current&&g))},Object(c.createElement)(Rf.Provider,{value:E},o)))}var ep=n(218),tp=n(219);var np=Object(c.forwardRef)((function(e,t){var n,r=e.backButtonLabel,o=e.className,a=e.href,i=e.onClick,s=e.parentMenu,u=Nf(),f=u.setActiveMenu,p=u.navigationTree,b=l()("components-navigation__back-button",o),h=null===(n=p.getMenu(s))||void 0===n?void 0:n.title,v=Object(d.isRTL)()?ep.a:tp.a;return Object(c.createElement)(Ff,{className:b,href:a,isTertiary:!0,ref:t,onClick:function(e){"function"==typeof i&&i(e);var t=Object(d.isRTL)()?"left":"right";s&&!e.defaultPrevented&&f(s,t)}},Object(c.createElement)(Ai.a,{icon:v}),r||h||Object(d.__)("Back"))})),rp=Object(c.createContext)({group:void 0});function op(e){var t=e.children,n=e.className,r=e.title,o=Object(c.useState)(Object(s.uniqueId)("group-")),i=Object(a.a)(o,1)[0],u=Nf().navigationTree.items,d={group:i};if(!Object(s.find)(u,{group:i,_isVisible:!0}))return Object(c.createElement)(rp.Provider,{value:d},t);var f="components-navigation__group-title-".concat(i),p=l()("components-navigation__group",n);return Object(c.createElement)(rp.Provider,{value:d},Object(c.createElement)("li",{className:p},r&&Object(c.createElement)(Kf,{as:"h3",className:"components-navigation__group-title",id:f,variant:"caption"},r),Object(c.createElement)("ul",{"aria-labelledby":f,role:"group"},t)))}function ap(e){var t=e.badge,n=e.title;return Object(c.createElement)(c.Fragment,null,n&&Object(c.createElement)($f,{className:"components-navigation__item-title",variant:"body.small",as:"span"},n),t&&Object(c.createElement)(Gf,{className:"components-navigation__item-badge"},t))}var ip=Object(c.createContext)({menu:void 0,search:""}),cp=function(){return Object(c.useContext)(ip)},sp=function(e){return Object(s.deburr)(e).replace(/^\//,"").toLowerCase()};function up(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lp(e){for(var t=1;t=320,"is-medium":O>=160&&O<320,"is-small":O<160});var j=l()("components-placeholder",d,t),w=l()("components-placeholder__fieldset",{"is-column-layout":h});return Object(c.createElement)("div",Object(o.a)({},v,{className:j}),g,p,b&&Object(c.createElement)("div",{className:"components-placeholder__preview"},b),Object(c.createElement)("div",{className:"components-placeholder__label"},Object(c.createElement)(ou.a,{icon:n}),s),!!u&&Object(c.createElement)("div",{className:"components-placeholder__instructions"},u),Object(c.createElement)("div",{className:w},r))};function Mp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tp(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0;return Object(s.flatMap)(t,(function(t){return[{value:t.id,label:Object(s.repeat)(" ",3*n)+Object(s.unescape)(t.name)}].concat(Object(Do.a)(e(t.children||[],n+1)))}))}(u))))}),[n,u]);return Object(c.createElement)(su,Object(o.a)({label:t,options:d,onChange:r},{value:a},l))}function Np(e){var t=e.label,n=e.noOptionLabel,r=e.categoriesList,a=e.selectedCategoryId,s=e.onChange,u=Object(i.a)(e,["label","noOptionLabel","categoriesList","selectedCategoryId","onChange"]),l=Object(c.useMemo)((function(){return Ip(r)}),[r]);return Object(c.createElement)(Rp,Object(o.a)({label:t,noOptionLabel:n,onChange:s},{tree:l,selectedId:a},u))}function Ap(e){var t=e.label,n=e.noOptionLabel,r=e.authorList,a=e.selectedAuthorId,i=e.onChange;if(!r)return null;var s=Ip(r);return Object(c.createElement)(Rp,Object(o.a)({label:t,noOptionLabel:n,onChange:i},{tree:s,selectedId:a}))}function Lp(e){var t=e.authorList,n=e.selectedAuthorId,r=e.categoriesList,o=e.selectedCategoryId,i=e.categorySuggestions,s=e.selectedCategories,u=e.numberOfItems,l=e.order,f=e.orderBy,p=e.maxItems,b=void 0===p?100:p,h=e.minItems,v=void 0===h?1:h,m=e.onCategoryChange,y=e.onAuthorChange,g=e.onNumberOfItemsChange,O=e.onOrderChange,j=e.onOrderByChange;return[O&&j&&Object(c.createElement)(su,{key:"query-controls-order-select",label:Object(d.__)("Order by"),value:"".concat(f,"/").concat(l),options:[{label:Object(d.__)("Newest to oldest"),value:"date/desc"},{label:Object(d.__)("Oldest to newest"),value:"date/asc"},{label:Object(d.__)("A → Z"),value:"title/asc"},{label:Object(d.__)("Z → A"),value:"title/desc"}],onChange:function(e){var t=e.split("/"),n=Object(a.a)(t,2),r=n[0],o=n[1];o!==l&&O(o),r!==f&&j(r)}}),r&&m&&Object(c.createElement)(Np,{key:"query-controls-category-select",categoriesList:r,label:Object(d.__)("Category"),noOptionLabel:Object(d.__)("All"),selectedCategoryId:o,onChange:m}),i&&m&&Object(c.createElement)(kd,{key:"query-controls-categories-select",label:Object(d.__)("Categories"),value:s&&s.map((function(e){return{id:e.id,value:e.name||e.value}})),suggestions:Object.keys(i),onChange:m,maxSuggestions:20}),y&&Object(c.createElement)(Ap,{key:"query-controls-author-select",authorList:t,label:Object(d.__)("Author"),noOptionLabel:Object(d.__)("All"),selectedAuthorId:n,onChange:y}),g&&Object(c.createElement)(fd,{key:"query-controls-range-control",label:Object(d.__)("Number of items"),value:u,onChange:g,min:v,max:b,required:!0})]}n(162);var Fp=["baseId","unstable_idCountRef","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","state","setBaseId","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget","setState"],zp=[].concat(Fp,["value","checked","unstable_checkOnFocus"]),Bp=Fp;function Hp(e){return void 0!==e.checked?e.checked:void 0!==e.value&&e.state===e.value}function Vp(e,t){var n=Object(We.a)(e,"change");Object.defineProperties(n,{type:{value:"change"},target:{value:e},currentTarget:{value:e}}),null==t||t(n)}var Kp=Object(Ae.a)({name:"Radio",compose:p.b,keys:zp,useOptions:function(e,t){var n,r=t.value,o=t.checked,a=e.unstable_clickOnEnter,i=void 0!==a&&a,c=e.unstable_checkOnFocus,s=void 0===c||c,u=Object(se.a)(e,["unstable_clickOnEnter","unstable_checkOnFocus"]);return Object(se.b)(Object(se.b)({checked:o,unstable_clickOnEnter:i,unstable_checkOnFocus:s},u),{},{value:null!=(n=u.value)?n:r})},useProps:function(e,t){var n=t.ref,r=t.onChange,o=t.onClick,a=Object(se.a)(t,["ref","onChange","onClick"]),i=Object(_.useRef)(null),c=Object(_.useState)(!0),s=c[0],u=c[1],l=Hp(e),d=Object(Fe.a)(e.currentId===e.id),f=Object(Fe.a)(r),p=Object(Fe.a)(o);!function(e){var t=Object(_.useState)((function(){return Hp(e)}))[0],n=Object(_.useState)(e.currentId)[0],r=e.id,o=e.setCurrentId;Object(_.useEffect)((function(){t&&r&&n!==r&&(null==o||o(r))}),[t,r,o,n])}(e),Object(_.useEffect)((function(){var e=i.current;e&&("INPUT"===e.tagName&&"radio"===e.type||u(!1))}),[]);var b=Object(_.useCallback)((function(t){var n,r;null===(n=f.current)||void 0===n||n.call(f,t),t.defaultPrevented||e.disabled||null===(r=e.setState)||void 0===r||r.call(e,e.value)}),[e.disabled,e.setState,e.value]),h=Object(_.useCallback)((function(e){var t;null===(t=p.current)||void 0===t||t.call(p,e),e.defaultPrevented||s||Vp(e.currentTarget,b)}),[b,s]);return Object(_.useEffect)((function(){var t=i.current;t&&e.unstable_moves&&d.current&&e.unstable_checkOnFocus&&Vp(t,b)}),[e.unstable_moves,e.unstable_checkOnFocus,b]),Object(se.b)({ref:Object(Le.a)(i,n),role:s?void 0:"radio",type:s?"radio":void 0,value:s?e.value:void 0,name:s?e.baseId:void 0,"aria-checked":l,checked:l,onChange:b,onClick:h},a)}}),Wp=Object(Ne.a)({as:"input",memo:!0,useHook:Kp}),Up=Object(c.createContext)({state:null,setState:function(){}});var Gp=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.value,a=Object(i.a)(e,["children","value"]),s=Object(c.useContext)(Up),u=s.state===r;return Object(c.createElement)(Wp,Object(o.a)({ref:t,as:To.a,isPrimary:u,isSecondary:!u,value:r},s,a),n||r)}));var $p=Object(Ae.a)({name:"RadioGroup",compose:rt,keys:Bp,useProps:function(e,t){return Object(se.b)({role:"radiogroup"},t)}}),qp=Object(Ne.a)({as:"div",useHook:$p,useCreateElement:function(e,t,n){return Object(Ve.a)(e,t,n)}});function Yp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xp(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0];if(w()){var t=p.current,r=t.contentDocument,a=t.ownerDocument,s=r.body;if(e||null===s.getAttribute("data-resizable-iframe-connected")){var l=Object(c.createElement)("html",{lang:a.documentElement.lang,className:i},Object(c.createElement)("head",null,Object(c.createElement)("title",null,o),Object(c.createElement)("style",{dangerouslySetInnerHTML:{__html:zb}}),u.map((function(e,t){return Object(c.createElement)("style",{key:t,dangerouslySetInnerHTML:{__html:e}})}))),Object(c.createElement)("body",{"data-resizable-iframe-connected":"data-resizable-iframe-connected",className:i},Object(c.createElement)("div",{dangerouslySetInnerHTML:{__html:n}}),Object(c.createElement)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:Fb}}),d.map((function(e){return Object(c.createElement)("script",{key:e,src:e})}))));r.open(),r.write(""+Object(c.renderToString)(l)),r.close()}}}return Object(c.useEffect)((function(){function e(){_(!1)}function t(e){var t=p.current;if(t&&t.contentWindow===e.source){var n=e.data||{};if("string"==typeof n)try{n=JSON.parse(n)}catch(e){}"resize"===n.action&&(m(n.width),j(n.height))}}_();var n=p.current.ownerDocument.defaultView;return p.current.addEventListener("load",e,!1),n.addEventListener("message",t),function(){p.current.removeEventListener("load",e,!1),n.addEventListener("message",t)}}),[]),Object(c.useEffect)((function(){_()}),[o,i,u,d]),Object(c.useEffect)((function(){_(!0)}),[n]),Object(c.createElement)(Nl,{iframeRef:p,title:o,className:"components-sandbox",sandbox:"allow-scripts allow-same-origin allow-presentation",onFocus:f,width:Math.ceil(v),height:Math.ceil(O)})}var Hb=n(169),Vb=n(16),Kb=n.n(Vb),Wb=n(47),Ub=n(113);var Gb=function(e){var t=e.notices,n=e.className,r=e.children,i=e.onRemove,u=void 0===i?s.noop:i,d=Object(f.useReducedMotion)(),p=Object(c.useState)((function(){return new WeakMap})),b=Object(a.a)(p,1)[0],h=Object(Ub.useTransition)(t,(function(e){return e.id}),{from:{opacity:0,height:0},enter:function(e){return function(){var t=Object(Wb.a)(Kb.a.mark((function t(n){return Kb.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n({opacity:1,height:b.get(e).offsetHeight});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},leave:function(){return function(){var e=Object(Wb.a)(Kb.a.mark((function e(t){return Kb.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t({opacity:0});case 2:return e.next=4,t({height:0});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},immediate:d});n=l()("components-snackbar-list",n);var v=function(e){return function(){return u(e.id)}};return Object(c.createElement)("div",{className:n},r,h.map((function(e){var t=e.item,n=e.key,r=e.props;return Object(c.createElement)(Ub.animated.div,{key:n,style:r},Object(c.createElement)("div",{className:"components-snackbar-list__notice-container",ref:function(e){return e&&b.set(t,e)}},Object(c.createElement)(Hb.a,Object(o.a)({},Object(s.omit)(t,["content"]),{onRemove:v(t)}),t.content)))})))},$b={radiusBlockUi:"2px",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px",spinnerSize:"18px"},qb=function(e){return $b[e]};function Yb(){var e=It(["\n\tfrom {\n\t\ttransform: rotate(0deg);\n\t}\n\n\tto {\n\t\ttransform: rotate(360deg);\n\t}\n"]);return Yb=function(){return e},e}var Xb=Object(S.c)(Yb()),Zb="calc( ( ".concat(qb("spinnerSize")," - ").concat(qb("spinnerSize")," * ( 2 / 3 ) ) / 2 )"),Jb=R("span",{target:"e1s472tg0",label:"StyledSpinner"})("display:inline-block;background-color:",J("gray.600"),";width:",qb("spinnerSize"),";height:",qb("spinnerSize"),";opacity:0.7;margin:5px 11px 0;border-radius:100%;position:relative;&::before{content:'';position:absolute;background-color:",J("white"),";top:",Zb,";left:",Zb,";width:calc( ",qb("spinnerSize")," / 4.5 );height:calc( ",qb("spinnerSize")," / 4.5 );border-radius:100%;transform-origin:calc( ",qb("spinnerSize")," / 3 ) calc( ",qb("spinnerSize")," / 3 );animation:",Xb," 1s infinite linear;}");function Qb(){return Object(c.createElement)(Jb,{className:"components-spinner"})}var eh=function(e){var t=e.tabId,n=e.onClick,r=e.children,a=e.selected,s=Object(i.a)(e,["tabId","onClick","children","selected"]);return Object(c.createElement)(To.a,Object(o.a)({role:"tab",tabIndex:a?null:-1,"aria-selected":a,id:t,onClick:n},s),r)};function th(e){var t,n=e.className,r=e.children,o=e.tabs,i=e.initialTabName,u=e.orientation,d=void 0===u?"horizontal":u,p=e.activeClass,b=void 0===p?"is-active":p,h=e.onSelect,v=void 0===h?s.noop:h,m=Object(f.useInstanceId)(th,"tab-panel"),y=Object(c.useState)(null),g=Object(a.a)(y,2),O=g[0],j=g[1],w=function(e){j(e),v(e)},_=Object(s.find)(o,{name:O}),k="".concat(m,"-").concat(null!==(t=null==_?void 0:_.name)&&void 0!==t?t:"none");return Object(c.useEffect)((function(){Object(s.find)(o,{name:O})||j(i||(o.length>0?o[0].name:null))}),[o]),Object(c.createElement)("div",{className:n},Object(c.createElement)(Xu,{role:"tablist",orientation:d,onNavigate:function(e,t){t.click()},className:"components-tab-panel__tabs"},o.map((function(e){return Object(c.createElement)(eh,{className:l()("components-tab-panel__tabs-item",e.className,Object(L.a)({},b,e.name===O)),tabId:"".concat(m,"-").concat(e.name),"aria-controls":"".concat(m,"-").concat(e.name,"-view"),selected:e.name===O,key:e.name,onClick:Object(s.partial)(w,e.name)},e.title)}))),_&&Object(c.createElement)("div",{key:k,"aria-labelledby":k,role:"tabpanel",id:"".concat(k,"-view"),className:"components-tab-panel__tab-content"},r(_)))}var nh=Object(S.b)("box-shadow:0 0 0 transparent;transition:box-shadow 0.1s linear;border-radius:",qb("radiusBlockUi"),";border:",qb("borderWidth")," solid ",J("ui.border"),";",Q("transition"),";label:inputStyleNeutral;"),rh=Object(S.b)("border-color:var( --wp-admin-theme-color );box-shadow:0 0 0 calc( ",qb("borderWidthFocus")," - ",qb("borderWidth")," ) var( --wp-admin-theme-color );outline:2px solid transparent;;label:inputStyleFocus;"),oh={huge:"1440px",wide:"1280px","x-large":"1080px",large:"960px",medium:"782px",small:"600px",mobile:"480px","zoomed-in":"280px"},ah=Object(S.b)("font-family:",mt("default.fontFamily"),";padding:6px 8px;",nh,";font-size:",mt("mobileTextMinFontSize"),";line-height:normal;","@media (min-width: ".concat(oh["small"],")"),"{font-size:",mt("default.fontSize"),";line-height:normal;}&:focus{",rh,"}&::-webkit-input-placeholder{color:",J("darkGray.placeholder"),";}&::-moz-placeholder{opacity:1;color:",J("darkGray.placeholder"),";}&:-ms-input-placeholder{color:",J("darkGray.placeholder"),";}.is-dark-theme &{&::-webkit-input-placeholder{color:",J("lightGray.placeholder"),";}&::-moz-placeholder{opacity:1;color:",J("lightGray.placeholder"),";}&:-ms-input-placeholder{color:",J("lightGray.placeholder"),";}};label:inputControl;"),ih=R("textarea",{target:"ebk7yr50",label:"StyledTextarea"})("width:100%;",ah,"");function ch(e){var t=e.label,n=e.hideLabelFromVision,r=e.value,a=e.help,s=e.onChange,u=e.rows,l=void 0===u?4:u,d=e.className,p=Object(i.a)(e,["label","hideLabelFromVision","value","help","onChange","rows","className"]),b=Object(f.useInstanceId)(ch),h="inspector-textarea-control-".concat(b);return Object(c.createElement)(kt,{label:t,hideLabelFromVision:n,id:h,help:a,className:d},Object(c.createElement)(ih,Object(o.a)({className:"components-textarea-control__input",id:h,rows:l,onChange:function(e){return s(e.target.value)},"aria-describedby":a?h+"__help":void 0,value:r},p)))}var sh=function(e){var t=e.text,n=void 0===t?"":t,r=e.highlight,o=(void 0===r?"":r).trim();if(!o)return n;var a=new RegExp("(".concat(Object(s.escapeRegExp)(o),")"),"gi");return Object(c.createInterpolateElement)(n.replace(a,"$&"),{mark:Object(c.createElement)("mark",null)})};var uh=function(e){return Object(c.createElement)("div",{className:"components-tip"},Object(c.createElement)(r.SVG,{width:"24",height:"24",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"})),Object(c.createElement)("p",null,e.children))};function lh(e){var t=e.label,n=e.checked,r=e.help,o=e.className,a=e.onChange,i=e.disabled;var u,d,p=Object(f.useInstanceId)(lh),b="inspector-toggle-control-".concat(p);return r&&(u=b+"__help",d=Object(s.isFunction)(r)?r(n):r),Object(c.createElement)(kt,{id:b,help:d,className:l()("components-toggle-control",o)},Object(c.createElement)(vd,{id:b,checked:n,onChange:function(e){a(e.target.checked)},"aria-describedby":u,disabled:i}),Object(c.createElement)("label",{htmlFor:b,className:"components-toggle-control__label"},t))}var dh=n(133),fh=n(85),ph=function(e){return Object(c.createElement)("div",{className:e.className},e.children)};var bh=Object(c.forwardRef)((function(e,t){var n=e.containerClassName,r=e.className,a=e.extraProps,s=e.children,u=e.title,d=e.isActive,f=e.isDisabled,p=Object(i.a)(e,["containerClassName","className","extraProps","children","title","isActive","isDisabled"]);return Object(c.useContext)(fh.a)?Object(c.createElement)(dh.a,Object(o.a)({className:l()("components-toolbar-button",r)},a,p,{ref:t}),(function(e){return Object(c.createElement)(To.a,Object(o.a)({label:u,isPressed:d,disabled:f},e),s)})):Object(c.createElement)(ph,{className:n},Object(c.createElement)(To.a,Object(o.a)({ref:t,icon:p.icon,label:u,shortcut:p.shortcut,"data-subscript":p.subscript,onClick:function(e){e.stopPropagation(),p.onClick&&p.onClick(e)},className:l()("components-toolbar__control",r),isPressed:d,disabled:f,"data-toolbar-item":!0},a,p),s))})),hh=function(e){var t=e.className,n=e.children,r=Object(i.a)(e,["className","children"]);return Object(c.createElement)("div",Object(o.a)({className:t},r),n)};function vh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mh(e){for(var t=1;t0&&0===n?"has-left-divider":null},e))}))})),r)};var Oh=n(180),jh=Object(Ae.a)({name:"Toolbar",compose:rt,keys:Oh.a,useProps:function(e,t){return Object(se.b)({role:"toolbar","aria-orientation":e.orientation},t)}}),wh=Object(Ne.a)({as:"div",useHook:jh,useCreateElement:function(e,t,n){return Object(Ve.a)(e,t,n)}});var _h=Object(c.forwardRef)((function(e,t){var n=e.label,r=Object(i.a)(e,["label"]),a=function(e){void 0===e&&(e={});var t=le(e),n=t.orientation,r=void 0===n?"horizontal":n,o=Object(se.a)(t,["orientation"]);return Re(Object(se.b)({orientation:r},o))}({loop:!0,baseId:r.id,rtl:Object(d.isRTL)()});return Object(c.createElement)(fh.a.Provider,{value:a},Object(c.createElement)(wh,Object(o.a)({ref:t,"aria-label":n},a,r)))}));var kh=Object(c.forwardRef)((function(e,t){var n=e.className,r=e.label,a=Object(i.a)(e,["className","label"]);if(!r)return Ku()("Using Toolbar without label prop",{alternative:"ToolbarGroup component",link:"https://developer.wordpress.org/block-editor/components/toolbar/"}),Object(c.createElement)(gh,Object(o.a)({},a,{className:n}));var s=l()("components-accessible-toolbar",n);return Object(c.createElement)(_h,Object(o.a)({className:s,label:r,ref:t},a))})),Eh=Object(c.createContext)(),Sh=Eh.Provider;function xh(e){var t=e.children,n=Object(c.useState)(),r=Object(a.a)(n,2),o=r[0],i=r[1],s=Object(c.useMemo)((function(){return{lastFocusedElement:o,setLastFocusedElement:i}}),[o]);return Object(c.createElement)(Sh,{value:s},t)}function Ch(e){var t=du.focus.focusable.find(e);if(t&&t.length)return t.filter((function(t){return t.closest('[role="row"]')===e}))}var Ph=Object(c.forwardRef)((function(e,t){var n=e.children,r=Object(i.a)(e,["children"]),a=Object(c.useCallback)((function(e){var t=e.keyCode,n=e.metaKey,r=e.ctrlKey,o=e.altKey,a=e.shiftKey;if(!(n||r||o||a)&&Object(s.includes)([Zr.UP,Zr.DOWN,Zr.LEFT,Zr.RIGHT],t)){e.stopPropagation();var i=document.activeElement,c=e.currentTarget;if(c.contains(i)){var u=i.closest('[role="row"]'),l=Ch(u),d=l.indexOf(i);if(Object(s.includes)([Zr.LEFT,Zr.RIGHT],t)){var f;if((f=t===Zr.LEFT?Math.max(0,d-1):Math.min(d+1,l.length-1))===d)return void e.preventDefault();l[f].focus(),e.preventDefault()}else if(Object(s.includes)([Zr.UP,Zr.DOWN],t)){var p,b=Array.from(c.querySelectorAll('[role="row"]')),h=b.indexOf(u);if((p=t===Zr.UP?Math.max(0,h-1):Math.min(h+1,b.length-1))===h)return void e.preventDefault();var v=Ch(b[p]);if(!v||!v.length)return void e.preventDefault();v[Math.min(d,v.length-1)].focus(),e.preventDefault()}}}}),[]);return Object(c.createElement)(xh,null,Object(c.createElement)("table",Object(o.a)({},r,{role:"treegrid",onKeyDown:a,ref:t}),Object(c.createElement)("tbody",null,n)))}));var Dh=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.level,a=e.positionInSet,s=e.setSize,u=e.isExpanded,l=Object(i.a)(e,["children","level","positionInSet","setSize","isExpanded"]);return Object(c.createElement)("tr",Object(o.a)({},l,{ref:t,role:"row","aria-level":r,"aria-posinset":a,"aria-setsize":s,"aria-expanded":u}),n)}));function Mh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Th=Object(c.forwardRef)((function(e,t){var n,r=e.children,o=e.as,a=Object(i.a)(e,["children","as"]),s=Object(c.useRef)(),u=t||s,l=Object(c.useContext)(Eh),d=l.lastFocusedElement,f=l.setLastFocusedElement;d&&(n=d===u.current?0:-1);var p=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:Bh,n=Object(c.useState)(!1),r=Object(a.a)(n,2),o=r[0],i=r[1];function s(t){var n=Array.from(e.current.querySelectorAll('[role="region"]'));if(n.length){var r=n[0],o=n.indexOf(e.current.ownerDocument.activeElement);if(-1!==o){var a=o+t;r=n[a=(a=-1===a?n.length-1:a)===n.length?0:a]}r.focus(),i(!0)}}var u=Object(c.useCallback)((function(){return s(-1)}),[]),l=Object(c.useCallback)((function(){return s(1)}),[]);if(Object(f.useKeyboardShortcut)(t.previous,u,{bindGlobal:!0}),Object(f.useKeyboardShortcut)(t.next,l,{bindGlobal:!0}),Object(c.useEffect)((function(){function t(){i(!1)}return e.current.addEventListener("click",t),function(){e.current.removeEventListener("click",t)}}),[i]),o)return"is-focusing-regions"}var Vh=Object(f.createHigherOrderComponent)((function(e){return function(t){var n=t.shortcuts,r=Object(i.a)(t,["shortcuts"]),o=Object(c.useRef)(),a=Hh(o,n);return Object(c.createElement)("div",{ref:o,className:a},Object(c.createElement)(e,r))}}),"navigateRegions"),Kh=Object(f.createHigherOrderComponent)((function(e){return function(t){var n=Object(f.useConstrainedTabbing)();return Object(c.createElement)("div",{ref:n,tabIndex:"-1"},Object(c.createElement)(e,t))}}),"withConstrainedTabbing");function Wh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ji.a)(e);if(t){var o=Object(Ji.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Zi.a)(this,n)}}var Uh=function(e){return Object(f.createHigherOrderComponent)((function(t){return function(n){Object(Xi.a)(a,n);var r=Wh(a);function a(){var e;return Object($i.a)(this,a),(e=r.apply(this,arguments)).nodeRef=e.props.node,e.state={fallbackStyles:void 0,grabStylesCompleted:!1},e.bindRef=e.bindRef.bind(Object(Yi.a)(e)),e}return Object(qi.a)(a,[{key:"bindRef",value:function(e){e&&(this.nodeRef=e)}},{key:"componentDidMount",value:function(){this.grabFallbackStyles()}},{key:"componentDidUpdate",value:function(){this.grabFallbackStyles()}},{key:"grabFallbackStyles",value:function(){var t=this.state,n=t.grabStylesCompleted,r=t.fallbackStyles;if(this.nodeRef&&!n){var o=e(this.nodeRef,this.props);Object(s.isEqual)(o,r)||this.setState({fallbackStyles:o,grabStylesCompleted:!!Object(s.every)(o)})}}},{key:"render",value:function(){var e=Object(c.createElement)(t,Object(o.a)({},this.props,this.state.fallbackStyles));return this.props.node?e:Object(c.createElement)("div",{ref:this.bindRef}," ",e," ")}}]),a}(c.Component)}),"withFallbackStyles")},Gh=n(33);function $h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ji.a)(e);if(t){var o=Object(Ji.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Zi.a)(this,n)}}function qh(e){return Object(f.createHigherOrderComponent)((function(t){var n,r="core/with-filters/"+e;function o(){void 0===n&&(n=Object(Gh.applyFilters)(e,t))}var a=function(e){Object(Xi.a)(a,e);var t=$h(a);function a(){var e;return Object($i.a)(this,a),e=t.apply(this,arguments),o(),e}return Object(qi.a)(a,[{key:"componentDidMount",value:function(){a.instances.push(this),1===a.instances.length&&(Object(Gh.addAction)("hookRemoved",r,u),Object(Gh.addAction)("hookAdded",r,u))}},{key:"componentWillUnmount",value:function(){a.instances=Object(s.without)(a.instances,this),0===a.instances.length&&(Object(Gh.removeAction)("hookRemoved",r),Object(Gh.removeAction)("hookAdded",r))}},{key:"render",value:function(){return Object(c.createElement)(n,this.props)}}]),a}(c.Component);a.instances=[];var i=Object(s.debounce)((function(){n=Object(Gh.applyFilters)(e,t),a.instances.forEach((function(e){e.forceUpdate()}))}),16);function u(t){t===e&&i()}return a}),"withFilters")}var Yh=Object(f.createHigherOrderComponent)((function(e){var t,n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onFocusReturn;return function(e){return function(n){var r=Object(f.useFocusReturn)(t);return Object(c.createElement)("div",{ref:r},Object(c.createElement)(e,n))}}};if((t=e)instanceof c.Component||"function"==typeof t){var r=e;return n()(r)}return n(e)}),"withFocusReturn"),Xh=function(e){var t=e.children;return Ku()("wp.components.FocusReturnProvider component",{hint:"This provider is not used anymore. You can just remove it from your codebase"}),t},Zh=n(204);function Jh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qh(e){for(var t=1;t0&&Object(c.createElement)(_p,{className:"components-with-notices-ui",notices:this.state.noticeList,onRemove:this.removeNotice})},this.props))}}]),r}(c.Component)}));function nv(e){e.__unstableNextInclude;var t=e.children;e.value;return t}},function(e,t,n){"use strict";var r=n(0),o=n(7),a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));t.a=a},,,,,,,,,,function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";var r=n(175),o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,a=Object(r.a)((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));t.a=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n0&&this.setState({visibleDays:(0,a.default)({},_,M)})}},{key:"componentWillUpdate",value:function(){this.today=(0,l.default)()}},{key:"onDayClick",value:function(e,t){if(t&&t.preventDefault(),!this.isBlocked(e)){var n=this.props,r=n.onDateChange,o=n.keepOpenOnDateSelect,a=n.onFocusChange,i=n.onClose;r(e),o||(a({focused:!1}),i({date:e}))}}},{key:"onDayMouseEnter",value:function(e){if(!this.isTouchDevice){var t=this.state,n=t.hoverDate,r=t.visibleDays,o=this.deleteModifier({},n,"hovered");o=this.addModifier(o,e,"hovered"),this.setState({hoverDate:e,visibleDays:(0,a.default)({},r,o)})}}},{key:"onDayMouseLeave",value:function(){var e=this.state,t=e.hoverDate,n=e.visibleDays;if(!this.isTouchDevice&&t){var r=this.deleteModifier({},t,"hovered");this.setState({hoverDate:null,visibleDays:(0,a.default)({},n,r)})}}},{key:"onPrevMonthClick",value:function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,c=o.visibleDays,s={};Object.keys(c).sort().slice(0,n+1).forEach((function(e){s[e]=c[e]}));var u=i.clone().subtract(1,"month"),l=(0,m.default)(u,1,r);this.setState({currentMonth:u,visibleDays:(0,a.default)({},s,this.getModifiers(l))},(function(){t(u.clone())}))}},{key:"onNextMonthClick",value:function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,c=o.visibleDays,s={};Object.keys(c).sort().slice(1).forEach((function(e){s[e]=c[e]}));var u=i.clone().add(n,"month"),l=(0,m.default)(u,1,r),d=i.clone().add(1,"month");this.setState({currentMonth:d,visibleDays:(0,a.default)({},s,this.getModifiers(l))},(function(){t(d.clone())}))}},{key:"onMonthChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===k.VERTICAL_SCROLLABLE,a=(0,m.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}},{key:"onYearChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===k.VERTICAL_SCROLLABLE,a=(0,m.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}},{key:"getFirstFocusableDay",value:function(e){var t=this,n=this.props,o=n.date,a=n.numberOfMonths,i=e.clone().startOf("month");if(o&&(i=o.clone()),this.isBlocked(i)){for(var c=[],s=e.clone().add(a-1,"months").endOf("month"),u=i.clone();!(0,v.default)(u,s);)u=u.clone().add(1,"day"),c.push(u);var l=c.filter((function(e){return!t.isBlocked(e)&&(0,v.default)(e,i)}));if(l.length>0){var d=r(l,1);i=d[0]}}return i}},{key:"getModifiers",value:function(e){var t=this,n={};return Object.keys(e).forEach((function(r){n[r]={},e[r].forEach((function(e){n[r][(0,g.default)(e)]=t.getModifiersForDay(e)}))})),n}},{key:"getModifiersForDay",value:function(e){var t=this;return new Set(Object.keys(this.modifiers).filter((function(n){return t.modifiers[n](e)})))}},{key:"getStateForNewMonth",value:function(e){var t=this,n=e.initialVisibleMonth,r=e.date,o=e.numberOfMonths,a=e.enableOutsideDays,i=(n||(r?function(){return r}:function(){return t.today}))();return{currentMonth:i,visibleDays:this.getModifiers((0,m.default)(i,o,a))}}},{key:"addModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,c=r.orientation,s=this.state,u=s.currentMonth,l=s.visibleDays,d=u,f=o;if(c===k.VERTICAL_SCROLLABLE?f=Object.keys(l).length:(d=d.clone().subtract(1,"month"),f+=2),!t||!(0,y.default)(t,d,f,i))return e;var p=(0,g.default)(t),b=(0,a.default)({},e);if(i)b=Object.keys(l).filter((function(e){return Object.keys(l[e]).indexOf(p)>-1})).reduce((function(t,r){var o=e[r]||l[r],i=new Set(o[p]);return i.add(n),(0,a.default)({},t,x({},r,(0,a.default)({},o,x({},p,i))))}),b);else{var h=(0,O.default)(t),v=e[h]||l[h],m=new Set(v[p]);m.add(n),b=(0,a.default)({},b,x({},h,(0,a.default)({},v,x({},p,m))))}return b}},{key:"deleteModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,c=r.orientation,s=this.state,u=s.currentMonth,l=s.visibleDays,d=u,f=o;if(c===k.VERTICAL_SCROLLABLE?f=Object.keys(l).length:(d=d.clone().subtract(1,"month"),f+=2),!t||!(0,y.default)(t,d,f,i))return e;var p=(0,g.default)(t),b=(0,a.default)({},e);if(i)b=Object.keys(l).filter((function(e){return Object.keys(l[e]).indexOf(p)>-1})).reduce((function(t,r){var o=e[r]||l[r],i=new Set(o[p]);return i.delete(n),(0,a.default)({},t,x({},r,(0,a.default)({},o,x({},p,i))))}),b);else{var h=(0,O.default)(t),v=e[h]||l[h],m=new Set(v[p]);m.delete(n),b=(0,a.default)({},b,x({},h,(0,a.default)({},v,x({},p,m))))}return b}},{key:"isBlocked",value:function(e){var t=this.props,n=t.isDayBlocked,r=t.isOutsideRange;return n(e)||r(e)}},{key:"isHovered",value:function(e){var t=(this.state||{}).hoverDate;return(0,h.default)(e,t)}},{key:"isSelected",value:function(e){var t=this.props.date;return(0,h.default)(e,t)}},{key:"isToday",value:function(e){return(0,h.default)(e,this.today)}},{key:"isFirstDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||l.default.localeData().firstDayOfWeek())}},{key:"isLastDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||l.default.localeData().firstDayOfWeek())+6)%7}},{key:"render",value:function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,r=e.monthFormat,o=e.renderMonthText,a=e.navPrev,c=e.navNext,s=e.onOutsideClick,u=e.withPortal,l=e.focused,d=e.enableOutsideDays,f=e.hideKeyboardShortcutsPanel,p=e.daySize,b=e.firstDayOfWeek,h=e.renderCalendarDay,v=e.renderDayContents,m=e.renderCalendarInfo,y=e.renderMonthElement,g=e.calendarInfoPosition,O=e.isFocused,j=e.isRTL,w=e.phrases,_=e.dayAriaLabelFormat,k=e.onBlur,S=e.showKeyboardShortcuts,x=e.weekDayFormat,C=e.verticalHeight,P=e.noBorder,D=e.transitionDuration,M=e.verticalBorderSpacing,T=e.horizontalMonthPadding,I=this.state,R=I.currentMonth,N=I.visibleDays;return i.default.createElement(E.default,{orientation:n,enableOutsideDays:d,modifiers:N,numberOfMonths:t,onDayClick:this.onDayClick,onDayMouseEnter:this.onDayMouseEnter,onDayMouseLeave:this.onDayMouseLeave,onPrevMonthClick:this.onPrevMonthClick,onNextMonthClick:this.onNextMonthClick,onMonthChange:this.onMonthChange,onYearChange:this.onYearChange,monthFormat:r,withPortal:u,hidden:!l,hideKeyboardShortcutsPanel:f,initialVisibleMonth:function(){return R},firstDayOfWeek:b,onOutsideClick:s,navPrev:a,navNext:c,renderMonthText:o,renderCalendarDay:h,renderDayContents:v,renderCalendarInfo:m,renderMonthElement:y,calendarInfoPosition:g,isFocused:O,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:k,phrases:w,daySize:p,isRTL:j,showKeyboardShortcuts:S,weekDayFormat:x,dayAriaLabelFormat:_,verticalHeight:C,noBorder:P,transitionDuration:D,verticalBorderSpacing:M,horizontalMonthPadding:T})}}]),t}(i.default.Component);t.default=D,D.propTypes=C,D.defaultProps=P},,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),a=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));t.a=a},function(e,t,n){"use strict";var r=n(0),o=n(7),a=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));t.a=a},,,,,,,,,,,,function(e,t,n){"use strict"},function(e,t,n){"use strict"; /** @license React v17.0.1 * react-is.production.min.js * diff --git a/wp-includes/js/dist/compose.js b/wp-includes/js/dist/compose.js index 0beae0adde..b76c4d7390 100644 --- a/wp-includes/js/dist/compose.js +++ b/wp-includes/js/dist/compose.js @@ -3552,10 +3552,16 @@ function useFocusReturn(onFocusReturn) { focusedBeforeMount.current = node.ownerDocument.activeElement; } else if (focusedBeforeMount.current) { - // Defer to the component's own explicit focus return behavior, if + var isFocused = ref.current.contains(ref.current.ownerDocument.activeElement); + + if (ref.current.isConnected && !isFocused) { + return; + } // Defer to the component's own explicit focus return behavior, if // specified. This allows for support that the `onFocusReturn` // decides to allow the default behavior to occur under some // conditions. + + if (onFocusReturnRef.current) { onFocusReturnRef.current(); } else { diff --git a/wp-includes/js/dist/compose.min.js b/wp-includes/js/dist/compose.min.js index 78f1a1dc83..4ca762cc3c 100644 --- a/wp-includes/js/dist/compose.min.js +++ b/wp-includes/js/dist/compose.min.js @@ -6,4 +6,4 @@ this.wp=this.wp||{},this.wp.compose=function(t){var e={};function n(r){if(e[r])r * * Licensed MIT © Zeno Rocha */ -var r;r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=6)}([function(t,e){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var r=window.getSelection(),o=document.createRange();o.selectNodeContents(t),r.removeAllRanges(),r.addRange(o),e=r.toString()}return e}},function(t,e){function n(){}n.prototype={on:function(t,e,n){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var r=this;function o(){r.off(t,o),e.apply(n,arguments)}return o._=e,this.on(t,o,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),r=0,o=n.length;r0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=o()(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=o()(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":i(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}(),a=n(1),f=n.n(a),s=n(2),l=n.n(s),d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===d(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=l()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new c({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return v("action",t)}},{key:"defaultTarget",value:function(t){var e=v("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return v("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}]),e}(f.a);function v(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}e.default=h}]).default},t.exports=r()},29:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(42),o=n(18);function i(t,e){return!e||"object"!==Object(r.a)(e)&&"function"!=typeof e?Object(o.a)(t):e}},290:function(t,e,n){var r;!function(o,i,u){if(o){for(var c,a={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},f={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},s={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},l={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},d=1;d<20;++d)a[111+d]="f"+d;for(d=0;d<=9;++d)a[d+96]=d.toString();m.prototype.bind=function(t,e,n){return t=t instanceof Array?t:[t],this._bindMultiple.call(this,t,e,n),this},m.prototype.unbind=function(t,e){return this.bind.call(this,t,(function(){}),e)},m.prototype.trigger=function(t,e){return this._directMap[t+":"+e]&&this._directMap[t+":"+e]({},t),this},m.prototype.reset=function(){return this._callbacks={},this._directMap={},this},m.prototype.stopCallback=function(t,e){if((" "+e.className+" ").indexOf(" mousetrap ")>-1)return!1;if(function t(e,n){return null!==e&&e!==i&&(e===n||t(e.parentNode,n))}(e,this.target))return!1;if("composedPath"in t&&"function"==typeof t.composedPath){var n=t.composedPath()[0];n!==t.target&&(e=n)}return"INPUT"==e.tagName||"SELECT"==e.tagName||"TEXTAREA"==e.tagName||e.isContentEditable},m.prototype.handleKey=function(){var t=this;return t._handleKey.apply(t,arguments)},m.addKeycodes=function(t){for(var e in t)t.hasOwnProperty(e)&&(a[e]=t[e]);c=null},m.init=function(){var t=m(i);for(var e in t)"_"!==e.charAt(0)&&(m[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e))},m.init(),o.Mousetrap=m,t.exports&&(t.exports=m),void 0===(r=function(){return m}.call(e,n,e,t))||(t.exports=r)}function p(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)}function h(t){if("keypress"==t.type){var e=String.fromCharCode(t.which);return t.shiftKey||(e=e.toLowerCase()),e}return a[t.which]?a[t.which]:f[t.which]?f[t.which]:String.fromCharCode(t.which).toLowerCase()}function v(t){return"shift"==t||"ctrl"==t||"alt"==t||"meta"==t}function y(t,e,n){return n||(n=function(){if(!c)for(var t in c={},a)t>95&&t<112||a.hasOwnProperty(t)&&(c[a[t]]=t);return c}()[t]?"keydown":"keypress"),"keypress"==n&&e.length&&(n="keydown"),n}function b(t,e){var n,r,o,i=[];for(n=function(t){return"+"===t?["+"]:(t=t.replace(/\+{2}/g,"+plus")).split("+")}(t),o=0;o1?d(t,c,n,r):(u=b(t,r),e._callbacks[u.key]=e._callbacks[u.key]||[],f(u.key,u.modifiers,{type:u.action},o,t,i),e._callbacks[u.key][o?"unshift":"push"]({callback:n,modifiers:u.modifiers,action:u.action,seq:o,level:i,combo:t}))}e._handleKey=function(t,e,n){var r,o=f(t,e,n),i={},l=0,d=!1;for(r=0;r0&&void 0!==arguments[0]?arguments[0]:{};return o((function(e){return function(n){Object(s.a)(o,n);var r=R(o);function o(){var e;return Object(a.a)(this,o),(e=r.apply(this,arguments)).setState=e.setState.bind(Object(m.a)(e)),e.state=t,e}return Object(f.a)(o,[{key:"render",value:function(){return Object(u.createElement)(e,Object(b.a)({},this.props,this.state,{setState:this.setState}))}}]),o}(u.Component)}),"withState")}var P=n(17),A=n(27),M=n(71),D=n.n(M);var L=function(t,e){return Object(u.useCallback)(D()(t,{maxSize:1}),e)};var I=function(){return L((function(t){t&&t.addEventListener("keydown",(function(e){if(e.keyCode===P.TAB){var n=A.focus.tabbable.find(t);if(n.length){var r=n[0],o=n[n.length-1];e.shiftKey&&e.target===r?(e.preventDefault(),o.focus()):(e.shiftKey||e.target!==o)&&n.includes(e.target)||(e.preventDefault(),r.focus())}}}))}),[])},N=n(11),F=n(289),K=n.n(F);function q(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4e3,r=Object(u.useRef)(),o=Object(u.useState)(!1),i=Object(N.a)(o,2),c=i[0],a=i[1];return Object(u.useEffect)((function(){var o;return r.current=new K.a(t.current,{text:function(){return"function"==typeof e?e():e}}),r.current.on("success",(function(t){var e=t.clearSelection,r=t.trigger;e(),r&&r.focus(),n&&(a(!0),clearTimeout(o),o=setTimeout((function(){return a(!1)}),n))})),function(){r.current.destroy(),clearTimeout(o)}}),[e,n,a]),c}var H=n(5),U=n(72);function z(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"firstElement",e=Object(u.useRef)(t);return Object(u.useEffect)((function(){e.current=t}),[t]),L((function(t){if(t&&!1!==e.current&&!t.contains(t.ownerDocument.activeElement)){var n=t;if("firstElement"===e.current){var r=A.focus.tabbable.find(t)[0];r&&(n=r)}n.focus()}}),[])}var B=function(t){var e=Object(u.useRef)(),n=Object(u.useRef)(),r=Object(u.useRef)(t);return Object(u.useEffect)((function(){r.current=t}),[t]),L((function(t){if(t){if(e.current=t,n.current)return;n.current=t.ownerDocument.activeElement}else n.current&&(r.current?r.current():n.current.focus())}),[])},G=["button","submit"];function W(t){var e=Object(u.useRef)(t);Object(u.useEffect)((function(){e.current=t}),[t]);var n=Object(u.useRef)(!1),o=Object(u.useRef)(),i=Object(u.useCallback)((function(){clearTimeout(o.current)}),[]);Object(u.useEffect)((function(){return function(){return i()}}),[]),Object(u.useEffect)((function(){t||i()}),[t,i]);var c=Object(u.useCallback)((function(t){var e=t.type,o=t.target;Object(r.includes)(["mouseup","touchend"],e)?n.current=!1:function(t){if(!(t instanceof window.HTMLElement))return!1;switch(t.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return Object(r.includes)(G,t.type)}return!1}(o)&&(n.current=!0)}),[]),a=Object(u.useCallback)((function(t){t.persist(),n.current||(o.current=setTimeout((function(){document.hasFocus()?"function"==typeof e.current&&e.current(t):t.preventDefault()}),0))}),[]);return{onFocus:i,onMouseDown:c,onMouseUp:c,onTouchStart:c,onTouchEnd:c,onBlur:a}}function Q(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function V(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:window,e=t.navigator.platform;return-1!==e.indexOf("Mac")||Object(r.includes)(["iPad","iPhone"],e)}var et=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.bindGlobal,i=void 0!==o&&o,c=n.eventName,a=void 0===c?"keydown":c,f=n.isDisabled,s=void 0!==f&&f,l=n.target,d=Object(u.useRef)(e);Object(u.useEffect)((function(){d.current=e}),[e]),Object(u.useEffect)((function(){if(!s){var e=new Z.a(l?l.current:document);return Object(r.castArray)(t).forEach((function(t){var n=t.split("+"),r=new Set(n.filter((function(t){return t.length>1}))),o=r.has("alt"),u=r.has("shift");if(tt()&&(1===r.size&&o||2===r.size&&o&&u))throw new Error("Cannot bind ".concat(t,". Alt and Shift+Alt modifiers are reserved for character input."));e[i?"bindGlobal":"bind"](t,(function(){return d.current.apply(d,arguments)}),a)})),function(){e.reset()}}}),[t,i,a,l,s])};function nt(t){var e=Object(u.useState)((function(){return!(!t||"undefined"==typeof window||!window.matchMedia(t).matches)})),n=Object(N.a)(e,2),r=n[0],o=n[1];return Object(u.useEffect)((function(){if(t){var e=function(){return o(window.matchMedia(t).matches)};e();var n=window.matchMedia(t);return n.addListener(e),function(){n.removeListener(e)}}}),[t]),t&&r}function rt(t){var e=Object(u.useRef)(void 0);return Object(u.useEffect)((function(){e.current=t}),[t]),e.current}var ot="undefined"!=typeof window&&window.navigator.userAgent.indexOf("Trident")>=0?function(){return!0}:function(){return nt("(prefers-reduced-motion: reduce)")},it={huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},ut={">=":"min-width","<":"max-width"},ct={">=":function(t,e){return e>=t},"<":function(t,e){return e1&&void 0!==arguments[1]?arguments[1]:">=",n=Object(u.useContext)(at),r=!n&&"(".concat(ut[e],": ").concat(it[t],"px)"),o=nt(r);return n?ct[e](it[t],n):o};ft.__experimentalWidthProvider=at.Provider;var st=ft,lt=n(151),dt=n.n(lt).a,pt=n(15),ht=n(152);function vt(t,e){return"reset"===e.type?e.list:"append"===e.type?[].concat(Object(pt.a)(t),[e.item]):t}var yt=function(t){var e=Object(u.useReducer)(vt,[]),n=Object(N.a)(e,2),r=n[0],o=n[1];return Object(u.useEffect)((function(){var e=function(t,e){for(var n=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:"Change detection",n=rt(t);Object.entries(null!=n?n:[]).forEach((function(n){var r=Object(N.a)(n,2),o=r[0],i=r[1];i!==t[o]&&console.warn("".concat(e,": ").concat(o," key changed:"),i,t[o])}))},mt=n(127);function gt(){for(var t=arguments.length,e=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=o()(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=o()(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":i(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}(),a=n(1),f=n.n(a),s=n(2),l=n.n(s),d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===d(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=l()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new c({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return v("action",t)}},{key:"defaultTarget",value:function(t){var e=v("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return v("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}]),e}(f.a);function v(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}e.default=h}]).default},t.exports=r()},29:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(42),o=n(18);function i(t,e){return!e||"object"!==Object(r.a)(e)&&"function"!=typeof e?Object(o.a)(t):e}},290:function(t,e,n){var r;!function(o,i,u){if(o){for(var c,a={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},f={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},s={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},l={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},d=1;d<20;++d)a[111+d]="f"+d;for(d=0;d<=9;++d)a[d+96]=d.toString();m.prototype.bind=function(t,e,n){return t=t instanceof Array?t:[t],this._bindMultiple.call(this,t,e,n),this},m.prototype.unbind=function(t,e){return this.bind.call(this,t,(function(){}),e)},m.prototype.trigger=function(t,e){return this._directMap[t+":"+e]&&this._directMap[t+":"+e]({},t),this},m.prototype.reset=function(){return this._callbacks={},this._directMap={},this},m.prototype.stopCallback=function(t,e){if((" "+e.className+" ").indexOf(" mousetrap ")>-1)return!1;if(function t(e,n){return null!==e&&e!==i&&(e===n||t(e.parentNode,n))}(e,this.target))return!1;if("composedPath"in t&&"function"==typeof t.composedPath){var n=t.composedPath()[0];n!==t.target&&(e=n)}return"INPUT"==e.tagName||"SELECT"==e.tagName||"TEXTAREA"==e.tagName||e.isContentEditable},m.prototype.handleKey=function(){var t=this;return t._handleKey.apply(t,arguments)},m.addKeycodes=function(t){for(var e in t)t.hasOwnProperty(e)&&(a[e]=t[e]);c=null},m.init=function(){var t=m(i);for(var e in t)"_"!==e.charAt(0)&&(m[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e))},m.init(),o.Mousetrap=m,t.exports&&(t.exports=m),void 0===(r=function(){return m}.call(e,n,e,t))||(t.exports=r)}function p(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)}function h(t){if("keypress"==t.type){var e=String.fromCharCode(t.which);return t.shiftKey||(e=e.toLowerCase()),e}return a[t.which]?a[t.which]:f[t.which]?f[t.which]:String.fromCharCode(t.which).toLowerCase()}function v(t){return"shift"==t||"ctrl"==t||"alt"==t||"meta"==t}function y(t,e,n){return n||(n=function(){if(!c)for(var t in c={},a)t>95&&t<112||a.hasOwnProperty(t)&&(c[a[t]]=t);return c}()[t]?"keydown":"keypress"),"keypress"==n&&e.length&&(n="keydown"),n}function b(t,e){var n,r,o,i=[];for(n=function(t){return"+"===t?["+"]:(t=t.replace(/\+{2}/g,"+plus")).split("+")}(t),o=0;o1?d(t,c,n,r):(u=b(t,r),e._callbacks[u.key]=e._callbacks[u.key]||[],f(u.key,u.modifiers,{type:u.action},o,t,i),e._callbacks[u.key][o?"unshift":"push"]({callback:n,modifiers:u.modifiers,action:u.action,seq:o,level:i,combo:t}))}e._handleKey=function(t,e,n){var r,o=f(t,e,n),i={},l=0,d=!1;for(r=0;r0&&void 0!==arguments[0]?arguments[0]:{};return o((function(e){return function(n){Object(s.a)(o,n);var r=R(o);function o(){var e;return Object(a.a)(this,o),(e=r.apply(this,arguments)).setState=e.setState.bind(Object(m.a)(e)),e.state=t,e}return Object(f.a)(o,[{key:"render",value:function(){return Object(u.createElement)(e,Object(b.a)({},this.props,this.state,{setState:this.setState}))}}]),o}(u.Component)}),"withState")}var P=n(17),A=n(27),M=n(71),D=n.n(M);var L=function(t,e){return Object(u.useCallback)(D()(t,{maxSize:1}),e)};var I=function(){return L((function(t){t&&t.addEventListener("keydown",(function(e){if(e.keyCode===P.TAB){var n=A.focus.tabbable.find(t);if(n.length){var r=n[0],o=n[n.length-1];e.shiftKey&&e.target===r?(e.preventDefault(),o.focus()):(e.shiftKey||e.target!==o)&&n.includes(e.target)||(e.preventDefault(),r.focus())}}}))}),[])},N=n(11),F=n(289),K=n.n(F);function q(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4e3,r=Object(u.useRef)(),o=Object(u.useState)(!1),i=Object(N.a)(o,2),c=i[0],a=i[1];return Object(u.useEffect)((function(){var o;return r.current=new K.a(t.current,{text:function(){return"function"==typeof e?e():e}}),r.current.on("success",(function(t){var e=t.clearSelection,r=t.trigger;e(),r&&r.focus(),n&&(a(!0),clearTimeout(o),o=setTimeout((function(){return a(!1)}),n))})),function(){r.current.destroy(),clearTimeout(o)}}),[e,n,a]),c}var H=n(5),U=n(72);function z(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"firstElement",e=Object(u.useRef)(t);return Object(u.useEffect)((function(){e.current=t}),[t]),L((function(t){if(t&&!1!==e.current&&!t.contains(t.ownerDocument.activeElement)){var n=t;if("firstElement"===e.current){var r=A.focus.tabbable.find(t)[0];r&&(n=r)}n.focus()}}),[])}var B=function(t){var e=Object(u.useRef)(),n=Object(u.useRef)(),r=Object(u.useRef)(t);return Object(u.useEffect)((function(){r.current=t}),[t]),L((function(t){if(t){if(e.current=t,n.current)return;n.current=t.ownerDocument.activeElement}else if(n.current){var o=e.current.contains(e.current.ownerDocument.activeElement);if(e.current.isConnected&&!o)return;r.current?r.current():n.current.focus()}}),[])},G=["button","submit"];function W(t){var e=Object(u.useRef)(t);Object(u.useEffect)((function(){e.current=t}),[t]);var n=Object(u.useRef)(!1),o=Object(u.useRef)(),i=Object(u.useCallback)((function(){clearTimeout(o.current)}),[]);Object(u.useEffect)((function(){return function(){return i()}}),[]),Object(u.useEffect)((function(){t||i()}),[t,i]);var c=Object(u.useCallback)((function(t){var e=t.type,o=t.target;Object(r.includes)(["mouseup","touchend"],e)?n.current=!1:function(t){if(!(t instanceof window.HTMLElement))return!1;switch(t.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return Object(r.includes)(G,t.type)}return!1}(o)&&(n.current=!0)}),[]),a=Object(u.useCallback)((function(t){t.persist(),n.current||(o.current=setTimeout((function(){document.hasFocus()?"function"==typeof e.current&&e.current(t):t.preventDefault()}),0))}),[]);return{onFocus:i,onMouseDown:c,onMouseUp:c,onTouchStart:c,onTouchEnd:c,onBlur:a}}function Q(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function V(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:window,e=t.navigator.platform;return-1!==e.indexOf("Mac")||Object(r.includes)(["iPad","iPhone"],e)}var et=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.bindGlobal,i=void 0!==o&&o,c=n.eventName,a=void 0===c?"keydown":c,f=n.isDisabled,s=void 0!==f&&f,l=n.target,d=Object(u.useRef)(e);Object(u.useEffect)((function(){d.current=e}),[e]),Object(u.useEffect)((function(){if(!s){var e=new Z.a(l?l.current:document);return Object(r.castArray)(t).forEach((function(t){var n=t.split("+"),r=new Set(n.filter((function(t){return t.length>1}))),o=r.has("alt"),u=r.has("shift");if(tt()&&(1===r.size&&o||2===r.size&&o&&u))throw new Error("Cannot bind ".concat(t,". Alt and Shift+Alt modifiers are reserved for character input."));e[i?"bindGlobal":"bind"](t,(function(){return d.current.apply(d,arguments)}),a)})),function(){e.reset()}}}),[t,i,a,l,s])};function nt(t){var e=Object(u.useState)((function(){return!(!t||"undefined"==typeof window||!window.matchMedia(t).matches)})),n=Object(N.a)(e,2),r=n[0],o=n[1];return Object(u.useEffect)((function(){if(t){var e=function(){return o(window.matchMedia(t).matches)};e();var n=window.matchMedia(t);return n.addListener(e),function(){n.removeListener(e)}}}),[t]),t&&r}function rt(t){var e=Object(u.useRef)(void 0);return Object(u.useEffect)((function(){e.current=t}),[t]),e.current}var ot="undefined"!=typeof window&&window.navigator.userAgent.indexOf("Trident")>=0?function(){return!0}:function(){return nt("(prefers-reduced-motion: reduce)")},it={huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},ut={">=":"min-width","<":"max-width"},ct={">=":function(t,e){return e>=t},"<":function(t,e){return e1&&void 0!==arguments[1]?arguments[1]:">=",n=Object(u.useContext)(at),r=!n&&"(".concat(ut[e],": ").concat(it[t],"px)"),o=nt(r);return n?ct[e](it[t],n):o};ft.__experimentalWidthProvider=at.Provider;var st=ft,lt=n(151),dt=n.n(lt).a,pt=n(15),ht=n(152);function vt(t,e){return"reset"===e.type?e.list:"append"===e.type?[].concat(Object(pt.a)(t),[e.item]):t}var yt=function(t){var e=Object(u.useReducer)(vt,[]),n=Object(N.a)(e,2),r=n[0],o=n[1];return Object(u.useEffect)((function(){var e=function(t,e){for(var n=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:"Change detection",n=rt(t);Object.entries(null!=n?n:[]).forEach((function(n){var r=Object(N.a)(n,2),o=r[0],i=r[1];i!==t[o]&&console.warn("".concat(e,": ").concat(o," key changed:"),i,t[o])}))},mt=n(127);function gt(){for(var t=arguments.length,e=new Array(t),n=0;n