this.wp=this.wp||{},this.wp.editPost=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=228)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t,n){"use strict";function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",function(){return o})},11:function(e,t,n){"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function r(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}n.d(t,"a",function(){return r})},12:function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",function(){return o})},13:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var o=n(30),r=n(5);function c(e,t){return!t||"object"!==Object(o.a)(t)&&"function"!=typeof t?Object(r.a)(e):t}},14:function(e,t,n){"use strict";function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}n.d(t,"a",function(){return r})},15:function(e,t,n){"use strict";function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",function(){return o})},16:function(e,t,n){var o;
/*!
  Copyright (c) 2016 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/
/*!
  Copyright (c) 2016 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/
!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var c=typeof o;if("string"===c||"number"===c)e.push(o);else if(Array.isArray(o))e.push(r.apply(null,o));else if("object"===c)for(var i in o)n.call(o,i)&&o[i]&&e.push(i)}}return e.join(" ")}void 0!==e&&e.exports?e.exports=r:void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},17:function(e,t,n){"use strict";function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}n.d(t,"a",function(){return o})},18:function(e,t,n){"use strict";var o=n(31);function r(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.d(t,"a",function(){return r})},19:function(e,t){!function(){e.exports=this.wp.keycodes}()},2:function(e,t){!function(){e.exports=this.lodash}()},20:function(e,t,n){"use strict";function o(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},c=Object.keys(e);for(o=0;o<c.length;o++)n=c[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(o=0;o<c.length;o++)n=c[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}n.d(t,"a",function(){return o})},228:function(e,t,n){"use strict";n.r(t);var o={};n.d(o,"openGeneralSidebar",function(){return K}),n.d(o,"closeGeneralSidebar",function(){return Q}),n.d(o,"openModal",function(){return X}),n.d(o,"closeModal",function(){return z}),n.d(o,"openPublishSidebar",function(){return Y}),n.d(o,"closePublishSidebar",function(){return $}),n.d(o,"togglePublishSidebar",function(){return Z}),n.d(o,"toggleEditorPanelEnabled",function(){return J}),n.d(o,"toggleEditorPanelOpened",function(){return ee}),n.d(o,"removeEditorPanel",function(){return te}),n.d(o,"toggleFeature",function(){return ne}),n.d(o,"switchEditorMode",function(){return oe}),n.d(o,"togglePinnedPluginItem",function(){return re}),n.d(o,"hideBlockTypes",function(){return ce}),n.d(o,"updatePreferredStyleVariations",function(){return ie}),n.d(o,"__experimentalUpdateLocalAutosaveInterval",function(){return ae}),n.d(o,"showBlockTypes",function(){return le}),n.d(o,"setAvailableMetaBoxesPerLocation",function(){return se}),n.d(o,"requestMetaBoxUpdates",function(){return ue}),n.d(o,"metaBoxUpdatesSuccess",function(){return de});var r={};n.d(r,"getEditorMode",function(){return pe}),n.d(r,"isEditorSidebarOpened",function(){return me}),n.d(r,"isPluginSidebarOpened",function(){return Oe}),n.d(r,"getActiveGeneralSidebarName",function(){return fe}),n.d(r,"getPreferences",function(){return je}),n.d(r,"getPreference",function(){return he}),n.d(r,"isPublishSidebarOpened",function(){return Ee}),n.d(r,"isEditorPanelRemoved",function(){return ge}),n.d(r,"isEditorPanelEnabled",function(){return ve}),n.d(r,"isEditorPanelOpened",function(){return _e}),n.d(r,"isModalActive",function(){return ye}),n.d(r,"isFeatureActive",function(){return Se}),n.d(r,"isPluginItemPinned",function(){return ke}),n.d(r,"getActiveMetaBoxLocations",function(){return Pe}),n.d(r,"isMetaBoxLocationVisible",function(){return we}),n.d(r,"isMetaBoxLocationActive",function(){return Ce}),n.d(r,"getMetaBoxesPerLocation",function(){return Te}),n.d(r,"getAllMetaBoxes",function(){return xe}),n.d(r,"hasMetaBoxes",function(){return Ne}),n.d(r,"isSavingMetaBoxes",function(){return Ae});var c=n(0),i=(n(61),n(6)),a=n(25),l=n(57),s=n(42),u=(n(84),n(66)),d=n(24),b=n(59);Object(d.addFilter)("editor.MediaUpload","core/edit-post/replace-media-upload",function(){return b.MediaUpload});var p=n(17),m=n(20),O=n(2),f=n(9),j=n(3),h=n(4),E=n(1),g=n(7),v=Object(g.compose)(Object(h.withSelect)(function(e,t){if(Object(f.hasBlockSupport)(t.name,"multiple",!0))return{};var n=e("core/block-editor").getBlocks(),o=Object(O.find)(n,function(e){var n=e.name;return t.name===n});return{originalBlockClientId:o&&o.clientId!==t.clientId&&o.clientId}}),Object(h.withDispatch)(function(e,t){var n=t.originalBlockClientId;return{selectFirst:function(){return e("core/block-editor").selectBlock(n)}}})),_=Object(g.createHigherOrderComponent)(function(e){return v(function(t){var n=t.originalBlockClientId,o=t.selectFirst,r=Object(m.a)(t,["originalBlockClientId","selectFirst"]);if(!n)return Object(c.createElement)(e,r);var a=Object(f.getBlockType)(r.name),l=function(e){var t=Object(f.findTransform)(Object(f.getBlockTransforms)("to",e),function(e){var t=e.type,n=e.blocks;return"block"===t&&1===n.length});if(!t)return null;return Object(f.getBlockType)(t.blocks[0])}(r.name);return[Object(c.createElement)("div",{key:"invalid-preview",style:{minHeight:"60px"}},Object(c.createElement)(e,Object(p.a)({key:"block-edit"},r))),Object(c.createElement)(i.Warning,{key:"multiple-use-warning",actions:[Object(c.createElement)(j.Button,{key:"find-original",isLarge:!0,onClick:o},Object(E.__)("Find original")),Object(c.createElement)(j.Button,{key:"remove",isLarge:!0,onClick:function(){return r.onReplace([])}},Object(E.__)("Remove")),l&&Object(c.createElement)(j.Button,{key:"transform",isLarge:!0,onClick:function(){return r.onReplace(Object(f.createBlock)(l.name,r.attributes))}},Object(E.__)("Transform into:")," ",l.title)]},Object(c.createElement)("strong",null,a.title,": "),Object(E.__)("This block can only be used once."))]})},"withMultipleValidation");Object(d.addFilter)("editor.BlockEdit","core/edit-post/validate-multiple-use/with-multiple-validation",_);var y=n(50),S=n(27);var k=Object(g.compose)(Object(h.withSelect)(function(e){return{editedPostContent:e("core/editor").getEditedPostAttribute("content")}}),Object(h.withDispatch)(function(e){return{createNotice:e("core/notices").createNotice}}),Object(g.withState)({hasCopied:!1}))(function(e){var t=e.createNotice,n=e.editedPostContent,o=e.hasCopied,r=e.setState;return n.length>0&&Object(c.createElement)(j.ClipboardButton,{text:n,role:"menuitem",className:"components-menu-item__button",onCopy:function(){r({hasCopied:!0}),t("info","All content copied.",{isDismissible:!0,type:"snackbar"})},onFinishCopy:function(){return r({hasCopied:!1})}},o?Object(E.__)("Copied!"):Object(E.__)("Copy All Content"))});var P=Object(h.withDispatch)(function(e){return{openModal:e("core/edit-post").openModal}})(function(e){var t=e.openModal;return Object(c.createElement)(j.MenuItem,{onClick:function(){t("edit-post/manage-blocks")}},Object(E.__)("Block Manager"))}),w=n(19);var C=Object(h.withDispatch)(function(e){return{openModal:e("core/edit-post").openModal}})(function(e){var t=e.openModal;return Object(c.createElement)(j.MenuItem,{onClick:function(){t("edit-post/keyboard-shortcut-help")},shortcut:w.displayShortcut.access("h")},Object(E.__)("Keyboard Shortcuts"))}),T=Object(j.createSlotFill)("ToolsMoreMenuGroup"),x=T.Fill,N=T.Slot;x.Slot=function(e){var t=e.fillProps;return Object(c.createElement)(N,{fillProps:t},function(e){return!Object(O.isEmpty)(e)&&Object(c.createElement)(j.MenuGroup,{label:Object(E.__)("Tools")},e)})};var A=x;Object(y.registerPlugin)("edit-post",{render:function(){return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(A,null,function(e){var t=e.onClose;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(P,{onSelect:t}),Object(c.createElement)(j.MenuItem,{role:"menuitem",href:Object(S.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(E.__)("Manage All Reusable Blocks")),Object(c.createElement)(C,{onSelect:t}),Object(c.createElement)(k,null))}))}});var M=n(18),B=n(10),I=n(8),D="edit-post/document",L=Object(O.flow)([h.combineReducers,function(e){return function(t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,o=arguments.length>1?arguments[1]:void 0;return t(n,o)}}}({editorMode:"visual",isGeneralSidebarDismissed:!1,panels:{"post-status":{opened:!0}},features:{fixedToolbar:!1,showInserterHelpPanel:!0},pinnedPluginItems:{},hiddenBlockTypes:[],preferredStyleVariations:{},localAutosaveInterval:15})])({isGeneralSidebarDismissed:function(e,t){switch(t.type){case"OPEN_GENERAL_SIDEBAR":case"CLOSE_GENERAL_SIDEBAR":return"CLOSE_GENERAL_SIDEBAR"===t.type}return e},panels:function(e,t){switch(t.type){case"TOGGLE_PANEL_ENABLED":var n=t.panelName;return Object(I.a)({},e,Object(B.a)({},n,Object(I.a)({},e[n],{enabled:!Object(O.get)(e,[n,"enabled"],!0)})));case"TOGGLE_PANEL_OPENED":var o=t.panelName,r=!0===e[o]||Object(O.get)(e,[o,"opened"],!1);return Object(I.a)({},e,Object(B.a)({},o,Object(I.a)({},e[o],{opened:!r})))}return e},features:function(e,t){return"TOGGLE_FEATURE"===t.type?Object(I.a)({},e,Object(B.a)({},t.feature,!e[t.feature])):e},editorMode:function(e,t){return"SWITCH_MODE"===t.type?t.mode:e},pinnedPluginItems:function(e,t){return"TOGGLE_PINNED_PLUGIN_ITEM"===t.type?Object(I.a)({},e,Object(B.a)({},t.pluginName,!Object(O.get)(e,[t.pluginName],!0))):e},hiddenBlockTypes:function(e,t){switch(t.type){case"SHOW_BLOCK_TYPES":return O.without.apply(void 0,[e].concat(Object(M.a)(t.blockNames)));case"HIDE_BLOCK_TYPES":return Object(O.union)(e,t.blockNames)}return e},preferredStyleVariations:function(e,t){switch(t.type){case"UPDATE_PREFERRED_STYLE_VARIATIONS":return t.blockName?t.blockStyle?Object(I.a)({},e,Object(B.a)({},t.blockName,t.blockStyle)):Object(O.omit)(e,[t.blockName]):e}return e},localAutosaveInterval:function(e,t){switch(t.type){case"UPDATE_LOCAL_AUTOSAVE_INTERVAL":return t.interval}return e}});var F=Object(h.combineReducers)({isSaving:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"REQUEST_META_BOX_UPDATES":return!0;case"META_BOX_UPDATES_SUCCESS":return!1;default:return e}},locations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_META_BOXES_PER_LOCATIONS":return t.metaBoxesPerLocation}return e}}),R=Object(h.combineReducers)({activeGeneralSidebar:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_GENERAL_SIDEBAR":return t.name}return e},activeModal: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"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e},metaBoxes:F,preferences:L,publishSidebarActive:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"OPEN_PUBLISH_SIDEBAR":return!0;case"CLOSE_PUBLISH_SIDEBAR":return!1;case"TOGGLE_PUBLISH_SIDEBAR":return!e}return e},removedPanels:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REMOVE_PANEL":if(!Object(O.includes)(e,t.panelName))return[].concat(Object(M.a)(e),[t.panelName])}return e}}),G=n(69),V=n.n(G),U=n(23),H=n(45),W=n(32),q=n.n(W);function K(e){return{type:"OPEN_GENERAL_SIDEBAR",name:e}}function Q(){return{type:"CLOSE_GENERAL_SIDEBAR"}}function X(e){return{type:"OPEN_MODAL",name:e}}function z(){return{type:"CLOSE_MODAL"}}function Y(){return{type:"OPEN_PUBLISH_SIDEBAR"}}function $(){return{type:"CLOSE_PUBLISH_SIDEBAR"}}function Z(){return{type:"TOGGLE_PUBLISH_SIDEBAR"}}function J(e){return{type:"TOGGLE_PANEL_ENABLED",panelName:e}}function ee(e){return{type:"TOGGLE_PANEL_OPENED",panelName:e}}function te(e){return{type:"REMOVE_PANEL",panelName:e}}function ne(e){return{type:"TOGGLE_FEATURE",feature:e}}function oe(e){return{type:"SWITCH_MODE",mode:e}}function re(e){return{type:"TOGGLE_PINNED_PLUGIN_ITEM",pluginName:e}}function ce(e){return{type:"HIDE_BLOCK_TYPES",blockNames:Object(O.castArray)(e)}}function ie(e,t){return{type:"UPDATE_PREFERRED_STYLE_VARIATIONS",blockName:e,blockStyle:t}}function ae(e){return{type:"UPDATE_LOCAL_AUTOSAVE_INTERVAL",interval:e}}function le(e){return{type:"SHOW_BLOCK_TYPES",blockNames:Object(O.castArray)(e)}}function se(e){return{type:"SET_META_BOXES_PER_LOCATIONS",metaBoxesPerLocation:e}}function ue(){return{type:"REQUEST_META_BOX_UPDATES"}}function de(){return{type:"META_BOX_UPDATES_SUCCESS"}}var be=n(36);function pe(e){return he(e,"editorMode","visual")}function me(e){var t=fe(e);return Object(O.includes)(["edit-post/document","edit-post/block"],t)}function Oe(e){return!!fe(e)&&!me(e)}function fe(e){return he(e,"isGeneralSidebarDismissed",!1)?null:e.activeGeneralSidebar}function je(e){return e.preferences}function he(e,t,n){var o=je(e)[t];return void 0===o?n:o}function Ee(e){return e.publishSidebarActive}function ge(e,t){return Object(O.includes)(e.removedPanels,t)}function ve(e,t){var n=he(e,"panels");return!ge(e,t)&&Object(O.get)(n,[t,"enabled"],!0)}function _e(e,t){var n=he(e,"panels");return!0===Object(O.get)(n,[t])||!0===Object(O.get)(n,[t,"opened"])}function ye(e,t){return e.activeModal===t}function Se(e,t){return Object(O.get)(e.preferences.features,[t],!1)}function ke(e,t){var n=he(e,"pinnedPluginItems",{});return Object(O.get)(n,[t],!0)}var Pe=Object(be.a)(function(e){return Object.keys(e.metaBoxes.locations).filter(function(t){return Ce(e,t)})},function(e){return[e.metaBoxes.locations]});function we(e,t){return Ce(e,t)&&Object(O.some)(Te(e,t),function(t){var n=t.id;return ve(e,"meta-box-".concat(n))})}function Ce(e,t){var n=Te(e,t);return!!n&&0!==n.length}function Te(e,t){return e.metaBoxes.locations[t]}var xe=Object(be.a)(function(e){return Object(O.flatten)(Object(O.values)(e.metaBoxes.locations))},function(e){return[e.metaBoxes.locations]});function Ne(e){return Pe(e).length>0}function Ae(e){return e.metaBoxes.isSaving}var Me,Be={SET_META_BOXES_PER_LOCATIONS:function(e,t){setTimeout(function(){var e=Object(h.select)("core/editor").getCurrentPostType();window.postboxes.page!==e&&window.postboxes.add_postbox_toggles(e)});var n=Object(h.select)("core/editor").isSavingPost(),o=Object(h.select)("core/editor").isAutosavingPost(),r=Object(h.select)("core/edit-post").hasMetaBoxes();Me&&Me(),Me=Object(h.subscribe)(function(){var e=Object(h.select)("core/editor").isSavingPost(),c=Object(h.select)("core/editor").isAutosavingPost(),i=r&&n&&!e&&!o;n=e,o=c,i&&t.dispatch({type:"REQUEST_META_BOX_UPDATES"})})},REQUEST_META_BOX_UPDATES:function(e,t){window.tinyMCE&&window.tinyMCE.triggerSave();var n=t.getState(),o=Object(h.select)("core/editor").getCurrentPost(n),r=[!!o.comment_status&&["comment_status",o.comment_status],!!o.ping_status&&["ping_status",o.ping_status],!!o.sticky&&["sticky",o.sticky],!!o.author&&["post_author",o.author]].filter(Boolean),c=[new window.FormData(document.querySelector(".metabox-base-form"))].concat(Object(M.a)(Pe(n).map(function(e){return new window.FormData(function(e){var t=document.querySelector(".edit-post-meta-boxes-area.is-".concat(e," .metabox-location-").concat(e));return t||document.querySelector("#metaboxes .metabox-location-"+e)}(e))}))),i=Object(O.reduce)(c,function(e,t){var n=!0,o=!1,r=void 0;try{for(var c,i=t[Symbol.iterator]();!(n=(c=i.next()).done);n=!0){var a=Object(U.a)(c.value,2),l=a[0],s=a[1];e.append(l,s)}}catch(e){o=!0,r=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw r}}return e},new window.FormData);r.forEach(function(e){var t=Object(U.a)(e,2),n=t[0],o=t[1];return i.append(n,o)}),q()({url:window._wpMetaBoxUrl,method:"POST",body:i,parse:!1}).then(function(){return t.dispatch({type:"META_BOX_UPDATES_SUCCESS"})})},SWITCH_MODE:function(e){"visual"!==e.mode&&Object(h.dispatch)("core/block-editor").clearSelectedBlock();var t="visual"===e.mode?Object(E.__)("Visual editor selected"):Object(E.__)("Code editor selected");Object(H.speak)(t,"assertive")}};var Ie=function(e){var t,n=[V()(Be)],o=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},r={getState:e.getState,dispatch:function(){return o.apply(void 0,arguments)}};return t=n.map(function(e){return e(r)}),o=O.flowRight.apply(void 0,Object(M.a)(t))(e.dispatch),e.dispatch=o,e};var De={SELECT:Object(h.createRegistryControl)(function(e){return function(t){var n,o=t.storeName,r=t.selectorName,c=t.args;return(n=e.select(o))[r].apply(n,Object(M.a)(c))}})},Le="core/edit-post",Fe=Object(h.registerStore)(Le,{reducer:R,actions:o,selectors:r,controls:De,persist:["preferences"]});Ie(Fe);var Re=n(12),Ge=n(11),Ve=n(13),Ue=n(15),He=n(14),We=n(44),qe=n.n(We),Ke={"t a l e s o f g u t e n b e r g":function(e){(document.activeElement.classList.contains("edit-post-visual-editor")||document.activeElement===document.body)&&(e.preventDefault(),window.wp.data.dispatch("core/block-editor").insertBlock(window.wp.blocks.createBlock("core/paragraph",{content:"🐡🐢🦀🐤🦋🐘🐧🐹🦁🦄🦍🐼🐿🎃🐴🐝🐆🦕🦔🌱🍇π🍌🐉💧🥨🌌🍂🍠🥦🥚🥝🎟🥥🥒🛵🥖🍒🍯🎾🎲🐺🐚🐮⌛️"})))}},Qe=n(16),Xe=n.n(Qe);var ze=function(e){function t(){var e;return Object(Re.a)(this,t),(e=Object(Ve.a)(this,Object(Ue.a)(t).apply(this,arguments))).state={historyId:null},e}return Object(He.a)(t,e),Object(Ge.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.postId,o=t.postStatus,r=t.postType,c=this.state.historyId;"trash"!==o?n===e.postId&&n===c||"auto-draft"===o||this.setBrowserURL(n):this.setTrashURL(n,r)}},{key:"setTrashURL",value:function(e,t){window.location.href=function(e,t){return Object(S.addQueryArgs)("edit.php",{trashed:1,post_type:t,ids:e})}(e,t)}},{key:"setBrowserURL",value:function(e){window.history.replaceState({id:e},"Post "+e,function(e){return Object(S.addQueryArgs)("post.php",{post:e,action:"edit"})}(e)),this.setState(function(){return{historyId:e}})}},{key:"render",value:function(){return null}}]),t}(c.Component),Ye=Object(h.withSelect)(function(e){var t=(0,e("core/editor").getCurrentPost)();return{postId:t.id,postStatus:t.status,postType:t.type}})(ze);var $e=Object(h.withSelect)(function(e){var t=e("core/editor").getCurrentPostType,n=e("core/edit-post").isFeatureActive,o=e("core").getPostType;return{isActive:n("fullscreenMode"),postType:o(t())}})(function(e){var t=e.isActive,n=e.postType;return t&&n?Object(c.createElement)(j.Toolbar,{className:"edit-post-fullscreen-mode-close__toolbar"},Object(c.createElement)(j.IconButton,{icon:"arrow-left-alt2",href:Object(S.addQueryArgs)("edit.php",{post_type:n.slug}),label:Object(O.get)(n,["labels","view_items"],Object(E.__)("Back"))})):null});var Ze=Object(g.compose)([Object(h.withSelect)(function(e){return{hasFixedToolbar:e("core/edit-post").isFeatureActive("fixedToolbar"),showInserter:"visual"===e("core/edit-post").getEditorMode()&&e("core/editor").getEditorSettings().richEditingEnabled,isTextModeEnabled:"text"===e("core/edit-post").getEditorMode()}}),Object(s.withViewportMatch)({isLargeViewport:"medium"})])(function(e){var t=e.hasFixedToolbar,n=e.isLargeViewport,o=e.showInserter,r=e.isTextModeEnabled,s=t?Object(E.__)("Document and block tools"):Object(E.__)("Document tools");return Object(c.createElement)(i.NavigableToolbar,{className:"edit-post-header-toolbar","aria-label":s},Object(c.createElement)("div",null,Object(c.createElement)(i.Inserter,{disabled:!o,position:"bottom right",showInserterHelpPanel:!0}),Object(c.createElement)(l.DotTip,{tipId:"core/editor.inserter"},Object(E.__)("Welcome to the wonderful world of blocks! Click the “+” (“Add block”) button to add a new block. There are blocks available for all kinds of content: you can insert text, headings, images, lists, and lots more!"))),Object(c.createElement)(a.EditorHistoryUndo,null),Object(c.createElement)(a.EditorHistoryRedo,null),Object(c.createElement)(a.TableOfContents,{hasOutlineItemsDisabled:r}),Object(c.createElement)(i.BlockNavigationDropdown,{isDisabled:r}),t&&n&&Object(c.createElement)("div",{className:"edit-post-header-toolbar__block-toolbar"},Object(c.createElement)(i.BlockToolbar,null)))}),Je={toggleEditorMode:{raw:w.rawShortcut.secondary("m"),display:w.displayShortcut.secondary("m")},toggleSidebar:{raw:w.rawShortcut.primaryShift(","),display:w.displayShortcut.primaryShift(","),ariaLabel:w.shortcutAriaLabel.primaryShift(",")}},et=[{value:"visual",label:Object(E.__)("Visual Editor")},{value:"text",label:Object(E.__)("Code Editor")}];var tt=Object(g.compose)([Object(h.withSelect)(function(e){return{isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled,isCodeEditingEnabled:e("core/editor").getEditorSettings().codeEditingEnabled,mode:e("core/edit-post").getEditorMode()}}),Object(g.ifCondition)(function(e){var t=e.isRichEditingEnabled,n=e.isCodeEditingEnabled;return t&&n}),Object(h.withDispatch)(function(e){return{onSwitch:function(t){e("core/edit-post").switchEditorMode(t)}}})])(function(e){var t=e.onSwitch,n=e.mode,o=et.map(function(e){return e.value!==n?Object(I.a)({},e,{shortcut:Je.toggleEditorMode.display}):e});return Object(c.createElement)(j.MenuGroup,{label:Object(E.__)("Editor")},Object(c.createElement)(j.MenuItemsChoice,{choices:o,value:n,onSelect:t}))}),nt=Object(j.createSlotFill)("PluginsMoreMenuGroup"),ot=nt.Fill,rt=nt.Slot;ot.Slot=function(e){var t=e.fillProps;return Object(c.createElement)(rt,{fillProps:t},function(e){return!Object(O.isEmpty)(e)&&Object(c.createElement)(j.MenuGroup,{label:Object(E.__)("Plugins")},e)})};var ct=ot;var it=Object(h.withDispatch)(function(e){return{openModal:e("core/edit-post").openModal}})(function(e){var t=e.openModal;return Object(c.createElement)(j.MenuItem,{onClick:function(){t("edit-post/options")}},Object(E.__)("Options"))});var at=Object(g.compose)([Object(h.withSelect)(function(e,t){var n=t.feature;return{isActive:e("core/edit-post").isFeatureActive(n)}}),Object(h.withDispatch)(function(e,t){return{onToggle:function(){e("core/edit-post").toggleFeature(t.feature)}}}),j.withSpokenMessages])(function(e){var t=e.onToggle,n=e.isActive,o=e.label,r=e.info,i=e.messageActivated,a=e.messageDeactivated,l=e.speak;return Object(c.createElement)(j.MenuItem,{icon:n&&"yes",isSelected:n,onClick:Object(O.flow)(t,function(){l(n?a||Object(E.__)("Feature deactivated"):i||Object(E.__)("Feature activated"))}),role:"menuitemcheckbox",info:r},o)});var lt=Object(s.ifViewportMatches)("medium")(function(){return Object(c.createElement)(j.MenuGroup,{label:Object(E._x)("View","noun")},Object(c.createElement)(at,{feature:"fixedToolbar",label:Object(E.__)("Top Toolbar"),info:Object(E.__)("Access all block and document tools in a single place"),messageActivated:Object(E.__)("Top toolbar activated"),messageDeactivated:Object(E.__)("Top toolbar deactivated")}),Object(c.createElement)(at,{feature:"focusMode",label:Object(E.__)("Spotlight Mode"),info:Object(E.__)("Focus on one block at a time"),messageActivated:Object(E.__)("Spotlight mode activated"),messageDeactivated:Object(E.__)("Spotlight mode deactivated")}),Object(c.createElement)(at,{feature:"fullscreenMode",label:Object(E.__)("Fullscreen Mode"),info:Object(E.__)("Work without distraction"),messageActivated:Object(E.__)("Fullscreen mode activated"),messageDeactivated:Object(E.__)("Fullscreen mode deactivated")}))}),st={className:"edit-post-more-menu__content",position:"bottom left"},ut={labelPosition:"bottom"},dt=function(){return Object(c.createElement)(j.DropdownMenu,{className:"edit-post-more-menu",icon:"ellipsis",label:Object(E.__)("More tools & options"),popoverProps:st,toggleProps:ut},function(e){var t=e.onClose;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(lt,null),Object(c.createElement)(tt,null),Object(c.createElement)(ct.Slot,{fillProps:{onClose:t}}),Object(c.createElement)(A.Slot,{fillProps:{onClose:t}}),Object(c.createElement)(j.MenuGroup,null,Object(c.createElement)(it,null)))})},bt=Object(j.createSlotFill)("PinnedPlugins"),pt=bt.Fill,mt=bt.Slot;pt.Slot=function(e){return Object(c.createElement)(mt,e,function(e){return!Object(O.isEmpty)(e)&&Object(c.createElement)("div",{className:"edit-post-pinned-plugins"},e)})};var Ot=pt;var ft=Object(g.compose)(Object(h.withSelect)(function(e){return{hasPublishAction:Object(O.get)(e("core/editor").getCurrentPost(),["_links","wp:action-publish"],!1),isBeingScheduled:e("core/editor").isEditedPostBeingScheduled(),isPending:e("core/editor").isCurrentPostPending(),isPublished:e("core/editor").isCurrentPostPublished(),isPublishSidebarEnabled:e("core/editor").isPublishSidebarEnabled(),isPublishSidebarOpened:e("core/edit-post").isPublishSidebarOpened(),isScheduled:e("core/editor").isCurrentPostScheduled()}}),Object(h.withDispatch)(function(e){return{togglePublishSidebar:e("core/edit-post").togglePublishSidebar}}),Object(s.withViewportMatch)({isLessThanMediumViewport:"< medium"}))(function(e){var t,n=e.forceIsDirty,o=e.forceIsSaving,r=e.hasPublishAction,i=e.isBeingScheduled,l=e.isLessThanMediumViewport,s=e.isPending,u=e.isPublished,d=e.isPublishSidebarEnabled,b=e.isPublishSidebarOpened,p=e.isScheduled,m=e.togglePublishSidebar;return t=u||p&&i||s&&!r&&!l?"button":l?"toggle":d?"toggle":"button",Object(c.createElement)(a.PostPublishButton,{forceIsDirty:n,forceIsSaving:o,isOpen:b,isToggle:"toggle"===t,onToggle:m})});var jt=Object(g.compose)(Object(h.withSelect)(function(e){return{hasActiveMetaboxes:e("core/edit-post").hasMetaBoxes(),isEditorSidebarOpened:e("core/edit-post").isEditorSidebarOpened(),isPublishSidebarOpened:e("core/edit-post").isPublishSidebarOpened(),isSaving:e("core/edit-post").isSavingMetaBoxes()}}),Object(h.withDispatch)(function(e,t,n){var o=(0,n.select)("core/block-editor").getBlockSelectionStart,r=e("core/edit-post"),c=r.openGeneralSidebar;return{openGeneralSidebar:function(){return c(o()?"edit-post/block":"edit-post/document")},closeGeneralSidebar:r.closeGeneralSidebar}}))(function(e){var t=e.closeGeneralSidebar,n=e.hasActiveMetaboxes,o=e.isEditorSidebarOpened,r=e.isPublishSidebarOpened,i=e.isSaving,s=e.openGeneralSidebar,u=o?t:s;return Object(c.createElement)("div",{role:"region","aria-label":Object(E.__)("Editor top bar"),className:"edit-post-header",tabIndex:"-1"},Object(c.createElement)("div",{className:"edit-post-header__toolbar"},Object(c.createElement)($e,null),Object(c.createElement)(Ze,null)),Object(c.createElement)("div",{className:"edit-post-header__settings"},!r&&Object(c.createElement)(a.PostSavedState,{forceIsDirty:n,forceIsSaving:i}),Object(c.createElement)(a.PostPreviewButton,{forceIsAutosaveable:n,forcePreviewLink:i?null:void 0}),Object(c.createElement)(ft,{forceIsDirty:n,forceIsSaving:i}),Object(c.createElement)("div",null,Object(c.createElement)(j.IconButton,{icon:"admin-generic",label:Object(E.__)("Settings"),onClick:u,isToggled:o,"aria-expanded":o,shortcut:Je.toggleSidebar}),Object(c.createElement)(l.DotTip,{tipId:"core/editor.settings"},Object(E.__)("You’ll find more settings for your page and blocks in the sidebar. Click the cog icon to toggle the sidebar open and closed."))),Object(c.createElement)(Ot.Slot,null),Object(c.createElement)(dt,null)))});var ht=Object(g.compose)(Object(h.withSelect)(function(e){return{isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled}}),Object(h.withDispatch)(function(e){return{onExit:function(){e("core/edit-post").switchEditorMode("visual")}}}))(function(e){var t=e.onExit,n=e.isRichEditingEnabled;return Object(c.createElement)("div",{className:"edit-post-text-editor"},n&&Object(c.createElement)("div",{className:"edit-post-text-editor__toolbar"},Object(c.createElement)("h2",null,Object(E.__)("Editing Code")),Object(c.createElement)(j.IconButton,{onClick:t,icon:"no-alt",shortcut:w.displayShortcut.secondary("m")},Object(E.__)("Exit Code Editor")),Object(c.createElement)(a.TextEditorGlobalKeyboardShortcuts,null)),Object(c.createElement)("div",{className:"edit-post-text-editor__body"},Object(c.createElement)(a.PostTitle,null),Object(c.createElement)(a.PostTextEditor,null)))});var Et=Object(g.compose)(Object(h.withSelect)(function(e){return{areAdvancedSettingsOpened:"edit-post/block"===e("core/edit-post").getActiveGeneralSidebarName()}}),Object(h.withDispatch)(function(e){return{openEditorSidebar:function(){return e("core/edit-post").openGeneralSidebar("edit-post/block")},closeSidebar:e("core/edit-post").closeGeneralSidebar}}),j.withSpokenMessages)(function(e){var t=e.areAdvancedSettingsOpened,n=e.closeSidebar,o=e.openEditorSidebar,r=e.onClick,i=void 0===r?O.noop:r,a=e.small,l=void 0!==a&&a,s=e.speak,u=t?Object(E.__)("Hide Block Settings"):Object(E.__)("Show Block Settings");return Object(c.createElement)(j.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(O.flow)(t?n:o,function(){s(t?Object(E.__)("Block settings closed"):Object(E.__)("Additional settings are now available in the Editor block settings sidebar"))},i),icon:"admin-generic",shortcut:Je.toggleSidebar},!l&&u)}),gt=Object(j.createSlotFill)("PluginBlockSettingsMenuGroup"),vt=gt.Fill,_t=gt.Slot;vt.Slot=Object(h.withSelect)(function(e,t){var n=t.fillProps.clientIds;return{selectedBlocks:e("core/block-editor").getBlocksByClientId(n)}})(function(e){var t=e.fillProps,n=e.selectedBlocks;return n=Object(O.map)(n,function(e){return e.name}),Object(c.createElement)(_t,{fillProps:Object(I.a)({},t,{selectedBlocks:n})},function(e){return!Object(O.isEmpty)(e)&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",{className:"editor-block-settings-menu__separator block-editor-block-settings-menu__separator"}),e)})});var yt=vt;var St=function(){return Object(c.createElement)(i.BlockSelectionClearer,{className:"edit-post-visual-editor editor-styles-wrapper"},Object(c.createElement)(a.VisualEditorGlobalKeyboardShortcuts,null),Object(c.createElement)(i.MultiSelectScrollIntoView,null),Object(c.createElement)(i.Typewriter,null,Object(c.createElement)(i.WritingFlow,null,Object(c.createElement)(i.ObserveTyping,null,Object(c.createElement)(i.CopyHandler,null,Object(c.createElement)(a.PostTitle,null),Object(c.createElement)(i.BlockList,null))))),Object(c.createElement)(i.__experimentalBlockSettingsMenuFirstItem,null,function(e){var t=e.onClose;return Object(c.createElement)(Et,{onClick:t})}),Object(c.createElement)(i.__experimentalBlockSettingsMenuPluginsExtension,null,function(e){var t=e.clientIds,n=e.onClose;return Object(c.createElement)(yt.Slot,{fillProps:{clientIds:t,onClose:n}})}))},kt=n(5),Pt=function(e){function t(){var e;return Object(Re.a)(this,t),(e=Object(Ve.a)(this,Object(Ue.a)(t).apply(this,arguments))).toggleMode=e.toggleMode.bind(Object(kt.a)(e)),e.toggleSidebar=e.toggleSidebar.bind(Object(kt.a)(e)),e}return Object(He.a)(t,e),Object(Ge.a)(t,[{key:"toggleMode",value:function(){var e=this.props,t=e.mode,n=e.switchMode;e.isModeSwitchEnabled&&n("visual"===t?"text":"visual")}},{key:"toggleSidebar",value:function(e){e.preventDefault();var t=this.props,n=t.isEditorSidebarOpen,o=t.closeSidebar,r=t.openSidebar;n?o():r()}},{key:"render",value:function(){var e;return Object(c.createElement)(j.KeyboardShortcuts,{bindGlobal:!0,shortcuts:(e={},Object(B.a)(e,Je.toggleEditorMode.raw,this.toggleMode),Object(B.a)(e,Je.toggleSidebar.raw,this.toggleSidebar),e)})}}]),t}(c.Component),wt=Object(g.compose)([Object(h.withSelect)(function(e){var t=e("core/editor").getEditorSettings(),n=t.richEditingEnabled,o=t.codeEditingEnabled;return{isModeSwitchEnabled:n&&o,mode:e("core/edit-post").getEditorMode(),isEditorSidebarOpen:e("core/edit-post").isEditorSidebarOpened()}}),Object(h.withDispatch)(function(e,t,n){var o=n.select;return{switchMode:function(t){e("core/edit-post").switchEditorMode(t)},openSidebar:function(){var t=(0,o("core/block-editor").getBlockSelectionStart)()?"edit-post/block":"edit-post/document";e("core/edit-post").openGeneralSidebar(t)},closeSidebar:e("core/edit-post").closeGeneralSidebar}})])(Pt),Ct=w.displayShortcutList.primary,Tt=w.displayShortcutList.primaryShift,xt=w.displayShortcutList.primaryAlt,Nt=w.displayShortcutList.secondary,At=w.displayShortcutList.access,Mt=w.displayShortcutList.ctrl,Bt=w.displayShortcutList.alt,It=w.displayShortcutList.ctrlShift,Dt=[{className:"edit-post-keyboard-shortcut-help__main-shortcuts",shortcuts:[{keyCombination:At("h"),description:Object(E.__)("Display these keyboard shortcuts.")}]},{title:Object(E.__)("Global shortcuts"),shortcuts:[{keyCombination:Ct("s"),description:Object(E.__)("Save your changes.")},{keyCombination:Ct("z"),description:Object(E.__)("Undo your last changes.")},{keyCombination:Tt("z"),description:Object(E.__)("Redo your last undo.")},{keyCombination:Tt(","),description:Object(E.__)("Show or hide the settings sidebar."),ariaLabel:w.shortcutAriaLabel.primaryShift(",")},{keyCombination:At("o"),description:Object(E.__)("Open the block navigation menu.")},{keyCombination:Mt("`"),description:Object(E.__)("Navigate to the next part of the editor."),ariaLabel:w.shortcutAriaLabel.ctrl("`")},{keyCombination:It("`"),description:Object(E.__)("Navigate to the previous part of the editor."),ariaLabel:w.shortcutAriaLabel.ctrlShift("`")},{keyCombination:At("n"),description:Object(E.__)("Navigate to the next part of the editor (alternative).")},{keyCombination:At("p"),description:Object(E.__)("Navigate to the previous part of the editor (alternative).")},{keyCombination:Bt("F10"),description:Object(E.__)("Navigate to the nearest toolbar.")},{keyCombination:Nt("m"),description:Object(E.__)("Switch between Visual Editor and Code Editor.")}]},{title:Object(E.__)("Selection shortcuts"),shortcuts:[{keyCombination:Ct("a"),description:Object(E.__)("Select all text when typing. Press again to select all blocks.")},{keyCombination:"Esc",description:Object(E.__)("Clear selection."),ariaLabel:Object(E.__)("Escape")}]},{title:Object(E.__)("Block shortcuts"),shortcuts:[{keyCombination:Tt("d"),description:Object(E.__)("Duplicate the selected block(s).")},{keyCombination:At("z"),description:Object(E.__)("Remove the selected block(s).")},{keyCombination:xt("t"),description:Object(E.__)("Insert a new block before the selected block(s).")},{keyCombination:xt("y"),description:Object(E.__)("Insert a new block after the selected block(s).")},{keyCombination:"/",description:Object(E.__)("Change the block type after adding a new paragraph."),ariaLabel:Object(E.__)("Forward-slash")}]},{title:Object(E.__)("Text formatting"),shortcuts:[{keyCombination:Ct("b"),description:Object(E.__)("Make the selected text bold.")},{keyCombination:Ct("i"),description:Object(E.__)("Make the selected text italic.")},{keyCombination:Ct("k"),description:Object(E.__)("Convert the selected text into a link.")},{keyCombination:Tt("k"),description:Object(E.__)("Remove a link.")},{keyCombination:Ct("u"),description:Object(E.__)("Underline the selected text.")}]}],Lt="edit-post/keyboard-shortcut-help",Ft=function(e){var t=e.shortcuts;return Object(c.createElement)("ul",{className:"edit-post-keyboard-shortcut-help__shortcut-list",role:"list"},t.map(function(e,t){var n=e.keyCombination,o=e.description,r=e.ariaLabel;return Object(c.createElement)("li",{className:"edit-post-keyboard-shortcut-help__shortcut",key:t},Object(c.createElement)("div",{className:"edit-post-keyboard-shortcut-help__shortcut-description"},o),Object(c.createElement)("div",{className:"edit-post-keyboard-shortcut-help__shortcut-term"},Object(c.createElement)("kbd",{className:"edit-post-keyboard-shortcut-help__shortcut-key-combination","aria-label":r},function(e){return e.map(function(e,t){return"+"===e?Object(c.createElement)(c.Fragment,{key:t},e):Object(c.createElement)("kbd",{key:t,className:"edit-post-keyboard-shortcut-help__shortcut-key"},e)})}(Object(O.castArray)(n)))))}))},Rt=function(e){var t=e.title,n=e.shortcuts,o=e.className;return Object(c.createElement)("section",{className:Xe()("edit-post-keyboard-shortcut-help__section",o)},!!t&&Object(c.createElement)("h2",{className:"edit-post-keyboard-shortcut-help__section-title"},t),Object(c.createElement)(Ft,{shortcuts:n}))};var Gt=Object(g.compose)([Object(h.withSelect)(function(e){return{isModalActive:e("core/edit-post").isModalActive(Lt)}}),Object(h.withDispatch)(function(e,t){var n=t.isModalActive,o=e("core/edit-post"),r=o.openModal,c=o.closeModal;return{toggleModal:function(){return n?c():r(Lt)}}})])(function(e){var t=e.isModalActive,n=e.toggleModal;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(j.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(B.a)({},w.rawShortcut.access("h"),n)}),t&&Object(c.createElement)(j.Modal,{className:"edit-post-keyboard-shortcut-help",title:Object(E.__)("Keyboard Shortcuts"),closeLabel:Object(E.__)("Close"),onRequestClose:n},Dt.map(function(e,t){return Object(c.createElement)(Rt,Object(p.a)({key:t},e))})))});var Vt=function(e){var t=e.blockTypes,n=e.value,o=e.onItemChange;return Object(c.createElement)("ul",{className:"edit-post-manage-blocks-modal__checklist"},t.map(function(e){return Object(c.createElement)("li",{key:e.name,className:"edit-post-manage-blocks-modal__checklist-item"},Object(c.createElement)(j.CheckboxControl,{label:Object(c.createElement)(c.Fragment,null,e.title,Object(c.createElement)(i.BlockIcon,{icon:e.icon})),checked:n.includes(e.name),onChange:Object(O.partial)(o,e.name)}))}))},Ut=Object(c.createContext)({});var Ht=Object(g.compose)([g.withInstanceId,Object(h.withSelect)(function(e){return{hiddenBlockTypes:(0,e("core/edit-post").getPreference)("hiddenBlockTypes")}}),Object(h.withDispatch)(function(e,t){var n=e("core/edit-post"),o=n.showBlockTypes,r=n.hideBlockTypes;return{toggleVisible:function(e,t){t?o(e):r(e)},toggleAllVisible:function(e){var n=Object(O.map)(t.blockTypes,"name");e?o(n):r(n)}}})])(function(e){var t=e.instanceId,n=e.category,o=e.blockTypes,r=e.hiddenBlockTypes,i=e.toggleVisible,a=e.toggleAllVisible,l=Object(c.useContext)(Ut).allowedBlockTypes,s=Object(c.useMemo)(function(){return!0===l?o:o.filter(function(e){var t=e.name;return Object(O.includes)(l||[],t)})},[l,o]);if(!s.length)return null;var u,d=O.without.apply(void 0,[Object(O.map)(s,"name")].concat(Object(M.a)(r))),b="edit-post-manage-blocks-modal__category-title-"+t,p=d.length===s.length;return u=p?"true":d.length>0?"mixed":"false",Object(c.createElement)("div",{role:"group","aria-labelledby":b,className:"edit-post-manage-blocks-modal__category"},Object(c.createElement)(j.CheckboxControl,{checked:p,onChange:a,className:"edit-post-manage-blocks-modal__category-title","aria-checked":u,label:Object(c.createElement)("span",{id:b},n.title)}),Object(c.createElement)(Vt,{blockTypes:s,value:d,onItemChange:i}))});var Wt=Object(g.compose)([Object(g.withState)({search:""}),Object(h.withSelect)(function(e){var t=e("core/blocks"),n=t.getBlockTypes,o=t.getCategories,r=t.hasBlockSupport,c=t.isMatchingSearchTerm,i=(0,e("core/edit-post").getPreference)("hiddenBlockTypes"),a=Object(O.isArray)(i)&&i.length;return{blockTypes:n(),categories:o(),hasBlockSupport:r,isMatchingSearchTerm:c,numberOfHiddenBlocks:a}})])(function(e){var t=e.search,n=e.setState,o=e.blockTypes,r=e.categories,i=e.hasBlockSupport,a=e.isMatchingSearchTerm,l=e.numberOfHiddenBlocks;return o=o.filter(function(e){return i(e,"inserter",!0)&&(!t||a(e,t))&&!e.parent}),Object(c.createElement)("div",{className:"edit-post-manage-blocks-modal__content"},Object(c.createElement)(j.TextControl,{type:"search",label:Object(E.__)("Search for a block"),value:t,onChange:function(e){return n({search:e})},className:"edit-post-manage-blocks-modal__search"}),!!l&&Object(c.createElement)("div",{className:"edit-post-manage-blocks-modal__disabled-blocks-count"},Object(E.sprintf)(Object(E._n)("%1$d block is disabled.","%1$d blocks are disabled.",l),l)),Object(c.createElement)("div",{tabIndex:"0",role:"region","aria-label":Object(E.__)("Available block types"),className:"edit-post-manage-blocks-modal__results"},0===o.length&&Object(c.createElement)("p",{className:"edit-post-manage-blocks-modal__no-results"},Object(E.__)("No blocks found.")),r.map(function(e){return Object(c.createElement)(Ht,{key:e.slug,category:e,blockTypes:Object(O.filter)(o,{category:e.slug})})})))});var qt=Object(g.compose)([Object(h.withSelect)(function(e){return{isActive:(0,e("core/edit-post").isModalActive)("edit-post/manage-blocks")}}),Object(h.withDispatch)(function(e){return{closeModal:e("core/edit-post").closeModal}})])(function(e){var t=e.isActive,n=e.closeModal;return t?Object(c.createElement)(j.Modal,{className:"edit-post-manage-blocks-modal",title:Object(E.__)("Block Manager"),closeLabel:Object(E.__)("Close"),onRequestClose:n},Object(c.createElement)(Wt,null)):null}),Kt=function(e){var t=e.title,n=e.children;return Object(c.createElement)("section",{className:"edit-post-options-modal__section"},Object(c.createElement)("h2",{className:"edit-post-options-modal__section-title"},t),n)};var Qt=function(e){var t=e.label,n=e.isChecked,o=e.onChange,r=e.children;return Object(c.createElement)("div",{className:"edit-post-options-modal__option"},Object(c.createElement)(j.CheckboxControl,{label:t,checked:n,onChange:o}),r)};function Xt(e){var t=e.willEnable,n=Object(c.useState)(!1),o=Object(U.a)(n,2),r=o[0],i=o[1];return Object(c.createElement)(c.Fragment,null,Object(c.createElement)("p",{className:"edit-post-options-modal__custom-fields-confirmation-message"},Object(E.__)("A page reload is required for this change. Make sure your content is saved before reloading.")),Object(c.createElement)(j.Button,{className:"edit-post-options-modal__custom-fields-confirmation-button",isDefault:!0,isBusy:r,disabled:r,onClick:function(){i(!0),document.getElementById("toggle-custom-fields-form").submit()}},t?Object(E.__)("Enable & Reload"):Object(E.__)("Disable & Reload")))}var zt=Object(h.withSelect)(function(e){return{areCustomFieldsEnabled:!!e("core/editor").getEditorSettings().enableCustomFields}})(function(e){var t=e.label,n=e.areCustomFieldsEnabled,o=Object(c.useState)(n),r=Object(U.a)(o,2),i=r[0],a=r[1];return Object(c.createElement)(Qt,{label:t,isChecked:i,onChange:a},i!==n&&Object(c.createElement)(Xt,{willEnable:i}))}),Yt=Object(g.compose)(Object(h.withSelect)(function(e,t){var n=t.panelName,o=e("core/edit-post"),r=o.isEditorPanelEnabled;return{isRemoved:(0,o.isEditorPanelRemoved)(n),isChecked:r(n)}}),Object(g.ifCondition)(function(e){return!e.isRemoved}),Object(h.withDispatch)(function(e,t){var n=t.panelName;return{onChange:function(){return e("core/edit-post").toggleEditorPanelEnabled(n)}}}))(Qt),$t=Object(j.createSlotFill)("EnablePluginDocumentSettingPanelOption"),Zt=$t.Fill,Jt=$t.Slot,en=function(e){var t=e.label,n=e.panelName;return Object(c.createElement)(Zt,null,Object(c.createElement)(Yt,{label:t,panelName:n}))};en.Slot=Jt;var tn=en,nn=Object(g.compose)(Object(h.withSelect)(function(e){return{isChecked:e("core/editor").isPublishSidebarEnabled()}}),Object(h.withDispatch)(function(e){var t=e("core/editor"),n=t.enablePublishSidebar,o=t.disablePublishSidebar;return{onChange:function(e){return e?n():o()}}}),Object(s.ifViewportMatches)("medium"))(Qt),on=function(e){function t(e){var n,o=e.isChecked;return Object(Re.a)(this,t),(n=Object(Ve.a)(this,Object(Ue.a)(t).apply(this,arguments))).state={isChecked:o},n}return Object(He.a)(t,e),Object(Ge.a)(t,[{key:"componentWillUnmount",value:function(){this.state.isChecked!==this.props.isChecked&&this.props.onChange(this.state.isChecked)}},{key:"render",value:function(){var e=this;return Object(c.createElement)(Qt,{label:this.props.label,isChecked:this.state.isChecked,onChange:function(t){return e.setState({isChecked:t})}})}}]),t}(c.Component),rn=Object(g.compose)(Object(h.withSelect)(function(e){return{isChecked:e("core/nux").areTipsEnabled()}}),Object(h.withDispatch)(function(e){var t=e("core/nux"),n=t.enableTips,o=t.disableTips;return{onChange:function(e){return e?n():o()}}}))(on),cn=Object(g.compose)(Object(h.withSelect)(function(e,t){var n=t.feature;return{isChecked:e("core/edit-post").isFeatureActive(n)}}),Object(h.withDispatch)(function(e,t){var n=t.feature,o=e("core/edit-post").toggleFeature;return{onChange:function(){o(n)}}}))(Qt);var an=Object(h.withSelect)(function(e){var t=e("core/editor").getEditorSettings,n=e("core/edit-post").getAllMetaBoxes;return{areCustomFieldsRegistered:void 0!==t().enableCustomFields,metaBoxes:n()}})(function(e){var t=e.areCustomFieldsRegistered,n=e.metaBoxes,o=Object(m.a)(e,["areCustomFieldsRegistered","metaBoxes"]),r=Object(O.filter)(n,function(e){return"postcustom"!==e.id});return t||0!==r.length?Object(c.createElement)(Kt,o,t&&Object(c.createElement)(zt,{label:Object(E.__)("Custom Fields")}),Object(O.map)(r,function(e){var t=e.id,n=e.title;return Object(c.createElement)(Yt,{key:t,label:n,panelName:"meta-box-".concat(t)})})):null});var ln=Object(g.compose)(Object(h.withSelect)(function(e){var t=e("core/editor").getEditedPostAttribute,n=(0,e("core").getPostType)(t("type"));return{isModalActive:e("core/edit-post").isModalActive("edit-post/options"),isViewable:Object(O.get)(n,["viewable"],!1)}}),Object(h.withDispatch)(function(e){return{closeModal:function(){return e("core/edit-post").closeModal()}}}))(function(e){var t=e.isModalActive,n=e.isViewable,o=e.closeModal;return t?Object(c.createElement)(j.Modal,{className:"edit-post-options-modal",title:Object(E.__)("Options"),closeLabel:Object(E.__)("Close"),onRequestClose:o},Object(c.createElement)(Kt,{title:Object(E.__)("General")},Object(c.createElement)(nn,{label:Object(E.__)("Pre-publish Checks")}),Object(c.createElement)(rn,{label:Object(E.__)("Tips")}),Object(c.createElement)(cn,{feature:"showInserterHelpPanel",label:Object(E.__)("Inserter Help Panel")})),Object(c.createElement)(Kt,{title:Object(E.__)("Document Panels")},Object(c.createElement)(tn.Slot,null),n&&Object(c.createElement)(Yt,{label:Object(E.__)("Permalink"),panelName:"post-link"}),Object(c.createElement)(a.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(c.createElement)(Yt,{label:Object(O.get)(t,["labels","menu_name"]),panelName:"taxonomy-panel-".concat(t.slug)})}}),Object(c.createElement)(a.PostFeaturedImageCheck,null,Object(c.createElement)(Yt,{label:Object(E.__)("Featured Image"),panelName:"featured-image"})),Object(c.createElement)(a.PostExcerptCheck,null,Object(c.createElement)(Yt,{label:Object(E.__)("Excerpt"),panelName:"post-excerpt"})),Object(c.createElement)(a.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(c.createElement)(Yt,{label:Object(E.__)("Discussion"),panelName:"discussion-panel"})),Object(c.createElement)(a.PageAttributesCheck,null,Object(c.createElement)(Yt,{label:Object(E.__)("Page Attributes"),panelName:"page-attributes"}))),Object(c.createElement)(an,{title:Object(E.__)("Advanced Panels")})):null}),sn=function(e){function t(){var e;return Object(Re.a)(this,t),(e=Object(Ve.a)(this,Object(Ue.a)(t).apply(this,arguments))).bindContainerNode=e.bindContainerNode.bind(Object(kt.a)(e)),e}return Object(He.a)(t,e),Object(Ge.a)(t,[{key:"componentDidMount",value:function(){this.form=document.querySelector(".metabox-location-"+this.props.location),this.form&&this.container.appendChild(this.form)}},{key:"componentWillUnmount",value:function(){this.form&&document.querySelector("#metaboxes").appendChild(this.form)}},{key:"bindContainerNode",value:function(e){this.container=e}},{key:"render",value:function(){var e=this.props,t=e.location,n=e.isSaving,o=Xe()("edit-post-meta-boxes-area","is-".concat(t),{"is-loading":n});return Object(c.createElement)("div",{className:o},n&&Object(c.createElement)(j.Spinner,null),Object(c.createElement)("div",{className:"edit-post-meta-boxes-area__container",ref:this.bindContainerNode}),Object(c.createElement)("div",{className:"edit-post-meta-boxes-area__clear"}))}}]),t}(c.Component),un=Object(h.withSelect)(function(e){return{isSaving:e("core/edit-post").isSavingMetaBoxes()}})(sn),dn=function(e){function t(){return Object(Re.a)(this,t),Object(Ve.a)(this,Object(Ue.a)(t).apply(this,arguments))}return Object(He.a)(t,e),Object(Ge.a)(t,[{key:"componentDidMount",value:function(){this.updateDOM()}},{key:"componentDidUpdate",value:function(e){this.props.isVisible!==e.isVisible&&this.updateDOM()}},{key:"updateDOM",value:function(){var e=this.props,t=e.id,n=e.isVisible,o=document.getElementById(t);o&&(n?o.classList.remove("is-hidden"):o.classList.add("is-hidden"))}},{key:"render",value:function(){return null}}]),t}(c.Component),bn=Object(h.withSelect)(function(e,t){var n=t.id;return{isVisible:e("core/edit-post").isEditorPanelEnabled("meta-box-".concat(n))}})(dn);var pn=Object(h.withSelect)(function(e,t){var n=t.location,o=e("core/edit-post"),r=o.isMetaBoxLocationVisible;return{metaBoxes:(0,o.getMetaBoxesPerLocation)(n),isVisible:r(n)}})(function(e){var t=e.location,n=e.isVisible,o=e.metaBoxes;return Object(c.createElement)(c.Fragment,null,Object(O.map)(o,function(e){var t=e.id;return Object(c.createElement)(bn,{key:t,id:t})}),n&&Object(c.createElement)(un,{location:t}))}),mn=Object(j.createSlotFill)("Sidebar"),On=mn.Fill,fn=mn.Slot;function jn(e){var t=e.children,n=e.label,o=e.className;return Object(c.createElement)("div",{className:Xe()("edit-post-sidebar",o),role:"region","aria-label":n,tabIndex:"-1"},t)}jn=Object(j.withFocusReturn)({onFocusReturn:function(){var e=document.querySelector('.edit-post-header__settings [aria-label="Settings"]');if(e)return e.focus(),!1}})(jn);var hn=Object(g.compose)(Object(h.withSelect)(function(e,t){var n=t.name;return{isActive:e("core/edit-post").getActiveGeneralSidebarName()===n}}),Object(g.ifCondition)(function(e){return e.isActive}))(function(e){return Object(c.createElement)(On,null,Object(c.createElement)(j.Animate,{type:"slide-in",options:{origin:"left"}},function(){return Object(c.createElement)(jn,e)}))});hn.Slot=fn;var En=hn,gn=Object(g.compose)(Object(h.withSelect)(function(e){return{title:e("core/editor").getEditedPostAttribute("title")}}),Object(h.withDispatch)(function(e){return{closeSidebar:e("core/edit-post").closeGeneralSidebar}}))(function(e){var t=e.children,n=e.className,o=e.closeLabel,r=e.closeSidebar,i=e.title;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",{className:"components-panel__header edit-post-sidebar-header__small"},Object(c.createElement)("span",{className:"edit-post-sidebar-header__title"},i||Object(E.__)("(no title)")),Object(c.createElement)(j.IconButton,{onClick:r,icon:"no-alt",label:o})),Object(c.createElement)("div",{className:Xe()("components-panel__header edit-post-sidebar-header",n)},t,Object(c.createElement)(j.IconButton,{onClick:r,icon:"no-alt",label:o,shortcut:Je.toggleSidebar})))}),vn=Object(h.withDispatch)(function(e){var t=e("core/edit-post").openGeneralSidebar,n=e("core/block-editor").clearSelectedBlock;return{openDocumentSettings:function(){t("edit-post/document"),n()},openBlockSettings:function(){t("edit-post/block")}}})(function(e){var t=e.openDocumentSettings,n=e.openBlockSettings,o=e.sidebarName,r=Object(E.__)("Block"),i="edit-post/document"===o?[Object(E.__)("Document (selected)"),"is-active"]:[Object(E.__)("Document"),""],a=Object(U.a)(i,2),l=a[0],s=a[1],u="edit-post/block"===o?[Object(E.__)("Block (selected)"),"is-active"]:[Object(E.__)("Block"),""],d=Object(U.a)(u,2),b=d[0],p=d[1];return Object(c.createElement)(gn,{className:"edit-post-sidebar__panel-tabs",closeLabel:Object(E.__)("Close settings")},Object(c.createElement)("ul",null,Object(c.createElement)("li",null,Object(c.createElement)("button",{onClick:t,className:"edit-post-sidebar__panel-tab ".concat(s),"aria-label":l,"data-label":Object(E.__)("Document")},Object(E.__)("Document"))),Object(c.createElement)("li",null,Object(c.createElement)("button",{onClick:n,className:"edit-post-sidebar__panel-tab ".concat(p),"aria-label":b,"data-label":r},r))))});var _n=function(){return Object(c.createElement)(a.PostVisibilityCheck,{render:function(e){var t=e.canEdit;return Object(c.createElement)(j.PanelRow,{className:"edit-post-post-visibility"},Object(c.createElement)("span",null,Object(E.__)("Visibility")),!t&&Object(c.createElement)("span",null,Object(c.createElement)(a.PostVisibilityLabel,null)),t&&Object(c.createElement)(j.Dropdown,{position:"bottom left",contentClassName:"edit-post-post-visibility__dialog",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(c.createElement)(j.Button,{type:"button","aria-expanded":t,className:"edit-post-post-visibility__toggle",onClick:n,isLink:!0},Object(c.createElement)(a.PostVisibilityLabel,null))},renderContent:function(){return Object(c.createElement)(a.PostVisibility,null)}}))}})};function yn(){return Object(c.createElement)(a.PostTrashCheck,null,Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostTrash,null)))}var Sn=function(){return Object(c.createElement)(a.PostScheduleCheck,null,Object(c.createElement)(j.PanelRow,{className:"edit-post-post-schedule"},Object(c.createElement)("span",null,Object(E.__)("Publish")),Object(c.createElement)(j.Dropdown,{position:"bottom left",contentClassName:"edit-post-post-schedule__dialog",renderToggle:function(e){var t=e.onToggle,n=e.isOpen;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(j.Button,{type:"button",className:"edit-post-post-schedule__toggle",onClick:t,"aria-expanded":n,isLink:!0},Object(c.createElement)(a.PostScheduleLabel,null)))},renderContent:function(){return Object(c.createElement)(a.PostSchedule,null)}})))};var kn=function(){return Object(c.createElement)(a.PostStickyCheck,null,Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostSticky,null)))};var Pn=function(){return Object(c.createElement)(a.PostAuthorCheck,null,Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostAuthor,null)))};var wn=function(){return Object(c.createElement)(a.PostFormatCheck,null,Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostFormat,null)))};var Cn=function(){return Object(c.createElement)(a.PostPendingStatusCheck,null,Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostPendingStatus,null)))},Tn=Object(j.createSlotFill)("PluginPostStatusInfo"),xn=Tn.Fill,Nn=Tn.Slot,An=function(e){var t=e.children,n=e.className;return Object(c.createElement)(xn,null,Object(c.createElement)(j.PanelRow,{className:n},t))};An.Slot=Nn;var Mn=An;var Bn=Object(g.compose)([Object(h.withSelect)(function(e){var t=e("core/edit-post"),n=t.isEditorPanelRemoved,o=t.isEditorPanelOpened;return{isRemoved:n("post-status"),isOpened:o("post-status")}}),Object(g.ifCondition)(function(e){return!e.isRemoved}),Object(h.withDispatch)(function(e){return{onTogglePanel:function(){return e("core/edit-post").toggleEditorPanelOpened("post-status")}}})])(function(e){var t=e.isOpened,n=e.onTogglePanel;return Object(c.createElement)(j.PanelBody,{className:"edit-post-post-status",title:Object(E.__)("Status & Visibility"),opened:t,onToggle:n},Object(c.createElement)(Mn.Slot,null,function(e){return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(_n,null),Object(c.createElement)(Sn,null),Object(c.createElement)(wn,null),Object(c.createElement)(kn,null),Object(c.createElement)(Cn,null),Object(c.createElement)(Pn,null),e,Object(c.createElement)(yn,null))}))});var In=function(){return Object(c.createElement)(a.PostLastRevisionCheck,null,Object(c.createElement)(j.PanelBody,{className:"edit-post-last-revision__panel"},Object(c.createElement)(a.PostLastRevision,null)))};var Dn=Object(g.compose)(Object(h.withSelect)(function(e,t){var n=Object(O.get)(t.taxonomy,["slug"]),o=n?"taxonomy-panel-".concat(n):"";return{panelName:o,isEnabled:!!n&&e("core/edit-post").isEditorPanelEnabled(o),isOpened:!!n&&e("core/edit-post").isEditorPanelOpened(o)}}),Object(h.withDispatch)(function(e,t){return{onTogglePanel:function(){e("core/edit-post").toggleEditorPanelOpened(t.panelName)}}}))(function(e){var t=e.isEnabled,n=e.taxonomy,o=e.isOpened,r=e.onTogglePanel,i=e.children;if(!t)return null;var a=Object(O.get)(n,["labels","menu_name"]);return a?Object(c.createElement)(j.PanelBody,{title:a,opened:o,onToggle:r},i):null});var Ln=function(){return Object(c.createElement)(a.PostTaxonomiesCheck,null,Object(c.createElement)(a.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(c.createElement)(Dn,{taxonomy:t},e)}}))};var Fn=Object(h.withSelect)(function(e){var t=e("core/editor").getEditedPostAttribute,n=e("core").getPostType,o=e("core/edit-post"),r=o.isEditorPanelEnabled,c=o.isEditorPanelOpened;return{postType:n(t("type")),isEnabled:r("featured-image"),isOpened:c("featured-image")}}),Rn=Object(h.withDispatch)(function(e){var t=e("core/edit-post").toggleEditorPanelOpened;return{onTogglePanel:Object(O.partial)(t,"featured-image")}}),Gn=Object(g.compose)(Fn,Rn)(function(e){var t=e.isEnabled,n=e.isOpened,o=e.postType,r=e.onTogglePanel;return t?Object(c.createElement)(a.PostFeaturedImageCheck,null,Object(c.createElement)(j.PanelBody,{title:Object(O.get)(o,["labels","featured_image"],Object(E.__)("Featured Image")),opened:n,onToggle:r},Object(c.createElement)(a.PostFeaturedImage,null))):null});var Vn=Object(g.compose)([Object(h.withSelect)(function(e){return{isEnabled:e("core/edit-post").isEditorPanelEnabled("post-excerpt"),isOpened:e("core/edit-post").isEditorPanelOpened("post-excerpt")}}),Object(h.withDispatch)(function(e){return{onTogglePanel:function(){return e("core/edit-post").toggleEditorPanelOpened("post-excerpt")}}})])(function(e){var t=e.isEnabled,n=e.isOpened,o=e.onTogglePanel;return t?Object(c.createElement)(a.PostExcerptCheck,null,Object(c.createElement)(j.PanelBody,{title:Object(E.__)("Excerpt"),opened:n,onToggle:o},Object(c.createElement)(a.PostExcerpt,null))):null});var Un=Object(g.compose)([Object(h.withSelect)(function(e){var t=e("core/editor"),n=t.isEditedPostNew,o=t.isPermalinkEditable,r=t.getCurrentPost,c=t.isCurrentPostPublished,i=t.getPermalinkParts,a=t.getEditedPostAttribute,l=e("core/edit-post"),s=l.isEditorPanelEnabled,u=l.isEditorPanelOpened,d=e("core").getPostType,b=r(),p=b.link,m=b.id,f=d(a("type"));return{isNew:n(),postLink:p,isEditable:o(),isPublished:c(),isOpened:u("post-link"),permalinkParts:i(),isEnabled:s("post-link"),isViewable:Object(O.get)(f,["viewable"],!1),postTitle:a("title"),postSlug:a("slug"),postID:m,postTypeLabel:Object(O.get)(f,["labels","view_item"])}}),Object(g.ifCondition)(function(e){var t=e.isEnabled,n=e.isNew,o=e.postLink,r=e.isViewable,c=e.permalinkParts;return t&&!n&&o&&r&&c}),Object(h.withDispatch)(function(e){var t=e("core/edit-post").toggleEditorPanelOpened,n=e("core/editor").editPost;return{onTogglePanel:function(){return t("post-link")},editPermalink:function(e){n({slug:e})}}}),Object(g.withState)({forceEmptyField:!1})])(function(e){var t,n,o,r=e.isOpened,i=e.onTogglePanel,l=e.isEditable,s=e.postLink,u=e.permalinkParts,d=e.editPermalink,b=e.forceEmptyField,p=e.setState,m=e.postTitle,O=e.postSlug,f=e.postID,h=e.postTypeLabel,g=u.prefix,v=u.suffix,_=Object(S.safeDecodeURIComponent)(O)||Object(a.cleanForSlug)(m)||f;return l&&(t=g&&Object(c.createElement)("span",{className:"edit-post-post-link__link-prefix"},g),n=_&&Object(c.createElement)("span",{className:"edit-post-post-link__link-post-name"},_),o=v&&Object(c.createElement)("span",{className:"edit-post-post-link__link-suffix"},v)),Object(c.createElement)(j.PanelBody,{title:Object(E.__)("Permalink"),opened:r,onToggle:i},l&&Object(c.createElement)("div",{className:"editor-post-link"},Object(c.createElement)(j.TextControl,{label:Object(E.__)("URL Slug"),value:b?"":_,onChange:function(e){d(e),e?b&&p({forceEmptyField:!1}):b||p({forceEmptyField:!0})},onBlur:function(e){d(Object(a.cleanForSlug)(e.target.value)),b&&p({forceEmptyField:!1})}}),Object(c.createElement)("p",null,Object(E.__)("The last part of the URL. "),Object(c.createElement)(j.ExternalLink,{href:"https://wordpress.org/support/article/writing-posts/#post-field-descriptions"},Object(E.__)("Read about permalinks")))),Object(c.createElement)("p",{className:"edit-post-post-link__preview-label"},h||Object(E.__)("View Post")),Object(c.createElement)("div",{className:"edit-post-post-link__preview-link-container"},Object(c.createElement)(j.ExternalLink,{className:"edit-post-post-link__link",href:s,target:"_blank"},l?Object(c.createElement)(c.Fragment,null,t,n,o):s)))});var Hn=Object(g.compose)([Object(h.withSelect)(function(e){return{isEnabled:e("core/edit-post").isEditorPanelEnabled("discussion-panel"),isOpened:e("core/edit-post").isEditorPanelOpened("discussion-panel")}}),Object(h.withDispatch)(function(e){return{onTogglePanel:function(){return e("core/edit-post").toggleEditorPanelOpened("discussion-panel")}}})])(function(e){var t=e.isEnabled,n=e.isOpened,o=e.onTogglePanel;return t?Object(c.createElement)(a.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(c.createElement)(j.PanelBody,{title:Object(E.__)("Discussion"),opened:n,onToggle:o},Object(c.createElement)(a.PostTypeSupportCheck,{supportKeys:"comments"},Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostComments,null))),Object(c.createElement)(a.PostTypeSupportCheck,{supportKeys:"trackbacks"},Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostPingbacks,null))))):null});var Wn=Object(h.withSelect)(function(e){var t=e("core/editor").getEditedPostAttribute,n=e("core/edit-post"),o=n.isEditorPanelEnabled,r=n.isEditorPanelOpened,c=e("core").getPostType;return{isEnabled:o("page-attributes"),isOpened:r("page-attributes"),postType:c(t("type"))}}),qn=Object(h.withDispatch)(function(e){var t=e("core/edit-post").toggleEditorPanelOpened;return{onTogglePanel:Object(O.partial)(t,"page-attributes")}}),Kn=Object(g.compose)(Wn,qn)(function(e){var t=e.isEnabled,n=e.isOpened,o=e.onTogglePanel,r=e.postType;return t&&r?Object(c.createElement)(a.PageAttributesCheck,null,Object(c.createElement)(j.PanelBody,{title:Object(O.get)(r,["labels","attributes"],Object(E.__)("Page Attributes")),opened:n,onToggle:o},Object(c.createElement)(a.PageTemplate,null),Object(c.createElement)(a.PageAttributesParent,null),Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PageAttributesOrder,null)))):null}),Qn=Object(j.createSlotFill)("PluginDocumentSettingPanel"),Xn=Qn.Fill,zn=Qn.Slot,Yn=Object(g.compose)(Object(y.withPluginContext)(function(e,t){return{icon:t.icon||e.icon,panelName:"".concat(e.name,"/").concat(t.name)}}),Object(h.withSelect)(function(e,t){var n=t.panelName;return{opened:e("core/edit-post").isEditorPanelOpened(n),isEnabled:e("core/edit-post").isEditorPanelEnabled(n)}}),Object(h.withDispatch)(function(e,t){var n=t.panelName;return{onToggle:function(){return e("core/edit-post").toggleEditorPanelOpened(n)}}}))(function(e){var t=e.isEnabled,n=e.panelName,o=e.opened,r=e.onToggle,i=e.className,a=e.title,l=e.icon,s=e.children;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(tn,{label:a,panelName:n}),Object(c.createElement)(Xn,null,t&&Object(c.createElement)(j.PanelBody,{className:i,title:a,icon:l,opened:o,onToggle:r},s)))});Yn.Slot=zn;var $n=Yn,Zn=Object(g.compose)(Object(h.withSelect)(function(e){var t=e("core/edit-post"),n=t.getActiveGeneralSidebarName;return{isEditorSidebarOpened:(0,t.isEditorSidebarOpened)(),sidebarName:n()}}),Object(g.ifCondition)(function(e){return e.isEditorSidebarOpened}))(function(e){var t=e.sidebarName;return Object(c.createElement)(En,{name:t,label:Object(E.__)("Editor settings")},Object(c.createElement)(vn,{sidebarName:t}),Object(c.createElement)(j.Panel,null,"edit-post/document"===t&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)(Bn,null),Object(c.createElement)($n.Slot,null),Object(c.createElement)(In,null),Object(c.createElement)(Un,null),Object(c.createElement)(Ln,null),Object(c.createElement)(Gn,null),Object(c.createElement)(Vn,null),Object(c.createElement)(Hn,null),Object(c.createElement)(Kn,null),Object(c.createElement)(pn,{location:"side"})),"edit-post/block"===t&&Object(c.createElement)(j.PanelBody,{className:"edit-post-settings-sidebar__panel-block"},Object(c.createElement)(i.BlockInspector,null))))}),Jn=Object(j.createSlotFill)("PluginPostPublishPanel"),eo=Jn.Fill,to=Jn.Slot,no=Object(g.compose)(Object(y.withPluginContext)(function(e,t){return{icon:t.icon||e.icon}}))(function(e){var t=e.children,n=e.className,o=e.title,r=e.initialOpen,i=void 0!==r&&r,a=e.icon;return Object(c.createElement)(eo,null,Object(c.createElement)(j.PanelBody,{className:n,initialOpen:i||!o,title:o,icon:a},t))});no.Slot=to;var oo=no,ro=Object(j.createSlotFill)("PluginPrePublishPanel"),co=ro.Fill,io=ro.Slot,ao=Object(g.compose)(Object(y.withPluginContext)(function(e,t){return{icon:t.icon||e.icon}}))(function(e){var t=e.children,n=e.className,o=e.title,r=e.initialOpen,i=void 0!==r&&r,a=e.icon;return Object(c.createElement)(co,null,Object(c.createElement)(j.PanelBody,{className:n,initialOpen:i||!o,title:o,icon:a},t))});ao.Slot=io;var lo=ao,so=function(e){function t(){return Object(Re.a)(this,t),Object(Ve.a)(this,Object(Ue.a)(t).apply(this,arguments))}return Object(He.a)(t,e),Object(Ge.a)(t,[{key:"componentDidMount",value:function(){this.isSticky=!1,this.sync(),document.body.classList.contains("sticky-menu")&&(this.isSticky=!0,document.body.classList.remove("sticky-menu"))}},{key:"componentWillUnmount",value:function(){this.isSticky&&document.body.classList.add("sticky-menu")}},{key:"componentDidUpdate",value:function(e){this.props.isActive!==e.isActive&&this.sync()}},{key:"sync",value:function(){this.props.isActive?document.body.classList.add("is-fullscreen-mode"):document.body.classList.remove("is-fullscreen-mode")}},{key:"render",value:function(){return null}}]),t}(c.Component),uo=Object(h.withSelect)(function(e){return{isActive:e("core/edit-post").isFeatureActive("fullscreenMode")}})(so);var bo=Object(g.compose)(Object(h.withSelect)(function(e){return{mode:e("core/edit-post").getEditorMode(),editorSidebarOpened:e("core/edit-post").isEditorSidebarOpened(),pluginSidebarOpened:e("core/edit-post").isPluginSidebarOpened(),publishSidebarOpened:e("core/edit-post").isPublishSidebarOpened(),hasFixedToolbar:e("core/edit-post").isFeatureActive("fixedToolbar"),hasActiveMetaboxes:e("core/edit-post").hasMetaBoxes(),isSaving:e("core/edit-post").isSavingMetaBoxes(),isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled}}),Object(h.withDispatch)(function(e){var t=e("core/edit-post");return{closePublishSidebar:t.closePublishSidebar,togglePublishSidebar:t.togglePublishSidebar}}),j.navigateRegions,Object(s.withViewportMatch)({isMobileViewport:"< small"}))(function(e){var t=e.mode,n=e.editorSidebarOpened,o=e.pluginSidebarOpened,r=e.publishSidebarOpened,i=e.hasFixedToolbar,l=e.closePublishSidebar,s=e.togglePublishSidebar,u=e.hasActiveMetaboxes,d=e.isSaving,b=e.isMobileViewport,m=e.isRichEditingEnabled,O=n||o||r,f=Xe()("edit-post-layout",{"is-sidebar-opened":O,"has-fixed-toolbar":i,"has-metaboxes":u}),h={role:"region","aria-label":Object(E.__)("Editor publish"),tabIndex:-1};return Object(c.createElement)(j.FocusReturnProvider,{className:f},Object(c.createElement)(uo,null),Object(c.createElement)(Ye,null),Object(c.createElement)(a.UnsavedChangesWarning,null),Object(c.createElement)(a.AutosaveMonitor,null),Object(c.createElement)(a.LocalAutosaveMonitor,null),Object(c.createElement)(jt,null),Object(c.createElement)("div",{className:"edit-post-layout__content",role:"region","aria-label":Object(E.__)("Editor content"),tabIndex:"-1"},Object(c.createElement)(a.EditorNotices,null),Object(c.createElement)(wt,null),Object(c.createElement)(Gt,null),Object(c.createElement)(qt,null),Object(c.createElement)(ln,null),("text"===t||!m)&&Object(c.createElement)(ht,null),m&&"visual"===t&&Object(c.createElement)(St,null),Object(c.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(c.createElement)(pn,{location:"normal"})),Object(c.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(c.createElement)(pn,{location:"advanced"}))),r?Object(c.createElement)(a.PostPublishPanel,Object(p.a)({},h,{onClose:l,forceIsDirty:u,forceIsSaving:d,PrePublishExtension:lo.Slot,PostPublishExtension:oo.Slot})):Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",Object(p.a)({className:"edit-post-toggle-publish-panel"},h),Object(c.createElement)(j.Button,{isDefault:!0,type:"button",className:"edit-post-toggle-publish-panel__button",onClick:s,"aria-expanded":!1},Object(E.__)("Open publish panel"))),Object(c.createElement)(Zn,null),Object(c.createElement)(En.Slot,null),b&&O&&Object(c.createElement)(j.ScrollLock,null)),Object(c.createElement)(j.Popover.Slot,null),Object(c.createElement)(y.PluginArea,null))}),po=function(e){var t=e.postId;!function(e){var t=Object(h.useSelect)(function(e){return{isSmall:e("core/viewport").isViewportMatch("< medium"),sidebarToReOpenOnExpand:e(Le).getActiveGeneralSidebarName()}},[e]),n=t.isSmall,o=t.sidebarToReOpenOnExpand,r=Object(h.useDispatch)(Le),i=r.openGeneralSidebar,a=r.closeGeneralSidebar,l=Object(c.useRef)("");Object(c.useEffect)(function(){n&&o?(l.current=o,a()):!n&&l.current&&(i(l.current),l.current="")},[n,o])}(t),function(e){var t=Object(h.useSelect)(function(e){return{hasBlockSelection:!!e("core/block-editor").getBlockSelectionStart(),isEditorSidebarOpened:e(Le).isEditorSidebarOpened()}},[e]),n=t.hasBlockSelection,o=t.isEditorSidebarOpened,r=Object(h.useDispatch)(Le).openGeneralSidebar;Object(c.useEffect)(function(){o&&r(n?"edit-post/block":"edit-post/document")},[n,o])}(t),function(e){var t=Object(h.useSelect)(function(e){return{newPermalink:e("core/editor").getCurrentPost().link}},[e]).newPermalink,n=Object(c.useRef)();Object(c.useEffect)(function(){n.current=document.querySelector("#wp-admin-bar-preview a")||document.querySelector("#wp-admin-bar-view a")},[e]),Object(c.useEffect)(function(){t&&n.current&&n.current.setAttribute("href",t)},[t])}(t);var n=Object(h.useDispatch)("core/nux").triggerGuide;return Object(c.useEffect)(function(){n(["core/editor.inserter","core/editor.settings","core/editor.preview","core/editor.publish"])},[n]),null},mo=function(e){function t(){var e;return Object(Re.a)(this,t),(e=Object(Ve.a)(this,Object(Ue.a)(t).apply(this,arguments))).getEditorSettings=qe()(e.getEditorSettings,{maxSize:1}),e}return Object(He.a)(t,e),Object(Ge.a)(t,[{key:"getEditorSettings",value:function(e,t,n,o,r,c,i,a,l){if(e=Object(I.a)({},e,{__experimentalPreferredStyleVariations:{value:i,onChange:l},hasFixedToolbar:t,focusMode:o,showInserterHelpPanel:n,__experimentalLocalAutosaveInterval:a}),Object(O.size)(r)>0){var s=!0===e.allowedBlockTypes?Object(O.map)(c,"name"):e.allowedBlockTypes||[];e.allowedBlockTypes=O.without.apply(void 0,[s].concat(Object(M.a)(r)))}return e}},{key:"render",value:function(){var e=this.props,t=e.settings,n=e.hasFixedToolbar,o=e.focusMode,r=e.post,i=e.postId,l=e.initialEdits,s=e.onError,u=e.hiddenBlockTypes,d=e.blockTypes,b=e.preferredStyleVariations,O=e.__experimentalLocalAutosaveInterval,f=e.showInserterHelpPanel,h=e.updatePreferredStyleVariations,E=Object(m.a)(e,["settings","hasFixedToolbar","focusMode","post","postId","initialEdits","onError","hiddenBlockTypes","blockTypes","preferredStyleVariations","__experimentalLocalAutosaveInterval","showInserterHelpPanel","updatePreferredStyleVariations"]);if(!r)return null;var g=this.getEditorSettings(t,n,f,o,u,d,b,O,h);return Object(c.createElement)(c.StrictMode,null,Object(c.createElement)(Ut.Provider,{value:t},Object(c.createElement)(j.SlotFillProvider,null,Object(c.createElement)(j.DropZoneProvider,null,Object(c.createElement)(a.EditorProvider,Object(p.a)({settings:g,post:r,initialEdits:l,useSubRegistry:!1},E),Object(c.createElement)(a.ErrorBoundary,{onError:s},Object(c.createElement)(po,{postId:i}),Object(c.createElement)(bo,null),Object(c.createElement)(j.KeyboardShortcuts,{shortcuts:Ke})),Object(c.createElement)(a.PostLockedModal,null))))))}}]),t}(c.Component),Oo=Object(g.compose)([Object(h.withSelect)(function(e,t){var n=t.postId,o=t.postType,r=e("core/edit-post"),c=r.isFeatureActive,i=r.getPreference,a=e("core").getEntityRecord,l=e("core/blocks").getBlockTypes;return{showInserterHelpPanel:c("showInserterHelpPanel"),hasFixedToolbar:c("fixedToolbar"),focusMode:c("focusMode"),post:a("postType",o,n),preferredStyleVariations:i("preferredStyleVariations"),hiddenBlockTypes:i("hiddenBlockTypes"),blockTypes:l(),__experimentalLocalAutosaveInterval:i("localAutosaveInterval")}}),Object(h.withDispatch)(function(e){return{updatePreferredStyleVariations:e("core/edit-post").updatePreferredStyleVariations}})])(mo),fo=function(e,t){return!Array.isArray(t)||function(e,t){return 0===Object(O.difference)(e,t).length}(e,t)},jo=function(e){var t=e.allowedBlocks,n=e.icon,o=e.label,r=e.onClick,i=e.small,a=e.role;return Object(c.createElement)(yt,null,function(e){var l=e.selectedBlocks,s=e.onClose;return fo(l,t)?Object(c.createElement)(j.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(g.compose)(r,s),icon:n||"admin-plugins",label:i?o:void 0,role:a},!i&&o):null})},ho=Object(g.compose)(Object(y.withPluginContext)(function(e,t){return{icon:t.icon||e.icon}}))(function(e){var t=e.onClick,n=void 0===t?O.noop:t,o=Object(m.a)(e,["onClick"]);return Object(c.createElement)(ct,null,function(e){return Object(c.createElement)(j.MenuItem,Object(p.a)({},o,{onClick:Object(g.compose)(n,e.onClose)}))})});var Eo=Object(g.compose)(Object(y.withPluginContext)(function(e,t){return{icon:t.icon||e.icon,sidebarName:"".concat(e.name,"/").concat(t.name)}}),Object(h.withSelect)(function(e,t){var n=t.sidebarName,o=e("core/edit-post"),r=o.getActiveGeneralSidebarName,c=o.isPluginItemPinned;return{isActive:r()===n,isPinned:c(n)}}),Object(h.withDispatch)(function(e,t){var n=t.isActive,o=t.sidebarName,r=e("core/edit-post"),c=r.closeGeneralSidebar,i=r.openGeneralSidebar,a=r.togglePinnedPluginItem;return{togglePin:function(){a(o)},toggleSidebar:function(){n?c():i(o)}}}))(function(e){var t=e.children,n=e.className,o=e.icon,r=e.isActive,i=e.isPinnable,a=void 0===i||i,l=e.isPinned,s=e.sidebarName,u=e.title,d=e.togglePin,b=e.toggleSidebar;return Object(c.createElement)(c.Fragment,null,a&&Object(c.createElement)(Ot,null,l&&Object(c.createElement)(j.IconButton,{icon:o,label:u,onClick:b,isToggled:r,"aria-expanded":r})),Object(c.createElement)(En,{name:s,label:Object(E.__)("Editor plugins")},Object(c.createElement)(gn,{closeLabel:Object(E.__)("Close plugin")},Object(c.createElement)("strong",null,u),a&&Object(c.createElement)(j.IconButton,{icon:l?"star-filled":"star-empty",label:l?Object(E.__)("Unpin from toolbar"):Object(E.__)("Pin to toolbar"),onClick:d,isToggled:l,"aria-expanded":l})),Object(c.createElement)(j.Panel,{className:n},t)))}),go=Object(g.compose)(Object(y.withPluginContext)(function(e,t){return{icon:t.icon||e.icon,sidebarName:"".concat(e.name,"/").concat(t.target)}}),Object(h.withSelect)(function(e,t){var n=t.sidebarName;return{isSelected:(0,e("core/edit-post").getActiveGeneralSidebarName)()===n}}),Object(h.withDispatch)(function(e,t){var n=t.isSelected,o=t.sidebarName,r=e("core/edit-post"),c=r.closeGeneralSidebar,i=r.openGeneralSidebar;return{onClick:n?c:function(){return i(o)}}}))(function(e){var t=e.children,n=e.icon,o=e.isSelected,r=e.onClick;return Object(c.createElement)(ho,{icon:o?"yes":n,isSelected:o,role:"menuitemcheckbox",onClick:r},t)});function vo(e,t,n,o,r){Object(c.unmountComponentAtNode)(n);var i=vo.bind(null,e,t,n,o,r);Object(c.render)(Object(c.createElement)(Oo,{settings:o,onError:i,postId:t,postType:e,initialEdits:r,recovery:!0}),n)}function _o(e,t,n,o,r){var i=document.getElementById(e),a=vo.bind(null,t,n,i,o,r);Object(u.registerCoreBlocks)(),Object(u.__experimentalRegisterExperimentalCoreBlocks)(o),"Standards"!==("CSS1Compat"===document.compatMode?"Standards":"Quirks")&&console.warn("Your browser is using Quirks Mode. \nThis can cause rendering issues such as blocks overlaying meta boxes in the editor. Quirks Mode can be triggered by PHP errors or HTML code appearing before the opening <!DOCTYPE html>. Try checking the raw page source or your site's PHP error log and resolving errors there, removing any HTML before the doctype, or disabling plugins."),Object(c.render)(Object(c.createElement)(Oo,{settings:o,onError:a,postId:n,postType:t,initialEdits:r}),i)}n.d(t,"reinitializeEditor",function(){return vo}),n.d(t,"initializeEditor",function(){return _o}),n.d(t,"PluginBlockSettingsMenuItem",function(){return jo}),n.d(t,"PluginDocumentSettingPanel",function(){return $n}),n.d(t,"PluginMoreMenuItem",function(){return ho}),n.d(t,"PluginPostPublishPanel",function(){return oo}),n.d(t,"PluginPostStatusInfo",function(){return Mn}),n.d(t,"PluginPrePublishPanel",function(){return lo}),n.d(t,"PluginSidebar",function(){return Eo}),n.d(t,"PluginSidebarMoreMenuItem",function(){return go})},23:function(e,t,n){"use strict";var o=n(38);var r=n(37);function c(e,t){return Object(o.a)(e)||function(e,t){var n=[],o=!0,r=!1,c=void 0;try{for(var i,a=e[Symbol.iterator]();!(o=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);o=!0);}catch(e){r=!0,c=e}finally{try{o||null==a.return||a.return()}finally{if(r)throw c}}return n}(e,t)||Object(r.a)()}n.d(t,"a",function(){return c})},24:function(e,t){!function(){e.exports=this.wp.hooks}()},25:function(e,t){!function(){e.exports=this.wp.editor}()},27:function(e,t){!function(){e.exports=this.wp.url}()},3:function(e,t){!function(){e.exports=this.wp.components}()},30:function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e){return(r="function"==typeof Symbol&&"symbol"===o(Symbol.iterator)?function(e){return o(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":o(e)})(e)}n.d(t,"a",function(){return r})},31:function(e,t,n){"use strict";function o(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",function(){return o})},32:function(e,t){!function(){e.exports=this.wp.apiFetch}()},36:function(e,t,n){"use strict";var o,r;function c(e){return[e]}function i(e){return!!e&&"object"==typeof e}function a(){var e={clear:function(){e.head=null}};return e}function l(e,t,n){var o;if(e.length!==t.length)return!1;for(o=n;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}o={},r="undefined"!=typeof WeakMap,t.a=function(e,t){var n,s;function u(){n=r?new WeakMap:a()}function d(){var n,o,r,c,i,a=arguments.length;for(c=new Array(a),r=0;r<a;r++)c[r]=arguments[r];for(i=t.apply(null,c),(n=s(i)).isUniqueByDependants||(n.lastDependants&&!l(i,n.lastDependants,0)&&n.clear(),n.lastDependants=i),o=n.head;o;){if(l(o.args,c,1))return o!==n.head&&(o.prev.next=o.next,o.next&&(o.next.prev=o.prev),o.next=n.head,o.prev=null,n.head.prev=o,n.head=o),o.val;o=o.next}return o={val:e.apply(null,c)},c[0]=null,o.args=c,n.head&&(n.head.prev=o,o.next=n.head),n.head=o,o.val}return t||(t=c),s=r?function(e){var t,r,c,l,s=n,u=!0;for(t=0;t<e.length;t++){if(!i(r=e[t])){u=!1;break}s.has(r)?s=s.get(r):(c=new WeakMap,s.set(r,c),s=c)}return s.has(o)||((l=a()).isUniqueByDependants=u,s.set(o,l)),s.get(o)}:function(){return n},d.getDependants=t,d.clear=u,u(),d}},37:function(e,t,n){"use strict";function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",function(){return o})},38:function(e,t,n){"use strict";function o(e){if(Array.isArray(e))return e}n.d(t,"a",function(){return o})},4:function(e,t){!function(){e.exports=this.wp.data}()},42:function(e,t){!function(){e.exports=this.wp.viewport}()},44:function(e,t,n){e.exports=function(e,t){var n,o,r,c=0;function i(){var t,i,a=o,l=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(i=0;i<l;i++)if(a.args[i]!==arguments[i]){a=a.next;continue e}return a!==o&&(a===r&&(r=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=o,a.prev=null,o.prev=a,o=a),a.val}a=a.next}for(t=new Array(l),i=0;i<l;i++)t[i]=arguments[i];return a={args:t,val:e.apply(null,t)},o?(o.prev=a,a.next=o):r=a,c===n?(r=r.prev).next=null:c++,o=a,a.val}return t&&t.maxSize&&(n=t.maxSize),i.clear=function(){o=null,r=null,c=0},i}},45:function(e,t){!function(){e.exports=this.wp.a11y}()},5:function(e,t,n){"use strict";function o(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 o})},50:function(e,t){!function(){e.exports=this.wp.plugins}()},57:function(e,t){!function(){e.exports=this.wp.nux}()},59:function(e,t){!function(){e.exports=this.wp.mediaUtils}()},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},61:function(e,t){!function(){e.exports=this.wp.coreData}()},66:function(e,t){!function(){e.exports=this.wp.blockLibrary}()},69:function(e,t,n){e.exports=function(){"use strict";return function(e){var t={};return function e(t,n){var o;if(Array.isArray(n))for(o=0;o<n.length;o++)e(t,n[o]);else for(o in n)t[o]=(t[o]||[]).concat(n[o])}(t,e),function(e){return function(n){return function(o){var r,c,i=t[o.type],a=n(o);if(i)for(r=0;r<i.length;r++)(c=i[r](o,e))&&e.dispatch(c);return a}}}}}()},7:function(e,t){!function(){e.exports=this.wp.compose}()},8:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var o=n(10);function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Object(o.a)(e,t,n[t])})}return e}},84:function(e,t){!function(){e.exports=this.wp.notices}()},9:function(e,t){!function(){e.exports=this.wp.blocks}()}});